From 33ad0813b67a11a36d63c3c5dbf97f350641d21a Mon Sep 17 00:00:00 2001 From: user1303836 Date: Tue, 17 Nov 2026 11:26:51 -0500 Subject: [PATCH 1/4] feat(hands): get up on the referee's count, with a visible beat, a verdict for every press and timing that holds over a slow link --- README.md | 10 +- scripts/hands_balance.py | 4 +- scripts/hands_e2e_scenarios.js | 238 +- scripts/hands_get_up.py | 285 + scripts/hands_replay.py | 4 +- src/intelstream/hands/combat-manifest.json | 13 +- src/intelstream/hands/cpu.py | 27 +- src/intelstream/hands/engine.py | 104 +- src/intelstream/hands/protocol.py | 3 +- src/intelstream/hands/rules.py | 11 + src/intelstream/hands/static/assets/hands.css | 2 +- src/intelstream/hands/static/assets/hands.js | 323 +- src/intelstream/hands/types.py | 1 + tests/test_hands/test_cpu.py | 2 +- tests/test_hands/test_engine.py | 215 +- tests/test_hands/test_protocol.py | 8 +- web/hands/replays/golden.json | 8950 ++++++++++------- web/hands/src/app.test.ts | 8 +- web/hands/src/app.ts | 21 +- web/hands/src/audio.ts | 20 + web/hands/src/dev-fixtures.ts | 141 +- web/hands/src/getup.test.ts | 85 + web/hands/src/getup.ts | 145 + web/hands/src/haptics.ts | 7 + web/hands/src/input/bindings.ts | 12 +- web/hands/src/input/gamepad.test.ts | 2 +- web/hands/src/input/input.ts | 2 + web/hands/src/input/touch.test.ts | 26 +- web/hands/src/input/touch.ts | 65 +- web/hands/src/interpolation.ts | 9 + web/hands/src/lab/model-lab.ts | 2 +- web/hands/src/manifest.ts | 23 +- web/hands/src/protocol.test.ts | 12 +- web/hands/src/protocol.ts | 4 +- web/hands/src/render/caption.test.ts | 15 +- web/hands/src/render/hud.ts | 303 +- web/hands/src/render/render.test.ts | 11 +- web/hands/src/render/renderer.ts | 70 +- web/hands/src/style.css | 1 + web/hands/src/test/fixtures.ts | 4 +- web/hands/src/test/movement-traces.json | 2 +- web/hands/src/types.ts | 4 +- 42 files changed, 7166 insertions(+), 4028 deletions(-) create mode 100755 scripts/hands_get_up.py create mode 100644 web/hands/src/getup.test.ts create mode 100644 web/hands/src/getup.ts diff --git a/README.md b/README.md index f0d38e93..5a785856 100644 --- a/README.md +++ b/README.md @@ -453,7 +453,7 @@ A disconnect pauses the bout and shows the connected opponent a live reconnect c - A close-range clinch has vulnerable startup and can be denied or interrupted. A successful finite hold cancels attacks, lets both regain a little stamina while spending conditioning, and ends in referee separation. - Low blows and headbutts are deliberate, costly fouls: misses still cost resources; a landed foul causes a recovery pause and warning, warning two deducts a point, and warning three disqualifies the offender. - Head/body and left/right eye trauma persist. Hooks intensify eye damage; damaged eyes reduce reach/accuracy. Cuts increase bleeding, bleeding adds head trauma and fatigue, swelling accumulates, and cut/swelling thresholds can cause a doctor stoppage. Blood event amounts are authoritative, while spray, pooling, audio, and shake are cosmetic only. -- Poise depletion or a sufficiently damaging head shot causes a knockdown. During the ten-count, the downed fighter alone sees a seeded private left/right rhythm prompt. Press the shown direction inside its timing window: centered timing gains more meter, while early, late, wrong, or spam inputs lose progress. Repeated knockdowns and head trauma raise the requirement; failure by ten is a KO. +- Poise depletion or a sufficiently damaging head shot causes a knockdown. During the ten-count the downed fighter alone sees a large arrow on his get-up panel, left or right, with the side after it small and dim beside it. From the count of two, each number of the count is one prompt: a ring closes on the arrow and reaches it on the beat, the moment the number changes, turning green while a press would be in time and gold at its perfect middle. The first press of each prompt is its only attempt: on the beat (one tick either side) is PERFECT and counts two, within three ticks is GOOD and counts one, before that is EARLY and after it LATE (neither scores), and the wrong side costs one. Further presses do nothing, so mashing gets nowhere, and the next prompt takes over at once. He rises when the meter reaches four for each knockdown so far plus one for each 300 of head trauma; failure by ten is a KO. The panel is drawn for the moment a press made now reaches the server (the snapshot clock plus the measured round trip), every press is answered at once and then confirmed by the server, and a tick and a haptic pulse mark each beat. `scripts/hands_get_up.py` plays the count many times through the engine with scripted players and the computer levels and prints how often each gets up. - **Injuries.** Damage ends in discrete, permanent injuries the server decides from accumulated wear and the punch that lands, one a punch, worst first, with no dice. Each is listed in the snapshot and changes how its owner fights: - Head: a broken nose (bleeds, 75% stamina regeneration), a broken jaw and then the jaw torn off (25% and 50% more poise lost), an eye punched out of a swollen socket (that eye is as good as shut for the rest of the bout), an ear torn off (slower poise recovery), a cut cheek flayed to the muscle (worse accuracy), and a fractured skull (poise ceiling 60%). More heavy shots on a fractured skull kill. - Body: caved-in ribs (35% more damage from body shots on that side, less maximum stamina), a ruptured liver (60% stamina regeneration, and he vomits every eight seconds, which stops him for a moment), and disembowelment (75% foot speed, less maximum stamina, 50% more body damage). Another power shot to an open gut kills. @@ -483,7 +483,7 @@ Keyboard controls use physical key positions (`KeyboardEvent.code`): | Clinch / switch stance | `B` / `N` | | Taunt | `M` | | Low blow / headbutt (deliberate fouls) | `Shift+1` / `Shift+2` | -| Private get-up rhythm | `Left Arrow` / `Right Arrow` | +| Get up when knocked down | `Left Arrow` / `Right Arrow`, the side the big arrow shows, as the ring closes | | Corner instruction, between rounds | `1` close the cut · `2` bring down the swelling · `3` catch your breath | | Style, in the pick before the bout | Arrow keys choose, `Enter` settles; `1`–`5` settle on that card at once | | Camera | `K` cycles broadcast, close and over the shoulder | @@ -501,7 +501,7 @@ Standard-controller controls are: | Weave / pull | D-pad up / down | | Clinch / switch stance | Left-stick press / right-stick press | | Low blow / headbutt | View/Back / Menu/Start | -| Private get-up rhythm | While down, press D-pad left / right; it registers immediately rather than waiting for release | +| Get up when knocked down | While down, press D-pad left / right, the side the big arrow shows; it registers immediately rather than waiting for release | | Corner instruction, between rounds | Left (`X`/Square) close the cut · top (`Y`/Triangle) bring down the swelling · right (`B`/Circle) catch your breath | | Style, in the pick before the bout | D-pad or left stick choose; bottom (`A`/Cross) settles | @@ -618,7 +618,7 @@ git diff --exit-code -- src/intelstream/hands/static The fixed three-file deployment contract embeds the mesh-only Boxer rig and its five source textures (re-encoded as JPEG by the generator) in `hands.js`; the resulting production script is about 2.94 MB (about 1.46 MB gzip). This startup-cost tradeoff keeps the Activity self-contained and avoids runtime asset requests. `scripts/hands_pose_strip.js` renders a pose frozen at a list of times into one frame strip for motion review. `npm run dev` also serves `?model-lab=1&pose=&cam=&trauma=` as a pose lab for reviewing the runtime animation and injury shading without a match (poses include punches, guards, slips, knockdown, seated, celebrate and wave_off), and `?fixture=1` with `&finisher=head|hand`, `&phase=rest`, `&pin=1|corner`, `&blood=reduced|off` or `&platform=mobile` for presentation review. Both take the engine's injuries: `&injuries=` carried from the start, `&inflict=` happening one after another, `&bloodvol=<0..1000>`, and `&fatality=` (the fixture runs FINISH HIM, the kill, its replay and the result card). The lab also takes `&dead=`, `&dazed=1` and `&vomit=1`; the fixture takes `&death=` and `&injuries1=` for the other fighter. For judging how the boxers stand and move, both take `&gap=`; the fixture takes `&calm=1` (both standing in their stances, nothing scripted) or `&calm=walk` (circling), `&guard=high|low`, `&styles=,`, `&wear=1` (bodies marked by the fight from the start) and `&referee=count|break`; the lab takes `&speed=` for the walks, `&xray=` to play a bone break's cut-in and `&wear=`. -For a standalone presentation fixture, run `npm --prefix web/hands run dev` and open the printed URL with `?fixture=1`. For the real two-process localhost flow, terminal one runs the Python bot/Hands server with valid Discord credentials: +For a standalone presentation fixture, run `npm --prefix web/hands run dev` and open the printed URL with `?fixture=1`. Add `&getup=1` to play a knockdown from the downed fighter's side with no server: the arrow keys, or with `&platform=mobile` on a touch screen the two get-up pads, press, and each press is scored by the engine's rules; `&knockdowns=2` and `&head=<0-1400>` make it harder. For the real two-process localhost flow, terminal one runs the Python bot/Hands server with valid Discord credentials: ```bash HANDS_ENABLED=true HANDS_DEV_MODE=true HANDS_HOST=127.0.0.1 HANDS_PORT=8080 uv run intelstream @@ -641,7 +641,7 @@ HANDS_DEV_BACKEND=http://127.0.0.1:8091 npm --prefix web/hands run dev -- --port Open `http://localhost:5174/?e2e=1&instance_id=&player=` in two browser windows (different names) to fight. The `e2e` switch only exists in Vite development builds; the development server authenticates anyone who can reach its port, so never expose it. -`scripts/hands_e2e_scenarios.js` automates this with Playwright: `ko` (power punches until a knockdown, private get-up rhythm, stoppage), `finish` (the floored player gets up twice, so the knockdown that would be his third stands him up for FINISH HIM; the bout must end in his death or his collapse, and a punch that killed him must be replayed), `reconnect` (one client's link goes silent mid-round through a TCP proxy, with no close in either direction as a lost network has none; it times how long the room takes to pause the other player, then restores the link and checks both resume), `rest` (two rounds with the corner rest), `spectator` (a third client joins read-only), `touch` (one player on an emulated phone), `mash` (hundreds of key presses per second) `latency` (a TCP proxy delays every frame 110 ms each way, and the clients report their measured input acknowledgement latency, which the fighter HUD also shows) `soak` (a full three-round bout sampling heap size, latency and render scale every twenty seconds) `background` (one player's page is frozen through the DevTools lifecycle state for eight seconds, as a backgrounded phone app would be, then resumed) `rematch` (both players use the Rematch button after the result and fight a second bout in the same instance) `rematchloop` (four bouts back to back while sampling heap size and GPU object counts for leaks) `clinch` (both players close in and one ties up; the harness reads the fighters' separation from the client state through the engine's draw-in, the hold and the referee break) and `response` (key press to first rendered frame for the player's own punch and step, when the opponent sees them, and whether the predicted punch ever jumps back, behind a delay proxy set with `E2E_DELAY_MS`, 60 ms each way by default). It spawns the development server itself and prints the clients' status text plus any client or server errors. The default software renderer keeps runs reproducible on machines without a GPU; set `E2E_GPU=1` to render on the machine's GPU for real frame pacing, input latency and screenshots. +`scripts/hands_e2e_scenarios.js` automates this with Playwright. A floored player answers each get-up prompt from inside his page when his own panel's ring reaches its target, as a player watching it would. The scenarios: `ko` (power punches until a knockdown, the get-up, stoppage), `finish` (the floored player gets up twice, so the knockdown that would be his third stands him up for FINISH HIM; the bout must end in his death or his collapse, and a punch that killed him must be replayed), `getup` (knockdowns bout after bout behind the delay set with `E2E_DELAY_MS` and `E2E_JITTER_MS` until the floored player has pressed 60 times, or `E2E_GETUP_PRESSES`; it fails unless at least 95% of the server's verdicts are good or perfect), `reconnect` (one client's link goes silent mid-round through a TCP proxy, with no close in either direction as a lost network has none; it times how long the room takes to pause the other player, then restores the link and checks both resume), `rest` (two rounds with the corner rest), `spectator` (a third client joins read-only), `touch` (one player on an emulated phone, who gets up with the get-up pads), `mash` (hundreds of key presses per second, then a floored player hammering the arrows, who must be counted out) `latency` (a TCP proxy delays every frame 110 ms each way, and the clients report their measured input acknowledgement latency, which the fighter HUD also shows) `soak` (a full three-round bout sampling heap size, latency and render scale every twenty seconds) `background` (one player's page is frozen through the DevTools lifecycle state for eight seconds, as a backgrounded phone app would be, then resumed) `rematch` (both players use the Rematch button after the result and fight a second bout in the same instance) `rematchloop` (four bouts back to back while sampling heap size and GPU object counts for leaks) `clinch` (both players close in and one ties up; the harness reads the fighters' separation from the client state through the engine's draw-in, the hold and the referee break) and `response` (key press to first rendered frame for the player's own punch and step, when the opponent sees them, and whether the predicted punch ever jumps back, behind a delay proxy set with `E2E_DELAY_MS`, 60 ms each way by default). It spawns the development server itself and prints the clients' status text plus any client or server errors. The default software renderer keeps runs reproducible on machines without a GPU; set `E2E_GPU=1` to render on the machine's GPU for real frame pacing, input latency and screenshots. `HANDS_DEV_BACKEND` is a Node/Vite development-process setting, not a browser `VITE_*` value and not a production origin. Real OAuth still needs a valid Activity instance; the fixture is only recorded presentation data. Keep `HANDS_DEV_MODE=false` in production. diff --git a/scripts/hands_balance.py b/scripts/hands_balance.py index 4d5e210b..e224335f 100644 --- a/scripts/hands_balance.py +++ b/scripts/hands_balance.py @@ -160,7 +160,7 @@ def decide(self, engine: BoxingEngine) -> InputCommand | None: if engine.phase is MatchPhase.KNOCKDOWN: window_middle = (me.get_up_window_start_tick + me.get_up_window_end_tick) // 2 prompt = me.get_up_prompt - if prompt is not None and not me.get_up_prompt_resolved and tick + 1 >= window_middle: + if prompt is not None and tick + 1 >= window_middle: return InputCommand(self._sequence, tick, actions=(MovementAction(prompt),)) return InputCommand(self._sequence, tick) if engine.phase is MatchPhase.REST: @@ -275,7 +275,7 @@ def decide(self, engine: BoxingEngine) -> InputCommand | None: if engine.phase is MatchPhase.KNOCKDOWN: window_middle = (me.get_up_window_start_tick + me.get_up_window_end_tick) // 2 prompt = me.get_up_prompt - if prompt is not None and not me.get_up_prompt_resolved and tick + 1 >= window_middle: + if prompt is not None and tick + 1 >= window_middle: return self._command(tick, actions=(MovementAction(prompt),)) return self._command(tick) if engine.phase is MatchPhase.REST and self.kind == "counter": diff --git a/scripts/hands_e2e_scenarios.js b/scripts/hands_e2e_scenarios.js index 2d1d7d91..aa7dd3f2 100644 --- a/scripts/hands_e2e_scenarios.js +++ b/scripts/hands_e2e_scenarios.js @@ -7,7 +7,7 @@ * Each scenario spawns scripts/hands_e2e_server.py on port 8091, drives two headless players with * keyboard or touch input, reads the client's screen-reader status text, and writes screenshots to * $TMPDIR/hands-e2e. Set E2E_GPU=1 to render on the machine's GPU instead of the software renderer - * (real frame pacing and input latency). The response scenario takes E2E_DELAY_MS and E2E_JITTER_MS. + * (real frame pacing and input latency). The response and getup scenarios take E2E_DELAY_MS and E2E_JITTER_MS. * * The reconnect scenario drops one player's link the way a lost network does, with no close in either * direction, through a TCP proxy, times how long the room takes to pause the other player, and checks @@ -18,8 +18,13 @@ * his collapse, and a punch that killed him is replayed. The styles scenario has one fighter pick a style with the keyboard and the other by * touch while a spectator watches; every other scenario settles on the offered style at once. E2E_PORT * moves the server off 8091. + * A floored player answers each get-up prompt when his own panel's ring reaches its target (installGetUpPlayer), + * as a player watching it would. The getup scenario knocks him down bout after bout behind E2E_DELAY_MS each way + * (default 60) and up to E2E_JITTER_MS more, until he has pressed E2E_GETUP_PRESSES times (default 60), and fails + * unless at least 95% of the server's verdicts are good or perfect. In mash the floored player hammers the arrows + * and must be counted out; in touch he gets up with the get-up pads. * - * node scripts/hands_e2e_scenarios.js ko|finish|reconnect|rest|spectator|touch|mash|latency|soak|background|rematch|rematchloop|clinch|response|cpu|styles + * node scripts/hands_e2e_scenarios.js ko|finish|getup|reconnect|rest|spectator|touch|mash|latency|soak|background|rematch|rematchloop|clinch|response|cpu|styles */ const { chromium, devices } = require('playwright'); const { spawn, spawnSync } = require('node:child_process'); @@ -256,8 +261,9 @@ async function main() { reconnect: ['--rounds', '1', '--round-seconds', '70', '--rest-seconds', '5'], rest: ['--rounds', '2', '--round-seconds', '14', '--rest-seconds', '9'], spectator: ['--rounds', '1', '--round-seconds', '30', '--rest-seconds', '5'], - touch: ['--rounds', '1', '--round-seconds', '40', '--rest-seconds', '5'], - mash: ['--rounds', '1', '--round-seconds', '40', '--rest-seconds', '5'], + touch: ['--rounds', '2', '--round-seconds', '60', '--rest-seconds', '5'], + mash: ['--rounds', '2', '--round-seconds', '60', '--rest-seconds', '5'], + getup: ['--rounds', '3', '--round-seconds', '90', '--rest-seconds', '5'], latency: ['--rounds', '1', '--round-seconds', '45', '--rest-seconds', '5'], soak: ['--rounds', '3', '--round-seconds', '120', '--rest-seconds', '15'], background: ['--rounds', '1', '--round-seconds', '60', '--rest-seconds', '5'], @@ -270,7 +276,8 @@ async function main() { }[scenario]; const responseDelayMs = Number(process.env.E2E_DELAY_MS ?? 60); const responseJitterMs = Number(process.env.E2E_JITTER_MS ?? 0); - const server = await startServer(serverArgs, { oneWayDelayMs: scenario === 'latency' ? 110 : scenario === 'response' ? responseDelayMs : 0, jitterMs: scenario === 'response' ? responseJitterMs : 0, proxy: scenario === 'reconnect' }); + const delayed = scenario === 'response' || scenario === 'getup'; + const server = await startServer(serverArgs, { oneWayDelayMs: scenario === 'latency' ? 110 : delayed ? responseDelayMs : 0, jitterMs: delayed ? responseJitterMs : 0, proxy: scenario === 'reconnect' }); try { const A = await open('Alpha'); if (scenario === 'cpu') { @@ -288,25 +295,7 @@ async function main() { // Approach: A right, B left. await A.page.keyboard.down('d'); await B.page.keyboard.down('a'); await wait(1600); await A.page.keyboard.up('d'); await B.page.keyboard.up('a'); - if (scenario === 'finish') { - // Presses each get-up prompt once, in the middle of its window, from inside the page. - await B.page.evaluate(() => { - let answered = -1; - const press = () => { - const app = window.__handsApp; - const snapshot = app?.state?.snapshot; - const me = snapshot?.fighters.find((fighter) => fighter.player_id === app.state.playerId); - if (me?.is_downed && me.get_up_prompt !== null && answered !== me.get_up_window_start_tick && snapshot.tick >= me.get_up_window_start_tick + 2) { - answered = me.get_up_window_start_tick; - const code = me.get_up_prompt === 'get_up_left' ? 'ArrowLeft' : 'ArrowRight'; - window.dispatchEvent(new KeyboardEvent('keydown', { code, key: code })); - window.dispatchEvent(new KeyboardEvent('keyup', { code, key: code })); - } - requestAnimationFrame(press); - }; - requestAnimationFrame(press); - }); - } + if (scenario === 'ko' || scenario === 'finish') await installGetUpPlayer(B.page, 'keys'); if (scenario === 'ko' || scenario === 'finish') { // Records every fighter's punch phase while the knockout replay plays, to catch a stuttering replay. @@ -329,7 +318,7 @@ async function main() { }; requestAnimationFrame(tick); }); - let downSeen = false; let finishSeen = false; let promptsPressed = 0; let final = null; let lastCount = -1; + let downSeen = false; let finishSeen = false; let final = null; let lastCount = -1; const started = Date.now(); await A.page.keyboard.down('Alt'); while (Date.now() - started < 240000) { @@ -340,33 +329,13 @@ async function main() { if (/^Knockdown/.test(live) || /\. knockdown\./.test(sB.summary ?? '')) { if (!downSeen) { downSeen = true; note('KNOCKDOWN seen at', ((Date.now() - started) / 1000).toFixed(1), 's:', live); await A.page.screenshot({ path: `${out}/e2e-ko-A-down.png` }); await B.page.screenshot({ path: `${out}/e2e-ko-B-down.png` }); } const count = /Count (\d+)/.exec(live); if (count && Number(count[1]) !== lastCount) { lastCount = Number(count[1]); note('count', lastCount, '|', live); } - if (scenario === 'finish') { /* the page answers its own prompts */ } - else if (/Press left now/.test(live)) { await B.page.keyboard.press('ArrowLeft'); promptsPressed += 1; } - else if (/Press right now/.test(live)) { await B.page.keyboard.press('ArrowRight'); promptsPressed += 1; } await wait(60); continue; } - // A keeps pressure: walk at B (after a count A comes back from a neutral corner), then throw - // power hooks and uppercuts, occasionally straights. - const gap = await A.page.evaluate(() => { - const app = window.__handsApp; - const fighters = app?.state?.snapshot?.fighters ?? []; - const me = fighters.find((fighter) => fighter.player_id === app.state.playerId); - const other = fighters.find((fighter) => fighter.player_id !== app.state.playerId); - return me && other ? { dx: other.x - me.x, dy: other.y - me.y, stamina: me.stamina } : null; - }); - const steps = gap === null ? ['d'] : [gap.dx > 60 ? 'd' : gap.dx < -60 ? 'a' : null, gap.dy > 60 ? 'w' : gap.dy < -60 ? 's' : null].filter(Boolean); - for (const step of steps) await A.page.keyboard.down(step); - await wait(gap !== null && Math.hypot(gap.dx, gap.dy) > 180 ? 320 : 120); - for (const step of steps) await A.page.keyboard.up(step); - // A tired fighter's punches are weak arm punches, so A gets the breath back before the next one. - if (gap !== null && gap.stamina < 350) { await wait(500); continue; } - const key = ['g', 't', 'h', 'y', 'u'][Math.floor(Math.random() * 5)]; - await A.page.keyboard.press(key); - await wait(380); + await pressOn(A); } await A.page.keyboard.up('Alt'); - note('get-up presses:', promptsPressed); + note('get-up presses and the server\'s verdicts:', JSON.stringify(await getUpTally(B.page))); note('input latency A:', JSON.stringify(await A.page.evaluate(() => window.__handsApp?.networkStats ?? null)), 'B:', JSON.stringify(await B.page.evaluate(() => window.__handsApp?.networkStats ?? null))); if (final === null) final = await waitFor(B.page, (s) => Boolean(s.final), 120000, 'final'); note('FINAL:', JSON.stringify(final?.final ?? null)); @@ -525,7 +494,24 @@ async function main() { const after = await status(A.page); note('A summary before:', before.summary?.slice(0, 200)); note('A summary after :', after.summary?.slice(0, 200)); - const final = await waitFor(A.page, (s) => Boolean(s.final), 90000, 'final'); + // Then A knocks him down, and he gets up with the get-up pads, tapping the lit one as his ring closes. + await installGetUpPlayer(B.page, 'touch'); + const begun = Date.now(); + await A.page.keyboard.down('Alt'); + while (Date.now() - begun < 150000) { + const sB = await status(B.page); + if (sB.final || (await getUpTally(B.page)).presses >= 3) break; + if (/\. knockdown\./.test(sB.summary ?? '')) { await wait(150); continue; } + await pressOn(A); + } + await A.page.keyboard.up('Alt'); + await wait(2500); + await B.page.screenshot({ path: `${out}/e2e-touch-B-getup.png` }); + const tally = await getUpTally(B.page); + note('touch get-up presses and verdicts:', JSON.stringify(tally)); + if (tally.presses > 0 && (tally.verdicts.good ?? 0) + (tally.verdicts.perfect ?? 0) === 0) report.errors.push('no get-up pad press scored'); + if (tally.presses === 0) note('B was not knocked down in time: the get-up pads went untried'); + const final = await waitFor(A.page, (s) => Boolean(s.final), 180000, 'final'); note('FINAL:', JSON.stringify(final?.final ?? null).slice(0, 200)); } @@ -543,10 +529,68 @@ async function main() { const after = await status(A.page); note('A after mash:', after.status, '|', after.summary?.slice(0, 120)); note('B after mash:', (await status(B.page)).status); + // Then A knocks him down and he mashes the two arrows ten times a second: he must be counted out. + await installGetUpPlayer(B.page, 'mash'); + const begun = Date.now(); let down = false; + await A.page.keyboard.down('Alt'); + while (Date.now() - begun < 200000) { + const sB = await status(B.page); + if (sB.final) break; + if (/\. knockdown\./.test(sB.summary ?? '')) { down = true; await wait(200); continue; } + if (down) break; + await pressOn(A); + } + await A.page.keyboard.up('Alt'); + const tally = await getUpTally(B.page); + note('mashed get-up presses and verdicts:', JSON.stringify(tally)); + if (!down) report.errors.push('B was never knocked down, so the mashing went untested'); + else if (!/^ko\b/i.test((await waitFor(B.page, (s) => Boolean(s.final), 30000, 'count-out'))?.final ?? '')) report.errors.push('a mashing fighter was not counted out'); + if ((tally.verdicts.good ?? 0) + (tally.verdicts.perfect ?? 0) > 0) report.errors.push(`mashing scored: ${JSON.stringify(tally.verdicts)}`); const final = await waitFor(A.page, (s) => Boolean(s.final), 90000, 'final'); note('FINAL:', JSON.stringify(final?.final ?? null).slice(0, 200)); } + if (scenario === 'getup') { + note(`network delay ${responseDelayMs} ms each way, up to ${responseJitterMs} ms of jitter`); + await installGetUpPlayer(B.page, 'keys'); + const wanted = Number(process.env.E2E_GETUP_PRESSES ?? 60); + const begun = Date.now(); let bouts = 1; let downs = 0; let wasDown = false; let reported = Date.now(); + await A.page.keyboard.down('Alt'); + while (Date.now() - begun < 1800000 && (await getUpTally(B.page)).presses < wanted) { + const sB = await status(B.page); + if (Date.now() - reported > 20000) { + reported = Date.now(); + note(`${((Date.now() - begun) / 1000).toFixed(0)} s:`, (sB.summary ?? '').slice(0, 60), '| B:', sB.live ?? sB.status, '| knockdowns', downs, '|', JSON.stringify(await getUpTally(B.page)), '| errors', JSON.stringify([...(A.errors ?? []), ...(B.errors ?? [])].slice(-3))); + } + if (sB.final) { + // Another bout: both ask for the rematch and settle on their styles, and the two walk back in. + await A.page.keyboard.up('Alt'); + note(`bout ${bouts}:`, sB.final.slice(0, 80), '|', JSON.stringify(await getUpTally(B.page))); + for (let i = 0; i < 80; i += 1) { if (await A.page.evaluate(() => { const b = document.querySelector('[data-rematch]'); return b !== null && !b.hidden && !b.disabled; })) break; await wait(500); } + await A.page.click('[data-rematch]'); + await B.page.click('[data-rematch]'); + await Promise.all([settleStyle(A.page), settleStyle(B.page)]); + await waitFor(A.page, (s) => /\. fight\./.test(s.summary ?? '') && !s.final, 60000, 'next bout'); + await A.page.keyboard.down('d'); await B.page.keyboard.down('a'); await wait(1600); await A.page.keyboard.up('d'); await B.page.keyboard.up('a'); + await A.page.keyboard.down('Alt'); + bouts += 1; + continue; + } + if (/\. knockdown\./.test(sB.summary ?? '')) { if (!wasDown) downs += 1; wasDown = true; await wait(150); continue; } + wasDown = false; + await pressOn(A); + } + await A.page.keyboard.up('Alt'); + await wait(1500); + const tally = await getUpTally(B.page); + const judged = Object.values(tally.verdicts).reduce((sum, value) => sum + value, 0); + const timed = (tally.verdicts.good ?? 0) + (tally.verdicts.perfect ?? 0); + note('bouts:', bouts, '| knockdowns:', downs, '| presses:', tally.presses, '| verdicts:', JSON.stringify(tally.verdicts), `| good or perfect: ${timed} of ${judged} (${judged ? ((100 * timed) / judged).toFixed(1) : '-'}%)`); + note('input latency B:', JSON.stringify(await B.page.evaluate(() => window.__handsApp?.networkStats ?? null))); + if (judged < wanted) report.errors.push(`only ${judged} get-up presses were judged, wanted ${wanted}`); + if (judged > 0 && timed / judged < 0.95) report.errors.push(`presses made when the ring said now scored good or perfect ${timed} of ${judged} times, under 95%`); + } + if (scenario === 'latency') { const started = Date.now(); let step = 0; @@ -835,6 +879,96 @@ async function main() { console.log('server log lines of interest:', JSON.stringify(serverErrors.slice(0, 20), null, 1)); } +/** + * Plays the floored fighter's get-up from inside the page, as a player watching the panel would: `keys` and `touch` + * press each prompt's side once, when the client's own ring reaches its target (renderer.getUpView's press clock at + * the beat), by an arrow key or by a pointer on that get-up pad; `mash` presses the two arrows in turn ten times a + * second whatever the panel shows. window.__getUpPresses counts the presses. + */ +async function installGetUpPlayer(page, mode) { + await page.evaluate((how) => { + window.__getUpPresses = 0; + // Each bout has its own renderer, and with it its own count of verdicts: the counts of the ones gone are kept here. + window.__getUpVerdictsBefore = {}; + let counted = null; + const keep = () => { + const renderer = window.__handsApp?.renderer ?? null; + if (renderer !== counted.renderer && counted.renderer !== null) { + for (const [kind, value] of Object.entries(counted.renderer.getUpVerdicts ?? {})) window.__getUpVerdictsBefore[kind] = (window.__getUpVerdictsBefore[kind] ?? 0) + value; + } + counted.renderer = renderer; + requestAnimationFrame(keep); + }; + counted = { renderer: window.__handsApp?.renderer ?? null }; + requestAnimationFrame(keep); + const press = (side) => { + window.__getUpPresses += 1; + const pad = how === 'touch' ? document.querySelector(`.touch-getup-pad[data-getup-side="${side}"]`) : null; + if (pad !== null) { + pad.dispatchEvent(new PointerEvent('pointerdown', { bubbles: true, pointerId: 9, pointerType: 'touch' })); + return; + } + const code = side === 'get_up_left' ? 'ArrowLeft' : 'ArrowRight'; + window.dispatchEvent(new KeyboardEvent('keydown', { code, key: code })); + window.dispatchEvent(new KeyboardEvent('keyup', { code, key: code })); + }; + if (how === 'mash') { + let left = true; + setInterval(() => { + if (!window.__handsApp?.renderer?.getUpView) return; + press(left ? 'get_up_left' : 'get_up_right'); + left = !left; + }, 100); + return; + } + let answered = null; + const loop = () => { + const view = window.__handsApp?.renderer?.getUpView; + const prompt = view?.prompt; + if (prompt && !view.risen && answered !== prompt.beat && view.pressTick >= prompt.beat) { + answered = prompt.beat; + press(prompt.side); + } + requestAnimationFrame(loop); + }; + requestAnimationFrame(loop); + }, mode); +} + +/** A page's get-up presses and what the server said of them, by verdict, over every bout since installGetUpPlayer. */ +function getUpTally(page) { + return page.evaluate(() => { + const verdicts = { ...(window.__getUpVerdictsBefore ?? {}) }; + for (const [kind, value] of Object.entries(window.__handsApp?.renderer?.getUpVerdicts ?? {})) verdicts[kind] = (verdicts[kind] ?? 0) + value; + return { presses: window.__getUpPresses ?? 0, verdicts }; + }); +} + +/** + * One step of A's pressure: walk at B (after a count A comes back from a neutral corner), then a power hook or + * uppercut, occasionally a straight, with the breath got back first when tired. Power is held by the caller. + */ +async function pressOn(A) { + const gap = await A.page.evaluate(() => { + const app = window.__handsApp; + const fighters = app?.state?.snapshot?.fighters ?? []; + const me = fighters.find((fighter) => fighter.player_id === app.state.playerId); + const other = fighters.find((fighter) => fighter.player_id !== app.state.playerId); + return me && other ? { dx: other.x - me.x, dy: other.y - me.y, stamina: me.stamina } : null; + }); + const steps = gap === null ? ['d'] : [gap.dx > 60 ? 'd' : gap.dx < -60 ? 'a' : null, gap.dy > 60 ? 'w' : gap.dy < -60 ? 's' : null].filter(Boolean); + for (const step of steps) await A.page.keyboard.down(step); + await wait(gap !== null && Math.hypot(gap.dx, gap.dy) > 180 ? 320 : 120); + for (const step of steps) await A.page.keyboard.up(step); + // A tired fighter's punches are weak arm punches, so A gets the breath back before the next one. + if (gap !== null && gap.stamina < 350) { + await wait(500); + return; + } + await A.page.keyboard.press(['g', 't', 'h', 'y', 'u'][Math.floor(Math.random() * 5)]); + await wait(380); +} + /** One player calls in the computer from the waiting screen and boxes it to the result card. */ async function runCpu(A, note) { const level = process.env.E2E_CPU_LEVEL || 'contender'; @@ -848,8 +982,9 @@ async function runCpu(A, note) { await A.page.keyboard.press('Enter'); const started = await waitFor(A.page, (s) => /\. fight\./.test(s.summary ?? ''), 30000, 'fight phase'); note('bout started against:', /computer opponent/.test(started?.summary ?? '') ? 'the computer' : 'someone else', '|', started?.summary?.slice(0, 160)); + await installGetUpPlayer(A.page, 'keys'); const begun = Date.now(); - let final = null; let downs = 0; let shots = 0; let rested = false; let cornered = null; + let final = null; let shots = 0; let rested = false; let cornered = null; while (Date.now() - begun < 240000) { const s = await status(A.page); if (s.final) { final = s; break; } @@ -862,8 +997,7 @@ async function runCpu(A, note) { continue; } if (/You are down/.test(s.summary ?? '')) { - const press = /Press left/.test(s.summary) ? 'ArrowLeft' : /Press right/.test(s.summary) ? 'ArrowRight' : null; - if (press) { await A.page.keyboard.press(press); downs += 1; } + // The page answers its own prompts as its ring closes. await wait(120); continue; } @@ -874,7 +1008,7 @@ async function runCpu(A, note) { if (shots % 10 === 4) await A.page.screenshot({ path: `${out}/e2e-cpu-bout-${shots}.png` }); shots += 1; } - note('get-up presses:', downs); + note('get-up presses and the server\'s verdicts:', JSON.stringify(await getUpTally(A.page))); note('computer corner instruction in the rest:', rested ? (cornered ?? 'none (a forgetful corner, or the rest was missed)') : 'no rest reached'); if (rested && cornered === null && level === 'champion') A.errors.push('the champion gave its corner no instruction'); if (final === null) final = await waitFor(A.page, (s) => Boolean(s.final), 120000, 'final'); diff --git a/scripts/hands_get_up.py b/scripts/hands_get_up.py new file mode 100755 index 00000000..059f57fa --- /dev/null +++ b/scripts/hands_get_up.py @@ -0,0 +1,285 @@ +#!/usr/bin/env python3 +"""Measure how often a downed fighter beats the count in the get-up mini-game. + +Puts a fighter on the canvas in-process through the authoritative engine and plays the ten-count +with a scripted player or a computer level, many times over, then prints the share of counts he +got up from on a first and a second knockdown, with no head trauma, the head trauma typical of +that knockdown between computer boxers, and heavy head trauma (about the most a head carries at a +second knockdown between computer boxers). Every trial is deterministic for its seed. + +An aiming player sees each prompt when the snapshot that first shows it reaches him, as the next +side a count ahead or as the side to press now, needs the read time to read its side, and aims his +one press at the beat, the moment the referee's count changes, with a normal timing error; now and +then he presses the wrong side, and the attentive one sleeps through the first prompt half the +time. A masher presses at a fixed rate whatever the screen shows: one key, the two keys in turn, +or both together. Each link puts the scripted players behind a connection with that delay each +way plus up to the jitter more on each frame, frames kept in order; on a delayed link his screen's +sense of when a press reaches the server is off by up to --offset-error-ms. The computer levels +play inside the server. The targets are held against the slowest reader. + + uv run python scripts/hands_get_up.py + uv run python scripts/hands_get_up.py --players rookie,contender,champion --trials 2000 + uv run python scripts/hands_get_up.py --links 0/0,150/40,60/10 --trials 200 +""" + +from __future__ import annotations + +import argparse +import random +from dataclasses import dataclass +from multiprocessing import Pool + +from intelstream.hands.cpu import CpuBrain, CpuLevel +from intelstream.hands.engine import BoxingEngine, EngineConfig +from intelstream.hands.rules import COUNT_TICK_INTERVAL, TICKS_PER_SECOND +from intelstream.hands.types import ActionKind, InputCommand, MatchPhase, MovementAction + +TICK_MS = 1000 / TICKS_PER_SECOND +LEFT, RIGHT = ActionKind.GET_UP_LEFT, ActionKind.GET_UP_RIGHT +SCENARIOS = ( + ("1st fresh", 1, 0), + ("1st typical", 1, 500), + ("1st heavy", 1, 1200), + ("2nd fresh", 2, 0), + ("2nd typical", 2, 870), + ("2nd heavy", 2, 1200), +) + + +@dataclass(frozen=True, slots=True) +class Aimer: + sigma_ms: float + wrong_percent: float + skips_first_percent: float + + +@dataclass(frozen=True, slots=True) +class Masher: + keys: str + per_second: float + + +AIMERS = { + "attentive": Aimer(sigma_ms=50, wrong_percent=3, skips_first_percent=50), + "sloppy": Aimer(sigma_ms=110, wrong_percent=10, skips_first_percent=0), +} +MASHERS = { + f"mash-{keys}-{rate}": Masher(keys, rate) + for keys in ("one", "alternate", "both") + for rate in (4, 8, 12) +} +CPU_LEVELS = tuple(level.value for level in CpuLevel) +DEFAULT_PLAYERS = (*AIMERS, *MASHERS, "idle", *CPU_LEVELS) +# (player prefix, scenario, least share, most share): the targets the tuning was held to. +TARGETS = ( + ("attentive", "1st fresh", 0.97, 1.0), + ("attentive", "1st heavy", 0.85, 1.0), + ("attentive", "2nd fresh", 0.85, 1.0), + ("attentive", "2nd heavy", 0.40, 0.65), + ("sloppy", "1st fresh", 0.80, 1.0), + ("sloppy", "2nd heavy", 0.0, 0.25), + ("mash-", "1st fresh", 0.0, 0.02), + ("mash-", "1st heavy", 0.0, 0.02), + ("mash-", "2nd fresh", 0.0, 0.02), + ("mash-", "2nd heavy", 0.0, 0.02), + ("idle", "1st fresh", 0.0, 0.0), +) + + +@dataclass(frozen=True, slots=True) +class Link: + delay_ms: float + jitter_ms: float + offset_error_ms: float + + @property + def label(self) -> str: + return f"{self.delay_ms:g} ms each way + {self.jitter_ms:g} ms jitter" + + +class Wire: + """One direction of a connection: a fixed delay plus jitter, frames kept in order.""" + + def __init__(self, link: Link, rng: random.Random) -> None: + self._link = link + self._rng = rng + self._last = -1.0 + + def arrival(self, sent_ms: float) -> float: + self._last = max( + self._last, sent_ms + self._link.delay_ms + self._rng.random() * self._link.jitter_ms + ) + return self._last + + +def _presses_for_masher( + masher: Masher, rng: random.Random +) -> list[tuple[float, tuple[ActionKind, ...]]]: + interval = 1000 / masher.per_second + sent = rng.random() * interval + presses: list[tuple[float, tuple[ActionKind, ...]]] = [] + index = 0 + while sent < 11 * 20 * TICK_MS: + if masher.keys == "one": + keys: tuple[ActionKind, ...] = (LEFT,) + elif masher.keys == "alternate": + keys = (LEFT,) if index % 2 == 0 else (RIGHT,) + else: + keys = (LEFT, RIGHT) if rng.random() < 0.5 else (RIGHT, LEFT) + presses.append((sent, keys)) + sent += interval + index += 1 + return presses + + +def trial(player: str, knockdowns: int, head: int, link: Link, seed: int, read_ms: float) -> bool: + """One count; True if he got up.""" + rng = random.Random(seed * 7919 + knockdowns * 31 + head) # nosec B311 + engine = BoxingEngine( + match_id=f"get-up-{seed}", + activity_instance_id="get-up", + guild_id="get-up", + player_one_id="one", + player_two_id="two", + seed=seed, + config=EngineConfig(countdown_ticks=0, round_ticks=6000), + ) + engine.checksums = False + downed = engine.fighter("two") + downed.knockdowns = knockdowns - 1 + downed.trauma.head = head + engine._knock_down(downed, engine.fighter("one")) + uplink, downlink = Wire(link, rng), Wire(link, rng) + brain = CpuBrain("two", "one", CpuLevel(player), seed) if player in CPU_LEVELS else None + aimer = AIMERS.get(player) + masher = MASHERS.get(player) + bias = rng.uniform(-link.offset_error_ms, link.offset_error_ms) if link.delay_ms else 0.0 + mean_uplink = link.delay_ms + link.jitter_ms / 2 + queued: list[tuple[float, tuple[ActionKind, ...]]] = [] + if masher is not None: + queued = [(uplink.arrival(sent), keys) for sent, keys in _presses_for_masher(masher, rng)] + planned: set[int] = set() + prompts_seen = 0 + sequence = 0 + while True: + tick = engine.tick + due = (tick + 1) * TICK_MS + while queued and queued[0][0] < due: + _, keys = queued.pop(0) + sequence += 1 + engine.submit_input( + "two", + InputCommand(sequence, tick, actions=tuple(MovementAction(key) for key in keys)), + ) + if brain is not None: + command = brain.decide(engine) + if command is not None: + engine.submit_input("two", command) + snapshot = engine.step() + if any(event.kind == "get_up" for event in snapshot.events): + return True + if engine.result is not None or engine.phase is not MatchPhase.KNOCKDOWN: + return False + if aimer is None or downed.get_up_prompt is None: + continue + beat = (downed.get_up_window_start_tick + downed.get_up_window_end_tick) // 2 + shown = [(beat, downed.get_up_prompt)] + if downed.get_up_next_prompt is not None: + shown.append((beat + COUNT_TICK_INTERVAL, downed.get_up_next_prompt)) + unseen = [(prompt_beat, side) for prompt_beat, side in shown if prompt_beat not in planned] + if not unseen: + continue + seen_ms = downlink.arrival(engine.tick * TICK_MS) + for prompt_beat, side in unseen: + planned.add(prompt_beat) + prompts_seen += 1 + if prompts_seen == 1 and rng.random() * 100 < aimer.skips_first_percent: + continue + # A press is scored on the first tick after it arrives: aim for the middle of the beat's tick. + aim_ms = (prompt_beat - 0.5) * TICK_MS + sent = aim_ms - mean_uplink - bias + rng.gauss(0, aimer.sigma_ms) + sent = max(sent, seen_ms + read_ms) + other = RIGHT if side is LEFT else LEFT + key = other if rng.random() * 100 < aimer.wrong_percent else side + queued.append((uplink.arrival(sent), (key,))) + queued.sort(key=lambda press: press[0]) + + +def share(job: tuple[str, int, int, Link, int, float]) -> float: + player, knockdowns, head, link, trials, read_ms = job + risen = sum( + trial(player, knockdowns, head, link, seed, read_ms) for seed in range(1, trials + 1) + ) + return risen / trials + + +def parse_links(text: str, offset_error_ms: float) -> list[Link]: + links = [] + for item in text.split(","): + delay, jitter = item.split("/") + links.append(Link(float(delay), float(jitter), offset_error_ms)) + return links + + +def main() -> None: + parser = argparse.ArgumentParser(description=__doc__.splitlines()[0]) + parser.add_argument("--players", default=",".join(DEFAULT_PLAYERS)) + parser.add_argument("--links", default="0/0,150/40", help="delay/jitter pairs in ms") + parser.add_argument("--offset-error-ms", type=float, default=30) + parser.add_argument("--read-ms", default="0,300", help="read times in ms") + parser.add_argument("--trials", type=int, default=400) + args = parser.parse_args() + players = args.players.split(",") + links = parse_links(args.links, args.offset_error_ms) + reads = [float(item) for item in args.read_ms.split(",")] + # Only an aiming player reads the screen; everyone else is played once a link. + jobs = [ + (player, knockdowns, head, link, args.trials, read) + for link in links + for player in players + for read in (reads if player in AIMERS else reads[:1]) + for _, knockdowns, head in SCENARIOS + ] + with Pool() as pool: + shares = pool.map(share, jobs) + measured = { + (job[0], job[3], job[5], label): value + for job, value, (label, _, _) in zip( + jobs, shares, SCENARIOS * (len(jobs) // len(SCENARIOS)), strict=True + ) + } + + def result(player: str, link: Link, read: float, label: str) -> float: + return measured[player, link, read if player in AIMERS else reads[0], label] + + width = max(len(player) for player in players) + 2 + for link in links: + for read in reads: + print( + f"\n{link.label}, display offset within {link.offset_error_ms:g} ms," + f" {read:g} ms to read a side" + ) + print("".ljust(width) + "".join(label.rjust(13) for label, _, _ in SCENARIOS)) + for player in players: + row = "".join( + f"{result(player, link, read, label):13.1%}" for label, _, _ in SCENARIOS + ) + print(player.ljust(width) + row) + slowest = max(reads) + misses = [ + f"{player} {link.label} {label}: {result(player, link, slowest, label):.1%}" + f" not in {low:.0%}-{high:.0%}" + for prefix, label, low, high in TARGETS + for link in links + for player in players + if player.startswith(prefix) and not low <= result(player, link, slowest, label) <= high + ] + print( + f"\ntargets ({slowest:g} ms reader):", "all met" if not misses else f"{len(misses)} missed" + ) + for miss in misses: + print(" " + miss) + + +if __name__ == "__main__": + main() diff --git a/scripts/hands_replay.py b/scripts/hands_replay.py index f7f70516..011f4d91 100644 --- a/scripts/hands_replay.py +++ b/scripts/hands_replay.py @@ -285,7 +285,7 @@ def mark(name: str, tick: int) -> None: elif stage == "get_up": prompt = two.get_up_prompt middle = (two.get_up_window_start_tick + two.get_up_window_end_tick) // 2 - if prompt is not None and not two.get_up_prompt_resolved and tick + 1 >= middle: + if prompt is not None and tick + 1 >= middle: inputs["two"] = send("two", actions=(MovementAction(prompt),)) if engine.phase is MatchPhase.FIGHT: next_stage = "close_in" @@ -399,7 +399,7 @@ def mark(name: str, tick: int) -> None: elif stage == "second_count": prompt = two.get_up_prompt middle = (two.get_up_window_start_tick + two.get_up_window_end_tick) // 2 - if prompt is not None and not two.get_up_prompt_resolved and tick + 1 >= middle: + if prompt is not None and tick + 1 >= middle: inputs["two"] = send("two", actions=(MovementAction(prompt),)) if engine.phase is MatchPhase.FIGHT: next_stage = "finish" diff --git a/src/intelstream/hands/combat-manifest.json b/src/intelstream/hands/combat-manifest.json index c81c35c4..1a3c467b 100644 --- a/src/intelstream/hands/combat-manifest.json +++ b/src/intelstream/hands/combat-manifest.json @@ -58,9 +58,16 @@ "box_pause_ticks": 20, "get_up_stun_ticks": 12, "get_up_stamina": 600, - "get_up_base": 30, - "get_up_per_knockdown": 16, - "get_up_trauma_divisor": 28 + "get_up_base": 0, + "get_up_per_knockdown": 4, + "get_up_trauma_divisor": 300, + "get_up_first_count": 2, + "get_up_zone_ticks": 3, + "get_up_perfect_ticks": 1, + "get_up_late_ticks": 3, + "get_up_good": 1, + "get_up_perfect": 2, + "get_up_wrong": 1 }, "countdown": { "opening_ticks": 90 diff --git a/src/intelstream/hands/cpu.py b/src/intelstream/hands/cpu.py index 4c8cfbe4..b5d03211 100644 --- a/src/intelstream/hands/cpu.py +++ b/src/intelstream/hands/cpu.py @@ -85,8 +85,8 @@ CORNER_BLEEDING_AT = 200 CORNER_EYE_AT = 500 CORNER_SWELLING_AT = 450 -GET_UP_ACCURACY_TRAUMA_DIVISOR = 45 -GET_UP_KNOCKDOWN_PENALTY = 14 +GET_UP_ACCURACY_TRAUMA_DIVISOR = 38 +GET_UP_KNOCKDOWN_PENALTY = 12 # The most a fighter turns toward the other man in a tick. _TURN_PER_TICK = radians(FACING_TURN_DEGREES_PER_SECOND / TICKS_PER_SECOND) # The quickest punch the computer loads up: it never throws a power jab. @@ -142,7 +142,9 @@ class CpuProfile: head_movement_percent: int """Chance per look to slip or duck ahead of a busy opponent's punches.""" get_up_percent: int - get_up_jitter: int + """Chance to press the side shown, before head trauma and earlier knockdowns take theirs.""" + get_up_jitter: float + """Spread of a get-up press around the beat, a standard deviation in ticks.""" clinch_percent: int taunt_percent: int exploit_percent: int @@ -179,8 +181,8 @@ class CpuProfile: finish_percent=0, admire_ticks=60, head_movement_percent=4, - get_up_percent=70, - get_up_jitter=6, + get_up_percent=106, + get_up_jitter=2.45, clinch_percent=15, taunt_percent=3, exploit_percent=0, @@ -211,8 +213,8 @@ class CpuProfile: finish_percent=20, admire_ticks=6, head_movement_percent=12, - get_up_percent=85, - get_up_jitter=3, + get_up_percent=145, + get_up_jitter=2.35, clinch_percent=40, taunt_percent=2, exploit_percent=50, @@ -243,8 +245,8 @@ class CpuProfile: finish_percent=30, admire_ticks=0, head_movement_percent=14, - get_up_percent=95, - get_up_jitter=1, + get_up_percent=145, + get_up_jitter=1.8, clinch_percent=65, taunt_percent=1, exploit_percent=80, @@ -1102,13 +1104,12 @@ def _movement( def _get_up(self, tick: int, me: FighterState) -> tuple[SemanticAction, ...]: prompt = me.get_up_prompt - if prompt is None or me.get_up_prompt_resolved: + if prompt is None: return () if me.get_up_window_start_tick != self._get_up_window: self._get_up_window = me.get_up_window_start_tick - centre = (me.get_up_window_start_tick + me.get_up_window_end_tick) // 2 - jitter = self.profile.get_up_jitter - self._get_up_press_tick = centre + self._rng.randint(-jitter, jitter) + beat = (me.get_up_window_start_tick + me.get_up_window_end_tick) // 2 + self._get_up_press_tick = beat + round(self._rng.gauss(0, self.profile.get_up_jitter)) accuracy = ( self.profile.get_up_percent - me.trauma.head // GET_UP_ACCURACY_TRAUMA_DIVISOR diff --git a/src/intelstream/hands/engine.py b/src/intelstream/hands/engine.py index ffa3f598..d2cbfac1 100644 --- a/src/intelstream/hands/engine.py +++ b/src/intelstream/hands/engine.py @@ -54,10 +54,17 @@ FLINCH_MINIMUM_DAMAGE, FOUL_SEPARATION, GET_UP_BASE, + GET_UP_FIRST_COUNT, + GET_UP_GOOD, + GET_UP_LATE_TICKS, GET_UP_PER_KNOCKDOWN, + GET_UP_PERFECT, + GET_UP_PERFECT_TICKS, GET_UP_STAMINA, GET_UP_STUN_TICKS, GET_UP_TRAUMA_DIVISOR, + GET_UP_WRONG, + GET_UP_ZONE_TICKS, GUARD_BLOCK_MINIMUM, GUARD_BREAK_STUN_TICKS, GUARD_DAMAGE_PERCENT, @@ -180,8 +187,6 @@ CLINCH_TICKS: Final = 24 FOUL_RECOVERY_TICKS: Final = 30 MAX_PENDING_ACTIONS: Final = 1 -GET_UP_WINDOW_START_OFFSET: Final = 3 -GET_UP_WINDOW_END_OFFSET: Final = 13 TAUNT_TICKS: Final = 40 MOVEMENT_FIXED_SCALE: Final = 1000 # Conditioning a punch costs is worked out in thousandths of a point, so a style's saving survives @@ -401,7 +406,7 @@ class FighterState: get_up_prompt: ActionKind | None = None get_up_window_start_tick: int = 0 get_up_window_end_tick: int = 0 - get_up_prompt_resolved: bool = False + get_up_next_prompt: ActionKind | None = None last_sequence: int = -1 held_input: InputCommand = field(default_factory=lambda: InputCommand(0, 0)) pending_actions: list[SemanticAction] = field(default_factory=list) @@ -2317,7 +2322,8 @@ def _knock_down( self._paused_fight_ticks = self.phase_ticks_remaining self.phase = MatchPhase.KNOCKDOWN self.phase_ticks_remaining = 10 * COUNT_TICK_INTERVAL - self._schedule_get_up_prompt(defender) + first_beat = self.tick + GET_UP_FIRST_COUNT * COUNT_TICK_INTERVAL + self._schedule_get_up_prompt(defender, first_beat, self._get_up_side(first_beat)) self._emit( "knockdown", attacker.player_id, @@ -2345,39 +2351,55 @@ def _get_up_required(self, fighter: FighterState) -> int: + fighter.trauma.head // GET_UP_TRAUMA_DIVISOR ) - def _schedule_get_up_prompt(self, fighter: FighterState) -> None: - fighter.get_up_prompt = ( - ActionKind.GET_UP_LEFT if self._rng.randrange(2) == 0 else ActionKind.GET_UP_RIGHT - ) - fighter.get_up_window_start_tick = self.tick + GET_UP_WINDOW_START_OFFSET - fighter.get_up_window_end_tick = self.tick + GET_UP_WINDOW_END_OFFSET - fighter.get_up_prompt_resolved = False + def _get_up_side(self, beat: int) -> ActionKind | None: + """The side to press on the number of the count that lands on `beat`; none if ten comes first.""" + if beat - (self.tick - self._knockdown_count_ticks) >= 10 * COUNT_TICK_INTERVAL: + return None + return ActionKind.GET_UP_LEFT if self._rng.randrange(2) == 0 else ActionKind.GET_UP_RIGHT - def _score_get_up_action(self, fighter: FighterState, action: MovementAction) -> None: - if action.kind not in (ActionKind.GET_UP_LEFT, ActionKind.GET_UP_RIGHT): - return - if fighter.get_up_prompt_resolved: - fighter.get_up_meter = max(0, fighter.get_up_meter - 1) - self._emit("get_up_input", fighter.player_id, detail="spam") - return - fighter.get_up_prompt_resolved = True - if action.kind is not fighter.get_up_prompt: - fighter.get_up_meter = max(0, fighter.get_up_meter - 4) - self._emit("get_up_input", fighter.player_id, detail="wrong") + def _schedule_get_up_prompt( + self, fighter: FighterState, beat: int, side: ActionKind | None + ) -> None: + """Makes the number on `beat` the one to press for, and draws the side of the number after + it, which the downed fighter sees a count ahead.""" + fighter.get_up_prompt = side + fighter.get_up_next_prompt = None + if side is None: return - if self.tick < fighter.get_up_window_start_tick: - fighter.get_up_meter = max(0, fighter.get_up_meter - 3) - self._emit("get_up_input", fighter.player_id, detail="early") + fighter.get_up_window_start_tick = beat - GET_UP_ZONE_TICKS + fighter.get_up_window_end_tick = beat + GET_UP_ZONE_TICKS + fighter.get_up_next_prompt = self._get_up_side(beat + COUNT_TICK_INTERVAL) + + def _score_get_up_action(self, fighter: FighterState, action: MovementAction) -> None: + """A prompt takes one attempt, the first press after the last prompt ended, and the next + prompt shows as soon as it is made. A press before that, during the fall or after the + attempt, does nothing.""" + prompt = fighter.get_up_prompt + if prompt is None or action.kind not in (ActionKind.GET_UP_LEFT, ActionKind.GET_UP_RIGHT): return - if self.tick > fighter.get_up_window_end_tick: - fighter.get_up_meter = max(0, fighter.get_up_meter - 3) - self._emit("get_up_input", fighter.player_id, detail="late") + beat = fighter.get_up_window_start_tick + GET_UP_ZONE_TICKS + if self.tick <= beat - COUNT_TICK_INTERVAL + GET_UP_ZONE_TICKS + GET_UP_LATE_TICKS: return - center = (fighter.get_up_window_start_tick + fighter.get_up_window_end_tick) // 2 - timing_bonus = max(0, 4 - abs(self.tick - center)) - gain = max(8, 20 - fighter.knockdowns * 2) + timing_bonus - fighter.get_up_meter += gain - self._emit("get_up_input", fighter.player_id, amount=gain, detail="timed") + before = fighter.get_up_meter + if action.kind is not prompt: + fighter.get_up_meter = max(0, before - GET_UP_WRONG) + detail = "wrong" + elif self.tick < fighter.get_up_window_start_tick: + detail = "early" + elif self.tick > fighter.get_up_window_end_tick: + detail = "late" + elif abs(self.tick - beat) <= GET_UP_PERFECT_TICKS: + fighter.get_up_meter += GET_UP_PERFECT + detail = "perfect" + else: + fighter.get_up_meter += GET_UP_GOOD + detail = "good" + self._emit( + "get_up_input", fighter.player_id, amount=fighter.get_up_meter - before, detail=detail + ) + self._schedule_get_up_prompt( + fighter, beat + COUNT_TICK_INTERVAL, fighter.get_up_next_prompt + ) def _advance_knockdown(self) -> None: if self._downed_id is None: @@ -2402,12 +2424,20 @@ def _advance_knockdown(self) -> None: self._emit("count", target_id=downed.player_id, amount=count) return self.phase_ticks_remaining -= 1 + if ( + downed.get_up_prompt is not None + and self.tick > downed.get_up_window_end_tick + GET_UP_LATE_TICKS + ): + # Nothing pressed for that number: the next one shows. + self._schedule_get_up_prompt( + downed, + downed.get_up_window_end_tick + COUNT_TICK_INTERVAL - GET_UP_ZONE_TICKS, + downed.get_up_next_prompt, + ) while downed.pending_actions: action = downed.pending_actions.pop(0) if isinstance(action, MovementAction): self._score_get_up_action(downed, action) - if self.tick > downed.get_up_window_end_tick: - self._schedule_get_up_prompt(downed) required = self._get_up_required(downed) if self.phase_ticks_remaining <= 0: # Ten: the count is over, however full the meter got on its last tick. @@ -2416,6 +2446,7 @@ def _advance_knockdown(self) -> None: downed.poise = min(self._poise_ceiling(downed), MAX_POISE // 2) downed.stamina = max(downed.stamina, min(downed.maximum_stamina, GET_UP_STAMINA)) downed.get_up_prompt = None + downed.get_up_next_prompt = None eight = self.tick + MANDATORY_COUNT * COUNT_TICK_INTERVAL - self._knockdown_count_ticks self._box_tick = max(eight, self.tick) + BOX_PAUSE_TICKS self._count_at_rise = count @@ -3327,6 +3358,7 @@ def _fighter_snapshot(self, fighter: FighterState) -> FighterSnapshot: get_up_count=self._get_up_count(), get_up_window_start_tick=fighter.get_up_window_start_tick, get_up_window_end_tick=fighter.get_up_window_end_tick, + get_up_next_prompt=fighter.get_up_next_prompt, last_input_sequence=fighter.last_sequence, injuries=self._listed_injuries(fighter), blood_volume=fighter.blood_volume, @@ -3388,7 +3420,7 @@ def _checksum(self, _fighters: tuple[FighterSnapshot, FighterSnapshot]) -> str: fighter.get_up_prompt, fighter.get_up_window_start_tick, fighter.get_up_window_end_tick, - fighter.get_up_prompt_resolved, + fighter.get_up_next_prompt, ], "last_action": [ fighter.last_action_id, diff --git a/src/intelstream/hands/protocol.py b/src/intelstream/hands/protocol.py index 2f38b191..deeb2816 100644 --- a/src/intelstream/hands/protocol.py +++ b/src/intelstream/hands/protocol.py @@ -23,7 +23,7 @@ Target, ) -PROTOCOL_VERSION = 6 +PROTOCOL_VERSION = 7 MAX_FRAME_BYTES = 4096 MAX_ACTIONS_PER_INPUT = 4 MAX_SERVER_FRAME_BYTES = 65_536 @@ -301,6 +301,7 @@ def snapshot_for_viewer(snapshot: EngineSnapshot, viewer_id: str | None) -> Engi get_up_required=0, get_up_window_start_tick=0, get_up_window_end_tick=0, + get_up_next_prompt=None, last_input_sequence=-1, ) for fighter in snapshot.fighters diff --git a/src/intelstream/hands/rules.py b/src/intelstream/hands/rules.py index feec2091..6698b362 100644 --- a/src/intelstream/hands/rules.py +++ b/src/intelstream/hands/rules.py @@ -130,6 +130,17 @@ def _load_manifest() -> dict[str, Any]: GET_UP_BASE: int = _MANIFEST["knockdown"]["get_up_base"] GET_UP_PER_KNOCKDOWN: int = _MANIFEST["knockdown"]["get_up_per_knockdown"] GET_UP_TRAUMA_DIVISOR: int = _MANIFEST["knockdown"]["get_up_trauma_divisor"] +# The get-up prompts: one on each number of the count from this one, each scored against the tick +# the number changes on (its beat). A press this many ticks either side of the beat is in the zone, +# this near it is perfect, and this many ticks after the zone it is late rather than the next +# prompt's. What a good, a perfect and a wrong-side press do to the meter. +GET_UP_FIRST_COUNT: int = _MANIFEST["knockdown"]["get_up_first_count"] +GET_UP_ZONE_TICKS: int = _MANIFEST["knockdown"]["get_up_zone_ticks"] +GET_UP_PERFECT_TICKS: int = _MANIFEST["knockdown"]["get_up_perfect_ticks"] +GET_UP_LATE_TICKS: int = _MANIFEST["knockdown"]["get_up_late_ticks"] +GET_UP_GOOD: int = _MANIFEST["knockdown"]["get_up_good"] +GET_UP_PERFECT: int = _MANIFEST["knockdown"]["get_up_perfect"] +GET_UP_WRONG: int = _MANIFEST["knockdown"]["get_up_wrong"] HEAD_TRAUMA_PER_DAMAGE_PERCENT: int = _MANIFEST["trauma"]["head_per_damage_percent"] BODY_TRAUMA_PER_DAMAGE_PERCENT: int = _MANIFEST["trauma"]["body_per_damage_percent"] EYE_TRAUMA_PER_DAMAGE_PERCENT: int = _MANIFEST["trauma"]["eye_per_damage_percent"] diff --git a/src/intelstream/hands/static/assets/hands.css b/src/intelstream/hands/static/assets/hands.css index bdcc2b42..f26100ec 100644 --- a/src/intelstream/hands/static/assets/hands.css +++ b/src/intelstream/hands/static/assets/hands.css @@ -1,2 +1,2 @@ -:root{color:#f2f6ff;font-synthesis:none;background:#07090e;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html,body,#app{width:100%;height:100%;margin:0;overflow:hidden}.activity{background:#080b12;width:100%;height:100%;min-height:320px;position:relative}.fight{touch-action:none;width:100%;height:100%;display:block}.topbar{top:max(8px,env(safe-area-inset-top));-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);letter-spacing:.03em;white-space:nowrap;background:#07101ad9;border:1px solid #ffffff24;border-radius:3px;align-items:center;gap:12px;padding:7px 10px;display:flex;position:absolute;left:50%;transform:translate(-50%)}.topbar strong{color:#f1cc72;letter-spacing:.18em}.topbar span{color:#aebbd0;font-size:12px}.topbar .spectator-role{color:#f1cc72;font-weight:800}.spectator-role[hidden]{display:none}.topbar button,.panel button{color:#eaf1ff;cursor:pointer;background:#172334;border:1px solid #ffffff2e;border-radius:3px;padding:6px 10px}.overlay{left:50%;bottom:max(18px,env(safe-area-inset-bottom));text-align:center;pointer-events:none;justify-items:center;gap:9px;max-width:min(90vw,540px);display:grid;position:absolute;transform:translate(-50%)}.overlay[hidden]{display:none}.overlay[data-raised]{bottom:max(124px,calc(env(safe-area-inset-bottom) + 112px))}.overlay[data-result]{bottom:max(26px,calc(env(safe-area-inset-bottom) + 14px))}.status[hidden]{display:none}.status{color:#e8effc;background:#07101adf;border:1px solid #ffffff1f;border-radius:3px;margin:0;padding:8px 13px;font-weight:600}.hint{letter-spacing:.02em;color:#aebbd0;background:#07101ab8;border:1px solid #ffffff14;border-radius:3px;margin:0;padding:6px 12px;font-size:12px}.hint[hidden]{display:none}.primary{pointer-events:auto;color:#081018;cursor:pointer;background:#f1cc72;border:0;border-radius:3px;padding:10px 18px;font-weight:800}.primary:disabled{opacity:.55;cursor:wait}.panel{z-index:4;background:#08111cf2;border:1px solid #ffffff2b;width:min(390px,100vw - 28px);max-height:calc(100vh - 80px);padding:16px 20px;position:absolute;top:58px;right:14px;overflow:auto;box-shadow:0 14px 45px #0009}.panel h2{color:#f1cc72;margin:0 0 10px;font-size:17px}.panel ul{color:#d7e0ee;margin:0;padding-left:19px;font-size:13px;line-height:1.55}.settings{gap:12px;display:grid}.settings[hidden],.panel[hidden]{display:none}.diagnostics h3{color:#f1cc72;margin:12px 0 4px;font-size:13px}.diagnostics pre{white-space:pre-wrap;word-break:break-word;color:#c8d3e6;background:#0c1622;border:1px solid #ffffff14;border-radius:3px;margin:0 0 8px;padding:8px;font-size:11px;line-height:1.45}.settings label{justify-content:space-between;align-items:center;gap:14px;font-size:14px;display:flex}.settings input[type=range]{width:190px}.settings select{color:#f2f6ff;background:#172334;border:1px solid #ffffff2e;padding:5px}.sr-summary{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.lab-controls{left:50%;bottom:max(10px,env(safe-area-inset-bottom));color:#d7e0ee;white-space:nowrap;background:#07101ae6;border:1px solid #ffffff24;border-radius:3px;align-items:center;gap:10px;padding:8px 12px;font-size:12px;display:flex;position:absolute;transform:translate(-50%)}.lab-controls button,.lab-controls select{color:#eaf1ff;cursor:pointer;background:#172334;border:1px solid #ffffff2e;border-radius:3px;padding:5px 9px;font-size:12px}.lab-controls input[type=number]{color:#eaf1ff;background:#0c1622;border:1px solid #ffffff2e;border-radius:3px;width:56px;padding:4px}.lab-controls label{cursor:pointer;align-items:center;gap:4px;display:flex}.lab-controls [data-lab-metrics]{color:#8fa3c8;text-overflow:ellipsis;max-width:40vw;overflow:hidden}@media (width<=700px){.topbar{flex-wrap:wrap;justify-content:center;left:8px;right:8px;transform:none}.topbar span:not(.spectator-role){display:none}.topbar button{padding:5px 8px}.panel{top:74px}.status{font-size:13px}.overlay{bottom:10px}.overlay[data-raised]{bottom:116px}.overlay[data-result]{bottom:26px}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}.model-panel{width:min(430px,100vw - 28px);max-height:calc(100vh - 80px);top:58px;left:14px;right:auto}.model-clips{gap:4px;max-height:200px;display:grid;overflow:auto}.model-clips button{text-align:left;color:#eaf1ff;cursor:pointer;background:#172334;border:1px solid #ffffff2e;border-radius:3px;padding:5px 8px;font-size:12px}.model-clips button.active{color:#f1cc72;border-color:#f1cc72}.model-row{align-items:center;gap:10px;margin-top:8px;font-size:12px;display:flex}.model-row label{align-items:center;gap:6px;display:flex}.model-inventory,.model-warnings{color:#c8d3e6;white-space:pre-wrap;max-height:220px;font-size:10px;line-height:1.4;overflow:auto}.model-credit{color:#9cabc1;margin:2px 0 0;font-size:11px;line-height:1.35}.model-credit a{color:#c7d5eb}.touch-controls{pointer-events:none;z-index:3;-webkit-user-select:none;user-select:none;font-family:Inter,system-ui,sans-serif;position:absolute;inset:0}.touch-controls.disabled{display:none}.touch-controls.resting{opacity:.4}.touch-stick{left:0;top:calc(max(8px,env(safe-area-inset-top)) + 48px);pointer-events:auto;touch-action:none;width:46%;position:absolute;bottom:0}.touch-stick-base{opacity:0;background:#0a121f66;border:2px solid #fff5;border-radius:50%;width:132px;height:132px;margin:-66px 0 0 -66px;transition:opacity .12s;position:absolute}.touch-stick-base.active{opacity:1}.touch-stick-knob{background:#f1cc72cc;border-radius:50%;width:56px;height:56px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 2px 10px #0008}.touch-pads{right:max(12px,env(safe-area-inset-right));bottom:max(118px,calc(env(safe-area-inset-bottom) + 118px));pointer-events:none;touch-action:none;gap:8px;display:grid;position:absolute}.touch-pad,.touch-mod,.touch-move{pointer-events:auto}.touch-grid{grid-template-columns:repeat(2,92px);gap:6px;display:grid}.touch-pad{color:#fff;letter-spacing:.01em;cursor:pointer;background:linear-gradient(90deg,#1d4ed8aa 0 50%,#b91c1caa 50% 100%);border:1px solid #fff4;border-radius:12px;justify-content:space-between;align-items:center;height:56px;padding:0 7px;font-size:11px;font-weight:800;display:flex;position:relative}.touch-pad .touch-pad-hand{opacity:.8;font-size:10px}.touch-pad .touch-pad-label{font-size:10px}.touch-pad.pressed{filter:brightness(1.5);transform:scale(.96)}.touch-mods{grid-template-columns:repeat(2,92px);gap:6px;display:grid}.touch-mod{color:#e8effc;letter-spacing:.06em;cursor:pointer;background:#0a121fcc;border:1px solid #fff4;border-radius:9px;height:32px;padding:0;font-size:11px;font-weight:800}.touch-mod.pressed{color:#081018;background:#f1cc72}.touch-controls.knockdown .touch-pad{background:linear-gradient(90deg,#1f8a4caa 0 50%,#1f8a4caa 50% 100%)}.touch-moves{grid-template-columns:repeat(3,1fr);grid-template-areas:"sl wv sr""pl cl cl";gap:6px;margin-bottom:4px;display:grid}.touch-move{color:#d8f3ee;letter-spacing:.05em;white-space:nowrap;cursor:pointer;background:#0a1a20cc;border:1px solid #7fd3c766;border-radius:9px;height:30px;padding:0;font-size:10px;font-weight:800}.touch-move.pressed{color:#081018;background:#f1cc72}.touch-move[data-move=slip_left]{grid-area:sl}.touch-move[data-move=weave]{grid-area:wv}.touch-move[data-move=slip_right]{grid-area:sr}.touch-move[data-move=pull]{grid-area:pl}.touch-move[data-move=clinch]{grid-area:cl}.touch-controls.knockdown .touch-move,.touch-controls.knockdown .touch-mod{visibility:hidden}@media (orientation:landscape){.touch-pads{grid-template-columns:auto auto;grid-template-areas:"moves mods""moves grid";column-gap:12px}.touch-moves{grid-area:moves;grid-template-columns:repeat(2,58px);grid-template-areas:"sl sr""wv pl""cl cl";align-self:end;margin-bottom:0}.touch-mods{grid-area:mods}.touch-grid{grid-area:grid}}@media (orientation:landscape) and (height<=350px){.touch-pads{bottom:max(112px,calc(env(safe-area-inset-bottom) + 112px));row-gap:6px}.touch-grid,.touch-mods,.touch-moves{gap:4px}.touch-pad{height:44px}.touch-mod,.touch-move{height:26px}}@media (pointer:fine) and (hover:hover){.touch-controls{display:none}}.corner{z-index:3;left:50%;bottom:max(124px,calc(env(safe-area-inset-bottom) + 112px));text-align:center;background:#07101aeb;border:1px solid #f1cc7259;border-radius:3px;gap:8px;width:min(660px,100vw - 24px);padding:10px 12px 9px;display:grid;position:absolute;transform:translate(-50%);box-shadow:0 10px 30px #0009}.corner[hidden]{display:none}.corner-title{color:#f1cc72;letter-spacing:.18em;margin:0;font-size:12px;font-weight:800}.corner-choices{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.corner-choices button{text-align:left;color:#eaf1ff;cursor:pointer;font:inherit;background:#172334;border:1px solid #ffffff2e;border-radius:3px;grid-template-columns:auto 1fr;align-items:center;gap:2px 9px;padding:8px 10px;display:grid}.corner-choices kbd{color:#f1cc72;background:#0b1520;border:1px solid #ffffff38;border-radius:3px;grid-row:span 2;place-items:center;width:26px;height:26px;font:800 13px ui-monospace,monospace;display:grid}.corner-choices strong{font-size:13px}.corner-choices span{color:#aebbd0;font-size:11px}.corner-choices button:hover:not(:disabled){border-color:#f1cc72aa}.corner-choices button:disabled{cursor:default;opacity:.42}.corner-choices button[data-picked]{opacity:1;background:#272515;border-color:#f1cc72;box-shadow:inset 0 0 0 1px #f1cc72}.corner-status{color:#d7e0ee;margin:0;font-size:12px}@media (width<=560px){.corner{bottom:max(112px,calc(env(safe-area-inset-bottom) + 100px));padding:8px 9px}.corner-choices{grid-template-columns:1fr;gap:6px}.corner-choices button{padding:6px 9px}}@media (height<=460px){.corner{bottom:max(116px,calc(env(safe-area-inset-bottom) + 104px));gap:4px;width:min(600px,100vw - 24px);padding:5px 8px}.corner-title{font-size:10px}.corner-choices{gap:6px}.corner-choices button{column-gap:7px;padding:4px 7px}.corner-choices kbd{width:22px;height:22px;font-size:12px}.corner-choices strong{font-size:12px}.corner-choices span{font-size:10px}.corner-status{font-size:11px}}.cpu-picker{pointer-events:auto;background:#07101adf;border:1px solid #ffffff1f;border-radius:3px;justify-items:center;gap:8px;width:min(90vw,500px);padding:10px 12px;display:grid}.cpu-picker[hidden]{display:none}.cpu-picker p{letter-spacing:.04em;color:#f1cc72;margin:0;font-size:13px;font-weight:800}.cpu-levels{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;width:100%;display:grid}.cpu-levels button{color:#eaf1ff;cursor:pointer;min-height:52px;font:inherit;text-align:center;background:#172334;border:1px solid #ffffff2e;border-radius:3px;align-content:center;gap:3px;padding:8px 6px;display:grid}.cpu-levels button strong{letter-spacing:.03em;font-size:14px}.cpu-levels button span{color:#aebbd0;font-size:11px;line-height:1.25}.cpu-levels button:hover,.cpu-levels button:focus-visible{border-color:#f1cc72;outline:none}@media (height<=480px){.cpu-picker{gap:5px;padding:6px 10px}.cpu-levels button{gap:1px;min-height:40px;padding:5px 6px}.cpu-levels button strong{font-size:13px}.cpu-levels button span{font-size:10px;line-height:1.15}}.overlay[data-touch-hint]{left:max(12px,env(safe-area-inset-left));max-width:min(44vw,300px,calc(100vw - 226px - env(safe-area-inset-left) - env(safe-area-inset-right)));text-align:left;justify-items:start;transform:none}@media (orientation:landscape){.overlay[data-touch-hint]{max-width:min(44vw,300px,calc(100vw - 360px - env(safe-area-inset-left) - env(safe-area-inset-right)))}}.overlay[data-touch-hint] .hint{font-size:11px;line-height:1.35}.panel h3{letter-spacing:.08em;text-transform:uppercase;color:#f1cc72;margin:12px 0 6px;font-size:12px}.panel h3:first-of-type{margin-top:4px}details.diagnostics summary{cursor:pointer;color:#f1cc72;font-size:13px;font-weight:700}details.diagnostics[open] summary{margin-bottom:6px}.style-picker{z-index:3;text-align:center;background:#07101af2;border:1px solid #f1cc7266;border-radius:3px;gap:10px;width:min(980px,100vw - 24px);max-height:calc(100% - 132px);padding:12px 14px;display:grid;position:absolute;top:50%;left:50%;overflow:auto;transform:translate(-50%,-50%);box-shadow:0 14px 40px #000b}.style-picker[hidden]{display:none}.style-picker header{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.style-title{color:#f1cc72;letter-spacing:.18em;margin:0;font-size:13px;font-weight:800}.style-clock{color:#eaf1ff;margin:0;font:800 15px ui-monospace,monospace}.style-cards{grid-template-columns:repeat(5,1fr);gap:8px;display:grid}.style-cards button{text-align:left;color:#eaf1ff;cursor:pointer;font:inherit;background:#172334;border:1px solid #ffffff2e;border-radius:3px;grid-template-rows:auto auto 1fr auto;gap:5px;padding:10px;display:grid}.style-cards kbd{color:#f1cc72;background:#0b1520;border:1px solid #ffffff38;border-radius:3px;justify-self:start;place-items:center;width:22px;height:22px;font:800 12px ui-monospace,monospace;display:grid}.style-cards strong{font-size:14px}.style-cards span{color:#aebbd0;font-size:11px;line-height:1.35}.style-stats{gap:3px;margin:2px 0 0;padding:0;list-style:none;display:grid}.style-stats li{grid-template-columns:66px 1fr;align-items:center;gap:6px;display:grid}.style-stats small{letter-spacing:.05em;color:#8fa3c8;text-transform:uppercase;font-size:9px}.style-stats i{background:linear-gradient(90deg,#f1cc72,#d98a3a);border-radius:2px;height:5px;display:block}.style-stats i[data-value="1"]{width:20%}.style-stats i[data-value="2"]{width:40%}.style-stats i[data-value="3"]{width:60%}.style-stats i[data-value="4"]{width:80%}.style-stats i[data-value="5"]{width:100%}.style-cards button:hover:not(:disabled){border-color:#f1cc72aa}.style-cards button:disabled{cursor:default;opacity:.5}.style-cards button[data-chosen]{opacity:1;background:#272515;border-color:#f1cc72;box-shadow:inset 0 0 0 1px #f1cc72}.style-status{color:#d7e0ee;margin:0;font-size:12px}@media (width<=700px){.style-picker{top:auto;bottom:max(12px,env(safe-area-inset-bottom));max-height:calc(100% - 96px);padding:9px 10px;transform:translate(-50%)}.style-cards{grid-template-columns:1fr 1fr;gap:6px}.style-cards button{grid-template-rows:auto 1fr;gap:3px;padding:8px 9px}.style-cards kbd,.style-stats{display:none}.style-cards strong{font-size:13px}.style-cards span{font-size:11px}.style-cards button:last-child{grid-column:1/-1}}@media (height<=480px){.style-picker{gap:5px;max-height:calc(100% - 60px);padding:6px 9px;top:auto;bottom:6px;transform:translate(-50%)}.style-cards{grid-template-columns:repeat(5,1fr);gap:5px}.style-cards button{gap:2px;padding:5px 6px}.style-cards span{display:none}.style-cards button:last-child{grid-column:auto}.style-stats{gap:1px;display:grid}.style-stats li{grid-template-columns:52px 1fr}.style-stats small{font-size:8px}} +:root{color:#f2f6ff;font-synthesis:none;background:#07090e;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html,body,#app{width:100%;height:100%;margin:0;overflow:hidden}.activity{background:#080b12;width:100%;height:100%;min-height:320px;position:relative}.fight{touch-action:none;width:100%;height:100%;display:block}.topbar{top:max(8px,env(safe-area-inset-top));-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);letter-spacing:.03em;white-space:nowrap;background:#07101ad9;border:1px solid #ffffff24;border-radius:3px;align-items:center;gap:12px;padding:7px 10px;display:flex;position:absolute;left:50%;transform:translate(-50%)}.topbar strong{color:#f1cc72;letter-spacing:.18em}.topbar span{color:#aebbd0;font-size:12px}.topbar .spectator-role{color:#f1cc72;font-weight:800}.spectator-role[hidden]{display:none}.topbar button,.panel button{color:#eaf1ff;cursor:pointer;background:#172334;border:1px solid #ffffff2e;border-radius:3px;padding:6px 10px}.overlay{left:50%;bottom:max(18px,env(safe-area-inset-bottom));text-align:center;pointer-events:none;justify-items:center;gap:9px;max-width:min(90vw,540px);display:grid;position:absolute;transform:translate(-50%)}.overlay[hidden]{display:none}.overlay[data-raised]{bottom:max(124px,calc(env(safe-area-inset-bottom) + 112px))}.overlay[data-result]{bottom:max(26px,calc(env(safe-area-inset-bottom) + 14px))}.status[hidden]{display:none}.status{color:#e8effc;background:#07101adf;border:1px solid #ffffff1f;border-radius:3px;margin:0;padding:8px 13px;font-weight:600}.hint{letter-spacing:.02em;color:#aebbd0;background:#07101ab8;border:1px solid #ffffff14;border-radius:3px;margin:0;padding:6px 12px;font-size:12px}.hint[hidden]{display:none}.primary{pointer-events:auto;color:#081018;cursor:pointer;background:#f1cc72;border:0;border-radius:3px;padding:10px 18px;font-weight:800}.primary:disabled{opacity:.55;cursor:wait}.panel{z-index:4;background:#08111cf2;border:1px solid #ffffff2b;width:min(390px,100vw - 28px);max-height:calc(100vh - 80px);padding:16px 20px;position:absolute;top:58px;right:14px;overflow:auto;box-shadow:0 14px 45px #0009}.panel h2{color:#f1cc72;margin:0 0 10px;font-size:17px}.panel ul{color:#d7e0ee;margin:0;padding-left:19px;font-size:13px;line-height:1.55}.settings{gap:12px;display:grid}.settings[hidden],.panel[hidden]{display:none}.diagnostics h3{color:#f1cc72;margin:12px 0 4px;font-size:13px}.diagnostics pre{white-space:pre-wrap;word-break:break-word;color:#c8d3e6;background:#0c1622;border:1px solid #ffffff14;border-radius:3px;margin:0 0 8px;padding:8px;font-size:11px;line-height:1.45}.settings label{justify-content:space-between;align-items:center;gap:14px;font-size:14px;display:flex}.settings input[type=range]{width:190px}.settings select{color:#f2f6ff;background:#172334;border:1px solid #ffffff2e;padding:5px}.sr-summary{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.lab-controls{left:50%;bottom:max(10px,env(safe-area-inset-bottom));color:#d7e0ee;white-space:nowrap;background:#07101ae6;border:1px solid #ffffff24;border-radius:3px;align-items:center;gap:10px;padding:8px 12px;font-size:12px;display:flex;position:absolute;transform:translate(-50%)}.lab-controls button,.lab-controls select{color:#eaf1ff;cursor:pointer;background:#172334;border:1px solid #ffffff2e;border-radius:3px;padding:5px 9px;font-size:12px}.lab-controls input[type=number]{color:#eaf1ff;background:#0c1622;border:1px solid #ffffff2e;border-radius:3px;width:56px;padding:4px}.lab-controls label{cursor:pointer;align-items:center;gap:4px;display:flex}.lab-controls [data-lab-metrics]{color:#8fa3c8;text-overflow:ellipsis;max-width:40vw;overflow:hidden}@media (width<=700px){.topbar{flex-wrap:wrap;justify-content:center;left:8px;right:8px;transform:none}.topbar span:not(.spectator-role){display:none}.topbar button{padding:5px 8px}.panel{top:74px}.status{font-size:13px}.overlay{bottom:10px}.overlay[data-raised]{bottom:116px}.overlay[data-result]{bottom:26px}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}.model-panel{width:min(430px,100vw - 28px);max-height:calc(100vh - 80px);top:58px;left:14px;right:auto}.model-clips{gap:4px;max-height:200px;display:grid;overflow:auto}.model-clips button{text-align:left;color:#eaf1ff;cursor:pointer;background:#172334;border:1px solid #ffffff2e;border-radius:3px;padding:5px 8px;font-size:12px}.model-clips button.active{color:#f1cc72;border-color:#f1cc72}.model-row{align-items:center;gap:10px;margin-top:8px;font-size:12px;display:flex}.model-row label{align-items:center;gap:6px;display:flex}.model-inventory,.model-warnings{color:#c8d3e6;white-space:pre-wrap;max-height:220px;font-size:10px;line-height:1.4;overflow:auto}.model-credit{color:#9cabc1;margin:2px 0 0;font-size:11px;line-height:1.35}.model-credit a{color:#c7d5eb}.touch-controls{pointer-events:none;z-index:3;-webkit-user-select:none;user-select:none;font-family:Inter,system-ui,sans-serif;position:absolute;inset:0}.touch-controls.disabled{display:none}.touch-controls.resting{opacity:.4}.touch-stick{left:0;top:calc(max(8px,env(safe-area-inset-top)) + 48px);pointer-events:auto;touch-action:none;width:46%;position:absolute;bottom:0}.touch-stick-base{opacity:0;background:#0a121f66;border:2px solid #fff5;border-radius:50%;width:132px;height:132px;margin:-66px 0 0 -66px;transition:opacity .12s;position:absolute}.touch-stick-base.active{opacity:1}.touch-stick-knob{background:#f1cc72cc;border-radius:50%;width:56px;height:56px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 2px 10px #0008}.touch-pads{right:max(12px,env(safe-area-inset-right));bottom:max(118px,calc(env(safe-area-inset-bottom) + 118px));pointer-events:none;touch-action:none;gap:8px;display:grid;position:absolute}.touch-pad,.touch-mod,.touch-move{pointer-events:auto}.touch-grid{grid-template-columns:repeat(2,92px);gap:6px;display:grid}.touch-pad{color:#fff;letter-spacing:.01em;cursor:pointer;background:linear-gradient(90deg,#1d4ed8aa 0 50%,#b91c1caa 50% 100%);border:1px solid #fff4;border-radius:12px;justify-content:space-between;align-items:center;height:56px;padding:0 7px;font-size:11px;font-weight:800;display:flex;position:relative}.touch-pad .touch-pad-hand{opacity:.8;font-size:10px}.touch-pad .touch-pad-label{font-size:10px}.touch-pad.pressed{filter:brightness(1.5);transform:scale(.96)}.touch-mods{grid-template-columns:repeat(2,92px);gap:6px;display:grid}.touch-mod{color:#e8effc;letter-spacing:.06em;cursor:pointer;background:#0a121fcc;border:1px solid #fff4;border-radius:9px;height:32px;padding:0;font-size:11px;font-weight:800}.touch-mod.pressed{color:#081018;background:#f1cc72}.touch-controls.knockdown .touch-pad{background:linear-gradient(90deg,#1f8a4caa 0 50%,#1f8a4caa 50% 100%)}.touch-moves{grid-template-columns:repeat(3,1fr);grid-template-areas:"sl wv sr""pl cl cl";gap:6px;margin-bottom:4px;display:grid}.touch-move{color:#d8f3ee;letter-spacing:.05em;white-space:nowrap;cursor:pointer;background:#0a1a20cc;border:1px solid #7fd3c766;border-radius:9px;height:30px;padding:0;font-size:10px;font-weight:800}.touch-move.pressed{color:#081018;background:#f1cc72}.touch-move[data-move=slip_left]{grid-area:sl}.touch-move[data-move=weave]{grid-area:wv}.touch-move[data-move=slip_right]{grid-area:sr}.touch-move[data-move=pull]{grid-area:pl}.touch-move[data-move=clinch]{grid-area:cl}.touch-controls.knockdown .touch-move,.touch-controls.knockdown .touch-mod{visibility:hidden}@media (orientation:landscape){.touch-pads{grid-template-columns:auto auto;grid-template-areas:"moves mods""moves grid";column-gap:12px}.touch-moves{grid-area:moves;grid-template-columns:repeat(2,58px);grid-template-areas:"sl sr""wv pl""cl cl";align-self:end;margin-bottom:0}.touch-mods{grid-area:mods}.touch-grid{grid-area:grid}}@media (orientation:landscape) and (height<=350px){.touch-pads{bottom:max(112px,calc(env(safe-area-inset-bottom) + 112px));row-gap:6px}.touch-grid,.touch-mods,.touch-moves{gap:4px}.touch-pad{height:44px}.touch-mod,.touch-move{height:26px}}@media (pointer:fine) and (hover:hover){.touch-controls{display:none}}.corner{z-index:3;left:50%;bottom:max(124px,calc(env(safe-area-inset-bottom) + 112px));text-align:center;background:#07101aeb;border:1px solid #f1cc7259;border-radius:3px;gap:8px;width:min(660px,100vw - 24px);padding:10px 12px 9px;display:grid;position:absolute;transform:translate(-50%);box-shadow:0 10px 30px #0009}.corner[hidden]{display:none}.corner-title{color:#f1cc72;letter-spacing:.18em;margin:0;font-size:12px;font-weight:800}.corner-choices{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.corner-choices button{text-align:left;color:#eaf1ff;cursor:pointer;font:inherit;background:#172334;border:1px solid #ffffff2e;border-radius:3px;grid-template-columns:auto 1fr;align-items:center;gap:2px 9px;padding:8px 10px;display:grid}.corner-choices kbd{color:#f1cc72;background:#0b1520;border:1px solid #ffffff38;border-radius:3px;grid-row:span 2;place-items:center;width:26px;height:26px;font:800 13px ui-monospace,monospace;display:grid}.corner-choices strong{font-size:13px}.corner-choices span{color:#aebbd0;font-size:11px}.corner-choices button:hover:not(:disabled){border-color:#f1cc72aa}.corner-choices button:disabled{cursor:default;opacity:.42}.corner-choices button[data-picked]{opacity:1;background:#272515;border-color:#f1cc72;box-shadow:inset 0 0 0 1px #f1cc72}.corner-status{color:#d7e0ee;margin:0;font-size:12px}@media (width<=560px){.corner{bottom:max(112px,calc(env(safe-area-inset-bottom) + 100px));padding:8px 9px}.corner-choices{grid-template-columns:1fr;gap:6px}.corner-choices button{padding:6px 9px}}@media (height<=460px){.corner{bottom:max(116px,calc(env(safe-area-inset-bottom) + 104px));gap:4px;width:min(600px,100vw - 24px);padding:5px 8px}.corner-title{font-size:10px}.corner-choices{gap:6px}.corner-choices button{column-gap:7px;padding:4px 7px}.corner-choices kbd{width:22px;height:22px;font-size:12px}.corner-choices strong{font-size:12px}.corner-choices span{font-size:10px}.corner-status{font-size:11px}}.cpu-picker{pointer-events:auto;background:#07101adf;border:1px solid #ffffff1f;border-radius:3px;justify-items:center;gap:8px;width:min(90vw,500px);padding:10px 12px;display:grid}.cpu-picker[hidden]{display:none}.cpu-picker p{letter-spacing:.04em;color:#f1cc72;margin:0;font-size:13px;font-weight:800}.cpu-levels{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;width:100%;display:grid}.cpu-levels button{color:#eaf1ff;cursor:pointer;min-height:52px;font:inherit;text-align:center;background:#172334;border:1px solid #ffffff2e;border-radius:3px;align-content:center;gap:3px;padding:8px 6px;display:grid}.cpu-levels button strong{letter-spacing:.03em;font-size:14px}.cpu-levels button span{color:#aebbd0;font-size:11px;line-height:1.25}.cpu-levels button:hover,.cpu-levels button:focus-visible{border-color:#f1cc72;outline:none}@media (height<=480px){.cpu-picker{gap:5px;padding:6px 10px}.cpu-levels button{gap:1px;min-height:40px;padding:5px 6px}.cpu-levels button strong{font-size:13px}.cpu-levels button span{font-size:10px;line-height:1.15}}.overlay[data-touch-hint]{left:max(12px,env(safe-area-inset-left));max-width:min(44vw,300px,calc(100vw - 226px - env(safe-area-inset-left) - env(safe-area-inset-right)));text-align:left;justify-items:start;transform:none}@media (orientation:landscape){.overlay[data-touch-hint]{max-width:min(44vw,300px,calc(100vw - 360px - env(safe-area-inset-left) - env(safe-area-inset-right)))}}.overlay[data-touch-hint] .hint{font-size:11px;line-height:1.35}.panel h3{letter-spacing:.08em;text-transform:uppercase;color:#f1cc72;margin:12px 0 6px;font-size:12px}.panel h3:first-of-type{margin-top:4px}details.diagnostics summary{cursor:pointer;color:#f1cc72;font-size:13px;font-weight:700}details.diagnostics[open] summary{margin-bottom:6px}.touch-getup{pointer-events:none;display:none;position:absolute;inset:0}.knockdown .touch-getup{display:block}.knockdown .touch-pads,.knockdown .touch-stick{display:none}.touch-getup-pad{pointer-events:auto;touch-action:none;color:#eaf1ff;letter-spacing:.06em;opacity:.4;cursor:pointer;background:#1d2a3c;border:2px solid #ffffff40;border-radius:16px;font:900 22px Inter,system-ui,sans-serif;position:absolute}.touch-getup-pad.wanted{opacity:1;color:#fff;background:#23a85c;border-color:#d8ffe6;box-shadow:0 0 0 3px #7dffa8,0 6px 18px #0009}.style-picker{z-index:3;text-align:center;background:#07101af2;border:1px solid #f1cc7266;border-radius:3px;gap:10px;width:min(980px,100vw - 24px);max-height:calc(100% - 132px);padding:12px 14px;display:grid;position:absolute;top:50%;left:50%;overflow:auto;transform:translate(-50%,-50%);box-shadow:0 14px 40px #000b}.style-picker[hidden]{display:none}.style-picker header{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.style-title{color:#f1cc72;letter-spacing:.18em;margin:0;font-size:13px;font-weight:800}.style-clock{color:#eaf1ff;margin:0;font:800 15px ui-monospace,monospace}.style-cards{grid-template-columns:repeat(5,1fr);gap:8px;display:grid}.style-cards button{text-align:left;color:#eaf1ff;cursor:pointer;font:inherit;background:#172334;border:1px solid #ffffff2e;border-radius:3px;grid-template-rows:auto auto 1fr auto;gap:5px;padding:10px;display:grid}.style-cards kbd{color:#f1cc72;background:#0b1520;border:1px solid #ffffff38;border-radius:3px;justify-self:start;place-items:center;width:22px;height:22px;font:800 12px ui-monospace,monospace;display:grid}.style-cards strong{font-size:14px}.style-cards span{color:#aebbd0;font-size:11px;line-height:1.35}.style-stats{gap:3px;margin:2px 0 0;padding:0;list-style:none;display:grid}.style-stats li{grid-template-columns:66px 1fr;align-items:center;gap:6px;display:grid}.style-stats small{letter-spacing:.05em;color:#8fa3c8;text-transform:uppercase;font-size:9px}.style-stats i{background:linear-gradient(90deg,#f1cc72,#d98a3a);border-radius:2px;height:5px;display:block}.style-stats i[data-value="1"]{width:20%}.style-stats i[data-value="2"]{width:40%}.style-stats i[data-value="3"]{width:60%}.style-stats i[data-value="4"]{width:80%}.style-stats i[data-value="5"]{width:100%}.style-cards button:hover:not(:disabled){border-color:#f1cc72aa}.style-cards button:disabled{cursor:default;opacity:.5}.style-cards button[data-chosen]{opacity:1;background:#272515;border-color:#f1cc72;box-shadow:inset 0 0 0 1px #f1cc72}.style-status{color:#d7e0ee;margin:0;font-size:12px}@media (width<=700px){.style-picker{top:auto;bottom:max(12px,env(safe-area-inset-bottom));max-height:calc(100% - 96px);padding:9px 10px;transform:translate(-50%)}.style-cards{grid-template-columns:1fr 1fr;gap:6px}.style-cards button{grid-template-rows:auto 1fr;gap:3px;padding:8px 9px}.style-cards kbd,.style-stats{display:none}.style-cards strong{font-size:13px}.style-cards span{font-size:11px}.style-cards button:last-child{grid-column:1/-1}}@media (height<=480px){.style-picker{gap:5px;max-height:calc(100% - 60px);padding:6px 9px;top:auto;bottom:6px;transform:translate(-50%)}.style-cards{grid-template-columns:repeat(5,1fr);gap:5px}.style-cards button{gap:2px;padding:5px 6px}.style-cards span{display:none}.style-cards button:last-child{grid-column:auto}.style-stats{gap:1px;display:grid}.style-stats li{grid-template-columns:52px 1fr}.style-stats small{font-size:8px}} /*$vite$:1*/ \ No newline at end of file diff --git a/src/intelstream/hands/static/assets/hands.js b/src/intelstream/hands/static/assets/hands.js index 6194898e..2cd12516 100644 --- a/src/intelstream/hands/static/assets/hands.js +++ b/src/intelstream/hands/static/assets/hands.js @@ -1,8 +1,19 @@ -var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var n={format:2,tick_rate:30,ring:{half_width:500,half_height:500,fighter_radius:38},limits:{max_stamina:1e3,max_conditioning:1e3,max_guard:700,max_poise:600},action_buffer_ticks:8,facing:{scale:1e3,turn_degrees_per_second:110},movement:{max_speed:10,blend_percent:75,recovery_speed_percent:60},evasion:{ticks:7,stamina:15},combos:{recovery_cancel_percent:50,chains:[[`jab`,`straight`],[`jab`,`hook`],[`straight`,`hook`],[`hook`,`uppercut`],[`uppercut`,`hook`]]},knockdown:{referee_walk_speed:9,count_ticks:20,mandatory_count:5,box_pause_ticks:20,get_up_stun_ticks:12,get_up_stamina:600,get_up_base:30,get_up_per_knockdown:16,get_up_trauma_divisor:28},countdown:{opening_ticks:90},tired:{startup_ticks:1,recovery_ticks:2,impact_percent:70},foul:{separation:45},hitstop_ms:{hit:78,block:45,power:140},fatigue_scaling:{startup_formula:`max(2, startup * 100 // fatigue - lead_jab_bonus)`,recovery_formula:`max(3, recovery * 100 // fatigue)`,lead_jab_bonus:1,rear_straight_impact_bonus:8},punches:{jab:{startup:3,active:2,recovery:4,reach:150,lateral_arc:42,impact:34,stamina_cost:25,whiff_cost:9,guard_damage:44,poise_damage:35,combo_window:7,startup_vulnerability:1,recovery_vulnerability:2},straight:{startup:4,active:2,recovery:6,reach:168,lateral_arc:38,impact:52,stamina_cost:39,whiff_cost:14,guard_damage:66,poise_damage:58,combo_window:8,startup_vulnerability:2,recovery_vulnerability:3},hook:{startup:5,active:2,recovery:7,reach:126,lateral_arc:92,impact:64,stamina_cost:47,whiff_cost:18,guard_damage:82,poise_damage:72,combo_window:9,startup_vulnerability:3,recovery_vulnerability:4},uppercut:{startup:5,active:2,recovery:8,reach:108,lateral_arc:54,impact:72,stamina_cost:53,whiff_cost:22,guard_damage:88,poise_damage:84,combo_window:10,startup_vulnerability:3,recovery_vulnerability:5}},variants:{body:{startup_add:1,reach_min:80,reach_sub:14,lateral_arc_add:8,impact_mul_num:92,impact_mul_den:100,stamina_cost_add:2,whiff_cost_add:2,poise_damage_mul_num:72,poise_damage_mul_den:100},power:{startup_add:3,active_add:1,recovery_add:3,reach_add:5,impact_mul_num:185,impact_mul_den:100,stamina_cost_mul_num:140,stamina_cost_mul_den:100,whiff_cost_mul_num:150,whiff_cost_mul_den:100,guard_damage_mul_num:220,guard_damage_mul_den:100,poise_damage_mul_num:175,poise_damage_mul_den:100,startup_vulnerability_add:1,recovery_vulnerability_add:1}},hurtboxes:{head:{radius:.13,length:.16,joint:`head`,offset_y:.12},torso:{radius:.21,length:.34,joint:`chest`,offset_y:.16}},corners:{reach:733},rest:{corner_offset:365,walk_speed:10},clinch:{hold_distance:60,draw_speed:6},referee:{radius:34,health:450,walk_speed:6,standoff:62,count_standoff:90,stagger_base_ticks:6,stagger_damage_divisor:8,stagger_max_ticks:30,down_ticks:150,bleed_health_divisor:60},corner:{cut:{worse_cut:250,other_cut:100,bleeding_kept_percent:30},swelling:{swelling:250,eyes:200},breath:{conditioning:180,body:150},balanced:{worse_cut:80,bleeding_kept_percent:75,swelling:80,eyes:60}},blind_side:{eye_threshold:700,impact_percent:120},parry:{stagger_ticks:16},body:{wind_percent:90,collapse_body_trauma:650,collapse_stamina:350,collapse_minimum_damage:40,collapse_delay_ticks:10,collapse_cooldown_ticks:300},styles:{balanced:{},boxer:{recovery_ticks:{jab:-1},reach_percent:102,impact_percent:98,poise_damage_percent:98},slugger:{impact_percent:108,poise_damage_percent:108,poise_taken_percent:95,stamina_cost_percent:115,recovery_ticks:{hook:1,uppercut:1},move_speed_percent:96},swarmer:{move_speed_percent:103,startup_ticks:{hook:-1,uppercut:-1},body_damage_percent:110,conditioning_loss_percent:85,impact_percent:96,poise_damage_percent:96,evasion_ticks:1},counter_puncher:{counter_bonus_percent:38,counter_window_ticks:3,evasion_ticks:1,perfect_block_ticks:1,impact_percent:96,poise_damage_percent:96}},stun:{flinch_minimum_damage:36,flinch_base_ticks:4,flinch_damage_divisor:16,rocked_counter_damage:50,rocked_power_damage:70,rocked_hurt_poise:180,rocked_base_ticks:12,rocked_damage_divisor:6,rocked_max_ticks:28,chain_max_ticks:36,immunity_ticks:18,rocked_immunity_ticks:8,moving_speed_percent:75},guard:{block_poise_percent:35,perfect_block_poise_percent:0,leak_base_percent:80,leak_minimum_percent:25,block_minimum:60,perfect_rearm_ticks:6,damage_percent:100,stamina_regen_percent:50,held_drain:3,break_stun_ticks:24,rearm:250},trauma:{head_per_damage_percent:60,eye_per_damage_percent:70,cut_per_damage_percent:80,jab_cut_percent:40,jab_swelling_percent:50,swelling_per_damage_percent:33,poise_ceiling_per_head_percent:30,poise_ceiling_floor:220,body_per_damage_percent:100,poise_regen_every_ticks:2,poise_damage_percent:85,cut_opens_eye:120,bleeding_cut_divisor:30},hitbox:{glove_radius:.11},injuries:{blood:{volume:1e3,bleeding_divisor:160,rest_percent:50,stages:[{below:600,stamina_regen_percent:75},{below:350,stamina_regen_percent:50},{below:150,stamina_regen_percent:25}]},kinds:{broken_nose:{drain:1,stamina_regen_percent:75,bleeding_floor:150},broken_jaw:{drain:1,poise_taken_percent:125},jaw_torn:{drain:5,poise_taken_percent:150,bleeding_floor:300},eye_out:{drain:2},ear_torn:{drain:1,poise_regen_ticks_add:1},face_flayed:{drain:4,vision_penalty:8},skull_fractured:{drain:4,poise_ceiling_percent:60},shoulder_dislocated:{drain:0,startup_add:2,impact_percent:50,guard_leak_add:20},arm_broken:{drain:3,startup_add:2,impact_percent:30,guard_leak_add:25},forearm_severed:{drain:12,impact_percent:20,reach_sub:45,guard_leak_add:35},arm_torn:{drain:20,guard_leak_add:50},ribs_broken:{drain:0,body_taken_percent:135,max_stamina_sub:60},liver_ruptured:{drain:6,stamina_regen_percent:60},disemboweled:{drain:12,move_speed_percent:75,max_stamina_sub:150,body_taken_percent:150},knee_blown:{drain:0,move_speed_percent:80}},triggers:{nose_wear:800,jaw_break_wear:320,jaw_tear_wear:640,ear_wear:280,eye_out_trauma:850,eye_out_damage:55,flay_cut:550,flay_damage:60,skull_head_trauma:1050,skull_damage:90,brain_death_wear:220,shoulder_wear:280,shoulder_whiff_wear:40,shoulder_parried_wear:90,arm_break_wear:1100,arm_guard_break_wear:300,arm_tear_damage:80,ribs_wear:260,liver_wear:260,gut_body_trauma:800,gut_damage:90,gutted_damage:90,knee_knockdowns:2},vomit:{every_ticks:240,stun_ticks:10},finish:{ticks:105},fatalities:{head:{jab:`eyes_out`,straight:`head_burst`,hook:`decapitation`,uppercut:`spine_rip`},body:{jab:`heart_punch`,straight:`gutting`,hook:`bisection`,uppercut:`total_gib`}}}},r=n.punches,i=n.variants,a=n.tick_rate;n.action_buffer_ticks;var o=n.hitstop_ms,s=n.hurtboxes,c=n.hitbox.glove_radius;n.fatigue_scaling;var l=n.rest.corner_offset,u=n.ring.half_width,d=n.ring.half_height,f=n.ring.fighter_radius,p=n.blind_side.eye_threshold,m=n.guard.block_minimum,h=n.guard.rearm,g=n.movement.max_speed,_=n.movement.blend_percent,v=n.movement.recovery_speed_percent,y=n.evasion.ticks,b=n.evasion.stamina,x=n.corner,S=n.corners.reach,C=n.combos.recovery_cancel_percent,w=new Set(n.combos.chains.map(([e,t])=>`${e}:${t}`));function T(e,t){return w.has(`${e}:${t}`)}function E(e){return e.startup+e.active+Math.floor(e.recovery*C/100)}function D(e,t,n,r,i,a=`balanced`){return t&&!i&&T(e,n.class)&&r>=fe(a,n.class,n.target,n.power)}function O(e){return r[e].combo_window}var k=n.stun.rocked_base_ticks,A=n.stun.rocked_max_ticks,j=n.knockdown,ee=j.count_ticks,M=1400,te=3,ne=j.get_up_base,re=j.get_up_base+te*j.get_up_per_knockdown+Math.floor(M/j.get_up_trauma_divisor),ie=n.stun.moving_speed_percent,ae=n.tired.startup_ticks,oe=n.tired.recovery_ticks;function se(e,t,n){let a=r[e],o=a.startup,s=a.active,c=a.recovery,l=a.reach,u=a.lateral_arc;if(t===`body`){let e=i.body;o+=e.startup_add??0,c+=e.recovery_add??0,l=Math.max(e.reach_min??0,l-(e.reach_sub??0)),u+=e.lateral_arc_add??0}if(n===`power`){let e=i.power;o+=e.startup_add??0,s+=e.active_add??0,c+=e.recovery_add??0,l+=e.reach_add??0}return{startup:o,active:s,recovery:c,reach:l,lateralArc:u}}function ce(e,t,n){let a=r[e].stamina_cost;return t===`body`&&(a+=i.body.stamina_cost_add??0),n===`power`&&(a=Math.floor(a*(i.power.stamina_cost_mul_num??1)/(i.power.stamina_cost_mul_den??1))),a}var le=n.styles,ue=new Map;function de(e){let t=ue.get(e);if(t!==void 0)return t;let n=le[e]??{},r={startupTicks:n.startup_ticks??{},recoveryTicks:n.recovery_ticks??{},staminaCostPercent:n.stamina_cost_percent??100,conditioningLossPercent:n.conditioning_loss_percent??100,moveSpeedPercent:n.move_speed_percent??100,evasionTicks:n.evasion_ticks??0};return ue.set(e,r),r}function fe(e,t,n,r){return Math.floor(ce(t,n,r)*de(e).staminaCostPercent/100)}function pe(e){return e.startup+e.active+e.recovery}var me=[`broken_nose`,`broken_jaw`,`jaw_torn`,`eye_left_out`,`eye_right_out`,`ear_left_torn`,`ear_right_torn`,`face_left_flayed`,`face_right_flayed`,`skull_fractured`,`shoulder_left_dislocated`,`shoulder_right_dislocated`,`arm_left_broken`,`arm_right_broken`,`forearm_left_severed`,`forearm_right_severed`,`arm_left_torn`,`arm_right_torn`,`ribs_left_broken`,`ribs_right_broken`,`liver_ruptured`,`disemboweled`,`knee_left_blown`,`knee_right_blown`];function he(e){return me.includes(e)}var ge=[`eyes_out`,`head_burst`,`decapitation`,`spine_rip`,`heart_punch`,`gutting`,`bisection`,`total_gib`],_e=[`nose`,`mouth`,`eye_left`,`eye_right`,`ear_left`,`ear_right`,`skull`,`neck`,`shoulder_left`,`shoulder_right`,`elbow_left`,`elbow_right`,`chest`,`ribs_left`,`ribs_right`,`liver`,`belly`,`waist`,`crotch`,`knee_left`,`knee_right`],ve=n.injuries,ye=ve.kinds,be=ve.blood.volume,xe=ve.blood.stages.map(e=>e.below),Se=ve.finish.ticks,Ce=(e,t)=>Array.isArray(e)?e.includes(t):e.has(t);function we(e){return e.includes(`_left_`)?`left`:e.includes(`_right_`)?`right`:null}function N(e){return e.replace(`_left_`,`_`).replace(`_right_`,`_`)}var Te={broken_nose:`BROKEN NOSE`,broken_jaw:`BROKEN JAW`,jaw_torn:`JAW TORN OFF`,eye_out:`EYE OUT`,ear_torn:`EAR TORN OFF`,face_flayed:`CHEEK FLAYED`,skull_fractured:`SKULL SPLIT OPEN`,shoulder_dislocated:`SHOULDER OUT`,arm_broken:`ARM SNAPPED`,forearm_severed:`FOREARM SEVERED`,arm_torn:`ARM TORN OFF`,ribs_broken:`RIBS CAVED IN`,liver_ruptured:`LIVER RUPTURED`,disemboweled:`DISEMBOWELED`,knee_blown:`KNEE BLOWN OUT`};function Ee(e){let t=we(e),n=Te[N(e)];return t===null?n:`${t.toUpperCase()} ${n}`}var P={eyes_out:`EYES PUNCHED OUT`,head_burst:`HEAD EXPLODED`,decapitation:`DECAPITATED`,spine_rip:`SPINE RIPPED OUT`,heart_punch:`HEART PUNCHED OUT`,gutting:`GUTTED`,bisection:`TORN IN HALF`,total_gib:`BLOWN TO PIECES`};function F(e){return P[e]}function De(e,t){return ve.fatalities[e][t]}function Oe(e){if(e===`bled_out`||e===`brain`||e===`gutted`)return e;let t=e.startsWith(`fatality:`)?e.slice(9):null;return t!==null&&ge.includes(t)?e:null}function ke(e){return e.startsWith(`fatality:`)?e.slice(9):null}function Ae(e){let t=ke(e);return t===null?e===`bled_out`?`BLED TO DEATH`:e===`brain`?`BRAIN DESTROYED`:`GUTTED`:F(t)}function je(e,t){return Ce(e,`arm_${t}_torn`)?`torn`:Ce(e,`forearm_${t}_severed`)?`severed`:Ce(e,`arm_${t}_broken`)?`broken`:Ce(e,`shoulder_${t}_dislocated`)?`dislocated`:`whole`}var Me={dislocated:`shoulder_dislocated`,broken:`arm_broken`,severed:`forearm_severed`,torn:`arm_torn`};function Ne(e,t){if(je(e,t)!==`torn`)return t;let n=t===`left`?`right`:`left`;return je(e,n)===`torn`?null:n}function Pe(e){return je(e,`left`)===`torn`&&je(e,`right`)===`torn`}function Fe(e,t){let n=je(e,t);return n===`whole`?0:ye[Me[n]].startup_add??0}var Ie=Object.fromEntries(me.map(e=>[e,ye[N(e)].move_speed_percent??100]));function Le(e,t){let n=e;for(let e of t){let t=Ie[e];t!==100&&(n=Math.floor(n*t/100))}return n}function Re(e){let t=0;for(let n of xe)e0?`-${e.draws}`:``}`}var Be=e=>e.wins+e.losses+e.draws===0;function Ve(e){return Be(e)?`PRO DEBUT`:`${ze(e)} (${e.knockouts} KO)`}var He=class extends Error{name=`ProtocolError`},Ue=2147483647,We=new TextEncoder;function Ge(e){let t=0,n=()=>{for(;/\s/u.test(e[t]??``);)t+=1},r=()=>{let n=t;if(e[t++]!==`"`)throw new He(`invalid JSON`);for(;t{n();let a=e[t];if(a===`{`){t+=1,n();let a=new Set;if(e[t]===`}`){t+=1;return}for(;;){n();let o=r();if(a.has(o))throw new He(`duplicate field ${o}`);if(a.add(o),n(),e[t++]!==`:`)throw new He(`invalid JSON`);i(),n();let s=e[t++];if(s===`}`)return;if(s!==`,`)throw new He(`invalid JSON`)}}if(a===`[`){if(t+=1,n(),e[t]===`]`){t+=1;return}for(;;){i(),n();let r=e[t++];if(r===`]`)return;if(r!==`,`)throw new He(`invalid JSON`)}}if(a===`"`){r();return}let o=e.slice(t),s=/^(?:-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?|true|false|null)/u.exec(o);if(!s)throw new He(`invalid JSON`);t+=s[0].length};if(i(),n(),t!==e.length)throw new He(`invalid JSON`)}function Ke(e){let t,n;if(typeof e==`string`?(t=We.encode(e),n=e):(t=e instanceof Uint8Array?e:new Uint8Array(e),n=new TextDecoder(`utf-8`,{fatal:!0}).decode(t)),t.byteLength>65536)throw new He(`server frame too large`);try{return Ge(n),JSON.parse(n)}catch(e){throw e instanceof He?e:new He(`invalid JSON`)}}function qe(e,t){if(typeof e!=`object`||!e||Array.isArray(e)||Object.getPrototypeOf(e)!==Object.prototype)throw new He(`${t} must be an object`);return e}function Je(e,t,n=[]){let r=new Set([...t,...n]),i=Object.keys(e);if(t.some(t=>!Object.hasOwn(e,t))||i.some(e=>!r.has(e)))throw new He(`schema mismatch`)}function I(e,t,n=0,r=Ue){if(!Number.isSafeInteger(e)||er)throw new He(`${t} must be a bounded integer`);return e}function Ye(e,t){if(typeof e!=`boolean`)throw new He(`${t} must be boolean`);return e}function Xe(e,t,n=255,r=1){if(typeof e!=`string`||e.lengthn||/[\u0000-\u001f\u007f]/u.test(e))throw new He(`${t} must be a bounded string`);return e}function Ze(e,t,n=255){return e===null?null:Xe(e,t,n)}function Qe(e,t,n){if(typeof e!=`string`||!t.includes(e))throw new He(`invalid ${n}`);return e}function $e(e,t,n){if(!Array.isArray(e)||e.length>n)throw new He(`${t} must be a bounded array`);return e}var et=[`left`,`right`],tt=[`jab`,`straight`,`hook`,`uppercut`],nt=[`head`,`body`],rt=[`normal`,`power`],it=[`orthodox`,`southpaw`],at=[`balanced`,`boxer`,`slugger`,`swarmer`,`counter_puncher`],ot=[`none`,`guard_high`,`guard_low`,`slip_left`,`slip_right`,`weave`,`pull`],st=[`none`,`guard_high`,`guard_low`],ct=[`slip_left`,`slip_right`,`weave`,`pull`,`clinch`,`switch_stance`,`get_up_left`,`get_up_right`,`taunt`,`corner_cut`,`corner_swelling`,`corner_breath`],lt=[`cut`,`swelling`,`breath`,`balanced`],ut=[`low_blow`,`headbutt`],dt=[`countdown`,`fight`,`knockdown`,`foul_recovery`,`referee_down`,`finish`,`rest`,`complete`],ft=[`ko`,`flash_ko`,`tko`,`death`,`disqualification`,`decision`,`draw`,`forfeit`];function pt(e){let t=qe(e,`record`);return Je(t,[`wins`,`losses`,`draws`,`knockouts`]),{wins:I(t.wins,`record.wins`),losses:I(t.losses,`record.losses`),draws:I(t.draws,`record.draws`),knockouts:I(t.knockouts,`record.knockouts`)}}function mt(e){let t=qe(e,`player`);Je(t,[`id`,`name`,`avatar`,`rating`,`connected`],[`cpu`,`record`,`style`]);let n=t.style===void 0?{}:{style:Qe(t.style,at,`player style`)},r=t.cpu===void 0?{}:{cpu:Ye(t.cpu,`cpu`)},i=t.record===void 0?{}:{record:pt(t.record)};return{id:Xe(t.id,`player.id`),name:Xe(t.name,`player.name`,80),avatar:Ze(t.avatar,`player.avatar`,128),rating:I(t.rating,`rating`),connected:Ye(t.connected,`connected`),...r,...i,...n}}function ht(e,t,n=1){let r=$e(e,`players`,2).map(mt);if(r.lengthe.id)).size!==r.length)throw new He(`players must be present and distinct`);return r}function gt(e){let t=qe(e,`trauma`);return Je(t,[`head`,`body`,`left_eye`,`right_eye`,`left_cut`,`right_cut`,`swelling`,`bleeding`]),{head:I(t.head,`head`,0,1400),body:I(t.body,`body`,0,1200),left_eye:I(t.left_eye,`left_eye`,0,1e3),right_eye:I(t.right_eye,`right_eye`,0,1e3),left_cut:I(t.left_cut,`left_cut`,0,1e3),right_cut:I(t.right_cut,`right_cut`,0,1e3),swelling:I(t.swelling,`swelling`,0,1e3),bleeding:I(t.bleeding,`bleeding`,0,1e3)}}var _t=g;function vt(e,t){return Math.max(-_t,Math.min(_t,I(e,t,-2147483647,Ue)))}function yt(e){let t=$e(e,`injuries`,me.length).map(e=>Qe(e,me,`injury`));for(let e=1;ee===null)&&[n,r,i,a].some(e=>e!==null))throw new He(`partial punch action`);let o=t.action_id===null?null:Xe(t.action_id,`action_id`,32),s=t.action_key===null?null:Xe(t.action_key,`action_key`,64);if([o,s].some(e=>e===null)!==[o,s].every(e=>e===null))throw new He(`partial action instance`);if(o!==null&&n===null)throw new He(`action instance without class`);let c=t.get_up_prompt===null?null:Qe(t.get_up_prompt,[`get_up_left`,`get_up_right`],`get-up prompt`),l=I(t.maximum_stamina,`maximum_stamina`,330,1e3),u=I(t.stamina,`stamina`,0,l),d=I(t.get_up_required,`get_up_required`,0,re),f=I(t.facing,`facing`,-1,1);if(f===0)throw new He(`invalid facing`);let p=I(t.facing_x,`facing_x`,-1e3,1e3),m=I(t.facing_y,`facing_y`,-1e3,1e3);if(p===0&&m===0)throw new He(`invalid facing vector`);if(d!==0&&d$e(e,`round scores`,15).map(e=>I(e,`score`,6,10)),r=n(t.player_one),i=n(t.player_two);if(r.length!==i.length)throw new He(`scorecard round mismatch`);return{judge:Xe(t.judge,`judge`,80),player_one:r,player_two:i}}function Ct(e){let t=$e(e,`scorecards`,3).map(St);if(t.length!==3)throw new He(`exactly three scorecards required`);return t}function wt(e,t){if(t===`draw`!=(e===null))throw new He(`incoherent finish result`)}function Tt(e){let t=qe(e,`result`);Je(t,[`match_id`,`activity_instance_id`,`guild_id`,`player_one_id`,`player_two_id`,`winner_id`,`finish_method`,`round_number`,`tick`,`scorecards`,`player_one_knockdowns`,`player_two_knockdowns`,`player_one_damage`,`player_two_damage`]);let n=Xe(t.player_one_id,`player_one_id`),r=Xe(t.player_two_id,`player_two_id`);if(n===r)throw new He(`result players must be distinct`);let i=Ze(t.winner_id,`winner_id`);if(i!==null&&i!==n&&i!==r)throw new He(`invalid winner`);let a=Qe(t.finish_method,ft,`finish method`);return wt(i,a),{match_id:Xe(t.match_id,`match_id`),activity_instance_id:Xe(t.activity_instance_id,`activity_instance_id`),guild_id:Xe(t.guild_id,`guild_id`),player_one_id:n,player_two_id:r,winner_id:i,finish_method:a,round_number:I(t.round_number,`round`,1,15),tick:I(t.tick,`tick`),scorecards:Ct(t.scorecards),player_one_knockdowns:I(t.player_one_knockdowns,`knockdowns`,0,3),player_two_knockdowns:I(t.player_two_knockdowns,`knockdowns`,0,3),player_one_damage:I(t.player_one_damage,`damage`),player_two_damage:I(t.player_two_damage,`damage`)}}function Et(e){let t=qe(e,`referee`);return Je(t,[`x`,`y`,`facing_x`,`facing_y`,`velocity_x`,`velocity_y`,`stunned_ticks`,`alive`,`trauma`]),{x:I(t.x,`referee.x`,-462,462),y:I(t.y,`referee.y`,-462,462),facing_x:I(t.facing_x,`referee.facing_x`,-1e3,1e3),facing_y:I(t.facing_y,`referee.facing_y`,-1e3,1e3),velocity_x:vt(t.velocity_x,`referee.velocity_x`),velocity_y:vt(t.velocity_y,`referee.velocity_y`),stunned_ticks:I(t.stunned_ticks,`referee.stunned_ticks`,0,90),alive:Ye(t.alive,`referee.alive`),trauma:gt(t.trauma)}}function Dt(e){let t=qe(e,`snapshot`);Je(t,[`tick`,`phase`,`round_number`,`phase_ticks_remaining`,`fighters`,`referee`,`events`,`result`,`checksum`]);let n=$e(t.fighters,`fighters`,2).map(bt);if(n.length!==2||n[0]?.player_id===n[1]?.player_id)throw new He(`snapshot requires two distinct fighters`);let r=Xe(t.checksum,`checksum`,64);if(!/^[a-f0-9]{64}$/u.test(r))throw new He(`invalid checksum`);return{tick:I(t.tick,`tick`),phase:Qe(t.phase,dt,`phase`),round_number:I(t.round_number,`round`,1,15),phase_ticks_remaining:I(t.phase_ticks_remaining,`phase ticks`),fighters:[n[0],n[1]],referee:Et(t.referee),events:$e(t.events,`events`,256).map(xt),result:t.result===null?null:Tt(t.result),checksum:r}}function Ot(e){let t=qe(Ke(e),`envelope`);if(t.version!==6)throw new He(`unsupported protocol version`);let n=Xe(t.type,`type`,32);if(n===`welcome`){let e=Qe(t.role,[`fighter`,`spectator`],`connection role`),r=Xe(t.player_id,`player_id`),i=t.reconnect_ticket===void 0?{}:{reconnect_ticket:Xe(t.reconnect_ticket,`reconnect_ticket`,4096)};if(e===`fighter`){Je(t,[`version`,`type`,`role`,`player_id`,`seat`,`rating`,`players`,`server_tick`,`next_sequence`],[`reconnect_ticket`]);let a=ht(t.players);if(!a.some(e=>e.id===r))throw new He(`welcome fighter is absent`);return{version:6,type:n,role:e,player_id:r,seat:I(t.seat,`seat`,1,2),rating:I(t.rating,`rating`),players:a,server_tick:I(t.server_tick,`server_tick`),next_sequence:I(t.next_sequence,`next_sequence`),...i}}Je(t,[`version`,`type`,`role`,`player_id`,`players`,`server_tick`],[`reconnect_ticket`]);let a=ht(t.players,void 0,0);if(a.some(e=>e.id===r))throw new He(`spectator cannot be a fighter`);return{version:6,type:n,role:e,player_id:r,players:a,server_tick:I(t.server_tick,`server_tick`),...i}}if(n===`ticket`)return Je(t,[`version`,`type`,`reconnect_ticket`,`refresh_id`]),{version:6,type:n,reconnect_ticket:Xe(t.reconnect_ticket,`reconnect_ticket`,4096),refresh_id:Xe(t.refresh_id,`refresh_id`,128,16)};if(n===`waiting`){if(Je(t,[`version`,`type`,`open_seats`]),t.open_seats!==1&&t.open_seats!==2)throw new He(`invalid open seats`);return{version:6,type:n,open_seats:t.open_seats}}if(n===`select`){Je(t,[`version`,`type`,`deadline_ms`,`players`,`ready`]);let e=ht(t.players,2),r=$e(t.ready,`ready`,2).map(e=>Xe(e,`ready player id`));if(new Set(r).size!==r.length||r.some(t=>!e.some(e=>e.id===t)))throw new He(`invalid ready fighters`);return{version:6,type:n,deadline_ms:I(t.deadline_ms,`deadline_ms`,0,6e4),players:[e[0],e[1]],ready:r}}if(n===`ready`){Je(t,[`version`,`type`,`players`]);let e=ht(t.players,2);return{version:6,type:n,players:[e[0],e[1]]}}if(n===`paused`)return Je(t,[`version`,`type`,`player_id`,`grace_ms`]),{version:6,type:n,player_id:Xe(t.player_id,`player_id`),grace_ms:I(t.grace_ms,`grace_ms`,0,6e4)};if(n===`resumed`)return Je(t,[`version`,`type`,`player_id`]),{version:6,type:n,player_id:Xe(t.player_id,`player_id`)};if(n===`snapshot`)return Je(t,[`version`,`type`,`payload`]),{version:6,type:n,payload:Dt(t.payload)};if(n===`error`)return Je(t,[`version`,`type`,`code`]),{version:6,type:n,code:Xe(t.code,`error code`,80)};if(n===`final`)return At(t,n);throw new He(`unsupported server message type`)}function kt(e,t){let n=Object.entries(qe(e,`punches`));if(n.length!==2||n.some(([e])=>!t.includes(e)))throw new He(`punches must count both fighters`);let r=Object.create(null);for(let[e,t]of n){let n=qe(t,`punch totals`);Je(n,[`thrown`,`landed`,`jabs_thrown`,`jabs_landed`]);let i=I(n.thrown,`thrown`),a=I(n.landed,`landed`,0,i),o=I(n.jabs_thrown,`jabs_thrown`,0,i);r[e]={thrown:i,landed:a,jabs_thrown:o,jabs_landed:I(n.jabs_landed,`jabs_landed`,0,Math.min(a,o))}}return r}function At(e,t){Je(e,[`version`,`type`,`match_id`,`winner_id`,`method`,`round`,`scorecards`,`ratings`],[`punches`]);let n=qe(e.ratings,`ratings`),r=Object.entries(n);if(r.length!==2)throw new He(`final requires two ratings`);let i=Object.create(null);for(let[e,t]of r){Xe(e,`rating player id`);let n=qe(t,`rating`);Je(n,[`before`,`after`]),i[e]={before:I(n.before,`before`),after:I(n.after,`after`)}}let a=Ze(e.winner_id,`winner_id`);if(a!==null&&!Object.hasOwn(i,a))throw new He(`winner absent from ratings`);let o=Qe(e.method,ft,`finish method`);wt(a,o);let s=e.punches===void 0?{}:{punches:kt(e.punches,Object.keys(i))};return{version:6,type:t,match_id:Xe(e.match_id,`match_id`),winner_id:a,method:o,round:I(e.round,`round`,1,15),scorecards:Ct(e.scorecards),ratings:i,...s}}function jt(e,t,n){return JSON.stringify({version:6,type:`input`,sequence:I(e,`sequence`),client_tick:I(t,`client tick`),move:{x:Math.max(-1e3,Math.min(1e3,Math.round(Number.isFinite(n.moveX)?n.moveX:0))),y:Math.max(-1e3,Math.min(1e3,Math.round(Number.isFinite(n.moveY)?n.moveY:0)))},defense:Qe(n.defense,st,`held defense`),actions:n.actions.slice(0,4).map(e=>{let t=e.id===void 0?{}:{id:e.id.slice(0,32)};return e.kind===`punch`?{kind:`punch`,hand:Qe(e.hand,et,`hand`),class:Qe(e.class,tt,`class`),target:Qe(e.target,nt,`target`),power:Qe(e.power,rt,`power`),...t}:e.kind===`foul`?{kind:`foul`,foul:Qe(e.foul,ut,`foul`),...t}:{kind:Qe(e.kind,ct,`action`),...t}})})}function Mt(e,t){return JSON.stringify({version:6,type:`style`,style:Qe(e,at,`fighter style`),ready:t===!0})}var Nt=[`rookie`,`contender`,`champion`];function Pt(e){return JSON.stringify({version:6,type:`cpu`,level:Qe(e,Nt,`computer level`)})}function Ft(e){let t=qe(e,`bootstrap`);if(Je(t,[`client_id`,`state`,`protocol`,`simulation`]),t.protocol!==6)throw new He(`unsupported protocol version`);let n=qe(t.simulation,`simulation`);return Je(n,[`tick_rate`,`ring_half_width`,`ring_half_height`]),{client_id:Xe(t.client_id,`client_id`,36),state:Xe(t.state,`state`,128),protocol:6,simulation:{tick_rate:I(n.tick_rate,`tick rate`,1,120),ring_half_width:I(n.ring_half_width,`ring width`,1),ring_half_height:I(n.ring_half_height,`ring height`,1)}}}function It(e){let t=qe(e,`token response`);Je(t,[`access_token`,`ticket`,`player`]);let n=qe(t.player,`player`);return Je(n,[`id`,`name`,`avatar`,`rating`]),{access_token:Xe(t.access_token,`access token`,4096),ticket:Xe(t.ticket,`ticket`,4096),player:{id:Xe(n.id,`id`),name:Xe(n.name,`name`,80),avatar:Ze(n.avatar,`avatar`,128),rating:I(n.rating,`rating`)}}}var Lt=[`Power`,`Hand speed`,`Footwork`,`Reach`,`Stamina`,`Defence`],Rt=[{style:`balanced`,name:`Balanced`,tag:`BALANCED`,detail:`Even at everything, no holes to exploit.`,stats:[3,3,3,3,3,3]},{style:`boxer`,name:`Boxer`,tag:`BOXER`,detail:`Snappy jab and long reach, lighter hands.`,stats:[2,4,3,4,3,3]},{style:`slugger`,name:`Slugger`,tag:`SLUGGER`,detail:`Heavy hands, hard chin, slow feet, tires sooner.`,stats:[5,2,2,3,2,4]},{style:`swarmer`,name:`Swarmer`,tag:`SWARMER`,detail:`Quick feet and head, digs to the body, never stops.`,stats:[2,4,4,3,4,3]},{style:`counter_puncher`,name:`Counter-puncher`,tag:`COUNTER`,detail:`Slips and parries, makes every miss cost.`,stats:[2,3,3,3,3,5]}],zt=e=>Rt.find(t=>t.style===e)??Rt[0];function Bt(e){return e===void 0||e===`balanced`?null:zt(e).tag}function Vt(e){return e===void 0||e===`balanced`?null:`the ${zt(e).name.toLowerCase()}`}var Ht=`hands.style.v1`;function Ut(e=Gt()){try{let t=e?.getItem(Ht);return at.find(e=>e===t)??`balanced`}catch{return`balanced`}}function Wt(e,t=Gt()){try{t?.setItem(Ht,e)}catch{}}function Gt(){try{return window.localStorage}catch{return null}}var Kt=400,qt={Digit1:0,Digit2:1,Digit3:2,Digit4:3,Digit5:4,Numpad1:0,Numpad2:1,Numpad3:2,Numpad4:3,Numpad5:4},Jt=.6;function Yt(){try{return[...navigator.getGamepads?.()??[]].find(e=>e!==null&&e.connected&&e.mapping===`standard`)??null}catch{return null}}function Xt(e){let t=new Set;if(e===null)return t;let n=t=>e.buttons[t]?.pressed===!0,r=e.axes[0]??0,i=e.axes[1]??0;return(n(12)||n(14)||r<-.6||i<-.6)&&t.add(`previous`),(n(13)||n(15)||r>Jt||i>Jt)&&t.add(`next`),n(0)&&t.add(`settle`),t}var Zt=class{send;now;element;buttons=new Map;clock;status;visible=!1;choosing=!1;highlighted;settled=!1;deadlineAt=0;timer=null;padFrame=0;padHeld=new Set;context=null;keydown=e=>{if(!this.visible||!this.choosing||e.repeat||e.ctrlKey||e.metaKey||e.altKey)return;let t=e.target;if(t instanceof HTMLElement&&t!==document.body&&!this.element.contains(t))return;let n=qt[e.code];n===void 0?e.code===`ArrowRight`||e.code===`ArrowDown`?(e.preventDefault(),this.move(this.neighbour(1))):e.code===`ArrowLeft`||e.code===`ArrowUp`?(e.preventDefault(),this.move(this.neighbour(-1))):e.code!==`Enter`&&e.code!==`Space`||t instanceof HTMLButtonElement||(e.preventDefault(),this.pick(this.highlighted,!0)):(e.preventDefault(),this.pick(Rt[n].style,!0))};constructor(e,t,n=()=>performance.now(),r=Ut()){this.send=t,this.now=n,this.highlighted=r;let i=document.createElement(`section`);i.className=`style-picker`,i.dataset.stylePicker=``,i.hidden=!0,i.setAttribute(`aria-label`,`Pick how your fighter boxes`);let a=document.createElement(`header`),o=document.createElement(`p`);o.className=`style-title`,o.textContent=`CHOOSE YOUR STYLE`,this.clock=document.createElement(`p`),this.clock.className=`style-clock`,a.append(o,this.clock);let s=document.createElement(`div`);s.className=`style-cards`;for(let[e,t]of Rt.entries()){let n=document.createElement(`button`);n.type=`button`,n.dataset.style=t.style,n.setAttribute(`aria-pressed`,`false`);let r=document.createElement(`kbd`);r.textContent=String(e+1);let i=document.createElement(`strong`);i.textContent=t.name;let a=document.createElement(`span`);a.textContent=t.detail;let o=document.createElement(`ul`);o.className=`style-stats`;for(let[e,n]of t.stats.entries()){let t=document.createElement(`li`);t.setAttribute(`aria-label`,`${Lt[e]} ${n} of 5`);let r=document.createElement(`small`);r.textContent=Lt[e];let i=document.createElement(`i`);i.dataset.value=String(n),t.append(r,i),o.append(t)}n.append(r,i,a,o),n.addEventListener(`click`,()=>this.pick(t.style,!0)),s.append(n),this.buttons.set(t.style,n)}this.status=document.createElement(`p`),this.status.className=`style-status`,this.status.setAttribute(`role`,`status`),i.append(a,s,this.status),e.append(i),this.element=i,window.addEventListener(`keydown`,this.keydown)}update(e,t,n){if(e===null){this.setVisible(!1),this.context=null,this.settled=!1;return}let r=this.context===null||!this.choosing&&n===`fighter`;this.context?.select!==e&&(this.deadlineAt=this.now()+e.deadline_ms-Kt),this.context={select:e,viewerId:t},this.choosing=n===`fighter`&&t!==null,this.settled=this.choosing&&(this.settled||e.ready.includes(t));let i=e.players.find(e=>e.id===t)?.style;this.settled&&i!==void 0&&(this.highlighted=i),r&&this.choosing&&!this.settled&&this.send(this.highlighted,!1),this.setVisible(!0),this.render()}pick(e,t){!this.choosing||this.settled||this.closed||(this.highlighted=e,this.send(e,t)&&(t&&(this.settled=!0),this.render()))}get closed(){return this.now()>=this.deadlineAt}neighbour(e){return Rt[(Rt.findIndex(e=>e.style===this.highlighted)+e+Rt.length)%Rt.length].style}move(e){this.pick(e,!1),this.settled||this.buttons.get(this.highlighted)?.focus()}render(){let e=this.context;if(e===null)return;let{select:t,viewerId:n}=e;for(let e of Rt){let t=this.buttons.get(e.style),n=this.choosing&&e.style===this.highlighted;t.disabled=!this.choosing||this.settled||this.closed,t.setAttribute(`aria-pressed`,String(n)),t.toggleAttribute(`data-chosen`,n),t.tabIndex=e.style===this.highlighted?0:-1}let r=`${Math.max(0,Math.ceil((this.deadlineAt-this.now())/1e3))}s`;this.clock.textContent!==r&&(this.clock.textContent=r);let i=t.players.filter(e=>e.id!==n&&(!e.connected||t.ready.includes(e.id))).map(e=>e.connected?`${e.name} is ready.`:`Waiting for ${e.name} to reconnect.`).join(` `),a=this.choosing?this.settled?i.length>0?`Ready as ${zt(this.highlighted).name}. ${i}`:`Ready as ${zt(this.highlighted).name}. Waiting for your opponent.`:i.length>0?`${i} Tap a style or press Enter to settle on yours.`:`Tap a style, or use the arrow keys and Enter.`:i.length>0?`The fighters are choosing. ${i}`:`The fighters are choosing their styles.`;this.status.textContent!==a&&(this.status.textContent=a)}setVisible(e){this.visible!==e&&(this.visible=e,this.element.hidden=!e,e?(this.timer=window.setInterval(()=>this.render(),250),this.padHeld=Xt(Yt()),this.padFrame=requestAnimationFrame(()=>this.pollPad())):(this.timer!==null&&window.clearInterval(this.timer),this.timer=null,cancelAnimationFrame(this.padFrame)))}pollPad(){if(!this.visible)return;let e=Xt(Yt());for(let t of e)this.padHeld.has(t)||(t===`settle`?this.pick(this.highlighted,!0):this.move(this.neighbour(t===`next`?1:-1)));this.padHeld=e,this.padFrame=requestAnimationFrame(()=>this.pollPad())}destroy(){this.setVisible(!1),window.removeEventListener(`keydown`,this.keydown),this.element.remove()}},Qt=/^[0-9]{17,20}$/u,$t=/^[A-Za-z0-9_]{1,128}$/u,en=`https://cdn.discordapp.com/avatars/`,tn=128,nn=8;function rn(e){return e.avatar===null||!Qt.test(e.id)||!$t.test(e.avatar)?null:new URL(`${e.id}/${e.avatar}.png?size=${tn}`,en).href}function an(e){let t=Array.from(e).find(e=>/[\p{L}\p{N}]/u.test(e));return t===void 0?`?`:t.toUpperCase()}var on=class{create;pictures=new Map;addresses=new Map;constructor(e=()=>new Image){this.create=e}get(e){if(e===void 0)return null;let t=this.addresses.get(e.id);(t===void 0||t.avatar!==e.avatar)&&(this.addresses.size>=nn&&this.addresses.clear(),t={avatar:e.avatar,url:rn(e)},this.addresses.set(e.id,t));let n=t.url;if(n===null)return null;let r=this.pictures.get(n);if(r!==void 0)return r.ready?r.image:null;if(this.pictures.size>=nn){let e=this.pictures.entries().next().value;e!==void 0&&this.drop(e[0],e[1])}let i={image:this.create(),ready:!1};return this.pictures.set(n,i),i.image.crossOrigin=`anonymous`,i.image.referrerPolicy=`no-referrer`,i.image.decoding=`async`,i.image.onload=()=>{i.ready=i.image.naturalWidth>0},i.image.onerror=()=>{i.ready=!1},i.image.src=n,null}dispose(){for(let[e,t]of[...this.pictures])this.drop(e,t);this.addresses.clear()}drop(e,t){t.image.onload=null,t.image.onerror=null,t.ready=!1,this.pictures.delete(e)}},sn=`POWER ARMED`,cn=1e3,ln=e=>e.reduce((e,t)=>e+t,0),un=(e,t,n)=>{if(e.measureText(t).width<=n)return t;let r=t;for(;r.length>1&&e.measureText(`${r}…`).width>n;)r=r.slice(0,-1);return`${r}…`},dn=(e,t,n,r)=>{for(let i=n;i>r;--i)if(e(i)<=t)return i;return r},fn=`#ff7066`;function pn(e,t,n,r,i,a){let o=i.spentBelow!==void 0&&i.value0&&(e.globalAlpha=i.alarm*.6,e.fillStyle=`#ff4632`,e.fillRect(t-1,n-1,r+2,11),e.globalAlpha=1),o){e.beginPath();for(let i=-9;i.5?`#ffffff`:`#ff9a90`,e.fillText(r,t,n-4)}}function hn(e,t,n,r,i,a,o){let s=()=>{e.beginPath(),e.arc(t,n,r,0,Math.PI*2),e.closePath()};e.save(),s(),e.fillStyle=`#0b1220`,e.fill(),i===null?(e.globalAlpha=.4,e.fillStyle=o,e.fill(),e.globalAlpha=1,e.fillStyle=`#f5f8ff`,e.textAlign=`center`,e.font=`800 ${Math.round(r*1.1)}px Inter, system-ui, sans-serif`,e.fillText(an(a),t,n+r*.39)):(e.save(),e.clip(),e.drawImage(i,t-r,n-r,r*2,r*2),e.restore()),s(),e.lineWidth=Math.max(1.5,r/9),e.strokeStyle=o,e.stroke(),e.restore()}function gn(e,t=[]){let n=e.left_eye>=p&&!t.includes(`eye_left_out`),r=e.right_eye>=p&&!t.includes(`eye_right_out`);return n&&r?`BOTH EYES SHUT`:n?`LEFT EYE SHUT`:r?`RIGHT EYE SHUT`:null}var _n={cut:`closing the cut`,swelling:`icing the swelling`,breath:`catching breath`,balanced:`a little of everything`};function vn(e){let t=e.flatMap((e,t)=>e.corner_choice===null?[]:[`${t===0?`Blue`:`Red`}: ${_n[e.corner_choice]}`]);return t.length===0?null:t.join(` · `)}function yn(e,t,n,r){e.save(),e.font=`900 12px Inter, system-ui, sans-serif`;let i=e.measureText(sn).width+16,a=r?t-i:t;e.shadowColor=`rgba(255,120,30,0.9)`,e.shadowBlur=12;let o=e.createLinearGradient(0,n,0,n+18);o.addColorStop(0,`#ffd36b`),o.addColorStop(1,`#ff6a1a`),e.fillStyle=o,e.fillRect(a,n,i,18),e.shadowBlur=0,e.fillStyle=`#2a0c00`,e.textAlign=`left`,e.fillText(sn,a+8,n+13),e.restore()}function bn(e,t,n,r,i){e.save(),e.font=`800 9px Inter, system-ui, sans-serif`;let a=e.measureText(r).width+12,o=i?t-a:t;e.fillStyle=`rgba(150,22,18,0.92)`,e.fillRect(o,n,a,14),e.fillStyle=`#ffe8e3`,e.textAlign=`left`,e.fillText(r,o+6,n+10),e.restore()}var xn={arm_torn:0,disemboweled:1,forearm_severed:2,skull_fractured:3,jaw_torn:4,face_flayed:5,eye_out:6,ear_torn:7,arm_broken:8,knee_blown:9,ribs_broken:10,broken_jaw:11,broken_nose:12,liver_ruptured:13,shoulder_dislocated:14},Sn=8,Cn=e=>xn[N(e)],wn={wide:4,compact:3};function Tn(e){return e.filter(t=>t!==`broken_jaw`||!e.includes(`jaw_torn`)).sort((e,t)=>Cn(e)-Cn(t))}function En(e,t){let n=e.slice(0,t).map(Ee);return e.length>t&&n.push(`+${e.length-t}`),n}var Dn=14,On=3,kn=`800 9px Inter, system-ui, sans-serif`,An={grave:`#c4160f`,plain:`rgba(122,18,14,0.92)`,count:`rgba(52,8,8,0.92)`},jn={grave:`#ffffff`,plain:`#ffe8e3`,count:`#ffb1a8`};function Mn(e,t,n,r,i,a){e.fillStyle=An[a],e.fillRect(t,n,r,Dn),e.fillStyle=jn[a],e.fillText(i,t+6,n+10)}function Nn(e,t,n,r,i,a,o){if(i.length===0)return n;let s=Tn(i),c=Math.min(a,s.length),l=En(s,a).map(e=>({label:e,width:0,offset:0,row:0}));e.save(),e.font=kn,e.textAlign=`left`;let u=0,d=0;for(let t of l)t.label=un(e,t.label,r-12),t.width=e.measureText(t.label).width+12,d>0&&d+On+t.width>r&&(u+=1,d=0),t.offset=d===0?0:d+On,t.row=u,d=t.offset+t.width;let f=n-(u+1)*17+On;return l.forEach((n,r)=>{let i=r>=c?`count`:Cn(s[r])r)break;Mn(e,o?t-p-f:t+p,n,f,d,a===null||Cn(a)>=Sn?`plain`:`grave`),l=p+f,u+=1}if(u>0&&u0?`${t.knockdowns} KD`:null,c=[s,t.warnings>0?`${t.warnings} WARNING${t.warnings===1?``:`S`}`:null,t.deductions>0?`−${t.deductions} PT${t.deductions===1?``:`S`}`:null,r>0?`${r} INJUR${r===1?`Y`:`IES`}`:null],l=[s,t.warnings>0?`W${t.warnings}`:null,t.deductions>0?`−${t.deductions}`:null,r>0?`${r} INJ`:null],u=(...e)=>e.filter(e=>e!==null).join(` · `),d=n?[u(i,...l),u(...l)]:[u(i,a,o,...c),u(i,o,...c),u(i,...c),u(i,...l),u(...l)];return d.filter((e,t)=>e!==``&&d.indexOf(e)===t)}var Wn=168;function Gn(e,t,n,r,i,a,o,s,c,l,u=!1){e.save(),e.beginPath(),s?(e.moveTo(t+14,n),e.lineTo(t+r,n),e.lineTo(t+r-14,n+62),e.lineTo(t,n+62)):(e.moveTo(t,n),e.lineTo(t+r-14,n),e.lineTo(t+r,n+62),e.lineTo(t+14,n+62)),e.closePath(),e.fillStyle=`rgba(3,6,12,0.82)`,e.fill(),e.strokeStyle=`rgba(190,200,220,0.22)`,e.lineWidth=1,e.stroke(),e.fillStyle=c,e.fillRect(s?t+r-5:t,n+4,5,54);let d=l===void 0?20:51;l!==void 0&&hn(e,s?t+r-11-16:t+11+16,n+4+16,16,l,i,c);let f=s?t+r-d:t+d;e.textAlign=s?`right`:`left`,e.fillStyle=`#f5f8ff`;let p=i.toUpperCase(),m=r-d-24;e.font=`800 ${dn(t=>(e.font=`800 ${t}px Inter, system-ui, sans-serif`,e.measureText(p).width),m,16,11)}px Inter, system-ui, sans-serif`,e.fillText(un(e,p,m),f,n+21);let h=r-d-14;if(u)e.fillStyle=`#ffb347`,e.font=`900 10px Inter, system-ui, sans-serif`,e.fillText(un(e,sn,h),f,n+35);else{e.fillStyle=`#93a3bd`;let t=(t,n)=>(e.font=`600 ${n}px Inter, system-ui, sans-serif`,e.measureText(t).width),r=a.find(e=>t(e,8)<=h)??a.at(-1)??``;e.font=`600 ${dn(e=>t(r,e),h,10,8)}px Inter, system-ui, sans-serif`,e.fillText(un(e,r,h),f,n+35)}let g=(r-52)/o.length,_=o.length*g+(o.length-1)*12,v=s?t+r-20-_:t+20;o.forEach((t,r)=>{pn(e,v+(g+12)*r,n+48,g,t,s)}),e.restore()}function Kn(e,t,n,r,i,a){let o=Wn;e.save(),e.beginPath(),e.moveTo(t-o/2+12,n),e.lineTo(t+o/2-12,n),e.lineTo(t+o/2,n+29),e.lineTo(t+o/2-12,n+58),e.lineTo(t-o/2+12,n+58),e.lineTo(t-o/2,n+29),e.closePath(),e.fillStyle=`rgba(4,6,12,0.88)`,e.fill();let s=e.createLinearGradient(t-o/2,n,t+o/2,n+58);s.addColorStop(0,`#8a6a26`),s.addColorStop(.5,`#f6d57a`),s.addColorStop(1,`#8a6a26`),e.strokeStyle=s,e.lineWidth=2,e.stroke(),e.textAlign=`center`,e.fillStyle=`#ffffff`,e.font=`800 22px ui-monospace, monospace`,e.fillText(r,t,n+27),e.fillStyle=`#f6d57a`,e.font=`800 12px Inter, system-ui, sans-serif`,e.fillText(i,t,n+44),a!==`FIGHT`&&(e.fillStyle=`#93a3bd`,e.font=`700 9px Inter, system-ui, sans-serif`,e.fillText(a,t,n+55)),e.restore()}var qn=78,Jn=50,Yn=.22,Xn=e=>e<480?Jn:qn,Zn=(e,t)=>Math.max(e<640?112:56,t*.1)+Xn(t)/2-t/2,Qn={upright:{bottom:118,height:274,moves:0,grid:118},landscape:{bottom:118,height:196,moves:102,grid:118},short:{bottom:112,height:154,moves:86,grid:92},shortHeight:350,reach:216,movesReach:134},$n=(e,t)=>e<=t?Qn.upright:t<=Qn.shortHeight?Qn.short:Qn.landscape;function er(e,t,n){let r=$n(e,t);return n<=t-r.bottom-r.height?0:Qn.reach+(r.moves>0&&n>t-r.bottom-r.moves?Qn.movesReach:0)}var tr=160;function nr(e,t,n=!1){let r=Xn(t),i=t/2+Zn(e,t)-r/2,a=Math.min(320,e-24),o=e/2+a/2;if(n&&e<=t)er(e,t,i+r+8)>0&&(r=Jn);else if(n){let n=e<640?Math.min(e/2-Wn/2-8,e-er(e,t,56+r)):0,s=n-12>=tr;s&&(i=56);let c=s?n:e-er(e,t,i+r);o>c&&(a=Math.min(a,c-12),o=c)}return{x:o-a,y:i,width:a,height:r}}var rr={width:380,height:150},ir=112;function ar(e,t,n=!1){let r=$n(e,t),i=t-r.bottom-r.grid,a=e<=t,o=n&&a?Math.min(t-ir,i-8):t-ir,s=Math.max(56,Math.min(Math.max(t*.24,gr(t,e<640)+34),o-rr.height)),c=Math.min(rr.width,e-24),l=e/2+c/2;if(n&&!a&&s+rr.height>i){let t=e-Qn.reach;l>t&&(c=Math.min(c,t-12),l=t)}return{x:l-c,y:s,width:c,height:rr.height}}function or(e,t,n,r){let i=t.height===Jn,a=t.x+t.width/2;e.fillStyle=`rgba(3,6,12,0.88)`,e.fillRect(t.x,t.y,t.width,t.height),e.strokeStyle=`rgba(246,213,122,0.45)`,e.lineWidth=1.5,e.strokeRect(t.x+2,t.y+2,t.width-4,t.height-4),e.textAlign=`center`,e.fillStyle=`#ffd77a`,Lr(e,n,a,t.y+(i?22:34),t.width-24,800,i?17:22,12),e.fillStyle=`#c8d3e6`,e.font=`600 ${i?11:12}px Inter, system-ui, sans-serif`,e.fillText(un(e,r,t.width-24),a,t.y+(i?39:58))}var sr=class{fightTicks=null;round=0;ticks(e){return e.round_number!==this.round&&(this.round=e.round_number,this.fightTicks=null),e.phase===`fight`&&(this.fightTicks=e.phase_ticks_remaining),(e.phase===`knockdown`||e.phase===`foul_recovery`||e.phase===`referee_down`||e.phase===`finish`||e.phase===`complete`)&&this.fightTicks!==null?this.fightTicks:e.phase_ticks_remaining}},cr=()=>({thrown:0,landed:0,jabsThrown:0,jabsLanded:0});function lr(e,t){return e.action_id!==null&&t.some(t=>(t.kind===`block`||t.kind===`perfect_block`)&&t.tick===e.tick&&t.action_id===e.action_id&&t.actor_id===e.target_id)}var ur=class{stats=new Map;totals=new Map;record(e,t=[]){if(e.kind===`bell`)e.detail===`round_start`&&this.stats.clear();else if(e.actor_id!==null){if(e.kind===`punch_start`){let t=+(e.detail.split(`:`)[1]===`jab`);for(let n of[this.entry(this.stats,e.actor_id),this.entry(this.totals,e.actor_id)])n.thrown+=1,n.jabsThrown+=t}else if((e.kind===`hit`||e.kind===`counter_hit`)&&!lr(e,t)){let t=+(e.detail.split(`:`)[0]===`jab`);for(let n of[this.entry(this.stats,e.actor_id),this.entry(this.totals,e.actor_id)])n.landed+=1,n.jabsLanded+=t}}}get(e){return this.stats.get(e)??cr()}total(e){return this.totals.get(e)??cr()}entry(e,t){let n=e.get(t);return n===void 0&&(n=cr(),e.set(t,n)),n}};function dr(e){let t=e.method.replaceAll(`_`,` `).toUpperCase();if(e.method!==`decision`&&e.method!==`draw`)return t;let n=0,r=0,i=0;for(let t of e.scorecards){let e=ln(t.player_one),a=ln(t.player_two);e>a?n+=1:a>e?r+=1:i+=1}let a=e.scorecards.length;return a===0?t:e.method===`draw`?i===a?`UNANIMOUS DRAW`:n===r?`SPLIT DRAW`:`MAJORITY DRAW`:Math.max(n,r)===a?`UNANIMOUS DECISION`:i>0?`MAJORITY DECISION`:`SPLIT DECISION`}var fr=new Set([`ko`,`flash_ko`,`tko`,`death`]),pr=3.6,mr=2.4;function hr(e){return e===null?0:fr.has(e.method)?pr:e.method===`disqualification`?mr:0}var gr=(e,t)=>Math.max(e*.16,(t?112:56)+40),_r=(e,t)=>e!==null&&e>=(t?100:120),vr=`FINISH HIM!`,yr=`Impact, "Arial Black", Inter, system-ui, sans-serif`,br=2.2,xr=.82,Sr={name:15,nameGap:24,bar:10,foot:42},Cr={name:11,nameGap:15,bar:6,foot:26},wr=28,Tr=160;function Er(e,t,n=!1){let r=e<640?118:60,i=Math.round(Math.min(120,t*.17,(e-32)/5)),a=(e,t,n,r,i)=>{let a=i+Math.round(e*xr);return{centre:n,maxWidth:r,size:e,baseline:a,bottom:a+(t?Cr:Sr).foot,dense:t}};if(!n)return a(i,!1,e/2,e-32,r);let o=$n(e,t),s=t-o.bottom-o.height;for(let n of[!1,!0]){let c=null;for(let l of o.moves>0?[s,t-o.bottom-o.moves]:[s]){let o=Math.min(i,Math.floor((l-r-(n?Cr:Sr).foot)/xr));if(o=Tr&&(c={...s,maxWidth:e-2*u})}if(c!==null)return c}let c=nr(e,t,!0);return a(Math.max(12,Math.min(i,Math.floor((c.height-Cr.foot-4)/xr))),!0,c.x+c.width/2,c.width,c.y+2)}function Dr(e,t=null){let[n,r]=e;return t!==null&&(n.player_id===t||r.player_id===t)?n.player_id===t?n:r:n.poise===0==(r.poise===0)?n.knockdowns===r.knockdowns?n.stunned_ticks===r.stunned_ticks?null:n.stunned_ticks>r.stunned_ticks?n:r:n.knockdowns>r.knockdowns?n:r:n.poise===0?n:r}var Or=[`jab`,`straight`,`hook`,`uppercut`],kr=Or.map(e=>e.toUpperCase()),Ar=[`head`,`body`].map(e=>({target:e.toUpperCase(),fatalities:Or.map(t=>F(De(e,t)))})),jr=14,Mr=.4,Nr=[0,0,0,0];function Pr(e,t,n,r,i){e.save(),e.textAlign=`left`;for(let a of[!1,!0])for(let o=10;o>=8;--o){let s=o+5,c=(a?3:2)*s+6;if(n+c>i)continue;e.font=`700 ${o}px Inter, system-ui, sans-serif`;let l=o*.4,u=Math.max(...Ar.map(t=>e.measureText(t.target).width))+10,d=12+u+42;for(let[t,n]of kr.entries()){let r=e.measureText(n).width,i=a?r:0;for(let n of Ar)i=Math.max(i,e.measureText(n.fatalities[t]).width+(a?0:r+l));Nr[t]=i,d+=i}if(d>r)continue;let f=t-d/2;e.fillStyle=`rgba(3,6,12,0.78)`,e.fillRect(f,n,d,c);let p=n+2+o;if(a){e.fillStyle=`#f6d57a`;let t=f+6+u;for(let[n,r]of kr.entries())e.fillText(r,t,p),t+=Nr[n]+jr;p+=s}for(let t of Ar){e.fillStyle=fn,e.fillText(t.target,f+6,p);let n=f+6+u;for(let[r,i]of t.fatalities.entries()){let t=kr[r];a||(e.fillStyle=`#f6d57a`,e.fillText(t,n,p)),e.fillStyle=`#f5f8ff`,e.fillText(i,a?n:n+e.measureText(t).width+l,p),n+=Nr[r]+jr}p+=s}e.restore();return}e.restore()}function Fr(e,t,n,r,i,a){let o=i===null?0:.5-.5*Math.cos(i*br*Math.PI*2),s=t.dense?Cr:Sr;e.save(),e.textAlign=`center`,e.font=`italic 900 ${t.size}px ${yr}`;let c=e.measureText(vr).width,l=Math.min(t.size,t.size*t.maxWidth/(c*1.1)),u=l*(1+.08*o);e.font=`italic 900 ${u}px ${yr}`,e.lineJoin=`round`,e.lineWidth=Math.max(3,u*.12),e.strokeStyle=`rgba(10,0,0,0.92)`,e.shadowColor=`rgba(255,24,12,0.9)`,e.shadowBlur=14+24*o,e.strokeText(vr,t.centre,t.baseline),e.shadowBlur=0;let d=e.createLinearGradient(0,t.baseline-u*.8,0,t.baseline);d.addColorStop(0,`#ff5540`),d.addColorStop(.5,`#d8160d`),d.addColorStop(1,`#7d0705`),e.fillStyle=d,e.fillText(vr,t.centre,t.baseline),e.font=`800 ${s.name}px Inter, system-ui, sans-serif`,e.lineWidth=t.dense?3:4;let f=`ONE MORE PUNCH KILLS`;if(n!==null){let r=e.measureText(`${n} IS DEAD ON HIS FEET`).width<=t.maxWidth?` IS DEAD ON HIS FEET`:` IS DONE FOR`;f=`${un(e,n,Math.max(0,t.maxWidth-e.measureText(r).width))}${r}`}e.strokeText(f,t.centre,t.baseline+s.nameGap),e.fillStyle=`#ffe8e3`,e.fillText(f,t.centre,t.baseline+s.nameGap);let p=Math.min(420,t.maxWidth),m=t.bottom-s.bar-2,h=p*Math.max(0,Math.min(1,r));e.fillStyle=`rgba(2,4,9,0.85)`,e.fillRect(t.centre-p/2-1,m-1,p+2,s.bar+2),e.fillStyle=`#e0180f`,e.fillRect(t.centre-h/2,m,h,s.bar),e.strokeStyle=`rgba(255,112,102,0.85)`,e.lineWidth=1,e.strokeRect(t.centre-p/2-1.5,m-1.5,p+3,s.bar+3),e.restore(),a!==null&&Pr(e,t.centre,t.bottom+8,Math.min(t.maxWidth,c*l/t.size),a)}function Ir(e,t,n,r,i,a,o,s,c=30,l=null,u=null,d=null,f=null,p=null,g=null,_=null,v=!1,y=!1,b=null,x=null,S=!0){e.save();let C=Hn(t,n);e.scale(C,C),t/=C,n/=C,e.textBaseline=`alphabetic`;let w=e=>{let t=i[e.player_id];return t===void 0||g===null?null:g(t)},T=t<640,E=T?(t-56)/2:Math.min(300,t*.38,t/2-Wn/2-8-24),D=n-84,O=S?r.tick/c:null,k=Bn(t,n,v,r.phase===`rest`&&r.fighters.some(e=>e.player_id===a));o===null&&r.fighters.forEach((o,s)=>{let c=s===1,l=c?t-24-E:24,u=i[o.player_id],d=[{label:`${T?`STA`:`STAMINA`} ${Math.round(o.stamina)}`,value:o.stamina,maximum:o.maximum_stamina,from:`#ffe08a`,to:`#d9a53a`},{label:`${T?`HP`:`HEALTH`} ${Math.round(o.conditioning)}`,value:o.conditioning,maximum:cn,from:`#ff8a7a`,to:`#b02a20`},{label:o.guard_broken?`GUARD BROKEN`:`GUARD`,value:o.guard,maximum:700,from:`#9ec7ff`,to:`#3d6fb8`,spentBelow:o.guard_broken?h:m},{label:`POISE ${Math.round(o.poise)}`,value:o.poise,maximum:600,from:`#e8c890`,to:`#8a6a34`}],f=s===0?`#3d6fb8`:`#b02a20`,p=D-12,g=gn(o.trauma,o.injuries),_=Vn(o.blood_volume,O),b=r.phase===`fight`||r.phase===`countdown`||r.phase===`finish`&&Dr(r.fighters,x)?.player_id!==o.player_id,S=y&&o.player_id===a&&b,C=k?3:2,A=Math.min(64,(E-28-C*12)/C),j=A+12,ee=c?l+E+4-C*j:l+20,M=c?l+E-8:ee,te=ee+(c?C-2:0)*j,ne=0;if(k){let n=A<40,r=n&&_.label===`BLEEDING OUT`;pn(e,te,p,A,n?{...d[2],label:r?``:`GUARD`}:d[2],c),pn(e,te+j,p,A,n?{...d[3],label:r?``:`POISE`}:d[3],c),pn(e,c?ee:ee+2*j,p,A,n?{..._,label:r?``:`BLOOD`}:_,c),r&&mn(e,M,p,Ln,c,!1,_.alarm);let i=c?ee-12:ee+3*j;ne=Pn(e,i,p-5,c?i-t/2-4:t/2-4-i,g,o.injuries,c)}else{pn(e,te,p,A,d[2],c),pn(e,te+j,p,A,d[3],c);let t=2*A+12;pn(e,ee,p-Rn,t,_,c);let n=p-Rn-zn;g!==null&&(n-=18,bn(e,M,n,g,c)),n=Nn(e,M,n-4,T?E-24:t,o.injuries,T?wn.compact:wn.wide,c),S&&yn(e,M,n-18,c)}Gn(e,l,D,E,u?.name??`Fighter`,Un(u,o,T,ne),d.slice(0,2),c,f,T?void 0:w(o),k&&S),T&&!(v&&t>n)&&hn(e,t/2+(c?1:-1)*112,83,20,w(o),u?.name??`Fighter`,f)});let A=Math.floor((p??r.phase_ticks_remaining)/c),j=`${Math.floor(A/60)}:${String(A%60).padStart(2,`0`)}`,ee=r.phase===`knockdown`&&u===null&&r.fighters.some(e=>e.player_id===a&&e.is_downed)?ar(t,n,v):null,M=ee!==null&&T&&ee.y<112;o===null&&!M&&Kn(e,t/2,T?54:n-84,j,`ROUND ${r.round_number}`,r.phase===`complete`?`FINAL`:r.phase.replace(`_`,` `).toUpperCase());let te=d===null?0:Math.round(d);if(te>=100&&!T&&o===null&&!(v&&u!==null)&&r.fighters.some(e=>e.player_id===a)&&(e.save(),e.textAlign=v?`left`:`right`,e.font=`700 11px ui-monospace, monospace`,e.fillStyle=te<200?`rgba(240,200,110,0.9)`:`rgba(255,110,100,0.95)`,e.fillText(`SLOW CONNECTION ${te} ms`,v?24:t-24,76),e.restore()),u!==null){let t=T?120:64;e.save(),e.fillStyle=`rgba(3,6,12,0.82)`,e.fillRect(24,t,196,34),e.fillStyle=`#ff3b3b`,e.beginPath(),e.arc(42,t+17,6,0,Math.PI*2),e.fill(),e.fillStyle=`#f6f7fb`,e.font=`800 14px Inter, system-ui, sans-serif`,e.textAlign=`left`,e.fillText(u,56,t+22),e.restore()}f!==null&&r.phase===`fight`&&(e.save(),e.textAlign=`center`,e.font=`900 46px Inter, system-ui, sans-serif`,e.lineWidth=6,e.strokeStyle=`rgba(0,0,0,0.75)`,e.strokeText(f,t/2,n*Yn),e.fillStyle=`#f6d57a`,e.fillText(f,t/2,n*Yn),e.restore()),r.phase===`countdown`&&or(e,nr(t,n,v),`ROUND ${r.round_number}`,`Touch gloves. Protect yourself at all times.`);let ne=gr(n,T);if(r.phase===`knockdown`&&u===null){let n=r.fighters.find(e=>e.is_downed),a=n??r.fighters.find(e=>e.player_id===_),o=a===void 0?null:(i[a.player_id]?.name??`Fighter`).toUpperCase();e.save(),e.textAlign=`center`,e.font=`900 44px Inter, system-ui, sans-serif`,e.lineWidth=6,e.strokeStyle=`rgba(0,0,0,0.75)`,(ee===null||ee.y>=ne+6)&&(e.strokeText(`KNOCKDOWN`,t/2,ne),e.fillStyle=`#ff4d4d`,e.fillText(`KNOCKDOWN`,t/2,ne)),e.font=`700 15px Inter, system-ui, sans-serif`,e.fillStyle=`#e6ecf7`;let s=n===void 0?` BEAT THE COUNT`:` IS DOWN`,c=o===null?`STANDING EIGHT`:`${un(e,o,Math.min(t*.5,t-32-e.measureText(s).width))}${s}`;(ee===null||ee.y>=ne+30)&&e.fillText(c,t/2,ne+24),e.restore()}if(r.phase===`knockdown`&&u===null){let i=r.fighters.find(e=>e.player_id===a),o=Math.max(...r.fighters.map(e=>e.get_up_count));if(i?.is_downed!==!0)o>=1&&(e.save(),e.textAlign=`center`,e.font=`900 36px Inter, system-ui, sans-serif`,e.lineWidth=5,e.strokeStyle=`rgba(0,0,0,0.75)`,e.strokeText(`COUNT ${o}`,t/2,ne+64),e.fillStyle=`#ffd77a`,e.fillText(`COUNT ${o}`,t/2,ne+64),e.restore());else{let{x:a,y:s,width:c,height:l}=ee??ar(t,n,v),u=a+c/2;e.fillStyle=`rgba(3,6,12,0.88)`,e.fillRect(a,s,c,l),e.strokeStyle=`rgba(246,213,122,0.5)`,e.lineWidth=2,e.strokeRect(a+2,s+2,c-4,l-4),e.textAlign=`center`,e.fillStyle=`#ffd77a`,e.font=`800 30px Inter, system-ui, sans-serif`,e.fillText(o>=1?`COUNT ${o}`:`GET UP!`,u,s+40);let d=i?.is_downed===!0?i.get_up_prompt:null;if(d!=null&&i!==void 0){let t=r.tick>=i.get_up_window_start_tick&&r.tick<=i.get_up_window_end_tick,n=d===`get_up_left`?`←`:`→`;t?(e.fillStyle=`#ffe9a8`,e.font=`900 64px Inter, system-ui, sans-serif`,e.fillText(n,u-90,s+106),e.fillStyle=`#7dffa8`,e.font=`900 34px Inter, system-ui, sans-serif`,e.fillText(`NOW!`,u+62,s+100)):(e.fillStyle=`#8fa3c8`,e.font=`800 30px Inter, system-ui, sans-serif`,e.fillText(`GET READY ${n}`,u,s+98));let o=c-60,l=Math.max(0,Math.min(1,i.get_up_meter/Math.max(1,i.get_up_required)));e.fillStyle=`rgba(2,4,9,0.9)`,e.fillRect(a+30,s+120,o,16);let f=e.createLinearGradient(a+30,0,a+30+o,0);f.addColorStop(0,`#7dffa8`),f.addColorStop(1,`#2ea860`),e.fillStyle=f,e.fillRect(a+30,s+120,o*l,16),e.strokeStyle=`rgba(210,220,235,0.5)`,e.lineWidth=1,e.strokeRect(a+29.5,s+119.5,o+1,17)}else e.fillStyle=`#c8d3e6`,e.font=`600 14px Inter, system-ui, sans-serif`,e.fillText(un(e,`Waiting for your rhythm instruction…`,c-24),u,s+100)}}if(r.phase===`finish`&&o===null&&u===null){let o=Dr(r.fighters,x),s=Er(t,n,v),c=o!==null&&o.player_id!==a&&r.fighters.some(e=>e.player_id===a);Fr(e,s,o===null?null:(i[o.player_id]?.name??`Fighter`).toUpperCase(),r.phase_ticks_remaining/Se,O,c&&!v?n*Mr:null)}if(r.phase===`foul_recovery`){let a=r.fighters.find(e=>e.is_foul_recovery_target);or(e,nr(t,n,v),`FOUL RECOVERY`,`${i[a?.player_id??``]?.name??`Fighter`} is recovering`)}if(r.phase===`rest`){let i=r.fighters.map((e,t)=>({corner:t===0?`Blue`:`Red`,stats:l?.get(e.player_id)??cr()})).filter(({stats:e})=>e.thrown>0||e.landed>0).map(({corner:e,stats:t})=>`${e} ${t.landed} of ${t.thrown}`).join(` · `),a=vn(r.fighters);or(e,nr(t,n,v),`CORNERS · RECOVER`,a??(i.length>0?`Landed this round: ${i}`:`Conditioning governs recovery`))}if(s>0){let r=Math.min(320,t-24),i=Xn(n);or(e,v?nr(t,n,!0):{x:t/2-r/2,y:n/2-i/2,width:r,height:i},`OPPONENT RECONNECTING · ${Math.ceil(s/1e3)}s`,`The bout is paused`)}if(o!==null){let a=r.fighters.map(e=>l?.total(e.player_id)??cr());qr(e,t,n,Br(o,r.fighters,i,a,b),!0,[w(r.fighters[0]),w(r.fighters[1])])}e.restore()}function Lr(e,t,n,r,i,a,o,s,c=`Inter, system-ui, sans-serif`){e.font=`${a} ${dn(n=>(e.font=`${a} ${n}px ${c}`,e.measureText(t).width),i,o,s)}px ${c}`,e.fillText(un(e,t,i),n,r)}var Rr={ko:`KNOCKOUT`,flash_ko:`FLASH KNOCKOUT`,tko:`TECHNICAL KNOCKOUT`,disqualification:`DISQUALIFICATION`,forfeit:`FORFEIT`},zr=(e,t)=>e>t?0:t>e?1:null;function Br(e,t,n,r,i=null){let a=t.map(e=>n[e.player_id]?.name??`Fighter`),o=e.winner_id===null?null:t[0].player_id===e.winner_id?0:t[1].player_id===e.winner_id?1:null,s=e.method===`draw`&&i!==null,c=[],l=[];if(e.method===`decision`||e.method===`draw`&&!s)for(let t of e.scorecards){let e=ln(t.player_one),n=ln(t.player_two);l.push({label:t.judge.toUpperCase(),values:[String(e),String(n)],lead:zr(e,n)})}let u=[t[1].knockdowns,t[0].knockdowns];(u[0]>0||u[1]>0)&&c.push({label:`KNOCKDOWNS`,values:[String(u[0]),String(u[1])],lead:zr(u[0],u[1])});let[d,f]=t.map(t=>e.punches?.[t.player_id]),p=e=>({thrown:e.thrown,landed:e.landed,jabsThrown:e.jabs_thrown,jabsLanded:e.jabs_landed}),m=d!==void 0&&f!==void 0?[p(d),p(f)]:r;if(m[0].thrown>0||m[1].thrown>0){let e=(e,t)=>t>0?`${Math.min(e,t)}/${t} (${Math.round(Math.min(e,t)/t*100)}%)`:`0/0`,t=m.map(e=>({landed:e.landed-e.jabsLanded,thrown:e.thrown-e.jabsThrown}));c.push({label:`TOTAL PUNCHES`,values:[e(m[0].landed,m[0].thrown),e(m[1].landed,m[1].thrown)],lead:zr(m[0].landed,m[1].landed)}),c.push({label:`JABS`,values:[e(m[0].jabsLanded,m[0].jabsThrown),e(m[1].jabsLanded,m[1].jabsThrown)],lead:zr(m[0].jabsLanded,m[1].jabsLanded)}),c.push({label:`POWER PUNCHES`,values:[e(t[0].landed,t[0].thrown),e(t[1].landed,t[1].thrown)],lead:zr(t[0].landed,t[1].landed)})}let[h,g]=t.map(t=>e.ratings[t.player_id]);if(t.some(e=>n[e.player_id]?.cpu===!0))c.push({label:`RATING`,values:[`Unrated`,`Unrated`],lead:null});else if(h!==void 0&&g!==void 0){let e=e=>`${e.after} (${e.after>=e.before?`+`:`−`}${Math.abs(e.after-e.before)})`;c.push({label:`RATING`,values:[e(h),e(g)],lead:null,news:[h.after>=h.before,g.after>=g.before]})}return{headline:e.method===`death`?i!==null&&ke(i)!==null?`FATALITY`:`DEATH`:s?`DOUBLE DEATH`:Rr[e.method]??dr(e),detail:i!==null&&(e.method===`death`||s)?`${Ae(i)} · ROUND ${e.round}`:`ROUND ${e.round}`,verdict:s?`NO SURVIVORS`:o===null?e.winner_id===null?`DRAW`:`${(n[e.winner_id]?.name??`Winner`).toUpperCase()} WINS`:`${a[o].toUpperCase()} WINS`,deadly:e.method===`death`||s,winnerSeat:o,names:a,judges:l,rows:c}}var Vr=[`#4f86d9`,`#d9483c`],Hr=14;function Ur(e,t,n,r){let i=Hn(e,t),a=Kr(e/i,t/i,n,r);return i===1?a:{...a,x:a.x*i,y:a.y*i,width:a.width*i,height:a.height*i,rowHeight:a.rowHeight*i,verdictHeight:a.verdictHeight*i,judgesHeight:a.judgesHeight*i}}var Wr=new Set([`KNOCKDOWNS`,`TOTAL PUNCHES`,`RATING`]),Gr=(e,t)=>t?e.rows.filter(e=>Wr.has(e.label)):e.rows;function Kr(e,t,n,r){let i=t<480,a=e>=900||e>=640&&i,o=Math.min(e-24,a?980:720),s=r?62:Hr,c=i?72:112,l=n.judges.length===0?0:i?36:52,u=c+l,d=Gr(n,i).length+1,f=t-(e<640?118:70)-14-Hr-s-(a?0:u),p=Math.max(16,Math.min(i?20:28,f/d)),m=Hr+(a?Math.max(u,d*p):u+d*p)+s;return{x:(e-o)/2,y:t-14-m,width:o,height:m,wide:a,dense:i,rowHeight:p,verdictHeight:c,judgesHeight:l}}function qr(e,t,n,r,i,a){let o=Kr(t,n,r,i),{x:s,y:c}=o;e.fillStyle=`rgba(3,6,12,0.9)`,e.fillRect(s,c,o.width,o.height),e.strokeStyle=r.deadly?`rgba(224,36,26,0.8)`:`rgba(246,213,122,0.55)`,e.lineWidth=2,e.strokeRect(s+1,c+1,o.width-2,o.height-2),e.textAlign=`center`;let l=(o.wide?o.width*.42:o.width)-32,u=o.wide?s+o.width*.21+4:t/2,d=c+Hr,f=o.verdictHeight/112;e.fillStyle=r.deadly?`#ff3a2c`:`#f6d57a`,Lr(e,r.headline,u,d+34*f,l,800,(o.wide||t>=640?32:28)*f,14),e.fillStyle=`#aebbd0`,Lr(e,r.detail,u,d+56*f,l,700,13*f,9),e.fillStyle=r.winnerSeat===null?`#f6f7fb`:Vr[r.winnerSeat],Lr(e,r.verdict,u,d+92*f,l,800,25*f,12);let p=l/Math.max(1,r.judges.length),m=d+o.verdictHeight;r.judges.forEach((t,n)=>{let r=u-l/2+p*(n+.5);e.fillStyle=`rgba(255,255,255,0.06)`,e.fillRect(r-p/2+3,m,p-6,o.judgesHeight-8),e.fillStyle=`#8fa3c8`,Lr(e,t.label,r,m+o.judgesHeight*.3,p-14,700,10,7),e.fillStyle=`#f6f7fb`,Lr(e,`${t.values[0]} – ${t.values[1]}`,r,m+o.judgesHeight*.7,p-14,800,o.dense?14:17,10)});let h=o.wide?s+o.width*.42:s+12,g=s+o.width-12-h,_=o.wide?d:m+o.judgesHeight,v=g*.36,y=(g-v)/2,b=[h+y/2,h+g-y/2],x=o.rowHeight,S=Math.min(16,x*.6),C=_+x*.7;e.fillStyle=`rgba(255,255,255,0.06)`,e.fillRect(h,_,g,x);let w=Math.max(6,x/2-2);for(let t of[0,1]){let n=t===0?-1:1;e.fillStyle=Vr[t],e.fillRect(t===0?h:h+g-4,_,4,x),hn(e,b[t]+n*(y/2-10-w),_+x/2,w,a[t],r.names[t],Vr[t]),e.textAlign=`center`,e.fillStyle=`#f6f7fb`,Lr(e,r.names[t],b[t]-n*(w+3+v/4),C,y+v/2-22-w*2,800,S,9)}for(let t of Gr(r,o.dense)){C+=x,e.fillStyle=`#8fa3c8`,Lr(e,t.label,h+g/2,C,v,700,Math.min(12,S),8);for(let n of[0,1])e.fillStyle=t.news===void 0?t.lead===n?`#f6f7fb`:`#aebbd0`:t.news[n]?`#55df9b`:`#ff7b74`,Lr(e,t.values[n],b[n],C,y-16,t.lead===n?800:600,S,9)}}var Jr=6,Yr=150;function Xr(){return typeof window<`u`&&typeof window.speechSynthesis==`object`&&window.speechSynthesis!==null&&typeof window.SpeechSynthesisUtterance==`function`}function Zr(e){let t=e.filter(e=>e.localService&&e.lang.toLowerCase().startsWith(`en`));return t.find(e=>e.default)??t[0]??null}var Qr=class{settings;synthesis;Utterance;queue=[];speaking=null;destroyed=!1;grave=!1;voice=null;voicesListed=!1;onVoicesChanged=null;cutoff=null;pendingShout=null;cutOff=null;shoutTimer=null;voicesChanged=()=>{this.listVoices(),this.voice===null&&this.cancel(),this.onVoicesChanged?.()};visibility=()=>{document.hidden&&this.cancel()};constructor(e,t=Xr()?window.speechSynthesis:null,n=Xr()?window.SpeechSynthesisUtterance:null){this.settings=e,this.synthesis=t,this.Utterance=n,this.listVoices(),t?.addEventListener?.(`voiceschanged`,this.voicesChanged),document.addEventListener(`visibilitychange`,this.visibility)}get supported(){return this.synthesis!==null&&this.Utterance!==null}get hasVoice(){return this.supported&&(this.voice!==null||!this.voicesListed)}speak(e){if(!this.supported||this.destroyed||document.hidden)return;let t=this.settings();!t.announcer||t.volume<=0||(this.voice===null&&this.listVoices(),this.voice!==null&&(this.queue.push(...e),this.queue.length>Jr&&this.queue.splice(0,this.queue.length-Jr),this.speaking===null&&this.pendingShout===null&&this.next()))}shout(e){let t=this.speaking??this.cutOff;if(this.cancel(),t===null){this.grave=!0,this.speak([e]),this.grave=!1;return}let n=()=>{this.pendingShout===n&&(this.clearShout(),t.onend=null,t.onerror=null,this.queue.unshift(e),this.grave=!0,this.next(),this.grave=!1)};this.pendingShout=n,this.cutOff=t,t.onend=n,t.onerror=n,this.shoutTimer=window.setTimeout(n,Yr)}settingsChanged(){let e=this.settings();(!e.announcer||e.volume<=0)&&this.cancel()}finishLine(e){this.queue.length=0,this.clearCutoff();let t=this.speaking;t!==null&&(this.cutoff=window.setTimeout(()=>{this.cutoff=null,this.speaking===t&&this.cancel()},e))}cancel(){this.queue.length=0,this.clearCutoff(),this.clearShout();let e=this.speaking;this.speaking=null,e!==null&&(e.onend=null,e.onerror=null,this.synthesis?.cancel())}destroy(){this.destroyed=!0,this.synthesis?.removeEventListener?.(`voiceschanged`,this.voicesChanged),document.removeEventListener(`visibilitychange`,this.visibility),this.onVoicesChanged=null,this.cancel()}clearCutoff(){this.cutoff!==null&&window.clearTimeout(this.cutoff),this.cutoff=null}clearShout(){this.shoutTimer!==null&&window.clearTimeout(this.shoutTimer),this.shoutTimer=null,this.pendingShout=null,this.cutOff=null}listVoices(){let e=this.synthesis?.getVoices()??[];e.length>0&&(this.voicesListed=!0),this.voice=Zr(e)}next(){let e=this.synthesis,t=this.Utterance,n=this.voice,r=this.queue.shift();if(e===null||t===null||r===void 0)return;let i=this.settings();if(!i.announcer||i.volume<=0||n===null||document.hidden){this.queue.length=0;return}let a=new t(r);a.volume=Math.min(1,i.volume),a.rate=this.grave?.8:.96,a.pitch=this.grave?.3:.82,a.voice=n,a.lang=n.lang;let o=()=>{this.speaking===a&&(this.speaking=null,this.clearCutoff(),this.next())};a.onend=o,a.onerror=o,this.speaking=a,e.speak(a)}},$r=[{name:`decapitation`,sampleRate:12e3,frames:7920,wav:`UklGRgQ+AABXQVZFZm10IBAAAAABAAEA4C4AAMBdAAACABAAZGF0YeA9AAAGAGAAd/9r/1b/Dv+d/kH+Of69/vL/gAGaAhUD9wKOAmICHwPSBLYGQ/pC+4r72/rQ+Sr5sPle+7X+MQM2BmQHHwfgBSEFpAU+CKkLYA649Q331faL9fnzlfMw9ST5+/5iBV4JDAtaCuYIVgdWB0kKSw/iE2HuFvGL8lnxVO/g7TXt4+6L8wT7agMsCvAN0g4gDb0K4QjzCOEMBhO+GHQdcuis667sVOsZ6dTmDeaH54Hr4fE9+0wECgylELYRuBDhDU0LfAnWCb8OABXvG6QiDyiLKwjk3uUl5fziMuAc3v/cvtx23kbj2Op98xH8EQYQD/ETiBVzFgkUHxCYDc0MWAtYC4sPrhWTHE4kpitIMV41DDlm11XZV9pG2ZPXOtVN0yrRjc/wzkXPstA51HDae+DX6I/xjfq1BBYNYRMgGAYaSRwnHU8dkxoAFz0USRJLECwP5A0ZDyUSzha7HdclaS2nNJw6o0JgRw9LVE6kUMZROMnOyWDLQMlWxRzEScGKv0u+eLx5uq+5xbnxuii8ub7nwOLDMMrT0IXWnt1r54DwWPp2A/YLiRBdF9wbex6gIAkibyGNH3IdGBpMFdESOA45C08JEQoUC1gMIBImGl0fFiogM7A6FEMZS1ZThlfAXGhgxGH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Ai=1030,ji=1031,Mi=1033,Ni=33776,Pi=33777,Fi=33778,Ii=33779,Li=35840,Ri=35841,zi=35842,Bi=35843,Vi=36196,Hi=37492,Ui=37496,Wi=37488,Gi=37489,Ki=37490,qi=37491,Ji=37808,Yi=37809,Xi=37810,Zi=37811,Qi=37812,$i=37813,ea=37814,ta=37815,na=37816,ra=37817,ia=37818,aa=37819,oa=37820,sa=37821,ca=36492,la=36494,ua=36495,da=36283,fa=36284,pa=36285,ma=36286,ha=2300,ga=2301,_a=2302,va=2303,ya=2400,ba=2401,xa=2402,Sa=2500,Ca=3200,wa=`srgb`,Ta=`srgb-linear`,Ea=`linear`,Da=`srgb`,Oa=7680,ka=35044,Aa=35048,ja=2e3;function Ma(e){for(let t=e.length-1;t>=0;--t)if(e[t]>=65535)return!0;return!1}function Na(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Pa(e){return document.createElementNS(`http://www.w3.org/1999/xhtml`,e)}function Fa(){let e=Pa(`canvas`);return e.style.display=`block`,e}var Ia={};function La(...e){let t=`THREE.`+e.shift();console.log(t,...e)}function Ra(e){let t=e[0];if(typeof t==`string`&&t.startsWith(`TSL:`)){let t=e[1];t&&t.isStackTrace?e[0]+=` `+t.getLocation():e[1]=`Stack trace not available. Enable "THREE.Node.captureStackTrace" to capture stack traces.`}return e}function za(...e){e=Ra(e);let t=`THREE.`+e.shift();{let n=e[0];n&&n.isStackTrace?console.warn(n.getError(t)):console.warn(t,...e)}}function Ba(...e){e=Ra(e);let t=`THREE.`+e.shift();{let n=e[0];n&&n.isStackTrace?console.error(n.getError(t)):console.error(t,...e)}}function Va(...e){let t=e.join(` `);t in Ia||(Ia[t]=!0,za(...e))}function Ha(e,t,n){return new Promise(function(r,i){function a(){switch(e.clientWaitSync(t,e.SYNC_FLUSH_COMMANDS_BIT,0)){case e.WAIT_FAILED:i();break;case e.TIMEOUT_EXPIRED:setTimeout(a,n);break;default:r()}}setTimeout(a,n)})}var Ua={0:1,2:6,4:7,3:5,1:0,6:2,7:4,5:3},Wa=class{addEventListener(e,t){this._listeners===void 0&&(this._listeners={});let n=this._listeners;n[e]===void 0&&(n[e]=[]),n[e].indexOf(t)===-1&&n[e].push(t)}hasEventListener(e,t){let n=this._listeners;return n!==void 0&&n[e]!==void 0&&n[e].indexOf(t)!==-1}removeEventListener(e,t){let n=this._listeners;if(n===void 0)return;let r=n[e];if(r!==void 0){let e=r.indexOf(t);e!==-1&&r.splice(e,1)}}dispatchEvent(e){let t=this._listeners;if(t===void 0)return;let n=t[e.type];if(n!==void 0){e.target=this;let t=n.slice(0);for(let n=0,r=t.length;n>8&255]+Ga[e>>16&255]+Ga[e>>24&255]+`-`+Ga[t&255]+Ga[t>>8&255]+`-`+Ga[t>>16&15|64]+Ga[t>>24&255]+`-`+Ga[n&63|128]+Ga[n>>8&255]+`-`+Ga[n>>16&255]+Ga[n>>24&255]+Ga[r&255]+Ga[r>>8&255]+Ga[r>>16&255]+Ga[r>>24&255]).toLowerCase()}function Xa(e,t,n){return Math.max(t,Math.min(n,e))}function Za(e,t){return(e%t+t)%t}function Qa(e,t,n,r,i){return r+(e-t)*(i-r)/(n-t)}function $a(e,t,n){return e===t?0:(n-e)/(t-e)}function eo(e,t,n){return(1-n)*e+n*t}function to(e,t,n,r){return eo(e,t,1-Math.exp(-n*r))}function no(e,t=1){return t-Math.abs(Za(e,t*2)-t)}function ro(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t),e*e*(3-2*e))}function io(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t),e*e*e*(e*(e*6-15)+10))}function ao(e,t){return e+Math.floor(Math.random()*(t-e+1))}function oo(e,t){return e+Math.random()*(t-e)}function so(e){return e*(.5-Math.random())}function co(e){e!==void 0&&(Ka=e);let t=Ka+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}function lo(e){return e*qa}function uo(e){return e*Ja}function fo(e){return e>0&&Number.isInteger(e)&&2**Math.round(Math.log2(e))===e}function po(e){return 2**Math.ceil(Math.log(e)/Math.LN2)}function mo(e){return 2**Math.floor(Math.log(e)/Math.LN2)}function ho(e,t,n,r,i){let a=Math.cos,o=Math.sin,s=a(n/2),c=o(n/2),l=a((t+r)/2),u=o((t+r)/2),d=a((t-r)/2),f=o((t-r)/2),p=a((r-t)/2),m=o((r-t)/2);switch(i){case`XYX`:e.set(s*u,c*d,c*f,s*l);break;case`YZY`:e.set(c*f,s*u,c*d,s*l);break;case`ZXZ`:e.set(c*d,c*f,s*u,s*l);break;case`XZX`:e.set(s*u,c*m,c*p,s*l);break;case`YXY`:e.set(c*p,s*u,c*m,s*l);break;case`ZYZ`:e.set(c*m,c*p,s*u,s*l);break;default:za(`MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: `+i)}}function go(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return e/4294967295;case Uint16Array:return e/65535;case Uint8Array:case Uint8ClampedArray:return e/255;case Int32Array:return Math.max(e/2147483647,-1);case Int16Array:return Math.max(e/32767,-1);case Int8Array:return Math.max(e/127,-1);default:throw Error(`THREE.MathUtils: Invalid component type.`)}}function _o(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return Math.round(e*4294967295);case Uint16Array:return Math.round(e*65535);case Uint8Array:case Uint8ClampedArray:return Math.round(e*255);case Int32Array:return Math.round(e*2147483647);case Int16Array:return Math.round(e*32767);case Int8Array:return Math.round(e*127);default:throw Error(`THREE.MathUtils: Invalid component type.`)}}var L={DEG2RAD:qa,RAD2DEG:Ja,generateUUID:Ya,clamp:Xa,euclideanModulo:Za,mapLinear:Qa,inverseLerp:$a,lerp:eo,damp:to,pingpong:no,smoothstep:ro,smootherstep:io,randInt:ao,randFloat:oo,randFloatSpread:so,seededRandom:co,degToRad:lo,radToDeg:uo,isPowerOfTwo:fo,ceilPowerOfTwo:po,floorPowerOfTwo:mo,setQuaternionFromProperEuler:ho,normalize:_o,denormalize:go},R=class e{static{e.prototype.isVector2=!0}constructor(e=0,t=0){this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw Error(`THREE.Vector2: index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw Error(`THREE.Vector2: index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){let t=this.x,n=this.y,r=e.elements;return this.x=r[0]*t+r[3]*n+r[6],this.y=r[1]*t+r[4]*n+r[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=Xa(this.x,e.x,t.x),this.y=Xa(this.y,e.y,t.y),this}clampScalar(e,t){return this.x=Xa(this.x,e,t),this.y=Xa(this.y,e,t),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(Xa(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){let t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;let n=this.dot(e)/t;return Math.acos(Xa(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){let t=this.x-e.x,n=this.y-e.y;return t*t+n*n}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){let n=Math.cos(t),r=Math.sin(t),i=this.x-e.x,a=this.y-e.y;return this.x=i*n-a*r+e.x,this.y=i*r+a*n+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}},vo=class{constructor(e=0,t=0,n=0,r=1){this.isQuaternion=!0,this._x=e,this._y=t,this._z=n,this._w=r}static slerpFlat(e,t,n,r,i,a,o){let s=n[r+0],c=n[r+1],l=n[r+2],u=n[r+3],d=i[a+0],f=i[a+1],p=i[a+2],m=i[a+3];if(u!==m||s!==d||c!==f||l!==p){let e=s*d+c*f+l*p+u*m;e<0&&(d=-d,f=-f,p=-p,m=-m,e=-e);let t=1-o;if(e<.9995){let n=Math.acos(e),r=Math.sin(n);t=Math.sin(t*n)/r,o=Math.sin(o*n)/r,s=s*t+d*o,c=c*t+f*o,l=l*t+p*o,u=u*t+m*o}else{s=s*t+d*o,c=c*t+f*o,l=l*t+p*o,u=u*t+m*o;let e=1/Math.sqrt(s*s+c*c+l*l+u*u);s*=e,c*=e,l*=e,u*=e}}e[t]=s,e[t+1]=c,e[t+2]=l,e[t+3]=u}static multiplyQuaternionsFlat(e,t,n,r,i,a){let o=n[r],s=n[r+1],c=n[r+2],l=n[r+3],u=i[a],d=i[a+1],f=i[a+2],p=i[a+3];return e[t]=o*p+l*u+s*f-c*d,e[t+1]=s*p+l*d+c*u-o*f,e[t+2]=c*p+l*f+o*d-s*u,e[t+3]=l*p-o*u-s*d-c*f,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,n,r){return this._x=e,this._y=t,this._z=n,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t=!0){let n=e._x,r=e._y,i=e._z,a=e._order,o=Math.cos,s=Math.sin,c=o(n/2),l=o(r/2),u=o(i/2),d=s(n/2),f=s(r/2),p=s(i/2);switch(a){case`XYZ`:this._x=d*l*u+c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u-d*f*p;break;case`YXZ`:this._x=d*l*u+c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u+d*f*p;break;case`ZXY`:this._x=d*l*u-c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u-d*f*p;break;case`ZYX`:this._x=d*l*u-c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u+d*f*p;break;case`YZX`:this._x=d*l*u+c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u-d*f*p;break;case`XZY`:this._x=d*l*u-c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u+d*f*p;break;default:za(`Quaternion: .setFromEuler() encountered an unknown order: `+a)}return t===!0&&this._onChangeCallback(),this}setFromAxisAngle(e,t){let n=t/2,r=Math.sin(n);return this._x=e.x*r,this._y=e.y*r,this._z=e.z*r,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(e){let t=e.elements,n=t[0],r=t[4],i=t[8],a=t[1],o=t[5],s=t[9],c=t[2],l=t[6],u=t[10],d=n+o+u;if(d>0){let e=.5/Math.sqrt(d+1);this._w=.25/e,this._x=(l-s)*e,this._y=(i-c)*e,this._z=(a-r)*e}else if(n>o&&n>u){let e=2*Math.sqrt(1+n-o-u);this._w=(l-s)/e,this._x=.25*e,this._y=(r+a)/e,this._z=(i+c)/e}else if(o>u){let e=2*Math.sqrt(1+o-n-u);this._w=(i-c)/e,this._x=(r+a)/e,this._y=.25*e,this._z=(s+l)/e}else{let e=2*Math.sqrt(1+u-n-o);this._w=(a-r)/e,this._x=(i+c)/e,this._y=(s+l)/e,this._z=.25*e}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let n=e.dot(t)+1;return n<1e-8?(n=0,Math.abs(e.x)>Math.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=n):(this._x=0,this._y=-e.z,this._z=e.y,this._w=n)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=n),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(Xa(this.dot(e),-1,1)))}rotateTowards(e,t){let n=this.angleTo(e);if(n===0)return this;let r=Math.min(1,t/n);return this.slerp(e,r),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x*=e,this._y*=e,this._z*=e,this._w*=e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){let n=e._x,r=e._y,i=e._z,a=e._w,o=t._x,s=t._y,c=t._z,l=t._w;return this._x=n*l+a*o+r*c-i*s,this._y=r*l+a*s+i*o-n*c,this._z=i*l+a*c+n*s-r*o,this._w=a*l-n*o-r*s-i*c,this._onChangeCallback(),this}slerp(e,t){let n=e._x,r=e._y,i=e._z,a=e._w,o=this.dot(e);o<0&&(n=-n,r=-r,i=-i,a=-a,o=-o);let s=1-t;if(o<.9995){let e=Math.acos(o),c=Math.sin(e);s=Math.sin(s*e)/c,t=Math.sin(t*e)/c,this._x=this._x*s+n*t,this._y=this._y*s+r*t,this._z=this._z*s+i*t,this._w=this._w*s+a*t,this._onChangeCallback()}else this._x=this._x*s+n*t,this._y=this._y*s+r*t,this._z=this._z*s+i*t,this._w=this._w*s+a*t,this.normalize();return this}slerpQuaternions(e,t,n){return this.copy(e).slerp(t,n)}random(){let e=2*Math.PI*Math.random(),t=2*Math.PI*Math.random(),n=Math.random(),r=Math.sqrt(1-n),i=Math.sqrt(n);return this.set(r*Math.sin(e),r*Math.cos(e),i*Math.sin(t),i*Math.cos(t))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}},z=class e{static{e.prototype.isVector3=!0}constructor(e=0,t=0,n=0){this.x=e,this.y=t,this.z=n}set(e,t,n){return n===void 0&&(n=this.z),this.x=e,this.y=t,this.z=n,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw Error(`THREE.Vector3: index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw Error(`THREE.Vector3: index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(bo.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(bo.setFromAxisAngle(e,t))}applyMatrix3(e){let t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[3]*n+i[6]*r,this.y=i[1]*t+i[4]*n+i[7]*r,this.z=i[2]*t+i[5]*n+i[8]*r,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){let t=this.x,n=this.y,r=this.z,i=e.elements,a=1/(i[3]*t+i[7]*n+i[11]*r+i[15]);return this.x=(i[0]*t+i[4]*n+i[8]*r+i[12])*a,this.y=(i[1]*t+i[5]*n+i[9]*r+i[13])*a,this.z=(i[2]*t+i[6]*n+i[10]*r+i[14])*a,this}applyQuaternion(e){let t=this.x,n=this.y,r=this.z,i=e.x,a=e.y,o=e.z,s=e.w,c=2*(a*r-o*n),l=2*(o*t-i*r),u=2*(i*n-a*t);return this.x=t+s*c+a*u-o*l,this.y=n+s*l+o*c-i*u,this.z=r+s*u+i*l-a*c,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){let t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[4]*n+i[8]*r,this.y=i[1]*t+i[5]*n+i[9]*r,this.z=i[2]*t+i[6]*n+i[10]*r,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=Xa(this.x,e.x,t.x),this.y=Xa(this.y,e.y,t.y),this.z=Xa(this.z,e.z,t.z),this}clampScalar(e,t){return this.x=Xa(this.x,e,t),this.y=Xa(this.y,e,t),this.z=Xa(this.z,e,t),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(Xa(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){let n=e.x,r=e.y,i=e.z,a=t.x,o=t.y,s=t.z;return this.x=r*s-i*o,this.y=i*a-n*s,this.z=n*o-r*a,this}projectOnVector(e){let t=e.lengthSq();if(t===0)return this.set(0,0,0);let n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}projectOnPlane(e){return yo.copy(this).projectOnVector(e),this.sub(yo)}reflect(e){return this.sub(yo.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){let t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;let n=this.dot(e)/t;return Math.acos(Xa(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){let t=this.x-e.x,n=this.y-e.y,r=this.z-e.z;return t*t+n*n+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,n){let r=Math.sin(t)*e;return this.x=r*Math.sin(n),this.y=Math.cos(t)*e,this.z=r*Math.cos(n),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){let t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){let t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),r=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=r,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,t*4)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,t*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){let e=Math.random()*Math.PI*2,t=Math.random()*2-1,n=Math.sqrt(1-t*t);return this.x=n*Math.cos(e),this.y=t,this.z=n*Math.sin(e),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}},yo=new z,bo=new vo,xo=class e{static{e.prototype.isMatrix3=!0}constructor(e,t,n,r,i,a,o,s,c){this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,t,n,r,i,a,o,s,c)}set(e,t,n,r,i,a,o,s,c){let l=this.elements;return l[0]=e,l[1]=r,l[2]=o,l[3]=t,l[4]=i,l[5]=s,l[6]=n,l[7]=a,l[8]=c,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){let t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this}extractBasis(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(e){let t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){let n=e.elements,r=t.elements,i=this.elements,a=n[0],o=n[3],s=n[6],c=n[1],l=n[4],u=n[7],d=n[2],f=n[5],p=n[8],m=r[0],h=r[3],g=r[6],_=r[1],v=r[4],y=r[7],b=r[2],x=r[5],S=r[8];return i[0]=a*m+o*_+s*b,i[3]=a*h+o*v+s*x,i[6]=a*g+o*y+s*S,i[1]=c*m+l*_+u*b,i[4]=c*h+l*v+u*x,i[7]=c*g+l*y+u*S,i[2]=d*m+f*_+p*b,i[5]=d*h+f*v+p*x,i[8]=d*g+f*y+p*S,this}multiplyScalar(e){let t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){let e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8];return t*a*l-t*o*c-n*i*l+n*o*s+r*i*c-r*a*s}invert(){let e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8],u=l*a-o*c,d=o*s-l*i,f=c*i-a*s,p=t*u+n*d+r*f;if(p===0)return this.set(0,0,0,0,0,0,0,0,0);let m=1/p;return e[0]=u*m,e[1]=(r*c-l*n)*m,e[2]=(o*n-r*a)*m,e[3]=d*m,e[4]=(l*t-r*s)*m,e[5]=(r*i-o*t)*m,e[6]=f*m,e[7]=(n*s-c*t)*m,e[8]=(a*t-n*i)*m,this}transpose(){let e,t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){let t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,n,r,i,a,o){let s=Math.cos(i),c=Math.sin(i);return this.set(n*s,n*c,-n*(s*a+c*o)+a+e,-r*c,r*s,-r*(-c*a+s*o)+o+t,0,0,1),this}scale(e,t){return Va(`Matrix3: .scale() is deprecated. Use .makeScale() instead.`),this.premultiply(So.makeScale(e,t)),this}rotate(e){return Va(`Matrix3: .rotate() is deprecated. Use .makeRotation() instead.`),this.premultiply(So.makeRotation(-e)),this}translate(e,t){return Va(`Matrix3: .translate() is deprecated. Use .makeTranslation() instead.`),this.premultiply(So.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){let t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,n,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){let t=this.elements,n=e.elements;for(let e=0;e<9;e++)if(t[e]!==n[e])return!1;return!0}fromArray(e,t=0){for(let n=0;n<9;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){let n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}clone(){return new this.constructor().fromArray(this.elements)}},So=new xo,Co=new xo().set(.4123908,.3575843,.1804808,.212639,.7151687,.0721923,.0193308,.1191948,.9505322),wo=new xo().set(3.2409699,-1.5373832,-.4986108,-.9692436,1.8759675,.0415551,.0556301,-.203977,1.0569715);function To(){let e={enabled:!0,workingColorSpace:Ta,spaces:{},convert:function(e,t,n){return this.enabled===!1||t===n||!t||!n||(this.spaces[t].transfer===`srgb`&&(e.r=Do(e.r),e.g=Do(e.g),e.b=Do(e.b)),this.spaces[t].primaries!==this.spaces[n].primaries&&(e.applyMatrix3(this.spaces[t].toXYZ),e.applyMatrix3(this.spaces[n].fromXYZ)),this.spaces[n].transfer===`srgb`&&(e.r=Oo(e.r),e.g=Oo(e.g),e.b=Oo(e.b))),e},workingToColorSpace:function(e,t){return this.convert(e,this.workingColorSpace,t)},colorSpaceToWorking:function(e,t){return this.convert(e,t,this.workingColorSpace)},getPrimaries:function(e){return this.spaces[e].primaries},getTransfer:function(e){return e===``?Ea:this.spaces[e].transfer},getToneMappingMode:function(e){return this.spaces[e].outputColorSpaceConfig.toneMappingMode||`standard`},getLuminanceCoefficients:function(e,t=this.workingColorSpace){return e.fromArray(this.spaces[t].luminanceCoefficients)},define:function(e){Object.assign(this.spaces,e)},_getMatrix:function(e,t,n){return e.copy(this.spaces[t].toXYZ).multiply(this.spaces[n].fromXYZ)},_getDrawingBufferColorSpace:function(e){return this.spaces[e].outputColorSpaceConfig.drawingBufferColorSpace},_getUnpackColorSpace:function(e=this.workingColorSpace){return this.spaces[e].workingColorSpaceConfig.unpackColorSpace},fromWorkingColorSpace:function(t,n){return Va(`ColorManagement: .fromWorkingColorSpace() has been renamed to .workingToColorSpace().`),e.workingToColorSpace(t,n)},toWorkingColorSpace:function(t,n){return Va(`ColorManagement: .toWorkingColorSpace() has been renamed to .colorSpaceToWorking().`),e.colorSpaceToWorking(t,n)}},t=[.64,.33,.3,.6,.15,.06],n=[.2126,.7152,.0722],r=[.3127,.329];return e.define({[Ta]:{primaries:t,whitePoint:r,transfer:Ea,toXYZ:Co,fromXYZ:wo,luminanceCoefficients:n,workingColorSpaceConfig:{unpackColorSpace:wa},outputColorSpaceConfig:{drawingBufferColorSpace:wa}},[wa]:{primaries:t,whitePoint:r,transfer:Da,toXYZ:Co,fromXYZ:wo,luminanceCoefficients:n,outputColorSpaceConfig:{drawingBufferColorSpace:wa}}}),e}var Eo=To();function Do(e){return e<.04045?e*.0773993808:(e*.9478672986+.0521327014)**2.4}function Oo(e){return e<.0031308?e*12.92:1.055*e**.41666-.055}var ko,Ao=class{static getDataURL(e,t=`image/png`){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>`u`)return e.src;let n;if(e instanceof HTMLCanvasElement)n=e;else{ko===void 0&&(ko=Pa(`canvas`)),ko.width=e.width,ko.height=e.height;let t=ko.getContext(`2d`);e instanceof ImageData?t.putImageData(e,0,0):t.drawImage(e,0,0,e.width,e.height),n=ko}return n.toDataURL(t)}static sRGBToLinear(e){if(typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement||typeof ImageBitmap<`u`&&e instanceof ImageBitmap){let t=Pa(`canvas`);t.width=e.width,t.height=e.height;let n=t.getContext(`2d`);n.drawImage(e,0,0,e.width,e.height);let r=n.getImageData(0,0,e.width,e.height),i=r.data;for(let e=0;e1),this.pmremVersion=0,this.normalized=!1}get width(){return this.source.getSize(Fo).x}get height(){return this.source.getSize(Fo).y}get depth(){return this.source.getSize(Fo).z}get image(){return this.source.data}set image(e){this.source.data=e}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}clone(){return new this.constructor().copy(this)}copy(e){return this.name=e.name,this.source=e.source,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.channel=e.channel,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.internalFormat=e.internalFormat,this.type=e.type,this.normalized=e.normalized,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.colorSpace=e.colorSpace,this.renderTarget=e.renderTarget,this.isRenderTargetTexture=e.isRenderTargetTexture,this.isArrayTexture=e.isArrayTexture,this.userData=JSON.parse(JSON.stringify(e.userData)),this.needsUpdate=!0,this}setValues(e){for(let t in e){let n=e[t];if(n===void 0){za(`Texture.setValues(): parameter '${t}' has value of undefined.`);continue}let r=this[t];r===void 0?za(`Texture.setValues(): property '${t}' does not exist.`):r&&n&&r.isVector2&&n.isVector2||r&&n&&r.isVector3&&n.isVector3||r&&n&&r.isMatrix3&&n.isMatrix3?r.copy(n):this[t]=n}}toJSON(e){let t=e===void 0||typeof e==`string`;if(!t&&e.textures[this.uuid]!==void 0)return e.textures[this.uuid];let n={metadata:{version:4.7,type:`Texture`,generator:`Texture.toJSON`},uuid:this.uuid,name:this.name,image:this.source.toJSON(e).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,normalized:this.normalized,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(n.userData=this.userData),t||(e.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:`dispose`})}transformUv(e){if(this.mapping!==300)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case ti:e.x-=Math.floor(e.x);break;case ni:e.x=e.x<0?0:1;break;case ri:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x-=Math.floor(e.x)}if(e.y<0||e.y>1)switch(this.wrapT){case ti:e.y-=Math.floor(e.y);break;case ni:e.y=e.y<0?0:1;break;case ri:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y-=Math.floor(e.y)}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(e){e===!0&&this.pmremVersion++}};Io.DEFAULT_IMAGE=null,Io.DEFAULT_MAPPING=300,Io.DEFAULT_ANISOTROPY=1;var Lo=class e{static{e.prototype.isVector4=!0}constructor(e=0,t=0,n=0,r=1){this.x=e,this.y=t,this.z=n,this.w=r}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,n,r){return this.x=e,this.y=t,this.z=n,this.w=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw Error(`THREE.Vector4: index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw Error(`THREE.Vector4: index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w===void 0?1:e.w,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){let t=this.x,n=this.y,r=this.z,i=this.w,a=e.elements;return this.x=a[0]*t+a[4]*n+a[8]*r+a[12]*i,this.y=a[1]*t+a[5]*n+a[9]*r+a[13]*i,this.z=a[2]*t+a[6]*n+a[10]*r+a[14]*i,this.w=a[3]*t+a[7]*n+a[11]*r+a[15]*i,this}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this.w/=e.w,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);let t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,n,r,i,a=.01,o=.1,s=e.elements,c=s[0],l=s[4],u=s[8],d=s[1],f=s[5],p=s[9],m=s[2],h=s[6],g=s[10];if(Math.abs(l-d)s&&e>_?e_?s1);this.dispose()}this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}clone(){return new this.constructor().copy(this)}copy(e){this.width=e.width,this.height=e.height,this.depth=e.depth,this.scissor.copy(e.scissor),this.scissorTest=e.scissorTest,this.viewport.copy(e.viewport),this.textures.length=0;for(let t=0,n=e.textures.length;t>>0}enable(e){this.mask|=1<1){for(let e=0;e1){for(let e=0;e0&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),r.up=this.up.toArray(),this.pivot!==null&&(r.pivot=this.pivot.toArray()),this.morphTargetDictionary!==void 0&&(r.morphTargetDictionary=Object.assign({},this.morphTargetDictionary)),this.morphTargetInfluences!==void 0&&(r.morphTargetInfluences=this.morphTargetInfluences.slice()),this.isInstancedMesh&&(r.type=`InstancedMesh`,r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(r.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(r.type=`BatchedMesh`,r.perObjectFrustumCulled=this.perObjectFrustumCulled,r.sortObjects=this.sortObjects,r.drawRanges=this._drawRanges,r.reservedRanges=this._reservedRanges,r.geometryInfo=this._geometryInfo.map(e=>({...e,boundingBox:e.boundingBox?e.boundingBox.toJSON():void 0,boundingSphere:e.boundingSphere?e.boundingSphere.toJSON():void 0})),r.instanceInfo=this._instanceInfo.map(e=>({...e})),r.availableInstanceIds=this._availableInstanceIds.slice(),r.availableGeometryIds=this._availableGeometryIds.slice(),r.nextIndexStart=this._nextIndexStart,r.nextVertexStart=this._nextVertexStart,r.geometryCount=this._geometryCount,r.maxInstanceCount=this._maxInstanceCount,r.maxVertexCount=this._maxVertexCount,r.maxIndexCount=this._maxIndexCount,r.geometryInitialized=this._geometryInitialized,r.matricesTexture=this._matricesTexture.toJSON(e),r.indirectTexture=this._indirectTexture.toJSON(e),this._colorsTexture!==null&&(r.colorsTexture=this._colorsTexture.toJSON(e)),this.boundingSphere!==null&&(r.boundingSphere=this.boundingSphere.toJSON()),this.boundingBox!==null&&(r.boundingBox=this.boundingBox.toJSON()));function i(t,n){return t[n.uuid]===void 0&&(t[n.uuid]=n.toJSON(e)),n.uuid}if(this.isScene)this.background&&(this.background.isColor?r.background=this.background.toJSON():this.background.isTexture&&(r.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(r.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){r.geometry=i(e.geometries,this.geometry);let t=this.geometry.parameters;if(t!==void 0&&t.shapes!==void 0){let n=t.shapes;if(Array.isArray(n))for(let t=0,r=n.length;t0){r.children=[];for(let t=0;t0){r.animations=[];for(let t=0;t0&&(n.geometries=t),r.length>0&&(n.materials=r),i.length>0&&(n.textures=i),o.length>0&&(n.images=o),s.length>0&&(n.shapes=s),c.length>0&&(n.skeletons=c),l.length>0&&(n.animations=l),u.length>0&&(n.nodes=u)}return n.object=r,n;function a(e){let t=[];for(let n in e){let r=e[n];delete r.metadata,t.push(r)}return t}}clone(e){return new this.constructor().copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.pivot=e.pivot===null?null:e.pivot.clone(),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.static=e.static,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),t===!0)for(let t=0;t.025?(c.inputState.pinching=!1,this.dispatchEvent({type:`pinchend`,handedness:e.handedness,target:this})):!c.inputState.pinching&&o<=.015&&(c.inputState.pinching=!0,this.dispatchEvent({type:`pinchstart`,handedness:e.handedness,target:this}))}else s!==null&&e.gripSpace&&(i=t.getPose(e.gripSpace,n),i!==null&&(s.matrix.fromArray(i.transform.matrix),s.matrix.decompose(s.position,s.rotation,s.scale),s.matrixWorldNeedsUpdate=!0,i.linearVelocity?(s.hasLinearVelocity=!0,s.linearVelocity.copy(i.linearVelocity)):s.hasLinearVelocity=!1,i.angularVelocity?(s.hasAngularVelocity=!0,s.angularVelocity.copy(i.angularVelocity)):s.hasAngularVelocity=!1,s.eventsEnabled&&s.dispatchEvent({type:`gripUpdated`,data:e,target:this})));o!==null&&(r=t.getPose(e.targetRaySpace,n),r===null&&i!==null&&(r=i),r!==null&&(o.matrix.fromArray(r.transform.matrix),o.matrix.decompose(o.position,o.rotation,o.scale),o.matrixWorldNeedsUpdate=!0,r.linearVelocity?(o.hasLinearVelocity=!0,o.linearVelocity.copy(r.linearVelocity)):o.hasLinearVelocity=!1,r.angularVelocity?(o.hasAngularVelocity=!0,o.angularVelocity.copy(r.angularVelocity)):o.hasAngularVelocity=!1,this.dispatchEvent(_s)))}return o!==null&&(o.visible=r!==null),s!==null&&(s.visible=i!==null),c!==null&&(c.visible=a!==null),this}_getHandJoint(e,t){if(e.joints[t.jointName]===void 0){let n=new gs;n.matrixAutoUpdate=!1,n.visible=!1,e.joints[t.jointName]=n,e.add(n)}return e.joints[t.jointName]}},ys={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},bs={h:0,s:0,l:0},xs={h:0,s:0,l:0};function Ss(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*6*(2/3-n):e}var B=class{constructor(e,t,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,n)}set(e,t,n){if(t===void 0&&n===void 0){let t=e;t&&t.isColor?this.copy(t):typeof t==`number`?this.setHex(t):typeof t==`string`&&this.setStyle(t)}else this.setRGB(e,t,n);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=wa){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,Eo.colorSpaceToWorking(this,t),this}setRGB(e,t,n,r=Eo.workingColorSpace){return this.r=e,this.g=t,this.b=n,Eo.colorSpaceToWorking(this,r),this}setHSL(e,t,n,r=Eo.workingColorSpace){if(e=Za(e,1),t=Xa(t,0,1),n=Xa(n,0,1),t===0)this.r=this.g=this.b=n;else{let r=n<=.5?n*(1+t):n+t-n*t,i=2*n-r;this.r=Ss(i,r,e+1/3),this.g=Ss(i,r,e),this.b=Ss(i,r,e-1/3)}return Eo.colorSpaceToWorking(this,r),this}setStyle(e,t=wa){function n(t){t!==void 0&&parseFloat(t)<1&&za(`Color: Alpha component of `+e+` will be ignored.`)}let r;if(r=/^(\w+)\(([^\)]*)\)/.exec(e)){let i,a=r[1],o=r[2];switch(a){case`rgb`:case`rgba`:if(i=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setRGB(Math.min(255,parseInt(i[1],10))/255,Math.min(255,parseInt(i[2],10))/255,Math.min(255,parseInt(i[3],10))/255,t);if(i=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setRGB(Math.min(100,parseInt(i[1],10))/100,Math.min(100,parseInt(i[2],10))/100,Math.min(100,parseInt(i[3],10))/100,t);break;case`hsl`:case`hsla`:if(i=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setHSL(parseFloat(i[1])/360,parseFloat(i[2])/100,parseFloat(i[3])/100,t);break;default:za(`Color: Unknown color model `+e)}}else if(r=/^\#([A-Fa-f\d]+)$/.exec(e)){let n=r[1],i=n.length;if(i===3)return this.setRGB(parseInt(n.charAt(0),16)/15,parseInt(n.charAt(1),16)/15,parseInt(n.charAt(2),16)/15,t);if(i===6)return this.setHex(parseInt(n,16),t);za(`Color: Invalid hex color `+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=wa){let n=ys[e.toLowerCase()];return n===void 0?za(`Color: Unknown color `+e):this.setHex(n,t),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=Do(e.r),this.g=Do(e.g),this.b=Do(e.b),this}copyLinearToSRGB(e){return this.r=Oo(e.r),this.g=Oo(e.g),this.b=Oo(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=wa){return Eo.workingToColorSpace(Cs.copy(this),e),Math.round(Xa(Cs.r*255,0,255))*65536+Math.round(Xa(Cs.g*255,0,255))*256+Math.round(Xa(Cs.b*255,0,255))}getHexString(e=wa){return(`000000`+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=Eo.workingColorSpace){Eo.workingToColorSpace(Cs.copy(this),t);let n=Cs.r,r=Cs.g,i=Cs.b,a=Math.max(n,r,i),o=Math.min(n,r,i),s,c,l=(o+a)/2;if(o===a)s=0,c=0;else{let e=a-o;switch(c=l<=.5?e/(a+o):e/(2-a-o),a){case n:s=(r-i)/e+(r0?r.multiplyScalar(1/Math.sqrt(i)):r.set(0,0,0)}static getBarycoord(e,t,n,r,i){Es.subVectors(r,t),Ds.subVectors(n,t),Os.subVectors(e,t);let a=Es.dot(Es),o=Es.dot(Ds),s=Es.dot(Os),c=Ds.dot(Ds),l=Ds.dot(Os),u=a*c-o*o;if(u===0)return i.set(0,0,0),null;let d=1/u,f=(c*s-o*l)*d,p=(a*l-o*s)*d;return i.set(1-f-p,p,f)}static containsPoint(e,t,n,r){return this.getBarycoord(e,t,n,r,ks)!==null&&ks.x>=0&&ks.y>=0&&ks.x+ks.y<=1}static getInterpolation(e,t,n,r,i,a,o,s){return this.getBarycoord(e,t,n,r,ks)===null?(s.x=0,s.y=0,`z`in s&&(s.z=0),`w`in s&&(s.w=0),null):(s.setScalar(0),s.addScaledVector(i,ks.x),s.addScaledVector(a,ks.y),s.addScaledVector(o,ks.z),s)}static getInterpolatedAttribute(e,t,n,r,i,a){return Is.setScalar(0),Ls.setScalar(0),Rs.setScalar(0),Is.fromBufferAttribute(e,t),Ls.fromBufferAttribute(e,n),Rs.fromBufferAttribute(e,r),a.setScalar(0),a.addScaledVector(Is,i.x),a.addScaledVector(Ls,i.y),a.addScaledVector(Rs,i.z),a}static isFrontFacing(e,t,n,r){return Es.subVectors(n,t),Ds.subVectors(e,t),Es.cross(Ds).dot(r)<0}set(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this}setFromPointsAndIndices(e,t,n,r){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[r]),this}setFromAttributeAndIndices(e,t,n,r){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,n),this.c.fromBufferAttribute(e,r),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return Es.subVectors(this.c,this.b),Ds.subVectors(this.a,this.b),Es.cross(Ds).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(t){return e.getNormal(this.a,this.b,this.c,t)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(t,n){return e.getBarycoord(t,this.a,this.b,this.c,n)}getInterpolation(t,n,r,i,a){return e.getInterpolation(t,this.a,this.b,this.c,n,r,i,a)}containsPoint(t){return e.containsPoint(t,this.a,this.b,this.c)}isFrontFacing(t){return e.isFrontFacing(this.a,this.b,this.c,t)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){let n=this.a,r=this.b,i=this.c,a,o;As.subVectors(r,n),js.subVectors(i,n),Ns.subVectors(e,n);let s=As.dot(Ns),c=js.dot(Ns);if(s<=0&&c<=0)return t.copy(n);Ps.subVectors(e,r);let l=As.dot(Ps),u=js.dot(Ps);if(l>=0&&u<=l)return t.copy(r);let d=s*u-l*c;if(d<=0&&s>=0&&l<=0)return a=s/(s-l),t.copy(n).addScaledVector(As,a);Fs.subVectors(e,i);let f=As.dot(Fs),p=js.dot(Fs);if(p>=0&&f<=p)return t.copy(i);let m=f*c-s*p;if(m<=0&&c>=0&&p<=0)return o=c/(c-p),t.copy(n).addScaledVector(js,o);let h=l*p-f*u;if(h<=0&&u-l>=0&&f-p>=0)return Ms.subVectors(i,r),o=(u-l)/(u-l+(f-p)),t.copy(r).addScaledVector(Ms,o);let g=1/(h+m+d);return a=m*g,o=d*g,t.copy(n).addScaledVector(As,a).addScaledVector(js,o)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}},Bs=class{constructor(e=new z(1/0,1/0,1/0),t=new z(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,n=e.length;t=this.min.x&&e.x<=this.max.x&&e.y>=this.min.y&&e.y<=this.max.y&&e.z>=this.min.z&&e.z<=this.max.z}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return e.max.x>=this.min.x&&e.min.x<=this.max.x&&e.max.y>=this.min.y&&e.min.y<=this.max.y&&e.max.z>=this.min.z&&e.min.z<=this.max.z}intersectsSphere(e){return this.clampPoint(e.center,Hs),Hs.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,n;return e.normal.x>0?(t=e.normal.x*this.min.x,n=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,n=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,n+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,n+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,n+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,n+=e.normal.z*this.min.z),t<=-e.constant&&n>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(Xs),Zs.subVectors(this.max,Xs),Ws.subVectors(e.a,Xs),Gs.subVectors(e.b,Xs),Ks.subVectors(e.c,Xs),qs.subVectors(Gs,Ws),Js.subVectors(Ks,Gs),Ys.subVectors(Ws,Ks);let t=[0,-qs.z,qs.y,0,-Js.z,Js.y,0,-Ys.z,Ys.y,qs.z,0,-qs.x,Js.z,0,-Js.x,Ys.z,0,-Ys.x,-qs.y,qs.x,0,-Js.y,Js.x,0,-Ys.y,Ys.x,0];return!ec(t,Ws,Gs,Ks,Zs)||(t=[1,0,0,0,1,0,0,0,1],!ec(t,Ws,Gs,Ks,Zs))?!1:(Qs.crossVectors(qs,Js),t=[Qs.x,Qs.y,Qs.z],ec(t,Ws,Gs,Ks,Zs))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,Hs).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(Hs).length()*.5),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()||(Vs[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),Vs[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),Vs[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),Vs[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),Vs[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),Vs[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),Vs[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),Vs[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(Vs)),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}toJSON(){return{min:this.min.toArray(),max:this.max.toArray()}}fromJSON(e){return this.min.fromArray(e.min),this.max.fromArray(e.max),this}},Vs=[new z,new z,new z,new z,new z,new z,new z,new z],Hs=new z,Us=new Bs,Ws=new z,Gs=new z,Ks=new z,qs=new z,Js=new z,Ys=new z,Xs=new z,Zs=new z,Qs=new z,$s=new z;function ec(e,t,n,r,i){for(let a=0,o=e.length-3;a<=o;a+=3){$s.fromArray(e,a);let o=i.x*Math.abs($s.x)+i.y*Math.abs($s.y)+i.z*Math.abs($s.z),s=t.dot($s),c=n.dot($s),l=r.dot($s);if(Math.max(-Math.max(s,c,l),Math.min(s,c,l))>o)return!1}return!0}var tc=new z,nc=new R,rc=0,ic=class extends Wa{constructor(e,t,n=!1){if(super(),Array.isArray(e))throw TypeError(`THREE.BufferAttribute: array should be a Typed Array.`);this.isBufferAttribute=!0,Object.defineProperty(this,"id",{value:rc++}),this.name=``,this.array=e,this.itemSize=t,this.count=e===void 0?0:e.length/t,this.normalized=n,this.usage=ka,this.updateRanges=[],this.gpuType=gi,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,n){e*=this.itemSize,n*=t.itemSize;for(let r=0,i=this.itemSize;rthis.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius*=e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;lc.subVectors(e,this.center);let t=lc.lengthSq();if(t>this.radius*this.radius){let e=Math.sqrt(t),n=(e-this.radius)*.5;this.center.addScaledVector(lc,n/e),this.radius+=n}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(this.center.equals(e.center)===!0?this.radius=Math.max(this.radius,e.radius):(uc.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(lc.copy(e.center).add(uc)),this.expandByPoint(lc.copy(e.center).sub(uc))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}toJSON(){return{radius:this.radius,center:this.center.toArray()}}fromJSON(e){return this.radius=e.radius,this.center.fromArray(e.center),this}},fc=0,pc=new Ho,mc=new hs,hc=new z,gc=new Bs,_c=new Bs,vc=new z,yc=class e extends Wa{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,"id",{value:fc++}),this.uuid=Ya(),this.name=``,this.type=`BufferGeometry`,this.index=null,this.indirect=null,this.indirectOffset=0,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={},this._transformed=!1}getIndex(){return this.index}setIndex(e){return this.index=Array.isArray(e)?new(Ma(e)?oc:ac)(e,1):e,this}setIndirect(e,t=0){return this.indirect=e,this.indirectOffset=t,this}getIndirect(){return this.indirect}getAttribute(e){return this.attributes[e]}setAttribute(e,t){return this.attributes[e]=t,this}deleteAttribute(e){return delete this.attributes[e],this}hasAttribute(e){return this.attributes[e]!==void 0}addGroup(e,t,n=0){this.groups.push({start:e,count:t,materialIndex:n})}clearGroups(){this.groups=[]}setDrawRange(e,t){this.drawRange.start=e,this.drawRange.count=t}applyMatrix4(e){let t=this.attributes.position;t!==void 0&&(t.applyMatrix4(e),t.needsUpdate=!0);let n=this.attributes.normal;if(n!==void 0){let t=new xo().getNormalMatrix(e);n.applyNormalMatrix(t),n.needsUpdate=!0}let r=this.attributes.tangent;return r!==void 0&&(r.transformDirection(e),r.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this._transformed=!0,this}applyQuaternion(e){return pc.makeRotationFromQuaternion(e),this.applyMatrix4(pc),this}rotateX(e){return pc.makeRotationX(e),this.applyMatrix4(pc),this}rotateY(e){return pc.makeRotationY(e),this.applyMatrix4(pc),this}rotateZ(e){return pc.makeRotationZ(e),this.applyMatrix4(pc),this}translate(e,t,n){return pc.makeTranslation(e,t,n),this.applyMatrix4(pc),this}scale(e,t,n){return pc.makeScale(e,t,n),this.applyMatrix4(pc),this}lookAt(e){return mc.lookAt(e),mc.updateMatrix(),this.applyMatrix4(mc.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(hc).negate(),this.translate(hc.x,hc.y,hc.z),this}setFromPoints(e){let t=this.getAttribute(`position`);if(t===void 0){let t=[];for(let n=0,r=e.length;nt.count&&za(`BufferGeometry: Buffer size too small for points data. Use .dispose() and create a new geometry.`),t.needsUpdate=!0}return this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new Bs);let e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute)Ba(`BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.`,this),this.boundingBox.set(new z(-1/0,-1/0,-1/0),new z(1/0,1/0,1/0));else{if(e!==void 0){if(this.boundingBox.setFromBufferAttribute(e),t)for(let e=0,n=t.length;e0&&(e.userData=this.userData),this.parameters!==void 0&&this._transformed!==!0){let t=this.parameters;for(let n in t)t[n]!==void 0&&(e[n]=t[n]);return e}e.data={attributes:{}};let t=this.index;t!==null&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});let n=this.attributes;for(let t in n){let r=n[t];e.data.attributes[t]=r.toJSON(e.data)}let r={},i=!1;for(let t in this.morphAttributes){let n=this.morphAttributes[t],a=[];for(let t=0,r=n.length;t0&&(r[t]=a,i=!0)}i&&(e.data.morphAttributes=r,e.data.morphTargetsRelative=this.morphTargetsRelative);let a=this.groups;a.length>0&&(e.data.groups=JSON.parse(JSON.stringify(a)));let o=this.boundingSphere;return o!==null&&(e.data.boundingSphere=o.toJSON()),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;let t={};this.name=e.name;let n=e.index;n!==null&&this.setIndex(n.clone());let r=e.attributes;for(let e in r){let n=r[e];this.setAttribute(e,n.clone(t))}let i=e.morphAttributes;for(let e in i){let n=[],r=i[e];for(let e=0,i=r.length;e1)?null:t.copy(e.start).addScaledVector(r,a)}intersectsLine(e){let t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){let n=t||Tc.getNormalMatrix(e),r=this.coplanarPoint(Cc).applyMatrix4(e),i=this.normal.applyMatrix3(n).normalize();return this.constant=-r.dot(i),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}toJSON(){return{normal:this.normal.toArray(),constant:this.constant}}fromJSON(e){return this.normal.fromArray(e.normal),this.constant=e.constant,this}},Dc=0,Oc=class extends Wa{constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,"id",{value:Dc++}),this.uuid=Ya(),this.name=``,this.type=`Material`,this.blending=1,this.side=0,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.alphaHash=!1,this.blendSrc=204,this.blendDst=205,this.blendEquation=100,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.blendColor=new B(0,0,0),this.blendAlpha=0,this.depthFunc=3,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=519,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=Oa,this.stencilZFail=Oa,this.stencilZPass=Oa,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.forceSinglePass=!1,this.allowOverride=!0,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(e){this._alphaTest>0!=e>0&&this.version++,this._alphaTest=e}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(let t in e){let n=e[t];if(n===void 0){za(`Material: parameter '${t}' has value of undefined.`);continue}let r=this[t];r===void 0?za(`Material: '${t}' is not a property of THREE.${this.type}.`):r&&r.isColor?r.set(n):r&&r.isVector2&&n&&n.isVector2||r&&r.isEuler&&n&&n.isEuler||r&&r.isVector3&&n&&n.isVector3?r.copy(n):this[t]=n}}toJSON(e){let t=e===void 0||typeof e==`string`;t&&(e={textures:{},images:{}});let n={metadata:{version:4.7,type:`Material`,generator:`Material.toJSON`}};n.uuid=this.uuid,n.type=this.type,n.blending=this.blending,n.side=this.side,n.shadowSide=this.shadowSide,n.vertexColors=this.vertexColors,n.opacity=this.opacity,n.transparent=this.transparent,n.blendSrc=this.blendSrc,n.blendDst=this.blendDst,n.blendEquation=this.blendEquation,n.blendSrcAlpha=this.blendSrcAlpha,n.blendDstAlpha=this.blendDstAlpha,n.blendEquationAlpha=this.blendEquationAlpha,n.blendColor=this.blendColor.getHex(),n.blendAlpha=this.blendAlpha,n.depthFunc=this.depthFunc,n.depthTest=this.depthTest,n.depthWrite=this.depthWrite,n.colorWrite=this.colorWrite,n.clipIntersection=this.clipIntersection,n.clipShadows=this.clipShadows,n.stencilWriteMask=this.stencilWriteMask,n.stencilFunc=this.stencilFunc,n.stencilRef=this.stencilRef,n.stencilFuncMask=this.stencilFuncMask,n.stencilFail=this.stencilFail,n.stencilZFail=this.stencilZFail,n.stencilZPass=this.stencilZPass,n.stencilWrite=this.stencilWrite,n.polygonOffset=this.polygonOffset,n.polygonOffsetFactor=this.polygonOffsetFactor,n.polygonOffsetUnits=this.polygonOffsetUnits,n.dithering=this.dithering,n.alphaTest=this.alphaTest,n.alphaHash=this.alphaHash,n.alphaToCoverage=this.alphaToCoverage,n.premultipliedAlpha=this.premultipliedAlpha,n.forceSinglePass=this.forceSinglePass,n.allowOverride=this.allowOverride,n.visible=this.visible,n.toneMapped=this.toneMapped,n.name=this.name,this.color&&this.color.isColor&&(n.color=this.color.getHex()),this.roughness!==void 0&&(n.roughness=this.roughness),this.metalness!==void 0&&(n.metalness=this.metalness),this.sheen!==void 0&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity!==void 0&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(n.shininess=this.shininess),this.clearcoat!==void 0&&(n.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.sheenColorMap&&this.sheenColorMap.isTexture&&(n.sheenColorMap=this.sheenColorMap.toJSON(e).uuid),this.sheenRoughnessMap&&this.sheenRoughnessMap.isTexture&&(n.sheenRoughnessMap=this.sheenRoughnessMap.toJSON(e).uuid),this.dispersion!==void 0&&(n.dispersion=this.dispersion),this.retroreflectivity!==void 0&&(n.retroreflectivity=this.retroreflectivity),this.iridescence!==void 0&&(n.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(n.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(n.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(n.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(n.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(n.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(n.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(n.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(e).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(e).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(e).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(e).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(e).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(n.combine=this.combine)),this.envMapRotation!==void 0&&(n.envMapRotation=this.envMapRotation.toArray()),this.envMapIntensity!==void 0&&(n.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(n.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&(n.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(n.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(n.size=this.size),this.sizeAttenuation!==void 0&&(n.sizeAttenuation=this.sizeAttenuation),Array.isArray(this.clippingPlanes)&&this.clippingPlanes.length>0&&(n.clippingPlanes=this.clippingPlanes.map(e=>e.toJSON())),this.rotation!==void 0&&(n.rotation=this.rotation),this.depthPacking!==void 0&&(n.depthPacking=this.depthPacking),this.linewidth!==void 0&&(n.linewidth=this.linewidth),this.linecap!==void 0&&(n.linecap=this.linecap),this.linejoin!==void 0&&(n.linejoin=this.linejoin),this.dashSize!==void 0&&(n.dashSize=this.dashSize),this.gapSize!==void 0&&(n.gapSize=this.gapSize),this.scale!==void 0&&(n.scale=this.scale),this.wireframe!==void 0&&(n.wireframe=this.wireframe),this.wireframeLinewidth!==void 0&&(n.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!==void 0&&(n.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!==void 0&&(n.wireframeLinejoin=this.wireframeLinejoin),this.flatShading!==void 0&&(n.flatShading=this.flatShading),this.fog!==void 0&&(n.fog=this.fog),Object.keys(this.userData).length>0&&(n.userData=this.userData);function r(e){let t=[];for(let n in e){let r=e[n];delete r.metadata,t.push(r)}return t}if(t){let t=r(e.textures),i=r(e.images);t.length>0&&(n.textures=t),i.length>0&&(n.images=i)}return n}fromJSON(e,t){if(e.uuid!==void 0&&(this.uuid=e.uuid),e.name!==void 0&&(this.name=e.name),e.color!==void 0&&this.color!==void 0&&this.color.setHex(e.color),e.roughness!==void 0&&(this.roughness=e.roughness),e.metalness!==void 0&&(this.metalness=e.metalness),e.sheen!==void 0&&(this.sheen=e.sheen),e.sheenColor!==void 0&&(this.sheenColor=new B().setHex(e.sheenColor)),e.sheenRoughness!==void 0&&(this.sheenRoughness=e.sheenRoughness),e.emissive!==void 0&&this.emissive!==void 0&&this.emissive.setHex(e.emissive),e.specular!==void 0&&this.specular!==void 0&&this.specular.setHex(e.specular),e.specularIntensity!==void 0&&(this.specularIntensity=e.specularIntensity),e.specularColor!==void 0&&this.specularColor!==void 0&&this.specularColor.setHex(e.specularColor),e.shininess!==void 0&&(this.shininess=e.shininess),e.clearcoat!==void 0&&(this.clearcoat=e.clearcoat),e.clearcoatRoughness!==void 0&&(this.clearcoatRoughness=e.clearcoatRoughness),e.dispersion!==void 0&&(this.dispersion=e.dispersion),e.retroreflectivity!==void 0&&(this.retroreflectivity=e.retroreflectivity),e.iridescence!==void 0&&(this.iridescence=e.iridescence),e.iridescenceIOR!==void 0&&(this.iridescenceIOR=e.iridescenceIOR),e.iridescenceThicknessRange!==void 0&&(this.iridescenceThicknessRange=e.iridescenceThicknessRange),e.transmission!==void 0&&(this.transmission=e.transmission),e.thickness!==void 0&&(this.thickness=e.thickness),e.attenuationDistance!==void 0&&(this.attenuationDistance=e.attenuationDistance),e.attenuationColor!==void 0&&this.attenuationColor!==void 0&&this.attenuationColor.setHex(e.attenuationColor),e.anisotropy!==void 0&&(this.anisotropy=e.anisotropy),e.anisotropyRotation!==void 0&&(this.anisotropyRotation=e.anisotropyRotation),e.fog!==void 0&&(this.fog=e.fog),e.flatShading!==void 0&&(this.flatShading=e.flatShading),e.blending!==void 0&&(this.blending=e.blending),e.combine!==void 0&&(this.combine=e.combine),e.side!==void 0&&(this.side=e.side),e.shadowSide!==void 0&&(this.shadowSide=e.shadowSide),e.opacity!==void 0&&(this.opacity=e.opacity),e.transparent!==void 0&&(this.transparent=e.transparent),e.alphaTest!==void 0&&(this.alphaTest=e.alphaTest),e.alphaHash!==void 0&&(this.alphaHash=e.alphaHash),e.depthFunc!==void 0&&(this.depthFunc=e.depthFunc),e.depthTest!==void 0&&(this.depthTest=e.depthTest),e.depthWrite!==void 0&&(this.depthWrite=e.depthWrite),e.colorWrite!==void 0&&(this.colorWrite=e.colorWrite),e.clippingPlanes!==void 0&&(this.clippingPlanes=e.clippingPlanes.map(e=>new Ec().fromJSON(e))),e.clipIntersection!==void 0&&(this.clipIntersection=e.clipIntersection),e.clipShadows!==void 0&&(this.clipShadows=e.clipShadows),e.depthPacking!==void 0&&(this.depthPacking=e.depthPacking),e.blendSrc!==void 0&&(this.blendSrc=e.blendSrc),e.blendDst!==void 0&&(this.blendDst=e.blendDst),e.blendEquation!==void 0&&(this.blendEquation=e.blendEquation),e.blendSrcAlpha!==void 0&&(this.blendSrcAlpha=e.blendSrcAlpha),e.blendDstAlpha!==void 0&&(this.blendDstAlpha=e.blendDstAlpha),e.blendEquationAlpha!==void 0&&(this.blendEquationAlpha=e.blendEquationAlpha),e.blendColor!==void 0&&this.blendColor!==void 0&&this.blendColor.setHex(e.blendColor),e.blendAlpha!==void 0&&(this.blendAlpha=e.blendAlpha),e.stencilWriteMask!==void 0&&(this.stencilWriteMask=e.stencilWriteMask),e.stencilFunc!==void 0&&(this.stencilFunc=e.stencilFunc),e.stencilRef!==void 0&&(this.stencilRef=e.stencilRef),e.stencilFuncMask!==void 0&&(this.stencilFuncMask=e.stencilFuncMask),e.stencilFail!==void 0&&(this.stencilFail=e.stencilFail),e.stencilZFail!==void 0&&(this.stencilZFail=e.stencilZFail),e.stencilZPass!==void 0&&(this.stencilZPass=e.stencilZPass),e.stencilWrite!==void 0&&(this.stencilWrite=e.stencilWrite),e.wireframe!==void 0&&(this.wireframe=e.wireframe),e.wireframeLinewidth!==void 0&&(this.wireframeLinewidth=e.wireframeLinewidth),e.wireframeLinecap!==void 0&&(this.wireframeLinecap=e.wireframeLinecap),e.wireframeLinejoin!==void 0&&(this.wireframeLinejoin=e.wireframeLinejoin),e.rotation!==void 0&&(this.rotation=e.rotation),e.linewidth!==void 0&&(this.linewidth=e.linewidth),e.linecap!==void 0&&(this.linecap=e.linecap),e.linejoin!==void 0&&(this.linejoin=e.linejoin),e.dashSize!==void 0&&(this.dashSize=e.dashSize),e.gapSize!==void 0&&(this.gapSize=e.gapSize),e.scale!==void 0&&(this.scale=e.scale),e.polygonOffset!==void 0&&(this.polygonOffset=e.polygonOffset),e.polygonOffsetFactor!==void 0&&(this.polygonOffsetFactor=e.polygonOffsetFactor),e.polygonOffsetUnits!==void 0&&(this.polygonOffsetUnits=e.polygonOffsetUnits),e.dithering!==void 0&&(this.dithering=e.dithering),e.alphaToCoverage!==void 0&&(this.alphaToCoverage=e.alphaToCoverage),e.premultipliedAlpha!==void 0&&(this.premultipliedAlpha=e.premultipliedAlpha),e.forceSinglePass!==void 0&&(this.forceSinglePass=e.forceSinglePass),e.allowOverride!==void 0&&(this.allowOverride=e.allowOverride),e.visible!==void 0&&(this.visible=e.visible),e.toneMapped!==void 0&&(this.toneMapped=e.toneMapped),e.userData!==void 0&&(this.userData=e.userData),e.vertexColors!==void 0&&(this.vertexColors=typeof e.vertexColors==`number`?e.vertexColors>0:e.vertexColors),e.size!==void 0&&(this.size=e.size),e.sizeAttenuation!==void 0&&(this.sizeAttenuation=e.sizeAttenuation),e.map!==void 0&&(this.map=t[e.map]||null),e.matcap!==void 0&&(this.matcap=t[e.matcap]||null),e.alphaMap!==void 0&&(this.alphaMap=t[e.alphaMap]||null),e.bumpMap!==void 0&&(this.bumpMap=t[e.bumpMap]||null),e.bumpScale!==void 0&&(this.bumpScale=e.bumpScale),e.normalMap!==void 0&&(this.normalMap=t[e.normalMap]||null),e.normalMapType!==void 0&&(this.normalMapType=e.normalMapType),e.normalScale!==void 0){let t=e.normalScale;Array.isArray(t)===!1&&(t=[t,t]),this.normalScale=new R().fromArray(t)}return e.displacementMap!==void 0&&(this.displacementMap=t[e.displacementMap]||null),e.displacementScale!==void 0&&(this.displacementScale=e.displacementScale),e.displacementBias!==void 0&&(this.displacementBias=e.displacementBias),e.roughnessMap!==void 0&&(this.roughnessMap=t[e.roughnessMap]||null),e.metalnessMap!==void 0&&(this.metalnessMap=t[e.metalnessMap]||null),e.emissiveMap!==void 0&&(this.emissiveMap=t[e.emissiveMap]||null),e.emissiveIntensity!==void 0&&(this.emissiveIntensity=e.emissiveIntensity),e.specularMap!==void 0&&(this.specularMap=t[e.specularMap]||null),e.specularIntensityMap!==void 0&&(this.specularIntensityMap=t[e.specularIntensityMap]||null),e.specularColorMap!==void 0&&(this.specularColorMap=t[e.specularColorMap]||null),e.envMap!==void 0&&(this.envMap=t[e.envMap]||null),e.envMapRotation!==void 0&&this.envMapRotation.fromArray(e.envMapRotation),e.envMapIntensity!==void 0&&(this.envMapIntensity=e.envMapIntensity),e.reflectivity!==void 0&&(this.reflectivity=e.reflectivity),e.refractionRatio!==void 0&&(this.refractionRatio=e.refractionRatio),e.lightMap!==void 0&&(this.lightMap=t[e.lightMap]||null),e.lightMapIntensity!==void 0&&(this.lightMapIntensity=e.lightMapIntensity),e.aoMap!==void 0&&(this.aoMap=t[e.aoMap]||null),e.aoMapIntensity!==void 0&&(this.aoMapIntensity=e.aoMapIntensity),e.gradientMap!==void 0&&(this.gradientMap=t[e.gradientMap]||null),e.clearcoatMap!==void 0&&(this.clearcoatMap=t[e.clearcoatMap]||null),e.clearcoatRoughnessMap!==void 0&&(this.clearcoatRoughnessMap=t[e.clearcoatRoughnessMap]||null),e.clearcoatNormalMap!==void 0&&(this.clearcoatNormalMap=t[e.clearcoatNormalMap]||null),e.clearcoatNormalScale!==void 0&&(this.clearcoatNormalScale=new R().fromArray(e.clearcoatNormalScale)),e.iridescenceMap!==void 0&&(this.iridescenceMap=t[e.iridescenceMap]||null),e.iridescenceThicknessMap!==void 0&&(this.iridescenceThicknessMap=t[e.iridescenceThicknessMap]||null),e.transmissionMap!==void 0&&(this.transmissionMap=t[e.transmissionMap]||null),e.thicknessMap!==void 0&&(this.thicknessMap=t[e.thicknessMap]||null),e.anisotropyMap!==void 0&&(this.anisotropyMap=t[e.anisotropyMap]||null),e.sheenColorMap!==void 0&&(this.sheenColorMap=t[e.sheenColorMap]||null),e.sheenRoughnessMap!==void 0&&(this.sheenRoughnessMap=t[e.sheenRoughnessMap]||null),this}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;let t=e.clippingPlanes,n=null;if(t!==null){let e=t.length;n=Array(e);for(let r=0;r!==e;++r)n[r]=t[r].clone()}return this.clippingPlanes=n,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.allowOverride=e.allowOverride,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:`dispose`})}set needsUpdate(e){e===!0&&this.version++}},kc=new z,Ac=new z,jc=new z,Mc=new z,Nc=class{constructor(e=new z,t=new z(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,kc)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);let n=t.dot(this.direction);return n<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,n)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){let t=kc.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(kc.copy(this.origin).addScaledVector(this.direction,t),kc.distanceToSquared(e))}distanceSqToSegment(e,t,n,r){Ac.copy(e).add(t).multiplyScalar(.5),jc.copy(t).sub(e).normalize(),Mc.copy(this.origin).sub(Ac);let i=e.distanceTo(t)*.5,a=-this.direction.dot(jc),o=Mc.dot(this.direction),s=-Mc.dot(jc),c=Mc.lengthSq(),l=Math.abs(1-a*a),u,d,f,p;if(l>0){if(u=a*s-o,d=a*o-s,p=i*l,u>=0){if(d>=-p){if(d<=p){let e=1/l;u*=e,d*=e,f=u*(u+a*d+2*o)+d*(a*u+d+2*s)+c}else d=i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c}else d=-i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c}else d<=-p?(u=Math.max(0,-(-a*i+o)),d=u>0?-i:Math.min(Math.max(-i,-s),i),f=-u*u+d*(d+2*s)+c):d<=p?(u=0,d=Math.min(Math.max(-i,-s),i),f=d*(d+2*s)+c):(u=Math.max(0,-(a*i+o)),d=u>0?i:Math.min(Math.max(-i,-s),i),f=-u*u+d*(d+2*s)+c)}else d=a>0?-i:i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c;return n&&n.copy(this.origin).addScaledVector(this.direction,u),r&&r.copy(Ac).addScaledVector(jc,d),f}intersectSphere(e,t){if(e.radius<0)return null;kc.subVectors(e.center,this.origin);let n=kc.dot(this.direction),r=kc.dot(kc)-n*n,i=e.radius*e.radius;if(r>i)return null;let a=Math.sqrt(i-r),o=n-a,s=n+a;return s<0?null:o<0?this.at(s,t):this.at(o,t)}intersectsSphere(e){return e.radius<0?!1:this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){let t=e.normal.dot(this.direction);if(t===0)return e.distanceToPoint(this.origin)===0?0:null;let n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null}intersectPlane(e,t){let n=this.distanceToPlane(e);return n===null?null:this.at(n,t)}intersectsPlane(e){let t=e.distanceToPoint(this.origin);return t===0||e.normal.dot(this.direction)*t<0}intersectBox(e,t){let n,r,i,a,o,s,c=1/this.direction.x,l=1/this.direction.y,u=1/this.direction.z,d=this.origin;return c>=0?(n=(e.min.x-d.x)*c,r=(e.max.x-d.x)*c):(n=(e.max.x-d.x)*c,r=(e.min.x-d.x)*c),l>=0?(i=(e.min.y-d.y)*l,a=(e.max.y-d.y)*l):(i=(e.max.y-d.y)*l,a=(e.min.y-d.y)*l),n>a||i>r||((i>n||isNaN(n))&&(n=i),(a=0?(o=(e.min.z-d.z)*u,s=(e.max.z-d.z)*u):(o=(e.max.z-d.z)*u,s=(e.min.z-d.z)*u),n>s||o>r)||((o>n||n!==n)&&(n=o),(s=0?n:r,t)}intersectsBox(e){return this.intersectBox(e,kc)!==null}intersectTriangle(e,t,n,r,i){let a=this.origin,o=this.direction,s=o.x,c=o.y,l=o.z,u=e.x-a.x,d=e.y-a.y,f=e.z-a.z,p=t.x-a.x,m=t.y-a.y,h=t.z-a.z,g=n.x-a.x,_=n.y-a.y,v=n.z-a.z,y=Math.abs(s),b=Math.abs(c),x=Math.abs(l),S,C,w,T,E,D,O,k,A,j,ee,M;if(y>=b&&y>=x?(w=s,D=u,A=p,M=g,s>=0?(S=c,C=l,T=d,E=f,O=m,k=h,j=_,ee=v):(S=l,C=c,T=f,E=d,O=h,k=m,j=v,ee=_)):b>=x?(w=c,D=d,A=m,M=_,c>=0?(S=l,C=s,T=f,E=u,O=h,k=p,j=v,ee=g):(S=s,C=l,T=u,E=f,O=p,k=h,j=g,ee=v)):(w=l,D=f,A=h,M=v,l>=0?(S=s,C=c,T=u,E=d,O=p,k=m,j=g,ee=_):(S=c,C=s,T=d,E=u,O=m,k=p,j=_,ee=g)),w===0)return null;let te=S/w,ne=C/w,re=1/w,ie=T-te*D,ae=E-ne*D,oe=O-te*A,se=k-ne*A,ce=j-te*M,le=ee-ne*M,ue=ce*se-le*oe,de=ie*le-ae*ce,fe=oe*ae-se*ie;if(r){if(ue<0||de<0||fe<0)return null}else if((ue<0||de<0||fe<0)&&(ue>0||de>0||fe>0))return null;let pe=ue+de+fe;if(pe===0)return null;let me=re*(ue*D+de*A+fe*M);return(pe>0?me<0:me>0)?null:this.at(me/pe,i)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}},Pc=class extends Oc{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type=`MeshBasicMaterial`,this.color=new B(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new Qo,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap=`round`,this.wireframeLinejoin=`round`,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}},Fc=new Ho,Ic=new Nc,Lc=new dc,Rc=new z,zc=new z,Bc=new z,Vc=new z,Hc=new z,Uc=new z,Wc=new z,Gc=new z,V=class extends hs{constructor(e=new yc,t=new Pc){super(),this.isMesh=!0,this.type=`Mesh`,this.geometry=e,this.material=t,this.morphTargetDictionary=void 0,this.morphTargetInfluences=void 0,this.count=1,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),e.morphTargetInfluences!==void 0&&(this.morphTargetInfluences=e.morphTargetInfluences.slice()),e.morphTargetDictionary!==void 0&&(this.morphTargetDictionary=Object.assign({},e.morphTargetDictionary)),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}updateMorphTargets(){let e=this.geometry.morphAttributes,t=Object.keys(e);if(t.length>0){let n=e[t[0]];if(n!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;e(e.far-e.near)**2)||(Fc.copy(i).invert(),Ic.copy(e.ray).applyMatrix4(Fc),(n.boundingBox===null||Ic.intersectsBox(n.boundingBox)!==!1)&&this._computeIntersections(e,t,Ic)))}_computeIntersections(e,t,n){let r,i=this.geometry,a=this.material,o=i.index,s=i.attributes.position,c=i.attributes.uv,l=i.attributes.uv1,u=i.attributes.normal,d=i.groups,f=i.drawRange;if(o!==null){if(Array.isArray(a))for(let i=0,s=d.length;in.far?null:{distance:l,point:Gc.clone(),object:e}}function qc(e,t,n,r,i,a,o,s,c,l){e.getVertexPosition(s,zc),e.getVertexPosition(c,Bc),e.getVertexPosition(l,Vc);let u=Kc(e,t,n,r,zc,Bc,Vc,Wc);if(u){let e=new z;zs.getBarycoord(Wc,zc,Bc,Vc,e),i&&(u.uv=zs.getInterpolatedAttribute(i,s,c,l,e,new R)),a&&(u.uv1=zs.getInterpolatedAttribute(a,s,c,l,e,new R)),o&&(u.normal=zs.getInterpolatedAttribute(o,s,c,l,e,new z),u.normal.dot(r.direction)>0&&u.normal.multiplyScalar(-1));let t={a:s,b:c,c:l,normal:new z,materialIndex:0};zs.getNormal(zc,Bc,Vc,t.normal),u.face=t,u.barycoord=e}return u}var Jc=new Lo,Yc=new Lo,Xc=new Lo,Zc=new Lo,Qc=new Ho,$c=new z,el=new dc,tl=new Ho,nl=new Nc,rl=class extends V{constructor(e,t){super(e,t),this.isSkinnedMesh=!0,this.type=`SkinnedMesh`,this.bindMode=ei,this.bindMatrix=new Ho,this.bindMatrixInverse=new Ho,this.boundingBox=null,this.boundingSphere=null}computeBoundingBox(){let e=this.geometry;this.boundingBox===null&&(this.boundingBox=new Bs),this.boundingBox.makeEmpty();let t=e.getAttribute(`position`);for(let e=0;e0?e.max.x:e.min.x,bl.y=r.normal.y>0?e.max.y:e.min.y,bl.z=r.normal.z>0?e.max.z:e.min.z,r.distanceToPoint(bl)<0)return!1}return!0}containsPoint(e){let t=this.planes;for(let n=0;n<6;n++)if(t[n].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}},Sl=class extends Oc{constructor(e){super(),this.isLineBasicMaterial=!0,this.type=`LineBasicMaterial`,this.color=new B(16777215),this.map=null,this.linewidth=1,this.linecap=`round`,this.linejoin=`round`,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.linewidth=e.linewidth,this.linecap=e.linecap,this.linejoin=e.linejoin,this.fog=e.fog,this}},Cl=new z,wl=new z,Tl=new Ho,El=new Nc,Dl=new dc,Ol=new z,kl=new z,Al=class extends hs{constructor(e=new yc,t=new Sl){super(),this.isLine=!0,this.type=`Line`,this.geometry=e,this.material=t,this.morphTargetDictionary=void 0,this.morphTargetInfluences=void 0,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}computeLineDistances(){let e=this.geometry;if(e.index===null){let t=e.attributes.position,n=[0];for(let e=1,r=t.count;e0){let n=e[t[0]];if(n!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;er)return;Ol.applyMatrix4(e.matrixWorld);let c=t.ray.origin.distanceTo(Ol);if(!(ct.far))return{distance:c,point:kl.clone().applyMatrix4(e.matrixWorld),index:o,face:null,faceIndex:null,barycoord:null,object:e}}var Ml=new z,Nl=new z,Pl=class extends Al{constructor(e,t){super(e,t),this.isLineSegments=!0,this.type=`LineSegments`}computeLineDistances(){let e=this.geometry;if(e.index===null){let t=e.attributes.position,n=[];for(let e=0,r=t.count;e0){let n=e[t[0]];if(n!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;ei.far)return;a.push({distance:c,distanceToRay:Math.sqrt(s),point:n,index:t,face:null,faceIndex:null,barycoord:null,object:o})}}var Ul=class extends Io{constructor(e=[],t=301,n,r,i,a,o,s,c,l){super(e,t,n,r,i,a,o,s,c,l),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}},Wl=class extends Io{constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r,i,a,o,s,c),this.isCanvasTexture=!0,this.needsUpdate=!0}},Gl=class extends Io{constructor(e,t,n=hi,r,i,a,o=ii,s=ii,c,l=Ei,u=1){if(l!==1026&&l!==1027)throw Error(`THREE.DepthTexture: format must be either THREE.DepthFormat or THREE.DepthStencilFormat`);super({width:e,height:t,depth:u},r,i,a,o,s,l,n,c),this.isDepthTexture=!0,this.flipY=!1,this.generateMipmaps=!1,this.compareFunction=null}copy(e){return super.copy(e),this.source=new Mo(Object.assign({},e.image)),this.compareFunction=e.compareFunction,this}toJSON(e){let t=super.toJSON(e);return t.compareFunction=this.compareFunction,t}},Kl=class extends Gl{constructor(e,t=hi,n=301,r,i,a=ii,o=ii,s,c=Ei){let l={width:e,height:e,depth:1},u=[l,l,l,l,l,l];super(e,e,t,n,r,i,a,o,s,c),this.image=u,this.isCubeDepthTexture=!0,this.isCubeTexture=!0}get images(){return this.image}set images(e){this.image=e}},ql=class extends Io{constructor(e=null){super(),this.sourceTexture=e,this.isExternalTexture=!0}copy(e){return super.copy(e),this.sourceTexture=e.sourceTexture,this}},Jl=class e extends yc{constructor(e=1,t=1,n=1,r=1,i=1,a=1){super(),this.type=`BoxGeometry`,this.parameters={width:e,height:t,depth:n,widthSegments:r,heightSegments:i,depthSegments:a};let o=this;r=Math.floor(r),i=Math.floor(i),a=Math.floor(a);let s=[],c=[],l=[],u=[],d=0,f=0;p(`z`,`y`,`x`,-1,-1,n,t,e,a,i,0),p(`z`,`y`,`x`,1,-1,n,t,-e,a,i,1),p(`x`,`z`,`y`,1,1,e,n,t,r,a,2),p(`x`,`z`,`y`,1,-1,e,n,-t,r,a,3),p(`x`,`y`,`z`,1,-1,e,t,n,r,i,4),p(`x`,`y`,`z`,-1,-1,e,t,-n,r,i,5),this.setIndex(s),this.setAttribute(`position`,new sc(c,3)),this.setAttribute(`normal`,new sc(l,3)),this.setAttribute(`uv`,new sc(u,2));function p(e,t,n,r,i,a,p,m,h,g,_){let v=a/h,y=p/g,b=a/2,x=p/2,S=m/2,C=h+1,w=g+1,T=0,E=0,D=new z;for(let a=0;a0?1:-1,l.push(D.x,D.y,D.z),u.push(s/h),u.push(1-a/g),T+=1}for(let e=0;e0){let e=(_-1)*m;for(let t=0;t0&&v(!0),t>0&&v(!1)),this.setIndex(l),this.setAttribute(`position`,new sc(u,3)),this.setAttribute(`normal`,new sc(d,3)),this.setAttribute(`uv`,new sc(f,2));function _(){let a=new z,_=new z,v=0,y=(t-e)/n;for(let c=0;c<=i;c++){let l=[],g=c/i,v=g*(t-e)+e;for(let e=0;e<=r;e++){let t=e/r,i=t*s+o,c=Math.sin(i),m=Math.cos(i);_.x=v*c,_.y=-g*n+h,_.z=v*m,u.push(_.x,_.y,_.z),a.set(c,y,m).normalize(),d.push(a.x,a.y,a.z),f.push(t,1-g),l.push(p++)}m.push(l)}for(let n=0;n0||r!==0)&&(l.push(a,o,c),v+=3),(t>0||r!==i-1)&&(l.push(o,s,c),v+=3)}c.addGroup(g,v,0),g+=v}function v(n){let i=p,a=new R,m=new z,_=0,v=n===!0?e:t,y=n===!0?1:-1;for(let e=1;e<=r;e++)u.push(0,h*y,0),d.push(0,y,0),f.push(.5,.5),p++;let b=p;for(let e=0;e<=r;e++){let t=e/r*s+o,n=Math.cos(t),i=Math.sin(t);m.x=v*i,m.y=h*y,m.z=v*n,u.push(m.x,m.y,m.z),d.push(0,y,0),a.x=n*.5+.5,a.y=i*.5*y+.5,f.push(a.x,a.y),p++}for(let e=0;e.9&&Math.min(t,n,r)<.1&&(t<.2&&(a[e+0]+=1),n<.2&&(a[e+2]+=1),r<.2&&(a[e+4]+=1))}}function d(e){i.push(e.x,e.y,e.z)}function f(t,n){let r=t*3;n.x=e[r+0],n.y=e[r+1],n.z=e[r+2]}function p(){let e=new z,t=new z,n=new z,r=new z,o=new R,s=new R,c=new R;for(let l=0,u=0;l0)s=r-1;else{s=r;break}if(r=s,n[r]===a)return r/(i-1);let l=n[r],u=n[r+1]-l,d=(a-l)/u;return(r+d)/(i-1)}getTangent(e,t){let n=1e-4,r=e-n,i=e+n;r<0&&(r=0),i>1&&(i=1);let a=this.getPoint(r),o=this.getPoint(i),s=t||(a.isVector2?new R:new z);return s.copy(o).sub(a).normalize(),s}getTangentAt(e,t){let n=this.getUtoTmapping(e);return this.getTangent(n,t)}computeFrenetFrames(e,t=!1){let n=new z,r=[],i=[],a=[],o=new z,s=new Ho;for(let t=0;t<=e;t++){let n=t/e;r[t]=this.getTangentAt(n,new z)}i[0]=new z,a[0]=new z;let c=Number.MAX_VALUE,l=Math.abs(r[0].x),u=Math.abs(r[0].y),d=Math.abs(r[0].z);l<=c&&(c=l,n.set(1,0,0)),u<=c&&(c=u,n.set(0,1,0)),d<=c&&n.set(0,0,1),o.crossVectors(r[0],n).normalize(),i[0].crossVectors(r[0],o),a[0].crossVectors(r[0],i[0]);for(let t=1;t<=e;t++){if(i[t]=i[t-1].clone(),a[t]=a[t-1].clone(),o.crossVectors(r[t-1],r[t]),o.length()>2**-52){o.normalize();let e=Math.acos(Xa(r[t-1].dot(r[t]),-1,1));i[t].applyMatrix4(s.makeRotationAxis(o,e))}a[t].crossVectors(r[t],i[t])}if(t===!0){let t=Math.acos(Xa(i[0].dot(i[e]),-1,1));t/=e,r[0].dot(o.crossVectors(i[0],i[e]))>0&&(t=-t);for(let n=1;n<=e;n++)i[n].applyMatrix4(s.makeRotationAxis(r[n],t*n)),a[n].crossVectors(r[n],i[n])}return{tangents:r,normals:i,binormals:a}}clone(){return new this.constructor().copy(this)}copy(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}toJSON(){let e={metadata:{version:4.7,type:`Curve`,generator:`Curve.toJSON`}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.type,e}fromJSON(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}},tu=class extends eu{constructor(e=0,t=0,n=1,r=1,i=0,a=Math.PI*2,o=!1,s=0){super(),this.isEllipseCurve=!0,this.type=`EllipseCurve`,this.aX=e,this.aY=t,this.xRadius=n,this.yRadius=r,this.aStartAngle=i,this.aEndAngle=a,this.aClockwise=o,this.aRotation=s}getPoint(e,t=new R){let n=t,r=Math.PI*2,i=this.aEndAngle-this.aStartAngle,a=Math.abs(i)<2**-52;for(;i<0;)i+=r;for(;i>r;)i-=r;i<2**-52&&(i=a?0:r),this.aClockwise===!0&&!a&&(i===r?i=-r:i-=r);let o=this.aStartAngle+e*i,s=this.aX+this.xRadius*Math.cos(o),c=this.aY+this.yRadius*Math.sin(o);if(this.aRotation!==0){let e=Math.cos(this.aRotation),t=Math.sin(this.aRotation),n=s-this.aX,r=c-this.aY;s=n*e-r*t+this.aX,c=n*t+r*e+this.aY}return n.set(s,c)}copy(e){return super.copy(e),this.aX=e.aX,this.aY=e.aY,this.xRadius=e.xRadius,this.yRadius=e.yRadius,this.aStartAngle=e.aStartAngle,this.aEndAngle=e.aEndAngle,this.aClockwise=e.aClockwise,this.aRotation=e.aRotation,this}toJSON(){let e=super.toJSON();return e.aX=this.aX,e.aY=this.aY,e.xRadius=this.xRadius,e.yRadius=this.yRadius,e.aStartAngle=this.aStartAngle,e.aEndAngle=this.aEndAngle,e.aClockwise=this.aClockwise,e.aRotation=this.aRotation,e}fromJSON(e){return super.fromJSON(e),this.aX=e.aX,this.aY=e.aY,this.xRadius=e.xRadius,this.yRadius=e.yRadius,this.aStartAngle=e.aStartAngle,this.aEndAngle=e.aEndAngle,this.aClockwise=e.aClockwise,this.aRotation=e.aRotation,this}},nu=class extends tu{constructor(e,t,n,r,i,a){super(e,t,n,n,r,i,a),this.isArcCurve=!0,this.type=`ArcCurve`}};function ru(){let e=0,t=0,n=0,r=0;function i(i,a,o,s){e=i,t=o,n=-3*i+3*a-2*o-s,r=2*i-2*a+o+s}return{initCatmullRom:function(e,t,n,r,a){i(t,n,a*(n-e),a*(r-t))},initNonuniformCatmullRom:function(e,t,n,r,a,o,s){let c=(t-e)/a-(n-e)/(a+o)+(n-t)/o,l=(n-t)/o-(r-t)/(o+s)+(r-n)/s;c*=o,l*=o,i(t,n,c,l)},calc:function(i){let a=i*i,o=a*i;return e+t*i+n*a+r*o}}}var iu=new z,au=new z,ou=new ru,su=new ru,cu=new ru,lu=class extends eu{constructor(e=[],t=!1,n=`centripetal`,r=.5){super(),this.isCatmullRomCurve3=!0,this.type=`CatmullRomCurve3`,this.points=e,this.closed=t,this.curveType=n,this.tension=r}getPoint(e,t=new z){let n=t,r=this.points,i=r.length,a=(i-+!this.closed)*e,o=Math.floor(a),s=a-o;this.closed?o+=o>0?0:(Math.floor(Math.abs(o)/i)+1)*i:s===0&&o===i-1&&(o=i-2,s=1);let c,l;this.closed||o>0?c=r[(o-1)%i]:(au.subVectors(r[0],r[1]).add(r[0]),c=au);let u=r[o%i],d=r[(o+1)%i];if(this.closed||o+2r.length-2?r.length-1:a+1],u=r[a>r.length-3?r.length-1:a+2];return n.set(uu(o,s.x,c.x,l.x,u.x),uu(o,s.y,c.y,l.y,u.y)),n}copy(e){super.copy(e),this.points=[];for(let t=0,n=e.points.length;t0)&&f.push(t,i,c),(e!==n-1||s{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var n={format:2,tick_rate:30,ring:{half_width:500,half_height:500,fighter_radius:38},limits:{max_stamina:1e3,max_conditioning:1e3,max_guard:700,max_poise:600},action_buffer_ticks:8,facing:{scale:1e3,turn_degrees_per_second:110},movement:{max_speed:10,blend_percent:75,recovery_speed_percent:60},evasion:{ticks:7,stamina:15},combos:{recovery_cancel_percent:50,chains:[[`jab`,`straight`],[`jab`,`hook`],[`straight`,`hook`],[`hook`,`uppercut`],[`uppercut`,`hook`]]},knockdown:{referee_walk_speed:9,count_ticks:20,mandatory_count:5,box_pause_ticks:20,get_up_stun_ticks:12,get_up_stamina:600,get_up_base:0,get_up_per_knockdown:4,get_up_trauma_divisor:300,get_up_first_count:2,get_up_zone_ticks:3,get_up_perfect_ticks:1,get_up_late_ticks:3,get_up_good:1,get_up_perfect:2,get_up_wrong:1},countdown:{opening_ticks:90},tired:{startup_ticks:1,recovery_ticks:2,impact_percent:70},foul:{separation:45},hitstop_ms:{hit:78,block:45,power:140},fatigue_scaling:{startup_formula:`max(2, startup * 100 // fatigue - lead_jab_bonus)`,recovery_formula:`max(3, recovery * 100 // fatigue)`,lead_jab_bonus:1,rear_straight_impact_bonus:8},punches:{jab:{startup:3,active:2,recovery:4,reach:150,lateral_arc:42,impact:34,stamina_cost:25,whiff_cost:9,guard_damage:44,poise_damage:35,combo_window:7,startup_vulnerability:1,recovery_vulnerability:2},straight:{startup:4,active:2,recovery:6,reach:168,lateral_arc:38,impact:52,stamina_cost:39,whiff_cost:14,guard_damage:66,poise_damage:58,combo_window:8,startup_vulnerability:2,recovery_vulnerability:3},hook:{startup:5,active:2,recovery:7,reach:126,lateral_arc:92,impact:64,stamina_cost:47,whiff_cost:18,guard_damage:82,poise_damage:72,combo_window:9,startup_vulnerability:3,recovery_vulnerability:4},uppercut:{startup:5,active:2,recovery:8,reach:108,lateral_arc:54,impact:72,stamina_cost:53,whiff_cost:22,guard_damage:88,poise_damage:84,combo_window:10,startup_vulnerability:3,recovery_vulnerability:5}},variants:{body:{startup_add:1,reach_min:80,reach_sub:14,lateral_arc_add:8,impact_mul_num:92,impact_mul_den:100,stamina_cost_add:2,whiff_cost_add:2,poise_damage_mul_num:72,poise_damage_mul_den:100},power:{startup_add:3,active_add:1,recovery_add:3,reach_add:5,impact_mul_num:185,impact_mul_den:100,stamina_cost_mul_num:140,stamina_cost_mul_den:100,whiff_cost_mul_num:150,whiff_cost_mul_den:100,guard_damage_mul_num:220,guard_damage_mul_den:100,poise_damage_mul_num:175,poise_damage_mul_den:100,startup_vulnerability_add:1,recovery_vulnerability_add:1}},hurtboxes:{head:{radius:.13,length:.16,joint:`head`,offset_y:.12},torso:{radius:.21,length:.34,joint:`chest`,offset_y:.16}},corners:{reach:733},rest:{corner_offset:365,walk_speed:10},clinch:{hold_distance:60,draw_speed:6},referee:{radius:34,health:450,walk_speed:6,standoff:62,count_standoff:90,stagger_base_ticks:6,stagger_damage_divisor:8,stagger_max_ticks:30,down_ticks:150,bleed_health_divisor:60},corner:{cut:{worse_cut:250,other_cut:100,bleeding_kept_percent:30},swelling:{swelling:250,eyes:200},breath:{conditioning:180,body:150},balanced:{worse_cut:80,bleeding_kept_percent:75,swelling:80,eyes:60}},blind_side:{eye_threshold:700,impact_percent:120},parry:{stagger_ticks:16},body:{wind_percent:90,collapse_body_trauma:650,collapse_stamina:350,collapse_minimum_damage:40,collapse_delay_ticks:10,collapse_cooldown_ticks:300},styles:{balanced:{},boxer:{recovery_ticks:{jab:-1},reach_percent:102,impact_percent:98,poise_damage_percent:98},slugger:{impact_percent:108,poise_damage_percent:108,poise_taken_percent:95,stamina_cost_percent:115,recovery_ticks:{hook:1,uppercut:1},move_speed_percent:96},swarmer:{move_speed_percent:103,startup_ticks:{hook:-1,uppercut:-1},body_damage_percent:110,conditioning_loss_percent:85,impact_percent:96,poise_damage_percent:96,evasion_ticks:1},counter_puncher:{counter_bonus_percent:38,counter_window_ticks:3,evasion_ticks:1,perfect_block_ticks:1,impact_percent:96,poise_damage_percent:96}},stun:{flinch_minimum_damage:36,flinch_base_ticks:4,flinch_damage_divisor:16,rocked_counter_damage:50,rocked_power_damage:70,rocked_hurt_poise:180,rocked_base_ticks:12,rocked_damage_divisor:6,rocked_max_ticks:28,chain_max_ticks:36,immunity_ticks:18,rocked_immunity_ticks:8,moving_speed_percent:75},guard:{block_poise_percent:35,perfect_block_poise_percent:0,leak_base_percent:80,leak_minimum_percent:25,block_minimum:60,perfect_rearm_ticks:6,damage_percent:100,stamina_regen_percent:50,held_drain:3,break_stun_ticks:24,rearm:250},trauma:{head_per_damage_percent:60,eye_per_damage_percent:70,cut_per_damage_percent:80,jab_cut_percent:40,jab_swelling_percent:50,swelling_per_damage_percent:33,poise_ceiling_per_head_percent:30,poise_ceiling_floor:220,body_per_damage_percent:100,poise_regen_every_ticks:2,poise_damage_percent:85,cut_opens_eye:120,bleeding_cut_divisor:30},hitbox:{glove_radius:.11},injuries:{blood:{volume:1e3,bleeding_divisor:160,rest_percent:50,stages:[{below:600,stamina_regen_percent:75},{below:350,stamina_regen_percent:50},{below:150,stamina_regen_percent:25}]},kinds:{broken_nose:{drain:1,stamina_regen_percent:75,bleeding_floor:150},broken_jaw:{drain:1,poise_taken_percent:125},jaw_torn:{drain:5,poise_taken_percent:150,bleeding_floor:300},eye_out:{drain:2},ear_torn:{drain:1,poise_regen_ticks_add:1},face_flayed:{drain:4,vision_penalty:8},skull_fractured:{drain:4,poise_ceiling_percent:60},shoulder_dislocated:{drain:0,startup_add:2,impact_percent:50,guard_leak_add:20},arm_broken:{drain:3,startup_add:2,impact_percent:30,guard_leak_add:25},forearm_severed:{drain:12,impact_percent:20,reach_sub:45,guard_leak_add:35},arm_torn:{drain:20,guard_leak_add:50},ribs_broken:{drain:0,body_taken_percent:135,max_stamina_sub:60},liver_ruptured:{drain:6,stamina_regen_percent:60},disemboweled:{drain:12,move_speed_percent:75,max_stamina_sub:150,body_taken_percent:150},knee_blown:{drain:0,move_speed_percent:80}},triggers:{nose_wear:800,jaw_break_wear:320,jaw_tear_wear:640,ear_wear:280,eye_out_trauma:850,eye_out_damage:55,flay_cut:550,flay_damage:60,skull_head_trauma:1050,skull_damage:90,brain_death_wear:220,shoulder_wear:280,shoulder_whiff_wear:40,shoulder_parried_wear:90,arm_break_wear:1100,arm_guard_break_wear:300,arm_tear_damage:80,ribs_wear:260,liver_wear:260,gut_body_trauma:800,gut_damage:90,gutted_damage:90,knee_knockdowns:2},vomit:{every_ticks:240,stun_ticks:10},finish:{ticks:105},fatalities:{head:{jab:`eyes_out`,straight:`head_burst`,hook:`decapitation`,uppercut:`spine_rip`},body:{jab:`heart_punch`,straight:`gutting`,hook:`bisection`,uppercut:`total_gib`}}}},r=n.punches,i=n.variants,a=n.tick_rate;n.action_buffer_ticks;var o=n.hitstop_ms,s=n.hurtboxes,c=n.hitbox.glove_radius;n.fatigue_scaling;var l=n.rest.corner_offset,u=n.ring.half_width,d=n.ring.half_height,f=n.ring.fighter_radius,p=n.blind_side.eye_threshold,m=n.guard.block_minimum,h=n.guard.rearm,g=n.movement.max_speed,_=n.movement.blend_percent,v=n.movement.recovery_speed_percent,y=n.evasion.ticks,b=n.evasion.stamina,x=n.corner,S=n.corners.reach,C=n.combos.recovery_cancel_percent,w=new Set(n.combos.chains.map(([e,t])=>`${e}:${t}`));function T(e,t){return w.has(`${e}:${t}`)}function E(e){return e.startup+e.active+Math.floor(e.recovery*C/100)}function D(e,t,n,r,i,a=`balanced`){return t&&!i&&T(e,n.class)&&r>=fe(a,n.class,n.target,n.power)}function O(e){return r[e].combo_window}var k=n.stun.rocked_base_ticks,ee=n.stun.rocked_max_ticks,A=n.knockdown,te=A.count_ticks,j=1400,ne=3,re=A.get_up_base,ie=A.get_up_base+ne*A.get_up_per_knockdown+Math.floor(j/A.get_up_trauma_divisor),M={firstCount:A.get_up_first_count,zoneTicks:A.get_up_zone_ticks,perfectTicks:A.get_up_perfect_ticks,lateTicks:A.get_up_late_ticks,good:A.get_up_good,perfect:A.get_up_perfect,wrong:A.get_up_wrong,base:A.get_up_base,perKnockdown:A.get_up_per_knockdown,traumaDivisor:A.get_up_trauma_divisor},N=n.stun.moving_speed_percent,ae=n.tired.startup_ticks,oe=n.tired.recovery_ticks;function se(e,t,n){let a=r[e],o=a.startup,s=a.active,c=a.recovery,l=a.reach,u=a.lateral_arc;if(t===`body`){let e=i.body;o+=e.startup_add??0,c+=e.recovery_add??0,l=Math.max(e.reach_min??0,l-(e.reach_sub??0)),u+=e.lateral_arc_add??0}if(n===`power`){let e=i.power;o+=e.startup_add??0,s+=e.active_add??0,c+=e.recovery_add??0,l+=e.reach_add??0}return{startup:o,active:s,recovery:c,reach:l,lateralArc:u}}function ce(e,t,n){let a=r[e].stamina_cost;return t===`body`&&(a+=i.body.stamina_cost_add??0),n===`power`&&(a=Math.floor(a*(i.power.stamina_cost_mul_num??1)/(i.power.stamina_cost_mul_den??1))),a}var le=n.styles,ue=new Map;function de(e){let t=ue.get(e);if(t!==void 0)return t;let n=le[e]??{},r={startupTicks:n.startup_ticks??{},recoveryTicks:n.recovery_ticks??{},staminaCostPercent:n.stamina_cost_percent??100,conditioningLossPercent:n.conditioning_loss_percent??100,moveSpeedPercent:n.move_speed_percent??100,evasionTicks:n.evasion_ticks??0};return ue.set(e,r),r}function fe(e,t,n,r){return Math.floor(ce(t,n,r)*de(e).staminaCostPercent/100)}function pe(e){return e.startup+e.active+e.recovery}var me=[`perfect`,`good`,`early`,`late`,`wrong`],he=e=>me.includes(e),ge=1500;function _e(e){return e-te+M.zoneTicks+M.lateTicks+1}function ve(e){return e+M.zoneTicks+M.lateTicks}function ye(e,t,n,r,i){return e<_e(r)?null:t===n?er+M.zoneTicks?{detail:`late`,amount:0}:Math.abs(e-r)<=M.perfectTicks?{detail:`perfect`,amount:M.perfect}:{detail:`good`,amount:M.good}:{detail:`wrong`,amount:Math.max(0,i-M.wrong)-i}}function be(e,t){let n=M.base+M.perKnockdown*e,r=Math.floor(t/M.traumaDivisor);return{knockdowns:n,head:r,total:n+r}}var xe=class{attemptedBeat=-1/0;pending=null;shown=null;counts={perfect:0,good:0,early:0,late:0,wrong:0};reset(){this.attemptedBeat=-1/0,this.pending=null,this.shown=null}get verdict(){return this.shown}prompt(e,t){if(e.get_up_prompt===null)return null;let n=e.get_up_window_start_tick+M.zoneTicks;return n>this.attemptedBeat&&Math.round(t)<=ve(n)?{side:e.get_up_prompt,beat:n,next:e.get_up_next_prompt}:e.get_up_next_prompt===null?null:{side:e.get_up_next_prompt,beat:n+te,next:null}}press(e,t,n,r){let i=this.prompt(t,n);if(i===null)return null;let a=ye(Math.round(n),e,i.side,i.beat,this.meter(t,r));return a===null?null:(this.attemptedBeat=i.beat,this.pending=this.shown={...a,atMs:r,confirmed:!1},a)}confirm(e,t){if(!he(e.detail))return;let n=this.pending?.atMs??t;this.pending=null,this.shown={detail:e.detail,amount:e.amount,atMs:n,confirmed:!0},this.counts[e.detail]+=1}meter(e,t){return this.pending!==null&&t-this.pending.atMs>ge&&(this.pending=null),Math.max(0,e.get_up_meter+(this.pending?.amount??0))}};function Se(e,t,n,r,i,a,o){let s=i===null?e.get_up_count:Math.max(0,Math.min(10,Math.floor((t-i)/te))),c=e.get_up_required>0?e.get_up_required:be(e.knockdowns,e.trauma.head).total;return{pressTick:t,count:s,prompt:o?null:r?.prompt(e,t)??(e.get_up_prompt===null?null:{side:e.get_up_prompt,beat:e.get_up_window_start_tick+M.zoneTicks,next:e.get_up_next_prompt}),meter:o?c:r?.meter(e,n)??e.get_up_meter,required:c,knockdowns:e.knockdowns,head:e.trauma.head,verdict:r?.verdict??null,nowMs:n,touch:a,risen:o}}var Ce={get_up_left:`left`,get_up_right:`right`},P={perfect:`perfect`,good:`good`,early:`early, no score`,late:`late, no score`,wrong:`wrong side`};function we(e){if(e.risen)return`You beat the count at ${e.count}.`;let t=e.touch?`pad`:`arrow key`,n=e.prompt,r=n===null?`No more prompts this count.`:`Press the ${Ce[n.side]} ${t} on the beat of the count, as the ring closes${n.next===null?``:`; next, ${Ce[n.next]}`}. One press a count.`,i=e.verdict,a=i===null?``:` Last press: ${P[i.detail]}${i.amount===0?``:`, ${i.amount>0?`plus`:`minus`} ${Math.abs(i.amount)}`}.`;return`You are down. Count ${e.count}. ${r} ${Math.max(0,e.required-e.meter)} more to get up.${a}`}var Te={KeyF:[`left`,`jab`],KeyJ:[`right`,`jab`],KeyR:[`left`,`straight`],KeyU:[`right`,`straight`],KeyG:[`left`,`hook`],KeyH:[`right`,`hook`],KeyT:[`left`,`uppercut`],KeyY:[`right`,`uppercut`]},F={KeyZ:{kind:`slip_left`},KeyX:{kind:`slip_right`},KeyC:{kind:`weave`},KeyV:{kind:`pull`},KeyB:{kind:`clinch`},KeyN:{kind:`switch_stance`},KeyM:{kind:`taunt`},Digit1:{kind:`foul`,foul:`low_blow`},Digit2:{kind:`foul`,foul:`headbutt`},ArrowLeft:{kind:`get_up_left`},ArrowRight:{kind:`get_up_right`}},I={ArrowLeft:`←`,ArrowRight:`→`},Ee=e=>{let t=Object.keys(F).find(t=>F[t].kind===e);return I[t]??t.replace(/^Key|^Digit/,``)},De={get_up_left:Ee(`get_up_left`),get_up_right:Ee(`get_up_right`)},Oe=new Set([...Object.keys(Te),...Object.keys(F),`KeyW`,`KeyA`,`KeyS`,`KeyD`,`KeyQ`,`KeyE`,`ShiftLeft`,`ShiftRight`,`AltLeft`,`AltRight`]),ke=[`Move: W up · S down · A left · D right`,`High / low guard: Q / E`,`Left/right jab: F / J`,`Left/right straight: R / U`,`Left/right hook: G / H`,`Left/right uppercut: T / Y`,`Body: Shift · Power: hold Alt (Option ⌥ on a Mac) with the punch, slower to throw and far heavier`,`Slip: Z / X · Weave: C · Pull: V`,`Clinch: B · Stance: N · Taunt: M · Fouls (on purpose): Shift+1 low blow / Shift+2 headbutt`,`Get up when knocked down: press ${De.get_up_left} or ${De.get_up_right}, the side the big arrow shows, as the ring closes on each count; one press per count, the next side shows small beside it.`,`Camera: K cycles broadcast, close and over the shoulder (behind your fighter, W walks at the opponent and A / D circle him).`,`Style pick before the bout: arrow keys choose · Enter settles · 1–5 settle on that card at once.`,`Controller move: left stick. High / low guard: left / right shoulder (independent of punches).`,`Controller face classes: bottom jab · right straight · left hook · top uppercut.`,`Controller face hand: hold D-pad left for left hand or D-pad right for right hand, then press a face punch; otherwise punches use the right hand. A direction used for a punch is consumed and does not evade.`,`Controller modifiers: left trigger body · right trigger power.`,`Controller actions: left stick press clinch · right stick press switch stance · hold right trigger + right stick press to taunt · D-pad up weave · D-pad down pull · tap and release D-pad left/right to slip; while down, D-pad left/right presses that get-up side at once.`,`Controller fouls: View/Back low blow · Menu/Start headbutt.`,`Controller style pick: D-pad or left stick to choose · bottom face button settles.`,`Right-stick gesture: horizontal 0–22.5° hook · 22.5–45° jab · 45–70° straight · 70–90° uppercut; left/right direction selects hand.`,`Between rounds, tell your corner what to work on: 1 close the cut · 2 bring down the swelling · 3 catch your breath (controller: left, top or right face button; or tap).`,`Touch: drag the left side to move · tap a punch pad's left or right half for that hand · hold BODY, POWER, GUARD or LOW · tap ◀ SLIP, SLIP ▶, WEAVE, PULL or CLINCH.`],Ae=`Move WASD · Jab F/J · Straight R/U · Hook G/H · Uppercut T/Y · Guard Q/E · Body Shift · Power Alt/Option ⌥`,je=`Drag on the left to move · Tap the pads to punch, L or R hand · Hold BODY, POWER or GUARD · Tap SLIP, WEAVE, PULL or CLINCH`,Me=`Drag left to move · Tap pads to punch · Hold GUARD`,Ne=(e,t)=>e?t<480?Me:je:Ae,Pe=[{title:`Keyboard`,items:ke.filter(e=>!e.startsWith(`Controller`)&&!e.startsWith(`Right-stick`)&&!e.startsWith(`Between rounds`)&&!e.startsWith(`Touch`))},{title:`Between rounds`,items:ke.filter(e=>e.startsWith(`Between rounds`))},{title:`Controller`,items:ke.filter(e=>e.startsWith(`Controller`)||e.startsWith(`Right-stick`))},{title:`Touch`,items:ke.filter(e=>e.startsWith(`Touch`))}],Fe={get_up_left:`◀ LEFT`,get_up_right:`RIGHT ▶`},Ie=118;function Le(e,t){if(e<=t){let n=(e-36)/2,r=t-Ie-96;return{left:{x:12,y:r,width:n,height:96},right:{x:24+n,y:r,width:n,height:96}}}let n=Math.min(220,Math.round(e*.24)),r=Math.max(72,Math.min(110,t-Ie-120)),i=t-Ie-r;return{left:{x:12,y:i,width:n,height:r},right:{x:e-12-n,y:i,width:n,height:r}}}function Re(){try{if(window.matchMedia?.(`(pointer: coarse)`).matches)return!0}catch{}return(navigator.maxTouchPoints??0)>0&&new URLSearchParams(window.location.search).get(`platform`)===`mobile`}var ze=[{label:`JAB`,punchClass:`jab`},{label:`STRAIGHT`,punchClass:`straight`},{label:`HOOK`,punchClass:`hook`},{label:`UPPER`,punchClass:`uppercut`}],Be=[{label:`◀ SLIP`,name:`Slip left`,kind:`slip_left`},{label:`WEAVE`,name:`Weave`,kind:`weave`},{label:`SLIP ▶`,name:`Slip right`,kind:`slip_right`},{label:`PULL`,name:`Pull`,kind:`pull`},{label:`CLINCH`,name:`Clinch`,kind:`clinch`}],Ve=class{sharedActions;root;stickZone;stickBase;stickKnob;pads=[];moves=[];getUpPads=[];stickPointer=null;stickOrigin={x:0,y:0};moveX=0;moveY=0;body=!1;power=!1;guard=`none`;knockdown=!1;enabled=!0;heldPointers=new Map;heldListener=null;constructor(e,t){this.sharedActions=t,this.root=document.createElement(`div`),this.root.className=`touch-controls`,this.root.setAttribute(`aria-label`,`Touch controls`),this.root.innerHTML=`
+
+
${Be.map(e=>``).join(``)}
+
+ + + + +
+
${ze.map(e=>``).join(``)}
+
+
${[`get_up_left`,`get_up_right`].map(e=>``).join(``)}
`,e.append(this.root),this.stickZone=this.root.querySelector(`[data-stick]`),this.stickBase=this.root.querySelector(`[data-stick-base]`),this.stickKnob=this.root.querySelector(`[data-stick-knob]`),this.pads.push(...this.root.querySelectorAll(`[data-punch]`)),this.moves.push(...this.root.querySelectorAll(`[data-move]`)),this.getUpPads.push(...this.root.querySelectorAll(`[data-getup-side]`)),this.bind()}bind(){let e=this.stickZone;e.addEventListener(`pointerdown`,t=>{if(this.stickPointer!==null)return;t.preventDefault(),this.stickPointer=t.pointerId,this.stickOrigin={x:t.clientX,y:t.clientY},e.setPointerCapture(t.pointerId);let n=e.getBoundingClientRect();this.stickBase.style.left=`${t.clientX-n.left}px`,this.stickBase.style.top=`${t.clientY-n.top}px`,this.stickBase.classList.add(`active`),this.updateStick(t.clientX,t.clientY)}),e.addEventListener(`pointermove`,e=>{e.pointerId===this.stickPointer&&(e.preventDefault(),this.updateStick(e.clientX,e.clientY))});let t=e=>{e.pointerId===this.stickPointer&&(this.stickPointer=null,this.moveX=0,this.moveY=0,this.stickKnob.style.transform=`translate(-50%, -50%)`,this.stickBase.classList.remove(`active`),this.heldListener?.())};e.addEventListener(`pointerup`,t),e.addEventListener(`pointercancel`,t);for(let e of this.getUpPads)e.addEventListener(`pointerdown`,t=>{this.enabled&&this.knockdown&&(t.preventDefault(),this.sharedActions.push(`touch`,{kind:e.dataset.getupSide===`get_up_left`?`get_up_left`:`get_up_right`}))});for(let e of this.pads)e.addEventListener(`pointerdown`,t=>{if(!this.enabled)return;t.preventDefault();let n=e.getBoundingClientRect(),r=t.clientX-n.lefte.classList.remove(`pressed`),120)});for(let e of this.moves)e.addEventListener(`pointerdown`,t=>{this.enabled&&!this.knockdown&&(t.preventDefault(),this.sharedActions.push(`touch`,{kind:e.dataset.move}),e.classList.add(`pressed`),window.setTimeout(()=>e.classList.remove(`pressed`),120))});for(let e of this.root.querySelectorAll(`[data-mod], [data-guard]`)){let t=e.dataset.mod??e.dataset.guard??``,n=n=>{n.preventDefault(),e.setPointerCapture(n.pointerId),this.heldPointers.set(n.pointerId,t),this.syncHeld(),e.classList.add(`pressed`)},r=n=>{this.heldPointers.delete(n.pointerId)&&(this.syncHeld(),e.classList.toggle(`pressed`,[...this.heldPointers.values()].includes(t)))};e.addEventListener(`pointerdown`,n),e.addEventListener(`pointerup`,r),e.addEventListener(`pointercancel`,r)}}syncHeld(){let e=[...this.heldPointers.values()];this.body=e.includes(`body`),this.power=e.includes(`power`);let t=e.findLast(e=>e===`guard_high`||e===`guard_low`)??`none`,n=t!==this.guard;this.guard=t,n&&this.heldListener?.()}get powerHeld(){return this.enabled&&this.power}onHeldChange(e){this.heldListener=e}updateStick(e,t){let n=e-this.stickOrigin.x,r=t-this.stickOrigin.y,i=Math.hypot(n,r);i>56&&(n=n/i*56,r=r/i*56),this.stickKnob.style.transform=`translate(calc(-50% + ${n}px), calc(-50% + ${r}px))`;let a=Math.min(1,i/56),o=a<.15?0:(a-.15)/.85,s=i>0?n/Math.max(i,1e-6):0,c=i>0?r/Math.max(i,1e-6):0;this.moveX=Math.round(s*o*1e3)||0,this.moveY=Math.round(-c*o*1e3)||0,this.heldListener?.()}setKnockdown(e){this.knockdown!==e&&(this.knockdown=e,this.root.classList.toggle(`knockdown`,e),e?(this.placeGetUpPads(),window.addEventListener(`resize`,this.placeGetUpPads)):(window.removeEventListener(`resize`,this.placeGetUpPads),this.setGetUpPrompt(null)))}placeGetUpPads=()=>{let e=Le(this.root.clientWidth||window.innerWidth,this.root.clientHeight||window.innerHeight);for(let[t,n]of this.getUpPads.entries()){let r=t===0?e.left:e.right;Object.assign(n.style,{left:`${r.x}px`,top:`${r.y}px`,width:`${r.width}px`,height:`${r.height}px`})}};setGetUpPrompt(e){for(let t of this.getUpPads)t.classList.toggle(`wanted`,this.knockdown&&e===t.dataset.getupSide)}setEnabled(e,t=e){this.enabled=e,this.root.classList.toggle(`disabled`,!t),this.root.classList.toggle(`resting`,t&&!e),t?e||this.sharedActions.clearSource(`touch`):this.reset()}frame(){return this.enabled?{moveX:this.moveX,moveY:this.moveY,defense:this.guard,actions:[]}:{moveX:0,moveY:0,defense:`none`,actions:[]}}reset(){this.stickPointer=null,this.moveX=0,this.moveY=0,this.body=!1,this.power=!1,this.guard=`none`,this.heldPointers.clear(),this.stickBase.classList.remove(`active`);for(let e of this.root.querySelectorAll(`.pressed`))e.classList.remove(`pressed`);this.sharedActions.clearSource(`touch`)}destroy(){this.reset(),window.removeEventListener(`resize`,this.placeGetUpPads),this.root.remove()}},He=[`broken_nose`,`broken_jaw`,`jaw_torn`,`eye_left_out`,`eye_right_out`,`ear_left_torn`,`ear_right_torn`,`face_left_flayed`,`face_right_flayed`,`skull_fractured`,`shoulder_left_dislocated`,`shoulder_right_dislocated`,`arm_left_broken`,`arm_right_broken`,`forearm_left_severed`,`forearm_right_severed`,`arm_left_torn`,`arm_right_torn`,`ribs_left_broken`,`ribs_right_broken`,`liver_ruptured`,`disemboweled`,`knee_left_blown`,`knee_right_blown`];function Ue(e){return He.includes(e)}var We=[`eyes_out`,`head_burst`,`decapitation`,`spine_rip`,`heart_punch`,`gutting`,`bisection`,`total_gib`],Ge=[`nose`,`mouth`,`eye_left`,`eye_right`,`ear_left`,`ear_right`,`skull`,`neck`,`shoulder_left`,`shoulder_right`,`elbow_left`,`elbow_right`,`chest`,`ribs_left`,`ribs_right`,`liver`,`belly`,`waist`,`crotch`,`knee_left`,`knee_right`],Ke=n.injuries,qe=Ke.kinds,Je=Ke.blood.volume,Ye=Ke.blood.stages.map(e=>e.below),Xe=Ke.finish.ticks,Ze=(e,t)=>Array.isArray(e)?e.includes(t):e.has(t);function Qe(e){return e.includes(`_left_`)?`left`:e.includes(`_right_`)?`right`:null}function $e(e){return e.replace(`_left_`,`_`).replace(`_right_`,`_`)}var et={broken_nose:`BROKEN NOSE`,broken_jaw:`BROKEN JAW`,jaw_torn:`JAW TORN OFF`,eye_out:`EYE OUT`,ear_torn:`EAR TORN OFF`,face_flayed:`CHEEK FLAYED`,skull_fractured:`SKULL SPLIT OPEN`,shoulder_dislocated:`SHOULDER OUT`,arm_broken:`ARM SNAPPED`,forearm_severed:`FOREARM SEVERED`,arm_torn:`ARM TORN OFF`,ribs_broken:`RIBS CAVED IN`,liver_ruptured:`LIVER RUPTURED`,disemboweled:`DISEMBOWELED`,knee_blown:`KNEE BLOWN OUT`};function tt(e){let t=Qe(e),n=et[$e(e)];return t===null?n:`${t.toUpperCase()} ${n}`}var nt={eyes_out:`EYES PUNCHED OUT`,head_burst:`HEAD EXPLODED`,decapitation:`DECAPITATED`,spine_rip:`SPINE RIPPED OUT`,heart_punch:`HEART PUNCHED OUT`,gutting:`GUTTED`,bisection:`TORN IN HALF`,total_gib:`BLOWN TO PIECES`};function rt(e){return nt[e]}function it(e,t){return Ke.fatalities[e][t]}function at(e){if(e===`bled_out`||e===`brain`||e===`gutted`)return e;let t=e.startsWith(`fatality:`)?e.slice(9):null;return t!==null&&We.includes(t)?e:null}function ot(e){return e.startsWith(`fatality:`)?e.slice(9):null}function st(e){let t=ot(e);return t===null?e===`bled_out`?`BLED TO DEATH`:e===`brain`?`BRAIN DESTROYED`:`GUTTED`:rt(t)}function ct(e,t){return Ze(e,`arm_${t}_torn`)?`torn`:Ze(e,`forearm_${t}_severed`)?`severed`:Ze(e,`arm_${t}_broken`)?`broken`:Ze(e,`shoulder_${t}_dislocated`)?`dislocated`:`whole`}var lt={dislocated:`shoulder_dislocated`,broken:`arm_broken`,severed:`forearm_severed`,torn:`arm_torn`};function ut(e,t){if(ct(e,t)!==`torn`)return t;let n=t===`left`?`right`:`left`;return ct(e,n)===`torn`?null:n}function dt(e){return ct(e,`left`)===`torn`&&ct(e,`right`)===`torn`}function ft(e,t){let n=ct(e,t);return n===`whole`?0:qe[lt[n]].startup_add??0}var pt=Object.fromEntries(He.map(e=>[e,qe[$e(e)].move_speed_percent??100]));function mt(e,t){let n=e;for(let e of t){let t=pt[e];t!==100&&(n=Math.floor(n*t/100))}return n}function ht(e){let t=0;for(let n of Ye)e0?`-${e.draws}`:``}`}var _t=e=>e.wins+e.losses+e.draws===0;function vt(e){return _t(e)?`PRO DEBUT`:`${gt(e)} (${e.knockouts} KO)`}var yt=class extends Error{name=`ProtocolError`},bt=2147483647,xt=new TextEncoder;function St(e){let t=0,n=()=>{for(;/\s/u.test(e[t]??``);)t+=1},r=()=>{let n=t;if(e[t++]!==`"`)throw new yt(`invalid JSON`);for(;t{n();let a=e[t];if(a===`{`){t+=1,n();let a=new Set;if(e[t]===`}`){t+=1;return}for(;;){n();let o=r();if(a.has(o))throw new yt(`duplicate field ${o}`);if(a.add(o),n(),e[t++]!==`:`)throw new yt(`invalid JSON`);i(),n();let s=e[t++];if(s===`}`)return;if(s!==`,`)throw new yt(`invalid JSON`)}}if(a===`[`){if(t+=1,n(),e[t]===`]`){t+=1;return}for(;;){i(),n();let r=e[t++];if(r===`]`)return;if(r!==`,`)throw new yt(`invalid JSON`)}}if(a===`"`){r();return}let o=e.slice(t),s=/^(?:-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?|true|false|null)/u.exec(o);if(!s)throw new yt(`invalid JSON`);t+=s[0].length};if(i(),n(),t!==e.length)throw new yt(`invalid JSON`)}function Ct(e){let t,n;if(typeof e==`string`?(t=xt.encode(e),n=e):(t=e instanceof Uint8Array?e:new Uint8Array(e),n=new TextDecoder(`utf-8`,{fatal:!0}).decode(t)),t.byteLength>65536)throw new yt(`server frame too large`);try{return St(n),JSON.parse(n)}catch(e){throw e instanceof yt?e:new yt(`invalid JSON`)}}function wt(e,t){if(typeof e!=`object`||!e||Array.isArray(e)||Object.getPrototypeOf(e)!==Object.prototype)throw new yt(`${t} must be an object`);return e}function Tt(e,t,n=[]){let r=new Set([...t,...n]),i=Object.keys(e);if(t.some(t=>!Object.hasOwn(e,t))||i.some(e=>!r.has(e)))throw new yt(`schema mismatch`)}function L(e,t,n=0,r=bt){if(!Number.isSafeInteger(e)||er)throw new yt(`${t} must be a bounded integer`);return e}function Et(e,t){if(typeof e!=`boolean`)throw new yt(`${t} must be boolean`);return e}function Dt(e,t,n=255,r=1){if(typeof e!=`string`||e.lengthn||/[\u0000-\u001f\u007f]/u.test(e))throw new yt(`${t} must be a bounded string`);return e}function Ot(e,t,n=255){return e===null?null:Dt(e,t,n)}function kt(e,t,n){if(typeof e!=`string`||!t.includes(e))throw new yt(`invalid ${n}`);return e}function At(e,t,n){if(!Array.isArray(e)||e.length>n)throw new yt(`${t} must be a bounded array`);return e}var jt=[`left`,`right`],Mt=[`jab`,`straight`,`hook`,`uppercut`],Nt=[`head`,`body`],Pt=[`normal`,`power`],Ft=[`orthodox`,`southpaw`],It=[`balanced`,`boxer`,`slugger`,`swarmer`,`counter_puncher`],Lt=[`none`,`guard_high`,`guard_low`,`slip_left`,`slip_right`,`weave`,`pull`],Rt=[`none`,`guard_high`,`guard_low`],zt=[`slip_left`,`slip_right`,`weave`,`pull`,`clinch`,`switch_stance`,`get_up_left`,`get_up_right`,`taunt`,`corner_cut`,`corner_swelling`,`corner_breath`],Bt=[`cut`,`swelling`,`breath`,`balanced`],Vt=[`low_blow`,`headbutt`],Ht=[`countdown`,`fight`,`knockdown`,`foul_recovery`,`referee_down`,`finish`,`rest`,`complete`],Ut=[`ko`,`flash_ko`,`tko`,`death`,`disqualification`,`decision`,`draw`,`forfeit`];function Wt(e){let t=wt(e,`record`);return Tt(t,[`wins`,`losses`,`draws`,`knockouts`]),{wins:L(t.wins,`record.wins`),losses:L(t.losses,`record.losses`),draws:L(t.draws,`record.draws`),knockouts:L(t.knockouts,`record.knockouts`)}}function Gt(e){let t=wt(e,`player`);Tt(t,[`id`,`name`,`avatar`,`rating`,`connected`],[`cpu`,`record`,`style`]);let n=t.style===void 0?{}:{style:kt(t.style,It,`player style`)},r=t.cpu===void 0?{}:{cpu:Et(t.cpu,`cpu`)},i=t.record===void 0?{}:{record:Wt(t.record)};return{id:Dt(t.id,`player.id`),name:Dt(t.name,`player.name`,80),avatar:Ot(t.avatar,`player.avatar`,128),rating:L(t.rating,`rating`),connected:Et(t.connected,`connected`),...r,...i,...n}}function Kt(e,t,n=1){let r=At(e,`players`,2).map(Gt);if(r.lengthe.id)).size!==r.length)throw new yt(`players must be present and distinct`);return r}function qt(e){let t=wt(e,`trauma`);return Tt(t,[`head`,`body`,`left_eye`,`right_eye`,`left_cut`,`right_cut`,`swelling`,`bleeding`]),{head:L(t.head,`head`,0,1400),body:L(t.body,`body`,0,1200),left_eye:L(t.left_eye,`left_eye`,0,1e3),right_eye:L(t.right_eye,`right_eye`,0,1e3),left_cut:L(t.left_cut,`left_cut`,0,1e3),right_cut:L(t.right_cut,`right_cut`,0,1e3),swelling:L(t.swelling,`swelling`,0,1e3),bleeding:L(t.bleeding,`bleeding`,0,1e3)}}var Jt=g;function Yt(e,t){return Math.max(-Jt,Math.min(Jt,L(e,t,-2147483647,bt)))}function Xt(e){let t=At(e,`injuries`,He.length).map(e=>kt(e,He,`injury`));for(let e=1;ee===null)&&[n,r,i,a].some(e=>e!==null))throw new yt(`partial punch action`);let o=t.action_id===null?null:Dt(t.action_id,`action_id`,32),s=t.action_key===null?null:Dt(t.action_key,`action_key`,64);if([o,s].some(e=>e===null)!==[o,s].every(e=>e===null))throw new yt(`partial action instance`);if(o!==null&&n===null)throw new yt(`action instance without class`);let c=t.get_up_prompt===null?null:kt(t.get_up_prompt,[`get_up_left`,`get_up_right`],`get-up prompt`),l=t.get_up_next_prompt===null?null:kt(t.get_up_next_prompt,[`get_up_left`,`get_up_right`],`next get-up prompt`),u=L(t.maximum_stamina,`maximum_stamina`,330,1e3),d=L(t.stamina,`stamina`,0,u),f=L(t.get_up_required,`get_up_required`,0,ie),p=L(t.facing,`facing`,-1,1);if(p===0)throw new yt(`invalid facing`);let m=L(t.facing_x,`facing_x`,-1e3,1e3),h=L(t.facing_y,`facing_y`,-1e3,1e3);if(m===0&&h===0)throw new yt(`invalid facing vector`);if(f!==0&&fAt(e,`round scores`,15).map(e=>L(e,`score`,6,10)),r=n(t.player_one),i=n(t.player_two);if(r.length!==i.length)throw new yt(`scorecard round mismatch`);return{judge:Dt(t.judge,`judge`,80),player_one:r,player_two:i}}function en(e){let t=At(e,`scorecards`,3).map($t);if(t.length!==3)throw new yt(`exactly three scorecards required`);return t}function tn(e,t){if(t===`draw`!=(e===null))throw new yt(`incoherent finish result`)}function nn(e){let t=wt(e,`result`);Tt(t,[`match_id`,`activity_instance_id`,`guild_id`,`player_one_id`,`player_two_id`,`winner_id`,`finish_method`,`round_number`,`tick`,`scorecards`,`player_one_knockdowns`,`player_two_knockdowns`,`player_one_damage`,`player_two_damage`]);let n=Dt(t.player_one_id,`player_one_id`),r=Dt(t.player_two_id,`player_two_id`);if(n===r)throw new yt(`result players must be distinct`);let i=Ot(t.winner_id,`winner_id`);if(i!==null&&i!==n&&i!==r)throw new yt(`invalid winner`);let a=kt(t.finish_method,Ut,`finish method`);return tn(i,a),{match_id:Dt(t.match_id,`match_id`),activity_instance_id:Dt(t.activity_instance_id,`activity_instance_id`),guild_id:Dt(t.guild_id,`guild_id`),player_one_id:n,player_two_id:r,winner_id:i,finish_method:a,round_number:L(t.round_number,`round`,1,15),tick:L(t.tick,`tick`),scorecards:en(t.scorecards),player_one_knockdowns:L(t.player_one_knockdowns,`knockdowns`,0,3),player_two_knockdowns:L(t.player_two_knockdowns,`knockdowns`,0,3),player_one_damage:L(t.player_one_damage,`damage`),player_two_damage:L(t.player_two_damage,`damage`)}}function rn(e){let t=wt(e,`referee`);return Tt(t,[`x`,`y`,`facing_x`,`facing_y`,`velocity_x`,`velocity_y`,`stunned_ticks`,`alive`,`trauma`]),{x:L(t.x,`referee.x`,-462,462),y:L(t.y,`referee.y`,-462,462),facing_x:L(t.facing_x,`referee.facing_x`,-1e3,1e3),facing_y:L(t.facing_y,`referee.facing_y`,-1e3,1e3),velocity_x:Yt(t.velocity_x,`referee.velocity_x`),velocity_y:Yt(t.velocity_y,`referee.velocity_y`),stunned_ticks:L(t.stunned_ticks,`referee.stunned_ticks`,0,90),alive:Et(t.alive,`referee.alive`),trauma:qt(t.trauma)}}function an(e){let t=wt(e,`snapshot`);Tt(t,[`tick`,`phase`,`round_number`,`phase_ticks_remaining`,`fighters`,`referee`,`events`,`result`,`checksum`]);let n=At(t.fighters,`fighters`,2).map(Zt);if(n.length!==2||n[0]?.player_id===n[1]?.player_id)throw new yt(`snapshot requires two distinct fighters`);let r=Dt(t.checksum,`checksum`,64);if(!/^[a-f0-9]{64}$/u.test(r))throw new yt(`invalid checksum`);return{tick:L(t.tick,`tick`),phase:kt(t.phase,Ht,`phase`),round_number:L(t.round_number,`round`,1,15),phase_ticks_remaining:L(t.phase_ticks_remaining,`phase ticks`),fighters:[n[0],n[1]],referee:rn(t.referee),events:At(t.events,`events`,256).map(Qt),result:t.result===null?null:nn(t.result),checksum:r}}function on(e){let t=wt(Ct(e),`envelope`);if(t.version!==7)throw new yt(`unsupported protocol version`);let n=Dt(t.type,`type`,32);if(n===`welcome`){let e=kt(t.role,[`fighter`,`spectator`],`connection role`),r=Dt(t.player_id,`player_id`),i=t.reconnect_ticket===void 0?{}:{reconnect_ticket:Dt(t.reconnect_ticket,`reconnect_ticket`,4096)};if(e===`fighter`){Tt(t,[`version`,`type`,`role`,`player_id`,`seat`,`rating`,`players`,`server_tick`,`next_sequence`],[`reconnect_ticket`]);let a=Kt(t.players);if(!a.some(e=>e.id===r))throw new yt(`welcome fighter is absent`);return{version:7,type:n,role:e,player_id:r,seat:L(t.seat,`seat`,1,2),rating:L(t.rating,`rating`),players:a,server_tick:L(t.server_tick,`server_tick`),next_sequence:L(t.next_sequence,`next_sequence`),...i}}Tt(t,[`version`,`type`,`role`,`player_id`,`players`,`server_tick`],[`reconnect_ticket`]);let a=Kt(t.players,void 0,0);if(a.some(e=>e.id===r))throw new yt(`spectator cannot be a fighter`);return{version:7,type:n,role:e,player_id:r,players:a,server_tick:L(t.server_tick,`server_tick`),...i}}if(n===`ticket`)return Tt(t,[`version`,`type`,`reconnect_ticket`,`refresh_id`]),{version:7,type:n,reconnect_ticket:Dt(t.reconnect_ticket,`reconnect_ticket`,4096),refresh_id:Dt(t.refresh_id,`refresh_id`,128,16)};if(n===`waiting`){if(Tt(t,[`version`,`type`,`open_seats`]),t.open_seats!==1&&t.open_seats!==2)throw new yt(`invalid open seats`);return{version:7,type:n,open_seats:t.open_seats}}if(n===`select`){Tt(t,[`version`,`type`,`deadline_ms`,`players`,`ready`]);let e=Kt(t.players,2),r=At(t.ready,`ready`,2).map(e=>Dt(e,`ready player id`));if(new Set(r).size!==r.length||r.some(t=>!e.some(e=>e.id===t)))throw new yt(`invalid ready fighters`);return{version:7,type:n,deadline_ms:L(t.deadline_ms,`deadline_ms`,0,6e4),players:[e[0],e[1]],ready:r}}if(n===`ready`){Tt(t,[`version`,`type`,`players`]);let e=Kt(t.players,2);return{version:7,type:n,players:[e[0],e[1]]}}if(n===`paused`)return Tt(t,[`version`,`type`,`player_id`,`grace_ms`]),{version:7,type:n,player_id:Dt(t.player_id,`player_id`),grace_ms:L(t.grace_ms,`grace_ms`,0,6e4)};if(n===`resumed`)return Tt(t,[`version`,`type`,`player_id`]),{version:7,type:n,player_id:Dt(t.player_id,`player_id`)};if(n===`snapshot`)return Tt(t,[`version`,`type`,`payload`]),{version:7,type:n,payload:an(t.payload)};if(n===`error`)return Tt(t,[`version`,`type`,`code`]),{version:7,type:n,code:Dt(t.code,`error code`,80)};if(n===`final`)return cn(t,n);throw new yt(`unsupported server message type`)}function sn(e,t){let n=Object.entries(wt(e,`punches`));if(n.length!==2||n.some(([e])=>!t.includes(e)))throw new yt(`punches must count both fighters`);let r=Object.create(null);for(let[e,t]of n){let n=wt(t,`punch totals`);Tt(n,[`thrown`,`landed`,`jabs_thrown`,`jabs_landed`]);let i=L(n.thrown,`thrown`),a=L(n.landed,`landed`,0,i),o=L(n.jabs_thrown,`jabs_thrown`,0,i);r[e]={thrown:i,landed:a,jabs_thrown:o,jabs_landed:L(n.jabs_landed,`jabs_landed`,0,Math.min(a,o))}}return r}function cn(e,t){Tt(e,[`version`,`type`,`match_id`,`winner_id`,`method`,`round`,`scorecards`,`ratings`],[`punches`]);let n=wt(e.ratings,`ratings`),r=Object.entries(n);if(r.length!==2)throw new yt(`final requires two ratings`);let i=Object.create(null);for(let[e,t]of r){Dt(e,`rating player id`);let n=wt(t,`rating`);Tt(n,[`before`,`after`]),i[e]={before:L(n.before,`before`),after:L(n.after,`after`)}}let a=Ot(e.winner_id,`winner_id`);if(a!==null&&!Object.hasOwn(i,a))throw new yt(`winner absent from ratings`);let o=kt(e.method,Ut,`finish method`);tn(a,o);let s=e.punches===void 0?{}:{punches:sn(e.punches,Object.keys(i))};return{version:7,type:t,match_id:Dt(e.match_id,`match_id`),winner_id:a,method:o,round:L(e.round,`round`,1,15),scorecards:en(e.scorecards),ratings:i,...s}}function ln(e,t,n){return JSON.stringify({version:7,type:`input`,sequence:L(e,`sequence`),client_tick:L(t,`client tick`),move:{x:Math.max(-1e3,Math.min(1e3,Math.round(Number.isFinite(n.moveX)?n.moveX:0))),y:Math.max(-1e3,Math.min(1e3,Math.round(Number.isFinite(n.moveY)?n.moveY:0)))},defense:kt(n.defense,Rt,`held defense`),actions:n.actions.slice(0,4).map(e=>{let t=e.id===void 0?{}:{id:e.id.slice(0,32)};return e.kind===`punch`?{kind:`punch`,hand:kt(e.hand,jt,`hand`),class:kt(e.class,Mt,`class`),target:kt(e.target,Nt,`target`),power:kt(e.power,Pt,`power`),...t}:e.kind===`foul`?{kind:`foul`,foul:kt(e.foul,Vt,`foul`),...t}:{kind:kt(e.kind,zt,`action`),...t}})})}function un(e,t){return JSON.stringify({version:7,type:`style`,style:kt(e,It,`fighter style`),ready:t===!0})}var dn=[`rookie`,`contender`,`champion`];function fn(e){return JSON.stringify({version:7,type:`cpu`,level:kt(e,dn,`computer level`)})}function pn(e){let t=wt(e,`bootstrap`);if(Tt(t,[`client_id`,`state`,`protocol`,`simulation`]),t.protocol!==7)throw new yt(`unsupported protocol version`);let n=wt(t.simulation,`simulation`);return Tt(n,[`tick_rate`,`ring_half_width`,`ring_half_height`]),{client_id:Dt(t.client_id,`client_id`,36),state:Dt(t.state,`state`,128),protocol:7,simulation:{tick_rate:L(n.tick_rate,`tick rate`,1,120),ring_half_width:L(n.ring_half_width,`ring width`,1),ring_half_height:L(n.ring_half_height,`ring height`,1)}}}function mn(e){let t=wt(e,`token response`);Tt(t,[`access_token`,`ticket`,`player`]);let n=wt(t.player,`player`);return Tt(n,[`id`,`name`,`avatar`,`rating`]),{access_token:Dt(t.access_token,`access token`,4096),ticket:Dt(t.ticket,`ticket`,4096),player:{id:Dt(n.id,`id`),name:Dt(n.name,`name`,80),avatar:Ot(n.avatar,`avatar`,128),rating:L(n.rating,`rating`)}}}var hn=[`Power`,`Hand speed`,`Footwork`,`Reach`,`Stamina`,`Defence`],gn=[{style:`balanced`,name:`Balanced`,tag:`BALANCED`,detail:`Even at everything, no holes to exploit.`,stats:[3,3,3,3,3,3]},{style:`boxer`,name:`Boxer`,tag:`BOXER`,detail:`Snappy jab and long reach, lighter hands.`,stats:[2,4,3,4,3,3]},{style:`slugger`,name:`Slugger`,tag:`SLUGGER`,detail:`Heavy hands, hard chin, slow feet, tires sooner.`,stats:[5,2,2,3,2,4]},{style:`swarmer`,name:`Swarmer`,tag:`SWARMER`,detail:`Quick feet and head, digs to the body, never stops.`,stats:[2,4,4,3,4,3]},{style:`counter_puncher`,name:`Counter-puncher`,tag:`COUNTER`,detail:`Slips and parries, makes every miss cost.`,stats:[2,3,3,3,3,5]}],_n=e=>gn.find(t=>t.style===e)??gn[0];function vn(e){return e===void 0||e===`balanced`?null:_n(e).tag}function yn(e){return e===void 0||e===`balanced`?null:`the ${_n(e).name.toLowerCase()}`}var bn=`hands.style.v1`;function xn(e=Cn()){try{let t=e?.getItem(bn);return It.find(e=>e===t)??`balanced`}catch{return`balanced`}}function Sn(e,t=Cn()){try{t?.setItem(bn,e)}catch{}}function Cn(){try{return window.localStorage}catch{return null}}var wn=400,Tn={Digit1:0,Digit2:1,Digit3:2,Digit4:3,Digit5:4,Numpad1:0,Numpad2:1,Numpad3:2,Numpad4:3,Numpad5:4},En=.6;function Dn(){try{return[...navigator.getGamepads?.()??[]].find(e=>e!==null&&e.connected&&e.mapping===`standard`)??null}catch{return null}}function On(e){let t=new Set;if(e===null)return t;let n=t=>e.buttons[t]?.pressed===!0,r=e.axes[0]??0,i=e.axes[1]??0;return(n(12)||n(14)||r<-.6||i<-.6)&&t.add(`previous`),(n(13)||n(15)||r>En||i>En)&&t.add(`next`),n(0)&&t.add(`settle`),t}var kn=class{send;now;element;buttons=new Map;clock;status;visible=!1;choosing=!1;highlighted;settled=!1;deadlineAt=0;timer=null;padFrame=0;padHeld=new Set;context=null;keydown=e=>{if(!this.visible||!this.choosing||e.repeat||e.ctrlKey||e.metaKey||e.altKey)return;let t=e.target;if(t instanceof HTMLElement&&t!==document.body&&!this.element.contains(t))return;let n=Tn[e.code];n===void 0?e.code===`ArrowRight`||e.code===`ArrowDown`?(e.preventDefault(),this.move(this.neighbour(1))):e.code===`ArrowLeft`||e.code===`ArrowUp`?(e.preventDefault(),this.move(this.neighbour(-1))):e.code!==`Enter`&&e.code!==`Space`||t instanceof HTMLButtonElement||(e.preventDefault(),this.pick(this.highlighted,!0)):(e.preventDefault(),this.pick(gn[n].style,!0))};constructor(e,t,n=()=>performance.now(),r=xn()){this.send=t,this.now=n,this.highlighted=r;let i=document.createElement(`section`);i.className=`style-picker`,i.dataset.stylePicker=``,i.hidden=!0,i.setAttribute(`aria-label`,`Pick how your fighter boxes`);let a=document.createElement(`header`),o=document.createElement(`p`);o.className=`style-title`,o.textContent=`CHOOSE YOUR STYLE`,this.clock=document.createElement(`p`),this.clock.className=`style-clock`,a.append(o,this.clock);let s=document.createElement(`div`);s.className=`style-cards`;for(let[e,t]of gn.entries()){let n=document.createElement(`button`);n.type=`button`,n.dataset.style=t.style,n.setAttribute(`aria-pressed`,`false`);let r=document.createElement(`kbd`);r.textContent=String(e+1);let i=document.createElement(`strong`);i.textContent=t.name;let a=document.createElement(`span`);a.textContent=t.detail;let o=document.createElement(`ul`);o.className=`style-stats`;for(let[e,n]of t.stats.entries()){let t=document.createElement(`li`);t.setAttribute(`aria-label`,`${hn[e]} ${n} of 5`);let r=document.createElement(`small`);r.textContent=hn[e];let i=document.createElement(`i`);i.dataset.value=String(n),t.append(r,i),o.append(t)}n.append(r,i,a,o),n.addEventListener(`click`,()=>this.pick(t.style,!0)),s.append(n),this.buttons.set(t.style,n)}this.status=document.createElement(`p`),this.status.className=`style-status`,this.status.setAttribute(`role`,`status`),i.append(a,s,this.status),e.append(i),this.element=i,window.addEventListener(`keydown`,this.keydown)}update(e,t,n){if(e===null){this.setVisible(!1),this.context=null,this.settled=!1;return}let r=this.context===null||!this.choosing&&n===`fighter`;this.context?.select!==e&&(this.deadlineAt=this.now()+e.deadline_ms-wn),this.context={select:e,viewerId:t},this.choosing=n===`fighter`&&t!==null,this.settled=this.choosing&&(this.settled||e.ready.includes(t));let i=e.players.find(e=>e.id===t)?.style;this.settled&&i!==void 0&&(this.highlighted=i),r&&this.choosing&&!this.settled&&this.send(this.highlighted,!1),this.setVisible(!0),this.render()}pick(e,t){!this.choosing||this.settled||this.closed||(this.highlighted=e,this.send(e,t)&&(t&&(this.settled=!0),this.render()))}get closed(){return this.now()>=this.deadlineAt}neighbour(e){return gn[(gn.findIndex(e=>e.style===this.highlighted)+e+gn.length)%gn.length].style}move(e){this.pick(e,!1),this.settled||this.buttons.get(this.highlighted)?.focus()}render(){let e=this.context;if(e===null)return;let{select:t,viewerId:n}=e;for(let e of gn){let t=this.buttons.get(e.style),n=this.choosing&&e.style===this.highlighted;t.disabled=!this.choosing||this.settled||this.closed,t.setAttribute(`aria-pressed`,String(n)),t.toggleAttribute(`data-chosen`,n),t.tabIndex=e.style===this.highlighted?0:-1}let r=`${Math.max(0,Math.ceil((this.deadlineAt-this.now())/1e3))}s`;this.clock.textContent!==r&&(this.clock.textContent=r);let i=t.players.filter(e=>e.id!==n&&(!e.connected||t.ready.includes(e.id))).map(e=>e.connected?`${e.name} is ready.`:`Waiting for ${e.name} to reconnect.`).join(` `),a=this.choosing?this.settled?i.length>0?`Ready as ${_n(this.highlighted).name}. ${i}`:`Ready as ${_n(this.highlighted).name}. Waiting for your opponent.`:i.length>0?`${i} Tap a style or press Enter to settle on yours.`:`Tap a style, or use the arrow keys and Enter.`:i.length>0?`The fighters are choosing. ${i}`:`The fighters are choosing their styles.`;this.status.textContent!==a&&(this.status.textContent=a)}setVisible(e){this.visible!==e&&(this.visible=e,this.element.hidden=!e,e?(this.timer=window.setInterval(()=>this.render(),250),this.padHeld=On(Dn()),this.padFrame=requestAnimationFrame(()=>this.pollPad())):(this.timer!==null&&window.clearInterval(this.timer),this.timer=null,cancelAnimationFrame(this.padFrame)))}pollPad(){if(!this.visible)return;let e=On(Dn());for(let t of e)this.padHeld.has(t)||(t===`settle`?this.pick(this.highlighted,!0):this.move(this.neighbour(t===`next`?1:-1)));this.padHeld=e,this.padFrame=requestAnimationFrame(()=>this.pollPad())}destroy(){this.setVisible(!1),window.removeEventListener(`keydown`,this.keydown),this.element.remove()}},An=/^[0-9]{17,20}$/u,jn=/^[A-Za-z0-9_]{1,128}$/u,Mn=`https://cdn.discordapp.com/avatars/`,Nn=128,Pn=8;function Fn(e){return e.avatar===null||!An.test(e.id)||!jn.test(e.avatar)?null:new URL(`${e.id}/${e.avatar}.png?size=${Nn}`,Mn).href}function In(e){let t=Array.from(e).find(e=>/[\p{L}\p{N}]/u.test(e));return t===void 0?`?`:t.toUpperCase()}var Ln=class{create;pictures=new Map;addresses=new Map;constructor(e=()=>new Image){this.create=e}get(e){if(e===void 0)return null;let t=this.addresses.get(e.id);(t===void 0||t.avatar!==e.avatar)&&(this.addresses.size>=Pn&&this.addresses.clear(),t={avatar:e.avatar,url:Fn(e)},this.addresses.set(e.id,t));let n=t.url;if(n===null)return null;let r=this.pictures.get(n);if(r!==void 0)return r.ready?r.image:null;if(this.pictures.size>=Pn){let e=this.pictures.entries().next().value;e!==void 0&&this.drop(e[0],e[1])}let i={image:this.create(),ready:!1};return this.pictures.set(n,i),i.image.crossOrigin=`anonymous`,i.image.referrerPolicy=`no-referrer`,i.image.decoding=`async`,i.image.onload=()=>{i.ready=i.image.naturalWidth>0},i.image.onerror=()=>{i.ready=!1},i.image.src=n,null}dispose(){for(let[e,t]of[...this.pictures])this.drop(e,t);this.addresses.clear()}drop(e,t){t.image.onload=null,t.image.onerror=null,t.ready=!1,this.pictures.delete(e)}},Rn=`POWER ARMED`,zn=1e3,Bn=e=>e.reduce((e,t)=>e+t,0),Vn=(e,t,n)=>{if(e.measureText(t).width<=n)return t;let r=t;for(;r.length>1&&e.measureText(`${r}…`).width>n;)r=r.slice(0,-1);return`${r}…`},Hn=(e,t,n,r)=>{for(let i=n;i>r;--i)if(e(i)<=t)return i;return r},Un=`#ff7066`;function Wn(e,t,n,r,i,a){let o=i.spentBelow!==void 0&&i.value0&&(e.globalAlpha=i.alarm*.6,e.fillStyle=`#ff4632`,e.fillRect(t-1,n-1,r+2,11),e.globalAlpha=1),o){e.beginPath();for(let i=-9;i.5?`#ffffff`:`#ff9a90`,e.fillText(r,t,n-4)}}function Kn(e,t,n,r,i,a,o){let s=()=>{e.beginPath(),e.arc(t,n,r,0,Math.PI*2),e.closePath()};e.save(),s(),e.fillStyle=`#0b1220`,e.fill(),i===null?(e.globalAlpha=.4,e.fillStyle=o,e.fill(),e.globalAlpha=1,e.fillStyle=`#f5f8ff`,e.textAlign=`center`,e.font=`800 ${Math.round(r*1.1)}px Inter, system-ui, sans-serif`,e.fillText(In(a),t,n+r*.39)):(e.save(),e.clip(),e.drawImage(i,t-r,n-r,r*2,r*2),e.restore()),s(),e.lineWidth=Math.max(1.5,r/9),e.strokeStyle=o,e.stroke(),e.restore()}function qn(e,t=[]){let n=e.left_eye>=p&&!t.includes(`eye_left_out`),r=e.right_eye>=p&&!t.includes(`eye_right_out`);return n&&r?`BOTH EYES SHUT`:n?`LEFT EYE SHUT`:r?`RIGHT EYE SHUT`:null}var Jn={cut:`closing the cut`,swelling:`icing the swelling`,breath:`catching breath`,balanced:`a little of everything`};function Yn(e){let t=e.flatMap((e,t)=>e.corner_choice===null?[]:[`${t===0?`Blue`:`Red`}: ${Jn[e.corner_choice]}`]);return t.length===0?null:t.join(` · `)}function Xn(e,t,n,r){e.save(),e.font=`900 12px Inter, system-ui, sans-serif`;let i=e.measureText(Rn).width+16,a=r?t-i:t;e.shadowColor=`rgba(255,120,30,0.9)`,e.shadowBlur=12;let o=e.createLinearGradient(0,n,0,n+18);o.addColorStop(0,`#ffd36b`),o.addColorStop(1,`#ff6a1a`),e.fillStyle=o,e.fillRect(a,n,i,18),e.shadowBlur=0,e.fillStyle=`#2a0c00`,e.textAlign=`left`,e.fillText(Rn,a+8,n+13),e.restore()}function Zn(e,t,n,r,i){e.save(),e.font=`800 9px Inter, system-ui, sans-serif`;let a=e.measureText(r).width+12,o=i?t-a:t;e.fillStyle=`rgba(150,22,18,0.92)`,e.fillRect(o,n,a,14),e.fillStyle=`#ffe8e3`,e.textAlign=`left`,e.fillText(r,o+6,n+10),e.restore()}var Qn={arm_torn:0,disemboweled:1,forearm_severed:2,skull_fractured:3,jaw_torn:4,face_flayed:5,eye_out:6,ear_torn:7,arm_broken:8,knee_blown:9,ribs_broken:10,broken_jaw:11,broken_nose:12,liver_ruptured:13,shoulder_dislocated:14},$n=8,er=e=>Qn[$e(e)],tr={wide:4,compact:3};function nr(e){return e.filter(t=>t!==`broken_jaw`||!e.includes(`jaw_torn`)).sort((e,t)=>er(e)-er(t))}function rr(e,t){let n=e.slice(0,t).map(tt);return e.length>t&&n.push(`+${e.length-t}`),n}var ir=14,ar=3,or=`800 9px Inter, system-ui, sans-serif`,sr={grave:`#c4160f`,plain:`rgba(122,18,14,0.92)`,count:`rgba(52,8,8,0.92)`},cr={grave:`#ffffff`,plain:`#ffe8e3`,count:`#ffb1a8`};function lr(e,t,n,r,i,a){e.fillStyle=sr[a],e.fillRect(t,n,r,ir),e.fillStyle=cr[a],e.fillText(i,t+6,n+10)}function ur(e,t,n,r,i,a,o){if(i.length===0)return n;let s=nr(i),c=Math.min(a,s.length),l=rr(s,a).map(e=>({label:e,width:0,offset:0,row:0}));e.save(),e.font=or,e.textAlign=`left`;let u=0,d=0;for(let t of l)t.label=Vn(e,t.label,r-12),t.width=e.measureText(t.label).width+12,d>0&&d+ar+t.width>r&&(u+=1,d=0),t.offset=d===0?0:d+ar,t.row=u,d=t.offset+t.width;let f=n-(u+1)*17+ar;return l.forEach((n,r)=>{let i=r>=c?`count`:er(s[r])<$n?`grave`:`plain`;lr(e,o?t-n.offset-n.width:t+n.offset,f+n.row*17,n.width,n.label,i)}),e.restore(),f}function dr(e,t,n,r,i,a,o){let s=nr(a),c=s.length+(i===null?0:1);if(c===0)return 0;e.save(),e.font=or,e.textAlign=`left`;let l=0,u=0;for(;ur)break;lr(e,o?t-p-f:t+p,n,f,d,a===null||er(a)>=$n?`plain`:`grave`),l=p+f,u+=1}if(u>0&&u0?`${t.knockdowns} KD`:null,c=[s,t.warnings>0?`${t.warnings} WARNING${t.warnings===1?``:`S`}`:null,t.deductions>0?`−${t.deductions} PT${t.deductions===1?``:`S`}`:null,r>0?`${r} INJUR${r===1?`Y`:`IES`}`:null],l=[s,t.warnings>0?`W${t.warnings}`:null,t.deductions>0?`−${t.deductions}`:null,r>0?`${r} INJ`:null],u=(...e)=>e.filter(e=>e!==null).join(` · `),d=n?[u(i,...l),u(...l)]:[u(i,a,o,...c),u(i,o,...c),u(i,...c),u(i,...l),u(...l)];return d.filter((e,t)=>e!==``&&d.indexOf(e)===t)}var xr=168;function Sr(e,t,n,r,i,a,o,s,c,l,u=!1){e.save(),e.beginPath(),s?(e.moveTo(t+14,n),e.lineTo(t+r,n),e.lineTo(t+r-14,n+62),e.lineTo(t,n+62)):(e.moveTo(t,n),e.lineTo(t+r-14,n),e.lineTo(t+r,n+62),e.lineTo(t+14,n+62)),e.closePath(),e.fillStyle=`rgba(3,6,12,0.82)`,e.fill(),e.strokeStyle=`rgba(190,200,220,0.22)`,e.lineWidth=1,e.stroke(),e.fillStyle=c,e.fillRect(s?t+r-5:t,n+4,5,54);let d=l===void 0?20:51;l!==void 0&&Kn(e,s?t+r-11-16:t+11+16,n+4+16,16,l,i,c);let f=s?t+r-d:t+d;e.textAlign=s?`right`:`left`,e.fillStyle=`#f5f8ff`;let p=i.toUpperCase(),m=r-d-24;e.font=`800 ${Hn(t=>(e.font=`800 ${t}px Inter, system-ui, sans-serif`,e.measureText(p).width),m,16,11)}px Inter, system-ui, sans-serif`,e.fillText(Vn(e,p,m),f,n+21);let h=r-d-14;if(u)e.fillStyle=`#ffb347`,e.font=`900 10px Inter, system-ui, sans-serif`,e.fillText(Vn(e,Rn,h),f,n+35);else{e.fillStyle=`#93a3bd`;let t=(t,n)=>(e.font=`600 ${n}px Inter, system-ui, sans-serif`,e.measureText(t).width),r=a.find(e=>t(e,8)<=h)??a.at(-1)??``;e.font=`600 ${Hn(e=>t(r,e),h,10,8)}px Inter, system-ui, sans-serif`,e.fillText(Vn(e,r,h),f,n+35)}let g=(r-52)/o.length,_=o.length*g+(o.length-1)*12,v=s?t+r-20-_:t+20;o.forEach((t,r)=>{Wn(e,v+(g+12)*r,n+48,g,t,s)}),e.restore()}function Cr(e,t,n,r,i,a){let o=xr;e.save(),e.beginPath(),e.moveTo(t-o/2+12,n),e.lineTo(t+o/2-12,n),e.lineTo(t+o/2,n+29),e.lineTo(t+o/2-12,n+58),e.lineTo(t-o/2+12,n+58),e.lineTo(t-o/2,n+29),e.closePath(),e.fillStyle=`rgba(4,6,12,0.88)`,e.fill();let s=e.createLinearGradient(t-o/2,n,t+o/2,n+58);s.addColorStop(0,`#8a6a26`),s.addColorStop(.5,`#f6d57a`),s.addColorStop(1,`#8a6a26`),e.strokeStyle=s,e.lineWidth=2,e.stroke(),e.textAlign=`center`,e.fillStyle=`#ffffff`,e.font=`800 22px ui-monospace, monospace`,e.fillText(r,t,n+27),e.fillStyle=`#f6d57a`,e.font=`800 12px Inter, system-ui, sans-serif`,e.fillText(i,t,n+44),a!==`FIGHT`&&(e.fillStyle=`#93a3bd`,e.font=`700 9px Inter, system-ui, sans-serif`,e.fillText(a,t,n+55)),e.restore()}var wr=78,Tr=50,Er=.22,Dr=e=>e<480?Tr:wr,Or=(e,t)=>Math.max(e<640?112:56,t*.1)+Dr(t)/2-t/2,kr={upright:{bottom:118,height:274,moves:0,grid:118},landscape:{bottom:118,height:196,moves:102,grid:118},short:{bottom:112,height:154,moves:86,grid:92},shortHeight:350,reach:216,movesReach:134},Ar=(e,t)=>e<=t?kr.upright:t<=kr.shortHeight?kr.short:kr.landscape;function jr(e,t,n){let r=Ar(e,t);return n<=t-r.bottom-r.height?0:kr.reach+(r.moves>0&&n>t-r.bottom-r.moves?kr.movesReach:0)}var Mr=160;function Nr(e,t,n=!1){let r=Dr(t),i=t/2+Or(e,t)-r/2,a=Math.min(320,e-24),o=e/2+a/2;if(n&&e<=t)jr(e,t,i+r+8)>0&&(r=Tr);else if(n){let n=e<640?Math.min(e/2-xr/2-8,e-jr(e,t,56+r)):0,s=n-12>=Mr;s&&(i=56);let c=s?n:e-jr(e,t,i+r);o>c&&(a=Math.min(a,c-12),o=c)}return{x:o-a,y:i,width:a,height:r}}var Pr={width:560,height:360,shortest:150},Fr=112;function Ir(e,t,n=!1){let r=n?Le(e,t):null,i=e<=t,a=r!==null&&i?Math.min(t-Fr,r.left.y-8):t-Fr,o=r!==null&&!i?r.right.x-r.left.x-r.left.width-24:e-24,s=Math.min(Pr.height,Math.max(Pr.shortest,a-56)),c=Math.max(56,Math.min(Math.max(t*.24,ti(t,e<640)+34),a-s)),l=Math.min(Pr.width,o);return{x:e/2-l/2,y:c,width:l,height:s}}var Lr={perfect:{word:`PERFECT`,color:`#ffd24a`},good:{word:`GOOD`,color:`#7dffa8`},early:{word:`EARLY`,color:`#8fc3ff`},late:{word:`LATE`,color:`#ffad5c`},wrong:{word:`WRONG SIDE`,color:`#ff6b6b`}},Rr=44,zr=64,Br=[``,`1st`,`2nd`,`3rd`],Vr={get_up_left:`←`,get_up_right:`→`},Hr={plain:{ring:`#ffffff`,disc:`#16233a`,arrow:`#fff4cf`},good:{ring:`#7dffa8`,disc:`#1d6a3f`,arrow:`#e4ffee`},perfect:{ring:`#ffd24a`,disc:`#7a5a08`,arrow:`#fff8dc`}};function Ur(e,t,n,r){e.beginPath(),e.arc(t,n,r,0,Math.PI*2)}function Wr(e,t,n,r){let{x:i,y:a,width:o,height:s}=t,c=s/Pr.height,l=e=>a+e*c,u=a+s-40,d=l(52),f=e=>Math.min(c,(e-d)/2/108),p=f(u-26),m=o-16-(28+216*p+54*p+16)>=150,h=m?u-26:u-54,g=m?p:f(h),_=n.verdict===null?1/0:n.nowMs-n.verdict.atMs,v=_<1100?n.verdict:null,y=v===null?null:Lr[v.detail];e.save(),e.fillStyle=`rgba(3,6,12,0.88)`,e.fillRect(i,a,o,s),e.strokeStyle=r&&y!==null&&_<220?y.color:`rgba(246,213,122,0.5)`,e.lineWidth=2,e.strokeRect(i+2,a+2,o-4,s-4),e.textAlign=`left`,e.fillStyle=`#ffd77a`,n.count>=1?(e.font=`800 13px Inter, system-ui, sans-serif`,e.fillText(`COUNT`,i+18,l(36)),e.font=`900 ${Math.round(40*Math.max(.75,c))}px Inter, system-ui, sans-serif`,e.fillText(String(n.count),i+76,l(42))):(e.font=`900 ${Math.round(32*Math.max(.75,c))}px Inter, system-ui, sans-serif`,e.fillText(`GET UP!`,i+18,l(42)));for(let t=1;t<=10;t+=1){Ur(e,i+o-22-(10-t)*14,l(24),5);let r=t===10?`#ff6b6b`:`#ffd77a`;t<=n.count?(e.fillStyle=r,e.fill()):(e.strokeStyle=t===10?r:`rgba(210,220,235,0.55)`,e.lineWidth=1.5,e.stroke())}e.textAlign=`right`,e.fillStyle=`#aebbd0`,e.font=`700 11px Inter, system-ui, sans-serif`,e.fillText(n.count>=10?`TEN`:`${10-n.count} LEFT TO TEN`,i+o-16,l(46));let b=Rr*g,x=zr*g,S=m?i+28+b+x:i+o/2-26*g,C=(d+h)/2,w=x/te,T=n.prompt,E=``,D=`#c8d3e6`,O=!1;if(e.textAlign=`center`,n.risen||T===null)Ur(e,S,C,b),e.fillStyle=n.risen?`#1d6a3f`:`#1a2130`,e.fill(),e.fillStyle=n.risen?`#7dffa8`:`#6f7d94`,e.font=`900 ${Math.round(30*g)}px Inter, system-ui, sans-serif`,e.fillText(n.risen?`UP`:`–`,S,C+11*g),E=n.risen?`ON YOUR FEET`:`NO MORE PROMPTS`,D=n.risen?`#7dffa8`:`#c8d3e6`;else{let t=T.beat-n.pressTick,r=M.zoneTicks+.5,i=n.pressTick<_e(T.beat)-.5;O=!i&&Math.abs(t)<=r;let a=O?Math.abs(t)<=M.perfectTicks+.5?Hr.perfect:Hr.good:Hr.plain;if(e.lineWidth=r*2*w,e.strokeStyle=O?`rgba(125,255,168,0.6)`:`rgba(125,255,168,0.22)`,Ur(e,S,C,b),e.stroke(),e.lineWidth=(M.perfectTicks+.5)*2*w,e.strokeStyle=`rgba(255,210,74,0.75)`,Ur(e,S,C,b),e.stroke(),Ur(e,S,C,b-6*g),e.fillStyle=a.disc,e.fill(),e.fillStyle=a.arrow,e.font=`900 ${Math.round(64*g)}px Inter, system-ui, sans-serif`,e.fillText(Vr[T.side],S,C+22*g),i?(e.setLineDash([6,7]),e.lineWidth=2.5,e.strokeStyle=`rgba(200,211,230,0.45)`,Ur(e,S,C,b+x),e.stroke(),e.setLineDash([]),E=`GET READY`):t>=-r-M.lateTicks&&(e.lineWidth=Math.max(3,5*g),e.strokeStyle=a.ring,Ur(e,S,C,Math.max(4,b+Math.min(te,t)*w)),e.stroke(),E=O?`NOW`:t>0?`WAIT FOR IT`:`TOO LATE`,D=O?a.ring:t>0?`#eaf1ff`:`#ffad5c`),T.next!==null){let t=S+b+x+36*g;e.globalAlpha=.5,e.setLineDash([3,3]),e.lineWidth=1.5,e.strokeStyle=`#aebbd0`,Ur(e,t,C,18*g),e.stroke(),e.setLineDash([]),e.fillStyle=`#aebbd0`,e.font=`700 ${Math.round(22*g)}px Inter, system-ui, sans-serif`,e.fillText(Vr[T.next],t,C+8*g),e.font=`700 10px Inter, system-ui, sans-serif`,e.fillText(`NEXT`,t,C+18*g+12),e.globalAlpha=1}}let k=m?S+b+x+54*g+16:i+16,ee=i+o-16-k,A=k+ee/2,j=v===null?``:v.amount===0?`no score`:`${v.amount>0?`+`:`−`}${Math.abs(v.amount)}`;if(y!==null&&!(O&&_>200)){let t=r&&_<160?1+.2*(1-_/160):1;e.save(),e.translate(A,m?C:u-30),e.scale(t,t),e.fillStyle=y.color,Si(e,m?y.word:`${y.word} ${j}`,0,0,ee,900,m?32:26,13),e.restore(),m&&(e.fillStyle=y.color,e.font=`800 20px Inter, system-ui, sans-serif`,e.fillText(j,A,C+28))}else E!==``&&(e.fillStyle=D,Si(e,E,A,m?C+10:u-30,ee,900,m?28:24,12));let ne=T?.side??null,re=n.risen?`Up before ten: take the count, then box`:ne===null?`The count runs on to ten`:`${n.touch?`Tap ${Fe[ne]}`:`Press ${De[ne]}`} as the ring closes · one press a count`;e.fillStyle=`#eaf1ff`,Si(e,re,i+o/2,u,o-32,800,20,11);let ie=Math.max(1,n.required),N=Math.max(0,Math.min(ie,n.meter)),ae=Math.max(0,ie-n.meter),oe=v!==null&&v.amount>0?v.amount:0,se=v!==null&&v.amount<0?-v.amount:0,ce=Math.min(24,(o-40-96)/ie);e.fillStyle=`rgba(2,4,9,0.9)`,e.fillRect(i+16,a+s-33,ce*ie+2,16);for(let t=0;t=N-oe?`#ffd24a`:`#3ccf78`:t0?` + head damage ${le.head}`:``} · PERFECT counts ${M.perfect}`;e.textAlign=`left`,e.fillStyle=`#93a3bd`,e.font=`600 10px Inter, system-ui, sans-serif`,e.fillText(Vn(e,ue,o-32),i+16,a+s-6),e.restore()}function Gr(e,t,n,r){let i=t.height===Tr,a=t.x+t.width/2;e.fillStyle=`rgba(3,6,12,0.88)`,e.fillRect(t.x,t.y,t.width,t.height),e.strokeStyle=`rgba(246,213,122,0.45)`,e.lineWidth=1.5,e.strokeRect(t.x+2,t.y+2,t.width-4,t.height-4),e.textAlign=`center`,e.fillStyle=`#ffd77a`,Si(e,n,a,t.y+(i?22:34),t.width-24,800,i?17:22,12),e.fillStyle=`#c8d3e6`,e.font=`600 ${i?11:12}px Inter, system-ui, sans-serif`,e.fillText(Vn(e,r,t.width-24),a,t.y+(i?39:58))}var Kr=class{fightTicks=null;round=0;ticks(e){return e.round_number!==this.round&&(this.round=e.round_number,this.fightTicks=null),e.phase===`fight`&&(this.fightTicks=e.phase_ticks_remaining),(e.phase===`knockdown`||e.phase===`foul_recovery`||e.phase===`referee_down`||e.phase===`finish`||e.phase===`complete`)&&this.fightTicks!==null?this.fightTicks:e.phase_ticks_remaining}},qr=()=>({thrown:0,landed:0,jabsThrown:0,jabsLanded:0});function Jr(e,t){return e.action_id!==null&&t.some(t=>(t.kind===`block`||t.kind===`perfect_block`)&&t.tick===e.tick&&t.action_id===e.action_id&&t.actor_id===e.target_id)}var Yr=class{stats=new Map;totals=new Map;record(e,t=[]){if(e.kind===`bell`)e.detail===`round_start`&&this.stats.clear();else if(e.actor_id!==null){if(e.kind===`punch_start`){let t=+(e.detail.split(`:`)[1]===`jab`);for(let n of[this.entry(this.stats,e.actor_id),this.entry(this.totals,e.actor_id)])n.thrown+=1,n.jabsThrown+=t}else if((e.kind===`hit`||e.kind===`counter_hit`)&&!Jr(e,t)){let t=+(e.detail.split(`:`)[0]===`jab`);for(let n of[this.entry(this.stats,e.actor_id),this.entry(this.totals,e.actor_id)])n.landed+=1,n.jabsLanded+=t}}}get(e){return this.stats.get(e)??qr()}total(e){return this.totals.get(e)??qr()}entry(e,t){let n=e.get(t);return n===void 0&&(n=qr(),e.set(t,n)),n}};function Xr(e){let t=e.method.replaceAll(`_`,` `).toUpperCase();if(e.method!==`decision`&&e.method!==`draw`)return t;let n=0,r=0,i=0;for(let t of e.scorecards){let e=Bn(t.player_one),a=Bn(t.player_two);e>a?n+=1:a>e?r+=1:i+=1}let a=e.scorecards.length;return a===0?t:e.method===`draw`?i===a?`UNANIMOUS DRAW`:n===r?`SPLIT DRAW`:`MAJORITY DRAW`:Math.max(n,r)===a?`UNANIMOUS DECISION`:i>0?`MAJORITY DECISION`:`SPLIT DECISION`}var Zr=new Set([`ko`,`flash_ko`,`tko`,`death`]),Qr=3.6,$r=2.4;function ei(e){return e===null?0:Zr.has(e.method)?Qr:e.method===`disqualification`?$r:0}var ti=(e,t)=>Math.max(e*.16,(t?112:56)+40),ni=(e,t)=>e!==null&&e>=(t?100:120),ri=`FINISH HIM!`,ii=`Impact, "Arial Black", Inter, system-ui, sans-serif`,ai=2.2,oi=.82,si={name:15,nameGap:24,bar:10,foot:42},ci={name:11,nameGap:15,bar:6,foot:26},li=28,ui=160;function di(e,t,n=!1){let r=e<640?118:60,i=Math.round(Math.min(120,t*.17,(e-32)/5)),a=(e,t,n,r,i)=>{let a=i+Math.round(e*oi);return{centre:n,maxWidth:r,size:e,baseline:a,bottom:a+(t?ci:si).foot,dense:t}};if(!n)return a(i,!1,e/2,e-32,r);let o=Ar(e,t),s=t-o.bottom-o.height;for(let n of[!1,!0]){let c=null;for(let l of o.moves>0?[s,t-o.bottom-o.moves]:[s]){let o=Math.min(i,Math.floor((l-r-(n?ci:si).foot)/oi));if(o=ui&&(c={...s,maxWidth:e-2*u})}if(c!==null)return c}let c=Nr(e,t,!0);return a(Math.max(12,Math.min(i,Math.floor((c.height-ci.foot-4)/oi))),!0,c.x+c.width/2,c.width,c.y+2)}function fi(e,t=null){let[n,r]=e;return t!==null&&(n.player_id===t||r.player_id===t)?n.player_id===t?n:r:n.poise===0==(r.poise===0)?n.knockdowns===r.knockdowns?n.stunned_ticks===r.stunned_ticks?null:n.stunned_ticks>r.stunned_ticks?n:r:n.knockdowns>r.knockdowns?n:r:n.poise===0?n:r}var pi=[`jab`,`straight`,`hook`,`uppercut`],mi=pi.map(e=>e.toUpperCase()),hi=[`head`,`body`].map(e=>({target:e.toUpperCase(),fatalities:pi.map(t=>rt(it(e,t)))})),gi=14,_i=.4,vi=[0,0,0,0];function yi(e,t,n,r,i){e.save(),e.textAlign=`left`;for(let a of[!1,!0])for(let o=10;o>=8;--o){let s=o+5,c=(a?3:2)*s+6;if(n+c>i)continue;e.font=`700 ${o}px Inter, system-ui, sans-serif`;let l=o*.4,u=Math.max(...hi.map(t=>e.measureText(t.target).width))+10,d=12+u+42;for(let[t,n]of mi.entries()){let r=e.measureText(n).width,i=a?r:0;for(let n of hi)i=Math.max(i,e.measureText(n.fatalities[t]).width+(a?0:r+l));vi[t]=i,d+=i}if(d>r)continue;let f=t-d/2;e.fillStyle=`rgba(3,6,12,0.78)`,e.fillRect(f,n,d,c);let p=n+2+o;if(a){e.fillStyle=`#f6d57a`;let t=f+6+u;for(let[n,r]of mi.entries())e.fillText(r,t,p),t+=vi[n]+gi;p+=s}for(let t of hi){e.fillStyle=Un,e.fillText(t.target,f+6,p);let n=f+6+u;for(let[r,i]of t.fatalities.entries()){let t=mi[r];a||(e.fillStyle=`#f6d57a`,e.fillText(t,n,p)),e.fillStyle=`#f5f8ff`,e.fillText(i,a?n:n+e.measureText(t).width+l,p),n+=vi[r]+gi}p+=s}e.restore();return}e.restore()}function bi(e,t,n,r,i,a){let o=i===null?0:.5-.5*Math.cos(i*ai*Math.PI*2),s=t.dense?ci:si;e.save(),e.textAlign=`center`,e.font=`italic 900 ${t.size}px ${ii}`;let c=e.measureText(ri).width,l=Math.min(t.size,t.size*t.maxWidth/(c*1.1)),u=l*(1+.08*o);e.font=`italic 900 ${u}px ${ii}`,e.lineJoin=`round`,e.lineWidth=Math.max(3,u*.12),e.strokeStyle=`rgba(10,0,0,0.92)`,e.shadowColor=`rgba(255,24,12,0.9)`,e.shadowBlur=14+24*o,e.strokeText(ri,t.centre,t.baseline),e.shadowBlur=0;let d=e.createLinearGradient(0,t.baseline-u*.8,0,t.baseline);d.addColorStop(0,`#ff5540`),d.addColorStop(.5,`#d8160d`),d.addColorStop(1,`#7d0705`),e.fillStyle=d,e.fillText(ri,t.centre,t.baseline),e.font=`800 ${s.name}px Inter, system-ui, sans-serif`,e.lineWidth=t.dense?3:4;let f=`ONE MORE PUNCH KILLS`;if(n!==null){let r=e.measureText(`${n} IS DEAD ON HIS FEET`).width<=t.maxWidth?` IS DEAD ON HIS FEET`:` IS DONE FOR`;f=`${Vn(e,n,Math.max(0,t.maxWidth-e.measureText(r).width))}${r}`}e.strokeText(f,t.centre,t.baseline+s.nameGap),e.fillStyle=`#ffe8e3`,e.fillText(f,t.centre,t.baseline+s.nameGap);let p=Math.min(420,t.maxWidth),m=t.bottom-s.bar-2,h=p*Math.max(0,Math.min(1,r));e.fillStyle=`rgba(2,4,9,0.85)`,e.fillRect(t.centre-p/2-1,m-1,p+2,s.bar+2),e.fillStyle=`#e0180f`,e.fillRect(t.centre-h/2,m,h,s.bar),e.strokeStyle=`rgba(255,112,102,0.85)`,e.lineWidth=1,e.strokeRect(t.centre-p/2-1.5,m-1.5,p+3,s.bar+3),e.restore(),a!==null&&yi(e,t.centre,t.bottom+8,Math.min(t.maxWidth,c*l/t.size),a)}function xi(e,t,n,r,i,a,o,s,c=30,l=null,u=null,d=null,f=null,p=null,g=null,_=null,v=!1,y=!1,b=null,x=null,S=!0,C=null){e.save();let w=yr(t,n);e.scale(w,w),t/=w,n/=w,e.textBaseline=`alphabetic`;let T=e=>{let t=i[e.player_id];return t===void 0||g===null?null:g(t)},E=t<640,D=E?(t-56)/2:Math.min(300,t*.38,t/2-xr/2-8-24),O=n-84,k=S?r.tick/c:null,ee=_r(t,n,v,r.phase===`rest`&&r.fighters.some(e=>e.player_id===a));o===null&&r.fighters.forEach((o,s)=>{let c=s===1,l=c?t-24-D:24,u=i[o.player_id],d=[{label:`${E?`STA`:`STAMINA`} ${Math.round(o.stamina)}`,value:o.stamina,maximum:o.maximum_stamina,from:`#ffe08a`,to:`#d9a53a`},{label:`${E?`HP`:`HEALTH`} ${Math.round(o.conditioning)}`,value:o.conditioning,maximum:zn,from:`#ff8a7a`,to:`#b02a20`},{label:o.guard_broken?`GUARD BROKEN`:`GUARD`,value:o.guard,maximum:700,from:`#9ec7ff`,to:`#3d6fb8`,spentBelow:o.guard_broken?h:m},{label:`POISE ${Math.round(o.poise)}`,value:o.poise,maximum:600,from:`#e8c890`,to:`#8a6a34`}],f=s===0?`#3d6fb8`:`#b02a20`,p=O-12,g=qn(o.trauma,o.injuries),_=vr(o.blood_volume,k),b=r.phase===`fight`||r.phase===`countdown`||r.phase===`finish`&&fi(r.fighters,x)?.player_id!==o.player_id,S=y&&o.player_id===a&&b,C=ee?3:2,w=Math.min(64,(D-28-C*12)/C),A=w+12,te=c?l+D+4-C*A:l+20,j=c?l+D-8:te,ne=te+(c?C-2:0)*A,re=0;if(ee){let n=w<40,r=n&&_.label===`BLEEDING OUT`;Wn(e,ne,p,w,n?{...d[2],label:r?``:`GUARD`}:d[2],c),Wn(e,ne+A,p,w,n?{...d[3],label:r?``:`POISE`}:d[3],c),Wn(e,c?te:te+2*A,p,w,n?{..._,label:r?``:`BLOOD`}:_,c),r&&Gn(e,j,p,mr,c,!1,_.alarm);let i=c?te-12:te+3*A;re=dr(e,i,p-5,c?i-t/2-4:t/2-4-i,g,o.injuries,c)}else{Wn(e,ne,p,w,d[2],c),Wn(e,ne+A,p,w,d[3],c);let t=2*w+12;Wn(e,te,p-hr,t,_,c);let n=p-hr-gr;g!==null&&(n-=18,Zn(e,j,n,g,c)),n=ur(e,j,n-4,E?D-24:t,o.injuries,E?tr.compact:tr.wide,c),S&&Xn(e,j,n-18,c)}Sr(e,l,O,D,u?.name??`Fighter`,br(u,o,E,re),d.slice(0,2),c,f,E?void 0:T(o),ee&&S),E&&!(v&&t>n)&&Kn(e,t/2+(c?1:-1)*112,83,20,T(o),u?.name??`Fighter`,f)});let A=Math.floor((p??r.phase_ticks_remaining)/c),te=`${Math.floor(A/60)}:${String(A%60).padStart(2,`0`)}`,j=r.phase===`knockdown`&&u===null&&(C?.risen===!0||r.fighters.some(e=>e.player_id===a&&e.is_downed))?Ir(t,n,v):null,ne=j!==null&&E&&j.y<112;o===null&&!ne&&Cr(e,t/2,E?54:n-84,te,`ROUND ${r.round_number}`,r.phase===`complete`?`FINAL`:r.phase.replace(`_`,` `).toUpperCase());let re=d===null?0:Math.round(d);if(re>=100&&!E&&o===null&&!(v&&u!==null)&&r.fighters.some(e=>e.player_id===a)&&(e.save(),e.textAlign=v?`left`:`right`,e.font=`700 11px ui-monospace, monospace`,e.fillStyle=re<200?`rgba(240,200,110,0.9)`:`rgba(255,110,100,0.95)`,e.fillText(`SLOW CONNECTION ${re} ms`,v?24:t-24,76),e.restore()),u!==null){let t=E?120:64;e.save(),e.fillStyle=`rgba(3,6,12,0.82)`,e.fillRect(24,t,196,34),e.fillStyle=`#ff3b3b`,e.beginPath(),e.arc(42,t+17,6,0,Math.PI*2),e.fill(),e.fillStyle=`#f6f7fb`,e.font=`800 14px Inter, system-ui, sans-serif`,e.textAlign=`left`,e.fillText(u,56,t+22),e.restore()}f!==null&&r.phase===`fight`&&(e.save(),e.textAlign=`center`,e.font=`900 46px Inter, system-ui, sans-serif`,e.lineWidth=6,e.strokeStyle=`rgba(0,0,0,0.75)`,e.strokeText(f,t/2,n*Er),e.fillStyle=`#f6d57a`,e.fillText(f,t/2,n*Er),e.restore()),r.phase===`countdown`&&Gr(e,Nr(t,n,v),`ROUND ${r.round_number}`,`Touch gloves. Protect yourself at all times.`);let ie=ti(n,E);if(r.phase===`knockdown`&&u===null){let n=r.fighters.find(e=>e.is_downed),a=n??r.fighters.find(e=>e.player_id===_),o=a===void 0?null:(i[a.player_id]?.name??`Fighter`).toUpperCase();e.save(),e.textAlign=`center`,e.font=`900 44px Inter, system-ui, sans-serif`,e.lineWidth=6,e.strokeStyle=`rgba(0,0,0,0.75)`,(j===null||j.y>=ie+6)&&(e.strokeText(`KNOCKDOWN`,t/2,ie),e.fillStyle=`#ff4d4d`,e.fillText(`KNOCKDOWN`,t/2,ie)),e.font=`700 15px Inter, system-ui, sans-serif`,e.fillStyle=`#e6ecf7`;let s=n===void 0?` BEAT THE COUNT`:` IS DOWN`,c=o===null?`STANDING EIGHT`:`${Vn(e,o,Math.min(t*.5,t-32-e.measureText(s).width))}${s}`;(j===null||j.y>=ie+30)&&e.fillText(c,t/2,ie+24),e.restore()}if(r.phase===`knockdown`&&u===null){let i=r.fighters.find(e=>e.player_id===a),o=Math.max(...r.fighters.map(e=>e.get_up_count));i?.is_downed!==!0&&C?.risen!==!0?o>=1&&(e.save(),e.textAlign=`center`,e.font=`900 36px Inter, system-ui, sans-serif`,e.lineWidth=5,e.strokeStyle=`rgba(0,0,0,0.75)`,e.strokeText(`COUNT ${o}`,t/2,ie+64),e.fillStyle=`#ffd77a`,e.fillText(`COUNT ${o}`,t/2,ie+64),e.restore()):i!==void 0&&Wr(e,j??Ir(t,n,v),C??Se(i,r.tick,0,null,null,v,!1),S)}if(r.phase===`finish`&&o===null&&u===null){let o=fi(r.fighters,x),s=di(t,n,v),c=o!==null&&o.player_id!==a&&r.fighters.some(e=>e.player_id===a);bi(e,s,o===null?null:(i[o.player_id]?.name??`Fighter`).toUpperCase(),r.phase_ticks_remaining/Xe,k,c&&!v?n*_i:null)}if(r.phase===`foul_recovery`){let a=r.fighters.find(e=>e.is_foul_recovery_target);Gr(e,Nr(t,n,v),`FOUL RECOVERY`,`${i[a?.player_id??``]?.name??`Fighter`} is recovering`)}if(r.phase===`rest`){let i=r.fighters.map((e,t)=>({corner:t===0?`Blue`:`Red`,stats:l?.get(e.player_id)??qr()})).filter(({stats:e})=>e.thrown>0||e.landed>0).map(({corner:e,stats:t})=>`${e} ${t.landed} of ${t.thrown}`).join(` · `),a=Yn(r.fighters);Gr(e,Nr(t,n,v),`CORNERS · RECOVER`,a??(i.length>0?`Landed this round: ${i}`:`Conditioning governs recovery`))}if(s>0){let r=Math.min(320,t-24),i=Dr(n);Gr(e,v?Nr(t,n,!0):{x:t/2-r/2,y:n/2-i/2,width:r,height:i},`OPPONENT RECONNECTING · ${Math.ceil(s/1e3)}s`,`The bout is paused`)}if(o!==null){let a=r.fighters.map(e=>l?.total(e.player_id)??qr());Mi(e,t,n,Ti(o,r.fighters,i,a,b),!0,[T(r.fighters[0]),T(r.fighters[1])])}e.restore()}function Si(e,t,n,r,i,a,o,s,c=`Inter, system-ui, sans-serif`){e.font=`${a} ${Hn(n=>(e.font=`${a} ${n}px ${c}`,e.measureText(t).width),i,o,s)}px ${c}`,e.fillText(Vn(e,t,i),n,r)}var Ci={ko:`KNOCKOUT`,flash_ko:`FLASH KNOCKOUT`,tko:`TECHNICAL KNOCKOUT`,disqualification:`DISQUALIFICATION`,forfeit:`FORFEIT`},wi=(e,t)=>e>t?0:t>e?1:null;function Ti(e,t,n,r,i=null){let a=t.map(e=>n[e.player_id]?.name??`Fighter`),o=e.winner_id===null?null:t[0].player_id===e.winner_id?0:t[1].player_id===e.winner_id?1:null,s=e.method===`draw`&&i!==null,c=[],l=[];if(e.method===`decision`||e.method===`draw`&&!s)for(let t of e.scorecards){let e=Bn(t.player_one),n=Bn(t.player_two);l.push({label:t.judge.toUpperCase(),values:[String(e),String(n)],lead:wi(e,n)})}let u=[t[1].knockdowns,t[0].knockdowns];(u[0]>0||u[1]>0)&&c.push({label:`KNOCKDOWNS`,values:[String(u[0]),String(u[1])],lead:wi(u[0],u[1])});let[d,f]=t.map(t=>e.punches?.[t.player_id]),p=e=>({thrown:e.thrown,landed:e.landed,jabsThrown:e.jabs_thrown,jabsLanded:e.jabs_landed}),m=d!==void 0&&f!==void 0?[p(d),p(f)]:r;if(m[0].thrown>0||m[1].thrown>0){let e=(e,t)=>t>0?`${Math.min(e,t)}/${t} (${Math.round(Math.min(e,t)/t*100)}%)`:`0/0`,t=m.map(e=>({landed:e.landed-e.jabsLanded,thrown:e.thrown-e.jabsThrown}));c.push({label:`TOTAL PUNCHES`,values:[e(m[0].landed,m[0].thrown),e(m[1].landed,m[1].thrown)],lead:wi(m[0].landed,m[1].landed)}),c.push({label:`JABS`,values:[e(m[0].jabsLanded,m[0].jabsThrown),e(m[1].jabsLanded,m[1].jabsThrown)],lead:wi(m[0].jabsLanded,m[1].jabsLanded)}),c.push({label:`POWER PUNCHES`,values:[e(t[0].landed,t[0].thrown),e(t[1].landed,t[1].thrown)],lead:wi(t[0].landed,t[1].landed)})}let[h,g]=t.map(t=>e.ratings[t.player_id]);if(t.some(e=>n[e.player_id]?.cpu===!0))c.push({label:`RATING`,values:[`Unrated`,`Unrated`],lead:null});else if(h!==void 0&&g!==void 0){let e=e=>`${e.after} (${e.after>=e.before?`+`:`−`}${Math.abs(e.after-e.before)})`;c.push({label:`RATING`,values:[e(h),e(g)],lead:null,news:[h.after>=h.before,g.after>=g.before]})}return{headline:e.method===`death`?i!==null&&ot(i)!==null?`FATALITY`:`DEATH`:s?`DOUBLE DEATH`:Ci[e.method]??Xr(e),detail:i!==null&&(e.method===`death`||s)?`${st(i)} · ROUND ${e.round}`:`ROUND ${e.round}`,verdict:s?`NO SURVIVORS`:o===null?e.winner_id===null?`DRAW`:`${(n[e.winner_id]?.name??`Winner`).toUpperCase()} WINS`:`${a[o].toUpperCase()} WINS`,deadly:e.method===`death`||s,winnerSeat:o,names:a,judges:l,rows:c}}var Ei=[`#4f86d9`,`#d9483c`],Di=14;function Oi(e,t,n,r){let i=yr(e,t),a=ji(e/i,t/i,n,r);return i===1?a:{...a,x:a.x*i,y:a.y*i,width:a.width*i,height:a.height*i,rowHeight:a.rowHeight*i,verdictHeight:a.verdictHeight*i,judgesHeight:a.judgesHeight*i}}var ki=new Set([`KNOCKDOWNS`,`TOTAL PUNCHES`,`RATING`]),Ai=(e,t)=>t?e.rows.filter(e=>ki.has(e.label)):e.rows;function ji(e,t,n,r){let i=t<480,a=e>=900||e>=640&&i,o=Math.min(e-24,a?980:720),s=r?62:Di,c=i?72:112,l=n.judges.length===0?0:i?36:52,u=c+l,d=Ai(n,i).length+1,f=t-(e<640?118:70)-14-Di-s-(a?0:u),p=Math.max(16,Math.min(i?20:28,f/d)),m=Di+(a?Math.max(u,d*p):u+d*p)+s;return{x:(e-o)/2,y:t-14-m,width:o,height:m,wide:a,dense:i,rowHeight:p,verdictHeight:c,judgesHeight:l}}function Mi(e,t,n,r,i,a){let o=ji(t,n,r,i),{x:s,y:c}=o;e.fillStyle=`rgba(3,6,12,0.9)`,e.fillRect(s,c,o.width,o.height),e.strokeStyle=r.deadly?`rgba(224,36,26,0.8)`:`rgba(246,213,122,0.55)`,e.lineWidth=2,e.strokeRect(s+1,c+1,o.width-2,o.height-2),e.textAlign=`center`;let l=(o.wide?o.width*.42:o.width)-32,u=o.wide?s+o.width*.21+4:t/2,d=c+Di,f=o.verdictHeight/112;e.fillStyle=r.deadly?`#ff3a2c`:`#f6d57a`,Si(e,r.headline,u,d+34*f,l,800,(o.wide||t>=640?32:28)*f,14),e.fillStyle=`#aebbd0`,Si(e,r.detail,u,d+56*f,l,700,13*f,9),e.fillStyle=r.winnerSeat===null?`#f6f7fb`:Ei[r.winnerSeat],Si(e,r.verdict,u,d+92*f,l,800,25*f,12);let p=l/Math.max(1,r.judges.length),m=d+o.verdictHeight;r.judges.forEach((t,n)=>{let r=u-l/2+p*(n+.5);e.fillStyle=`rgba(255,255,255,0.06)`,e.fillRect(r-p/2+3,m,p-6,o.judgesHeight-8),e.fillStyle=`#8fa3c8`,Si(e,t.label,r,m+o.judgesHeight*.3,p-14,700,10,7),e.fillStyle=`#f6f7fb`,Si(e,`${t.values[0]} – ${t.values[1]}`,r,m+o.judgesHeight*.7,p-14,800,o.dense?14:17,10)});let h=o.wide?s+o.width*.42:s+12,g=s+o.width-12-h,_=o.wide?d:m+o.judgesHeight,v=g*.36,y=(g-v)/2,b=[h+y/2,h+g-y/2],x=o.rowHeight,S=Math.min(16,x*.6),C=_+x*.7;e.fillStyle=`rgba(255,255,255,0.06)`,e.fillRect(h,_,g,x);let w=Math.max(6,x/2-2);for(let t of[0,1]){let n=t===0?-1:1;e.fillStyle=Ei[t],e.fillRect(t===0?h:h+g-4,_,4,x),Kn(e,b[t]+n*(y/2-10-w),_+x/2,w,a[t],r.names[t],Ei[t]),e.textAlign=`center`,e.fillStyle=`#f6f7fb`,Si(e,r.names[t],b[t]-n*(w+3+v/4),C,y+v/2-22-w*2,800,S,9)}for(let t of Ai(r,o.dense)){C+=x,e.fillStyle=`#8fa3c8`,Si(e,t.label,h+g/2,C,v,700,Math.min(12,S),8);for(let n of[0,1])e.fillStyle=t.news===void 0?t.lead===n?`#f6f7fb`:`#aebbd0`:t.news[n]?`#55df9b`:`#ff7b74`,Si(e,t.values[n],b[n],C,y-16,t.lead===n?800:600,S,9)}}var Ni=6,Pi=150;function Fi(){return typeof window<`u`&&typeof window.speechSynthesis==`object`&&window.speechSynthesis!==null&&typeof window.SpeechSynthesisUtterance==`function`}function Ii(e){let t=e.filter(e=>e.localService&&e.lang.toLowerCase().startsWith(`en`));return t.find(e=>e.default)??t[0]??null}var Li=class{settings;synthesis;Utterance;queue=[];speaking=null;destroyed=!1;grave=!1;voice=null;voicesListed=!1;onVoicesChanged=null;cutoff=null;pendingShout=null;cutOff=null;shoutTimer=null;voicesChanged=()=>{this.listVoices(),this.voice===null&&this.cancel(),this.onVoicesChanged?.()};visibility=()=>{document.hidden&&this.cancel()};constructor(e,t=Fi()?window.speechSynthesis:null,n=Fi()?window.SpeechSynthesisUtterance:null){this.settings=e,this.synthesis=t,this.Utterance=n,this.listVoices(),t?.addEventListener?.(`voiceschanged`,this.voicesChanged),document.addEventListener(`visibilitychange`,this.visibility)}get supported(){return this.synthesis!==null&&this.Utterance!==null}get hasVoice(){return this.supported&&(this.voice!==null||!this.voicesListed)}speak(e){if(!this.supported||this.destroyed||document.hidden)return;let t=this.settings();!t.announcer||t.volume<=0||(this.voice===null&&this.listVoices(),this.voice!==null&&(this.queue.push(...e),this.queue.length>Ni&&this.queue.splice(0,this.queue.length-Ni),this.speaking===null&&this.pendingShout===null&&this.next()))}shout(e){let t=this.speaking??this.cutOff;if(this.cancel(),t===null){this.grave=!0,this.speak([e]),this.grave=!1;return}let n=()=>{this.pendingShout===n&&(this.clearShout(),t.onend=null,t.onerror=null,this.queue.unshift(e),this.grave=!0,this.next(),this.grave=!1)};this.pendingShout=n,this.cutOff=t,t.onend=n,t.onerror=n,this.shoutTimer=window.setTimeout(n,Pi)}settingsChanged(){let e=this.settings();(!e.announcer||e.volume<=0)&&this.cancel()}finishLine(e){this.queue.length=0,this.clearCutoff();let t=this.speaking;t!==null&&(this.cutoff=window.setTimeout(()=>{this.cutoff=null,this.speaking===t&&this.cancel()},e))}cancel(){this.queue.length=0,this.clearCutoff(),this.clearShout();let e=this.speaking;this.speaking=null,e!==null&&(e.onend=null,e.onerror=null,this.synthesis?.cancel())}destroy(){this.destroyed=!0,this.synthesis?.removeEventListener?.(`voiceschanged`,this.voicesChanged),document.removeEventListener(`visibilitychange`,this.visibility),this.onVoicesChanged=null,this.cancel()}clearCutoff(){this.cutoff!==null&&window.clearTimeout(this.cutoff),this.cutoff=null}clearShout(){this.shoutTimer!==null&&window.clearTimeout(this.shoutTimer),this.shoutTimer=null,this.pendingShout=null,this.cutOff=null}listVoices(){let e=this.synthesis?.getVoices()??[];e.length>0&&(this.voicesListed=!0),this.voice=Ii(e)}next(){let e=this.synthesis,t=this.Utterance,n=this.voice,r=this.queue.shift();if(e===null||t===null||r===void 0)return;let i=this.settings();if(!i.announcer||i.volume<=0||n===null||document.hidden){this.queue.length=0;return}let a=new t(r);a.volume=Math.min(1,i.volume),a.rate=this.grave?.8:.96,a.pitch=this.grave?.3:.82,a.voice=n,a.lang=n.lang;let o=()=>{this.speaking===a&&(this.speaking=null,this.clearCutoff(),this.next())};a.onend=o,a.onerror=o,this.speaking=a,e.speak(a)}},Ri=[{name:`decapitation`,sampleRate:12e3,frames:7920,wav:`UklGRgQ+AABXQVZFZm10IBAAAAABAAEA4C4AAMBdAAACABAAZGF0YeA9AAAGAGAAd/9r/1b/Dv+d/kH+Of69/vL/gAGaAhUD9wKOAmICHwPSBLYGQ/pC+4r72/rQ+Sr5sPle+7X+MQM2BmQHHwfgBSEFpAU+CKkLYA649Q331faL9fnzlfMw9ST5+/5iBV4JDAtaCuYIVgdWB0kKSw/iE2HuFvGL8lnxVO/g7TXt4+6L8wT7agMsCvAN0g4gDb0K4QjzCOEMBhO+GHQdcuis667sVOsZ6dTmDeaH54Hr4fE9+0wECgylELYRuBDhDU0LfAnWCb8OABXvG6QiDyiLKwjk3uUl5fziMuAc3v/cvtx23kbj2Op98xH8EQYQD/ETiBVzFgkUHxCYDc0MWAtYC4sPrhWTHE4kpitIMV41DDlm11XZV9pG2ZPXOtVN0yrRjc/wzkXPstA51HDae+DX6I/xjfq1BBYNYRMgGAYaSRwnHU8dkxoAFz0USRJLECwP5A0ZDyUSzha7HdclaS2nNJw6o0JgRw9LVE6kUMZROMnOyWDLQMlWxRzEScGKv0u+eLx5uq+5xbnxuii8ub7nwOLDMMrT0IXWnt1r54DwWPp2A/YLiRBdF9wbex6gIAkibyGNH3IdGBpMFdESOA45C08JEQoUC1gMIBImGl0fFiogM7A6FEMZS1ZThlfAXGhgxGHyY1S6Cbszuki4dLensvmwaq+crAesQqy5rfiv1bR/un/B2swO2f3mdfQbAw8OrRS+HC0duyDeHmwZUhXJDocJfAmGC0ATOBemJCoytT+YTKJX0V1qYl9lbWeztN+z4K8JrOeo/ahZq6SvurVXwVLQGOOf94YKuBgvHU4f5B3rFjkS1gyMCgcQKhoGKkw9PEzkWhhiZ2aZZ2St4ai1pG6h6qIKphixgsTW3e/4/guGGmweeRq0FCwHEwP2BwwZy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vVl9vP5IP/5AkYEOgSDBFQGKwcMB78GqwSVAJD7Gvid9r72dPnM/VsBcgPiA/QD9wT/BjAHMwenBqMEtQAB/Pr4ofdk93/5z/zh/8ABHwIvArMCeQSbBokGSgacBccDUACG/N35kPgj+DP5/fvQ/t4AwgHlAQQCtwJcBEAGNAYeBnkFEARqATv+c/v6+Vr5KPld+oH8s/5KALQA+wDsAI0BtgKjBL0FtwVsBdAEbQMzAX3+Xfz++mf6N/qj+jb8Cf6A/zQAZABdAHsAGwFVAs4DCgUEBdwEbQSMAwwC7f/q/ZD8vvtp+077vPsb/Xf+e/8IABsAAQAFAHUAOgFWApcDPQQzBPcDhgOUAjYBiv8S/gT9mvxP/Ej8TfxW/VP+Hv+a/9L/wv/V/w0AoQBbAWcCQgNxA1gDIgOlAt0BwgCE/3r+yf13/Vf9Uf19/SP+1/5m/7j/3f/l/wQAPwC+AHABEwKEAnICQwL7AXkBygDr/y//qf5t/l7+Xv5n/sf+Mf92/5//qP+j/77/AABnAOAAQAF7AWMBQgEJAacAMwDB/3j/WP9R/1j/Xf+J/8H/3f/g/+H/6f/8/x4ARQBjAG4AYwBSADoAIAAMAAQABwA=`}],zi=`attached`,Bi=1e3,Vi=1001,Hi=1002,Ui=1003,Wi=1004,Gi=1005,Ki=1006,qi=1007,Ji=1008,Yi=1009,Xi=1010,Zi=1011,Qi=1012,$i=1013,ea=1014,ta=1015,na=1016,ra=1017,ia=1018,aa=1020,oa=35902,sa=35899,ca=1021,la=1022,ua=1023,da=1026,fa=1027,pa=1028,ma=1029,ha=1030,ga=1031,_a=1033,va=33776,ya=33777,ba=33778,xa=33779,Sa=35840,Ca=35841,wa=35842,Ta=35843,Ea=36196,Da=37492,Oa=37496,ka=37488,Aa=37489,ja=37490,Ma=37491,Na=37808,Pa=37809,Fa=37810,Ia=37811,La=37812,Ra=37813,za=37814,Ba=37815,Va=37816,Ha=37817,Ua=37818,Wa=37819,Ga=37820,Ka=37821,qa=36492,Ja=36494,Ya=36495,Xa=36283,Za=36284,Qa=36285,$a=36286,eo=2300,to=2301,no=2302,ro=2303,io=2400,ao=2401,oo=2402,so=2500,co=3200,lo=`srgb`,uo=`srgb-linear`,fo=`linear`,po=`srgb`,mo=7680,ho=35044,go=35048,_o=2e3;function vo(e){for(let t=e.length-1;t>=0;--t)if(e[t]>=65535)return!0;return!1}function yo(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function bo(e){return document.createElementNS(`http://www.w3.org/1999/xhtml`,e)}function xo(){let e=bo(`canvas`);return e.style.display=`block`,e}var So={};function Co(...e){let t=`THREE.`+e.shift();console.log(t,...e)}function wo(e){let t=e[0];if(typeof t==`string`&&t.startsWith(`TSL:`)){let t=e[1];t&&t.isStackTrace?e[0]+=` `+t.getLocation():e[1]=`Stack trace not available. Enable "THREE.Node.captureStackTrace" to capture stack traces.`}return e}function To(...e){e=wo(e);let t=`THREE.`+e.shift();{let n=e[0];n&&n.isStackTrace?console.warn(n.getError(t)):console.warn(t,...e)}}function Eo(...e){e=wo(e);let t=`THREE.`+e.shift();{let n=e[0];n&&n.isStackTrace?console.error(n.getError(t)):console.error(t,...e)}}function Do(...e){let t=e.join(` `);t in So||(So[t]=!0,To(...e))}function Oo(e,t,n){return new Promise(function(r,i){function a(){switch(e.clientWaitSync(t,e.SYNC_FLUSH_COMMANDS_BIT,0)){case e.WAIT_FAILED:i();break;case e.TIMEOUT_EXPIRED:setTimeout(a,n);break;default:r()}}setTimeout(a,n)})}var ko={0:1,2:6,4:7,3:5,1:0,6:2,7:4,5:3},Ao=class{addEventListener(e,t){this._listeners===void 0&&(this._listeners={});let n=this._listeners;n[e]===void 0&&(n[e]=[]),n[e].indexOf(t)===-1&&n[e].push(t)}hasEventListener(e,t){let n=this._listeners;return n!==void 0&&n[e]!==void 0&&n[e].indexOf(t)!==-1}removeEventListener(e,t){let n=this._listeners;if(n===void 0)return;let r=n[e];if(r!==void 0){let e=r.indexOf(t);e!==-1&&r.splice(e,1)}}dispatchEvent(e){let t=this._listeners;if(t===void 0)return;let n=t[e.type];if(n!==void 0){e.target=this;let t=n.slice(0);for(let n=0,r=t.length;n>8&255]+jo[e>>16&255]+jo[e>>24&255]+`-`+jo[t&255]+jo[t>>8&255]+`-`+jo[t>>16&15|64]+jo[t>>24&255]+`-`+jo[n&63|128]+jo[n>>8&255]+`-`+jo[n>>16&255]+jo[n>>24&255]+jo[r&255]+jo[r>>8&255]+jo[r>>16&255]+jo[r>>24&255]).toLowerCase()}function Io(e,t,n){return Math.max(t,Math.min(n,e))}function Lo(e,t){return(e%t+t)%t}function Ro(e,t,n,r,i){return r+(e-t)*(i-r)/(n-t)}function zo(e,t,n){return e===t?0:(n-e)/(t-e)}function Bo(e,t,n){return(1-n)*e+n*t}function Vo(e,t,n,r){return Bo(e,t,1-Math.exp(-n*r))}function Ho(e,t=1){return t-Math.abs(Lo(e,t*2)-t)}function Uo(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t),e*e*(3-2*e))}function Wo(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t),e*e*e*(e*(e*6-15)+10))}function Go(e,t){return e+Math.floor(Math.random()*(t-e+1))}function Ko(e,t){return e+Math.random()*(t-e)}function qo(e){return e*(.5-Math.random())}function Jo(e){e!==void 0&&(Mo=e);let t=Mo+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}function Yo(e){return e*No}function Xo(e){return e*Po}function Zo(e){return e>0&&Number.isInteger(e)&&2**Math.round(Math.log2(e))===e}function Qo(e){return 2**Math.ceil(Math.log(e)/Math.LN2)}function $o(e){return 2**Math.floor(Math.log(e)/Math.LN2)}function es(e,t,n,r,i){let a=Math.cos,o=Math.sin,s=a(n/2),c=o(n/2),l=a((t+r)/2),u=o((t+r)/2),d=a((t-r)/2),f=o((t-r)/2),p=a((r-t)/2),m=o((r-t)/2);switch(i){case`XYX`:e.set(s*u,c*d,c*f,s*l);break;case`YZY`:e.set(c*f,s*u,c*d,s*l);break;case`ZXZ`:e.set(c*d,c*f,s*u,s*l);break;case`XZX`:e.set(s*u,c*m,c*p,s*l);break;case`YXY`:e.set(c*p,s*u,c*m,s*l);break;case`ZYZ`:e.set(c*m,c*p,s*u,s*l);break;default:To(`MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: `+i)}}function ts(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return e/4294967295;case Uint16Array:return e/65535;case Uint8Array:case Uint8ClampedArray:return e/255;case Int32Array:return Math.max(e/2147483647,-1);case Int16Array:return Math.max(e/32767,-1);case Int8Array:return Math.max(e/127,-1);default:throw Error(`THREE.MathUtils: Invalid component type.`)}}function ns(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return Math.round(e*4294967295);case Uint16Array:return Math.round(e*65535);case Uint8Array:case Uint8ClampedArray:return Math.round(e*255);case Int32Array:return Math.round(e*2147483647);case Int16Array:return Math.round(e*32767);case Int8Array:return Math.round(e*127);default:throw Error(`THREE.MathUtils: Invalid component type.`)}}var R={DEG2RAD:No,RAD2DEG:Po,generateUUID:Fo,clamp:Io,euclideanModulo:Lo,mapLinear:Ro,inverseLerp:zo,lerp:Bo,damp:Vo,pingpong:Ho,smoothstep:Uo,smootherstep:Wo,randInt:Go,randFloat:Ko,randFloatSpread:qo,seededRandom:Jo,degToRad:Yo,radToDeg:Xo,isPowerOfTwo:Zo,ceilPowerOfTwo:Qo,floorPowerOfTwo:$o,setQuaternionFromProperEuler:es,normalize:ns,denormalize:ts},z=class e{static{e.prototype.isVector2=!0}constructor(e=0,t=0){this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw Error(`THREE.Vector2: index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw Error(`THREE.Vector2: index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){let t=this.x,n=this.y,r=e.elements;return this.x=r[0]*t+r[3]*n+r[6],this.y=r[1]*t+r[4]*n+r[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=Io(this.x,e.x,t.x),this.y=Io(this.y,e.y,t.y),this}clampScalar(e,t){return this.x=Io(this.x,e,t),this.y=Io(this.y,e,t),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(Io(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){let t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;let n=this.dot(e)/t;return Math.acos(Io(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){let t=this.x-e.x,n=this.y-e.y;return t*t+n*n}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){let n=Math.cos(t),r=Math.sin(t),i=this.x-e.x,a=this.y-e.y;return this.x=i*n-a*r+e.x,this.y=i*r+a*n+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}},rs=class{constructor(e=0,t=0,n=0,r=1){this.isQuaternion=!0,this._x=e,this._y=t,this._z=n,this._w=r}static slerpFlat(e,t,n,r,i,a,o){let s=n[r+0],c=n[r+1],l=n[r+2],u=n[r+3],d=i[a+0],f=i[a+1],p=i[a+2],m=i[a+3];if(u!==m||s!==d||c!==f||l!==p){let e=s*d+c*f+l*p+u*m;e<0&&(d=-d,f=-f,p=-p,m=-m,e=-e);let t=1-o;if(e<.9995){let n=Math.acos(e),r=Math.sin(n);t=Math.sin(t*n)/r,o=Math.sin(o*n)/r,s=s*t+d*o,c=c*t+f*o,l=l*t+p*o,u=u*t+m*o}else{s=s*t+d*o,c=c*t+f*o,l=l*t+p*o,u=u*t+m*o;let e=1/Math.sqrt(s*s+c*c+l*l+u*u);s*=e,c*=e,l*=e,u*=e}}e[t]=s,e[t+1]=c,e[t+2]=l,e[t+3]=u}static multiplyQuaternionsFlat(e,t,n,r,i,a){let o=n[r],s=n[r+1],c=n[r+2],l=n[r+3],u=i[a],d=i[a+1],f=i[a+2],p=i[a+3];return e[t]=o*p+l*u+s*f-c*d,e[t+1]=s*p+l*d+c*u-o*f,e[t+2]=c*p+l*f+o*d-s*u,e[t+3]=l*p-o*u-s*d-c*f,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,n,r){return this._x=e,this._y=t,this._z=n,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t=!0){let n=e._x,r=e._y,i=e._z,a=e._order,o=Math.cos,s=Math.sin,c=o(n/2),l=o(r/2),u=o(i/2),d=s(n/2),f=s(r/2),p=s(i/2);switch(a){case`XYZ`:this._x=d*l*u+c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u-d*f*p;break;case`YXZ`:this._x=d*l*u+c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u+d*f*p;break;case`ZXY`:this._x=d*l*u-c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u-d*f*p;break;case`ZYX`:this._x=d*l*u-c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u+d*f*p;break;case`YZX`:this._x=d*l*u+c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u-d*f*p;break;case`XZY`:this._x=d*l*u-c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u+d*f*p;break;default:To(`Quaternion: .setFromEuler() encountered an unknown order: `+a)}return t===!0&&this._onChangeCallback(),this}setFromAxisAngle(e,t){let n=t/2,r=Math.sin(n);return this._x=e.x*r,this._y=e.y*r,this._z=e.z*r,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(e){let t=e.elements,n=t[0],r=t[4],i=t[8],a=t[1],o=t[5],s=t[9],c=t[2],l=t[6],u=t[10],d=n+o+u;if(d>0){let e=.5/Math.sqrt(d+1);this._w=.25/e,this._x=(l-s)*e,this._y=(i-c)*e,this._z=(a-r)*e}else if(n>o&&n>u){let e=2*Math.sqrt(1+n-o-u);this._w=(l-s)/e,this._x=.25*e,this._y=(r+a)/e,this._z=(i+c)/e}else if(o>u){let e=2*Math.sqrt(1+o-n-u);this._w=(i-c)/e,this._x=(r+a)/e,this._y=.25*e,this._z=(s+l)/e}else{let e=2*Math.sqrt(1+u-n-o);this._w=(a-r)/e,this._x=(i+c)/e,this._y=(s+l)/e,this._z=.25*e}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let n=e.dot(t)+1;return n<1e-8?(n=0,Math.abs(e.x)>Math.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=n):(this._x=0,this._y=-e.z,this._z=e.y,this._w=n)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=n),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(Io(this.dot(e),-1,1)))}rotateTowards(e,t){let n=this.angleTo(e);if(n===0)return this;let r=Math.min(1,t/n);return this.slerp(e,r),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x*=e,this._y*=e,this._z*=e,this._w*=e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){let n=e._x,r=e._y,i=e._z,a=e._w,o=t._x,s=t._y,c=t._z,l=t._w;return this._x=n*l+a*o+r*c-i*s,this._y=r*l+a*s+i*o-n*c,this._z=i*l+a*c+n*s-r*o,this._w=a*l-n*o-r*s-i*c,this._onChangeCallback(),this}slerp(e,t){let n=e._x,r=e._y,i=e._z,a=e._w,o=this.dot(e);o<0&&(n=-n,r=-r,i=-i,a=-a,o=-o);let s=1-t;if(o<.9995){let e=Math.acos(o),c=Math.sin(e);s=Math.sin(s*e)/c,t=Math.sin(t*e)/c,this._x=this._x*s+n*t,this._y=this._y*s+r*t,this._z=this._z*s+i*t,this._w=this._w*s+a*t,this._onChangeCallback()}else this._x=this._x*s+n*t,this._y=this._y*s+r*t,this._z=this._z*s+i*t,this._w=this._w*s+a*t,this.normalize();return this}slerpQuaternions(e,t,n){return this.copy(e).slerp(t,n)}random(){let e=2*Math.PI*Math.random(),t=2*Math.PI*Math.random(),n=Math.random(),r=Math.sqrt(1-n),i=Math.sqrt(n);return this.set(r*Math.sin(e),r*Math.cos(e),i*Math.sin(t),i*Math.cos(t))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}},B=class e{static{e.prototype.isVector3=!0}constructor(e=0,t=0,n=0){this.x=e,this.y=t,this.z=n}set(e,t,n){return n===void 0&&(n=this.z),this.x=e,this.y=t,this.z=n,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw Error(`THREE.Vector3: index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw Error(`THREE.Vector3: index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(as.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(as.setFromAxisAngle(e,t))}applyMatrix3(e){let t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[3]*n+i[6]*r,this.y=i[1]*t+i[4]*n+i[7]*r,this.z=i[2]*t+i[5]*n+i[8]*r,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){let t=this.x,n=this.y,r=this.z,i=e.elements,a=1/(i[3]*t+i[7]*n+i[11]*r+i[15]);return this.x=(i[0]*t+i[4]*n+i[8]*r+i[12])*a,this.y=(i[1]*t+i[5]*n+i[9]*r+i[13])*a,this.z=(i[2]*t+i[6]*n+i[10]*r+i[14])*a,this}applyQuaternion(e){let t=this.x,n=this.y,r=this.z,i=e.x,a=e.y,o=e.z,s=e.w,c=2*(a*r-o*n),l=2*(o*t-i*r),u=2*(i*n-a*t);return this.x=t+s*c+a*u-o*l,this.y=n+s*l+o*c-i*u,this.z=r+s*u+i*l-a*c,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){let t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[4]*n+i[8]*r,this.y=i[1]*t+i[5]*n+i[9]*r,this.z=i[2]*t+i[6]*n+i[10]*r,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=Io(this.x,e.x,t.x),this.y=Io(this.y,e.y,t.y),this.z=Io(this.z,e.z,t.z),this}clampScalar(e,t){return this.x=Io(this.x,e,t),this.y=Io(this.y,e,t),this.z=Io(this.z,e,t),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(Io(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){let n=e.x,r=e.y,i=e.z,a=t.x,o=t.y,s=t.z;return this.x=r*s-i*o,this.y=i*a-n*s,this.z=n*o-r*a,this}projectOnVector(e){let t=e.lengthSq();if(t===0)return this.set(0,0,0);let n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}projectOnPlane(e){return is.copy(this).projectOnVector(e),this.sub(is)}reflect(e){return this.sub(is.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){let t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;let n=this.dot(e)/t;return Math.acos(Io(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){let t=this.x-e.x,n=this.y-e.y,r=this.z-e.z;return t*t+n*n+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,n){let r=Math.sin(t)*e;return this.x=r*Math.sin(n),this.y=Math.cos(t)*e,this.z=r*Math.cos(n),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){let t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){let t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),r=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=r,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,t*4)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,t*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){let e=Math.random()*Math.PI*2,t=Math.random()*2-1,n=Math.sqrt(1-t*t);return this.x=n*Math.cos(e),this.y=t,this.z=n*Math.sin(e),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}},is=new B,as=new rs,os=class e{static{e.prototype.isMatrix3=!0}constructor(e,t,n,r,i,a,o,s,c){this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,t,n,r,i,a,o,s,c)}set(e,t,n,r,i,a,o,s,c){let l=this.elements;return l[0]=e,l[1]=r,l[2]=o,l[3]=t,l[4]=i,l[5]=s,l[6]=n,l[7]=a,l[8]=c,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){let t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this}extractBasis(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(e){let t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){let n=e.elements,r=t.elements,i=this.elements,a=n[0],o=n[3],s=n[6],c=n[1],l=n[4],u=n[7],d=n[2],f=n[5],p=n[8],m=r[0],h=r[3],g=r[6],_=r[1],v=r[4],y=r[7],b=r[2],x=r[5],S=r[8];return i[0]=a*m+o*_+s*b,i[3]=a*h+o*v+s*x,i[6]=a*g+o*y+s*S,i[1]=c*m+l*_+u*b,i[4]=c*h+l*v+u*x,i[7]=c*g+l*y+u*S,i[2]=d*m+f*_+p*b,i[5]=d*h+f*v+p*x,i[8]=d*g+f*y+p*S,this}multiplyScalar(e){let t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){let e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8];return t*a*l-t*o*c-n*i*l+n*o*s+r*i*c-r*a*s}invert(){let e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8],u=l*a-o*c,d=o*s-l*i,f=c*i-a*s,p=t*u+n*d+r*f;if(p===0)return this.set(0,0,0,0,0,0,0,0,0);let m=1/p;return e[0]=u*m,e[1]=(r*c-l*n)*m,e[2]=(o*n-r*a)*m,e[3]=d*m,e[4]=(l*t-r*s)*m,e[5]=(r*i-o*t)*m,e[6]=f*m,e[7]=(n*s-c*t)*m,e[8]=(a*t-n*i)*m,this}transpose(){let e,t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){let t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,n,r,i,a,o){let s=Math.cos(i),c=Math.sin(i);return this.set(n*s,n*c,-n*(s*a+c*o)+a+e,-r*c,r*s,-r*(-c*a+s*o)+o+t,0,0,1),this}scale(e,t){return Do(`Matrix3: .scale() is deprecated. Use .makeScale() instead.`),this.premultiply(ss.makeScale(e,t)),this}rotate(e){return Do(`Matrix3: .rotate() is deprecated. Use .makeRotation() instead.`),this.premultiply(ss.makeRotation(-e)),this}translate(e,t){return Do(`Matrix3: .translate() is deprecated. Use .makeTranslation() instead.`),this.premultiply(ss.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){let t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,n,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){let t=this.elements,n=e.elements;for(let e=0;e<9;e++)if(t[e]!==n[e])return!1;return!0}fromArray(e,t=0){for(let n=0;n<9;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){let n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}clone(){return new this.constructor().fromArray(this.elements)}},ss=new os,cs=new os().set(.4123908,.3575843,.1804808,.212639,.7151687,.0721923,.0193308,.1191948,.9505322),ls=new os().set(3.2409699,-1.5373832,-.4986108,-.9692436,1.8759675,.0415551,.0556301,-.203977,1.0569715);function us(){let e={enabled:!0,workingColorSpace:uo,spaces:{},convert:function(e,t,n){return this.enabled===!1||t===n||!t||!n||(this.spaces[t].transfer===`srgb`&&(e.r=fs(e.r),e.g=fs(e.g),e.b=fs(e.b)),this.spaces[t].primaries!==this.spaces[n].primaries&&(e.applyMatrix3(this.spaces[t].toXYZ),e.applyMatrix3(this.spaces[n].fromXYZ)),this.spaces[n].transfer===`srgb`&&(e.r=ps(e.r),e.g=ps(e.g),e.b=ps(e.b))),e},workingToColorSpace:function(e,t){return this.convert(e,this.workingColorSpace,t)},colorSpaceToWorking:function(e,t){return this.convert(e,t,this.workingColorSpace)},getPrimaries:function(e){return this.spaces[e].primaries},getTransfer:function(e){return e===``?fo:this.spaces[e].transfer},getToneMappingMode:function(e){return this.spaces[e].outputColorSpaceConfig.toneMappingMode||`standard`},getLuminanceCoefficients:function(e,t=this.workingColorSpace){return e.fromArray(this.spaces[t].luminanceCoefficients)},define:function(e){Object.assign(this.spaces,e)},_getMatrix:function(e,t,n){return e.copy(this.spaces[t].toXYZ).multiply(this.spaces[n].fromXYZ)},_getDrawingBufferColorSpace:function(e){return this.spaces[e].outputColorSpaceConfig.drawingBufferColorSpace},_getUnpackColorSpace:function(e=this.workingColorSpace){return this.spaces[e].workingColorSpaceConfig.unpackColorSpace},fromWorkingColorSpace:function(t,n){return Do(`ColorManagement: .fromWorkingColorSpace() has been renamed to .workingToColorSpace().`),e.workingToColorSpace(t,n)},toWorkingColorSpace:function(t,n){return Do(`ColorManagement: .toWorkingColorSpace() has been renamed to .colorSpaceToWorking().`),e.colorSpaceToWorking(t,n)}},t=[.64,.33,.3,.6,.15,.06],n=[.2126,.7152,.0722],r=[.3127,.329];return e.define({[uo]:{primaries:t,whitePoint:r,transfer:fo,toXYZ:cs,fromXYZ:ls,luminanceCoefficients:n,workingColorSpaceConfig:{unpackColorSpace:lo},outputColorSpaceConfig:{drawingBufferColorSpace:lo}},[lo]:{primaries:t,whitePoint:r,transfer:po,toXYZ:cs,fromXYZ:ls,luminanceCoefficients:n,outputColorSpaceConfig:{drawingBufferColorSpace:lo}}}),e}var ds=us();function fs(e){return e<.04045?e*.0773993808:(e*.9478672986+.0521327014)**2.4}function ps(e){return e<.0031308?e*12.92:1.055*e**.41666-.055}var ms,hs=class{static getDataURL(e,t=`image/png`){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>`u`)return e.src;let n;if(e instanceof HTMLCanvasElement)n=e;else{ms===void 0&&(ms=bo(`canvas`)),ms.width=e.width,ms.height=e.height;let t=ms.getContext(`2d`);e instanceof ImageData?t.putImageData(e,0,0):t.drawImage(e,0,0,e.width,e.height),n=ms}return n.toDataURL(t)}static sRGBToLinear(e){if(typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement||typeof ImageBitmap<`u`&&e instanceof ImageBitmap){let t=bo(`canvas`);t.width=e.width,t.height=e.height;let n=t.getContext(`2d`);n.drawImage(e,0,0,e.width,e.height);let r=n.getImageData(0,0,e.width,e.height),i=r.data;for(let e=0;e1),this.pmremVersion=0,this.normalized=!1}get width(){return this.source.getSize(bs).x}get height(){return this.source.getSize(bs).y}get depth(){return this.source.getSize(bs).z}get image(){return this.source.data}set image(e){this.source.data=e}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}clone(){return new this.constructor().copy(this)}copy(e){return this.name=e.name,this.source=e.source,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.channel=e.channel,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.internalFormat=e.internalFormat,this.type=e.type,this.normalized=e.normalized,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.colorSpace=e.colorSpace,this.renderTarget=e.renderTarget,this.isRenderTargetTexture=e.isRenderTargetTexture,this.isArrayTexture=e.isArrayTexture,this.userData=JSON.parse(JSON.stringify(e.userData)),this.needsUpdate=!0,this}setValues(e){for(let t in e){let n=e[t];if(n===void 0){To(`Texture.setValues(): parameter '${t}' has value of undefined.`);continue}let r=this[t];r===void 0?To(`Texture.setValues(): property '${t}' does not exist.`):r&&n&&r.isVector2&&n.isVector2||r&&n&&r.isVector3&&n.isVector3||r&&n&&r.isMatrix3&&n.isMatrix3?r.copy(n):this[t]=n}}toJSON(e){let t=e===void 0||typeof e==`string`;if(!t&&e.textures[this.uuid]!==void 0)return e.textures[this.uuid];let n={metadata:{version:4.7,type:`Texture`,generator:`Texture.toJSON`},uuid:this.uuid,name:this.name,image:this.source.toJSON(e).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,normalized:this.normalized,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(n.userData=this.userData),t||(e.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:`dispose`})}transformUv(e){if(this.mapping!==300)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case Bi:e.x-=Math.floor(e.x);break;case Vi:e.x=e.x<0?0:1;break;case Hi:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x-=Math.floor(e.x)}if(e.y<0||e.y>1)switch(this.wrapT){case Bi:e.y-=Math.floor(e.y);break;case Vi:e.y=e.y<0?0:1;break;case Hi:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y-=Math.floor(e.y)}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(e){e===!0&&this.pmremVersion++}};xs.DEFAULT_IMAGE=null,xs.DEFAULT_MAPPING=300,xs.DEFAULT_ANISOTROPY=1;var Ss=class e{static{e.prototype.isVector4=!0}constructor(e=0,t=0,n=0,r=1){this.x=e,this.y=t,this.z=n,this.w=r}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,n,r){return this.x=e,this.y=t,this.z=n,this.w=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw Error(`THREE.Vector4: index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw Error(`THREE.Vector4: index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w===void 0?1:e.w,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){let t=this.x,n=this.y,r=this.z,i=this.w,a=e.elements;return this.x=a[0]*t+a[4]*n+a[8]*r+a[12]*i,this.y=a[1]*t+a[5]*n+a[9]*r+a[13]*i,this.z=a[2]*t+a[6]*n+a[10]*r+a[14]*i,this.w=a[3]*t+a[7]*n+a[11]*r+a[15]*i,this}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this.w/=e.w,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);let t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,n,r,i,a=.01,o=.1,s=e.elements,c=s[0],l=s[4],u=s[8],d=s[1],f=s[5],p=s[9],m=s[2],h=s[6],g=s[10];if(Math.abs(l-d)s&&e>_?e_?s1);this.dispose()}this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}clone(){return new this.constructor().copy(this)}copy(e){this.width=e.width,this.height=e.height,this.depth=e.depth,this.scissor.copy(e.scissor),this.scissorTest=e.scissorTest,this.viewport.copy(e.viewport),this.textures.length=0;for(let t=0,n=e.textures.length;t>>0}enable(e){this.mask|=1<1){for(let e=0;e1){for(let e=0;e0&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),r.up=this.up.toArray(),this.pivot!==null&&(r.pivot=this.pivot.toArray()),this.morphTargetDictionary!==void 0&&(r.morphTargetDictionary=Object.assign({},this.morphTargetDictionary)),this.morphTargetInfluences!==void 0&&(r.morphTargetInfluences=this.morphTargetInfluences.slice()),this.isInstancedMesh&&(r.type=`InstancedMesh`,r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(r.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(r.type=`BatchedMesh`,r.perObjectFrustumCulled=this.perObjectFrustumCulled,r.sortObjects=this.sortObjects,r.drawRanges=this._drawRanges,r.reservedRanges=this._reservedRanges,r.geometryInfo=this._geometryInfo.map(e=>({...e,boundingBox:e.boundingBox?e.boundingBox.toJSON():void 0,boundingSphere:e.boundingSphere?e.boundingSphere.toJSON():void 0})),r.instanceInfo=this._instanceInfo.map(e=>({...e})),r.availableInstanceIds=this._availableInstanceIds.slice(),r.availableGeometryIds=this._availableGeometryIds.slice(),r.nextIndexStart=this._nextIndexStart,r.nextVertexStart=this._nextVertexStart,r.geometryCount=this._geometryCount,r.maxInstanceCount=this._maxInstanceCount,r.maxVertexCount=this._maxVertexCount,r.maxIndexCount=this._maxIndexCount,r.geometryInitialized=this._geometryInitialized,r.matricesTexture=this._matricesTexture.toJSON(e),r.indirectTexture=this._indirectTexture.toJSON(e),this._colorsTexture!==null&&(r.colorsTexture=this._colorsTexture.toJSON(e)),this.boundingSphere!==null&&(r.boundingSphere=this.boundingSphere.toJSON()),this.boundingBox!==null&&(r.boundingBox=this.boundingBox.toJSON()));function i(t,n){return t[n.uuid]===void 0&&(t[n.uuid]=n.toJSON(e)),n.uuid}if(this.isScene)this.background&&(this.background.isColor?r.background=this.background.toJSON():this.background.isTexture&&(r.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(r.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){r.geometry=i(e.geometries,this.geometry);let t=this.geometry.parameters;if(t!==void 0&&t.shapes!==void 0){let n=t.shapes;if(Array.isArray(n))for(let t=0,r=n.length;t0){r.children=[];for(let t=0;t0){r.animations=[];for(let t=0;t0&&(n.geometries=t),r.length>0&&(n.materials=r),i.length>0&&(n.textures=i),o.length>0&&(n.images=o),s.length>0&&(n.shapes=s),c.length>0&&(n.skeletons=c),l.length>0&&(n.animations=l),u.length>0&&(n.nodes=u)}return n.object=r,n;function a(e){let t=[];for(let n in e){let r=e[n];delete r.metadata,t.push(r)}return t}}clone(e){return new this.constructor().copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.pivot=e.pivot===null?null:e.pivot.clone(),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.static=e.static,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),t===!0)for(let t=0;t.025?(c.inputState.pinching=!1,this.dispatchEvent({type:`pinchend`,handedness:e.handedness,target:this})):!c.inputState.pinching&&o<=.015&&(c.inputState.pinching=!0,this.dispatchEvent({type:`pinchstart`,handedness:e.handedness,target:this}))}else s!==null&&e.gripSpace&&(i=t.getPose(e.gripSpace,n),i!==null&&(s.matrix.fromArray(i.transform.matrix),s.matrix.decompose(s.position,s.rotation,s.scale),s.matrixWorldNeedsUpdate=!0,i.linearVelocity?(s.hasLinearVelocity=!0,s.linearVelocity.copy(i.linearVelocity)):s.hasLinearVelocity=!1,i.angularVelocity?(s.hasAngularVelocity=!0,s.angularVelocity.copy(i.angularVelocity)):s.hasAngularVelocity=!1,s.eventsEnabled&&s.dispatchEvent({type:`gripUpdated`,data:e,target:this})));o!==null&&(r=t.getPose(e.targetRaySpace,n),r===null&&i!==null&&(r=i),r!==null&&(o.matrix.fromArray(r.transform.matrix),o.matrix.decompose(o.position,o.rotation,o.scale),o.matrixWorldNeedsUpdate=!0,r.linearVelocity?(o.hasLinearVelocity=!0,o.linearVelocity.copy(r.linearVelocity)):o.hasLinearVelocity=!1,r.angularVelocity?(o.hasAngularVelocity=!0,o.angularVelocity.copy(r.angularVelocity)):o.hasAngularVelocity=!1,this.dispatchEvent(nc)))}return o!==null&&(o.visible=r!==null),s!==null&&(s.visible=i!==null),c!==null&&(c.visible=a!==null),this}_getHandJoint(e,t){if(e.joints[t.jointName]===void 0){let n=new tc;n.matrixAutoUpdate=!1,n.visible=!1,e.joints[t.jointName]=n,e.add(n)}return e.joints[t.jointName]}},ic={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},ac={h:0,s:0,l:0},oc={h:0,s:0,l:0};function sc(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*6*(2/3-n):e}var V=class{constructor(e,t,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,n)}set(e,t,n){if(t===void 0&&n===void 0){let t=e;t&&t.isColor?this.copy(t):typeof t==`number`?this.setHex(t):typeof t==`string`&&this.setStyle(t)}else this.setRGB(e,t,n);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=lo){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,ds.colorSpaceToWorking(this,t),this}setRGB(e,t,n,r=ds.workingColorSpace){return this.r=e,this.g=t,this.b=n,ds.colorSpaceToWorking(this,r),this}setHSL(e,t,n,r=ds.workingColorSpace){if(e=Lo(e,1),t=Io(t,0,1),n=Io(n,0,1),t===0)this.r=this.g=this.b=n;else{let r=n<=.5?n*(1+t):n+t-n*t,i=2*n-r;this.r=sc(i,r,e+1/3),this.g=sc(i,r,e),this.b=sc(i,r,e-1/3)}return ds.colorSpaceToWorking(this,r),this}setStyle(e,t=lo){function n(t){t!==void 0&&parseFloat(t)<1&&To(`Color: Alpha component of `+e+` will be ignored.`)}let r;if(r=/^(\w+)\(([^\)]*)\)/.exec(e)){let i,a=r[1],o=r[2];switch(a){case`rgb`:case`rgba`:if(i=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setRGB(Math.min(255,parseInt(i[1],10))/255,Math.min(255,parseInt(i[2],10))/255,Math.min(255,parseInt(i[3],10))/255,t);if(i=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setRGB(Math.min(100,parseInt(i[1],10))/100,Math.min(100,parseInt(i[2],10))/100,Math.min(100,parseInt(i[3],10))/100,t);break;case`hsl`:case`hsla`:if(i=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setHSL(parseFloat(i[1])/360,parseFloat(i[2])/100,parseFloat(i[3])/100,t);break;default:To(`Color: Unknown color model `+e)}}else if(r=/^\#([A-Fa-f\d]+)$/.exec(e)){let n=r[1],i=n.length;if(i===3)return this.setRGB(parseInt(n.charAt(0),16)/15,parseInt(n.charAt(1),16)/15,parseInt(n.charAt(2),16)/15,t);if(i===6)return this.setHex(parseInt(n,16),t);To(`Color: Invalid hex color `+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=lo){let n=ic[e.toLowerCase()];return n===void 0?To(`Color: Unknown color `+e):this.setHex(n,t),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=fs(e.r),this.g=fs(e.g),this.b=fs(e.b),this}copyLinearToSRGB(e){return this.r=ps(e.r),this.g=ps(e.g),this.b=ps(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=lo){return ds.workingToColorSpace(cc.copy(this),e),Math.round(Io(cc.r*255,0,255))*65536+Math.round(Io(cc.g*255,0,255))*256+Math.round(Io(cc.b*255,0,255))}getHexString(e=lo){return(`000000`+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=ds.workingColorSpace){ds.workingToColorSpace(cc.copy(this),t);let n=cc.r,r=cc.g,i=cc.b,a=Math.max(n,r,i),o=Math.min(n,r,i),s,c,l=(o+a)/2;if(o===a)s=0,c=0;else{let e=a-o;switch(c=l<=.5?e/(a+o):e/(2-a-o),a){case n:s=(r-i)/e+(r0?r.multiplyScalar(1/Math.sqrt(i)):r.set(0,0,0)}static getBarycoord(e,t,n,r,i){dc.subVectors(r,t),fc.subVectors(n,t),pc.subVectors(e,t);let a=dc.dot(dc),o=dc.dot(fc),s=dc.dot(pc),c=fc.dot(fc),l=fc.dot(pc),u=a*c-o*o;if(u===0)return i.set(0,0,0),null;let d=1/u,f=(c*s-o*l)*d,p=(a*l-o*s)*d;return i.set(1-f-p,p,f)}static containsPoint(e,t,n,r){return this.getBarycoord(e,t,n,r,mc)!==null&&mc.x>=0&&mc.y>=0&&mc.x+mc.y<=1}static getInterpolation(e,t,n,r,i,a,o,s){return this.getBarycoord(e,t,n,r,mc)===null?(s.x=0,s.y=0,`z`in s&&(s.z=0),`w`in s&&(s.w=0),null):(s.setScalar(0),s.addScaledVector(i,mc.x),s.addScaledVector(a,mc.y),s.addScaledVector(o,mc.z),s)}static getInterpolatedAttribute(e,t,n,r,i,a){return xc.setScalar(0),Sc.setScalar(0),Cc.setScalar(0),xc.fromBufferAttribute(e,t),Sc.fromBufferAttribute(e,n),Cc.fromBufferAttribute(e,r),a.setScalar(0),a.addScaledVector(xc,i.x),a.addScaledVector(Sc,i.y),a.addScaledVector(Cc,i.z),a}static isFrontFacing(e,t,n,r){return dc.subVectors(n,t),fc.subVectors(e,t),dc.cross(fc).dot(r)<0}set(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this}setFromPointsAndIndices(e,t,n,r){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[r]),this}setFromAttributeAndIndices(e,t,n,r){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,n),this.c.fromBufferAttribute(e,r),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return dc.subVectors(this.c,this.b),fc.subVectors(this.a,this.b),dc.cross(fc).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(t){return e.getNormal(this.a,this.b,this.c,t)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(t,n){return e.getBarycoord(t,this.a,this.b,this.c,n)}getInterpolation(t,n,r,i,a){return e.getInterpolation(t,this.a,this.b,this.c,n,r,i,a)}containsPoint(t){return e.containsPoint(t,this.a,this.b,this.c)}isFrontFacing(t){return e.isFrontFacing(this.a,this.b,this.c,t)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){let n=this.a,r=this.b,i=this.c,a,o;hc.subVectors(r,n),gc.subVectors(i,n),vc.subVectors(e,n);let s=hc.dot(vc),c=gc.dot(vc);if(s<=0&&c<=0)return t.copy(n);yc.subVectors(e,r);let l=hc.dot(yc),u=gc.dot(yc);if(l>=0&&u<=l)return t.copy(r);let d=s*u-l*c;if(d<=0&&s>=0&&l<=0)return a=s/(s-l),t.copy(n).addScaledVector(hc,a);bc.subVectors(e,i);let f=hc.dot(bc),p=gc.dot(bc);if(p>=0&&f<=p)return t.copy(i);let m=f*c-s*p;if(m<=0&&c>=0&&p<=0)return o=c/(c-p),t.copy(n).addScaledVector(gc,o);let h=l*p-f*u;if(h<=0&&u-l>=0&&f-p>=0)return _c.subVectors(i,r),o=(u-l)/(u-l+(f-p)),t.copy(r).addScaledVector(_c,o);let g=1/(h+m+d);return a=m*g,o=d*g,t.copy(n).addScaledVector(hc,a).addScaledVector(gc,o)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}},Tc=class{constructor(e=new B(1/0,1/0,1/0),t=new B(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,n=e.length;t=this.min.x&&e.x<=this.max.x&&e.y>=this.min.y&&e.y<=this.max.y&&e.z>=this.min.z&&e.z<=this.max.z}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return e.max.x>=this.min.x&&e.min.x<=this.max.x&&e.max.y>=this.min.y&&e.min.y<=this.max.y&&e.max.z>=this.min.z&&e.min.z<=this.max.z}intersectsSphere(e){return this.clampPoint(e.center,Dc),Dc.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,n;return e.normal.x>0?(t=e.normal.x*this.min.x,n=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,n=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,n+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,n+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,n+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,n+=e.normal.z*this.min.z),t<=-e.constant&&n>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(Fc),Ic.subVectors(this.max,Fc),kc.subVectors(e.a,Fc),Ac.subVectors(e.b,Fc),jc.subVectors(e.c,Fc),Mc.subVectors(Ac,kc),Nc.subVectors(jc,Ac),Pc.subVectors(kc,jc);let t=[0,-Mc.z,Mc.y,0,-Nc.z,Nc.y,0,-Pc.z,Pc.y,Mc.z,0,-Mc.x,Nc.z,0,-Nc.x,Pc.z,0,-Pc.x,-Mc.y,Mc.x,0,-Nc.y,Nc.x,0,-Pc.y,Pc.x,0];return!zc(t,kc,Ac,jc,Ic)||(t=[1,0,0,0,1,0,0,0,1],!zc(t,kc,Ac,jc,Ic))?!1:(Lc.crossVectors(Mc,Nc),t=[Lc.x,Lc.y,Lc.z],zc(t,kc,Ac,jc,Ic))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,Dc).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(Dc).length()*.5),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()||(Ec[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),Ec[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),Ec[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),Ec[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),Ec[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),Ec[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),Ec[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),Ec[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(Ec)),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}toJSON(){return{min:this.min.toArray(),max:this.max.toArray()}}fromJSON(e){return this.min.fromArray(e.min),this.max.fromArray(e.max),this}},Ec=[new B,new B,new B,new B,new B,new B,new B,new B],Dc=new B,Oc=new Tc,kc=new B,Ac=new B,jc=new B,Mc=new B,Nc=new B,Pc=new B,Fc=new B,Ic=new B,Lc=new B,Rc=new B;function zc(e,t,n,r,i){for(let a=0,o=e.length-3;a<=o;a+=3){Rc.fromArray(e,a);let o=i.x*Math.abs(Rc.x)+i.y*Math.abs(Rc.y)+i.z*Math.abs(Rc.z),s=t.dot(Rc),c=n.dot(Rc),l=r.dot(Rc);if(Math.max(-Math.max(s,c,l),Math.min(s,c,l))>o)return!1}return!0}var Bc=new B,Vc=new z,Hc=0,Uc=class extends Ao{constructor(e,t,n=!1){if(super(),Array.isArray(e))throw TypeError(`THREE.BufferAttribute: array should be a Typed Array.`);this.isBufferAttribute=!0,Object.defineProperty(this,"id",{value:Hc++}),this.name=``,this.array=e,this.itemSize=t,this.count=e===void 0?0:e.length/t,this.normalized=n,this.usage=ho,this.updateRanges=[],this.gpuType=ta,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,n){e*=this.itemSize,n*=t.itemSize;for(let r=0,i=this.itemSize;rthis.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius*=e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;Jc.subVectors(e,this.center);let t=Jc.lengthSq();if(t>this.radius*this.radius){let e=Math.sqrt(t),n=(e-this.radius)*.5;this.center.addScaledVector(Jc,n/e),this.radius+=n}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(this.center.equals(e.center)===!0?this.radius=Math.max(this.radius,e.radius):(Yc.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(Jc.copy(e.center).add(Yc)),this.expandByPoint(Jc.copy(e.center).sub(Yc))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}toJSON(){return{radius:this.radius,center:this.center.toArray()}}fromJSON(e){return this.radius=e.radius,this.center.fromArray(e.center),this}},Zc=0,Qc=new Ds,$c=new ec,el=new B,tl=new Tc,nl=new Tc,rl=new B,il=class e extends Ao{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,"id",{value:Zc++}),this.uuid=Fo(),this.name=``,this.type=`BufferGeometry`,this.index=null,this.indirect=null,this.indirectOffset=0,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={},this._transformed=!1}getIndex(){return this.index}setIndex(e){return this.index=Array.isArray(e)?new(vo(e)?Gc:Wc)(e,1):e,this}setIndirect(e,t=0){return this.indirect=e,this.indirectOffset=t,this}getIndirect(){return this.indirect}getAttribute(e){return this.attributes[e]}setAttribute(e,t){return this.attributes[e]=t,this}deleteAttribute(e){return delete this.attributes[e],this}hasAttribute(e){return this.attributes[e]!==void 0}addGroup(e,t,n=0){this.groups.push({start:e,count:t,materialIndex:n})}clearGroups(){this.groups=[]}setDrawRange(e,t){this.drawRange.start=e,this.drawRange.count=t}applyMatrix4(e){let t=this.attributes.position;t!==void 0&&(t.applyMatrix4(e),t.needsUpdate=!0);let n=this.attributes.normal;if(n!==void 0){let t=new os().getNormalMatrix(e);n.applyNormalMatrix(t),n.needsUpdate=!0}let r=this.attributes.tangent;return r!==void 0&&(r.transformDirection(e),r.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this._transformed=!0,this}applyQuaternion(e){return Qc.makeRotationFromQuaternion(e),this.applyMatrix4(Qc),this}rotateX(e){return Qc.makeRotationX(e),this.applyMatrix4(Qc),this}rotateY(e){return Qc.makeRotationY(e),this.applyMatrix4(Qc),this}rotateZ(e){return Qc.makeRotationZ(e),this.applyMatrix4(Qc),this}translate(e,t,n){return Qc.makeTranslation(e,t,n),this.applyMatrix4(Qc),this}scale(e,t,n){return Qc.makeScale(e,t,n),this.applyMatrix4(Qc),this}lookAt(e){return $c.lookAt(e),$c.updateMatrix(),this.applyMatrix4($c.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(el).negate(),this.translate(el.x,el.y,el.z),this}setFromPoints(e){let t=this.getAttribute(`position`);if(t===void 0){let t=[];for(let n=0,r=e.length;nt.count&&To(`BufferGeometry: Buffer size too small for points data. Use .dispose() and create a new geometry.`),t.needsUpdate=!0}return this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new Tc);let e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute)Eo(`BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.`,this),this.boundingBox.set(new B(-1/0,-1/0,-1/0),new B(1/0,1/0,1/0));else{if(e!==void 0){if(this.boundingBox.setFromBufferAttribute(e),t)for(let e=0,n=t.length;e0&&(e.userData=this.userData),this.parameters!==void 0&&this._transformed!==!0){let t=this.parameters;for(let n in t)t[n]!==void 0&&(e[n]=t[n]);return e}e.data={attributes:{}};let t=this.index;t!==null&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});let n=this.attributes;for(let t in n){let r=n[t];e.data.attributes[t]=r.toJSON(e.data)}let r={},i=!1;for(let t in this.morphAttributes){let n=this.morphAttributes[t],a=[];for(let t=0,r=n.length;t0&&(r[t]=a,i=!0)}i&&(e.data.morphAttributes=r,e.data.morphTargetsRelative=this.morphTargetsRelative);let a=this.groups;a.length>0&&(e.data.groups=JSON.parse(JSON.stringify(a)));let o=this.boundingSphere;return o!==null&&(e.data.boundingSphere=o.toJSON()),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;let t={};this.name=e.name;let n=e.index;n!==null&&this.setIndex(n.clone());let r=e.attributes;for(let e in r){let n=r[e];this.setAttribute(e,n.clone(t))}let i=e.morphAttributes;for(let e in i){let n=[],r=i[e];for(let e=0,i=r.length;e1)?null:t.copy(e.start).addScaledVector(r,a)}intersectsLine(e){let t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){let n=t||ul.getNormalMatrix(e),r=this.coplanarPoint(cl).applyMatrix4(e),i=this.normal.applyMatrix3(n).normalize();return this.constant=-r.dot(i),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}toJSON(){return{normal:this.normal.toArray(),constant:this.constant}}fromJSON(e){return this.normal.fromArray(e.normal),this.constant=e.constant,this}},fl=0,pl=class extends Ao{constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,"id",{value:fl++}),this.uuid=Fo(),this.name=``,this.type=`Material`,this.blending=1,this.side=0,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.alphaHash=!1,this.blendSrc=204,this.blendDst=205,this.blendEquation=100,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.blendColor=new V(0,0,0),this.blendAlpha=0,this.depthFunc=3,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=519,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=mo,this.stencilZFail=mo,this.stencilZPass=mo,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.forceSinglePass=!1,this.allowOverride=!0,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(e){this._alphaTest>0!=e>0&&this.version++,this._alphaTest=e}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(let t in e){let n=e[t];if(n===void 0){To(`Material: parameter '${t}' has value of undefined.`);continue}let r=this[t];r===void 0?To(`Material: '${t}' is not a property of THREE.${this.type}.`):r&&r.isColor?r.set(n):r&&r.isVector2&&n&&n.isVector2||r&&r.isEuler&&n&&n.isEuler||r&&r.isVector3&&n&&n.isVector3?r.copy(n):this[t]=n}}toJSON(e){let t=e===void 0||typeof e==`string`;t&&(e={textures:{},images:{}});let n={metadata:{version:4.7,type:`Material`,generator:`Material.toJSON`}};n.uuid=this.uuid,n.type=this.type,n.blending=this.blending,n.side=this.side,n.shadowSide=this.shadowSide,n.vertexColors=this.vertexColors,n.opacity=this.opacity,n.transparent=this.transparent,n.blendSrc=this.blendSrc,n.blendDst=this.blendDst,n.blendEquation=this.blendEquation,n.blendSrcAlpha=this.blendSrcAlpha,n.blendDstAlpha=this.blendDstAlpha,n.blendEquationAlpha=this.blendEquationAlpha,n.blendColor=this.blendColor.getHex(),n.blendAlpha=this.blendAlpha,n.depthFunc=this.depthFunc,n.depthTest=this.depthTest,n.depthWrite=this.depthWrite,n.colorWrite=this.colorWrite,n.clipIntersection=this.clipIntersection,n.clipShadows=this.clipShadows,n.stencilWriteMask=this.stencilWriteMask,n.stencilFunc=this.stencilFunc,n.stencilRef=this.stencilRef,n.stencilFuncMask=this.stencilFuncMask,n.stencilFail=this.stencilFail,n.stencilZFail=this.stencilZFail,n.stencilZPass=this.stencilZPass,n.stencilWrite=this.stencilWrite,n.polygonOffset=this.polygonOffset,n.polygonOffsetFactor=this.polygonOffsetFactor,n.polygonOffsetUnits=this.polygonOffsetUnits,n.dithering=this.dithering,n.alphaTest=this.alphaTest,n.alphaHash=this.alphaHash,n.alphaToCoverage=this.alphaToCoverage,n.premultipliedAlpha=this.premultipliedAlpha,n.forceSinglePass=this.forceSinglePass,n.allowOverride=this.allowOverride,n.visible=this.visible,n.toneMapped=this.toneMapped,n.name=this.name,this.color&&this.color.isColor&&(n.color=this.color.getHex()),this.roughness!==void 0&&(n.roughness=this.roughness),this.metalness!==void 0&&(n.metalness=this.metalness),this.sheen!==void 0&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity!==void 0&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(n.shininess=this.shininess),this.clearcoat!==void 0&&(n.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.sheenColorMap&&this.sheenColorMap.isTexture&&(n.sheenColorMap=this.sheenColorMap.toJSON(e).uuid),this.sheenRoughnessMap&&this.sheenRoughnessMap.isTexture&&(n.sheenRoughnessMap=this.sheenRoughnessMap.toJSON(e).uuid),this.dispersion!==void 0&&(n.dispersion=this.dispersion),this.retroreflectivity!==void 0&&(n.retroreflectivity=this.retroreflectivity),this.iridescence!==void 0&&(n.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(n.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(n.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(n.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(n.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(n.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(n.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(n.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(e).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(e).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(e).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(e).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(e).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(n.combine=this.combine)),this.envMapRotation!==void 0&&(n.envMapRotation=this.envMapRotation.toArray()),this.envMapIntensity!==void 0&&(n.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(n.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&(n.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(n.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(n.size=this.size),this.sizeAttenuation!==void 0&&(n.sizeAttenuation=this.sizeAttenuation),Array.isArray(this.clippingPlanes)&&this.clippingPlanes.length>0&&(n.clippingPlanes=this.clippingPlanes.map(e=>e.toJSON())),this.rotation!==void 0&&(n.rotation=this.rotation),this.depthPacking!==void 0&&(n.depthPacking=this.depthPacking),this.linewidth!==void 0&&(n.linewidth=this.linewidth),this.linecap!==void 0&&(n.linecap=this.linecap),this.linejoin!==void 0&&(n.linejoin=this.linejoin),this.dashSize!==void 0&&(n.dashSize=this.dashSize),this.gapSize!==void 0&&(n.gapSize=this.gapSize),this.scale!==void 0&&(n.scale=this.scale),this.wireframe!==void 0&&(n.wireframe=this.wireframe),this.wireframeLinewidth!==void 0&&(n.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!==void 0&&(n.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!==void 0&&(n.wireframeLinejoin=this.wireframeLinejoin),this.flatShading!==void 0&&(n.flatShading=this.flatShading),this.fog!==void 0&&(n.fog=this.fog),Object.keys(this.userData).length>0&&(n.userData=this.userData);function r(e){let t=[];for(let n in e){let r=e[n];delete r.metadata,t.push(r)}return t}if(t){let t=r(e.textures),i=r(e.images);t.length>0&&(n.textures=t),i.length>0&&(n.images=i)}return n}fromJSON(e,t){if(e.uuid!==void 0&&(this.uuid=e.uuid),e.name!==void 0&&(this.name=e.name),e.color!==void 0&&this.color!==void 0&&this.color.setHex(e.color),e.roughness!==void 0&&(this.roughness=e.roughness),e.metalness!==void 0&&(this.metalness=e.metalness),e.sheen!==void 0&&(this.sheen=e.sheen),e.sheenColor!==void 0&&(this.sheenColor=new V().setHex(e.sheenColor)),e.sheenRoughness!==void 0&&(this.sheenRoughness=e.sheenRoughness),e.emissive!==void 0&&this.emissive!==void 0&&this.emissive.setHex(e.emissive),e.specular!==void 0&&this.specular!==void 0&&this.specular.setHex(e.specular),e.specularIntensity!==void 0&&(this.specularIntensity=e.specularIntensity),e.specularColor!==void 0&&this.specularColor!==void 0&&this.specularColor.setHex(e.specularColor),e.shininess!==void 0&&(this.shininess=e.shininess),e.clearcoat!==void 0&&(this.clearcoat=e.clearcoat),e.clearcoatRoughness!==void 0&&(this.clearcoatRoughness=e.clearcoatRoughness),e.dispersion!==void 0&&(this.dispersion=e.dispersion),e.retroreflectivity!==void 0&&(this.retroreflectivity=e.retroreflectivity),e.iridescence!==void 0&&(this.iridescence=e.iridescence),e.iridescenceIOR!==void 0&&(this.iridescenceIOR=e.iridescenceIOR),e.iridescenceThicknessRange!==void 0&&(this.iridescenceThicknessRange=e.iridescenceThicknessRange),e.transmission!==void 0&&(this.transmission=e.transmission),e.thickness!==void 0&&(this.thickness=e.thickness),e.attenuationDistance!==void 0&&(this.attenuationDistance=e.attenuationDistance),e.attenuationColor!==void 0&&this.attenuationColor!==void 0&&this.attenuationColor.setHex(e.attenuationColor),e.anisotropy!==void 0&&(this.anisotropy=e.anisotropy),e.anisotropyRotation!==void 0&&(this.anisotropyRotation=e.anisotropyRotation),e.fog!==void 0&&(this.fog=e.fog),e.flatShading!==void 0&&(this.flatShading=e.flatShading),e.blending!==void 0&&(this.blending=e.blending),e.combine!==void 0&&(this.combine=e.combine),e.side!==void 0&&(this.side=e.side),e.shadowSide!==void 0&&(this.shadowSide=e.shadowSide),e.opacity!==void 0&&(this.opacity=e.opacity),e.transparent!==void 0&&(this.transparent=e.transparent),e.alphaTest!==void 0&&(this.alphaTest=e.alphaTest),e.alphaHash!==void 0&&(this.alphaHash=e.alphaHash),e.depthFunc!==void 0&&(this.depthFunc=e.depthFunc),e.depthTest!==void 0&&(this.depthTest=e.depthTest),e.depthWrite!==void 0&&(this.depthWrite=e.depthWrite),e.colorWrite!==void 0&&(this.colorWrite=e.colorWrite),e.clippingPlanes!==void 0&&(this.clippingPlanes=e.clippingPlanes.map(e=>new dl().fromJSON(e))),e.clipIntersection!==void 0&&(this.clipIntersection=e.clipIntersection),e.clipShadows!==void 0&&(this.clipShadows=e.clipShadows),e.depthPacking!==void 0&&(this.depthPacking=e.depthPacking),e.blendSrc!==void 0&&(this.blendSrc=e.blendSrc),e.blendDst!==void 0&&(this.blendDst=e.blendDst),e.blendEquation!==void 0&&(this.blendEquation=e.blendEquation),e.blendSrcAlpha!==void 0&&(this.blendSrcAlpha=e.blendSrcAlpha),e.blendDstAlpha!==void 0&&(this.blendDstAlpha=e.blendDstAlpha),e.blendEquationAlpha!==void 0&&(this.blendEquationAlpha=e.blendEquationAlpha),e.blendColor!==void 0&&this.blendColor!==void 0&&this.blendColor.setHex(e.blendColor),e.blendAlpha!==void 0&&(this.blendAlpha=e.blendAlpha),e.stencilWriteMask!==void 0&&(this.stencilWriteMask=e.stencilWriteMask),e.stencilFunc!==void 0&&(this.stencilFunc=e.stencilFunc),e.stencilRef!==void 0&&(this.stencilRef=e.stencilRef),e.stencilFuncMask!==void 0&&(this.stencilFuncMask=e.stencilFuncMask),e.stencilFail!==void 0&&(this.stencilFail=e.stencilFail),e.stencilZFail!==void 0&&(this.stencilZFail=e.stencilZFail),e.stencilZPass!==void 0&&(this.stencilZPass=e.stencilZPass),e.stencilWrite!==void 0&&(this.stencilWrite=e.stencilWrite),e.wireframe!==void 0&&(this.wireframe=e.wireframe),e.wireframeLinewidth!==void 0&&(this.wireframeLinewidth=e.wireframeLinewidth),e.wireframeLinecap!==void 0&&(this.wireframeLinecap=e.wireframeLinecap),e.wireframeLinejoin!==void 0&&(this.wireframeLinejoin=e.wireframeLinejoin),e.rotation!==void 0&&(this.rotation=e.rotation),e.linewidth!==void 0&&(this.linewidth=e.linewidth),e.linecap!==void 0&&(this.linecap=e.linecap),e.linejoin!==void 0&&(this.linejoin=e.linejoin),e.dashSize!==void 0&&(this.dashSize=e.dashSize),e.gapSize!==void 0&&(this.gapSize=e.gapSize),e.scale!==void 0&&(this.scale=e.scale),e.polygonOffset!==void 0&&(this.polygonOffset=e.polygonOffset),e.polygonOffsetFactor!==void 0&&(this.polygonOffsetFactor=e.polygonOffsetFactor),e.polygonOffsetUnits!==void 0&&(this.polygonOffsetUnits=e.polygonOffsetUnits),e.dithering!==void 0&&(this.dithering=e.dithering),e.alphaToCoverage!==void 0&&(this.alphaToCoverage=e.alphaToCoverage),e.premultipliedAlpha!==void 0&&(this.premultipliedAlpha=e.premultipliedAlpha),e.forceSinglePass!==void 0&&(this.forceSinglePass=e.forceSinglePass),e.allowOverride!==void 0&&(this.allowOverride=e.allowOverride),e.visible!==void 0&&(this.visible=e.visible),e.toneMapped!==void 0&&(this.toneMapped=e.toneMapped),e.userData!==void 0&&(this.userData=e.userData),e.vertexColors!==void 0&&(this.vertexColors=typeof e.vertexColors==`number`?e.vertexColors>0:e.vertexColors),e.size!==void 0&&(this.size=e.size),e.sizeAttenuation!==void 0&&(this.sizeAttenuation=e.sizeAttenuation),e.map!==void 0&&(this.map=t[e.map]||null),e.matcap!==void 0&&(this.matcap=t[e.matcap]||null),e.alphaMap!==void 0&&(this.alphaMap=t[e.alphaMap]||null),e.bumpMap!==void 0&&(this.bumpMap=t[e.bumpMap]||null),e.bumpScale!==void 0&&(this.bumpScale=e.bumpScale),e.normalMap!==void 0&&(this.normalMap=t[e.normalMap]||null),e.normalMapType!==void 0&&(this.normalMapType=e.normalMapType),e.normalScale!==void 0){let t=e.normalScale;Array.isArray(t)===!1&&(t=[t,t]),this.normalScale=new z().fromArray(t)}return e.displacementMap!==void 0&&(this.displacementMap=t[e.displacementMap]||null),e.displacementScale!==void 0&&(this.displacementScale=e.displacementScale),e.displacementBias!==void 0&&(this.displacementBias=e.displacementBias),e.roughnessMap!==void 0&&(this.roughnessMap=t[e.roughnessMap]||null),e.metalnessMap!==void 0&&(this.metalnessMap=t[e.metalnessMap]||null),e.emissiveMap!==void 0&&(this.emissiveMap=t[e.emissiveMap]||null),e.emissiveIntensity!==void 0&&(this.emissiveIntensity=e.emissiveIntensity),e.specularMap!==void 0&&(this.specularMap=t[e.specularMap]||null),e.specularIntensityMap!==void 0&&(this.specularIntensityMap=t[e.specularIntensityMap]||null),e.specularColorMap!==void 0&&(this.specularColorMap=t[e.specularColorMap]||null),e.envMap!==void 0&&(this.envMap=t[e.envMap]||null),e.envMapRotation!==void 0&&this.envMapRotation.fromArray(e.envMapRotation),e.envMapIntensity!==void 0&&(this.envMapIntensity=e.envMapIntensity),e.reflectivity!==void 0&&(this.reflectivity=e.reflectivity),e.refractionRatio!==void 0&&(this.refractionRatio=e.refractionRatio),e.lightMap!==void 0&&(this.lightMap=t[e.lightMap]||null),e.lightMapIntensity!==void 0&&(this.lightMapIntensity=e.lightMapIntensity),e.aoMap!==void 0&&(this.aoMap=t[e.aoMap]||null),e.aoMapIntensity!==void 0&&(this.aoMapIntensity=e.aoMapIntensity),e.gradientMap!==void 0&&(this.gradientMap=t[e.gradientMap]||null),e.clearcoatMap!==void 0&&(this.clearcoatMap=t[e.clearcoatMap]||null),e.clearcoatRoughnessMap!==void 0&&(this.clearcoatRoughnessMap=t[e.clearcoatRoughnessMap]||null),e.clearcoatNormalMap!==void 0&&(this.clearcoatNormalMap=t[e.clearcoatNormalMap]||null),e.clearcoatNormalScale!==void 0&&(this.clearcoatNormalScale=new z().fromArray(e.clearcoatNormalScale)),e.iridescenceMap!==void 0&&(this.iridescenceMap=t[e.iridescenceMap]||null),e.iridescenceThicknessMap!==void 0&&(this.iridescenceThicknessMap=t[e.iridescenceThicknessMap]||null),e.transmissionMap!==void 0&&(this.transmissionMap=t[e.transmissionMap]||null),e.thicknessMap!==void 0&&(this.thicknessMap=t[e.thicknessMap]||null),e.anisotropyMap!==void 0&&(this.anisotropyMap=t[e.anisotropyMap]||null),e.sheenColorMap!==void 0&&(this.sheenColorMap=t[e.sheenColorMap]||null),e.sheenRoughnessMap!==void 0&&(this.sheenRoughnessMap=t[e.sheenRoughnessMap]||null),this}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;let t=e.clippingPlanes,n=null;if(t!==null){let e=t.length;n=Array(e);for(let r=0;r!==e;++r)n[r]=t[r].clone()}return this.clippingPlanes=n,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.allowOverride=e.allowOverride,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:`dispose`})}set needsUpdate(e){e===!0&&this.version++}},ml=new B,hl=new B,gl=new B,_l=new B,vl=class{constructor(e=new B,t=new B(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,ml)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);let n=t.dot(this.direction);return n<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,n)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){let t=ml.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(ml.copy(this.origin).addScaledVector(this.direction,t),ml.distanceToSquared(e))}distanceSqToSegment(e,t,n,r){hl.copy(e).add(t).multiplyScalar(.5),gl.copy(t).sub(e).normalize(),_l.copy(this.origin).sub(hl);let i=e.distanceTo(t)*.5,a=-this.direction.dot(gl),o=_l.dot(this.direction),s=-_l.dot(gl),c=_l.lengthSq(),l=Math.abs(1-a*a),u,d,f,p;if(l>0){if(u=a*s-o,d=a*o-s,p=i*l,u>=0){if(d>=-p){if(d<=p){let e=1/l;u*=e,d*=e,f=u*(u+a*d+2*o)+d*(a*u+d+2*s)+c}else d=i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c}else d=-i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c}else d<=-p?(u=Math.max(0,-(-a*i+o)),d=u>0?-i:Math.min(Math.max(-i,-s),i),f=-u*u+d*(d+2*s)+c):d<=p?(u=0,d=Math.min(Math.max(-i,-s),i),f=d*(d+2*s)+c):(u=Math.max(0,-(a*i+o)),d=u>0?i:Math.min(Math.max(-i,-s),i),f=-u*u+d*(d+2*s)+c)}else d=a>0?-i:i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c;return n&&n.copy(this.origin).addScaledVector(this.direction,u),r&&r.copy(hl).addScaledVector(gl,d),f}intersectSphere(e,t){if(e.radius<0)return null;ml.subVectors(e.center,this.origin);let n=ml.dot(this.direction),r=ml.dot(ml)-n*n,i=e.radius*e.radius;if(r>i)return null;let a=Math.sqrt(i-r),o=n-a,s=n+a;return s<0?null:o<0?this.at(s,t):this.at(o,t)}intersectsSphere(e){return e.radius<0?!1:this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){let t=e.normal.dot(this.direction);if(t===0)return e.distanceToPoint(this.origin)===0?0:null;let n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null}intersectPlane(e,t){let n=this.distanceToPlane(e);return n===null?null:this.at(n,t)}intersectsPlane(e){let t=e.distanceToPoint(this.origin);return t===0||e.normal.dot(this.direction)*t<0}intersectBox(e,t){let n,r,i,a,o,s,c=1/this.direction.x,l=1/this.direction.y,u=1/this.direction.z,d=this.origin;return c>=0?(n=(e.min.x-d.x)*c,r=(e.max.x-d.x)*c):(n=(e.max.x-d.x)*c,r=(e.min.x-d.x)*c),l>=0?(i=(e.min.y-d.y)*l,a=(e.max.y-d.y)*l):(i=(e.max.y-d.y)*l,a=(e.min.y-d.y)*l),n>a||i>r||((i>n||isNaN(n))&&(n=i),(a=0?(o=(e.min.z-d.z)*u,s=(e.max.z-d.z)*u):(o=(e.max.z-d.z)*u,s=(e.min.z-d.z)*u),n>s||o>r)||((o>n||n!==n)&&(n=o),(s=0?n:r,t)}intersectsBox(e){return this.intersectBox(e,ml)!==null}intersectTriangle(e,t,n,r,i){let a=this.origin,o=this.direction,s=o.x,c=o.y,l=o.z,u=e.x-a.x,d=e.y-a.y,f=e.z-a.z,p=t.x-a.x,m=t.y-a.y,h=t.z-a.z,g=n.x-a.x,_=n.y-a.y,v=n.z-a.z,y=Math.abs(s),b=Math.abs(c),x=Math.abs(l),S,C,w,T,E,D,O,k,ee,A,te,j;if(y>=b&&y>=x?(w=s,D=u,ee=p,j=g,s>=0?(S=c,C=l,T=d,E=f,O=m,k=h,A=_,te=v):(S=l,C=c,T=f,E=d,O=h,k=m,A=v,te=_)):b>=x?(w=c,D=d,ee=m,j=_,c>=0?(S=l,C=s,T=f,E=u,O=h,k=p,A=v,te=g):(S=s,C=l,T=u,E=f,O=p,k=h,A=g,te=v)):(w=l,D=f,ee=h,j=v,l>=0?(S=s,C=c,T=u,E=d,O=p,k=m,A=g,te=_):(S=c,C=s,T=d,E=u,O=m,k=p,A=_,te=g)),w===0)return null;let ne=S/w,re=C/w,ie=1/w,M=T-ne*D,N=E-re*D,ae=O-ne*ee,oe=k-re*ee,se=A-ne*j,ce=te-re*j,le=se*oe-ce*ae,ue=M*ce-N*se,de=ae*N-oe*M;if(r){if(le<0||ue<0||de<0)return null}else if((le<0||ue<0||de<0)&&(le>0||ue>0||de>0))return null;let fe=le+ue+de;if(fe===0)return null;let pe=ie*(le*D+ue*ee+de*j);return(fe>0?pe<0:pe>0)?null:this.at(pe/fe,i)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}},yl=class extends pl{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type=`MeshBasicMaterial`,this.color=new V(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new Ls,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap=`round`,this.wireframeLinejoin=`round`,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}},bl=new Ds,xl=new vl,Sl=new Xc,Cl=new B,wl=new B,Tl=new B,El=new B,Dl=new B,Ol=new B,kl=new B,Al=new B,H=class extends ec{constructor(e=new il,t=new yl){super(),this.isMesh=!0,this.type=`Mesh`,this.geometry=e,this.material=t,this.morphTargetDictionary=void 0,this.morphTargetInfluences=void 0,this.count=1,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),e.morphTargetInfluences!==void 0&&(this.morphTargetInfluences=e.morphTargetInfluences.slice()),e.morphTargetDictionary!==void 0&&(this.morphTargetDictionary=Object.assign({},e.morphTargetDictionary)),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}updateMorphTargets(){let e=this.geometry.morphAttributes,t=Object.keys(e);if(t.length>0){let n=e[t[0]];if(n!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;e(e.far-e.near)**2)||(bl.copy(i).invert(),xl.copy(e.ray).applyMatrix4(bl),(n.boundingBox===null||xl.intersectsBox(n.boundingBox)!==!1)&&this._computeIntersections(e,t,xl)))}_computeIntersections(e,t,n){let r,i=this.geometry,a=this.material,o=i.index,s=i.attributes.position,c=i.attributes.uv,l=i.attributes.uv1,u=i.attributes.normal,d=i.groups,f=i.drawRange;if(o!==null){if(Array.isArray(a))for(let i=0,s=d.length;in.far?null:{distance:l,point:Al.clone(),object:e}}function Ml(e,t,n,r,i,a,o,s,c,l){e.getVertexPosition(s,wl),e.getVertexPosition(c,Tl),e.getVertexPosition(l,El);let u=jl(e,t,n,r,wl,Tl,El,kl);if(u){let e=new B;wc.getBarycoord(kl,wl,Tl,El,e),i&&(u.uv=wc.getInterpolatedAttribute(i,s,c,l,e,new z)),a&&(u.uv1=wc.getInterpolatedAttribute(a,s,c,l,e,new z)),o&&(u.normal=wc.getInterpolatedAttribute(o,s,c,l,e,new B),u.normal.dot(r.direction)>0&&u.normal.multiplyScalar(-1));let t={a:s,b:c,c:l,normal:new B,materialIndex:0};wc.getNormal(wl,Tl,El,t.normal),u.face=t,u.barycoord=e}return u}var Nl=new Ss,Pl=new Ss,Fl=new Ss,Il=new Ss,Ll=new Ds,Rl=new B,zl=new Xc,Bl=new Ds,Vl=new vl,Hl=class extends H{constructor(e,t){super(e,t),this.isSkinnedMesh=!0,this.type=`SkinnedMesh`,this.bindMode=zi,this.bindMatrix=new Ds,this.bindMatrixInverse=new Ds,this.boundingBox=null,this.boundingSphere=null}computeBoundingBox(){let e=this.geometry;this.boundingBox===null&&(this.boundingBox=new Tc),this.boundingBox.makeEmpty();let t=e.getAttribute(`position`);for(let e=0;e0?e.max.x:e.min.x,au.y=r.normal.y>0?e.max.y:e.min.y,au.z=r.normal.z>0?e.max.z:e.min.z,r.distanceToPoint(au)<0)return!1}return!0}containsPoint(e){let t=this.planes;for(let n=0;n<6;n++)if(t[n].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}},su=class extends pl{constructor(e){super(),this.isLineBasicMaterial=!0,this.type=`LineBasicMaterial`,this.color=new V(16777215),this.map=null,this.linewidth=1,this.linecap=`round`,this.linejoin=`round`,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.linewidth=e.linewidth,this.linecap=e.linecap,this.linejoin=e.linejoin,this.fog=e.fog,this}},cu=new B,lu=new B,uu=new Ds,du=new vl,fu=new Xc,pu=new B,mu=new B,hu=class extends ec{constructor(e=new il,t=new su){super(),this.isLine=!0,this.type=`Line`,this.geometry=e,this.material=t,this.morphTargetDictionary=void 0,this.morphTargetInfluences=void 0,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}computeLineDistances(){let e=this.geometry;if(e.index===null){let t=e.attributes.position,n=[0];for(let e=1,r=t.count;e0){let n=e[t[0]];if(n!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;er)return;pu.applyMatrix4(e.matrixWorld);let c=t.ray.origin.distanceTo(pu);if(!(ct.far))return{distance:c,point:mu.clone().applyMatrix4(e.matrixWorld),index:o,face:null,faceIndex:null,barycoord:null,object:e}}var _u=new B,vu=new B,yu=class extends hu{constructor(e,t){super(e,t),this.isLineSegments=!0,this.type=`LineSegments`}computeLineDistances(){let e=this.geometry;if(e.index===null){let t=e.attributes.position,n=[];for(let e=0,r=t.count;e0){let n=e[t[0]];if(n!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;ei.far)return;a.push({distance:c,distanceToRay:Math.sqrt(s),point:n,index:t,face:null,faceIndex:null,barycoord:null,object:o})}}var Ou=class extends xs{constructor(e=[],t=301,n,r,i,a,o,s,c,l){super(e,t,n,r,i,a,o,s,c,l),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}},ku=class extends xs{constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r,i,a,o,s,c),this.isCanvasTexture=!0,this.needsUpdate=!0}},Au=class extends xs{constructor(e,t,n=ea,r,i,a,o=Ui,s=Ui,c,l=da,u=1){if(l!==1026&&l!==1027)throw Error(`THREE.DepthTexture: format must be either THREE.DepthFormat or THREE.DepthStencilFormat`);super({width:e,height:t,depth:u},r,i,a,o,s,l,n,c),this.isDepthTexture=!0,this.flipY=!1,this.generateMipmaps=!1,this.compareFunction=null}copy(e){return super.copy(e),this.source=new _s(Object.assign({},e.image)),this.compareFunction=e.compareFunction,this}toJSON(e){let t=super.toJSON(e);return t.compareFunction=this.compareFunction,t}},ju=class extends Au{constructor(e,t=ea,n=301,r,i,a=Ui,o=Ui,s,c=da){let l={width:e,height:e,depth:1},u=[l,l,l,l,l,l];super(e,e,t,n,r,i,a,o,s,c),this.image=u,this.isCubeDepthTexture=!0,this.isCubeTexture=!0}get images(){return this.image}set images(e){this.image=e}},Mu=class extends xs{constructor(e=null){super(),this.sourceTexture=e,this.isExternalTexture=!0}copy(e){return super.copy(e),this.sourceTexture=e.sourceTexture,this}},Nu=class e extends il{constructor(e=1,t=1,n=1,r=1,i=1,a=1){super(),this.type=`BoxGeometry`,this.parameters={width:e,height:t,depth:n,widthSegments:r,heightSegments:i,depthSegments:a};let o=this;r=Math.floor(r),i=Math.floor(i),a=Math.floor(a);let s=[],c=[],l=[],u=[],d=0,f=0;p(`z`,`y`,`x`,-1,-1,n,t,e,a,i,0),p(`z`,`y`,`x`,1,-1,n,t,-e,a,i,1),p(`x`,`z`,`y`,1,1,e,n,t,r,a,2),p(`x`,`z`,`y`,1,-1,e,n,-t,r,a,3),p(`x`,`y`,`z`,1,-1,e,t,n,r,i,4),p(`x`,`y`,`z`,-1,-1,e,t,-n,r,i,5),this.setIndex(s),this.setAttribute(`position`,new Kc(c,3)),this.setAttribute(`normal`,new Kc(l,3)),this.setAttribute(`uv`,new Kc(u,2));function p(e,t,n,r,i,a,p,m,h,g,_){let v=a/h,y=p/g,b=a/2,x=p/2,S=m/2,C=h+1,w=g+1,T=0,E=0,D=new B;for(let a=0;a0?1:-1,l.push(D.x,D.y,D.z),u.push(s/h),u.push(1-a/g),T+=1}for(let e=0;e0){let e=(_-1)*m;for(let t=0;t0&&v(!0),t>0&&v(!1)),this.setIndex(l),this.setAttribute(`position`,new Kc(u,3)),this.setAttribute(`normal`,new Kc(d,3)),this.setAttribute(`uv`,new Kc(f,2));function _(){let a=new B,_=new B,v=0,y=(t-e)/n;for(let c=0;c<=i;c++){let l=[],g=c/i,v=g*(t-e)+e;for(let e=0;e<=r;e++){let t=e/r,i=t*s+o,c=Math.sin(i),m=Math.cos(i);_.x=v*c,_.y=-g*n+h,_.z=v*m,u.push(_.x,_.y,_.z),a.set(c,y,m).normalize(),d.push(a.x,a.y,a.z),f.push(t,1-g),l.push(p++)}m.push(l)}for(let n=0;n0||r!==0)&&(l.push(a,o,c),v+=3),(t>0||r!==i-1)&&(l.push(o,s,c),v+=3)}c.addGroup(g,v,0),g+=v}function v(n){let i=p,a=new z,m=new B,_=0,v=n===!0?e:t,y=n===!0?1:-1;for(let e=1;e<=r;e++)u.push(0,h*y,0),d.push(0,y,0),f.push(.5,.5),p++;let b=p;for(let e=0;e<=r;e++){let t=e/r*s+o,n=Math.cos(t),i=Math.sin(t);m.x=v*i,m.y=h*y,m.z=v*n,u.push(m.x,m.y,m.z),d.push(0,y,0),a.x=n*.5+.5,a.y=i*.5*y+.5,f.push(a.x,a.y),p++}for(let e=0;e.9&&Math.min(t,n,r)<.1&&(t<.2&&(a[e+0]+=1),n<.2&&(a[e+2]+=1),r<.2&&(a[e+4]+=1))}}function d(e){i.push(e.x,e.y,e.z)}function f(t,n){let r=t*3;n.x=e[r+0],n.y=e[r+1],n.z=e[r+2]}function p(){let e=new B,t=new B,n=new B,r=new B,o=new z,s=new z,c=new z;for(let l=0,u=0;l0)s=r-1;else{s=r;break}if(r=s,n[r]===a)return r/(i-1);let l=n[r],u=n[r+1]-l,d=(a-l)/u;return(r+d)/(i-1)}getTangent(e,t){let n=1e-4,r=e-n,i=e+n;r<0&&(r=0),i>1&&(i=1);let a=this.getPoint(r),o=this.getPoint(i),s=t||(a.isVector2?new z:new B);return s.copy(o).sub(a).normalize(),s}getTangentAt(e,t){let n=this.getUtoTmapping(e);return this.getTangent(n,t)}computeFrenetFrames(e,t=!1){let n=new B,r=[],i=[],a=[],o=new B,s=new Ds;for(let t=0;t<=e;t++){let n=t/e;r[t]=this.getTangentAt(n,new B)}i[0]=new B,a[0]=new B;let c=Number.MAX_VALUE,l=Math.abs(r[0].x),u=Math.abs(r[0].y),d=Math.abs(r[0].z);l<=c&&(c=l,n.set(1,0,0)),u<=c&&(c=u,n.set(0,1,0)),d<=c&&n.set(0,0,1),o.crossVectors(r[0],n).normalize(),i[0].crossVectors(r[0],o),a[0].crossVectors(r[0],i[0]);for(let t=1;t<=e;t++){if(i[t]=i[t-1].clone(),a[t]=a[t-1].clone(),o.crossVectors(r[t-1],r[t]),o.length()>2**-52){o.normalize();let e=Math.acos(Io(r[t-1].dot(r[t]),-1,1));i[t].applyMatrix4(s.makeRotationAxis(o,e))}a[t].crossVectors(r[t],i[t])}if(t===!0){let t=Math.acos(Io(i[0].dot(i[e]),-1,1));t/=e,r[0].dot(o.crossVectors(i[0],i[e]))>0&&(t=-t);for(let n=1;n<=e;n++)i[n].applyMatrix4(s.makeRotationAxis(r[n],t*n)),a[n].crossVectors(r[n],i[n])}return{tangents:r,normals:i,binormals:a}}clone(){return new this.constructor().copy(this)}copy(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}toJSON(){let e={metadata:{version:4.7,type:`Curve`,generator:`Curve.toJSON`}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.type,e}fromJSON(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}},Bu=class extends zu{constructor(e=0,t=0,n=1,r=1,i=0,a=Math.PI*2,o=!1,s=0){super(),this.isEllipseCurve=!0,this.type=`EllipseCurve`,this.aX=e,this.aY=t,this.xRadius=n,this.yRadius=r,this.aStartAngle=i,this.aEndAngle=a,this.aClockwise=o,this.aRotation=s}getPoint(e,t=new z){let n=t,r=Math.PI*2,i=this.aEndAngle-this.aStartAngle,a=Math.abs(i)<2**-52;for(;i<0;)i+=r;for(;i>r;)i-=r;i<2**-52&&(i=a?0:r),this.aClockwise===!0&&!a&&(i===r?i=-r:i-=r);let o=this.aStartAngle+e*i,s=this.aX+this.xRadius*Math.cos(o),c=this.aY+this.yRadius*Math.sin(o);if(this.aRotation!==0){let e=Math.cos(this.aRotation),t=Math.sin(this.aRotation),n=s-this.aX,r=c-this.aY;s=n*e-r*t+this.aX,c=n*t+r*e+this.aY}return n.set(s,c)}copy(e){return super.copy(e),this.aX=e.aX,this.aY=e.aY,this.xRadius=e.xRadius,this.yRadius=e.yRadius,this.aStartAngle=e.aStartAngle,this.aEndAngle=e.aEndAngle,this.aClockwise=e.aClockwise,this.aRotation=e.aRotation,this}toJSON(){let e=super.toJSON();return e.aX=this.aX,e.aY=this.aY,e.xRadius=this.xRadius,e.yRadius=this.yRadius,e.aStartAngle=this.aStartAngle,e.aEndAngle=this.aEndAngle,e.aClockwise=this.aClockwise,e.aRotation=this.aRotation,e}fromJSON(e){return super.fromJSON(e),this.aX=e.aX,this.aY=e.aY,this.xRadius=e.xRadius,this.yRadius=e.yRadius,this.aStartAngle=e.aStartAngle,this.aEndAngle=e.aEndAngle,this.aClockwise=e.aClockwise,this.aRotation=e.aRotation,this}},Vu=class extends Bu{constructor(e,t,n,r,i,a){super(e,t,n,n,r,i,a),this.isArcCurve=!0,this.type=`ArcCurve`}};function Hu(){let e=0,t=0,n=0,r=0;function i(i,a,o,s){e=i,t=o,n=-3*i+3*a-2*o-s,r=2*i-2*a+o+s}return{initCatmullRom:function(e,t,n,r,a){i(t,n,a*(n-e),a*(r-t))},initNonuniformCatmullRom:function(e,t,n,r,a,o,s){let c=(t-e)/a-(n-e)/(a+o)+(n-t)/o,l=(n-t)/o-(r-t)/(o+s)+(r-n)/s;c*=o,l*=o,i(t,n,c,l)},calc:function(i){let a=i*i,o=a*i;return e+t*i+n*a+r*o}}}var Uu=new B,Wu=new B,Gu=new Hu,Ku=new Hu,qu=new Hu,Ju=class extends zu{constructor(e=[],t=!1,n=`centripetal`,r=.5){super(),this.isCatmullRomCurve3=!0,this.type=`CatmullRomCurve3`,this.points=e,this.closed=t,this.curveType=n,this.tension=r}getPoint(e,t=new B){let n=t,r=this.points,i=r.length,a=(i-+!this.closed)*e,o=Math.floor(a),s=a-o;this.closed?o+=o>0?0:(Math.floor(Math.abs(o)/i)+1)*i:s===0&&o===i-1&&(o=i-2,s=1);let c,l;this.closed||o>0?c=r[(o-1)%i]:(Wu.subVectors(r[0],r[1]).add(r[0]),c=Wu);let u=r[o%i],d=r[(o+1)%i];if(this.closed||o+2r.length-2?r.length-1:a+1],u=r[a>r.length-3?r.length-1:a+2];return n.set(Yu(o,s.x,c.x,l.x,u.x),Yu(o,s.y,c.y,l.y,u.y)),n}copy(e){super.copy(e),this.points=[];for(let t=0,n=e.points.length;t0)&&f.push(t,i,c),(e!==n-1||s0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;let n={};for(let e in this.extensions)this.extensions[e]===!0&&(n[e]=!0);return Object.keys(n).length>0&&(t.extensions=n),t}fromJSON(e,t){if(super.fromJSON(e,t),e.uniforms!==void 0)for(let n in e.uniforms){let r=e.uniforms[n];switch(this.uniforms[n]={},r.type){case`t`:this.uniforms[n].value=t[r.value]||null;break;case`c`:this.uniforms[n].value=new B().setHex(r.value);break;case`v2`:this.uniforms[n].value=new R().fromArray(r.value);break;case`v3`:this.uniforms[n].value=new z().fromArray(r.value);break;case`v4`:this.uniforms[n].value=new Lo().fromArray(r.value);break;case`m3`:this.uniforms[n].value=new xo().fromArray(r.value);break;case`m4`:this.uniforms[n].value=new Ho().fromArray(r.value);break;default:this.uniforms[n].value=r.value}}if(e.defines!==void 0&&(this.defines=e.defines),e.vertexShader!==void 0&&(this.vertexShader=e.vertexShader),e.fragmentShader!==void 0&&(this.fragmentShader=e.fragmentShader),e.glslVersion!==void 0&&(this.glslVersion=e.glslVersion),e.extensions!==void 0)for(let t in e.extensions)this.extensions[t]=e.extensions[t];return e.lights!==void 0&&(this.lights=e.lights),e.clipping!==void 0&&(this.clipping=e.clipping),this}},Gu=class extends Wu{constructor(e){super(e),this.isRawShaderMaterial=!0,this.type=`RawShaderMaterial`}},Ku=class extends Oc{constructor(e){super(),this.isMeshStandardMaterial=!0,this.type=`MeshStandardMaterial`,this.defines={STANDARD:``},this.color=new B(16777215),this.roughness=1,this.metalness=0,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new B(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new R(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.roughnessMap=null,this.metalnessMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new Qo,this.envMapIntensity=1,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap=`round`,this.wireframeLinejoin=`round`,this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.defines={STANDARD:``},this.color.copy(e.color),this.roughness=e.roughness,this.metalness=e.metalness,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.roughnessMap=e.roughnessMap,this.metalnessMap=e.metalnessMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.envMapIntensity=e.envMapIntensity,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}},qu=class extends Ku{constructor(e){super(),this.isMeshPhysicalMaterial=!0,this.defines={STANDARD:``,PHYSICAL:``},this.type=`MeshPhysicalMaterial`,this.anisotropyRotation=0,this.anisotropyMap=null,this.clearcoatMap=null,this.clearcoatRoughness=0,this.clearcoatRoughnessMap=null,this.clearcoatNormalScale=new R(1,1),this.clearcoatNormalMap=null,this.ior=1.5,Object.defineProperty(this,"reflectivity",{get:function(){return Xa(2.5*(this.ior-1)/(this.ior+1),0,1)},set:function(e){this.ior=(1+.4*e)/(1-.4*e)}}),this.iridescenceMap=null,this.iridescenceIOR=1.3,this.iridescenceThicknessRange=[100,400],this.iridescenceThicknessMap=null,this.sheenColor=new B(0),this.sheenColorMap=null,this.sheenRoughness=1,this.sheenRoughnessMap=null,this.transmissionMap=null,this.thickness=0,this.thicknessMap=null,this.attenuationDistance=1/0,this.attenuationColor=new B(1,1,1),this.specularIntensity=1,this.specularIntensityMap=null,this.specularColor=new B(1,1,1),this.specularColorMap=null,this._anisotropy=0,this._clearcoat=0,this._dispersion=0,this._iridescence=0,this._retroreflectivity=0,this._sheen=0,this._transmission=0,this.setValues(e)}get anisotropy(){return this._anisotropy}set anisotropy(e){this._anisotropy>0!=e>0&&this.version++,this._anisotropy=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!=e>0&&this.version++,this._clearcoat=e}get iridescence(){return this._iridescence}set iridescence(e){this._iridescence>0!=e>0&&this.version++,this._iridescence=e}get dispersion(){return this._dispersion}set dispersion(e){this._dispersion>0!=e>0&&this.version++,this._dispersion=e}get retroreflectivity(){return this._retroreflectivity}set retroreflectivity(e){this._retroreflectivity>0!=e>0&&this.version++,this._retroreflectivity=e}get sheen(){return this._sheen}set sheen(e){this._sheen>0!=e>0&&this.version++,this._sheen=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!=e>0&&this.version++,this._transmission=e}copy(e){return super.copy(e),this.defines={STANDARD:``,PHYSICAL:``},this.anisotropy=e.anisotropy,this.anisotropyRotation=e.anisotropyRotation,this.anisotropyMap=e.anisotropyMap,this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.dispersion=e.dispersion,this.ior=e.ior,this.iridescence=e.iridescence,this.iridescenceMap=e.iridescenceMap,this.iridescenceIOR=e.iridescenceIOR,this.iridescenceThicknessRange=[...e.iridescenceThicknessRange],this.iridescenceThicknessMap=e.iridescenceThicknessMap,this.retroreflectivity=e.retroreflectivity,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}},Ju=class extends Oc{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type=`MeshDepthMaterial`,this.depthPacking=Ca,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}},Yu=class extends Oc{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type=`MeshDistanceMaterial`,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}};function Xu(e,t){return!e||e.constructor===t?e:typeof t.BYTES_PER_ELEMENT==`number`?new t(e):Array.prototype.slice.call(e)}function Zu(e){return e!==void 0&&e.inTangents!==void 0&&e.outTangents!==void 0}function Qu(e){function t(t,n){return e[t]-e[n]}let n=e.length,r=Array(n);for(let e=0;e!==n;++e)r[e]=e;return r.sort(t),r}function $u(e,t,n){let r=e.length,i=new e.constructor(r);for(let a=0,o=0;o!==r;++a){let r=n[a]*t;for(let n=0;n!==t;++n)i[o++]=e[r+n]}return i}function ed(e,t,n,r){let i=1,a=e[0];for(;a!==void 0&&a[r]===void 0;)a=e[i++];if(a===void 0)return;let o=a[r];if(o!==void 0){if(Array.isArray(o))do o=a[r],o!==void 0&&(t.push(a.time),n.push(...o)),a=e[i++];while(a!==void 0);else if(o.toArray!==void 0)do o=a[r],o!==void 0&&(t.push(a.time),o.toArray(n,n.length)),a=e[i++];while(a!==void 0);else do o=a[r],o!==void 0&&(t.push(a.time),n.push(o)),a=e[i++];while(a!==void 0)}}var td=class{constructor(e,t,n,r){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=r===void 0?new t.constructor(n):r,this.sampleValues=t,this.valueSize=n,this.settings=null,this.DefaultSettings_={}}evaluate(e){let t=this.parameterPositions,n=this._cachedIndex,r=t[n],i=t[n-1];validate_interval:{seek:{let a;linear_scan:{forward_scan:if(!(e=i)){let o=t[1];e=i)break seek}a=n,n=0;break linear_scan}break validate_interval}for(;n>>1;et;)--a;if(++a,i!==0||a!==r){i>=a&&(a=Math.max(a,1),i=a-1);let e=this.getValueSize();this.times=n.slice(i,a),this.values=this.values.slice(i*e,a*e)}return this}validate(){let e=!0,t=this.getValueSize();t-Math.floor(t)!==0&&(Ba(`KeyframeTrack: Invalid value size in track.`,this),e=!1);let n=this.times,r=this.values,i=n.length;i===0&&(Ba(`KeyframeTrack: Track is empty.`,this),e=!1);let a=null;for(let t=0;t!==i;t++){let r=n[t];if(typeof r==`number`&&isNaN(r)){Ba(`KeyframeTrack: Time is not a valid number.`,this,t,r),e=!1;break}if(a!==null&&a>r){Ba(`KeyframeTrack: Out of order keys.`,this,t,r,a),e=!1;break}a=r}if(r!==void 0&&Na(r))for(let t=0,n=r.length;t!==n;++t){let n=r[t];if(isNaN(n)){Ba(`KeyframeTrack: Value is not a valid number.`,this,t,n),e=!1;break}}return e}optimize(){let e=this.times.slice(),t=this.values.slice(),n=this.getValueSize(),r=this.getInterpolation()===_a,i=e.length-1,a=1;for(let o=1;o0){e[a]=e[i];for(let e=i*n,r=a*n,o=0;o!==n;++o)t[r+o]=t[e+o];++a}return a===e.length?(this.times=e,this.values=t):(this.times=e.slice(0,a),this.values=t.slice(0,a*n)),this}clone(){let e=this.times.slice(),t=this.values.slice(),n=this.constructor,r=new n(this.name,e,t);return r.createInterpolant=this.createInterpolant,Zu(this.settings)&&(r.settings={inTangents:this.settings.inTangents.slice(),outTangents:this.settings.outTangents.slice()}),r}};function ud(e,t){for(let n=0,r=e.length;n!==r;n+=2)e[n]*=t}ld.prototype.ValueTypeName=``,ld.prototype.TimeBufferType=Float32Array,ld.prototype.ValueBufferType=Float32Array,ld.prototype.DefaultInterpolation=ga;var dd=class extends ld{constructor(e,t,n){super(e,t,n)}};dd.prototype.ValueTypeName=`bool`,dd.prototype.ValueBufferType=Array,dd.prototype.DefaultInterpolation=ha,dd.prototype.InterpolantFactoryMethodLinear=void 0,dd.prototype.InterpolantFactoryMethodSmooth=void 0;var fd=class extends ld{constructor(e,t,n,r){super(e,t,n,r)}};fd.prototype.ValueTypeName=`color`;var pd=class extends ld{constructor(e,t,n,r){super(e,t,n,r)}};pd.prototype.ValueTypeName=`number`;var md=class extends td{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e,t,n,r){let i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=(n-t)/(r-t),c=e*o;for(let e=c+o;c!==e;c+=4)vo.slerpFlat(i,0,a,c-o,a,c,s);return i}},hd=class extends ld{constructor(e,t,n,r){super(e,t,n,r)}InterpolantFactoryMethodLinear(e){return new md(this.times,this.values,this.getValueSize(),e)}};hd.prototype.ValueTypeName=`quaternion`,hd.prototype.InterpolantFactoryMethodSmooth=void 0;var gd=class extends ld{constructor(e,t,n){super(e,t,n)}};gd.prototype.ValueTypeName=`string`,gd.prototype.ValueBufferType=Array,gd.prototype.DefaultInterpolation=ha,gd.prototype.InterpolantFactoryMethodLinear=void 0,gd.prototype.InterpolantFactoryMethodSmooth=void 0;var _d=class extends ld{constructor(e,t,n,r){super(e,t,n,r)}};_d.prototype.ValueTypeName=`vector`;var vd=class{constructor(e=``,t=-1,n=[],r=Sa){this.name=e,this.tracks=n,this.duration=t,this.blendMode=r,this.uuid=Ya(),this.userData={},this.duration<0&&this.resetDuration()}static parse(e){let t=[],n=e.tracks,r=1/(e.fps||1);for(let e=0,i=n.length;e!==i;++e)t.push(bd(n[e]).scale(r));let i=new this(e.name,e.duration,t,e.blendMode);return i.uuid=e.uuid,i.userData=JSON.parse(e.userData||`{}`),i}static toJSON(e){let t=[],n=e.tracks,r={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode,userData:JSON.stringify(e.userData)};for(let e=0,r=n.length;e!==r;++e)t.push(ld.toJSON(n[e]));return r}static CreateFromMorphTargetSequence(e,t,n,r){let i=t.length,a=[];for(let e=0;e1){let e=a[1],t=r[e];t||(r[e]=t=[]),t.push(n)}}let a=[];for(let e in r)a.push(this.CreateFromMorphTargetSequence(e,r[e],t,n));return a}resetDuration(){let e=this.tracks,t=0;for(let n=0,r=e.length;n!==r;++n){let e=this.tracks[n];t=Math.max(t,e.times[e.times.length-1])}return this.duration=t,this}trim(){for(let e=0;e{t&&t(i),this.manager.itemEnd(e)},0);return}if(Td[e]!==void 0){Td[e].push({onLoad:t,onProgress:n,onError:r});return}Td[e]=[],Td[e].push({onLoad:t,onProgress:n,onError:r});let a=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?`include`:`same-origin`,signal:typeof AbortSignal.any==`function`?AbortSignal.any([this._abortController.signal,this.manager.abortController.signal]):this._abortController.signal}),o=this.mimeType,s=this.responseType;fetch(a).then(t=>{if(t.status===200||t.status===0){if(t.status===0&&za(`FileLoader: HTTP Status 0 received.`),typeof ReadableStream>`u`||t.body===void 0||t.body.getReader===void 0)return t;let n=Td[e],r=t.body.getReader(),i=t.headers.get(`X-File-Size`)||t.headers.get(`Content-Length`),a=i?parseInt(i):0,o=a!==0,s=0,c=new ReadableStream({start(e){t();function t(){r.read().then(({done:r,value:i})=>{if(r)e.close();else{s+=i.byteLength;let r=new ProgressEvent(`progress`,{lengthComputable:o,loaded:s,total:a});for(let e=0,t=n.length;e{e.error(t)})}}});return new Response(c)}throw new Ed(`fetch for "${t.url}" responded with ${t.status}: ${t.statusText}`,t)}).then(e=>{switch(s){case`arraybuffer`:return e.arrayBuffer();case`blob`:return e.blob();case`document`:return e.text().then(e=>new DOMParser().parseFromString(e,o));case`json`:return e.json();default:if(o===``)return e.text();{let t=/charset="?([^;"\s]*)"?/i.exec(o),n=t&&t[1]?t[1].toLowerCase():void 0,r=new TextDecoder(n);return e.arrayBuffer().then(e=>r.decode(e))}}}).then(t=>{xd.add(`file:${e}`,t);let n=Td[e];delete Td[e];for(let e=0,r=n.length;e{let n=Td[e];if(n===void 0)throw this.manager.itemError(e),t;delete Td[e];for(let e=0,r=n.length;e{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}abort(){return this._abortController.abort(),this._abortController=new AbortController,this}},Od=new WeakMap,kd=class extends wd{constructor(e){super(e)}load(e,t,n,r){this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);let i=this,a=xd.get(`image:${e}`);if(a!==void 0){if(a.complete===!0)i.manager.itemStart(e),setTimeout(function(){t&&t(a),i.manager.itemEnd(e)},0);else{let e=Od.get(a);e===void 0&&(e=[],Od.set(a,e)),e.push({onLoad:t,onError:r})}return a}let o=Pa(`img`);function s(){l(),t&&t(this);let n=Od.get(this)||[];for(let e=0;e`u`&&za(`ImageBitmapLoader: createImageBitmap() not supported.`),typeof fetch>`u`&&za(`ImageBitmapLoader: fetch() not supported.`),this.options={premultiplyAlpha:`none`},this._abortController=new AbortController}setOptions(e){return this.options=e,this}load(e,t,n,r){e===void 0&&(e=``),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);let i=this,a=xd.get(`image-bitmap:${e}`);if(a!==void 0){if(i.manager.itemStart(e),a.then){a.then(n=>{$d.has(a)===!0?(r&&r($d.get(a)),i.manager.itemError(e),i.manager.itemEnd(e)):(t&&t(n),i.manager.itemEnd(e))});return}setTimeout(function(){t&&t(a),i.manager.itemEnd(e)},0);return}let o={};o.credentials=this.crossOrigin===`anonymous`?`same-origin`:`include`,o.headers=this.requestHeader,o.signal=typeof AbortSignal.any==`function`?AbortSignal.any([this._abortController.signal,this.manager.abortController.signal]):this._abortController.signal;let s=fetch(e,o).then(function(e){return e.blob()}).then(function(e){return createImageBitmap(e,Object.assign({},i.options,{colorSpaceConversion:`none`}))}).then(function(n){return xd.add(`image-bitmap:${e}`,n),t&&t(n),i.manager.itemEnd(e),n}).catch(function(t){r&&r(t),$d.set(s,t),xd.remove(`image-bitmap:${e}`),i.manager.itemError(e),i.manager.itemEnd(e)});xd.add(`image-bitmap:${e}`,s),i.manager.itemStart(e)}abort(){return this._abortController.abort(),this._abortController=new AbortController,this}},tf=-90,nf=1,rf=class extends hs{constructor(e,t,n){super(),this.type=`CubeCamera`,this.renderTarget=n,this.coordinateSystem=null,this.activeMipmapLevel=0;let r=new Wd(tf,nf,e,t);r.layers=this.layers,this.add(r);let i=new Wd(tf,nf,e,t);i.layers=this.layers,this.add(i);let a=new Wd(tf,nf,e,t);a.layers=this.layers,this.add(a);let o=new Wd(tf,nf,e,t);o.layers=this.layers,this.add(o);let s=new Wd(tf,nf,e,t);s.layers=this.layers,this.add(s);let c=new Wd(tf,nf,e,t);c.layers=this.layers,this.add(c)}updateCoordinateSystem(){let e=this.coordinateSystem,t=this.children.concat(),[n,r,i,a,o,s]=t;for(let e of t)this.remove(e);if(e===2e3)n.up.set(0,1,0),n.lookAt(1,0,0),r.up.set(0,1,0),r.lookAt(-1,0,0),i.up.set(0,0,-1),i.lookAt(0,1,0),a.up.set(0,0,1),a.lookAt(0,-1,0),o.up.set(0,1,0),o.lookAt(0,0,1),s.up.set(0,1,0),s.lookAt(0,0,-1);else if(e===2001)n.up.set(0,-1,0),n.lookAt(-1,0,0),r.up.set(0,-1,0),r.lookAt(1,0,0),i.up.set(0,0,1),i.lookAt(0,1,0),a.up.set(0,0,-1),a.lookAt(0,-1,0),o.up.set(0,-1,0),o.lookAt(0,0,1),s.up.set(0,-1,0),s.lookAt(0,0,-1);else throw Error(`THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: `+e);for(let e of t)this.add(e),e.updateMatrixWorld()}update(e,t){this.parent===null&&this.updateMatrixWorld();let{renderTarget:n,activeMipmapLevel:r}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());let[i,a,o,s,c,l]=this.children,u=e.getRenderTarget(),d=e.getActiveCubeFace(),f=e.getActiveMipmapLevel(),p=e.xr.enabled;e.xr.enabled=!1;let m=n.texture.generateMipmaps;n.texture.generateMipmaps=!1;let h=!1;h=e.isWebGLRenderer===!0?e.state.buffers.depth.getReversed():e.reversedDepthBuffer,e.setRenderTarget(n,0,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,i),e.setRenderTarget(n,1,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,a),e.setRenderTarget(n,2,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,o),e.setRenderTarget(n,3,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,s),e.setRenderTarget(n,4,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,c),n.texture.generateMipmaps=m,e.setRenderTarget(n,5,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,l),e.setRenderTarget(u,d,f),e.xr.enabled=p,n.texture.needsPMREMUpdate=!0}},af=class extends Wd{constructor(e=[]){super(),this.isArrayCamera=!0,this.isMultiViewCamera=!1,this.cameras=e}},of=class{constructor(){this._previousTime=0,this._currentTime=0,this._startTime=performance.now(),this._delta=0,this._elapsed=0,this._timescale=1,this._document=null,this._pageVisibilityHandler=null}connect(e){this._document=e,e.hidden!==void 0&&(this._pageVisibilityHandler=sf.bind(this),e.addEventListener(`visibilitychange`,this._pageVisibilityHandler,!1))}disconnect(){this._pageVisibilityHandler!==null&&(this._document.removeEventListener(`visibilitychange`,this._pageVisibilityHandler),this._pageVisibilityHandler=null),this._document=null}getDelta(){return this._delta/1e3}getElapsed(){return this._elapsed/1e3}getTimescale(){return this._timescale}setTimescale(e){return this._timescale=e,this}reset(){return this._currentTime=performance.now()-this._startTime,this}dispose(){this.disconnect()}update(e){return this._pageVisibilityHandler!==null&&this._document.hidden===!0?this._delta=0:(this._previousTime=this._currentTime,this._currentTime=(e===void 0?performance.now():e)-this._startTime,this._delta=(this._currentTime-this._previousTime)*this._timescale,this._elapsed+=this._delta),this}};function sf(){this._document.hidden===!1&&this.reset()}var cf=`\\[\\]\\.:\\/`,lf=RegExp(`[\\[\\]\\.:\\/]`,`g`),uf=`[^\\[\\]\\.:\\/]`,df=`[^`+cf.replace(`\\.`,``)+`]`,ff=`((?:WC+[\\/:])*)`.replace(`WC`,uf),pf=`(WCOD+)?`.replace(`WCOD`,df),mf=`(?:\\.(WC+)(?:\\[(.+)\\])?)?`.replace(`WC`,uf),hf=`\\.(WC+)(?:\\[(.+)\\])?`.replace(`WC`,uf),gf=RegExp(`^`+ff+pf+mf+hf+`$`),_f=[`material`,`materials`,`bones`,`map`],vf=class{constructor(e,t,n){let r=n||yf.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,r)}getValue(e,t){this.bind();let n=this._targetGroup.nCachedObjects_,r=this._bindings[n];r!==void 0&&r.getValue(e,t)}setValue(e,t){let n=this._bindings;for(let r=this._targetGroup.nCachedObjects_,i=n.length;r!==i;++r)n[r].setValue(e,t)}bind(){let e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].bind()}unbind(){let e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].unbind()}},yf=class e{constructor(t,n,r){this.path=n,this.parsedPath=r||e.parseTrackName(n),this.node=e.findNode(t,this.parsedPath.nodeName),this.rootNode=t,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(t,n,r){return t&&t.isAnimationObjectGroup?new e.Composite(t,n,r):new e(t,n,r)}static sanitizeNodeName(e){return e.replace(/\s/g,`_`).replace(lf,``)}static parseTrackName(e){let t=gf.exec(e);if(t===null)throw Error(`THREE.PropertyBinding: Cannot parse trackName: `+e);let n={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},r=n.nodeName&&n.nodeName.lastIndexOf(`.`);if(r!==void 0&&r!==-1){let e=n.nodeName.substring(r+1);_f.indexOf(e)!==-1&&(n.nodeName=n.nodeName.substring(0,r),n.objectName=e)}if(n.propertyName===null||n.propertyName.length===0)throw Error(`THREE.PropertyBinding: can not parse propertyName from trackName: `+e);return n}static findNode(e,t){if(t===void 0||t===``||t===`.`||t===-1||t===e.name||t===e.uuid)return e;if(e.skeleton){let n=e.skeleton.getBoneByName(t);if(n!==void 0)return n}if(e.children){let n=function(e){for(let r=0;r=this.min.x&&e.x<=this.max.x&&e.y>=this.min.y&&e.y<=this.max.y}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y))}intersectsBox(e){return e.max.x>=this.min.x&&e.min.x<=this.max.x&&e.max.y>=this.min.y&&e.min.y<=this.max.y}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,bf).distanceTo(e)}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}},Sf=new z,Cf=new Ho,wf=new Ho,Tf=class extends Pl{constructor(e){let t=Ef(e),n=new yc,r=[],i=[];for(let e=0;ee.start-t.start);let t=0;for(let e=1;e0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;let n={};for(let e in this.extensions)this.extensions[e]===!0&&(n[e]=!0);return Object.keys(n).length>0&&(t.extensions=n),t}fromJSON(e,t){if(super.fromJSON(e,t),e.uniforms!==void 0)for(let n in e.uniforms){let r=e.uniforms[n];switch(this.uniforms[n]={},r.type){case`t`:this.uniforms[n].value=t[r.value]||null;break;case`c`:this.uniforms[n].value=new V().setHex(r.value);break;case`v2`:this.uniforms[n].value=new z().fromArray(r.value);break;case`v3`:this.uniforms[n].value=new B().fromArray(r.value);break;case`v4`:this.uniforms[n].value=new Ss().fromArray(r.value);break;case`m3`:this.uniforms[n].value=new os().fromArray(r.value);break;case`m4`:this.uniforms[n].value=new Ds().fromArray(r.value);break;default:this.uniforms[n].value=r.value}}if(e.defines!==void 0&&(this.defines=e.defines),e.vertexShader!==void 0&&(this.vertexShader=e.vertexShader),e.fragmentShader!==void 0&&(this.fragmentShader=e.fragmentShader),e.glslVersion!==void 0&&(this.glslVersion=e.glslVersion),e.extensions!==void 0)for(let t in e.extensions)this.extensions[t]=e.extensions[t];return e.lights!==void 0&&(this.lights=e.lights),e.clipping!==void 0&&(this.clipping=e.clipping),this}},Ad=class extends kd{constructor(e){super(e),this.isRawShaderMaterial=!0,this.type=`RawShaderMaterial`}},jd=class extends pl{constructor(e){super(),this.isMeshStandardMaterial=!0,this.type=`MeshStandardMaterial`,this.defines={STANDARD:``},this.color=new V(16777215),this.roughness=1,this.metalness=0,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new V(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new z(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.roughnessMap=null,this.metalnessMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new Ls,this.envMapIntensity=1,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap=`round`,this.wireframeLinejoin=`round`,this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.defines={STANDARD:``},this.color.copy(e.color),this.roughness=e.roughness,this.metalness=e.metalness,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.roughnessMap=e.roughnessMap,this.metalnessMap=e.metalnessMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.envMapIntensity=e.envMapIntensity,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}},Md=class extends jd{constructor(e){super(),this.isMeshPhysicalMaterial=!0,this.defines={STANDARD:``,PHYSICAL:``},this.type=`MeshPhysicalMaterial`,this.anisotropyRotation=0,this.anisotropyMap=null,this.clearcoatMap=null,this.clearcoatRoughness=0,this.clearcoatRoughnessMap=null,this.clearcoatNormalScale=new z(1,1),this.clearcoatNormalMap=null,this.ior=1.5,Object.defineProperty(this,"reflectivity",{get:function(){return Io(2.5*(this.ior-1)/(this.ior+1),0,1)},set:function(e){this.ior=(1+.4*e)/(1-.4*e)}}),this.iridescenceMap=null,this.iridescenceIOR=1.3,this.iridescenceThicknessRange=[100,400],this.iridescenceThicknessMap=null,this.sheenColor=new V(0),this.sheenColorMap=null,this.sheenRoughness=1,this.sheenRoughnessMap=null,this.transmissionMap=null,this.thickness=0,this.thicknessMap=null,this.attenuationDistance=1/0,this.attenuationColor=new V(1,1,1),this.specularIntensity=1,this.specularIntensityMap=null,this.specularColor=new V(1,1,1),this.specularColorMap=null,this._anisotropy=0,this._clearcoat=0,this._dispersion=0,this._iridescence=0,this._retroreflectivity=0,this._sheen=0,this._transmission=0,this.setValues(e)}get anisotropy(){return this._anisotropy}set anisotropy(e){this._anisotropy>0!=e>0&&this.version++,this._anisotropy=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!=e>0&&this.version++,this._clearcoat=e}get iridescence(){return this._iridescence}set iridescence(e){this._iridescence>0!=e>0&&this.version++,this._iridescence=e}get dispersion(){return this._dispersion}set dispersion(e){this._dispersion>0!=e>0&&this.version++,this._dispersion=e}get retroreflectivity(){return this._retroreflectivity}set retroreflectivity(e){this._retroreflectivity>0!=e>0&&this.version++,this._retroreflectivity=e}get sheen(){return this._sheen}set sheen(e){this._sheen>0!=e>0&&this.version++,this._sheen=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!=e>0&&this.version++,this._transmission=e}copy(e){return super.copy(e),this.defines={STANDARD:``,PHYSICAL:``},this.anisotropy=e.anisotropy,this.anisotropyRotation=e.anisotropyRotation,this.anisotropyMap=e.anisotropyMap,this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.dispersion=e.dispersion,this.ior=e.ior,this.iridescence=e.iridescence,this.iridescenceMap=e.iridescenceMap,this.iridescenceIOR=e.iridescenceIOR,this.iridescenceThicknessRange=[...e.iridescenceThicknessRange],this.iridescenceThicknessMap=e.iridescenceThicknessMap,this.retroreflectivity=e.retroreflectivity,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}},Nd=class extends pl{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type=`MeshDepthMaterial`,this.depthPacking=co,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}},Pd=class extends pl{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type=`MeshDistanceMaterial`,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}};function Fd(e,t){return!e||e.constructor===t?e:typeof t.BYTES_PER_ELEMENT==`number`?new t(e):Array.prototype.slice.call(e)}function Id(e){return e!==void 0&&e.inTangents!==void 0&&e.outTangents!==void 0}function Ld(e){function t(t,n){return e[t]-e[n]}let n=e.length,r=Array(n);for(let e=0;e!==n;++e)r[e]=e;return r.sort(t),r}function Rd(e,t,n){let r=e.length,i=new e.constructor(r);for(let a=0,o=0;o!==r;++a){let r=n[a]*t;for(let n=0;n!==t;++n)i[o++]=e[r+n]}return i}function zd(e,t,n,r){let i=1,a=e[0];for(;a!==void 0&&a[r]===void 0;)a=e[i++];if(a===void 0)return;let o=a[r];if(o!==void 0){if(Array.isArray(o))do o=a[r],o!==void 0&&(t.push(a.time),n.push(...o)),a=e[i++];while(a!==void 0);else if(o.toArray!==void 0)do o=a[r],o!==void 0&&(t.push(a.time),o.toArray(n,n.length)),a=e[i++];while(a!==void 0);else do o=a[r],o!==void 0&&(t.push(a.time),n.push(o)),a=e[i++];while(a!==void 0)}}var Bd=class{constructor(e,t,n,r){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=r===void 0?new t.constructor(n):r,this.sampleValues=t,this.valueSize=n,this.settings=null,this.DefaultSettings_={}}evaluate(e){let t=this.parameterPositions,n=this._cachedIndex,r=t[n],i=t[n-1];validate_interval:{seek:{let a;linear_scan:{forward_scan:if(!(e=i)){let o=t[1];e=i)break seek}a=n,n=0;break linear_scan}break validate_interval}for(;n>>1;et;)--a;if(++a,i!==0||a!==r){i>=a&&(a=Math.max(a,1),i=a-1);let e=this.getValueSize();this.times=n.slice(i,a),this.values=this.values.slice(i*e,a*e)}return this}validate(){let e=!0,t=this.getValueSize();t-Math.floor(t)!==0&&(Eo(`KeyframeTrack: Invalid value size in track.`,this),e=!1);let n=this.times,r=this.values,i=n.length;i===0&&(Eo(`KeyframeTrack: Track is empty.`,this),e=!1);let a=null;for(let t=0;t!==i;t++){let r=n[t];if(typeof r==`number`&&isNaN(r)){Eo(`KeyframeTrack: Time is not a valid number.`,this,t,r),e=!1;break}if(a!==null&&a>r){Eo(`KeyframeTrack: Out of order keys.`,this,t,r,a),e=!1;break}a=r}if(r!==void 0&&yo(r))for(let t=0,n=r.length;t!==n;++t){let n=r[t];if(isNaN(n)){Eo(`KeyframeTrack: Value is not a valid number.`,this,t,n),e=!1;break}}return e}optimize(){let e=this.times.slice(),t=this.values.slice(),n=this.getValueSize(),r=this.getInterpolation()===no,i=e.length-1,a=1;for(let o=1;o0){e[a]=e[i];for(let e=i*n,r=a*n,o=0;o!==n;++o)t[r+o]=t[e+o];++a}return a===e.length?(this.times=e,this.values=t):(this.times=e.slice(0,a),this.values=t.slice(0,a*n)),this}clone(){let e=this.times.slice(),t=this.values.slice(),n=this.constructor,r=new n(this.name,e,t);return r.createInterpolant=this.createInterpolant,Id(this.settings)&&(r.settings={inTangents:this.settings.inTangents.slice(),outTangents:this.settings.outTangents.slice()}),r}};function Yd(e,t){for(let n=0,r=e.length;n!==r;n+=2)e[n]*=t}Jd.prototype.ValueTypeName=``,Jd.prototype.TimeBufferType=Float32Array,Jd.prototype.ValueBufferType=Float32Array,Jd.prototype.DefaultInterpolation=to;var Xd=class extends Jd{constructor(e,t,n){super(e,t,n)}};Xd.prototype.ValueTypeName=`bool`,Xd.prototype.ValueBufferType=Array,Xd.prototype.DefaultInterpolation=eo,Xd.prototype.InterpolantFactoryMethodLinear=void 0,Xd.prototype.InterpolantFactoryMethodSmooth=void 0;var Zd=class extends Jd{constructor(e,t,n,r){super(e,t,n,r)}};Zd.prototype.ValueTypeName=`color`;var Qd=class extends Jd{constructor(e,t,n,r){super(e,t,n,r)}};Qd.prototype.ValueTypeName=`number`;var $d=class extends Bd{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e,t,n,r){let i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=(n-t)/(r-t),c=e*o;for(let e=c+o;c!==e;c+=4)rs.slerpFlat(i,0,a,c-o,a,c,s);return i}},ef=class extends Jd{constructor(e,t,n,r){super(e,t,n,r)}InterpolantFactoryMethodLinear(e){return new $d(this.times,this.values,this.getValueSize(),e)}};ef.prototype.ValueTypeName=`quaternion`,ef.prototype.InterpolantFactoryMethodSmooth=void 0;var tf=class extends Jd{constructor(e,t,n){super(e,t,n)}};tf.prototype.ValueTypeName=`string`,tf.prototype.ValueBufferType=Array,tf.prototype.DefaultInterpolation=eo,tf.prototype.InterpolantFactoryMethodLinear=void 0,tf.prototype.InterpolantFactoryMethodSmooth=void 0;var nf=class extends Jd{constructor(e,t,n,r){super(e,t,n,r)}};nf.prototype.ValueTypeName=`vector`;var rf=class{constructor(e=``,t=-1,n=[],r=so){this.name=e,this.tracks=n,this.duration=t,this.blendMode=r,this.uuid=Fo(),this.userData={},this.duration<0&&this.resetDuration()}static parse(e){let t=[],n=e.tracks,r=1/(e.fps||1);for(let e=0,i=n.length;e!==i;++e)t.push(of(n[e]).scale(r));let i=new this(e.name,e.duration,t,e.blendMode);return i.uuid=e.uuid,i.userData=JSON.parse(e.userData||`{}`),i}static toJSON(e){let t=[],n=e.tracks,r={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode,userData:JSON.stringify(e.userData)};for(let e=0,r=n.length;e!==r;++e)t.push(Jd.toJSON(n[e]));return r}static CreateFromMorphTargetSequence(e,t,n,r){let i=t.length,a=[];for(let e=0;e1){let e=a[1],t=r[e];t||(r[e]=t=[]),t.push(n)}}let a=[];for(let e in r)a.push(this.CreateFromMorphTargetSequence(e,r[e],t,n));return a}resetDuration(){let e=this.tracks,t=0;for(let n=0,r=e.length;n!==r;++n){let e=this.tracks[n];t=Math.max(t,e.times[e.times.length-1])}return this.duration=t,this}trim(){for(let e=0;e{t&&t(i),this.manager.itemEnd(e)},0);return}if(df[e]!==void 0){df[e].push({onLoad:t,onProgress:n,onError:r});return}df[e]=[],df[e].push({onLoad:t,onProgress:n,onError:r});let a=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?`include`:`same-origin`,signal:typeof AbortSignal.any==`function`?AbortSignal.any([this._abortController.signal,this.manager.abortController.signal]):this._abortController.signal}),o=this.mimeType,s=this.responseType;fetch(a).then(t=>{if(t.status===200||t.status===0){if(t.status===0&&To(`FileLoader: HTTP Status 0 received.`),typeof ReadableStream>`u`||t.body===void 0||t.body.getReader===void 0)return t;let n=df[e],r=t.body.getReader(),i=t.headers.get(`X-File-Size`)||t.headers.get(`Content-Length`),a=i?parseInt(i):0,o=a!==0,s=0,c=new ReadableStream({start(e){t();function t(){r.read().then(({done:r,value:i})=>{if(r)e.close();else{s+=i.byteLength;let r=new ProgressEvent(`progress`,{lengthComputable:o,loaded:s,total:a});for(let e=0,t=n.length;e{e.error(t)})}}});return new Response(c)}throw new ff(`fetch for "${t.url}" responded with ${t.status}: ${t.statusText}`,t)}).then(e=>{switch(s){case`arraybuffer`:return e.arrayBuffer();case`blob`:return e.blob();case`document`:return e.text().then(e=>new DOMParser().parseFromString(e,o));case`json`:return e.json();default:if(o===``)return e.text();{let t=/charset="?([^;"\s]*)"?/i.exec(o),n=t&&t[1]?t[1].toLowerCase():void 0,r=new TextDecoder(n);return e.arrayBuffer().then(e=>r.decode(e))}}}).then(t=>{sf.add(`file:${e}`,t);let n=df[e];delete df[e];for(let e=0,r=n.length;e{let n=df[e];if(n===void 0)throw this.manager.itemError(e),t;delete df[e];for(let e=0,r=n.length;e{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}abort(){return this._abortController.abort(),this._abortController=new AbortController,this}},mf=new WeakMap,hf=class extends uf{constructor(e){super(e)}load(e,t,n,r){this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);let i=this,a=sf.get(`image:${e}`);if(a!==void 0){if(a.complete===!0)i.manager.itemStart(e),setTimeout(function(){t&&t(a),i.manager.itemEnd(e)},0);else{let e=mf.get(a);e===void 0&&(e=[],mf.set(a,e)),e.push({onLoad:t,onError:r})}return a}let o=bo(`img`);function s(){l(),t&&t(this);let n=mf.get(this)||[];for(let e=0;e`u`&&To(`ImageBitmapLoader: createImageBitmap() not supported.`),typeof fetch>`u`&&To(`ImageBitmapLoader: fetch() not supported.`),this.options={premultiplyAlpha:`none`},this._abortController=new AbortController}setOptions(e){return this.options=e,this}load(e,t,n,r){e===void 0&&(e=``),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);let i=this,a=sf.get(`image-bitmap:${e}`);if(a!==void 0){if(i.manager.itemStart(e),a.then){a.then(n=>{zf.has(a)===!0?(r&&r(zf.get(a)),i.manager.itemError(e),i.manager.itemEnd(e)):(t&&t(n),i.manager.itemEnd(e))});return}setTimeout(function(){t&&t(a),i.manager.itemEnd(e)},0);return}let o={};o.credentials=this.crossOrigin===`anonymous`?`same-origin`:`include`,o.headers=this.requestHeader,o.signal=typeof AbortSignal.any==`function`?AbortSignal.any([this._abortController.signal,this.manager.abortController.signal]):this._abortController.signal;let s=fetch(e,o).then(function(e){return e.blob()}).then(function(e){return createImageBitmap(e,Object.assign({},i.options,{colorSpaceConversion:`none`}))}).then(function(n){return sf.add(`image-bitmap:${e}`,n),t&&t(n),i.manager.itemEnd(e),n}).catch(function(t){r&&r(t),zf.set(s,t),sf.remove(`image-bitmap:${e}`),i.manager.itemError(e),i.manager.itemEnd(e)});sf.add(`image-bitmap:${e}`,s),i.manager.itemStart(e)}abort(){return this._abortController.abort(),this._abortController=new AbortController,this}},Vf=-90,Hf=1,Uf=class extends ec{constructor(e,t,n){super(),this.type=`CubeCamera`,this.renderTarget=n,this.coordinateSystem=null,this.activeMipmapLevel=0;let r=new Af(Vf,Hf,e,t);r.layers=this.layers,this.add(r);let i=new Af(Vf,Hf,e,t);i.layers=this.layers,this.add(i);let a=new Af(Vf,Hf,e,t);a.layers=this.layers,this.add(a);let o=new Af(Vf,Hf,e,t);o.layers=this.layers,this.add(o);let s=new Af(Vf,Hf,e,t);s.layers=this.layers,this.add(s);let c=new Af(Vf,Hf,e,t);c.layers=this.layers,this.add(c)}updateCoordinateSystem(){let e=this.coordinateSystem,t=this.children.concat(),[n,r,i,a,o,s]=t;for(let e of t)this.remove(e);if(e===2e3)n.up.set(0,1,0),n.lookAt(1,0,0),r.up.set(0,1,0),r.lookAt(-1,0,0),i.up.set(0,0,-1),i.lookAt(0,1,0),a.up.set(0,0,1),a.lookAt(0,-1,0),o.up.set(0,1,0),o.lookAt(0,0,1),s.up.set(0,1,0),s.lookAt(0,0,-1);else if(e===2001)n.up.set(0,-1,0),n.lookAt(-1,0,0),r.up.set(0,-1,0),r.lookAt(1,0,0),i.up.set(0,0,1),i.lookAt(0,1,0),a.up.set(0,0,-1),a.lookAt(0,-1,0),o.up.set(0,-1,0),o.lookAt(0,0,1),s.up.set(0,-1,0),s.lookAt(0,0,-1);else throw Error(`THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: `+e);for(let e of t)this.add(e),e.updateMatrixWorld()}update(e,t){this.parent===null&&this.updateMatrixWorld();let{renderTarget:n,activeMipmapLevel:r}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());let[i,a,o,s,c,l]=this.children,u=e.getRenderTarget(),d=e.getActiveCubeFace(),f=e.getActiveMipmapLevel(),p=e.xr.enabled;e.xr.enabled=!1;let m=n.texture.generateMipmaps;n.texture.generateMipmaps=!1;let h=!1;h=e.isWebGLRenderer===!0?e.state.buffers.depth.getReversed():e.reversedDepthBuffer,e.setRenderTarget(n,0,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,i),e.setRenderTarget(n,1,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,a),e.setRenderTarget(n,2,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,o),e.setRenderTarget(n,3,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,s),e.setRenderTarget(n,4,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,c),n.texture.generateMipmaps=m,e.setRenderTarget(n,5,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,l),e.setRenderTarget(u,d,f),e.xr.enabled=p,n.texture.needsPMREMUpdate=!0}},Wf=class extends Af{constructor(e=[]){super(),this.isArrayCamera=!0,this.isMultiViewCamera=!1,this.cameras=e}},Gf=class{constructor(){this._previousTime=0,this._currentTime=0,this._startTime=performance.now(),this._delta=0,this._elapsed=0,this._timescale=1,this._document=null,this._pageVisibilityHandler=null}connect(e){this._document=e,e.hidden!==void 0&&(this._pageVisibilityHandler=Kf.bind(this),e.addEventListener(`visibilitychange`,this._pageVisibilityHandler,!1))}disconnect(){this._pageVisibilityHandler!==null&&(this._document.removeEventListener(`visibilitychange`,this._pageVisibilityHandler),this._pageVisibilityHandler=null),this._document=null}getDelta(){return this._delta/1e3}getElapsed(){return this._elapsed/1e3}getTimescale(){return this._timescale}setTimescale(e){return this._timescale=e,this}reset(){return this._currentTime=performance.now()-this._startTime,this}dispose(){this.disconnect()}update(e){return this._pageVisibilityHandler!==null&&this._document.hidden===!0?this._delta=0:(this._previousTime=this._currentTime,this._currentTime=(e===void 0?performance.now():e)-this._startTime,this._delta=(this._currentTime-this._previousTime)*this._timescale,this._elapsed+=this._delta),this}};function Kf(){this._document.hidden===!1&&this.reset()}var qf=`\\[\\]\\.:\\/`,Jf=RegExp(`[\\[\\]\\.:\\/]`,`g`),Yf=`[^\\[\\]\\.:\\/]`,Xf=`[^`+qf.replace(`\\.`,``)+`]`,Zf=`((?:WC+[\\/:])*)`.replace(`WC`,Yf),Qf=`(WCOD+)?`.replace(`WCOD`,Xf),$f=`(?:\\.(WC+)(?:\\[(.+)\\])?)?`.replace(`WC`,Yf),ep=`\\.(WC+)(?:\\[(.+)\\])?`.replace(`WC`,Yf),tp=RegExp(`^`+Zf+Qf+$f+ep+`$`),np=[`material`,`materials`,`bones`,`map`],rp=class{constructor(e,t,n){let r=n||ip.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,r)}getValue(e,t){this.bind();let n=this._targetGroup.nCachedObjects_,r=this._bindings[n];r!==void 0&&r.getValue(e,t)}setValue(e,t){let n=this._bindings;for(let r=this._targetGroup.nCachedObjects_,i=n.length;r!==i;++r)n[r].setValue(e,t)}bind(){let e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].bind()}unbind(){let e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].unbind()}},ip=class e{constructor(t,n,r){this.path=n,this.parsedPath=r||e.parseTrackName(n),this.node=e.findNode(t,this.parsedPath.nodeName),this.rootNode=t,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(t,n,r){return t&&t.isAnimationObjectGroup?new e.Composite(t,n,r):new e(t,n,r)}static sanitizeNodeName(e){return e.replace(/\s/g,`_`).replace(Jf,``)}static parseTrackName(e){let t=tp.exec(e);if(t===null)throw Error(`THREE.PropertyBinding: Cannot parse trackName: `+e);let n={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},r=n.nodeName&&n.nodeName.lastIndexOf(`.`);if(r!==void 0&&r!==-1){let e=n.nodeName.substring(r+1);np.indexOf(e)!==-1&&(n.nodeName=n.nodeName.substring(0,r),n.objectName=e)}if(n.propertyName===null||n.propertyName.length===0)throw Error(`THREE.PropertyBinding: can not parse propertyName from trackName: `+e);return n}static findNode(e,t){if(t===void 0||t===``||t===`.`||t===-1||t===e.name||t===e.uuid)return e;if(e.skeleton){let n=e.skeleton.getBoneByName(t);if(n!==void 0)return n}if(e.children){let n=function(e){for(let r=0;r=this.min.x&&e.x<=this.max.x&&e.y>=this.min.y&&e.y<=this.max.y}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y))}intersectsBox(e){return e.max.x>=this.min.x&&e.min.x<=this.max.x&&e.max.y>=this.min.y&&e.min.y<=this.max.y}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,ap).distanceTo(e)}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}},sp=new B,cp=new Ds,lp=new Ds,up=class extends yu{constructor(e){let t=dp(e),n=new il,r=[],i=[];for(let e=0;ee.start-t.start);let t=0;for(let e=1;e #include #include -}`},H={common:{diffuse:{value:new B(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new xo},alphaMap:{value:null},alphaMapTransform:{value:new xo},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new xo}},envmap:{envMap:{value:null},envMapRotation:{value:new xo},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98},dfgLUT:{value:null}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new xo}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new xo}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new xo},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new xo},normalScale:{value:new R(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new xo},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new xo}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new xo}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new xo}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new B(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},sunLights:{value:[],properties:{direction:{},color:{}}},sunLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},sunShadowMatrix:{value:[]},sunShadowCascade:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null},probesSH:{value:null},probesMin:{value:new z},probesMax:{value:new z},probesResolution:{value:new z}},points:{diffuse:{value:new B(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new xo},alphaTest:{value:0},uvTransform:{value:new xo}},sprite:{diffuse:{value:new B(16777215)},opacity:{value:1},center:{value:new R(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new xo},alphaMap:{value:null},alphaMapTransform:{value:new xo},alphaTest:{value:0}}},Nf={basic:{uniforms:Lu([H.common,H.specularmap,H.envmap,H.aomap,H.lightmap,H.fog]),vertexShader:Mf.meshbasic_vert,fragmentShader:Mf.meshbasic_frag},lambert:{uniforms:Lu([H.common,H.specularmap,H.envmap,H.aomap,H.lightmap,H.emissivemap,H.bumpmap,H.normalmap,H.displacementmap,H.fog,H.lights,{emissive:{value:new B(0)},envMapIntensity:{value:1}}]),vertexShader:Mf.meshlambert_vert,fragmentShader:Mf.meshlambert_frag},phong:{uniforms:Lu([H.common,H.specularmap,H.envmap,H.aomap,H.lightmap,H.emissivemap,H.bumpmap,H.normalmap,H.displacementmap,H.fog,H.lights,{emissive:{value:new B(0)},specular:{value:new B(1118481)},shininess:{value:30},envMapIntensity:{value:1}}]),vertexShader:Mf.meshphong_vert,fragmentShader:Mf.meshphong_frag},standard:{uniforms:Lu([H.common,H.envmap,H.aomap,H.lightmap,H.emissivemap,H.bumpmap,H.normalmap,H.displacementmap,H.roughnessmap,H.metalnessmap,H.fog,H.lights,{emissive:{value:new B(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Mf.meshphysical_vert,fragmentShader:Mf.meshphysical_frag},toon:{uniforms:Lu([H.common,H.aomap,H.lightmap,H.emissivemap,H.bumpmap,H.normalmap,H.displacementmap,H.gradientmap,H.fog,H.lights,{emissive:{value:new B(0)}}]),vertexShader:Mf.meshtoon_vert,fragmentShader:Mf.meshtoon_frag},matcap:{uniforms:Lu([H.common,H.bumpmap,H.normalmap,H.displacementmap,H.fog,{matcap:{value:null}}]),vertexShader:Mf.meshmatcap_vert,fragmentShader:Mf.meshmatcap_frag},points:{uniforms:Lu([H.points,H.fog]),vertexShader:Mf.points_vert,fragmentShader:Mf.points_frag},dashed:{uniforms:Lu([H.common,H.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Mf.linedashed_vert,fragmentShader:Mf.linedashed_frag},depth:{uniforms:Lu([H.common,H.displacementmap]),vertexShader:Mf.depth_vert,fragmentShader:Mf.depth_frag},normal:{uniforms:Lu([H.common,H.bumpmap,H.normalmap,H.displacementmap,{opacity:{value:1}}]),vertexShader:Mf.meshnormal_vert,fragmentShader:Mf.meshnormal_frag},sprite:{uniforms:Lu([H.sprite,H.fog]),vertexShader:Mf.sprite_vert,fragmentShader:Mf.sprite_frag},background:{uniforms:{uvTransform:{value:new xo},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:Mf.background_vert,fragmentShader:Mf.background_frag},backgroundCube:{uniforms:{envMap:{value:null},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new xo}},vertexShader:Mf.backgroundCube_vert,fragmentShader:Mf.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:Mf.cube_vert,fragmentShader:Mf.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Mf.equirect_vert,fragmentShader:Mf.equirect_frag},distance:{uniforms:Lu([H.common,H.displacementmap,{referencePosition:{value:new z},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Mf.distance_vert,fragmentShader:Mf.distance_frag},shadow:{uniforms:Lu([H.lights,H.fog,{color:{value:new B(0)},opacity:{value:1}}]),vertexShader:Mf.shadow_vert,fragmentShader:Mf.shadow_frag}};Nf.physical={uniforms:Lu([Nf.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new xo},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new xo},clearcoatNormalScale:{value:new R(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new xo},dispersion:{value:0},retroreflectivity:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new xo},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new xo},sheen:{value:0},sheenColor:{value:new B(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new xo},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new xo},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new xo},transmissionSamplerSize:{value:new R},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new xo},attenuationDistance:{value:0},attenuationColor:{value:new B(0)},specularColor:{value:new B(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new xo},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new xo},anisotropyVector:{value:new R},anisotropyMap:{value:null},anisotropyMapTransform:{value:new xo}}]),vertexShader:Mf.meshphysical_vert,fragmentShader:Mf.meshphysical_frag};var Pf={r:0,b:0,g:0},Ff=new Ho,If=new xo;If.set(-1,0,0,0,1,0,0,0,1);function Lf(e,t,n,r,i,a){let o=new B(0),s=i===!0?0:1,c,l,u=null,d=0,f=null;function p(e){let n=e.isScene===!0?e.background:null;if(n&&n.isTexture){let r=e.backgroundBlurriness>0;n=t.get(n,r)}return n}function m(t){let r=!1,i=p(t);i===null?g(o,s):i&&i.isColor&&(g(i,1),r=!0);let c=e.xr.getEnvironmentBlendMode();c===`additive`?n.buffers.color.setClear(0,0,0,1,a):c===`alpha-blend`&&n.buffers.color.setClear(0,0,0,0,a),(e.autoClear||r)&&(n.buffers.depth.setTest(!0),n.buffers.depth.setMask(!0),n.buffers.color.setMask(!0),e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil))}function h(t,n){let i=p(n);i&&(i.isCubeTexture||i.mapping===306)?(l===void 0&&(l=new V(new Jl(1,1,1),new Wu({name:`BackgroundCubeMaterial`,uniforms:Iu(Nf.backgroundCube.uniforms),vertexShader:Nf.backgroundCube.vertexShader,fragmentShader:Nf.backgroundCube.fragmentShader,side:1,depthTest:!1,depthWrite:!1,fog:!1,allowOverride:!1})),l.geometry.deleteAttribute(`normal`),l.geometry.deleteAttribute(`uv`),l.onBeforeRender=function(e,t,n){this.matrixWorld.copyPosition(n.matrixWorld)},Object.defineProperty(l.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),r.update(l)),l.material.uniforms.envMap.value=i,l.material.uniforms.backgroundBlurriness.value=n.backgroundBlurriness,l.material.uniforms.backgroundIntensity.value=n.backgroundIntensity,l.material.uniforms.backgroundRotation.value.setFromMatrix4(Ff.makeRotationFromEuler(n.backgroundRotation)).transpose(),i.isCubeTexture&&i.isRenderTargetTexture===!1&&l.material.uniforms.backgroundRotation.value.premultiply(If),l.material.toneMapped=Eo.getTransfer(i.colorSpace)!==Da,(u!==i||d!==i.version||f!==e.toneMapping)&&(l.material.needsUpdate=!0,u=i,d=i.version,f=e.toneMapping),l.layers.enableAll(),t.unshift(l,l.geometry,l.material,0,0,null)):i&&i.isTexture&&(c===void 0&&(c=new V(new Au(2,2),new Wu({name:`BackgroundMaterial`,uniforms:Iu(Nf.background.uniforms),vertexShader:Nf.background.vertexShader,fragmentShader:Nf.background.fragmentShader,side:0,depthTest:!1,depthWrite:!1,fog:!1,allowOverride:!1})),c.geometry.deleteAttribute(`normal`),Object.defineProperty(c.material,"map",{get:function(){return this.uniforms.t2D.value}}),r.update(c)),c.material.uniforms.t2D.value=i,c.material.uniforms.backgroundIntensity.value=n.backgroundIntensity,c.material.toneMapped=Eo.getTransfer(i.colorSpace)!==Da,i.matrixAutoUpdate===!0&&i.updateMatrix(),c.material.uniforms.uvTransform.value.copy(i.matrix),(u!==i||d!==i.version||f!==e.toneMapping)&&(c.material.needsUpdate=!0,u=i,d=i.version,f=e.toneMapping),c.layers.enableAll(),t.unshift(c,c.geometry,c.material,0,0,null))}function g(t,r){t.getRGB(Pf,Bu(e)),n.buffers.color.setClear(Pf.r,Pf.g,Pf.b,r,a)}function _(){l!==void 0&&(l.geometry.dispose(),l.material.dispose(),l=void 0),c!==void 0&&(c.geometry.dispose(),c.material.dispose(),c=void 0)}return{getClearColor:function(){return o},setClearColor:function(e,t=1){o.set(e),s=t,g(o,s)},getClearAlpha:function(){return s},setClearAlpha:function(e){s=e,g(o,s)},render:m,addToRenderList:h,dispose:_}}function Rf(e,t){let n=e.getParameter(e.MAX_VERTEX_ATTRIBS),r={},i=f(null),a=i,o=!1;function s(n,r,i,s,c){let u=!1,f=d(n,s,i,r);a!==f&&(a=f,l(a.object)),u=p(n,s,i,c),u&&m(n,s,i,c),c!==null&&t.update(c,e.ELEMENT_ARRAY_BUFFER),(u||o)&&(o=!1,b(n,r,i,s),c!==null&&e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t.get(c).buffer))}function c(){return e.createVertexArray()}function l(t){return e.bindVertexArray(t)}function u(t){return e.deleteVertexArray(t)}function d(e,t,n,i){let a=i.wireframe===!0,o=r[t.id];o===void 0&&(o={},r[t.id]=o);let s=e.isInstancedMesh===!0?e.id:0,l=o[s];l===void 0&&(l={},o[s]=l);let u=l[n.id];u===void 0&&(u={},l[n.id]=u);let d=u[a];return d===void 0&&(d=f(c()),u[a]=d),d}function f(e){let t=[],r=[],i=[];for(let e=0;e=0){let n=i[t],r=o[t];if(r===void 0&&(t===`instanceMatrix`&&e.instanceMatrix&&(r=e.instanceMatrix),t===`instanceColor`&&e.instanceColor&&(r=e.instanceColor)),n===void 0||n.attribute!==r||r&&n.data!==r.data)return!0;s++}return a.attributesNum!==s||a.index!==r}function m(e,t,n,r){let i={},o=t.attributes,s=0,c=n.getAttributes();for(let t in c)if(c[t].location>=0){let n=o[t];n===void 0&&(t===`instanceMatrix`&&e.instanceMatrix&&(n=e.instanceMatrix),t===`instanceColor`&&e.instanceColor&&(n=e.instanceColor));let r={};r.attribute=n,n&&n.data&&(r.data=n.data),i[t]=r,s++}a.attributes=i,a.attributesNum=s,a.index=r}function h(){let e=a.newAttributes;for(let t=0,n=e.length;t=0){let s=o[r];if(s===void 0&&(r===`instanceMatrix`&&n.instanceMatrix&&(s=n.instanceMatrix),r===`instanceColor`&&n.instanceColor&&(s=n.instanceColor)),s!==void 0){let r=s.normalized,o=s.itemSize,c=t.get(s);if(c===void 0)continue;let l=c.buffer,u=c.type,d=c.bytesPerElement,f=u===e.INT||u===e.UNSIGNED_INT||s.gpuType===1013;if(s.isInterleavedBufferAttribute){let t=s.data,c=t.stride,p=s.offset;if(t.isInstancedInterleavedBuffer){for(let e=0;e0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT).precision>0)return`highp`;t=`mediump`}return t===`mediump`&&e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.MEDIUM_FLOAT).precision>0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.MEDIUM_FLOAT).precision>0?`mediump`:`lowp`}let l=n.precision===void 0?`highp`:n.precision,u=c(l);u!==l&&(za(`WebGLRenderer:`,l,`not supported, using`,u,`instead.`),l=u);let d=n.logarithmicDepthBuffer===!0,f=n.reversedDepthBuffer===!0&&t.has(`EXT_clip_control`);n.reversedDepthBuffer===!0&&f===!1&&za(`WebGLRenderer: Unable to use reversed depth buffer due to missing EXT_clip_control extension. Fallback to default depth buffer.`);let p=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),m=e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS),h=e.getParameter(e.MAX_TEXTURE_SIZE),g=e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE),_=e.getParameter(e.MAX_VERTEX_ATTRIBS),v=e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS),y=e.getParameter(e.MAX_VARYING_VECTORS),b=e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS),x=e.getParameter(e.MAX_SAMPLES),S=e.getParameter(e.SAMPLES);return{isWebGL2:!0,getMaxAnisotropy:a,getMaxPrecision:c,textureFormatReadable:o,textureTypeReadable:s,precision:l,logarithmicDepthBuffer:d,reversedDepthBuffer:f,maxTextures:p,maxVertexTextures:m,maxTextureSize:h,maxCubemapSize:g,maxAttributes:_,maxVertexUniforms:v,maxVaryings:y,maxFragmentUniforms:b,maxSamples:x,samples:S}}function Vf(e){let t=this,n=null,r=0,i=!1,a=!1,o=new Ec,s=new xo,c={value:null,needsUpdate:!1};this.uniform=c,this.numPlanes=0,this.numIntersection=0,this.init=function(e,t){let n=e.length!==0||t||r!==0||i;return i=t,r=e.length,n},this.beginShadows=function(){a=!0,u(null)},this.endShadows=function(){a=!1},this.setGlobalState=function(e,t){n=u(e,t,0)},this.setState=function(t,o,s){let d=t.clippingPlanes,f=t.clipIntersection,p=t.clipShadows,m=e.get(t);if(!i||d===null||d.length===0||a&&!p)a?u(null):l();else{let e=a?0:r,t=e*4,i=m.clippingState||null;c.value=i,i=u(d,o,t,s);for(let e=0;e!==t;++e)i[e]=n[e];m.clippingState=i,this.numIntersection=f?this.numPlanes:0,this.numPlanes+=e}};function l(){c.value!==n&&(c.value=n,c.needsUpdate=r>0),t.numPlanes=r,t.numIntersection=0}function u(e,n,r,i){let a=e===null?0:e.length,l=null;if(a!==0){if(l=c.value,i!==!0||l===null){let t=r+a*4,i=n.matrixWorldInverse;s.getNormalMatrix(i),(l===null||l.length0&&this._blur(s,0,0,t),this._applyPMREM(s),this._cleanup(s),s}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=sp(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=op(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose(),this._backgroundBox!==null&&(this._backgroundBox.geometry.dispose(),this._backgroundBox.material.dispose())}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=2**this._lodMax}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._ggxMaterial!==null&&this._ggxMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let e=0;e2?l:0,l,l),c.setRenderTarget(r),p&&c.render(d,a),c.render(e,a)}c.toneMapping=u,c.autoClear=l,e.background=m}_textureToCubeUV(e,t){let n=this._renderer,r=e.mapping===301||e.mapping===302;r?(this._cubemapMaterial===null&&(this._cubemapMaterial=sp()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=op());let i=r?this._cubemapMaterial:this._equirectMaterial,a=this._lodMeshes[0];a.material=i;let o=i.uniforms;o.envMap.value=e;let s=this._cubeSize;rp(t,0,0,3*s,2*s),n.setRenderTarget(t),n.render(a,Kf)}_applyPMREM(e){let t=this._renderer,n=t.autoClear;t.autoClear=!1;let r=this._lodMeshes.length;for(let t=1;td-Hf?n-d+Hf:0),m=4*(this._cubeSize-f);s.envMap.value=e.texture,s.roughness.value=u,s.mipInt.value=d-t,rp(i,p,m,3*f,2*f),r.setRenderTarget(i),r.render(o,Kf),s.envMap.value=i.texture,s.roughness.value=0,s.mipInt.value=d-n,rp(e,p,m,3*f,2*f),r.setRenderTarget(e),r.render(o,Kf)}_blur(e,t,n,r){let i=this._pingPongRenderTarget,a=Math.min(r,Math.PI)/Math.SQRT2;this._blurPass(e,i,t,n,a),this._blurPass(i,e,n,n,a)}_blurPass(e,t,n,r,i){let a=this._renderer,o=this._blurMaterial,s=this._lodMeshes[r];s.material=o;let c=o.uniforms;c.envMap.value=e.texture,c.sigma.value=i,c.mipInt.value=this._lodMax-n;let l=this._sizeLods[r];rp(t,3*l*(r>this._lodMax-Hf?r-this._lodMax+Hf:0),4*(this._cubeSize-l),3*l,2*l),a.setRenderTarget(t),a.render(s,Kf)}};function tp(e){let t=[],n=[],r=e,i=e-Hf+1+Uf;for(let e=0;e2?0:-1,r=[t,n,0,t+2/3,n,0,t+2/3,n+1,0,t,n,0,t+2/3,n+1,0,t,n+1,0];c.set(r,18*e);for(let t=0;t<6;t++){let n=s[t*2]*2-1,r=s[t*2+1]*2-1;e===0?$f.set(1,r,n):e===1?$f.set(-n,1,-r):e===2?$f.set(-n,r,1):e===3?$f.set(-1,r,-n):e===4?$f.set(-n,-1,r):$f.set(n,r,-1),$f.toArray(l,(e*6+t)*3)}}let u=new yc;u.setAttribute(`position`,new ic(c,3)),u.setAttribute(`outputDirection`,new ic(l,3)),n.push(new V(u,null)),r>Hf&&r--}return{lodMeshes:n,sizeLods:t}}function np(e,t,n){let r=new zo(e,t,n);return r.texture.mapping=306,r.texture.name=`PMREM.cubeUv`,r.scissorTest=!0,r}function rp(e,t,n,r,i){e.viewport.set(t,n,r,i),e.scissor.set(t,n,r,i)}function ip(e,t,n){return new Wu({name:`PMREMGGXConvolution`,defines:{GGX_SAMPLES:Gf,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${e}.0`},uniforms:{envMap:{value:null},roughness:{value:0},mipInt:{value:0}},vertexShader:cp(),fragmentShader:` +}`},U={common:{diffuse:{value:new V(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new os},alphaMap:{value:null},alphaMapTransform:{value:new os},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new os}},envmap:{envMap:{value:null},envMapRotation:{value:new os},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98},dfgLUT:{value:null}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new os}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new os}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new os},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new os},normalScale:{value:new z(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new os},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new os}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new os}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new os}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new V(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},sunLights:{value:[],properties:{direction:{},color:{}}},sunLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},sunShadowMatrix:{value:[]},sunShadowCascade:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null},probesSH:{value:null},probesMin:{value:new B},probesMax:{value:new B},probesResolution:{value:new B}},points:{diffuse:{value:new V(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new os},alphaTest:{value:0},uvTransform:{value:new os}},sprite:{diffuse:{value:new V(16777215)},opacity:{value:1},center:{value:new z(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new os},alphaMap:{value:null},alphaMapTransform:{value:new os},alphaTest:{value:0}}},vp={basic:{uniforms:Sd([U.common,U.specularmap,U.envmap,U.aomap,U.lightmap,U.fog]),vertexShader:_p.meshbasic_vert,fragmentShader:_p.meshbasic_frag},lambert:{uniforms:Sd([U.common,U.specularmap,U.envmap,U.aomap,U.lightmap,U.emissivemap,U.bumpmap,U.normalmap,U.displacementmap,U.fog,U.lights,{emissive:{value:new V(0)},envMapIntensity:{value:1}}]),vertexShader:_p.meshlambert_vert,fragmentShader:_p.meshlambert_frag},phong:{uniforms:Sd([U.common,U.specularmap,U.envmap,U.aomap,U.lightmap,U.emissivemap,U.bumpmap,U.normalmap,U.displacementmap,U.fog,U.lights,{emissive:{value:new V(0)},specular:{value:new V(1118481)},shininess:{value:30},envMapIntensity:{value:1}}]),vertexShader:_p.meshphong_vert,fragmentShader:_p.meshphong_frag},standard:{uniforms:Sd([U.common,U.envmap,U.aomap,U.lightmap,U.emissivemap,U.bumpmap,U.normalmap,U.displacementmap,U.roughnessmap,U.metalnessmap,U.fog,U.lights,{emissive:{value:new V(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:_p.meshphysical_vert,fragmentShader:_p.meshphysical_frag},toon:{uniforms:Sd([U.common,U.aomap,U.lightmap,U.emissivemap,U.bumpmap,U.normalmap,U.displacementmap,U.gradientmap,U.fog,U.lights,{emissive:{value:new V(0)}}]),vertexShader:_p.meshtoon_vert,fragmentShader:_p.meshtoon_frag},matcap:{uniforms:Sd([U.common,U.bumpmap,U.normalmap,U.displacementmap,U.fog,{matcap:{value:null}}]),vertexShader:_p.meshmatcap_vert,fragmentShader:_p.meshmatcap_frag},points:{uniforms:Sd([U.points,U.fog]),vertexShader:_p.points_vert,fragmentShader:_p.points_frag},dashed:{uniforms:Sd([U.common,U.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:_p.linedashed_vert,fragmentShader:_p.linedashed_frag},depth:{uniforms:Sd([U.common,U.displacementmap]),vertexShader:_p.depth_vert,fragmentShader:_p.depth_frag},normal:{uniforms:Sd([U.common,U.bumpmap,U.normalmap,U.displacementmap,{opacity:{value:1}}]),vertexShader:_p.meshnormal_vert,fragmentShader:_p.meshnormal_frag},sprite:{uniforms:Sd([U.sprite,U.fog]),vertexShader:_p.sprite_vert,fragmentShader:_p.sprite_frag},background:{uniforms:{uvTransform:{value:new os},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:_p.background_vert,fragmentShader:_p.background_frag},backgroundCube:{uniforms:{envMap:{value:null},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new os}},vertexShader:_p.backgroundCube_vert,fragmentShader:_p.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:_p.cube_vert,fragmentShader:_p.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:_p.equirect_vert,fragmentShader:_p.equirect_frag},distance:{uniforms:Sd([U.common,U.displacementmap,{referencePosition:{value:new B},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:_p.distance_vert,fragmentShader:_p.distance_frag},shadow:{uniforms:Sd([U.lights,U.fog,{color:{value:new V(0)},opacity:{value:1}}]),vertexShader:_p.shadow_vert,fragmentShader:_p.shadow_frag}};vp.physical={uniforms:Sd([vp.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new os},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new os},clearcoatNormalScale:{value:new z(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new os},dispersion:{value:0},retroreflectivity:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new os},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new os},sheen:{value:0},sheenColor:{value:new V(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new os},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new os},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new os},transmissionSamplerSize:{value:new z},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new os},attenuationDistance:{value:0},attenuationColor:{value:new V(0)},specularColor:{value:new V(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new os},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new os},anisotropyVector:{value:new z},anisotropyMap:{value:null},anisotropyMapTransform:{value:new os}}]),vertexShader:_p.meshphysical_vert,fragmentShader:_p.meshphysical_frag};var yp={r:0,b:0,g:0},bp=new Ds,xp=new os;xp.set(-1,0,0,0,1,0,0,0,1);function Sp(e,t,n,r,i,a){let o=new V(0),s=i===!0?0:1,c,l,u=null,d=0,f=null;function p(e){let n=e.isScene===!0?e.background:null;if(n&&n.isTexture){let r=e.backgroundBlurriness>0;n=t.get(n,r)}return n}function m(t){let r=!1,i=p(t);i===null?g(o,s):i&&i.isColor&&(g(i,1),r=!0);let c=e.xr.getEnvironmentBlendMode();c===`additive`?n.buffers.color.setClear(0,0,0,1,a):c===`alpha-blend`&&n.buffers.color.setClear(0,0,0,0,a),(e.autoClear||r)&&(n.buffers.depth.setTest(!0),n.buffers.depth.setMask(!0),n.buffers.color.setMask(!0),e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil))}function h(t,n){let i=p(n);i&&(i.isCubeTexture||i.mapping===306)?(l===void 0&&(l=new H(new Nu(1,1,1),new kd({name:`BackgroundCubeMaterial`,uniforms:xd(vp.backgroundCube.uniforms),vertexShader:vp.backgroundCube.vertexShader,fragmentShader:vp.backgroundCube.fragmentShader,side:1,depthTest:!1,depthWrite:!1,fog:!1,allowOverride:!1})),l.geometry.deleteAttribute(`normal`),l.geometry.deleteAttribute(`uv`),l.onBeforeRender=function(e,t,n){this.matrixWorld.copyPosition(n.matrixWorld)},Object.defineProperty(l.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),r.update(l)),l.material.uniforms.envMap.value=i,l.material.uniforms.backgroundBlurriness.value=n.backgroundBlurriness,l.material.uniforms.backgroundIntensity.value=n.backgroundIntensity,l.material.uniforms.backgroundRotation.value.setFromMatrix4(bp.makeRotationFromEuler(n.backgroundRotation)).transpose(),i.isCubeTexture&&i.isRenderTargetTexture===!1&&l.material.uniforms.backgroundRotation.value.premultiply(xp),l.material.toneMapped=ds.getTransfer(i.colorSpace)!==po,(u!==i||d!==i.version||f!==e.toneMapping)&&(l.material.needsUpdate=!0,u=i,d=i.version,f=e.toneMapping),l.layers.enableAll(),t.unshift(l,l.geometry,l.material,0,0,null)):i&&i.isTexture&&(c===void 0&&(c=new H(new hd(2,2),new kd({name:`BackgroundMaterial`,uniforms:xd(vp.background.uniforms),vertexShader:vp.background.vertexShader,fragmentShader:vp.background.fragmentShader,side:0,depthTest:!1,depthWrite:!1,fog:!1,allowOverride:!1})),c.geometry.deleteAttribute(`normal`),Object.defineProperty(c.material,"map",{get:function(){return this.uniforms.t2D.value}}),r.update(c)),c.material.uniforms.t2D.value=i,c.material.uniforms.backgroundIntensity.value=n.backgroundIntensity,c.material.toneMapped=ds.getTransfer(i.colorSpace)!==po,i.matrixAutoUpdate===!0&&i.updateMatrix(),c.material.uniforms.uvTransform.value.copy(i.matrix),(u!==i||d!==i.version||f!==e.toneMapping)&&(c.material.needsUpdate=!0,u=i,d=i.version,f=e.toneMapping),c.layers.enableAll(),t.unshift(c,c.geometry,c.material,0,0,null))}function g(t,r){t.getRGB(yp,Td(e)),n.buffers.color.setClear(yp.r,yp.g,yp.b,r,a)}function _(){l!==void 0&&(l.geometry.dispose(),l.material.dispose(),l=void 0),c!==void 0&&(c.geometry.dispose(),c.material.dispose(),c=void 0)}return{getClearColor:function(){return o},setClearColor:function(e,t=1){o.set(e),s=t,g(o,s)},getClearAlpha:function(){return s},setClearAlpha:function(e){s=e,g(o,s)},render:m,addToRenderList:h,dispose:_}}function Cp(e,t){let n=e.getParameter(e.MAX_VERTEX_ATTRIBS),r={},i=f(null),a=i,o=!1;function s(n,r,i,s,c){let u=!1,f=d(n,s,i,r);a!==f&&(a=f,l(a.object)),u=p(n,s,i,c),u&&m(n,s,i,c),c!==null&&t.update(c,e.ELEMENT_ARRAY_BUFFER),(u||o)&&(o=!1,b(n,r,i,s),c!==null&&e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t.get(c).buffer))}function c(){return e.createVertexArray()}function l(t){return e.bindVertexArray(t)}function u(t){return e.deleteVertexArray(t)}function d(e,t,n,i){let a=i.wireframe===!0,o=r[t.id];o===void 0&&(o={},r[t.id]=o);let s=e.isInstancedMesh===!0?e.id:0,l=o[s];l===void 0&&(l={},o[s]=l);let u=l[n.id];u===void 0&&(u={},l[n.id]=u);let d=u[a];return d===void 0&&(d=f(c()),u[a]=d),d}function f(e){let t=[],r=[],i=[];for(let e=0;e=0){let n=i[t],r=o[t];if(r===void 0&&(t===`instanceMatrix`&&e.instanceMatrix&&(r=e.instanceMatrix),t===`instanceColor`&&e.instanceColor&&(r=e.instanceColor)),n===void 0||n.attribute!==r||r&&n.data!==r.data)return!0;s++}return a.attributesNum!==s||a.index!==r}function m(e,t,n,r){let i={},o=t.attributes,s=0,c=n.getAttributes();for(let t in c)if(c[t].location>=0){let n=o[t];n===void 0&&(t===`instanceMatrix`&&e.instanceMatrix&&(n=e.instanceMatrix),t===`instanceColor`&&e.instanceColor&&(n=e.instanceColor));let r={};r.attribute=n,n&&n.data&&(r.data=n.data),i[t]=r,s++}a.attributes=i,a.attributesNum=s,a.index=r}function h(){let e=a.newAttributes;for(let t=0,n=e.length;t=0){let s=o[r];if(s===void 0&&(r===`instanceMatrix`&&n.instanceMatrix&&(s=n.instanceMatrix),r===`instanceColor`&&n.instanceColor&&(s=n.instanceColor)),s!==void 0){let r=s.normalized,o=s.itemSize,c=t.get(s);if(c===void 0)continue;let l=c.buffer,u=c.type,d=c.bytesPerElement,f=u===e.INT||u===e.UNSIGNED_INT||s.gpuType===1013;if(s.isInterleavedBufferAttribute){let t=s.data,c=t.stride,p=s.offset;if(t.isInstancedInterleavedBuffer){for(let e=0;e0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT).precision>0)return`highp`;t=`mediump`}return t===`mediump`&&e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.MEDIUM_FLOAT).precision>0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.MEDIUM_FLOAT).precision>0?`mediump`:`lowp`}let l=n.precision===void 0?`highp`:n.precision,u=c(l);u!==l&&(To(`WebGLRenderer:`,l,`not supported, using`,u,`instead.`),l=u);let d=n.logarithmicDepthBuffer===!0,f=n.reversedDepthBuffer===!0&&t.has(`EXT_clip_control`);n.reversedDepthBuffer===!0&&f===!1&&To(`WebGLRenderer: Unable to use reversed depth buffer due to missing EXT_clip_control extension. Fallback to default depth buffer.`);let p=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),m=e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS),h=e.getParameter(e.MAX_TEXTURE_SIZE),g=e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE),_=e.getParameter(e.MAX_VERTEX_ATTRIBS),v=e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS),y=e.getParameter(e.MAX_VARYING_VECTORS),b=e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS),x=e.getParameter(e.MAX_SAMPLES),S=e.getParameter(e.SAMPLES);return{isWebGL2:!0,getMaxAnisotropy:a,getMaxPrecision:c,textureFormatReadable:o,textureTypeReadable:s,precision:l,logarithmicDepthBuffer:d,reversedDepthBuffer:f,maxTextures:p,maxVertexTextures:m,maxTextureSize:h,maxCubemapSize:g,maxAttributes:_,maxVertexUniforms:v,maxVaryings:y,maxFragmentUniforms:b,maxSamples:x,samples:S}}function Ep(e){let t=this,n=null,r=0,i=!1,a=!1,o=new dl,s=new os,c={value:null,needsUpdate:!1};this.uniform=c,this.numPlanes=0,this.numIntersection=0,this.init=function(e,t){let n=e.length!==0||t||r!==0||i;return i=t,r=e.length,n},this.beginShadows=function(){a=!0,u(null)},this.endShadows=function(){a=!1},this.setGlobalState=function(e,t){n=u(e,t,0)},this.setState=function(t,o,s){let d=t.clippingPlanes,f=t.clipIntersection,p=t.clipShadows,m=e.get(t);if(!i||d===null||d.length===0||a&&!p)a?u(null):l();else{let e=a?0:r,t=e*4,i=m.clippingState||null;c.value=i,i=u(d,o,t,s);for(let e=0;e!==t;++e)i[e]=n[e];m.clippingState=i,this.numIntersection=f?this.numPlanes:0,this.numPlanes+=e}};function l(){c.value!==n&&(c.value=n,c.needsUpdate=r>0),t.numPlanes=r,t.numIntersection=0}function u(e,n,r,i){let a=e===null?0:e.length,l=null;if(a!==0){if(l=c.value,i!==!0||l===null){let t=r+a*4,i=n.matrixWorldInverse;s.getNormalMatrix(i),(l===null||l.length0&&this._blur(s,0,0,t),this._applyPMREM(s),this._cleanup(s),s}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=Kp(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=Gp(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose(),this._backgroundBox!==null&&(this._backgroundBox.geometry.dispose(),this._backgroundBox.material.dispose())}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=2**this._lodMax}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._ggxMaterial!==null&&this._ggxMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let e=0;e2?l:0,l,l),c.setRenderTarget(r),p&&c.render(d,a),c.render(e,a)}c.toneMapping=u,c.autoClear=l,e.background=m}_textureToCubeUV(e,t){let n=this._renderer,r=e.mapping===301||e.mapping===302;r?(this._cubemapMaterial===null&&(this._cubemapMaterial=Kp()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=Gp());let i=r?this._cubemapMaterial:this._equirectMaterial,a=this._lodMeshes[0];a.material=i;let o=i.uniforms;o.envMap.value=e;let s=this._cubeSize;Hp(t,0,0,3*s,2*s),n.setRenderTarget(t),n.render(a,jp)}_applyPMREM(e){let t=this._renderer,n=t.autoClear;t.autoClear=!1;let r=this._lodMeshes.length;for(let t=1;td-Dp?n-d+Dp:0),m=4*(this._cubeSize-f);s.envMap.value=e.texture,s.roughness.value=u,s.mipInt.value=d-t,Hp(i,p,m,3*f,2*f),r.setRenderTarget(i),r.render(o,jp),s.envMap.value=i.texture,s.roughness.value=0,s.mipInt.value=d-n,Hp(e,p,m,3*f,2*f),r.setRenderTarget(e),r.render(o,jp)}_blur(e,t,n,r){let i=this._pingPongRenderTarget,a=Math.min(r,Math.PI)/Math.SQRT2;this._blurPass(e,i,t,n,a),this._blurPass(i,e,n,n,a)}_blurPass(e,t,n,r,i){let a=this._renderer,o=this._blurMaterial,s=this._lodMeshes[r];s.material=o;let c=o.uniforms;c.envMap.value=e.texture,c.sigma.value=i,c.mipInt.value=this._lodMax-n;let l=this._sizeLods[r];Hp(t,3*l*(r>this._lodMax-Dp?r-this._lodMax+Dp:0),4*(this._cubeSize-l),3*l,2*l),a.setRenderTarget(t),a.render(s,jp)}};function Bp(e){let t=[],n=[],r=e,i=e-Dp+1+Op;for(let e=0;e2?0:-1,r=[t,n,0,t+2/3,n,0,t+2/3,n+1,0,t,n,0,t+2/3,n+1,0,t,n+1,0];c.set(r,18*e);for(let t=0;t<6;t++){let n=s[t*2]*2-1,r=s[t*2+1]*2-1;e===0?Rp.set(1,r,n):e===1?Rp.set(-n,1,-r):e===2?Rp.set(-n,r,1):e===3?Rp.set(-1,r,-n):e===4?Rp.set(-n,-1,r):Rp.set(n,r,-1),Rp.toArray(l,(e*6+t)*3)}}let u=new il;u.setAttribute(`position`,new Uc(c,3)),u.setAttribute(`outputDirection`,new Uc(l,3)),n.push(new H(u,null)),r>Dp&&r--}return{lodMeshes:n,sizeLods:t}}function Vp(e,t,n){let r=new ws(e,t,n);return r.texture.mapping=306,r.texture.name=`PMREM.cubeUv`,r.scissorTest=!0,r}function Hp(e,t,n,r,i){e.viewport.set(t,n,r,i),e.scissor.set(t,n,r,i)}function Up(e,t,n){return new kd({name:`PMREMGGXConvolution`,defines:{GGX_SAMPLES:Ap,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${e}.0`},uniforms:{envMap:{value:null},roughness:{value:0},mipInt:{value:0}},vertexShader:qp(),fragmentShader:` precision highp float; precision highp int; @@ -3924,7 +3935,7 @@ void main() { gl_FragColor = vec4(prefilteredColor, 1.0); } - `,blending:0,depthTest:!1,depthWrite:!1})}function ap(e,t,n){return new Wu({name:`SphericalGaussianBlur`,defines:{SAMPLES:Wf,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${e}.0`},uniforms:{envMap:{value:null},sigma:{value:0},mipInt:{value:0}},vertexShader:cp(),fragmentShader:` + `,blending:0,depthTest:!1,depthWrite:!1})}function Wp(e,t,n){return new kd({name:`SphericalGaussianBlur`,defines:{SAMPLES:kp,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${e}.0`},uniforms:{envMap:{value:null},sigma:{value:0},mipInt:{value:0}},vertexShader:qp(),fragmentShader:` precision highp float; precision highp int; @@ -3984,7 +3995,7 @@ void main() { gl_FragColor = vec4( accumColor / accumWeight, 1.0 ); } - `,blending:0,depthTest:!1,depthWrite:!1})}function op(){return new Wu({name:`EquirectangularToCubeUV`,uniforms:{envMap:{value:null}},vertexShader:cp(),fragmentShader:` + `,blending:0,depthTest:!1,depthWrite:!1})}function Gp(){return new kd({name:`EquirectangularToCubeUV`,uniforms:{envMap:{value:null}},vertexShader:qp(),fragmentShader:` precision mediump float; precision mediump int; @@ -4003,7 +4014,7 @@ void main() { gl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 ); } - `,blending:0,depthTest:!1,depthWrite:!1})}function sp(){return new Wu({name:`CubemapToCubeUV`,uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:cp(),fragmentShader:` + `,blending:0,depthTest:!1,depthWrite:!1})}function Kp(){return new kd({name:`CubemapToCubeUV`,uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:qp(),fragmentShader:` precision mediump float; precision mediump int; @@ -4019,7 +4030,7 @@ void main() { gl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) ); } - `,blending:0,depthTest:!1,depthWrite:!1})}function cp(){return` + `,blending:0,depthTest:!1,depthWrite:!1})}function qp(){return` precision mediump float; precision mediump int; @@ -4034,7 +4045,7 @@ void main() { gl_Position = vec4( position, 1.0 ); } - `}var lp=class extends zo{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;let n={width:e,height:e,depth:1},r=[n,n,n,n,n,n];this.texture=new Ul(r),this._setTextureOptions(t),this.texture.isRenderTargetTexture=!0}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;let n={uniforms:{tEquirect:{value:null}},vertexShader:` + `}var Jp=class extends ws{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;let n={width:e,height:e,depth:1},r=[n,n,n,n,n,n];this.texture=new Ou(r),this._setTextureOptions(t),this.texture.isRenderTargetTexture=!0}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;let n={uniforms:{tEquirect:{value:null}},vertexShader:` varying vec3 vWorldDirection; @@ -4069,7 +4080,7 @@ void main() { gl_FragColor = texture2D( tEquirect, sampleUV ); } - `},r=new Jl(5,5,5),i=new Wu({name:`CubemapFromEquirect`,uniforms:Iu(n.uniforms),vertexShader:n.vertexShader,fragmentShader:n.fragmentShader,side:1,blending:0});i.uniforms.tEquirect.value=t;let a=new V(r,i),o=t.minFilter;return t.minFilter===1008&&(t.minFilter=si),new rf(1,10,this).update(e,a),t.minFilter=o,a.geometry.dispose(),a.material.dispose(),this}clear(e,t=!0,n=!0,r=!0){let i=e.getRenderTarget();for(let i=0;i<6;i++)e.setRenderTarget(this,i),e.clear(t,n,r);e.setRenderTarget(i)}};function up(e){let t=new WeakMap,n=new WeakMap,r=null;function i(e,t=!1){return e==null?null:t?o(e):a(e)}function a(n){if(n&&n.isTexture){let r=n.mapping;if(r===303||r===304){if(t.has(n)){let e=t.get(n).texture;return s(e,n.mapping)}{let r=n.image;if(r&&r.height>0){let i=new lp(r.height);return i.fromEquirectangularTexture(e,n),t.set(n,i),n.addEventListener(`dispose`,l),s(i.texture,n.mapping)}return null}}}return n}function o(t){if(t&&t.isTexture){let i=t.mapping,a=i===303||i===304,o=i===301||i===302;if(a||o){let i=n.get(t),s=i===void 0?0:i.texture.pmremVersion;if(t.isRenderTargetTexture&&t.pmremVersion!==s)return r===null&&(r=new ep(e)),i=a?r.fromEquirectangular(t,i):r.fromCubemap(t,i),i.texture.pmremVersion=t.pmremVersion,n.set(t,i),i.texture;if(i!==void 0)return i.texture;{let s=t.image;return a&&s&&s.height>0||o&&s&&c(s)?(r===null&&(r=new ep(e)),i=a?r.fromEquirectangular(t):r.fromCubemap(t),i.texture.pmremVersion=t.pmremVersion,n.set(t,i),t.addEventListener(`dispose`,u),i.texture):null}}}return t}function s(e,t){return t===303?e.mapping=301:t===304&&(e.mapping=302),e}function c(e){let t=0;for(let n=0;n<6;n++)e[n]!==void 0&&t++;return t===6}function l(e){let n=e.target;n.removeEventListener(`dispose`,l);let r=t.get(n);r!==void 0&&(t.delete(n),r.dispose())}function u(e){let t=e.target;t.removeEventListener(`dispose`,u);let r=n.get(t);r!==void 0&&(n.delete(t),r.dispose())}function d(){t=new WeakMap,n=new WeakMap,r!==null&&(r.dispose(),r=null)}return{get:i,dispose:d}}function dp(e){let t={};function n(n){if(t[n]!==void 0)return t[n];let r=e.getExtension(n);return t[n]=r,r}return{has:function(e){return n(e)!==null},init:function(){n(`EXT_color_buffer_float`),n(`WEBGL_clip_cull_distance`),n(`OES_texture_float_linear`),n(`EXT_color_buffer_half_float`),n(`WEBGL_multisampled_render_to_texture`),n(`WEBGL_render_shared_exponent`)},get:function(e){let t=n(e);return t===null&&Va(`WebGLRenderer: `+e+` extension not supported.`),t}}}function fp(e,t,n,r){let i={},a=new WeakMap;function o(e){let s=e.target;s.index!==null&&t.remove(s.index);for(let e in s.attributes)t.remove(s.attributes[e]);s.removeEventListener(`dispose`,o),delete i[s.id];let c=a.get(s);c&&(t.remove(c),a.delete(s)),r.releaseStatesOfGeometry(s),s.isInstancedBufferGeometry===!0&&delete s._maxInstanceCount,n.memory.geometries--}function s(e,t){return i[t.id]===!0||(t.addEventListener(`dispose`,o),i[t.id]=!0,n.memory.geometries++),t}function c(n){let r=n.attributes;for(let n in r)t.update(r[n],e.ARRAY_BUFFER)}function l(e){let n=[],r=e.index,i=e.attributes.position,o=0;if(i===void 0)return;if(r!==null){let e=r.array;o=r.version;for(let t=0,r=e.length;t=65535?oc:ac)(n,1);s.version=o;let c=a.get(e);c&&t.remove(c),a.set(e,s)}function u(e){let t=a.get(e);if(t){let n=e.index;n!==null&&t.versiont.maxTextureSize&&(m=Math.ceil(p/t.maxTextureSize),p=t.maxTextureSize);let h=new Float32Array(p*m*4*u),g=new Bo(h,p,m,u);g.type=gi,g.needsUpdate=!0;let _=f*4;for(let t=0;t0){let i=new Jp(r.height);return i.fromEquirectangularTexture(e,n),t.set(n,i),n.addEventListener(`dispose`,l),s(i.texture,n.mapping)}return null}}}return n}function o(t){if(t&&t.isTexture){let i=t.mapping,a=i===303||i===304,o=i===301||i===302;if(a||o){let i=n.get(t),s=i===void 0?0:i.texture.pmremVersion;if(t.isRenderTargetTexture&&t.pmremVersion!==s)return r===null&&(r=new zp(e)),i=a?r.fromEquirectangular(t,i):r.fromCubemap(t,i),i.texture.pmremVersion=t.pmremVersion,n.set(t,i),i.texture;if(i!==void 0)return i.texture;{let s=t.image;return a&&s&&s.height>0||o&&s&&c(s)?(r===null&&(r=new zp(e)),i=a?r.fromEquirectangular(t):r.fromCubemap(t),i.texture.pmremVersion=t.pmremVersion,n.set(t,i),t.addEventListener(`dispose`,u),i.texture):null}}}return t}function s(e,t){return t===303?e.mapping=301:t===304&&(e.mapping=302),e}function c(e){let t=0;for(let n=0;n<6;n++)e[n]!==void 0&&t++;return t===6}function l(e){let n=e.target;n.removeEventListener(`dispose`,l);let r=t.get(n);r!==void 0&&(t.delete(n),r.dispose())}function u(e){let t=e.target;t.removeEventListener(`dispose`,u);let r=n.get(t);r!==void 0&&(n.delete(t),r.dispose())}function d(){t=new WeakMap,n=new WeakMap,r!==null&&(r.dispose(),r=null)}return{get:i,dispose:d}}function Xp(e){let t={};function n(n){if(t[n]!==void 0)return t[n];let r=e.getExtension(n);return t[n]=r,r}return{has:function(e){return n(e)!==null},init:function(){n(`EXT_color_buffer_float`),n(`WEBGL_clip_cull_distance`),n(`OES_texture_float_linear`),n(`EXT_color_buffer_half_float`),n(`WEBGL_multisampled_render_to_texture`),n(`WEBGL_render_shared_exponent`)},get:function(e){let t=n(e);return t===null&&Do(`WebGLRenderer: `+e+` extension not supported.`),t}}}function Zp(e,t,n,r){let i={},a=new WeakMap;function o(e){let s=e.target;s.index!==null&&t.remove(s.index);for(let e in s.attributes)t.remove(s.attributes[e]);s.removeEventListener(`dispose`,o),delete i[s.id];let c=a.get(s);c&&(t.remove(c),a.delete(s)),r.releaseStatesOfGeometry(s),s.isInstancedBufferGeometry===!0&&delete s._maxInstanceCount,n.memory.geometries--}function s(e,t){return i[t.id]===!0||(t.addEventListener(`dispose`,o),i[t.id]=!0,n.memory.geometries++),t}function c(n){let r=n.attributes;for(let n in r)t.update(r[n],e.ARRAY_BUFFER)}function l(e){let n=[],r=e.index,i=e.attributes.position,o=0;if(i===void 0)return;if(r!==null){let e=r.array;o=r.version;for(let t=0,r=e.length;t=65535?Gc:Wc)(n,1);s.version=o;let c=a.get(e);c&&t.remove(c),a.set(e,s)}function u(e){let t=a.get(e);if(t){let n=e.index;n!==null&&t.versiont.maxTextureSize&&(m=Math.ceil(p/t.maxTextureSize),p=t.maxTextureSize);let h=new Float32Array(p*m*4*u),g=new Ts(h,p,m,u);g.type=ta,g.needsUpdate=!0;let _=f*4;for(let t=0;t0&&v[0].isRenderPass===!0;let t=o.width,n=o.height;v.length>0&&s===null&&(s=new zo(t,n,{type:_i,depthBuffer:!1,stencilBuffer:!1}),c=new zo(t,n,{type:_i,depthBuffer:!1,stencilBuffer:!1}));for(let e=0;e0)return e;let i=t*n,a=wp[i];if(a===void 0&&(a=new Float32Array(i),wp[i]=a),t!==0){r.toArray(a,0);for(let r=1,i=0;r!==t;++r)i+=n,e[r].toArray(a,i)}return a}function Ap(e,t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n0&&(this.seq=r.concat(i))}setValue(e,t,n,r){let i=this.map[t];i!==void 0&&i.setValue(e,n,r)}setOptional(e,t,n){let r=t[n];r!==void 0&&this.setValue(e,n,r)}static upload(e,t,n,r){for(let i=0,a=t.length;i!==a;++i){let a=t[i],o=n[a.id];o.needsUpdate!==!1&&a.setValue(e,o.value,r)}}static seqWithValue(e,t){let n=[];for(let r=0,i=e.length;r!==i;++r){let i=e[r];i.id in t&&n.push(i)}return n}};function Em(e,t,n){let r=e.createShader(t);return e.shaderSource(r,n),e.compileShader(r),r}var Dm=37297,Om=0;function km(e,t){let n=e.split(` + }`,depthTest:!1,depthWrite:!1}),d=new H(l,u),f=new Ff(-1,1,1,-1,0,1),p=null,m=null,h=!1,g,_=null,v=[],y=!1;this.setSize=function(e,t){o.setSize(e,t),s!==null&&s.setSize(e,t),c!==null&&c.setSize(e,t);for(let n=0;n0&&v[0].isRenderPass===!0;let t=o.width,n=o.height;v.length>0&&s===null&&(s=new ws(t,n,{type:na,depthBuffer:!1,stencilBuffer:!1}),c=new ws(t,n,{type:na,depthBuffer:!1,stencilBuffer:!1}));for(let e=0;e0)return e;let i=t*n,a=lm[i];if(a===void 0&&(a=new Float32Array(i),lm[i]=a),t!==0){r.toArray(a,0);for(let r=1,i=0;r!==t;++r)i+=n,e[r].toArray(a,i)}return a}function hm(e,t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n0&&(this.seq=r.concat(i))}setValue(e,t,n,r){let i=this.map[t];i!==void 0&&i.setValue(e,n,r)}setOptional(e,t,n){let r=t[n];r!==void 0&&this.setValue(e,n,r)}static upload(e,t,n,r){for(let i=0,a=t.length;i!==a;++i){let a=t[i],o=n[a.id];o.needsUpdate!==!1&&a.setValue(e,o.value,r)}}static seqWithValue(e,t){let n=[];for(let r=0,i=e.length;r!==i;++r){let i=e[r];i.id in t&&n.push(i)}return n}};function dh(e,t,n){let r=e.createShader(t);return e.shaderSource(r,n),e.compileShader(r),r}var fh=37297,ph=0;function mh(e,t){let n=e.split(` `),r=[],i=Math.max(t-6,0),a=Math.min(t+6,n.length);for(let e=i;e`:` `} ${i}: ${n[e]}`)}return r.join(` -`)}var Am=new xo;function jm(e){Eo._getMatrix(Am,Eo.workingColorSpace,e);let t=`mat3( ${Am.elements.map(e=>e.toFixed(4))} )`;switch(Eo.getTransfer(e)){case Ea:return[t,`LinearTransferOETF`];case Da:return[t,`sRGBTransferOETF`];default:return za(`WebGLProgram: Unsupported color space: `,e),[t,`LinearTransferOETF`]}}function Mm(e,t,n){let r=e.getShaderParameter(t,e.COMPILE_STATUS),i=(e.getShaderInfoLog(t)||``).trim();if(r&&i===``)return``;let a=/ERROR: 0:(\d+)/.exec(i);if(a){let r=parseInt(a[1]);return n.toUpperCase()+` +`)}var hh=new os;function gh(e){ds._getMatrix(hh,ds.workingColorSpace,e);let t=`mat3( ${hh.elements.map(e=>e.toFixed(4))} )`;switch(ds.getTransfer(e)){case fo:return[t,`LinearTransferOETF`];case po:return[t,`sRGBTransferOETF`];default:return To(`WebGLProgram: Unsupported color space: `,e),[t,`LinearTransferOETF`]}}function _h(e,t,n){let r=e.getShaderParameter(t,e.COMPILE_STATUS),i=(e.getShaderInfoLog(t)||``).trim();if(r&&i===``)return``;let a=/ERROR: 0:(\d+)/.exec(i);if(a){let r=parseInt(a[1]);return n.toUpperCase()+` `+i+` -`+km(e.getShaderSource(t),r)}return i}function Nm(e,t){let n=jm(t);return[`vec4 ${e}( vec4 value ) {`,` return ${n[1]}( vec4( value.rgb * ${n[0]}, value.a ) );`,`}`].join(` -`)}var Pm={1:`Linear`,2:`Reinhard`,3:`Cineon`,4:`ACESFilmic`,6:`AgX`,7:`Neutral`,5:`Custom`};function Fm(e,t){let n=Pm[t];return n===void 0?(za(`WebGLProgram: Unsupported toneMapping:`,t),`vec3 `+e+`( vec3 color ) { return LinearToneMapping( color ); }`):`vec3 `+e+`( vec3 color ) { return `+n+`ToneMapping( color ); }`}var Im=new z;function Lm(){return Eo.getLuminanceCoefficients(Im),[`float luminance( const in vec3 rgb ) {`,` const vec3 weights = vec3( ${Im.x.toFixed(4)}, ${Im.y.toFixed(4)}, ${Im.z.toFixed(4)} );`,` return dot( weights, rgb );`,`}`].join(` -`)}function Rm(e){return[e.extensionClipCullDistance?`#extension GL_ANGLE_clip_cull_distance : require`:``,e.extensionMultiDraw?`#extension GL_ANGLE_multi_draw : require`:``].filter(Vm).join(` -`)}function zm(e){let t=[];for(let n in e){let r=e[n];r!==!1&&t.push(`#define `+n+` `+r)}return t.join(` -`)}function Bm(e,t){let n={},r=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES);for(let i=0;i/gm;function Gm(e){return e.replace(Wm,qm)}var Km=new Map;function qm(e,t){let n=Mf[t];if(n===void 0){let e=Km.get(t);if(e!==void 0)n=Mf[e],za(`WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.`,t,e);else throw Error(`THREE.WebGLProgram: Can not resolve #include <`+t+`>`)}return Gm(n)}var Jm=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function Ym(e){return e.replace(Jm,Xm)}function Xm(e,t,n,r){let i=``;for(let e=parseInt(t);e/gm;function Ah(e){return e.replace(kh,Mh)}var jh=new Map;function Mh(e,t){let n=_p[t];if(n===void 0){let e=jh.get(t);if(e!==void 0)n=_p[e],To(`WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.`,t,e);else throw Error(`THREE.WebGLProgram: Can not resolve #include <`+t+`>`)}return Ah(n)}var Nh=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function Ph(e){return e.replace(Nh,Fh)}function Fh(e,t,n,r){let i=``;for(let e=parseInt(t);e0&&(g+=` -`),_=[`#define SHADER_TYPE `+n.shaderType,`#define SHADER_NAME `+n.shaderName,m].filter(Vm).join(` +`),_=[`#define SHADER_TYPE `+n.shaderType,`#define SHADER_NAME `+n.shaderName,m].filter(Eh).join(` `),_.length>0&&(_+=` -`)):(g=[Zm(n),`#define SHADER_TYPE `+n.shaderType,`#define SHADER_NAME `+n.shaderName,m,n.extensionClipCullDistance?`#define USE_CLIP_DISTANCE`:``,n.batching?`#define USE_BATCHING`:``,n.batchingColor?`#define USE_BATCHING_COLOR`:``,n.instancing?`#define USE_INSTANCING`:``,n.instancingColor?`#define USE_INSTANCING_COLOR`:``,n.instancingMorph?`#define USE_INSTANCING_MORPH`:``,n.useFog&&n.fog?`#define USE_FOG`:``,n.useFog&&n.fogExp2?`#define FOG_EXP2`:``,n.map?`#define USE_MAP`:``,n.envMap?`#define USE_ENVMAP`:``,n.envMap?`#define `+u:``,n.lightMap?`#define USE_LIGHTMAP`:``,n.aoMap?`#define USE_AOMAP`:``,n.bumpMap?`#define USE_BUMPMAP`:``,n.normalMap?`#define USE_NORMALMAP`:``,n.normalMapObjectSpace?`#define USE_NORMALMAP_OBJECTSPACE`:``,n.normalMapTangentSpace?`#define USE_NORMALMAP_TANGENTSPACE`:``,n.displacementMap?`#define USE_DISPLACEMENTMAP`:``,n.emissiveMap?`#define USE_EMISSIVEMAP`:``,n.anisotropy?`#define USE_ANISOTROPY`:``,n.anisotropyMap?`#define USE_ANISOTROPYMAP`:``,n.clearcoatMap?`#define USE_CLEARCOATMAP`:``,n.clearcoatRoughnessMap?`#define USE_CLEARCOAT_ROUGHNESSMAP`:``,n.clearcoatNormalMap?`#define USE_CLEARCOAT_NORMALMAP`:``,n.iridescenceMap?`#define USE_IRIDESCENCEMAP`:``,n.iridescenceThicknessMap?`#define USE_IRIDESCENCE_THICKNESSMAP`:``,n.specularMap?`#define USE_SPECULARMAP`:``,n.specularColorMap?`#define USE_SPECULAR_COLORMAP`:``,n.specularIntensityMap?`#define USE_SPECULAR_INTENSITYMAP`:``,n.roughnessMap?`#define USE_ROUGHNESSMAP`:``,n.metalnessMap?`#define USE_METALNESSMAP`:``,n.alphaMap?`#define USE_ALPHAMAP`:``,n.alphaHash?`#define USE_ALPHAHASH`:``,n.transmission?`#define USE_TRANSMISSION`:``,n.transmissionMap?`#define USE_TRANSMISSIONMAP`:``,n.thicknessMap?`#define USE_THICKNESSMAP`:``,n.sheenColorMap?`#define USE_SHEEN_COLORMAP`:``,n.sheenRoughnessMap?`#define USE_SHEEN_ROUGHNESSMAP`:``,n.mapUv?`#define MAP_UV `+n.mapUv:``,n.alphaMapUv?`#define ALPHAMAP_UV `+n.alphaMapUv:``,n.lightMapUv?`#define LIGHTMAP_UV `+n.lightMapUv:``,n.aoMapUv?`#define AOMAP_UV `+n.aoMapUv:``,n.emissiveMapUv?`#define EMISSIVEMAP_UV `+n.emissiveMapUv:``,n.bumpMapUv?`#define BUMPMAP_UV `+n.bumpMapUv:``,n.normalMapUv?`#define NORMALMAP_UV `+n.normalMapUv:``,n.displacementMapUv?`#define DISPLACEMENTMAP_UV `+n.displacementMapUv:``,n.metalnessMapUv?`#define METALNESSMAP_UV `+n.metalnessMapUv:``,n.roughnessMapUv?`#define ROUGHNESSMAP_UV `+n.roughnessMapUv:``,n.anisotropyMapUv?`#define ANISOTROPYMAP_UV `+n.anisotropyMapUv:``,n.clearcoatMapUv?`#define CLEARCOATMAP_UV `+n.clearcoatMapUv:``,n.clearcoatNormalMapUv?`#define CLEARCOAT_NORMALMAP_UV `+n.clearcoatNormalMapUv:``,n.clearcoatRoughnessMapUv?`#define CLEARCOAT_ROUGHNESSMAP_UV `+n.clearcoatRoughnessMapUv:``,n.iridescenceMapUv?`#define IRIDESCENCEMAP_UV `+n.iridescenceMapUv:``,n.iridescenceThicknessMapUv?`#define IRIDESCENCE_THICKNESSMAP_UV `+n.iridescenceThicknessMapUv:``,n.sheenColorMapUv?`#define SHEEN_COLORMAP_UV `+n.sheenColorMapUv:``,n.sheenRoughnessMapUv?`#define SHEEN_ROUGHNESSMAP_UV `+n.sheenRoughnessMapUv:``,n.specularMapUv?`#define SPECULARMAP_UV `+n.specularMapUv:``,n.specularColorMapUv?`#define SPECULAR_COLORMAP_UV `+n.specularColorMapUv:``,n.specularIntensityMapUv?`#define SPECULAR_INTENSITYMAP_UV `+n.specularIntensityMapUv:``,n.transmissionMapUv?`#define TRANSMISSIONMAP_UV `+n.transmissionMapUv:``,n.thicknessMapUv?`#define THICKNESSMAP_UV `+n.thicknessMapUv:``,n.vertexTangents&&n.flatShading===!1?`#define USE_TANGENT`:``,n.vertexNormals?`#define HAS_NORMAL`:``,n.vertexColors?`#define USE_COLOR`:``,n.vertexAlphas?`#define USE_COLOR_ALPHA`:``,n.vertexUv1s?`#define USE_UV1`:``,n.vertexUv2s?`#define USE_UV2`:``,n.vertexUv3s?`#define USE_UV3`:``,n.pointsUvs?`#define USE_POINTS_UV`:``,n.flatShading?`#define FLAT_SHADED`:``,n.skinning?`#define USE_SKINNING`:``,n.morphTargets?`#define USE_MORPHTARGETS`:``,n.morphNormals&&n.flatShading===!1?`#define USE_MORPHNORMALS`:``,n.morphColors?`#define USE_MORPHCOLORS`:``,n.morphTargetsCount>0?`#define MORPHTARGETS_TEXTURE_STRIDE `+n.morphTextureStride:``,n.morphTargetsCount>0?`#define MORPHTARGETS_COUNT `+n.morphTargetsCount:``,n.doubleSided?`#define DOUBLE_SIDED`:``,n.flipSided?`#define FLIP_SIDED`:``,n.shadowMapEnabled?`#define USE_SHADOWMAP`:``,n.shadowMapEnabled?`#define `+c:``,n.sizeAttenuation?`#define USE_SIZEATTENUATION`:``,n.numLightProbes>0?`#define USE_LIGHT_PROBES`:``,n.logarithmicDepthBuffer?`#define USE_LOGARITHMIC_DEPTH_BUFFER`:``,n.reversedDepthBuffer?`#define USE_REVERSED_DEPTH_BUFFER`:``,`uniform mat4 modelMatrix;`,`uniform mat4 modelViewMatrix;`,`uniform mat4 projectionMatrix;`,`uniform mat4 viewMatrix;`,`uniform mat3 normalMatrix;`,`uniform vec3 cameraPosition;`,`uniform bool isOrthographic;`,`#ifdef USE_INSTANCING`,` attribute mat4 instanceMatrix;`,`#endif`,`#ifdef USE_INSTANCING_COLOR`,` attribute vec3 instanceColor;`,`#endif`,`#ifdef USE_INSTANCING_MORPH`,` uniform sampler2D morphTexture;`,`#endif`,`attribute vec3 position;`,`attribute vec3 normal;`,`attribute vec2 uv;`,`#ifdef USE_UV1`,` attribute vec2 uv1;`,`#endif`,`#ifdef USE_UV2`,` attribute vec2 uv2;`,`#endif`,`#ifdef USE_UV3`,` attribute vec2 uv3;`,`#endif`,`#ifdef USE_TANGENT`,` attribute vec4 tangent;`,`#endif`,`#if defined( USE_COLOR_ALPHA )`,` attribute vec4 color;`,`#elif defined( USE_COLOR )`,` attribute vec3 color;`,`#endif`,`#ifdef USE_SKINNING`,` attribute vec4 skinIndex;`,` attribute vec4 skinWeight;`,`#endif`,` -`].filter(Vm).join(` -`),_=[Zm(n),`#define SHADER_TYPE `+n.shaderType,`#define SHADER_NAME `+n.shaderName,m,n.useFog&&n.fog?`#define USE_FOG`:``,n.useFog&&n.fogExp2?`#define FOG_EXP2`:``,n.alphaToCoverage?`#define ALPHA_TO_COVERAGE`:``,n.map?`#define USE_MAP`:``,n.matcap?`#define USE_MATCAP`:``,n.envMap?`#define USE_ENVMAP`:``,n.envMap?`#define `+l:``,n.envMap?`#define `+u:``,n.envMap?`#define `+d:``,f?`#define CUBEUV_TEXEL_WIDTH `+f.texelWidth:``,f?`#define CUBEUV_TEXEL_HEIGHT `+f.texelHeight:``,f?`#define CUBEUV_MAX_MIP `+f.maxMip+`.0`:``,n.lightMap?`#define USE_LIGHTMAP`:``,n.aoMap?`#define USE_AOMAP`:``,n.bumpMap?`#define USE_BUMPMAP`:``,n.normalMap?`#define USE_NORMALMAP`:``,n.normalMapObjectSpace?`#define USE_NORMALMAP_OBJECTSPACE`:``,n.normalMapTangentSpace?`#define USE_NORMALMAP_TANGENTSPACE`:``,n.packedNormalMap?`#define USE_PACKED_NORMALMAP`:``,n.emissiveMap?`#define USE_EMISSIVEMAP`:``,n.anisotropy?`#define USE_ANISOTROPY`:``,n.anisotropyMap?`#define USE_ANISOTROPYMAP`:``,n.clearcoat?`#define USE_CLEARCOAT`:``,n.clearcoatMap?`#define USE_CLEARCOATMAP`:``,n.clearcoatRoughnessMap?`#define USE_CLEARCOAT_ROUGHNESSMAP`:``,n.clearcoatNormalMap?`#define USE_CLEARCOAT_NORMALMAP`:``,n.dispersion?`#define USE_DISPERSION`:``,n.retroreflection?`#define USE_RETROREFLECTION`:``,n.iridescence?`#define USE_IRIDESCENCE`:``,n.iridescenceMap?`#define USE_IRIDESCENCEMAP`:``,n.iridescenceThicknessMap?`#define USE_IRIDESCENCE_THICKNESSMAP`:``,n.specularMap?`#define USE_SPECULARMAP`:``,n.specularColorMap?`#define USE_SPECULAR_COLORMAP`:``,n.specularIntensityMap?`#define USE_SPECULAR_INTENSITYMAP`:``,n.roughnessMap?`#define USE_ROUGHNESSMAP`:``,n.metalnessMap?`#define USE_METALNESSMAP`:``,n.alphaMap?`#define USE_ALPHAMAP`:``,n.alphaTest?`#define USE_ALPHATEST`:``,n.alphaHash?`#define USE_ALPHAHASH`:``,n.sheen?`#define USE_SHEEN`:``,n.sheenColorMap?`#define USE_SHEEN_COLORMAP`:``,n.sheenRoughnessMap?`#define USE_SHEEN_ROUGHNESSMAP`:``,n.transmission?`#define USE_TRANSMISSION`:``,n.transmissionMap?`#define USE_TRANSMISSIONMAP`:``,n.thicknessMap?`#define USE_THICKNESSMAP`:``,n.vertexTangents&&n.flatShading===!1?`#define USE_TANGENT`:``,n.vertexColors||n.instancingColor?`#define USE_COLOR`:``,n.vertexAlphas||n.batchingColor?`#define USE_COLOR_ALPHA`:``,n.vertexUv1s?`#define USE_UV1`:``,n.vertexUv2s?`#define USE_UV2`:``,n.vertexUv3s?`#define USE_UV3`:``,n.pointsUvs?`#define USE_POINTS_UV`:``,n.gradientMap?`#define USE_GRADIENTMAP`:``,n.flatShading?`#define FLAT_SHADED`:``,n.doubleSided?`#define DOUBLE_SIDED`:``,n.flipSided?`#define FLIP_SIDED`:``,n.shadowMapEnabled?`#define USE_SHADOWMAP`:``,n.shadowMapEnabled?`#define `+c:``,n.premultipliedAlpha?`#define PREMULTIPLIED_ALPHA`:``,n.numLightProbes>0?`#define USE_LIGHT_PROBES`:``,n.numLightProbeGrids>0?`#define USE_LIGHT_PROBES_GRID`:``,n.decodeVideoTexture?`#define DECODE_VIDEO_TEXTURE`:``,n.decodeVideoTextureEmissive?`#define DECODE_VIDEO_TEXTURE_EMISSIVE`:``,n.logarithmicDepthBuffer?`#define USE_LOGARITHMIC_DEPTH_BUFFER`:``,n.reversedDepthBuffer?`#define USE_REVERSED_DEPTH_BUFFER`:``,`uniform mat4 viewMatrix;`,`uniform vec3 cameraPosition;`,`uniform bool isOrthographic;`,n.toneMapping===0?``:`#define TONE_MAPPING`,n.toneMapping===0?``:Mf.tonemapping_pars_fragment,n.toneMapping===0?``:Fm(`toneMapping`,n.toneMapping),n.dithering?`#define DITHERING`:``,n.opaque?`#define OPAQUE`:``,Mf.colorspace_pars_fragment,Nm(`linearToOutputTexel`,n.outputColorSpace),Lm(),n.useDepthPacking?`#define DEPTH_PACKING `+n.depthPacking:``,` -`].filter(Vm).join(` -`)),o=Gm(o),o=Hm(o,n),o=Um(o,n),s=Gm(s),s=Hm(s,n),s=Um(s,n),o=Ym(o),s=Ym(s),n.isRawShaderMaterial!==!0&&(v=`#version 300 es +`)):(g=[Ih(n),`#define SHADER_TYPE `+n.shaderType,`#define SHADER_NAME `+n.shaderName,m,n.extensionClipCullDistance?`#define USE_CLIP_DISTANCE`:``,n.batching?`#define USE_BATCHING`:``,n.batchingColor?`#define USE_BATCHING_COLOR`:``,n.instancing?`#define USE_INSTANCING`:``,n.instancingColor?`#define USE_INSTANCING_COLOR`:``,n.instancingMorph?`#define USE_INSTANCING_MORPH`:``,n.useFog&&n.fog?`#define USE_FOG`:``,n.useFog&&n.fogExp2?`#define FOG_EXP2`:``,n.map?`#define USE_MAP`:``,n.envMap?`#define USE_ENVMAP`:``,n.envMap?`#define `+u:``,n.lightMap?`#define USE_LIGHTMAP`:``,n.aoMap?`#define USE_AOMAP`:``,n.bumpMap?`#define USE_BUMPMAP`:``,n.normalMap?`#define USE_NORMALMAP`:``,n.normalMapObjectSpace?`#define USE_NORMALMAP_OBJECTSPACE`:``,n.normalMapTangentSpace?`#define USE_NORMALMAP_TANGENTSPACE`:``,n.displacementMap?`#define USE_DISPLACEMENTMAP`:``,n.emissiveMap?`#define USE_EMISSIVEMAP`:``,n.anisotropy?`#define USE_ANISOTROPY`:``,n.anisotropyMap?`#define USE_ANISOTROPYMAP`:``,n.clearcoatMap?`#define USE_CLEARCOATMAP`:``,n.clearcoatRoughnessMap?`#define USE_CLEARCOAT_ROUGHNESSMAP`:``,n.clearcoatNormalMap?`#define USE_CLEARCOAT_NORMALMAP`:``,n.iridescenceMap?`#define USE_IRIDESCENCEMAP`:``,n.iridescenceThicknessMap?`#define USE_IRIDESCENCE_THICKNESSMAP`:``,n.specularMap?`#define USE_SPECULARMAP`:``,n.specularColorMap?`#define USE_SPECULAR_COLORMAP`:``,n.specularIntensityMap?`#define USE_SPECULAR_INTENSITYMAP`:``,n.roughnessMap?`#define USE_ROUGHNESSMAP`:``,n.metalnessMap?`#define USE_METALNESSMAP`:``,n.alphaMap?`#define USE_ALPHAMAP`:``,n.alphaHash?`#define USE_ALPHAHASH`:``,n.transmission?`#define USE_TRANSMISSION`:``,n.transmissionMap?`#define USE_TRANSMISSIONMAP`:``,n.thicknessMap?`#define USE_THICKNESSMAP`:``,n.sheenColorMap?`#define USE_SHEEN_COLORMAP`:``,n.sheenRoughnessMap?`#define USE_SHEEN_ROUGHNESSMAP`:``,n.mapUv?`#define MAP_UV `+n.mapUv:``,n.alphaMapUv?`#define ALPHAMAP_UV `+n.alphaMapUv:``,n.lightMapUv?`#define LIGHTMAP_UV `+n.lightMapUv:``,n.aoMapUv?`#define AOMAP_UV `+n.aoMapUv:``,n.emissiveMapUv?`#define EMISSIVEMAP_UV `+n.emissiveMapUv:``,n.bumpMapUv?`#define BUMPMAP_UV `+n.bumpMapUv:``,n.normalMapUv?`#define NORMALMAP_UV `+n.normalMapUv:``,n.displacementMapUv?`#define DISPLACEMENTMAP_UV `+n.displacementMapUv:``,n.metalnessMapUv?`#define METALNESSMAP_UV `+n.metalnessMapUv:``,n.roughnessMapUv?`#define ROUGHNESSMAP_UV `+n.roughnessMapUv:``,n.anisotropyMapUv?`#define ANISOTROPYMAP_UV `+n.anisotropyMapUv:``,n.clearcoatMapUv?`#define CLEARCOATMAP_UV `+n.clearcoatMapUv:``,n.clearcoatNormalMapUv?`#define CLEARCOAT_NORMALMAP_UV `+n.clearcoatNormalMapUv:``,n.clearcoatRoughnessMapUv?`#define CLEARCOAT_ROUGHNESSMAP_UV `+n.clearcoatRoughnessMapUv:``,n.iridescenceMapUv?`#define IRIDESCENCEMAP_UV `+n.iridescenceMapUv:``,n.iridescenceThicknessMapUv?`#define IRIDESCENCE_THICKNESSMAP_UV `+n.iridescenceThicknessMapUv:``,n.sheenColorMapUv?`#define SHEEN_COLORMAP_UV `+n.sheenColorMapUv:``,n.sheenRoughnessMapUv?`#define SHEEN_ROUGHNESSMAP_UV `+n.sheenRoughnessMapUv:``,n.specularMapUv?`#define SPECULARMAP_UV `+n.specularMapUv:``,n.specularColorMapUv?`#define SPECULAR_COLORMAP_UV `+n.specularColorMapUv:``,n.specularIntensityMapUv?`#define SPECULAR_INTENSITYMAP_UV `+n.specularIntensityMapUv:``,n.transmissionMapUv?`#define TRANSMISSIONMAP_UV `+n.transmissionMapUv:``,n.thicknessMapUv?`#define THICKNESSMAP_UV `+n.thicknessMapUv:``,n.vertexTangents&&n.flatShading===!1?`#define USE_TANGENT`:``,n.vertexNormals?`#define HAS_NORMAL`:``,n.vertexColors?`#define USE_COLOR`:``,n.vertexAlphas?`#define USE_COLOR_ALPHA`:``,n.vertexUv1s?`#define USE_UV1`:``,n.vertexUv2s?`#define USE_UV2`:``,n.vertexUv3s?`#define USE_UV3`:``,n.pointsUvs?`#define USE_POINTS_UV`:``,n.flatShading?`#define FLAT_SHADED`:``,n.skinning?`#define USE_SKINNING`:``,n.morphTargets?`#define USE_MORPHTARGETS`:``,n.morphNormals&&n.flatShading===!1?`#define USE_MORPHNORMALS`:``,n.morphColors?`#define USE_MORPHCOLORS`:``,n.morphTargetsCount>0?`#define MORPHTARGETS_TEXTURE_STRIDE `+n.morphTextureStride:``,n.morphTargetsCount>0?`#define MORPHTARGETS_COUNT `+n.morphTargetsCount:``,n.doubleSided?`#define DOUBLE_SIDED`:``,n.flipSided?`#define FLIP_SIDED`:``,n.shadowMapEnabled?`#define USE_SHADOWMAP`:``,n.shadowMapEnabled?`#define `+c:``,n.sizeAttenuation?`#define USE_SIZEATTENUATION`:``,n.numLightProbes>0?`#define USE_LIGHT_PROBES`:``,n.logarithmicDepthBuffer?`#define USE_LOGARITHMIC_DEPTH_BUFFER`:``,n.reversedDepthBuffer?`#define USE_REVERSED_DEPTH_BUFFER`:``,`uniform mat4 modelMatrix;`,`uniform mat4 modelViewMatrix;`,`uniform mat4 projectionMatrix;`,`uniform mat4 viewMatrix;`,`uniform mat3 normalMatrix;`,`uniform vec3 cameraPosition;`,`uniform bool isOrthographic;`,`#ifdef USE_INSTANCING`,` attribute mat4 instanceMatrix;`,`#endif`,`#ifdef USE_INSTANCING_COLOR`,` attribute vec3 instanceColor;`,`#endif`,`#ifdef USE_INSTANCING_MORPH`,` uniform sampler2D morphTexture;`,`#endif`,`attribute vec3 position;`,`attribute vec3 normal;`,`attribute vec2 uv;`,`#ifdef USE_UV1`,` attribute vec2 uv1;`,`#endif`,`#ifdef USE_UV2`,` attribute vec2 uv2;`,`#endif`,`#ifdef USE_UV3`,` attribute vec2 uv3;`,`#endif`,`#ifdef USE_TANGENT`,` attribute vec4 tangent;`,`#endif`,`#if defined( USE_COLOR_ALPHA )`,` attribute vec4 color;`,`#elif defined( USE_COLOR )`,` attribute vec3 color;`,`#endif`,`#ifdef USE_SKINNING`,` attribute vec4 skinIndex;`,` attribute vec4 skinWeight;`,`#endif`,` +`].filter(Eh).join(` +`),_=[Ih(n),`#define SHADER_TYPE `+n.shaderType,`#define SHADER_NAME `+n.shaderName,m,n.useFog&&n.fog?`#define USE_FOG`:``,n.useFog&&n.fogExp2?`#define FOG_EXP2`:``,n.alphaToCoverage?`#define ALPHA_TO_COVERAGE`:``,n.map?`#define USE_MAP`:``,n.matcap?`#define USE_MATCAP`:``,n.envMap?`#define USE_ENVMAP`:``,n.envMap?`#define `+l:``,n.envMap?`#define `+u:``,n.envMap?`#define `+d:``,f?`#define CUBEUV_TEXEL_WIDTH `+f.texelWidth:``,f?`#define CUBEUV_TEXEL_HEIGHT `+f.texelHeight:``,f?`#define CUBEUV_MAX_MIP `+f.maxMip+`.0`:``,n.lightMap?`#define USE_LIGHTMAP`:``,n.aoMap?`#define USE_AOMAP`:``,n.bumpMap?`#define USE_BUMPMAP`:``,n.normalMap?`#define USE_NORMALMAP`:``,n.normalMapObjectSpace?`#define USE_NORMALMAP_OBJECTSPACE`:``,n.normalMapTangentSpace?`#define USE_NORMALMAP_TANGENTSPACE`:``,n.packedNormalMap?`#define USE_PACKED_NORMALMAP`:``,n.emissiveMap?`#define USE_EMISSIVEMAP`:``,n.anisotropy?`#define USE_ANISOTROPY`:``,n.anisotropyMap?`#define USE_ANISOTROPYMAP`:``,n.clearcoat?`#define USE_CLEARCOAT`:``,n.clearcoatMap?`#define USE_CLEARCOATMAP`:``,n.clearcoatRoughnessMap?`#define USE_CLEARCOAT_ROUGHNESSMAP`:``,n.clearcoatNormalMap?`#define USE_CLEARCOAT_NORMALMAP`:``,n.dispersion?`#define USE_DISPERSION`:``,n.retroreflection?`#define USE_RETROREFLECTION`:``,n.iridescence?`#define USE_IRIDESCENCE`:``,n.iridescenceMap?`#define USE_IRIDESCENCEMAP`:``,n.iridescenceThicknessMap?`#define USE_IRIDESCENCE_THICKNESSMAP`:``,n.specularMap?`#define USE_SPECULARMAP`:``,n.specularColorMap?`#define USE_SPECULAR_COLORMAP`:``,n.specularIntensityMap?`#define USE_SPECULAR_INTENSITYMAP`:``,n.roughnessMap?`#define USE_ROUGHNESSMAP`:``,n.metalnessMap?`#define USE_METALNESSMAP`:``,n.alphaMap?`#define USE_ALPHAMAP`:``,n.alphaTest?`#define USE_ALPHATEST`:``,n.alphaHash?`#define USE_ALPHAHASH`:``,n.sheen?`#define USE_SHEEN`:``,n.sheenColorMap?`#define USE_SHEEN_COLORMAP`:``,n.sheenRoughnessMap?`#define USE_SHEEN_ROUGHNESSMAP`:``,n.transmission?`#define USE_TRANSMISSION`:``,n.transmissionMap?`#define USE_TRANSMISSIONMAP`:``,n.thicknessMap?`#define USE_THICKNESSMAP`:``,n.vertexTangents&&n.flatShading===!1?`#define USE_TANGENT`:``,n.vertexColors||n.instancingColor?`#define USE_COLOR`:``,n.vertexAlphas||n.batchingColor?`#define USE_COLOR_ALPHA`:``,n.vertexUv1s?`#define USE_UV1`:``,n.vertexUv2s?`#define USE_UV2`:``,n.vertexUv3s?`#define USE_UV3`:``,n.pointsUvs?`#define USE_POINTS_UV`:``,n.gradientMap?`#define USE_GRADIENTMAP`:``,n.flatShading?`#define FLAT_SHADED`:``,n.doubleSided?`#define DOUBLE_SIDED`:``,n.flipSided?`#define FLIP_SIDED`:``,n.shadowMapEnabled?`#define USE_SHADOWMAP`:``,n.shadowMapEnabled?`#define `+c:``,n.premultipliedAlpha?`#define PREMULTIPLIED_ALPHA`:``,n.numLightProbes>0?`#define USE_LIGHT_PROBES`:``,n.numLightProbeGrids>0?`#define USE_LIGHT_PROBES_GRID`:``,n.decodeVideoTexture?`#define DECODE_VIDEO_TEXTURE`:``,n.decodeVideoTextureEmissive?`#define DECODE_VIDEO_TEXTURE_EMISSIVE`:``,n.logarithmicDepthBuffer?`#define USE_LOGARITHMIC_DEPTH_BUFFER`:``,n.reversedDepthBuffer?`#define USE_REVERSED_DEPTH_BUFFER`:``,`uniform mat4 viewMatrix;`,`uniform vec3 cameraPosition;`,`uniform bool isOrthographic;`,n.toneMapping===0?``:`#define TONE_MAPPING`,n.toneMapping===0?``:_p.tonemapping_pars_fragment,n.toneMapping===0?``:bh(`toneMapping`,n.toneMapping),n.dithering?`#define DITHERING`:``,n.opaque?`#define OPAQUE`:``,_p.colorspace_pars_fragment,vh(`linearToOutputTexel`,n.outputColorSpace),Sh(),n.useDepthPacking?`#define DEPTH_PACKING `+n.depthPacking:``,` +`].filter(Eh).join(` +`)),o=Ah(o),o=Dh(o,n),o=Oh(o,n),s=Ah(s),s=Dh(s,n),s=Oh(s,n),o=Ph(o),s=Ph(s),n.isRawShaderMaterial!==!0&&(v=`#version 300 es `,g=[p,`#define attribute in`,`#define varying out`,`#define texture2D texture`].join(` `)+` `+g,_=[`#define varying in`,n.glslVersion===`300 es`?``:`layout(location = 0) out highp vec4 pc_fragColor;`,n.glslVersion===`300 es`?``:`#define gl_FragColor pc_fragColor`,`#define gl_FragDepthEXT gl_FragDepth`,`#define texture2D texture`,`#define textureCube texture`,`#define texture2DProj textureProj`,`#define texture2DLodEXT textureLod`,`#define texture2DProjLodEXT textureProjLod`,`#define textureCubeLodEXT textureLod`,`#define texture2DGradEXT textureGrad`,`#define texture2DProjGradEXT textureProjGrad`,`#define textureCubeGradEXT textureGrad`].join(` `)+` -`+_);let y=v+g+o,b=v+_+s,x=Em(i,i.VERTEX_SHADER,y),S=Em(i,i.FRAGMENT_SHADER,b);i.attachShader(h,x),i.attachShader(h,S),n.index0AttributeName===void 0?n.hasPositionAttribute===!0&&i.bindAttribLocation(h,0,`position`):i.bindAttribLocation(h,0,n.index0AttributeName),i.linkProgram(h);function C(t){if(e.debug.checkShaderErrors){let n=i.getProgramInfoLog(h)||``,r=i.getShaderInfoLog(x)||``,a=i.getShaderInfoLog(S)||``,o=n.trim(),s=r.trim(),c=a.trim(),l=!0,u=!0;if(i.getProgramParameter(h,i.LINK_STATUS)===!1){if(l=!1,typeof e.debug.onShaderError==`function`)e.debug.onShaderError(i,h,x,S);else{let e=Mm(i,x,`vertex`),n=Mm(i,S,`fragment`);Ba(`WebGLProgram: Shader Error `+i.getError()+` - VALIDATE_STATUS `+i.getProgramParameter(h,i.VALIDATE_STATUS)+` +`+_);let y=v+g+o,b=v+_+s,x=dh(i,i.VERTEX_SHADER,y),S=dh(i,i.FRAGMENT_SHADER,b);i.attachShader(h,x),i.attachShader(h,S),n.index0AttributeName===void 0?n.hasPositionAttribute===!0&&i.bindAttribLocation(h,0,`position`):i.bindAttribLocation(h,0,n.index0AttributeName),i.linkProgram(h);function C(t){if(e.debug.checkShaderErrors){let n=i.getProgramInfoLog(h)||``,r=i.getShaderInfoLog(x)||``,a=i.getShaderInfoLog(S)||``,o=n.trim(),s=r.trim(),c=a.trim(),l=!0,u=!0;if(i.getProgramParameter(h,i.LINK_STATUS)===!1){if(l=!1,typeof e.debug.onShaderError==`function`)e.debug.onShaderError(i,h,x,S);else{let e=_h(i,x,`vertex`),n=_h(i,S,`fragment`);Eo(`WebGLProgram: Shader Error `+i.getError()+` - VALIDATE_STATUS `+i.getProgramParameter(h,i.VALIDATE_STATUS)+` Material Name: `+t.name+` Material Type: `+t.type+` Program Info Log: `+o+` `+e+` -`+n)}}else o===``?(s===``||c===``)&&(u=!1):za(`WebGLProgram: Program Info Log:`,o);u&&(t.diagnostics={runnable:l,programLog:o,vertexShader:{log:s,prefix:g},fragmentShader:{log:c,prefix:_}})}i.deleteShader(x),i.deleteShader(S),w=new Tm(i,h),T=Bm(i,h)}let w;this.getUniforms=function(){return w===void 0&&C(this),w};let T;this.getAttributes=function(){return T===void 0&&C(this),T};let E=n.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return E===!1&&(E=i.getProgramParameter(h,Dm)),E},this.destroy=function(){r.releaseStatesOfProgram(this),i.deleteProgram(h),this.program=void 0},this.type=n.shaderType,this.name=n.shaderName,this.id=Om++,this.cacheKey=t,this.usedTimes=1,this.program=h,this.vertexShader=x,this.fragmentShader=S,this}var ch=0,lh=class{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e,t,n){let r=this._getShaderCacheForMaterial(e);return r.has(t)===!1&&(r.add(t),t.usedTimes++),r.has(n)===!1&&(r.add(n),n.usedTimes++),this}remove(e){let t=this.materialCache.get(e);for(let e of t)e.usedTimes--,e.usedTimes===0&&this.shaderCache.delete(e.code);return this.materialCache.delete(e),this}getVertexShaderStage(e){return this._getShaderStage(e.vertexShader)}getFragmentShaderStage(e){return this._getShaderStage(e.fragmentShader)}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){let t=this.materialCache,n=t.get(e);return n===void 0&&(n=new Set,t.set(e,n)),n}_getShaderStage(e){let t=this.shaderCache,n=t.get(e);return n===void 0&&(n=new uh(e),t.set(e,n)),n}},uh=class{constructor(e){this.id=ch++,this.code=e,this.usedTimes=0}};function dh(e){return e===1030||e===37490||e===36285}function fh(e,t,n,r,i,a){let o=new $o,s=new lh,c=new Set,l=[],u=new Map,d=r.logarithmicDepthBuffer,f=r.precision,p={MeshDepthMaterial:`depth`,MeshDistanceMaterial:`distance`,MeshNormalMaterial:`normal`,MeshBasicMaterial:`basic`,MeshLambertMaterial:`lambert`,MeshPhongMaterial:`phong`,MeshToonMaterial:`toon`,MeshStandardMaterial:`physical`,MeshPhysicalMaterial:`physical`,MeshMatcapMaterial:`matcap`,LineBasicMaterial:`basic`,LineDashedMaterial:`dashed`,PointsMaterial:`points`,ShadowMaterial:`shadow`,SpriteMaterial:`sprite`};function m(e){return c.add(e),e===0?`uv`:`uv${e}`}function h(i,o,l,u,h,g){let _=u.fog,v=h.geometry,y=i.isMeshStandardMaterial||i.isMeshLambertMaterial||i.isMeshPhongMaterial?u.environment:null,b=i.isMeshStandardMaterial||i.isMeshLambertMaterial&&!i.envMap||i.isMeshPhongMaterial&&!i.envMap,x=t.get(i.envMap||y,b),S=x&&x.mapping===306?x.image.height:null,C=p[i.type];i.precision!==null&&(f=r.getMaxPrecision(i.precision),f!==i.precision&&za(`WebGLProgram.getParameters:`,i.precision,`not supported, using`,f,`instead.`));let w=v.morphAttributes.position||v.morphAttributes.normal||v.morphAttributes.color,T=w===void 0?0:w.length,E=0;v.morphAttributes.position!==void 0&&(E=1),v.morphAttributes.normal!==void 0&&(E=2),v.morphAttributes.color!==void 0&&(E=3);let D,O,k,A;if(C){let e=Nf[C];D=e.vertexShader,O=e.fragmentShader}else{D=i.vertexShader,O=i.fragmentShader;let e=s.getVertexShaderStage(i),t=s.getFragmentShaderStage(i);s.update(i,e,t),k=e.id,A=t.id}let j=e.getRenderTarget(),ee=e.state.buffers.depth.getReversed(),M=h.isInstancedMesh===!0,te=h.isBatchedMesh===!0,ne=!!i.map,re=!!i.matcap,ie=!!x,ae=!!i.aoMap,oe=!!i.lightMap,se=!!i.bumpMap&&i.wireframe===!1,ce=!!i.normalMap,le=!!i.displacementMap,ue=!!i.emissiveMap,de=!!i.metalnessMap,fe=!!i.roughnessMap,pe=i.anisotropy>0,me=i.clearcoat>0,he=i.dispersion>0,ge=i.retroreflectivity>0,_e=i.iridescence>0,ve=i.sheen>0,ye=i.transmission>0,be=pe&&!!i.anisotropyMap,xe=me&&!!i.clearcoatMap,Se=me&&!!i.clearcoatNormalMap,Ce=me&&!!i.clearcoatRoughnessMap,we=_e&&!!i.iridescenceMap,N=_e&&!!i.iridescenceThicknessMap,Te=ve&&!!i.sheenColorMap,Ee=ve&&!!i.sheenRoughnessMap,P=!!i.specularMap,F=!!i.specularColorMap,De=!!i.specularIntensityMap,Oe=ye&&!!i.transmissionMap,ke=ye&&!!i.thicknessMap,Ae=!!i.gradientMap,je=!!i.alphaMap,Me=i.alphaTest>0,Ne=!!i.alphaHash,Pe=!!i.extensions,Fe=0;i.toneMapped&&(j===null||j.isXRRenderTarget===!0)&&(Fe=e.toneMapping);let Ie={shaderID:C,shaderType:i.type,shaderName:i.name,vertexShader:D,fragmentShader:O,defines:i.defines,customVertexShaderID:k,customFragmentShaderID:A,isRawShaderMaterial:i.isRawShaderMaterial===!0,glslVersion:i.glslVersion,precision:f,batching:te,batchingColor:te&&h._colorsTexture!==null,instancing:M,instancingColor:M&&h.instanceColor!==null,instancingMorph:M&&h.morphTexture!==null,outputColorSpace:j===null?e.outputColorSpace:j.isXRRenderTarget===!0?j.texture.colorSpace:Eo.workingColorSpace,alphaToCoverage:!!i.alphaToCoverage,map:ne,matcap:re,envMap:ie,envMapMode:ie&&x.mapping,envMapCubeUVHeight:S,aoMap:ae,lightMap:oe,bumpMap:se,normalMap:ce,displacementMap:le,emissiveMap:ue,normalMapObjectSpace:ce&&i.normalMapType===1,normalMapTangentSpace:ce&&i.normalMapType===0,packedNormalMap:ce&&i.normalMapType===0&&dh(i.normalMap.format),metalnessMap:de,roughnessMap:fe,anisotropy:pe,anisotropyMap:be,clearcoat:me,clearcoatMap:xe,clearcoatNormalMap:Se,clearcoatRoughnessMap:Ce,dispersion:he,retroreflection:ge,iridescence:_e,iridescenceMap:we,iridescenceThicknessMap:N,sheen:ve,sheenColorMap:Te,sheenRoughnessMap:Ee,specularMap:P,specularColorMap:F,specularIntensityMap:De,transmission:ye,transmissionMap:Oe,thicknessMap:ke,gradientMap:Ae,opaque:i.transparent===!1&&i.blending===1&&i.alphaToCoverage===!1,alphaMap:je,alphaTest:Me,alphaHash:Ne,combine:i.combine,mapUv:ne&&m(i.map.channel),aoMapUv:ae&&m(i.aoMap.channel),lightMapUv:oe&&m(i.lightMap.channel),bumpMapUv:se&&m(i.bumpMap.channel),normalMapUv:ce&&m(i.normalMap.channel),displacementMapUv:le&&m(i.displacementMap.channel),emissiveMapUv:ue&&m(i.emissiveMap.channel),metalnessMapUv:de&&m(i.metalnessMap.channel),roughnessMapUv:fe&&m(i.roughnessMap.channel),anisotropyMapUv:be&&m(i.anisotropyMap.channel),clearcoatMapUv:xe&&m(i.clearcoatMap.channel),clearcoatNormalMapUv:Se&&m(i.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:Ce&&m(i.clearcoatRoughnessMap.channel),iridescenceMapUv:we&&m(i.iridescenceMap.channel),iridescenceThicknessMapUv:N&&m(i.iridescenceThicknessMap.channel),sheenColorMapUv:Te&&m(i.sheenColorMap.channel),sheenRoughnessMapUv:Ee&&m(i.sheenRoughnessMap.channel),specularMapUv:P&&m(i.specularMap.channel),specularColorMapUv:F&&m(i.specularColorMap.channel),specularIntensityMapUv:De&&m(i.specularIntensityMap.channel),transmissionMapUv:Oe&&m(i.transmissionMap.channel),thicknessMapUv:ke&&m(i.thicknessMap.channel),alphaMapUv:je&&m(i.alphaMap.channel),vertexTangents:!!v.attributes.tangent&&(ce||pe),vertexNormals:!!v.attributes.normal,vertexColors:i.vertexColors,vertexAlphas:i.vertexColors===!0&&!!v.attributes.color&&v.attributes.color.itemSize===4,pointsUvs:h.isPoints===!0&&!!v.attributes.uv&&(ne||je),fog:!!_,useFog:i.fog===!0,fogExp2:!!_&&_.isFogExp2,flatShading:i.wireframe===!1&&(i.flatShading===!0||v.attributes.normal===void 0&&ce===!1&&(i.isMeshLambertMaterial||i.isMeshPhongMaterial||i.isMeshStandardMaterial||i.isMeshPhysicalMaterial)),sizeAttenuation:i.sizeAttenuation===!0,logarithmicDepthBuffer:d,reversedDepthBuffer:ee,skinning:h.isSkinnedMesh===!0,hasPositionAttribute:v.attributes.position!==void 0,morphTargets:v.morphAttributes.position!==void 0,morphNormals:v.morphAttributes.normal!==void 0,morphColors:v.morphAttributes.color!==void 0,morphTargetsCount:T,morphTextureStride:E,numSunLights:o.sun.length,numDirLights:o.directional.length,numPointLights:o.point.length,numSpotLights:o.spot.length,numSpotLightMaps:o.spotLightMap.length,numRectAreaLights:o.rectArea.length,numHemiLights:o.hemi.length,numSunLightShadows:o.sunShadowMap.length,numDirLightShadows:o.directionalShadowMap.length,numPointLightShadows:o.pointShadowMap.length,numSpotLightShadows:o.spotShadowMap.length,numSpotLightShadowsWithMaps:o.numSpotLightShadowsWithMaps,numLightProbes:o.numLightProbes,numLightProbeGrids:g.length,numClippingPlanes:a.numPlanes,numClipIntersection:a.numIntersection,dithering:i.dithering,shadowMapEnabled:e.shadowMap.enabled&&l.length>0,shadowMapType:e.shadowMap.type,toneMapping:Fe,decodeVideoTexture:ne&&i.map.isVideoTexture===!0&&Eo.getTransfer(i.map.colorSpace)===`srgb`,decodeVideoTextureEmissive:ue&&i.emissiveMap.isVideoTexture===!0&&Eo.getTransfer(i.emissiveMap.colorSpace)===`srgb`,premultipliedAlpha:i.premultipliedAlpha,doubleSided:i.side===2,flipSided:i.side===1,useDepthPacking:i.depthPacking>=0,depthPacking:i.depthPacking||0,index0AttributeName:i.index0AttributeName,extensionClipCullDistance:Pe&&i.extensions.clipCullDistance===!0&&n.has(`WEBGL_clip_cull_distance`),extensionMultiDraw:(Pe&&i.extensions.multiDraw===!0||te)&&n.has(`WEBGL_multi_draw`),rendererExtensionParallelShaderCompile:n.has(`KHR_parallel_shader_compile`),customProgramCacheKey:i.customProgramCacheKey()};return Ie.vertexUv1s=c.has(1),Ie.vertexUv2s=c.has(2),Ie.vertexUv3s=c.has(3),c.clear(),Ie}function g(t){let n=[];if(t.shaderID?n.push(t.shaderID):(n.push(t.customVertexShaderID),n.push(t.customFragmentShaderID)),t.defines!==void 0)for(let e in t.defines)n.push(e),n.push(t.defines[e]);return t.isRawShaderMaterial===!1&&(_(n,t),v(n,t),n.push(e.outputColorSpace)),n.push(t.customProgramCacheKey),n.join()}function _(e,t){e.push(t.precision),e.push(t.outputColorSpace),e.push(t.envMapMode),e.push(t.envMapCubeUVHeight),e.push(t.mapUv),e.push(t.alphaMapUv),e.push(t.lightMapUv),e.push(t.aoMapUv),e.push(t.bumpMapUv),e.push(t.normalMapUv),e.push(t.displacementMapUv),e.push(t.emissiveMapUv),e.push(t.metalnessMapUv),e.push(t.roughnessMapUv),e.push(t.anisotropyMapUv),e.push(t.clearcoatMapUv),e.push(t.clearcoatNormalMapUv),e.push(t.clearcoatRoughnessMapUv),e.push(t.iridescenceMapUv),e.push(t.iridescenceThicknessMapUv),e.push(t.sheenColorMapUv),e.push(t.sheenRoughnessMapUv),e.push(t.specularMapUv),e.push(t.specularColorMapUv),e.push(t.specularIntensityMapUv),e.push(t.transmissionMapUv),e.push(t.thicknessMapUv),e.push(t.combine),e.push(t.fogExp2),e.push(t.sizeAttenuation),e.push(t.morphTargetsCount),e.push(t.morphAttributeCount),e.push(t.numSunLights),e.push(t.numDirLights),e.push(t.numPointLights),e.push(t.numSpotLights),e.push(t.numSpotLightMaps),e.push(t.numHemiLights),e.push(t.numRectAreaLights),e.push(t.numSunLightShadows),e.push(t.numDirLightShadows),e.push(t.numPointLightShadows),e.push(t.numSpotLightShadows),e.push(t.numSpotLightShadowsWithMaps),e.push(t.numLightProbes),e.push(t.shadowMapType),e.push(t.toneMapping),e.push(t.numClippingPlanes),e.push(t.numClipIntersection),e.push(t.depthPacking)}function v(e,t){o.disableAll(),t.instancing&&o.enable(0),t.instancingColor&&o.enable(1),t.instancingMorph&&o.enable(2),t.matcap&&o.enable(3),t.envMap&&o.enable(4),t.normalMapObjectSpace&&o.enable(5),t.normalMapTangentSpace&&o.enable(6),t.clearcoat&&o.enable(7),t.iridescence&&o.enable(8),t.alphaTest&&o.enable(9),t.vertexColors&&o.enable(10),t.vertexAlphas&&o.enable(11),t.vertexUv1s&&o.enable(12),t.vertexUv2s&&o.enable(13),t.vertexUv3s&&o.enable(14),t.vertexTangents&&o.enable(15),t.anisotropy&&o.enable(16),t.alphaHash&&o.enable(17),t.batching&&o.enable(18),t.dispersion&&o.enable(19),t.retroreflection&&o.enable(24),t.batchingColor&&o.enable(20),t.gradientMap&&o.enable(21),t.packedNormalMap&&o.enable(22),t.vertexNormals&&o.enable(23),e.push(o.mask),o.disableAll(),t.fog&&o.enable(0),t.useFog&&o.enable(1),t.flatShading&&o.enable(2),t.logarithmicDepthBuffer&&o.enable(3),t.reversedDepthBuffer&&o.enable(4),t.skinning&&o.enable(5),t.morphTargets&&o.enable(6),t.morphNormals&&o.enable(7),t.morphColors&&o.enable(8),t.premultipliedAlpha&&o.enable(9),t.shadowMapEnabled&&o.enable(10),t.doubleSided&&o.enable(11),t.flipSided&&o.enable(12),t.useDepthPacking&&o.enable(13),t.dithering&&o.enable(14),t.transmission&&o.enable(15),t.sheen&&o.enable(16),t.opaque&&o.enable(17),t.pointsUvs&&o.enable(18),t.decodeVideoTexture&&o.enable(19),t.decodeVideoTextureEmissive&&o.enable(20),t.alphaToCoverage&&o.enable(21),t.numLightProbeGrids>0&&o.enable(22),t.hasPositionAttribute&&o.enable(23),e.push(o.mask)}function y(e){let t=p[e.type],n;if(t){let e=Nf[t];n=Vu.clone(e.uniforms)}else n=e.uniforms;return n}function b(t,n){let r=u.get(n);return r===void 0?(r=new sh(e,n,t,i),l.push(r),u.set(n,r)):++r.usedTimes,r}function x(e){if(--e.usedTimes===0){let t=l.indexOf(e);l[t]=l[l.length-1],l.pop(),u.delete(e.cacheKey),e.destroy()}}function S(e){s.remove(e)}function C(){s.dispose()}return{getParameters:h,getProgramCacheKey:g,getUniforms:y,acquireProgram:b,releaseProgram:x,releaseShaderCache:S,programs:l,dispose:C}}function ph(){let e=new WeakMap;function t(t){return e.has(t)}function n(t){let n=e.get(t);return n===void 0&&(n={},e.set(t,n)),n}function r(t){e.delete(t)}function i(t,n,r){e.get(t)[n]=r}function a(){e=new WeakMap}return{has:t,get:n,remove:r,update:i,dispose:a}}function mh(e,t){return e.groupOrder===t.groupOrder?e.renderOrder===t.renderOrder?e.material.id===t.material.id?e.materialVariant===t.materialVariant?e.z===t.z?e.id-t.id:e.z-t.z:e.materialVariant-t.materialVariant:e.material.id-t.material.id:e.renderOrder-t.renderOrder:e.groupOrder-t.groupOrder}function hh(e,t){return e.groupOrder===t.groupOrder?e.renderOrder===t.renderOrder?e.z===t.z?e.id-t.id:t.z-e.z:e.renderOrder-t.renderOrder:e.groupOrder-t.groupOrder}function gh(){let e=[],t=0,n=[],r=[],i=[];function a(){t=0,n.length=0,r.length=0,i.length=0}function o(e){let t=0;return e.isInstancedMesh&&(t+=2),e.isSkinnedMesh&&(t+=1),t}function s(n,r,i,a,s,c){let l=e[t];return l===void 0?(l={id:n.id,object:n,geometry:r,material:i,materialVariant:o(n),groupOrder:a,renderOrder:n.renderOrder,z:s,group:c},e[t]=l):(l.id=n.id,l.object=n,l.geometry=r,l.material=i,l.materialVariant=o(n),l.groupOrder=a,l.renderOrder=n.renderOrder,l.z=s,l.group=c),t++,l}function c(e,t,a,o,c,l,u){u.reversedDepth===!0&&(c=-c);let d=s(e,t,a,o,c,l);a.transmission>0?r.push(d):a.transparent===!0?i.push(d):n.push(d)}function l(e,t,a,o,c,l){let u=s(e,t,a,o,c,l);a.transmission>0?r.unshift(u):a.transparent===!0?i.unshift(u):n.unshift(u)}function u(e,t){n.length>1&&n.sort(e||mh),r.length>1&&r.sort(t||hh),i.length>1&&i.sort(t||hh)}function d(){for(let n=t,r=e.length;n=r.length?(i=new gh,r.push(i)):i=r[n],i}function n(){e=new WeakMap}return{get:t,dispose:n}}function vh(){let e={};return{get:function(t){if(e[t.id]!==void 0)return e[t.id];let n;switch(t.type){case`SunLight`:case`DirectionalLight`:n={direction:new z,color:new B};break;case`SpotLight`:n={position:new z,direction:new z,color:new B,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case`PointLight`:n={position:new z,color:new B,distance:0,decay:0};break;case`HemisphereLight`:n={direction:new z,skyColor:new B,groundColor:new B};break;case`RectAreaLight`:n={color:new B,position:new z,halfWidth:new z,halfHeight:new z}}return e[t.id]=n,n}}}function yh(){let e={};return{get:function(t){if(e[t.id]!==void 0)return e[t.id];let n;switch(t.type){case`SunLight`:case`DirectionalLight`:n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new R};break;case`SpotLight`:n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new R};break;case`PointLight`:n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new R,shadowCameraNear:1,shadowCameraFar:1e3}}return e[t.id]=n,n}}}var bh=0;function xh(e,t){return(t.castShadow?2:0)-(e.castShadow?2:0)+ +!!t.map-!!e.map}function Sh(e){let t=new vh,n=yh(),r={version:0,hash:{sunLength:-1,directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numSunShadows:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],sun:[],sunShadow:[],sunShadowMap:[],sunShadowMatrix:[],sunShadowCascade:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let e=0;e<9;e++)r.probe.push(new z);let i=new z,a=new Ho,o=new Ho;function s(i){let a=0,o=0,s=0;for(let e=0;e<9;e++)r.probe[e].set(0,0,0);let c=0,l=0,u=0,d=0,f=0,p=0,m=0,h=0,g=0,_=0,v=0,y=0,b=0,x=0;i.sort(xh);for(let e=0,S=i.length;e0&&(e.has(`OES_texture_float_linear`)===!0?(r.rectAreaLTC1=H.LTC_FLOAT_1,r.rectAreaLTC2=H.LTC_FLOAT_2):(r.rectAreaLTC1=H.LTC_HALF_1,r.rectAreaLTC2=H.LTC_HALF_2)),r.ambient[0]=a,r.ambient[1]=o,r.ambient[2]=s;let S=r.hash;(S.sunLength!==c||S.directionalLength!==d||S.pointLength!==f||S.spotLength!==p||S.rectAreaLength!==m||S.hemiLength!==h||S.numSunShadows!==l||S.numDirectionalShadows!==g||S.numPointShadows!==_||S.numSpotShadows!==v||S.numSpotMaps!==y||S.numLightProbes!==x)&&(r.sun.length=c,r.directional.length=d,r.spot.length=p,r.rectArea.length=m,r.point.length=f,r.hemi.length=h,r.sunShadow.length=l,r.sunShadowMap.length=l,r.sunShadowMatrix.length=u,r.sunShadowCascade.length=u,r.directionalShadow.length=g,r.directionalShadowMap.length=g,r.directionalShadowMatrix.length=g,r.pointShadow.length=_,r.pointShadowMap.length=_,r.pointShadowMatrix.length=_,r.spotShadow.length=v,r.spotShadowMap.length=v,r.spotLightMatrix.length=v+y-b,r.spotLightMap.length=y,r.numSpotLightShadowsWithMaps=b,r.numLightProbes=x,S.sunLength=c,S.directionalLength=d,S.pointLength=f,S.spotLength=p,S.rectAreaLength=m,S.hemiLength=h,S.numSunShadows=l,S.numDirectionalShadows=g,S.numPointShadows=_,S.numSpotShadows=v,S.numSpotMaps=y,S.numLightProbes=x,r.version=bh++)}function c(e,t){let n=0,s=0,c=0,l=0,u=0,d=0,f=t.matrixWorldInverse;for(let t=0,p=e.length;t=i.length?(a=new Ch(e),i.push(a)):a=i[r],a}function r(){t=new WeakMap}return{get:n,dispose:r}}var Th=`void main() { +`+n)}}else o===``?(s===``||c===``)&&(u=!1):To(`WebGLProgram: Program Info Log:`,o);u&&(t.diagnostics={runnable:l,programLog:o,vertexShader:{log:s,prefix:g},fragmentShader:{log:c,prefix:_}})}i.deleteShader(x),i.deleteShader(S),w=new uh(i,h),T=Th(i,h)}let w;this.getUniforms=function(){return w===void 0&&C(this),w};let T;this.getAttributes=function(){return T===void 0&&C(this),T};let E=n.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return E===!1&&(E=i.getProgramParameter(h,fh)),E},this.destroy=function(){r.releaseStatesOfProgram(this),i.deleteProgram(h),this.program=void 0},this.type=n.shaderType,this.name=n.shaderName,this.id=ph++,this.cacheKey=t,this.usedTimes=1,this.program=h,this.vertexShader=x,this.fragmentShader=S,this}var qh=0,Jh=class{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e,t,n){let r=this._getShaderCacheForMaterial(e);return r.has(t)===!1&&(r.add(t),t.usedTimes++),r.has(n)===!1&&(r.add(n),n.usedTimes++),this}remove(e){let t=this.materialCache.get(e);for(let e of t)e.usedTimes--,e.usedTimes===0&&this.shaderCache.delete(e.code);return this.materialCache.delete(e),this}getVertexShaderStage(e){return this._getShaderStage(e.vertexShader)}getFragmentShaderStage(e){return this._getShaderStage(e.fragmentShader)}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){let t=this.materialCache,n=t.get(e);return n===void 0&&(n=new Set,t.set(e,n)),n}_getShaderStage(e){let t=this.shaderCache,n=t.get(e);return n===void 0&&(n=new Yh(e),t.set(e,n)),n}},Yh=class{constructor(e){this.id=qh++,this.code=e,this.usedTimes=0}};function Xh(e){return e===1030||e===37490||e===36285}function Zh(e,t,n,r,i,a){let o=new Rs,s=new Jh,c=new Set,l=[],u=new Map,d=r.logarithmicDepthBuffer,f=r.precision,p={MeshDepthMaterial:`depth`,MeshDistanceMaterial:`distance`,MeshNormalMaterial:`normal`,MeshBasicMaterial:`basic`,MeshLambertMaterial:`lambert`,MeshPhongMaterial:`phong`,MeshToonMaterial:`toon`,MeshStandardMaterial:`physical`,MeshPhysicalMaterial:`physical`,MeshMatcapMaterial:`matcap`,LineBasicMaterial:`basic`,LineDashedMaterial:`dashed`,PointsMaterial:`points`,ShadowMaterial:`shadow`,SpriteMaterial:`sprite`};function m(e){return c.add(e),e===0?`uv`:`uv${e}`}function h(i,o,l,u,h,g){let _=u.fog,v=h.geometry,y=i.isMeshStandardMaterial||i.isMeshLambertMaterial||i.isMeshPhongMaterial?u.environment:null,b=i.isMeshStandardMaterial||i.isMeshLambertMaterial&&!i.envMap||i.isMeshPhongMaterial&&!i.envMap,x=t.get(i.envMap||y,b),S=x&&x.mapping===306?x.image.height:null,C=p[i.type];i.precision!==null&&(f=r.getMaxPrecision(i.precision),f!==i.precision&&To(`WebGLProgram.getParameters:`,i.precision,`not supported, using`,f,`instead.`));let w=v.morphAttributes.position||v.morphAttributes.normal||v.morphAttributes.color,T=w===void 0?0:w.length,E=0;v.morphAttributes.position!==void 0&&(E=1),v.morphAttributes.normal!==void 0&&(E=2),v.morphAttributes.color!==void 0&&(E=3);let D,O,k,ee;if(C){let e=vp[C];D=e.vertexShader,O=e.fragmentShader}else{D=i.vertexShader,O=i.fragmentShader;let e=s.getVertexShaderStage(i),t=s.getFragmentShaderStage(i);s.update(i,e,t),k=e.id,ee=t.id}let A=e.getRenderTarget(),te=e.state.buffers.depth.getReversed(),j=h.isInstancedMesh===!0,ne=h.isBatchedMesh===!0,re=!!i.map,ie=!!i.matcap,M=!!x,N=!!i.aoMap,ae=!!i.lightMap,oe=!!i.bumpMap&&i.wireframe===!1,se=!!i.normalMap,ce=!!i.displacementMap,le=!!i.emissiveMap,ue=!!i.metalnessMap,de=!!i.roughnessMap,fe=i.anisotropy>0,pe=i.clearcoat>0,me=i.dispersion>0,he=i.retroreflectivity>0,ge=i.iridescence>0,_e=i.sheen>0,ve=i.transmission>0,ye=fe&&!!i.anisotropyMap,be=pe&&!!i.clearcoatMap,xe=pe&&!!i.clearcoatNormalMap,Se=pe&&!!i.clearcoatRoughnessMap,Ce=ge&&!!i.iridescenceMap,P=ge&&!!i.iridescenceThicknessMap,we=_e&&!!i.sheenColorMap,Te=_e&&!!i.sheenRoughnessMap,F=!!i.specularMap,I=!!i.specularColorMap,Ee=!!i.specularIntensityMap,De=ve&&!!i.transmissionMap,Oe=ve&&!!i.thicknessMap,ke=!!i.gradientMap,Ae=!!i.alphaMap,je=i.alphaTest>0,Me=!!i.alphaHash,Ne=!!i.extensions,Pe=0;i.toneMapped&&(A===null||A.isXRRenderTarget===!0)&&(Pe=e.toneMapping);let Fe={shaderID:C,shaderType:i.type,shaderName:i.name,vertexShader:D,fragmentShader:O,defines:i.defines,customVertexShaderID:k,customFragmentShaderID:ee,isRawShaderMaterial:i.isRawShaderMaterial===!0,glslVersion:i.glslVersion,precision:f,batching:ne,batchingColor:ne&&h._colorsTexture!==null,instancing:j,instancingColor:j&&h.instanceColor!==null,instancingMorph:j&&h.morphTexture!==null,outputColorSpace:A===null?e.outputColorSpace:A.isXRRenderTarget===!0?A.texture.colorSpace:ds.workingColorSpace,alphaToCoverage:!!i.alphaToCoverage,map:re,matcap:ie,envMap:M,envMapMode:M&&x.mapping,envMapCubeUVHeight:S,aoMap:N,lightMap:ae,bumpMap:oe,normalMap:se,displacementMap:ce,emissiveMap:le,normalMapObjectSpace:se&&i.normalMapType===1,normalMapTangentSpace:se&&i.normalMapType===0,packedNormalMap:se&&i.normalMapType===0&&Xh(i.normalMap.format),metalnessMap:ue,roughnessMap:de,anisotropy:fe,anisotropyMap:ye,clearcoat:pe,clearcoatMap:be,clearcoatNormalMap:xe,clearcoatRoughnessMap:Se,dispersion:me,retroreflection:he,iridescence:ge,iridescenceMap:Ce,iridescenceThicknessMap:P,sheen:_e,sheenColorMap:we,sheenRoughnessMap:Te,specularMap:F,specularColorMap:I,specularIntensityMap:Ee,transmission:ve,transmissionMap:De,thicknessMap:Oe,gradientMap:ke,opaque:i.transparent===!1&&i.blending===1&&i.alphaToCoverage===!1,alphaMap:Ae,alphaTest:je,alphaHash:Me,combine:i.combine,mapUv:re&&m(i.map.channel),aoMapUv:N&&m(i.aoMap.channel),lightMapUv:ae&&m(i.lightMap.channel),bumpMapUv:oe&&m(i.bumpMap.channel),normalMapUv:se&&m(i.normalMap.channel),displacementMapUv:ce&&m(i.displacementMap.channel),emissiveMapUv:le&&m(i.emissiveMap.channel),metalnessMapUv:ue&&m(i.metalnessMap.channel),roughnessMapUv:de&&m(i.roughnessMap.channel),anisotropyMapUv:ye&&m(i.anisotropyMap.channel),clearcoatMapUv:be&&m(i.clearcoatMap.channel),clearcoatNormalMapUv:xe&&m(i.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:Se&&m(i.clearcoatRoughnessMap.channel),iridescenceMapUv:Ce&&m(i.iridescenceMap.channel),iridescenceThicknessMapUv:P&&m(i.iridescenceThicknessMap.channel),sheenColorMapUv:we&&m(i.sheenColorMap.channel),sheenRoughnessMapUv:Te&&m(i.sheenRoughnessMap.channel),specularMapUv:F&&m(i.specularMap.channel),specularColorMapUv:I&&m(i.specularColorMap.channel),specularIntensityMapUv:Ee&&m(i.specularIntensityMap.channel),transmissionMapUv:De&&m(i.transmissionMap.channel),thicknessMapUv:Oe&&m(i.thicknessMap.channel),alphaMapUv:Ae&&m(i.alphaMap.channel),vertexTangents:!!v.attributes.tangent&&(se||fe),vertexNormals:!!v.attributes.normal,vertexColors:i.vertexColors,vertexAlphas:i.vertexColors===!0&&!!v.attributes.color&&v.attributes.color.itemSize===4,pointsUvs:h.isPoints===!0&&!!v.attributes.uv&&(re||Ae),fog:!!_,useFog:i.fog===!0,fogExp2:!!_&&_.isFogExp2,flatShading:i.wireframe===!1&&(i.flatShading===!0||v.attributes.normal===void 0&&se===!1&&(i.isMeshLambertMaterial||i.isMeshPhongMaterial||i.isMeshStandardMaterial||i.isMeshPhysicalMaterial)),sizeAttenuation:i.sizeAttenuation===!0,logarithmicDepthBuffer:d,reversedDepthBuffer:te,skinning:h.isSkinnedMesh===!0,hasPositionAttribute:v.attributes.position!==void 0,morphTargets:v.morphAttributes.position!==void 0,morphNormals:v.morphAttributes.normal!==void 0,morphColors:v.morphAttributes.color!==void 0,morphTargetsCount:T,morphTextureStride:E,numSunLights:o.sun.length,numDirLights:o.directional.length,numPointLights:o.point.length,numSpotLights:o.spot.length,numSpotLightMaps:o.spotLightMap.length,numRectAreaLights:o.rectArea.length,numHemiLights:o.hemi.length,numSunLightShadows:o.sunShadowMap.length,numDirLightShadows:o.directionalShadowMap.length,numPointLightShadows:o.pointShadowMap.length,numSpotLightShadows:o.spotShadowMap.length,numSpotLightShadowsWithMaps:o.numSpotLightShadowsWithMaps,numLightProbes:o.numLightProbes,numLightProbeGrids:g.length,numClippingPlanes:a.numPlanes,numClipIntersection:a.numIntersection,dithering:i.dithering,shadowMapEnabled:e.shadowMap.enabled&&l.length>0,shadowMapType:e.shadowMap.type,toneMapping:Pe,decodeVideoTexture:re&&i.map.isVideoTexture===!0&&ds.getTransfer(i.map.colorSpace)===`srgb`,decodeVideoTextureEmissive:le&&i.emissiveMap.isVideoTexture===!0&&ds.getTransfer(i.emissiveMap.colorSpace)===`srgb`,premultipliedAlpha:i.premultipliedAlpha,doubleSided:i.side===2,flipSided:i.side===1,useDepthPacking:i.depthPacking>=0,depthPacking:i.depthPacking||0,index0AttributeName:i.index0AttributeName,extensionClipCullDistance:Ne&&i.extensions.clipCullDistance===!0&&n.has(`WEBGL_clip_cull_distance`),extensionMultiDraw:(Ne&&i.extensions.multiDraw===!0||ne)&&n.has(`WEBGL_multi_draw`),rendererExtensionParallelShaderCompile:n.has(`KHR_parallel_shader_compile`),customProgramCacheKey:i.customProgramCacheKey()};return Fe.vertexUv1s=c.has(1),Fe.vertexUv2s=c.has(2),Fe.vertexUv3s=c.has(3),c.clear(),Fe}function g(t){let n=[];if(t.shaderID?n.push(t.shaderID):(n.push(t.customVertexShaderID),n.push(t.customFragmentShaderID)),t.defines!==void 0)for(let e in t.defines)n.push(e),n.push(t.defines[e]);return t.isRawShaderMaterial===!1&&(_(n,t),v(n,t),n.push(e.outputColorSpace)),n.push(t.customProgramCacheKey),n.join()}function _(e,t){e.push(t.precision),e.push(t.outputColorSpace),e.push(t.envMapMode),e.push(t.envMapCubeUVHeight),e.push(t.mapUv),e.push(t.alphaMapUv),e.push(t.lightMapUv),e.push(t.aoMapUv),e.push(t.bumpMapUv),e.push(t.normalMapUv),e.push(t.displacementMapUv),e.push(t.emissiveMapUv),e.push(t.metalnessMapUv),e.push(t.roughnessMapUv),e.push(t.anisotropyMapUv),e.push(t.clearcoatMapUv),e.push(t.clearcoatNormalMapUv),e.push(t.clearcoatRoughnessMapUv),e.push(t.iridescenceMapUv),e.push(t.iridescenceThicknessMapUv),e.push(t.sheenColorMapUv),e.push(t.sheenRoughnessMapUv),e.push(t.specularMapUv),e.push(t.specularColorMapUv),e.push(t.specularIntensityMapUv),e.push(t.transmissionMapUv),e.push(t.thicknessMapUv),e.push(t.combine),e.push(t.fogExp2),e.push(t.sizeAttenuation),e.push(t.morphTargetsCount),e.push(t.morphAttributeCount),e.push(t.numSunLights),e.push(t.numDirLights),e.push(t.numPointLights),e.push(t.numSpotLights),e.push(t.numSpotLightMaps),e.push(t.numHemiLights),e.push(t.numRectAreaLights),e.push(t.numSunLightShadows),e.push(t.numDirLightShadows),e.push(t.numPointLightShadows),e.push(t.numSpotLightShadows),e.push(t.numSpotLightShadowsWithMaps),e.push(t.numLightProbes),e.push(t.shadowMapType),e.push(t.toneMapping),e.push(t.numClippingPlanes),e.push(t.numClipIntersection),e.push(t.depthPacking)}function v(e,t){o.disableAll(),t.instancing&&o.enable(0),t.instancingColor&&o.enable(1),t.instancingMorph&&o.enable(2),t.matcap&&o.enable(3),t.envMap&&o.enable(4),t.normalMapObjectSpace&&o.enable(5),t.normalMapTangentSpace&&o.enable(6),t.clearcoat&&o.enable(7),t.iridescence&&o.enable(8),t.alphaTest&&o.enable(9),t.vertexColors&&o.enable(10),t.vertexAlphas&&o.enable(11),t.vertexUv1s&&o.enable(12),t.vertexUv2s&&o.enable(13),t.vertexUv3s&&o.enable(14),t.vertexTangents&&o.enable(15),t.anisotropy&&o.enable(16),t.alphaHash&&o.enable(17),t.batching&&o.enable(18),t.dispersion&&o.enable(19),t.retroreflection&&o.enable(24),t.batchingColor&&o.enable(20),t.gradientMap&&o.enable(21),t.packedNormalMap&&o.enable(22),t.vertexNormals&&o.enable(23),e.push(o.mask),o.disableAll(),t.fog&&o.enable(0),t.useFog&&o.enable(1),t.flatShading&&o.enable(2),t.logarithmicDepthBuffer&&o.enable(3),t.reversedDepthBuffer&&o.enable(4),t.skinning&&o.enable(5),t.morphTargets&&o.enable(6),t.morphNormals&&o.enable(7),t.morphColors&&o.enable(8),t.premultipliedAlpha&&o.enable(9),t.shadowMapEnabled&&o.enable(10),t.doubleSided&&o.enable(11),t.flipSided&&o.enable(12),t.useDepthPacking&&o.enable(13),t.dithering&&o.enable(14),t.transmission&&o.enable(15),t.sheen&&o.enable(16),t.opaque&&o.enable(17),t.pointsUvs&&o.enable(18),t.decodeVideoTexture&&o.enable(19),t.decodeVideoTextureEmissive&&o.enable(20),t.alphaToCoverage&&o.enable(21),t.numLightProbeGrids>0&&o.enable(22),t.hasPositionAttribute&&o.enable(23),e.push(o.mask)}function y(e){let t=p[e.type],n;if(t){let e=vp[t];n=Ed.clone(e.uniforms)}else n=e.uniforms;return n}function b(t,n){let r=u.get(n);return r===void 0?(r=new Kh(e,n,t,i),l.push(r),u.set(n,r)):++r.usedTimes,r}function x(e){if(--e.usedTimes===0){let t=l.indexOf(e);l[t]=l[l.length-1],l.pop(),u.delete(e.cacheKey),e.destroy()}}function S(e){s.remove(e)}function C(){s.dispose()}return{getParameters:h,getProgramCacheKey:g,getUniforms:y,acquireProgram:b,releaseProgram:x,releaseShaderCache:S,programs:l,dispose:C}}function Qh(){let e=new WeakMap;function t(t){return e.has(t)}function n(t){let n=e.get(t);return n===void 0&&(n={},e.set(t,n)),n}function r(t){e.delete(t)}function i(t,n,r){e.get(t)[n]=r}function a(){e=new WeakMap}return{has:t,get:n,remove:r,update:i,dispose:a}}function $h(e,t){return e.groupOrder===t.groupOrder?e.renderOrder===t.renderOrder?e.material.id===t.material.id?e.materialVariant===t.materialVariant?e.z===t.z?e.id-t.id:e.z-t.z:e.materialVariant-t.materialVariant:e.material.id-t.material.id:e.renderOrder-t.renderOrder:e.groupOrder-t.groupOrder}function eg(e,t){return e.groupOrder===t.groupOrder?e.renderOrder===t.renderOrder?e.z===t.z?e.id-t.id:t.z-e.z:e.renderOrder-t.renderOrder:e.groupOrder-t.groupOrder}function tg(){let e=[],t=0,n=[],r=[],i=[];function a(){t=0,n.length=0,r.length=0,i.length=0}function o(e){let t=0;return e.isInstancedMesh&&(t+=2),e.isSkinnedMesh&&(t+=1),t}function s(n,r,i,a,s,c){let l=e[t];return l===void 0?(l={id:n.id,object:n,geometry:r,material:i,materialVariant:o(n),groupOrder:a,renderOrder:n.renderOrder,z:s,group:c},e[t]=l):(l.id=n.id,l.object=n,l.geometry=r,l.material=i,l.materialVariant=o(n),l.groupOrder=a,l.renderOrder=n.renderOrder,l.z=s,l.group=c),t++,l}function c(e,t,a,o,c,l,u){u.reversedDepth===!0&&(c=-c);let d=s(e,t,a,o,c,l);a.transmission>0?r.push(d):a.transparent===!0?i.push(d):n.push(d)}function l(e,t,a,o,c,l){let u=s(e,t,a,o,c,l);a.transmission>0?r.unshift(u):a.transparent===!0?i.unshift(u):n.unshift(u)}function u(e,t){n.length>1&&n.sort(e||$h),r.length>1&&r.sort(t||eg),i.length>1&&i.sort(t||eg)}function d(){for(let n=t,r=e.length;n=r.length?(i=new tg,r.push(i)):i=r[n],i}function n(){e=new WeakMap}return{get:t,dispose:n}}function rg(){let e={};return{get:function(t){if(e[t.id]!==void 0)return e[t.id];let n;switch(t.type){case`SunLight`:case`DirectionalLight`:n={direction:new B,color:new V};break;case`SpotLight`:n={position:new B,direction:new B,color:new V,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case`PointLight`:n={position:new B,color:new V,distance:0,decay:0};break;case`HemisphereLight`:n={direction:new B,skyColor:new V,groundColor:new V};break;case`RectAreaLight`:n={color:new V,position:new B,halfWidth:new B,halfHeight:new B}}return e[t.id]=n,n}}}function ig(){let e={};return{get:function(t){if(e[t.id]!==void 0)return e[t.id];let n;switch(t.type){case`SunLight`:case`DirectionalLight`:n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new z};break;case`SpotLight`:n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new z};break;case`PointLight`:n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new z,shadowCameraNear:1,shadowCameraFar:1e3}}return e[t.id]=n,n}}}var ag=0;function og(e,t){return(t.castShadow?2:0)-(e.castShadow?2:0)+ +!!t.map-!!e.map}function sg(e){let t=new rg,n=ig(),r={version:0,hash:{sunLength:-1,directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numSunShadows:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],sun:[],sunShadow:[],sunShadowMap:[],sunShadowMatrix:[],sunShadowCascade:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let e=0;e<9;e++)r.probe.push(new B);let i=new B,a=new Ds,o=new Ds;function s(i){let a=0,o=0,s=0;for(let e=0;e<9;e++)r.probe[e].set(0,0,0);let c=0,l=0,u=0,d=0,f=0,p=0,m=0,h=0,g=0,_=0,v=0,y=0,b=0,x=0;i.sort(og);for(let e=0,S=i.length;e0&&(e.has(`OES_texture_float_linear`)===!0?(r.rectAreaLTC1=U.LTC_FLOAT_1,r.rectAreaLTC2=U.LTC_FLOAT_2):(r.rectAreaLTC1=U.LTC_HALF_1,r.rectAreaLTC2=U.LTC_HALF_2)),r.ambient[0]=a,r.ambient[1]=o,r.ambient[2]=s;let S=r.hash;(S.sunLength!==c||S.directionalLength!==d||S.pointLength!==f||S.spotLength!==p||S.rectAreaLength!==m||S.hemiLength!==h||S.numSunShadows!==l||S.numDirectionalShadows!==g||S.numPointShadows!==_||S.numSpotShadows!==v||S.numSpotMaps!==y||S.numLightProbes!==x)&&(r.sun.length=c,r.directional.length=d,r.spot.length=p,r.rectArea.length=m,r.point.length=f,r.hemi.length=h,r.sunShadow.length=l,r.sunShadowMap.length=l,r.sunShadowMatrix.length=u,r.sunShadowCascade.length=u,r.directionalShadow.length=g,r.directionalShadowMap.length=g,r.directionalShadowMatrix.length=g,r.pointShadow.length=_,r.pointShadowMap.length=_,r.pointShadowMatrix.length=_,r.spotShadow.length=v,r.spotShadowMap.length=v,r.spotLightMatrix.length=v+y-b,r.spotLightMap.length=y,r.numSpotLightShadowsWithMaps=b,r.numLightProbes=x,S.sunLength=c,S.directionalLength=d,S.pointLength=f,S.spotLength=p,S.rectAreaLength=m,S.hemiLength=h,S.numSunShadows=l,S.numDirectionalShadows=g,S.numPointShadows=_,S.numSpotShadows=v,S.numSpotMaps=y,S.numLightProbes=x,r.version=ag++)}function c(e,t){let n=0,s=0,c=0,l=0,u=0,d=0,f=t.matrixWorldInverse;for(let t=0,p=e.length;t=i.length?(a=new cg(e),i.push(a)):a=i[r],a}function r(){t=new WeakMap}return{get:n,dispose:r}}var ug=`void main() { gl_Position = vec4( position, 1.0 ); -}`,Eh=`uniform sampler2D shadow_pass; +}`,dg=`uniform sampler2D shadow_pass; uniform vec2 resolution; uniform float radius; void main() { @@ -4193,12 +4204,12 @@ void main() { squared_mean = squared_mean / samples; float std_dev = sqrt( max( 0.0, squared_mean - mean * mean ) ); gl_FragColor = vec4( mean, std_dev, 0.0, 1.0 ); -}`,Dh=[new z(1,0,0),new z(-1,0,0),new z(0,1,0),new z(0,-1,0),new z(0,0,1),new z(0,0,-1)],Oh=[new z(0,-1,0),new z(0,-1,0),new z(0,0,1),new z(0,0,-1),new z(0,-1,0),new z(0,-1,0)],kh=new Ho,Ah=new z,jh=new z;function Mh(e,t,n){let r=new xl,i=new R,a=new R,o=new Lo,s=new Ju,c=new Yu,l={},u=n.maxTextureSize,d={0:1,1:0,2:2},f=new Wu({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new R},radius:{value:4}},vertexShader:Th,fragmentShader:Eh}),p=f.clone();p.defines.HORIZONTAL_PASS=1;let m=new yc;m.setAttribute(`position`,new ic(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));let h=new V(m,f),g=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=1;let _=this.type;this.render=function(t,n,s){if(g.enabled===!1||g.autoUpdate===!1&&g.needsUpdate===!1||t.length===0)return;this.type===2&&(za(`WebGLShadowMap: PCFSoftShadowMap has been removed. Using PCFShadowMap instead.`),this.type=1);let c=e.getRenderTarget(),l=e.getActiveCubeFace(),d=e.getActiveMipmapLevel(),f=e.state;f.setBlending(0),f.buffers.depth.getReversed()===!0?f.buffers.color.setClear(0,0,0,0):f.buffers.color.setClear(1,1,1,1),f.buffers.depth.setTest(!0),f.setScissorTest(!1);let p=_!==this.type;p&&n.traverse(function(e){e.material&&(Array.isArray(e.material)?e.material.forEach(e=>e.needsUpdate=!0):e.material.needsUpdate=!0)});for(let c=0,l=t.length;cu||i.y>u)&&(i.x>u&&(a.x=Math.floor(u/m.x),i.x=a.x*m.x,d.mapSize.x=a.x),i.y>u&&(a.y=Math.floor(u/m.y),i.y=a.y*m.y,d.mapSize.y=a.y));let h=e.state.buffers.depth.getReversed();if(d.camera._reversedDepth=h,d.map===null||p===!0){if(d.map!==null&&(d.map.depthTexture!==null&&(d.map.depthTexture.dispose(),d.map.depthTexture=null),d.map.dispose()),this.type===3){if(l.isPointLight){za(`WebGLShadowMap: VSM shadow maps are not supported for PointLights. Use PCF or BasicShadowMap instead.`);continue}d.map=new zo(i.x,i.y,{format:Ai,type:_i,minFilter:si,magFilter:si,generateMipmaps:!1}),d.map.texture.name=l.name+`.shadowMap`,d.map.depthTexture=new Gl(i.x,i.y,gi),d.map.depthTexture.name=l.name+`.shadowMapDepth`,d.map.depthTexture.format=Ei,d.map.depthTexture.compareFunction=null,d.map.depthTexture.minFilter=ii,d.map.depthTexture.magFilter=ii}else l.isPointLight?(d.map=new lp(i.x),d.map.depthTexture=new Kl(i.x,hi)):(d.map=new zo(i.x,i.y),d.map.depthTexture=new Gl(i.x,i.y,hi)),d.map.depthTexture.name=l.name+`.shadowMap`,d.map.depthTexture.format=Ei,this.type===1?(d.map.depthTexture.compareFunction=h?518:515,d.map.depthTexture.minFilter=si,d.map.depthTexture.magFilter=si):(d.map.depthTexture.compareFunction=null,d.map.depthTexture.minFilter=ii,d.map.depthTexture.magFilter=ii);d.camera.updateProjectionMatrix()}d.map.isWebGLCubeRenderTarget!==!0&&(d.map.width!==i.x||d.map.height!==i.y)&&d.map.setSize(i.x,i.y);let g=d.map.isWebGLCubeRenderTarget?6:d.getViewportCount();l.isPointLight!==!0&&d.updateMatrices(l,s);for(let t=0;t0||n.map&&n.alphaTest>0||n.alphaToCoverage===!0){let e=a.uuid,t=n.uuid,r=l[e];r===void 0&&(r={},l[e]=r);let i=r[t];i===void 0&&(i=a.clone(),r[t]=i,n.addEventListener(`dispose`,x)),a=i}if(a.visible=n.visible,a.wireframe=n.wireframe,i===3?a.side=n.shadowSide===null?n.side:n.shadowSide:a.side=n.shadowSide===null?d[n.side]:n.shadowSide,a.alphaMap=n.alphaMap,a.alphaTest=n.alphaToCoverage===!0?.5:n.alphaTest,a.map=n.map,a.clipShadows=n.clipShadows,a.clippingPlanes=n.clippingPlanes,a.clipIntersection=n.clipIntersection,a.displacementMap=n.displacementMap,a.displacementScale=n.displacementScale,a.displacementBias=n.displacementBias,a.wireframeLinewidth=n.wireframeLinewidth,a.linewidth=n.linewidth,r.isPointLight===!0&&a.isMeshDistanceMaterial===!0){let t=e.properties.get(a);t.light=r}return a}function b(n,i,a,o,s){if(n.visible===!1)return;if(n.layers.test(i.layers)&&(n.isMesh||n.isLine||n.isPoints)&&(n.castShadow||n.receiveShadow&&s===3)&&(!n.frustumCulled||n.intersectsFrustum(r))){n.modelViewMatrix.multiplyMatrices(a.matrixWorldInverse,n.matrixWorld);let r=t.update(n),c=n.material;if(Array.isArray(c)){let t=r.groups;for(let l=0,u=t.length;l=2):(te=parseFloat(/^WebGL (\d)/.exec(ne)[1]),M=te>=1);let re=null,ie={},ae=e.getParameter(e.SCISSOR_BOX),oe=e.getParameter(e.VIEWPORT),se=new Lo().fromArray(ae),ce=new Lo().fromArray(oe);function le(t,n,r,i){let a=new Uint8Array(4),o=e.createTexture();e.bindTexture(t,o),e.texParameteri(t,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(t,e.TEXTURE_MAG_FILTER,e.NEAREST);for(let o=0;o`u`?!1:/OculusBrowser/g.test(navigator.userAgent),l=new R,u=new WeakMap,d=new Set,f,p=new WeakMap,m=!1;try{m=typeof OffscreenCanvas<`u`&&new OffscreenCanvas(1,1).getContext(`2d`)!==null}catch{}function h(e,t){return m?new OffscreenCanvas(e,t):Pa(`canvas`)}function g(e,t,n){let r=1,i=P(e);if((i.width>n||i.height>n)&&(r=n/Math.max(i.width,i.height)),r<1){if(typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement||typeof ImageBitmap<`u`&&e instanceof ImageBitmap||typeof VideoFrame<`u`&&e instanceof VideoFrame){let n=Math.floor(r*i.width),a=Math.floor(r*i.height);f===void 0&&(f=h(n,a));let o=t?h(n,a):f;return o.width=n,o.height=a,o.getContext(`2d`).drawImage(e,0,0,n,a),za(`WebGLRenderer: Texture has been resized from (`+i.width+`x`+i.height+`) to (`+n+`x`+a+`).`),o}return`data`in e&&za(`WebGLRenderer: Image in DataTexture is too big (`+i.width+`x`+i.height+`).`),e}return e}function _(e){return e.generateMipmaps}function v(t){e.generateMipmap(t)}function y(t){return t.isWebGLCubeRenderTarget?e.TEXTURE_CUBE_MAP:t.isWebGL3DRenderTarget?e.TEXTURE_3D:t.isWebGLArrayRenderTarget||t.isCompressedArrayTexture?e.TEXTURE_2D_ARRAY:e.TEXTURE_2D}function b(n,r,i,a,o,s=!1){if(n!==null){if(e[n]!==void 0)return e[n];za(`WebGLRenderer: Attempt to use non-existing WebGL internal format '`+n+`'`)}let c;a&&(c=t.get(`EXT_texture_norm16`),c||za(`WebGLRenderer: Unable to use normalized textures without EXT_texture_norm16 extension`));let l=r;if(r===e.RED&&(i===e.FLOAT&&(l=e.R32F),i===e.HALF_FLOAT&&(l=e.R16F),i===e.UNSIGNED_BYTE&&(l=e.R8),i===e.UNSIGNED_SHORT&&c&&(l=c.R16_EXT),i===e.SHORT&&c&&(l=c.R16_SNORM_EXT)),r===e.RED_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.R8UI),i===e.UNSIGNED_SHORT&&(l=e.R16UI),i===e.UNSIGNED_INT&&(l=e.R32UI),i===e.BYTE&&(l=e.R8I),i===e.SHORT&&(l=e.R16I),i===e.INT&&(l=e.R32I)),r===e.RG&&(i===e.FLOAT&&(l=e.RG32F),i===e.HALF_FLOAT&&(l=e.RG16F),i===e.UNSIGNED_BYTE&&(l=e.RG8),i===e.UNSIGNED_SHORT&&c&&(l=c.RG16_EXT),i===e.SHORT&&c&&(l=c.RG16_SNORM_EXT)),r===e.RG_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.RG8UI),i===e.UNSIGNED_SHORT&&(l=e.RG16UI),i===e.UNSIGNED_INT&&(l=e.RG32UI),i===e.BYTE&&(l=e.RG8I),i===e.SHORT&&(l=e.RG16I),i===e.INT&&(l=e.RG32I)),r===e.RGB_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.RGB8UI),i===e.UNSIGNED_SHORT&&(l=e.RGB16UI),i===e.UNSIGNED_INT&&(l=e.RGB32UI),i===e.BYTE&&(l=e.RGB8I),i===e.SHORT&&(l=e.RGB16I),i===e.INT&&(l=e.RGB32I)),r===e.RGBA_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.RGBA8UI),i===e.UNSIGNED_SHORT&&(l=e.RGBA16UI),i===e.UNSIGNED_INT&&(l=e.RGBA32UI),i===e.BYTE&&(l=e.RGBA8I),i===e.SHORT&&(l=e.RGBA16I),i===e.INT&&(l=e.RGBA32I)),r===e.RGB&&(i===e.UNSIGNED_SHORT&&c&&(l=c.RGB16_EXT),i===e.SHORT&&c&&(l=c.RGB16_SNORM_EXT),i===e.UNSIGNED_INT_5_9_9_9_REV&&(l=e.RGB9_E5),i===e.UNSIGNED_INT_10F_11F_11F_REV&&(l=e.R11F_G11F_B10F)),r===e.RGBA){let t=s?Ea:Eo.getTransfer(o);i===e.FLOAT&&(l=e.RGBA32F),i===e.HALF_FLOAT&&(l=e.RGBA16F),i===e.UNSIGNED_BYTE&&(l=t===`srgb`?e.SRGB8_ALPHA8:e.RGBA8),i===e.UNSIGNED_SHORT&&c&&(l=c.RGBA16_EXT),i===e.SHORT&&c&&(l=c.RGBA16_SNORM_EXT),i===e.UNSIGNED_SHORT_4_4_4_4&&(l=e.RGBA4),i===e.UNSIGNED_SHORT_5_5_5_1&&(l=e.RGB5_A1)}return(l===e.R16F||l===e.R32F||l===e.RG16F||l===e.RG32F||l===e.RGBA16F||l===e.RGBA32F)&&t.get(`EXT_color_buffer_float`),l}function x(t,n){let r;return t?n===null||n===1014||n===1020?r=e.DEPTH24_STENCIL8:n===1015?r=e.DEPTH32F_STENCIL8:n===1012&&(r=e.DEPTH24_STENCIL8,za(`DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.`)):n===null||n===1014||n===1020?r=e.DEPTH_COMPONENT24:n===1015?r=e.DEPTH_COMPONENT32F:n===1012&&(r=e.DEPTH_COMPONENT16),r}function S(e,t){return _(e)===!0||e.isFramebufferTexture&&e.minFilter!==1003&&e.minFilter!==1006?Math.log2(Math.max(t.width,t.height))+1:e.mipmaps!==void 0&&e.mipmaps.length>0?e.mipmaps.length:e.isCompressedTexture&&Array.isArray(e.image)?t.mipmaps.length:1}function C(e){let t=e.target;t.removeEventListener(`dispose`,C),T(t),t.isVideoTexture&&u.delete(t),t.isHTMLTexture&&d.delete(t)}function w(e){let t=e.target;t.removeEventListener(`dispose`,w),D(t)}function T(e){let t=r.get(e);if(t.__webglInit===void 0)return;let n=e.source,i=p.get(n);if(i){let r=i[t.__cacheKey];r.usedTimes--,r.usedTimes===0&&E(e),Object.keys(i).length===0&&p.delete(n)}r.remove(e)}function E(t){let n=r.get(t);e.deleteTexture(n.__webglTexture);let i=t.source,a=p.get(i);delete a[n.__cacheKey],o.memory.textures--}function D(t){let n=r.get(t);if(t.depthTexture&&(t.depthTexture.dispose(),r.remove(t.depthTexture)),t.isWebGLCubeRenderTarget)for(let t=0;t<6;t++){if(Array.isArray(n.__webglFramebuffer[t]))for(let r=0;r=i.maxTextures&&za(`WebGLTextures: Trying to use `+(e+1)+` texture units while this GPU supports only `+i.maxTextures),O+=1,e}function M(e){let t=[];return t.push(e.wrapS),t.push(e.wrapT),t.push(e.wrapR||0),t.push(e.magFilter),t.push(e.minFilter),t.push(e.anisotropy),t.push(e.internalFormat),t.push(e.format),t.push(e.type),t.push(e.generateMipmaps),t.push(e.premultiplyAlpha),t.push(e.flipY),t.push(e.unpackAlignment),t.push(e.colorSpace),t.join()}function te(t,i){let a=r.get(t);if(t.isVideoTexture&&Te(t),t.isRenderTargetTexture===!1&&t.isExternalTexture!==!0&&t.version>0&&a.__version!==t.version){let e=t.image;if(e===null)za(`WebGLRenderer: Texture marked for update but no image data found.`);else if(e.complete===!1)za(`WebGLRenderer: Texture marked for update but image is incomplete`);else{fe(a,t,i);return}}else t.isExternalTexture&&(a.__webglTexture=t.sourceTexture?t.sourceTexture:null);n.bindTexture(e.TEXTURE_2D,a.__webglTexture,e.TEXTURE0+i)}function ne(t,i){let a=r.get(t);t.isRenderTargetTexture===!1&&t.version>0&&a.__version!==t.version?fe(a,t,i):(t.isExternalTexture&&(a.__webglTexture=t.sourceTexture?t.sourceTexture:null),n.bindTexture(e.TEXTURE_2D_ARRAY,a.__webglTexture,e.TEXTURE0+i))}function re(t,i){let a=r.get(t);t.isRenderTargetTexture===!1&&t.version>0&&a.__version!==t.version?fe(a,t,i):n.bindTexture(e.TEXTURE_3D,a.__webglTexture,e.TEXTURE0+i)}function ie(t,i){let a=r.get(t);t.isCubeDepthTexture!==!0&&t.version>0&&a.__version!==t.version?pe(a,t,i):n.bindTexture(e.TEXTURE_CUBE_MAP,a.__webglTexture,e.TEXTURE0+i)}let ae={[ti]:e.REPEAT,[ni]:e.CLAMP_TO_EDGE,[ri]:e.MIRRORED_REPEAT},oe={[ii]:e.NEAREST,[ai]:e.NEAREST_MIPMAP_NEAREST,[oi]:e.NEAREST_MIPMAP_LINEAR,[si]:e.LINEAR,[ci]:e.LINEAR_MIPMAP_NEAREST,[li]:e.LINEAR_MIPMAP_LINEAR},se={512:e.NEVER,519:e.ALWAYS,513:e.LESS,515:e.LEQUAL,514:e.EQUAL,518:e.GEQUAL,516:e.GREATER,517:e.NOTEQUAL};function ce(n,a){if(a.type===1015&&t.has(`OES_texture_float_linear`)===!1&&(a.magFilter===1006||a.magFilter===1007||a.magFilter===1005||a.magFilter===1008||a.minFilter===1006||a.minFilter===1007||a.minFilter===1005||a.minFilter===1008)&&za(`WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device.`),e.texParameteri(n,e.TEXTURE_WRAP_S,ae[a.wrapS]),e.texParameteri(n,e.TEXTURE_WRAP_T,ae[a.wrapT]),(n===e.TEXTURE_3D||n===e.TEXTURE_2D_ARRAY)&&e.texParameteri(n,e.TEXTURE_WRAP_R,ae[a.wrapR]),e.texParameteri(n,e.TEXTURE_MAG_FILTER,oe[a.magFilter]),e.texParameteri(n,e.TEXTURE_MIN_FILTER,oe[a.minFilter]),a.compareFunction&&(e.texParameteri(n,e.TEXTURE_COMPARE_MODE,e.COMPARE_REF_TO_TEXTURE),e.texParameteri(n,e.TEXTURE_COMPARE_FUNC,se[a.compareFunction])),t.has(`EXT_texture_filter_anisotropic`)===!0){if(a.magFilter===1003||a.minFilter!==1005&&a.minFilter!==1008||a.type===1015&&t.has(`OES_texture_float_linear`)===!1)return;if(a.anisotropy>1||r.get(a).__currentAnisotropy){let o=t.get(`EXT_texture_filter_anisotropic`);e.texParameterf(n,o.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(a.anisotropy,i.getMaxAnisotropy())),r.get(a).__currentAnisotropy=a.anisotropy}}}function le(t,n){let r=!1;t.__webglInit===void 0&&(t.__webglInit=!0,n.addEventListener(`dispose`,C));let i=n.source,a=p.get(i);a===void 0&&(a={},p.set(i,a));let s=M(n);if(s!==t.__cacheKey){a[s]===void 0&&(a[s]={texture:e.createTexture(),usedTimes:0},o.memory.textures++,r=!0),a[s].usedTimes++;let i=a[t.__cacheKey];i!==void 0&&(a[t.__cacheKey].usedTimes--,i.usedTimes===0&&E(n)),t.__cacheKey=s,t.__webglTexture=a[s].texture}return r}function ue(e,t,n){return Math.floor(Math.floor(e/n)/t)}function de(t,r,i,a){let o=t.updateRanges;if(o.length===0)n.texSubImage2D(e.TEXTURE_2D,0,0,0,r.width,r.height,i,a,r.data);else{o.sort((e,t)=>e.start-t.start);let s=0;for(let e=1;e0){C&&w&&n.texStorage2D(e.TEXTURE_2D,E,m,y[0].width,y[0].height);for(let t=0,i=y.length;t0){let t=Of(h.width,h.height,o.format,o.type);for(let a of o.layerUpdates){let o=h.data.subarray(a*t/h.data.BYTES_PER_ELEMENT,(a+1)*t/h.data.BYTES_PER_ELEMENT);n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,i,0,0,a,h.width,h.height,1,r,o)}}else n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,i,0,0,0,h.width,h.height,t.depth,r,h.data)}}else n.compressedTexImage3D(e.TEXTURE_2D_ARRAY,i,m,h.width,h.height,t.depth,0,h.data,0,0)}else za(`WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()`)}else C?T&&n.texSubImage3D(e.TEXTURE_2D_ARRAY,i,0,0,0,h.width,h.height,t.depth,r,p,h.data):n.texImage3D(e.TEXTURE_2D_ARRAY,i,m,h.width,h.height,t.depth,0,r,p,h.data);o.layerUpdates.size>0&&o.clearLayerUpdates()}else{C&&w&&n.texStorage2D(e.TEXTURE_2D,E,m,y[0].width,y[0].height);for(let t=0,i=y.length;t0){let i=Of(t.width,t.height,o.format,o.type);for(let a of o.layerUpdates){let o=t.data.subarray(a*i/t.data.BYTES_PER_ELEMENT,(a+1)*i/t.data.BYTES_PER_ELEMENT);n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,a,t.width,t.height,1,r,p,o)}o.clearLayerUpdates()}else n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,0,t.width,t.height,t.depth,r,p,t.data)}}else n.texImage3D(e.TEXTURE_2D_ARRAY,0,m,t.width,t.height,t.depth,0,r,p,t.data)}else if(o.isData3DTexture)C?(w&&n.texStorage3D(e.TEXTURE_3D,E,m,t.width,t.height,t.depth),T&&n.texSubImage3D(e.TEXTURE_3D,0,0,0,0,t.width,t.height,t.depth,r,p,t.data)):n.texImage3D(e.TEXTURE_3D,0,m,t.width,t.height,t.depth,0,r,p,t.data);else if(o.isFramebufferTexture){if(w){if(C)n.texStorage2D(e.TEXTURE_2D,E,m,t.width,t.height);else{let i=t.width,a=t.height;for(let t=0;t>=1,a>>=1}}}else if(o.isHTMLTexture){if(`texElementImage2D`in e){let n=e.canvas;if(n.hasAttribute(`layoutsubtree`)||n.setAttribute(`layoutsubtree`,`true`),t.parentNode!==n){n.appendChild(t),d.add(o),n.onpaint=e=>{let t=e.changedElements;for(let e of d)t.includes(e.image)&&(e.needsUpdate=!0)},n.requestPaint();return}if(e.texElementImage2D.length===3)e.texElementImage2D(e.TEXTURE_2D,e.RGBA8,t);else{let n=e.RGBA,r=e.RGBA,i=e.UNSIGNED_BYTE;e.texElementImage2D(e.TEXTURE_2D,0,n,r,i,t)}e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE)}}else if(y.length>0){if(C&&w){let t=P(y[0]);n.texStorage2D(e.TEXTURE_2D,E,m,t.width,t.height)}for(let t=0,i=y.length;t0&&D++;let t=P(m[0]);n.texStorage2D(e.TEXTURE_CUBE_MAP,D,C,t.width,t.height)}for(let t=0;t<6;t++)if(p){w?E&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,0,0,m[t].width,m[t].height,y,x,m[t].data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,C,m[t].width,m[t].height,0,y,x,m[t].data);for(let r=0;r>u),r=Math.max(1,i.height>>u);l===e.TEXTURE_3D||l===e.TEXTURE_2D_ARRAY?n.texImage3D(l,u,p,t,r,i.depth,0,d,f,null):n.texImage2D(l,u,p,t,r,0,d,f,null)}n.bindFramebuffer(e.FRAMEBUFFER,t),N(i)?s.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,c,l,h.__webglTexture,0,we(i)):(l===e.TEXTURE_2D||l>=e.TEXTURE_CUBE_MAP_POSITIVE_X&&l<=e.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&e.framebufferTexture2D(e.FRAMEBUFFER,c,l,h.__webglTexture,u),n.bindFramebuffer(e.FRAMEBUFFER,null)}function he(t,n,r){if(e.bindRenderbuffer(e.RENDERBUFFER,t),n.depthBuffer){let i=n.depthTexture,a=i&&i.isDepthTexture?i.type:null,o=x(n.stencilBuffer,a),c=n.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT;N(n)?s.renderbufferStorageMultisampleEXT(e.RENDERBUFFER,we(n),o,n.width,n.height):r?e.renderbufferStorageMultisample(e.RENDERBUFFER,we(n),o,n.width,n.height):e.renderbufferStorage(e.RENDERBUFFER,o,n.width,n.height),e.framebufferRenderbuffer(e.FRAMEBUFFER,c,e.RENDERBUFFER,t)}else{let t=n.textures;for(let i=0;i{delete i.__boundDepthTexture,delete i.__depthDisposeCallback,e.removeEventListener(`dispose`,t)};e.addEventListener(`dispose`,t),i.__depthDisposeCallback=t}i.__boundDepthTexture=e}if(t.depthTexture&&!i.__autoAllocateDepthBuffer){if(a)for(let e=0;e<6;e++)ge(i.__webglFramebuffer[e],t,e);else{let e=t.texture.mipmaps;e&&e.length>0?ge(i.__webglFramebuffer[0],t,0):ge(i.__webglFramebuffer,t,0)}}else if(a){i.__webglDepthbuffer=[];for(let r=0;r<6;r++)if(n.bindFramebuffer(e.FRAMEBUFFER,i.__webglFramebuffer[r]),i.__webglDepthbuffer[r]===void 0)i.__webglDepthbuffer[r]=e.createRenderbuffer(),he(i.__webglDepthbuffer[r],t,!1);else{let n=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,a=i.__webglDepthbuffer[r];e.bindRenderbuffer(e.RENDERBUFFER,a),e.framebufferRenderbuffer(e.FRAMEBUFFER,n,e.RENDERBUFFER,a)}}else{let r=t.texture.mipmaps;if(r&&r.length>0?n.bindFramebuffer(e.FRAMEBUFFER,i.__webglFramebuffer[0]):n.bindFramebuffer(e.FRAMEBUFFER,i.__webglFramebuffer),i.__webglDepthbuffer===void 0)i.__webglDepthbuffer=e.createRenderbuffer(),he(i.__webglDepthbuffer,t,!1);else{let n=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,r=i.__webglDepthbuffer;e.bindRenderbuffer(e.RENDERBUFFER,r),e.framebufferRenderbuffer(e.FRAMEBUFFER,n,e.RENDERBUFFER,r)}}n.bindFramebuffer(e.FRAMEBUFFER,null)}function ve(t,n,i){let a=r.get(t);n!==void 0&&me(a.__webglFramebuffer,t,t.texture,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,0),i!==void 0&&_e(t)}function ye(t){let i=t.texture,s=r.get(t),c=r.get(i);t.addEventListener(`dispose`,w);let l=t.textures,u=t.isWebGLCubeRenderTarget===!0,d=l.length>1;if(d||(c.__webglTexture===void 0&&(c.__webglTexture=e.createTexture()),c.__version=i.version,o.memory.textures++),u){s.__webglFramebuffer=[];for(let t=0;t<6;t++)if(i.mipmaps&&i.mipmaps.length>0){s.__webglFramebuffer[t]=[];for(let n=0;n0){s.__webglFramebuffer=[];for(let t=0;t0&&N(t)===!1){s.__webglMultisampledFramebuffer=e.createFramebuffer(),s.__webglColorRenderbuffer=[],n.bindFramebuffer(e.FRAMEBUFFER,s.__webglMultisampledFramebuffer);for(let n=0;n0)for(let r=0;r0)for(let n=0;n0){if(N(t)===!1){let i=t.textures,a=t.width,o=t.height,s=e.COLOR_BUFFER_BIT,l=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,u=r.get(t),d=i.length>1;if(d)for(let t=0;t0?n.bindFramebuffer(e.DRAW_FRAMEBUFFER,u.__webglFramebuffer[0]):n.bindFramebuffer(e.DRAW_FRAMEBUFFER,u.__webglFramebuffer);for(let n=0;n0&&t.has(`WEBGL_multisampled_render_to_texture`)===!0&&n.__useRenderToTexture!==!1}function Te(e){let t=o.render.frame;u.get(e)!==t&&(u.set(e,t),e.update())}function Ee(e,t){let n=e.colorSpace,r=e.format,i=e.type;return e.isCompressedTexture===!0||e.isVideoTexture===!0||n!==`srgb-linear`&&n!==``&&(Eo.getTransfer(n)===`srgb`?(r!==1023||i!==1009)&&za(`WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.`):Ba(`WebGLTextures: Unsupported texture color space:`,n)),t}function P(e){return typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement?(l.width=e.naturalWidth||e.width,l.height=e.naturalHeight||e.height):typeof VideoFrame<`u`&&e instanceof VideoFrame?(l.width=e.displayWidth,l.height=e.displayHeight):(l.width=e.width,l.height=e.height),l}this.allocateTextureUnit=ee,this.resetTextureUnits=k,this.getTextureUnits=A,this.setTextureUnits=j,this.setTexture2D=te,this.setTexture2DArray=ne,this.setTexture3D=re,this.setTextureCube=ie,this.rebindTextures=ve,this.setupRenderTarget=ye,this.updateRenderTargetMipmap=be,this.updateMultisampleRenderTarget=Ce,this.setupDepthRenderbuffer=_e,this.setupFrameBufferTexture=me,this.useMultisampledRTT=N,this.isReversedDepthBuffer=function(){return n.buffers.depth.getReversed()}}function Fh(e,t){function n(n,r=``){let i,a=Eo.getTransfer(r);if(n===1009)return e.UNSIGNED_BYTE;if(n===1017)return e.UNSIGNED_SHORT_4_4_4_4;if(n===1018)return e.UNSIGNED_SHORT_5_5_5_1;if(n===35902)return e.UNSIGNED_INT_5_9_9_9_REV;if(n===35899)return e.UNSIGNED_INT_10F_11F_11F_REV;if(n===1010)return e.BYTE;if(n===1011)return e.SHORT;if(n===1012)return e.UNSIGNED_SHORT;if(n===1013)return e.INT;if(n===1014)return e.UNSIGNED_INT;if(n===1015)return e.FLOAT;if(n===1016)return e.HALF_FLOAT;if(n===1021)return e.ALPHA;if(n===1022)return e.RGB;if(n===1023)return e.RGBA;if(n===1026)return e.DEPTH_COMPONENT;if(n===1027)return e.DEPTH_STENCIL;if(n===1028)return e.RED;if(n===1029)return e.RED_INTEGER;if(n===1030)return e.RG;if(n===1031)return e.RG_INTEGER;if(n===1033)return e.RGBA_INTEGER;if(n===33776||n===33777||n===33778||n===33779){if(a===`srgb`){if(i=t.get(`WEBGL_compressed_texture_s3tc_srgb`),i!==null){if(n===33776)return i.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(n===33777)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(n===33778)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(n===33779)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null}else if(i=t.get(`WEBGL_compressed_texture_s3tc`),i!==null){if(n===33776)return i.COMPRESSED_RGB_S3TC_DXT1_EXT;if(n===33777)return i.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(n===33778)return i.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(n===33779)return i.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null}if(n===35840||n===35841||n===35842||n===35843){if(i=t.get(`WEBGL_compressed_texture_pvrtc`),i!==null){if(n===35840)return i.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(n===35841)return i.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(n===35842)return i.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(n===35843)return i.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null}if(n===36196||n===37492||n===37496||n===37488||n===37489||n===37490||n===37491){if(i=t.get(`WEBGL_compressed_texture_etc`),i!==null){if(n===36196||n===37492)return a===`srgb`?i.COMPRESSED_SRGB8_ETC2:i.COMPRESSED_RGB8_ETC2;if(n===37496)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:i.COMPRESSED_RGBA8_ETC2_EAC;if(n===37488)return i.COMPRESSED_R11_EAC;if(n===37489)return i.COMPRESSED_SIGNED_R11_EAC;if(n===37490)return i.COMPRESSED_RG11_EAC;if(n===37491)return i.COMPRESSED_SIGNED_RG11_EAC}else return null}if(n===37808||n===37809||n===37810||n===37811||n===37812||n===37813||n===37814||n===37815||n===37816||n===37817||n===37818||n===37819||n===37820||n===37821){if(i=t.get(`WEBGL_compressed_texture_astc`),i!==null){if(n===37808)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:i.COMPRESSED_RGBA_ASTC_4x4_KHR;if(n===37809)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:i.COMPRESSED_RGBA_ASTC_5x4_KHR;if(n===37810)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:i.COMPRESSED_RGBA_ASTC_5x5_KHR;if(n===37811)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:i.COMPRESSED_RGBA_ASTC_6x5_KHR;if(n===37812)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:i.COMPRESSED_RGBA_ASTC_6x6_KHR;if(n===37813)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:i.COMPRESSED_RGBA_ASTC_8x5_KHR;if(n===37814)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:i.COMPRESSED_RGBA_ASTC_8x6_KHR;if(n===37815)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:i.COMPRESSED_RGBA_ASTC_8x8_KHR;if(n===37816)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:i.COMPRESSED_RGBA_ASTC_10x5_KHR;if(n===37817)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:i.COMPRESSED_RGBA_ASTC_10x6_KHR;if(n===37818)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:i.COMPRESSED_RGBA_ASTC_10x8_KHR;if(n===37819)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:i.COMPRESSED_RGBA_ASTC_10x10_KHR;if(n===37820)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:i.COMPRESSED_RGBA_ASTC_12x10_KHR;if(n===37821)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:i.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null}if(n===36492||n===36494||n===36495){if(i=t.get(`EXT_texture_compression_bptc`),i!==null){if(n===36492)return a===`srgb`?i.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:i.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(n===36494)return i.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(n===36495)return i.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null}if(n===36283||n===36284||n===36285||n===36286){if(i=t.get(`EXT_texture_compression_rgtc`),i!==null){if(n===36283)return i.COMPRESSED_RED_RGTC1_EXT;if(n===36284)return i.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(n===36285)return i.COMPRESSED_RED_GREEN_RGTC2_EXT;if(n===36286)return i.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null}return n===1020?e.UNSIGNED_INT_24_8:e[n]===void 0?null:e[n]}return{convert:n}}var Ih=` +}`,fg=[new B(1,0,0),new B(-1,0,0),new B(0,1,0),new B(0,-1,0),new B(0,0,1),new B(0,0,-1)],pg=[new B(0,-1,0),new B(0,-1,0),new B(0,0,1),new B(0,0,-1),new B(0,-1,0),new B(0,-1,0)],mg=new Ds,hg=new B,gg=new B;function _g(e,t,n){let r=new ou,i=new z,a=new z,o=new Ss,s=new Nd,c=new Pd,l={},u=n.maxTextureSize,d={0:1,1:0,2:2},f=new kd({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new z},radius:{value:4}},vertexShader:ug,fragmentShader:dg}),p=f.clone();p.defines.HORIZONTAL_PASS=1;let m=new il;m.setAttribute(`position`,new Uc(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));let h=new H(m,f),g=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=1;let _=this.type;this.render=function(t,n,s){if(g.enabled===!1||g.autoUpdate===!1&&g.needsUpdate===!1||t.length===0)return;this.type===2&&(To(`WebGLShadowMap: PCFSoftShadowMap has been removed. Using PCFShadowMap instead.`),this.type=1);let c=e.getRenderTarget(),l=e.getActiveCubeFace(),d=e.getActiveMipmapLevel(),f=e.state;f.setBlending(0),f.buffers.depth.getReversed()===!0?f.buffers.color.setClear(0,0,0,0):f.buffers.color.setClear(1,1,1,1),f.buffers.depth.setTest(!0),f.setScissorTest(!1);let p=_!==this.type;p&&n.traverse(function(e){e.material&&(Array.isArray(e.material)?e.material.forEach(e=>e.needsUpdate=!0):e.material.needsUpdate=!0)});for(let c=0,l=t.length;cu||i.y>u)&&(i.x>u&&(a.x=Math.floor(u/m.x),i.x=a.x*m.x,d.mapSize.x=a.x),i.y>u&&(a.y=Math.floor(u/m.y),i.y=a.y*m.y,d.mapSize.y=a.y));let h=e.state.buffers.depth.getReversed();if(d.camera._reversedDepth=h,d.map===null||p===!0){if(d.map!==null&&(d.map.depthTexture!==null&&(d.map.depthTexture.dispose(),d.map.depthTexture=null),d.map.dispose()),this.type===3){if(l.isPointLight){To(`WebGLShadowMap: VSM shadow maps are not supported for PointLights. Use PCF or BasicShadowMap instead.`);continue}d.map=new ws(i.x,i.y,{format:ha,type:na,minFilter:Ki,magFilter:Ki,generateMipmaps:!1}),d.map.texture.name=l.name+`.shadowMap`,d.map.depthTexture=new Au(i.x,i.y,ta),d.map.depthTexture.name=l.name+`.shadowMapDepth`,d.map.depthTexture.format=da,d.map.depthTexture.compareFunction=null,d.map.depthTexture.minFilter=Ui,d.map.depthTexture.magFilter=Ui}else l.isPointLight?(d.map=new Jp(i.x),d.map.depthTexture=new ju(i.x,ea)):(d.map=new ws(i.x,i.y),d.map.depthTexture=new Au(i.x,i.y,ea)),d.map.depthTexture.name=l.name+`.shadowMap`,d.map.depthTexture.format=da,this.type===1?(d.map.depthTexture.compareFunction=h?518:515,d.map.depthTexture.minFilter=Ki,d.map.depthTexture.magFilter=Ki):(d.map.depthTexture.compareFunction=null,d.map.depthTexture.minFilter=Ui,d.map.depthTexture.magFilter=Ui);d.camera.updateProjectionMatrix()}d.map.isWebGLCubeRenderTarget!==!0&&(d.map.width!==i.x||d.map.height!==i.y)&&d.map.setSize(i.x,i.y);let g=d.map.isWebGLCubeRenderTarget?6:d.getViewportCount();l.isPointLight!==!0&&d.updateMatrices(l,s);for(let t=0;t0||n.map&&n.alphaTest>0||n.alphaToCoverage===!0){let e=a.uuid,t=n.uuid,r=l[e];r===void 0&&(r={},l[e]=r);let i=r[t];i===void 0&&(i=a.clone(),r[t]=i,n.addEventListener(`dispose`,x)),a=i}if(a.visible=n.visible,a.wireframe=n.wireframe,i===3?a.side=n.shadowSide===null?n.side:n.shadowSide:a.side=n.shadowSide===null?d[n.side]:n.shadowSide,a.alphaMap=n.alphaMap,a.alphaTest=n.alphaToCoverage===!0?.5:n.alphaTest,a.map=n.map,a.clipShadows=n.clipShadows,a.clippingPlanes=n.clippingPlanes,a.clipIntersection=n.clipIntersection,a.displacementMap=n.displacementMap,a.displacementScale=n.displacementScale,a.displacementBias=n.displacementBias,a.wireframeLinewidth=n.wireframeLinewidth,a.linewidth=n.linewidth,r.isPointLight===!0&&a.isMeshDistanceMaterial===!0){let t=e.properties.get(a);t.light=r}return a}function b(n,i,a,o,s){if(n.visible===!1)return;if(n.layers.test(i.layers)&&(n.isMesh||n.isLine||n.isPoints)&&(n.castShadow||n.receiveShadow&&s===3)&&(!n.frustumCulled||n.intersectsFrustum(r))){n.modelViewMatrix.multiplyMatrices(a.matrixWorldInverse,n.matrixWorld);let r=t.update(n),c=n.material;if(Array.isArray(c)){let t=r.groups;for(let l=0,u=t.length;l=2):(ne=parseFloat(/^WebGL (\d)/.exec(re)[1]),j=ne>=1);let ie=null,M={},N=e.getParameter(e.SCISSOR_BOX),ae=e.getParameter(e.VIEWPORT),oe=new Ss().fromArray(N),se=new Ss().fromArray(ae);function ce(t,n,r,i){let a=new Uint8Array(4),o=e.createTexture();e.bindTexture(t,o),e.texParameteri(t,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(t,e.TEXTURE_MAG_FILTER,e.NEAREST);for(let o=0;o`u`?!1:/OculusBrowser/g.test(navigator.userAgent),l=new z,u=new WeakMap,d=new Set,f,p=new WeakMap,m=!1;try{m=typeof OffscreenCanvas<`u`&&new OffscreenCanvas(1,1).getContext(`2d`)!==null}catch{}function h(e,t){return m?new OffscreenCanvas(e,t):bo(`canvas`)}function g(e,t,n){let r=1,i=F(e);if((i.width>n||i.height>n)&&(r=n/Math.max(i.width,i.height)),r<1){if(typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement||typeof ImageBitmap<`u`&&e instanceof ImageBitmap||typeof VideoFrame<`u`&&e instanceof VideoFrame){let n=Math.floor(r*i.width),a=Math.floor(r*i.height);f===void 0&&(f=h(n,a));let o=t?h(n,a):f;return o.width=n,o.height=a,o.getContext(`2d`).drawImage(e,0,0,n,a),To(`WebGLRenderer: Texture has been resized from (`+i.width+`x`+i.height+`) to (`+n+`x`+a+`).`),o}return`data`in e&&To(`WebGLRenderer: Image in DataTexture is too big (`+i.width+`x`+i.height+`).`),e}return e}function _(e){return e.generateMipmaps}function v(t){e.generateMipmap(t)}function y(t){return t.isWebGLCubeRenderTarget?e.TEXTURE_CUBE_MAP:t.isWebGL3DRenderTarget?e.TEXTURE_3D:t.isWebGLArrayRenderTarget||t.isCompressedArrayTexture?e.TEXTURE_2D_ARRAY:e.TEXTURE_2D}function b(n,r,i,a,o,s=!1){if(n!==null){if(e[n]!==void 0)return e[n];To(`WebGLRenderer: Attempt to use non-existing WebGL internal format '`+n+`'`)}let c;a&&(c=t.get(`EXT_texture_norm16`),c||To(`WebGLRenderer: Unable to use normalized textures without EXT_texture_norm16 extension`));let l=r;if(r===e.RED&&(i===e.FLOAT&&(l=e.R32F),i===e.HALF_FLOAT&&(l=e.R16F),i===e.UNSIGNED_BYTE&&(l=e.R8),i===e.UNSIGNED_SHORT&&c&&(l=c.R16_EXT),i===e.SHORT&&c&&(l=c.R16_SNORM_EXT)),r===e.RED_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.R8UI),i===e.UNSIGNED_SHORT&&(l=e.R16UI),i===e.UNSIGNED_INT&&(l=e.R32UI),i===e.BYTE&&(l=e.R8I),i===e.SHORT&&(l=e.R16I),i===e.INT&&(l=e.R32I)),r===e.RG&&(i===e.FLOAT&&(l=e.RG32F),i===e.HALF_FLOAT&&(l=e.RG16F),i===e.UNSIGNED_BYTE&&(l=e.RG8),i===e.UNSIGNED_SHORT&&c&&(l=c.RG16_EXT),i===e.SHORT&&c&&(l=c.RG16_SNORM_EXT)),r===e.RG_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.RG8UI),i===e.UNSIGNED_SHORT&&(l=e.RG16UI),i===e.UNSIGNED_INT&&(l=e.RG32UI),i===e.BYTE&&(l=e.RG8I),i===e.SHORT&&(l=e.RG16I),i===e.INT&&(l=e.RG32I)),r===e.RGB_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.RGB8UI),i===e.UNSIGNED_SHORT&&(l=e.RGB16UI),i===e.UNSIGNED_INT&&(l=e.RGB32UI),i===e.BYTE&&(l=e.RGB8I),i===e.SHORT&&(l=e.RGB16I),i===e.INT&&(l=e.RGB32I)),r===e.RGBA_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.RGBA8UI),i===e.UNSIGNED_SHORT&&(l=e.RGBA16UI),i===e.UNSIGNED_INT&&(l=e.RGBA32UI),i===e.BYTE&&(l=e.RGBA8I),i===e.SHORT&&(l=e.RGBA16I),i===e.INT&&(l=e.RGBA32I)),r===e.RGB&&(i===e.UNSIGNED_SHORT&&c&&(l=c.RGB16_EXT),i===e.SHORT&&c&&(l=c.RGB16_SNORM_EXT),i===e.UNSIGNED_INT_5_9_9_9_REV&&(l=e.RGB9_E5),i===e.UNSIGNED_INT_10F_11F_11F_REV&&(l=e.R11F_G11F_B10F)),r===e.RGBA){let t=s?fo:ds.getTransfer(o);i===e.FLOAT&&(l=e.RGBA32F),i===e.HALF_FLOAT&&(l=e.RGBA16F),i===e.UNSIGNED_BYTE&&(l=t===`srgb`?e.SRGB8_ALPHA8:e.RGBA8),i===e.UNSIGNED_SHORT&&c&&(l=c.RGBA16_EXT),i===e.SHORT&&c&&(l=c.RGBA16_SNORM_EXT),i===e.UNSIGNED_SHORT_4_4_4_4&&(l=e.RGBA4),i===e.UNSIGNED_SHORT_5_5_5_1&&(l=e.RGB5_A1)}return(l===e.R16F||l===e.R32F||l===e.RG16F||l===e.RG32F||l===e.RGBA16F||l===e.RGBA32F)&&t.get(`EXT_color_buffer_float`),l}function x(t,n){let r;return t?n===null||n===1014||n===1020?r=e.DEPTH24_STENCIL8:n===1015?r=e.DEPTH32F_STENCIL8:n===1012&&(r=e.DEPTH24_STENCIL8,To(`DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.`)):n===null||n===1014||n===1020?r=e.DEPTH_COMPONENT24:n===1015?r=e.DEPTH_COMPONENT32F:n===1012&&(r=e.DEPTH_COMPONENT16),r}function S(e,t){return _(e)===!0||e.isFramebufferTexture&&e.minFilter!==1003&&e.minFilter!==1006?Math.log2(Math.max(t.width,t.height))+1:e.mipmaps!==void 0&&e.mipmaps.length>0?e.mipmaps.length:e.isCompressedTexture&&Array.isArray(e.image)?t.mipmaps.length:1}function C(e){let t=e.target;t.removeEventListener(`dispose`,C),T(t),t.isVideoTexture&&u.delete(t),t.isHTMLTexture&&d.delete(t)}function w(e){let t=e.target;t.removeEventListener(`dispose`,w),D(t)}function T(e){let t=r.get(e);if(t.__webglInit===void 0)return;let n=e.source,i=p.get(n);if(i){let r=i[t.__cacheKey];r.usedTimes--,r.usedTimes===0&&E(e),Object.keys(i).length===0&&p.delete(n)}r.remove(e)}function E(t){let n=r.get(t);e.deleteTexture(n.__webglTexture);let i=t.source,a=p.get(i);delete a[n.__cacheKey],o.memory.textures--}function D(t){let n=r.get(t);if(t.depthTexture&&(t.depthTexture.dispose(),r.remove(t.depthTexture)),t.isWebGLCubeRenderTarget)for(let t=0;t<6;t++){if(Array.isArray(n.__webglFramebuffer[t]))for(let r=0;r=i.maxTextures&&To(`WebGLTextures: Trying to use `+(e+1)+` texture units while this GPU supports only `+i.maxTextures),O+=1,e}function j(e){let t=[];return t.push(e.wrapS),t.push(e.wrapT),t.push(e.wrapR||0),t.push(e.magFilter),t.push(e.minFilter),t.push(e.anisotropy),t.push(e.internalFormat),t.push(e.format),t.push(e.type),t.push(e.generateMipmaps),t.push(e.premultiplyAlpha),t.push(e.flipY),t.push(e.unpackAlignment),t.push(e.colorSpace),t.join()}function ne(t,i){let a=r.get(t);if(t.isVideoTexture&&we(t),t.isRenderTargetTexture===!1&&t.isExternalTexture!==!0&&t.version>0&&a.__version!==t.version){let e=t.image;if(e===null)To(`WebGLRenderer: Texture marked for update but no image data found.`);else if(e.complete===!1)To(`WebGLRenderer: Texture marked for update but image is incomplete`);else{de(a,t,i);return}}else t.isExternalTexture&&(a.__webglTexture=t.sourceTexture?t.sourceTexture:null);n.bindTexture(e.TEXTURE_2D,a.__webglTexture,e.TEXTURE0+i)}function re(t,i){let a=r.get(t);t.isRenderTargetTexture===!1&&t.version>0&&a.__version!==t.version?de(a,t,i):(t.isExternalTexture&&(a.__webglTexture=t.sourceTexture?t.sourceTexture:null),n.bindTexture(e.TEXTURE_2D_ARRAY,a.__webglTexture,e.TEXTURE0+i))}function ie(t,i){let a=r.get(t);t.isRenderTargetTexture===!1&&t.version>0&&a.__version!==t.version?de(a,t,i):n.bindTexture(e.TEXTURE_3D,a.__webglTexture,e.TEXTURE0+i)}function M(t,i){let a=r.get(t);t.isCubeDepthTexture!==!0&&t.version>0&&a.__version!==t.version?fe(a,t,i):n.bindTexture(e.TEXTURE_CUBE_MAP,a.__webglTexture,e.TEXTURE0+i)}let N={[Bi]:e.REPEAT,[Vi]:e.CLAMP_TO_EDGE,[Hi]:e.MIRRORED_REPEAT},ae={[Ui]:e.NEAREST,[Wi]:e.NEAREST_MIPMAP_NEAREST,[Gi]:e.NEAREST_MIPMAP_LINEAR,[Ki]:e.LINEAR,[qi]:e.LINEAR_MIPMAP_NEAREST,[Ji]:e.LINEAR_MIPMAP_LINEAR},oe={512:e.NEVER,519:e.ALWAYS,513:e.LESS,515:e.LEQUAL,514:e.EQUAL,518:e.GEQUAL,516:e.GREATER,517:e.NOTEQUAL};function se(n,a){if(a.type===1015&&t.has(`OES_texture_float_linear`)===!1&&(a.magFilter===1006||a.magFilter===1007||a.magFilter===1005||a.magFilter===1008||a.minFilter===1006||a.minFilter===1007||a.minFilter===1005||a.minFilter===1008)&&To(`WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device.`),e.texParameteri(n,e.TEXTURE_WRAP_S,N[a.wrapS]),e.texParameteri(n,e.TEXTURE_WRAP_T,N[a.wrapT]),(n===e.TEXTURE_3D||n===e.TEXTURE_2D_ARRAY)&&e.texParameteri(n,e.TEXTURE_WRAP_R,N[a.wrapR]),e.texParameteri(n,e.TEXTURE_MAG_FILTER,ae[a.magFilter]),e.texParameteri(n,e.TEXTURE_MIN_FILTER,ae[a.minFilter]),a.compareFunction&&(e.texParameteri(n,e.TEXTURE_COMPARE_MODE,e.COMPARE_REF_TO_TEXTURE),e.texParameteri(n,e.TEXTURE_COMPARE_FUNC,oe[a.compareFunction])),t.has(`EXT_texture_filter_anisotropic`)===!0){if(a.magFilter===1003||a.minFilter!==1005&&a.minFilter!==1008||a.type===1015&&t.has(`OES_texture_float_linear`)===!1)return;if(a.anisotropy>1||r.get(a).__currentAnisotropy){let o=t.get(`EXT_texture_filter_anisotropic`);e.texParameterf(n,o.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(a.anisotropy,i.getMaxAnisotropy())),r.get(a).__currentAnisotropy=a.anisotropy}}}function ce(t,n){let r=!1;t.__webglInit===void 0&&(t.__webglInit=!0,n.addEventListener(`dispose`,C));let i=n.source,a=p.get(i);a===void 0&&(a={},p.set(i,a));let s=j(n);if(s!==t.__cacheKey){a[s]===void 0&&(a[s]={texture:e.createTexture(),usedTimes:0},o.memory.textures++,r=!0),a[s].usedTimes++;let i=a[t.__cacheKey];i!==void 0&&(a[t.__cacheKey].usedTimes--,i.usedTimes===0&&E(n)),t.__cacheKey=s,t.__webglTexture=a[s].texture}return r}function le(e,t,n){return Math.floor(Math.floor(e/n)/t)}function ue(t,r,i,a){let o=t.updateRanges;if(o.length===0)n.texSubImage2D(e.TEXTURE_2D,0,0,0,r.width,r.height,i,a,r.data);else{o.sort((e,t)=>e.start-t.start);let s=0;for(let e=1;e0){C&&w&&n.texStorage2D(e.TEXTURE_2D,E,m,y[0].width,y[0].height);for(let t=0,i=y.length;t0){let t=pp(h.width,h.height,o.format,o.type);for(let a of o.layerUpdates){let o=h.data.subarray(a*t/h.data.BYTES_PER_ELEMENT,(a+1)*t/h.data.BYTES_PER_ELEMENT);n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,i,0,0,a,h.width,h.height,1,r,o)}}else n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,i,0,0,0,h.width,h.height,t.depth,r,h.data)}}else n.compressedTexImage3D(e.TEXTURE_2D_ARRAY,i,m,h.width,h.height,t.depth,0,h.data,0,0)}else To(`WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()`)}else C?T&&n.texSubImage3D(e.TEXTURE_2D_ARRAY,i,0,0,0,h.width,h.height,t.depth,r,p,h.data):n.texImage3D(e.TEXTURE_2D_ARRAY,i,m,h.width,h.height,t.depth,0,r,p,h.data);o.layerUpdates.size>0&&o.clearLayerUpdates()}else{C&&w&&n.texStorage2D(e.TEXTURE_2D,E,m,y[0].width,y[0].height);for(let t=0,i=y.length;t0){let i=pp(t.width,t.height,o.format,o.type);for(let a of o.layerUpdates){let o=t.data.subarray(a*i/t.data.BYTES_PER_ELEMENT,(a+1)*i/t.data.BYTES_PER_ELEMENT);n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,a,t.width,t.height,1,r,p,o)}o.clearLayerUpdates()}else n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,0,t.width,t.height,t.depth,r,p,t.data)}}else n.texImage3D(e.TEXTURE_2D_ARRAY,0,m,t.width,t.height,t.depth,0,r,p,t.data)}else if(o.isData3DTexture)C?(w&&n.texStorage3D(e.TEXTURE_3D,E,m,t.width,t.height,t.depth),T&&n.texSubImage3D(e.TEXTURE_3D,0,0,0,0,t.width,t.height,t.depth,r,p,t.data)):n.texImage3D(e.TEXTURE_3D,0,m,t.width,t.height,t.depth,0,r,p,t.data);else if(o.isFramebufferTexture){if(w){if(C)n.texStorage2D(e.TEXTURE_2D,E,m,t.width,t.height);else{let i=t.width,a=t.height;for(let t=0;t>=1,a>>=1}}}else if(o.isHTMLTexture){if(`texElementImage2D`in e){let n=e.canvas;if(n.hasAttribute(`layoutsubtree`)||n.setAttribute(`layoutsubtree`,`true`),t.parentNode!==n){n.appendChild(t),d.add(o),n.onpaint=e=>{let t=e.changedElements;for(let e of d)t.includes(e.image)&&(e.needsUpdate=!0)},n.requestPaint();return}if(e.texElementImage2D.length===3)e.texElementImage2D(e.TEXTURE_2D,e.RGBA8,t);else{let n=e.RGBA,r=e.RGBA,i=e.UNSIGNED_BYTE;e.texElementImage2D(e.TEXTURE_2D,0,n,r,i,t)}e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE)}}else if(y.length>0){if(C&&w){let t=F(y[0]);n.texStorage2D(e.TEXTURE_2D,E,m,t.width,t.height)}for(let t=0,i=y.length;t0&&D++;let t=F(m[0]);n.texStorage2D(e.TEXTURE_CUBE_MAP,D,C,t.width,t.height)}for(let t=0;t<6;t++)if(p){w?E&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,0,0,m[t].width,m[t].height,y,x,m[t].data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,C,m[t].width,m[t].height,0,y,x,m[t].data);for(let r=0;r>u),r=Math.max(1,i.height>>u);l===e.TEXTURE_3D||l===e.TEXTURE_2D_ARRAY?n.texImage3D(l,u,p,t,r,i.depth,0,d,f,null):n.texImage2D(l,u,p,t,r,0,d,f,null)}n.bindFramebuffer(e.FRAMEBUFFER,t),P(i)?s.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,c,l,h.__webglTexture,0,Ce(i)):(l===e.TEXTURE_2D||l>=e.TEXTURE_CUBE_MAP_POSITIVE_X&&l<=e.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&e.framebufferTexture2D(e.FRAMEBUFFER,c,l,h.__webglTexture,u),n.bindFramebuffer(e.FRAMEBUFFER,null)}function me(t,n,r){if(e.bindRenderbuffer(e.RENDERBUFFER,t),n.depthBuffer){let i=n.depthTexture,a=i&&i.isDepthTexture?i.type:null,o=x(n.stencilBuffer,a),c=n.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT;P(n)?s.renderbufferStorageMultisampleEXT(e.RENDERBUFFER,Ce(n),o,n.width,n.height):r?e.renderbufferStorageMultisample(e.RENDERBUFFER,Ce(n),o,n.width,n.height):e.renderbufferStorage(e.RENDERBUFFER,o,n.width,n.height),e.framebufferRenderbuffer(e.FRAMEBUFFER,c,e.RENDERBUFFER,t)}else{let t=n.textures;for(let i=0;i{delete i.__boundDepthTexture,delete i.__depthDisposeCallback,e.removeEventListener(`dispose`,t)};e.addEventListener(`dispose`,t),i.__depthDisposeCallback=t}i.__boundDepthTexture=e}if(t.depthTexture&&!i.__autoAllocateDepthBuffer){if(a)for(let e=0;e<6;e++)he(i.__webglFramebuffer[e],t,e);else{let e=t.texture.mipmaps;e&&e.length>0?he(i.__webglFramebuffer[0],t,0):he(i.__webglFramebuffer,t,0)}}else if(a){i.__webglDepthbuffer=[];for(let r=0;r<6;r++)if(n.bindFramebuffer(e.FRAMEBUFFER,i.__webglFramebuffer[r]),i.__webglDepthbuffer[r]===void 0)i.__webglDepthbuffer[r]=e.createRenderbuffer(),me(i.__webglDepthbuffer[r],t,!1);else{let n=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,a=i.__webglDepthbuffer[r];e.bindRenderbuffer(e.RENDERBUFFER,a),e.framebufferRenderbuffer(e.FRAMEBUFFER,n,e.RENDERBUFFER,a)}}else{let r=t.texture.mipmaps;if(r&&r.length>0?n.bindFramebuffer(e.FRAMEBUFFER,i.__webglFramebuffer[0]):n.bindFramebuffer(e.FRAMEBUFFER,i.__webglFramebuffer),i.__webglDepthbuffer===void 0)i.__webglDepthbuffer=e.createRenderbuffer(),me(i.__webglDepthbuffer,t,!1);else{let n=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,r=i.__webglDepthbuffer;e.bindRenderbuffer(e.RENDERBUFFER,r),e.framebufferRenderbuffer(e.FRAMEBUFFER,n,e.RENDERBUFFER,r)}}n.bindFramebuffer(e.FRAMEBUFFER,null)}function _e(t,n,i){let a=r.get(t);n!==void 0&&pe(a.__webglFramebuffer,t,t.texture,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,0),i!==void 0&&ge(t)}function ve(t){let i=t.texture,s=r.get(t),c=r.get(i);t.addEventListener(`dispose`,w);let l=t.textures,u=t.isWebGLCubeRenderTarget===!0,d=l.length>1;if(d||(c.__webglTexture===void 0&&(c.__webglTexture=e.createTexture()),c.__version=i.version,o.memory.textures++),u){s.__webglFramebuffer=[];for(let t=0;t<6;t++)if(i.mipmaps&&i.mipmaps.length>0){s.__webglFramebuffer[t]=[];for(let n=0;n0){s.__webglFramebuffer=[];for(let t=0;t0&&P(t)===!1){s.__webglMultisampledFramebuffer=e.createFramebuffer(),s.__webglColorRenderbuffer=[],n.bindFramebuffer(e.FRAMEBUFFER,s.__webglMultisampledFramebuffer);for(let n=0;n0)for(let r=0;r0)for(let n=0;n0){if(P(t)===!1){let i=t.textures,a=t.width,o=t.height,s=e.COLOR_BUFFER_BIT,l=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,u=r.get(t),d=i.length>1;if(d)for(let t=0;t0?n.bindFramebuffer(e.DRAW_FRAMEBUFFER,u.__webglFramebuffer[0]):n.bindFramebuffer(e.DRAW_FRAMEBUFFER,u.__webglFramebuffer);for(let n=0;n0&&t.has(`WEBGL_multisampled_render_to_texture`)===!0&&n.__useRenderToTexture!==!1}function we(e){let t=o.render.frame;u.get(e)!==t&&(u.set(e,t),e.update())}function Te(e,t){let n=e.colorSpace,r=e.format,i=e.type;return e.isCompressedTexture===!0||e.isVideoTexture===!0||n!==`srgb-linear`&&n!==``&&(ds.getTransfer(n)===`srgb`?(r!==1023||i!==1009)&&To(`WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.`):Eo(`WebGLTextures: Unsupported texture color space:`,n)),t}function F(e){return typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement?(l.width=e.naturalWidth||e.width,l.height=e.naturalHeight||e.height):typeof VideoFrame<`u`&&e instanceof VideoFrame?(l.width=e.displayWidth,l.height=e.displayHeight):(l.width=e.width,l.height=e.height),l}this.allocateTextureUnit=te,this.resetTextureUnits=k,this.getTextureUnits=ee,this.setTextureUnits=A,this.setTexture2D=ne,this.setTexture2DArray=re,this.setTexture3D=ie,this.setTextureCube=M,this.rebindTextures=_e,this.setupRenderTarget=ve,this.updateRenderTargetMipmap=ye,this.updateMultisampleRenderTarget=Se,this.setupDepthRenderbuffer=ge,this.setupFrameBufferTexture=pe,this.useMultisampledRTT=P,this.isReversedDepthBuffer=function(){return n.buffers.depth.getReversed()}}function bg(e,t){function n(n,r=``){let i,a=ds.getTransfer(r);if(n===1009)return e.UNSIGNED_BYTE;if(n===1017)return e.UNSIGNED_SHORT_4_4_4_4;if(n===1018)return e.UNSIGNED_SHORT_5_5_5_1;if(n===35902)return e.UNSIGNED_INT_5_9_9_9_REV;if(n===35899)return e.UNSIGNED_INT_10F_11F_11F_REV;if(n===1010)return e.BYTE;if(n===1011)return e.SHORT;if(n===1012)return e.UNSIGNED_SHORT;if(n===1013)return e.INT;if(n===1014)return e.UNSIGNED_INT;if(n===1015)return e.FLOAT;if(n===1016)return e.HALF_FLOAT;if(n===1021)return e.ALPHA;if(n===1022)return e.RGB;if(n===1023)return e.RGBA;if(n===1026)return e.DEPTH_COMPONENT;if(n===1027)return e.DEPTH_STENCIL;if(n===1028)return e.RED;if(n===1029)return e.RED_INTEGER;if(n===1030)return e.RG;if(n===1031)return e.RG_INTEGER;if(n===1033)return e.RGBA_INTEGER;if(n===33776||n===33777||n===33778||n===33779){if(a===`srgb`){if(i=t.get(`WEBGL_compressed_texture_s3tc_srgb`),i!==null){if(n===33776)return i.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(n===33777)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(n===33778)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(n===33779)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null}else if(i=t.get(`WEBGL_compressed_texture_s3tc`),i!==null){if(n===33776)return i.COMPRESSED_RGB_S3TC_DXT1_EXT;if(n===33777)return i.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(n===33778)return i.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(n===33779)return i.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null}if(n===35840||n===35841||n===35842||n===35843){if(i=t.get(`WEBGL_compressed_texture_pvrtc`),i!==null){if(n===35840)return i.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(n===35841)return i.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(n===35842)return i.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(n===35843)return i.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null}if(n===36196||n===37492||n===37496||n===37488||n===37489||n===37490||n===37491){if(i=t.get(`WEBGL_compressed_texture_etc`),i!==null){if(n===36196||n===37492)return a===`srgb`?i.COMPRESSED_SRGB8_ETC2:i.COMPRESSED_RGB8_ETC2;if(n===37496)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:i.COMPRESSED_RGBA8_ETC2_EAC;if(n===37488)return i.COMPRESSED_R11_EAC;if(n===37489)return i.COMPRESSED_SIGNED_R11_EAC;if(n===37490)return i.COMPRESSED_RG11_EAC;if(n===37491)return i.COMPRESSED_SIGNED_RG11_EAC}else return null}if(n===37808||n===37809||n===37810||n===37811||n===37812||n===37813||n===37814||n===37815||n===37816||n===37817||n===37818||n===37819||n===37820||n===37821){if(i=t.get(`WEBGL_compressed_texture_astc`),i!==null){if(n===37808)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:i.COMPRESSED_RGBA_ASTC_4x4_KHR;if(n===37809)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:i.COMPRESSED_RGBA_ASTC_5x4_KHR;if(n===37810)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:i.COMPRESSED_RGBA_ASTC_5x5_KHR;if(n===37811)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:i.COMPRESSED_RGBA_ASTC_6x5_KHR;if(n===37812)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:i.COMPRESSED_RGBA_ASTC_6x6_KHR;if(n===37813)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:i.COMPRESSED_RGBA_ASTC_8x5_KHR;if(n===37814)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:i.COMPRESSED_RGBA_ASTC_8x6_KHR;if(n===37815)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:i.COMPRESSED_RGBA_ASTC_8x8_KHR;if(n===37816)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:i.COMPRESSED_RGBA_ASTC_10x5_KHR;if(n===37817)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:i.COMPRESSED_RGBA_ASTC_10x6_KHR;if(n===37818)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:i.COMPRESSED_RGBA_ASTC_10x8_KHR;if(n===37819)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:i.COMPRESSED_RGBA_ASTC_10x10_KHR;if(n===37820)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:i.COMPRESSED_RGBA_ASTC_12x10_KHR;if(n===37821)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:i.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null}if(n===36492||n===36494||n===36495){if(i=t.get(`EXT_texture_compression_bptc`),i!==null){if(n===36492)return a===`srgb`?i.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:i.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(n===36494)return i.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(n===36495)return i.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null}if(n===36283||n===36284||n===36285||n===36286){if(i=t.get(`EXT_texture_compression_rgtc`),i!==null){if(n===36283)return i.COMPRESSED_RED_RGTC1_EXT;if(n===36284)return i.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(n===36285)return i.COMPRESSED_RED_GREEN_RGTC2_EXT;if(n===36286)return i.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null}return n===1020?e.UNSIGNED_INT_24_8:e[n]===void 0?null:e[n]}return{convert:n}}var xg=` void main() { gl_Position = vec4( position, 1.0 ); -}`,Lh=` +}`,Sg=` uniform sampler2DArray depthColor; uniform float depthWidth; uniform float depthHeight; @@ -4217,46 +4228,46 @@ void main() { } -}`,Rh=class{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(e,t){if(this.texture===null){let n=new ql(e.texture);(e.depthNear!==t.depthNear||e.depthFar!==t.depthFar)&&(this.depthNear=e.depthNear,this.depthFar=e.depthFar),this.texture=n}}getMesh(e){if(this.texture!==null&&this.mesh===null){let t=e.cameras[0].viewport,n=new Wu({vertexShader:Ih,fragmentShader:Lh,uniforms:{depthColor:{value:this.texture},depthWidth:{value:t.z},depthHeight:{value:t.w}}});this.mesh=new V(new Au(20,20),n)}return this.mesh}reset(){this.texture=null,this.mesh=null}getDepthTexture(){return this.texture}},zh=class extends Wa{constructor(e,t){super();let n=this,r=null,i=1,a=null,o=`local-floor`,s=1,c=null,l=null,u=null,d=null,f=null,p=null,m=typeof XRWebGLBinding<`u`,h=new Rh,g={},_=t.getContextAttributes(),v=null,y=null,b=[],x=[],S=new R,C=null,w=null,T=new Wd;T.viewport=new Lo;let E=new Wd;E.viewport=new Lo;let D=[T,E],O=new af,k=null,A=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(e){let t=b[e];return t===void 0&&(t=new vs,b[e]=t),t.getTargetRaySpace()},this.getControllerGrip=function(e){let t=b[e];return t===void 0&&(t=new vs,b[e]=t),t.getGripSpace()},this.getHand=function(e){let t=b[e];return t===void 0&&(t=new vs,b[e]=t),t.getHandSpace()};function j(e){let t=x.indexOf(e.inputSource);if(t===-1)return;let n=b[t];n!==void 0&&(n.update(e.inputSource,e.frame,c||a),n.dispatchEvent({type:e.type,data:e.inputSource}))}function ee(){r.removeEventListener(`select`,j),r.removeEventListener(`selectstart`,j),r.removeEventListener(`selectend`,j),r.removeEventListener(`squeeze`,j),r.removeEventListener(`squeezestart`,j),r.removeEventListener(`squeezeend`,j),r.removeEventListener(`end`,ee),r.removeEventListener(`inputsourceschange`,M);for(let e=0;e=0&&(x[r]=null,b[r].disconnect(n))}for(let t=0;t=x.length){x.push(n),r=e;break}else if(x[e]===null){x[e]=n,r=e;break}if(r===-1)break}let i=b[r];i&&i.connect(n)}}let te=new z,ne=new z;function re(e,t,n){te.setFromMatrixPosition(t.matrixWorld),ne.setFromMatrixPosition(n.matrixWorld);let r=te.distanceTo(ne),i=t.projectionMatrix.elements,a=n.projectionMatrix.elements,o=i[14]/(i[10]-1),s=i[14]/(i[10]+1),c=(i[9]+1)/i[5],l=(i[9]-1)/i[5],u=(i[8]-1)/i[0],d=(a[8]+1)/a[0],f=o*u,p=o*d,m=r/(-u+d),h=m*-u;if(t.matrixWorld.decompose(e.position,e.quaternion,e.scale),e.translateX(h),e.translateZ(m),e.matrixWorld.compose(e.position,e.quaternion,e.scale),e.matrixWorldInverse.copy(e.matrixWorld).invert(),i[10]===-1)e.projectionMatrix.copy(t.projectionMatrix),e.projectionMatrixInverse.copy(t.projectionMatrixInverse);else{let t=o+m,n=s+m,i=f-h,a=p+(r-h),u=c*s/n*t,d=l*s/n*t;e.projectionMatrix.makePerspective(i,a,u,d,t,n),e.projectionMatrixInverse.copy(e.projectionMatrix).invert()}}function ie(e,t){t===null?e.matrixWorld.copy(e.matrix):e.matrixWorld.multiplyMatrices(t.matrixWorld,e.matrix),e.matrixWorldInverse.copy(e.matrixWorld).invert()}this.updateCamera=function(e){if(r===null)return;let t=e.near,n=e.far;h.texture!==null&&(h.depthNear>0&&(t=h.depthNear),h.depthFar>0&&(n=h.depthFar)),O.near=E.near=T.near=t,O.far=E.far=T.far=n,(k!==O.near||A!==O.far)&&(r.updateRenderState({depthNear:O.near,depthFar:O.far}),k=O.near,A=O.far),O.layers.mask=e.layers.mask|6,T.layers.mask=O.layers.mask&-5,E.layers.mask=O.layers.mask&-3;let i=e.parent,a=O.cameras;ie(O,i);for(let e=0;e0&&(e.alphaTest.value=r.alphaTest);let i=t.get(r),a=i.envMap,o=i.envMapRotation;a&&(e.envMap.value=a,e.envMapRotation.value.setFromMatrix4(Bh.makeRotationFromEuler(o)).transpose(),a.isCubeTexture&&a.isRenderTargetTexture===!1&&e.envMapRotation.value.premultiply(Vh),e.reflectivity.value=r.reflectivity,e.ior.value=r.ior,e.refractionRatio.value=r.refractionRatio),r.lightMap&&(e.lightMap.value=r.lightMap,e.lightMapIntensity.value=r.lightMapIntensity,n(r.lightMap,e.lightMapTransform)),r.aoMap&&(e.aoMap.value=r.aoMap,e.aoMapIntensity.value=r.aoMapIntensity,n(r.aoMap,e.aoMapTransform))}function o(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform))}function s(e,t){e.dashSize.value=t.dashSize,e.totalSize.value=t.dashSize+t.gapSize,e.scale.value=t.scale}function c(e,t,r,i){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.size.value=t.size*r,e.scale.value=i*.5,t.map&&(e.map.value=t.map,n(t.map,e.uvTransform)),t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform)),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}function l(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.rotation.value=t.rotation,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform)),t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform)),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}function u(e,t){e.specular.value.copy(t.specular),e.shininess.value=Math.max(t.shininess,1e-4)}function d(e,t){t.gradientMap&&(e.gradientMap.value=t.gradientMap)}function f(e,t){e.metalness.value=t.metalness,t.metalnessMap&&(e.metalnessMap.value=t.metalnessMap,n(t.metalnessMap,e.metalnessMapTransform)),e.roughness.value=t.roughness,t.roughnessMap&&(e.roughnessMap.value=t.roughnessMap,n(t.roughnessMap,e.roughnessMapTransform)),t.envMap&&(e.envMapIntensity.value=t.envMapIntensity)}function p(e,t,r){e.ior.value=t.ior,t.sheen>0&&(e.sheenColor.value.copy(t.sheenColor).multiplyScalar(t.sheen),e.sheenRoughness.value=t.sheenRoughness,t.sheenColorMap&&(e.sheenColorMap.value=t.sheenColorMap,n(t.sheenColorMap,e.sheenColorMapTransform)),t.sheenRoughnessMap&&(e.sheenRoughnessMap.value=t.sheenRoughnessMap,n(t.sheenRoughnessMap,e.sheenRoughnessMapTransform))),t.clearcoat>0&&(e.clearcoat.value=t.clearcoat,e.clearcoatRoughness.value=t.clearcoatRoughness,t.clearcoatMap&&(e.clearcoatMap.value=t.clearcoatMap,n(t.clearcoatMap,e.clearcoatMapTransform)),t.clearcoatRoughnessMap&&(e.clearcoatRoughnessMap.value=t.clearcoatRoughnessMap,n(t.clearcoatRoughnessMap,e.clearcoatRoughnessMapTransform)),t.clearcoatNormalMap&&(e.clearcoatNormalMap.value=t.clearcoatNormalMap,n(t.clearcoatNormalMap,e.clearcoatNormalMapTransform),e.clearcoatNormalScale.value.copy(t.clearcoatNormalScale),t.side===1&&e.clearcoatNormalScale.value.negate())),t.dispersion>0&&(e.dispersion.value=t.dispersion),t.retroreflectivity>0&&(e.retroreflectivity.value=t.retroreflectivity),t.iridescence>0&&(e.iridescence.value=t.iridescence,e.iridescenceIOR.value=t.iridescenceIOR,e.iridescenceThicknessMinimum.value=t.iridescenceThicknessRange[0],e.iridescenceThicknessMaximum.value=t.iridescenceThicknessRange[1],t.iridescenceMap&&(e.iridescenceMap.value=t.iridescenceMap,n(t.iridescenceMap,e.iridescenceMapTransform)),t.iridescenceThicknessMap&&(e.iridescenceThicknessMap.value=t.iridescenceThicknessMap,n(t.iridescenceThicknessMap,e.iridescenceThicknessMapTransform))),t.transmission>0&&(e.transmission.value=t.transmission,e.transmissionSamplerMap.value=r.texture,e.transmissionSamplerSize.value.set(r.width,r.height),t.transmissionMap&&(e.transmissionMap.value=t.transmissionMap,n(t.transmissionMap,e.transmissionMapTransform)),e.thickness.value=t.thickness,t.thicknessMap&&(e.thicknessMap.value=t.thicknessMap,n(t.thicknessMap,e.thicknessMapTransform)),e.attenuationDistance.value=t.attenuationDistance,e.attenuationColor.value.copy(t.attenuationColor)),t.anisotropy>0&&(e.anisotropyVector.value.set(t.anisotropy*Math.cos(t.anisotropyRotation),t.anisotropy*Math.sin(t.anisotropyRotation)),t.anisotropyMap&&(e.anisotropyMap.value=t.anisotropyMap,n(t.anisotropyMap,e.anisotropyMapTransform))),e.specularIntensity.value=t.specularIntensity,e.specularColor.value.copy(t.specularColor),t.specularColorMap&&(e.specularColorMap.value=t.specularColorMap,n(t.specularColorMap,e.specularColorMapTransform)),t.specularIntensityMap&&(e.specularIntensityMap.value=t.specularIntensityMap,n(t.specularIntensityMap,e.specularIntensityMapTransform))}function m(e,t){t.matcap&&(e.matcap.value=t.matcap)}function h(e,n){let r=t.get(n).light;e.referencePosition.value.setFromMatrixPosition(r.matrixWorld),e.nearDistance.value=r.shadow.camera.near,e.farDistance.value=r.shadow.camera.far}return{refreshFogUniforms:r,refreshMaterialUniforms:i}}function Uh(e,t,n,r){let i={},a={},o=[],s=e.getParameter(e.MAX_UNIFORM_BUFFER_BINDINGS);function c(e,t){let n=t.program;r.uniformBlockBinding(e,n)}function l(e,n){let o=i[e.id];o===void 0&&(g(e),o=u(e),i[e.id]=o,e.addEventListener(`dispose`,v));let s=n.program;r.updateUBOMapping(e,s);let c=t.render.frame;a[e.id]!==c&&(f(e),a[e.id]=c)}function u(t){let n=d();t.__bindingPointIndex=n;let r=e.createBuffer(),i=t.__size,a=t.usage;return e.bindBuffer(e.UNIFORM_BUFFER,r),e.bufferData(e.UNIFORM_BUFFER,i,a),e.bindBuffer(e.UNIFORM_BUFFER,null),e.bindBufferBase(e.UNIFORM_BUFFER,n,r),r}function d(){for(let e=0;e0&&(n+=16-r),e.__size=n,e.__cache={},this}function _(e){let t={boundary:0,storage:0};return typeof e==`number`||typeof e==`boolean`?(t.boundary=4,t.storage=4):e.isVector2?(t.boundary=8,t.storage=8):e.isVector3||e.isColor?(t.boundary=16,t.storage=12):e.isVector4?(t.boundary=16,t.storage=16):e.isMatrix3?(t.boundary=48,t.storage=48):e.isMatrix4?(t.boundary=64,t.storage=64):e.isTexture?za(`WebGLRenderer: Texture samplers can not be part of an uniforms group.`):ArrayBuffer.isView(e)?(t.boundary=16,t.storage=e.byteLength):za(`WebGLRenderer: Unsupported uniform value type.`,e),t}function v(t){let n=t.target;n.removeEventListener(`dispose`,v);let r=o.indexOf(n.__bindingPointIndex);o.splice(r,1),e.deleteBuffer(i[n.id]),delete i[n.id],delete a[n.id]}function y(){for(let t in i)e.deleteBuffer(i[t]);o=[],i={},a={}}return{bind:c,update:l,dispose:y}}var Wh=new Uint16Array([12469,15057,12620,14925,13266,14620,13807,14376,14323,13990,14545,13625,14713,13328,14840,12882,14931,12528,14996,12233,15039,11829,15066,11525,15080,11295,15085,10976,15082,10705,15073,10495,13880,14564,13898,14542,13977,14430,14158,14124,14393,13732,14556,13410,14702,12996,14814,12596,14891,12291,14937,11834,14957,11489,14958,11194,14943,10803,14921,10506,14893,10278,14858,9960,14484,14039,14487,14025,14499,13941,14524,13740,14574,13468,14654,13106,14743,12678,14818,12344,14867,11893,14889,11509,14893,11180,14881,10751,14852,10428,14812,10128,14765,9754,14712,9466,14764,13480,14764,13475,14766,13440,14766,13347,14769,13070,14786,12713,14816,12387,14844,11957,14860,11549,14868,11215,14855,10751,14825,10403,14782,10044,14729,9651,14666,9352,14599,9029,14967,12835,14966,12831,14963,12804,14954,12723,14936,12564,14917,12347,14900,11958,14886,11569,14878,11247,14859,10765,14828,10401,14784,10011,14727,9600,14660,9289,14586,8893,14508,8533,15111,12234,15110,12234,15104,12216,15092,12156,15067,12010,15028,11776,14981,11500,14942,11205,14902,10752,14861,10393,14812,9991,14752,9570,14682,9252,14603,8808,14519,8445,14431,8145,15209,11449,15208,11451,15202,11451,15190,11438,15163,11384,15117,11274,15055,10979,14994,10648,14932,10343,14871,9936,14803,9532,14729,9218,14645,8742,14556,8381,14461,8020,14365,7603,15273,10603,15272,10607,15267,10619,15256,10631,15231,10614,15182,10535,15118,10389,15042,10167,14963,9787,14883,9447,14800,9115,14710,8665,14615,8318,14514,7911,14411,7507,14279,7198,15314,9675,15313,9683,15309,9712,15298,9759,15277,9797,15229,9773,15166,9668,15084,9487,14995,9274,14898,8910,14800,8539,14697,8234,14590,7790,14479,7409,14367,7067,14178,6621,15337,8619,15337,8631,15333,8677,15325,8769,15305,8871,15264,8940,15202,8909,15119,8775,15022,8565,14916,8328,14804,8009,14688,7614,14569,7287,14448,6888,14321,6483,14088,6171,15350,7402,15350,7419,15347,7480,15340,7613,15322,7804,15287,7973,15229,8057,15148,8012,15046,7846,14933,7611,14810,7357,14682,7069,14552,6656,14421,6316,14251,5948,14007,5528,15356,5942,15356,5977,15353,6119,15348,6294,15332,6551,15302,6824,15249,7044,15171,7122,15070,7050,14949,6861,14818,6611,14679,6349,14538,6067,14398,5651,14189,5311,13935,4958,15359,4123,15359,4153,15356,4296,15353,4646,15338,5160,15311,5508,15263,5829,15188,6042,15088,6094,14966,6001,14826,5796,14678,5543,14527,5287,14377,4985,14133,4586,13869,4257,15360,1563,15360,1642,15358,2076,15354,2636,15341,3350,15317,4019,15273,4429,15203,4732,15105,4911,14981,4932,14836,4818,14679,4621,14517,4386,14359,4156,14083,3795,13808,3437,15360,122,15360,137,15358,285,15355,636,15344,1274,15322,2177,15281,2765,15215,3223,15120,3451,14995,3569,14846,3567,14681,3466,14511,3305,14344,3121,14037,2800,13753,2467,15360,0,15360,1,15359,21,15355,89,15346,253,15325,479,15287,796,15225,1148,15133,1492,15008,1749,14856,1882,14685,1886,14506,1783,14324,1608,13996,1398,13702,1183]),Gh=null;function Kh(){return Gh===null&&(Gh=new al(Wh,16,16,Ai,_i),Gh.name=`DFG_LUT`,Gh.minFilter=si,Gh.magFilter=si,Gh.wrapS=ni,Gh.wrapT=ni,Gh.generateMipmaps=!1,Gh.needsUpdate=!0),Gh}var qh=class{constructor(e={}){let{canvas:t=Fa(),context:n=null,depth:r=!0,stencil:i=!1,alpha:a=!1,antialias:o=!1,premultipliedAlpha:s=!0,preserveDrawingBuffer:c=!1,powerPreference:l=`default`,failIfMajorPerformanceCaveat:u=!1,reversedDepthBuffer:d=!1,outputBufferType:f=ui}=e;this.isWebGLRenderer=!0;let p;if(n!==null){if(typeof WebGLRenderingContext<`u`&&n instanceof WebGLRenderingContext)throw Error(`THREE.WebGLRenderer: WebGL 1 is not supported since r163.`);p=n.getContextAttributes().alpha}else p=a;let m=f,h=new Set([Mi,ji,ki]),g=new Set([ui,hi,pi,bi,vi,yi]),_=new Uint32Array(4),v=new Int32Array(4),y=new z,b=null,x=null,S=[],C=[],w=null;this.domElement=t,this.debug={checkShaderErrors:!0,diagnostics:{keywords:!1},onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.toneMapping=0,this.toneMappingExposure=1,this.transmissionResolutionScale=1;let T=this,E=!1,D=null,O=null,k=null,A=null;this._outputColorSpace=wa;let j=0,ee=0,M=null,te=-1,ne=null,re=new Lo,ie=new Lo,ae=null,oe=new B(0),se=0,ce=t.width,le=t.height,ue=1,de=null,fe=null,pe=new Lo(0,0,ce,le),me=new Lo(0,0,ce,le),he=!1,ge=new xl,_e=!1,ve=!1,ye=new Ho,be=new z,xe=new Lo,Se={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0},Ce=!1;function we(){return M===null?ue:1}let N=n;function Te(e,n){return t.getContext(e,n)}let Ee,P,F,De,Oe,ke,Ae,je,Me,Ne,Pe,Fe,Ie,Le,Re,ze,Be,Ve,He,Ue,We,Ge,Ke;try{let e={alpha:!0,depth:r,stencil:i,antialias:o,premultipliedAlpha:s,preserveDrawingBuffer:c,powerPreference:l,failIfMajorPerformanceCaveat:u};if(`setAttribute`in t&&t.setAttribute(`data-engine`,`three.js r186`),t.addEventListener(`webglcontextlost`,I,!1),t.addEventListener(`webglcontextrestored`,Ye,!1),t.addEventListener(`webglcontextcreationerror`,Xe,!1),N===null){let t=`webgl2`;if(N=Te(t,e),N===null)throw Te(t)?Error(`THREE.WebGLRenderer: Error creating WebGL context with your selected attributes.`):Error(`THREE.WebGLRenderer: Error creating WebGL context.`)}qe()}catch(e){throw t.removeEventListener(`webglcontextlost`,I,!1),t.removeEventListener(`webglcontextrestored`,Ye,!1),t.removeEventListener(`webglcontextcreationerror`,Xe,!1),Ba(`WebGLRenderer: `+e.message),e}function qe(){Ee=new dp(N),Ee.init(),We=new Fh(N,Ee),P=new Bf(N,Ee,e,We),F=new Nh(N,Ee),P.reversedDepthBuffer&&d&&F.buffers.depth.setReversed(!0),O=N.createFramebuffer(),k=N.createFramebuffer(),A=N.createFramebuffer(),De=new mp(N),Oe=new ph,ke=new Ph(N,Ee,F,Oe,P,We,De),Ae=new up(T),je=new jf(N),Ge=new Rf(N,je),Me=new fp(N,je,De,Ge),Ne=new gp(N,Me,je,Ge,De),Ve=new hp(N,P,ke),Re=new Vf(Oe),Pe=new fh(T,Ae,Ee,P,Ge,Re),Fe=new Hh(T,Oe),Ie=new _h,Le=new wh(Ee),Be=new Lf(T,Ae,F,Ne,p,s),ze=new Mh(T,Ne,P),Ke=new Uh(N,De,P,F),He=new zf(N,Ee,De),Ue=new pp(N,Ee,De),De.programs=Pe.programs,T.capabilities=P,T.extensions=Ee,T.properties=Oe,T.renderLists=Ie,T.shadowMap=ze,T.state=F,T.info=De}m!==1009&&(w=new vp(m,t.width,t.height,o,r,i));let Je=new zh(T,N);this.xr=Je,this.getContext=function(){return N},this.getContextAttributes=function(){return N.getContextAttributes()},this.forceContextLoss=function(){let e=Ee.get(`WEBGL_lose_context`);e&&e.loseContext()},this.forceContextRestore=function(){let e=Ee.get(`WEBGL_lose_context`);e&&e.restoreContext()},this.getPixelRatio=function(){return ue},this.setPixelRatio=function(e){e!==void 0&&(ue=e,this.setSize(ce,le,!1))},this.getSize=function(e){return e.set(ce,le)},this.setSize=function(e,n,r=!0){Je.isPresenting?za(`WebGLRenderer: Can't change size while VR device is presenting.`):(ce=e,le=n,t.width=Math.floor(e*ue),t.height=Math.floor(n*ue),r===!0&&(t.style.width=e+`px`,t.style.height=n+`px`),w!==null&&w.setSize(t.width,t.height),this.setViewport(0,0,e,n))},this.getDrawingBufferSize=function(e){return e.set(ce*ue,le*ue).floor()},this.setDrawingBufferSize=function(e,n,r){ce=e,le=n,ue=r,t.width=Math.floor(e*r),t.height=Math.floor(n*r),this.setViewport(0,0,e,n)},this.setEffects=function(e){if(m===1009)Ba(`WebGLRenderer: setEffects() requires outputBufferType set to HalfFloatType or FloatType.`);else{if(e){for(let t=0;t{function n(){r.forEach(function(e){let t=Oe.get(e).currentProgram;(t===void 0||t.isReady())&&r.delete(e)}),r.size===0?t(e):setTimeout(n,10)}Ee.get(`KHR_parallel_shader_compile`)===null?setTimeout(n,10):n()})};let tt=null;function nt(e){tt&&tt(e)}function rt(){at.stop()}function it(){at.start()}let at=new Af;at.setAnimationLoop(nt),typeof self<`u`&&at.setContext(self),this.setAnimationLoop=function(e){tt=e,Je.setAnimationLoop(e),e===null?at.stop():at.start()},Je.addEventListener(`sessionstart`,rt),Je.addEventListener(`sessionend`,it),this.render=function(e,t){if(t!==void 0&&t.isCamera!==!0){Ba(`WebGLRenderer.render: camera is not an instance of THREE.Camera.`);return}if(E===!0)return;D!==null&&D.renderStart(e,t);let n=Je.enabled===!0&&Je.isPresenting===!0,r=w!==null&&(M===null||n)&&w.begin(T,M);if(e.matrixWorldAutoUpdate===!0&&e.updateMatrixWorld(),t.parent===null&&t.matrixWorldAutoUpdate===!0&&t.updateMatrixWorld(),Je.enabled===!0&&Je.isPresenting===!0&&(w===null||w.isCompositing()===!1)&&(Je.cameraAutoUpdate===!0&&Je.updateCamera(t),t=Je.getCamera()),e.isScene===!0&&e.onBeforeRender(T,e,t,M),x=Le.get(e,C.length),x.init(t),x.state.textureUnits=ke.getTextureUnits(),C.push(x),ye.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),ge.setFromProjectionMatrix(ye,ja,t.reversedDepth),ve=this.localClippingEnabled,_e=Re.init(this.clippingPlanes,ve),b=Ie.get(e,S.length),b.init(),S.push(b),Je.enabled===!0&&Je.isPresenting===!0){let e=T.xr.getDepthSensingMesh();e!==null&&ot(e,t,-1/0,T.sortObjects)}ot(e,t,0,T.sortObjects),b.finish(),D!==null&&D.updateLights(x.state.lightsArray),T.sortObjects===!0&&b.sort(de,fe),Ce=Je.enabled===!1||Je.isPresenting===!1||Je.hasDepthSensing()===!1,Ce&&Be.addToRenderList(b,e),this.info.render.frame++,this.info.autoReset===!0&&this.info.reset(),_e===!0&&Re.beginShadows();let i=x.state.shadowsArray;if(ze.render(i,e,t),_e===!0&&Re.endShadows(),(r&&w.hasRenderPass())===!1){let n=b.opaque,r=b.transmissive;if(x.setupLights(),t.isArrayCamera){let i=t.cameras;if(r.length>0)for(let t=0,a=i.length;t0&&ct(n,r,e,t),Ce&&Be.render(e),st(b,e,t)}M!==null&&ee===0&&(ke.updateMultisampleRenderTarget(M),ke.updateRenderTargetMipmap(M)),r&&w.end(T),e.isScene===!0&&e.onAfterRender(T,e,t),Ge.resetDefaultState(),te=-1,ne=null,C.pop(),C.length>0?(x=C[C.length-1],ke.setTextureUnits(x.state.textureUnits),_e===!0&&Re.setGlobalState(T.clippingPlanes,x.state.camera)):x=null,S.pop(),b=S.length>0?S[S.length-1]:null,D!==null&&D.renderEnd()};function ot(e,t,n,r){if(e.visible===!1)return;if(e.layers.test(t.layers)){if(e.isGroup)n=e.renderOrder;else if(e.isLOD)e.autoUpdate===!0&&e.update(t);else if(e.isLightProbeGrid)x.pushLightProbeGrid(e);else if(e.isLight)x.pushLight(e),e.castShadow&&x.pushShadow(e);else if(e.isSprite){if(!e.frustumCulled||e.intersectsFrustum(ge)){r&&xe.setFromMatrixPosition(e.matrixWorld).applyMatrix4(ye);let i=Ne.update(e),a=e.material;a.visible&&b.push(e,i,a,n,xe.z,null,t)}}else if((e.isMesh||e.isLine||e.isPoints)&&(!e.frustumCulled||e.intersectsFrustum(ge))){let i=Ne.update(e),a=e.material;if(r&&(e.boundingSphere===void 0?(i.boundingSphere===null&&i.computeBoundingSphere(),xe.copy(i.boundingSphere.center)):(e.boundingSphere===null&&e.computeBoundingSphere(),xe.copy(e.boundingSphere.center)),xe.applyMatrix4(e.matrixWorld).applyMatrix4(ye)),Array.isArray(a)){let r=i.groups;for(let o=0,s=r.length;o0&<(i,t,n),a.length>0&<(a,t,n),o.length>0&<(o,t,n),F.buffers.depth.setTest(!0),F.buffers.depth.setMask(!0),F.buffers.color.setMask(!0),F.setPolygonOffset(!1)}function ct(e,t,n,r){if((n.isScene===!0?n.overrideMaterial:null)!==null)return;if(x.state.transmissionRenderTarget[r.id]===void 0){let e=Ee.has(`EXT_color_buffer_half_float`)||Ee.has(`EXT_color_buffer_float`);x.state.transmissionRenderTarget[r.id]=new zo(1,1,{generateMipmaps:!0,type:e?_i:ui,minFilter:li,samples:Math.max(4,P.samples),stencilBuffer:i,resolveDepthBuffer:!1,resolveStencilBuffer:!1,storeMultisampledDepthBuffer:!1,storeMultisampledStencilBuffer:!1,colorSpace:Eo.workingColorSpace})}let a=x.state.transmissionRenderTarget[r.id],o=r.viewport||re;a.setSize(o.z*T.transmissionResolutionScale,o.w*T.transmissionResolutionScale);let s=T.getRenderTarget(),c=T.getActiveCubeFace(),l=T.getActiveMipmapLevel();T.setRenderTarget(a),T.getClearColor(oe),se=T.getClearAlpha(),se<1&&T.setClearColor(16777215,.5),T.clear(),Ce&&Be.render(n);let u=T.toneMapping;T.toneMapping=0;let d=r.viewport;if(r.viewport!==void 0&&(r.viewport=void 0),x.setupLightsView(r),_e===!0&&Re.setGlobalState(T.clippingPlanes,r),lt(e,n,r),ke.updateMultisampleRenderTarget(a),ke.updateRenderTargetMipmap(a),Ee.has(`WEBGL_multisampled_render_to_texture`)===!1){let e=!1;for(let i=0,a=t.length;i0,r.currentProgram=d,r.uniformsList=null,d}function ft(e){if(e.uniformsList===null){let t=e.currentProgram.getUniforms();e.uniformsList=Tm.seqWithValue(t.seq,e.uniforms)}return e.uniformsList}function pt(e,t){let n=Oe.get(e);n.outputColorSpace=t.outputColorSpace,n.batching=t.batching,n.batchingColor=t.batchingColor,n.instancing=t.instancing,n.instancingColor=t.instancingColor,n.instancingMorph=t.instancingMorph,n.skinning=t.skinning,n.morphTargets=t.morphTargets,n.morphNormals=t.morphNormals,n.morphColors=t.morphColors,n.morphTargetsCount=t.morphTargetsCount,n.numClippingPlanes=t.numClippingPlanes,n.numIntersection=t.numClipIntersection,n.vertexAlphas=t.vertexAlphas,n.vertexTangents=t.vertexTangents,n.toneMapping=t.toneMapping}function mt(e,t){if(e.length===0)return null;if(e.length===1)return e[0].texture===null?null:e[0];y.setFromMatrixPosition(t.matrixWorld);for(let t=0,n=e.length;t0),f=!!n.morphAttributes.position,p=!!n.morphAttributes.normal,m=!!n.morphAttributes.color,h=0;r.toneMapped&&(M===null||M.isXRRenderTarget===!0)&&(h=T.toneMapping);let g=n.morphAttributes.position||n.morphAttributes.normal||n.morphAttributes.color,_=g===void 0?0:g.length,v=Oe.get(r),y=x.state.lights;if(_e===!0&&(ve===!0||e!==ne)){let t=e===ne&&r.id===te;Re.setState(r,e,t)}let b=!1;r.version===v.__version?v.needsLights&&v.lightsStateVersion!==y.state.version?b=!0:v.outputColorSpace===s?i.isBatchedMesh&&v.batching===!1||!i.isBatchedMesh&&v.batching===!0||i.isBatchedMesh&&v.batchingColor===!0&&i._colorsTexture===null||i.isBatchedMesh&&v.batchingColor===!1&&i._colorsTexture!==null||i.isInstancedMesh&&v.instancing===!1||!i.isInstancedMesh&&v.instancing===!0||i.isSkinnedMesh&&v.skinning===!1||!i.isSkinnedMesh&&v.skinning===!0||i.isInstancedMesh&&v.instancingColor===!0&&i.instanceColor===null||i.isInstancedMesh&&v.instancingColor===!1&&i.instanceColor!==null||i.isInstancedMesh&&v.instancingMorph===!0&&i.morphTexture===null||i.isInstancedMesh&&v.instancingMorph===!1&&i.morphTexture!==null?b=!0:v.envMap===l?r.fog===!0&&v.fog!==a||v.numClippingPlanes!==void 0&&(v.numClippingPlanes!==Re.numPlanes||v.numIntersection!==Re.numIntersection)?b=!0:v.vertexAlphas===u&&v.vertexTangents===d&&v.morphTargets===f&&v.morphNormals===p&&v.morphColors===m&&v.toneMapping===h&&v.morphTargetsCount===_?!!v.lightProbeGrid!=x.state.lightProbeGridArray.length>0&&(b=!0):b=!0:b=!0:b=!0:(b=!0,v.__version=r.version);let S=v.currentProgram;b===!0&&(S=dt(r,t,i),D&&r.isNodeMaterial&&D.onUpdateProgram(r,S,v));let C=!1,w=!1,E=!1,O=S.getUniforms(),k=v.uniforms;if(F.useProgram(S.program)&&(C=!0,w=!0,E=!0),r.id!==te&&(te=r.id,w=!0),v.needsLights){let e=mt(x.state.lightProbeGridArray,i);v.lightProbeGrid!==e&&(v.lightProbeGrid=e,w=!0)}if(C||ne!==e){F.buffers.depth.getReversed()&&e.reversedDepth!==!0&&(e._reversedDepth=!0,e.updateProjectionMatrix()),O.setValue(N,`projectionMatrix`,e.projectionMatrix),O.setValue(N,`viewMatrix`,e.matrixWorldInverse);let t=O.map.cameraPosition;t!==void 0&&t.setValue(N,be.setFromMatrixPosition(e.matrixWorld)),P.logarithmicDepthBuffer&&O.setValue(N,`logDepthBufFC`,2/(Math.log(e.far+1)/Math.LN2)),(r.isMeshPhongMaterial||r.isMeshToonMaterial||r.isMeshLambertMaterial||r.isMeshBasicMaterial||r.isMeshStandardMaterial||r.isShaderMaterial)&&O.setValue(N,`isOrthographic`,e.isOrthographicCamera===!0),ne!==e&&(ne=e,w=!0,E=!0)}if(v.needsLights&&(y.state.sunShadowMap.length>0&&O.setValue(N,`sunShadowMap`,y.state.sunShadowMap,ke),y.state.directionalShadowMap.length>0&&O.setValue(N,`directionalShadowMap`,y.state.directionalShadowMap,ke),y.state.spotShadowMap.length>0&&O.setValue(N,`spotShadowMap`,y.state.spotShadowMap,ke),y.state.pointShadowMap.length>0&&O.setValue(N,`pointShadowMap`,y.state.pointShadowMap,ke)),i.isSkinnedMesh){O.setOptional(N,i,`bindMatrix`),O.setOptional(N,i,`bindMatrixInverse`);let e=i.skeleton;e&&(e.boneTexture===null&&e.computeBoneTexture(),O.setValue(N,`boneTexture`,e.boneTexture,ke))}i.isBatchedMesh&&(O.setOptional(N,i,`batchingTexture`),O.setValue(N,`batchingTexture`,i._matricesTexture,ke),O.setOptional(N,i,`batchingIdTexture`),O.setValue(N,`batchingIdTexture`,i._indirectTexture,ke),O.setOptional(N,i,`batchingColorTexture`),i._colorsTexture!==null&&O.setValue(N,`batchingColorTexture`,i._colorsTexture,ke));let A=n.morphAttributes;if((A.position!==void 0||A.normal!==void 0||A.color!==void 0)&&Ve.update(i,n,S),(w||v.receiveShadow!==i.receiveShadow)&&(v.receiveShadow=i.receiveShadow,O.setValue(N,`receiveShadow`,i.receiveShadow)),(r.isMeshStandardMaterial||r.isMeshLambertMaterial||r.isMeshPhongMaterial)&&r.envMap===null&&t.environment!==null&&(k.envMapIntensity.value=t.environmentIntensity),k.dfgLUT!==void 0&&(k.dfgLUT.value=Kh()),w){if(O.setValue(N,`toneMappingExposure`,T.toneMappingExposure),v.needsLights&>(k,E),a&&r.fog===!0&&Fe.refreshFogUniforms(k,a),Fe.refreshMaterialUniforms(k,r,ue,le,x.state.transmissionRenderTarget[e.id]),v.needsLights&&v.lightProbeGrid){let e=v.lightProbeGrid;k.probesSH.value=e.texture,k.probesMin.value.copy(e.boundingBox.min),k.probesMax.value.copy(e.boundingBox.max),k.probesResolution.value.copy(e.resolution)}Tm.upload(N,ft(v),k,ke)}if(r.isShaderMaterial&&r.uniformsNeedUpdate===!0&&(Tm.upload(N,ft(v),k,ke),r.uniformsNeedUpdate=!1),r.isSpriteMaterial&&O.setValue(N,`center`,i.center),O.setValue(N,`modelViewMatrix`,i.modelViewMatrix),O.setValue(N,`normalMatrix`,i.normalMatrix),O.setValue(N,`modelMatrix`,i.matrixWorld),r.uniformsGroups!==void 0){let e=r.uniformsGroups;for(let t=0,n=e.length;t0&&ke.useMultisampledRTT(e)===!1?Oe.get(e).__webglMultisampledFramebuffer:Array.isArray(c)?c[n]:c,re.copy(e.viewport),ie.copy(e.scissor),ae=e.scissorTest}else re.copy(pe).multiplyScalar(ue).floor(),ie.copy(me).multiplyScalar(ue).floor(),ae=he;if(n!==0&&(r=O),F.bindFramebuffer(N.FRAMEBUFFER,r)&&F.drawBuffers(e,r),F.viewport(re),F.scissor(ie),F.setScissorTest(ae),i){let r=Oe.get(e.texture);N.framebufferTexture2D(N.FRAMEBUFFER,N.COLOR_ATTACHMENT0,N.TEXTURE_CUBE_MAP_POSITIVE_X+t,r.__webglTexture,n)}else if(a){let r=t;for(let t=0;t1&&N.readBuffer(N.COLOR_ATTACHMENT0+s);let u=vt(o);if(u.__formatReadable===!1){Ba(`WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.`);return}if(u.__typeReadable===!1){Ba(`WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.`);return}t>=0&&t<=e.width-r&&n>=0&&n<=e.height-i&&N.readPixels(t,n,r,i,We.convert(c),We.convert(l),a)}finally{let e=M===null?null:Oe.get(M).__webglFramebuffer;F.bindFramebuffer(N.FRAMEBUFFER,e)}}},this.readRenderTargetPixelsAsync=async function(e,t,n,r,i,a,o,s=0){if(!(e&&e.isWebGLRenderTarget))throw Error(`THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.`);let c=Oe.get(e).__webglFramebuffer;if(e.isWebGLCubeRenderTarget&&o!==void 0&&(c=c[o]),c){if(t>=0&&t<=e.width-r&&n>=0&&n<=e.height-i){F.bindFramebuffer(N.FRAMEBUFFER,c);let o=e.textures[s],l=o.format,u=o.type;e.textures.length>1&&N.readBuffer(N.COLOR_ATTACHMENT0+s);let d=vt(o);if(d.__formatReadable===!1)throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.`);if(d.__typeReadable===!1)throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.`);let f=N.createBuffer();N.bindBuffer(N.PIXEL_PACK_BUFFER,f),N.bufferData(N.PIXEL_PACK_BUFFER,a.byteLength,N.STREAM_READ),N.readPixels(t,n,r,i,We.convert(l),We.convert(u),0),N.bindBuffer(N.PIXEL_PACK_BUFFER,null);let p=M===null?null:Oe.get(M).__webglFramebuffer;F.bindFramebuffer(N.FRAMEBUFFER,p);let m=N.fenceSync(N.SYNC_GPU_COMMANDS_COMPLETE,0);return N.flush(),await Ha(N,m,4),N.bindBuffer(N.PIXEL_PACK_BUFFER,f),N.getBufferSubData(N.PIXEL_PACK_BUFFER,0,a),N.bindBuffer(N.PIXEL_PACK_BUFFER,null),N.deleteBuffer(f),N.deleteSync(m),a}throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: requested read bounds are out of range.`)}},this.copyFramebufferToTexture=function(e,t=null,n=0){let r=2**-n,i=Math.floor(e.image.width*r),a=Math.floor(e.image.height*r),o=t===null?0:t.x,s=t===null?0:t.y;ke.setTexture2D(e,0),N.copyTexSubImage2D(N.TEXTURE_2D,n,0,0,o,s,i,a),F.unbindTexture()},this.copyTextureToTexture=function(e,t,n=null,r=null,i=0,a=0){let o,s,c,l,u,d,f,p,m,h=e.isCompressedTexture?e.mipmaps[a]:e.image;if(n!==null)o=n.max.x-n.min.x,s=n.max.y-n.min.y,c=n.isBox3?n.max.z-n.min.z:1,l=n.min.x,u=n.min.y,d=n.isBox3?n.min.z:0;else{let t=2**-i;o=Math.floor(h.width*t),s=Math.floor(h.height*t),c=e.isDataArrayTexture?h.depth:e.isData3DTexture?Math.floor(h.depth*t):1,l=0,u=0,d=0}r===null?(f=0,p=0,m=0):(f=r.x,p=r.y,m=r.z);let g=We.convert(t.format),_=We.convert(t.type),v;t.isData3DTexture?(ke.setTexture3D(t,0),v=N.TEXTURE_3D):t.isDataArrayTexture||t.isCompressedArrayTexture?(ke.setTexture2DArray(t,0),v=N.TEXTURE_2D_ARRAY):(ke.setTexture2D(t,0),v=N.TEXTURE_2D),F.activeTexture(N.TEXTURE0),F.pixelStorei(N.UNPACK_FLIP_Y_WEBGL,t.flipY),F.pixelStorei(N.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.premultiplyAlpha),F.pixelStorei(N.UNPACK_ALIGNMENT,t.unpackAlignment);let y=F.getParameter(N.UNPACK_ROW_LENGTH),b=F.getParameter(N.UNPACK_IMAGE_HEIGHT),x=F.getParameter(N.UNPACK_SKIP_PIXELS),S=F.getParameter(N.UNPACK_SKIP_ROWS),C=F.getParameter(N.UNPACK_SKIP_IMAGES);F.pixelStorei(N.UNPACK_ROW_LENGTH,h.width),F.pixelStorei(N.UNPACK_IMAGE_HEIGHT,h.height),F.pixelStorei(N.UNPACK_SKIP_PIXELS,l),F.pixelStorei(N.UNPACK_SKIP_ROWS,u),F.pixelStorei(N.UNPACK_SKIP_IMAGES,d);let w=e.isDataArrayTexture||e.isData3DTexture,T=t.isDataArrayTexture||t.isData3DTexture;if(e.isDepthTexture){let n=Oe.get(e),r=Oe.get(t),h=Oe.get(n.__renderTarget),g=Oe.get(r.__renderTarget);F.bindFramebuffer(N.READ_FRAMEBUFFER,h.__webglFramebuffer),F.bindFramebuffer(N.DRAW_FRAMEBUFFER,g.__webglFramebuffer);for(let n=0;n{let r=new e.array.constructor(e.count*e.itemSize);l[n][t]=new e.constructor(r,e.itemSize,e.normalized)}))}let p=t*.5,m=10**Math.log10(1/t),h=p*m;for(let t=0;t=0&&(x[r]=null,b[r].disconnect(n))}for(let t=0;t=x.length){x.push(n),r=e;break}else if(x[e]===null){x[e]=n,r=e;break}if(r===-1)break}let i=b[r];i&&i.connect(n)}}let ne=new B,re=new B;function ie(e,t,n){ne.setFromMatrixPosition(t.matrixWorld),re.setFromMatrixPosition(n.matrixWorld);let r=ne.distanceTo(re),i=t.projectionMatrix.elements,a=n.projectionMatrix.elements,o=i[14]/(i[10]-1),s=i[14]/(i[10]+1),c=(i[9]+1)/i[5],l=(i[9]-1)/i[5],u=(i[8]-1)/i[0],d=(a[8]+1)/a[0],f=o*u,p=o*d,m=r/(-u+d),h=m*-u;if(t.matrixWorld.decompose(e.position,e.quaternion,e.scale),e.translateX(h),e.translateZ(m),e.matrixWorld.compose(e.position,e.quaternion,e.scale),e.matrixWorldInverse.copy(e.matrixWorld).invert(),i[10]===-1)e.projectionMatrix.copy(t.projectionMatrix),e.projectionMatrixInverse.copy(t.projectionMatrixInverse);else{let t=o+m,n=s+m,i=f-h,a=p+(r-h),u=c*s/n*t,d=l*s/n*t;e.projectionMatrix.makePerspective(i,a,u,d,t,n),e.projectionMatrixInverse.copy(e.projectionMatrix).invert()}}function M(e,t){t===null?e.matrixWorld.copy(e.matrix):e.matrixWorld.multiplyMatrices(t.matrixWorld,e.matrix),e.matrixWorldInverse.copy(e.matrixWorld).invert()}this.updateCamera=function(e){if(r===null)return;let t=e.near,n=e.far;h.texture!==null&&(h.depthNear>0&&(t=h.depthNear),h.depthFar>0&&(n=h.depthFar)),O.near=E.near=T.near=t,O.far=E.far=T.far=n,(k!==O.near||ee!==O.far)&&(r.updateRenderState({depthNear:O.near,depthFar:O.far}),k=O.near,ee=O.far),O.layers.mask=e.layers.mask|6,T.layers.mask=O.layers.mask&-5,E.layers.mask=O.layers.mask&-3;let i=e.parent,a=O.cameras;M(O,i);for(let e=0;e0&&(e.alphaTest.value=r.alphaTest);let i=t.get(r),a=i.envMap,o=i.envMapRotation;a&&(e.envMap.value=a,e.envMapRotation.value.setFromMatrix4(Tg.makeRotationFromEuler(o)).transpose(),a.isCubeTexture&&a.isRenderTargetTexture===!1&&e.envMapRotation.value.premultiply(Eg),e.reflectivity.value=r.reflectivity,e.ior.value=r.ior,e.refractionRatio.value=r.refractionRatio),r.lightMap&&(e.lightMap.value=r.lightMap,e.lightMapIntensity.value=r.lightMapIntensity,n(r.lightMap,e.lightMapTransform)),r.aoMap&&(e.aoMap.value=r.aoMap,e.aoMapIntensity.value=r.aoMapIntensity,n(r.aoMap,e.aoMapTransform))}function o(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform))}function s(e,t){e.dashSize.value=t.dashSize,e.totalSize.value=t.dashSize+t.gapSize,e.scale.value=t.scale}function c(e,t,r,i){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.size.value=t.size*r,e.scale.value=i*.5,t.map&&(e.map.value=t.map,n(t.map,e.uvTransform)),t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform)),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}function l(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.rotation.value=t.rotation,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform)),t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform)),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}function u(e,t){e.specular.value.copy(t.specular),e.shininess.value=Math.max(t.shininess,1e-4)}function d(e,t){t.gradientMap&&(e.gradientMap.value=t.gradientMap)}function f(e,t){e.metalness.value=t.metalness,t.metalnessMap&&(e.metalnessMap.value=t.metalnessMap,n(t.metalnessMap,e.metalnessMapTransform)),e.roughness.value=t.roughness,t.roughnessMap&&(e.roughnessMap.value=t.roughnessMap,n(t.roughnessMap,e.roughnessMapTransform)),t.envMap&&(e.envMapIntensity.value=t.envMapIntensity)}function p(e,t,r){e.ior.value=t.ior,t.sheen>0&&(e.sheenColor.value.copy(t.sheenColor).multiplyScalar(t.sheen),e.sheenRoughness.value=t.sheenRoughness,t.sheenColorMap&&(e.sheenColorMap.value=t.sheenColorMap,n(t.sheenColorMap,e.sheenColorMapTransform)),t.sheenRoughnessMap&&(e.sheenRoughnessMap.value=t.sheenRoughnessMap,n(t.sheenRoughnessMap,e.sheenRoughnessMapTransform))),t.clearcoat>0&&(e.clearcoat.value=t.clearcoat,e.clearcoatRoughness.value=t.clearcoatRoughness,t.clearcoatMap&&(e.clearcoatMap.value=t.clearcoatMap,n(t.clearcoatMap,e.clearcoatMapTransform)),t.clearcoatRoughnessMap&&(e.clearcoatRoughnessMap.value=t.clearcoatRoughnessMap,n(t.clearcoatRoughnessMap,e.clearcoatRoughnessMapTransform)),t.clearcoatNormalMap&&(e.clearcoatNormalMap.value=t.clearcoatNormalMap,n(t.clearcoatNormalMap,e.clearcoatNormalMapTransform),e.clearcoatNormalScale.value.copy(t.clearcoatNormalScale),t.side===1&&e.clearcoatNormalScale.value.negate())),t.dispersion>0&&(e.dispersion.value=t.dispersion),t.retroreflectivity>0&&(e.retroreflectivity.value=t.retroreflectivity),t.iridescence>0&&(e.iridescence.value=t.iridescence,e.iridescenceIOR.value=t.iridescenceIOR,e.iridescenceThicknessMinimum.value=t.iridescenceThicknessRange[0],e.iridescenceThicknessMaximum.value=t.iridescenceThicknessRange[1],t.iridescenceMap&&(e.iridescenceMap.value=t.iridescenceMap,n(t.iridescenceMap,e.iridescenceMapTransform)),t.iridescenceThicknessMap&&(e.iridescenceThicknessMap.value=t.iridescenceThicknessMap,n(t.iridescenceThicknessMap,e.iridescenceThicknessMapTransform))),t.transmission>0&&(e.transmission.value=t.transmission,e.transmissionSamplerMap.value=r.texture,e.transmissionSamplerSize.value.set(r.width,r.height),t.transmissionMap&&(e.transmissionMap.value=t.transmissionMap,n(t.transmissionMap,e.transmissionMapTransform)),e.thickness.value=t.thickness,t.thicknessMap&&(e.thicknessMap.value=t.thicknessMap,n(t.thicknessMap,e.thicknessMapTransform)),e.attenuationDistance.value=t.attenuationDistance,e.attenuationColor.value.copy(t.attenuationColor)),t.anisotropy>0&&(e.anisotropyVector.value.set(t.anisotropy*Math.cos(t.anisotropyRotation),t.anisotropy*Math.sin(t.anisotropyRotation)),t.anisotropyMap&&(e.anisotropyMap.value=t.anisotropyMap,n(t.anisotropyMap,e.anisotropyMapTransform))),e.specularIntensity.value=t.specularIntensity,e.specularColor.value.copy(t.specularColor),t.specularColorMap&&(e.specularColorMap.value=t.specularColorMap,n(t.specularColorMap,e.specularColorMapTransform)),t.specularIntensityMap&&(e.specularIntensityMap.value=t.specularIntensityMap,n(t.specularIntensityMap,e.specularIntensityMapTransform))}function m(e,t){t.matcap&&(e.matcap.value=t.matcap)}function h(e,n){let r=t.get(n).light;e.referencePosition.value.setFromMatrixPosition(r.matrixWorld),e.nearDistance.value=r.shadow.camera.near,e.farDistance.value=r.shadow.camera.far}return{refreshFogUniforms:r,refreshMaterialUniforms:i}}function Og(e,t,n,r){let i={},a={},o=[],s=e.getParameter(e.MAX_UNIFORM_BUFFER_BINDINGS);function c(e,t){let n=t.program;r.uniformBlockBinding(e,n)}function l(e,n){let o=i[e.id];o===void 0&&(g(e),o=u(e),i[e.id]=o,e.addEventListener(`dispose`,v));let s=n.program;r.updateUBOMapping(e,s);let c=t.render.frame;a[e.id]!==c&&(f(e),a[e.id]=c)}function u(t){let n=d();t.__bindingPointIndex=n;let r=e.createBuffer(),i=t.__size,a=t.usage;return e.bindBuffer(e.UNIFORM_BUFFER,r),e.bufferData(e.UNIFORM_BUFFER,i,a),e.bindBuffer(e.UNIFORM_BUFFER,null),e.bindBufferBase(e.UNIFORM_BUFFER,n,r),r}function d(){for(let e=0;e0&&(n+=16-r),e.__size=n,e.__cache={},this}function _(e){let t={boundary:0,storage:0};return typeof e==`number`||typeof e==`boolean`?(t.boundary=4,t.storage=4):e.isVector2?(t.boundary=8,t.storage=8):e.isVector3||e.isColor?(t.boundary=16,t.storage=12):e.isVector4?(t.boundary=16,t.storage=16):e.isMatrix3?(t.boundary=48,t.storage=48):e.isMatrix4?(t.boundary=64,t.storage=64):e.isTexture?To(`WebGLRenderer: Texture samplers can not be part of an uniforms group.`):ArrayBuffer.isView(e)?(t.boundary=16,t.storage=e.byteLength):To(`WebGLRenderer: Unsupported uniform value type.`,e),t}function v(t){let n=t.target;n.removeEventListener(`dispose`,v);let r=o.indexOf(n.__bindingPointIndex);o.splice(r,1),e.deleteBuffer(i[n.id]),delete i[n.id],delete a[n.id]}function y(){for(let t in i)e.deleteBuffer(i[t]);o=[],i={},a={}}return{bind:c,update:l,dispose:y}}var kg=new Uint16Array([12469,15057,12620,14925,13266,14620,13807,14376,14323,13990,14545,13625,14713,13328,14840,12882,14931,12528,14996,12233,15039,11829,15066,11525,15080,11295,15085,10976,15082,10705,15073,10495,13880,14564,13898,14542,13977,14430,14158,14124,14393,13732,14556,13410,14702,12996,14814,12596,14891,12291,14937,11834,14957,11489,14958,11194,14943,10803,14921,10506,14893,10278,14858,9960,14484,14039,14487,14025,14499,13941,14524,13740,14574,13468,14654,13106,14743,12678,14818,12344,14867,11893,14889,11509,14893,11180,14881,10751,14852,10428,14812,10128,14765,9754,14712,9466,14764,13480,14764,13475,14766,13440,14766,13347,14769,13070,14786,12713,14816,12387,14844,11957,14860,11549,14868,11215,14855,10751,14825,10403,14782,10044,14729,9651,14666,9352,14599,9029,14967,12835,14966,12831,14963,12804,14954,12723,14936,12564,14917,12347,14900,11958,14886,11569,14878,11247,14859,10765,14828,10401,14784,10011,14727,9600,14660,9289,14586,8893,14508,8533,15111,12234,15110,12234,15104,12216,15092,12156,15067,12010,15028,11776,14981,11500,14942,11205,14902,10752,14861,10393,14812,9991,14752,9570,14682,9252,14603,8808,14519,8445,14431,8145,15209,11449,15208,11451,15202,11451,15190,11438,15163,11384,15117,11274,15055,10979,14994,10648,14932,10343,14871,9936,14803,9532,14729,9218,14645,8742,14556,8381,14461,8020,14365,7603,15273,10603,15272,10607,15267,10619,15256,10631,15231,10614,15182,10535,15118,10389,15042,10167,14963,9787,14883,9447,14800,9115,14710,8665,14615,8318,14514,7911,14411,7507,14279,7198,15314,9675,15313,9683,15309,9712,15298,9759,15277,9797,15229,9773,15166,9668,15084,9487,14995,9274,14898,8910,14800,8539,14697,8234,14590,7790,14479,7409,14367,7067,14178,6621,15337,8619,15337,8631,15333,8677,15325,8769,15305,8871,15264,8940,15202,8909,15119,8775,15022,8565,14916,8328,14804,8009,14688,7614,14569,7287,14448,6888,14321,6483,14088,6171,15350,7402,15350,7419,15347,7480,15340,7613,15322,7804,15287,7973,15229,8057,15148,8012,15046,7846,14933,7611,14810,7357,14682,7069,14552,6656,14421,6316,14251,5948,14007,5528,15356,5942,15356,5977,15353,6119,15348,6294,15332,6551,15302,6824,15249,7044,15171,7122,15070,7050,14949,6861,14818,6611,14679,6349,14538,6067,14398,5651,14189,5311,13935,4958,15359,4123,15359,4153,15356,4296,15353,4646,15338,5160,15311,5508,15263,5829,15188,6042,15088,6094,14966,6001,14826,5796,14678,5543,14527,5287,14377,4985,14133,4586,13869,4257,15360,1563,15360,1642,15358,2076,15354,2636,15341,3350,15317,4019,15273,4429,15203,4732,15105,4911,14981,4932,14836,4818,14679,4621,14517,4386,14359,4156,14083,3795,13808,3437,15360,122,15360,137,15358,285,15355,636,15344,1274,15322,2177,15281,2765,15215,3223,15120,3451,14995,3569,14846,3567,14681,3466,14511,3305,14344,3121,14037,2800,13753,2467,15360,0,15360,1,15359,21,15355,89,15346,253,15325,479,15287,796,15225,1148,15133,1492,15008,1749,14856,1882,14685,1886,14506,1783,14324,1608,13996,1398,13702,1183]),Ag=null;function jg(){return Ag===null&&(Ag=new Wl(kg,16,16,ha,na),Ag.name=`DFG_LUT`,Ag.minFilter=Ki,Ag.magFilter=Ki,Ag.wrapS=Vi,Ag.wrapT=Vi,Ag.generateMipmaps=!1,Ag.needsUpdate=!0),Ag}var Mg=class{constructor(e={}){let{canvas:t=xo(),context:n=null,depth:r=!0,stencil:i=!1,alpha:a=!1,antialias:o=!1,premultipliedAlpha:s=!0,preserveDrawingBuffer:c=!1,powerPreference:l=`default`,failIfMajorPerformanceCaveat:u=!1,reversedDepthBuffer:d=!1,outputBufferType:f=Yi}=e;this.isWebGLRenderer=!0;let p;if(n!==null){if(typeof WebGLRenderingContext<`u`&&n instanceof WebGLRenderingContext)throw Error(`THREE.WebGLRenderer: WebGL 1 is not supported since r163.`);p=n.getContextAttributes().alpha}else p=a;let m=f,h=new Set([_a,ga,ma]),g=new Set([Yi,ea,Qi,aa,ra,ia]),_=new Uint32Array(4),v=new Int32Array(4),y=new B,b=null,x=null,S=[],C=[],w=null;this.domElement=t,this.debug={checkShaderErrors:!0,diagnostics:{keywords:!1},onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.toneMapping=0,this.toneMappingExposure=1,this.transmissionResolutionScale=1;let T=this,E=!1,D=null,O=null,k=null,ee=null;this._outputColorSpace=lo;let A=0,te=0,j=null,ne=-1,re=null,ie=new Ss,M=new Ss,N=null,ae=new V(0),oe=0,se=t.width,ce=t.height,le=1,ue=null,de=null,fe=new Ss(0,0,se,ce),pe=new Ss(0,0,se,ce),me=!1,he=new ou,ge=!1,_e=!1,ve=new Ds,ye=new B,be=new Ss,xe={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0},Se=!1;function Ce(){return j===null?le:1}let P=n;function we(e,n){return t.getContext(e,n)}let Te,F,I,Ee,De,Oe,ke,Ae,je,Me,Ne,Pe,Fe,Ie,Le,Re,ze,Be,Ve,He,Ue,We,Ge;try{let e={alpha:!0,depth:r,stencil:i,antialias:o,premultipliedAlpha:s,preserveDrawingBuffer:c,powerPreference:l,failIfMajorPerformanceCaveat:u};if(`setAttribute`in t&&t.setAttribute(`data-engine`,`three.js r186`),t.addEventListener(`webglcontextlost`,Je,!1),t.addEventListener(`webglcontextrestored`,Ye,!1),t.addEventListener(`webglcontextcreationerror`,Xe,!1),P===null){let t=`webgl2`;if(P=we(t,e),P===null)throw we(t)?Error(`THREE.WebGLRenderer: Error creating WebGL context with your selected attributes.`):Error(`THREE.WebGLRenderer: Error creating WebGL context.`)}Ke()}catch(e){throw t.removeEventListener(`webglcontextlost`,Je,!1),t.removeEventListener(`webglcontextrestored`,Ye,!1),t.removeEventListener(`webglcontextcreationerror`,Xe,!1),Eo(`WebGLRenderer: `+e.message),e}function Ke(){Te=new Xp(P),Te.init(),Ue=new bg(P,Te),F=new Tp(P,Te,e,Ue),I=new vg(P,Te),F.reversedDepthBuffer&&d&&I.buffers.depth.setReversed(!0),O=P.createFramebuffer(),k=P.createFramebuffer(),ee=P.createFramebuffer(),Ee=new $p(P),De=new Qh,Oe=new yg(P,Te,I,De,F,Ue,Ee),ke=new Yp(T),Ae=new gp(P),We=new Cp(P,Ae),je=new Zp(P,Ae,Ee,We),Me=new tm(P,je,Ae,We,Ee),Be=new em(P,F,Oe),Le=new Ep(De),Ne=new Zh(T,ke,Te,F,We,Le),Pe=new Dg(T,De),Fe=new ng,Ie=new lg(Te),ze=new Sp(T,ke,I,Me,p,s),Re=new _g(T,Me,F),Ge=new Og(P,Ee,F,I),Ve=new wp(P,Te,Ee),He=new Qp(P,Te,Ee),Ee.programs=Ne.programs,T.capabilities=F,T.extensions=Te,T.properties=De,T.renderLists=Fe,T.shadowMap=Re,T.state=I,T.info=Ee}m!==1009&&(w=new rm(m,t.width,t.height,o,r,i));let qe=new wg(T,P);this.xr=qe,this.getContext=function(){return P},this.getContextAttributes=function(){return P.getContextAttributes()},this.forceContextLoss=function(){let e=Te.get(`WEBGL_lose_context`);e&&e.loseContext()},this.forceContextRestore=function(){let e=Te.get(`WEBGL_lose_context`);e&&e.restoreContext()},this.getPixelRatio=function(){return le},this.setPixelRatio=function(e){e!==void 0&&(le=e,this.setSize(se,ce,!1))},this.getSize=function(e){return e.set(se,ce)},this.setSize=function(e,n,r=!0){qe.isPresenting?To(`WebGLRenderer: Can't change size while VR device is presenting.`):(se=e,ce=n,t.width=Math.floor(e*le),t.height=Math.floor(n*le),r===!0&&(t.style.width=e+`px`,t.style.height=n+`px`),w!==null&&w.setSize(t.width,t.height),this.setViewport(0,0,e,n))},this.getDrawingBufferSize=function(e){return e.set(se*le,ce*le).floor()},this.setDrawingBufferSize=function(e,n,r){se=e,ce=n,le=r,t.width=Math.floor(e*r),t.height=Math.floor(n*r),this.setViewport(0,0,e,n)},this.setEffects=function(e){if(m===1009)Eo(`WebGLRenderer: setEffects() requires outputBufferType set to HalfFloatType or FloatType.`);else{if(e){for(let t=0;t{function n(){r.forEach(function(e){let t=De.get(e).currentProgram;(t===void 0||t.isReady())&&r.delete(e)}),r.size===0?t(e):setTimeout(n,10)}Te.get(`KHR_parallel_shader_compile`)===null?setTimeout(n,10):n()})};let tt=null;function nt(e){tt&&tt(e)}function rt(){at.stop()}function it(){at.start()}let at=new hp;at.setAnimationLoop(nt),typeof self<`u`&&at.setContext(self),this.setAnimationLoop=function(e){tt=e,qe.setAnimationLoop(e),e===null?at.stop():at.start()},qe.addEventListener(`sessionstart`,rt),qe.addEventListener(`sessionend`,it),this.render=function(e,t){if(t!==void 0&&t.isCamera!==!0){Eo(`WebGLRenderer.render: camera is not an instance of THREE.Camera.`);return}if(E===!0)return;D!==null&&D.renderStart(e,t);let n=qe.enabled===!0&&qe.isPresenting===!0,r=w!==null&&(j===null||n)&&w.begin(T,j);if(e.matrixWorldAutoUpdate===!0&&e.updateMatrixWorld(),t.parent===null&&t.matrixWorldAutoUpdate===!0&&t.updateMatrixWorld(),qe.enabled===!0&&qe.isPresenting===!0&&(w===null||w.isCompositing()===!1)&&(qe.cameraAutoUpdate===!0&&qe.updateCamera(t),t=qe.getCamera()),e.isScene===!0&&e.onBeforeRender(T,e,t,j),x=Ie.get(e,C.length),x.init(t),x.state.textureUnits=Oe.getTextureUnits(),C.push(x),ve.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),he.setFromProjectionMatrix(ve,_o,t.reversedDepth),_e=this.localClippingEnabled,ge=Le.init(this.clippingPlanes,_e),b=Fe.get(e,S.length),b.init(),S.push(b),qe.enabled===!0&&qe.isPresenting===!0){let e=T.xr.getDepthSensingMesh();e!==null&&ot(e,t,-1/0,T.sortObjects)}ot(e,t,0,T.sortObjects),b.finish(),D!==null&&D.updateLights(x.state.lightsArray),T.sortObjects===!0&&b.sort(ue,de),Se=qe.enabled===!1||qe.isPresenting===!1||qe.hasDepthSensing()===!1,Se&&ze.addToRenderList(b,e),this.info.render.frame++,this.info.autoReset===!0&&this.info.reset(),ge===!0&&Le.beginShadows();let i=x.state.shadowsArray;if(Re.render(i,e,t),ge===!0&&Le.endShadows(),(r&&w.hasRenderPass())===!1){let n=b.opaque,r=b.transmissive;if(x.setupLights(),t.isArrayCamera){let i=t.cameras;if(r.length>0)for(let t=0,a=i.length;t0&&ct(n,r,e,t),Se&&ze.render(e),st(b,e,t)}j!==null&&te===0&&(Oe.updateMultisampleRenderTarget(j),Oe.updateRenderTargetMipmap(j)),r&&w.end(T),e.isScene===!0&&e.onAfterRender(T,e,t),We.resetDefaultState(),ne=-1,re=null,C.pop(),C.length>0?(x=C[C.length-1],Oe.setTextureUnits(x.state.textureUnits),ge===!0&&Le.setGlobalState(T.clippingPlanes,x.state.camera)):x=null,S.pop(),b=S.length>0?S[S.length-1]:null,D!==null&&D.renderEnd()};function ot(e,t,n,r){if(e.visible===!1)return;if(e.layers.test(t.layers)){if(e.isGroup)n=e.renderOrder;else if(e.isLOD)e.autoUpdate===!0&&e.update(t);else if(e.isLightProbeGrid)x.pushLightProbeGrid(e);else if(e.isLight)x.pushLight(e),e.castShadow&&x.pushShadow(e);else if(e.isSprite){if(!e.frustumCulled||e.intersectsFrustum(he)){r&&be.setFromMatrixPosition(e.matrixWorld).applyMatrix4(ve);let i=Me.update(e),a=e.material;a.visible&&b.push(e,i,a,n,be.z,null,t)}}else if((e.isMesh||e.isLine||e.isPoints)&&(!e.frustumCulled||e.intersectsFrustum(he))){let i=Me.update(e),a=e.material;if(r&&(e.boundingSphere===void 0?(i.boundingSphere===null&&i.computeBoundingSphere(),be.copy(i.boundingSphere.center)):(e.boundingSphere===null&&e.computeBoundingSphere(),be.copy(e.boundingSphere.center)),be.applyMatrix4(e.matrixWorld).applyMatrix4(ve)),Array.isArray(a)){let r=i.groups;for(let o=0,s=r.length;o0&<(i,t,n),a.length>0&<(a,t,n),o.length>0&<(o,t,n),I.buffers.depth.setTest(!0),I.buffers.depth.setMask(!0),I.buffers.color.setMask(!0),I.setPolygonOffset(!1)}function ct(e,t,n,r){if((n.isScene===!0?n.overrideMaterial:null)!==null)return;if(x.state.transmissionRenderTarget[r.id]===void 0){let e=Te.has(`EXT_color_buffer_half_float`)||Te.has(`EXT_color_buffer_float`);x.state.transmissionRenderTarget[r.id]=new ws(1,1,{generateMipmaps:!0,type:e?na:Yi,minFilter:Ji,samples:Math.max(4,F.samples),stencilBuffer:i,resolveDepthBuffer:!1,resolveStencilBuffer:!1,storeMultisampledDepthBuffer:!1,storeMultisampledStencilBuffer:!1,colorSpace:ds.workingColorSpace})}let a=x.state.transmissionRenderTarget[r.id],o=r.viewport||ie;a.setSize(o.z*T.transmissionResolutionScale,o.w*T.transmissionResolutionScale);let s=T.getRenderTarget(),c=T.getActiveCubeFace(),l=T.getActiveMipmapLevel();T.setRenderTarget(a),T.getClearColor(ae),oe=T.getClearAlpha(),oe<1&&T.setClearColor(16777215,.5),T.clear(),Se&&ze.render(n);let u=T.toneMapping;T.toneMapping=0;let d=r.viewport;if(r.viewport!==void 0&&(r.viewport=void 0),x.setupLightsView(r),ge===!0&&Le.setGlobalState(T.clippingPlanes,r),lt(e,n,r),Oe.updateMultisampleRenderTarget(a),Oe.updateRenderTargetMipmap(a),Te.has(`WEBGL_multisampled_render_to_texture`)===!1){let e=!1;for(let i=0,a=t.length;i0,r.currentProgram=d,r.uniformsList=null,d}function ft(e){if(e.uniformsList===null){let t=e.currentProgram.getUniforms();e.uniformsList=uh.seqWithValue(t.seq,e.uniforms)}return e.uniformsList}function pt(e,t){let n=De.get(e);n.outputColorSpace=t.outputColorSpace,n.batching=t.batching,n.batchingColor=t.batchingColor,n.instancing=t.instancing,n.instancingColor=t.instancingColor,n.instancingMorph=t.instancingMorph,n.skinning=t.skinning,n.morphTargets=t.morphTargets,n.morphNormals=t.morphNormals,n.morphColors=t.morphColors,n.morphTargetsCount=t.morphTargetsCount,n.numClippingPlanes=t.numClippingPlanes,n.numIntersection=t.numClipIntersection,n.vertexAlphas=t.vertexAlphas,n.vertexTangents=t.vertexTangents,n.toneMapping=t.toneMapping}function mt(e,t){if(e.length===0)return null;if(e.length===1)return e[0].texture===null?null:e[0];y.setFromMatrixPosition(t.matrixWorld);for(let t=0,n=e.length;t0),f=!!n.morphAttributes.position,p=!!n.morphAttributes.normal,m=!!n.morphAttributes.color,h=0;r.toneMapped&&(j===null||j.isXRRenderTarget===!0)&&(h=T.toneMapping);let g=n.morphAttributes.position||n.morphAttributes.normal||n.morphAttributes.color,_=g===void 0?0:g.length,v=De.get(r),y=x.state.lights;if(ge===!0&&(_e===!0||e!==re)){let t=e===re&&r.id===ne;Le.setState(r,e,t)}let b=!1;r.version===v.__version?v.needsLights&&v.lightsStateVersion!==y.state.version?b=!0:v.outputColorSpace===s?i.isBatchedMesh&&v.batching===!1||!i.isBatchedMesh&&v.batching===!0||i.isBatchedMesh&&v.batchingColor===!0&&i._colorsTexture===null||i.isBatchedMesh&&v.batchingColor===!1&&i._colorsTexture!==null||i.isInstancedMesh&&v.instancing===!1||!i.isInstancedMesh&&v.instancing===!0||i.isSkinnedMesh&&v.skinning===!1||!i.isSkinnedMesh&&v.skinning===!0||i.isInstancedMesh&&v.instancingColor===!0&&i.instanceColor===null||i.isInstancedMesh&&v.instancingColor===!1&&i.instanceColor!==null||i.isInstancedMesh&&v.instancingMorph===!0&&i.morphTexture===null||i.isInstancedMesh&&v.instancingMorph===!1&&i.morphTexture!==null?b=!0:v.envMap===l?r.fog===!0&&v.fog!==a||v.numClippingPlanes!==void 0&&(v.numClippingPlanes!==Le.numPlanes||v.numIntersection!==Le.numIntersection)?b=!0:v.vertexAlphas===u&&v.vertexTangents===d&&v.morphTargets===f&&v.morphNormals===p&&v.morphColors===m&&v.toneMapping===h&&v.morphTargetsCount===_?!!v.lightProbeGrid!=x.state.lightProbeGridArray.length>0&&(b=!0):b=!0:b=!0:b=!0:(b=!0,v.__version=r.version);let S=v.currentProgram;b===!0&&(S=dt(r,t,i),D&&r.isNodeMaterial&&D.onUpdateProgram(r,S,v));let C=!1,w=!1,E=!1,O=S.getUniforms(),k=v.uniforms;if(I.useProgram(S.program)&&(C=!0,w=!0,E=!0),r.id!==ne&&(ne=r.id,w=!0),v.needsLights){let e=mt(x.state.lightProbeGridArray,i);v.lightProbeGrid!==e&&(v.lightProbeGrid=e,w=!0)}if(C||re!==e){I.buffers.depth.getReversed()&&e.reversedDepth!==!0&&(e._reversedDepth=!0,e.updateProjectionMatrix()),O.setValue(P,`projectionMatrix`,e.projectionMatrix),O.setValue(P,`viewMatrix`,e.matrixWorldInverse);let t=O.map.cameraPosition;t!==void 0&&t.setValue(P,ye.setFromMatrixPosition(e.matrixWorld)),F.logarithmicDepthBuffer&&O.setValue(P,`logDepthBufFC`,2/(Math.log(e.far+1)/Math.LN2)),(r.isMeshPhongMaterial||r.isMeshToonMaterial||r.isMeshLambertMaterial||r.isMeshBasicMaterial||r.isMeshStandardMaterial||r.isShaderMaterial)&&O.setValue(P,`isOrthographic`,e.isOrthographicCamera===!0),re!==e&&(re=e,w=!0,E=!0)}if(v.needsLights&&(y.state.sunShadowMap.length>0&&O.setValue(P,`sunShadowMap`,y.state.sunShadowMap,Oe),y.state.directionalShadowMap.length>0&&O.setValue(P,`directionalShadowMap`,y.state.directionalShadowMap,Oe),y.state.spotShadowMap.length>0&&O.setValue(P,`spotShadowMap`,y.state.spotShadowMap,Oe),y.state.pointShadowMap.length>0&&O.setValue(P,`pointShadowMap`,y.state.pointShadowMap,Oe)),i.isSkinnedMesh){O.setOptional(P,i,`bindMatrix`),O.setOptional(P,i,`bindMatrixInverse`);let e=i.skeleton;e&&(e.boneTexture===null&&e.computeBoneTexture(),O.setValue(P,`boneTexture`,e.boneTexture,Oe))}i.isBatchedMesh&&(O.setOptional(P,i,`batchingTexture`),O.setValue(P,`batchingTexture`,i._matricesTexture,Oe),O.setOptional(P,i,`batchingIdTexture`),O.setValue(P,`batchingIdTexture`,i._indirectTexture,Oe),O.setOptional(P,i,`batchingColorTexture`),i._colorsTexture!==null&&O.setValue(P,`batchingColorTexture`,i._colorsTexture,Oe));let ee=n.morphAttributes;if((ee.position!==void 0||ee.normal!==void 0||ee.color!==void 0)&&Be.update(i,n,S),(w||v.receiveShadow!==i.receiveShadow)&&(v.receiveShadow=i.receiveShadow,O.setValue(P,`receiveShadow`,i.receiveShadow)),(r.isMeshStandardMaterial||r.isMeshLambertMaterial||r.isMeshPhongMaterial)&&r.envMap===null&&t.environment!==null&&(k.envMapIntensity.value=t.environmentIntensity),k.dfgLUT!==void 0&&(k.dfgLUT.value=jg()),w){if(O.setValue(P,`toneMappingExposure`,T.toneMappingExposure),v.needsLights&>(k,E),a&&r.fog===!0&&Pe.refreshFogUniforms(k,a),Pe.refreshMaterialUniforms(k,r,le,ce,x.state.transmissionRenderTarget[e.id]),v.needsLights&&v.lightProbeGrid){let e=v.lightProbeGrid;k.probesSH.value=e.texture,k.probesMin.value.copy(e.boundingBox.min),k.probesMax.value.copy(e.boundingBox.max),k.probesResolution.value.copy(e.resolution)}uh.upload(P,ft(v),k,Oe)}if(r.isShaderMaterial&&r.uniformsNeedUpdate===!0&&(uh.upload(P,ft(v),k,Oe),r.uniformsNeedUpdate=!1),r.isSpriteMaterial&&O.setValue(P,`center`,i.center),O.setValue(P,`modelViewMatrix`,i.modelViewMatrix),O.setValue(P,`normalMatrix`,i.normalMatrix),O.setValue(P,`modelMatrix`,i.matrixWorld),r.uniformsGroups!==void 0){let e=r.uniformsGroups;for(let t=0,n=e.length;t0&&Oe.useMultisampledRTT(e)===!1?De.get(e).__webglMultisampledFramebuffer:Array.isArray(c)?c[n]:c,ie.copy(e.viewport),M.copy(e.scissor),N=e.scissorTest}else ie.copy(fe).multiplyScalar(le).floor(),M.copy(pe).multiplyScalar(le).floor(),N=me;if(n!==0&&(r=O),I.bindFramebuffer(P.FRAMEBUFFER,r)&&I.drawBuffers(e,r),I.viewport(ie),I.scissor(M),I.setScissorTest(N),i){let r=De.get(e.texture);P.framebufferTexture2D(P.FRAMEBUFFER,P.COLOR_ATTACHMENT0,P.TEXTURE_CUBE_MAP_POSITIVE_X+t,r.__webglTexture,n)}else if(a){let r=t;for(let t=0;t1&&P.readBuffer(P.COLOR_ATTACHMENT0+s);let u=vt(o);if(u.__formatReadable===!1){Eo(`WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.`);return}if(u.__typeReadable===!1){Eo(`WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.`);return}t>=0&&t<=e.width-r&&n>=0&&n<=e.height-i&&P.readPixels(t,n,r,i,Ue.convert(c),Ue.convert(l),a)}finally{let e=j===null?null:De.get(j).__webglFramebuffer;I.bindFramebuffer(P.FRAMEBUFFER,e)}}},this.readRenderTargetPixelsAsync=async function(e,t,n,r,i,a,o,s=0){if(!(e&&e.isWebGLRenderTarget))throw Error(`THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.`);let c=De.get(e).__webglFramebuffer;if(e.isWebGLCubeRenderTarget&&o!==void 0&&(c=c[o]),c){if(t>=0&&t<=e.width-r&&n>=0&&n<=e.height-i){I.bindFramebuffer(P.FRAMEBUFFER,c);let o=e.textures[s],l=o.format,u=o.type;e.textures.length>1&&P.readBuffer(P.COLOR_ATTACHMENT0+s);let d=vt(o);if(d.__formatReadable===!1)throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.`);if(d.__typeReadable===!1)throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.`);let f=P.createBuffer();P.bindBuffer(P.PIXEL_PACK_BUFFER,f),P.bufferData(P.PIXEL_PACK_BUFFER,a.byteLength,P.STREAM_READ),P.readPixels(t,n,r,i,Ue.convert(l),Ue.convert(u),0),P.bindBuffer(P.PIXEL_PACK_BUFFER,null);let p=j===null?null:De.get(j).__webglFramebuffer;I.bindFramebuffer(P.FRAMEBUFFER,p);let m=P.fenceSync(P.SYNC_GPU_COMMANDS_COMPLETE,0);return P.flush(),await Oo(P,m,4),P.bindBuffer(P.PIXEL_PACK_BUFFER,f),P.getBufferSubData(P.PIXEL_PACK_BUFFER,0,a),P.bindBuffer(P.PIXEL_PACK_BUFFER,null),P.deleteBuffer(f),P.deleteSync(m),a}throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: requested read bounds are out of range.`)}},this.copyFramebufferToTexture=function(e,t=null,n=0){let r=2**-n,i=Math.floor(e.image.width*r),a=Math.floor(e.image.height*r),o=t===null?0:t.x,s=t===null?0:t.y;Oe.setTexture2D(e,0),P.copyTexSubImage2D(P.TEXTURE_2D,n,0,0,o,s,i,a),I.unbindTexture()},this.copyTextureToTexture=function(e,t,n=null,r=null,i=0,a=0){let o,s,c,l,u,d,f,p,m,h=e.isCompressedTexture?e.mipmaps[a]:e.image;if(n!==null)o=n.max.x-n.min.x,s=n.max.y-n.min.y,c=n.isBox3?n.max.z-n.min.z:1,l=n.min.x,u=n.min.y,d=n.isBox3?n.min.z:0;else{let t=2**-i;o=Math.floor(h.width*t),s=Math.floor(h.height*t),c=e.isDataArrayTexture?h.depth:e.isData3DTexture?Math.floor(h.depth*t):1,l=0,u=0,d=0}r===null?(f=0,p=0,m=0):(f=r.x,p=r.y,m=r.z);let g=Ue.convert(t.format),_=Ue.convert(t.type),v;t.isData3DTexture?(Oe.setTexture3D(t,0),v=P.TEXTURE_3D):t.isDataArrayTexture||t.isCompressedArrayTexture?(Oe.setTexture2DArray(t,0),v=P.TEXTURE_2D_ARRAY):(Oe.setTexture2D(t,0),v=P.TEXTURE_2D),I.activeTexture(P.TEXTURE0),I.pixelStorei(P.UNPACK_FLIP_Y_WEBGL,t.flipY),I.pixelStorei(P.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.premultiplyAlpha),I.pixelStorei(P.UNPACK_ALIGNMENT,t.unpackAlignment);let y=I.getParameter(P.UNPACK_ROW_LENGTH),b=I.getParameter(P.UNPACK_IMAGE_HEIGHT),x=I.getParameter(P.UNPACK_SKIP_PIXELS),S=I.getParameter(P.UNPACK_SKIP_ROWS),C=I.getParameter(P.UNPACK_SKIP_IMAGES);I.pixelStorei(P.UNPACK_ROW_LENGTH,h.width),I.pixelStorei(P.UNPACK_IMAGE_HEIGHT,h.height),I.pixelStorei(P.UNPACK_SKIP_PIXELS,l),I.pixelStorei(P.UNPACK_SKIP_ROWS,u),I.pixelStorei(P.UNPACK_SKIP_IMAGES,d);let w=e.isDataArrayTexture||e.isData3DTexture,T=t.isDataArrayTexture||t.isData3DTexture;if(e.isDepthTexture){let n=De.get(e),r=De.get(t),h=De.get(n.__renderTarget),g=De.get(r.__renderTarget);I.bindFramebuffer(P.READ_FRAMEBUFFER,h.__webglFramebuffer),I.bindFramebuffer(P.DRAW_FRAMEBUFFER,g.__webglFramebuffer);for(let n=0;n{let r=new e.array.constructor(e.count*e.itemSize);l[n][t]=new e.constructor(r,e.itemSize,e.normalized)}))}let p=t*.5,m=10**Math.log10(1/t),h=p*m;for(let t=0;tNumber.isInteger(e)?e.toFixed(1):String(e);function pg(e,t,n,r){let i=Math.atan2(t-og.y,n-og.z);return r*e-og.x-.45*Math.sin(i*5+r)-.25*Math.sin(i*11+1.3)}function mg(e,t,n,r){let i=Math.atan2(t-sg.y,n-sg.z),a=r*e-sg.x+sg.lean*(t-sg.y)-.4*Math.sin(i*4+r)-.25*Math.sin(i*9+2.1);return Math.min(a,Math.max(t-sg.armpit,a-3))}function hg(e,t,n){let r=Math.atan2(n-cg.z,e);return t-cg.y-.7*Math.sin(r*5)-.4*Math.sin(r*12+.9)}function gg(e,t,n){let r=t-lg.y,i=Math.atan2(r,e);return lg.radius+.5*Math.sin(i*5+.4)+.3*Math.sin(i*11)-Math.sqrt(e*e+r*r)}function _g(e,t,n){let r=ug.top+.25*Math.sin(e*2.3)-t,i=t-ug.under,a=n-ug.back+ug.curve*e*e;return Math.min(r,Math.min(i,a))}var vg=` +`,Gg={x:31,y:102.8,z:-5.2},Kg={x:15,y:103.5,z:-5.5,lean:.25,armpit:97.5},qg={y:81.5,z:-1},Jg={y:99.5,radius:4.6},Yg={top:114.9,under:111.2,back:.8,curve:.12},Xg={y:125.2,z:-3},Zg=e=>Number.isInteger(e)?e.toFixed(1):String(e);function Qg(e,t,n,r){let i=Math.atan2(t-Gg.y,n-Gg.z);return r*e-Gg.x-.45*Math.sin(i*5+r)-.25*Math.sin(i*11+1.3)}function $g(e,t,n,r){let i=Math.atan2(t-Kg.y,n-Kg.z),a=r*e-Kg.x+Kg.lean*(t-Kg.y)-.4*Math.sin(i*4+r)-.25*Math.sin(i*9+2.1);return Math.min(a,Math.max(t-Kg.armpit,a-3))}function e_(e,t,n){let r=Math.atan2(n-qg.z,e);return t-qg.y-.7*Math.sin(r*5)-.4*Math.sin(r*12+.9)}function t_(e,t,n){let r=t-Jg.y,i=Math.atan2(r,e);return Jg.radius+.5*Math.sin(i*5+.4)+.3*Math.sin(i*11)-Math.sqrt(e*e+r*r)}function n_(e,t,n){let r=Yg.top+.25*Math.sin(e*2.3)-t,i=t-Yg.under,a=n-Yg.back+Yg.curve*e*e;return Math.min(r,Math.min(i,a))}var r_=` float injuryElbowCut(vec3 p, float side) { - float around = atan(p.y - ${fg(og.y)}, p.z - ${fg(og.z)}); - return side * p.x - ${fg(og.x)} - 0.45 * sin(around * 5.0 + side) - 0.25 * sin(around * 11.0 + 1.3); + float around = atan(p.y - ${Zg(Gg.y)}, p.z - ${Zg(Gg.z)}); + return side * p.x - ${Zg(Gg.x)} - 0.45 * sin(around * 5.0 + side) - 0.25 * sin(around * 11.0 + 1.3); } float injuryShoulderCut(vec3 p, float side) { - float around = atan(p.y - ${fg(sg.y)}, p.z - ${fg(sg.z)}); - float across = side * p.x - ${fg(sg.x)} + ${fg(sg.lean)} * (p.y - ${fg(sg.y)}) - 0.4 * sin(around * 4.0 + side) - 0.25 * sin(around * 9.0 + 2.1); - return min(across, max(p.y - ${fg(sg.armpit)}, across - 3.0)); + float around = atan(p.y - ${Zg(Kg.y)}, p.z - ${Zg(Kg.z)}); + float across = side * p.x - ${Zg(Kg.x)} + ${Zg(Kg.lean)} * (p.y - ${Zg(Kg.y)}) - 0.4 * sin(around * 4.0 + side) - 0.25 * sin(around * 9.0 + 2.1); + return min(across, max(p.y - ${Zg(Kg.armpit)}, across - 3.0)); } float injuryWaistCut(vec3 p) { - float around = atan(p.z - ${fg(cg.z)}, p.x); - return p.y - ${fg(cg.y)} - 0.7 * sin(around * 5.0) - 0.4 * sin(around * 12.0 + 0.9); + float around = atan(p.z - ${Zg(qg.z)}, p.x); + return p.y - ${Zg(qg.y)} - 0.7 * sin(around * 5.0) - 0.4 * sin(around * 12.0 + 0.9); } float injuryChestHoleCut(vec3 p) { - float dy = p.y - ${fg(lg.y)}; + float dy = p.y - ${Zg(Jg.y)}; float around = atan(dy, p.x); - return ${fg(lg.radius)} + 0.5 * sin(around * 5.0 + 0.4) + 0.3 * sin(around * 11.0) - sqrt(p.x * p.x + dy * dy); + return ${Zg(Jg.radius)} + 0.5 * sin(around * 5.0 + 0.4) + 0.3 * sin(around * 11.0) - sqrt(p.x * p.x + dy * dy); } -`,yg=` +`,i_=` float injuryJawCut(vec3 p) { - float top = ${fg(ug.top)} + 0.25 * sin(p.x * 2.3) - p.y; - float under = p.y - ${fg(ug.under)}; - float front = p.z - ${fg(ug.back)} + ${fg(ug.curve)} * p.x * p.x; + float top = ${Zg(Yg.top)} + 0.25 * sin(p.x * 2.3) - p.y; + float under = p.y - ${Zg(Yg.under)}; + float front = p.z - ${Zg(Yg.back)} + ${Zg(Yg.curve)} * p.x * p.x; return min(top, min(under, front)); } float injurySkullCut(vec3 p) { - float around = atan(p.z - ${fg(dg.z)}, p.x); - return p.y - ${fg(dg.y)} - 0.55 * sin(around * 7.0) - 0.3 * sin(around * 15.0 + 1.0); + float around = atan(p.z - ${Zg(Xg.z)}, p.x); + return p.y - ${Zg(Xg.y)} - 0.55 * sin(around * 7.0) - 0.3 * sin(around * 15.0 + 1.0); } -`,bg=[`nose`,`leftEar`,`rightEar`,`leftFace`,`rightFace`],xg=[`leftShoulder`,`rightShoulder`,`leftElbow`,`rightElbow`,`leftRibs`,`rightRibs`,`liver`,`belly`,`leftKnee`,`rightKnee`],Sg=[`jaw`,`skull`],Cg=[`leftArm`,`rightArm`,`waist`,`chestHole`],wg=xg.length,Tg=Cg.length,Eg=[6.3,117.6,-3],Dg=[[11.3,97.9,2],[10.6,95.6,2.3],[10.1,93.3,1.9]],Og=[31.2,105.9,-3.4],kg=[12.3,34.4,-5],Ag=[0,86,6.5],jg=e=>` -uniform float uInjuryGone[${Tg}]; -${e?vg:yg} +`,a_=[`nose`,`leftEar`,`rightEar`,`leftFace`,`rightFace`],o_=[`leftShoulder`,`rightShoulder`,`leftElbow`,`rightElbow`,`leftRibs`,`rightRibs`,`liver`,`belly`,`leftKnee`,`rightKnee`],s_=[`jaw`,`skull`],c_=[`leftArm`,`rightArm`,`waist`,`chestHole`],l_=o_.length,u_=c_.length,d_=[6.3,117.6,-3],f_=[[11.3,97.9,2],[10.6,95.6,2.3],[10.1,93.3,1.9]],p_=[31.2,105.9,-3.4],m_=[12.3,34.4,-5],h_=[0,86,6.5],g_=e=>` +uniform float uInjuryGone[${u_}]; +${e?r_:i_} float injuryGone(vec3 p) { float gone = -1000.0; ${e?` @@ -4270,14 +4281,14 @@ ${e?` if (uInjuryGone[1] > 0.5) gone = max(gone, injurySkullCut(p));`} return gone; } -`,Mg=` +`,__=` float injuryBellyGape(vec3 p) { float along = p.x / 9.4; float reach = 2.1 * pow(max(0.0, 1.0 - along * along), 0.6) * (1.0 + 0.18 * sin(p.x * 2.9) + 0.1 * sin(p.x * 6.7 + 1.0)); - float line = ${fg(Ag[1])} - 0.014 * p.x * p.x + 0.3 * sin(p.x * 1.1 + 0.5); + float line = ${Zg(h_[1])} - 0.014 * p.x * p.x + 0.3 * sin(p.x * 1.1 + 0.5); return p.z < 0.0 || reach <= 0.0 ? 9.0 : abs(p.y - line) / reach; } -`,Ng=[0,119,-3.5,0],Pg=[0,0,-2,1],Fg=[[2.65,120.65,3.6],[-2.75,120.75,3.4]],Ig=`HANDS_INJURY_WOUNDS`,Lg=`HANDS_INJURY_OPEN`,Rg=e=>` +`,v_=[0,119,-3.5,0],y_=[0,0,-2,1],b_=[[2.65,120.65,3.6],[-2.75,120.75,3.4]],x_=`HANDS_INJURY_WOUNDS`,S_=`HANDS_INJURY_OPEN`,C_=e=>` uniform vec4 uInjurySite[12]; uniform float uInjurySwell[12]; uniform vec4 uInjuryCore; @@ -4290,13 +4301,13 @@ uniform vec3 uInjuryImpactPush; uniform vec4 uInjuryNose; uniform mat3 uInjuryBindToPart; varying vec3 vInjuryPos; -#ifdef ${Ig} -uniform float uInjuryWound[${wg}]; +#ifdef ${x_} +uniform float uInjuryWound[${l_}]; uniform float uInjuryExplicit; -${e?Mg:``} +${e?__:``} #endif -`,zg=` -#ifdef ${Ig} +`,w_=` +#ifdef ${x_} { float crushed = uInjuryWound[0] * uInjuryExplicit; if (crushed > 0.0) { @@ -4310,13 +4321,13 @@ ${e?Mg:``} float torn = (s == 0 ? uInjuryWound[1] : uInjuryWound[2]) * uInjuryExplicit; if (torn <= 0.0) continue; float side = s == 0 ? 1.0 : -1.0; - float w = 1.0 - smoothstep(0.8, 2.8, distance(injuryBind, vec3(side * ${fg(Eg[0])}, ${fg(Eg[1])}, ${fg(Eg[2])}))); + float w = 1.0 - smoothstep(0.8, 2.8, distance(injuryBind, vec3(side * ${Zg(d_[0])}, ${Zg(d_[1])}, ${Zg(d_[2])}))); injuryMoved.x -= side * torn * w * max(0.0, side * injuryBind.x - 5.3) * 0.9; } } #endif -`,Bg=` -#ifdef ${Ig} +`,T_=` +#ifdef ${x_} { float side = injuryBind.x < 0.0 ? -1.0 : 1.0; float slipped = (side > 0.0 ? uInjuryWound[0] : uInjuryWound[1]) * uInjuryExplicit; @@ -4328,7 +4339,7 @@ ${e?Mg:``} } float caved = (side > 0.0 ? uInjuryWound[4] : uInjuryWound[5]) * uInjuryExplicit; if (caved > 0.0) { - float w = 1.0 - smoothstep(0.0, 8.0, distance(injuryBind, vec3(side * ${fg(Dg[1][0])}, ${fg(Dg[1][1])}, ${fg(Dg[1][2])}))); + float w = 1.0 - smoothstep(0.0, 8.0, distance(injuryBind, vec3(side * ${Zg(f_[1][0])}, ${Zg(f_[1][1])}, ${Zg(f_[1][2])}))); injuryMoved -= normalize(injuryBind - vec3(0.0, injuryBind.y, -2.0) + vec3(0.0, 0.0, 0.001)) * caved * 2.4 * w * w; } float gutted = uInjuryWound[7] * uInjuryExplicit; @@ -4341,7 +4352,7 @@ ${e?Mg:``} } } #endif -`,Vg=(e,t)=>` +`,E_=(e,t)=>` { vec3 injuryBind = ${e?`bindPosition`:`transformed`}; vInjuryPos = injuryBind; @@ -4376,10 +4387,10 @@ ${e?Mg:``} injuryMoved.x += uInjuryJaw * 1.7 * jawMask; injuryMoved.y -= uInjuryJaw * 0.9 * jawMask; injuryMoved.z -= uInjuryJaw * 0.4 * jawMask; - ${t?Bg:zg} + ${t?T_:w_} ${e?`transformed += uInjuryBindToPart * (injuryMoved - injuryBind);`:`transformed = injuryMoved;`} } -`,Hg=e=>` +`,D_=e=>` uniform vec4 uInjurySite[12]; uniform vec4 uInjuryCut[12]; uniform float uInjuryBruise[12]; @@ -4394,11 +4405,11 @@ uniform float uInjuryXrayShown; uniform float uInjuryRun; varying vec3 vInjuryPos; float injuryWet = 0.0; -${ag} +${Wg} float injuryHash(float n) { return fract(sin(n) * 43758.5453123); } -#ifdef ${Ig} -uniform float uInjuryWound[${wg}]; +#ifdef ${x_} +uniform float uInjuryWound[${l_}]; uniform float uInjuryExplicit; uniform float uInjuryPallor; uniform vec4 uInjuryMark[6]; @@ -4419,13 +4430,13 @@ vec3 injuryBruised(vec3 skin, float depth) { vec3 tone = mix(vec3(0.4, 0.08, 0.2), vec3(0.05, 0.012, 0.05), clamp(depth, 0.0, 1.0)); return mix(skin * tone / vec3(0.6, 0.32, 0.19), tone, 0.35); } -${e?Mg:``} +${e?__:``} #endif -#ifdef ${Lg} -${jg(e)} +#ifdef ${S_} +${g_(e)} #endif -`,Ug=e=>` -#ifdef ${Ig} +`,O_=e=>` +#ifdef ${x_} if (uInjuryPallor > 0.0) { float luma = dot(diffuseColor.rgb, vec3(0.3, 0.55, 0.15)); vec3 drained = (vec3(luma) * 1.3 + 0.04) * vec3(0.97, 1.0, 1.05); @@ -4441,8 +4452,8 @@ ${e?` diffuseColor.rgb = mix(diffuseColor.rgb, vec3(0.3, 0.33, 0.47) * (0.5 + luma), lips * uInjuryPallor * 0.85);`} } #endif -`,Wg=` -#ifdef ${Ig} +`,k_=` +#ifdef ${x_} { float graphic = uInjuryExplicit; float mottle = 0.7 + 0.3 * injuryNoise(injuryPos.xy * 2.1 + injuryPos.z); @@ -4470,7 +4481,7 @@ ${e?` float ear = s == 0 ? uInjuryWound[1] : uInjuryWound[2]; if (ear > 0.0 && sx > 3.0) { // Where the ear was: a ragged raw wound round the dark hole of the ear, running down the neck. - vec3 q = injuryPos - vec3(side * ${fg(Eg[0])}, ${fg(Eg[1])}, ${fg(Eg[2])}); + vec3 q = injuryPos - vec3(side * ${Zg(d_[0])}, ${Zg(d_[1])}, ${Zg(d_[2])}); float around = atan(q.y, q.z); float reach = length(vec2(q.z / 1.4, q.y / 2.1)) / (1.0 + 0.16 * sin(around * 5.0 + side) + 0.08 * sin(around * 11.0)); float bruise = (1.0 - smoothstep(0.8, 1.9, reach)) * mottle; @@ -4563,8 +4574,8 @@ ${e?` } } #endif -`,Gg=` -#ifdef ${Ig} +`,A_=` +#ifdef ${x_} { float graphic = uInjuryExplicit; float side = injuryPos.x < 0.0 ? -1.0 : 1.0; @@ -4582,12 +4593,12 @@ ${e?` float elbow = side > 0.0 ? uInjuryWound[2] : uInjuryWound[3]; if (elbow > 0.0 && sx > 22.0) { // Black round the joint, the hole the bone came out of, and blood down the forearm to the glove. - vec3 q = vec3(sx, injuryPos.y, injuryPos.z) - vec3(${fg(og.x)}, ${fg(og.y)}, ${fg(og.z)}); + vec3 q = vec3(sx, injuryPos.y, injuryPos.z) - vec3(${Zg(Gg.x)}, ${Zg(Gg.y)}, ${Zg(Gg.z)}); float bruise = (1.0 - smoothstep(2.0, 7.0, abs(q.x))) * mottle; diffuseColor.rgb = mix(diffuseColor.rgb, injuryBruised(diffuseColor.rgb, 0.4 + 0.5 * (1.0 - smoothstep(0.0, 3.0, abs(q.x)))), bruise * elbow * 0.9); float around = atan(q.y, q.z); float sleeve = smoothstep(-1.5, 1.0, q.x) * (0.5 + 0.5 * sin(around * 7.0 + 1.5 * sin(q.x * 0.9))) * (1.0 - 0.5 * smoothstep(7.0, 13.0, q.x)); - vec3 exit = vec3(sx, injuryPos.y, injuryPos.z) - vec3(${fg(Og[0])}, ${fg(Og[1])}, ${fg(Og[2])}); + vec3 exit = vec3(sx, injuryPos.y, injuryPos.z) - vec3(${Zg(p_[0])}, ${Zg(p_[1])}, ${Zg(p_[2])}); float hole = (1.0 - smoothstep(0.75, 1.1, length(exit / vec3(2.1, 1.3, 1.3)) * (1.0 + 0.15 * sin(atan(exit.z, exit.x) * 6.0)))) * graphic; float blood = max(sleeve * mix(0.3, 0.9, graphic), hole) * elbow; diffuseColor.rgb = mix(diffuseColor.rgb, mix(running, mix(raw, gore, smoothstep(0.3, 0.8, hole)), hole), blood); @@ -4596,13 +4607,13 @@ ${e?` float ribs = side > 0.0 ? uInjuryWound[4] : uInjuryWound[5]; if (ribs > 0.0 && injuryPos.y > 80.0 && sx < 16.0) { // Black with bruising, banded where the ribs lie under it, and a raw hole where each broken end comes through. - vec3 q = vec3(sx, injuryPos.y, injuryPos.z) - vec3(${fg(Dg[1][0])}, ${fg(Dg[1][1])}, ${fg(Dg[1][2])}); + vec3 q = vec3(sx, injuryPos.y, injuryPos.z) - vec3(${Zg(f_[1][0])}, ${Zg(f_[1][1])}, ${Zg(f_[1][2])}); float spread = length(vec3(q.x, q.y * 0.85, q.z * 0.6)); float bands = 0.72 + 0.28 * sin((injuryPos.y + 0.3 * sx - 0.25 * injuryPos.z) * 2.8); float bruise = (1.0 - smoothstep(2.5, 9.5, spread)) * mottle * bands; diffuseColor.rgb = mix(diffuseColor.rgb, injuryBruised(diffuseColor.rgb, 0.7 + 0.3 * (1.0 - smoothstep(0.0, 5.0, spread))), bruise * ribs * 0.95); - for (int k = 0; k < ${Dg.length}; k++) { - vec3 end = k == 0 ? vec3(${Dg[0].map(fg).join(`, `)}) : k == 1 ? vec3(${Dg[1].map(fg).join(`, `)}) : vec3(${Dg[2].map(fg).join(`, `)}); + for (int k = 0; k < ${f_.length}; k++) { + vec3 end = k == 0 ? vec3(${f_[0].map(Zg).join(`, `)}) : k == 1 ? vec3(${f_[1].map(Zg).join(`, `)}) : vec3(${f_[2].map(Zg).join(`, `)}); vec3 at = vec3(sx, injuryPos.y, injuryPos.z) - end; float hole = (1.0 - smoothstep(0.6, 1.0, length(at / vec3(1.7, 1.0, 1.7)))) * graphic; float drop = -at.y; @@ -4627,7 +4638,7 @@ ${e?` if (gutted > 0.0 && injuryPos.y > 74.0 && injuryPos.y < 92.0) { // Torn open from side to side: a dark wet cavity between lips of raw muscle and yellow fat, and everything below it red. float gape = injuryBellyGape(injuryPos) * (1.0 + 0.45 * (injuryNoise(injuryPos.xy * 2.4 + 9.0) - 0.5)); - float line = ${fg(Ag[1])} - 0.014 * injuryPos.x * injuryPos.x; + float line = ${Zg(h_[1])} - 0.014 * injuryPos.x * injuryPos.x; float below = line - injuryPos.y; float sheet = smoothstep(-0.5, 1.5, below) * (1.0 - smoothstep(8.6, 9.9, abs(injuryPos.x) + 0.6 * sin(injuryPos.y * 1.7))) * step(0.0, injuryPos.z) * (0.82 + 0.18 * sin(injuryPos.x * 4.3 + sin(injuryPos.y * 0.9))); float bruise = (1.0 - smoothstep(1.2, 3.2, gape)) * mottle; @@ -4641,9 +4652,9 @@ ${e?` injuryWet = max(injuryWet, max(open, sheet * gutted * graphic)); } float knee = side > 0.0 ? uInjuryWound[8] : uInjuryWound[9]; - if (knee > 0.0 && injuryPos.y < ${fg(60)}) { + if (knee > 0.0 && injuryPos.y < ${Zg(60)}) { // Swollen black below the trunks, a raw hole in the side of the knee where the bone shows, and blood down the shin to the boot. - vec3 q = vec3(sx, injuryPos.y, injuryPos.z) - vec3(${kg.map(fg).join(`, `)}); + vec3 q = vec3(sx, injuryPos.y, injuryPos.z) - vec3(${m_.map(Zg).join(`, `)}); float bruise = (1.0 - smoothstep(27.0, 34.0, 62.0 - injuryPos.y)) * smoothstep(25.0, 31.0, injuryPos.y) * mottle; diffuseColor.rgb = mix(diffuseColor.rgb, injuryBruised(diffuseColor.rgb, 0.4 + 0.5 * smoothstep(30.0, 36.0, injuryPos.y)), bruise * knee * 0.9); float hole = (1.0 - smoothstep(0.7, 1.05, length(q / vec3(1.8, 2.0, 1.8)) * (1.0 + 0.15 * sin(atan(q.y, q.z) * 5.0)))) * graphic; @@ -4656,7 +4667,7 @@ ${e?` } } #endif -`,Kg=` +`,j_=` if (uInjuryGone[1] > 0.5) { // A skull broken open: the bone of its rim under the torn scalp, and cracks running down from it. float rim = -injurySkullCut(injuryPos); @@ -4673,7 +4684,7 @@ ${e?` diffuseColor.rgb = mix(diffuseColor.rgb, vec3(0.28, 0.008, 0.012), sheet * 0.93); injuryWet = max(injuryWet, sheet); } -`,qg=` +`,M_=` { // A stump runs with blood back from its cut, and a hole through the chest down the front and the back. float side = injuryPos.x < 0.0 ? -1.0 : 1.0; @@ -4683,18 +4694,18 @@ ${e?` if (uInjuryGone[2] > 0.5) soaked = max(soaked, (1.0 - smoothstep(0.5, 3.5, -injuryWaistCut(injuryPos))) * 0.9); if (uInjuryGone[3] > 0.5) { float hole = -injuryChestHoleCut(injuryPos); - float below = ${fg(lg.y)} - injuryPos.y; + float below = ${Zg(Jg.y)} - injuryPos.y; float sheet = smoothstep(0.0, 3.0, below) * (1.0 - smoothstep(3.5, 6.5, abs(injuryPos.x) - below * 0.08)) * (0.65 + 0.35 * sin(injuryPos.x * 4.1 + sin(injuryPos.y * 0.8))) * (1.0 - 0.5 * smoothstep(8.0, 20.0, below)); soaked = max(soaked, max(sheet * step(-30.0, -abs(injuryPos.x)), (1.0 - smoothstep(0.5, 3.0, hole)) * 0.85)); } diffuseColor.rgb = mix(diffuseColor.rgb, vec3(0.28, 0.008, 0.012), soaked * 0.93); injuryWet = max(injuryWet, soaked); } -`,Jg=e=>` +`,N_=e=>` { vec3 injuryPos = vInjuryPos; -${Ug(e)} -#ifdef ${Lg} +${O_(e)} +#ifdef ${S_} { float below = injuryCutLine(injuryPos) - injuryPos.y; if (below < 0.0) discard; @@ -4704,7 +4715,7 @@ ${Ug(e)} diffuseColor.rgb = mix(diffuseColor.rgb, vec3(0.2, 0.008, 0.012), torn * 0.94); injuryWet = max(injuryWet, torn); } -${e?qg:Kg} +${e?M_:j_} #endif vec3 hematomaFresh = vec3(0.42, 0.09, 0.11); vec3 hematomaDeep = vec3(0.2, 0.04, 0.07); @@ -4764,7 +4775,7 @@ ${e?qg:Kg} diffuseColor.rgb = mix(diffuseColor.rgb, mix(puffed, vec3(0.03, 0.006, 0.01), crease * 0.92), closed); injuryWet = max(injuryWet, closed * 0.35 * (1.0 - crease)); } -${e?Gg:Wg} +${e?A_:k_} // An empty socket: a raw red rim round a dark hollow where the eye was. for (int e = 0; e < 2; e++) { float gone = e == 0 ? uInjuryEyeOut.x : uInjuryEyeOut.y; @@ -4818,7 +4829,7 @@ ${e?Gg:Wg} } injuryWet = max(injuryWet, w); } -#ifdef ${Ig} +#ifdef ${x_} // Where punches landed: a red welt the shape of the glove, a bruise that darkens under it, and, hit again and again, a split that runs. for (int m = 0; m < 6; m++) { vec4 mark = uInjuryMark[m]; @@ -4867,7 +4878,7 @@ ${e?Gg:Wg} injuryWet = max(injuryWet, spat * 0.8); } #endif -#ifdef ${Lg} +#ifdef ${S_} // Where a cut or a burst opens the head, its inside shows as raw flesh rather than nothing. if (!gl_FrontFacing) { diffuseColor.rgb = vec3(0.2, 0.012, 0.022); @@ -4882,14 +4893,14 @@ ${e?Gg:Wg} injuryWet = max(injuryWet, seen * 0.6); } } -`,Yg=` +`,P_=` roughnessFactor = mix(roughnessFactor, 0.18, injuryWet); -`,Xg=2.4,Zg=.85,Qg=.02,$g=1.6,e_=class{material;sites;uniforms={uInjurySite:{value:[]},uInjuryCut:{value:[]},uInjurySwell:{value:new Float32Array(12)},uInjuryBruise:{value:new Float32Array(12)},uInjuryBlood:{value:new Float32Array(12)},uInjuryJaw:{value:0},uInjuryJawLevel:{value:114.5},uInjuryImpact:{value:new Lo(0,-1e3,0,1)},uInjuryImpactPush:{value:new z},uInjuryNose:{value:new Lo(0,-1e3,0,0)},uInjuryWetness:{value:1},uInjuryRaw:{value:1},uInjurySever:{value:ig},uInjurySeverShape:{value:new R(tg,1)},uInjuryCore:{value:new Lo(...Ng)},uInjuryWash:{value:0},uInjuryLid:{value:[new Lo(0,-1e3,0,0),new Lo(0,-1e3,0,0)]},uInjuryEyeOut:{value:new R},uInjuryBindToPart:{value:new xo},uInjuryWound:{value:new Float32Array(wg)},uInjuryGone:{value:new Float32Array(Tg)},uInjuryExplicit:{value:1},uInjuryPallor:{value:0},uInjuryXray:{value:new Lo(0,0,0,0)},uInjuryXrayShown:{value:0},uInjuryRun:{value:1},uInjuryMark:{value:Array.from({length:6},()=>new Lo(0,0,0,0))},uInjurySpatter:{value:0}};index=new Map;wounds;cuts;body;shadow=null;shadowSideSet=!1;constructor(e,t,n={core:Ng}){if(this.material=e,this.sites=t,t.length!==12)throw Error(`injury shading requires 12 sites`);let r=n.wash===!0;this.body=r,this.wounds=r?xg:bg,this.cuts=r?Cg:Sg,this.uniforms.uInjuryCore.value.set(...n.core),this.uniforms.uInjuryWash.value=+(n.wash===!0);for(let[e,t]of(n.lids??[]).slice(0,2).entries())this.uniforms.uInjuryLid.value[e].set(t[0],t[1],t[2],0);for(let[e,n]of t.entries())this.index.set(n.name,e),this.uniforms.uInjurySite.value.push(new Lo(n.position[0],n.position[1],n.position[2],n.radius)),this.uniforms.uInjuryCut.value.push(new Lo(n.cutHalfLength,0,0,0));if(e===null)return;let i=this.uniforms,a=n.baked===!0;e.onBeforeCompile=e=>{Object.assign(e.uniforms,i),e.vertexShader=e.vertexShader.replace(`#include `,`#include \n${Rg(r)}`).replace(`#include `,`#include \n${Vg(a,r)}`),e.fragmentShader=e.fragmentShader.replace(`#include `,`#include \n${Hg(r)}`).replace(`#include `,`#include \n${Jg(r)}`).replace(`#include `,`#include \n${Yg}`)},e.customProgramCacheKey=()=>`hands-injury-12${r?`-body`:``}${a?`-baked`:``}`,e.needsUpdate=!0}slot(e){let t=this.index.get(e);if(t===void 0)throw Error(`unknown injury site ${e}`);return t}set(e,t){let n=this.slot(e);t.bruise!==void 0&&(this.uniforms.uInjuryBruise.value[n]=L.clamp(t.bruise,0,1.2)),t.swell!==void 0&&(this.uniforms.uInjurySwell.value[n]=L.clamp(t.swell,0,2.2)),t.cut!==void 0&&(this.uniforms.uInjuryCut.value[n].y=L.clamp(t.cut,0,1)),t.blood!==void 0&&(this.uniforms.uInjuryBlood.value[n]=L.clamp(t.blood,0,1.4))}impact(e,t,n){let r=this.uniforms.uInjurySite.value[this.slot(e)];this.uniforms.uInjuryImpact.value.set(r.x,r.y,r.z,n),this.uniforms.uInjuryImpactPush.value.set(t[0],t[1],t[2])}setNoseShift(e){let t=this.index.get(`nose`);if(t===void 0)return;let n=this.uniforms.uInjurySite.value[t];this.uniforms.uInjuryNose.value.set(n.x,n.y,n.z,L.clamp(e,-1.4,1.4)||0)}update(e){let t=this.uniforms.uInjuryMark.value;for(let n=0;n0&&r.w0&&(s.x-e)**2+(s.y-t)**2+(s.z-n)**20,t.w=0;e&&this.refresh()}setSpatter(e){let t=L.clamp(e,0,1)||0;t!==this.uniforms.uInjurySpatter.value&&(this.uniforms.uInjurySpatter.value=t,this.refresh())}get spatter(){return this.uniforms.uInjurySpatter.value}setRun(e){this.uniforms.uInjuryRun.value=L.clamp(e,.3,2)||1}setXray(e,t,n,r,i){this.uniforms.uInjuryXray.value.set(e,t,n,r),this.uniforms.uInjuryXrayShown.value=i}get impactDepth(){return this.uniforms.uInjuryImpactPush.value.length()}setSevered(e){this.uniforms.uInjurySever.value=e?eg:ig,this.uniforms.uInjurySeverShape.value.set(tg,1),this.refresh()}setBurst(e){this.uniforms.uInjurySever.value=e?ng:ig,this.uniforms.uInjurySeverShape.value.set(e?0:tg,e?rg:1),this.refresh()}get open(){return this.material?.defines?.[Lg]!==void 0}get wounded(){return this.material?.defines?.[Ig]!==void 0}setOpen(e){this.switchTo(e||this.painted,e)}get painted(){let e=this.uniforms.uInjuryWound.value;for(let t=0;t0)return!0;for(let e of this.uniforms.uInjuryMark.value)if(e.w>0)return!0;return this.uniforms.uInjuryPallor.value>0||this.uniforms.uInjurySpatter.value>0}refresh(){let e=this.uniforms.uInjurySever.value!==ig,t=this.uniforms.uInjuryGone.value;for(let n=0;n0&&(e=!0);this.switchTo(e||this.painted,e)}switchTo(e,t){let n=this.material;n===null||e===this.wounded&&t===this.open||(t!==this.open&&this.shadow!==null&&(this.shadow.defines=t?{[Lg]:``}:{},this.shadow.needsUpdate=!0),n_(n,e,t),t&&n.shadowSide===null?(n.shadowSide=1,this.shadowSideSet=!0):!t&&this.shadowSideSet&&(n.shadowSide=null,this.shadowSideSet=!1))}variant(e){let t=this.material;if(t===null)return null;let n=t.clone();return n.defines={...t.defines},n.onBeforeCompile=t.onBeforeCompile,n.customProgramCacheKey=t.customProgramCacheKey,n_(n,!0,e),n.shadowSide=t.shadowSide??(e?1:null),n}shadowMaterial(){return this.shadow=this.depthMaterial(this.open),this.shadow}shadowVariant(){return this.depthMaterial(!0)}depthMaterial(e){let t=new Ju,n={uInjurySever:this.uniforms.uInjurySever,uInjurySeverShape:this.uniforms.uInjurySeverShape,uInjuryGone:this.uniforms.uInjuryGone},r=this.body;return t.onBeforeCompile=e=>{Object.assign(e.uniforms,n),e.vertexShader=e.vertexShader.replace(`#include `,`#include +`,F_=2.4,I_=.85,L_=.02,R_=1.6,z_=class{material;sites;uniforms={uInjurySite:{value:[]},uInjuryCut:{value:[]},uInjurySwell:{value:new Float32Array(12)},uInjuryBruise:{value:new Float32Array(12)},uInjuryBlood:{value:new Float32Array(12)},uInjuryJaw:{value:0},uInjuryJawLevel:{value:114.5},uInjuryImpact:{value:new Ss(0,-1e3,0,1)},uInjuryImpactPush:{value:new B},uInjuryNose:{value:new Ss(0,-1e3,0,0)},uInjuryWetness:{value:1},uInjuryRaw:{value:1},uInjurySever:{value:Ug},uInjurySeverShape:{value:new z(Bg,1)},uInjuryCore:{value:new Ss(...v_)},uInjuryWash:{value:0},uInjuryLid:{value:[new Ss(0,-1e3,0,0),new Ss(0,-1e3,0,0)]},uInjuryEyeOut:{value:new z},uInjuryBindToPart:{value:new os},uInjuryWound:{value:new Float32Array(l_)},uInjuryGone:{value:new Float32Array(u_)},uInjuryExplicit:{value:1},uInjuryPallor:{value:0},uInjuryXray:{value:new Ss(0,0,0,0)},uInjuryXrayShown:{value:0},uInjuryRun:{value:1},uInjuryMark:{value:Array.from({length:6},()=>new Ss(0,0,0,0))},uInjurySpatter:{value:0}};index=new Map;wounds;cuts;body;shadow=null;shadowSideSet=!1;constructor(e,t,n={core:v_}){if(this.material=e,this.sites=t,t.length!==12)throw Error(`injury shading requires 12 sites`);let r=n.wash===!0;this.body=r,this.wounds=r?o_:a_,this.cuts=r?c_:s_,this.uniforms.uInjuryCore.value.set(...n.core),this.uniforms.uInjuryWash.value=+(n.wash===!0);for(let[e,t]of(n.lids??[]).slice(0,2).entries())this.uniforms.uInjuryLid.value[e].set(t[0],t[1],t[2],0);for(let[e,n]of t.entries())this.index.set(n.name,e),this.uniforms.uInjurySite.value.push(new Ss(n.position[0],n.position[1],n.position[2],n.radius)),this.uniforms.uInjuryCut.value.push(new Ss(n.cutHalfLength,0,0,0));if(e===null)return;let i=this.uniforms,a=n.baked===!0;e.onBeforeCompile=e=>{Object.assign(e.uniforms,i),e.vertexShader=e.vertexShader.replace(`#include `,`#include \n${C_(r)}`).replace(`#include `,`#include \n${E_(a,r)}`),e.fragmentShader=e.fragmentShader.replace(`#include `,`#include \n${D_(r)}`).replace(`#include `,`#include \n${N_(r)}`).replace(`#include `,`#include \n${P_}`)},e.customProgramCacheKey=()=>`hands-injury-12${r?`-body`:``}${a?`-baked`:``}`,e.needsUpdate=!0}slot(e){let t=this.index.get(e);if(t===void 0)throw Error(`unknown injury site ${e}`);return t}set(e,t){let n=this.slot(e);t.bruise!==void 0&&(this.uniforms.uInjuryBruise.value[n]=R.clamp(t.bruise,0,1.2)),t.swell!==void 0&&(this.uniforms.uInjurySwell.value[n]=R.clamp(t.swell,0,2.2)),t.cut!==void 0&&(this.uniforms.uInjuryCut.value[n].y=R.clamp(t.cut,0,1)),t.blood!==void 0&&(this.uniforms.uInjuryBlood.value[n]=R.clamp(t.blood,0,1.4))}impact(e,t,n){let r=this.uniforms.uInjurySite.value[this.slot(e)];this.uniforms.uInjuryImpact.value.set(r.x,r.y,r.z,n),this.uniforms.uInjuryImpactPush.value.set(t[0],t[1],t[2])}setNoseShift(e){let t=this.index.get(`nose`);if(t===void 0)return;let n=this.uniforms.uInjurySite.value[t];this.uniforms.uInjuryNose.value.set(n.x,n.y,n.z,R.clamp(e,-1.4,1.4)||0)}update(e){let t=this.uniforms.uInjuryMark.value;for(let n=0;n0&&r.w0&&(s.x-e)**2+(s.y-t)**2+(s.z-n)**20,t.w=0;e&&this.refresh()}setSpatter(e){let t=R.clamp(e,0,1)||0;t!==this.uniforms.uInjurySpatter.value&&(this.uniforms.uInjurySpatter.value=t,this.refresh())}get spatter(){return this.uniforms.uInjurySpatter.value}setRun(e){this.uniforms.uInjuryRun.value=R.clamp(e,.3,2)||1}setXray(e,t,n,r,i){this.uniforms.uInjuryXray.value.set(e,t,n,r),this.uniforms.uInjuryXrayShown.value=i}get impactDepth(){return this.uniforms.uInjuryImpactPush.value.length()}setSevered(e){this.uniforms.uInjurySever.value=e?zg:Ug,this.uniforms.uInjurySeverShape.value.set(Bg,1),this.refresh()}setBurst(e){this.uniforms.uInjurySever.value=e?Vg:Ug,this.uniforms.uInjurySeverShape.value.set(e?0:Bg,e?Hg:1),this.refresh()}get open(){return this.material?.defines?.[S_]!==void 0}get wounded(){return this.material?.defines?.[x_]!==void 0}setOpen(e){this.switchTo(e||this.painted,e)}get painted(){let e=this.uniforms.uInjuryWound.value;for(let t=0;t0)return!0;for(let e of this.uniforms.uInjuryMark.value)if(e.w>0)return!0;return this.uniforms.uInjuryPallor.value>0||this.uniforms.uInjurySpatter.value>0}refresh(){let e=this.uniforms.uInjurySever.value!==Ug,t=this.uniforms.uInjuryGone.value;for(let n=0;n0&&(e=!0);this.switchTo(e||this.painted,e)}switchTo(e,t){let n=this.material;n===null||e===this.wounded&&t===this.open||(t!==this.open&&this.shadow!==null&&(this.shadow.defines=t?{[S_]:``}:{},this.shadow.needsUpdate=!0),V_(n,e,t),t&&n.shadowSide===null?(n.shadowSide=1,this.shadowSideSet=!0):!t&&this.shadowSideSet&&(n.shadowSide=null,this.shadowSideSet=!1))}variant(e){let t=this.material;if(t===null)return null;let n=t.clone();return n.defines={...t.defines},n.onBeforeCompile=t.onBeforeCompile,n.customProgramCacheKey=t.customProgramCacheKey,V_(n,!0,e),n.shadowSide=t.shadowSide??(e?1:null),n}shadowMaterial(){return this.shadow=this.depthMaterial(this.open),this.shadow}shadowVariant(){return this.depthMaterial(!0)}depthMaterial(e){let t=new Nd,n={uInjurySever:this.uniforms.uInjurySever,uInjurySeverShape:this.uniforms.uInjurySeverShape,uInjuryGone:this.uniforms.uInjuryGone},r=this.body;return t.onBeforeCompile=e=>{Object.assign(e.uniforms,n),e.vertexShader=e.vertexShader.replace(`#include `,`#include varying vec3 vInjuryPos;`).replace(`#include `,`#include -vInjuryPos = transformed;`),e.fragmentShader=e.fragmentShader.replace(`#include `,`#include \nvarying vec3 vInjuryPos;\n${ag}\n#ifdef ${Lg}\n${jg(r)}\n#endif`).replace(`#include `,`#include \n#ifdef ${Lg}\nif (vInjuryPos.y > injuryCutLine(vInjuryPos)) discard;\nif (injuryGone(vInjuryPos) > 0.0) discard;\n#endif`)},t.customProgramCacheKey=()=>`hands-injury-shadow${r?`-body`:``}`,e&&(t.defines={[Lg]:``}),t}setWound(e,t){this.uniforms.uInjuryWound.value[t_(this.wounds,e)]=L.clamp(t,0,1)||0,this.refresh()}wound(e){return this.uniforms.uInjuryWound.value[t_(this.wounds,e)]}setGone(e,t){this.uniforms.uInjuryGone.value[t_(this.cuts,e)]=L.clamp(t,0,2)||0,this.refresh()}gone(e){return this.uniforms.uInjuryGone.value[t_(this.cuts,e)]}setExplicit(e){this.uniforms.uInjuryExplicit.value=+!!e}get explicit(){return this.uniforms.uInjuryExplicit.value>0}setPallor(e){let t=L.clamp(e,0,1)||0;t!==this.uniforms.uInjuryPallor.value&&(this.uniforms.uInjuryPallor.value=t,this.refresh())}get pallor(){return this.uniforms.uInjuryPallor.value}raise(e,t,n=0,r=0){let i=this.slot(e),a=this.uniforms;a.uInjuryBruise.value[i]=Math.max(a.uInjuryBruise.value[i],Math.min(t,1.2)),a.uInjuryBlood.value[i]=Math.max(a.uInjuryBlood.value[i],Math.min(n,1.4));let o=a.uInjuryCut.value[i];o.y=Math.max(o.y,Math.min(r,1))}copyFrom(e){let t=e.uniforms,n=this.uniforms;n.uInjuryBruise.value.set(t.uInjuryBruise.value),n.uInjurySwell.value.set(t.uInjurySwell.value),n.uInjuryBlood.value.set(t.uInjuryBlood.value);for(let[e,r]of n.uInjuryCut.value.entries())r.y=t.uInjuryCut.value[e]?.y??0;for(let[e,r]of n.uInjuryLid.value.entries())r.w=t.uInjuryLid.value[e]?.w??0;n.uInjuryEyeOut.value.copy(t.uInjuryEyeOut.value),n.uInjuryNose.value.copy(t.uInjuryNose.value),n.uInjuryJaw.value=t.uInjuryJaw.value,n.uInjuryWetness.value=t.uInjuryWetness.value,n.uInjuryRaw.value=t.uInjuryRaw.value,n.uInjuryImpactPush.value.set(0,0,0),n.uInjuryWound.value.set(t.uInjuryWound.value),n.uInjuryGone.value.set(t.uInjuryGone.value),n.uInjuryExplicit.value=t.uInjuryExplicit.value,n.uInjuryPallor.value=t.uInjuryPallor.value;for(let[e,r]of n.uInjuryMark.value.entries())r.copy(t.uInjuryMark.value[e]);n.uInjurySpatter.value=t.uInjurySpatter.value,n.uInjuryRun.value=t.uInjuryRun.value,this.refresh()}setBindToPart(e){this.uniforms.uInjuryBindToPart.value.copy(e)}setRawCuts(e){this.uniforms.uInjuryRaw.value=L.clamp(e,0,1)||0}setJaw(e){this.uniforms.uInjuryJaw.value=L.clamp(e,0,1)}setEyesShut(e,t){let[n,r]=this.uniforms.uInjuryLid.value;n.y>-500&&(n.w=L.clamp(e,0,1)||0),r.y>-500&&(r.w=L.clamp(t,0,1)||0)}setEyeOut(e){let t=this.uniforms.uInjuryLid.value,n=(e===`left`||e===`both`)&&t[0].y>-500,r=(e===`right`||e===`both`)&&t[1].y>-500;this.uniforms.uInjuryEyeOut.value.set(+!!n,+!!r),this.index.has(`leftEye`)&&this.set(`leftEye`,{blood:n?1.3:0}),this.index.has(`rightEye`)&&this.set(`rightEye`,{blood:r?1.3:0})}get eyeOut(){let e=this.uniforms.uInjuryEyeOut.value;return e.x>0&&e.y>0?`both`:e.x>0?`left`:e.y>0?`right`:null}get eyesShut(){return[this.uniforms.uInjuryLid.value[0].w,this.uniforms.uInjuryLid.value[1].w]}clear(){this.uniforms.uInjuryBruise.value.fill(0),this.uniforms.uInjurySwell.value.fill(0),this.uniforms.uInjuryBlood.value.fill(0);for(let e of this.uniforms.uInjuryCut.value)e.y=0;this.uniforms.uInjuryJaw.value=0;for(let e of this.uniforms.uInjuryLid.value)e.w=0;this.uniforms.uInjuryEyeOut.value.set(0,0),this.uniforms.uInjuryNose.value.w=0,this.uniforms.uInjuryImpactPush.value.set(0,0,0),this.uniforms.uInjuryWound.value.fill(0),this.uniforms.uInjuryGone.value.fill(0),this.uniforms.uInjuryPallor.value=0;for(let e of this.uniforms.uInjuryMark.value)e.set(0,0,0,0);this.uniforms.uInjurySpatter.value=0,this.uniforms.uInjuryRun.value=1,this.refresh()}level(e){let t=this.slot(e);return{bruise:this.uniforms.uInjuryBruise.value[t],swell:this.uniforms.uInjurySwell.value[t],cut:this.uniforms.uInjuryCut.value[t].y,blood:this.uniforms.uInjuryBlood.value[t]}}};function t_(e,t){let n=e.indexOf(t);if(n<0)throw Error(`unknown injury ${t}`);return n}function n_(e,t,n){let r=e.defines??={};delete r[Ig],delete r[Lg],t&&(r[Ig]=``),n&&(r[Lg]=``),e.side=n?2:0,e.needsUpdate=!0}var r_=e=>e===`off`?0:e===`reduced`?.2:1.5,i_=330;function a_(e,t){return L.clamp((e-i_)/(p-i_)+Math.max(0,t-200)/1600,0,1)}var o_=1.8,s_=150,c_=240;function l_(e,t,n){let r=r_(n),i=n===`full`?1:.6;e.setRawCuts(n===`full`?1:n===`reduced`?.6:0);let a=e=>Math.min(1.2,e/380+t.swelling/900),o=e=>Math.min(2,(e/600+t.swelling/900)*i);e.set(`leftEye`,{bruise:a(t.left_eye),swell:o(t.left_eye)}),e.set(`rightEye`,{bruise:a(t.right_eye),swell:o(t.right_eye)}),e.setEyesShut(a_(t.left_eye,t.swelling),a_(t.right_eye,t.swelling));let s=e=>Math.min(1,e/120),c=e=>Math.min(1.4,(e/120+t.bleeding/240)*r);e.set(`leftBrow`,{bruise:Math.min(1,t.left_eye/700),swell:Math.min(1.2,t.left_eye/900)*i,cut:s(t.left_cut),blood:c(t.left_cut)}),e.set(`rightBrow`,{bruise:Math.min(1,t.right_eye/700),swell:Math.min(1.2,t.right_eye/900)*i,cut:s(t.right_cut),blood:c(t.right_cut)});let l=Math.min(1,t.head/950+t.swelling/1100),u=Math.min(o_,t.swelling/520)*i,d=e=>Math.min(1,Math.max(0,e-s_)/350),f=e=>Math.min(1.2,Math.max(0,e-s_+30)/240)*r;e.set(`leftCheek`,{bruise:l*.9,swell:u,cut:d(t.left_cut),blood:f(t.left_cut)}),e.set(`rightCheek`,{bruise:l*.85,swell:u,cut:d(t.right_cut),blood:f(t.right_cut)}),e.set(`nose`,{bruise:Math.min(1,t.head/800),swell:Math.min(.8,t.head/1400)*i,blood:Math.min(1.4,(Math.max(0,t.head-60)/300+t.bleeding/220)*r)}),e.set(`mouth`,{bruise:Math.min(.8,t.head/1100),cut:Math.min(1,Math.max(0,t.head-250)/500),blood:Math.min(1.3,(Math.max(0,t.head-120)/360+t.bleeding/260)*r)}),e.set(`chin`,{bruise:Math.min(.7,t.head/1300)});let p=t.left_eye>=t.right_eye?-1:1;e.setNoseShift(p*Math.min(1.1,Math.max(0,t.head-520)/450)*i),e.set(`leftJaw`,{bruise:Math.min(.9,t.left_eye/900+t.head/1600)}),e.set(`rightJaw`,{bruise:Math.min(.9,t.right_eye/900+t.head/1600)}),e.set(`forehead`,{bruise:Math.min(.6,t.swelling/1200),cut:Math.min(1,Math.max(0,t.swelling-c_)/300),blood:Math.min(1.2,Math.max(0,t.swelling-c_)/220)*r})}function u_(e,t){return Math.min(1,(Math.max(0,e.bleeding-10)/220+Math.max(0,e.left_cut+e.right_cut-60)/650)*r_(t))}function d_(e,t,n){let r=r_(n),i=Math.min(1.1,t.body/620);e.set(`leftRibs`,{bruise:i,swell:Math.min(1,t.body/1300)}),e.set(`rightRibs`,{bruise:i*.9,swell:Math.min(1,t.body/1400)}),e.set(`solarPlexus`,{bruise:Math.min(1,t.body/800)}),e.set(`leftPec`,{bruise:Math.min(.8,t.body/1100)}),e.set(`rightPec`,{bruise:Math.min(.8,t.body/1150)});let a=Math.min(1.4,(t.bleeding/200+(t.left_cut+t.right_cut)/450)*r);e.set(`neckSmear`,{blood:a}),e.set(`leftShoulderSmear`,{blood:Math.min(1.2,t.left_cut/300)*r}),e.set(`rightShoulderSmear`,{blood:Math.min(1.2,t.right_cut/300)*r})}var f_=3.05,p_=3.85,m_=4.05,h_=3.42,g_=h_*.72,__=[.5,.88,1.26];function v_(e){let t=f_/Math.max(1,e.ring_half_width),n=f_/Math.max(1,e.ring_half_height);return{x:e=>e*t,z:e=>-e*n}}var y_={blue:1920728,red:12131356,neutral:15067115},b_=128,x_=4,S_=.12,C_=.82,w_={edge:4851467,core:[`rgba(40,3,6,0.9)`,`rgba(58,5,9,0.65)`,`rgba(70,7,11,0)`]},T_=6,E_=.29,D_=14,O_=e=>()=>(e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296);function k_(e){let t=O_(e);return{lobes:Array.from({length:5+Math.floor(t()*4)},(e,n)=>{let r=t()*Math.PI*2,i=n===0?0:6+t()*12,a=n===0?16+t()*6:8+t()*9;return{x:64+Math.cos(r)*i,y:64+Math.sin(r)*i,rx:a,ry:a*(.55+t()*.45),turn:t()*Math.PI}}),fill:.55+t()*.2,rim:.95,satellites:6+Math.floor(t()*6)}}function A_(e){let t=document.createElement(`canvas`);t.width=b_,t.height=b_;let n=t.getContext(`2d`);if(n!==null){let t=k_(e),r=O_(e^1540483477);n.clearRect(0,0,b_,b_),n.fillStyle=`rgba(255,255,255,1)`,n.strokeStyle=`rgba(255,255,255,1)`,n.globalAlpha=t.rim,n.lineWidth=3.5;for(let e of t.lobes)n.beginPath(),n.ellipse(e.x,e.y,e.rx,e.ry,e.turn,0,Math.PI*2),n.stroke();let i=()=>{n.beginPath();for(let e of t.lobes){let t=Math.max(1,e.rx-1.5);n.moveTo(e.x+Math.cos(e.turn)*t,e.y+Math.sin(e.turn)*t),n.ellipse(e.x,e.y,t,Math.max(1,e.ry-1.5),e.turn,0,Math.PI*2)}n.fill()};n.globalCompositeOperation=`destination-out`,n.globalAlpha=1,i(),n.globalCompositeOperation=`source-over`,n.globalAlpha=t.fill,i();for(let e=0;e{let t=t=>Math.round((e>>t&255)*.8);return`rgb(${t(16)},${t(8)},${t(0)})`},M_=class{scene;size;mesh;canvas;context;texture;source;uploader=null;region=new xf;regionAt=new R;material;geometry;stamps=[];tinted=new Map;pixelsPerMetre;dirty=!1;sinceUpload=0;uploadInterval=S_;painted=0;streakSeed=0;constructor(e,t=1024){this.scene=e,this.size=t,this.canvas=document.createElement(`canvas`),this.canvas.width=t,this.canvas.height=t,this.context=this.canvas.getContext(`2d`),this.context?.clearRect(0,0,t,t);for(let e=0;e3.05||Math.abs(t)>3.05)return;let c=this.context;if(this.painted+=1,this.dirty=!0,this.mesh.visible=!0,c===null)return;let l=this.tintedStamp(o,s),u=this.pixel(e,t),d=Math.max(1,n*this.pixelsPerMetre),f=Math.max(1,r*this.pixelsPerMetre);this.grow(u.x,u.y,Math.hypot(d,f)/2),c.save(),c.globalAlpha=L.clamp(a,0,1),c.translate(u.x,u.y),c.rotate(Number.isFinite(i)?i:0),c.drawImage(l,-d/2,-f/2,d,f),c.restore()}tintedStamp(e,t){let n=this.tinted.get(e);return n===void 0&&(n=this.stamps.map(t=>{let n=document.createElement(`canvas`);n.width=b_,n.height=b_;let r=n.getContext(`2d`);return r!==null&&(r.drawImage(t,0,0),r.globalCompositeOperation=`source-in`,r.fillStyle=j_(e),r.fillRect(0,0,b_,b_)),n}),this.tinted.set(e,n)),n[Math.abs(Math.trunc(t))%x_]}pool(e,t,n,r,i,a=w_){this.stain(e,t,n*2.3,n*2,i*1.7,r*.8,a.edge,i);let o=this.context;if(o===null||Math.abs(e)>3.05||Math.abs(t)>3.05)return;let s=this.pixel(e,t),c=Math.max(1,n*1.15*this.pixelsPerMetre);this.grow(s.x,s.y,c);let l=o.createRadialGradient(s.x,s.y,0,s.x,s.y,c);l.addColorStop(0,a.core[0]),l.addColorStop(.65,a.core[1]),l.addColorStop(1,a.core[2]),o.save(),o.globalAlpha=L.clamp(r,0,1),o.fillStyle=l,o.beginPath(),o.ellipse(s.x,s.y,c,c*.86,i*.9,0,Math.PI*2),o.fill(),o.restore()}streakRandom(){return this.streakSeed=Math.imul(this.streakSeed^this.streakSeed>>>15,1|this.streakSeed),this.streakSeed^=this.streakSeed+Math.imul(this.streakSeed^this.streakSeed>>>7,61|this.streakSeed),((this.streakSeed^this.streakSeed>>>14)>>>0)/4294967296}smear(e,t,n,r,i,a,o){if(!Number.isFinite(e+t+n+r+i)||Math.abs(e)>3.05||Math.abs(t)>3.05)return;let s=this.context;if(this.painted+=1,this.dirty=!0,this.mesh.visible=!0,s===null)return;let c=(e+f_)*this.pixelsPerMetre,l=(t+f_)*this.pixelsPerMetre,u=(L.clamp(n,-f_,f_)+f_)*this.pixelsPerMetre,d=(L.clamp(r,-f_,f_)+f_)*this.pixelsPerMetre,f=Math.max(1,i*this.pixelsPerMetre);this.grow(c,l,f),this.grow(u,d,f);let p=Math.hypot(u-c,d-l),m=p>1e-6?(l-d)/p:1,h=p>1e-6?(u-c)/p:0;this.streakSeed=1374496523^Math.imul(this.painted,40503),s.save(),s.strokeStyle=j_(o),s.lineCap=`round`;for(let e=0;e3.05||Math.abs(t)>3.05)return;let o=this.context;if(this.painted+=1,this.dirty=!0,this.mesh.visible=!0,o===null)return;let s=(e+f_)*this.pixelsPerMetre,c=(t+f_)*this.pixelsPerMetre,l=Math.max(2,E_*this.pixelsPerMetre),u=l*.36;this.grow(s,c,l*.6);let d=(r?-1:1)*u*.06,f=l/D_;o.save(),o.globalAlpha=L.clamp(i,0,1),o.fillStyle=j_(a),o.translate(s,c),o.rotate(-n);for(let e=0;et.min.x&&t.max.y>t.min.y?this.uploader.copyTextureToTexture(this.source,this.texture,t,this.regionAt.copy(t.min)):this.texture.needsUpdate=!0,t.makeEmpty(),this.dirty=!1,this.sinceUpload=0}clear(){this.context?.clearRect(0,0,this.size,this.size),this.painted=0,this.dirty=!1,this.region.makeEmpty(),this.texture.needsUpdate=!0,this.mesh.visible=!1}dispose(){this.scene.remove(this.mesh),this.texture.dispose(),this.source.dispose(),this.material.dispose(),this.geometry.dispose()}};function N_(){let e=new Du(1,2);e.deleteAttribute(`normal`),e.deleteAttribute(`uv`);let t=Xh(e,1e-4);e.dispose();let n=t.getAttribute(`position`),r=new z;for(let e=0;e=120?5:t>=90?3:t>=60?2:+(t>=40):e===`hit`?t>=130?4:t>=100?3:t>=75?2:+(t>=50):0:0}function I_(e,t){return Math.min(800,Math.round(Math.max(0,e)*4.5+Math.max(0,t)*2.8))}var L_=1.1,R_=.6,z_=.35,B_=1.2;function V_(){let e=new Mu(1,8,6),t=e.getAttribute(`position`);for(let e=0;e1+(e-1)*28+t%28;for(let e=0;e<28;e+=1)a.push(0,o(1,e+1),o(1,e));for(let e=1;e<6;e+=1)for(let t=0;t<28;t+=1)a.push(o(e,t),o(e,t+1),o(e+1,t)),a.push(o(e,t+1),o(e+1,t+1),o(e+1,t));let s=new yc;return s.setAttribute(`position`,new sc(r,3)),s.setAttribute(`uv`,new sc(i,2)),s.setIndex(a),s.computeVertexNormals(),s}function J_(e,t){let n=e.getAttribute(`position`),r=e.getIndex();if(r===null)return[];let i=new Map,a=new Int32Array(n.count),o=new Uint8Array(n.count),s=new z;for(let e=0;eo[e]===1);for(let e=0;e<3;e+=1){let r=a[t[e]],o=a[t[(e+1)%3]],s=r=2&&l.push(Math.floor(e/n.count),e%n.count);return l}var Y_=.5,X_=new z,Z_=new z,Q_=new z,$_=new z,ev=new z;function tv(e,t,n){ev.copy(e).addScaledVector(t,-e.dot(t)).multiplyScalar(Y_/n).add(t).normalize()}function nv(e,t,n,r,i=.01,a){let o=Math.floor(t.length/6),s=e.getAttribute(`position`),c=e.getAttribute(`normal`),l=e.getAttribute(`uv`);(s===void 0||c===void 0||l===void 0||s.count!==o*3)&&(s=new ic(new Float32Array(o*9),3).setUsage(Aa),c=new ic(new Float32Array(o*9),3).setUsage(Aa),l=new ic(new Float32Array(o*6),2).setUsage(Aa),e.setAttribute(`position`,s),e.setAttribute(`normal`,c),e.setAttribute(`uv`,l)),X_.set(1,0,0),Math.abs(r.x)>.9&&X_.set(0,0,1),a!==void 0&&a.lengthSq()>1e-8&&Math.abs(a.dot(r))<.95*a.length()&&X_.copy(a),Z_.crossVectors(r,X_).normalize(),X_.crossVectors(Z_,r).normalize();let u=1e-6;for(let e=0;e=0)continue;let i=`${Math.round(s.x*1e5)},${Math.round(s.y*1e5)},${Math.round(s.z*1e5)}`,l=a.get(i)??n;a.set(i,l),o[n]=l}c.multiplyScalar(1/Math.max(1,r.count));for(let e=0;e{let t=e;for(;u.has(t);)t=u.get(t);return t},f=[];for(let[e,t]of l){if(t!==1)continue;f.push(e);let n=d(Math.floor(e/i)),r=d(e%i);n!==r&&u.set(n,r)}let p=new Map;for(let e of f){let t=d(e%i),n=p.get(t)??[];n.push(e),p.set(t,n)}let m=[],h=[],g=[],_=new yc,v=new yc,y=new z,b=new z,x=[];for(let e of p.values()){if(e.length<3)continue;let r=new Float32Array(e.length*6);y.set(0,0,0);let a=0;for(let[o,c]of e.entries()){let e=Math.floor(c/i),l=c%i;y.add(s.fromBufferAttribute(t,e)),s.toArray(r,o*6),y.add(s.fromBufferAttribute(t,l)),s.toArray(r,o*6+3),a+=n===void 0?r[o*6+1]+r[o*6+4]:n.getY(e)+n.getY(l)}y.multiplyScalar(1/(e.length*2));let o=0;for(let e=0;e(n=Math.imul(n^n>>>15,1|n),n^=n+Math.imul(n^n>>>7,61|n),((n^n>>>14)>>>0)/4294967296);for(let e=0;e<46;e+=1){let e=r()*Math.PI*2,n=14+r()*42;t.fillStyle=r()<.5?`rgba(150,28,30,0.55)`:`rgba(40,4,8,0.5)`,t.beginPath(),t.ellipse(64+Math.cos(e)*n,64+Math.sin(e)*n,3+r()*6,2+r()*3,e,0,Math.PI*2),t.fill()}let i=(e,n,r,i)=>{t.fillStyle=i,t.beginPath(),t.arc(e,n,r,0,Math.PI*2),t.fill()};i(64,38,10,`#8f7c64`),i(61,36,4.5,`#6a2a25`),i(66,78,7,`#7a3c34`),i(66,78,4.5,`#150203`),i(41,64,3,`#1d0204`),i(90,69,2.6,`#1d0204`);for(let e=0;e<70;e+=1){let e=r()*Math.PI*2,t=r()*60;i(64+Math.cos(e)*t,64+Math.sin(e)*t,.6+r()*1.6,r()<.4?`rgba(190,60,50,0.5)`:`rgba(20,2,4,0.55)`)}ov(t)}let n=new Wl(e);return n.colorSpace=wa,n}function ov(e){e.lineWidth=7,e.strokeStyle=`rgba(214,178,92,0.85)`,e.beginPath(),e.arc(64,64,55,0,Math.PI*2),e.stroke(),e.lineWidth=4,e.strokeStyle=`#b8775c`,e.beginPath(),e.arc(64,64,61,0,Math.PI*2),e.stroke()}function sv(){let e=document.createElement(`canvas`);e.width=128,e.height=128;let t=e.getContext(`2d`);if(t!==null){let e=t.createRadialGradient(64,64,6,64,64,64);e.addColorStop(0,`#741014`),e.addColorStop(.7,`#52090d`),e.addColorStop(1,`#300407`),t.fillStyle=e,t.fillRect(0,0,128,128);let n=(e,n,r,i)=>{t.fillStyle=i,t.beginPath(),t.arc(e,n,r,0,Math.PI*2),t.fill()};for(let[e,t,r]of[[46,60,13],[84,66,10]])n(e,t,r,`#e4d8c0`),n(e,t,r*.62,`#a4483c`),n(e-r*.2,t-r*.2,r*.25,`rgba(220,110,90,0.6)`);for(let e=0;e<9;e+=1){let t=Math.PI*(.15+e/8*.7);n(64+Math.cos(t)*34,64+Math.sin(t)*34,3.2,`#d9c9b3`)}n(30,84,3.4,`#1a0204`),n(98,46,3,`#1a0204`),n(66,30,2.6,`#1a0204`),ov(t)}let n=new Wl(e);return n.colorSpace=wa,n}function cv(){let e=document.createElement(`canvas`);e.width=128,e.height=128;let t=e.getContext(`2d`);if(t!==null){let e=t.createRadialGradient(64,64,6,64,64,64);e.addColorStop(0,`#7c1218`),e.addColorStop(.7,`#560a0f`),e.addColorStop(1,`#2e0407`),t.fillStyle=e,t.fillRect(0,0,128,128);let n=2135587861,r=()=>(n=Math.imul(n^n>>>15,1|n),n^=n+Math.imul(n^n>>>7,61|n),((n^n>>>14)>>>0)/4294967296);for(let e=0;e<11;e+=1){let n=e/11*Math.PI*2+r()*.3,i=26+r()*12;t.fillStyle=r()<.5?`#8e1c20`:`#6c1016`,t.strokeStyle=`rgba(30,3,6,0.8)`,t.lineWidth=1.6,t.beginPath(),t.ellipse(64+Math.cos(n)*i,64+Math.sin(n)*i,13+r()*5,8+r()*4,n+Math.PI/2,0,Math.PI*2),t.fill(),t.stroke()}let i=(e,n,r,i)=>{t.fillStyle=i,t.beginPath(),t.arc(e,n,r,0,Math.PI*2),t.fill()};i(58,60,15,`#e8dcc4`),i(58,60,9.5,`#a8463a`),i(55,57,3.5,`rgba(226,116,96,0.65)`),i(82,70,4.2,`#170204`),i(80,80,3,`#3a0a2a`),i(88,62,2.2,`#e0d2a0`);for(let e=0;e<70;e+=1){let e=r()*Math.PI*2,t=18+r()*40;i(64+Math.cos(e)*t,64+Math.sin(e)*t,.6+r()*1.5,r()<.4?`rgba(200,70,56,0.5)`:`rgba(20,2,4,0.55)`)}ov(t)}let n=new Wl(e);return n.colorSpace=wa,n}function lv(){let e=document.createElement(`canvas`);e.width=128,e.height=128;let t=e.getContext(`2d`);if(t!==null){t.fillStyle=`#3c060a`,t.fillRect(0,0,128,128);let e=461845907,n=()=>(e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296),r=(e,n,r,i,a,o,s)=>{t.fillStyle=o,t.beginPath(),t.ellipse(e,n,r,i,a,0,Math.PI*2),t.fill(),s!==void 0&&(t.strokeStyle=s,t.lineWidth=1.4,t.stroke())};t.strokeStyle=`#7c151a`,t.lineWidth=12,t.beginPath(),t.arc(64,64,46,0,Math.PI*2),t.stroke(),r(40,30,13,9,.5,`#8a1c20`,`rgba(30,3,6,0.8)`),r(88,30,13,9,-.5,`#8a1c20`,`rgba(30,3,6,0.8)`),r(40,58,15,10,.4,`#4a1410`);for(let e=0;e<15;e+=1){let e=n()*Math.PI*2,t=n()*25,i=68+Math.cos(e)*t,a=74+Math.sin(e)*t*.8,o=6+n()*4;r(i,a,o,o*(.7+n()*.3),n()*Math.PI,`#d49a98`,`rgba(110,30,36,0.9)`),r(i,a,o*.45,o*.35,n()*Math.PI,n()<.4?`#6a5a14`:`#3a070b`)}r(64,26,11,9,0,`#e6dac2`),r(64,26,7,5.5,0,`#b4594a`),r(64,13,4,3.4,0,`#efe6c8`,`#8a7c60`),r(57,40,4.4,4.4,0,`#160204`,`#a03038`),r(71,40,4,3.4,0,`#2a0a2c`);for(let e=0;e<80;e+=1){let e=n()*Math.PI*2,t=n()*54;r(64+Math.cos(e)*t,64+Math.sin(e)*t,.6+n()*1.6,.6+n()*1.6,0,n()<.3?`rgba(226,190,90,0.6)`:n()<.5?`rgba(190,50,44,0.5)`:`rgba(20,2,4,0.55)`)}ov(t)}let n=new Wl(e);return n.colorSpace=wa,n}function uv(){let e=.09,t=[];for(let e=0;e<9;e+=1){let n=e/9*Math.PI*2,r=.32*(.62+.38*Math.abs(Math.sin(e*2.3+.4)));t.push([Math.cos(n)*r,Math.sin(n)*r])}let n=(t,n,r)=>{let i=Math.hypot(t,n,1);return[t/i*r,n/i*r,1/i*r-e]},r=[],i=[],a=[.07,.035,.025],o=[.78,.7,.58],s=[.42,.05,.05],c=(e,t,n,a)=>{r.push(...e,...t,...n);for(let e=0;e<3;e+=1)i.push(...a)};for(let r=0;r<9;r+=1){let[i,l]=t[r],[u,d]=t[(r+1)%9];c(n(0,0,e),n(i,l,e),n(u,d,e),a),c(n(0,0,.08299999999999999),n(u,d,.08299999999999999),n(i,l,.08299999999999999),r%3==0?o:s),c(n(i,l,e),n(i,l,.08299999999999999),n(u,d,e),o),c(n(u,d,e),n(i,l,.08299999999999999),n(u,d,.08299999999999999),o)}let l=new yc;return l.setAttribute(`position`,new sc(r,3)),l.setAttribute(`color`,new sc(i,3)),l.computeVertexNormals(),l.computeBoundingSphere(),l}function dv(){let e=document.createElement(`canvas`);e.width=128,e.height=128;let t=e.getContext(`2d`);if(t!==null){let e=t.createRadialGradient(64,60,6,64,64,66);e.addColorStop(0,`#7a1016`),e.addColorStop(.75,`#530a0e`),e.addColorStop(1,`#300408`),t.fillStyle=e,t.fillRect(0,0,128,128),t.fillStyle=`#8a2a2e`,t.beginPath(),t.ellipse(64,50,22,17,0,0,Math.PI*2),t.fill(),t.fillStyle=`rgba(220,120,120,0.35)`,t.beginPath(),t.ellipse(60,45,9,5,-.3,0,Math.PI*2),t.fill(),t.strokeStyle=`#a99c86`,t.lineWidth=5,t.beginPath(),t.ellipse(64,62,50,50,0,Math.PI*.08,Math.PI*.92),t.stroke();for(let e=0;e<12;e+=1){let n=Math.PI*(.14+e/11*.72);t.save(),t.translate(64+Math.cos(n)*42,62+Math.sin(n)*42),t.rotate(n+Math.PI/2),t.fillStyle=e%5==2?`#3a0508`:`#ece4cf`,t.fillRect(-3.5,-4.5,7,9),t.restore()}let n=625341585,r=()=>(n=Math.imul(n^n>>>15,1|n),n^=n+Math.imul(n^n>>>7,61|n),((n^n>>>14)>>>0)/4294967296);for(let e=0;e<60;e+=1)t.fillStyle=r()<.5?`rgba(150,20,24,0.6)`:`rgba(20,2,4,0.5)`,t.beginPath(),t.arc(r()*128,r()*128,.8+r()*2.2,0,Math.PI*2),t.fill();ov(t)}let n=new Wl(e);return n.colorSpace=wa,n}function fv(){let e=document.createElement(`canvas`);e.width=128,e.height=64;let t=e.getContext(`2d`);if(t!==null){let e=t.createLinearGradient(0,0,128,0);e.addColorStop(0,`#e9ddd4`),e.addColorStop(.42,`#e9ddd4`),e.addColorStop(.62,`#8a2a2c`),e.addColorStop(.85,`#4a070b`),e.addColorStop(1,`#e9ddd4`),t.fillStyle=e,t.fillRect(0,0,128,64),t.strokeStyle=`rgba(170,20,26,0.75)`,t.lineWidth=.8;for(let e=0;e<14;e+=1){let n=e/14*Math.PI*2;t.beginPath(),t.moveTo(32+Math.cos(n)*30,32+Math.sin(n)*26),t.quadraticCurveTo(32+Math.cos(n+.3)*20,32+Math.sin(n+.3)*18,32+Math.cos(n)*11,32+Math.sin(n)*11),t.stroke()}let n=t.createRadialGradient(32,32,2,32,32,9);n.addColorStop(0,`#6b4524`),n.addColorStop(.8,`#4a2d14`),n.addColorStop(1,`#1e1208`),t.fillStyle=n,t.beginPath(),t.arc(32,32,9,0,Math.PI*2),t.fill(),t.fillStyle=`#050302`,t.beginPath(),t.arc(32,32,4,0,Math.PI*2),t.fill(),t.fillStyle=`rgba(255,255,255,0.85)`,t.beginPath(),t.arc(29.5,29.5,1.4,0,Math.PI*2),t.fill()}let n=new Wl(e);return n.colorSpace=wa,n}function pv(e){let t=new Map,n=new Map,r=e.clone();return mv(e,r,function(e,r){t.set(r,e),n.set(e,r)}),r.traverse(function(e){if(!e.isSkinnedMesh)return;let r=e,i=t.get(e),a=i.skeleton.bones;r.skeleton=i.skeleton.clone(),r.bindMatrix.copy(i.bindMatrix),r.skeleton.bones=a.map(function(e){return n.get(e)}),r.bind(r.skeleton,r.bindMatrix)}),r}function mv(e,t,n){n(e,t);for(let r=0;r=2.0 are supported.`));return}let c=new fy(i,{path:t||this.resourcePath||``,crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});c.fileLoader.setRequestHeader(this.requestHeader);for(let e=0;e=0&&o[t]===void 0&&console.warn(`THREE.GLTFLoader: Unknown extension "`+t+`".`)}}c.setExtensions(a),c.setPlugins(o),c.parse(n,r)}parseAsync(e,t){let n=this;return new Promise(function(r,i){n.parse(e,t,r,i)})}};function gv(){let e={};return{get:function(t){return e[t]},add:function(t,n){e[t]=n},remove:function(t){delete e[t]},removeAll:function(){e={}}}}function _v(e,t,n){let r=e.json.materials[t];return r.extensions&&r.extensions[n]?r.extensions[n]:null}var vv={KHR_BINARY_GLTF:`KHR_binary_glTF`,KHR_DRACO_MESH_COMPRESSION:`KHR_draco_mesh_compression`,KHR_LIGHTS_PUNCTUAL:`KHR_lights_punctual`,KHR_MATERIALS_CLEARCOAT:`KHR_materials_clearcoat`,KHR_MATERIALS_DISPERSION:`KHR_materials_dispersion`,KHR_MATERIALS_IOR:`KHR_materials_ior`,KHR_MATERIALS_SHEEN:`KHR_materials_sheen`,KHR_MATERIALS_SPECULAR:`KHR_materials_specular`,KHR_MATERIALS_TRANSMISSION:`KHR_materials_transmission`,KHR_MATERIALS_IRIDESCENCE:`KHR_materials_iridescence`,KHR_MATERIALS_ANISOTROPY:`KHR_materials_anisotropy`,KHR_MATERIALS_UNLIT:`KHR_materials_unlit`,KHR_MATERIALS_VOLUME:`KHR_materials_volume`,KHR_TEXTURE_BASISU:`KHR_texture_basisu`,KHR_TEXTURE_TRANSFORM:`KHR_texture_transform`,KHR_MESH_QUANTIZATION:`KHR_mesh_quantization`,KHR_MATERIALS_EMISSIVE_STRENGTH:`KHR_materials_emissive_strength`,EXT_MATERIALS_BUMP:`EXT_materials_bump`,EXT_TEXTURE_WEBP:`EXT_texture_webp`,EXT_TEXTURE_AVIF:`EXT_texture_avif`,EXT_MESHOPT_COMPRESSION:`EXT_meshopt_compression`,KHR_MESHOPT_COMPRESSION:`KHR_meshopt_compression`,EXT_MESH_GPU_INSTANCING:`EXT_mesh_gpu_instancing`},yv=class{constructor(e){this.parser=e,this.name=vv.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){let e=this.parser,t=this.parser.json.nodes||[];for(let n=0,r=t.length;n=0)throw Error(`THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures`);return null}return t.loadTextureImage(e,i.source,a)}},Nv=class{constructor(e){this.parser=e,this.name=vv.EXT_TEXTURE_WEBP}loadTexture(e){let t=this.name,n=this.parser,r=n.json,i=r.textures[e];if(!i.extensions||!i.extensions[t])return null;let a=i.extensions[t],o=r.images[a.source],s=n.textureLoader;if(o.uri){let e=n.options.manager.getHandler(o.uri);e!==null&&(s=e)}return n.loadTextureImage(e,a.source,s)}},Pv=class{constructor(e){this.parser=e,this.name=vv.EXT_TEXTURE_AVIF}loadTexture(e){let t=this.name,n=this.parser,r=n.json,i=r.textures[e];if(!i.extensions||!i.extensions[t])return null;let a=i.extensions[t],o=r.images[a.source],s=n.textureLoader;if(o.uri){let e=n.options.manager.getHandler(o.uri);e!==null&&(s=e)}return n.loadTextureImage(e,a.source,s)}},Fv=class{constructor(e,t){this.name=t,this.parser=e}loadBufferView(e){let t=this.parser.json,n=t.bufferViews[e];if(n.extensions&&n.extensions[this.name]){let e=n.extensions[this.name],r=this.parser.getDependency(`buffer`,e.buffer),i=this.parser.options.meshoptDecoder;if(!i||!i.supported){if(t.extensionsRequired&&t.extensionsRequired.indexOf(this.name)>=0)throw Error(`THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files`);return null}return r.then(function(t){let n=e.byteOffset||0,r=e.byteLength||0,a=e.count,o=e.byteStride,s=new Uint8Array(t,n,r);return i.decodeGltfBufferAsync?i.decodeGltfBufferAsync(a,o,s,e.mode,e.filter).then(function(e){return e.buffer}):i.ready.then(function(){let t=new ArrayBuffer(a*o);return i.decodeGltfBuffer(new Uint8Array(t),a,o,s,e.mode,e.filter),t})})}return null}},Iv=class{constructor(e){this.name=vv.EXT_MESH_GPU_INSTANCING,this.parser=e}createNodeMesh(e){let t=this.parser.json,n=t.nodes[e];if(!n.extensions||!n.extensions[this.name]||n.mesh===void 0)return null;let r=t.meshes[n.mesh];for(let e of r.primitives)if(e.mode!==qv.TRIANGLES&&e.mode!==qv.TRIANGLE_STRIP&&e.mode!==qv.TRIANGLE_FAN&&e.mode!==void 0)return null;let i=n.extensions[this.name].attributes,a=[],o={};for(let e in i)a.push(this.parser.getDependency(`accessor`,i[e]).then(t=>(o[e]=t,o[e])));return a.length<1?null:(a.push(this.parser.createNodeMesh(e)),Promise.all(a).then(e=>{let t=e.pop(),n=t.isGroup?t.children:[t],r=e[0].count,i=[];for(let e of n){let t=new Ho,n=new z,a=new vo,s=new z(1,1,1),c=new _l(e.geometry,e.material,r);for(let e=0;e0||e.search(/^data\:image\/jpeg/)===0?`image/jpeg`:e.search(/\.webp($|\?)/i)>0||e.search(/^data\:image\/webp/)===0?`image/webp`:e.search(/\.ktx2($|\?)/i)>0||e.search(/^data\:image\/ktx2/)===0?`image/ktx2`:`image/png`}var dy=new Ho,fy=class{constructor(e={},t={}){this.json=e,this.extensions={},this.plugins={},this.options=t,this.cache=new gv,this.associations=new Map,this.primitiveCache={},this.nodeCache={},this.meshCache={refs:{},uses:{}},this.cameraCache={refs:{},uses:{}},this.lightCache={refs:{},uses:{}},this.sourceCache={},this.textureCache={},this.nodeNamesUsed={};let n=!1,r=-1,i=!1,a=-1;if(typeof navigator<`u`&&navigator.userAgent!==void 0){let e=navigator.userAgent;n=/^((?!chrome|android).)*safari/i.test(e)===!0;let t=e.match(/Version\/(\d+)/);r=n&&t?parseInt(t[1],10):-1,i=e.indexOf(`Firefox`)>-1,a=i?e.match(/Firefox\/([0-9]+)\./)[1]:-1}this.textureLoader=typeof createImageBitmap>`u`||n&&r<17||i&&a<98?new Ad(this.options.manager):new ef(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new Dd(this.options.manager),this.fileLoader.setResponseType(`arraybuffer`),this.options.crossOrigin===`use-credentials`&&this.fileLoader.setWithCredentials(!0)}setExtensions(e){this.extensions=e}setPlugins(e){this.plugins=e}parse(e,t){let n=this,r=this.json,i=this.extensions;this.cache.removeAll(),this.nodeCache={},this._invokeAll(function(e){return e._markDefs&&e._markDefs()}),Promise.all(this._invokeAll(function(e){return e.beforeRoot&&e.beforeRoot()})).then(function(){return Promise.all([n.getDependencies(`scene`),n.getDependencies(`animation`),n.getDependencies(`camera`)])}).then(function(t){let a={scene:t[0][r.scene||0],scenes:t[0],animations:t[1],cameras:t[2],asset:r.asset,parser:n,userData:{}};return ry(i,a,r),iy(a,r),Promise.all(n._invokeAll(function(e){return e.afterRoot&&e.afterRoot(a)})).then(function(){for(let e of a.scenes)e.updateMatrixWorld();e(a)})}).catch(t)}_markDefs(){let e=this.json.nodes||[],t=this.json.skins||[],n=this.json.meshes||[];for(let n=0,r=t.length;n{let n=this.associations.get(e);n!=null&&this.associations.set(t,n);for(let[n,r]of e.children.entries())i(r,t.children[n])};return i(n,r),r.name+=`_instance_`+e.uses[t]++,r}_invokeOne(e){let t=Object.values(this.plugins);t.push(this);for(let n=0;n=2&&p.setY(t,u[e*a+1]),a>=3&&p.setZ(t,u[e*a+2]),a>=4&&p.setW(t,u[e*a+3]),a>=5)throw Error(`THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.`)}p.normalized=d}return p})}loadTexture(e){let t=this.json,n=this.options,r=t.textures[e].source,i=t.images[r],a=this.textureLoader;if(i.uri){let e=n.manager.getHandler(i.uri);e!==null&&(a=e)}return this.loadTextureImage(e,r,a)}loadTextureImage(e,t,n){let r=this,i=this.json,a=i.textures[e],o=i.images[t],s=(o.uri||o.bufferView)+`:`+a.sampler;if(this.textureCache[s])return this.textureCache[s];let c=this.loadImageSource(t,n).then(function(t){t.flipY=!1,t.name=a.name||o.name||``,t.name===``&&typeof o.uri==`string`&&o.uri.startsWith(`data:image/`)===!1&&(t.name=o.uri);let n=(i.samplers||{})[a.sampler]||{};return t.magFilter=Yv[n.magFilter]||1006,t.minFilter=Yv[n.minFilter]||1008,t.wrapS=Xv[n.wrapS]||1e3,t.wrapT=Xv[n.wrapT]||1e3,t.generateMipmaps=!t.isCompressedTexture&&t.minFilter!==1003&&t.minFilter!==1006,r.associations.set(t,{textures:e}),t}).catch(function(){return null});return this.textureCache[s]=c,c}loadImageSource(e,t){let n=this,r=this.json,i=this.options;if(this.sourceCache[e]!==void 0)return this.sourceCache[e].then(e=>e.clone());let a=r.images[e],o=self.URL||self.webkitURL,s=a.uri||``,c=!1;if(a.bufferView!==void 0)s=n.getDependency(`bufferView`,a.bufferView).then(function(e){c=!0;let t=new Blob([e],{type:a.mimeType});return s=o.createObjectURL(t),s});else if(a.uri===void 0)throw Error(`THREE.GLTFLoader: Image `+e+` is missing URI and bufferView`);let l=Promise.resolve(s).then(function(e){return new Promise(function(n,r){let a=n;t.isImageBitmapLoader===!0&&(a=function(e){let t=new Io(e);t.needsUpdate=!0,n(t)}),t.load(Qd.resolveURL(e,i.path),a,void 0,r)})}).then(function(e){return c===!0&&o.revokeObjectURL(s),iy(e,a),e.userData.mimeType=a.mimeType||uy(a.uri),e}).catch(function(e){throw console.error(`THREE.GLTFLoader: Couldn't load texture`,s),e});return this.sourceCache[e]=l,l}assignTexture(e,t,n,r){let i=this;return this.getDependency(`texture`,n.index).then(function(a){if(!a)return null;if(n.texCoord!==void 0&&n.texCoord>0&&(a=a.clone(),a.channel=n.texCoord),i.extensions[vv.KHR_TEXTURE_TRANSFORM]){let e=n.extensions===void 0?void 0:n.extensions[vv.KHR_TEXTURE_TRANSFORM];if(e){let t=i.associations.get(a);a=i.extensions[vv.KHR_TEXTURE_TRANSFORM].extendTexture(a,e),i.associations.set(a,t)}}return r!==void 0&&(a.colorSpace=r),e[t]=a,a})}assignFinalMaterial(e){let t=e.geometry,n=e.material,r=t.attributes.tangent===void 0,i=t.attributes.color!==void 0,a=t.attributes.normal===void 0;if(e.isPoints){let e=`PointsMaterial:`+n.uuid,t=this.cache.get(e);t||(t=new Il,Oc.prototype.copy.call(t,n),t.color.copy(n.color),t.map=n.map,t.sizeAttenuation=!1,this.cache.add(e,t)),n=t}else if(e.isLine){let e=`LineBasicMaterial:`+n.uuid,t=this.cache.get(e);t||(t=new Sl,Oc.prototype.copy.call(t,n),t.color.copy(n.color),t.map=n.map,this.cache.add(e,t)),n=t}if(r||i||a){let e=`ClonedMaterial:`+n.uuid+`:`;r&&(e+=`derivative-tangents:`),i&&(e+=`vertex-colors:`),a&&(e+=`flat-shading:`);let t=this.cache.get(e);t||(t=n.clone(),i&&(t.vertexColors=!0),a&&(t.flatShading=!0),r&&(t.normalScale&&(t.normalScale.y*=-1),t.clearcoatNormalScale&&(t.clearcoatNormalScale.y*=-1)),this.cache.add(e,t),this.associations.set(t,this.associations.get(n))),n=t}e.material=n}getMaterialType(){return Ku}loadMaterial(e){let t=this,n=this.json,r=this.extensions,i=n.materials[e],a,o={},s=i.extensions||{},c=[];if(s[vv.KHR_MATERIALS_UNLIT]){let e=r[vv.KHR_MATERIALS_UNLIT];a=e.getMaterialType(),c.push(e.extendParams(o,i,t))}else{let n=i.pbrMetallicRoughness||{};if(o.color=new B(1,1,1),o.opacity=1,Array.isArray(n.baseColorFactor)){let e=n.baseColorFactor;o.color.setRGB(e[0],e[1],e[2],Ta),o.opacity=e[3]}n.baseColorTexture!==void 0&&c.push(t.assignTexture(o,`map`,n.baseColorTexture,wa)),o.metalness=n.metallicFactor===void 0?1:n.metallicFactor,o.roughness=n.roughnessFactor===void 0?1:n.roughnessFactor,n.metallicRoughnessTexture!==void 0&&(c.push(t.assignTexture(o,`metalnessMap`,n.metallicRoughnessTexture)),c.push(t.assignTexture(o,`roughnessMap`,n.metallicRoughnessTexture))),a=this._invokeOne(function(t){return t.getMaterialType&&t.getMaterialType(e)}),c.push(Promise.all(this._invokeAll(function(t){return t.extendMaterialParams&&t.extendMaterialParams(e,o)})))}i.doubleSided===!0&&(o.side=2);let l=i.alphaMode||ty.OPAQUE;if(l===ty.BLEND?(o.transparent=!0,o.depthWrite=!1):(o.transparent=!1,l===ty.MASK&&(o.alphaTest=i.alphaCutoff===void 0?.5:i.alphaCutoff)),i.normalTexture!==void 0&&a!==Pc&&(c.push(t.assignTexture(o,`normalMap`,i.normalTexture)),o.normalScale=new R(1,1),i.normalTexture.scale!==void 0)){let e=i.normalTexture.scale;o.normalScale.set(e,e)}if(i.occlusionTexture!==void 0&&a!==Pc&&(c.push(t.assignTexture(o,`aoMap`,i.occlusionTexture)),i.occlusionTexture.strength!==void 0&&(o.aoMapIntensity=i.occlusionTexture.strength)),i.emissiveFactor!==void 0&&a!==Pc){let e=i.emissiveFactor;o.emissive=new B().setRGB(e[0],e[1],e[2],Ta)}return i.emissiveTexture!==void 0&&a!==Pc&&c.push(t.assignTexture(o,`emissiveMap`,i.emissiveTexture,wa)),Promise.all(c).then(function(){let n=new a(o);return i.name&&(n.name=i.name),iy(n,i),t.associations.set(n,{materials:e}),i.extensions&&ry(r,n,i),n})}createUniqueName(e){let t=yf.sanitizeNodeName(e||``);return t in this.nodeNamesUsed?t+`_`+ ++this.nodeNamesUsed[t]:(this.nodeNamesUsed[t]=0,t)}loadGeometries(e){let t=this,n=this.extensions,r=this.primitiveCache;function i(e){return n[vv.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(e,t).then(function(n){return my(n,e,t)})}let a=[];for(let n=0,o=e.length;nZh(e,1)):o.mode===qv.TRIANGLE_FAN&&(e=e.then(e=>Zh(e,2))),r[s]={primitive:o,promise:e},a.push(e)}}return Promise.all(a)}loadMesh(e){let t=this,n=this.json,r=this.extensions,i=n.meshes[e],a=i.primitives,o=[];for(let e=0,t=a.length;e0&&oy(d,i),d.name=t.createUniqueName(i.name||`mesh_`+e),iy(d,i),u.extensions&&ry(r,d,u),t.assignFinalMaterial(d),c.push(d)}for(let n=0,r=c.length;n0){let e=t.userData.pivot,r=n[0];t.pivot=new z().fromArray(e),t.position.x-=e[0],t.position.y-=e[1],t.position.z-=e[2],r.position.set(0,0,0),delete t.userData.pivot}return t})}_loadNodeShallow(e){let t=this.json,n=this.extensions,r=this;if(this.nodeCache[e]!==void 0)return this.nodeCache[e];let i=t.nodes[e],a=i.name?r.createUniqueName(i.name):``,o=[],s=r._invokeOne(function(t){return t.createNodeMesh&&t.createNodeMesh(e)});return s&&o.push(s),i.camera!==void 0&&o.push(r.getDependency(`camera`,i.camera).then(function(e){return r._getNodeRef(r.cameraCache,i.camera,e)})),r._invokeAll(function(t){return t.createNodeAttachment&&t.createNodeAttachment(e)}).forEach(function(e){o.push(e)}),this.nodeCache[e]=Promise.all(o).then(function(t){let o;if(o=i.isBone===!0?new il:t.length>1?new gs:t.length===1?t[0]:new hs,o!==t[0])for(let e=0,n=t.length;e1){let e=r.associations.get(o);r.associations.set(o,{...e})}return r.associations.get(o).nodes=e,o}),this.nodeCache[e]}loadScene(e){let t=this.extensions,n=this.json.scenes[e],r=this,i=new gs;n.name&&(i.name=r.createUniqueName(n.name)),iy(i,n),n.extensions&&ry(t,i,n);let a=n.nodes||[],o=[];for(let e=0,t=a.length;e{let t=new Map;for(let[e,n]of r.associations)(e instanceof Oc||e instanceof Io)&&t.set(e,n);return e.traverse(e=>{let n=r.associations.get(e);n!=null&&t.set(e,n)}),t})(i),i})}_createAnimationTracks(e,t,n,r,i){let a=[],o=e.name?e.name:e.uuid,s=[];function c(e){e.morphTargetInfluences&&s.push(e.name?e.name:e.uuid)}$v[i.path]===$v.weights?(c(e),e.isGroup&&e.children.forEach(c)):s.push(o);let l;switch($v[i.path]){case $v.weights:l=pd;break;case $v.rotation:l=hd;break;case $v.translation:case $v.scale:l=_d;break;default:switch(n.itemSize){case 1:l=pd;break;default:l=_d}}let u=r.interpolation===void 0?ga:ey[r.interpolation],d=this._getArrayFromAccessor(n);for(let e=0,n=s.length;e`,`#include \nvarying vec3 vInjuryPos;\n${Wg}\n#ifdef ${S_}\n${g_(r)}\n#endif`).replace(`#include `,`#include \n#ifdef ${S_}\nif (vInjuryPos.y > injuryCutLine(vInjuryPos)) discard;\nif (injuryGone(vInjuryPos) > 0.0) discard;\n#endif`)},t.customProgramCacheKey=()=>`hands-injury-shadow${r?`-body`:``}`,e&&(t.defines={[S_]:``}),t}setWound(e,t){this.uniforms.uInjuryWound.value[B_(this.wounds,e)]=R.clamp(t,0,1)||0,this.refresh()}wound(e){return this.uniforms.uInjuryWound.value[B_(this.wounds,e)]}setGone(e,t){this.uniforms.uInjuryGone.value[B_(this.cuts,e)]=R.clamp(t,0,2)||0,this.refresh()}gone(e){return this.uniforms.uInjuryGone.value[B_(this.cuts,e)]}setExplicit(e){this.uniforms.uInjuryExplicit.value=+!!e}get explicit(){return this.uniforms.uInjuryExplicit.value>0}setPallor(e){let t=R.clamp(e,0,1)||0;t!==this.uniforms.uInjuryPallor.value&&(this.uniforms.uInjuryPallor.value=t,this.refresh())}get pallor(){return this.uniforms.uInjuryPallor.value}raise(e,t,n=0,r=0){let i=this.slot(e),a=this.uniforms;a.uInjuryBruise.value[i]=Math.max(a.uInjuryBruise.value[i],Math.min(t,1.2)),a.uInjuryBlood.value[i]=Math.max(a.uInjuryBlood.value[i],Math.min(n,1.4));let o=a.uInjuryCut.value[i];o.y=Math.max(o.y,Math.min(r,1))}copyFrom(e){let t=e.uniforms,n=this.uniforms;n.uInjuryBruise.value.set(t.uInjuryBruise.value),n.uInjurySwell.value.set(t.uInjurySwell.value),n.uInjuryBlood.value.set(t.uInjuryBlood.value);for(let[e,r]of n.uInjuryCut.value.entries())r.y=t.uInjuryCut.value[e]?.y??0;for(let[e,r]of n.uInjuryLid.value.entries())r.w=t.uInjuryLid.value[e]?.w??0;n.uInjuryEyeOut.value.copy(t.uInjuryEyeOut.value),n.uInjuryNose.value.copy(t.uInjuryNose.value),n.uInjuryJaw.value=t.uInjuryJaw.value,n.uInjuryWetness.value=t.uInjuryWetness.value,n.uInjuryRaw.value=t.uInjuryRaw.value,n.uInjuryImpactPush.value.set(0,0,0),n.uInjuryWound.value.set(t.uInjuryWound.value),n.uInjuryGone.value.set(t.uInjuryGone.value),n.uInjuryExplicit.value=t.uInjuryExplicit.value,n.uInjuryPallor.value=t.uInjuryPallor.value;for(let[e,r]of n.uInjuryMark.value.entries())r.copy(t.uInjuryMark.value[e]);n.uInjurySpatter.value=t.uInjurySpatter.value,n.uInjuryRun.value=t.uInjuryRun.value,this.refresh()}setBindToPart(e){this.uniforms.uInjuryBindToPart.value.copy(e)}setRawCuts(e){this.uniforms.uInjuryRaw.value=R.clamp(e,0,1)||0}setJaw(e){this.uniforms.uInjuryJaw.value=R.clamp(e,0,1)}setEyesShut(e,t){let[n,r]=this.uniforms.uInjuryLid.value;n.y>-500&&(n.w=R.clamp(e,0,1)||0),r.y>-500&&(r.w=R.clamp(t,0,1)||0)}setEyeOut(e){let t=this.uniforms.uInjuryLid.value,n=(e===`left`||e===`both`)&&t[0].y>-500,r=(e===`right`||e===`both`)&&t[1].y>-500;this.uniforms.uInjuryEyeOut.value.set(+!!n,+!!r),this.index.has(`leftEye`)&&this.set(`leftEye`,{blood:n?1.3:0}),this.index.has(`rightEye`)&&this.set(`rightEye`,{blood:r?1.3:0})}get eyeOut(){let e=this.uniforms.uInjuryEyeOut.value;return e.x>0&&e.y>0?`both`:e.x>0?`left`:e.y>0?`right`:null}get eyesShut(){return[this.uniforms.uInjuryLid.value[0].w,this.uniforms.uInjuryLid.value[1].w]}clear(){this.uniforms.uInjuryBruise.value.fill(0),this.uniforms.uInjurySwell.value.fill(0),this.uniforms.uInjuryBlood.value.fill(0);for(let e of this.uniforms.uInjuryCut.value)e.y=0;this.uniforms.uInjuryJaw.value=0;for(let e of this.uniforms.uInjuryLid.value)e.w=0;this.uniforms.uInjuryEyeOut.value.set(0,0),this.uniforms.uInjuryNose.value.w=0,this.uniforms.uInjuryImpactPush.value.set(0,0,0),this.uniforms.uInjuryWound.value.fill(0),this.uniforms.uInjuryGone.value.fill(0),this.uniforms.uInjuryPallor.value=0;for(let e of this.uniforms.uInjuryMark.value)e.set(0,0,0,0);this.uniforms.uInjurySpatter.value=0,this.uniforms.uInjuryRun.value=1,this.refresh()}level(e){let t=this.slot(e);return{bruise:this.uniforms.uInjuryBruise.value[t],swell:this.uniforms.uInjurySwell.value[t],cut:this.uniforms.uInjuryCut.value[t].y,blood:this.uniforms.uInjuryBlood.value[t]}}};function B_(e,t){let n=e.indexOf(t);if(n<0)throw Error(`unknown injury ${t}`);return n}function V_(e,t,n){let r=e.defines??={};delete r[x_],delete r[S_],t&&(r[x_]=``),n&&(r[S_]=``),e.side=n?2:0,e.needsUpdate=!0}var H_=e=>e===`off`?0:e===`reduced`?.2:1.5,U_=330;function W_(e,t){return R.clamp((e-U_)/(p-U_)+Math.max(0,t-200)/1600,0,1)}var G_=1.8,K_=150,q_=240;function J_(e,t,n){let r=H_(n),i=n===`full`?1:.6;e.setRawCuts(n===`full`?1:n===`reduced`?.6:0);let a=e=>Math.min(1.2,e/380+t.swelling/900),o=e=>Math.min(2,(e/600+t.swelling/900)*i);e.set(`leftEye`,{bruise:a(t.left_eye),swell:o(t.left_eye)}),e.set(`rightEye`,{bruise:a(t.right_eye),swell:o(t.right_eye)}),e.setEyesShut(W_(t.left_eye,t.swelling),W_(t.right_eye,t.swelling));let s=e=>Math.min(1,e/120),c=e=>Math.min(1.4,(e/120+t.bleeding/240)*r);e.set(`leftBrow`,{bruise:Math.min(1,t.left_eye/700),swell:Math.min(1.2,t.left_eye/900)*i,cut:s(t.left_cut),blood:c(t.left_cut)}),e.set(`rightBrow`,{bruise:Math.min(1,t.right_eye/700),swell:Math.min(1.2,t.right_eye/900)*i,cut:s(t.right_cut),blood:c(t.right_cut)});let l=Math.min(1,t.head/950+t.swelling/1100),u=Math.min(G_,t.swelling/520)*i,d=e=>Math.min(1,Math.max(0,e-K_)/350),f=e=>Math.min(1.2,Math.max(0,e-K_+30)/240)*r;e.set(`leftCheek`,{bruise:l*.9,swell:u,cut:d(t.left_cut),blood:f(t.left_cut)}),e.set(`rightCheek`,{bruise:l*.85,swell:u,cut:d(t.right_cut),blood:f(t.right_cut)}),e.set(`nose`,{bruise:Math.min(1,t.head/800),swell:Math.min(.8,t.head/1400)*i,blood:Math.min(1.4,(Math.max(0,t.head-60)/300+t.bleeding/220)*r)}),e.set(`mouth`,{bruise:Math.min(.8,t.head/1100),cut:Math.min(1,Math.max(0,t.head-250)/500),blood:Math.min(1.3,(Math.max(0,t.head-120)/360+t.bleeding/260)*r)}),e.set(`chin`,{bruise:Math.min(.7,t.head/1300)});let p=t.left_eye>=t.right_eye?-1:1;e.setNoseShift(p*Math.min(1.1,Math.max(0,t.head-520)/450)*i),e.set(`leftJaw`,{bruise:Math.min(.9,t.left_eye/900+t.head/1600)}),e.set(`rightJaw`,{bruise:Math.min(.9,t.right_eye/900+t.head/1600)}),e.set(`forehead`,{bruise:Math.min(.6,t.swelling/1200),cut:Math.min(1,Math.max(0,t.swelling-q_)/300),blood:Math.min(1.2,Math.max(0,t.swelling-q_)/220)*r})}function Y_(e,t){return Math.min(1,(Math.max(0,e.bleeding-10)/220+Math.max(0,e.left_cut+e.right_cut-60)/650)*H_(t))}function X_(e,t,n){let r=H_(n),i=Math.min(1.1,t.body/620);e.set(`leftRibs`,{bruise:i,swell:Math.min(1,t.body/1300)}),e.set(`rightRibs`,{bruise:i*.9,swell:Math.min(1,t.body/1400)}),e.set(`solarPlexus`,{bruise:Math.min(1,t.body/800)}),e.set(`leftPec`,{bruise:Math.min(.8,t.body/1100)}),e.set(`rightPec`,{bruise:Math.min(.8,t.body/1150)});let a=Math.min(1.4,(t.bleeding/200+(t.left_cut+t.right_cut)/450)*r);e.set(`neckSmear`,{blood:a}),e.set(`leftShoulderSmear`,{blood:Math.min(1.2,t.left_cut/300)*r}),e.set(`rightShoulderSmear`,{blood:Math.min(1.2,t.right_cut/300)*r})}var Z_=3.05,Q_=3.85,$_=4.05,ev=3.42,tv=ev*.72,nv=[.5,.88,1.26];function rv(e){let t=Z_/Math.max(1,e.ring_half_width),n=Z_/Math.max(1,e.ring_half_height);return{x:e=>e*t,z:e=>-e*n}}var iv={blue:1920728,red:12131356,neutral:15067115},av=128,ov=4,sv=.12,cv=.82,lv={edge:4851467,core:[`rgba(40,3,6,0.9)`,`rgba(58,5,9,0.65)`,`rgba(70,7,11,0)`]},uv=6,dv=.29,fv=14,pv=e=>()=>(e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296);function mv(e){let t=pv(e);return{lobes:Array.from({length:5+Math.floor(t()*4)},(e,n)=>{let r=t()*Math.PI*2,i=n===0?0:6+t()*12,a=n===0?16+t()*6:8+t()*9;return{x:64+Math.cos(r)*i,y:64+Math.sin(r)*i,rx:a,ry:a*(.55+t()*.45),turn:t()*Math.PI}}),fill:.55+t()*.2,rim:.95,satellites:6+Math.floor(t()*6)}}function hv(e){let t=document.createElement(`canvas`);t.width=av,t.height=av;let n=t.getContext(`2d`);if(n!==null){let t=mv(e),r=pv(e^1540483477);n.clearRect(0,0,av,av),n.fillStyle=`rgba(255,255,255,1)`,n.strokeStyle=`rgba(255,255,255,1)`,n.globalAlpha=t.rim,n.lineWidth=3.5;for(let e of t.lobes)n.beginPath(),n.ellipse(e.x,e.y,e.rx,e.ry,e.turn,0,Math.PI*2),n.stroke();let i=()=>{n.beginPath();for(let e of t.lobes){let t=Math.max(1,e.rx-1.5);n.moveTo(e.x+Math.cos(e.turn)*t,e.y+Math.sin(e.turn)*t),n.ellipse(e.x,e.y,t,Math.max(1,e.ry-1.5),e.turn,0,Math.PI*2)}n.fill()};n.globalCompositeOperation=`destination-out`,n.globalAlpha=1,i(),n.globalCompositeOperation=`source-over`,n.globalAlpha=t.fill,i();for(let e=0;e{let t=t=>Math.round((e>>t&255)*.8);return`rgb(${t(16)},${t(8)},${t(0)})`},_v=class{scene;size;mesh;canvas;context;texture;source;uploader=null;region=new op;regionAt=new z;material;geometry;stamps=[];tinted=new Map;pixelsPerMetre;dirty=!1;sinceUpload=0;uploadInterval=sv;painted=0;streakSeed=0;constructor(e,t=1024){this.scene=e,this.size=t,this.canvas=document.createElement(`canvas`),this.canvas.width=t,this.canvas.height=t,this.context=this.canvas.getContext(`2d`),this.context?.clearRect(0,0,t,t);for(let e=0;e3.05||Math.abs(t)>3.05)return;let c=this.context;if(this.painted+=1,this.dirty=!0,this.mesh.visible=!0,c===null)return;let l=this.tintedStamp(o,s),u=this.pixel(e,t),d=Math.max(1,n*this.pixelsPerMetre),f=Math.max(1,r*this.pixelsPerMetre);this.grow(u.x,u.y,Math.hypot(d,f)/2),c.save(),c.globalAlpha=R.clamp(a,0,1),c.translate(u.x,u.y),c.rotate(Number.isFinite(i)?i:0),c.drawImage(l,-d/2,-f/2,d,f),c.restore()}tintedStamp(e,t){let n=this.tinted.get(e);return n===void 0&&(n=this.stamps.map(t=>{let n=document.createElement(`canvas`);n.width=av,n.height=av;let r=n.getContext(`2d`);return r!==null&&(r.drawImage(t,0,0),r.globalCompositeOperation=`source-in`,r.fillStyle=gv(e),r.fillRect(0,0,av,av)),n}),this.tinted.set(e,n)),n[Math.abs(Math.trunc(t))%ov]}pool(e,t,n,r,i,a=lv){this.stain(e,t,n*2.3,n*2,i*1.7,r*.8,a.edge,i);let o=this.context;if(o===null||Math.abs(e)>3.05||Math.abs(t)>3.05)return;let s=this.pixel(e,t),c=Math.max(1,n*1.15*this.pixelsPerMetre);this.grow(s.x,s.y,c);let l=o.createRadialGradient(s.x,s.y,0,s.x,s.y,c);l.addColorStop(0,a.core[0]),l.addColorStop(.65,a.core[1]),l.addColorStop(1,a.core[2]),o.save(),o.globalAlpha=R.clamp(r,0,1),o.fillStyle=l,o.beginPath(),o.ellipse(s.x,s.y,c,c*.86,i*.9,0,Math.PI*2),o.fill(),o.restore()}streakRandom(){return this.streakSeed=Math.imul(this.streakSeed^this.streakSeed>>>15,1|this.streakSeed),this.streakSeed^=this.streakSeed+Math.imul(this.streakSeed^this.streakSeed>>>7,61|this.streakSeed),((this.streakSeed^this.streakSeed>>>14)>>>0)/4294967296}smear(e,t,n,r,i,a,o){if(!Number.isFinite(e+t+n+r+i)||Math.abs(e)>3.05||Math.abs(t)>3.05)return;let s=this.context;if(this.painted+=1,this.dirty=!0,this.mesh.visible=!0,s===null)return;let c=(e+Z_)*this.pixelsPerMetre,l=(t+Z_)*this.pixelsPerMetre,u=(R.clamp(n,-Z_,Z_)+Z_)*this.pixelsPerMetre,d=(R.clamp(r,-Z_,Z_)+Z_)*this.pixelsPerMetre,f=Math.max(1,i*this.pixelsPerMetre);this.grow(c,l,f),this.grow(u,d,f);let p=Math.hypot(u-c,d-l),m=p>1e-6?(l-d)/p:1,h=p>1e-6?(u-c)/p:0;this.streakSeed=1374496523^Math.imul(this.painted,40503),s.save(),s.strokeStyle=gv(o),s.lineCap=`round`;for(let e=0;e3.05||Math.abs(t)>3.05)return;let o=this.context;if(this.painted+=1,this.dirty=!0,this.mesh.visible=!0,o===null)return;let s=(e+Z_)*this.pixelsPerMetre,c=(t+Z_)*this.pixelsPerMetre,l=Math.max(2,dv*this.pixelsPerMetre),u=l*.36;this.grow(s,c,l*.6);let d=(r?-1:1)*u*.06,f=l/fv;o.save(),o.globalAlpha=R.clamp(i,0,1),o.fillStyle=gv(a),o.translate(s,c),o.rotate(-n);for(let e=0;et.min.x&&t.max.y>t.min.y?this.uploader.copyTextureToTexture(this.source,this.texture,t,this.regionAt.copy(t.min)):this.texture.needsUpdate=!0,t.makeEmpty(),this.dirty=!1,this.sinceUpload=0}clear(){this.context?.clearRect(0,0,this.size,this.size),this.painted=0,this.dirty=!1,this.region.makeEmpty(),this.texture.needsUpdate=!0,this.mesh.visible=!1}dispose(){this.scene.remove(this.mesh),this.texture.dispose(),this.source.dispose(),this.material.dispose(),this.geometry.dispose()}};function vv(){let e=new fd(1,2);e.deleteAttribute(`normal`),e.deleteAttribute(`uv`);let t=Fg(e,1e-4);e.dispose();let n=t.getAttribute(`position`),r=new B;for(let e=0;e=120?5:t>=90?3:t>=60?2:+(t>=40):e===`hit`?t>=130?4:t>=100?3:t>=75?2:+(t>=50):0:0}function xv(e,t){return Math.min(800,Math.round(Math.max(0,e)*4.5+Math.max(0,t)*2.8))}var Sv=1.1,Cv=.6,wv=.35,Tv=1.2;function Ev(){let e=new _d(1,8,6),t=e.getAttribute(`position`);for(let e=0;e1+(e-1)*28+t%28;for(let e=0;e<28;e+=1)a.push(0,o(1,e+1),o(1,e));for(let e=1;e<6;e+=1)for(let t=0;t<28;t+=1)a.push(o(e,t),o(e,t+1),o(e+1,t)),a.push(o(e,t+1),o(e+1,t+1),o(e+1,t));let s=new il;return s.setAttribute(`position`,new Kc(r,3)),s.setAttribute(`uv`,new Kc(i,2)),s.setIndex(a),s.computeVertexNormals(),s}function Nv(e,t){let n=e.getAttribute(`position`),r=e.getIndex();if(r===null)return[];let i=new Map,a=new Int32Array(n.count),o=new Uint8Array(n.count),s=new B;for(let e=0;eo[e]===1);for(let e=0;e<3;e+=1){let r=a[t[e]],o=a[t[(e+1)%3]],s=r=2&&l.push(Math.floor(e/n.count),e%n.count);return l}var Pv=.5,Fv=new B,Iv=new B,Lv=new B,Rv=new B,zv=new B;function Bv(e,t,n){zv.copy(e).addScaledVector(t,-e.dot(t)).multiplyScalar(Pv/n).add(t).normalize()}function Vv(e,t,n,r,i=.01,a){let o=Math.floor(t.length/6),s=e.getAttribute(`position`),c=e.getAttribute(`normal`),l=e.getAttribute(`uv`);(s===void 0||c===void 0||l===void 0||s.count!==o*3)&&(s=new Uc(new Float32Array(o*9),3).setUsage(go),c=new Uc(new Float32Array(o*9),3).setUsage(go),l=new Uc(new Float32Array(o*6),2).setUsage(go),e.setAttribute(`position`,s),e.setAttribute(`normal`,c),e.setAttribute(`uv`,l)),Fv.set(1,0,0),Math.abs(r.x)>.9&&Fv.set(0,0,1),a!==void 0&&a.lengthSq()>1e-8&&Math.abs(a.dot(r))<.95*a.length()&&Fv.copy(a),Iv.crossVectors(r,Fv).normalize(),Fv.crossVectors(Iv,r).normalize();let u=1e-6;for(let e=0;e=0)continue;let i=`${Math.round(s.x*1e5)},${Math.round(s.y*1e5)},${Math.round(s.z*1e5)}`,l=a.get(i)??n;a.set(i,l),o[n]=l}c.multiplyScalar(1/Math.max(1,r.count));for(let e=0;e{let t=e;for(;u.has(t);)t=u.get(t);return t},f=[];for(let[e,t]of l){if(t!==1)continue;f.push(e);let n=d(Math.floor(e/i)),r=d(e%i);n!==r&&u.set(n,r)}let p=new Map;for(let e of f){let t=d(e%i),n=p.get(t)??[];n.push(e),p.set(t,n)}let m=[],h=[],g=[],_=new il,v=new il,y=new B,b=new B,x=[];for(let e of p.values()){if(e.length<3)continue;let r=new Float32Array(e.length*6);y.set(0,0,0);let a=0;for(let[o,c]of e.entries()){let e=Math.floor(c/i),l=c%i;y.add(s.fromBufferAttribute(t,e)),s.toArray(r,o*6),y.add(s.fromBufferAttribute(t,l)),s.toArray(r,o*6+3),a+=n===void 0?r[o*6+1]+r[o*6+4]:n.getY(e)+n.getY(l)}y.multiplyScalar(1/(e.length*2));let o=0;for(let e=0;e(n=Math.imul(n^n>>>15,1|n),n^=n+Math.imul(n^n>>>7,61|n),((n^n>>>14)>>>0)/4294967296);for(let e=0;e<46;e+=1){let e=r()*Math.PI*2,n=14+r()*42;t.fillStyle=r()<.5?`rgba(150,28,30,0.55)`:`rgba(40,4,8,0.5)`,t.beginPath(),t.ellipse(64+Math.cos(e)*n,64+Math.sin(e)*n,3+r()*6,2+r()*3,e,0,Math.PI*2),t.fill()}let i=(e,n,r,i)=>{t.fillStyle=i,t.beginPath(),t.arc(e,n,r,0,Math.PI*2),t.fill()};i(64,38,10,`#8f7c64`),i(61,36,4.5,`#6a2a25`),i(66,78,7,`#7a3c34`),i(66,78,4.5,`#150203`),i(41,64,3,`#1d0204`),i(90,69,2.6,`#1d0204`);for(let e=0;e<70;e+=1){let e=r()*Math.PI*2,t=r()*60;i(64+Math.cos(e)*t,64+Math.sin(e)*t,.6+r()*1.6,r()<.4?`rgba(190,60,50,0.5)`:`rgba(20,2,4,0.55)`)}Gv(t)}let n=new ku(e);return n.colorSpace=lo,n}function Gv(e){e.lineWidth=7,e.strokeStyle=`rgba(214,178,92,0.85)`,e.beginPath(),e.arc(64,64,55,0,Math.PI*2),e.stroke(),e.lineWidth=4,e.strokeStyle=`#b8775c`,e.beginPath(),e.arc(64,64,61,0,Math.PI*2),e.stroke()}function Kv(){let e=document.createElement(`canvas`);e.width=128,e.height=128;let t=e.getContext(`2d`);if(t!==null){let e=t.createRadialGradient(64,64,6,64,64,64);e.addColorStop(0,`#741014`),e.addColorStop(.7,`#52090d`),e.addColorStop(1,`#300407`),t.fillStyle=e,t.fillRect(0,0,128,128);let n=(e,n,r,i)=>{t.fillStyle=i,t.beginPath(),t.arc(e,n,r,0,Math.PI*2),t.fill()};for(let[e,t,r]of[[46,60,13],[84,66,10]])n(e,t,r,`#e4d8c0`),n(e,t,r*.62,`#a4483c`),n(e-r*.2,t-r*.2,r*.25,`rgba(220,110,90,0.6)`);for(let e=0;e<9;e+=1){let t=Math.PI*(.15+e/8*.7);n(64+Math.cos(t)*34,64+Math.sin(t)*34,3.2,`#d9c9b3`)}n(30,84,3.4,`#1a0204`),n(98,46,3,`#1a0204`),n(66,30,2.6,`#1a0204`),Gv(t)}let n=new ku(e);return n.colorSpace=lo,n}function qv(){let e=document.createElement(`canvas`);e.width=128,e.height=128;let t=e.getContext(`2d`);if(t!==null){let e=t.createRadialGradient(64,64,6,64,64,64);e.addColorStop(0,`#7c1218`),e.addColorStop(.7,`#560a0f`),e.addColorStop(1,`#2e0407`),t.fillStyle=e,t.fillRect(0,0,128,128);let n=2135587861,r=()=>(n=Math.imul(n^n>>>15,1|n),n^=n+Math.imul(n^n>>>7,61|n),((n^n>>>14)>>>0)/4294967296);for(let e=0;e<11;e+=1){let n=e/11*Math.PI*2+r()*.3,i=26+r()*12;t.fillStyle=r()<.5?`#8e1c20`:`#6c1016`,t.strokeStyle=`rgba(30,3,6,0.8)`,t.lineWidth=1.6,t.beginPath(),t.ellipse(64+Math.cos(n)*i,64+Math.sin(n)*i,13+r()*5,8+r()*4,n+Math.PI/2,0,Math.PI*2),t.fill(),t.stroke()}let i=(e,n,r,i)=>{t.fillStyle=i,t.beginPath(),t.arc(e,n,r,0,Math.PI*2),t.fill()};i(58,60,15,`#e8dcc4`),i(58,60,9.5,`#a8463a`),i(55,57,3.5,`rgba(226,116,96,0.65)`),i(82,70,4.2,`#170204`),i(80,80,3,`#3a0a2a`),i(88,62,2.2,`#e0d2a0`);for(let e=0;e<70;e+=1){let e=r()*Math.PI*2,t=18+r()*40;i(64+Math.cos(e)*t,64+Math.sin(e)*t,.6+r()*1.5,r()<.4?`rgba(200,70,56,0.5)`:`rgba(20,2,4,0.55)`)}Gv(t)}let n=new ku(e);return n.colorSpace=lo,n}function Jv(){let e=document.createElement(`canvas`);e.width=128,e.height=128;let t=e.getContext(`2d`);if(t!==null){t.fillStyle=`#3c060a`,t.fillRect(0,0,128,128);let e=461845907,n=()=>(e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296),r=(e,n,r,i,a,o,s)=>{t.fillStyle=o,t.beginPath(),t.ellipse(e,n,r,i,a,0,Math.PI*2),t.fill(),s!==void 0&&(t.strokeStyle=s,t.lineWidth=1.4,t.stroke())};t.strokeStyle=`#7c151a`,t.lineWidth=12,t.beginPath(),t.arc(64,64,46,0,Math.PI*2),t.stroke(),r(40,30,13,9,.5,`#8a1c20`,`rgba(30,3,6,0.8)`),r(88,30,13,9,-.5,`#8a1c20`,`rgba(30,3,6,0.8)`),r(40,58,15,10,.4,`#4a1410`);for(let e=0;e<15;e+=1){let e=n()*Math.PI*2,t=n()*25,i=68+Math.cos(e)*t,a=74+Math.sin(e)*t*.8,o=6+n()*4;r(i,a,o,o*(.7+n()*.3),n()*Math.PI,`#d49a98`,`rgba(110,30,36,0.9)`),r(i,a,o*.45,o*.35,n()*Math.PI,n()<.4?`#6a5a14`:`#3a070b`)}r(64,26,11,9,0,`#e6dac2`),r(64,26,7,5.5,0,`#b4594a`),r(64,13,4,3.4,0,`#efe6c8`,`#8a7c60`),r(57,40,4.4,4.4,0,`#160204`,`#a03038`),r(71,40,4,3.4,0,`#2a0a2c`);for(let e=0;e<80;e+=1){let e=n()*Math.PI*2,t=n()*54;r(64+Math.cos(e)*t,64+Math.sin(e)*t,.6+n()*1.6,.6+n()*1.6,0,n()<.3?`rgba(226,190,90,0.6)`:n()<.5?`rgba(190,50,44,0.5)`:`rgba(20,2,4,0.55)`)}Gv(t)}let n=new ku(e);return n.colorSpace=lo,n}function Yv(){let e=.09,t=[];for(let e=0;e<9;e+=1){let n=e/9*Math.PI*2,r=.32*(.62+.38*Math.abs(Math.sin(e*2.3+.4)));t.push([Math.cos(n)*r,Math.sin(n)*r])}let n=(t,n,r)=>{let i=Math.hypot(t,n,1);return[t/i*r,n/i*r,1/i*r-e]},r=[],i=[],a=[.07,.035,.025],o=[.78,.7,.58],s=[.42,.05,.05],c=(e,t,n,a)=>{r.push(...e,...t,...n);for(let e=0;e<3;e+=1)i.push(...a)};for(let r=0;r<9;r+=1){let[i,l]=t[r],[u,d]=t[(r+1)%9];c(n(0,0,e),n(i,l,e),n(u,d,e),a),c(n(0,0,.08299999999999999),n(u,d,.08299999999999999),n(i,l,.08299999999999999),r%3==0?o:s),c(n(i,l,e),n(i,l,.08299999999999999),n(u,d,e),o),c(n(u,d,e),n(i,l,.08299999999999999),n(u,d,.08299999999999999),o)}let l=new il;return l.setAttribute(`position`,new Kc(r,3)),l.setAttribute(`color`,new Kc(i,3)),l.computeVertexNormals(),l.computeBoundingSphere(),l}function Xv(){let e=document.createElement(`canvas`);e.width=128,e.height=128;let t=e.getContext(`2d`);if(t!==null){let e=t.createRadialGradient(64,60,6,64,64,66);e.addColorStop(0,`#7a1016`),e.addColorStop(.75,`#530a0e`),e.addColorStop(1,`#300408`),t.fillStyle=e,t.fillRect(0,0,128,128),t.fillStyle=`#8a2a2e`,t.beginPath(),t.ellipse(64,50,22,17,0,0,Math.PI*2),t.fill(),t.fillStyle=`rgba(220,120,120,0.35)`,t.beginPath(),t.ellipse(60,45,9,5,-.3,0,Math.PI*2),t.fill(),t.strokeStyle=`#a99c86`,t.lineWidth=5,t.beginPath(),t.ellipse(64,62,50,50,0,Math.PI*.08,Math.PI*.92),t.stroke();for(let e=0;e<12;e+=1){let n=Math.PI*(.14+e/11*.72);t.save(),t.translate(64+Math.cos(n)*42,62+Math.sin(n)*42),t.rotate(n+Math.PI/2),t.fillStyle=e%5==2?`#3a0508`:`#ece4cf`,t.fillRect(-3.5,-4.5,7,9),t.restore()}let n=625341585,r=()=>(n=Math.imul(n^n>>>15,1|n),n^=n+Math.imul(n^n>>>7,61|n),((n^n>>>14)>>>0)/4294967296);for(let e=0;e<60;e+=1)t.fillStyle=r()<.5?`rgba(150,20,24,0.6)`:`rgba(20,2,4,0.5)`,t.beginPath(),t.arc(r()*128,r()*128,.8+r()*2.2,0,Math.PI*2),t.fill();Gv(t)}let n=new ku(e);return n.colorSpace=lo,n}function Zv(){let e=document.createElement(`canvas`);e.width=128,e.height=64;let t=e.getContext(`2d`);if(t!==null){let e=t.createLinearGradient(0,0,128,0);e.addColorStop(0,`#e9ddd4`),e.addColorStop(.42,`#e9ddd4`),e.addColorStop(.62,`#8a2a2c`),e.addColorStop(.85,`#4a070b`),e.addColorStop(1,`#e9ddd4`),t.fillStyle=e,t.fillRect(0,0,128,64),t.strokeStyle=`rgba(170,20,26,0.75)`,t.lineWidth=.8;for(let e=0;e<14;e+=1){let n=e/14*Math.PI*2;t.beginPath(),t.moveTo(32+Math.cos(n)*30,32+Math.sin(n)*26),t.quadraticCurveTo(32+Math.cos(n+.3)*20,32+Math.sin(n+.3)*18,32+Math.cos(n)*11,32+Math.sin(n)*11),t.stroke()}let n=t.createRadialGradient(32,32,2,32,32,9);n.addColorStop(0,`#6b4524`),n.addColorStop(.8,`#4a2d14`),n.addColorStop(1,`#1e1208`),t.fillStyle=n,t.beginPath(),t.arc(32,32,9,0,Math.PI*2),t.fill(),t.fillStyle=`#050302`,t.beginPath(),t.arc(32,32,4,0,Math.PI*2),t.fill(),t.fillStyle=`rgba(255,255,255,0.85)`,t.beginPath(),t.arc(29.5,29.5,1.4,0,Math.PI*2),t.fill()}let n=new ku(e);return n.colorSpace=lo,n}function Qv(e){let t=new Map,n=new Map,r=e.clone();return $v(e,r,function(e,r){t.set(r,e),n.set(e,r)}),r.traverse(function(e){if(!e.isSkinnedMesh)return;let r=e,i=t.get(e),a=i.skeleton.bones;r.skeleton=i.skeleton.clone(),r.bindMatrix.copy(i.bindMatrix),r.skeleton.bones=a.map(function(e){return n.get(e)}),r.bind(r.skeleton,r.bindMatrix)}),r}function $v(e,t,n){n(e,t);for(let r=0;r=2.0 are supported.`));return}let c=new Zy(i,{path:t||this.resourcePath||``,crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});c.fileLoader.setRequestHeader(this.requestHeader);for(let e=0;e=0&&o[t]===void 0&&console.warn(`THREE.GLTFLoader: Unknown extension "`+t+`".`)}}c.setExtensions(a),c.setPlugins(o),c.parse(n,r)}parseAsync(e,t){let n=this;return new Promise(function(r,i){n.parse(e,t,r,i)})}};function ty(){let e={};return{get:function(t){return e[t]},add:function(t,n){e[t]=n},remove:function(t){delete e[t]},removeAll:function(){e={}}}}function ny(e,t,n){let r=e.json.materials[t];return r.extensions&&r.extensions[n]?r.extensions[n]:null}var ry={KHR_BINARY_GLTF:`KHR_binary_glTF`,KHR_DRACO_MESH_COMPRESSION:`KHR_draco_mesh_compression`,KHR_LIGHTS_PUNCTUAL:`KHR_lights_punctual`,KHR_MATERIALS_CLEARCOAT:`KHR_materials_clearcoat`,KHR_MATERIALS_DISPERSION:`KHR_materials_dispersion`,KHR_MATERIALS_IOR:`KHR_materials_ior`,KHR_MATERIALS_SHEEN:`KHR_materials_sheen`,KHR_MATERIALS_SPECULAR:`KHR_materials_specular`,KHR_MATERIALS_TRANSMISSION:`KHR_materials_transmission`,KHR_MATERIALS_IRIDESCENCE:`KHR_materials_iridescence`,KHR_MATERIALS_ANISOTROPY:`KHR_materials_anisotropy`,KHR_MATERIALS_UNLIT:`KHR_materials_unlit`,KHR_MATERIALS_VOLUME:`KHR_materials_volume`,KHR_TEXTURE_BASISU:`KHR_texture_basisu`,KHR_TEXTURE_TRANSFORM:`KHR_texture_transform`,KHR_MESH_QUANTIZATION:`KHR_mesh_quantization`,KHR_MATERIALS_EMISSIVE_STRENGTH:`KHR_materials_emissive_strength`,EXT_MATERIALS_BUMP:`EXT_materials_bump`,EXT_TEXTURE_WEBP:`EXT_texture_webp`,EXT_TEXTURE_AVIF:`EXT_texture_avif`,EXT_MESHOPT_COMPRESSION:`EXT_meshopt_compression`,KHR_MESHOPT_COMPRESSION:`KHR_meshopt_compression`,EXT_MESH_GPU_INSTANCING:`EXT_mesh_gpu_instancing`},iy=class{constructor(e){this.parser=e,this.name=ry.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){let e=this.parser,t=this.parser.json.nodes||[];for(let n=0,r=t.length;n=0)throw Error(`THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures`);return null}return t.loadTextureImage(e,i.source,a)}},vy=class{constructor(e){this.parser=e,this.name=ry.EXT_TEXTURE_WEBP}loadTexture(e){let t=this.name,n=this.parser,r=n.json,i=r.textures[e];if(!i.extensions||!i.extensions[t])return null;let a=i.extensions[t],o=r.images[a.source],s=n.textureLoader;if(o.uri){let e=n.options.manager.getHandler(o.uri);e!==null&&(s=e)}return n.loadTextureImage(e,a.source,s)}},yy=class{constructor(e){this.parser=e,this.name=ry.EXT_TEXTURE_AVIF}loadTexture(e){let t=this.name,n=this.parser,r=n.json,i=r.textures[e];if(!i.extensions||!i.extensions[t])return null;let a=i.extensions[t],o=r.images[a.source],s=n.textureLoader;if(o.uri){let e=n.options.manager.getHandler(o.uri);e!==null&&(s=e)}return n.loadTextureImage(e,a.source,s)}},by=class{constructor(e,t){this.name=t,this.parser=e}loadBufferView(e){let t=this.parser.json,n=t.bufferViews[e];if(n.extensions&&n.extensions[this.name]){let e=n.extensions[this.name],r=this.parser.getDependency(`buffer`,e.buffer),i=this.parser.options.meshoptDecoder;if(!i||!i.supported){if(t.extensionsRequired&&t.extensionsRequired.indexOf(this.name)>=0)throw Error(`THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files`);return null}return r.then(function(t){let n=e.byteOffset||0,r=e.byteLength||0,a=e.count,o=e.byteStride,s=new Uint8Array(t,n,r);return i.decodeGltfBufferAsync?i.decodeGltfBufferAsync(a,o,s,e.mode,e.filter).then(function(e){return e.buffer}):i.ready.then(function(){let t=new ArrayBuffer(a*o);return i.decodeGltfBuffer(new Uint8Array(t),a,o,s,e.mode,e.filter),t})})}return null}},xy=class{constructor(e){this.name=ry.EXT_MESH_GPU_INSTANCING,this.parser=e}createNodeMesh(e){let t=this.parser.json,n=t.nodes[e];if(!n.extensions||!n.extensions[this.name]||n.mesh===void 0)return null;let r=t.meshes[n.mesh];for(let e of r.primitives)if(e.mode!==My.TRIANGLES&&e.mode!==My.TRIANGLE_STRIP&&e.mode!==My.TRIANGLE_FAN&&e.mode!==void 0)return null;let i=n.extensions[this.name].attributes,a=[],o={};for(let e in i)a.push(this.parser.getDependency(`accessor`,i[e]).then(t=>(o[e]=t,o[e])));return a.length<1?null:(a.push(this.parser.createNodeMesh(e)),Promise.all(a).then(e=>{let t=e.pop(),n=t.isGroup?t.children:[t],r=e[0].count,i=[];for(let e of n){let t=new Ds,n=new B,a=new rs,s=new B(1,1,1),c=new nu(e.geometry,e.material,r);for(let e=0;e0||e.search(/^data\:image\/jpeg/)===0?`image/jpeg`:e.search(/\.webp($|\?)/i)>0||e.search(/^data\:image\/webp/)===0?`image/webp`:e.search(/\.ktx2($|\?)/i)>0||e.search(/^data\:image\/ktx2/)===0?`image/ktx2`:`image/png`}var Xy=new Ds,Zy=class{constructor(e={},t={}){this.json=e,this.extensions={},this.plugins={},this.options=t,this.cache=new ty,this.associations=new Map,this.primitiveCache={},this.nodeCache={},this.meshCache={refs:{},uses:{}},this.cameraCache={refs:{},uses:{}},this.lightCache={refs:{},uses:{}},this.sourceCache={},this.textureCache={},this.nodeNamesUsed={};let n=!1,r=-1,i=!1,a=-1;if(typeof navigator<`u`&&navigator.userAgent!==void 0){let e=navigator.userAgent;n=/^((?!chrome|android).)*safari/i.test(e)===!0;let t=e.match(/Version\/(\d+)/);r=n&&t?parseInt(t[1],10):-1,i=e.indexOf(`Firefox`)>-1,a=i?e.match(/Firefox\/([0-9]+)\./)[1]:-1}this.textureLoader=typeof createImageBitmap>`u`||n&&r<17||i&&a<98?new gf(this.options.manager):new Bf(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new pf(this.options.manager),this.fileLoader.setResponseType(`arraybuffer`),this.options.crossOrigin===`use-credentials`&&this.fileLoader.setWithCredentials(!0)}setExtensions(e){this.extensions=e}setPlugins(e){this.plugins=e}parse(e,t){let n=this,r=this.json,i=this.extensions;this.cache.removeAll(),this.nodeCache={},this._invokeAll(function(e){return e._markDefs&&e._markDefs()}),Promise.all(this._invokeAll(function(e){return e.beforeRoot&&e.beforeRoot()})).then(function(){return Promise.all([n.getDependencies(`scene`),n.getDependencies(`animation`),n.getDependencies(`camera`)])}).then(function(t){let a={scene:t[0][r.scene||0],scenes:t[0],animations:t[1],cameras:t[2],asset:r.asset,parser:n,userData:{}};return Hy(i,a,r),Uy(a,r),Promise.all(n._invokeAll(function(e){return e.afterRoot&&e.afterRoot(a)})).then(function(){for(let e of a.scenes)e.updateMatrixWorld();e(a)})}).catch(t)}_markDefs(){let e=this.json.nodes||[],t=this.json.skins||[],n=this.json.meshes||[];for(let n=0,r=t.length;n{let n=this.associations.get(e);n!=null&&this.associations.set(t,n);for(let[n,r]of e.children.entries())i(r,t.children[n])};return i(n,r),r.name+=`_instance_`+e.uses[t]++,r}_invokeOne(e){let t=Object.values(this.plugins);t.push(this);for(let n=0;n=2&&p.setY(t,u[e*a+1]),a>=3&&p.setZ(t,u[e*a+2]),a>=4&&p.setW(t,u[e*a+3]),a>=5)throw Error(`THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.`)}p.normalized=d}return p})}loadTexture(e){let t=this.json,n=this.options,r=t.textures[e].source,i=t.images[r],a=this.textureLoader;if(i.uri){let e=n.manager.getHandler(i.uri);e!==null&&(a=e)}return this.loadTextureImage(e,r,a)}loadTextureImage(e,t,n){let r=this,i=this.json,a=i.textures[e],o=i.images[t],s=(o.uri||o.bufferView)+`:`+a.sampler;if(this.textureCache[s])return this.textureCache[s];let c=this.loadImageSource(t,n).then(function(t){t.flipY=!1,t.name=a.name||o.name||``,t.name===``&&typeof o.uri==`string`&&o.uri.startsWith(`data:image/`)===!1&&(t.name=o.uri);let n=(i.samplers||{})[a.sampler]||{};return t.magFilter=Py[n.magFilter]||1006,t.minFilter=Py[n.minFilter]||1008,t.wrapS=Fy[n.wrapS]||1e3,t.wrapT=Fy[n.wrapT]||1e3,t.generateMipmaps=!t.isCompressedTexture&&t.minFilter!==1003&&t.minFilter!==1006,r.associations.set(t,{textures:e}),t}).catch(function(){return null});return this.textureCache[s]=c,c}loadImageSource(e,t){let n=this,r=this.json,i=this.options;if(this.sourceCache[e]!==void 0)return this.sourceCache[e].then(e=>e.clone());let a=r.images[e],o=self.URL||self.webkitURL,s=a.uri||``,c=!1;if(a.bufferView!==void 0)s=n.getDependency(`bufferView`,a.bufferView).then(function(e){c=!0;let t=new Blob([e],{type:a.mimeType});return s=o.createObjectURL(t),s});else if(a.uri===void 0)throw Error(`THREE.GLTFLoader: Image `+e+` is missing URI and bufferView`);let l=Promise.resolve(s).then(function(e){return new Promise(function(n,r){let a=n;t.isImageBitmapLoader===!0&&(a=function(e){let t=new xs(e);t.needsUpdate=!0,n(t)}),t.load(Rf.resolveURL(e,i.path),a,void 0,r)})}).then(function(e){return c===!0&&o.revokeObjectURL(s),Uy(e,a),e.userData.mimeType=a.mimeType||Yy(a.uri),e}).catch(function(e){throw console.error(`THREE.GLTFLoader: Couldn't load texture`,s),e});return this.sourceCache[e]=l,l}assignTexture(e,t,n,r){let i=this;return this.getDependency(`texture`,n.index).then(function(a){if(!a)return null;if(n.texCoord!==void 0&&n.texCoord>0&&(a=a.clone(),a.channel=n.texCoord),i.extensions[ry.KHR_TEXTURE_TRANSFORM]){let e=n.extensions===void 0?void 0:n.extensions[ry.KHR_TEXTURE_TRANSFORM];if(e){let t=i.associations.get(a);a=i.extensions[ry.KHR_TEXTURE_TRANSFORM].extendTexture(a,e),i.associations.set(a,t)}}return r!==void 0&&(a.colorSpace=r),e[t]=a,a})}assignFinalMaterial(e){let t=e.geometry,n=e.material,r=t.attributes.tangent===void 0,i=t.attributes.color!==void 0,a=t.attributes.normal===void 0;if(e.isPoints){let e=`PointsMaterial:`+n.uuid,t=this.cache.get(e);t||(t=new xu,pl.prototype.copy.call(t,n),t.color.copy(n.color),t.map=n.map,t.sizeAttenuation=!1,this.cache.add(e,t)),n=t}else if(e.isLine){let e=`LineBasicMaterial:`+n.uuid,t=this.cache.get(e);t||(t=new su,pl.prototype.copy.call(t,n),t.color.copy(n.color),t.map=n.map,this.cache.add(e,t)),n=t}if(r||i||a){let e=`ClonedMaterial:`+n.uuid+`:`;r&&(e+=`derivative-tangents:`),i&&(e+=`vertex-colors:`),a&&(e+=`flat-shading:`);let t=this.cache.get(e);t||(t=n.clone(),i&&(t.vertexColors=!0),a&&(t.flatShading=!0),r&&(t.normalScale&&(t.normalScale.y*=-1),t.clearcoatNormalScale&&(t.clearcoatNormalScale.y*=-1)),this.cache.add(e,t),this.associations.set(t,this.associations.get(n))),n=t}e.material=n}getMaterialType(){return jd}loadMaterial(e){let t=this,n=this.json,r=this.extensions,i=n.materials[e],a,o={},s=i.extensions||{},c=[];if(s[ry.KHR_MATERIALS_UNLIT]){let e=r[ry.KHR_MATERIALS_UNLIT];a=e.getMaterialType(),c.push(e.extendParams(o,i,t))}else{let n=i.pbrMetallicRoughness||{};if(o.color=new V(1,1,1),o.opacity=1,Array.isArray(n.baseColorFactor)){let e=n.baseColorFactor;o.color.setRGB(e[0],e[1],e[2],uo),o.opacity=e[3]}n.baseColorTexture!==void 0&&c.push(t.assignTexture(o,`map`,n.baseColorTexture,lo)),o.metalness=n.metallicFactor===void 0?1:n.metallicFactor,o.roughness=n.roughnessFactor===void 0?1:n.roughnessFactor,n.metallicRoughnessTexture!==void 0&&(c.push(t.assignTexture(o,`metalnessMap`,n.metallicRoughnessTexture)),c.push(t.assignTexture(o,`roughnessMap`,n.metallicRoughnessTexture))),a=this._invokeOne(function(t){return t.getMaterialType&&t.getMaterialType(e)}),c.push(Promise.all(this._invokeAll(function(t){return t.extendMaterialParams&&t.extendMaterialParams(e,o)})))}i.doubleSided===!0&&(o.side=2);let l=i.alphaMode||By.OPAQUE;if(l===By.BLEND?(o.transparent=!0,o.depthWrite=!1):(o.transparent=!1,l===By.MASK&&(o.alphaTest=i.alphaCutoff===void 0?.5:i.alphaCutoff)),i.normalTexture!==void 0&&a!==yl&&(c.push(t.assignTexture(o,`normalMap`,i.normalTexture)),o.normalScale=new z(1,1),i.normalTexture.scale!==void 0)){let e=i.normalTexture.scale;o.normalScale.set(e,e)}if(i.occlusionTexture!==void 0&&a!==yl&&(c.push(t.assignTexture(o,`aoMap`,i.occlusionTexture)),i.occlusionTexture.strength!==void 0&&(o.aoMapIntensity=i.occlusionTexture.strength)),i.emissiveFactor!==void 0&&a!==yl){let e=i.emissiveFactor;o.emissive=new V().setRGB(e[0],e[1],e[2],uo)}return i.emissiveTexture!==void 0&&a!==yl&&c.push(t.assignTexture(o,`emissiveMap`,i.emissiveTexture,lo)),Promise.all(c).then(function(){let n=new a(o);return i.name&&(n.name=i.name),Uy(n,i),t.associations.set(n,{materials:e}),i.extensions&&Hy(r,n,i),n})}createUniqueName(e){let t=ip.sanitizeNodeName(e||``);return t in this.nodeNamesUsed?t+`_`+ ++this.nodeNamesUsed[t]:(this.nodeNamesUsed[t]=0,t)}loadGeometries(e){let t=this,n=this.extensions,r=this.primitiveCache;function i(e){return n[ry.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(e,t).then(function(n){return $y(n,e,t)})}let a=[];for(let n=0,o=e.length;nIg(e,1)):o.mode===My.TRIANGLE_FAN&&(e=e.then(e=>Ig(e,2))),r[s]={primitive:o,promise:e},a.push(e)}}return Promise.all(a)}loadMesh(e){let t=this,n=this.json,r=this.extensions,i=n.meshes[e],a=i.primitives,o=[];for(let e=0,t=a.length;e0&&Gy(d,i),d.name=t.createUniqueName(i.name||`mesh_`+e),Uy(d,i),u.extensions&&Hy(r,d,u),t.assignFinalMaterial(d),c.push(d)}for(let n=0,r=c.length;n0){let e=t.userData.pivot,r=n[0];t.pivot=new B().fromArray(e),t.position.x-=e[0],t.position.y-=e[1],t.position.z-=e[2],r.position.set(0,0,0),delete t.userData.pivot}return t})}_loadNodeShallow(e){let t=this.json,n=this.extensions,r=this;if(this.nodeCache[e]!==void 0)return this.nodeCache[e];let i=t.nodes[e],a=i.name?r.createUniqueName(i.name):``,o=[],s=r._invokeOne(function(t){return t.createNodeMesh&&t.createNodeMesh(e)});return s&&o.push(s),i.camera!==void 0&&o.push(r.getDependency(`camera`,i.camera).then(function(e){return r._getNodeRef(r.cameraCache,i.camera,e)})),r._invokeAll(function(t){return t.createNodeAttachment&&t.createNodeAttachment(e)}).forEach(function(e){o.push(e)}),this.nodeCache[e]=Promise.all(o).then(function(t){let o;if(o=i.isBone===!0?new Ul:t.length>1?new tc:t.length===1?t[0]:new ec,o!==t[0])for(let e=0,n=t.length;e1){let e=r.associations.get(o);r.associations.set(o,{...e})}return r.associations.get(o).nodes=e,o}),this.nodeCache[e]}loadScene(e){let t=this.extensions,n=this.json.scenes[e],r=this,i=new tc;n.name&&(i.name=r.createUniqueName(n.name)),Uy(i,n),n.extensions&&Hy(t,i,n);let a=n.nodes||[],o=[];for(let e=0,t=a.length;e{let t=new Map;for(let[e,n]of r.associations)(e instanceof pl||e instanceof xs)&&t.set(e,n);return e.traverse(e=>{let n=r.associations.get(e);n!=null&&t.set(e,n)}),t})(i),i})}_createAnimationTracks(e,t,n,r,i){let a=[],o=e.name?e.name:e.uuid,s=[];function c(e){e.morphTargetInfluences&&s.push(e.name?e.name:e.uuid)}Ry[i.path]===Ry.weights?(c(e),e.isGroup&&e.children.forEach(c)):s.push(o);let l;switch(Ry[i.path]){case Ry.weights:l=Qd;break;case Ry.rotation:l=ef;break;case Ry.translation:case Ry.scale:l=nf;break;default:switch(n.itemSize){case 1:l=Qd;break;default:l=nf}}let u=r.interpolation===void 0?to:zy[r.interpolation],d=this._getArrayFromAccessor(n);for(let e=0,n=s.length;e{e.uniforms.uGearBlood=r,e.vertexShader=e.vertexShader.replace(`#include `,`#include \n${t?`attribute vec3 bindPosition;`:``}\n${vy}`).replace(`#include `,`#include \nvGearPos = ${t?`bindPosition`:`position`};`),e.fragmentShader=e.fragmentShader.replace(`#include `,`#include \n${vy}\nfloat gearSoaked = 0.0;\nfloat gearTrim = 0.0;`).replace(`#include `,`#include \n${yy}`).replace(`#include `,`#include \n${by}`)},e.customProgramCacheKey=()=>`hands-gear-${t?`baked`:`live`}`,e.needsUpdate=!0,r}var Sy={tint:16777215,hair:4862755,shaved:0,beard:0,jaw:0,nose:0,brow:0,skull:0},Cy={referee:{tint:15916235,hair:9210502,shaved:0,beard:0,jaw:-.4,nose:.3,brow:-.2,skull:.2},blueCorner:{tint:11109480,hair:1380364,shaved:1,beard:.8,jaw:.7,nose:.5,brow:.6,skull:.4},redCorner:{tint:16772829,hair:8007452,shaved:0,beard:.6,jaw:.2,nose:-.5,brow:.1,skull:-.3},blueCutman:{tint:14202008,hair:2234128,shaved:0,beard:0,jaw:-.6,nose:.8,brow:-.5,skull:-.5},redCutman:{tint:9070160,hair:1380364,shaved:1,beard:.45,jaw:.5,nose:.2,brow:.8,skull:.6}},wy=[16777215,16047307,14268057,12555896,10717820,9071708,7296328],Ty=[1380364,2234128,3810326,5913120,9071164,11045976,7222304,9210502];function Ey(e){let t=2166136261;for(let n=0;n>>0}function Dy(e){return()=>(e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296)}function Oy(e){let t=Dy(Ey(e)||1),n=e=>e[Math.floor(t()*e.length)],r=()=>Math.round((t()*2-1)*100)/100;return{tint:n(wy),hair:n(Ty),shaved:+(t()<.28),beard:t()<.45?0:Math.round((.35+t()*.65)*100)/100,jaw:r(),nose:r(),brow:r(),skull:r()}}var ky=`vec3(0.84, 0.39, 0.175)`,Ay=` +`;function ob(e,t=!1,n=`gloves`){let r={value:0};return n===`trunks`&&(e.defines={...e.defines,GEAR_TRUNKS:``}),e.onBeforeCompile=e=>{e.uniforms.uGearBlood=r,e.vertexShader=e.vertexShader.replace(`#include `,`#include \n${t?`attribute vec3 bindPosition;`:``}\n${rb}`).replace(`#include `,`#include \nvGearPos = ${t?`bindPosition`:`position`};`),e.fragmentShader=e.fragmentShader.replace(`#include `,`#include \n${rb}\nfloat gearSoaked = 0.0;\nfloat gearTrim = 0.0;`).replace(`#include `,`#include \n${ib}`).replace(`#include `,`#include \n${ab}`)},e.customProgramCacheKey=()=>`hands-gear-${t?`baked`:`live`}`,e.needsUpdate=!0,r}var sb={tint:16777215,hair:4862755,shaved:0,beard:0,jaw:0,nose:0,brow:0,skull:0},cb={referee:{tint:15916235,hair:9210502,shaved:0,beard:0,jaw:-.4,nose:.3,brow:-.2,skull:.2},blueCorner:{tint:11109480,hair:1380364,shaved:1,beard:.8,jaw:.7,nose:.5,brow:.6,skull:.4},redCorner:{tint:16772829,hair:8007452,shaved:0,beard:.6,jaw:.2,nose:-.5,brow:.1,skull:-.3},blueCutman:{tint:14202008,hair:2234128,shaved:0,beard:0,jaw:-.6,nose:.8,brow:-.5,skull:-.5},redCutman:{tint:9070160,hair:1380364,shaved:1,beard:.45,jaw:.5,nose:.2,brow:.8,skull:.6}},lb=[16777215,16047307,14268057,12555896,10717820,9071708,7296328],ub=[1380364,2234128,3810326,5913120,9071164,11045976,7222304,9210502];function db(e){let t=2166136261;for(let n=0;n>>0}function fb(e){return()=>(e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296)}function pb(e){let t=fb(db(e)||1),n=e=>e[Math.floor(t()*e.length)],r=()=>Math.round((t()*2-1)*100)/100;return{tint:n(lb),hair:n(ub),shaved:+(t()<.28),beard:t()<.45?0:Math.round((.35+t()*.65)*100)/100,jaw:r(),nose:r(),brow:r(),skull:r()}}var mb=`vec3(0.84, 0.39, 0.175)`,hb=` uniform vec3 uLookHair; uniform vec4 uLookFace; uniform vec2 uLookGroom; @@ -4927,7 +4938,7 @@ float lookHairZone(vec3 p) { float reach = mix(3.8, 9.0, nape); return smoothstep(line - 0.5, line + 0.5, p.y) * (1.0 - smoothstep(reach, reach + 1.0, abs(p.x)) * (1.0 - nape)); } -`,jy=` +`,gb=` { vec3 p = position; vLookPos = p; @@ -4948,29 +4959,29 @@ float lookHairZone(vec3 p) { transformed.y -= crownAway.y * crownDepth; transformed.z -= crownAway.z * crownDepth; } -`,My=(e,t,n)=>{let r=Math.min(1,Math.max(0,(n-e)/(t-e)));return r*r*(3-2*r)},Ny=(e,t,n)=>e+(t-e)*n;function Py(e,t,n){let r=Ny(Ny(115.3,120.6,My(-6.8,-4.6,n)),125.5,My(-4.6,1.6,n)),i=My(116,121,t),a=Ny(3.8,9,i);return My(r-.5,r+.5,t)*(1-My(a,a+1,Math.abs(e))*(1-i))}function Fy(e,t,n){let{x:r,y:i,z:a}=e,o=(1-My(113.5,118,i))*My(108.5,112,i)*My(-7,-2,a),s=1-My(0,2.6,Math.hypot(r,i-117.2,a-5)),c=(1-My(0,2.2,Math.abs(i-123.2)))*My(1.5,3.5,a),l=r*.12*t.jaw*o+r*.4*t.nose*s+r*.06*t.skull*My(112,116,i),u=0,d=.5*t.nose*s+.55*t.brow*c,f=Ny(.9,1.9,My(-1,3,a)*My(123.5,126,i))*Py(r,i,a)*t.shaved,p=r,m=(i-120)*1.1,h=a+2.5,g=Math.hypot(p,m,h)||1;return l-=p/g*f,u-=m/g*f,d-=h/g*f,n.set(r+l,i+u,a+d)}var Iy=` +`,_b=(e,t,n)=>{let r=Math.min(1,Math.max(0,(n-e)/(t-e)));return r*r*(3-2*r)},vb=(e,t,n)=>e+(t-e)*n;function yb(e,t,n){let r=vb(vb(115.3,120.6,_b(-6.8,-4.6,n)),125.5,_b(-4.6,1.6,n)),i=_b(116,121,t),a=vb(3.8,9,i);return _b(r-.5,r+.5,t)*(1-_b(a,a+1,Math.abs(e))*(1-i))}function bb(e,t,n){let{x:r,y:i,z:a}=e,o=(1-_b(113.5,118,i))*_b(108.5,112,i)*_b(-7,-2,a),s=1-_b(0,2.6,Math.hypot(r,i-117.2,a-5)),c=(1-_b(0,2.2,Math.abs(i-123.2)))*_b(1.5,3.5,a),l=r*.12*t.jaw*o+r*.4*t.nose*s+r*.06*t.skull*_b(112,116,i),u=0,d=.5*t.nose*s+.55*t.brow*c,f=vb(.9,1.9,_b(-1,3,a)*_b(123.5,126,i))*yb(r,i,a)*t.shaved,p=r,m=(i-120)*1.1,h=a+2.5,g=Math.hypot(p,m,h)||1;return l-=p/g*f,u-=m/g*f,d-=h/g*f,n.set(r+l,i+u,a+d)}var xb=` vLookPos = bindPosition; -`,Ly=` +`,Sb=` #ifdef USE_MAP { vec3 p = vLookPos; float scanned = dot(sampledDiffuseColor.rgb, vec3(0.2126, 0.7152, 0.0722)); float hair = lookHairZone(p) * max(1.0 - smoothstep(0.13, 0.26, scanned), smoothstep(126.2, 127.4, p.y)); vec3 dyed = uLookHair * clamp(scanned / 0.075, 0.45, 1.7); - vec3 scalp = mix(${ky}, uLookHair, 0.1) * clamp(scanned / 0.075, 0.85, 1.12) * 0.9; + vec3 scalp = mix(${mb}, uLookHair, 0.1) * clamp(scanned / 0.075, 0.85, 1.12) * 0.9; diffuseColor.rgb = mix(diffuseColor.rgb, mix(dyed, scalp * diffuse, uLookGroom.x), hair); // The beard covers the chin and runs back along the jaw to the ear, clear of the neck beneath it. float front = mix(1.4, -4.8, smoothstep(111.2, 114.6, p.y)); float jaw = (1.0 - smoothstep(115.4, 116.8, p.y)) * smoothstep(109.6, 110.6, p.y) * smoothstep(front - 0.6, front + 0.6, p.z); float lips = 1.0 - smoothstep(0.8, 2.0, length(vec3(p.x * 0.55, p.y - 114.3, (p.z - 4.8) * 0.4))); float grain = 0.8 + 0.2 * sin(p.x * 41.0 + p.z * 13.0) * sin(p.y * 47.0 + p.z * 29.0); - diffuseColor.rgb = mix(diffuseColor.rgb, mix(uLookHair * 0.8, ${ky} * diffuse, 0.12), jaw * (1.0 - lips) * uLookGroom.y * grain * 0.88); + diffuseColor.rgb = mix(diffuseColor.rgb, mix(uLookHair * 0.8, ${mb} * diffuse, 0.12), jaw * (1.0 - lips) * uLookGroom.y * grain * 0.88); } #endif -`,Ry=` +`,Cb=` uniform vec3 uLookExpression; varying float vLookJaw; -`,zy=` +`,wb=` { vec3 p = position; // Everything of the face under the seam of the lips drops with the jaw and swings back; the lips part between. @@ -4982,7 +4993,7 @@ varying float vLookJaw; transformed.y -= 0.4 * uLookExpression.z * frown; transformed.x -= sign(p.x) * 0.18 * uLookExpression.z * frown; } -`,By=` +`,Tb=` #ifdef USE_MAP { vec3 p = vLookPos; @@ -4994,7 +5005,7 @@ varying float vLookJaw; float teeth = (1.0 - smoothstep(0.14, 0.22, vLookJaw)) * (1.0 - smoothstep(0.8, 1.3, abs(p.x))); diffuseColor.rgb = mix(diffuseColor.rgb, mix(vec3(0.035, 0.006, 0.008), vec3(0.5, 0.44, 0.36), teeth), parted * between); // The upper lid comes down over the eye along its own curve, a dark lash line at its edge. - vec3 lidSkin = ${ky} * diffuse * 0.72; + vec3 lidSkin = ${mb} * diffuse * 0.72; for (int e = 0; e < 2; e++) { vec3 q = p - (e == 0 ? vec3(2.65, 120.65, 3.6) : vec3(-2.75, 120.75, 3.4)); float across = q.x / 1.35; @@ -5006,7 +5017,7 @@ varying float vLookJaw; } } #endif -`,Vy=class{material;uniforms={uLookHair:{value:new B(Sy.hair)},uLookFace:{value:new Lo},uLookGroom:{value:new R},uLookExpression:{value:new z}};current=Sy;constructor(e,t=!1){this.material=e;let n=this.uniforms,r=e.onBeforeCompile,i=Object.hasOwn(e,`customProgramCacheKey`)?e.customProgramCacheKey():`plain`;e.onBeforeCompile=(i,a)=>{r.call(e,i,a),Object.assign(i.uniforms,n),i.vertexShader=i.vertexShader.replace(`#include `,`#include \n${t?`attribute vec3 bindPosition;`:Ry}\n${Ay}`).replace(`#include `,`${t?Iy:jy+zy}\n#include `),i.fragmentShader=i.fragmentShader.replace(`#include `,`#include \n${t?``:Ry}${Ay}`).replace(`#include `,`#include \n${Ly}${t?``:By}`)},e.customProgramCacheKey=()=>`${i}-look-${t?`baked`:`live`}`,e.needsUpdate=!0}set(e){this.current=e,this.material.color.setHex(e.tint),this.uniforms.uLookHair.value.setHex(e.hair),this.uniforms.uLookFace.value.set(e.jaw,e.nose,e.brow,e.skull),this.uniforms.uLookGroom.value.set(e.shaved,e.beard)}setExpression(e,t,n){this.uniforms.uLookExpression.value.set(e,t,n)}get look(){return this.current}},Hy=new z;function Uy(e,t,n,r,i,a){let o=2*Math.PI*i/4,s=Math.max(a-2*i,0),c=Math.PI/4;Hy.copy(t),Hy[r]=0,Hy.normalize();let l=.5*o/(o+s),u=1-Hy.angleTo(e)/c;return Math.sign(Hy[n])===1?u*l:s/(o+s)+l+l*(1-u)}var Wy=class e extends Jl{constructor(e=1,t=1,n=1,r=2,i=.1){let a=r*2+1;if(i=Math.min(e/2,t/2,n/2,i),super(1,1,1,a,a,a),this.type=`RoundedBoxGeometry`,this.parameters={width:e,height:t,depth:n,segments:r,radius:i},a===1)return;let o=this.toNonIndexed();this.index=null,this.attributes.position=o.attributes.position,this.attributes.normal=o.attributes.normal,this.attributes.uv=o.attributes.uv;let s=new z,c=new z,l=new z(e,t,n).divideScalar(2).subScalar(i),u=this.attributes.position.array,d=this.attributes.normal.array,f=this.attributes.uv.array,p=u.length/6,m=new z,h=.5/a;for(let r=0,a=0;r{r.call(e,i,a),Object.assign(i.uniforms,n),i.vertexShader=i.vertexShader.replace(`#include `,`#include \n${t?`attribute vec3 bindPosition;`:Cb}\n${hb}`).replace(`#include `,`${t?xb:gb+wb}\n#include `),i.fragmentShader=i.fragmentShader.replace(`#include `,`#include \n${t?``:Cb}${hb}`).replace(`#include `,`#include \n${Sb}${t?``:Tb}`)},e.customProgramCacheKey=()=>`${i}-look-${t?`baked`:`live`}`,e.needsUpdate=!0}set(e){this.current=e,this.material.color.setHex(e.tint),this.uniforms.uLookHair.value.setHex(e.hair),this.uniforms.uLookFace.value.set(e.jaw,e.nose,e.brow,e.skull),this.uniforms.uLookGroom.value.set(e.shaved,e.beard)}setExpression(e,t,n){this.uniforms.uLookExpression.value.set(e,t,n)}get look(){return this.current}},Db=new B;function Ob(e,t,n,r,i,a){let o=2*Math.PI*i/4,s=Math.max(a-2*i,0),c=Math.PI/4;Db.copy(t),Db[r]=0,Db.normalize();let l=.5*o/(o+s),u=1-Db.angleTo(e)/c;return Math.sign(Db[n])===1?u*l:s/(o+s)+l+l*(1-u)}var kb=class e extends Nu{constructor(e=1,t=1,n=1,r=2,i=.1){let a=r*2+1;if(i=Math.min(e/2,t/2,n/2,i),super(1,1,1,a,a,a),this.type=`RoundedBoxGeometry`,this.parameters={width:e,height:t,depth:n,segments:r,radius:i},a===1)return;let o=this.toNonIndexed();this.index=null,this.attributes.position=o.attributes.position,this.attributes.normal=o.attributes.normal,this.attributes.uv=o.attributes.uv;let s=new B,c=new B,l=new B(e,t,n).divideScalar(2).subScalar(i),u=this.attributes.position.array,d=this.attributes.normal.array,f=this.attributes.uv.array,p=u.length/6,m=new B,h=.5/a;for(let r=0,a=0;r` -${Qy} +`,Rb={head:`1.0 - smoothstep(outfitCollar(p) - 0.3, outfitCollar(p) + 0.3, p.y)`,body:`p.y < 60.0 ? 1.0 : 1.0 - smoothstep(uOutfitShape.x - 0.4, uOutfitShape.x + 0.4, abs(p.x))`,shoes:`smoothstep(9.0, 11.0, p.y)`,pants:`1.0`},zb=e=>` +${Lb} varying vec3 vOutfitPos; vec3 outfitBindNormal = vec3(0.0, 1.0, 0.0); -float outfitClothAt(vec3 p) { return ${$y[e]}; } +float outfitClothAt(vec3 p) { return ${Rb[e]}; } vec3 outfitRounded(vec3 p, vec3 n) { if (p.y < 60.0) { vec2 radial = normalize(p.xz - outfitLegAxis(p.y, sign(p.x)) + vec2(1e-4)); @@ -5070,20 +5081,20 @@ vec3 outfitDraped(vec3 p, vec3 at, float cloth) { at.yz += around / span * (max(span, sleeve) - span) * arm; return at; } -`,tb=` +`,Bb=` { vec3 p = position; float cloth = outfitClothAt(p); objectNormal = normalize(mix(objectNormal, outfitRounded(p, objectNormal), 0.97 * cloth)); outfitBindNormal = objectNormal; } -`,nb=` +`,Vb=` float side = sign(p.x); vec2 axis = outfitLegAxis(p.y, side); vec2 offset = transformed.xz - axis; float reach = max(length(offset), 1e-3); float tube = mix(5.2, 6.0, smoothstep(12.0, 40.0, p.y)); -`,rb={head:` +`,Hb={head:` { vec3 p = position; vOutfitPos = p; @@ -5095,7 +5106,7 @@ vec3 outfitDraped(vec3 p, vec3 at, float cloth) { vec3 p = position; vOutfitPos = p; if (p.y < 60.0) { - ${nb} + ${Vb} float weight = 1.0 - smoothstep(40.5, 45.0, p.y); transformed.xz = axis + offset / reach * mix(reach, max(reach, tube), weight); } else { @@ -5107,7 +5118,7 @@ vec3 outfitDraped(vec3 p, vec3 at, float cloth) { { vec3 p = position; vOutfitPos = p; - ${nb} + ${Vb} float weight = smoothstep(9.0, 11.5, p.y); transformed.xz = axis + offset / reach * mix(reach, max(reach, tube), weight); } @@ -5120,8 +5131,8 @@ vec3 outfitDraped(vec3 p, vec3 at, float cloth) { vec2 narrow = vec2(mix(0.76, 1.0, slim), mix(0.62, 1.0, slim)); transformed.xz = mix(transformed.xz, axis + (transformed.xz - axis) * narrow, smoothstep(0.5, 4.0, abs(p.x))); } -`},ib=` -${Qy} +`},Ub=` +${Lb} uniform vec3 uOutfitShirt; uniform vec3 uOutfitTrousers; uniform vec3 uOutfitAccent; @@ -5145,7 +5156,7 @@ vec3 outfitShirtTone(vec3 p) { float band = (1.0 - smoothstep(7.0, 7.2, reach)) * step(104.0, p.y); vec3 tone = uOutfitShirt * mix(mix(0.9, 1.0, fold), 1.07, band); tone *= 1.0 - 0.4 * (1.0 - smoothstep(0.0, 0.3, abs(reach - 7.25))) * step(104.0, p.y); - float hem = min(uOutfitShape.x, ${Yy.toFixed(1)}) - 2.4; + float hem = min(uOutfitShape.x, ${Pb.toFixed(1)}) - 2.4; tone *= mix(1.0, 0.86, smoothstep(hem - 0.1, hem + 0.1, along)); if (along < 1.0 && p.z > 0.5 && p.y < 106.0) { tone *= 0.92; @@ -5156,7 +5167,7 @@ vec3 outfitShirtTone(vec3 p) { outfitGloss = tie * 0.4; return mix(tone, uOutfitAccent, tie); } -`,ab={head:` +`,Wb={head:` { vec3 p = vOutfitPos; float collar = outfitCollar(p); @@ -5192,13 +5203,13 @@ vec3 outfitShirtTone(vec3 p) { outfitCloth = 1.0 - belt; outfitGloss = belt; } -`},ob=` +`},Gb=` roughnessFactor = mix(mix(roughnessFactor, 0.88, outfitCloth), 0.32, outfitGloss); -`,sb=` +`,Kb=` #ifdef USE_CLEARCOAT material.clearcoat *= 1.0 - outfitCloth; #endif -`;function cb(e,t,n){let r={uOutfitShirt:{value:new B(n.shirt)},uOutfitTrousers:{value:new B(n.trousers)},uOutfitAccent:{value:new B(n.accent)},uOutfitShape:{value:new Lo(n.sleeves===`long`?63.4:Xy,+!!n.bowTie,Zy,0)}},i=e.onBeforeCompile,a=Object.hasOwn(e,`customProgramCacheKey`)?e.customProgramCacheKey():`plain`;e.onBeforeCompile=(n,a)=>{i.call(e,n,a),Object.assign(n.uniforms,r),n.vertexShader=n.vertexShader.replace(`#include `,`#include \n${eb(t)}`).replace(`#include `,`#include \n${tb}`).replace(`#include `,`#include \n${rb[t]}`),n.fragmentShader=n.fragmentShader.replace(`#include `,`#include \n${ib}`).replace(`#include `,`#include \n${ab[t]}`).replace(`#include `,`#include \n${ob}`).replace(`#include `,`#include \n${sb}`)},e.customProgramCacheKey=()=>`${a}-outfit-${t}`,e.needsUpdate=!0}var lb=new z(0,1,0);function ub(e,t,n,r){let i=new Yl(r,n,1,6);return i.applyQuaternion(new vo().setFromUnitVectors(lb,t)),i.translate(e.x+t.x*n*.5,e.y+t.y*n*.5,e.z+t.z*n*.5),i}function db(e){let t=e===`left`?-1:1,n=[],r=new Wy(8.4,9.2,2.8,1,1.25);r.translate(0,5.2,0),n.push(r);let i=new Yl(2.2,2.2,1,6);i.scale(1.3,1,.9),i.translate(0,.4,0),n.push(i);let a=[{x:3.2*t,y:9.1,scale:.95,curl:.22,splay:.12*t},{x:1.08*t,y:9.5,scale:1.05,curl:.34,splay:.03*t},{x:-1.05*t,y:9.3,scale:.98,curl:.46,splay:-.05*t},{x:-3.05*t,y:8.7,scale:.8,curl:.6,splay:-.16*t}];for(let e of a){let t=new z(e.x,e.y,0),r=e.curl;for(let[i,a,o]of[[4.3,1.04,.55],[2.7,.95,.5],[2.2,.86,0]]){let s=new z(Math.sin(e.splay)*Math.cos(r),Math.cos(e.splay)*Math.cos(r),Math.sin(r)),c=i*e.scale;n.push(ub(t,s,c,a*(.88+.12*e.scale))),t.addScaledVector(s,c),r+=o}}let o=new Mu(1.9,6,4);o.scale(1.15,1.5,.95),o.translate(2.7*t,3.3,.9),n.push(o);let s=new z(3.7*t,3.4,.9),c=new z(.62*t,.64,.45).normalize();n.push(ub(s,c,3.9,1.2)),s.addScaledVector(c,3.9),n.push(ub(s,new z(.3*t,.82,.48).normalize(),3,1.05));let l=n.map(e=>{let t=e.index===null?e:e.toNonIndexed();return t.deleteAttribute(`uv`),t}),u=Jh(l,!1);for(let e of new Set([...n,...l]))e.dispose();if(u===null)throw Error(`hand geometry could not be merged`);return u}function fb(){let e=new Zl(3.9,6,9.2,20,1,!1);return e.scale(1,1,.96),e.translate(0,21.1,0),e}var pb=` +`;function qb(e,t,n){let r={uOutfitShirt:{value:new V(n.shirt)},uOutfitTrousers:{value:new V(n.trousers)},uOutfitAccent:{value:new V(n.accent)},uOutfitShape:{value:new Ss(n.sleeves===`long`?63.4:Fb,+!!n.bowTie,Ib,0)}},i=e.onBeforeCompile,a=Object.hasOwn(e,`customProgramCacheKey`)?e.customProgramCacheKey():`plain`;e.onBeforeCompile=(n,a)=>{i.call(e,n,a),Object.assign(n.uniforms,r),n.vertexShader=n.vertexShader.replace(`#include `,`#include \n${zb(t)}`).replace(`#include `,`#include \n${Bb}`).replace(`#include `,`#include \n${Hb[t]}`),n.fragmentShader=n.fragmentShader.replace(`#include `,`#include \n${Ub}`).replace(`#include `,`#include \n${Wb[t]}`).replace(`#include `,`#include \n${Gb}`).replace(`#include `,`#include \n${Kb}`)},e.customProgramCacheKey=()=>`${a}-outfit-${t}`,e.needsUpdate=!0}var Jb=new B(0,1,0);function Yb(e,t,n,r){let i=new Pu(r,n,1,6);return i.applyQuaternion(new rs().setFromUnitVectors(Jb,t)),i.translate(e.x+t.x*n*.5,e.y+t.y*n*.5,e.z+t.z*n*.5),i}function Xb(e){let t=e===`left`?-1:1,n=[],r=new kb(8.4,9.2,2.8,1,1.25);r.translate(0,5.2,0),n.push(r);let i=new Pu(2.2,2.2,1,6);i.scale(1.3,1,.9),i.translate(0,.4,0),n.push(i);let a=[{x:3.2*t,y:9.1,scale:.95,curl:.22,splay:.12*t},{x:1.08*t,y:9.5,scale:1.05,curl:.34,splay:.03*t},{x:-1.05*t,y:9.3,scale:.98,curl:.46,splay:-.05*t},{x:-3.05*t,y:8.7,scale:.8,curl:.6,splay:-.16*t}];for(let e of a){let t=new B(e.x,e.y,0),r=e.curl;for(let[i,a,o]of[[4.3,1.04,.55],[2.7,.95,.5],[2.2,.86,0]]){let s=new B(Math.sin(e.splay)*Math.cos(r),Math.cos(e.splay)*Math.cos(r),Math.sin(r)),c=i*e.scale;n.push(Yb(t,s,c,a*(.88+.12*e.scale))),t.addScaledVector(s,c),r+=o}}let o=new _d(1.9,6,4);o.scale(1.15,1.5,.95),o.translate(2.7*t,3.3,.9),n.push(o);let s=new B(3.7*t,3.4,.9),c=new B(.62*t,.64,.45).normalize();n.push(Yb(s,c,3.9,1.2)),s.addScaledVector(c,3.9),n.push(Yb(s,new B(.3*t,.82,.48).normalize(),3,1.05));let l=n.map(e=>{let t=e.index===null?e:e.toNonIndexed();return t.deleteAttribute(`uv`),t}),u=Ng(l,!1);for(let e of new Set([...n,...l]))e.dispose();if(u===null)throw Error(`hand geometry could not be merged`);return u}function Zb(){let e=new Iu(3.9,6,9.2,20,1,!1);return e.scale(1,1,.96),e.translate(0,21.1,0),e}var Qb=` void RE_Direct_Skin( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { RE_Direct_Physical( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); float facing = dot( geometryNormal, directLight.direction ); @@ -5210,13 +5221,13 @@ void RE_Direct_Skin( const in IncidentLight directLight, const in vec3 geometryP } #undef RE_Direct #define RE_Direct RE_Direct_Skin -`,mb=.35;function hb(e){e.bumpMap=e.map,e.bumpScale=mb;let t=e.onBeforeCompile,n=Object.hasOwn(e,`customProgramCacheKey`)?e.customProgramCacheKey():`plain`;e.onBeforeCompile=(n,r)=>{t.call(e,n,r),n.fragmentShader=n.fragmentShader.replace(`#include `,`#include \n${pb}`)},e.customProgramCacheKey=()=>`${n}-skin`,e.needsUpdate=!0}var gb={x:7,y:66.1,z:-3},_b={x:8.4,y:39.4,z:-4.7},vb=62,yb=58,bb=72,xb=.78,Sb=.85,Cb=.66,wb=(e,t,n)=>{let r=L.clamp((n-e)/(t-e),0,1);return r*r*(3-2*r)},Tb=L.lerp;function Eb(e,t){let n=e.clone(),r=n.getAttribute(`position`),i=n.getAttribute(`skinIndex`),a=new Map([[t.indexOf(gy.kneeL),t.indexOf(gy.hipL)],[t.indexOf(gy.kneeR),t.indexOf(gy.hipR)]]);for(let e=0;e0&&(t=Math.sign(t)*(l+d*Tb(1,xb,s))),o=u+(o-u)*Tb(1,o>u?Sb:Cb,s),r.setXYZ(e,t,n,o);for(let t=0;t>>0||1,this.blinkIn=this.nextBlink()}nextBlink(){return this.seed=Math.imul(this.seed,1664525)+1013904223>>>0,Ob[0]+this.seed/4294967296*(Ob[1]-Ob[0])}flinch(e,t){let n=Math.min(1,Math.max(0,e));this.wince=Math.max(this.wince,t?.55+.45*n:.3+.4*n),this.gape=Math.max(this.gape,t?.25+.6*n:.5+.5*n)}update(e,t,n,r,i,a){let o=Math.max(0,e);this.wince=Math.max(0,this.wince-this.wince*kb*o-.2*o),this.gape=Math.max(0,this.gape-this.gape*kb*.6*o-.15*o),!t&&!a&&(this.blinkIn-=o,this.blinkIn<=0&&(this.blink=Db,this.blinkIn=this.nextBlink()),this.breath+=o*Ab*Math.PI*2),this.blink=Math.max(0,this.blink-o);let s=this.blink>0?Math.sin(this.blink/Db*Math.PI):0,c=t?.3:.3+.25*Math.sin(this.breath),l=a?1:Math.max(s,this.wince,n?.4:0,i*.55),u=a?.45:Math.max(this.gape,n?.3:0,r*c,i*.35),d=a?0:Math.max(+!!n,this.wince*.8),f=1-Math.exp(-14*o);this.lids=Math.max(s,this.wince,this.lids+(l-this.lids)*f),this.mouth+=(u-this.mouth)*f,this.brow+=(d-this.brow)*f}},Mb={hips:gy.hips,spine:gy.spine,chest:`Spine1_024`,upperChest:gy.chest,neck:`Neck_012`,head:gy.head,clavicleL:`LeftShoulder_09`,shoulderL:gy.shoulderL,elbowL:gy.elbowL,gloveL:gy.gloveL,clavicleR:`RightShoulder_020`,shoulderR:gy.shoulderR,elbowR:gy.elbowR,gloveR:gy.gloveR,hipL:gy.hipL,kneeL:gy.kneeL,ankleL:gy.ankleL,toeL:`LeftToeBase_011`,hipR:gy.hipR,kneeR:gy.kneeR,ankleR:gy.ankleR,toeR:`RightToeBase_022`},Nb=new z,Pb=new z,Fb=new z,Ib=new Ho,Lb=new vo,Rb=new vo,zb=new z,Bb=new z,Vb=new z,Hb=new z,Ub=new z,Wb=new z,Gb=new z,Kb=new z,qb=new z,Jb=new z;function Yb(e,t){return t.setFromMatrixPosition(e.matrixWorld)}function Xb(e,t){return e.matrixWorld.decompose(zb,t,Bb),t}function Zb(e,t,n,r){return Pb.copy(e).normalize(),n===`z`?(Fb.copy(t).addScaledVector(Pb,-t.dot(Pb)),Fb.lengthSq()<1e-8&&Fb.set(0,0,1).addScaledVector(Pb,-Pb.z),Fb.normalize(),Nb.crossVectors(Pb,Fb).normalize()):(Nb.copy(t).addScaledVector(Pb,-t.dot(Pb)),Nb.lengthSq()<1e-8&&Nb.set(1,0,0).addScaledVector(Pb,-Pb.x),Nb.normalize(),Fb.crossVectors(Nb,Pb).normalize()),Ib.makeBasis(Nb,Pb,Fb),r.setFromRotationMatrix(Ib)}var Qb=class{bones;metrics;restLocal=new Map;restPositions=new Map;limb={reached:!1,joint:new z};constructor(e){let t=new Map;e.traverse(e=>{e instanceof il&&t.set(e.name,e)});let n={};for(let[e,r]of Object.entries(Mb)){let i=t.get(r);if(i===void 0)throw Error(`fighter rig missing bone ${r} (${e})`);n[e]=i}this.bones=n,e.updateMatrixWorld(!0);for(let e of t.values())this.restLocal.set(e,e.quaternion.clone()),this.restPositions.set(e,e.position.clone());let r=(e,t)=>Yb(n[e],Vb).distanceTo(Yb(n[t],Hb)),i=Yb(n.hips,Vb).clone(),a=Yb(n.hips.parent??e,Hb).clone(),o=n.hips.position.length(),s=i.distanceTo(a);this.metrics={hipsHeight:i.y,headHeight:Yb(n.head,Vb).y,chestHeight:Yb(n.upperChest,Vb).y,ankleHeight:Yb(n.ankleL,Vb).y,armL:{upper:r(`shoulderL`,`elbowL`),lower:r(`elbowL`,`gloveL`)},armR:{upper:r(`shoulderR`,`elbowR`),lower:r(`elbowR`,`gloveR`)},legL:{upper:r(`hipL`,`kneeL`),lower:r(`kneeL`,`ankleL`)},legR:{upper:r(`hipR`,`kneeR`),lower:r(`kneeR`,`ankleR`)},footLength:r(`ankleL`,`toeL`),unitsPerMeter:s>1e-6?o/s:1}}resetToRest(){for(let[e,t]of this.restLocal){e.quaternion.copy(t);let n=this.restPositions.get(e);n!==void 0&&e.position.copy(n)}}restLocalQuaternion(e){return this.restLocal.get(e)??e.quaternion}restLocalPosition(e){return this.restPositions.get(e)??e.position}position(e,t){return Yb(this.bones[e],t)}setWorldRotation(e,t){let n=e.parent;n===null?e.quaternion.copy(t):(Xb(n,Rb),e.quaternion.copy(Rb.invert().multiply(t)).normalize()),e.updateWorldMatrix(!1,!1)}setWorldFrame(e,t,n,r){this.setWorldRotation(e,Zb(t,n,r,Lb))}setWorldPosition(e,t){let n=e.parent;n===null?e.position.copy(t):(e.position.copy(t),n.worldToLocal(e.position)),e.updateWorldMatrix(!1,!1)}aimAt(e,t,n){if(e.updateWorldMatrix(!1,!1),Yb(e,Vb),Ub.subVectors(t,Vb),Ub.lengthSq()<1e-10)return;Xb(e,Lb);let r=n===`z`?Jb.set(0,0,1):Jb.set(1,0,0);this.setWorldFrame(e,Ub,r.applyQuaternion(Lb),n)}solveLimb(e,t,n,r,i,a,o,s=.01){e.updateWorldMatrix(!1,!1);let c=Yb(e,Vb);Ub.subVectors(r,c);let l=n.upper+n.lower-s,u=L.clamp(Ub.length(),Math.abs(n.upper-n.lower)+.005,l),d=Ub.length()<=l;Ub.lengthSq()<1e-10&&Ub.set(0,-1,0),Ub.normalize(),Wb.copy(i).addScaledVector(Ub,-i.dot(Ub)),Wb.lengthSq()<1e-8&&(Wb.set(0,0,1).addScaledVector(Ub,-Ub.z),Wb.lengthSq()<1e-8&&Wb.set(1,0,0)),Wb.normalize();let f=L.clamp((n.upper*n.upper+u*u-n.lower*n.lower)/(2*n.upper*u),-1,1),p=n.upper*f,m=n.upper*Math.sqrt(Math.max(0,1-f*f));Gb.copy(c).addScaledVector(Ub,p).addScaledVector(Wb,m),Kb.crossVectors(Wb,Ub).multiplyScalar(o).normalize(),qb.copy(Gb).sub(c),this.setWorldFrame(e,qb,Kb,a),t.updateWorldMatrix(!1,!1);let h=Yb(t,Hb);return qb.copy(c).addScaledVector(Ub,u).sub(h),this.setWorldFrame(t,qb,Kb,a),this.limb.reached=d,this.limb.joint.copy(h),this.limb}},$b={x:.1059,y:.0253,z:-.0026},ex=new z(.2018,.081,-.027),tx=new z(-.2018,.081,-.027),nx=(e,t,n)=>new z(e,t,n),rx=(e,t,n)=>{let r=L.clamp((n-e)/Math.max(1e-6,t-e),0,1);return r*r*(3-2*r)},ix=(e,t=1.7)=>L.clamp(e,0,1)**+t,ax=(e,t=2)=>1-(1-L.clamp(e,0,1))**t,ox=new vo,sx=new z,cx=new z,lx=new z,ux=new z,dx=new z,fx=new vo,px=new vo,mx=new Qo,hx=new z(0,1,0),gx=[[`spine`,.25,.2],[`chest`,.55,.5],[`upperChest`,1,1]],_x=class{rig;chestLocal=new z;constructor(e){this.rig=e}toWorld(e,t){return t.copy(e).applyQuaternion(ox).add(sx)}dirToWorld(e,t){return t.copy(e).applyQuaternion(ox)}setYawPitchRoll(e,t,n,r){mx.set(n,t,r,`YXZ`),fx.setFromEuler(mx),px.copy(ox).multiply(fx),this.rig.setWorldRotation(e,px)}apply(e,t){let n=this.rig,r=n.bones;n.resetToRest(),e.updateMatrixWorld(!0),Xb(e,ox),Yb(e,sx);let i=t.torso;this.toWorld(i.hips,cx),n.setWorldPosition(r.hips,cx),this.setYawPitchRoll(r.hips,i.hipsYaw,i.hipsPitch,i.hipsRoll);let a=i.shouldersYaw-i.hipsYaw;for(let e=0;e0&&(Yb(r.head,cx),this.dirToWorld(i.headOffset,lx),cx.add(lx),n.setWorldPosition(r.head,cx)),this.solveArm(`L`,t.handL,t.shrugL),this.solveArm(`R`,t.handR,t.shrugR),this.solveLeg(`L`,t.footL),this.solveLeg(`R`,t.footR)}solveArm(e,t,n){let r=this.rig,i=r.bones,a=e===`L`?i.clavicleL:i.clavicleR,o=e===`L`?i.shoulderL:i.shoulderR,s=e===`L`?i.elbowL:i.elbowR,c=e===`L`?i.gloveL:i.gloveR,l=e===`L`?r.metrics.armL:r.metrics.armR,u=e===`L`?ex:tx;this.chestLocal.copy(u),this.chestLocal.z+=n*.06,this.chestLocal.y+=n*.035,this.chestLocal.x*=1-n*.08,ux.copy(this.chestLocal).multiplyScalar(r.metrics.unitsPerMeter),i.upperChest.localToWorld(ux),r.aimAt(a,ux,`z`),o.updateWorldMatrix(!1,!1),this.toWorld(t.position,cx),this.dirToWorld(t.pole,lx),r.solveLimb(o,s,l,cx,lx,`z`,e===`L`?1:-1,.012),c.updateWorldMatrix(!1,!1),this.dirToWorld(t.knuckles,ux),this.dirToWorld(t.palm,dx),r.setWorldFrame(c,ux,dx,`z`)}solveLeg(e,t){let n=this.rig,r=n.bones,i=e===`L`?r.hipL:r.hipR,a=e===`L`?r.kneeL:r.kneeR,o=e===`L`?r.ankleL:r.ankleR,s=e===`L`?r.toeL:r.toeR,c=e===`L`?n.metrics.legL:n.metrics.legR;this.toWorld(t.position,cx),this.dirToWorld(t.toe,ux).normalize();let l=n.metrics.footLength;dx.copy(ux).multiplyScalar(l).addScaledVector(hx,-n.metrics.ankleHeight).normalize(),t.heel!==0&&(cx.addScaledVector(dx,l),fx.setFromAxisAngle(lx.crossVectors(ux,hx).normalize(),-t.heel),dx.applyQuaternion(fx),cx.addScaledVector(dx,-l)),this.dirToWorld(t.pole,lx),n.solveLimb(i,a,c,cx,lx,`x`,-1,.02),o.updateWorldMatrix(!1,!1),n.setWorldFrame(o,dx,hx,`z`),s.updateWorldMatrix(!1,!1),n.setWorldFrame(s,ux,hx,`z`)}},vx={bladeYaw:-.68,shoulderBlade:1.18,hipsHeight:.875,leadFoot:nx(.13,0,.2),rearFoot:nx(-.15,0,-.25),leadToe:nx(-.26,0,.97),rearToe:nx(-.68,0,.73),leadHeel:.05,rearHeel:.3,lean:.09,hunch:.15,chinTuck:.24,leadShrug:.45,rearShrug:.25,relaxedLead:nx(.12,-.15,.44),relaxedRear:nx(-.07,-.11,.18),tightLead:nx(.13,-.11,.29),tightRear:nx(-.08,-.1,.15),guardHighLead:nx(.1,-.12,.33),guardHighRear:nx(-.1,-.11,.24),guardLowLead:nx(.11,-.3,.27),guardLowRear:nx(-.11,-.3,.25),guardHighLeadPole:nx(.15,-1,.35),guardHighRearPole:nx(-.15,-1,.35),guardLowLeadPole:nx(.3,-1,-.1),guardLowRearPole:nx(-.3,-1,-.1),guardKnuckles:nx(-.05,1,.15),guardPalm:nx(-.6,0,-.8),leadPole:nx(.3,-1,.1),rearPole:nx(-.35,-1,-.15),leadKnuckles:nx(.05,.75,.65),leadPalm:nx(-.9,.15,-.35),rearKnuckles:nx(-.05,.85,.5),rearPalm:nx(.95,.1,-.25)},yx=e=>({rise:0,length:1,width:1,weight:0,lean:0,lead:nx(0,0,0),rear:nx(0,0,0),flare:0,shrug:0,shell:0,spring:1,tempo:1,rock:1,bob:1,heel:1,paw:1,...e}),bx={balanced:yx({}),boxer:yx({rise:.022,width:.9,length:1.04,lean:-.03,lead:nx(0,.02,.07),flare:-.1,spring:.7,tempo:1.25,rock:1.7,bob:.8,heel:1.3,paw:1.4}),slugger:yx({rise:-.015,width:1.22,length:.94,weight:-.035,lead:nx(.04,-.07,-.05),rear:nx(-.04,-.06,0),flare:.3,shrug:-.15,spring:.3,tempo:.8,rock:.5,bob:.6,heel:.3,paw:.5}),swarmer:yx({rise:-.045,width:1.06,length:.9,weight:.035,lean:.06,lead:nx(-.03,.05,-.14),rear:nx(0,.03,-.02),flare:-.3,spring:.9,tempo:1.1,rock:.8,bob:2.6,paw:.3}),counter_puncher:yx({rise:.005,width:.94,length:1.05,weight:-.04,lean:-.05,lead:nx(-.11,-.3,-.2),rear:nx(.01,.01,-.02),shrug:.45,shell:1,spring:.3,tempo:.8,rock:.4,bob:.4,heel:.8,paw:.2})};function xx(e,t,n=new z){return n.set(e.x*t,e.y,e.z)}var U={pelvis:0,hipL:1,hipR:2,belly:3,chest:4,upper:5,neck:6,shoulderL:7,shoulderR:8,head:9,crown:10,face:11,elbowL:12,wristL:13,fistL:14,elbowR:15,wristR:16,fistR:17,kneeL:18,ankleL:19,toeL:20,heelL:21,kneeR:22,ankleR:23,toeR:24,heelR:25},Sx=[9,4,4,2,10,7,2,3.5,3.5,2.5,1.5,1,1.6,1,1,1.6,1,1,3.6,1.6,.4,.6,3.6,1.6,.4,.6],Cx=[.12,.09,.09,.11,.14,.13,.06,.07,.07,.09,.085,.055,.05,.065,.08,.05,.065,.08,.06,.05,.035,.04,.06,.05,.035,.04],wx=.12,Tx=.16,Ex=.09,Dx=.06,Ox=.11,kx=[[U.pelvis,U.hipL],[U.pelvis,U.hipR],[U.hipL,U.hipR],[U.belly,U.hipL],[U.belly,U.hipR],[U.belly,U.pelvis],[U.pelvis,U.chest],[U.chest,U.upper],[U.upper,U.neck],[U.upper,U.shoulderL],[U.upper,U.shoulderR],[U.neck,U.shoulderL],[U.neck,U.shoulderR],[U.shoulderL,U.shoulderR],[U.neck,U.head],[U.head,U.crown],[U.head,U.face],[U.crown,U.face],[U.shoulderL,U.elbowL],[U.elbowL,U.wristL],[U.wristL,U.fistL],[U.shoulderR,U.elbowR],[U.elbowR,U.wristR],[U.wristR,U.fistR],[U.hipL,U.kneeL],[U.kneeL,U.ankleL],[U.ankleL,U.toeL],[U.ankleL,U.heelL],[U.toeL,U.heelL],[U.hipR,U.kneeR],[U.kneeR,U.ankleR],[U.ankleR,U.toeR],[U.ankleR,U.heelR],[U.toeR,U.heelR]],Ax=[[U.hipL,U.shoulderL,.8,1.05],[U.hipR,U.shoulderR,.8,1.05],[U.hipL,U.shoulderR,.84,1.08],[U.hipR,U.shoulderL,.84,1.08],[U.belly,U.upper,.7,1.06],[U.pelvis,U.upper,.86,1],[U.hipL,U.chest,.84,1.08],[U.hipR,U.chest,.84,1.08],[U.shoulderL,U.face,.76,1.2],[U.shoulderR,U.face,.76,1.2],[U.kneeL,U.hipR,.8,1.3],[U.kneeR,U.hipL,.8,1.3],[U.kneeL,U.belly,.5,1.12],[U.kneeR,U.belly,.5,1.12]],jx=8,Mx=[[U.kneeL,U.kneeR,.13],[U.ankleL,U.ankleR,.11],[U.kneeL,U.ankleR,.1],[U.kneeR,U.ankleL,.1],[U.hipL,U.ankleL,.2],[U.hipR,U.ankleR,.2],[U.shoulderL,U.wristL,.14],[U.shoulderR,U.wristR,.14],[U.face,U.chest,.2],[U.crown,U.chest,.24],[U.kneeL,U.upper,.3],[U.kneeR,U.upper,.3]],Nx=[U.elbowL,U.wristL,U.fistL,U.elbowR,U.wristR,U.fistR],Px=[.7,.6,.6,.7,.9,1,1,1,1,1,1,1,.9,.8,.8,.9,.8,.8,.35,.1,0,0,.35,.1,0,0],Fx=[[U.pelvis,U.chest,.12],[U.chest,U.upper,.13]],Ix=Int32Array.from(kx.flat()),Lx=Int32Array.from(Ax.flatMap(([e,t])=>[e,t])),Rx=Int32Array.from(Mx.flatMap(([e,t])=>[e,t])),zx=Float64Array.from(Mx.map(([,,e])=>e)),Bx=Int32Array.from(Fx.flatMap(([e,t])=>[e,t])),Vx=Float64Array.from(Fx.map(([,,e])=>e)),Hx=Float64Array.from([U.head,1,U.crown,.9,U.face,1,U.neck,.45]),Ux=Float64Array.from([U.belly,1,U.chest,.6,U.pelvis,.4,U.hipL,.3,U.hipR,.3]),Wx=[U.head,U.crown,U.face],Gx=[U.crown,U.face],Kx=[[U.toeL,U.heelL],[U.toeR,U.heelR]],qx=[[U.heelL],[U.heelR]],Jx=[U.head,U.crown,U.face],Yx=[U.fistL],Xx=[U.fistR],Zx=1/120,Qx=12,$x=9.81,eS=.998,tS=.5,nS=.03,rS=.35,iS=.12,aS=[U.pelvis,U.hipL,U.hipR,U.belly,U.chest,U.upper],oS=[U.upper,U.neck,U.shoulderL,U.shoulderR,U.head,U.crown,U.face,U.elbowL,U.wristL,U.fistL,U.elbowR,U.wristR,U.fistR],sS=[U.pelvis,U.hipL,U.hipR,U.belly,U.kneeL,U.ankleL,U.toeL,U.heelL,U.kneeR,U.ankleR,U.toeR,U.heelR],cS=40*Math.PI/180,lS=[[U.kneeL,U.ankleL,U.toeL,U.heelL],[U.kneeR,U.ankleR,U.toeR,U.heelR]],uS=[[U.ankleL,U.toeL,U.heelL],[U.ankleR,U.toeR,U.heelR]],dS=.08,fS=.35,pS=new Set(aS),mS=f_+.45,hS=.24,gS=1.75,_S=.012,vS=1,yS=.35,bS=.15,xS=1.1,SS=.4,CS=1.2,wS=1200,TS=3,ES=7,DS=.08,OS=.97,kS=2.55,AS=.5,jS=30*Math.PI/180,MS=32*Math.PI/180,NS=28*Math.PI/180,PS=35*Math.PI/180,FS=20*Math.PI/180,IS=.5,LS=.01,RS=.04,zS=.4,BS=.02,VS=.25,HS={timber:{knee:.12,spine:.2,seconds:.55},crumple:{knee:kS,spine:1,seconds:0},sag:{knee:.55,spine:.6,seconds:.3},fold:{knee:.9,spine:1,seconds:.5}},US=2.5,WS=35*Math.PI/180,GS=50*Math.PI/180,KS=135*Math.PI/180,qS=[[U.kneeL,U.ankleL,U.toeL,GS,KS],[U.kneeR,U.ankleR,U.toeR,GS,KS],[U.elbowL,U.wristL,U.fistL,0,WS],[U.elbowR,U.wristR,U.fistR,0,WS]],JS=Int32Array.from(qS.flatMap(([e,,t])=>[e,t]));function YS(e,t,n,r){if(t===`body`)return`fold`;if(n<90)return`sag`;let i=Math.abs(Math.floor(r))%3;return e===`hook`?i===0?`timber`:`crumple`:i===0?`crumple`:`timber`}var XS=(e,t,n)=>n.set(e[t*3],e[t*3+1],e[t*3+2]),ZS=e=>e-Math.round(e/(Math.PI*2))*Math.PI*2,QS=(e,t,n)=>{e[t*3]=n.x,e[t*3+1]=n.y,e[t*3+2]=n.z},$S=class{position=new Float64Array(78);previous=new Float64Array(78);before=new Float64Array(78);invMass=new Float64Array(26);rigidLength=new Float64Array(kx.length);rangeMin=new Float64Array(Ax.length);rangeMax=new Float64Array(Ax.length);restRange=new Float64Array(Ax.length);rangeStart=new Float64Array(Ax.length);kneeStart=new Float64Array(2);footSign=new Float64Array(2);turnAxis=new z;turnQuaternion=new vo;turnPoint=new z;angleRanges=new Float64Array(qS.length*2);elbowAxes=new Float64Array(6);kneeAxes=new Float64Array(6);hingeStart=new Float64Array(24);hingeNow=new Float64Array(24);swing=new vo;local=new z;localAxis=new z;ropeLines=new Float64Array(4);style=`crumple`;steps=0;stillSeconds=0;torsoStillSeconds=0;fallSeconds=0;landedSeconds=-1;asleep=!1;obstacleActive=!1;obstacleX=0;obstacleZ=0;obstacleTrack=null;obstacleTrackLive=!1;pull=null;pullShare=0;trackObstacle(e,t){this.obstacleTrack=e,this.obstacleTrackLive=e!==null&&!t}a=new z;b=new z;c=new z;d=new z;e=new z;fx=new z;fy=new z;fz=new z;gx=new z;gy=new z;gz=new z;pivot=new z;segmentA=new z;segmentB=new z;constructor(){for(let e=0;e<26;e+=1)this.invMass[e]=1/Sx[e]}calibrate(e){for(let[t,[n,r]]of Ax.entries())this.restRange[t]=this.distance(e,n,r)}start(e,t,n){this.position.set(e),this.before.set(e);for(let n=0;n<78;n+=1)this.previous[n]=e[n]-t[n]*Zx;for(let[t,[n,r]]of kx.entries())this.rigidLength[t]=this.distance(e,n,r);for(let[t,[n,r,i,a,o]]of qS.entries()){let s=this.distance(e,n,r),c=this.distance(e,r,i),l=this.distance(e,n,i),u=e=>Math.sqrt(s*s+c*c+2*s*c*Math.cos(e));this.angleRanges[t*2]=Math.min(u(o),l),this.angleRanges[t*2+1]=Math.max(u(a),l)}for(let[t,[n,r,i,a]]of Ax.entries()){let o=this.distance(e,n,r),s=this.restRange[t]>0?this.restRange[t]:o;this.rangeMin[t]=Math.min(s*i,o*.98),this.rangeMax[t]=Math.max(s*a,o*1.02),this.rangeStart[t]=o}this.style=n,this.steps=0,this.stillSeconds=0,this.torsoStillSeconds=0,this.fallSeconds=0,this.landedSeconds=-1,this.asleep=!1,this.upperFrame(this.position),this.pelvisFrame(this.position);for(let e of[0,1]){this.startHinge(this.elbowAxes,e,e===0?U.shoulderL:U.shoulderR,e===0?U.elbowL:U.elbowR,e===0?U.wristL:U.wristR,this.gx,-1),this.startHinge(this.kneeAxes,e,e===0?U.hipL:U.hipR,e===0?U.kneeL:U.kneeR,e===0?U.ankleL:U.ankleR,this.fx,1),this.storeHingeStart(e,e===0?U.hipL:U.hipR,e===0?U.kneeL:U.kneeR,this.kneeAxes,this.fx,this.fy,this.fz),this.storeHingeStart(2+e,e===0?U.shoulderL:U.shoulderR,e===0?U.elbowL:U.elbowR,this.elbowAxes,this.gx,this.gy,this.gz);let t=this.dir(e===0?U.hipL:U.hipR,e===0?U.kneeL:U.kneeR,this.a),n=this.dir(e===0?U.kneeL:U.kneeR,e===0?U.ankleL:U.ankleR,this.b);this.kneeStart[e]=Math.acos(Math.min(1,Math.max(-1,t.dot(n))));let r=this.c.set(this.kneeAxes[e*3],this.kneeAxes[e*3+1],this.kneeAxes[e*3+2]);this.footSign[e]=this.footNormal(e,this.d).dot(r)>=0?1:-1}for(let t=0;t<4;t+=1){let n=t<2?0:2,r=t%2==0?1:-1,i=0;for(let t of aS)i=Math.max(i,r*e[t*3+n]+Cx[t]);this.ropeLines[t]=Math.max(g_,i+.04)}}startHinge(e,t,n,r,i,a,o){let s=this.dir(n,r,this.a),c=this.dir(r,i,this.b),l=this.c.crossVectors(s,c);l.length()<.2&&l.copy(a).multiplyScalar(o),l.addScaledVector(s,-l.dot(s)),l.lengthSq()<1e-8&&l.copy(a).multiplyScalar(o).addScaledVector(s,-o*a.dot(s)),l.normalize(),e[t*3]=l.x,e[t*3+1]=l.y,e[t*3+2]=l.z}storeHingeStart(e,t,n,r,i,a,o){let s=e%2,c=this.dir(t,n,this.a),l=this.b.set(r[s*3],r[s*3+1],r[s*3+2]),u=e*6;this.hingeStart[u]=c.dot(i),this.hingeStart[u+1]=c.dot(a),this.hingeStart[u+2]=c.dot(o),this.hingeStart[u+3]=l.dot(i),this.hingeStart[u+4]=l.dot(a),this.hingeStart[u+5]=l.dot(o);for(let e=0;e<6;e+=1)this.hingeNow[u+e]=this.hingeStart[u+e]}hingeAxis(e,t,n,r,i,a){let o=e*6,s=this.hingeNow;return this.local.set(t.dot(n),t.dot(r),t.dot(i)).normalize(),this.localAxis.set(s[o],s[o+1],s[o+2]),this.swing.setFromUnitVectors(this.localAxis,this.local),this.localAxis.set(s[o+3],s[o+4],s[o+5]).applyQuaternion(this.swing),a.copy(n).multiplyScalar(this.localAxis.x).addScaledVector(r,this.localAxis.y).addScaledVector(i,this.localAxis.z),a.addScaledVector(t,-a.dot(t)).normalize()}carryHinges(){this.pelvisFrame(this.position),this.upperFrame(this.position);for(let e=0;e<4;e+=1){let t=e%2,n=e<2,r=n?t===0?U.hipL:U.hipR:t===0?U.shoulderL:U.shoulderR,i=n?t===0?U.kneeL:U.kneeR:t===0?U.elbowL:U.elbowR,a=n?this.fx:this.gx,o=n?this.fy:this.gy,s=n?this.fz:this.gz,c=this.dir(r,i,this.a),l=this.hingeAxis(e,c,a,o,s,this.b),u=e*6;this.hingeNow[u]=c.dot(a),this.hingeNow[u+1]=c.dot(o),this.hingeNow[u+2]=c.dot(s),this.hingeNow[u+3]=l.dot(a),this.hingeNow[u+4]=l.dot(o),this.hingeNow[u+5]=l.dot(s)}}get holding(){return this.steps*Zx0&&(this.landedSeconds=0)}setLimp(e,t){for(let n=0;n0){let e=Math.min(this.steps,t.steps-1)*3;this.obstacleActive=t.data[e]===1,this.obstacleX=t.data[e+1],this.obstacleZ=t.data[e+2]}let n=Zx,r=this.position,i=this.previous,a=this.landedSeconds<0?eS:eS+-.02300000000000002*Math.min(1,this.landedSeconds/SS);this.before.set(r);for(let e=0;e<26;e+=1)for(let t=0;t<3;t+=1){let o=e*3+t,s=r[o],c=(s-i[o])*a;i[o]=s,r[o]=s+c-(t===1?$x*n*n:0)}let o=this.pull;if(o!==null)for(let e=0;e<26;e+=1){let t=(o[e*3]-r[e*3])*this.pullShare,n=(o[e*3+1]-r[e*3+1])*this.pullShare,a=(o[e*3+2]-r[e*3+2])*this.pullShare,s=Math.sqrt(t*t+n*n+a*a),c=this.pullShare<1&&s>dC?dC/s:1;for(let o=0;o<3;o+=1){let s=(o===0?t:o===1?n:a)*c;r[e*3+o]=r[e*3+o]+s,i[e*3+o]=i[e*3+o]+s}}this.carryHinges();for(let e=0;e=0&&o===null&&this.toppleLegs(),this.applyFriction(),this.limitSpeed(),this.steps+=1;let s=0,c=0;for(let e=0;e<26;e+=1){let t=r[e*3]-i[e*3],a=r[e*3+1]-i[e*3+1],o=r[e*3+2]-i[e*3+2],l=Math.sqrt(t*t+a*a+o*o)/n;s=Math.max(s,l),pS.has(e)&&(c=Math.max(c,l))}this.stillSeconds=s<_S?this.stillSeconds+n:0,this.fallSeconds+=n,this.landedSeconds>=0?this.landedSeconds+=n:(this.torsoStillSeconds=c=bS||this.fallSeconds>=xS)&&(this.landedSeconds=0)),o===null&&(this.stillSeconds>=vS||this.landedSeconds>=CS)&&(this.asleep=!0)}solveRigid(){for(let e=0;er?r:c;if(l===c)return;let u=this.invMass[e],d=this.invMass[t],f=u+d;if(f<=0)return;let p=(c-l)/(c*f);i[e*3]=i[e*3]+a*p*u,i[e*3+1]=i[e*3+1]+o*p*u,i[e*3+2]=i[e*3+2]+s*p*u,i[t*3]=i[t*3]-a*p*d,i[t*3+1]=i[t*3+1]-o*p*d,i[t*3+2]=i[t*3+2]-s*p*d}solveKnees(){this.pelvisFrame(this.position);for(let e=0;e<2;e+=1){let t=e===0?U.hipL:U.hipR,n=e===0?U.kneeL:U.kneeR,r=this.dir(t,n,this.a),i=this.hingeAxis(e,r,this.fx,this.fy,this.fz,this.b),a=this.holding?Math.min(kS,this.kneeStart[e]+HS[this.style].knee):kS;this.hinge(n,e===0?U.ankleL:U.ankleR,r,i,-.12,a)}}solveElbows(){this.upperFrame(this.position);for(let e=0;e<2;e+=1){let t=e===0?U.shoulderL:U.shoulderR,n=e===0?U.elbowL:U.elbowR,r=this.dir(t,n,this.a),i=this.hingeAxis(2+e,r,this.gx,this.gy,this.gz,this.b);this.hinge(n,e===0?U.wristL:U.wristR,r,i,-.12,US)}}toppleLegs(){let e=this.position;for(let t=0;t<2;t+=1){let n=t===0?U.hipL:U.hipR,r=t===0?U.kneeL:U.kneeR,i=t===0?U.ankleL:U.ankleR,a=this.dir(n,r,this.a);if(a.y>fS){let i=this.dir(U.hipR,U.hipL,this.b),o=this.c.crossVectors(i,this.d.set(e[r*3]-e[n*3],e[r*3+1]-e[n*3+1],e[r*3+2]-e[n*3+2])).y>0?-1:1;this.rotateAbout(lS[t],n,i,o*dS*(a.y-fS))}let o=this.dir(r,i,this.a);if(o.y>fS){let n=this.kneeAxis(t===0?0:1,e,this.b),a=this.c.crossVectors(n,this.d.set(e[i*3]-e[r*3],e[i*3+1]-e[r*3+1],e[i*3+2]-e[r*3+2])).y>0?-1:1;this.rotateAbout(uS[t],r,n,a*dS*(o.y-fS))}}}solveTwist(){let e=this.dir(U.pelvis,U.upper,this.e),t=this.dir(U.hipR,U.hipL,this.a);t.addScaledVector(e,-t.dot(e));let n=this.dir(U.shoulderR,U.shoulderL,this.c);if(n.addScaledVector(e,-n.dot(e)),t.lengthSq()<1e-8||n.lengthSq()<1e-8)return;let r=Math.atan2(this.d.crossVectors(t,n).dot(e),t.dot(n)),i=Math.abs(r)-cS;if(i<=0)return;let a=this.spinInertia(oS,e),o=this.spinInertia(sS,e),s=Math.sign(r)*i*zS;this.rotateAbout(oS,U.chest,e,-s*(o/(a+o))),this.rotateAbout(sS,U.chest,e,s*(a/(a+o)))}spinInertia(e,t){let n=this.position,r=1e-6;for(let i=0;iMath.abs(p)+1e-6){let n=Math.atan2(r,u),a=Math.acos(p/i),c=ZS(n-a),l=ZS(n+a),d=(Math.abs(c)<=Math.abs(l)?c:l)*s;this.rotateAbout(qx[t],o,e,Math.min(RS,Math.max(-.04,d)))}}let m=this.dir(i,a,this.a),h=this.hingeAxis(t,m,this.fx,this.fy,this.fz,this.b),g=this.footNormal(t===0?0:1,this.d).multiplyScalar(this.footSign[t]);if(h.addScaledVector(c,-h.dot(c)),g.addScaledVector(c,-g.dot(c)),h.lengthSq()<.09||g.lengthSq()<.09)continue;h.normalize(),g.normalize();let _=Math.atan2(this.e.crossVectors(h,g).dot(c),h.dot(g)),v=Math.min(NS,Math.max(-NS,_));v!==_&&this.rotateAbout(Kx[t],o,c,Math.min(LS,Math.max(-.01,(v-_)*s)))}}footNormal(e,t){let n=this.position,r=e===0?U.ankleL:U.ankleR,i=e===0?U.toeL:U.toeR,a=e===0?U.heelL:U.heelR;return t.set(n[i*3]-n[a*3],n[i*3+1]-n[a*3+1],n[i*3+2]-n[a*3+2]),this.turnPoint.set(n[r*3]-n[a*3],n[r*3+1]-n[a*3+1],n[r*3+2]-n[a*3+2]),t.cross(this.turnPoint).normalize()}cone(e,t,n,r,i,a){let o=this.dir(t,n,this.turnPoint),s=Math.acos(Math.min(1,Math.max(-1,o.dot(e))));if(s<=r)return;let c=this.turnAxis.crossVectors(o,e);if(c.lengthSq()<1e-10)return;c.normalize();let l=this.pressed(a,i,c)?BS*VS:BS;this.rotateAbout(a,i,c,Math.min(l,(s-r)*zS))}pressed(e,t,n){let r=this.position;for(let i=0;iCx[a]+.005)&&n.z*(r[a*3]-r[t*3])-n.x*(r[a*3+2]-r[t*3+2])<-1e-9)return!0}return!1}rotateAbout(e,t,n,r){let i=this.position;this.turnQuaternion.setFromAxisAngle(n,r);let a=i[t*3],o=i[t*3+1],s=i[t*3+2];for(let t=0;t=u||l<1e-6||(o.addScaledVector(c,(u-l)/l),QS(e,n,o))}}}closestOnSegment(e,t,n,r){let i=this.segmentA.subVectors(t,e),a=i.lengthSq(),o=a<1e-12?0:Math.min(1,Math.max(0,this.segmentB.subVectors(n,e).dot(i)/a));return r.copy(e).addScaledVector(i,o)}solveEnvironment(){let e=this.position;for(let t=0;t<26;t+=1){let n=Cx[t],r=e[t*3],i=e[t*3+1],a=e[t*3+2];i=p||f<1e-9)continue;let m=(p-f)/f*rS,h=u*m,g=d*m;t?r+=s*h:a+=s*h,i+=g}let u=o?c-n*.6:mS;s*(t?r:a)>u&&(t?r=s*u:a=s*u)}for(let e=0;e<4;e+=1){let t=e<2?-g_:g_,o=e%2==0?-g_:g_,s=r-t,c=a-o,l=Math.sqrt(s*s+c*c),u=iS+n;l>=u||l<1e-9||i>1.45||(r=t+s/l*u,a=o+c/l*u)}if(this.obstacleActive&&i1e-9&&(r=this.obstacleX+e/i*o,a=this.obstacleZ+t/i*o)}e[t*3]=r,e[t*3+1]=i,e[t*3+2]=a}}limitSpeed(){let e=this.position,t=this.previous,n=ES*Zx,r=DS*Zx;for(let i=0;i<26;i+=1){let a=e[i*3]-t[i*3],o=e[i*3+1]-t[i*3+1],s=e[i*3+2]-t[i*3+2],c=Math.sqrt(a*a+o*o+s*s);if(c>n||cn?n/c:OS;t[i*3]=e[i*3]-a*r,t[i*3+1]=e[i*3+1]-o*r,t[i*3+2]=e[i*3+2]-s*r}}}applyFriction(){let e=this.position,t=this.previous;for(let n=0;n<26;n+=1)e[n*3+1]>Cx[n]+.004||(t[n*3]=t[n*3]+(e[n*3]-t[n*3])*tS,t[n*3+2]=t[n*3+2]+(e[n*3+2]-t[n*3+2])*tS,t[n*3+1]>e[n*3+1]&&(t[n*3+1]=e[n*3+1]))}settle(e=4,t){let n=this.steps+Math.ceil(e/Zx);for(;!this.asleep&&this.steps1e-9?n.divideScalar(i):n.set(0,1,0)}pelvisFrame(e){this.fx.set(e[U.hipL*3]-e[U.hipR*3],e[U.hipL*3+1]-e[U.hipR*3+1],e[U.hipL*3+2]-e[U.hipR*3+2]).normalize(),this.fz.set(e[U.belly*3]-(e[U.hipL*3]+e[U.hipR*3])/2,e[U.belly*3+1]-(e[U.hipL*3+1]+e[U.hipR*3+1])/2,e[U.belly*3+2]-(e[U.hipL*3+2]+e[U.hipR*3+2])/2),this.fz.addScaledVector(this.fx,-this.fz.dot(this.fx)).normalize(),this.fy.crossVectors(this.fz,this.fx).normalize()}upperFrame(e){this.gx.set(e[U.shoulderL*3]-e[U.shoulderR*3],e[U.shoulderL*3+1]-e[U.shoulderR*3+1],e[U.shoulderL*3+2]-e[U.shoulderR*3+2]).normalize(),this.gy.set(e[U.neck*3]-e[U.upper*3],e[U.neck*3+1]-e[U.upper*3+1],e[U.neck*3+2]-e[U.upper*3+2]),this.gy.addScaledVector(this.gx,-this.gy.dot(this.gx)).normalize(),this.gz.crossVectors(this.gx,this.gy).normalize()}pelvisForward(e){return this.pelvisFrame(this.position),e.copy(this.fz)}};function eC(e,t){e.setLimp(Jx,!!(t&1)),e.setLimp(Yx,!!(t&2)),e.setLimp(Xx,!!(t&4))}var tC=[`hips`,`spine`,`chest`,`upperChest`,`neck`,`head`,`shoulderL`,`elbowL`,`gloveL`,`shoulderR`,`elbowR`,`gloveR`,`hipL`,`kneeL`,`ankleL`,`hipR`,`kneeR`,`ankleR`],nC=tC.map(e=>({shoulderL:[U.shoulderL,U.elbowL],elbowL:[U.elbowL,U.wristL],gloveL:[U.wristL,U.fistL],shoulderR:[U.shoulderR,U.elbowR],elbowR:[U.elbowR,U.wristR],gloveR:[U.wristR,U.fistR],hipL:[U.hipL,U.kneeL],kneeL:[U.kneeL,U.ankleL],hipR:[U.hipR,U.kneeR],kneeR:[U.kneeR,U.ankleR]})[e]??null),rC=tC.map(e=>({chest:U.chest,shoulderL:U.shoulderL,shoulderR:U.shoulderR,hipL:U.hipL,hipR:U.hipR})[e]??-1),iC=.1,aC=.35,oC=.6,sC=10,cC=.35,lC=6,uC=.25,dC=.05,fC=.3,pC=6;function mC(e){let t=e.lateral;if(e.target===`body`){let n=Math.min(2.6,Math.max(1,.9+e.amount/90));return{x:.3*t*n,y:-.05*n,z:-n,driveX:.1*t*n,driveY:-.2*n,driveZ:.45*n,twist:0}}let n=Math.min(3.2,Math.max(1.4,1.2+e.amount/70)),r=n/3.2;switch(e.punchClass){case`hook`:return{x:t*n,y:.05*n,z:-.25*n,driveX:.55*t*r,driveY:-.1*r,driveZ:.85*r,twist:.6};case`uppercut`:return{x:0,y:.8*n,z:-.65*n,driveX:0,driveY:.25*r,driveZ:-1.1*r,twist:.4};case`straight`:return{x:.12*t*n,y:.1*n,z:-n,driveX:.1*t*r,driveY:0,driveZ:-1.25*r,twist:.3};default:return{x:.12*t*n,y:.1*n,z:-.85*n,driveX:.08*t*r,driveY:0,driveZ:-1*r,twist:.2}}}var hC=class{rig;root;body=new $S;ahead=new $S;aheadOf=null;aheadBlows=0;ragdolling=!1;age=0;accumulator=0;sampleNow=new Float64Array(78);sampleBefore=new Float64Array(78);sampleRoot=new z;sampleSeconds=0;samples=0;drawn=new Float64Array(78);velocities=new Float64Array(78);offsets=tC.map(()=>new vo);fromLocal=tC.map(()=>new vo);fromPositions=tC.map(()=>new z);fromHips=new z;riseLocal=tC.map(()=>new vo);riseHips=new z;riseTurns=tC.map(()=>new vo);solvedTurns=tC.map(()=>new vo);rootTurn=new vo;turn=new vo;riseCaptured=!1;lastFall=null;recordPositions=new Float64Array(78);recordVelocities=new Float64Array(78);recordOffsets=tC.map(()=>new vo);recordImpulses=[];recordObstacles={data:new Float64Array(wS*3),steps:0};recordLosses=[];recordRest={position:new Float64Array(78),previous:new Float64Array(78),steps:-1};replaying=null;followTargets=new Float64Array(78);followOffsets=tC.map(()=>new vo);blendedOffsets=tC.map(()=>new vo);following=!1;followAge=0;primed=!1;pending=null;lost=0;clock=0;bones;frame=new vo;world=new vo;axisX=new z;axisY=new z;axisZ=new z;hint=new z;point=new z;other=new z;pelvisX=new z;pelvisY=new z;upperX=new z;headX=new z;kneeAxes=[new z(1,0,0),new z(1,0,0)];elbowAxes=[new z,new z];spineLength;tiltJoint=new z;tiltChest=new z;tiltAcross=new z;tiltTurn=new vo;constructor(e,t){this.rig=e,this.root=t,this.bones=tC.map(t=>e.bones[t]);let n=new Map;t.traverse(e=>{e instanceof il&&n.set(e,[e.quaternion.clone(),e.position.clone()])}),e.resetToRest(),t.updateMatrixWorld(!0);let r=new Float64Array(78);this.read(r),this.body.calibrate(r),this.ahead.calibrate(r),this.spineLength=this.tiltJoint.setFromMatrixPosition(e.bones.spine.matrixWorld).distanceTo(this.tiltChest.setFromMatrixPosition(e.bones.chest.matrixWorld));for(let[e,[t,r]]of n)e.quaternion.copy(t),e.position.copy(r);t.updateMatrixWorld(!0)}get active(){return this.ragdolling}get record(){return this.lastFall}sample(e){this.ragdolling||e<=0||(this.sampleBefore.set(this.sampleNow),this.read(this.sampleNow),this.sampleRoot.setFromMatrixPosition(this.root.matrixWorld),this.sampleSeconds=e,this.samples=Math.min(2,this.samples+1))}tick(e){this.clock+=e}takeBlow(e,t,n,r,i){let a={step:0,x:e.x,y:e.y,z:e.z,driveX:t.x,driveY:t.y,driveZ:t.z,target:n,twist:r,style:i};if(this.ragdolling){if(this.age>aC)return;if(this.replaying!==null){this.replaying.impulses.length===0&&this.replaying.impulses.push({...a,step:this.body.steps});return}this.lastFall?.impulses.push(this.body.impulse(a))}else this.pending={...a,at:this.clock}}dropBlow(){this.pending=null}twitch(e,t,n){this.ragdolling&&!this.following&&(this.body.twitch(e,t,n),this.replaying===null&&this.lastFall!==null&&(this.lastFall.rest.steps=-1))}prime(){this.primed=this.lastFall!==null}forget(){this.lastFall=null,this.primed=!1}start(e){let t=this.primed?this.lastFall:null;if(this.primed=!1,this.root.updateMatrixWorld(!0),this.captureLocals(this.fromLocal,this.fromHips),t!==null){this.replaying=t,this.body.start(t.positions,t.velocities,t.style),this.body.trackObstacle(t.obstacles,!0),this.replayLosses(this.body,t,0);for(let[e,n]of t.offsets.entries())this.offsets[e].copy(n);this.aheadOf=null,t.rest.steps<0&&this.runAhead(t,0)}else{this.replaying=null;let t=this.point.setFromMatrixPosition(this.root.matrixWorld).sub(this.sampleRoot),n=this.samples>0&&t.lengthSq()<=cC*cC;if(!n)this.read(this.sampleNow);else for(let e=0;e<26;e+=1)for(let n of[this.sampleNow,this.sampleBefore])n[e*3]=n[e*3]+t.x,n[e*3+1]=n[e*3+1]+t.y,n[e*3+2]=n[e*3+2]+t.z;let r=n&&this.samples>=2&&this.sampleSeconds>0?this.sampleSeconds:0;this.samples=0;for(let e=0;e<78;e+=1){let t=r>0?(this.sampleNow[e]-this.sampleBefore[e])/r:0;this.velocities[e]=Math.max(-3,Math.min(TS,t))}let i=this.rig.bones.neck,a=this.rig.bones.head;this.point.copy(this.rig.restLocalPosition(a)).applyMatrix4(i.matrixWorld).sub(this.other.setFromMatrixPosition(a.matrixWorld));for(let e of Wx)this.sampleNow[e*3]=this.sampleNow[e*3]+this.point.x,this.sampleNow[e*3+1]=this.sampleNow[e*3+1]+this.point.y,this.sampleNow[e*3+2]=this.sampleNow[e*3+2]+this.point.z;let o=this.pending!==null&&this.clock-this.pending.at<=oC?this.pending:null;this.body.start(this.sampleNow,this.velocities,o?.style??e),this.computeOffsets();let s=this.recordImpulses;s.length=0,o!==null&&s.push(this.body.impulse({step:0,x:o.x,y:o.y,z:o.z,driveX:o.driveX,driveY:o.driveY,driveZ:o.driveZ,target:o.target,twist:o.twist}));let c=this.recordObstacles;c.steps=0,this.body.trackObstacle(c,!1),this.recordPositions.set(this.sampleNow),this.recordVelocities.set(this.velocities);for(let e=0;e=.008333333333333333&&i=.008333333333333333&&n=0)this.body.restore(t);else{let t=this.body.steps+Math.ceil(pC/Zx);for(;!this.body.asleep&&this.body.steps=1)return;let t=Math.min(1,Math.max(0,e));this.bodyTurns(this.solvedTurns),this.rig.bones.hips.position.lerpVectors(this.riseHips,this.rig.bones.hips.position,t);for(let e=0;eQS(e,t,n),r=e=>this.point.setFromMatrixPosition(e.matrixWorld),i=(e,t,n)=>n.setFromMatrixColumn(e.matrixWorld,t).normalize();n(U.pelvis,r(t.hips)),n(U.hipL,r(t.hipL)),n(U.hipR,r(t.hipR)),n(U.belly,r(t.hips).addScaledVector(i(t.hips,2,this.axisZ),wx)),n(U.chest,r(t.chest)),n(U.upper,r(t.upperChest)),n(U.neck,r(t.neck)),n(U.shoulderL,r(t.shoulderL)),n(U.shoulderR,r(t.shoulderR)),n(U.head,r(t.head)),n(U.crown,r(t.head).addScaledVector(i(t.head,1,this.axisY),Tx)),n(U.face,r(t.head).addScaledVector(i(t.head,2,this.axisZ),Ex).addScaledVector(i(t.head,1,this.axisY),Dx)),n(U.elbowL,r(t.elbowL)),n(U.wristL,r(t.gloveL)),n(U.fistL,r(t.gloveL).addScaledVector(i(t.gloveL,1,this.axisY),Ox)),n(U.elbowR,r(t.elbowR)),n(U.wristR,r(t.gloveR)),n(U.fistR,r(t.gloveR).addScaledVector(i(t.gloveR,1,this.axisY),Ox)),n(U.kneeL,r(t.kneeL)),n(U.ankleL,r(t.ankleL)),n(U.toeL,r(t.toeL)),n(U.heelL,r(t.ankleL).addScaledVector(i(t.toeL,1,this.axisY),-.07).addScaledVector(i(t.toeL,2,this.axisZ),-.09)),n(U.kneeR,r(t.kneeR)),n(U.ankleR,r(t.ankleR)),n(U.toeR,r(t.toeR)),n(U.heelR,r(t.ankleR).addScaledVector(i(t.toeR,1,this.axisY),-.07).addScaledVector(i(t.toeR,2,this.axisZ),-.09))}computeOffsets(){this.prepareFrames(this.body.position);for(let e=0;e=0&&this.rig.setWorldPosition(i,XS(e,a,this.point)),tC[r]===`upperChest`&&(this.rig.bones.clavicleL.updateWorldMatrix(!1,!1),this.rig.bones.clavicleR.updateWorldMatrix(!1,!1))}this.root.updateMatrixWorld(!0)}tiltHips(e){let t=this.rig.bones.hips,n=this.point.setFromMatrixPosition(t.matrixWorld),r=this.tiltJoint.copy(this.rig.restLocalPosition(this.rig.bones.spine)).applyMatrix4(t.matrixWorld).sub(n),i=XS(e,U.chest,this.tiltChest).sub(n),a=this.pelvisX,o=a.dot(r),s=this.tiltAcross.copy(r).addScaledVector(a,-o),c=(r.lengthSq()+i.lengthSq()-this.spineLength*this.spineLength)/2-o*a.dot(i),l=s.dot(i),u=this.other.crossVectors(a,s).dot(i),d=Math.hypot(l,u);if(d<1e-9)return;let f=Math.atan2(u,l),p=Math.acos(Math.min(1,Math.max(-1,c/d))),m=ZS(f-p),h=ZS(f+p),g=Math.abs(m)<=Math.abs(h)?m:h;Math.abs(g)<1e-5||(t.getWorldQuaternion(this.world).premultiply(this.tiltTurn.setFromAxisAngle(a,g)),this.rig.setWorldRotation(t,this.world))}prepareFrames(e){this.segment(e,U.hipR,U.hipL,this.pelvisX),this.axisZ.set(e[U.belly*3]-(e[U.hipL*3]+e[U.hipR*3])/2,e[U.belly*3+1]-(e[U.hipL*3+1]+e[U.hipR*3+1])/2,e[U.belly*3+2]-(e[U.hipL*3+2]+e[U.hipR*3+2])/2),this.axisZ.addScaledVector(this.pelvisX,-this.axisZ.dot(this.pelvisX)).normalize(),this.pelvisY.crossVectors(this.axisZ,this.pelvisX).normalize(),this.segment(e,U.shoulderR,U.shoulderL,this.upperX),this.segment(e,U.head,U.crown,this.axisX),this.segment(e,U.head,U.face,this.other),this.headX.crossVectors(this.axisX,this.other).normalize()}segment(e,t,n,r){return r.set(e[n*3]-e[t*3],e[n*3+1]-e[t*3+1],e[n*3+2]-e[t*3+2]),r.lengthSq()>1e-12?r.normalize():r.set(0,1,0)}frameFor(e,t,n){let r=tC[e];switch(r){case`hips`:return Zb(this.pelvisY,this.pelvisX,`x`,n);case`spine`:{let r=this.bones[e];return r.updateWorldMatrix(!1,!1),this.axisY.setFromMatrixPosition(r.matrixWorld),this.axisY.set(t[U.chest*3]-this.axisY.x,t[U.chest*3+1]-this.axisY.y,t[U.chest*3+2]-this.axisY.z),this.axisY.lengthSq()>1e-12?this.axisY.normalize():this.segment(t,U.pelvis,U.chest,this.axisY),Zb(this.axisY,this.hint.copy(this.pelvisX).multiplyScalar(.75).addScaledVector(this.upperX,.25),`x`,n)}case`chest`:return this.segment(t,U.chest,U.upper,this.axisY),Zb(this.axisY,this.hint.copy(this.pelvisX).multiplyScalar(.4).addScaledVector(this.upperX,.6),`x`,n);case`upperChest`:return this.segment(t,U.upper,U.neck,this.axisY),Zb(this.axisY,this.upperX,`x`,n);case`neck`:return this.segment(t,U.neck,U.head,this.axisY),Zb(this.axisY,this.hint.copy(this.upperX).add(this.headX),`x`,n);case`head`:return this.segment(t,U.head,U.crown,this.axisY),Zb(this.axisY,this.segment(t,U.head,U.face,this.hint),`z`,n);case`shoulderL`:case`elbowL`:case`gloveL`:case`shoulderR`:case`elbowR`:case`gloveR`:{let i=+!r.endsWith(`L`),a=nC[e],o=this.body.elbowAxis(i,t,this.elbowAxes[i]);return this.segment(t,a[0],a[1],this.axisY),Zb(this.axisY,o,`x`,n)}case`hipL`:case`kneeL`:case`hipR`:case`kneeR`:{let i=+!r.endsWith(`L`),a=nC[e],o=this.body.kneeAxis(i,t,this.kneeAxes[i]);return this.segment(t,a[0],a[1],this.axisY),Zb(this.axisY,o,`x`,n)}default:{let e=r===`ankleL`,i=e?U.ankleL:U.ankleR,a=e?U.toeL:U.toeR,o=e?U.heelL:U.heelR;return this.segment(t,i,a,this.axisY),this.segment(t,o,a,this.hint),this.other.set(t[i*3]-t[o*3],t[i*3+1]-t[o*3+1],t[i*3+2]-t[o*3+2]),this.hint.cross(this.other),Zb(this.axisY,this.hint,`x`,n)}}}};function gC(e,t,n){let r=Math.min(1,Math.max(0,(n-e)/(t-e)));return r*r*(3-2*r)}var _C=3,vC=5;function yC(e){return 1-.74*gC(-.6,1.4,e)}var bC=.23,xC=.22,SC=.22,CC=1.15,wC=.5,TC=.9,EC=.045,DC=[.33,.66],OC=EC*2*.33*.67,kC=.04;function AC(e,t){return{pressX:Math.min(xC,Math.max(0,Math.abs(e)+bC-g_)),pressZ:Math.min(xC,Math.max(0,Math.abs(t)+bC-g_))}}function jC(e,t,n){return n.x=Math.sign(e)*Math.max(0,Math.abs(e)+bC-g_-xC),n.z=Math.sign(t)*Math.max(0,Math.abs(t)+bC-g_-xC),n}var MC=` +`,$b=.35;function ex(e){e.bumpMap=e.map,e.bumpScale=$b;let t=e.onBeforeCompile,n=Object.hasOwn(e,`customProgramCacheKey`)?e.customProgramCacheKey():`plain`;e.onBeforeCompile=(n,r)=>{t.call(e,n,r),n.fragmentShader=n.fragmentShader.replace(`#include `,`#include \n${Qb}`)},e.customProgramCacheKey=()=>`${n}-skin`,e.needsUpdate=!0}var tx={x:7,y:66.1,z:-3},nx={x:8.4,y:39.4,z:-4.7},rx=62,ix=58,ax=72,ox=.78,sx=.85,cx=.66,lx=(e,t,n)=>{let r=R.clamp((n-e)/(t-e),0,1);return r*r*(3-2*r)},ux=R.lerp;function dx(e,t){let n=e.clone(),r=n.getAttribute(`position`),i=n.getAttribute(`skinIndex`),a=new Map([[t.indexOf(tb.kneeL),t.indexOf(tb.hipL)],[t.indexOf(tb.kneeR),t.indexOf(tb.hipR)]]);for(let e=0;e0&&(t=Math.sign(t)*(l+d*ux(1,ox,s))),o=u+(o-u)*ux(1,o>u?sx:cx,s),r.setXYZ(e,t,n,o);for(let t=0;t>>0||1,this.blinkIn=this.nextBlink()}nextBlink(){return this.seed=Math.imul(this.seed,1664525)+1013904223>>>0,px[0]+this.seed/4294967296*(px[1]-px[0])}flinch(e,t){let n=Math.min(1,Math.max(0,e));this.wince=Math.max(this.wince,t?.55+.45*n:.3+.4*n),this.gape=Math.max(this.gape,t?.25+.6*n:.5+.5*n)}update(e,t,n,r,i,a){let o=Math.max(0,e);this.wince=Math.max(0,this.wince-this.wince*mx*o-.2*o),this.gape=Math.max(0,this.gape-this.gape*mx*.6*o-.15*o),!t&&!a&&(this.blinkIn-=o,this.blinkIn<=0&&(this.blink=fx,this.blinkIn=this.nextBlink()),this.breath+=o*hx*Math.PI*2),this.blink=Math.max(0,this.blink-o);let s=this.blink>0?Math.sin(this.blink/fx*Math.PI):0,c=t?.3:.3+.25*Math.sin(this.breath),l=a?1:Math.max(s,this.wince,n?.4:0,i*.55),u=a?.45:Math.max(this.gape,n?.3:0,r*c,i*.35),d=a?0:Math.max(+!!n,this.wince*.8),f=1-Math.exp(-14*o);this.lids=Math.max(s,this.wince,this.lids+(l-this.lids)*f),this.mouth+=(u-this.mouth)*f,this.brow+=(d-this.brow)*f}},_x={hips:tb.hips,spine:tb.spine,chest:`Spine1_024`,upperChest:tb.chest,neck:`Neck_012`,head:tb.head,clavicleL:`LeftShoulder_09`,shoulderL:tb.shoulderL,elbowL:tb.elbowL,gloveL:tb.gloveL,clavicleR:`RightShoulder_020`,shoulderR:tb.shoulderR,elbowR:tb.elbowR,gloveR:tb.gloveR,hipL:tb.hipL,kneeL:tb.kneeL,ankleL:tb.ankleL,toeL:`LeftToeBase_011`,hipR:tb.hipR,kneeR:tb.kneeR,ankleR:tb.ankleR,toeR:`RightToeBase_022`},vx=new B,yx=new B,bx=new B,xx=new Ds,Sx=new rs,Cx=new rs,wx=new B,Tx=new B,Ex=new B,Dx=new B,Ox=new B,kx=new B,Ax=new B,jx=new B,Mx=new B,Nx=new B;function Px(e,t){return t.setFromMatrixPosition(e.matrixWorld)}function Fx(e,t){return e.matrixWorld.decompose(wx,t,Tx),t}function Ix(e,t,n,r){return yx.copy(e).normalize(),n===`z`?(bx.copy(t).addScaledVector(yx,-t.dot(yx)),bx.lengthSq()<1e-8&&bx.set(0,0,1).addScaledVector(yx,-yx.z),bx.normalize(),vx.crossVectors(yx,bx).normalize()):(vx.copy(t).addScaledVector(yx,-t.dot(yx)),vx.lengthSq()<1e-8&&vx.set(1,0,0).addScaledVector(yx,-yx.x),vx.normalize(),bx.crossVectors(vx,yx).normalize()),xx.makeBasis(vx,yx,bx),r.setFromRotationMatrix(xx)}var Lx=class{bones;metrics;restLocal=new Map;restPositions=new Map;limb={reached:!1,joint:new B};constructor(e){let t=new Map;e.traverse(e=>{e instanceof Ul&&t.set(e.name,e)});let n={};for(let[e,r]of Object.entries(_x)){let i=t.get(r);if(i===void 0)throw Error(`fighter rig missing bone ${r} (${e})`);n[e]=i}this.bones=n,e.updateMatrixWorld(!0);for(let e of t.values())this.restLocal.set(e,e.quaternion.clone()),this.restPositions.set(e,e.position.clone());let r=(e,t)=>Px(n[e],Ex).distanceTo(Px(n[t],Dx)),i=Px(n.hips,Ex).clone(),a=Px(n.hips.parent??e,Dx).clone(),o=n.hips.position.length(),s=i.distanceTo(a);this.metrics={hipsHeight:i.y,headHeight:Px(n.head,Ex).y,chestHeight:Px(n.upperChest,Ex).y,ankleHeight:Px(n.ankleL,Ex).y,armL:{upper:r(`shoulderL`,`elbowL`),lower:r(`elbowL`,`gloveL`)},armR:{upper:r(`shoulderR`,`elbowR`),lower:r(`elbowR`,`gloveR`)},legL:{upper:r(`hipL`,`kneeL`),lower:r(`kneeL`,`ankleL`)},legR:{upper:r(`hipR`,`kneeR`),lower:r(`kneeR`,`ankleR`)},footLength:r(`ankleL`,`toeL`),unitsPerMeter:s>1e-6?o/s:1}}resetToRest(){for(let[e,t]of this.restLocal){e.quaternion.copy(t);let n=this.restPositions.get(e);n!==void 0&&e.position.copy(n)}}restLocalQuaternion(e){return this.restLocal.get(e)??e.quaternion}restLocalPosition(e){return this.restPositions.get(e)??e.position}position(e,t){return Px(this.bones[e],t)}setWorldRotation(e,t){let n=e.parent;n===null?e.quaternion.copy(t):(Fx(n,Cx),e.quaternion.copy(Cx.invert().multiply(t)).normalize()),e.updateWorldMatrix(!1,!1)}setWorldFrame(e,t,n,r){this.setWorldRotation(e,Ix(t,n,r,Sx))}setWorldPosition(e,t){let n=e.parent;n===null?e.position.copy(t):(e.position.copy(t),n.worldToLocal(e.position)),e.updateWorldMatrix(!1,!1)}aimAt(e,t,n){if(e.updateWorldMatrix(!1,!1),Px(e,Ex),Ox.subVectors(t,Ex),Ox.lengthSq()<1e-10)return;Fx(e,Sx);let r=n===`z`?Nx.set(0,0,1):Nx.set(1,0,0);this.setWorldFrame(e,Ox,r.applyQuaternion(Sx),n)}solveLimb(e,t,n,r,i,a,o,s=.01){e.updateWorldMatrix(!1,!1);let c=Px(e,Ex);Ox.subVectors(r,c);let l=n.upper+n.lower-s,u=R.clamp(Ox.length(),Math.abs(n.upper-n.lower)+.005,l),d=Ox.length()<=l;Ox.lengthSq()<1e-10&&Ox.set(0,-1,0),Ox.normalize(),kx.copy(i).addScaledVector(Ox,-i.dot(Ox)),kx.lengthSq()<1e-8&&(kx.set(0,0,1).addScaledVector(Ox,-Ox.z),kx.lengthSq()<1e-8&&kx.set(1,0,0)),kx.normalize();let f=R.clamp((n.upper*n.upper+u*u-n.lower*n.lower)/(2*n.upper*u),-1,1),p=n.upper*f,m=n.upper*Math.sqrt(Math.max(0,1-f*f));Ax.copy(c).addScaledVector(Ox,p).addScaledVector(kx,m),jx.crossVectors(kx,Ox).multiplyScalar(o).normalize(),Mx.copy(Ax).sub(c),this.setWorldFrame(e,Mx,jx,a),t.updateWorldMatrix(!1,!1);let h=Px(t,Dx);return Mx.copy(c).addScaledVector(Ox,u).sub(h),this.setWorldFrame(t,Mx,jx,a),this.limb.reached=d,this.limb.joint.copy(h),this.limb}},Rx={x:.1059,y:.0253,z:-.0026},zx=new B(.2018,.081,-.027),Bx=new B(-.2018,.081,-.027),Vx=(e,t,n)=>new B(e,t,n),Hx=(e,t,n)=>{let r=R.clamp((n-e)/Math.max(1e-6,t-e),0,1);return r*r*(3-2*r)},Ux=(e,t=1.7)=>R.clamp(e,0,1)**+t,Wx=(e,t=2)=>1-(1-R.clamp(e,0,1))**t,Gx=new rs,Kx=new B,qx=new B,Jx=new B,Yx=new B,Xx=new B,Zx=new rs,Qx=new rs,$x=new Ls,eS=new B(0,1,0),tS=[[`spine`,.25,.2],[`chest`,.55,.5],[`upperChest`,1,1]],nS=class{rig;chestLocal=new B;constructor(e){this.rig=e}toWorld(e,t){return t.copy(e).applyQuaternion(Gx).add(Kx)}dirToWorld(e,t){return t.copy(e).applyQuaternion(Gx)}setYawPitchRoll(e,t,n,r){$x.set(n,t,r,`YXZ`),Zx.setFromEuler($x),Qx.copy(Gx).multiply(Zx),this.rig.setWorldRotation(e,Qx)}apply(e,t){let n=this.rig,r=n.bones;n.resetToRest(),e.updateMatrixWorld(!0),Fx(e,Gx),Px(e,Kx);let i=t.torso;this.toWorld(i.hips,qx),n.setWorldPosition(r.hips,qx),this.setYawPitchRoll(r.hips,i.hipsYaw,i.hipsPitch,i.hipsRoll);let a=i.shouldersYaw-i.hipsYaw;for(let e=0;e0&&(Px(r.head,qx),this.dirToWorld(i.headOffset,Jx),qx.add(Jx),n.setWorldPosition(r.head,qx)),this.solveArm(`L`,t.handL,t.shrugL),this.solveArm(`R`,t.handR,t.shrugR),this.solveLeg(`L`,t.footL),this.solveLeg(`R`,t.footR)}solveArm(e,t,n){let r=this.rig,i=r.bones,a=e===`L`?i.clavicleL:i.clavicleR,o=e===`L`?i.shoulderL:i.shoulderR,s=e===`L`?i.elbowL:i.elbowR,c=e===`L`?i.gloveL:i.gloveR,l=e===`L`?r.metrics.armL:r.metrics.armR,u=e===`L`?zx:Bx;this.chestLocal.copy(u),this.chestLocal.z+=n*.06,this.chestLocal.y+=n*.035,this.chestLocal.x*=1-n*.08,Yx.copy(this.chestLocal).multiplyScalar(r.metrics.unitsPerMeter),i.upperChest.localToWorld(Yx),r.aimAt(a,Yx,`z`),o.updateWorldMatrix(!1,!1),this.toWorld(t.position,qx),this.dirToWorld(t.pole,Jx),r.solveLimb(o,s,l,qx,Jx,`z`,e===`L`?1:-1,.012),c.updateWorldMatrix(!1,!1),this.dirToWorld(t.knuckles,Yx),this.dirToWorld(t.palm,Xx),r.setWorldFrame(c,Yx,Xx,`z`)}solveLeg(e,t){let n=this.rig,r=n.bones,i=e===`L`?r.hipL:r.hipR,a=e===`L`?r.kneeL:r.kneeR,o=e===`L`?r.ankleL:r.ankleR,s=e===`L`?r.toeL:r.toeR,c=e===`L`?n.metrics.legL:n.metrics.legR;this.toWorld(t.position,qx),this.dirToWorld(t.toe,Yx).normalize();let l=n.metrics.footLength;Xx.copy(Yx).multiplyScalar(l).addScaledVector(eS,-n.metrics.ankleHeight).normalize(),t.heel!==0&&(qx.addScaledVector(Xx,l),Zx.setFromAxisAngle(Jx.crossVectors(Yx,eS).normalize(),-t.heel),Xx.applyQuaternion(Zx),qx.addScaledVector(Xx,-l)),this.dirToWorld(t.pole,Jx),n.solveLimb(i,a,c,qx,Jx,`x`,-1,.02),o.updateWorldMatrix(!1,!1),n.setWorldFrame(o,Xx,eS,`z`),s.updateWorldMatrix(!1,!1),n.setWorldFrame(s,Yx,eS,`z`)}},rS={bladeYaw:-.68,shoulderBlade:1.18,hipsHeight:.875,leadFoot:Vx(.13,0,.2),rearFoot:Vx(-.15,0,-.25),leadToe:Vx(-.26,0,.97),rearToe:Vx(-.68,0,.73),leadHeel:.05,rearHeel:.3,lean:.09,hunch:.15,chinTuck:.24,leadShrug:.45,rearShrug:.25,relaxedLead:Vx(.12,-.15,.44),relaxedRear:Vx(-.07,-.11,.18),tightLead:Vx(.13,-.11,.29),tightRear:Vx(-.08,-.1,.15),guardHighLead:Vx(.1,-.12,.33),guardHighRear:Vx(-.1,-.11,.24),guardLowLead:Vx(.11,-.3,.27),guardLowRear:Vx(-.11,-.3,.25),guardHighLeadPole:Vx(.15,-1,.35),guardHighRearPole:Vx(-.15,-1,.35),guardLowLeadPole:Vx(.3,-1,-.1),guardLowRearPole:Vx(-.3,-1,-.1),guardKnuckles:Vx(-.05,1,.15),guardPalm:Vx(-.6,0,-.8),leadPole:Vx(.3,-1,.1),rearPole:Vx(-.35,-1,-.15),leadKnuckles:Vx(.05,.75,.65),leadPalm:Vx(-.9,.15,-.35),rearKnuckles:Vx(-.05,.85,.5),rearPalm:Vx(.95,.1,-.25)},iS=e=>({rise:0,length:1,width:1,weight:0,lean:0,lead:Vx(0,0,0),rear:Vx(0,0,0),flare:0,shrug:0,shell:0,spring:1,tempo:1,rock:1,bob:1,heel:1,paw:1,...e}),aS={balanced:iS({}),boxer:iS({rise:.022,width:.9,length:1.04,lean:-.03,lead:Vx(0,.02,.07),flare:-.1,spring:.7,tempo:1.25,rock:1.7,bob:.8,heel:1.3,paw:1.4}),slugger:iS({rise:-.015,width:1.22,length:.94,weight:-.035,lead:Vx(.04,-.07,-.05),rear:Vx(-.04,-.06,0),flare:.3,shrug:-.15,spring:.3,tempo:.8,rock:.5,bob:.6,heel:.3,paw:.5}),swarmer:iS({rise:-.045,width:1.06,length:.9,weight:.035,lean:.06,lead:Vx(-.03,.05,-.14),rear:Vx(0,.03,-.02),flare:-.3,spring:.9,tempo:1.1,rock:.8,bob:2.6,paw:.3}),counter_puncher:iS({rise:.005,width:.94,length:1.05,weight:-.04,lean:-.05,lead:Vx(-.11,-.3,-.2),rear:Vx(.01,.01,-.02),shrug:.45,shell:1,spring:.3,tempo:.8,rock:.4,bob:.4,heel:.8,paw:.2})};function oS(e,t,n=new B){return n.set(e.x*t,e.y,e.z)}var W={pelvis:0,hipL:1,hipR:2,belly:3,chest:4,upper:5,neck:6,shoulderL:7,shoulderR:8,head:9,crown:10,face:11,elbowL:12,wristL:13,fistL:14,elbowR:15,wristR:16,fistR:17,kneeL:18,ankleL:19,toeL:20,heelL:21,kneeR:22,ankleR:23,toeR:24,heelR:25},sS=[9,4,4,2,10,7,2,3.5,3.5,2.5,1.5,1,1.6,1,1,1.6,1,1,3.6,1.6,.4,.6,3.6,1.6,.4,.6],cS=[.12,.09,.09,.11,.14,.13,.06,.07,.07,.09,.085,.055,.05,.065,.08,.05,.065,.08,.06,.05,.035,.04,.06,.05,.035,.04],lS=.12,uS=.16,dS=.09,fS=.06,pS=.11,mS=[[W.pelvis,W.hipL],[W.pelvis,W.hipR],[W.hipL,W.hipR],[W.belly,W.hipL],[W.belly,W.hipR],[W.belly,W.pelvis],[W.pelvis,W.chest],[W.chest,W.upper],[W.upper,W.neck],[W.upper,W.shoulderL],[W.upper,W.shoulderR],[W.neck,W.shoulderL],[W.neck,W.shoulderR],[W.shoulderL,W.shoulderR],[W.neck,W.head],[W.head,W.crown],[W.head,W.face],[W.crown,W.face],[W.shoulderL,W.elbowL],[W.elbowL,W.wristL],[W.wristL,W.fistL],[W.shoulderR,W.elbowR],[W.elbowR,W.wristR],[W.wristR,W.fistR],[W.hipL,W.kneeL],[W.kneeL,W.ankleL],[W.ankleL,W.toeL],[W.ankleL,W.heelL],[W.toeL,W.heelL],[W.hipR,W.kneeR],[W.kneeR,W.ankleR],[W.ankleR,W.toeR],[W.ankleR,W.heelR],[W.toeR,W.heelR]],hS=[[W.hipL,W.shoulderL,.8,1.05],[W.hipR,W.shoulderR,.8,1.05],[W.hipL,W.shoulderR,.84,1.08],[W.hipR,W.shoulderL,.84,1.08],[W.belly,W.upper,.7,1.06],[W.pelvis,W.upper,.86,1],[W.hipL,W.chest,.84,1.08],[W.hipR,W.chest,.84,1.08],[W.shoulderL,W.face,.76,1.2],[W.shoulderR,W.face,.76,1.2],[W.kneeL,W.hipR,.8,1.3],[W.kneeR,W.hipL,.8,1.3],[W.kneeL,W.belly,.5,1.12],[W.kneeR,W.belly,.5,1.12]],gS=8,_S=[[W.kneeL,W.kneeR,.13],[W.ankleL,W.ankleR,.11],[W.kneeL,W.ankleR,.1],[W.kneeR,W.ankleL,.1],[W.hipL,W.ankleL,.2],[W.hipR,W.ankleR,.2],[W.shoulderL,W.wristL,.14],[W.shoulderR,W.wristR,.14],[W.face,W.chest,.2],[W.crown,W.chest,.24],[W.kneeL,W.upper,.3],[W.kneeR,W.upper,.3]],vS=[W.elbowL,W.wristL,W.fistL,W.elbowR,W.wristR,W.fistR],yS=[.7,.6,.6,.7,.9,1,1,1,1,1,1,1,.9,.8,.8,.9,.8,.8,.35,.1,0,0,.35,.1,0,0],bS=[[W.pelvis,W.chest,.12],[W.chest,W.upper,.13]],xS=Int32Array.from(mS.flat()),SS=Int32Array.from(hS.flatMap(([e,t])=>[e,t])),CS=Int32Array.from(_S.flatMap(([e,t])=>[e,t])),wS=Float64Array.from(_S.map(([,,e])=>e)),TS=Int32Array.from(bS.flatMap(([e,t])=>[e,t])),ES=Float64Array.from(bS.map(([,,e])=>e)),DS=Float64Array.from([W.head,1,W.crown,.9,W.face,1,W.neck,.45]),OS=Float64Array.from([W.belly,1,W.chest,.6,W.pelvis,.4,W.hipL,.3,W.hipR,.3]),kS=[W.head,W.crown,W.face],AS=[W.crown,W.face],jS=[[W.toeL,W.heelL],[W.toeR,W.heelR]],MS=[[W.heelL],[W.heelR]],NS=[W.head,W.crown,W.face],PS=[W.fistL],FS=[W.fistR],IS=1/120,LS=12,RS=9.81,zS=.998,BS=.5,VS=.03,HS=.35,US=.12,WS=[W.pelvis,W.hipL,W.hipR,W.belly,W.chest,W.upper],GS=[W.upper,W.neck,W.shoulderL,W.shoulderR,W.head,W.crown,W.face,W.elbowL,W.wristL,W.fistL,W.elbowR,W.wristR,W.fistR],KS=[W.pelvis,W.hipL,W.hipR,W.belly,W.kneeL,W.ankleL,W.toeL,W.heelL,W.kneeR,W.ankleR,W.toeR,W.heelR],qS=40*Math.PI/180,JS=[[W.kneeL,W.ankleL,W.toeL,W.heelL],[W.kneeR,W.ankleR,W.toeR,W.heelR]],YS=[[W.ankleL,W.toeL,W.heelL],[W.ankleR,W.toeR,W.heelR]],XS=.08,ZS=.35,QS=new Set(WS),$S=Z_+.45,eC=.24,tC=1.75,nC=.012,rC=1,iC=.35,aC=.15,oC=1.1,sC=.4,cC=1.2,lC=1200,uC=3,dC=7,fC=.08,pC=.97,mC=2.55,hC=.5,gC=30*Math.PI/180,_C=32*Math.PI/180,vC=28*Math.PI/180,yC=35*Math.PI/180,bC=20*Math.PI/180,xC=.5,SC=.01,CC=.04,wC=.4,TC=.02,EC=.25,DC={timber:{knee:.12,spine:.2,seconds:.55},crumple:{knee:mC,spine:1,seconds:0},sag:{knee:.55,spine:.6,seconds:.3},fold:{knee:.9,spine:1,seconds:.5}},OC=2.5,kC=35*Math.PI/180,AC=50*Math.PI/180,jC=135*Math.PI/180,MC=[[W.kneeL,W.ankleL,W.toeL,AC,jC],[W.kneeR,W.ankleR,W.toeR,AC,jC],[W.elbowL,W.wristL,W.fistL,0,kC],[W.elbowR,W.wristR,W.fistR,0,kC]],NC=Int32Array.from(MC.flatMap(([e,,t])=>[e,t]));function PC(e,t,n,r){if(t===`body`)return`fold`;if(n<90)return`sag`;let i=Math.abs(Math.floor(r))%3;return e===`hook`?i===0?`timber`:`crumple`:i===0?`crumple`:`timber`}var FC=(e,t,n)=>n.set(e[t*3],e[t*3+1],e[t*3+2]),IC=e=>e-Math.round(e/(Math.PI*2))*Math.PI*2,LC=(e,t,n)=>{e[t*3]=n.x,e[t*3+1]=n.y,e[t*3+2]=n.z},RC=class{position=new Float64Array(78);previous=new Float64Array(78);before=new Float64Array(78);invMass=new Float64Array(26);rigidLength=new Float64Array(mS.length);rangeMin=new Float64Array(hS.length);rangeMax=new Float64Array(hS.length);restRange=new Float64Array(hS.length);rangeStart=new Float64Array(hS.length);kneeStart=new Float64Array(2);footSign=new Float64Array(2);turnAxis=new B;turnQuaternion=new rs;turnPoint=new B;angleRanges=new Float64Array(MC.length*2);elbowAxes=new Float64Array(6);kneeAxes=new Float64Array(6);hingeStart=new Float64Array(24);hingeNow=new Float64Array(24);swing=new rs;local=new B;localAxis=new B;ropeLines=new Float64Array(4);style=`crumple`;steps=0;stillSeconds=0;torsoStillSeconds=0;fallSeconds=0;landedSeconds=-1;asleep=!1;obstacleActive=!1;obstacleX=0;obstacleZ=0;obstacleTrack=null;obstacleTrackLive=!1;pull=null;pullShare=0;trackObstacle(e,t){this.obstacleTrack=e,this.obstacleTrackLive=e!==null&&!t}a=new B;b=new B;c=new B;d=new B;e=new B;fx=new B;fy=new B;fz=new B;gx=new B;gy=new B;gz=new B;pivot=new B;segmentA=new B;segmentB=new B;constructor(){for(let e=0;e<26;e+=1)this.invMass[e]=1/sS[e]}calibrate(e){for(let[t,[n,r]]of hS.entries())this.restRange[t]=this.distance(e,n,r)}start(e,t,n){this.position.set(e),this.before.set(e);for(let n=0;n<78;n+=1)this.previous[n]=e[n]-t[n]*IS;for(let[t,[n,r]]of mS.entries())this.rigidLength[t]=this.distance(e,n,r);for(let[t,[n,r,i,a,o]]of MC.entries()){let s=this.distance(e,n,r),c=this.distance(e,r,i),l=this.distance(e,n,i),u=e=>Math.sqrt(s*s+c*c+2*s*c*Math.cos(e));this.angleRanges[t*2]=Math.min(u(o),l),this.angleRanges[t*2+1]=Math.max(u(a),l)}for(let[t,[n,r,i,a]]of hS.entries()){let o=this.distance(e,n,r),s=this.restRange[t]>0?this.restRange[t]:o;this.rangeMin[t]=Math.min(s*i,o*.98),this.rangeMax[t]=Math.max(s*a,o*1.02),this.rangeStart[t]=o}this.style=n,this.steps=0,this.stillSeconds=0,this.torsoStillSeconds=0,this.fallSeconds=0,this.landedSeconds=-1,this.asleep=!1,this.upperFrame(this.position),this.pelvisFrame(this.position);for(let e of[0,1]){this.startHinge(this.elbowAxes,e,e===0?W.shoulderL:W.shoulderR,e===0?W.elbowL:W.elbowR,e===0?W.wristL:W.wristR,this.gx,-1),this.startHinge(this.kneeAxes,e,e===0?W.hipL:W.hipR,e===0?W.kneeL:W.kneeR,e===0?W.ankleL:W.ankleR,this.fx,1),this.storeHingeStart(e,e===0?W.hipL:W.hipR,e===0?W.kneeL:W.kneeR,this.kneeAxes,this.fx,this.fy,this.fz),this.storeHingeStart(2+e,e===0?W.shoulderL:W.shoulderR,e===0?W.elbowL:W.elbowR,this.elbowAxes,this.gx,this.gy,this.gz);let t=this.dir(e===0?W.hipL:W.hipR,e===0?W.kneeL:W.kneeR,this.a),n=this.dir(e===0?W.kneeL:W.kneeR,e===0?W.ankleL:W.ankleR,this.b);this.kneeStart[e]=Math.acos(Math.min(1,Math.max(-1,t.dot(n))));let r=this.c.set(this.kneeAxes[e*3],this.kneeAxes[e*3+1],this.kneeAxes[e*3+2]);this.footSign[e]=this.footNormal(e,this.d).dot(r)>=0?1:-1}for(let t=0;t<4;t+=1){let n=t<2?0:2,r=t%2==0?1:-1,i=0;for(let t of WS)i=Math.max(i,r*e[t*3+n]+cS[t]);this.ropeLines[t]=Math.max(tv,i+.04)}}startHinge(e,t,n,r,i,a,o){let s=this.dir(n,r,this.a),c=this.dir(r,i,this.b),l=this.c.crossVectors(s,c);l.length()<.2&&l.copy(a).multiplyScalar(o),l.addScaledVector(s,-l.dot(s)),l.lengthSq()<1e-8&&l.copy(a).multiplyScalar(o).addScaledVector(s,-o*a.dot(s)),l.normalize(),e[t*3]=l.x,e[t*3+1]=l.y,e[t*3+2]=l.z}storeHingeStart(e,t,n,r,i,a,o){let s=e%2,c=this.dir(t,n,this.a),l=this.b.set(r[s*3],r[s*3+1],r[s*3+2]),u=e*6;this.hingeStart[u]=c.dot(i),this.hingeStart[u+1]=c.dot(a),this.hingeStart[u+2]=c.dot(o),this.hingeStart[u+3]=l.dot(i),this.hingeStart[u+4]=l.dot(a),this.hingeStart[u+5]=l.dot(o);for(let e=0;e<6;e+=1)this.hingeNow[u+e]=this.hingeStart[u+e]}hingeAxis(e,t,n,r,i,a){let o=e*6,s=this.hingeNow;return this.local.set(t.dot(n),t.dot(r),t.dot(i)).normalize(),this.localAxis.set(s[o],s[o+1],s[o+2]),this.swing.setFromUnitVectors(this.localAxis,this.local),this.localAxis.set(s[o+3],s[o+4],s[o+5]).applyQuaternion(this.swing),a.copy(n).multiplyScalar(this.localAxis.x).addScaledVector(r,this.localAxis.y).addScaledVector(i,this.localAxis.z),a.addScaledVector(t,-a.dot(t)).normalize()}carryHinges(){this.pelvisFrame(this.position),this.upperFrame(this.position);for(let e=0;e<4;e+=1){let t=e%2,n=e<2,r=n?t===0?W.hipL:W.hipR:t===0?W.shoulderL:W.shoulderR,i=n?t===0?W.kneeL:W.kneeR:t===0?W.elbowL:W.elbowR,a=n?this.fx:this.gx,o=n?this.fy:this.gy,s=n?this.fz:this.gz,c=this.dir(r,i,this.a),l=this.hingeAxis(e,c,a,o,s,this.b),u=e*6;this.hingeNow[u]=c.dot(a),this.hingeNow[u+1]=c.dot(o),this.hingeNow[u+2]=c.dot(s),this.hingeNow[u+3]=l.dot(a),this.hingeNow[u+4]=l.dot(o),this.hingeNow[u+5]=l.dot(s)}}get holding(){return this.steps*IS0&&(this.landedSeconds=0)}setLimp(e,t){for(let n=0;n0){let e=Math.min(this.steps,t.steps-1)*3;this.obstacleActive=t.data[e]===1,this.obstacleX=t.data[e+1],this.obstacleZ=t.data[e+2]}let n=IS,r=this.position,i=this.previous,a=this.landedSeconds<0?zS:zS+-.02300000000000002*Math.min(1,this.landedSeconds/sC);this.before.set(r);for(let e=0;e<26;e+=1)for(let t=0;t<3;t+=1){let o=e*3+t,s=r[o],c=(s-i[o])*a;i[o]=s,r[o]=s+c-(t===1?RS*n*n:0)}let o=this.pull;if(o!==null)for(let e=0;e<26;e+=1){let t=(o[e*3]-r[e*3])*this.pullShare,n=(o[e*3+1]-r[e*3+1])*this.pullShare,a=(o[e*3+2]-r[e*3+2])*this.pullShare,s=Math.sqrt(t*t+n*n+a*a),c=this.pullShare<1&&s>XC?XC/s:1;for(let o=0;o<3;o+=1){let s=(o===0?t:o===1?n:a)*c;r[e*3+o]=r[e*3+o]+s,i[e*3+o]=i[e*3+o]+s}}this.carryHinges();for(let e=0;e=0&&o===null&&this.toppleLegs(),this.applyFriction(),this.limitSpeed(),this.steps+=1;let s=0,c=0;for(let e=0;e<26;e+=1){let t=r[e*3]-i[e*3],a=r[e*3+1]-i[e*3+1],o=r[e*3+2]-i[e*3+2],l=Math.sqrt(t*t+a*a+o*o)/n;s=Math.max(s,l),QS.has(e)&&(c=Math.max(c,l))}this.stillSeconds=s=0?this.landedSeconds+=n:(this.torsoStillSeconds=c=aC||this.fallSeconds>=oC)&&(this.landedSeconds=0)),o===null&&(this.stillSeconds>=rC||this.landedSeconds>=cC)&&(this.asleep=!0)}solveRigid(){for(let e=0;er?r:c;if(l===c)return;let u=this.invMass[e],d=this.invMass[t],f=u+d;if(f<=0)return;let p=(c-l)/(c*f);i[e*3]=i[e*3]+a*p*u,i[e*3+1]=i[e*3+1]+o*p*u,i[e*3+2]=i[e*3+2]+s*p*u,i[t*3]=i[t*3]-a*p*d,i[t*3+1]=i[t*3+1]-o*p*d,i[t*3+2]=i[t*3+2]-s*p*d}solveKnees(){this.pelvisFrame(this.position);for(let e=0;e<2;e+=1){let t=e===0?W.hipL:W.hipR,n=e===0?W.kneeL:W.kneeR,r=this.dir(t,n,this.a),i=this.hingeAxis(e,r,this.fx,this.fy,this.fz,this.b),a=this.holding?Math.min(mC,this.kneeStart[e]+DC[this.style].knee):mC;this.hinge(n,e===0?W.ankleL:W.ankleR,r,i,-.12,a)}}solveElbows(){this.upperFrame(this.position);for(let e=0;e<2;e+=1){let t=e===0?W.shoulderL:W.shoulderR,n=e===0?W.elbowL:W.elbowR,r=this.dir(t,n,this.a),i=this.hingeAxis(2+e,r,this.gx,this.gy,this.gz,this.b);this.hinge(n,e===0?W.wristL:W.wristR,r,i,-.12,OC)}}toppleLegs(){let e=this.position;for(let t=0;t<2;t+=1){let n=t===0?W.hipL:W.hipR,r=t===0?W.kneeL:W.kneeR,i=t===0?W.ankleL:W.ankleR,a=this.dir(n,r,this.a);if(a.y>ZS){let i=this.dir(W.hipR,W.hipL,this.b),o=this.c.crossVectors(i,this.d.set(e[r*3]-e[n*3],e[r*3+1]-e[n*3+1],e[r*3+2]-e[n*3+2])).y>0?-1:1;this.rotateAbout(JS[t],n,i,o*XS*(a.y-ZS))}let o=this.dir(r,i,this.a);if(o.y>ZS){let n=this.kneeAxis(t===0?0:1,e,this.b),a=this.c.crossVectors(n,this.d.set(e[i*3]-e[r*3],e[i*3+1]-e[r*3+1],e[i*3+2]-e[r*3+2])).y>0?-1:1;this.rotateAbout(YS[t],r,n,a*XS*(o.y-ZS))}}}solveTwist(){let e=this.dir(W.pelvis,W.upper,this.e),t=this.dir(W.hipR,W.hipL,this.a);t.addScaledVector(e,-t.dot(e));let n=this.dir(W.shoulderR,W.shoulderL,this.c);if(n.addScaledVector(e,-n.dot(e)),t.lengthSq()<1e-8||n.lengthSq()<1e-8)return;let r=Math.atan2(this.d.crossVectors(t,n).dot(e),t.dot(n)),i=Math.abs(r)-qS;if(i<=0)return;let a=this.spinInertia(GS,e),o=this.spinInertia(KS,e),s=Math.sign(r)*i*wC;this.rotateAbout(GS,W.chest,e,-s*(o/(a+o))),this.rotateAbout(KS,W.chest,e,s*(a/(a+o)))}spinInertia(e,t){let n=this.position,r=1e-6;for(let i=0;iMath.abs(p)+1e-6){let n=Math.atan2(r,u),a=Math.acos(p/i),c=IC(n-a),l=IC(n+a),d=(Math.abs(c)<=Math.abs(l)?c:l)*s;this.rotateAbout(MS[t],o,e,Math.min(CC,Math.max(-.04,d)))}}let m=this.dir(i,a,this.a),h=this.hingeAxis(t,m,this.fx,this.fy,this.fz,this.b),g=this.footNormal(t===0?0:1,this.d).multiplyScalar(this.footSign[t]);if(h.addScaledVector(c,-h.dot(c)),g.addScaledVector(c,-g.dot(c)),h.lengthSq()<.09||g.lengthSq()<.09)continue;h.normalize(),g.normalize();let _=Math.atan2(this.e.crossVectors(h,g).dot(c),h.dot(g)),v=Math.min(vC,Math.max(-vC,_));v!==_&&this.rotateAbout(jS[t],o,c,Math.min(SC,Math.max(-.01,(v-_)*s)))}}footNormal(e,t){let n=this.position,r=e===0?W.ankleL:W.ankleR,i=e===0?W.toeL:W.toeR,a=e===0?W.heelL:W.heelR;return t.set(n[i*3]-n[a*3],n[i*3+1]-n[a*3+1],n[i*3+2]-n[a*3+2]),this.turnPoint.set(n[r*3]-n[a*3],n[r*3+1]-n[a*3+1],n[r*3+2]-n[a*3+2]),t.cross(this.turnPoint).normalize()}cone(e,t,n,r,i,a){let o=this.dir(t,n,this.turnPoint),s=Math.acos(Math.min(1,Math.max(-1,o.dot(e))));if(s<=r)return;let c=this.turnAxis.crossVectors(o,e);if(c.lengthSq()<1e-10)return;c.normalize();let l=this.pressed(a,i,c)?TC*EC:TC;this.rotateAbout(a,i,c,Math.min(l,(s-r)*wC))}pressed(e,t,n){let r=this.position;for(let i=0;icS[a]+.005)&&n.z*(r[a*3]-r[t*3])-n.x*(r[a*3+2]-r[t*3+2])<-1e-9)return!0}return!1}rotateAbout(e,t,n,r){let i=this.position;this.turnQuaternion.setFromAxisAngle(n,r);let a=i[t*3],o=i[t*3+1],s=i[t*3+2];for(let t=0;t=u||l<1e-6||(o.addScaledVector(c,(u-l)/l),LC(e,n,o))}}}closestOnSegment(e,t,n,r){let i=this.segmentA.subVectors(t,e),a=i.lengthSq(),o=a<1e-12?0:Math.min(1,Math.max(0,this.segmentB.subVectors(n,e).dot(i)/a));return r.copy(e).addScaledVector(i,o)}solveEnvironment(){let e=this.position;for(let t=0;t<26;t+=1){let n=cS[t],r=e[t*3],i=e[t*3+1],a=e[t*3+2];i=p||f<1e-9)continue;let m=(p-f)/f*HS,h=u*m,g=d*m;t?r+=s*h:a+=s*h,i+=g}let u=o?c-n*.6:$S;s*(t?r:a)>u&&(t?r=s*u:a=s*u)}for(let e=0;e<4;e+=1){let t=e<2?-tv:tv,o=e%2==0?-tv:tv,s=r-t,c=a-o,l=Math.sqrt(s*s+c*c),u=US+n;l>=u||l<1e-9||i>1.45||(r=t+s/l*u,a=o+c/l*u)}if(this.obstacleActive&&i1e-9&&(r=this.obstacleX+e/i*o,a=this.obstacleZ+t/i*o)}e[t*3]=r,e[t*3+1]=i,e[t*3+2]=a}}limitSpeed(){let e=this.position,t=this.previous,n=dC*IS,r=fC*IS;for(let i=0;i<26;i+=1){let a=e[i*3]-t[i*3],o=e[i*3+1]-t[i*3+1],s=e[i*3+2]-t[i*3+2],c=Math.sqrt(a*a+o*o+s*s);if(c>n||cn?n/c:pC;t[i*3]=e[i*3]-a*r,t[i*3+1]=e[i*3+1]-o*r,t[i*3+2]=e[i*3+2]-s*r}}}applyFriction(){let e=this.position,t=this.previous;for(let n=0;n<26;n+=1)e[n*3+1]>cS[n]+.004||(t[n*3]=t[n*3]+(e[n*3]-t[n*3])*BS,t[n*3+2]=t[n*3+2]+(e[n*3+2]-t[n*3+2])*BS,t[n*3+1]>e[n*3+1]&&(t[n*3+1]=e[n*3+1]))}settle(e=4,t){let n=this.steps+Math.ceil(e/IS);for(;!this.asleep&&this.steps1e-9?n.divideScalar(i):n.set(0,1,0)}pelvisFrame(e){this.fx.set(e[W.hipL*3]-e[W.hipR*3],e[W.hipL*3+1]-e[W.hipR*3+1],e[W.hipL*3+2]-e[W.hipR*3+2]).normalize(),this.fz.set(e[W.belly*3]-(e[W.hipL*3]+e[W.hipR*3])/2,e[W.belly*3+1]-(e[W.hipL*3+1]+e[W.hipR*3+1])/2,e[W.belly*3+2]-(e[W.hipL*3+2]+e[W.hipR*3+2])/2),this.fz.addScaledVector(this.fx,-this.fz.dot(this.fx)).normalize(),this.fy.crossVectors(this.fz,this.fx).normalize()}upperFrame(e){this.gx.set(e[W.shoulderL*3]-e[W.shoulderR*3],e[W.shoulderL*3+1]-e[W.shoulderR*3+1],e[W.shoulderL*3+2]-e[W.shoulderR*3+2]).normalize(),this.gy.set(e[W.neck*3]-e[W.upper*3],e[W.neck*3+1]-e[W.upper*3+1],e[W.neck*3+2]-e[W.upper*3+2]),this.gy.addScaledVector(this.gx,-this.gy.dot(this.gx)).normalize(),this.gz.crossVectors(this.gx,this.gy).normalize()}pelvisForward(e){return this.pelvisFrame(this.position),e.copy(this.fz)}};function zC(e,t){e.setLimp(NS,!!(t&1)),e.setLimp(PS,!!(t&2)),e.setLimp(FS,!!(t&4))}var BC=[`hips`,`spine`,`chest`,`upperChest`,`neck`,`head`,`shoulderL`,`elbowL`,`gloveL`,`shoulderR`,`elbowR`,`gloveR`,`hipL`,`kneeL`,`ankleL`,`hipR`,`kneeR`,`ankleR`],VC=BC.map(e=>({shoulderL:[W.shoulderL,W.elbowL],elbowL:[W.elbowL,W.wristL],gloveL:[W.wristL,W.fistL],shoulderR:[W.shoulderR,W.elbowR],elbowR:[W.elbowR,W.wristR],gloveR:[W.wristR,W.fistR],hipL:[W.hipL,W.kneeL],kneeL:[W.kneeL,W.ankleL],hipR:[W.hipR,W.kneeR],kneeR:[W.kneeR,W.ankleR]})[e]??null),HC=BC.map(e=>({chest:W.chest,shoulderL:W.shoulderL,shoulderR:W.shoulderR,hipL:W.hipL,hipR:W.hipR})[e]??-1),UC=.1,WC=.35,GC=.6,KC=10,qC=.35,JC=6,YC=.25,XC=.05,ZC=.3,QC=6;function $C(e){let t=e.lateral;if(e.target===`body`){let n=Math.min(2.6,Math.max(1,.9+e.amount/90));return{x:.3*t*n,y:-.05*n,z:-n,driveX:.1*t*n,driveY:-.2*n,driveZ:.45*n,twist:0}}let n=Math.min(3.2,Math.max(1.4,1.2+e.amount/70)),r=n/3.2;switch(e.punchClass){case`hook`:return{x:t*n,y:.05*n,z:-.25*n,driveX:.55*t*r,driveY:-.1*r,driveZ:.85*r,twist:.6};case`uppercut`:return{x:0,y:.8*n,z:-.65*n,driveX:0,driveY:.25*r,driveZ:-1.1*r,twist:.4};case`straight`:return{x:.12*t*n,y:.1*n,z:-n,driveX:.1*t*r,driveY:0,driveZ:-1.25*r,twist:.3};default:return{x:.12*t*n,y:.1*n,z:-.85*n,driveX:.08*t*r,driveY:0,driveZ:-1*r,twist:.2}}}var ew=class{rig;root;body=new RC;ahead=new RC;aheadOf=null;aheadBlows=0;ragdolling=!1;age=0;accumulator=0;sampleNow=new Float64Array(78);sampleBefore=new Float64Array(78);sampleRoot=new B;sampleSeconds=0;samples=0;drawn=new Float64Array(78);velocities=new Float64Array(78);offsets=BC.map(()=>new rs);fromLocal=BC.map(()=>new rs);fromPositions=BC.map(()=>new B);fromHips=new B;riseLocal=BC.map(()=>new rs);riseHips=new B;riseTurns=BC.map(()=>new rs);solvedTurns=BC.map(()=>new rs);rootTurn=new rs;turn=new rs;riseCaptured=!1;lastFall=null;recordPositions=new Float64Array(78);recordVelocities=new Float64Array(78);recordOffsets=BC.map(()=>new rs);recordImpulses=[];recordObstacles={data:new Float64Array(lC*3),steps:0};recordLosses=[];recordRest={position:new Float64Array(78),previous:new Float64Array(78),steps:-1};replaying=null;followTargets=new Float64Array(78);followOffsets=BC.map(()=>new rs);blendedOffsets=BC.map(()=>new rs);following=!1;followAge=0;primed=!1;pending=null;lost=0;clock=0;bones;frame=new rs;world=new rs;axisX=new B;axisY=new B;axisZ=new B;hint=new B;point=new B;other=new B;pelvisX=new B;pelvisY=new B;upperX=new B;headX=new B;kneeAxes=[new B(1,0,0),new B(1,0,0)];elbowAxes=[new B,new B];spineLength;tiltJoint=new B;tiltChest=new B;tiltAcross=new B;tiltTurn=new rs;constructor(e,t){this.rig=e,this.root=t,this.bones=BC.map(t=>e.bones[t]);let n=new Map;t.traverse(e=>{e instanceof Ul&&n.set(e,[e.quaternion.clone(),e.position.clone()])}),e.resetToRest(),t.updateMatrixWorld(!0);let r=new Float64Array(78);this.read(r),this.body.calibrate(r),this.ahead.calibrate(r),this.spineLength=this.tiltJoint.setFromMatrixPosition(e.bones.spine.matrixWorld).distanceTo(this.tiltChest.setFromMatrixPosition(e.bones.chest.matrixWorld));for(let[e,[t,r]]of n)e.quaternion.copy(t),e.position.copy(r);t.updateMatrixWorld(!0)}get active(){return this.ragdolling}get record(){return this.lastFall}sample(e){this.ragdolling||e<=0||(this.sampleBefore.set(this.sampleNow),this.read(this.sampleNow),this.sampleRoot.setFromMatrixPosition(this.root.matrixWorld),this.sampleSeconds=e,this.samples=Math.min(2,this.samples+1))}tick(e){this.clock+=e}takeBlow(e,t,n,r,i){let a={step:0,x:e.x,y:e.y,z:e.z,driveX:t.x,driveY:t.y,driveZ:t.z,target:n,twist:r,style:i};if(this.ragdolling){if(this.age>WC)return;if(this.replaying!==null){this.replaying.impulses.length===0&&this.replaying.impulses.push({...a,step:this.body.steps});return}this.lastFall?.impulses.push(this.body.impulse(a))}else this.pending={...a,at:this.clock}}dropBlow(){this.pending=null}twitch(e,t,n){this.ragdolling&&!this.following&&(this.body.twitch(e,t,n),this.replaying===null&&this.lastFall!==null&&(this.lastFall.rest.steps=-1))}prime(){this.primed=this.lastFall!==null}forget(){this.lastFall=null,this.primed=!1}start(e){let t=this.primed?this.lastFall:null;if(this.primed=!1,this.root.updateMatrixWorld(!0),this.captureLocals(this.fromLocal,this.fromHips),t!==null){this.replaying=t,this.body.start(t.positions,t.velocities,t.style),this.body.trackObstacle(t.obstacles,!0),this.replayLosses(this.body,t,0);for(let[e,n]of t.offsets.entries())this.offsets[e].copy(n);this.aheadOf=null,t.rest.steps<0&&this.runAhead(t,0)}else{this.replaying=null;let t=this.point.setFromMatrixPosition(this.root.matrixWorld).sub(this.sampleRoot),n=this.samples>0&&t.lengthSq()<=qC*qC;if(!n)this.read(this.sampleNow);else for(let e=0;e<26;e+=1)for(let n of[this.sampleNow,this.sampleBefore])n[e*3]=n[e*3]+t.x,n[e*3+1]=n[e*3+1]+t.y,n[e*3+2]=n[e*3+2]+t.z;let r=n&&this.samples>=2&&this.sampleSeconds>0?this.sampleSeconds:0;this.samples=0;for(let e=0;e<78;e+=1){let t=r>0?(this.sampleNow[e]-this.sampleBefore[e])/r:0;this.velocities[e]=Math.max(-3,Math.min(uC,t))}let i=this.rig.bones.neck,a=this.rig.bones.head;this.point.copy(this.rig.restLocalPosition(a)).applyMatrix4(i.matrixWorld).sub(this.other.setFromMatrixPosition(a.matrixWorld));for(let e of kS)this.sampleNow[e*3]=this.sampleNow[e*3]+this.point.x,this.sampleNow[e*3+1]=this.sampleNow[e*3+1]+this.point.y,this.sampleNow[e*3+2]=this.sampleNow[e*3+2]+this.point.z;let o=this.pending!==null&&this.clock-this.pending.at<=GC?this.pending:null;this.body.start(this.sampleNow,this.velocities,o?.style??e),this.computeOffsets();let s=this.recordImpulses;s.length=0,o!==null&&s.push(this.body.impulse({step:0,x:o.x,y:o.y,z:o.z,driveX:o.driveX,driveY:o.driveY,driveZ:o.driveZ,target:o.target,twist:o.twist}));let c=this.recordObstacles;c.steps=0,this.body.trackObstacle(c,!1),this.recordPositions.set(this.sampleNow),this.recordVelocities.set(this.velocities);for(let e=0;e=.008333333333333333&&i=.008333333333333333&&n=0)this.body.restore(t);else{let t=this.body.steps+Math.ceil(QC/IS);for(;!this.body.asleep&&this.body.steps=1)return;let t=Math.min(1,Math.max(0,e));this.bodyTurns(this.solvedTurns),this.rig.bones.hips.position.lerpVectors(this.riseHips,this.rig.bones.hips.position,t);for(let e=0;eLC(e,t,n),r=e=>this.point.setFromMatrixPosition(e.matrixWorld),i=(e,t,n)=>n.setFromMatrixColumn(e.matrixWorld,t).normalize();n(W.pelvis,r(t.hips)),n(W.hipL,r(t.hipL)),n(W.hipR,r(t.hipR)),n(W.belly,r(t.hips).addScaledVector(i(t.hips,2,this.axisZ),lS)),n(W.chest,r(t.chest)),n(W.upper,r(t.upperChest)),n(W.neck,r(t.neck)),n(W.shoulderL,r(t.shoulderL)),n(W.shoulderR,r(t.shoulderR)),n(W.head,r(t.head)),n(W.crown,r(t.head).addScaledVector(i(t.head,1,this.axisY),uS)),n(W.face,r(t.head).addScaledVector(i(t.head,2,this.axisZ),dS).addScaledVector(i(t.head,1,this.axisY),fS)),n(W.elbowL,r(t.elbowL)),n(W.wristL,r(t.gloveL)),n(W.fistL,r(t.gloveL).addScaledVector(i(t.gloveL,1,this.axisY),pS)),n(W.elbowR,r(t.elbowR)),n(W.wristR,r(t.gloveR)),n(W.fistR,r(t.gloveR).addScaledVector(i(t.gloveR,1,this.axisY),pS)),n(W.kneeL,r(t.kneeL)),n(W.ankleL,r(t.ankleL)),n(W.toeL,r(t.toeL)),n(W.heelL,r(t.ankleL).addScaledVector(i(t.toeL,1,this.axisY),-.07).addScaledVector(i(t.toeL,2,this.axisZ),-.09)),n(W.kneeR,r(t.kneeR)),n(W.ankleR,r(t.ankleR)),n(W.toeR,r(t.toeR)),n(W.heelR,r(t.ankleR).addScaledVector(i(t.toeR,1,this.axisY),-.07).addScaledVector(i(t.toeR,2,this.axisZ),-.09))}computeOffsets(){this.prepareFrames(this.body.position);for(let e=0;e=0&&this.rig.setWorldPosition(i,FC(e,a,this.point)),BC[r]===`upperChest`&&(this.rig.bones.clavicleL.updateWorldMatrix(!1,!1),this.rig.bones.clavicleR.updateWorldMatrix(!1,!1))}this.root.updateMatrixWorld(!0)}tiltHips(e){let t=this.rig.bones.hips,n=this.point.setFromMatrixPosition(t.matrixWorld),r=this.tiltJoint.copy(this.rig.restLocalPosition(this.rig.bones.spine)).applyMatrix4(t.matrixWorld).sub(n),i=FC(e,W.chest,this.tiltChest).sub(n),a=this.pelvisX,o=a.dot(r),s=this.tiltAcross.copy(r).addScaledVector(a,-o),c=(r.lengthSq()+i.lengthSq()-this.spineLength*this.spineLength)/2-o*a.dot(i),l=s.dot(i),u=this.other.crossVectors(a,s).dot(i),d=Math.hypot(l,u);if(d<1e-9)return;let f=Math.atan2(u,l),p=Math.acos(Math.min(1,Math.max(-1,c/d))),m=IC(f-p),h=IC(f+p),g=Math.abs(m)<=Math.abs(h)?m:h;Math.abs(g)<1e-5||(t.getWorldQuaternion(this.world).premultiply(this.tiltTurn.setFromAxisAngle(a,g)),this.rig.setWorldRotation(t,this.world))}prepareFrames(e){this.segment(e,W.hipR,W.hipL,this.pelvisX),this.axisZ.set(e[W.belly*3]-(e[W.hipL*3]+e[W.hipR*3])/2,e[W.belly*3+1]-(e[W.hipL*3+1]+e[W.hipR*3+1])/2,e[W.belly*3+2]-(e[W.hipL*3+2]+e[W.hipR*3+2])/2),this.axisZ.addScaledVector(this.pelvisX,-this.axisZ.dot(this.pelvisX)).normalize(),this.pelvisY.crossVectors(this.axisZ,this.pelvisX).normalize(),this.segment(e,W.shoulderR,W.shoulderL,this.upperX),this.segment(e,W.head,W.crown,this.axisX),this.segment(e,W.head,W.face,this.other),this.headX.crossVectors(this.axisX,this.other).normalize()}segment(e,t,n,r){return r.set(e[n*3]-e[t*3],e[n*3+1]-e[t*3+1],e[n*3+2]-e[t*3+2]),r.lengthSq()>1e-12?r.normalize():r.set(0,1,0)}frameFor(e,t,n){let r=BC[e];switch(r){case`hips`:return Ix(this.pelvisY,this.pelvisX,`x`,n);case`spine`:{let r=this.bones[e];return r.updateWorldMatrix(!1,!1),this.axisY.setFromMatrixPosition(r.matrixWorld),this.axisY.set(t[W.chest*3]-this.axisY.x,t[W.chest*3+1]-this.axisY.y,t[W.chest*3+2]-this.axisY.z),this.axisY.lengthSq()>1e-12?this.axisY.normalize():this.segment(t,W.pelvis,W.chest,this.axisY),Ix(this.axisY,this.hint.copy(this.pelvisX).multiplyScalar(.75).addScaledVector(this.upperX,.25),`x`,n)}case`chest`:return this.segment(t,W.chest,W.upper,this.axisY),Ix(this.axisY,this.hint.copy(this.pelvisX).multiplyScalar(.4).addScaledVector(this.upperX,.6),`x`,n);case`upperChest`:return this.segment(t,W.upper,W.neck,this.axisY),Ix(this.axisY,this.upperX,`x`,n);case`neck`:return this.segment(t,W.neck,W.head,this.axisY),Ix(this.axisY,this.hint.copy(this.upperX).add(this.headX),`x`,n);case`head`:return this.segment(t,W.head,W.crown,this.axisY),Ix(this.axisY,this.segment(t,W.head,W.face,this.hint),`z`,n);case`shoulderL`:case`elbowL`:case`gloveL`:case`shoulderR`:case`elbowR`:case`gloveR`:{let i=+!r.endsWith(`L`),a=VC[e],o=this.body.elbowAxis(i,t,this.elbowAxes[i]);return this.segment(t,a[0],a[1],this.axisY),Ix(this.axisY,o,`x`,n)}case`hipL`:case`kneeL`:case`hipR`:case`kneeR`:{let i=+!r.endsWith(`L`),a=VC[e],o=this.body.kneeAxis(i,t,this.kneeAxes[i]);return this.segment(t,a[0],a[1],this.axisY),Ix(this.axisY,o,`x`,n)}default:{let e=r===`ankleL`,i=e?W.ankleL:W.ankleR,a=e?W.toeL:W.toeR,o=e?W.heelL:W.heelR;return this.segment(t,i,a,this.axisY),this.segment(t,o,a,this.hint),this.other.set(t[i*3]-t[o*3],t[i*3+1]-t[o*3+1],t[i*3+2]-t[o*3+2]),this.hint.cross(this.other),Ix(this.axisY,this.hint,`x`,n)}}}};function tw(e,t,n){let r=Math.min(1,Math.max(0,(n-e)/(t-e)));return r*r*(3-2*r)}var nw=3,rw=5;function iw(e){return 1-.74*tw(-.6,1.4,e)}var aw=.23,ow=.22,sw=.22,cw=1.15,lw=.5,uw=.9,dw=.045,fw=[.33,.66],pw=dw*2*.33*.67,mw=.04;function hw(e,t){return{pressX:Math.min(ow,Math.max(0,Math.abs(e)+aw-tv)),pressZ:Math.min(ow,Math.max(0,Math.abs(t)+aw-tv))}}function gw(e,t,n){return n.x=Math.sign(e)*Math.max(0,Math.abs(e)+aw-tv-ow),n.z=Math.sign(t)*Math.max(0,Math.abs(t)+aw-tv-ow),n}var _w=` float ropeGive(float along, float position, float height) { - float near = 1.0 - smoothstep(${SC.toFixed(2)}, ${CC.toFixed(2)}, abs(along)); - float tied = smoothstep(0.0, ${wC.toFixed(2)}, ${g_.toFixed(4)} - abs(position)); - return near * tied * (${TC.toFixed(2)} + ${.09999999999999998.toFixed(2)} * smoothstep(0.5, 0.88, height)); + float near = 1.0 - smoothstep(${sw.toFixed(2)}, ${cw.toFixed(2)}, abs(along)); + float tied = smoothstep(0.0, ${lw.toFixed(2)}, ${tv.toFixed(4)} - abs(position)); + return near * tied * (${uw.toFixed(2)} + ${.09999999999999998.toFixed(2)} * smoothstep(0.5, 0.88, height)); } -`,NC=` +`,vw=` vec3 ropeWorld = (modelMatrix * vec4(transformed, 1.0)).xyz; bool ropeSideX = abs(ropeWorld.x) > abs(ropeWorld.z); vec3 ropeOut = ropeSideX ? vec3(sign(ropeWorld.x), 0.0, 0.0) : vec3(0.0, 0.0, sign(ropeWorld.z)); @@ -5230,12 +5241,12 @@ for (int ropeIndex = 0; ropeIndex < 2; ropeIndex += 1) { ropeFlex = max(ropeFlex, press * sameSide * ropeGive(ropeAlong - along, ropeAlong, ropeWorld.y)); } transformed += ropeOut * ropeFlex; -`;function PC(e,t){let n=document.createElement(`canvas`);n.width=e,n.height=e;let r=n.getContext(`2d`);r!==null&&t(r,e);let i=new Wl(n);return i.anisotropy=8,i.colorSpace=wa,i}function FC(){return PC(1024,(e,t)=>{e.fillStyle=`#9d968a`,e.fillRect(0,0,t,t);let n=e.createLinearGradient(0,0,t,t);n.addColorStop(0,`rgba(255,255,255,0.08)`),n.addColorStop(.5,`rgba(60,50,40,0.06)`),n.addColorStop(1,`rgba(255,255,255,0.04)`),e.fillStyle=n,e.fillRect(0,0,t,t);for(let n=0;n<2600;n+=1){let r=Math.sin(n*12.9898)*43758.5453%1,i=Math.sin(n*78.233)*12543.1234%1;e.fillStyle=`rgba(${n%3==0?`255,255,255`:`70,55,45`},${.02+n%5*.006})`,e.fillRect(Math.abs(r)*t,Math.abs(i)*t,2+n%4,1+n%3)}for(let n=0;n<40;n+=1){let r=Math.abs(Math.sin(n*91.7)*7919.3%1)*t,i=Math.abs(Math.sin(n*47.1)*4271.9%1)*t;e.fillStyle=`rgba(80,60,50,${.05+n%4*.02})`,e.beginPath(),e.ellipse(r,i,18+n%7*6,6+n%5*3,n*.7%Math.PI,0,Math.PI*2),e.fill()}e.strokeStyle=`rgba(30,60,140,0.85)`,e.lineWidth=12,e.beginPath(),e.arc(t/2,t/2,t*.2,0,Math.PI*2),e.stroke(),e.fillStyle=`rgba(30,60,140,0.9)`,e.font=`800 ${Math.round(t*.062)}px Inter, system-ui, sans-serif`,e.textAlign=`center`,e.textBaseline=`middle`,e.fillText(`H A N D S`,t/2,t/2-t*.012),e.font=`600 ${Math.round(t*.024)}px Inter, system-ui, sans-serif`,e.fillText(`CHAMPIONSHIP BOXING`,t/2,t/2+t*.052),e.strokeStyle=`rgba(30,60,140,0.6)`,e.lineWidth=6,e.strokeRect(t*.035,t*.035,t*.93,t*.93)})}function IC(){let e=[],t=[],n=[],r=new gs;r.name=`ring`;let i=FC();n.push(i);let a=new Ku({map:i,color:`#c8c2b8`,roughness:.84,metalness:0});t.push(a);let o=new Au(f_*2,f_*2);e.push(o);let s=new V(o,a);s.rotation.x=-Math.PI/2,s.position.y=.002,s.receiveShadow=!0,r.add(s);let c=new Ku({color:`#1c2b52`,roughness:.85});t.push(c);let l=new ju(f_*.98,p_,4,1);e.push(l);let u=new V(l,c);u.rotation.x=-Math.PI/2,u.rotation.z=Math.PI/4,u.position.y=.001,u.receiveShadow=!0,r.add(u);let d=new Ku({color:`#0c1424`,roughness:.9});t.push(d);let f=new Jl(m_*2,1,m_*2);e.push(f);let p=new V(f,d);p.position.y=-.5,p.receiveShadow=!0,r.add(p);let m=new Ku({color:`#101b33`,roughness:.95});t.push(m);for(let t=0;t<4;t+=1){let n=new Au(m_*2,.95);e.push(n);let i=new V(n,m),a=t*Math.PI/2;i.position.set(Math.sin(a)*(m_-.001),-.48,Math.cos(a)*(m_-.001)),i.rotation.y=a,r.add(i)}let h=new Ku({color:`#9aa7b5`,roughness:.35,metalness:.75});t.push(h);let g=[y_.neutral,y_.red,y_.neutral,y_.blue],_=new Zl(.055,.055,1.55,12);e.push(_);let v=new Jl(.34,.52,.13);e.push(v);let y=new Jl(.16,.07,.1);e.push(y);let b=[];for(let e=0;e<4;e+=1){let n=Math.PI/4+e*Math.PI/2,i=Math.sin(n)*h_*Math.SQRT2*.72,a=Math.cos(n)*h_*Math.SQRT2*.72;b.push(new z(i,0,a));let o=new V(_,h);o.position.set(i,.78,a),o.castShadow=!0,r.add(o);let s=new Ku({color:g[e],roughness:.55});t.push(s);for(let e of[.62,1.12]){let t=new V(v,s);t.position.set(i*.985,e,a*.985),t.lookAt(0,e,0),t.castShadow=!0,r.add(t)}}let x=[new Lo(0,0,0,0),new Lo(0,0,0,0)],S={uRopeContactA:{value:x[0]},uRopeContactB:{value:x[1]}},C=[12131356,15067115,1920728],w=e=>{e.uniforms.uRopeContactA=S.uRopeContactA,e.uniforms.uRopeContactB=S.uRopeContactB,e.vertexShader=e.vertexShader.replace(`#include `,`#include \nuniform vec4 uRopeContactA;\nuniform vec4 uRopeContactB;\n${MC}`).replace(`#include `,`#include ${NC}`)},T=e=>{let n=new Ku(e);return n.onBeforeCompile=w,t.push(n),n},E=new Ju;E.onBeforeCompile=w,E.customProgramCacheKey=()=>`hands-rope-depth`,t.push(E);let D=e=>T({color:e,roughness:.42,metalness:.05}),O=C.map(D),k=C.map(D),A=T({color:14212840,roughness:.6}),j=T({color:14212840,roughness:.6});k.push(j);let ee=__[0]-OC-kC,M=__[__.length-1]-OC+kC,te=new Jl(.035,M-ee,.012,1,6,1);e.push(te);let ne=(e,t)=>{for(let[n,r]of[e,t].entries()){let e=x[n];if(r===null){e.set(0,0,0,0);continue}let t=AC(r.x,r.z);e.set(r.x,r.z,t.pressX,t.pressZ)}};for(let t=0;t<4;t+=1){let n=b[t],i=b[(t+1)%4];for(let[a,o]of __.entries()){let s=n.clone().add(i).multiplyScalar(.5);s.y=o-EC;let c=new Fu(new Tu(new z(n.x,o,n.z),s,new z(i.x,o,i.z)),72,.028,8,!1);e.push(c);let l=new V(c,(t===_C?k:O)[a]);l.castShadow=!0,l.customDepthMaterial=E,t===_C&&(l.renderOrder=vC),r.add(l)}for(let e of DC){let a=n.x+(i.x-n.x)*e,o=n.z+(i.z-n.z)*e,s=new V(te,t===_C?j:A);s.position.set(a,(ee+M)/2,o),s.lookAt(0,s.position.y,0),t===_C&&(s.renderOrder=vC),r.add(s)}}for(let e of k)e.transparent=!0;return{group:r,materials:t,geometries:e,textures:n,setRopeContacts:ne,ropeContacts:x,setNearRopeOpacity:e=>{for(let t of k)t.opacity=L.clamp(e,0,1),t.visible=t.opacity>.03,t.depthWrite=t.opacity>=1},nearRopeOpacity:()=>k[0].opacity}}function LC(e){for(let t of e.geometries)t.dispose();for(let t of e.materials)t.dispose();for(let t of e.textures)t.dispose()}var RC={MHeadMat0:`head`,GlovesMat0:`gloves`,MBodyMat0:`body`,ShoesMat0:`shoes`,PantsMat0:`pants`},zC={GlovesMat0:.33,PantsMat0:.44,ShoesMat0:.5},BC=new Map,VC=new Map,HC=null,UC=null,WC=new Map;function GC(e){return e.colorSpace=wa,e.flipY=!1,e}function KC(e){let t=BC.get(e);if(t!==void 0)return Promise.resolve(t);let n=VC.get(e);if(n!==void 0)return n;let r=new Ad().loadAsync(_y[e]).then(t=>(BC.set(e,GC(t)),t));return VC.set(e,r),r}function qC(){return Promise.all(Object.keys(_y).map(KC))}async function JC(){let e=Uint8Array.from(atob(hy),e=>e.charCodeAt(0)),t=new Response(e).body;if(t===null)throw Error(`fighter_glb_stream_unavailable`);return new Response(t.pipeThrough(new DecompressionStream(`gzip`))).arrayBuffer()}function YC(){if(HC===null){let e=JC().then(e=>new Promise((t,n)=>{new hv().parse(e,``,t,e=>n(e instanceof Error?e:Error(String(e))))}));HC=Promise.all([e,qC()]).then(([e])=>(UC=e.scene,e))}return HC}function XC(){ZC(UC,BC.values());for(let e of WC.values())e.dispose()}function ZC(e,t){e?.traverse(e=>{e instanceof V&&e.geometry.dispose()});for(let e of t)e.dispose()}function QC(e){e.traverse(e=>{e instanceof rl&&e.skeleton.dispose()})}function $C(e){let t=BC.get(e);if(t!==void 0)return t;let n=GC(new Ad().load(_y[e]));return BC.set(e,n),n}var ew=`{ +`;function yw(e,t){let n=document.createElement(`canvas`);n.width=e,n.height=e;let r=n.getContext(`2d`);r!==null&&t(r,e);let i=new ku(n);return i.anisotropy=8,i.colorSpace=lo,i}function bw(){return yw(1024,(e,t)=>{e.fillStyle=`#9d968a`,e.fillRect(0,0,t,t);let n=e.createLinearGradient(0,0,t,t);n.addColorStop(0,`rgba(255,255,255,0.08)`),n.addColorStop(.5,`rgba(60,50,40,0.06)`),n.addColorStop(1,`rgba(255,255,255,0.04)`),e.fillStyle=n,e.fillRect(0,0,t,t);for(let n=0;n<2600;n+=1){let r=Math.sin(n*12.9898)*43758.5453%1,i=Math.sin(n*78.233)*12543.1234%1;e.fillStyle=`rgba(${n%3==0?`255,255,255`:`70,55,45`},${.02+n%5*.006})`,e.fillRect(Math.abs(r)*t,Math.abs(i)*t,2+n%4,1+n%3)}for(let n=0;n<40;n+=1){let r=Math.abs(Math.sin(n*91.7)*7919.3%1)*t,i=Math.abs(Math.sin(n*47.1)*4271.9%1)*t;e.fillStyle=`rgba(80,60,50,${.05+n%4*.02})`,e.beginPath(),e.ellipse(r,i,18+n%7*6,6+n%5*3,n*.7%Math.PI,0,Math.PI*2),e.fill()}e.strokeStyle=`rgba(30,60,140,0.85)`,e.lineWidth=12,e.beginPath(),e.arc(t/2,t/2,t*.2,0,Math.PI*2),e.stroke(),e.fillStyle=`rgba(30,60,140,0.9)`,e.font=`800 ${Math.round(t*.062)}px Inter, system-ui, sans-serif`,e.textAlign=`center`,e.textBaseline=`middle`,e.fillText(`H A N D S`,t/2,t/2-t*.012),e.font=`600 ${Math.round(t*.024)}px Inter, system-ui, sans-serif`,e.fillText(`CHAMPIONSHIP BOXING`,t/2,t/2+t*.052),e.strokeStyle=`rgba(30,60,140,0.6)`,e.lineWidth=6,e.strokeRect(t*.035,t*.035,t*.93,t*.93)})}function xw(){let e=[],t=[],n=[],r=new tc;r.name=`ring`;let i=bw();n.push(i);let a=new jd({map:i,color:`#c8c2b8`,roughness:.84,metalness:0});t.push(a);let o=new hd(Z_*2,Z_*2);e.push(o);let s=new H(o,a);s.rotation.x=-Math.PI/2,s.position.y=.002,s.receiveShadow=!0,r.add(s);let c=new jd({color:`#1c2b52`,roughness:.85});t.push(c);let l=new gd(Z_*.98,Q_,4,1);e.push(l);let u=new H(l,c);u.rotation.x=-Math.PI/2,u.rotation.z=Math.PI/4,u.position.y=.001,u.receiveShadow=!0,r.add(u);let d=new jd({color:`#0c1424`,roughness:.9});t.push(d);let f=new Nu($_*2,1,$_*2);e.push(f);let p=new H(f,d);p.position.y=-.5,p.receiveShadow=!0,r.add(p);let m=new jd({color:`#101b33`,roughness:.95});t.push(m);for(let t=0;t<4;t+=1){let n=new hd($_*2,.95);e.push(n);let i=new H(n,m),a=t*Math.PI/2;i.position.set(Math.sin(a)*($_-.001),-.48,Math.cos(a)*($_-.001)),i.rotation.y=a,r.add(i)}let h=new jd({color:`#9aa7b5`,roughness:.35,metalness:.75});t.push(h);let g=[iv.neutral,iv.red,iv.neutral,iv.blue],_=new Iu(.055,.055,1.55,12);e.push(_);let v=new Nu(.34,.52,.13);e.push(v);let y=new Nu(.16,.07,.1);e.push(y);let b=[];for(let e=0;e<4;e+=1){let n=Math.PI/4+e*Math.PI/2,i=Math.sin(n)*ev*Math.SQRT2*.72,a=Math.cos(n)*ev*Math.SQRT2*.72;b.push(new B(i,0,a));let o=new H(_,h);o.position.set(i,.78,a),o.castShadow=!0,r.add(o);let s=new jd({color:g[e],roughness:.55});t.push(s);for(let e of[.62,1.12]){let t=new H(v,s);t.position.set(i*.985,e,a*.985),t.lookAt(0,e,0),t.castShadow=!0,r.add(t)}}let x=[new Ss(0,0,0,0),new Ss(0,0,0,0)],S={uRopeContactA:{value:x[0]},uRopeContactB:{value:x[1]}},C=[12131356,15067115,1920728],w=e=>{e.uniforms.uRopeContactA=S.uRopeContactA,e.uniforms.uRopeContactB=S.uRopeContactB,e.vertexShader=e.vertexShader.replace(`#include `,`#include \nuniform vec4 uRopeContactA;\nuniform vec4 uRopeContactB;\n${_w}`).replace(`#include `,`#include ${vw}`)},T=e=>{let n=new jd(e);return n.onBeforeCompile=w,t.push(n),n},E=new Nd;E.onBeforeCompile=w,E.customProgramCacheKey=()=>`hands-rope-depth`,t.push(E);let D=e=>T({color:e,roughness:.42,metalness:.05}),O=C.map(D),k=C.map(D),ee=T({color:14212840,roughness:.6}),A=T({color:14212840,roughness:.6});k.push(A);let te=nv[0]-pw-mw,j=nv[nv.length-1]-pw+mw,ne=new Nu(.035,j-te,.012,1,6,1);e.push(ne);let re=(e,t)=>{for(let[n,r]of[e,t].entries()){let e=x[n];if(r===null){e.set(0,0,0,0);continue}let t=hw(r.x,r.z);e.set(r.x,r.z,t.pressX,t.pressZ)}};for(let t=0;t<4;t+=1){let n=b[t],i=b[(t+1)%4];for(let[a,o]of nv.entries()){let s=n.clone().add(i).multiplyScalar(.5);s.y=o-dw;let c=new bd(new ud(new B(n.x,o,n.z),s,new B(i.x,o,i.z)),72,.028,8,!1);e.push(c);let l=new H(c,(t===nw?k:O)[a]);l.castShadow=!0,l.customDepthMaterial=E,t===nw&&(l.renderOrder=rw),r.add(l)}for(let e of fw){let a=n.x+(i.x-n.x)*e,o=n.z+(i.z-n.z)*e,s=new H(ne,t===nw?A:ee);s.position.set(a,(te+j)/2,o),s.lookAt(0,s.position.y,0),t===nw&&(s.renderOrder=rw),r.add(s)}}for(let e of k)e.transparent=!0;return{group:r,materials:t,geometries:e,textures:n,setRopeContacts:re,ropeContacts:x,setNearRopeOpacity:e=>{for(let t of k)t.opacity=R.clamp(e,0,1),t.visible=t.opacity>.03,t.depthWrite=t.opacity>=1},nearRopeOpacity:()=>k[0].opacity}}function Sw(e){for(let t of e.geometries)t.dispose();for(let t of e.materials)t.dispose();for(let t of e.textures)t.dispose()}var Cw={MHeadMat0:`head`,GlovesMat0:`gloves`,MBodyMat0:`body`,ShoesMat0:`shoes`,PantsMat0:`pants`},ww={GlovesMat0:.33,PantsMat0:.44,ShoesMat0:.5},Tw=new Map,Ew=new Map,Dw=null,Ow=null,kw=new Map;function Aw(e){return e.colorSpace=lo,e.flipY=!1,e}function jw(e){let t=Tw.get(e);if(t!==void 0)return Promise.resolve(t);let n=Ew.get(e);if(n!==void 0)return n;let r=new gf().loadAsync(nb[e]).then(t=>(Tw.set(e,Aw(t)),t));return Ew.set(e,r),r}function Mw(){return Promise.all(Object.keys(nb).map(jw))}async function Nw(){let e=Uint8Array.from(atob(eb),e=>e.charCodeAt(0)),t=new Response(e).body;if(t===null)throw Error(`fighter_glb_stream_unavailable`);return new Response(t.pipeThrough(new DecompressionStream(`gzip`))).arrayBuffer()}function Pw(){if(Dw===null){let e=Nw().then(e=>new Promise((t,n)=>{new ey().parse(e,``,t,e=>n(e instanceof Error?e:Error(String(e))))}));Dw=Promise.all([e,Mw()]).then(([e])=>(Ow=e.scene,e))}return Dw}function Fw(){Iw(Ow,Tw.values());for(let e of kw.values())e.dispose()}function Iw(e,t){e?.traverse(e=>{e instanceof H&&e.geometry.dispose()});for(let e of t)e.dispose()}function Lw(e){e.traverse(e=>{e instanceof Hl&&e.skeleton.dispose()})}function Rw(e){let t=Tw.get(e);if(t!==void 0)return t;let n=Aw(new gf().load(nb[e]));return Tw.set(e,n),n}var zw=`{ vec4 pressedOntoCanvas = modelMatrix * vec4( transformed, 1.0 ); - if ( pressedOntoCanvas.y < ${0 .toFixed(4)} && max( abs( pressedOntoCanvas.x ), abs( pressedOntoCanvas.z ) ) < ${m_.toFixed(4)} ) { + if ( pressedOntoCanvas.y < ${0 .toFixed(4)} && max( abs( pressedOntoCanvas.x ), abs( pressedOntoCanvas.z ) ) < ${$_.toFixed(4)} ) { transformed += inverse( mat3( modelMatrix ) ) * vec3( 0.0, ${0 .toFixed(4)} - pressedOntoCanvas.y, 0.0 ); } -}`;function tw(e){let t=e.onBeforeCompile,n=Object.hasOwn(e,`customProgramCacheKey`)?e.customProgramCacheKey():`plain`;e.onBeforeCompile=(n,r)=>{t.call(e,n,r),n.vertexShader=n.vertexShader.replace(`#include `,`${ew}\n#include `)},e.customProgramCacheKey=()=>`${n}-on-canvas`,e.needsUpdate=!0}function nw(e,t){let n=t.outfit!==void 0,r=!n||t.wounds===!0,i=[],a=[],o=new Map,s=null,c={value:0},l=null,u=null;if(e.traverse(e=>{if(!(e instanceof rl)||Array.isArray(e.material))return;let d=e.material.name,f=RC[d];if(f===void 0)throw Error(`fighter GLB has unsupported material ${d}`);let p=o.get(d);if(p===void 0){let e=d===`MHeadMat0`||d===`MBodyMat0`,m=t.outfit,h=d===`GlovesMat0`?t.gear:d===`PantsMat0`?m?.trousers??t.gear:d===`ShoesMat0`&&m!==void 0?m.shoes:16777215,g=$C(f);p=e&&!n?new qu({map:g,color:h,roughness:.58,metalness:.02,clearcoat:.25,clearcoatRoughness:.6}):new Ku({map:g,color:h,roughness:e?.58:zC[d]??.4,metalness:e?.02:.03}),p.name=d,o.set(d,p),a.push(p),e&&i.push(p),d===`MHeadMat0`&&(l=new e_(r?p:null,Qh,{core:Ng,lids:Fg})),d===`MBodyMat0`&&(u=new e_(r?p:null,$h,{core:Pg,wash:!0}));let _=rw[d];m!==void 0&&_!==void 0?cb(p,_,m):d===`PantsMat0`?c=xy(p,!1,`trunks`):d===`GlovesMat0`&&(s=xy(p)),e&&!n&&hb(p),tw(p)}if(e.material=p,!n&&e.name===`BoxerPants`){let t=WC.get(e.geometry);t===void 0&&WC.set(e.geometry,t=Eb(e.geometry,e.skeleton.bones.map(e=>e.name))),e.geometry=t}e.castShadow=!n,e.receiveShadow=!0,e.frustumCulled=!1}),i.length!==2||s===null||a.length!==5||l===null||u===null)throw Error(`fighter GLB material contract failed: ${i.length} skin, ${a.length} total`);return{skin:i,gloveBlood:s,trunksBlood:c,owned:a,headInjury:l,bodyInjury:u}}var rw={MHeadMat0:`head`,MBodyMat0:`body`,ShoesMat0:`shoes`,PantsMat0:`pants`},iw=new B().setRGB(.6,.32,.19,Ta),aw=(e,t,n,r)=>e+(t-e)*(1-Math.exp(-n*r)),ow=(e,t,n,r)=>e+(((t-e+Math.PI)%(Math.PI*2)+Math.PI*2)%(Math.PI*2)-Math.PI)*(1-Math.exp(-n*r)),sw=L.clamp,cw=class{root=new gs;bones=new Map;rig;metrics;skinMaterials;ownedMaterials;gloveBlood;trunksBlood;headMeshes=[];handMeshes={left:[],right:[]};decapitated=!1;burst=!1;dismemberedHands={left:!1,right:!1};dressed;ownedGeometries=[];gearBaseColor;skinBaseColor;headInjury;bodyInjury;headLook;face;bareHand;constructor(e,t){let n=pv(e.scene);n.scale.setScalar(1),this.root.add(n);let r=nw(n,t);this.skinMaterials=r.skin,this.ownedMaterials=[...r.owned],this.gloveBlood=r.gloveBlood,this.trunksBlood=r.trunksBlood,this.headInjury=r.headInjury,this.bodyInjury=r.bodyInjury,this.gearBaseColor=new B(t.gear),this.skinBaseColor=new B(t.skin),this.dressed=t.outfit!==void 0,n.traverse(e=>{e instanceof rl&&e.name===`BoxerHead`&&this.headMeshes.push(e),e instanceof rl&&e.name===`BoxerGloveLeft`&&this.handMeshes.left.push(e),e instanceof rl&&e.name===`BoxerGloveRight`&&this.handMeshes.right.push(e),e instanceof il&&this.bones.set(e.name,e)});let i=Object.values(gy).filter(e=>!this.bones.has(e));if(i.length>0)throw Error(`fighter GLB missing required bones: ${i.join(`, `)}`);if(this.headMeshes.length!==1)throw Error(`fighter GLB requires one BoxerHead mesh, found ${this.headMeshes.length}`);let a=this.headInjury.shadowMaterial();this.headMeshes[0].customDepthMaterial=a;let o=this.headMeshes[0].material;o.side=0,o.shadowSide=1,this.ownedMaterials.push(a);for(let e of[`left`,`right`])if(this.handMeshes[e].length!==1)throw Error(`fighter GLB requires one ${e} glove mesh, found ${this.handMeshes[e].length}`);this.root.updateMatrixWorld(!0),this.rig=new Qb(this.root),this.headLook=new Vy(this.headMeshes[0].material),this.face=new jb(t.gear^t.skin),this.bareHand=t.outfit===void 0?null:this.addHands(t.outfit),this.setLook(t.look??Sy);let s=this.rig.metrics;this.metrics={armUpper:s.armL.upper,armFore:s.armL.lower,legThigh:s.legL.upper,legShin:s.legL.lower,headRestY:s.headHeight,chestRestY:s.chestHeight,ankleRestY:s.ankleHeight}}bone(e){return this.bones.get(gy[e]??e)??null}setGloveBlood(e){this.gloveBlood.value=sw(e,0,1)}get gloveBloodLevel(){return this.gloveBlood.value}setTrunksBlood(e){this.trunksBlood.value=sw(e,0,1)}get trunksBloodLevel(){return this.trunksBlood.value}get headMesh(){return this.headMeshes[0]}gloveMesh(e){return this.handMeshes[e][0]}get skin(){return this.skinMaterials[0]}get isDecapitated(){return this.decapitated}setDecapitated(e){this.decapitated=e,this.burst=!1,this.headInjury.setSevered(e),this.bone(`head`).visible=!e}get isHeadBurst(){return this.burst}setHeadBurst(e){this.burst=e,this.decapitated=!1,this.headInjury.setBurst(e),this.bone(`head`).visible=!e}isHandDismembered(e){return this.dismemberedHands[e]}setHandDismembered(e,t){this.dismemberedHands[e]=t;for(let n of this.handMeshes[e])n.visible=!t&&!this.dressed}setLook(e){this.headLook.set(e);for(let t of this.skinMaterials)t.color.setHex(e.tint);this.bareHand?.color.copy(iw).multiply(this.skinMaterials[0].color)}get look(){return this.headLook.look}addHands(e){let t=e.gloves!==null,n=new Ku({color:t?e.gloves:iw,roughness:t?.38:.6,metalness:.02}),r=t?n:new Ku({color:new B(e.shirt).multiplyScalar(.9),roughness:.88,metalness:0});this.ownedMaterials.push(n),r!==n&&this.ownedMaterials.push(r);let i=fb();this.ownedGeometries.push(i);for(let e of[`left`,`right`]){for(let t of this.handMeshes[e])t.visible=!1;let t=db(e);this.ownedGeometries.push(t);let a=e===`left`?`L`:`R`;for(let[o,s,c,l]of[[this.rig.bones[`glove${a}`],t,n,`hand-${e}`],[this.rig.bones[`elbow${a}`],i,r,`cuff-${e}`]]){let e=new V(s,c);e.name=l,e.castShadow=!1,e.receiveShadow=!0,o.add(e)}}return t?null:n}setSkinClearcoat(e){for(let t of this.skinMaterials)t instanceof qu&&(t.clearcoat=e)}flinch(e,t){this.face.flinch(e,t)}updateFace(e,t,n,r,i,a){this.face.update(e,t,n,r,i,a),this.headLook.setExpression(this.face.lids,this.face.mouth,this.face.brow)}dispose(){for(let e of this.ownedMaterials)e.dispose();for(let e of this.ownedGeometries)e.dispose();QC(this.root)}},lw=(e,t,n,r,i)=>{let a=e.value,o=e.velocity;o.addScaledVector(a,-n*t).multiplyScalar(Math.exp(-r*t)),a.addScaledVector(o,t),a.length()>i&&a.setLength(i)},uw=.06,dw=150,fw=.58,pw=.25,mw=.32,hw=9,gw=1,_w=.08,vw=.3,yw=1,bw=1.6,xw=.25,Sw=.12,Cw=.33,ww=.3,Tw=8;function Ew(e,t,n,r){jC(e,t,n);let i=Math.hypot(n.x,n.z);if(i<=0)return r.x=0,r.z=0,0;let a=rx(0,xw,i),o=1+Sw*a/i;return r.x=n.x*o,r.z=n.z*o,a}var Dw=(e,t)=>e===0||Math.sign(t)===Math.sign(e)&&Math.abs(t)>Math.abs(e)?t:e,Ow=.75,kw=.38,Aw=.72,jw=.5,Mw=.2,Nw=.55,Pw=.7,Fw=6,Iw=.4,Lw=.2,Rw=.3,zw=.5,Bw=class{mapping;boxer;solver;yaw=0;yawInitialized=!1;rootX=null;rootZ=0;punchActive=!1;punchAgeTicks=0;punchTotalTicks=1;punchClass=`jab`;punchHand=`left`;punchTarget=`head`;punchPower=`normal`;punchTiming=se(`jab`,`head`,`normal`);actionId=null;completedActionId=null;ownActionId=null;ownPress=!1;ownLeadTicks=0;ownAuthoritativeAge=null;ownWaitedTicks=0;ownExpectedTicks=0;ownPulled=!1;ownSequence=null;ownStarted=!1;ownPressedAt=0;ownRefused=!1;ownCut=!1;recoveryCut=!1;ownQueued=null;contactId=null;contactParried=!1;shownFighter=null;shownOpponent=null;retiredOwnIds=[];pressesLanded=[];anticipatedId=null;hitstop=0;hitstopScale=1;hitstopLag=0;downState=`up`;fallAge=0;riseProgress=0;riseFrom=0;fallSide=0;fallProne=!1;fallKneel=!1;windedSide=-1;windedTime=0;winded=0;landProne=!1;landSide=0;landShift=new z;landSettled=!1;fallen=SE();fallenFromPhysics=!1;riseRoot=new z;riseRootFrom=new z;downPoles=[new z,new z,new z,new z];downPolesSet=!1;poleSettle=0;characterInverse=new Ho;place=new z;riseRootVelocity=new z;liveOpponentHead=new z;hasLiveHead=!1;guardOpponentHead=new z;opponentHeadOffset=new z;opponentSteadySeconds=0;followHead=0;aimActionId=null;refereeContactId=null;refereeHead=new z;hasRefereeHead=!1;followReferee=0;headKick={value:new z,velocity:new z};torsoKick={value:new z,velocity:new z};rootKick={value:new z,velocity:new z};coverKick={value:new z,velocity:new z};foldDelay=0;pendingFold=0;coverDelay=0;pendingCover=0;liverDelay=0;pendingLiver=0;armKick={value:new z,velocity:new z};handsDrop=0;guardWasBroken=!1;hurtSeed=1;rockedTime=0;rockedPhase=0;nextLurch=0;guardKick=0;guardHigh=0;guardLow=0;guardSpent=0;slip=0;weave=0;weaveTime=0;pull=0;crouchExtra=0;bouncePhase=0;weightPhase=0;breathPhase=0;stunPhase=0;feintTimer=2;pawAge=bT;pawCount=0;idleSeed=-1;manner={...bx.balanced,lead:new z,rear:new z};mannerStyle=null;mannerSeed=0;breath=0;battered=0;walkLean=new R;leadingFoot=-1;nextFoot=-1;steppedYaw=0;stunAmount=0;tired=0;clinchWeight=0;foulWeight=0;tauntWeight=0;crowding=0;tight=0;punchCommit=0;punchMiss=0;headSpace=new R;ownHead=new z;ropeHold=new z;ropeExcess={x:0,z:0};ropeOwn={x:0,z:0};ropeTheirs={x:0,z:0};ropeLeanTarget=0;ropeLean=0;ropeOutward=new z(1,0,0);ropeLocal=new z;tauntEnd=null;lastSpeed=0;stool;stoolRoot=new z;stoolYaw=0;enswell;bottle;treatProp=`enswell`;treatTarget=new z;treatScratch=new z;treatFacing=new z(0,0,-1);treatFacingLocal=new z;treatSide=1;treating=!1;treatWeight=0;resting=!1;seated=0;stillTime=0;celebrateTime=0;celebration=0;waveTime=0;wave=0;breakTime=0;breakWeight=0;breakFighters=[new z,new z];breakAimed=!1;attending=!1;verdictSide=0;verdict=null;squareWeight=0;raisedWeight=0;bowedWeight=0;wrists=[null,null];wristTargets=[new z,new z];wristWeights=[0,0];attendWeight=0;countdownTicks=null;countdownEnd=null;touchWeight=0;touchOffset=new z;touchVelocity=new z;debugHoldImpact=!1;feet=[{planted:new z,from:new z,to:new z,progress:1,stepping:!1,duration:.2},{planted:new z,from:new z,to:new z,progress:1,stepping:!1,duration:.2}];feetInitialized=!1;dislocation=null;scratch=new z;scratchB=new z;scratchC=new z;scratchD=new z;scratchE=new z;clinchCentre=new z;clinchForward=new z;clinchTemp=new z;scratchQ=new vo;headWorld=new z;hand={L:this.makeHand(),R:this.makeHand()};punchGuard=this.makeHand();punchDir=new z;punchContact=new z;punchStart=new z;punchSweepFrom=new z;punchSweepTo=new z;punchMid=new z;foot={L:this.makeFoot(),R:this.makeFoot()};torso={hips:new z,hipsYaw:0,hipsPitch:0,hipsRoll:0,shouldersYaw:0,spinePitch:0,spineRoll:0,headYaw:0,headPitch:0,headRoll:0,headOffset:new z};pose;downStanding=SE();downFrom=SE();downTo=SE();downResult=SE();downStand=1;fallStart=SE();fallStartStand=1;fallFromGetUp=!1;referee;refereeCount=0;refereeCounting=!1;countChangedTick=null;countWeight=0;countPump=0;watchPoint=new z;watching=!1;duty=`watch`;backWeight=0;waveSlow=!1;mood=`work`;mournWeight=0;cheerWeight=0;treatUrgency=0;gazeYaw=0;gazePitch=0;travel=new z;strideYaw=0;backing=!1;footYaw=[0,0];ragdoll;forcedDown=!1;heldDown=!1;authoredNextFall=!1;obstacle=null;blows=0;riseBlendAge=0;posedInjuries=0;armCarry=[`whole`,`whole`];armLimp=[0,0];armSnap=[0,0];armDangle=[wT(),wT()];forearmDangle=[wT(),wT()];trunkLow=new z;trunkHigh=new z;lostLean=0;cover=0;kneeBlown=[!1,!1];kneeGive=[0,0];gutted=!1;hunch=0;liver=!1;curl=0;faintTarget=0;faint=0;retchTime=0;retching=0;dazed=!1;daze=0;dazeTime=0;stepPace=[1,1];stepLift=[1,1];stepSlack=1;hurt=!1;punchReach=0;dead=!1;deathFall=!1;deathStyle=`crumple`;deathAge=0;throe=DT.length;throeSide=0;laidOut=!1;constructor(e,t,n={}){this.mapping=t,this.boxer=e,this.referee=n.referee===!0,this.solver=new _x(e.rig),this.pose={torso:this.torso,handL:this.hand.L,handR:this.hand.R,footL:this.foot.L,footR:this.foot.R,shrugL:0,shrugR:0},this.stool=YE(),this.stool.group.position.set(0,0,.02),e.root.add(this.stool.group),this.enswell=qE(),e.rig.bones.gloveL.add(this.enswell.group),this.bottle=JE(),e.rig.bones.gloveL.add(this.bottle.group),this.ragdoll=this.referee&&n.knockout!==!0?null:new hC(e.rig,e.root)}primeReplayFall(){this.ragdoll?.prime()}useAuthoredFall(){this.authoredNextFall=!0}knockOut(){this.forcedDown=!0}stayDown(e){this.heldDown=e}setObstacle(e,t){this.obstacle??={x:e,z:t},this.obstacle.x=e,this.obstacle.z=t}get fallBody(){return this.ragdoll?.active===!0?this.ragdoll:null}setResting(e){this.resting=e}get stoolVisible(){return this.stool.group.visible}celebrate(e=4.4){this.celebrateTime=e}resetTransient(e=!1){this.forcedDown=!1;let t=this.ragdoll;t!==null&&(e?t.active?t.settle():t.restoreSettled():(t.stop(),t.clearRise())),this.downState=e?`down`:`up`,this.landSettled=!1,this.fallenFromPhysics=!1,this.riseRoot.set(0,0,0),this.riseRootFrom.set(0,0,0),this.riseRootVelocity.set(0,0,0),this.fallAge=e?Ow:0,this.riseProgress=0,this.hitstop=0,this.hitstopScale=1,this.hitstopLag=0;for(let e of[this.headKick,this.torsoKick,this.rootKick,this.coverKick,this.armKick])e.value.set(0,0,0),e.velocity.set(0,0,0);this.foldDelay=0,this.pendingFold=0,this.coverDelay=0,this.pendingCover=0,this.liverDelay=0,this.pendingLiver=0,this.handsDrop=0,this.rockedTime=0,this.guardKick=0,this.stunAmount=0,this.windedTime=0,this.winded=0,this.celebrateTime=0,this.celebration=0,this.waveTime=0,this.wave=0,this.verdictSide=0,this.verdict=null,this.squareWeight=0,this.raisedWeight=0,this.bowedWeight=0,this.wrists.fill(null),this.wristWeights.fill(0),this.seated=0,this.stillTime=0,this.rootX=null,this.yawInitialized=!1,this.feetInitialized=!1,this.retirePunch(),this.ownQueued=null,this.completedActionId=null,this.retiredOwnIds.length=0,this.anticipatedId=null,this.retchTime=0,this.retching=0,this.dazed=!1,this.daze=0,this.dazeTime=0;for(let e=0;e<2;e+=1)ET(this.armDangle[e]),ET(this.forearmDangle[e]);this.dead=!1,this.deathFall=!1,this.throe=DT.length,this.laidOut=e}waveOff(e=2.6,t=!1){this.waveTime=e,this.waveSlow=t}setCountdown(e){this.countdownTicks=e}attend(e,t=`work`){this.attending=e,this.mood=t}treat(e,t,n=1,r=`enswell`,i=0){this.treating=e!==null,e!==null&&(this.treatTarget.copy(e),t!==void 0&&this.treatFacing.copy(t),this.treatSide=n,this.treatProp=r,this.treatUrgency=i)}awaitVerdict(e){this.verdictSide=e??0,e===null&&(this.verdict=null)}announce(e){this.verdict=e}raise(e,t){this.wrists[0]=e===null?null:this.wristTargets[0].copy(e),this.wrists[1]=t===null?null:this.wristTargets[1].copy(t)}breakClinch(e=1.3){this.breakTime=e}get breaking(){return this.breakTime>0}aimBreak(e,t,n=null,r=`watch`){this.breakFighters[0].copy(e),this.breakFighters[1].copy(t),this.breakAimed=!0,this.watching=n!==null,n!==null&&this.watchPoint.copy(n),this.duty=r}makeHand(){return{position:new z,knuckles:new z(0,1,0),palm:new z(0,0,1),pole:new z(0,-1,0)}}makeFoot(){return{position:new z,toe:new z(0,0,1),heel:0,pole:new z(0,0,1)}}get currentRoot(){return{x:this.rootX??0,z:this.rootZ}}get isDown(){return this.downState!==`up`||this.dead}setRefereeCount(e,t){(e!==this.refereeCounting||t!==this.refereeCount)&&(this.countChangedTick=null),this.refereeCounting=e,this.refereeCount=t}predict(e,t,n,r=0,i,a=r){if(e.kind!==`punch`||e.id===void 0)return;let o={action:{...e,id:e.id},timing:i??se(e.class,e.target,e.power),leadTicks:r,answerTicks:a,pressedAt:t,sequence:null,started:!1,waited:0};if(this.punchActive&&this.ownActionId!==null&&this.ownAuthoritativeAge===null&&!this.ownPulled&&!this.ownStarted&&(t-this.ownPressedAt)*n0||e.clinch_ticks>0||e.clinch_startup_ticks>0,a=this.ownQueued;if(a!==null&&(a.sequence??=r?.(a.action.id)??null,e.action_id===a.action.id?a.started=!0:!a.started&&(i||a.sequence!==null&&e.last_input_sequence>=a.sequence&&e.queued_actions===0)&&(this.ownQueued=null)),!this.punchActive||this.ownActionId===null||this.ownPulled||this.ownRefused)return;this.ownStarted||(this.ownSequence??=r?.(this.ownActionId)??null);let o=e.action_id===this.ownActionId;o&&(this.ownStarted=!0);let s=this.ownQueued;s!==null&&s.sequence!==null&&r!==null&&!this.ownStarted&&this.ownSequence===null&&this.ownAuthoritativeAge===null?(this.ownActionId=null,this.ownQueued=null,this.retirePunch(),this.startOwnPunch(s)):(o?i&&e.action_contact_tick===null:!this.ownStarted&&this.ownAuthoritativeAge===null&&(i||this.ownSequence!==null&&e.last_input_sequence>=this.ownSequence&&e.queued_actions===0))&&(this.ownRefused=!0,this.takeBack())}takeBack(){this.punchAgeTickse.action_startup_ticks*(1/uD-1)||this.punchActive&&this.punchAgeTicks/this.punchTotalTicks<=.55)return;this.anticipatedId=n;let r=e.action_target??`head`,i=e.action_power??`normal`,a={...se(e.action,r,i),startup:e.action_startup_ticks,active:e.action_active_ticks,recovery:e.action_recovery_ticks},o=e.action_hand??(e.stance===`orthodox`?`left`:`right`);this.startEarly(n,e.action,o,r,i,a,t,t)}startOwnPunch(e){let{action:t,timing:n}=e;this.startEarly(t.id,t.class,t.hand,t.target,t.power,n,0,Math.max(0,e.answerTicks)),this.ownPress=!0,this.ownSequence=e.sequence,this.ownStarted=e.started,this.ownPressedAt=e.pressedAt}startEarly(e,t,n,r,i,a,o,s){this.retirePunch(),this.punchClass=t,this.punchHand=n,this.punchTarget=r,this.punchPower=i,this.punchTiming=a,this.punchTotalTicks=Math.max(1,pe(a)),this.punchAgeTicks=0,this.punchActive=!0,this.ownActionId=e,this.ownLeadTicks=sw(o,0,ZE),this.ownExpectedTicks=s}followUpStartAge(e){let t=this.shownFighter,n=this.shownOpponent,r=this.actionId??this.ownActionId,i=r!==null&&r===this.contactId&&!this.contactParried;return t!==null&&n!==null&&D(this.punchClass,i,e.action,t.stamina,n.stunned_ticks>0,t.style)?E(this.punchTiming):this.punchTotalTicks}releaseQueuedPress(e){let t=this.ownQueued;t!==null&&(t.waited+=e*30,this.punchActive&&!this.ownPulled&&this.punchAgeTicks+this.serverLag(t.leadTicks)6&&this.retiredOwnIds.shift()),this.actionId=null,this.punchActive=!1,this.ownActionId=null,this.ownPress=!1,this.ownLeadTicks=0,this.ownAuthoritativeAge=null,this.ownWaitedTicks=0,this.ownExpectedTicks=0,this.ownPulled=!1,this.ownSequence=null,this.ownStarted=!1,this.ownRefused=!1,this.ownCut=!1,this.recoveryCut=!1,this.hitstopLag=0}setRefereeHead(e){this.hasRefereeHead=e!==null,e!==null&&this.refereeHead.copy(e)}landedHit(e,t,n=!1){this.punchActive&&e!==null&&e===(this.actionId??this.ownActionId)&&(this.punchAgeTicks>=this.punchTiming.startup+this.punchTiming.active+1||(this.hitstop=Math.max(this.hitstop,(t?o.block:n?o.power:o.hit)/1e3)))}powerHeat(e){if(!this.punchActive||this.punchPower!==`power`||this.punchHand!==e||this.ownPulled)return 0;let{startup:t,active:n,recovery:r}=this.punchTiming,i=this.punchAgeTicks;return i>>0;let u=i===`left`?1:i===`right`||n>=0?-1:1;if(t===`body`){switch(r){case`hook`:this.torsoKick.velocity.x+=3*l,this.torsoKick.velocity.z+=4.6*l*u,this.rootKick.velocity.x+=.5*l*u,this.coverDelay=.09,this.pendingCover=2.4*l*u,u>0&&e===`hit`&&o>.25&&(this.liverDelay=.28,this.pendingLiver=l*(.4+o));break;case`uppercut`:this.rootKick.velocity.y+=.9*l,this.torsoKick.velocity.x-=1.6*l,this.foldDelay=.1,this.pendingFold=5.2*l;break;default:this.torsoKick.velocity.x+=4.6*l}this.rootKick.velocity.z-=.45*l,this.headKick.velocity.z-=.6*l,this.headKick.velocity.y-=.7*l,this.guardKick=Math.max(this.guardKick,.6*l)}else{switch(e===`hit`&&(this.guardKick=Math.max(this.guardKick,.4*l)),r){case`hook`:this.headKick.velocity.x+=2.6*l*u,this.headKick.velocity.z-=.7*l,this.torsoKick.velocity.y+=3.4*l*u,this.torsoKick.velocity.z-=1.2*l*u;break;case`uppercut`:this.headKick.velocity.y+=2.2*l,this.headKick.velocity.z-=1.2*l,this.torsoKick.velocity.x-=1.6*l;break;case`straight`:this.headKick.velocity.z-=2.4*l,this.headKick.velocity.x+=.5*l*u,this.torsoKick.velocity.x-=1*l,this.torsoKick.velocity.y+=1.4*l*u;break;default:this.headKick.velocity.z-=1.5*l,this.torsoKick.velocity.x-=.5*l,this.torsoKick.velocity.y+=.5*l*u}if(this.rootKick.velocity.z-=.45*l,e===`block`)this.guardKick=Math.max(this.guardKick,Math.min(1.2,2.4*l)),this.rootKick.velocity.z-=1.1*l,this.torsoKick.velocity.x-=1.2*l;else{this.rootKick.velocity.y-=1.1*l*o;let e=1.7*l*o;r===`hook`?this.armKick.velocity.add(this.scratchE.set(u,.3,-.2).multiplyScalar(e)):r===`uppercut`?this.armKick.velocity.add(this.scratchE.set(0,1,-.4).multiplyScalar(e)):this.armKick.velocity.add(this.scratchE.set(.3*u,.7,-.4).multiplyScalar(e)),this.handsDrop=Math.max(this.handsDrop,sw((o-.35)*2,0,1)*(.5+.5*c))}}if(e===`hit`&&(this.dentSurface(t,u,r,o),this.fallSide=r===`hook`?u:u*.5,this.fallProne=r===`hook`||t===`body`),e===`hit`&&a>=10&&this.ragdoll!==null){let e=mC({target:t,punchClass:r,hand:i,lateral:u,amount:a}),n=this.scratchE.set(e.x,e.y,e.z).applyAxisAngle(XE,this.yaw),o=this.scratchD.set(e.driveX,e.driveY,e.driveZ).applyAxisAngle(XE,this.yaw);this.blows+=1,this.ragdoll.takeBlow(n,o,t,e.twist,YS(r,t,a,this.blows+Math.round(a)))}}stagger(){this.torsoKick.velocity.x-=2.6,this.headKick.velocity.z-=1.4,this.headKick.velocity.y+=.5,this.rootKick.velocity.z-=1.1,this.guardKick=Math.max(this.guardKick,1.1)}windedFor(e,t){this.windedTime=Math.max(this.windedTime,e),this.windedSide=t>=0?1:-1}fallToKnee(e){this.dead||(this.fallKneel=e,e&&(this.authoredNextFall=!0))}dentSurface(e,t,n,r){let i=1.1+r*2.1;if(e===`body`){let e=n===`hook`?t>0?`rightRibs`:`leftRibs`:`solarPlexus`;this.boxer.bodyInjury.impact(e,[n===`hook`?t*i*.8:0,0,-i],9)}else n===`hook`?this.boxer.headInjury.impact(t>0?`rightCheek`:`leftCheek`,[t*i,0,-i*.35],5.5):n===`uppercut`?this.boxer.headInjury.impact(`chin`,[0,i*.7,-i*.6],5):this.boxer.headInjury.impact(n===`jab`?`nose`:`mouth`,[0,0,-i],4.5)}footPlace(e,t,n){if(this.squareWeight>.5)return n.set(e===0?.16:-.16,0,e===0?.02:-.02);let r=e===0==t>0?vx.leadFoot:vx.rearFoot;return n.set(r.x*t*this.manner.width*(1+pT*this.battered),0,r.z*this.manner.length*(1-lT*this.crowding))}standLike(e){this.mannerSeed=xT(e)+1,this.mannerStyle=null}keyManner(e){let t=bx[e],n=this.manner;if(this.mannerStyle=e,Object.assign(n,t,{lead:n.lead.copy(t.lead),rear:n.rear.copy(t.rear)}),this.mannerSeed===0)return;let r=e=>Math.abs(Math.sin(this.mannerSeed*(e*7.31+3.17))*43758.5453)%1*2-1;n.rise+=r(1)*.012,n.length*=1+r(2)*.05,n.width*=1+r(3)*.06,n.lead.y+=r(4)*.025,n.lead.z+=r(5)*.03,n.flare+=r(6)*.12,n.spring*=1+r(7)*.2,n.bob*=1+r(1)*r(4)*.4,n.rock*=1+r(2)*r(6)*.3}stepOfficialFeet(e,t,n,r,i){let a=t>Kw,o=n.x*Math.sin(i)+n.z*Math.cos(i),s=n.x*Math.cos(i)-n.z*Math.sin(i),c=0;a&&(o<-.35*t?this.backing=!0:o>-.05*t&&(this.backing=!1),c=this.backing?Math.atan2(-s,-o):Math.atan2(s,o)),this.strideYaw=aw(this.strideYaw,c,6,e);let l=1-Math.exp(-8*e);this.travel.x+=(s-this.travel.x)*l,this.travel.z+=(o-this.travel.z)*l;let u=this.scratch,d=this.scratchQ.setFromAxisAngle(XE,i+this.strideYaw),f=a?0:Math.sin(this.weightPhase*.17)>=0?.045:-.045,p=sw(.42/Math.max(t,.01),.22,.34),m=t*p*.4;for(let o=0;o<2;o+=1){let s=this.feet[o],c=o===0?1:-1;u.set(c*.15,0,c*f).applyQuaternion(d).add(r),u.y=0;let l=i+this.strideYaw*.85+c*.2;if(!this.feetInitialized){s.planted.copy(u),s.progress=1,s.stepping=!1,this.footYaw[o]=l;continue}let h=Math.atan2(Math.sin(this.footYaw[o]-l),Math.cos(this.footYaw[o]-l));if(!a&&Math.abs(h)>.8&&(this.footYaw[o]=l+Math.sign(h)*.8),s.stepping){s.progress=Math.min(1,s.progress+e/s.duration),this.footYaw[o]=ow(this.footYaw[o],l,14,e),s.progress>=1&&(s.stepping=!1,s.planted.copy(s.to));continue}let g=this.feet[1-o];if(g.stepping)continue;let _=u.x-s.planted.x,v=u.z-s.planted.z,y=Math.hypot(_,v),b=a?(_*n.x+v*n.z)/t:0;W.set(-c*.15,0,-c*f).applyQuaternion(d).add(r).sub(g.planted);let x=a?(W.x*n.x+W.z*n.z)/t:0;(a?b>(x>0?.05:Math.max(.05,m*.8))||y>m+.2:y>.085)&&(s.stepping=!0,s.progress=0,s.duration=a?sw((.22-x)/t,.16,p):y>.12?.2:.32,s.from.copy(s.planted),s.to.copy(u).addScaledVector(n,s.duration*1.6),s.to.y=0)}this.feetInitialized=!0}stepFeet(e,t,n,r,i,a){if(this.referee||this.squareWeight>.5){this.stepOfficialFeet(e,n,r,i,a);return}let o=this.scratch,s=this.scratchQ.setFromAxisAngle(XE,a),c=+(t>0),l=-1;n>mT&&(l=this.footPlace(0,t,o).applyQuaternion(s).dot(r)>=this.footPlace(1,t,o).applyQuaternion(s).dot(r)?0:1),l!==this.leadingFoot&&(this.leadingFoot=l,this.nextFoot=l);let u=l<0?c:l,d=Math.abs(a-this.steppedYaw)>vT*e;this.steppedYaw=a;for(let f=0;f<2;f+=1){let p=f===0?u:1-u,m=this.feet[p];if(this.footPlace(p,t,o).applyQuaternion(s).add(i),o.y=0,this.daze>.001&&this.stumble(p,o,a),!this.feetInitialized){m.planted.copy(o),m.progress=1,m.stepping=!1;continue}if(m.stepping){m.progress=Math.min(1,m.progress+e/m.duration),m.progress>=1&&(m.stepping=!1,m.planted.copy(m.to));continue}let h=this.feet[1-p],g=m.planted.distanceTo(o),_;if(l<0)_=g>(p===c||!d?hT:gT)*this.stepSlack&&!h.stepping;else{let e=!h.stepping||h.progress>=1-.6*sw((n-.4)/1,0,1),t=this.scratchD.subVectors(o,m.planted).dot(r)>0;_=this.nextFoot===p&&t&&g>_T*this.stepSlack&&e}_&&(m.stepping=!0,m.progress=0,m.duration=sw(.2-n*.05,.11,.2)*this.stepPace[p],m.from.copy(m.planted),m.to.copy(o).addScaledVector(r,m.duration*(p===l?1.3:1)),m.to.y=0,l>=0&&(this.nextFoot=1-p))}this.feetInitialized=!0}footWorld(e,t){let n=this.feet[e];if(!n.stepping)return t.copy(n.planted),0;let r=ax(n.progress,1.6);return t.copy(n.from).lerp(n.to,r),Math.sin(n.progress*Math.PI)*yT*this.stepLift[e]}update(e,t,n,r,i,a,o,s){let c=this.boxer,l=e.stance===`orthodox`?1:-1,u=i?.35:1,d=this.touchWalk(e,t,n,o);this.walkBackFromTheFall(n);let f=this.holdOnTheRopes(t,this.mapping.x(e.x)+d.x+this.riseRoot.x,this.mapping.z(e.y)+d.z+this.riseRoot.z),p=this.mapping.x(e.x)+d.x+this.riseRoot.x-f.x,h=this.mapping.z(e.y)+d.z+this.riseRoot.z-f.z;this.place.set(p,0,h),this.rootX===null&&(this.rootX=p,this.rootZ=h);let g=bD*Math.max(n,1/60);this.rootX+=sw(p-this.rootX,-g,g),this.rootZ+=sw(h-this.rootZ,-g,g);let _=Math.atan2(e.facing_x,-e.facing_y);this.yawInitialized||=(this.yaw=_,!0);let v=this.punchActive&&this.punchAgeTicks0?.12:1;let y=n*this.hitstopScale;this.punchActive&&this.hitstop>0&&(this.hitstopLag+=(n-y)*30),this.syncAction(e,t,o,y),this.debugHoldImpact||(this.boxer.headInjury.update(y),this.boxer.bodyInjury.update(y)),s!==void 0&&this.trackOpponentHead(t,s,n);let b=this.scratchB.set(this.mapping.x(e.velocity_x)*30,0,this.mapping.z(e.velocity_y)*30).add(this.touchVelocity).add(this.riseRootVelocity),x=b.length(),S=Math.hypot(b.x-this.riseRootVelocity.x,b.z-this.riseRootVelocity.z);this.lastSpeed=x,this.stillTime=x<.03?this.stillTime+n:0;let C=this.resting&&this.stillTime>.2&&this.downState===`up`;this.seated=aw(this.seated,+!!C,C?2.2:4,n);let w=this.resting&&this.stillTime>.05&&this.downState===`up`;w&&(this.stoolRoot.set(this.rootX,0,this.rootZ),this.stoolYaw=this.yaw),this.stool.group.visible=w||this.seated>Hw&&this.downState===`up`,this.stool.group.position.set(this.stoolRoot.x-this.rootX,0,this.stoolRoot.z-this.rootZ).add(this.scratch.set(0,0,.02).applyAxisAngle(XE,this.stoolYaw)).applyAxisAngle(XE,-this.yaw),this.stool.group.rotation.y=this.stoolYaw-this.yaw,this.celebrateTime=Math.max(0,this.celebrateTime-n),this.celebration=aw(this.celebration,+(this.celebrateTime>0&&this.downState===`up`),3.5,n),this.waveTime=Math.max(0,this.waveTime-n),this.wave=aw(this.wave,+(this.waveTime>0&&this.downState===`up`),4,n),this.breakTime=Math.max(0,this.breakTime-n),this.breakWeight=aw(this.breakWeight,+(this.breakTime>0&&this.downState===`up`),6,n),this.attendWeight=aw(this.attendWeight,+!!this.attending,2.5,n),this.mournWeight=aw(this.mournWeight,+(this.mood===`mourn`),2.5,n),this.cheerWeight=aw(this.cheerWeight,+(this.mood===`cheer`),2.5,n);let T=!this.referee&&(this.verdictSide!==0||this.resting||this.countdownTicks!==null&&this.countdownTicks>$w);this.squareWeight=aw(this.squareWeight,+!!T,3,n),this.raisedWeight=aw(this.raisedWeight,+(this.verdictSide!==0&&(this.verdict===`winner`||this.verdict===`level`)),3.2,n),this.bowedWeight=aw(this.bowedWeight,+(this.verdictSide!==0&&this.verdict===`loser`),2.2,n);for(let e of[0,1])this.wristWeights[e]=aw(this.wristWeights[e],this.wrists[e]===null?0:1,3.2,n);this.treatWeight=aw(this.treatWeight,+!!this.treating,3,n),this.windedTime=Math.max(0,this.windedTime-n);let E=this.fallKneel&&this.downState===`falling`;this.winded=aw(this.winded,this.windedTime>0&&this.downState===`up`||E?1:0,this.windedTime>0||E?12:4,n),this.enswell.group.visible=this.treatWeight>.4&&this.treatProp===`enswell`,this.bottle.group.visible=this.treatWeight>.4&&this.treatProp===`bottle`;let D=this.countdownTicks!==null&&this.countdownTicks<=Xw&&this.countdownTicks>=Zw;this.touchWeight=aw(this.touchWeight,+!!D,6,n);let O=e.stamina/Math.max(1,e.maximum_stamina);this.tired=aw(this.tired,sw((.55-O)/.5,0,1),2,n),this.stunAmount=aw(this.stunAmount,Math.min(1,e.stunned_ticks/24),8,n),c.updateFace(n,i,this.punchActive&&this.punchPower===`power`,this.tired,this.stunAmount,this.isDown);let k=e.defense;this.guardHigh=aw(this.guardHigh,+(k===`guard_high`),mD,n),this.guardLow=aw(this.guardLow,+(k===`guard_low`),mD,n),this.guardSpent=aw(this.guardSpent,+(e.guard0||e.clinch_startup_ticks>0),10,n),this.foulWeight=aw(this.foulWeight,+!!e.is_foul_recovery_target,8,n),this.tauntWeight=aw(this.tauntWeight,+(e.taunt_ticks>0),10,n);let ee=Math.hypot(this.mapping.x(t.x)-this.mapping.x(e.x),this.mapping.z(t.y)-this.mapping.z(e.y)),M=this.referee||e.is_downed||t.is_downed?0:1-rx(fw,gw,ee);this.crowding=aw(this.crowding,M,9,n);let te=this.referee||e.is_downed||t.is_downed?0:1-rx(sT,cT,ee);this.tight=aw(this.tight,te,9,n);let ne=1/0;if(this.hasLiveHead&&!this.referee&&this.downState===`up`){let e=this.boxer.rig.bones.head.getWorldPosition(this.ownHead),t=e.x-this.liveOpponentHead.x,r=e.z-this.liveOpponentHead.z,i=Math.hypot(t,r);if(ne=Math.hypot(t,e.y-this.liveOpponentHead.y,r),ne1e-4){let e=(pw-ne)/pw*hw*n,a=Math.cos(-this.yaw),o=Math.sin(-this.yaw);this.headSpace.x+=(t*a+r*o)/i*e,this.headSpace.y+=(-t*o+r*a)/i*e,this.headSpace.lengthSq()>1&&this.headSpace.normalize()}}if(ne>mw&&this.headSpace.multiplyScalar(Math.exp(-3*n)),this.tauntEnd=GE(this.tauntEnd,o,e.taunt_ticks>0?e.taunt_ticks:null),lw(this.headKick,n,190,7.5,.24),lw(this.torsoKick,n,150,7,.7),lw(this.rootKick,n,120,8,.12),lw(this.coverKick,n,110,15,.3),lw(this.armKick,n,55,6,.3),this.foldDelay>0&&(this.foldDelay-=n,this.foldDelay<=0&&(this.torsoKick.velocity.x+=this.pendingFold,this.pendingFold=0)),this.coverDelay>0&&(this.coverDelay-=n,this.coverDelay<=0&&(this.coverKick.velocity.x+=this.pendingCover,this.pendingCover=0)),this.liverDelay>0&&(this.liverDelay-=n,this.liverDelay<=0&&(this.rootKick.velocity.y-=1.4*this.pendingLiver,this.torsoKick.velocity.x+=2.6*this.pendingLiver,this.torsoKick.velocity.z+=1.6*this.pendingLiver,this.pendingLiver=0)),this.handsDrop=Math.max(0,this.handsDrop-n*1.5),e.guard_broken&&!this.guardWasBroken&&(this.handsDrop=1,this.guardKick=1.2),this.guardWasBroken=e.guard_broken,this.stunAmount>.25&&this.downState===`up`&&!this.referee){if(this.rockedTime===0&&(this.rockedPhase=this.hurtRandom()*Math.PI*2,this.nextLurch=.1+this.hurtRandom()*.2),this.rockedTime+=n,this.rockedTime>=this.nextLurch){let e=this.stunAmount;this.rootKick.velocity.x+=(this.hurtRandom()-.5)*1.4*e,this.rootKick.velocity.z+=(this.hurtRandom()-.6)*1.2*e,this.rootKick.velocity.y-=this.hurtRandom()*.9*e,this.torsoKick.velocity.z+=(this.hurtRandom()-.5)*1.5*e,this.nextLurch=this.rockedTime+.3+this.hurtRandom()*.5}}else this.stunAmount<.02&&(this.rockedTime=0);this.guardKick=Math.max(0,this.guardKick-n*2.4),this.ragdoll?.tick(n),this.updateDownState(e,n,i,S),this.stepDeath(n),this.stepInjuries(n),this.idleSeed<0&&(this.idleSeed=xT(e.player_id),this.bouncePhase=this.idleSeed*19,this.weightPhase=this.idleSeed*43,this.breathPhase=this.idleSeed*71);let re=this.idleSeed;e.style!==this.mannerStyle&&this.keyManner(e.style);let ie=this.manner;this.battered=aw(this.battered,sw((e.trauma.head+e.trauma.body-dT)/fT,0,1),1.5,n);let ae=this.battered,oe=r*(.93+re*.14)+re*37,se=(2.1-this.tired*.8)*(1-this.stunAmount*.6)*(.94+re*.12)*ie.tempo;if(this.bouncePhase+=n*se*Math.PI*2*u,this.weightPhase+=n*(.42+re*.1)*Math.PI*2*u,this.breathPhase+=n*(.3+this.tired*.75)*Math.PI*2,this.stunPhase+=n*5.5,this.feintTimer-=n,this.pawAge+=n,this.feintTimer<=0&&!this.punchActive&&x<1&&this.downState===`up`){this.pawCount+=1;let e=Math.abs(Math.sin(this.pawCount*12.9898+re*78.233)*43758.5453)%1;this.feintTimer=e<.3?bT*1.2:1.4+e*2.6,this.pawAge=0}let ce=this.pawAge/bT,le=ce<1?Math.sin(Math.PI*.5*(rx(0,.4,ce)+rx(.4,1,ce))):0,ue=this.referee?0:le*ie.paw*(1-.7*this.tight)*(1-.6*this.tired)*(1-this.stunAmount)*(1-ae)*sw(1-this.guardHigh-this.guardLow,0,1)*u,de=this.referee?0:(1-this.stunAmount)*(1-.6*this.tired)*(1-.7*ae)*(x>.6?.5:1)*ie.spring,fe=Math.sin(this.bouncePhase)*(.7+.3*Math.sin(oe*.83+1.7))*de,pe=Math.sin(this.bouncePhase*.5+.6)*de*ie.rock,me=Math.sin(this.breathPhase)*(1+2*this.tired);this.breath=me;let he=this.scratchC.set(this.rootX,0,this.rootZ);(this.downState===`up`||this.downState===`rising`)&&this.stepFeet(n,l,x,b,he,this.yaw);let ge=Math.cos(this.yaw),_e=Math.sin(this.yaw);this.walkLean.x=aw(this.walkLean.x,sw((b.x*ge-b.z*_e)*.03,-.04,.04),8,n),this.walkLean.y=aw(this.walkLean.y,sw((b.x*_e+b.z*ge)*.03,-.04,.04),8,n);let ve=this.scratchQ.setFromAxisAngle(XE,-this.yaw),ye=l>0?this.foot.L:this.foot.R,be=l>0?this.foot.R:this.foot.L,xe=l>0?0:1,Se=+(l>0),Ce=this.footWorld(xe,ye.position),we=this.footWorld(Se,be.position);ye.position.sub(he).applyQuaternion(ve),be.position.sub(he).applyQuaternion(ve);let N=this.boxer.rig.metrics.ankleHeight;ye.position.y=N+Ce,be.position.y=N+we,xx(vx.leadToe,l,ye.toe),xx(vx.rearToe,l,be.toe);let Te=sw(this.tired*.6+this.stunAmount+ae*.6,0,1),Ee=(Ce+we)*3;ye.heel=Math.max(0,vx.leadHeel+(ie.heel-1)*.12)+(.5+.5*fe)*.09*de+Math.max(0,-pe)*.06+Ee,be.heel=vx.rearHeel*ie.heel*(1-.7*Te)+(.5+.5*fe)*.07*de+Math.max(0,pe)*.07+Ee,this.referee&&(ye.heel=be.heel=Ee),ye.pole.copy(ye.toe).setY(.35).normalize(),be.pole.copy(be.toe).setY(.35).normalize();let P=this.torso,F=vx.bladeYaw*l,De=fe*.013,Oe=(Math.sin(this.weightPhase)*.018+Math.sin(oe*.31+2.2)*.008)*u*(.5+.5*ie.bob),ke=.012+this.tired*.03+this.stunAmount*.05+ae*.025;P.hips.set(Oe*l+Math.sin(this.stunPhase*.9)*.05*this.stunAmount+this.walkLean.x,vx.hipsHeight+ie.rise-ke+De+me*.002,pe*.018+this.walkLean.y+ie.weight),P.hipsYaw=F,P.hipsPitch=.02+this.tired*.08,P.hipsRoll=Math.sin(this.stunPhase)*.09*this.stunAmount,P.shouldersYaw=F*vx.shoulderBlade;let Ae=(vx.lean+ie.lean)*(1-.5*this.tight);P.spinePitch=vx.hunch+Ae*Math.cos(F)+this.tired*.16+ae*.06-me*.012+this.walkLean.y,P.spineRoll=Ae*Math.sin(F)+Math.sin(this.stunPhase*1.3)*.06*this.stunAmount-this.walkLean.x+(Math.sin(oe*.61+2)*.018+Math.sin(oe*1.43)*.008)*u*ie.bob,P.headYaw=-.12*l+Math.sin(oe*.9)*.05+Math.sin(this.stunPhase*.7)*.25*this.stunAmount,P.headPitch=vx.chinTuck+Math.sin(oe*1.7)*.02+this.stunAmount*.18+ae*.2*(1-this.punchCommit),P.headRoll=Math.sin(this.stunPhase*1.1)*.14*this.stunAmount,P.headOffset.set(0,0,0);let je=l>0?this.hand.L:this.hand.R,Me=l>0?this.hand.R:this.hand.L,Ne=this.headRestChar(l),Pe=sw(this.guardHigh+this.guardLow,0,1),Fe=1-this.crowding,Ie=this.scratch.copy(vx.relaxedLead).lerp(vx.tightLead,this.tight);Ie.x+=ie.lead.x*Fe,Ie.y+=ie.lead.y*Fe,Ie.z+=ie.lead.z*Fe*(1-this.tight*(1-ie.shell)),Ie.lerp(vx.guardHighLead,this.guardHigh).lerp(vx.guardLowLead,this.guardLow);let Le=this.scratchB.copy(vx.relaxedRear).lerp(vx.tightRear,this.tight).addScaledVector(ie.rear,Fe).lerp(vx.guardHighRear,this.guardHigh).lerp(vx.guardLowRear,this.guardLow);Ie.y-=this.tired*.12+this.stunAmount*.22+ae*.06,Le.y-=this.tired*.1+this.stunAmount*.2+ae*.05,Ie.y-=this.guardSpent*oT,Le.y-=this.guardSpent*oT,Ie.z-=this.guardSpent*.04,Le.z-=this.guardSpent*.03,Ie.z+=ue*.11+Math.sin(oe*2.3)*.012*u,Ie.x+=Math.sin(oe*1.9)*.01*u,Ie.y+=ue*.02+Math.sin(oe*1.27+1)*.008*u+me*.004,Le.y+=Math.cos(oe*2.7)*.006*u+me*.004,Le.x+=Math.sin(oe*1.13+2)*.004*u,Ie.z-=this.guardKick*.07,Le.z-=this.guardKick*.05,Ie.y-=this.guardKick*.02,Ie.add(Ne),Le.add(Ne),je.position.set(Ie.x*l,Ie.y,Ie.z),Me.position.set(Le.x*l,Le.y,Le.z),xx(vx.leadKnuckles,l,je.knuckles),xx(vx.leadPalm,l,je.palm),xx(vx.rearKnuckles,l,Me.knuckles),xx(vx.rearPalm,l,Me.palm),xx(vx.leadPole,l,je.pole),xx(vx.rearPole,l,Me.pole),je.pole.x*=1-.6*this.tight;let Re=Fe*(1-Pe);if(je.pole.x+=ie.flare*l*Re,Me.pole.x-=ie.flare*l*Re,ie.shell>0){let e=ie.shell*Re;je.knuckles.lerp(this.scratchD.set(-.8*l,.1,.6),e).normalize(),je.palm.lerp(this.scratchD.set(-.3*l,.35,-.9),e).normalize(),je.pole.lerp(this.scratchD.set(.5*l,-.8,-.35),e).normalize()}P.shouldersYaw+=F*.07*ue;let ze=vx.leadShrug+(.6-vx.leadShrug)*Pe+me*.12+ue*.2+ie.shrug*Re,Be=vx.rearShrug+(.5-vx.rearShrug)*Pe+me*.12+Math.min(0,ie.shrug)*Re;if(Pe>.001&&(je.pole.lerp(xx(vx.guardHighLeadPole,l,this.scratch),this.guardHigh).lerp(xx(vx.guardLowLeadPole,l,this.scratch),this.guardLow).normalize(),Me.pole.lerp(xx(vx.guardHighRearPole,l,this.scratch),this.guardHigh).lerp(xx(vx.guardLowRearPole,l,this.scratch),this.guardLow).normalize(),je.knuckles.lerp(xx(vx.guardKnuckles,l,this.scratch),Pe).normalize(),Me.knuckles.lerp(xx(vx.guardKnuckles,-l,this.scratch),Pe).normalize(),je.palm.lerp(xx(vx.guardPalm,l,this.scratch),Pe).normalize(),Me.palm.lerp(xx(vx.guardPalm,-l,this.scratch),Pe).normalize(),P.hips.y-=.03*this.guardHigh+.08*this.guardLow,P.spinePitch+=.05*this.guardHigh+.2*this.guardLow,P.headPitch+=.08*Pe),this.hurt&&this.applyHurtStance(r,l,je,Me,Ne),Math.abs(this.slip)>.001||this.weave>.001||this.pull>.001){let e=P.hips.x,t=P.hips.y,n=P.hips.z,r=P.spinePitch,i=P.spineRoll,a=P.shouldersYaw,o=this.slip;P.shouldersYaw+=o*.22,P.hipsYaw+=o*.1,this.leanHead(o*.18,0),P.hips.x+=o*.05,P.hips.y-=Math.abs(o)*.04;let s=this.weave,c=sw(this.weaveTime/hD,0,1),u=Math.sin(c*Math.PI),d=s*(1-2*c)*l;P.hips.y-=s*(.08+.14*u),P.hips.x+=d*.04,this.leanHead(d*.14,s*(.04+.06*u));let f=this.pull;P.hips.z-=f*.1,P.hips.y-=f*.03,this.leanHead(0,-f*.2),P.headPitch-=f*.06;let p=this.headTravel(this.scratch,e,t,n,r,i,a);je.position.add(p),Me.position.add(p)}this.punchCommit=aw(this.punchCommit,+!!this.punchActive,10,n);let Ve=this.crowding*(1-this.clinchWeight)*(1-this.punchCommit);if(Ve>.001&&(P.headOffset.x-=Ve*.075,P.headOffset.z-=Ve*.04,P.headYaw-=Ve*.2,P.spinePitch-=Ve*.07,P.hips.z-=Ve*.05,je.position.z-=Ve*.14,je.position.x-=Ve*.035*l,Me.position.z-=Ve*.07),Math.abs(this.headSpace.x)+Math.abs(this.headSpace.y)>.001){let e=this.headSpace.x,t=this.headSpace.y,n=1-this.clinchWeight;P.spinePitch+=t*.7*n,P.spineRoll-=e*.7*n,P.hips.z+=t*.1*n,P.hips.x+=e*.05*n,P.headOffset.x+=e*.05,P.headOffset.z+=t*.05,P.headPitch+=t*.2,P.headRoll-=e*.3}if(this.ropeLean=aw(this.ropeLean,this.referee||this.downState!==`up`?0:this.ropeLeanTarget,Tw,n),this.ropeLean>.001){let e=this.ropeLocal.copy(this.ropeOutward).applyAxisAngle(XE,-this.yaw);P.hipsPitch+=e.z*Cw*this.ropeLean,P.hipsRoll-=e.x*ww*this.ropeLean}if(this.referee||this.applyReactions(je,Me,ye,be),this.punchActive){let e=this.applyPunch(l,je,Me,ye,be,Ne);this.punchReach=e,this.punchHand===`left`==l>0?ze=Math.max(ze,e):Be=Math.max(Be,e)}if(this.referee&&(ze=Be=this.applyRefereePose(l,je,Me,ye,be,r,o,n,e.stunned_ticks),this.applyReactions(je,Me,ye,be)),this.clinchWeight>.001&&this.applyClinchPose(this.clinchWeight,r,l,e,t,je,Me,Ne),this.foulWeight>.001){let e=this.foulWeight;P.hips.y-=e*.16,P.spinePitch+=e*.55,P.headPitch+=e*.2,je.position.lerp(this.scratch.set(.06*l,.72,.16),e),Me.position.lerp(this.scratch.set(-.05*l,.7,.14),e),je.pole.set(.6*l,-.6,.5),Me.pole.set(-.6*l,-.6,.5)}if(this.tauntWeight>.001){let e=this.tauntEnd===null?0:sw(this.tauntEnd-o,0,iT);this.applyTauntPose(this.tauntWeight,(iT-e)/iT*aT,l,je,Me,Ne)}if(this.dislocation===`shoulder_left`||this.dislocation===`shoulder_right`){let e=this.dislocation===`shoulder_left`?this.hand.L:this.hand.R,t=this.dislocation===`shoulder_left`?1:-1;e.position.set(.24*t,.55,.05),e.pole.set(.9*t,-.3,.2),e.knuckles.set(0,-1,.1),e.palm.set(-t,0,.2)}this.winded>.001&&(this.downState===`up`||E)&&this.applyWindedPose(this.winded,r,l,je,Me),this.hurt&&this.downState===`up`&&this.applyHurtActs(r,l,ye,be),this.touchWeight>.001&&this.downState===`up`&&this.applyTouchGlovesPose(this.touchWeight,l,je,Me),this.celebration>.001&&this.downState===`up`&&this.applyCelebratePose(this.celebration,r,l,je,Me,ye,be),this.wave>.001&&this.downState===`up`&&this.applyWaveOffPose(this.wave,r,l,je,Me),this.squareWeight>.001&&this.downState===`up`&&(this.applyVerdictPose(this.squareWeight,r,l,je,Me,ye,be,Ne),ye.heel*=1-this.squareWeight,be.heel*=1-this.squareWeight,ze=L.lerp(ze,this.breath*.15,this.squareWeight),Be=L.lerp(Be,this.breath*.15,this.squareWeight)),(this.wristWeights[0]>.001||this.wristWeights[1]>.001)&&this.downState===`up`&&this.applyRaisePose(l,je,Me),this.breakWeight>.001&&this.downState===`up`&&this.applyBreakPose(this.breakWeight,l,je,Me),this.attendWeight>.001&&this.downState===`up`&&this.applyAttendPose(this.attendWeight,r,l,je,Me),this.treatWeight>.001&&this.downState===`up`&&this.applyTreatPose(this.treatWeight,r,l,je,Me,ye,be),this.seated>.001&&this.downState===`up`&&this.applySeatedPose(this.seated,r,l,je,Me,ye,be),this.downState!==`up`&&this.applyDownPose(l,je,Me,ye,be),this.steadyJointPoles(l,je,Me,ye,be,n),ke=0;let He=this.pose;He.shrugL=l>0?ze:Be,He.shrugR=l>0?Be:ze;let Ue=this.ragdoll;if(Ue?.active===!0&&i&&(Ue.stop(),Ue.clearRise()),Ue?.active===!0&&!Ue.handingOver)Ue.setLost(c.isDecapitated,c.isHandDismembered(`left`),c.isHandDismembered(`right`)),Ue.update(n,this.obstacle),this.hurt&&this.dropDangles();else{if(this.solver.apply(c.root,this.pose),Ue?.handingOver===!0)Ue.followPose(n,this.obstacle),this.riseProgress>=kw&&Ue.handOverSeconds>=Rw&&(Ue.letGo(),this.riseBlendAge=0);else if(Ue!==null&&Ue.hasRisePose){let e=rx(0,Lw,this.riseBlendAge);e<1&&this.downState!==`up`?Ue.blendRise(e):Ue.clearRise()}this.hurt&&this.dangleArms(n),Ue?.sample(n)}this.applyDislocation();let We=Math.min(1,(t.trauma.bleeding+t.trauma.left_cut+t.trauma.right_cut+t.trauma.head/4)/300*(a===`off`?0:a===`reduced`?.15:1.5));c.setGloveBlood(We),c.setTrunksBlood(u_(e.trauma,a)),l_(c.headInjury,e.trauma,a),d_(c.bodyInjury,e.trauma,a),c.setSkinClearcoat(.25+(1-O)*.4),this.laidOut=!1}applyTauntPose(e,t,n,r,i,a){let o=this.torso,s=.5-.5*Math.cos(t*Math.PI*2);i.position.lerp(this.scratch.set(-.3*n,a.y-.62,.02),e),i.pole.lerp(this.scratch.set(-.5*n,-.4,-.75),e).normalize(),i.knuckles.lerp(this.scratch.set(-.1*n,-.95,.3),e).normalize(),i.palm.lerp(this.scratch.set(0,.3,.95),e).normalize(),r.position.lerp(this.scratch.set(.26*n,a.y-.36+s*.1,.52-s*.24),e),r.pole.lerp(this.scratch.set(.7*n,-.7,.1),e).normalize(),r.knuckles.lerp(this.scratch.set(.1*n,.25+s*.6,.95-s*.7),e).normalize(),r.palm.lerp(this.scratch.set(-.2*n,.95,-.2-s*.5),e).normalize(),o.spinePitch-=e*.12,o.headPitch-=e*.22,o.headYaw+=Math.sin(t*Math.PI)*.15*e,o.shouldersYaw+=Math.sin(t*Math.PI*3)*.1*e,o.hips.x+=Math.sin(t*Math.PI)*.03*e*n,o.headOffset.z+=e*.03}applyClinchPose(e,t,n,r,i,a,o,s){let c=this.torso,l=r.player_idy&&(h.x*=y/v,h.z*=y/v),h.x+=o,h.z+=u,t.position.lerp(h,e),t.pole.lerp(this.clinchTemp.set(r*.85,l?.35:-.6,.25),e).normalize(),t.knuckles.lerp(this.clinchTemp.set(-p*r*.9+f.x*.3,l?-.25:.1,-m*r*.9+f.z*.3),e).normalize(),t.palm.lerp(this.clinchTemp.set(-f.x,l?.1:.35,-f.z),e).normalize()}}holdOnTheRopes(e,t,n){if(this.referee)return this.ropeLeanTarget=0,this.ropeHold.set(0,0,0);this.ropeLeanTarget=Ew(t,n,this.ropeExcess,this.ropeOwn);let r=Math.hypot(this.ropeExcess.x,this.ropeExcess.z);r>0&&this.ropeOutward.set(this.ropeExcess.x/r,0,this.ropeExcess.z/r);let i=this.mapping.x(e.x),a=this.mapping.z(e.y);Ew(i,a,this.ropeTheirs,this.ropeTheirs);let o=1-rx(yw,bw,Math.hypot(i-t,a-n));return this.ropeHold.set(Dw(this.ropeOwn.x,this.ropeTheirs.x*o),0,Dw(this.ropeOwn.z,this.ropeTheirs.z*o))}headRestChar(e){let t=this.boxer.rig.metrics;return this.headWorld.set(-.08,t.headHeight-t.hipsHeight+this.torso.hips.y,.02)}syncAction(e,t,n,r){this.shownFighter=e,this.shownOpponent=t;let i=this.ownQueued;if(i!==null&&e.action_id===i.action.id&&(this.ownQueued=null,this.retirePunch(),this.startOwnPunch(i),this.ownPress=!1),e.action_id!==null&&e.action_id!==this.actionId&&e.action_id!==this.completedActionId&&!this.retiredOwnIds.includes(e.action_id)){let t=e.action;if(t!==null){let r=e.action_hand??(e.stance===`orthodox`?`left`:`right`),i=this.ownActionId===e.action_id&&this.punchActive,a=this.punchTiming;this.actionId=e.action_id,this.punchClass=t,this.punchHand=r,this.punchTarget=e.action_target??`head`,this.punchPower=e.action_power??`normal`,this.punchTiming={...se(this.punchClass,this.punchTarget,this.punchPower),startup:e.action_startup_ticks,active:e.action_active_ticks,recovery:e.action_recovery_ticks},this.punchTotalTicks=Math.max(1,e.action_startup_ticks+e.action_active_ticks+e.action_recovery_ticks);let o=Math.max(0,n-e.action_start_tick);i?(this.punchAgeTicks=yD(this.punchAgeTicks,a,this.punchTiming),this.ownAuthoritativeAge=o,this.ownRefused||(this.ownPulled=!1,this.ownCut=!1,o-this.punchAgeTicks>1&&(this.punchAgeTicks=o))):(this.punchAgeTicks=o,this.ownActionId=null,this.ownPress=!1,this.ownLeadTicks=0,this.ownAuthoritativeAge=null),this.ownWaitedTicks=0,this.punchActive=!0}}if(e.action_id===null)this.actionId=null,this.completedActionId=null;else if(e.action_id===this.actionId&&this.punchActive){let t=Math.max(0,n-e.action_start_tick);this.ownActionId===this.actionId?(this.ownAuthoritativeAge=t,!this.ownPulled&&t-this.punchAgeTicks-this.hitstopLag>1.5&&(this.punchAgeTicks=t)):Math.abs(this.punchAgeTicks+this.hitstopLag-t)>1.5&&(this.punchAgeTicks=t,this.hitstopLag=0)}if(this.punchActive&&this.ownActionId!==null&&this.ownAuthoritativeAge===null&&!this.ownPulled&&!this.ownCut&&(this.ownWaitedTicks+=r*30,this.ownWaitedTicks>this.ownExpectedTicks*1.5+QE&&(this.ownPress?!this.ownStarted:this.punchAgeTicks=e,n=this.hitstop>0?0:Math.min(this.hitstopLag,r*30*tD);this.hitstopLag-=n,this.punchAgeTicks+=r*30*(t?eD:this.ownPunchRate())+n,this.ownPress&&this.ownActionId!==null&&!this.ownCut&&this.punchAgeTicks>=this.punchTiming.startup&&this.pressesLanded.at(-1)!==this.ownActionId&&(this.pressesLanded.push(this.ownActionId),this.pressesLanded.length>6&&this.pressesLanded.shift()),this.punchAgeTicks>=this.punchTotalTicks&&this.retirePunch()}e.is_downed&&(this.punchActive&&this.retirePunch(),this.ownQueued=null),this.releaseQueuedPress(r);let a=this.actionId??this.ownActionId;a!==this.aimActionId&&(this.aimActionId=a,this.followHead=0),this.followHead=aw(this.followHead,+(a!==null&&a===this.contactId),_D,r),this.followReferee=aw(this.followReferee,+(a!==null&&a===this.refereeContactId),_D,r)}trackOpponentHead(e,t,n){let r=this.guardOpponentHead.set(this.mapping.x(e.x),0,this.mapping.z(e.y));this.opponentSteadySeconds=pD.has(e.defense)?0:this.opponentSteadySeconds+n,(!this.hasLiveHead||this.opponentSteadySeconds>=gD)&&this.opponentHeadOffset.copy(t).sub(r),r.add(this.opponentHeadOffset),this.liveOpponentHead.copy(t),this.hasLiveHead=!0}ownPunchRate(){if(this.ownActionId===null||this.ownPress)return 1;let e=this.punchTiming.startup,t=this.ownAuthoritativeAge;return t===null?this.punchAgeTicks0,_=g?t:n,v=g?n:t,y=(g?1:-1)*e,b=+(this.punchPower===`power`),x=+(this.punchTarget===`body`),S,C,w,T=1,E=1,D=0,O=1,k=1,A=0,j=0;if(ue&&Ne.set(Ne.x*e/t,Ne.y,Ne.z*e/t),Ne.add(ke)}else Ne.multiplyScalar(Math.min(1,je/Math.max(1e-6,n))).add(ke)}if(pe>i.heel&&(i.heel+=(pe-i.heel)*O),me>r.heel&&(r.heel+=(me-r.heel)*O),ge>0){let t=this.scratchQ.setFromAxisAngle(XE,-ge*e*O);r.toe.applyQuaternion(t),r.pole.applyQuaternion(t)}if(he>0){let t=this.scratchQ.setFromAxisAngle(XE,he*e*O);i.toe.applyQuaternion(t),i.pole.applyQuaternion(t)}let Fe=this.scratchE;switch(m){case`hook`:Fe.set((.1+.03*b)*y,-.05,-.06);break;case`uppercut`:Fe.set(.03*y,-.26,-.04);break;case`straight`:Fe.set(.02*y,-.02,-.04-.05*b);break;default:Fe.set(0,-.01,-.02-.07*b)}Fe.y-=.05*b,Fe.z-=(h?.07:.12)*b;let Ie=this.punchStart.copy(re).addScaledVector(Fe,Math.max(C,h?(1-M)*.6*T:0)),Le=j*this.punchMiss;if(m===`hook`){let e=Math.hypot(Ie.x-ke.x,Ie.z-ke.z),t=Math.hypot(Ne.x-ke.x,Ne.z-ke.z),n=this.punchSweepFrom.copy(Ie).sub(ke).setY(0).normalize(),r=this.punchSweepTo.copy(Ne).sub(ke).setY(0).normalize(),i=Math.acos(sw(n.dot(r),-1,1)),a=n.z*r.x-n.x*r.z>=0?1:-1,o=rx(0,1,M),s=n.applyAxisAngle(XE,(i*o+.5*Le)*a).normalize();_.position.copy(ke).addScaledVector(s,L.lerp(e,t,o)),_.position.y=L.lerp(Ie.y,Ne.y,o),_.pole.set(.9*y,.2+.5*(1-x),.25).normalize(),_.knuckles.copy(s).applyAxisAngle(XE,a*Math.PI/2).setY(.05).normalize(),_.palm.set(0,-1,0)}else if(m===`uppercut`){let e=rx(0,1,M),t=this.punchMid.set(Ie.x+(Ne.x-Ie.x)*.6,Math.min(Ie.y,Ne.y-.12),Ie.z+(Ne.z-Ie.z)*.75);_.position.copy(Ie).multiplyScalar((1-e)*(1-e)).addScaledVector(t,2*(1-e)*e).addScaledVector(Ne,e*e),_.position.y+=.05*A+.14*Le,_.pole.set(.3*y,-1,-.1).normalize(),_.knuckles.set(.05*y,.9,.35).normalize(),_.palm.set(-.2*y,.3,-.95).normalize()}else{_.position.copy(Ie).lerp(Ne,Math.min(1,M)).addScaledVector(Ae,.14*Le),_.position.y+=Math.sin(sw(M,0,1)*Math.PI)*.025,_.pole.set(.55*y,-.9,.35);let e=rx(.55,1,M);_.knuckles.copy(Ae).lerp(this.scratchC.set(.1*y,.55,.8),1-e).normalize(),_.palm.set(-.9*y,.2,-.3).lerp(this.scratchC.set(0,-1,.1),e).normalize()}if(te>0&&(_.position.lerp(re,te),_.knuckles.lerp(ie,te).normalize(),_.palm.lerp(ae,te).normalize(),_.pole.lerp(oe,te).normalize()),E<1){let e=(1-_.pole.dot(oe)/Math.max(1e-6,_.pole.length()*oe.length()))/2,t=Math.sin(Math.PI*E);_.knuckles.lerp(ie,1-E).normalize(),_.palm.lerp(ae,1-E).normalize(),_.pole.lerp(oe,1-E).addScaledVector(this.scratchC.set(y,0,0),vD*e*t*t).normalize()}let Re=this.scratchE.set(-.11*y,a.y-.13,.13+a.z);v.position.lerp(Re,Math.max(k,ee)*.8).add(this.headTravel(this.scratchC,ye,be,xe,Se,Ce,we));let ze=this.hasLiveHead?rx(.08,.2,this.guardOpponentHead.distanceTo(this.liveOpponentHead))*(1-this.followHead):0;return this.punchMiss=Math.max(rx(.02,.12,Pe),ze),ee}hurtRandom(){return this.hurtSeed=Math.imul(this.hurtSeed,1664525)+1013904223>>>0,this.hurtSeed/4294967296}applyReactions(e,t,n,r){let i=this.torso,a=this.headKick.value;i.headOffset.addScaledVector(a,.4),this.leanHead(a.x*.6,a.z*.6),i.headPitch+=a.z*2.6-a.y*2,i.headYaw+=a.x*2.6,i.headRoll+=-a.x*1.1,i.shouldersYaw+=this.torsoKick.value.y,i.hipsYaw+=this.torsoKick.value.y*.4,i.spinePitch+=this.torsoKick.value.x,i.spineRoll+=this.torsoKick.value.z*.5,i.hips.x+=this.rootKick.value.x,i.hips.z+=this.rootKick.value.z,i.hips.y-=Math.max(0,this.torsoKick.value.x)*.08,this.torsoKick.value.x>.05&&(e.position.y-=this.torsoKick.value.x*.25,t.position.y-=this.torsoKick.value.x*.2,e.position.z-=this.torsoKick.value.x*.1);let o=Math.max(0,this.rootKick.value.y);i.hips.y+=this.downState===`up`?this.rootKick.value.y:o,n.heel+=o*6,r.heel+=o*6;let s=this.coverKick.value.x;if(Math.abs(s)>.002){let e=s>0?this.hand.R:this.hand.L;e.position.y-=Math.abs(s)*.9,e.position.x+=s*.2,e.position.z-=Math.abs(s)*.25,e.pole.y-=Math.abs(s)*3}let c=this.hand.L.position,l=this.hand.R.position;c.add(this.armKick.value),l.addScaledVector(this.armKick.value,.8);let u=rx(0,1,this.handsDrop);c.set(c.x+.07*u,c.y-.24*u,c.z-.04*u),l.set(l.x-.07*u,l.y-.22*u,l.z-.03*u),i.hips.y-=this.guardKick*.02;let d=this.downState===`up`&&!this.referee?this.stunAmount:0;if(d>.01){let e=this.rockedTime,t=this.rockedPhase,n=Math.max(0,Math.sin(e*3.3+t)*Math.sin(e*1.9+t*1.7)),r=.5+.5*Math.sin(e*1.1+t*1.7);i.hips.y-=d*(.02+.08*n),i.hips.x+=d*.04*Math.sin(e*2.1+t*2.9),i.hips.z+=d*.03*Math.sin(e*1.3+t),i.headRoll+=d*.2*Math.sin(e*2.1+t*2.9-1.1),i.headPitch+=d*.1*Math.sin(e*1.3+t-.9),c.set(c.x+d*.07*r,c.y-d*.05*r,c.z),l.set(l.x-d*.07*r,l.y-d*.08*(1-r),l.z)}}legRoom(e,t){let n=this.torso,r=e.position.x-n.hips.x-t*$b.x*Math.cos(n.hipsYaw),i=e.position.z-n.hips.z+t*$b.x*Math.sin(n.hipsYaw);return e.position.y+Math.sqrt(Math.max(.04,Gw*Gw-r*r-i*i))-$b.y}applyRefereePose(e,t,n,r,i,a,o,s,c=0){let l=this.torso,u=L.lerp,d=this.countWeight=aw(this.countWeight,+!!this.refereeCounting,5,s),f=Math.sin(a*.7)*.08,p=this.refereeCounting?.75:.06;if(this.breakAimed){let e=W.copy(this.watching?this.watchPoint:this.breakFighters[Math.sin(this.weightPhase*.32)+Math.sin(this.weightPhase*.125)>0?0:1]);this.watching||(e.y=qw-.1),e.x-=this.rootX??0,e.z-=this.rootZ,e.applyAxisAngle(XE,-this.yaw),f=sw(Math.atan2(e.x,e.z),-1,1)*.85,p=sw(Math.atan2(qw-e.y,Math.hypot(e.x,e.z)),-.2,.85)}this.gazeYaw=aw(this.gazeYaw,f,6,s),this.gazePitch=aw(this.gazePitch,p,6,s);let m=d*rx(.2,.6,this.gazePitch),h=Math.sin(a*1.6),g=Math.sin(this.weightPhase*.35)*.02+Math.sin(this.weightPhase*.9+1)*.006,_=Math.hypot(this.travel.x,this.travel.z),v=Math.min(1,_/.4);l.hipsYaw=this.strideYaw*.7,l.shouldersYaw=this.strideYaw*.2+this.gazeYaw*.25,l.hipsPitch=.04+m*.2,l.hipsRoll=0,l.spinePitch=.1+h*.008+sw(this.travel.z,-1,1.5)*.04+d*.06+m*.3,l.spineRoll=-g*.6-this.travel.x*.03,l.headYaw=this.gazeYaw,l.headPitch=.04+this.gazePitch,l.headRoll=0,l.hips.set(g,0,-m*.1);let y=this.footYaw[e>0?0:1]-this.yaw,b=this.footYaw[+(e>0)]-this.yaw;r.toe.set(Math.sin(y),0,Math.cos(y)),i.toe.set(Math.sin(b),0,Math.cos(b)),r.pole.copy(r.toe).setY(.3).normalize(),i.pole.copy(i.toe).setY(.3).normalize();let x=_>.001?v/_:0;r.heel=sw((-(r.position.x*this.travel.x+r.position.z*this.travel.z)*x-.08)*3.5,0,.75),i.heel=sw((-(i.position.x*this.travel.x+i.position.z*this.travel.z)*x-.08)*3.5,0,.75);let S=((r.position.x-i.position.x)*this.travel.x+(r.position.z-i.position.z)*this.travel.z)*(x/Math.max(_,.001))*.1;l.hips.y=Math.max(Ww-.14,Math.min(Ww-m*.05,this.legRoom(r,e),this.legRoom(i,-e)));let C=l.hips.y+.24+h*.004;if(t.position.set(.16*e-this.travel.x*S,C,.3-this.travel.z*S),n.position.set(-.16*e+this.travel.x*S,C-.015,.28+this.travel.z*S),t.pole.set(.7*e,-.5,-.5).normalize(),n.pole.set(-.7*e,-.5,-.5).normalize(),t.knuckles.set(-.35*e,.05,.9).normalize(),n.knuckles.set(.35*e,.05,.9).normalize(),t.palm.set(-.65*e,-.75,.05).normalize(),n.palm.set(.65*e,-.75,.05).normalize(),d>.001){if(this.refereeCounting){this.countChangedTick??=o;let e=sw((o-this.countChangedTick)/ee,0,1);this.countPump=e.001&&(l.spinePitch=u(l.spinePitch,-.04,w),t.position.lerp(W.set(.32*e,l.hips.y+.6,.2),w),n.position.lerp(W.set(-.32*e,l.hips.y+.6,.2),w),t.knuckles.lerp(W.set(.1*e,1,.1),w).normalize(),n.knuckles.lerp(W.set(-.1*e,1,.1),w).normalize(),t.palm.lerp(W.set(0,.1,1),w).normalize(),n.palm.lerp(W.set(0,.1,1),w).normalize(),t.pole.lerp(W.set(.6*e,-.8,-.1),w).normalize(),n.pole.lerp(W.set(-.6*e,-.8,-.1),w).normalize()),c>0){let r=Math.min(1,c/12),i=Math.sin(a*9.5);l.hips.y-=.09*r,l.hips.x+=i*.05*r,l.spineRoll+=i*.18*r,l.headRoll-=i*.35*r,l.headPitch+=.25*r,t.position.x+=.18*e*r,n.position.x-=.18*e*r,t.position.y-=.1*r,n.position.y-=.1*r}return .05+h*.025}updateDownState(e,t,n,r){if(this.riseBlendAge+=t,e.is_downed||this.forcedDown||this.dead){if(this.downState===`up`||this.downState===`rising`||this.deathFall)this.deathFall=!1,this.fallFromGetUp=this.downState!==`up`,this.fallFromGetUp&&(HE(this.fallStart,this.downResult),this.fallStartStand=this.downStand),this.downState=`falling`,this.fallAge=0,this.riseProgress=0,this.riseRootFrom.copy(this.riseRoot),this.landSettled=!1,this.fallenFromPhysics=!1,this.downPolesSet=!1,this.ragdoll?.clearRise(),this.authoredNextFall?this.ragdoll?.forget():n||this.startFall(e),this.authoredNextFall=!1;else if(this.downState===`falling`)this.fallAge+=t,this.fallAge>=Ow&&(this.downState=`down`);else if(this.fallKneel)this.riseProgress=Aw;else{let n=(!this.forcedDown&&!this.heldDown&&!this.dead&&e.get_up_required>0?sw(e.get_up_meter/e.get_up_required,0,1):0)*Aw;if(this.ragdoll?.active===!0&&!this.ragdoll.handingOver){if(n<=0)return;this.handOverFall(e)}this.riseProgress+=sw(n-this.riseProgress,-.4*t,Nw*t)}return}if((this.downState===`down`||this.downState===`falling`)&&(this.downState=`rising`,this.ragdoll?.active===!0&&!this.ragdoll.handingOver&&this.handOverFall(e),this.fallKneel&&(this.riseProgress=Math.max(this.riseProgress,Aw)),this.riseFrom=this.riseProgress,this.feetInitialized=!1),this.downState!==`rising`)return;let i=r>.3||this.punchActive,a=(1-this.riseFrom)/(i?Mw:jw);this.riseProgress=Math.min(1,this.riseProgress+(this.riseProgress=1&&(this.downState=`up`,this.fallKneel=!1)}startFall(e){let t=this.ragdoll;t!==null&&(this.rootX!==null&&Math.hypot(this.place.x-this.rootX,this.place.z-this.rootZ)>zw&&(this.rootX=this.place.x,this.rootZ=this.place.z,this.boxer.root.position.set(this.rootX,0,this.rootZ)),t.start(this.dead?this.deathStyle:`crumple`),e.get_up_count>0&&!this.dead&&(t.settle(),this.fallAge=Ow))}handOverFall(e){let t=this.ragdoll;if(t===null||!t.active||t.handingOver)return;let n=e.stance===`orthodox`?1:-1,r=this.boxer.rig.bones;this.boxer.root.updateMatrixWorld(!0);let i=this.scratchC.set(this.rootX??0,0,this.rootZ),a=this.scratchQ.setFromAxisAngle(XE,-this.yaw),o=this.fallen,s=(e,t)=>t.setFromMatrixPosition(e.matrixWorld).sub(i).applyQuaternion(a),c=(e,t,n,r)=>NE(vE.setFromQuaternion(e.getWorldQuaternion(_E).premultiply(a),`YXZ`),t,n,r);s(r.hips,o.hips),this.landProne=t.faceDown();let l=Math.abs(o.hips.x)>.12?Math.sign(o.hips.x):0,u=this.landProne?kE(this.downTo,TE,EE,n,l,this.boxer.rig.metrics.ankleHeight):kE(this.downTo,CE,wE,n,l,this.boxer.rig.metrics.ankleHeight);this.landSide=l,this.landShift.set(o.hips.x-u.hips.x,0,o.hips.z-u.hips.z);let d=c(r.hips,u.hipsPitch,u.hipsYaw,u.hipsRoll);o.hipsPitch=d.x,o.hipsYaw=d.y,o.hipsRoll=d.z;let f=c(r.upperChest,o.hipsPitch,o.hipsYaw,o.hipsRoll);o.shouldersYaw=f.y,o.spinePitch=f.x-o.hipsPitch,o.spineRoll=f.z-o.hipsRoll;let p=c(r.head,f.x,f.y,f.z);o.headPitch=p.x,o.turn=p.y,o.headRoll=p.z,s(n>0?r.gloveL:r.gloveR,o.leadHand),s(n>0?r.gloveR:r.gloveL,o.rearHand),s(n>0?r.ankleL:r.ankleR,o.leadFoot),s(n>0?r.ankleR:r.ankleL,o.rearFoot);let m=this.boxer.rig.metrics.ankleHeight;o.leadFoot.y=Math.max(o.leadFoot.y,m),o.rearFoot.y=Math.max(o.rearFoot.y,m);let h=(e,t,n,r,i)=>{let o=s(e,this.scratchB),c=s(n,this.scratchD).sub(o).normalize();s(t,r).sub(o),r.addScaledVector(uE.copy(i).applyQuaternion(e.getWorldQuaternion(_E)).applyQuaternion(a),gE),r.addScaledVector(c,-r.dot(c)),r.lengthSq()>1e-6?r.normalize():r.copy(i===pE?dE:fE)},g=n>0;h(g?r.hipL:r.hipR,g?r.kneeL:r.kneeR,g?r.ankleL:r.ankleR,o.leadKnee,pE),h(g?r.hipR:r.hipL,g?r.kneeR:r.kneeL,g?r.ankleR:r.ankleL,o.rearKnee,pE),h(g?r.shoulderL:r.shoulderR,g?r.elbowL:r.elbowR,g?r.gloveL:r.gloveR,o.leadElbow,g?mE:hE),h(g?r.shoulderR:r.shoulderL,g?r.elbowR:r.elbowL,g?r.gloveR:r.gloveL,o.rearElbow,g?hE:mE);let _=(e,t,n)=>{let r=e.getWorldQuaternion(_E).premultiply(a);t.set(0,1,0).applyQuaternion(r),n.set(0,0,1).applyQuaternion(r)};_(g?r.gloveL:r.gloveR,o.leadKnuckles,o.leadPalm),_(g?r.gloveR:r.gloveL,o.rearKnuckles,o.rearPalm),o.ownJoints=1,o.leadHeel=0,o.rearHeel=0,o.palmsDown=+!!this.landProne,this.fallenFromPhysics=!0,this.landSettled=!0,this.downPolesSet=!1,t.handOver(),this.riseBlendAge=0;let v=this.scratchE.set(t.pelvis(this.scratchD).x-(this.rootX??0),0,this.scratchD.z-this.rootZ),y=this.scratchB.copy(v).applyQuaternion(a);for(let e of[o.hips,o.leadHand,o.rearHand,o.leadFoot,o.rearFoot])e.x-=y.x,e.z-=y.z;t.shiftRise(this.scratchC.copy(v).negate()),this.rootX=(this.rootX??0)+v.x,this.rootZ+=v.z,this.boxer.root.position.set(this.rootX,0,this.rootZ),this.riseRoot.set(this.rootX-this.mapping.x(e.x)-this.touchOffset.x,0,this.rootZ-this.mapping.z(e.y)-this.touchOffset.z),this.riseRootFrom.copy(this.riseRoot)}walkBackFromTheFall(e){let t=this.downState===`rising`?1-rx(Aw,1,this.riseProgress):this.downState===`up`?0:1,n=this.riseRootFrom.x*t,r=this.riseRootFrom.z*t;e>0?this.riseRootVelocity.set((n-this.riseRoot.x)/e,0,(r-this.riseRoot.z)/e):this.riseRootVelocity.set(0,0,0),this.riseRoot.set(n,0,r),t===0&&this.riseRootFrom.set(0,0,0)}steadyJointPoles(e,t,n,r,i,a){if(this.poleSettle=this.downState===`up`?Math.max(0,this.poleSettle-a):Iw,this.poleSettle<=0||this.ragdoll?.active===!0&&!this.ragdoll.handingOver){this.downPolesSet=!1;return}let o=this.boxer.rig.bones,s=e>0;this.characterInverse.copy(this.boxer.root.matrixWorld).invert();for(let e=0;e<4;e+=1){let c=e<2,l=e%2==0,u=l===s,d=c?u?o.hipL:o.hipR:u?o.shoulderL:o.shoulderR,f=c?l?r:i:l?t:n,p=f.position,m=f.pole,h=this.downPoles[e];if(!this.downPolesSet){h.copy(m);continue}let g=this.scratchB.setFromMatrixPosition(d.matrixWorld).applyMatrix4(this.characterInverse).sub(p).negate();if(g.lengthSq()<1e-6){h.copy(m);continue}g.normalize();let _=this.scratchD.copy(h).addScaledVector(g,-h.dot(g)),v=this.scratchE.copy(m).addScaledVector(g,-m.dot(g));if(_.lengthSq()<1e-4||v.lengthSq()<1e-4){h.copy(m);continue}let y=Math.atan2(this.scratch.crossVectors(_,v).dot(g),_.dot(v)),b=Fw*Math.max(a,1/120);Math.abs(y)<=b||m.copy(_.normalize().applyAxisAngle(g,Math.sign(y)*b)),h.copy(m)}this.downPolesSet=!0}applyWindedPose(e,t,n,r,i){let a=this.torso,o=L.lerp,s=this.windedSide,c=Math.sin(t*23)*.006;a.hips.y=o(a.hips.y,vx.hipsHeight-.1,e),a.hips.z=o(a.hips.z,-.04,e),a.hipsPitch=o(a.hipsPitch,.2,e),a.spinePitch=o(a.spinePitch,.62+c,e),a.spineRoll=o(a.spineRoll,s*.16,e),a.headPitch=o(a.headPitch,.38,e);let l=s>0?this.hand.L:this.hand.R,u=l===r?i:r;l.position.lerp(W.set(s*.13,.98,.17),e),l.palm.lerp(W.set(-s*.6,0,-.8),e).normalize(),l.knuckles.lerp(W.set(-s*.5,.5,.2),e).normalize(),l.pole.lerp(W.set(s*.9,-.3,-.3),e).normalize(),u.position.lerp(W.set(-s*.2,.86,.3),e),u.pole.lerp(W.set(-s*.8,-.6,0),e).normalize()}applyTouchGlovesPose(e,t,n,r){let i=this.torso,a=L.lerp;i.hips.z=a(i.hips.z,.06,e),i.hipsYaw=a(i.hipsYaw,i.hipsYaw*.4,e),i.shouldersYaw=a(i.shouldersYaw,0,e),i.spinePitch=a(i.spinePitch,.12,e),i.headPitch=a(i.headPitch,.1,e),n.position.lerp(W.set(.11*t,1.24,.5),e),r.position.lerp(W.set(-.11*t,1.22,.47),e),n.palm.lerp(W.set(-t,0,0),e).normalize(),r.palm.lerp(W.set(t,0,0),e).normalize(),n.knuckles.lerp(W.set(0,.15,1),e).normalize(),r.knuckles.lerp(W.set(0,.15,1),e).normalize(),n.pole.lerp(W.set(.7*t,-.7,0),e).normalize(),r.pole.lerp(W.set(-.7*t,-.7,0),e).normalize()}touchWalk(e,t,n,r){this.countdownEnd=GE(this.countdownEnd,r,this.countdownTicks);let i=this.countdownEnd===null?0:KE(this.countdownEnd-r),a=this.mapping.x(t.x)-this.mapping.x(e.x),o=this.mapping.z(t.y)-this.mapping.z(e.y),s=Math.hypot(a,o),c=s>Qw?(s-Qw)/2/s*i:0;return this.touchVelocity.set(a*c-this.touchOffset.x,0,o*c-this.touchOffset.z).divideScalar(Math.max(n,.001)).clampLength(0,rT),this.touchOffset.set(a*c,0,o*c)}applyCelebratePose(e,t,n,r,i,a,o){let s=this.torso,c=L.lerp,l=Math.sin(t*6)*.04;s.hips.y=c(s.hips.y,vx.hipsHeight+.035+l*.5,e),s.hipsYaw=c(s.hipsYaw,0,e),s.hipsPitch=c(s.hipsPitch,-.12,e),s.hipsRoll=c(s.hipsRoll,0,e),s.shouldersYaw=c(s.shouldersYaw,0,e),s.spinePitch=c(s.spinePitch,-.1,e),s.headPitch=c(s.headPitch,-.25,e),r.position.lerp(W.set(.3*n,1.86+l,.08),e),i.position.lerp(W.set(-.3*n,1.84+l,.06),e),r.palm.lerp(W.set(0,0,1),e).normalize(),i.palm.lerp(W.set(0,0,1),e).normalize(),r.knuckles.lerp(W.set(.15*n,1,0),e).normalize(),i.knuckles.lerp(W.set(-.15*n,1,0),e).normalize(),r.pole.lerp(W.set(n,.1,-.3),e).normalize(),i.pole.lerp(W.set(-n,.1,-.3),e).normalize(),a.heel=c(a.heel,.45,e),o.heel=c(o.heel,.45,e)}kneelLegs(e,t,n,r,i){let a=L.lerp;n.position.x=a(n.position.x,.24*t,e),n.position.z=a(n.position.z,i+.3,e),r.position.x=a(r.position.x,-.18*t,e),r.position.z=a(r.position.z,i-.66,e),n.heel=a(n.heel,0,e),r.heel=a(r.heel,1.25,e),n.toe.lerp(this.treatScratch.set(.2*t,0,1),e).normalize(),r.toe.lerp(this.treatScratch.set(-.1*t,0,1),e).normalize(),n.pole.lerp(this.treatScratch.set(.25*t,.4,1),e).normalize(),r.pole.lerp(this.treatScratch.set(-.05*t,-.8,.6),e).normalize()}applyAttendPose(e,t,n,r,i){let a=this.torso,o=L.lerp,s=Math.sin(t*3.1)*.5+Math.sin(t*5.3+1)*.5;a.hips.z=o(a.hips.z,.12,e),a.hips.y=o(a.hips.y,Ww-.06,e),a.hipsPitch=o(a.hipsPitch,.3,e),a.spinePitch=o(a.spinePitch,.42,e),a.headPitch=o(a.headPitch,.4+s*.05,e),a.headYaw=o(a.headYaw,Math.sin(t*1.3)*.08,e),r.position.lerp(W.set(.2*n,1.36+s*.06,.6+s*.04),e),i.position.lerp(W.set(-.14*n,1.23,.6),e),r.palm.lerp(W.set(-.8*n,-.2,.5),e).normalize(),i.palm.lerp(W.set(0,-.9,.3),e).normalize(),r.knuckles.lerp(W.set(.1*n,.5,1),e).normalize(),i.knuckles.lerp(W.set(.8*n,.1,.6),e).normalize(),r.pole.lerp(W.set(.8*n,-.5,-.1),e).normalize(),i.pole.lerp(W.set(-n,-.1,.1),e).normalize();let c=this.mournWeight*e;if(c>.001){a.hipsPitch=o(a.hipsPitch,.1,c),a.spinePitch=o(a.spinePitch,.28,c),a.headPitch=o(a.headPitch,.55,c),a.headYaw=o(a.headYaw,0,c);let e=a.hips.y+.76;r.position.lerp(W.set(.14*n,e,.4),c),i.position.lerp(W.set(-.14*n,e,.4),c),r.knuckles.lerp(W.set(-.35*n,.9,0),c).normalize(),i.knuckles.lerp(W.set(.35*n,.9,0),c).normalize(),r.palm.lerp(W.set(-n,-.2,0),c).normalize(),i.palm.lerp(W.set(n,-.2,0),c).normalize(),r.pole.lerp(W.set(n,-.2,.3),c).normalize(),i.pole.lerp(W.set(-n,-.2,.3),c).normalize()}let l=this.cheerWeight*e;if(l>.001){let e=Math.sin(t*8.5);a.hips.z=o(a.hips.z,.04,l),a.hipsPitch=o(a.hipsPitch,-.02,l),a.spinePitch=o(a.spinePitch,-.06,l),a.spineRoll=o(a.spineRoll,e*.05,l),a.headPitch=o(a.headPitch,-.2,l);let s=a.hips.y+.93+e*.05;r.position.lerp(W.set(.36*n,s,.06),l),i.position.lerp(W.set(-.36*n,s-e*.06,.06),l),r.knuckles.lerp(W.set(.15*n,1,0),l).normalize(),i.knuckles.lerp(W.set(-.15*n,1,0),l).normalize(),r.palm.lerp(W.set(0,0,1),l).normalize(),i.palm.lerp(W.set(0,0,1),l).normalize(),r.pole.lerp(W.set(n,-.3,-.2),l).normalize(),i.pole.lerp(W.set(-n,-.3,-.2),l).normalize()}}applyTreatPose(e,t,n,r,i,a,o){let s=this.torso,c=L.lerp,l=this.treatScratch.set(this.rootX??0,0,this.rootZ),u=this.scratchQ.setFromAxisAngle(XE,-this.yaw),d=W.copy(this.treatTarget).sub(l).applyQuaternion(u),f=this.treatFacingLocal.copy(this.treatFacing).applyQuaternion(u),p=f.z,m=-f.x,h=this.treatUrgency,g=t*c(2.6,7,h),_=Math.sin(g)*c(.006,.016,h),v=Math.cos(g)*.03*h;s.hips.lerp(this.treatScratch.set(0,.5,.1),e),s.hipsYaw=c(s.hipsYaw,0,e),s.hipsPitch=c(s.hipsPitch,.14,e),s.hipsRoll=c(s.hipsRoll,0,e),s.shouldersYaw=c(s.shouldersYaw,0,e),s.spinePitch=c(s.spinePitch,.26,e),s.headYaw=c(s.headYaw,sw(Math.atan2(d.x,d.z-.25),-.6,.6),e),s.headPitch=c(s.headPitch,sw(Math.atan2(1.12-d.y,Math.hypot(d.x,d.z-.25)),-.5,.6),e),this.kneelLegs(e,n,a,o,.1);let y=this.treatProp===`bottle`,b=y?.3:.08-_;r.position.lerp(this.treatScratch.set(d.x+f.x*b+p*v,d.y+(y?.02:-.07),d.z+f.z*b+m*v),e),y?r.knuckles.lerp(this.treatScratch.set(-f.x,-.25,-f.z),e).normalize():r.knuckles.lerp(this.treatScratch.set(0,1,.05),e).normalize(),r.palm.lerp(y?this.treatScratch.set(0,-1,0):this.treatScratch.set(-f.x,0,-f.z),e).normalize(),r.pole.lerp(this.treatScratch.set(.85*n,-.35,.1),e).normalize();let x=this.treatSide*.135;i.position.lerp(this.treatScratch.set(d.x-p*x+f.x*.05,d.y-.2,d.z-m*x+f.z*.05),e),i.knuckles.lerp(this.treatScratch.set(0,.9,.4),e).normalize(),i.palm.lerp(this.treatScratch.set(p*this.treatSide*.8-f.x*.6,.1,m*this.treatSide*.8-f.z*.6),e).normalize(),i.pole.lerp(this.treatScratch.set(-.85*n,-.4,.1),e).normalize()}applyBreakPose(e,t,n,r){let i=this.torso,a=L.lerp;i.hipsPitch=a(i.hipsPitch,.14,e),i.spinePitch=a(i.spinePitch,.2,e);let o=this.scratchC.set(.48*t,1.22,.52),s=this.scratchD.set(-.48*t,1.22,.52);if(this.breakAimed){let[e,n]=this.breakFighters,r=this.scratch.subVectors(n,e).setY(0).normalize(),i=this.scratchQ.setFromAxisAngle(XE,-this.yaw),a=this.scratchB.set(this.rootX??0,0,this.rootZ);o.copy(e).addScaledVector(r,Jw).sub(a).applyQuaternion(i),s.copy(n).addScaledVector(r,-Jw).sub(a).applyQuaternion(i),o.x*tOw*.15;let s=this.downResult;if(this.downState!==`falling`){let a=this.riseProgress,c=0;if(this.fallKneel)c=rx(Aw,1,a),UE(s,this.placeKneel(this.downFrom,e),o,c);else if(a0==t>0;return e.hips.set(.02*t,.53,-.06),e.hipsYaw=vx.bladeYaw*t*.3,e.hipsPitch=.24,e.hipsRoll=0,e.shouldersYaw=vx.bladeYaw*t*.2,e.spinePitch=.62,e.headPitch=.48,(r?e.leadHand:e.rearHand).set(n*.13,.66,.2),(r?e.rearHand:e.leadHand).set(.13*t,.66,.37),e.leadFoot.set(.16*t,.125,.32),e.rearFoot.set(-.12*t,.12,-.5),e.leadHeel=0,e.rearHeel=0,e.palmsDown=1,e}placeLying(e){let t=this.boxer.rig.metrics.ankleHeight;return PE(this.landProne?kE(this.downFrom,TE,EE,e,this.landSide,t):kE(this.downFrom,CE,wE,e,this.landSide,t),this.landShift)}placeDown(e,t,n){return kE(e,t,null,n,0,this.boxer.rig.metrics.ankleHeight)}chooseLanding(e){let t=this.boxer.rig.metrics.ankleHeight,n=1/0;for(let r=0;r=n||(n=u.length()+o,this.landProne=s,this.landSide=c,this.landShift.copy(u))}}ropeShift(e,t){let n=this.scratchQ.setFromAxisAngle(XE,this.yaw);vE.set(e.hipsPitch+e.spinePitch*.7,e.hipsYaw,e.hipsRoll,`YXZ`),RE[0].set(0,IE,0).applyEuler(vE).add(e.hips),RE[1].set(.2,LE,0).applyEuler(vE).add(e.hips),RE[2].set(-.2,LE,0).applyEuler(vE).add(e.hips),RE[3].copy(e.leadHand),RE[4].copy(e.rearHand),RE[5].copy(e.leadFoot).z+=e.leadHeel>0?.25:.19,RE[6].copy(e.rearFoot).z+=e.rearHeel>0?.25:.19,RE[7].copy(e.hips);let r=1/0,i=-1/0,a=1/0,o=-1/0;for(let e=0;e0==t>0,c=s?n:r,l=s?r:n;i.pole.lerp(W.set(.15*t,.35,1),e).normalize(),a.pole.lerp(W.set(-.1*t,-1,.3),e).normalize(),i.toe.lerp(W.set(.15*t,0,1),e).normalize(),a.toe.lerp(W.set(0,-.35,-1),e).normalize(),c.palm.lerp(W.set(-o*.75,0,-.65),e).normalize(),c.knuckles.lerp(W.set(-o*.35,.25,.9),e).normalize(),c.pole.lerp(W.set(o*.9,-.35,-.25),e).normalize(),l.palm.lerp(W.set(0,-1,.1),e).normalize(),l.knuckles.lerp(W.set(.2*t,-.2,1),e).normalize(),l.pole.lerp(W.set(t*.7,.1,-.7),e).normalize()}writeDown(e,t,n,r,i,a,o,s){let c=this.torso,l=1-s;this.downStand=s,c.hips.copy(e.hips),c.hipsYaw=e.hipsYaw,c.hipsPitch=e.hipsPitch,c.hipsRoll=e.hipsRoll,c.shouldersYaw=e.shouldersYaw,c.spinePitch=e.spinePitch,c.spineRoll=c.spineRoll*s+e.spineRoll,c.headPitch=e.headPitch,c.headYaw=c.headYaw*s+e.turn,c.headRoll=c.headRoll*s+e.headRoll,c.headOffset.multiplyScalar(s),c.headOffset.z-=o,n.position.copy(e.leadHand),r.position.copy(e.rearHand),xE(n,t,e.palmsDown,l),xE(r,-t,e.palmsDown,l),i.position.copy(e.leadFoot),a.position.copy(e.rearFoot),i.toe.lerp(uE.set(.2*t,0,1).normalize(),l).normalize(),a.toe.lerp(uE.set(-.2*t,0,1).normalize(),l).normalize(),i.heel=e.leadHeel,a.heel=e.rearHeel;let u=uE.set(0,0,1).applyEuler(vE.set(e.hipsPitch,e.hipsYaw,e.hipsRoll,`YXZ`));if(i.pole.lerp(u,l),a.pole.lerp(u,l),e.ownJoints>0){let t=e.ownJoints*l;ME(i.pole,e.leadKnee,t),ME(a.pole,e.rearKnee,t),ME(n.pole,e.leadElbow,t),ME(r.pole,e.rearElbow,t),ME(n.knuckles,e.leadKnuckles,t),ME(n.palm,e.leadPalm,t),ME(r.knuckles,e.rearKnuckles,t),ME(r.palm,e.rearPalm,t)}}calmInjuries(){this.armLimp.fill(0),this.armSnap.fill(0),this.kneeGive.fill(0),this.lostLean=0,this.cover=0,this.hunch=0,this.curl=0,this.faint=0,this.retching=0,this.daze=0,this.stepPace.fill(1),this.stepLift.fill(1),this.stepSlack=1,this.hurt=!1,this.dropDangles()}dropDangles(){for(let e=0;e<2;e+=1)this.armDangle[e].live=!1,this.forearmDangle[e].live=!1}stepInjuries(e){this.retchTime=Math.max(0,this.retchTime-e);let t=this.posedInjuries>1||this.faintTarget>0||this.retchTime>0||this.dazed;if(!t&&!this.hurt)return;let n=this.downState===`up`,r=0;for(let t=0;t<2;t+=1){let n=this.armCarry[t];this.armLimp[t]=aw(this.armLimp[t],+(n===`dead`||n===`gone`),OT,e),this.armSnap[t]=aw(this.armSnap[t],+(n===`snapped`),OT,e),this.kneeGive[t]=aw(this.kneeGive[t],+!!this.kneeBlown[t],8,e),r=Math.max(r,this.armLimp[t],this.armSnap[t],this.kneeGive[t])}let i=this.armCarry[0],a=this.armCarry[1],o=i===`whole`||i===`stump`,s=a===`whole`||a===`stump`;this.cover=aw(this.cover,o===s?0:o?1:-1,6,e),this.lostLean=aw(this.lostLean,(i===`gone`)-+(a===`gone`),4,e),this.hunch=aw(this.hunch,+!!this.gutted,5,e),this.curl=aw(this.curl,+!!this.liver,4,e),this.faint=aw(this.faint,this.faintTarget,2.5,e);let c=this.retchTime>0&&n;this.retching=aw(this.retching,+!!c,c?12:5,e);let l=this.dazed&&n;if(this.daze=aw(this.daze,+!!l,l?8:5,e),this.dazeTime=this.daze>.001?this.dazeTime+e:0,r=Math.max(r,Math.abs(this.cover),Math.abs(this.lostLean),this.hunch,this.curl,this.faint,this.retching,this.daze),!t&&r<.001){this.calmInjuries();return}this.hurt=!0;let u=this.hunch,d=this.faint,f=this.daze;this.stepSlack=(1-.3*u)*(1-.55*f);for(let e=0;e<2;e+=1){let t=this.kneeGive[e],n=this.kneeGive[1-e];this.stepPace[e]=(1-.4*n)*(1+.25*t)*(1-.25*u)*(1+.15*d)*(1+.2*f),this.stepLift[e]=(1-.5*t)*(1-.6*u)*(1-.75*d)*(1-.4*f)}}stepDeath(e){if(!(!this.dead||this.throe>=DT.length))for(this.deathAge+=e;this.throe=DT[this.throe].at;){let e=DT[this.throe];this.ragdoll?.twitch(e.part,(this.throe+this.throeSide)%2,e.speed),this.throe+=1}}stumble(e,t,n){let r=this.dazeTime;t.add(this.scratchD.set(Math.sin(r*1.7+e*2.1)*.07,0,Math.sin(r*1.25+e*1.3)*.06).multiplyScalar(this.daze).applyAxisAngle(XE,n))}applyHurtStance(e,t,n,r,i){let a=this.torso,o=0,s=0,c=0,l=this.hunch;l>.001&&(s+=.3*l,o+=.045*l,a.hipsPitch+=.06*l,a.headPitch+=.12*l);let u=this.curl;u>.001&&(s+=.1*u,a.spineRoll+=.21*u,a.headRoll+=.08*u,c+=.02*u,this.hand.R.position.y-=.08*u);let d=this.lostLean;Math.abs(d)>.001&&(a.spineRoll+=.15*d,c+=.025*d,a.headRoll-=.05*d);let f=this.faint;if(f>.001){let t=Math.sin(e*1.15),i=Math.sin(e*.83+1.3);a.hips.x+=t*.09*f,a.hips.z+=i*.06*f,a.hipsRoll+=t*.05*f,a.spineRoll+=Math.sin(e*1.15-.7)*.2*f,s+=(.17+i*.06)*f,o+=.03*f+(.06+.04*(.5+.5*Math.sin(e*2.6)))*f*f,a.headPitch+=(.4+Math.sin(e*.9+.4)*.14)*f,a.headRoll+=Math.sin(e*.7)*.36*f,a.headYaw+=Math.sin(e*.53+2)*.18*f,n.position.y-=.32*f,r.position.y-=.27*f,n.position.z-=.07*f}for(let e=0;e<2;e+=1){let t=this.kneeGive[e];if(t<=.001)continue;let n=e===0?1:-1,r=e===0?this.foot.L:this.foot.R,i=e===0?this.foot.R:this.foot.L,s=this.feet[1-e],c=s.stepping?Math.sin(s.progress*Math.PI)*t:0,l=t-c;a.hips.x+=(i.position.x-a.hips.x)*.25*l,a.hips.z+=(i.position.z-a.hips.z)*.18*l,o+=.085*c+.01*l,a.hipsRoll-=n*.16*c,a.spineRoll+=n*.13*c,r.heel+=.3*l,r.pole.x-=n*(.35*t+.9*c),r.pole.normalize()}if(a.hips.x+=Math.cos(a.hipsYaw)*c,a.hips.z-=Math.sin(a.hipsYaw)*c,o!==0||s!==0){a.hips.y-=o,a.spinePitch+=s;let e=o+s*XT,t=s*YT;i.y-=e,i.z+=t,n.position.y-=e,n.position.z+=t,r.position.y-=e,r.position.z+=t}let p=this.cover;if(Math.abs(p)>.001){let e=p>0?this.hand.L:this.hand.R,n=Math.abs(p);e.position.x+=(ZT*t-e.position.x)*.7*n,e.position.y+=.03*n,e.position.z+=.03*n}}applyHurtActs(e,t,n,r){let i=this.torso,a=L.lerp,o=+(t>0),s=this.armCarry[o]===`whole`?o:this.armCarry[1-o]===`whole`?1-o:-1,c=this.retching*(1-.7*this.punchCommit);if(c>.001){let t=Math.max(0,Math.sin(e*10.5))**2;i.hips.y=a(i.hips.y,vx.hipsHeight-.13-t*.02,c),i.hips.z=a(i.hips.z,-.08,c),i.hipsPitch=a(i.hipsPitch,.36,c),i.spinePitch=a(i.spinePitch,.78+t*.12,c),i.spineRoll=a(i.spineRoll,0,c),i.headPitch=a(i.headPitch,1.3+t*.15,c),i.headYaw=a(i.headYaw,0,c),i.headRoll=a(i.headRoll,0,c),i.headOffset.multiplyScalar(1-c);let n=s<0?o:1-s;if(this.armCarry[n]===`whole`){let e=n===0?1:-1,t=n===0?this.hand.L:this.hand.R;t.position.lerp(W.set(e*.19,.62,n===o?-.02:.15),c),t.pole.lerp(W.set(e*.9,.1,-.4),c).normalize(),t.knuckles.lerp(W.set(-e*.2,-.7,.6),c).normalize(),t.palm.lerp(W.set(0,-.6,-.8),c).normalize()}}let l=Math.max(Math.abs(this.slip),this.weave,this.pull),u=sw(1-this.guardHigh-this.guardLow,0,1)*(1-this.punchCommit)*(1-l)*(1-this.clinchWeight),d=this.punchActive&&s===(this.punchHand===`left`?0:1)?sw(this.punchReach*4,0,1):0,f=Math.max(c,this.hunch*u)*(1-d);f>.001&&s>=0&&this.clutchBelly(s,f);let p=this.daze;if(p>.001){let e=this.dazeTime,o=rx(.7,1.6,e),s=Math.sin(e*2.2),c=Math.sin(e*1.45+.9),l=vx.bladeYaw*t;i.hips.x=a(i.hips.x,s*.06,p),i.hips.z=a(i.hips.z,c*.045,p),i.hips.y=a(i.hips.y,vx.hipsHeight-.08-Math.sin(e*4.4+1)*.02,p),i.hipsYaw=a(i.hipsYaw,l*.8,p),i.hipsPitch=a(i.hipsPitch,.04,p),i.hipsRoll=a(i.hipsRoll,s*.05,p),i.shouldersYaw=a(i.shouldersYaw,l*.65,p),i.spinePitch=a(i.spinePitch,.24+c*.07,p),i.spineRoll=a(i.spineRoll,Math.sin(e*2.2-.9)*.13,p),i.headYaw=a(i.headYaw,o*Math.sin(e*1.1+2)*.3,p),i.headPitch=a(i.headPitch,.95-o*(.28+Math.sin(e*1.3)*.25),p),i.headRoll=a(i.headRoll,o*Math.sin(e*1.9)*.42,p),i.headOffset.multiplyScalar(1-p),n.heel=a(n.heel,0,p),r.heel=a(r.heel,0,p)}}clutchBelly(e,t){let n=this.torso,r=e===0?this.hand.L:this.hand.R,i=e===0?1:-1,a=n.hipsYaw+(n.shouldersYaw-n.hipsYaw)*.25,o=n.hipsPitch+n.spinePitch*.2;r.position.lerp(W.set(i*.05,.17,.19+o*.08).applyAxisAngle(XE,a).add(n.hips),t),r.knuckles.lerp(W.set(-i*.9,-.3,.2).applyAxisAngle(XE,a),t).normalize(),r.palm.lerp(W.set(-i*.1,.15,-1).applyAxisAngle(XE,a),t).normalize(),r.pole.lerp(W.set(i*.85,-.35,-.4).applyAxisAngle(XE,a),t).normalize()}dangleArms(e){let t=this.daze,n=this.boxer.rig,r=n.bones;Yb(r.hips,this.trunkLow),Yb(r.upperChest,this.trunkHigh),this.trunkLow.addScaledVector(QT.subVectors(this.trunkLow,this.trunkHigh).normalize(),KT);let i=this.ragdoll?.handingOver===!0;for(let a=0;a<2;a+=1){let o=Math.max(this.armLimp[a],t),s=this.armSnap[a],c=this.armDangle[a],l=this.forearmDangle[a];if(o<=.001&&(c.live=!1),s<=.001&&(l.live=!1),o<=.001&&s<=.001)continue;let u=a===0,d=u?1:-1,f=u?r.shoulderL:r.shoulderR,p=u?r.elbowL:r.elbowR,m=u?r.gloveL:r.gloveR,h=u?n.metrics.armL:n.metrics.armR;if(o>.001){let t=Yb(m,$T);if(Xb(m,cE),this.armCarry[a]===`dead`){let e=Yb(f,eE);e.y-=kT*this.armLimp[a],n.aimAt(u?r.clavicleL:r.clavicleR,e,`z`),f.updateWorldMatrix(!1,!1)}let s=Yb(f,eE),l=(h.upper+h.lower)*AT;if(!c.live){let e=o>WT&&!i;TT(c,e?QT.set(s.x,s.y-l,s.z):t,s),e&&this.holdDangle(c.at,s,l,!1,null)}let g=this.punchActive&&this.punchHand===`left`===u?this.punchReach:0;this.swing(c,s,l,!1,e,jT,MT,t,g*PT);let _=tE.set(d*.3,.15+3*sw(1-s.y/JT,0,1),-1).lerp(u?this.hand.L.pole:this.hand.R.pole,1-o).applyAxisAngle(XE,this.yaw);n.solveLimb(f,p,h,t.lerp(c.at,o),_,`z`,u?1:-1,.012),m.updateWorldMatrix(!1,!1),Zb(nE.subVectors(Yb(m,$T),Yb(p,QT)).normalize(),tE.set(-d,0,.2).applyAxisAngle(XE,this.yaw),`z`,lE),n.setWorldRotation(m,cE.slerp(lE,o))}if(s>.001){let t=Yb(p,eE),r=Yb(m,$T);Xb(m,cE);let a=Math.max(0,-(t.y-Yb(f,QT).y)/h.upper),o=sw((t.y-qT)/h.lower,0,1),c=sE.set(d*(FT+IT*a*a),-o,0).applyAxisAngle(XE,this.yaw).normalize();l.live||(TT(l,s>WT&&!i?QT.set(t.x,t.y-h.lower,t.z):r,t),this.holdDangle(l.at,t,h.lower,!0,c)),this.swing(l,t,h.lower,!0,e,jT,NT,null,0,c);let u=nE.subVectors(r,t).lerp(QT.subVectors(l.at,t),s).normalize(),g=tE.setFromMatrixColumn(p.matrixWorld,2).lerp(QT.setFromMatrixColumn(p.matrixWorld,0).multiplyScalar(d),s);n.setWorldFrame(p,u,g,`z`),m.updateWorldMatrix(!1,!1),Zb(QT.copy(u).addScaledVector(fE,.9).normalize(),tE.set(-d,.2,-.4).applyAxisAngle(XE,this.yaw),`z`,lE),n.setWorldRotation(m,cE.slerp(lE,s))}}}swing(e,t,n,r,i,a,o,s,c,l=null){let u=e.at,d=e.velocity;(e.carried||t.distanceToSquared(e.pivot)>UT*UT)&&(u.add(t).sub(e.pivot),d.set(0,0,0),e.pivot.copy(t),e.carried=!1);let f=i>0?Math.min(VT,Math.ceil(i/BT)):0,p=f>0?i/f:0;for(let i=1;i<=f;i+=1)rE.copy(u),d.addScaledVector(a,p),s!==null&&c>0&&d.addScaledVector(iE.subVectors(s,u),c*p),d.multiplyScalar(Math.exp(-o*p)),u.addScaledVector(d,p),this.holdDangle(u,iE.lerpVectors(e.pivot,t,i/f),n,r,l),d.subVectors(u,rE).divideScalar(p).clampLength(0,HT);f===0&&this.holdDangle(u,t,n,r,l),e.pivot.copy(t)}holdDangle(e,t,n,r,i){let a=this.trunkLow,o=aE.subVectors(this.trunkHigh,a);for(let s=0;s<2;s+=1){let s=sw(oE.subVectors(e,a).dot(o)/Math.max(1e-6,o.lengthSq()),0,1),c=oE.addScaledVector(o,-s).length();c1e-4&&e.addScaledVector(oE,(GT-c)/c),e.y=Math.max(e.y,qT);let l=oE.subVectors(e,t),u=l.length();if(u<1e-6?e.set(t.x,t.y-n,t.z):(r||u>n)&&e.copy(t).addScaledVector(l,n/u),i===null)continue;l.subVectors(e,t);let d=l.dot(i);if(d>=n*RT)continue;let f=l.addScaledVector(i,-d).length();e.copy(t).addScaledVector(i,n*(f>1e-6?RT:1)),f>1e-6&&e.addScaledVector(l,n*zT/f)}}applyDislocation(){if(this.dislocation!==`jaw`)return;let e=this.boxer.bone(`head`);e!==null&&(e.quaternion.multiply(ST),e.updateWorldMatrix(!1,!0))}dispose(){this.stool.dispose(),this.enswell.dispose(),this.bottle.dispose(),this.boxer.dispose()}},Vw=.44,Hw=.2,Uw=.75,Ww=.94,Gw=.836,Kw=.12,qw=1.72,Jw=.2,Yw=1.26,Xw=48,Zw=14,Qw=1.34,$w=80,eT=56,tT=24,nT=4,rT=1.5,iT=60,aT=4,oT=.15,sT=.8,cT=1.3,lT=.35,uT=.93,dT=500,fT=900,pT=.15,mT=.05,hT=.07,gT=.14,_T=.05,vT=.2,yT=.04,bT=.36;function xT(e){let t=7;for(let n=0;nMath.atan2(Math.sin(e),Math.cos(e)),jE=new z;function ME(e,t,n){if(n<=0)return e;e.normalize();let r=e.angleTo(t);return r<1e-4?e:(jE.crossVectors(e,t),jE.lengthSq()<1e-8&&jE.crossVectors(e,Math.abs(e.y)<.9?XE:dE),e.applyAxisAngle(jE.normalize(),r*Math.min(1,n)))}function NE(e,t,n,r){let i=t+AE(e.x-t),a=n+AE(e.y-n),o=r+AE(e.z-r),s=t+AE(Math.PI-e.x-t),c=n+AE(e.y+Math.PI-n),l=r+AE(e.z+Math.PI-r);return Math.abs(i-t)+Math.abs(a-n)+Math.abs(o-r)<=Math.abs(s-t)+Math.abs(c-n)+Math.abs(l-r)?e.set(i,a,o,`YXZ`):e.set(s,c,l,`YXZ`)}function PE(e,t){return e.hips.add(t),e.leadHand.add(t),e.rearHand.add(t),e.leadFoot.add(t),e.rearFoot.add(t),e}var FE=h_*.72-.05,IE=.78,LE=.5,RE=Array.from({length:8},()=>new z),zE=[.17,.22,.22,.13,.13,.12,.12,.2],BE=[[!1,1,0],[!1,0,.15],[!1,-1,.3],[!0,1,.4],[!0,0,.5],[!0,-1,.6]];function VE(e,t){return e<-FE&&t>FE?-(e+t)/2:e<-FE?-FE-e:t>FE?FE-t:0}function HE(e,t){return UE(e,t,t,0)}function UE(e,t,n,r){let i=L.lerp;return e.hips.copy(t.hips).lerp(n.hips,r),e.hipsYaw=i(t.hipsYaw,n.hipsYaw,r),e.hipsPitch=i(t.hipsPitch,n.hipsPitch,r),e.hipsRoll=i(t.hipsRoll,n.hipsRoll,r),e.shouldersYaw=i(t.shouldersYaw,n.shouldersYaw,r),e.spinePitch=i(t.spinePitch,n.spinePitch,r),e.spineRoll=i(t.spineRoll,n.spineRoll,r),e.headPitch=i(t.headPitch,n.headPitch,r),e.headRoll=i(t.headRoll,n.headRoll,r),e.leadHand.copy(t.leadHand).lerp(n.leadHand,r),e.rearHand.copy(t.rearHand).lerp(n.rearHand,r),e.leadFoot.copy(t.leadFoot).lerp(n.leadFoot,r),e.rearFoot.copy(t.rearFoot).lerp(n.rearFoot,r),e.leadHeel=i(t.leadHeel,n.leadHeel,r),e.rearHeel=i(t.rearHeel,n.rearHeel,r),e.palmsDown=i(t.palmsDown,n.palmsDown,r),e.turn=i(t.turn,n.turn,r),ME(e.leadKnee.copy(t.leadKnee),n.leadKnee,r),ME(e.rearKnee.copy(t.rearKnee),n.rearKnee,r),ME(e.leadElbow.copy(t.leadElbow),n.leadElbow,r),ME(e.rearElbow.copy(t.rearElbow),n.rearElbow,r),ME(e.leadKnuckles.copy(t.leadKnuckles),n.leadKnuckles,r),ME(e.leadPalm.copy(t.leadPalm),n.leadPalm,r),ME(e.rearKnuckles.copy(t.rearKnuckles),n.rearKnuckles,r),ME(e.rearPalm.copy(t.rearPalm),n.rearPalm,r),e.ownJoints=i(t.ownJoints,n.ownJoints,r),e}var WE=3;function GE(e,t,n){if(n===null)return null;let r=t+n;return e===null||Math.abs(r-e)>WE?r:e}function KE(e){return(1-rx(eT,$w,e))*rx(nT,tT,e)}function qE(){let e=new gs;e.name=`enswell`,e.visible=!1;let t=new Zl(3.2,3.2,.9,20),n=new Zl(.8,.8,6,10),r=new Ku({color:13159634,roughness:.3,metalness:.9}),i=new V(t,r);i.rotation.x=Math.PI/2,i.position.set(0,9.5,3.4),e.add(i);let a=new V(n,r);return a.position.set(0,5.5,2.4),e.add(a),{group:e,dispose:()=>{t.dispose(),n.dispose(),r.dispose()}}}function JE(){let e=new gs;e.name=`bottle`,e.visible=!1;let t=new Zl(3.3,3.3,15,18),n=new Zl(1.3,3.3,3,18),r=new Zl(.7,1.1,3.2,10),i=new Ku({color:14280430,roughness:.32,metalness:0}),a=new Ku({color:1920728,roughness:.5,metalness:0}),o=new V(t,i);o.position.set(0,9,2.6);let s=new V(n,i);s.position.set(0,18,2.6);let c=new V(r,a);return c.position.set(0,21,2.6),e.add(o,s,c),{group:e,dispose:()=>{t.dispose(),n.dispose(),r.dispose(),i.dispose(),a.dispose()}}}function YE(){let e=new gs;e.name=`stool`,e.visible=!1;let t=new Zl(.17,.17,.035,18),n=new Zl(.012,.014,.42,8),r=new Ku({color:13222581,roughness:.85}),i=new Ku({color:2764083,roughness:.45,metalness:.6}),a=new V(t,r);a.position.y=.4225,a.castShadow=!0,e.add(a);for(let t=0;t<4;t+=1){let r=Math.PI/4+t*Math.PI/2,a=new V(n,i);a.position.set(Math.cos(r)*.13,.42/2,Math.sin(r)*.13),a.rotation.set(-Math.sin(r)*.12,0,Math.cos(r)*.12),a.castShadow=!0,e.add(a)}return{group:e,dispose:()=>{t.dispose(),n.dispose(),r.dispose(),i.dispose()}}}var XE=new z(0,1,0),ZE=6,QE=3,$E=1.5,eD=2.5,tD=1.5,nD=.55,rD=2.1,iD=.42,aD=.22,oD=.08,sD=.15,cD=.42,lD=.12,uD=.5,dD=.5,fD=new Set([`hit`,`counter_hit`,`block`,`perfect_block`,`referee_hit`]),pD=new Set([`slip_left`,`slip_right`,`weave`,`pull`]),mD=40,hD=y/a,gD=.12,_D=30,vD=2;function yD(e,t,n){if(e0;case`forearm_left`:return t===`glove_left`||o&&pg(r,i,a,1)>0;case`forearm_right`:return t===`glove_right`||o&&pg(r,i,a,-1)>0;case`arm_left`:return t===`glove_left`||o&&mg(r,i,a,1)>0;case`arm_right`:return t===`glove_right`||o&&mg(r,i,a,-1)>0;case`leg_left`:return r>=0&&(t===`shoes`||o&&i<60);case`leg_right`:return r<0&&(t===`shoes`||o&&i<60);case`upper_body`:return t===`head`||t===`glove_left`||t===`glove_right`||o&&hg(r,i,a)>0;case`torso`:return t===`pants`||o&&i>=60&&mg(r,i,a,1)<=0&&mg(r,i,a,-1)<=0}}var SD={head:`BoxerHead`,body:`BoxerBody`,glove_left:`BoxerGloveLeft`,glove_right:`BoxerGloveRight`,pants:`BoxerPants`,shoes:`BoxerShoes`},CD=new WeakMap;function wD(e,t){let n=CD.get(e);if(n===void 0){n={};let t=new Map(Object.entries(SD).map(([e,t])=>[t,e]));e.root.traverse(e=>{let r=e instanceof rl?t.get(e.name):void 0;r!==void 0&&(n[r]=e)}),CD.set(e,n)}return n[t]??null}var TD=[`left`,`right`],ED=new z(0,1,0),DD=new z(0,-1,0),OD=15129792,kD=6032400,AD=9313310,jD=4982537,MD=14200392,ND=2228997,PD=14263970,FD=8270912,ID=11618383,LD=15524550,RD=12866653,zD=13602176,BD=9384504,VD=new B,HD=new B,UD=new z,WD=L.smoothstep;function GD(e,t){e.deleteAttribute(`uv`);let n=e.getAttribute(`position`),r=new Float32Array(n.count*3);for(let e=0;eo/2-.001){let t=Math.atan2(UD.z,UD.x);UD.y+=i<1e-4?-n*.8:n*(.5*Math.sin(t*3+e[1])+.35*Math.sin(t*5+e[2]))}c.setXYZ(t,UD.x,UD.y+o/2,UD.z*r)}return s.computeVertexNormals(),GD(s,(t,r)=>{let i=1-WD(t.y/o,.15,.42)*(.85+.15*Math.sin(Math.atan2(t.z,t.x)*4+e[0]));r.setHex(OD).lerp(HD.setHex(jD),i),Math.hypot(t.x,t.z)o*.5&&r.setHex(kD)}),s.applyQuaternion(new vo().setFromUnitVectors(ED,a.normalize())),s.translate(i.x,i.y,i.z),s}function JD(e,t,n,r=!1){return GD(new Fu(new lu(e.map(e=>new z(...e)),r),e.length*5,t,7,r),n)}var YD=[0,123.6,-3.2],XD=[4.5,4,5];function ZD(){let e=new Mu(1,40,24,0,Math.PI*2,0,Math.PI*.6),t=e.getAttribute(`position`),n=new Float32Array(t.count);for(let e=0;e{let i=n[r];r+=1,t.setHex(FD).lerp(HD.setHex(PD),WD(i,-.5,.45)),(i<-1||Math.sin(e.x*.9+e.z*1.3)>.72)&&t.lerp(HD.setHex(AD),.7)})}function QD(){let e=[[1,.2,OD],[.9,0,OD],[.82,0,kD],[.74,0,OD],[.66,-.9,jD]],t=[],n=[],r=[];for(let[i,[a,o,s]]of e.entries())for(let e=0;e<32;e+=1){let c=e/32*Math.PI*2;if(t.push(Math.cos(c)*5.6*a,124+o,-3.3+Math.sin(c)*6.4*a),VD.setHex(s).multiplyScalar(.85+.15*Math.sin(c*11+i)),n.push(VD.r,VD.g,VD.b),i===0)continue;let l=(e+1)%32;r.push((i-1)*32+e,i*32+e,(i-1)*32+l,(i-1)*32+l,i*32+e,i*32+l)}let i=new yc;return i.setAttribute(`position`,new sc(t,3)),i.setAttribute(`color`,new sc(n,3)),i.setIndex(r),i.computeVertexNormals(),i}var $D=[0,112.9,-.4],eO=9,tO=new z(0,-.93,.37).normalize(),nO=.95;function rO(){let e=new Yl(1.5,6,6,16,8),t=e.getAttribute(`position`);for(let e=0;e0?.5*(1-WD(r,0,.45)):0,a=.5*Math.sin(n*5)*(1-n);t.setXYZ(e,UD.x*L.lerp(.9,1.1,Math.sin(n*Math.PI))+a*.4,UD.y-eO/2,(UD.z-i)*.3+.35*r*r+1.3*n*n)}return e.computeVertexNormals(),GD(e,(e,t)=>{let n=-e.y/eO,r=Math.sin(e.y*2.6+e.x*2.1)*Math.sin(e.x*3.3-e.y*1.2);t.setHex(RD).multiplyScalar(.8+.2*r).lerp(HD.setHex(jD),.8*(1-WD(n,0,.35))),(r>.45||n>.88)&&t.lerp(HD.setHex(AD),.65)})}function iO(){let e=[],t=new Mu(1,18,12,Math.PI,Math.PI);t.scale(3.3,2.5,3.2),t.translate(0,113.3,-.5),e.push(GD(t,(e,t)=>{t.setHex(ND).lerp(HD.setHex(AD),WD(Math.hypot(e.x,e.y-112.6,(e.z+3)*.7),.7,2.6))}));let n=new Xl(1,20);n.rotateX(Math.PI/2),n.scale(3.3,1,3.9),n.translate(0,115.25,.5),e.push(GD(n,(e,t)=>{t.setHex(BD).multiplyScalar(.75+.25*Math.sin(e.z*5)).lerp(HD.setHex(ND),1-WD(e.z,-3,.5))}));let r=[];for(let t=0;t<14;t+=1){let n=-1.75+t/13*3.5,i=1-Math.abs(n)/1.75,a=t===4||t===9?1.35:L.lerp(.85,1.2,i),o=new Zl(.3,t===4||t===9?.16:.37,a,6);o.scale(1,1,L.lerp(1.15,.55,i)),o.rotateY(n);let s=Math.sin(n)*2.75,c=.9+Math.cos(n)*3.1;o.translate(s,114.9-a/2,c),e.push(GD(o,(e,t)=>{t.setHex(LD).lerp(HD.setHex(AD),.8*WD(e.y,114.3,114.9))})),r.push([s,114.95,c])}return e.push(JD(r,.45,ID)),KD(e)}function aO(e){return KD([qD([e*29.4,103.8,-4.2],[e*32.9,104.1,-4],.85),qD([e*29.4,102,-6.2],[e*32.3,101.8,-6.5],.7)])}function oO(e){let t=new Mu(1,12,9);return t.scale(.9,1.7,1.5),t.translate(e*13.3,103.4,-5.5),GD(t,(e,t)=>{t.setHex(15327954).lerp(HD.setHex(AD),Math.sin(e.y*3.1+e.z*2.3)>.4?.75:.1)})}function sO(){return KD([GD(new Zl(2,2.1,1.8,10).translate(0,80.4,-5.4),OD),GD(new Zl(1.8,1.8,.6,10).translate(0,81.6,-5.4),12563866),qD([0,81.9,-5.4],[.4,85.4,-5.8],1.9),JD([[.2,84.6,-5.6],[.3,86.6,-5.8],[.9,87.8,-5.2]],.55,15255984),JD([[-6.5,81.6,.5],[-3,82.6,3.6],[1.5,81.8,4.4],[6,82.8,2],[7,81.6,-2],[3.5,82.9,-1],[-1,81.7,.6],[-5,82.9,-2.6],[-7.2,81.5,-4]],1.25,zD,!0),JD([[4.5,83.6,1.6],[1,84.4,2.4],[-3,83.5,.6],[-2,84.2,-2.6],[2.5,83.6,-2.2]],1.05,12548720,!0),GD(new Mu(1,10,7).scale(3.2,1.6,2.6).translate(-6,82.2,1.5),4854808)])}function cO(e){return KD(Dg.map((t,n)=>{let r=new z(-t[0],0,-2-t[2]).normalize();return qD([e*(t[0]+r.x*3),t[1]-.3,t[2]+r.z*3],[e*(t[0]-r.x*1.3),t[1]+.7-.3*n,t[2]-r.z*1.3+.7],.75,.5)}))}function lO(){let e=[];for(let t=0;t<5;t+=1){let n=.5+t*1.26,r=Math.cos(n),i=Math.sin(n);e.push(qD([r*5.8,99.5+i*5.8,3.9],[r*2.9,99.5+i*2.9,2.4],.7,.5)),e.push(qD([i*5.6,99.5-r*5.6,-9.6],[i*4.3,99.5-r*4.3,-12.8],.7,.5))}return KD(e)}var uO=new z,dO=new z,fO=new z,pO=new z,mO=new WeakMap;function hO(e,t,n){let r=e.getAttribute(`position`),i=e.getAttribute(`skinIndex`),a=e.getAttribute(`skinWeight`),o=new Map,s=new z;for(let e of t)o.has(e)||(o.set(e,o.size),s.add(UD.fromBufferAttribute(r,e)));s.multiplyScalar(1/o.size);let c=n.layers.length,l=[],u=[],d=[],f=[],p=new Map;for(let e of o.keys()){for(let[t,[o,c]]of n.layers.entries()){n.place(UD.fromBufferAttribute(r,e),s,o,uO),l.push(uO.x,uO.y,uO.z),VD.setHex(c).multiplyScalar(.8+.4*Math.abs(Math.sin(e*12.9898+t*4.1))),u.push(VD.r,VD.g,VD.b);for(let t=0;t<4;t+=1)d.push(i.getComponent(e,t)),f.push(a.getComponent(e,t))}for(let t=0;t<4;t+=1)p.set(i.getComponent(e,t),(p.get(i.getComponent(e,t))??0)+a.getComponent(e,t))}let m=o.size*c;if(n.middle!==null){n.place(s,s,1,uO),l.push(uO.x,uO.y,uO.z),VD.setHex(n.middle),u.push(VD.r,VD.g,VD.b);let e=[...p].sort((e,t)=>t[1]-e[1]).slice(0,4),t=e.reduce((e,[,t])=>e+t,0);for(let n=0;n<4;n+=1)d.push(e[n]?.[0]??0),f.push((e[n]?.[1]??0)/t)}let h=[],g=(e,t,r)=>{uO.fromArray(l,e*3),dO.fromArray(l,t*3),fO.fromArray(l,r*3),n.facing(UD.copy(uO).add(dO).add(fO).multiplyScalar(1/3),s,pO);let i=dO.sub(uO).cross(fO.sub(uO)).dot(pO)>=0;h.push(e,i?t:r,i?r:t)};for(let e=0;evoid a.copy(n).lerp(r,i).addScaledVector(e,-t*i),facing:(t,n,r)=>void r.copy(e),middle:ND}}var _O={layers:[[0,jD],[.4,jD],[1,ND]],place:(e,t,n,r)=>void r.set(L.lerp(e.x,t.x,.22*n),L.lerp(e.y,t.y,.22*n),L.lerp(e.z,t.z-Math.sign(e.z-t.z)*.6,n)),facing:(e,t,n)=>void n.set(t.x-e.x,t.y-e.y,0),middle:null},vO={nose:{bone:`head`,mesh:`head`,at:[0,117,5.3],axis:[0,-.3,1]},mouth:{bone:`head`,mesh:`head`,at:[0,114.3,4.6],axis:[0,-.35,1]},eye_left:{bone:`head`,mesh:`head`,at:Fg[0],axis:[.2,0,1]},eye_right:{bone:`head`,mesh:`head`,at:Fg[1],axis:[-.2,0,1]},ear_left:{bone:`head`,mesh:`head`,at:Eg,axis:[1,-.2,0]},ear_right:{bone:`head`,mesh:`head`,at:[-Eg[0],Eg[1],Eg[2]],axis:[-1,-.2,0]},skull:{bone:`head`,mesh:`head`,at:[0,127.5,-3],axis:[0,1,0]},neck:{bone:`neck`,mesh:`body`,at:[0,109,-2],axis:[0,1,0]},shoulder_left:{bone:`clavicleL`,mesh:`body`,at:[15,103.5,-5.5],axis:[1,0,0]},shoulder_right:{bone:`clavicleR`,mesh:`body`,at:[-15,103.5,-5.5],axis:[-1,0,0]},elbow_left:{bone:`shoulderL`,mesh:`body`,at:[31,102.8,-5.2],axis:[1,0,0]},elbow_right:{bone:`shoulderR`,mesh:`body`,at:[-31,102.8,-5.2],axis:[-1,0,0]},chest:{bone:`chest`,mesh:`body`,at:[0,99.5,5.6],axis:[0,0,1]},ribs_left:{bone:`chest`,mesh:`body`,at:Dg[1],axis:[1,0,.3]},ribs_right:{bone:`chest`,mesh:`body`,at:[-Dg[1][0],Dg[1][1],Dg[1][2]],axis:[-1,0,.3]},liver:{bone:`chest`,mesh:`body`,at:[-8.5,89.5,4.4],axis:[-.5,0,1]},belly:{bone:`spine`,mesh:`body`,at:Ag,axis:[0,-.2,1]},waist:{bone:`spine`,mesh:`body`,at:[0,81.5,-1],axis:[0,1,0]},crotch:{bone:`hips`,mesh:`body`,at:[0,72,2],axis:[0,-1,.15]},knee_left:{bone:`kneeL`,mesh:`body`,at:kg,axis:[1,0,.2]},knee_right:{bone:`kneeR`,mesh:`body`,at:[-kg[0],kg[1],kg[2]],axis:[-1,0,.2]}},yO=[`skull`,`maw`,`chest`,`waist`,...TD.flatMap(e=>[`fracture`,`ribs`,`knee`,`elbow`,`shoulder`].map(t=>`${t}_${e}`))],bO={left:{sign:1,bone:`L`,ear:`leftEar`,face:`leftFace`,cheek:`leftCheek`,eye:`leftEye`,arm:`leftArm`,shoulder:`leftShoulder`,elbow:`leftElbow`,ribs:`leftRibs`,knee:`leftKnee`,smear:`leftShoulderSmear`},right:{sign:-1,bone:`R`,ear:`rightEar`,face:`rightFace`,cheek:`rightCheek`,eye:`rightEye`,arm:`rightArm`,shoulder:`rightShoulder`,elbow:`rightElbow`,ribs:`rightRibs`,knee:`rightKnee`,smear:`rightShoulderSmear`}},xO=class{boxer;headRaises=[];bodyRaises=[];gloveGone={left:!1,right:!1};eyeOut={left:!1,right:!1};eyeShut={left:!1,right:!1};gloved;flesh;owned=[];tongueTip=new z;tongueVelocity=new z;root=new z;rest=new z;reach=new z;matrix=new Ho;fit=new Ho;upperGone=!1;headHidden=!1;injuries=0;blood=`full`;hole=!1;jawHung=!1;pieces=new Map;geometries=[];skull=null;skullMount=new Ho;brain=null;tongue=null;bodyShadow=null;standIns=null;tongueHung=!1;constructor(e){this.boxer=e,this.gloved={left:e.gloveMesh(`left`).visible,right:e.gloveMesh(`right`).visible},this.flesh=new Ku({vertexColors:!0,roughness:.3,metalness:0,side:2}),tw(this.flesh)}apply(e,t){let n=0;for(let t=0;tc*3)&&(this.tongueHung=!0,l.copy(o).addScaledVector(s,c),u.set(0,0,0));let d=this.reach.copy(l);e>1e-4&&(u.y-=9.8*e,u.addScaledVector(UD.copy(o).addScaledVector(s,c).sub(l),60*e).multiplyScalar(Math.exp(-5*e)),d.addScaledVector(u,e)),d.sub(o).setLength(c),d.angleTo(s)>nO&&(UD.copy(d).addScaledVector(s,-d.dot(s)).setLength(Math.sin(nO)*c),d.copy(s).multiplyScalar(Math.cos(nO)*c).add(UD)),d.add(o),e>1e-4&&u.copy(d).sub(l).multiplyScalar(1/e),l.copy(d),r.quaternion.setFromUnitVectors(DD,UD.copy(l).sub(o).transformDirection(a.invert()))}compileStandIns(){if(this.standIns!==null)return this.standIns;let e=this.boxer;for(let e of yO)this.built(e);let t=[],n=[[e.headMesh,e.headInjury],[wD(e,`body`),e.bodyInjury]];for(let[e,r]of n)for(let n of[!1,!0]){let i=e===null?null:r.variant(n);if(e===null||i===null)continue;this.owned.push(i);let a=new rl(e.geometry,i);if(a.bind(e.skeleton,e.bindMatrix),a.frustumCulled=!1,a.castShadow=e.castShadow,n){let e=r.shadowVariant();this.owned.push(e),a.customDepthMaterial=e}t.push(a)}this.brain!==null&&t.push(new V(this.brain.geometry,this.flesh));let r=this.built(`waist`).find(e=>e instanceof rl);if(r!==void 0){let e=new rl(r.geometry,this.flesh);e.bind(r.skeleton,r.bindMatrix),e.frustumCulled=!1,t.push(e)}return this.standIns=t,t}clear(){this.upperGone=!1,this.hole=!1,this.injuries=0,this.show(),this.setPallor(0)}dispose(){this.clear();for(let e of this.standIns??[])e.removeFromParent();this.standIns=null;for(let e of this.pieces.values())for(let t of e)t.removeFromParent();for(let e of this.geometries)e.dispose();this.pieces.clear(),this.geometries.length=0,this.skull=this.brain=this.tongue=null,this.bodyShadow?.dispose(),this.bodyShadow=null;for(let e of this.owned)e.dispose();this.owned.length=0,this.flesh.dispose()}has(e){return!!(this.injuries&1<this.blood!==`off`&&this.has(e),o=r&&this.upperGone,s=this.isPartGone(`jaw`),c=r&&this.has(`skull_fractured`);t.setExplicit(r),n.setExplicit(r);let l=this.headRaises,u=this.bodyRaises;l.length=0,u.length=0;let d=(e,t,n,r=0,a=0)=>void e.push({site:t,bruise:n,blood:r*i,cut:a});if(t.setWound(`nose`,+!!a(`broken_nose`)),a(`broken_nose`)&&d(l,`nose`,1.1,1.4),a(`broken_jaw`)||a(`jaw_torn`)){let e=a(`jaw_torn`);d(l,`chin`,1.2),d(l,`leftJaw`,e?1.2:1),d(l,`rightJaw`,e?1.2:1),d(l,`mouth`,.7,e?1.4:.9,.7),d(u,`neckSmear`,0,e?1.4:.6)}a(`skull_fractured`)&&(d(l,`forehead`,1.1,1.4,+!r),d(u,`neckSmear`,0,1.1)),t.setGone(`jaw`,+!!s),t.setGone(`skull`,+!!c);let f=!1;for(let i of TD){let s=bO[i];t.setWound(s.ear,+!!a(`ear_${i}_torn`));let c=a(`face_${i}_flayed`);t.setWound(s.face,+!!c),c&&(d(l,s.cheek,.8,1.2),d(u,`neckSmear`,0,.9));let p=a(`eye_${i}_out`);p&&d(l,s.eye,1.1,+!r),this.eyeOut[i]&&!(p&&r)&&(f=!0),this.eyeOut[i]=p&&r,this.eyeShut[i]=p&&!r;let m=o?0:this.isPartGone(`arm_${i}`)?2:+!!this.isPartGone(`forearm_${i}`),h=!r&&a(`arm_${i}_torn`),g=!r&&a(`forearm_${i}_severed`);n.setGone(s.arm,m),n.setWound(s.shoulder,a(`shoulder_${i}_dislocated`)||h?1:0),n.setWound(s.elbow,a(`arm_${i}_broken`)||g?1:0),n.setWound(s.ribs,+!!a(`ribs_${i}_broken`)),n.setWound(s.knee,+!!a(`knee_${i}_blown`)),(m===2||h)&&d(u,s.smear,0,1.2),a(`ribs_${i}_broken`)&&d(u,s.ribs,1.2);let _=m>0||o;_?e.gloveMesh(i).visible=!1:this.gloveGone[i]&&(e.gloveMesh(i).visible=this.gloved[i]&&!e.isHandDismembered(i)),this.gloveGone[i]=_,this.piece(`fracture_${i}`,r&&!o&&m===0&&this.has(`arm_${i}_broken`)),this.piece(`ribs_${i}`,r&&!o&&this.has(`ribs_${i}_broken`)),this.piece(`knee_${i}`,r&&this.has(`knee_${i}_blown`)),this.piece(`elbow_${i}`,m===1),this.piece(`shoulder_${i}`,m===2)}f&&t.setEyeOut(this.eyeOut.left&&this.eyeOut.right?`both`:this.eyeOut.left?`left`:this.eyeOut.right?`right`:null),n.setWound(`liver`,+!!a(`liver_ruptured`)),n.setWound(`belly`,+!!a(`disemboweled`)),n.setGone(`waist`,+!!o),n.setGone(`chestHole`,r&&this.hole&&!o?1:0);let p=r&&this.has(`broken_jaw`)&&!s;this.jawHung&&!p&&t.setJaw(0),this.jawHung=p,o?e.headMesh.visible=!1:this.headHidden&&(e.headMesh.visible=!0),this.headHidden=o,this.piece(`skull`,c&&!o),this.piece(`maw`,s&&!o),this.piece(`chest`,r&&this.hole&&!o),this.piece(`waist`,o),c&&!o&&this.fitSkull();let m=wD(e,`body`);m!==null&&n.material!==null&&(n.open?m.customDepthMaterial=this.bodyShadow??=n.shadowMaterial():m.customDepthMaterial===this.bodyShadow&&(m.customDepthMaterial=void 0))}assert(){let e=this.boxer,t=e.headInjury,n=this.headRaises,r=this.bodyRaises;for(let e=0;e0,o=this.eyeOut.right||i.y>0;(this.eyeOut.left&&i.x===0||this.eyeOut.right&&i.y===0)&&t.setEyeOut(a&&o?`both`:a?`left`:`right`);let s=t.uniforms.uInjuryLid.value;(this.eyeShut.left||this.eyeShut.right)&&t.setEyesShut(this.eyeShut.left?1:s[0].w,this.eyeShut.right?1:s[1].w),this.gloveGone.left&&(e.gloveMesh(`left`).visible=!1),this.gloveGone.right&&(e.gloveMesh(`right`).visible=!1)}piece(e,t){if(t||this.pieces.has(e))for(let n of this.built(e))n.visible=t}built(e){let t=this.pieces.get(e);return t===void 0&&(t=this.make(e),this.pieces.set(e,t)),t}bindToWorld(e,t,n){let r=this.boxer.rig.bones[t],i=e.skeleton.bones.indexOf(r);return i<0?!1:(n.multiplyMatrices(r.matrixWorld,e.skeleton.boneInverses[i]).multiply(e.bindMatrix),!0)}skinMatrix(e,t,n){let r=e===`head`?this.boxer.headMesh:wD(this.boxer,`body`);return r!==null&&this.bindToWorld(r,t,n)}fitSkull(){let e=this.skull;if(e===null)return;let t=this.boxer.look,n=Fy(UD.set(5.9,124.6,-3.3),t,this.root).x,r=Fy(UD.set(-5.9,124.6,-3.3),t,this.root).x,i=Fy(UD.set(0,124.6,3.3),t,this.root).z,a=Fy(UD.set(0,124.6,-9.9),t,this.root).z,o=(i-a)/13.2;this.fit.makeScale((n-r)/11.8,1,o).setPosition((n+r)/2,0,(i+a)/2+3.3*o),e.matrix.multiplyMatrices(this.skullMount,this.fit)}solid(e){this.geometries.push(e);let t=new V(e,this.flesh);return t.receiveShadow=!0,t}mount(e,t,n=wD(this.boxer,`body`)){let r=this.boxer.rig.bones[e],i=n===null?-1:n.skeleton.bones.indexOf(r);return n!==null&&i>=0&&t.matrix.multiplyMatrices(n.skeleton.boneInverses[i],n.bindMatrix),t.matrixAutoUpdate=!1,t.visible=!1,r.add(t),t}closing(e,t,n){let r=wD(this.boxer,`body`);if(r===null)return[];let i=mO.get(r.geometry);i===void 0&&mO.set(r.geometry,i=new Map);let a=i.get(e);if(a===void 0&&i.set(e,a=J_(r.geometry,t)),a.length===0)return[];let o=new rl(hO(r.geometry,a,n),this.flesh);return this.geometries.push(o.geometry),o.bind(r.skeleton,r.bindMatrix),o.frustumCulled=!1,o.receiveShadow=!0,o.visible=!1,(r.parent??this.boxer.root).add(o),[o]}make(e){let t=this.boxer.headMesh;if(e===`skull`){let e=new gs,n=this.solid(ZD());return n.position.set(...YD),e.add(n,this.solid(QD())),this.mount(`head`,e,t),this.skullMount.copy(e.matrix),this.skull=e,this.brain=n,[e]}if(e===`maw`){let e=new gs,n=this.solid(rO());return n.position.set(...$D),e.add(this.solid(iO()),n),this.tongue=n,[this.mount(`head`,e,t)]}if(e===`chest`)return[...this.closing(e,e=>gg(e.x,e.y,e.z)<=0,_O),this.mount(`chest`,this.solid(lO()))];if(e===`waist`)return[...this.closing(e,e=>!xD(`upper_body`,`body`,e),gO(ED,.8)),this.mount(`spine`,this.solid(sO()))];let n=e.endsWith(`_left`)?`left`:`right`,{sign:r,bone:i}=bO[n];switch(e.slice(0,e.indexOf(`_`))){case`fracture`:return[this.mount(`shoulder${i}`,this.solid(qD([r*27.6,103.3,-5],[r*(Og[0]+2.4),Og[1]+2.6,Og[2]+1.4],1.05))),this.mount(`elbow${i}`,this.solid(KD([qD([r*34.6,102.3,-4.8],[r*30,98.6,-.8],.8),qD([r*34,103.2,-5.6],[r*30.6,100.6,-9.8],.6)])))];case`ribs`:return[this.mount(`chest`,this.solid(cO(r)))];case`knee`:return[this.mount(`knee${i}`,this.solid(qD([r*8.8,37.8,-4.6],[r*(kg[0]+3.8),kg[1]-1.2,kg[2]-.2],1.2)))];case`elbow`:return[...this.closing(e,e=>!xD(`forearm_${n}`,`body`,e),gO(new z(r,0,0),0)),this.mount(`shoulder${i}`,this.solid(aO(r)))];case`shoulder`:return[...this.closing(e,e=>!xD(`arm_${n}`,`body`,e),gO(new z(r,0,0),1.6)),this.mount(`clavicle${i}`,this.solid(oO(r)))]}}};function SO(e){switch(e){case`skull_fractured`:return`skull`;case`broken_jaw`:return`jaw`;case`broken_nose`:return`nose`;case`ribs_left_broken`:return`ribs_left`;case`ribs_right_broken`:return`ribs_right`;case`arm_left_broken`:return`arm_left`;case`arm_right_broken`:return`arm_right`;case`knee_left_blown`:return`knee_left`;case`knee_right_blown`:return`knee_right`;case`shoulder_left_dislocated`:return`shoulder_left`;case`shoulder_right_dislocated`:return`shoulder_right`;default:return null}}var CO=.3,wO=1.35,TO=.07,EO=.25,DO=.4,OO=.13,kO=.6,AO=.66,jO=1.05,MO=new B(10474751),NO=new B(16777215),PO=new B(132105),FO=5,IO=8,LO=(e,t)=>[t===`left`?e[0]:-e[0],e[1],e[2]];function RO(e){let t=e.endsWith(`_right`)?`right`:`left`,n=t===`left`?`L`:`R`;return e===`skull`?{center:[0,123.5,-1],radius:13,anchor:`skull`}:e===`jaw`?{center:[0,113.5,2],radius:10,anchor:`mouth`}:e===`nose`?{center:[0,118,3],radius:9,anchor:`nose`}:e.startsWith(`ribs`)?{center:LO(Dg[1],t),radius:26,anchor:`ribs_${t}`}:e.startsWith(`arm`)?{center:LO(Og,t),radius:17,anchor:`elbow_${t}`,joint:`elbow${n}`}:e.startsWith(`knee`)?{center:LO(kg,t),radius:20,anchor:`knee_${t}`,joint:`knee${n}`}:{center:LO([15,103.5,-5.5],t),radius:15,anchor:`shoulder_${t}`,joint:`shoulder${n}`}}var zO=[1,1,1],BO=[.06,.07,.09],VO=[.3,.32,.36],HO=[1,0,0],UO=new z(0,1,0);function WO(e,t){e.deleteAttribute(`uv`);let n=e.getAttribute(`position`).count,r=new Float32Array(n*3);for(let e=0;e0?.25:-1.75,e>0?1.75:-.25)])}function ik(){let e=WO(new Mu(1,8,5,Math.PI/2-.55,1.1,.35,.7).scale(5.75,6.25,7.45).translate(0,121.6,-3),VO),t=(e,t)=>[-5.8*Math.cos(e)*Math.sin(t),121.6+6.3*Math.cos(t),-3+7.5*Math.sin(e)*Math.sin(t)],n=[];for(let[e,r,i,a]of[[1,.35,.7,.05],[2.1,.4,2.7,.2],[2.1,1.05,2.8,1.2],[1,1.05,.4,1.3],[1.57,1.05,1.5,1.5],[1.57,.35,1.9,.02]]){let o=t((e+i)/2+.12,(r+a)/2+.05);n.push(XO(t(e,r),o,.22,BO),XO(o,t(i,a),.16,BO))}return ZO([e,...n])}function ak(e,t,n){let r=[];for(let i=e;i{t.call(e,n,r),n.vertexShader=n.vertexShader.replace(`#include `,`${zw}\n#include `)},e.customProgramCacheKey=()=>`${n}-on-canvas`,e.needsUpdate=!0}function Vw(e,t){let n=t.outfit!==void 0,r=!n||t.wounds===!0,i=[],a=[],o=new Map,s=null,c={value:0},l=null,u=null;if(e.traverse(e=>{if(!(e instanceof Hl)||Array.isArray(e.material))return;let d=e.material.name,f=Cw[d];if(f===void 0)throw Error(`fighter GLB has unsupported material ${d}`);let p=o.get(d);if(p===void 0){let e=d===`MHeadMat0`||d===`MBodyMat0`,m=t.outfit,h=d===`GlovesMat0`?t.gear:d===`PantsMat0`?m?.trousers??t.gear:d===`ShoesMat0`&&m!==void 0?m.shoes:16777215,g=Rw(f);p=e&&!n?new Md({map:g,color:h,roughness:.58,metalness:.02,clearcoat:.25,clearcoatRoughness:.6}):new jd({map:g,color:h,roughness:e?.58:ww[d]??.4,metalness:e?.02:.03}),p.name=d,o.set(d,p),a.push(p),e&&i.push(p),d===`MHeadMat0`&&(l=new z_(r?p:null,Lg,{core:v_,lids:b_})),d===`MBodyMat0`&&(u=new z_(r?p:null,Rg,{core:y_,wash:!0}));let _=Hw[d];m!==void 0&&_!==void 0?qb(p,_,m):d===`PantsMat0`?c=ob(p,!1,`trunks`):d===`GlovesMat0`&&(s=ob(p)),e&&!n&&ex(p),Bw(p)}if(e.material=p,!n&&e.name===`BoxerPants`){let t=kw.get(e.geometry);t===void 0&&kw.set(e.geometry,t=dx(e.geometry,e.skeleton.bones.map(e=>e.name))),e.geometry=t}e.castShadow=!n,e.receiveShadow=!0,e.frustumCulled=!1}),i.length!==2||s===null||a.length!==5||l===null||u===null)throw Error(`fighter GLB material contract failed: ${i.length} skin, ${a.length} total`);return{skin:i,gloveBlood:s,trunksBlood:c,owned:a,headInjury:l,bodyInjury:u}}var Hw={MHeadMat0:`head`,MBodyMat0:`body`,ShoesMat0:`shoes`,PantsMat0:`pants`},Uw=new V().setRGB(.6,.32,.19,uo),Ww=(e,t,n,r)=>e+(t-e)*(1-Math.exp(-n*r)),Gw=(e,t,n,r)=>e+(((t-e+Math.PI)%(Math.PI*2)+Math.PI*2)%(Math.PI*2)-Math.PI)*(1-Math.exp(-n*r)),Kw=R.clamp,qw=class{root=new tc;bones=new Map;rig;metrics;skinMaterials;ownedMaterials;gloveBlood;trunksBlood;headMeshes=[];handMeshes={left:[],right:[]};decapitated=!1;burst=!1;dismemberedHands={left:!1,right:!1};dressed;ownedGeometries=[];gearBaseColor;skinBaseColor;headInjury;bodyInjury;headLook;face;bareHand;constructor(e,t){let n=Qv(e.scene);n.scale.setScalar(1),this.root.add(n);let r=Vw(n,t);this.skinMaterials=r.skin,this.ownedMaterials=[...r.owned],this.gloveBlood=r.gloveBlood,this.trunksBlood=r.trunksBlood,this.headInjury=r.headInjury,this.bodyInjury=r.bodyInjury,this.gearBaseColor=new V(t.gear),this.skinBaseColor=new V(t.skin),this.dressed=t.outfit!==void 0,n.traverse(e=>{e instanceof Hl&&e.name===`BoxerHead`&&this.headMeshes.push(e),e instanceof Hl&&e.name===`BoxerGloveLeft`&&this.handMeshes.left.push(e),e instanceof Hl&&e.name===`BoxerGloveRight`&&this.handMeshes.right.push(e),e instanceof Ul&&this.bones.set(e.name,e)});let i=Object.values(tb).filter(e=>!this.bones.has(e));if(i.length>0)throw Error(`fighter GLB missing required bones: ${i.join(`, `)}`);if(this.headMeshes.length!==1)throw Error(`fighter GLB requires one BoxerHead mesh, found ${this.headMeshes.length}`);let a=this.headInjury.shadowMaterial();this.headMeshes[0].customDepthMaterial=a;let o=this.headMeshes[0].material;o.side=0,o.shadowSide=1,this.ownedMaterials.push(a);for(let e of[`left`,`right`])if(this.handMeshes[e].length!==1)throw Error(`fighter GLB requires one ${e} glove mesh, found ${this.handMeshes[e].length}`);this.root.updateMatrixWorld(!0),this.rig=new Lx(this.root),this.headLook=new Eb(this.headMeshes[0].material),this.face=new gx(t.gear^t.skin),this.bareHand=t.outfit===void 0?null:this.addHands(t.outfit),this.setLook(t.look??sb);let s=this.rig.metrics;this.metrics={armUpper:s.armL.upper,armFore:s.armL.lower,legThigh:s.legL.upper,legShin:s.legL.lower,headRestY:s.headHeight,chestRestY:s.chestHeight,ankleRestY:s.ankleHeight}}bone(e){return this.bones.get(tb[e]??e)??null}setGloveBlood(e){this.gloveBlood.value=Kw(e,0,1)}get gloveBloodLevel(){return this.gloveBlood.value}setTrunksBlood(e){this.trunksBlood.value=Kw(e,0,1)}get trunksBloodLevel(){return this.trunksBlood.value}get headMesh(){return this.headMeshes[0]}gloveMesh(e){return this.handMeshes[e][0]}get skin(){return this.skinMaterials[0]}get isDecapitated(){return this.decapitated}setDecapitated(e){this.decapitated=e,this.burst=!1,this.headInjury.setSevered(e),this.bone(`head`).visible=!e}get isHeadBurst(){return this.burst}setHeadBurst(e){this.burst=e,this.decapitated=!1,this.headInjury.setBurst(e),this.bone(`head`).visible=!e}isHandDismembered(e){return this.dismemberedHands[e]}setHandDismembered(e,t){this.dismemberedHands[e]=t;for(let n of this.handMeshes[e])n.visible=!t&&!this.dressed}setLook(e){this.headLook.set(e);for(let t of this.skinMaterials)t.color.setHex(e.tint);this.bareHand?.color.copy(Uw).multiply(this.skinMaterials[0].color)}get look(){return this.headLook.look}addHands(e){let t=e.gloves!==null,n=new jd({color:t?e.gloves:Uw,roughness:t?.38:.6,metalness:.02}),r=t?n:new jd({color:new V(e.shirt).multiplyScalar(.9),roughness:.88,metalness:0});this.ownedMaterials.push(n),r!==n&&this.ownedMaterials.push(r);let i=Zb();this.ownedGeometries.push(i);for(let e of[`left`,`right`]){for(let t of this.handMeshes[e])t.visible=!1;let t=Xb(e);this.ownedGeometries.push(t);let a=e===`left`?`L`:`R`;for(let[o,s,c,l]of[[this.rig.bones[`glove${a}`],t,n,`hand-${e}`],[this.rig.bones[`elbow${a}`],i,r,`cuff-${e}`]]){let e=new H(s,c);e.name=l,e.castShadow=!1,e.receiveShadow=!0,o.add(e)}}return t?null:n}setSkinClearcoat(e){for(let t of this.skinMaterials)t instanceof Md&&(t.clearcoat=e)}flinch(e,t){this.face.flinch(e,t)}updateFace(e,t,n,r,i,a){this.face.update(e,t,n,r,i,a),this.headLook.setExpression(this.face.lids,this.face.mouth,this.face.brow)}dispose(){for(let e of this.ownedMaterials)e.dispose();for(let e of this.ownedGeometries)e.dispose();Lw(this.root)}},Jw=(e,t,n,r,i)=>{let a=e.value,o=e.velocity;o.addScaledVector(a,-n*t).multiplyScalar(Math.exp(-r*t)),a.addScaledVector(o,t),a.length()>i&&a.setLength(i)},Yw=.06,Xw=150,Zw=.58,Qw=.25,$w=.32,eT=9,tT=1,nT=.08,rT=.3,iT=1,aT=1.6,oT=.25,sT=.12,cT=.33,lT=.3,uT=8;function dT(e,t,n,r){gw(e,t,n);let i=Math.hypot(n.x,n.z);if(i<=0)return r.x=0,r.z=0,0;let a=Hx(0,oT,i),o=1+sT*a/i;return r.x=n.x*o,r.z=n.z*o,a}var fT=(e,t)=>e===0||Math.sign(t)===Math.sign(e)&&Math.abs(t)>Math.abs(e)?t:e,pT=.75,mT=.38,hT=.72,gT=.5,_T=.2,vT=.55,yT=.7,bT=6,xT=.4,ST=.2,CT=.3,wT=.5,TT=class{mapping;boxer;solver;yaw=0;yawInitialized=!1;rootX=null;rootZ=0;punchActive=!1;punchAgeTicks=0;punchTotalTicks=1;punchClass=`jab`;punchHand=`left`;punchTarget=`head`;punchPower=`normal`;punchTiming=se(`jab`,`head`,`normal`);actionId=null;completedActionId=null;ownActionId=null;ownPress=!1;ownLeadTicks=0;ownAuthoritativeAge=null;ownWaitedTicks=0;ownExpectedTicks=0;ownPulled=!1;ownSequence=null;ownStarted=!1;ownPressedAt=0;ownRefused=!1;ownCut=!1;recoveryCut=!1;ownQueued=null;contactId=null;contactParried=!1;shownFighter=null;shownOpponent=null;retiredOwnIds=[];pressesLanded=[];anticipatedId=null;hitstop=0;hitstopScale=1;hitstopLag=0;downState=`up`;fallAge=0;riseProgress=0;riseFrom=0;fallSide=0;fallProne=!1;fallKneel=!1;windedSide=-1;windedTime=0;winded=0;landProne=!1;landSide=0;landShift=new B;landSettled=!1;fallen=sD();fallenFromPhysics=!1;riseRoot=new B;riseRootFrom=new B;downPoles=[new B,new B,new B,new B];downPolesSet=!1;poleSettle=0;characterInverse=new Ds;place=new B;riseRootVelocity=new B;liveOpponentHead=new B;hasLiveHead=!1;guardOpponentHead=new B;opponentHeadOffset=new B;opponentSteadySeconds=0;followHead=0;aimActionId=null;refereeContactId=null;refereeHead=new B;hasRefereeHead=!1;followReferee=0;headKick={value:new B,velocity:new B};torsoKick={value:new B,velocity:new B};rootKick={value:new B,velocity:new B};coverKick={value:new B,velocity:new B};foldDelay=0;pendingFold=0;coverDelay=0;pendingCover=0;liverDelay=0;pendingLiver=0;armKick={value:new B,velocity:new B};handsDrop=0;guardWasBroken=!1;hurtSeed=1;rockedTime=0;rockedPhase=0;nextLurch=0;guardKick=0;guardHigh=0;guardLow=0;guardSpent=0;slip=0;weave=0;weaveTime=0;pull=0;crouchExtra=0;bouncePhase=0;weightPhase=0;breathPhase=0;stunPhase=0;feintTimer=2;pawAge=aE;pawCount=0;idleSeed=-1;manner={...aS.balanced,lead:new B,rear:new B};mannerStyle=null;mannerSeed=0;breath=0;battered=0;walkLean=new z;leadingFoot=-1;nextFoot=-1;steppedYaw=0;stunAmount=0;tired=0;clinchWeight=0;foulWeight=0;tauntWeight=0;crowding=0;tight=0;punchCommit=0;punchMiss=0;headSpace=new z;ownHead=new B;ropeHold=new B;ropeExcess={x:0,z:0};ropeOwn={x:0,z:0};ropeTheirs={x:0,z:0};ropeLeanTarget=0;ropeLean=0;ropeOutward=new B(1,0,0);ropeLocal=new B;tauntEnd=null;lastSpeed=0;stool;stoolRoot=new B;stoolYaw=0;enswell;bottle;treatProp=`enswell`;treatTarget=new B;treatScratch=new B;treatFacing=new B(0,0,-1);treatFacingLocal=new B;treatSide=1;treating=!1;treatWeight=0;resting=!1;seated=0;stillTime=0;celebrateTime=0;celebration=0;waveTime=0;wave=0;breakTime=0;breakWeight=0;breakFighters=[new B,new B];breakAimed=!1;attending=!1;verdictSide=0;verdict=null;squareWeight=0;raisedWeight=0;bowedWeight=0;wrists=[null,null];wristTargets=[new B,new B];wristWeights=[0,0];attendWeight=0;countdownTicks=null;countdownEnd=null;touchWeight=0;touchOffset=new B;touchVelocity=new B;debugHoldImpact=!1;feet=[{planted:new B,from:new B,to:new B,progress:1,stepping:!1,duration:.2},{planted:new B,from:new B,to:new B,progress:1,stepping:!1,duration:.2}];feetInitialized=!1;dislocation=null;scratch=new B;scratchB=new B;scratchC=new B;scratchD=new B;scratchE=new B;clinchCentre=new B;clinchForward=new B;clinchTemp=new B;scratchQ=new rs;headWorld=new B;hand={L:this.makeHand(),R:this.makeHand()};punchGuard=this.makeHand();punchDir=new B;punchContact=new B;punchStart=new B;punchSweepFrom=new B;punchSweepTo=new B;punchMid=new B;foot={L:this.makeFoot(),R:this.makeFoot()};torso={hips:new B,hipsYaw:0,hipsPitch:0,hipsRoll:0,shouldersYaw:0,spinePitch:0,spineRoll:0,headYaw:0,headPitch:0,headRoll:0,headOffset:new B};pose;downStanding=sD();downFrom=sD();downTo=sD();downResult=sD();downStand=1;fallStart=sD();fallStartStand=1;fallFromGetUp=!1;referee;refereeCount=0;refereeCounting=!1;countChangedTick=null;countWeight=0;countPump=0;watchPoint=new B;watching=!1;duty=`watch`;backWeight=0;waveSlow=!1;mood=`work`;mournWeight=0;cheerWeight=0;treatUrgency=0;gazeYaw=0;gazePitch=0;travel=new B;strideYaw=0;backing=!1;footYaw=[0,0];ragdoll;forcedDown=!1;heldDown=!1;authoredNextFall=!1;obstacle=null;blows=0;riseBlendAge=0;posedInjuries=0;armCarry=[`whole`,`whole`];armLimp=[0,0];armSnap=[0,0];armDangle=[lE(),lE()];forearmDangle=[lE(),lE()];trunkLow=new B;trunkHigh=new B;lostLean=0;cover=0;kneeBlown=[!1,!1];kneeGive=[0,0];gutted=!1;hunch=0;liver=!1;curl=0;faintTarget=0;faint=0;retchTime=0;retching=0;dazed=!1;daze=0;dazeTime=0;stepPace=[1,1];stepLift=[1,1];stepSlack=1;hurt=!1;punchReach=0;dead=!1;deathFall=!1;deathStyle=`crumple`;deathAge=0;throe=fE.length;throeSide=0;laidOut=!1;constructor(e,t,n={}){this.mapping=t,this.boxer=e,this.referee=n.referee===!0,this.solver=new nS(e.rig),this.pose={torso:this.torso,handL:this.hand.L,handR:this.hand.R,footL:this.foot.L,footR:this.foot.R,shrugL:0,shrugR:0},this.stool=PD(),this.stool.group.position.set(0,0,.02),e.root.add(this.stool.group),this.enswell=MD(),e.rig.bones.gloveL.add(this.enswell.group),this.bottle=ND(),e.rig.bones.gloveL.add(this.bottle.group),this.ragdoll=this.referee&&n.knockout!==!0?null:new ew(e.rig,e.root)}primeReplayFall(){this.ragdoll?.prime()}useAuthoredFall(){this.authoredNextFall=!0}knockOut(){this.forcedDown=!0}stayDown(e){this.heldDown=e}setObstacle(e,t){this.obstacle??={x:e,z:t},this.obstacle.x=e,this.obstacle.z=t}get fallBody(){return this.ragdoll?.active===!0?this.ragdoll:null}setResting(e){this.resting=e}get stoolVisible(){return this.stool.group.visible}celebrate(e=4.4){this.celebrateTime=e}resetTransient(e=!1){this.forcedDown=!1;let t=this.ragdoll;t!==null&&(e?t.active?t.settle():t.restoreSettled():(t.stop(),t.clearRise())),this.downState=e?`down`:`up`,this.landSettled=!1,this.fallenFromPhysics=!1,this.riseRoot.set(0,0,0),this.riseRootFrom.set(0,0,0),this.riseRootVelocity.set(0,0,0),this.fallAge=e?pT:0,this.riseProgress=0,this.hitstop=0,this.hitstopScale=1,this.hitstopLag=0;for(let e of[this.headKick,this.torsoKick,this.rootKick,this.coverKick,this.armKick])e.value.set(0,0,0),e.velocity.set(0,0,0);this.foldDelay=0,this.pendingFold=0,this.coverDelay=0,this.pendingCover=0,this.liverDelay=0,this.pendingLiver=0,this.handsDrop=0,this.rockedTime=0,this.guardKick=0,this.stunAmount=0,this.windedTime=0,this.winded=0,this.celebrateTime=0,this.celebration=0,this.waveTime=0,this.wave=0,this.verdictSide=0,this.verdict=null,this.squareWeight=0,this.raisedWeight=0,this.bowedWeight=0,this.wrists.fill(null),this.wristWeights.fill(0),this.seated=0,this.stillTime=0,this.rootX=null,this.yawInitialized=!1,this.feetInitialized=!1,this.retirePunch(),this.ownQueued=null,this.completedActionId=null,this.retiredOwnIds.length=0,this.anticipatedId=null,this.retchTime=0,this.retching=0,this.dazed=!1,this.daze=0,this.dazeTime=0;for(let e=0;e<2;e+=1)dE(this.armDangle[e]),dE(this.forearmDangle[e]);this.dead=!1,this.deathFall=!1,this.throe=fE.length,this.laidOut=e}waveOff(e=2.6,t=!1){this.waveTime=e,this.waveSlow=t}setCountdown(e){this.countdownTicks=e}attend(e,t=`work`){this.attending=e,this.mood=t}treat(e,t,n=1,r=`enswell`,i=0){this.treating=e!==null,e!==null&&(this.treatTarget.copy(e),t!==void 0&&this.treatFacing.copy(t),this.treatSide=n,this.treatProp=r,this.treatUrgency=i)}awaitVerdict(e){this.verdictSide=e??0,e===null&&(this.verdict=null)}announce(e){this.verdict=e}raise(e,t){this.wrists[0]=e===null?null:this.wristTargets[0].copy(e),this.wrists[1]=t===null?null:this.wristTargets[1].copy(t)}breakClinch(e=1.3){this.breakTime=e}get breaking(){return this.breakTime>0}aimBreak(e,t,n=null,r=`watch`){this.breakFighters[0].copy(e),this.breakFighters[1].copy(t),this.breakAimed=!0,this.watching=n!==null,n!==null&&this.watchPoint.copy(n),this.duty=r}makeHand(){return{position:new B,knuckles:new B(0,1,0),palm:new B(0,0,1),pole:new B(0,-1,0)}}makeFoot(){return{position:new B,toe:new B(0,0,1),heel:0,pole:new B(0,0,1)}}get currentRoot(){return{x:this.rootX??0,z:this.rootZ}}get isDown(){return this.downState!==`up`||this.dead}setRefereeCount(e,t){(e!==this.refereeCounting||t!==this.refereeCount)&&(this.countChangedTick=null),this.refereeCounting=e,this.refereeCount=t}predict(e,t,n,r=0,i,a=r){if(e.kind!==`punch`||e.id===void 0)return;let o={action:{...e,id:e.id},timing:i??se(e.class,e.target,e.power),leadTicks:r,answerTicks:a,pressedAt:t,sequence:null,started:!1,waited:0};if(this.punchActive&&this.ownActionId!==null&&this.ownAuthoritativeAge===null&&!this.ownPulled&&!this.ownStarted&&(t-this.ownPressedAt)*n0||e.clinch_ticks>0||e.clinch_startup_ticks>0,a=this.ownQueued;if(a!==null&&(a.sequence??=r?.(a.action.id)??null,e.action_id===a.action.id?a.started=!0:!a.started&&(i||a.sequence!==null&&e.last_input_sequence>=a.sequence&&e.queued_actions===0)&&(this.ownQueued=null)),!this.punchActive||this.ownActionId===null||this.ownPulled||this.ownRefused)return;this.ownStarted||(this.ownSequence??=r?.(this.ownActionId)??null);let o=e.action_id===this.ownActionId;o&&(this.ownStarted=!0);let s=this.ownQueued;s!==null&&s.sequence!==null&&r!==null&&!this.ownStarted&&this.ownSequence===null&&this.ownAuthoritativeAge===null?(this.ownActionId=null,this.ownQueued=null,this.retirePunch(),this.startOwnPunch(s)):(o?i&&e.action_contact_tick===null:!this.ownStarted&&this.ownAuthoritativeAge===null&&(i||this.ownSequence!==null&&e.last_input_sequence>=this.ownSequence&&e.queued_actions===0))&&(this.ownRefused=!0,this.takeBack())}takeBack(){this.punchAgeTickse.action_startup_ticks*(1/YD-1)||this.punchActive&&this.punchAgeTicks/this.punchTotalTicks<=.55)return;this.anticipatedId=n;let r=e.action_target??`head`,i=e.action_power??`normal`,a={...se(e.action,r,i),startup:e.action_startup_ticks,active:e.action_active_ticks,recovery:e.action_recovery_ticks},o=e.action_hand??(e.stance===`orthodox`?`left`:`right`);this.startEarly(n,e.action,o,r,i,a,t,t)}startOwnPunch(e){let{action:t,timing:n}=e;this.startEarly(t.id,t.class,t.hand,t.target,t.power,n,0,Math.max(0,e.answerTicks)),this.ownPress=!0,this.ownSequence=e.sequence,this.ownStarted=e.started,this.ownPressedAt=e.pressedAt}startEarly(e,t,n,r,i,a,o,s){this.retirePunch(),this.punchClass=t,this.punchHand=n,this.punchTarget=r,this.punchPower=i,this.punchTiming=a,this.punchTotalTicks=Math.max(1,pe(a)),this.punchAgeTicks=0,this.punchActive=!0,this.ownActionId=e,this.ownLeadTicks=Kw(o,0,ID),this.ownExpectedTicks=s}followUpStartAge(e){let t=this.shownFighter,n=this.shownOpponent,r=this.actionId??this.ownActionId,i=r!==null&&r===this.contactId&&!this.contactParried;return t!==null&&n!==null&&D(this.punchClass,i,e.action,t.stamina,n.stunned_ticks>0,t.style)?E(this.punchTiming):this.punchTotalTicks}releaseQueuedPress(e){let t=this.ownQueued;t!==null&&(t.waited+=e*30,this.punchActive&&!this.ownPulled&&this.punchAgeTicks+this.serverLag(t.leadTicks)6&&this.retiredOwnIds.shift()),this.actionId=null,this.punchActive=!1,this.ownActionId=null,this.ownPress=!1,this.ownLeadTicks=0,this.ownAuthoritativeAge=null,this.ownWaitedTicks=0,this.ownExpectedTicks=0,this.ownPulled=!1,this.ownSequence=null,this.ownStarted=!1,this.ownRefused=!1,this.ownCut=!1,this.recoveryCut=!1,this.hitstopLag=0}setRefereeHead(e){this.hasRefereeHead=e!==null,e!==null&&this.refereeHead.copy(e)}landedHit(e,t,n=!1){this.punchActive&&e!==null&&e===(this.actionId??this.ownActionId)&&(this.punchAgeTicks>=this.punchTiming.startup+this.punchTiming.active+1||(this.hitstop=Math.max(this.hitstop,(t?o.block:n?o.power:o.hit)/1e3)))}powerHeat(e){if(!this.punchActive||this.punchPower!==`power`||this.punchHand!==e||this.ownPulled)return 0;let{startup:t,active:n,recovery:r}=this.punchTiming,i=this.punchAgeTicks;return i>>0;let u=i===`left`?1:i===`right`||n>=0?-1:1;if(t===`body`){switch(r){case`hook`:this.torsoKick.velocity.x+=3*l,this.torsoKick.velocity.z+=4.6*l*u,this.rootKick.velocity.x+=.5*l*u,this.coverDelay=.09,this.pendingCover=2.4*l*u,u>0&&e===`hit`&&o>.25&&(this.liverDelay=.28,this.pendingLiver=l*(.4+o));break;case`uppercut`:this.rootKick.velocity.y+=.9*l,this.torsoKick.velocity.x-=1.6*l,this.foldDelay=.1,this.pendingFold=5.2*l;break;default:this.torsoKick.velocity.x+=4.6*l}this.rootKick.velocity.z-=.45*l,this.headKick.velocity.z-=.6*l,this.headKick.velocity.y-=.7*l,this.guardKick=Math.max(this.guardKick,.6*l)}else{switch(e===`hit`&&(this.guardKick=Math.max(this.guardKick,.4*l)),r){case`hook`:this.headKick.velocity.x+=2.6*l*u,this.headKick.velocity.z-=.7*l,this.torsoKick.velocity.y+=3.4*l*u,this.torsoKick.velocity.z-=1.2*l*u;break;case`uppercut`:this.headKick.velocity.y+=2.2*l,this.headKick.velocity.z-=1.2*l,this.torsoKick.velocity.x-=1.6*l;break;case`straight`:this.headKick.velocity.z-=2.4*l,this.headKick.velocity.x+=.5*l*u,this.torsoKick.velocity.x-=1*l,this.torsoKick.velocity.y+=1.4*l*u;break;default:this.headKick.velocity.z-=1.5*l,this.torsoKick.velocity.x-=.5*l,this.torsoKick.velocity.y+=.5*l*u}if(this.rootKick.velocity.z-=.45*l,e===`block`)this.guardKick=Math.max(this.guardKick,Math.min(1.2,2.4*l)),this.rootKick.velocity.z-=1.1*l,this.torsoKick.velocity.x-=1.2*l;else{this.rootKick.velocity.y-=1.1*l*o;let e=1.7*l*o;r===`hook`?this.armKick.velocity.add(this.scratchE.set(u,.3,-.2).multiplyScalar(e)):r===`uppercut`?this.armKick.velocity.add(this.scratchE.set(0,1,-.4).multiplyScalar(e)):this.armKick.velocity.add(this.scratchE.set(.3*u,.7,-.4).multiplyScalar(e)),this.handsDrop=Math.max(this.handsDrop,Kw((o-.35)*2,0,1)*(.5+.5*c))}}if(e===`hit`&&(this.dentSurface(t,u,r,o),this.fallSide=r===`hook`?u:u*.5,this.fallProne=r===`hook`||t===`body`),e===`hit`&&a>=10&&this.ragdoll!==null){let e=$C({target:t,punchClass:r,hand:i,lateral:u,amount:a}),n=this.scratchE.set(e.x,e.y,e.z).applyAxisAngle(FD,this.yaw),o=this.scratchD.set(e.driveX,e.driveY,e.driveZ).applyAxisAngle(FD,this.yaw);this.blows+=1,this.ragdoll.takeBlow(n,o,t,e.twist,PC(r,t,a,this.blows+Math.round(a)))}}stagger(){this.torsoKick.velocity.x-=2.6,this.headKick.velocity.z-=1.4,this.headKick.velocity.y+=.5,this.rootKick.velocity.z-=1.1,this.guardKick=Math.max(this.guardKick,1.1)}windedFor(e,t){this.windedTime=Math.max(this.windedTime,e),this.windedSide=t>=0?1:-1}fallToKnee(e){this.dead||(this.fallKneel=e,e&&(this.authoredNextFall=!0))}dentSurface(e,t,n,r){let i=1.1+r*2.1;if(e===`body`){let e=n===`hook`?t>0?`rightRibs`:`leftRibs`:`solarPlexus`;this.boxer.bodyInjury.impact(e,[n===`hook`?t*i*.8:0,0,-i],9)}else n===`hook`?this.boxer.headInjury.impact(t>0?`rightCheek`:`leftCheek`,[t*i,0,-i*.35],5.5):n===`uppercut`?this.boxer.headInjury.impact(`chin`,[0,i*.7,-i*.6],5):this.boxer.headInjury.impact(n===`jab`?`nose`:`mouth`,[0,0,-i],4.5)}footPlace(e,t,n){if(this.squareWeight>.5)return n.set(e===0?.16:-.16,0,e===0?.02:-.02);let r=e===0==t>0?rS.leadFoot:rS.rearFoot;return n.set(r.x*t*this.manner.width*(1+QT*this.battered),0,r.z*this.manner.length*(1-JT*this.crowding))}standLike(e){this.mannerSeed=oE(e)+1,this.mannerStyle=null}keyManner(e){let t=aS[e],n=this.manner;if(this.mannerStyle=e,Object.assign(n,t,{lead:n.lead.copy(t.lead),rear:n.rear.copy(t.rear)}),this.mannerSeed===0)return;let r=e=>Math.abs(Math.sin(this.mannerSeed*(e*7.31+3.17))*43758.5453)%1*2-1;n.rise+=r(1)*.012,n.length*=1+r(2)*.05,n.width*=1+r(3)*.06,n.lead.y+=r(4)*.025,n.lead.z+=r(5)*.03,n.flare+=r(6)*.12,n.spring*=1+r(7)*.2,n.bob*=1+r(1)*r(4)*.4,n.rock*=1+r(2)*r(6)*.3}stepOfficialFeet(e,t,n,r,i){let a=t>jT,o=n.x*Math.sin(i)+n.z*Math.cos(i),s=n.x*Math.cos(i)-n.z*Math.sin(i),c=0;a&&(o<-.35*t?this.backing=!0:o>-.05*t&&(this.backing=!1),c=this.backing?Math.atan2(-s,-o):Math.atan2(s,o)),this.strideYaw=Ww(this.strideYaw,c,6,e);let l=1-Math.exp(-8*e);this.travel.x+=(s-this.travel.x)*l,this.travel.z+=(o-this.travel.z)*l;let u=this.scratch,d=this.scratchQ.setFromAxisAngle(FD,i+this.strideYaw),f=a?0:Math.sin(this.weightPhase*.17)>=0?.045:-.045,p=Kw(.42/Math.max(t,.01),.22,.34),m=t*p*.4;for(let o=0;o<2;o+=1){let s=this.feet[o],c=o===0?1:-1;u.set(c*.15,0,c*f).applyQuaternion(d).add(r),u.y=0;let l=i+this.strideYaw*.85+c*.2;if(!this.feetInitialized){s.planted.copy(u),s.progress=1,s.stepping=!1,this.footYaw[o]=l;continue}let h=Math.atan2(Math.sin(this.footYaw[o]-l),Math.cos(this.footYaw[o]-l));if(!a&&Math.abs(h)>.8&&(this.footYaw[o]=l+Math.sign(h)*.8),s.stepping){s.progress=Math.min(1,s.progress+e/s.duration),this.footYaw[o]=Gw(this.footYaw[o],l,14,e),s.progress>=1&&(s.stepping=!1,s.planted.copy(s.to));continue}let g=this.feet[1-o];if(g.stepping)continue;let _=u.x-s.planted.x,v=u.z-s.planted.z,y=Math.hypot(_,v),b=a?(_*n.x+v*n.z)/t:0;G.set(-c*.15,0,-c*f).applyQuaternion(d).add(r).sub(g.planted);let x=a?(G.x*n.x+G.z*n.z)/t:0;(a?b>(x>0?.05:Math.max(.05,m*.8))||y>m+.2:y>.085)&&(s.stepping=!0,s.progress=0,s.duration=a?Kw((.22-x)/t,.16,p):y>.12?.2:.32,s.from.copy(s.planted),s.to.copy(u).addScaledVector(n,s.duration*1.6),s.to.y=0)}this.feetInitialized=!0}stepFeet(e,t,n,r,i,a){if(this.referee||this.squareWeight>.5){this.stepOfficialFeet(e,n,r,i,a);return}let o=this.scratch,s=this.scratchQ.setFromAxisAngle(FD,a),c=+(t>0),l=-1;n>$T&&(l=this.footPlace(0,t,o).applyQuaternion(s).dot(r)>=this.footPlace(1,t,o).applyQuaternion(s).dot(r)?0:1),l!==this.leadingFoot&&(this.leadingFoot=l,this.nextFoot=l);let u=l<0?c:l,d=Math.abs(a-this.steppedYaw)>rE*e;this.steppedYaw=a;for(let f=0;f<2;f+=1){let p=f===0?u:1-u,m=this.feet[p];if(this.footPlace(p,t,o).applyQuaternion(s).add(i),o.y=0,this.daze>.001&&this.stumble(p,o,a),!this.feetInitialized){m.planted.copy(o),m.progress=1,m.stepping=!1;continue}if(m.stepping){m.progress=Math.min(1,m.progress+e/m.duration),m.progress>=1&&(m.stepping=!1,m.planted.copy(m.to));continue}let h=this.feet[1-p],g=m.planted.distanceTo(o),_;if(l<0)_=g>(p===c||!d?eE:tE)*this.stepSlack&&!h.stepping;else{let e=!h.stepping||h.progress>=1-.6*Kw((n-.4)/1,0,1),t=this.scratchD.subVectors(o,m.planted).dot(r)>0;_=this.nextFoot===p&&t&&g>nE*this.stepSlack&&e}_&&(m.stepping=!0,m.progress=0,m.duration=Kw(.2-n*.05,.11,.2)*this.stepPace[p],m.from.copy(m.planted),m.to.copy(o).addScaledVector(r,m.duration*(p===l?1.3:1)),m.to.y=0,l>=0&&(this.nextFoot=1-p))}this.feetInitialized=!0}footWorld(e,t){let n=this.feet[e];if(!n.stepping)return t.copy(n.planted),0;let r=Wx(n.progress,1.6);return t.copy(n.from).lerp(n.to,r),Math.sin(n.progress*Math.PI)*iE*this.stepLift[e]}update(e,t,n,r,i,a,o,s){let c=this.boxer,l=e.stance===`orthodox`?1:-1,u=i?.35:1,d=this.touchWalk(e,t,n,o);this.walkBackFromTheFall(n);let f=this.holdOnTheRopes(t,this.mapping.x(e.x)+d.x+this.riseRoot.x,this.mapping.z(e.y)+d.z+this.riseRoot.z),p=this.mapping.x(e.x)+d.x+this.riseRoot.x-f.x,h=this.mapping.z(e.y)+d.z+this.riseRoot.z-f.z;this.place.set(p,0,h),this.rootX===null&&(this.rootX=p,this.rootZ=h);let g=aO*Math.max(n,1/60);this.rootX+=Kw(p-this.rootX,-g,g),this.rootZ+=Kw(h-this.rootZ,-g,g);let _=Math.atan2(e.facing_x,-e.facing_y);this.yawInitialized||=(this.yaw=_,!0);let v=this.punchActive&&this.punchAgeTicks0?.12:1;let y=n*this.hitstopScale;this.punchActive&&this.hitstop>0&&(this.hitstopLag+=(n-y)*30),this.syncAction(e,t,o,y),this.debugHoldImpact||(this.boxer.headInjury.update(y),this.boxer.bodyInjury.update(y)),s!==void 0&&this.trackOpponentHead(t,s,n);let b=this.scratchB.set(this.mapping.x(e.velocity_x)*30,0,this.mapping.z(e.velocity_y)*30).add(this.touchVelocity).add(this.riseRootVelocity),x=b.length(),S=Math.hypot(b.x-this.riseRootVelocity.x,b.z-this.riseRootVelocity.z);this.lastSpeed=x,this.stillTime=x<.03?this.stillTime+n:0;let C=this.resting&&this.stillTime>.2&&this.downState===`up`;this.seated=Ww(this.seated,+!!C,C?2.2:4,n);let w=this.resting&&this.stillTime>.05&&this.downState===`up`;w&&(this.stoolRoot.set(this.rootX,0,this.rootZ),this.stoolYaw=this.yaw),this.stool.group.visible=w||this.seated>DT&&this.downState===`up`,this.stool.group.position.set(this.stoolRoot.x-this.rootX,0,this.stoolRoot.z-this.rootZ).add(this.scratch.set(0,0,.02).applyAxisAngle(FD,this.stoolYaw)).applyAxisAngle(FD,-this.yaw),this.stool.group.rotation.y=this.stoolYaw-this.yaw,this.celebrateTime=Math.max(0,this.celebrateTime-n),this.celebration=Ww(this.celebration,+(this.celebrateTime>0&&this.downState===`up`),3.5,n),this.waveTime=Math.max(0,this.waveTime-n),this.wave=Ww(this.wave,+(this.waveTime>0&&this.downState===`up`),4,n),this.breakTime=Math.max(0,this.breakTime-n),this.breakWeight=Ww(this.breakWeight,+(this.breakTime>0&&this.downState===`up`),6,n),this.attendWeight=Ww(this.attendWeight,+!!this.attending,2.5,n),this.mournWeight=Ww(this.mournWeight,+(this.mood===`mourn`),2.5,n),this.cheerWeight=Ww(this.cheerWeight,+(this.mood===`cheer`),2.5,n);let T=!this.referee&&(this.verdictSide!==0||this.resting||this.countdownTicks!==null&&this.countdownTicks>RT);this.squareWeight=Ww(this.squareWeight,+!!T,3,n),this.raisedWeight=Ww(this.raisedWeight,+(this.verdictSide!==0&&(this.verdict===`winner`||this.verdict===`level`)),3.2,n),this.bowedWeight=Ww(this.bowedWeight,+(this.verdictSide!==0&&this.verdict===`loser`),2.2,n);for(let e of[0,1])this.wristWeights[e]=Ww(this.wristWeights[e],this.wrists[e]===null?0:1,3.2,n);this.treatWeight=Ww(this.treatWeight,+!!this.treating,3,n),this.windedTime=Math.max(0,this.windedTime-n);let E=this.fallKneel&&this.downState===`falling`;this.winded=Ww(this.winded,this.windedTime>0&&this.downState===`up`||E?1:0,this.windedTime>0||E?12:4,n),this.enswell.group.visible=this.treatWeight>.4&&this.treatProp===`enswell`,this.bottle.group.visible=this.treatWeight>.4&&this.treatProp===`bottle`;let D=this.countdownTicks!==null&&this.countdownTicks<=FT&&this.countdownTicks>=IT;this.touchWeight=Ww(this.touchWeight,+!!D,6,n);let O=e.stamina/Math.max(1,e.maximum_stamina);this.tired=Ww(this.tired,Kw((.55-O)/.5,0,1),2,n),this.stunAmount=Ww(this.stunAmount,Math.min(1,e.stunned_ticks/24),8,n),c.updateFace(n,i,this.punchActive&&this.punchPower===`power`,this.tired,this.stunAmount,this.isDown);let k=e.defense;this.guardHigh=Ww(this.guardHigh,+(k===`guard_high`),$D,n),this.guardLow=Ww(this.guardLow,+(k===`guard_low`),$D,n),this.guardSpent=Ww(this.guardSpent,+(e.guard0||e.clinch_startup_ticks>0),10,n),this.foulWeight=Ww(this.foulWeight,+!!e.is_foul_recovery_target,8,n),this.tauntWeight=Ww(this.tauntWeight,+(e.taunt_ticks>0),10,n);let te=Math.hypot(this.mapping.x(t.x)-this.mapping.x(e.x),this.mapping.z(t.y)-this.mapping.z(e.y)),j=this.referee||e.is_downed||t.is_downed?0:1-Hx(Zw,tT,te);this.crowding=Ww(this.crowding,j,9,n);let ne=this.referee||e.is_downed||t.is_downed?0:1-Hx(KT,qT,te);this.tight=Ww(this.tight,ne,9,n);let re=1/0;if(this.hasLiveHead&&!this.referee&&this.downState===`up`){let e=this.boxer.rig.bones.head.getWorldPosition(this.ownHead),t=e.x-this.liveOpponentHead.x,r=e.z-this.liveOpponentHead.z,i=Math.hypot(t,r);if(re=Math.hypot(t,e.y-this.liveOpponentHead.y,r),re1e-4){let e=(Qw-re)/Qw*eT*n,a=Math.cos(-this.yaw),o=Math.sin(-this.yaw);this.headSpace.x+=(t*a+r*o)/i*e,this.headSpace.y+=(-t*o+r*a)/i*e,this.headSpace.lengthSq()>1&&this.headSpace.normalize()}}if(re>$w&&this.headSpace.multiplyScalar(Math.exp(-3*n)),this.tauntEnd=AD(this.tauntEnd,o,e.taunt_ticks>0?e.taunt_ticks:null),Jw(this.headKick,n,190,7.5,.24),Jw(this.torsoKick,n,150,7,.7),Jw(this.rootKick,n,120,8,.12),Jw(this.coverKick,n,110,15,.3),Jw(this.armKick,n,55,6,.3),this.foldDelay>0&&(this.foldDelay-=n,this.foldDelay<=0&&(this.torsoKick.velocity.x+=this.pendingFold,this.pendingFold=0)),this.coverDelay>0&&(this.coverDelay-=n,this.coverDelay<=0&&(this.coverKick.velocity.x+=this.pendingCover,this.pendingCover=0)),this.liverDelay>0&&(this.liverDelay-=n,this.liverDelay<=0&&(this.rootKick.velocity.y-=1.4*this.pendingLiver,this.torsoKick.velocity.x+=2.6*this.pendingLiver,this.torsoKick.velocity.z+=1.6*this.pendingLiver,this.pendingLiver=0)),this.handsDrop=Math.max(0,this.handsDrop-n*1.5),e.guard_broken&&!this.guardWasBroken&&(this.handsDrop=1,this.guardKick=1.2),this.guardWasBroken=e.guard_broken,this.stunAmount>.25&&this.downState===`up`&&!this.referee){if(this.rockedTime===0&&(this.rockedPhase=this.hurtRandom()*Math.PI*2,this.nextLurch=.1+this.hurtRandom()*.2),this.rockedTime+=n,this.rockedTime>=this.nextLurch){let e=this.stunAmount;this.rootKick.velocity.x+=(this.hurtRandom()-.5)*1.4*e,this.rootKick.velocity.z+=(this.hurtRandom()-.6)*1.2*e,this.rootKick.velocity.y-=this.hurtRandom()*.9*e,this.torsoKick.velocity.z+=(this.hurtRandom()-.5)*1.5*e,this.nextLurch=this.rockedTime+.3+this.hurtRandom()*.5}}else this.stunAmount<.02&&(this.rockedTime=0);this.guardKick=Math.max(0,this.guardKick-n*2.4),this.ragdoll?.tick(n),this.updateDownState(e,n,i,S),this.stepDeath(n),this.stepInjuries(n),this.idleSeed<0&&(this.idleSeed=oE(e.player_id),this.bouncePhase=this.idleSeed*19,this.weightPhase=this.idleSeed*43,this.breathPhase=this.idleSeed*71);let ie=this.idleSeed;e.style!==this.mannerStyle&&this.keyManner(e.style);let M=this.manner;this.battered=Ww(this.battered,Kw((e.trauma.head+e.trauma.body-XT)/ZT,0,1),1.5,n);let N=this.battered,ae=r*(.93+ie*.14)+ie*37,oe=(2.1-this.tired*.8)*(1-this.stunAmount*.6)*(.94+ie*.12)*M.tempo;if(this.bouncePhase+=n*oe*Math.PI*2*u,this.weightPhase+=n*(.42+ie*.1)*Math.PI*2*u,this.breathPhase+=n*(.3+this.tired*.75)*Math.PI*2,this.stunPhase+=n*5.5,this.feintTimer-=n,this.pawAge+=n,this.feintTimer<=0&&!this.punchActive&&x<1&&this.downState===`up`){this.pawCount+=1;let e=Math.abs(Math.sin(this.pawCount*12.9898+ie*78.233)*43758.5453)%1;this.feintTimer=e<.3?aE*1.2:1.4+e*2.6,this.pawAge=0}let se=this.pawAge/aE,ce=se<1?Math.sin(Math.PI*.5*(Hx(0,.4,se)+Hx(.4,1,se))):0,le=this.referee?0:ce*M.paw*(1-.7*this.tight)*(1-.6*this.tired)*(1-this.stunAmount)*(1-N)*Kw(1-this.guardHigh-this.guardLow,0,1)*u,ue=this.referee?0:(1-this.stunAmount)*(1-.6*this.tired)*(1-.7*N)*(x>.6?.5:1)*M.spring,de=Math.sin(this.bouncePhase)*(.7+.3*Math.sin(ae*.83+1.7))*ue,fe=Math.sin(this.bouncePhase*.5+.6)*ue*M.rock,pe=Math.sin(this.breathPhase)*(1+2*this.tired);this.breath=pe;let me=this.scratchC.set(this.rootX,0,this.rootZ);(this.downState===`up`||this.downState===`rising`)&&this.stepFeet(n,l,x,b,me,this.yaw);let he=Math.cos(this.yaw),ge=Math.sin(this.yaw);this.walkLean.x=Ww(this.walkLean.x,Kw((b.x*he-b.z*ge)*.03,-.04,.04),8,n),this.walkLean.y=Ww(this.walkLean.y,Kw((b.x*ge+b.z*he)*.03,-.04,.04),8,n);let _e=this.scratchQ.setFromAxisAngle(FD,-this.yaw),ve=l>0?this.foot.L:this.foot.R,ye=l>0?this.foot.R:this.foot.L,be=l>0?0:1,xe=+(l>0),Se=this.footWorld(be,ve.position),Ce=this.footWorld(xe,ye.position);ve.position.sub(me).applyQuaternion(_e),ye.position.sub(me).applyQuaternion(_e);let P=this.boxer.rig.metrics.ankleHeight;ve.position.y=P+Se,ye.position.y=P+Ce,oS(rS.leadToe,l,ve.toe),oS(rS.rearToe,l,ye.toe);let we=Kw(this.tired*.6+this.stunAmount+N*.6,0,1),Te=(Se+Ce)*3;ve.heel=Math.max(0,rS.leadHeel+(M.heel-1)*.12)+(.5+.5*de)*.09*ue+Math.max(0,-fe)*.06+Te,ye.heel=rS.rearHeel*M.heel*(1-.7*we)+(.5+.5*de)*.07*ue+Math.max(0,fe)*.07+Te,this.referee&&(ve.heel=ye.heel=Te),ve.pole.copy(ve.toe).setY(.35).normalize(),ye.pole.copy(ye.toe).setY(.35).normalize();let F=this.torso,I=rS.bladeYaw*l,Ee=de*.013,De=(Math.sin(this.weightPhase)*.018+Math.sin(ae*.31+2.2)*.008)*u*(.5+.5*M.bob),Oe=.012+this.tired*.03+this.stunAmount*.05+N*.025;F.hips.set(De*l+Math.sin(this.stunPhase*.9)*.05*this.stunAmount+this.walkLean.x,rS.hipsHeight+M.rise-Oe+Ee+pe*.002,fe*.018+this.walkLean.y+M.weight),F.hipsYaw=I,F.hipsPitch=.02+this.tired*.08,F.hipsRoll=Math.sin(this.stunPhase)*.09*this.stunAmount,F.shouldersYaw=I*rS.shoulderBlade;let ke=(rS.lean+M.lean)*(1-.5*this.tight);F.spinePitch=rS.hunch+ke*Math.cos(I)+this.tired*.16+N*.06-pe*.012+this.walkLean.y,F.spineRoll=ke*Math.sin(I)+Math.sin(this.stunPhase*1.3)*.06*this.stunAmount-this.walkLean.x+(Math.sin(ae*.61+2)*.018+Math.sin(ae*1.43)*.008)*u*M.bob,F.headYaw=-.12*l+Math.sin(ae*.9)*.05+Math.sin(this.stunPhase*.7)*.25*this.stunAmount,F.headPitch=rS.chinTuck+Math.sin(ae*1.7)*.02+this.stunAmount*.18+N*.2*(1-this.punchCommit),F.headRoll=Math.sin(this.stunPhase*1.1)*.14*this.stunAmount,F.headOffset.set(0,0,0);let Ae=l>0?this.hand.L:this.hand.R,je=l>0?this.hand.R:this.hand.L,Me=this.headRestChar(l),Ne=Kw(this.guardHigh+this.guardLow,0,1),Pe=1-this.crowding,Fe=this.scratch.copy(rS.relaxedLead).lerp(rS.tightLead,this.tight);Fe.x+=M.lead.x*Pe,Fe.y+=M.lead.y*Pe,Fe.z+=M.lead.z*Pe*(1-this.tight*(1-M.shell)),Fe.lerp(rS.guardHighLead,this.guardHigh).lerp(rS.guardLowLead,this.guardLow);let Ie=this.scratchB.copy(rS.relaxedRear).lerp(rS.tightRear,this.tight).addScaledVector(M.rear,Pe).lerp(rS.guardHighRear,this.guardHigh).lerp(rS.guardLowRear,this.guardLow);Fe.y-=this.tired*.12+this.stunAmount*.22+N*.06,Ie.y-=this.tired*.1+this.stunAmount*.2+N*.05,Fe.y-=this.guardSpent*GT,Ie.y-=this.guardSpent*GT,Fe.z-=this.guardSpent*.04,Ie.z-=this.guardSpent*.03,Fe.z+=le*.11+Math.sin(ae*2.3)*.012*u,Fe.x+=Math.sin(ae*1.9)*.01*u,Fe.y+=le*.02+Math.sin(ae*1.27+1)*.008*u+pe*.004,Ie.y+=Math.cos(ae*2.7)*.006*u+pe*.004,Ie.x+=Math.sin(ae*1.13+2)*.004*u,Fe.z-=this.guardKick*.07,Ie.z-=this.guardKick*.05,Fe.y-=this.guardKick*.02,Fe.add(Me),Ie.add(Me),Ae.position.set(Fe.x*l,Fe.y,Fe.z),je.position.set(Ie.x*l,Ie.y,Ie.z),oS(rS.leadKnuckles,l,Ae.knuckles),oS(rS.leadPalm,l,Ae.palm),oS(rS.rearKnuckles,l,je.knuckles),oS(rS.rearPalm,l,je.palm),oS(rS.leadPole,l,Ae.pole),oS(rS.rearPole,l,je.pole),Ae.pole.x*=1-.6*this.tight;let Le=Pe*(1-Ne);if(Ae.pole.x+=M.flare*l*Le,je.pole.x-=M.flare*l*Le,M.shell>0){let e=M.shell*Le;Ae.knuckles.lerp(this.scratchD.set(-.8*l,.1,.6),e).normalize(),Ae.palm.lerp(this.scratchD.set(-.3*l,.35,-.9),e).normalize(),Ae.pole.lerp(this.scratchD.set(.5*l,-.8,-.35),e).normalize()}F.shouldersYaw+=I*.07*le;let Re=rS.leadShrug+(.6-rS.leadShrug)*Ne+pe*.12+le*.2+M.shrug*Le,ze=rS.rearShrug+(.5-rS.rearShrug)*Ne+pe*.12+Math.min(0,M.shrug)*Le;if(Ne>.001&&(Ae.pole.lerp(oS(rS.guardHighLeadPole,l,this.scratch),this.guardHigh).lerp(oS(rS.guardLowLeadPole,l,this.scratch),this.guardLow).normalize(),je.pole.lerp(oS(rS.guardHighRearPole,l,this.scratch),this.guardHigh).lerp(oS(rS.guardLowRearPole,l,this.scratch),this.guardLow).normalize(),Ae.knuckles.lerp(oS(rS.guardKnuckles,l,this.scratch),Ne).normalize(),je.knuckles.lerp(oS(rS.guardKnuckles,-l,this.scratch),Ne).normalize(),Ae.palm.lerp(oS(rS.guardPalm,l,this.scratch),Ne).normalize(),je.palm.lerp(oS(rS.guardPalm,-l,this.scratch),Ne).normalize(),F.hips.y-=.03*this.guardHigh+.08*this.guardLow,F.spinePitch+=.05*this.guardHigh+.2*this.guardLow,F.headPitch+=.08*Ne),this.hurt&&this.applyHurtStance(r,l,Ae,je,Me),Math.abs(this.slip)>.001||this.weave>.001||this.pull>.001){let e=F.hips.x,t=F.hips.y,n=F.hips.z,r=F.spinePitch,i=F.spineRoll,a=F.shouldersYaw,o=this.slip;F.shouldersYaw+=o*.22,F.hipsYaw+=o*.1,this.leanHead(o*.18,0),F.hips.x+=o*.05,F.hips.y-=Math.abs(o)*.04;let s=this.weave,c=Kw(this.weaveTime/eO,0,1),u=Math.sin(c*Math.PI),d=s*(1-2*c)*l;F.hips.y-=s*(.08+.14*u),F.hips.x+=d*.04,this.leanHead(d*.14,s*(.04+.06*u));let f=this.pull;F.hips.z-=f*.1,F.hips.y-=f*.03,this.leanHead(0,-f*.2),F.headPitch-=f*.06;let p=this.headTravel(this.scratch,e,t,n,r,i,a);Ae.position.add(p),je.position.add(p)}this.punchCommit=Ww(this.punchCommit,+!!this.punchActive,10,n);let Be=this.crowding*(1-this.clinchWeight)*(1-this.punchCommit);if(Be>.001&&(F.headOffset.x-=Be*.075,F.headOffset.z-=Be*.04,F.headYaw-=Be*.2,F.spinePitch-=Be*.07,F.hips.z-=Be*.05,Ae.position.z-=Be*.14,Ae.position.x-=Be*.035*l,je.position.z-=Be*.07),Math.abs(this.headSpace.x)+Math.abs(this.headSpace.y)>.001){let e=this.headSpace.x,t=this.headSpace.y,n=1-this.clinchWeight;F.spinePitch+=t*.7*n,F.spineRoll-=e*.7*n,F.hips.z+=t*.1*n,F.hips.x+=e*.05*n,F.headOffset.x+=e*.05,F.headOffset.z+=t*.05,F.headPitch+=t*.2,F.headRoll-=e*.3}if(this.ropeLean=Ww(this.ropeLean,this.referee||this.downState!==`up`?0:this.ropeLeanTarget,uT,n),this.ropeLean>.001){let e=this.ropeLocal.copy(this.ropeOutward).applyAxisAngle(FD,-this.yaw);F.hipsPitch+=e.z*cT*this.ropeLean,F.hipsRoll-=e.x*lT*this.ropeLean}if(this.referee||this.applyReactions(Ae,je,ve,ye),this.punchActive){let e=this.applyPunch(l,Ae,je,ve,ye,Me);this.punchReach=e,this.punchHand===`left`==l>0?Re=Math.max(Re,e):ze=Math.max(ze,e)}if(this.referee&&(Re=ze=this.applyRefereePose(l,Ae,je,ve,ye,r,o,n,e.stunned_ticks),this.applyReactions(Ae,je,ve,ye)),this.clinchWeight>.001&&this.applyClinchPose(this.clinchWeight,r,l,e,t,Ae,je,Me),this.foulWeight>.001){let e=this.foulWeight;F.hips.y-=e*.16,F.spinePitch+=e*.55,F.headPitch+=e*.2,Ae.position.lerp(this.scratch.set(.06*l,.72,.16),e),je.position.lerp(this.scratch.set(-.05*l,.7,.14),e),Ae.pole.set(.6*l,-.6,.5),je.pole.set(-.6*l,-.6,.5)}if(this.tauntWeight>.001){let e=this.tauntEnd===null?0:Kw(this.tauntEnd-o,0,UT);this.applyTauntPose(this.tauntWeight,(UT-e)/UT*WT,l,Ae,je,Me)}if(this.dislocation===`shoulder_left`||this.dislocation===`shoulder_right`){let e=this.dislocation===`shoulder_left`?this.hand.L:this.hand.R,t=this.dislocation===`shoulder_left`?1:-1;e.position.set(.24*t,.55,.05),e.pole.set(.9*t,-.3,.2),e.knuckles.set(0,-1,.1),e.palm.set(-t,0,.2)}this.winded>.001&&(this.downState===`up`||E)&&this.applyWindedPose(this.winded,r,l,Ae,je),this.hurt&&this.downState===`up`&&this.applyHurtActs(r,l,ve,ye),this.touchWeight>.001&&this.downState===`up`&&this.applyTouchGlovesPose(this.touchWeight,l,Ae,je),this.celebration>.001&&this.downState===`up`&&this.applyCelebratePose(this.celebration,r,l,Ae,je,ve,ye),this.wave>.001&&this.downState===`up`&&this.applyWaveOffPose(this.wave,r,l,Ae,je),this.squareWeight>.001&&this.downState===`up`&&(this.applyVerdictPose(this.squareWeight,r,l,Ae,je,ve,ye,Me),ve.heel*=1-this.squareWeight,ye.heel*=1-this.squareWeight,Re=R.lerp(Re,this.breath*.15,this.squareWeight),ze=R.lerp(ze,this.breath*.15,this.squareWeight)),(this.wristWeights[0]>.001||this.wristWeights[1]>.001)&&this.downState===`up`&&this.applyRaisePose(l,Ae,je),this.breakWeight>.001&&this.downState===`up`&&this.applyBreakPose(this.breakWeight,l,Ae,je),this.attendWeight>.001&&this.downState===`up`&&this.applyAttendPose(this.attendWeight,r,l,Ae,je),this.treatWeight>.001&&this.downState===`up`&&this.applyTreatPose(this.treatWeight,r,l,Ae,je,ve,ye),this.seated>.001&&this.downState===`up`&&this.applySeatedPose(this.seated,r,l,Ae,je,ve,ye),this.downState!==`up`&&this.applyDownPose(l,Ae,je,ve,ye),this.steadyJointPoles(l,Ae,je,ve,ye,n),Oe=0;let Ve=this.pose;Ve.shrugL=l>0?Re:ze,Ve.shrugR=l>0?ze:Re;let He=this.ragdoll;if(He?.active===!0&&i&&(He.stop(),He.clearRise()),He?.active===!0&&!He.handingOver)He.setLost(c.isDecapitated,c.isHandDismembered(`left`),c.isHandDismembered(`right`)),He.update(n,this.obstacle),this.hurt&&this.dropDangles();else{if(this.solver.apply(c.root,this.pose),He?.handingOver===!0)He.followPose(n,this.obstacle),this.riseProgress>=mT&&He.handOverSeconds>=CT&&(He.letGo(),this.riseBlendAge=0);else if(He!==null&&He.hasRisePose){let e=Hx(0,ST,this.riseBlendAge);e<1&&this.downState!==`up`?He.blendRise(e):He.clearRise()}this.hurt&&this.dangleArms(n),He?.sample(n)}this.applyDislocation();let Ue=Math.min(1,(t.trauma.bleeding+t.trauma.left_cut+t.trauma.right_cut+t.trauma.head/4)/300*(a===`off`?0:a===`reduced`?.15:1.5));c.setGloveBlood(Ue),c.setTrunksBlood(Y_(e.trauma,a)),J_(c.headInjury,e.trauma,a),X_(c.bodyInjury,e.trauma,a),c.setSkinClearcoat(.25+(1-O)*.4),this.laidOut=!1}applyTauntPose(e,t,n,r,i,a){let o=this.torso,s=.5-.5*Math.cos(t*Math.PI*2);i.position.lerp(this.scratch.set(-.3*n,a.y-.62,.02),e),i.pole.lerp(this.scratch.set(-.5*n,-.4,-.75),e).normalize(),i.knuckles.lerp(this.scratch.set(-.1*n,-.95,.3),e).normalize(),i.palm.lerp(this.scratch.set(0,.3,.95),e).normalize(),r.position.lerp(this.scratch.set(.26*n,a.y-.36+s*.1,.52-s*.24),e),r.pole.lerp(this.scratch.set(.7*n,-.7,.1),e).normalize(),r.knuckles.lerp(this.scratch.set(.1*n,.25+s*.6,.95-s*.7),e).normalize(),r.palm.lerp(this.scratch.set(-.2*n,.95,-.2-s*.5),e).normalize(),o.spinePitch-=e*.12,o.headPitch-=e*.22,o.headYaw+=Math.sin(t*Math.PI)*.15*e,o.shouldersYaw+=Math.sin(t*Math.PI*3)*.1*e,o.hips.x+=Math.sin(t*Math.PI)*.03*e*n,o.headOffset.z+=e*.03}applyClinchPose(e,t,n,r,i,a,o,s){let c=this.torso,l=r.player_idy&&(h.x*=y/v,h.z*=y/v),h.x+=o,h.z+=u,t.position.lerp(h,e),t.pole.lerp(this.clinchTemp.set(r*.85,l?.35:-.6,.25),e).normalize(),t.knuckles.lerp(this.clinchTemp.set(-p*r*.9+f.x*.3,l?-.25:.1,-m*r*.9+f.z*.3),e).normalize(),t.palm.lerp(this.clinchTemp.set(-f.x,l?.1:.35,-f.z),e).normalize()}}holdOnTheRopes(e,t,n){if(this.referee)return this.ropeLeanTarget=0,this.ropeHold.set(0,0,0);this.ropeLeanTarget=dT(t,n,this.ropeExcess,this.ropeOwn);let r=Math.hypot(this.ropeExcess.x,this.ropeExcess.z);r>0&&this.ropeOutward.set(this.ropeExcess.x/r,0,this.ropeExcess.z/r);let i=this.mapping.x(e.x),a=this.mapping.z(e.y);dT(i,a,this.ropeTheirs,this.ropeTheirs);let o=1-Hx(iT,aT,Math.hypot(i-t,a-n));return this.ropeHold.set(fT(this.ropeOwn.x,this.ropeTheirs.x*o),0,fT(this.ropeOwn.z,this.ropeTheirs.z*o))}headRestChar(e){let t=this.boxer.rig.metrics;return this.headWorld.set(-.08,t.headHeight-t.hipsHeight+this.torso.hips.y,.02)}syncAction(e,t,n,r){this.shownFighter=e,this.shownOpponent=t;let i=this.ownQueued;if(i!==null&&e.action_id===i.action.id&&(this.ownQueued=null,this.retirePunch(),this.startOwnPunch(i),this.ownPress=!1),e.action_id!==null&&e.action_id!==this.actionId&&e.action_id!==this.completedActionId&&!this.retiredOwnIds.includes(e.action_id)){let t=e.action;if(t!==null){let r=e.action_hand??(e.stance===`orthodox`?`left`:`right`),i=this.ownActionId===e.action_id&&this.punchActive,a=this.punchTiming;this.actionId=e.action_id,this.punchClass=t,this.punchHand=r,this.punchTarget=e.action_target??`head`,this.punchPower=e.action_power??`normal`,this.punchTiming={...se(this.punchClass,this.punchTarget,this.punchPower),startup:e.action_startup_ticks,active:e.action_active_ticks,recovery:e.action_recovery_ticks},this.punchTotalTicks=Math.max(1,e.action_startup_ticks+e.action_active_ticks+e.action_recovery_ticks);let o=Math.max(0,n-e.action_start_tick);i?(this.punchAgeTicks=iO(this.punchAgeTicks,a,this.punchTiming),this.ownAuthoritativeAge=o,this.ownRefused||(this.ownPulled=!1,this.ownCut=!1,o-this.punchAgeTicks>1&&(this.punchAgeTicks=o))):(this.punchAgeTicks=o,this.ownActionId=null,this.ownPress=!1,this.ownLeadTicks=0,this.ownAuthoritativeAge=null),this.ownWaitedTicks=0,this.punchActive=!0}}if(e.action_id===null)this.actionId=null,this.completedActionId=null;else if(e.action_id===this.actionId&&this.punchActive){let t=Math.max(0,n-e.action_start_tick);this.ownActionId===this.actionId?(this.ownAuthoritativeAge=t,!this.ownPulled&&t-this.punchAgeTicks-this.hitstopLag>1.5&&(this.punchAgeTicks=t)):Math.abs(this.punchAgeTicks+this.hitstopLag-t)>1.5&&(this.punchAgeTicks=t,this.hitstopLag=0)}if(this.punchActive&&this.ownActionId!==null&&this.ownAuthoritativeAge===null&&!this.ownPulled&&!this.ownCut&&(this.ownWaitedTicks+=r*30,this.ownWaitedTicks>this.ownExpectedTicks*1.5+LD&&(this.ownPress?!this.ownStarted:this.punchAgeTicks=e,n=this.hitstop>0?0:Math.min(this.hitstopLag,r*30*BD);this.hitstopLag-=n,this.punchAgeTicks+=r*30*(t?zD:this.ownPunchRate())+n,this.ownPress&&this.ownActionId!==null&&!this.ownCut&&this.punchAgeTicks>=this.punchTiming.startup&&this.pressesLanded.at(-1)!==this.ownActionId&&(this.pressesLanded.push(this.ownActionId),this.pressesLanded.length>6&&this.pressesLanded.shift()),this.punchAgeTicks>=this.punchTotalTicks&&this.retirePunch()}e.is_downed&&(this.punchActive&&this.retirePunch(),this.ownQueued=null),this.releaseQueuedPress(r);let a=this.actionId??this.ownActionId;a!==this.aimActionId&&(this.aimActionId=a,this.followHead=0),this.followHead=Ww(this.followHead,+(a!==null&&a===this.contactId),nO,r),this.followReferee=Ww(this.followReferee,+(a!==null&&a===this.refereeContactId),nO,r)}trackOpponentHead(e,t,n){let r=this.guardOpponentHead.set(this.mapping.x(e.x),0,this.mapping.z(e.y));this.opponentSteadySeconds=QD.has(e.defense)?0:this.opponentSteadySeconds+n,(!this.hasLiveHead||this.opponentSteadySeconds>=tO)&&this.opponentHeadOffset.copy(t).sub(r),r.add(this.opponentHeadOffset),this.liveOpponentHead.copy(t),this.hasLiveHead=!0}ownPunchRate(){if(this.ownActionId===null||this.ownPress)return 1;let e=this.punchTiming.startup,t=this.ownAuthoritativeAge;return t===null?this.punchAgeTicks0,_=g?t:n,v=g?n:t,y=(g?1:-1)*e,b=+(this.punchPower===`power`),x=+(this.punchTarget===`body`),S,C,w,T=1,E=1,D=0,O=1,k=1,ee=0,A=0;if(ue&&Me.set(Me.x*e/t,Me.y,Me.z*e/t),Me.add(Oe)}else Me.multiplyScalar(Math.min(1,Ae/Math.max(1e-6,n))).add(Oe)}if(fe>i.heel&&(i.heel+=(fe-i.heel)*O),pe>r.heel&&(r.heel+=(pe-r.heel)*O),he>0){let t=this.scratchQ.setFromAxisAngle(FD,-he*e*O);r.toe.applyQuaternion(t),r.pole.applyQuaternion(t)}if(me>0){let t=this.scratchQ.setFromAxisAngle(FD,me*e*O);i.toe.applyQuaternion(t),i.pole.applyQuaternion(t)}let Pe=this.scratchE;switch(m){case`hook`:Pe.set((.1+.03*b)*y,-.05,-.06);break;case`uppercut`:Pe.set(.03*y,-.26,-.04);break;case`straight`:Pe.set(.02*y,-.02,-.04-.05*b);break;default:Pe.set(0,-.01,-.02-.07*b)}Pe.y-=.05*b,Pe.z-=(h?.07:.12)*b;let Fe=this.punchStart.copy(ie).addScaledVector(Pe,Math.max(C,h?(1-j)*.6*T:0)),Ie=A*this.punchMiss;if(m===`hook`){let e=Math.hypot(Fe.x-Oe.x,Fe.z-Oe.z),t=Math.hypot(Me.x-Oe.x,Me.z-Oe.z),n=this.punchSweepFrom.copy(Fe).sub(Oe).setY(0).normalize(),r=this.punchSweepTo.copy(Me).sub(Oe).setY(0).normalize(),i=Math.acos(Kw(n.dot(r),-1,1)),a=n.z*r.x-n.x*r.z>=0?1:-1,o=Hx(0,1,j),s=n.applyAxisAngle(FD,(i*o+.5*Ie)*a).normalize();_.position.copy(Oe).addScaledVector(s,R.lerp(e,t,o)),_.position.y=R.lerp(Fe.y,Me.y,o),_.pole.set(.9*y,.2+.5*(1-x),.25).normalize(),_.knuckles.copy(s).applyAxisAngle(FD,a*Math.PI/2).setY(.05).normalize(),_.palm.set(0,-1,0)}else if(m===`uppercut`){let e=Hx(0,1,j),t=this.punchMid.set(Fe.x+(Me.x-Fe.x)*.6,Math.min(Fe.y,Me.y-.12),Fe.z+(Me.z-Fe.z)*.75);_.position.copy(Fe).multiplyScalar((1-e)*(1-e)).addScaledVector(t,2*(1-e)*e).addScaledVector(Me,e*e),_.position.y+=.05*ee+.14*Ie,_.pole.set(.3*y,-1,-.1).normalize(),_.knuckles.set(.05*y,.9,.35).normalize(),_.palm.set(-.2*y,.3,-.95).normalize()}else{_.position.copy(Fe).lerp(Me,Math.min(1,j)).addScaledVector(ke,.14*Ie),_.position.y+=Math.sin(Kw(j,0,1)*Math.PI)*.025,_.pole.set(.55*y,-.9,.35);let e=Hx(.55,1,j);_.knuckles.copy(ke).lerp(this.scratchC.set(.1*y,.55,.8),1-e).normalize(),_.palm.set(-.9*y,.2,-.3).lerp(this.scratchC.set(0,-1,.1),e).normalize()}if(ne>0&&(_.position.lerp(ie,ne),_.knuckles.lerp(M,ne).normalize(),_.palm.lerp(N,ne).normalize(),_.pole.lerp(ae,ne).normalize()),E<1){let e=(1-_.pole.dot(ae)/Math.max(1e-6,_.pole.length()*ae.length()))/2,t=Math.sin(Math.PI*E);_.knuckles.lerp(M,1-E).normalize(),_.palm.lerp(N,1-E).normalize(),_.pole.lerp(ae,1-E).addScaledVector(this.scratchC.set(y,0,0),rO*e*t*t).normalize()}let Le=this.scratchE.set(-.11*y,a.y-.13,.13+a.z);v.position.lerp(Le,Math.max(k,te)*.8).add(this.headTravel(this.scratchC,ve,ye,be,xe,Se,Ce));let Re=this.hasLiveHead?Hx(.08,.2,this.guardOpponentHead.distanceTo(this.liveOpponentHead))*(1-this.followHead):0;return this.punchMiss=Math.max(Hx(.02,.12,Ne),Re),te}hurtRandom(){return this.hurtSeed=Math.imul(this.hurtSeed,1664525)+1013904223>>>0,this.hurtSeed/4294967296}applyReactions(e,t,n,r){let i=this.torso,a=this.headKick.value;i.headOffset.addScaledVector(a,.4),this.leanHead(a.x*.6,a.z*.6),i.headPitch+=a.z*2.6-a.y*2,i.headYaw+=a.x*2.6,i.headRoll+=-a.x*1.1,i.shouldersYaw+=this.torsoKick.value.y,i.hipsYaw+=this.torsoKick.value.y*.4,i.spinePitch+=this.torsoKick.value.x,i.spineRoll+=this.torsoKick.value.z*.5,i.hips.x+=this.rootKick.value.x,i.hips.z+=this.rootKick.value.z,i.hips.y-=Math.max(0,this.torsoKick.value.x)*.08,this.torsoKick.value.x>.05&&(e.position.y-=this.torsoKick.value.x*.25,t.position.y-=this.torsoKick.value.x*.2,e.position.z-=this.torsoKick.value.x*.1);let o=Math.max(0,this.rootKick.value.y);i.hips.y+=this.downState===`up`?this.rootKick.value.y:o,n.heel+=o*6,r.heel+=o*6;let s=this.coverKick.value.x;if(Math.abs(s)>.002){let e=s>0?this.hand.R:this.hand.L;e.position.y-=Math.abs(s)*.9,e.position.x+=s*.2,e.position.z-=Math.abs(s)*.25,e.pole.y-=Math.abs(s)*3}let c=this.hand.L.position,l=this.hand.R.position;c.add(this.armKick.value),l.addScaledVector(this.armKick.value,.8);let u=Hx(0,1,this.handsDrop);c.set(c.x+.07*u,c.y-.24*u,c.z-.04*u),l.set(l.x-.07*u,l.y-.22*u,l.z-.03*u),i.hips.y-=this.guardKick*.02;let d=this.downState===`up`&&!this.referee?this.stunAmount:0;if(d>.01){let e=this.rockedTime,t=this.rockedPhase,n=Math.max(0,Math.sin(e*3.3+t)*Math.sin(e*1.9+t*1.7)),r=.5+.5*Math.sin(e*1.1+t*1.7);i.hips.y-=d*(.02+.08*n),i.hips.x+=d*.04*Math.sin(e*2.1+t*2.9),i.hips.z+=d*.03*Math.sin(e*1.3+t),i.headRoll+=d*.2*Math.sin(e*2.1+t*2.9-1.1),i.headPitch+=d*.1*Math.sin(e*1.3+t-.9),c.set(c.x+d*.07*r,c.y-d*.05*r,c.z),l.set(l.x-d*.07*r,l.y-d*.08*(1-r),l.z)}}legRoom(e,t){let n=this.torso,r=e.position.x-n.hips.x-t*Rx.x*Math.cos(n.hipsYaw),i=e.position.z-n.hips.z+t*Rx.x*Math.sin(n.hipsYaw);return e.position.y+Math.sqrt(Math.max(.04,AT*AT-r*r-i*i))-Rx.y}applyRefereePose(e,t,n,r,i,a,o,s,c=0){let l=this.torso,u=R.lerp,d=this.countWeight=Ww(this.countWeight,+!!this.refereeCounting,5,s),f=Math.sin(a*.7)*.08,p=this.refereeCounting?.75:.06;if(this.breakAimed){let e=G.copy(this.watching?this.watchPoint:this.breakFighters[Math.sin(this.weightPhase*.32)+Math.sin(this.weightPhase*.125)>0?0:1]);this.watching||(e.y=MT-.1),e.x-=this.rootX??0,e.z-=this.rootZ,e.applyAxisAngle(FD,-this.yaw),f=Kw(Math.atan2(e.x,e.z),-1,1)*.85,p=Kw(Math.atan2(MT-e.y,Math.hypot(e.x,e.z)),-.2,.85)}this.gazeYaw=Ww(this.gazeYaw,f,6,s),this.gazePitch=Ww(this.gazePitch,p,6,s);let m=d*Hx(.2,.6,this.gazePitch),h=Math.sin(a*1.6),g=Math.sin(this.weightPhase*.35)*.02+Math.sin(this.weightPhase*.9+1)*.006,_=Math.hypot(this.travel.x,this.travel.z),v=Math.min(1,_/.4);l.hipsYaw=this.strideYaw*.7,l.shouldersYaw=this.strideYaw*.2+this.gazeYaw*.25,l.hipsPitch=.04+m*.2,l.hipsRoll=0,l.spinePitch=.1+h*.008+Kw(this.travel.z,-1,1.5)*.04+d*.06+m*.3,l.spineRoll=-g*.6-this.travel.x*.03,l.headYaw=this.gazeYaw,l.headPitch=.04+this.gazePitch,l.headRoll=0,l.hips.set(g,0,-m*.1);let y=this.footYaw[e>0?0:1]-this.yaw,b=this.footYaw[+(e>0)]-this.yaw;r.toe.set(Math.sin(y),0,Math.cos(y)),i.toe.set(Math.sin(b),0,Math.cos(b)),r.pole.copy(r.toe).setY(.3).normalize(),i.pole.copy(i.toe).setY(.3).normalize();let x=_>.001?v/_:0;r.heel=Kw((-(r.position.x*this.travel.x+r.position.z*this.travel.z)*x-.08)*3.5,0,.75),i.heel=Kw((-(i.position.x*this.travel.x+i.position.z*this.travel.z)*x-.08)*3.5,0,.75);let S=((r.position.x-i.position.x)*this.travel.x+(r.position.z-i.position.z)*this.travel.z)*(x/Math.max(_,.001))*.1;l.hips.y=Math.max(kT-.14,Math.min(kT-m*.05,this.legRoom(r,e),this.legRoom(i,-e)));let C=l.hips.y+.24+h*.004;if(t.position.set(.16*e-this.travel.x*S,C,.3-this.travel.z*S),n.position.set(-.16*e+this.travel.x*S,C-.015,.28+this.travel.z*S),t.pole.set(.7*e,-.5,-.5).normalize(),n.pole.set(-.7*e,-.5,-.5).normalize(),t.knuckles.set(-.35*e,.05,.9).normalize(),n.knuckles.set(.35*e,.05,.9).normalize(),t.palm.set(-.65*e,-.75,.05).normalize(),n.palm.set(.65*e,-.75,.05).normalize(),d>.001){if(this.refereeCounting){this.countChangedTick??=o;let e=Kw((o-this.countChangedTick)/te,0,1);this.countPump=e.001&&(l.spinePitch=u(l.spinePitch,-.04,w),t.position.lerp(G.set(.32*e,l.hips.y+.6,.2),w),n.position.lerp(G.set(-.32*e,l.hips.y+.6,.2),w),t.knuckles.lerp(G.set(.1*e,1,.1),w).normalize(),n.knuckles.lerp(G.set(-.1*e,1,.1),w).normalize(),t.palm.lerp(G.set(0,.1,1),w).normalize(),n.palm.lerp(G.set(0,.1,1),w).normalize(),t.pole.lerp(G.set(.6*e,-.8,-.1),w).normalize(),n.pole.lerp(G.set(-.6*e,-.8,-.1),w).normalize()),c>0){let r=Math.min(1,c/12),i=Math.sin(a*9.5);l.hips.y-=.09*r,l.hips.x+=i*.05*r,l.spineRoll+=i*.18*r,l.headRoll-=i*.35*r,l.headPitch+=.25*r,t.position.x+=.18*e*r,n.position.x-=.18*e*r,t.position.y-=.1*r,n.position.y-=.1*r}return .05+h*.025}updateDownState(e,t,n,r){if(this.riseBlendAge+=t,e.is_downed||this.forcedDown||this.dead){if(this.downState===`up`||this.downState===`rising`||this.deathFall)this.deathFall=!1,this.fallFromGetUp=this.downState!==`up`,this.fallFromGetUp&&(DD(this.fallStart,this.downResult),this.fallStartStand=this.downStand),this.downState=`falling`,this.fallAge=0,this.riseProgress=0,this.riseRootFrom.copy(this.riseRoot),this.landSettled=!1,this.fallenFromPhysics=!1,this.downPolesSet=!1,this.ragdoll?.clearRise(),this.authoredNextFall?this.ragdoll?.forget():n||this.startFall(e),this.authoredNextFall=!1;else if(this.downState===`falling`)this.fallAge+=t,this.fallAge>=pT&&(this.downState=`down`);else if(this.fallKneel)this.riseProgress=hT;else{let n=(!this.forcedDown&&!this.heldDown&&!this.dead&&e.get_up_required>0?Kw(e.get_up_meter/e.get_up_required,0,1):0)*hT;if(this.ragdoll?.active===!0&&!this.ragdoll.handingOver){if(n<=0)return;this.handOverFall(e)}this.riseProgress+=Kw(n-this.riseProgress,-.4*t,vT*t)}return}if((this.downState===`down`||this.downState===`falling`)&&(this.downState=`rising`,this.ragdoll?.active===!0&&!this.ragdoll.handingOver&&this.handOverFall(e),this.fallKneel&&(this.riseProgress=Math.max(this.riseProgress,hT)),this.riseFrom=this.riseProgress,this.feetInitialized=!1),this.downState!==`rising`)return;let i=r>.3||this.punchActive,a=(1-this.riseFrom)/(i?_T:gT);this.riseProgress=Math.min(1,this.riseProgress+(this.riseProgress=1&&(this.downState=`up`,this.fallKneel=!1)}startFall(e){let t=this.ragdoll;t!==null&&(this.rootX!==null&&Math.hypot(this.place.x-this.rootX,this.place.z-this.rootZ)>wT&&(this.rootX=this.place.x,this.rootZ=this.place.z,this.boxer.root.position.set(this.rootX,0,this.rootZ)),t.start(this.dead?this.deathStyle:`crumple`),e.get_up_count>0&&!this.dead&&(t.settle(),this.fallAge=pT))}handOverFall(e){let t=this.ragdoll;if(t===null||!t.active||t.handingOver)return;let n=e.stance===`orthodox`?1:-1,r=this.boxer.rig.bones;this.boxer.root.updateMatrixWorld(!0);let i=this.scratchC.set(this.rootX??0,0,this.rootZ),a=this.scratchQ.setFromAxisAngle(FD,-this.yaw),o=this.fallen,s=(e,t)=>t.setFromMatrixPosition(e.matrixWorld).sub(i).applyQuaternion(a),c=(e,t,n,r)=>vD(rD.setFromQuaternion(e.getWorldQuaternion(nD).premultiply(a),`YXZ`),t,n,r);s(r.hips,o.hips),this.landProne=t.faceDown();let l=Math.abs(o.hips.x)>.12?Math.sign(o.hips.x):0,u=this.landProne?mD(this.downTo,uD,dD,n,l,this.boxer.rig.metrics.ankleHeight):mD(this.downTo,cD,lD,n,l,this.boxer.rig.metrics.ankleHeight);this.landSide=l,this.landShift.set(o.hips.x-u.hips.x,0,o.hips.z-u.hips.z);let d=c(r.hips,u.hipsPitch,u.hipsYaw,u.hipsRoll);o.hipsPitch=d.x,o.hipsYaw=d.y,o.hipsRoll=d.z;let f=c(r.upperChest,o.hipsPitch,o.hipsYaw,o.hipsRoll);o.shouldersYaw=f.y,o.spinePitch=f.x-o.hipsPitch,o.spineRoll=f.z-o.hipsRoll;let p=c(r.head,f.x,f.y,f.z);o.headPitch=p.x,o.turn=p.y,o.headRoll=p.z,s(n>0?r.gloveL:r.gloveR,o.leadHand),s(n>0?r.gloveR:r.gloveL,o.rearHand),s(n>0?r.ankleL:r.ankleR,o.leadFoot),s(n>0?r.ankleR:r.ankleL,o.rearFoot);let m=this.boxer.rig.metrics.ankleHeight;o.leadFoot.y=Math.max(o.leadFoot.y,m),o.rearFoot.y=Math.max(o.rearFoot.y,m);let h=(e,t,n,r,i)=>{let o=s(e,this.scratchB),c=s(n,this.scratchD).sub(o).normalize();s(t,r).sub(o),r.addScaledVector(YE.copy(i).applyQuaternion(e.getWorldQuaternion(nD)).applyQuaternion(a),tD),r.addScaledVector(c,-r.dot(c)),r.lengthSq()>1e-6?r.normalize():r.copy(i===QE?XE:ZE)},g=n>0;h(g?r.hipL:r.hipR,g?r.kneeL:r.kneeR,g?r.ankleL:r.ankleR,o.leadKnee,QE),h(g?r.hipR:r.hipL,g?r.kneeR:r.kneeL,g?r.ankleR:r.ankleL,o.rearKnee,QE),h(g?r.shoulderL:r.shoulderR,g?r.elbowL:r.elbowR,g?r.gloveL:r.gloveR,o.leadElbow,g?$E:eD),h(g?r.shoulderR:r.shoulderL,g?r.elbowR:r.elbowL,g?r.gloveR:r.gloveL,o.rearElbow,g?eD:$E);let _=(e,t,n)=>{let r=e.getWorldQuaternion(nD).premultiply(a);t.set(0,1,0).applyQuaternion(r),n.set(0,0,1).applyQuaternion(r)};_(g?r.gloveL:r.gloveR,o.leadKnuckles,o.leadPalm),_(g?r.gloveR:r.gloveL,o.rearKnuckles,o.rearPalm),o.ownJoints=1,o.leadHeel=0,o.rearHeel=0,o.palmsDown=+!!this.landProne,this.fallenFromPhysics=!0,this.landSettled=!0,this.downPolesSet=!1,t.handOver(),this.riseBlendAge=0;let v=this.scratchE.set(t.pelvis(this.scratchD).x-(this.rootX??0),0,this.scratchD.z-this.rootZ),y=this.scratchB.copy(v).applyQuaternion(a);for(let e of[o.hips,o.leadHand,o.rearHand,o.leadFoot,o.rearFoot])e.x-=y.x,e.z-=y.z;t.shiftRise(this.scratchC.copy(v).negate()),this.rootX=(this.rootX??0)+v.x,this.rootZ+=v.z,this.boxer.root.position.set(this.rootX,0,this.rootZ),this.riseRoot.set(this.rootX-this.mapping.x(e.x)-this.touchOffset.x,0,this.rootZ-this.mapping.z(e.y)-this.touchOffset.z),this.riseRootFrom.copy(this.riseRoot)}walkBackFromTheFall(e){let t=this.downState===`rising`?1-Hx(hT,1,this.riseProgress):this.downState===`up`?0:1,n=this.riseRootFrom.x*t,r=this.riseRootFrom.z*t;e>0?this.riseRootVelocity.set((n-this.riseRoot.x)/e,0,(r-this.riseRoot.z)/e):this.riseRootVelocity.set(0,0,0),this.riseRoot.set(n,0,r),t===0&&this.riseRootFrom.set(0,0,0)}steadyJointPoles(e,t,n,r,i,a){if(this.poleSettle=this.downState===`up`?Math.max(0,this.poleSettle-a):xT,this.poleSettle<=0||this.ragdoll?.active===!0&&!this.ragdoll.handingOver){this.downPolesSet=!1;return}let o=this.boxer.rig.bones,s=e>0;this.characterInverse.copy(this.boxer.root.matrixWorld).invert();for(let e=0;e<4;e+=1){let c=e<2,l=e%2==0,u=l===s,d=c?u?o.hipL:o.hipR:u?o.shoulderL:o.shoulderR,f=c?l?r:i:l?t:n,p=f.position,m=f.pole,h=this.downPoles[e];if(!this.downPolesSet){h.copy(m);continue}let g=this.scratchB.setFromMatrixPosition(d.matrixWorld).applyMatrix4(this.characterInverse).sub(p).negate();if(g.lengthSq()<1e-6){h.copy(m);continue}g.normalize();let _=this.scratchD.copy(h).addScaledVector(g,-h.dot(g)),v=this.scratchE.copy(m).addScaledVector(g,-m.dot(g));if(_.lengthSq()<1e-4||v.lengthSq()<1e-4){h.copy(m);continue}let y=Math.atan2(this.scratch.crossVectors(_,v).dot(g),_.dot(v)),b=bT*Math.max(a,1/120);Math.abs(y)<=b||m.copy(_.normalize().applyAxisAngle(g,Math.sign(y)*b)),h.copy(m)}this.downPolesSet=!0}applyWindedPose(e,t,n,r,i){let a=this.torso,o=R.lerp,s=this.windedSide,c=Math.sin(t*23)*.006;a.hips.y=o(a.hips.y,rS.hipsHeight-.1,e),a.hips.z=o(a.hips.z,-.04,e),a.hipsPitch=o(a.hipsPitch,.2,e),a.spinePitch=o(a.spinePitch,.62+c,e),a.spineRoll=o(a.spineRoll,s*.16,e),a.headPitch=o(a.headPitch,.38,e);let l=s>0?this.hand.L:this.hand.R,u=l===r?i:r;l.position.lerp(G.set(s*.13,.98,.17),e),l.palm.lerp(G.set(-s*.6,0,-.8),e).normalize(),l.knuckles.lerp(G.set(-s*.5,.5,.2),e).normalize(),l.pole.lerp(G.set(s*.9,-.3,-.3),e).normalize(),u.position.lerp(G.set(-s*.2,.86,.3),e),u.pole.lerp(G.set(-s*.8,-.6,0),e).normalize()}applyTouchGlovesPose(e,t,n,r){let i=this.torso,a=R.lerp;i.hips.z=a(i.hips.z,.06,e),i.hipsYaw=a(i.hipsYaw,i.hipsYaw*.4,e),i.shouldersYaw=a(i.shouldersYaw,0,e),i.spinePitch=a(i.spinePitch,.12,e),i.headPitch=a(i.headPitch,.1,e),n.position.lerp(G.set(.11*t,1.24,.5),e),r.position.lerp(G.set(-.11*t,1.22,.47),e),n.palm.lerp(G.set(-t,0,0),e).normalize(),r.palm.lerp(G.set(t,0,0),e).normalize(),n.knuckles.lerp(G.set(0,.15,1),e).normalize(),r.knuckles.lerp(G.set(0,.15,1),e).normalize(),n.pole.lerp(G.set(.7*t,-.7,0),e).normalize(),r.pole.lerp(G.set(-.7*t,-.7,0),e).normalize()}touchWalk(e,t,n,r){this.countdownEnd=AD(this.countdownEnd,r,this.countdownTicks);let i=this.countdownEnd===null?0:jD(this.countdownEnd-r),a=this.mapping.x(t.x)-this.mapping.x(e.x),o=this.mapping.z(t.y)-this.mapping.z(e.y),s=Math.hypot(a,o),c=s>LT?(s-LT)/2/s*i:0;return this.touchVelocity.set(a*c-this.touchOffset.x,0,o*c-this.touchOffset.z).divideScalar(Math.max(n,.001)).clampLength(0,HT),this.touchOffset.set(a*c,0,o*c)}applyCelebratePose(e,t,n,r,i,a,o){let s=this.torso,c=R.lerp,l=Math.sin(t*6)*.04;s.hips.y=c(s.hips.y,rS.hipsHeight+.035+l*.5,e),s.hipsYaw=c(s.hipsYaw,0,e),s.hipsPitch=c(s.hipsPitch,-.12,e),s.hipsRoll=c(s.hipsRoll,0,e),s.shouldersYaw=c(s.shouldersYaw,0,e),s.spinePitch=c(s.spinePitch,-.1,e),s.headPitch=c(s.headPitch,-.25,e),r.position.lerp(G.set(.3*n,1.86+l,.08),e),i.position.lerp(G.set(-.3*n,1.84+l,.06),e),r.palm.lerp(G.set(0,0,1),e).normalize(),i.palm.lerp(G.set(0,0,1),e).normalize(),r.knuckles.lerp(G.set(.15*n,1,0),e).normalize(),i.knuckles.lerp(G.set(-.15*n,1,0),e).normalize(),r.pole.lerp(G.set(n,.1,-.3),e).normalize(),i.pole.lerp(G.set(-n,.1,-.3),e).normalize(),a.heel=c(a.heel,.45,e),o.heel=c(o.heel,.45,e)}kneelLegs(e,t,n,r,i){let a=R.lerp;n.position.x=a(n.position.x,.24*t,e),n.position.z=a(n.position.z,i+.3,e),r.position.x=a(r.position.x,-.18*t,e),r.position.z=a(r.position.z,i-.66,e),n.heel=a(n.heel,0,e),r.heel=a(r.heel,1.25,e),n.toe.lerp(this.treatScratch.set(.2*t,0,1),e).normalize(),r.toe.lerp(this.treatScratch.set(-.1*t,0,1),e).normalize(),n.pole.lerp(this.treatScratch.set(.25*t,.4,1),e).normalize(),r.pole.lerp(this.treatScratch.set(-.05*t,-.8,.6),e).normalize()}applyAttendPose(e,t,n,r,i){let a=this.torso,o=R.lerp,s=Math.sin(t*3.1)*.5+Math.sin(t*5.3+1)*.5;a.hips.z=o(a.hips.z,.12,e),a.hips.y=o(a.hips.y,kT-.06,e),a.hipsPitch=o(a.hipsPitch,.3,e),a.spinePitch=o(a.spinePitch,.42,e),a.headPitch=o(a.headPitch,.4+s*.05,e),a.headYaw=o(a.headYaw,Math.sin(t*1.3)*.08,e),r.position.lerp(G.set(.2*n,1.36+s*.06,.6+s*.04),e),i.position.lerp(G.set(-.14*n,1.23,.6),e),r.palm.lerp(G.set(-.8*n,-.2,.5),e).normalize(),i.palm.lerp(G.set(0,-.9,.3),e).normalize(),r.knuckles.lerp(G.set(.1*n,.5,1),e).normalize(),i.knuckles.lerp(G.set(.8*n,.1,.6),e).normalize(),r.pole.lerp(G.set(.8*n,-.5,-.1),e).normalize(),i.pole.lerp(G.set(-n,-.1,.1),e).normalize();let c=this.mournWeight*e;if(c>.001){a.hipsPitch=o(a.hipsPitch,.1,c),a.spinePitch=o(a.spinePitch,.28,c),a.headPitch=o(a.headPitch,.55,c),a.headYaw=o(a.headYaw,0,c);let e=a.hips.y+.76;r.position.lerp(G.set(.14*n,e,.4),c),i.position.lerp(G.set(-.14*n,e,.4),c),r.knuckles.lerp(G.set(-.35*n,.9,0),c).normalize(),i.knuckles.lerp(G.set(.35*n,.9,0),c).normalize(),r.palm.lerp(G.set(-n,-.2,0),c).normalize(),i.palm.lerp(G.set(n,-.2,0),c).normalize(),r.pole.lerp(G.set(n,-.2,.3),c).normalize(),i.pole.lerp(G.set(-n,-.2,.3),c).normalize()}let l=this.cheerWeight*e;if(l>.001){let e=Math.sin(t*8.5);a.hips.z=o(a.hips.z,.04,l),a.hipsPitch=o(a.hipsPitch,-.02,l),a.spinePitch=o(a.spinePitch,-.06,l),a.spineRoll=o(a.spineRoll,e*.05,l),a.headPitch=o(a.headPitch,-.2,l);let s=a.hips.y+.93+e*.05;r.position.lerp(G.set(.36*n,s,.06),l),i.position.lerp(G.set(-.36*n,s-e*.06,.06),l),r.knuckles.lerp(G.set(.15*n,1,0),l).normalize(),i.knuckles.lerp(G.set(-.15*n,1,0),l).normalize(),r.palm.lerp(G.set(0,0,1),l).normalize(),i.palm.lerp(G.set(0,0,1),l).normalize(),r.pole.lerp(G.set(n,-.3,-.2),l).normalize(),i.pole.lerp(G.set(-n,-.3,-.2),l).normalize()}}applyTreatPose(e,t,n,r,i,a,o){let s=this.torso,c=R.lerp,l=this.treatScratch.set(this.rootX??0,0,this.rootZ),u=this.scratchQ.setFromAxisAngle(FD,-this.yaw),d=G.copy(this.treatTarget).sub(l).applyQuaternion(u),f=this.treatFacingLocal.copy(this.treatFacing).applyQuaternion(u),p=f.z,m=-f.x,h=this.treatUrgency,g=t*c(2.6,7,h),_=Math.sin(g)*c(.006,.016,h),v=Math.cos(g)*.03*h;s.hips.lerp(this.treatScratch.set(0,.5,.1),e),s.hipsYaw=c(s.hipsYaw,0,e),s.hipsPitch=c(s.hipsPitch,.14,e),s.hipsRoll=c(s.hipsRoll,0,e),s.shouldersYaw=c(s.shouldersYaw,0,e),s.spinePitch=c(s.spinePitch,.26,e),s.headYaw=c(s.headYaw,Kw(Math.atan2(d.x,d.z-.25),-.6,.6),e),s.headPitch=c(s.headPitch,Kw(Math.atan2(1.12-d.y,Math.hypot(d.x,d.z-.25)),-.5,.6),e),this.kneelLegs(e,n,a,o,.1);let y=this.treatProp===`bottle`,b=y?.3:.08-_;r.position.lerp(this.treatScratch.set(d.x+f.x*b+p*v,d.y+(y?.02:-.07),d.z+f.z*b+m*v),e),y?r.knuckles.lerp(this.treatScratch.set(-f.x,-.25,-f.z),e).normalize():r.knuckles.lerp(this.treatScratch.set(0,1,.05),e).normalize(),r.palm.lerp(y?this.treatScratch.set(0,-1,0):this.treatScratch.set(-f.x,0,-f.z),e).normalize(),r.pole.lerp(this.treatScratch.set(.85*n,-.35,.1),e).normalize();let x=this.treatSide*.135;i.position.lerp(this.treatScratch.set(d.x-p*x+f.x*.05,d.y-.2,d.z-m*x+f.z*.05),e),i.knuckles.lerp(this.treatScratch.set(0,.9,.4),e).normalize(),i.palm.lerp(this.treatScratch.set(p*this.treatSide*.8-f.x*.6,.1,m*this.treatSide*.8-f.z*.6),e).normalize(),i.pole.lerp(this.treatScratch.set(-.85*n,-.4,.1),e).normalize()}applyBreakPose(e,t,n,r){let i=this.torso,a=R.lerp;i.hipsPitch=a(i.hipsPitch,.14,e),i.spinePitch=a(i.spinePitch,.2,e);let o=this.scratchC.set(.48*t,1.22,.52),s=this.scratchD.set(-.48*t,1.22,.52);if(this.breakAimed){let[e,n]=this.breakFighters,r=this.scratch.subVectors(n,e).setY(0).normalize(),i=this.scratchQ.setFromAxisAngle(FD,-this.yaw),a=this.scratchB.set(this.rootX??0,0,this.rootZ);o.copy(e).addScaledVector(r,NT).sub(a).applyQuaternion(i),s.copy(n).addScaledVector(r,-NT).sub(a).applyQuaternion(i),o.x*tpT*.15;let s=this.downResult;if(this.downState!==`falling`){let a=this.riseProgress,c=0;if(this.fallKneel)c=Hx(hT,1,a),OD(s,this.placeKneel(this.downFrom,e),o,c);else if(a0==t>0;return e.hips.set(.02*t,.53,-.06),e.hipsYaw=rS.bladeYaw*t*.3,e.hipsPitch=.24,e.hipsRoll=0,e.shouldersYaw=rS.bladeYaw*t*.2,e.spinePitch=.62,e.headPitch=.48,(r?e.leadHand:e.rearHand).set(n*.13,.66,.2),(r?e.rearHand:e.leadHand).set(.13*t,.66,.37),e.leadFoot.set(.16*t,.125,.32),e.rearFoot.set(-.12*t,.12,-.5),e.leadHeel=0,e.rearHeel=0,e.palmsDown=1,e}placeLying(e){let t=this.boxer.rig.metrics.ankleHeight;return yD(this.landProne?mD(this.downFrom,uD,dD,e,this.landSide,t):mD(this.downFrom,cD,lD,e,this.landSide,t),this.landShift)}placeDown(e,t,n){return mD(e,t,null,n,0,this.boxer.rig.metrics.ankleHeight)}chooseLanding(e){let t=this.boxer.rig.metrics.ankleHeight,n=1/0;for(let r=0;r=n||(n=u.length()+o,this.landProne=s,this.landSide=c,this.landShift.copy(u))}}ropeShift(e,t){let n=this.scratchQ.setFromAxisAngle(FD,this.yaw);rD.set(e.hipsPitch+e.spinePitch*.7,e.hipsYaw,e.hipsRoll,`YXZ`),CD[0].set(0,xD,0).applyEuler(rD).add(e.hips),CD[1].set(.2,SD,0).applyEuler(rD).add(e.hips),CD[2].set(-.2,SD,0).applyEuler(rD).add(e.hips),CD[3].copy(e.leadHand),CD[4].copy(e.rearHand),CD[5].copy(e.leadFoot).z+=e.leadHeel>0?.25:.19,CD[6].copy(e.rearFoot).z+=e.rearHeel>0?.25:.19,CD[7].copy(e.hips);let r=1/0,i=-1/0,a=1/0,o=-1/0;for(let e=0;e0==t>0,c=s?n:r,l=s?r:n;i.pole.lerp(G.set(.15*t,.35,1),e).normalize(),a.pole.lerp(G.set(-.1*t,-1,.3),e).normalize(),i.toe.lerp(G.set(.15*t,0,1),e).normalize(),a.toe.lerp(G.set(0,-.35,-1),e).normalize(),c.palm.lerp(G.set(-o*.75,0,-.65),e).normalize(),c.knuckles.lerp(G.set(-o*.35,.25,.9),e).normalize(),c.pole.lerp(G.set(o*.9,-.35,-.25),e).normalize(),l.palm.lerp(G.set(0,-1,.1),e).normalize(),l.knuckles.lerp(G.set(.2*t,-.2,1),e).normalize(),l.pole.lerp(G.set(t*.7,.1,-.7),e).normalize()}writeDown(e,t,n,r,i,a,o,s){let c=this.torso,l=1-s;this.downStand=s,c.hips.copy(e.hips),c.hipsYaw=e.hipsYaw,c.hipsPitch=e.hipsPitch,c.hipsRoll=e.hipsRoll,c.shouldersYaw=e.shouldersYaw,c.spinePitch=e.spinePitch,c.spineRoll=c.spineRoll*s+e.spineRoll,c.headPitch=e.headPitch,c.headYaw=c.headYaw*s+e.turn,c.headRoll=c.headRoll*s+e.headRoll,c.headOffset.multiplyScalar(s),c.headOffset.z-=o,n.position.copy(e.leadHand),r.position.copy(e.rearHand),oD(n,t,e.palmsDown,l),oD(r,-t,e.palmsDown,l),i.position.copy(e.leadFoot),a.position.copy(e.rearFoot),i.toe.lerp(YE.set(.2*t,0,1).normalize(),l).normalize(),a.toe.lerp(YE.set(-.2*t,0,1).normalize(),l).normalize(),i.heel=e.leadHeel,a.heel=e.rearHeel;let u=YE.set(0,0,1).applyEuler(rD.set(e.hipsPitch,e.hipsYaw,e.hipsRoll,`YXZ`));if(i.pole.lerp(u,l),a.pole.lerp(u,l),e.ownJoints>0){let t=e.ownJoints*l;_D(i.pole,e.leadKnee,t),_D(a.pole,e.rearKnee,t),_D(n.pole,e.leadElbow,t),_D(r.pole,e.rearElbow,t),_D(n.knuckles,e.leadKnuckles,t),_D(n.palm,e.leadPalm,t),_D(r.knuckles,e.rearKnuckles,t),_D(r.palm,e.rearPalm,t)}}calmInjuries(){this.armLimp.fill(0),this.armSnap.fill(0),this.kneeGive.fill(0),this.lostLean=0,this.cover=0,this.hunch=0,this.curl=0,this.faint=0,this.retching=0,this.daze=0,this.stepPace.fill(1),this.stepLift.fill(1),this.stepSlack=1,this.hurt=!1,this.dropDangles()}dropDangles(){for(let e=0;e<2;e+=1)this.armDangle[e].live=!1,this.forearmDangle[e].live=!1}stepInjuries(e){this.retchTime=Math.max(0,this.retchTime-e);let t=this.posedInjuries>1||this.faintTarget>0||this.retchTime>0||this.dazed;if(!t&&!this.hurt)return;let n=this.downState===`up`,r=0;for(let t=0;t<2;t+=1){let n=this.armCarry[t];this.armLimp[t]=Ww(this.armLimp[t],+(n===`dead`||n===`gone`),pE,e),this.armSnap[t]=Ww(this.armSnap[t],+(n===`snapped`),pE,e),this.kneeGive[t]=Ww(this.kneeGive[t],+!!this.kneeBlown[t],8,e),r=Math.max(r,this.armLimp[t],this.armSnap[t],this.kneeGive[t])}let i=this.armCarry[0],a=this.armCarry[1],o=i===`whole`||i===`stump`,s=a===`whole`||a===`stump`;this.cover=Ww(this.cover,o===s?0:o?1:-1,6,e),this.lostLean=Ww(this.lostLean,(i===`gone`)-+(a===`gone`),4,e),this.hunch=Ww(this.hunch,+!!this.gutted,5,e),this.curl=Ww(this.curl,+!!this.liver,4,e),this.faint=Ww(this.faint,this.faintTarget,2.5,e);let c=this.retchTime>0&&n;this.retching=Ww(this.retching,+!!c,c?12:5,e);let l=this.dazed&&n;if(this.daze=Ww(this.daze,+!!l,l?8:5,e),this.dazeTime=this.daze>.001?this.dazeTime+e:0,r=Math.max(r,Math.abs(this.cover),Math.abs(this.lostLean),this.hunch,this.curl,this.faint,this.retching,this.daze),!t&&r<.001){this.calmInjuries();return}this.hurt=!0;let u=this.hunch,d=this.faint,f=this.daze;this.stepSlack=(1-.3*u)*(1-.55*f);for(let e=0;e<2;e+=1){let t=this.kneeGive[e],n=this.kneeGive[1-e];this.stepPace[e]=(1-.4*n)*(1+.25*t)*(1-.25*u)*(1+.15*d)*(1+.2*f),this.stepLift[e]=(1-.5*t)*(1-.6*u)*(1-.75*d)*(1-.4*f)}}stepDeath(e){if(!(!this.dead||this.throe>=fE.length))for(this.deathAge+=e;this.throe=fE[this.throe].at;){let e=fE[this.throe];this.ragdoll?.twitch(e.part,(this.throe+this.throeSide)%2,e.speed),this.throe+=1}}stumble(e,t,n){let r=this.dazeTime;t.add(this.scratchD.set(Math.sin(r*1.7+e*2.1)*.07,0,Math.sin(r*1.25+e*1.3)*.06).multiplyScalar(this.daze).applyAxisAngle(FD,n))}applyHurtStance(e,t,n,r,i){let a=this.torso,o=0,s=0,c=0,l=this.hunch;l>.001&&(s+=.3*l,o+=.045*l,a.hipsPitch+=.06*l,a.headPitch+=.12*l);let u=this.curl;u>.001&&(s+=.1*u,a.spineRoll+=.21*u,a.headRoll+=.08*u,c+=.02*u,this.hand.R.position.y-=.08*u);let d=this.lostLean;Math.abs(d)>.001&&(a.spineRoll+=.15*d,c+=.025*d,a.headRoll-=.05*d);let f=this.faint;if(f>.001){let t=Math.sin(e*1.15),i=Math.sin(e*.83+1.3);a.hips.x+=t*.09*f,a.hips.z+=i*.06*f,a.hipsRoll+=t*.05*f,a.spineRoll+=Math.sin(e*1.15-.7)*.2*f,s+=(.17+i*.06)*f,o+=.03*f+(.06+.04*(.5+.5*Math.sin(e*2.6)))*f*f,a.headPitch+=(.4+Math.sin(e*.9+.4)*.14)*f,a.headRoll+=Math.sin(e*.7)*.36*f,a.headYaw+=Math.sin(e*.53+2)*.18*f,n.position.y-=.32*f,r.position.y-=.27*f,n.position.z-=.07*f}for(let e=0;e<2;e+=1){let t=this.kneeGive[e];if(t<=.001)continue;let n=e===0?1:-1,r=e===0?this.foot.L:this.foot.R,i=e===0?this.foot.R:this.foot.L,s=this.feet[1-e],c=s.stepping?Math.sin(s.progress*Math.PI)*t:0,l=t-c;a.hips.x+=(i.position.x-a.hips.x)*.25*l,a.hips.z+=(i.position.z-a.hips.z)*.18*l,o+=.085*c+.01*l,a.hipsRoll-=n*.16*c,a.spineRoll+=n*.13*c,r.heel+=.3*l,r.pole.x-=n*(.35*t+.9*c),r.pole.normalize()}if(a.hips.x+=Math.cos(a.hipsYaw)*c,a.hips.z-=Math.sin(a.hipsYaw)*c,o!==0||s!==0){a.hips.y-=o,a.spinePitch+=s;let e=o+s*FE,t=s*PE;i.y-=e,i.z+=t,n.position.y-=e,n.position.z+=t,r.position.y-=e,r.position.z+=t}let p=this.cover;if(Math.abs(p)>.001){let e=p>0?this.hand.L:this.hand.R,n=Math.abs(p);e.position.x+=(IE*t-e.position.x)*.7*n,e.position.y+=.03*n,e.position.z+=.03*n}}applyHurtActs(e,t,n,r){let i=this.torso,a=R.lerp,o=+(t>0),s=this.armCarry[o]===`whole`?o:this.armCarry[1-o]===`whole`?1-o:-1,c=this.retching*(1-.7*this.punchCommit);if(c>.001){let t=Math.max(0,Math.sin(e*10.5))**2;i.hips.y=a(i.hips.y,rS.hipsHeight-.13-t*.02,c),i.hips.z=a(i.hips.z,-.08,c),i.hipsPitch=a(i.hipsPitch,.36,c),i.spinePitch=a(i.spinePitch,.78+t*.12,c),i.spineRoll=a(i.spineRoll,0,c),i.headPitch=a(i.headPitch,1.3+t*.15,c),i.headYaw=a(i.headYaw,0,c),i.headRoll=a(i.headRoll,0,c),i.headOffset.multiplyScalar(1-c);let n=s<0?o:1-s;if(this.armCarry[n]===`whole`){let e=n===0?1:-1,t=n===0?this.hand.L:this.hand.R;t.position.lerp(G.set(e*.19,.62,n===o?-.02:.15),c),t.pole.lerp(G.set(e*.9,.1,-.4),c).normalize(),t.knuckles.lerp(G.set(-e*.2,-.7,.6),c).normalize(),t.palm.lerp(G.set(0,-.6,-.8),c).normalize()}}let l=Math.max(Math.abs(this.slip),this.weave,this.pull),u=Kw(1-this.guardHigh-this.guardLow,0,1)*(1-this.punchCommit)*(1-l)*(1-this.clinchWeight),d=this.punchActive&&s===(this.punchHand===`left`?0:1)?Kw(this.punchReach*4,0,1):0,f=Math.max(c,this.hunch*u)*(1-d);f>.001&&s>=0&&this.clutchBelly(s,f);let p=this.daze;if(p>.001){let e=this.dazeTime,o=Hx(.7,1.6,e),s=Math.sin(e*2.2),c=Math.sin(e*1.45+.9),l=rS.bladeYaw*t;i.hips.x=a(i.hips.x,s*.06,p),i.hips.z=a(i.hips.z,c*.045,p),i.hips.y=a(i.hips.y,rS.hipsHeight-.08-Math.sin(e*4.4+1)*.02,p),i.hipsYaw=a(i.hipsYaw,l*.8,p),i.hipsPitch=a(i.hipsPitch,.04,p),i.hipsRoll=a(i.hipsRoll,s*.05,p),i.shouldersYaw=a(i.shouldersYaw,l*.65,p),i.spinePitch=a(i.spinePitch,.24+c*.07,p),i.spineRoll=a(i.spineRoll,Math.sin(e*2.2-.9)*.13,p),i.headYaw=a(i.headYaw,o*Math.sin(e*1.1+2)*.3,p),i.headPitch=a(i.headPitch,.95-o*(.28+Math.sin(e*1.3)*.25),p),i.headRoll=a(i.headRoll,o*Math.sin(e*1.9)*.42,p),i.headOffset.multiplyScalar(1-p),n.heel=a(n.heel,0,p),r.heel=a(r.heel,0,p)}}clutchBelly(e,t){let n=this.torso,r=e===0?this.hand.L:this.hand.R,i=e===0?1:-1,a=n.hipsYaw+(n.shouldersYaw-n.hipsYaw)*.25,o=n.hipsPitch+n.spinePitch*.2;r.position.lerp(G.set(i*.05,.17,.19+o*.08).applyAxisAngle(FD,a).add(n.hips),t),r.knuckles.lerp(G.set(-i*.9,-.3,.2).applyAxisAngle(FD,a),t).normalize(),r.palm.lerp(G.set(-i*.1,.15,-1).applyAxisAngle(FD,a),t).normalize(),r.pole.lerp(G.set(i*.85,-.35,-.4).applyAxisAngle(FD,a),t).normalize()}dangleArms(e){let t=this.daze,n=this.boxer.rig,r=n.bones;Px(r.hips,this.trunkLow),Px(r.upperChest,this.trunkHigh),this.trunkLow.addScaledVector(LE.subVectors(this.trunkLow,this.trunkHigh).normalize(),jE);let i=this.ragdoll?.handingOver===!0;for(let a=0;a<2;a+=1){let o=Math.max(this.armLimp[a],t),s=this.armSnap[a],c=this.armDangle[a],l=this.forearmDangle[a];if(o<=.001&&(c.live=!1),s<=.001&&(l.live=!1),o<=.001&&s<=.001)continue;let u=a===0,d=u?1:-1,f=u?r.shoulderL:r.shoulderR,p=u?r.elbowL:r.elbowR,m=u?r.gloveL:r.gloveR,h=u?n.metrics.armL:n.metrics.armR;if(o>.001){let t=Px(m,RE);if(Fx(m,qE),this.armCarry[a]===`dead`){let e=Px(f,zE);e.y-=mE*this.armLimp[a],n.aimAt(u?r.clavicleL:r.clavicleR,e,`z`),f.updateWorldMatrix(!1,!1)}let s=Px(f,zE),l=(h.upper+h.lower)*hE;if(!c.live){let e=o>kE&&!i;uE(c,e?LE.set(s.x,s.y-l,s.z):t,s),e&&this.holdDangle(c.at,s,l,!1,null)}let g=this.punchActive&&this.punchHand===`left`===u?this.punchReach:0;this.swing(c,s,l,!1,e,gE,_E,t,g*yE);let _=BE.set(d*.3,.15+3*Kw(1-s.y/NE,0,1),-1).lerp(u?this.hand.L.pole:this.hand.R.pole,1-o).applyAxisAngle(FD,this.yaw);n.solveLimb(f,p,h,t.lerp(c.at,o),_,`z`,u?1:-1,.012),m.updateWorldMatrix(!1,!1),Ix(VE.subVectors(Px(m,RE),Px(p,LE)).normalize(),BE.set(-d,0,.2).applyAxisAngle(FD,this.yaw),`z`,JE),n.setWorldRotation(m,qE.slerp(JE,o))}if(s>.001){let t=Px(p,zE),r=Px(m,RE);Fx(m,qE);let a=Math.max(0,-(t.y-Px(f,LE).y)/h.upper),o=Kw((t.y-ME)/h.lower,0,1),c=KE.set(d*(bE+xE*a*a),-o,0).applyAxisAngle(FD,this.yaw).normalize();l.live||(uE(l,s>kE&&!i?LE.set(t.x,t.y-h.lower,t.z):r,t),this.holdDangle(l.at,t,h.lower,!0,c)),this.swing(l,t,h.lower,!0,e,gE,vE,null,0,c);let u=VE.subVectors(r,t).lerp(LE.subVectors(l.at,t),s).normalize(),g=BE.setFromMatrixColumn(p.matrixWorld,2).lerp(LE.setFromMatrixColumn(p.matrixWorld,0).multiplyScalar(d),s);n.setWorldFrame(p,u,g,`z`),m.updateWorldMatrix(!1,!1),Ix(LE.copy(u).addScaledVector(ZE,.9).normalize(),BE.set(-d,.2,-.4).applyAxisAngle(FD,this.yaw),`z`,JE),n.setWorldRotation(m,qE.slerp(JE,s))}}}swing(e,t,n,r,i,a,o,s,c,l=null){let u=e.at,d=e.velocity;(e.carried||t.distanceToSquared(e.pivot)>OE*OE)&&(u.add(t).sub(e.pivot),d.set(0,0,0),e.pivot.copy(t),e.carried=!1);let f=i>0?Math.min(EE,Math.ceil(i/TE)):0,p=f>0?i/f:0;for(let i=1;i<=f;i+=1)HE.copy(u),d.addScaledVector(a,p),s!==null&&c>0&&d.addScaledVector(UE.subVectors(s,u),c*p),d.multiplyScalar(Math.exp(-o*p)),u.addScaledVector(d,p),this.holdDangle(u,UE.lerpVectors(e.pivot,t,i/f),n,r,l),d.subVectors(u,HE).divideScalar(p).clampLength(0,DE);f===0&&this.holdDangle(u,t,n,r,l),e.pivot.copy(t)}holdDangle(e,t,n,r,i){let a=this.trunkLow,o=WE.subVectors(this.trunkHigh,a);for(let s=0;s<2;s+=1){let s=Kw(GE.subVectors(e,a).dot(o)/Math.max(1e-6,o.lengthSq()),0,1),c=GE.addScaledVector(o,-s).length();c1e-4&&e.addScaledVector(GE,(AE-c)/c),e.y=Math.max(e.y,ME);let l=GE.subVectors(e,t),u=l.length();if(u<1e-6?e.set(t.x,t.y-n,t.z):(r||u>n)&&e.copy(t).addScaledVector(l,n/u),i===null)continue;l.subVectors(e,t);let d=l.dot(i);if(d>=n*CE)continue;let f=l.addScaledVector(i,-d).length();e.copy(t).addScaledVector(i,n*(f>1e-6?CE:1)),f>1e-6&&e.addScaledVector(l,n*wE/f)}}applyDislocation(){if(this.dislocation!==`jaw`)return;let e=this.boxer.bone(`head`);e!==null&&(e.quaternion.multiply(sE),e.updateWorldMatrix(!1,!0))}dispose(){this.stool.dispose(),this.enswell.dispose(),this.bottle.dispose(),this.boxer.dispose()}},ET=.44,DT=.2,OT=.75,kT=.94,AT=.836,jT=.12,MT=1.72,NT=.2,PT=1.26,FT=48,IT=14,LT=1.34,RT=80,zT=56,BT=24,VT=4,HT=1.5,UT=60,WT=4,GT=.15,KT=.8,qT=1.3,JT=.35,YT=.93,XT=500,ZT=900,QT=.15,$T=.05,eE=.07,tE=.14,nE=.05,rE=.2,iE=.04,aE=.36;function oE(e){let t=7;for(let n=0;nMath.atan2(Math.sin(e),Math.cos(e)),gD=new B;function _D(e,t,n){if(n<=0)return e;e.normalize();let r=e.angleTo(t);return r<1e-4?e:(gD.crossVectors(e,t),gD.lengthSq()<1e-8&&gD.crossVectors(e,Math.abs(e.y)<.9?FD:XE),e.applyAxisAngle(gD.normalize(),r*Math.min(1,n)))}function vD(e,t,n,r){let i=t+hD(e.x-t),a=n+hD(e.y-n),o=r+hD(e.z-r),s=t+hD(Math.PI-e.x-t),c=n+hD(e.y+Math.PI-n),l=r+hD(e.z+Math.PI-r);return Math.abs(i-t)+Math.abs(a-n)+Math.abs(o-r)<=Math.abs(s-t)+Math.abs(c-n)+Math.abs(l-r)?e.set(i,a,o,`YXZ`):e.set(s,c,l,`YXZ`)}function yD(e,t){return e.hips.add(t),e.leadHand.add(t),e.rearHand.add(t),e.leadFoot.add(t),e.rearFoot.add(t),e}var bD=ev*.72-.05,xD=.78,SD=.5,CD=Array.from({length:8},()=>new B),wD=[.17,.22,.22,.13,.13,.12,.12,.2],TD=[[!1,1,0],[!1,0,.15],[!1,-1,.3],[!0,1,.4],[!0,0,.5],[!0,-1,.6]];function ED(e,t){return e<-bD&&t>bD?-(e+t)/2:e<-bD?-bD-e:t>bD?bD-t:0}function DD(e,t){return OD(e,t,t,0)}function OD(e,t,n,r){let i=R.lerp;return e.hips.copy(t.hips).lerp(n.hips,r),e.hipsYaw=i(t.hipsYaw,n.hipsYaw,r),e.hipsPitch=i(t.hipsPitch,n.hipsPitch,r),e.hipsRoll=i(t.hipsRoll,n.hipsRoll,r),e.shouldersYaw=i(t.shouldersYaw,n.shouldersYaw,r),e.spinePitch=i(t.spinePitch,n.spinePitch,r),e.spineRoll=i(t.spineRoll,n.spineRoll,r),e.headPitch=i(t.headPitch,n.headPitch,r),e.headRoll=i(t.headRoll,n.headRoll,r),e.leadHand.copy(t.leadHand).lerp(n.leadHand,r),e.rearHand.copy(t.rearHand).lerp(n.rearHand,r),e.leadFoot.copy(t.leadFoot).lerp(n.leadFoot,r),e.rearFoot.copy(t.rearFoot).lerp(n.rearFoot,r),e.leadHeel=i(t.leadHeel,n.leadHeel,r),e.rearHeel=i(t.rearHeel,n.rearHeel,r),e.palmsDown=i(t.palmsDown,n.palmsDown,r),e.turn=i(t.turn,n.turn,r),_D(e.leadKnee.copy(t.leadKnee),n.leadKnee,r),_D(e.rearKnee.copy(t.rearKnee),n.rearKnee,r),_D(e.leadElbow.copy(t.leadElbow),n.leadElbow,r),_D(e.rearElbow.copy(t.rearElbow),n.rearElbow,r),_D(e.leadKnuckles.copy(t.leadKnuckles),n.leadKnuckles,r),_D(e.leadPalm.copy(t.leadPalm),n.leadPalm,r),_D(e.rearKnuckles.copy(t.rearKnuckles),n.rearKnuckles,r),_D(e.rearPalm.copy(t.rearPalm),n.rearPalm,r),e.ownJoints=i(t.ownJoints,n.ownJoints,r),e}var kD=3;function AD(e,t,n){if(n===null)return null;let r=t+n;return e===null||Math.abs(r-e)>kD?r:e}function jD(e){return(1-Hx(zT,RT,e))*Hx(VT,BT,e)}function MD(){let e=new tc;e.name=`enswell`,e.visible=!1;let t=new Iu(3.2,3.2,.9,20),n=new Iu(.8,.8,6,10),r=new jd({color:13159634,roughness:.3,metalness:.9}),i=new H(t,r);i.rotation.x=Math.PI/2,i.position.set(0,9.5,3.4),e.add(i);let a=new H(n,r);return a.position.set(0,5.5,2.4),e.add(a),{group:e,dispose:()=>{t.dispose(),n.dispose(),r.dispose()}}}function ND(){let e=new tc;e.name=`bottle`,e.visible=!1;let t=new Iu(3.3,3.3,15,18),n=new Iu(1.3,3.3,3,18),r=new Iu(.7,1.1,3.2,10),i=new jd({color:14280430,roughness:.32,metalness:0}),a=new jd({color:1920728,roughness:.5,metalness:0}),o=new H(t,i);o.position.set(0,9,2.6);let s=new H(n,i);s.position.set(0,18,2.6);let c=new H(r,a);return c.position.set(0,21,2.6),e.add(o,s,c),{group:e,dispose:()=>{t.dispose(),n.dispose(),r.dispose(),i.dispose(),a.dispose()}}}function PD(){let e=new tc;e.name=`stool`,e.visible=!1;let t=new Iu(.17,.17,.035,18),n=new Iu(.012,.014,.42,8),r=new jd({color:13222581,roughness:.85}),i=new jd({color:2764083,roughness:.45,metalness:.6}),a=new H(t,r);a.position.y=.4225,a.castShadow=!0,e.add(a);for(let t=0;t<4;t+=1){let r=Math.PI/4+t*Math.PI/2,a=new H(n,i);a.position.set(Math.cos(r)*.13,.42/2,Math.sin(r)*.13),a.rotation.set(-Math.sin(r)*.12,0,Math.cos(r)*.12),a.castShadow=!0,e.add(a)}return{group:e,dispose:()=>{t.dispose(),n.dispose(),r.dispose(),i.dispose()}}}var FD=new B(0,1,0),ID=6,LD=3,RD=1.5,zD=2.5,BD=1.5,VD=.55,HD=2.1,UD=.42,WD=.22,GD=.08,KD=.15,qD=.42,JD=.12,YD=.5,XD=.5,ZD=new Set([`hit`,`counter_hit`,`block`,`perfect_block`,`referee_hit`]),QD=new Set([`slip_left`,`slip_right`,`weave`,`pull`]),$D=40,eO=y/a,tO=.12,nO=30,rO=2;function iO(e,t,n){if(e0;case`forearm_left`:return t===`glove_left`||o&&Qg(r,i,a,1)>0;case`forearm_right`:return t===`glove_right`||o&&Qg(r,i,a,-1)>0;case`arm_left`:return t===`glove_left`||o&&$g(r,i,a,1)>0;case`arm_right`:return t===`glove_right`||o&&$g(r,i,a,-1)>0;case`leg_left`:return r>=0&&(t===`shoes`||o&&i<60);case`leg_right`:return r<0&&(t===`shoes`||o&&i<60);case`upper_body`:return t===`head`||t===`glove_left`||t===`glove_right`||o&&e_(r,i,a)>0;case`torso`:return t===`pants`||o&&i>=60&&$g(r,i,a,1)<=0&&$g(r,i,a,-1)<=0}}var sO={head:`BoxerHead`,body:`BoxerBody`,glove_left:`BoxerGloveLeft`,glove_right:`BoxerGloveRight`,pants:`BoxerPants`,shoes:`BoxerShoes`},cO=new WeakMap;function lO(e,t){let n=cO.get(e);if(n===void 0){n={};let t=new Map(Object.entries(sO).map(([e,t])=>[t,e]));e.root.traverse(e=>{let r=e instanceof Hl?t.get(e.name):void 0;r!==void 0&&(n[r]=e)}),cO.set(e,n)}return n[t]??null}var uO=[`left`,`right`],dO=new B(0,1,0),fO=new B(0,-1,0),pO=15129792,mO=6032400,hO=9313310,gO=4982537,_O=14200392,vO=2228997,yO=14263970,bO=8270912,xO=11618383,SO=15524550,CO=12866653,wO=13602176,TO=9384504,EO=new V,DO=new V,OO=new B,kO=R.smoothstep;function AO(e,t){e.deleteAttribute(`uv`);let n=e.getAttribute(`position`),r=new Float32Array(n.count*3);for(let e=0;eo/2-.001){let t=Math.atan2(OO.z,OO.x);OO.y+=i<1e-4?-n*.8:n*(.5*Math.sin(t*3+e[1])+.35*Math.sin(t*5+e[2]))}c.setXYZ(t,OO.x,OO.y+o/2,OO.z*r)}return s.computeVertexNormals(),AO(s,(t,r)=>{let i=1-kO(t.y/o,.15,.42)*(.85+.15*Math.sin(Math.atan2(t.z,t.x)*4+e[0]));r.setHex(pO).lerp(DO.setHex(gO),i),Math.hypot(t.x,t.z)o*.5&&r.setHex(mO)}),s.applyQuaternion(new rs().setFromUnitVectors(dO,a.normalize())),s.translate(i.x,i.y,i.z),s}function NO(e,t,n,r=!1){return AO(new bd(new Ju(e.map(e=>new B(...e)),r),e.length*5,t,7,r),n)}var PO=[0,123.6,-3.2],FO=[4.5,4,5];function IO(){let e=new _d(1,40,24,0,Math.PI*2,0,Math.PI*.6),t=e.getAttribute(`position`),n=new Float32Array(t.count);for(let e=0;e{let i=n[r];r+=1,t.setHex(bO).lerp(DO.setHex(yO),kO(i,-.5,.45)),(i<-1||Math.sin(e.x*.9+e.z*1.3)>.72)&&t.lerp(DO.setHex(hO),.7)})}function LO(){let e=[[1,.2,pO],[.9,0,pO],[.82,0,mO],[.74,0,pO],[.66,-.9,gO]],t=[],n=[],r=[];for(let[i,[a,o,s]]of e.entries())for(let e=0;e<32;e+=1){let c=e/32*Math.PI*2;if(t.push(Math.cos(c)*5.6*a,124+o,-3.3+Math.sin(c)*6.4*a),EO.setHex(s).multiplyScalar(.85+.15*Math.sin(c*11+i)),n.push(EO.r,EO.g,EO.b),i===0)continue;let l=(e+1)%32;r.push((i-1)*32+e,i*32+e,(i-1)*32+l,(i-1)*32+l,i*32+e,i*32+l)}let i=new il;return i.setAttribute(`position`,new Kc(t,3)),i.setAttribute(`color`,new Kc(n,3)),i.setIndex(r),i.computeVertexNormals(),i}var RO=[0,112.9,-.4],zO=9,BO=new B(0,-.93,.37).normalize(),VO=.95;function HO(){let e=new Pu(1.5,6,6,16,8),t=e.getAttribute(`position`);for(let e=0;e0?.5*(1-kO(r,0,.45)):0,a=.5*Math.sin(n*5)*(1-n);t.setXYZ(e,OO.x*R.lerp(.9,1.1,Math.sin(n*Math.PI))+a*.4,OO.y-zO/2,(OO.z-i)*.3+.35*r*r+1.3*n*n)}return e.computeVertexNormals(),AO(e,(e,t)=>{let n=-e.y/zO,r=Math.sin(e.y*2.6+e.x*2.1)*Math.sin(e.x*3.3-e.y*1.2);t.setHex(CO).multiplyScalar(.8+.2*r).lerp(DO.setHex(gO),.8*(1-kO(n,0,.35))),(r>.45||n>.88)&&t.lerp(DO.setHex(hO),.65)})}function UO(){let e=[],t=new _d(1,18,12,Math.PI,Math.PI);t.scale(3.3,2.5,3.2),t.translate(0,113.3,-.5),e.push(AO(t,(e,t)=>{t.setHex(vO).lerp(DO.setHex(hO),kO(Math.hypot(e.x,e.y-112.6,(e.z+3)*.7),.7,2.6))}));let n=new Fu(1,20);n.rotateX(Math.PI/2),n.scale(3.3,1,3.9),n.translate(0,115.25,.5),e.push(AO(n,(e,t)=>{t.setHex(TO).multiplyScalar(.75+.25*Math.sin(e.z*5)).lerp(DO.setHex(vO),1-kO(e.z,-3,.5))}));let r=[];for(let t=0;t<14;t+=1){let n=-1.75+t/13*3.5,i=1-Math.abs(n)/1.75,a=t===4||t===9?1.35:R.lerp(.85,1.2,i),o=new Iu(.3,t===4||t===9?.16:.37,a,6);o.scale(1,1,R.lerp(1.15,.55,i)),o.rotateY(n);let s=Math.sin(n)*2.75,c=.9+Math.cos(n)*3.1;o.translate(s,114.9-a/2,c),e.push(AO(o,(e,t)=>{t.setHex(SO).lerp(DO.setHex(hO),.8*kO(e.y,114.3,114.9))})),r.push([s,114.95,c])}return e.push(NO(r,.45,xO)),jO(e)}function WO(e){return jO([MO([e*29.4,103.8,-4.2],[e*32.9,104.1,-4],.85),MO([e*29.4,102,-6.2],[e*32.3,101.8,-6.5],.7)])}function GO(e){let t=new _d(1,12,9);return t.scale(.9,1.7,1.5),t.translate(e*13.3,103.4,-5.5),AO(t,(e,t)=>{t.setHex(15327954).lerp(DO.setHex(hO),Math.sin(e.y*3.1+e.z*2.3)>.4?.75:.1)})}function KO(){return jO([AO(new Iu(2,2.1,1.8,10).translate(0,80.4,-5.4),pO),AO(new Iu(1.8,1.8,.6,10).translate(0,81.6,-5.4),12563866),MO([0,81.9,-5.4],[.4,85.4,-5.8],1.9),NO([[.2,84.6,-5.6],[.3,86.6,-5.8],[.9,87.8,-5.2]],.55,15255984),NO([[-6.5,81.6,.5],[-3,82.6,3.6],[1.5,81.8,4.4],[6,82.8,2],[7,81.6,-2],[3.5,82.9,-1],[-1,81.7,.6],[-5,82.9,-2.6],[-7.2,81.5,-4]],1.25,wO,!0),NO([[4.5,83.6,1.6],[1,84.4,2.4],[-3,83.5,.6],[-2,84.2,-2.6],[2.5,83.6,-2.2]],1.05,12548720,!0),AO(new _d(1,10,7).scale(3.2,1.6,2.6).translate(-6,82.2,1.5),4854808)])}function qO(e){return jO(f_.map((t,n)=>{let r=new B(-t[0],0,-2-t[2]).normalize();return MO([e*(t[0]+r.x*3),t[1]-.3,t[2]+r.z*3],[e*(t[0]-r.x*1.3),t[1]+.7-.3*n,t[2]-r.z*1.3+.7],.75,.5)}))}function JO(){let e=[];for(let t=0;t<5;t+=1){let n=.5+t*1.26,r=Math.cos(n),i=Math.sin(n);e.push(MO([r*5.8,99.5+i*5.8,3.9],[r*2.9,99.5+i*2.9,2.4],.7,.5)),e.push(MO([i*5.6,99.5-r*5.6,-9.6],[i*4.3,99.5-r*4.3,-12.8],.7,.5))}return jO(e)}var YO=new B,XO=new B,ZO=new B,QO=new B,$O=new WeakMap;function ek(e,t,n){let r=e.getAttribute(`position`),i=e.getAttribute(`skinIndex`),a=e.getAttribute(`skinWeight`),o=new Map,s=new B;for(let e of t)o.has(e)||(o.set(e,o.size),s.add(OO.fromBufferAttribute(r,e)));s.multiplyScalar(1/o.size);let c=n.layers.length,l=[],u=[],d=[],f=[],p=new Map;for(let e of o.keys()){for(let[t,[o,c]]of n.layers.entries()){n.place(OO.fromBufferAttribute(r,e),s,o,YO),l.push(YO.x,YO.y,YO.z),EO.setHex(c).multiplyScalar(.8+.4*Math.abs(Math.sin(e*12.9898+t*4.1))),u.push(EO.r,EO.g,EO.b);for(let t=0;t<4;t+=1)d.push(i.getComponent(e,t)),f.push(a.getComponent(e,t))}for(let t=0;t<4;t+=1)p.set(i.getComponent(e,t),(p.get(i.getComponent(e,t))??0)+a.getComponent(e,t))}let m=o.size*c;if(n.middle!==null){n.place(s,s,1,YO),l.push(YO.x,YO.y,YO.z),EO.setHex(n.middle),u.push(EO.r,EO.g,EO.b);let e=[...p].sort((e,t)=>t[1]-e[1]).slice(0,4),t=e.reduce((e,[,t])=>e+t,0);for(let n=0;n<4;n+=1)d.push(e[n]?.[0]??0),f.push((e[n]?.[1]??0)/t)}let h=[],g=(e,t,r)=>{YO.fromArray(l,e*3),XO.fromArray(l,t*3),ZO.fromArray(l,r*3),n.facing(OO.copy(YO).add(XO).add(ZO).multiplyScalar(1/3),s,QO);let i=XO.sub(YO).cross(ZO.sub(YO)).dot(QO)>=0;h.push(e,i?t:r,i?r:t)};for(let e=0;evoid a.copy(n).lerp(r,i).addScaledVector(e,-t*i),facing:(t,n,r)=>void r.copy(e),middle:vO}}var nk={layers:[[0,gO],[.4,gO],[1,vO]],place:(e,t,n,r)=>void r.set(R.lerp(e.x,t.x,.22*n),R.lerp(e.y,t.y,.22*n),R.lerp(e.z,t.z-Math.sign(e.z-t.z)*.6,n)),facing:(e,t,n)=>void n.set(t.x-e.x,t.y-e.y,0),middle:null},rk={nose:{bone:`head`,mesh:`head`,at:[0,117,5.3],axis:[0,-.3,1]},mouth:{bone:`head`,mesh:`head`,at:[0,114.3,4.6],axis:[0,-.35,1]},eye_left:{bone:`head`,mesh:`head`,at:b_[0],axis:[.2,0,1]},eye_right:{bone:`head`,mesh:`head`,at:b_[1],axis:[-.2,0,1]},ear_left:{bone:`head`,mesh:`head`,at:d_,axis:[1,-.2,0]},ear_right:{bone:`head`,mesh:`head`,at:[-d_[0],d_[1],d_[2]],axis:[-1,-.2,0]},skull:{bone:`head`,mesh:`head`,at:[0,127.5,-3],axis:[0,1,0]},neck:{bone:`neck`,mesh:`body`,at:[0,109,-2],axis:[0,1,0]},shoulder_left:{bone:`clavicleL`,mesh:`body`,at:[15,103.5,-5.5],axis:[1,0,0]},shoulder_right:{bone:`clavicleR`,mesh:`body`,at:[-15,103.5,-5.5],axis:[-1,0,0]},elbow_left:{bone:`shoulderL`,mesh:`body`,at:[31,102.8,-5.2],axis:[1,0,0]},elbow_right:{bone:`shoulderR`,mesh:`body`,at:[-31,102.8,-5.2],axis:[-1,0,0]},chest:{bone:`chest`,mesh:`body`,at:[0,99.5,5.6],axis:[0,0,1]},ribs_left:{bone:`chest`,mesh:`body`,at:f_[1],axis:[1,0,.3]},ribs_right:{bone:`chest`,mesh:`body`,at:[-f_[1][0],f_[1][1],f_[1][2]],axis:[-1,0,.3]},liver:{bone:`chest`,mesh:`body`,at:[-8.5,89.5,4.4],axis:[-.5,0,1]},belly:{bone:`spine`,mesh:`body`,at:h_,axis:[0,-.2,1]},waist:{bone:`spine`,mesh:`body`,at:[0,81.5,-1],axis:[0,1,0]},crotch:{bone:`hips`,mesh:`body`,at:[0,72,2],axis:[0,-1,.15]},knee_left:{bone:`kneeL`,mesh:`body`,at:m_,axis:[1,0,.2]},knee_right:{bone:`kneeR`,mesh:`body`,at:[-m_[0],m_[1],m_[2]],axis:[-1,0,.2]}},ik=[`skull`,`maw`,`chest`,`waist`,...uO.flatMap(e=>[`fracture`,`ribs`,`knee`,`elbow`,`shoulder`].map(t=>`${t}_${e}`))],ak={left:{sign:1,bone:`L`,ear:`leftEar`,face:`leftFace`,cheek:`leftCheek`,eye:`leftEye`,arm:`leftArm`,shoulder:`leftShoulder`,elbow:`leftElbow`,ribs:`leftRibs`,knee:`leftKnee`,smear:`leftShoulderSmear`},right:{sign:-1,bone:`R`,ear:`rightEar`,face:`rightFace`,cheek:`rightCheek`,eye:`rightEye`,arm:`rightArm`,shoulder:`rightShoulder`,elbow:`rightElbow`,ribs:`rightRibs`,knee:`rightKnee`,smear:`rightShoulderSmear`}},ok=class{boxer;headRaises=[];bodyRaises=[];gloveGone={left:!1,right:!1};eyeOut={left:!1,right:!1};eyeShut={left:!1,right:!1};gloved;flesh;owned=[];tongueTip=new B;tongueVelocity=new B;root=new B;rest=new B;reach=new B;matrix=new Ds;fit=new Ds;upperGone=!1;headHidden=!1;injuries=0;blood=`full`;hole=!1;jawHung=!1;pieces=new Map;geometries=[];skull=null;skullMount=new Ds;brain=null;tongue=null;bodyShadow=null;standIns=null;tongueHung=!1;constructor(e){this.boxer=e,this.gloved={left:e.gloveMesh(`left`).visible,right:e.gloveMesh(`right`).visible},this.flesh=new jd({vertexColors:!0,roughness:.3,metalness:0,side:2}),Bw(this.flesh)}apply(e,t){let n=0;for(let t=0;tc*3)&&(this.tongueHung=!0,l.copy(o).addScaledVector(s,c),u.set(0,0,0));let d=this.reach.copy(l);e>1e-4&&(u.y-=9.8*e,u.addScaledVector(OO.copy(o).addScaledVector(s,c).sub(l),60*e).multiplyScalar(Math.exp(-5*e)),d.addScaledVector(u,e)),d.sub(o).setLength(c),d.angleTo(s)>VO&&(OO.copy(d).addScaledVector(s,-d.dot(s)).setLength(Math.sin(VO)*c),d.copy(s).multiplyScalar(Math.cos(VO)*c).add(OO)),d.add(o),e>1e-4&&u.copy(d).sub(l).multiplyScalar(1/e),l.copy(d),r.quaternion.setFromUnitVectors(fO,OO.copy(l).sub(o).transformDirection(a.invert()))}compileStandIns(){if(this.standIns!==null)return this.standIns;let e=this.boxer;for(let e of ik)this.built(e);let t=[],n=[[e.headMesh,e.headInjury],[lO(e,`body`),e.bodyInjury]];for(let[e,r]of n)for(let n of[!1,!0]){let i=e===null?null:r.variant(n);if(e===null||i===null)continue;this.owned.push(i);let a=new Hl(e.geometry,i);if(a.bind(e.skeleton,e.bindMatrix),a.frustumCulled=!1,a.castShadow=e.castShadow,n){let e=r.shadowVariant();this.owned.push(e),a.customDepthMaterial=e}t.push(a)}this.brain!==null&&t.push(new H(this.brain.geometry,this.flesh));let r=this.built(`waist`).find(e=>e instanceof Hl);if(r!==void 0){let e=new Hl(r.geometry,this.flesh);e.bind(r.skeleton,r.bindMatrix),e.frustumCulled=!1,t.push(e)}return this.standIns=t,t}clear(){this.upperGone=!1,this.hole=!1,this.injuries=0,this.show(),this.setPallor(0)}dispose(){this.clear();for(let e of this.standIns??[])e.removeFromParent();this.standIns=null;for(let e of this.pieces.values())for(let t of e)t.removeFromParent();for(let e of this.geometries)e.dispose();this.pieces.clear(),this.geometries.length=0,this.skull=this.brain=this.tongue=null,this.bodyShadow?.dispose(),this.bodyShadow=null;for(let e of this.owned)e.dispose();this.owned.length=0,this.flesh.dispose()}has(e){return!!(this.injuries&1<this.blood!==`off`&&this.has(e),o=r&&this.upperGone,s=this.isPartGone(`jaw`),c=r&&this.has(`skull_fractured`);t.setExplicit(r),n.setExplicit(r);let l=this.headRaises,u=this.bodyRaises;l.length=0,u.length=0;let d=(e,t,n,r=0,a=0)=>void e.push({site:t,bruise:n,blood:r*i,cut:a});if(t.setWound(`nose`,+!!a(`broken_nose`)),a(`broken_nose`)&&d(l,`nose`,1.1,1.4),a(`broken_jaw`)||a(`jaw_torn`)){let e=a(`jaw_torn`);d(l,`chin`,1.2),d(l,`leftJaw`,e?1.2:1),d(l,`rightJaw`,e?1.2:1),d(l,`mouth`,.7,e?1.4:.9,.7),d(u,`neckSmear`,0,e?1.4:.6)}a(`skull_fractured`)&&(d(l,`forehead`,1.1,1.4,+!r),d(u,`neckSmear`,0,1.1)),t.setGone(`jaw`,+!!s),t.setGone(`skull`,+!!c);let f=!1;for(let i of uO){let s=ak[i];t.setWound(s.ear,+!!a(`ear_${i}_torn`));let c=a(`face_${i}_flayed`);t.setWound(s.face,+!!c),c&&(d(l,s.cheek,.8,1.2),d(u,`neckSmear`,0,.9));let p=a(`eye_${i}_out`);p&&d(l,s.eye,1.1,+!r),this.eyeOut[i]&&!(p&&r)&&(f=!0),this.eyeOut[i]=p&&r,this.eyeShut[i]=p&&!r;let m=o?0:this.isPartGone(`arm_${i}`)?2:+!!this.isPartGone(`forearm_${i}`),h=!r&&a(`arm_${i}_torn`),g=!r&&a(`forearm_${i}_severed`);n.setGone(s.arm,m),n.setWound(s.shoulder,a(`shoulder_${i}_dislocated`)||h?1:0),n.setWound(s.elbow,a(`arm_${i}_broken`)||g?1:0),n.setWound(s.ribs,+!!a(`ribs_${i}_broken`)),n.setWound(s.knee,+!!a(`knee_${i}_blown`)),(m===2||h)&&d(u,s.smear,0,1.2),a(`ribs_${i}_broken`)&&d(u,s.ribs,1.2);let _=m>0||o;_?e.gloveMesh(i).visible=!1:this.gloveGone[i]&&(e.gloveMesh(i).visible=this.gloved[i]&&!e.isHandDismembered(i)),this.gloveGone[i]=_,this.piece(`fracture_${i}`,r&&!o&&m===0&&this.has(`arm_${i}_broken`)),this.piece(`ribs_${i}`,r&&!o&&this.has(`ribs_${i}_broken`)),this.piece(`knee_${i}`,r&&this.has(`knee_${i}_blown`)),this.piece(`elbow_${i}`,m===1),this.piece(`shoulder_${i}`,m===2)}f&&t.setEyeOut(this.eyeOut.left&&this.eyeOut.right?`both`:this.eyeOut.left?`left`:this.eyeOut.right?`right`:null),n.setWound(`liver`,+!!a(`liver_ruptured`)),n.setWound(`belly`,+!!a(`disemboweled`)),n.setGone(`waist`,+!!o),n.setGone(`chestHole`,r&&this.hole&&!o?1:0);let p=r&&this.has(`broken_jaw`)&&!s;this.jawHung&&!p&&t.setJaw(0),this.jawHung=p,o?e.headMesh.visible=!1:this.headHidden&&(e.headMesh.visible=!0),this.headHidden=o,this.piece(`skull`,c&&!o),this.piece(`maw`,s&&!o),this.piece(`chest`,r&&this.hole&&!o),this.piece(`waist`,o),c&&!o&&this.fitSkull();let m=lO(e,`body`);m!==null&&n.material!==null&&(n.open?m.customDepthMaterial=this.bodyShadow??=n.shadowMaterial():m.customDepthMaterial===this.bodyShadow&&(m.customDepthMaterial=void 0))}assert(){let e=this.boxer,t=e.headInjury,n=this.headRaises,r=this.bodyRaises;for(let e=0;e0,o=this.eyeOut.right||i.y>0;(this.eyeOut.left&&i.x===0||this.eyeOut.right&&i.y===0)&&t.setEyeOut(a&&o?`both`:a?`left`:`right`);let s=t.uniforms.uInjuryLid.value;(this.eyeShut.left||this.eyeShut.right)&&t.setEyesShut(this.eyeShut.left?1:s[0].w,this.eyeShut.right?1:s[1].w),this.gloveGone.left&&(e.gloveMesh(`left`).visible=!1),this.gloveGone.right&&(e.gloveMesh(`right`).visible=!1)}piece(e,t){if(t||this.pieces.has(e))for(let n of this.built(e))n.visible=t}built(e){let t=this.pieces.get(e);return t===void 0&&(t=this.make(e),this.pieces.set(e,t)),t}bindToWorld(e,t,n){let r=this.boxer.rig.bones[t],i=e.skeleton.bones.indexOf(r);return i<0?!1:(n.multiplyMatrices(r.matrixWorld,e.skeleton.boneInverses[i]).multiply(e.bindMatrix),!0)}skinMatrix(e,t,n){let r=e===`head`?this.boxer.headMesh:lO(this.boxer,`body`);return r!==null&&this.bindToWorld(r,t,n)}fitSkull(){let e=this.skull;if(e===null)return;let t=this.boxer.look,n=bb(OO.set(5.9,124.6,-3.3),t,this.root).x,r=bb(OO.set(-5.9,124.6,-3.3),t,this.root).x,i=bb(OO.set(0,124.6,3.3),t,this.root).z,a=bb(OO.set(0,124.6,-9.9),t,this.root).z,o=(i-a)/13.2;this.fit.makeScale((n-r)/11.8,1,o).setPosition((n+r)/2,0,(i+a)/2+3.3*o),e.matrix.multiplyMatrices(this.skullMount,this.fit)}solid(e){this.geometries.push(e);let t=new H(e,this.flesh);return t.receiveShadow=!0,t}mount(e,t,n=lO(this.boxer,`body`)){let r=this.boxer.rig.bones[e],i=n===null?-1:n.skeleton.bones.indexOf(r);return n!==null&&i>=0&&t.matrix.multiplyMatrices(n.skeleton.boneInverses[i],n.bindMatrix),t.matrixAutoUpdate=!1,t.visible=!1,r.add(t),t}closing(e,t,n){let r=lO(this.boxer,`body`);if(r===null)return[];let i=$O.get(r.geometry);i===void 0&&$O.set(r.geometry,i=new Map);let a=i.get(e);if(a===void 0&&i.set(e,a=Nv(r.geometry,t)),a.length===0)return[];let o=new Hl(ek(r.geometry,a,n),this.flesh);return this.geometries.push(o.geometry),o.bind(r.skeleton,r.bindMatrix),o.frustumCulled=!1,o.receiveShadow=!0,o.visible=!1,(r.parent??this.boxer.root).add(o),[o]}make(e){let t=this.boxer.headMesh;if(e===`skull`){let e=new tc,n=this.solid(IO());return n.position.set(...PO),e.add(n,this.solid(LO())),this.mount(`head`,e,t),this.skullMount.copy(e.matrix),this.skull=e,this.brain=n,[e]}if(e===`maw`){let e=new tc,n=this.solid(HO());return n.position.set(...RO),e.add(this.solid(UO()),n),this.tongue=n,[this.mount(`head`,e,t)]}if(e===`chest`)return[...this.closing(e,e=>t_(e.x,e.y,e.z)<=0,nk),this.mount(`chest`,this.solid(JO()))];if(e===`waist`)return[...this.closing(e,e=>!oO(`upper_body`,`body`,e),tk(dO,.8)),this.mount(`spine`,this.solid(KO()))];let n=e.endsWith(`_left`)?`left`:`right`,{sign:r,bone:i}=ak[n];switch(e.slice(0,e.indexOf(`_`))){case`fracture`:return[this.mount(`shoulder${i}`,this.solid(MO([r*27.6,103.3,-5],[r*(p_[0]+2.4),p_[1]+2.6,p_[2]+1.4],1.05))),this.mount(`elbow${i}`,this.solid(jO([MO([r*34.6,102.3,-4.8],[r*30,98.6,-.8],.8),MO([r*34,103.2,-5.6],[r*30.6,100.6,-9.8],.6)])))];case`ribs`:return[this.mount(`chest`,this.solid(qO(r)))];case`knee`:return[this.mount(`knee${i}`,this.solid(MO([r*8.8,37.8,-4.6],[r*(m_[0]+3.8),m_[1]-1.2,m_[2]-.2],1.2)))];case`elbow`:return[...this.closing(e,e=>!oO(`forearm_${n}`,`body`,e),tk(new B(r,0,0),0)),this.mount(`shoulder${i}`,this.solid(WO(r)))];case`shoulder`:return[...this.closing(e,e=>!oO(`arm_${n}`,`body`,e),tk(new B(r,0,0),1.6)),this.mount(`clavicle${i}`,this.solid(GO(r)))]}}};function sk(e){switch(e){case`skull_fractured`:return`skull`;case`broken_jaw`:return`jaw`;case`broken_nose`:return`nose`;case`ribs_left_broken`:return`ribs_left`;case`ribs_right_broken`:return`ribs_right`;case`arm_left_broken`:return`arm_left`;case`arm_right_broken`:return`arm_right`;case`knee_left_blown`:return`knee_left`;case`knee_right_blown`:return`knee_right`;case`shoulder_left_dislocated`:return`shoulder_left`;case`shoulder_right_dislocated`:return`shoulder_right`;default:return null}}var ck=.3,lk=1.35,uk=.07,dk=.25,fk=.4,pk=.13,mk=.6,hk=.66,gk=1.05,_k=new V(10474751),vk=new V(16777215),yk=new V(132105),bk=5,xk=8,Sk=(e,t)=>[t===`left`?e[0]:-e[0],e[1],e[2]];function Ck(e){let t=e.endsWith(`_right`)?`right`:`left`,n=t===`left`?`L`:`R`;return e===`skull`?{center:[0,123.5,-1],radius:13,anchor:`skull`}:e===`jaw`?{center:[0,113.5,2],radius:10,anchor:`mouth`}:e===`nose`?{center:[0,118,3],radius:9,anchor:`nose`}:e.startsWith(`ribs`)?{center:Sk(f_[1],t),radius:26,anchor:`ribs_${t}`}:e.startsWith(`arm`)?{center:Sk(p_,t),radius:17,anchor:`elbow_${t}`,joint:`elbow${n}`}:e.startsWith(`knee`)?{center:Sk(m_,t),radius:20,anchor:`knee_${t}`,joint:`knee${n}`}:{center:Sk([15,103.5,-5.5],t),radius:15,anchor:`shoulder_${t}`,joint:`shoulder${n}`}}var wk=[1,1,1],Tk=[.06,.07,.09],Ek=[.3,.32,.36],Dk=[1,0,0],Ok=new B(0,1,0);function kk(e,t){e.deleteAttribute(`uv`);let n=e.getAttribute(`position`).count,r=new Float32Array(n*3);for(let e=0;e0?.25:-1.75,e>0?1.75:-.25)])}function Uk(){let e=kk(new _d(1,8,5,Math.PI/2-.55,1.1,.35,.7).scale(5.75,6.25,7.45).translate(0,121.6,-3),Ek),t=(e,t)=>[-5.8*Math.cos(e)*Math.sin(t),121.6+6.3*Math.cos(t),-3+7.5*Math.sin(e)*Math.sin(t)],n=[];for(let[e,r,i,a]of[[1,.35,.7,.05],[2.1,.4,2.7,.2],[2.1,1.05,2.8,1.2],[1,1.05,.4,1.3],[1.57,1.05,1.5,1.5],[1.57,.35,1.9,.02]]){let o=t((e+i)/2+.12,(r+a)/2+.05);n.push(Fk(t(e,r),o,.22,Tk),Fk(o,t(i,a),.16,Tk))}return Ik([e,...n])}function Wk(e,t,n){let r=[];for(let i=e;i #include } -`,lk=class{root=new gs;uniforms={uCenter:{value:new z},uRadius:{value:0},uOpacity:{value:0},uFlash:{value:0}};material=new Wu({uniforms:this.uniforms,vertexShader:sk,fragmentShader:ck,vertexColors:!0,transparent:!0});framed=[];longs=[];chips=[];sprays=[];pieces=null;boxer=null;mutilation=null;site=null;spot=RO(`skull`);center=new z;fighter=-1;elapsed=0;held=!1;push=new z;matrix=new Ho;local=new Ho;turn=new vo;from=new z;to=new z;along=new z;across=new z;axis=new z;outward=new z;offset=new z;one=new z(1,1,1);insetCamera=new Wd(30,1,.05,40);canvasSize=new R;clearColor=new B;frameColor=new B;compiled=null;constructor(){this.root.visible=!1,this.root.name=`BoneXray`}get owner(){return this.site===null?-1:this.fighter}get breaking(){return this.site}get snapped(){return this.site!==null&&this.elapsed>=.3}drawInset(e,t,n){if(this.site===null||this.held||this.elapsed<=0)return;let r=e.getSize(this.canvasSize),i=Math.round(Math.min(r.x,r.y)*DO),a=Math.max(2,Math.round(i*.012)),o=this.fighter===0?Math.round(i*.08):r.x-i-Math.round(i*.08),s=r.y-i-Math.round(r.y*(r.y>r.x?kO:OO)),c=this.uniforms.uCenter.value,l=this.insetCamera,u=l.position.subVectors(n.position,c).setY(0).normalize();u.addScaledVector(this.push,-u.dot(this.push)),u.lengthSq()<.12&&u.set(-this.push.z,0,this.push.x),u.normalize().addScaledVector(this.outward,.4).setY(0).normalize(),l.position.multiplyScalar(this.spot.joint===void 0&&this.spot.radius<15?AO:jO).add(c),l.position.y+=.12,l.lookAt(c);let d=e.getClearAlpha(),f=e.shadowMap.autoUpdate;e.getClearColor(this.clearColor),e.shadowMap.autoUpdate=!1,e.setScissorTest(!0);let p=this.uniforms.uFlash.value;e.setClearColor(this.frameColor.copy(MO).lerp(NO,Math.min(1,p*2)),1),e.setScissor(o-a,s-a,i+a*2,i+a*2),e.clear(!0,!0,!1),e.setClearColor(PO,1),e.setScissor(o,s,i,i),e.setViewport(o,s,i,i),e.render(t,l),e.setScissorTest(!1),e.setViewport(0,0,r.x,r.y),e.setClearColor(this.clearColor,d),e.shadowMap.autoUpdate=f}start(e,t,n,r,i,a,o=!1){this.stop(),this.prepare(t),this.fighter=e,this.boxer=t,this.mutilation=n,this.site=r,this.spot=RO(r),this.center.set(this.spot.center[0],this.spot.center[1],this.spot.center[2]);let s=wD(t,`body`),c=this.spot.joint===void 0||s===null?-1:s.skeleton.bones.indexOf(t.rig.bones[this.spot.joint]);c>=0&&this.center.setFromMatrixPosition(this.matrix.multiplyMatrices(s.skeleton.boneInverses[c],s.bindMatrix).invert()),this.elapsed=o?wO*.5:0,this.held=o,this.push.set(i,0,a),this.push.lengthSq()<1e-6&&this.push.set(1,0,0),this.push.normalize();let l=r.length*7+3,u=()=>(l=l*16807%2147483647,l/2147483647);for(let e of this.sprays)e.set(this.push.x*.9+u()*1.6-.8,u()*1.5-.2,this.push.z*.9+u()*1.6-.8).multiplyScalar(.5+u()*.9);this.root.visible=!0}stop(){this.site!==null&&(this.boxer?.headInjury.setXray(0,0,0,0,0),this.boxer?.bodyInjury.setXray(0,0,0,0,0),this.site=null,this.boxer=null,this.mutilation=null,this.root.visible=!1)}update(e){let{site:t,boxer:n,mutilation:r,pieces:i}=this;if(t===null||n===null||r===null||i===null)return;this.held||(this.elapsed+=e);let a=this.elapsed;if(a>=1.35||!r.anchor(this.spot.anchor,this.uniforms.uCenter.value,this.outward)){this.stop();return}this.spot.joint!==void 0&&n.rig.bones[this.spot.joint].getWorldPosition(this.uniforms.uCenter.value);let o=a-CO,s=o<0?0:1-Math.exp(-o*20),c=o<0||this.held?0:Math.exp(-o*11),l=Math.min(1,a/TO,(wO-a)/EO),u=this.spot,d=this.center,f=1/n.rig.metrics.unitsPerMeter,p=this.held?1e3:u.radius*(1+FO*c);n.headInjury.setXray(d.x,d.y,d.z,p,l),n.bodyInjury.setXray(d.x,d.y,d.z,p,l),this.uniforms.uRadius.value=p*f*1.1,this.uniforms.uOpacity.value=l,this.uniforms.uFlash.value=c*.55;let m=+!!t.endsWith(`_right`),h=m===1?-1:1;for(let e of this.framed)e.mesh.visible=r.skinMatrix(e.skin,e.bone,e.mesh.matrix),e.mesh.matrixWorldNeedsUpdate=!0;let g=(e,t,n,r,i)=>{this.turn.setFromAxisAngle(this.axis.set(n[0],n[1],n[2]),r),this.local.compose(this.offset.set(t[0]+i[0],t[1]+i[1],t[2]+i[2]),this.turn,this.one),e.matrix.multiply(this.local).multiply(this.matrix.makeTranslation(-t[0],-t[1],-t[2]))};i.plate.visible&&=t===`skull`&&s>0,t===`jaw`?(g(i.jaw[0],[0,111.7,3.9],[0,1,0],.3*s,[.9*s,-.7*s,0]),g(i.jaw[1],[-5,116.8,-2.1],[0,0,1],-.16*s,[.5*s,0,0])):t===`nose`?g(i.nasal,[0,120.4,3.6],[0,0,1],.7*s,[.5*s,-.2*s,-.5*s]):t.startsWith(`ribs`)&&g(i.ribsFront[m],[h*11.2,96,-1.2],[0,1,0],-h*.5*s,[-h*.9*s,0,0]);let _=n.rig.bones;for(let e of this.longs){_[e.from].getWorldPosition(this.from),_[e.to].getWorldPosition(this.to);let n=e.mesh===i.humerus[m]&&(t.startsWith(`arm`)||t.startsWith(`shoulder`))||e.mesh===i.shin[m]&&t.startsWith(`knee`);e.mesh.visible=!0,n&&t.startsWith(`arm`)?(e.mesh.visible=!1,this.along.subVectors(this.to,this.from),this.across.crossVectors(this.along,this.push).normalize(),this.across.lengthSq()<.5&&this.across.set(0,1,0),this.span(i.stump,this.from,this.to,e.length,f),this.to.copy(this.from).addScaledVector(this.along,.62),this.offset.crossVectors(this.across,this.along).normalize(),i.shard.position.copy(this.to).addScaledVector(this.offset,.022*s),this.turn.setFromAxisAngle(this.across,.75*s),i.shard.quaternion.copy(i.stump.quaternion).premultiply(this.turn),i.shard.scale.copy(i.stump.scale)):(n&&t.startsWith(`shoulder`)&&(this.from.addScaledVector(this.push,.035*s).y-=.04*s),n&&t.startsWith(`knee`)&&this.from.addScaledVector(this.outward,.05*s),this.span(e.mesh,this.from,this.to,e.length,f))}let v=t.startsWith(`arm`);i.stump.visible=v,i.shard.visible=v;let y=this.uniforms.uCenter.value;for(let[e,t]of this.chips.entries()){if(t.visible=o>0,o<=0)continue;let n=this.sprays[e];t.position.copy(y).addScaledVector(n,o*.55),t.position.y-=1.6*o*o,t.rotation.set(o*9+e,o*7,e),t.scale.setScalar((e{let t=new V(e,this.material);return t.frustumCulled=!1,t.renderOrder=40,this.root.add(t),t},n=(e,n,r)=>{let i=t(e);return i.matrixAutoUpdate=!1,this.framed.push({mesh:i,skin:n,bone:r}),i},r=e.rig.metrics,i=r.unitsPerMeter,a=(e,n,r,i)=>{let a=t(e);return this.longs.push({mesh:a,from:n,to:r,length:i}),a};n(nk(),`head`,`head`);let o=n(ik(),`head`,`head`),s=n(XO([0,120.4,3.6],[0,118.3,5],.55,zO,.5),`head`,`head`),c=[n(rk(1),`head`,`head`),n(rk(-1),`head`,`head`)];n(ak(108.5,116.5,-3.4),`body`,`neck`),n(ak(88,108,-6.2),`body`,`chest`),n(ak(76,87.5,-3.6),`body`,`spine`),n(ok(),`body`,`hips`),n(ZO([WO(new Jl(2.2,10.5,.9).translate(0,99,4.3),zO),XO([1.4,106.4,2.8],[13.6,105.2,-3.4],.55),XO([-1.4,106.4,2.8],[-13.6,105.2,-3.4],.55),GO([11,101,-7.6],[3.6,4.6,.7]),GO([-11,101,-7.6],[3.6,4.6,.7])]),`body`,`chest`),n(ek(1,!1),`body`,`chest`),n(ek(-1,!1),`body`,`chest`);let l=[n(ek(1,!0),`body`,`chest`),n(ek(-1,!0),`body`,`chest`)],u=r.armL.upper*i,d=r.armL.lower*i,f=r.legL.upper*i,p=r.legL.lower*i,m=QO(u,.95,1.5),h=QO(d,.62,1.15,.9),g=QO(f,1.25,2),_=QO(p,1.05,1.75,1.5),v=XO([0,0,0],[0,10,0],.9,zO,.6),y=[a(m,`shoulderL`,`elbowL`,u),a(m,`shoulderR`,`elbowR`,u)];a(h,`elbowL`,`gloveL`,d),a(h,`elbowR`,`gloveR`,d),a(g,`hipL`,`kneeL`,f),a(g,`hipR`,`kneeR`,f);let b=[a(_,`kneeL`,`ankleL`,p),a(_,`kneeR`,`ankleR`,p)];a(v,`ankleL`,`toeL`,10),a(v,`ankleR`,`toeR`,10);let x=u*.62,S=t(ZO([XO([0,0,0],[0,x,0],.95,zO,.85),GO([0,0,0],1.5),XO([0,x,0],[.5,x+1.6,.2],.7,zO,.1),GO([0,x,0],.6,HO)])),C=t(ZO([XO([0,.4,0],[0,u-x,0],.85),GO([0,u-x,0],1.3),XO([0,.6,0],[-.4,-1.5,-.3],.7,zO,.1),GO([0,.5,0],.55,HO)])),w=WO(new Nu(1),zO),T=WO(new Du(1,1),HO);for(let e=0;e<14;e+=1)this.chips.push(t(e{let e=this.context;e!==null&&e.state!==`running`&&e.resume().catch(()=>void 0),this.unlock().catch(()=>void 0)};visibility=()=>{let e=this.context;if(e===null)return;let t=document.hidden?e.suspend():this.unlocked?e.resume():null;t!==null&&t.catch(()=>void 0)};constructor(e){this.settings=e;for(let e of Tk)window.addEventListener(e,this.unlockListener);document.addEventListener(`visibilitychange`,this.visibility)}unlock(){return this.destroyed||this.unlocked?Promise.resolve():(this.unlockPromise===null&&(this.unlockPromise=this.performUnlock().finally(()=>{this.unlockPromise=null})),this.unlockPromise)}async performUnlock(){let e=this.context;if(e===null){e=new AudioContext;let t=e.createGain();t.gain.value=Math.min(.8,Math.max(0,this.settings().volume));let n=e.createBiquadFilter();n.type=`lowpass`,n.frequency.value=Ck,n.Q.value=.7,t.connect(n).connect(e.destination),this.context=e,this.master=t,this.muffle=n}if(e.state===`suspended`&&await e.resume(),this.destroyed||this.context!==e)return;let t=await this.decodeInjuryBuffers(e);if(!(this.destroyed||this.context!==e)){this.injuryBuffers=t,this.unlocked=!0;for(let e of Tk)window.removeEventListener(e,this.unlockListener);this.crowdStarted||(this.crowdStarted=!0,this.crowdBed())}}setVolume(){this.master!==null&&(this.master.gain.value=Math.min(.8,Math.max(0,this.settings().volume)))}event(e,t=!1){if(this.unlocked)switch(e.kind){case`punch_start`:this.whoosh(e.detail.split(`:`)[1]??`jab`,t);break;case`whiff`:this.noise({duration:.11,frequency:850,sweepTo:320,gain:.07,type:`bandpass`,q:1.1});break;case`hit`:case`counter_hit`:{let n=e.detail.endsWith(`body`),r=Math.min(1,e.amount/260),i=Math.min(.36,.14+r*.2)*(e.kind===`counter_hit`?1.25:1);this.impact(i,n,r,t),(e.kind===`counter_hit`||r>.7||t)&&this.crowdSwell(.35+r*.4),(e.kind===`counter_hit`&&e.amount>=50||e.amount>=90)&&this.ooh(Math.min(1,e.amount/160));break}case`referee_hit`:{let t=Math.min(1,e.amount/260);this.impact(Math.min(.36,.16+t*.2),e.detail.endsWith(`body`),t),this.ooh(.7+t*.3),this.crowdSwell(.5+t*.3);break}case`referee_down`:this.impact(.36,!1,1),this.crowdRoar(1),this.ooh(1);break;case`block`:this.noise({duration:.045,frequency:1200,sweepTo:600,gain:.14,type:`bandpass`,q:1.1}),this.noise({duration:.09,frequency:260,gain:.08}),this.tone({from:160,to:110,duration:.06,type:`triangle`,gain:.05}),t&&this.tone({from:96,to:44,duration:.2,type:`sine`,gain:.2});break;case`perfect_block`:this.noise({duration:.05,frequency:1800,sweepTo:900,gain:.16,type:`bandpass`,q:1.6}),this.tone({from:280,to:210,duration:.06,type:`triangle`,gain:.06});break;case`guard_break`:this.impact(.3,!1,.9),this.tone({from:230,to:78,duration:.2,type:`sawtooth`,gain:.08}),this.crowdSwell(.5),this.ooh(.6);break;case`stun`:this.tone({from:96,to:74,duration:.22,type:`sine`,gain:.1}),this.crowdSwell(.3);break;case`parry`:this.noise({duration:.06,frequency:2400,sweepTo:1100,gain:.18,type:`bandpass`,q:1.8}),this.tone({from:330,to:180,duration:.09,type:`triangle`,gain:.07}),this.crowdSwell(.35);break;case`body_collapse`:this.tone({from:118,to:52,duration:.42,type:`sine`,gain:.16}),this.noise({duration:.26,frequency:420,sweepTo:180,gain:.05,type:`bandpass`,q:.9}),this.crowdSwell(.6);break;case`eye_shut`:this.crowdSwell(.25);break;case`corner`:this.noise({duration:.22,frequency:2600,sweepTo:1500,gain:.05,type:`bandpass`,q:.8});break;case`knockdown`:this.impact(.34,!1,1),this.tone({from:60,to:28,duration:.42,type:`sine`,gain:.3}),this.noise({duration:.3,frequency:140,gain:.24}),this.crowdRoar(1),this.hush();break;case`bell`:{let t=e.detail===`round_start`?3:1;for(let e=0;e10*r||this.clapperRound===t||(this.clapperRound=t,!this.unlocked))return;this.noise({duration:.05,frequency:2600,gain:.42,type:`bandpass`,q:1.4}),this.noise({duration:.09,frequency:700,gain:.18,type:`bandpass`,q:.8});let i=window.setTimeout(()=>{this.timers.delete(i),this.noise({duration:.05,frequency:2400,gain:.4,type:`bandpass`,q:1.4}),this.noise({duration:.09,frequency:660,gain:.16,type:`bandpass`,q:.8})},120);this.timers.add(i)}chant(){let e=this.context;if(!(!this.unlocked||e===null||e.currentTime-this.lastChantAtthis.murmurLevel;this.murmurLevel=r,n.gain.setTargetAtTime(r*xk,t.currentTime,i?.3:.8)}rocked(e,t){this.follow(t);let n=this.context,r=this.muffle;if(!this.unlocked||n===null||r===null)return;let i=Math.max(0,Math.min(1,e));if(Math.abs(i-this.rockedLevel)>=.02||i===0&&this.rockedLevel!==0){let e=i>this.rockedLevel;this.rockedLevel=i,r.frequency.setTargetAtTime(Ck*(wk/Ck)**+i,n.currentTime,e?.05:.9)}i>.15&&t-this.lastRockedBeat>=Dk(i)&&(this.lastRockedBeat=t,this.tone({from:58,to:40,duration:.12,type:`sine`,gain:.09+i*.08}),this.tone({from:50,to:36,duration:.14,type:`sine`,gain:.07+i*.06,delay:.16}))}snapshot(e,t,n,r){if(this.follow(e),!this.unlocked)return;let i=1-t/Math.max(1,n);i>.55&&e-this.lastBreathTick>=75&&(this.lastBreathTick=e,this.noise({duration:.18,frequency:420,gain:.045+i*.04})),(i>.72||r>500)&&this.rockedLevel<=.15&&e-this.lastHeartbeatTick>=24&&(this.lastHeartbeatTick=e,this.tone({from:52,duration:.09,type:`sine`,gain:.055}))}result(e){if(this.openMuffle(),!this.unlocked)return;this.crowdSwell(1),this.tone({from:e.winner_id===null?280:520,duration:.45,type:`triangle`,gain:.18});let t=window.setTimeout(()=>{this.timers.delete(t),this.tone({from:650,duration:.5,type:`triangle`,gain:.14})},160);this.timers.add(t)}injury(e){let t=this.context,n=this.master,r=this.injuryBuffers.get(uk[e]??e),i=this.settings();if(!this.unlocked||t===null||n===null||i.blood!==`full`||i.reducedMotion||(this.tearing(),r===void 0))return;let a=t.createBufferSource(),o=t.createGain();a.buffer=r,o.gain.value=.2,a.connect(o).connect(n),a.start()}tearing(){this.noise({duration:.09,frequency:2600,sweepTo:700,gain:.22,type:`bandpass`,q:1.6}),this.noise({duration:.4,frequency:900,sweepTo:150,gain:.28,type:`lowpass`,q:6,offset:.35});for(let[e,t]of[.3,.9,1.5].entries())this.noise({duration:.2,frequency:480-e*60,sweepTo:170,gain:.13-e*.03,type:`bandpass`,q:4,delay:t,offset:.2+t})}gore(e){let t=this.settings();if(!this.unlocked||t.volume<=0)return;let n=t.blood===`full`&&!t.reducedMotion;switch(e.kind){case`injury`:{let t=dk[N(e.injury)];n?(this.wound(t,0),t===`crack`&&this.xray()):this.impact(.3,!1,.9),this.ooh(1),this.crowdSwell(.8),t!==`crack`&&this.crowdVoice({..._k,delay:.45});break}case`vomit`:n&&this.retch(),this.crowdVoice({..._k,gain:.09,delay:.5});break;case`finish_him`:this.omen(),this.crowdRoar(1);break;case`fatality`:this.sting(),n&&fk[e.fatality].forEach((e,t)=>this.wound(e,t*.2)),this.crowdRoar(1),this.ooh(1);break;case`death`:ke(e.cause)===null?(this.flatline(0),this.hush(!0)):this.flatline(hk)}}wound(e,t){e===`crack`?this.crack(t):e===`rip`?this.rip(t):e===`squelch`?this.squelch(t):this.chop(t)}xray(){this.tone({from:90,to:440,duration:CO,type:`sine`,gain:.1,delay:0}),this.crack(CO),this.noise({duration:.16,frequency:520,sweepTo:170,gain:.2,type:`lowpass`,q:4,delay:CO+.03,offset:.3})}crack(e){this.noise({duration:.03,frequency:3400,sweepTo:1800,gain:.34,type:`bandpass`,q:2.2,delay:e}),this.tone({from:190,to:70,duration:.09,type:`triangle`,gain:.22,delay:e});for(let[t,n]of mk.entries())this.noise({duration:.018,frequency:2800-t*260,gain:.2-t*.03,type:`highpass`,q:1.4,delay:e+n,offset:.17*(t+1)})}rip(e){this.noise({duration:.5,frequency:420,sweepTo:2600,gain:.3,type:`bandpass`,q:3.2,delay:e,offset:.4}),this.noise({duration:.45,frequency:180,sweepTo:520,gain:.2,type:`lowpass`,q:5,delay:e+.03,offset:.7});for(let t=0;t<6;t+=1)this.noise({duration:.035,frequency:900+t*280,gain:.16,type:`bandpass`,q:6,delay:e+.05+t*.07,offset:.09*t});this.noise({duration:.12,frequency:700,sweepTo:160,gain:.24,type:`lowpass`,q:4,delay:e+.52,offset:.55})}squelch(e){this.noise({duration:.3,frequency:1100,sweepTo:140,gain:.32,type:`lowpass`,q:9,delay:e,offset:.25}),this.noise({duration:.22,frequency:300,sweepTo:900,gain:.18,type:`bandpass`,q:7,delay:e+.1,offset:.6}),this.tone({from:150,to:60,duration:.12,type:`sine`,gain:.16,delay:e}),this.spatter(e+.25)}spatter(e){for(let[t,n]of pk.entries())this.noise({duration:.03,frequency:1500+t%3*600,sweepTo:500,gain:.14-t*.012,type:`bandpass`,q:3,delay:e+n,offset:.13*t})}chop(e){this.tone({from:120,to:38,duration:.2,type:`sine`,gain:.32,delay:e}),this.noise({duration:.05,frequency:2200,sweepTo:500,gain:.3,type:`bandpass`,q:1.2,delay:e}),this.noise({duration:.16,frequency:600,sweepTo:150,gain:.26,type:`lowpass`,q:5,delay:e+.02,offset:.3});for(let[t,n]of[.3,.75,1.2,1.65].entries())this.noise({duration:.22,frequency:520-t*60,sweepTo:170,gain:.15-t*.03,type:`bandpass`,q:4,delay:e+n,offset:.2+n})}retch(){for(let[e,t]of[0,.45].entries())this.tone({from:150-e*25,to:80,duration:.3,type:`sawtooth`,gain:.09,delay:t}),this.crowdVoice({duration:.36,first:[650,360],second:[1150,780],gain:.22,delay:t});this.noise({duration:.45,frequency:2400,sweepTo:300,gain:.24,type:`lowpass`,q:3,delay:.9,offset:.5}),this.spatter(1.05)}drum(e){this.tone({from:95,to:30,duration:.7,type:`sine`,gain:.35,delay:e}),this.noise({duration:.2,frequency:160,gain:.3,delay:e}),this.noise({duration:.03,frequency:1800,sweepTo:600,gain:.18,type:`bandpass`,q:1,delay:e})}omen(){this.drum(0),this.held({frequency:27.5,duration:1.4,gain:.3,attack:1.1,type:`sine`,delay:.1}),this.held({frequency:55,duration:1.4,gain:.12,attack:1.2,type:`sawtooth`,delay:.1}),this.held({frequency:58.3,duration:1.4,gain:.1,attack:1.2,type:`sawtooth`,delay:.1}),this.drum(1.5)}sting(){this.drum(0);for(let[e,t]of[196,185,147,110].entries())this.tone({from:t,to:t*.97,duration:.5,type:`sawtooth`,gain:.14,delay:e*.2}),this.tone({from:t/2,duration:.5,type:`square`,gain:.1,delay:e*.2});this.tone({from:73.4,to:69,duration:1.4,type:`sawtooth`,gain:.2,delay:.8}),this.tone({from:36.7,to:34.5,duration:1.4,type:`sine`,gain:.32,delay:.8}),this.drum(.8)}flatline(e){for(let t of[0,.38])this.held({frequency:880,duration:.09,gain:.1,attack:.005,type:`sine`,delay:e+t});this.held({frequency:880,duration:2.6,gain:.1,attack:.01,type:`sine`,delay:e+.76})}held(e){let t=this.context,n=this.master;if(t===null||n===null)return;let r=t.currentTime+(e.delay??0),i=Math.min(3,e.duration),a=Math.min(.35,e.gain),o=t.createOscillator(),s=t.createGain();o.type=e.type,o.frequency.setValueAtTime(Math.max(20,e.frequency),r),s.gain.setValueAtTime(1e-4,r),s.gain.exponentialRampToValueAtTime(a,r+Math.min(i-.03,e.attack)),s.gain.setValueAtTime(a,r+i-.03),s.gain.exponentialRampToValueAtTime(1e-4,r+i),o.connect(s).connect(n),o.start(r),o.stop(r+i+.03)}async decodeInjuryBuffers(e){let t=await Promise.all($r.map(async t=>{let n=atob(t.wav),r=new Uint8Array(n.length);for(let e=0;evoid 0)}},kk=class extends Error{code;reloadRequired;name=`ClientError`;constructor(e,t=!1){super(e),this.code=e,this.reloadRequired=t}};async function Ak(e,t){if(!e.ok)throw new kk(e.status===429?`rate_limited`:t);if(!(e.headers.get(`content-type`)??``).toLowerCase().startsWith(`application/json`))throw new kk(t);try{return Ke(await e.text())}catch{throw new kk(t)}}function jk(e=window.location.search){let t=new URLSearchParams(e).getAll(`instance_id`);if(t.length!==1||!/^[A-Za-z0-9_-]{1,255}$/u.test(t[0]??``))throw new kk(`invalid_launch`);return t[0]}function Mk(e){if(typeof e==`object`&&e&&`protocol`in e&&e.protocol!==6)throw new kk(`client_outdated`,!0)}async function Nk(e,t){let n=new URL(`/api/hands/bootstrap`,window.location.origin);try{let r=await Ak(await fetch(n,{method:`POST`,credentials:`same-origin`,cache:`no-store`,headers:{"Content-Type":`application/json`},body:JSON.stringify({instance_id:e}),...t===void 0?{}:{signal:t}}),`bootstrap_failed`);return Mk(r),Ft(r)}catch(e){throw e instanceof kk?e:e instanceof He?new kk(`invalid_bootstrap`):new kk(`bootstrap_failed`)}}async function Pk(e,t,n){try{return It(await Ak(await fetch(new URL(`/api/hands/token`,window.location.origin),{method:`POST`,credentials:`same-origin`,cache:`no-store`,headers:{"Content-Type":`application/json`},body:JSON.stringify({code:e,state:t}),...n===void 0?{}:{signal:n}}),`token_failed`))}catch(e){throw e instanceof kk?e:e instanceof He?new kk(`invalid_token_response`):new kk(`token_failed`)}}function Fk(e){return e instanceof kk?e.code:e instanceof He?`protocol_error`:`unexpected_error`}var Ik=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function Lk(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var Rk={exports:{}},zk;function Bk(){return zk||(zk=1,(function(e){var t=Object.prototype.hasOwnProperty,n=`~`;function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(e,t,r,a,o){if(typeof r!=`function`)throw TypeError(`The listener must be a function`);var s=new i(r,a||e,o),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function o(e,t){--e._eventsCount===0?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var e=[],r,i;if(this._eventsCount===0)return e;for(i in r=this._events)t.call(r,i)&&e.push(n?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(r)):e},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,a=r.length,o=Array(a);ie;function t(e){}e.assertIs=t;function n(e){throw Error()}e.assertNever=n,e.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},e.getValidEnumValues=t=>{let n=e.objectKeys(t).filter(e=>typeof t[t[e]]!=`number`),r={};for(let e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys=typeof Object.keys==`function`?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(let n of e)if(t(n))return n},e.isInteger=typeof Number.isInteger==`function`?e=>Number.isInteger(e):e=>typeof e==`number`&&isFinite(e)&&Math.floor(e)===e;function r(e,t=` | `){return e.map(e=>typeof e==`string`?`'${e}'`:e).join(t)}e.joinValues=r,e.jsonStringifyReplacer=(e,t)=>typeof t==`bigint`?t.toString():t})(Hk||={});var Uk;(function(e){e.mergeShapes=(e,t)=>({...e,...t})})(Uk||={});var G=Hk.arrayToEnum([`string`,`nan`,`number`,`integer`,`float`,`boolean`,`date`,`bigint`,`symbol`,`function`,`undefined`,`null`,`array`,`object`,`unknown`,`promise`,`void`,`never`,`map`,`set`]),Wk=e=>{switch(typeof e){case`undefined`:return G.undefined;case`string`:return G.string;case`number`:return isNaN(e)?G.nan:G.number;case`boolean`:return G.boolean;case`function`:return G.function;case`bigint`:return G.bigint;case`symbol`:return G.symbol;case`object`:return Array.isArray(e)?G.array:e===null?G.null:e.then&&typeof e.then==`function`&&e.catch&&typeof e.catch==`function`?G.promise:typeof Map<`u`&&e instanceof Map?G.map:typeof Set<`u`&&e instanceof Set?G.set:typeof Date<`u`&&e instanceof Date?G.date:G.object;default:return G.unknown}},K=Hk.arrayToEnum([`invalid_type`,`invalid_literal`,`custom`,`invalid_union`,`invalid_union_discriminator`,`invalid_enum_value`,`unrecognized_keys`,`invalid_arguments`,`invalid_return_type`,`invalid_date`,`invalid_string`,`too_small`,`too_big`,`invalid_intersection_types`,`not_multiple_of`,`not_finite`]),Gk=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,`$1:`),Kk=class e extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name=`ZodError`,this.issues=e}get errors(){return this.issues}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`)i.unionErrors.map(r);else if(i.code===`invalid_return_type`)r(i.returnTypeError);else if(i.code===`invalid_arguments`)r(i.argumentsError);else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;re.message){let t={},n=[];for(let r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}};Kk.create=e=>new Kk(e);var qk=(e,t)=>{let n;switch(e.code){case K.invalid_type:n=e.received===G.undefined?`Required`:`Expected ${e.expected}, received ${e.received}`;break;case K.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Hk.jsonStringifyReplacer)}`;break;case K.unrecognized_keys:n=`Unrecognized key(s) in object: ${Hk.joinValues(e.keys,`, `)}`;break;case K.invalid_union:n=`Invalid input`;break;case K.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Hk.joinValues(e.options)}`;break;case K.invalid_enum_value:n=`Invalid enum value. Expected ${Hk.joinValues(e.options)}, received '${e.received}'`;break;case K.invalid_arguments:n=`Invalid function arguments`;break;case K.invalid_return_type:n=`Invalid function return type`;break;case K.invalid_date:n=`Invalid date`;break;case K.invalid_string:typeof e.validation==`object`?`includes`in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position==`number`&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):`startsWith`in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:`endsWith`in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Hk.assertNever(e.validation):n=e.validation===`regex`?`Invalid`:`Invalid ${e.validation}`;break;case K.too_small:n=e.type===`array`?`Array must contain ${e.exact?`exactly`:e.inclusive?`at least`:`more than`} ${e.minimum} element(s)`:e.type===`string`?`String must contain ${e.exact?`exactly`:e.inclusive?`at least`:`over`} ${e.minimum} character(s)`:e.type===`number`?`Number must be ${e.exact?`exactly equal to `:e.inclusive?`greater than or equal to `:`greater than `}${e.minimum}`:e.type===`date`?`Date must be ${e.exact?`exactly equal to `:e.inclusive?`greater than or equal to `:`greater than `}${new Date(Number(e.minimum))}`:`Invalid input`;break;case K.too_big:n=e.type===`array`?`Array must contain ${e.exact?`exactly`:e.inclusive?`at most`:`less than`} ${e.maximum} element(s)`:e.type===`string`?`String must contain ${e.exact?`exactly`:e.inclusive?`at most`:`under`} ${e.maximum} character(s)`:e.type===`number`?`Number must be ${e.exact?`exactly`:e.inclusive?`less than or equal to`:`less than`} ${e.maximum}`:e.type===`bigint`?`BigInt must be ${e.exact?`exactly`:e.inclusive?`less than or equal to`:`less than`} ${e.maximum}`:e.type===`date`?`Date must be ${e.exact?`exactly`:e.inclusive?`smaller than or equal to`:`smaller than`} ${new Date(Number(e.maximum))}`:`Invalid input`;break;case K.custom:n=`Invalid input`;break;case K.invalid_intersection_types:n=`Intersection results could not be merged`;break;case K.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case K.not_finite:n=`Number must be finite`;break;default:n=t.defaultError,Hk.assertNever(e)}return{message:n}},Jk=qk;function Yk(e){Jk=e}function Xk(){return Jk}var Zk=e=>{let{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a};if(i.message!==void 0)return{...i,path:a,message:i.message};let s=``,c=r.filter(e=>!!e).slice().reverse();for(let e of c)s=e(o,{data:t,defaultError:s}).message;return{...i,path:a,message:s}},Qk=[];function q(e,t){let n=Xk(),r=Zk({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===qk?void 0:qk].filter(e=>!!e)});e.common.issues.push(r)}var $k=class e{constructor(){this.value=`valid`}dirty(){this.value===`valid`&&(this.value=`dirty`)}abort(){this.value!==`aborted`&&(this.value=`aborted`)}static mergeArray(e,t){let n=[];for(let r of t){if(r.status===`aborted`)return eA;r.status===`dirty`&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(t,n){let r=[];for(let e of n){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return e.mergeObjectSync(t,r)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:t,value:i}=r;if(t.status===`aborted`||i.status===`aborted`)return eA;t.status===`dirty`&&e.dirty(),i.status===`dirty`&&e.dirty(),t.value!==`__proto__`&&(i.value!==void 0||r.alwaysSet)&&(n[t.value]=i.value)}return{status:e.value,value:n}}},eA=Object.freeze({status:`aborted`}),tA=e=>({status:`dirty`,value:e}),nA=e=>({status:`valid`,value:e}),rA=e=>e.status===`aborted`,iA=e=>e.status===`dirty`,aA=e=>e.status===`valid`,oA=e=>typeof Promise<`u`&&e instanceof Promise;function sA(e,t,n,r){if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return t.get(e)}function cA(e,t,n,r,i){if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return t.set(e,n),n}var lA;(function(e){e.errToObj=e=>typeof e==`string`?{message:e}:e||{},e.toString=e=>typeof e==`string`?e:e?.message})(lA||={});var uA,dA,fA=class{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},pA=(e,t)=>{if(aA(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error(`Validation failed but no issues detected.`);return{success:!1,get error(){if(this._error)return this._error;let t=new Kk(e.common.issues);return this._error=t,this._error}}};function mA(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:a}=e;return t.code===`invalid_enum_value`?{message:a??i.defaultError}:i.data===void 0?{message:a??r??i.defaultError}:t.code===`invalid_type`?{message:a??n??i.defaultError}:{message:i.defaultError}},description:i}}var hA=class{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return Wk(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:Wk(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new $k,ctx:{common:e.parent.common,data:e.data,parsedType:Wk(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(oA(t))throw Error(`Synchronous parse encountered promise.`);return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){let n={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Wk(e)};return pA(n,this._parseSync({data:e,path:n.path,parent:n}))}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:Wk(e)},r=this._parse({data:e,path:n.path,parent:n});return pA(n,await(oA(r)?r:Promise.resolve(r)))}refine(e,t){let n=e=>typeof t==`string`||t===void 0?{message:t}:typeof t==`function`?t(e):t;return this._refinement((t,r)=>{let i=e(t),a=()=>r.addIssue({code:K.custom,...n(t)});return typeof Promise<`u`&&i instanceof Promise?i.then(e=>e?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(e,t){return this._refinement((n,r)=>e(n)?!0:(r.addIssue(typeof t==`function`?t(n,r):t),!1))}_refinement(e){return new fj({schema:this,typeName:wj.ZodEffects,effect:{type:`refinement`,refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return pj.create(this,this._def)}nullable(){return mj.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return qA.create(this,this._def)}promise(){return dj.create(this,this._def)}or(e){return XA.create([this,e],this._def)}and(e){return ej.create(this,e,this._def)}transform(e){return new fj({...mA(this._def),schema:this,typeName:wj.ZodEffects,effect:{type:`transform`,transform:e}})}default(e){let t=typeof e==`function`?e:()=>e;return new hj({...mA(this._def),innerType:this,defaultValue:t,typeName:wj.ZodDefault})}brand(){return new yj({typeName:wj.ZodBranded,type:this,...mA(this._def)})}catch(e){let t=typeof e==`function`?e:()=>e;return new gj({...mA(this._def),innerType:this,catchValue:t,typeName:wj.ZodCatch})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}pipe(e){return bj.create(this,e)}readonly(){return xj.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},gA=/^c[^\s-]{8,}$/i,_A=/^[0-9a-z]+$/,vA=/^[0-9A-HJKMNP-TV-Z]{26}$/,yA=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,bA=/^[a-z0-9_-]{21}$/i,xA=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,SA=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,CA=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,wA,TA=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,EA=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,DA=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,OA=`((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`,kA=RegExp(`^${OA}$`);function AA(e){let t=`([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d`;return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision??(t=`${t}(\\.\\d+)?`),t}function jA(e){return RegExp(`^${AA(e)}$`)}function MA(e){let t=`${OA}T${AA(e)}`,n=[];return n.push(e.local?`Z?`:`Z`),e.offset&&n.push(`([+-]\\d{2}:?\\d{2})`),t=`${t}(${n.join(`|`)})`,RegExp(`^${t}$`)}function NA(e,t){return!((t!==`v4`&&t||!TA.test(e))&&(t!==`v6`&&t||!EA.test(e)))}var PA=class e extends hA{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==G.string){let t=this._getOrReturnCtx(e);return q(t,{code:K.invalid_type,expected:G.string,received:t.parsedType}),eA}let t=new $k,n;for(let r of this._def.checks)if(r.kind===`min`)e.data.lengthr.value&&(n=this._getOrReturnCtx(e,n),q(n,{code:K.too_big,maximum:r.value,type:`string`,inclusive:!0,exact:!1,message:r.message}),t.dirty());else if(r.kind===`length`){let i=e.data.length>r.value,a=e.data.lengthe.test(t),{validation:t,code:K.invalid_string,...lA.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(e){return this._addCheck({kind:`email`,...lA.errToObj(e)})}url(e){return this._addCheck({kind:`url`,...lA.errToObj(e)})}emoji(e){return this._addCheck({kind:`emoji`,...lA.errToObj(e)})}uuid(e){return this._addCheck({kind:`uuid`,...lA.errToObj(e)})}nanoid(e){return this._addCheck({kind:`nanoid`,...lA.errToObj(e)})}cuid(e){return this._addCheck({kind:`cuid`,...lA.errToObj(e)})}cuid2(e){return this._addCheck({kind:`cuid2`,...lA.errToObj(e)})}ulid(e){return this._addCheck({kind:`ulid`,...lA.errToObj(e)})}base64(e){return this._addCheck({kind:`base64`,...lA.errToObj(e)})}ip(e){return this._addCheck({kind:`ip`,...lA.errToObj(e)})}datetime(e){return typeof e==`string`?this._addCheck({kind:`datetime`,precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:`datetime`,precision:e?.precision===void 0?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...lA.errToObj(e?.message)})}date(e){return this._addCheck({kind:`date`,message:e})}time(e){return typeof e==`string`?this._addCheck({kind:`time`,precision:null,message:e}):this._addCheck({kind:`time`,precision:e?.precision===void 0?null:e?.precision,...lA.errToObj(e?.message)})}duration(e){return this._addCheck({kind:`duration`,...lA.errToObj(e)})}regex(e,t){return this._addCheck({kind:`regex`,regex:e,...lA.errToObj(t)})}includes(e,t){return this._addCheck({kind:`includes`,value:e,position:t?.position,...lA.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:`startsWith`,value:e,...lA.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:`endsWith`,value:e,...lA.errToObj(t)})}min(e,t){return this._addCheck({kind:`min`,value:e,...lA.errToObj(t)})}max(e,t){return this._addCheck({kind:`max`,value:e,...lA.errToObj(t)})}length(e,t){return this._addCheck({kind:`length`,value:e,...lA.errToObj(t)})}nonempty(e){return this.min(1,lA.errToObj(e))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:`trim`}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:`toLowerCase`}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:`toUpperCase`}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind===`datetime`)}get isDate(){return!!this._def.checks.find(e=>e.kind===`date`)}get isTime(){return!!this._def.checks.find(e=>e.kind===`time`)}get isDuration(){return!!this._def.checks.find(e=>e.kind===`duration`)}get isEmail(){return!!this._def.checks.find(e=>e.kind===`email`)}get isURL(){return!!this._def.checks.find(e=>e.kind===`url`)}get isEmoji(){return!!this._def.checks.find(e=>e.kind===`emoji`)}get isUUID(){return!!this._def.checks.find(e=>e.kind===`uuid`)}get isNANOID(){return!!this._def.checks.find(e=>e.kind===`nanoid`)}get isCUID(){return!!this._def.checks.find(e=>e.kind===`cuid`)}get isCUID2(){return!!this._def.checks.find(e=>e.kind===`cuid2`)}get isULID(){return!!this._def.checks.find(e=>e.kind===`ulid`)}get isIP(){return!!this._def.checks.find(e=>e.kind===`ip`)}get isBase64(){return!!this._def.checks.find(e=>e.kind===`base64`)}get minLength(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.valuenew PA({checks:[],typeName:wj.ZodString,coerce:e?.coerce??!1,...mA(e)});function FA(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=(t.toString().split(`.`)[1]||``).length,i=n>r?n:r;return parseInt(e.toFixed(i).replace(`.`,``))%parseInt(t.toFixed(i).replace(`.`,``))/10**i}var IA=class e extends hA{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==G.number){let t=this._getOrReturnCtx(e);return q(t,{code:K.invalid_type,expected:G.number,received:t.parsedType}),eA}let t,n=new $k;for(let r of this._def.checks)r.kind===`int`?Hk.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),q(t,{code:K.invalid_type,expected:`integer`,received:`float`,message:r.message}),n.dirty()):r.kind===`min`?(r.inclusive?e.datar.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),q(t,{code:K.too_big,maximum:r.value,type:`number`,inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):r.kind===`multipleOf`?FA(e.data,r.value)!==0&&(t=this._getOrReturnCtx(e,t),q(t,{code:K.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):r.kind===`finite`?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),q(t,{code:K.not_finite,message:r.message}),n.dirty()):Hk.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit(`min`,e,!0,lA.toString(t))}gt(e,t){return this.setLimit(`min`,e,!1,lA.toString(t))}lte(e,t){return this.setLimit(`max`,e,!0,lA.toString(t))}lt(e,t){return this.setLimit(`max`,e,!1,lA.toString(t))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:lA.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(e){return this._addCheck({kind:`int`,message:lA.toString(e)})}positive(e){return this._addCheck({kind:`min`,value:0,inclusive:!1,message:lA.toString(e)})}negative(e){return this._addCheck({kind:`max`,value:0,inclusive:!1,message:lA.toString(e)})}nonpositive(e){return this._addCheck({kind:`max`,value:0,inclusive:!0,message:lA.toString(e)})}nonnegative(e){return this._addCheck({kind:`min`,value:0,inclusive:!0,message:lA.toString(e)})}multipleOf(e,t){return this._addCheck({kind:`multipleOf`,value:e,message:lA.toString(t)})}finite(e){return this._addCheck({kind:`finite`,message:lA.toString(e)})}safe(e){return this._addCheck({kind:`min`,inclusive:!0,value:-(2**53-1),message:lA.toString(e)})._addCheck({kind:`max`,inclusive:!0,value:2**53-1,message:lA.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.valuee.kind===`int`||e.kind===`multipleOf`&&Hk.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks)if(n.kind===`finite`||n.kind===`int`||n.kind===`multipleOf`)return!0;else n.kind===`min`?(t===null||n.value>t)&&(t=n.value):n.kind===`max`&&(e===null||n.valuenew IA({checks:[],typeName:wj.ZodNumber,coerce:e?.coerce||!1,...mA(e)});var LA=class e extends hA{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==G.bigint){let t=this._getOrReturnCtx(e);return q(t,{code:K.invalid_type,expected:G.bigint,received:t.parsedType}),eA}let t,n=new $k;for(let r of this._def.checks)r.kind===`min`?(r.inclusive?e.datar.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),q(t,{code:K.too_big,type:`bigint`,maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):r.kind===`multipleOf`?e.data%r.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),q(t,{code:K.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):Hk.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit(`min`,e,!0,lA.toString(t))}gt(e,t){return this.setLimit(`min`,e,!1,lA.toString(t))}lte(e,t){return this.setLimit(`max`,e,!0,lA.toString(t))}lt(e,t){return this.setLimit(`max`,e,!1,lA.toString(t))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:lA.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(e){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!1,message:lA.toString(e)})}negative(e){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!1,message:lA.toString(e)})}nonpositive(e){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!0,message:lA.toString(e)})}nonnegative(e){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!0,message:lA.toString(e)})}multipleOf(e,t){return this._addCheck({kind:`multipleOf`,value:e,message:lA.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.valuenew LA({checks:[],typeName:wj.ZodBigInt,coerce:e?.coerce??!1,...mA(e)});var RA=class extends hA{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==G.boolean){let t=this._getOrReturnCtx(e);return q(t,{code:K.invalid_type,expected:G.boolean,received:t.parsedType}),eA}return nA(e.data)}};RA.create=e=>new RA({typeName:wj.ZodBoolean,coerce:e?.coerce||!1,...mA(e)});var zA=class e extends hA{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==G.date){let t=this._getOrReturnCtx(e);return q(t,{code:K.invalid_type,expected:G.date,received:t.parsedType}),eA}if(isNaN(e.data.getTime()))return q(this._getOrReturnCtx(e),{code:K.invalid_date}),eA;let t=new $k,n;for(let r of this._def.checks)r.kind===`min`?e.data.getTime()r.value&&(n=this._getOrReturnCtx(e,n),q(n,{code:K.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:`date`}),t.dirty()):Hk.assertNever(r);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(e,t){return this._addCheck({kind:`min`,value:e.getTime(),message:lA.toString(t)})}max(e,t){return this._addCheck({kind:`max`,value:e.getTime(),message:lA.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e==null?null:new Date(e)}get maxDate(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.valuenew zA({checks:[],coerce:e?.coerce||!1,typeName:wj.ZodDate,...mA(e)});var BA=class extends hA{_parse(e){if(this._getType(e)!==G.symbol){let t=this._getOrReturnCtx(e);return q(t,{code:K.invalid_type,expected:G.symbol,received:t.parsedType}),eA}return nA(e.data)}};BA.create=e=>new BA({typeName:wj.ZodSymbol,...mA(e)});var VA=class extends hA{_parse(e){if(this._getType(e)!==G.undefined){let t=this._getOrReturnCtx(e);return q(t,{code:K.invalid_type,expected:G.undefined,received:t.parsedType}),eA}return nA(e.data)}};VA.create=e=>new VA({typeName:wj.ZodUndefined,...mA(e)});var HA=class extends hA{_parse(e){if(this._getType(e)!==G.null){let t=this._getOrReturnCtx(e);return q(t,{code:K.invalid_type,expected:G.null,received:t.parsedType}),eA}return nA(e.data)}};HA.create=e=>new HA({typeName:wj.ZodNull,...mA(e)});var UA=class extends hA{constructor(){super(...arguments),this._any=!0}_parse(e){return nA(e.data)}};UA.create=e=>new UA({typeName:wj.ZodAny,...mA(e)});var WA=class extends hA{constructor(){super(...arguments),this._unknown=!0}_parse(e){return nA(e.data)}};WA.create=e=>new WA({typeName:wj.ZodUnknown,...mA(e)});var GA=class extends hA{_parse(e){let t=this._getOrReturnCtx(e);return q(t,{code:K.invalid_type,expected:G.never,received:t.parsedType}),eA}};GA.create=e=>new GA({typeName:wj.ZodNever,...mA(e)});var KA=class extends hA{_parse(e){if(this._getType(e)!==G.undefined){let t=this._getOrReturnCtx(e);return q(t,{code:K.invalid_type,expected:G.void,received:t.parsedType}),eA}return nA(e.data)}};KA.create=e=>new KA({typeName:wj.ZodVoid,...mA(e)});var qA=class e extends hA{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==G.array)return q(t,{code:K.invalid_type,expected:G.array,received:t.parsedType}),eA;if(r.exactLength!==null){let e=t.data.length>r.exactLength.value,i=t.data.lengthr.maxLength.value&&(q(t,{code:K.too_big,maximum:r.maxLength.value,type:`array`,inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new fA(t,e,t.path,n)))).then(e=>$k.mergeArray(n,e));let i=[...t.data].map((e,n)=>r.type._parseSync(new fA(t,e,t.path,n)));return $k.mergeArray(n,i)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:lA.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:lA.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:lA.toString(n)}})}nonempty(e){return this.min(1,e)}};qA.create=(e,t)=>new qA({type:e,minLength:null,maxLength:null,exactLength:null,typeName:wj.ZodArray,...mA(t)});function JA(e){if(e instanceof YA){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=pj.create(JA(r))}return new YA({...e._def,shape:()=>t})}return e instanceof qA?new qA({...e._def,type:JA(e.element)}):e instanceof pj?pj.create(JA(e.unwrap())):e instanceof mj?mj.create(JA(e.unwrap())):e instanceof tj?tj.create(e.items.map(e=>JA(e))):e}var YA=class e extends hA{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),t=Hk.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==G.object){let t=this._getOrReturnCtx(e);return q(t,{code:K.invalid_type,expected:G.object,received:t.parsedType}),eA}let{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof GA&&this._def.unknownKeys===`strip`))for(let e in n.data)i.includes(e)||a.push(e);let o=[];for(let e of i){let t=r[e],i=n.data[e];o.push({key:{status:`valid`,value:e},value:t._parse(new fA(n,i,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof GA){let e=this._def.unknownKeys;if(e===`passthrough`)for(let e of a)o.push({key:{status:`valid`,value:e},value:{status:`valid`,value:n.data[e]}});else if(e===`strict`)a.length>0&&(q(n,{code:K.unrecognized_keys,keys:a}),t.dirty());else if(e!==`strip`)throw Error(`Internal ZodObject error: invalid unknownKeys value.`)}else{let e=this._def.catchall;for(let t of a){let r=n.data[t];o.push({key:{status:`valid`,value:t},value:e._parse(new fA(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of o){let n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e}).then(e=>$k.mergeObjectSync(t,e)):$k.mergeObjectSync(t,o)}get shape(){return this._def.shape()}strict(t){return lA.errToObj,new e({...this._def,unknownKeys:`strict`,...t===void 0?{}:{errorMap:(e,n)=>{var r;let i=(r=this._def).errorMap?.call(r,e,n).message??n.defaultError;return e.code===`unrecognized_keys`?{message:lA.errToObj(t).message??i}:{message:i}}}})}strip(){return new e({...this._def,unknownKeys:`strip`})}passthrough(){return new e({...this._def,unknownKeys:`passthrough`})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:wj.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};return Hk.objectKeys(t).forEach(e=>{t[e]&&this.shape[e]&&(n[e]=this.shape[e])}),new e({...this._def,shape:()=>n})}omit(t){let n={};return Hk.objectKeys(this.shape).forEach(e=>{t[e]||(n[e]=this.shape[e])}),new e({...this._def,shape:()=>n})}deepPartial(){return JA(this)}partial(t){let n={};return Hk.objectKeys(this.shape).forEach(e=>{let r=this.shape[e];t&&!t[e]?n[e]=r:n[e]=r.optional()}),new e({...this._def,shape:()=>n})}required(t){let n={};return Hk.objectKeys(this.shape).forEach(e=>{if(t&&!t[e])n[e]=this.shape[e];else{let t=this.shape[e];for(;t instanceof pj;)t=t._def.innerType;n[e]=t}}),new e({...this._def,shape:()=>n})}keyof(){return cj(Hk.objectKeys(this.shape))}};YA.create=(e,t)=>new YA({shape:()=>e,unknownKeys:`strip`,catchall:GA.create(),typeName:wj.ZodObject,...mA(t)}),YA.strictCreate=(e,t)=>new YA({shape:()=>e,unknownKeys:`strict`,catchall:GA.create(),typeName:wj.ZodObject,...mA(t)}),YA.lazycreate=(e,t)=>new YA({shape:e,unknownKeys:`strip`,catchall:GA.create(),typeName:wj.ZodObject,...mA(t)});var XA=class extends hA{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;function r(e){for(let t of e)if(t.result.status===`valid`)return t.result;for(let n of e)if(n.result.status===`dirty`)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new Kk(e.ctx.common.issues));return q(t,{code:K.invalid_union,unionErrors:n}),eA}if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(r);{let e,r=[];for(let i of n){let n={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:n});if(a.status===`valid`)return a;a.status===`dirty`&&!e&&(e={result:a,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=r.map(e=>new Kk(e));return q(t,{code:K.invalid_union,unionErrors:i}),eA}}get options(){return this._def.options}};XA.create=(e,t)=>new XA({options:e,typeName:wj.ZodUnion,...mA(t)});var ZA=e=>e instanceof oj?ZA(e.schema):e instanceof fj?ZA(e.innerType()):e instanceof sj?[e.value]:e instanceof lj?e.options:e instanceof uj?Hk.objectValues(e.enum):e instanceof hj?ZA(e._def.innerType):e instanceof VA?[void 0]:e instanceof HA?[null]:e instanceof pj?[void 0,...ZA(e.unwrap())]:e instanceof mj?[null,...ZA(e.unwrap())]:e instanceof yj||e instanceof xj?ZA(e.unwrap()):e instanceof gj?ZA(e._def.innerType):[],QA=class e extends hA{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==G.object)return q(t,{code:K.invalid_type,expected:G.object,received:t.parsedType}),eA;let n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(q(t,{code:K.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),eA)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){let i=new Map;for(let e of n){let n=ZA(e.shape[t]);if(!n.length)throw Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let r of n){if(i.has(r))throw Error(`Discriminator property ${String(t)} has duplicate value ${String(r)}`);i.set(r,e)}}return new e({typeName:wj.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...mA(r)})}};function $A(e,t){let n=Wk(e),r=Wk(t);if(e===t)return{valid:!0,data:e};if(n===G.object&&r===G.object){let n=Hk.objectKeys(t),r=Hk.objectKeys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=$A(e[n],t[n]);if(!r.valid)return{valid:!1};i[n]=r.data}return{valid:!0,data:i}}if(n===G.array&&r===G.array){if(e.length!==t.length)return{valid:!1};let n=[];for(let r=0;r{if(rA(e)||rA(r))return eA;let i=$A(e.value,r.value);return i.valid?((iA(e)||iA(r))&&t.dirty(),{status:t.value,value:i.data}):(q(n,{code:K.invalid_intersection_types}),eA)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};ej.create=(e,t,n)=>new ej({left:e,right:t,typeName:wj.ZodIntersection,...mA(n)});var tj=class e extends hA{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==G.array)return q(n,{code:K.invalid_type,expected:G.array,received:n.parsedType}),eA;if(n.data.lengththis._def.items.length&&(q(n,{code:K.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:`array`}),t.dirty());let r=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new fA(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(r).then(e=>$k.mergeArray(t,e)):$k.mergeArray(t,r)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};tj.create=(e,t)=>{if(!Array.isArray(e))throw Error(`You must pass an array of schemas to z.tuple([ ... ])`);return new tj({items:e,typeName:wj.ZodTuple,rest:null,...mA(t)})};var nj=class e extends hA{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==G.object)return q(n,{code:K.invalid_type,expected:G.object,received:n.parsedType}),eA;let r=[],i=this._def.keyType,a=this._def.valueType;for(let e in n.data)r.push({key:i._parse(new fA(n,e,n.path,e)),value:a._parse(new fA(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?$k.mergeObjectAsync(t,r):$k.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof hA?new e({keyType:t,valueType:n,typeName:wj.ZodRecord,...mA(r)}):new e({keyType:PA.create(),valueType:t,typeName:wj.ZodRecord,...mA(n)})}},rj=class extends hA{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==G.map)return q(n,{code:K.invalid_type,expected:G.map,received:n.parsedType}),eA;let r=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map(([e,t],a)=>({key:r._parse(new fA(n,e,n.path,[a,`key`])),value:i._parse(new fA(n,t,n.path,[a,`value`]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of a){let r=await n.key,i=await n.value;if(r.status===`aborted`||i.status===`aborted`)return eA;(r.status===`dirty`||i.status===`dirty`)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let n of a){let r=n.key,i=n.value;if(r.status===`aborted`||i.status===`aborted`)return eA;(r.status===`dirty`||i.status===`dirty`)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}};rj.create=(e,t,n)=>new rj({valueType:t,keyType:e,typeName:wj.ZodMap,...mA(n)});var ij=class e extends hA{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==G.set)return q(n,{code:K.invalid_type,expected:G.set,received:n.parsedType}),eA;let r=this._def;r.minSize!==null&&n.data.sizer.maxSize.value&&(q(n,{code:K.too_big,maximum:r.maxSize.value,type:`set`,inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let n=new Set;for(let r of e){if(r.status===`aborted`)return eA;r.status===`dirty`&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let o=[...n.data.values()].map((e,t)=>i._parse(new fA(n,e,n.path,t)));return n.common.async?Promise.all(o).then(e=>a(e)):a(o)}min(t,n){return new e({...this._def,minSize:{value:t,message:lA.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:lA.toString(n)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}};ij.create=(e,t)=>new ij({valueType:e,minSize:null,maxSize:null,typeName:wj.ZodSet,...mA(t)});var aj=class e extends hA{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==G.function)return q(t,{code:K.invalid_type,expected:G.function,received:t.parsedType}),eA;function n(e,n){return Zk({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Xk(),qk].filter(e=>!!e),issueData:{code:K.invalid_arguments,argumentsError:n}})}function r(e,n){return Zk({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Xk(),qk].filter(e=>!!e),issueData:{code:K.invalid_return_type,returnTypeError:n}})}let i={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof dj){let e=this;return nA(async function(...t){let o=new Kk([]),s=await e._def.args.parseAsync(t,i).catch(e=>{throw o.addIssue(n(t,e)),o}),c=await Reflect.apply(a,this,s);return await e._def.returns._def.type.parseAsync(c,i).catch(e=>{throw o.addIssue(r(c,e)),o})})}{let e=this;return nA(function(...t){let o=e._def.args.safeParse(t,i);if(!o.success)throw new Kk([n(t,o.error)]);let s=Reflect.apply(a,this,o.data),c=e._def.returns.safeParse(s,i);if(!c.success)throw new Kk([r(s,c.error)]);return c.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:tj.create(t).rest(WA.create())})}returns(t){return new e({...this._def,returns:t})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(t,n,r){return new e({args:t||tj.create([]).rest(WA.create()),returns:n||WA.create(),typeName:wj.ZodFunction,...mA(r)})}},oj=class extends hA{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}};oj.create=(e,t)=>new oj({getter:e,typeName:wj.ZodLazy,...mA(t)});var sj=class extends hA{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return q(t,{received:t.data,code:K.invalid_literal,expected:this._def.value}),eA}return{status:`valid`,value:e.data}}get value(){return this._def.value}};sj.create=(e,t)=>new sj({value:e,typeName:wj.ZodLiteral,...mA(t)});function cj(e,t){return new lj({values:e,typeName:wj.ZodEnum,...mA(t)})}var lj=class e extends hA{constructor(){super(...arguments),uA.set(this,void 0)}_parse(e){if(typeof e.data!=`string`){let t=this._getOrReturnCtx(e),n=this._def.values;return q(t,{expected:Hk.joinValues(n),received:t.parsedType,code:K.invalid_type}),eA}if(sA(this,uA)||cA(this,uA,new Set(this._def.values)),!sA(this,uA).has(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return q(t,{received:t.data,code:K.invalid_enum_value,options:n}),eA}return nA(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(t,n=this._def){return e.create(t,{...this._def,...n})}exclude(t,n=this._def){return e.create(this.options.filter(e=>!t.includes(e)),{...this._def,...n})}};uA=new WeakMap,lj.create=cj;var uj=class extends hA{constructor(){super(...arguments),dA.set(this,void 0)}_parse(e){let t=Hk.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==G.string&&n.parsedType!==G.number){let e=Hk.objectValues(t);return q(n,{expected:Hk.joinValues(e),received:n.parsedType,code:K.invalid_type}),eA}if(sA(this,dA)||cA(this,dA,new Set(Hk.getValidEnumValues(this._def.values))),!sA(this,dA).has(e.data)){let e=Hk.objectValues(t);return q(n,{received:n.data,code:K.invalid_enum_value,options:e}),eA}return nA(e.data)}get enum(){return this._def.values}};dA=new WeakMap,uj.create=(e,t)=>new uj({values:e,typeName:wj.ZodNativeEnum,...mA(t)});var dj=class extends hA{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==G.promise&&t.common.async===!1?(q(t,{code:K.invalid_type,expected:G.promise,received:t.parsedType}),eA):nA((t.parsedType===G.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}};dj.create=(e,t)=>new dj({type:e,typeName:wj.ZodPromise,...mA(t)});var fj=class extends hA{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===wj.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,i={addIssue:e=>{q(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),r.type===`preprocess`){let e=r.transform(n.data,i);if(n.common.async)return Promise.resolve(e).then(async e=>{if(t.value===`aborted`)return eA;let r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return r.status===`aborted`?eA:r.status===`dirty`||t.value===`dirty`?tA(r.value):r});{if(t.value===`aborted`)return eA;let r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return r.status===`aborted`?eA:r.status===`dirty`||t.value===`dirty`?tA(r.value):r}}if(r.type===`refinement`){let e=e=>{let t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error(`Async refinement encountered during synchronous parse operation. Use .parseAsync instead.`);return e};if(n.common.async===!1){let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return r.status===`aborted`?eA:(r.status===`dirty`&&t.dirty(),e(r.value),{status:t.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>n.status===`aborted`?eA:(n.status===`dirty`&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))))}if(r.type===`transform`){if(n.common.async===!1){let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!aA(e))return e;let a=r.transform(e.value,i);if(a instanceof Promise)throw Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);return{status:t.value,value:a}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>aA(e)?Promise.resolve(r.transform(e.value,i)).then(e=>({status:t.value,value:e})):e)}Hk.assertNever(r)}};fj.create=(e,t,n)=>new fj({schema:e,typeName:wj.ZodEffects,effect:t,...mA(n)}),fj.createWithPreprocess=(e,t,n)=>new fj({schema:t,effect:{type:`preprocess`,transform:e},typeName:wj.ZodEffects,...mA(n)});var pj=class extends hA{_parse(e){return this._getType(e)===G.undefined?nA(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};pj.create=(e,t)=>new pj({innerType:e,typeName:wj.ZodOptional,...mA(t)});var mj=class extends hA{_parse(e){return this._getType(e)===G.null?nA(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};mj.create=(e,t)=>new mj({innerType:e,typeName:wj.ZodNullable,...mA(t)});var hj=class extends hA{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===G.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}};hj.create=(e,t)=>new hj({innerType:e,typeName:wj.ZodDefault,defaultValue:typeof t.default==`function`?t.default:()=>t.default,...mA(t)});var gj=class extends hA{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return oA(r)?r.then(e=>({status:`valid`,value:e.status===`valid`?e.value:this._def.catchValue({get error(){return new Kk(n.common.issues)},input:n.data})})):{status:`valid`,value:r.status===`valid`?r.value:this._def.catchValue({get error(){return new Kk(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};gj.create=(e,t)=>new gj({innerType:e,typeName:wj.ZodCatch,catchValue:typeof t.catch==`function`?t.catch:()=>t.catch,...mA(t)});var _j=class extends hA{_parse(e){if(this._getType(e)!==G.nan){let t=this._getOrReturnCtx(e);return q(t,{code:K.invalid_type,expected:G.nan,received:t.parsedType}),eA}return{status:`valid`,value:e.data}}};_j.create=e=>new _j({typeName:wj.ZodNaN,...mA(e)});var vj=Symbol(`zod_brand`),yj=class extends hA{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}},bj=class e extends hA{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return e.status===`aborted`?eA:e.status===`dirty`?(t.dirty(),tA(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{let e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return e.status===`aborted`?eA:e.status===`dirty`?(t.dirty(),{status:`dirty`,value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(t,n){return new e({in:t,out:n,typeName:wj.ZodPipeline})}},xj=class extends hA{_parse(e){let t=this._def.innerType._parse(e),n=e=>(aA(e)&&(e.value=Object.freeze(e.value)),e);return oA(t)?t.then(e=>n(e)):n(t)}unwrap(){return this._def.innerType}};xj.create=(e,t)=>new xj({innerType:e,typeName:wj.ZodReadonly,...mA(t)});function Sj(e,t={},n){return e?UA.create().superRefine((r,i)=>{if(!e(r)){let e=typeof t==`function`?t(r):typeof t==`string`?{message:t}:t,a=e.fatal??n??!0,o=typeof e==`string`?{message:e}:e;i.addIssue({code:`custom`,...o,fatal:a})}}):UA.create()}var Cj={object:YA.lazycreate},wj;(function(e){e.ZodString=`ZodString`,e.ZodNumber=`ZodNumber`,e.ZodNaN=`ZodNaN`,e.ZodBigInt=`ZodBigInt`,e.ZodBoolean=`ZodBoolean`,e.ZodDate=`ZodDate`,e.ZodSymbol=`ZodSymbol`,e.ZodUndefined=`ZodUndefined`,e.ZodNull=`ZodNull`,e.ZodAny=`ZodAny`,e.ZodUnknown=`ZodUnknown`,e.ZodNever=`ZodNever`,e.ZodVoid=`ZodVoid`,e.ZodArray=`ZodArray`,e.ZodObject=`ZodObject`,e.ZodUnion=`ZodUnion`,e.ZodDiscriminatedUnion=`ZodDiscriminatedUnion`,e.ZodIntersection=`ZodIntersection`,e.ZodTuple=`ZodTuple`,e.ZodRecord=`ZodRecord`,e.ZodMap=`ZodMap`,e.ZodSet=`ZodSet`,e.ZodFunction=`ZodFunction`,e.ZodLazy=`ZodLazy`,e.ZodLiteral=`ZodLiteral`,e.ZodEnum=`ZodEnum`,e.ZodEffects=`ZodEffects`,e.ZodNativeEnum=`ZodNativeEnum`,e.ZodOptional=`ZodOptional`,e.ZodNullable=`ZodNullable`,e.ZodDefault=`ZodDefault`,e.ZodCatch=`ZodCatch`,e.ZodPromise=`ZodPromise`,e.ZodBranded=`ZodBranded`,e.ZodPipeline=`ZodPipeline`,e.ZodReadonly=`ZodReadonly`})(wj||={});var Tj=(e,t={message:`Input not instance of ${e.name}`})=>Sj(t=>t instanceof e,t),J=PA.create,Ej=IA.create,Dj=_j.create,Oj=LA.create,kj=RA.create,Aj=zA.create,jj=BA.create,Mj=VA.create,Nj=HA.create,Pj=UA.create,Fj=WA.create,Ij=GA.create,Lj=KA.create,Rj=qA.create,Y=YA.create,zj=YA.strictCreate,Bj=XA.create,Vj=QA.create,Hj=ej.create,Uj=tj.create,Wj=nj.create,Gj=rj.create,Kj=ij.create,qj=aj.create,Jj=oj.create,Yj=sj.create,Xj=lj.create,Zj=uj.create,Qj=dj.create,$j=fj.create,eM=pj.create,tM=mj.create,nM=fj.createWithPreprocess,rM=bj.create,X=Object.freeze({__proto__:null,defaultErrorMap:qk,setErrorMap:Yk,getErrorMap:Xk,makeIssue:Zk,EMPTY_PATH:Qk,addIssueToContext:q,ParseStatus:$k,INVALID:eA,DIRTY:tA,OK:nA,isAborted:rA,isDirty:iA,isValid:aA,isAsync:oA,get util(){return Hk},get objectUtil(){return Uk},ZodParsedType:G,getParsedType:Wk,ZodType:hA,datetimeRegex:MA,ZodString:PA,ZodNumber:IA,ZodBigInt:LA,ZodBoolean:RA,ZodDate:zA,ZodSymbol:BA,ZodUndefined:VA,ZodNull:HA,ZodAny:UA,ZodUnknown:WA,ZodNever:GA,ZodVoid:KA,ZodArray:qA,ZodObject:YA,ZodUnion:XA,ZodDiscriminatedUnion:QA,ZodIntersection:ej,ZodTuple:tj,ZodRecord:nj,ZodMap:rj,ZodSet:ij,ZodFunction:aj,ZodLazy:oj,ZodLiteral:sj,ZodEnum:lj,ZodNativeEnum:uj,ZodPromise:dj,ZodEffects:fj,ZodTransformer:fj,ZodOptional:pj,ZodNullable:mj,ZodDefault:hj,ZodCatch:gj,ZodNaN:_j,BRAND:vj,ZodBranded:yj,ZodPipeline:bj,ZodReadonly:xj,custom:Sj,Schema:hA,ZodSchema:hA,late:Cj,get ZodFirstPartyTypeKind(){return wj},coerce:{string:(e=>PA.create({...e,coerce:!0})),number:(e=>IA.create({...e,coerce:!0})),boolean:(e=>RA.create({...e,coerce:!0})),bigint:(e=>LA.create({...e,coerce:!0})),date:(e=>zA.create({...e,coerce:!0}))},any:Pj,array:Rj,bigint:Oj,boolean:kj,date:Aj,discriminatedUnion:Vj,effect:$j,enum:Xj,function:qj,instanceof:Tj,intersection:Hj,lazy:Jj,literal:Yj,map:Gj,nan:Dj,nativeEnum:Zj,never:Ij,null:Nj,nullable:tM,number:Ej,object:Y,oboolean:()=>kj().optional(),onumber:()=>Ej().optional(),optional:eM,ostring:()=>J().optional(),pipeline:rM,preprocess:nM,promise:Qj,record:Wj,set:Kj,strictObject:zj,string:J,symbol:jj,transformer:$j,tuple:Uj,undefined:Mj,union:Bj,unknown:Fj,void:Lj,NEVER:eA,ZodIssueCode:K,quotelessJson:Gk,ZodError:Kk}),iM={exports:{}},aM;function oM(){return aM||(aM=1,(function(e){var t=(function(e){var n=1e7,r=9007199254740992,i=f(r),a=`0123456789abcdefghijklmnopqrstuvwxyz`,o=typeof BigInt==`function`;function s(e,t,n,r){return e===void 0?s[0]:t===void 0||+t==10&&!n?N(e):ve(e,t,n,r)}function c(e,t){this.value=e,this.sign=t,this.isSmall=!1}c.prototype=Object.create(s.prototype);function l(e){this.value=e,this.sign=e<0,this.isSmall=!0}l.prototype=Object.create(s.prototype);function u(e){this.value=e}u.prototype=Object.create(s.prototype);function d(e){return-r0?Math.floor(e):Math.ceil(e)}function _(e,t){for(var r=e.length,i=t.length,a=Array(r),o=0,s=n,c,l=0;l=s),a[l]=c-o*s;for(;l0&&a.push(o),a}function v(e,t){return e.length>=t.length?_(e,t):_(t,e)}function y(e,t){for(var r=e.length,i=Array(r),a=n,o,s=0;s0;)i[s++]=t%a,t=Math.floor(t/a);return i}c.prototype.add=function(e){var t=N(e);if(this.sign!==t.sign)return this.subtract(t.negate());var n=this.value,r=t.value;return t.isSmall?new c(y(n,Math.abs(r)),this.sign):new c(v(n,r),this.sign)},c.prototype.plus=c.prototype.add,l.prototype.add=function(e){var t=N(e),n=this.value;if(n<0!==t.sign)return this.subtract(t.negate());var r=t.value;if(t.isSmall){if(d(n+r))return new l(n+r);r=f(Math.abs(r))}return new c(y(r,Math.abs(n)),n<0)},l.prototype.plus=l.prototype.add,u.prototype.add=function(e){return new u(this.value+N(e).value)},u.prototype.plus=u.prototype.add;function b(e,t){for(var r=e.length,i=t.length,a=Array(r),o=0,s=n,c=0,l;c=0?r=b(e,t):(r=b(t,e),n=!n),r=p(r),typeof r==`number`?(n&&(r=-r),new l(r)):new c(r,n)}function S(e,t,r){for(var i=e.length,a=Array(i),o=-t,s=n,u=0,d;u=0)},l.prototype.minus=l.prototype.subtract,u.prototype.subtract=function(e){return new u(this.value-N(e).value)},u.prototype.minus=u.prototype.subtract,c.prototype.negate=function(){return new c(this.value,!this.sign)},l.prototype.negate=function(){var e=this.sign,t=new l(-this.value);return t.sign=!e,t},u.prototype.negate=function(){return new u(-this.value)},c.prototype.abs=function(){return new c(this.value,!1)},l.prototype.abs=function(){return new l(Math.abs(this.value))},u.prototype.abs=function(){return new u(this.value>=0?this.value:-this.value)};function C(e,t){for(var r=e.length,i=t.length,a=h(r+i),o=n,s,c,l=0,u,d;l0;)i[c++]=o%a,o=Math.floor(o/a);return i}function T(e,t){for(var n=[];t-->0;)n.push(0);return n.concat(e)}function E(e,t){var n=Math.max(e.length,t.length);if(n<=30)return C(e,t);n=Math.ceil(n/2);var r=e.slice(n),i=e.slice(0,n),a=t.slice(n),o=t.slice(0,n),s=E(i,o),c=E(r,a),l=v(v(s,T(b(b(E(v(i,r),v(o,a)),s),c),n)),T(c,2*n));return m(l),l}function D(e,t){return-.012*e-.012*t+15e-6*e*t>0}c.prototype.multiply=function(e){var t=N(e),r=this.value,i=t.value,a=this.sign!==t.sign,o;if(t.isSmall){if(i===0)return s[0];if(i===1)return this;if(i===-1)return this.negate();if(o=Math.abs(i),o=0;f--){for(d=a-1,l[f+i]!==s&&(d=Math.floor((l[f+i]*a+l[f+i-1])/s)),m=0,g=0,v=u.length,_=0;_i&&(u=(u+1)*s),c=Math.ceil(u/d);do{if(f=w(t,c),te(f,o)<=0)break;c--}while(c);a.push(c),o=b(o,f)}return a.reverse(),[p(a),p(o)]}function ee(e,t){var r=e.length,i=h(r),a=n,o,s,c=0,l;for(o=r-1;o>=0;--o)l=c*a+e[o],s=g(l/t),c=l-s*t,i[o]=s|0;return[i,c|0]}function M(e,t){var r,i=N(t);if(o)return[new u(e.value/i.value),new u(e.value%i.value)];var a=e.value,d=i.value,m;if(d===0)throw Error(`Cannot divide by zero`);if(e.isSmall)return i.isSmall?[new l(g(a/d)),new l(a%d)]:[s[0],e];if(i.isSmall){if(d===1)return[e,s[0]];if(d==-1)return[e.negate(),s[0]];var h=Math.abs(d);if(ht.length?1:-1;for(var n=e.length-1;n>=0;n--)if(e[n]!==t[n])return e[n]>t[n]?1:-1;return 0}c.prototype.compareAbs=function(e){var t=N(e),n=this.value,r=t.value;return t.isSmall?1:te(n,r)},l.prototype.compareAbs=function(e){var t=N(e),n=Math.abs(this.value),r=t.value;return t.isSmall?(r=Math.abs(r),n===r?0:n>r?1:-1):-1},u.prototype.compareAbs=function(e){var t=this.value,n=N(e).value;return t=t>=0?t:-t,n=n>=0?n:-n,t===n?0:t>n?1:-1},c.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=N(e),n=this.value,r=t.value;return this.sign===t.sign?t.isSmall?this.sign?-1:1:te(n,r)*(this.sign?-1:1):t.sign?1:-1},c.prototype.compareTo=c.prototype.compare,l.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=N(e),n=this.value,r=t.value;return t.isSmall?n==r?0:n>r?1:-1:n<0===t.sign?n<0?1:-1:n<0?-1:1},l.prototype.compareTo=l.prototype.compare,u.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=this.value,n=N(e).value;return t===n?0:t>n?1:-1},u.prototype.compareTo=u.prototype.compare,c.prototype.equals=function(e){return this.compare(e)===0},u.prototype.eq=u.prototype.equals=l.prototype.eq=l.prototype.equals=c.prototype.eq=c.prototype.equals,c.prototype.notEquals=function(e){return this.compare(e)!==0},u.prototype.neq=u.prototype.notEquals=l.prototype.neq=l.prototype.notEquals=c.prototype.neq=c.prototype.notEquals,c.prototype.greater=function(e){return this.compare(e)>0},u.prototype.gt=u.prototype.greater=l.prototype.gt=l.prototype.greater=c.prototype.gt=c.prototype.greater,c.prototype.lesser=function(e){return this.compare(e)<0},u.prototype.lt=u.prototype.lesser=l.prototype.lt=l.prototype.lesser=c.prototype.lt=c.prototype.lesser,c.prototype.greaterOrEquals=function(e){return this.compare(e)>=0},u.prototype.geq=u.prototype.greaterOrEquals=l.prototype.geq=l.prototype.greaterOrEquals=c.prototype.geq=c.prototype.greaterOrEquals,c.prototype.lesserOrEquals=function(e){return this.compare(e)<=0},u.prototype.leq=u.prototype.lesserOrEquals=l.prototype.leq=l.prototype.lesserOrEquals=c.prototype.leq=c.prototype.lesserOrEquals,c.prototype.isEven=function(){return!(this.value[0]&1)},l.prototype.isEven=function(){return!(this.value&1)},u.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},c.prototype.isOdd=function(){return(this.value[0]&1)==1},l.prototype.isOdd=function(){return(this.value&1)==1},u.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},c.prototype.isPositive=function(){return!this.sign},l.prototype.isPositive=function(){return this.value>0},u.prototype.isPositive=l.prototype.isPositive,c.prototype.isNegative=function(){return this.sign},l.prototype.isNegative=function(){return this.value<0},u.prototype.isNegative=l.prototype.isNegative,c.prototype.isUnit=function(){return!1},l.prototype.isUnit=function(){return Math.abs(this.value)===1},u.prototype.isUnit=function(){return this.abs().value===BigInt(1)},c.prototype.isZero=function(){return!1},l.prototype.isZero=function(){return this.value===0},u.prototype.isZero=function(){return this.value===BigInt(0)},c.prototype.isDivisibleBy=function(e){var t=N(e);return t.isZero()?!1:t.isUnit()?!0:t.compareAbs(2)===0?this.isEven():this.mod(t).isZero()},u.prototype.isDivisibleBy=l.prototype.isDivisibleBy=c.prototype.isDivisibleBy;function ne(e){var t=e.abs();if(t.isUnit())return!1;if(t.equals(2)||t.equals(3)||t.equals(5))return!0;if(t.isEven()||t.isDivisibleBy(3)||t.isDivisibleBy(5))return!1;if(t.lesser(49))return!0}function re(e,n){for(var r=e.prev(),i=r,a=0,o,s,c;i.isEven();)i=i.divide(2),a++;next:for(s=0;s-r?new l(e-1):new c(i,!0)},u.prototype.prev=function(){return new u(this.value-BigInt(1))};for(var ie=[1];2*ie[ie.length-1]<=n;)ie.push(2*ie[ie.length-1]);var ae=ie.length,oe=ie[ae-1];function se(e){return Math.abs(e)<=n}c.prototype.shiftLeft=function(e){var t=N(e).toJSNumber();if(!se(t))throw Error(String(t)+` is too large for shifting.`);if(t<0)return this.shiftRight(-t);var n=this;if(n.isZero())return n;for(;t>=ae;)n=n.multiply(oe),t-=ae-1;return n.multiply(ie[t])},u.prototype.shiftLeft=l.prototype.shiftLeft=c.prototype.shiftLeft,c.prototype.shiftRight=function(e){var t,n=N(e).toJSNumber();if(!se(n))throw Error(String(n)+` is too large for shifting.`);if(n<0)return this.shiftLeft(-n);for(var r=this;n>=ae;){if(r.isZero()||r.isNegative()&&r.isUnit())return r;t=M(r,oe),r=t[1].isNegative()?t[0].prev():t[0],n-=ae-1}return t=M(r,ie[n]),t[1].isNegative()?t[0].prev():t[0]},u.prototype.shiftRight=l.prototype.shiftRight=c.prototype.shiftRight;function ce(e,n,r){n=N(n);for(var i=e.isNegative(),a=n.isNegative(),o=i?e.not():e,s=a?n.not():n,c=0,l=0,u=null,d=null,f=[];!o.isZero()||!s.isZero();)u=M(o,oe),c=u[1].toJSNumber(),i&&(c=oe-1-c),d=M(s,oe),l=d[1].toJSNumber(),a&&(l=oe-1-l),o=u[0],s=d[0],f.push(r(c,l));for(var p=r(+!!i,+!!a)===0?t(0):t(-1),m=f.length-1;m>=0;--m)p=p.multiply(oe).add(t(f[m]));return p}c.prototype.not=function(){return this.negate().prev()},u.prototype.not=l.prototype.not=c.prototype.not,c.prototype.and=function(e){return ce(this,e,function(e,t){return e&t})},u.prototype.and=l.prototype.and=c.prototype.and,c.prototype.or=function(e){return ce(this,e,function(e,t){return e|t})},u.prototype.or=l.prototype.or=c.prototype.or,c.prototype.xor=function(e){return ce(this,e,function(e,t){return e^t})},u.prototype.xor=l.prototype.xor=c.prototype.xor;var le=1<<30,ue=(n&-n)*(n&-n)|le;function de(e){var t=e.value,r=typeof t==`number`?t|le:typeof t==`bigint`?t|BigInt(le):t[0]+t[1]*n|ue;return r&-r}function fe(e,n){if(n.compareTo(e)<=0){var r=fe(e,n.square(n)),i=r.p,a=r.e,o=i.multiply(n);return o.compareTo(e)<=0?{p:o,e:a*2+1}:{p:i,e:a*2}}return{p:t(1),e:0}}c.prototype.bitLength=function(){var e=this;return e.compareTo(t(0))<0&&(e=e.negate().subtract(t(1))),e.compareTo(t(0))===0?t(0):t(fe(e,t(2)).e).add(t(1))},u.prototype.bitLength=l.prototype.bitLength=c.prototype.bitLength;function pe(e,t){return e=N(e),t=N(t),e.greater(t)?e:t}function me(e,t){return e=N(e),t=N(t),e.lesser(t)?e:t}function he(e,t){if(e=N(e).abs(),t=N(t).abs(),e.equals(t))return e;if(e.isZero())return t;if(t.isZero())return e;for(var n=s[1],r,i;e.isEven()&&t.isEven();)r=me(de(e),de(t)),e=e.divide(r),t=t.divide(r),n=n.multiply(r);for(;e.isEven();)e=e.divide(de(e));do{for(;t.isEven();)t=t.divide(de(t));e.greater(t)&&(i=t,t=e,e=i),t=t.subtract(e)}while(!t.isZero());return n.isUnit()?e:e.multiply(n)}function ge(e,t){return e=N(e).abs(),t=N(t).abs(),e.divide(he(e,t)).multiply(t)}function _e(e,t,r){e=N(e),t=N(t);var i=r||Math.random,a=me(e,t),o=pe(e,t).subtract(a).add(1);if(o.isSmall)return a.add(Math.floor(i()*o));for(var c=xe(o,n).value,l=[],u=!0,d=0;d=s){if(l===`1`&&s===1)continue;throw Error(l+` is not a valid digit in base `+t+`.`)}}t=N(t);var u=[],d=e[0]===`-`;for(o=+!!d;o`&&o=0;a--)r=r.add(e[a].times(i)),i=i.times(t);return n?r.negate():r}function be(e,t){return t||=a,e`}function xe(e,n){if(n=t(n),n.isZero()){if(e.isZero())return{value:[0],isNegative:!1};throw Error(`Cannot convert nonzero numbers to base 0.`)}if(n.equals(-1)){if(e.isZero())return{value:[0],isNegative:!1};if(e.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-e.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var r=Array.apply(null,Array(e.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return r.unshift([1]),{value:[].concat.apply([],r),isNegative:!1}}var i=!1;if(e.isNegative()&&n.isPositive()&&(i=!0,e=e.abs()),n.isUnit())return e.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(e.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:i};for(var a=[],o=e,s;o.isNegative()||o.compareAbs(n)>=0;){s=o.divmod(n),o=s.quotient;var c=s.remainder;c.isNegative()&&(c=n.minus(c).abs(),o=o.next()),a.push(c.toJSNumber())}return a.push(o.toJSNumber()),{value:a.reverse(),isNegative:i}}function Se(e,t,n){var r=xe(e,t);return(r.isNegative?`-`:``)+r.value.map(function(e){return be(e,n)}).join(``)}c.prototype.toArray=function(e){return xe(this,e)},l.prototype.toArray=function(e){return xe(this,e)},u.prototype.toArray=function(e){return xe(this,e)},c.prototype.toString=function(t,n){if(t===e&&(t=10),t!==10||n)return Se(this,t,n);for(var r=this.value,i=r.length,a=String(r[--i]),o=`0000000`,s;--i>=0;)s=String(r[i]),a+=o.slice(s.length)+s;return(this.sign?`-`:``)+a},l.prototype.toString=function(t,n){return t===e&&(t=10),t!=10||n?Se(this,t,n):String(this.value)},u.prototype.toString=l.prototype.toString,u.prototype.toJSON=c.prototype.toJSON=l.prototype.toJSON=function(){return this.toString()},c.prototype.valueOf=function(){return parseInt(this.toString(),10)},c.prototype.toJSNumber=c.prototype.valueOf,l.prototype.valueOf=function(){return this.value},l.prototype.toJSNumber=l.prototype.valueOf,u.prototype.valueOf=u.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};function Ce(e){if(d(+e)){var t=+e;if(t===g(t))return o?new u(BigInt(t)):new l(t);throw Error(`Invalid integer: `+e)}var n=e[0]===`-`;n&&(e=e.slice(1));var r=e.split(/e/i);if(r.length>2)throw Error(`Invalid integer: `+r.join(`e`));if(r.length===2){var i=r[1];if(i[0]===`+`&&(i=i.slice(1)),i=+i,i!==g(i)||!d(i))throw Error(`Invalid integer: `+i+` is not a valid exponent.`);var a=r[0],s=a.indexOf(`.`);if(s>=0&&(i-=a.length-s-1,a=a.slice(0,s)+a.slice(s+1)),i<0)throw Error(`Cannot include negative exponent part for integers`);a+=Array(i+1).join(`0`),e=a}if(!/^([0-9][0-9]*)$/.test(e))throw Error(`Invalid integer: `+e);if(o)return new u(BigInt(n?`-`+e:e));for(var f=[],p=e.length,h=7,_=p-h;p>0;)f.push(+e.slice(_,p)),_-=h,_<0&&(_=0),p-=h;return m(f),new c(f,n)}function we(e){if(o)return new u(BigInt(e));if(d(e)){if(e!==g(e))throw Error(e+` is not an integer.`);return new l(e)}return Ce(e.toString())}function N(e){return typeof e==`number`?we(e):typeof e==`string`?Ce(e):typeof e==`bigint`?new u(e):e}for(var Te=0;Te<1e3;Te++)s[Te]=N(Te),Te>0&&(s[-Te]=N(-Te));return s.one=s[1],s.zero=s[0],s.minusOne=s[-1],s.max=pe,s.min=me,s.gcd=he,s.lcm=ge,s.isInstance=function(e){return e instanceof c||e instanceof l||e instanceof u},s.randBetween=_e,s.fromArray=function(e,t,n){return ye(e.map(N),N(t||10),n)},s})();e.hasOwnProperty(`exports`)&&(e.exports=t)})(iM)),iM.exports}var sM=Lk(oM()),cM=64,lM=16,uM=cM/lM;function dM(){try{return!0}catch{return!1}}function fM(e,t,n){let r=0;for(let i=0;ie&t[n]))}or({parts:t}){return new e(this.parts.map((e,n)=>e|t[n]))}xor({parts:t}){return new e(this.parts.map((e,n)=>e^t[n]))}not(){return new e(this.parts.map(e=>~e))}equals({parts:e}){return this.parts.every((t,n)=>t===e[n])}toString(){if(this.str!=null)return this.str;let e=Array(cM/4);return this.parts.forEach((t,n)=>{let r=pM(t.toString());for(let t=0;t<4;t++)e[t+n*4]=r[3-t]||0}),this.str=sM.fromArray(e,16).toString()}toJSON(){return this.toString()}},gM=dM();gM&&BigInt.prototype.toJSON==null&&(BigInt.prototype.toJSON=function(){return this.toString()});var _M={},vM=gM?function(e){return BigInt(e)}:function(e){return e instanceof hM?e:(typeof e==`number`&&(e=e.toString()),_M[e]??(_M[e]=hM.fromString(e)),_M[e])},yM=vM(0),bM=gM?function(e=yM,t=yM){return e&t}:function(e=yM,t=yM){return e.and(t)},xM=gM?function(e=yM,t=yM){return e|t}:function(e=yM,t=yM){return e.or(t)},SM=gM?function(e=yM,t=yM){return e^t}:function(e=yM,t=yM){return e.xor(t)},CM=gM?function(e=yM){return~e}:function(e=yM){return e.not()},wM=gM?function(e,t){return e===t}:function(e,t){return e==null||t==null?e==t:e.equals(t)};function TM(...e){let t=e[0];for(let n=1;n{let[n]=Object.entries(e).find(([,e])=>e===t)??[];return t!=null&&n===void 0?e.UNHANDLED:t},J().or(Ej()))}function IM(e){let t=Sj().transform(t=>{let n=e.safeParse(t);return n.success?n.data:e._def.defaultValue()});return t.overlayType=e,t}var LM=X.object({image_url:X.string()}).describe(`Response for "INITIATE_IMAGE_UPLOAD" Command`),RM=X.object({mediaUrl:X.string().max(1024)}).describe(`Request for "OPEN_SHARE_MOMENT_DIALOG" Command`),zM=X.object({access_token:X.union([X.string(),X.null()]).optional()}).describe(`Request for "AUTHENTICATE" Command`),BM=X.object({access_token:X.string(),user:X.object({username:X.string(),discriminator:X.string(),id:X.string(),avatar:X.union([X.string(),X.null()]).optional(),public_flags:X.number(),global_name:X.union([X.string(),X.null()]).optional()}),scopes:X.array(IM(X.enum(`identify,identify.premium,email,connections,guilds,guilds.join,guilds.members.read,guilds.channels.read,gdm.join,bot,rpc,rpc.notifications.read,rpc.voice.read,rpc.voice.write,rpc.video.read,rpc.video.write,rpc.screenshare.read,rpc.screenshare.write,rpc.activities.write,webhook.incoming,messages.read,applications.builds.upload,applications.builds.read,applications.commands,applications.commands.permissions.update,applications.commands.update,applications.store.update,applications.entitlements,activities.read,activities.write,activities.invites.write,relationships.read,relationships.write,voice,dm_channels.read,role_connections.write,presences.read,presences.write,openid,dm_channels.messages.read,dm_channels.messages.write,gateway.connect,account.global_name.update,payment_sources.country_code,sdk.social_layer_presence,sdk.social_layer,lobbies.write,application_identities.write`.split(`,`)).or(X.literal(-1)).default(-1))),expires:X.string(),application:X.object({description:X.string(),icon:X.union([X.string(),X.null()]).optional(),id:X.string(),rpc_origins:X.array(X.string()).optional(),name:X.string()})}).describe(`Response for "AUTHENTICATE" Command`),VM=X.object({participants:X.array(X.object({id:X.string(),username:X.string(),global_name:X.union([X.string(),X.null()]).optional(),discriminator:X.string(),avatar:X.union([X.string(),X.null()]).optional(),flags:X.number(),bot:X.boolean(),avatar_decoration_data:X.union([X.object({asset:X.union([X.string(),X.null()]).optional(),skuId:X.string().optional(),expiresAt:X.number().optional()}),X.null()]).optional(),premium_type:X.union([X.number(),X.null()]).optional(),nickname:X.string().optional()}))}).describe(`Response for "GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS" Command`),HM=X.object({command:X.string(),options:X.array(X.object({name:X.string(),value:X.string()})).optional(),content:X.string().max(2e3).optional(),require_launch_channel:X.boolean().optional(),preview_image:X.object({height:X.number(),url:X.string(),width:X.number()}).optional(),components:X.array(X.object({type:X.literal(1),components:X.array(X.object({type:X.literal(2),style:X.number().gte(1).lte(5),label:X.string().max(80).optional(),custom_id:X.string().max(100).describe(`Developer-defined identifier for the button; max 100 characters`).optional()})).max(5).optional()})).optional(),pid:X.number().optional()}).describe(`Request for "SHARE_INTERACTION" Command`),UM=X.object({success:X.boolean()}).describe(`Response for "SHARE_INTERACTION" Command`),WM=X.object({custom_id:X.string().max(64).optional(),message:X.string().max(1e3),link_id:X.string().max(64).optional()}).describe(`Request for "SHARE_LINK" Command`),GM=X.object({success:X.boolean(),didCopyLink:X.boolean(),didSendMessage:X.boolean()}).describe(`Response for "SHARE_LINK" Command`),KM=X.object({relationships:X.array(X.object({type:X.number(),user:X.object({id:X.string(),username:X.string(),global_name:X.union([X.string(),X.null()]).optional(),discriminator:X.string(),avatar:X.union([X.string(),X.null()]).optional(),flags:X.number(),bot:X.boolean(),avatar_decoration_data:X.union([X.object({asset:X.union([X.string(),X.null()]).optional(),skuId:X.string().optional(),expiresAt:X.number().optional()}),X.null()]).optional(),premium_type:X.union([X.number(),X.null()]).optional()}),presence:X.object({status:X.string(),activity:X.union([X.object({session_id:X.string().optional(),type:X.number().optional(),name:X.string(),url:X.union([X.string(),X.null()]).optional(),application_id:X.string().optional(),status_display_type:X.number().optional(),state:X.string().optional(),state_url:X.string().optional(),details:X.string().optional(),details_url:X.string().optional(),emoji:X.union([X.object({name:X.string(),id:X.union([X.string(),X.null()]).optional(),animated:X.union([X.boolean(),X.null()]).optional()}),X.null()]).optional(),assets:X.object({large_image:X.string().optional(),large_text:X.string().optional(),large_url:X.string().optional(),small_image:X.string().optional(),small_text:X.string().optional(),small_url:X.string().optional()}).optional(),timestamps:X.object({start:X.number().optional(),end:X.number().optional()}).optional(),party:X.object({id:X.string().optional(),size:X.array(X.number()).min(2).max(2).optional(),privacy:X.number().optional()}).optional(),secrets:X.object({match:X.string().optional(),join:X.string().optional()}).optional(),sync_id:X.string().optional(),created_at:X.number().optional(),instance:X.boolean().optional(),flags:X.number().optional(),metadata:X.object({}).optional(),platform:X.string().optional(),supported_platforms:X.array(X.string()).optional(),buttons:X.array(X.string()).optional(),hangStatus:X.string().optional()}),X.null()]).optional()}).optional()}))}).describe(`Response for "GET_RELATIONSHIPS" Command`),qM=X.object({user_id:X.string(),content:X.string().min(0).max(1024).optional()}).describe(`Request for "INVITE_USER_EMBEDDED" Command`),JM=X.object({id:X.string().max(64)}).describe(`Request for "GET_USER" Command`),YM=X.union([X.object({id:X.string(),username:X.string(),global_name:X.union([X.string(),X.null()]).optional(),discriminator:X.string(),avatar:X.union([X.string(),X.null()]).optional(),flags:X.number(),bot:X.boolean(),avatar_decoration_data:X.union([X.object({asset:X.union([X.string(),X.null()]).optional(),skuId:X.string().optional(),expiresAt:X.number().optional()}),X.null()]).optional(),premium_type:X.union([X.number(),X.null()]).optional()}),X.null()]),XM=X.object({quest_id:X.string()}).describe(`Request for "GET_QUEST_ENROLLMENT_STATUS" Command`),ZM=X.object({quest_id:X.string(),is_enrolled:X.boolean(),enrolled_at:X.union([X.string(),X.null()]).optional()}).describe(`Response for "GET_QUEST_ENROLLMENT_STATUS" Command`),QM=X.object({quest_id:X.string()}).describe(`Request for "QUEST_START_TIMER" Command`),$M=X.object({success:X.boolean()}).describe(`Response for "QUEST_START_TIMER" Command`),eN=X.object({quest_id:X.string(),enrolled_at:X.union([X.string(),X.null()]).optional(),completed_at:X.union([X.string(),X.null()]).optional(),external_cta_url:X.string()}).describe(`Response for "GET_QUEST" Command`),tN=X.object({ticket:X.string()}).describe(`Response for "REQUEST_PROXY_TICKET_REFRESH" Command`),nN;(function(e){e.INITIATE_IMAGE_UPLOAD=`INITIATE_IMAGE_UPLOAD`,e.OPEN_SHARE_MOMENT_DIALOG=`OPEN_SHARE_MOMENT_DIALOG`,e.AUTHENTICATE=`AUTHENTICATE`,e.GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS=`GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS`,e.SHARE_INTERACTION=`SHARE_INTERACTION`,e.SHARE_LINK=`SHARE_LINK`,e.GET_RELATIONSHIPS=`GET_RELATIONSHIPS`,e.INVITE_USER_EMBEDDED=`INVITE_USER_EMBEDDED`,e.GET_USER=`GET_USER`,e.GET_QUEST_ENROLLMENT_STATUS=`GET_QUEST_ENROLLMENT_STATUS`,e.QUEST_START_TIMER=`QUEST_START_TIMER`,e.GET_QUEST=`GET_QUEST`,e.REQUEST_PROXY_TICKET_REFRESH=`REQUEST_PROXY_TICKET_REFRESH`})(nN||={});var rN=X.object({}).optional().nullable(),iN=X.void(),aN={[nN.INITIATE_IMAGE_UPLOAD]:{request:iN,response:LM},[nN.OPEN_SHARE_MOMENT_DIALOG]:{request:RM,response:rN},[nN.AUTHENTICATE]:{request:zM,response:BM},[nN.GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS]:{request:iN,response:VM},[nN.SHARE_INTERACTION]:{request:HM,response:UM},[nN.SHARE_LINK]:{request:WM,response:GM},[nN.GET_RELATIONSHIPS]:{request:iN,response:KM},[nN.INVITE_USER_EMBEDDED]:{request:qM,response:rN},[nN.GET_USER]:{request:JM,response:YM},[nN.GET_QUEST_ENROLLMENT_STATUS]:{request:XM,response:ZM},[nN.QUEST_START_TIMER]:{request:QM,response:$M},[nN.GET_QUEST]:{request:iN,response:eN},[nN.REQUEST_PROXY_TICKET_REFRESH]:{request:iN,response:tN}},oN=t({Activity:()=>xN,Attachment:()=>AN,CertifiedDevice:()=>XN,CertifiedDeviceTypeObject:()=>YN,Channel:()=>TN,ChannelMention:()=>kN,ChannelTypesObject:()=>wN,Commands:()=>cN,DISPATCH:()=>sN,Embed:()=>LN,EmbedAuthor:()=>FN,EmbedField:()=>IN,EmbedFooter:()=>jN,EmbedProvider:()=>PN,Emoji:()=>gN,Entitlement:()=>eP,EntitlementTypesObject:()=>$N,Guild:()=>ON,GuildMember:()=>mN,GuildMemberRPC:()=>hN,Image:()=>MN,KeyTypesObject:()=>WN,LayoutMode:()=>cP,LayoutModeTypeObject:()=>sP,Message:()=>HN,MessageActivity:()=>zN,MessageApplication:()=>BN,MessageReference:()=>VN,Orientation:()=>oP,OrientationLockState:()=>nP,OrientationLockStateTypeObject:()=>tP,OrientationTypeObject:()=>aP,PermissionOverwrite:()=>CN,PermissionOverwriteTypeObject:()=>SN,PresenceUpdate:()=>EN,Reaction:()=>RN,ReceiveFramePayload:()=>lN,Relationship:()=>fN,Role:()=>DN,Scopes:()=>dN,ScopesObject:()=>uN,ShortcutKey:()=>GN,Sku:()=>QN,SkuTypeObject:()=>ZN,Status:()=>bN,StatusObject:()=>yN,ThermalState:()=>iP,ThermalStateTypeObject:()=>rP,User:()=>pN,UserVoiceState:()=>vN,Video:()=>NN,VoiceDevice:()=>UN,VoiceSettingModeTypeObject:()=>KN,VoiceSettingsIO:()=>JN,VoiceSettingsMode:()=>qN,VoiceState:()=>_N}),sN=`DISPATCH`,cN;(function(e){e.AUTHORIZE=`AUTHORIZE`,e.GET_GUILDS=`GET_GUILDS`,e.GET_GUILD=`GET_GUILD`,e.GET_CHANNEL=`GET_CHANNEL`,e.GET_CHANNELS=`GET_CHANNELS`,e.SELECT_VOICE_CHANNEL=`SELECT_VOICE_CHANNEL`,e.SELECT_TEXT_CHANNEL=`SELECT_TEXT_CHANNEL`,e.SUBSCRIBE=`SUBSCRIBE`,e.UNSUBSCRIBE=`UNSUBSCRIBE`,e.CAPTURE_SHORTCUT=`CAPTURE_SHORTCUT`,e.SET_CERTIFIED_DEVICES=`SET_CERTIFIED_DEVICES`,e.SET_ACTIVITY=`SET_ACTIVITY`,e.GET_SKUS=`GET_SKUS`,e.GET_ENTITLEMENTS=`GET_ENTITLEMENTS`,e.GET_SKUS_EMBEDDED=`GET_SKUS_EMBEDDED`,e.GET_ENTITLEMENTS_EMBEDDED=`GET_ENTITLEMENTS_EMBEDDED`,e.START_PURCHASE=`START_PURCHASE`,e.SET_CONFIG=`SET_CONFIG`,e.SEND_ANALYTICS_EVENT=`SEND_ANALYTICS_EVENT`,e.USER_SETTINGS_GET_LOCALE=`USER_SETTINGS_GET_LOCALE`,e.OPEN_EXTERNAL_LINK=`OPEN_EXTERNAL_LINK`,e.ENCOURAGE_HW_ACCELERATION=`ENCOURAGE_HW_ACCELERATION`,e.CAPTURE_LOG=`CAPTURE_LOG`,e.SET_ORIENTATION_LOCK_STATE=`SET_ORIENTATION_LOCK_STATE`,e.OPEN_INVITE_DIALOG=`OPEN_INVITE_DIALOG`,e.GET_PLATFORM_BEHAVIORS=`GET_PLATFORM_BEHAVIORS`,e.GET_CHANNEL_PERMISSIONS=`GET_CHANNEL_PERMISSIONS`,e.AUTHENTICATE=`AUTHENTICATE`,e.GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS=`GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS`,e.GET_QUEST=`GET_QUEST`,e.GET_QUEST_ENROLLMENT_STATUS=`GET_QUEST_ENROLLMENT_STATUS`,e.GET_RELATIONSHIPS=`GET_RELATIONSHIPS`,e.GET_USER=`GET_USER`,e.INITIATE_IMAGE_UPLOAD=`INITIATE_IMAGE_UPLOAD`,e.INVITE_USER_EMBEDDED=`INVITE_USER_EMBEDDED`,e.OPEN_SHARE_MOMENT_DIALOG=`OPEN_SHARE_MOMENT_DIALOG`,e.QUEST_START_TIMER=`QUEST_START_TIMER`,e.REQUEST_PROXY_TICKET_REFRESH=`REQUEST_PROXY_TICKET_REFRESH`,e.SHARE_INTERACTION=`SHARE_INTERACTION`,e.SHARE_LINK=`SHARE_LINK`})(cN||={});var lN=Y({cmd:J(),data:Fj(),evt:Nj(),nonce:J()}).passthrough(),uN=Object.assign(Object.assign({},BM.shape.scopes.element.overlayType._def.innerType.options[0].Values),{UNHANDLED:-1}),dN=FM(uN),fN=KM.shape.relationships.element,pN=Y({id:J(),username:J(),discriminator:J(),global_name:J().optional().nullable(),avatar:J().optional().nullable(),avatar_decoration_data:Y({asset:J(),sku_id:J().optional()}).nullable(),bot:kj(),flags:Ej().optional().nullable(),premium_type:Ej().optional().nullable()}),mN=Y({user:pN,nick:J().optional().nullable(),roles:Rj(J()),joined_at:J(),deaf:kj(),mute:kj()}),hN=Y({user_id:J(),nick:J().optional().nullable(),guild_id:J(),avatar:J().optional().nullable(),avatar_decoration_data:Y({asset:J(),sku_id:J().optional().nullable()}).optional().nullable(),color_string:J().optional().nullable()}),gN=Y({id:J(),name:J().optional().nullable(),roles:Rj(J()).optional().nullable(),user:pN.optional().nullable(),require_colons:kj().optional().nullable(),managed:kj().optional().nullable(),animated:kj().optional().nullable(),available:kj().optional().nullable()}),_N=Y({mute:kj(),deaf:kj(),self_mute:kj(),self_deaf:kj(),suppress:kj()}),vN=Y({mute:kj(),nick:J(),user:pN,voice_state:_N,volume:Ej()}),yN={UNHANDLED:-1,IDLE:`idle`,DND:`dnd`,ONLINE:`online`,OFFLINE:`offline`},bN=FM(yN),xN=Y({name:J(),type:Ej(),url:J().optional().nullable(),created_at:Ej().optional().nullable(),timestamps:Y({start:Ej(),end:Ej()}).partial().optional().nullable(),application_id:J().optional().nullable(),details:J().optional().nullable(),details_url:J().url().optional().nullable(),state:J().optional().nullable(),state_url:J().url().optional().nullable(),emoji:gN.optional().nullable(),party:Y({id:J().optional().nullable(),size:Rj(Ej()).optional().nullable()}).optional().nullable(),assets:Y({large_image:J().nullable(),large_text:J().nullable(),large_url:J().url().optional().nullable(),small_image:J().nullable(),small_text:J().nullable(),small_url:J().url().optional().nullable()}).partial().optional().nullable(),secrets:Y({join:J(),match:J()}).partial().optional().nullable(),instance:kj().optional().nullable(),flags:Ej().optional().nullable()}),SN={UNHANDLED:-1,ROLE:0,MEMBER:1},CN=Y({id:J(),type:FM(SN),allow:J(),deny:J()}),wN={UNHANDLED:-1,DM:1,GROUP_DM:3,GUILD_TEXT:0,GUILD_VOICE:2,GUILD_CATEGORY:4,GUILD_ANNOUNCEMENT:5,GUILD_STORE:6,ANNOUNCEMENT_THREAD:10,PUBLIC_THREAD:11,PRIVATE_THREAD:12,GUILD_STAGE_VOICE:13,GUILD_DIRECTORY:14,GUILD_FORUM:15},TN=Y({id:J(),type:FM(wN),guild_id:J().optional().nullable(),position:Ej().optional().nullable(),permission_overwrites:Rj(CN).optional().nullable(),name:J().optional().nullable(),topic:J().optional().nullable(),nsfw:kj().optional().nullable(),last_message_id:J().optional().nullable(),bitrate:Ej().optional().nullable(),user_limit:Ej().optional().nullable(),rate_limit_per_user:Ej().optional().nullable(),recipients:Rj(pN).optional().nullable(),icon:J().optional().nullable(),owner_id:J().optional().nullable(),application_id:J().optional().nullable(),parent_id:J().optional().nullable(),last_pin_timestamp:J().optional().nullable()}),EN=Y({user:pN,guild_id:J(),status:bN,activities:Rj(xN),client_status:Y({desktop:bN,mobile:bN,web:bN}).partial()}),DN=Y({id:J(),name:J(),color:Ej(),hoist:kj(),position:Ej(),permissions:J(),managed:kj(),mentionable:kj()}),ON=Y({id:J(),name:J(),owner_id:J(),icon:J().nullable(),icon_hash:J().optional().nullable(),splash:J().nullable(),discovery_splash:J().nullable(),owner:kj().optional().nullable(),permissions:J().optional().nullable(),region:J(),afk_channel_id:J().nullable(),afk_timeout:Ej(),widget_enabled:kj().optional().nullable(),widget_channel_id:J().optional().nullable(),verification_level:Ej(),default_message_notifications:Ej(),explicit_content_filter:Ej(),roles:Rj(DN),emojis:Rj(gN),features:Rj(J()),mfa_level:Ej(),application_id:J().nullable(),system_channel_id:J().nullable(),system_channel_flags:Ej(),rules_channel_id:J().nullable(),joined_at:J().optional().nullable(),large:kj().optional().nullable(),unavailable:kj().optional().nullable(),member_count:Ej().optional().nullable(),voice_states:Rj(_N).optional().nullable(),members:Rj(mN).optional().nullable(),channels:Rj(TN).optional().nullable(),presences:Rj(EN).optional().nullable(),max_presences:Ej().optional().nullable(),max_members:Ej().optional().nullable(),vanity_url_code:J().nullable(),description:J().nullable(),banner:J().nullable(),premium_tier:Ej(),premium_subscription_count:Ej().optional().nullable(),preferred_locale:J(),public_updates_channel_id:J().nullable(),max_video_channel_users:Ej().optional().nullable(),approximate_member_count:Ej().optional().nullable(),approximate_presence_count:Ej().optional().nullable()}),kN=Y({id:J(),guild_id:J(),type:Ej(),name:J()}),AN=Y({id:J(),filename:J(),size:Ej(),url:J(),proxy_url:J(),height:Ej().optional().nullable(),width:Ej().optional().nullable()}),jN=Y({text:J(),icon_url:J().optional().nullable(),proxy_icon_url:J().optional().nullable()}),MN=Y({url:J().optional().nullable(),proxy_url:J().optional().nullable(),height:Ej().optional().nullable(),width:Ej().optional().nullable()}),NN=MN.omit({proxy_url:!0}),PN=Y({name:J().optional().nullable(),url:J().optional().nullable()}),FN=Y({name:J().optional().nullable(),url:J().optional().nullable(),icon_url:J().optional().nullable(),proxy_icon_url:J().optional().nullable()}),IN=Y({name:J(),value:J(),inline:kj()}),LN=Y({title:J().optional().nullable(),type:J().optional().nullable(),description:J().optional().nullable(),url:J().optional().nullable(),timestamp:J().optional().nullable(),color:Ej().optional().nullable(),footer:jN.optional().nullable(),image:MN.optional().nullable(),thumbnail:MN.optional().nullable(),video:NN.optional().nullable(),provider:PN.optional().nullable(),author:FN.optional().nullable(),fields:Rj(IN).optional().nullable()}),RN=Y({count:Ej(),me:kj(),emoji:gN}),zN=Y({type:Ej(),party_id:J().optional().nullable()}),BN=Y({id:J(),cover_image:J().optional().nullable(),description:J(),icon:J().optional().nullable(),name:J()}),VN=Y({message_id:J().optional().nullable(),channel_id:J().optional().nullable(),guild_id:J().optional().nullable()}),HN=Y({id:J(),channel_id:J(),guild_id:J().optional().nullable(),author:pN.optional().nullable(),member:mN.optional().nullable(),content:J(),timestamp:J(),edited_timestamp:J().optional().nullable(),tts:kj(),mention_everyone:kj(),mentions:Rj(pN),mention_roles:Rj(J()),mention_channels:Rj(kN),attachments:Rj(AN),embeds:Rj(LN),reactions:Rj(RN).optional().nullable(),nonce:Bj([J(),Ej()]).optional().nullable(),pinned:kj(),webhook_id:J().optional().nullable(),type:Ej(),activity:zN.optional().nullable(),application:BN.optional().nullable(),message_reference:VN.optional().nullable(),flags:Ej().optional().nullable(),stickers:Rj(Fj()).optional().nullable(),referenced_message:Fj().optional().nullable()}),UN=Y({id:J(),name:J()}),WN={UNHANDLED:-1,KEYBOARD_KEY:0,MOUSE_BUTTON:1,KEYBOARD_MODIFIER_KEY:2,GAMEPAD_BUTTON:3},GN=Y({type:FM(WN),code:Ej(),name:J()}),KN={UNHANDLED:-1,PUSH_TO_TALK:`PUSH_TO_TALK`,VOICE_ACTIVITY:`VOICE_ACTIVITY`},qN=Y({type:FM(KN),auto_threshold:kj(),threshold:Ej(),shortcut:Rj(GN),delay:Ej()}),JN=Y({device_id:J(),volume:Ej(),available_devices:Rj(UN)}),YN={UNHANDLED:-1,AUDIO_INPUT:`AUDIO_INPUT`,AUDIO_OUTPUT:`AUDIO_OUTPUT`,VIDEO_INPUT:`VIDEO_INPUT`},XN=Y({type:FM(YN),id:J(),vendor:Y({name:J(),url:J()}),model:Y({name:J(),url:J()}),related:Rj(J()),echo_cancellation:kj().optional().nullable(),noise_suppression:kj().optional().nullable(),automatic_gain_control:kj().optional().nullable(),hardware_mute:kj().optional().nullable()}),ZN={UNHANDLED:-1,APPLICATION:1,DLC:2,CONSUMABLE:3,BUNDLE:4,SUBSCRIPTION:5},QN=Y({id:J(),name:J(),type:FM(ZN),price:Y({amount:Ej(),currency:J()}),application_id:J(),flags:Ej(),release_date:J().nullable()}),$N={UNHANDLED:-1,PURCHASE:1,PREMIUM_SUBSCRIPTION:2,DEVELOPER_GIFT:3,TEST_MODE_PURCHASE:4,FREE_PURCHASE:5,USER_GIFT:6,PREMIUM_PURCHASE:7},eP=Y({id:J(),sku_id:J(),application_id:J(),user_id:J(),gift_code_flags:Ej(),type:FM($N),gifter_user_id:J().optional().nullable(),branches:Rj(J()).optional().nullable(),starts_at:J().optional().nullable(),ends_at:J().optional().nullable(),parent_id:J().optional().nullable(),consumed:kj().optional().nullable(),deleted:kj().optional().nullable(),gift_code_batch_id:J().optional().nullable()}),tP={UNHANDLED:-1,UNLOCKED:1,PORTRAIT:2,LANDSCAPE:3},nP=FM(tP),rP={UNHANDLED:-1,NOMINAL:0,FAIR:1,SERIOUS:2,CRITICAL:3},iP=FM(rP),aP={UNHANDLED:-1,PORTRAIT:0,LANDSCAPE:1},oP=FM(aP),sP={UNHANDLED:-1,FOCUSED:0,PIP:1,GRID:2},cP=FM(sP),lP=`ERROR`,uP;(function(e){e.READY=`READY`,e.VOICE_STATE_UPDATE=`VOICE_STATE_UPDATE`,e.SPEAKING_START=`SPEAKING_START`,e.SPEAKING_STOP=`SPEAKING_STOP`,e.ACTIVITY_LAYOUT_MODE_UPDATE=`ACTIVITY_LAYOUT_MODE_UPDATE`,e.ORIENTATION_UPDATE=`ORIENTATION_UPDATE`,e.CURRENT_USER_UPDATE=`CURRENT_USER_UPDATE`,e.CURRENT_GUILD_MEMBER_UPDATE=`CURRENT_GUILD_MEMBER_UPDATE`,e.ENTITLEMENT_CREATE=`ENTITLEMENT_CREATE`,e.THERMAL_STATE_UPDATE=`THERMAL_STATE_UPDATE`,e.ACTIVITY_INSTANCE_PARTICIPANTS_UPDATE=`ACTIVITY_INSTANCE_PARTICIPANTS_UPDATE`,e.RELATIONSHIP_UPDATE=`RELATIONSHIP_UPDATE`,e.ACTIVITY_JOIN=`ACTIVITY_JOIN`,e.QUEST_ENROLLMENT_STATUS_UPDATE=`QUEST_ENROLLMENT_STATUS_UPDATE`})(uP||={});var dP=lN.extend({evt:Zj(uP),nonce:J().nullable(),cmd:Yj(sN),data:Y({}).passthrough()}),fP=lN.extend({evt:Yj(lP),data:Y({code:Ej(),message:J().optional()}).passthrough(),cmd:Zj(cN),nonce:J().nullable()}),pP=Bj([dP,dP.extend({evt:J()}),fP]);function mP(e){let t=e.evt;if(!(t in uP))throw Error(`Unrecognized event type ${e.evt}`);return hP[t].payload.parse(e)}var hP={[uP.READY]:{payload:dP.extend({evt:Yj(uP.READY),data:Y({v:Ej(),config:Y({cdn_host:J().optional(),api_endpoint:J(),environment:J()}),user:Y({id:J(),username:J(),discriminator:J(),avatar:J().optional()}).optional()})})},[uP.VOICE_STATE_UPDATE]:{payload:dP.extend({evt:Yj(uP.VOICE_STATE_UPDATE),data:vN}),subscribeArgs:Y({channel_id:J()})},[uP.SPEAKING_START]:{payload:dP.extend({evt:Yj(uP.SPEAKING_START),data:Y({lobby_id:J().optional(),channel_id:J().optional(),user_id:J()})}),subscribeArgs:Y({lobby_id:J().nullable().optional(),channel_id:J().nullable().optional()})},[uP.SPEAKING_STOP]:{payload:dP.extend({evt:Yj(uP.SPEAKING_STOP),data:Y({lobby_id:J().optional(),channel_id:J().optional(),user_id:J()})}),subscribeArgs:Y({lobby_id:J().nullable().optional(),channel_id:J().nullable().optional()})},[uP.ACTIVITY_LAYOUT_MODE_UPDATE]:{payload:dP.extend({evt:Yj(uP.ACTIVITY_LAYOUT_MODE_UPDATE),data:Y({layout_mode:FM(sP)})})},[uP.ORIENTATION_UPDATE]:{payload:dP.extend({evt:Yj(uP.ORIENTATION_UPDATE),data:Y({screen_orientation:FM(aP),orientation:Zj(NM)})})},[uP.CURRENT_USER_UPDATE]:{payload:dP.extend({evt:Yj(uP.CURRENT_USER_UPDATE),data:pN})},[uP.CURRENT_GUILD_MEMBER_UPDATE]:{payload:dP.extend({evt:Yj(uP.CURRENT_GUILD_MEMBER_UPDATE),data:hN}),subscribeArgs:Y({guild_id:J()})},[uP.ENTITLEMENT_CREATE]:{payload:dP.extend({evt:Yj(uP.ENTITLEMENT_CREATE),data:Y({entitlement:eP})})},[uP.THERMAL_STATE_UPDATE]:{payload:dP.extend({evt:Yj(uP.THERMAL_STATE_UPDATE),data:Y({thermal_state:iP})})},[uP.ACTIVITY_INSTANCE_PARTICIPANTS_UPDATE]:{payload:dP.extend({evt:Yj(uP.ACTIVITY_INSTANCE_PARTICIPANTS_UPDATE),data:Y({participants:VM.shape.participants})})},[uP.RELATIONSHIP_UPDATE]:{payload:dP.extend({evt:Yj(uP.RELATIONSHIP_UPDATE),data:fN})},[uP.ACTIVITY_JOIN]:{payload:dP.extend({evt:Yj(uP.ACTIVITY_JOIN),data:Y({applicationId:J(),secret:J()})})},[uP.QUEST_ENROLLMENT_STATUS_UPDATE]:{payload:dP.extend({evt:Yj(uP.QUEST_ENROLLMENT_STATUS_UPDATE),data:Y({quest_id:J(),is_enrolled:kj(),enrolled_at:J().date()})})}};function gP(e,t){throw t}var _P=Y({}).nullable(),vP=Y({code:J()}),yP=Y({guilds:Rj(Y({id:J(),name:J()}))}),bP=Y({id:J(),name:J(),icon_url:J().optional(),members:Rj(mN)}),xP=Y({id:J(),type:FM(wN),guild_id:J().optional().nullable(),name:J().optional().nullable(),topic:J().optional().nullable(),bitrate:Ej().optional().nullable(),user_limit:Ej().optional().nullable(),position:Ej().optional().nullable(),voice_states:Rj(vN),messages:Rj(HN)}),SP=Y({channels:Rj(TN)});xP.nullable();var CP=xP.nullable(),wP=xP.nullable();Y({input:JN,output:JN,mode:qN,automatic_gain_control:kj(),echo_cancellation:kj(),noise_suppression:kj(),qos:kj(),silence_warning:kj(),deaf:kj(),mute:kj()});var TP=Y({evt:J()}),EP=Y({shortcut:GN}),DP=xN,OP=Y({skus:Rj(QN)}),kP=Y({entitlements:Rj(eP)}),AP=Rj(eP).nullable(),jP=Y({use_interactive_pip:kj()}),MP=Y({locale:J()}),NP=Y({enabled:kj()}),PP=Y({permissions:Oj().or(J())}),FP=IM(Y({opened:kj().or(Nj())}).default({opened:null})),IP=Y({iosKeyboardResizesView:eM(kj())}),LP=lN.extend({cmd:Zj(cN),evt:Nj()});function RP({cmd:e,data:t}){switch(e){case cN.AUTHORIZE:return vP.parse(t);case cN.CAPTURE_SHORTCUT:return EP.parse(t);case cN.ENCOURAGE_HW_ACCELERATION:return NP.parse(t);case cN.GET_CHANNEL:return xP.parse(t);case cN.GET_CHANNELS:return SP.parse(t);case cN.GET_CHANNEL_PERMISSIONS:return PP.parse(t);case cN.GET_GUILD:return bP.parse(t);case cN.GET_GUILDS:return yP.parse(t);case cN.GET_PLATFORM_BEHAVIORS:return IP.parse(t);case cN.GET_CHANNEL:return xP.parse(t);case cN.SELECT_TEXT_CHANNEL:return wP.parse(t);case cN.SELECT_VOICE_CHANNEL:return CP.parse(t);case cN.SET_ACTIVITY:return DP.parse(t);case cN.GET_SKUS_EMBEDDED:return OP.parse(t);case cN.GET_ENTITLEMENTS_EMBEDDED:return kP.parse(t);case cN.SET_CONFIG:return jP.parse(t);case cN.START_PURCHASE:return AP.parse(t);case cN.SUBSCRIBE:case cN.UNSUBSCRIBE:return TP.parse(t);case cN.USER_SETTINGS_GET_LOCALE:return MP.parse(t);case cN.OPEN_EXTERNAL_LINK:return FP.parse(t);case cN.SET_ORIENTATION_LOCK_STATE:case cN.SET_CERTIFIED_DEVICES:case cN.SEND_ANALYTICS_EVENT:case cN.OPEN_INVITE_DIALOG:case cN.CAPTURE_LOG:case cN.GET_SKUS:case cN.GET_ENTITLEMENTS:return _P.parse(t);case cN.AUTHENTICATE:case cN.GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS:case cN.GET_QUEST:case cN.GET_QUEST_ENROLLMENT_STATUS:case cN.GET_RELATIONSHIPS:case cN.GET_USER:case cN.INITIATE_IMAGE_UPLOAD:case cN.INVITE_USER_EMBEDDED:case cN.OPEN_SHARE_MOMENT_DIALOG:case cN.QUEST_START_TIMER:case cN.REQUEST_PROXY_TICKET_REFRESH:case cN.SHARE_INTERACTION:case cN.SHARE_LINK:let{response:n}=aN[e];return n.parse(t);default:gP(e,Error(`Unrecognized command ${e}`))}}function zP(e){return Object.assign(Object.assign({},e),{data:RP(e)})}Y({frame_id:J(),platform:Zj(PM).optional().nullable()}),Y({v:Yj(1),encoding:Yj(`json`).optional(),client_id:J(),frame_id:J()});var BP=Y({code:Ej(),message:J().optional()}),VP=Y({evt:J().nullable(),nonce:J().nullable(),data:Fj().nullable(),cmd:J()}).passthrough();function HP(e){let t=VP.parse(e);return t.evt==null?zP(LP.passthrough().parse(t)):t.evt===`ERROR`?fP.parse(t):mP(pP.parse(t))}function UP(e,t,n,r=()=>void 0){let i=lN.extend({cmd:Yj(t),data:n});return async n=>{let a=await e({cmd:t,args:n,transfer:r(n)});return i.parse(a).data}}function WP(e,t=()=>void 0){let n=aN[e].response,r=lN.extend({cmd:Yj(e),data:n});return n=>async i=>{let a=await n({cmd:e,args:i,transfer:t(i)});return r.parse(a).data}}var GP=e=>UP(e,cN.AUTHORIZE,vP),KP=e=>UP(e,cN.CAPTURE_LOG,_P),qP=e=>UP(e,cN.ENCOURAGE_HW_ACCELERATION,NP),JP=e=>UP(e,cN.GET_CHANNEL,xP),YP=e=>UP(e,cN.GET_ENTITLEMENTS_EMBEDDED,kP),XP=e=>UP(e,cN.GET_SKUS_EMBEDDED,OP),ZP=e=>UP(e,cN.GET_CHANNEL_PERMISSIONS,PP),QP=e=>UP(e,cN.GET_PLATFORM_BEHAVIORS,IP),$P=e=>UP(e,cN.OPEN_EXTERNAL_LINK,FP),eF=e=>UP(e,cN.OPEN_INVITE_DIALOG,_P);xN.pick({state:!0,state_url:!0,details:!0,details_url:!0,timestamps:!0,assets:!0,party:!0,secrets:!0,instance:!0,type:!0}).extend({type:xN.shape.type.optional(),instance:xN.shape.instance.optional()}).nullable();var tF=e=>UP(e,cN.SET_ACTIVITY,DP),nF=e=>UP(e,cN.SET_CONFIG,jP);function rF({sendCommand:e,cmd:t,response:n,fallbackTransform:r,transferTransform:i=()=>void 0}){let a=lN.extend({cmd:Yj(t),data:n});return async n=>{try{let r=await e({cmd:t,args:n,transfer:i(n)});return a.parse(r).data}catch(o){if(o.code===MM.INVALID_PAYLOAD){let o=r(n),s=await e({cmd:t,args:o,transfer:i(o)});return a.parse(s).data}throw o}}}var iF=e=>({lock_state:e.lock_state,picture_in_picture_lock_state:e.picture_in_picture_lock_state}),aF=e=>rF({sendCommand:e,cmd:cN.SET_ORIENTATION_LOCK_STATE,response:_P,fallbackTransform:iF}),oF=e=>UP(e,cN.START_PURCHASE,AP),sF=e=>UP(e,cN.USER_SETTINGS_GET_LOCALE,MP),cF=WP(nN.AUTHENTICATE),lF=WP(nN.GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS),uF=WP(nN.GET_QUEST),dF=WP(nN.GET_QUEST_ENROLLMENT_STATUS),fF=WP(nN.GET_RELATIONSHIPS),pF=WP(nN.GET_USER),mF=WP(nN.INITIATE_IMAGE_UPLOAD),hF=WP(nN.INVITE_USER_EMBEDDED),gF=WP(nN.OPEN_SHARE_MOMENT_DIALOG),_F=WP(nN.QUEST_START_TIMER),vF=WP(nN.REQUEST_PROXY_TICKET_REFRESH),yF=WP(nN.SHARE_INTERACTION),bF=WP(nN.SHARE_LINK);function xF(e){return{authorize:GP(e),captureLog:KP(e),encourageHardwareAcceleration:qP(e),getChannel:JP(e),getChannelPermissions:ZP(e),getEntitlements:YP(e),getPlatformBehaviors:QP(e),getSkus:XP(e),openExternalLink:$P(e),openInviteDialog:eF(e),setActivity:tF(e),setConfig:nF(e),setOrientationLockState:aF(e),startPurchase:oF(e),userSettingsGetLocale:sF(e),getInstanceConnectedParticipants:lF(e),authenticate:cF(e),getActivityInstanceConnectedParticipants:lF(e),getQuest:uF(e),getQuestEnrollmentStatus:dF(e),getRelationships:fF(e),getUser:pF(e),initiateImageUpload:mF(e),inviteUserEmbedded:hF(e),openShareMomentDialog:gF(e),questStartTimer:_F(e),requestProxyTicketRefresh:vF(e),shareInteraction:yF(e),shareLink:bF(e)}}var SF=class extends Error{constructor(e,t=``){super(t),this.code=e,this.message=t,this.name=`Discord SDK Error`}};function CF(){return{disableConsoleLogOverride:!1}}var wF=[`log`,`warn`,`debug`,`info`,`error`];function TF(e,t,n){let r=e[t],i=e;r&&(e[t]=function(){let e=[].slice.call(arguments);n(t,``+e.join(` `)),r.apply(i,e)})}var EF=`2.5.0`,DF={randomUUID:typeof crypto<`u`&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},OF,kF=new Uint8Array(16);function AF(){if(!OF){if(typeof crypto>`u`||!crypto.getRandomValues)throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);OF=crypto.getRandomValues.bind(crypto)}return OF(kF)}var jF=[];for(let e=0;e<256;++e)jF.push((e+256).toString(16).slice(1));function MF(e,t=0){return(jF[e[t+0]]+jF[e[t+1]]+jF[e[t+2]]+jF[e[t+3]]+`-`+jF[e[t+4]]+jF[e[t+5]]+`-`+jF[e[t+6]]+jF[e[t+7]]+`-`+jF[e[t+8]]+jF[e[t+9]]+`-`+jF[e[t+10]]+jF[e[t+11]]+jF[e[t+12]]+jF[e[t+13]]+jF[e[t+14]]+jF[e[t+15]]).toLowerCase()}function NF(e,t,n){if(DF.randomUUID&&!t&&!e)return DF.randomUUID();e||={};let r=e.random??e.rng?.()??AF();if(r.length<16)throw Error(`Random bytes length must be >= 16`);return r[6]=r[6]&15|64,r[8]=r[8]&63|128,MF(r)}var PF;(function(e){e[e.HANDSHAKE=0]=`HANDSHAKE`,e[e.FRAME=1]=`FRAME`,e[e.CLOSE=2]=`CLOSE`,e[e.HELLO=3]=`HELLO`})(PF||={});var FF=new Set(IF());function IF(){return typeof window>`u`?[]:[window.location.origin,`https://discord.com`,`https://discordapp.com`,`https://ptb.discord.com`,`https://ptb.discordapp.com`,`https://canary.discord.com`,`https://canary.discordapp.com`,`https://staging.discord.co`,`http://localhost:3333`,`https://pax.discord.com`,`null`]}function LF(){return[window.parent.opener??window.parent,document.referrer?document.referrer:`*`]}var RF=class{getTransfer(e){switch(e.cmd){case cN.SUBSCRIBE:case cN.UNSUBSCRIBE:return;default:return e.transfer??void 0}}constructor(e,t){if(this.sdkVersion=EF,this.mobileAppVersion=null,this.source=null,this.sourceOrigin=``,this.eventBus=new Vk,this.pendingCommands=new Map,this.sendCommand=e=>{var t;if(this.source==null)throw Error(`Attempting to send message before initialization`);let n=NF();return(t=this.source)==null||t.postMessage([PF.FRAME,Object.assign(Object.assign({},e),{nonce:n})],this.sourceOrigin,this.getTransfer(e)),new Promise((e,t)=>{this.pendingCommands.set(n,{resolve:e,reject:t})})},this.commands=xF(this.sendCommand),this.handleMessage=e=>{if(!FF.has(e.origin))return;let t=e.data;if(!Array.isArray(t))return;let[n,r]=t;switch(n){case PF.HELLO:return;case PF.CLOSE:return this.handleClose(r);case PF.HANDSHAKE:return this.handleHandshake();case PF.FRAME:return this.handleFrame(r);default:throw Error(`Invalid message format`)}},this.isReady=!1,this.clientId=e,this.configuration=t??CF(),typeof window<`u`&&window.addEventListener(`message`,this.handleMessage),typeof window>`u`){this.frameId=``,this.instanceId=``,this.customId=null,this.referrerId=null,this.platform=PM.DESKTOP,this.guildId=null,this.channelId=null,this.locationId=null;return}let n=new URLSearchParams(this._getSearch()),r=n.get(`frame_id`);if(!r)throw Error(`frame_id query param is not defined`);this.frameId=r;let i=n.get(`instance_id`);if(!i)throw Error(`instance_id query param is not defined`);this.instanceId=i;let a=n.get(`platform`);if(!a)throw Error(`platform query param is not defined`);if(a!==PM.DESKTOP&&a!==PM.MOBILE)throw Error(`Invalid query param "platform" of "${a}". Valid values are "${PM.DESKTOP}" or "${PM.MOBILE}"`);this.platform=a,this.customId=n.get(`custom_id`),this.referrerId=n.get(`referrer_id`),this.guildId=n.get(`guild_id`),this.channelId=n.get(`channel_id`),this.locationId=n.get(`location_id`),this.mobileAppVersion=n.get(`mobile_app_version`),[this.source,this.sourceOrigin]=LF(),this.addOnReadyListener(),this.handshake()}close(e,t){var n;window.removeEventListener(`message`,this.handleMessage);let r=NF();(n=this.source)==null||n.postMessage([PF.CLOSE,{code:e,message:t,nonce:r}],this.sourceOrigin)}async subscribe(e,t,...n){let[r]=n,i=this.eventBus.listenerCount(e),a=this.eventBus.on(e,t);return Object.values(uP).includes(e)&&e!==uP.READY&&i===0&&await this.sendCommand({cmd:cN.SUBSCRIBE,args:r,evt:e}),a}async unsubscribe(e,t,...n){let[r]=n;return e!==uP.READY&&this.eventBus.listenerCount(e)===1&&await this.sendCommand({cmd:cN.UNSUBSCRIBE,evt:e,args:r}),this.eventBus.off(e,t)}async ready(){this.isReady||await new Promise(e=>{this.eventBus.once(uP.READY,e)})}parseMajorMobileVersion(){if(this.mobileAppVersion&&this.mobileAppVersion.includes(`.`))try{return parseInt(this.mobileAppVersion.split(`.`)[0])}catch{return-1}return-1}handshake(){var e;let t={v:1,encoding:`json`,client_id:this.clientId,frame_id:this.frameId},n=this.parseMajorMobileVersion();(this.platform===PM.DESKTOP||n>=250)&&(t.sdk_version=this.sdkVersion),(e=this.source)==null||e.postMessage([PF.HANDSHAKE,t],this.sourceOrigin)}addOnReadyListener(){this.eventBus.once(uP.READY,()=>{this.overrideConsoleLogging(),this.isReady=!0})}overrideConsoleLogging(){if(this.configuration.disableConsoleLogOverride)return;let e=(e,t)=>{this.commands.captureLog({level:e,message:t})};wF.forEach(t=>{TF(console,t,e)})}handleClose(e){BP.parse(e)}handleHandshake(){}handleFrame(e){var t,n;let r;try{r=HP(e)}catch(t){console.error(`Failed to parse`,e),console.error(t);return}if(r.cmd===`DISPATCH`)this.eventBus.emit(r.evt,r.data);else{if(r.evt===`ERROR`){if(r.nonce!=null){(t=this.pendingCommands.get(r.nonce))==null||t.reject(r.data),this.pendingCommands.delete(r.nonce);return}this.eventBus.emit(`error`,new SF(r.data.code,r.data.message))}if(r.nonce==null){console.error(`Missing nonce`,e);return}(n=this.pendingCommands.get(r.nonce))==null||n.resolve(r),this.pendingCommands.delete(r.nonce)}}_getSearch(){return typeof window>`u`?``:window.location.search}},zF=1e9,BF={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:`2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286`},VF=!0,HF=`[DecimalError] `,UF=HF+`Invalid argument: `,WF=HF+`Exponent out of range: `,GF=Math.floor,KF=Math.pow,qF=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,JF,YF=1e7,XF=7,ZF=9007199254740991,QF=GF(ZF/XF),Z={};Z.absoluteValue=Z.abs=function(){var e=new this.constructor(this);return e.s&&=1,e},Z.comparedTo=Z.cmp=function(e){var t,n,r,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(r=a.d.length,i=e.d.length,t=0,n=re.d[t]^a.s<0?1:-1;return r===i?0:r>i^a.s<0?1:-1},Z.decimalPlaces=Z.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*XF;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n},Z.dividedBy=Z.div=function(e){return nI(this,new this.constructor(e))},Z.dividedToIntegerBy=Z.idiv=function(e){var t=this,n=t.constructor;return lI(nI(t,new n(e),0,1),n.precision)},Z.equals=Z.eq=function(e){return!this.cmp(e)},Z.exponent=function(){return iI(this)},Z.greaterThan=Z.gt=function(e){return this.cmp(e)>0},Z.greaterThanOrEqualTo=Z.gte=function(e){return this.cmp(e)>=0},Z.isInteger=Z.isint=function(){return this.e>this.d.length-2},Z.isNegative=Z.isneg=function(){return this.s<0},Z.isPositive=Z.ispos=function(){return this.s>0},Z.isZero=function(){return this.s===0},Z.lessThan=Z.lt=function(e){return this.cmp(e)<0},Z.lessThanOrEqualTo=Z.lte=function(e){return this.cmp(e)<1},Z.logarithm=Z.log=function(e){var t,n=this,r=n.constructor,i=r.precision,a=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(JF))throw Error(HF+`NaN`);if(n.s<1)throw Error(HF+(n.s?`NaN`:`-Infinity`));return n.eq(JF)?new r(0):(VF=!1,t=nI(sI(n,a),sI(e,a),a),VF=!0,lI(t,i))},Z.minus=Z.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?uI(t,e):$F(t,(e.s=-e.s,e))},Z.modulo=Z.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(HF+`NaN`);return n.s?(VF=!1,t=nI(n,e,0,1).times(e),VF=!0,n.minus(t)):lI(new r(n),i)},Z.naturalExponential=Z.exp=function(){return rI(this)},Z.naturalLogarithm=Z.ln=function(){return sI(this)},Z.negated=Z.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},Z.plus=Z.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?$F(t,e):uI(t,(e.s=-e.s,e))},Z.precision=Z.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(UF+e);if(t=iI(i)+1,r=i.d.length-1,n=r*XF+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},Z.squareRoot=Z.sqrt=function(){var e,t,n,r,i,a,o,s=this,c=s.constructor;if(s.s<1){if(!s.s)return new c(0);throw Error(HF+`NaN`)}for(e=iI(s),VF=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=tI(s.d),(t.length+e)%2==0&&(t+=`0`),i=Math.sqrt(t),e=GF((e+1)/2)-(e<0||e%2),i==1/0?t=`5e`+e:(t=i.toExponential(),t=t.slice(0,t.indexOf(`e`)+1)+e),r=new c(t)):r=new c(i.toString()),n=c.precision,i=o=n+3;;)if(a=r,r=a.plus(nI(s,a,o+2)).times(.5),tI(a.d).slice(0,o)===(t=tI(r.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t==`4999`){if(lI(a,n+1,0),a.times(a).eq(s)){r=a;break}}else if(t!=`9999`)break;o+=4}return VF=!0,lI(r,n)},Z.times=Z.mul=function(e){var t,n,r,i,a,o,s,c,l,u=this,d=u.constructor,f=u.d,p=(e=new d(e)).d;if(!u.s||!e.s)return new d(0);for(e.s*=u.s,n=u.e+e.e,c=f.length,l=p.length,c=0;){for(t=0,i=c+r;i>r;)s=a[i]+p[r]*f[i-r-1]+t,a[i--]=s%YF|0,t=s/YF|0;a[i]=(a[i]+t)%YF|0}for(;!a[--o];)a.pop();return t?++n:a.shift(),e.d=a,e.e=n,VF?lI(e,d.precision):e},Z.toDecimalPlaces=Z.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(eI(e,0,zF),t===void 0?t=r.rounding:eI(t,0,8),lI(n,e+iI(n)+1,t))},Z.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=dI(r,!0):(eI(e,0,zF),t===void 0?t=i.rounding:eI(t,0,8),r=lI(new i(r),e+1,t),n=dI(r,!0,e+1)),n},Z.toFixed=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?dI(i):(eI(e,0,zF),t===void 0?t=a.rounding:eI(t,0,8),r=lI(new a(i),e+iI(i)+1,t),n=dI(r.abs(),!1,e+iI(r)+1),i.isneg()&&!i.isZero()?`-`+n:n)},Z.toInteger=Z.toint=function(){var e=this,t=e.constructor;return lI(new t(e),iI(e)+1,t.rounding)},Z.toNumber=function(){return+this},Z.toPower=Z.pow=function(e){var t,n,r,i,a,o,s=this,c=s.constructor,l=12,u=+(e=new c(e));if(!e.s)return new c(JF);if(s=new c(s),!s.s){if(e.s<1)throw Error(HF+`Infinity`);return s}if(s.eq(JF))return s;if(r=c.precision,e.eq(JF))return lI(s,r);if(t=e.e,n=e.d.length-1,o=t>=n,a=s.s,!o){if(a<0)throw Error(HF+`NaN`)}else if((n=u<0?-u:u)<=ZF){for(i=new c(JF),t=Math.ceil(r/XF+4),VF=!1;n%2&&(i=i.times(s),fI(i.d,t)),n=GF(n/2),n!==0;)s=s.times(s),fI(s.d,t);return VF=!0,e.s<0?new c(JF).div(i):lI(i,r)}return a=a<0&&e.d[Math.max(t,n)]&1?-1:1,s.s=1,VF=!1,i=e.times(sI(s,r+l)),VF=!0,i=rI(i),i.s=a,i},Z.toPrecision=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?(n=iI(i),r=dI(i,n<=a.toExpNeg||n>=a.toExpPos)):(eI(e,1,zF),t===void 0?t=a.rounding:eI(t,0,8),i=lI(new a(i),e,t),n=iI(i),r=dI(i,e<=n||n<=a.toExpNeg,e)),r},Z.toSignificantDigits=Z.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(eI(e,1,zF),t===void 0?t=r.rounding:eI(t,0,8)),lI(new r(n),e,t)},Z.toString=Z.valueOf=Z.val=Z.toJSON=Z[Symbol.for(`nodejs.util.inspect.custom`)]=function(){var e=this,t=iI(e),n=e.constructor;return dI(e,t<=n.toExpNeg||t>=n.toExpPos)};function $F(e,t){var n,r,i,a,o,s,c,l,u=e.constructor,d=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),VF?lI(t,d):t;if(c=e.d,l=t.d,o=e.e,i=t.e,c=c.slice(),a=o-i,a){for(a<0?(r=c,a=-a,s=l.length):(r=l,i=o,s=c.length),o=Math.ceil(d/XF),s=o>s?o+1:s+1,a>s&&(a=s,r.length=1),r.reverse();a--;)r.push(0);r.reverse()}for(s=c.length,a=l.length,s-a<0&&(a=s,r=l,l=c,c=r),n=0;a;)n=(c[--a]=c[a]+l[a]+n)/YF|0,c[a]%=YF;for(n&&(c.unshift(n),++i),s=c.length;c[--s]==0;)c.pop();return t.d=c,t.e=i,VF?lI(t,d):t}function eI(e,t,n){if(e!==~~e||en)throw Error(UF+e)}function tI(e){var t,n,r,i=e.length-1,a=``,o=e[0];if(i>0){for(a+=o,t=1;tr?1:-1;else for(i=a=0;it[i]?1:-1;break}return a}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=+(e[n]1;)e.shift()}return function(r,i,a,o){var s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T=r.constructor,E=r.s==i.s?1:-1,D=r.d,O=i.d;if(!r.s)return new T(r);if(!i.s)throw Error(HF+`Division by zero`);for(c=r.e-i.e,C=O.length,x=D.length,p=new T(E),m=p.d=[],l=0;O[l]==(D[l]||0);)++l;if(O[l]>(D[l]||0)&&--c,v=a==null?a=T.precision:o?a+(iI(r)-iI(i))+1:a,v<0)return new T(0);if(v=v/XF+2|0,l=0,C==1)for(u=0,O=O[0],v++;(l1&&(O=e(O,u),D=e(D,u),C=O.length,x=D.length),b=C,h=D.slice(0,C),g=h.length;g=YF/2&&++S;do u=0,s=t(O,h,C,g),s<0?(_=h[0],C!=g&&(_=_*YF+(h[1]||0)),u=_/S|0,u>1?(u>=YF&&(u=YF-1),d=e(O,u),f=d.length,g=h.length,s=t(d,h,f,g),s==1&&(u--,n(d,C16)throw Error(WF+iI(e));if(!e.s)return new u(JF);for(t==null?(VF=!1,s=d):s=t,o=new u(.03125);e.abs().gte(.1);)e=e.times(o),l+=5;for(r=Math.log(KF(2,l))/Math.LN10*2+5|0,s+=r,n=i=a=new u(JF),u.precision=s;;){if(i=lI(i.times(e),s),n=n.times(++c),o=a.plus(nI(i,n,s)),tI(o.d).slice(0,s)===tI(a.d).slice(0,s)){for(;l--;)a=lI(a.times(a),s);return u.precision=d,t==null?(VF=!0,lI(a,d)):a}a=o}}function iI(e){for(var t=e.e*XF,n=e.d[0];n>=10;n/=10)t++;return t}function aI(e,t,n){if(t>e.LN10.sd())throw VF=!0,n&&(e.precision=n),Error(HF+`LN10 precision limit exceeded`);return lI(new e(e.LN10),t)}function oI(e){for(var t=``;e--;)t+=`0`;return t}function sI(e,t){var n,r,i,a,o,s,c,l,u,d=1,f=10,p=e,m=p.d,h=p.constructor,g=h.precision;if(p.s<1)throw Error(HF+(p.s?`NaN`:`-Infinity`));if(p.eq(JF))return new h(0);if(t==null?(VF=!1,l=g):l=t,p.eq(10))return t??(VF=!0),aI(h,l);if(l+=f,h.precision=l,n=tI(m),r=n.charAt(0),a=iI(p),Math.abs(a)<0x5543df729c000){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)p=p.times(e),n=tI(p.d),r=n.charAt(0),d++;a=iI(p),r>1?(p=new h(`0.`+n),a++):p=new h(r+`.`+n.slice(1))}else return c=aI(h,l+2,g).times(a+``),p=sI(new h(r+`.`+n.slice(1)),l-f).plus(c),h.precision=g,t==null?(VF=!0,lI(p,g)):p;for(s=o=p=nI(p.minus(JF),p.plus(JF),l),u=lI(p.times(p),l),i=3;;){if(o=lI(o.times(u),l),c=s.plus(nI(o,new h(i),l)),tI(c.d).slice(0,l)===tI(s.d).slice(0,l))return s=s.times(2),a!==0&&(s=s.plus(aI(h,l+2,g).times(a+``))),s=nI(s,new h(d),l),h.precision=g,t==null?(VF=!0,lI(s,g)):s;s=c,i+=2}}function cI(e,t){var n,r,i;for((n=t.indexOf(`.`))>-1&&(t=t.replace(`.`,``)),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=GF(n/XF),e.d=[],r=(n+1)%XF,n<0&&(r+=XF),rQF||e.e<-QF))throw Error(WF+n)}else e.s=0,e.e=0,e.d=[0];return e}function lI(e,t,n){var r,i,a,o,s,c,l,u,d=e.d;for(o=1,a=d[0];a>=10;a/=10)o++;if(r=t-o,r<0)r+=XF,i=t,l=d[u=0];else{if(u=Math.ceil((r+1)/XF),a=d.length,u>=a)return e;for(l=a=d[u],o=1;a>=10;a/=10)o++;r%=XF,i=r-XF+o}if(n!==void 0&&(a=KF(10,o-i-1),s=l/a%10|0,c=t<0||d[u+1]!==void 0||l%a,c=n<4?(s||c)&&(n==0||n==(e.s<0?3:2)):s>5||s==5&&(n==4||c||n==6&&(r>0?i>0?l/KF(10,o-i):0:d[u-1])%10&1||n==(e.s<0?8:7))),t<1||!d[0])return c?(a=iI(e),d.length=1,t=t-a-1,d[0]=KF(10,(XF-t%XF)%XF),e.e=GF(-t/XF)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(r==0?(d.length=u,a=1,u--):(d.length=u+1,a=KF(10,XF-r),d[u]=i>0?(l/KF(10,o-i)%KF(10,i)|0)*a:0),c)for(;;)if(u==0){(d[0]+=a)==YF&&(d[0]=1,++e.e);break}else{if(d[u]+=a,d[u]!=YF)break;d[u--]=0,a=1}for(r=d.length;d[--r]===0;)d.pop();if(VF&&(e.e>QF||e.e<-QF))throw Error(WF+iI(e));return e}function uI(e,t){var n,r,i,a,o,s,c,l,u,d,f=e.constructor,p=f.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new f(e),VF?lI(t,p):t;if(c=e.d,d=t.d,r=t.e,l=e.e,c=c.slice(),o=l-r,o){for(u=o<0,u?(n=c,o=-o,s=d.length):(n=d,r=l,s=c.length),i=Math.max(Math.ceil(p/XF),s)+2,o>i&&(o=i,n.length=1),n.reverse(),i=o;i--;)n.push(0);n.reverse()}else{for(i=c.length,s=d.length,u=i0;--i)c[s++]=0;for(i=d.length;i>o;){if(c[--i]0?a=a.charAt(0)+`.`+a.slice(1)+oI(r):o>1&&(a=a.charAt(0)+`.`+a.slice(1)),a=a+(i<0?`e`:`e+`)+i):i<0?(a=`0.`+oI(-i-1)+a,n&&(r=n-o)>0&&(a+=oI(r))):i>=o?(a+=oI(i+1-o),n&&(r=n-i-1)>0&&(a=a+`.`+oI(r))):((r=i+1)0&&(i+1===o&&(a+=`.`),a+=oI(r))),e.s<0?`-`+a:a}function fI(e,t){if(e.length>t)return e.length=t,!0}function pI(e){var t,n,r;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i)t.s=e.s,t.e=e.e,t.d=(e=e.d)?e.slice():e;else{if(typeof e==`number`){if(e*0!=0)throw Error(UF+e);if(e>0)t.s=1;else if(e<0)e=-e,t.s=-1;else{t.s=0,t.e=0,t.d=[0];return}if(e===~~e&&e<1e7){t.e=0,t.d=[e];return}return cI(t,e.toString())}if(typeof e!=`string`)throw Error(UF+e);if(e.charCodeAt(0)===45?(e=e.slice(1),t.s=-1):t.s=1,qF.test(e))cI(t,e);else throw Error(UF+e)}}if(i.prototype=Z,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=pI,i.config=i.set=mI,e===void 0&&(e={}),e)for(r=[`precision`,`rounding`,`toExpNeg`,`toExpPos`,`LN10`],t=0;t=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(UF+n+`: `+r)}if((r=e[n=`LN10`])!==void 0){if(r==Math.LN10)this[n]=new this(r);else throw Error(UF+n+`: `+r)}return this}JF=new(pI(BF))(1);var Q;(function(e){e.AED=`aed`,e.AFN=`afn`,e.ALL=`all`,e.AMD=`amd`,e.ANG=`ang`,e.AOA=`aoa`,e.ARS=`ars`,e.AUD=`aud`,e.AWG=`awg`,e.AZN=`azn`,e.BAM=`bam`,e.BBD=`bbd`,e.BDT=`bdt`,e.BGN=`bgn`,e.BHD=`bhd`,e.BIF=`bif`,e.BMD=`bmd`,e.BND=`bnd`,e.BOB=`bob`,e.BOV=`bov`,e.BRL=`brl`,e.BSD=`bsd`,e.BTN=`btn`,e.BWP=`bwp`,e.BYN=`byn`,e.BYR=`byr`,e.BZD=`bzd`,e.CAD=`cad`,e.CDF=`cdf`,e.CHE=`che`,e.CHF=`chf`,e.CHW=`chw`,e.CLF=`clf`,e.CLP=`clp`,e.CNY=`cny`,e.COP=`cop`,e.COU=`cou`,e.CRC=`crc`,e.CUC=`cuc`,e.CUP=`cup`,e.CVE=`cve`,e.CZK=`czk`,e.DJF=`djf`,e.DKK=`dkk`,e.DOP=`dop`,e.DZD=`dzd`,e.EGP=`egp`,e.ERN=`ern`,e.ETB=`etb`,e.EUR=`eur`,e.FJD=`fjd`,e.FKP=`fkp`,e.GBP=`gbp`,e.GEL=`gel`,e.GHS=`ghs`,e.GIP=`gip`,e.GMD=`gmd`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Q.LTL,Q.LVL,Q.LYD,Q.MAD,Q.MDL,Q.MGA,Q.MKD,Q.MMK,Q.MNT,Q.MOP,Q.MRO,Q.MUR,Q.MVR,Q.MWK,Q.MXN,Q.MXV,Q.MYR,Q.MZN,Q.NAD,Q.NGN,Q.NIO,Q.NOK,Q.NPR,Q.NZD,Q.OMR,Q.PAB,Q.PEN,Q.PGK,Q.PHP,Q.PKR,Q.PLN,Q.PYG,Q.QAR,Q.RON,Q.RSD,Q.RUB,Q.RWF,Q.SAR,Q.SBD,Q.SCR,Q.SDG,Q.SEK,Q.SGD,Q.SHP,Q.SLL,Q.SOS,Q.SRD,Q.SSP,Q.STD,Q.SVC,Q.SYP,Q.SZL,Q.THB,Q.TJS,Q.TMT,Q.TND,Q.TOP,Q.TRY,Q.TTD,Q.TWD,Q.TZS,Q.UAH,Q.UGX,Q.USD,Q.USN,Q.USS,Q.UYI,Q.UYU,Q.UZS,Q.VEF,Q.VND,Q.VUV,Q.WST,Q.XAF,Q.XAG,Q.XAU,Q.XBA,Q.XBB,Q.XBC,Q.XBD,Q.XCD,Q.XDR,Q.XFU,Q.XOF,Q.XPD,Q.XPF,Q.XPT,Q.XSU,Q.XTS,Q.XUA,Q.YER,Q.ZAR,Q.ZMW,Q.ZWL;var hI={exports:{}};hI.exports;var gI;function _I(){return gI||(gI=1,(function(e,t){var n=`__lodash_hash_undefined__`,r=9007199254740991,i=`[object Arguments]`,a=`[object Array]`,o=`[object Boolean]`,s=`[object Date]`,c=`[object Error]`,l=`[object Function]`,u=`[object Map]`,d=`[object Number]`,f=`[object Object]`,p=`[object Promise]`,m=`[object RegExp]`,h=`[object Set]`,g=`[object String]`,_=`[object Symbol]`,v=`[object WeakMap]`,y=`[object ArrayBuffer]`,b=`[object DataView]`,x=`[object Float32Array]`,S=`[object Float64Array]`,C=`[object Int8Array]`,w=`[object Int16Array]`,T=`[object Int32Array]`,E=`[object Uint8Array]`,D=`[object Uint8ClampedArray]`,O=`[object Uint16Array]`,k=`[object Uint32Array]`,A=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,j=/^\w*$/,ee=/^\./,M=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=/\\(\\)?/g,re=/^\[object .+?Constructor\]$/,ie=/^(?:0|[1-9]\d*)$/,ae={};ae[x]=ae[S]=ae[C]=ae[w]=ae[T]=ae[E]=ae[D]=ae[O]=ae[k]=!0,ae[i]=ae[a]=ae[y]=ae[o]=ae[b]=ae[s]=ae[c]=ae[l]=ae[u]=ae[d]=ae[f]=ae[m]=ae[h]=ae[g]=ae[v]=!1;var oe=typeof Ik==`object`&&Ik&&Ik.Object===Object&&Ik,se=typeof self==`object`&&self&&self.Object===Object&&self,ce=oe||se||globalThis,le=t&&!t.nodeType&&t,ue=le&&e&&!e.nodeType&&e,de=ue&&ue.exports===le&&oe.process,fe=function(){try{return de&&de.binding(`util`)}catch{}}(),pe=fe&&fe.isTypedArray;function me(e,t){for(var n=-1,r=e?e.length:0;++n-1}function st(e,t){var n=this.__data__,r=wt(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}nt.prototype.clear=rt,nt.prototype.delete=it,nt.prototype.get=at,nt.prototype.has=ot,nt.prototype.set=st;function ct(e){var t=-1,n=e?e.length:0;for(this.clear();++ts))return!1;var l=a.get(e);if(l&&a.get(t))return l==t;var u=-1,d=!0,f=i&1?new mt:void 0;for(a.set(e,t),a.set(t,e);++u-1&&e%1==0&&e-1&&e%1==0&&e<=r}function _n(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function vn(e){return!!e&&typeof e==`object`}function yn(e){return typeof e==`symbol`||vn(e)&&Oe.call(e)==_}var bn=pe?ve(pe):Ft;function xn(e){return e==null?``:Vt(e)}function Sn(e,t,n){var r=e==null?void 0:Ot(e,t);return r===void 0?n:r}function Cn(e,t){return e!=null&&Zt(e,t,At)}function wn(e){return pn(e)?Ct(e):Lt(e)}function Tn(e,t,n){var r=fn(e)||bn(e);if(t=It(t),n==null){if(r||_n(e)){var i=e.constructor;n=r?fn(e)?new i:[]:hn(i)?Tt(Me(e)):{}}else n={}}return(r?me:Dt)(e,function(e,r,i){return t(n,e,r,i)}),n}function En(e){return e}function Dn(e){return $t(e)?ge(sn(e)):Bt(e)}e.exports=Tn})(hI,hI.exports)),hI.exports}_I();var{Commands:vI}=oN,yI=[`identify`,`guilds.members.read`];function bI(e,t){if(e instanceof kk)return e;if(typeof e==`object`&&e&&`code`in e){let n=e.code,r=Object.values(MM).filter(e=>typeof e==`number`);if(typeof n==`number`&&r.includes(n))return new kk(`${t}_${n}`)}return new kk(t)}var xI=15e3,SI=12e4,CI=15e3;function wI(e=window.location.search){let t=new URLSearchParams(e),n=t.getAll(`frame_id`),r=t.getAll(`platform`);if(n.length!==1||n[0]===void 0||n[0].length===0||n[0].length>255||r.length!==1||![`desktop`,`mobile`].includes(r[0]??``))throw new kk(`invalid_launch`)}async function TI(e,t,n,r,i){let a=null,o=new Promise((e,n)=>{t!==void 0&&(a=()=>n(new kk(`cancelled`)),t.addEventListener(`abort`,a,{once:!0}),t.aborted&&a())}),s=null,c=new Promise((e,t)=>{s=setTimeout(()=>t(new kk(r)),i)}),l=Promise.resolve().then(()=>{if(t?.aborted)throw new kk(`cancelled`);return e()}).catch(e=>{throw bI(e,n)});try{return await Promise.race([l,o,c])}finally{s!==null&&clearTimeout(s),t!==void 0&&a!==null&&t.removeEventListener(`abort`,a)}}var EI=class{makeSDK;sdk=null;authenticated=!1;closed=!1;constructor(e=e=>new RF(e)){this.makeSDK=e}async authorize(e){let t=jk();wI();let n=await Nk(t,e),r=this.open(n.client_id),i=()=>{if(e?.aborted)throw new kk(`cancelled`)};try{if(i(),await TI(()=>r.ready(),e,`sdk_ready_failed`,`sdk_ready_timeout`,xI),i(),r.instanceId!==t)throw new kk(`instance_mismatch`);let a=await TI(()=>r.commands.authorize({client_id:n.client_id,response_type:`code`,state:n.state,prompt:`none`,scope:[...yI]}),e,`authorize_failed`,`authorize_timeout`,SI);i();let o=await Pk(a.code,n.state,e);if(i(),!this.authenticated){if(await TI(()=>r.commands.authenticate({access_token:o.access_token}),e,`sdk_authenticate_failed`,`sdk_authenticate_timeout`,CI)==null)throw new kk(`sdk_authenticate_failed`);this.authenticated=!0,i()}let s=o.ticket;return{sdk:r,bootstrap:n,player:o.player,takeTicket:()=>{let e=s;return s=null,e},destroy:()=>{s=null}}}catch(t){throw e?.aborted?new kk(`cancelled`):new kk(bI(t,`authorization_failed`).code,!0)}}close(){if(!this.closed&&(this.closed=!0,this.sdk!==null))try{this.sdk.close(jM.CLOSE_NORMAL,`Hands session closed`)}catch{}}open(e){if(this.closed)throw new kk(`cancelled`);if(this.sdk!==null)return this.sdk;try{this.sdk=this.makeSDK(e)}catch(e){throw new kk(bI(e,`sdk_initialization_failed`).code,!0)}return this.sdk}},DI={Digit1:`corner_cut`,Numpad1:`corner_cut`,Digit2:`corner_swelling`,Numpad2:`corner_swelling`,Digit3:`corner_breath`,Numpad3:`corner_breath`},OI={2:`corner_cut`,3:`corner_swelling`,1:`corner_breath`},kI=[{kind:`corner_cut`,choice:`cut`,key:`1`,title:`Close the cut`},{kind:`corner_swelling`,choice:`swelling`,key:`2`,title:`Bring down the swelling`},{kind:`corner_breath`,choice:`breath`,key:`3`,title:`Catch your breath`}],AI={cut:`Your corner is closing the cut.`,swelling:`Your corner is bringing the swelling down.`,breath:`Your corner is getting your breath back.`,balanced:`Your corner did a little of everything.`},jI=1500,MI=1e3;function NI(e){return e<150?`small`:e<350?`nasty`:e<550?`deep`:`dangerous`}var PI=(e,t)=>Math.round(Math.max(0,Math.min(1,e/t))*100);function FI(e){let{trauma:t}=e,n=Math.max(t.left_cut,t.right_cut),r=Math.max(0,n-x.cut.worse_cut),i=Math.max(t.left_eye,t.right_eye),a=Math.max(0,i-x.swelling.eyes),o=i>=p?a0,swelling:Math.max(t.left_eye,t.right_eye)>0||t.swelling>0,breath:!0,balanced:!1}}function LI(){try{return[...navigator.getGamepads?.()??[]].find(e=>e!==null&&e.connected&&e.mapping===`standard`)??null}catch{return null}}var RI=class{pick;now;element;buttons=new Map;details=new Map;status;visible=!1;choice=null;pending=null;shown=null;frozen=null;available=null;padFrame=0;padPrevious=new Set;measuredTop=null;resize=()=>{this.measuredTop=null};keydown=e=>{let t=DI[e.code];t!==void 0&&this.visible&&!e.repeat&&(e.preventDefault(),this.choose(t))};constructor(e,t,n=()=>performance.now()){this.pick=t,this.now=n;let r=document.createElement(`section`);r.className=`corner`,r.dataset.corner=``,r.hidden=!0,r.setAttribute(`aria-label`,`Instructions for your corner`);let i=document.createElement(`p`);i.className=`corner-title`,i.textContent=`YOUR CORNER`;let a=document.createElement(`div`);a.className=`corner-choices`;for(let{kind:e,key:t,title:n}of kI){let r=document.createElement(`button`);r.type=`button`,r.dataset.cornerPick=e;let i=document.createElement(`kbd`);i.textContent=t;let o=document.createElement(`strong`);o.textContent=n;let s=document.createElement(`span`);r.append(i,o,s),r.addEventListener(`click`,()=>this.choose(e)),a.append(r),this.buttons.set(e,r),this.details.set(e,s)}this.status=document.createElement(`p`),this.status.className=`corner-status`,this.status.setAttribute(`role`,`status`),r.append(i,a,this.status),e.append(r),this.element=r,window.addEventListener(`keydown`,this.keydown),window.addEventListener(`resize`,this.resize)}update(e,t,n){let r=e?.fighters.find(e=>e.player_id===t);if(!(n&&e!==null&&e.phase===`rest`&&r!==void 0)||r===void 0){this.setVisible(!1),this.choice=null,this.pending=null,this.shown=null,this.frozen=null;return}this.setVisible(!0),this.choice=r.corner_choice,(this.choice!==null||this.pending!==null&&this.now()-this.pending.at>jI)&&(this.pending=null);let i=this.choice!==null||this.pending!==null;i||(this.frozen=null);let a=i&&this.frozen!==null?this.frozen:FI(r);this.shown=a;let o=II(r);this.available=o;for(let{kind:e,choice:t}of kI){let n=this.buttons.get(e),r=this.details.get(e);r.textContent!==a[t]&&(r.textContent=a[t]),n.disabled=i||!o[t],n.toggleAttribute(`data-picked`,this.choice===t||this.pending?.kind===e)}let s=this.choice===null?this.pending===null?`Tell your corner what to work on before the bell.`:`Calling it to your corner…`:AI[this.choice];this.status.textContent!==s&&(this.status.textContent=s)}choose(e){if(!this.visible||this.choice!==null||this.pending!==null)return;let t=kI.find(t=>t.kind===e)?.choice;if(t!==void 0&&this.available?.[t]!==!1&&this.pick(e)){this.frozen=this.shown,this.pending={kind:e,at:this.now()};for(let[t,n]of this.buttons)n.disabled=!0,n.toggleAttribute(`data-picked`,t===e);this.status.textContent=`Calling it to your corner…`}}setVisible(e){if(e!==this.visible){if(this.visible=e,this.element.hidden=!e,this.measuredTop=null,this.padPrevious.clear(),e){let e=LI();for(let t of Object.keys(OI))e?.buttons[Number(t)]?.pressed===!0&&this.padPrevious.add(Number(t));this.padFrame=requestAnimationFrame(()=>this.pollPad())}else cancelAnimationFrame(this.padFrame)}}top(){if(!this.visible)return null;if(this.measuredTop===null){let e=this.element.getBoundingClientRect();if(e.height<=0)return null;this.measuredTop=e.top-(this.element.parentElement?.getBoundingClientRect().top??0)}return this.measuredTop}pollPad(){if(!this.visible)return;let e=LI();if(e!==null)for(let[t,n]of Object.entries(OI)){let r=Number(t),i=e.buttons[r]?.pressed===!0;i&&!this.padPrevious.has(r)&&this.choose(n),i?this.padPrevious.add(r):this.padPrevious.delete(r)}this.padFrame=requestAnimationFrame(()=>this.pollPad())}destroy(){this.setVisible(!1),window.removeEventListener(`keydown`,this.keydown),window.removeEventListener(`resize`,this.resize),this.element.remove()}},zI={invalid_launch:`open Hands from a Discord voice channel with Play now`,cancelled:`the session was cancelled`,authorization_failed:`Discord did not authorize the session`,authorize_failed:`Discord did not authorize the session`,authorize_timeout:`Discord took too long to authorize the session`,sdk_ready_failed:`the Discord client did not respond`,sdk_ready_timeout:`the Discord client took too long to respond`,sdk_authenticate_failed:`Discord did not confirm your identity`,sdk_authenticate_timeout:`Discord took too long to confirm your identity`,sdk_initialization_failed:`the Discord client could not start the activity`,instance_mismatch:`this window belongs to a different activity instance`,bootstrap_failed:`the Hands server could not be reached`,token_failed:`the Hands server rejected the sign-in`,invalid_bootstrap:`the Hands server sent an unexpected reply`,invalid_token_response:`the Hands server sent an unexpected reply`,ticket_unavailable:`the session ticket was already used`,protocol_error:`the server and client disagree on the protocol`,unexpected_error:`something unexpected went wrong`,authentication_timeout:`the connection took too long to authenticate`,authentication_required:`the connection was not authenticated`,invalid_ticket:`the session ticket was rejected`,invalid_request:`the server rejected the request`,invalid_input:`the server rejected an input frame`,input_queue_full:`the server could not keep up with the inputs`,rate_limited:`too many requests were sent; wait a moment`,service_busy:`the server is busy right now`,service_unavailable:`the server is unavailable right now`,upstream_unavailable:`Discord is unavailable right now`,room_closed:`the bout has already ended; use Play now to start another`,room_full:`both seats in this bout are taken`,already_in_room:`you are already in a bout in another channel`,match_not_started:`the bout has not started yet`,connection_replaced:`this seat was taken over by a newer connection`,spectator_read_only:`spectators cannot send input`,server_shutting_down:`the server is restarting`,internal_error:`the server hit an internal error`,not_in_activity:`you are not a participant of this activity`,invalid_activity:`this activity instance is not valid`,invalid_state:`the sign-in state expired; retry`,invalid_guild:`this activity belongs to another server`,persistence_failed:`the result could not be saved`,rematch_unavailable:`the ring could not be cleared for a rematch; use Play now to start another bout`,network_unavailable:`the connection to the Hands server could not be opened`,match_abandoned:`both fighters lost their connection and the bout was called off`};function BI(e){if(e===`client_outdated`)return`Hands was updated. Reload to continue (client_outdated).`;let t=zI[e]??zI[e.replace(/_\d+$/u,``)];return t===void 0?`Unable to continue (${e}).`:`Unable to continue: ${t} (${e}).`}function VI(){try{if(window.matchMedia?.(`(pointer: coarse)`).matches)return!0}catch{}return(navigator.maxTouchPoints??0)>0&&new URLSearchParams(window.location.search).get(`platform`)===`mobile`}var HI=[{label:`JAB`,punchClass:`jab`},{label:`STRAIGHT`,punchClass:`straight`},{label:`HOOK`,punchClass:`hook`},{label:`UPPER`,punchClass:`uppercut`}],UI=[{label:`◀ SLIP`,name:`Slip left`,kind:`slip_left`},{label:`WEAVE`,name:`Weave`,kind:`weave`},{label:`SLIP ▶`,name:`Slip right`,kind:`slip_right`},{label:`PULL`,name:`Pull`,kind:`pull`},{label:`CLINCH`,name:`Clinch`,kind:`clinch`}],WI=class{sharedActions;root;stickZone;stickBase;stickKnob;pads=[];moves=[];stickPointer=null;stickOrigin={x:0,y:0};moveX=0;moveY=0;body=!1;power=!1;guard=`none`;knockdown=!1;enabled=!0;heldPointers=new Map;heldListener=null;constructor(e,t){this.sharedActions=t,this.root=document.createElement(`div`),this.root.className=`touch-controls`,this.root.setAttribute(`aria-label`,`Touch controls`),this.root.innerHTML=`
-
-
${UI.map(e=>``).join(``)}
-
- - - - -
-
${HI.map(e=>``).join(``)}
-
`,e.append(this.root),this.stickZone=this.root.querySelector(`[data-stick]`),this.stickBase=this.root.querySelector(`[data-stick-base]`),this.stickKnob=this.root.querySelector(`[data-stick-knob]`),this.pads.push(...this.root.querySelectorAll(`[data-punch]`)),this.moves.push(...this.root.querySelectorAll(`[data-move]`)),this.bind()}bind(){let e=this.stickZone;e.addEventListener(`pointerdown`,t=>{if(this.stickPointer!==null)return;t.preventDefault(),this.stickPointer=t.pointerId,this.stickOrigin={x:t.clientX,y:t.clientY},e.setPointerCapture(t.pointerId);let n=e.getBoundingClientRect();this.stickBase.style.left=`${t.clientX-n.left}px`,this.stickBase.style.top=`${t.clientY-n.top}px`,this.stickBase.classList.add(`active`),this.updateStick(t.clientX,t.clientY)}),e.addEventListener(`pointermove`,e=>{e.pointerId===this.stickPointer&&(e.preventDefault(),this.updateStick(e.clientX,e.clientY))});let t=e=>{e.pointerId===this.stickPointer&&(this.stickPointer=null,this.moveX=0,this.moveY=0,this.stickKnob.style.transform=`translate(-50%, -50%)`,this.stickBase.classList.remove(`active`),this.heldListener?.())};e.addEventListener(`pointerup`,t),e.addEventListener(`pointercancel`,t);for(let e of this.pads)e.addEventListener(`pointerdown`,t=>{if(!this.enabled)return;t.preventDefault();let n=e.getBoundingClientRect(),r=t.clientX-n.lefte.classList.remove(`pressed`),120)});for(let e of this.moves)e.addEventListener(`pointerdown`,t=>{this.enabled&&!this.knockdown&&(t.preventDefault(),this.sharedActions.push(`touch`,{kind:e.dataset.move}),e.classList.add(`pressed`),window.setTimeout(()=>e.classList.remove(`pressed`),120))});for(let e of this.root.querySelectorAll(`[data-mod], [data-guard]`)){let t=e.dataset.mod??e.dataset.guard??``,n=n=>{n.preventDefault(),e.setPointerCapture(n.pointerId),this.heldPointers.set(n.pointerId,t),this.syncHeld(),e.classList.add(`pressed`)},r=n=>{this.heldPointers.delete(n.pointerId)&&(this.syncHeld(),e.classList.toggle(`pressed`,[...this.heldPointers.values()].includes(t)))};e.addEventListener(`pointerdown`,n),e.addEventListener(`pointerup`,r),e.addEventListener(`pointercancel`,r)}}syncHeld(){let e=[...this.heldPointers.values()];this.body=e.includes(`body`),this.power=e.includes(`power`);let t=e.findLast(e=>e===`guard_high`||e===`guard_low`)??`none`,n=t!==this.guard;this.guard=t,n&&this.heldListener?.()}get powerHeld(){return this.enabled&&this.power}onHeldChange(e){this.heldListener=e}updateStick(e,t){let n=e-this.stickOrigin.x,r=t-this.stickOrigin.y,i=Math.hypot(n,r);i>56&&(n=n/i*56,r=r/i*56),this.stickKnob.style.transform=`translate(calc(-50% + ${n}px), calc(-50% + ${r}px))`;let a=Math.min(1,i/56),o=a<.15?0:(a-.15)/.85,s=i>0?n/Math.max(i,1e-6):0,c=i>0?r/Math.max(i,1e-6):0;this.moveX=Math.round(s*o*1e3)||0,this.moveY=Math.round(-c*o*1e3)||0,this.heldListener?.()}setKnockdown(e){if(this.knockdown!==e){this.knockdown=e,this.root.classList.toggle(`knockdown`,e);for(let[t,n]of this.pads.entries()){let r=n.querySelector(`.touch-pad-label`);r!==null&&(r.textContent=e?t%2==0?`GET UP`:`RHYTHM`:HI[t].label)}}}setEnabled(e,t=e){this.enabled=e,this.root.classList.toggle(`disabled`,!t),this.root.classList.toggle(`resting`,t&&!e),t?e||this.sharedActions.clearSource(`touch`):this.reset()}frame(){return this.enabled?{moveX:this.moveX,moveY:this.moveY,defense:this.guard,actions:[]}:{moveX:0,moveY:0,defense:`none`,actions:[]}}reset(){this.stickPointer=null,this.moveX=0,this.moveY=0,this.body=!1,this.power=!1,this.guard=`none`,this.heldPointers.clear(),this.stickBase.classList.remove(`active`);for(let e of this.root.querySelectorAll(`.pressed`))e.classList.remove(`pressed`);this.sharedActions.clearSource(`touch`)}destroy(){this.reset(),this.root.remove()}},GI={block:[55,.12,.22],hit:[85,.3,.42],counter_hit:[105,.38,.5],stun:[125,.42,.55],knockdown:[180,.62,.65],parry:[60,.18,.4],body_collapse:[170,.55,.3]},KI={injury:[150,.55,.6],vomit:[90,.15,.45],finish_him:[180,.65,.3],fatality:[180,.65,.65],death:[170,.5,.12]},qI=[120,.65,.5],JI=class{settings;constructor(e){this.settings=e}event(e,t=!1){if(!this.settings().haptics)return;let n=GI[e.kind];n!==void 0&&this.rumble(t?[n[0]*1.6,n[1]+.2,n[2]+.15]:n)}gore(e){if(!this.settings().haptics||e.kind===`death`&&ke(e.cause)!==null)return;this.rumble(KI[e.kind]);let t=this.settings();e.kind===`injury`&&SO(e.injury)!==null&&t.blood===`full`&&!t.reducedMotion&&setTimeout(()=>this.rumble(qI),CO*1e3)}rumble(e){let t=this.padActuator();if(t===null)this.vibrate(e[0]);else try{Promise.resolve(t.playEffect(`dual-rumble`,{duration:Math.min(180,Math.max(0,e[0])),strongMagnitude:Math.min(.65,Math.max(0,e[1])),weakMagnitude:Math.min(.65,Math.max(0,e[2]))})).catch(()=>void 0)}catch{}}padActuator(){if(typeof navigator.getGamepads!=`function`)return null;let e;try{e=[...navigator.getGamepads.call(navigator)]}catch{return null}let t=e.find(e=>e!==null&&e.connected&&`vibrationActuator`in e)?.vibrationActuator;return t==null||typeof t.playEffect!=`function`?null:t}vibrate(e){if(VI()&&typeof navigator.vibrate==`function`)try{navigator.vibrate(Math.min(180,Math.max(0,e)))}catch{}}},YI={KeyF:[`left`,`jab`],KeyJ:[`right`,`jab`],KeyR:[`left`,`straight`],KeyU:[`right`,`straight`],KeyG:[`left`,`hook`],KeyH:[`right`,`hook`],KeyT:[`left`,`uppercut`],KeyY:[`right`,`uppercut`]},XI={KeyZ:{kind:`slip_left`},KeyX:{kind:`slip_right`},KeyC:{kind:`weave`},KeyV:{kind:`pull`},KeyB:{kind:`clinch`},KeyN:{kind:`switch_stance`},KeyM:{kind:`taunt`},Digit1:{kind:`foul`,foul:`low_blow`},Digit2:{kind:`foul`,foul:`headbutt`},ArrowLeft:{kind:`get_up_left`},ArrowRight:{kind:`get_up_right`}},ZI=new Set([...Object.keys(YI),...Object.keys(XI),`KeyW`,`KeyA`,`KeyS`,`KeyD`,`KeyQ`,`KeyE`,`ShiftLeft`,`ShiftRight`,`AltLeft`,`AltRight`]),QI=[`Move: W up · S down · A left · D right`,`High / low guard: Q / E`,`Left/right jab: F / J`,`Left/right straight: R / U`,`Left/right hook: G / H`,`Left/right uppercut: T / Y`,`Body: Shift · Power: hold Alt (Option ⌥ on a Mac) with the punch, slower to throw and far heavier`,`Slip: Z / X · Weave: C · Pull: V`,`Clinch: B · Stance: N · Taunt: M · Fouls (on purpose): Shift+1 low blow / Shift+2 headbutt`,`Get-up rhythm: ← / →`,`Camera: K cycles broadcast, close and over the shoulder (behind your fighter, W walks at the opponent and A / D circle him).`,`Style pick before the bout: arrow keys choose · Enter settles · 1–5 settle on that card at once.`,`Controller move: left stick. High / low guard: left / right shoulder (independent of punches).`,`Controller face classes: bottom jab · right straight · left hook · top uppercut.`,`Controller face hand: hold D-pad left for left hand or D-pad right for right hand, then press a face punch; otherwise punches use the right hand. A direction used for a punch is consumed and does not evade.`,`Controller modifiers: left trigger body · right trigger power.`,`Controller actions: left stick press clinch · right stick press switch stance · hold right trigger + right stick press to taunt · D-pad up weave · D-pad down pull · tap and release D-pad left/right to slip; while down, D-pad left/right performs the private get-up rhythm immediately.`,`Controller fouls: View/Back low blow · Menu/Start headbutt.`,`Controller style pick: D-pad or left stick to choose · bottom face button settles.`,`Right-stick gesture: horizontal 0–22.5° hook · 22.5–45° jab · 45–70° straight · 70–90° uppercut; left/right direction selects hand.`,`Between rounds, tell your corner what to work on: 1 close the cut · 2 bring down the swelling · 3 catch your breath (controller: left, top or right face button; or tap).`,`Touch: drag the left side to move · tap a punch pad's left or right half for that hand · hold BODY, POWER, GUARD or LOW · tap ◀ SLIP, SLIP ▶, WEAVE, PULL or CLINCH.`],$I=`Move WASD · Jab F/J · Straight R/U · Hook G/H · Uppercut T/Y · Guard Q/E · Body Shift · Power Alt/Option ⌥`,eL=`Drag on the left to move · Tap the pads to punch, L or R hand · Hold BODY, POWER or GUARD · Tap SLIP, WEAVE, PULL or CLINCH`,tL=`Drag left to move · Tap pads to punch · Hold GUARD`,nL=(e,t)=>e?t<480?tL:eL:$I,rL=[{title:`Keyboard`,items:QI.filter(e=>!e.startsWith(`Controller`)&&!e.startsWith(`Right-stick`)&&!e.startsWith(`Between rounds`)&&!e.startsWith(`Touch`))},{title:`Between rounds`,items:QI.filter(e=>e.startsWith(`Between rounds`))},{title:`Controller`,items:QI.filter(e=>e.startsWith(`Controller`)||e.startsWith(`Right-stick`))},{title:`Touch`,items:QI.filter(e=>e.startsWith(`Touch`))}];function iL(e,t){return e.kind===t.kind?e.kind===`punch`&&t.kind===`punch`?e.hand===t.hand&&e.class===t.class&&e.target===t.target&&e.power===t.power:e.kind===`foul`&&t.kind===`foul`?e.foul===t.foul:!0:!1}function aL(e,t,n){if(n<1||e.length>0&&iL(e.at(-1),t))return;let r=e.length-n+1;r>0&&e.splice(0,r),e.push(t)}var oL=class{maximum;queue=[];counter=0;listener=null;constructor(e=1){this.maximum=e}setListener(e){this.listener=e}push(e,t){if(this.maximum<1)return;let n=this.queue.at(-1);if(n!==void 0&&iL(n.action,t)){n.source=e;return}let r={...t,id:`c${this.counter+=1}`},i=this.queue.length-this.maximum+1;i>0&&this.queue.splice(0,i),this.queue.push({action:r,source:e}),this.listener?.(r)}clear(){this.queue.length=0}clearSource(e){let t=this.queue.filter(t=>t.source!==e);this.queue.splice(0,this.queue.length,...t)}drain(e){return this.queue.splice(0,e).map(e=>e.action)}};function sL(e,t,n=.18){let r=Math.hypot(e,t);if(!Number.isFinite(r)||r<=n)return{x:0,y:0};let i=(Math.min(1,r)-n)/(1-n);return{x:e/r*i,y:t/r*i}}var cL=(e,t)=>{let n=Math.atan2(Math.abs(t),Math.abs(e))*180/Math.PI;return n<22.5?`hook`:n<45?`jab`:n<70?`straight`:`uppercut`},lL=class{active=!1;hand=`right`;target=`head`;power=`normal`;peak={x:0,y:0};peakMagnitude=0;update(e,t,n,r){let i=Math.hypot(e,t);if(!this.active&&i>=.55&&Math.abs(e)>=.12)return this.active=!0,this.hand=e<0?`left`:`right`,this.target=n?`body`:`head`,this.power=r?`power`:`normal`,this.peak={x:e,y:t},this.peakMagnitude=i,null;if(!this.active)return null;if(i>this.peakMagnitude&&(this.peak={x:e,y:t},this.peakMagnitude=i),i<=.25){let e={kind:`punch`,hand:this.hand,class:cL(this.peak.x,this.peak.y),target:this.target,power:this.power};return this.reset(),e}return null}reset(){this.active=!1,this.peak={x:0,y:0},this.peakMagnitude=0}},uL=[`jab`,`straight`,`hook`,`uppercut`],dL=(e,t)=>e.buttons[t]?.pressed===!0;function fL(){let e=navigator.getGamepads;if(typeof e!=`function`)return null;try{return[...e.call(navigator)].find(e=>e!==null&&e.connected&&e.mapping===`standard`)??null}catch{return null}}var pL=class{maximumQueue;sharedActions;gesture=new lL;queue=[];previous=new Set;selectorConsumed=new Map;raf=0;currentId=null;moveX=0;moveY=0;defense=`none`;knockdown=!1;enabled=!0;trigger=!1;heldListener=null;disconnect=e=>{e.gamepad.id===this.currentId&&this.reset()};constructor(e=1,t){this.maximumQueue=e,this.sharedActions=t,window.addEventListener(`gamepaddisconnected`,this.disconnect),this.raf=requestAnimationFrame(()=>this.poll())}onHeldChange(e){this.heldListener=e}push(e){this.sharedActions===void 0?aL(this.queue,e,this.maximumQueue):this.sharedActions.push(`gamepad`,e)}poll(){if(!this.enabled){this.reset(),this.schedulePoll();return}let e=fL();if(e===null){this.currentId!==null&&this.reset(),this.schedulePoll();return}this.currentId!==null&&this.currentId!==e.id&&this.reset(),this.currentId=e.id;let t=sL(e.axes[0]??0,e.axes[1]??0),n=Math.round(t.x*1e3),r=Math.round(-t.y*1e3),i=dL(e,4)?`guard_high`:dL(e,5)?`guard_low`:`none`,a=n!==this.moveX||r!==this.moveY||i!==this.defense;this.moveX=n,this.moveY=r,this.defense=i,a&&this.heldListener?.(),this.trigger=dL(e,7);let o=this.gesture.update(e.axes[2]??0,e.axes[3]??0,dL(e,6),this.trigger);o!==null&&this.push(o);let s=uL.some((t,n)=>dL(e,n)&&!this.previous.has(n));for(let t of[14,15]){let n=dL(e,t),r=this.previous.has(t);this.knockdown?(n&&!r&&this.push({kind:t===14?`get_up_left`:`get_up_right`}),this.selectorConsumed.delete(t)):n?(r||this.selectorConsumed.set(t,!1),s&&this.selectorConsumed.set(t,!0)):r&&(this.selectorConsumed.get(t)===!1&&this.push({kind:t===14?`slip_left`:`slip_right`}),this.selectorConsumed.delete(t))}for(let t=0;tthis.poll())}setKnockdown(e){this.knockdown=e}get powerHeld(){return this.enabled&&this.trigger}setEnabled(e){this.enabled=e,e||this.reset()}frame(e=4){let t=this.sharedActions===void 0?this.queue.splice(0,e):[];return{moveX:this.moveX,moveY:this.moveY,defense:this.defense,actions:t}}reset(){this.currentId=null,this.moveX=this.moveY=0,this.defense=`none`,this.trigger=!1,this.queue.length=0,this.sharedActions?.clearSource(`gamepad`),this.previous.clear(),this.selectorConsumed.clear(),this.gesture.reset()}destroy(){cancelAnimationFrame(this.raf),window.removeEventListener(`gamepaddisconnected`,this.disconnect),this.reset()}},mL=new Set([`KeyW`,`KeyA`,`KeyS`,`KeyD`,`KeyQ`,`KeyE`]),hL=new Set([`ShiftLeft`,`ShiftRight`,`AltLeft`,`AltRight`]),gL=class{target;maximumQueue;sharedActions;held=new Set;queue=[];enabled=!0;altFlag=!1;heldListener=null;keydown=e=>{if(this.altFlag=e.altKey,!ZI.has(e.code))return;if(!this.enabled){this.hold(e.code,e.repeat);return}if(e.preventDefault(),this.hold(e.code,e.repeat),e.repeat)return;let t=YI[e.code];if(t!==void 0)this.push({kind:`punch`,hand:t[0],class:t[1],target:this.hasShift(e)?`body`:`head`,power:this.alt?`power`:`normal`});else{let t=XI[e.code];t!==void 0&&(t.kind!==`foul`||this.hasShift(e))&&this.push(t)}};keyup=e=>{this.altFlag=e.altKey,e.code===`MetaLeft`||e.code===`MetaRight`?this.letGo(e=>!hL.has(e)):ZI.has(e.code)&&(this.enabled&&e.preventDefault(),this.letGo(t=>t===e.code))};visibility=()=>{document.hidden&&this.reset()};blur=()=>this.reset();constructor(e=window,t=1,n){this.target=e,this.maximumQueue=t,this.sharedActions=n,e.addEventListener(`keydown`,this.keydown),e.addEventListener(`keyup`,this.keyup),e.addEventListener(`blur`,this.blur),document.addEventListener(`visibilitychange`,this.visibility)}onHeldChange(e){this.heldListener=e}hold(e,t){t&&this.held.has(e)||(this.held.delete(e),this.held.add(e),mL.has(e)&&this.heldListener?.())}letGo(e){let t=!1;for(let n of this.held)e(n)&&(this.held.delete(n),t||=mL.has(n));t&&this.heldListener?.()}axis(e,t){let n=0;for(let r of this.held)r===e?n=1:r===t&&(n=-1);return n}hasShift(e){return e.shiftKey||this.held.has(`ShiftLeft`)||this.held.has(`ShiftRight`)}get alt(){return this.altFlag||this.held.has(`AltLeft`)||this.held.has(`AltRight`)}get powerHeld(){return this.enabled&&this.alt}push(e){this.sharedActions===void 0?aL(this.queue,e,this.maximumQueue):this.sharedActions.push(`keyboard`,e)}setEnabled(e){this.enabled=e,e||(this.queue.length=0,this.sharedActions?.clearSource(`keyboard`))}frame(e=4){if(!this.enabled)return{moveX:0,moveY:0,defense:`none`,actions:[]};let t=this.axis(`KeyD`,`KeyA`)*1e3,n=this.axis(`KeyW`,`KeyS`)*1e3;t!==0&&n!==0&&(t=Math.sign(t)*707,n=Math.sign(n)*707);let r=this.axis(`KeyQ`,`KeyE`);return{moveX:t,moveY:n,defense:r>0?`guard_high`:r<0?`guard_low`:`none`,actions:this.sharedActions===void 0?this.queue.splice(0,e):[]}}reset(){this.letGo(()=>!0),this.altFlag=!1,this.queue.length=0,this.sharedActions?.clearSource(`keyboard`)}destroy(){this.reset(),this.target.removeEventListener(`keydown`,this.keydown),this.target.removeEventListener(`keyup`,this.keyup),this.target.removeEventListener(`blur`,this.blur),document.removeEventListener(`visibilitychange`,this.visibility)}};function _L(e,t,n,r){let i=e=>Math.max(-1e3,Math.min(1e3,Math.round(e)))||0;return{moveX:i(-r*e+n*t),moveY:i(-n*e-r*t)}}var vL=(e,t,n,r)=>Math.abs(Math.atan2(e*r-t*n,e*n+t*r)),yL=Math.PI/4-.01,bL=Math.PI/8,xL=300,SL=class{actions=new oL(1);keyboard;gamepad;touch=null;reset=()=>{this.keyboard.reset(),this.gamepad.reset(),this.touch?.reset(),this.actions.clear(),this.gamepad.setKnockdown(!1)};heldChanged=()=>{let e=this.held(),t=this.sentHeld,n=e.moveX!==0||e.moveY!==0,r=t.moveX!==0||t.moveY!==0;(e.defense!==t.defense||n!==r||n&&(vL(e.moveX,e.moveY,t.moveX,t.moveY)>bL||Math.abs(Math.hypot(e.moveX,e.moveY)-Math.hypot(t.moveX,t.moveY))>xL))&&(this.sentHeld=e,this.heldListener?.())};constructor(){this.keyboard=new gL(window,1,this.actions),this.gamepad=new pL(1,this.actions),this.keyboard.onHeldChange(this.heldChanged),this.gamepad.onHeldChange(this.heldChanged),window.addEventListener(`blur`,this.reset),document.addEventListener(`visibilitychange`,this.visibility)}visibility=()=>{document.hidden&&this.reset()};attachTouch(e,t=VI()){this.touch===null&&t&&(this.touch=new WI(e,this.actions),this.touch.onHeldChange(this.heldChanged))}setActive(e,t=e){this.keyboard.setEnabled(e),this.gamepad.setEnabled(e),this.touch?.setEnabled(e,t)}setKnockdown(e){this.gamepad.setKnockdown(e),this.touch?.setKnockdown(e)}onAction(e){this.actions.setListener(e)}get powerHeld(){return this.keyboard.powerHeld||this.gamepad.powerHeld||this.touch?.powerHeld===!0}onHeldChange(e){this.heldListener=e}heldListener=null;sentHeld={moveX:0,moveY:0,defense:`none`};setViewForward(e){this.viewForward=e}viewForward=null;latched=null;held(){let e=this.keyboard.frame(0),t=this.gamepad.frame(0),n=this.touch?.frame()??null,r=t.moveX===0?n!==null&&n.moveX!==0?n.moveX:e.moveX:t.moveX,i=t.moveY===0?n!==null&&n.moveY!==0?n.moveY:e.moveY:t.moveY,a=t.defense===`none`?n!==null&&n.defense!==`none`?n.defense:e.defense:t.defense;if(r===0&&i===0)return this.latched=null,{moveX:r,moveY:i,defense:a};let o=this.viewForward?.()??null,s=this.latched;s===null||vL(r,i,s.moveX,s.moveY)>yL?this.latched={moveX:r,moveY:i,forward:o===null?null:{x:o.x,z:o.z}}:s.forward!==null&&o!==null&&(s.forward.x=o.x,s.forward.z=o.z);let c=this.latched.forward;if(c===null)return{moveX:r,moveY:i,defense:a};let l=_L(r,i,c.x,c.z);return{moveX:l.moveX,moveY:l.moveY,defense:a}}frame(){return{...this.held(),actions:this.actions.drain(4)}}destroy(){window.removeEventListener(`blur`,this.reset),document.removeEventListener(`visibilitychange`,this.visibility),this.keyboard.destroy(),this.gamepad.destroy(),this.touch?.destroy()}},CL=(e,t,n)=>e+(t-e)*n,wL=(e,t,n)=>({...t,x:CL(e.x,t.x,n),y:CL(e.y,t.y,n),facing:CL(e.facing,t.facing,n),facing_x:CL(e.facing_x,t.facing_x,n),facing_y:CL(e.facing_y,t.facing_y,n),velocity_x:CL(e.velocity_x,t.velocity_x,n),velocity_y:CL(e.velocity_y,t.velocity_y,n),stamina:CL(e.stamina,t.stamina,n),maximum_stamina:CL(e.maximum_stamina,t.maximum_stamina,n),conditioning:CL(e.conditioning,t.conditioning,n),guard:CL(e.guard,t.guard,n),poise:CL(e.poise,t.poise,n)}),TL=(e,t,n)=>({...t,x:CL(e.x,t.x,n),y:CL(e.y,t.y,n),facing_x:CL(e.facing_x,t.facing_x,n),facing_y:CL(e.facing_y,t.facing_y,n),velocity_x:CL(e.velocity_x,t.velocity_x,n),velocity_y:CL(e.velocity_y,t.velocity_y,n)}),EL=1.5,DL=6,OL=.5,kL=2500,AL=1,jL=.04,ML=100,NL=.01,PL=4,FL=class{maximum;tickRate;initialDelayTicks;snapshots=[];offsetTicks=null;delayTicks;lastStarvationMs=-1/0;lastFrameMs=null;behindPushes=0;needs=[];constructor(e=8,t=30,n=2){this.maximum=e,this.tickRate=t,this.initialDelayTicks=n,this.delayTicks=n}get interpolationDelayTicks(){return this.delayTicks}push(e,t){let n=this.snapshots.at(-1);if(n!==void 0&&e.tick<=n.tick)return!1;if(this.snapshots.push(e),this.snapshots.length>this.maximum&&this.snapshots.shift(),t!==void 0&&Number.isFinite(t)){let n=e.tick-t*this.tickRate/1e3;this.offsetTicks!==null&&n=PL&&this.restartClock(),this.offsetTicks===null?(this.offsetTicks=n,this.need(t,this.initialDelayTicks)):this.offsetTicks=Math.max(n,this.offsetTicks-NL),this.need(t,this.offsetTicks-n+AL)}return!0}resync(){this.restartClock()}restartClock(){this.offsetTicks=null,this.delayTicks=this.initialDelayTicks,this.lastStarvationMs=-1/0,this.behindPushes=0,this.needs.length=0}need(e,t){for(;this.needs.length>0&&this.needs.at(-1).ticks<=t;)this.needs.pop();this.needs.push({atMs:e,ticks:t})}recentNeed(e){for(;this.needs.length>0&&this.needs[0].atMs<=e-kL;)this.needs.shift();return this.needs[0]?.ticks??0}latest(){return this.snapshots.at(-1)??null}renderTick(e){let t=this.latest();if(t===null)return 0;let n=this.snapshots[0].tick;if(this.offsetTicks===null)return Math.max(n,t.tick-1);let r=this.lastFrameMs===null?0:Math.min(ML,Math.max(0,e-this.lastFrameMs));this.lastFrameMs=e;let i=e*this.tickRate/1e3+this.offsetTicks-this.delayTicks;if(i>t.tick+.25)e-this.lastStarvationMs>250&&(this.lastStarvationMs=e,this.delayTicks=Math.min(DL,this.delayTicks+OL),this.need(e,this.delayTicks));else{let t=Math.max(EL,this.recentNeed(e));this.delayTicks>t&&(this.delayTicks=Math.max(t,this.delayTicks-jL*r*this.tickRate/1e3))}return Math.min(t.tick,Math.max(n,i))}sample(e){let t=this.snapshots.findIndex(t=>t.tick>=e);if(t<=0)return this.snapshots[Math.max(0,t)]??this.latest();let n=this.snapshots[t-1],r=this.snapshots[t];if(n.phase!==r.phase||n.fighters.some((e,t)=>e.knockdowns!==r.fighters[t]?.knockdowns))return r;let i=Math.max(0,Math.min(1,(e-n.tick)/Math.max(1,r.tick-n.tick)));return{...r,fighters:[wL(n.fighters[0],r.fighters[0],i),wL(n.fighters[1],r.fighters[1],i)],referee:TL(n.referee,r.referee,i)}}clear(){this.snapshots.length=0,this.offsetTicks=null}},IL=class{highest=-1;accept(e){let t=new Set,n=e.filter(e=>e.event_id<=this.highest||t.has(e.event_id)?!1:(t.add(e.event_id),!0)).sort((e,t)=>e.event_id-t.event_id);for(let e of n)this.highest=Math.max(this.highest,e.event_id);return n}reset(){this.highest=-1}};function LL(e=window.location){let t=new URL(`/api/hands/ws`,e.origin);if(e.protocol===`https:`)t.protocol=`wss:`;else if(e.protocol===`http:`&&[`localhost`,`127.0.0.1`,`::1`].includes(e.hostname))t.protocol=`ws:`;else throw Error(`insecure_websocket_origin`);return t.search=``,t.hash=``,t.toString()}var RL=1,zL={moveX:0,moveY:0,defense:`none`,actions:[]},BL=33,VL=8,HL=50,UL=20,WL=10,GL=2048;function KL(e){try{return Ot(e)}catch(t){let n;try{let t=Ke(e);n=typeof t==`object`&&t&&`version`in t?t.version:void 0}catch{}throw typeof n==`number`&&n!==6?new kk(`client_outdated`,!0):t}}var qL=class{getInput;callbacks;makeSocket;now;socket=null;reconnectTicket;reconnectTimer=null;opponentPauseTimer=null;inputTimer=null;reconnectDeadline=0;opponentPauseDeadline=0;opponentPaused=!1;attempts=0;nextSequence=0;playerId=null;sentAt=new Map;actionSequences=new Map;latencyMs=null;serverTick=0;role=null;active=!1;resting=!1;boutStarted=!1;disposed=!1;terminal=!1;inputSuppressed=!1;pointerFocus=!1;listenersBound=!1;lastInputSentAt=-1/0;sendTimes=[];edgeSendTimes=[];heldSendTimes=[];heldTimer=null;pressWaiting=!1;constructor(e,t,n,r=e=>new WebSocket(e),i=()=>performance.now()){this.getInput=t,this.callbacks=n,this.makeSocket=r,this.now=i,this.reconnectTicket=e}start(){this.disposed||this.listenersBound||(this.bindInputListeners(),this.connect(),!this.disposed&&!this.terminal&&(this.inputTimer=window.setInterval(()=>this.periodicFlush(),BL)))}bindInputListeners(){this.listenersBound=!0,window.addEventListener(`blur`,this.onInputLoss),window.addEventListener(`focus`,this.onInputRegain),window.addEventListener(`pointerdown`,this.onPagePointer,!0),document.addEventListener(`visibilitychange`,this.onVisibilityChange)}setActive(e){this.setInputActive(e)}setInputActive(e){let t=this.active;this.active=e,e?this.boutStarted=!0:t&&this.sendInput(zL,!0)}notifyAction(){this.pressWaiting=!0,this.now()-(this.edgeSendTimes.at(-1)??-1/0)=UL||this.flushInput()&&this.edgeSendTimes.push(this.lastInputSentAt)}notifyHeld(){let e=VL-(this.now()-Math.max(this.edgeSendTimes.at(-1)??-1/0,this.heldSendTimes.at(-1)??-1/0));e>0?this.heldTimer??=window.setTimeout(()=>{this.heldTimer=null,this.notifyHeld()},e):this.withinLastSecond(this.heldSendTimes)>=WL||this.sendsInLastSecond()>=40||this.flushInput()&&this.heldSendTimes.push(this.lastInputSentAt)}periodicFlush(){this.now()-Math.max(this.edgeSendTimes.at(-1)??-1/0,this.heldSendTimes.at(-1)??-1/0)=40||this.flushInput()}sendsInLastSecond(){return this.withinLastSecond(this.sendTimes)}withinLastSecond(e){let t=this.now()-1e3;for(;e.length>0&&e[0]<=t;)e.shift();return e.length}onInputLoss=()=>{this.inputSuppressed||(this.sendInput(zL,this.boutStarted),this.inputSuppressed=!0,this.pointerFocus=!1)};onInputRegain=()=>{!document.hidden&&document.hasFocus()&&(this.inputSuppressed=!1)};onPagePointer=()=>{if(!document.hidden&&(this.pointerFocus=!0,this.inputSuppressed=!1,!document.hasFocus()))try{window.focus()}catch{}};onVisibilityChange=()=>{document.hidden?this.onInputLoss():this.onInputRegain()};connect(){if(this.disposed||this.terminal)return;let e=this.reconnectTicket;if(e===null){this.terminal=!0,this.stopInputLifecycle(),this.callbacks.onFreshAuth();return}let t;try{t=this.makeSocket(LL())}catch{this.terminal=!0,this.stopInputLifecycle(),this.callbacks.onFatal(`network_unavailable`);return}this.socket=t,t.binaryType=`arraybuffer`,t.onopen=()=>{if(!(this.socket!==t||this.disposed))try{t.send(JSON.stringify({version:6,type:`authenticate`,ticket:e})),this.reconnectTicket=null}catch{this.handleClose(t)}},t.onmessage=e=>this.handleMessage(t,e),t.onerror=()=>void 0,t.onclose=()=>this.handleClose(t)}handleMessage(e,t){if(!(this.socket!==e||this.disposed||this.terminal))try{if(typeof t.data!=`string`&&!(t.data instanceof ArrayBuffer))throw Error(`unsupported_frame`);let n=KL(t.data);if(this.applyMessage(n),n.type===`ticket`){try{e.send(JSON.stringify({version:6,type:`ticket_ack`,refresh_id:n.refresh_id}))}catch{this.handleClose(e)}return}this.callbacks.onMessage(n),n.type===`error`?this.terminate(n.code,e):n.type===`final`&&(this.terminal=!0,this.clearTransportReconnect(!0),this.clearOpponentPause(!0),this.stopInputLifecycle(),this.socket===e&&(this.socket=null),e.onopen=e.onmessage=e.onclose=e.onerror=null,e.close(1e3,`complete`))}catch(e){this.callbacks.onFatal(Fk(e)),this.dispose()}}applyMessage(e){if(e.type===`welcome`){if(e.reconnect_ticket===void 0)throw Error(`missing_reconnect_ticket`);this.reconnectTicket=e.reconnect_ticket,this.serverTick=e.server_tick;let t=this.role===`spectator`&&e.role===`fighter`;this.role=e.role,this.playerId=e.role===`fighter`?e.player_id:null,this.sentAt.clear(),e.role===`fighter`?this.nextSequence=Math.max(this.nextSequence,e.next_sequence):this.stopInputLifecycle(),t&&(this.listenersBound||this.bindInputListeners(),this.inputTimer??=window.setInterval(()=>this.periodicFlush(),BL)),this.attempts=0,this.clearTransportReconnect(!0)}else e.type===`ticket`?this.reconnectTicket=e.reconnect_ticket:e.type===`snapshot`?(this.serverTick=Math.max(this.serverTick,e.payload.tick),this.setInputActive([`countdown`,`fight`,`knockdown`,`foul_recovery`,`referee_down`,`finish`].includes(e.payload.phase)),this.resting=e.payload.phase===`rest`,this.observeAcknowledgement(e.payload)):e.type===`paused`?(this.setInputActive(!1),this.startOpponentPause(e.grace_ms)):e.type===`resumed`?(this.setInputActive(!0),this.attempts=0,this.clearOpponentPause(!0)):e.type===`select`?this.clearOpponentPause(!0):e.type===`ready`?(this.clearOpponentPause(!0),this.setInputActive(!0)):e.type===`waiting`?(this.clearOpponentPause(!0),this.setInputActive(!1)):(e.type===`final`||e.type===`error`)&&(this.active=!1,this.clearOpponentPause(!0))}terminate(e,t){this.terminal=!0,this.active=!1,this.clearTransportReconnect(!0),this.clearOpponentPause(!0),this.stopInputLifecycle(),this.callbacks.onFatal(e),this.socket===t&&(this.socket=null,t.onopen=t.onmessage=t.onclose=t.onerror=null,t.close(1e3,`terminal`))}handleClose(e){if(this.socket!==e||(this.socket=null,this.active=!1,this.disposed||this.terminal))return;if(this.reconnectTicket===null){this.terminal=!0,this.stopInputLifecycle(),this.callbacks.onFreshAuth();return}this.clearOpponentPause(!1),this.reconnectDeadline===0&&(this.reconnectDeadline=this.now()+2e4);let t=Math.max(0,this.reconnectDeadline-this.now());if(this.callbacks.onReconnect(t),t<=0){this.terminal=!0,this.stopInputLifecycle(),this.callbacks.onFreshAuth();return}let n=Math.min(3e3,250*2**Math.min(this.attempts,4),t);this.attempts+=1,this.reconnectTimer=window.setTimeout(()=>{this.reconnectTimer=null,this.callbacks.onReconnect(Math.max(0,this.reconnectDeadline-this.now())),this.connect()},n)}requestCpu(e){let t=this.socket;if(this.role!==`fighter`||this.disposed||this.terminal||t?.readyState!==RL)return!1;try{return t.send(Pt(e)),!0}catch{return this.handleClose(t),!1}}chooseStyle(e,t){let n=this.socket;if(this.role!==`fighter`||this.disposed||this.terminal||n?.readyState!==RL)return!1;try{return n.send(Mt(e,t)),!0}catch{return this.handleClose(n),!1}}get inputLatencyMs(){return this.latencyMs}sequenceOf(e){return this.actionSequences.get(e)??null}observeAcknowledgement(e){if(this.playerId===null)return;let t=e.fighters.find(e=>e.player_id===this.playerId);if(t===void 0||t.last_input_sequence<0)return;let n=this.sentAt.get(t.last_input_sequence);if(n!==void 0){let e=Math.max(0,this.now()-n);this.latencyMs=this.latencyMs===null?e:this.latencyMs*.8+e*.2}for(let e of this.sentAt.keys())e<=t.last_input_sequence&&this.sentAt.delete(e)}sendInput(e,t=!1){return(this.active||t)&&this.transmit(e)}sendCornerChoice(e){return this.resting?this.transmit({moveX:0,moveY:0,defense:`none`,actions:[{kind:e}]}):!1}transmit(e){let t=this.socket;if(this.role!==`fighter`||this.disposed||this.terminal||t?.readyState!==RL)return!1;try{let n=e.actions.slice(0,4);t.send(jt(this.nextSequence,this.serverTick,{...e,actions:n})),this.sentAt.set(this.nextSequence,this.now()),this.sentAt.size>128&&this.sentAt.delete(this.sentAt.keys().next().value);for(let e of n)e.id!==void 0&&this.actionSequences.set(e.id,this.nextSequence);for(;this.actionSequences.size>64;)this.actionSequences.delete(this.actionSequences.keys().next().value);return this.nextSequence+=1,this.lastInputSentAt=this.now(),this.sendTimes.push(this.lastInputSentAt),!0}catch{return this.handleClose(t),!1}}flushInput(){return this.inputSuppressed||document.hidden||!(this.pointerFocus||document.hasFocus())||this.sendsInLastSecond()>=HL||(this.socket?.bufferedAmount??0)>GL||!this.sendInput(this.getInput())?!1:(this.pressWaiting=!1,!0)}startOpponentPause(e){this.clearOpponentPause(!1),this.opponentPaused=!0,this.opponentPauseDeadline=this.now()+e,this.callbacks.onReconnect(e),e>0&&this.scheduleOpponentPauseTick()}scheduleOpponentPauseTick(){let e=Math.max(0,this.opponentPauseDeadline-this.now());e<=0?(this.opponentPauseDeadline=0,this.callbacks.onReconnect(0)):this.opponentPauseTimer=window.setTimeout(()=>{this.opponentPauseTimer=null;let e=Math.max(0,this.opponentPauseDeadline-this.now());this.callbacks.onReconnect(e),e>0?this.scheduleOpponentPauseTick():this.opponentPauseDeadline=0},Math.min(250,e))}clearOpponentPause(e){let t=this.opponentPaused;this.opponentPaused=!1,this.opponentPauseDeadline=0,this.opponentPauseTimer!==null&&(clearTimeout(this.opponentPauseTimer),this.opponentPauseTimer=null),e&&t&&this.callbacks.onReconnect(0)}cancelReconnect(){this.reconnectTimer!==null&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null)}clearTransportReconnect(e){let t=this.reconnectDeadline!==0;this.reconnectDeadline=0,this.cancelReconnect(),e&&t&&this.callbacks.onReconnect(0)}stopInputLifecycle(){this.inputTimer!==null&&(clearInterval(this.inputTimer),this.inputTimer=null),this.heldTimer!==null&&(clearTimeout(this.heldTimer),this.heldTimer=null),this.listenersBound&&=(window.removeEventListener(`blur`,this.onInputLoss),window.removeEventListener(`focus`,this.onInputRegain),window.removeEventListener(`pointerdown`,this.onPagePointer,!0),document.removeEventListener(`visibilitychange`,this.onVisibilityChange),!1)}dispose(){if(this.disposed)return;this.disposed=!0,this.active=!1,this.reconnectTicket=null,this.clearTransportReconnect(!0),this.clearOpponentPause(!0),this.stopInputLifecycle();let e=this.socket;this.socket=null,e!==null&&(e.onopen=e.onmessage=e.onclose=e.onerror=null,e.close(1e3,`teardown`))}},JL={play:`CALLAHAN`,colour:`OKAFOR`,announcer:`RING ANNOUNCER`},YL=.3,XL=.9,ZL=.25,QL=2.6,$L=4.5,eR=12,tR=.8,nR=6,rR=9,iR=6,aR=42,oR=8,sR=15,cR=10,lR=[60,480,640],uR=500,dR=.2,fR=.3,pR=120,mR={knockdown:[`Down goes {b}!`,`{a} drops {b}!`,`{b} is down! What a shot from {a}!`,`Down goes {b}! {a} found the chin!`],knockdownAgain:[`{b} is down again!`,`Down for the second time! {b} is in deep trouble!`,`{a} puts {b} down again!`],knockdownCounter:[`Down goes {b}, off a perfect counter!`,`{a} times it, and {b} is down!`],struggle:[`{b} is struggling to get up...`,`{b} is trying to beat the count...`,`Can {b} get up?`],upLate:[`{b} beats the count at {n}!`,`Up at {n}! {b} is still in this!`,`{b} makes it up at {n}, but the legs look heavy.`],upEarly:[`{b} is up at {n}.`,`{b} is back up at the count of {n}.`,`Up at {n}. {b} wants to keep fighting.`],finishCall:[`{a} has to go for the finish now.`,`{b} needs to survive the next minute.`,`{b} has to hold and clear the head.`],hurt:[`{b} is hurt!`,`{a} has {b} in trouble!`,`{b}'s legs just buckled!`,`Big shot! {b} is wobbled!`,`{b} is rocked! Keep the pressure on, {a}!`],hurtBadly:[`{b} is out on their feet!`,`{b} is in all sorts of trouble!`,`{b} is badly hurt!`],guardBreak:[`{a} blasts right through the guard!`,`The guard is gone! {b} can't keep those hands up!`,`{a} breaks the guard down!`],counter:[`What a counter from {a}!`,`{a} times it perfectly! A {punch} on the counter!`,`{b} walked right into that {punch}!`,`Counter {punch} from {a}! Beautiful timing.`],bigShot:[`Big {punch} from {a}!`,`{a} lands a thudding {punch}!`,`That {punch} landed flush!`,`Huge {punch}! {b} felt that one.`],cut:[`{b} is cut over the {side} eye.`,`There's blood now. A cut over {b}'s {side} eye.`,`That's opened a cut over the {side} eye of {b}.`],cutWorse:[`That cut over {b}'s {side} eye is getting worse.`,`The blood is pouring from that {side} eye now.`,`{b} is bleeding badly from the {side} eye.`],cutGushing:[`That cut is gushing now! {b} is covered in it.`,`{b}'s face is a crimson mask, and nobody is stopping this!`],eyeSwelling:[`{b}'s {side} eye is swelling badly.`,`{b} is having trouble seeing out of that {side} eye.`],eyeShut:[`{b}'s {side} eye has closed completely!`,`That {side} eye is shut! {b} can't see them coming from that side.`,`{b} is fighting with one eye now.`],blindSide:[`{a} is working the blind side.`,`{b} never saw that one. Nothing is getting through that {side} eye.`,`Smart from {a}, punching where {b} can't see.`],parried:[`{a} picks it off and {b} is wide open!`,`Beautiful parry from {a}! {b} is off balance.`,`{a} slaps it away and {b} is left stranded.`],bodyCollapse:[`Body shot! {b} is going down!`,`{a} digs to the body and {b} is folding!`,`Oh, that body shot! {b} is in agony!`],knockdownBody:[`Down goes {b} from the body shot!`,`{b} takes a knee! That body shot took everything out!`,`{a} goes downstairs and {b} can't take it!`],cornerCut:[`{a}'s cutman is working on that cut.`,`They're working hard on the cut in {a}'s corner.`],cornerSwelling:[`{a}'s corner is getting the swelling down.`,`Ice and the enswell on that eye in {a}'s corner.`],cornerBreath:[`{a}'s corner wants the breath back first. Big drink of water.`,`{a} is told to breathe and settle down.`],combo:[`A three-punch combination from {a}!`,`{a} puts it together beautifully.`,`Lovely combination from {a}!`],unanswered:[`Five unanswered punches from {a}!`,`{a} is unloading! {b} has to fire back!`,`{b} is just covering up as {a} lets the hands go!`],jab:[`{a}'s jab is finding a home.`,`Stiff jab from {a}, and another.`,`{a} keeps popping that jab in {b}'s face.`],body:[`{a} is going to work on the body.`,`{a} keeps digging to the body.`,`Another one downstairs from {a}.`],payoff:[`The body work is paying off. {b} is slowing down.`,`Those body shots are taking it out of {b}.`,`{a} has invested in the body, and {b} is paying for it now.`],tiring:[`{b} is running on empty.`,`{b} is breathing hard. Those punches have nothing on them.`,`{b} has punched out. The tank is empty.`],takeover:[`{a} is taking over this round.`,`This is all {a} right now.`,`{a} is in complete control.`],clinch:[`{a} ties {b} up.`,`{a} grabs hold.`,`They're tied up in the clinch.`],holdingOn:[`{a} is hurt and holding on!`,`{a} grabs on for dear life!`,`Smart from {a}, holding on to clear the head.`],refBreak:[`The referee breaks them.`,`The referee steps in to separate them.`,`Break! The referee pulls them apart.`],refHit:[`{a} just tagged the referee!`,`Oh no, {a} has caught the referee!`,`That one landed on the referee!`],refDown:[`The referee is down! {a} has killed the referee!`,`Oh my goodness, the referee isn't moving! I think he's dead!`,`{a} has flattened the official for good! Absolute chaos!`],refBledOut:[`The referee has collapsed! He's bled out right there in the ring!`,`The referee goes down! He's lost too much blood!`],noRef:[`Nobody left to break them up!`,`No referee to part them, so they just let go.`],taunt:[`{a} drops the hands and invites {b} in!`,`Showboating from {a}! The crowd loves it.`,`{a} is taunting {b} now!`,`{a} sticks the chin out. Come and get it!`],lowBlow:[`Low blow from {a}! The referee steps in.`,`That's below the belt! {b} is doubled over.`,`{a} goes low, and the referee calls time.`],headbutt:[`Headbutt from {a}! The referee calls time.`,`{a} leads with the head! That's a foul.`],warning:[`A warning for {a}. One more and it costs a point.`,`The referee warns {a}. That can't happen again.`],deduction:[`The referee takes a point from {a}!`,`That costs {a} a point!`,`Point deduction! {a} has been warned enough.`],resume:[`And we're back underway.`,`Time in. Let's box.`],box:[`The referee waves them on. {b} has to survive now.`,`Box! {a} will be looking to finish it.`,`{b} has convinced the referee. Here comes {a}.`],evade:[`{a} slips it! Lovely head movement.`,`{b} misses, and {a} was never there.`,`Great defence from {a}.`],parry:[`{a} picks that off with the gloves.`,`{a} parries it away.`,`Tight defence from {a}.`],whiff:[`{a} misses wildly with the {punch}.`,`Big swing and a miss from {a}.`,`{a} throws everything into that {punch} and hits nothing but air.`],southpaw:[`{a} switches to southpaw.`,`{a} turns southpaw now.`],orthodox:[`{a} goes back to orthodox.`,`{a} switches back to orthodox.`],roundStart:[`Round {r}. Here we go.`,`We're underway in round {r}.`,`Round {r} is on.`],roundEnd:[`That's the bell to end round {r}.`,`The bell ends round {r}.`,`And that's round {r} in the books.`],savedByBell:[`Saved by the bell! {b} was in real trouble.`,`{b} is saved by the bell!`,`The bell rescues {b}!`],finalBell:[`That's the final bell!`,`The final bell! We go to the scorecards.`],summary:[`Round {r}: {a} landed {x} of {y}, {b} {z} of {w}.`],roundFor:[`I had that round for {a}.`,`{a} took that round.`,`That was {a}'s round.`],roundBig:[`The knockdown makes that a big round for {a}.`,`{a} wins that round big with the knockdown.`],roundClose:[`Close round. That one could go either way.`,`Tough round to score.`,`Nothing between them in that round.`],pullingAway:[`{a} is pulling away on the cards.`,`{b} needs something big. {a} is building a lead.`],ko:[`It's all over! {a} wins by knockout!`,`{b} can't beat the count! {a} wins it!`,`That's it! {a} has knocked out {b}!`],flashKo:[`Lights out! {b} is out cold!`,`One punch, and it's over! {a} wins!`,`Good night! {a} ends it with one shot!`],tko:[`Three knockdowns, and it's over! {a} wins!`,`The referee waves it off! {a} wins by stoppage!`],disqualified:[`{b} is disqualified!`,`That's it! {b} has been thrown out!`],forfeit:[`{b} has left the ring. {a} wins by forfeit.`],replay:[`Here it is again.`,`Let's see that one more time.`,`Watch {a} set it up...`],injBrokenNose:[`{b}'s nose is now mostly a suggestion.`,`That nose is broken. It is pointing at the exit, and so should {b}.`,`{a} has moved {b}'s nose to a different part of his face.`],injBrokenJaw:[`{b}'s jaw is broken. It is hanging off his face like a drawer left open.`,`That jaw has gone sideways. {b} will be eating through a straw, if he lives.`,`You can hear {b}'s jaw clicking from up here. That is not a good sound.`],injJawTorn:[`That is his jaw in the third row.`,`{a} has torn {b}'s jaw clean off! Somebody at ringside just caught a souvenir.`,`{b} has no lower jaw. His tongue is just hanging there like a necktie.`],injEyeOut:[`{b}'s {side} eye is out of his head! It is swinging on the nerve like a yo-yo.`,`The {side} eye has popped its socket. It is looking at {b}'s own cheek.`,`{a} has punched {b}'s {side} eye clean out. He can see his own shoes with it.`],injEarTorn:[`That is {b}'s {side} ear on the canvas. Somebody just trod on it.`,`{a} has taken the {side} ear clean off. {b} did not want to hear this anyway.`,`The {side} ear is gone. I think it is stuck to {a}'s glove.`],injFaceFlayed:[`The {side} half of {b}'s face has come off like a wet sock.`,`I can see {b}'s teeth through his {side} cheek. All of them.`,`{a} has peeled {b}'s face. That is muscle. That is bone. That is my lunch coming back up.`],injSkull:[`{b}'s skull has split open. That is his brain. I can see it thinking.`,`The top of {b}'s head is open like a boiled egg, and he is still standing.`,`That is brain, folks. One more upstairs and {b} forgets everything, permanently.`],injShoulder:[`{b}'s {side} shoulder has popped out. The arm is hanging like a coat on a hook.`,`The {side} shoulder is out of its socket. It is not supposed to be down there.`,`{b}'s {side} arm has come unplugged. His corner can shove it back in at the bell.`],injArmBroken:[`{b}'s {side} arm has snapped! The bone is out and waving at the crowd.`,`That {side} elbow now bends both ways. It is only meant to bend the one.`,`Compound fracture! {b}'s {side} forearm is dangling by the meat.`],injForearmSevered:[`{b}'s {side} forearm is off! The glove is still making a fist over there on the canvas.`,`{a} has taken the {side} arm off at the elbow, and {b} is punching with the stump!`,`There goes the {side} forearm. Somebody put it on ice. Actually, do not bother.`],injArmTorn:[`{a} has ripped {b}'s {side} arm off at the shoulder! It is on the canvas, still twitching!`,`The whole {side} arm is gone. That shoulder is a fire hose.`,`{b} has lost the {side} arm. The judges will take that into account.`],injRibs:[`{b}'s {side} ribs have caved in. One is sticking out of him like a coat hanger.`,`Those {side} ribs are through the skin. You can count them. I make it four.`,`The {side} side of {b} just folded like a lawn chair.`],injLiver:[`That is the liver, and it has burst. {b} is about to show us everything he ate today.`,`{b}'s liver just exploded inside him. He is turning a colour I have only seen on old fruit.`,`Liver shot, and it popped. {b} is filling up with blood on the inside.`],injDisemboweled:[`{b}'s belly is open and his guts are on the canvas! He is treading on them!`,`He is holding his intestines in with his glove and he still wants to fight.`,`{a} has unzipped {b} from hip to hip. That is twenty feet of intestine, and it is all coming out.`],injKnee:[`{b}'s {side} knee is bending the wrong way. Knees should not have a reverse gear.`,`The {side} knee has blown apart. I can see the kneecap. It is over by the ropes.`,`{b}'s {side} leg is held on by skin and optimism.`],ghastly:[`I would stop this fight. Nobody is going to stop this fight.`,`In any other sport that is a penalty.`,`{b} will feel that in the morning, if he gets one.`,`There are children watching this. They are cheering.`],shoulderBack:[`{b}'s corner has shoved the {side} shoulder back in. You could hear it from the cheap seats.`,`The {side} shoulder is back in its socket. {b} screamed, and then he said thank you.`,`They have popped {b}'s {side} shoulder back in. Good as new. It is not, but good as new.`],vomit:[`{a} is throwing up blood and bile all over the canvas. Mind your step.`,`There it goes. {a} is vomiting something black. That is the liver talking.`,`{a} is sick down his own chest. Blood, bile, and I think that was a tooth.`],finishHim:[`{b} is out on his feet and nobody is stopping it! Finish him!`,`{b} is just standing there, dead behind the eyes. {a} can do anything he likes with him.`,`This is it. {a} gets one free punch, and {b} will not be getting up from it. Ever.`],armless:[`{a} is trying to punch with arms he no longer has.`,`{a} just threw a punch. I will let somebody else tell him.`,`No arms, and {a} is still swinging. You have to admire it. You do not have to watch it.`,`{a} is waving two stumps at him. That is not a guard. That is a cry for help.`],fatEyesOut:[`{a} has punched both of {b}'s eyes out through the back of his head!`,`Two eyes, one punch! They are rolling across the ring. One of them is looking at me.`,`{b}'s eyes are out, and so is {b}. There is daylight coming through his face.`],fatHeadBurst:[`{b}'s head has exploded! It is just gone! It is all over the first three rows!`,`{a} hit him so hard his head burst like a dropped melon. The front row is wearing {b}.`],fatDecapitation:[`{a} has taken {b}'s head clean off! It is in the crowd! Somebody is holding it up!`,`Off comes the head! The body is still standing there, looking for it.`],fatSpineRip:[`The uppercut takes {b}'s head off, and his spine comes with it! All of it! Like boning a fish!`,`{b}'s head is in the air with the whole spine dangling off it. I have never seen that. Nobody has.`],fatHeartPunch:[`{a}'s fist has gone straight through {b}'s chest! That is his heart on the canvas, and it is still beating!`,`In through the chest and out the back! {a} is wearing {b} like a bracelet.`],fatGutting:[`{a} has emptied {b} onto the canvas! Everything he kept inside is now outside!`,`One straight to the gut and it all falls out. Liver, stomach, the lot. {b} is hollow.`],fatBisection:[`{a} has torn {b} in half at the waist! The legs are still standing! The top half is trying to crawl away!`,`{b} is in two pieces. The judges will have to score each half separately.`],fatTotalGib:[`{b} has exploded! There is nothing left! It is raining {b}!`,`{a} hit him and he just came apart. There are bits of {b} on the lights. There is a foot in my coffee.`],deathBledOut:[`{b} has bled to death, right there in the ring. There is more of him on the canvas than in him.`,`{b} is gone. He ran out of blood. You do need some.`,`And {b} just drops. Bled out. They will need a mop and a priest.`],deathBrain:[`That was the last of {b}'s brain, and {a} has punched it into soup. He is dead before he lands.`,`{b} is dead. His brain has left through the hole in his skull.`,`{b} is dead. You cannot fight without a brain. Plenty have tried.`],deathGutted:[`{b} is dead. {a} has punched what was left of his insides clean out of him.`,`That body shot went in one side and out the other. {b} is done, and I mean buried.`,`{b} has been gutted like a fish, and he has died like one, flapping.`],deathFatality:[`He is dead. I would like that on the record. {b} is extremely dead.`,`I have been doing this thirty years. I am going to need a different job.`,`Somebody tell {b}'s corner they can stop shouting advice.`],doubleDeath:[`They are both dead. Both of them. I do not know who to interview.`,`Two fighters, no survivors. The judges are going to hate this.`,`{a} and {b} have killed each other. Call it a draw. Call somebody.`]},hR={ko:`ko`,flash_ko:`flashKo`,tko:`tko`,disqualification:`disqualified`,forfeit:`forfeit`},gR={broken_nose:`injBrokenNose`,broken_jaw:`injBrokenJaw`,jaw_torn:`injJawTorn`,eye_out:`injEyeOut`,ear_torn:`injEarTorn`,face_flayed:`injFaceFlayed`,skull_fractured:`injSkull`,shoulder_dislocated:`injShoulder`,arm_broken:`injArmBroken`,forearm_severed:`injForearmSevered`,arm_torn:`injArmTorn`,ribs_broken:`injRibs`,liver_ruptured:`injLiver`,disemboweled:`injDisemboweled`,knee_blown:`injKnee`},_R={eyes_out:`fatEyesOut`,head_burst:`fatHeadBurst`,decapitation:`fatDecapitation`,spine_rip:`fatSpineRip`,heart_punch:`fatHeartPunch`,gutting:`fatGutting`,bisection:`fatBisection`,total_gib:`fatTotalGib`},vR={bled_out:`deathBledOut`,brain:`deathBrain`,gutted:`deathGutted`},yR=new Set([`injJawTorn`,`injEyeOut`,`injFaceFlayed`,`injSkull`,`injForearmSevered`,`injArmTorn`,`injDisemboweled`,`finishHim`,`fatEyesOut`,`fatHeadBurst`,`fatDecapitation`,`fatSpineRip`,`fatHeartPunch`,`fatGutting`,`fatBisection`,`fatTotalGib`,`deathBledOut`,`deathBrain`,`deathGutted`,`deathFatality`,`doubleDeath`]),bR={struggle:new Set([`knockdown`]),finishHim:new Set([`finish`])},xR=3.2,SR=4,CR=`struggle`,wR=new Set([`countdown`]),TR=3.2,ER=new Set([`knockdown`,`knockdownAgain`,`knockdownCounter`,`knockdownBody`,`bodyCollapse`,`upLate`,`upEarly`,`hurt`,`hurtBadly`,`lowBlow`,`headbutt`,`deduction`,`ko`,`flashKo`,`tko`,`disqualified`,`forfeit`,`replay`,`refDown`,`refBledOut`,`savedByBell`,`finalBell`,`roundEnd`,`roundStart`,`injBrokenNose`,`injBrokenJaw`,`injEarTorn`,`injShoulder`,`injArmBroken`,`injRibs`,`injLiver`,`injKnee`,...yR]),DR=new Set([`lowBlow`,`headbutt`,`warning`,`deduction`,`box`,`tko`]),OR={fatEyesOut:99,fatHeadBurst:99,fatDecapitation:99,fatSpineRip:99,fatHeartPunch:99,fatGutting:99,fatBisection:99,fatTotalGib:99,doubleDeath:99,deathBledOut:98,deathBrain:98,deathGutted:98,deathFatality:98,finishHim:97,injJawTorn:96,injEyeOut:96,injFaceFlayed:96,injSkull:96,injForearmSevered:96,injArmTorn:96,injDisemboweled:96,injBrokenNose:85,injBrokenJaw:85,injEarTorn:85,injShoulder:85,injArmBroken:85,injRibs:85,injLiver:85,injKnee:85,vomit:66,shoulderBack:47,ghastly:44,armless:40,ko:98,flashKo:98,tko:98,disqualified:98,forfeit:98,refDown:97,refBledOut:97,refHit:72,knockdown:95,knockdownAgain:95,knockdownCounter:95,knockdownBody:95,bodyCollapse:86,upLate:90,upEarly:90,replay:88,deduction:84,lowBlow:82,headbutt:82,hurt:80,box:78,hurtBadly:80,holdingOn:76,savedByBell:74,finalBell:72,struggle:70,guardBreak:65,eyeShut:62,counter:60,parried:58,bigShot:55,roundEnd:52,cut:50,cutWorse:50,summary:50,cutGushing:48,eyeSwelling:48,cornerCut:47,cornerSwelling:47,cornerBreath:47,blindSide:42,roundFor:46,roundBig:46,roundClose:46,pullingAway:46,unanswered:45,finishCall:44,warning:42,combo:40,payoff:40,takeover:38,body:35,jab:30,tiring:30,roundStart:28,taunt:25,parry:22,evade:20,clinch:20,whiff:18,refBreak:12,noRef:12,southpaw:10,orthodox:10,resume:10},kR={finishCall:`colour`,payoff:`colour`,tiring:`colour`,takeover:`colour`,holdingOn:`colour`,taunt:`colour`,parry:`colour`,evade:`colour`,warning:`colour`,blindSide:`colour`,cornerCut:`colour`,cornerSwelling:`colour`,cornerBreath:`colour`,roundFor:`colour`,roundBig:`colour`,roundClose:`colour`,pullingAway:`colour`,cutGushing:`colour`,noRef:`colour`,jab:`colour`,ghastly:`colour`,shoulderBack:`colour`,vomit:`colour`,deathFatality:`colour`,doubleDeath:`colour`,armless:`colour`},AR={combo:6,jab:20,body:18,evade:12,parry:15,parried:8,blindSide:20,whiff:12,clinch:15,refBreak:20,taunt:10,southpaw:15,orthodox:15,bigShot:4,counter:3,unanswered:15,takeover:25,vomit:20,ghastly:14,armless:12},jR=[`zero`,`one`,`two`,`three`,`four`,`five`,`six`,`seven`,`eight`,`nine`,`ten`,`eleven`,`twelve`,`thirteen`,`fourteen`,`fifteen`],MR=e=>jR[e]??String(e),NR=[...jR,`sixteen`,`seventeen`,`eighteen`,`nineteen`],PR=[``,``,`twenty`,`thirty`,`forty`,`fifty`,`sixty`,`seventy`,`eighty`,`ninety`];function FR(e){return!Number.isInteger(e)||e<0||e>=1e3?String(e):e<20?NR[e]:e<100?`${PR[Math.floor(e/10)]}${e%10==0?``:`-${NR[e%10]}`}`:`${NR[Math.floor(e/100)]} hundred${e%100==0?``:` and ${FR(e%100)}`}`}function IR(e,t=!0){if(Be(e))return`making a pro debut`;let n=e.draws>0?`${FR(e.wins)}, ${FR(e.losses)} and ${FR(e.draws)}`:`${FR(e.wins)} and ${e.losses===0?`oh`:FR(e.losses)}`;return t&&e.knockouts>0?`${n}, ${FR(e.knockouts)} by knockout`:n}function LR(e){return .85+e.length*.077+(e.split(`...`).length-1)*.35}var RR=.3;function zR(e,t){let n=t-RR,r=[e=>[e.record===void 0?null:IR(e.record),Vt(e.style)],e=>[Vt(e.style)],()=>[]];for(let t of r){let r=e.map((e,n)=>{let r=n===0?`In the blue corner`:`And in the red corner`,i=t(e).filter(e=>e!==null);return i.length===0?`${r}, ${e.name}!`:`${r}, ${i.join(`, `)}... ${e.name}!`});if(r.reduce((e,t)=>e+LR(t),0)<=n)return r}let i=`${e[0].name}... versus ${e[1].name}!`;return LR(i)<=n?[i]:[]}function BR(e,t){let n=e.replace(/\{(a|b|n|side|punch|r|x|y|z|w)\}/gu,(e,n)=>String(t[n]??``));return n.charAt(0).toUpperCase()+n.slice(1)}var VR=(e,t)=>{let n=Math.imul((e|0)^Math.imul(t,2654435761),2246822507);return n^=n>>>13,n=Math.imul(n,3266489909),(n^n>>>16)>>>0};function HR(e){let t=e.split(`:`);return[t.at(-2),t.at(-1)]}function UR(e,t){let[n=`punch`,r=`head`]=HR(e),i=t!==void 0&&t.action===n?t.action_hand:null,a=n===`jab`?`jab`:n===`straight`?i===null?`straight`:`${i} hand`:i===null?n:`${i} ${n}`;return r===`body`?`${a} to the body`:a}function WR(e){if(e.phase===`knockdown`){let t=Math.max(...e.fighters.map(e=>e.get_up_count));return Math.min(1,.3+t*.07)}if(e.phase===`finish`)return 1;if(e.phase!==`fight`)return 0;let t=0;for(let[n,r]of e.fighters.entries()){let i=e.fighters[1-n];r.is_downed||(r.stunned_ticks>0?t=Math.max(t,.75):r.poise<150&&(t=Math.max(t,.45)),(Math.max(Math.abs(r.x),Math.abs(r.y))>400||Math.abs(r.x)+Math.abs(r.y)>640)&&Math.hypot(r.x-i.x,r.y-i.y)<150&&(t=Math.max(t,.4)))}return t}var GR=()=>({thrown:0,landed:0,damage:0,knockdowns:0,body:0}),KR=()=>({jabs:[],window:[],evasions:[],run:0,runTick:-1e3,unanswered:0,stunnedAt:-1e3,knockedDownAt:-1e5,lowSince:null,tiredRound:0,takeoverRound:0,payoffRound:0,cutMarks:[0,0],eyeShut:[!1,!1],eyeSwelling:[!1,!1],rounds:0}),qR=class{hooks;queue=[];showing=null;lastEnd=-1/0;lastChoice=new Map;cooldowns=new Map;notes=new Map;tallies=new Map;players={};fighters=null;tickRate=30;introduced=!1;lastPhase=null;round=0;roundLength=null;fightRemaining=0;struggleCalled=-1;lastKnockdown=null;refereeDead=!1;final=null;verdictGiven=!1;resultCalled=!1;deaths=new Map;caption={line:null,opacity:0,entering:0};constructor(e={}){this.hooks=e}observe(e,t,n,r,i){this.players=n,this.fighters=e.fighters,this.refereeDead=e.referee?.alive===!1,this.tickRate=r,this.trackClock(e),this.introduced||(this.introduced=!0,e.phase===`countdown`&&e.round_number===1&&this.introduce(e,i));let a=t.find(e=>e.kind===`result`)??null;for(let n of t)this.consider(n,e,a,i);this.inspect(e,i),this.lastPhase=e.phase,this.dropOutOfPhase(e.phase,i)}dropOutOfPhase(e,t){for(let t=this.queue.length-1;t>=0;--t){let n=this.queue[t].phases;n!==null&&!n.has(e)&&this.queue.splice(t,1)}let n=this.showing;n!==null&&n.phases!==null&&!n.phases.has(e)&&(n.end=Math.min(n.end,t+ZL))}finish(e,t,n,r){this.players=t,this.final=e,n&&this.deaths.size<2&&(this.enqueue(this.announcement(`Ladies and gentlemen, we go to the scorecards.`,{kicker:`LADIES AND GENTLEMEN`,title:`WE GO TO THE SCORECARDS`,detail:``,corner:null},iR,99),r,null,30),this.hooks.speak?.([`Ladies and gentlemen, we go to the scorecards.`])),e.method===`forfeit`&&!this.resultCalled&&e.winner_id!==null&&(this.resultCalled=!0,this.say(`forfeit`,e.round,r,{a:this.nameOf(e.winner_id),b:this.nameOf(this.otherId(e.winner_id))},`result`,0))}verdict(e){let t=this.final;if(t===null||this.verdictGiven)return;this.verdictGiven=!0;let n=dr(t);if(t.winner_id===null&&this.deaths.size>=2){let n=`Ladies and gentlemen, both fighters are dead. There is no winner.`;this.enqueue(this.announcement(n,{kicker:`ROUND ${t.round}`,title:`DOUBLE DEATH`,detail:`NO SURVIVORS`,corner:null},rR,100),e,`verdict`,30),this.hooks.speak?.([n]);return}if(t.winner_id===null){let r=`After ${MR(t.round)} rounds, this bout is scored a ${n.toLowerCase()}.`;this.enqueue(this.announcement(r,{kicker:`AFTER ${MR(t.round).toUpperCase()} ROUNDS`,title:n,detail:``,corner:null},rR,100),e,`verdict`,30),this.hooks.speak?.([r]);return}let r=this.nameOf(t.winner_id),i=n.toLowerCase();this.enqueue(this.announcement(`The winner, by ${i}: ${r}!`,{kicker:`THE WINNER, BY ${n}`,title:r.toUpperCase(),detail:``,corner:this.seatOf(t.winner_id)},rR,100),e,`verdict`,30),this.hooks.speak?.([`And the winner, by ${i}... ${r}!`])}resultShown(e){let t=this.final;if(t===null||this.verdictGiven)return;if(t.method===`decision`||t.method===`draw`){this.verdict(e);return}if(this.verdictGiven=!0,t.winner_id===null)return;let n=this.nameOf(t.winner_id),r=this.otherId(t.winner_id),i=t.method===`death`,a=i&&r!==null?this.deaths.get(r)??null:null,o=i?a!==null&&ke(a)!==null?`fatality`:`death`:{ko:`knockout`,flash_ko:`knockout`,tko:`technical knockout`,disqualification:`disqualification`,forfeit:`forfeit`}[t.method]??t.method.replaceAll(`_`,` `),s=this.stoppageClock(t.round),c=t.method===`ko`||t.method===`flash_ko`||t.method===`tko`||i,l=c&&s!==null?`${i?`DEAD`:`STOPPED`} AT ${s} OF ROUND ${t.round}`:`ROUND ${t.round}`,u=c&&s!==null?`${n} wins by ${o} at ${s} of round ${t.round}.`:`${n} wins by ${o} in round ${t.round}.`,d=`WINS BY ${o.toUpperCase()}${a===null?``:` · ${Ae(a)}`}`;this.enqueue(this.announcement(u,{kicker:l,title:n.toUpperCase(),detail:d,corner:this.seatOf(t.winner_id)},rR,100),e,`verdict`,30);let f=i?`${this.nameOf(r)} is dead`:this.refereeDead?`With the referee dead on the canvas, it is over`:`The referee stops the contest`,p=c&&s!==null?`${f} at ${s} of round ${MR(t.round)}. `:``;this.hooks.speak?.([`${p}Your winner, by ${o}... ${n}!`])}replay(e,t=null){let n=t?.kind===`referee_down`?{actor:t.actor_id,target:null,tick:t.tick}:this.lastKnockdown;this.say(`replay`,n?.tick??0,e,{a:this.nameOf(n?.actor??null),b:this.nameOf(n?.target??null)},`replay`,.6,6)}current(e){for(let t=this.queue.length-1;t>=0;--t)this.queue[t].expires<=e&&this.queue.splice(t,1);this.showing!==null&&e>=this.showing.end&&(this.lastEnd=this.showing.end,this.showing=null);let t=null;for(let n of this.queue)n.at>e||(t===null||n.line.priority>t.line.priority||n.line.priority===t.line.priority&&n.at=this.lastEnd+XL:t.line.urgent&&t.line.priority>n.line.priority&&e-n.start>=tR)&&(this.queue.splice(this.queue.indexOf(t),1),this.showing={line:t.line,start:e,end:e+t.line.hold,moment:t.moment,phases:t.phases},t.spoken!==null&&this.hooks.speak?.([t.spoken]))}let n=this.showing;return n===null?null:(this.caption.line=n.line,this.caption.opacity=Math.max(0,Math.min(1,(e-n.start)/ZL,(n.end-e)/ZL)),this.caption.entering=Math.max(0,1-(e-n.start)/ZL),this.caption)}trackClock(e){e.phase===`fight`&&((this.lastPhase===`countdown`||this.lastPhase===`rest`)&&(this.roundLength={round:e.round_number,ticks:e.phase_ticks_remaining+1}),this.fightRemaining=e.phase_ticks_remaining),e.round_number!==this.round&&(this.round=e.round_number,this.tallies.clear())}stoppageClock(e){let t=this.roundLength;if(t===null||t.round!==e)return null;let n=Math.max(0,Math.floor((t.ticks-this.fightRemaining)/this.tickRate));return`${Math.floor(n/60)}:${String(n%60).padStart(2,`0`)}`}introduce(e,t){let n=e.phase_ticks_remaining/this.tickRate;if(n<1.2)return;let r=e.fighters.map(e=>this.nameOf(e.player_id)),i=e.fighters.map((e,t)=>({name:r[t],record:this.players[e.player_id]?.record,style:e.style})),a=zR([i[0],i[1]],n),o=Math.max(1.4,a.length===2?LR(a[0]):n/2),s=[o,Math.max(1.4,n-o)];for(let n of[0,1]){let i=n===0?`blue`:`red`,c=this.players[e.fighters[n].player_id],l=Bt(e.fighters[n].style),u=c===void 0?``:`${l===null?``:`${l} · `}${c.record===void 0?``:`${Ve(c.record)} · `}${c.cpu===!0?`COMPUTER`:`RATED ${c.rating}`}`;this.enqueue(this.announcement(`In the ${i} corner, ${r[n]}.`,{kicker:`IN THE ${i.toUpperCase()} CORNER`,title:r[n].toUpperCase(),detail:u,corner:n},s[n],97),t+n*o,null,30,wR,a[n]??null)}}consider(e,t,n,r){let i=e.actor_id,a=e.target_id,o=`${e.tick}:${a??i??``}`,s={a:this.nameOf(i),b:this.nameOf(a)};switch(e.kind){case`punch_start`:i!==null&&(this.tally(i).thrown+=1);return;case`hit`:case`counter_hit`:i!==null&&a!==null&&!lr(e,t.events)&&this.landed(e,i,a,t,r);return;case`stun`:{if(a===null)return;this.notesFor(a).stunnedAt=e.tick;let t=this.fighter(a),n=t!==void 0&&(t.poise=A-6);this.say(n?`hurtBadly`:`hurt`,e.event_id,r,s,o);return}case`guard_break`:this.say(`guardBreak`,e.event_id,r,s,o);return;case`knockdown`:{if(a===null||(this.lastKnockdown={actor:i,target:a,tick:e.tick},this.notesFor(a).knockedDownAt=e.tick,i!==null&&(this.tally(i).knockdowns+=1),n!==null))return;let c=t.events.some(t=>t.kind===`counter_hit`&&t.tick===e.tick&&t.target_id===a);this.say(e.amount>=2?`knockdownAgain`:e.detail===`body`?`knockdownBody`:c?`knockdownCounter`:`knockdown`,e.event_id,r,s,o);return}case`body_collapse`:this.say(`bodyCollapse`,e.event_id,r,s,o);return;case`parry`:this.say(`parried`,e.event_id,r,s,o,YL,void 0,i);return;case`eye_shut`:if(a===null||e.detail!==`left`&&e.detail!==`right`)return;this.notesFor(a).eyeShut[e.detail===`left`?0:1]=!0,this.say(`eyeShut`,e.event_id,r,{...s,side:e.detail},o);return;case`blind_side`:if(e.detail!==`left`&&e.detail!==`right`)return;this.say(`blindSide`,e.event_id,r,{...s,side:e.detail},null,YL,void 0,i);return;case`corner`:{let t=e.detail===`cut`?`cornerCut`:e.detail===`swelling`?`cornerSwelling`:e.detail===`breath`?`cornerBreath`:null;t!==null&&this.say(t,e.event_id,r,s,null,YL,void 0,i);return}case`count`:e.amount>=6&&this.struggleCalled!==this.lastKnockdown?.tick&&this.fighter(a)?.is_downed===!0&&(this.struggleCalled=this.lastKnockdown?.tick??e.tick,this.say(`struggle`,e.event_id,r,{a:this.nameOf(this.otherId(a)),b:this.nameOf(a)},CR));return;case`get_up`:{for(let e=this.queue.length-1;e>=0;--e)this.queue[e].moment===CR&&this.queue.splice(e,1);this.showing?.moment===CR&&(this.showing.end=Math.min(this.showing.end,r+ZL));let t={a:this.nameOf(this.otherId(i)),b:this.nameOf(i),n:MR(e.amount)};this.say(e.amount>=8?`upLate`:`upEarly`,e.event_id,r,t,o),this.say(`finishCall`,e.event_id,r,t,null,3.4,4);return}case`perfect_block`:this.say(`parry`,e.event_id,r,s,o,YL,void 0,i);return;case`evade`:{if(i===null)return;let t=this.notesFor(i);t.evasions=t.evasions.filter(t=>t>e.tick-cR*this.tickRate),t.evasions.push(e.tick),(this.fighter(a)?.action_power===`power`||t.evasions.length>=3)&&this.say(`evade`,e.event_id,r,s,o,YL,void 0,i)&&(t.evasions.length=0);return}case`whiff`:{let t=this.fighter(i);if(t?.action_power!==`power`||t.action===null)return;this.say(`whiff`,e.event_id,r,{...s,punch:UR(`${t.action}:${t.action_target??`head`}`,t)},o,YL,void 0,i);return}case`clinch`:{if(i===null)return;let t=this.fighter(i),n=e.tick-this.notesFor(i).stunnedAt<=3*this.tickRate||t!==void 0&&t.poise<150;this.say(n?`holdingOn`:`clinch`,e.event_id,r,s,o,YL,void 0,i);return}case`referee_break`:this.say(`refBreak`,e.event_id,r,s,null,YL,void 0,`referee`);return;case`referee_hit`:this.say(`refHit`,e.event_id,r,s,o,YL,void 0,i);return;case`referee_down`:this.say(e.action_id===null?`refBledOut`:`refDown`,e.event_id,r,s,o);return;case`clinch_break`:this.say(`noRef`,e.event_id,r,s,null,YL);return;case`taunt`:this.say(`taunt`,e.event_id,r,{a:s.a,b:this.nameOf(this.otherId(i))},o,YL,void 0,i);return;case`foul`:this.say(e.detail===`headbutt`?`headbutt`:`lowBlow`,e.event_id,r,s,o),this.fighter(i)?.warnings===1&&this.say(`warning`,e.event_id,r,s,null,3.6,4);return;case`point_deduction`:this.say(`deduction`,e.event_id,r,s,`deduction:${e.tick}`);return;case`resume`:this.say(`resume`,e.event_id,r,s,null);return;case`box`:this.say(`box`,e.event_id,r,{a:this.nameOf(this.otherId(a)),b:this.nameOf(a)},o);return;case`stance`:this.say(e.detail===`southpaw`?`southpaw`:`orthodox`,e.event_id,r,s,null,YL,void 0,i);return;case`exhausted`:i!==null&&this.tired(i,e.event_id,r);return;case`bell`:e.detail===`round_start`?(this.tallies.clear(),t.round_number>=2&&this.say(`roundStart`,e.event_id,r,{r:t.round_number},null,YL,TR)):e.detail===`round_end`&&this.roundEnded(e,t,n,r);return;case`injury`:{let n=me.find(t=>t===e.detail);if(a===null||n===void 0)return;let i=gR[N(n)],c={...s,side:we(n)??``};!yR.has(i)&&t.events.some(t=>t.kind===`knockdown`&&t.tick===e.tick&&t.target_id===a)?this.sayAt(i,e.event_id,r+xR,c,8):this.say(i,e.event_id,r,c,o),yR.has(i)&&this.say(`ghastly`,e.event_id,r,s,null,3.8,4);return}case`injury_healed`:{let t=me.find(t=>t===e.detail);if(t===void 0||N(t)!==`shoulder_dislocated`)return;this.sayAt(`shoulderBack`,e.event_id,r+SR,{b:this.nameOf(a??i),side:we(t)??``},9);return}case`armless`:this.say(`armless`,e.event_id,r,s,null,YL,void 0,i);return;case`vomit`:this.say(`vomit`,e.event_id,r,{a:this.nameOf(i??a)},o,YL,void 0,i??a);return;case`finish_him`:this.say(`finishHim`,e.event_id,r,s,o,0);return;case`fatality`:{let t=ge.find(t=>t===e.detail);t!==void 0&&this.say(_R[t],e.event_id,r,s,o,0);return}case`death`:{let t=Oe(e.detail);if(t===null||a===null)return;this.deaths.set(a,t);let n={a:this.nameOf(i??this.otherId(a)),b:s.b};this.deaths.size>=2?this.say(`doubleDeath`,e.event_id,r,n,null,.6):t===`bled_out`||t===`brain`||t===`gutted`?this.say(vR[t],e.event_id,r,n,o,0):this.say(`deathFatality`,e.event_id,r,n,null,3.6);return}case`result`:this.resulted(e,r);return;default:return}}landed(e,t,n,r,i){let[a,o]=HR(e.detail),s=this.tally(t);s.landed+=1,s.damage+=e.amount,o===`body`&&(s.body+=1);let c=this.notesFor(t),l=this.notesFor(n);l.run=0,l.unanswered=0,c.run=e.tick-c.runTick<=aR?c.run+1:1,c.runTick=e.tick,c.unanswered+=1,c.window=c.window.filter(t=>t>e.tick-sR*this.tickRate),c.window.push(e.tick);let u=`${e.tick}:${n}`,d=r.fighters.find(e=>e.player_id===t),f={a:this.nameOf(t),b:this.nameOf(n),punch:UR(e.detail,d)},p=d?.action_power===`power`&&d.action===a;if(e.kind===`counter_hit`&&e.amount>=40?this.say(`counter`,e.event_id,i,f,u,YL,void 0,t):(e.amount>=85||p&&o===`head`&&e.amount>=60)&&this.say(`bigShot`,e.event_id,i,f,u,YL,void 0,t),c.unanswered===5?this.say(`unanswered`,e.event_id,i,f,u,YL,void 0,t):c.run===3&&this.say(`combo`,e.event_id,i,f,u,YL,void 0,t),a===`jab`&&(c.jabs=c.jabs.filter(t=>t>e.tick-oR*this.tickRate),c.jabs.push(e.tick),c.jabs.length>=3&&this.say(`jab`,e.event_id,i,f,null,YL,void 0,t)&&(c.jabs.length=0)),o===`body`){let a=this.fighter(n);a!==void 0&&s.body>=5&&a.staminat>e.tick-sR*this.tickRate).length;c.window.length>=7&&m<=2&&c.takeoverRound!==r.round_number&&(c.takeoverRound=r.round_number,this.say(`takeover`,e.event_id,i,f,null,YL,void 0,t)&&this.hooks.cue?.(`chant`))}roundEnded(e,t,n,r){let i=t.round_number;if(n!==null){(n.detail===`decision`||n.detail===`draw`)&&this.say(`finalBell`,e.event_id,r,{},`bell`,YL,TR);return}let a=t.fighters.find(t=>{let n=this.notesFor(t.player_id);return t.stunned_ticks>0||t.poise({id:e.player_id,tally:this.tally(e.player_id)})),[c,l]=o.tally.landed>=s.tally.landed?[o,s]:[s,o];c.tally.thrown+l.tally.thrown>0&&this.sayAt(`summary`,e.event_id,r+2.4,{r:i,a:this.nameOf(c.id),x:c.tally.landed,y:c.tally.thrown,b:this.nameOf(l.id),z:l.tally.landed,w:l.tally.thrown},5);let u=(o.tally.knockdowns-s.tally.knockdowns)*1e3+(o.tally.damage-s.tally.damage)+6*(o.tally.landed-s.tally.landed),d=Math.abs(u)0?o:s;d!==null&&(this.notesFor(d.id).rounds+=1);let f=d===null?null:d===o?s:o,p=d===null||f===null?0:this.notesFor(d.id).rounds-this.notesFor(f.id).rounds,m=d===null?`roundClose`:o.tally.knockdowns===s.tally.knockdowns?i>=2&&p>=2?`pullingAway`:`roundFor`:`roundBig`;this.sayAt(m,e.event_id,r+6.4,{a:this.nameOf(d?.id??null),b:this.nameOf(f?.id??null)},5)}resulted(e,t){let n=hR[e.detail];if(n===void 0||this.resultCalled)return;this.resultCalled=!0;let r=e.actor_id;this.say(n,e.event_id,t,{a:this.nameOf(r),b:this.nameOf(this.otherId(r))},`result`,0)}inspect(e,t){if(e.phase===`fight`)for(let n of e.fighters){let r=this.notesFor(n.player_id),i={a:this.nameOf(this.otherId(n.player_id)),b:this.nameOf(n.player_id)};for(let[a,o]of[[0,`left`],[1,`right`]]){let s=a===0?n.trauma.left_cut:n.trauma.right_cut,c=r.cutMarks[a];c=lR[c]&&(r.cutMarks[a]=lR.filter(e=>s>=e).length,this.say(c===0?`cut`:c===1?`cutWorse`:`cutGushing`,e.tick+a,t,{...i,side:o},null));let l=a===0?n.trauma.left_eye:n.trauma.right_eye;!r.eyeSwelling[a]&&!r.eyeShut[a]&&l>=uR&&(r.eyeSwelling[a]=!0,this.say(`eyeSwelling`,e.tick+a,t,{...i,side:o},null))}let a=n.stamina/Math.max(1,n.maximum_stamina);a=2*this.tickRate&&this.tired(n.player_id,e.tick,t)):a>=fR&&(r.lowSince=null)}}tired(e,t,n){let r=this.notesFor(e);r.tiredRound!==this.round&&(r.tiredRound=this.round,this.say(`tiring`,t,n,{a:this.nameOf(this.otherId(e)),b:this.nameOf(e)},null))}say(e,t,n,r,i,a=YL,o,s){let c=AR[e],l=`${e}:${s??``}`;if(c!==void 0){if(n<(this.cooldowns.get(l)??-1/0))return!1;this.cooldowns.set(l,n+c)}let u=BR(this.choose(e,t),r),d={speaker:kR[e]??`play`,text:u,priority:OR[e],urgent:ER.has(e),hold:JR(u),card:null},f=yR.has(e);return this.enqueue(d,n+a,i,o??(f?eR:void 0),bR[e]??null,null,f)}sayAt(e,t,n,r,i){let a=BR(this.choose(e,t),r);this.enqueue({speaker:kR[e]??`play`,text:a,priority:OR[e],urgent:ER.has(e),hold:JR(a),card:null},n,null,i)}announcement(e,t,n,r){return{speaker:`announcer`,text:e,priority:r,urgent:!0,hold:n,card:t}}choose(e,t){let n=mR[e],r=this.refereeDead&&DR.has(e)?n.filter(e=>!/referee/iu.test(e)):n,i=VR(t,e.length*31+e.charCodeAt(0))%r.length;return r.length>1&&this.lastChoice.get(e)===i&&(i=(i+1)%r.length),this.lastChoice.set(e,i),r[i]}enqueue(e,t,n,r,i=null,a=null,o=!1){if(n!==null){if(!o&&this.queue.some(t=>t.moment===n&&t.line.priority>=e.priority)||!o&&this.showing?.moment===n&&this.showing.line.priority>=e.priority)return!1;for(let t=this.queue.length-1;t>=0;--t){let r=this.queue[t];r.moment===n&&!r.big&&r.line.prioritynR){let e=0;for(let t=1;tt.player_id===e)}otherId(e){let t=this.fighters;return t===null||e===null?null:t[0].player_id===e?t[1].player_id:t[1].player_id===e?t[0].player_id:null}seatOf(e){let t=this.fighters?.findIndex(t=>t.player_id===e)??-1;return t===0||t===1?t:null}nameOf(e){if(e===null)return`the fighter`;let t=this.players[e]?.name;if(t!==void 0&&t.trim().length>0)return t.trim();let n=this.seatOf(e);return n===0?`the blue corner`:n===1?`the red corner`:`the fighter`}};function JR(e){return Math.min(5.2,Math.max(2.2,1.4+e.length*.05))}var YR={name:`CopyShader`,uniforms:{tDiffuse:{value:null},opacity:{value:1}},vertexShader:` +`,Jk=class{root=new tc;uniforms={uCenter:{value:new B},uRadius:{value:0},uOpacity:{value:0},uFlash:{value:0}};material=new kd({uniforms:this.uniforms,vertexShader:Kk,fragmentShader:qk,vertexColors:!0,transparent:!0});framed=[];longs=[];chips=[];sprays=[];pieces=null;boxer=null;mutilation=null;site=null;spot=Ck(`skull`);center=new B;fighter=-1;elapsed=0;held=!1;push=new B;matrix=new Ds;local=new Ds;turn=new rs;from=new B;to=new B;along=new B;across=new B;axis=new B;outward=new B;offset=new B;one=new B(1,1,1);insetCamera=new Af(30,1,.05,40);canvasSize=new z;clearColor=new V;frameColor=new V;compiled=null;constructor(){this.root.visible=!1,this.root.name=`BoneXray`}get owner(){return this.site===null?-1:this.fighter}get breaking(){return this.site}get snapped(){return this.site!==null&&this.elapsed>=.3}drawInset(e,t,n){if(this.site===null||this.held||this.elapsed<=0)return;let r=e.getSize(this.canvasSize),i=Math.round(Math.min(r.x,r.y)*fk),a=Math.max(2,Math.round(i*.012)),o=this.fighter===0?Math.round(i*.08):r.x-i-Math.round(i*.08),s=r.y-i-Math.round(r.y*(r.y>r.x?mk:pk)),c=this.uniforms.uCenter.value,l=this.insetCamera,u=l.position.subVectors(n.position,c).setY(0).normalize();u.addScaledVector(this.push,-u.dot(this.push)),u.lengthSq()<.12&&u.set(-this.push.z,0,this.push.x),u.normalize().addScaledVector(this.outward,.4).setY(0).normalize(),l.position.multiplyScalar(this.spot.joint===void 0&&this.spot.radius<15?hk:gk).add(c),l.position.y+=.12,l.lookAt(c);let d=e.getClearAlpha(),f=e.shadowMap.autoUpdate;e.getClearColor(this.clearColor),e.shadowMap.autoUpdate=!1,e.setScissorTest(!0);let p=this.uniforms.uFlash.value;e.setClearColor(this.frameColor.copy(_k).lerp(vk,Math.min(1,p*2)),1),e.setScissor(o-a,s-a,i+a*2,i+a*2),e.clear(!0,!0,!1),e.setClearColor(yk,1),e.setScissor(o,s,i,i),e.setViewport(o,s,i,i),e.render(t,l),e.setScissorTest(!1),e.setViewport(0,0,r.x,r.y),e.setClearColor(this.clearColor,d),e.shadowMap.autoUpdate=f}start(e,t,n,r,i,a,o=!1){this.stop(),this.prepare(t),this.fighter=e,this.boxer=t,this.mutilation=n,this.site=r,this.spot=Ck(r),this.center.set(this.spot.center[0],this.spot.center[1],this.spot.center[2]);let s=lO(t,`body`),c=this.spot.joint===void 0||s===null?-1:s.skeleton.bones.indexOf(t.rig.bones[this.spot.joint]);c>=0&&this.center.setFromMatrixPosition(this.matrix.multiplyMatrices(s.skeleton.boneInverses[c],s.bindMatrix).invert()),this.elapsed=o?lk*.5:0,this.held=o,this.push.set(i,0,a),this.push.lengthSq()<1e-6&&this.push.set(1,0,0),this.push.normalize();let l=r.length*7+3,u=()=>(l=l*16807%2147483647,l/2147483647);for(let e of this.sprays)e.set(this.push.x*.9+u()*1.6-.8,u()*1.5-.2,this.push.z*.9+u()*1.6-.8).multiplyScalar(.5+u()*.9);this.root.visible=!0}stop(){this.site!==null&&(this.boxer?.headInjury.setXray(0,0,0,0,0),this.boxer?.bodyInjury.setXray(0,0,0,0,0),this.site=null,this.boxer=null,this.mutilation=null,this.root.visible=!1)}update(e){let{site:t,boxer:n,mutilation:r,pieces:i}=this;if(t===null||n===null||r===null||i===null)return;this.held||(this.elapsed+=e);let a=this.elapsed;if(a>=1.35||!r.anchor(this.spot.anchor,this.uniforms.uCenter.value,this.outward)){this.stop();return}this.spot.joint!==void 0&&n.rig.bones[this.spot.joint].getWorldPosition(this.uniforms.uCenter.value);let o=a-ck,s=o<0?0:1-Math.exp(-o*20),c=o<0||this.held?0:Math.exp(-o*11),l=Math.min(1,a/uk,(lk-a)/dk),u=this.spot,d=this.center,f=1/n.rig.metrics.unitsPerMeter,p=this.held?1e3:u.radius*(1+bk*c);n.headInjury.setXray(d.x,d.y,d.z,p,l),n.bodyInjury.setXray(d.x,d.y,d.z,p,l),this.uniforms.uRadius.value=p*f*1.1,this.uniforms.uOpacity.value=l,this.uniforms.uFlash.value=c*.55;let m=+!!t.endsWith(`_right`),h=m===1?-1:1;for(let e of this.framed)e.mesh.visible=r.skinMatrix(e.skin,e.bone,e.mesh.matrix),e.mesh.matrixWorldNeedsUpdate=!0;let g=(e,t,n,r,i)=>{this.turn.setFromAxisAngle(this.axis.set(n[0],n[1],n[2]),r),this.local.compose(this.offset.set(t[0]+i[0],t[1]+i[1],t[2]+i[2]),this.turn,this.one),e.matrix.multiply(this.local).multiply(this.matrix.makeTranslation(-t[0],-t[1],-t[2]))};i.plate.visible&&=t===`skull`&&s>0,t===`jaw`?(g(i.jaw[0],[0,111.7,3.9],[0,1,0],.3*s,[.9*s,-.7*s,0]),g(i.jaw[1],[-5,116.8,-2.1],[0,0,1],-.16*s,[.5*s,0,0])):t===`nose`?g(i.nasal,[0,120.4,3.6],[0,0,1],.7*s,[.5*s,-.2*s,-.5*s]):t.startsWith(`ribs`)&&g(i.ribsFront[m],[h*11.2,96,-1.2],[0,1,0],-h*.5*s,[-h*.9*s,0,0]);let _=n.rig.bones;for(let e of this.longs){_[e.from].getWorldPosition(this.from),_[e.to].getWorldPosition(this.to);let n=e.mesh===i.humerus[m]&&(t.startsWith(`arm`)||t.startsWith(`shoulder`))||e.mesh===i.shin[m]&&t.startsWith(`knee`);e.mesh.visible=!0,n&&t.startsWith(`arm`)?(e.mesh.visible=!1,this.along.subVectors(this.to,this.from),this.across.crossVectors(this.along,this.push).normalize(),this.across.lengthSq()<.5&&this.across.set(0,1,0),this.span(i.stump,this.from,this.to,e.length,f),this.to.copy(this.from).addScaledVector(this.along,.62),this.offset.crossVectors(this.across,this.along).normalize(),i.shard.position.copy(this.to).addScaledVector(this.offset,.022*s),this.turn.setFromAxisAngle(this.across,.75*s),i.shard.quaternion.copy(i.stump.quaternion).premultiply(this.turn),i.shard.scale.copy(i.stump.scale)):(n&&t.startsWith(`shoulder`)&&(this.from.addScaledVector(this.push,.035*s).y-=.04*s),n&&t.startsWith(`knee`)&&this.from.addScaledVector(this.outward,.05*s),this.span(e.mesh,this.from,this.to,e.length,f))}let v=t.startsWith(`arm`);i.stump.visible=v,i.shard.visible=v;let y=this.uniforms.uCenter.value;for(let[e,t]of this.chips.entries()){if(t.visible=o>0,o<=0)continue;let n=this.sprays[e];t.position.copy(y).addScaledVector(n,o*.55),t.position.y-=1.6*o*o,t.rotation.set(o*9+e,o*7,e),t.scale.setScalar((e{let t=new H(e,this.material);return t.frustumCulled=!1,t.renderOrder=40,this.root.add(t),t},n=(e,n,r)=>{let i=t(e);return i.matrixAutoUpdate=!1,this.framed.push({mesh:i,skin:n,bone:r}),i},r=e.rig.metrics,i=r.unitsPerMeter,a=(e,n,r,i)=>{let a=t(e);return this.longs.push({mesh:a,from:n,to:r,length:i}),a};n(Vk(),`head`,`head`);let o=n(Uk(),`head`,`head`),s=n(Fk([0,120.4,3.6],[0,118.3,5],.55,wk,.5),`head`,`head`),c=[n(Hk(1),`head`,`head`),n(Hk(-1),`head`,`head`)];n(Wk(108.5,116.5,-3.4),`body`,`neck`),n(Wk(88,108,-6.2),`body`,`chest`),n(Wk(76,87.5,-3.6),`body`,`spine`),n(Gk(),`body`,`hips`),n(Ik([kk(new Nu(2.2,10.5,.9).translate(0,99,4.3),wk),Fk([1.4,106.4,2.8],[13.6,105.2,-3.4],.55),Fk([-1.4,106.4,2.8],[-13.6,105.2,-3.4],.55),Ak([11,101,-7.6],[3.6,4.6,.7]),Ak([-11,101,-7.6],[3.6,4.6,.7])]),`body`,`chest`),n(zk(1,!1),`body`,`chest`),n(zk(-1,!1),`body`,`chest`);let l=[n(zk(1,!0),`body`,`chest`),n(zk(-1,!0),`body`,`chest`)],u=r.armL.upper*i,d=r.armL.lower*i,f=r.legL.upper*i,p=r.legL.lower*i,m=Lk(u,.95,1.5),h=Lk(d,.62,1.15,.9),g=Lk(f,1.25,2),_=Lk(p,1.05,1.75,1.5),v=Fk([0,0,0],[0,10,0],.9,wk,.6),y=[a(m,`shoulderL`,`elbowL`,u),a(m,`shoulderR`,`elbowR`,u)];a(h,`elbowL`,`gloveL`,d),a(h,`elbowR`,`gloveR`,d),a(g,`hipL`,`kneeL`,f),a(g,`hipR`,`kneeR`,f);let b=[a(_,`kneeL`,`ankleL`,p),a(_,`kneeR`,`ankleR`,p)];a(v,`ankleL`,`toeL`,10),a(v,`ankleR`,`toeR`,10);let x=u*.62,S=t(Ik([Fk([0,0,0],[0,x,0],.95,wk,.85),Ak([0,0,0],1.5),Fk([0,x,0],[.5,x+1.6,.2],.7,wk,.1),Ak([0,x,0],.6,Dk)])),C=t(Ik([Fk([0,.4,0],[0,u-x,0],.85),Ak([0,u-x,0],1.3),Fk([0,.6,0],[-.4,-1.5,-.3],.7,wk,.1),Ak([0,.5,0],.55,Dk)])),w=kk(new vd(1),wk),T=kk(new fd(1,1),Dk);for(let e=0;e<14;e+=1)this.chips.push(t(e{let e=this.context;e!==null&&e.state!==`running`&&e.resume().catch(()=>void 0),this.unlock().catch(()=>void 0)};visibility=()=>{let e=this.context;if(e===null)return;let t=document.hidden?e.suspend():this.unlocked?e.resume():null;t!==null&&t.catch(()=>void 0)};constructor(e){this.settings=e;for(let e of uA)window.addEventListener(e,this.unlockListener);document.addEventListener(`visibilitychange`,this.visibility)}unlock(){return this.destroyed||this.unlocked?Promise.resolve():(this.unlockPromise===null&&(this.unlockPromise=this.performUnlock().finally(()=>{this.unlockPromise=null})),this.unlockPromise)}async performUnlock(){let e=this.context;if(e===null){e=new AudioContext;let t=e.createGain();t.gain.value=Math.min(.8,Math.max(0,this.settings().volume));let n=e.createBiquadFilter();n.type=`lowpass`,n.frequency.value=cA,n.Q.value=.7,t.connect(n).connect(e.destination),this.context=e,this.master=t,this.muffle=n}if(e.state===`suspended`&&await e.resume(),this.destroyed||this.context!==e)return;let t=await this.decodeInjuryBuffers(e);if(!(this.destroyed||this.context!==e)){this.injuryBuffers=t,this.unlocked=!0;for(let e of uA)window.removeEventListener(e,this.unlockListener);this.crowdStarted||(this.crowdStarted=!0,this.crowdBed())}}setVolume(){this.master!==null&&(this.master.gain.value=Math.min(.8,Math.max(0,this.settings().volume)))}event(e,t=!1){if(this.unlocked)switch(e.kind){case`punch_start`:this.whoosh(e.detail.split(`:`)[1]??`jab`,t);break;case`whiff`:this.noise({duration:.11,frequency:850,sweepTo:320,gain:.07,type:`bandpass`,q:1.1});break;case`hit`:case`counter_hit`:{let n=e.detail.endsWith(`body`),r=Math.min(1,e.amount/260),i=Math.min(.36,.14+r*.2)*(e.kind===`counter_hit`?1.25:1);this.impact(i,n,r,t),(e.kind===`counter_hit`||r>.7||t)&&this.crowdSwell(.35+r*.4),(e.kind===`counter_hit`&&e.amount>=50||e.amount>=90)&&this.ooh(Math.min(1,e.amount/160));break}case`referee_hit`:{let t=Math.min(1,e.amount/260);this.impact(Math.min(.36,.16+t*.2),e.detail.endsWith(`body`),t),this.ooh(.7+t*.3),this.crowdSwell(.5+t*.3);break}case`referee_down`:this.impact(.36,!1,1),this.crowdRoar(1),this.ooh(1);break;case`block`:this.noise({duration:.045,frequency:1200,sweepTo:600,gain:.14,type:`bandpass`,q:1.1}),this.noise({duration:.09,frequency:260,gain:.08}),this.tone({from:160,to:110,duration:.06,type:`triangle`,gain:.05}),t&&this.tone({from:96,to:44,duration:.2,type:`sine`,gain:.2});break;case`perfect_block`:this.noise({duration:.05,frequency:1800,sweepTo:900,gain:.16,type:`bandpass`,q:1.6}),this.tone({from:280,to:210,duration:.06,type:`triangle`,gain:.06});break;case`guard_break`:this.impact(.3,!1,.9),this.tone({from:230,to:78,duration:.2,type:`sawtooth`,gain:.08}),this.crowdSwell(.5),this.ooh(.6);break;case`stun`:this.tone({from:96,to:74,duration:.22,type:`sine`,gain:.1}),this.crowdSwell(.3);break;case`parry`:this.noise({duration:.06,frequency:2400,sweepTo:1100,gain:.18,type:`bandpass`,q:1.8}),this.tone({from:330,to:180,duration:.09,type:`triangle`,gain:.07}),this.crowdSwell(.35);break;case`body_collapse`:this.tone({from:118,to:52,duration:.42,type:`sine`,gain:.16}),this.noise({duration:.26,frequency:420,sweepTo:180,gain:.05,type:`bandpass`,q:.9}),this.crowdSwell(.6);break;case`eye_shut`:this.crowdSwell(.25);break;case`corner`:this.noise({duration:.22,frequency:2600,sweepTo:1500,gain:.05,type:`bandpass`,q:.8});break;case`knockdown`:this.impact(.34,!1,1),this.tone({from:60,to:28,duration:.42,type:`sine`,gain:.3}),this.noise({duration:.3,frequency:140,gain:.24}),this.crowdRoar(1),this.hush();break;case`bell`:{let t=e.detail===`round_start`?3:1;for(let e=0;e10*r||this.clapperRound===t||(this.clapperRound=t,!this.unlocked))return;this.noise({duration:.05,frequency:2600,gain:.42,type:`bandpass`,q:1.4}),this.noise({duration:.09,frequency:700,gain:.18,type:`bandpass`,q:.8});let i=window.setTimeout(()=>{this.timers.delete(i),this.noise({duration:.05,frequency:2400,gain:.4,type:`bandpass`,q:1.4}),this.noise({duration:.09,frequency:660,gain:.16,type:`bandpass`,q:.8})},120);this.timers.add(i)}getUpBeat(){this.tone({from:1320,duration:.05,type:`square`,gain:.07})}getUpVerdict(e){e===`perfect`?(this.tone({from:880,to:1760,duration:.12,type:`triangle`,gain:.11}),this.tone({from:1760,duration:.1,type:`triangle`,gain:.08,delay:.07})):e===`good`?this.tone({from:660,to:990,duration:.1,type:`triangle`,gain:.09}):e===`wrong`?this.tone({from:140,duration:.16,type:`sawtooth`,gain:.09}):this.tone({from:260,duration:.09,type:`sine`,gain:.07})}chant(){let e=this.context;if(!(!this.unlocked||e===null||e.currentTime-this.lastChantAtthis.murmurLevel;this.murmurLevel=r,n.gain.setTargetAtTime(r*oA,t.currentTime,i?.3:.8)}rocked(e,t){this.follow(t);let n=this.context,r=this.muffle;if(!this.unlocked||n===null||r===null)return;let i=Math.max(0,Math.min(1,e));if(Math.abs(i-this.rockedLevel)>=.02||i===0&&this.rockedLevel!==0){let e=i>this.rockedLevel;this.rockedLevel=i,r.frequency.setTargetAtTime(cA*(lA/cA)**+i,n.currentTime,e?.05:.9)}i>.15&&t-this.lastRockedBeat>=fA(i)&&(this.lastRockedBeat=t,this.tone({from:58,to:40,duration:.12,type:`sine`,gain:.09+i*.08}),this.tone({from:50,to:36,duration:.14,type:`sine`,gain:.07+i*.06,delay:.16}))}snapshot(e,t,n,r){if(this.follow(e),!this.unlocked)return;let i=1-t/Math.max(1,n);i>.55&&e-this.lastBreathTick>=75&&(this.lastBreathTick=e,this.noise({duration:.18,frequency:420,gain:.045+i*.04})),(i>.72||r>500)&&this.rockedLevel<=.15&&e-this.lastHeartbeatTick>=24&&(this.lastHeartbeatTick=e,this.tone({from:52,duration:.09,type:`sine`,gain:.055}))}result(e){if(this.openMuffle(),!this.unlocked)return;this.crowdSwell(1),this.tone({from:e.winner_id===null?280:520,duration:.45,type:`triangle`,gain:.18});let t=window.setTimeout(()=>{this.timers.delete(t),this.tone({from:650,duration:.5,type:`triangle`,gain:.14})},160);this.timers.add(t)}injury(e){let t=this.context,n=this.master,r=this.injuryBuffers.get(Yk[e]??e),i=this.settings();if(!this.unlocked||t===null||n===null||i.blood!==`full`||i.reducedMotion||(this.tearing(),r===void 0))return;let a=t.createBufferSource(),o=t.createGain();a.buffer=r,o.gain.value=.2,a.connect(o).connect(n),a.start()}tearing(){this.noise({duration:.09,frequency:2600,sweepTo:700,gain:.22,type:`bandpass`,q:1.6}),this.noise({duration:.4,frequency:900,sweepTo:150,gain:.28,type:`lowpass`,q:6,offset:.35});for(let[e,t]of[.3,.9,1.5].entries())this.noise({duration:.2,frequency:480-e*60,sweepTo:170,gain:.13-e*.03,type:`bandpass`,q:4,delay:t,offset:.2+t})}gore(e){let t=this.settings();if(!this.unlocked||t.volume<=0)return;let n=t.blood===`full`&&!t.reducedMotion;switch(e.kind){case`injury`:{let t=Xk[$e(e.injury)];n?(this.wound(t,0),t===`crack`&&this.xray()):this.impact(.3,!1,.9),this.ooh(1),this.crowdSwell(.8),t!==`crack`&&this.crowdVoice({...nA,delay:.45});break}case`vomit`:n&&this.retch(),this.crowdVoice({...nA,gain:.09,delay:.5});break;case`finish_him`:this.omen(),this.crowdRoar(1);break;case`fatality`:this.sting(),n&&Zk[e.fatality].forEach((e,t)=>this.wound(e,t*.2)),this.crowdRoar(1),this.ooh(1);break;case`death`:ot(e.cause)===null?(this.flatline(0),this.hush(!0)):this.flatline(eA)}}wound(e,t){e===`crack`?this.crack(t):e===`rip`?this.rip(t):e===`squelch`?this.squelch(t):this.chop(t)}xray(){this.tone({from:90,to:440,duration:ck,type:`sine`,gain:.1,delay:0}),this.crack(ck),this.noise({duration:.16,frequency:520,sweepTo:170,gain:.2,type:`lowpass`,q:4,delay:ck+.03,offset:.3})}crack(e){this.noise({duration:.03,frequency:3400,sweepTo:1800,gain:.34,type:`bandpass`,q:2.2,delay:e}),this.tone({from:190,to:70,duration:.09,type:`triangle`,gain:.22,delay:e});for(let[t,n]of $k.entries())this.noise({duration:.018,frequency:2800-t*260,gain:.2-t*.03,type:`highpass`,q:1.4,delay:e+n,offset:.17*(t+1)})}rip(e){this.noise({duration:.5,frequency:420,sweepTo:2600,gain:.3,type:`bandpass`,q:3.2,delay:e,offset:.4}),this.noise({duration:.45,frequency:180,sweepTo:520,gain:.2,type:`lowpass`,q:5,delay:e+.03,offset:.7});for(let t=0;t<6;t+=1)this.noise({duration:.035,frequency:900+t*280,gain:.16,type:`bandpass`,q:6,delay:e+.05+t*.07,offset:.09*t});this.noise({duration:.12,frequency:700,sweepTo:160,gain:.24,type:`lowpass`,q:4,delay:e+.52,offset:.55})}squelch(e){this.noise({duration:.3,frequency:1100,sweepTo:140,gain:.32,type:`lowpass`,q:9,delay:e,offset:.25}),this.noise({duration:.22,frequency:300,sweepTo:900,gain:.18,type:`bandpass`,q:7,delay:e+.1,offset:.6}),this.tone({from:150,to:60,duration:.12,type:`sine`,gain:.16,delay:e}),this.spatter(e+.25)}spatter(e){for(let[t,n]of Qk.entries())this.noise({duration:.03,frequency:1500+t%3*600,sweepTo:500,gain:.14-t*.012,type:`bandpass`,q:3,delay:e+n,offset:.13*t})}chop(e){this.tone({from:120,to:38,duration:.2,type:`sine`,gain:.32,delay:e}),this.noise({duration:.05,frequency:2200,sweepTo:500,gain:.3,type:`bandpass`,q:1.2,delay:e}),this.noise({duration:.16,frequency:600,sweepTo:150,gain:.26,type:`lowpass`,q:5,delay:e+.02,offset:.3});for(let[t,n]of[.3,.75,1.2,1.65].entries())this.noise({duration:.22,frequency:520-t*60,sweepTo:170,gain:.15-t*.03,type:`bandpass`,q:4,delay:e+n,offset:.2+n})}retch(){for(let[e,t]of[0,.45].entries())this.tone({from:150-e*25,to:80,duration:.3,type:`sawtooth`,gain:.09,delay:t}),this.crowdVoice({duration:.36,first:[650,360],second:[1150,780],gain:.22,delay:t});this.noise({duration:.45,frequency:2400,sweepTo:300,gain:.24,type:`lowpass`,q:3,delay:.9,offset:.5}),this.spatter(1.05)}drum(e){this.tone({from:95,to:30,duration:.7,type:`sine`,gain:.35,delay:e}),this.noise({duration:.2,frequency:160,gain:.3,delay:e}),this.noise({duration:.03,frequency:1800,sweepTo:600,gain:.18,type:`bandpass`,q:1,delay:e})}omen(){this.drum(0),this.held({frequency:27.5,duration:1.4,gain:.3,attack:1.1,type:`sine`,delay:.1}),this.held({frequency:55,duration:1.4,gain:.12,attack:1.2,type:`sawtooth`,delay:.1}),this.held({frequency:58.3,duration:1.4,gain:.1,attack:1.2,type:`sawtooth`,delay:.1}),this.drum(1.5)}sting(){this.drum(0);for(let[e,t]of[196,185,147,110].entries())this.tone({from:t,to:t*.97,duration:.5,type:`sawtooth`,gain:.14,delay:e*.2}),this.tone({from:t/2,duration:.5,type:`square`,gain:.1,delay:e*.2});this.tone({from:73.4,to:69,duration:1.4,type:`sawtooth`,gain:.2,delay:.8}),this.tone({from:36.7,to:34.5,duration:1.4,type:`sine`,gain:.32,delay:.8}),this.drum(.8)}flatline(e){for(let t of[0,.38])this.held({frequency:880,duration:.09,gain:.1,attack:.005,type:`sine`,delay:e+t});this.held({frequency:880,duration:2.6,gain:.1,attack:.01,type:`sine`,delay:e+.76})}held(e){let t=this.context,n=this.master;if(t===null||n===null)return;let r=t.currentTime+(e.delay??0),i=Math.min(3,e.duration),a=Math.min(.35,e.gain),o=t.createOscillator(),s=t.createGain();o.type=e.type,o.frequency.setValueAtTime(Math.max(20,e.frequency),r),s.gain.setValueAtTime(1e-4,r),s.gain.exponentialRampToValueAtTime(a,r+Math.min(i-.03,e.attack)),s.gain.setValueAtTime(a,r+i-.03),s.gain.exponentialRampToValueAtTime(1e-4,r+i),o.connect(s).connect(n),o.start(r),o.stop(r+i+.03)}async decodeInjuryBuffers(e){let t=await Promise.all(Ri.map(async t=>{let n=atob(t.wav),r=new Uint8Array(n.length);for(let e=0;evoid 0)}},mA=class extends Error{code;reloadRequired;name=`ClientError`;constructor(e,t=!1){super(e),this.code=e,this.reloadRequired=t}};async function hA(e,t){if(!e.ok)throw new mA(e.status===429?`rate_limited`:t);if(!(e.headers.get(`content-type`)??``).toLowerCase().startsWith(`application/json`))throw new mA(t);try{return Ct(await e.text())}catch{throw new mA(t)}}function gA(e=window.location.search){let t=new URLSearchParams(e).getAll(`instance_id`);if(t.length!==1||!/^[A-Za-z0-9_-]{1,255}$/u.test(t[0]??``))throw new mA(`invalid_launch`);return t[0]}function _A(e){if(typeof e==`object`&&e&&`protocol`in e&&e.protocol!==7)throw new mA(`client_outdated`,!0)}async function vA(e,t){let n=new URL(`/api/hands/bootstrap`,window.location.origin);try{let r=await hA(await fetch(n,{method:`POST`,credentials:`same-origin`,cache:`no-store`,headers:{"Content-Type":`application/json`},body:JSON.stringify({instance_id:e}),...t===void 0?{}:{signal:t}}),`bootstrap_failed`);return _A(r),pn(r)}catch(e){throw e instanceof mA?e:e instanceof yt?new mA(`invalid_bootstrap`):new mA(`bootstrap_failed`)}}async function yA(e,t,n){try{return mn(await hA(await fetch(new URL(`/api/hands/token`,window.location.origin),{method:`POST`,credentials:`same-origin`,cache:`no-store`,headers:{"Content-Type":`application/json`},body:JSON.stringify({code:e,state:t}),...n===void 0?{}:{signal:n}}),`token_failed`))}catch(e){throw e instanceof mA?e:e instanceof yt?new mA(`invalid_token_response`):new mA(`token_failed`)}}function bA(e){return e instanceof mA?e.code:e instanceof yt?`protocol_error`:`unexpected_error`}var xA=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function SA(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var CA={exports:{}},wA;function TA(){return wA||(wA=1,(function(e){var t=Object.prototype.hasOwnProperty,n=`~`;function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(e,t,r,a,o){if(typeof r!=`function`)throw TypeError(`The listener must be a function`);var s=new i(r,a||e,o),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function o(e,t){--e._eventsCount===0?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var e=[],r,i;if(this._eventsCount===0)return e;for(i in r=this._events)t.call(r,i)&&e.push(n?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(r)):e},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,a=r.length,o=Array(a);ie;function t(e){}e.assertIs=t;function n(e){throw Error()}e.assertNever=n,e.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},e.getValidEnumValues=t=>{let n=e.objectKeys(t).filter(e=>typeof t[t[e]]!=`number`),r={};for(let e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys=typeof Object.keys==`function`?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(let n of e)if(t(n))return n},e.isInteger=typeof Number.isInteger==`function`?e=>Number.isInteger(e):e=>typeof e==`number`&&isFinite(e)&&Math.floor(e)===e;function r(e,t=` | `){return e.map(e=>typeof e==`string`?`'${e}'`:e).join(t)}e.joinValues=r,e.jsonStringifyReplacer=(e,t)=>typeof t==`bigint`?t.toString():t})(DA||={});var OA;(function(e){e.mergeShapes=(e,t)=>({...e,...t})})(OA||={});var K=DA.arrayToEnum([`string`,`nan`,`number`,`integer`,`float`,`boolean`,`date`,`bigint`,`symbol`,`function`,`undefined`,`null`,`array`,`object`,`unknown`,`promise`,`void`,`never`,`map`,`set`]),kA=e=>{switch(typeof e){case`undefined`:return K.undefined;case`string`:return K.string;case`number`:return isNaN(e)?K.nan:K.number;case`boolean`:return K.boolean;case`function`:return K.function;case`bigint`:return K.bigint;case`symbol`:return K.symbol;case`object`:return Array.isArray(e)?K.array:e===null?K.null:e.then&&typeof e.then==`function`&&e.catch&&typeof e.catch==`function`?K.promise:typeof Map<`u`&&e instanceof Map?K.map:typeof Set<`u`&&e instanceof Set?K.set:typeof Date<`u`&&e instanceof Date?K.date:K.object;default:return K.unknown}},q=DA.arrayToEnum([`invalid_type`,`invalid_literal`,`custom`,`invalid_union`,`invalid_union_discriminator`,`invalid_enum_value`,`unrecognized_keys`,`invalid_arguments`,`invalid_return_type`,`invalid_date`,`invalid_string`,`too_small`,`too_big`,`invalid_intersection_types`,`not_multiple_of`,`not_finite`]),AA=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,`$1:`),jA=class e extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name=`ZodError`,this.issues=e}get errors(){return this.issues}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`)i.unionErrors.map(r);else if(i.code===`invalid_return_type`)r(i.returnTypeError);else if(i.code===`invalid_arguments`)r(i.argumentsError);else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;re.message){let t={},n=[];for(let r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}};jA.create=e=>new jA(e);var MA=(e,t)=>{let n;switch(e.code){case q.invalid_type:n=e.received===K.undefined?`Required`:`Expected ${e.expected}, received ${e.received}`;break;case q.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,DA.jsonStringifyReplacer)}`;break;case q.unrecognized_keys:n=`Unrecognized key(s) in object: ${DA.joinValues(e.keys,`, `)}`;break;case q.invalid_union:n=`Invalid input`;break;case q.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${DA.joinValues(e.options)}`;break;case q.invalid_enum_value:n=`Invalid enum value. Expected ${DA.joinValues(e.options)}, received '${e.received}'`;break;case q.invalid_arguments:n=`Invalid function arguments`;break;case q.invalid_return_type:n=`Invalid function return type`;break;case q.invalid_date:n=`Invalid date`;break;case q.invalid_string:typeof e.validation==`object`?`includes`in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position==`number`&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):`startsWith`in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:`endsWith`in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:DA.assertNever(e.validation):n=e.validation===`regex`?`Invalid`:`Invalid ${e.validation}`;break;case q.too_small:n=e.type===`array`?`Array must contain ${e.exact?`exactly`:e.inclusive?`at least`:`more than`} ${e.minimum} element(s)`:e.type===`string`?`String must contain ${e.exact?`exactly`:e.inclusive?`at least`:`over`} ${e.minimum} character(s)`:e.type===`number`?`Number must be ${e.exact?`exactly equal to `:e.inclusive?`greater than or equal to `:`greater than `}${e.minimum}`:e.type===`date`?`Date must be ${e.exact?`exactly equal to `:e.inclusive?`greater than or equal to `:`greater than `}${new Date(Number(e.minimum))}`:`Invalid input`;break;case q.too_big:n=e.type===`array`?`Array must contain ${e.exact?`exactly`:e.inclusive?`at most`:`less than`} ${e.maximum} element(s)`:e.type===`string`?`String must contain ${e.exact?`exactly`:e.inclusive?`at most`:`under`} ${e.maximum} character(s)`:e.type===`number`?`Number must be ${e.exact?`exactly`:e.inclusive?`less than or equal to`:`less than`} ${e.maximum}`:e.type===`bigint`?`BigInt must be ${e.exact?`exactly`:e.inclusive?`less than or equal to`:`less than`} ${e.maximum}`:e.type===`date`?`Date must be ${e.exact?`exactly`:e.inclusive?`smaller than or equal to`:`smaller than`} ${new Date(Number(e.maximum))}`:`Invalid input`;break;case q.custom:n=`Invalid input`;break;case q.invalid_intersection_types:n=`Intersection results could not be merged`;break;case q.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case q.not_finite:n=`Number must be finite`;break;default:n=t.defaultError,DA.assertNever(e)}return{message:n}},NA=MA;function PA(e){NA=e}function FA(){return NA}var IA=e=>{let{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a};if(i.message!==void 0)return{...i,path:a,message:i.message};let s=``,c=r.filter(e=>!!e).slice().reverse();for(let e of c)s=e(o,{data:t,defaultError:s}).message;return{...i,path:a,message:s}},LA=[];function J(e,t){let n=FA(),r=IA({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===MA?void 0:MA].filter(e=>!!e)});e.common.issues.push(r)}var RA=class e{constructor(){this.value=`valid`}dirty(){this.value===`valid`&&(this.value=`dirty`)}abort(){this.value!==`aborted`&&(this.value=`aborted`)}static mergeArray(e,t){let n=[];for(let r of t){if(r.status===`aborted`)return zA;r.status===`dirty`&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(t,n){let r=[];for(let e of n){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return e.mergeObjectSync(t,r)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:t,value:i}=r;if(t.status===`aborted`||i.status===`aborted`)return zA;t.status===`dirty`&&e.dirty(),i.status===`dirty`&&e.dirty(),t.value!==`__proto__`&&(i.value!==void 0||r.alwaysSet)&&(n[t.value]=i.value)}return{status:e.value,value:n}}},zA=Object.freeze({status:`aborted`}),BA=e=>({status:`dirty`,value:e}),VA=e=>({status:`valid`,value:e}),HA=e=>e.status===`aborted`,UA=e=>e.status===`dirty`,WA=e=>e.status===`valid`,GA=e=>typeof Promise<`u`&&e instanceof Promise;function KA(e,t,n,r){if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return t.get(e)}function qA(e,t,n,r,i){if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return t.set(e,n),n}var JA;(function(e){e.errToObj=e=>typeof e==`string`?{message:e}:e||{},e.toString=e=>typeof e==`string`?e:e?.message})(JA||={});var YA,XA,ZA=class{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},QA=(e,t)=>{if(WA(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error(`Validation failed but no issues detected.`);return{success:!1,get error(){if(this._error)return this._error;let t=new jA(e.common.issues);return this._error=t,this._error}}};function $A(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:a}=e;return t.code===`invalid_enum_value`?{message:a??i.defaultError}:i.data===void 0?{message:a??r??i.defaultError}:t.code===`invalid_type`?{message:a??n??i.defaultError}:{message:i.defaultError}},description:i}}var ej=class{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return kA(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:kA(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new RA,ctx:{common:e.parent.common,data:e.data,parsedType:kA(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(GA(t))throw Error(`Synchronous parse encountered promise.`);return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){let n={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:kA(e)};return QA(n,this._parseSync({data:e,path:n.path,parent:n}))}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:kA(e)},r=this._parse({data:e,path:n.path,parent:n});return QA(n,await(GA(r)?r:Promise.resolve(r)))}refine(e,t){let n=e=>typeof t==`string`||t===void 0?{message:t}:typeof t==`function`?t(e):t;return this._refinement((t,r)=>{let i=e(t),a=()=>r.addIssue({code:q.custom,...n(t)});return typeof Promise<`u`&&i instanceof Promise?i.then(e=>e?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(e,t){return this._refinement((n,r)=>e(n)?!0:(r.addIssue(typeof t==`function`?t(n,r):t),!1))}_refinement(e){return new Zj({schema:this,typeName:lM.ZodEffects,effect:{type:`refinement`,refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return Qj.create(this,this._def)}nullable(){return $j.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Mj.create(this,this._def)}promise(){return Xj.create(this,this._def)}or(e){return Fj.create([this,e],this._def)}and(e){return zj.create(this,e,this._def)}transform(e){return new Zj({...$A(this._def),schema:this,typeName:lM.ZodEffects,effect:{type:`transform`,transform:e}})}default(e){let t=typeof e==`function`?e:()=>e;return new eM({...$A(this._def),innerType:this,defaultValue:t,typeName:lM.ZodDefault})}brand(){return new iM({typeName:lM.ZodBranded,type:this,...$A(this._def)})}catch(e){let t=typeof e==`function`?e:()=>e;return new tM({...$A(this._def),innerType:this,catchValue:t,typeName:lM.ZodCatch})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}pipe(e){return aM.create(this,e)}readonly(){return oM.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},tj=/^c[^\s-]{8,}$/i,nj=/^[0-9a-z]+$/,rj=/^[0-9A-HJKMNP-TV-Z]{26}$/,ij=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,aj=/^[a-z0-9_-]{21}$/i,oj=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,sj=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,cj=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,lj,uj=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,dj=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,fj=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,pj=`((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`,mj=RegExp(`^${pj}$`);function hj(e){let t=`([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d`;return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision??(t=`${t}(\\.\\d+)?`),t}function gj(e){return RegExp(`^${hj(e)}$`)}function _j(e){let t=`${pj}T${hj(e)}`,n=[];return n.push(e.local?`Z?`:`Z`),e.offset&&n.push(`([+-]\\d{2}:?\\d{2})`),t=`${t}(${n.join(`|`)})`,RegExp(`^${t}$`)}function vj(e,t){return!((t!==`v4`&&t||!uj.test(e))&&(t!==`v6`&&t||!dj.test(e)))}var yj=class e extends ej{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==K.string){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.string,received:t.parsedType}),zA}let t=new RA,n;for(let r of this._def.checks)if(r.kind===`min`)e.data.lengthr.value&&(n=this._getOrReturnCtx(e,n),J(n,{code:q.too_big,maximum:r.value,type:`string`,inclusive:!0,exact:!1,message:r.message}),t.dirty());else if(r.kind===`length`){let i=e.data.length>r.value,a=e.data.lengthe.test(t),{validation:t,code:q.invalid_string,...JA.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(e){return this._addCheck({kind:`email`,...JA.errToObj(e)})}url(e){return this._addCheck({kind:`url`,...JA.errToObj(e)})}emoji(e){return this._addCheck({kind:`emoji`,...JA.errToObj(e)})}uuid(e){return this._addCheck({kind:`uuid`,...JA.errToObj(e)})}nanoid(e){return this._addCheck({kind:`nanoid`,...JA.errToObj(e)})}cuid(e){return this._addCheck({kind:`cuid`,...JA.errToObj(e)})}cuid2(e){return this._addCheck({kind:`cuid2`,...JA.errToObj(e)})}ulid(e){return this._addCheck({kind:`ulid`,...JA.errToObj(e)})}base64(e){return this._addCheck({kind:`base64`,...JA.errToObj(e)})}ip(e){return this._addCheck({kind:`ip`,...JA.errToObj(e)})}datetime(e){return typeof e==`string`?this._addCheck({kind:`datetime`,precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:`datetime`,precision:e?.precision===void 0?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...JA.errToObj(e?.message)})}date(e){return this._addCheck({kind:`date`,message:e})}time(e){return typeof e==`string`?this._addCheck({kind:`time`,precision:null,message:e}):this._addCheck({kind:`time`,precision:e?.precision===void 0?null:e?.precision,...JA.errToObj(e?.message)})}duration(e){return this._addCheck({kind:`duration`,...JA.errToObj(e)})}regex(e,t){return this._addCheck({kind:`regex`,regex:e,...JA.errToObj(t)})}includes(e,t){return this._addCheck({kind:`includes`,value:e,position:t?.position,...JA.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:`startsWith`,value:e,...JA.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:`endsWith`,value:e,...JA.errToObj(t)})}min(e,t){return this._addCheck({kind:`min`,value:e,...JA.errToObj(t)})}max(e,t){return this._addCheck({kind:`max`,value:e,...JA.errToObj(t)})}length(e,t){return this._addCheck({kind:`length`,value:e,...JA.errToObj(t)})}nonempty(e){return this.min(1,JA.errToObj(e))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:`trim`}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:`toLowerCase`}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:`toUpperCase`}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind===`datetime`)}get isDate(){return!!this._def.checks.find(e=>e.kind===`date`)}get isTime(){return!!this._def.checks.find(e=>e.kind===`time`)}get isDuration(){return!!this._def.checks.find(e=>e.kind===`duration`)}get isEmail(){return!!this._def.checks.find(e=>e.kind===`email`)}get isURL(){return!!this._def.checks.find(e=>e.kind===`url`)}get isEmoji(){return!!this._def.checks.find(e=>e.kind===`emoji`)}get isUUID(){return!!this._def.checks.find(e=>e.kind===`uuid`)}get isNANOID(){return!!this._def.checks.find(e=>e.kind===`nanoid`)}get isCUID(){return!!this._def.checks.find(e=>e.kind===`cuid`)}get isCUID2(){return!!this._def.checks.find(e=>e.kind===`cuid2`)}get isULID(){return!!this._def.checks.find(e=>e.kind===`ulid`)}get isIP(){return!!this._def.checks.find(e=>e.kind===`ip`)}get isBase64(){return!!this._def.checks.find(e=>e.kind===`base64`)}get minLength(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.valuenew yj({checks:[],typeName:lM.ZodString,coerce:e?.coerce??!1,...$A(e)});function bj(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=(t.toString().split(`.`)[1]||``).length,i=n>r?n:r;return parseInt(e.toFixed(i).replace(`.`,``))%parseInt(t.toFixed(i).replace(`.`,``))/10**i}var xj=class e extends ej{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==K.number){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.number,received:t.parsedType}),zA}let t,n=new RA;for(let r of this._def.checks)r.kind===`int`?DA.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),J(t,{code:q.invalid_type,expected:`integer`,received:`float`,message:r.message}),n.dirty()):r.kind===`min`?(r.inclusive?e.datar.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),J(t,{code:q.too_big,maximum:r.value,type:`number`,inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):r.kind===`multipleOf`?bj(e.data,r.value)!==0&&(t=this._getOrReturnCtx(e,t),J(t,{code:q.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):r.kind===`finite`?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),J(t,{code:q.not_finite,message:r.message}),n.dirty()):DA.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit(`min`,e,!0,JA.toString(t))}gt(e,t){return this.setLimit(`min`,e,!1,JA.toString(t))}lte(e,t){return this.setLimit(`max`,e,!0,JA.toString(t))}lt(e,t){return this.setLimit(`max`,e,!1,JA.toString(t))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:JA.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(e){return this._addCheck({kind:`int`,message:JA.toString(e)})}positive(e){return this._addCheck({kind:`min`,value:0,inclusive:!1,message:JA.toString(e)})}negative(e){return this._addCheck({kind:`max`,value:0,inclusive:!1,message:JA.toString(e)})}nonpositive(e){return this._addCheck({kind:`max`,value:0,inclusive:!0,message:JA.toString(e)})}nonnegative(e){return this._addCheck({kind:`min`,value:0,inclusive:!0,message:JA.toString(e)})}multipleOf(e,t){return this._addCheck({kind:`multipleOf`,value:e,message:JA.toString(t)})}finite(e){return this._addCheck({kind:`finite`,message:JA.toString(e)})}safe(e){return this._addCheck({kind:`min`,inclusive:!0,value:-(2**53-1),message:JA.toString(e)})._addCheck({kind:`max`,inclusive:!0,value:2**53-1,message:JA.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.valuee.kind===`int`||e.kind===`multipleOf`&&DA.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks)if(n.kind===`finite`||n.kind===`int`||n.kind===`multipleOf`)return!0;else n.kind===`min`?(t===null||n.value>t)&&(t=n.value):n.kind===`max`&&(e===null||n.valuenew xj({checks:[],typeName:lM.ZodNumber,coerce:e?.coerce||!1,...$A(e)});var Sj=class e extends ej{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==K.bigint){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.bigint,received:t.parsedType}),zA}let t,n=new RA;for(let r of this._def.checks)r.kind===`min`?(r.inclusive?e.datar.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),J(t,{code:q.too_big,type:`bigint`,maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):r.kind===`multipleOf`?e.data%r.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),J(t,{code:q.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):DA.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit(`min`,e,!0,JA.toString(t))}gt(e,t){return this.setLimit(`min`,e,!1,JA.toString(t))}lte(e,t){return this.setLimit(`max`,e,!0,JA.toString(t))}lt(e,t){return this.setLimit(`max`,e,!1,JA.toString(t))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:JA.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(e){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!1,message:JA.toString(e)})}negative(e){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!1,message:JA.toString(e)})}nonpositive(e){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!0,message:JA.toString(e)})}nonnegative(e){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!0,message:JA.toString(e)})}multipleOf(e,t){return this._addCheck({kind:`multipleOf`,value:e,message:JA.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.valuenew Sj({checks:[],typeName:lM.ZodBigInt,coerce:e?.coerce??!1,...$A(e)});var Cj=class extends ej{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==K.boolean){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.boolean,received:t.parsedType}),zA}return VA(e.data)}};Cj.create=e=>new Cj({typeName:lM.ZodBoolean,coerce:e?.coerce||!1,...$A(e)});var wj=class e extends ej{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==K.date){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.date,received:t.parsedType}),zA}if(isNaN(e.data.getTime()))return J(this._getOrReturnCtx(e),{code:q.invalid_date}),zA;let t=new RA,n;for(let r of this._def.checks)r.kind===`min`?e.data.getTime()r.value&&(n=this._getOrReturnCtx(e,n),J(n,{code:q.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:`date`}),t.dirty()):DA.assertNever(r);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(e,t){return this._addCheck({kind:`min`,value:e.getTime(),message:JA.toString(t)})}max(e,t){return this._addCheck({kind:`max`,value:e.getTime(),message:JA.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e==null?null:new Date(e)}get maxDate(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.valuenew wj({checks:[],coerce:e?.coerce||!1,typeName:lM.ZodDate,...$A(e)});var Tj=class extends ej{_parse(e){if(this._getType(e)!==K.symbol){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.symbol,received:t.parsedType}),zA}return VA(e.data)}};Tj.create=e=>new Tj({typeName:lM.ZodSymbol,...$A(e)});var Ej=class extends ej{_parse(e){if(this._getType(e)!==K.undefined){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.undefined,received:t.parsedType}),zA}return VA(e.data)}};Ej.create=e=>new Ej({typeName:lM.ZodUndefined,...$A(e)});var Dj=class extends ej{_parse(e){if(this._getType(e)!==K.null){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.null,received:t.parsedType}),zA}return VA(e.data)}};Dj.create=e=>new Dj({typeName:lM.ZodNull,...$A(e)});var Oj=class extends ej{constructor(){super(...arguments),this._any=!0}_parse(e){return VA(e.data)}};Oj.create=e=>new Oj({typeName:lM.ZodAny,...$A(e)});var kj=class extends ej{constructor(){super(...arguments),this._unknown=!0}_parse(e){return VA(e.data)}};kj.create=e=>new kj({typeName:lM.ZodUnknown,...$A(e)});var Aj=class extends ej{_parse(e){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.never,received:t.parsedType}),zA}};Aj.create=e=>new Aj({typeName:lM.ZodNever,...$A(e)});var jj=class extends ej{_parse(e){if(this._getType(e)!==K.undefined){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.void,received:t.parsedType}),zA}return VA(e.data)}};jj.create=e=>new jj({typeName:lM.ZodVoid,...$A(e)});var Mj=class e extends ej{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==K.array)return J(t,{code:q.invalid_type,expected:K.array,received:t.parsedType}),zA;if(r.exactLength!==null){let e=t.data.length>r.exactLength.value,i=t.data.lengthr.maxLength.value&&(J(t,{code:q.too_big,maximum:r.maxLength.value,type:`array`,inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new ZA(t,e,t.path,n)))).then(e=>RA.mergeArray(n,e));let i=[...t.data].map((e,n)=>r.type._parseSync(new ZA(t,e,t.path,n)));return RA.mergeArray(n,i)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:JA.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:JA.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:JA.toString(n)}})}nonempty(e){return this.min(1,e)}};Mj.create=(e,t)=>new Mj({type:e,minLength:null,maxLength:null,exactLength:null,typeName:lM.ZodArray,...$A(t)});function Nj(e){if(e instanceof Pj){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=Qj.create(Nj(r))}return new Pj({...e._def,shape:()=>t})}return e instanceof Mj?new Mj({...e._def,type:Nj(e.element)}):e instanceof Qj?Qj.create(Nj(e.unwrap())):e instanceof $j?$j.create(Nj(e.unwrap())):e instanceof Bj?Bj.create(e.items.map(e=>Nj(e))):e}var Pj=class e extends ej{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),t=DA.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==K.object){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.object,received:t.parsedType}),zA}let{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof Aj&&this._def.unknownKeys===`strip`))for(let e in n.data)i.includes(e)||a.push(e);let o=[];for(let e of i){let t=r[e],i=n.data[e];o.push({key:{status:`valid`,value:e},value:t._parse(new ZA(n,i,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof Aj){let e=this._def.unknownKeys;if(e===`passthrough`)for(let e of a)o.push({key:{status:`valid`,value:e},value:{status:`valid`,value:n.data[e]}});else if(e===`strict`)a.length>0&&(J(n,{code:q.unrecognized_keys,keys:a}),t.dirty());else if(e!==`strip`)throw Error(`Internal ZodObject error: invalid unknownKeys value.`)}else{let e=this._def.catchall;for(let t of a){let r=n.data[t];o.push({key:{status:`valid`,value:t},value:e._parse(new ZA(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of o){let n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e}).then(e=>RA.mergeObjectSync(t,e)):RA.mergeObjectSync(t,o)}get shape(){return this._def.shape()}strict(t){return JA.errToObj,new e({...this._def,unknownKeys:`strict`,...t===void 0?{}:{errorMap:(e,n)=>{var r;let i=(r=this._def).errorMap?.call(r,e,n).message??n.defaultError;return e.code===`unrecognized_keys`?{message:JA.errToObj(t).message??i}:{message:i}}}})}strip(){return new e({...this._def,unknownKeys:`strip`})}passthrough(){return new e({...this._def,unknownKeys:`passthrough`})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:lM.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};return DA.objectKeys(t).forEach(e=>{t[e]&&this.shape[e]&&(n[e]=this.shape[e])}),new e({...this._def,shape:()=>n})}omit(t){let n={};return DA.objectKeys(this.shape).forEach(e=>{t[e]||(n[e]=this.shape[e])}),new e({...this._def,shape:()=>n})}deepPartial(){return Nj(this)}partial(t){let n={};return DA.objectKeys(this.shape).forEach(e=>{let r=this.shape[e];t&&!t[e]?n[e]=r:n[e]=r.optional()}),new e({...this._def,shape:()=>n})}required(t){let n={};return DA.objectKeys(this.shape).forEach(e=>{if(t&&!t[e])n[e]=this.shape[e];else{let t=this.shape[e];for(;t instanceof Qj;)t=t._def.innerType;n[e]=t}}),new e({...this._def,shape:()=>n})}keyof(){return qj(DA.objectKeys(this.shape))}};Pj.create=(e,t)=>new Pj({shape:()=>e,unknownKeys:`strip`,catchall:Aj.create(),typeName:lM.ZodObject,...$A(t)}),Pj.strictCreate=(e,t)=>new Pj({shape:()=>e,unknownKeys:`strict`,catchall:Aj.create(),typeName:lM.ZodObject,...$A(t)}),Pj.lazycreate=(e,t)=>new Pj({shape:e,unknownKeys:`strip`,catchall:Aj.create(),typeName:lM.ZodObject,...$A(t)});var Fj=class extends ej{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;function r(e){for(let t of e)if(t.result.status===`valid`)return t.result;for(let n of e)if(n.result.status===`dirty`)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new jA(e.ctx.common.issues));return J(t,{code:q.invalid_union,unionErrors:n}),zA}if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(r);{let e,r=[];for(let i of n){let n={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:n});if(a.status===`valid`)return a;a.status===`dirty`&&!e&&(e={result:a,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=r.map(e=>new jA(e));return J(t,{code:q.invalid_union,unionErrors:i}),zA}}get options(){return this._def.options}};Fj.create=(e,t)=>new Fj({options:e,typeName:lM.ZodUnion,...$A(t)});var Ij=e=>e instanceof Gj?Ij(e.schema):e instanceof Zj?Ij(e.innerType()):e instanceof Kj?[e.value]:e instanceof Jj?e.options:e instanceof Yj?DA.objectValues(e.enum):e instanceof eM?Ij(e._def.innerType):e instanceof Ej?[void 0]:e instanceof Dj?[null]:e instanceof Qj?[void 0,...Ij(e.unwrap())]:e instanceof $j?[null,...Ij(e.unwrap())]:e instanceof iM||e instanceof oM?Ij(e.unwrap()):e instanceof tM?Ij(e._def.innerType):[],Lj=class e extends ej{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==K.object)return J(t,{code:q.invalid_type,expected:K.object,received:t.parsedType}),zA;let n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(J(t,{code:q.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),zA)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){let i=new Map;for(let e of n){let n=Ij(e.shape[t]);if(!n.length)throw Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let r of n){if(i.has(r))throw Error(`Discriminator property ${String(t)} has duplicate value ${String(r)}`);i.set(r,e)}}return new e({typeName:lM.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...$A(r)})}};function Rj(e,t){let n=kA(e),r=kA(t);if(e===t)return{valid:!0,data:e};if(n===K.object&&r===K.object){let n=DA.objectKeys(t),r=DA.objectKeys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=Rj(e[n],t[n]);if(!r.valid)return{valid:!1};i[n]=r.data}return{valid:!0,data:i}}if(n===K.array&&r===K.array){if(e.length!==t.length)return{valid:!1};let n=[];for(let r=0;r{if(HA(e)||HA(r))return zA;let i=Rj(e.value,r.value);return i.valid?((UA(e)||UA(r))&&t.dirty(),{status:t.value,value:i.data}):(J(n,{code:q.invalid_intersection_types}),zA)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};zj.create=(e,t,n)=>new zj({left:e,right:t,typeName:lM.ZodIntersection,...$A(n)});var Bj=class e extends ej{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==K.array)return J(n,{code:q.invalid_type,expected:K.array,received:n.parsedType}),zA;if(n.data.lengththis._def.items.length&&(J(n,{code:q.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:`array`}),t.dirty());let r=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new ZA(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(r).then(e=>RA.mergeArray(t,e)):RA.mergeArray(t,r)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};Bj.create=(e,t)=>{if(!Array.isArray(e))throw Error(`You must pass an array of schemas to z.tuple([ ... ])`);return new Bj({items:e,typeName:lM.ZodTuple,rest:null,...$A(t)})};var Vj=class e extends ej{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==K.object)return J(n,{code:q.invalid_type,expected:K.object,received:n.parsedType}),zA;let r=[],i=this._def.keyType,a=this._def.valueType;for(let e in n.data)r.push({key:i._parse(new ZA(n,e,n.path,e)),value:a._parse(new ZA(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?RA.mergeObjectAsync(t,r):RA.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof ej?new e({keyType:t,valueType:n,typeName:lM.ZodRecord,...$A(r)}):new e({keyType:yj.create(),valueType:t,typeName:lM.ZodRecord,...$A(n)})}},Hj=class extends ej{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==K.map)return J(n,{code:q.invalid_type,expected:K.map,received:n.parsedType}),zA;let r=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map(([e,t],a)=>({key:r._parse(new ZA(n,e,n.path,[a,`key`])),value:i._parse(new ZA(n,t,n.path,[a,`value`]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of a){let r=await n.key,i=await n.value;if(r.status===`aborted`||i.status===`aborted`)return zA;(r.status===`dirty`||i.status===`dirty`)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let n of a){let r=n.key,i=n.value;if(r.status===`aborted`||i.status===`aborted`)return zA;(r.status===`dirty`||i.status===`dirty`)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}};Hj.create=(e,t,n)=>new Hj({valueType:t,keyType:e,typeName:lM.ZodMap,...$A(n)});var Uj=class e extends ej{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==K.set)return J(n,{code:q.invalid_type,expected:K.set,received:n.parsedType}),zA;let r=this._def;r.minSize!==null&&n.data.sizer.maxSize.value&&(J(n,{code:q.too_big,maximum:r.maxSize.value,type:`set`,inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let n=new Set;for(let r of e){if(r.status===`aborted`)return zA;r.status===`dirty`&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let o=[...n.data.values()].map((e,t)=>i._parse(new ZA(n,e,n.path,t)));return n.common.async?Promise.all(o).then(e=>a(e)):a(o)}min(t,n){return new e({...this._def,minSize:{value:t,message:JA.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:JA.toString(n)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}};Uj.create=(e,t)=>new Uj({valueType:e,minSize:null,maxSize:null,typeName:lM.ZodSet,...$A(t)});var Wj=class e extends ej{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==K.function)return J(t,{code:q.invalid_type,expected:K.function,received:t.parsedType}),zA;function n(e,n){return IA({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,FA(),MA].filter(e=>!!e),issueData:{code:q.invalid_arguments,argumentsError:n}})}function r(e,n){return IA({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,FA(),MA].filter(e=>!!e),issueData:{code:q.invalid_return_type,returnTypeError:n}})}let i={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof Xj){let e=this;return VA(async function(...t){let o=new jA([]),s=await e._def.args.parseAsync(t,i).catch(e=>{throw o.addIssue(n(t,e)),o}),c=await Reflect.apply(a,this,s);return await e._def.returns._def.type.parseAsync(c,i).catch(e=>{throw o.addIssue(r(c,e)),o})})}{let e=this;return VA(function(...t){let o=e._def.args.safeParse(t,i);if(!o.success)throw new jA([n(t,o.error)]);let s=Reflect.apply(a,this,o.data),c=e._def.returns.safeParse(s,i);if(!c.success)throw new jA([r(s,c.error)]);return c.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:Bj.create(t).rest(kj.create())})}returns(t){return new e({...this._def,returns:t})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(t,n,r){return new e({args:t||Bj.create([]).rest(kj.create()),returns:n||kj.create(),typeName:lM.ZodFunction,...$A(r)})}},Gj=class extends ej{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}};Gj.create=(e,t)=>new Gj({getter:e,typeName:lM.ZodLazy,...$A(t)});var Kj=class extends ej{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return J(t,{received:t.data,code:q.invalid_literal,expected:this._def.value}),zA}return{status:`valid`,value:e.data}}get value(){return this._def.value}};Kj.create=(e,t)=>new Kj({value:e,typeName:lM.ZodLiteral,...$A(t)});function qj(e,t){return new Jj({values:e,typeName:lM.ZodEnum,...$A(t)})}var Jj=class e extends ej{constructor(){super(...arguments),YA.set(this,void 0)}_parse(e){if(typeof e.data!=`string`){let t=this._getOrReturnCtx(e),n=this._def.values;return J(t,{expected:DA.joinValues(n),received:t.parsedType,code:q.invalid_type}),zA}if(KA(this,YA)||qA(this,YA,new Set(this._def.values)),!KA(this,YA).has(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return J(t,{received:t.data,code:q.invalid_enum_value,options:n}),zA}return VA(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(t,n=this._def){return e.create(t,{...this._def,...n})}exclude(t,n=this._def){return e.create(this.options.filter(e=>!t.includes(e)),{...this._def,...n})}};YA=new WeakMap,Jj.create=qj;var Yj=class extends ej{constructor(){super(...arguments),XA.set(this,void 0)}_parse(e){let t=DA.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==K.string&&n.parsedType!==K.number){let e=DA.objectValues(t);return J(n,{expected:DA.joinValues(e),received:n.parsedType,code:q.invalid_type}),zA}if(KA(this,XA)||qA(this,XA,new Set(DA.getValidEnumValues(this._def.values))),!KA(this,XA).has(e.data)){let e=DA.objectValues(t);return J(n,{received:n.data,code:q.invalid_enum_value,options:e}),zA}return VA(e.data)}get enum(){return this._def.values}};XA=new WeakMap,Yj.create=(e,t)=>new Yj({values:e,typeName:lM.ZodNativeEnum,...$A(t)});var Xj=class extends ej{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==K.promise&&t.common.async===!1?(J(t,{code:q.invalid_type,expected:K.promise,received:t.parsedType}),zA):VA((t.parsedType===K.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}};Xj.create=(e,t)=>new Xj({type:e,typeName:lM.ZodPromise,...$A(t)});var Zj=class extends ej{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===lM.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,i={addIssue:e=>{J(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),r.type===`preprocess`){let e=r.transform(n.data,i);if(n.common.async)return Promise.resolve(e).then(async e=>{if(t.value===`aborted`)return zA;let r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return r.status===`aborted`?zA:r.status===`dirty`||t.value===`dirty`?BA(r.value):r});{if(t.value===`aborted`)return zA;let r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return r.status===`aborted`?zA:r.status===`dirty`||t.value===`dirty`?BA(r.value):r}}if(r.type===`refinement`){let e=e=>{let t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error(`Async refinement encountered during synchronous parse operation. Use .parseAsync instead.`);return e};if(n.common.async===!1){let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return r.status===`aborted`?zA:(r.status===`dirty`&&t.dirty(),e(r.value),{status:t.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>n.status===`aborted`?zA:(n.status===`dirty`&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))))}if(r.type===`transform`){if(n.common.async===!1){let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!WA(e))return e;let a=r.transform(e.value,i);if(a instanceof Promise)throw Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);return{status:t.value,value:a}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>WA(e)?Promise.resolve(r.transform(e.value,i)).then(e=>({status:t.value,value:e})):e)}DA.assertNever(r)}};Zj.create=(e,t,n)=>new Zj({schema:e,typeName:lM.ZodEffects,effect:t,...$A(n)}),Zj.createWithPreprocess=(e,t,n)=>new Zj({schema:t,effect:{type:`preprocess`,transform:e},typeName:lM.ZodEffects,...$A(n)});var Qj=class extends ej{_parse(e){return this._getType(e)===K.undefined?VA(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Qj.create=(e,t)=>new Qj({innerType:e,typeName:lM.ZodOptional,...$A(t)});var $j=class extends ej{_parse(e){return this._getType(e)===K.null?VA(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};$j.create=(e,t)=>new $j({innerType:e,typeName:lM.ZodNullable,...$A(t)});var eM=class extends ej{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===K.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}};eM.create=(e,t)=>new eM({innerType:e,typeName:lM.ZodDefault,defaultValue:typeof t.default==`function`?t.default:()=>t.default,...$A(t)});var tM=class extends ej{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return GA(r)?r.then(e=>({status:`valid`,value:e.status===`valid`?e.value:this._def.catchValue({get error(){return new jA(n.common.issues)},input:n.data})})):{status:`valid`,value:r.status===`valid`?r.value:this._def.catchValue({get error(){return new jA(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};tM.create=(e,t)=>new tM({innerType:e,typeName:lM.ZodCatch,catchValue:typeof t.catch==`function`?t.catch:()=>t.catch,...$A(t)});var nM=class extends ej{_parse(e){if(this._getType(e)!==K.nan){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.nan,received:t.parsedType}),zA}return{status:`valid`,value:e.data}}};nM.create=e=>new nM({typeName:lM.ZodNaN,...$A(e)});var rM=Symbol(`zod_brand`),iM=class extends ej{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}},aM=class e extends ej{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return e.status===`aborted`?zA:e.status===`dirty`?(t.dirty(),BA(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{let e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return e.status===`aborted`?zA:e.status===`dirty`?(t.dirty(),{status:`dirty`,value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(t,n){return new e({in:t,out:n,typeName:lM.ZodPipeline})}},oM=class extends ej{_parse(e){let t=this._def.innerType._parse(e),n=e=>(WA(e)&&(e.value=Object.freeze(e.value)),e);return GA(t)?t.then(e=>n(e)):n(t)}unwrap(){return this._def.innerType}};oM.create=(e,t)=>new oM({innerType:e,typeName:lM.ZodReadonly,...$A(t)});function sM(e,t={},n){return e?Oj.create().superRefine((r,i)=>{if(!e(r)){let e=typeof t==`function`?t(r):typeof t==`string`?{message:t}:t,a=e.fatal??n??!0,o=typeof e==`string`?{message:e}:e;i.addIssue({code:`custom`,...o,fatal:a})}}):Oj.create()}var cM={object:Pj.lazycreate},lM;(function(e){e.ZodString=`ZodString`,e.ZodNumber=`ZodNumber`,e.ZodNaN=`ZodNaN`,e.ZodBigInt=`ZodBigInt`,e.ZodBoolean=`ZodBoolean`,e.ZodDate=`ZodDate`,e.ZodSymbol=`ZodSymbol`,e.ZodUndefined=`ZodUndefined`,e.ZodNull=`ZodNull`,e.ZodAny=`ZodAny`,e.ZodUnknown=`ZodUnknown`,e.ZodNever=`ZodNever`,e.ZodVoid=`ZodVoid`,e.ZodArray=`ZodArray`,e.ZodObject=`ZodObject`,e.ZodUnion=`ZodUnion`,e.ZodDiscriminatedUnion=`ZodDiscriminatedUnion`,e.ZodIntersection=`ZodIntersection`,e.ZodTuple=`ZodTuple`,e.ZodRecord=`ZodRecord`,e.ZodMap=`ZodMap`,e.ZodSet=`ZodSet`,e.ZodFunction=`ZodFunction`,e.ZodLazy=`ZodLazy`,e.ZodLiteral=`ZodLiteral`,e.ZodEnum=`ZodEnum`,e.ZodEffects=`ZodEffects`,e.ZodNativeEnum=`ZodNativeEnum`,e.ZodOptional=`ZodOptional`,e.ZodNullable=`ZodNullable`,e.ZodDefault=`ZodDefault`,e.ZodCatch=`ZodCatch`,e.ZodPromise=`ZodPromise`,e.ZodBranded=`ZodBranded`,e.ZodPipeline=`ZodPipeline`,e.ZodReadonly=`ZodReadonly`})(lM||={});var uM=(e,t={message:`Input not instance of ${e.name}`})=>sM(t=>t instanceof e,t),Y=yj.create,dM=xj.create,fM=nM.create,pM=Sj.create,mM=Cj.create,hM=wj.create,gM=Tj.create,_M=Ej.create,vM=Dj.create,yM=Oj.create,bM=kj.create,xM=Aj.create,SM=jj.create,CM=Mj.create,X=Pj.create,wM=Pj.strictCreate,TM=Fj.create,EM=Lj.create,DM=zj.create,OM=Bj.create,kM=Vj.create,AM=Hj.create,jM=Uj.create,MM=Wj.create,NM=Gj.create,PM=Kj.create,FM=Jj.create,IM=Yj.create,LM=Xj.create,RM=Zj.create,zM=Qj.create,BM=$j.create,VM=Zj.createWithPreprocess,HM=aM.create,Z=Object.freeze({__proto__:null,defaultErrorMap:MA,setErrorMap:PA,getErrorMap:FA,makeIssue:IA,EMPTY_PATH:LA,addIssueToContext:J,ParseStatus:RA,INVALID:zA,DIRTY:BA,OK:VA,isAborted:HA,isDirty:UA,isValid:WA,isAsync:GA,get util(){return DA},get objectUtil(){return OA},ZodParsedType:K,getParsedType:kA,ZodType:ej,datetimeRegex:_j,ZodString:yj,ZodNumber:xj,ZodBigInt:Sj,ZodBoolean:Cj,ZodDate:wj,ZodSymbol:Tj,ZodUndefined:Ej,ZodNull:Dj,ZodAny:Oj,ZodUnknown:kj,ZodNever:Aj,ZodVoid:jj,ZodArray:Mj,ZodObject:Pj,ZodUnion:Fj,ZodDiscriminatedUnion:Lj,ZodIntersection:zj,ZodTuple:Bj,ZodRecord:Vj,ZodMap:Hj,ZodSet:Uj,ZodFunction:Wj,ZodLazy:Gj,ZodLiteral:Kj,ZodEnum:Jj,ZodNativeEnum:Yj,ZodPromise:Xj,ZodEffects:Zj,ZodTransformer:Zj,ZodOptional:Qj,ZodNullable:$j,ZodDefault:eM,ZodCatch:tM,ZodNaN:nM,BRAND:rM,ZodBranded:iM,ZodPipeline:aM,ZodReadonly:oM,custom:sM,Schema:ej,ZodSchema:ej,late:cM,get ZodFirstPartyTypeKind(){return lM},coerce:{string:(e=>yj.create({...e,coerce:!0})),number:(e=>xj.create({...e,coerce:!0})),boolean:(e=>Cj.create({...e,coerce:!0})),bigint:(e=>Sj.create({...e,coerce:!0})),date:(e=>wj.create({...e,coerce:!0}))},any:yM,array:CM,bigint:pM,boolean:mM,date:hM,discriminatedUnion:EM,effect:RM,enum:FM,function:MM,instanceof:uM,intersection:DM,lazy:NM,literal:PM,map:AM,nan:fM,nativeEnum:IM,never:xM,null:vM,nullable:BM,number:dM,object:X,oboolean:()=>mM().optional(),onumber:()=>dM().optional(),optional:zM,ostring:()=>Y().optional(),pipeline:HM,preprocess:VM,promise:LM,record:kM,set:jM,strictObject:wM,string:Y,symbol:gM,transformer:RM,tuple:OM,undefined:_M,union:TM,unknown:bM,void:SM,NEVER:zA,ZodIssueCode:q,quotelessJson:AA,ZodError:jA}),UM={exports:{}},WM;function GM(){return WM||(WM=1,(function(e){var t=(function(e){var n=1e7,r=9007199254740992,i=f(r),a=`0123456789abcdefghijklmnopqrstuvwxyz`,o=typeof BigInt==`function`;function s(e,t,n,r){return e===void 0?s[0]:t===void 0||+t==10&&!n?P(e):_e(e,t,n,r)}function c(e,t){this.value=e,this.sign=t,this.isSmall=!1}c.prototype=Object.create(s.prototype);function l(e){this.value=e,this.sign=e<0,this.isSmall=!0}l.prototype=Object.create(s.prototype);function u(e){this.value=e}u.prototype=Object.create(s.prototype);function d(e){return-r0?Math.floor(e):Math.ceil(e)}function _(e,t){for(var r=e.length,i=t.length,a=Array(r),o=0,s=n,c,l=0;l=s),a[l]=c-o*s;for(;l0&&a.push(o),a}function v(e,t){return e.length>=t.length?_(e,t):_(t,e)}function y(e,t){for(var r=e.length,i=Array(r),a=n,o,s=0;s0;)i[s++]=t%a,t=Math.floor(t/a);return i}c.prototype.add=function(e){var t=P(e);if(this.sign!==t.sign)return this.subtract(t.negate());var n=this.value,r=t.value;return t.isSmall?new c(y(n,Math.abs(r)),this.sign):new c(v(n,r),this.sign)},c.prototype.plus=c.prototype.add,l.prototype.add=function(e){var t=P(e),n=this.value;if(n<0!==t.sign)return this.subtract(t.negate());var r=t.value;if(t.isSmall){if(d(n+r))return new l(n+r);r=f(Math.abs(r))}return new c(y(r,Math.abs(n)),n<0)},l.prototype.plus=l.prototype.add,u.prototype.add=function(e){return new u(this.value+P(e).value)},u.prototype.plus=u.prototype.add;function b(e,t){for(var r=e.length,i=t.length,a=Array(r),o=0,s=n,c=0,l;c=0?r=b(e,t):(r=b(t,e),n=!n),r=p(r),typeof r==`number`?(n&&(r=-r),new l(r)):new c(r,n)}function S(e,t,r){for(var i=e.length,a=Array(i),o=-t,s=n,u=0,d;u=0)},l.prototype.minus=l.prototype.subtract,u.prototype.subtract=function(e){return new u(this.value-P(e).value)},u.prototype.minus=u.prototype.subtract,c.prototype.negate=function(){return new c(this.value,!this.sign)},l.prototype.negate=function(){var e=this.sign,t=new l(-this.value);return t.sign=!e,t},u.prototype.negate=function(){return new u(-this.value)},c.prototype.abs=function(){return new c(this.value,!1)},l.prototype.abs=function(){return new l(Math.abs(this.value))},u.prototype.abs=function(){return new u(this.value>=0?this.value:-this.value)};function C(e,t){for(var r=e.length,i=t.length,a=h(r+i),o=n,s,c,l=0,u,d;l0;)i[c++]=o%a,o=Math.floor(o/a);return i}function T(e,t){for(var n=[];t-->0;)n.push(0);return n.concat(e)}function E(e,t){var n=Math.max(e.length,t.length);if(n<=30)return C(e,t);n=Math.ceil(n/2);var r=e.slice(n),i=e.slice(0,n),a=t.slice(n),o=t.slice(0,n),s=E(i,o),c=E(r,a),l=v(v(s,T(b(b(E(v(i,r),v(o,a)),s),c),n)),T(c,2*n));return m(l),l}function D(e,t){return-.012*e-.012*t+15e-6*e*t>0}c.prototype.multiply=function(e){var t=P(e),r=this.value,i=t.value,a=this.sign!==t.sign,o;if(t.isSmall){if(i===0)return s[0];if(i===1)return this;if(i===-1)return this.negate();if(o=Math.abs(i),o=0;f--){for(d=a-1,l[f+i]!==s&&(d=Math.floor((l[f+i]*a+l[f+i-1])/s)),m=0,g=0,v=u.length,_=0;_i&&(u=(u+1)*s),c=Math.ceil(u/d);do{if(f=w(t,c),ne(f,o)<=0)break;c--}while(c);a.push(c),o=b(o,f)}return a.reverse(),[p(a),p(o)]}function te(e,t){var r=e.length,i=h(r),a=n,o,s,c=0,l;for(o=r-1;o>=0;--o)l=c*a+e[o],s=g(l/t),c=l-s*t,i[o]=s|0;return[i,c|0]}function j(e,t){var r,i=P(t);if(o)return[new u(e.value/i.value),new u(e.value%i.value)];var a=e.value,d=i.value,m;if(d===0)throw Error(`Cannot divide by zero`);if(e.isSmall)return i.isSmall?[new l(g(a/d)),new l(a%d)]:[s[0],e];if(i.isSmall){if(d===1)return[e,s[0]];if(d==-1)return[e.negate(),s[0]];var h=Math.abs(d);if(ht.length?1:-1;for(var n=e.length-1;n>=0;n--)if(e[n]!==t[n])return e[n]>t[n]?1:-1;return 0}c.prototype.compareAbs=function(e){var t=P(e),n=this.value,r=t.value;return t.isSmall?1:ne(n,r)},l.prototype.compareAbs=function(e){var t=P(e),n=Math.abs(this.value),r=t.value;return t.isSmall?(r=Math.abs(r),n===r?0:n>r?1:-1):-1},u.prototype.compareAbs=function(e){var t=this.value,n=P(e).value;return t=t>=0?t:-t,n=n>=0?n:-n,t===n?0:t>n?1:-1},c.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=P(e),n=this.value,r=t.value;return this.sign===t.sign?t.isSmall?this.sign?-1:1:ne(n,r)*(this.sign?-1:1):t.sign?1:-1},c.prototype.compareTo=c.prototype.compare,l.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=P(e),n=this.value,r=t.value;return t.isSmall?n==r?0:n>r?1:-1:n<0===t.sign?n<0?1:-1:n<0?-1:1},l.prototype.compareTo=l.prototype.compare,u.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=this.value,n=P(e).value;return t===n?0:t>n?1:-1},u.prototype.compareTo=u.prototype.compare,c.prototype.equals=function(e){return this.compare(e)===0},u.prototype.eq=u.prototype.equals=l.prototype.eq=l.prototype.equals=c.prototype.eq=c.prototype.equals,c.prototype.notEquals=function(e){return this.compare(e)!==0},u.prototype.neq=u.prototype.notEquals=l.prototype.neq=l.prototype.notEquals=c.prototype.neq=c.prototype.notEquals,c.prototype.greater=function(e){return this.compare(e)>0},u.prototype.gt=u.prototype.greater=l.prototype.gt=l.prototype.greater=c.prototype.gt=c.prototype.greater,c.prototype.lesser=function(e){return this.compare(e)<0},u.prototype.lt=u.prototype.lesser=l.prototype.lt=l.prototype.lesser=c.prototype.lt=c.prototype.lesser,c.prototype.greaterOrEquals=function(e){return this.compare(e)>=0},u.prototype.geq=u.prototype.greaterOrEquals=l.prototype.geq=l.prototype.greaterOrEquals=c.prototype.geq=c.prototype.greaterOrEquals,c.prototype.lesserOrEquals=function(e){return this.compare(e)<=0},u.prototype.leq=u.prototype.lesserOrEquals=l.prototype.leq=l.prototype.lesserOrEquals=c.prototype.leq=c.prototype.lesserOrEquals,c.prototype.isEven=function(){return!(this.value[0]&1)},l.prototype.isEven=function(){return!(this.value&1)},u.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},c.prototype.isOdd=function(){return(this.value[0]&1)==1},l.prototype.isOdd=function(){return(this.value&1)==1},u.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},c.prototype.isPositive=function(){return!this.sign},l.prototype.isPositive=function(){return this.value>0},u.prototype.isPositive=l.prototype.isPositive,c.prototype.isNegative=function(){return this.sign},l.prototype.isNegative=function(){return this.value<0},u.prototype.isNegative=l.prototype.isNegative,c.prototype.isUnit=function(){return!1},l.prototype.isUnit=function(){return Math.abs(this.value)===1},u.prototype.isUnit=function(){return this.abs().value===BigInt(1)},c.prototype.isZero=function(){return!1},l.prototype.isZero=function(){return this.value===0},u.prototype.isZero=function(){return this.value===BigInt(0)},c.prototype.isDivisibleBy=function(e){var t=P(e);return t.isZero()?!1:t.isUnit()?!0:t.compareAbs(2)===0?this.isEven():this.mod(t).isZero()},u.prototype.isDivisibleBy=l.prototype.isDivisibleBy=c.prototype.isDivisibleBy;function re(e){var t=e.abs();if(t.isUnit())return!1;if(t.equals(2)||t.equals(3)||t.equals(5))return!0;if(t.isEven()||t.isDivisibleBy(3)||t.isDivisibleBy(5))return!1;if(t.lesser(49))return!0}function ie(e,n){for(var r=e.prev(),i=r,a=0,o,s,c;i.isEven();)i=i.divide(2),a++;next:for(s=0;s-r?new l(e-1):new c(i,!0)},u.prototype.prev=function(){return new u(this.value-BigInt(1))};for(var M=[1];2*M[M.length-1]<=n;)M.push(2*M[M.length-1]);var N=M.length,ae=M[N-1];function oe(e){return Math.abs(e)<=n}c.prototype.shiftLeft=function(e){var t=P(e).toJSNumber();if(!oe(t))throw Error(String(t)+` is too large for shifting.`);if(t<0)return this.shiftRight(-t);var n=this;if(n.isZero())return n;for(;t>=N;)n=n.multiply(ae),t-=N-1;return n.multiply(M[t])},u.prototype.shiftLeft=l.prototype.shiftLeft=c.prototype.shiftLeft,c.prototype.shiftRight=function(e){var t,n=P(e).toJSNumber();if(!oe(n))throw Error(String(n)+` is too large for shifting.`);if(n<0)return this.shiftLeft(-n);for(var r=this;n>=N;){if(r.isZero()||r.isNegative()&&r.isUnit())return r;t=j(r,ae),r=t[1].isNegative()?t[0].prev():t[0],n-=N-1}return t=j(r,M[n]),t[1].isNegative()?t[0].prev():t[0]},u.prototype.shiftRight=l.prototype.shiftRight=c.prototype.shiftRight;function se(e,n,r){n=P(n);for(var i=e.isNegative(),a=n.isNegative(),o=i?e.not():e,s=a?n.not():n,c=0,l=0,u=null,d=null,f=[];!o.isZero()||!s.isZero();)u=j(o,ae),c=u[1].toJSNumber(),i&&(c=ae-1-c),d=j(s,ae),l=d[1].toJSNumber(),a&&(l=ae-1-l),o=u[0],s=d[0],f.push(r(c,l));for(var p=r(+!!i,+!!a)===0?t(0):t(-1),m=f.length-1;m>=0;--m)p=p.multiply(ae).add(t(f[m]));return p}c.prototype.not=function(){return this.negate().prev()},u.prototype.not=l.prototype.not=c.prototype.not,c.prototype.and=function(e){return se(this,e,function(e,t){return e&t})},u.prototype.and=l.prototype.and=c.prototype.and,c.prototype.or=function(e){return se(this,e,function(e,t){return e|t})},u.prototype.or=l.prototype.or=c.prototype.or,c.prototype.xor=function(e){return se(this,e,function(e,t){return e^t})},u.prototype.xor=l.prototype.xor=c.prototype.xor;var ce=1<<30,le=(n&-n)*(n&-n)|ce;function ue(e){var t=e.value,r=typeof t==`number`?t|ce:typeof t==`bigint`?t|BigInt(ce):t[0]+t[1]*n|le;return r&-r}function de(e,n){if(n.compareTo(e)<=0){var r=de(e,n.square(n)),i=r.p,a=r.e,o=i.multiply(n);return o.compareTo(e)<=0?{p:o,e:a*2+1}:{p:i,e:a*2}}return{p:t(1),e:0}}c.prototype.bitLength=function(){var e=this;return e.compareTo(t(0))<0&&(e=e.negate().subtract(t(1))),e.compareTo(t(0))===0?t(0):t(de(e,t(2)).e).add(t(1))},u.prototype.bitLength=l.prototype.bitLength=c.prototype.bitLength;function fe(e,t){return e=P(e),t=P(t),e.greater(t)?e:t}function pe(e,t){return e=P(e),t=P(t),e.lesser(t)?e:t}function me(e,t){if(e=P(e).abs(),t=P(t).abs(),e.equals(t))return e;if(e.isZero())return t;if(t.isZero())return e;for(var n=s[1],r,i;e.isEven()&&t.isEven();)r=pe(ue(e),ue(t)),e=e.divide(r),t=t.divide(r),n=n.multiply(r);for(;e.isEven();)e=e.divide(ue(e));do{for(;t.isEven();)t=t.divide(ue(t));e.greater(t)&&(i=t,t=e,e=i),t=t.subtract(e)}while(!t.isZero());return n.isUnit()?e:e.multiply(n)}function he(e,t){return e=P(e).abs(),t=P(t).abs(),e.divide(me(e,t)).multiply(t)}function ge(e,t,r){e=P(e),t=P(t);var i=r||Math.random,a=pe(e,t),o=fe(e,t).subtract(a).add(1);if(o.isSmall)return a.add(Math.floor(i()*o));for(var c=be(o,n).value,l=[],u=!0,d=0;d=s){if(l===`1`&&s===1)continue;throw Error(l+` is not a valid digit in base `+t+`.`)}}t=P(t);var u=[],d=e[0]===`-`;for(o=+!!d;o`&&o=0;a--)r=r.add(e[a].times(i)),i=i.times(t);return n?r.negate():r}function ye(e,t){return t||=a,e`}function be(e,n){if(n=t(n),n.isZero()){if(e.isZero())return{value:[0],isNegative:!1};throw Error(`Cannot convert nonzero numbers to base 0.`)}if(n.equals(-1)){if(e.isZero())return{value:[0],isNegative:!1};if(e.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-e.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var r=Array.apply(null,Array(e.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return r.unshift([1]),{value:[].concat.apply([],r),isNegative:!1}}var i=!1;if(e.isNegative()&&n.isPositive()&&(i=!0,e=e.abs()),n.isUnit())return e.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(e.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:i};for(var a=[],o=e,s;o.isNegative()||o.compareAbs(n)>=0;){s=o.divmod(n),o=s.quotient;var c=s.remainder;c.isNegative()&&(c=n.minus(c).abs(),o=o.next()),a.push(c.toJSNumber())}return a.push(o.toJSNumber()),{value:a.reverse(),isNegative:i}}function xe(e,t,n){var r=be(e,t);return(r.isNegative?`-`:``)+r.value.map(function(e){return ye(e,n)}).join(``)}c.prototype.toArray=function(e){return be(this,e)},l.prototype.toArray=function(e){return be(this,e)},u.prototype.toArray=function(e){return be(this,e)},c.prototype.toString=function(t,n){if(t===e&&(t=10),t!==10||n)return xe(this,t,n);for(var r=this.value,i=r.length,a=String(r[--i]),o=`0000000`,s;--i>=0;)s=String(r[i]),a+=o.slice(s.length)+s;return(this.sign?`-`:``)+a},l.prototype.toString=function(t,n){return t===e&&(t=10),t!=10||n?xe(this,t,n):String(this.value)},u.prototype.toString=l.prototype.toString,u.prototype.toJSON=c.prototype.toJSON=l.prototype.toJSON=function(){return this.toString()},c.prototype.valueOf=function(){return parseInt(this.toString(),10)},c.prototype.toJSNumber=c.prototype.valueOf,l.prototype.valueOf=function(){return this.value},l.prototype.toJSNumber=l.prototype.valueOf,u.prototype.valueOf=u.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};function Se(e){if(d(+e)){var t=+e;if(t===g(t))return o?new u(BigInt(t)):new l(t);throw Error(`Invalid integer: `+e)}var n=e[0]===`-`;n&&(e=e.slice(1));var r=e.split(/e/i);if(r.length>2)throw Error(`Invalid integer: `+r.join(`e`));if(r.length===2){var i=r[1];if(i[0]===`+`&&(i=i.slice(1)),i=+i,i!==g(i)||!d(i))throw Error(`Invalid integer: `+i+` is not a valid exponent.`);var a=r[0],s=a.indexOf(`.`);if(s>=0&&(i-=a.length-s-1,a=a.slice(0,s)+a.slice(s+1)),i<0)throw Error(`Cannot include negative exponent part for integers`);a+=Array(i+1).join(`0`),e=a}if(!/^([0-9][0-9]*)$/.test(e))throw Error(`Invalid integer: `+e);if(o)return new u(BigInt(n?`-`+e:e));for(var f=[],p=e.length,h=7,_=p-h;p>0;)f.push(+e.slice(_,p)),_-=h,_<0&&(_=0),p-=h;return m(f),new c(f,n)}function Ce(e){if(o)return new u(BigInt(e));if(d(e)){if(e!==g(e))throw Error(e+` is not an integer.`);return new l(e)}return Se(e.toString())}function P(e){return typeof e==`number`?Ce(e):typeof e==`string`?Se(e):typeof e==`bigint`?new u(e):e}for(var we=0;we<1e3;we++)s[we]=P(we),we>0&&(s[-we]=P(-we));return s.one=s[1],s.zero=s[0],s.minusOne=s[-1],s.max=fe,s.min=pe,s.gcd=me,s.lcm=he,s.isInstance=function(e){return e instanceof c||e instanceof l||e instanceof u},s.randBetween=ge,s.fromArray=function(e,t,n){return ve(e.map(P),P(t||10),n)},s})();e.hasOwnProperty(`exports`)&&(e.exports=t)})(UM)),UM.exports}var KM=SA(GM()),qM=64,JM=16,YM=qM/JM;function XM(){try{return!0}catch{return!1}}function ZM(e,t,n){let r=0;for(let i=0;ie&t[n]))}or({parts:t}){return new e(this.parts.map((e,n)=>e|t[n]))}xor({parts:t}){return new e(this.parts.map((e,n)=>e^t[n]))}not(){return new e(this.parts.map(e=>~e))}equals({parts:e}){return this.parts.every((t,n)=>t===e[n])}toString(){if(this.str!=null)return this.str;let e=Array(qM/4);return this.parts.forEach((t,n)=>{let r=QM(t.toString());for(let t=0;t<4;t++)e[t+n*4]=r[3-t]||0}),this.str=KM.fromArray(e,16).toString()}toJSON(){return this.toString()}},tN=XM();tN&&BigInt.prototype.toJSON==null&&(BigInt.prototype.toJSON=function(){return this.toString()});var nN={},rN=tN?function(e){return BigInt(e)}:function(e){return e instanceof eN?e:(typeof e==`number`&&(e=e.toString()),nN[e]??(nN[e]=eN.fromString(e)),nN[e])},iN=rN(0),aN=tN?function(e=iN,t=iN){return e&t}:function(e=iN,t=iN){return e.and(t)},oN=tN?function(e=iN,t=iN){return e|t}:function(e=iN,t=iN){return e.or(t)},sN=tN?function(e=iN,t=iN){return e^t}:function(e=iN,t=iN){return e.xor(t)},cN=tN?function(e=iN){return~e}:function(e=iN){return e.not()},lN=tN?function(e,t){return e===t}:function(e,t){return e==null||t==null?e==t:e.equals(t)};function uN(...e){let t=e[0];for(let n=1;n{let[n]=Object.entries(e).find(([,e])=>e===t)??[];return t!=null&&n===void 0?e.UNHANDLED:t},Y().or(dM()))}function xN(e){let t=sM().transform(t=>{let n=e.safeParse(t);return n.success?n.data:e._def.defaultValue()});return t.overlayType=e,t}var SN=Z.object({image_url:Z.string()}).describe(`Response for "INITIATE_IMAGE_UPLOAD" Command`),CN=Z.object({mediaUrl:Z.string().max(1024)}).describe(`Request for "OPEN_SHARE_MOMENT_DIALOG" Command`),wN=Z.object({access_token:Z.union([Z.string(),Z.null()]).optional()}).describe(`Request for "AUTHENTICATE" Command`),TN=Z.object({access_token:Z.string(),user:Z.object({username:Z.string(),discriminator:Z.string(),id:Z.string(),avatar:Z.union([Z.string(),Z.null()]).optional(),public_flags:Z.number(),global_name:Z.union([Z.string(),Z.null()]).optional()}),scopes:Z.array(xN(Z.enum(`identify,identify.premium,email,connections,guilds,guilds.join,guilds.members.read,guilds.channels.read,gdm.join,bot,rpc,rpc.notifications.read,rpc.voice.read,rpc.voice.write,rpc.video.read,rpc.video.write,rpc.screenshare.read,rpc.screenshare.write,rpc.activities.write,webhook.incoming,messages.read,applications.builds.upload,applications.builds.read,applications.commands,applications.commands.permissions.update,applications.commands.update,applications.store.update,applications.entitlements,activities.read,activities.write,activities.invites.write,relationships.read,relationships.write,voice,dm_channels.read,role_connections.write,presences.read,presences.write,openid,dm_channels.messages.read,dm_channels.messages.write,gateway.connect,account.global_name.update,payment_sources.country_code,sdk.social_layer_presence,sdk.social_layer,lobbies.write,application_identities.write`.split(`,`)).or(Z.literal(-1)).default(-1))),expires:Z.string(),application:Z.object({description:Z.string(),icon:Z.union([Z.string(),Z.null()]).optional(),id:Z.string(),rpc_origins:Z.array(Z.string()).optional(),name:Z.string()})}).describe(`Response for "AUTHENTICATE" Command`),EN=Z.object({participants:Z.array(Z.object({id:Z.string(),username:Z.string(),global_name:Z.union([Z.string(),Z.null()]).optional(),discriminator:Z.string(),avatar:Z.union([Z.string(),Z.null()]).optional(),flags:Z.number(),bot:Z.boolean(),avatar_decoration_data:Z.union([Z.object({asset:Z.union([Z.string(),Z.null()]).optional(),skuId:Z.string().optional(),expiresAt:Z.number().optional()}),Z.null()]).optional(),premium_type:Z.union([Z.number(),Z.null()]).optional(),nickname:Z.string().optional()}))}).describe(`Response for "GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS" Command`),DN=Z.object({command:Z.string(),options:Z.array(Z.object({name:Z.string(),value:Z.string()})).optional(),content:Z.string().max(2e3).optional(),require_launch_channel:Z.boolean().optional(),preview_image:Z.object({height:Z.number(),url:Z.string(),width:Z.number()}).optional(),components:Z.array(Z.object({type:Z.literal(1),components:Z.array(Z.object({type:Z.literal(2),style:Z.number().gte(1).lte(5),label:Z.string().max(80).optional(),custom_id:Z.string().max(100).describe(`Developer-defined identifier for the button; max 100 characters`).optional()})).max(5).optional()})).optional(),pid:Z.number().optional()}).describe(`Request for "SHARE_INTERACTION" Command`),ON=Z.object({success:Z.boolean()}).describe(`Response for "SHARE_INTERACTION" Command`),kN=Z.object({custom_id:Z.string().max(64).optional(),message:Z.string().max(1e3),link_id:Z.string().max(64).optional()}).describe(`Request for "SHARE_LINK" Command`),AN=Z.object({success:Z.boolean(),didCopyLink:Z.boolean(),didSendMessage:Z.boolean()}).describe(`Response for "SHARE_LINK" Command`),jN=Z.object({relationships:Z.array(Z.object({type:Z.number(),user:Z.object({id:Z.string(),username:Z.string(),global_name:Z.union([Z.string(),Z.null()]).optional(),discriminator:Z.string(),avatar:Z.union([Z.string(),Z.null()]).optional(),flags:Z.number(),bot:Z.boolean(),avatar_decoration_data:Z.union([Z.object({asset:Z.union([Z.string(),Z.null()]).optional(),skuId:Z.string().optional(),expiresAt:Z.number().optional()}),Z.null()]).optional(),premium_type:Z.union([Z.number(),Z.null()]).optional()}),presence:Z.object({status:Z.string(),activity:Z.union([Z.object({session_id:Z.string().optional(),type:Z.number().optional(),name:Z.string(),url:Z.union([Z.string(),Z.null()]).optional(),application_id:Z.string().optional(),status_display_type:Z.number().optional(),state:Z.string().optional(),state_url:Z.string().optional(),details:Z.string().optional(),details_url:Z.string().optional(),emoji:Z.union([Z.object({name:Z.string(),id:Z.union([Z.string(),Z.null()]).optional(),animated:Z.union([Z.boolean(),Z.null()]).optional()}),Z.null()]).optional(),assets:Z.object({large_image:Z.string().optional(),large_text:Z.string().optional(),large_url:Z.string().optional(),small_image:Z.string().optional(),small_text:Z.string().optional(),small_url:Z.string().optional()}).optional(),timestamps:Z.object({start:Z.number().optional(),end:Z.number().optional()}).optional(),party:Z.object({id:Z.string().optional(),size:Z.array(Z.number()).min(2).max(2).optional(),privacy:Z.number().optional()}).optional(),secrets:Z.object({match:Z.string().optional(),join:Z.string().optional()}).optional(),sync_id:Z.string().optional(),created_at:Z.number().optional(),instance:Z.boolean().optional(),flags:Z.number().optional(),metadata:Z.object({}).optional(),platform:Z.string().optional(),supported_platforms:Z.array(Z.string()).optional(),buttons:Z.array(Z.string()).optional(),hangStatus:Z.string().optional()}),Z.null()]).optional()}).optional()}))}).describe(`Response for "GET_RELATIONSHIPS" Command`),MN=Z.object({user_id:Z.string(),content:Z.string().min(0).max(1024).optional()}).describe(`Request for "INVITE_USER_EMBEDDED" Command`),NN=Z.object({id:Z.string().max(64)}).describe(`Request for "GET_USER" Command`),PN=Z.union([Z.object({id:Z.string(),username:Z.string(),global_name:Z.union([Z.string(),Z.null()]).optional(),discriminator:Z.string(),avatar:Z.union([Z.string(),Z.null()]).optional(),flags:Z.number(),bot:Z.boolean(),avatar_decoration_data:Z.union([Z.object({asset:Z.union([Z.string(),Z.null()]).optional(),skuId:Z.string().optional(),expiresAt:Z.number().optional()}),Z.null()]).optional(),premium_type:Z.union([Z.number(),Z.null()]).optional()}),Z.null()]),FN=Z.object({quest_id:Z.string()}).describe(`Request for "GET_QUEST_ENROLLMENT_STATUS" Command`),IN=Z.object({quest_id:Z.string(),is_enrolled:Z.boolean(),enrolled_at:Z.union([Z.string(),Z.null()]).optional()}).describe(`Response for "GET_QUEST_ENROLLMENT_STATUS" Command`),LN=Z.object({quest_id:Z.string()}).describe(`Request for "QUEST_START_TIMER" Command`),RN=Z.object({success:Z.boolean()}).describe(`Response for "QUEST_START_TIMER" Command`),zN=Z.object({quest_id:Z.string(),enrolled_at:Z.union([Z.string(),Z.null()]).optional(),completed_at:Z.union([Z.string(),Z.null()]).optional(),external_cta_url:Z.string()}).describe(`Response for "GET_QUEST" Command`),BN=Z.object({ticket:Z.string()}).describe(`Response for "REQUEST_PROXY_TICKET_REFRESH" Command`),VN;(function(e){e.INITIATE_IMAGE_UPLOAD=`INITIATE_IMAGE_UPLOAD`,e.OPEN_SHARE_MOMENT_DIALOG=`OPEN_SHARE_MOMENT_DIALOG`,e.AUTHENTICATE=`AUTHENTICATE`,e.GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS=`GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS`,e.SHARE_INTERACTION=`SHARE_INTERACTION`,e.SHARE_LINK=`SHARE_LINK`,e.GET_RELATIONSHIPS=`GET_RELATIONSHIPS`,e.INVITE_USER_EMBEDDED=`INVITE_USER_EMBEDDED`,e.GET_USER=`GET_USER`,e.GET_QUEST_ENROLLMENT_STATUS=`GET_QUEST_ENROLLMENT_STATUS`,e.QUEST_START_TIMER=`QUEST_START_TIMER`,e.GET_QUEST=`GET_QUEST`,e.REQUEST_PROXY_TICKET_REFRESH=`REQUEST_PROXY_TICKET_REFRESH`})(VN||={});var HN=Z.object({}).optional().nullable(),UN=Z.void(),WN={[VN.INITIATE_IMAGE_UPLOAD]:{request:UN,response:SN},[VN.OPEN_SHARE_MOMENT_DIALOG]:{request:CN,response:HN},[VN.AUTHENTICATE]:{request:wN,response:TN},[VN.GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS]:{request:UN,response:EN},[VN.SHARE_INTERACTION]:{request:DN,response:ON},[VN.SHARE_LINK]:{request:kN,response:AN},[VN.GET_RELATIONSHIPS]:{request:UN,response:jN},[VN.INVITE_USER_EMBEDDED]:{request:MN,response:HN},[VN.GET_USER]:{request:NN,response:PN},[VN.GET_QUEST_ENROLLMENT_STATUS]:{request:FN,response:IN},[VN.QUEST_START_TIMER]:{request:LN,response:RN},[VN.GET_QUEST]:{request:UN,response:zN},[VN.REQUEST_PROXY_TICKET_REFRESH]:{request:UN,response:BN}},GN=t({Activity:()=>oP,Attachment:()=>hP,CertifiedDevice:()=>FP,CertifiedDeviceTypeObject:()=>PP,Channel:()=>uP,ChannelMention:()=>mP,ChannelTypesObject:()=>lP,Commands:()=>qN,DISPATCH:()=>KN,Embed:()=>SP,EmbedAuthor:()=>bP,EmbedField:()=>xP,EmbedFooter:()=>gP,EmbedProvider:()=>yP,Emoji:()=>tP,Entitlement:()=>zP,EntitlementTypesObject:()=>RP,Guild:()=>pP,GuildMember:()=>$N,GuildMemberRPC:()=>eP,Image:()=>_P,KeyTypesObject:()=>kP,LayoutMode:()=>qP,LayoutModeTypeObject:()=>KP,Message:()=>DP,MessageActivity:()=>wP,MessageApplication:()=>TP,MessageReference:()=>EP,Orientation:()=>GP,OrientationLockState:()=>VP,OrientationLockStateTypeObject:()=>BP,OrientationTypeObject:()=>WP,PermissionOverwrite:()=>cP,PermissionOverwriteTypeObject:()=>sP,PresenceUpdate:()=>dP,Reaction:()=>CP,ReceiveFramePayload:()=>JN,Relationship:()=>ZN,Role:()=>fP,Scopes:()=>XN,ScopesObject:()=>YN,ShortcutKey:()=>AP,Sku:()=>LP,SkuTypeObject:()=>IP,Status:()=>aP,StatusObject:()=>iP,ThermalState:()=>UP,ThermalStateTypeObject:()=>HP,User:()=>QN,UserVoiceState:()=>rP,Video:()=>vP,VoiceDevice:()=>OP,VoiceSettingModeTypeObject:()=>jP,VoiceSettingsIO:()=>NP,VoiceSettingsMode:()=>MP,VoiceState:()=>nP}),KN=`DISPATCH`,qN;(function(e){e.AUTHORIZE=`AUTHORIZE`,e.GET_GUILDS=`GET_GUILDS`,e.GET_GUILD=`GET_GUILD`,e.GET_CHANNEL=`GET_CHANNEL`,e.GET_CHANNELS=`GET_CHANNELS`,e.SELECT_VOICE_CHANNEL=`SELECT_VOICE_CHANNEL`,e.SELECT_TEXT_CHANNEL=`SELECT_TEXT_CHANNEL`,e.SUBSCRIBE=`SUBSCRIBE`,e.UNSUBSCRIBE=`UNSUBSCRIBE`,e.CAPTURE_SHORTCUT=`CAPTURE_SHORTCUT`,e.SET_CERTIFIED_DEVICES=`SET_CERTIFIED_DEVICES`,e.SET_ACTIVITY=`SET_ACTIVITY`,e.GET_SKUS=`GET_SKUS`,e.GET_ENTITLEMENTS=`GET_ENTITLEMENTS`,e.GET_SKUS_EMBEDDED=`GET_SKUS_EMBEDDED`,e.GET_ENTITLEMENTS_EMBEDDED=`GET_ENTITLEMENTS_EMBEDDED`,e.START_PURCHASE=`START_PURCHASE`,e.SET_CONFIG=`SET_CONFIG`,e.SEND_ANALYTICS_EVENT=`SEND_ANALYTICS_EVENT`,e.USER_SETTINGS_GET_LOCALE=`USER_SETTINGS_GET_LOCALE`,e.OPEN_EXTERNAL_LINK=`OPEN_EXTERNAL_LINK`,e.ENCOURAGE_HW_ACCELERATION=`ENCOURAGE_HW_ACCELERATION`,e.CAPTURE_LOG=`CAPTURE_LOG`,e.SET_ORIENTATION_LOCK_STATE=`SET_ORIENTATION_LOCK_STATE`,e.OPEN_INVITE_DIALOG=`OPEN_INVITE_DIALOG`,e.GET_PLATFORM_BEHAVIORS=`GET_PLATFORM_BEHAVIORS`,e.GET_CHANNEL_PERMISSIONS=`GET_CHANNEL_PERMISSIONS`,e.AUTHENTICATE=`AUTHENTICATE`,e.GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS=`GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS`,e.GET_QUEST=`GET_QUEST`,e.GET_QUEST_ENROLLMENT_STATUS=`GET_QUEST_ENROLLMENT_STATUS`,e.GET_RELATIONSHIPS=`GET_RELATIONSHIPS`,e.GET_USER=`GET_USER`,e.INITIATE_IMAGE_UPLOAD=`INITIATE_IMAGE_UPLOAD`,e.INVITE_USER_EMBEDDED=`INVITE_USER_EMBEDDED`,e.OPEN_SHARE_MOMENT_DIALOG=`OPEN_SHARE_MOMENT_DIALOG`,e.QUEST_START_TIMER=`QUEST_START_TIMER`,e.REQUEST_PROXY_TICKET_REFRESH=`REQUEST_PROXY_TICKET_REFRESH`,e.SHARE_INTERACTION=`SHARE_INTERACTION`,e.SHARE_LINK=`SHARE_LINK`})(qN||={});var JN=X({cmd:Y(),data:bM(),evt:vM(),nonce:Y()}).passthrough(),YN=Object.assign(Object.assign({},TN.shape.scopes.element.overlayType._def.innerType.options[0].Values),{UNHANDLED:-1}),XN=bN(YN),ZN=jN.shape.relationships.element,QN=X({id:Y(),username:Y(),discriminator:Y(),global_name:Y().optional().nullable(),avatar:Y().optional().nullable(),avatar_decoration_data:X({asset:Y(),sku_id:Y().optional()}).nullable(),bot:mM(),flags:dM().optional().nullable(),premium_type:dM().optional().nullable()}),$N=X({user:QN,nick:Y().optional().nullable(),roles:CM(Y()),joined_at:Y(),deaf:mM(),mute:mM()}),eP=X({user_id:Y(),nick:Y().optional().nullable(),guild_id:Y(),avatar:Y().optional().nullable(),avatar_decoration_data:X({asset:Y(),sku_id:Y().optional().nullable()}).optional().nullable(),color_string:Y().optional().nullable()}),tP=X({id:Y(),name:Y().optional().nullable(),roles:CM(Y()).optional().nullable(),user:QN.optional().nullable(),require_colons:mM().optional().nullable(),managed:mM().optional().nullable(),animated:mM().optional().nullable(),available:mM().optional().nullable()}),nP=X({mute:mM(),deaf:mM(),self_mute:mM(),self_deaf:mM(),suppress:mM()}),rP=X({mute:mM(),nick:Y(),user:QN,voice_state:nP,volume:dM()}),iP={UNHANDLED:-1,IDLE:`idle`,DND:`dnd`,ONLINE:`online`,OFFLINE:`offline`},aP=bN(iP),oP=X({name:Y(),type:dM(),url:Y().optional().nullable(),created_at:dM().optional().nullable(),timestamps:X({start:dM(),end:dM()}).partial().optional().nullable(),application_id:Y().optional().nullable(),details:Y().optional().nullable(),details_url:Y().url().optional().nullable(),state:Y().optional().nullable(),state_url:Y().url().optional().nullable(),emoji:tP.optional().nullable(),party:X({id:Y().optional().nullable(),size:CM(dM()).optional().nullable()}).optional().nullable(),assets:X({large_image:Y().nullable(),large_text:Y().nullable(),large_url:Y().url().optional().nullable(),small_image:Y().nullable(),small_text:Y().nullable(),small_url:Y().url().optional().nullable()}).partial().optional().nullable(),secrets:X({join:Y(),match:Y()}).partial().optional().nullable(),instance:mM().optional().nullable(),flags:dM().optional().nullable()}),sP={UNHANDLED:-1,ROLE:0,MEMBER:1},cP=X({id:Y(),type:bN(sP),allow:Y(),deny:Y()}),lP={UNHANDLED:-1,DM:1,GROUP_DM:3,GUILD_TEXT:0,GUILD_VOICE:2,GUILD_CATEGORY:4,GUILD_ANNOUNCEMENT:5,GUILD_STORE:6,ANNOUNCEMENT_THREAD:10,PUBLIC_THREAD:11,PRIVATE_THREAD:12,GUILD_STAGE_VOICE:13,GUILD_DIRECTORY:14,GUILD_FORUM:15},uP=X({id:Y(),type:bN(lP),guild_id:Y().optional().nullable(),position:dM().optional().nullable(),permission_overwrites:CM(cP).optional().nullable(),name:Y().optional().nullable(),topic:Y().optional().nullable(),nsfw:mM().optional().nullable(),last_message_id:Y().optional().nullable(),bitrate:dM().optional().nullable(),user_limit:dM().optional().nullable(),rate_limit_per_user:dM().optional().nullable(),recipients:CM(QN).optional().nullable(),icon:Y().optional().nullable(),owner_id:Y().optional().nullable(),application_id:Y().optional().nullable(),parent_id:Y().optional().nullable(),last_pin_timestamp:Y().optional().nullable()}),dP=X({user:QN,guild_id:Y(),status:aP,activities:CM(oP),client_status:X({desktop:aP,mobile:aP,web:aP}).partial()}),fP=X({id:Y(),name:Y(),color:dM(),hoist:mM(),position:dM(),permissions:Y(),managed:mM(),mentionable:mM()}),pP=X({id:Y(),name:Y(),owner_id:Y(),icon:Y().nullable(),icon_hash:Y().optional().nullable(),splash:Y().nullable(),discovery_splash:Y().nullable(),owner:mM().optional().nullable(),permissions:Y().optional().nullable(),region:Y(),afk_channel_id:Y().nullable(),afk_timeout:dM(),widget_enabled:mM().optional().nullable(),widget_channel_id:Y().optional().nullable(),verification_level:dM(),default_message_notifications:dM(),explicit_content_filter:dM(),roles:CM(fP),emojis:CM(tP),features:CM(Y()),mfa_level:dM(),application_id:Y().nullable(),system_channel_id:Y().nullable(),system_channel_flags:dM(),rules_channel_id:Y().nullable(),joined_at:Y().optional().nullable(),large:mM().optional().nullable(),unavailable:mM().optional().nullable(),member_count:dM().optional().nullable(),voice_states:CM(nP).optional().nullable(),members:CM($N).optional().nullable(),channels:CM(uP).optional().nullable(),presences:CM(dP).optional().nullable(),max_presences:dM().optional().nullable(),max_members:dM().optional().nullable(),vanity_url_code:Y().nullable(),description:Y().nullable(),banner:Y().nullable(),premium_tier:dM(),premium_subscription_count:dM().optional().nullable(),preferred_locale:Y(),public_updates_channel_id:Y().nullable(),max_video_channel_users:dM().optional().nullable(),approximate_member_count:dM().optional().nullable(),approximate_presence_count:dM().optional().nullable()}),mP=X({id:Y(),guild_id:Y(),type:dM(),name:Y()}),hP=X({id:Y(),filename:Y(),size:dM(),url:Y(),proxy_url:Y(),height:dM().optional().nullable(),width:dM().optional().nullable()}),gP=X({text:Y(),icon_url:Y().optional().nullable(),proxy_icon_url:Y().optional().nullable()}),_P=X({url:Y().optional().nullable(),proxy_url:Y().optional().nullable(),height:dM().optional().nullable(),width:dM().optional().nullable()}),vP=_P.omit({proxy_url:!0}),yP=X({name:Y().optional().nullable(),url:Y().optional().nullable()}),bP=X({name:Y().optional().nullable(),url:Y().optional().nullable(),icon_url:Y().optional().nullable(),proxy_icon_url:Y().optional().nullable()}),xP=X({name:Y(),value:Y(),inline:mM()}),SP=X({title:Y().optional().nullable(),type:Y().optional().nullable(),description:Y().optional().nullable(),url:Y().optional().nullable(),timestamp:Y().optional().nullable(),color:dM().optional().nullable(),footer:gP.optional().nullable(),image:_P.optional().nullable(),thumbnail:_P.optional().nullable(),video:vP.optional().nullable(),provider:yP.optional().nullable(),author:bP.optional().nullable(),fields:CM(xP).optional().nullable()}),CP=X({count:dM(),me:mM(),emoji:tP}),wP=X({type:dM(),party_id:Y().optional().nullable()}),TP=X({id:Y(),cover_image:Y().optional().nullable(),description:Y(),icon:Y().optional().nullable(),name:Y()}),EP=X({message_id:Y().optional().nullable(),channel_id:Y().optional().nullable(),guild_id:Y().optional().nullable()}),DP=X({id:Y(),channel_id:Y(),guild_id:Y().optional().nullable(),author:QN.optional().nullable(),member:$N.optional().nullable(),content:Y(),timestamp:Y(),edited_timestamp:Y().optional().nullable(),tts:mM(),mention_everyone:mM(),mentions:CM(QN),mention_roles:CM(Y()),mention_channels:CM(mP),attachments:CM(hP),embeds:CM(SP),reactions:CM(CP).optional().nullable(),nonce:TM([Y(),dM()]).optional().nullable(),pinned:mM(),webhook_id:Y().optional().nullable(),type:dM(),activity:wP.optional().nullable(),application:TP.optional().nullable(),message_reference:EP.optional().nullable(),flags:dM().optional().nullable(),stickers:CM(bM()).optional().nullable(),referenced_message:bM().optional().nullable()}),OP=X({id:Y(),name:Y()}),kP={UNHANDLED:-1,KEYBOARD_KEY:0,MOUSE_BUTTON:1,KEYBOARD_MODIFIER_KEY:2,GAMEPAD_BUTTON:3},AP=X({type:bN(kP),code:dM(),name:Y()}),jP={UNHANDLED:-1,PUSH_TO_TALK:`PUSH_TO_TALK`,VOICE_ACTIVITY:`VOICE_ACTIVITY`},MP=X({type:bN(jP),auto_threshold:mM(),threshold:dM(),shortcut:CM(AP),delay:dM()}),NP=X({device_id:Y(),volume:dM(),available_devices:CM(OP)}),PP={UNHANDLED:-1,AUDIO_INPUT:`AUDIO_INPUT`,AUDIO_OUTPUT:`AUDIO_OUTPUT`,VIDEO_INPUT:`VIDEO_INPUT`},FP=X({type:bN(PP),id:Y(),vendor:X({name:Y(),url:Y()}),model:X({name:Y(),url:Y()}),related:CM(Y()),echo_cancellation:mM().optional().nullable(),noise_suppression:mM().optional().nullable(),automatic_gain_control:mM().optional().nullable(),hardware_mute:mM().optional().nullable()}),IP={UNHANDLED:-1,APPLICATION:1,DLC:2,CONSUMABLE:3,BUNDLE:4,SUBSCRIPTION:5},LP=X({id:Y(),name:Y(),type:bN(IP),price:X({amount:dM(),currency:Y()}),application_id:Y(),flags:dM(),release_date:Y().nullable()}),RP={UNHANDLED:-1,PURCHASE:1,PREMIUM_SUBSCRIPTION:2,DEVELOPER_GIFT:3,TEST_MODE_PURCHASE:4,FREE_PURCHASE:5,USER_GIFT:6,PREMIUM_PURCHASE:7},zP=X({id:Y(),sku_id:Y(),application_id:Y(),user_id:Y(),gift_code_flags:dM(),type:bN(RP),gifter_user_id:Y().optional().nullable(),branches:CM(Y()).optional().nullable(),starts_at:Y().optional().nullable(),ends_at:Y().optional().nullable(),parent_id:Y().optional().nullable(),consumed:mM().optional().nullable(),deleted:mM().optional().nullable(),gift_code_batch_id:Y().optional().nullable()}),BP={UNHANDLED:-1,UNLOCKED:1,PORTRAIT:2,LANDSCAPE:3},VP=bN(BP),HP={UNHANDLED:-1,NOMINAL:0,FAIR:1,SERIOUS:2,CRITICAL:3},UP=bN(HP),WP={UNHANDLED:-1,PORTRAIT:0,LANDSCAPE:1},GP=bN(WP),KP={UNHANDLED:-1,FOCUSED:0,PIP:1,GRID:2},qP=bN(KP),JP=`ERROR`,YP;(function(e){e.READY=`READY`,e.VOICE_STATE_UPDATE=`VOICE_STATE_UPDATE`,e.SPEAKING_START=`SPEAKING_START`,e.SPEAKING_STOP=`SPEAKING_STOP`,e.ACTIVITY_LAYOUT_MODE_UPDATE=`ACTIVITY_LAYOUT_MODE_UPDATE`,e.ORIENTATION_UPDATE=`ORIENTATION_UPDATE`,e.CURRENT_USER_UPDATE=`CURRENT_USER_UPDATE`,e.CURRENT_GUILD_MEMBER_UPDATE=`CURRENT_GUILD_MEMBER_UPDATE`,e.ENTITLEMENT_CREATE=`ENTITLEMENT_CREATE`,e.THERMAL_STATE_UPDATE=`THERMAL_STATE_UPDATE`,e.ACTIVITY_INSTANCE_PARTICIPANTS_UPDATE=`ACTIVITY_INSTANCE_PARTICIPANTS_UPDATE`,e.RELATIONSHIP_UPDATE=`RELATIONSHIP_UPDATE`,e.ACTIVITY_JOIN=`ACTIVITY_JOIN`,e.QUEST_ENROLLMENT_STATUS_UPDATE=`QUEST_ENROLLMENT_STATUS_UPDATE`})(YP||={});var XP=JN.extend({evt:IM(YP),nonce:Y().nullable(),cmd:PM(KN),data:X({}).passthrough()}),ZP=JN.extend({evt:PM(JP),data:X({code:dM(),message:Y().optional()}).passthrough(),cmd:IM(qN),nonce:Y().nullable()}),QP=TM([XP,XP.extend({evt:Y()}),ZP]);function $P(e){let t=e.evt;if(!(t in YP))throw Error(`Unrecognized event type ${e.evt}`);return eF[t].payload.parse(e)}var eF={[YP.READY]:{payload:XP.extend({evt:PM(YP.READY),data:X({v:dM(),config:X({cdn_host:Y().optional(),api_endpoint:Y(),environment:Y()}),user:X({id:Y(),username:Y(),discriminator:Y(),avatar:Y().optional()}).optional()})})},[YP.VOICE_STATE_UPDATE]:{payload:XP.extend({evt:PM(YP.VOICE_STATE_UPDATE),data:rP}),subscribeArgs:X({channel_id:Y()})},[YP.SPEAKING_START]:{payload:XP.extend({evt:PM(YP.SPEAKING_START),data:X({lobby_id:Y().optional(),channel_id:Y().optional(),user_id:Y()})}),subscribeArgs:X({lobby_id:Y().nullable().optional(),channel_id:Y().nullable().optional()})},[YP.SPEAKING_STOP]:{payload:XP.extend({evt:PM(YP.SPEAKING_STOP),data:X({lobby_id:Y().optional(),channel_id:Y().optional(),user_id:Y()})}),subscribeArgs:X({lobby_id:Y().nullable().optional(),channel_id:Y().nullable().optional()})},[YP.ACTIVITY_LAYOUT_MODE_UPDATE]:{payload:XP.extend({evt:PM(YP.ACTIVITY_LAYOUT_MODE_UPDATE),data:X({layout_mode:bN(KP)})})},[YP.ORIENTATION_UPDATE]:{payload:XP.extend({evt:PM(YP.ORIENTATION_UPDATE),data:X({screen_orientation:bN(WP),orientation:IM(vN)})})},[YP.CURRENT_USER_UPDATE]:{payload:XP.extend({evt:PM(YP.CURRENT_USER_UPDATE),data:QN})},[YP.CURRENT_GUILD_MEMBER_UPDATE]:{payload:XP.extend({evt:PM(YP.CURRENT_GUILD_MEMBER_UPDATE),data:eP}),subscribeArgs:X({guild_id:Y()})},[YP.ENTITLEMENT_CREATE]:{payload:XP.extend({evt:PM(YP.ENTITLEMENT_CREATE),data:X({entitlement:zP})})},[YP.THERMAL_STATE_UPDATE]:{payload:XP.extend({evt:PM(YP.THERMAL_STATE_UPDATE),data:X({thermal_state:UP})})},[YP.ACTIVITY_INSTANCE_PARTICIPANTS_UPDATE]:{payload:XP.extend({evt:PM(YP.ACTIVITY_INSTANCE_PARTICIPANTS_UPDATE),data:X({participants:EN.shape.participants})})},[YP.RELATIONSHIP_UPDATE]:{payload:XP.extend({evt:PM(YP.RELATIONSHIP_UPDATE),data:ZN})},[YP.ACTIVITY_JOIN]:{payload:XP.extend({evt:PM(YP.ACTIVITY_JOIN),data:X({applicationId:Y(),secret:Y()})})},[YP.QUEST_ENROLLMENT_STATUS_UPDATE]:{payload:XP.extend({evt:PM(YP.QUEST_ENROLLMENT_STATUS_UPDATE),data:X({quest_id:Y(),is_enrolled:mM(),enrolled_at:Y().date()})})}};function tF(e,t){throw t}var nF=X({}).nullable(),rF=X({code:Y()}),iF=X({guilds:CM(X({id:Y(),name:Y()}))}),aF=X({id:Y(),name:Y(),icon_url:Y().optional(),members:CM($N)}),oF=X({id:Y(),type:bN(lP),guild_id:Y().optional().nullable(),name:Y().optional().nullable(),topic:Y().optional().nullable(),bitrate:dM().optional().nullable(),user_limit:dM().optional().nullable(),position:dM().optional().nullable(),voice_states:CM(rP),messages:CM(DP)}),sF=X({channels:CM(uP)});oF.nullable();var cF=oF.nullable(),lF=oF.nullable();X({input:NP,output:NP,mode:MP,automatic_gain_control:mM(),echo_cancellation:mM(),noise_suppression:mM(),qos:mM(),silence_warning:mM(),deaf:mM(),mute:mM()});var uF=X({evt:Y()}),dF=X({shortcut:AP}),fF=oP,pF=X({skus:CM(LP)}),mF=X({entitlements:CM(zP)}),hF=CM(zP).nullable(),gF=X({use_interactive_pip:mM()}),_F=X({locale:Y()}),vF=X({enabled:mM()}),yF=X({permissions:pM().or(Y())}),bF=xN(X({opened:mM().or(vM())}).default({opened:null})),xF=X({iosKeyboardResizesView:zM(mM())}),SF=JN.extend({cmd:IM(qN),evt:vM()});function CF({cmd:e,data:t}){switch(e){case qN.AUTHORIZE:return rF.parse(t);case qN.CAPTURE_SHORTCUT:return dF.parse(t);case qN.ENCOURAGE_HW_ACCELERATION:return vF.parse(t);case qN.GET_CHANNEL:return oF.parse(t);case qN.GET_CHANNELS:return sF.parse(t);case qN.GET_CHANNEL_PERMISSIONS:return yF.parse(t);case qN.GET_GUILD:return aF.parse(t);case qN.GET_GUILDS:return iF.parse(t);case qN.GET_PLATFORM_BEHAVIORS:return xF.parse(t);case qN.GET_CHANNEL:return oF.parse(t);case qN.SELECT_TEXT_CHANNEL:return lF.parse(t);case qN.SELECT_VOICE_CHANNEL:return cF.parse(t);case qN.SET_ACTIVITY:return fF.parse(t);case qN.GET_SKUS_EMBEDDED:return pF.parse(t);case qN.GET_ENTITLEMENTS_EMBEDDED:return mF.parse(t);case qN.SET_CONFIG:return gF.parse(t);case qN.START_PURCHASE:return hF.parse(t);case qN.SUBSCRIBE:case qN.UNSUBSCRIBE:return uF.parse(t);case qN.USER_SETTINGS_GET_LOCALE:return _F.parse(t);case qN.OPEN_EXTERNAL_LINK:return bF.parse(t);case qN.SET_ORIENTATION_LOCK_STATE:case qN.SET_CERTIFIED_DEVICES:case qN.SEND_ANALYTICS_EVENT:case qN.OPEN_INVITE_DIALOG:case qN.CAPTURE_LOG:case qN.GET_SKUS:case qN.GET_ENTITLEMENTS:return nF.parse(t);case qN.AUTHENTICATE:case qN.GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS:case qN.GET_QUEST:case qN.GET_QUEST_ENROLLMENT_STATUS:case qN.GET_RELATIONSHIPS:case qN.GET_USER:case qN.INITIATE_IMAGE_UPLOAD:case qN.INVITE_USER_EMBEDDED:case qN.OPEN_SHARE_MOMENT_DIALOG:case qN.QUEST_START_TIMER:case qN.REQUEST_PROXY_TICKET_REFRESH:case qN.SHARE_INTERACTION:case qN.SHARE_LINK:let{response:n}=WN[e];return n.parse(t);default:tF(e,Error(`Unrecognized command ${e}`))}}function wF(e){return Object.assign(Object.assign({},e),{data:CF(e)})}X({frame_id:Y(),platform:IM(yN).optional().nullable()}),X({v:PM(1),encoding:PM(`json`).optional(),client_id:Y(),frame_id:Y()});var TF=X({code:dM(),message:Y().optional()}),EF=X({evt:Y().nullable(),nonce:Y().nullable(),data:bM().nullable(),cmd:Y()}).passthrough();function DF(e){let t=EF.parse(e);return t.evt==null?wF(SF.passthrough().parse(t)):t.evt===`ERROR`?ZP.parse(t):$P(QP.parse(t))}function OF(e,t,n,r=()=>void 0){let i=JN.extend({cmd:PM(t),data:n});return async n=>{let a=await e({cmd:t,args:n,transfer:r(n)});return i.parse(a).data}}function kF(e,t=()=>void 0){let n=WN[e].response,r=JN.extend({cmd:PM(e),data:n});return n=>async i=>{let a=await n({cmd:e,args:i,transfer:t(i)});return r.parse(a).data}}var AF=e=>OF(e,qN.AUTHORIZE,rF),jF=e=>OF(e,qN.CAPTURE_LOG,nF),MF=e=>OF(e,qN.ENCOURAGE_HW_ACCELERATION,vF),NF=e=>OF(e,qN.GET_CHANNEL,oF),PF=e=>OF(e,qN.GET_ENTITLEMENTS_EMBEDDED,mF),FF=e=>OF(e,qN.GET_SKUS_EMBEDDED,pF),IF=e=>OF(e,qN.GET_CHANNEL_PERMISSIONS,yF),LF=e=>OF(e,qN.GET_PLATFORM_BEHAVIORS,xF),RF=e=>OF(e,qN.OPEN_EXTERNAL_LINK,bF),zF=e=>OF(e,qN.OPEN_INVITE_DIALOG,nF);oP.pick({state:!0,state_url:!0,details:!0,details_url:!0,timestamps:!0,assets:!0,party:!0,secrets:!0,instance:!0,type:!0}).extend({type:oP.shape.type.optional(),instance:oP.shape.instance.optional()}).nullable();var BF=e=>OF(e,qN.SET_ACTIVITY,fF),VF=e=>OF(e,qN.SET_CONFIG,gF);function HF({sendCommand:e,cmd:t,response:n,fallbackTransform:r,transferTransform:i=()=>void 0}){let a=JN.extend({cmd:PM(t),data:n});return async n=>{try{let r=await e({cmd:t,args:n,transfer:i(n)});return a.parse(r).data}catch(o){if(o.code===_N.INVALID_PAYLOAD){let o=r(n),s=await e({cmd:t,args:o,transfer:i(o)});return a.parse(s).data}throw o}}}var UF=e=>({lock_state:e.lock_state,picture_in_picture_lock_state:e.picture_in_picture_lock_state}),WF=e=>HF({sendCommand:e,cmd:qN.SET_ORIENTATION_LOCK_STATE,response:nF,fallbackTransform:UF}),GF=e=>OF(e,qN.START_PURCHASE,hF),KF=e=>OF(e,qN.USER_SETTINGS_GET_LOCALE,_F),qF=kF(VN.AUTHENTICATE),JF=kF(VN.GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS),YF=kF(VN.GET_QUEST),XF=kF(VN.GET_QUEST_ENROLLMENT_STATUS),ZF=kF(VN.GET_RELATIONSHIPS),QF=kF(VN.GET_USER),$F=kF(VN.INITIATE_IMAGE_UPLOAD),eI=kF(VN.INVITE_USER_EMBEDDED),tI=kF(VN.OPEN_SHARE_MOMENT_DIALOG),nI=kF(VN.QUEST_START_TIMER),rI=kF(VN.REQUEST_PROXY_TICKET_REFRESH),iI=kF(VN.SHARE_INTERACTION),aI=kF(VN.SHARE_LINK);function oI(e){return{authorize:AF(e),captureLog:jF(e),encourageHardwareAcceleration:MF(e),getChannel:NF(e),getChannelPermissions:IF(e),getEntitlements:PF(e),getPlatformBehaviors:LF(e),getSkus:FF(e),openExternalLink:RF(e),openInviteDialog:zF(e),setActivity:BF(e),setConfig:VF(e),setOrientationLockState:WF(e),startPurchase:GF(e),userSettingsGetLocale:KF(e),getInstanceConnectedParticipants:JF(e),authenticate:qF(e),getActivityInstanceConnectedParticipants:JF(e),getQuest:YF(e),getQuestEnrollmentStatus:XF(e),getRelationships:ZF(e),getUser:QF(e),initiateImageUpload:$F(e),inviteUserEmbedded:eI(e),openShareMomentDialog:tI(e),questStartTimer:nI(e),requestProxyTicketRefresh:rI(e),shareInteraction:iI(e),shareLink:aI(e)}}var sI=class extends Error{constructor(e,t=``){super(t),this.code=e,this.message=t,this.name=`Discord SDK Error`}};function cI(){return{disableConsoleLogOverride:!1}}var lI=[`log`,`warn`,`debug`,`info`,`error`];function uI(e,t,n){let r=e[t],i=e;r&&(e[t]=function(){let e=[].slice.call(arguments);n(t,``+e.join(` `)),r.apply(i,e)})}var dI=`2.5.0`,fI={randomUUID:typeof crypto<`u`&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},pI,mI=new Uint8Array(16);function hI(){if(!pI){if(typeof crypto>`u`||!crypto.getRandomValues)throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);pI=crypto.getRandomValues.bind(crypto)}return pI(mI)}var gI=[];for(let e=0;e<256;++e)gI.push((e+256).toString(16).slice(1));function _I(e,t=0){return(gI[e[t+0]]+gI[e[t+1]]+gI[e[t+2]]+gI[e[t+3]]+`-`+gI[e[t+4]]+gI[e[t+5]]+`-`+gI[e[t+6]]+gI[e[t+7]]+`-`+gI[e[t+8]]+gI[e[t+9]]+`-`+gI[e[t+10]]+gI[e[t+11]]+gI[e[t+12]]+gI[e[t+13]]+gI[e[t+14]]+gI[e[t+15]]).toLowerCase()}function vI(e,t,n){if(fI.randomUUID&&!t&&!e)return fI.randomUUID();e||={};let r=e.random??e.rng?.()??hI();if(r.length<16)throw Error(`Random bytes length must be >= 16`);return r[6]=r[6]&15|64,r[8]=r[8]&63|128,_I(r)}var yI;(function(e){e[e.HANDSHAKE=0]=`HANDSHAKE`,e[e.FRAME=1]=`FRAME`,e[e.CLOSE=2]=`CLOSE`,e[e.HELLO=3]=`HELLO`})(yI||={});var bI=new Set(xI());function xI(){return typeof window>`u`?[]:[window.location.origin,`https://discord.com`,`https://discordapp.com`,`https://ptb.discord.com`,`https://ptb.discordapp.com`,`https://canary.discord.com`,`https://canary.discordapp.com`,`https://staging.discord.co`,`http://localhost:3333`,`https://pax.discord.com`,`null`]}function SI(){return[window.parent.opener??window.parent,document.referrer?document.referrer:`*`]}var CI=class{getTransfer(e){switch(e.cmd){case qN.SUBSCRIBE:case qN.UNSUBSCRIBE:return;default:return e.transfer??void 0}}constructor(e,t){if(this.sdkVersion=dI,this.mobileAppVersion=null,this.source=null,this.sourceOrigin=``,this.eventBus=new EA,this.pendingCommands=new Map,this.sendCommand=e=>{var t;if(this.source==null)throw Error(`Attempting to send message before initialization`);let n=vI();return(t=this.source)==null||t.postMessage([yI.FRAME,Object.assign(Object.assign({},e),{nonce:n})],this.sourceOrigin,this.getTransfer(e)),new Promise((e,t)=>{this.pendingCommands.set(n,{resolve:e,reject:t})})},this.commands=oI(this.sendCommand),this.handleMessage=e=>{if(!bI.has(e.origin))return;let t=e.data;if(!Array.isArray(t))return;let[n,r]=t;switch(n){case yI.HELLO:return;case yI.CLOSE:return this.handleClose(r);case yI.HANDSHAKE:return this.handleHandshake();case yI.FRAME:return this.handleFrame(r);default:throw Error(`Invalid message format`)}},this.isReady=!1,this.clientId=e,this.configuration=t??cI(),typeof window<`u`&&window.addEventListener(`message`,this.handleMessage),typeof window>`u`){this.frameId=``,this.instanceId=``,this.customId=null,this.referrerId=null,this.platform=yN.DESKTOP,this.guildId=null,this.channelId=null,this.locationId=null;return}let n=new URLSearchParams(this._getSearch()),r=n.get(`frame_id`);if(!r)throw Error(`frame_id query param is not defined`);this.frameId=r;let i=n.get(`instance_id`);if(!i)throw Error(`instance_id query param is not defined`);this.instanceId=i;let a=n.get(`platform`);if(!a)throw Error(`platform query param is not defined`);if(a!==yN.DESKTOP&&a!==yN.MOBILE)throw Error(`Invalid query param "platform" of "${a}". Valid values are "${yN.DESKTOP}" or "${yN.MOBILE}"`);this.platform=a,this.customId=n.get(`custom_id`),this.referrerId=n.get(`referrer_id`),this.guildId=n.get(`guild_id`),this.channelId=n.get(`channel_id`),this.locationId=n.get(`location_id`),this.mobileAppVersion=n.get(`mobile_app_version`),[this.source,this.sourceOrigin]=SI(),this.addOnReadyListener(),this.handshake()}close(e,t){var n;window.removeEventListener(`message`,this.handleMessage);let r=vI();(n=this.source)==null||n.postMessage([yI.CLOSE,{code:e,message:t,nonce:r}],this.sourceOrigin)}async subscribe(e,t,...n){let[r]=n,i=this.eventBus.listenerCount(e),a=this.eventBus.on(e,t);return Object.values(YP).includes(e)&&e!==YP.READY&&i===0&&await this.sendCommand({cmd:qN.SUBSCRIBE,args:r,evt:e}),a}async unsubscribe(e,t,...n){let[r]=n;return e!==YP.READY&&this.eventBus.listenerCount(e)===1&&await this.sendCommand({cmd:qN.UNSUBSCRIBE,evt:e,args:r}),this.eventBus.off(e,t)}async ready(){this.isReady||await new Promise(e=>{this.eventBus.once(YP.READY,e)})}parseMajorMobileVersion(){if(this.mobileAppVersion&&this.mobileAppVersion.includes(`.`))try{return parseInt(this.mobileAppVersion.split(`.`)[0])}catch{return-1}return-1}handshake(){var e;let t={v:1,encoding:`json`,client_id:this.clientId,frame_id:this.frameId},n=this.parseMajorMobileVersion();(this.platform===yN.DESKTOP||n>=250)&&(t.sdk_version=this.sdkVersion),(e=this.source)==null||e.postMessage([yI.HANDSHAKE,t],this.sourceOrigin)}addOnReadyListener(){this.eventBus.once(YP.READY,()=>{this.overrideConsoleLogging(),this.isReady=!0})}overrideConsoleLogging(){if(this.configuration.disableConsoleLogOverride)return;let e=(e,t)=>{this.commands.captureLog({level:e,message:t})};lI.forEach(t=>{uI(console,t,e)})}handleClose(e){TF.parse(e)}handleHandshake(){}handleFrame(e){var t,n;let r;try{r=DF(e)}catch(t){console.error(`Failed to parse`,e),console.error(t);return}if(r.cmd===`DISPATCH`)this.eventBus.emit(r.evt,r.data);else{if(r.evt===`ERROR`){if(r.nonce!=null){(t=this.pendingCommands.get(r.nonce))==null||t.reject(r.data),this.pendingCommands.delete(r.nonce);return}this.eventBus.emit(`error`,new sI(r.data.code,r.data.message))}if(r.nonce==null){console.error(`Missing nonce`,e);return}(n=this.pendingCommands.get(r.nonce))==null||n.resolve(r),this.pendingCommands.delete(r.nonce)}}_getSearch(){return typeof window>`u`?``:window.location.search}},wI=1e9,TI={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:`2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286`},EI=!0,DI=`[DecimalError] `,OI=DI+`Invalid argument: `,kI=DI+`Exponent out of range: `,AI=Math.floor,jI=Math.pow,MI=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,NI,PI=1e7,FI=7,II=9007199254740991,LI=AI(II/FI),RI={};RI.absoluteValue=RI.abs=function(){var e=new this.constructor(this);return e.s&&=1,e},RI.comparedTo=RI.cmp=function(e){var t,n,r,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(r=a.d.length,i=e.d.length,t=0,n=re.d[t]^a.s<0?1:-1;return r===i?0:r>i^a.s<0?1:-1},RI.decimalPlaces=RI.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*FI;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n},RI.dividedBy=RI.div=function(e){return HI(this,new this.constructor(e))},RI.dividedToIntegerBy=RI.idiv=function(e){var t=this,n=t.constructor;return YI(HI(t,new n(e),0,1),n.precision)},RI.equals=RI.eq=function(e){return!this.cmp(e)},RI.exponent=function(){return WI(this)},RI.greaterThan=RI.gt=function(e){return this.cmp(e)>0},RI.greaterThanOrEqualTo=RI.gte=function(e){return this.cmp(e)>=0},RI.isInteger=RI.isint=function(){return this.e>this.d.length-2},RI.isNegative=RI.isneg=function(){return this.s<0},RI.isPositive=RI.ispos=function(){return this.s>0},RI.isZero=function(){return this.s===0},RI.lessThan=RI.lt=function(e){return this.cmp(e)<0},RI.lessThanOrEqualTo=RI.lte=function(e){return this.cmp(e)<1},RI.logarithm=RI.log=function(e){var t,n=this,r=n.constructor,i=r.precision,a=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(NI))throw Error(DI+`NaN`);if(n.s<1)throw Error(DI+(n.s?`NaN`:`-Infinity`));return n.eq(NI)?new r(0):(EI=!1,t=HI(qI(n,a),qI(e,a),a),EI=!0,YI(t,i))},RI.minus=RI.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?XI(t,e):zI(t,(e.s=-e.s,e))},RI.modulo=RI.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(DI+`NaN`);return n.s?(EI=!1,t=HI(n,e,0,1).times(e),EI=!0,n.minus(t)):YI(new r(n),i)},RI.naturalExponential=RI.exp=function(){return UI(this)},RI.naturalLogarithm=RI.ln=function(){return qI(this)},RI.negated=RI.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},RI.plus=RI.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?zI(t,e):XI(t,(e.s=-e.s,e))},RI.precision=RI.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(OI+e);if(t=WI(i)+1,r=i.d.length-1,n=r*FI+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},RI.squareRoot=RI.sqrt=function(){var e,t,n,r,i,a,o,s=this,c=s.constructor;if(s.s<1){if(!s.s)return new c(0);throw Error(DI+`NaN`)}for(e=WI(s),EI=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=VI(s.d),(t.length+e)%2==0&&(t+=`0`),i=Math.sqrt(t),e=AI((e+1)/2)-(e<0||e%2),i==1/0?t=`5e`+e:(t=i.toExponential(),t=t.slice(0,t.indexOf(`e`)+1)+e),r=new c(t)):r=new c(i.toString()),n=c.precision,i=o=n+3;;)if(a=r,r=a.plus(HI(s,a,o+2)).times(.5),VI(a.d).slice(0,o)===(t=VI(r.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t==`4999`){if(YI(a,n+1,0),a.times(a).eq(s)){r=a;break}}else if(t!=`9999`)break;o+=4}return EI=!0,YI(r,n)},RI.times=RI.mul=function(e){var t,n,r,i,a,o,s,c,l,u=this,d=u.constructor,f=u.d,p=(e=new d(e)).d;if(!u.s||!e.s)return new d(0);for(e.s*=u.s,n=u.e+e.e,c=f.length,l=p.length,c=0;){for(t=0,i=c+r;i>r;)s=a[i]+p[r]*f[i-r-1]+t,a[i--]=s%PI|0,t=s/PI|0;a[i]=(a[i]+t)%PI|0}for(;!a[--o];)a.pop();return t?++n:a.shift(),e.d=a,e.e=n,EI?YI(e,d.precision):e},RI.toDecimalPlaces=RI.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(BI(e,0,wI),t===void 0?t=r.rounding:BI(t,0,8),YI(n,e+WI(n)+1,t))},RI.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=ZI(r,!0):(BI(e,0,wI),t===void 0?t=i.rounding:BI(t,0,8),r=YI(new i(r),e+1,t),n=ZI(r,!0,e+1)),n},RI.toFixed=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?ZI(i):(BI(e,0,wI),t===void 0?t=a.rounding:BI(t,0,8),r=YI(new a(i),e+WI(i)+1,t),n=ZI(r.abs(),!1,e+WI(r)+1),i.isneg()&&!i.isZero()?`-`+n:n)},RI.toInteger=RI.toint=function(){var e=this,t=e.constructor;return YI(new t(e),WI(e)+1,t.rounding)},RI.toNumber=function(){return+this},RI.toPower=RI.pow=function(e){var t,n,r,i,a,o,s=this,c=s.constructor,l=12,u=+(e=new c(e));if(!e.s)return new c(NI);if(s=new c(s),!s.s){if(e.s<1)throw Error(DI+`Infinity`);return s}if(s.eq(NI))return s;if(r=c.precision,e.eq(NI))return YI(s,r);if(t=e.e,n=e.d.length-1,o=t>=n,a=s.s,!o){if(a<0)throw Error(DI+`NaN`)}else if((n=u<0?-u:u)<=II){for(i=new c(NI),t=Math.ceil(r/FI+4),EI=!1;n%2&&(i=i.times(s),QI(i.d,t)),n=AI(n/2),n!==0;)s=s.times(s),QI(s.d,t);return EI=!0,e.s<0?new c(NI).div(i):YI(i,r)}return a=a<0&&e.d[Math.max(t,n)]&1?-1:1,s.s=1,EI=!1,i=e.times(qI(s,r+l)),EI=!0,i=UI(i),i.s=a,i},RI.toPrecision=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?(n=WI(i),r=ZI(i,n<=a.toExpNeg||n>=a.toExpPos)):(BI(e,1,wI),t===void 0?t=a.rounding:BI(t,0,8),i=YI(new a(i),e,t),n=WI(i),r=ZI(i,e<=n||n<=a.toExpNeg,e)),r},RI.toSignificantDigits=RI.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(BI(e,1,wI),t===void 0?t=r.rounding:BI(t,0,8)),YI(new r(n),e,t)},RI.toString=RI.valueOf=RI.val=RI.toJSON=RI[Symbol.for(`nodejs.util.inspect.custom`)]=function(){var e=this,t=WI(e),n=e.constructor;return ZI(e,t<=n.toExpNeg||t>=n.toExpPos)};function zI(e,t){var n,r,i,a,o,s,c,l,u=e.constructor,d=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),EI?YI(t,d):t;if(c=e.d,l=t.d,o=e.e,i=t.e,c=c.slice(),a=o-i,a){for(a<0?(r=c,a=-a,s=l.length):(r=l,i=o,s=c.length),o=Math.ceil(d/FI),s=o>s?o+1:s+1,a>s&&(a=s,r.length=1),r.reverse();a--;)r.push(0);r.reverse()}for(s=c.length,a=l.length,s-a<0&&(a=s,r=l,l=c,c=r),n=0;a;)n=(c[--a]=c[a]+l[a]+n)/PI|0,c[a]%=PI;for(n&&(c.unshift(n),++i),s=c.length;c[--s]==0;)c.pop();return t.d=c,t.e=i,EI?YI(t,d):t}function BI(e,t,n){if(e!==~~e||en)throw Error(OI+e)}function VI(e){var t,n,r,i=e.length-1,a=``,o=e[0];if(i>0){for(a+=o,t=1;tr?1:-1;else for(i=a=0;it[i]?1:-1;break}return a}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=+(e[n]1;)e.shift()}return function(r,i,a,o){var s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T=r.constructor,E=r.s==i.s?1:-1,D=r.d,O=i.d;if(!r.s)return new T(r);if(!i.s)throw Error(DI+`Division by zero`);for(c=r.e-i.e,C=O.length,x=D.length,p=new T(E),m=p.d=[],l=0;O[l]==(D[l]||0);)++l;if(O[l]>(D[l]||0)&&--c,v=a==null?a=T.precision:o?a+(WI(r)-WI(i))+1:a,v<0)return new T(0);if(v=v/FI+2|0,l=0,C==1)for(u=0,O=O[0],v++;(l1&&(O=e(O,u),D=e(D,u),C=O.length,x=D.length),b=C,h=D.slice(0,C),g=h.length;g=PI/2&&++S;do u=0,s=t(O,h,C,g),s<0?(_=h[0],C!=g&&(_=_*PI+(h[1]||0)),u=_/S|0,u>1?(u>=PI&&(u=PI-1),d=e(O,u),f=d.length,g=h.length,s=t(d,h,f,g),s==1&&(u--,n(d,C16)throw Error(kI+WI(e));if(!e.s)return new u(NI);for(t==null?(EI=!1,s=d):s=t,o=new u(.03125);e.abs().gte(.1);)e=e.times(o),l+=5;for(r=Math.log(jI(2,l))/Math.LN10*2+5|0,s+=r,n=i=a=new u(NI),u.precision=s;;){if(i=YI(i.times(e),s),n=n.times(++c),o=a.plus(HI(i,n,s)),VI(o.d).slice(0,s)===VI(a.d).slice(0,s)){for(;l--;)a=YI(a.times(a),s);return u.precision=d,t==null?(EI=!0,YI(a,d)):a}a=o}}function WI(e){for(var t=e.e*FI,n=e.d[0];n>=10;n/=10)t++;return t}function GI(e,t,n){if(t>e.LN10.sd())throw EI=!0,n&&(e.precision=n),Error(DI+`LN10 precision limit exceeded`);return YI(new e(e.LN10),t)}function KI(e){for(var t=``;e--;)t+=`0`;return t}function qI(e,t){var n,r,i,a,o,s,c,l,u,d=1,f=10,p=e,m=p.d,h=p.constructor,g=h.precision;if(p.s<1)throw Error(DI+(p.s?`NaN`:`-Infinity`));if(p.eq(NI))return new h(0);if(t==null?(EI=!1,l=g):l=t,p.eq(10))return t??(EI=!0),GI(h,l);if(l+=f,h.precision=l,n=VI(m),r=n.charAt(0),a=WI(p),Math.abs(a)<0x5543df729c000){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)p=p.times(e),n=VI(p.d),r=n.charAt(0),d++;a=WI(p),r>1?(p=new h(`0.`+n),a++):p=new h(r+`.`+n.slice(1))}else return c=GI(h,l+2,g).times(a+``),p=qI(new h(r+`.`+n.slice(1)),l-f).plus(c),h.precision=g,t==null?(EI=!0,YI(p,g)):p;for(s=o=p=HI(p.minus(NI),p.plus(NI),l),u=YI(p.times(p),l),i=3;;){if(o=YI(o.times(u),l),c=s.plus(HI(o,new h(i),l)),VI(c.d).slice(0,l)===VI(s.d).slice(0,l))return s=s.times(2),a!==0&&(s=s.plus(GI(h,l+2,g).times(a+``))),s=HI(s,new h(d),l),h.precision=g,t==null?(EI=!0,YI(s,g)):s;s=c,i+=2}}function JI(e,t){var n,r,i;for((n=t.indexOf(`.`))>-1&&(t=t.replace(`.`,``)),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=AI(n/FI),e.d=[],r=(n+1)%FI,n<0&&(r+=FI),rLI||e.e<-LI))throw Error(kI+n)}else e.s=0,e.e=0,e.d=[0];return e}function YI(e,t,n){var r,i,a,o,s,c,l,u,d=e.d;for(o=1,a=d[0];a>=10;a/=10)o++;if(r=t-o,r<0)r+=FI,i=t,l=d[u=0];else{if(u=Math.ceil((r+1)/FI),a=d.length,u>=a)return e;for(l=a=d[u],o=1;a>=10;a/=10)o++;r%=FI,i=r-FI+o}if(n!==void 0&&(a=jI(10,o-i-1),s=l/a%10|0,c=t<0||d[u+1]!==void 0||l%a,c=n<4?(s||c)&&(n==0||n==(e.s<0?3:2)):s>5||s==5&&(n==4||c||n==6&&(r>0?i>0?l/jI(10,o-i):0:d[u-1])%10&1||n==(e.s<0?8:7))),t<1||!d[0])return c?(a=WI(e),d.length=1,t=t-a-1,d[0]=jI(10,(FI-t%FI)%FI),e.e=AI(-t/FI)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(r==0?(d.length=u,a=1,u--):(d.length=u+1,a=jI(10,FI-r),d[u]=i>0?(l/jI(10,o-i)%jI(10,i)|0)*a:0),c)for(;;)if(u==0){(d[0]+=a)==PI&&(d[0]=1,++e.e);break}else{if(d[u]+=a,d[u]!=PI)break;d[u--]=0,a=1}for(r=d.length;d[--r]===0;)d.pop();if(EI&&(e.e>LI||e.e<-LI))throw Error(kI+WI(e));return e}function XI(e,t){var n,r,i,a,o,s,c,l,u,d,f=e.constructor,p=f.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new f(e),EI?YI(t,p):t;if(c=e.d,d=t.d,r=t.e,l=e.e,c=c.slice(),o=l-r,o){for(u=o<0,u?(n=c,o=-o,s=d.length):(n=d,r=l,s=c.length),i=Math.max(Math.ceil(p/FI),s)+2,o>i&&(o=i,n.length=1),n.reverse(),i=o;i--;)n.push(0);n.reverse()}else{for(i=c.length,s=d.length,u=i0;--i)c[s++]=0;for(i=d.length;i>o;){if(c[--i]0?a=a.charAt(0)+`.`+a.slice(1)+KI(r):o>1&&(a=a.charAt(0)+`.`+a.slice(1)),a=a+(i<0?`e`:`e+`)+i):i<0?(a=`0.`+KI(-i-1)+a,n&&(r=n-o)>0&&(a+=KI(r))):i>=o?(a+=KI(i+1-o),n&&(r=n-i-1)>0&&(a=a+`.`+KI(r))):((r=i+1)0&&(i+1===o&&(a+=`.`),a+=KI(r))),e.s<0?`-`+a:a}function QI(e,t){if(e.length>t)return e.length=t,!0}function $I(e){var t,n,r;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i)t.s=e.s,t.e=e.e,t.d=(e=e.d)?e.slice():e;else{if(typeof e==`number`){if(e*0!=0)throw Error(OI+e);if(e>0)t.s=1;else if(e<0)e=-e,t.s=-1;else{t.s=0,t.e=0,t.d=[0];return}if(e===~~e&&e<1e7){t.e=0,t.d=[e];return}return JI(t,e.toString())}if(typeof e!=`string`)throw Error(OI+e);if(e.charCodeAt(0)===45?(e=e.slice(1),t.s=-1):t.s=1,MI.test(e))JI(t,e);else throw Error(OI+e)}}if(i.prototype=RI,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=$I,i.config=i.set=eL,e===void 0&&(e={}),e)for(r=[`precision`,`rounding`,`toExpNeg`,`toExpPos`,`LN10`],t=0;t=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(OI+n+`: `+r)}if((r=e[n=`LN10`])!==void 0){if(r==Math.LN10)this[n]=new this(r);else throw Error(OI+n+`: `+r)}return this}NI=new($I(TI))(1);var Q;(function(e){e.AED=`aed`,e.AFN=`afn`,e.ALL=`all`,e.AMD=`amd`,e.ANG=`ang`,e.AOA=`aoa`,e.ARS=`ars`,e.AUD=`aud`,e.AWG=`awg`,e.AZN=`azn`,e.BAM=`bam`,e.BBD=`bbd`,e.BDT=`bdt`,e.BGN=`bgn`,e.BHD=`bhd`,e.BIF=`bif`,e.BMD=`bmd`,e.BND=`bnd`,e.BOB=`bob`,e.BOV=`bov`,e.BRL=`brl`,e.BSD=`bsd`,e.BTN=`btn`,e.BWP=`bwp`,e.BYN=`byn`,e.BYR=`byr`,e.BZD=`bzd`,e.CAD=`cad`,e.CDF=`cdf`,e.CHE=`che`,e.CHF=`chf`,e.CHW=`chw`,e.CLF=`clf`,e.CLP=`clp`,e.CNY=`cny`,e.COP=`cop`,e.COU=`cou`,e.CRC=`crc`,e.CUC=`cuc`,e.CUP=`cup`,e.CVE=`cve`,e.CZK=`czk`,e.DJF=`djf`,e.DKK=`dkk`,e.DOP=`dop`,e.DZD=`dzd`,e.EGP=`egp`,e.ERN=`ern`,e.ETB=`etb`,e.EUR=`eur`,e.FJD=`fjd`,e.FKP=`fkp`,e.GBP=`gbp`,e.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,Q.KZT,Q.LAK,Q.LBP,Q.LKR,Q.LRD,Q.LSL,Q.LTL,Q.LVL,Q.LYD,Q.MAD,Q.MDL,Q.MGA,Q.MKD,Q.MMK,Q.MNT,Q.MOP,Q.MRO,Q.MUR,Q.MVR,Q.MWK,Q.MXN,Q.MXV,Q.MYR,Q.MZN,Q.NAD,Q.NGN,Q.NIO,Q.NOK,Q.NPR,Q.NZD,Q.OMR,Q.PAB,Q.PEN,Q.PGK,Q.PHP,Q.PKR,Q.PLN,Q.PYG,Q.QAR,Q.RON,Q.RSD,Q.RUB,Q.RWF,Q.SAR,Q.SBD,Q.SCR,Q.SDG,Q.SEK,Q.SGD,Q.SHP,Q.SLL,Q.SOS,Q.SRD,Q.SSP,Q.STD,Q.SVC,Q.SYP,Q.SZL,Q.THB,Q.TJS,Q.TMT,Q.TND,Q.TOP,Q.TRY,Q.TTD,Q.TWD,Q.TZS,Q.UAH,Q.UGX,Q.USD,Q.USN,Q.USS,Q.UYI,Q.UYU,Q.UZS,Q.VEF,Q.VND,Q.VUV,Q.WST,Q.XAF,Q.XAG,Q.XAU,Q.XBA,Q.XBB,Q.XBC,Q.XBD,Q.XCD,Q.XDR,Q.XFU,Q.XOF,Q.XPD,Q.XPF,Q.XPT,Q.XSU,Q.XTS,Q.XUA,Q.YER,Q.ZAR,Q.ZMW,Q.ZWL;var tL={exports:{}};tL.exports;var nL;function rL(){return nL||(nL=1,(function(e,t){var n=`__lodash_hash_undefined__`,r=9007199254740991,i=`[object Arguments]`,a=`[object Array]`,o=`[object Boolean]`,s=`[object Date]`,c=`[object Error]`,l=`[object Function]`,u=`[object Map]`,d=`[object Number]`,f=`[object Object]`,p=`[object Promise]`,m=`[object RegExp]`,h=`[object Set]`,g=`[object String]`,_=`[object Symbol]`,v=`[object WeakMap]`,y=`[object ArrayBuffer]`,b=`[object DataView]`,x=`[object Float32Array]`,S=`[object Float64Array]`,C=`[object Int8Array]`,w=`[object Int16Array]`,T=`[object Int32Array]`,E=`[object Uint8Array]`,D=`[object Uint8ClampedArray]`,O=`[object Uint16Array]`,k=`[object Uint32Array]`,ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,A=/^\w*$/,te=/^\./,j=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ne=/[\\^$.*+?()[\]{}|]/g,re=/\\(\\)?/g,ie=/^\[object .+?Constructor\]$/,M=/^(?:0|[1-9]\d*)$/,N={};N[x]=N[S]=N[C]=N[w]=N[T]=N[E]=N[D]=N[O]=N[k]=!0,N[i]=N[a]=N[y]=N[o]=N[b]=N[s]=N[c]=N[l]=N[u]=N[d]=N[f]=N[m]=N[h]=N[g]=N[v]=!1;var ae=typeof xA==`object`&&xA&&xA.Object===Object&&xA,oe=typeof self==`object`&&self&&self.Object===Object&&self,se=ae||oe||globalThis,ce=t&&!t.nodeType&&t,le=ce&&e&&!e.nodeType&&e,ue=le&&le.exports===ce&&ae.process,de=function(){try{return ue&&ue.binding(`util`)}catch{}}(),fe=de&&de.isTypedArray;function pe(e,t){for(var n=-1,r=e?e.length:0;++n-1}function st(e,t){var n=this.__data__,r=wt(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}nt.prototype.clear=rt,nt.prototype.delete=it,nt.prototype.get=at,nt.prototype.has=ot,nt.prototype.set=st;function ct(e){var t=-1,n=e?e.length:0;for(this.clear();++ts))return!1;var l=a.get(e);if(l&&a.get(t))return l==t;var u=-1,d=!0,f=i&1?new mt:void 0;for(a.set(e,t),a.set(t,e);++u-1&&e%1==0&&e-1&&e%1==0&&e<=r}function gn(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function _n(e){return!!e&&typeof e==`object`}function vn(e){return typeof e==`symbol`||_n(e)&&De.call(e)==_}var yn=fe?_e(fe):Pt;function bn(e){return e==null?``:Bt(e)}function xn(e,t,n){var r=e==null?void 0:Dt(e,t);return r===void 0?n:r}function Sn(e,t){return e!=null&&Xt(e,t,kt)}function Cn(e){return fn(e)?Ct(e):It(e)}function wn(e,t,n){var r=dn(e)||yn(e);if(t=Ft(t),n==null){if(r||gn(e)){var i=e.constructor;n=r?dn(e)?new i:[]:mn(i)?Tt(je(e)):{}}else n={}}return(r?pe:Et)(e,function(e,r,i){return t(n,e,r,i)}),n}function Tn(e){return e}function En(e){return Qt(e)?he(on(e)):zt(e)}e.exports=wn})(tL,tL.exports)),tL.exports}rL();var{Commands:iL}=GN,aL=[`identify`,`guilds.members.read`];function oL(e,t){if(e instanceof mA)return e;if(typeof e==`object`&&e&&`code`in e){let n=e.code,r=Object.values(_N).filter(e=>typeof e==`number`);if(typeof n==`number`&&r.includes(n))return new mA(`${t}_${n}`)}return new mA(t)}var sL=15e3,cL=12e4,lL=15e3;function uL(e=window.location.search){let t=new URLSearchParams(e),n=t.getAll(`frame_id`),r=t.getAll(`platform`);if(n.length!==1||n[0]===void 0||n[0].length===0||n[0].length>255||r.length!==1||![`desktop`,`mobile`].includes(r[0]??``))throw new mA(`invalid_launch`)}async function dL(e,t,n,r,i){let a=null,o=new Promise((e,n)=>{t!==void 0&&(a=()=>n(new mA(`cancelled`)),t.addEventListener(`abort`,a,{once:!0}),t.aborted&&a())}),s=null,c=new Promise((e,t)=>{s=setTimeout(()=>t(new mA(r)),i)}),l=Promise.resolve().then(()=>{if(t?.aborted)throw new mA(`cancelled`);return e()}).catch(e=>{throw oL(e,n)});try{return await Promise.race([l,o,c])}finally{s!==null&&clearTimeout(s),t!==void 0&&a!==null&&t.removeEventListener(`abort`,a)}}var fL=class{makeSDK;sdk=null;authenticated=!1;closed=!1;constructor(e=e=>new CI(e)){this.makeSDK=e}async authorize(e){let t=gA();uL();let n=await vA(t,e),r=this.open(n.client_id),i=()=>{if(e?.aborted)throw new mA(`cancelled`)};try{if(i(),await dL(()=>r.ready(),e,`sdk_ready_failed`,`sdk_ready_timeout`,sL),i(),r.instanceId!==t)throw new mA(`instance_mismatch`);let a=await dL(()=>r.commands.authorize({client_id:n.client_id,response_type:`code`,state:n.state,prompt:`none`,scope:[...aL]}),e,`authorize_failed`,`authorize_timeout`,cL);i();let o=await yA(a.code,n.state,e);if(i(),!this.authenticated){if(await dL(()=>r.commands.authenticate({access_token:o.access_token}),e,`sdk_authenticate_failed`,`sdk_authenticate_timeout`,lL)==null)throw new mA(`sdk_authenticate_failed`);this.authenticated=!0,i()}let s=o.ticket;return{sdk:r,bootstrap:n,player:o.player,takeTicket:()=>{let e=s;return s=null,e},destroy:()=>{s=null}}}catch(t){throw e?.aborted?new mA(`cancelled`):new mA(oL(t,`authorization_failed`).code,!0)}}close(){if(!this.closed&&(this.closed=!0,this.sdk!==null))try{this.sdk.close(gN.CLOSE_NORMAL,`Hands session closed`)}catch{}}open(e){if(this.closed)throw new mA(`cancelled`);if(this.sdk!==null)return this.sdk;try{this.sdk=this.makeSDK(e)}catch(e){throw new mA(oL(e,`sdk_initialization_failed`).code,!0)}return this.sdk}},pL={Digit1:`corner_cut`,Numpad1:`corner_cut`,Digit2:`corner_swelling`,Numpad2:`corner_swelling`,Digit3:`corner_breath`,Numpad3:`corner_breath`},mL={2:`corner_cut`,3:`corner_swelling`,1:`corner_breath`},hL=[{kind:`corner_cut`,choice:`cut`,key:`1`,title:`Close the cut`},{kind:`corner_swelling`,choice:`swelling`,key:`2`,title:`Bring down the swelling`},{kind:`corner_breath`,choice:`breath`,key:`3`,title:`Catch your breath`}],gL={cut:`Your corner is closing the cut.`,swelling:`Your corner is bringing the swelling down.`,breath:`Your corner is getting your breath back.`,balanced:`Your corner did a little of everything.`},_L=1500,vL=1e3;function yL(e){return e<150?`small`:e<350?`nasty`:e<550?`deep`:`dangerous`}var bL=(e,t)=>Math.round(Math.max(0,Math.min(1,e/t))*100);function xL(e){let{trauma:t}=e,n=Math.max(t.left_cut,t.right_cut),r=Math.max(0,n-x.cut.worse_cut),i=Math.max(t.left_eye,t.right_eye),a=Math.max(0,i-x.swelling.eyes),o=i>=p?a0,swelling:Math.max(t.left_eye,t.right_eye)>0||t.swelling>0,breath:!0,balanced:!1}}function CL(){try{return[...navigator.getGamepads?.()??[]].find(e=>e!==null&&e.connected&&e.mapping===`standard`)??null}catch{return null}}var wL=class{pick;now;element;buttons=new Map;details=new Map;status;visible=!1;choice=null;pending=null;shown=null;frozen=null;available=null;padFrame=0;padPrevious=new Set;measuredTop=null;resize=()=>{this.measuredTop=null};keydown=e=>{let t=pL[e.code];t!==void 0&&this.visible&&!e.repeat&&(e.preventDefault(),this.choose(t))};constructor(e,t,n=()=>performance.now()){this.pick=t,this.now=n;let r=document.createElement(`section`);r.className=`corner`,r.dataset.corner=``,r.hidden=!0,r.setAttribute(`aria-label`,`Instructions for your corner`);let i=document.createElement(`p`);i.className=`corner-title`,i.textContent=`YOUR CORNER`;let a=document.createElement(`div`);a.className=`corner-choices`;for(let{kind:e,key:t,title:n}of hL){let r=document.createElement(`button`);r.type=`button`,r.dataset.cornerPick=e;let i=document.createElement(`kbd`);i.textContent=t;let o=document.createElement(`strong`);o.textContent=n;let s=document.createElement(`span`);r.append(i,o,s),r.addEventListener(`click`,()=>this.choose(e)),a.append(r),this.buttons.set(e,r),this.details.set(e,s)}this.status=document.createElement(`p`),this.status.className=`corner-status`,this.status.setAttribute(`role`,`status`),r.append(i,a,this.status),e.append(r),this.element=r,window.addEventListener(`keydown`,this.keydown),window.addEventListener(`resize`,this.resize)}update(e,t,n){let r=e?.fighters.find(e=>e.player_id===t);if(!(n&&e!==null&&e.phase===`rest`&&r!==void 0)||r===void 0){this.setVisible(!1),this.choice=null,this.pending=null,this.shown=null,this.frozen=null;return}this.setVisible(!0),this.choice=r.corner_choice,(this.choice!==null||this.pending!==null&&this.now()-this.pending.at>_L)&&(this.pending=null);let i=this.choice!==null||this.pending!==null;i||(this.frozen=null);let a=i&&this.frozen!==null?this.frozen:xL(r);this.shown=a;let o=SL(r);this.available=o;for(let{kind:e,choice:t}of hL){let n=this.buttons.get(e),r=this.details.get(e);r.textContent!==a[t]&&(r.textContent=a[t]),n.disabled=i||!o[t],n.toggleAttribute(`data-picked`,this.choice===t||this.pending?.kind===e)}let s=this.choice===null?this.pending===null?`Tell your corner what to work on before the bell.`:`Calling it to your corner…`:gL[this.choice];this.status.textContent!==s&&(this.status.textContent=s)}choose(e){if(!this.visible||this.choice!==null||this.pending!==null)return;let t=hL.find(t=>t.kind===e)?.choice;if(t!==void 0&&this.available?.[t]!==!1&&this.pick(e)){this.frozen=this.shown,this.pending={kind:e,at:this.now()};for(let[t,n]of this.buttons)n.disabled=!0,n.toggleAttribute(`data-picked`,t===e);this.status.textContent=`Calling it to your corner…`}}setVisible(e){if(e!==this.visible){if(this.visible=e,this.element.hidden=!e,this.measuredTop=null,this.padPrevious.clear(),e){let e=CL();for(let t of Object.keys(mL))e?.buttons[Number(t)]?.pressed===!0&&this.padPrevious.add(Number(t));this.padFrame=requestAnimationFrame(()=>this.pollPad())}else cancelAnimationFrame(this.padFrame)}}top(){if(!this.visible)return null;if(this.measuredTop===null){let e=this.element.getBoundingClientRect();if(e.height<=0)return null;this.measuredTop=e.top-(this.element.parentElement?.getBoundingClientRect().top??0)}return this.measuredTop}pollPad(){if(!this.visible)return;let e=CL();if(e!==null)for(let[t,n]of Object.entries(mL)){let r=Number(t),i=e.buttons[r]?.pressed===!0;i&&!this.padPrevious.has(r)&&this.choose(n),i?this.padPrevious.add(r):this.padPrevious.delete(r)}this.padFrame=requestAnimationFrame(()=>this.pollPad())}destroy(){this.setVisible(!1),window.removeEventListener(`keydown`,this.keydown),window.removeEventListener(`resize`,this.resize),this.element.remove()}},TL={invalid_launch:`open Hands from a Discord voice channel with Play now`,cancelled:`the session was cancelled`,authorization_failed:`Discord did not authorize the session`,authorize_failed:`Discord did not authorize the session`,authorize_timeout:`Discord took too long to authorize the session`,sdk_ready_failed:`the Discord client did not respond`,sdk_ready_timeout:`the Discord client took too long to respond`,sdk_authenticate_failed:`Discord did not confirm your identity`,sdk_authenticate_timeout:`Discord took too long to confirm your identity`,sdk_initialization_failed:`the Discord client could not start the activity`,instance_mismatch:`this window belongs to a different activity instance`,bootstrap_failed:`the Hands server could not be reached`,token_failed:`the Hands server rejected the sign-in`,invalid_bootstrap:`the Hands server sent an unexpected reply`,invalid_token_response:`the Hands server sent an unexpected reply`,ticket_unavailable:`the session ticket was already used`,protocol_error:`the server and client disagree on the protocol`,unexpected_error:`something unexpected went wrong`,authentication_timeout:`the connection took too long to authenticate`,authentication_required:`the connection was not authenticated`,invalid_ticket:`the session ticket was rejected`,invalid_request:`the server rejected the request`,invalid_input:`the server rejected an input frame`,input_queue_full:`the server could not keep up with the inputs`,rate_limited:`too many requests were sent; wait a moment`,service_busy:`the server is busy right now`,service_unavailable:`the server is unavailable right now`,upstream_unavailable:`Discord is unavailable right now`,room_closed:`the bout has already ended; use Play now to start another`,room_full:`both seats in this bout are taken`,already_in_room:`you are already in a bout in another channel`,match_not_started:`the bout has not started yet`,connection_replaced:`this seat was taken over by a newer connection`,spectator_read_only:`spectators cannot send input`,server_shutting_down:`the server is restarting`,internal_error:`the server hit an internal error`,not_in_activity:`you are not a participant of this activity`,invalid_activity:`this activity instance is not valid`,invalid_state:`the sign-in state expired; retry`,invalid_guild:`this activity belongs to another server`,persistence_failed:`the result could not be saved`,rematch_unavailable:`the ring could not be cleared for a rematch; use Play now to start another bout`,network_unavailable:`the connection to the Hands server could not be opened`,match_abandoned:`both fighters lost their connection and the bout was called off`};function EL(e){if(e===`client_outdated`)return`Hands was updated. Reload to continue (client_outdated).`;let t=TL[e]??TL[e.replace(/_\d+$/u,``)];return t===void 0?`Unable to continue (${e}).`:`Unable to continue: ${t} (${e}).`}var DL={block:[55,.12,.22],hit:[85,.3,.42],counter_hit:[105,.38,.5],stun:[125,.42,.55],knockdown:[180,.62,.65],parry:[60,.18,.4],body_collapse:[170,.55,.3]},OL={injury:[150,.55,.6],vomit:[90,.15,.45],finish_him:[180,.65,.3],fatality:[180,.65,.65],death:[170,.5,.12]},kL=[120,.65,.5],AL=[35,.2,.35],jL=class{settings;constructor(e){this.settings=e}event(e,t=!1){if(!this.settings().haptics)return;let n=DL[e.kind];n!==void 0&&this.rumble(t?[n[0]*1.6,n[1]+.2,n[2]+.15]:n)}gore(e){if(!this.settings().haptics||e.kind===`death`&&ot(e.cause)!==null)return;this.rumble(OL[e.kind]);let t=this.settings();e.kind===`injury`&&sk(e.injury)!==null&&t.blood===`full`&&!t.reducedMotion&&setTimeout(()=>this.rumble(kL),ck*1e3)}getUpBeat(){this.settings().haptics&&this.rumble(AL)}rumble(e){let t=this.padActuator();if(t===null)this.vibrate(e[0]);else try{Promise.resolve(t.playEffect(`dual-rumble`,{duration:Math.min(180,Math.max(0,e[0])),strongMagnitude:Math.min(.65,Math.max(0,e[1])),weakMagnitude:Math.min(.65,Math.max(0,e[2]))})).catch(()=>void 0)}catch{}}padActuator(){if(typeof navigator.getGamepads!=`function`)return null;let e;try{e=[...navigator.getGamepads.call(navigator)]}catch{return null}let t=e.find(e=>e!==null&&e.connected&&`vibrationActuator`in e)?.vibrationActuator;return t==null||typeof t.playEffect!=`function`?null:t}vibrate(e){if(Re()&&typeof navigator.vibrate==`function`)try{navigator.vibrate(Math.min(180,Math.max(0,e)))}catch{}}};function ML(e,t){return e.kind===t.kind?e.kind===`punch`&&t.kind===`punch`?e.hand===t.hand&&e.class===t.class&&e.target===t.target&&e.power===t.power:e.kind===`foul`&&t.kind===`foul`?e.foul===t.foul:!0:!1}function NL(e,t,n){if(n<1||e.length>0&&ML(e.at(-1),t))return;let r=e.length-n+1;r>0&&e.splice(0,r),e.push(t)}var PL=class{maximum;queue=[];counter=0;listener=null;constructor(e=1){this.maximum=e}setListener(e){this.listener=e}push(e,t){if(this.maximum<1)return;let n=this.queue.at(-1);if(n!==void 0&&ML(n.action,t)){n.source=e;return}let r={...t,id:`c${this.counter+=1}`},i=this.queue.length-this.maximum+1;i>0&&this.queue.splice(0,i),this.queue.push({action:r,source:e}),this.listener?.(r)}clear(){this.queue.length=0}clearSource(e){let t=this.queue.filter(t=>t.source!==e);this.queue.splice(0,this.queue.length,...t)}drain(e){return this.queue.splice(0,e).map(e=>e.action)}};function FL(e,t,n=.18){let r=Math.hypot(e,t);if(!Number.isFinite(r)||r<=n)return{x:0,y:0};let i=(Math.min(1,r)-n)/(1-n);return{x:e/r*i,y:t/r*i}}var IL=(e,t)=>{let n=Math.atan2(Math.abs(t),Math.abs(e))*180/Math.PI;return n<22.5?`hook`:n<45?`jab`:n<70?`straight`:`uppercut`},LL=class{active=!1;hand=`right`;target=`head`;power=`normal`;peak={x:0,y:0};peakMagnitude=0;update(e,t,n,r){let i=Math.hypot(e,t);if(!this.active&&i>=.55&&Math.abs(e)>=.12)return this.active=!0,this.hand=e<0?`left`:`right`,this.target=n?`body`:`head`,this.power=r?`power`:`normal`,this.peak={x:e,y:t},this.peakMagnitude=i,null;if(!this.active)return null;if(i>this.peakMagnitude&&(this.peak={x:e,y:t},this.peakMagnitude=i),i<=.25){let e={kind:`punch`,hand:this.hand,class:IL(this.peak.x,this.peak.y),target:this.target,power:this.power};return this.reset(),e}return null}reset(){this.active=!1,this.peak={x:0,y:0},this.peakMagnitude=0}},RL=[`jab`,`straight`,`hook`,`uppercut`],zL=(e,t)=>e.buttons[t]?.pressed===!0;function BL(){let e=navigator.getGamepads;if(typeof e!=`function`)return null;try{return[...e.call(navigator)].find(e=>e!==null&&e.connected&&e.mapping===`standard`)??null}catch{return null}}var VL=class{maximumQueue;sharedActions;gesture=new LL;queue=[];previous=new Set;selectorConsumed=new Map;raf=0;currentId=null;moveX=0;moveY=0;defense=`none`;knockdown=!1;enabled=!0;trigger=!1;heldListener=null;disconnect=e=>{e.gamepad.id===this.currentId&&this.reset()};constructor(e=1,t){this.maximumQueue=e,this.sharedActions=t,window.addEventListener(`gamepaddisconnected`,this.disconnect),this.raf=requestAnimationFrame(()=>this.poll())}onHeldChange(e){this.heldListener=e}push(e){this.sharedActions===void 0?NL(this.queue,e,this.maximumQueue):this.sharedActions.push(`gamepad`,e)}poll(){if(!this.enabled){this.reset(),this.schedulePoll();return}let e=BL();if(e===null){this.currentId!==null&&this.reset(),this.schedulePoll();return}this.currentId!==null&&this.currentId!==e.id&&this.reset(),this.currentId=e.id;let t=FL(e.axes[0]??0,e.axes[1]??0),n=Math.round(t.x*1e3),r=Math.round(-t.y*1e3),i=zL(e,4)?`guard_high`:zL(e,5)?`guard_low`:`none`,a=n!==this.moveX||r!==this.moveY||i!==this.defense;this.moveX=n,this.moveY=r,this.defense=i,a&&this.heldListener?.(),this.trigger=zL(e,7);let o=this.gesture.update(e.axes[2]??0,e.axes[3]??0,zL(e,6),this.trigger);o!==null&&this.push(o);let s=RL.some((t,n)=>zL(e,n)&&!this.previous.has(n));for(let t of[14,15]){let n=zL(e,t),r=this.previous.has(t);this.knockdown?(n&&!r&&this.push({kind:t===14?`get_up_left`:`get_up_right`}),this.selectorConsumed.delete(t)):n?(r||this.selectorConsumed.set(t,!1),s&&this.selectorConsumed.set(t,!0)):r&&(this.selectorConsumed.get(t)===!1&&this.push({kind:t===14?`slip_left`:`slip_right`}),this.selectorConsumed.delete(t))}for(let t=0;tthis.poll())}setKnockdown(e){this.knockdown=e}get powerHeld(){return this.enabled&&this.trigger}setEnabled(e){this.enabled=e,e||this.reset()}frame(e=4){let t=this.sharedActions===void 0?this.queue.splice(0,e):[];return{moveX:this.moveX,moveY:this.moveY,defense:this.defense,actions:t}}reset(){this.currentId=null,this.moveX=this.moveY=0,this.defense=`none`,this.trigger=!1,this.queue.length=0,this.sharedActions?.clearSource(`gamepad`),this.previous.clear(),this.selectorConsumed.clear(),this.gesture.reset()}destroy(){cancelAnimationFrame(this.raf),window.removeEventListener(`gamepaddisconnected`,this.disconnect),this.reset()}},HL=new Set([`KeyW`,`KeyA`,`KeyS`,`KeyD`,`KeyQ`,`KeyE`]),UL=new Set([`ShiftLeft`,`ShiftRight`,`AltLeft`,`AltRight`]),WL=class{target;maximumQueue;sharedActions;held=new Set;queue=[];enabled=!0;altFlag=!1;heldListener=null;keydown=e=>{if(this.altFlag=e.altKey,!Oe.has(e.code))return;if(!this.enabled){this.hold(e.code,e.repeat);return}if(e.preventDefault(),this.hold(e.code,e.repeat),e.repeat)return;let t=Te[e.code];if(t!==void 0)this.push({kind:`punch`,hand:t[0],class:t[1],target:this.hasShift(e)?`body`:`head`,power:this.alt?`power`:`normal`});else{let t=F[e.code];t!==void 0&&(t.kind!==`foul`||this.hasShift(e))&&this.push(t)}};keyup=e=>{this.altFlag=e.altKey,e.code===`MetaLeft`||e.code===`MetaRight`?this.letGo(e=>!UL.has(e)):Oe.has(e.code)&&(this.enabled&&e.preventDefault(),this.letGo(t=>t===e.code))};visibility=()=>{document.hidden&&this.reset()};blur=()=>this.reset();constructor(e=window,t=1,n){this.target=e,this.maximumQueue=t,this.sharedActions=n,e.addEventListener(`keydown`,this.keydown),e.addEventListener(`keyup`,this.keyup),e.addEventListener(`blur`,this.blur),document.addEventListener(`visibilitychange`,this.visibility)}onHeldChange(e){this.heldListener=e}hold(e,t){t&&this.held.has(e)||(this.held.delete(e),this.held.add(e),HL.has(e)&&this.heldListener?.())}letGo(e){let t=!1;for(let n of this.held)e(n)&&(this.held.delete(n),t||=HL.has(n));t&&this.heldListener?.()}axis(e,t){let n=0;for(let r of this.held)r===e?n=1:r===t&&(n=-1);return n}hasShift(e){return e.shiftKey||this.held.has(`ShiftLeft`)||this.held.has(`ShiftRight`)}get alt(){return this.altFlag||this.held.has(`AltLeft`)||this.held.has(`AltRight`)}get powerHeld(){return this.enabled&&this.alt}push(e){this.sharedActions===void 0?NL(this.queue,e,this.maximumQueue):this.sharedActions.push(`keyboard`,e)}setEnabled(e){this.enabled=e,e||(this.queue.length=0,this.sharedActions?.clearSource(`keyboard`))}frame(e=4){if(!this.enabled)return{moveX:0,moveY:0,defense:`none`,actions:[]};let t=this.axis(`KeyD`,`KeyA`)*1e3,n=this.axis(`KeyW`,`KeyS`)*1e3;t!==0&&n!==0&&(t=Math.sign(t)*707,n=Math.sign(n)*707);let r=this.axis(`KeyQ`,`KeyE`);return{moveX:t,moveY:n,defense:r>0?`guard_high`:r<0?`guard_low`:`none`,actions:this.sharedActions===void 0?this.queue.splice(0,e):[]}}reset(){this.letGo(()=>!0),this.altFlag=!1,this.queue.length=0,this.sharedActions?.clearSource(`keyboard`)}destroy(){this.reset(),this.target.removeEventListener(`keydown`,this.keydown),this.target.removeEventListener(`keyup`,this.keyup),this.target.removeEventListener(`blur`,this.blur),document.removeEventListener(`visibilitychange`,this.visibility)}};function GL(e,t,n,r){let i=e=>Math.max(-1e3,Math.min(1e3,Math.round(e)))||0;return{moveX:i(-r*e+n*t),moveY:i(-n*e-r*t)}}var KL=(e,t,n,r)=>Math.abs(Math.atan2(e*r-t*n,e*n+t*r)),qL=Math.PI/4-.01,JL=Math.PI/8,YL=300,XL=class{actions=new PL(1);keyboard;gamepad;touch=null;reset=()=>{this.keyboard.reset(),this.gamepad.reset(),this.touch?.reset(),this.actions.clear(),this.gamepad.setKnockdown(!1)};heldChanged=()=>{let e=this.held(),t=this.sentHeld,n=e.moveX!==0||e.moveY!==0,r=t.moveX!==0||t.moveY!==0;(e.defense!==t.defense||n!==r||n&&(KL(e.moveX,e.moveY,t.moveX,t.moveY)>JL||Math.abs(Math.hypot(e.moveX,e.moveY)-Math.hypot(t.moveX,t.moveY))>YL))&&(this.sentHeld=e,this.heldListener?.())};constructor(){this.keyboard=new WL(window,1,this.actions),this.gamepad=new VL(1,this.actions),this.keyboard.onHeldChange(this.heldChanged),this.gamepad.onHeldChange(this.heldChanged),window.addEventListener(`blur`,this.reset),document.addEventListener(`visibilitychange`,this.visibility)}visibility=()=>{document.hidden&&this.reset()};attachTouch(e,t=Re()){this.touch===null&&t&&(this.touch=new Ve(e,this.actions),this.touch.onHeldChange(this.heldChanged))}setActive(e,t=e){this.keyboard.setEnabled(e),this.gamepad.setEnabled(e),this.touch?.setEnabled(e,t)}setKnockdown(e){this.gamepad.setKnockdown(e),this.touch?.setKnockdown(e)}setGetUpPrompt(e){this.touch?.setGetUpPrompt(e)}onAction(e){this.actions.setListener(e)}get powerHeld(){return this.keyboard.powerHeld||this.gamepad.powerHeld||this.touch?.powerHeld===!0}onHeldChange(e){this.heldListener=e}heldListener=null;sentHeld={moveX:0,moveY:0,defense:`none`};setViewForward(e){this.viewForward=e}viewForward=null;latched=null;held(){let e=this.keyboard.frame(0),t=this.gamepad.frame(0),n=this.touch?.frame()??null,r=t.moveX===0?n!==null&&n.moveX!==0?n.moveX:e.moveX:t.moveX,i=t.moveY===0?n!==null&&n.moveY!==0?n.moveY:e.moveY:t.moveY,a=t.defense===`none`?n!==null&&n.defense!==`none`?n.defense:e.defense:t.defense;if(r===0&&i===0)return this.latched=null,{moveX:r,moveY:i,defense:a};let o=this.viewForward?.()??null,s=this.latched;s===null||KL(r,i,s.moveX,s.moveY)>qL?this.latched={moveX:r,moveY:i,forward:o===null?null:{x:o.x,z:o.z}}:s.forward!==null&&o!==null&&(s.forward.x=o.x,s.forward.z=o.z);let c=this.latched.forward;if(c===null)return{moveX:r,moveY:i,defense:a};let l=GL(r,i,c.x,c.z);return{moveX:l.moveX,moveY:l.moveY,defense:a}}frame(){return{...this.held(),actions:this.actions.drain(4)}}destroy(){window.removeEventListener(`blur`,this.reset),document.removeEventListener(`visibilitychange`,this.visibility),this.keyboard.destroy(),this.gamepad.destroy(),this.touch?.destroy()}},ZL=(e,t,n)=>e+(t-e)*n,QL=(e,t,n)=>({...t,x:ZL(e.x,t.x,n),y:ZL(e.y,t.y,n),facing:ZL(e.facing,t.facing,n),facing_x:ZL(e.facing_x,t.facing_x,n),facing_y:ZL(e.facing_y,t.facing_y,n),velocity_x:ZL(e.velocity_x,t.velocity_x,n),velocity_y:ZL(e.velocity_y,t.velocity_y,n),stamina:ZL(e.stamina,t.stamina,n),maximum_stamina:ZL(e.maximum_stamina,t.maximum_stamina,n),conditioning:ZL(e.conditioning,t.conditioning,n),guard:ZL(e.guard,t.guard,n),poise:ZL(e.poise,t.poise,n)}),$L=(e,t,n)=>({...t,x:ZL(e.x,t.x,n),y:ZL(e.y,t.y,n),facing_x:ZL(e.facing_x,t.facing_x,n),facing_y:ZL(e.facing_y,t.facing_y,n),velocity_x:ZL(e.velocity_x,t.velocity_x,n),velocity_y:ZL(e.velocity_y,t.velocity_y,n)}),eR=1.5,tR=6,nR=.5,rR=2500,iR=1,aR=.04,oR=100,sR=.01,cR=4,lR=class{maximum;tickRate;initialDelayTicks;snapshots=[];offsetTicks=null;delayTicks;lastStarvationMs=-1/0;lastFrameMs=null;behindPushes=0;needs=[];constructor(e=8,t=30,n=2){this.maximum=e,this.tickRate=t,this.initialDelayTicks=n,this.delayTicks=n}get interpolationDelayTicks(){return this.delayTicks}push(e,t){let n=this.snapshots.at(-1);if(n!==void 0&&e.tick<=n.tick)return!1;if(this.snapshots.push(e),this.snapshots.length>this.maximum&&this.snapshots.shift(),t!==void 0&&Number.isFinite(t)){let n=e.tick-t*this.tickRate/1e3;this.offsetTicks!==null&&n=cR&&this.restartClock(),this.offsetTicks===null?(this.offsetTicks=n,this.need(t,this.initialDelayTicks)):this.offsetTicks=Math.max(n,this.offsetTicks-sR),this.need(t,this.offsetTicks-n+iR)}return!0}resync(){this.restartClock()}restartClock(){this.offsetTicks=null,this.delayTicks=this.initialDelayTicks,this.lastStarvationMs=-1/0,this.behindPushes=0,this.needs.length=0}need(e,t){for(;this.needs.length>0&&this.needs.at(-1).ticks<=t;)this.needs.pop();this.needs.push({atMs:e,ticks:t})}recentNeed(e){for(;this.needs.length>0&&this.needs[0].atMs<=e-rR;)this.needs.shift();return this.needs[0]?.ticks??0}latest(){return this.snapshots.at(-1)??null}clockTick(e){let t=this.latest();return t===null?0:this.offsetTicks===null?t.tick:e*this.tickRate/1e3+this.offsetTicks}renderTick(e){let t=this.latest();if(t===null)return 0;let n=this.snapshots[0].tick;if(this.offsetTicks===null)return Math.max(n,t.tick-1);let r=this.lastFrameMs===null?0:Math.min(oR,Math.max(0,e-this.lastFrameMs));this.lastFrameMs=e;let i=e*this.tickRate/1e3+this.offsetTicks-this.delayTicks;if(i>t.tick+.25)e-this.lastStarvationMs>250&&(this.lastStarvationMs=e,this.delayTicks=Math.min(tR,this.delayTicks+nR),this.need(e,this.delayTicks));else{let t=Math.max(eR,this.recentNeed(e));this.delayTicks>t&&(this.delayTicks=Math.max(t,this.delayTicks-aR*r*this.tickRate/1e3))}return Math.min(t.tick,Math.max(n,i))}sample(e){let t=this.snapshots.findIndex(t=>t.tick>=e);if(t<=0)return this.snapshots[Math.max(0,t)]??this.latest();let n=this.snapshots[t-1],r=this.snapshots[t];if(n.phase!==r.phase||n.fighters.some((e,t)=>e.knockdowns!==r.fighters[t]?.knockdowns))return r;let i=Math.max(0,Math.min(1,(e-n.tick)/Math.max(1,r.tick-n.tick)));return{...r,fighters:[QL(n.fighters[0],r.fighters[0],i),QL(n.fighters[1],r.fighters[1],i)],referee:$L(n.referee,r.referee,i)}}clear(){this.snapshots.length=0,this.offsetTicks=null}},uR=class{highest=-1;accept(e){let t=new Set,n=e.filter(e=>e.event_id<=this.highest||t.has(e.event_id)?!1:(t.add(e.event_id),!0)).sort((e,t)=>e.event_id-t.event_id);for(let e of n)this.highest=Math.max(this.highest,e.event_id);return n}reset(){this.highest=-1}};function dR(e=window.location){let t=new URL(`/api/hands/ws`,e.origin);if(e.protocol===`https:`)t.protocol=`wss:`;else if(e.protocol===`http:`&&[`localhost`,`127.0.0.1`,`::1`].includes(e.hostname))t.protocol=`ws:`;else throw Error(`insecure_websocket_origin`);return t.search=``,t.hash=``,t.toString()}var fR=1,pR={moveX:0,moveY:0,defense:`none`,actions:[]},mR=33,hR=8,gR=50,_R=20,vR=10,yR=2048;function bR(e){try{return on(e)}catch(t){let n;try{let t=Ct(e);n=typeof t==`object`&&t&&`version`in t?t.version:void 0}catch{}throw typeof n==`number`&&n!==7?new mA(`client_outdated`,!0):t}}var xR=class{getInput;callbacks;makeSocket;now;socket=null;reconnectTicket;reconnectTimer=null;opponentPauseTimer=null;inputTimer=null;reconnectDeadline=0;opponentPauseDeadline=0;opponentPaused=!1;attempts=0;nextSequence=0;playerId=null;sentAt=new Map;actionSequences=new Map;latencyMs=null;serverTick=0;role=null;active=!1;resting=!1;boutStarted=!1;disposed=!1;terminal=!1;inputSuppressed=!1;pointerFocus=!1;listenersBound=!1;lastInputSentAt=-1/0;sendTimes=[];edgeSendTimes=[];heldSendTimes=[];heldTimer=null;pressWaiting=!1;constructor(e,t,n,r=e=>new WebSocket(e),i=()=>performance.now()){this.getInput=t,this.callbacks=n,this.makeSocket=r,this.now=i,this.reconnectTicket=e}start(){this.disposed||this.listenersBound||(this.bindInputListeners(),this.connect(),!this.disposed&&!this.terminal&&(this.inputTimer=window.setInterval(()=>this.periodicFlush(),mR)))}bindInputListeners(){this.listenersBound=!0,window.addEventListener(`blur`,this.onInputLoss),window.addEventListener(`focus`,this.onInputRegain),window.addEventListener(`pointerdown`,this.onPagePointer,!0),document.addEventListener(`visibilitychange`,this.onVisibilityChange)}setActive(e){this.setInputActive(e)}setInputActive(e){let t=this.active;this.active=e,e?this.boutStarted=!0:t&&this.sendInput(pR,!0)}notifyAction(){this.pressWaiting=!0,this.now()-(this.edgeSendTimes.at(-1)??-1/0)=_R||this.flushInput()&&this.edgeSendTimes.push(this.lastInputSentAt)}notifyHeld(){let e=hR-(this.now()-Math.max(this.edgeSendTimes.at(-1)??-1/0,this.heldSendTimes.at(-1)??-1/0));e>0?this.heldTimer??=window.setTimeout(()=>{this.heldTimer=null,this.notifyHeld()},e):this.withinLastSecond(this.heldSendTimes)>=vR||this.sendsInLastSecond()>=40||this.flushInput()&&this.heldSendTimes.push(this.lastInputSentAt)}periodicFlush(){this.now()-Math.max(this.edgeSendTimes.at(-1)??-1/0,this.heldSendTimes.at(-1)??-1/0)=40||this.flushInput()}sendsInLastSecond(){return this.withinLastSecond(this.sendTimes)}withinLastSecond(e){let t=this.now()-1e3;for(;e.length>0&&e[0]<=t;)e.shift();return e.length}onInputLoss=()=>{this.inputSuppressed||(this.sendInput(pR,this.boutStarted),this.inputSuppressed=!0,this.pointerFocus=!1)};onInputRegain=()=>{!document.hidden&&document.hasFocus()&&(this.inputSuppressed=!1)};onPagePointer=()=>{if(!document.hidden&&(this.pointerFocus=!0,this.inputSuppressed=!1,!document.hasFocus()))try{window.focus()}catch{}};onVisibilityChange=()=>{document.hidden?this.onInputLoss():this.onInputRegain()};connect(){if(this.disposed||this.terminal)return;let e=this.reconnectTicket;if(e===null){this.terminal=!0,this.stopInputLifecycle(),this.callbacks.onFreshAuth();return}let t;try{t=this.makeSocket(dR())}catch{this.terminal=!0,this.stopInputLifecycle(),this.callbacks.onFatal(`network_unavailable`);return}this.socket=t,t.binaryType=`arraybuffer`,t.onopen=()=>{if(!(this.socket!==t||this.disposed))try{t.send(JSON.stringify({version:7,type:`authenticate`,ticket:e})),this.reconnectTicket=null}catch{this.handleClose(t)}},t.onmessage=e=>this.handleMessage(t,e),t.onerror=()=>void 0,t.onclose=()=>this.handleClose(t)}handleMessage(e,t){if(!(this.socket!==e||this.disposed||this.terminal))try{if(typeof t.data!=`string`&&!(t.data instanceof ArrayBuffer))throw Error(`unsupported_frame`);let n=bR(t.data);if(this.applyMessage(n),n.type===`ticket`){try{e.send(JSON.stringify({version:7,type:`ticket_ack`,refresh_id:n.refresh_id}))}catch{this.handleClose(e)}return}this.callbacks.onMessage(n),n.type===`error`?this.terminate(n.code,e):n.type===`final`&&(this.terminal=!0,this.clearTransportReconnect(!0),this.clearOpponentPause(!0),this.stopInputLifecycle(),this.socket===e&&(this.socket=null),e.onopen=e.onmessage=e.onclose=e.onerror=null,e.close(1e3,`complete`))}catch(e){this.callbacks.onFatal(bA(e)),this.dispose()}}applyMessage(e){if(e.type===`welcome`){if(e.reconnect_ticket===void 0)throw Error(`missing_reconnect_ticket`);this.reconnectTicket=e.reconnect_ticket,this.serverTick=e.server_tick;let t=this.role===`spectator`&&e.role===`fighter`;this.role=e.role,this.playerId=e.role===`fighter`?e.player_id:null,this.sentAt.clear(),e.role===`fighter`?this.nextSequence=Math.max(this.nextSequence,e.next_sequence):this.stopInputLifecycle(),t&&(this.listenersBound||this.bindInputListeners(),this.inputTimer??=window.setInterval(()=>this.periodicFlush(),mR)),this.attempts=0,this.clearTransportReconnect(!0)}else e.type===`ticket`?this.reconnectTicket=e.reconnect_ticket:e.type===`snapshot`?(this.serverTick=Math.max(this.serverTick,e.payload.tick),this.setInputActive([`countdown`,`fight`,`knockdown`,`foul_recovery`,`referee_down`,`finish`].includes(e.payload.phase)),this.resting=e.payload.phase===`rest`,this.observeAcknowledgement(e.payload)):e.type===`paused`?(this.setInputActive(!1),this.startOpponentPause(e.grace_ms)):e.type===`resumed`?(this.setInputActive(!0),this.attempts=0,this.clearOpponentPause(!0)):e.type===`select`?this.clearOpponentPause(!0):e.type===`ready`?(this.clearOpponentPause(!0),this.setInputActive(!0)):e.type===`waiting`?(this.clearOpponentPause(!0),this.setInputActive(!1)):(e.type===`final`||e.type===`error`)&&(this.active=!1,this.clearOpponentPause(!0))}terminate(e,t){this.terminal=!0,this.active=!1,this.clearTransportReconnect(!0),this.clearOpponentPause(!0),this.stopInputLifecycle(),this.callbacks.onFatal(e),this.socket===t&&(this.socket=null,t.onopen=t.onmessage=t.onclose=t.onerror=null,t.close(1e3,`terminal`))}handleClose(e){if(this.socket!==e||(this.socket=null,this.active=!1,this.disposed||this.terminal))return;if(this.reconnectTicket===null){this.terminal=!0,this.stopInputLifecycle(),this.callbacks.onFreshAuth();return}this.clearOpponentPause(!1),this.reconnectDeadline===0&&(this.reconnectDeadline=this.now()+2e4);let t=Math.max(0,this.reconnectDeadline-this.now());if(this.callbacks.onReconnect(t),t<=0){this.terminal=!0,this.stopInputLifecycle(),this.callbacks.onFreshAuth();return}let n=Math.min(3e3,250*2**Math.min(this.attempts,4),t);this.attempts+=1,this.reconnectTimer=window.setTimeout(()=>{this.reconnectTimer=null,this.callbacks.onReconnect(Math.max(0,this.reconnectDeadline-this.now())),this.connect()},n)}requestCpu(e){let t=this.socket;if(this.role!==`fighter`||this.disposed||this.terminal||t?.readyState!==fR)return!1;try{return t.send(fn(e)),!0}catch{return this.handleClose(t),!1}}chooseStyle(e,t){let n=this.socket;if(this.role!==`fighter`||this.disposed||this.terminal||n?.readyState!==fR)return!1;try{return n.send(un(e,t)),!0}catch{return this.handleClose(n),!1}}get inputLatencyMs(){return this.latencyMs}sequenceOf(e){return this.actionSequences.get(e)??null}observeAcknowledgement(e){if(this.playerId===null)return;let t=e.fighters.find(e=>e.player_id===this.playerId);if(t===void 0||t.last_input_sequence<0)return;let n=this.sentAt.get(t.last_input_sequence);if(n!==void 0){let e=Math.max(0,this.now()-n);this.latencyMs=this.latencyMs===null?e:this.latencyMs*.8+e*.2}for(let e of this.sentAt.keys())e<=t.last_input_sequence&&this.sentAt.delete(e)}sendInput(e,t=!1){return(this.active||t)&&this.transmit(e)}sendCornerChoice(e){return this.resting?this.transmit({moveX:0,moveY:0,defense:`none`,actions:[{kind:e}]}):!1}transmit(e){let t=this.socket;if(this.role!==`fighter`||this.disposed||this.terminal||t?.readyState!==fR)return!1;try{let n=e.actions.slice(0,4);t.send(ln(this.nextSequence,this.serverTick,{...e,actions:n})),this.sentAt.set(this.nextSequence,this.now()),this.sentAt.size>128&&this.sentAt.delete(this.sentAt.keys().next().value);for(let e of n)e.id!==void 0&&this.actionSequences.set(e.id,this.nextSequence);for(;this.actionSequences.size>64;)this.actionSequences.delete(this.actionSequences.keys().next().value);return this.nextSequence+=1,this.lastInputSentAt=this.now(),this.sendTimes.push(this.lastInputSentAt),!0}catch{return this.handleClose(t),!1}}flushInput(){return this.inputSuppressed||document.hidden||!(this.pointerFocus||document.hasFocus())||this.sendsInLastSecond()>=gR||(this.socket?.bufferedAmount??0)>yR||!this.sendInput(this.getInput())?!1:(this.pressWaiting=!1,!0)}startOpponentPause(e){this.clearOpponentPause(!1),this.opponentPaused=!0,this.opponentPauseDeadline=this.now()+e,this.callbacks.onReconnect(e),e>0&&this.scheduleOpponentPauseTick()}scheduleOpponentPauseTick(){let e=Math.max(0,this.opponentPauseDeadline-this.now());e<=0?(this.opponentPauseDeadline=0,this.callbacks.onReconnect(0)):this.opponentPauseTimer=window.setTimeout(()=>{this.opponentPauseTimer=null;let e=Math.max(0,this.opponentPauseDeadline-this.now());this.callbacks.onReconnect(e),e>0?this.scheduleOpponentPauseTick():this.opponentPauseDeadline=0},Math.min(250,e))}clearOpponentPause(e){let t=this.opponentPaused;this.opponentPaused=!1,this.opponentPauseDeadline=0,this.opponentPauseTimer!==null&&(clearTimeout(this.opponentPauseTimer),this.opponentPauseTimer=null),e&&t&&this.callbacks.onReconnect(0)}cancelReconnect(){this.reconnectTimer!==null&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null)}clearTransportReconnect(e){let t=this.reconnectDeadline!==0;this.reconnectDeadline=0,this.cancelReconnect(),e&&t&&this.callbacks.onReconnect(0)}stopInputLifecycle(){this.inputTimer!==null&&(clearInterval(this.inputTimer),this.inputTimer=null),this.heldTimer!==null&&(clearTimeout(this.heldTimer),this.heldTimer=null),this.listenersBound&&=(window.removeEventListener(`blur`,this.onInputLoss),window.removeEventListener(`focus`,this.onInputRegain),window.removeEventListener(`pointerdown`,this.onPagePointer,!0),document.removeEventListener(`visibilitychange`,this.onVisibilityChange),!1)}dispose(){if(this.disposed)return;this.disposed=!0,this.active=!1,this.reconnectTicket=null,this.clearTransportReconnect(!0),this.clearOpponentPause(!0),this.stopInputLifecycle();let e=this.socket;this.socket=null,e!==null&&(e.onopen=e.onmessage=e.onclose=e.onerror=null,e.close(1e3,`teardown`))}},SR={play:`CALLAHAN`,colour:`OKAFOR`,announcer:`RING ANNOUNCER`},CR=.3,wR=.9,TR=.25,ER=2.6,DR=4.5,OR=12,kR=.8,AR=6,jR=9,MR=6,NR=42,PR=8,FR=15,IR=10,LR=[60,480,640],RR=500,zR=.2,BR=.3,VR=120,HR={knockdown:[`Down goes {b}!`,`{a} drops {b}!`,`{b} is down! What a shot from {a}!`,`Down goes {b}! {a} found the chin!`],knockdownAgain:[`{b} is down again!`,`Down for the second time! {b} is in deep trouble!`,`{a} puts {b} down again!`],knockdownCounter:[`Down goes {b}, off a perfect counter!`,`{a} times it, and {b} is down!`],struggle:[`{b} is struggling to get up...`,`{b} is trying to beat the count...`,`Can {b} get up?`],upLate:[`{b} beats the count at {n}!`,`Up at {n}! {b} is still in this!`,`{b} makes it up at {n}, but the legs look heavy.`],upEarly:[`{b} is up at {n}.`,`{b} is back up at the count of {n}.`,`Up at {n}. {b} wants to keep fighting.`],finishCall:[`{a} has to go for the finish now.`,`{b} needs to survive the next minute.`,`{b} has to hold and clear the head.`],hurt:[`{b} is hurt!`,`{a} has {b} in trouble!`,`{b}'s legs just buckled!`,`Big shot! {b} is wobbled!`,`{b} is rocked! Keep the pressure on, {a}!`],hurtBadly:[`{b} is out on their feet!`,`{b} is in all sorts of trouble!`,`{b} is badly hurt!`],guardBreak:[`{a} blasts right through the guard!`,`The guard is gone! {b} can't keep those hands up!`,`{a} breaks the guard down!`],counter:[`What a counter from {a}!`,`{a} times it perfectly! A {punch} on the counter!`,`{b} walked right into that {punch}!`,`Counter {punch} from {a}! Beautiful timing.`],bigShot:[`Big {punch} from {a}!`,`{a} lands a thudding {punch}!`,`That {punch} landed flush!`,`Huge {punch}! {b} felt that one.`],cut:[`{b} is cut over the {side} eye.`,`There's blood now. A cut over {b}'s {side} eye.`,`That's opened a cut over the {side} eye of {b}.`],cutWorse:[`That cut over {b}'s {side} eye is getting worse.`,`The blood is pouring from that {side} eye now.`,`{b} is bleeding badly from the {side} eye.`],cutGushing:[`That cut is gushing now! {b} is covered in it.`,`{b}'s face is a crimson mask, and nobody is stopping this!`],eyeSwelling:[`{b}'s {side} eye is swelling badly.`,`{b} is having trouble seeing out of that {side} eye.`],eyeShut:[`{b}'s {side} eye has closed completely!`,`That {side} eye is shut! {b} can't see them coming from that side.`,`{b} is fighting with one eye now.`],blindSide:[`{a} is working the blind side.`,`{b} never saw that one. Nothing is getting through that {side} eye.`,`Smart from {a}, punching where {b} can't see.`],parried:[`{a} picks it off and {b} is wide open!`,`Beautiful parry from {a}! {b} is off balance.`,`{a} slaps it away and {b} is left stranded.`],bodyCollapse:[`Body shot! {b} is going down!`,`{a} digs to the body and {b} is folding!`,`Oh, that body shot! {b} is in agony!`],knockdownBody:[`Down goes {b} from the body shot!`,`{b} takes a knee! That body shot took everything out!`,`{a} goes downstairs and {b} can't take it!`],cornerCut:[`{a}'s cutman is working on that cut.`,`They're working hard on the cut in {a}'s corner.`],cornerSwelling:[`{a}'s corner is getting the swelling down.`,`Ice and the enswell on that eye in {a}'s corner.`],cornerBreath:[`{a}'s corner wants the breath back first. Big drink of water.`,`{a} is told to breathe and settle down.`],combo:[`A three-punch combination from {a}!`,`{a} puts it together beautifully.`,`Lovely combination from {a}!`],unanswered:[`Five unanswered punches from {a}!`,`{a} is unloading! {b} has to fire back!`,`{b} is just covering up as {a} lets the hands go!`],jab:[`{a}'s jab is finding a home.`,`Stiff jab from {a}, and another.`,`{a} keeps popping that jab in {b}'s face.`],body:[`{a} is going to work on the body.`,`{a} keeps digging to the body.`,`Another one downstairs from {a}.`],payoff:[`The body work is paying off. {b} is slowing down.`,`Those body shots are taking it out of {b}.`,`{a} has invested in the body, and {b} is paying for it now.`],tiring:[`{b} is running on empty.`,`{b} is breathing hard. Those punches have nothing on them.`,`{b} has punched out. The tank is empty.`],takeover:[`{a} is taking over this round.`,`This is all {a} right now.`,`{a} is in complete control.`],clinch:[`{a} ties {b} up.`,`{a} grabs hold.`,`They're tied up in the clinch.`],holdingOn:[`{a} is hurt and holding on!`,`{a} grabs on for dear life!`,`Smart from {a}, holding on to clear the head.`],refBreak:[`The referee breaks them.`,`The referee steps in to separate them.`,`Break! The referee pulls them apart.`],refHit:[`{a} just tagged the referee!`,`Oh no, {a} has caught the referee!`,`That one landed on the referee!`],refDown:[`The referee is down! {a} has killed the referee!`,`Oh my goodness, the referee isn't moving! I think he's dead!`,`{a} has flattened the official for good! Absolute chaos!`],refBledOut:[`The referee has collapsed! He's bled out right there in the ring!`,`The referee goes down! He's lost too much blood!`],noRef:[`Nobody left to break them up!`,`No referee to part them, so they just let go.`],taunt:[`{a} drops the hands and invites {b} in!`,`Showboating from {a}! The crowd loves it.`,`{a} is taunting {b} now!`,`{a} sticks the chin out. Come and get it!`],lowBlow:[`Low blow from {a}! The referee steps in.`,`That's below the belt! {b} is doubled over.`,`{a} goes low, and the referee calls time.`],headbutt:[`Headbutt from {a}! The referee calls time.`,`{a} leads with the head! That's a foul.`],warning:[`A warning for {a}. One more and it costs a point.`,`The referee warns {a}. That can't happen again.`],deduction:[`The referee takes a point from {a}!`,`That costs {a} a point!`,`Point deduction! {a} has been warned enough.`],resume:[`And we're back underway.`,`Time in. Let's box.`],box:[`The referee waves them on. {b} has to survive now.`,`Box! {a} will be looking to finish it.`,`{b} has convinced the referee. Here comes {a}.`],evade:[`{a} slips it! Lovely head movement.`,`{b} misses, and {a} was never there.`,`Great defence from {a}.`],parry:[`{a} picks that off with the gloves.`,`{a} parries it away.`,`Tight defence from {a}.`],whiff:[`{a} misses wildly with the {punch}.`,`Big swing and a miss from {a}.`,`{a} throws everything into that {punch} and hits nothing but air.`],southpaw:[`{a} switches to southpaw.`,`{a} turns southpaw now.`],orthodox:[`{a} goes back to orthodox.`,`{a} switches back to orthodox.`],roundStart:[`Round {r}. Here we go.`,`We're underway in round {r}.`,`Round {r} is on.`],roundEnd:[`That's the bell to end round {r}.`,`The bell ends round {r}.`,`And that's round {r} in the books.`],savedByBell:[`Saved by the bell! {b} was in real trouble.`,`{b} is saved by the bell!`,`The bell rescues {b}!`],finalBell:[`That's the final bell!`,`The final bell! We go to the scorecards.`],summary:[`Round {r}: {a} landed {x} of {y}, {b} {z} of {w}.`],roundFor:[`I had that round for {a}.`,`{a} took that round.`,`That was {a}'s round.`],roundBig:[`The knockdown makes that a big round for {a}.`,`{a} wins that round big with the knockdown.`],roundClose:[`Close round. That one could go either way.`,`Tough round to score.`,`Nothing between them in that round.`],pullingAway:[`{a} is pulling away on the cards.`,`{b} needs something big. {a} is building a lead.`],ko:[`It's all over! {a} wins by knockout!`,`{b} can't beat the count! {a} wins it!`,`That's it! {a} has knocked out {b}!`],flashKo:[`Lights out! {b} is out cold!`,`One punch, and it's over! {a} wins!`,`Good night! {a} ends it with one shot!`],tko:[`Three knockdowns, and it's over! {a} wins!`,`The referee waves it off! {a} wins by stoppage!`],disqualified:[`{b} is disqualified!`,`That's it! {b} has been thrown out!`],forfeit:[`{b} has left the ring. {a} wins by forfeit.`],replay:[`Here it is again.`,`Let's see that one more time.`,`Watch {a} set it up...`],injBrokenNose:[`{b}'s nose is now mostly a suggestion.`,`That nose is broken. It is pointing at the exit, and so should {b}.`,`{a} has moved {b}'s nose to a different part of his face.`],injBrokenJaw:[`{b}'s jaw is broken. It is hanging off his face like a drawer left open.`,`That jaw has gone sideways. {b} will be eating through a straw, if he lives.`,`You can hear {b}'s jaw clicking from up here. That is not a good sound.`],injJawTorn:[`That is his jaw in the third row.`,`{a} has torn {b}'s jaw clean off! Somebody at ringside just caught a souvenir.`,`{b} has no lower jaw. His tongue is just hanging there like a necktie.`],injEyeOut:[`{b}'s {side} eye is out of his head! It is swinging on the nerve like a yo-yo.`,`The {side} eye has popped its socket. It is looking at {b}'s own cheek.`,`{a} has punched {b}'s {side} eye clean out. He can see his own shoes with it.`],injEarTorn:[`That is {b}'s {side} ear on the canvas. Somebody just trod on it.`,`{a} has taken the {side} ear clean off. {b} did not want to hear this anyway.`,`The {side} ear is gone. I think it is stuck to {a}'s glove.`],injFaceFlayed:[`The {side} half of {b}'s face has come off like a wet sock.`,`I can see {b}'s teeth through his {side} cheek. All of them.`,`{a} has peeled {b}'s face. That is muscle. That is bone. That is my lunch coming back up.`],injSkull:[`{b}'s skull has split open. That is his brain. I can see it thinking.`,`The top of {b}'s head is open like a boiled egg, and he is still standing.`,`That is brain, folks. One more upstairs and {b} forgets everything, permanently.`],injShoulder:[`{b}'s {side} shoulder has popped out. The arm is hanging like a coat on a hook.`,`The {side} shoulder is out of its socket. It is not supposed to be down there.`,`{b}'s {side} arm has come unplugged. His corner can shove it back in at the bell.`],injArmBroken:[`{b}'s {side} arm has snapped! The bone is out and waving at the crowd.`,`That {side} elbow now bends both ways. It is only meant to bend the one.`,`Compound fracture! {b}'s {side} forearm is dangling by the meat.`],injForearmSevered:[`{b}'s {side} forearm is off! The glove is still making a fist over there on the canvas.`,`{a} has taken the {side} arm off at the elbow, and {b} is punching with the stump!`,`There goes the {side} forearm. Somebody put it on ice. Actually, do not bother.`],injArmTorn:[`{a} has ripped {b}'s {side} arm off at the shoulder! It is on the canvas, still twitching!`,`The whole {side} arm is gone. That shoulder is a fire hose.`,`{b} has lost the {side} arm. The judges will take that into account.`],injRibs:[`{b}'s {side} ribs have caved in. One is sticking out of him like a coat hanger.`,`Those {side} ribs are through the skin. You can count them. I make it four.`,`The {side} side of {b} just folded like a lawn chair.`],injLiver:[`That is the liver, and it has burst. {b} is about to show us everything he ate today.`,`{b}'s liver just exploded inside him. He is turning a colour I have only seen on old fruit.`,`Liver shot, and it popped. {b} is filling up with blood on the inside.`],injDisemboweled:[`{b}'s belly is open and his guts are on the canvas! He is treading on them!`,`He is holding his intestines in with his glove and he still wants to fight.`,`{a} has unzipped {b} from hip to hip. That is twenty feet of intestine, and it is all coming out.`],injKnee:[`{b}'s {side} knee is bending the wrong way. Knees should not have a reverse gear.`,`The {side} knee has blown apart. I can see the kneecap. It is over by the ropes.`,`{b}'s {side} leg is held on by skin and optimism.`],ghastly:[`I would stop this fight. Nobody is going to stop this fight.`,`In any other sport that is a penalty.`,`{b} will feel that in the morning, if he gets one.`,`There are children watching this. They are cheering.`],shoulderBack:[`{b}'s corner has shoved the {side} shoulder back in. You could hear it from the cheap seats.`,`The {side} shoulder is back in its socket. {b} screamed, and then he said thank you.`,`They have popped {b}'s {side} shoulder back in. Good as new. It is not, but good as new.`],vomit:[`{a} is throwing up blood and bile all over the canvas. Mind your step.`,`There it goes. {a} is vomiting something black. That is the liver talking.`,`{a} is sick down his own chest. Blood, bile, and I think that was a tooth.`],finishHim:[`{b} is out on his feet and nobody is stopping it! Finish him!`,`{b} is just standing there, dead behind the eyes. {a} can do anything he likes with him.`,`This is it. {a} gets one free punch, and {b} will not be getting up from it. Ever.`],armless:[`{a} is trying to punch with arms he no longer has.`,`{a} just threw a punch. I will let somebody else tell him.`,`No arms, and {a} is still swinging. You have to admire it. You do not have to watch it.`,`{a} is waving two stumps at him. That is not a guard. That is a cry for help.`],fatEyesOut:[`{a} has punched both of {b}'s eyes out through the back of his head!`,`Two eyes, one punch! They are rolling across the ring. One of them is looking at me.`,`{b}'s eyes are out, and so is {b}. There is daylight coming through his face.`],fatHeadBurst:[`{b}'s head has exploded! It is just gone! It is all over the first three rows!`,`{a} hit him so hard his head burst like a dropped melon. The front row is wearing {b}.`],fatDecapitation:[`{a} has taken {b}'s head clean off! It is in the crowd! Somebody is holding it up!`,`Off comes the head! The body is still standing there, looking for it.`],fatSpineRip:[`The uppercut takes {b}'s head off, and his spine comes with it! All of it! Like boning a fish!`,`{b}'s head is in the air with the whole spine dangling off it. I have never seen that. Nobody has.`],fatHeartPunch:[`{a}'s fist has gone straight through {b}'s chest! That is his heart on the canvas, and it is still beating!`,`In through the chest and out the back! {a} is wearing {b} like a bracelet.`],fatGutting:[`{a} has emptied {b} onto the canvas! Everything he kept inside is now outside!`,`One straight to the gut and it all falls out. Liver, stomach, the lot. {b} is hollow.`],fatBisection:[`{a} has torn {b} in half at the waist! The legs are still standing! The top half is trying to crawl away!`,`{b} is in two pieces. The judges will have to score each half separately.`],fatTotalGib:[`{b} has exploded! There is nothing left! It is raining {b}!`,`{a} hit him and he just came apart. There are bits of {b} on the lights. There is a foot in my coffee.`],deathBledOut:[`{b} has bled to death, right there in the ring. There is more of him on the canvas than in him.`,`{b} is gone. He ran out of blood. You do need some.`,`And {b} just drops. Bled out. They will need a mop and a priest.`],deathBrain:[`That was the last of {b}'s brain, and {a} has punched it into soup. He is dead before he lands.`,`{b} is dead. His brain has left through the hole in his skull.`,`{b} is dead. You cannot fight without a brain. Plenty have tried.`],deathGutted:[`{b} is dead. {a} has punched what was left of his insides clean out of him.`,`That body shot went in one side and out the other. {b} is done, and I mean buried.`,`{b} has been gutted like a fish, and he has died like one, flapping.`],deathFatality:[`He is dead. I would like that on the record. {b} is extremely dead.`,`I have been doing this thirty years. I am going to need a different job.`,`Somebody tell {b}'s corner they can stop shouting advice.`],doubleDeath:[`They are both dead. Both of them. I do not know who to interview.`,`Two fighters, no survivors. The judges are going to hate this.`,`{a} and {b} have killed each other. Call it a draw. Call somebody.`]},UR={ko:`ko`,flash_ko:`flashKo`,tko:`tko`,disqualification:`disqualified`,forfeit:`forfeit`},WR={broken_nose:`injBrokenNose`,broken_jaw:`injBrokenJaw`,jaw_torn:`injJawTorn`,eye_out:`injEyeOut`,ear_torn:`injEarTorn`,face_flayed:`injFaceFlayed`,skull_fractured:`injSkull`,shoulder_dislocated:`injShoulder`,arm_broken:`injArmBroken`,forearm_severed:`injForearmSevered`,arm_torn:`injArmTorn`,ribs_broken:`injRibs`,liver_ruptured:`injLiver`,disemboweled:`injDisemboweled`,knee_blown:`injKnee`},GR={eyes_out:`fatEyesOut`,head_burst:`fatHeadBurst`,decapitation:`fatDecapitation`,spine_rip:`fatSpineRip`,heart_punch:`fatHeartPunch`,gutting:`fatGutting`,bisection:`fatBisection`,total_gib:`fatTotalGib`},KR={bled_out:`deathBledOut`,brain:`deathBrain`,gutted:`deathGutted`},qR=new Set([`injJawTorn`,`injEyeOut`,`injFaceFlayed`,`injSkull`,`injForearmSevered`,`injArmTorn`,`injDisemboweled`,`finishHim`,`fatEyesOut`,`fatHeadBurst`,`fatDecapitation`,`fatSpineRip`,`fatHeartPunch`,`fatGutting`,`fatBisection`,`fatTotalGib`,`deathBledOut`,`deathBrain`,`deathGutted`,`deathFatality`,`doubleDeath`]),JR={struggle:new Set([`knockdown`]),finishHim:new Set([`finish`])},YR=3.2,XR=4,ZR=`struggle`,QR=new Set([`countdown`]),$R=3.2,ez=new Set([`knockdown`,`knockdownAgain`,`knockdownCounter`,`knockdownBody`,`bodyCollapse`,`upLate`,`upEarly`,`hurt`,`hurtBadly`,`lowBlow`,`headbutt`,`deduction`,`ko`,`flashKo`,`tko`,`disqualified`,`forfeit`,`replay`,`refDown`,`refBledOut`,`savedByBell`,`finalBell`,`roundEnd`,`roundStart`,`injBrokenNose`,`injBrokenJaw`,`injEarTorn`,`injShoulder`,`injArmBroken`,`injRibs`,`injLiver`,`injKnee`,...qR]),tz=new Set([`lowBlow`,`headbutt`,`warning`,`deduction`,`box`,`tko`]),nz={fatEyesOut:99,fatHeadBurst:99,fatDecapitation:99,fatSpineRip:99,fatHeartPunch:99,fatGutting:99,fatBisection:99,fatTotalGib:99,doubleDeath:99,deathBledOut:98,deathBrain:98,deathGutted:98,deathFatality:98,finishHim:97,injJawTorn:96,injEyeOut:96,injFaceFlayed:96,injSkull:96,injForearmSevered:96,injArmTorn:96,injDisemboweled:96,injBrokenNose:85,injBrokenJaw:85,injEarTorn:85,injShoulder:85,injArmBroken:85,injRibs:85,injLiver:85,injKnee:85,vomit:66,shoulderBack:47,ghastly:44,armless:40,ko:98,flashKo:98,tko:98,disqualified:98,forfeit:98,refDown:97,refBledOut:97,refHit:72,knockdown:95,knockdownAgain:95,knockdownCounter:95,knockdownBody:95,bodyCollapse:86,upLate:90,upEarly:90,replay:88,deduction:84,lowBlow:82,headbutt:82,hurt:80,box:78,hurtBadly:80,holdingOn:76,savedByBell:74,finalBell:72,struggle:70,guardBreak:65,eyeShut:62,counter:60,parried:58,bigShot:55,roundEnd:52,cut:50,cutWorse:50,summary:50,cutGushing:48,eyeSwelling:48,cornerCut:47,cornerSwelling:47,cornerBreath:47,blindSide:42,roundFor:46,roundBig:46,roundClose:46,pullingAway:46,unanswered:45,finishCall:44,warning:42,combo:40,payoff:40,takeover:38,body:35,jab:30,tiring:30,roundStart:28,taunt:25,parry:22,evade:20,clinch:20,whiff:18,refBreak:12,noRef:12,southpaw:10,orthodox:10,resume:10},rz={finishCall:`colour`,payoff:`colour`,tiring:`colour`,takeover:`colour`,holdingOn:`colour`,taunt:`colour`,parry:`colour`,evade:`colour`,warning:`colour`,blindSide:`colour`,cornerCut:`colour`,cornerSwelling:`colour`,cornerBreath:`colour`,roundFor:`colour`,roundBig:`colour`,roundClose:`colour`,pullingAway:`colour`,cutGushing:`colour`,noRef:`colour`,jab:`colour`,ghastly:`colour`,shoulderBack:`colour`,vomit:`colour`,deathFatality:`colour`,doubleDeath:`colour`,armless:`colour`},iz={combo:6,jab:20,body:18,evade:12,parry:15,parried:8,blindSide:20,whiff:12,clinch:15,refBreak:20,taunt:10,southpaw:15,orthodox:15,bigShot:4,counter:3,unanswered:15,takeover:25,vomit:20,ghastly:14,armless:12},az=[`zero`,`one`,`two`,`three`,`four`,`five`,`six`,`seven`,`eight`,`nine`,`ten`,`eleven`,`twelve`,`thirteen`,`fourteen`,`fifteen`],oz=e=>az[e]??String(e),sz=[...az,`sixteen`,`seventeen`,`eighteen`,`nineteen`],cz=[``,``,`twenty`,`thirty`,`forty`,`fifty`,`sixty`,`seventy`,`eighty`,`ninety`];function lz(e){return!Number.isInteger(e)||e<0||e>=1e3?String(e):e<20?sz[e]:e<100?`${cz[Math.floor(e/10)]}${e%10==0?``:`-${sz[e%10]}`}`:`${sz[Math.floor(e/100)]} hundred${e%100==0?``:` and ${lz(e%100)}`}`}function uz(e,t=!0){if(_t(e))return`making a pro debut`;let n=e.draws>0?`${lz(e.wins)}, ${lz(e.losses)} and ${lz(e.draws)}`:`${lz(e.wins)} and ${e.losses===0?`oh`:lz(e.losses)}`;return t&&e.knockouts>0?`${n}, ${lz(e.knockouts)} by knockout`:n}function dz(e){return .85+e.length*.077+(e.split(`...`).length-1)*.35}var fz=.3;function pz(e,t){let n=t-fz,r=[e=>[e.record===void 0?null:uz(e.record),yn(e.style)],e=>[yn(e.style)],()=>[]];for(let t of r){let r=e.map((e,n)=>{let r=n===0?`In the blue corner`:`And in the red corner`,i=t(e).filter(e=>e!==null);return i.length===0?`${r}, ${e.name}!`:`${r}, ${i.join(`, `)}... ${e.name}!`});if(r.reduce((e,t)=>e+dz(t),0)<=n)return r}let i=`${e[0].name}... versus ${e[1].name}!`;return dz(i)<=n?[i]:[]}function mz(e,t){let n=e.replace(/\{(a|b|n|side|punch|r|x|y|z|w)\}/gu,(e,n)=>String(t[n]??``));return n.charAt(0).toUpperCase()+n.slice(1)}var hz=(e,t)=>{let n=Math.imul((e|0)^Math.imul(t,2654435761),2246822507);return n^=n>>>13,n=Math.imul(n,3266489909),(n^n>>>16)>>>0};function gz(e){let t=e.split(`:`);return[t.at(-2),t.at(-1)]}function _z(e,t){let[n=`punch`,r=`head`]=gz(e),i=t!==void 0&&t.action===n?t.action_hand:null,a=n===`jab`?`jab`:n===`straight`?i===null?`straight`:`${i} hand`:i===null?n:`${i} ${n}`;return r===`body`?`${a} to the body`:a}function vz(e){if(e.phase===`knockdown`){let t=Math.max(...e.fighters.map(e=>e.get_up_count));return Math.min(1,.3+t*.07)}if(e.phase===`finish`)return 1;if(e.phase!==`fight`)return 0;let t=0;for(let[n,r]of e.fighters.entries()){let i=e.fighters[1-n];r.is_downed||(r.stunned_ticks>0?t=Math.max(t,.75):r.poise<150&&(t=Math.max(t,.45)),(Math.max(Math.abs(r.x),Math.abs(r.y))>400||Math.abs(r.x)+Math.abs(r.y)>640)&&Math.hypot(r.x-i.x,r.y-i.y)<150&&(t=Math.max(t,.4)))}return t}var yz=()=>({thrown:0,landed:0,damage:0,knockdowns:0,body:0}),bz=()=>({jabs:[],window:[],evasions:[],run:0,runTick:-1e3,unanswered:0,stunnedAt:-1e3,knockedDownAt:-1e5,lowSince:null,tiredRound:0,takeoverRound:0,payoffRound:0,cutMarks:[0,0],eyeShut:[!1,!1],eyeSwelling:[!1,!1],rounds:0}),xz=class{hooks;queue=[];showing=null;lastEnd=-1/0;lastChoice=new Map;cooldowns=new Map;notes=new Map;tallies=new Map;players={};fighters=null;tickRate=30;introduced=!1;lastPhase=null;round=0;roundLength=null;fightRemaining=0;struggleCalled=-1;lastKnockdown=null;refereeDead=!1;final=null;verdictGiven=!1;resultCalled=!1;deaths=new Map;caption={line:null,opacity:0,entering:0};constructor(e={}){this.hooks=e}observe(e,t,n,r,i){this.players=n,this.fighters=e.fighters,this.refereeDead=e.referee?.alive===!1,this.tickRate=r,this.trackClock(e),this.introduced||(this.introduced=!0,e.phase===`countdown`&&e.round_number===1&&this.introduce(e,i));let a=t.find(e=>e.kind===`result`)??null;for(let n of t)this.consider(n,e,a,i);this.inspect(e,i),this.lastPhase=e.phase,this.dropOutOfPhase(e.phase,i)}dropOutOfPhase(e,t){for(let t=this.queue.length-1;t>=0;--t){let n=this.queue[t].phases;n!==null&&!n.has(e)&&this.queue.splice(t,1)}let n=this.showing;n!==null&&n.phases!==null&&!n.phases.has(e)&&(n.end=Math.min(n.end,t+TR))}finish(e,t,n,r){this.players=t,this.final=e,n&&this.deaths.size<2&&(this.enqueue(this.announcement(`Ladies and gentlemen, we go to the scorecards.`,{kicker:`LADIES AND GENTLEMEN`,title:`WE GO TO THE SCORECARDS`,detail:``,corner:null},MR,99),r,null,30),this.hooks.speak?.([`Ladies and gentlemen, we go to the scorecards.`])),e.method===`forfeit`&&!this.resultCalled&&e.winner_id!==null&&(this.resultCalled=!0,this.say(`forfeit`,e.round,r,{a:this.nameOf(e.winner_id),b:this.nameOf(this.otherId(e.winner_id))},`result`,0))}verdict(e){let t=this.final;if(t===null||this.verdictGiven)return;this.verdictGiven=!0;let n=Xr(t);if(t.winner_id===null&&this.deaths.size>=2){let n=`Ladies and gentlemen, both fighters are dead. There is no winner.`;this.enqueue(this.announcement(n,{kicker:`ROUND ${t.round}`,title:`DOUBLE DEATH`,detail:`NO SURVIVORS`,corner:null},jR,100),e,`verdict`,30),this.hooks.speak?.([n]);return}if(t.winner_id===null){let r=`After ${oz(t.round)} rounds, this bout is scored a ${n.toLowerCase()}.`;this.enqueue(this.announcement(r,{kicker:`AFTER ${oz(t.round).toUpperCase()} ROUNDS`,title:n,detail:``,corner:null},jR,100),e,`verdict`,30),this.hooks.speak?.([r]);return}let r=this.nameOf(t.winner_id),i=n.toLowerCase();this.enqueue(this.announcement(`The winner, by ${i}: ${r}!`,{kicker:`THE WINNER, BY ${n}`,title:r.toUpperCase(),detail:``,corner:this.seatOf(t.winner_id)},jR,100),e,`verdict`,30),this.hooks.speak?.([`And the winner, by ${i}... ${r}!`])}resultShown(e){let t=this.final;if(t===null||this.verdictGiven)return;if(t.method===`decision`||t.method===`draw`){this.verdict(e);return}if(this.verdictGiven=!0,t.winner_id===null)return;let n=this.nameOf(t.winner_id),r=this.otherId(t.winner_id),i=t.method===`death`,a=i&&r!==null?this.deaths.get(r)??null:null,o=i?a!==null&&ot(a)!==null?`fatality`:`death`:{ko:`knockout`,flash_ko:`knockout`,tko:`technical knockout`,disqualification:`disqualification`,forfeit:`forfeit`}[t.method]??t.method.replaceAll(`_`,` `),s=this.stoppageClock(t.round),c=t.method===`ko`||t.method===`flash_ko`||t.method===`tko`||i,l=c&&s!==null?`${i?`DEAD`:`STOPPED`} AT ${s} OF ROUND ${t.round}`:`ROUND ${t.round}`,u=c&&s!==null?`${n} wins by ${o} at ${s} of round ${t.round}.`:`${n} wins by ${o} in round ${t.round}.`,d=`WINS BY ${o.toUpperCase()}${a===null?``:` · ${st(a)}`}`;this.enqueue(this.announcement(u,{kicker:l,title:n.toUpperCase(),detail:d,corner:this.seatOf(t.winner_id)},jR,100),e,`verdict`,30);let f=i?`${this.nameOf(r)} is dead`:this.refereeDead?`With the referee dead on the canvas, it is over`:`The referee stops the contest`,p=c&&s!==null?`${f} at ${s} of round ${oz(t.round)}. `:``;this.hooks.speak?.([`${p}Your winner, by ${o}... ${n}!`])}replay(e,t=null){let n=t?.kind===`referee_down`?{actor:t.actor_id,target:null,tick:t.tick}:this.lastKnockdown;this.say(`replay`,n?.tick??0,e,{a:this.nameOf(n?.actor??null),b:this.nameOf(n?.target??null)},`replay`,.6,6)}current(e){for(let t=this.queue.length-1;t>=0;--t)this.queue[t].expires<=e&&this.queue.splice(t,1);this.showing!==null&&e>=this.showing.end&&(this.lastEnd=this.showing.end,this.showing=null);let t=null;for(let n of this.queue)n.at>e||(t===null||n.line.priority>t.line.priority||n.line.priority===t.line.priority&&n.at=this.lastEnd+wR:t.line.urgent&&t.line.priority>n.line.priority&&e-n.start>=kR)&&(this.queue.splice(this.queue.indexOf(t),1),this.showing={line:t.line,start:e,end:e+t.line.hold,moment:t.moment,phases:t.phases},t.spoken!==null&&this.hooks.speak?.([t.spoken]))}let n=this.showing;return n===null?null:(this.caption.line=n.line,this.caption.opacity=Math.max(0,Math.min(1,(e-n.start)/TR,(n.end-e)/TR)),this.caption.entering=Math.max(0,1-(e-n.start)/TR),this.caption)}trackClock(e){e.phase===`fight`&&((this.lastPhase===`countdown`||this.lastPhase===`rest`)&&(this.roundLength={round:e.round_number,ticks:e.phase_ticks_remaining+1}),this.fightRemaining=e.phase_ticks_remaining),e.round_number!==this.round&&(this.round=e.round_number,this.tallies.clear())}stoppageClock(e){let t=this.roundLength;if(t===null||t.round!==e)return null;let n=Math.max(0,Math.floor((t.ticks-this.fightRemaining)/this.tickRate));return`${Math.floor(n/60)}:${String(n%60).padStart(2,`0`)}`}introduce(e,t){let n=e.phase_ticks_remaining/this.tickRate;if(n<1.2)return;let r=e.fighters.map(e=>this.nameOf(e.player_id)),i=e.fighters.map((e,t)=>({name:r[t],record:this.players[e.player_id]?.record,style:e.style})),a=pz([i[0],i[1]],n),o=Math.max(1.4,a.length===2?dz(a[0]):n/2),s=[o,Math.max(1.4,n-o)];for(let n of[0,1]){let i=n===0?`blue`:`red`,c=this.players[e.fighters[n].player_id],l=vn(e.fighters[n].style),u=c===void 0?``:`${l===null?``:`${l} · `}${c.record===void 0?``:`${vt(c.record)} · `}${c.cpu===!0?`COMPUTER`:`RATED ${c.rating}`}`;this.enqueue(this.announcement(`In the ${i} corner, ${r[n]}.`,{kicker:`IN THE ${i.toUpperCase()} CORNER`,title:r[n].toUpperCase(),detail:u,corner:n},s[n],97),t+n*o,null,30,QR,a[n]??null)}}consider(e,t,n,r){let i=e.actor_id,a=e.target_id,o=`${e.tick}:${a??i??``}`,s={a:this.nameOf(i),b:this.nameOf(a)};switch(e.kind){case`punch_start`:i!==null&&(this.tally(i).thrown+=1);return;case`hit`:case`counter_hit`:i!==null&&a!==null&&!Jr(e,t.events)&&this.landed(e,i,a,t,r);return;case`stun`:{if(a===null)return;this.notesFor(a).stunnedAt=e.tick;let t=this.fighter(a),n=t!==void 0&&(t.poise=ee-6);this.say(n?`hurtBadly`:`hurt`,e.event_id,r,s,o);return}case`guard_break`:this.say(`guardBreak`,e.event_id,r,s,o);return;case`knockdown`:{if(a===null||(this.lastKnockdown={actor:i,target:a,tick:e.tick},this.notesFor(a).knockedDownAt=e.tick,i!==null&&(this.tally(i).knockdowns+=1),n!==null))return;let c=t.events.some(t=>t.kind===`counter_hit`&&t.tick===e.tick&&t.target_id===a);this.say(e.amount>=2?`knockdownAgain`:e.detail===`body`?`knockdownBody`:c?`knockdownCounter`:`knockdown`,e.event_id,r,s,o);return}case`body_collapse`:this.say(`bodyCollapse`,e.event_id,r,s,o);return;case`parry`:this.say(`parried`,e.event_id,r,s,o,CR,void 0,i);return;case`eye_shut`:if(a===null||e.detail!==`left`&&e.detail!==`right`)return;this.notesFor(a).eyeShut[e.detail===`left`?0:1]=!0,this.say(`eyeShut`,e.event_id,r,{...s,side:e.detail},o);return;case`blind_side`:if(e.detail!==`left`&&e.detail!==`right`)return;this.say(`blindSide`,e.event_id,r,{...s,side:e.detail},null,CR,void 0,i);return;case`corner`:{let t=e.detail===`cut`?`cornerCut`:e.detail===`swelling`?`cornerSwelling`:e.detail===`breath`?`cornerBreath`:null;t!==null&&this.say(t,e.event_id,r,s,null,CR,void 0,i);return}case`count`:e.amount>=6&&this.struggleCalled!==this.lastKnockdown?.tick&&this.fighter(a)?.is_downed===!0&&(this.struggleCalled=this.lastKnockdown?.tick??e.tick,this.say(`struggle`,e.event_id,r,{a:this.nameOf(this.otherId(a)),b:this.nameOf(a)},ZR));return;case`get_up`:{for(let e=this.queue.length-1;e>=0;--e)this.queue[e].moment===ZR&&this.queue.splice(e,1);this.showing?.moment===ZR&&(this.showing.end=Math.min(this.showing.end,r+TR));let t={a:this.nameOf(this.otherId(i)),b:this.nameOf(i),n:oz(e.amount)};this.say(e.amount>=8?`upLate`:`upEarly`,e.event_id,r,t,o),this.say(`finishCall`,e.event_id,r,t,null,3.4,4);return}case`perfect_block`:this.say(`parry`,e.event_id,r,s,o,CR,void 0,i);return;case`evade`:{if(i===null)return;let t=this.notesFor(i);t.evasions=t.evasions.filter(t=>t>e.tick-IR*this.tickRate),t.evasions.push(e.tick),(this.fighter(a)?.action_power===`power`||t.evasions.length>=3)&&this.say(`evade`,e.event_id,r,s,o,CR,void 0,i)&&(t.evasions.length=0);return}case`whiff`:{let t=this.fighter(i);if(t?.action_power!==`power`||t.action===null)return;this.say(`whiff`,e.event_id,r,{...s,punch:_z(`${t.action}:${t.action_target??`head`}`,t)},o,CR,void 0,i);return}case`clinch`:{if(i===null)return;let t=this.fighter(i),n=e.tick-this.notesFor(i).stunnedAt<=3*this.tickRate||t!==void 0&&t.poise<150;this.say(n?`holdingOn`:`clinch`,e.event_id,r,s,o,CR,void 0,i);return}case`referee_break`:this.say(`refBreak`,e.event_id,r,s,null,CR,void 0,`referee`);return;case`referee_hit`:this.say(`refHit`,e.event_id,r,s,o,CR,void 0,i);return;case`referee_down`:this.say(e.action_id===null?`refBledOut`:`refDown`,e.event_id,r,s,o);return;case`clinch_break`:this.say(`noRef`,e.event_id,r,s,null,CR);return;case`taunt`:this.say(`taunt`,e.event_id,r,{a:s.a,b:this.nameOf(this.otherId(i))},o,CR,void 0,i);return;case`foul`:this.say(e.detail===`headbutt`?`headbutt`:`lowBlow`,e.event_id,r,s,o),this.fighter(i)?.warnings===1&&this.say(`warning`,e.event_id,r,s,null,3.6,4);return;case`point_deduction`:this.say(`deduction`,e.event_id,r,s,`deduction:${e.tick}`);return;case`resume`:this.say(`resume`,e.event_id,r,s,null);return;case`box`:this.say(`box`,e.event_id,r,{a:this.nameOf(this.otherId(a)),b:this.nameOf(a)},o);return;case`stance`:this.say(e.detail===`southpaw`?`southpaw`:`orthodox`,e.event_id,r,s,null,CR,void 0,i);return;case`exhausted`:i!==null&&this.tired(i,e.event_id,r);return;case`bell`:e.detail===`round_start`?(this.tallies.clear(),t.round_number>=2&&this.say(`roundStart`,e.event_id,r,{r:t.round_number},null,CR,$R)):e.detail===`round_end`&&this.roundEnded(e,t,n,r);return;case`injury`:{let n=He.find(t=>t===e.detail);if(a===null||n===void 0)return;let i=WR[$e(n)],c={...s,side:Qe(n)??``};!qR.has(i)&&t.events.some(t=>t.kind===`knockdown`&&t.tick===e.tick&&t.target_id===a)?this.sayAt(i,e.event_id,r+YR,c,8):this.say(i,e.event_id,r,c,o),qR.has(i)&&this.say(`ghastly`,e.event_id,r,s,null,3.8,4);return}case`injury_healed`:{let t=He.find(t=>t===e.detail);if(t===void 0||$e(t)!==`shoulder_dislocated`)return;this.sayAt(`shoulderBack`,e.event_id,r+XR,{b:this.nameOf(a??i),side:Qe(t)??``},9);return}case`armless`:this.say(`armless`,e.event_id,r,s,null,CR,void 0,i);return;case`vomit`:this.say(`vomit`,e.event_id,r,{a:this.nameOf(i??a)},o,CR,void 0,i??a);return;case`finish_him`:this.say(`finishHim`,e.event_id,r,s,o,0);return;case`fatality`:{let t=We.find(t=>t===e.detail);t!==void 0&&this.say(GR[t],e.event_id,r,s,o,0);return}case`death`:{let t=at(e.detail);if(t===null||a===null)return;this.deaths.set(a,t);let n={a:this.nameOf(i??this.otherId(a)),b:s.b};this.deaths.size>=2?this.say(`doubleDeath`,e.event_id,r,n,null,.6):t===`bled_out`||t===`brain`||t===`gutted`?this.say(KR[t],e.event_id,r,n,o,0):this.say(`deathFatality`,e.event_id,r,n,null,3.6);return}case`result`:this.resulted(e,r);return;default:return}}landed(e,t,n,r,i){let[a,o]=gz(e.detail),s=this.tally(t);s.landed+=1,s.damage+=e.amount,o===`body`&&(s.body+=1);let c=this.notesFor(t),l=this.notesFor(n);l.run=0,l.unanswered=0,c.run=e.tick-c.runTick<=NR?c.run+1:1,c.runTick=e.tick,c.unanswered+=1,c.window=c.window.filter(t=>t>e.tick-FR*this.tickRate),c.window.push(e.tick);let u=`${e.tick}:${n}`,d=r.fighters.find(e=>e.player_id===t),f={a:this.nameOf(t),b:this.nameOf(n),punch:_z(e.detail,d)},p=d?.action_power===`power`&&d.action===a;if(e.kind===`counter_hit`&&e.amount>=40?this.say(`counter`,e.event_id,i,f,u,CR,void 0,t):(e.amount>=85||p&&o===`head`&&e.amount>=60)&&this.say(`bigShot`,e.event_id,i,f,u,CR,void 0,t),c.unanswered===5?this.say(`unanswered`,e.event_id,i,f,u,CR,void 0,t):c.run===3&&this.say(`combo`,e.event_id,i,f,u,CR,void 0,t),a===`jab`&&(c.jabs=c.jabs.filter(t=>t>e.tick-PR*this.tickRate),c.jabs.push(e.tick),c.jabs.length>=3&&this.say(`jab`,e.event_id,i,f,null,CR,void 0,t)&&(c.jabs.length=0)),o===`body`){let a=this.fighter(n);a!==void 0&&s.body>=5&&a.staminat>e.tick-FR*this.tickRate).length;c.window.length>=7&&m<=2&&c.takeoverRound!==r.round_number&&(c.takeoverRound=r.round_number,this.say(`takeover`,e.event_id,i,f,null,CR,void 0,t)&&this.hooks.cue?.(`chant`))}roundEnded(e,t,n,r){let i=t.round_number;if(n!==null){(n.detail===`decision`||n.detail===`draw`)&&this.say(`finalBell`,e.event_id,r,{},`bell`,CR,$R);return}let a=t.fighters.find(t=>{let n=this.notesFor(t.player_id);return t.stunned_ticks>0||t.poise({id:e.player_id,tally:this.tally(e.player_id)})),[c,l]=o.tally.landed>=s.tally.landed?[o,s]:[s,o];c.tally.thrown+l.tally.thrown>0&&this.sayAt(`summary`,e.event_id,r+2.4,{r:i,a:this.nameOf(c.id),x:c.tally.landed,y:c.tally.thrown,b:this.nameOf(l.id),z:l.tally.landed,w:l.tally.thrown},5);let u=(o.tally.knockdowns-s.tally.knockdowns)*1e3+(o.tally.damage-s.tally.damage)+6*(o.tally.landed-s.tally.landed),d=Math.abs(u)0?o:s;d!==null&&(this.notesFor(d.id).rounds+=1);let f=d===null?null:d===o?s:o,p=d===null||f===null?0:this.notesFor(d.id).rounds-this.notesFor(f.id).rounds,m=d===null?`roundClose`:o.tally.knockdowns===s.tally.knockdowns?i>=2&&p>=2?`pullingAway`:`roundFor`:`roundBig`;this.sayAt(m,e.event_id,r+6.4,{a:this.nameOf(d?.id??null),b:this.nameOf(f?.id??null)},5)}resulted(e,t){let n=UR[e.detail];if(n===void 0||this.resultCalled)return;this.resultCalled=!0;let r=e.actor_id;this.say(n,e.event_id,t,{a:this.nameOf(r),b:this.nameOf(this.otherId(r))},`result`,0)}inspect(e,t){if(e.phase===`fight`)for(let n of e.fighters){let r=this.notesFor(n.player_id),i={a:this.nameOf(this.otherId(n.player_id)),b:this.nameOf(n.player_id)};for(let[a,o]of[[0,`left`],[1,`right`]]){let s=a===0?n.trauma.left_cut:n.trauma.right_cut,c=r.cutMarks[a];c=LR[c]&&(r.cutMarks[a]=LR.filter(e=>s>=e).length,this.say(c===0?`cut`:c===1?`cutWorse`:`cutGushing`,e.tick+a,t,{...i,side:o},null));let l=a===0?n.trauma.left_eye:n.trauma.right_eye;!r.eyeSwelling[a]&&!r.eyeShut[a]&&l>=RR&&(r.eyeSwelling[a]=!0,this.say(`eyeSwelling`,e.tick+a,t,{...i,side:o},null))}let a=n.stamina/Math.max(1,n.maximum_stamina);a=2*this.tickRate&&this.tired(n.player_id,e.tick,t)):a>=BR&&(r.lowSince=null)}}tired(e,t,n){let r=this.notesFor(e);r.tiredRound!==this.round&&(r.tiredRound=this.round,this.say(`tiring`,t,n,{a:this.nameOf(this.otherId(e)),b:this.nameOf(e)},null))}say(e,t,n,r,i,a=CR,o,s){let c=iz[e],l=`${e}:${s??``}`;if(c!==void 0){if(n<(this.cooldowns.get(l)??-1/0))return!1;this.cooldowns.set(l,n+c)}let u=mz(this.choose(e,t),r),d={speaker:rz[e]??`play`,text:u,priority:nz[e],urgent:ez.has(e),hold:Sz(u),card:null},f=qR.has(e);return this.enqueue(d,n+a,i,o??(f?OR:void 0),JR[e]??null,null,f)}sayAt(e,t,n,r,i){let a=mz(this.choose(e,t),r);this.enqueue({speaker:rz[e]??`play`,text:a,priority:nz[e],urgent:ez.has(e),hold:Sz(a),card:null},n,null,i)}announcement(e,t,n,r){return{speaker:`announcer`,text:e,priority:r,urgent:!0,hold:n,card:t}}choose(e,t){let n=HR[e],r=this.refereeDead&&tz.has(e)?n.filter(e=>!/referee/iu.test(e)):n,i=hz(t,e.length*31+e.charCodeAt(0))%r.length;return r.length>1&&this.lastChoice.get(e)===i&&(i=(i+1)%r.length),this.lastChoice.set(e,i),r[i]}enqueue(e,t,n,r,i=null,a=null,o=!1){if(n!==null){if(!o&&this.queue.some(t=>t.moment===n&&t.line.priority>=e.priority)||!o&&this.showing?.moment===n&&this.showing.line.priority>=e.priority)return!1;for(let t=this.queue.length-1;t>=0;--t){let r=this.queue[t];r.moment===n&&!r.big&&r.line.priorityAR){let e=0;for(let t=1;tt.player_id===e)}otherId(e){let t=this.fighters;return t===null||e===null?null:t[0].player_id===e?t[1].player_id:t[1].player_id===e?t[0].player_id:null}seatOf(e){let t=this.fighters?.findIndex(t=>t.player_id===e)??-1;return t===0||t===1?t:null}nameOf(e){if(e===null)return`the fighter`;let t=this.players[e]?.name;if(t!==void 0&&t.trim().length>0)return t.trim();let n=this.seatOf(e);return n===0?`the blue corner`:n===1?`the red corner`:`the fighter`}};function Sz(e){return Math.min(5.2,Math.max(2.2,1.4+e.length*.05))}var Cz={name:`CopyShader`,uniforms:{tDiffuse:{value:null},opacity:{value:1}},vertexShader:` varying vec2 vUv; @@ -5305,7 +5306,7 @@ void main() { gl_FragColor = opacity * texel; - }`},XR=class{constructor(){this.isPass=!0,this.enabled=!0,this.needsSwap=!0,this.clear=!1,this.renderToScreen=!1}setSize(){}render(){console.error(`THREE.Pass: .render() must be implemented in derived pass.`)}dispose(){}},ZR=new Yd(-1,1,1,-1,0,1),QR=new class extends yc{constructor(){super(),this.setAttribute(`position`,new sc([-1,3,0,-1,-1,0,3,-1,0],3)),this.setAttribute(`uv`,new sc([0,2,0,0,2,0],2))}},$R=class{constructor(e){this._mesh=new V(QR,e)}dispose(){this._mesh.geometry.dispose()}render(e){e.render(this._mesh,ZR)}get material(){return this._mesh.material}set material(e){this._mesh.material=e}},ez=class extends XR{constructor(e,t=`tDiffuse`){super(),this.textureID=t,this.uniforms=null,this.material=null,e instanceof Wu?(this.uniforms=e.uniforms,this.material=e):e&&(this.uniforms=Vu.clone(e.uniforms),this.material=new Wu({name:e.name===void 0?`unspecified`:e.name,defines:Object.assign({},e.defines),uniforms:this.uniforms,vertexShader:e.vertexShader,fragmentShader:e.fragmentShader})),this._fsQuad=new $R(this.material)}render(e,t,n){this.uniforms[this.textureID]&&(this.uniforms[this.textureID].value=n.texture),this._fsQuad.material=this.material,this.renderToScreen?(e.setRenderTarget(null),this._fsQuad.render(e)):(e.setRenderTarget(t),this.clear&&e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil),this._fsQuad.render(e))}dispose(){this.material.dispose(),this._fsQuad.dispose()}},tz=class extends XR{constructor(e,t){super(),this.scene=e,this.camera=t,this.clear=!0,this.needsSwap=!1,this.inverse=!1}render(e,t,n){let r=e.getContext(),i=e.state;i.buffers.color.setMask(!1),i.buffers.depth.setMask(!1),i.buffers.color.setLocked(!0),i.buffers.depth.setLocked(!0);let a,o;this.inverse?(a=0,o=1):(a=1,o=0),i.buffers.stencil.setTest(!0),i.buffers.stencil.setOp(r.REPLACE,r.REPLACE,r.REPLACE),i.buffers.stencil.setFunc(r.ALWAYS,a,4294967295),i.buffers.stencil.setClear(o),i.buffers.stencil.setLocked(!0),e.setRenderTarget(n),this.clear&&e.clear(),e.render(this.scene,this.camera),e.setRenderTarget(t),this.clear&&e.clear(),e.render(this.scene,this.camera),i.buffers.color.setLocked(!1),i.buffers.depth.setLocked(!1),i.buffers.color.setMask(!0),i.buffers.depth.setMask(!0),i.buffers.stencil.setLocked(!1),i.buffers.stencil.setFunc(r.EQUAL,1,4294967295),i.buffers.stencil.setOp(r.KEEP,r.KEEP,r.KEEP),i.buffers.stencil.setLocked(!0)}},nz=class extends XR{constructor(){super(),this.needsSwap=!1}render(e){e.state.buffers.stencil.setLocked(!1),e.state.buffers.stencil.setTest(!1)}},rz=class{constructor(e,t){if(this.renderer=e,this._pixelRatio=e.getPixelRatio(),t===void 0){let n=e.getSize(new R);this._width=n.width,this._height=n.height,t=new zo(this._width*this._pixelRatio,this._height*this._pixelRatio,{type:_i}),t.texture.name=`EffectComposer.rt1`}else this._width=t.width,this._height=t.height;this.renderTarget1=t,this.renderTarget2=t.clone(),this.renderTarget2.texture.name=`EffectComposer.rt2`,this.writeBuffer=this.renderTarget1,this.readBuffer=this.renderTarget2,this.renderToScreen=!0,this.passes=[],this.copyPass=new ez(YR),this.copyPass.material.blending=0,this.timer=new of}swapBuffers(){let e=this.readBuffer;this.readBuffer=this.writeBuffer,this.writeBuffer=e}addPass(e){this.passes.push(e),e.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}insertPass(e,t){this.passes.splice(t,0,e),e.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}removePass(e){let t=this.passes.indexOf(e);t!==-1&&this.passes.splice(t,1)}isLastEnabledPass(e){for(let t=e+1;t0||e.clinch_startup_ticks>0||e.taunt_ticks>0||e.is_foul_recovery_target}function _z(e,t,n={x:0,y:0,speed:0},r=0){let i=Math.max(2,Math.floor(g*fz(e.conditioning,e.trauma.body)/100)),a=e.stunned_ticks-r,o=i;a>1?o=Math.max(2,Math.floor(i*ie/100)):a<=0&&(t.defense===`guard_high`||t.defense===`guard_low`)&&!Pe(e.injuries)&&(o=Math.max(2,Math.floor(i*lz/100))),o=Le(o*10*de(e.style).moveSpeedPercent,e.injuries)/1e3;let s=Math.hypot(t.moveX,t.moveY),c=s>1e3?1e3/s:1;return n.x=t.moveX*c*o/1e3,n.y=t.moveY*c*o/1e3,n.speed=o,n}function vz(e,t,n){return e.kind===`parry`&&e.target_id===t?Math.max(n,e.tick+e.amount):n}function yz(e,t,n){return e.kind===`defense`&&e.actor_id===t&&Mz(e.detail)?Math.max(n??e.tick,e.tick):n}function bz(e,t){if(e.stunned_ticks>0||e.action_id!==null&&e.action_id===t.cutActionId)return!0;let n=t.evasionFrom;if(n===void 0||e.action===null)return!1;let r=e.action_start_tick+e.action_startup_ticks+e.action_active_ticks;return n>=r&&n=n&&t0?Math.min((n.rootedUntil??0)-t,e.stunned_ticks)-1:0;return Math.max(r,i)}function Cz(e,t,n){if(!Mz(e.defense))return 0;let r=n.evasionFrom;return t===void 0||r===void 0||r>t?null:Math.max(0,r+y+de(e.style).evasionTicks-t-1)}function wz(e,t,n){if(e.queued_actions===0)return 1/0;if(t===void 0)return 0;if(e.action!==null&&!bz(e,n)){let n=e.action_start_tick+e.action_startup_ticks+e.action_active_ticks+e.action_recovery_ticks-t-1;if(n>0)return n}return Math.max(0,e.stunned_ticks)}function Tz(e,t,n,r,i={}){let a=Cz(e,r,i);if(n<=0||gz(e)||a===null)return{dx:0,dy:0};let o=Math.max(a,r===void 0?e.action===null?0:1/0:Sz(e,r,i)),s=wz(e,r,i),c=bz(e,i),l=(t,n)=>Math.min(n.share??1,r!==void 0&&!c&&xz(e,r+1+t)?v/100:1),u=e.velocity_x,d=e.velocity_y,f=0,p=0,m=Math.floor(n),h=n-m;for(let e=0;e=o&&er.speed*i&&(u=u/a*r.speed*i,d=d/a*r.speed*i),f+=u,p+=d}if(h>0){let e=m>=o&&m(e*(100-_)+t*_)/100,Dz=1e3,Oz=2.5,kz=class{history=[];offset={dx:0,dy:0};mean={x:0,y:0,speed:0,share:1};sample={x:0,y:0,speed:0};horizon=null;holds={rootedUntil:0,cutActionId:null,evasionFrom:void 0};observe(e,t){this.holds.rootedUntil=vz(e,t,this.holds.rootedUntil),this.holds.evasionFrom=yz(e,t,this.holds.evasionFrom)}update(e,t,n,r,i,a,o,s){for(this.history.push({at:r,held:n<=0?{...t,moveX:0,moveY:0}:t,share:n<=0?1:n});this.history.length>2&&this.history[1].at0&&e.action_id!==null&&(this.holds.cutActionId=e.action_id),e!==null){let t=1e3/s,n=this.horizon;c=Tz(e,i=>this.meanIntent(e,i,r-(n-1-i)*t,t),n,a,this.holds)}let l=Oz*g*s*o,u=c.dx-this.offset.dx,d=c.dy-this.offset.dy,f=Math.hypot(u,d),p=f>l?l/f:1;return this.offset.dx+=u*p,this.offset.dy+=d*p,{dx:this.offset.dx,dy:this.offset.dy}}meanIntent(e,t,n,r){let i=n-r/2,a=n+r/2,o=this.mean;o.x=0,o.y=0,o.speed=0,o.share=0;for(let n=0;nr?{x:i*(S-r),y:a*r}:m>n?{x:i*n,y:a*(S-n)}:{x:i*m,y:a*h}}function jz(e,t,n){let r=e.x+t.dx,i=e.y+t.dy;if(n!==null){let t=Math.min(dz,Math.hypot(e.x-n.x,e.y-n.y)),a=r-n.x,o=i-n.y,s=Math.hypot(a,o);s1e-9?(r=n.x+a/s*t,i=n.y+o/s*t):(r=e.x,i=e.y))}let a=Az(r,i);return{dx:a.x-e.x,dy:a.y-e.y}}function Mz(e){return e===`slip_left`||e===`slip_right`||e===`weave`||e===`pull`}function Nz(e,t,n,r=!1){return e.stunned_ticks>0||e.taunt_ticks>0||e.clinch_ticks>0?e.defense:n===null?Mz(e.defense)&&!r?e.defense:Pe(e.injuries)?`none`:t.defense:n}var Pz=class{kind=null;id=``;startsAt=0;endsAt=0;until=0;sequence=null;started=!1;press(e,t,n,r,i,a=y,o=n){this.kind=e,this.id=t,this.startsAt=o,this.endsAt=o+a*1e3/i,this.until=this.endsAt+Math.max(0,r)*1e3/i,this.sequence=null,this.started=!1}acknowledge(e,t,n){if(this.kind===null)return!1;this.sequence??=n?.(this.id)??null,e.defense===this.kind&&(this.started=!0);let r=!t||e.stunned_ticks>0||e.clinch_ticks>0,i=!this.started&&this.sequence!==null&&e.last_input_sequence>=this.sequence&&e.queued_actions===0;return(r||i)&&(this.kind=null),i}pose(e){return this.kind!==null&&e>=this.until&&(this.kind=null),this.kind!==null&&e>=this.startsAt&&e=this.startsAt&&e=this.startsAt&&e=this.startsAt?!1:(this.kind=null,!0)}},Fz=[{radius:8.2,y:-.55,count:120,scale:1},{radius:10.6,y:.35,count:150,scale:1.04},{radius:13.2,y:1.35,count:180,scale:1.08},{radius:16,y:2.45,count:210,scale:1.12}],Iz=.95,Lz=.42,Rz=[3819104,5915960,3493980,6963002,4612159,5524835,7233348,9076852,4678266,7620714,10107450,11843778,3104688,11573822,2303534,2303534],zz=[13081462,9067067,7225640,14726287,5517341,11105359],Bz=[1380364,2759442,4862496,7035464,9341572,11569742],Vz=.9,Hz=.235,Uz=-.35,Wz=.32,Gz=.26,Kz=6.2;function qz(e,t,n=Kz){return t>0&&Math.hypot(e,t)>n&&Math.abs(Math.atan2(e,t))<.3}var Jz=` + }`},Iz=class extends wz{constructor(){super(),this.isOutputPass=!0,this.uniforms=Ed.clone(Fz.uniforms),this.material=new Ad({name:Fz.name,uniforms:this.uniforms,vertexShader:Fz.vertexShader,fragmentShader:Fz.fragmentShader}),this._fsQuad=new Dz(this.material),this._outputColorSpace=null,this._toneMapping=null}render(e,t,n){this.uniforms.tDiffuse.value=n.texture,this.uniforms.toneMappingExposure.value=e.toneMappingExposure,(this._outputColorSpace!==e.outputColorSpace||this._toneMapping!==e.toneMapping)&&(this._outputColorSpace=e.outputColorSpace,this._toneMapping=e.toneMapping,this.material.defines={},ds.getTransfer(this._outputColorSpace)===`srgb`&&(this.material.defines.SRGB_TRANSFER=``),this._toneMapping===1?this.material.defines.LINEAR_TONE_MAPPING=``:this._toneMapping===2?this.material.defines.REINHARD_TONE_MAPPING=``:this._toneMapping===3?this.material.defines.CINEON_TONE_MAPPING=``:this._toneMapping===4?this.material.defines.ACES_FILMIC_TONE_MAPPING=``:this._toneMapping===6?this.material.defines.AGX_TONE_MAPPING=``:this._toneMapping===7?this.material.defines.NEUTRAL_TONE_MAPPING=``:this._toneMapping===5&&(this.material.defines.CUSTOM_TONE_MAPPING=``),this.material.needsUpdate=!0),this.renderToScreen===!0?(e.setRenderTarget(null),this._fsQuad.render(e)):(e.setRenderTarget(t),this.clear&&e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil),this._fsQuad.render(e))}dispose(){this.material.dispose(),this._fsQuad.dispose()}},Lz=70,Rz=1e3,zz=f*2;function Bz(e,t){return Math.max(65,100-Math.floor((Rz-e)/30)-Math.floor(t/50))}function Vz(e,t,n){if(e.action===null||!T(e.action,t.class))return!1;let r=e.action_startup_ticks+e.action_active_ticks+e.action_recovery_ticks;return n-e.action_start_tick0||e.clinch_startup_ticks>0||e.taunt_ticks>0||e.is_foul_recovery_target}function Gz(e,t,n={x:0,y:0,speed:0},r=0){let i=Math.max(2,Math.floor(g*Bz(e.conditioning,e.trauma.body)/100)),a=e.stunned_ticks-r,o=i;a>1?o=Math.max(2,Math.floor(i*N/100)):a<=0&&(t.defense===`guard_high`||t.defense===`guard_low`)&&!dt(e.injuries)&&(o=Math.max(2,Math.floor(i*Lz/100))),o=mt(o*10*de(e.style).moveSpeedPercent,e.injuries)/1e3;let s=Math.hypot(t.moveX,t.moveY),c=s>1e3?1e3/s:1;return n.x=t.moveX*c*o/1e3,n.y=t.moveY*c*o/1e3,n.speed=o,n}function Kz(e,t,n){return e.kind===`parry`&&e.target_id===t?Math.max(n,e.tick+e.amount):n}function qz(e,t,n){return e.kind===`defense`&&e.actor_id===t&&oB(e.detail)?Math.max(n??e.tick,e.tick):n}function Jz(e,t){if(e.stunned_ticks>0||e.action_id!==null&&e.action_id===t.cutActionId)return!0;let n=t.evasionFrom;if(n===void 0||e.action===null)return!1;let r=e.action_start_tick+e.action_startup_ticks+e.action_active_ticks;return n>=r&&n=n&&t0?Math.min((n.rootedUntil??0)-t,e.stunned_ticks)-1:0;return Math.max(r,i)}function Zz(e,t,n){if(!oB(e.defense))return 0;let r=n.evasionFrom;return t===void 0||r===void 0||r>t?null:Math.max(0,r+y+de(e.style).evasionTicks-t-1)}function Qz(e,t,n){if(e.queued_actions===0)return 1/0;if(t===void 0)return 0;if(e.action!==null&&!Jz(e,n)){let n=e.action_start_tick+e.action_startup_ticks+e.action_active_ticks+e.action_recovery_ticks-t-1;if(n>0)return n}return Math.max(0,e.stunned_ticks)}function $z(e,t,n,r,i={}){let a=Zz(e,r,i);if(n<=0||Wz(e)||a===null)return{dx:0,dy:0};let o=Math.max(a,r===void 0?e.action===null?0:1/0:Xz(e,r,i)),s=Qz(e,r,i),c=Jz(e,i),l=(t,n)=>Math.min(n.share??1,r!==void 0&&!c&&Yz(e,r+1+t)?v/100:1),u=e.velocity_x,d=e.velocity_y,f=0,p=0,m=Math.floor(n),h=n-m;for(let e=0;e=o&&er.speed*i&&(u=u/a*r.speed*i,d=d/a*r.speed*i),f+=u,p+=d}if(h>0){let e=m>=o&&m(e*(100-_)+t*_)/100,tB=1e3,nB=2.5,rB=class{history=[];offset={dx:0,dy:0};mean={x:0,y:0,speed:0,share:1};sample={x:0,y:0,speed:0};horizon=null;holds={rootedUntil:0,cutActionId:null,evasionFrom:void 0};observe(e,t){this.holds.rootedUntil=Kz(e,t,this.holds.rootedUntil),this.holds.evasionFrom=qz(e,t,this.holds.evasionFrom)}update(e,t,n,r,i,a,o,s){for(this.history.push({at:r,held:n<=0?{...t,moveX:0,moveY:0}:t,share:n<=0?1:n});this.history.length>2&&this.history[1].at0&&e.action_id!==null&&(this.holds.cutActionId=e.action_id),e!==null){let t=1e3/s,n=this.horizon;c=$z(e,i=>this.meanIntent(e,i,r-(n-1-i)*t,t),n,a,this.holds)}let l=nB*g*s*o,u=c.dx-this.offset.dx,d=c.dy-this.offset.dy,f=Math.hypot(u,d),p=f>l?l/f:1;return this.offset.dx+=u*p,this.offset.dy+=d*p,{dx:this.offset.dx,dy:this.offset.dy}}meanIntent(e,t,n,r){let i=n-r/2,a=n+r/2,o=this.mean;o.x=0,o.y=0,o.speed=0,o.share=0;for(let n=0;nr?{x:i*(S-r),y:a*r}:m>n?{x:i*n,y:a*(S-n)}:{x:i*m,y:a*h}}function aB(e,t,n){let r=e.x+t.dx,i=e.y+t.dy;if(n!==null){let t=Math.min(zz,Math.hypot(e.x-n.x,e.y-n.y)),a=r-n.x,o=i-n.y,s=Math.hypot(a,o);s1e-9?(r=n.x+a/s*t,i=n.y+o/s*t):(r=e.x,i=e.y))}let a=iB(r,i);return{dx:a.x-e.x,dy:a.y-e.y}}function oB(e){return e===`slip_left`||e===`slip_right`||e===`weave`||e===`pull`}function sB(e,t,n,r=!1){return e.stunned_ticks>0||e.taunt_ticks>0||e.clinch_ticks>0?e.defense:n===null?oB(e.defense)&&!r?e.defense:dt(e.injuries)?`none`:t.defense:n}var cB=class{kind=null;id=``;startsAt=0;endsAt=0;until=0;sequence=null;started=!1;press(e,t,n,r,i,a=y,o=n){this.kind=e,this.id=t,this.startsAt=o,this.endsAt=o+a*1e3/i,this.until=this.endsAt+Math.max(0,r)*1e3/i,this.sequence=null,this.started=!1}acknowledge(e,t,n){if(this.kind===null)return!1;this.sequence??=n?.(this.id)??null,e.defense===this.kind&&(this.started=!0);let r=!t||e.stunned_ticks>0||e.clinch_ticks>0,i=!this.started&&this.sequence!==null&&e.last_input_sequence>=this.sequence&&e.queued_actions===0;return(r||i)&&(this.kind=null),i}pose(e){return this.kind!==null&&e>=this.until&&(this.kind=null),this.kind!==null&&e>=this.startsAt&&e=this.startsAt&&e=this.startsAt&&e=this.startsAt?!1:(this.kind=null,!0)}},lB=[{radius:8.2,y:-.55,count:120,scale:1},{radius:10.6,y:.35,count:150,scale:1.04},{radius:13.2,y:1.35,count:180,scale:1.08},{radius:16,y:2.45,count:210,scale:1.12}],uB=.95,dB=.42,fB=[3819104,5915960,3493980,6963002,4612159,5524835,7233348,9076852,4678266,7620714,10107450,11843778,3104688,11573822,2303534,2303534],pB=[13081462,9067067,7225640,14726287,5517341,11105359],mB=[1380364,2759442,4862496,7035464,9341572,11569742],hB=.9,gB=.235,_B=-.35,vB=.32,yB=.26,bB=6.2;function xB(e,t,n=bB){return t>0&&Math.hypot(e,t)>n&&Math.abs(Math.atan2(e,t))<.3}var SB=` #ifdef USE_INSTANCING vec4 crowdWorld = modelMatrix * instanceMatrix * vec4(transformed, 1.0); #else vec4 crowdWorld = modelMatrix * vec4(transformed, 1.0); #endif vCrowdLight = vec3(-crowdWorld.x, ${7.5.toFixed(1)} - crowdWorld.y, -crowdWorld.z); -`,Yz=` +`,CB=` #ifdef USE_COLOR totalEmissiveRadiance *= vColor.rgb * (0.22 + 0.78 * max(0.0, dot(inverseTransformDirection(normal, viewMatrix), normalize(vCrowdLight)))); #endif -`,Xz=(e,t,n)=>{let r=Math.min(1,Math.max(0,(n-e)/(t-e)));return r*r*(3-2*r)};function Zz(e,t){let n=[];for(let[r,i]of e.entries())for(let e=0;e0&&Math.abs(Math.atan2(s,c))<.3})}return n}function Qz(e,t,n,r={rise:0,armLeft:0,armRight:0,sway:0}){let i=.2+.7*(1-e.keen),a=Xz(i-.12,i+.12,n),o=Math.abs(Math.sin(t*(2.3+n*3.2)+e.phase*1.7))*(.02+.1*a),s=Math.sin(t*6.2+e.phase)*.32*a,c=Uz+-2.35*a;return r.rise=a*Wz+o,r.armLeft=c+s,r.armRight=c-s*.8,r.sway=Math.sin(t*1.6+e.phase)*(.04+n*.05),r}function $z(e){let t=Jh(e,!1);for(let t of e)t.dispose();if(t===null)throw Error(`crowd geometry could not be merged`);return t}function eB(){let e=new Yl(.16,.28,2,8);e.scale(1.35,1,.8),e.translate(0,.64,0);let t=new Yl(.078,.3,1,5);t.rotateZ(Math.PI/2),t.translate(0,.89,0);let n=new Yl(.11,.26,1,5);return n.rotateX(Math.PI/2),n.scale(1.7,1,1),n.translate(0,.4,.17),$z([e,t,n])}function tB(){let e=new Mu(.105,10,6);e.rotateY(-Math.PI/2),e.scale(.92,1.12,1),e.translate(0,1.12,.01);let t=new Zl(.048,.056,.1,5,1,!0);t.translate(0,.99,0);let n=t.getAttribute(`uv`);for(let e=0;e{e.vertexShader=e.vertexShader.replace(`#include `,`#include -varying vec3 vCrowdLight;`).replace(`#include `,`#include \n${Jz}`),e.fragmentShader=e.fragmentShader.replace(`#include `,`#include -varying vec3 vCrowdLight;`).replace(`#include `,`#include \n${Yz}`)},e.customProgramCacheKey=()=>`hands-crowd`;let u=new Ku({color:724501,roughness:.96,metalness:0,side:2}),d=new _l(o[0],s,i),f=new _l(o[1],c,i),p=new _l(o[2],l,i),m=new _l(o[3],s,i),h=new _l(o[3],s,i),g=[d,f,p,m,h],_=[d,f,p];for(let e of g)e.instanceMatrix.setUsage(Aa),e.frustumCulled=!1;let v=new B;for(let t=0;t.12&&v.setHex(Bz[Math.floor(e()*Bz.length)]).multiplyScalar((.8+e()*.4)*n),p.setColorAt(t,v)}for(let e of g)e.instanceColor.needsUpdate=!0;let y=new V(o[4],u);y.name=`stands`,y.receiveShadow=!1,n.add(y,...g);let b=new z(0,1,0),x=new z,S=new vo,C=new z,w=new Ho,T=new Ho,E=new Ho,D=new Ho,O={rise:0,armLeft:0,armRight:0,sway:0},k=(e,t,n,r)=>{E.makeTranslation(n*Hz,Vz,0),D.makeRotationX(r),T.multiplyMatrices(w,E).multiply(D),e.setMatrixAt(t,T)},A=0,j=!1,ee=!1,M=!1,te=0,ne=0,re=r.flatMap((e,t)=>e.platform?[t]:[]),ie=new Ho().makeScale(0,0,0),ae=(e,t)=>{let n=r[e];if(M&&n.platform)for(let n of t?g:_)n.setMatrixAt(e,ie);else Qz(n,te,ne,O),S.setFromAxisAngle(b,n.yaw+O.sway),w.compose(x.set(n.x,n.y+O.rise*n.scale,n.z),S,C.setScalar(n.scale)),d.setMatrixAt(e,w),f.setMatrixAt(e,w),p.setMatrixAt(e,w),t&&(k(m,e,1,O.armLeft),k(h,e,-1,O.armRight))},oe=(e,t,n=!1)=>{let r=n||ee;ee=!1;let a=r?1:j?4:2,o=Math.ceil(i/a),s=A%a*o,c=Math.min(i,s+o);A+=1,te=e,ne=t;let l=!j||r;for(let e=s;e{e!==j&&(j=e,m.visible=!e,h.visible=!e,e||(ee=!0))},makeRoomForCamera:e=>{let t=qz(e.x,e.z,M?5.9:Kz);if(t!==M){M=t;for(let e of re)ae(e,!0);for(let e of g)e.instanceMatrix.clearUpdateRanges(),e.instanceMatrix.needsUpdate=!0}},dispose:()=>{for(let e of o)e.dispose();for(let e of[s,c,l,u])e.dispose();a.dispose();for(let e of g)e.dispose()}}}var sB=.3,cB=.012,lB=e=>()=>(e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296);function uB(){let e=new gs;e.name=`arena`;let t=[],n=[],r=[],i=new Ku({color:`#05070c`,roughness:.95});n.push(i);let a=new Xl(30,40);t.push(a);let o=new V(a,i);o.rotation.x=-Math.PI/2,o.position.y=-1,o.receiveShadow=!0,e.add(o);let s=lB(20260727),c=Fz,l=oB(s);e.add(l.group);let u=document.createElement(`canvas`);u.width=1024,u.height=64;let d=u.getContext(`2d`);d!==null&&(d.fillStyle=`#070c1a`,d.fillRect(0,0,1024,64),d.fillStyle=`#13203f`,d.fillRect(0,0,1024,5),d.fillRect(0,59,1024,5),d.textBaseline=`middle`,d.font=`800 38px Inter, system-ui, sans-serif`,d.fillStyle=`#e9c46a`,d.fillText(`H A N D S`,28,33),d.fillStyle=`#c9d6f2`,d.font=`600 26px Inter, system-ui, sans-serif`,d.fillText(`CHAMPIONSHIP BOXING`,300,34),d.fillStyle=`#e9c46a`,d.font=`800 30px Inter, system-ui, sans-serif`,d.fillText(`FIGHT NIGHT`,700,34),d.fillStyle=`#b91c1c`,d.fillRect(948,22,22,22),d.fillStyle=`#1d4ed8`,d.fillRect(978,22,22,22));let f=new Wl(u);f.colorSpace=wa,f.wrapS=ti,f.repeat.set(-6,1),r.push(f);let p=new Pc({map:f,side:1});n.push(p);let m=c[0].y+Lz,h=new Zl(c[0].radius-Iz-.03,c[0].radius-Iz-.03,m- -1-.04,72,1,!0);t.push(h);let g=new V(h,p);g.name=`boards`,g.position.y=(m+-1)/2+.02,e.add(g);let _=new Float32Array(270);for(let e=0;e<90;e+=1){let t=c[Math.floor(s()*c.length)],n=s()*Math.PI*2;_[e*3]=Math.sin(n)*t.radius,_[e*3+1]=t.y+.9+s()*.5,_[e*3+2]=Math.cos(n)*t.radius}let v=new yc;v.setAttribute(`position`,new ic(_,3)),t.push(v);let y=new Il({color:13623551,size:.09,transparent:!0,opacity:0,blending:2,depthWrite:!1});n.push(y);let b=new Vl(v,y);e.add(b);let x=new Ku({color:`#11151d`,roughness:.6,metalness:.4});n.push(x);let S=new Ku({color:`#1a2230`,emissive:`#dfe9ff`,emissiveIntensity:1.1,roughness:.4});n.push(S);let C=new Pc({color:`#a8c4ff`,transparent:!0,opacity:.006,blending:2,depthWrite:!1,side:2});n.push(C);let w=new Jl(9,.18,.18);t.push(w);let T=new Zl(.09,.14,.22,10);t.push(T);let E=new Ql(1.7,6.6,20,1,!0);t.push(E);for(let t=0;t<2;t+=1){let n=new V(w,x);n.position.set(0,7.6,t===0?-1.6:1.6),e.add(n);for(let t=0;t<5;t+=1){let r=-3.6+t*1.8,i=new V(T,S);i.position.set(r,7.45,n.position.z),e.add(i);let a=new V(E,C);a.position.set(r,4.1,n.position.z*.4),e.add(a)}}let D=new Ku({color:`#070a12`,roughness:1});n.push(D);let O=new Zl(24,24,14,32,1,!0);t.push(O);let k=new V(O,D);k.position.y=5,k.material.side=1,e.add(k);let A=document.createElement(`canvas`);A.width=512,A.height=256;let j=A.getContext(`2d`);j!==null&&(j.fillStyle=`#04060c`,j.fillRect(0,0,512,256),j.strokeStyle=`#f1cc72`,j.lineWidth=6,j.strokeRect(14,14,484,228),j.fillStyle=`#f1cc72`,j.font=`800 84px Inter, system-ui, sans-serif`,j.textAlign=`center`,j.textBaseline=`middle`,j.fillText(`H A N D S`,256,104),j.fillStyle=`#8fa3c8`,j.font=`600 30px Inter, system-ui, sans-serif`,j.fillText(`CHAMPIONSHIP BOXING`,256,186));let ee=new Wl(A);ee.colorSpace=wa;let M=new Pc({map:ee});n.push(M);let te=new Jl(4.6,2.3,.3);t.push(te);let ne=new V(te,M);ne.position.set(0,6.4,-14.5),e.add(ne);let re=new V(te,x);re.position.set(0,6.4,-14.65),e.add(re),r.push(ee);let ie=0,ae=0,oe=0,se=!1;return{group:e,update:(e,t,n)=>{oe=Math.max(0,oe-t*sB),n&&!se&&l.update(0,0,!0),se=n,n||(l.update(e,oe),f.offset.x=e*cB%1,ie-=t,ie<=0&&(ae=.09+Math.random()*.08,ie=(.25+Math.random()*1.6)/(1+oe*4)),ae=Math.max(0,ae-t),y.opacity=ae>0?.85:0)},excite:e=>{oe=Math.min(1,oe+Math.max(0,e))},excitement:()=>oe,setLowTier:l.setLowTier,makeRoomForCamera:l.makeRoomForCamera,dispose:()=>{for(let e of t)e.dispose();for(let e of n)e.dispose();for(let e of r)e.dispose();l.dispose()}}}var dB=2.05,fB=5.5,pB=1.05,mB=1.78,hB=3.75,gB=.85,_B=.45,vB=1.18,yB=2.5,bB=5.5;function xB(e,t,n){return e<2.5||t<3?null:(n+Math.floor((e-yB)/bB))%2}function SB(e){return Math.max(0,e-yB)%bB}var CB=.95,wB=2.6,TB=-25;function EB(e,t,n,r,i){let a=e===0?-1:1,o=r*Math.PI/180,s=-a*Math.SQRT1_2,c=a*Math.SQRT1_2,l=s*Math.cos(o)+c*Math.sin(o),u=-s*Math.sin(o)+c*Math.cos(o);return i.set(a*t+l*n,0,-a*t+u*n)}function DB(e,t,n,r,i){EB(e,t,wB,TB+Math.min(1,n/bB)*5,r).setY(1.45),EB(e,t,.62,27,i).setY(1.05)}var OB={top:2.42,bottom:.95,width:2.4};function kB(e,t,n,r=.09){let i=Math.max(.2,1-n-r),a=Math.max((OB.top-OB.bottom)/i,OB.width/Math.max(.1,e)),o=(OB.top+OB.bottom)/2;return{distance:a/(2*Math.tan(L.degToRad(t)/2)),height:o-(.5-(r+i/2))*a}}var AB=class{current=new z(0,dB,fB);look=new z(0,pB,0);swayPhase=0;update(e,t,n,r,i,a,o,s,c=!1,l=null){this.swayPhase+=e;let u=a&&l!==null?gB:0,d=(n.x+r.x)/2+((l?.x??0)-(n.x+r.x)/2)*u,f=(n.z+r.z)/2+((l?.z??0)-(n.z+r.z)/2)*u,p=L.clamp(d,-1.4,1.4),m=L.clamp(f,-1.1,1.1),h=c?L.clamp(hB+i*.45-(a?.6:0),3.3,5.6):L.clamp(fB+i*.6-(a?.9:0),4.6,8.4),g=(c?mB:dB)+i*.08-(a?.45:0),_=s?0:Math.sin(this.swayPhase*.21)*.35,v=s?0:Math.sin(this.swayPhase*.13)*.3,y=p*.32+_,b=h+m*.2,x=g+v*.2;if(this.current.x+=(y-this.current.x)*(1-Math.exp(-2.6*e)),this.current.y+=(x-this.current.y)*(1-Math.exp(-2.6*e)),this.current.z+=(b-this.current.z)*(1-Math.exp(-2.6*e)),this.look.x+=(p-this.look.x)*(1-Math.exp(-3.2*e)),this.look.y+=((a?u>0?_B:.7:c?vB:pB)-this.look.y)*(1-Math.exp(-3.2*e)),this.look.z+=(m*.6-this.look.z)*(1-Math.exp(-3.2*e)),!s&&o>5e-4){let e=t*61;this.current.x+=Math.sin(e*1.31)*o,this.current.y+=Math.cos(e*1.97)*o*.6,this.look.x+=Math.sin(e*1.53)*o*.5,this.look.y+=Math.cos(e*2.11)*o*.35}return{position:this.current,lookAt:this.look}}},jB=2.45,MB=2.25,NB=1.35,PB=3.5,FB=1.25,IB=.45;function LB(e,t,n,r,i,a,o=31){let s=L.degToRad(o),c=Math.cos(s)*jB,l=Math.sin(s)*jB,u=-r,d=n,f=-n*c+u*l,p=-r*c+d*l,m=(e,t)=>Math.abs(t)<1e-9?1:L.clamp((Math.sign(t)*PB-e)/t,0,1),h=Math.min(m(e.x,f),m(e.z,p));i.set(L.clamp(e.x+f*h,-3.5,PB),MB,L.clamp(e.z+p*h,-3.5,PB)),a.set(t.x,NB,t.z)}var RB=class{angle=Math.PI;closeness=0;initialised=!1;target=new z;position=new z;look=new z;aim=new z;get forwardX(){return Math.sin(this.angle)}get forwardZ(){return Math.cos(this.angle)}reset(){this.initialised=!1}update(e,t,n,r,i,a,o=16/9){let s=r.x-n.x,c=r.z-n.z,l=Math.hypot(s,c),u=l>.05?Math.atan2(s,c):this.angle,d=L.clamp((1.3-l)/.8,0,1);if(!this.initialised)this.angle=u,this.closeness=d;else{let t=Math.atan2(Math.sin(u-this.angle),Math.cos(u-this.angle));this.angle+=t*(1-Math.exp(-4.5*e)),this.closeness+=(d-this.closeness)*(1-Math.exp(-3*e))}let f=L.clamp(o,IB,1);if(LB(n,r,this.forwardX,this.forwardZ,this.target,this.aim,L.lerp(31,60,this.closeness)*f),!this.initialised)this.position.copy(this.target),this.look.copy(this.aim),this.initialised=!0;else{let t=1-Math.exp(-10*e);this.position.lerp(this.target,t),this.look.lerp(this.aim,t)}let p={position:this.position,lookAt:this.look,tight:!0};if(a||i<=5e-4)return p;let m=t*61;return this.target.set(this.position.x+Math.sin(m*1.31)*i,this.position.y+Math.cos(m*1.97)*i*.6,this.position.z),this.aim.set(this.look.x+Math.sin(m*1.53)*i*.5,this.look.y+Math.cos(m*2.11)*i*.35,this.look.z),{position:this.target,lookAt:this.aim,tight:!0}}},zB=54,BB=136,VB=110,HB=168,UB=400,WB=74,GB=72,KB={right:220,wideTop:64,compactTop:120,height:34},qB=200,JB={reach:192,bottom:80},YB=`rgba(3,6,12,0.86)`,XB=`rgb(4,7,13)`,ZB={play:`#f6d57a`,colour:`#9ec7ff`,announcer:`#f6d57a`},QB=[`#4f86d9`,`#d9483c`],$B=`Inter, system-ui, sans-serif`;function eV(e){let{width:t,height:n}=e,r=t<640,i=n<480,a=i?.78:r?.85:1,o=Math.min(680,t-24),s=e.resultTop,c=s===null&&e.touch&&e.phase!==`complete`,l=nr(t,n,c);if(c&&e.paused===!0&&e.phase===`countdown`)return null;if(s===null&&e.phase===`countdown`){let e=l.x+l.width/2,r=t-(c&&t>n?er(t,n,l.y+l.height):12);return{x:e,y:l.y,maxWidth:Math.min(o,2*Math.min(e-12,r-e)),anchor:`top`,scale:a,cover:{width:l.width,height:l.height}}}let u=t-384;if(s===null&&!e.touch&&!i&&u>=UB){let r=n-(e.hint?HB:VB),i=e.cornerPanelTop===void 0||e.cornerPanelTop===null?r:Math.min(r,e.cornerPanelTop-8);if(i-WB*a>=n*.45)return{x:t/2,y:i,maxWidth:Math.min(o,u),anchor:`bottom`,scale:a,cover:null}}if(s===null&&e.viewerDown)return null;let d=s===null&&r?BB:zB;s===null&&(e.phase===`rest`||e.phase===`foul_recovery`||c&&e.paused===!0?d=Math.max(d,l.y+l.height+8):e.phase===`knockdown`?d=Math.max(d,gr(n,r)+GB):e.phase===`finish`&&(d=Math.max(d,Er(t,n,c).bottom+8+(c?0:59))),e.replay&&t/2-o/2f)return null;let p=c&&e.lag===!0&&!r&&!e.replay&&dMath.round(8*e)+Math.round(10*e)+Math.round(4*e)+2*Math.round(Math.round(17*e)*1.3)+Math.round(5*e);function nV(e,t,n,r){let i=r?1:t.opacity;if(i<=.01)return;let a=r||n.cover!==null?0:t.entering*8*(n.anchor===`bottom`?1:-1);e.save(),e.globalAlpha=i,e.textBaseline=`alphabetic`;let o=i*i;t.line.card===null?aV(e,t.line,n,a,o):sV(e,t.line.card,n,a,o),e.restore()}function rV(e,t,n){if(e.measureText(t).width<=n)return t;let r=t;for(;r.length>1&&e.measureText(`${r}…`).width>n;)r=r.slice(0,-1);return`${r}…`}function iV(e,t){let n=e.length/2,r=null,i=1/0;for(let a=e.indexOf(` `);a>=0;a=e.indexOf(` `,a+1)){let o=e.slice(0,a),s=e.slice(a+1),c=Math.abs(a-n);t(o)&&t(s)&&c0?[e.slice(0,a),e.slice(a+1)]:[e,``]}function aV(e,t,n,r,i){let a=n.scale,o=Math.round(14*a),s=Math.round(10*a),c=n.maxWidth-o*2-4,l=(t,n)=>(e.font=`700 ${n}px ${$B}`,e.measureText(t).width),u=dn(e=>l(t.text,e),c,Math.round(17*a),Math.round(13*a)),d=l(t.text,u)<=c?[t.text]:iV(t.text,e=>l(e,u)<=c).filter(e=>e.length>0),f=Math.max(...d.map(e=>Math.min(c,l(e,u)))),p=JL[t.speaker];e.font=`800 ${s}px ${$B}`;let m=e.measureText(p).width,h=Math.min(n.maxWidth,Math.max(f,m)+o*2+4),g=Math.round(u*1.3),_=Math.round(8*a)+s,v=_+Math.round(4*a)+d.length*g+Math.round(5*a),y=(n.anchor===`bottom`?n.y-v:n.y)+r,b=n.x-h/2,x=ZB[t.speaker];e.fillStyle=YB,e.fillRect(b,y,h,v),e.fillStyle=x,e.fillRect(b,y,4,v),e.globalAlpha=i,e.textAlign=`left`,e.font=`800 ${s}px ${$B}`,e.fillText(p,b+4+o,y+_),e.fillStyle=`#f6f7fb`,e.font=`700 ${u}px ${$B}`,d.forEach((t,n)=>e.fillText(rV(e,t,c),b+4+o,y+_+Math.round(4*a)+g*(n+1)-Math.round(u*.28)))}function oV(e,t,n){let r=Math.round(11*e),i=Math.round(28*e),a=Math.round(6*e),o={pad:Math.round(10*e),gap:Math.round(7*e)},s={pad:Math.max(4,Math.round(6*e)),gap:Math.max(3,Math.round(4*e))},c=t?Math.round(10*e):0,l=[{...o,detail:c},{...s,detail:c},{...s,detail:0}],u=(e,t)=>e.pad*2+r+e.gap+t+(e.detail===0?0:a+e.detail);for(let e of l)if(n===null||u(e,i)<=n)return{kicker:r,title:i,...e,height:u(e,i)};let d=l[2],f=Math.max(12,Math.min(i,(n??1/0)-u(d,0)));return{kicker:r,title:f,...d,height:u(d,f)}}function sV(e,t,n,r,i){let a=n.scale,o=Math.round(18*a),s=n.maxWidth-o*2,c=oV(a,t.detail.length>0,n.cover?.height??null),l=c.kicker,u=c.detail,d=(t,n,r)=>(e.font=`${n} ${r}px ${$B}`,e.measureText(t).width),f=dn(e=>d(t.title,900,e),s,c.title,Math.min(c.title,Math.round(15*a))),p=Math.max(d(t.kicker,800,l),Math.min(s,d(t.title,900,f)),u===0?0:d(t.detail,700,u)),m=Math.min(n.maxWidth,Math.max(240*a,p+o*2,n.cover?.width??0)),h=c.pad+l+c.gap+f+(u===0?0:Math.round(6*a)+u)+c.pad,g=Math.max(h,n.cover?.height??0),_=(n.anchor===`bottom`?n.y-g:n.y)+r,v=n.x-m/2,y=t.corner===null?ZB.announcer:QB[t.corner];e.fillStyle=n.cover===null?YB:XB,e.fillRect(v,_,m,g),e.fillStyle=y,e.fillRect(v,_,m,3),e.globalAlpha=i,e.textAlign=`center`;let b=_+(g-h)/2+c.pad+l;e.font=`800 ${l}px ${$B}`,e.fillText(rV(e,t.kicker,s),n.x,b),b+=c.gap+f,e.fillStyle=`#ffffff`,e.font=`900 ${f}px ${$B}`,e.fillText(rV(e,t.title,s),n.x,b-Math.round(f*.12)),u>0&&(b+=Math.round(6*a)+u,e.fillStyle=`#93a3bd`,e.font=`700 ${u}px ${$B}`,e.fillText(rV(e,t.detail,s),n.x,b))}var cV={broken_nose:[`nose`,.3],broken_jaw:[`mouth`,.25],jaw_torn:[`mouth`,.75],eye_left_out:[`eye_left`,.3],eye_right_out:[`eye_right`,.3],ear_left_torn:[`ear_left`,.3],ear_right_torn:[`ear_right`,.3],skull_fractured:[`skull`,.4],arm_left_broken:[`elbow_left`,.3],arm_right_broken:[`elbow_right`,.3],forearm_left_severed:[`elbow_left`,1],forearm_right_severed:[`elbow_right`,1],arm_left_torn:[`shoulder_left`,1],arm_right_torn:[`shoulder_right`,1],ribs_left_broken:[`ribs_left`,.15],ribs_right_broken:[`ribs_right`,.15],disemboweled:[`belly`,.6],knee_left_blown:[`knee_left`,.2],knee_right_blown:[`knee_right`,.2]},lV=new Map(_e.map(e=>[e,[]]));for(let[e,[t,n]]of Object.entries(cV))lV.get(t).push([e,n]);var uV=new Set([`nose`,`mouth`,`eye_left`,`eye_right`,`ear_left`,`ear_right`,`skull`]),dV=new Set([`waist`,`crotch`,`knee_left`,`knee_right`]),fV=1.5,pV=8,mV=.9,hV=18,gV=36,_V=.45,vV=.25,yV=.3,bV=.08,xV=.012,SV=[`ankleL`,`ankleR`],CV=[`toeL`,`toeR`],wV=.35,TV=.05,EV=.5,DV=.3,OV=.4,kV=2.2,AV=.12,jV=4e-4,MV=.4,NV=.6,PV=4,FV=1.1,IV=1/500,LV=.18,RV=.55,zV=.45,BV=.5,VV=.08,HV=[`gloveL`,`gloveR`],UV={bottom:80,top:108,half:17},WV=70,GV=2,KV=7,qV=.5,JV=.28,YV=[`left`,`right`],XV={left:`eye_left_out`,right:`eye_right_out`},ZV={left:`eye_left`,right:`eye_right`},QV={left:[`forearm_left_severed`,`arm_left_torn`],right:[`forearm_right_severed`,`arm_right_torn`]},$V=[`head`,`arm_left`,`arm_right`,`leg_left`,`leg_right`,`torso`],eH={head:[`neck`,`neck`],jaw:[`mouth`,`head`],forearm_left:[`elbow_left`,`elbowL`],forearm_right:[`elbow_right`,`elbowR`],arm_left:[`shoulder_left`,`shoulderL`],arm_right:[`shoulder_right`,`shoulderR`],leg_left:[`knee_left`,`kneeL`],leg_right:[`knee_right`,`kneeR`],upper_body:[`waist`,`hips`],torso:[`chest`,`upperChest`]},tH=Object.keys(eH),nH={head:[`head`],jaw:[`head`],forearm_left:[`body`,`glove_left`],forearm_right:[`body`,`glove_right`],arm_left:[`body`,`glove_left`],arm_right:[`body`,`glove_right`],leg_left:[`body`,`shoes`],leg_right:[`body`,`shoes`],upper_body:[`head`,`body`,`glove_left`,`glove_right`],torso:[`body`,`pants`]},rH=new z(0,1,0),iH=new z(0,.12,.02),aH=class{effects;bake;bodies=[null,null];position=new z;axis=new z;scratch=new z;turn=new vo;matrix=new Ho;skullOffset=new z;injuries=new Set;time=0;settings={blood:`full`,reducedMotion:!1};xray=new lk;constructor(e,t){this.effects=e,this.bake=t,e.scene.add(this.xray.root)}attach(e,t){this.bodies[e]?.mutilation.dispose(),this.xray.prepare(t.boxer);let n={graph:t,mutilation:new xO(t.boxer),shown:new Set,early:new Map,awaited:new Map,inflicted:new Set,fatalWounds:new Map,forced:new Set,fatalParts:[],burst:new Set,fatality:null,dead:null,gutsDropAt:null,gibbed:!1,vomitUntil:0,printed:[new z,new z],dragged:new z,sliding:!1,broke:null,spatter:0,lost:0,dripIn:0,dripped:0,diedAt:0,voided:!1};return this.bodies[e]=n,n.mutilation}get graphic(){return this.settings.blood===`full`&&!this.settings.reducedMotion}expect(e,t){let n=this.bodies[e];n!=null&&!n.inflicted.has(t)&&n.awaited.set(t,this.time+pV)}sync(e,t,n,r,i,a=!1){this.time=i,this.settings=n;let o=this.bodies[e];if(o==null)return;let s=this.graphic;!s&&(o.gibbed||o.fatalParts.length>0||o.fatalWounds.size>0||o.forced.size>0)&&this.unmaim(o,e);let c=this.injuries;c.clear();let l=!1;for(let e of t.injuries){let t=o.awaited.get(e);if(t!==void 0){if(i<=t){l=!0;continue}o.awaited.delete(e)}c.add(e),o.early.delete(e),o.inflicted.add(e)}for(let[e,t]of o.early)i>t?o.early.delete(e):c.add(e);for(let e of o.forced)c.add(e);if(l)for(let e of o.shown)c.add(e);o.shown.clear();for(let e of c)o.shown.add(e);for(let e of o.inflicted)o.shown.has(e)||o.inflicted.delete(e);let u=o.graph.boxer,d=L.clamp(1-t.blood_volume/be,0,1);if(o.mutilation.apply(o.shown,s?`full`:n.blood===`off`?`off`:`reduced`),o.mutilation.setPallor(n.blood===`off`?0:d),o.graph.setInjuries(o.shown,s),o.graph.setFaint(o.dead===null?L.clamp((.6-t.blood_volume/be)/.6,0,1):0),o.dead!==null&&!o.graph.isDead&&o.graph.die(o.dead),o.mutilation.update(r,i),this.xray.owner===e&&(s&&!o.gibbed?this.xray.update(r):this.xray.stop()),u.root.visible=!o.gibbed,o.gibbed)return;this.wear(o,e,d,r);let f=o.mutilation.isPartGone(`upper_body`),p=f||u.isDecapitated,m=p||u.isHeadBurst,h=1-.65*d,g=0;for(let t of _e){let n=o.fatalWounds.get(t)??0,r=`blood`,c=lV.get(t);for(let e=0;e0&&o.mutilation.anchor(t,this.position,this.axis)&&this.effects.anchorWound(e,t,this.position,this.axis)}for(let t=0;t=o.gutsDropAt&&(o.gutsDropAt=null,this.effects.dropGuts(e)),this.effects.anchorGuts(e,this.position,this.axis)):this.effects.gutsOut(e)&&this.effects.clearGuts(e),i=vV&&this.track(o,Math.min(1,g)),o.dead===null||!o.mutilation.anchor(`waist`,this.position,this.axis))return;this.effects.setCorpse(e,s?this.position:null);let v=s&&this.position.yEV?o.dragged.copy(this.position):y>TV&&(this.effects.smear(o.dragged.x,o.dragged.z,this.position.x,this.position.z,DV),o.dragged.copy(this.position)),o.sliding=v}gibbed(e){return this.bodies[e]?.gibbed===!0}hasGlove(e,t){let n=this.bodies[e]?.shown;return n===void 0||!this.graphic||!(n.has(QV[t][0])||n.has(QV[t][1]))}wear(e,t,n,r){let i=e.graph.boxer,a=this.graphic,o=this.bodies[1-t]??null;e.lost=n;let s=o===null?0:o.lost*kV+o.shown.size*AV,c=a?Math.min(1,Math.max(e.spatter,s)):0;i.headInjury.setSpatter(c*.8),i.bodyInjury.setSpatter(c),i.setGloveBlood(Math.max(i.gloveBloodLevel,c)),i.setTrunksBlood(Math.max(i.trunksBloodLevel,c*.7));let l=this.settings.blood===`off`?1:NV+Math.min(FV,n*PV);if(i.headInjury.setRun(l),i.bodyInjury.setRun(l),this.settings.blood===`off`&&(i.headInjury.clearMarks(),i.bodyInjury.clearMarks()),!a||e.dead!==null||i.gloveBloodLevel0))return;e.dripIn=BV/i.gloveBloodLevel,e.dripped+=1;let u=e.dripped%2;this.hasGlove(t,YV[u])&&(i.rig.bones[HV[u]].getWorldPosition(this.position),this.position.y-=VV,this.effects.shed(this.position,t*4099+e.dripped))}land(e,t,n,r,i,a,o,s=0,c=1){let l=this.bodies[t]??null,u=this.bodies[e]??null;if(l!==null&&n!==null&&this.hasGlove(t,n)?l.graph.boxer.rig.bones[HV[n===`left`?0:1]].getWorldPosition(this.scratch):this.scratch.copy(o),this.bruise(e,this.scratch,r,i),this.graphic&&(a>0&&l!==null&&(l.spatter=Math.min(1,l.spatter+a*jV)),a>0&&u!==null&&(u.spatter=Math.min(1,u.spatter+a*jV*MV)),!(u===null||u.gibbed))){for(let t=0;t<_e.length;t+=1){let n=_e[t],i=this.effects.woundStrength(e,n);i<=0||(r===`head`?!uV.has(n):uV.has(n)||dV.has(n))||u.mutilation.anchor(n,this.position,this.axis)&&this.effects.sprayFluid(`blood`,this.position,c,Math.round(WV*i),s+t+1,.8)}r===`head`&&u.shown.has(`broken_jaw`)&&u.mutilation.anchor(`mouth`,this.position,this.axis)&&this.effects.spawnTeeth(this.position,c,GV,s)}}bruise(e,t,n,r){let i=this.bodies[e];if(i==null||i.gibbed||this.settings.blood===`off`)return;let a=i.graph.boxer,o=n===`head`?a.headMesh:wD(a,`body`);if(o===null||!i.mutilation.skinMatrix(n,n===`head`?`head`:`chest`,this.matrix))return;let s=this.position.copy(t).applyMatrix4(this.matrix.invert()),c=o.geometry.getAttribute(`position`),l=1/0,u=-1;for(let e=0;eUV.top||Math.abs(t)>UV.half))continue;let i=(t-s.x)**2+(r-s.y)**2+(c.getZ(e)-s.z)**2;ia.mutilation.anchor(e,c,l);switch(t){case`broken_nose`:d(`nose`)&&s.sprayFluid(`blood`,c,r,140,n,1.1);break;case`broken_jaw`:d(`mouth`)&&(s.spawnTeeth(c,r,5,n),s.sprayFluid(`blood`,c,r,180,n));break;case`jaw_torn`:d(`mouth`)&&(this.fling(a,e,`jaw`,n,r,{radius:.05,speed:1.2,lift:.8}),s.spawnDebris(`jawbone`,c,r,1,n,1.2),s.spawnTeeth(c,r,9,n),s.sprayFluid(`blood`,c,r,420,n,1.2));break;case`eye_left_out`:case`eye_right_out`:d(`eye_${u}`)&&(s.gougeEye(e,c,l,r,n,u),s.sprayFluid(`blood`,c,r,120,n));break;case`ear_left_torn`:case`ear_right_torn`:d(`ear_${u}`)&&(s.spawnDebris(`ear`,c,r,1,n),s.sprayFluid(`blood`,c,r,130,n));break;case`face_left_flayed`:case`face_right_flayed`:d(`eye_${u}`)&&(s.spawnDebris(`skin`,c,r,3,n),s.sprayFluid(`blood`,c,r,260,n));break;case`skull_fractured`:d(`skull`)&&(s.spawnDebris(`shard`,c,r,7,n,1.2),s.spawnDebris(`brain`,c,r,8,n),s.sprayFluid(`blood`,c,r,300,n,1.3),s.sprayFluid(`brain`,c,r,90,n));break;case`shoulder_left_dislocated`:case`shoulder_right_dislocated`:break;case`arm_left_broken`:case`arm_right_broken`:d(`elbow_${u}`)&&(s.spawnDebris(`bone`,c,r,3,n),s.sprayFluid(`blood`,c,r,200,n));break;case`forearm_left_severed`:case`forearm_right_severed`:this.fling(a,e,`forearm_${u}`,n,r,{radius:.07,speed:1.1}),d(`elbow_${u}`)&&(s.spawnDebris(`bone`,c,r,2,n),s.spawnDebris(`flesh`,c,r,8,n),s.sprayFluid(`blood`,c,r,600,n,1.3));break;case`arm_left_torn`:case`arm_right_torn`:this.fling(a,e,`arm_${u}`,n,r,{radius:.08,speed:1,spin:.7}),d(`shoulder_${u}`)&&(s.spawnDebris(`flesh`,c,r,14,n),s.spawnDebris(`bone`,c,r,2,n),s.sprayFluid(`blood`,c,r,800,n,1.4));break;case`ribs_left_broken`:case`ribs_right_broken`:d(`ribs_${u}`)&&(s.spawnDebris(`bone`,c,r,2,n,.8),s.sprayFluid(`blood`,c,r,140,n));break;case`liver_ruptured`:this.vomit(e,n,1.6);break;case`disemboweled`:d(`belly`)&&(s.spillGuts(e,c,n,hV),s.spawnDebris(`organ`,c,r,3,n),s.spawnDebris(`gut`,c,r,4,n),s.spawnDebris(`fat`,c,r,4,n),s.sprayFluid(`blood`,c,r,650,n,1.2),s.sprayFluid(`bile`,c,r,110,n));break;case`knee_left_blown`:case`knee_right_blown`:d(`knee_${u}`)&&(s.spawnDebris(`bone`,c,r,2,n,.7),s.sprayFluid(`blood`,c,r,110,n))}return!0}rebreak(e,t){let n=this.bodies[e],r=n?.broke??null;return n==null||r===null||r.tick!==t||!this.graphic||n.gibbed?!1:(this.xray.start(e,n.graph.boxer,n.mutilation,r.site,r.x,r.z),!0)}drawBreak(e,t,n,r){if(this.xray.owner<0)return;let i=this.effects.mistPoints,a=i.visible,o=r.visible;i.visible=!1,r.visible=!1,this.xray.drawInset(e,t,n),i.visible=a,r.visible=o}holdXray(e,t){let n=this.bodies[e];n!=null&&this.xray.start(e,n.graph.boxer,n.mutilation,t,1,0,!0)}vomit(e,t,n=1.3){let r=this.bodies[e];r==null||r.gibbed||this.settings.reducedMotion||(r.graph.retch(n),this.settings.blood===`full`&&r.mutilation.anchor(`mouth`,this.position,this.axis)&&(r.vomitUntil=this.time+n,this.effects.gush(e,this.position,this.axis.addScaledVector(rH,-.4).normalize(),n,520,t,`bile`),this.effects.sprayFluid(`blood`,this.position,0,90,t,.6),this.effects.puddle(this.position.x+this.axis.x*OV,this.position.z+this.axis.z*OV,.22,`bile`,t)))}fatality(e,t,n,r){let i=this.bodies[e];if(i==null||i.fatality!==null||!this.graphic)return!1;i.fatality=t;let a=this.effects,o=this.position,s=this.axis,c=(t,i,s=1)=>a.spawnDebris(t,o,r,i,n,s,e),l=(e,t,i=1)=>a.sprayFluid(e,o,r,t,n,i);if(t===`eyes_out`){for(let t=0;ta||Math.hypot(this.position.x-s.x,this.position.z-s.z)t!==n&&e.mutilation.isPartGone(t)),d=[],f=new z;for(let e of nH[n]){let t=wD(c,e);if(t===null||!t.visible)continue;let r=t=>xD(n,e,t)&&!u.some(n=>xD(n,e,t)),i=t.geometry.getAttribute(`position`),a=t.geometry.getIndex(),o=0,s=0,p=new Uint8Array(i.count);if(a===null)p.fill(1);else for(let e=0;e0&&d.push(this.bake(c,e,t,l,this.turn,o===s?void 0:r))}return d.length>0&&this.effects.flingPart(oH(t,n),d,l,this.turn,i,r,{...a,part:n})}};function oH(e,t){return`${e}:${t}`}var sH=96,cH=4,lH=2.5,uH=.45,dH=.032,fH=e=>()=>(e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296);function pH(e){let t=document.createElement(`canvas`);t.width=sH,t.height=sH;let n=t.getContext(`2d`);if(n===null)return t;let r=fH(e),i=sH/2,a=4+Math.floor(r()*3);for(let e=0;e.05)||!Number.isFinite(e)||!Number.isFinite(t))return;let i=fH((Number.isSafeInteger(r)?r:0)*40503+11),a=Math.min(24,Math.max(1,Math.round(n*12))),o=.7+.3*Math.min(3,n);for(let r=0;r=1.5?1.8:1),l=lH+i()*2.5;this.drops.push({x:Math.min(1,Math.max(0,a?i():e+(i()+i()-1)*s*1.6)),y:Math.min(1,Math.max(0,a?i():t+(i()+i()-1)*s)),radius:c,alpha:.6+i()*.35,life:l,maxLife:l,run:c>=dH?.02+i()*.04:0,ran:0,sprite:Math.floor(i()*cH),turn:i()*Math.PI*2})}this.drops.length>96&&this.drops.splice(0,this.drops.length-96)}update(e){let t=Number.isFinite(e)?Math.max(0,e):0;for(let e=this.drops.length-1;e>=0;--e){let n=this.drops[e];n.life-=t,n.life<=0?this.drops.splice(e,1):n.ran+=n.run*t*(n.life/n.maxLife)}}draw(e,t,n){if(this.drops.length!==0){this.sprites??=Array.from({length:cH},(e,t)=>pH(1374496523+t*7919)),e.save();for(let r of this.drops){let i=Math.min(1,r.life/(r.maxLife*uH)),a=r.radius*n,o=r.x*t,s=(r.y+r.ran)*n;if(e.globalAlpha=r.alpha*i,r.ran>0){let t=r.y*n,i=e.createLinearGradient(0,t,0,s);i.addColorStop(0,`rgba(88,0,6,0)`),i.addColorStop(1,`rgba(88,0,6,0.6)`),e.fillStyle=i,e.beginPath(),e.moveTo(o-a*.06,t),e.lineTo(o+a*.06,t),e.lineTo(o+a*.28,s),e.lineTo(o-a*.28,s),e.closePath(),e.fill()}e.save(),e.translate(o,s),e.rotate(r.turn),e.drawImage(this.sprites[r.sprite],-a,-a,a*2,a*2),e.restore()}e.restore()}}clear(){this.drops.length=0}},hH=.026,gH=.038,_H=22,vH=[[.55,.85],[.55,.1],[.4,-.12],[-.4,-.12],[-.55,.05],[-.55,.6],[-.32,.62],[-.3,.16],[.3,.16],[.32,.85]],yH=.03;function bH(){let e=[],t=[],n=vH.length,r=new z,i=new z,a=new z;for(let t=0;t<=_H;t+=1){let n=t/_H*2-1;r.set(n*hH,0,gH*(1-n*n)-gH*.5),i.set(hH,0,-2*gH*n).normalize(),a.set(i.z,0,-i.x),a.dot(r.clone().setY(0).add(new z(0,0,gH*.5)))<0&&a.negate();for(let[t,n]of vH)e.push(r.x+a.x*t*.01,n*.01,r.z+a.z*t*.01)}for(let e=0;e<_H;e+=1)for(let r=0;r=50:e===`hit`&&t>=65:!1}var SH=9.81,CH=.32,wH=4.5,TH=.04,EH=3;function DH(){return{out:!1,moving:!1,sliding:!1,x:0,y:-50,z:0,vx:0,vy:0,vz:0,wx:0,wy:0,wz:0,bounces:0,age:0,restYaw:0}}function OH(e,t,n,r){if(!e.out||!e.moving)return!1;e.age+=n;let i=r+.006;if(!e.sliding)e.vy-=SH*n,e.x+=e.vx*n,e.y+=e.vy*n,e.z+=e.vz*n,NH(t,e.wx*n,e.wy*n,e.wz*n),e.y<=i&&(e.y=i,e.bounces.6?(e.bounces+=1,e.vy=-e.vy*CH,e.vx*=.72,e.vz*=.72,e.wx*=.55,e.wy*=.7,e.wz*=.55):(e.vy=0,e.sliding=!0));else{let r=Math.hypot(e.vx,e.vz),a=Math.max(0,r-wH*n);a<=TH?(e.vx=0,e.vz=0):(e.vx*=a/r,e.vz*=a/r),e.x+=e.vx*n,e.z+=e.vz*n,e.y=i,e.wy*=Math.exp(-4*n),e.restYaw+=e.wy*n,AH.setFromAxisAngle(kH,e.restYaw),t.slerp(AH,1-Math.exp(-12*n)),e.vx===0&&e.vz===0&&t.angleTo(AH)<.02&&(t.copy(AH),e.moving=!1)}return e.moving}var kH=new z(0,1,0),AH=new vo,jH=new vo,MH=new Qo;function NH(e,t,n,r){jH.setFromEuler(MH.set(t,n,r)),e.multiply(jH).normalize()}var PH=[.84,.78,.62],FH=[.4,.04,.04],IH=[.3,.012,.018],LH=[.5,.045,.05],RH=[.86,.64,.16],zH=[.42,.19,.09],BH=[.92,.88,.74],VH=[.72,.36,.34],HH=[.82,.52,.46],UH=(e,t,n)=>{let r=Math.min(1,Math.max(0,n));return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r,e[2]+(t[2]-e[2])*r]},WH=e=>{let t=Math.min(1,Math.max(0,e));return t*t*(3-2*t)},GH=(e,t,n=0)=>.5+.25*Math.sin(e.x*t*1.31+n)*Math.sin(e.y*t*1.93+n*1.7)+.25*Math.sin(e.z*t*1.57+n*.6)*Math.sin(e.x*t*.83-n),KH=e=>()=>(e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296),qH=new z;function JH(e,t){e.deleteAttribute(`normal`),e.deleteAttribute(`uv`);let n=Xh(e,1e-5);e.dispose();let r=n.getAttribute(`position`);for(let e=0;enew Ho().compose(new z(e,t,n),new vo().setFromEuler(new Qo(r,i,a)),new z(o,s,c));function QH(e,t,n){return YH(new Fu(new lu(e.map(e=>new z(...e))),Math.max(4,e.length*3),t,7,!1),n)}var $H=new Map;function eU(e){let t=$H.get(e);return t===void 0&&(t=e(),$H.set(e,t)),t.clone()}function tU(){return XH([YH(JH(new Du(1,3),e=>{e.normalize();let t=.45+.55*WH((e.x+1)/2),n=1-.34*Math.exp(-(((e.x+.2)/.14)**2))*WH(e.z+.6),r=1+.07*Math.sin(e.x*5.1+.7)*Math.sin(e.z*4.3+1.9);e.set(e.x*.1*r,(e.y>0?e.y:e.y*.4)*.04*t*r,e.z*.062*n*(.7+.3*t))}),e=>UH(UH([.2,.035,.022],[.34,.07,.04],GH(e,70)),IH,e.y<-.006?.5:0)),YH(JH(new Du(1,2),e=>e.set(e.x*.03,e.y*.012,e.z*.014)),[.16,.24,.04],ZH(.03,-.012,.03,0,.5,0)),QH([[.01,.004,-.03],[0,.012,-.055],[-.012,.014,-.075]],.007,e=>UH([.16,.05,.2],IH,WH((-e.z-.06)*60)))])}function nU(){return XH([YH(JH(new Du(1,3),e=>{e.normalize();let t=1-.42*Math.exp(-((e.x/.4)**2))*WH(e.z);e.set(e.x*.058,e.y*.024,e.z*.033*t-e.x*e.x*.012)}),e=>UH([.3,.05,.075],[.19,.025,.05],GH(e,120,1.3))),QH([[0,0,.014],[.004,.002,.034],[.018,0,.058],[.02,-.002,.082]],.0048,e=>UH([.86,.72,.56],IH,WH((e.z-.066)*70))),QH([[-.006,.002,.014],[-.012,.004,.034],[-.03,.002,.046]],.0042,IH),YH(JH(new Du(1,1),e=>e.set(e.x*.014,e.y*.009,e.z*.01)),RH,ZH(0,.002,.02))])}function rU(){return XH([YH(JH(new Du(1,3),e=>{e.normalize();let t=.55+.45*WH((1-e.z)/2+.1),n=1-.3*Math.exp(-(((e.z-.1-e.x*.3)/.1)**2)),r=1+.035*Math.sin(e.x*23)*Math.sin(e.y*19)*Math.sin(e.z*21);e.set(e.x*.062*t*n*r,(e.y>0?e.y:e.y*.55)*.036*t*n*r,e.z*.09*r)}),e=>UH(UH([.66,.34,.34],[.34,.16,.2],WH(GH(e,160,.4)*1.7-.5)),IH,WH((e.z-.05)*22)*.7)),YH(new Zl(.011,.012,.045,9,5,!0),e=>Math.abs((e.y+.5)*110%2)<1?[.84,.74,.62]:[.6,.26,.24],ZH(0,.006,.105,Math.PI/2-.2,0,0))])}function iU(){let e=new lu([[-.085,0,.012],[-.045,.004,-.02],[0,0,.018],[.04,.003,-.016],[.082,0,.014]].map(e=>new z(...e))),t=[],n=[],r=[],i=e.computeFrenetFrames(30,!1);for(let r=0;r<=30;r+=1){let a=r/30,o=e.getPointAt(a),s=Math.min(1,Math.sin(a*Math.PI)*5),c=.0175*(.82+.18*Math.abs(Math.sin(a*Math.PI*5.5)))*(.25+.75*s);for(let e=0;e<9;e+=1){let l=e/9*Math.PI*2,u=qH.copy(i.normals[r]).multiplyScalar(Math.cos(l)).addScaledVector(i.binormals[r],Math.sin(l));t.push(o.x+u.x*c,o.y+u.y*c,o.z+u.z*c);let d=1-.3*(1-Math.abs(Math.sin(a*Math.PI*5.5))),f=e===0?IH:UH(UH(VH,HH,.5+.5*Math.sin(a*23+e)),IH,s<1?.8:0);n.push(f[0]*d,f[1]*d,f[2]*d)}}for(let e=0;e<30;e+=1)for(let t=0;t<9;t+=1){let n=e*9+t,i=e*9+(t+1)%9;r.push(n,i,n+9,i,i+9,n+9)}let a=new yc;a.setAttribute(`position`,new sc(t,3)),a.setAttribute(`color`,new sc(n,3)),a.setIndex(r),a.computeVertexNormals();let o=a.toNonIndexed();return a.dispose(),XH([o,...[[-.03,-.004,-.03],[.012,-.004,.03],[.05,-.004,-.028]].map(([e,t,n])=>YH(JH(new Du(1,1),e=>e.set(e.x*.016,e.y*.007,e.z*.011)),RH,ZH(e,t,n,0,e*20,0)))])}function aU(){let e=[[.012,.008],[.004,.0105],[-.01,.0075],[-.013,-.004],[-.002,-.0095],[.01,-.0065]],t=[-1,-.72,-.3,.2,.62,1],n=[.02,.62,1,.9,.5,.02],r=[.004,-.002,0,.001,-.003,.005],i=[],a=[],o=(i,a)=>{let[o,s]=e[a%e.length];return[t[i]*.062,s*n[i],o*n[i]+r[i]]},s=(n,r)=>{let i=Math.abs(t[n]);return UH(r%e.length===3||r%e.length===4?UH(PH,FH,.75):PH,IH,WH((i-.6)*3.2))};for(let n=0;nUH(zH,LH,WH((-e.x-.006)*90));return XH([YH(JH(new Du(1,3),e=>{e.normalize();let t=e.y>0?1-.75*Math.exp(-(((e.x-.1)/.5)**2+((e.z+.1)/.55)**2)):1;e.set(e.x*.019,e.y*.0055*t,e.z*.031*(1-.18*e.x))}),t=>UH(e(t),[.24,.08,.05],t.y<.003&&t.y>-.001?.5:0)),YH(new Pu(.024,.0048,7,18,Math.PI*1.25),zH,ZH(-.001,.004,.004,-Math.PI/2,0,-Math.PI*.72,.78,1.18,1)),YH(JH(new Du(1,2),e=>e.set(e.x*.0095,e.y*.0055,e.z*.0105)),e,ZH(.002,.002,.031)),YH(JH(new Du(1,1),e=>e.set(e.x*.005,e.y*.005,e.z*.007)),e,ZH(-.011,.004,.006)),YH(JH(new Du(1,1),e=>e.set(e.x*.006,e.y*.005,e.z*.022)),LH,ZH(-.017,0,.002))])}var sU=12;function cU(){let e=e=>[Math.sin(e)*.046,Math.cos(e)*.056-.02],t=[],n=e=>UH(UH(PH,[.7,.6,.44],GH(e,200)),IH,WH((e.y-.003)*220)*.75),r=Math.PI*.62,i=[];for(let t=0;t<=22;t+=1){let[n,a]=e(-r+t/22*r*2);i.push(new z(n,0,a))}let a=new Fu(new lu(i),44,.0085,8,!1);t.push(YH(JH(a,e=>e.setY(e.y*1.35)),n)),t.push(YH(JH(new Du(1,2),e=>e.set(e.x*.016,e.y*.013,e.z*.011)),n,ZH(0,-.003,.038)));for(let n=0;nUH(BH,[.7,.2,.14],WH((-e.y-5e-4)*400)),ZH(a,.0125+(s?.0045:.003),o,0,-i,0))),t.push(YH(JH(new Du(1,1),e=>e.set(e.x*.0058,e.y*.0045,e.z*.0058)),c?[.05,.004,.006]:[.5,.07,.08],ZH(a,.0105,o)))}for(let n of[-1,1]){let[i,a]=e(n*r),o=JH(new Jl(.008,.05,.026,1,4,2),e=>{let t=e.y/.05+.5;e.z+=-.012*t+(t>.9?Math.sign(e.z)*.004:0),e.x*=1-.3*t});t.push(YH(o,e=>UH(PH,IH,WH((e.y-.012)*60)),ZH(i,.02,a-.006,0,n*.25,n*-.12))),t.push(YH(JH(new Du(1,1),e=>e.set(e.x*.009,e.y*.006,e.z*.014)),LH,ZH(i,.047,a-.016)))}let o=XH(t);return o.translate(0,-.016,0),o.computeBoundingBox(),o.computeBoundingSphere(),o}function lU(){let e=(e,t,n)=>{let r=t/13*Math.PI*2,i=.55+.45*Math.abs(Math.sin(t*2.7+.9))+.12*Math.sin(t*5.3),a=e/3*i,o=Math.cos(r)*a*.062,s=Math.sin(r)*a*.044;return[o,.009*Math.sin(o*60+.4)*Math.cos(s*48)+.3*(o*o+s*s)/.062+n*.0028*(1-e/3*.7),s]},t=[],n=[],r=(e,r,i,a)=>{for(let o of[e,r,i])t.push(...o),n.push(...a(o))},i=()=>zH,a=e=>Math.sin(e[0]*310+1)*Math.sin(e[2]*270)>.45?RH:UH(LH,IH,.5+.5*Math.sin(e[0]*140+e[2]*90));for(let t=0;t<3;t+=1)for(let n=0;n<13;n+=1){let o=(n+1)%13;r(e(t,n,1),e(t+1,o,1),e(t+1,n,1),i),r(e(t,n,0),e(t+1,n,0),e(t+1,o,0),a),t>0&&(r(e(t,n,1),e(t,o,1),e(t+1,o,1),i),r(e(t,n,0),e(t+1,o,0),e(t,o,0),a))}for(let t=0;t<13;t+=1){let n=(t+1)%13;r(e(3,t,1),e(3,n,1),e(3,t,0),()=>LH),r(e(3,n,1),e(3,n,0),e(3,t,0),()=>LH)}let o=new yc;return o.setAttribute(`position`,new sc(t,3)),o.setAttribute(`color`,new sc(n,3)),o.computeVertexNormals(),XH([o])}function uU(){let e=KH(795558343),t=[];for(let n=0;n<9;n+=1){let r=e()*Math.PI*2,i=n===0?0:.012+e()*.02,a=n===0?.021:.009+e()*.009,o=e();t.push(YH(JH(new Du(1,2),e=>e.set(e.x*a,e.y*a*.7,e.z*a)),UH(RH,[.92,.8,.36],o),ZH(Math.cos(r)*i,(e()-.3)*.008,Math.sin(r)*i*.8)))}return t.push(YH(JH(new Du(1,1),e=>e.set(e.x*.02,e.y*.005,e.z*.009)),LH,ZH(.018,-.006,.01,0,.6,0))),XH(t)}function dU(){let e=e=>UH(UH(PH,[.68,.58,.42],GH(e,260)),IH,WH(GH(e,90,2.2)*2.4-1.3)),t=YH(JH(new Zl(.02,.02,.022,14,2),e=>{let t=1-.14*(1-(e.y/.011)**2);e.x*=t,e.z*=t*(e.z<0?.8:1)}),e,ZH(0,0,.008)),n=YH(new Zl(.0175,.0175,.005,12),e=>UH([.78,.5,.46],LH,GH(e,400)),ZH(0,.0125,.008)),r=YH(new Pu(.0115,.0042,6,12),e,ZH(0,0,-.016,Math.PI/2,0,0)),i=YH(JH(new Jl(.007,.011,.03,1,1,3),e=>{let t=.5-e.z/.03;e.x*=1-.55*t,e.y=e.y*(1-.4*t)-.008*t}),e,ZH(0,0,-.04)),a=[-1,1].map(t=>YH(JH(new Jl(.024,.008,.008,3,1,1),e=>{let n=.5+t*e.x/.024;e.y*=1-.5*n,e.z=e.z*(1-.4*n)-.006*n}),e,ZH(t*.027,0,-.012))),o=YH(new Zl(.0048,.0048,.03,7),e=>UH([.88,.8,.6],IH,WH((Math.abs(e.y)-.009)*200)),ZH(0,0,-.016));return XH([t,n,r,i,...a,o])}function fU(){return XH([YH(JH(new Jl(.075,.004,.022,9,1,3),e=>{let t=e.x/.075+.5;e.x+=.0375,e.z=e.z*(1-.75*t)*(1+.5*Math.sin(t*17))+.006*Math.sin(t*9),e.y+=.004*Math.sin(t*13)}),e=>UH(UH(LH,IH,GH(e,240)),RH,Math.sin(e.x*260)>.93?.8:0))])}var pU={position:new z(.012,.089,.004),direction:new z(.47,.88,-.12).normalize()};function mU(){let e=YH(JH(new Du(1,4),e=>{e.normalize();let t=WH((1-e.y)/2),n=1-.62*t**2.4,r=1-.1*Math.exp(-(((e.x+.12)/.14)**2))*(e.z>-.2?1:.4);e.set(e.x*.05*n*r+.012*t,e.y>0?e.y*.038:e.y*.07,e.z*.04*n*r)}),e=>{let t=Math.exp(-(((e.x+.008+e.y*.3)/.006)**2)),n=Math.exp(-(((e.y-.032)/.006)**2));return UH(UH(UH([.42,.03,.035],[.26,.015,.025],GH(e,130)),RH,Math.max(t*.85,n*.7)*WH(GH(e,420,.7)*2)),[.12,.02,.1],t>.6&&Math.sin(e.y*300)>.2?.7:0)}),t=(e,t,n)=>YH(JH(new Du(1,2),e=>{let t=1+.12*Math.sin(e.x*9)*Math.sin(e.z*8);e.set(e.x*n*t,e.y*n*.72,e.z*n*.9*t)}),e=>UH([.3,.02,.05],[.18,.012,.045],GH(e,200)),ZH(e,.04,t)),n=(e,t)=>n=>UH(e,IH,WH((n.y-t)*120)),r=QH([[-.006,.03,.006],[-.004,.058,.008],[.004,.08,.006],[.012,.095,.004]],.0125,n([.82,.56,.44],.082)),i=[-1,0,1].map(e=>QH([[-.003+e*.004,.066,.008],[-.012+e*.012,.086,.012-e*.004],[-.016+e*.018,.1,.014-e*.006]],.0048,n([.78,.5,.4],.09))),a=QH([[.016,.03,.022],[.012,.052,.026],[-.006,.066,.03],[-.026,.07,.03]],.0105,e=>UH([.3,.3,.52],IH,WH((-e.x-.014)*110))),o=QH([[.03,.036,-.016],[.034,.058,-.018],[.036,.08,-.02]],.0095,n([.16,.14,.34],.068)),s=XH([e,t(.027,-.006,.024),t(-.024,-.004,.022),r,...i,a,o]);return s.translate(0,-.006,0),s.computeBoundingBox(),s.computeBoundingSphere(),s}var hU=2;function gU(e){let t=Math.min(14,Math.max(0,e));return hU*t-1.55*t*t/28}function _U(e){return Math.max(0,1-Math.max(0,e)/14)**.8}function vU(e){let t=e-Math.floor(e);return t<.16?WH(t/.16):1-WH((t-.16)/.3)}var yU=9.81,bU=.97,xU=.6,SU=10,CU=1.02,wU=.5,TU=.5,EU=2e-4,DU=.45,OU=.03,kU=.15,AU=class{capacity;radius;selfAvoiding;positions;previous;nodes=0;segment=0;pinned=!1;resting=!0;paidOut=0;payRate=0;still=0;constructor(e,t,n){this.capacity=e,this.radius=t,this.selfAvoiding=n,this.positions=new Float32Array(e*3),this.previous=new Float32Array(e*3)}get held(){return this.pinned?Math.max(0,this.nodes-1-Math.floor(this.paidOut)):-1}spill(e,t,n,r,i){this.nodes=Math.min(this.capacity,Math.max(2,Math.round(e)+1)),this.segment=t,this.pinned=!0,this.resting=!1,this.paidOut=1,this.payRate=r,this.still=0;for(let e=0;e.4)for(let e=0;ethis.segment?this.segment:s=a-1?this.still+e:0,this.still>=TU&&(this.resting=!0,s.set(o)),!0}drape(e,t,n,r=!1){let i=Math.hypot(n.x,n.z);if(i<.3)return;let a=this.positions;for(let o=e;oDU||s<-.05)continue;let c=OU+kU*Math.min(1,Math.max(0,s)/.25),l=((a[e]-t.x)*n.x+(a[e+2]-t.z)*n.z)/i;if(l>=c+(r?1e-4:0))continue;let u=Math.max(0,c-l);if(a[e]=a[e]+n.x/i*u,a[e+2]=a[e+2]+n.z/i*u,!r)continue;let d=((a[e]-this.previous[e])*n.x+(a[e+2]-this.previous[e+2])*n.z)/i;this.previous[e]=this.previous[e]+n.x/i*d,this.previous[e+2]=this.previous[e+2]+n.z/i*d}}keepApart(e){let t=this.positions,n=this.radius*1.7;for(let r=e;r=n*n)continue;let c=Math.sqrt(s),l=Math.hypot(i,o)1e-10&&FU.copy(RU).normalize(),IU.addScaledVector(FU,-IU.dot(FU)),IU.lengthSq()<1e-8&&(IU.set(+(Math.abs(FU.x)<.9),0,Math.abs(FU.x)<.9?0:1),IU.addScaledVector(FU,-IU.dot(FU))),IU.normalize(),LU.crossVectors(FU,IU);let a=Math.min(e,n-1-e),c=this.radii[e]*(a===0?.08:a===1?.62:a===2?.9:1);for(let t=0;t0?t.fromBufferAttribute(n,0):t.set(0,1,0).applyQuaternion(e.mesh.quaternion),t.lengthSq()>1e-8?t.normalize():t.set(0,1,0)}var eG=e=>()=>(e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296),$=(e,t=0)=>Number.isFinite(e)?e:t,tG=()=>({alive:!1,x:0,y:-50,z:0,vx:0,vy:0,vz:0,rx:0,ry:0,rz:0,vrx:0,vry:0,vrz:0,scale:0,stretch:1,bounces:0,stained:!1,kind:`flesh`,resting:!1,born:0,owner:-1,fading:-1}),nG=e=>{for(let t of e)if(!t.alive)return!0;return!1},rG=new B(16054267),iG=.012,aG=.055,oG=90,sG=10,cG=.985,lG=new R(.097,.132),uG=.012,dG={r:.82,g:.86,b:.9},fG=4,pG=(e,t)=>Math.trunc(e)*2+(t===`left`?0:1),mG=new z(1,0,0),hG=[`blood`,`bile`,`brain`,`urine`],gG=2400,_G={liver:{build:tU,share:.06,size:[.8,.5],stretch:[.9,.3],stain:.5},kidney:{build:nU,share:.06,size:[.9,.5],stretch:[.9,.25],stain:.3},lung:{build:rU,share:.06,size:[.75,.45],stretch:[.9,.3],stain:.45},gut:{build:iU,share:.18,size:[.8,.5],stretch:[.8,.5],stain:.4},bone:{build:aU,share:.24,size:[.7,.8],stretch:[.8,.6],stain:.14},vertebra:{build:dU,share:.1,size:[.9,.3],stretch:[1,0],stain:.2},skin:{build:lU,share:.1,size:[.8,.8],stretch:[.7,.7],stain:.3},fat:{build:uU,share:.12,size:[.6,.7],stretch:[.8,.5],stain:.2},ear:{build:oU,share:.03,size:[1.3,.3],stretch:[1,0],stain:.14},jawbone:{build:cU,share:.016,size:[1.1,.15],stretch:[1,0],stain:.34}},vG=Object.keys(_G),yG=[`liver`,`kidney`,`lung`],bG=Object.fromEntries(_e.map((e,t)=>[e,t])),xG=14,SG=3.5,CG=1100,wG=.12,TG=.45,EG=FW*Math.sqrt(Math.PI),DG=e=>L.clamp((e-.3)/.6,0,1),OG=e=>xG+326*e**2.2,kG=e=>OG(e)*(1-DG(e)*.88*(1-EG)),AG=16,jG=8,MG=.4,NG=24,PG=11,FG=.046,IG=[0,0,1,3,6],LG=50,RG=48,zG=.6,BG=1,VG=.06,HG=.075,UG=4,WG=24,GG=1.3,KG=new vo().setFromEuler(new Qo(.95,0,0)),qG=60,JG=4,YG=5,XG=1.2,ZG=1.5,QG=.5;function $G(e){if(typeof e==`number`)return{x:e<0?-1:1,z:0};let t=Math.hypot(e.x,e.z);return Number.isFinite(t)&&t>1e-6?{x:e.x/t,z:e.z/t}:{x:1,z:0}}var eK=new z(0,1,0),tK=new z(0,0,1),nK=e=>Number.isFinite(e)?L.clamp(e,0,TW):0,rK=new Set([`hit`,`counter_hit`,`block`,`perfect_block`,`guard_break`,`knockdown`,`bleed`]);function iK(e,t,n,r){let i=Math.abs(e)-r;if(i<=0)return{position:e,velocity:t};let a=Math.sign(e);return Math.abs(n)<=r?{position:a*r,velocity:t*-.42}:{position:e,velocity:-a*Math.max(-a*t,i*sW)}}function aK(e){if(e.kind===`bleed`)return`ooze`;if(e.kind===`knockdown`)return`impact`;let t=e.detail.split(`:`);if(t.at(-1)===`body`)return`body_burst`;let n=t.find(e=>[`jab`,`straight`,`hook`,`uppercut`].includes(e));return n===`hook`?`fan`:n===`uppercut`?`plume`:`jet`}function oK(e,t){e.set($(t.x),$(t.y),$(t.z),$(t.w,1)),e.lengthSq()<1e-6?e.identity():e.normalize()}function sK(){return new qu({color:9063730,roughness:.58,metalness:.02,clearcoat:.25,clearcoatRoughness:.6})}function cK(e,t){let n=sK();n.map=t;let r=e?new e_(n,$h,{core:Pg,wash:!0,baked:!0}):new e_(n,Qh,{core:Ng,lids:Fg,baked:!0});if(!e)return{material:n,injury:r,look:new Vy(n,!0)};let i=n.onBeforeCompile;return n.onBeforeCompile=(e,t)=>{i.call(n,e,t),e.vertexShader=e.vertexShader.replace(`#include `,`#include -attribute vec3 bindPosition;`)},{material:n,injury:r,look:null}}var lK=0,uK=1,dK=2,fK=3;function pK(e,t,n){return e===void 0||e===`forearm_left`||e===`forearm_right`?lK:e===`head`?dK:e===`upper_body`?t?fK:uK:e===`torso`&&n?dK:uK}function mK(e,t,n,r=0){let i=new Ku({map:e,color:t,roughness:n===void 0?.6:.38,metalness:.02,side:2});return n!==void 0&&(xy(i,!0,n).value=r),i}function hK(e,t,n){n.identity();let r=e.getAttribute(`position`),i=e.getAttribute(`bindPosition`),a=e.getIndex();if(i===void 0||i.count!==r.count)return n;let o=new Uint8Array(r.count);if(a===null)o.fill(1);else for(let e=0;e({active:!1,eventId:null,fluid:`blood`,life:0,seconds:1,rate:0,accumulator:0,position:new z,axis:new z(0,1,0)}));simulationRemainder=0;ambientSeed=1597463007;shake=0;lowTier=!1;bloodLevel=`full`;lens=new mH;camera=null;lensPoint=new z;debrisCursor=new Map;visceraMaterial;viscera=[];visceraByShape={};wounds=[];woundsOpen=0;woundShare=1;woundClock=0;parts=[];partsThrown=0;partBox=new Bs;partMiddle=new z;partVertex=new z;limbMap;limbMaterial;trunkMap;trunkMaterial;fleshSections;spines=[];spineMesh;spineStretch;shredGeometry;shredMesh;spineNeck=new z;guts=[];heartGeometry;heartMesh;heartRest;heartRadius;heart={active:!1,moving:!1,owner:-1,age:0,beats:0,vx:0,vy:0,vz:0,vrx:0,vry:0,vrz:0,bounces:0,settle:-1,settleFrom:new vo,settleTo:new vo,settleFromY:0,pool:0,trail:0};corpses=[];flyGeometry;flyMaterial;flyMesh;flies;constructor(e,t=1024,n=UU){this.scene=e,this.budget=n,this.dropletPositions=new Float32Array(n.droplets*3),this.dropletColors=new Float32Array(n.droplets*3),this.dropletBuffers={position:new ic(this.dropletPositions,3),color:new ic(this.dropletColors,3)},this.dropletGeometry=V_(),this.dropletMaterial=new Ku({color:16777215,roughness:.3,metalness:.02}),this.dropletMesh=new _l(this.dropletGeometry,this.dropletMaterial,n.droplets),this.dropletMesh.instanceMatrix.setUsage(Aa),this.dropletMesh.frustumCulled=!1,this.dropletMesh.castShadow=!1,e.add(this.dropletMesh);for(let e=0;eObject.assign(new V(e.geometry,e.material),{castShadow:e.castShadow}));if(e.push(Object.assign(new V(this.stumpGeometry,this.jawMaterial),{castShadow:this.stumps[0].mesh.castShadow})),this.bakedStandIns===null){let e=new Io,t=[cK(!1,e),cK(!0,e)].flatMap(e=>[e.material,e.injury.variant(!1),e.injury.variant(!0)]),n=new Ku({color:1920728,roughness:.38,metalness:.03,map:e});xy(n,!0);let r=[mK(e,16777215),mK(null,16777215),mK(e,1920728,`gloves`),mK(e,1920728,`trunks`)],i=new _l(this.heartGeometry,this.visceraMaterial,1);i.setColorAt(0,this.gibColor.setHex(16777215)),i.castShadow=!0,this.bakedStandIns={map:e,materials:[...t,n,...r],instanced:[i,new _l(this.flyGeometry,this.flyMaterial,1)]}}for(let t of this.bakedStandIns.materials)e.push(Object.assign(new V(this.headGeometry,t),{castShadow:!0}));return e.push(Object.assign(new V(this.heartGeometry,this.visceraMaterial),{castShadow:!0}),...this.bakedStandIns.instanced),e}setCamera(e){this.camera=e}drawLens(e,t,n){this.lens.draw(e,t,n)}get lensDrops(){return this.lens.count}setBloodLevel(e){if(e===this.bloodLevel)return;let t=this.bloodLevel;this.bloodLevel=e,(e===`off`||t===`full`&&e===`reduced`)&&this.clearArcadeGore()}get shakeAmount(){return this.shake}get liveParticles(){return this.droplets.filter(e=>e.alive).length}get liveBloodParticles(){return this.droplets.filter(e=>e.alive&&e.blood).length}get liveMist(){return this.mists.filter(e=>e.alive).length}get canvasStains(){return this.canvasBlood.stains}useUploader(e){this.canvasBlood.useUploader(e)}setLowTier(e){this.canvasBlood.setLowTier(e),this.lowTier=e}get liveGibs(){return this.gibs.filter(e=>e.alive).length}get liveShards(){return this.shards.filter(e=>e.alive).length}debrisCount(e){let t=0;for(let n of this.gibs)n.alive&&n.kind===e&&(t+=1);for(let n of this.shards)n.alive&&n.kind===e&&(t+=1);for(let n of this.eyeballs)n.alive&&n.kind===e&&(t+=1);for(let n of this.viscera)for(let r of n.pieces)r.alive&&r.kind===e&&(t+=1);return t}get activeHeads(){return this.heads.filter(e=>e.active).length}headBurst(e){let t=this.stumps[Math.trunc(e)];return t!==void 0&&t.active&&t.mesh.material===this.jawMaterial}severedHeadPosition(e,t){let n=this.heads[Math.trunc(e)];return n===void 0||!n.active?!1:(t.copy(n.mesh.position),!0)}severedHeadFacing(e,t){let n=this.heads[Math.trunc(e)];return n===void 0||!n.active?!1:(t.set(0,0,1).applyQuaternion(n.mesh.quaternion),!0)}mouthpieceOut(e){return this.shields[Math.trunc(e)]?.out===!0}mouthpiecePosition(e,t){let n=this.shields[Math.trunc(e)];return n===void 0||!n.out?!1:(t.set(n.x,n.y,n.z),!0)}ejectMouthpiece(e,t,n,r,i,a,o=!1){if(e<0||e>=XU)return!1;let s=Math.trunc(e),c=this.shields[s],l=Number.isSafeInteger(i)?i:0;if(c.out&&!o||this.lastShieldEvent[s]===l)return!1;this.lastShieldEvent[s]=l;let u=eG(l*48271+s*7907+5),d=$G(r),f=.9+u()*.9,p=.9+u()*.9,m=(u()-.5)*1.1;Object.assign(c,DH(),{out:!0,moving:!0,x:$(t.x),y:$(t.y,1.45),z:$(t.z),vx:f*d.x-m*d.z,vy:p,vz:f*d.z+m*d.x,wx:(u()-.5)*26,wy:(u()-.5)*18,wz:(u()-.5)*26,restYaw:u()*Math.PI*2});let h=this.shieldMeshes[s];h.position.set(c.x,c.y,c.z),oK(h.quaternion,n),h.visible=!0,this.shieldMaterials[s].color.setHex(a).lerp(rG,.55);let g=this.bloodLevel===`full`;for(let e=0;e<(g?22:12);e+=1){let t=u()*Math.PI*2,n=g?e%3!=0:this.bloodLevel===`reduced`&&e%3==0;this.spawnDroplet(c.x+(u()-.5)*.03,c.y+(u()-.5)*.03,c.z+(u()-.5)*.03,c.vx*(.5+u()*.6)+Math.sin(t)*.4,c.vy*(.4+u()*.6),c.vz*.5+Math.cos(t)*.4,n?W_(u()):dG,.5+u()*.5,n)}return!0}gougeEye(e,t,n,r,i,a,o=!1){if(this.bloodLevel!==`full`||e<0||e>=XU)return;let s=Math.trunc(e),c=pG(s,a),l=this.eyes[c],u=Number.isSafeInteger(i)?i:0;if(l.active&&(o||l.eventId===u))return;l.active&&this.burstEye(s,a,u),l.active=!0,l.eventId=u,l.socket.set($(t.x),$(t.y,1.6),$(t.z)),l.facing.copy(n),l.hasSkull=!1,l.position.copy(l.socket).addScaledVector(n,iG*1.5),this.eyeDirection.copy(n).multiplyScalar(1.3);let d=$G(r);if(this.eyeDirection.x+=d.x*.5,this.eyeDirection.z+=d.z*.5,l.previous.copy(l.position),o||l.previous.addScaledVector(this.eyeDirection,-.016666666666666666),l.bleeding=o?0:sG,l.accumulator=0,this.eyeMeshes[c].visible=!0,this.nerveMeshes[c].visible=!0,this.writeEye(c),o)return;let f=eG(u*52711+s*3571+(a===`right`?977:0)+13);for(let e=0;e1e-8&&o.facing.copy(n).normalize(),r!==void 0&&i!==void 0&&(o.skull.set($(r.x),$(r.y,1.6),$(r.z)),oK(o.skullTurn,i),o.hasSkull=!0))}eyeOut(e,t){return t===void 0?this.eyes[pG(e,`left`)]?.active===!0||this.eyes[pG(e,`right`)]?.active===!0:this.eyes[pG(e,t)]?.active===!0}eyePosition(e,t,n){let r=this.eyes[pG(e,`left`)],i=this.eyes[pG(e,`right`)],a=n===`left`||n===void 0&&r?.active===!0?r:i;return a===void 0||!a.active?!1:(t.copy(a.position),!0)}updateEyes(e){for(let[t,n]of this.eyes.entries()){if(!n.active)continue;this.eyeDirection.copy(n.position).sub(n.previous).multiplyScalar(cG),n.previous.copy(n.position),n.position.add(this.eyeDirection),n.position.y-=cW*e*e,this.eyeDirection.copy(n.position).sub(n.socket);let r=this.eyeDirection.length();if(r>.055&&n.position.copy(n.socket).addScaledVector(this.eyeDirection,aG/r),n.hasSkull&&this.restOnFace(n)){n.previous.lerp(n.position,.6),this.eyeDirection.copy(n.position).sub(n.socket);let e=this.eyeDirection.length();e>.055&&n.position.copy(n.socket).addScaledVector(this.eyeDirection,aG/e)}if(n.position.y<0+iG&&(n.position.y=0+iG),this.bloodLevel===`full`&&n.bleeding>0)for(n.bleeding=Math.max(0,n.bleeding-e),n.accumulator+=e*this.forDevice(oG);n.accumulator>=1;){--n.accumulator;let e=.15+this.ambientRandom()*.5;this.spawnDroplet(n.socket.x,n.socket.y-.005,n.socket.z,n.facing.x*e+(this.ambientRandom()-.5)*.2,-.15-this.ambientRandom()*.4,n.facing.z*e+(this.ambientRandom()-.5)*.2,W_(this.ambientRandom()),.9,!0)}this.writeEye(t)}}restOnFace(e){this.eyeTurn.copy(e.skullTurn).invert();let t=this.eyeDirection.copy(e.position).sub(e.skull).applyQuaternion(this.eyeTurn),n=this.eyeSocketLocal.copy(e.socket).sub(e.skull).applyQuaternion(this.eyeTurn).z+iG+uG;if(t.z>=n)return!1;let r=Math.hypot(t.x/lG.x,t.y/lG.y);return r>=1?!1:(n-t.z<=(1-r)*Math.min(lG.x,lG.y)||r<1e-6?t.z=n:(t.x/=r,t.y/=r),e.position.copy(e.skull).add(t.applyQuaternion(e.skullTurn)),!0)}writeEye(e){let t=this.eyes[e],n=this.eyeMeshes[e],r=this.nerveMeshes[e];n.position.copy(t.position),this.eyeDirection.copy(t.position).sub(t.socket);let i=this.eyeDirection.length();i>1e-5&&(this.eyeDirection.multiplyScalar(1/i),r.quaternion.setFromUnitVectors(eK,this.eyeDirection),this.eyeDirection.addScaledVector(t.facing,.9).normalize(),n.quaternion.setFromUnitVectors(tK,this.eyeDirection)),r.position.copy(t.socket),r.scale.set(1,Math.max(.001,i-iG*.8),1)}returnMouthpiece(e){let t=Math.trunc(e),n=this.shields[t];n!==void 0&&(Object.assign(n,DH()),this.shieldMeshes[t].visible=!1,this.lastShieldEvent[t]=null)}clearMouthpieces(){for(let[e,t]of this.shields.entries())Object.assign(t,DH()),this.shieldMeshes[e].visible=!1,this.lastShieldEvent[e]=null}updateShields(e){for(let[t,n]of this.shields.entries()){if(!n.out||!n.moving)continue;let r=this.shieldMeshes[t],i=n.age<.3&&!n.sliding,a=n.x,o=n.z;OH(n,r.quaternion,e,0);let s=g_-yH-oW,c=iK(n.x,n.vx,a,s),l=iK(n.z,n.vz,o,s);if(n.x=c.position,n.vx=c.velocity,n.z=l.position,n.vz=l.velocity,r.position.set(n.x,n.y,n.z),i&&this.ambientRandom()e.active).length}get activeStumps(){return[...this.stumps,...this.handStumps].filter(e=>e.active).length}spawnDroplet(e,t,n,r,i,a,o,s,c,l=c?.0035+this.ambientRandom()**3*.0125:.0025+this.ambientRandom()**2*.004,u=`blood`){let d=this.liveDropletsthis.droplets[e].maxLife-this.droplets[e].life;for(let n=0;n0&&t(e[i-1])DW&&e.pop()}}forDevice(e){return Math.round(e*this.budget.droplets*(this.lowTier?.5:1)/UU.droplets)}uploadDroplets(e,t,n){if(this.dropletMesh.count=this.liveDroplets,t<=e)return;this.dropletMesh.instanceMatrix.addUpdateRange(e*16,(t-e)*16),this.dropletMesh.instanceMatrix.needsUpdate=!0;let r=this.dropletMesh.instanceColor;n&&r!==null&&(r.addUpdateRange(e*3,(t-e)*3),r.needsUpdate=!0)}retireDroplet(e){this.oldest.length=0;let t=this.liveDroplets-1,n=this.droplets[e];if(n.alive=!1,this.liveDroplets=t,e!==t){let r=this.droplets[t];this.droplets[e]=r,this.droplets[t]=n,this.dropletPositions.copyWithin(e*3,t*3,t*3+3),this.dropletColors.copyWithin(e*3,t*3,t*3+3),this.dropletMesh.setColorAt(e,this.dropletColor.setRGB(r.r,r.g,r.b)),this.writeDropletMatrix(e,r)}this.dropletPositions[t*3+1]=-50,this.writeDropletMatrix(t,n)}sprayDroplet(e,t,n,r,i,a,o,s,c,l,u,d){this.spawnDroplet(t,n,r,i*e.x-o*e.z,a,i*e.z+o*e.x,s,c,l,u,d)}writeDropletMatrix(e,t){if(!t.alive){this.dropletScale.setScalar(0),this.dropletQuaternion.identity(),this.dropletMatrix.compose(this.dropletVelocity.set(0,-50,0),this.dropletQuaternion,this.dropletScale),this.dropletMesh.setMatrixAt(e,this.dropletMatrix);return}let n=Math.hypot(t.vx,t.vy,t.vz);n>1e-4?(this.dropletVelocity.set(t.vx/n,t.vy/n,t.vz/n),this.dropletQuaternion.setFromUnitVectors(eK,this.dropletVelocity)):this.dropletQuaternion.identity();let r=Math.min(1,t.life/(t.maxLife*.3))*this.dropletCloseness*(t.blood&&this.bloodLevel===`full`?xW:1),i=H_(t.radius*r,n,this.dropletShape);this.dropletScale.set(i.width,i.length,i.width),this.dropletMatrix.compose(this.dropletVelocity.set(t.x,t.y,t.z),this.dropletQuaternion,this.dropletScale),this.dropletMesh.setMatrixAt(e,this.dropletMatrix)}spawnMist(e,t,n,r,i){let a=this.mistIndex%this.budget.mist;this.mistIndex+=1;let o=this.mists[a];o.alive=!0,o.x=$(e),o.y=$(t,1),o.z=$(n),o.maxLife=Math.max(.05,$(i,.5)),o.life=o.maxLife,o.scale=Math.max(.1,$(r,1)),this.mistPositions[a*3]=o.x,this.mistPositions[a*3+1]=o.y,this.mistPositions[a*3+2]=o.z,this.mistColors[a*4+3]=Math.min(1,o.scale),this.mistGeometry.attributes.position.needsUpdate=!0,this.mistGeometry.attributes.color.needsUpdate=!0}placeDecal(e,t,n,r,i,a,o){this.canvasBlood.stain($(e),$(t),Math.max(.01,$(n,.2))*.28,Math.max(.01,$(r,.15))*.28,$(i),L.clamp($(a,.4),0,.95),o)}splashLens(e,t,n,r,i){let a=this.camera;if(a===null||this.bloodLevel===`off`||!(r>0))return;let o=this.lensPoint.set($(e),$(t,1.5),$(n)),s=o.distanceTo(a.position);if(o.project(a),!(o.z<1)||Math.abs(o.x)>1.15||Math.abs(o.y)>1.15)return;let c=L.clamp((OW-s)/8.5,0,1);this.lens.splash((o.x+1)/2,(1-o.y)/2,c*r*(this.bloodLevel===`reduced`?.25:1),i)}ambientRandom(){return this.ambientSeed=Math.imul(this.ambientSeed^this.ambientSeed>>>15,1|this.ambientSeed),this.ambientSeed^=this.ambientSeed+Math.imul(this.ambientSeed^this.ambientSeed>>>7,61|this.ambientSeed),((this.ambientSeed^this.ambientSeed>>>14)>>>0)/4294967296}splatter(e,t,n,r=()=>this.ambientRandom(),i=12,a=gW){if(this.bloodLevel===`off`)return;let o=this.bloodLevel===`reduced`,s=o?Math.ceil(i/4):i,c=o?.35:_W;for(let i=0;i0?$(t.y):e.detail.endsWith(`:body`)?1.05:1.58,z:$(t.z)},f=e.kind===`bleed`,p=n||f?0:Math.round(s?(a?4:6)+Math.min(6,Math.max(0,e.amount)/40):(a?6:16)+Math.min(20,Math.max(0,e.amount)/20)),m={x:0,y:0,z:0,vx:0,vy:0,vz:0,life:0,radius:0,color:W_(0)},h=e.kind===`hit`||e.kind===`counter_hit`,g=h?Math.max(0,e.blood-Math.floor(Math.max(0,e.amount)/3)):0,_=n||e.blood<=0||this.bloodLevel===`off`?0:f?this.bloodLevel===`reduced`?1:Math.min(12,3+Math.floor(Math.max(0,e.amount)/8)):this.bloodLevel===`reduced`?Math.min(24,Math.round(e.blood*(a?.12:.24))):this.forDevice(a?Math.round(I_(e.blood,0)/2):o?I_(e.blood,0)+SW:I_(e.blood,h?e.amount:0));f||(this.shake=Math.min(.14,this.shake+(a?.008:Math.max(.012,e.amount/1500)))),o&&(this.shake=Math.min(.2,this.shake+.09));let v=o?1.2:h?L.clamp((e.amount-40)/60,0,1)*(.6+Math.min(100,e.blood)/150):0;!n&&!f&&e.blood>0&&this.splashLens(d.x,d.y,d.z,v,e.event_id);for(let e=0;e0&&t<=uW){let e=1-dW*t;this.spawnDroplet(m.x,m.y,m.z,m.vx*e,m.vy*e,m.vz*e,m.color,m.life,!0,m.radius*(1-fW*t));continue}let n=t===0,r=(i()-.5)*Math.PI,a=n?2.2+i()*1.8:.9+i()*1.5,o=a,s=.5+i()*1.25,u=(i()-.5)*.5;if(c===`fan`)o=a*(.45+Math.cos(r)*.35),s=.55+i()*1.15,u=Math.sin(r)*a*.9;else if(c===`plume`)o=a*(.25+i()*.25),s=1.8+i()*2.2,u=(i()-.5)*a*.65;else if(c===`body_burst`)o=a*(.55+i()*.45),s=-.15+i()*1.05,u=Math.sin(r)*a*.75;else if(c===`ooze`)o=.08+i()*.22,s=-.3-i()*.55,u=(i()-.5)*.22;else if(c===`impact`)o=a*(.45+i()*.65),s=.9+i()*2.1,u=Math.sin(r)*a;else{let e=n?.12:.34;o=a*(.8+i()*.35),s=n?1.3+i()*1.6:.5+i()*1.25,u=(i()-.5)*a*e}let f=o*l.x-u*l.z,p=o*l.z+u*l.x,h=W_(i()),g=d.x+(i()-.5)*.12,_=d.y+(i()-.5)*.14,v=d.z+(i()-.5)*.12,y=.65+i()*.85;n?(m.x=g,m.y=_,m.z=v,m.vx=f,m.vy=s,m.vz=p,m.color=h,m.life=y,m.radius=.008+i()*.008,this.spawnDroplet(g,_,v,f,s,p,h,y,!0,m.radius)):this.spawnDroplet(g,_,v,f,s,p,h,y,!0)}let y=s?o||e.kind===`counter_hit`||h&&(e.amount>=35||g>=vW):e.kind===`hit`&&e.amount>=70||o||e.kind===`counter_hit`||g>=16;if(!n&&e.blood>0&&this.bloodLevel!==`off`&&y){let t=s?this.forDevice(o?36:12+Math.min(24,Math.floor(g/2)+Math.floor(Math.max(0,e.amount-35)/6))):o?3:2,n=s?1:.35;for(let e=0;e0&&this.bloodLevel!==`off`){let t=o?1+Math.min(2,e.blood/55):.8+Math.min(1.2,g/30);this.splatter(d.x+(i()-.5)*.6,d.z+(i()-.5)*.6,s?t*1.3:t,i,x,o?hW:mW)}let S=e.amount>=70||e.kind===`counter_hit`&&e.amount>=P_,C=h&&(e.amount>=60||S&&g>=vW/4);if(s&&!n&&C&&!e.detail.endsWith(`:body`)){let t=Math.min(20,Math.max(3,Math.round((e.amount-10)/6)));for(let e=0;e0){e.sideLow=1/0,e.sideHigh=-1/0;for(let t=0;t=XU)return;let s=Math.trunc(e),c=Number.isSafeInteger(i)?i:0,l=this.heads[s];if(l.active||this.lastDecapitationEvent[s]===c)return;this.stopGush(s),this.applyBakedPart(l,o,a);let u=eG(c*104729+s*8191+23),d=$G(r);this.lastDecapitationEvent[s]=c,l.active=!0,l.moving=!0,l.eventId=c;let f=1.8+u()*1.1;l.vy=2.3+u()*1.1;let p=(u()-.5)*2.2;l.vx=f*d.x-p*d.z,l.vz=f*d.z+p*d.x,l.vrx=(u()-.5)*12,l.vry=(u()-.5)*12,l.vrz=(u()-.5)*12,l.bounces=0,l.trail=0,l.stained=!1,l.settle=-1,l.mesh.position.set($(t.x),$(t.y,1.55),$(t.z)),oK(l.mesh.quaternion,n),l.mesh.visible=!0;let m=this.stumps[s];m.mesh.material=this.stumpMaterial,m.active=!0,m.fountainLife=14,m.accumulator=0,m.seed=c|1,m.direction=d,m.mesh.position.copy(l.mesh.position),m.mesh.quaternion.copy(l.mesh.quaternion),m.mesh.visible=!0;for(let e=0;e=XU)return;let i=Math.trunc(e),a=Number.isSafeInteger(r)?r:0,o=this.stumps[i];if(o.active||this.lastBurstEvent[i]===a)return;this.lastBurstEvent[i]=a,this.stopGush(i);let s=eG(a*91813+i*6151+41),c=$G(n),l=$(t.x),u=$(t.y,1.6),d=$(t.z),f=(e,t,n,r,a)=>{for(let o=0;o=XU)return;let c=Math.trunc(e)*2+(t===`left`?0:1),l=Number.isSafeInteger(a)?a:0,u=this.hands[c];if(u.active||this.lastDismembermentEvent[c]===l)return;this.applyBakedPart(u,s,o);let d=eG(l*130363+c*12289+37),f=$G(i);this.lastDismembermentEvent[c]=l,u.active=!0,u.moving=!0,u.eventId=l;let p=1.3+d()*1.1;u.vy=1.5+d()*1.2;let m=(d()-.5)*1.8;u.vx=p*f.x-m*f.z,u.vz=p*f.z+m*f.x,u.vrx=(d()-.5)*16,u.vry=(d()-.5)*16,u.vrz=(d()-.5)*16,u.bounces=0,u.trail=0,u.stained=!1,u.mesh.position.set($(n.x),$(n.y,1.25),$(n.z)),oK(u.mesh.quaternion,r),u.mesh.visible=!0;let h=this.handStumps[c];h.active=!0,h.fountainLife=MW,h.accumulator=0,h.seed=l|1,h.direction=f,h.mesh.position.copy(u.mesh.position),h.mesh.quaternion.copy(u.mesh.quaternion),h.mesh.visible=!0;for(let t=0;t<$U;t+=1){let t=d()*Math.PI*2,n=.55+d()*1.8;this.sprayGib(f,u.mesh.position.x+(d()-.5)*.08,u.mesh.position.y+(d()-.5)*.08,u.mesh.position.z+(d()-.5)*.08,.5+d()*1.4+Math.sin(t)*n*.45,.5+d()*1.9,Math.cos(t)*n,d,`flesh`,Math.trunc(e))}for(let e=0;e=XU)return;let o=Math.trunc(e),s=Number.isSafeInteger(i)?i:0,c=eG(s*69061+o*2741+29),l=$G(r),u=this.tornAxis.copy(n);u.lengthSq()>1e-8&&Number.isFinite(u.lengthSq())||u.set(0,1,0),u.normalize();let d=$(t.x),f=$(t.y,1.2),p=$(t.z);for(let e=0;e{for(let n=0;n=XU)return;let i=Math.trunc(e)*2+(t===`left`?0:1),a=this.handStumps[i];a.active&&(a.mesh.position.set($(n.x),$(n.y,1.2),$(n.z)),oK(a.mesh.quaternion,r))}anchorStump(e,t,n,r,i){if(this.bloodLevel!==`full`||e<0||e>=XU)return;let a=this.stumps[Math.trunc(e)];a.active&&(a.mesh.position.set($(t.x),$(t.y,1.5),$(t.z)),r===void 0||r.length<18?(a.mesh.geometry=this.stumpGeometry,oK(a.mesh.quaternion,n)):(nv(a.flesh,r,a.mesh.position,this.stumpOutward.set(0,1,0).applyQuaternion(n),.01,i),a.mesh.geometry=a.flesh,a.mesh.quaternion.identity()))}restoreFighter(e){if(e<0||e>=XU)return;let t=Math.trunc(e),n=this.heads[t];n.active=!1,n.moving=!1,n.mesh.visible=!1,n.mesh.position.y=-50,this.applyBakedPart(n,void 0,9063730);let r=this.stumps[t];r.active=!1,r.fountainLife=0,r.accumulator=0,r.mesh.visible=!1,r.mesh.position.y=-50,r.mesh.material=this.stumpMaterial,this.clearGibs(t),this.stopGush(t);for(let e of[t*2,t*2+1]){let t=this.eyes[e];t.active=!1,t.bleeding=0,this.eyeMeshes[e].visible=!1,this.nerveMeshes[e].visible=!1}this.clearWounds(t),this.clearGuts(t),this.clearSpine(t),this.clearCorpse(t),this.heart.owner===t&&(this.heart.active=!1,this.heartMesh.visible=!1);for(let e of[t*2,t*2+1]){let t=this.hands[e];t.active=!1,t.moving=!1,t.mesh.visible=!1,t.mesh.position.y=-50,this.applyBakedPart(t,void 0,1920728);let n=this.handStumps[e];n.active=!1,n.fountainLife=0,n.accumulator=0,n.mesh.visible=!1,n.mesh.position.y=-50}}drip(e,t,n,r=0){let i=+(r===1);if(this.bloodLevel===`off`||n||t<=.05){this.stopDrip(i);return}let a=this.dripEmitters[i];a.position.set($(e.x),$(e.y,1.5),$(e.z)),a.rate=this.bloodLevel===`reduced`?Math.min(3,t*3):Math.min(60,t*40),a.active=!0}stopDrip(e){let t=this.dripEmitters[+(e===1)];t.active=!1,t.rate=0,t.accumulator=0}gush(e,t,n,r,i,a,o=`blood`){if(this.bloodLevel!==`full`||e<0||e>=this.gushes.length)return;let s=this.gushes[Math.trunc(e)],c=Number.isSafeInteger(a)?a:0;s.active&&s.eventId===c||(s.active=!0,s.eventId=c,s.fluid=o,s.seconds=Math.max(.1,$(r,1)),s.life=s.seconds,s.rate=Math.max(0,$(i)),s.accumulator=0,this.anchorGush(e,t,n))}anchorGush(e,t,n){let r=this.gushes[Math.trunc(e)];r!==void 0&&r.active&&(r.position.set($(t.x),$(t.y,1.4),$(t.z)),n.lengthSq()>1e-8&&Number.isFinite(n.lengthSq())&&r.axis.copy(n).normalize())}gushing(e){return this.gushes[Math.trunc(e)]?.active===!0}stopGush(e){let t=this.gushes[e];t!==void 0&&(t.active=!1,t.eventId=null)}updateGushes(e){for(let t of this.gushes){if(!t.active)continue;if(t.life-=e,t.life<=0||this.bloodLevel!==`full`){t.active=!1;continue}let n=t.life/t.seconds,r=(t.seconds-t.life)*PW%1,i=Math.exp(-(((r-.5)/GW)**2));if(t.accumulator+=e*this.forDevice(t.rate)*n*(KW+.7*i),!(t.accumulator<1))for(XW.set(Math.abs(t.axis.y)<.9?0:1,+(Math.abs(t.axis.y)<.9),0).cross(t.axis).normalize(),ZW.crossVectors(t.axis,XW);t.accumulator>=1;){--t.accumulator;let e=Math.sqrt(this.ambientRandom())*JW,r=this.ambientRandom()*Math.PI*2,a=(qW+this.ambientRandom()*2)*(.5+.5*n)*(.7+.3*i);QW.copy(t.axis).multiplyScalar(Math.cos(e)).addScaledVector(XW,Math.sin(e)*Math.cos(r)).addScaledVector(ZW,Math.sin(e)*Math.sin(r)).multiplyScalar(a),this.spawnDroplet(t.position.x+(this.ambientRandom()-.5)*.03,t.position.y+(this.ambientRandom()-.5)*.02,t.position.z+(this.ambientRandom()-.5)*.03,QW.x,QW.y,QW.z,K_(t.fluid,this.ambientRandom()),1.2,!0,(.004+this.ambientRandom()**2*.01)*G_[t.fluid].drop,t.fluid)}}}updateDripEmitters(e){for(let t of this.dripEmitters)if(t.active)for(t.accumulator+=e*t.rate;t.accumulator>=1;)--t.accumulator,this.spawnDroplet(t.position.x+(this.ambientRandom()-.5)*.14,t.position.y-.04,t.position.z+(this.ambientRandom()-.5)*.1,(this.ambientRandom()-.5)*.08,-.25-this.ambientRandom()*.4,(this.ambientRandom()-.5)*.08,W_(this.ambientRandom()),1.1,!0)}spawnTeeth(e,t,n,r){if(this.bloodLevel===`off`)return;let i=this.bloodLevel===`reduced`?+(n>=3):Math.min(12,Math.max(1,Math.round(n)));if(i<=0)return;let a=eG((Number.isSafeInteger(r)?r:0)*7331+91),o=$G(t);for(let t=0;t>3):f.length>>2)}debrisSlot(e){let t=this.debrisCursor.get(e)??0,n=t%e.length;for(let r=0;r=0?n.scale*Math.max(0,n.fading)/AW:n.scale;this.gibScale.set(e*n.stretch,e,e/Math.sqrt(n.stretch))}this.gibMatrix.compose(this.gibPosition,this.gibQuaternion,this.gibScale),e.setMatrixAt(t,this.gibMatrix)}updateDebris(e,t,n,r){let i=!1;for(let[a,o]of e.entries()){if(!o.alive||o.resting&&o.fading<0)continue;if(i=!0,o.fading>=0){o.fading-=n,o.fading<=0&&(o.alive=!1),this.writeDebrisMatrix(t,a,o);continue}o.vy-=6.4*n,o.x+=o.vx*n,o.y+=o.vy*n,o.z+=o.vz*n,o.rx+=o.vrx*n,o.ry+=o.vry*n,o.rz+=o.vrz*n,this.confineGib(o);let e=0+(r===void 0?o.kind===`eye`?iG*JU:.015:r.low*o.scale);if(o.y<=e){if(o.y=e,!o.stained&&this.bloodLevel===`full`&&o.kind!==`tooth`&&o.kind!==`eye`&&(o.stained=!0,r===void 0?this.placeDecal(o.x,o.z,.24+o.scale*.16,.14+o.scale*.1,o.rz,.55,6425104):this.canvasBlood.stain(o.x,o.z,_G[r.shape].stain*o.scale,_G[r.shape].stain*o.scale*.7,o.ry,.6,6425104)),o.bounces.35)o.bounces+=1,o.vy=Math.abs(o.vy)*.3,o.vx*=.68,o.vz*=.68,o.vrx*=.7,o.vry*=.7,o.vrz*=.7;else{if(o.vx=0,o.vy=0,o.vz=0,o.vrx=o.vry=o.vrz=0,o.kind===`shard`&&(o.rx=Math.round(o.rx/Math.PI)*Math.PI),r!==void 0){let e=Math.round(o.rx/Math.PI),t=Math.round(o.rz/Math.PI);o.rx=e*Math.PI,o.rz=t*Math.PI,o.y=0+((e+t)%2==0?r.low:r.high)*o.scale}o.resting=!0}}this.writeDebrisMatrix(t,a,o)}i?t.instanceMatrix.needsUpdate=!0:r!==void 0&&(r.moving=!1)}confineGib(e){Math.abs(e.x)>3.05&&(e.x=Math.sign(e.x)*f_,e.vx*=-.45),Math.abs(e.z)>3.05&&(e.z=Math.sign(e.z)*f_,e.vz*=-.45)}updateDetachedParts(e,t){for(let n of e){if(n.active&&n.settle>=0&&n.settle<1){n.settle=Math.min(1,n.settle+t/aW);let e=n.settle*n.settle*(3-2*n.settle);n.mesh.quaternion.slerpQuaternions(n.settleFrom,n.settleTo,e),n.mesh.position.y=n.settleFromY+(n.settleToY-n.settleFromY)*e}if(!n.active||!n.moving)continue;let e=n.mesh.position.x,r=n.mesh.position.z;if(n.vy-=5.8*t,n.mesh.position.x+=n.vx*t,n.mesh.position.y+=n.vy*t,n.mesh.position.z+=n.vz*t,n.mesh.rotation.x+=n.vrx*t,n.mesh.rotation.y+=n.vry*t,n.mesh.rotation.z+=n.vrz*t,this.bloodLevel===`full`)for(n.trail+=t*this.forDevice(YU),n.trail>=1&&this.trailPoint.copy(n.cap.position).multiply(n.mesh.scale).applyQuaternion(n.mesh.quaternion).add(n.mesh.position);n.trail>=1;)--n.trail,this.spawnDroplet(this.trailPoint.x+(this.ambientRandom()-.5)*.03,this.trailPoint.y+(this.ambientRandom()-.5)*.03,this.trailPoint.z+(this.ambientRandom()-.5)*.03,n.vx*.35+(this.ambientRandom()-.5)*.9,n.vy*.35+(this.ambientRandom()-.5)*.9,n.vz*.35+(this.ambientRandom()-.5)*.9,W_(this.ambientRandom()),.9,!0);let i=g_-n.radius-oW,a=iK(n.mesh.position.x,n.vx,e,i),o=iK(n.mesh.position.z,n.vz,r,i);if(n.mesh.position.x=a.position,n.mesh.position.z=o.position,n.vx=a.velocity,n.vz=o.velocity,n.mesh.position.y<=0+n.radius){if(n.mesh.position.y=0+n.radius,!n.stained&&this.bloodLevel===`full`){n.stained=!0;let e=n.radius===iW?1:.55;this.placeDecal(n.mesh.position.x,n.mesh.position.z,1.3*e,.9*e,n.mesh.rotation.z,.85,4392199)}n.bounces<2&&Math.abs(n.vy)>.42?(n.bounces+=1,n.vy=Math.abs(n.vy)*.32,n.vx*=.62,n.vz*=.62,n.vrx*=.65,n.vry*=.65,n.vrz*=.65):(n.moving=!1,n.vx=0,n.vy=0,n.vz=0,n.vrx=0,n.vry=0,n.vrz=0,n.look!==null&&this.rollOntoEar(n))}Number.isFinite(n.mesh.position.x)&&Number.isFinite(n.mesh.position.y)&&Number.isFinite(n.mesh.position.z)&&Number.isFinite(n.mesh.quaternion.x)&&Number.isFinite(n.mesh.quaternion.y)&&Number.isFinite(n.mesh.quaternion.z)&&Number.isFinite(n.mesh.quaternion.w)||(n.mesh.position.set(0,0+n.radius,0),n.mesh.quaternion.identity(),n.moving=!1,n.vx=0,n.vy=0,n.vz=0)}}rollOntoEar(e){let t=this.settleAxis.set(1,0,0).applyQuaternion(e.mesh.quaternion),n=t.y>=0?1:-1;e.settleFrom.copy(e.mesh.quaternion),e.settleTo.setFromUnitVectors(t,this.settleUp.set(0,n,0)).multiply(e.mesh.quaternion),e.settleFromY=e.mesh.position.y,e.settleToY=0+(n>0?-e.sideLow:e.sideHigh),e.settle=0}stumpRandom(e){let t=e.seed|0;return t=Math.imul(t^t>>>15,1|t),t^=t+Math.imul(t^t>>>7,61|t),e.seed=t|0,((t^t>>>14)>>>0)/4294967296}updateStumpFountains(e){if(this.bloodLevel===`full`)for(let t of[...this.stumps,...this.handStumps]){if(!t.active||t.fountainLife<=0)continue;t.fountainLife=Math.max(0,t.fountainLife-e);let n=Math.min(1,t.fountainLife/NW),r=t.fountainLife*PW%1,i=Math.exp(-(((r-.5)/FW)**2));if(t.accumulator+=e*this.forDevice(IW)*n*(LW+.88*i),t.accumulator<1)continue;let a=$W(t,YW);for(XW.set(Math.abs(a.y)<.9?0:1,+(Math.abs(a.y)<.9),0).cross(a).normalize(),ZW.crossVectors(a,XW);t.accumulator>=1;){--t.accumulator;let e=this.stumpRandom(t),r=this.stumpRandom(t),o=this.stumpRandom(t),s=Math.sqrt(e)*BW,c=r*Math.PI*2;QW.copy(a).multiplyScalar(Math.cos(s)).addScaledVector(XW,Math.sin(s)*Math.cos(c)).addScaledVector(ZW,Math.sin(s)*Math.sin(c)).multiplyScalar(L.lerp(RW,zW,o)*(.7+.3*i)*(.55+.45*n)),this.spawnDroplet(t.mesh.position.x+a.x*.015+(e-.5)*.03,t.mesh.position.y+a.y*.015,t.mesh.position.z+a.z*.015+(r-.5)*.03,QW.x,QW.y,QW.z,W_(e),1.2+o*.6,!0,.004+o*o*.01)}}}update(e){for(this.canvasBlood.update(nK(e)),this.lens.update(nK(e)),this.simulationRemainder+=nK(e);this.simulationRemainder+1e-9>=EW;)this.simulationRemainder=Math.max(0,this.simulationRemainder-EW),this.simulate(EW);for(let e of this.guts)e.active&&e.sinceDrop<0&&e.rope.hold(e.anchor)&&(e.moved=!0),e.moved&&=(e.tube.write(e.rope),!1)}simulate(e){this.shake*=.02**e,this.updateDripEmitters(e),this.updateGushes(e),this.updateStumpFountains(e),this.updateDetachedParts(this.heads,e),this.updateDetachedParts(this.hands,e),this.updateShields(e),this.updateEyes(e),this.updateDebris(this.gibs,this.gibMesh,e),this.updateDebris(this.shards,this.shardMesh,e),this.updateDebris(this.eyeballs,this.eyeballMesh,e);for(let t of this.viscera)t.moving&&this.updateDebris(t.pieces,t.mesh,e,t);this.updateWounds(e),this.updateParts(e),this.updateSpines(e),this.updateGuts(e),this.updateHeart(e),this.updateCorpses(e);let t=this.liveDroplets,n=!1;for(let t=0;t0&&(this.dropletBuffers.position.needsUpdate=!0,this.dropletBuffers.color.needsUpdate=!0,this.uploadDroplets(0,this.liveDroplets,n));let r=!1;for(let[t,n]of this.mists.entries()){if(!n.alive)continue;if(r=!0,n.life-=e,n.life<=0){n.alive=!1,this.mistPositions[t*3+1]=-50;continue}let i=1-n.life/n.maxLife;this.mistPositions[t*3]=n.x,this.mistPositions[t*3+1]=n.y+i*.14,this.mistPositions[t*3+2]=n.z,this.mistColors[t*4+3]=Math.max(0,1-i)*Math.min(1,n.scale)}r&&(this.mistGeometry.attributes.position.needsUpdate=!0,this.mistGeometry.attributes.color.needsUpdate=!0)}clearDroplets(e){let t=this.liveDroplets;for(let t=0;t0))return;let s=eG((Number.isSafeInteger(i)?i:0)*15485863+e.charCodeAt(0)*131+e.length*977+7),c=$G(n),l=Math.max(.2,$(a,1)),u=$(t.x),d=$(t.y,1.2),f=$(t.z),p=Math.min(Math.round(r),this.debrisPlaces(e));for(let t=0;t0))return;let o=Number.isSafeInteger(i)?i:0,s=eG(o*86243+hG.indexOf(e)*3331+59),c=$G(n),l=G_[e],u=Math.max(.2,$(a,1)),d=$(t.x),f=$(t.y,1.2),p=$(t.z),m=Math.min(gG,r);for(let t=this.forDevice(m);t>0;--t){let t=s()*Math.PI*2,n=(.5+s()*1.9)*u;this.sprayDroplet(c,d+(s()-.5)*.08,f+(s()-.5)*.08,p+(s()-.5)*.08,(.4+s()*1.9)*u+Math.sin(t)*n*.35,(.3+s()*2.3)*Math.sqrt(u),Math.cos(t)*n*.8,K_(e,s()),.7+s(),!0,(.004+s()**2*.013)*l.drop,e)}if(e===`blood`){for(let e=Math.min(48,Math.round(m/25));e>0;--e)this.spawnMist(d+(s()-.5)*.4,f+(s()-.5)*.3,p+(s()-.5)*.4,.9+s()*1.5,.6+s()*.7);this.splatter(d+c.x*.3,p+c.z*.3,1+Math.min(2.4,m/500),s,Math.min(50,Math.round(m/20))),this.splashLens(d,f,p,Math.min(3,m/350),o)}else for(let e=Math.min(10,Math.round(m/30));e>0;--e){let t=.2+s()*.9*u;this.placeDecal(d+c.x*t+(s()-.5)*.5,p+c.z*t+(s()-.5)*.5,.5+s()*.9,.3+s()*.7,s()*Math.PI,.7*l.soak,e%2==0?l.splash:l.stain)}this.shake=Math.min(.22,this.shake+Math.min(.06,m/2e4))}puddle(e,t,n,r,i){if(this.bloodLevel!==`full`)return;let a=G_[r];this.canvasBlood.pool($(e),$(t),Math.max(.02,$(n,.1)),.95*a.soak,i,a.pool)}shed(e,t){if(this.bloodLevel!==`full`)return;let n=eG(t*7919+11);this.spawnDroplet($(e.x)+(n()-.5)*.05,$(e.y,1),$(e.z)+(n()-.5)*.05,(n()-.5)*.2,-.1,(n()-.5)*.2,K_(`blood`,n()),1.6,!0)}smear(e,t,n,r,i){this.bloodLevel===`full`&&this.canvasBlood.smear(e,t,n,r,Math.max(.005,$(i,.05)),.75,G_.blood.splash)}footprint(e,t,n,r,i){this.bloodLevel===`full`&&i>0&&this.canvasBlood.print(e,t,n,r,Math.min(1,i)*.85,G_.blood.splash)}setWound(e,t,n,r=`blood`){let i=this.woundAt(e,t);if(i===null)return;let a=this.bloodLevel===`full`?L.clamp($(n),0,1):0;a>0&&i.strength<=0&&(i.anchored=!1,i.accumulator=0,i.run=0,i.pool=0),i.strength=a,i.fluid=r,this.shareWounds()}anchorWound(e,t,n,r){let i=this.woundAt(e,t);i===null||i.strength<=0||(i.position.set($(n.x),$(n.y,1.2),$(n.z)),r.lengthSq()>1e-8&&Number.isFinite(r.lengthSq())&&i.axis.copy(r).normalize(),i.anchored=!0)}woundStrength(e,t){return this.woundAt(e,t)?.strength??0}clearWounds(e){for(let[t,n]of this.wounds.entries())(e===void 0||Math.floor(t/_e.length)===Math.trunc(e))&&(n.strength=0);this.shareWounds()}get openWounds(){return this.woundsOpen}woundAt(e,t){let n=Math.trunc(e);return n>=0&&nCG?CG/e:1}updateWounds(e){if(this.woundsOpen!==0&&this.bloodLevel===`full`){this.woundClock+=e;for(let t=0;t=wG){n.run-=wG;let e=.12+SG*r*r,i=l.y*e,a=(i+Math.sqrt(i*i+2*cW*Math.max(0,u.y-0)))/cW,o=u.x+l.x*e*a,s=u.z+l.z*e*a;n.pool<=0||Math.hypot(o-n.poolX,s-n.poolZ)>Math.max(.12,n.pool*1.2)?(n.poolX=o,n.poolZ=s,n.pool=.03):n.pool=Math.min(TG*(.25+.75*r),n.pool+.012);let c=G_[n.fluid];this.canvasBlood.pool(n.poolX,n.poolZ,n.pool,.95*c.soak,t*7+Math.round(n.pool*80),c.pool)}if(n.accumulator<1)continue;XW.set(Math.abs(l.y)<.9?0:1,+(Math.abs(l.y)<.9),0).cross(l).normalize(),ZW.crossVectors(l,XW);let d=L.lerp(.8,BW*.8,r),f=G_[n.fluid].drop;for(;n.accumulator>=1;){--n.accumulator;let e=Math.sqrt(this.ambientRandom())*d,t=this.ambientRandom()*Math.PI*2;QW.copy(l).multiplyScalar(Math.cos(e)).addScaledVector(XW,Math.sin(e)*Math.cos(t)).addScaledVector(ZW,Math.sin(e)*Math.sin(t)).multiplyScalar(c*(.75+this.ambientRandom()*.4)),this.spawnDroplet(u.x+l.x*.012+(this.ambientRandom()-.5)*.02,u.y+l.y*.012,u.z+l.z*.012+(this.ambientRandom()-.5)*.02,QW.x,QW.y,QW.z,K_(n.fluid,this.ambientRandom()),1.3+r*.5,!0,(.004+this.ambientRandom()**2*.01)*f,n.fluid)}}}}burstEye(e,t,n){let r=Math.trunc(e),i=pG(r,t),a=this.eyes[i];if(r<0||r>=XU||a===void 0||!a.active)return!1;if(a.active=!1,a.bleeding=0,this.eyeMeshes[i].visible=!1,this.nerveMeshes[i].visible=!1,this.bloodLevel!==`full`)return!0;let o=Number.isSafeInteger(n)?n:0,s=eG(o*39916801+i*211+3),{x:c,y:l,z:u}=a.position;for(let e=this.forDevice(160);e>0;--e){let t=s()*Math.PI*2,n=s()*1.6-.6,r=Math.sqrt(Math.max(0,1-Math.min(1,n*n))),i=.6+s()*2.2,a=e%3!=0;this.spawnDroplet(c,l,u,Math.cos(t)*r*i,n*i+.5,Math.sin(t)*r*i,a?W_(s()):dG,.5+s()*.7,a,.003+s()**2*.008)}for(let e=0;e<4;e+=1)this.spawnGib(c,l,u,(s()-.5)*1.6,.4+s()*1.2,(s()-.5)*1.6,s,`flesh`,r);for(let e=0;e<8;e+=1)this.spawnMist(c+(s()-.5)*.12,l+(s()-.5)*.1,u+(s()-.5)*.12,.5+s()*.6,.4+s()*.4);return this.splashLens(c,l,u,.8,o),!0}skinOf(e,t){let n=cK(t.sites===$h,e.map),r=e.look??Sy;return n.look?.set(r),n.material.color.setHex(e.color),n.injury.copyFrom(t),n.injury.setBindToPart(hK(e.geometry,r,this.bindToPartMatrix)),t.material instanceof qu&&(n.material.clearcoat=t.material.clearcoat),n.material}flingPart(e,t,n,r,i,a,o={}){this.removePart(e);let s=this.partBox.makeEmpty();for(let e of t){let t=e.geometry.getAttribute(`position`),n=e.geometry.getIndex(),r=n===null?t.count:n.count;for(let e=0;ep.reach)&&(p=e),(m===null||e.height>m.height)&&(m=e);for(let{fan:e,opening:t}of f)e.materialIndex=pK(o.part,t===p,t===m);c.cut.set(0,0,0),p!==null&&c.cut.copy(p.centre).sub(l),oK(c.group.quaternion,r),c.group.position.copy(l).applyQuaternion(c.group.quaternion),c.group.position.set(c.group.position.x+$(n.x),c.group.position.y+$(n.y,1.2),c.group.position.z+$(n.z)),c.group.visible=!0,c.key=e,c.born=this.partsThrown++;let h=0;for(let t=0;tt.key===e)}partPosition(e,t){let n=this.parts.find(t=>t.key===e);return n!==void 0&&(t.copy(n.group.position),!0)}removePart(e){for(let t of this.parts)if(t.key===e){t.key=null,t.moving=!1,t.settle=-1,t.group.visible=!1,t.group.clear();for(let e of t.geometries)e.dispose();for(let e of t.materials)e.dispose();t.geometries.length=0,t.materials.length=0}}get activeParts(){let e=0;for(let t of this.parts)t.key!==null&&(e+=1);return e}partResting(e){return this.parts.some(t=>t.key===e&&!t.moving&&(t.settle<0||t.settle>=1))}updateParts(e){let t=this.bloodLevel===`full`;for(let n=0;n=0&&r.settle<1){r.settle=Math.min(1,r.settle+e/aW);let t=r.settle*r.settle*(3-2*r.settle);i.quaternion.slerpQuaternions(r.settleFrom,r.settleTo,t),i.position.y=r.settleFromY+(r.settleToY-r.settleFromY)*t}if(!r.moving){if(!t||r.lain>=jG)continue;let a=Math.floor(r.lain/MG);for(r.lain+=e,this.trailPoint.copy(r.cut).applyQuaternion(i.quaternion).add(i.position),r.trail+=e*this.forDevice(NG);r.trail>=1;)--r.trail,this.spawnDroplet(this.trailPoint.x,Math.max(.02,this.trailPoint.y),this.trailPoint.z,(this.ambientRandom()-.5)*.5,.2+this.ambientRandom()*.5,(this.ambientRandom()-.5)*.5,W_(this.ambientRandom()),.6,!0);if(Math.floor(r.lain/MG)===a)continue;let o=.1+r.radius*1.8;r.pool=Math.min(o,r.pool+o*MG*1.5/jG),this.canvasBlood.pool(this.trailPoint.x,this.trailPoint.z,r.pool,.95,n*13+a);continue}let a=i.position.x,o=i.position.z;if(r.vy-=5.8*e,i.position.x+=r.vx*e,i.position.y+=r.vy*e,i.position.z+=r.vz*e,i.rotation.x+=r.vrx*e,i.rotation.y+=r.vry*e,i.rotation.z+=r.vrz*e,t)for(r.trail+=e*this.forDevice(YU),r.trail>=1&&this.trailPoint.copy(r.cut).applyQuaternion(i.quaternion).add(i.position);r.trail>=1;)--r.trail,this.spawnDroplet(this.trailPoint.x+(this.ambientRandom()-.5)*.03,this.trailPoint.y+(this.ambientRandom()-.5)*.03,this.trailPoint.z+(this.ambientRandom()-.5)*.03,r.vx*.35+(this.ambientRandom()-.5)*.9,r.vy*.35+(this.ambientRandom()-.5)*.9,r.vz*.35+(this.ambientRandom()-.5)*.9,W_(this.ambientRandom()),.9,!0);let s=Math.max(.5,g_-r.reach-oW),c=iK(i.position.x,r.vx,a,s),l=iK(i.position.z,r.vz,o,s);if(i.position.x=c.position,i.position.z=l.position,r.vx=c.velocity,r.vz=l.velocity,i.position.y<=0+r.radius){if(i.position.y=0+r.radius,!r.stained&&t){r.stained=!0;let e=Math.min(2.4,r.radius/iW+.3);this.placeDecal(i.position.x,i.position.z,1.3*e,.9*e,i.rotation.z,.85,4392199)}if(r.bounces<2&&Math.abs(r.vy)>.42)r.bounces+=1,r.vy=Math.abs(r.vy)*.32,r.vx*=.62,r.vz*=.62,r.vrx*=.65,r.vry*=.65,r.vrz*=.65;else{r.moving=!1,r.trail=0;let e=this.settleAxis.copy(r.thin).applyQuaternion(i.quaternion);r.settleFrom.copy(i.quaternion),r.settleTo.setFromUnitVectors(e,this.settleUp.set(0,e.y>=0?1:-1,0)).multiply(i.quaternion),r.settleFromY=i.position.y,r.settleToY=0+r.thickness,r.settle=0}}Number.isFinite(i.position.x+i.position.y+i.position.z+i.quaternion.x+i.quaternion.y+i.quaternion.z+i.quaternion.w)||(i.position.set(0,0+r.thickness,0),i.quaternion.identity(),r.moving=!1,r.settle=-1)}}attachSpine(e){let t=this.spines[Math.trunc(e)];t!==void 0&&this.bloodLevel===`full`&&(t.wanted=!0)}spineOut(e){return this.spines[Math.trunc(e)]?.out===!0}spineTail(e,t){let n=this.spines[Math.trunc(e)];return n===void 0||!n.out?!1:(n.rope.node(PG,t),!0)}updateSpines(e){for(let t=0;t=1;){--n.trail;let e=a.node(Math.floor(this.ambientRandom()*12),this.gibPosition);this.spawnDroplet(e.x,e.y,e.z,(this.ambientRandom()-.5)*.8,(this.ambientRandom()-.5)*.8,(this.ambientRandom()-.5)*.8,W_(this.ambientRandom()),.8,!0)}}}}writeSpine(e){let t=this.spines[e].rope;for(let n=0;n1e-6?i.multiplyScalar(1/a):i.set(0,1,0)),r.add(this.partVertex).multiplyScalar(.5);let o=(.9+.5*Math.min(1,n/6))*(n>=9?.55+.25*(10-n):1);this.gibMatrix.compose(r,this.gibQuaternion,this.gibScale.set(o,this.spineStretch,o)),this.spineMesh.setMatrixAt(e*PG+n,this.gibMatrix)}this.spineMesh.instanceMatrix.needsUpdate=!0;for(let n=0;ne.out);this.spineMesh.visible=n,this.shredMesh.visible=n}spillGuts(e,t,n,r=18){let i=this.guts[Math.trunc(e)];if(i===void 0||e<0||this.bloodLevel!==`full`)return;let a=Number.isSafeInteger(n)?n:0;if(i.active&&i.eventId===a)return;let o=L.clamp(Math.round($(r,18)),2,RG),s=Math.max(2,Math.min(o,this.lowTier?Math.ceil(this.budget.gutLinks/2):this.budget.gutLinks));i.active=!0,i.eventId=a,i.sinceDrop=-1,i.drip=0,i.smeared.fill(NaN),i.anchor.set($(t.x),$(t.y,.9),$(t.z)),i.rope.spill(s,o*MU/s,i.anchor,s/zG,eG(a*28657+Math.trunc(e)*5+1)),i.tube.write(i.rope),i.mesh.visible=!0,i.moved=!1}anchorGuts(e,t,n){let r=this.guts[Math.trunc(e)];r===void 0||!r.active||r.sinceDrop>=0||(r.anchor.set($(t.x),$(t.y,.9),$(t.z)),n.lengthSq()>1e-8&&Number.isFinite(n.lengthSq())&&r.away.copy(n).normalize())}gutsOut(e){return this.guts[Math.trunc(e)]?.active===!0}dropGuts(e){let t=this.guts[Math.trunc(e)];t===void 0||!t.active||t.sinceDrop>=0||(t.sinceDrop=0,t.rope.release())}clearGuts(e){for(let[t,n]of this.guts.entries())(e===void 0||t===Math.trunc(e))&&(n.active=!1,n.eventId=null,n.moved=!1,n.rope.clear(),n.mesh.visible=!1)}gutsLength(e){let t=this.guts[Math.trunc(e)];return t===void 0||!t.active?0:t.rope.length}gutsPoint(e,t,n){let r=this.guts[Math.trunc(e)];return r===void 0||!r.active?!1:(r.rope.node(Math.round(L.clamp(t,0,1)*(r.rope.nodes-1)),n),!0)}updateGuts(e){for(let t=0;t=0&&n.sinceDrop=BG&&i)){let e=r.node(r.nodes>>1,this.gibPosition);this.canvasBlood.pool(e.x,e.z,.26,.95,t+3),this.puddle(e.x+.12,e.z+.05,.11,`bile`,t+5)}if(r.step(e,n.anchor,0,Math.max(2.4383999999999997,Math.abs(n.anchor.x),Math.abs(n.anchor.z)),n.away)&&(n.moved=!0,i)){for(let e=0;e0+.024*1.5){n.smeared[e*2]=NaN;continue}let i=n.smeared[e*2],a=n.smeared[e*2+1],o=Math.hypot(t.x-i,t.z-a);o=0))for(n.drip+=e*this.forDevice(WG);n.drip>=1;){--n.drip;let e=r.node(Math.floor(this.ambientRandom()*r.nodes),this.gibPosition),t=this.ambientRandom()<.8?`blood`:`bile`;this.spawnDroplet(e.x,e.y-jU,e.z,(this.ambientRandom()-.5)*.3,-.1,(this.ambientRandom()-.5)*.3,K_(t,this.ambientRandom()),.9,!0,.004+this.ambientRandom()*.005,t)}}}}ejectHeart(e,t,n,r=-1){if(this.bloodLevel!==`full`)return;let i=this.heart,a=eG((Number.isSafeInteger(n)?n:0)*611953+19),o=$G(t),s=2+a()*1.2,c=(a()-.5)*1.2;i.active=!0,i.moving=!0,i.owner=Math.trunc(r),i.age=0,i.beats=0,i.bounces=0,i.settle=-1,i.pool=0,i.trail=0,i.vx=s*o.x-c*o.z,i.vy=1.8+a()*1.2,i.vz=s*o.z+c*o.x,i.vrx=(a()-.5)*14,i.vry=(a()-.5)*14,i.vrz=(a()-.5)*14,i.settleTo.setFromAxisAngle(eK,a()*Math.PI*2).multiply(KG),this.heartMesh.position.set($(e.x),$(e.y,1.2),$(e.z)),this.heartMesh.quaternion.identity(),this.heartMesh.scale.setScalar(GG),this.heartMesh.visible=!0}get heartOut(){return this.heart.active}get heartBeating(){return this.heart.active&&this.heart.age<14}heartPosition(e){return this.heart.active?(e.copy(this.heartMesh.position),!0):!1}updateHeart(e){let t=this.heart;if(!t.active)return;let n=this.heartMesh,r=this.bloodLevel===`full`;if(t.moving){let i=n.position.x,a=n.position.z;t.vy-=6.4*e,n.position.x+=t.vx*e,n.position.y+=t.vy*e,n.position.z+=t.vz*e,n.rotation.x+=t.vrx*e,n.rotation.y+=t.vry*e,n.rotation.z+=t.vrz*e;let o=g_-this.heartRadius-oW,s=iK(n.position.x,t.vx,i,o),c=iK(n.position.z,t.vz,a,o);if(n.position.x=s.position,n.position.z=c.position,t.vx=s.velocity,t.vz=c.velocity,r)for(t.trail+=e*this.forDevice(YU/2);t.trail>=1;)--t.trail,this.spawnDroplet(n.position.x,n.position.y,n.position.z,t.vx*.3+(this.ambientRandom()-.5)*.8,t.vy*.3+(this.ambientRandom()-.5)*.8,t.vz*.3+(this.ambientRandom()-.5)*.8,W_(this.ambientRandom()),.8,!0);n.position.y<=0+this.heartRadius&&(n.position.y=0+this.heartRadius,t.bounces===0&&r&&this.placeDecal(n.position.x,n.position.z,.9,.7,n.rotation.z,.8,4392199),t.bounces<2&&Math.abs(t.vy)>.4?(t.bounces+=1,t.vy=Math.abs(t.vy)*.3,t.vx*=.6,t.vz*=.6,t.vrx*=.6,t.vry*=.6,t.vrz*=.6):(t.moving=!1,t.settle=0,t.settleFrom.copy(n.quaternion),t.settleFromY=n.position.y)),Number.isFinite(n.position.x+n.position.y+n.position.z)||(n.position.set(0,0+this.heartRest,0),n.quaternion.copy(t.settleTo),t.moving=!1,t.settle=1)}else if(t.settle<1){t.settle=Math.min(1,t.settle+e/aW);let r=t.settle*t.settle*(3-2*t.settle);n.quaternion.slerpQuaternions(t.settleFrom,t.settleTo,r),n.position.y=t.settleFromY+(0+this.heartRest-t.settleFromY)*r}if(t.age>=14)return;t.age+=e;let i=_U(t.age),a=gU(t.age),o=vU(a)*(.35+.65*i);if(n.scale.set(GG*(1-.17*o),GG*(1+.08*o),GG*(1-.17*o)),Math.floor(a)<=t.beats||(t.beats=Math.floor(a),!r))return;let s=this.trailPoint.copy(pU.position).multiply(n.scale).applyQuaternion(n.quaternion).add(n.position),c=YW.copy(pU.direction).applyQuaternion(n.quaternion);XW.set(Math.abs(c.y)<.9?0:1,+(Math.abs(c.y)<.9),0).cross(c).normalize(),ZW.crossVectors(c,XW);for(let e=this.forDevice(Math.round(8+qG*i));e>0;--e){let e=Math.sqrt(this.ambientRandom())*.2,t=this.ambientRandom()*Math.PI*2;QW.copy(c).multiplyScalar(Math.cos(e)).addScaledVector(XW,Math.sin(e)*Math.cos(t)).addScaledVector(ZW,Math.sin(e)*Math.sin(t)).multiplyScalar((.7+2.9*i)*(.5+.55*this.ambientRandom())),this.spawnDroplet(s.x,s.y,s.z,QW.x,QW.y,QW.z,W_(this.ambientRandom()),1.1,!0,.004+this.ambientRandom()**2*.011)}t.moving||(t.pool=Math.min(.3,t.pool+.022),this.canvasBlood.pool(n.position.x,n.position.z,t.pool,.95,t.beats))}setCorpse(e,t){let n=Math.trunc(e),r=this.corpses[n];r!==void 0&&(t===null||this.bloodLevel!==`full`?this.clearCorpse(n):(r.active||(r.active=!0,r.age=0,r.puddle=0),r.position.set($(t.x),Math.max(0,$(t.y,0)),$(t.z))))}fliesOver(e){let t=this.corpses[Math.trunc(e)];return t===void 0||!t.active?0:this.fliesArrived(t.age)}fliesArrived(e){let t=this.lowTier?this.budget.flies>>1:this.budget.flies;return Math.floor(L.clamp((e-JG)/YG,0,1)*t)}updateCorpses(e){for(let t=0;t=n.puddle+.04&&(n.puddle=r,this.puddle(n.position.x,n.position.z,r,`urine`,t*11+Math.round(r*25)));let i=this.fliesArrived(n.age);if(i===0)continue;let a=this.budget.flies,o=YG/(this.lowTier?a>>1:a);for(let e=0;e=i)this.gibMatrix.makeScale(0,0,0).setPosition(0,-50,0);else{let t=Math.min(1,(n.age-JG-e*o)/XG),i=HU(this.flies,r,n.age,this.gibPosition),a=1+(1-t)*2.5;this.gibMatrix.makeTranslation(n.position.x+i.x*a,Math.max(.03,n.position.y+i.y+(1-t)*(1-t)*1.6),n.position.z+i.z*a)}this.flyMesh.setMatrixAt(r,this.gibMatrix)}this.flyMesh.visible=!0,this.flyMesh.instanceMatrix.needsUpdate=!0}}clearCorpse(e){let t=this.corpses[e];if(t.active){t.active=!1,this.gibMatrix.makeScale(0,0,0).setPosition(0,-50,0);for(let t=0;te.active)}}dispose(){this.scene.remove(this.dropletMesh),this.scene.remove(this.mistPoints),this.scene.remove(this.gibMesh),this.scene.remove(this.shardMesh),this.scene.remove(this.eyeballMesh);for(let e of this.viscera)this.scene.remove(e.mesh),e.mesh.dispose(),e.geometry.dispose();this.visceraMaterial.dispose();for(let e of this.parts)e.key!==null&&this.removePart(e.key),this.scene.remove(e.group);this.limbMaterial.dispose(),this.limbMap.dispose(),this.trunkMaterial.dispose(),this.trunkMap.dispose(),this.scene.remove(this.spineMesh,this.shredMesh,this.heartMesh,this.flyMesh),this.spineMesh.dispose(),this.shredMesh.dispose(),this.shredGeometry.dispose();for(let e of this.guts)this.scene.remove(e.mesh),e.tube.dispose();this.heartGeometry.dispose(),this.flyMesh.dispose(),this.flyGeometry.dispose(),this.flyMaterial.dispose(),this.dropletMesh.dispose(),this.dropletGeometry.dispose(),this.dropletMaterial.dispose(),this.canvasBlood.dispose();for(let e of[...this.heads,...this.hands])e.baked?.dispose(),e.bakedFlesh?.dispose();for(let e of[...this.stumps,...this.handStumps])e.flesh.dispose();this.mistGeometry.dispose(),this.mistMaterial.dispose(),this.mistMap.dispose(),this.gibMesh.dispose(),this.gibGeometry.dispose(),this.gibMaterial.dispose(),this.shardMesh.dispose(),this.eyeballMesh.dispose(),this.shardGeometry.dispose(),this.shardMaterial.dispose(),this.jawMaterial.dispose(),this.jawMap.dispose(),this.headGeometry.dispose();for(let e of this.headMaterials)e.dispose();this.handGeometry.dispose();for(let e of this.handMaterials)e.dispose();this.stumpGeometry.dispose(),this.wristStumpGeometry.dispose(),this.shieldGeometry.dispose();for(let e of this.shieldMaterials)e.dispose();for(let e of this.shieldMeshes)this.scene.remove(e);this.eyeGeometry.dispose(),this.eyeMap.dispose(),this.eyeMaterial.dispose(),this.nerveGeometry.dispose(),this.nerveMaterial.dispose();for(let e of[...this.eyeMeshes,...this.nerveMeshes])this.scene.remove(e);if(this.stumpMaterial.dispose(),this.stumpMap.dispose(),this.wristMaterial.dispose(),this.wristMap.dispose(),this.bakedStandIns!==null){this.bakedStandIns.map.dispose();for(let e of this.bakedStandIns.materials)e.dispose();for(let e of this.bakedStandIns.instanced)e.dispose();this.bakedStandIns=null}for(let e of this.heads)this.scene.remove(e.mesh);for(let e of this.hands)this.scene.remove(e.mesh);for(let e of[...this.stumps,...this.handStumps])this.scene.remove(e.mesh)}},vK={maximum:1,minimum:.55,slowMs:24,fastMs:17.5,windowMs:1e3,step:.15},yK=10,bK=10,xK=160,SK=3,CK=3,wK=class{options;scale;elapsed=0;frames=0;fastWindows=0;holdWindows=0;fruitlessAttempts=0;pending=null;raised=null;raiseHoldWindows=0;failedRaises=0;constructor(e=vK){this.options=e,this.scale=e.maximum}record(e){if(!(e>0)||e>1e3||(this.elapsed+=e,this.frames+=1,this.elapsede.before*.9)return this.scale=e.previous,this.holdWindows=Math.min(xK,yK*2**this.fruitlessAttempts),this.fruitlessAttempts+=1,!0;this.fruitlessAttempts=0}if(this.raised!==null){let e=this.raised;if(t>this.options.slowMs)return this.raised=null,this.scale=e.previous,this.fastWindows=0,this.raiseHoldWindows=Math.min(xK,bK*2**this.failedRaises),this.failedRaises+=1,!0;e.windows+=1,e.windows>=CK&&(this.raised=null,this.failedRaises=0)}if(t>this.options.slowMs){if(this.fastWindows=0,this.holdWindows>0)return--this.holdWindows,!1;if(this.scale<=this.options.minimum)return!1;let e=this.scale;return this.scale=Math.max(this.options.minimum,this.scale-this.options.step),this.pending={before:t,previous:e},!0}return t0?(--this.raiseHoldWindows,!1):this.fastWindows>=SK&&this.scale0&&e.poise===0)return 1;if(e.is_downed)return EK;let n=e.stunned_ticksthis.value?7:.9;return this.value+=(e-this.value)*(1-Math.exp(-n*Math.max(0,t))),e===0&&this.value<.003&&(this.value=0),this.value}},kK=.4,AK=.5,jK={before:24,after:24,speed:.5};function MK(e,t,n=30,r=kK,i=42,a=33){let o=t.tick-i,s=t.tick+a,c=e.filter(e=>e.tick>=o-1&&e.tick<=s+1),l=c.at(-1),u=l!==void 0&&l.result!==null&&l.tick({...l,tick:l.tick+t+1,events:[]}))]:c,d=u[0],f=u.at(-1);if(d===void 0||f===void 0||u.length<8||d.tick>t.tick-12||f.tick=1&&this.lastHeat<1&&!r&&(this.flare=1),this.lastHeat=t,this.flare=Math.max(0,this.flare-n/LK);let a=this.mesh.material;if(a.opacity=Math.min(1,t*.8+this.flare*.6),this.mesh.visible=a.opacity>.01,!this.mesh.visible)return;this.mesh.position.copy(e),this.mesh.quaternion.copy(i.quaternion);let o=FK*(.55+.45*t)*(1+this.flare*IK);this.mesh.scale.set(o,o,1)}get active(){return this.mesh.visible}standIn(){return new V(this.mesh.geometry,this.mesh.material)}reset(){this.flare=0,this.lastHeat=0,this.mesh.material.opacity=0,this.mesh.visible=!1}dispose(){this.mesh.geometry.dispose(),this.mesh.material.dispose()}},GK=class{group=new gs;flash;ring;age=1/0;constructor(e){this.flash=UK(e,new B(1,.86,.62)),this.flash.material.depthTest=!1,this.ring=new V(new ju(.42,.5,40),new Pc({color:PK,blending:2,depthWrite:!1,transparent:!0,side:2})),this.flash.renderOrder=6,this.ring.renderOrder=6,this.group.add(this.flash,this.ring),this.group.visible=!1}fire(e){this.age=0,this.group.position.copy(e)}update(e,t){this.age+=e;let n=this.age/RK,r=this.age/BK;if(this.group.visible=r<1,!this.group.visible)return;this.group.quaternion.copy(t.quaternion),this.flash.visible=n<1;let i=zK*(.35+.65*Math.sqrt(Math.min(1,n)));this.flash.scale.set(i,i,1),this.flash.material.opacity=(1-Math.min(1,n))**2;let a=VK*(.15+.85*(1-(1-r)**3));this.ring.scale.set(a,a,a),this.ring.material.opacity=.9*(1-r)}get active(){return this.group.visible}standIns(){return[new V(this.flash.geometry,this.flash.material),new V(this.ring.geometry,this.ring.material)]}reset(){this.age=1/0,this.group.visible=!1}dispose(){this.flash.geometry.dispose(),this.flash.material.dispose(),this.ring.geometry.dispose(),this.ring.material.dispose()}},KK=10,qK=.055,JK=3.2,YK=1.4,XK=class{color;mesh;geometry;positions=new Float32Array(60);colors=new Float32Array(80);history=[];last=new z;hasLast=!1;tangent=new z;side=new z;toCamera=new z;shade=new B;strength=0;heat=0;constructor(e){this.color=e,this.geometry=new yc,this.geometry.setAttribute(`position`,new ic(this.positions,3).setUsage(Aa)),this.geometry.setAttribute(`color`,new ic(this.colors,4).setUsage(Aa));let t=[];for(let e=0;e<9;e+=1){let n=e*2;t.push(n,n+1,n+2,n+1,n+3,n+2)}this.geometry.setIndex(t);let n=new Pc({vertexColors:!0,transparent:!0,blending:2,depthWrite:!1,side:2});this.mesh=new V(this.geometry,n),this.mesh.frustumCulled=!1,this.mesh.visible=!1,this.mesh.renderOrder=4}update(e,t,n,r,i=0){if(t<=0)return;let a=this.hasLast?e.distanceTo(this.last)/t:0;this.last.copy(e),this.hasLast=!0,this.heat=i>this.heat?i:this.heat+(i-this.heat)*Math.min(1,t*6);let o=JK*(1-.55*this.heat),s=r&&a>o?Math.min(1,(a-o)/4+this.heat*.4):0;this.strength+=(s-this.strength)*Math.min(1,t*18);let c=this.history.length>=KK?this.history.shift():new z;if(c.copy(e),this.history.push(c),this.strength<.02||this.history.length<3){this.mesh.visible=!1;return}let l=this.history.length,u=this.shade.copy(this.color).lerp(PK,this.heat),d=qK*(1+YK*this.heat);for(let e=0;e3*t}function eq(e,t,n){let r=e.detail.endsWith(`:head`)||e.detail.endsWith(`:body`);return t===void 0||![`hit`,`counter_hit`].includes(e.kind)||!r||n===null||n.winner_id===null||n.winner_id!==e.actor_id?!1:n.finish_method===`flash_ko`||(n.finish_method===`ko`||n.finish_method===`tko`)&&t.is_downed}function tq(e){for(let t of e.passes)t.dispose?.();e.dispose()}function nq(e,t,n,r,i){e.setRenderTarget(t.readBuffer);let a=e.compileAsync(n,r,i);return e.setRenderTarget(null),a}var rq=-4e-4,iq=10,aq=16;function oq(e,t,n){let r=t?aq:n;e.autoUpdate=!t,e.intensity=+!t,e.bias=t?iq:rq,e.mapSize.x!==r&&(e.mapSize.set(r,r),e.map?.dispose(),e.map=null,e.needsUpdate=!0)}function sq(e,t){let n=t.fighters.findIndex(t=>t.player_id===e.target_id),r=t.fighters.findIndex(t=>t.player_id===e.actor_id),i=e.kind===`block`||e.kind===`perfect_block`;return{recipientIndex:i?r:n,puncherIndex:i?n:r}}function cq(e,t,n){if(e===void 0||t===void 0)return;let r=n.x(t.x)-n.x(e.x),i=n.z(t.y)-n.z(e.y),a=Math.hypot(r,i);return Number.isFinite(a)&&a>.001?{x:r/a,z:i/a}:void 0}var lq=e=>e.kind===`hit`||e.kind===`counter_hit`,uq=e=>e.kind===`block`||e.kind===`perfect_block`,dq=480,fq=.56,pq=1.8,mq=1.7,hq=1.2,gq=1.6,_q=30,vq=6.5,yq=.4,bq=600,xq=2.8,Sq=.6,Cq=[[1,0],[-1,0],[.75,-.66],[-.75,-.66],[.75,.66],[-.75,.66]],wq=.15,Tq=.6,Eq=2.3,Dq=.5,Oq=3.42,kq=2.2,Aq=.9,jq=`body`,Mq=`collapse`,Nq=.55,Pq=.5,Fq=.5,Iq=.28,Lq=104,Rq=260,zq=.05,Bq=2.95,Vq=2.4,Hq=1.6,Uq=.98,Wq=500,Gq={uniforms:{tDiffuse:{value:null},uTime:{value:0},uVignette:{value:.32},uGrain:{value:.035},uRocked:{value:0}},vertexShader:` +`,wB=(e,t,n)=>{let r=Math.min(1,Math.max(0,(n-e)/(t-e)));return r*r*(3-2*r)};function TB(e,t){let n=[];for(let[r,i]of e.entries())for(let e=0;e0&&Math.abs(Math.atan2(s,c))<.3})}return n}function EB(e,t,n,r={rise:0,armLeft:0,armRight:0,sway:0}){let i=.2+.7*(1-e.keen),a=wB(i-.12,i+.12,n),o=Math.abs(Math.sin(t*(2.3+n*3.2)+e.phase*1.7))*(.02+.1*a),s=Math.sin(t*6.2+e.phase)*.32*a,c=_B+-2.35*a;return r.rise=a*vB+o,r.armLeft=c+s,r.armRight=c-s*.8,r.sway=Math.sin(t*1.6+e.phase)*(.04+n*.05),r}function DB(e){let t=Ng(e,!1);for(let t of e)t.dispose();if(t===null)throw Error(`crowd geometry could not be merged`);return t}function OB(){let e=new Pu(.16,.28,2,8);e.scale(1.35,1,.8),e.translate(0,.64,0);let t=new Pu(.078,.3,1,5);t.rotateZ(Math.PI/2),t.translate(0,.89,0);let n=new Pu(.11,.26,1,5);return n.rotateX(Math.PI/2),n.scale(1.7,1,1),n.translate(0,.4,.17),DB([e,t,n])}function kB(){let e=new _d(.105,10,6);e.rotateY(-Math.PI/2),e.scale(.92,1.12,1),e.translate(0,1.12,.01);let t=new Iu(.048,.056,.1,5,1,!0);t.translate(0,.99,0);let n=t.getAttribute(`uv`);for(let e=0;e{e.vertexShader=e.vertexShader.replace(`#include `,`#include +varying vec3 vCrowdLight;`).replace(`#include `,`#include \n${SB}`),e.fragmentShader=e.fragmentShader.replace(`#include `,`#include +varying vec3 vCrowdLight;`).replace(`#include `,`#include \n${CB}`)},e.customProgramCacheKey=()=>`hands-crowd`;let u=new jd({color:724501,roughness:.96,metalness:0,side:2}),d=new nu(o[0],s,i),f=new nu(o[1],c,i),p=new nu(o[2],l,i),m=new nu(o[3],s,i),h=new nu(o[3],s,i),g=[d,f,p,m,h],_=[d,f,p];for(let e of g)e.instanceMatrix.setUsage(go),e.frustumCulled=!1;let v=new V;for(let t=0;t.12&&v.setHex(mB[Math.floor(e()*mB.length)]).multiplyScalar((.8+e()*.4)*n),p.setColorAt(t,v)}for(let e of g)e.instanceColor.needsUpdate=!0;let y=new H(o[4],u);y.name=`stands`,y.receiveShadow=!1,n.add(y,...g);let b=new B(0,1,0),x=new B,S=new rs,C=new B,w=new Ds,T=new Ds,E=new Ds,D=new Ds,O={rise:0,armLeft:0,armRight:0,sway:0},k=(e,t,n,r)=>{E.makeTranslation(n*gB,hB,0),D.makeRotationX(r),T.multiplyMatrices(w,E).multiply(D),e.setMatrixAt(t,T)},ee=0,A=!1,te=!1,j=!1,ne=0,re=0,ie=r.flatMap((e,t)=>e.platform?[t]:[]),M=new Ds().makeScale(0,0,0),N=(e,t)=>{let n=r[e];if(j&&n.platform)for(let n of t?g:_)n.setMatrixAt(e,M);else EB(n,ne,re,O),S.setFromAxisAngle(b,n.yaw+O.sway),w.compose(x.set(n.x,n.y+O.rise*n.scale,n.z),S,C.setScalar(n.scale)),d.setMatrixAt(e,w),f.setMatrixAt(e,w),p.setMatrixAt(e,w),t&&(k(m,e,1,O.armLeft),k(h,e,-1,O.armRight))},ae=(e,t,n=!1)=>{let r=n||te;te=!1;let a=r?1:A?4:2,o=Math.ceil(i/a),s=ee%a*o,c=Math.min(i,s+o);ee+=1,ne=e,re=t;let l=!A||r;for(let e=s;e{e!==A&&(A=e,m.visible=!e,h.visible=!e,e||(te=!0))},makeRoomForCamera:e=>{let t=xB(e.x,e.z,j?5.9:bB);if(t!==j){j=t;for(let e of ie)N(e,!0);for(let e of g)e.instanceMatrix.clearUpdateRanges(),e.instanceMatrix.needsUpdate=!0}},dispose:()=>{for(let e of o)e.dispose();for(let e of[s,c,l,u])e.dispose();a.dispose();for(let e of g)e.dispose()}}}var FB=.3,IB=.012,LB=e=>()=>(e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296);function RB(){let e=new tc;e.name=`arena`;let t=[],n=[],r=[],i=new jd({color:`#05070c`,roughness:.95});n.push(i);let a=new Fu(30,40);t.push(a);let o=new H(a,i);o.rotation.x=-Math.PI/2,o.position.y=-1,o.receiveShadow=!0,e.add(o);let s=LB(20260727),c=lB,l=PB(s);e.add(l.group);let u=document.createElement(`canvas`);u.width=1024,u.height=64;let d=u.getContext(`2d`);d!==null&&(d.fillStyle=`#070c1a`,d.fillRect(0,0,1024,64),d.fillStyle=`#13203f`,d.fillRect(0,0,1024,5),d.fillRect(0,59,1024,5),d.textBaseline=`middle`,d.font=`800 38px Inter, system-ui, sans-serif`,d.fillStyle=`#e9c46a`,d.fillText(`H A N D S`,28,33),d.fillStyle=`#c9d6f2`,d.font=`600 26px Inter, system-ui, sans-serif`,d.fillText(`CHAMPIONSHIP BOXING`,300,34),d.fillStyle=`#e9c46a`,d.font=`800 30px Inter, system-ui, sans-serif`,d.fillText(`FIGHT NIGHT`,700,34),d.fillStyle=`#b91c1c`,d.fillRect(948,22,22,22),d.fillStyle=`#1d4ed8`,d.fillRect(978,22,22,22));let f=new ku(u);f.colorSpace=lo,f.wrapS=Bi,f.repeat.set(-6,1),r.push(f);let p=new yl({map:f,side:1});n.push(p);let m=c[0].y+dB,h=new Iu(c[0].radius-uB-.03,c[0].radius-uB-.03,m- -1-.04,72,1,!0);t.push(h);let g=new H(h,p);g.name=`boards`,g.position.y=(m+-1)/2+.02,e.add(g);let _=new Float32Array(270);for(let e=0;e<90;e+=1){let t=c[Math.floor(s()*c.length)],n=s()*Math.PI*2;_[e*3]=Math.sin(n)*t.radius,_[e*3+1]=t.y+.9+s()*.5,_[e*3+2]=Math.cos(n)*t.radius}let v=new il;v.setAttribute(`position`,new Uc(_,3)),t.push(v);let y=new xu({color:13623551,size:.09,transparent:!0,opacity:0,blending:2,depthWrite:!1});n.push(y);let b=new Eu(v,y);e.add(b);let x=new jd({color:`#11151d`,roughness:.6,metalness:.4});n.push(x);let S=new jd({color:`#1a2230`,emissive:`#dfe9ff`,emissiveIntensity:1.1,roughness:.4});n.push(S);let C=new yl({color:`#a8c4ff`,transparent:!0,opacity:.006,blending:2,depthWrite:!1,side:2});n.push(C);let w=new Nu(9,.18,.18);t.push(w);let T=new Iu(.09,.14,.22,10);t.push(T);let E=new Lu(1.7,6.6,20,1,!0);t.push(E);for(let t=0;t<2;t+=1){let n=new H(w,x);n.position.set(0,7.6,t===0?-1.6:1.6),e.add(n);for(let t=0;t<5;t+=1){let r=-3.6+t*1.8,i=new H(T,S);i.position.set(r,7.45,n.position.z),e.add(i);let a=new H(E,C);a.position.set(r,4.1,n.position.z*.4),e.add(a)}}let D=new jd({color:`#070a12`,roughness:1});n.push(D);let O=new Iu(24,24,14,32,1,!0);t.push(O);let k=new H(O,D);k.position.y=5,k.material.side=1,e.add(k);let ee=document.createElement(`canvas`);ee.width=512,ee.height=256;let A=ee.getContext(`2d`);A!==null&&(A.fillStyle=`#04060c`,A.fillRect(0,0,512,256),A.strokeStyle=`#f1cc72`,A.lineWidth=6,A.strokeRect(14,14,484,228),A.fillStyle=`#f1cc72`,A.font=`800 84px Inter, system-ui, sans-serif`,A.textAlign=`center`,A.textBaseline=`middle`,A.fillText(`H A N D S`,256,104),A.fillStyle=`#8fa3c8`,A.font=`600 30px Inter, system-ui, sans-serif`,A.fillText(`CHAMPIONSHIP BOXING`,256,186));let te=new ku(ee);te.colorSpace=lo;let j=new yl({map:te});n.push(j);let ne=new Nu(4.6,2.3,.3);t.push(ne);let re=new H(ne,j);re.position.set(0,6.4,-14.5),e.add(re);let ie=new H(ne,x);ie.position.set(0,6.4,-14.65),e.add(ie),r.push(te);let M=0,N=0,ae=0,oe=!1;return{group:e,update:(e,t,n)=>{ae=Math.max(0,ae-t*FB),n&&!oe&&l.update(0,0,!0),oe=n,n||(l.update(e,ae),f.offset.x=e*IB%1,M-=t,M<=0&&(N=.09+Math.random()*.08,M=(.25+Math.random()*1.6)/(1+ae*4)),N=Math.max(0,N-t),y.opacity=N>0?.85:0)},excite:e=>{ae=Math.min(1,ae+Math.max(0,e))},excitement:()=>ae,setLowTier:l.setLowTier,makeRoomForCamera:l.makeRoomForCamera,dispose:()=>{for(let e of t)e.dispose();for(let e of n)e.dispose();for(let e of r)e.dispose();l.dispose()}}}var zB=2.05,BB=5.5,VB=1.05,HB=1.78,UB=3.75,WB=.85,GB=.45,KB=1.18,qB=2.5,JB=5.5;function YB(e,t,n){return e<2.5||t<3?null:(n+Math.floor((e-qB)/JB))%2}function XB(e){return Math.max(0,e-qB)%JB}var ZB=.95,QB=2.6,$B=-25;function eV(e,t,n,r,i){let a=e===0?-1:1,o=r*Math.PI/180,s=-a*Math.SQRT1_2,c=a*Math.SQRT1_2,l=s*Math.cos(o)+c*Math.sin(o),u=-s*Math.sin(o)+c*Math.cos(o);return i.set(a*t+l*n,0,-a*t+u*n)}function tV(e,t,n,r,i){eV(e,t,QB,$B+Math.min(1,n/JB)*5,r).setY(1.45),eV(e,t,.62,27,i).setY(1.05)}var nV={top:2.42,bottom:.95,width:2.4};function rV(e,t,n,r=.09){let i=Math.max(.2,1-n-r),a=Math.max((nV.top-nV.bottom)/i,nV.width/Math.max(.1,e)),o=(nV.top+nV.bottom)/2;return{distance:a/(2*Math.tan(R.degToRad(t)/2)),height:o-(.5-(r+i/2))*a}}var iV=class{current=new B(0,zB,BB);look=new B(0,VB,0);swayPhase=0;update(e,t,n,r,i,a,o,s,c=!1,l=null){this.swayPhase+=e;let u=a&&l!==null?WB:0,d=(n.x+r.x)/2+((l?.x??0)-(n.x+r.x)/2)*u,f=(n.z+r.z)/2+((l?.z??0)-(n.z+r.z)/2)*u,p=R.clamp(d,-1.4,1.4),m=R.clamp(f,-1.1,1.1),h=c?R.clamp(UB+i*.45-(a?.6:0),3.3,5.6):R.clamp(BB+i*.6-(a?.9:0),4.6,8.4),g=(c?HB:zB)+i*.08-(a?.45:0),_=s?0:Math.sin(this.swayPhase*.21)*.35,v=s?0:Math.sin(this.swayPhase*.13)*.3,y=p*.32+_,b=h+m*.2,x=g+v*.2;if(this.current.x+=(y-this.current.x)*(1-Math.exp(-2.6*e)),this.current.y+=(x-this.current.y)*(1-Math.exp(-2.6*e)),this.current.z+=(b-this.current.z)*(1-Math.exp(-2.6*e)),this.look.x+=(p-this.look.x)*(1-Math.exp(-3.2*e)),this.look.y+=((a?u>0?GB:.7:c?KB:VB)-this.look.y)*(1-Math.exp(-3.2*e)),this.look.z+=(m*.6-this.look.z)*(1-Math.exp(-3.2*e)),!s&&o>5e-4){let e=t*61;this.current.x+=Math.sin(e*1.31)*o,this.current.y+=Math.cos(e*1.97)*o*.6,this.look.x+=Math.sin(e*1.53)*o*.5,this.look.y+=Math.cos(e*2.11)*o*.35}return{position:this.current,lookAt:this.look}}},aV=2.45,oV=2.25,sV=1.35,cV=3.5,lV=1.25,uV=.45;function dV(e,t,n,r,i,a,o=31){let s=R.degToRad(o),c=Math.cos(s)*aV,l=Math.sin(s)*aV,u=-r,d=n,f=-n*c+u*l,p=-r*c+d*l,m=(e,t)=>Math.abs(t)<1e-9?1:R.clamp((Math.sign(t)*cV-e)/t,0,1),h=Math.min(m(e.x,f),m(e.z,p));i.set(R.clamp(e.x+f*h,-3.5,cV),oV,R.clamp(e.z+p*h,-3.5,cV)),a.set(t.x,sV,t.z)}var fV=class{angle=Math.PI;closeness=0;initialised=!1;target=new B;position=new B;look=new B;aim=new B;get forwardX(){return Math.sin(this.angle)}get forwardZ(){return Math.cos(this.angle)}reset(){this.initialised=!1}update(e,t,n,r,i,a,o=16/9){let s=r.x-n.x,c=r.z-n.z,l=Math.hypot(s,c),u=l>.05?Math.atan2(s,c):this.angle,d=R.clamp((1.3-l)/.8,0,1);if(!this.initialised)this.angle=u,this.closeness=d;else{let t=Math.atan2(Math.sin(u-this.angle),Math.cos(u-this.angle));this.angle+=t*(1-Math.exp(-4.5*e)),this.closeness+=(d-this.closeness)*(1-Math.exp(-3*e))}let f=R.clamp(o,uV,1);if(dV(n,r,this.forwardX,this.forwardZ,this.target,this.aim,R.lerp(31,60,this.closeness)*f),!this.initialised)this.position.copy(this.target),this.look.copy(this.aim),this.initialised=!0;else{let t=1-Math.exp(-10*e);this.position.lerp(this.target,t),this.look.lerp(this.aim,t)}let p={position:this.position,lookAt:this.look,tight:!0};if(a||i<=5e-4)return p;let m=t*61;return this.target.set(this.position.x+Math.sin(m*1.31)*i,this.position.y+Math.cos(m*1.97)*i*.6,this.position.z),this.aim.set(this.look.x+Math.sin(m*1.53)*i*.5,this.look.y+Math.cos(m*2.11)*i*.35,this.look.z),{position:this.target,lookAt:this.aim,tight:!0}}},pV=54,mV=136,hV=110,gV=168,_V=400,vV=74,yV=72,bV={right:220,wideTop:64,compactTop:120,height:34},xV=200,SV={reach:192,bottom:80},CV=`rgba(3,6,12,0.86)`,wV=`rgb(4,7,13)`,TV={play:`#f6d57a`,colour:`#9ec7ff`,announcer:`#f6d57a`},EV=[`#4f86d9`,`#d9483c`],DV=`Inter, system-ui, sans-serif`;function OV(e){let{width:t,height:n}=e,r=t<640,i=n<480,a=i?.78:r?.85:1,o=Math.min(680,t-24),s=e.resultTop,c=s===null&&e.touch&&e.phase!==`complete`,l=Nr(t,n,c);if(c&&e.paused===!0&&e.phase===`countdown`)return null;if(s===null&&e.phase===`countdown`){let e=l.x+l.width/2,r=t-(c&&t>n?jr(t,n,l.y+l.height):12);return{x:e,y:l.y,maxWidth:Math.min(o,2*Math.min(e-12,r-e)),anchor:`top`,scale:a,cover:{width:l.width,height:l.height}}}let u=t-384;if(s===null&&!e.touch&&!i&&u>=_V){let r=n-(e.hint?gV:hV),i=e.cornerPanelTop===void 0||e.cornerPanelTop===null?r:Math.min(r,e.cornerPanelTop-8);if(i-vV*a>=n*.45)return{x:t/2,y:i,maxWidth:Math.min(o,u),anchor:`bottom`,scale:a,cover:null}}if(s===null&&e.viewerDown)return null;let d=s===null&&r?mV:pV;s===null&&(e.phase===`rest`||e.phase===`foul_recovery`||c&&e.paused===!0?d=Math.max(d,l.y+l.height+8):e.phase===`knockdown`?d=Math.max(d,ti(n,r)+yV):e.phase===`finish`&&(d=Math.max(d,di(t,n,c).bottom+8+(c?0:59))),e.replay&&t/2-o/2f)return null;let p=c&&e.lag===!0&&!r&&!e.replay&&dMath.round(8*e)+Math.round(10*e)+Math.round(4*e)+2*Math.round(Math.round(17*e)*1.3)+Math.round(5*e);function AV(e,t,n,r){let i=r?1:t.opacity;if(i<=.01)return;let a=r||n.cover!==null?0:t.entering*8*(n.anchor===`bottom`?1:-1);e.save(),e.globalAlpha=i,e.textBaseline=`alphabetic`;let o=i*i;t.line.card===null?NV(e,t.line,n,a,o):FV(e,t.line.card,n,a,o),e.restore()}function jV(e,t,n){if(e.measureText(t).width<=n)return t;let r=t;for(;r.length>1&&e.measureText(`${r}…`).width>n;)r=r.slice(0,-1);return`${r}…`}function MV(e,t){let n=e.length/2,r=null,i=1/0;for(let a=e.indexOf(` `);a>=0;a=e.indexOf(` `,a+1)){let o=e.slice(0,a),s=e.slice(a+1),c=Math.abs(a-n);t(o)&&t(s)&&c0?[e.slice(0,a),e.slice(a+1)]:[e,``]}function NV(e,t,n,r,i){let a=n.scale,o=Math.round(14*a),s=Math.round(10*a),c=n.maxWidth-o*2-4,l=(t,n)=>(e.font=`700 ${n}px ${DV}`,e.measureText(t).width),u=Hn(e=>l(t.text,e),c,Math.round(17*a),Math.round(13*a)),d=l(t.text,u)<=c?[t.text]:MV(t.text,e=>l(e,u)<=c).filter(e=>e.length>0),f=Math.max(...d.map(e=>Math.min(c,l(e,u)))),p=SR[t.speaker];e.font=`800 ${s}px ${DV}`;let m=e.measureText(p).width,h=Math.min(n.maxWidth,Math.max(f,m)+o*2+4),g=Math.round(u*1.3),_=Math.round(8*a)+s,v=_+Math.round(4*a)+d.length*g+Math.round(5*a),y=(n.anchor===`bottom`?n.y-v:n.y)+r,b=n.x-h/2,x=TV[t.speaker];e.fillStyle=CV,e.fillRect(b,y,h,v),e.fillStyle=x,e.fillRect(b,y,4,v),e.globalAlpha=i,e.textAlign=`left`,e.font=`800 ${s}px ${DV}`,e.fillText(p,b+4+o,y+_),e.fillStyle=`#f6f7fb`,e.font=`700 ${u}px ${DV}`,d.forEach((t,n)=>e.fillText(jV(e,t,c),b+4+o,y+_+Math.round(4*a)+g*(n+1)-Math.round(u*.28)))}function PV(e,t,n){let r=Math.round(11*e),i=Math.round(28*e),a=Math.round(6*e),o={pad:Math.round(10*e),gap:Math.round(7*e)},s={pad:Math.max(4,Math.round(6*e)),gap:Math.max(3,Math.round(4*e))},c=t?Math.round(10*e):0,l=[{...o,detail:c},{...s,detail:c},{...s,detail:0}],u=(e,t)=>e.pad*2+r+e.gap+t+(e.detail===0?0:a+e.detail);for(let e of l)if(n===null||u(e,i)<=n)return{kicker:r,title:i,...e,height:u(e,i)};let d=l[2],f=Math.max(12,Math.min(i,(n??1/0)-u(d,0)));return{kicker:r,title:f,...d,height:u(d,f)}}function FV(e,t,n,r,i){let a=n.scale,o=Math.round(18*a),s=n.maxWidth-o*2,c=PV(a,t.detail.length>0,n.cover?.height??null),l=c.kicker,u=c.detail,d=(t,n,r)=>(e.font=`${n} ${r}px ${DV}`,e.measureText(t).width),f=Hn(e=>d(t.title,900,e),s,c.title,Math.min(c.title,Math.round(15*a))),p=Math.max(d(t.kicker,800,l),Math.min(s,d(t.title,900,f)),u===0?0:d(t.detail,700,u)),m=Math.min(n.maxWidth,Math.max(240*a,p+o*2,n.cover?.width??0)),h=c.pad+l+c.gap+f+(u===0?0:Math.round(6*a)+u)+c.pad,g=Math.max(h,n.cover?.height??0),_=(n.anchor===`bottom`?n.y-g:n.y)+r,v=n.x-m/2,y=t.corner===null?TV.announcer:EV[t.corner];e.fillStyle=n.cover===null?CV:wV,e.fillRect(v,_,m,g),e.fillStyle=y,e.fillRect(v,_,m,3),e.globalAlpha=i,e.textAlign=`center`;let b=_+(g-h)/2+c.pad+l;e.font=`800 ${l}px ${DV}`,e.fillText(jV(e,t.kicker,s),n.x,b),b+=c.gap+f,e.fillStyle=`#ffffff`,e.font=`900 ${f}px ${DV}`,e.fillText(jV(e,t.title,s),n.x,b-Math.round(f*.12)),u>0&&(b+=Math.round(6*a)+u,e.fillStyle=`#93a3bd`,e.font=`700 ${u}px ${DV}`,e.fillText(jV(e,t.detail,s),n.x,b))}var IV={broken_nose:[`nose`,.3],broken_jaw:[`mouth`,.25],jaw_torn:[`mouth`,.75],eye_left_out:[`eye_left`,.3],eye_right_out:[`eye_right`,.3],ear_left_torn:[`ear_left`,.3],ear_right_torn:[`ear_right`,.3],skull_fractured:[`skull`,.4],arm_left_broken:[`elbow_left`,.3],arm_right_broken:[`elbow_right`,.3],forearm_left_severed:[`elbow_left`,1],forearm_right_severed:[`elbow_right`,1],arm_left_torn:[`shoulder_left`,1],arm_right_torn:[`shoulder_right`,1],ribs_left_broken:[`ribs_left`,.15],ribs_right_broken:[`ribs_right`,.15],disemboweled:[`belly`,.6],knee_left_blown:[`knee_left`,.2],knee_right_blown:[`knee_right`,.2]},LV=new Map(Ge.map(e=>[e,[]]));for(let[e,[t,n]]of Object.entries(IV))LV.get(t).push([e,n]);var RV=new Set([`nose`,`mouth`,`eye_left`,`eye_right`,`ear_left`,`ear_right`,`skull`]),zV=new Set([`waist`,`crotch`,`knee_left`,`knee_right`]),BV=1.5,VV=8,HV=.9,UV=18,WV=36,GV=.45,KV=.25,qV=.3,JV=.08,YV=.012,XV=[`ankleL`,`ankleR`],ZV=[`toeL`,`toeR`],QV=.35,$V=.05,eH=.5,tH=.3,nH=.4,rH=2.2,iH=.12,aH=4e-4,oH=.4,sH=.6,cH=4,lH=1.1,uH=1/500,dH=.18,fH=.55,pH=.45,mH=.5,hH=.08,gH=[`gloveL`,`gloveR`],_H={bottom:80,top:108,half:17},vH=70,yH=2,bH=7,xH=.5,SH=.28,CH=[`left`,`right`],wH={left:`eye_left_out`,right:`eye_right_out`},TH={left:`eye_left`,right:`eye_right`},EH={left:[`forearm_left_severed`,`arm_left_torn`],right:[`forearm_right_severed`,`arm_right_torn`]},DH=[`head`,`arm_left`,`arm_right`,`leg_left`,`leg_right`,`torso`],OH={head:[`neck`,`neck`],jaw:[`mouth`,`head`],forearm_left:[`elbow_left`,`elbowL`],forearm_right:[`elbow_right`,`elbowR`],arm_left:[`shoulder_left`,`shoulderL`],arm_right:[`shoulder_right`,`shoulderR`],leg_left:[`knee_left`,`kneeL`],leg_right:[`knee_right`,`kneeR`],upper_body:[`waist`,`hips`],torso:[`chest`,`upperChest`]},kH=Object.keys(OH),AH={head:[`head`],jaw:[`head`],forearm_left:[`body`,`glove_left`],forearm_right:[`body`,`glove_right`],arm_left:[`body`,`glove_left`],arm_right:[`body`,`glove_right`],leg_left:[`body`,`shoes`],leg_right:[`body`,`shoes`],upper_body:[`head`,`body`,`glove_left`,`glove_right`],torso:[`body`,`pants`]},jH=new B(0,1,0),MH=new B(0,.12,.02),NH=class{effects;bake;bodies=[null,null];position=new B;axis=new B;scratch=new B;turn=new rs;matrix=new Ds;skullOffset=new B;injuries=new Set;time=0;settings={blood:`full`,reducedMotion:!1};xray=new Jk;constructor(e,t){this.effects=e,this.bake=t,e.scene.add(this.xray.root)}attach(e,t){this.bodies[e]?.mutilation.dispose(),this.xray.prepare(t.boxer);let n={graph:t,mutilation:new ok(t.boxer),shown:new Set,early:new Map,awaited:new Map,inflicted:new Set,fatalWounds:new Map,forced:new Set,fatalParts:[],burst:new Set,fatality:null,dead:null,gutsDropAt:null,gibbed:!1,vomitUntil:0,printed:[new B,new B],dragged:new B,sliding:!1,broke:null,spatter:0,lost:0,dripIn:0,dripped:0,diedAt:0,voided:!1};return this.bodies[e]=n,n.mutilation}get graphic(){return this.settings.blood===`full`&&!this.settings.reducedMotion}expect(e,t){let n=this.bodies[e];n!=null&&!n.inflicted.has(t)&&n.awaited.set(t,this.time+VV)}sync(e,t,n,r,i,a=!1){this.time=i,this.settings=n;let o=this.bodies[e];if(o==null)return;let s=this.graphic;!s&&(o.gibbed||o.fatalParts.length>0||o.fatalWounds.size>0||o.forced.size>0)&&this.unmaim(o,e);let c=this.injuries;c.clear();let l=!1;for(let e of t.injuries){let t=o.awaited.get(e);if(t!==void 0){if(i<=t){l=!0;continue}o.awaited.delete(e)}c.add(e),o.early.delete(e),o.inflicted.add(e)}for(let[e,t]of o.early)i>t?o.early.delete(e):c.add(e);for(let e of o.forced)c.add(e);if(l)for(let e of o.shown)c.add(e);o.shown.clear();for(let e of c)o.shown.add(e);for(let e of o.inflicted)o.shown.has(e)||o.inflicted.delete(e);let u=o.graph.boxer,d=R.clamp(1-t.blood_volume/Je,0,1);if(o.mutilation.apply(o.shown,s?`full`:n.blood===`off`?`off`:`reduced`),o.mutilation.setPallor(n.blood===`off`?0:d),o.graph.setInjuries(o.shown,s),o.graph.setFaint(o.dead===null?R.clamp((.6-t.blood_volume/Je)/.6,0,1):0),o.dead!==null&&!o.graph.isDead&&o.graph.die(o.dead),o.mutilation.update(r,i),this.xray.owner===e&&(s&&!o.gibbed?this.xray.update(r):this.xray.stop()),u.root.visible=!o.gibbed,o.gibbed)return;this.wear(o,e,d,r);let f=o.mutilation.isPartGone(`upper_body`),p=f||u.isDecapitated,m=p||u.isHeadBurst,h=1-.65*d,g=0;for(let t of Ge){let n=o.fatalWounds.get(t)??0,r=`blood`,c=LV.get(t);for(let e=0;e0&&o.mutilation.anchor(t,this.position,this.axis)&&this.effects.anchorWound(e,t,this.position,this.axis)}for(let t=0;t=o.gutsDropAt&&(o.gutsDropAt=null,this.effects.dropGuts(e)),this.effects.anchorGuts(e,this.position,this.axis)):this.effects.gutsOut(e)&&this.effects.clearGuts(e),i=KV&&this.track(o,Math.min(1,g)),o.dead===null||!o.mutilation.anchor(`waist`,this.position,this.axis))return;this.effects.setCorpse(e,s?this.position:null);let v=s&&this.position.yeH?o.dragged.copy(this.position):y>$V&&(this.effects.smear(o.dragged.x,o.dragged.z,this.position.x,this.position.z,tH),o.dragged.copy(this.position)),o.sliding=v}gibbed(e){return this.bodies[e]?.gibbed===!0}hasGlove(e,t){let n=this.bodies[e]?.shown;return n===void 0||!this.graphic||!(n.has(EH[t][0])||n.has(EH[t][1]))}wear(e,t,n,r){let i=e.graph.boxer,a=this.graphic,o=this.bodies[1-t]??null;e.lost=n;let s=o===null?0:o.lost*rH+o.shown.size*iH,c=a?Math.min(1,Math.max(e.spatter,s)):0;i.headInjury.setSpatter(c*.8),i.bodyInjury.setSpatter(c),i.setGloveBlood(Math.max(i.gloveBloodLevel,c)),i.setTrunksBlood(Math.max(i.trunksBloodLevel,c*.7));let l=this.settings.blood===`off`?1:sH+Math.min(lH,n*cH);if(i.headInjury.setRun(l),i.bodyInjury.setRun(l),this.settings.blood===`off`&&(i.headInjury.clearMarks(),i.bodyInjury.clearMarks()),!a||e.dead!==null||i.gloveBloodLevel0))return;e.dripIn=mH/i.gloveBloodLevel,e.dripped+=1;let u=e.dripped%2;this.hasGlove(t,CH[u])&&(i.rig.bones[gH[u]].getWorldPosition(this.position),this.position.y-=hH,this.effects.shed(this.position,t*4099+e.dripped))}land(e,t,n,r,i,a,o,s=0,c=1){let l=this.bodies[t]??null,u=this.bodies[e]??null;if(l!==null&&n!==null&&this.hasGlove(t,n)?l.graph.boxer.rig.bones[gH[n===`left`?0:1]].getWorldPosition(this.scratch):this.scratch.copy(o),this.bruise(e,this.scratch,r,i),this.graphic&&(a>0&&l!==null&&(l.spatter=Math.min(1,l.spatter+a*aH)),a>0&&u!==null&&(u.spatter=Math.min(1,u.spatter+a*aH*oH)),!(u===null||u.gibbed))){for(let t=0;t_H.top||Math.abs(t)>_H.half))continue;let i=(t-s.x)**2+(r-s.y)**2+(c.getZ(e)-s.z)**2;ia.mutilation.anchor(e,c,l);switch(t){case`broken_nose`:d(`nose`)&&s.sprayFluid(`blood`,c,r,140,n,1.1);break;case`broken_jaw`:d(`mouth`)&&(s.spawnTeeth(c,r,5,n),s.sprayFluid(`blood`,c,r,180,n));break;case`jaw_torn`:d(`mouth`)&&(this.fling(a,e,`jaw`,n,r,{radius:.05,speed:1.2,lift:.8}),s.spawnDebris(`jawbone`,c,r,1,n,1.2),s.spawnTeeth(c,r,9,n),s.sprayFluid(`blood`,c,r,420,n,1.2));break;case`eye_left_out`:case`eye_right_out`:d(`eye_${u}`)&&(s.gougeEye(e,c,l,r,n,u),s.sprayFluid(`blood`,c,r,120,n));break;case`ear_left_torn`:case`ear_right_torn`:d(`ear_${u}`)&&(s.spawnDebris(`ear`,c,r,1,n),s.sprayFluid(`blood`,c,r,130,n));break;case`face_left_flayed`:case`face_right_flayed`:d(`eye_${u}`)&&(s.spawnDebris(`skin`,c,r,3,n),s.sprayFluid(`blood`,c,r,260,n));break;case`skull_fractured`:d(`skull`)&&(s.spawnDebris(`shard`,c,r,7,n,1.2),s.spawnDebris(`brain`,c,r,8,n),s.sprayFluid(`blood`,c,r,300,n,1.3),s.sprayFluid(`brain`,c,r,90,n));break;case`shoulder_left_dislocated`:case`shoulder_right_dislocated`:break;case`arm_left_broken`:case`arm_right_broken`:d(`elbow_${u}`)&&(s.spawnDebris(`bone`,c,r,3,n),s.sprayFluid(`blood`,c,r,200,n));break;case`forearm_left_severed`:case`forearm_right_severed`:this.fling(a,e,`forearm_${u}`,n,r,{radius:.07,speed:1.1}),d(`elbow_${u}`)&&(s.spawnDebris(`bone`,c,r,2,n),s.spawnDebris(`flesh`,c,r,8,n),s.sprayFluid(`blood`,c,r,600,n,1.3));break;case`arm_left_torn`:case`arm_right_torn`:this.fling(a,e,`arm_${u}`,n,r,{radius:.08,speed:1,spin:.7}),d(`shoulder_${u}`)&&(s.spawnDebris(`flesh`,c,r,14,n),s.spawnDebris(`bone`,c,r,2,n),s.sprayFluid(`blood`,c,r,800,n,1.4));break;case`ribs_left_broken`:case`ribs_right_broken`:d(`ribs_${u}`)&&(s.spawnDebris(`bone`,c,r,2,n,.8),s.sprayFluid(`blood`,c,r,140,n));break;case`liver_ruptured`:this.vomit(e,n,1.6);break;case`disemboweled`:d(`belly`)&&(s.spillGuts(e,c,n,UV),s.spawnDebris(`organ`,c,r,3,n),s.spawnDebris(`gut`,c,r,4,n),s.spawnDebris(`fat`,c,r,4,n),s.sprayFluid(`blood`,c,r,650,n,1.2),s.sprayFluid(`bile`,c,r,110,n));break;case`knee_left_blown`:case`knee_right_blown`:d(`knee_${u}`)&&(s.spawnDebris(`bone`,c,r,2,n,.7),s.sprayFluid(`blood`,c,r,110,n))}return!0}rebreak(e,t){let n=this.bodies[e],r=n?.broke??null;return n==null||r===null||r.tick!==t||!this.graphic||n.gibbed?!1:(this.xray.start(e,n.graph.boxer,n.mutilation,r.site,r.x,r.z),!0)}drawBreak(e,t,n,r){if(this.xray.owner<0)return;let i=this.effects.mistPoints,a=i.visible,o=r.visible;i.visible=!1,r.visible=!1,this.xray.drawInset(e,t,n),i.visible=a,r.visible=o}holdXray(e,t){let n=this.bodies[e];n!=null&&this.xray.start(e,n.graph.boxer,n.mutilation,t,1,0,!0)}vomit(e,t,n=1.3){let r=this.bodies[e];r==null||r.gibbed||this.settings.reducedMotion||(r.graph.retch(n),this.settings.blood===`full`&&r.mutilation.anchor(`mouth`,this.position,this.axis)&&(r.vomitUntil=this.time+n,this.effects.gush(e,this.position,this.axis.addScaledVector(jH,-.4).normalize(),n,520,t,`bile`),this.effects.sprayFluid(`blood`,this.position,0,90,t,.6),this.effects.puddle(this.position.x+this.axis.x*nH,this.position.z+this.axis.z*nH,.22,`bile`,t)))}fatality(e,t,n,r){let i=this.bodies[e];if(i==null||i.fatality!==null||!this.graphic)return!1;i.fatality=t;let a=this.effects,o=this.position,s=this.axis,c=(t,i,s=1)=>a.spawnDebris(t,o,r,i,n,s,e),l=(e,t,i=1)=>a.sprayFluid(e,o,r,t,n,i);if(t===`eyes_out`){for(let t=0;ta||Math.hypot(this.position.x-s.x,this.position.z-s.z)t!==n&&e.mutilation.isPartGone(t)),d=[],f=new B;for(let e of AH[n]){let t=lO(c,e);if(t===null||!t.visible)continue;let r=t=>oO(n,e,t)&&!u.some(n=>oO(n,e,t)),i=t.geometry.getAttribute(`position`),a=t.geometry.getIndex(),o=0,s=0,p=new Uint8Array(i.count);if(a===null)p.fill(1);else for(let e=0;e0&&d.push(this.bake(c,e,t,l,this.turn,o===s?void 0:r))}return d.length>0&&this.effects.flingPart(PH(t,n),d,l,this.turn,i,r,{...a,part:n})}};function PH(e,t){return`${e}:${t}`}var FH=96,IH=4,LH=2.5,RH=.45,zH=.032,BH=e=>()=>(e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296);function VH(e){let t=document.createElement(`canvas`);t.width=FH,t.height=FH;let n=t.getContext(`2d`);if(n===null)return t;let r=BH(e),i=FH/2,a=4+Math.floor(r()*3);for(let e=0;e.05)||!Number.isFinite(e)||!Number.isFinite(t))return;let i=BH((Number.isSafeInteger(r)?r:0)*40503+11),a=Math.min(24,Math.max(1,Math.round(n*12))),o=.7+.3*Math.min(3,n);for(let r=0;r=1.5?1.8:1),l=LH+i()*2.5;this.drops.push({x:Math.min(1,Math.max(0,a?i():e+(i()+i()-1)*s*1.6)),y:Math.min(1,Math.max(0,a?i():t+(i()+i()-1)*s)),radius:c,alpha:.6+i()*.35,life:l,maxLife:l,run:c>=zH?.02+i()*.04:0,ran:0,sprite:Math.floor(i()*IH),turn:i()*Math.PI*2})}this.drops.length>96&&this.drops.splice(0,this.drops.length-96)}update(e){let t=Number.isFinite(e)?Math.max(0,e):0;for(let e=this.drops.length-1;e>=0;--e){let n=this.drops[e];n.life-=t,n.life<=0?this.drops.splice(e,1):n.ran+=n.run*t*(n.life/n.maxLife)}}draw(e,t,n){if(this.drops.length!==0){this.sprites??=Array.from({length:IH},(e,t)=>VH(1374496523+t*7919)),e.save();for(let r of this.drops){let i=Math.min(1,r.life/(r.maxLife*RH)),a=r.radius*n,o=r.x*t,s=(r.y+r.ran)*n;if(e.globalAlpha=r.alpha*i,r.ran>0){let t=r.y*n,i=e.createLinearGradient(0,t,0,s);i.addColorStop(0,`rgba(88,0,6,0)`),i.addColorStop(1,`rgba(88,0,6,0.6)`),e.fillStyle=i,e.beginPath(),e.moveTo(o-a*.06,t),e.lineTo(o+a*.06,t),e.lineTo(o+a*.28,s),e.lineTo(o-a*.28,s),e.closePath(),e.fill()}e.save(),e.translate(o,s),e.rotate(r.turn),e.drawImage(this.sprites[r.sprite],-a,-a,a*2,a*2),e.restore()}e.restore()}}clear(){this.drops.length=0}},UH=.026,WH=.038,GH=22,KH=[[.55,.85],[.55,.1],[.4,-.12],[-.4,-.12],[-.55,.05],[-.55,.6],[-.32,.62],[-.3,.16],[.3,.16],[.32,.85]],qH=.03;function JH(){let e=[],t=[],n=KH.length,r=new B,i=new B,a=new B;for(let t=0;t<=GH;t+=1){let n=t/GH*2-1;r.set(n*UH,0,WH*(1-n*n)-WH*.5),i.set(UH,0,-2*WH*n).normalize(),a.set(i.z,0,-i.x),a.dot(r.clone().setY(0).add(new B(0,0,WH*.5)))<0&&a.negate();for(let[t,n]of KH)e.push(r.x+a.x*t*.01,n*.01,r.z+a.z*t*.01)}for(let e=0;e=50:e===`hit`&&t>=65:!1}var XH=9.81,ZH=.32,QH=4.5,$H=.04,eU=3;function tU(){return{out:!1,moving:!1,sliding:!1,x:0,y:-50,z:0,vx:0,vy:0,vz:0,wx:0,wy:0,wz:0,bounces:0,age:0,restYaw:0}}function nU(e,t,n,r){if(!e.out||!e.moving)return!1;e.age+=n;let i=r+.006;if(!e.sliding)e.vy-=XH*n,e.x+=e.vx*n,e.y+=e.vy*n,e.z+=e.vz*n,sU(t,e.wx*n,e.wy*n,e.wz*n),e.y<=i&&(e.y=i,e.bounces.6?(e.bounces+=1,e.vy=-e.vy*ZH,e.vx*=.72,e.vz*=.72,e.wx*=.55,e.wy*=.7,e.wz*=.55):(e.vy=0,e.sliding=!0));else{let r=Math.hypot(e.vx,e.vz),a=Math.max(0,r-QH*n);a<=$H?(e.vx=0,e.vz=0):(e.vx*=a/r,e.vz*=a/r),e.x+=e.vx*n,e.z+=e.vz*n,e.y=i,e.wy*=Math.exp(-4*n),e.restYaw+=e.wy*n,iU.setFromAxisAngle(rU,e.restYaw),t.slerp(iU,1-Math.exp(-12*n)),e.vx===0&&e.vz===0&&t.angleTo(iU)<.02&&(t.copy(iU),e.moving=!1)}return e.moving}var rU=new B(0,1,0),iU=new rs,aU=new rs,oU=new Ls;function sU(e,t,n,r){aU.setFromEuler(oU.set(t,n,r)),e.multiply(aU).normalize()}var cU=[.84,.78,.62],lU=[.4,.04,.04],uU=[.3,.012,.018],dU=[.5,.045,.05],fU=[.86,.64,.16],pU=[.42,.19,.09],mU=[.92,.88,.74],hU=[.72,.36,.34],gU=[.82,.52,.46],_U=(e,t,n)=>{let r=Math.min(1,Math.max(0,n));return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r,e[2]+(t[2]-e[2])*r]},vU=e=>{let t=Math.min(1,Math.max(0,e));return t*t*(3-2*t)},yU=(e,t,n=0)=>.5+.25*Math.sin(e.x*t*1.31+n)*Math.sin(e.y*t*1.93+n*1.7)+.25*Math.sin(e.z*t*1.57+n*.6)*Math.sin(e.x*t*.83-n),bU=e=>()=>(e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296),xU=new B;function SU(e,t){e.deleteAttribute(`normal`),e.deleteAttribute(`uv`);let n=Fg(e,1e-5);e.dispose();let r=n.getAttribute(`position`);for(let e=0;enew Ds().compose(new B(e,t,n),new rs().setFromEuler(new Ls(r,i,a)),new B(o,s,c));function EU(e,t,n){return CU(new bd(new Ju(e.map(e=>new B(...e))),Math.max(4,e.length*3),t,7,!1),n)}var DU=new Map;function OU(e){let t=DU.get(e);return t===void 0&&(t=e(),DU.set(e,t)),t.clone()}function kU(){return wU([CU(SU(new fd(1,3),e=>{e.normalize();let t=.45+.55*vU((e.x+1)/2),n=1-.34*Math.exp(-(((e.x+.2)/.14)**2))*vU(e.z+.6),r=1+.07*Math.sin(e.x*5.1+.7)*Math.sin(e.z*4.3+1.9);e.set(e.x*.1*r,(e.y>0?e.y:e.y*.4)*.04*t*r,e.z*.062*n*(.7+.3*t))}),e=>_U(_U([.2,.035,.022],[.34,.07,.04],yU(e,70)),uU,e.y<-.006?.5:0)),CU(SU(new fd(1,2),e=>e.set(e.x*.03,e.y*.012,e.z*.014)),[.16,.24,.04],TU(.03,-.012,.03,0,.5,0)),EU([[.01,.004,-.03],[0,.012,-.055],[-.012,.014,-.075]],.007,e=>_U([.16,.05,.2],uU,vU((-e.z-.06)*60)))])}function AU(){return wU([CU(SU(new fd(1,3),e=>{e.normalize();let t=1-.42*Math.exp(-((e.x/.4)**2))*vU(e.z);e.set(e.x*.058,e.y*.024,e.z*.033*t-e.x*e.x*.012)}),e=>_U([.3,.05,.075],[.19,.025,.05],yU(e,120,1.3))),EU([[0,0,.014],[.004,.002,.034],[.018,0,.058],[.02,-.002,.082]],.0048,e=>_U([.86,.72,.56],uU,vU((e.z-.066)*70))),EU([[-.006,.002,.014],[-.012,.004,.034],[-.03,.002,.046]],.0042,uU),CU(SU(new fd(1,1),e=>e.set(e.x*.014,e.y*.009,e.z*.01)),fU,TU(0,.002,.02))])}function jU(){return wU([CU(SU(new fd(1,3),e=>{e.normalize();let t=.55+.45*vU((1-e.z)/2+.1),n=1-.3*Math.exp(-(((e.z-.1-e.x*.3)/.1)**2)),r=1+.035*Math.sin(e.x*23)*Math.sin(e.y*19)*Math.sin(e.z*21);e.set(e.x*.062*t*n*r,(e.y>0?e.y:e.y*.55)*.036*t*n*r,e.z*.09*r)}),e=>_U(_U([.66,.34,.34],[.34,.16,.2],vU(yU(e,160,.4)*1.7-.5)),uU,vU((e.z-.05)*22)*.7)),CU(new Iu(.011,.012,.045,9,5,!0),e=>Math.abs((e.y+.5)*110%2)<1?[.84,.74,.62]:[.6,.26,.24],TU(0,.006,.105,Math.PI/2-.2,0,0))])}function MU(){let e=new Ju([[-.085,0,.012],[-.045,.004,-.02],[0,0,.018],[.04,.003,-.016],[.082,0,.014]].map(e=>new B(...e))),t=[],n=[],r=[],i=e.computeFrenetFrames(30,!1);for(let r=0;r<=30;r+=1){let a=r/30,o=e.getPointAt(a),s=Math.min(1,Math.sin(a*Math.PI)*5),c=.0175*(.82+.18*Math.abs(Math.sin(a*Math.PI*5.5)))*(.25+.75*s);for(let e=0;e<9;e+=1){let l=e/9*Math.PI*2,u=xU.copy(i.normals[r]).multiplyScalar(Math.cos(l)).addScaledVector(i.binormals[r],Math.sin(l));t.push(o.x+u.x*c,o.y+u.y*c,o.z+u.z*c);let d=1-.3*(1-Math.abs(Math.sin(a*Math.PI*5.5))),f=e===0?uU:_U(_U(hU,gU,.5+.5*Math.sin(a*23+e)),uU,s<1?.8:0);n.push(f[0]*d,f[1]*d,f[2]*d)}}for(let e=0;e<30;e+=1)for(let t=0;t<9;t+=1){let n=e*9+t,i=e*9+(t+1)%9;r.push(n,i,n+9,i,i+9,n+9)}let a=new il;a.setAttribute(`position`,new Kc(t,3)),a.setAttribute(`color`,new Kc(n,3)),a.setIndex(r),a.computeVertexNormals();let o=a.toNonIndexed();return a.dispose(),wU([o,...[[-.03,-.004,-.03],[.012,-.004,.03],[.05,-.004,-.028]].map(([e,t,n])=>CU(SU(new fd(1,1),e=>e.set(e.x*.016,e.y*.007,e.z*.011)),fU,TU(e,t,n,0,e*20,0)))])}function NU(){let e=[[.012,.008],[.004,.0105],[-.01,.0075],[-.013,-.004],[-.002,-.0095],[.01,-.0065]],t=[-1,-.72,-.3,.2,.62,1],n=[.02,.62,1,.9,.5,.02],r=[.004,-.002,0,.001,-.003,.005],i=[],a=[],o=(i,a)=>{let[o,s]=e[a%e.length];return[t[i]*.062,s*n[i],o*n[i]+r[i]]},s=(n,r)=>{let i=Math.abs(t[n]);return _U(r%e.length===3||r%e.length===4?_U(cU,lU,.75):cU,uU,vU((i-.6)*3.2))};for(let n=0;n_U(pU,dU,vU((-e.x-.006)*90));return wU([CU(SU(new fd(1,3),e=>{e.normalize();let t=e.y>0?1-.75*Math.exp(-(((e.x-.1)/.5)**2+((e.z+.1)/.55)**2)):1;e.set(e.x*.019,e.y*.0055*t,e.z*.031*(1-.18*e.x))}),t=>_U(e(t),[.24,.08,.05],t.y<.003&&t.y>-.001?.5:0)),CU(new yd(.024,.0048,7,18,Math.PI*1.25),pU,TU(-.001,.004,.004,-Math.PI/2,0,-Math.PI*.72,.78,1.18,1)),CU(SU(new fd(1,2),e=>e.set(e.x*.0095,e.y*.0055,e.z*.0105)),e,TU(.002,.002,.031)),CU(SU(new fd(1,1),e=>e.set(e.x*.005,e.y*.005,e.z*.007)),e,TU(-.011,.004,.006)),CU(SU(new fd(1,1),e=>e.set(e.x*.006,e.y*.005,e.z*.022)),dU,TU(-.017,0,.002))])}var FU=12;function IU(){let e=e=>[Math.sin(e)*.046,Math.cos(e)*.056-.02],t=[],n=e=>_U(_U(cU,[.7,.6,.44],yU(e,200)),uU,vU((e.y-.003)*220)*.75),r=Math.PI*.62,i=[];for(let t=0;t<=22;t+=1){let[n,a]=e(-r+t/22*r*2);i.push(new B(n,0,a))}let a=new bd(new Ju(i),44,.0085,8,!1);t.push(CU(SU(a,e=>e.setY(e.y*1.35)),n)),t.push(CU(SU(new fd(1,2),e=>e.set(e.x*.016,e.y*.013,e.z*.011)),n,TU(0,-.003,.038)));for(let n=0;n_U(mU,[.7,.2,.14],vU((-e.y-5e-4)*400)),TU(a,.0125+(s?.0045:.003),o,0,-i,0))),t.push(CU(SU(new fd(1,1),e=>e.set(e.x*.0058,e.y*.0045,e.z*.0058)),c?[.05,.004,.006]:[.5,.07,.08],TU(a,.0105,o)))}for(let n of[-1,1]){let[i,a]=e(n*r),o=SU(new Nu(.008,.05,.026,1,4,2),e=>{let t=e.y/.05+.5;e.z+=-.012*t+(t>.9?Math.sign(e.z)*.004:0),e.x*=1-.3*t});t.push(CU(o,e=>_U(cU,uU,vU((e.y-.012)*60)),TU(i,.02,a-.006,0,n*.25,n*-.12))),t.push(CU(SU(new fd(1,1),e=>e.set(e.x*.009,e.y*.006,e.z*.014)),dU,TU(i,.047,a-.016)))}let o=wU(t);return o.translate(0,-.016,0),o.computeBoundingBox(),o.computeBoundingSphere(),o}function LU(){let e=(e,t,n)=>{let r=t/13*Math.PI*2,i=.55+.45*Math.abs(Math.sin(t*2.7+.9))+.12*Math.sin(t*5.3),a=e/3*i,o=Math.cos(r)*a*.062,s=Math.sin(r)*a*.044;return[o,.009*Math.sin(o*60+.4)*Math.cos(s*48)+.3*(o*o+s*s)/.062+n*.0028*(1-e/3*.7),s]},t=[],n=[],r=(e,r,i,a)=>{for(let o of[e,r,i])t.push(...o),n.push(...a(o))},i=()=>pU,a=e=>Math.sin(e[0]*310+1)*Math.sin(e[2]*270)>.45?fU:_U(dU,uU,.5+.5*Math.sin(e[0]*140+e[2]*90));for(let t=0;t<3;t+=1)for(let n=0;n<13;n+=1){let o=(n+1)%13;r(e(t,n,1),e(t+1,o,1),e(t+1,n,1),i),r(e(t,n,0),e(t+1,n,0),e(t+1,o,0),a),t>0&&(r(e(t,n,1),e(t,o,1),e(t+1,o,1),i),r(e(t,n,0),e(t+1,o,0),e(t,o,0),a))}for(let t=0;t<13;t+=1){let n=(t+1)%13;r(e(3,t,1),e(3,n,1),e(3,t,0),()=>dU),r(e(3,n,1),e(3,n,0),e(3,t,0),()=>dU)}let o=new il;return o.setAttribute(`position`,new Kc(t,3)),o.setAttribute(`color`,new Kc(n,3)),o.computeVertexNormals(),wU([o])}function RU(){let e=bU(795558343),t=[];for(let n=0;n<9;n+=1){let r=e()*Math.PI*2,i=n===0?0:.012+e()*.02,a=n===0?.021:.009+e()*.009,o=e();t.push(CU(SU(new fd(1,2),e=>e.set(e.x*a,e.y*a*.7,e.z*a)),_U(fU,[.92,.8,.36],o),TU(Math.cos(r)*i,(e()-.3)*.008,Math.sin(r)*i*.8)))}return t.push(CU(SU(new fd(1,1),e=>e.set(e.x*.02,e.y*.005,e.z*.009)),dU,TU(.018,-.006,.01,0,.6,0))),wU(t)}function zU(){let e=e=>_U(_U(cU,[.68,.58,.42],yU(e,260)),uU,vU(yU(e,90,2.2)*2.4-1.3)),t=CU(SU(new Iu(.02,.02,.022,14,2),e=>{let t=1-.14*(1-(e.y/.011)**2);e.x*=t,e.z*=t*(e.z<0?.8:1)}),e,TU(0,0,.008)),n=CU(new Iu(.0175,.0175,.005,12),e=>_U([.78,.5,.46],dU,yU(e,400)),TU(0,.0125,.008)),r=CU(new yd(.0115,.0042,6,12),e,TU(0,0,-.016,Math.PI/2,0,0)),i=CU(SU(new Nu(.007,.011,.03,1,1,3),e=>{let t=.5-e.z/.03;e.x*=1-.55*t,e.y=e.y*(1-.4*t)-.008*t}),e,TU(0,0,-.04)),a=[-1,1].map(t=>CU(SU(new Nu(.024,.008,.008,3,1,1),e=>{let n=.5+t*e.x/.024;e.y*=1-.5*n,e.z=e.z*(1-.4*n)-.006*n}),e,TU(t*.027,0,-.012))),o=CU(new Iu(.0048,.0048,.03,7),e=>_U([.88,.8,.6],uU,vU((Math.abs(e.y)-.009)*200)),TU(0,0,-.016));return wU([t,n,r,i,...a,o])}function BU(){return wU([CU(SU(new Nu(.075,.004,.022,9,1,3),e=>{let t=e.x/.075+.5;e.x+=.0375,e.z=e.z*(1-.75*t)*(1+.5*Math.sin(t*17))+.006*Math.sin(t*9),e.y+=.004*Math.sin(t*13)}),e=>_U(_U(dU,uU,yU(e,240)),fU,Math.sin(e.x*260)>.93?.8:0))])}var VU={position:new B(.012,.089,.004),direction:new B(.47,.88,-.12).normalize()};function HU(){let e=CU(SU(new fd(1,4),e=>{e.normalize();let t=vU((1-e.y)/2),n=1-.62*t**2.4,r=1-.1*Math.exp(-(((e.x+.12)/.14)**2))*(e.z>-.2?1:.4);e.set(e.x*.05*n*r+.012*t,e.y>0?e.y*.038:e.y*.07,e.z*.04*n*r)}),e=>{let t=Math.exp(-(((e.x+.008+e.y*.3)/.006)**2)),n=Math.exp(-(((e.y-.032)/.006)**2));return _U(_U(_U([.42,.03,.035],[.26,.015,.025],yU(e,130)),fU,Math.max(t*.85,n*.7)*vU(yU(e,420,.7)*2)),[.12,.02,.1],t>.6&&Math.sin(e.y*300)>.2?.7:0)}),t=(e,t,n)=>CU(SU(new fd(1,2),e=>{let t=1+.12*Math.sin(e.x*9)*Math.sin(e.z*8);e.set(e.x*n*t,e.y*n*.72,e.z*n*.9*t)}),e=>_U([.3,.02,.05],[.18,.012,.045],yU(e,200)),TU(e,.04,t)),n=(e,t)=>n=>_U(e,uU,vU((n.y-t)*120)),r=EU([[-.006,.03,.006],[-.004,.058,.008],[.004,.08,.006],[.012,.095,.004]],.0125,n([.82,.56,.44],.082)),i=[-1,0,1].map(e=>EU([[-.003+e*.004,.066,.008],[-.012+e*.012,.086,.012-e*.004],[-.016+e*.018,.1,.014-e*.006]],.0048,n([.78,.5,.4],.09))),a=EU([[.016,.03,.022],[.012,.052,.026],[-.006,.066,.03],[-.026,.07,.03]],.0105,e=>_U([.3,.3,.52],uU,vU((-e.x-.014)*110))),o=EU([[.03,.036,-.016],[.034,.058,-.018],[.036,.08,-.02]],.0095,n([.16,.14,.34],.068)),s=wU([e,t(.027,-.006,.024),t(-.024,-.004,.022),r,...i,a,o]);return s.translate(0,-.006,0),s.computeBoundingBox(),s.computeBoundingSphere(),s}var UU=2;function WU(e){let t=Math.min(14,Math.max(0,e));return UU*t-1.55*t*t/28}function GU(e){return Math.max(0,1-Math.max(0,e)/14)**.8}function KU(e){let t=e-Math.floor(e);return t<.16?vU(t/.16):1-vU((t-.16)/.3)}var qU=9.81,JU=.97,YU=.6,XU=10,ZU=1.02,QU=.5,$U=.5,eW=2e-4,tW=.45,nW=.03,rW=.15,iW=class{capacity;radius;selfAvoiding;positions;previous;nodes=0;segment=0;pinned=!1;resting=!0;paidOut=0;payRate=0;still=0;constructor(e,t,n){this.capacity=e,this.radius=t,this.selfAvoiding=n,this.positions=new Float32Array(e*3),this.previous=new Float32Array(e*3)}get held(){return this.pinned?Math.max(0,this.nodes-1-Math.floor(this.paidOut)):-1}spill(e,t,n,r,i){this.nodes=Math.min(this.capacity,Math.max(2,Math.round(e)+1)),this.segment=t,this.pinned=!0,this.resting=!1,this.paidOut=1,this.payRate=r,this.still=0;for(let e=0;e.4)for(let e=0;ethis.segment?this.segment:s=a-1?this.still+e:0,this.still>=$U&&(this.resting=!0,s.set(o)),!0}drape(e,t,n,r=!1){let i=Math.hypot(n.x,n.z);if(i<.3)return;let a=this.positions;for(let o=e;otW||s<-.05)continue;let c=nW+rW*Math.min(1,Math.max(0,s)/.25),l=((a[e]-t.x)*n.x+(a[e+2]-t.z)*n.z)/i;if(l>=c+(r?1e-4:0))continue;let u=Math.max(0,c-l);if(a[e]=a[e]+n.x/i*u,a[e+2]=a[e+2]+n.z/i*u,!r)continue;let d=((a[e]-this.previous[e])*n.x+(a[e+2]-this.previous[e+2])*n.z)/i;this.previous[e]=this.previous[e]+n.x/i*d,this.previous[e+2]=this.previous[e+2]+n.z/i*d}}keepApart(e){let t=this.positions,n=this.radius*1.7;for(let r=e;r=n*n)continue;let c=Math.sqrt(s),l=Math.hypot(i,o)1e-10&&lW.copy(fW).normalize(),uW.addScaledVector(lW,-uW.dot(lW)),uW.lengthSq()<1e-8&&(uW.set(+(Math.abs(lW.x)<.9),0,Math.abs(lW.x)<.9?0:1),uW.addScaledVector(lW,-uW.dot(lW))),uW.normalize(),dW.crossVectors(lW,uW);let a=Math.min(e,n-1-e),c=this.radii[e]*(a===0?.08:a===1?.62:a===2?.9:1);for(let t=0;t0?t.fromBufferAttribute(n,0):t.set(0,1,0).applyQuaternion(e.mesh.quaternion),t.lengthSq()>1e-8?t.normalize():t.set(0,1,0)}var OG=e=>()=>(e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296),$=(e,t=0)=>Number.isFinite(e)?e:t,kG=()=>({alive:!1,x:0,y:-50,z:0,vx:0,vy:0,vz:0,rx:0,ry:0,rz:0,vrx:0,vry:0,vrz:0,scale:0,stretch:1,bounces:0,stained:!1,kind:`flesh`,resting:!1,born:0,owner:-1,fading:-1}),AG=e=>{for(let t of e)if(!t.alive)return!0;return!1},jG=new V(16054267),MG=.012,NG=.055,PG=90,FG=10,IG=.985,LG=new z(.097,.132),RG=.012,zG={r:.82,g:.86,b:.9},BG=4,VG=(e,t)=>Math.trunc(e)*2+(t===`left`?0:1),HG=new B(1,0,0),UG=[`blood`,`bile`,`brain`,`urine`],WG=2400,GG={liver:{build:kU,share:.06,size:[.8,.5],stretch:[.9,.3],stain:.5},kidney:{build:AU,share:.06,size:[.9,.5],stretch:[.9,.25],stain:.3},lung:{build:jU,share:.06,size:[.75,.45],stretch:[.9,.3],stain:.45},gut:{build:MU,share:.18,size:[.8,.5],stretch:[.8,.5],stain:.4},bone:{build:NU,share:.24,size:[.7,.8],stretch:[.8,.6],stain:.14},vertebra:{build:zU,share:.1,size:[.9,.3],stretch:[1,0],stain:.2},skin:{build:LU,share:.1,size:[.8,.8],stretch:[.7,.7],stain:.3},fat:{build:RU,share:.12,size:[.6,.7],stretch:[.8,.5],stain:.2},ear:{build:PU,share:.03,size:[1.3,.3],stretch:[1,0],stain:.14},jawbone:{build:IU,share:.016,size:[1.1,.15],stretch:[1,0],stain:.34}},KG=Object.keys(GG),qG=[`liver`,`kidney`,`lung`],JG=Object.fromEntries(Ge.map((e,t)=>[e,t])),YG=14,XG=3.5,ZG=1100,QG=.12,$G=.45,eK=lG*Math.sqrt(Math.PI),tK=e=>R.clamp((e-.3)/.6,0,1),nK=e=>YG+326*e**2.2,rK=e=>nK(e)*(1-tK(e)*.88*(1-eK)),iK=16,aK=8,oK=.4,sK=24,cK=11,lK=.046,uK=[0,0,1,3,6],dK=50,fK=48,pK=.6,mK=1,hK=.06,gK=.075,_K=4,vK=24,yK=1.3,bK=new rs().setFromEuler(new Ls(.95,0,0)),xK=60,SK=4,CK=5,wK=1.2,TK=1.5,EK=.5;function DK(e){if(typeof e==`number`)return{x:e<0?-1:1,z:0};let t=Math.hypot(e.x,e.z);return Number.isFinite(t)&&t>1e-6?{x:e.x/t,z:e.z/t}:{x:1,z:0}}var OK=new B(0,1,0),kK=new B(0,0,1),AK=e=>Number.isFinite(e)?R.clamp(e,0,$W):0,jK=new Set([`hit`,`counter_hit`,`block`,`perfect_block`,`guard_break`,`knockdown`,`bleed`]);function MK(e,t,n,r){let i=Math.abs(e)-r;if(i<=0)return{position:e,velocity:t};let a=Math.sign(e);return Math.abs(n)<=r?{position:a*r,velocity:t*-.42}:{position:e,velocity:-a*Math.max(-a*t,i*FW)}}function NK(e){if(e.kind===`bleed`)return`ooze`;if(e.kind===`knockdown`)return`impact`;let t=e.detail.split(`:`);if(t.at(-1)===`body`)return`body_burst`;let n=t.find(e=>[`jab`,`straight`,`hook`,`uppercut`].includes(e));return n===`hook`?`fan`:n===`uppercut`?`plume`:`jet`}function PK(e,t){e.set($(t.x),$(t.y),$(t.z),$(t.w,1)),e.lengthSq()<1e-6?e.identity():e.normalize()}function FK(){return new Md({color:9063730,roughness:.58,metalness:.02,clearcoat:.25,clearcoatRoughness:.6})}function IK(e,t){let n=FK();n.map=t;let r=e?new z_(n,Rg,{core:y_,wash:!0,baked:!0}):new z_(n,Lg,{core:v_,lids:b_,baked:!0});if(!e)return{material:n,injury:r,look:new Eb(n,!0)};let i=n.onBeforeCompile;return n.onBeforeCompile=(e,t)=>{i.call(n,e,t),e.vertexShader=e.vertexShader.replace(`#include `,`#include +attribute vec3 bindPosition;`)},{material:n,injury:r,look:null}}var LK=0,RK=1,zK=2,BK=3;function VK(e,t,n){return e===void 0||e===`forearm_left`||e===`forearm_right`?LK:e===`head`?zK:e===`upper_body`?t?BK:RK:e===`torso`&&n?zK:RK}function HK(e,t,n,r=0){let i=new jd({map:e,color:t,roughness:n===void 0?.6:.38,metalness:.02,side:2});return n!==void 0&&(ob(i,!0,n).value=r),i}function UK(e,t,n){n.identity();let r=e.getAttribute(`position`),i=e.getAttribute(`bindPosition`),a=e.getIndex();if(i===void 0||i.count!==r.count)return n;let o=new Uint8Array(r.count);if(a===null)o.fill(1);else for(let e=0;e({active:!1,eventId:null,fluid:`blood`,life:0,seconds:1,rate:0,accumulator:0,position:new B,axis:new B(0,1,0)}));simulationRemainder=0;ambientSeed=1597463007;shake=0;lowTier=!1;bloodLevel=`full`;lens=new HH;camera=null;lensPoint=new B;debrisCursor=new Map;visceraMaterial;viscera=[];visceraByShape={};wounds=[];woundsOpen=0;woundShare=1;woundClock=0;parts=[];partsThrown=0;partBox=new Tc;partMiddle=new B;partVertex=new B;limbMap;limbMaterial;trunkMap;trunkMaterial;fleshSections;spines=[];spineMesh;spineStretch;shredGeometry;shredMesh;spineNeck=new B;guts=[];heartGeometry;heartMesh;heartRest;heartRadius;heart={active:!1,moving:!1,owner:-1,age:0,beats:0,vx:0,vy:0,vz:0,vrx:0,vry:0,vrz:0,bounces:0,settle:-1,settleFrom:new rs,settleTo:new rs,settleFromY:0,pool:0,trail:0};corpses=[];flyGeometry;flyMaterial;flyMesh;flies;constructor(e,t=1024,n=_W){this.scene=e,this.budget=n,this.dropletPositions=new Float32Array(n.droplets*3),this.dropletColors=new Float32Array(n.droplets*3),this.dropletBuffers={position:new Uc(this.dropletPositions,3),color:new Uc(this.dropletColors,3)},this.dropletGeometry=Ev(),this.dropletMaterial=new jd({color:16777215,roughness:.3,metalness:.02}),this.dropletMesh=new nu(this.dropletGeometry,this.dropletMaterial,n.droplets),this.dropletMesh.instanceMatrix.setUsage(go),this.dropletMesh.frustumCulled=!1,this.dropletMesh.castShadow=!1,e.add(this.dropletMesh);for(let e=0;eObject.assign(new H(e.geometry,e.material),{castShadow:e.castShadow}));if(e.push(Object.assign(new H(this.stumpGeometry,this.jawMaterial),{castShadow:this.stumps[0].mesh.castShadow})),this.bakedStandIns===null){let e=new xs,t=[IK(!1,e),IK(!0,e)].flatMap(e=>[e.material,e.injury.variant(!1),e.injury.variant(!0)]),n=new jd({color:1920728,roughness:.38,metalness:.03,map:e});ob(n,!0);let r=[HK(e,16777215),HK(null,16777215),HK(e,1920728,`gloves`),HK(e,1920728,`trunks`)],i=new nu(this.heartGeometry,this.visceraMaterial,1);i.setColorAt(0,this.gibColor.setHex(16777215)),i.castShadow=!0,this.bakedStandIns={map:e,materials:[...t,n,...r],instanced:[i,new nu(this.flyGeometry,this.flyMaterial,1)]}}for(let t of this.bakedStandIns.materials)e.push(Object.assign(new H(this.headGeometry,t),{castShadow:!0}));return e.push(Object.assign(new H(this.heartGeometry,this.visceraMaterial),{castShadow:!0}),...this.bakedStandIns.instanced),e}setCamera(e){this.camera=e}drawLens(e,t,n){this.lens.draw(e,t,n)}get lensDrops(){return this.lens.count}setBloodLevel(e){if(e===this.bloodLevel)return;let t=this.bloodLevel;this.bloodLevel=e,(e===`off`||t===`full`&&e===`reduced`)&&this.clearArcadeGore()}get shakeAmount(){return this.shake}get liveParticles(){return this.droplets.filter(e=>e.alive).length}get liveBloodParticles(){return this.droplets.filter(e=>e.alive&&e.blood).length}get liveMist(){return this.mists.filter(e=>e.alive).length}get canvasStains(){return this.canvasBlood.stains}useUploader(e){this.canvasBlood.useUploader(e)}setLowTier(e){this.canvasBlood.setLowTier(e),this.lowTier=e}get liveGibs(){return this.gibs.filter(e=>e.alive).length}get liveShards(){return this.shards.filter(e=>e.alive).length}debrisCount(e){let t=0;for(let n of this.gibs)n.alive&&n.kind===e&&(t+=1);for(let n of this.shards)n.alive&&n.kind===e&&(t+=1);for(let n of this.eyeballs)n.alive&&n.kind===e&&(t+=1);for(let n of this.viscera)for(let r of n.pieces)r.alive&&r.kind===e&&(t+=1);return t}get activeHeads(){return this.heads.filter(e=>e.active).length}headBurst(e){let t=this.stumps[Math.trunc(e)];return t!==void 0&&t.active&&t.mesh.material===this.jawMaterial}severedHeadPosition(e,t){let n=this.heads[Math.trunc(e)];return n===void 0||!n.active?!1:(t.copy(n.mesh.position),!0)}severedHeadFacing(e,t){let n=this.heads[Math.trunc(e)];return n===void 0||!n.active?!1:(t.set(0,0,1).applyQuaternion(n.mesh.quaternion),!0)}mouthpieceOut(e){return this.shields[Math.trunc(e)]?.out===!0}mouthpiecePosition(e,t){let n=this.shields[Math.trunc(e)];return n===void 0||!n.out?!1:(t.set(n.x,n.y,n.z),!0)}ejectMouthpiece(e,t,n,r,i,a,o=!1){if(e<0||e>=wW)return!1;let s=Math.trunc(e),c=this.shields[s],l=Number.isSafeInteger(i)?i:0;if(c.out&&!o||this.lastShieldEvent[s]===l)return!1;this.lastShieldEvent[s]=l;let u=OG(l*48271+s*7907+5),d=DK(r),f=.9+u()*.9,p=.9+u()*.9,m=(u()-.5)*1.1;Object.assign(c,tU(),{out:!0,moving:!0,x:$(t.x),y:$(t.y,1.45),z:$(t.z),vx:f*d.x-m*d.z,vy:p,vz:f*d.z+m*d.x,wx:(u()-.5)*26,wy:(u()-.5)*18,wz:(u()-.5)*26,restYaw:u()*Math.PI*2});let h=this.shieldMeshes[s];h.position.set(c.x,c.y,c.z),PK(h.quaternion,n),h.visible=!0,this.shieldMaterials[s].color.setHex(a).lerp(jG,.55);let g=this.bloodLevel===`full`;for(let e=0;e<(g?22:12);e+=1){let t=u()*Math.PI*2,n=g?e%3!=0:this.bloodLevel===`reduced`&&e%3==0;this.spawnDroplet(c.x+(u()-.5)*.03,c.y+(u()-.5)*.03,c.z+(u()-.5)*.03,c.vx*(.5+u()*.6)+Math.sin(t)*.4,c.vy*(.4+u()*.6),c.vz*.5+Math.cos(t)*.4,n?kv(u()):zG,.5+u()*.5,n)}return!0}gougeEye(e,t,n,r,i,a,o=!1){if(this.bloodLevel!==`full`||e<0||e>=wW)return;let s=Math.trunc(e),c=VG(s,a),l=this.eyes[c],u=Number.isSafeInteger(i)?i:0;if(l.active&&(o||l.eventId===u))return;l.active&&this.burstEye(s,a,u),l.active=!0,l.eventId=u,l.socket.set($(t.x),$(t.y,1.6),$(t.z)),l.facing.copy(n),l.hasSkull=!1,l.position.copy(l.socket).addScaledVector(n,MG*1.5),this.eyeDirection.copy(n).multiplyScalar(1.3);let d=DK(r);if(this.eyeDirection.x+=d.x*.5,this.eyeDirection.z+=d.z*.5,l.previous.copy(l.position),o||l.previous.addScaledVector(this.eyeDirection,-.016666666666666666),l.bleeding=o?0:FG,l.accumulator=0,this.eyeMeshes[c].visible=!0,this.nerveMeshes[c].visible=!0,this.writeEye(c),o)return;let f=OG(u*52711+s*3571+(a===`right`?977:0)+13);for(let e=0;e1e-8&&o.facing.copy(n).normalize(),r!==void 0&&i!==void 0&&(o.skull.set($(r.x),$(r.y,1.6),$(r.z)),PK(o.skullTurn,i),o.hasSkull=!0))}eyeOut(e,t){return t===void 0?this.eyes[VG(e,`left`)]?.active===!0||this.eyes[VG(e,`right`)]?.active===!0:this.eyes[VG(e,t)]?.active===!0}eyePosition(e,t,n){let r=this.eyes[VG(e,`left`)],i=this.eyes[VG(e,`right`)],a=n===`left`||n===void 0&&r?.active===!0?r:i;return a===void 0||!a.active?!1:(t.copy(a.position),!0)}updateEyes(e){for(let[t,n]of this.eyes.entries()){if(!n.active)continue;this.eyeDirection.copy(n.position).sub(n.previous).multiplyScalar(IG),n.previous.copy(n.position),n.position.add(this.eyeDirection),n.position.y-=IW*e*e,this.eyeDirection.copy(n.position).sub(n.socket);let r=this.eyeDirection.length();if(r>.055&&n.position.copy(n.socket).addScaledVector(this.eyeDirection,NG/r),n.hasSkull&&this.restOnFace(n)){n.previous.lerp(n.position,.6),this.eyeDirection.copy(n.position).sub(n.socket);let e=this.eyeDirection.length();e>.055&&n.position.copy(n.socket).addScaledVector(this.eyeDirection,NG/e)}if(n.position.y<0+MG&&(n.position.y=0+MG),this.bloodLevel===`full`&&n.bleeding>0)for(n.bleeding=Math.max(0,n.bleeding-e),n.accumulator+=e*this.forDevice(PG);n.accumulator>=1;){--n.accumulator;let e=.15+this.ambientRandom()*.5;this.spawnDroplet(n.socket.x,n.socket.y-.005,n.socket.z,n.facing.x*e+(this.ambientRandom()-.5)*.2,-.15-this.ambientRandom()*.4,n.facing.z*e+(this.ambientRandom()-.5)*.2,kv(this.ambientRandom()),.9,!0)}this.writeEye(t)}}restOnFace(e){this.eyeTurn.copy(e.skullTurn).invert();let t=this.eyeDirection.copy(e.position).sub(e.skull).applyQuaternion(this.eyeTurn),n=this.eyeSocketLocal.copy(e.socket).sub(e.skull).applyQuaternion(this.eyeTurn).z+MG+RG;if(t.z>=n)return!1;let r=Math.hypot(t.x/LG.x,t.y/LG.y);return r>=1?!1:(n-t.z<=(1-r)*Math.min(LG.x,LG.y)||r<1e-6?t.z=n:(t.x/=r,t.y/=r),e.position.copy(e.skull).add(t.applyQuaternion(e.skullTurn)),!0)}writeEye(e){let t=this.eyes[e],n=this.eyeMeshes[e],r=this.nerveMeshes[e];n.position.copy(t.position),this.eyeDirection.copy(t.position).sub(t.socket);let i=this.eyeDirection.length();i>1e-5&&(this.eyeDirection.multiplyScalar(1/i),r.quaternion.setFromUnitVectors(OK,this.eyeDirection),this.eyeDirection.addScaledVector(t.facing,.9).normalize(),n.quaternion.setFromUnitVectors(kK,this.eyeDirection)),r.position.copy(t.socket),r.scale.set(1,Math.max(.001,i-MG*.8),1)}returnMouthpiece(e){let t=Math.trunc(e),n=this.shields[t];n!==void 0&&(Object.assign(n,tU()),this.shieldMeshes[t].visible=!1,this.lastShieldEvent[t]=null)}clearMouthpieces(){for(let[e,t]of this.shields.entries())Object.assign(t,tU()),this.shieldMeshes[e].visible=!1,this.lastShieldEvent[e]=null}updateShields(e){for(let[t,n]of this.shields.entries()){if(!n.out||!n.moving)continue;let r=this.shieldMeshes[t],i=n.age<.3&&!n.sliding,a=n.x,o=n.z;nU(n,r.quaternion,e,0);let s=tv-qH-PW,c=MK(n.x,n.vx,a,s),l=MK(n.z,n.vz,o,s);if(n.x=c.position,n.vx=c.velocity,n.z=l.position,n.vz=l.velocity,r.position.set(n.x,n.y,n.z),i&&this.ambientRandom()e.active).length}get activeStumps(){return[...this.stumps,...this.handStumps].filter(e=>e.active).length}spawnDroplet(e,t,n,r,i,a,o,s,c,l=c?.0035+this.ambientRandom()**3*.0125:.0025+this.ambientRandom()**2*.004,u=`blood`){let d=this.liveDropletsthis.droplets[e].maxLife-this.droplets[e].life;for(let n=0;n0&&t(e[i-1])tG&&e.pop()}}forDevice(e){return Math.round(e*this.budget.droplets*(this.lowTier?.5:1)/_W.droplets)}uploadDroplets(e,t,n){if(this.dropletMesh.count=this.liveDroplets,t<=e)return;this.dropletMesh.instanceMatrix.addUpdateRange(e*16,(t-e)*16),this.dropletMesh.instanceMatrix.needsUpdate=!0;let r=this.dropletMesh.instanceColor;n&&r!==null&&(r.addUpdateRange(e*3,(t-e)*3),r.needsUpdate=!0)}retireDroplet(e){this.oldest.length=0;let t=this.liveDroplets-1,n=this.droplets[e];if(n.alive=!1,this.liveDroplets=t,e!==t){let r=this.droplets[t];this.droplets[e]=r,this.droplets[t]=n,this.dropletPositions.copyWithin(e*3,t*3,t*3+3),this.dropletColors.copyWithin(e*3,t*3,t*3+3),this.dropletMesh.setColorAt(e,this.dropletColor.setRGB(r.r,r.g,r.b)),this.writeDropletMatrix(e,r)}this.dropletPositions[t*3+1]=-50,this.writeDropletMatrix(t,n)}sprayDroplet(e,t,n,r,i,a,o,s,c,l,u,d){this.spawnDroplet(t,n,r,i*e.x-o*e.z,a,i*e.z+o*e.x,s,c,l,u,d)}writeDropletMatrix(e,t){if(!t.alive){this.dropletScale.setScalar(0),this.dropletQuaternion.identity(),this.dropletMatrix.compose(this.dropletVelocity.set(0,-50,0),this.dropletQuaternion,this.dropletScale),this.dropletMesh.setMatrixAt(e,this.dropletMatrix);return}let n=Math.hypot(t.vx,t.vy,t.vz);n>1e-4?(this.dropletVelocity.set(t.vx/n,t.vy/n,t.vz/n),this.dropletQuaternion.setFromUnitVectors(OK,this.dropletVelocity)):this.dropletQuaternion.identity();let r=Math.min(1,t.life/(t.maxLife*.3))*this.dropletCloseness*(t.blood&&this.bloodLevel===`full`?YW:1),i=Dv(t.radius*r,n,this.dropletShape);this.dropletScale.set(i.width,i.length,i.width),this.dropletMatrix.compose(this.dropletVelocity.set(t.x,t.y,t.z),this.dropletQuaternion,this.dropletScale),this.dropletMesh.setMatrixAt(e,this.dropletMatrix)}spawnMist(e,t,n,r,i){let a=this.mistIndex%this.budget.mist;this.mistIndex+=1;let o=this.mists[a];o.alive=!0,o.x=$(e),o.y=$(t,1),o.z=$(n),o.maxLife=Math.max(.05,$(i,.5)),o.life=o.maxLife,o.scale=Math.max(.1,$(r,1)),this.mistPositions[a*3]=o.x,this.mistPositions[a*3+1]=o.y,this.mistPositions[a*3+2]=o.z,this.mistColors[a*4+3]=Math.min(1,o.scale),this.mistGeometry.attributes.position.needsUpdate=!0,this.mistGeometry.attributes.color.needsUpdate=!0}placeDecal(e,t,n,r,i,a,o){this.canvasBlood.stain($(e),$(t),Math.max(.01,$(n,.2))*.28,Math.max(.01,$(r,.15))*.28,$(i),R.clamp($(a,.4),0,.95),o)}splashLens(e,t,n,r,i){let a=this.camera;if(a===null||this.bloodLevel===`off`||!(r>0))return;let o=this.lensPoint.set($(e),$(t,1.5),$(n)),s=o.distanceTo(a.position);if(o.project(a),!(o.z<1)||Math.abs(o.x)>1.15||Math.abs(o.y)>1.15)return;let c=R.clamp((nG-s)/8.5,0,1);this.lens.splash((o.x+1)/2,(1-o.y)/2,c*r*(this.bloodLevel===`reduced`?.25:1),i)}ambientRandom(){return this.ambientSeed=Math.imul(this.ambientSeed^this.ambientSeed>>>15,1|this.ambientSeed),this.ambientSeed^=this.ambientSeed+Math.imul(this.ambientSeed^this.ambientSeed>>>7,61|this.ambientSeed),((this.ambientSeed^this.ambientSeed>>>14)>>>0)/4294967296}splatter(e,t,n,r=()=>this.ambientRandom(),i=12,a=WW){if(this.bloodLevel===`off`)return;let o=this.bloodLevel===`reduced`,s=o?Math.ceil(i/4):i,c=o?.35:GW;for(let i=0;i0?$(t.y):e.detail.endsWith(`:body`)?1.05:1.58,z:$(t.z)},f=e.kind===`bleed`,p=n||f?0:Math.round(s?(a?4:6)+Math.min(6,Math.max(0,e.amount)/40):(a?6:16)+Math.min(20,Math.max(0,e.amount)/20)),m={x:0,y:0,z:0,vx:0,vy:0,vz:0,life:0,radius:0,color:kv(0)},h=e.kind===`hit`||e.kind===`counter_hit`,g=h?Math.max(0,e.blood-Math.floor(Math.max(0,e.amount)/3)):0,_=n||e.blood<=0||this.bloodLevel===`off`?0:f?this.bloodLevel===`reduced`?1:Math.min(12,3+Math.floor(Math.max(0,e.amount)/8)):this.bloodLevel===`reduced`?Math.min(24,Math.round(e.blood*(a?.12:.24))):this.forDevice(a?Math.round(xv(e.blood,0)/2):o?xv(e.blood,0)+XW:xv(e.blood,h?e.amount:0));f||(this.shake=Math.min(.14,this.shake+(a?.008:Math.max(.012,e.amount/1500)))),o&&(this.shake=Math.min(.2,this.shake+.09));let v=o?1.2:h?R.clamp((e.amount-40)/60,0,1)*(.6+Math.min(100,e.blood)/150):0;!n&&!f&&e.blood>0&&this.splashLens(d.x,d.y,d.z,v,e.event_id);for(let e=0;e0&&t<=RW){let e=1-zW*t;this.spawnDroplet(m.x,m.y,m.z,m.vx*e,m.vy*e,m.vz*e,m.color,m.life,!0,m.radius*(1-BW*t));continue}let n=t===0,r=(i()-.5)*Math.PI,a=n?2.2+i()*1.8:.9+i()*1.5,o=a,s=.5+i()*1.25,u=(i()-.5)*.5;if(c===`fan`)o=a*(.45+Math.cos(r)*.35),s=.55+i()*1.15,u=Math.sin(r)*a*.9;else if(c===`plume`)o=a*(.25+i()*.25),s=1.8+i()*2.2,u=(i()-.5)*a*.65;else if(c===`body_burst`)o=a*(.55+i()*.45),s=-.15+i()*1.05,u=Math.sin(r)*a*.75;else if(c===`ooze`)o=.08+i()*.22,s=-.3-i()*.55,u=(i()-.5)*.22;else if(c===`impact`)o=a*(.45+i()*.65),s=.9+i()*2.1,u=Math.sin(r)*a;else{let e=n?.12:.34;o=a*(.8+i()*.35),s=n?1.3+i()*1.6:.5+i()*1.25,u=(i()-.5)*a*e}let f=o*l.x-u*l.z,p=o*l.z+u*l.x,h=kv(i()),g=d.x+(i()-.5)*.12,_=d.y+(i()-.5)*.14,v=d.z+(i()-.5)*.12,y=.65+i()*.85;n?(m.x=g,m.y=_,m.z=v,m.vx=f,m.vy=s,m.vz=p,m.color=h,m.life=y,m.radius=.008+i()*.008,this.spawnDroplet(g,_,v,f,s,p,h,y,!0,m.radius)):this.spawnDroplet(g,_,v,f,s,p,h,y,!0)}let y=s?o||e.kind===`counter_hit`||h&&(e.amount>=35||g>=KW):e.kind===`hit`&&e.amount>=70||o||e.kind===`counter_hit`||g>=16;if(!n&&e.blood>0&&this.bloodLevel!==`off`&&y){let t=s?this.forDevice(o?36:12+Math.min(24,Math.floor(g/2)+Math.floor(Math.max(0,e.amount-35)/6))):o?3:2,n=s?1:.35;for(let e=0;e0&&this.bloodLevel!==`off`){let t=o?1+Math.min(2,e.blood/55):.8+Math.min(1.2,g/30);this.splatter(d.x+(i()-.5)*.6,d.z+(i()-.5)*.6,s?t*1.3:t,i,x,o?UW:HW)}let S=e.amount>=70||e.kind===`counter_hit`&&e.amount>=yv,C=h&&(e.amount>=60||S&&g>=KW/4);if(s&&!n&&C&&!e.detail.endsWith(`:body`)){let t=Math.min(20,Math.max(3,Math.round((e.amount-10)/6)));for(let e=0;e0){e.sideLow=1/0,e.sideHigh=-1/0;for(let t=0;t=wW)return;let s=Math.trunc(e),c=Number.isSafeInteger(i)?i:0,l=this.heads[s];if(l.active||this.lastDecapitationEvent[s]===c)return;this.stopGush(s),this.applyBakedPart(l,o,a);let u=OG(c*104729+s*8191+23),d=DK(r);this.lastDecapitationEvent[s]=c,l.active=!0,l.moving=!0,l.eventId=c;let f=1.8+u()*1.1;l.vy=2.3+u()*1.1;let p=(u()-.5)*2.2;l.vx=f*d.x-p*d.z,l.vz=f*d.z+p*d.x,l.vrx=(u()-.5)*12,l.vry=(u()-.5)*12,l.vrz=(u()-.5)*12,l.bounces=0,l.trail=0,l.stained=!1,l.settle=-1,l.mesh.position.set($(t.x),$(t.y,1.55),$(t.z)),PK(l.mesh.quaternion,n),l.mesh.visible=!0;let m=this.stumps[s];m.mesh.material=this.stumpMaterial,m.active=!0,m.fountainLife=14,m.accumulator=0,m.seed=c|1,m.direction=d,m.mesh.position.copy(l.mesh.position),m.mesh.quaternion.copy(l.mesh.quaternion),m.mesh.visible=!0;for(let e=0;e=wW)return;let i=Math.trunc(e),a=Number.isSafeInteger(r)?r:0,o=this.stumps[i];if(o.active||this.lastBurstEvent[i]===a)return;this.lastBurstEvent[i]=a,this.stopGush(i);let s=OG(a*91813+i*6151+41),c=DK(n),l=$(t.x),u=$(t.y,1.6),d=$(t.z),f=(e,t,n,r,a)=>{for(let o=0;o=wW)return;let c=Math.trunc(e)*2+(t===`left`?0:1),l=Number.isSafeInteger(a)?a:0,u=this.hands[c];if(u.active||this.lastDismembermentEvent[c]===l)return;this.applyBakedPart(u,s,o);let d=OG(l*130363+c*12289+37),f=DK(i);this.lastDismembermentEvent[c]=l,u.active=!0,u.moving=!0,u.eventId=l;let p=1.3+d()*1.1;u.vy=1.5+d()*1.2;let m=(d()-.5)*1.8;u.vx=p*f.x-m*f.z,u.vz=p*f.z+m*f.x,u.vrx=(d()-.5)*16,u.vry=(d()-.5)*16,u.vrz=(d()-.5)*16,u.bounces=0,u.trail=0,u.stained=!1,u.mesh.position.set($(n.x),$(n.y,1.25),$(n.z)),PK(u.mesh.quaternion,r),u.mesh.visible=!0;let h=this.handStumps[c];h.active=!0,h.fountainLife=oG,h.accumulator=0,h.seed=l|1,h.direction=f,h.mesh.position.copy(u.mesh.position),h.mesh.quaternion.copy(u.mesh.quaternion),h.mesh.visible=!0;for(let t=0;t=wW)return;let o=Math.trunc(e),s=Number.isSafeInteger(i)?i:0,c=OG(s*69061+o*2741+29),l=DK(r),u=this.tornAxis.copy(n);u.lengthSq()>1e-8&&Number.isFinite(u.lengthSq())||u.set(0,1,0),u.normalize();let d=$(t.x),f=$(t.y,1.2),p=$(t.z);for(let e=0;e{for(let n=0;n=wW)return;let i=Math.trunc(e)*2+(t===`left`?0:1),a=this.handStumps[i];a.active&&(a.mesh.position.set($(n.x),$(n.y,1.2),$(n.z)),PK(a.mesh.quaternion,r))}anchorStump(e,t,n,r,i){if(this.bloodLevel!==`full`||e<0||e>=wW)return;let a=this.stumps[Math.trunc(e)];a.active&&(a.mesh.position.set($(t.x),$(t.y,1.5),$(t.z)),r===void 0||r.length<18?(a.mesh.geometry=this.stumpGeometry,PK(a.mesh.quaternion,n)):(Vv(a.flesh,r,a.mesh.position,this.stumpOutward.set(0,1,0).applyQuaternion(n),.01,i),a.mesh.geometry=a.flesh,a.mesh.quaternion.identity()))}restoreFighter(e){if(e<0||e>=wW)return;let t=Math.trunc(e),n=this.heads[t];n.active=!1,n.moving=!1,n.mesh.visible=!1,n.mesh.position.y=-50,this.applyBakedPart(n,void 0,9063730);let r=this.stumps[t];r.active=!1,r.fountainLife=0,r.accumulator=0,r.mesh.visible=!1,r.mesh.position.y=-50,r.mesh.material=this.stumpMaterial,this.clearGibs(t),this.stopGush(t);for(let e of[t*2,t*2+1]){let t=this.eyes[e];t.active=!1,t.bleeding=0,this.eyeMeshes[e].visible=!1,this.nerveMeshes[e].visible=!1}this.clearWounds(t),this.clearGuts(t),this.clearSpine(t),this.clearCorpse(t),this.heart.owner===t&&(this.heart.active=!1,this.heartMesh.visible=!1);for(let e of[t*2,t*2+1]){let t=this.hands[e];t.active=!1,t.moving=!1,t.mesh.visible=!1,t.mesh.position.y=-50,this.applyBakedPart(t,void 0,1920728);let n=this.handStumps[e];n.active=!1,n.fountainLife=0,n.accumulator=0,n.mesh.visible=!1,n.mesh.position.y=-50}}drip(e,t,n,r=0){let i=+(r===1);if(this.bloodLevel===`off`||n||t<=.05){this.stopDrip(i);return}let a=this.dripEmitters[i];a.position.set($(e.x),$(e.y,1.5),$(e.z)),a.rate=this.bloodLevel===`reduced`?Math.min(3,t*3):Math.min(60,t*40),a.active=!0}stopDrip(e){let t=this.dripEmitters[+(e===1)];t.active=!1,t.rate=0,t.accumulator=0}gush(e,t,n,r,i,a,o=`blood`){if(this.bloodLevel!==`full`||e<0||e>=this.gushes.length)return;let s=this.gushes[Math.trunc(e)],c=Number.isSafeInteger(a)?a:0;s.active&&s.eventId===c||(s.active=!0,s.eventId=c,s.fluid=o,s.seconds=Math.max(.1,$(r,1)),s.life=s.seconds,s.rate=Math.max(0,$(i)),s.accumulator=0,this.anchorGush(e,t,n))}anchorGush(e,t,n){let r=this.gushes[Math.trunc(e)];r!==void 0&&r.active&&(r.position.set($(t.x),$(t.y,1.4),$(t.z)),n.lengthSq()>1e-8&&Number.isFinite(n.lengthSq())&&r.axis.copy(n).normalize())}gushing(e){return this.gushes[Math.trunc(e)]?.active===!0}stopGush(e){let t=this.gushes[e];t!==void 0&&(t.active=!1,t.eventId=null)}updateGushes(e){for(let t of this.gushes){if(!t.active)continue;if(t.life-=e,t.life<=0||this.bloodLevel!==`full`){t.active=!1;continue}let n=t.life/t.seconds,r=(t.seconds-t.life)*cG%1,i=Math.exp(-(((r-.5)/yG)**2));if(t.accumulator+=e*this.forDevice(t.rate)*n*(bG+.7*i),!(t.accumulator<1))for(wG.set(Math.abs(t.axis.y)<.9?0:1,+(Math.abs(t.axis.y)<.9),0).cross(t.axis).normalize(),TG.crossVectors(t.axis,wG);t.accumulator>=1;){--t.accumulator;let e=Math.sqrt(this.ambientRandom())*SG,r=this.ambientRandom()*Math.PI*2,a=(xG+this.ambientRandom()*2)*(.5+.5*n)*(.7+.3*i);EG.copy(t.axis).multiplyScalar(Math.cos(e)).addScaledVector(wG,Math.sin(e)*Math.cos(r)).addScaledVector(TG,Math.sin(e)*Math.sin(r)).multiplyScalar(a),this.spawnDroplet(t.position.x+(this.ambientRandom()-.5)*.03,t.position.y+(this.ambientRandom()-.5)*.02,t.position.z+(this.ambientRandom()-.5)*.03,EG.x,EG.y,EG.z,jv(t.fluid,this.ambientRandom()),1.2,!0,(.004+this.ambientRandom()**2*.01)*Av[t.fluid].drop,t.fluid)}}}updateDripEmitters(e){for(let t of this.dripEmitters)if(t.active)for(t.accumulator+=e*t.rate;t.accumulator>=1;)--t.accumulator,this.spawnDroplet(t.position.x+(this.ambientRandom()-.5)*.14,t.position.y-.04,t.position.z+(this.ambientRandom()-.5)*.1,(this.ambientRandom()-.5)*.08,-.25-this.ambientRandom()*.4,(this.ambientRandom()-.5)*.08,kv(this.ambientRandom()),1.1,!0)}spawnTeeth(e,t,n,r){if(this.bloodLevel===`off`)return;let i=this.bloodLevel===`reduced`?+(n>=3):Math.min(12,Math.max(1,Math.round(n)));if(i<=0)return;let a=OG((Number.isSafeInteger(r)?r:0)*7331+91),o=DK(t);for(let t=0;t>3):f.length>>2)}debrisSlot(e){let t=this.debrisCursor.get(e)??0,n=t%e.length;for(let r=0;r=0?n.scale*Math.max(0,n.fading)/iG:n.scale;this.gibScale.set(e*n.stretch,e,e/Math.sqrt(n.stretch))}this.gibMatrix.compose(this.gibPosition,this.gibQuaternion,this.gibScale),e.setMatrixAt(t,this.gibMatrix)}updateDebris(e,t,n,r){let i=!1;for(let[a,o]of e.entries()){if(!o.alive||o.resting&&o.fading<0)continue;if(i=!0,o.fading>=0){o.fading-=n,o.fading<=0&&(o.alive=!1),this.writeDebrisMatrix(t,a,o);continue}o.vy-=6.4*n,o.x+=o.vx*n,o.y+=o.vy*n,o.z+=o.vz*n,o.rx+=o.vrx*n,o.ry+=o.vry*n,o.rz+=o.vrz*n,this.confineGib(o);let e=0+(r===void 0?o.kind===`eye`?MG*SW:.015:r.low*o.scale);if(o.y<=e){if(o.y=e,!o.stained&&this.bloodLevel===`full`&&o.kind!==`tooth`&&o.kind!==`eye`&&(o.stained=!0,r===void 0?this.placeDecal(o.x,o.z,.24+o.scale*.16,.14+o.scale*.1,o.rz,.55,6425104):this.canvasBlood.stain(o.x,o.z,GG[r.shape].stain*o.scale,GG[r.shape].stain*o.scale*.7,o.ry,.6,6425104)),o.bounces.35)o.bounces+=1,o.vy=Math.abs(o.vy)*.3,o.vx*=.68,o.vz*=.68,o.vrx*=.7,o.vry*=.7,o.vrz*=.7;else{if(o.vx=0,o.vy=0,o.vz=0,o.vrx=o.vry=o.vrz=0,o.kind===`shard`&&(o.rx=Math.round(o.rx/Math.PI)*Math.PI),r!==void 0){let e=Math.round(o.rx/Math.PI),t=Math.round(o.rz/Math.PI);o.rx=e*Math.PI,o.rz=t*Math.PI,o.y=0+((e+t)%2==0?r.low:r.high)*o.scale}o.resting=!0}}this.writeDebrisMatrix(t,a,o)}i?t.instanceMatrix.needsUpdate=!0:r!==void 0&&(r.moving=!1)}confineGib(e){Math.abs(e.x)>3.05&&(e.x=Math.sign(e.x)*Z_,e.vx*=-.45),Math.abs(e.z)>3.05&&(e.z=Math.sign(e.z)*Z_,e.vz*=-.45)}updateDetachedParts(e,t){for(let n of e){if(n.active&&n.settle>=0&&n.settle<1){n.settle=Math.min(1,n.settle+t/NW);let e=n.settle*n.settle*(3-2*n.settle);n.mesh.quaternion.slerpQuaternions(n.settleFrom,n.settleTo,e),n.mesh.position.y=n.settleFromY+(n.settleToY-n.settleFromY)*e}if(!n.active||!n.moving)continue;let e=n.mesh.position.x,r=n.mesh.position.z;if(n.vy-=5.8*t,n.mesh.position.x+=n.vx*t,n.mesh.position.y+=n.vy*t,n.mesh.position.z+=n.vz*t,n.mesh.rotation.x+=n.vrx*t,n.mesh.rotation.y+=n.vry*t,n.mesh.rotation.z+=n.vrz*t,this.bloodLevel===`full`)for(n.trail+=t*this.forDevice(CW),n.trail>=1&&this.trailPoint.copy(n.cap.position).multiply(n.mesh.scale).applyQuaternion(n.mesh.quaternion).add(n.mesh.position);n.trail>=1;)--n.trail,this.spawnDroplet(this.trailPoint.x+(this.ambientRandom()-.5)*.03,this.trailPoint.y+(this.ambientRandom()-.5)*.03,this.trailPoint.z+(this.ambientRandom()-.5)*.03,n.vx*.35+(this.ambientRandom()-.5)*.9,n.vy*.35+(this.ambientRandom()-.5)*.9,n.vz*.35+(this.ambientRandom()-.5)*.9,kv(this.ambientRandom()),.9,!0);let i=tv-n.radius-PW,a=MK(n.mesh.position.x,n.vx,e,i),o=MK(n.mesh.position.z,n.vz,r,i);if(n.mesh.position.x=a.position,n.mesh.position.z=o.position,n.vx=a.velocity,n.vz=o.velocity,n.mesh.position.y<=0+n.radius){if(n.mesh.position.y=0+n.radius,!n.stained&&this.bloodLevel===`full`){n.stained=!0;let e=n.radius===MW?1:.55;this.placeDecal(n.mesh.position.x,n.mesh.position.z,1.3*e,.9*e,n.mesh.rotation.z,.85,4392199)}n.bounces<2&&Math.abs(n.vy)>.42?(n.bounces+=1,n.vy=Math.abs(n.vy)*.32,n.vx*=.62,n.vz*=.62,n.vrx*=.65,n.vry*=.65,n.vrz*=.65):(n.moving=!1,n.vx=0,n.vy=0,n.vz=0,n.vrx=0,n.vry=0,n.vrz=0,n.look!==null&&this.rollOntoEar(n))}Number.isFinite(n.mesh.position.x)&&Number.isFinite(n.mesh.position.y)&&Number.isFinite(n.mesh.position.z)&&Number.isFinite(n.mesh.quaternion.x)&&Number.isFinite(n.mesh.quaternion.y)&&Number.isFinite(n.mesh.quaternion.z)&&Number.isFinite(n.mesh.quaternion.w)||(n.mesh.position.set(0,0+n.radius,0),n.mesh.quaternion.identity(),n.moving=!1,n.vx=0,n.vy=0,n.vz=0)}}rollOntoEar(e){let t=this.settleAxis.set(1,0,0).applyQuaternion(e.mesh.quaternion),n=t.y>=0?1:-1;e.settleFrom.copy(e.mesh.quaternion),e.settleTo.setFromUnitVectors(t,this.settleUp.set(0,n,0)).multiply(e.mesh.quaternion),e.settleFromY=e.mesh.position.y,e.settleToY=0+(n>0?-e.sideLow:e.sideHigh),e.settle=0}stumpRandom(e){let t=e.seed|0;return t=Math.imul(t^t>>>15,1|t),t^=t+Math.imul(t^t>>>7,61|t),e.seed=t|0,((t^t>>>14)>>>0)/4294967296}updateStumpFountains(e){if(this.bloodLevel===`full`)for(let t of[...this.stumps,...this.handStumps]){if(!t.active||t.fountainLife<=0)continue;t.fountainLife=Math.max(0,t.fountainLife-e);let n=Math.min(1,t.fountainLife/sG),r=t.fountainLife*cG%1,i=Math.exp(-(((r-.5)/lG)**2));if(t.accumulator+=e*this.forDevice(uG)*n*(dG+.88*i),t.accumulator<1)continue;let a=DG(t,CG);for(wG.set(Math.abs(a.y)<.9?0:1,+(Math.abs(a.y)<.9),0).cross(a).normalize(),TG.crossVectors(a,wG);t.accumulator>=1;){--t.accumulator;let e=this.stumpRandom(t),r=this.stumpRandom(t),o=this.stumpRandom(t),s=Math.sqrt(e)*mG,c=r*Math.PI*2;EG.copy(a).multiplyScalar(Math.cos(s)).addScaledVector(wG,Math.sin(s)*Math.cos(c)).addScaledVector(TG,Math.sin(s)*Math.sin(c)).multiplyScalar(R.lerp(fG,pG,o)*(.7+.3*i)*(.55+.45*n)),this.spawnDroplet(t.mesh.position.x+a.x*.015+(e-.5)*.03,t.mesh.position.y+a.y*.015,t.mesh.position.z+a.z*.015+(r-.5)*.03,EG.x,EG.y,EG.z,kv(e),1.2+o*.6,!0,.004+o*o*.01)}}}update(e){for(this.canvasBlood.update(AK(e)),this.lens.update(AK(e)),this.simulationRemainder+=AK(e);this.simulationRemainder+1e-9>=eG;)this.simulationRemainder=Math.max(0,this.simulationRemainder-eG),this.simulate(eG);for(let e of this.guts)e.active&&e.sinceDrop<0&&e.rope.hold(e.anchor)&&(e.moved=!0),e.moved&&=(e.tube.write(e.rope),!1)}simulate(e){this.shake*=.02**e,this.updateDripEmitters(e),this.updateGushes(e),this.updateStumpFountains(e),this.updateDetachedParts(this.heads,e),this.updateDetachedParts(this.hands,e),this.updateShields(e),this.updateEyes(e),this.updateDebris(this.gibs,this.gibMesh,e),this.updateDebris(this.shards,this.shardMesh,e),this.updateDebris(this.eyeballs,this.eyeballMesh,e);for(let t of this.viscera)t.moving&&this.updateDebris(t.pieces,t.mesh,e,t);this.updateWounds(e),this.updateParts(e),this.updateSpines(e),this.updateGuts(e),this.updateHeart(e),this.updateCorpses(e);let t=this.liveDroplets,n=!1;for(let t=0;t0&&(this.dropletBuffers.position.needsUpdate=!0,this.dropletBuffers.color.needsUpdate=!0,this.uploadDroplets(0,this.liveDroplets,n));let r=!1;for(let[t,n]of this.mists.entries()){if(!n.alive)continue;if(r=!0,n.life-=e,n.life<=0){n.alive=!1,this.mistPositions[t*3+1]=-50;continue}let i=1-n.life/n.maxLife;this.mistPositions[t*3]=n.x,this.mistPositions[t*3+1]=n.y+i*.14,this.mistPositions[t*3+2]=n.z,this.mistColors[t*4+3]=Math.max(0,1-i)*Math.min(1,n.scale)}r&&(this.mistGeometry.attributes.position.needsUpdate=!0,this.mistGeometry.attributes.color.needsUpdate=!0)}clearDroplets(e){let t=this.liveDroplets;for(let t=0;t0))return;let s=OG((Number.isSafeInteger(i)?i:0)*15485863+e.charCodeAt(0)*131+e.length*977+7),c=DK(n),l=Math.max(.2,$(a,1)),u=$(t.x),d=$(t.y,1.2),f=$(t.z),p=Math.min(Math.round(r),this.debrisPlaces(e));for(let t=0;t0))return;let o=Number.isSafeInteger(i)?i:0,s=OG(o*86243+UG.indexOf(e)*3331+59),c=DK(n),l=Av[e],u=Math.max(.2,$(a,1)),d=$(t.x),f=$(t.y,1.2),p=$(t.z),m=Math.min(WG,r);for(let t=this.forDevice(m);t>0;--t){let t=s()*Math.PI*2,n=(.5+s()*1.9)*u;this.sprayDroplet(c,d+(s()-.5)*.08,f+(s()-.5)*.08,p+(s()-.5)*.08,(.4+s()*1.9)*u+Math.sin(t)*n*.35,(.3+s()*2.3)*Math.sqrt(u),Math.cos(t)*n*.8,jv(e,s()),.7+s(),!0,(.004+s()**2*.013)*l.drop,e)}if(e===`blood`){for(let e=Math.min(48,Math.round(m/25));e>0;--e)this.spawnMist(d+(s()-.5)*.4,f+(s()-.5)*.3,p+(s()-.5)*.4,.9+s()*1.5,.6+s()*.7);this.splatter(d+c.x*.3,p+c.z*.3,1+Math.min(2.4,m/500),s,Math.min(50,Math.round(m/20))),this.splashLens(d,f,p,Math.min(3,m/350),o)}else for(let e=Math.min(10,Math.round(m/30));e>0;--e){let t=.2+s()*.9*u;this.placeDecal(d+c.x*t+(s()-.5)*.5,p+c.z*t+(s()-.5)*.5,.5+s()*.9,.3+s()*.7,s()*Math.PI,.7*l.soak,e%2==0?l.splash:l.stain)}this.shake=Math.min(.22,this.shake+Math.min(.06,m/2e4))}puddle(e,t,n,r,i){if(this.bloodLevel!==`full`)return;let a=Av[r];this.canvasBlood.pool($(e),$(t),Math.max(.02,$(n,.1)),.95*a.soak,i,a.pool)}shed(e,t){if(this.bloodLevel!==`full`)return;let n=OG(t*7919+11);this.spawnDroplet($(e.x)+(n()-.5)*.05,$(e.y,1),$(e.z)+(n()-.5)*.05,(n()-.5)*.2,-.1,(n()-.5)*.2,jv(`blood`,n()),1.6,!0)}smear(e,t,n,r,i){this.bloodLevel===`full`&&this.canvasBlood.smear(e,t,n,r,Math.max(.005,$(i,.05)),.75,Av.blood.splash)}footprint(e,t,n,r,i){this.bloodLevel===`full`&&i>0&&this.canvasBlood.print(e,t,n,r,Math.min(1,i)*.85,Av.blood.splash)}setWound(e,t,n,r=`blood`){let i=this.woundAt(e,t);if(i===null)return;let a=this.bloodLevel===`full`?R.clamp($(n),0,1):0;a>0&&i.strength<=0&&(i.anchored=!1,i.accumulator=0,i.run=0,i.pool=0),i.strength=a,i.fluid=r,this.shareWounds()}anchorWound(e,t,n,r){let i=this.woundAt(e,t);i===null||i.strength<=0||(i.position.set($(n.x),$(n.y,1.2),$(n.z)),r.lengthSq()>1e-8&&Number.isFinite(r.lengthSq())&&i.axis.copy(r).normalize(),i.anchored=!0)}woundStrength(e,t){return this.woundAt(e,t)?.strength??0}clearWounds(e){for(let[t,n]of this.wounds.entries())(e===void 0||Math.floor(t/Ge.length)===Math.trunc(e))&&(n.strength=0);this.shareWounds()}get openWounds(){return this.woundsOpen}woundAt(e,t){let n=Math.trunc(e);return n>=0&&nZG?ZG/e:1}updateWounds(e){if(this.woundsOpen!==0&&this.bloodLevel===`full`){this.woundClock+=e;for(let t=0;t=QG){n.run-=QG;let e=.12+XG*r*r,i=l.y*e,a=(i+Math.sqrt(i*i+2*IW*Math.max(0,u.y-0)))/IW,o=u.x+l.x*e*a,s=u.z+l.z*e*a;n.pool<=0||Math.hypot(o-n.poolX,s-n.poolZ)>Math.max(.12,n.pool*1.2)?(n.poolX=o,n.poolZ=s,n.pool=.03):n.pool=Math.min($G*(.25+.75*r),n.pool+.012);let c=Av[n.fluid];this.canvasBlood.pool(n.poolX,n.poolZ,n.pool,.95*c.soak,t*7+Math.round(n.pool*80),c.pool)}if(n.accumulator<1)continue;wG.set(Math.abs(l.y)<.9?0:1,+(Math.abs(l.y)<.9),0).cross(l).normalize(),TG.crossVectors(l,wG);let d=R.lerp(.8,mG*.8,r),f=Av[n.fluid].drop;for(;n.accumulator>=1;){--n.accumulator;let e=Math.sqrt(this.ambientRandom())*d,t=this.ambientRandom()*Math.PI*2;EG.copy(l).multiplyScalar(Math.cos(e)).addScaledVector(wG,Math.sin(e)*Math.cos(t)).addScaledVector(TG,Math.sin(e)*Math.sin(t)).multiplyScalar(c*(.75+this.ambientRandom()*.4)),this.spawnDroplet(u.x+l.x*.012+(this.ambientRandom()-.5)*.02,u.y+l.y*.012,u.z+l.z*.012+(this.ambientRandom()-.5)*.02,EG.x,EG.y,EG.z,jv(n.fluid,this.ambientRandom()),1.3+r*.5,!0,(.004+this.ambientRandom()**2*.01)*f,n.fluid)}}}}burstEye(e,t,n){let r=Math.trunc(e),i=VG(r,t),a=this.eyes[i];if(r<0||r>=wW||a===void 0||!a.active)return!1;if(a.active=!1,a.bleeding=0,this.eyeMeshes[i].visible=!1,this.nerveMeshes[i].visible=!1,this.bloodLevel!==`full`)return!0;let o=Number.isSafeInteger(n)?n:0,s=OG(o*39916801+i*211+3),{x:c,y:l,z:u}=a.position;for(let e=this.forDevice(160);e>0;--e){let t=s()*Math.PI*2,n=s()*1.6-.6,r=Math.sqrt(Math.max(0,1-Math.min(1,n*n))),i=.6+s()*2.2,a=e%3!=0;this.spawnDroplet(c,l,u,Math.cos(t)*r*i,n*i+.5,Math.sin(t)*r*i,a?kv(s()):zG,.5+s()*.7,a,.003+s()**2*.008)}for(let e=0;e<4;e+=1)this.spawnGib(c,l,u,(s()-.5)*1.6,.4+s()*1.2,(s()-.5)*1.6,s,`flesh`,r);for(let e=0;e<8;e+=1)this.spawnMist(c+(s()-.5)*.12,l+(s()-.5)*.1,u+(s()-.5)*.12,.5+s()*.6,.4+s()*.4);return this.splashLens(c,l,u,.8,o),!0}skinOf(e,t){let n=IK(t.sites===Rg,e.map),r=e.look??sb;return n.look?.set(r),n.material.color.setHex(e.color),n.injury.copyFrom(t),n.injury.setBindToPart(UK(e.geometry,r,this.bindToPartMatrix)),t.material instanceof Md&&(n.material.clearcoat=t.material.clearcoat),n.material}flingPart(e,t,n,r,i,a,o={}){this.removePart(e);let s=this.partBox.makeEmpty();for(let e of t){let t=e.geometry.getAttribute(`position`),n=e.geometry.getIndex(),r=n===null?t.count:n.count;for(let e=0;ep.reach)&&(p=e),(m===null||e.height>m.height)&&(m=e);for(let{fan:e,opening:t}of f)e.materialIndex=VK(o.part,t===p,t===m);c.cut.set(0,0,0),p!==null&&c.cut.copy(p.centre).sub(l),PK(c.group.quaternion,r),c.group.position.copy(l).applyQuaternion(c.group.quaternion),c.group.position.set(c.group.position.x+$(n.x),c.group.position.y+$(n.y,1.2),c.group.position.z+$(n.z)),c.group.visible=!0,c.key=e,c.born=this.partsThrown++;let h=0;for(let t=0;tt.key===e)}partPosition(e,t){let n=this.parts.find(t=>t.key===e);return n!==void 0&&(t.copy(n.group.position),!0)}removePart(e){for(let t of this.parts)if(t.key===e){t.key=null,t.moving=!1,t.settle=-1,t.group.visible=!1,t.group.clear();for(let e of t.geometries)e.dispose();for(let e of t.materials)e.dispose();t.geometries.length=0,t.materials.length=0}}get activeParts(){let e=0;for(let t of this.parts)t.key!==null&&(e+=1);return e}partResting(e){return this.parts.some(t=>t.key===e&&!t.moving&&(t.settle<0||t.settle>=1))}updateParts(e){let t=this.bloodLevel===`full`;for(let n=0;n=0&&r.settle<1){r.settle=Math.min(1,r.settle+e/NW);let t=r.settle*r.settle*(3-2*r.settle);i.quaternion.slerpQuaternions(r.settleFrom,r.settleTo,t),i.position.y=r.settleFromY+(r.settleToY-r.settleFromY)*t}if(!r.moving){if(!t||r.lain>=aK)continue;let a=Math.floor(r.lain/oK);for(r.lain+=e,this.trailPoint.copy(r.cut).applyQuaternion(i.quaternion).add(i.position),r.trail+=e*this.forDevice(sK);r.trail>=1;)--r.trail,this.spawnDroplet(this.trailPoint.x,Math.max(.02,this.trailPoint.y),this.trailPoint.z,(this.ambientRandom()-.5)*.5,.2+this.ambientRandom()*.5,(this.ambientRandom()-.5)*.5,kv(this.ambientRandom()),.6,!0);if(Math.floor(r.lain/oK)===a)continue;let o=.1+r.radius*1.8;r.pool=Math.min(o,r.pool+o*oK*1.5/aK),this.canvasBlood.pool(this.trailPoint.x,this.trailPoint.z,r.pool,.95,n*13+a);continue}let a=i.position.x,o=i.position.z;if(r.vy-=5.8*e,i.position.x+=r.vx*e,i.position.y+=r.vy*e,i.position.z+=r.vz*e,i.rotation.x+=r.vrx*e,i.rotation.y+=r.vry*e,i.rotation.z+=r.vrz*e,t)for(r.trail+=e*this.forDevice(CW),r.trail>=1&&this.trailPoint.copy(r.cut).applyQuaternion(i.quaternion).add(i.position);r.trail>=1;)--r.trail,this.spawnDroplet(this.trailPoint.x+(this.ambientRandom()-.5)*.03,this.trailPoint.y+(this.ambientRandom()-.5)*.03,this.trailPoint.z+(this.ambientRandom()-.5)*.03,r.vx*.35+(this.ambientRandom()-.5)*.9,r.vy*.35+(this.ambientRandom()-.5)*.9,r.vz*.35+(this.ambientRandom()-.5)*.9,kv(this.ambientRandom()),.9,!0);let s=Math.max(.5,tv-r.reach-PW),c=MK(i.position.x,r.vx,a,s),l=MK(i.position.z,r.vz,o,s);if(i.position.x=c.position,i.position.z=l.position,r.vx=c.velocity,r.vz=l.velocity,i.position.y<=0+r.radius){if(i.position.y=0+r.radius,!r.stained&&t){r.stained=!0;let e=Math.min(2.4,r.radius/MW+.3);this.placeDecal(i.position.x,i.position.z,1.3*e,.9*e,i.rotation.z,.85,4392199)}if(r.bounces<2&&Math.abs(r.vy)>.42)r.bounces+=1,r.vy=Math.abs(r.vy)*.32,r.vx*=.62,r.vz*=.62,r.vrx*=.65,r.vry*=.65,r.vrz*=.65;else{r.moving=!1,r.trail=0;let e=this.settleAxis.copy(r.thin).applyQuaternion(i.quaternion);r.settleFrom.copy(i.quaternion),r.settleTo.setFromUnitVectors(e,this.settleUp.set(0,e.y>=0?1:-1,0)).multiply(i.quaternion),r.settleFromY=i.position.y,r.settleToY=0+r.thickness,r.settle=0}}Number.isFinite(i.position.x+i.position.y+i.position.z+i.quaternion.x+i.quaternion.y+i.quaternion.z+i.quaternion.w)||(i.position.set(0,0+r.thickness,0),i.quaternion.identity(),r.moving=!1,r.settle=-1)}}attachSpine(e){let t=this.spines[Math.trunc(e)];t!==void 0&&this.bloodLevel===`full`&&(t.wanted=!0)}spineOut(e){return this.spines[Math.trunc(e)]?.out===!0}spineTail(e,t){let n=this.spines[Math.trunc(e)];return n===void 0||!n.out?!1:(n.rope.node(cK,t),!0)}updateSpines(e){for(let t=0;t=1;){--n.trail;let e=a.node(Math.floor(this.ambientRandom()*12),this.gibPosition);this.spawnDroplet(e.x,e.y,e.z,(this.ambientRandom()-.5)*.8,(this.ambientRandom()-.5)*.8,(this.ambientRandom()-.5)*.8,kv(this.ambientRandom()),.8,!0)}}}}writeSpine(e){let t=this.spines[e].rope;for(let n=0;n1e-6?i.multiplyScalar(1/a):i.set(0,1,0)),r.add(this.partVertex).multiplyScalar(.5);let o=(.9+.5*Math.min(1,n/6))*(n>=9?.55+.25*(10-n):1);this.gibMatrix.compose(r,this.gibQuaternion,this.gibScale.set(o,this.spineStretch,o)),this.spineMesh.setMatrixAt(e*cK+n,this.gibMatrix)}this.spineMesh.instanceMatrix.needsUpdate=!0;for(let n=0;ne.out);this.spineMesh.visible=n,this.shredMesh.visible=n}spillGuts(e,t,n,r=18){let i=this.guts[Math.trunc(e)];if(i===void 0||e<0||this.bloodLevel!==`full`)return;let a=Number.isSafeInteger(n)?n:0;if(i.active&&i.eventId===a)return;let o=R.clamp(Math.round($(r,18)),2,fK),s=Math.max(2,Math.min(o,this.lowTier?Math.ceil(this.budget.gutLinks/2):this.budget.gutLinks));i.active=!0,i.eventId=a,i.sinceDrop=-1,i.drip=0,i.smeared.fill(NaN),i.anchor.set($(t.x),$(t.y,.9),$(t.z)),i.rope.spill(s,o*oW/s,i.anchor,s/pK,OG(a*28657+Math.trunc(e)*5+1)),i.tube.write(i.rope),i.mesh.visible=!0,i.moved=!1}anchorGuts(e,t,n){let r=this.guts[Math.trunc(e)];r===void 0||!r.active||r.sinceDrop>=0||(r.anchor.set($(t.x),$(t.y,.9),$(t.z)),n.lengthSq()>1e-8&&Number.isFinite(n.lengthSq())&&r.away.copy(n).normalize())}gutsOut(e){return this.guts[Math.trunc(e)]?.active===!0}dropGuts(e){let t=this.guts[Math.trunc(e)];t===void 0||!t.active||t.sinceDrop>=0||(t.sinceDrop=0,t.rope.release())}clearGuts(e){for(let[t,n]of this.guts.entries())(e===void 0||t===Math.trunc(e))&&(n.active=!1,n.eventId=null,n.moved=!1,n.rope.clear(),n.mesh.visible=!1)}gutsLength(e){let t=this.guts[Math.trunc(e)];return t===void 0||!t.active?0:t.rope.length}gutsPoint(e,t,n){let r=this.guts[Math.trunc(e)];return r===void 0||!r.active?!1:(r.rope.node(Math.round(R.clamp(t,0,1)*(r.rope.nodes-1)),n),!0)}updateGuts(e){for(let t=0;t=0&&n.sinceDrop=mK&&i)){let e=r.node(r.nodes>>1,this.gibPosition);this.canvasBlood.pool(e.x,e.z,.26,.95,t+3),this.puddle(e.x+.12,e.z+.05,.11,`bile`,t+5)}if(r.step(e,n.anchor,0,Math.max(2.4383999999999997,Math.abs(n.anchor.x),Math.abs(n.anchor.z)),n.away)&&(n.moved=!0,i)){for(let e=0;e<_K;e+=1){let t=r.node(Math.round((r.nodes-1)*(1-e*.2)),this.gibPosition);if(t.y>0+.024*1.5){n.smeared[e*2]=NaN;continue}let i=n.smeared[e*2],a=n.smeared[e*2+1],o=Math.hypot(t.x-i,t.z-a);o=0))for(n.drip+=e*this.forDevice(vK);n.drip>=1;){--n.drip;let e=r.node(Math.floor(this.ambientRandom()*r.nodes),this.gibPosition),t=this.ambientRandom()<.8?`blood`:`bile`;this.spawnDroplet(e.x,e.y-aW,e.z,(this.ambientRandom()-.5)*.3,-.1,(this.ambientRandom()-.5)*.3,jv(t,this.ambientRandom()),.9,!0,.004+this.ambientRandom()*.005,t)}}}}ejectHeart(e,t,n,r=-1){if(this.bloodLevel!==`full`)return;let i=this.heart,a=OG((Number.isSafeInteger(n)?n:0)*611953+19),o=DK(t),s=2+a()*1.2,c=(a()-.5)*1.2;i.active=!0,i.moving=!0,i.owner=Math.trunc(r),i.age=0,i.beats=0,i.bounces=0,i.settle=-1,i.pool=0,i.trail=0,i.vx=s*o.x-c*o.z,i.vy=1.8+a()*1.2,i.vz=s*o.z+c*o.x,i.vrx=(a()-.5)*14,i.vry=(a()-.5)*14,i.vrz=(a()-.5)*14,i.settleTo.setFromAxisAngle(OK,a()*Math.PI*2).multiply(bK),this.heartMesh.position.set($(e.x),$(e.y,1.2),$(e.z)),this.heartMesh.quaternion.identity(),this.heartMesh.scale.setScalar(yK),this.heartMesh.visible=!0}get heartOut(){return this.heart.active}get heartBeating(){return this.heart.active&&this.heart.age<14}heartPosition(e){return this.heart.active?(e.copy(this.heartMesh.position),!0):!1}updateHeart(e){let t=this.heart;if(!t.active)return;let n=this.heartMesh,r=this.bloodLevel===`full`;if(t.moving){let i=n.position.x,a=n.position.z;t.vy-=6.4*e,n.position.x+=t.vx*e,n.position.y+=t.vy*e,n.position.z+=t.vz*e,n.rotation.x+=t.vrx*e,n.rotation.y+=t.vry*e,n.rotation.z+=t.vrz*e;let o=tv-this.heartRadius-PW,s=MK(n.position.x,t.vx,i,o),c=MK(n.position.z,t.vz,a,o);if(n.position.x=s.position,n.position.z=c.position,t.vx=s.velocity,t.vz=c.velocity,r)for(t.trail+=e*this.forDevice(CW/2);t.trail>=1;)--t.trail,this.spawnDroplet(n.position.x,n.position.y,n.position.z,t.vx*.3+(this.ambientRandom()-.5)*.8,t.vy*.3+(this.ambientRandom()-.5)*.8,t.vz*.3+(this.ambientRandom()-.5)*.8,kv(this.ambientRandom()),.8,!0);n.position.y<=0+this.heartRadius&&(n.position.y=0+this.heartRadius,t.bounces===0&&r&&this.placeDecal(n.position.x,n.position.z,.9,.7,n.rotation.z,.8,4392199),t.bounces<2&&Math.abs(t.vy)>.4?(t.bounces+=1,t.vy=Math.abs(t.vy)*.3,t.vx*=.6,t.vz*=.6,t.vrx*=.6,t.vry*=.6,t.vrz*=.6):(t.moving=!1,t.settle=0,t.settleFrom.copy(n.quaternion),t.settleFromY=n.position.y)),Number.isFinite(n.position.x+n.position.y+n.position.z)||(n.position.set(0,0+this.heartRest,0),n.quaternion.copy(t.settleTo),t.moving=!1,t.settle=1)}else if(t.settle<1){t.settle=Math.min(1,t.settle+e/NW);let r=t.settle*t.settle*(3-2*t.settle);n.quaternion.slerpQuaternions(t.settleFrom,t.settleTo,r),n.position.y=t.settleFromY+(0+this.heartRest-t.settleFromY)*r}if(t.age>=14)return;t.age+=e;let i=GU(t.age),a=WU(t.age),o=KU(a)*(.35+.65*i);if(n.scale.set(yK*(1-.17*o),yK*(1+.08*o),yK*(1-.17*o)),Math.floor(a)<=t.beats||(t.beats=Math.floor(a),!r))return;let s=this.trailPoint.copy(VU.position).multiply(n.scale).applyQuaternion(n.quaternion).add(n.position),c=CG.copy(VU.direction).applyQuaternion(n.quaternion);wG.set(Math.abs(c.y)<.9?0:1,+(Math.abs(c.y)<.9),0).cross(c).normalize(),TG.crossVectors(c,wG);for(let e=this.forDevice(Math.round(8+xK*i));e>0;--e){let e=Math.sqrt(this.ambientRandom())*.2,t=this.ambientRandom()*Math.PI*2;EG.copy(c).multiplyScalar(Math.cos(e)).addScaledVector(wG,Math.sin(e)*Math.cos(t)).addScaledVector(TG,Math.sin(e)*Math.sin(t)).multiplyScalar((.7+2.9*i)*(.5+.55*this.ambientRandom())),this.spawnDroplet(s.x,s.y,s.z,EG.x,EG.y,EG.z,kv(this.ambientRandom()),1.1,!0,.004+this.ambientRandom()**2*.011)}t.moving||(t.pool=Math.min(.3,t.pool+.022),this.canvasBlood.pool(n.position.x,n.position.z,t.pool,.95,t.beats))}setCorpse(e,t){let n=Math.trunc(e),r=this.corpses[n];r!==void 0&&(t===null||this.bloodLevel!==`full`?this.clearCorpse(n):(r.active||(r.active=!0,r.age=0,r.puddle=0),r.position.set($(t.x),Math.max(0,$(t.y,0)),$(t.z))))}fliesOver(e){let t=this.corpses[Math.trunc(e)];return t===void 0||!t.active?0:this.fliesArrived(t.age)}fliesArrived(e){let t=this.lowTier?this.budget.flies>>1:this.budget.flies;return Math.floor(R.clamp((e-SK)/CK,0,1)*t)}updateCorpses(e){for(let t=0;t=n.puddle+.04&&(n.puddle=r,this.puddle(n.position.x,n.position.z,r,`urine`,t*11+Math.round(r*25)));let i=this.fliesArrived(n.age);if(i===0)continue;let a=this.budget.flies,o=CK/(this.lowTier?a>>1:a);for(let e=0;e=i)this.gibMatrix.makeScale(0,0,0).setPosition(0,-50,0);else{let t=Math.min(1,(n.age-SK-e*o)/wK),i=gW(this.flies,r,n.age,this.gibPosition),a=1+(1-t)*2.5;this.gibMatrix.makeTranslation(n.position.x+i.x*a,Math.max(.03,n.position.y+i.y+(1-t)*(1-t)*1.6),n.position.z+i.z*a)}this.flyMesh.setMatrixAt(r,this.gibMatrix)}this.flyMesh.visible=!0,this.flyMesh.instanceMatrix.needsUpdate=!0}}clearCorpse(e){let t=this.corpses[e];if(t.active){t.active=!1,this.gibMatrix.makeScale(0,0,0).setPosition(0,-50,0);for(let t=0;te.active)}}dispose(){this.scene.remove(this.dropletMesh),this.scene.remove(this.mistPoints),this.scene.remove(this.gibMesh),this.scene.remove(this.shardMesh),this.scene.remove(this.eyeballMesh);for(let e of this.viscera)this.scene.remove(e.mesh),e.mesh.dispose(),e.geometry.dispose();this.visceraMaterial.dispose();for(let e of this.parts)e.key!==null&&this.removePart(e.key),this.scene.remove(e.group);this.limbMaterial.dispose(),this.limbMap.dispose(),this.trunkMaterial.dispose(),this.trunkMap.dispose(),this.scene.remove(this.spineMesh,this.shredMesh,this.heartMesh,this.flyMesh),this.spineMesh.dispose(),this.shredMesh.dispose(),this.shredGeometry.dispose();for(let e of this.guts)this.scene.remove(e.mesh),e.tube.dispose();this.heartGeometry.dispose(),this.flyMesh.dispose(),this.flyGeometry.dispose(),this.flyMaterial.dispose(),this.dropletMesh.dispose(),this.dropletGeometry.dispose(),this.dropletMaterial.dispose(),this.canvasBlood.dispose();for(let e of[...this.heads,...this.hands])e.baked?.dispose(),e.bakedFlesh?.dispose();for(let e of[...this.stumps,...this.handStumps])e.flesh.dispose();this.mistGeometry.dispose(),this.mistMaterial.dispose(),this.mistMap.dispose(),this.gibMesh.dispose(),this.gibGeometry.dispose(),this.gibMaterial.dispose(),this.shardMesh.dispose(),this.eyeballMesh.dispose(),this.shardGeometry.dispose(),this.shardMaterial.dispose(),this.jawMaterial.dispose(),this.jawMap.dispose(),this.headGeometry.dispose();for(let e of this.headMaterials)e.dispose();this.handGeometry.dispose();for(let e of this.handMaterials)e.dispose();this.stumpGeometry.dispose(),this.wristStumpGeometry.dispose(),this.shieldGeometry.dispose();for(let e of this.shieldMaterials)e.dispose();for(let e of this.shieldMeshes)this.scene.remove(e);this.eyeGeometry.dispose(),this.eyeMap.dispose(),this.eyeMaterial.dispose(),this.nerveGeometry.dispose(),this.nerveMaterial.dispose();for(let e of[...this.eyeMeshes,...this.nerveMeshes])this.scene.remove(e);if(this.stumpMaterial.dispose(),this.stumpMap.dispose(),this.wristMaterial.dispose(),this.wristMap.dispose(),this.bakedStandIns!==null){this.bakedStandIns.map.dispose();for(let e of this.bakedStandIns.materials)e.dispose();for(let e of this.bakedStandIns.instanced)e.dispose();this.bakedStandIns=null}for(let e of this.heads)this.scene.remove(e.mesh);for(let e of this.hands)this.scene.remove(e.mesh);for(let e of[...this.stumps,...this.handStumps])this.scene.remove(e.mesh)}},KK={maximum:1,minimum:.55,slowMs:24,fastMs:17.5,windowMs:1e3,step:.15},qK=10,JK=10,YK=160,XK=3,ZK=3,QK=class{options;scale;elapsed=0;frames=0;fastWindows=0;holdWindows=0;fruitlessAttempts=0;pending=null;raised=null;raiseHoldWindows=0;failedRaises=0;constructor(e=KK){this.options=e,this.scale=e.maximum}record(e){if(!(e>0)||e>1e3||(this.elapsed+=e,this.frames+=1,this.elapsede.before*.9)return this.scale=e.previous,this.holdWindows=Math.min(YK,qK*2**this.fruitlessAttempts),this.fruitlessAttempts+=1,!0;this.fruitlessAttempts=0}if(this.raised!==null){let e=this.raised;if(t>this.options.slowMs)return this.raised=null,this.scale=e.previous,this.fastWindows=0,this.raiseHoldWindows=Math.min(YK,JK*2**this.failedRaises),this.failedRaises+=1,!0;e.windows+=1,e.windows>=ZK&&(this.raised=null,this.failedRaises=0)}if(t>this.options.slowMs){if(this.fastWindows=0,this.holdWindows>0)return--this.holdWindows,!1;if(this.scale<=this.options.minimum)return!1;let e=this.scale;return this.scale=Math.max(this.options.minimum,this.scale-this.options.step),this.pending={before:t,previous:e},!0}return t0?(--this.raiseHoldWindows,!1):this.fastWindows>=XK&&this.scale0&&e.poise===0)return 1;if(e.is_downed)return eq;let n=e.stunned_ticksthis.value?7:.9;return this.value+=(e-this.value)*(1-Math.exp(-n*Math.max(0,t))),e===0&&this.value<.003&&(this.value=0),this.value}},rq=.4,iq=.5,aq={before:24,after:24,speed:.5};function oq(e,t,n=30,r=rq,i=42,a=33){let o=t.tick-i,s=t.tick+a,c=e.filter(e=>e.tick>=o-1&&e.tick<=s+1),l=c.at(-1),u=l!==void 0&&l.result!==null&&l.tick({...l,tick:l.tick+t+1,events:[]}))]:c,d=u[0],f=u.at(-1);if(d===void 0||f===void 0||u.length<8||d.tick>t.tick-12||f.tick=1&&this.lastHeat<1&&!r&&(this.flare=1),this.lastHeat=t,this.flare=Math.max(0,this.flare-n/dq);let a=this.mesh.material;if(a.opacity=Math.min(1,t*.8+this.flare*.6),this.mesh.visible=a.opacity>.01,!this.mesh.visible)return;this.mesh.position.copy(e),this.mesh.quaternion.copy(i.quaternion);let o=lq*(.55+.45*t)*(1+this.flare*uq);this.mesh.scale.set(o,o,1)}get active(){return this.mesh.visible}standIn(){return new H(this.mesh.geometry,this.mesh.material)}reset(){this.flare=0,this.lastHeat=0,this.mesh.material.opacity=0,this.mesh.visible=!1}dispose(){this.mesh.geometry.dispose(),this.mesh.material.dispose()}},yq=class{group=new tc;flash;ring;age=1/0;constructor(e){this.flash=_q(e,new V(1,.86,.62)),this.flash.material.depthTest=!1,this.ring=new H(new gd(.42,.5,40),new yl({color:cq,blending:2,depthWrite:!1,transparent:!0,side:2})),this.flash.renderOrder=6,this.ring.renderOrder=6,this.group.add(this.flash,this.ring),this.group.visible=!1}fire(e){this.age=0,this.group.position.copy(e)}update(e,t){this.age+=e;let n=this.age/fq,r=this.age/mq;if(this.group.visible=r<1,!this.group.visible)return;this.group.quaternion.copy(t.quaternion),this.flash.visible=n<1;let i=pq*(.35+.65*Math.sqrt(Math.min(1,n)));this.flash.scale.set(i,i,1),this.flash.material.opacity=(1-Math.min(1,n))**2;let a=hq*(.15+.85*(1-(1-r)**3));this.ring.scale.set(a,a,a),this.ring.material.opacity=.9*(1-r)}get active(){return this.group.visible}standIns(){return[new H(this.flash.geometry,this.flash.material),new H(this.ring.geometry,this.ring.material)]}reset(){this.age=1/0,this.group.visible=!1}dispose(){this.flash.geometry.dispose(),this.flash.material.dispose(),this.ring.geometry.dispose(),this.ring.material.dispose()}},bq=10,xq=.055,Sq=3.2,Cq=1.4,wq=class{color;mesh;geometry;positions=new Float32Array(60);colors=new Float32Array(80);history=[];last=new B;hasLast=!1;tangent=new B;side=new B;toCamera=new B;shade=new V;strength=0;heat=0;constructor(e){this.color=e,this.geometry=new il,this.geometry.setAttribute(`position`,new Uc(this.positions,3).setUsage(go)),this.geometry.setAttribute(`color`,new Uc(this.colors,4).setUsage(go));let t=[];for(let e=0;e<9;e+=1){let n=e*2;t.push(n,n+1,n+2,n+1,n+3,n+2)}this.geometry.setIndex(t);let n=new yl({vertexColors:!0,transparent:!0,blending:2,depthWrite:!1,side:2});this.mesh=new H(this.geometry,n),this.mesh.frustumCulled=!1,this.mesh.visible=!1,this.mesh.renderOrder=4}update(e,t,n,r,i=0){if(t<=0)return;let a=this.hasLast?e.distanceTo(this.last)/t:0;this.last.copy(e),this.hasLast=!0,this.heat=i>this.heat?i:this.heat+(i-this.heat)*Math.min(1,t*6);let o=Sq*(1-.55*this.heat),s=r&&a>o?Math.min(1,(a-o)/4+this.heat*.4):0;this.strength+=(s-this.strength)*Math.min(1,t*18);let c=this.history.length>=bq?this.history.shift():new B;if(c.copy(e),this.history.push(c),this.strength<.02||this.history.length<3){this.mesh.visible=!1;return}let l=this.history.length,u=this.shade.copy(this.color).lerp(cq,this.heat),d=xq*(1+Cq*this.heat);for(let e=0;e3*t}function Oq(e,t,n){let r=e.detail.endsWith(`:head`)||e.detail.endsWith(`:body`);return t===void 0||![`hit`,`counter_hit`].includes(e.kind)||!r||n===null||n.winner_id===null||n.winner_id!==e.actor_id?!1:n.finish_method===`flash_ko`||(n.finish_method===`ko`||n.finish_method===`tko`)&&t.is_downed}function kq(e){for(let t of e.passes)t.dispose?.();e.dispose()}function Aq(e,t,n,r,i){e.setRenderTarget(t.readBuffer);let a=e.compileAsync(n,r,i);return e.setRenderTarget(null),a}var jq=-4e-4,Mq=10,Nq=16;function Pq(e,t,n){let r=t?Nq:n;e.autoUpdate=!t,e.intensity=+!t,e.bias=t?Mq:jq,e.mapSize.x!==r&&(e.mapSize.set(r,r),e.map?.dispose(),e.map=null,e.needsUpdate=!0)}function Fq(e,t){let n=t.fighters.findIndex(t=>t.player_id===e.target_id),r=t.fighters.findIndex(t=>t.player_id===e.actor_id),i=e.kind===`block`||e.kind===`perfect_block`;return{recipientIndex:i?r:n,puncherIndex:i?n:r}}function Iq(e,t,n){if(e===void 0||t===void 0)return;let r=n.x(t.x)-n.x(e.x),i=n.z(t.y)-n.z(e.y),a=Math.hypot(r,i);return Number.isFinite(a)&&a>.001?{x:r/a,z:i/a}:void 0}var Lq=e=>e.kind===`hit`||e.kind===`counter_hit`,Rq=e=>e.kind===`block`||e.kind===`perfect_block`,zq=480,Bq=.56,Vq=1.8,Hq=1.7,Uq=1.2,Wq=1.6,Gq=30,Kq=6.5,qq=.4,Jq=600,Yq=2.8,Xq=.6,Zq=[[1,0],[-1,0],[.75,-.66],[-.75,-.66],[.75,.66],[-.75,.66]],Qq=.15,$q=.6,eJ=2.3,tJ=.5,nJ=3.42,rJ=2.2,iJ=.9,aJ=`body`,oJ=`collapse`,sJ=.55,cJ=.5,lJ=.5,uJ=.28,dJ=104,fJ=260,pJ=.05,mJ=2.95,hJ=2.4,gJ=1.6,_J=.98,vJ=500,yJ={uniforms:{tDiffuse:{value:null},uTime:{value:0},uVignette:{value:.32},uGrain:{value:.035},uRocked:{value:0}},vertexShader:` varying vec2 vUv; void main() { vUv = uv; @@ -5535,8 +5536,8 @@ void main() { float grain = (hash(floor(vUv * vec2(960.0, 540.0))) - 0.5) * uGrain; color.rgb += grain * (0.15 + color.rgb); gl_FragColor = color; -}`},Kq=[{x:-102,y:-16},{x:102,y:-16}],qq=[0,1],Jq=.5,Yq={x:0,z:-.2},Xq=0,Zq=200,Qq=1.3,$q=.7,eJ=4.5;function tJ(e,t,n,r){let i=n.x-e,a=n.y-t,o=Math.hypot(i,a);return o<=Math.max(r,1e-6)?{x:n.x,y:n.y,arrived:!0}:{x:e+i/o*r,y:t+a/o*r,arrived:!1}}var nJ=16,rJ=.6,iJ={hit:.18,counter_hit:.3,guard_break:.25,knockdown:1,block:.04,perfect_block:.1,parry:.22,body_collapse:.45},aJ=new Set([`hit`,`counter_hit`,`block`,`perfect_block`,`guard_break`,`knockdown`,`parry`,`body_collapse`,`eye_shut`]),oJ=new Set([`parry`,`body_collapse`,`eye_shut`]),sJ=new Set([`hit`,`counter_hit`,`block`,`perfect_block`]),cJ=1.2,lJ=.8,uJ=2.4,dJ=2.5,fJ=new Set([`referee_hit`,`referee_down`]),pJ=.05,mJ=.08,hJ={parry:{text:`PARRIED`,seconds:1},eye_shut:{text:`EYE SWOLLEN SHUT`,seconds:1.6}},gJ=new Set([`injury`,`vomit`,`finish_him`,`fatality`,`death`]),_J=1.8,vJ=3,yJ=.6;function bJ(e,t){let n=je(e,t);return n!==`severed`&&n!==`torn`}function xJ(e){return e.kind===`death`?e.detail===`brain`?`head_burst`:null:e.kind===`fatality`?e.detail===`head_burst`?`head_burst`:e.detail===`decapitation`||e.detail===`spine_rip`?`decapitation`:null:null}var SJ=e=>e.kind===`knockdown`&&e.detail===`body`;function CJ(e,t){if(lq(e)&&e.action_id!==null)return t.find(t=>uq(t)&&t.action_id===e.action_id&&t.actor_id===e.target_id&&t.target_id===e.actor_id)}function wJ(e,t){if(uq(e)&&e.action_id!==null)return t.find(t=>lq(t)&&t.action_id===e.action_id&&t.actor_id===e.target_id&&t.target_id===e.actor_id)}function TJ(e,t){return e.map((n,r)=>{if(oJ.has(n.kind)||n.kind===`knockdown`&&n.detail===Mq)return{event:n,presentationEvent:n,presentImpact:!1,reactAmount:null};let{puncherIndex:i}=sq(n,t),a=t.fighters[i],o=a?.action_key?.split(`:`)??[],s=o.length>=3?`${o[0]}:${o[2]}`:n.detail,c=wJ(n,e);if(uq(n))return{event:n,presentationEvent:{...n,detail:c?.detail||s,direction:c?.direction??a?.facing??n.direction,blood:c?.blood??n.blood},presentImpact:!0,reactAmount:n.amount};if(CJ(n,e)!==void 0)return{event:n,presentationEvent:n,presentImpact:!1,reactAmount:n.amount};if(n.kind===`knockdown`){let t=e.slice(0,r).reverse().find(e=>lq(e)&&e.tick===n.tick&&e.actor_id===n.actor_id&&e.target_id===n.target_id);if(t!==void 0)return{event:n,presentationEvent:{...n,detail:t.detail,direction:t.direction,blood:t.blood,action_id:t.action_id},presentImpact:!0,reactAmount:CJ(t,e)===void 0?null:t.amount}}return{event:n,presentationEvent:n,presentImpact:!0,reactAmount:n.amount}})}function EJ(e){let t=e?.trauma;if(t===void 0)return{side:1,lift:.08,lateral:.035,prop:`enswell`};switch(e?.corner_choice){case`cut`:return{side:t.right_cut>t.left_cut?-1:1,lift:.11,lateral:.04,prop:`enswell`};case`swelling`:return{side:t.right_eye>t.left_eye?-1:1,lift:.08,lateral:.035,prop:`enswell`};case`breath`:return{side:1,lift:-.015,lateral:0,prop:`bottle`};default:return{side:t.right_eye+t.right_cut>t.left_eye+t.left_cut?-1:1,lift:.08,lateral:.035,prop:`enswell`}}}function DJ(e){return e?.split(`:`)[1]===`right`?1:-1}function OJ(e){return e.result===null?e.tick-1:e.tick}var kJ=50,AJ=40,jJ=40,MJ=50,NJ=[`jab`,`straight`,`hook`,`uppercut`];function PJ(e,t,n,r){if(!eq(e,t,n))return null;let i=r?.action_key?.split(`:`),a=e.detail.split(`:`).find(e=>NJ.includes(e))??i?.[0],o=i?.[1]===`right`?`left`:`right`,s=e.amount;return e.detail.endsWith(`:head`)?n?.finish_method===`flash_ko`||e.kind===`counter_hit`&&s>=70?`head_burst`:a===`uppercut`&&s>=AJ||a===`straight`&&s>=kJ?`decapitation`:(a===`hook`||a===`jab`)&&s>=jJ?`eye_${o}`:`jaw_dislocation`:a===`hook`?s>=MJ?`dismember_${o}`:`shoulder_${o}`:`ribs_${o}`}function FJ(){let e=document.createElement(`canvas`);e.width=128,e.height=128;let t=e.getContext(`2d`);if(t!==null){let e=t.createRadialGradient(64,64,8,64,64,62);e.addColorStop(0,`rgba(0,0,0,0.68)`),e.addColorStop(.6,`rgba(0,0,0,0.34)`),e.addColorStop(1,`rgba(0,0,0,0)`),t.fillStyle=e,t.fillRect(0,0,128,128)}return new Wl(e)}var IJ=.42,LJ=.16;function RJ(e){return .9*L.clamp(1-e/LJ,0,1)}var zJ=new z(0,.12,.02),BJ=new z(0,1,0),VJ=new WeakMap;function HJ(e){let t=VJ.get(e);return t===void 0&&(t=J_(e,sY),VJ.set(e,t)),t}function UJ(e){return e.y>ng-1.4}var WJ=new WeakMap;function GJ(e){let t=WJ.get(e);return t===void 0&&(t=J_(e,UJ),WJ.set(e,t)),t}function KJ(e,t,n){let r=e.bone(`head`);if(r===null)return null;e.root.updateMatrixWorld(!0);let i=e.headMesh,a=GJ(i.geometry);if(a.length===0)return null;let o=t.length===a.length*3?t:new Float32Array(a.length*3);n.position.set(0,0,0);for(let[t,r]of a.entries())tY(e,r,n.scratch),n.scratch.toArray(o,t*3),n.position.add(n.scratch);return n.position.multiplyScalar(1/a.length),r.getWorldQuaternion(n.quaternion),n.across.set(1,0,0).applyQuaternion(n.quaternion),n.scratch.set(0,1,0).applyQuaternion(n.quaternion),n.quaternion.setFromUnitVectors(BJ,n.scratch),o}function qJ(e,t,n,r){let i=e?.currentRoot;return r.set(i?.x??n.x(t.x),0,i?.z??n.z(t.y))}function JJ(e,t,n,r,i){let a=Math.hypot(e-n,t-r);return a>=i?{x:e,z:t}:a<1e-6?{x:n,z:r-i}:{x:n+(e-n)/a*i,z:r+(t-r)/a*i}}var YJ=[0,1.05,-1.05,2.1,-2.1,Math.PI];function XJ(e,t,n,r,i,a,o=[]){let s=n===null?0:Math.hypot(n.x,n.z),c=n!==null&&s>=.35?[Math.atan2(n.x,n.z)]:[];for(let e of YJ)c.push(a+e);for(let n of c){let a=L.clamp(e+Math.sin(n)*r,-i,i),s=L.clamp(t+Math.cos(n)*r,-i,i),c=Math.hypot(a-e,s-t);if(!(c{let r=L.clamp(((n.x-e)*(a-e)+(n.z-t)*(s-t))/(c*c),.25,1);return Math.hypot(e+(a-e)*r-n.x,t+(s-t)*r-n.z)1e-9&&(s=Math.min(s,(Math.sign(n)*i-e)/n)),Math.abs(r)>1e-9&&(s=Math.min(s,(Math.sign(r)*a-t)/r));for(let i of[-1,1])for(let a of[-1,1]){let c=i*n+a*r;c>1e-9&&(s=Math.min(s,(o-i*e-a*t)/c))}return Math.max(0,s)}function QJ(e,t,n,r,i,a,o,s=1/0){let c=Math.hypot(n-e,r-t);if(c>=i)return null;let l=c<1e-6?1:(n-e)/c,u=c<1e-6?0:(r-t)/c,d=i-c,f=ZJ(e,t,-l,-u,a,o,s),p=ZJ(n,r,l,u,a,o,s),m=Math.min(d/2,f),h=Math.min(d-m,p);m=Math.min(d-h,f);let g=L.clamp;return{ax:g(e-l*m,-a,a),ay:g(t-u*m,-o,o),bx:g(n+l*h,-a,a),by:g(r+u*h,-o,o)}}var $J=new WeakMap;function eY(e,t,n,r,i,a,o,s=null){let c=$J.get(e);if(c!==void 0&&c.width===t&&c.height===n)return c.top;let l=Ur(t,n,Br(e,r,i,r.map(e=>a.total(e.player_id)),s),!0).y;return $J.set(e,{width:t,height:n,top:l}),l}function tY(e,t,n){let r=e.headMesh;return Fy(n.fromBufferAttribute(r.geometry.getAttribute(`position`),t),e.look,n),r.applyBoneTransform(t,n).applyMatrix4(r.matrixWorld)}var nY=new Lo,rY=new Lo,iY=new Ho;function aY(e,t,n){let r=e.geometry;nY.fromBufferAttribute(r.getAttribute(`skinIndex`),t),rY.fromBufferAttribute(r.getAttribute(`skinWeight`),t),n.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);for(let t=0;t<4;t+=1){let r=rY.getComponent(t);if(r===0)continue;let i=nY.getComponent(t);iY.multiplyMatrices(e.skeleton.bones[i].matrixWorld,e.skeleton.boneInverses[i]);for(let e=0;e<16;e+=1)n.elements[e]+=iY.elements[e]*r}return n.premultiply(e.bindMatrixInverse).multiply(e.bindMatrix)}var oY=new z(-1,0,0);function sY(e){return e.y>eg-tg*(e.z- -4)-.3}var cY={tick_rate:30,ring_half_width:500,ring_half_height:500};function lY(e,t,n,r,i,a,o=!0){let s=e.geometry,c=s.getAttribute(`position`),l=s.getIndex(),u=[],d=l!==null&&r===void 0?[]:null;if(l===null||d===null)for(let e=0;e=i.start+o))return{action:i.punchClass,action_hand:i.hand,action_target:`head`,action_power:`normal`,action_id:`idle-${n}-${r}`,action_key:`${i.punchClass}:${i.hand}:head:normal`,action_start_tick:e-(t-i.start),action_startup_ticks:a.startup,action_active_ticks:a.active,action_recovery_ticks:a.recovery,action_contact_tick:e-(t-i.start)+a.startup}}return{}}var gY=1000003,_Y=1.6;function vY(e,t,n,r,i,a){let o=r<0?-1:1,s=o=>Math.hypot(L.clamp(e+n*o*i,-a,a)-e,L.clamp(t+r*o*i,-a,a)-t);return s(o)>=i*.8||s(o)>=s(-o)?o:-o}function yY(e,t,n){return t?e.kind===`knockdown`?1:Math.min(1,.35+e.amount/400):(n===`full`?1:n===`reduced`?.4:0)*(e.kind===`knockdown`?.85:e.amount>=50?Math.min(.75,(e.amount-30)/140):0)}function bY(e){if(e.kind!==`hit`&&e.kind!==`counter_hit`||e.amount<(e.detail.endsWith(`:body`)?70:50))return null;let t=Math.min(100,Math.max(0,e.blood));return{seconds:.6+t/50,rate:150+e.amount*1.5+t*2}}function xY(e,t){return t===`full`?e>100?Math.min(.65,e/1800):0:e>350?Math.min(.3,e/4600):0}function SY(e){return!e.is_downed&&e.stunned_ticks===0&&e.clinch_ticks===0&&e.clinch_startup_ticks===0&&e.taunt_ticks===0&&!e.is_foul_recovery_target}function CY(e,t){if(e===null)return null;let n=t.fighters.find(t=>t.player_id===e.target_id),r=t.fighters.find(t=>t.player_id===e.actor_id);return PJ(e,n===void 0?void 0:{...n,is_downed:!0},{finish_method:`ko`,winner_id:e.actor_id},r)}var wY=.2,TY=1.1,EY=1.6,DY=2.4,OY=2,kY=new z(0,-.1,.08),AY=new z(0,-.07,.1),jY=new z(0,-.35,1),MY=3,NY=320,PY=8,FY=1.6,IY=.08,LY=.12,RY=e=>e===`shoulder_left`||e===`shoulder_right`||e===`ribs_left`||e===`ribs_right`?e:`mouth`;function zY(e,t,n=TY){return Math.min(n,.06+.08*Math.sqrt(Math.max(0,e))*Math.min(1.6,Math.max(0,t)))}function BY(e,t,n){return e.is_downed||t?.isDown===!0||n!==void 0&&e.player_id===n}var VY=6,HY=11,UY=.13;function WY(e,t){let n=t===`left`?`leftRibs`:`rightRibs`;e.impact(n,[t===`left`?-6:VY,-6*.15,-1.5],HY),e.set(n,{bruise:1.2,swell:0,blood:1.4})}function GY(e,t){e.set(`mouth`,{cut:1,blood:1.4}),e.set(`chin`,{bruise:1.2}),t.set(`neckSmear`,{blood:1.4})}function KY(e,t){e.set(t===`left`?`leftShoulderSmear`:`rightShoulderSmear`,{blood:1.4}),e.set(t===`left`?`leftPec`:`rightPec`,{bruise:1.1})}var qY=new WeakMap;function JY(e,t){let n=qY.get(e);if(n===void 0){let t=e.getAttribute(`position`),r=new z,i=new z,a=Fg.map(e=>{let n=0,a=1/0;i.set(e[0],e[1],e[2]);for(let e=0;ethis.onAnnouncement?.(e),cue:e=>this.onCrowdCue?.(e)});touchControls=VI();resultAnnounced=!1;captionText=``;rocked=new OK;tmpA=new z;tmpB=new z;contactPoint=new z;cornerPanelTop=null;mouthPoint=new z;tmpHead=new z;tmpHeadQuaternion=new vo;tmpStump=new z;tmpStumpOffset=new z;tmpStumpQuaternion=new vo;tmpStumpAcross=new z;tmpPart=new z;tmpPartQuaternion=new vo;woundPoint=new z;woundAxis=new z;constructor(e,t=cY,n,r={}){this.canvas=e,this.simulation=t,this.settings=n,this.manualClock=r.manualClock===!0,this.localInput=r.localInput??null,this.powerHeld=r.powerHeld??null,this.inputSequenceOf=r.inputSequenceOf??null,this.buffer=new FL(8,t.tick_rate),this.mapping=v_(t),this.renderer=new qh({canvas:e,antialias:!0,powerPreference:`high-performance`,preserveDrawingBuffer:r.manualClock===!0}),this.renderer.shadowMap.enabled=!0,this.renderer.shadowMap.type=1,this.renderer.toneMapping=4,this.renderer.toneMappingExposure=1,this.renderer.setPixelRatio(this.basePixelRatio),this.scene.background=new B(`#04060b`),this.scene.fog=new ws(`#04060b`,.042),this.camera=new Wd(36,1,.1,80),this.camera.position.set(0,2.05,5.9),this.camera.lookAt(0,1.05,0),this.setupLights(),this.ring=IC(),this.scene.add(this.ring.group),this.arena=uB(),this.scene.add(this.arena.group),this.effects=new _K(this.scene,VI()?1024:2048,VI()?WU:UU),this.effects.useUploader(this.renderer),this.effects.setCamera(this.camera),this.carnage=new aH(this.effects,dY),this.blobTexture=FJ();let i=new Au(1,1);for(let e=0;e<3;e+=1){let t=new V(i,new Pc({map:this.blobTexture,transparent:!0,depthWrite:!1}));t.rotation.x=-Math.PI/2,t.position.y=.006+e*4e-4,t.renderOrder=1,this.blobShadows.push(t),this.scene.add(t)}for(let e=0;e<4;e+=1){let t=new V(i,new Pc({map:this.blobTexture,transparent:!0,depthWrite:!1}));t.rotation.x=-Math.PI/2,t.position.y=.0075+e*4e-4,t.scale.set(IJ,IJ,1),t.renderOrder=1,t.visible=!1,this.footShadows.push(t),this.scene.add(t)}this.composer=new rz(this.renderer),this.composer.addPass(new iz(this.scene,this.camera));let a=new oz(new R(1280,720),.22,.35,1.5);this.bloomPass=a,this.composer.addPass(a),this.finishPass=new ez(Gq),this.composer.addPass(this.finishPass),this.composer.addPass(new cz),this.hudCanvas=document.createElement(`canvas`),this.hudCanvas.className=`fight-hud`,this.hudCanvas.style.cssText=`position:absolute;inset:0;width:100%;height:100%;pointer-events:none`,e.insertAdjacentElement(`afterend`,this.hudCanvas),this.bloodLevel=n().blood,this.effects.setBloodLevel(this.bloodLevel),this.ensureGraphs(),this.manualClock||(this.raf=requestAnimationFrame(e=>this.draw(e)))}ensureGraphs(){this.glbLoading||this.graphs!==null||(this.glbLoading=!0,this.graphsReady=YC().then(async e=>{if(this.destroyed)return;let t=new cw(e,{skin:11563071,gear:1920728}),n=new cw(e,{skin:7225640,gear:12131356});this.graphs=[new Bw(t,this.mapping),new Bw(n,this.mapping)];let r=[this.carnage.attach(0,this.graphs[0]),this.carnage.attach(1,this.graphs[1])];this.lookIds.fill(null),this.syncInjuryPresentation(0),this.syncInjuryPresentation(1);let i=new cw(e,{skin:13081462,gear:3889080,look:Cy.referee,outfit:Gy,wounds:!0});this.referee=new Bw(i,this.mapping,{referee:!0,knockout:!0});let a=new cw(e,{skin:9067067,gear:1778224,look:Cy.blueCorner,outfit:Ky}),o=new cw(e,{skin:14264188,gear:1778224,look:Cy.redCorner,outfit:qy});this.cornermen=[new Bw(a,this.mapping,{referee:!0}),new Bw(o,this.mapping,{referee:!0})];let s=new cw(e,{skin:12160102,gear:1778224,look:Cy.blueCutman,outfit:Jy}),c=new cw(e,{skin:5913126,gear:1778224,look:Cy.redCutman,outfit:Jy});this.cutmen=[new Bw(s,this.mapping,{referee:!0}),new Bw(c,this.mapping,{referee:!0})],s.root.visible=!1,c.root.visible=!1,this.trails=[1920728,12131356].flatMap(e=>[0,1].map(()=>new XK(new B(e).lerp(new B(16777215),.55))));let l=HK();this.glowMap=l,this.glows=[0,1,2,3].map(()=>new WK(l)),this.impactFlashes=[0,1].map(()=>new GK(l));let u=new gs;u.add(t.root,n.root,i.root,a.root,o.root,s.root,c.root,...this.trails.map(e=>e.mesh),...this.effects.compileStandIns(),...r.flatMap(e=>e.compileStandIns()),this.glows[0].standIn(),...this.impactFlashes[0].standIns()),u.add(this.carnage.xray.standIn());let d=t.headInjury.open;t.headInjury.setOpen(!0);try{await nq(this.renderer,this.composer,u,this.camera,this.scene)}catch{}if(!this.destroyed){this.scene.add(t.root,n.root,i.root,a.root,o.root,s.root,c.root);for(let e of this.trails)this.scene.add(e.mesh);for(let e of this.glows)this.scene.add(e.mesh);for(let e of this.impactFlashes)this.scene.add(e.group);this.compileShadowsOf(u),t.headInjury.setOpen(d)}}).catch(e=>{this.glbLoading=!1,console.error(`boxer_glb_load_failed`,e)}))}compileShadowsOf(e){let t=this.keyLight;if(t!==null&&e.children.length!==0){for(let t of e.children)t.frustumCulled=!1,t.onBeforeShadow=(e,t,n,r,i,a)=>{a.needsUpdate=!0};this.scene.add(e),t.shadow.needsUpdate=!0,this.renderer.setRenderTarget(this.composer.readBuffer);try{this.renderer.render(this.scene,this.camera)}catch{}finally{this.renderer.setRenderTarget(null),this.scene.remove(e)}}}get ready(){return this.graphsReady}get labRigs(){let e=this.graphs;return e===null?[]:[e[0].boxer.root,e[1].boxer.root]}get labScene(){return this.scene}get labEffects(){return this.effects}labSetCameraOverride(e,t){this.cameraOverride={position:new z(...e),lookAt:new z(...t)}}labFrame(e,t=!0){this.draw(e*1e3,!0,t)}setCornerPanelTop(e){this.cornerPanelTop=e}viewForward(){return this.ownViewActive?(this.ownForward.x=this.fighterCam.forwardX,this.ownForward.z=this.fighterCam.forwardZ,this.ownForward):null}setPlayers(e,t,n=Object.keys(e)){this.players=e,this.viewerId=t,this.playerOrder=n}updateIdleFighters(e,t,n){let r=this.graphs;if(r===null)return;let i=this.playerOrder.filter(e=>this.players[e]!==void 0).length<2;for(let[a,o]of r.entries()){let r=this.playerOrder[a]??`seat-${a}`,s=!i||r===this.viewerId||this.viewerId===null&&a===0;if(o.boxer.root.visible=s,!s)continue;this.wearLook(a===0?0:1,r);let c=a===0?-1:1,l=Math.floor(t*this.simulation.tick_rate),u={...fY(r),x:i?0:c*180,y:i?-70:0,facing:i?1:-c,facing_x:i?0:-c*1e3,facing_y:i?-1e3:0,...i?hY(l):{}},d={...fY(this.playerOrder[1-a]??`opponent`),x:i?0:-c*180,y:i?-150:0};o.setResting(!1),o.update(u,d,e,t,this.settings().reducedMotion,this.bloodLevel,i?l:n)}}setFinal(e){if(e!==null&&e.match_id===this.final?.match_id)return;this.final=e,this.stoppageWinner=-1,this.stoppageRaiseAt=1/0,this.stoppageSpot=null,this.raiseFramed=!1,this.ceremony=this.ceremonyFor(e);let t=e?.method===`draw`&&this.deaths.every(e=>e!==null);if(this.finalRevealAt=this.frameSeconds+(this.ceremony===null?t?pr:hr(e):eJ),this.ovationUntil=e===null?0:this.frameSeconds+nJ,e!==null&&this.commentary.finish(e,this.players,this.ceremony!==null,this.frameSeconds),this.ceremony===null&&this.endCeremony(),this.pendingFinish=null,e===null||!fr.has(e.method))return;let n=this.lastKnockdown===null?null:MK(this.history,this.lastKnockdown.hit??this.lastKnockdown.knockdown,this.simulation.tick_rate),r=this.finishingInjury(e);if(n!==null&&this.graphs!==null&&!this.settings().reducedMotion){r!==null&&(this.replayInjuries[r.index]={injury:r.injury,event:r.event}),this.startReplay(n);return}if(r!==null){let e=this.pendingContacts.find(e=>e.event.event_id===r.event.event_id);e===void 0?this.applyArcadeInjury(r.index,r.injury,r.event):e.injury??=r.injury}let i=this.buffer.latest()?.result?.tick;i===void 0?this.presentFinish(e):this.pendingFinish={final:e,tick:i,latestAt:this.frameSeconds+Dq}}presentFinishWhenShown(e){let t=this.pendingFinish;t===null||ee.player_id===t.hit.target_id)??-1;return r<0||this.arcadeInjuries[r]!==null?null:{index:r,injury:t.finisher,event:t.hit}}ceremonyFor(e){let t=this.buffer.latest()?.fighters;if(e===null||t===void 0||e.method!==`decision`&&e.method!==`draw`||t.some(e=>e.is_downed)||this.deaths.some(e=>e!==null))return null;let n=t.findIndex(t=>t.player_id===e.winner_id);return{winnerSeat:n===0||n===1?n:null,positions:null,refereeArrived:!1,arrivedAt:null,announced:!1}}endCeremony(){for(let e of this.graphs??[])e.awaitVerdict(null);this.referee?.raise(null,null)}ceremonyFighters(e,t,n,r,i=null){e.positions===null&&(e.positions=[{x:t[0].x+(i?.[0].x??0),y:t[0].y+(i?.[0].y??0)},{x:t[1].x+(i?.[1].x??0),y:t[1].y+(i?.[1].y??0)}],e.marks=e.positions[0].x<=e.positions[1].x?[0,1]:[1,0]);let a=e.marks??qq,o=e.refereeArrived;for(let r of[0,1]){let i=e.positions[r],s=a[r],c=tJ(i.x,i.y,Kq[s],Zq*n),l=Math.hypot(c.x-i.x,c.y-i.y),u=n>0?1/(n*this.simulation.tick_rate):0,d=!c.arrived&&l>1e-6;Object.assign(this.drawnFighters[r],t[r],{x:c.x,y:c.y,velocity_x:(c.x-i.x)*u,velocity_y:(c.y-i.y)*u,facing_x:d?Math.round((c.x-i.x)/l*1e3):0,facing_y:d?Math.round((c.y-i.y)/l*1e3):-1e3,facing:d&&c.x=$q){e.announced=!0,this.commentary.verdict(this.frameSeconds);for(let t of[0,1])this.graphs?.[t]?.announce(e.winnerSeat===null?`level`:e.winnerSeat===t?`winner`:`loser`);this.finalRevealAt=Math.min(this.finalRevealAt,this.frameSeconds+.35),this.arena.excite(1)}if(e.announced){let n=n=>{let r=a[0]===n?0:1,i=e.winnerSeat===null||e.winnerSeat===r,o=je(t[r].injuries,n===0?`left`:`right`)===`whole`,s=this.graphs?.[r]?.boxer.rig.bones[n===0?`gloveL`:`gloveR`];return i&&o&&s!==void 0?s.getWorldPosition(this.ceremonyWrists[n]):null};this.referee?.isDown!==!0&&this.referee?.raise(n(1),n(0))}return this.drawnFighters}ceremonyFrame(e){let t=this.ceremony,n=this.buffer.latest();if(t===null||t.arrivedAt===null||this.replay!==null||this.final===null||n===null)return null;let{width:r,height:i}=this.hudViewport,a=eY(this.final,r,i,n.fighters,this.players,this.roundStats,this.viewerId),o=kB(this.camera.aspect,this.camera.fov,(i-a)/Math.max(1,i)),s=this.settings().reducedMotion?0:Math.sin((e-t.arrivedAt)*.35)*.06*o.distance;return this.cornerPosition.set(s,o.height+.05*o.distance,o.distance),this.cornerLookAt.set(0,o.height,0),{position:this.cornerPosition,lookAt:this.cornerLookAt,framed:!0}}raiseFrame(e,t,n){let r=this.buffer.latest();if(this.stoppageWinner<0||this.final===null||this.replay!==null||this.ceremony!==null||r===null||e0?-1:1)*Sq,o=this.stoppageSpot?.z??0;this.raiseFramed||this.raiseCentre.set(i.x+a/2,0,i.z+o/2),this.raiseCentre.lerp(this.tmpCamera.set(i.x+a/2,0,i.z+o/2),1-Math.exp(-3*t)),this.raiseFramed=!0;let{width:s,height:c}=this.hudViewport,l=eY(this.final,s,c,r.fighters,this.players,this.roundStats,this.viewerId,this.deaths[0]??this.deaths[1]),u=kB(this.camera.aspect,this.baseFov,(c-l)/Math.max(1,c)),d=e-(this.stoppageRaiseAt-xq),f=n?0:Math.sin(d*.35)*.06*u.distance;return this.cornerPosition.set(L.clamp(this.raiseCentre.x,-1.4,1.4)+f,u.height+.05*u.distance,this.raiseCentre.z+u.distance),this.cornerLookAt.set(this.raiseCentre.x,u.height,this.raiseCentre.z),{position:this.cornerPosition,lookAt:this.cornerLookAt,framed:!0}}presentFinish(e){let t=this.buffer.latest()?.referee.alive===!1;t||this.referee?.waveOff(void 0,e.method===`death`);let n=this.buffer.latest()?.fighters,r=n?.findIndex(t=>t.player_id!==e.winner_id&&t.player_id!==null)??-1;if(r>=0&&this.headCacheValid[r]&&!this.settings().reducedMotion&&!this.carnage.gibbed(r)&&(this.finishCloseUpIndex=r,this.finishCloseUpUntil=this.frameSeconds+mq,this.finishCloseUpBearing=null,this.finishCloseUpAt=this.frameSeconds),e.winner_id===null)return;let i=n?.findIndex(t=>t.player_id===e.winner_id)??-1;if(i<0)return;this.graphs?.[i]?.celebrate(bq);let a=n?.[i]?.injuries??[];!t&&(bJ(a,`left`)||bJ(a,`right`))&&(this.stoppageWinner=i,this.stoppageRaiseAt=this.frameSeconds+xq)}cornerShotFrame(e,t,n){if(t===null||t.phase!==`rest`||n||this.graphs===null)return null;let r=t.fighters.findIndex(e=>e.player_id===this.viewerId),i=e-this.restStartedAt,a=xB(i,t.phase_ticks_remaining/this.simulation.tick_rate,+(r===1));return a===null||!this.graphs[a].stoolVisible||this.cutmen!==null&&this.cutmanProgress[a]e.player_id===this.viewerId)===1),n=this.mapping.x(l);return EB(t,n,-3.5,_q,this.cornerPosition).setY(vq),EB(t,n,0,0,this.cornerLookAt),this.cornerLookAt.lerp(EB(+(t===0),n,0,0,this.tmpCamera),yq).setY(.9),{position:this.cornerPosition,lookAt:this.cornerLookAt,framed:!0}}closeUpFrame(e){if(e>=this.finishCloseUpUntil||this.finishCloseUpIndex<0||!this.headCacheValid[this.finishCloseUpIndex])return null;let t=this.arcadeInjuries[this.finishCloseUpIndex],n=t===`decapitation`&&this.effects.severedHeadPosition(this.finishCloseUpIndex,this.closeUpTarget),r=!n&&this.effects.partPosition(oH(this.finishCloseUpIndex,`upper_body`),this.closeUpTarget),i=n||r?null:this.graphs?.[this.finishCloseUpIndex]?.fallBody??null;if(this.finishCloseUpBearing===null&&i!==null&&!i.body.asleep&&e-this.finishCloseUpAt.4?u:.9,a)}let d=this.finishCloseUpBearing+l;return this.closeUpPosition.set(L.clamp(s.x+Math.sin(d)*c,-2.2,kq),s.y+(n?.42:o?.5:.75),L.clamp(s.z+Math.cos(d)*c,-2.2,kq)),this.replayLookAt.copy(s),{position:this.closeUpPosition,lookAt:this.replayLookAt,tight:!0}}raiseSpot(e,t){let n=e.x>0?-1:1,r={x:n*Sq,z:0},i=-1/0;for(let[a,o]of Cq){let s=e.x+n*a*Sq,c=e.z+o*Sq,l=Math.min(Eq-Math.abs(s),Eq-Math.abs(c),Math.hypot(s-t.x,c-t.z)-Tq);for(let e of this.graphs??[]){let t=e.fallBody;if(t!==null)for(let e of[0,1,2,3,4])t.bodyPoint(e,this.bodyPoint),l=Math.min(l,Math.hypot(s-this.bodyPoint.x,c-this.bodyPoint.z)-Nq-.05)}for(let e of[0,1])this.effects.severedHeadPosition(e,this.closeUpTarget)&&(l=Math.min(l,Math.hypot(s-this.closeUpTarget.x,c-this.closeUpTarget.z)-Aq-.05));if(l>=0)return{x:s-e.x,z:c-e.z};l>i&&(i=l,r={x:s-e.x,z:c-e.z})}return r}nearerGlove(e,t){e.getWorldPosition(this.stoppageWrist),t.getWorldPosition(this.stoppageOtherWrist);let n=e=>Math.hypot(e.x-this.refereePosition.x,e.z-this.refereePosition.z);return n(this.stoppageOtherWrist)-.5*n.length()}startReplay(e){let t=new FL(e.snapshots.length+2,this.simulation.tick_rate);for(let n of e.snapshots)t.push(n);if(this.replay={plan:e,buffer:t,startedAt:this.frameSeconds,impactFired:!1,side:null},this.drawnOffsetsLive=!1,this.commentary.replay(this.frameSeconds,e.impact),this.replayFollow=0,this.replayFollowAt=0,e.impact.kind===`referee_down`){this.referee?.resetTransient(!1),this.referee?.primeReplayFall(),this.effects.stopGush(2);return}for(let e=this.pendingGore.length-1;e>=0;--e)this.pendingGore[e].event.kind!==`injury`&&this.pendingGore.splice(e,1);for(let e of[0,1]){this.effects.stopGush(e),this.deaths[e]!==null&&this.carnage.undoDeath(e);let t=this.arcadeInjuries[e],n=this.arcadeInjuryEvents[e];t!==null&&n!==null&&(this.replayInjuries[e]={injury:t,event:n},this.restoreInjury(e))}for(let t of this.pendingContacts.splice(0)){let n=t.recipientIndex;t.injury!==null&&(n===0||n===1)&&this.replayInjuries[n]===null&&this.arcadeInjuries[n]===null&&(this.replayInjuries[n]={injury:t.injury,event:t.event}),t.event.event_id!==e.impact.event_id&&(t.injury=null,t.contactTick=1/0,this.pendingContacts.push(t))}let n=e.snapshots[0]?.fighters.findIndex(t=>t.player_id===e.impact.target_id)??-1;n>=0&&e.impact.detail.endsWith(`:head`)&&this.effects.returnMouthpiece(n);let r=this.lastKnockdown?.knockdown.detail===jq;for(let[t,i]of(this.graphs??[]).entries()){let a=this.liveFallTicks[t]??null;i.resetTransient(!1),a!==null&&a>=e.impact.tick-1&&i.primeReplayFall(),t===n&&r&&i.fallToKnee(!0)}this.finalRevealAt=this.frameSeconds+e.durationSeconds+hr(this.final)}endReplay(){let e=this.replay?.plan.impact.kind===`referee_down`;if(this.replay=null,e){this.drawnOffsetsLive=!1;let e=this.buffer.latest();for(let[t,n]of(this.graphs??[]).entries())n.resetTransient(e?.fighters[t]?.is_downed===!0);return}this.drawnOffsetsLive=!1,this.reapplyReplayInjuries();let t=this.buffer.latest();for(let[e,n]of(this.graphs??[]).entries()){let r=t?.fighters[e],i=r!==void 0&&r.player_id===this.flashKnockout?.loserId;n.resetTransient(r?.is_downed===!0||i),i&&n.knockOut()}for(let e of[0,1])this.showDeath(e,0,!0);this.final!==null&&this.presentFinish(this.final)}fireRefereeEvents(e){for(let t=0;te){t+=1;continue}this.pendingRefereeEvents.splice(t,1);let r=this.buffer.latest();n.kind===`referee_down`?(r!==null&&this.fireRefereeFall(n,r),this.eventCallout={text:`THE REFEREE IS DEAD!`,until:this.frameSeconds+uJ},this.refereeReplayAt={at:this.frameSeconds+lJ,impact:n}):n.kind===`referee_hit`?r!==null&&this.punchReferee(n,r,!1):this.referee!==null&&(this.referee.boxer.rig.bones.head.getWorldPosition(this.refereeHead),this.effects.addEvent(n,this.refereeHead,this.settings().reducedMotion))}}punchReferee(e,t,n){let r=this.referee;if(r===null)return;let[i,a]=e.detail.split(`:`),o=t.fighters.findIndex(t=>t.player_id===e.actor_id),s=t.fighters[o],c=s?.action_key?.split(`:`)[1]??null;r.react(`hit`,a===`body`?`body`:`head`,e.direction,i,c,n?Math.max(e.amount,140):e.amount),r.boxer.rig.bones.head.getWorldPosition(this.refereeHead);let l=s===void 0?void 0:cq(s,{...s,x:t.referee.x,y:t.referee.y},this.mapping),u=this.settings().reducedMotion;this.effects.addEvent({...e,kind:n?`knockdown`:`hit`},this.refereeHead,u,l);let d=n||u?null:bY({...e,kind:`hit`}),f=d===null?null:this.refereeMouth();d!==null&&f!==null&&this.effects.gush(2,f.position,f.axis,d.seconds,d.rate,e.event_id);let p=this.refereePunchPower(e);o>=0&&this.graphs?.[o]?.landedHit(e.action_id,!1,p),this.onContact?.(e,p)}fireRefereeFall(e,t,n=!1){let r=this.referee;if(r===null)return;let i=n?this.refereeBlow(e):null;i===null?(r.boxer.rig.bones.head.getWorldPosition(this.refereeHead),this.effects.addEvent({...e,kind:`knockdown`,amount:160,blood:80},this.refereeHead,this.settings().reducedMotion)):this.punchReferee(i,t,!0);let a=this.settings().reducedMotion?null:this.refereeMouth();a!==null&&this.effects.gush(2,a.position,a.axis,MY,NY,e.event_id),r.knockOut(),this.onContact?.(e,!1)}refereePunchPower(e){for(let t=this.history.length-1;t>=0;--t){let n=this.history[t];if(n.tickt.player_id===e.actor_id);return r!==void 0&&r.action_id===e.action_id&&r.action_power===`power`}return!1}refereeBlow(e){if(e.action_id===null)return null;for(let t=this.history.length-1;t>=0;--t){let n=this.history[t],r=n.events.find(t=>t.kind===`referee_hit`&&t.action_id===e.action_id&&t.tick===e.tick);if(r!==void 0)return r;if(n.tick=0?e.fighters[a]:void 0,l=c?.action_key?.split(`:`)??[],u=l[0]??null,d=l[1]??null,f=l[3]===`power`;this.graphs?.[i]?.react(`hit`,r.detail.endsWith(`:body`)?`body`:`head`,r.direction,u,d,r.amount),n.knockdown.detail===`body`&&n.knockdown.tick>r.tick&&this.graphs?.[i]?.windedFor((n.knockdown.tick-r.tick)/this.simulation.tick_rate+.15,DJ(c?.action_key??null)),o.player_id===this.flashKnockout?.loserId&&this.graphs?.[i]?.knockOut(),a>=0&&this.graphs?.[a]?.landedHit(r.action_id,n.blocked,f),r.detail.endsWith(`:head`)&&!this.settings().reducedMotion&&this.knockOutMouthpiece(i,s??r.direction,r.event_id+gY,!0),f&&!n.blocked&&!this.settings().reducedMotion&&this.presentPowerHit(i,r),this.onContact?.(r,f),this.reapplyReplayInjuries(s),this.deaths[i]!=null&&(this.showDeath(i,s??r.direction,!0),this.announceDeath(i));for(let e of this.pendingGore.splice(0))this.presentGore(e.event);for(let t of this.pendingContacts)t.contactTick===1/0&&(t.contactTick=this.replay?.plan.impact.tick??e.tick)}replayFrame(e,t){let[n,r]=e.fighters,i=this.mapping.x(n.x),a=this.mapping.z(n.y),o=this.mapping.x(r.x),s=this.mapping.z(r.y),c=this.replay?.plan.impact.kind===`referee_down`,l=e.fighters.findIndex(e=>e.player_id===this.replay?.plan.impact.target_id),u=this.replay?.impactFired===!0&&l>=0&&this.headCacheValid[l]===!0;if(c&&this.referee!==null)return this.refereeReplayFrame(e,t);let d=1-Math.exp(-3*Math.max(0,t-this.replayFollowAt));this.replayFollowAt=t,this.replayFollow+=(+!!u-this.replayFollow)*d;let f=l<0?0:Math.max(this.portraitPull>1.3?.7:0,this.replayFollow*.8),p=u?this.headCache[l].x:l===1?o:i,m=u?this.headCache[l].z:l===1?s:a,h=(i+o)/2+(p-(i+o)/2)*f,g=(a+s)/2+(m-(a+s)/2)*f,_=-(s-a),v=o-i,y=Math.hypot(_,v)||1;_/=y,v/=y;let b=2.5,x=this.replay;x!==null&&x.side===null&&(x.side=vY(h,g,_,v,b,kq));let S=x?.side??(v<0?-1:1);_*=S,v*=S;let C=.35*Math.sin(t*.7),w=_*Math.cos(C)-v*Math.sin(C),T=_*Math.sin(C)+v*Math.cos(C);this.replayCameraPosition.set(L.clamp(h+w*b,-2.2,kq),1.38-Math.min(.25,t*.05),L.clamp(g+T*b,-2.2,kq));let E=Math.hypot(this.replayCameraPosition.x-h,this.replayCameraPosition.z-g),D=Math.hypot(h,g);if(E<_Y&&D>.01){let e=_Y-E;this.replayCameraPosition.x=L.clamp(this.replayCameraPosition.x-h/D*e,-2.2,kq),this.replayCameraPosition.z=L.clamp(this.replayCameraPosition.z-g/D*e,-2.2,kq)}let O=u?L.clamp(this.headCache[l].y,.45,1.28):1.28;this.replayLookAt.set(h,1.28+(O-1.28)*this.replayFollow,g);let k=this.settings().reducedMotion?0:this.powerShake;if(k>5e-4){let e=t*61;this.replayCameraPosition.x=L.clamp(this.replayCameraPosition.x+Math.sin(e*1.31)*k,-2.2,kq),this.replayCameraPosition.y+=Math.cos(e*1.97)*k*.6,this.replayLookAt.x+=Math.sin(e*1.53)*k*.5,this.replayLookAt.y+=Math.cos(e*2.11)*k*.35}return{position:this.replayCameraPosition,lookAt:this.replayLookAt,tight:!0}}setInputLatency(e){this.inputLatencyMs=e,this.lagWarned=_r(e,this.lagWarned)}resyncClock(){this.buffer.resync()}setReconnect(e){this.reconnectMs=e}setBloodLevel(e){e!==`full`&&this.bloodLevel===`full`&&this.restoreAllInjuries(),this.bloodLevel=e,e===`off`&&this.downedPoolAccumulators.fill(0),this.effects.setBloodLevel(e)}setReducedMotion(e){e&&(this.restoreAllInjuries(),this.effects.clearDynamic())}syncInjuryPresentation(e){let t=this.arcadeInjuries[e],n=this.graphs;if(n!==null){let r=n[e];t===`head_burst`?r.boxer.setHeadBurst(!0):r.boxer.setDecapitated(t===`decapitation`),r.boxer.headInjury.setEyeOut(t===`eye_left`||t===`eye_right`?`both`:null),r.boxer.setHandDismembered(`left`,t===`dismember_left`),r.boxer.setHandDismembered(`right`,t===`dismember_right`);let i=t===`jaw_dislocation`?`jaw`:t===`shoulder_left`||t===`shoulder_right`?t:null;r.setArcadeDislocation(i)}}applyArcadeInjury(e,t,n,r){t===`dismember_left`&&!this.carnage.hasGlove(e,`left`)?t=`ribs_left`:t===`dismember_right`&&!this.carnage.hasGlove(e,`right`)?t=`ribs_right`:(t===`eye_left`&&this.carnage.eyeBurst(e,`left`)||t===`eye_right`&&this.carnage.eyeBurst(e,`right`))&&(t=`jaw_dislocation`);let i=!1;if(t===`decapitation`){let t=this.headWorldPose(e);if(t!==null){let a=this.graphs?.[e],o=a===void 0?void 0:uY(a.boxer,t.position,t.quaternion);this.effects.decapitate(e,t.position,t.quaternion,r??n.direction,n.event_id,this.skinColor(e),o);let s=this.stumpWorldPose(e);s!==null&&this.effects.anchorStump(e,s.position,s.quaternion,s.rim,s.across),i=!0}}else if(t===`head_burst`){let t=this.headWorldPose(e);if(t!==null){this.effects.burstHead(e,t.position,r??n.direction,n.event_id);let a=this.burstStumpPose(e);a!==null&&this.effects.anchorStump(e,a.position,a.quaternion,a.rim,a.across),i=!0}}else if(t===`eye_left`||t===`eye_right`){let a=this.graphs?.[e]?.boxer,o=t===`eye_left`?`left`:`right`;if(a!==void 0&&YY(a,o,this.tmpPart,this.tmpStumpOffset,this.tmpPartQuaternion)){let t=r??n.direction;this.effects.gougeEye(e,this.tmpPart,this.tmpStumpOffset,t,n.event_id,o);let s=o===`left`?`right`:`left`;!this.effects.eyeOut(e,s)&&!this.carnage.eyeBurst(e,s)&&YY(a,s,this.tmpPart,this.tmpStumpOffset,this.tmpPartQuaternion)&&this.effects.spawnDebris(`eye`,this.tmpPart,t,1,n.event_id,FY,e),i=!0}}else if(t===`dismember_left`||t===`dismember_right`){let a=t===`dismember_left`?`left`:`right`,o=this.handWorldPose(e,a);if(o!==null){let t=this.graphs?.[e],s=t===void 0?void 0:{...lY(t.boxer.gloveMesh(a),o.position,o.quaternion),gloveBlood:t.boxer.gloveBloodLevel};this.effects.dismemberHand(e,a,o.position,o.quaternion,r??n.direction,n.event_id,this.gearColor(e),s),this.effects.anchorHandStump(e,a,o.position,o.quaternion),i=!0}}else if(t===`jaw_dislocation`||t===`shoulder_left`||t===`shoulder_right`||t===`ribs_left`||t===`ribs_right`){let a=this.tornWound(e,RY(t));a!==null&&(this.effects.tearOpen(e,a.position,a.axis,r??n.direction,n.event_id,t===`jaw_dislocation`?PY:0),i=!0)}return i?(this.arcadeInjuries[e]=t,this.arcadeInjuryEvents[e]=n,this.observedInjuryDown[e]=!1,this.syncInjuryPresentation(e),this.onArcadeInjury?.(t,n),!0):!1}reapplyReplayInjuries(e){for(let t of[0,1]){let n=this.replayInjuries[t];if(n===null)continue;this.replayInjuries[t]=null;let r=this.settings();r.blood!==`full`||r.reducedMotion||this.applyArcadeInjury(t,n.injury,{...n.event,event_id:n.event.event_id+gY},e)}}restoreInjury(e){this.arcadeInjuries[e]!==null&&(this.arcadeInjuries[e]=null,this.arcadeInjuryEvents[e]=null,this.observedInjuryDown[e]=!1,this.syncInjuryPresentation(e),this.effects.restoreFighter(e))}restoreAllInjuries(){this.restoreInjury(0),this.restoreInjury(1),this.effects.clearArcadeGore()}headWorldPose(e){let t=this.graphs,n=t===null?null:t[e].boxer.bone(`head`);return n===null||t===null?null:(t[e].boxer.root.updateMatrixWorld(!0),n.getWorldPosition(this.tmpHead),n.getWorldQuaternion(this.tmpHeadQuaternion),this.tmpStumpOffset.copy(zJ).applyQuaternion(this.tmpHeadQuaternion),this.tmpHead.add(this.tmpStumpOffset),{position:this.tmpHead,quaternion:this.tmpHeadQuaternion})}handWorldPose(e,t){let n=this.graphs,r=n===null?null:n[e].boxer.bone(t===`left`?`gloveL`:`gloveR`);return r===null||n===null?null:(n[e].boxer.root.updateMatrixWorld(!0),r.getWorldPosition(this.tmpPart),r.getWorldQuaternion(this.tmpPartQuaternion),{position:this.tmpPart,quaternion:this.tmpPartQuaternion})}gearColor(e){return this.graphs?.[e]?.boxer.gearBaseColor.getHex()??1920728}skinColor(e){return this.graphs?.[e]?.boxer.skinBaseColor.getHex()??11563071}stumpWorldPose(e){let t=this.graphs?.[e]?.boxer,n=t?.bone(`head`);if(t===void 0||n==null)return null;t.root.updateMatrixWorld(!0);let r=t.headMesh,i=HJ(r.geometry);if(i.length===0)return null;this.stumpRim.length!==i.length*3&&(this.stumpRim=new Float32Array(i.length*3)),this.tmpStump.set(0,0,0);for(let[e,n]of i.entries())tY(t,n,this.tmpStumpOffset),this.tmpStumpOffset.toArray(this.stumpRim,e*3),this.tmpStump.add(this.tmpStumpOffset);return this.tmpStump.multiplyScalar(1/i.length),n.getWorldPosition(this.tmpStumpOffset).sub(this.tmpStump).normalize(),this.tmpStumpAcross.set(1,0,0).applyQuaternion(n.getWorldQuaternion(this.tmpStumpQuaternion)),this.tmpStumpQuaternion.setFromUnitVectors(BJ,this.tmpStumpOffset),{position:this.tmpStump,quaternion:this.tmpStumpQuaternion,rim:this.stumpRim,across:this.tmpStumpAcross}}burstStumpPose(e){let t=this.graphs?.[e]?.boxer;if(t===void 0)return null;let n=KJ(t,this.stumpRim,this.burstStump);return n===null?null:(this.stumpRim=n,{position:this.burstStump.position,quaternion:this.burstStump.quaternion,rim:n,across:this.burstStump.across})}predictAction(e){let t=this.buffer.latest();if(t===null||this.viewerId===null||this.replay!==null)return;let n=t.fighters.findIndex(e=>e.player_id===this.viewerId);if(n<0)return;let r=t.fighters[n];if(t.phase!==`fight`&&t.phase!==`finish`||!SY(r))return;let i=(this.inputLatencyMs??60)/1e3*this.simulation.tick_rate,a=i+this.buffer.interpolationDelayTicks,o=this.manualClock?this.lastManualTime:performance.now(),s=this.graphs?.[n];if(Mz(e.kind)){let n=s?.ownPunchActive===!0;if(e.id===void 0||r.stamina0||!n&&hz(r,t.tick)>0)return;let i=n?s.ownTicksToRecovery:0;n&&s.cutOwnRecovery(),this.evasion.press(e.kind,e.id,o,a,this.simulation.tick_rate,y+de(r.style).evasionTicks,o+i*1e3/this.simulation.tick_rate);return}if(e.kind!==`punch`)return;this.evasion.drop(o)&&s?.keepOwnRecovery();let c=Ne(r.injuries,e.hand);c!==null&&s?.predict(c===e.hand?e:{...e,hand:c},performance.now()/1e3,this.simulation.tick_rate,a,mz(r,e,t.tick+1),i)}acknowledgeActions(e,t){for(let[n,r]of e.fighters.entries()){let i=r.player_id===this.viewerId,a=e.phase===`fight`||e.phase===`finish`;i&&this.evasion.acknowledge(r,a,this.inputSequenceOf)&&this.graphs?.[n]?.keepOwnRecovery();let o=t.filter(t=>sq(t,e).puncherIndex===n);this.graphs?.[n]?.acknowledge(r,a,o,i?this.inputSequenceOf:null)}}push(e){if(!this.buffer.push(e,this.manualClock?this.lastManualTime:performance.now()))return;let t=this.dedupe.accept(e.events);this.acknowledgeActions(e,t),this.history.push(e),this.history.length>dq&&this.history.shift();for(let n of t){if(this.roundStats.record(n,t),n.kind===`knockdown`){let r=t.find(e=>lq(e)&&e.target_id===n.target_id&&e.tick===n.tick)??(n.detail===`body`?this.recordedHit(n):null),i=r!==null&&lr(r,e.events);this.lastKnockdown={knockdown:n,hit:r,blocked:i,finisher:i?null:CY(r,e)};let a=e.fighters.findIndex(e=>e.player_id===n.target_id);this.graphs?.[a]?.fallToKnee(n.detail===jq),n.detail===Mq&&(this.lastKnockdown=null)}if(n.kind===`result`&&n.detail===`flash_ko`){let e=t.findLast(e=>(e.kind===`hit`||e.kind===`counter_hit`)&&e.actor_id===n.actor_id)??null;e!==null&&e.target_id!==null&&(this.flashKnockout={hitEventId:e.event_id,loserId:e.target_id},this.lastKnockdown={knockdown:{...e,kind:`knockdown`},hit:e,blocked:!1,finisher:null})}n.kind===`referee_break`&&this.referee?.breakClinch(),(fJ.has(n.kind)||n.kind===`bleed`&&n.actor_id===`referee`)&&this.pendingRefereeEvents.push(n),n.kind===`box`&&(this.eventCallout={text:`BOX!`,until:this.frameSeconds+cJ}),n.kind===`body_collapse`&&n.target_id===this.viewerId&&(this.ownCollapseUntil=n.tick+n.amount),n.kind===`finish_him`&&(this.finishTargetId=n.target_id),(n.kind===`fatality`||n.kind===`death`)&&this.noteDeath(n,t,e),this.movement.observe(n,this.viewerId)}this.commentary.observe(e,t,this.players,this.simulation.tick_rate,this.frameSeconds);let n=e.fighters.findIndex(e=>e.player_id===this.viewerId),r=e.result===null&&!t.some(e=>e.kind===`knockdown`);for(let{event:i,presentationEvent:a,presentImpact:o,reactAmount:s}of TJ(t,e)){let t=e.fighters.findIndex(e=>e.player_id===i.target_id),c=e.fighters.findIndex(e=>e.player_id===i.actor_id),{recipientIndex:l,puncherIndex:u}=sq(i,e),d=e.fighters[l]??e.fighters[t]??e.fighters[c]??e.fighters[0];if(qJ(this.graphs?.[e.fighters.indexOf(d)],d,this.mapping,this.contactPoint),aJ.has(i.kind)){let t=u>=0?e.fighters[u]:null;this.pendingContacts.push({event:i,presentationEvent:a,presentImpact:o,reactAmount:s,contactTick:r&&u===n&&sJ.has(i.kind)&&this.graphs?.[u]?.pressLanded(i.action_id)===!0?-1/0:t?.action_contact_tick??i.tick,recipientIndex:l,puncherIndex:u,injury:PJ(i,e.fighters[l],e.result,t??void 0),power:t!==null&&t.action_id===i.action_id&&t.action_power===`power`})}else i.kind===`bleed`&&i.actor_id!==`referee`&&this.effects.addEvent(i,this.contactPoint,this.settings().reducedMotion)}for(let n of t){if(!gJ.has(n.kind))continue;let t=n.action_id===null?void 0:this.pendingContacts.find(e=>e.event.tick===n.tick&&e.event.action_id===n.action_id&&(lq(e.event)||uq(e.event)));t!==void 0&&(t.injury??=xJ(n)),n.kind!==`fatality`&&(this.pendingGore.push({event:n,at:t?.contactTick??n.tick}),n.kind===`injury`&&he(n.detail)&&this.carnage.expect(e.fighters.findIndex(e=>e.player_id===n.target_id),n.detail))}}fireContacts(e){for(let t=0;te){t+=1;continue}this.pendingContacts.splice(t,1);let{event:r,presentationEvent:i,reactAmount:a,recipientIndex:o,puncherIndex:s,injury:c}=n,l=n.presentImpact&&!SJ(i),u=this.buffer.latest()?.fighters[o],d=cq(this.buffer.latest()?.fighters[s],u,this.mapping);this.presentFightEvent(r,o,s),l&&u!==void 0&&(this.contactOn(o,u,i.detail.endsWith(`:body`),d,i.direction),this.effects.addEvent(i,this.contactPoint,this.settings().reducedMotion,d));let f=this.settings();if(n.power&&l&&lq(r)&&u!==void 0&&!f.reducedMotion&&this.presentPowerHit(o,i),(n.presentImpact||oJ.has(r.kind))&&this.arena.excite(iJ[r.kind]??0),l&&o>=0&&[`hit`,`counter_hit`,`knockdown`].includes(r.kind)){let e=this.viewerId!==null&&this.buffer.latest()?.fighters[o]?.player_id===this.viewerId;this.viewerHitFlash=Math.max(this.viewerHitFlash,yY(r,e,f.blood))}c!==null&&o>=0&&this.arcadeInjuries[o]===null&&f.blood===`full`&&!f.reducedMotion&&this.applyArcadeInjury(o,c,r,d);let p=this.graphs;l&&o>=0&&!f.reducedMotion&&xH(r.kind,r.amount,i.detail.endsWith(`:head`))&&this.knockOutMouthpiece(o,d??i.direction,r.event_id,!1);let m=l&&!f.reducedMotion?bY(r):null;m!==null&&o>=0&&this.gushFromMouth(o,r.event_id,m.seconds,m.rate),n.presentImpact&&o>=0&&r.kind===`knockdown`&&!f.reducedMotion&&this.gushFromMouth(o,r.event_id,MY,NY);let h=l&&o>=0?F_(r.kind,r.amount,i.detail.endsWith(`:head`)):0;if(h>0&&!f.reducedMotion&&f.blood!==`off`){let e=this.headWorldPose(o);e!==null&&(this.mouthPoint.set(0,-.07,.1).applyQuaternion(e.quaternion).add(e.position),this.effects.spawnTeeth(this.mouthPoint,d??i.direction,h,r.event_id))}if(l&&o>=0&&a!==null&&[`hit`,`counter_hit`,`block`,`perfect_block`,`knockdown`].includes(r.kind)){let e=r.kind===`block`||r.kind===`perfect_block`,t=i.detail.endsWith(`:body`)?`body`:`head`;if(p!==null){let n=(s>=0?this.buffer.latest()?.fighters[s]:void 0)?.action_key?.split(`:`)??[],c=n[0]??i.detail.split(`:`)[0]??null,l=n[1]??null;p[o].react(e?`block`:`hit`,t,i.direction,c,l,a),lq(r)&&t===`head`&&l!==null&&this.carnage.punched(o,l===`left`?`right`:`left`,r.event_id),lq(r)&&l!==null&&this.carnage.land(o,s,l,t,r.amount,r.blood,this.contactPoint,r.event_id,d??i.direction),this.flashKnockout?.hitEventId===r.event_id&&p[o].knockOut()}}l&&s>=0&&[`hit`,`counter_hit`,`block`,`perfect_block`,`guard_break`].includes(r.kind)&&p?.[s]?.landedHit(r.action_id,r.kind===`block`||r.kind===`perfect_block`,n.power),(n.presentImpact||!lq(r))&&this.onContact?.(r,n.power===!0)}this.replay===null&&this.fireRefereeEvents(e);let t=this.refereeReplayAt;if(t!==null&&this.replay===null&&this.frameSeconds>=t.at){this.refereeReplayAt=null;let e=MK(this.history,t.impact,this.simulation.tick_rate,jK.speed,jK.before,jK.after),n=this.buffer.latest(),r=e!==null&&n!==null&&n.phase===`referee_down`&&n.phase_ticks_remaining/this.simulation.tick_rate>=e.durationSeconds-.5;e!==null&&r&&!this.settings().reducedMotion&&this.startReplay(e)}}fireGore(e){for(let t=0;te?t+=1:(this.pendingGore.splice(t,1),this.presentGore(n.event))}}presentGore(e){let t=this.buffer.latest()?.fighters,n=t?.findIndex(t=>t.player_id===(e.kind===`vomit`?e.actor_id:e.target_id))??-1;if(t===void 0||n<0)return;let r=cq(e.actor_id===e.target_id?void 0:t.find(t=>t.player_id===e.actor_id),t[n],this.mapping)??e.direction;if(e.kind===`vomit`)this.carnage.vomit(n,e.event_id),this.onGore?.({kind:`vomit`});else if(e.kind===`finish_him`)this.arena.excite(1),this.onGore?.({kind:`finish_him`});else if(e.kind===`death`)this.showDeath(n,r,!1),this.announceDeath(n);else if(e.kind===`injury`&&he(e.detail)){let i=e.detail;if(!this.carnage.inflict(n,i,e.event_id,r,e.tick))return;this.eventCallout={text:`${Ee(i)}!`,until:this.frameSeconds+_J},this.arena.excite(yJ);let a=this.viewerId!==null&&t[n].player_id===this.viewerId;this.settings().blood!==`off`&&(this.viewerHitFlash=Math.max(this.viewerHitFlash,a?1:.5)),this.settings().reducedMotion||(this.powerShake=Math.min(mJ,this.powerShake+pJ)),this.onGore?.({kind:`injury`,injury:i})}}showDeath(e,t,n){let r=this.deaths[e]??null;if(r===null)return;let i=this.fatal?.index===e?this.fatal:null,a=(i?.hit.event_id??e)+(n?gY:0);i===null?r===`gutted`&&this.carnage.fatality(e,`gutting`,a,t):this.carnage.fatality(e,i.fatality,a,t),this.carnage.die(e,r)}announceDeath(e){let t=this.deaths[e]??null;if(t===null)return;let n=ke(t);this.eventCallout={text:`${Ae(t)}!`,until:this.frameSeconds+vJ},this.arena.excite(1),this.settings().reducedMotion||(this.powerShake=mJ),n!==null&&this.onGore?.({kind:`fatality`,fatality:n}),this.onGore?.({kind:`death`,cause:t})}noteDeath(e,t,n){let r=n.fighters.findIndex(t=>t.player_id===e.target_id);if(r!==0&&r!==1)return;let i=e.action_id===null?null:t.find(t=>lq(t)&&t.tick===e.tick&&t.action_id===e.action_id&&t.target_id===e.target_id)??null;if(e.kind===`fatality`){i!==null&&ge.includes(e.detail)&&(this.fatal={index:r,fatality:e.detail,hit:i});return}let a=Oe(e.detail);a!==null&&(this.deaths[r]=a,i===null?this.lastKnockdown=null:(this.flashKnockout={hitEventId:i.event_id,loserId:n.fighters[r].player_id},this.lastKnockdown={knockdown:{...i,kind:`knockdown`},hit:i,blocked:!1,finisher:null}))}presentFightEvent(e,t,n){let r=hJ[e.kind];r!==void 0&&(this.eventCallout={text:r.text,until:this.frameSeconds+r.seconds});let i=this.graphs;if(!(i===null||t<0)&&(e.kind===`parry`&&i[t]?.stagger(),e.kind===`body_collapse`)){let r=n>=0?this.buffer.latest()?.fighters[n]:void 0;i[t]?.windedFor(e.amount/this.simulation.tick_rate+.15,DJ(r?.action_key??null))}}recordedHit(e){if(e.action_id===null)return null;for(let t=this.history.length-1;t>=0;--t){let n=this.history[t].events.find(t=>(t.kind===`hit`||t.kind===`counter_hit`)&&t.action_id===e.action_id&&t.target_id===e.target_id);if(n!==void 0)return n}return null}enterRest(e){this.restStartedAt=e,this.effects.clearMouthpieces()}contactOn(e,t,n,r,i){let a=n?null:this.headWorldPose(e),o=n?this.graphs?.[e]?.boxer.rig.bones.upperChest:void 0,s=a?.position??o?.getWorldPosition(this.contactPoint)??null;if(s===null)return qJ(this.graphs?.[e],t,this.mapping,this.contactPoint);let c=r??{x:i<0?-1:1,z:0},l=n?LY:IY;return this.contactPoint.set(s.x-c.x*l,s.y,s.z-c.z*l)}gushFromMouth(e,t,n,r){let i=this.tornWound(e,`mouth`);i!==null&&this.effects.gush(e,i.position,i.axis,n,r,t)}anchorGush(e){if(!this.effects.gushing(e)||this.carnage.vomiting(e))return;let t=this.tornWound(e,RY(this.arcadeInjuries[e]??null));t!==null&&this.effects.anchorGush(e,t.position,t.axis)}tornWound(e,t){if(t===`mouth`){let t=this.headWorldPose(e);return t===null?null:{position:this.woundPoint.copy(AY).applyQuaternion(t.quaternion).add(t.position),axis:this.woundAxis.copy(jY).applyQuaternion(t.quaternion)}}let n=this.graphs?.[e]?.boxer;if(n===void 0)return null;n.root.updateMatrixWorld(!0);let r=n.rig.bones,i=t===`shoulder_left`||t===`ribs_left`,a=r.shoulderL.getWorldPosition(this.woundAxis).sub(r.shoulderR.getWorldPosition(this.tmpStumpOffset)).normalize().multiplyScalar(i?1:-1),o=r.upperChest.getWorldPosition(this.tmpStump),s=this.tmpStumpOffset.copy(o).sub(r.hips.getWorldPosition(this.tmpStumpAcross)).normalize();return t===`ribs_left`||t===`ribs_right`?{position:this.woundPoint.copy(o).addScaledVector(a,UY).addScaledVector(s,-.06),axis:a}:((i?r.shoulderL:r.shoulderR).getWorldPosition(this.woundPoint),{position:this.woundPoint,axis:a.addScaledVector(s,.5).normalize()})}refereeMouth(){let e=this.referee?.boxer.rig.bones.head;return e===void 0?null:(e.getWorldPosition(this.tmpHead),e.getWorldQuaternion(this.tmpHeadQuaternion),this.tmpHead.add(this.tmpStumpOffset.copy(zJ).applyQuaternion(this.tmpHeadQuaternion)),{position:this.woundPoint.copy(AY).applyQuaternion(this.tmpHeadQuaternion).add(this.tmpHead),axis:this.woundAxis.copy(jY).applyQuaternion(this.tmpHeadQuaternion)})}knockOutMouthpiece(e,t,n,r){let i=this.headWorldPose(e);i!==null&&(this.mouthPoint.set(0,-.075,.1).applyQuaternion(i.quaternion).add(i.position),this.effects.ejectMouthpiece(e,this.mouthPoint,i.quaternion,t,n,this.gearColor(e),r))}get resultVisible(){return this.final!==null&&this.frameSeconds>=this.finalRevealAt}get resolutionScale(){return this.scaler.scale}get diagnostics(){let e=this.renderer.getContext(),t=e.getExtension(`WEBGL_debug_renderer_info`),n=t===null?e.getParameter(e.RENDERER):e.getParameter(t.UNMASKED_RENDERER_WEBGL);return{frameMs:this.frameMsAverage,resolutionScale:this.scaler.scale,gpu:this.memoryInfo,graphics:String(n)}}get memoryInfo(){return{geometries:this.renderer.info.memory.geometries,textures:this.renderer.info.memory.textures,programs:this.renderer.info.programs?.length??0}}applyResolutionScale(){let e=this.basePixelRatio*this.scaler.scale;this.renderer.setPixelRatio(e),this.composer.setPixelRatio(e);let t=this.scaler.scale<=fq;this.bloomPass.enabled=!t,this.keyLight!==null&&oq(this.keyLight.shadow,t,this.scaler.scale<.8?1024:2048),this.arena.setLowTier(t),this.effects.setLowTier(t)}setupLights(){let e=new Md(`#33416c`,`#3b2c20`,.6);this.scene.add(e),this.lights.push(e);let t=new Kd(`#fff0da`,185,26,.56,.6,1.7);t.position.set(.9,7.2,4.4),t.target.position.set(0,.6,0),t.castShadow=!0,t.shadow.mapSize.set(2048,2048),t.shadow.bias=rq,t.shadow.camera.near=3,t.shadow.camera.far=14,this.keyLight=t,this.scene.add(t,t.target),this.lights.push(t);let n=new Kd(`#cfdcff`,55,24,.6,.7,1.7);n.position.set(-3.6,5.5,2.2),n.target.position.set(0,.8,0),this.scene.add(n,n.target),this.lights.push(n);for(let[e,t,n,r]of[[`#a9c0ff`,-5.2,3.4,-4.6],[`#9db4ff`,5.2,3.4,-4.6]]){let i=new Kd(e,170,30,.6,.9,1.8);i.position.set(t,n,r),i.target.position.set(0,1.2,0),this.scene.add(i,i.target),this.lights.push(i)}let r=new Kd(`#e4ecff`,85,22,.3,.8,1.5);r.position.set(0,6.4,-4.4),r.target.position.set(0,1,0),this.scene.add(r,r.target),this.lights.push(r),this.followSpot=r}draw(e,t=!1,n=!0){if(this.destroyed)return;let r=e-this.previous,i=t?1/60:Math.min(.05,Math.max(.001,r/1e3));this.previous=e,!t&&this.scaler.record(r)&&this.applyResolutionScale(),!t&&r>0&&r<1e3&&(this.frameMsAverage+=(r-this.frameMsAverage)*.05);let a=Math.min(this.pixelRatioCap,window.devicePixelRatio||1);a!==this.basePixelRatio&&(this.basePixelRatio=a,this.applyResolutionScale());let o=this.canvas.clientWidth,s=this.canvas.clientHeight;o>0&&s>0&&(this.renderer.getSize(this.sizeCheck),(this.sizeCheck.x!==o||this.sizeCheck.y!==s)&&(this.renderer.setSize(o,s,!1),this.composer.setSize(o,s),this.camera.aspect=o/s,this.portraitPull=L.clamp(1.2/this.camera.aspect,1,2.2),this.baseFov=36*Math.min(1.3,Math.sqrt(this.portraitPull)),this.camera.fov=this.baseFov,this.camera.updateProjectionMatrix()));let c=e/1e3;this.frameSeconds=c,this.finishPass.uniforms.uTime.value=c%1e3,t&&(this.lastManualTime=e);let l=this.settings();this.setBloodLevel(l.blood);let u=this.buffer.latest(),d=i,f=u?.result!==null&&u?.result!==void 0&&fr.has(u.result.finish_method);if(this.cheer(c,i),f&&!this.finishSeen&&(this.finishSeen=!0,this.finishSlowMotion=2.2,this.arena.excite(1)),this.finishSlowMotion>0&&!l.reducedMotion){this.finishSlowMotion=Math.max(0,this.finishSlowMotion-i);let e=Math.min(1,this.finishSlowMotion/.5);i*=.3+.7*(1-e)}this.viewerHitFlash=Math.max(0,this.viewerHitFlash-i*3.2);let p=u===null?0:t?OJ(u):this.buffer.renderTick(e),m=this.updateRocked(u===null?null:this.shownAt(p),d,l.reducedMotion);m!==null&&u!==null&&this.onRocked?.(m,u.tick);let h=u===null?null:this.applyLocalPrediction(this.buffer.sample(p),i,e),g=this.replay;if(g!==null){let e=c-g.startedAt;e>=g.plan.durationSeconds||g.plan.impact.kind===`referee_down`&&u?.phase!==`referee_down`?this.endReplay():(p=NK(g.plan,e,this.simulation.tick_rate),h=g.buffer.sample(p)??h,!g.impactFired&&p>=g.plan.impact.tick&&h!==null&&(g.impactFired=!0,this.fireReplayImpact(h)))}let _=this.replay===null?i:i*this.replay.plan.speed,v=1.8,y=!1,b=null;if(h!==null){let e=this.replay===null?this.ceremony:null,[t,n]=e===null?this.standApart(h.fighters,_):this.ceremonyFighters(e,h.fighters,_,c,this.drawnOffsets);for(let[e,t]of h.fighters.entries())this.arcadeInjuries[e]!==null&&this.replay===null&&(t.is_downed?this.observedInjuryDown[e]=!0:this.observedInjuryDown[e]&&h.result===null&&this.restoreInjury(e));let r=this.graphs;if(r!==null){this.wearLook(0,t.player_id),this.wearLook(1,n.player_id);let e=this.headCacheValid[0]?this.headCache[0]:void 0,i=this.headCacheValid[1]?this.headCache[1]:void 0;r[0].boxer.root.visible=!0,r[1].boxer.root.visible=!0;let a=$K(h,this.simulation.tick_rate);r[0].setResting(a),r[1].setResting(a);let o=h.phase===`countdown`?h.phase_ticks_remaining:null;r[0].setCountdown(o),r[1].setCountdown(o);let s=this.replay!==null||h.phase===`complete`;r[0].stayDown(s),r[1].stayDown(s),h.phase===`fight`&&this.lastPhase===`rest`&&this.replay===null&&(this.roundCalloutUntil=c+pq,this.roundCalloutRound=h.round_number),h.phase===`rest`&&this.lastPhase!==`rest`&&this.enterRest(c),this.lastPhase=h.phase,this.anticipatePunches(u,p),r[0].setObstacle(r[1].boxer.root.position.x,r[1].boxer.root.position.z),r[1].setObstacle(r[0].boxer.root.position.x,r[0].boxer.root.position.z);let d=this.referee?.boxer.rig.bones.head.getWorldPosition(this.refereeHead)??null;r[0].setRefereeHead(d),r[1].setRefereeHead(d),r[0].update(t,n,_,c,l.reducedMotion,l.blood,p,i),r[1].update(n,t,_,c,l.reducedMotion,l.blood,p,e);let f=h.phase===`finish`?Dr(h.fighters,this.finishTargetId):null;for(let[e,t]of h.fighters.entries()){let n=f!==null&&t.player_id===f.player_id;r[e].setDazed(n),this.carnage.sync(e,(this.replay===null?void 0:u?.fighters[e])??t,l,_,c,n)}let m=r[h.fighters.findIndex(e=>e.player_id===this.viewerId)],g=m?.ownPressId??null;if(m!==void 0&&g!==null&&g!==this.soundedPress){this.soundedPress=g;let{punchClass:e,power:t}=m.punchKind;this.onOwnPunch?.(e,t,g)}for(let[e,t]of r.entries()){let n=t.boxer.bone(`head`);n!==null&&(t.boxer.root.updateMatrixWorld(!0),n.getWorldPosition(this.headCache[e]),this.headCacheValid[e]=!0);let r=t.fallBody!==null;r&&!this.fallingLive[e]&&this.replay===null&&(this.liveFallTicks[e]=p),this.fallingLive[e]=r}}for(let e=0;ee.player_id===this.viewerId),C=l.camera===`fighter`&&S>=0&&QK(h)?this.fighterCam.update(i,c,S===0?this.tmpA:this.tmpB,S===0?this.tmpB:this.tmpA,this.effects.shakeAmount+this.powerShake,l.reducedMotion,this.camera.aspect):null;C===null&&this.fighterCam.reset();let w=this.replay,T=this.cameraOverride??(w!==null&&h!==null?this.replayFrame(h,c-w.startedAt):this.closeUpFrame(c)??this.raiseFrame(c,i,l.reducedMotion)??this.cornerShotFrame(c,h,l.reducedMotion)??this.restWideFrame(h)??this.ceremonyFrame(c)??C??x);this.ownViewActive=C!==null&&T===C;let E=this.ownViewActive?this.baseFov*FB:this.baseFov;if(this.camera.fov!==E&&(this.camera.fov=E,this.camera.updateProjectionMatrix()),this.cameraOverride===null&&this.portraitPull>1&&T.framed!==!0&&!this.ownViewActive){let e=T.tight===!0,t=this.portraitPull/Math.min(1.3,Math.sqrt(this.portraitPull)),n=e?Math.min(t,1.25):t;this.tmpCamera.subVectors(T.position,T.lookAt).multiplyScalar(n),this.camera.position.copy(T.lookAt).add(this.tmpCamera),e&&(this.camera.position.x=L.clamp(this.camera.position.x,-2.2,kq),this.camera.position.z=L.clamp(this.camera.position.z,-2.2,kq)),this.camera.lookAt(T.lookAt.x,T.lookAt.y-(this.portraitPull-1)*(e?.08:.45),T.lookAt.z)}else this.camera.position.copy(T.position),this.camera.lookAt(T.lookAt);this.effects.setViewDistance(this.camera.position.distanceTo(T.lookAt)),this.arena.makeRoomForCamera(this.camera.position);let D=T===x?yC(Math.max(this.tmpA.z,this.tmpB.z)):T.framed===!0?Xq:1;this.ring.setNearRopeOpacity(this.ring.nearRopeOpacity()+(D-this.ring.nearRopeOpacity())*(1-Math.exp(-6*i))),n&&(this.composer.render(),this.bloomPass.enabled&&this.carnage.drawBreak(this.renderer,this.scene,this.camera,this.arena.group),this.drawHudOverlay(h)),!this.destroyed&&!this.manualClock&&(this.raf=requestAnimationFrame(e=>this.draw(e)))}applyLocalPrediction(e,t,n){if(e===null||this.localInput===null||this.viewerId===null)return e;let r=e.fighters.findIndex(e=>e.player_id===this.viewerId),i=this.localInput()??{moveX:0,moveY:0,defense:`none`},a=(this.inputLatencyMs??60)/1e3*this.simulation.tick_rate+this.buffer.interpolationDelayTicks,o=this.ownCollapseUntil>e.tick,s=e.phase===`fight`||e.phase===`finish`&&r>=0&&Dr(e.fighters,this.finishTargetId)!==e.fighters[r],c=r>=0&&s&&!o?e.fighters[r]:null,l=this.evasion.holdsFeet(n)?0:this.graphs?.[r]?.ownFootwork??1,u=this.movement.update(c,i,l,n,a,e.tick,t,this.simulation.tick_rate),d=this.evasion.pose(n);if(r<0)return e;let f=e.fighters[r],p=c===null?f.defense:Nz(c,i,d,this.evasion.hidesServerEvasion(n));if(Math.abs(u.dx)<.01&&Math.abs(u.dy)<.01&&p===f.defense)return e;let m=jz(f,u,e.fighters[+(r===0)]??null),h={...f,x:f.x+m.dx,y:f.y+m.dy,defense:p},g=r===0?[h,e.fighters[1]]:[e.fighters[0],h];return{...e,fighters:g}}anticipatePunches(e,t){if(!(this.replay!==null||e===null||e.phase!==`fight`&&e.phase!==`finish`))for(let[n,r]of(this.graphs??[]).entries()){let i=e.fighters[n];i!==void 0&&!i.is_downed&&r.anticipate(i,i.action_start_tick-t)}}cheer(e,t){ee.clinch_ticks>0||e.clinch_startup_ticks>0||e.is_downed)?null:QJ(n.x,n.y,r.x,r.y,Lq,u-f,d-f,S),[a,o]=this.drawnTargets;a.x=i===null?0:i.ax-n.x,a.y=i===null?0:i.ay-n.y,o.x=i===null?0:i.bx-r.x,o.y=i===null?0:i.by-r.y,this.clearOfTheFallen(e);let s=1-Math.exp(-14*t);for(let e of[0,1]){let n=this.drawnOffsets[e],r=this.drawnTargets[e],i=r.x-n.x,a=r.y-n.y;if(this.drawnOffsetsLive){i*=s,a*=s;let e=Math.hypot(i,a);e>Rq*t&&(i*=Rq*t/e,a*=Rq*t/e)}n.x+=i,n.y+=a}return this.drawnOffsetsLive=!0,[this.drawnAt(0,n),this.drawnAt(1,r)]}drawnAt(e,t){let n=this.drawnOffsets[e];if(Math.abs(n.x)<.01&&Math.abs(n.y)<.01)return t;let r=Az(t.x+n.x,t.y+n.y);return Object.assign(this.drawnFighters[e],t,{x:r.x,y:r.y})}clearOfTheFallen(e){for(let t of[0,1]){let n=this.graphs?.[t]?.fallBody??null,r=+(t===0),i=e[r];if(n===null||i.is_downed||(this.graphs?.[r]?.fallBody??null)!==null)continue;let a=this.drawnTargets[r],o=this.mapping.x(i.x+a.x),s=this.mapping.z(i.y+a.y),c=this.clearOf(n,o,s);a.x+=(c.x-o)/this.mapping.x(1),a.y+=(c.z-s)/this.mapping.z(1);return}}clearOf(e,t,n){let r={x:t,z:n};for(let t of[0,1,2,3,4])e.bodyPoint(t,this.bodyPoint),r=JJ(r.x,r.z,this.bodyPoint.x,this.bodyPoint.z,Pq);let i=this.insideRopes(r.x,r.z);if(Math.hypot(i.x-r.x,i.z-r.z)<1e-6)return r;let a=t=>[0,1,2,3,4].every(n=>(e.bodyPoint(n,this.bodyPoint),Math.hypot(t.x-this.bodyPoint.x,t.z-this.bodyPoint.z)>=.499999));for(let e=zq;e<=2.000000001;e+=zq)for(let[t,n]of[[1,0],[-1,0],[0,1],[0,-1]]){let r=this.insideRopes(i.x+t*e,i.z+n*e);if(a(r))return r}return i}insideRopes(e,t){let n=Az(e/this.mapping.x(1),t/this.mapping.z(1));return{x:this.mapping.x(n.x),z:this.mapping.z(n.y)}}headHeightOf(e){return(this.graphs?.[e]?.boxer.metrics.headRestY??1.52)+.04}bleed(e,t,n){for(let[r,i]of e.entries()){let e=BY(i,this.graphs?.[r],this.flashKnockout?.loserId),a=this.arcadeInjuries[r]??null,o=a!==null,s=(i.trauma.bleeding+i.trauma.left_cut+i.trauma.right_cut)/380,c=o?Math.max(s,EY):s;if(c>.05&&!e)this.downedPoolAccumulators[r]=0,this.downedPoolCounts[r]=0,this.effects.drip(this.dripPoint(r),c,n.reducedMotion,r);else if(c>wY&&e&&n.blood!==`off`){this.effects.stopDrip(r),this.downedPoolAccumulators[r]+=t*5*(o?DY:1);let e=this.poolSource(r,a);for(;this.downedPoolAccumulators[r]>=1;){--this.downedPoolAccumulators[r];let t=this.downedPoolCounts[r];this.downedPoolCounts[r]=t+1;let n=zY(t,c,o?OY:TY),i=t*2.399963+r*Math.PI;this.effects.pool(e.x+Math.sin(i)*n*.25,e.z+Math.cos(i)*n*.25,n,t+r*7)}}else this.effects.stopDrip(r),this.downedPoolAccumulators[r]=0,e||(this.downedPoolCounts[r]=0)}}dripPoint(e){let t=this.headWorldPose(e);if(t!==null)return t.position.add(this.tmpStumpOffset.copy(kY).applyQuaternion(t.quaternion));if(this.headCacheValid[e])return this.tmpHead.copy(this.headCache[e]);let n=e===0?this.tmpA:this.tmpB;return this.tmpHead.set(n.x,this.headHeightOf(e),n.z)}poolSource(e,t){if(t===`dismember_left`||t===`dismember_right`){let n=this.handWorldPose(e,t===`dismember_left`?`left`:`right`);if(n!==null)return n.position}let n=RY(t);if(n!==`mouth`){let t=this.tornWound(e,n);if(t!==null)return t.position}return this.headCacheValid[e]?this.headCache[e]:e===0?this.tmpA:this.tmpB}updateBlobShadows(){let e=[this.tmpA,this.tmpB,this.refereePosition];for(let[t,n]of this.blobShadows.entries()){n.visible=t>=2||!this.carnage.gibbed(t);let r=t<2?this.graphs?.[t]:this.referee??void 0,i=r?.fallBody?.centre(this.bodyPoint)??null??(r?.boxer.root.visible===!0?r.currentRoot:e[t]);n.position.x=i.x,n.position.z=i.z;let a=t<2?this.buffer.latest()?.fighters[t]:void 0,o=t<2?a!==void 0&&BY(a,r,this.flashKnockout?.loserId):r?.isDown===!0;n.scale.set(o?2.1:1.25,o?.9:.85,1)}}updateFootShadows(){for(let[e,t]of this.footShadows.entries()){let n=e>>1,r=this.graphs?.[n]?.boxer;t.visible=r!==void 0&&r.root.visible&&!this.carnage.gibbed(n),r!==void 0&&t.visible&&(r.rig.bones[e%2==0?`ankleL`:`ankleR`].getWorldPosition(this.footPoint),t.position.x=this.footPoint.x,t.position.z=this.footPoint.z,t.material.opacity=RJ(this.footPoint.y-r.metrics.ankleRestY))}}updateReferee(e,t,n,r){let i=this.referee;if(i===null)return;let a=this.replay===null||this.replay.plan.impact.kind===`referee_down`;i.boxer.root.visible=a;let o=this.blobShadows[2];o!==void 0&&(o.visible=a);let s=n?.referee??null,c=this.replay!==null&&this.replay.plan.impact.kind===`referee_down`?this.replay:null;!this.refereePlaced&&s!==null&&(this.refereePlaced=!0,this.refereePosition.set(this.mapping.x(s.x),0,this.mapping.z(s.y)));let l=this.refereeReplayAt!==null||this.pendingRefereeEvents.some(e=>e.kind===`referee_down`);s?.alive===!0&&i.isDown&&this.replay===null&&n?.phase!==`referee_down`&&!l&&i.resetTransient(!1),s===null||s.alive||i.isDown||this.replay!==null||l||(this.refereePosition.set(this.mapping.x(s.x),0,this.mapping.z(s.y)),i.knockOut(),this.refereeFallUnseen=!0);let u=s!==null&&(n?.phase===`fight`&&s.alive||c!==null&&!c.impactFired)?s:null,d=s?.alive===!1&&(c===null||c.impactFired),f=n?.fighters.find(e=>e.is_downed)??(n?.phase===`knockdown`?n.fighters.find(e=>e.player_id===this.lastKnockdown?.knockdown.target_id):void 0)??null,p=n?.fighters.some(e=>e.clinch_ticks>0||e.clinch_startup_ticks>0)??!1,m=f===null&&i.breaking,h=f===null?void 0:this.graphs?.[n?.fighters.indexOf(f)??-1],g=h?.fallBody?.centre(this.bodyPoint)??null,_=f!==null&&!f.is_downed?h?.currentRoot??null:null,v=f===null?(this.tmpA.x+this.tmpB.x)/2:g?.x??_?.x??this.mapping.x(f.x),y=f===null?(this.tmpA.z+this.tmpB.z)/2:g?.z??_?.z??this.mapping.z(f.y),b=this.refereeAway.set(this.refereePosition.x-v,0,this.refereePosition.z-y);if(b.lengthSq()<.01&&b.set(0,0,-1),b.normalize(),m){let e=this.tmpB.z-this.tmpA.z,t=this.tmpA.x-this.tmpB.x,n=Math.hypot(e,t),r=e*b.x+t*b.z>=0?1:-1;n>.01&&b.set(e/n*r,0,t/n*r)}let{standoff:x,clearance:S}=XY(f!==null,p,m),C=L.clamp(v+b.x*x,-2.4,2.4),w=L.clamp(y+b.z*x,-2.4,2.4),T=this.refereePosition.x,E=this.refereePosition.z,D=this.replay===null&&this.ceremony?.positions!==null?this.ceremony:null,O=!d&&D===null&&this.replay===null&&this.stoppageWinner>=0&&this.frameSeconds>=this.stoppageRaiseAt?this.stoppageWinner===0?this.tmpA:this.tmpB:null,k=O===null?null:this.stoppageSpot??=this.raiseSpot(O,this.stoppageWinner===0?this.tmpB:this.tmpA),A=k!==null&&k.x<0?-1:1;if(d)D!==null&&(D.refereeArrived=!0);else if(O!==null&&k!==null){let t=tJ(this.refereePosition.x,this.refereePosition.z,{x:O.x+k.x,y:O.z+k.z},Qq*e);this.refereePosition.x=t.x,this.refereePosition.z=t.y}else if(D!==null){let t=tJ(this.refereePosition.x,this.refereePosition.z,{x:Yq.x,y:Yq.z},Qq*e);this.refereePosition.x=t.x,this.refereePosition.z=t.y,D.refereeArrived=t.arrived}else if(u!==null){let t=c===null?1-Math.exp(-20*e):1;this.refereePosition.x+=(this.mapping.x(u.x)-this.refereePosition.x)*t,this.refereePosition.z+=(this.mapping.z(u.y)-this.refereePosition.z)*t}else{let t=1-Math.exp(-(m?8:1.6)*e),n=m?Math.min(1,Vq*e/Math.max(1e-6,Math.hypot(C-this.refereePosition.x,w-this.refereePosition.z)*t)):1;this.refereePosition.x+=(C-this.refereePosition.x)*t*n,this.refereePosition.z+=(w-this.refereePosition.z)*t*n}let j=O===null?D===null?u!==null||d?0:S:D.refereeArrived?0:Jq:Sq*.85;for(let e of j>0?[this.tmpA,this.tmpB]:[]){let t=this.refereePosition.x-e.x,n=this.refereePosition.z-e.z,r=Math.hypot(t,n);r.001&&(this.refereePosition.x=e.x+t/r*j,this.refereePosition.z=e.z+n/r*j)}for(let e of D!==null||d?[]:this.graphs??[]){let t=e.fallBody;if(t!==null)for(let e of[0,1,2,3,4]){t.bodyPoint(e,this.bodyPoint);let n=JJ(this.refereePosition.x,this.refereePosition.z,this.bodyPoint.x,this.bodyPoint.z,Nq);this.refereePosition.x=n.x,this.refereePosition.z=n.z}}for(let e of d?[]:[0,1]){if(!this.effects.severedHeadPosition(e,this.closeUpTarget))continue;let t=JJ(this.refereePosition.x,this.refereePosition.z,this.closeUpTarget.x,this.closeUpTarget.z,Aq);this.refereePosition.x=t.x,this.refereePosition.z=t.z}if(c===null&&!d){let t=this.refereePosition.x-T,n=this.refereePosition.z-E,r=Math.hypot(t,n),i=dJ*e;r>i&&(this.refereePosition.x=T+t/r*i,this.refereePosition.z=E+n/r*i)}e>0&&this.refereeVelocity.set((this.refereePosition.x-T)/e,0,(this.refereePosition.z-E)/e);let ee=O!==null&&k!==null&&Math.hypot(this.refereePosition.x-O.x-k.x,this.refereePosition.z-O.z-k.z)<=wq,M=D!==null&&!D.refereeArrived,te=O===null?D===null?u===null?Math.atan2(v-this.refereePosition.x,y-this.refereePosition.z):Math.atan2(u.facing_x,-u.facing_y):M?Math.atan2(Yq.x-this.refereePosition.x,Yq.z-this.refereePosition.z):0:ee?0:Math.atan2(O.x-this.refereePosition.x,O.z-this.refereePosition.z);if(O!==null){let e=this.graphs?.[this.stoppageWinner]?.boxer.rig.bones,t=n?.fighters[this.stoppageWinner]?.injuries??[],r=bJ(t,`left`),a=!ee||e===void 0?null:r&&bJ(t,`right`)?this.nearerGlove(e.gloveL,e.gloveR):(r?e.gloveL:e.gloveR).getWorldPosition(this.stoppageWrist);i.raise(A<0?a:null,A>0?a:null)}let ne=((te-this.refereeYaw+Math.PI)%(Math.PI*2)+Math.PI*2)%(Math.PI*2)-Math.PI;this.refereeYaw+=ne*(1-Math.exp(-(m?8:3)*e));let re=ZY(this.refereePosition,this.refereeYaw,this.refereeVelocity,this.mapping,s);i.setRefereeCount(f!==null,f?.get_up_count??0);let ie=f===null?n?.fighters.findIndex(e=>e.stunned_ticks>0)??-1:-1,ae=ie===0?this.tmpA:this.tmpB,oe=f===null?ie>=0?b.set(ae.x,1.5,ae.z):null:b.set(v,f.is_downed?.25:1.5,y);i.aimBreak(this.tmpA,this.tmpB,oe,n?.phase===`finish`?`stand_back`:`watch`);let se=this.settings();if(i.update(re.self,re.focus,e,t,se.reducedMotion,se.blood,r),this.refereeFallUnseen&&(this.refereeFallUnseen=!1,i.fallBody?.settle()),this.effects.gushing(2)){let e=this.refereeMouth();e!==null&&this.effects.anchorGush(2,e.position,e.axis)}this.poolUnderReferee(s?.alive===!1,d,e,se.blood)}poolUnderReferee(e,t,n,r){if(!e&&this.replay===null&&(this.refereePoolAccumulator=0,this.refereePoolCount=0),!t||r===`off`||this.referee===null)return;this.refereePoolAccumulator+=n*5*DY;let i=this.referee.boxer.rig.bones.head.getWorldPosition(this.refereeHead);for(;this.refereePoolAccumulator>=1;){--this.refereePoolAccumulator;let e=this.refereePoolCount,t=zY(e,EY,OY);if(t>=OY)return;this.refereePoolCount=e+1;let n=e*2.399963;this.effects.pool(i.x+Math.sin(n)*t*.25,i.z+Math.cos(n)*t*.25,t,e+14)}}updateTrails(e,t){let n=this.graphs;if(!(n===null||this.trails.length<4)){for(let[r,i]of n.entries())for(let[n,a]of[`gloveL`,`gloveR`].entries()){let o=this.trails[r*2+n],s=this.glows[r*2+n];if(!i.boxer.root.visible||!this.carnage.hasGlove(r,n===0?`left`:`right`)){o.reset(),s?.reset();continue}i.boxer.rig.bones[a].getWorldPosition(this.trailGlove);let c=i.powerHeat(n===0?`left`:`right`);o.update(this.trailGlove,e,this.camera.position,!t&&this.replay===null&&!i.isDown,c),s?.update(this.trailGlove,c,e,t,this.camera)}for(let t of this.impactFlashes)t.update(e,this.camera);this.powerShake*=.02**e}}presentPowerHit(e,t){let n=!t.detail.endsWith(`:body`)&&this.headCacheValid[e]===!0?this.headCache[e]:void 0;n===void 0?this.powerHitPoint.set(this.contactPoint.x,t.detail.endsWith(`:body`)?1.05:1.55,this.contactPoint.z):this.powerHitPoint.copy(n),this.impactFlashes[e]?.fire(this.powerHitPoint),this.powerShake=Math.min(mJ,this.powerShake+pJ)}updateCornermen(e,t,n,r){let i=this.cornermen;if(i===null)return;let a=$K(n,this.simulation.tick_rate),o=n?.phase===`complete`?this.final:null;for(let[s,c]of i.entries()){let i=s===0?-1:1,l=o===null?`work`:this.deaths[s]===null?o.winner_id!==null&&o.winner_id===n?.fighters[s]?.player_id?`cheer`:`work`:`mourn`,u=a||l!==`work`,d=u?Bq:Oq;this.cornermanPosition.set(i*d,0,-i*d);let f=s===0?3*Math.PI/4:-Math.PI/4;c.attend(u,l);let p=ZY(this.cornermanPosition,f,this.cornermanVelocity,this.mapping);c.update(p.self,p.focus,e,t,!1,`off`,r)}}updateCutmen(e,t,n,r){let i=this.cutmen,a=this.graphs;if(i===null||a===null)return;let o=n?.phase===`rest`,s=this.mapping.x(l);for(let[c,l]of i.entries()){let i=c===0?-1:1,u=o&&a[c].stoolVisible?1:0,d=this.cutmanProgress[c],f=d+Math.sign(u-d)*Math.min(Math.abs(u-d),e/Hq);this.cutmanProgress[c]=f;let p=l.boxer.root.visible;if(l.boxer.root.visible=f>.005,!l.boxer.root.visible)continue;this.cutmanFrom.set(i*Oq,0,-i*2.42),EB(c===0?0:1,s,CB,32,this.cutmanTo);let m=f*f*(3-2*f);this.cornermanPosition.copy(this.cutmanFrom).lerp(this.cutmanTo,m);let h=this.cutmanLast[c];p||h.copy(this.cornermanPosition),this.cornermanVelocity.copy(this.cornermanPosition).sub(h).divideScalar(Math.max(e,.001)),h.copy(this.cornermanPosition);let g=f>.02&&f=Uq?_===null?Math.atan2(i,-i):Math.atan2(_.x-this.cutmanTo.x,_.z-this.cutmanTo.z):Math.atan2(-this.cutmanFrom.x,-this.cutmanFrom.z),y=EJ(n?.fighters[c]);if(f>=Uq&&_!==null){let e=a[c].boxer.root.rotation.y;this.cutmanFacing.set(Math.sin(e),0,Math.cos(e)),this.cutmanEye.copy(_).addScaledVector(this.cutmanFacing,.09),this.cutmanEye.x+=Math.cos(e)*y.side*y.lateral,this.cutmanEye.z-=Math.sin(e)*y.side*y.lateral,this.cutmanEye.y+=y.lift;let t=n?.fighters[c]?.trauma,r=t===void 0||y.prop===`bottle`?0:Math.min(1,Math.max(t.left_cut,t.right_cut)/Wq);l.treat(this.cutmanEye,this.cutmanFacing,y.side,y.prop,r)}else l.treat(null);let b=ZY(this.cornermanPosition,v,this.cornermanVelocity,this.mapping);l.update(b.self,b.focus,e,t,!1,`off`,r)}}drawHudOverlay(e){let t=ZK(this.hudCanvas);if(t===null)return;let{context:n,viewport:r}=t;if(this.hudViewport.width=r.width,this.hudViewport.height=r.height,n.clearRect(0,0,r.width,r.height),e===null)return;let i=this.settings();if(this.viewerHitFlash>.01&&!i.reducedMotion){let e=n.createRadialGradient(r.width/2,r.height/2,r.width*.12,r.width/2,r.height/2,r.width*.7);e.addColorStop(0,`rgba(255,235,225,${(this.viewerHitFlash*.18).toFixed(3)})`),e.addColorStop(1,`rgba(140,0,10,${(this.viewerHitFlash*.55).toFixed(3)})`),n.fillStyle=e,n.fillRect(0,0,r.width,r.height)}let a=xY(Math.max(...e.fighters.map(e=>e.trauma.head+e.trauma.body)),i.blood);if(a>0){let e=n.createRadialGradient(r.width/2,r.height/2,r.width*.2,r.width/2,r.height/2,r.width*.72);e.addColorStop(0,`rgba(90,0,8,0)`),e.addColorStop(1,`rgba(75,0,8,${a.toFixed(3)})`),n.fillStyle=e,n.fillRect(0,0,r.width,r.height)}i.reducedMotion||this.effects.drawLens(n,r.width,r.height);let o=this.deaths[0]??this.deaths[1],s=this.replay===null?null:this.replay.plan.impact.kind===`referee_down`?`REFEREE DOWN`:o===null?`KNOCKOUT REPLAY`:ke(o)===null?`DEATH REPLAY`:`FATALITY REPLAY`;Ir(n,r.width,r.height,e,this.players,this.viewerId,this.frameSeconds>=this.finalRevealAt?this.final:null,this.reconnectMs,this.simulation.tick_rate,this.roundStats,s,this.lagWarned?this.inputLatencyMs:null,this.frameSecondsthis.avatars.get(e),this.lastKnockdown?.knockdown.target_id??null,this.touchControls&&e.fighters.some(e=>e.player_id===this.viewerId),this.powerHeld?.()===!0,o,this.finishTargetId,!i.reducedMotion),this.drawCaption(n,r.width,r.height,e)}updateRocked(e,t,n){let r=e?.fighters.find(e=>e.player_id===this.viewerId),i=e===null||this.replay!==null||this.final!==null?0:DK(r,e.phase),a=this.rocked.update(n?0:i,t);return this.finishPass.uniforms.uRocked.value=n?0:a,r===void 0?null:i}shownAt(e){for(let t=this.history.length-1;t>=0;--t)if(this.history[t].tick<=e)return this.history[t];return null}drawCaption(e,t,n,r){let i=this.final!==null&&this.frameSeconds>=this.finalRevealAt?this.final:null;i!==null&&!this.resultAnnounced&&(this.resultAnnounced=!0,this.commentary.resultShown(this.frameSeconds));let a=this.commentary.current(this.frameSeconds),o=this.settings(),s=a===null||!o.commentary?``:a.line.text;if(s!==this.captionText&&(this.captionText=s,this.hudCanvas.dataset.caption=s),a===null||!o.commentary)return;let c=r.fighters.find(e=>e.player_id===this.viewerId),l=Hn(t,n),u=i===null?null:eY(i,t,n,r.fighters,this.players,this.roundStats,this.viewerId,this.deaths[0]??this.deaths[1])/l,d=this.frameSeconds0});p!==null&&(e.save(),e.scale(l,l),nV(e,a,p,o.reducedMotion),e.restore())}destroy(){if(!this.destroyed){if(this.destroyed=!0,cancelAnimationFrame(this.raf),this.raf=0,this.buffer.clear(),this.dedupe.reset(),this.pendingContacts.length=0,this.pendingGore.length=0,this.carnage.dispose(),this.effects.dispose(),this.avatars.dispose(),this.arena.dispose(),LC(this.ring),this.graphs!==null){for(let e of this.graphs)this.scene.remove(e.boxer.root),e.dispose();this.graphs=null}this.referee!==null&&(this.scene.remove(this.referee.boxer.root),this.referee.dispose(),this.referee=null);for(let e of this.trails)this.scene.remove(e.mesh),e.dispose();this.trails=[];for(let e of this.glows)this.scene.remove(e.mesh),e.dispose();this.glows=[];for(let e of this.impactFlashes)this.scene.remove(e.group),e.dispose();if(this.impactFlashes=[],this.glowMap?.dispose(),this.glowMap=null,this.cornermen!==null){for(let e of this.cornermen)this.scene.remove(e.boxer.root),e.dispose();this.cornermen=null}if(this.cutmen!==null){for(let e of this.cutmen)this.scene.remove(e.boxer.root),e.dispose();this.cutmen=null}for(let e of this.lights)this.scene.remove(e);this.keyLight?.shadow.map?.dispose(),this.keyLight?.shadow.dispose(),this.blobTexture.dispose();for(let e of[...this.blobShadows,...this.footShadows])this.scene.remove(e),e.geometry.dispose(),e.material.dispose();this.renderer.renderLists.dispose(),tq(this.composer),this.bloomPass.materialHighPassFilter.dispose(),XC(),this.renderer.dispose(),this.hudCanvas.remove()}}},$Y=[`broadcast`,`close`,`fighter`],eX=`hands.preferences.v1`,tX={length:0,clear:()=>void 0,getItem:()=>null,key:()=>null,removeItem:()=>void 0,setItem:()=>void 0},nX=()=>{try{return window.localStorage}catch{return tX}},rX=()=>({volume:.7,haptics:!0,reducedMotion:window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches??!1,blood:`full`,commentary:!0,announcer:!0,camera:`broadcast`});function iX(e=nX()){let t=rX();try{let n=JSON.parse(e.getItem(eX)??`null`);if(typeof n!=`object`||!n||Array.isArray(n))return t;let r=n;return{volume:typeof r.volume==`number`&&Number.isFinite(r.volume)?Math.max(0,Math.min(1,r.volume)):t.volume,haptics:typeof r.haptics==`boolean`?r.haptics:t.haptics,reducedMotion:typeof r.reducedMotion==`boolean`?r.reducedMotion:t.reducedMotion,blood:r.blood===`reduced`||r.blood===`off`||r.blood===`full`?r.blood:t.blood,commentary:typeof r.commentary==`boolean`?r.commentary:t.commentary,announcer:typeof r.announcer==`boolean`?r.announcer:t.announcer,camera:$Y.includes(r.camera)?r.camera:t.camera}}catch{return t}}function aX(e,t=nX()){try{t.setItem(eX,JSON.stringify({volume:Math.max(0,Math.min(1,e.volume)),haptics:e.haptics,reducedMotion:e.reducedMotion,blood:e.blood,commentary:e.commentary,announcer:e.announcer,camera:e.camera}))}catch{}}var oX=class{value;listeners=new Set;constructor(e=nX()){this.storage=e,this.value=iX(e)}storage;get current(){return this.value}update(e){this.value={...this.value,...e},aX(this.value,this.storage);for(let e of this.listeners)e(this.value)}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}destroy(){this.listeners.clear()}},sX={stage:`bootstrapping`,player:null,playerId:null,role:null,players:{},playerOrder:[],simulation:null,snapshot:null,final:null,select:null,serverTick:0,nextSequence:0,reconnectMs:0,safeError:null},cX=e=>Object.fromEntries(e.map(e=>[e.id,e]));function lX(e,t){if(t.type===`bootstrap`)return{...e,stage:`authorizing`,simulation:t.simulation,safeError:null};if(t.type===`authorized`)return{...e,stage:`connecting`,player:t.player,safeError:null};if(t.type===`connecting`)return{...e,stage:`connecting`};if(t.type===`reconnect-tick`)return{...e,stage:`paused`,reconnectMs:Math.max(0,t.remainingMs)};if(t.type===`fatal`)return{...e,stage:`fatal`,safeError:t.code,reconnectMs:0};let n=t.message;switch(n.type){case`welcome`:return{...e,playerId:n.role===`fighter`?n.player_id:null,role:n.role,players:cX(n.players),playerOrder:n.players.map(e=>e.id),serverTick:n.server_tick,nextSequence:n.role===`fighter`?n.next_sequence:0,safeError:null};case`ticket`:return e;case`waiting`:return{...e,stage:`waiting`,select:null};case`select`:return{...e,stage:`select`,select:n,players:cX(n.players),playerOrder:n.players.map(e=>e.id)};case`ready`:return{...e,stage:e.snapshot?.phase??`countdown`,select:null,players:cX(n.players),playerOrder:n.players.map(e=>e.id)};case`paused`:return{...e,stage:`paused`,reconnectMs:n.grace_ms};case`resumed`:return{...e,stage:e.snapshot?.phase??`countdown`,reconnectMs:0};case`snapshot`:return{...e,stage:n.payload.phase,snapshot:n.payload,serverTick:Math.max(e.serverTick,n.payload.tick)};case`final`:return{...e,stage:`complete`,final:n,reconnectMs:0};case`error`:return{...e,stage:`fatal`,safeError:n.code,reconnectMs:0}}}var uX=new Set([`hit`,`counter_hit`,`block`,`perfect_block`,`guard_break`,`knockdown`,`parry`,`body_collapse`,`eye_shut`,`referee_hit`,`referee_down`]),dX=11e3,fX=1500,pX=4e3,mX=3e3,hX=6,gX=5e3,_X=[{level:`rookie`,label:`Rookie`,detail:`Slow hands, leaves openings`},{level:`contender`,label:`Contender`,detail:`Works the body, punishes mistakes`},{level:`champion`,label:`Champion`,detail:`Slips, counters, finishes`}],vX=e=>Nt.includes(e),yX=class{root;reloadPage;authorizer;state=sX;settings=new oX;input=new SL;audio=new Ok(()=>this.settings.current);haptics=new JI(()=>this.settings.current);voice=new Qr(()=>this.settings.current);feedbackEvents=new IL;soundedPunches=[];renderer=null;network=null;session=null;abort=new AbortController;destroyed=!1;generation=0;reloadOnRetry=!1;reloading=!1;canvas;status;overlay;roleIndicator;controlsButton;controlsPanel;retry;rematchButton;hint;cpuPicker;cpuPrompt;cpuLevel=null;rematchOpponent=null;lastPhase=null;cpuRematchLevel=null;cpuRematch=null;cpuRematchTimer=null;diagnosticsTimer=null;finalReceivedAt=0;lastFinalMatchId=null;rematchAttempts=0;rematchTimer=null;rematchCountdownTimer=null;resultRevealTimer=null;resultWaitTimer=null;completeSince=null;summaryClock=new sr;fightSummary;liveFightStatus;finalSummary;corner;stylePicker;constructor(e,t=()=>window.location.reload(),n=new EI){this.root=e,this.reloadPage=t,this.authorizer=n,e.innerHTML=`
HANDStwo-player boxing

`,this.canvas=e.querySelector(`canvas`),this.status=e.querySelector(`[data-status]`),this.overlay=e.querySelector(`[data-overlay]`),this.roleIndicator=e.querySelector(`[data-role]`),this.controlsButton=e.querySelector(`[data-controls]`),this.controlsPanel=e.querySelector(`[data-controls-panel]`),this.retry=e.querySelector(`[data-retry]`),this.rematchButton=e.querySelector(`[data-rematch]`),this.hint=e.querySelector(`[data-hint]`),this.cpuPicker=e.querySelector(`[data-cpu]`),this.cpuPrompt=e.querySelector(`[data-cpu-prompt]`),this.cpuPicker.addEventListener(`click`,this.onCpuPick),this.rematchButton.addEventListener(`click`,this.onRematch),this.fightSummary=e.querySelector(`[data-fight-summary]`),this.liveFightStatus=e.querySelector(`[data-fight-status]`),this.finalSummary=e.querySelector(`[data-final]`),this.retry.addEventListener(`click`,this.onRetry),this.bindPanels(),this.syncSettings(),this.input.attachTouch(e.querySelector(`.activity`)),this.corner=new RI(e.querySelector(`.activity`),e=>this.network?.sendCornerChoice(e)??!1),this.stylePicker=new Zt(e.querySelector(`.activity`),(e,t)=>this.network?.chooseStyle(e,t)??!1),this.input.setViewForward(()=>this.renderer?.viewForward()??null),window.addEventListener(`keydown`,this.onCameraKey)}onCameraKey=e=>{if(e.code!==`KeyK`||e.repeat||e.ctrlKey||e.metaKey||e.altKey)return;let t=e.target;if(t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement)return;e.preventDefault();let n=$Y[($Y.indexOf(this.settings.current.camera)+1)%$Y.length];this.settings.update({camera:n}),this.root.querySelector(`[data-camera]`).value=n};start(){this.authorize()}resetForAuthorization(){this.reloadOnRetry=!1,this.network?.dispose(),this.network=null,this.session?.destroy(),this.session=null,this.renderer?.destroy(),this.renderer=null,this.voice.cancel(),this.audio.reset(),this.abort.abort(),this.abort=new AbortController,this.state=sX,this.feedbackEvents.reset(),this.input.setActive(!1),this.input.reset(),this.finalSummary.textContent=``,this.fightSummary.textContent=``,this.liveFightStatus.textContent=``,this.clearRematchTimers(),this.rematchButton.hidden=!0,this.cpuLevel=null,this.lastPhase=null}onCpuPick=e=>{let t=e.target?.closest(`[data-cpu-level]`)?.dataset.cpuLevel;vX(t)&&this.state.stage===`waiting`&&this.state.role===`fighter`&&this.cpuLevel===null&&this.callCpu(t)};callCpu(e){this.network?.requestCpu(e)===!0&&(this.cpuLevel=e,this.renderState())}get cpuBout(){return Object.values(this.state.players).some(e=>e.cpu===!0)}onRematch=()=>{this.rematchButton.disabled||this.state.stage!==`complete`||(this.rematchAttempts=1,this.rematchOpponent=this.cpuBout||this.state.role!==`fighter`?null:Object.values(this.state.players).find(e=>e.id!==this.state.playerId)?.name??null,this.authorize())};clearRematchTimers(){this.rematchTimer!==null&&window.clearTimeout(this.rematchTimer),this.rematchCountdownTimer!==null&&window.clearInterval(this.rematchCountdownTimer),this.rematchTimer=null,this.rematchCountdownTimer=null,this.clearCpuRematch()}scheduleCpuRematch(e){this.clearCpuRematch(),this.cpuRematch={level:e,at:Date.now()+gX},this.cpuRematchTimer=window.setInterval(()=>{let e=this.cpuRematch;e===null||this.state.stage!==`waiting`||this.state.role!==`fighter`||this.cpuLevel!==null?this.clearCpuRematch():Date.now()>=e.at&&(this.clearCpuRematch(),this.callCpu(e.level)),this.renderState()},250)}clearCpuRematch(){this.cpuRematchTimer!==null&&window.clearInterval(this.cpuRematchTimer),this.cpuRematchTimer=null,this.cpuRematch=null}awaitResultReveal(){this.resultRevealTimer!==null&&window.clearInterval(this.resultRevealTimer);let e=()=>{let e=this.renderer?.resultVisible??!0;this.overlay.hidden=this.state.stage===`complete`&&!e,(e||this.state.stage!==`complete`)&&this.resultRevealTimer!==null&&(window.clearInterval(this.resultRevealTimer),this.resultRevealTimer=null)};this.resultRevealTimer=window.setInterval(e,200),e()}startRematchCountdown(){this.clearRematchTimers();let e=this.state.role===`fighter`?`Rematch`:`Next bout`,t=()=>{let t=Math.ceil((this.finalReceivedAt+dX-Date.now())/1e3);this.rematchButton.hidden=this.state.stage!==`complete`,this.rematchButton.disabled=t>0,this.setText(this.rematchButton,t>0?`${e} in ${t}s`:e),t<=0&&this.rematchCountdownTimer!==null&&(window.clearInterval(this.rematchCountdownTimer),this.rematchCountdownTimer=null)};t(),this.rematchCountdownTimer=window.setInterval(t,1e3)}scheduleRematchRetry(){this.rematchTimer===null&&(this.rematchAttempts>=hX?this.fail(`rematch_unavailable`):(this.rematchAttempts+=1,this.setText(this.status,`The ring is still being cleared… trying again.`),this.rematchTimer=window.setTimeout(()=>{this.rematchTimer=null,this.authorize()},mX)))}async authorize(){let e=++this.generation;this.resetForAuthorization(),this.dispatch({type:`connecting`}),this.setText(this.status,`Securing Discord Activity session…`),this.retry.hidden=!0;try{let t=await this.authorizer.authorize(this.abort.signal);if(this.destroyed||e!==this.generation){t.destroy();return}this.session=t,this.dispatch({type:`bootstrap`,simulation:t.bootstrap.simulation}),this.dispatch({type:`authorized`,player:t.player}),this.input.onAction(e=>{this.renderer?.predictAction?.(e),this.network?.notifyAction()}),this.input.onHeldChange(()=>this.network?.notifyHeld());let n=t.takeTicket();if(n===null)throw Error(`ticket_unavailable`);let r=new qL(n,()=>this.input.frame(),{onMessage:e=>this.receive(e),onReconnect:e=>{this.dispatch({type:`reconnect-tick`,remainingMs:e}),this.renderer?.setReconnect(e),this.renderState()},onFatal:e=>this.fail(e),onFreshAuth:()=>{e===this.generation&&this.authorize()}});this.network=r,r.start(),this.setText(this.status,`Connecting to the ring…`)}catch(t){!this.abort.signal.aborted&&e===this.generation&&(this.reloadOnRetry=t instanceof kk&&t.reloadRequired,this.fail(Fk(t)))}}ensureRenderer(){if(this.renderer!==null||this.session===null||this.destroyed)return;let e=new QY(this.canvas,this.session.bootstrap.simulation,()=>this.settings.current,{localInput:()=>this.input.held(),inputSequenceOf:e=>this.network?.sequenceOf(e)??null,powerHeld:()=>this.input.powerHeld});e.onContact=(e,t)=>{this.audio.event(e,t),this.haptics.event(e,t)},e.onOwnPunch=(e,t,n)=>{this.audio.whoosh(e,t),this.soundedPunches.push(n),this.soundedPunches.length>8&&this.soundedPunches.shift()},e.onArcadeInjury=e=>this.audio.injury(e),e.onGore=e=>{this.audio.gore(e),this.haptics.gore(e),e.kind===`finish_him`?this.voice.shout(`Finish him!`):e.kind===`fatality`&&this.voice.shout(`Fatality.`)},e.onAnnouncement=e=>this.voice.speak(e),e.onCrowdCue=()=>this.audio.chant(),e.onRocked=(e,t)=>this.audio.rocked(e,t),this.renderer=e}receive(e){if(e.type===`error`){this.fail(e.code);return}e.type===`welcome`&&this.ensureRenderer(),(e.type===`welcome`||e.type===`resumed`)&&this.renderer?.resyncClock();let t=this.rematchAttempts>0;(e.type===`waiting`||e.type===`ready`)&&(this.rematchAttempts=0),e.type===`ready`&&(this.rematchOpponent=null),e.type===`ready`&&this.rememberStyle(e.players),e.type===`final`&&this.rematchAttempts>0&&e.match_id===this.lastFinalMatchId?this.scheduleRematchRetry():(this.dispatch({type:`message`,message:e}),e.type===`snapshot`&&this.receiveSnapshot(e.payload),e.type!==`select`&&e.type!==`ready`||e.players.some(e=>e.cpu===!0)||(this.cpuLevel=null),e.type===`waiting`&&(this.cpuLevel===null?t&&this.cpuRematchLevel!==null&&this.scheduleCpuRematch(this.cpuRematchLevel):this.callCpu(this.cpuLevel)),e.type===`final`&&(this.cpuRematchLevel=this.cpuBout?this.cpuLevel:null,this.rematchAttempts=0,this.lastFinalMatchId=e.match_id,this.finalReceivedAt=Date.now(),this.renderer?.setFinal(e),this.audio.result(e),this.startRematchCountdown(),this.awaitResultReveal()),this.renderer?.setPlayers(this.state.players,this.state.playerId,this.state.playerOrder),this.renderer?.setReconnect(this.state.reconnectMs),this.renderState())}get networkStats(){return{inputLatencyMs:this.network?.inputLatencyMs??null,resolutionScale:this.renderer?.resolutionScale??null,gpu:this.renderer?.memoryInfo??null}}receiveSnapshot(e){this.lastPhase===`countdown`&&e.phase!==`countdown`&&this.voice.finishLine(fX),this.lastPhase=e.phase,this.renderer?.setInputLatency(this.network?.inputLatencyMs??null),this.renderer?.push(e);let t=e.fighters.find(e=>e.player_id===this.state.playerId);this.input.setKnockdown(t?.is_downed===!0),t!==void 0&&this.audio.snapshot(e.tick,t.stamina,t.maximum_stamina,t.trauma.head+t.trauma.body),this.audio.roundClock(e.phase,e.round_number,e.phase_ticks_remaining,this.state.simulation?.tick_rate??30),this.audio.tension(WR(e));for(let t of this.feedbackEvents.accept(e.events)){if(uX.has(t.kind)||t.kind===`punch_start`&&t.action_id!==null&&this.soundedPunches.includes(t.action_id))continue;let n=t.kind===`punch_start`?e.fighters.find(e=>e.player_id===t.actor_id&&e.action_id===t.action_id):void 0;this.audio.event(t,n?.action_power===`power`),this.haptics.event(t)}}rememberStyle(e){let t=e.find(e=>e.id===this.state.playerId)?.style;this.state.role===`fighter`&&t!==void 0&&Wt(t)}dispatch(e){this.state=lX(this.state,e)}setText(e,t){e.textContent!==t&&(e.textContent=t)}renderState(){let e={bootstrapping:`Loading…`,authorizing:`Authorizing with Discord…`,connecting:`Connecting securely…`,waiting:this.state.role===`spectator`?`Waiting for the fighters…`:this.cpuLevel===null?this.cpuRematch===null?this.rematchOpponent===null?`Waiting for an opponent. Anyone in this channel can join with Play now.`:`Waiting for ${this.rematchOpponent} to take the rematch…`:`Rematch with the ${_X.find(e=>e.level===this.cpuRematch?.level)?.label??`computer`} in ${Math.max(1,Math.ceil((this.cpuRematch.at-Date.now())/1e3))}s, unless someone joins first.`:`Calling in the computer…`,select:`Pick how your fighter boxes.`,countdown:`Bout countdown.`,fight:`Round ${this.state.snapshot?.round_number??1} in progress.`,knockdown:`Knockdown count ${this.state.snapshot?.fighters.find(e=>e.player_id===this.state.playerId)?.get_up_count??0}.`,foul_recovery:`Foul recovery in progress.`,referee_down:`The referee is down. The bout goes on without him.`,finish:this.state.snapshot!==null&&Dr(this.state.snapshot.fighters)?.player_id===this.state.playerId?`You are out on your feet: one more punch kills you.`:`Finish him: one more punch kills.`,rest:`Between-round rest.`,paused:`Connection paused. ${Math.ceil(this.state.reconnectMs/1e3)} seconds remain.`,complete:this.cpuBout?`Bout complete. Scorecards are displayed. Bouts against the computer are unrated.`:`Bout complete. Scorecards and rating changes are displayed.`,fatal:BI(this.state.safeError??`safe_error`)},t=this.state.role===`spectator`;this.setText(this.status,t?`Spectating — ${e[this.state.stage]}`:e[this.state.stage]);let n=this.state.stage===`complete`&&this.state.final!==null;if(this.status.hidden=n||[`select`,`countdown`,`fight`,`knockdown`,`foul_recovery`,`referee_down`,`finish`,`rest`].includes(this.state.stage),this.overlay.toggleAttribute(`data-raised`,this.state.snapshot!==null),this.overlay.toggleAttribute(`data-result`,n),this.state.stage!==`complete`)this.overlay.hidden=!1,this.completeSince=null;else if(this.state.final===null){this.completeSince??=Date.now();let e=Date.now()-this.completeSince;this.overlay.hidden=e{this.resultWaitTimer=null,this.renderState()},pX-e+50))}this.roleIndicator.hidden=!t,this.controlsButton.hidden=t,t&&(this.controlsPanel.hidden=!0,this.controlsButton.setAttribute(`aria-expanded`,`false`));let r=this.state.snapshot?.fighters.find(e=>e.player_id===this.state.playerId),i=t?`Spectating. ${e[this.state.stage]}`:this.state.stage===`knockdown`&&r?.is_downed===!0?`Knockdown. Count ${r.get_up_count}. ${r.get_up_prompt===null?`Wait for your private rhythm instruction.`:`Press ${r.get_up_prompt===`get_up_left`?`left`:`right`} now.`}`:this.state.stage===`paused`?`Connection paused.`:e[this.state.stage];this.setText(this.liveFightStatus,i),this.corner.update(this.state.snapshot,this.state.playerId,this.state.role===`fighter`&&this.state.stage===`rest`),this.renderer?.setCornerPanelTop(this.corner.top()),this.stylePicker.update(this.state.stage===`select`?this.state.select:null,this.state.playerId,this.state.role),this.retry.hidden=this.state.stage!==`fatal`,this.setText(this.retry,this.reloadOnRetry?`Reload`:`Retry securely`),this.state.stage!==`complete`&&(this.rematchButton.hidden=!0),this.cpuPicker.hidden=t||this.state.stage!==`waiting`||this.cpuLevel!==null,this.setText(this.cpuPrompt,this.cpuRematch===null?this.rematchOpponent===null?`No one here yet? Fight the computer.`:`Or fight the computer instead:`:`Or start now:`);let a=!t&&(this.state.stage===`waiting`||this.state.stage===`countdown`);this.hint.hidden=!a,a&&this.setText(this.hint,nL(VI(),window.innerWidth)),this.overlay.toggleAttribute(`data-touch-hint`,a&&this.state.stage===`countdown`&&VI());let o=!t&&[`countdown`,`fight`,`knockdown`,`foul_recovery`,`referee_down`,`finish`].includes(this.state.stage),s=!t&&this.state.snapshot!==null&&(this.state.stage===`rest`||this.state.stage===`paused`);if(this.input.setActive(o,o||s),this.network?.setActive(o),this.renderFightSummary(),this.state.final!==null){let e=this.state.final;this.setText(this.finalSummary,`${e.method.replaceAll(`_`,` `)}. ${e.winner_id===null?`Draw`:`${this.state.players[e.winner_id]?.name??`Winner`} wins`}. Scorecards: ${e.scorecards.map(e=>`${e.judge}: ${e.player_one.reduce((e,t)=>e+t,0)} to ${e.player_two.reduce((e,t)=>e+t,0)}`).join(`; `)}. ${this.cpuBout?`Unrated bout against the computer.`:`Ratings: ${Object.entries(e.ratings).map(([e,t])=>`${this.state.players[e]?.name??`fighter`} ${t.before} to ${t.after}`).join(`; `)}.`}`)}}renderFightSummary(){let e=this.state.snapshot;if(e===null)return;let t=this.state.simulation?.tick_rate??30,n=Math.floor(this.summaryClock.ticks(e)/t),r=`${Math.floor(n/60)}:${String(n%60).padStart(2,`0`)}`,i=e.fighters.map(e=>{let t=this.state.players[e.player_id],n=e.injuries.length===0?`no injuries`:`injuries: ${e.injuries.map(e=>Ee(e).toLowerCase()).join(`, `)}`;return`${t?.name??`Fighter`}, ${t?.cpu===!0?`computer opponent`:`ELO ${t?.rating??`unknown`}`}, stamina ${Math.round(e.stamina)} of ${Math.round(e.maximum_stamina)}, guard ${Math.round(e.guard)}, poise ${Math.round(e.poise)}, conditioning ${Math.round(e.conditioning)}, blood ${Math.round(e.blood_volume/be*100)} percent, ${n}, ${e.warnings} warnings, ${e.knockdowns} knockdowns`}),a=e.fighters.find(e=>e.player_id===this.state.playerId),o=a?.is_downed===!0?a.get_up_prompt===null?`You are down. Count ${a.get_up_count}. Wait for your private rhythm instruction.`:`You are down. Count ${a.get_up_count}. Press ${a.get_up_prompt===`get_up_left`?`left`:`right`} now. Get-up progress ${a.get_up_meter} of ${a.get_up_required}.`:``;this.setText(this.fightSummary,`Round ${e.round_number}. ${e.phase.replace(`_`,` `)}. Clock ${r}. ${i.join(`. `)}. ${o}`.trim())}onRetry=()=>{this.reloadOnRetry?(this.reloading=!0,this.reloadPage()):this.authorize()};bindPanels(){let e=(e,t)=>{let n=this.root.querySelector(e),r=this.root.querySelector(t);n.addEventListener(`click`,()=>{r.hidden=!r.hidden,n.setAttribute(`aria-expanded`,String(!r.hidden))})};e(`[data-controls]`,`[data-controls-panel]`),e(`[data-settings]`,`[data-settings-panel]`);let t=this.root.querySelector(`[data-settings-panel]`);this.root.querySelector(`[data-settings]`).addEventListener(`click`,()=>{this.diagnosticsTimer!==null&&window.clearInterval(this.diagnosticsTimer),this.diagnosticsTimer=null,t.hidden||(this.refreshDiagnostics(),this.diagnosticsTimer=window.setInterval(()=>this.refreshDiagnostics(),1e3))});let n=this.root.querySelector(`[data-copy-diagnostics]`);n.addEventListener(`click`,()=>{let e=this.diagnosticsText(),t=()=>{this.setText(n,`Copied`),window.setTimeout(()=>this.setText(n,`Copy diagnostics`),1500)},r=()=>{let e=this.root.querySelector(`[data-diagnostics]`),t=window.getSelection();if(t===null)return;let r=document.createRange();r.selectNodeContents(e),t.removeAllRanges(),t.addRange(r),this.setText(n,`Selected. Copy manually`),window.setTimeout(()=>this.setText(n,`Copy diagnostics`),2500)},i=navigator.clipboard;i===void 0||typeof i.writeText!=`function`?r():i.writeText(e).then(t).catch(r)}),this.root.querySelector(`[data-volume]`).addEventListener(`input`,e=>{this.settings.update({volume:Number(e.target.value)}),this.audio.setVolume(),this.voice.settingsChanged()}),this.root.querySelector(`[data-haptics]`).addEventListener(`change`,e=>{this.settings.update({haptics:e.target.checked})}),this.root.querySelector(`[data-motion]`).addEventListener(`change`,e=>{let t=e.target.checked;this.settings.update({reducedMotion:t}),this.renderer?.setReducedMotion(t)}),this.root.querySelector(`[data-commentary]`).addEventListener(`change`,e=>{this.settings.update({commentary:e.target.checked})}),this.root.querySelector(`[data-announcer]`).addEventListener(`change`,e=>{let t=e.target.checked;this.settings.update({announcer:t}),t||this.voice.cancel()}),this.root.querySelector(`[data-blood]`).addEventListener(`change`,e=>{let t=e.target.value;this.settings.update({blood:t}),this.renderer?.setBloodLevel(t)}),this.root.querySelector(`[data-camera]`).addEventListener(`change`,e=>{let t=$Y.find(t=>t===e.target.value);t!==void 0&&this.settings.update({camera:t})})}diagnosticsText(){let e=this.networkStats,t=this.renderer?.diagnostics,n=t===void 0||t.frameMs<=0?`-`:(1e3/t.frameMs).toFixed(0);return[`stage: ${this.state.stage} · role: ${this.state.role??`-`}`,`input latency: ${e.inputLatencyMs===null?`-`:`${Math.round(e.inputLatencyMs)} ms`}`,`frame: ${t===void 0?`-`:`${t.frameMs.toFixed(1)} ms (${n} fps)`} · render scale: ${t?.resolutionScale??`-`}`,`gpu objects: ${t===void 0?`-`:`${t.gpu.geometries} geometries, ${t.gpu.textures} textures, ${t.gpu.programs} programs`}`,`graphics: ${t?.graphics??`-`}`,`browser: ${navigator.userAgent}`,`pointer: ${VI()?`coarse`:`fine`} · viewport: ${window.innerWidth}x${window.innerHeight} @${window.devicePixelRatio}`,`last error: ${this.state.safeError??`none`}`,`match: ${this.state.final?.match_id??`-`}`].join(` -`)}refreshDiagnostics(){this.setText(this.root.querySelector(`[data-diagnostics]`),this.diagnosticsText())}syncSettings(){let e=this.settings.current;this.root.querySelector(`[data-volume]`).value=String(e.volume),this.root.querySelector(`[data-haptics]`).checked=e.haptics,this.root.querySelector(`[data-motion]`).checked=e.reducedMotion,this.root.querySelector(`[data-blood]`).value=e.blood,this.root.querySelector(`[data-commentary]`).checked=e.commentary,this.syncAnnouncerSetting(),this.voice.onVoicesChanged=()=>this.syncAnnouncerSetting(),this.root.querySelector(`[data-camera]`).value=e.camera}syncAnnouncerSetting(){let e=this.root.querySelector(`[data-announcer]`),t=this.voice.hasVoice;e.checked=this.settings.current.announcer&&t,e.disabled=!t;let n=this.voice.supported?t?null:`This device has no English voice of its own`:`This browser cannot speak`;n===null?e.parentElement.removeAttribute(`title`):e.parentElement.title=n}fail(e){e===`room_closed`&&this.rematchAttempts>0?this.scheduleRematchRetry():(e===`client_outdated`&&(this.reloadOnRetry=!0),this.dispatch({type:`fatal`,code:e}),this.rematchOpponent=null,this.voice.cancel(),this.network?.dispose(),this.network=null,this.session?.destroy(),this.session=null,this.renderer?.destroy(),this.renderer=null,this.input.setActive(!1),this.input.reset(),this.renderState())}destroy(){this.destroyed||(this.destroyed=!0,this.generation+=1,this.abort.abort(),this.network?.dispose(),this.session?.destroy(),this.reloading||this.authorizer.close(),this.renderer?.destroy(),window.removeEventListener(`keydown`,this.onCameraKey),this.input.destroy(),this.corner.destroy(),this.stylePicker.destroy(),this.audio.destroy(),this.voice.destroy(),this.settings.destroy(),this.retry.removeEventListener(`click`,this.onRetry),this.rematchButton.removeEventListener(`click`,this.onRematch),this.cpuPicker.removeEventListener(`click`,this.onCpuPick),this.clearRematchTimers(),this.diagnosticsTimer!==null&&window.clearInterval(this.diagnosticsTimer),this.resultRevealTimer!==null&&window.clearInterval(this.resultRevealTimer),this.resultWaitTimer!==null&&window.clearTimeout(this.resultWaitTimer),this.diagnosticsTimer=null,this.root.replaceChildren())}};(new URLSearchParams(window.location.search).get(`styles`)??``).split(`,`);var bX={broadcast:{position:[0,1.88,7.15],lookAt:[0,1.12,0]},side:{position:[7.4,1.6,0],lookAt:[0,1.1,0]},top:{position:[.01,8.5,.01],lookAt:[0,0,0]},ringside:{position:[1.6,1.5,4.1],lookAt:[.2,1.25,0]}},xX=[[`hips`,`spine`],[`spine`,`head`],[`chest`,`shoulderL`],[`shoulderL`,`elbowL`],[`elbowL`,`gloveL`],[`chest`,`shoulderR`],[`shoulderR`,`elbowR`],[`elbowR`,`gloveR`],[`hips`,`hipL`],[`hipL`,`kneeL`],[`kneeL`,`ankleL`],[`hips`,`hipR`],[`hipR`,`kneeR`],[`kneeR`,`ankleR`]],SX=class{root;renderer=null;replay=null;raf=0;playing=!1;speed=1;virtualTick=0;carry=0;latencyMs=0;pendingQueue=[];destroyed=!1;overlays={skeleton:!1,hurtbox:!1,hitbox:!1};skeletonLines=[];hurtboxMeshes=[];hitboxMeshes=[];statusEl;metricsEl;canvas;constructor(e){this.root=e,e.innerHTML=`
+}`},bJ=[{x:-102,y:-16},{x:102,y:-16}],xJ=[0,1],SJ=.5,CJ={x:0,z:-.2},wJ=0,TJ=200,EJ=1.3,DJ=.7,OJ=4.5;function kJ(e,t,n,r){let i=n.x-e,a=n.y-t,o=Math.hypot(i,a);return o<=Math.max(r,1e-6)?{x:n.x,y:n.y,arrived:!0}:{x:e+i/o*r,y:t+a/o*r,arrived:!1}}var AJ=16,jJ=.6,MJ={hit:.18,counter_hit:.3,guard_break:.25,knockdown:1,block:.04,perfect_block:.1,parry:.22,body_collapse:.45},NJ=new Set([`hit`,`counter_hit`,`block`,`perfect_block`,`guard_break`,`knockdown`,`parry`,`body_collapse`,`eye_shut`]),PJ=new Set([`parry`,`body_collapse`,`eye_shut`]),FJ=new Set([`hit`,`counter_hit`,`block`,`perfect_block`]),IJ=1.2,LJ=1500,RJ=.8,zJ=2.4,BJ=2.5,VJ=new Set([`referee_hit`,`referee_down`]),HJ=.05,UJ=.08,WJ={parry:{text:`PARRIED`,seconds:1},eye_shut:{text:`EYE SWOLLEN SHUT`,seconds:1.6}},GJ=new Set([`injury`,`vomit`,`finish_him`,`fatality`,`death`]),KJ=1.8,qJ=3,JJ=.6;function YJ(e,t){let n=ct(e,t);return n!==`severed`&&n!==`torn`}function XJ(e){return e.kind===`death`?e.detail===`brain`?`head_burst`:null:e.kind===`fatality`?e.detail===`head_burst`?`head_burst`:e.detail===`decapitation`||e.detail===`spine_rip`?`decapitation`:null:null}var ZJ=e=>e.kind===`knockdown`&&e.detail===`body`;function QJ(e,t){if(Lq(e)&&e.action_id!==null)return t.find(t=>Rq(t)&&t.action_id===e.action_id&&t.actor_id===e.target_id&&t.target_id===e.actor_id)}function $J(e,t){if(Rq(e)&&e.action_id!==null)return t.find(t=>Lq(t)&&t.action_id===e.action_id&&t.actor_id===e.target_id&&t.target_id===e.actor_id)}function eY(e,t){return e.map((n,r)=>{if(PJ.has(n.kind)||n.kind===`knockdown`&&n.detail===oJ)return{event:n,presentationEvent:n,presentImpact:!1,reactAmount:null};let{puncherIndex:i}=Fq(n,t),a=t.fighters[i],o=a?.action_key?.split(`:`)??[],s=o.length>=3?`${o[0]}:${o[2]}`:n.detail,c=$J(n,e);if(Rq(n))return{event:n,presentationEvent:{...n,detail:c?.detail||s,direction:c?.direction??a?.facing??n.direction,blood:c?.blood??n.blood},presentImpact:!0,reactAmount:n.amount};if(QJ(n,e)!==void 0)return{event:n,presentationEvent:n,presentImpact:!1,reactAmount:n.amount};if(n.kind===`knockdown`){let t=e.slice(0,r).reverse().find(e=>Lq(e)&&e.tick===n.tick&&e.actor_id===n.actor_id&&e.target_id===n.target_id);if(t!==void 0)return{event:n,presentationEvent:{...n,detail:t.detail,direction:t.direction,blood:t.blood,action_id:t.action_id},presentImpact:!0,reactAmount:QJ(t,e)===void 0?null:t.amount}}return{event:n,presentationEvent:n,presentImpact:!0,reactAmount:n.amount}})}function tY(e){let t=e?.trauma;if(t===void 0)return{side:1,lift:.08,lateral:.035,prop:`enswell`};switch(e?.corner_choice){case`cut`:return{side:t.right_cut>t.left_cut?-1:1,lift:.11,lateral:.04,prop:`enswell`};case`swelling`:return{side:t.right_eye>t.left_eye?-1:1,lift:.08,lateral:.035,prop:`enswell`};case`breath`:return{side:1,lift:-.015,lateral:0,prop:`bottle`};default:return{side:t.right_eye+t.right_cut>t.left_eye+t.left_cut?-1:1,lift:.08,lateral:.035,prop:`enswell`}}}function nY(e){return e?.split(`:`)[1]===`right`?1:-1}function rY(e){return e.result===null?e.tick-1:e.tick}var iY=50,aY=40,oY=40,sY=50,cY=[`jab`,`straight`,`hook`,`uppercut`];function lY(e,t,n,r){if(!Oq(e,t,n))return null;let i=r?.action_key?.split(`:`),a=e.detail.split(`:`).find(e=>cY.includes(e))??i?.[0],o=i?.[1]===`right`?`left`:`right`,s=e.amount;return e.detail.endsWith(`:head`)?n?.finish_method===`flash_ko`||e.kind===`counter_hit`&&s>=70?`head_burst`:a===`uppercut`&&s>=aY||a===`straight`&&s>=iY?`decapitation`:(a===`hook`||a===`jab`)&&s>=oY?`eye_${o}`:`jaw_dislocation`:a===`hook`?s>=sY?`dismember_${o}`:`shoulder_${o}`:`ribs_${o}`}function uY(){let e=document.createElement(`canvas`);e.width=128,e.height=128;let t=e.getContext(`2d`);if(t!==null){let e=t.createRadialGradient(64,64,8,64,64,62);e.addColorStop(0,`rgba(0,0,0,0.68)`),e.addColorStop(.6,`rgba(0,0,0,0.34)`),e.addColorStop(1,`rgba(0,0,0,0)`),t.fillStyle=e,t.fillRect(0,0,128,128)}return new ku(e)}var dY=.42,fY=.16;function pY(e){return .9*R.clamp(1-e/fY,0,1)}var mY=new B(0,.12,.02),hY=new B(0,1,0),gY=new WeakMap;function _Y(e){let t=gY.get(e);return t===void 0&&(t=Nv(e,IY),gY.set(e,t)),t}function vY(e){return e.y>Vg-1.4}var yY=new WeakMap;function bY(e){let t=yY.get(e);return t===void 0&&(t=Nv(e,vY),yY.set(e,t)),t}function xY(e,t,n){let r=e.bone(`head`);if(r===null)return null;e.root.updateMatrixWorld(!0);let i=e.headMesh,a=bY(i.geometry);if(a.length===0)return null;let o=t.length===a.length*3?t:new Float32Array(a.length*3);n.position.set(0,0,0);for(let[t,r]of a.entries())AY(e,r,n.scratch),n.scratch.toArray(o,t*3),n.position.add(n.scratch);return n.position.multiplyScalar(1/a.length),r.getWorldQuaternion(n.quaternion),n.across.set(1,0,0).applyQuaternion(n.quaternion),n.scratch.set(0,1,0).applyQuaternion(n.quaternion),n.quaternion.setFromUnitVectors(hY,n.scratch),o}function SY(e,t,n,r){let i=e?.currentRoot;return r.set(i?.x??n.x(t.x),0,i?.z??n.z(t.y))}function CY(e,t,n,r,i){let a=Math.hypot(e-n,t-r);return a>=i?{x:e,z:t}:a<1e-6?{x:n,z:r-i}:{x:n+(e-n)/a*i,z:r+(t-r)/a*i}}var wY=[0,1.05,-1.05,2.1,-2.1,Math.PI];function TY(e,t,n,r,i,a,o=[]){let s=n===null?0:Math.hypot(n.x,n.z),c=n!==null&&s>=.35?[Math.atan2(n.x,n.z)]:[];for(let e of wY)c.push(a+e);for(let n of c){let a=R.clamp(e+Math.sin(n)*r,-i,i),s=R.clamp(t+Math.cos(n)*r,-i,i),c=Math.hypot(a-e,s-t);if(!(c{let r=R.clamp(((n.x-e)*(a-e)+(n.z-t)*(s-t))/(c*c),.25,1);return Math.hypot(e+(a-e)*r-n.x,t+(s-t)*r-n.z)1e-9&&(s=Math.min(s,(Math.sign(n)*i-e)/n)),Math.abs(r)>1e-9&&(s=Math.min(s,(Math.sign(r)*a-t)/r));for(let i of[-1,1])for(let a of[-1,1]){let c=i*n+a*r;c>1e-9&&(s=Math.min(s,(o-i*e-a*t)/c))}return Math.max(0,s)}function DY(e,t,n,r,i,a,o,s=1/0){let c=Math.hypot(n-e,r-t);if(c>=i)return null;let l=c<1e-6?1:(n-e)/c,u=c<1e-6?0:(r-t)/c,d=i-c,f=EY(e,t,-l,-u,a,o,s),p=EY(n,r,l,u,a,o,s),m=Math.min(d/2,f),h=Math.min(d-m,p);m=Math.min(d-h,f);let g=R.clamp;return{ax:g(e-l*m,-a,a),ay:g(t-u*m,-o,o),bx:g(n+l*h,-a,a),by:g(r+u*h,-o,o)}}var OY=new WeakMap;function kY(e,t,n,r,i,a,o,s=null){let c=OY.get(e);if(c!==void 0&&c.width===t&&c.height===n)return c.top;let l=Oi(t,n,Ti(e,r,i,r.map(e=>a.total(e.player_id)),s),!0).y;return OY.set(e,{width:t,height:n,top:l}),l}function AY(e,t,n){let r=e.headMesh;return bb(n.fromBufferAttribute(r.geometry.getAttribute(`position`),t),e.look,n),r.applyBoneTransform(t,n).applyMatrix4(r.matrixWorld)}var jY=new Ss,MY=new Ss,NY=new Ds;function PY(e,t,n){let r=e.geometry;jY.fromBufferAttribute(r.getAttribute(`skinIndex`),t),MY.fromBufferAttribute(r.getAttribute(`skinWeight`),t),n.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);for(let t=0;t<4;t+=1){let r=MY.getComponent(t);if(r===0)continue;let i=jY.getComponent(t);NY.multiplyMatrices(e.skeleton.bones[i].matrixWorld,e.skeleton.boneInverses[i]);for(let e=0;e<16;e+=1)n.elements[e]+=NY.elements[e]*r}return n.premultiply(e.bindMatrixInverse).multiply(e.bindMatrix)}var FY=new B(-1,0,0);function IY(e){return e.y>zg-Bg*(e.z- -4)-.3}var LY={tick_rate:30,ring_half_width:500,ring_half_height:500};function RY(e,t,n,r,i,a,o=!0){let s=e.geometry,c=s.getAttribute(`position`),l=s.getIndex(),u=[],d=l!==null&&r===void 0?[]:null;if(l===null||d===null)for(let e=0;e=i.start+o))return{action:i.punchClass,action_hand:i.hand,action_target:`head`,action_power:`normal`,action_id:`idle-${n}-${r}`,action_key:`${i.punchClass}:${i.hand}:head:normal`,action_start_tick:e-(t-i.start),action_startup_ticks:a.startup,action_active_ticks:a.active,action_recovery_ticks:a.recovery,action_contact_tick:e-(t-i.start)+a.startup}}return{}}var GY=1000003,KY=1.6;function qY(e,t,n,r,i,a){let o=r<0?-1:1,s=o=>Math.hypot(R.clamp(e+n*o*i,-a,a)-e,R.clamp(t+r*o*i,-a,a)-t);return s(o)>=i*.8||s(o)>=s(-o)?o:-o}function JY(e,t,n){return t?e.kind===`knockdown`?1:Math.min(1,.35+e.amount/400):(n===`full`?1:n===`reduced`?.4:0)*(e.kind===`knockdown`?.85:e.amount>=50?Math.min(.75,(e.amount-30)/140):0)}function YY(e){if(e.kind!==`hit`&&e.kind!==`counter_hit`||e.amount<(e.detail.endsWith(`:body`)?70:50))return null;let t=Math.min(100,Math.max(0,e.blood));return{seconds:.6+t/50,rate:150+e.amount*1.5+t*2}}function XY(e,t){return t===`full`?e>100?Math.min(.65,e/1800):0:e>350?Math.min(.3,e/4600):0}function ZY(e){return!e.is_downed&&e.stunned_ticks===0&&e.clinch_ticks===0&&e.clinch_startup_ticks===0&&e.taunt_ticks===0&&!e.is_foul_recovery_target}function QY(e,t){if(e===null)return null;let n=t.fighters.find(t=>t.player_id===e.target_id),r=t.fighters.find(t=>t.player_id===e.actor_id);return lY(e,n===void 0?void 0:{...n,is_downed:!0},{finish_method:`ko`,winner_id:e.actor_id},r)}var $Y=.2,eX=1.1,tX=1.6,nX=2.4,rX=2,iX=new B(0,-.1,.08),aX=new B(0,-.07,.1),oX=new B(0,-.35,1),sX=3,cX=320,lX=8,uX=1.6,dX=.08,fX=.12,pX=e=>e===`shoulder_left`||e===`shoulder_right`||e===`ribs_left`||e===`ribs_right`?e:`mouth`;function mX(e,t,n=eX){return Math.min(n,.06+.08*Math.sqrt(Math.max(0,e))*Math.min(1.6,Math.max(0,t)))}function hX(e,t,n){return e.is_downed||t?.isDown===!0||n!==void 0&&e.player_id===n}var gX=6,_X=11,vX=.13;function yX(e,t){let n=t===`left`?`leftRibs`:`rightRibs`;e.impact(n,[t===`left`?-6:gX,-6*.15,-1.5],_X),e.set(n,{bruise:1.2,swell:0,blood:1.4})}function bX(e,t){e.set(`mouth`,{cut:1,blood:1.4}),e.set(`chin`,{bruise:1.2}),t.set(`neckSmear`,{blood:1.4})}function xX(e,t){e.set(t===`left`?`leftShoulderSmear`:`rightShoulderSmear`,{blood:1.4}),e.set(t===`left`?`leftPec`:`rightPec`,{bruise:1.1})}var SX=new WeakMap;function CX(e,t){let n=SX.get(e);if(n===void 0){let t=e.getAttribute(`position`),r=new B,i=new B,a=b_.map(e=>{let n=0,a=1/0;i.set(e[0],e[1],e[2]);for(let e=0;ethis.onAnnouncement?.(e),cue:e=>this.onCrowdCue?.(e)});touchControls=Re();resultAnnounced=!1;captionText=``;rocked=new nq;tmpA=new B;tmpB=new B;contactPoint=new B;cornerPanelTop=null;mouthPoint=new B;tmpHead=new B;tmpHeadQuaternion=new rs;tmpStump=new B;tmpStumpOffset=new B;tmpStumpQuaternion=new rs;tmpStumpAcross=new B;tmpPart=new B;tmpPartQuaternion=new rs;woundPoint=new B;woundAxis=new B;constructor(e,t=LY,n,r={}){this.canvas=e,this.simulation=t,this.settings=n,this.manualClock=r.manualClock===!0,this.localInput=r.localInput??null,this.powerHeld=r.powerHeld??null,this.inputSequenceOf=r.inputSequenceOf??null,this.buffer=new lR(8,t.tick_rate),this.mapping=rv(t),this.renderer=new Mg({canvas:e,antialias:!0,powerPreference:`high-performance`,preserveDrawingBuffer:r.manualClock===!0}),this.renderer.shadowMap.enabled=!0,this.renderer.shadowMap.type=1,this.renderer.toneMapping=4,this.renderer.toneMappingExposure=1,this.renderer.setPixelRatio(this.basePixelRatio),this.scene.background=new V(`#04060b`),this.scene.fog=new lc(`#04060b`,.042),this.camera=new Af(36,1,.1,80),this.camera.position.set(0,2.05,5.9),this.camera.lookAt(0,1.05,0),this.setupLights(),this.ring=xw(),this.scene.add(this.ring.group),this.arena=RB(),this.scene.add(this.arena.group),this.effects=new GK(this.scene,Re()?1024:2048,Re()?vW:_W),this.effects.useUploader(this.renderer),this.effects.setCamera(this.camera),this.carnage=new NH(this.effects,BY),this.blobTexture=uY();let i=new hd(1,1);for(let e=0;e<3;e+=1){let t=new H(i,new yl({map:this.blobTexture,transparent:!0,depthWrite:!1}));t.rotation.x=-Math.PI/2,t.position.y=.006+e*4e-4,t.renderOrder=1,this.blobShadows.push(t),this.scene.add(t)}for(let e=0;e<4;e+=1){let t=new H(i,new yl({map:this.blobTexture,transparent:!0,depthWrite:!1}));t.rotation.x=-Math.PI/2,t.position.y=.0075+e*4e-4,t.scale.set(dY,dY,1),t.renderOrder=1,t.visible=!1,this.footShadows.push(t),this.scene.add(t)}this.composer=new jz(this.renderer),this.composer.addPass(new Mz(this.scene,this.camera));let a=new Pz(new z(1280,720),.22,.35,1.5);this.bloomPass=a,this.composer.addPass(a),this.finishPass=new Oz(yJ),this.composer.addPass(this.finishPass),this.composer.addPass(new Iz),this.hudCanvas=document.createElement(`canvas`),this.hudCanvas.className=`fight-hud`,this.hudCanvas.style.cssText=`position:absolute;inset:0;width:100%;height:100%;pointer-events:none`,e.insertAdjacentElement(`afterend`,this.hudCanvas),this.bloodLevel=n().blood,this.effects.setBloodLevel(this.bloodLevel),this.ensureGraphs(),this.manualClock||(this.raf=requestAnimationFrame(e=>this.draw(e)))}ensureGraphs(){this.glbLoading||this.graphs!==null||(this.glbLoading=!0,this.graphsReady=Pw().then(async e=>{if(this.destroyed)return;let t=new qw(e,{skin:11563071,gear:1920728}),n=new qw(e,{skin:7225640,gear:12131356});this.graphs=[new TT(t,this.mapping),new TT(n,this.mapping)];let r=[this.carnage.attach(0,this.graphs[0]),this.carnage.attach(1,this.graphs[1])];this.lookIds.fill(null),this.syncInjuryPresentation(0),this.syncInjuryPresentation(1);let i=new qw(e,{skin:13081462,gear:3889080,look:cb.referee,outfit:Ab,wounds:!0});this.referee=new TT(i,this.mapping,{referee:!0,knockout:!0});let a=new qw(e,{skin:9067067,gear:1778224,look:cb.blueCorner,outfit:jb}),o=new qw(e,{skin:14264188,gear:1778224,look:cb.redCorner,outfit:Mb});this.cornermen=[new TT(a,this.mapping,{referee:!0}),new TT(o,this.mapping,{referee:!0})];let s=new qw(e,{skin:12160102,gear:1778224,look:cb.blueCutman,outfit:Nb}),c=new qw(e,{skin:5913126,gear:1778224,look:cb.redCutman,outfit:Nb});this.cutmen=[new TT(s,this.mapping,{referee:!0}),new TT(c,this.mapping,{referee:!0})],s.root.visible=!1,c.root.visible=!1,this.trails=[1920728,12131356].flatMap(e=>[0,1].map(()=>new wq(new V(e).lerp(new V(16777215),.55))));let l=gq();this.glowMap=l,this.glows=[0,1,2,3].map(()=>new vq(l)),this.impactFlashes=[0,1].map(()=>new yq(l));let u=new tc;u.add(t.root,n.root,i.root,a.root,o.root,s.root,c.root,...this.trails.map(e=>e.mesh),...this.effects.compileStandIns(),...r.flatMap(e=>e.compileStandIns()),this.glows[0].standIn(),...this.impactFlashes[0].standIns()),u.add(this.carnage.xray.standIn());let d=t.headInjury.open;t.headInjury.setOpen(!0);try{await Aq(this.renderer,this.composer,u,this.camera,this.scene)}catch{}if(!this.destroyed){this.scene.add(t.root,n.root,i.root,a.root,o.root,s.root,c.root);for(let e of this.trails)this.scene.add(e.mesh);for(let e of this.glows)this.scene.add(e.mesh);for(let e of this.impactFlashes)this.scene.add(e.group);this.compileShadowsOf(u),t.headInjury.setOpen(d)}}).catch(e=>{this.glbLoading=!1,console.error(`boxer_glb_load_failed`,e)}))}compileShadowsOf(e){let t=this.keyLight;if(t!==null&&e.children.length!==0){for(let t of e.children)t.frustumCulled=!1,t.onBeforeShadow=(e,t,n,r,i,a)=>{a.needsUpdate=!0};this.scene.add(e),t.shadow.needsUpdate=!0,this.renderer.setRenderTarget(this.composer.readBuffer);try{this.renderer.render(this.scene,this.camera)}catch{}finally{this.renderer.setRenderTarget(null),this.scene.remove(e)}}}get ready(){return this.graphsReady}get labRigs(){let e=this.graphs;return e===null?[]:[e[0].boxer.root,e[1].boxer.root]}get labScene(){return this.scene}get labEffects(){return this.effects}labSetCameraOverride(e,t){this.cameraOverride={position:new B(...e),lookAt:new B(...t)}}labFrame(e,t=!0){this.draw(e*1e3,!0,t)}setCornerPanelTop(e){this.cornerPanelTop=e}viewForward(){return this.ownViewActive?(this.ownForward.x=this.fighterCam.forwardX,this.ownForward.z=this.fighterCam.forwardZ,this.ownForward):null}setPlayers(e,t,n=Object.keys(e)){this.players=e,this.viewerId=t,this.playerOrder=n}updateIdleFighters(e,t,n){let r=this.graphs;if(r===null)return;let i=this.playerOrder.filter(e=>this.players[e]!==void 0).length<2;for(let[a,o]of r.entries()){let r=this.playerOrder[a]??`seat-${a}`,s=!i||r===this.viewerId||this.viewerId===null&&a===0;if(o.boxer.root.visible=s,!s)continue;this.wearLook(a===0?0:1,r);let c=a===0?-1:1,l=Math.floor(t*this.simulation.tick_rate),u={...VY(r),x:i?0:c*180,y:i?-70:0,facing:i?1:-c,facing_x:i?0:-c*1e3,facing_y:i?-1e3:0,...i?WY(l):{}},d={...VY(this.playerOrder[1-a]??`opponent`),x:i?0:-c*180,y:i?-150:0};o.setResting(!1),o.update(u,d,e,t,this.settings().reducedMotion,this.bloodLevel,i?l:n)}}setFinal(e){if(e!==null&&e.match_id===this.final?.match_id)return;this.final=e,this.stoppageWinner=-1,this.stoppageRaiseAt=1/0,this.stoppageSpot=null,this.raiseFramed=!1,this.ceremony=this.ceremonyFor(e);let t=e?.method===`draw`&&this.deaths.every(e=>e!==null);if(this.finalRevealAt=this.frameSeconds+(this.ceremony===null?t?Qr:ei(e):OJ),this.ovationUntil=e===null?0:this.frameSeconds+AJ,e!==null&&this.commentary.finish(e,this.players,this.ceremony!==null,this.frameSeconds),this.ceremony===null&&this.endCeremony(),this.pendingFinish=null,e===null||!Zr.has(e.method))return;let n=this.lastKnockdown===null?null:oq(this.history,this.lastKnockdown.hit??this.lastKnockdown.knockdown,this.simulation.tick_rate),r=this.finishingInjury(e);if(n!==null&&this.graphs!==null&&!this.settings().reducedMotion){r!==null&&(this.replayInjuries[r.index]={injury:r.injury,event:r.event}),this.startReplay(n);return}if(r!==null){let e=this.pendingContacts.find(e=>e.event.event_id===r.event.event_id);e===void 0?this.applyArcadeInjury(r.index,r.injury,r.event):e.injury??=r.injury}let i=this.buffer.latest()?.result?.tick;i===void 0?this.presentFinish(e):this.pendingFinish={final:e,tick:i,latestAt:this.frameSeconds+tJ}}presentFinishWhenShown(e){let t=this.pendingFinish;t===null||ee.player_id===t.hit.target_id)??-1;return r<0||this.arcadeInjuries[r]!==null?null:{index:r,injury:t.finisher,event:t.hit}}ceremonyFor(e){let t=this.buffer.latest()?.fighters;if(e===null||t===void 0||e.method!==`decision`&&e.method!==`draw`||t.some(e=>e.is_downed)||this.deaths.some(e=>e!==null))return null;let n=t.findIndex(t=>t.player_id===e.winner_id);return{winnerSeat:n===0||n===1?n:null,positions:null,refereeArrived:!1,arrivedAt:null,announced:!1}}endCeremony(){for(let e of this.graphs??[])e.awaitVerdict(null);this.referee?.raise(null,null)}ceremonyFighters(e,t,n,r,i=null){e.positions===null&&(e.positions=[{x:t[0].x+(i?.[0].x??0),y:t[0].y+(i?.[0].y??0)},{x:t[1].x+(i?.[1].x??0),y:t[1].y+(i?.[1].y??0)}],e.marks=e.positions[0].x<=e.positions[1].x?[0,1]:[1,0]);let a=e.marks??xJ,o=e.refereeArrived;for(let r of[0,1]){let i=e.positions[r],s=a[r],c=kJ(i.x,i.y,bJ[s],TJ*n),l=Math.hypot(c.x-i.x,c.y-i.y),u=n>0?1/(n*this.simulation.tick_rate):0,d=!c.arrived&&l>1e-6;Object.assign(this.drawnFighters[r],t[r],{x:c.x,y:c.y,velocity_x:(c.x-i.x)*u,velocity_y:(c.y-i.y)*u,facing_x:d?Math.round((c.x-i.x)/l*1e3):0,facing_y:d?Math.round((c.y-i.y)/l*1e3):-1e3,facing:d&&c.x=DJ){e.announced=!0,this.commentary.verdict(this.frameSeconds);for(let t of[0,1])this.graphs?.[t]?.announce(e.winnerSeat===null?`level`:e.winnerSeat===t?`winner`:`loser`);this.finalRevealAt=Math.min(this.finalRevealAt,this.frameSeconds+.35),this.arena.excite(1)}if(e.announced){let n=n=>{let r=a[0]===n?0:1,i=e.winnerSeat===null||e.winnerSeat===r,o=ct(t[r].injuries,n===0?`left`:`right`)===`whole`,s=this.graphs?.[r]?.boxer.rig.bones[n===0?`gloveL`:`gloveR`];return i&&o&&s!==void 0?s.getWorldPosition(this.ceremonyWrists[n]):null};this.referee?.isDown!==!0&&this.referee?.raise(n(1),n(0))}return this.drawnFighters}ceremonyFrame(e){let t=this.ceremony,n=this.buffer.latest();if(t===null||t.arrivedAt===null||this.replay!==null||this.final===null||n===null)return null;let{width:r,height:i}=this.hudViewport,a=kY(this.final,r,i,n.fighters,this.players,this.roundStats,this.viewerId),o=rV(this.camera.aspect,this.camera.fov,(i-a)/Math.max(1,i)),s=this.settings().reducedMotion?0:Math.sin((e-t.arrivedAt)*.35)*.06*o.distance;return this.cornerPosition.set(s,o.height+.05*o.distance,o.distance),this.cornerLookAt.set(0,o.height,0),{position:this.cornerPosition,lookAt:this.cornerLookAt,framed:!0}}raiseFrame(e,t,n){let r=this.buffer.latest();if(this.stoppageWinner<0||this.final===null||this.replay!==null||this.ceremony!==null||r===null||e0?-1:1)*Xq,o=this.stoppageSpot?.z??0;this.raiseFramed||this.raiseCentre.set(i.x+a/2,0,i.z+o/2),this.raiseCentre.lerp(this.tmpCamera.set(i.x+a/2,0,i.z+o/2),1-Math.exp(-3*t)),this.raiseFramed=!0;let{width:s,height:c}=this.hudViewport,l=kY(this.final,s,c,r.fighters,this.players,this.roundStats,this.viewerId,this.deaths[0]??this.deaths[1]),u=rV(this.camera.aspect,this.baseFov,(c-l)/Math.max(1,c)),d=e-(this.stoppageRaiseAt-Yq),f=n?0:Math.sin(d*.35)*.06*u.distance;return this.cornerPosition.set(R.clamp(this.raiseCentre.x,-1.4,1.4)+f,u.height+.05*u.distance,this.raiseCentre.z+u.distance),this.cornerLookAt.set(this.raiseCentre.x,u.height,this.raiseCentre.z),{position:this.cornerPosition,lookAt:this.cornerLookAt,framed:!0}}presentFinish(e){let t=this.buffer.latest()?.referee.alive===!1;t||this.referee?.waveOff(void 0,e.method===`death`);let n=this.buffer.latest()?.fighters,r=n?.findIndex(t=>t.player_id!==e.winner_id&&t.player_id!==null)??-1;if(r>=0&&this.headCacheValid[r]&&!this.settings().reducedMotion&&!this.carnage.gibbed(r)&&(this.finishCloseUpIndex=r,this.finishCloseUpUntil=this.frameSeconds+Hq,this.finishCloseUpBearing=null,this.finishCloseUpAt=this.frameSeconds),e.winner_id===null)return;let i=n?.findIndex(t=>t.player_id===e.winner_id)??-1;if(i<0)return;this.graphs?.[i]?.celebrate(Jq);let a=n?.[i]?.injuries??[];!t&&(YJ(a,`left`)||YJ(a,`right`))&&(this.stoppageWinner=i,this.stoppageRaiseAt=this.frameSeconds+Yq)}cornerShotFrame(e,t,n){if(t===null||t.phase!==`rest`||n||this.graphs===null)return null;let r=t.fighters.findIndex(e=>e.player_id===this.viewerId),i=e-this.restStartedAt,a=YB(i,t.phase_ticks_remaining/this.simulation.tick_rate,+(r===1));return a===null||!this.graphs[a].stoolVisible||this.cutmen!==null&&this.cutmanProgress[a]<_J?null:(tV(a,this.mapping.x(l),XB(i),this.cornerPosition,this.cornerLookAt),{position:this.cornerPosition,lookAt:this.cornerLookAt})}restWideFrame(e){if(e?.phase!==`rest`||this.portraitPull<=Wq)return null;let t=+(e.fighters.findIndex(e=>e.player_id===this.viewerId)===1),n=this.mapping.x(l);return eV(t,n,-3.5,Gq,this.cornerPosition).setY(Kq),eV(t,n,0,0,this.cornerLookAt),this.cornerLookAt.lerp(eV(+(t===0),n,0,0,this.tmpCamera),qq).setY(.9),{position:this.cornerPosition,lookAt:this.cornerLookAt,framed:!0}}closeUpFrame(e){if(e>=this.finishCloseUpUntil||this.finishCloseUpIndex<0||!this.headCacheValid[this.finishCloseUpIndex])return null;let t=this.arcadeInjuries[this.finishCloseUpIndex],n=t===`decapitation`&&this.effects.severedHeadPosition(this.finishCloseUpIndex,this.closeUpTarget),r=!n&&this.effects.partPosition(PH(this.finishCloseUpIndex,`upper_body`),this.closeUpTarget),i=n||r?null:this.graphs?.[this.finishCloseUpIndex]?.fallBody??null;if(this.finishCloseUpBearing===null&&i!==null&&!i.body.asleep&&e-this.finishCloseUpAt.4?u:.9,a)}let d=this.finishCloseUpBearing+l;return this.closeUpPosition.set(R.clamp(s.x+Math.sin(d)*c,-2.2,rJ),s.y+(n?.42:o?.5:.75),R.clamp(s.z+Math.cos(d)*c,-2.2,rJ)),this.replayLookAt.copy(s),{position:this.closeUpPosition,lookAt:this.replayLookAt,tight:!0}}raiseSpot(e,t){let n=e.x>0?-1:1,r={x:n*Xq,z:0},i=-1/0;for(let[a,o]of Zq){let s=e.x+n*a*Xq,c=e.z+o*Xq,l=Math.min(eJ-Math.abs(s),eJ-Math.abs(c),Math.hypot(s-t.x,c-t.z)-$q);for(let e of this.graphs??[]){let t=e.fallBody;if(t!==null)for(let e of[0,1,2,3,4])t.bodyPoint(e,this.bodyPoint),l=Math.min(l,Math.hypot(s-this.bodyPoint.x,c-this.bodyPoint.z)-sJ-.05)}for(let e of[0,1])this.effects.severedHeadPosition(e,this.closeUpTarget)&&(l=Math.min(l,Math.hypot(s-this.closeUpTarget.x,c-this.closeUpTarget.z)-iJ-.05));if(l>=0)return{x:s-e.x,z:c-e.z};l>i&&(i=l,r={x:s-e.x,z:c-e.z})}return r}nearerGlove(e,t){e.getWorldPosition(this.stoppageWrist),t.getWorldPosition(this.stoppageOtherWrist);let n=e=>Math.hypot(e.x-this.refereePosition.x,e.z-this.refereePosition.z);return n(this.stoppageOtherWrist)-.5*n.length()}startReplay(e){let t=new lR(e.snapshots.length+2,this.simulation.tick_rate);for(let n of e.snapshots)t.push(n);if(this.replay={plan:e,buffer:t,startedAt:this.frameSeconds,impactFired:!1,side:null},this.drawnOffsetsLive=!1,this.commentary.replay(this.frameSeconds,e.impact),this.replayFollow=0,this.replayFollowAt=0,e.impact.kind===`referee_down`){this.referee?.resetTransient(!1),this.referee?.primeReplayFall(),this.effects.stopGush(2);return}for(let e=this.pendingGore.length-1;e>=0;--e)this.pendingGore[e].event.kind!==`injury`&&this.pendingGore.splice(e,1);for(let e of[0,1]){this.effects.stopGush(e),this.deaths[e]!==null&&this.carnage.undoDeath(e);let t=this.arcadeInjuries[e],n=this.arcadeInjuryEvents[e];t!==null&&n!==null&&(this.replayInjuries[e]={injury:t,event:n},this.restoreInjury(e))}for(let t of this.pendingContacts.splice(0)){let n=t.recipientIndex;t.injury!==null&&(n===0||n===1)&&this.replayInjuries[n]===null&&this.arcadeInjuries[n]===null&&(this.replayInjuries[n]={injury:t.injury,event:t.event}),t.event.event_id!==e.impact.event_id&&(t.injury=null,t.contactTick=1/0,this.pendingContacts.push(t))}let n=e.snapshots[0]?.fighters.findIndex(t=>t.player_id===e.impact.target_id)??-1;n>=0&&e.impact.detail.endsWith(`:head`)&&this.effects.returnMouthpiece(n);let r=this.lastKnockdown?.knockdown.detail===aJ;for(let[t,i]of(this.graphs??[]).entries()){let a=this.liveFallTicks[t]??null;i.resetTransient(!1),a!==null&&a>=e.impact.tick-1&&i.primeReplayFall(),t===n&&r&&i.fallToKnee(!0)}this.finalRevealAt=this.frameSeconds+e.durationSeconds+ei(this.final)}endReplay(){let e=this.replay?.plan.impact.kind===`referee_down`;if(this.replay=null,e){this.drawnOffsetsLive=!1;let e=this.buffer.latest();for(let[t,n]of(this.graphs??[]).entries())n.resetTransient(e?.fighters[t]?.is_downed===!0);return}this.drawnOffsetsLive=!1,this.reapplyReplayInjuries();let t=this.buffer.latest();for(let[e,n]of(this.graphs??[]).entries()){let r=t?.fighters[e],i=r!==void 0&&r.player_id===this.flashKnockout?.loserId;n.resetTransient(r?.is_downed===!0||i),i&&n.knockOut()}for(let e of[0,1])this.showDeath(e,0,!0);this.final!==null&&this.presentFinish(this.final)}fireRefereeEvents(e){for(let t=0;te){t+=1;continue}this.pendingRefereeEvents.splice(t,1);let r=this.buffer.latest();n.kind===`referee_down`?(r!==null&&this.fireRefereeFall(n,r),this.eventCallout={text:`THE REFEREE IS DEAD!`,until:this.frameSeconds+zJ},this.refereeReplayAt={at:this.frameSeconds+RJ,impact:n}):n.kind===`referee_hit`?r!==null&&this.punchReferee(n,r,!1):this.referee!==null&&(this.referee.boxer.rig.bones.head.getWorldPosition(this.refereeHead),this.effects.addEvent(n,this.refereeHead,this.settings().reducedMotion))}}punchReferee(e,t,n){let r=this.referee;if(r===null)return;let[i,a]=e.detail.split(`:`),o=t.fighters.findIndex(t=>t.player_id===e.actor_id),s=t.fighters[o],c=s?.action_key?.split(`:`)[1]??null;r.react(`hit`,a===`body`?`body`:`head`,e.direction,i,c,n?Math.max(e.amount,140):e.amount),r.boxer.rig.bones.head.getWorldPosition(this.refereeHead);let l=s===void 0?void 0:Iq(s,{...s,x:t.referee.x,y:t.referee.y},this.mapping),u=this.settings().reducedMotion;this.effects.addEvent({...e,kind:n?`knockdown`:`hit`},this.refereeHead,u,l);let d=n||u?null:YY({...e,kind:`hit`}),f=d===null?null:this.refereeMouth();d!==null&&f!==null&&this.effects.gush(2,f.position,f.axis,d.seconds,d.rate,e.event_id);let p=this.refereePunchPower(e);o>=0&&this.graphs?.[o]?.landedHit(e.action_id,!1,p),this.onContact?.(e,p)}fireRefereeFall(e,t,n=!1){let r=this.referee;if(r===null)return;let i=n?this.refereeBlow(e):null;i===null?(r.boxer.rig.bones.head.getWorldPosition(this.refereeHead),this.effects.addEvent({...e,kind:`knockdown`,amount:160,blood:80},this.refereeHead,this.settings().reducedMotion)):this.punchReferee(i,t,!0);let a=this.settings().reducedMotion?null:this.refereeMouth();a!==null&&this.effects.gush(2,a.position,a.axis,sX,cX,e.event_id),r.knockOut(),this.onContact?.(e,!1)}refereePunchPower(e){for(let t=this.history.length-1;t>=0;--t){let n=this.history[t];if(n.tickt.player_id===e.actor_id);return r!==void 0&&r.action_id===e.action_id&&r.action_power===`power`}return!1}refereeBlow(e){if(e.action_id===null)return null;for(let t=this.history.length-1;t>=0;--t){let n=this.history[t],r=n.events.find(t=>t.kind===`referee_hit`&&t.action_id===e.action_id&&t.tick===e.tick);if(r!==void 0)return r;if(n.tick=0?e.fighters[a]:void 0,l=c?.action_key?.split(`:`)??[],u=l[0]??null,d=l[1]??null,f=l[3]===`power`;this.graphs?.[i]?.react(`hit`,r.detail.endsWith(`:body`)?`body`:`head`,r.direction,u,d,r.amount),n.knockdown.detail===`body`&&n.knockdown.tick>r.tick&&this.graphs?.[i]?.windedFor((n.knockdown.tick-r.tick)/this.simulation.tick_rate+.15,nY(c?.action_key??null)),o.player_id===this.flashKnockout?.loserId&&this.graphs?.[i]?.knockOut(),a>=0&&this.graphs?.[a]?.landedHit(r.action_id,n.blocked,f),r.detail.endsWith(`:head`)&&!this.settings().reducedMotion&&this.knockOutMouthpiece(i,s??r.direction,r.event_id+GY,!0),f&&!n.blocked&&!this.settings().reducedMotion&&this.presentPowerHit(i,r),this.onContact?.(r,f),this.reapplyReplayInjuries(s),this.deaths[i]!=null&&(this.showDeath(i,s??r.direction,!0),this.announceDeath(i));for(let e of this.pendingGore.splice(0))this.presentGore(e.event);for(let t of this.pendingContacts)t.contactTick===1/0&&(t.contactTick=this.replay?.plan.impact.tick??e.tick)}replayFrame(e,t){let[n,r]=e.fighters,i=this.mapping.x(n.x),a=this.mapping.z(n.y),o=this.mapping.x(r.x),s=this.mapping.z(r.y),c=this.replay?.plan.impact.kind===`referee_down`,l=e.fighters.findIndex(e=>e.player_id===this.replay?.plan.impact.target_id),u=this.replay?.impactFired===!0&&l>=0&&this.headCacheValid[l]===!0;if(c&&this.referee!==null)return this.refereeReplayFrame(e,t);let d=1-Math.exp(-3*Math.max(0,t-this.replayFollowAt));this.replayFollowAt=t,this.replayFollow+=(+!!u-this.replayFollow)*d;let f=l<0?0:Math.max(this.portraitPull>1.3?.7:0,this.replayFollow*.8),p=u?this.headCache[l].x:l===1?o:i,m=u?this.headCache[l].z:l===1?s:a,h=(i+o)/2+(p-(i+o)/2)*f,g=(a+s)/2+(m-(a+s)/2)*f,_=-(s-a),v=o-i,y=Math.hypot(_,v)||1;_/=y,v/=y;let b=2.5,x=this.replay;x!==null&&x.side===null&&(x.side=qY(h,g,_,v,b,rJ));let S=x?.side??(v<0?-1:1);_*=S,v*=S;let C=.35*Math.sin(t*.7),w=_*Math.cos(C)-v*Math.sin(C),T=_*Math.sin(C)+v*Math.cos(C);this.replayCameraPosition.set(R.clamp(h+w*b,-2.2,rJ),1.38-Math.min(.25,t*.05),R.clamp(g+T*b,-2.2,rJ));let E=Math.hypot(this.replayCameraPosition.x-h,this.replayCameraPosition.z-g),D=Math.hypot(h,g);if(E.01){let e=KY-E;this.replayCameraPosition.x=R.clamp(this.replayCameraPosition.x-h/D*e,-2.2,rJ),this.replayCameraPosition.z=R.clamp(this.replayCameraPosition.z-g/D*e,-2.2,rJ)}let O=u?R.clamp(this.headCache[l].y,.45,1.28):1.28;this.replayLookAt.set(h,1.28+(O-1.28)*this.replayFollow,g);let k=this.settings().reducedMotion?0:this.powerShake;if(k>5e-4){let e=t*61;this.replayCameraPosition.x=R.clamp(this.replayCameraPosition.x+Math.sin(e*1.31)*k,-2.2,rJ),this.replayCameraPosition.y+=Math.cos(e*1.97)*k*.6,this.replayLookAt.x+=Math.sin(e*1.53)*k*.5,this.replayLookAt.y+=Math.cos(e*2.11)*k*.35}return{position:this.replayCameraPosition,lookAt:this.replayLookAt,tight:!0}}setInputLatency(e){this.inputLatencyMs=e,this.lagWarned=ni(e,this.lagWarned)}resyncClock(){this.buffer.resync()}setReconnect(e){this.reconnectMs=e}setBloodLevel(e){e!==`full`&&this.bloodLevel===`full`&&this.restoreAllInjuries(),this.bloodLevel=e,e===`off`&&this.downedPoolAccumulators.fill(0),this.effects.setBloodLevel(e)}setReducedMotion(e){e&&(this.restoreAllInjuries(),this.effects.clearDynamic())}syncInjuryPresentation(e){let t=this.arcadeInjuries[e],n=this.graphs;if(n!==null){let r=n[e];t===`head_burst`?r.boxer.setHeadBurst(!0):r.boxer.setDecapitated(t===`decapitation`),r.boxer.headInjury.setEyeOut(t===`eye_left`||t===`eye_right`?`both`:null),r.boxer.setHandDismembered(`left`,t===`dismember_left`),r.boxer.setHandDismembered(`right`,t===`dismember_right`);let i=t===`jaw_dislocation`?`jaw`:t===`shoulder_left`||t===`shoulder_right`?t:null;r.setArcadeDislocation(i)}}applyArcadeInjury(e,t,n,r){t===`dismember_left`&&!this.carnage.hasGlove(e,`left`)?t=`ribs_left`:t===`dismember_right`&&!this.carnage.hasGlove(e,`right`)?t=`ribs_right`:(t===`eye_left`&&this.carnage.eyeBurst(e,`left`)||t===`eye_right`&&this.carnage.eyeBurst(e,`right`))&&(t=`jaw_dislocation`);let i=!1;if(t===`decapitation`){let t=this.headWorldPose(e);if(t!==null){let a=this.graphs?.[e],o=a===void 0?void 0:zY(a.boxer,t.position,t.quaternion);this.effects.decapitate(e,t.position,t.quaternion,r??n.direction,n.event_id,this.skinColor(e),o);let s=this.stumpWorldPose(e);s!==null&&this.effects.anchorStump(e,s.position,s.quaternion,s.rim,s.across),i=!0}}else if(t===`head_burst`){let t=this.headWorldPose(e);if(t!==null){this.effects.burstHead(e,t.position,r??n.direction,n.event_id);let a=this.burstStumpPose(e);a!==null&&this.effects.anchorStump(e,a.position,a.quaternion,a.rim,a.across),i=!0}}else if(t===`eye_left`||t===`eye_right`){let a=this.graphs?.[e]?.boxer,o=t===`eye_left`?`left`:`right`;if(a!==void 0&&wX(a,o,this.tmpPart,this.tmpStumpOffset,this.tmpPartQuaternion)){let t=r??n.direction;this.effects.gougeEye(e,this.tmpPart,this.tmpStumpOffset,t,n.event_id,o);let s=o===`left`?`right`:`left`;!this.effects.eyeOut(e,s)&&!this.carnage.eyeBurst(e,s)&&wX(a,s,this.tmpPart,this.tmpStumpOffset,this.tmpPartQuaternion)&&this.effects.spawnDebris(`eye`,this.tmpPart,t,1,n.event_id,uX,e),i=!0}}else if(t===`dismember_left`||t===`dismember_right`){let a=t===`dismember_left`?`left`:`right`,o=this.handWorldPose(e,a);if(o!==null){let t=this.graphs?.[e],s=t===void 0?void 0:{...RY(t.boxer.gloveMesh(a),o.position,o.quaternion),gloveBlood:t.boxer.gloveBloodLevel};this.effects.dismemberHand(e,a,o.position,o.quaternion,r??n.direction,n.event_id,this.gearColor(e),s),this.effects.anchorHandStump(e,a,o.position,o.quaternion),i=!0}}else if(t===`jaw_dislocation`||t===`shoulder_left`||t===`shoulder_right`||t===`ribs_left`||t===`ribs_right`){let a=this.tornWound(e,pX(t));a!==null&&(this.effects.tearOpen(e,a.position,a.axis,r??n.direction,n.event_id,t===`jaw_dislocation`?lX:0),i=!0)}return i?(this.arcadeInjuries[e]=t,this.arcadeInjuryEvents[e]=n,this.observedInjuryDown[e]=!1,this.syncInjuryPresentation(e),this.onArcadeInjury?.(t,n),!0):!1}reapplyReplayInjuries(e){for(let t of[0,1]){let n=this.replayInjuries[t];if(n===null)continue;this.replayInjuries[t]=null;let r=this.settings();r.blood!==`full`||r.reducedMotion||this.applyArcadeInjury(t,n.injury,{...n.event,event_id:n.event.event_id+GY},e)}}restoreInjury(e){this.arcadeInjuries[e]!==null&&(this.arcadeInjuries[e]=null,this.arcadeInjuryEvents[e]=null,this.observedInjuryDown[e]=!1,this.syncInjuryPresentation(e),this.effects.restoreFighter(e))}restoreAllInjuries(){this.restoreInjury(0),this.restoreInjury(1),this.effects.clearArcadeGore()}headWorldPose(e){let t=this.graphs,n=t===null?null:t[e].boxer.bone(`head`);return n===null||t===null?null:(t[e].boxer.root.updateMatrixWorld(!0),n.getWorldPosition(this.tmpHead),n.getWorldQuaternion(this.tmpHeadQuaternion),this.tmpStumpOffset.copy(mY).applyQuaternion(this.tmpHeadQuaternion),this.tmpHead.add(this.tmpStumpOffset),{position:this.tmpHead,quaternion:this.tmpHeadQuaternion})}handWorldPose(e,t){let n=this.graphs,r=n===null?null:n[e].boxer.bone(t===`left`?`gloveL`:`gloveR`);return r===null||n===null?null:(n[e].boxer.root.updateMatrixWorld(!0),r.getWorldPosition(this.tmpPart),r.getWorldQuaternion(this.tmpPartQuaternion),{position:this.tmpPart,quaternion:this.tmpPartQuaternion})}gearColor(e){return this.graphs?.[e]?.boxer.gearBaseColor.getHex()??1920728}skinColor(e){return this.graphs?.[e]?.boxer.skinBaseColor.getHex()??11563071}stumpWorldPose(e){let t=this.graphs?.[e]?.boxer,n=t?.bone(`head`);if(t===void 0||n==null)return null;t.root.updateMatrixWorld(!0);let r=t.headMesh,i=_Y(r.geometry);if(i.length===0)return null;this.stumpRim.length!==i.length*3&&(this.stumpRim=new Float32Array(i.length*3)),this.tmpStump.set(0,0,0);for(let[e,n]of i.entries())AY(t,n,this.tmpStumpOffset),this.tmpStumpOffset.toArray(this.stumpRim,e*3),this.tmpStump.add(this.tmpStumpOffset);return this.tmpStump.multiplyScalar(1/i.length),n.getWorldPosition(this.tmpStumpOffset).sub(this.tmpStump).normalize(),this.tmpStumpAcross.set(1,0,0).applyQuaternion(n.getWorldQuaternion(this.tmpStumpQuaternion)),this.tmpStumpQuaternion.setFromUnitVectors(hY,this.tmpStumpOffset),{position:this.tmpStump,quaternion:this.tmpStumpQuaternion,rim:this.stumpRim,across:this.tmpStumpAcross}}burstStumpPose(e){let t=this.graphs?.[e]?.boxer;if(t===void 0)return null;let n=xY(t,this.stumpRim,this.burstStump);return n===null?null:(this.stumpRim=n,{position:this.burstStump.position,quaternion:this.burstStump.quaternion,rim:n,across:this.burstStump.across})}pressTick(e){return this.buffer.clockTick(e)+(this.inputLatencyMs??60)/1e3*this.simulation.tick_rate}pressGetUp(e){let t=this.buffer.latest(),n=t?.fighters.find(e=>e.player_id===this.viewerId);if(t?.phase!==`knockdown`||n?.is_downed!==!0)return null;let r=this.manualClock?this.lastManualTime:performance.now();return this.getUp.press(e,n,this.pressTick(r),r)}get getUpView(){return this.getUpFrame}get getUpVerdicts(){return this.getUp.counts}updateGetUp(){let e=this.buffer.latest(),t=e?.fighters.find(e=>e.player_id===this.viewerId),n=this.manualClock?this.lastManualTime:performance.now(),r=n-this.getUpRisenAt=0&&i.count>=1&&i.count<=9&&this.onGetUpBeat?.(i.count),this.getUpBeatCount=i.count),this.getUpFrame=i}predictAction(e){let t=this.buffer.latest();if(t===null||this.viewerId===null||this.replay!==null)return;let n=t.fighters.findIndex(e=>e.player_id===this.viewerId);if(n<0)return;let r=t.fighters[n];if(t.phase!==`fight`&&t.phase!==`finish`||!ZY(r))return;let i=(this.inputLatencyMs??60)/1e3*this.simulation.tick_rate,a=i+this.buffer.interpolationDelayTicks,o=this.manualClock?this.lastManualTime:performance.now(),s=this.graphs?.[n];if(oB(e.kind)){let n=s?.ownPunchActive===!0;if(e.id===void 0||r.stamina0||!n&&Uz(r,t.tick)>0)return;let i=n?s.ownTicksToRecovery:0;n&&s.cutOwnRecovery(),this.evasion.press(e.kind,e.id,o,a,this.simulation.tick_rate,y+de(r.style).evasionTicks,o+i*1e3/this.simulation.tick_rate);return}if(e.kind!==`punch`)return;this.evasion.drop(o)&&s?.keepOwnRecovery();let c=ut(r.injuries,e.hand);c!==null&&s?.predict(c===e.hand?e:{...e,hand:c},performance.now()/1e3,this.simulation.tick_rate,a,Hz(r,e,t.tick+1),i)}acknowledgeActions(e,t){for(let[n,r]of e.fighters.entries()){let i=r.player_id===this.viewerId,a=e.phase===`fight`||e.phase===`finish`;i&&this.evasion.acknowledge(r,a,this.inputSequenceOf)&&this.graphs?.[n]?.keepOwnRecovery();let o=t.filter(t=>Fq(t,e).puncherIndex===n);this.graphs?.[n]?.acknowledge(r,a,o,i?this.inputSequenceOf:null)}}push(e){let t=this.manualClock?this.lastManualTime:performance.now();if(!this.buffer.push(e,t))return;let n=this.dedupe.accept(e.events);this.acknowledgeActions(e,n),this.history.push(e),this.history.length>zq&&this.history.shift();for(let r of n){if(this.roundStats.record(r,n),r.kind===`knockdown`){let t=n.find(e=>Lq(e)&&e.target_id===r.target_id&&e.tick===r.tick)??(r.detail===`body`?this.recordedHit(r):null),i=t!==null&&Jr(t,e.events);this.lastKnockdown={knockdown:r,hit:t,blocked:i,finisher:i?null:QY(t,e)};let a=e.fighters.findIndex(e=>e.player_id===r.target_id);this.graphs?.[a]?.fallToKnee(r.detail===aJ),r.detail===oJ&&(this.lastKnockdown=null)}if(r.kind===`result`&&r.detail===`flash_ko`){let e=n.findLast(e=>(e.kind===`hit`||e.kind===`counter_hit`)&&e.actor_id===r.actor_id)??null;e!==null&&e.target_id!==null&&(this.flashKnockout={hitEventId:e.event_id,loserId:e.target_id},this.lastKnockdown={knockdown:{...e,kind:`knockdown`},hit:e,blocked:!1,finisher:null})}r.kind===`referee_break`&&this.referee?.breakClinch(),(VJ.has(r.kind)||r.kind===`bleed`&&r.actor_id===`referee`)&&this.pendingRefereeEvents.push(r),r.kind===`box`&&(this.eventCallout={text:`BOX!`,until:this.frameSeconds+IJ}),r.kind===`body_collapse`&&r.target_id===this.viewerId&&(this.ownCollapseUntil=r.tick+r.amount),r.kind===`finish_him`&&(this.finishTargetId=r.target_id),(r.kind===`fatality`||r.kind===`death`)&&this.noteDeath(r,n,e),this.movement.observe(r,this.viewerId),r.kind===`knockdown`&&r.target_id===this.viewerId&&(this.getUp.reset(),this.getUpKnockTick=r.tick,this.getUpRisenAt=-1/0),r.kind===`get_up_input`&&r.actor_id===this.viewerId&&this.getUp.confirm(r,t),r.kind===`get_up`&&r.actor_id===this.viewerId&&(this.getUpRisenAt=t)}this.commentary.observe(e,n,this.players,this.simulation.tick_rate,this.frameSeconds);let r=e.fighters.findIndex(e=>e.player_id===this.viewerId),i=e.result===null&&!n.some(e=>e.kind===`knockdown`);for(let{event:t,presentationEvent:a,presentImpact:o,reactAmount:s}of eY(n,e)){let n=e.fighters.findIndex(e=>e.player_id===t.target_id),c=e.fighters.findIndex(e=>e.player_id===t.actor_id),{recipientIndex:l,puncherIndex:u}=Fq(t,e),d=e.fighters[l]??e.fighters[n]??e.fighters[c]??e.fighters[0];if(SY(this.graphs?.[e.fighters.indexOf(d)],d,this.mapping,this.contactPoint),NJ.has(t.kind)){let n=u>=0?e.fighters[u]:null;this.pendingContacts.push({event:t,presentationEvent:a,presentImpact:o,reactAmount:s,contactTick:i&&u===r&&FJ.has(t.kind)&&this.graphs?.[u]?.pressLanded(t.action_id)===!0?-1/0:n?.action_contact_tick??t.tick,recipientIndex:l,puncherIndex:u,injury:lY(t,e.fighters[l],e.result,n??void 0),power:n!==null&&n.action_id===t.action_id&&n.action_power===`power`})}else t.kind===`bleed`&&t.actor_id!==`referee`&&this.effects.addEvent(t,this.contactPoint,this.settings().reducedMotion)}for(let t of n){if(!GJ.has(t.kind))continue;let n=t.action_id===null?void 0:this.pendingContacts.find(e=>e.event.tick===t.tick&&e.event.action_id===t.action_id&&(Lq(e.event)||Rq(e.event)));n!==void 0&&(n.injury??=XJ(t)),t.kind!==`fatality`&&(this.pendingGore.push({event:t,at:n?.contactTick??t.tick}),t.kind===`injury`&&Ue(t.detail)&&this.carnage.expect(e.fighters.findIndex(e=>e.player_id===t.target_id),t.detail))}}fireContacts(e){for(let t=0;te){t+=1;continue}this.pendingContacts.splice(t,1);let{event:r,presentationEvent:i,reactAmount:a,recipientIndex:o,puncherIndex:s,injury:c}=n,l=n.presentImpact&&!ZJ(i),u=this.buffer.latest()?.fighters[o],d=Iq(this.buffer.latest()?.fighters[s],u,this.mapping);this.presentFightEvent(r,o,s),l&&u!==void 0&&(this.contactOn(o,u,i.detail.endsWith(`:body`),d,i.direction),this.effects.addEvent(i,this.contactPoint,this.settings().reducedMotion,d));let f=this.settings();if(n.power&&l&&Lq(r)&&u!==void 0&&!f.reducedMotion&&this.presentPowerHit(o,i),(n.presentImpact||PJ.has(r.kind))&&this.arena.excite(MJ[r.kind]??0),l&&o>=0&&[`hit`,`counter_hit`,`knockdown`].includes(r.kind)){let e=this.viewerId!==null&&this.buffer.latest()?.fighters[o]?.player_id===this.viewerId;this.viewerHitFlash=Math.max(this.viewerHitFlash,JY(r,e,f.blood))}c!==null&&o>=0&&this.arcadeInjuries[o]===null&&f.blood===`full`&&!f.reducedMotion&&this.applyArcadeInjury(o,c,r,d);let p=this.graphs;l&&o>=0&&!f.reducedMotion&&YH(r.kind,r.amount,i.detail.endsWith(`:head`))&&this.knockOutMouthpiece(o,d??i.direction,r.event_id,!1);let m=l&&!f.reducedMotion?YY(r):null;m!==null&&o>=0&&this.gushFromMouth(o,r.event_id,m.seconds,m.rate),n.presentImpact&&o>=0&&r.kind===`knockdown`&&!f.reducedMotion&&this.gushFromMouth(o,r.event_id,sX,cX);let h=l&&o>=0?bv(r.kind,r.amount,i.detail.endsWith(`:head`)):0;if(h>0&&!f.reducedMotion&&f.blood!==`off`){let e=this.headWorldPose(o);e!==null&&(this.mouthPoint.set(0,-.07,.1).applyQuaternion(e.quaternion).add(e.position),this.effects.spawnTeeth(this.mouthPoint,d??i.direction,h,r.event_id))}if(l&&o>=0&&a!==null&&[`hit`,`counter_hit`,`block`,`perfect_block`,`knockdown`].includes(r.kind)){let e=r.kind===`block`||r.kind===`perfect_block`,t=i.detail.endsWith(`:body`)?`body`:`head`;if(p!==null){let n=(s>=0?this.buffer.latest()?.fighters[s]:void 0)?.action_key?.split(`:`)??[],c=n[0]??i.detail.split(`:`)[0]??null,l=n[1]??null;p[o].react(e?`block`:`hit`,t,i.direction,c,l,a),Lq(r)&&t===`head`&&l!==null&&this.carnage.punched(o,l===`left`?`right`:`left`,r.event_id),Lq(r)&&l!==null&&this.carnage.land(o,s,l,t,r.amount,r.blood,this.contactPoint,r.event_id,d??i.direction),this.flashKnockout?.hitEventId===r.event_id&&p[o].knockOut()}}l&&s>=0&&[`hit`,`counter_hit`,`block`,`perfect_block`,`guard_break`].includes(r.kind)&&p?.[s]?.landedHit(r.action_id,r.kind===`block`||r.kind===`perfect_block`,n.power),(n.presentImpact||!Lq(r))&&this.onContact?.(r,n.power===!0)}this.replay===null&&this.fireRefereeEvents(e);let t=this.refereeReplayAt;if(t!==null&&this.replay===null&&this.frameSeconds>=t.at){this.refereeReplayAt=null;let e=oq(this.history,t.impact,this.simulation.tick_rate,aq.speed,aq.before,aq.after),n=this.buffer.latest(),r=e!==null&&n!==null&&n.phase===`referee_down`&&n.phase_ticks_remaining/this.simulation.tick_rate>=e.durationSeconds-.5;e!==null&&r&&!this.settings().reducedMotion&&this.startReplay(e)}}fireGore(e){for(let t=0;te?t+=1:(this.pendingGore.splice(t,1),this.presentGore(n.event))}}presentGore(e){let t=this.buffer.latest()?.fighters,n=t?.findIndex(t=>t.player_id===(e.kind===`vomit`?e.actor_id:e.target_id))??-1;if(t===void 0||n<0)return;let r=Iq(e.actor_id===e.target_id?void 0:t.find(t=>t.player_id===e.actor_id),t[n],this.mapping)??e.direction;if(e.kind===`vomit`)this.carnage.vomit(n,e.event_id),this.onGore?.({kind:`vomit`});else if(e.kind===`finish_him`)this.arena.excite(1),this.onGore?.({kind:`finish_him`});else if(e.kind===`death`)this.showDeath(n,r,!1),this.announceDeath(n);else if(e.kind===`injury`&&Ue(e.detail)){let i=e.detail;if(!this.carnage.inflict(n,i,e.event_id,r,e.tick))return;this.eventCallout={text:`${tt(i)}!`,until:this.frameSeconds+KJ},this.arena.excite(JJ);let a=this.viewerId!==null&&t[n].player_id===this.viewerId;this.settings().blood!==`off`&&(this.viewerHitFlash=Math.max(this.viewerHitFlash,a?1:.5)),this.settings().reducedMotion||(this.powerShake=Math.min(UJ,this.powerShake+HJ)),this.onGore?.({kind:`injury`,injury:i})}}showDeath(e,t,n){let r=this.deaths[e]??null;if(r===null)return;let i=this.fatal?.index===e?this.fatal:null,a=(i?.hit.event_id??e)+(n?GY:0);i===null?r===`gutted`&&this.carnage.fatality(e,`gutting`,a,t):this.carnage.fatality(e,i.fatality,a,t),this.carnage.die(e,r)}announceDeath(e){let t=this.deaths[e]??null;if(t===null)return;let n=ot(t);this.eventCallout={text:`${st(t)}!`,until:this.frameSeconds+qJ},this.arena.excite(1),this.settings().reducedMotion||(this.powerShake=UJ),n!==null&&this.onGore?.({kind:`fatality`,fatality:n}),this.onGore?.({kind:`death`,cause:t})}noteDeath(e,t,n){let r=n.fighters.findIndex(t=>t.player_id===e.target_id);if(r!==0&&r!==1)return;let i=e.action_id===null?null:t.find(t=>Lq(t)&&t.tick===e.tick&&t.action_id===e.action_id&&t.target_id===e.target_id)??null;if(e.kind===`fatality`){i!==null&&We.includes(e.detail)&&(this.fatal={index:r,fatality:e.detail,hit:i});return}let a=at(e.detail);a!==null&&(this.deaths[r]=a,i===null?this.lastKnockdown=null:(this.flashKnockout={hitEventId:i.event_id,loserId:n.fighters[r].player_id},this.lastKnockdown={knockdown:{...i,kind:`knockdown`},hit:i,blocked:!1,finisher:null}))}presentFightEvent(e,t,n){let r=WJ[e.kind];r!==void 0&&(this.eventCallout={text:r.text,until:this.frameSeconds+r.seconds});let i=this.graphs;if(!(i===null||t<0)&&(e.kind===`parry`&&i[t]?.stagger(),e.kind===`body_collapse`)){let r=n>=0?this.buffer.latest()?.fighters[n]:void 0;i[t]?.windedFor(e.amount/this.simulation.tick_rate+.15,nY(r?.action_key??null))}}recordedHit(e){if(e.action_id===null)return null;for(let t=this.history.length-1;t>=0;--t){let n=this.history[t].events.find(t=>(t.kind===`hit`||t.kind===`counter_hit`)&&t.action_id===e.action_id&&t.target_id===e.target_id);if(n!==void 0)return n}return null}enterRest(e){this.restStartedAt=e,this.effects.clearMouthpieces()}contactOn(e,t,n,r,i){let a=n?null:this.headWorldPose(e),o=n?this.graphs?.[e]?.boxer.rig.bones.upperChest:void 0,s=a?.position??o?.getWorldPosition(this.contactPoint)??null;if(s===null)return SY(this.graphs?.[e],t,this.mapping,this.contactPoint);let c=r??{x:i<0?-1:1,z:0},l=n?fX:dX;return this.contactPoint.set(s.x-c.x*l,s.y,s.z-c.z*l)}gushFromMouth(e,t,n,r){let i=this.tornWound(e,`mouth`);i!==null&&this.effects.gush(e,i.position,i.axis,n,r,t)}anchorGush(e){if(!this.effects.gushing(e)||this.carnage.vomiting(e))return;let t=this.tornWound(e,pX(this.arcadeInjuries[e]??null));t!==null&&this.effects.anchorGush(e,t.position,t.axis)}tornWound(e,t){if(t===`mouth`){let t=this.headWorldPose(e);return t===null?null:{position:this.woundPoint.copy(aX).applyQuaternion(t.quaternion).add(t.position),axis:this.woundAxis.copy(oX).applyQuaternion(t.quaternion)}}let n=this.graphs?.[e]?.boxer;if(n===void 0)return null;n.root.updateMatrixWorld(!0);let r=n.rig.bones,i=t===`shoulder_left`||t===`ribs_left`,a=r.shoulderL.getWorldPosition(this.woundAxis).sub(r.shoulderR.getWorldPosition(this.tmpStumpOffset)).normalize().multiplyScalar(i?1:-1),o=r.upperChest.getWorldPosition(this.tmpStump),s=this.tmpStumpOffset.copy(o).sub(r.hips.getWorldPosition(this.tmpStumpAcross)).normalize();return t===`ribs_left`||t===`ribs_right`?{position:this.woundPoint.copy(o).addScaledVector(a,vX).addScaledVector(s,-.06),axis:a}:((i?r.shoulderL:r.shoulderR).getWorldPosition(this.woundPoint),{position:this.woundPoint,axis:a.addScaledVector(s,.5).normalize()})}refereeMouth(){let e=this.referee?.boxer.rig.bones.head;return e===void 0?null:(e.getWorldPosition(this.tmpHead),e.getWorldQuaternion(this.tmpHeadQuaternion),this.tmpHead.add(this.tmpStumpOffset.copy(mY).applyQuaternion(this.tmpHeadQuaternion)),{position:this.woundPoint.copy(aX).applyQuaternion(this.tmpHeadQuaternion).add(this.tmpHead),axis:this.woundAxis.copy(oX).applyQuaternion(this.tmpHeadQuaternion)})}knockOutMouthpiece(e,t,n,r){let i=this.headWorldPose(e);i!==null&&(this.mouthPoint.set(0,-.075,.1).applyQuaternion(i.quaternion).add(i.position),this.effects.ejectMouthpiece(e,this.mouthPoint,i.quaternion,t,n,this.gearColor(e),r))}get resultVisible(){return this.final!==null&&this.frameSeconds>=this.finalRevealAt}get resolutionScale(){return this.scaler.scale}get diagnostics(){let e=this.renderer.getContext(),t=e.getExtension(`WEBGL_debug_renderer_info`),n=t===null?e.getParameter(e.RENDERER):e.getParameter(t.UNMASKED_RENDERER_WEBGL);return{frameMs:this.frameMsAverage,resolutionScale:this.scaler.scale,gpu:this.memoryInfo,graphics:String(n)}}get memoryInfo(){return{geometries:this.renderer.info.memory.geometries,textures:this.renderer.info.memory.textures,programs:this.renderer.info.programs?.length??0}}applyResolutionScale(){let e=this.basePixelRatio*this.scaler.scale;this.renderer.setPixelRatio(e),this.composer.setPixelRatio(e);let t=this.scaler.scale<=Bq;this.bloomPass.enabled=!t,this.keyLight!==null&&Pq(this.keyLight.shadow,t,this.scaler.scale<.8?1024:2048),this.arena.setLowTier(t),this.effects.setLowTier(t)}setupLights(){let e=new vf(`#33416c`,`#3b2c20`,.6);this.scene.add(e),this.lights.push(e);let t=new Mf(`#fff0da`,185,26,.56,.6,1.7);t.position.set(.9,7.2,4.4),t.target.position.set(0,.6,0),t.castShadow=!0,t.shadow.mapSize.set(2048,2048),t.shadow.bias=jq,t.shadow.camera.near=3,t.shadow.camera.far=14,this.keyLight=t,this.scene.add(t,t.target),this.lights.push(t);let n=new Mf(`#cfdcff`,55,24,.6,.7,1.7);n.position.set(-3.6,5.5,2.2),n.target.position.set(0,.8,0),this.scene.add(n,n.target),this.lights.push(n);for(let[e,t,n,r]of[[`#a9c0ff`,-5.2,3.4,-4.6],[`#9db4ff`,5.2,3.4,-4.6]]){let i=new Mf(e,170,30,.6,.9,1.8);i.position.set(t,n,r),i.target.position.set(0,1.2,0),this.scene.add(i,i.target),this.lights.push(i)}let r=new Mf(`#e4ecff`,85,22,.3,.8,1.5);r.position.set(0,6.4,-4.4),r.target.position.set(0,1,0),this.scene.add(r,r.target),this.lights.push(r),this.followSpot=r}draw(e,t=!1,n=!0){if(this.destroyed)return;let r=e-this.previous,i=t?1/60:Math.min(.05,Math.max(.001,r/1e3));this.previous=e,!t&&this.scaler.record(r)&&this.applyResolutionScale(),!t&&r>0&&r<1e3&&(this.frameMsAverage+=(r-this.frameMsAverage)*.05);let a=Math.min(this.pixelRatioCap,window.devicePixelRatio||1);a!==this.basePixelRatio&&(this.basePixelRatio=a,this.applyResolutionScale());let o=this.canvas.clientWidth,s=this.canvas.clientHeight;o>0&&s>0&&(this.renderer.getSize(this.sizeCheck),(this.sizeCheck.x!==o||this.sizeCheck.y!==s)&&(this.renderer.setSize(o,s,!1),this.composer.setSize(o,s),this.camera.aspect=o/s,this.portraitPull=R.clamp(1.2/this.camera.aspect,1,2.2),this.baseFov=36*Math.min(1.3,Math.sqrt(this.portraitPull)),this.camera.fov=this.baseFov,this.camera.updateProjectionMatrix()));let c=e/1e3;this.frameSeconds=c,this.finishPass.uniforms.uTime.value=c%1e3,t&&(this.lastManualTime=e);let l=this.settings();this.setBloodLevel(l.blood);let u=this.buffer.latest(),d=i,f=u?.result!==null&&u?.result!==void 0&&Zr.has(u.result.finish_method);if(this.cheer(c,i),f&&!this.finishSeen&&(this.finishSeen=!0,this.finishSlowMotion=2.2,this.arena.excite(1)),this.finishSlowMotion>0&&!l.reducedMotion){this.finishSlowMotion=Math.max(0,this.finishSlowMotion-i);let e=Math.min(1,this.finishSlowMotion/.5);i*=.3+.7*(1-e)}this.viewerHitFlash=Math.max(0,this.viewerHitFlash-i*3.2);let p=u===null?0:t?rY(u):this.buffer.renderTick(e),m=this.updateRocked(u===null?null:this.shownAt(p),d,l.reducedMotion);m!==null&&u!==null&&this.onRocked?.(m,u.tick);let h=u===null?null:this.applyLocalPrediction(this.buffer.sample(p),i,e),g=this.replay;if(g!==null){let e=c-g.startedAt;e>=g.plan.durationSeconds||g.plan.impact.kind===`referee_down`&&u?.phase!==`referee_down`?this.endReplay():(p=sq(g.plan,e,this.simulation.tick_rate),h=g.buffer.sample(p)??h,!g.impactFired&&p>=g.plan.impact.tick&&h!==null&&(g.impactFired=!0,this.fireReplayImpact(h)))}let _=this.replay===null?i:i*this.replay.plan.speed,v=1.8,y=!1,b=null;if(h!==null){let e=this.replay===null?this.ceremony:null,[t,n]=e===null?this.standApart(h.fighters,_):this.ceremonyFighters(e,h.fighters,_,c,this.drawnOffsets);for(let[e,t]of h.fighters.entries())this.arcadeInjuries[e]!==null&&this.replay===null&&(t.is_downed?this.observedInjuryDown[e]=!0:this.observedInjuryDown[e]&&h.result===null&&this.restoreInjury(e));let r=this.graphs;if(r!==null){this.wearLook(0,t.player_id),this.wearLook(1,n.player_id);let e=this.headCacheValid[0]?this.headCache[0]:void 0,i=this.headCacheValid[1]?this.headCache[1]:void 0;r[0].boxer.root.visible=!0,r[1].boxer.root.visible=!0;let a=Dq(h,this.simulation.tick_rate);r[0].setResting(a),r[1].setResting(a);let o=h.phase===`countdown`?h.phase_ticks_remaining:null;r[0].setCountdown(o),r[1].setCountdown(o);let s=this.replay!==null||h.phase===`complete`;r[0].stayDown(s),r[1].stayDown(s),h.phase===`fight`&&this.lastPhase===`rest`&&this.replay===null&&(this.roundCalloutUntil=c+Vq,this.roundCalloutRound=h.round_number),h.phase===`rest`&&this.lastPhase!==`rest`&&this.enterRest(c),this.lastPhase=h.phase,this.anticipatePunches(u,p),r[0].setObstacle(r[1].boxer.root.position.x,r[1].boxer.root.position.z),r[1].setObstacle(r[0].boxer.root.position.x,r[0].boxer.root.position.z);let d=this.referee?.boxer.rig.bones.head.getWorldPosition(this.refereeHead)??null;r[0].setRefereeHead(d),r[1].setRefereeHead(d),r[0].update(t,n,_,c,l.reducedMotion,l.blood,p,i),r[1].update(n,t,_,c,l.reducedMotion,l.blood,p,e);let f=h.phase===`finish`?fi(h.fighters,this.finishTargetId):null;for(let[e,t]of h.fighters.entries()){let n=f!==null&&t.player_id===f.player_id;r[e].setDazed(n),this.carnage.sync(e,(this.replay===null?void 0:u?.fighters[e])??t,l,_,c,n)}let m=r[h.fighters.findIndex(e=>e.player_id===this.viewerId)],g=m?.ownPressId??null;if(m!==void 0&&g!==null&&g!==this.soundedPress){this.soundedPress=g;let{punchClass:e,power:t}=m.punchKind;this.onOwnPunch?.(e,t,g)}for(let[e,t]of r.entries()){let n=t.boxer.bone(`head`);n!==null&&(t.boxer.root.updateMatrixWorld(!0),n.getWorldPosition(this.headCache[e]),this.headCacheValid[e]=!0);let r=t.fallBody!==null;r&&!this.fallingLive[e]&&this.replay===null&&(this.liveFallTicks[e]=p),this.fallingLive[e]=r}}for(let e=0;ee.player_id===this.viewerId),C=l.camera===`fighter`&&S>=0&&Eq(h)?this.fighterCam.update(i,c,S===0?this.tmpA:this.tmpB,S===0?this.tmpB:this.tmpA,this.effects.shakeAmount+this.powerShake,l.reducedMotion,this.camera.aspect):null;C===null&&this.fighterCam.reset();let w=this.replay,T=this.cameraOverride??(w!==null&&h!==null?this.replayFrame(h,c-w.startedAt):this.closeUpFrame(c)??this.raiseFrame(c,i,l.reducedMotion)??this.cornerShotFrame(c,h,l.reducedMotion)??this.restWideFrame(h)??this.ceremonyFrame(c)??C??x);this.ownViewActive=C!==null&&T===C;let E=this.ownViewActive?this.baseFov*lV:this.baseFov;if(this.camera.fov!==E&&(this.camera.fov=E,this.camera.updateProjectionMatrix()),this.cameraOverride===null&&this.portraitPull>1&&T.framed!==!0&&!this.ownViewActive){let e=T.tight===!0,t=this.portraitPull/Math.min(1.3,Math.sqrt(this.portraitPull)),n=e?Math.min(t,1.25):t;this.tmpCamera.subVectors(T.position,T.lookAt).multiplyScalar(n),this.camera.position.copy(T.lookAt).add(this.tmpCamera),e&&(this.camera.position.x=R.clamp(this.camera.position.x,-2.2,rJ),this.camera.position.z=R.clamp(this.camera.position.z,-2.2,rJ)),this.camera.lookAt(T.lookAt.x,T.lookAt.y-(this.portraitPull-1)*(e?.08:.45),T.lookAt.z)}else this.camera.position.copy(T.position),this.camera.lookAt(T.lookAt);this.effects.setViewDistance(this.camera.position.distanceTo(T.lookAt)),this.arena.makeRoomForCamera(this.camera.position);let D=T===x?iw(Math.max(this.tmpA.z,this.tmpB.z)):T.framed===!0?wJ:1;this.ring.setNearRopeOpacity(this.ring.nearRopeOpacity()+(D-this.ring.nearRopeOpacity())*(1-Math.exp(-6*i))),this.updateGetUp(),n&&(this.composer.render(),this.bloomPass.enabled&&this.carnage.drawBreak(this.renderer,this.scene,this.camera,this.arena.group),this.drawHudOverlay(h)),!this.destroyed&&!this.manualClock&&(this.raf=requestAnimationFrame(e=>this.draw(e)))}applyLocalPrediction(e,t,n){if(e===null||this.localInput===null||this.viewerId===null)return e;let r=e.fighters.findIndex(e=>e.player_id===this.viewerId),i=this.localInput()??{moveX:0,moveY:0,defense:`none`},a=(this.inputLatencyMs??60)/1e3*this.simulation.tick_rate+this.buffer.interpolationDelayTicks,o=this.ownCollapseUntil>e.tick,s=e.phase===`fight`||e.phase===`finish`&&r>=0&&fi(e.fighters,this.finishTargetId)!==e.fighters[r],c=r>=0&&s&&!o?e.fighters[r]:null,l=this.evasion.holdsFeet(n)?0:this.graphs?.[r]?.ownFootwork??1,u=this.movement.update(c,i,l,n,a,e.tick,t,this.simulation.tick_rate),d=this.evasion.pose(n);if(r<0)return e;let f=e.fighters[r],p=c===null?f.defense:sB(c,i,d,this.evasion.hidesServerEvasion(n));if(Math.abs(u.dx)<.01&&Math.abs(u.dy)<.01&&p===f.defense)return e;let m=aB(f,u,e.fighters[+(r===0)]??null),h={...f,x:f.x+m.dx,y:f.y+m.dy,defense:p},g=r===0?[h,e.fighters[1]]:[e.fighters[0],h];return{...e,fighters:g}}anticipatePunches(e,t){if(!(this.replay!==null||e===null||e.phase!==`fight`&&e.phase!==`finish`))for(let[n,r]of(this.graphs??[]).entries()){let i=e.fighters[n];i!==void 0&&!i.is_downed&&r.anticipate(i,i.action_start_tick-t)}}cheer(e,t){ee.clinch_ticks>0||e.clinch_startup_ticks>0||e.is_downed)?null:DY(n.x,n.y,r.x,r.y,dJ,u-f,d-f,S),[a,o]=this.drawnTargets;a.x=i===null?0:i.ax-n.x,a.y=i===null?0:i.ay-n.y,o.x=i===null?0:i.bx-r.x,o.y=i===null?0:i.by-r.y,this.clearOfTheFallen(e);let s=1-Math.exp(-14*t);for(let e of[0,1]){let n=this.drawnOffsets[e],r=this.drawnTargets[e],i=r.x-n.x,a=r.y-n.y;if(this.drawnOffsetsLive){i*=s,a*=s;let e=Math.hypot(i,a);e>fJ*t&&(i*=fJ*t/e,a*=fJ*t/e)}n.x+=i,n.y+=a}return this.drawnOffsetsLive=!0,[this.drawnAt(0,n),this.drawnAt(1,r)]}drawnAt(e,t){let n=this.drawnOffsets[e];if(Math.abs(n.x)<.01&&Math.abs(n.y)<.01)return t;let r=iB(t.x+n.x,t.y+n.y);return Object.assign(this.drawnFighters[e],t,{x:r.x,y:r.y})}clearOfTheFallen(e){for(let t of[0,1]){let n=this.graphs?.[t]?.fallBody??null,r=+(t===0),i=e[r];if(n===null||i.is_downed||(this.graphs?.[r]?.fallBody??null)!==null)continue;let a=this.drawnTargets[r],o=this.mapping.x(i.x+a.x),s=this.mapping.z(i.y+a.y),c=this.clearOf(n,o,s);a.x+=(c.x-o)/this.mapping.x(1),a.y+=(c.z-s)/this.mapping.z(1);return}}clearOf(e,t,n){let r={x:t,z:n};for(let t of[0,1,2,3,4])e.bodyPoint(t,this.bodyPoint),r=CY(r.x,r.z,this.bodyPoint.x,this.bodyPoint.z,cJ);let i=this.insideRopes(r.x,r.z);if(Math.hypot(i.x-r.x,i.z-r.z)<1e-6)return r;let a=t=>[0,1,2,3,4].every(n=>(e.bodyPoint(n,this.bodyPoint),Math.hypot(t.x-this.bodyPoint.x,t.z-this.bodyPoint.z)>=.499999));for(let e=pJ;e<=2.000000001;e+=pJ)for(let[t,n]of[[1,0],[-1,0],[0,1],[0,-1]]){let r=this.insideRopes(i.x+t*e,i.z+n*e);if(a(r))return r}return i}insideRopes(e,t){let n=iB(e/this.mapping.x(1),t/this.mapping.z(1));return{x:this.mapping.x(n.x),z:this.mapping.z(n.y)}}headHeightOf(e){return(this.graphs?.[e]?.boxer.metrics.headRestY??1.52)+.04}bleed(e,t,n){for(let[r,i]of e.entries()){let e=hX(i,this.graphs?.[r],this.flashKnockout?.loserId),a=this.arcadeInjuries[r]??null,o=a!==null,s=(i.trauma.bleeding+i.trauma.left_cut+i.trauma.right_cut)/380,c=o?Math.max(s,tX):s;if(c>.05&&!e)this.downedPoolAccumulators[r]=0,this.downedPoolCounts[r]=0,this.effects.drip(this.dripPoint(r),c,n.reducedMotion,r);else if(c>$Y&&e&&n.blood!==`off`){this.effects.stopDrip(r),this.downedPoolAccumulators[r]+=t*5*(o?nX:1);let e=this.poolSource(r,a);for(;this.downedPoolAccumulators[r]>=1;){--this.downedPoolAccumulators[r];let t=this.downedPoolCounts[r];this.downedPoolCounts[r]=t+1;let n=mX(t,c,o?rX:eX),i=t*2.399963+r*Math.PI;this.effects.pool(e.x+Math.sin(i)*n*.25,e.z+Math.cos(i)*n*.25,n,t+r*7)}}else this.effects.stopDrip(r),this.downedPoolAccumulators[r]=0,e||(this.downedPoolCounts[r]=0)}}dripPoint(e){let t=this.headWorldPose(e);if(t!==null)return t.position.add(this.tmpStumpOffset.copy(iX).applyQuaternion(t.quaternion));if(this.headCacheValid[e])return this.tmpHead.copy(this.headCache[e]);let n=e===0?this.tmpA:this.tmpB;return this.tmpHead.set(n.x,this.headHeightOf(e),n.z)}poolSource(e,t){if(t===`dismember_left`||t===`dismember_right`){let n=this.handWorldPose(e,t===`dismember_left`?`left`:`right`);if(n!==null)return n.position}let n=pX(t);if(n!==`mouth`){let t=this.tornWound(e,n);if(t!==null)return t.position}return this.headCacheValid[e]?this.headCache[e]:e===0?this.tmpA:this.tmpB}updateBlobShadows(){let e=[this.tmpA,this.tmpB,this.refereePosition];for(let[t,n]of this.blobShadows.entries()){n.visible=t>=2||!this.carnage.gibbed(t);let r=t<2?this.graphs?.[t]:this.referee??void 0,i=r?.fallBody?.centre(this.bodyPoint)??null??(r?.boxer.root.visible===!0?r.currentRoot:e[t]);n.position.x=i.x,n.position.z=i.z;let a=t<2?this.buffer.latest()?.fighters[t]:void 0,o=t<2?a!==void 0&&hX(a,r,this.flashKnockout?.loserId):r?.isDown===!0;n.scale.set(o?2.1:1.25,o?.9:.85,1)}}updateFootShadows(){for(let[e,t]of this.footShadows.entries()){let n=e>>1,r=this.graphs?.[n]?.boxer;t.visible=r!==void 0&&r.root.visible&&!this.carnage.gibbed(n),r!==void 0&&t.visible&&(r.rig.bones[e%2==0?`ankleL`:`ankleR`].getWorldPosition(this.footPoint),t.position.x=this.footPoint.x,t.position.z=this.footPoint.z,t.material.opacity=pY(this.footPoint.y-r.metrics.ankleRestY))}}updateReferee(e,t,n,r){let i=this.referee;if(i===null)return;let a=this.replay===null||this.replay.plan.impact.kind===`referee_down`;i.boxer.root.visible=a;let o=this.blobShadows[2];o!==void 0&&(o.visible=a);let s=n?.referee??null,c=this.replay!==null&&this.replay.plan.impact.kind===`referee_down`?this.replay:null;!this.refereePlaced&&s!==null&&(this.refereePlaced=!0,this.refereePosition.set(this.mapping.x(s.x),0,this.mapping.z(s.y)));let l=this.refereeReplayAt!==null||this.pendingRefereeEvents.some(e=>e.kind===`referee_down`);s?.alive===!0&&i.isDown&&this.replay===null&&n?.phase!==`referee_down`&&!l&&i.resetTransient(!1),s===null||s.alive||i.isDown||this.replay!==null||l||(this.refereePosition.set(this.mapping.x(s.x),0,this.mapping.z(s.y)),i.knockOut(),this.refereeFallUnseen=!0);let u=s!==null&&(n?.phase===`fight`&&s.alive||c!==null&&!c.impactFired)?s:null,d=s?.alive===!1&&(c===null||c.impactFired),f=n?.fighters.find(e=>e.is_downed)??(n?.phase===`knockdown`?n.fighters.find(e=>e.player_id===this.lastKnockdown?.knockdown.target_id):void 0)??null,p=n?.fighters.some(e=>e.clinch_ticks>0||e.clinch_startup_ticks>0)??!1,m=f===null&&i.breaking,h=f===null?void 0:this.graphs?.[n?.fighters.indexOf(f)??-1],g=h?.fallBody?.centre(this.bodyPoint)??null,_=f!==null&&!f.is_downed?h?.currentRoot??null:null,v=f===null?(this.tmpA.x+this.tmpB.x)/2:g?.x??_?.x??this.mapping.x(f.x),y=f===null?(this.tmpA.z+this.tmpB.z)/2:g?.z??_?.z??this.mapping.z(f.y),b=this.refereeAway.set(this.refereePosition.x-v,0,this.refereePosition.z-y);if(b.lengthSq()<.01&&b.set(0,0,-1),b.normalize(),m){let e=this.tmpB.z-this.tmpA.z,t=this.tmpA.x-this.tmpB.x,n=Math.hypot(e,t),r=e*b.x+t*b.z>=0?1:-1;n>.01&&b.set(e/n*r,0,t/n*r)}let{standoff:x,clearance:S}=TX(f!==null,p,m),C=R.clamp(v+b.x*x,-2.4,2.4),w=R.clamp(y+b.z*x,-2.4,2.4),T=this.refereePosition.x,E=this.refereePosition.z,D=this.replay===null&&this.ceremony?.positions!==null?this.ceremony:null,O=!d&&D===null&&this.replay===null&&this.stoppageWinner>=0&&this.frameSeconds>=this.stoppageRaiseAt?this.stoppageWinner===0?this.tmpA:this.tmpB:null,k=O===null?null:this.stoppageSpot??=this.raiseSpot(O,this.stoppageWinner===0?this.tmpB:this.tmpA),ee=k!==null&&k.x<0?-1:1;if(d)D!==null&&(D.refereeArrived=!0);else if(O!==null&&k!==null){let t=kJ(this.refereePosition.x,this.refereePosition.z,{x:O.x+k.x,y:O.z+k.z},EJ*e);this.refereePosition.x=t.x,this.refereePosition.z=t.y}else if(D!==null){let t=kJ(this.refereePosition.x,this.refereePosition.z,{x:CJ.x,y:CJ.z},EJ*e);this.refereePosition.x=t.x,this.refereePosition.z=t.y,D.refereeArrived=t.arrived}else if(u!==null){let t=c===null?1-Math.exp(-20*e):1;this.refereePosition.x+=(this.mapping.x(u.x)-this.refereePosition.x)*t,this.refereePosition.z+=(this.mapping.z(u.y)-this.refereePosition.z)*t}else{let t=1-Math.exp(-(m?8:1.6)*e),n=m?Math.min(1,hJ*e/Math.max(1e-6,Math.hypot(C-this.refereePosition.x,w-this.refereePosition.z)*t)):1;this.refereePosition.x+=(C-this.refereePosition.x)*t*n,this.refereePosition.z+=(w-this.refereePosition.z)*t*n}let A=O===null?D===null?u!==null||d?0:S:D.refereeArrived?0:SJ:Xq*.85;for(let e of A>0?[this.tmpA,this.tmpB]:[]){let t=this.refereePosition.x-e.x,n=this.refereePosition.z-e.z,r=Math.hypot(t,n);r.001&&(this.refereePosition.x=e.x+t/r*A,this.refereePosition.z=e.z+n/r*A)}for(let e of D!==null||d?[]:this.graphs??[]){let t=e.fallBody;if(t!==null)for(let e of[0,1,2,3,4]){t.bodyPoint(e,this.bodyPoint);let n=CY(this.refereePosition.x,this.refereePosition.z,this.bodyPoint.x,this.bodyPoint.z,sJ);this.refereePosition.x=n.x,this.refereePosition.z=n.z}}for(let e of d?[]:[0,1]){if(!this.effects.severedHeadPosition(e,this.closeUpTarget))continue;let t=CY(this.refereePosition.x,this.refereePosition.z,this.closeUpTarget.x,this.closeUpTarget.z,iJ);this.refereePosition.x=t.x,this.refereePosition.z=t.z}if(c===null&&!d){let t=this.refereePosition.x-T,n=this.refereePosition.z-E,r=Math.hypot(t,n),i=BJ*e;r>i&&(this.refereePosition.x=T+t/r*i,this.refereePosition.z=E+n/r*i)}e>0&&this.refereeVelocity.set((this.refereePosition.x-T)/e,0,(this.refereePosition.z-E)/e);let te=O!==null&&k!==null&&Math.hypot(this.refereePosition.x-O.x-k.x,this.refereePosition.z-O.z-k.z)<=Qq,j=D!==null&&!D.refereeArrived,ne=O===null?D===null?u===null?Math.atan2(v-this.refereePosition.x,y-this.refereePosition.z):Math.atan2(u.facing_x,-u.facing_y):j?Math.atan2(CJ.x-this.refereePosition.x,CJ.z-this.refereePosition.z):0:te?0:Math.atan2(O.x-this.refereePosition.x,O.z-this.refereePosition.z);if(O!==null){let e=this.graphs?.[this.stoppageWinner]?.boxer.rig.bones,t=n?.fighters[this.stoppageWinner]?.injuries??[],r=YJ(t,`left`),a=!te||e===void 0?null:r&&YJ(t,`right`)?this.nearerGlove(e.gloveL,e.gloveR):(r?e.gloveL:e.gloveR).getWorldPosition(this.stoppageWrist);i.raise(ee<0?a:null,ee>0?a:null)}let re=((ne-this.refereeYaw+Math.PI)%(Math.PI*2)+Math.PI*2)%(Math.PI*2)-Math.PI;this.refereeYaw+=re*(1-Math.exp(-(m?8:3)*e));let ie=EX(this.refereePosition,this.refereeYaw,this.refereeVelocity,this.mapping,s);i.setRefereeCount(f!==null,f?.get_up_count??0);let M=f===null?n?.fighters.findIndex(e=>e.stunned_ticks>0)??-1:-1,N=M===0?this.tmpA:this.tmpB,ae=f===null?M>=0?b.set(N.x,1.5,N.z):null:b.set(v,f.is_downed?.25:1.5,y);i.aimBreak(this.tmpA,this.tmpB,ae,n?.phase===`finish`?`stand_back`:`watch`);let oe=this.settings();if(i.update(ie.self,ie.focus,e,t,oe.reducedMotion,oe.blood,r),this.refereeFallUnseen&&(this.refereeFallUnseen=!1,i.fallBody?.settle()),this.effects.gushing(2)){let e=this.refereeMouth();e!==null&&this.effects.anchorGush(2,e.position,e.axis)}this.poolUnderReferee(s?.alive===!1,d,e,oe.blood)}poolUnderReferee(e,t,n,r){if(!e&&this.replay===null&&(this.refereePoolAccumulator=0,this.refereePoolCount=0),!t||r===`off`||this.referee===null)return;this.refereePoolAccumulator+=n*5*nX;let i=this.referee.boxer.rig.bones.head.getWorldPosition(this.refereeHead);for(;this.refereePoolAccumulator>=1;){--this.refereePoolAccumulator;let e=this.refereePoolCount,t=mX(e,tX,rX);if(t>=rX)return;this.refereePoolCount=e+1;let n=e*2.399963;this.effects.pool(i.x+Math.sin(n)*t*.25,i.z+Math.cos(n)*t*.25,t,e+14)}}updateTrails(e,t){let n=this.graphs;if(!(n===null||this.trails.length<4)){for(let[r,i]of n.entries())for(let[n,a]of[`gloveL`,`gloveR`].entries()){let o=this.trails[r*2+n],s=this.glows[r*2+n];if(!i.boxer.root.visible||!this.carnage.hasGlove(r,n===0?`left`:`right`)){o.reset(),s?.reset();continue}i.boxer.rig.bones[a].getWorldPosition(this.trailGlove);let c=i.powerHeat(n===0?`left`:`right`);o.update(this.trailGlove,e,this.camera.position,!t&&this.replay===null&&!i.isDown,c),s?.update(this.trailGlove,c,e,t,this.camera)}for(let t of this.impactFlashes)t.update(e,this.camera);this.powerShake*=.02**e}}presentPowerHit(e,t){let n=!t.detail.endsWith(`:body`)&&this.headCacheValid[e]===!0?this.headCache[e]:void 0;n===void 0?this.powerHitPoint.set(this.contactPoint.x,t.detail.endsWith(`:body`)?1.05:1.55,this.contactPoint.z):this.powerHitPoint.copy(n),this.impactFlashes[e]?.fire(this.powerHitPoint),this.powerShake=Math.min(UJ,this.powerShake+HJ)}updateCornermen(e,t,n,r){let i=this.cornermen;if(i===null)return;let a=Dq(n,this.simulation.tick_rate),o=n?.phase===`complete`?this.final:null;for(let[s,c]of i.entries()){let i=s===0?-1:1,l=o===null?`work`:this.deaths[s]===null?o.winner_id!==null&&o.winner_id===n?.fighters[s]?.player_id?`cheer`:`work`:`mourn`,u=a||l!==`work`,d=u?mJ:nJ;this.cornermanPosition.set(i*d,0,-i*d);let f=s===0?3*Math.PI/4:-Math.PI/4;c.attend(u,l);let p=EX(this.cornermanPosition,f,this.cornermanVelocity,this.mapping);c.update(p.self,p.focus,e,t,!1,`off`,r)}}updateCutmen(e,t,n,r){let i=this.cutmen,a=this.graphs;if(i===null||a===null)return;let o=n?.phase===`rest`,s=this.mapping.x(l);for(let[c,l]of i.entries()){let i=c===0?-1:1,u=o&&a[c].stoolVisible?1:0,d=this.cutmanProgress[c],f=d+Math.sign(u-d)*Math.min(Math.abs(u-d),e/gJ);this.cutmanProgress[c]=f;let p=l.boxer.root.visible;if(l.boxer.root.visible=f>.005,!l.boxer.root.visible)continue;this.cutmanFrom.set(i*nJ,0,-i*2.42),eV(c===0?0:1,s,ZB,32,this.cutmanTo);let m=f*f*(3-2*f);this.cornermanPosition.copy(this.cutmanFrom).lerp(this.cutmanTo,m);let h=this.cutmanLast[c];p||h.copy(this.cornermanPosition),this.cornermanVelocity.copy(this.cornermanPosition).sub(h).divideScalar(Math.max(e,.001)),h.copy(this.cornermanPosition);let g=f>.02&&f<_J,_=this.headCacheValid[c]?this.headCache[c]:null,v=g?Math.atan2(this.cutmanTo.x-this.cutmanFrom.x,this.cutmanTo.z-this.cutmanFrom.z)+(u===1?0:Math.PI):f>=_J?_===null?Math.atan2(i,-i):Math.atan2(_.x-this.cutmanTo.x,_.z-this.cutmanTo.z):Math.atan2(-this.cutmanFrom.x,-this.cutmanFrom.z),y=tY(n?.fighters[c]);if(f>=_J&&_!==null){let e=a[c].boxer.root.rotation.y;this.cutmanFacing.set(Math.sin(e),0,Math.cos(e)),this.cutmanEye.copy(_).addScaledVector(this.cutmanFacing,.09),this.cutmanEye.x+=Math.cos(e)*y.side*y.lateral,this.cutmanEye.z-=Math.sin(e)*y.side*y.lateral,this.cutmanEye.y+=y.lift;let t=n?.fighters[c]?.trauma,r=t===void 0||y.prop===`bottle`?0:Math.min(1,Math.max(t.left_cut,t.right_cut)/vJ);l.treat(this.cutmanEye,this.cutmanFacing,y.side,y.prop,r)}else l.treat(null);let b=EX(this.cornermanPosition,v,this.cornermanVelocity,this.mapping);l.update(b.self,b.focus,e,t,!1,`off`,r)}}drawHudOverlay(e){let t=Tq(this.hudCanvas);if(t===null)return;let{context:n,viewport:r}=t;if(this.hudViewport.width=r.width,this.hudViewport.height=r.height,n.clearRect(0,0,r.width,r.height),e===null)return;let i=this.settings();if(this.viewerHitFlash>.01&&!i.reducedMotion){let e=n.createRadialGradient(r.width/2,r.height/2,r.width*.12,r.width/2,r.height/2,r.width*.7);e.addColorStop(0,`rgba(255,235,225,${(this.viewerHitFlash*.18).toFixed(3)})`),e.addColorStop(1,`rgba(140,0,10,${(this.viewerHitFlash*.55).toFixed(3)})`),n.fillStyle=e,n.fillRect(0,0,r.width,r.height)}let a=XY(Math.max(...e.fighters.map(e=>e.trauma.head+e.trauma.body)),i.blood);if(a>0){let e=n.createRadialGradient(r.width/2,r.height/2,r.width*.2,r.width/2,r.height/2,r.width*.72);e.addColorStop(0,`rgba(90,0,8,0)`),e.addColorStop(1,`rgba(75,0,8,${a.toFixed(3)})`),n.fillStyle=e,n.fillRect(0,0,r.width,r.height)}i.reducedMotion||this.effects.drawLens(n,r.width,r.height);let o=this.deaths[0]??this.deaths[1],s=this.replay===null?null:this.replay.plan.impact.kind===`referee_down`?`REFEREE DOWN`:o===null?`KNOCKOUT REPLAY`:ot(o)===null?`DEATH REPLAY`:`FATALITY REPLAY`;xi(n,r.width,r.height,e,this.players,this.viewerId,this.frameSeconds>=this.finalRevealAt?this.final:null,this.reconnectMs,this.simulation.tick_rate,this.roundStats,s,this.lagWarned?this.inputLatencyMs:null,this.frameSecondsthis.avatars.get(e),this.lastKnockdown?.knockdown.target_id??null,this.touchControls&&e.fighters.some(e=>e.player_id===this.viewerId),this.powerHeld?.()===!0,o,this.finishTargetId,!i.reducedMotion,this.getUpFrame),this.drawCaption(n,r.width,r.height,e)}updateRocked(e,t,n){let r=e?.fighters.find(e=>e.player_id===this.viewerId),i=e===null||this.replay!==null||this.final!==null?0:tq(r,e.phase),a=this.rocked.update(n?0:i,t);return this.finishPass.uniforms.uRocked.value=n?0:a,r===void 0?null:i}shownAt(e){for(let t=this.history.length-1;t>=0;--t)if(this.history[t].tick<=e)return this.history[t];return null}drawCaption(e,t,n,r){let i=this.final!==null&&this.frameSeconds>=this.finalRevealAt?this.final:null;i!==null&&!this.resultAnnounced&&(this.resultAnnounced=!0,this.commentary.resultShown(this.frameSeconds));let a=this.commentary.current(this.frameSeconds),o=this.settings(),s=a===null||!o.commentary?``:a.line.text;if(s!==this.captionText&&(this.captionText=s,this.hudCanvas.dataset.caption=s),a===null||!o.commentary)return;let c=r.fighters.find(e=>e.player_id===this.viewerId),l=yr(t,n),u=i===null?null:kY(i,t,n,r.fighters,this.players,this.roundStats,this.viewerId,this.deaths[0]??this.deaths[1])/l,d=this.frameSeconds0});p!==null&&(e.save(),e.scale(l,l),AV(e,a,p,o.reducedMotion),e.restore())}destroy(){if(!this.destroyed){if(this.destroyed=!0,cancelAnimationFrame(this.raf),this.raf=0,this.buffer.clear(),this.dedupe.reset(),this.pendingContacts.length=0,this.pendingGore.length=0,this.carnage.dispose(),this.effects.dispose(),this.avatars.dispose(),this.arena.dispose(),Sw(this.ring),this.graphs!==null){for(let e of this.graphs)this.scene.remove(e.boxer.root),e.dispose();this.graphs=null}this.referee!==null&&(this.scene.remove(this.referee.boxer.root),this.referee.dispose(),this.referee=null);for(let e of this.trails)this.scene.remove(e.mesh),e.dispose();this.trails=[];for(let e of this.glows)this.scene.remove(e.mesh),e.dispose();this.glows=[];for(let e of this.impactFlashes)this.scene.remove(e.group),e.dispose();if(this.impactFlashes=[],this.glowMap?.dispose(),this.glowMap=null,this.cornermen!==null){for(let e of this.cornermen)this.scene.remove(e.boxer.root),e.dispose();this.cornermen=null}if(this.cutmen!==null){for(let e of this.cutmen)this.scene.remove(e.boxer.root),e.dispose();this.cutmen=null}for(let e of this.lights)this.scene.remove(e);this.keyLight?.shadow.map?.dispose(),this.keyLight?.shadow.dispose(),this.blobTexture.dispose();for(let e of[...this.blobShadows,...this.footShadows])this.scene.remove(e),e.geometry.dispose(),e.material.dispose();this.renderer.renderLists.dispose(),kq(this.composer),this.bloomPass.materialHighPassFilter.dispose(),Fw(),this.renderer.dispose(),this.hudCanvas.remove()}}},OX=[`broadcast`,`close`,`fighter`],kX=`hands.preferences.v1`,AX={length:0,clear:()=>void 0,getItem:()=>null,key:()=>null,removeItem:()=>void 0,setItem:()=>void 0},jX=()=>{try{return window.localStorage}catch{return AX}},MX=()=>({volume:.7,haptics:!0,reducedMotion:window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches??!1,blood:`full`,commentary:!0,announcer:!0,camera:`broadcast`});function NX(e=jX()){let t=MX();try{let n=JSON.parse(e.getItem(kX)??`null`);if(typeof n!=`object`||!n||Array.isArray(n))return t;let r=n;return{volume:typeof r.volume==`number`&&Number.isFinite(r.volume)?Math.max(0,Math.min(1,r.volume)):t.volume,haptics:typeof r.haptics==`boolean`?r.haptics:t.haptics,reducedMotion:typeof r.reducedMotion==`boolean`?r.reducedMotion:t.reducedMotion,blood:r.blood===`reduced`||r.blood===`off`||r.blood===`full`?r.blood:t.blood,commentary:typeof r.commentary==`boolean`?r.commentary:t.commentary,announcer:typeof r.announcer==`boolean`?r.announcer:t.announcer,camera:OX.includes(r.camera)?r.camera:t.camera}}catch{return t}}function PX(e,t=jX()){try{t.setItem(kX,JSON.stringify({volume:Math.max(0,Math.min(1,e.volume)),haptics:e.haptics,reducedMotion:e.reducedMotion,blood:e.blood,commentary:e.commentary,announcer:e.announcer,camera:e.camera}))}catch{}}var FX=class{value;listeners=new Set;constructor(e=jX()){this.storage=e,this.value=NX(e)}storage;get current(){return this.value}update(e){this.value={...this.value,...e},PX(this.value,this.storage);for(let e of this.listeners)e(this.value)}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}destroy(){this.listeners.clear()}},IX={stage:`bootstrapping`,player:null,playerId:null,role:null,players:{},playerOrder:[],simulation:null,snapshot:null,final:null,select:null,serverTick:0,nextSequence:0,reconnectMs:0,safeError:null},LX=e=>Object.fromEntries(e.map(e=>[e.id,e]));function RX(e,t){if(t.type===`bootstrap`)return{...e,stage:`authorizing`,simulation:t.simulation,safeError:null};if(t.type===`authorized`)return{...e,stage:`connecting`,player:t.player,safeError:null};if(t.type===`connecting`)return{...e,stage:`connecting`};if(t.type===`reconnect-tick`)return{...e,stage:`paused`,reconnectMs:Math.max(0,t.remainingMs)};if(t.type===`fatal`)return{...e,stage:`fatal`,safeError:t.code,reconnectMs:0};let n=t.message;switch(n.type){case`welcome`:return{...e,playerId:n.role===`fighter`?n.player_id:null,role:n.role,players:LX(n.players),playerOrder:n.players.map(e=>e.id),serverTick:n.server_tick,nextSequence:n.role===`fighter`?n.next_sequence:0,safeError:null};case`ticket`:return e;case`waiting`:return{...e,stage:`waiting`,select:null};case`select`:return{...e,stage:`select`,select:n,players:LX(n.players),playerOrder:n.players.map(e=>e.id)};case`ready`:return{...e,stage:e.snapshot?.phase??`countdown`,select:null,players:LX(n.players),playerOrder:n.players.map(e=>e.id)};case`paused`:return{...e,stage:`paused`,reconnectMs:n.grace_ms};case`resumed`:return{...e,stage:e.snapshot?.phase??`countdown`,reconnectMs:0};case`snapshot`:return{...e,stage:n.payload.phase,snapshot:n.payload,serverTick:Math.max(e.serverTick,n.payload.tick)};case`final`:return{...e,stage:`complete`,final:n,reconnectMs:0};case`error`:return{...e,stage:`fatal`,safeError:n.code,reconnectMs:0}}}var zX=new Set([`hit`,`counter_hit`,`block`,`perfect_block`,`guard_break`,`knockdown`,`parry`,`body_collapse`,`eye_shut`,`referee_hit`,`referee_down`]),BX=11e3,VX=1500,HX=4e3,UX=3e3,WX=6,GX=5e3,KX=[{level:`rookie`,label:`Rookie`,detail:`Slow hands, leaves openings`},{level:`contender`,label:`Contender`,detail:`Works the body, punishes mistakes`},{level:`champion`,label:`Champion`,detail:`Slips, counters, finishes`}],qX=e=>dn.includes(e),JX=class{root;reloadPage;authorizer;state=IX;settings=new FX;input=new XL;audio=new pA(()=>this.settings.current);haptics=new jL(()=>this.settings.current);voice=new Li(()=>this.settings.current);feedbackEvents=new uR;soundedPunches=[];renderer=null;network=null;session=null;abort=new AbortController;destroyed=!1;generation=0;reloadOnRetry=!1;reloading=!1;canvas;status;overlay;roleIndicator;controlsButton;controlsPanel;retry;rematchButton;hint;cpuPicker;cpuPrompt;cpuLevel=null;rematchOpponent=null;lastPhase=null;cpuRematchLevel=null;cpuRematch=null;cpuRematchTimer=null;diagnosticsTimer=null;finalReceivedAt=0;lastFinalMatchId=null;rematchAttempts=0;rematchTimer=null;rematchCountdownTimer=null;resultRevealTimer=null;resultWaitTimer=null;completeSince=null;summaryClock=new Kr;fightSummary;liveFightStatus;finalSummary;corner;stylePicker;constructor(e,t=()=>window.location.reload(),n=new fL){this.root=e,this.reloadPage=t,this.authorizer=n,e.innerHTML=`
HANDStwo-player boxing

`,this.canvas=e.querySelector(`canvas`),this.status=e.querySelector(`[data-status]`),this.overlay=e.querySelector(`[data-overlay]`),this.roleIndicator=e.querySelector(`[data-role]`),this.controlsButton=e.querySelector(`[data-controls]`),this.controlsPanel=e.querySelector(`[data-controls-panel]`),this.retry=e.querySelector(`[data-retry]`),this.rematchButton=e.querySelector(`[data-rematch]`),this.hint=e.querySelector(`[data-hint]`),this.cpuPicker=e.querySelector(`[data-cpu]`),this.cpuPrompt=e.querySelector(`[data-cpu-prompt]`),this.cpuPicker.addEventListener(`click`,this.onCpuPick),this.rematchButton.addEventListener(`click`,this.onRematch),this.fightSummary=e.querySelector(`[data-fight-summary]`),this.liveFightStatus=e.querySelector(`[data-fight-status]`),this.finalSummary=e.querySelector(`[data-final]`),this.retry.addEventListener(`click`,this.onRetry),this.bindPanels(),this.syncSettings(),this.input.attachTouch(e.querySelector(`.activity`)),this.corner=new wL(e.querySelector(`.activity`),e=>this.network?.sendCornerChoice(e)??!1),this.stylePicker=new kn(e.querySelector(`.activity`),(e,t)=>this.network?.chooseStyle(e,t)??!1),this.input.setViewForward(()=>this.renderer?.viewForward()??null),window.addEventListener(`keydown`,this.onCameraKey)}onCameraKey=e=>{if(e.code!==`KeyK`||e.repeat||e.ctrlKey||e.metaKey||e.altKey)return;let t=e.target;if(t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement)return;e.preventDefault();let n=OX[(OX.indexOf(this.settings.current.camera)+1)%OX.length];this.settings.update({camera:n}),this.root.querySelector(`[data-camera]`).value=n};start(){this.authorize()}resetForAuthorization(){this.reloadOnRetry=!1,this.network?.dispose(),this.network=null,this.session?.destroy(),this.session=null,this.renderer?.destroy(),this.renderer=null,this.voice.cancel(),this.audio.reset(),this.abort.abort(),this.abort=new AbortController,this.state=IX,this.feedbackEvents.reset(),this.input.setActive(!1),this.input.reset(),this.finalSummary.textContent=``,this.fightSummary.textContent=``,this.liveFightStatus.textContent=``,this.clearRematchTimers(),this.rematchButton.hidden=!0,this.cpuLevel=null,this.lastPhase=null}onCpuPick=e=>{let t=e.target?.closest(`[data-cpu-level]`)?.dataset.cpuLevel;qX(t)&&this.state.stage===`waiting`&&this.state.role===`fighter`&&this.cpuLevel===null&&this.callCpu(t)};callCpu(e){this.network?.requestCpu(e)===!0&&(this.cpuLevel=e,this.renderState())}get cpuBout(){return Object.values(this.state.players).some(e=>e.cpu===!0)}onRematch=()=>{this.rematchButton.disabled||this.state.stage!==`complete`||(this.rematchAttempts=1,this.rematchOpponent=this.cpuBout||this.state.role!==`fighter`?null:Object.values(this.state.players).find(e=>e.id!==this.state.playerId)?.name??null,this.authorize())};clearRematchTimers(){this.rematchTimer!==null&&window.clearTimeout(this.rematchTimer),this.rematchCountdownTimer!==null&&window.clearInterval(this.rematchCountdownTimer),this.rematchTimer=null,this.rematchCountdownTimer=null,this.clearCpuRematch()}scheduleCpuRematch(e){this.clearCpuRematch(),this.cpuRematch={level:e,at:Date.now()+GX},this.cpuRematchTimer=window.setInterval(()=>{let e=this.cpuRematch;e===null||this.state.stage!==`waiting`||this.state.role!==`fighter`||this.cpuLevel!==null?this.clearCpuRematch():Date.now()>=e.at&&(this.clearCpuRematch(),this.callCpu(e.level)),this.renderState()},250)}clearCpuRematch(){this.cpuRematchTimer!==null&&window.clearInterval(this.cpuRematchTimer),this.cpuRematchTimer=null,this.cpuRematch=null}awaitResultReveal(){this.resultRevealTimer!==null&&window.clearInterval(this.resultRevealTimer);let e=()=>{let e=this.renderer?.resultVisible??!0;this.overlay.hidden=this.state.stage===`complete`&&!e,(e||this.state.stage!==`complete`)&&this.resultRevealTimer!==null&&(window.clearInterval(this.resultRevealTimer),this.resultRevealTimer=null)};this.resultRevealTimer=window.setInterval(e,200),e()}startRematchCountdown(){this.clearRematchTimers();let e=this.state.role===`fighter`?`Rematch`:`Next bout`,t=()=>{let t=Math.ceil((this.finalReceivedAt+BX-Date.now())/1e3);this.rematchButton.hidden=this.state.stage!==`complete`,this.rematchButton.disabled=t>0,this.setText(this.rematchButton,t>0?`${e} in ${t}s`:e),t<=0&&this.rematchCountdownTimer!==null&&(window.clearInterval(this.rematchCountdownTimer),this.rematchCountdownTimer=null)};t(),this.rematchCountdownTimer=window.setInterval(t,1e3)}scheduleRematchRetry(){this.rematchTimer===null&&(this.rematchAttempts>=WX?this.fail(`rematch_unavailable`):(this.rematchAttempts+=1,this.setText(this.status,`The ring is still being cleared… trying again.`),this.rematchTimer=window.setTimeout(()=>{this.rematchTimer=null,this.authorize()},UX)))}async authorize(){let e=++this.generation;this.resetForAuthorization(),this.dispatch({type:`connecting`}),this.setText(this.status,`Securing Discord Activity session…`),this.retry.hidden=!0;try{let t=await this.authorizer.authorize(this.abort.signal);if(this.destroyed||e!==this.generation){t.destroy();return}this.session=t,this.dispatch({type:`bootstrap`,simulation:t.bootstrap.simulation}),this.dispatch({type:`authorized`,player:t.player}),this.input.onAction(e=>{if(e.kind===`get_up_left`||e.kind===`get_up_right`){let t=this.renderer?.pressGetUp(e.kind)??null;t!==null&&this.audio.getUpVerdict(t.detail)}this.renderer?.predictAction?.(e),this.network?.notifyAction()}),this.input.onHeldChange(()=>this.network?.notifyHeld());let n=t.takeTicket();if(n===null)throw Error(`ticket_unavailable`);let r=new xR(n,()=>this.input.frame(),{onMessage:e=>this.receive(e),onReconnect:e=>{this.dispatch({type:`reconnect-tick`,remainingMs:e}),this.renderer?.setReconnect(e),this.renderState()},onFatal:e=>this.fail(e),onFreshAuth:()=>{e===this.generation&&this.authorize()}});this.network=r,r.start(),this.setText(this.status,`Connecting to the ring…`)}catch(t){!this.abort.signal.aborted&&e===this.generation&&(this.reloadOnRetry=t instanceof mA&&t.reloadRequired,this.fail(bA(t)))}}ensureRenderer(){if(this.renderer!==null||this.session===null||this.destroyed)return;let e=new DX(this.canvas,this.session.bootstrap.simulation,()=>this.settings.current,{localInput:()=>this.input.held(),inputSequenceOf:e=>this.network?.sequenceOf(e)??null,powerHeld:()=>this.input.powerHeld});e.onGetUpBeat=()=>{this.audio.getUpBeat(),this.haptics.getUpBeat()},e.onContact=(e,t)=>{this.audio.event(e,t),this.haptics.event(e,t)},e.onOwnPunch=(e,t,n)=>{this.audio.whoosh(e,t),this.soundedPunches.push(n),this.soundedPunches.length>8&&this.soundedPunches.shift()},e.onArcadeInjury=e=>this.audio.injury(e),e.onGore=e=>{this.audio.gore(e),this.haptics.gore(e),e.kind===`finish_him`?this.voice.shout(`Finish him!`):e.kind===`fatality`&&this.voice.shout(`Fatality.`)},e.onAnnouncement=e=>this.voice.speak(e),e.onCrowdCue=()=>this.audio.chant(),e.onRocked=(e,t)=>this.audio.rocked(e,t),this.renderer=e}receive(e){if(e.type===`error`){this.fail(e.code);return}e.type===`welcome`&&this.ensureRenderer(),(e.type===`welcome`||e.type===`resumed`)&&this.renderer?.resyncClock();let t=this.rematchAttempts>0;(e.type===`waiting`||e.type===`ready`)&&(this.rematchAttempts=0),e.type===`ready`&&(this.rematchOpponent=null),e.type===`ready`&&this.rememberStyle(e.players),e.type===`final`&&this.rematchAttempts>0&&e.match_id===this.lastFinalMatchId?this.scheduleRematchRetry():(this.dispatch({type:`message`,message:e}),e.type===`snapshot`&&this.receiveSnapshot(e.payload),e.type!==`select`&&e.type!==`ready`||e.players.some(e=>e.cpu===!0)||(this.cpuLevel=null),e.type===`waiting`&&(this.cpuLevel===null?t&&this.cpuRematchLevel!==null&&this.scheduleCpuRematch(this.cpuRematchLevel):this.callCpu(this.cpuLevel)),e.type===`final`&&(this.cpuRematchLevel=this.cpuBout?this.cpuLevel:null,this.rematchAttempts=0,this.lastFinalMatchId=e.match_id,this.finalReceivedAt=Date.now(),this.renderer?.setFinal(e),this.audio.result(e),this.startRematchCountdown(),this.awaitResultReveal()),this.renderer?.setPlayers(this.state.players,this.state.playerId,this.state.playerOrder),this.renderer?.setReconnect(this.state.reconnectMs),this.renderState())}get networkStats(){return{inputLatencyMs:this.network?.inputLatencyMs??null,resolutionScale:this.renderer?.resolutionScale??null,gpu:this.renderer?.memoryInfo??null}}receiveSnapshot(e){this.lastPhase===`countdown`&&e.phase!==`countdown`&&this.voice.finishLine(VX),this.lastPhase=e.phase,this.renderer?.setInputLatency(this.network?.inputLatencyMs??null),this.renderer?.push(e);let t=e.fighters.find(e=>e.player_id===this.state.playerId);this.input.setKnockdown(t?.is_downed===!0),this.input.setGetUpPrompt(t?.is_downed===!0?this.renderer?.getUpView?.prompt?.side??t.get_up_prompt:null),t!==void 0&&this.audio.snapshot(e.tick,t.stamina,t.maximum_stamina,t.trauma.head+t.trauma.body),this.audio.roundClock(e.phase,e.round_number,e.phase_ticks_remaining,this.state.simulation?.tick_rate??30),this.audio.tension(vz(e));for(let n of this.feedbackEvents.accept(e.events)){if(zX.has(n.kind)||n.kind===`count`&&t?.is_downed===!0||n.kind===`punch_start`&&n.action_id!==null&&this.soundedPunches.includes(n.action_id))continue;let r=n.kind===`punch_start`?e.fighters.find(e=>e.player_id===n.actor_id&&e.action_id===n.action_id):void 0;this.audio.event(n,r?.action_power===`power`),this.haptics.event(n)}}rememberStyle(e){let t=e.find(e=>e.id===this.state.playerId)?.style;this.state.role===`fighter`&&t!==void 0&&Sn(t)}dispatch(e){this.state=RX(this.state,e)}setText(e,t){e.textContent!==t&&(e.textContent=t)}renderState(){let e={bootstrapping:`Loading…`,authorizing:`Authorizing with Discord…`,connecting:`Connecting securely…`,waiting:this.state.role===`spectator`?`Waiting for the fighters…`:this.cpuLevel===null?this.cpuRematch===null?this.rematchOpponent===null?`Waiting for an opponent. Anyone in this channel can join with Play now.`:`Waiting for ${this.rematchOpponent} to take the rematch…`:`Rematch with the ${KX.find(e=>e.level===this.cpuRematch?.level)?.label??`computer`} in ${Math.max(1,Math.ceil((this.cpuRematch.at-Date.now())/1e3))}s, unless someone joins first.`:`Calling in the computer…`,select:`Pick how your fighter boxes.`,countdown:`Bout countdown.`,fight:`Round ${this.state.snapshot?.round_number??1} in progress.`,knockdown:`Knockdown count ${this.state.snapshot?.fighters.find(e=>e.player_id===this.state.playerId)?.get_up_count??0}.`,foul_recovery:`Foul recovery in progress.`,referee_down:`The referee is down. The bout goes on without him.`,finish:this.state.snapshot!==null&&fi(this.state.snapshot.fighters)?.player_id===this.state.playerId?`You are out on your feet: one more punch kills you.`:`Finish him: one more punch kills.`,rest:`Between-round rest.`,paused:`Connection paused. ${Math.ceil(this.state.reconnectMs/1e3)} seconds remain.`,complete:this.cpuBout?`Bout complete. Scorecards are displayed. Bouts against the computer are unrated.`:`Bout complete. Scorecards and rating changes are displayed.`,fatal:EL(this.state.safeError??`safe_error`)},t=this.state.role===`spectator`;this.setText(this.status,t?`Spectating — ${e[this.state.stage]}`:e[this.state.stage]);let n=this.state.stage===`complete`&&this.state.final!==null;if(this.status.hidden=n||[`select`,`countdown`,`fight`,`knockdown`,`foul_recovery`,`referee_down`,`finish`,`rest`].includes(this.state.stage),this.overlay.toggleAttribute(`data-raised`,this.state.snapshot!==null),this.overlay.toggleAttribute(`data-result`,n),this.state.stage!==`complete`)this.overlay.hidden=!1,this.completeSince=null;else if(this.state.final===null){this.completeSince??=Date.now();let e=Date.now()-this.completeSince;this.overlay.hidden=e{this.resultWaitTimer=null,this.renderState()},HX-e+50))}this.roleIndicator.hidden=!t,this.controlsButton.hidden=t,t&&(this.controlsPanel.hidden=!0,this.controlsButton.setAttribute(`aria-expanded`,`false`));let r=this.state.snapshot?.fighters.find(e=>e.player_id===this.state.playerId),i=t?`Spectating. ${e[this.state.stage]}`:this.state.stage===`knockdown`&&r?.is_downed===!0?we(this.renderer?.getUpView??Se(r,this.state.snapshot?.tick??0,0,null,null,Re(),!1)):this.state.stage===`paused`?`Connection paused.`:e[this.state.stage];this.setText(this.liveFightStatus,i),this.corner.update(this.state.snapshot,this.state.playerId,this.state.role===`fighter`&&this.state.stage===`rest`),this.renderer?.setCornerPanelTop(this.corner.top()),this.stylePicker.update(this.state.stage===`select`?this.state.select:null,this.state.playerId,this.state.role),this.retry.hidden=this.state.stage!==`fatal`,this.setText(this.retry,this.reloadOnRetry?`Reload`:`Retry securely`),this.state.stage!==`complete`&&(this.rematchButton.hidden=!0),this.cpuPicker.hidden=t||this.state.stage!==`waiting`||this.cpuLevel!==null,this.setText(this.cpuPrompt,this.cpuRematch===null?this.rematchOpponent===null?`No one here yet? Fight the computer.`:`Or fight the computer instead:`:`Or start now:`);let a=!t&&(this.state.stage===`waiting`||this.state.stage===`countdown`);this.hint.hidden=!a,a&&this.setText(this.hint,Ne(Re(),window.innerWidth)),this.overlay.toggleAttribute(`data-touch-hint`,a&&this.state.stage===`countdown`&&Re());let o=!t&&[`countdown`,`fight`,`knockdown`,`foul_recovery`,`referee_down`,`finish`].includes(this.state.stage),s=!t&&this.state.snapshot!==null&&(this.state.stage===`rest`||this.state.stage===`paused`);if(this.input.setActive(o,o||s),this.network?.setActive(o),this.renderFightSummary(),this.state.final!==null){let e=this.state.final;this.setText(this.finalSummary,`${e.method.replaceAll(`_`,` `)}. ${e.winner_id===null?`Draw`:`${this.state.players[e.winner_id]?.name??`Winner`} wins`}. Scorecards: ${e.scorecards.map(e=>`${e.judge}: ${e.player_one.reduce((e,t)=>e+t,0)} to ${e.player_two.reduce((e,t)=>e+t,0)}`).join(`; `)}. ${this.cpuBout?`Unrated bout against the computer.`:`Ratings: ${Object.entries(e.ratings).map(([e,t])=>`${this.state.players[e]?.name??`fighter`} ${t.before} to ${t.after}`).join(`; `)}.`}`)}}renderFightSummary(){let e=this.state.snapshot;if(e===null)return;let t=this.state.simulation?.tick_rate??30,n=Math.floor(this.summaryClock.ticks(e)/t),r=`${Math.floor(n/60)}:${String(n%60).padStart(2,`0`)}`,i=e.fighters.map(e=>{let t=this.state.players[e.player_id],n=e.injuries.length===0?`no injuries`:`injuries: ${e.injuries.map(e=>tt(e).toLowerCase()).join(`, `)}`;return`${t?.name??`Fighter`}, ${t?.cpu===!0?`computer opponent`:`ELO ${t?.rating??`unknown`}`}, stamina ${Math.round(e.stamina)} of ${Math.round(e.maximum_stamina)}, guard ${Math.round(e.guard)}, poise ${Math.round(e.poise)}, conditioning ${Math.round(e.conditioning)}, blood ${Math.round(e.blood_volume/Je*100)} percent, ${n}, ${e.warnings} warnings, ${e.knockdowns} knockdowns`}),a=e.fighters.find(e=>e.player_id===this.state.playerId),o=a?.is_downed===!0?we(this.renderer?.getUpView??Se(a,e.tick,0,null,null,Re(),!1)):``;this.setText(this.fightSummary,`Round ${e.round_number}. ${e.phase.replace(`_`,` `)}. Clock ${r}. ${i.join(`. `)}. ${o}`.trim())}onRetry=()=>{this.reloadOnRetry?(this.reloading=!0,this.reloadPage()):this.authorize()};bindPanels(){let e=(e,t)=>{let n=this.root.querySelector(e),r=this.root.querySelector(t);n.addEventListener(`click`,()=>{r.hidden=!r.hidden,n.setAttribute(`aria-expanded`,String(!r.hidden))})};e(`[data-controls]`,`[data-controls-panel]`),e(`[data-settings]`,`[data-settings-panel]`);let t=this.root.querySelector(`[data-settings-panel]`);this.root.querySelector(`[data-settings]`).addEventListener(`click`,()=>{this.diagnosticsTimer!==null&&window.clearInterval(this.diagnosticsTimer),this.diagnosticsTimer=null,t.hidden||(this.refreshDiagnostics(),this.diagnosticsTimer=window.setInterval(()=>this.refreshDiagnostics(),1e3))});let n=this.root.querySelector(`[data-copy-diagnostics]`);n.addEventListener(`click`,()=>{let e=this.diagnosticsText(),t=()=>{this.setText(n,`Copied`),window.setTimeout(()=>this.setText(n,`Copy diagnostics`),1500)},r=()=>{let e=this.root.querySelector(`[data-diagnostics]`),t=window.getSelection();if(t===null)return;let r=document.createRange();r.selectNodeContents(e),t.removeAllRanges(),t.addRange(r),this.setText(n,`Selected. Copy manually`),window.setTimeout(()=>this.setText(n,`Copy diagnostics`),2500)},i=navigator.clipboard;i===void 0||typeof i.writeText!=`function`?r():i.writeText(e).then(t).catch(r)}),this.root.querySelector(`[data-volume]`).addEventListener(`input`,e=>{this.settings.update({volume:Number(e.target.value)}),this.audio.setVolume(),this.voice.settingsChanged()}),this.root.querySelector(`[data-haptics]`).addEventListener(`change`,e=>{this.settings.update({haptics:e.target.checked})}),this.root.querySelector(`[data-motion]`).addEventListener(`change`,e=>{let t=e.target.checked;this.settings.update({reducedMotion:t}),this.renderer?.setReducedMotion(t)}),this.root.querySelector(`[data-commentary]`).addEventListener(`change`,e=>{this.settings.update({commentary:e.target.checked})}),this.root.querySelector(`[data-announcer]`).addEventListener(`change`,e=>{let t=e.target.checked;this.settings.update({announcer:t}),t||this.voice.cancel()}),this.root.querySelector(`[data-blood]`).addEventListener(`change`,e=>{let t=e.target.value;this.settings.update({blood:t}),this.renderer?.setBloodLevel(t)}),this.root.querySelector(`[data-camera]`).addEventListener(`change`,e=>{let t=OX.find(t=>t===e.target.value);t!==void 0&&this.settings.update({camera:t})})}diagnosticsText(){let e=this.networkStats,t=this.renderer?.diagnostics,n=t===void 0||t.frameMs<=0?`-`:(1e3/t.frameMs).toFixed(0);return[`stage: ${this.state.stage} · role: ${this.state.role??`-`}`,`input latency: ${e.inputLatencyMs===null?`-`:`${Math.round(e.inputLatencyMs)} ms`}`,`frame: ${t===void 0?`-`:`${t.frameMs.toFixed(1)} ms (${n} fps)`} · render scale: ${t?.resolutionScale??`-`}`,`gpu objects: ${t===void 0?`-`:`${t.gpu.geometries} geometries, ${t.gpu.textures} textures, ${t.gpu.programs} programs`}`,`graphics: ${t?.graphics??`-`}`,`browser: ${navigator.userAgent}`,`pointer: ${Re()?`coarse`:`fine`} · viewport: ${window.innerWidth}x${window.innerHeight} @${window.devicePixelRatio}`,`last error: ${this.state.safeError??`none`}`,`match: ${this.state.final?.match_id??`-`}`].join(` +`)}refreshDiagnostics(){this.setText(this.root.querySelector(`[data-diagnostics]`),this.diagnosticsText())}syncSettings(){let e=this.settings.current;this.root.querySelector(`[data-volume]`).value=String(e.volume),this.root.querySelector(`[data-haptics]`).checked=e.haptics,this.root.querySelector(`[data-motion]`).checked=e.reducedMotion,this.root.querySelector(`[data-blood]`).value=e.blood,this.root.querySelector(`[data-commentary]`).checked=e.commentary,this.syncAnnouncerSetting(),this.voice.onVoicesChanged=()=>this.syncAnnouncerSetting(),this.root.querySelector(`[data-camera]`).value=e.camera}syncAnnouncerSetting(){let e=this.root.querySelector(`[data-announcer]`),t=this.voice.hasVoice;e.checked=this.settings.current.announcer&&t,e.disabled=!t;let n=this.voice.supported?t?null:`This device has no English voice of its own`:`This browser cannot speak`;n===null?e.parentElement.removeAttribute(`title`):e.parentElement.title=n}fail(e){e===`room_closed`&&this.rematchAttempts>0?this.scheduleRematchRetry():(e===`client_outdated`&&(this.reloadOnRetry=!0),this.dispatch({type:`fatal`,code:e}),this.rematchOpponent=null,this.voice.cancel(),this.network?.dispose(),this.network=null,this.session?.destroy(),this.session=null,this.renderer?.destroy(),this.renderer=null,this.input.setActive(!1),this.input.reset(),this.renderState())}destroy(){this.destroyed||(this.destroyed=!0,this.generation+=1,this.abort.abort(),this.network?.dispose(),this.session?.destroy(),this.reloading||this.authorizer.close(),this.renderer?.destroy(),window.removeEventListener(`keydown`,this.onCameraKey),this.input.destroy(),this.corner.destroy(),this.stylePicker.destroy(),this.audio.destroy(),this.voice.destroy(),this.settings.destroy(),this.retry.removeEventListener(`click`,this.onRetry),this.rematchButton.removeEventListener(`click`,this.onRematch),this.cpuPicker.removeEventListener(`click`,this.onCpuPick),this.clearRematchTimers(),this.diagnosticsTimer!==null&&window.clearInterval(this.diagnosticsTimer),this.resultRevealTimer!==null&&window.clearInterval(this.resultRevealTimer),this.resultWaitTimer!==null&&window.clearTimeout(this.resultWaitTimer),this.diagnosticsTimer=null,this.root.replaceChildren())}};(new URLSearchParams(window.location.search).get(`styles`)??``).split(`,`);var YX={broadcast:{position:[0,1.88,7.15],lookAt:[0,1.12,0]},side:{position:[7.4,1.6,0],lookAt:[0,1.1,0]},top:{position:[.01,8.5,.01],lookAt:[0,0,0]},ringside:{position:[1.6,1.5,4.1],lookAt:[.2,1.25,0]}},XX=[[`hips`,`spine`],[`spine`,`head`],[`chest`,`shoulderL`],[`shoulderL`,`elbowL`],[`elbowL`,`gloveL`],[`chest`,`shoulderR`],[`shoulderR`,`elbowR`],[`elbowR`,`gloveR`],[`hips`,`hipL`],[`hipL`,`kneeL`],[`kneeL`,`ankleL`],[`hips`,`hipR`],[`hipR`,`kneeR`],[`kneeR`,`ankleR`]],ZX=class{root;renderer=null;replay=null;raf=0;playing=!1;speed=1;virtualTick=0;carry=0;latencyMs=0;pendingQueue=[];destroyed=!1;overlays={skeleton:!1,hurtbox:!1,hitbox:!1};skeletonLines=[];hurtboxMeshes=[];hitboxMeshes=[];statusEl;metricsEl;canvas;constructor(e){this.root=e,e.innerHTML=`
HANDS LABloading replay…
@@ -5550,7 +5551,7 @@ void main() { -
`,this.canvas=e.querySelector(`canvas`),this.statusEl=e.querySelector(`[data-lab-status]`),this.metricsEl=e.querySelector(`[data-lab-metrics]`),this.bindControls()}async start(){let e=new URLSearchParams(window.location.search),t=e.get(`replay`)??`golden`,n=await fetch(`/replays/${t}.json`);if(n.ok||(n=await fetch(`/hands/replays/${t}.json`)),!n.ok)throw Error(`replay_load_failed:${n.status}`);this.replay=await n.json(),await YC(),this.renderer=new QY(this.canvas,{tick_rate:this.replay.tick_rate,ring_half_width:500,ring_half_height:500},()=>({volume:0,haptics:!1,reducedMotion:!1,blood:`full`,commentary:!0,announcer:!1,camera:`broadcast`}),{manualClock:!0});let r=Object.fromEntries(this.replay.ticks[0].snapshot.payload.fighters.map(e=>[e.player_id,{id:e.player_id,name:e.player_id===`one`?`Azure Vector`:`Crimson Geometry`,avatar:null,rating:1500,connected:!0}]));this.renderer.setPlayers(r,`one`),this.buildOverlays();let i=e.get(`tick`);if(e.get(`metrics`)===`1`){await this.renderer.ready,this.exportMetrics(),this.setStatus(`metrics done`);return}if(i!==null){let t=Number(i);await this.renderer.ready,this.seek(t);let n=bX[e.get(`camera`)??``]??bX.broadcast;this.renderer.labSetCameraOverride(n.position,n.lookAt),this.overlays.skeleton=e.get(`skeleton`)===`1`,this.overlays.hurtbox=e.get(`hurtbox`)===`1`,this.overlays.hitbox=e.get(`hitbox`)===`1`,this.syncOverlayVisibility(),this.renderCurrentTick(),window.__labDebug={roots:this.renderer.labRigs.map(e=>e.position.toArray().map(e=>Number(e.toFixed(3)))),heads:this.renderer.labRigs.map(e=>{let t=e.getObjectByName(gy.head??`head`);return t===void 0?null:t.getWorldPosition(new z).toArray().map(e=>Number(e.toFixed(3)))}),gloves:this.renderer.labRigs.map(e=>{let t=e.getObjectByName(gy.gloveL??`gloveL`);return t===void 0?null:t.getWorldPosition(new z).toArray().map(e=>Number(e.toFixed(3)))}),material:(()=>{let e=null;return this.renderer.labRigs[0]?.traverse(t=>{if(e===null&&t instanceof rl){let n=t.material;e={colorHex:n.color.getHexString(),hasMap:n.map!==null,mapImage:n.map?.image?.width??`none`,mapVersion:n.map?.version,clearcoat:n.clearcoat,opacity:n.opacity}}}),e})()},this.setStatus(`filmstrip tick ${t}`);return}this.playing=!0;let a=()=>{this.destroyed||(this.advance(),this.raf=requestAnimationFrame(a))};this.raf=requestAnimationFrame(a)}bindControls(){this.root.querySelector(`[data-lab='play']`).addEventListener(`click`,e=>{this.playing=!this.playing,e.target.textContent=this.playing?`Pause`:`Play`}),this.root.querySelector(`[data-lab='step']`).addEventListener(`click`,()=>{this.playing=!1,this.root.querySelector(`[data-lab='play']`).textContent=`Play`,this.virtualTick=Math.min(this.virtualTick+1,(this.replay?.ticks.length??1)-1),this.pushUpTo(this.virtualTick),this.renderCurrentTick()}),this.root.querySelector(`[data-lab='speed']`).addEventListener(`change`,e=>{this.speed=Number(e.target.value)}),this.root.querySelector(`[data-lab='camera']`).addEventListener(`change`,e=>{let t=bX[e.target.value];this.renderer?.labSetCameraOverride(t.position,t.lookAt)});for(let e of[`skeleton`,`hurtbox`,`hitbox`])this.root.querySelector(`[data-lab='${e}']`).addEventListener(`change`,t=>{this.overlays[e]=t.target.checked,this.syncOverlayVisibility()});this.root.querySelector(`[data-lab='latency']`).addEventListener(`change`,e=>{this.latencyMs=Math.max(0,Math.min(500,Number(e.target.value)))}),this.root.querySelector(`[data-lab='metrics']`).addEventListener(`click`,()=>this.exportMetrics())}advance(){if(!this.playing||this.replay===null)return;let e=this.replay.ticks.length-1;if(!(this.virtualTick>=e)){for(this.carry+=this.speed;this.carry>=1&&this.virtualTick0?this.pendingQueue.push({at:performance.now()+this.latencyMs,tick:t}):this.renderer?.push(t.snapshot.payload))}drainLatencyQueue(){let e=performance.now();for(let t=this.pendingQueue.length-1;t>=0;--t){let n=this.pendingQueue[t];n.at<=e&&(this.renderer?.push(n.tick.snapshot.payload),this.pendingQueue.splice(t,1))}}seek(e,t=!0){if(this.replay===null||this.renderer===null)return;let n=Math.max(0,Math.min(e,this.replay.ticks.length-1));for(let e=0;e<=n;e+=1)this.renderer.push(this.replay.ticks[e].snapshot.payload),e>=n-15&&this.renderer.labEffects.update(1/30);this.virtualTick=n,this.renderOnSeek=t}renderOnSeek=!0;renderCurrentTick(e){if(this.replay===null||this.renderer===null)return;this.drainLatencyQueue(),this.renderer.labFrame(this.virtualTick/this.replay.tick_rate,e??this.renderOnSeek),this.renderer.labFrame((this.virtualTick+.5)/this.replay.tick_rate,e??this.renderOnSeek),this.updateOverlays();let t=this.replay.ticks[this.virtualTick]?.snapshot.payload.phase??``;this.setStatus(`tick ${this.virtualTick}/${this.replay.ticks.length-1} · ${t} · ${this.speed}×`)}buildOverlays(){let e=this.renderer;if(e===null)return;let t=new Sl({color:8257448,depthTest:!1,transparent:!0,opacity:.9});for(let n of e.labRigs){let r=new yc;r.setAttribute(`position`,new ic(new Float32Array(xX.length*6),3));let i=new Pl(r,t);i.frustumCulled=!1,i.renderOrder=20,e.labScene.add(i),this.skeletonLines.push(i);let a=new V(new Yl(.13,.16,4,8),new Pc({color:16735581,wireframe:!0,transparent:!0,opacity:.85,depthTest:!1}));a.renderOrder=21,a.position.y=.12,(n.getObjectByName(gy.head??`head`)??n).add(a),this.hurtboxMeshes.push(a);let o=new V(new Yl(.21,.34,4,8),new Pc({color:16758877,wireframe:!0,transparent:!0,opacity:.7,depthTest:!1}));o.renderOrder=21,o.position.y=.16,(n.getObjectByName(gy.chest??`chest`)??n).add(o),this.hurtboxMeshes.push(o);for(let e of[`gloveL`,`gloveR`]){let t=new V(new Mu(.11,10,8),new Pc({color:6141183,wireframe:!0,transparent:!0,opacity:.85,depthTest:!1}));t.renderOrder=22,(n.getObjectByName(gy[e]??e)??n).add(t),this.hitboxMeshes.push(t)}}this.syncOverlayVisibility()}syncOverlayVisibility(){for(let e of this.skeletonLines)e.visible=this.overlays.skeleton;for(let e of this.hurtboxMeshes)e.visible=this.overlays.hurtbox;for(let e of this.hitboxMeshes)e.visible=this.overlays.hitbox}updateOverlays(){let e=this.renderer;if(e!==null)for(let[t,n]of e.labRigs.entries()){let e=this.skeletonLines[t];if(e===void 0||!e.visible)continue;let r=e.geometry.getAttribute(`position`),i=new z,a=new z;xX.forEach(([e,t],o)=>{let s=n.getObjectByName(e),c=n.getObjectByName(t);s!==void 0&&c!==void 0&&(s.getWorldPosition(i),c.getWorldPosition(a),r.setXYZ(o*2,i.x,i.y,i.z),r.setXYZ(o*2+1,a.x,a.y,a.z))}),r.needsUpdate=!0}}jointWorld(e,t){let n=(this.renderer?.labRigs[e])?.getObjectByName(gy[t]??t);return n==null?null:n.getWorldPosition(new z)}exportMetrics(){if(this.replay===null)return;let e={contactAlignment:[],maxRootStepMeters:0,footSlideMeters:0,phaseDriftTicks:0};for(let t of this.replay.ticks){let n=t.snapshot.payload.events.find(e=>[`hit`,`counter_hit`,`block`].includes(e.kind)),r=t.snapshot.payload.fighters[0].action_hand;if(n===void 0||r===null)continue;let i=Math.min(t.tick+1,this.replay.ticks.length-1);this.seek(i,!1),this.renderCurrentTick(!1);let a=this.jointWorld(0,r===`left`?`gloveL`:`gloveR`),o=this.jointWorld(1,`head`),c=this.jointWorld(1,`chest`);a!==null&&o!==null&&c!==null&&e.contactAlignment.push({tick:t.tick,kind:n.kind,gloveToHeadMeters:Number(Math.max(0,a.distanceTo(o)-s.head.radius).toFixed(4)),gloveToTorsoMeters:Number(Math.max(0,a.distanceTo(c)-s.torso.radius).toFixed(4))})}this.seek(0,!1);let t=null,n=null;for(let r of this.replay.ticks){this.seek(r.tick,!1),this.renderCurrentTick(!1);let i=this.renderer.labRigs[0].position.x;n!==null&&(e.maxRootStepMeters=Math.max(e.maxRootStepMeters,Math.abs(i-n))),n=i;let a=r.snapshot.payload.fighters[0],o=Math.hypot(a.velocity_x,a.velocity_y),s=this.replay.ticks.slice(Math.max(0,r.tick-30),r.tick+1).some(e=>e.snapshot.payload.fighters[0].is_downed);if(o===0&&!a.is_downed&&!s&&r.snapshot.payload.phase===`fight`){let n=[this.jointWorld(0,`ankleL`),this.jointWorld(0,`ankleR`)].filter(e=>e!==null);t!==null&&n.length===2&&(e.footSlideMeters=Math.max(e.footSlideMeters,Number(Math.max(n[0].distanceTo(t[0]),n[1].distanceTo(t[1])).toFixed(4)))),t=n}else t=null}this.metricsEl.textContent=` contacts: ${e.contactAlignment.map(e=>`${e.kind}@t${e.tick} glove-head ${e.gloveToHeadMeters}m`).join(` · `)} · max root step ${e.maxRootStepMeters.toFixed(3)}m · foot slide ${e.footSlideMeters}m`,window.__labDebug={roots:this.renderer.labRigs.map(e=>e.position.toArray().map(e=>Number(e.toFixed(3)))),graphsActive:this.renderer.graphs!==null,heads:this.renderer.labRigs.map(e=>{let t=e.getObjectByName(gy.head??`head`);return t===void 0?null:t.getWorldPosition(new z).toArray().map(e=>Number(e.toFixed(3)))})};let r=new Blob([JSON.stringify(e,null,1)],{type:`application/json`}),i=document.createElement(`a`);i.href=URL.createObjectURL(r),i.download=`hands-lab-metrics.json`,i.click(),URL.revokeObjectURL(i.href)}setStatus(e){this.statusEl.textContent!==e&&(this.statusEl.textContent=e)}destroy(){this.destroyed||(this.destroyed=!0,cancelAnimationFrame(this.raf),this.renderer?.destroy(),this.root.replaceChildren())}};function CX(e){let t=new SX(e);return t.start().catch(t=>{e.querySelector(`[data-lab-status]`).textContent=`lab failed: ${String(t)}`}),()=>t.destroy()}var wX={referee:{outfit:Gy,look:Cy.referee},corner_blue:{outfit:Ky,look:Cy.blueCorner},corner_red:{outfit:qy,look:Cy.redCorner},cutman:{outfit:Jy,look:Cy.blueCutman}},TX=()=>({player_id:`lab`,x:0,y:0,facing:1,facing_x:0,facing_y:-1e3,velocity_x:0,velocity_y:0,stance:`orthodox`,style:`balanced`,defense:`none`,stamina:1e3,maximum_stamina:1e3,conditioning:1e3,guard:700,guard_broken:!1,poise:600,trauma:{head:0,body:0,left_eye:0,right_eye:0,left_cut:0,right_cut:0,swelling:0,bleeding:0},knockdowns:0,warnings:0,deductions:0,stunned_ticks:0,is_downed:!1,action:null,action_hand:null,action_target:null,action_power:null,action_id:null,action_key:null,action_start_tick:0,action_startup_ticks:0,action_active_ticks:0,action_recovery_ticks:0,action_contact_tick:null,queued_actions:0,clinch_startup_ticks:0,clinch_ticks:0,is_foul_recovery_target:!1,taunt_ticks:0,corner_choice:null,get_up_prompt:null,get_up_meter:0,get_up_required:0,get_up_count:0,get_up_window_start_tick:0,get_up_window_end_tick:0,last_input_sequence:-1,injuries:[],blood_volume:1e3}),EX=.45,DX=.3,OX={face:[.25,1.55,1],portrait:[.12,1.62,.62],eyes:[-.2,1.65,.44],floor:[1.62,.3,.18],hand:[.55,1.05,.75],front:[0,1.35,3.4],side:[3.4,1.3,.2],"three-quarter":[2.4,1.5,2.6],top:[.01,4.5,.6],back:[.2,1.4,-3.4],low:[1.8,.5,2.6],wide:[3.4,2.7,3.6]},kX=class{root;renderer;scene=new Ts;camera;graph=null;boxer=null;trails=[];trailGlove=new z;treatEye=new z(0,1.22,.78);treatFacing=new z(0,0,-1);treatTarget=new z;skeletonHelper=null;effects=null;shieldClock=1/0;shieldEvent=0;mouth=new z;headTurn=new vo;burstRim=new Float32Array;burstStump={position:new z,quaternion:new vo,across:new z,scratch:new z};raf=0;previous=performance.now();elapsed=0;params=new URLSearchParams(window.location.search);reactionFired=!1;carnage=null;injuries=[];inflictions=[];killed=!1;vomitClock=0;worn=!1;headAt=new z;statusEl;constructor(e){this.root=e,e.innerHTML=`
+
`,this.canvas=e.querySelector(`canvas`),this.statusEl=e.querySelector(`[data-lab-status]`),this.metricsEl=e.querySelector(`[data-lab-metrics]`),this.bindControls()}async start(){let e=new URLSearchParams(window.location.search),t=e.get(`replay`)??`golden`,n=await fetch(`/replays/${t}.json`);if(n.ok||(n=await fetch(`/hands/replays/${t}.json`)),!n.ok)throw Error(`replay_load_failed:${n.status}`);this.replay=await n.json(),await Pw(),this.renderer=new DX(this.canvas,{tick_rate:this.replay.tick_rate,ring_half_width:500,ring_half_height:500},()=>({volume:0,haptics:!1,reducedMotion:!1,blood:`full`,commentary:!0,announcer:!1,camera:`broadcast`}),{manualClock:!0});let r=Object.fromEntries(this.replay.ticks[0].snapshot.payload.fighters.map(e=>[e.player_id,{id:e.player_id,name:e.player_id===`one`?`Azure Vector`:`Crimson Geometry`,avatar:null,rating:1500,connected:!0}]));this.renderer.setPlayers(r,`one`),this.buildOverlays();let i=e.get(`tick`);if(e.get(`metrics`)===`1`){await this.renderer.ready,this.exportMetrics(),this.setStatus(`metrics done`);return}if(i!==null){let t=Number(i);await this.renderer.ready,this.seek(t);let n=YX[e.get(`camera`)??``]??YX.broadcast;this.renderer.labSetCameraOverride(n.position,n.lookAt),this.overlays.skeleton=e.get(`skeleton`)===`1`,this.overlays.hurtbox=e.get(`hurtbox`)===`1`,this.overlays.hitbox=e.get(`hitbox`)===`1`,this.syncOverlayVisibility(),this.renderCurrentTick(),window.__labDebug={roots:this.renderer.labRigs.map(e=>e.position.toArray().map(e=>Number(e.toFixed(3)))),heads:this.renderer.labRigs.map(e=>{let t=e.getObjectByName(tb.head??`head`);return t===void 0?null:t.getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3)))}),gloves:this.renderer.labRigs.map(e=>{let t=e.getObjectByName(tb.gloveL??`gloveL`);return t===void 0?null:t.getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3)))}),material:(()=>{let e=null;return this.renderer.labRigs[0]?.traverse(t=>{if(e===null&&t instanceof Hl){let n=t.material;e={colorHex:n.color.getHexString(),hasMap:n.map!==null,mapImage:n.map?.image?.width??`none`,mapVersion:n.map?.version,clearcoat:n.clearcoat,opacity:n.opacity}}}),e})()},this.setStatus(`filmstrip tick ${t}`);return}this.playing=!0;let a=()=>{this.destroyed||(this.advance(),this.raf=requestAnimationFrame(a))};this.raf=requestAnimationFrame(a)}bindControls(){this.root.querySelector(`[data-lab='play']`).addEventListener(`click`,e=>{this.playing=!this.playing,e.target.textContent=this.playing?`Pause`:`Play`}),this.root.querySelector(`[data-lab='step']`).addEventListener(`click`,()=>{this.playing=!1,this.root.querySelector(`[data-lab='play']`).textContent=`Play`,this.virtualTick=Math.min(this.virtualTick+1,(this.replay?.ticks.length??1)-1),this.pushUpTo(this.virtualTick),this.renderCurrentTick()}),this.root.querySelector(`[data-lab='speed']`).addEventListener(`change`,e=>{this.speed=Number(e.target.value)}),this.root.querySelector(`[data-lab='camera']`).addEventListener(`change`,e=>{let t=YX[e.target.value];this.renderer?.labSetCameraOverride(t.position,t.lookAt)});for(let e of[`skeleton`,`hurtbox`,`hitbox`])this.root.querySelector(`[data-lab='${e}']`).addEventListener(`change`,t=>{this.overlays[e]=t.target.checked,this.syncOverlayVisibility()});this.root.querySelector(`[data-lab='latency']`).addEventListener(`change`,e=>{this.latencyMs=Math.max(0,Math.min(500,Number(e.target.value)))}),this.root.querySelector(`[data-lab='metrics']`).addEventListener(`click`,()=>this.exportMetrics())}advance(){if(!this.playing||this.replay===null)return;let e=this.replay.ticks.length-1;if(!(this.virtualTick>=e)){for(this.carry+=this.speed;this.carry>=1&&this.virtualTick0?this.pendingQueue.push({at:performance.now()+this.latencyMs,tick:t}):this.renderer?.push(t.snapshot.payload))}drainLatencyQueue(){let e=performance.now();for(let t=this.pendingQueue.length-1;t>=0;--t){let n=this.pendingQueue[t];n.at<=e&&(this.renderer?.push(n.tick.snapshot.payload),this.pendingQueue.splice(t,1))}}seek(e,t=!0){if(this.replay===null||this.renderer===null)return;let n=Math.max(0,Math.min(e,this.replay.ticks.length-1));for(let e=0;e<=n;e+=1)this.renderer.push(this.replay.ticks[e].snapshot.payload),e>=n-15&&this.renderer.labEffects.update(1/30);this.virtualTick=n,this.renderOnSeek=t}renderOnSeek=!0;renderCurrentTick(e){if(this.replay===null||this.renderer===null)return;this.drainLatencyQueue(),this.renderer.labFrame(this.virtualTick/this.replay.tick_rate,e??this.renderOnSeek),this.renderer.labFrame((this.virtualTick+.5)/this.replay.tick_rate,e??this.renderOnSeek),this.updateOverlays();let t=this.replay.ticks[this.virtualTick]?.snapshot.payload.phase??``;this.setStatus(`tick ${this.virtualTick}/${this.replay.ticks.length-1} · ${t} · ${this.speed}×`)}buildOverlays(){let e=this.renderer;if(e===null)return;let t=new su({color:8257448,depthTest:!1,transparent:!0,opacity:.9});for(let n of e.labRigs){let r=new il;r.setAttribute(`position`,new Uc(new Float32Array(XX.length*6),3));let i=new yu(r,t);i.frustumCulled=!1,i.renderOrder=20,e.labScene.add(i),this.skeletonLines.push(i);let a=new H(new Pu(.13,.16,4,8),new yl({color:16735581,wireframe:!0,transparent:!0,opacity:.85,depthTest:!1}));a.renderOrder=21,a.position.y=.12,(n.getObjectByName(tb.head??`head`)??n).add(a),this.hurtboxMeshes.push(a);let o=new H(new Pu(.21,.34,4,8),new yl({color:16758877,wireframe:!0,transparent:!0,opacity:.7,depthTest:!1}));o.renderOrder=21,o.position.y=.16,(n.getObjectByName(tb.chest??`chest`)??n).add(o),this.hurtboxMeshes.push(o);for(let e of[`gloveL`,`gloveR`]){let t=new H(new _d(.11,10,8),new yl({color:6141183,wireframe:!0,transparent:!0,opacity:.85,depthTest:!1}));t.renderOrder=22,(n.getObjectByName(tb[e]??e)??n).add(t),this.hitboxMeshes.push(t)}}this.syncOverlayVisibility()}syncOverlayVisibility(){for(let e of this.skeletonLines)e.visible=this.overlays.skeleton;for(let e of this.hurtboxMeshes)e.visible=this.overlays.hurtbox;for(let e of this.hitboxMeshes)e.visible=this.overlays.hitbox}updateOverlays(){let e=this.renderer;if(e!==null)for(let[t,n]of e.labRigs.entries()){let e=this.skeletonLines[t];if(e===void 0||!e.visible)continue;let r=e.geometry.getAttribute(`position`),i=new B,a=new B;XX.forEach(([e,t],o)=>{let s=n.getObjectByName(e),c=n.getObjectByName(t);s!==void 0&&c!==void 0&&(s.getWorldPosition(i),c.getWorldPosition(a),r.setXYZ(o*2,i.x,i.y,i.z),r.setXYZ(o*2+1,a.x,a.y,a.z))}),r.needsUpdate=!0}}jointWorld(e,t){let n=(this.renderer?.labRigs[e])?.getObjectByName(tb[t]??t);return n==null?null:n.getWorldPosition(new B)}exportMetrics(){if(this.replay===null)return;let e={contactAlignment:[],maxRootStepMeters:0,footSlideMeters:0,phaseDriftTicks:0};for(let t of this.replay.ticks){let n=t.snapshot.payload.events.find(e=>[`hit`,`counter_hit`,`block`].includes(e.kind)),r=t.snapshot.payload.fighters[0].action_hand;if(n===void 0||r===null)continue;let i=Math.min(t.tick+1,this.replay.ticks.length-1);this.seek(i,!1),this.renderCurrentTick(!1);let a=this.jointWorld(0,r===`left`?`gloveL`:`gloveR`),o=this.jointWorld(1,`head`),c=this.jointWorld(1,`chest`);a!==null&&o!==null&&c!==null&&e.contactAlignment.push({tick:t.tick,kind:n.kind,gloveToHeadMeters:Number(Math.max(0,a.distanceTo(o)-s.head.radius).toFixed(4)),gloveToTorsoMeters:Number(Math.max(0,a.distanceTo(c)-s.torso.radius).toFixed(4))})}this.seek(0,!1);let t=null,n=null;for(let r of this.replay.ticks){this.seek(r.tick,!1),this.renderCurrentTick(!1);let i=this.renderer.labRigs[0].position.x;n!==null&&(e.maxRootStepMeters=Math.max(e.maxRootStepMeters,Math.abs(i-n))),n=i;let a=r.snapshot.payload.fighters[0],o=Math.hypot(a.velocity_x,a.velocity_y),s=this.replay.ticks.slice(Math.max(0,r.tick-30),r.tick+1).some(e=>e.snapshot.payload.fighters[0].is_downed);if(o===0&&!a.is_downed&&!s&&r.snapshot.payload.phase===`fight`){let n=[this.jointWorld(0,`ankleL`),this.jointWorld(0,`ankleR`)].filter(e=>e!==null);t!==null&&n.length===2&&(e.footSlideMeters=Math.max(e.footSlideMeters,Number(Math.max(n[0].distanceTo(t[0]),n[1].distanceTo(t[1])).toFixed(4)))),t=n}else t=null}this.metricsEl.textContent=` contacts: ${e.contactAlignment.map(e=>`${e.kind}@t${e.tick} glove-head ${e.gloveToHeadMeters}m`).join(` · `)} · max root step ${e.maxRootStepMeters.toFixed(3)}m · foot slide ${e.footSlideMeters}m`,window.__labDebug={roots:this.renderer.labRigs.map(e=>e.position.toArray().map(e=>Number(e.toFixed(3)))),graphsActive:this.renderer.graphs!==null,heads:this.renderer.labRigs.map(e=>{let t=e.getObjectByName(tb.head??`head`);return t===void 0?null:t.getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3)))})};let r=new Blob([JSON.stringify(e,null,1)],{type:`application/json`}),i=document.createElement(`a`);i.href=URL.createObjectURL(r),i.download=`hands-lab-metrics.json`,i.click(),URL.revokeObjectURL(i.href)}setStatus(e){this.statusEl.textContent!==e&&(this.statusEl.textContent=e)}destroy(){this.destroyed||(this.destroyed=!0,cancelAnimationFrame(this.raf),this.renderer?.destroy(),this.root.replaceChildren())}};function QX(e){let t=new ZX(e);return t.start().catch(t=>{e.querySelector(`[data-lab-status]`).textContent=`lab failed: ${String(t)}`}),()=>t.destroy()}var $X={referee:{outfit:Ab,look:cb.referee},corner_blue:{outfit:jb,look:cb.blueCorner},corner_red:{outfit:Mb,look:cb.redCorner},cutman:{outfit:Nb,look:cb.blueCutman}},eZ=()=>({player_id:`lab`,x:0,y:0,facing:1,facing_x:0,facing_y:-1e3,velocity_x:0,velocity_y:0,stance:`orthodox`,style:`balanced`,defense:`none`,stamina:1e3,maximum_stamina:1e3,conditioning:1e3,guard:700,guard_broken:!1,poise:600,trauma:{head:0,body:0,left_eye:0,right_eye:0,left_cut:0,right_cut:0,swelling:0,bleeding:0},knockdowns:0,warnings:0,deductions:0,stunned_ticks:0,is_downed:!1,action:null,action_hand:null,action_target:null,action_power:null,action_id:null,action_key:null,action_start_tick:0,action_startup_ticks:0,action_active_ticks:0,action_recovery_ticks:0,action_contact_tick:null,queued_actions:0,clinch_startup_ticks:0,clinch_ticks:0,is_foul_recovery_target:!1,taunt_ticks:0,corner_choice:null,get_up_prompt:null,get_up_meter:0,get_up_required:0,get_up_count:0,get_up_window_start_tick:0,get_up_window_end_tick:0,get_up_next_prompt:null,last_input_sequence:-1,injuries:[],blood_volume:1e3}),tZ=.45,nZ=.3,rZ={face:[.25,1.55,1],portrait:[.12,1.62,.62],eyes:[-.2,1.65,.44],floor:[1.62,.3,.18],hand:[.55,1.05,.75],front:[0,1.35,3.4],side:[3.4,1.3,.2],"three-quarter":[2.4,1.5,2.6],top:[.01,4.5,.6],back:[.2,1.4,-3.4],low:[1.8,.5,2.6],wide:[3.4,2.7,3.6]},iZ=class{root;renderer;scene=new uc;camera;graph=null;boxer=null;trails=[];trailGlove=new B;treatEye=new B(0,1.22,.78);treatFacing=new B(0,0,-1);treatTarget=new B;skeletonHelper=null;effects=null;shieldClock=1/0;shieldEvent=0;mouth=new B;headTurn=new rs;burstRim=new Float32Array;burstStump={position:new B,quaternion:new rs,across:new B,scratch:new B};raf=0;previous=performance.now();elapsed=0;params=new URLSearchParams(window.location.search);reactionFired=!1;carnage=null;injuries=[];inflictions=[];killed=!1;vomitClock=0;worn=!1;headAt=new B;statusEl;constructor(e){this.root=e,e.innerHTML=`
HANDS POSE LABloading…
-
`,this.statusEl=e.querySelector(`[data-status]`);let t=e.querySelector(`[data-canvas]`);this.renderer=new qh({canvas:t,antialias:!0,preserveDrawingBuffer:!0}),this.renderer.setPixelRatio(Math.min(2,window.devicePixelRatio||1)),this.renderer.shadowMap.enabled=!0,this.renderer.toneMapping=4,this.camera=new Wd(38,1,.1,60);let n=OX[this.params.get(`cam`)??`three-quarter`]??OX[`three-quarter`];this.camera.position.set(...n),this.params.get(`cam`)===`hand`?this.camera.lookAt(.27,.84,.12):this.params.get(`cam`)===`portrait`?this.camera.lookAt(0,1.6,.05):this.params.get(`cam`)===`eyes`?this.camera.lookAt(.01,1.6,.06):this.params.get(`cam`)===`floor`?this.camera.lookAt(1.3,0,-.24):this.params.get(`cam`)===`wide`?this.camera.lookAt(0,.45,-.2):this.camera.lookAt(0,this.params.get(`cam`)===`face`?1.5:1,0),this.setupLighting()}setupLighting(){this.scene.background=new B(`#101318`),this.scene.add(new Md(`#8fa0c8`,`#1a1c22`,1.4));let e=new Zd(`#fff1dc`,2.6);e.position.set(2.5,5,3),e.castShadow=!0,e.shadow.mapSize.set(2048,2048),this.scene.add(e);let t=new Zd(`#9fb8ff`,1.2);t.position.set(-3,3,-3),this.scene.add(t);let n=new V(new Xl(4,48),new Ku({color:`#3c4a7a`,roughness:.9}));n.rotation.x=-Math.PI/2,n.receiveShadow=!0,this.scene.add(n);let r=new Df(4,16,8952251,3358810);r.position.y=.002,this.scene.add(r)}synthesize(e){let t=this.params.get(`pose`)??`idle`,n=this.params.get(`stance`)===`southpaw`?`southpaw`:`orthodox`,r={...TX(),stance:n},i=this.params.get(`trauma`);i===`light`&&(r.trauma={head:220,body:260,left_eye:190,right_eye:60,left_cut:40,right_cut:0,swelling:120,bleeding:60}),i===`heavy`&&(r.trauma={head:900,body:700,left_eye:720,right_eye:380,left_cut:520,right_cut:190,swelling:620,bleeding:520}),i===`cut`&&(r.trauma={head:420,body:120,left_eye:380,right_eye:120,left_cut:300,right_cut:0,swelling:260,bleeding:380});let a=i?.split(`,`).map(Number)??[];if(a.length===8&&a.every(Number.isFinite)){let[e,t,n,i,o,s,c,l]=a;r.trauma={head:e,body:t,left_eye:n,right_eye:i,left_cut:o,right_cut:s,swelling:c,bleeding:l}}let o=Number(this.params.get(`gap`)??150),s={...TX(),player_id:`other`,x:0,y:-o,facing_x:0,facing_y:1e3},c=Math.floor(e*30),l=/^(jab|straight|hook|uppercut)_(left|right)(_body)?(_power)?$/.exec(t);if(l!==null){let e=l[1],t=l[2],n=l[3]===`_body`?`body`:`head`,i=l[4]===`_power`?`power`:`normal`,a={jab:[4,2,7],straight:[6,2,10],hook:[7,3,12],uppercut:[8,2,13]}[e],o=a[0]+a[1]+a[2],s=Math.floor(c/(o+12))*(o+12)+6;c>=s&&c=EX&&t<3.4,r.stunned_ticks=t=DX&&(t===null||e{let i=Math.min(.05,(r-this.previous)/1e3);this.previous=r,t===null?(this.elapsed=e===null?this.elapsed+i:Number(e),this.step(e===null?i:1/60)):this.step(0),this.renderer.render(this.scene,this.camera),this.raf=requestAnimationFrame(n)};this.raf=requestAnimationFrame(n)}step(e){let t=this.graph;if(t===null)return;let n=this.renderer.domElement.clientWidth,r=this.renderer.domElement.clientHeight;n>0&&r>0&&(this.renderer.domElement.width!==n||this.renderer.domElement.height!==r)&&(this.renderer.setSize(n,r,!1),this.camera.aspect=n/r,this.camera.updateProjectionMatrix());let{fighter:i,opponent:a,sampledTick:o,head:s}=this.synthesize(this.elapsed),c=this.params.get(`pose`)??``;if(/^(hit|block)_/.test(c)){let n=this.elapsed%1.6;if(this.params.has(`freeze`)?!this.reactionFired&&this.elapsed>=.02:n=.27999999999999997){this.reactionFired=!0;let e=this.params.get(`hit`)??`straight`,n=e===`body`?`hook`:e;t.react(`hit`,e===`body`?`body`:`head`,1,n,this.params.get(`hand`)===`left`?`left`:`right`,Number(this.params.get(`amount`)??420))}this.params.get(`pose`)===`knockdown`&&this.params.get(`fall`)===`prone`&&this.elapsed%6=.02:this.elapsed%1.63)){this.shieldClock=0,this.shieldEvent+=1;let e=this.boxer.bone(`head`);e.getWorldQuaternion(this.headTurn),e.getWorldPosition(this.mouth).add(new z(0,.045,.12).applyQuaternion(this.headTurn)),this.effects.ejectMouthpiece(0,this.mouth,this.headTurn,1,this.shieldEvent,1920728,!0)}this.effects?.update(e);for(let[t,n]of[`gloveL`,`gloveR`].entries())this.carnage?.hasGlove(0,t===0?`left`:`right`)===!1?this.trails[t]?.reset():(this.boxer.rig.bones[n].getWorldPosition(this.trailGlove),this.trails[t]?.update(this.trailGlove,e,this.camera.position,e>0));window.__poseLab={head:this.boxer.bone(`head`).getWorldPosition(new z).toArray().map(e=>Number(e.toFixed(3))),gloveL:this.boxer.bone(`gloveL`).getWorldPosition(new z).toArray().map(e=>Number(e.toFixed(3))),gloveR:this.boxer.bone(`gloveR`).getWorldPosition(new z).toArray().map(e=>Number(e.toFixed(3))),ankleL:this.boxer.bone(`ankleL`).getWorldPosition(new z).toArray().map(e=>Number(e.toFixed(3))),ankleR:this.boxer.bone(`ankleR`).getWorldPosition(new z).toArray().map(e=>Number(e.toFixed(3))),kneeL:this.boxer.bone(`kneeL`).getWorldPosition(new z).toArray().map(e=>Number(e.toFixed(3))),kneeR:this.boxer.bone(`kneeR`).getWorldPosition(new z).toArray().map(e=>Number(e.toFixed(3))),metrics:this.boxer.rig.metrics,mouthpiece:this.effects!==null&&this.effects.mouthpiecePosition(0,this.mouth)?this.mouth.toArray().map(e=>Number(e.toFixed(3))):null}}get bloodSetting(){let e=this.params.get(`blood`);return e===`reduced`||e===`off`?e:`full`}startCarnage(){let e=e=>(this.params.get(e)??``).split(`,`).filter(e=>me.includes(e));this.injuries.push(...e(`injuries`));for(let[t,n]of e(`inflict`).entries())this.inflictions.push({injury:n,at:1+t*.8,done:!1});if(!(this.injuries.length>0||this.inflictions.length>0||[`fatality`,`dead`,`bloodvol`,`dazed`,`vomit`,`xray`,`wear`].some(e=>this.params.has(e)))||this.graph===null)return;this.effects??=new _K(this.scene),this.effects.setBloodLevel(this.bloodSetting),this.effects.setCamera(this.camera),this.carnage=new aH(this.effects,dY),this.carnage.attach(0,this.graph);let t=this.params.get(`xray`);t!==null&&this.carnage.holdXray(0,t)}stepCarnage(e){let t=this.carnage,n=this.graph;if(t===null||n===null||this.effects===null)return;for(let[e,n]of this.inflictions.entries())n.done||this.elapsed=1&&(i!==null||ge.includes(r??``))&&(this.killed=!0,i===null?this.kill(t,r):t.die(0,i));let a=this.params.get(`dazed`)===`1`&&!this.killed;n.setDazed(a),this.params.get(`vomit`)===`1`&&(this.vomitClock+=e,this.vomitClock>=3&&(this.vomitClock=0,t.vomit(0,Math.round(this.elapsed*10))));let o=Number(this.params.get(`bloodvol`)??1e3),s=me.filter(e=>this.injuries.includes(e));t.sync(0,{injuries:s,blood_volume:Number.isFinite(o)?o:1e3},{blood:this.bloodSetting,reducedMotion:!1},e,this.elapsed,a);let c=Number(this.params.get(`wear`)??0);if(!this.worn&&c>0&&this.elapsed>=.5){this.worn=!0;let e=[[`head`,.06,.07,.1],[`body`,.1,.02,.14],[`head`,-.05,.11,.1],[`body`,-.09,-.06,.14]];for(let r=0;rvoid 0),()=>t.destroy()}var jX=document.querySelector(`#app`);if(jX===null)throw Error(`app_root_missing`);var MX,NX=new URLSearchParams(window.location.search),PX=window.location.pathname.endsWith(`/hands/lab`)||NX.get(`lab`)===`1`;if(window.location.pathname.endsWith(`/hands/model-lab`)||NX.get(`model-lab`)===`1`)MX=AX(jX);else if(PX)MX=CX(jX);else{let e=new yX(jX);e.start(),MX=()=>e.destroy()}window.addEventListener(`pagehide`,MX,{once:!0}); \ No newline at end of file +`,this.statusEl=e.querySelector(`[data-status]`);let t=e.querySelector(`[data-canvas]`);this.renderer=new Mg({canvas:t,antialias:!0,preserveDrawingBuffer:!0}),this.renderer.setPixelRatio(Math.min(2,window.devicePixelRatio||1)),this.renderer.shadowMap.enabled=!0,this.renderer.toneMapping=4,this.camera=new Af(38,1,.1,60);let n=rZ[this.params.get(`cam`)??`three-quarter`]??rZ[`three-quarter`];this.camera.position.set(...n),this.params.get(`cam`)===`hand`?this.camera.lookAt(.27,.84,.12):this.params.get(`cam`)===`portrait`?this.camera.lookAt(0,1.6,.05):this.params.get(`cam`)===`eyes`?this.camera.lookAt(.01,1.6,.06):this.params.get(`cam`)===`floor`?this.camera.lookAt(1.3,0,-.24):this.params.get(`cam`)===`wide`?this.camera.lookAt(0,.45,-.2):this.camera.lookAt(0,this.params.get(`cam`)===`face`?1.5:1,0),this.setupLighting()}setupLighting(){this.scene.background=new V(`#101318`),this.scene.add(new vf(`#8fa0c8`,`#1a1c22`,1.4));let e=new Lf(`#fff1dc`,2.6);e.position.set(2.5,5,3),e.castShadow=!0,e.shadow.mapSize.set(2048,2048),this.scene.add(e);let t=new Lf(`#9fb8ff`,1.2);t.position.set(-3,3,-3),this.scene.add(t);let n=new H(new Fu(4,48),new jd({color:`#3c4a7a`,roughness:.9}));n.rotation.x=-Math.PI/2,n.receiveShadow=!0,this.scene.add(n);let r=new fp(4,16,8952251,3358810);r.position.y=.002,this.scene.add(r)}synthesize(e){let t=this.params.get(`pose`)??`idle`,n=this.params.get(`stance`)===`southpaw`?`southpaw`:`orthodox`,r={...eZ(),stance:n},i=this.params.get(`trauma`);i===`light`&&(r.trauma={head:220,body:260,left_eye:190,right_eye:60,left_cut:40,right_cut:0,swelling:120,bleeding:60}),i===`heavy`&&(r.trauma={head:900,body:700,left_eye:720,right_eye:380,left_cut:520,right_cut:190,swelling:620,bleeding:520}),i===`cut`&&(r.trauma={head:420,body:120,left_eye:380,right_eye:120,left_cut:300,right_cut:0,swelling:260,bleeding:380});let a=i?.split(`,`).map(Number)??[];if(a.length===8&&a.every(Number.isFinite)){let[e,t,n,i,o,s,c,l]=a;r.trauma={head:e,body:t,left_eye:n,right_eye:i,left_cut:o,right_cut:s,swelling:c,bleeding:l}}let o=Number(this.params.get(`gap`)??150),s={...eZ(),player_id:`other`,x:0,y:-o,facing_x:0,facing_y:1e3},c=Math.floor(e*30),l=/^(jab|straight|hook|uppercut)_(left|right)(_body)?(_power)?$/.exec(t);if(l!==null){let e=l[1],t=l[2],n=l[3]===`_body`?`body`:`head`,i=l[4]===`_power`?`power`:`normal`,a={jab:[4,2,7],straight:[6,2,10],hook:[7,3,12],uppercut:[8,2,13]}[e],o=a[0]+a[1]+a[2],s=Math.floor(c/(o+12))*(o+12)+6;c>=s&&c=tZ&&t<3.4,r.stunned_ticks=t=nZ&&(t===null||e{let i=Math.min(.05,(r-this.previous)/1e3);this.previous=r,t===null?(this.elapsed=e===null?this.elapsed+i:Number(e),this.step(e===null?i:1/60)):this.step(0),this.renderer.render(this.scene,this.camera),this.raf=requestAnimationFrame(n)};this.raf=requestAnimationFrame(n)}step(e){let t=this.graph;if(t===null)return;let n=this.renderer.domElement.clientWidth,r=this.renderer.domElement.clientHeight;n>0&&r>0&&(this.renderer.domElement.width!==n||this.renderer.domElement.height!==r)&&(this.renderer.setSize(n,r,!1),this.camera.aspect=n/r,this.camera.updateProjectionMatrix());let{fighter:i,opponent:a,sampledTick:o,head:s}=this.synthesize(this.elapsed),c=this.params.get(`pose`)??``;if(/^(hit|block)_/.test(c)){let n=this.elapsed%1.6;if(this.params.has(`freeze`)?!this.reactionFired&&this.elapsed>=.02:n=.27999999999999997){this.reactionFired=!0;let e=this.params.get(`hit`)??`straight`,n=e===`body`?`hook`:e;t.react(`hit`,e===`body`?`body`:`head`,1,n,this.params.get(`hand`)===`left`?`left`:`right`,Number(this.params.get(`amount`)??420))}this.params.get(`pose`)===`knockdown`&&this.params.get(`fall`)===`prone`&&this.elapsed%6=.02:this.elapsed%1.63)){this.shieldClock=0,this.shieldEvent+=1;let e=this.boxer.bone(`head`);e.getWorldQuaternion(this.headTurn),e.getWorldPosition(this.mouth).add(new B(0,.045,.12).applyQuaternion(this.headTurn)),this.effects.ejectMouthpiece(0,this.mouth,this.headTurn,1,this.shieldEvent,1920728,!0)}this.effects?.update(e);for(let[t,n]of[`gloveL`,`gloveR`].entries())this.carnage?.hasGlove(0,t===0?`left`:`right`)===!1?this.trails[t]?.reset():(this.boxer.rig.bones[n].getWorldPosition(this.trailGlove),this.trails[t]?.update(this.trailGlove,e,this.camera.position,e>0));window.__poseLab={head:this.boxer.bone(`head`).getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3))),gloveL:this.boxer.bone(`gloveL`).getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3))),gloveR:this.boxer.bone(`gloveR`).getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3))),ankleL:this.boxer.bone(`ankleL`).getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3))),ankleR:this.boxer.bone(`ankleR`).getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3))),kneeL:this.boxer.bone(`kneeL`).getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3))),kneeR:this.boxer.bone(`kneeR`).getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3))),metrics:this.boxer.rig.metrics,mouthpiece:this.effects!==null&&this.effects.mouthpiecePosition(0,this.mouth)?this.mouth.toArray().map(e=>Number(e.toFixed(3))):null}}get bloodSetting(){let e=this.params.get(`blood`);return e===`reduced`||e===`off`?e:`full`}startCarnage(){let e=e=>(this.params.get(e)??``).split(`,`).filter(e=>He.includes(e));this.injuries.push(...e(`injuries`));for(let[t,n]of e(`inflict`).entries())this.inflictions.push({injury:n,at:1+t*.8,done:!1});if(!(this.injuries.length>0||this.inflictions.length>0||[`fatality`,`dead`,`bloodvol`,`dazed`,`vomit`,`xray`,`wear`].some(e=>this.params.has(e)))||this.graph===null)return;this.effects??=new GK(this.scene),this.effects.setBloodLevel(this.bloodSetting),this.effects.setCamera(this.camera),this.carnage=new NH(this.effects,BY),this.carnage.attach(0,this.graph);let t=this.params.get(`xray`);t!==null&&this.carnage.holdXray(0,t)}stepCarnage(e){let t=this.carnage,n=this.graph;if(t===null||n===null||this.effects===null)return;for(let[e,n]of this.inflictions.entries())n.done||this.elapsed=1&&(i!==null||We.includes(r??``))&&(this.killed=!0,i===null?this.kill(t,r):t.die(0,i));let a=this.params.get(`dazed`)===`1`&&!this.killed;n.setDazed(a),this.params.get(`vomit`)===`1`&&(this.vomitClock+=e,this.vomitClock>=3&&(this.vomitClock=0,t.vomit(0,Math.round(this.elapsed*10))));let o=Number(this.params.get(`bloodvol`)??1e3),s=He.filter(e=>this.injuries.includes(e));t.sync(0,{injuries:s,blood_volume:Number.isFinite(o)?o:1e3},{blood:this.bloodSetting,reducedMotion:!1},e,this.elapsed,a);let c=Number(this.params.get(`wear`)??0);if(!this.worn&&c>0&&this.elapsed>=.5){this.worn=!0;let e=[[`head`,.06,.07,.1],[`body`,.1,.02,.14],[`head`,-.05,.11,.1],[`body`,-.09,-.06,.14]];for(let r=0;rvoid 0),()=>t.destroy()}var oZ=document.querySelector(`#app`);if(oZ===null)throw Error(`app_root_missing`);var sZ,cZ=new URLSearchParams(window.location.search),lZ=window.location.pathname.endsWith(`/hands/lab`)||cZ.get(`lab`)===`1`;if(window.location.pathname.endsWith(`/hands/model-lab`)||cZ.get(`model-lab`)===`1`)sZ=aZ(oZ);else if(lZ)sZ=QX(oZ);else{let e=new JX(oZ);e.start(),sZ=()=>e.destroy()}window.addEventListener(`pagehide`,sZ,{once:!0}); \ No newline at end of file diff --git a/src/intelstream/hands/types.py b/src/intelstream/hands/types.py index c6378de9..41af12cb 100644 --- a/src/intelstream/hands/types.py +++ b/src/intelstream/hands/types.py @@ -246,6 +246,7 @@ class FighterSnapshot: get_up_count: int get_up_window_start_tick: int get_up_window_end_tick: int + get_up_next_prompt: ActionKind | None last_input_sequence: int injuries: tuple[Injury, ...] blood_volume: int diff --git a/tests/test_hands/test_cpu.py b/tests/test_hands/test_cpu.py index c7fcc7aa..441a65b2 100644 --- a/tests/test_hands/test_cpu.py +++ b/tests/test_hands/test_cpu.py @@ -77,7 +77,7 @@ def always(brain: CpuBrain) -> CpuBrain: """Every dice roll succeeds and every reaction is the quickest, so a test sees the brain's best answer.""" brain._roll = lambda _percent: True # type: ignore[method-assign] - brain.profile = replace(brain.profile, reaction_spread=0) + brain.profile = replace(brain.profile, reaction_spread=0, get_up_jitter=0) return brain diff --git a/tests/test_hands/test_engine.py b/tests/test_hands/test_engine.py index 46c2571f..49af9352 100644 --- a/tests/test_hands/test_engine.py +++ b/tests/test_hands/test_engine.py @@ -1579,61 +1579,140 @@ def test_checksum_covers_hidden_authority_state_and_snapshot_encoding_is_stable( assert encoded_a == encoded_b -def test_seeded_get_up_prompts_expose_windows_and_penalize_bad_timing() -> None: - engine = make_engine(seed=303, round_ticks=2000) - engine.fighter("two").poise = 1 - engine.step({"one": command(1, action=punch(PunchClass.UPPERCUT, power=Power.POWER))}) - advance_until(engine, {"knockdown"}) - first = next(item for item in engine.snapshot().fighters if item.player_id == "two") - assert first.get_up_prompt in (ActionKind.GET_UP_LEFT, ActionKind.GET_UP_RIGHT) - assert first.get_up_window_start_tick < first.get_up_window_end_tick - assert first.get_up_required > 0 - - engine.step({"two": command(2, action=MovementAction(first.get_up_prompt))}) - early = next(item for item in engine.snapshot().fighters if item.player_id == "two") - assert early.get_up_meter == 0 - assert any(event.kind == "get_up_input" and event.detail == "early" for event in engine.events) - - while engine.tick <= early.get_up_window_end_tick: - engine.step() - second = next(item for item in engine.snapshot().fighters if item.player_id == "two") - wrong = ( - ActionKind.GET_UP_RIGHT - if second.get_up_prompt is ActionKind.GET_UP_LEFT - else ActionKind.GET_UP_LEFT - ) - while engine.tick < second.get_up_window_start_tick: - engine.step() - engine.step({"two": command(3, action=MovementAction(wrong))}) - assert any(event.kind == "get_up_input" and event.detail == "wrong" for event in engine.events) - - late = make_engine(seed=305, round_ticks=2000) - late.fighter("two").poise = 1 - late.step({"one": command(1, action=punch(PunchClass.UPPERCUT, power=Power.POWER))}) - advance_until(late, {"knockdown"}) - late_prompt = next(item for item in late.snapshot().fighters if item.player_id == "two") - while late.tick < late_prompt.get_up_window_end_tick: - late.step() - assert late_prompt.get_up_prompt is not None - late.step({"two": command(2, action=MovementAction(late_prompt.get_up_prompt))}) - assert any(event.kind == "get_up_input" and event.detail == "late" for event in late.events) - - fresh = make_engine(seed=304, round_ticks=2000) - fresh.fighter("two").poise = 1 - fresh.step({"one": command(1, action=punch(PunchClass.UPPERCUT, power=Power.POWER))}) - advance_until(fresh, {"knockdown"}) - first_required = next( - item for item in fresh.snapshot().fighters if item.player_id == "two" - ).get_up_required - harder = make_engine(seed=304, round_ticks=2000) - harder.fighter("two").knockdowns = 1 - harder.fighter("two").poise = 1 - harder.step({"one": command(1, action=punch(PunchClass.UPPERCUT, power=Power.POWER))}) - advance_until(harder, {"knockdown"}) - second_required = next( - item for item in harder.snapshot().fighters if item.player_id == "two" - ).get_up_required - assert second_required > first_required +def _downed(seed: int = 124, *, knockdowns: int = 0, head: int = 0) -> BoxingEngine: + """Fighter one put on the canvas this tick, with earlier knockdowns and head trauma.""" + engine = make_engine(seed=seed, round_ticks=2000) + downed = engine.fighter("one") + downed.knockdowns = knockdowns + downed.trauma.head = head + engine._knock_down(downed, engine.fighter("two")) + return engine + + +def _press_on(engine: BoxingEngine, tick: int, kind: ActionKind | None = None) -> list[CombatEvent]: + """Presses so the press is scored on `tick`, the side shown unless `kind` says otherwise, and + returns the get-up verdicts of that tick.""" + while engine.tick < tick - 1: + engine.step() + side = kind or engine.fighter("one").get_up_prompt + assert side is not None + snapshot = engine.step({"one": command(engine.tick + 1, action=MovementAction(side))}) + return [event for event in snapshot.events if event.kind == "get_up_input"] + + +def _beat(engine: BoxingEngine) -> int: + return engine.fighter("one").get_up_window_start_tick + rules.GET_UP_ZONE_TICKS + + +def test_each_get_up_prompt_lands_on_a_number_of_the_count_and_is_shown_a_count_ahead() -> None: + engine = _downed() + downed = engine.fighter("one") + previews: dict[int, ActionKind | None] = {} + prompts: dict[int, ActionKind] = {} + counts: dict[int, int] = {} + while engine.phase is MatchPhase.KNOCKDOWN: + if downed.get_up_prompt is not None: + prompts.setdefault(_beat(engine), downed.get_up_prompt) + previews.setdefault(_beat(engine) + COUNT_TICK_INTERVAL, downed.get_up_next_prompt) + for event in engine.step().events: + if event.kind == "count": + counts[event.amount] = engine.tick + # Left alone he is counted out; every number from the first prompt's to nine had its prompt, + # its beat the tick the number changed on, and its side the one shown a count before. + assert engine.result is not None and engine.result.finish_method is FinishMethod.KO + assert sorted(prompts) == [counts[number] for number in range(rules.GET_UP_FIRST_COUNT, 10)] + assert all(previews[beat] is side for beat, side in prompts.items() if beat in previews) + assert previews[max(prompts) + COUNT_TICK_INTERVAL] is None + + +@pytest.mark.parametrize( + ("offset", "detail", "gain"), + [ + (-rules.GET_UP_ZONE_TICKS - 1, "early", 0), + (-rules.GET_UP_ZONE_TICKS, "good", rules.GET_UP_GOOD), + (-rules.GET_UP_PERFECT_TICKS, "perfect", rules.GET_UP_PERFECT), + (0, "perfect", rules.GET_UP_PERFECT), + (rules.GET_UP_PERFECT_TICKS + 1, "good", rules.GET_UP_GOOD), + (rules.GET_UP_ZONE_TICKS, "good", rules.GET_UP_GOOD), + (rules.GET_UP_ZONE_TICKS + 1, "late", 0), + (rules.GET_UP_ZONE_TICKS + rules.GET_UP_LATE_TICKS, "late", 0), + ], +) +def test_a_get_up_press_is_judged_by_its_distance_from_the_beat( + offset: int, detail: str, gain: int +) -> None: + engine = _downed() + downed = engine.fighter("one") + beat = _beat(engine) + following = downed.get_up_next_prompt + verdicts = _press_on(engine, beat + offset) + assert [(event.detail, event.amount) for event in verdicts] == [(detail, gain)] + assert downed.get_up_meter == gain + # The attempt is made: the next number's prompt, the side shown ahead, is the one to press now. + assert downed.get_up_prompt is following + assert _beat(engine) == beat + COUNT_TICK_INTERVAL + + +def test_a_wrong_side_costs_a_press_and_one_during_the_fall_does_nothing() -> None: + engine = _downed() + downed = engine.fighter("one") + beat = _beat(engine) + assert _press_on(engine, engine.tick + 5) == [] + assert _beat(engine) == beat and downed.get_up_meter == 0 + assert [event.detail for event in _press_on(engine, beat)] == ["perfect"] + prompt = downed.get_up_prompt + wrong = ActionKind.GET_UP_RIGHT if prompt is ActionKind.GET_UP_LEFT else ActionKind.GET_UP_LEFT + verdicts = _press_on(engine, _beat(engine), wrong) + assert [(event.detail, event.amount) for event in verdicts] == [("wrong", -rules.GET_UP_WRONG)] + assert downed.get_up_meter == rules.GET_UP_PERFECT - rules.GET_UP_WRONG + + +def test_a_double_tap_costs_nothing_and_a_late_press_keeps_the_next_attempt() -> None: + engine = _downed() + downed = engine.fighter("one") + beat = _beat(engine) + assert [event.detail for event in _press_on(engine, beat)] == ["perfect"] + # The second tap of a double tap, and a press as late as the zone just gone, do nothing. + assert _press_on(engine, beat + 1, ActionKind.GET_UP_LEFT) == [] + assert _press_on(engine, beat + 2, ActionKind.GET_UP_RIGHT) == [] + end = beat + rules.GET_UP_ZONE_TICKS + rules.GET_UP_LATE_TICKS + assert _press_on(engine, end, ActionKind.GET_UP_LEFT) == [] + assert downed.get_up_meter == rules.GET_UP_PERFECT + + late = _downed() + beat = _beat(late) + assert [event.detail for event in _press_on(late, beat + rules.GET_UP_ZONE_TICKS + 1)] == [ + "late" + ] + assert [event.detail for event in _press_on(late, beat + COUNT_TICK_INTERVAL)] == ["perfect"] + + +@pytest.mark.parametrize("every", [3, 4, 7, 8]) +def test_mashing_never_gets_a_fighter_up(every: int) -> None: + engine = _downed() + sides = (ActionKind.GET_UP_LEFT, ActionKind.GET_UP_RIGHT) + presses = 0 + while engine.phase is MatchPhase.KNOCKDOWN: + if engine.tick % every == 0: + presses += 1 + engine.step({"one": command(presses, action=MovementAction(sides[presses % 2]))}) + else: + engine.step() + assert engine.result is not None and engine.result.finish_method is FinishMethod.KO + assert "get_up" not in [event.kind for event in engine.events] + + +def test_each_knockdown_and_head_trauma_ask_for_more_presses() -> None: + def required(knockdowns: int, head: int) -> int: + engine = _downed(knockdowns=knockdowns, head=head) + return next( + fighter for fighter in engine.snapshot().fighters if fighter.player_id == "one" + ).get_up_required + + first = required(0, 0) + assert required(1, 0) > first + assert required(0, 1200) > first + assert required(1, 1200) > required(1, 0) def test_authored_target_power_variants_and_whiff_cost_are_observable() -> None: @@ -2066,32 +2145,6 @@ def test_taunter_cannot_hold_a_guard() -> None: assert fighter.defense is DefensivePose.NONE -def test_get_up_window_boundary_scores_timed_and_late() -> None: - timed_engine = make_engine(seed=124, round_ticks=2000) - timed_downed = timed_engine.fighter("one") - timed_engine._knock_down(timed_downed, timed_engine.fighter("two")) - prompt = timed_downed.get_up_prompt - assert prompt is not None - while timed_engine.tick < timed_downed.get_up_window_start_tick - 1: - timed_engine.step() - timed_engine.step({"one": command(1, action=MovementAction(prompt))}) - timed = [event for event in timed_engine.events if event.kind == "get_up_input"] - assert timed and timed[-1].detail == "timed" - assert timed_downed.get_up_meter > 0 - - late_engine = make_engine(seed=125, round_ticks=2000) - late_downed = late_engine.fighter("one") - late_engine._knock_down(late_downed, late_engine.fighter("two")) - late_prompt = late_downed.get_up_prompt - assert late_prompt is not None - while late_engine.tick < late_downed.get_up_window_end_tick: - late_engine.step() - late_engine.step({"one": command(1, action=MovementAction(late_prompt))}) - late = [event for event in late_engine.events if event.kind == "get_up_input"] - assert late and late[-1].detail == "late" - assert late_downed.get_up_meter == 0 - - def test_action_instances_echo_ids_and_retain_after_clearing() -> None: engine = make_engine(seed=130, round_ticks=2000) one = engine.fighter("one") diff --git a/tests/test_hands/test_protocol.py b/tests/test_hands/test_protocol.py index d0a757bb..ba6e58b6 100644 --- a/tests/test_hands/test_protocol.py +++ b/tests/test_hands/test_protocol.py @@ -277,7 +277,8 @@ def test_snapshot_encoding_is_required_and_redacted_per_viewer() -> None: two.get_up_meter = 27 two.get_up_window_start_tick = 20 two.get_up_window_end_tick = 26 - engine._emit("get_up_input", "two", amount=12, detail="timed") + two.get_up_next_prompt = ActionKind.GET_UP_LEFT + engine._emit("get_up_input", "two", amount=2, detail="perfect") snapshot = engine.snapshot() one_payload = json.loads(encode_snapshot(snapshot, viewer_id="one"))["payload"] @@ -301,15 +302,18 @@ def test_snapshot_encoding_is_required_and_redacted_per_viewer() -> None: assert one_view["two"]["get_up_window_start_tick"] == 0 assert two_view["two"]["queued_actions"] == 1 assert two_view["two"]["get_up_prompt"] == "get_up_right" + assert two_view["two"]["get_up_next_prompt"] == "get_up_left" assert two_view["one"]["queued_actions"] == 0 assert two_view["one"]["get_up_prompt"] is None + assert one_view["two"]["get_up_next_prompt"] is None assert one_payload["events"] == [] assert two_payload["events"][0]["kind"] == "get_up_input" - assert two_payload["events"][0]["detail"] == "timed" + assert two_payload["events"][0]["detail"] == "perfect" assert spectator_view["one"]["queued_actions"] == 0 assert spectator_view["two"]["queued_actions"] == 0 assert spectator_view["one"]["get_up_prompt"] is None assert spectator_view["two"]["get_up_prompt"] is None + assert spectator_view["two"]["get_up_next_prompt"] is None assert spectator_view["one"]["get_up_meter"] == 0 assert spectator_view["two"]["get_up_meter"] == 0 assert spectator_payload["events"] == [] diff --git a/web/hands/replays/golden.json b/web/hands/replays/golden.json index 6f9d5491..4122cd81 100644 --- a/web/hands/replays/golden.json +++ b/web/hands/replays/golden.json @@ -19,7 +19,7 @@ }, { "marker": "get_up", - "tick": 134 + "tick": 158 }, { "marker": "box", @@ -95,7 +95,7 @@ }, { "marker": "second_get_up", - "tick": 816 + "tick": 866 }, { "marker": "finish_him", @@ -132,7 +132,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "709d58f84f64c57dc26811a1f489e7286334b2737af49893aa1863e63173418c", + "checksum": "916d0f98e0a6376493a01d2464f5a76e266d20f5b3400558b4db13f3f18ac907", "events": [], "fighters": [ { @@ -159,8 +159,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -219,6 +220,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -283,7 +285,7 @@ "tick": 1 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 1 }, @@ -292,7 +294,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "bfbc5c2ae22c76da89c19b662eee4a479029c542a18b4bf059e3eec6fbf20ced", + "checksum": "9c6b2006dde7cddbea39a4f54264b1d73e762eeac6fdc12aa338aa8ebef67a5c", "events": [], "fighters": [ { @@ -319,8 +321,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -379,6 +382,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -443,7 +447,7 @@ "tick": 2 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 2 }, @@ -452,7 +456,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "c5d59f8da9cfbf64d45c1a2bc60d4fef0eee9a5e4d02adf7a5e1c022d9210fc0", + "checksum": "0c60035bcf4f2eab13c034367e63840adf48d80e23b65e8e0a3b165060302901", "events": [], "fighters": [ { @@ -479,8 +483,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -539,6 +544,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -603,7 +609,7 @@ "tick": 3 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 3 }, @@ -612,7 +618,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "692ad8003f0b2c8aad9590f46245dabd5675f0f192004ffa8fd992a0731ceebf", + "checksum": "22fd99af751ef27ec49d7fd630236f11d63f298c2c691838390ec36fe4c3b6ff", "events": [], "fighters": [ { @@ -639,8 +645,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -699,6 +706,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -763,7 +771,7 @@ "tick": 4 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 4 }, @@ -772,7 +780,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "ab9417e6be8b3df6472bbbb329950439416ff6c6df8fe913accaf96b46cf245e", + "checksum": "a3e11316de4d6ef0f24f14b926e3a55b1db7558af09419707394bb5800738465", "events": [], "fighters": [ { @@ -799,8 +807,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -859,6 +868,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -923,7 +933,7 @@ "tick": 5 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 5 }, @@ -932,7 +942,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "72f61d309c440f4c0b4d57153ebb2af8a7817433f2544c8d60f6003bd3d106d1", + "checksum": "fdc518805dea794007f77fcedeb99670fe371b68c63b244d3edfdf0f44e8dfb2", "events": [], "fighters": [ { @@ -959,8 +969,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -1019,6 +1030,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -1083,7 +1095,7 @@ "tick": 6 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 6 }, @@ -1092,7 +1104,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "bb74e1908a9f2d0beaf24daa42c94ba10982311d4b3ad55aa6be59aaaec226a4", + "checksum": "db1e2482c3ed4f8543a43367e258b7ecde9789fda4df1f1b1b69148adce2c0da", "events": [], "fighters": [ { @@ -1119,8 +1131,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -1179,6 +1192,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -1243,7 +1257,7 @@ "tick": 7 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 7 }, @@ -1252,7 +1266,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "2beeb9161d76c3aa1e02421b6e111a5e7e12a0dad5fc2eee8cf842b25d2927d8", + "checksum": "7a046f7f1e3a33ce9deeb6673fa1c77f60bf146bcd5d6279f014e62a3db87f2b", "events": [], "fighters": [ { @@ -1279,8 +1293,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -1339,6 +1354,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -1403,7 +1419,7 @@ "tick": 8 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 8 }, @@ -1412,7 +1428,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "b7c969c4f1fdc0c8ab9494ec0b85bc886ec7b2d286566ebabee2a5f76a4cd541", + "checksum": "896d5e3153f96c51e3bf0120092dbbdd5508205eccce6b315f7cdd2ba125c555", "events": [], "fighters": [ { @@ -1439,8 +1455,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -1499,6 +1516,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -1563,7 +1581,7 @@ "tick": 9 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 9 }, @@ -1572,7 +1590,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "ec434758fa2b4cc715267cd32fb0195db3a62fa36a43a97bac9d9f447ba09672", + "checksum": "568de26de471beb4e5a6374d0360ea13b94761d93bb9a8c8ebf7d6e0a2d1b2f7", "events": [], "fighters": [ { @@ -1599,8 +1617,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -1659,6 +1678,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -1723,7 +1743,7 @@ "tick": 10 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 10 }, @@ -1732,7 +1752,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "001e14c8eaad782c6ae645bd85daa99adde17b33c6657faeacd13952f054ee47", + "checksum": "42c021e17b3c32efb5c65b5d94dd58945f7810e461f221540c5ad3646692dbbf", "events": [], "fighters": [ { @@ -1759,8 +1779,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -1819,6 +1840,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -1883,7 +1905,7 @@ "tick": 11 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 11 }, @@ -1892,7 +1914,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "3cecf9e3f0f553986d8ee016403b9cf6d4266a7f7c18785ea8f51518c1ed6275", + "checksum": "3ea40c589964844753362b6b907a41380c26268b57ea85d99e1d92045b90a5e5", "events": [], "fighters": [ { @@ -1919,8 +1941,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -1979,6 +2002,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -2043,7 +2067,7 @@ "tick": 12 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 12 }, @@ -2052,7 +2076,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "5b402af8842f0d4cb6c18570b83e326c77984460b0b487a16c45e1f3dac152ee", + "checksum": "d9737398c797ccf66dddc6b900b1759572a2dff64a81914dadf6e3e9ca09be09", "events": [], "fighters": [ { @@ -2079,8 +2103,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -2139,6 +2164,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -2203,7 +2229,7 @@ "tick": 13 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 13 }, @@ -2212,7 +2238,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "9b4a7c30553049556ef5dbc1fab5a78f16054d10b1a092f9b3ef722d18bd74ac", + "checksum": "1be40069d6fa0ebfbfe2c7cdc623e1d0707f9790ed08960255e996143d1e6acc", "events": [], "fighters": [ { @@ -2239,8 +2265,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -2299,6 +2326,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -2363,7 +2391,7 @@ "tick": 14 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 14 }, @@ -2372,7 +2400,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "9519d795677ecac5891d072cceac1d29a8d1a529c67cd014a33c076e7b0b3bce", + "checksum": "ef207b5e3e6dedf1afad7b298984bf6df6f2bb4fd7a029addeaf2d21fb7839a1", "events": [], "fighters": [ { @@ -2399,8 +2427,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -2459,6 +2488,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -2523,7 +2553,7 @@ "tick": 15 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 15 }, @@ -2532,7 +2562,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "c86d70d72150a94cc08f59b2a3e7c2f3d26423592eac58938746427de1cc66f4", + "checksum": "fe4fc1399ac6ed387ccb2924a6c97c3534478382181d19306985b927b9edf24a", "events": [], "fighters": [ { @@ -2559,8 +2589,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -2619,6 +2650,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -2683,7 +2715,7 @@ "tick": 16 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 16 }, @@ -2692,7 +2724,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "7fabbc37474383213f3edfc228b37038363777969258cee7541aa52e2b35ce47", + "checksum": "5b58ba9e73baa23100e42642579f938ec1a2efc1679ba937a91a5c37483e043f", "events": [], "fighters": [ { @@ -2719,8 +2751,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -2779,6 +2812,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -2843,7 +2877,7 @@ "tick": 17 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 17 }, @@ -2852,7 +2886,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "7b42eedac727fd393b3195c036ef17531b3c670882e991511852777657def961", + "checksum": "ceb655ecd64df640b7bf174f8c315f4b32c5f2f2a4990a366bb072f6761a32a4", "events": [], "fighters": [ { @@ -2879,8 +2913,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -2939,6 +2974,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -3003,7 +3039,7 @@ "tick": 18 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 18 }, @@ -3012,7 +3048,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "22d00ab1f06c45cd4eb0b5df270f18a845714b9ba2026c07f2609b118eb7015e", + "checksum": "7be5428bf6c9809d74ba561af2e0a7477de4431a081a1f2500779591d356ce12", "events": [], "fighters": [ { @@ -3039,8 +3075,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -3099,6 +3136,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -3163,7 +3201,7 @@ "tick": 19 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 19 }, @@ -3172,7 +3210,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "f014460a929315ccbc7e3c5332c6297ca6938692ce55d5412f30c970f791c528", + "checksum": "09d8d7284f8c9b45027a3ecd025355961fd9ee906055785732ef10f03765a44a", "events": [], "fighters": [ { @@ -3199,8 +3237,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -3259,6 +3298,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -3323,7 +3363,7 @@ "tick": 20 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 20 }, @@ -3332,7 +3372,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "7f5a00dbf13f79be0cb8f87b28126ce36e0e514f309c51ff12a6a58441fb4c40", + "checksum": "e427a59a053fb8218e00111fed942d6928ea82b94fd2f26ec90d1b14c3bd6350", "events": [], "fighters": [ { @@ -3359,8 +3399,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -3419,6 +3460,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -3483,7 +3525,7 @@ "tick": 21 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 21 }, @@ -3492,7 +3534,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "3da0f127cf07130316cecccff0280920e410535dac13451d4324812949ab4f0d", + "checksum": "7587d164fde6d895f94737e0fc6ee294f132ff3ca0d67fb2b1a4c2a313ebcda8", "events": [], "fighters": [ { @@ -3519,8 +3561,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -3579,6 +3622,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -3643,7 +3687,7 @@ "tick": 22 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 22 }, @@ -3652,7 +3696,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "d05d4929507ca879c7af5f8947bde253f9e0a8ce98de6d99ed09d1b5d6e5bd0b", + "checksum": "a03eeacc36cc7205248e54d1ab887f5fa76eb432504787ade479dc44be2501e3", "events": [], "fighters": [ { @@ -3679,8 +3723,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -3739,6 +3784,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -3803,7 +3849,7 @@ "tick": 23 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 23 }, @@ -3812,7 +3858,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "1f0b4d3d5fa97d511fe6d4e72e443a95eb75215e7ac4d82e0daea93e1ee3673d", + "checksum": "6d1619a912c11673a8707fee1e07dc0987437097c0e7a1b2ee643fa2e7142322", "events": [], "fighters": [ { @@ -3839,8 +3885,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -3899,6 +3946,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -3963,7 +4011,7 @@ "tick": 24 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 24 }, @@ -3972,7 +4020,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "5433e2bc23c53ca0603d07e7d1fc439c91803a1f69a04d84a21b4df841d8c1c8", + "checksum": "a84fce2870f3ad6ac578de3c6dc9f4d74d0738c38b51cb6a553e29d5288b0e92", "events": [], "fighters": [ { @@ -3999,8 +4047,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -4059,6 +4108,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -4123,7 +4173,7 @@ "tick": 25 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 25 }, @@ -4132,7 +4182,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "2b542f4b0ea7b846d53a84bce568abed4e91f0f87a43887756a018dd4b578bbf", + "checksum": "110864430c72c7210557d789350697f31ab71eca5ee6db3ecd78f3356af484c1", "events": [], "fighters": [ { @@ -4159,8 +4209,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -4219,6 +4270,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -4283,7 +4335,7 @@ "tick": 26 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 26 }, @@ -4292,7 +4344,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "64c9a6de3e6f37bf0ab9d3040a3c95e30be39f80a9c475fb2b15c185c8987321", + "checksum": "8f77f9d2920f548a51e8e0317f52e1b995c12edad7d53bc1e6854cf384c3f9b7", "events": [], "fighters": [ { @@ -4319,8 +4371,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -4379,6 +4432,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -4443,7 +4497,7 @@ "tick": 27 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 27 }, @@ -4452,7 +4506,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "716dfac8e3c5bc6feaffbf816192cb4dc787c5fa4e029d007e4317ed96ab655f", + "checksum": "b075786d5be56deb58ebc2d2640ab8b492d015d83689fbdd03081d0e77f67dcc", "events": [], "fighters": [ { @@ -4479,8 +4533,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -4539,6 +4594,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -4603,7 +4659,7 @@ "tick": 28 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 28 }, @@ -4612,7 +4668,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "ac42681022d413d3a8d37275df7743280f4a856f96a81693319425ab8af2804f", + "checksum": "6743842ad39d079b6113f457664b6df4da035b9940ff05aedab8679786b46633", "events": [], "fighters": [ { @@ -4639,8 +4695,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -4699,6 +4756,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -4763,7 +4821,7 @@ "tick": 29 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 29 }, @@ -4772,7 +4830,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "74eb1357f518c19516d2b5e134b5cb9f20c4734dc69f99212861da7f4a2ce389", + "checksum": "ab28f7e5d693a02fffdd3a5255b4183c152cdfeb267c24ef83cbd036a9d6866c", "events": [], "fighters": [ { @@ -4799,8 +4857,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -4859,6 +4918,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -4923,7 +4983,7 @@ "tick": 30 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 30 }, @@ -4932,7 +4992,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "74286ff057c0e029d7776281c2a37eb1618f7aeda0d8dec1c01a803b612225be", + "checksum": "703a893ef9821a7b92de839cd3bf5d13f850aacb1b8c2cc42ffd5491ee899e49", "events": [], "fighters": [ { @@ -4959,8 +5019,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -5019,6 +5080,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -5083,7 +5145,7 @@ "tick": 31 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 31 }, @@ -5092,7 +5154,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "50eb376aca6253c43114568281319c012218b18ff2669bcdfdd85f1b8b5e549e", + "checksum": "5b397096db56f802cd440677a999dbce46f2ea3b700540fe1585c5128cf8aa46", "events": [], "fighters": [ { @@ -5119,8 +5181,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -5179,6 +5242,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -5243,7 +5307,7 @@ "tick": 32 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 32 }, @@ -5252,7 +5316,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "fc7985ff6c7d56197cccc413c6f1e4ea955504fd87997f5452df6d49010119ca", + "checksum": "fd38d05abefe6376b2546cf9589206b66991ef835041b5f35501ffd9b9438859", "events": [], "fighters": [ { @@ -5279,8 +5343,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -5339,6 +5404,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -5403,7 +5469,7 @@ "tick": 33 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 33 }, @@ -5412,7 +5478,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "fdd33900d316229961624507a631ca7aff705b3afff8db572d795e15220b11f4", + "checksum": "8ef4c7a6dd31801b54d6ba27318f62aca480c31414e15a21134bc29523ec35cd", "events": [], "fighters": [ { @@ -5439,8 +5505,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -5499,6 +5566,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -5563,7 +5631,7 @@ "tick": 34 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 34 }, @@ -5572,7 +5640,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e0868fb2f9519fbe11cbb6ccf9bd4c778bf699050a0b5252eb79d26a755ce4cf", + "checksum": "2045ef2a5c08300807856106ef33255061c1a663d6c27c7608c4d2c95b305a84", "events": [], "fighters": [ { @@ -5599,8 +5667,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -5659,6 +5728,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -5723,7 +5793,7 @@ "tick": 35 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 35 }, @@ -5732,7 +5802,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "5a7b0574f1a421a15603577b019cc34ef1035dac27b5839708e791eced3a31e8", + "checksum": "ba933361f9c1993ba33cf796d5a4ea6323918b32bccbc5f4dcdd0059aa54aa2a", "events": [], "fighters": [ { @@ -5759,8 +5829,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -5819,6 +5890,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -5883,7 +5955,7 @@ "tick": 36 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 36 }, @@ -5892,7 +5964,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "d9f3c64711aa6e4ea2c79f6849d2e40fcae8ea530d3b2e01c55ea82a919790f8", + "checksum": "28bcf0cff0f4c0af2ac87049cf32acf365accb58c373f2efe5dba6439ae69cd4", "events": [], "fighters": [ { @@ -5919,8 +5991,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -5979,6 +6052,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -6043,7 +6117,7 @@ "tick": 37 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 37 }, @@ -6052,7 +6126,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "4d40002ce4f53cb9d5b9989659a2cae439f1a7c8464bcd748c40bc821f665e15", + "checksum": "c1e4e0c76d2b3b1538d9cc9d502745cbc103184ae29a83872d83aa1e4112773d", "events": [], "fighters": [ { @@ -6079,8 +6153,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -6139,6 +6214,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -6203,7 +6279,7 @@ "tick": 38 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 38 }, @@ -6212,7 +6288,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "0ec0d6112424824b71a934c5da054385f24a4d6be3b60bc57aabbf921f4d43b2", + "checksum": "afe9c0073a1a5b4905a52954f961e12c540cb6b204bcda2f706937c95a53c342", "events": [], "fighters": [ { @@ -6239,8 +6315,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -6299,6 +6376,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -6363,7 +6441,7 @@ "tick": 39 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 39 }, @@ -6372,7 +6450,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "980f3922e4bc15fd741dfd7f742e0d195e48e3f1e67eab07eda96896507362a6", + "checksum": "d71b39e971360f3700cc390092f89667704e832c38db522015f19e9b376eb0e7", "events": [], "fighters": [ { @@ -6399,8 +6477,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -6459,6 +6538,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -6523,7 +6603,7 @@ "tick": 40 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 40 }, @@ -6532,7 +6612,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "3c1e57e7587e5c4283379729d8524c4d3ba58db1d842d976e2a7219f28e54697", + "checksum": "f83c075c8c11ba1bacf646e50f5c4c8dffa303fa626c556311512cf608bf6c92", "events": [], "fighters": [ { @@ -6559,8 +6639,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -6619,6 +6700,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -6683,7 +6765,7 @@ "tick": 41 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 41 }, @@ -6692,7 +6774,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "2a4def20c11cbe79505468a024c645893c70cc6aa76227dc16926a9c8be01b13", + "checksum": "7b9e68c8809a711df2a494d7e22bf683c02c5e48fb8914248c2e151fdf237ed9", "events": [], "fighters": [ { @@ -6719,8 +6801,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -6779,6 +6862,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -6843,7 +6927,7 @@ "tick": 42 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 42 }, @@ -6852,7 +6936,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "2cca5e73be3e7e3ce2f791149180a98b017dc3324dc745db617acf6537c0a31d", + "checksum": "25a344b424fc197ba6b3e5119ff0662e77d49f069316e855d94a8ac7ac1541fa", "events": [], "fighters": [ { @@ -6879,8 +6963,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -6939,6 +7024,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -7003,7 +7089,7 @@ "tick": 43 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 43 }, @@ -7012,7 +7098,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "45c1e6f6d82eaf7eb9cd2cb6197b213ae8a9677408b163f4cca627cebae9d46a", + "checksum": "37553d0c30eacf70a1a7a061852e67f58efdf6aa0af498786f50475a098989ec", "events": [], "fighters": [ { @@ -7039,8 +7125,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -7099,6 +7186,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -7163,7 +7251,7 @@ "tick": 44 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 44 }, @@ -7172,7 +7260,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "730f04de02dc7764ea697bcb028f4c90adfbaa140c525a97c94472b7d10291da", + "checksum": "5f0fc44f7aba591be237f87e8dc47288b5eb777f1794b93a1c89f080a017bac3", "events": [], "fighters": [ { @@ -7199,8 +7287,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -7259,6 +7348,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -7323,7 +7413,7 @@ "tick": 45 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 45 }, @@ -7332,7 +7422,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "dee2d69c89151aab1d8c0500711e3090362202aa13d93f6fcafd194401acbd87", + "checksum": "75d12ad4b4cb9f6c1f33c6e3e3016e15fbc87f8eb630717b4ed5707a085fbe9f", "events": [], "fighters": [ { @@ -7359,8 +7449,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -7419,6 +7510,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -7483,7 +7575,7 @@ "tick": 46 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 46 }, @@ -7492,7 +7584,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "51a0e1639e1d3bfe30da1a23dbc72b150b40ba6f59ecdd070c7a501d0c250ee6", + "checksum": "e033038bc57f68cf7400284fcf0414479fdbbec874ae25095e2929f093ea6fec", "events": [], "fighters": [ { @@ -7519,8 +7611,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -7579,6 +7672,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -7643,7 +7737,7 @@ "tick": 47 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 47 }, @@ -7652,7 +7746,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "1a624dba8a29cf031103dabb2579d057dbaa59a6396c386c44edc1650d4347cb", + "checksum": "8d7e0227dcac8553da7f9baebeb03fd41a3026136e118e3c3580983c3427a2ce", "events": [], "fighters": [ { @@ -7679,8 +7773,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -7739,6 +7834,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -7803,7 +7899,7 @@ "tick": 48 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 48 }, @@ -7812,7 +7908,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "7b51ae21ebb46a0d3e56168957db6cf4423e9590513062afb1ae08570b2b0b42", + "checksum": "dbe5b6cd7cde8bb79e6c21a69ae3ce4055b36c02ba13890ffb8ed51ce9a12e77", "events": [], "fighters": [ { @@ -7839,8 +7935,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -7899,6 +7996,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -7963,7 +8061,7 @@ "tick": 49 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 49 }, @@ -7972,7 +8070,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "9d4749ab57da737f3f6db6fd24bf83855a0412785c46f625b442e9d2a7f99113", + "checksum": "3f7b1d4c2392ed7dcf22c50374455c7996275c6420795c8a950f88aa59fb7141", "events": [], "fighters": [ { @@ -7999,8 +8097,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -8059,6 +8158,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -8123,7 +8223,7 @@ "tick": 50 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 50 }, @@ -8132,7 +8232,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "faf602248de8c3d8d2e1f8270565a948f9eec1ad7f913edcfc75e745bb626f84", + "checksum": "0e05c28e4094d75df46fe3b01d52f40aa5db4d373529790106d98a3ad81e8693", "events": [], "fighters": [ { @@ -8159,8 +8259,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -8219,6 +8320,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -8283,7 +8385,7 @@ "tick": 51 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 51 }, @@ -8303,7 +8405,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "bacfe2c2eafaa9c768b314ff2369042ffeaf6066a671ca87bb79dddcbfda59b3", + "checksum": "4ab3a160ae456af59e039f7129589e9d88f16c3b31fe83fa8847cf3b8b5671d8", "events": [ { "action_id": "one@52", @@ -8343,8 +8445,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -8403,6 +8506,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -8467,7 +8571,7 @@ "tick": 52 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 52 }, @@ -8487,7 +8591,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "d67878ae8bfd7b2d05c4d1cb4a74da24ab08657607d58b13d43326b6c6f6a96a", + "checksum": "bb4a44f177f63230665c62df25297da4910aaaf9c484cfd2260d0db9cefc0428", "events": [], "fighters": [ { @@ -8514,8 +8618,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -8574,6 +8679,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -8638,7 +8744,7 @@ "tick": 53 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 53 }, @@ -8658,7 +8764,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "244aed3ae65c5cfbb8285985f34d1ca5d3c3ae723be723bee31ec0defcff383f", + "checksum": "868af80029e47aca13f33a2e4847b3a07ff069f4c81456d0bfd9fdeb4f17b05b", "events": [ { "action_id": "one@52", @@ -8710,8 +8816,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -8770,6 +8877,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -8834,7 +8942,7 @@ "tick": 54 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 54 }, @@ -8854,7 +8962,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "6694a40d4d272d75a47e4e6ba886959dbf7c6a6714535dd2893d125c991a315f", + "checksum": "524298637a595277a124e6fde589ec2423d76c5c69039abfbdb26e9aedcb6d0d", "events": [], "fighters": [ { @@ -8881,8 +8989,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -8941,6 +9050,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -9005,7 +9115,7 @@ "tick": 55 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 55 }, @@ -9025,7 +9135,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "12c124546636542761de2930bac4a81f5ff6608534a4abe8943de5ef20b3f285", + "checksum": "656bef0851b239562f907310391835e7224aeb4c36aea264b183bf03991c35f9", "events": [], "fighters": [ { @@ -9052,8 +9162,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -9112,6 +9223,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -9176,7 +9288,7 @@ "tick": 56 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 56 }, @@ -9196,7 +9308,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "ef2088facb58c65c250664586ce055a2bc3e598318dd36b2d1b02dfc45911b6d", + "checksum": "d57df842c7da461afb89e838c465647a02fc77c7fc19e6619ac688b77ae96a7a", "events": [], "fighters": [ { @@ -9223,8 +9335,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -9283,6 +9396,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -9347,7 +9461,7 @@ "tick": 57 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 57 }, @@ -9367,7 +9481,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "227306d4f894b036b1f70edfcb60ca337b10d6debf1af96f89daf9b7e080fc18", + "checksum": "ff57ed3ef2c744cd281b66a766dc14cda8dda8dea1c98dd219501004797da3b7", "events": [], "fighters": [ { @@ -9394,8 +9508,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -9454,6 +9569,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -9518,7 +9634,7 @@ "tick": 58 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 58 }, @@ -9527,7 +9643,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "8ae2173cd5f4bc4c6eede47e9b1bf0ed73ca398b008bb8c7d46bbad020e66594", + "checksum": "69a9dccaa13dead2edab8a0dbece3ab469fdc707a297c710585a7b37510ae8ea", "events": [], "fighters": [ { @@ -9554,8 +9670,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -9614,6 +9731,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -9678,7 +9796,7 @@ "tick": 59 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 59 }, @@ -9687,7 +9805,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "d9cf1b0da61cdc84dbbc75f005ab5691757378c9c4fafb80257b9b10551279d7", + "checksum": "dd305750919ef4ce1d67f068e3a808646c8be73d73bbb7733ce5e0c842908cfb", "events": [], "fighters": [ { @@ -9714,8 +9832,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -9774,6 +9893,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -9838,7 +9958,7 @@ "tick": 60 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 60 }, @@ -9847,7 +9967,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "b6bdeac57af7dbcd43197677c3049cec5c0bcebb48cc39d3c5ed74022cfbbbe2", + "checksum": "0d9c45c7827dc4c31d40ae3b471c7c671ed91dd6a8ae8f20594d7e67eb2ed5de", "events": [], "fighters": [ { @@ -9874,8 +9994,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -9934,6 +10055,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -9998,7 +10120,7 @@ "tick": 61 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 61 }, @@ -10007,7 +10129,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e16b4471ff7cb0e6403fd286bd747346c1d5da21a121d8a97270d8132f430223", + "checksum": "5a51bfeac4f1e1aae7ffbca91061353de3b533e09f3e32d8e24ee3dc50eaa033", "events": [], "fighters": [ { @@ -10034,8 +10156,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -10094,6 +10217,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -10158,7 +10282,7 @@ "tick": 62 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 62 }, @@ -10167,7 +10291,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "6016694ac5959e47942ca64bc0a507db1d270ee92c843c90205e4c6e8b76ba17", + "checksum": "df6273b6607f06d3f94ce483d1027896490a362ad627beafa4c29f079292b5b4", "events": [], "fighters": [ { @@ -10194,8 +10318,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -10254,6 +10379,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -10318,7 +10444,7 @@ "tick": 63 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 63 }, @@ -10327,7 +10453,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "4d5c41d83490d70c435126ab4950a842317c0fcc083d5e6306fb653ee6e9911b", + "checksum": "7eee5f2a5f7fd4b682424fc4801b455af7aa5ba33361b42df3dcda5dcd289218", "events": [], "fighters": [ { @@ -10354,8 +10480,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -10414,6 +10541,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -10478,7 +10606,7 @@ "tick": 64 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 64 }, @@ -10487,7 +10615,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "8c1df22aa4334d3b58b3813160af525e919366ed92b009bca122105fc3022e70", + "checksum": "c08d6ed28af3ca777a6e54986238b581ec318696b4ecc8c688889e800c1f8811", "events": [], "fighters": [ { @@ -10514,8 +10642,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -10574,6 +10703,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -10638,7 +10768,7 @@ "tick": 65 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 65 }, @@ -10647,7 +10777,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "0879800082456db0982644c99d3b0dbefcb06030795dac92db9d716d79222824", + "checksum": "599d621a9e6ec9c5c2a76923412371e2be0b0a3c50b8014c6c8d708b838f4c71", "events": [], "fighters": [ { @@ -10674,8 +10804,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -10734,6 +10865,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -10798,7 +10930,7 @@ "tick": 66 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 66 }, @@ -10807,7 +10939,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "c70848b2076f5a5fe394f366e3b606f98db77c7e7096626bde0631c3b39e8504", + "checksum": "7fb4ae3550023dc35248d9f8eba5f927ae175cfb383a642bd19d0572f62096a6", "events": [], "fighters": [ { @@ -10834,8 +10966,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -10894,6 +11027,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -10958,7 +11092,7 @@ "tick": 67 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 67 }, @@ -10967,7 +11101,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "f5d1a6b9786d39470e285e28b41ba0699cf04f026585cf5371c6a09af7e428c0", + "checksum": "b6e0135d48b2f756718201d8808836243012d0540ce2deb3653fed6b7ccfe4fd", "events": [], "fighters": [ { @@ -10994,8 +11128,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -11054,6 +11189,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -11118,7 +11254,7 @@ "tick": 68 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 68 }, @@ -11127,7 +11263,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "23579395f564a6e0ad9c18ae1de4e35552f0cf49fa3117a136407216f94377a6", + "checksum": "1573f0359cae1c290c6fb4aaefa0f79719dc33fb3e8c5498c98130807deeee09", "events": [], "fighters": [ { @@ -11154,8 +11290,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -11214,6 +11351,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -11278,7 +11416,7 @@ "tick": 69 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 69 }, @@ -11287,7 +11425,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "d226556ce38a43215a6d99ba9c4a368270277412fa1fd7c303f20fc1ca969e91", + "checksum": "2d2d458d9b74518df4c3c79aa756fff6aeca213bc84264c542c462f000a0f8fe", "events": [], "fighters": [ { @@ -11314,8 +11452,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -11374,6 +11513,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -11438,7 +11578,7 @@ "tick": 70 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 70 }, @@ -11447,7 +11587,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e3e4c58e4fbeb880ed0b917d69334507e489e5e3ab22042da71ed3e7a436cf02", + "checksum": "a7b0fe462b4cc43b2fbc044203063eb48d1f364455218e61f2953068840feafa", "events": [], "fighters": [ { @@ -11474,8 +11614,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -11534,6 +11675,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -11598,7 +11740,7 @@ "tick": 71 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 71 }, @@ -11607,7 +11749,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "6cb24ce1661a8be34139ab7c126b3fe54fb002b8019f9e7bfc83a623b555fdc2", + "checksum": "05b2b6efbde4a7cf21ba04d9f1a28bdab72d74a7f1cce5a7e96fc44e65b904d6", "events": [], "fighters": [ { @@ -11634,8 +11776,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -11694,6 +11837,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -11758,7 +11902,7 @@ "tick": 72 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 72 }, @@ -11767,7 +11911,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "4f27ac758c29a2365dedee678e7888ec0c57c02b9ad01c385734b3d89a084a13", + "checksum": "22d1b2de4075353c97e645490642b097cbf7a675bd02cb733649829f4dcafa5b", "events": [], "fighters": [ { @@ -11794,8 +11938,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -11854,6 +11999,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -11918,7 +12064,7 @@ "tick": 73 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 73 }, @@ -11927,7 +12073,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "65238ef933cc26314606ee6c27a6574b58a226e2a395097428c8d9f9a852f235", + "checksum": "7a825dfc057a3267c1a47f060852292f732c949b2df2ae68914a7d85776689dd", "events": [], "fighters": [ { @@ -11954,8 +12100,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -12014,6 +12161,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -12078,7 +12226,7 @@ "tick": 74 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 74 }, @@ -12087,7 +12235,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "2a39b213ed5b203995f691d94b742e959cf4c1d8db1c2d279a62de2b08be4948", + "checksum": "f4d71987b5c357a3b2e877c190352c563b758097a6c8bdc17f432ca1d38e5f67", "events": [], "fighters": [ { @@ -12114,8 +12262,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -12174,6 +12323,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -12238,7 +12388,7 @@ "tick": 75 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 75 }, @@ -12247,7 +12397,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "a878874acc242110105a8f5b37d57eacf7c00f75b48c9d4a00461f8f6014df47", + "checksum": "76f053766d9f902a86e9739d77374e21daa4b2000994aa1ede9c79301eafa3e7", "events": [], "fighters": [ { @@ -12274,8 +12424,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -12334,6 +12485,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -12398,7 +12550,7 @@ "tick": 76 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 76 }, @@ -12407,7 +12559,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "9a336ef40536917351c1be17160d671950b92411f02a4912c2c5690a4b9b0cb7", + "checksum": "bc829a985ecdf610ad80425846ecf861c7260583b089d1e1c7108bb4501d73bf", "events": [], "fighters": [ { @@ -12434,8 +12586,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -12494,6 +12647,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -12558,7 +12712,7 @@ "tick": 77 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 77 }, @@ -12567,7 +12721,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "8a1fe3b4dc4401845882c9dad353b9566ddb2b21e5e4cc5f4a6b0bf3d788cab4", + "checksum": "9a592e675ce8c4cf18a7b428786ea970d8d0bbdd1f3d64d413f4656f109d14ef", "events": [], "fighters": [ { @@ -12594,8 +12748,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -12654,6 +12809,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -12718,7 +12874,7 @@ "tick": 78 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 78 }, @@ -12727,7 +12883,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "9427b78714560fa5c474be38b4d39a853fe2fcfeb537654e78a62450ab57f6de", + "checksum": "d673bc1d86fd354bdea7bf5fa77d0f3f7cd1f54f198066da7188a17ca00a2521", "events": [], "fighters": [ { @@ -12754,8 +12910,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -12814,6 +12971,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -12878,7 +13036,7 @@ "tick": 79 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 79 }, @@ -12898,7 +13056,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "a4559325e6395e1a361be2159811a9b7d30a0cb8202f32b149b5b7019f7658fd", + "checksum": "23048c96909a4ac09c4ad70db9f333806edb492e0e46cdcc5b1ab8de9ac759ae", "events": [ { "action_id": "one@80", @@ -12938,8 +13096,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -12998,6 +13157,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -13062,7 +13222,7 @@ "tick": 80 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 80 }, @@ -13082,7 +13242,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "21cf2d1d1b965476bcc55bc35b0f868b77747ad1dccd3b3eba23d46d7be3c209", + "checksum": "8eaacd58a7f9caaef8cd901e04393bdc2d6d3718c4f21bc36026274ba4275983", "events": [], "fighters": [ { @@ -13109,8 +13269,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -13169,6 +13330,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -13233,7 +13395,7 @@ "tick": 81 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 81 }, @@ -13253,7 +13415,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "5ff3386d9b85809539a8f2f9cd8979d8698da58e9451d6a512aa784eca235478", + "checksum": "1f5c2c4ca3705848e4116dc2fd35aa4a2b167fa63ca107963081a4921504ca66", "events": [ { "action_id": "one@80", @@ -13305,8 +13467,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -13365,6 +13528,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -13429,7 +13593,7 @@ "tick": 82 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 82 }, @@ -13449,7 +13613,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "8ddce633b45e004c55d7386de7cb829ccc36a97b3057c6b18af82b776033c4fb", + "checksum": "55d74a14f7cb7fe4c8e397715d627b586d0b978c448fd9572e173cd3e68a7334", "events": [], "fighters": [ { @@ -13476,8 +13640,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -13536,6 +13701,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -13600,7 +13766,7 @@ "tick": 83 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 83 }, @@ -13620,7 +13786,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "1fed5298c5019e6a9cb9dc8fad53df117dcee58bbdd9f90a7ac327cd92f3328a", + "checksum": "f3f399b288923028e8d51890290987a7335292c243eccea88151739359551907", "events": [], "fighters": [ { @@ -13647,8 +13813,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -13707,6 +13874,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -13771,7 +13939,7 @@ "tick": 84 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 84 }, @@ -13791,7 +13959,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "692b7193b8f83df2d117ece844a1a6b937d7d29b23080689ff38769ad667e04a", + "checksum": "311d1b3f80264134c1bad5e4028fdcdc7695068e25d80d9d76542d859c673377", "events": [], "fighters": [ { @@ -13818,8 +13986,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -13878,6 +14047,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -13942,7 +14112,7 @@ "tick": 85 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 85 }, @@ -13962,7 +14132,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "393abcff0b6ee8e8c4b1ad562504e0509d5be61d25a8085907309ca2068f07b1", + "checksum": "20b2d05cfb2eb56fcf65f55e20f87264e1737794d543b3136f2db909e3d71b7e", "events": [], "fighters": [ { @@ -13989,8 +14159,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -14049,6 +14220,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -14113,7 +14285,7 @@ "tick": 86 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 86 }, @@ -14122,7 +14294,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "b84aa4fb7fc6a0da9199f95d07a799f474106d03d27a6a59f47a7d7f5cc04318", + "checksum": "570d9d6adeafe1078efdaf4eaa312761d45243cb6fb69dc17b8ab605658627b0", "events": [], "fighters": [ { @@ -14149,8 +14321,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -14209,6 +14382,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -14273,7 +14447,7 @@ "tick": 87 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 87 }, @@ -14282,7 +14456,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "337115227e63cd820fc09b9fa35042f23a50d9a54e10ba45c8023f6e394b9f96", + "checksum": "1aece4068ac2f81995c73e4744b8909f75ff4469bcda7eb5461e1cb891b445ac", "events": [], "fighters": [ { @@ -14309,8 +14483,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -14369,6 +14544,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -14433,7 +14609,7 @@ "tick": 88 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 88 }, @@ -14442,7 +14618,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "2dc9ad652c8988aea54c40e2572e50cea9465f15741d2f9c175a0c22c9242001", + "checksum": "136f33be2164afbd230257891fcff128b6e4ad8431368f2680f6b11e8d846822", "events": [], "fighters": [ { @@ -14469,8 +14645,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -14529,6 +14706,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -14593,7 +14771,7 @@ "tick": 89 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 89 }, @@ -14602,7 +14780,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "663628ffae99a46a2fb7f67c10046894741e856189dfe7f520fdebe0eec41da5", + "checksum": "1017931d1402012a8eb2f92083a09a58f1d5a81da56165eb60d7215439e19f77", "events": [], "fighters": [ { @@ -14629,8 +14807,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -14689,6 +14868,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -14753,7 +14933,7 @@ "tick": 90 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 90 }, @@ -14762,7 +14942,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "56173942f8d9ac339818121c3ee2579a2ad6f9803250d3f387761e97a8d90121", + "checksum": "ab06ce28863aa7ab2efefbcfd3436fec1aa6ca0dfd805124297f3bbea4710533", "events": [], "fighters": [ { @@ -14789,8 +14969,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -14849,6 +15030,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -14913,7 +15095,7 @@ "tick": 91 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 91 }, @@ -14922,7 +15104,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "5fba3365152369dfa55da51a38690aef8b5c70ce2a41e00116f3a5222cca5e87", + "checksum": "3263112bb0bf479680b91c5593e2c1da110d75da554f83cf9026871960caf743", "events": [], "fighters": [ { @@ -14949,8 +15131,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -15009,6 +15192,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -15073,7 +15257,7 @@ "tick": 92 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 92 }, @@ -15082,7 +15266,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "21e0cb53d44edd4104be0d6d8e3b6fcc082d10d65c2c22384faa893f5a150548", + "checksum": "b35c010f4fe5f97174c125c1317b9f1bdc8c9996a9acc5723df1d34d80a7a1f4", "events": [], "fighters": [ { @@ -15109,8 +15293,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -15169,6 +15354,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -15233,7 +15419,7 @@ "tick": 93 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 93 }, @@ -15253,7 +15439,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e1a801017b73bc0f51dbd938588401a744114e4af2116dd177f20a46f5c80124", + "checksum": "1b6e84fd41c4217af71d8fe6547d93c04bf18976d670e0ac0f71f3bae00332fb", "events": [ { "action_id": "one@94", @@ -15293,8 +15479,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -15353,6 +15540,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -15417,7 +15605,7 @@ "tick": 94 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 94 }, @@ -15437,7 +15625,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "8a26845591d2f20ede2c5cc4a82a903a4bcb0a5a51695efcd4d54b1edbd5f18e", + "checksum": "054e5a73199f4e7d5e074e228c75acd53134e5c3116b6ca8307e8815b3977670", "events": [], "fighters": [ { @@ -15464,8 +15652,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -15524,6 +15713,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -15588,7 +15778,7 @@ "tick": 95 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 95 }, @@ -15608,7 +15798,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "2ef14e6523c239785efe7270222d347fe915c2120864cf48884b913ed0e7934d", + "checksum": "3355f8b5f6714e646c74e56e6ec72b99cc83f5bf1f50111915e699bbaf13348a", "events": [], "fighters": [ { @@ -15635,8 +15825,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -15695,6 +15886,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -15759,7 +15951,7 @@ "tick": 96 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 96 }, @@ -15779,7 +15971,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "ab7fc1f8ad94d512cf5971e51e8ec5c93e2edc900efb52380074b710dc589c65", + "checksum": "723143caa503748e0919fde097ddfd968a585c0fa30dd8c4ab98f54c08c9c55b", "events": [], "fighters": [ { @@ -15806,8 +15998,9 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -15866,6 +16059,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -15930,7 +16124,7 @@ "tick": 97 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 97 }, @@ -15939,7 +16133,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "2e0298ebb42de106e7de810a2ed6739f2ae307b783faeb88be0a465b9cba1bd2", + "checksum": "3752f62a3e204bbc0e63727c5762ecf8b9403cf26649c0f646fb7f2063dcef5f", "events": [ { "action_id": "one@94", @@ -15991,170 +16185,173 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, - "get_up_prompt": null, - "get_up_required": 30, - "get_up_window_end_tick": 0, - "get_up_window_start_tick": 0, - "guard": 700, - "guard_broken": false, - "injuries": [], - "is_downed": false, - "is_foul_recovery_target": false, - "knockdowns": 0, - "last_input_sequence": 64, - "maximum_stamina": 1000, - "player_id": "one", - "poise": 600, - "queued_actions": 0, - "stamina": 974, - "stance": "orthodox", - "stunned_ticks": 0, - "style": "boxer", - "taunt_ticks": 0, - "trauma": { - "bleeding": 0, - "body": 0, - "head": 0, - "left_cut": 0, - "left_eye": 0, - "right_cut": 0, - "right_eye": 0, - "swelling": 0 - }, - "velocity_x": 0, - "velocity_y": 0, - "warnings": 0, - "x": 199, - "y": 0 - }, - { - "action": null, - "action_active_ticks": 0, - "action_contact_tick": null, - "action_hand": null, - "action_id": null, - "action_key": null, - "action_power": null, - "action_recovery_ticks": 0, - "action_start_tick": 0, - "action_startup_ticks": 0, - "action_target": null, - "blood_volume": 1000, - "clinch_startup_ticks": 0, - "clinch_ticks": 0, - "conditioning": 1000, - "corner_choice": null, - "deductions": 0, - "defense": "none", - "facing": -1, - "facing_x": -1000, - "facing_y": 0, - "get_up_count": 0, - "get_up_meter": 0, + "get_up_next_prompt": null, + "get_up_prompt": null, + "get_up_required": 0, + "get_up_window_end_tick": 0, + "get_up_window_start_tick": 0, + "guard": 700, + "guard_broken": false, + "injuries": [], + "is_downed": false, + "is_foul_recovery_target": false, + "knockdowns": 0, + "last_input_sequence": 64, + "maximum_stamina": 1000, + "player_id": "one", + "poise": 600, + "queued_actions": 0, + "stamina": 974, + "stance": "orthodox", + "stunned_ticks": 0, + "style": "boxer", + "taunt_ticks": 0, + "trauma": { + "bleeding": 0, + "body": 0, + "head": 0, + "left_cut": 0, + "left_eye": 0, + "right_cut": 0, + "right_eye": 0, + "swelling": 0 + }, + "velocity_x": 0, + "velocity_y": 0, + "warnings": 0, + "x": 199, + "y": 0 + }, + { + "action": null, + "action_active_ticks": 0, + "action_contact_tick": null, + "action_hand": null, + "action_id": null, + "action_key": null, + "action_power": null, + "action_recovery_ticks": 0, + "action_start_tick": 0, + "action_startup_ticks": 0, + "action_target": null, + "blood_volume": 1000, + "clinch_startup_ticks": 0, + "clinch_ticks": 0, + "conditioning": 1000, + "corner_choice": null, + "deductions": 0, + "defense": "none", + "facing": -1, + "facing_x": -1000, + "facing_y": 0, + "get_up_count": 0, + "get_up_meter": 0, + "get_up_next_prompt": null, + "get_up_prompt": null, + "get_up_required": 0, + "get_up_window_end_tick": 0, + "get_up_window_start_tick": 0, + "guard": 530, + "guard_broken": false, + "injuries": [], + "is_downed": true, + "is_foul_recovery_target": false, + "knockdowns": 1, + "last_input_sequence": -1, + "maximum_stamina": 1000, + "player_id": "two", + "poise": 1, + "queued_actions": 0, + "stamina": 1000, + "stance": "orthodox", + "stunned_ticks": 0, + "style": "slugger", + "taunt_ticks": 0, + "trauma": { + "bleeding": 0, + "body": 0, + "head": 42, + "left_cut": 0, + "left_eye": 40, + "right_cut": 0, + "right_eye": 0, + "swelling": 19 + }, + "velocity_x": 0, + "velocity_y": 0, + "warnings": 0, + "x": 300, + "y": 0 + } + ], + "phase": "knockdown", + "phase_ticks_remaining": 200, + "referee": { + "alive": true, + "facing_x": 647, + "facing_y": -776, + "stunned_ticks": 0, + "trauma": { + "bleeding": 0, + "body": 0, + "head": 0, + "left_cut": 0, + "left_eye": 0, + "right_cut": 0, + "right_eye": 0, + "swelling": 0 + }, + "velocity_x": -4, + "velocity_y": 4, + "x": 245, + "y": 66 + }, + "result": null, + "round_number": 1, + "tick": 98 + }, + "type": "snapshot", + "version": 7 + }, + "tick": 98 + }, + { + "attack_one": null, + "attack_two": null, + "snapshot": { + "payload": { + "checksum": "9607b014d9a392cf59dac4d66b33ec310673eda941fdccef708488586d63e1de", + "events": [], + "fighters": [ + { + "action": "straight", + "action_active_ticks": 2, + "action_contact_tick": 98, + "action_hand": "right", + "action_id": "one@94", + "action_key": "straight:right:head:normal", + "action_power": "normal", + "action_recovery_ticks": 6, + "action_start_tick": 94, + "action_startup_ticks": 4, + "action_target": "head", + "blood_volume": 1000, + "clinch_startup_ticks": 0, + "clinch_ticks": 0, + "conditioning": 997, + "corner_choice": null, + "deductions": 0, + "defense": "none", + "facing": 1, + "facing_x": 1000, + "facing_y": -37, + "get_up_count": 0, + "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, - "guard": 530, - "guard_broken": false, - "injuries": [], - "is_downed": true, - "is_foul_recovery_target": false, - "knockdowns": 1, - "last_input_sequence": -1, - "maximum_stamina": 1000, - "player_id": "two", - "poise": 1, - "queued_actions": 0, - "stamina": 1000, - "stance": "orthodox", - "stunned_ticks": 0, - "style": "slugger", - "taunt_ticks": 0, - "trauma": { - "bleeding": 0, - "body": 0, - "head": 42, - "left_cut": 0, - "left_eye": 40, - "right_cut": 0, - "right_eye": 0, - "swelling": 19 - }, - "velocity_x": 0, - "velocity_y": 0, - "warnings": 0, - "x": 300, - "y": 0 - } - ], - "phase": "knockdown", - "phase_ticks_remaining": 200, - "referee": { - "alive": true, - "facing_x": 647, - "facing_y": -776, - "stunned_ticks": 0, - "trauma": { - "bleeding": 0, - "body": 0, - "head": 0, - "left_cut": 0, - "left_eye": 0, - "right_cut": 0, - "right_eye": 0, - "swelling": 0 - }, - "velocity_x": -4, - "velocity_y": 4, - "x": 245, - "y": 66 - }, - "result": null, - "round_number": 1, - "tick": 98 - }, - "type": "snapshot", - "version": 6 - }, - "tick": 98 - }, - { - "attack_one": null, - "attack_two": null, - "snapshot": { - "payload": { - "checksum": "066748bd9793bdcfa7bae99f8599449defcdbd8b5bd12b27f8511e975993af8c", - "events": [], - "fighters": [ - { - "action": "straight", - "action_active_ticks": 2, - "action_contact_tick": 98, - "action_hand": "right", - "action_id": "one@94", - "action_key": "straight:right:head:normal", - "action_power": "normal", - "action_recovery_ticks": 6, - "action_start_tick": 94, - "action_startup_ticks": 4, - "action_target": "head", - "blood_volume": 1000, - "clinch_startup_ticks": 0, - "clinch_ticks": 0, - "conditioning": 997, - "corner_choice": null, - "deductions": 0, - "defense": "none", - "facing": 1, - "facing_x": 1000, - "facing_y": -37, - "get_up_count": 0, - "get_up_meter": 0, - "get_up_prompt": null, - "get_up_required": 30, - "get_up_window_end_tick": 0, - "get_up_window_start_tick": 0, "guard": 700, "guard_broken": false, "injuries": [], @@ -16211,6 +16408,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -16275,7 +16473,7 @@ "tick": 99 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 99 }, @@ -16284,7 +16482,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e8a6923dbbb0fec6e4bbeb976573abad2fa014e9ca16d53b2e6f7020dfb87b14", + "checksum": "afbd1c1439765436a1b83676a2ec26f01bdccdad749ab90aad30ecf30c83f8cf", "events": [], "fighters": [ { @@ -16311,8 +16509,9 @@ "facing_y": -78, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -16371,6 +16570,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -16435,7 +16635,7 @@ "tick": 100 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 100 }, @@ -16444,7 +16644,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "0415102bf6f6a56007516b88aa291f7b5d022acb8f95ce7ff42d4c6745d22953", + "checksum": "96099d6e7f33e409be5b3d7e0bbe0418672914d81e1d66ffe727d60a93d5eaac", "events": [], "fighters": [ { @@ -16471,8 +16671,9 @@ "facing_y": -114, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -16531,6 +16732,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -16595,7 +16797,7 @@ "tick": 101 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 101 }, @@ -16604,7 +16806,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "65d0d21006d704d241241a5e75635e69712722f3be0a4ae5ea3f44569dfdf9a1", + "checksum": "4772f19c6ccfd630095cd11eb5c84879390440dc8e843e32991869bed917c9df", "events": [], "fighters": [ { @@ -16631,8 +16833,9 @@ "facing_y": -145, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -16691,6 +16894,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -16755,7 +16959,7 @@ "tick": 102 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 102 }, @@ -16764,7 +16968,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e646a12c6e205d39aa36dd90f738a17b6f6e093307b41bc7b9aa1633825b90ba", + "checksum": "26bc0281e7fbf9f97cd87c59cffbcd9086de32fc9f31f9c73d1a839fb209c552", "events": [], "fighters": [ { @@ -16791,8 +16995,9 @@ "facing_y": -172, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -16851,6 +17056,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -16915,7 +17121,7 @@ "tick": 103 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 103 }, @@ -16924,7 +17130,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "74cf3e99a49cb64eae94b41f4a71308624448d00174407bd3c125cc354d00770", + "checksum": "fca09b0834451e24cdfe124e58775f6065bf05ad5714afb6ec7d5d88fca2e7cd", "events": [], "fighters": [ { @@ -16951,8 +17157,9 @@ "facing_y": -197, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -17011,6 +17218,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -17075,7 +17283,7 @@ "tick": 104 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 104 }, @@ -17084,7 +17292,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "da34624981ccf46b2c00f89fd5676fa80ca7ebabc1ec892618fa77752cf7cdbc", + "checksum": "fce98716c7afc15695f83f76aa1c040df649316936ff8994c4e5446a74f70c86", "events": [], "fighters": [ { @@ -17111,8 +17319,9 @@ "facing_y": -219, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -17171,6 +17380,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -17235,7 +17445,7 @@ "tick": 105 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 105 }, @@ -17244,7 +17454,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "910d05768a6063540e296f91d0886f430b4bdc3958293bc8dca2231a9eeed49d", + "checksum": "35c52cecff3be7b99bbae8c562f5927fa8e11db511e961262a6925cb25621fac", "events": [], "fighters": [ { @@ -17271,8 +17481,9 @@ "facing_y": -237, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -17331,6 +17542,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -17395,7 +17607,7 @@ "tick": 106 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 106 }, @@ -17404,7 +17616,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "69f12ed0177ab31b3c04cce3fa908d245d8be3dace3db0cc2bb5857fa6374280", + "checksum": "424b88543063ca06bad6e2f27486319a869dc4480f2ceda8738bf31ecb844e4a", "events": [], "fighters": [ { @@ -17431,8 +17643,9 @@ "facing_y": -248, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -17491,6 +17704,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -17555,7 +17769,7 @@ "tick": 107 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 107 }, @@ -17564,7 +17778,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "9d2bb535ee22b81c9482d56c1efbf5579fcbfcdbfc454737de457d0d4ee016e5", + "checksum": "72e3970ca168354741633ad4bd264be347253be03e3fe887fe74c20cce974869", "events": [], "fighters": [ { @@ -17591,8 +17805,9 @@ "facing_y": -265, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -17651,6 +17866,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -17715,7 +17931,7 @@ "tick": 108 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 108 }, @@ -17724,7 +17940,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "ebe39f0afc8787ae8c9cafa5070983dc6db8fa5eea3ccfa76f237a8e9f3ca085", + "checksum": "2eb705130e2e8ba5e208ca376ed7aa12e415e1200adfbe60a7433f505dfc7a55", "events": [], "fighters": [ { @@ -17751,8 +17967,9 @@ "facing_y": -278, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -17811,6 +18028,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -17875,7 +18093,7 @@ "tick": 109 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 109 }, @@ -17884,7 +18102,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "d5d25bb444bc750a7bd7516fe940c4563d818a6dc9efe20ae891a5273fc251a3", + "checksum": "7e168ec8aae8cf0517eed1658484879cd49a57b013c0f2086b83a1dc8efa22b9", "events": [], "fighters": [ { @@ -17911,8 +18129,9 @@ "facing_y": -292, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -17971,6 +18190,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -18035,7 +18255,7 @@ "tick": 110 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 110 }, @@ -18044,7 +18264,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "1ecf8c45cb9a67c8b34f25e8b4b8681a959ae147b7fc7cde882ea81629c6bbdc", + "checksum": "6d4fef8c521ecb32afaa3d69768d57491b5ce5e7a8685ca4e373f62932729fce", "events": [], "fighters": [ { @@ -18071,8 +18291,9 @@ "facing_y": -304, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -18131,6 +18352,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -18195,7 +18417,7 @@ "tick": 111 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 111 }, @@ -18204,7 +18426,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "3054525f9db3459568b4cdd3a38e23ec8f35e8718f3a84535607937472aa5d0c", + "checksum": "9f97a558312b1ad23f8bba12fae839fb02695923c9e160d73c80613a7a23e450", "events": [], "fighters": [ { @@ -18231,8 +18453,9 @@ "facing_y": -316, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -18291,6 +18514,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -18355,7 +18579,7 @@ "tick": 112 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 112 }, @@ -18364,7 +18588,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "3f0c6577c161a2766dd2430896d98a272a6b2d607a393bbcf28d7a3786f4362f", + "checksum": "cf534133936576501b469a6508ae170ca2f4eac395e3952a7f5fcf403447740c", "events": [], "fighters": [ { @@ -18391,8 +18615,9 @@ "facing_y": -324, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -18451,6 +18676,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -18515,7 +18741,7 @@ "tick": 113 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 113 }, @@ -18524,7 +18750,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "83ebb2ccfca7b01dbae0a4133de59392d418fb90ec1ed359306dfa42b9cb3e53", + "checksum": "dd80cf54f54b2655ae9b1856f1a94a9c7d065b5d2ed39aaab461a38662b71d16", "events": [], "fighters": [ { @@ -18551,8 +18777,9 @@ "facing_y": -334, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -18611,6 +18838,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -18675,7 +18903,7 @@ "tick": 114 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 114 }, @@ -18684,7 +18912,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "68d8eb9358ef218412a2fad303ab872fbecf6f59e1eba4e30e6b9b15dd234a27", + "checksum": "6be0ae96bc74182be55eb79e4849ca534f3c42f420e2271f94d63d93fe99930d", "events": [], "fighters": [ { @@ -18711,8 +18939,9 @@ "facing_y": -342, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -18771,6 +19000,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -18835,7 +19065,7 @@ "tick": 115 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 115 }, @@ -18844,7 +19074,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "bb0c5551d20aa9191bc26b3addc8e08141534ceded127816672ef7250b8ac0d8", + "checksum": "eed4742446fe66750119c13bc7cafaa92df84dd1301114cd8d510bc90eb22941", "events": [], "fighters": [ { @@ -18871,8 +19101,9 @@ "facing_y": -346, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -18931,6 +19162,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -18995,7 +19227,7 @@ "tick": 116 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 116 }, @@ -19004,7 +19236,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "429e54cccc11027e9ffaf1a88e61a36c5309b49c3cb9e5ef9051ac3252cd60f0", + "checksum": "d6263ff0096b4e72e98b714bb6876f6d64ce468bab17821bbdd04b0e157b0878", "events": [], "fighters": [ { @@ -19031,8 +19263,9 @@ "facing_y": -355, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -19091,6 +19324,7 @@ "facing_y": 0, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -19155,7 +19389,7 @@ "tick": 117 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 117 }, @@ -19164,7 +19398,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "3253cc7b811313d41f0b012daacbfff0d5476d250ed3fafb1e0dffea5d37df82", + "checksum": "bdd3e69efe3ca4da18680b14baf8cabd93677949de08745d6dc2f23073d93e2a", "events": [ { "action_id": null, @@ -19173,7 +19407,7 @@ "blood": 0, "detail": "", "direction": 0, - "event_id": 11, + "event_id": 10, "kind": "count", "target_id": "two", "tick": 118 @@ -19204,8 +19438,9 @@ "facing_y": -360, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -19264,6 +19499,7 @@ "facing_y": 0, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -19328,7 +19564,7 @@ "tick": 118 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 118 }, @@ -19337,7 +19573,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "f241dabd07b3e7736150796f29f7be400d10167702e38bc08b17308e04477c60", + "checksum": "c8978c2774f06112d8472ee68cecc6630959a31a0d9c571db0ba9e20836d2b36", "events": [], "fighters": [ { @@ -19364,8 +19600,9 @@ "facing_y": -368, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -19424,6 +19661,7 @@ "facing_y": 0, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -19488,7 +19726,7 @@ "tick": 119 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 119 }, @@ -19497,7 +19735,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e6c4a7780134c84b2132b993755f44d93a5dc57f28b1fba3e1bf98957b16ec69", + "checksum": "d1ab582e5da1c4bd24e964607b45f6873cc5a0dab12810cace345d7861edcab8", "events": [], "fighters": [ { @@ -19524,8 +19762,9 @@ "facing_y": -374, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -19584,6 +19823,7 @@ "facing_y": 0, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -19648,7 +19888,7 @@ "tick": 120 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 120 }, @@ -19657,7 +19897,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "a2146f329ca85ab1b7ba2185440a529b1af75589bd5b651ae046ef62d043fbdf", + "checksum": "e1d426e6c8a249de23e91e5c498f649af4c50e97a94614549b88aa52f9914fc5", "events": [], "fighters": [ { @@ -19684,8 +19924,9 @@ "facing_y": -379, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -19744,6 +19985,7 @@ "facing_y": 0, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -19808,7 +20050,7 @@ "tick": 121 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 121 }, @@ -19817,7 +20059,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "b827891110900a67b6684d1bee26135ec632a3345efb6ad6fa8ce478bb8ab303", + "checksum": "c7c4ce7e23fa1b57d2015dbab4de54557b0f8c77d1b930acdde41da6345faa4a", "events": [], "fighters": [ { @@ -19844,8 +20086,9 @@ "facing_y": -384, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -19904,6 +20147,7 @@ "facing_y": 0, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -19968,7 +20212,7 @@ "tick": 122 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 122 }, @@ -19977,7 +20221,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "607ede4a4ed6889d65f2c544a4e7b65d71557511e1d598096b4853288263176e", + "checksum": "f409ccfd1c07c87643eec9da11b9c421958b16d0ecbbd62db697aceca9978841", "events": [], "fighters": [ { @@ -20004,8 +20248,9 @@ "facing_y": -389, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -20064,6 +20309,7 @@ "facing_y": 0, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -20128,7 +20374,7 @@ "tick": 123 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 123 }, @@ -20137,7 +20383,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "979816e33f9e96420a1dbaab025bd37233981a0440d3b33174061758a96cf865", + "checksum": "79af92a17abd979e5b402c3bd975bd994d7b69b42bbdbc505137a000b4d98a69", "events": [], "fighters": [ { @@ -20164,8 +20410,9 @@ "facing_y": -392, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -20224,6 +20471,7 @@ "facing_y": 0, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -20288,7 +20536,7 @@ "tick": 124 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 124 }, @@ -20297,7 +20545,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "8f789ba86037f9fa5ba6426ce5d8b3f11b022740021336c79187cfa1ff437b22", + "checksum": "fde9ef5b24995951ac2682a9f2eeb2a665053b2d83d41ea8c03aaa56dcd1af46", "events": [], "fighters": [ { @@ -20324,8 +20572,9 @@ "facing_y": -395, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -20384,6 +20633,7 @@ "facing_y": 0, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -20448,7 +20698,7 @@ "tick": 125 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 125 }, @@ -20457,7 +20707,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "8b5a6be8afea1becf65efdb29ba09483111dc6aad01362d865e06ae081f01b2e", + "checksum": "44c9a6f1c905a2301151cb93b6db85fe2159e1cd36d77586fa0dc900237e85d5", "events": [], "fighters": [ { @@ -20484,8 +20734,9 @@ "facing_y": -401, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -20544,6 +20795,7 @@ "facing_y": 0, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -20608,7 +20860,7 @@ "tick": 126 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 126 }, @@ -20617,7 +20869,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "bc44997d49551cdee5004ab6d8d42f8a3a198e7bdb1bc1d696eea431ccd3023e", + "checksum": "a94c0452ad954fbbfebbd74a2a920e36b709fc180d61b93fec9827826ce4f24c", "events": [], "fighters": [ { @@ -20644,8 +20896,9 @@ "facing_y": -405, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -20704,6 +20957,7 @@ "facing_y": 0, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -20768,7 +21022,7 @@ "tick": 127 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 127 }, @@ -20777,7 +21031,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "59954ee8baccf21ee9425d27256c5d1313018b101ebdfee26bef081898b76892", + "checksum": "c023f6e35e9536ea5dfec5c38ff76b9898cd1c72380d199f89aa7beb29c93a14", "events": [], "fighters": [ { @@ -20804,8 +21058,9 @@ "facing_y": -408, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -20864,6 +21119,7 @@ "facing_y": 0, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -20928,7 +21184,7 @@ "tick": 128 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 128 }, @@ -20937,7 +21193,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "3d8be9a2333e29f1035513cd785a237b3a8b5edbe397245e656acda3cda65dfc", + "checksum": "657f1f467e6c03952d0ef26e1e84933b39cd3bb7ee73ccc89c9fa09e28910d0b", "events": [], "fighters": [ { @@ -20964,8 +21220,9 @@ "facing_y": -412, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -21024,6 +21281,7 @@ "facing_y": 0, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -21088,7 +21346,7 @@ "tick": 129 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 129 }, @@ -21097,7 +21355,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "2f2f8948631e78f2ba3359e2b398e61437903ab6943378d843d2ffeebbd57000", + "checksum": "c7764191be51e2c88a2542347d17d0bc5792d1ee59e7b10d9441d7749342ec4b", "events": [], "fighters": [ { @@ -21124,8 +21382,9 @@ "facing_y": -417, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -21184,6 +21443,7 @@ "facing_y": 0, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -21248,7 +21508,7 @@ "tick": 130 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 130 }, @@ -21257,7 +21517,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "db3b16f49077818372b540364a1d16599459ad85a922b2b2402c6123caaf275e", + "checksum": "09c025b06d6e01b394beebddccbe13b30e58ea994ce4185eb62644363299586d", "events": [], "fighters": [ { @@ -21284,8 +21544,9 @@ "facing_y": -419, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -21344,6 +21605,7 @@ "facing_y": 0, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -21408,7 +21670,7 @@ "tick": 131 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 131 }, @@ -21417,7 +21679,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "afa15e13251a198a711af7ee56e5ff3925a4b134456f2ff6e289bb00af8f3420", + "checksum": "b304a07c9325a3b18ead14236d95c3d562f2410d44dc0f467af3461690b071ab", "events": [], "fighters": [ { @@ -21444,8 +21706,9 @@ "facing_y": -422, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -21504,6 +21767,7 @@ "facing_y": 0, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -21568,7 +21832,7 @@ "tick": 132 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 132 }, @@ -21577,7 +21841,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "f45c828ef2ab9ac2e573a9553a12a15d5f13e3ff3ae4d4951897c763c90799c2", + "checksum": "45c04e50f34d451a3a5bb70abbe80ca42b6fdecc281bb542166bcee274945b0a", "events": [], "fighters": [ { @@ -21604,8 +21868,9 @@ "facing_y": -423, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -21664,6 +21929,7 @@ "facing_y": 0, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -21728,7 +21994,7 @@ "tick": 133 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 133 }, @@ -21737,21 +22003,8 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e29faba397e41f7a9a931a7440baec5fe4f2c2d4e101fbf447fd024c4840a58e", - "events": [ - { - "action_id": null, - "actor_id": "two", - "amount": 1, - "blood": 0, - "detail": "", - "direction": 0, - "event_id": 14, - "kind": "get_up", - "target_id": null, - "tick": 134 - } - ], + "checksum": "1b035b36f9fea117c3a5196bf5b72c8ac8ae630920d45a63811f6fdc94d97c1b", + "events": [], "fighters": [ { "action": null, @@ -21777,8 +22030,9 @@ "facing_y": -425, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -21837,6 +22091,7 @@ "facing_y": 0, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -21844,13 +22099,13 @@ "guard": 530, "guard_broken": false, "injuries": [], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 1, "last_input_sequence": -1, "maximum_stamina": 1000, "player_id": "two", - "poise": 300, + "poise": 1, "queued_actions": 0, "stamina": 1000, "stance": "orthodox", @@ -21875,7 +22130,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 84, + "phase_ticks_remaining": 164, "referee": { "alive": true, "facing_x": 644, @@ -21901,7 +22156,7 @@ "tick": 134 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 134 }, @@ -21910,7 +22165,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "a90b20f615836e5ca23992f6dab16b1c23dff0fabf5ed54d17d950c6f833c46b", + "checksum": "0d9151895815b63408b640ef305f417fbc390446284e41bdec8d67f588d4ffc3", "events": [], "fighters": [ { @@ -21937,8 +22192,9 @@ "facing_y": -429, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -21993,10 +22249,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -998, - "facing_y": 64, + "facing_x": -1000, + "facing_y": 0, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -22004,13 +22261,13 @@ "guard": 530, "guard_broken": false, "injuries": [], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 1, "last_input_sequence": -1, "maximum_stamina": 1000, "player_id": "two", - "poise": 300, + "poise": 1, "queued_actions": 0, "stamina": 1000, "stance": "orthodox", @@ -22035,7 +22292,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 83, + "phase_ticks_remaining": 163, "referee": { "alive": true, "facing_x": 644, @@ -22061,7 +22318,7 @@ "tick": 135 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 135 }, @@ -22070,7 +22327,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "f2d0c17280c6f6960aaba1f8e92161e1d9336e778b03907ff7c7de5b4e689e1d", + "checksum": "5fdb58854da78beb1b9d9937b9d8cca2d6010bf2ef95fad8f27839190dd7882a", "events": [], "fighters": [ { @@ -22097,8 +22354,9 @@ "facing_y": -432, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -22153,10 +22411,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -992, - "facing_y": 128, + "facing_x": -1000, + "facing_y": 0, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -22164,13 +22423,13 @@ "guard": 530, "guard_broken": false, "injuries": [], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 1, "last_input_sequence": -1, "maximum_stamina": 1000, "player_id": "two", - "poise": 300, + "poise": 1, "queued_actions": 0, "stamina": 1000, "stance": "orthodox", @@ -22195,7 +22454,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 82, + "phase_ticks_remaining": 162, "referee": { "alive": true, "facing_x": 644, @@ -22221,7 +22480,7 @@ "tick": 136 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 136 }, @@ -22230,7 +22489,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "fe4c45382fb08b3d785febe70ab298052a845faa61c0461a791a62ab2c67954c", + "checksum": "077487f6265329682bf50fad45af5dcc59a8d6133655a87dd38673289ac4063e", "events": [], "fighters": [ { @@ -22257,8 +22516,9 @@ "facing_y": -434, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -22313,10 +22573,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -982, - "facing_y": 191, + "facing_x": -1000, + "facing_y": 0, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -22324,13 +22585,13 @@ "guard": 530, "guard_broken": false, "injuries": [], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 1, "last_input_sequence": -1, "maximum_stamina": 1000, "player_id": "two", - "poise": 300, + "poise": 1, "queued_actions": 0, "stamina": 1000, "stance": "orthodox", @@ -22355,7 +22616,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 81, + "phase_ticks_remaining": 161, "referee": { "alive": true, "facing_x": 644, @@ -22381,7 +22642,7 @@ "tick": 137 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 137 }, @@ -22390,7 +22651,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "4e6aa4d5881eef7ab0c3c4781422aafe4f4212421ed33e95ae602945d2be09df", + "checksum": "49f8c45fef695566343589f27dbd77a9ed57eeb05b5e592adba227679334418e", "events": [ { "action_id": null, @@ -22399,7 +22660,7 @@ "blood": 0, "detail": "", "direction": 0, - "event_id": 15, + "event_id": 12, "kind": "count", "target_id": "two", "tick": 138 @@ -22430,8 +22691,9 @@ "facing_y": -437, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -22486,10 +22748,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -967, - "facing_y": 253, + "facing_x": -1000, + "facing_y": 0, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -22497,13 +22760,13 @@ "guard": 530, "guard_broken": false, "injuries": [], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 1, "last_input_sequence": -1, "maximum_stamina": 1000, "player_id": "two", - "poise": 300, + "poise": 1, "queued_actions": 0, "stamina": 1000, "stance": "orthodox", @@ -22528,7 +22791,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 80, + "phase_ticks_remaining": 160, "referee": { "alive": true, "facing_x": 644, @@ -22554,7 +22817,7 @@ "tick": 138 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 138 }, @@ -22563,7 +22826,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "3a7b886ea0a4ae53ba8b5b1d6b732ddab164005891309dedfc6d57822461b056", + "checksum": "b50a29b3cebf36a79de682513bb2959559d188eb0aaed868b61c58d7df298f81", "events": [], "fighters": [ { @@ -22590,8 +22853,9 @@ "facing_y": -439, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -22646,10 +22910,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -949, - "facing_y": 314, + "facing_x": -1000, + "facing_y": 0, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -22657,13 +22922,13 @@ "guard": 530, "guard_broken": false, "injuries": [], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 1, "last_input_sequence": -1, "maximum_stamina": 1000, "player_id": "two", - "poise": 300, + "poise": 1, "queued_actions": 0, "stamina": 1000, "stance": "orthodox", @@ -22688,7 +22953,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 79, + "phase_ticks_remaining": 159, "referee": { "alive": true, "facing_x": 644, @@ -22714,7 +22979,7 @@ "tick": 139 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 139 }, @@ -22723,7 +22988,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "c948a6c42b1e90f574dcce3397462517cd73938621e84b7302e680ee558d7274", + "checksum": "c1ee0ec3a9da5243ab3e6bd22c2b7f6021c649abd79fc2c72ff7d73103717d40", "events": [], "fighters": [ { @@ -22750,8 +23015,9 @@ "facing_y": -441, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -22806,10 +23072,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -927, - "facing_y": 374, + "facing_x": -1000, + "facing_y": 0, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -22817,13 +23084,13 @@ "guard": 530, "guard_broken": false, "injuries": [], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 1, "last_input_sequence": -1, "maximum_stamina": 1000, "player_id": "two", - "poise": 300, + "poise": 1, "queued_actions": 0, "stamina": 1000, "stance": "orthodox", @@ -22848,7 +23115,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 78, + "phase_ticks_remaining": 158, "referee": { "alive": true, "facing_x": 644, @@ -22874,7 +23141,7 @@ "tick": 140 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 140 }, @@ -22883,7 +23150,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "87674a8ee4057cb5896a1b168146eaf2f6280fdc1b23f1e2088a6f2268bcea51", + "checksum": "a26b139e207f2aef9f9650eda71a9e067711b90c42b9acc15d612276ad2bb419", "events": [], "fighters": [ { @@ -22910,8 +23177,9 @@ "facing_y": -443, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -22966,10 +23234,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -902, - "facing_y": 433, + "facing_x": -1000, + "facing_y": 0, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -22977,13 +23246,13 @@ "guard": 530, "guard_broken": false, "injuries": [], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 1, "last_input_sequence": -1, "maximum_stamina": 1000, "player_id": "two", - "poise": 300, + "poise": 1, "queued_actions": 0, "stamina": 1000, "stance": "orthodox", @@ -23008,7 +23277,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 77, + "phase_ticks_remaining": 157, "referee": { "alive": true, "facing_x": 644, @@ -23034,7 +23303,7 @@ "tick": 141 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 141 }, @@ -23043,7 +23312,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "8af23e85396841d6aad0f6b5c259e004dadb636536024f6824402f70054f4059", + "checksum": "02d282ae52f820f27696d7ad905a73e75139934eae9e8adca475466e2a220ba4", "events": [], "fighters": [ { @@ -23070,8 +23339,9 @@ "facing_y": -443, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -23126,10 +23396,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -896, - "facing_y": 443, + "facing_x": -1000, + "facing_y": 0, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -23137,13 +23408,13 @@ "guard": 530, "guard_broken": false, "injuries": [], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 1, "last_input_sequence": -1, "maximum_stamina": 1000, "player_id": "two", - "poise": 300, + "poise": 1, "queued_actions": 0, "stamina": 1000, "stance": "orthodox", @@ -23168,7 +23439,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 76, + "phase_ticks_remaining": 156, "referee": { "alive": true, "facing_x": 644, @@ -23194,7 +23465,7 @@ "tick": 142 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 142 }, @@ -23203,7 +23474,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "97458c7baccf4f049ae7a8fb6e9c9a41670dc76e5c90109827aa35b5246c6030", + "checksum": "e6c41819b9591ecf538cdacf58ef4fe3b29324f21a306c4332509d0fe4505f89", "events": [], "fighters": [ { @@ -23230,8 +23501,9 @@ "facing_y": -446, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -23286,10 +23558,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -896, - "facing_y": 446, + "facing_x": -1000, + "facing_y": 0, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -23297,13 +23570,13 @@ "guard": 530, "guard_broken": false, "injuries": [], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 1, "last_input_sequence": -1, "maximum_stamina": 1000, "player_id": "two", - "poise": 300, + "poise": 1, "queued_actions": 0, "stamina": 1000, "stance": "orthodox", @@ -23328,7 +23601,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 75, + "phase_ticks_remaining": 155, "referee": { "alive": true, "facing_x": 644, @@ -23354,7 +23627,7 @@ "tick": 143 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 143 }, @@ -23363,7 +23636,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "f7626a9daad96c379e1d445901a4b7ce99d830d437c1655eaa2a40cf774a30ac", + "checksum": "cf7428e59668fd4df2b50168241749d01797fa06c36b47af8cc7da5979f883c8", "events": [], "fighters": [ { @@ -23390,8 +23663,9 @@ "facing_y": -448, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -23446,10 +23720,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -895, - "facing_y": 448, + "facing_x": -1000, + "facing_y": 0, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -23457,13 +23732,13 @@ "guard": 530, "guard_broken": false, "injuries": [], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 1, "last_input_sequence": -1, "maximum_stamina": 1000, "player_id": "two", - "poise": 300, + "poise": 1, "queued_actions": 0, "stamina": 1000, "stance": "orthodox", @@ -23488,7 +23763,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 74, + "phase_ticks_remaining": 154, "referee": { "alive": true, "facing_x": 644, @@ -23514,7 +23789,7 @@ "tick": 144 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 144 }, @@ -23523,7 +23798,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "838e49926f8396c12ad2ddf21aaa4a36cd0a632d4524b498bd18359f9a0ed928", + "checksum": "8227fecf02a2912c2441ed8e298b943bf6871583ec4f15a5d7598686a321fbdc", "events": [], "fighters": [ { @@ -23550,8 +23825,9 @@ "facing_y": -449, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -23606,10 +23882,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -893, - "facing_y": 449, + "facing_x": -1000, + "facing_y": 0, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -23617,13 +23894,13 @@ "guard": 530, "guard_broken": false, "injuries": [], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 1, "last_input_sequence": -1, "maximum_stamina": 1000, "player_id": "two", - "poise": 300, + "poise": 1, "queued_actions": 0, "stamina": 1000, "stance": "orthodox", @@ -23648,7 +23925,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 73, + "phase_ticks_remaining": 153, "referee": { "alive": true, "facing_x": 644, @@ -23674,7 +23951,7 @@ "tick": 145 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 145 }, @@ -23683,7 +23960,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "a2dcf33a86873e3b57e23bf14418a959757aaefbaa7fd65567ea5847b03ce842", + "checksum": "668ea79e77e3de9a58b95a0887901a12794f27b30470b81c8da8d8c5f64c09d7", "events": [], "fighters": [ { @@ -23710,8 +23987,9 @@ "facing_y": -452, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -23766,10 +24044,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -893, - "facing_y": 452, + "facing_x": -1000, + "facing_y": 0, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -23777,13 +24056,13 @@ "guard": 530, "guard_broken": false, "injuries": [], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 1, "last_input_sequence": -1, "maximum_stamina": 1000, "player_id": "two", - "poise": 300, + "poise": 1, "queued_actions": 0, "stamina": 1000, "stance": "orthodox", @@ -23808,7 +24087,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 72, + "phase_ticks_remaining": 152, "referee": { "alive": true, "facing_x": 644, @@ -23834,7 +24113,7 @@ "tick": 146 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 146 }, @@ -23843,7 +24122,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "7f9ab1c5b5c01a35338202f7b0031cb65f3b64b28f712f7520f516529c9f6121", + "checksum": "45fd948a51630b6f23b3633403040622ea3ba0a221c7c889b7149d0cc7a6052a", "events": [], "fighters": [ { @@ -23870,8 +24149,9 @@ "facing_y": -453, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -23926,10 +24206,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -891, - "facing_y": 453, + "facing_x": -1000, + "facing_y": 0, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -23937,13 +24218,13 @@ "guard": 530, "guard_broken": false, "injuries": [], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 1, "last_input_sequence": -1, "maximum_stamina": 1000, "player_id": "two", - "poise": 300, + "poise": 1, "queued_actions": 0, "stamina": 1000, "stance": "orthodox", @@ -23968,7 +24249,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 71, + "phase_ticks_remaining": 151, "referee": { "alive": true, "facing_x": 644, @@ -23994,7 +24275,7 @@ "tick": 147 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 147 }, @@ -24003,7 +24284,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "432ad38ea97992312039cab7bf8abd9d95c210ee3b706ded91a6ca04c3acb99a", + "checksum": "778c531abe302fc2ed606ab70a8b4e632815d7541e35b85d17fc794da504ba11", "events": [], "fighters": [ { @@ -24030,8 +24311,9 @@ "facing_y": -455, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -24086,10 +24368,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -891, - "facing_y": 455, + "facing_x": -1000, + "facing_y": 0, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -24097,13 +24380,13 @@ "guard": 530, "guard_broken": false, "injuries": [], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 1, "last_input_sequence": -1, "maximum_stamina": 1000, "player_id": "two", - "poise": 300, + "poise": 1, "queued_actions": 0, "stamina": 1000, "stance": "orthodox", @@ -24128,7 +24411,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 70, + "phase_ticks_remaining": 150, "referee": { "alive": true, "facing_x": 644, @@ -24154,7 +24437,7 @@ "tick": 148 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 148 }, @@ -24163,7 +24446,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "02c19f539d32622ac31d9dd43db1a26a112479de47598cb75bac2d61b1778d2c", + "checksum": "73793df04809cb5f53a30a578bedbd0d3a75db3af337fb05322f8ddd66955089", "events": [], "fighters": [ { @@ -24190,8 +24473,9 @@ "facing_y": -456, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -24246,10 +24530,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -889, - "facing_y": 456, + "facing_x": -1000, + "facing_y": 0, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -24257,13 +24542,13 @@ "guard": 530, "guard_broken": false, "injuries": [], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 1, "last_input_sequence": -1, "maximum_stamina": 1000, "player_id": "two", - "poise": 300, + "poise": 1, "queued_actions": 0, "stamina": 1000, "stance": "orthodox", @@ -24288,7 +24573,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 69, + "phase_ticks_remaining": 149, "referee": { "alive": true, "facing_x": 644, @@ -24314,7 +24599,7 @@ "tick": 149 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 149 }, @@ -24323,7 +24608,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "58d64a63e916a55579e06d39fc1422a982783683f0e28d0a9d7a7b1d447b07e6", + "checksum": "f2b96c2505bf6079fffc625d3311190ebc73885e621b44febdf55a572bad1042", "events": [], "fighters": [ { @@ -24350,8 +24635,9 @@ "facing_y": -458, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -24406,10 +24692,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -889, - "facing_y": 458, + "facing_x": -1000, + "facing_y": 0, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -24417,13 +24704,13 @@ "guard": 530, "guard_broken": false, "injuries": [], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 1, "last_input_sequence": -1, "maximum_stamina": 1000, "player_id": "two", - "poise": 300, + "poise": 1, "queued_actions": 0, "stamina": 1000, "stance": "orthodox", @@ -24448,7 +24735,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 68, + "phase_ticks_remaining": 148, "referee": { "alive": true, "facing_x": 644, @@ -24474,7 +24761,7 @@ "tick": 150 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 150 }, @@ -24483,7 +24770,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "530b3d33a5a5196820caaf3ffc71f7f9aac2587fc9e49d6259745dca9a53e97b", + "checksum": "1e6db9a899abdff6c68a535a7f75060c993045707a90163d4166a3c62cee7a51", "events": [], "fighters": [ { @@ -24510,8 +24797,9 @@ "facing_y": -460, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -24566,10 +24854,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -888, - "facing_y": 460, + "facing_x": -1000, + "facing_y": 0, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -24577,13 +24866,13 @@ "guard": 530, "guard_broken": false, "injuries": [], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 1, "last_input_sequence": -1, "maximum_stamina": 1000, "player_id": "two", - "poise": 300, + "poise": 1, "queued_actions": 0, "stamina": 1000, "stance": "orthodox", @@ -24608,7 +24897,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 67, + "phase_ticks_remaining": 147, "referee": { "alive": true, "facing_x": 644, @@ -24634,7 +24923,7 @@ "tick": 151 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 151 }, @@ -24643,7 +24932,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "a1d156882ffd70f1a22469d9054b9cbc520623e3c4fa328bd7732e83eb623217", + "checksum": "cf9aaddb9e45e3b6101ac80fcef2f6d639a1580021bdbe0a1f6d1e73a7d0dd4e", "events": [], "fighters": [ { @@ -24670,8 +24959,9 @@ "facing_y": -459, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -24726,10 +25016,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -888, - "facing_y": 459, + "facing_x": -1000, + "facing_y": 0, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -24737,13 +25028,13 @@ "guard": 530, "guard_broken": false, "injuries": [], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 1, "last_input_sequence": -1, "maximum_stamina": 1000, "player_id": "two", - "poise": 300, + "poise": 1, "queued_actions": 0, "stamina": 1000, "stance": "orthodox", @@ -24768,7 +25059,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 66, + "phase_ticks_remaining": 146, "referee": { "alive": true, "facing_x": 644, @@ -24794,7 +25085,7 @@ "tick": 152 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 152 }, @@ -24803,7 +25094,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "d25e71bb4b6d4edd93a6754bbb650861bb7775470ee302c97d5442b679fd3f3a", + "checksum": "0e1d098f4f33dc4704ae248a6bbf9396adaeb0ee1dde4411208e31b54b4f6674", "events": [], "fighters": [ { @@ -24830,8 +25121,9 @@ "facing_y": -462, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -24886,10 +25178,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -887, - "facing_y": 462, + "facing_x": -1000, + "facing_y": 0, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -24897,13 +25190,13 @@ "guard": 530, "guard_broken": false, "injuries": [], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 1, "last_input_sequence": -1, "maximum_stamina": 1000, "player_id": "two", - "poise": 300, + "poise": 1, "queued_actions": 0, "stamina": 1000, "stance": "orthodox", @@ -24928,7 +25221,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 65, + "phase_ticks_remaining": 145, "referee": { "alive": true, "facing_x": 644, @@ -24954,7 +25247,7 @@ "tick": 153 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 153 }, @@ -24963,7 +25256,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "5148567d3e05cb1e17881e081d1db1d433b43b6c1aae3974ed0d7b70fefae011", + "checksum": "a2867898fe63ddb2c98e47ae0fdcf8c0530a93c79f8d047895655af3bdebd47e", "events": [], "fighters": [ { @@ -24990,8 +25283,9 @@ "facing_y": -463, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -25046,10 +25340,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -887, - "facing_y": 463, + "facing_x": -1000, + "facing_y": 0, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -25057,13 +25352,13 @@ "guard": 530, "guard_broken": false, "injuries": [], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 1, "last_input_sequence": -1, "maximum_stamina": 1000, "player_id": "two", - "poise": 300, + "poise": 1, "queued_actions": 0, "stamina": 1000, "stance": "orthodox", @@ -25088,7 +25383,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 64, + "phase_ticks_remaining": 144, "referee": { "alive": true, "facing_x": 644, @@ -25114,7 +25409,7 @@ "tick": 154 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 154 }, @@ -25123,7 +25418,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "bbf42d9215485e80176896901f3e26ae726ac131b43284ac46be40df24420f02", + "checksum": "09759cc5425f05c3c52aa6b657062a6b93f656bcf47f40afea567a16b6d43ea9", "events": [], "fighters": [ { @@ -25150,8 +25445,9 @@ "facing_y": -464, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -25206,10 +25502,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -886, - "facing_y": 464, + "facing_x": -1000, + "facing_y": 0, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -25217,13 +25514,13 @@ "guard": 530, "guard_broken": false, "injuries": [], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 1, "last_input_sequence": -1, "maximum_stamina": 1000, "player_id": "two", - "poise": 300, + "poise": 1, "queued_actions": 0, "stamina": 1000, "stance": "orthodox", @@ -25248,7 +25545,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 63, + "phase_ticks_remaining": 143, "referee": { "alive": true, "facing_x": 644, @@ -25274,7 +25571,7 @@ "tick": 155 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 155 }, @@ -25283,7 +25580,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "fe456d4108d9d88c7427d55745ae9b2910675b2ba341b064a461daa9efec7a47", + "checksum": "19ceb2343e92fb1803b94c3638c2a40e419124e521aadb571650dc9d43c4a41a", "events": [], "fighters": [ { @@ -25310,8 +25607,9 @@ "facing_y": -466, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -25366,10 +25664,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -886, - "facing_y": 466, + "facing_x": -1000, + "facing_y": 0, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -25377,13 +25676,13 @@ "guard": 530, "guard_broken": false, "injuries": [], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 1, "last_input_sequence": -1, "maximum_stamina": 1000, "player_id": "two", - "poise": 300, + "poise": 1, "queued_actions": 0, "stamina": 1000, "stance": "orthodox", @@ -25408,7 +25707,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 62, + "phase_ticks_remaining": 142, "referee": { "alive": true, "facing_x": 644, @@ -25434,7 +25733,7 @@ "tick": 156 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 156 }, @@ -25443,7 +25742,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "8950a0fafd3ed0158fc0df68e2471c753eca13975adf2d211622275657f4232e", + "checksum": "2bc2eafd17c781d842c05c7c0d68b8b2ba855acc8ebb48c52aab0187817dadeb", "events": [], "fighters": [ { @@ -25470,8 +25769,9 @@ "facing_y": -466, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -25526,10 +25826,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -884, - "facing_y": 466, + "facing_x": -1000, + "facing_y": 0, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -25537,13 +25838,13 @@ "guard": 530, "guard_broken": false, "injuries": [], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 1, "last_input_sequence": -1, "maximum_stamina": 1000, "player_id": "two", - "poise": 300, + "poise": 1, "queued_actions": 0, "stamina": 1000, "stance": "orthodox", @@ -25568,7 +25869,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 61, + "phase_ticks_remaining": 141, "referee": { "alive": true, "facing_x": 644, @@ -25594,7 +25895,7 @@ "tick": 157 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 157 }, @@ -25603,18 +25904,18 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "b328f89f131240ba3bbbe16e89d4495efefd3ffe67624f6b74162690015c593f", + "checksum": "f0d0cde2998ae5714970f2f85a030b83bf68dd268a404dbb8a7464be234a524e", "events": [ { "action_id": null, - "actor_id": null, + "actor_id": "two", "amount": 3, "blood": 0, "detail": "", "direction": 0, - "event_id": 16, - "kind": "count", - "target_id": "two", + "event_id": 14, + "kind": "get_up", + "target_id": null, "tick": 158 } ], @@ -25643,8 +25944,9 @@ "facing_y": -468, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -25699,10 +26001,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -884, - "facing_y": 468, + "facing_x": -1000, + "facing_y": 0, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -25767,7 +26070,7 @@ "tick": 158 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 158 }, @@ -25776,7 +26079,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "7fad3d52b6195567acda530ba92e4621782a3b731cb1616a0bcce137c8ac42ff", + "checksum": "2552eba0e68d150843050458324675265e136dd8c455b7ce68aaec475c281aeb", "events": [], "fighters": [ { @@ -25803,8 +26106,9 @@ "facing_y": -469, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -25859,10 +26163,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -883, - "facing_y": 469, + "facing_x": -998, + "facing_y": 64, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -25927,7 +26232,7 @@ "tick": 159 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 159 }, @@ -25936,7 +26241,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "3aee1bd1e7ce597f009c3fcf0f93de7ccbfe46459896fbef15b0fb83ecee284c", + "checksum": "c9f56f4b4b4b230b2849792022a39ab928075487c394d472cc64c2bee24c7dee", "events": [], "fighters": [ { @@ -25963,8 +26268,9 @@ "facing_y": -471, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -26019,10 +26325,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -883, - "facing_y": 471, + "facing_x": -992, + "facing_y": 128, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -26087,7 +26394,7 @@ "tick": 160 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 160 }, @@ -26096,7 +26403,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e291c1cbaf019490ef268b3af0c01d64e803fa9855da6b55d2cbf8493357cd79", + "checksum": "6825459a938f5b1bb739ad2a0938fba55489ab3e83a80cce77854d699b1c99d4", "events": [], "fighters": [ { @@ -26123,8 +26430,9 @@ "facing_y": -470, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -26179,10 +26487,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -883, - "facing_y": 470, + "facing_x": -982, + "facing_y": 191, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -26247,7 +26556,7 @@ "tick": 161 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 161 }, @@ -26256,7 +26565,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "aad48825a2e3a73464ceadfd45f320ce0760d10c856b69b0eab6f49049895b32", + "checksum": "91ac16f8cb77ef0f3125232ee732ce030d5a2b65eeedafd4ad5b63725869399f", "events": [], "fighters": [ { @@ -26283,8 +26592,9 @@ "facing_y": -471, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -26339,10 +26649,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -882, - "facing_y": 471, + "facing_x": -967, + "facing_y": 253, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -26407,7 +26718,7 @@ "tick": 162 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 162 }, @@ -26416,7 +26727,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "7a4843a011e362ac047fae62bf2c950f7dde21f0ee26ec6276c4e7405a8a85fd", + "checksum": "ad4f56f26629c636a8893ea4049ca6f7fbb830f467f72215d95ef59b3134b561", "events": [], "fighters": [ { @@ -26443,8 +26754,9 @@ "facing_y": -473, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -26499,10 +26811,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -882, - "facing_y": 473, + "facing_x": -949, + "facing_y": 314, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -26567,7 +26880,7 @@ "tick": 163 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 163 }, @@ -26576,7 +26889,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "8f49ff6d2195d2c7b3784168fde0823fb32e5fe8b484fcb782c05662ed888c78", + "checksum": "355eb890d06a11faebb1c90069abe7c4b3c3c435a9babc73493da5d65aed78ab", "events": [], "fighters": [ { @@ -26603,8 +26916,9 @@ "facing_y": -473, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -26659,10 +26973,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -880, - "facing_y": 473, + "facing_x": -927, + "facing_y": 374, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -26727,7 +27042,7 @@ "tick": 164 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 164 }, @@ -26736,7 +27051,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "5d8110e23f6a4365bb49ac4cef6ffe95ae17be9c3f468c68164bbdc4f43cb046", + "checksum": "f6d13a523359e01d78b0eb7217ee969fd25fc6a482ba6a53eb8d870321cde9f9", "events": [], "fighters": [ { @@ -26763,8 +27078,9 @@ "facing_y": -475, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -26819,10 +27135,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -880, - "facing_y": 475, + "facing_x": -902, + "facing_y": 433, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -26887,7 +27204,7 @@ "tick": 165 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 165 }, @@ -26896,7 +27213,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "dbe1d1f64b40a0fd6a3d6b4820cbf5ff6ddf73ec848f72246599804ba5ba05c9", + "checksum": "37c4b2cf2cca02be2debb5f378b0543f4bc14eac9be73557dc593fc33e80a824", "events": [], "fighters": [ { @@ -26923,8 +27240,9 @@ "facing_y": -475, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -26983,6 +27301,7 @@ "facing_y": 475, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -27047,7 +27366,7 @@ "tick": 166 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 166 }, @@ -27056,7 +27375,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "b65ef2887d076f1b78bbb8775cedd31edee2bc73de5c5dfd7d7700d70c148906", + "checksum": "eac233ac5da2b25a233e1859a3b5cd5d876be0ddfdb933f45a8bb0aa2e0cf3bc", "events": [], "fighters": [ { @@ -27083,8 +27402,9 @@ "facing_y": -476, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -27143,6 +27463,7 @@ "facing_y": 476, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -27207,7 +27528,7 @@ "tick": 167 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 167 }, @@ -27216,7 +27537,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "8138234829068368d6586c91a0908d2435fd81683f3e44a4b0fc9cb58506d84d", + "checksum": "9f736be4d930b99607295a7628ccdfbca8a232a737814decebcacb82f3f791c2", "events": [], "fighters": [ { @@ -27243,8 +27564,9 @@ "facing_y": -478, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -27303,6 +27625,7 @@ "facing_y": 478, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -27367,7 +27690,7 @@ "tick": 168 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 168 }, @@ -27376,7 +27699,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "5c536a70bc53e4a9352a8f517b3993f9a1c18ae866a6e4d3f0d9c889d042ef42", + "checksum": "10537805f85601f02faf1baa77847502928e4ea6e597b3cc67df185ac9cd6a01", "events": [], "fighters": [ { @@ -27403,8 +27726,9 @@ "facing_y": -478, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -27463,6 +27787,7 @@ "facing_y": 478, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -27527,7 +27852,7 @@ "tick": 169 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 169 }, @@ -27536,7 +27861,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "fdd008acf6ba4176cbba8c14851afb25d30eadb0591376ec87d9fddef74e4ccf", + "checksum": "ee8f4f3bce0779ad187c441b0c6f54ebe9770b8ae67d01afdb179217303cdc62", "events": [], "fighters": [ { @@ -27563,8 +27888,9 @@ "facing_y": -479, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -27623,6 +27949,7 @@ "facing_y": 479, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -27687,7 +28014,7 @@ "tick": 170 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 170 }, @@ -27696,7 +28023,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "24060945019016a711d3630a74576d07678e9e7557917fa01214a207719f7b07", + "checksum": "9a878777675d543d119e1209d08465558dc254574fee8b2f72a0d0e4b1902c3d", "events": [], "fighters": [ { @@ -27723,8 +28050,9 @@ "facing_y": -480, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -27783,6 +28111,7 @@ "facing_y": 480, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -27847,7 +28176,7 @@ "tick": 171 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 171 }, @@ -27856,7 +28185,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "0d4e9bd030fb2382b38d376323fcc0dc195a1501fd8c664ad320454b51905a64", + "checksum": "e368ff1b12b2a7749d7c2acad204ad122638be9810cb55ec1ff66a5ce8021bc3", "events": [], "fighters": [ { @@ -27883,8 +28212,9 @@ "facing_y": -481, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -27943,6 +28273,7 @@ "facing_y": 481, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -28007,7 +28338,7 @@ "tick": 172 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 172 }, @@ -28016,7 +28347,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "42c42d682aca4fe9b0e36850783e5ec9095b025756fef86ba0f519d285a998c1", + "checksum": "1812a77c588f2b611f4370e38bea59ec6af22b6ccd9e118ac5b5b6521dc712cb", "events": [], "fighters": [ { @@ -28043,8 +28374,9 @@ "facing_y": -481, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -28103,6 +28435,7 @@ "facing_y": 481, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -28167,7 +28500,7 @@ "tick": 173 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 173 }, @@ -28176,7 +28509,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "2ddad36f501a36bc949a9bc8518c8228d33945bf278914fda205f624d56dc901", + "checksum": "96086c363edd971eddca05bf737adc3771be4915f25e79ad88ce27adf6c98f69", "events": [], "fighters": [ { @@ -28203,8 +28536,9 @@ "facing_y": -481, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -28263,6 +28597,7 @@ "facing_y": 481, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -28327,7 +28662,7 @@ "tick": 174 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 174 }, @@ -28336,7 +28671,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "7182a4eb225d35ef456bd2b1296c2bf0adb5e24edb115f23bde8b5a35a38881c", + "checksum": "944ad0d5cc3c377fb037e4aef197a0ec82d653db12f9f5c760d04a3e431272f4", "events": [], "fighters": [ { @@ -28363,8 +28698,9 @@ "facing_y": -481, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -28423,6 +28759,7 @@ "facing_y": 481, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -28487,7 +28824,7 @@ "tick": 175 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 175 }, @@ -28496,7 +28833,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "1ed5b52e500ad97e0eaa38960538b45d451d4caa56f9525f15501303627c1660", + "checksum": "48df8d7511e8116428df91713048cbbc20719c2c3c0646b16e05d46e7fff6c80", "events": [], "fighters": [ { @@ -28523,8 +28860,9 @@ "facing_y": -481, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -28583,6 +28921,7 @@ "facing_y": 481, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -28647,7 +28986,7 @@ "tick": 176 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 176 }, @@ -28656,7 +28995,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "fdf0fff467ed4a8d24facb077154fb5555a1bd89b43db39dc06f40e943d7c331", + "checksum": "eb474ce4cb8d85e91718295f2c4315273ac24d6c8d4a91aadab14c14948a637c", "events": [], "fighters": [ { @@ -28683,8 +29022,9 @@ "facing_y": -481, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -28743,6 +29083,7 @@ "facing_y": 481, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -28807,7 +29148,7 @@ "tick": 177 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 177 }, @@ -28816,7 +29157,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "7b977354fc2223dd96b9667a1d0881e5c82e5ba0bfc99165dab19dd8dc1619ab", + "checksum": "abe1f879239cfaa4c6b89f82c5ecc3389ceee3c0de09f3a80c2ca32e58017b97", "events": [ { "action_id": null, @@ -28825,7 +29166,7 @@ "blood": 0, "detail": "", "direction": 0, - "event_id": 17, + "event_id": 15, "kind": "count", "target_id": "two", "tick": 178 @@ -28856,8 +29197,9 @@ "facing_y": -481, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -28916,6 +29258,7 @@ "facing_y": 481, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -28980,7 +29323,7 @@ "tick": 178 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 178 }, @@ -28989,7 +29332,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "15883eb8723dfe87b4c250509ad01adb57852b7bf5bcf36ca5f5d742326d521f", + "checksum": "b36c8a0d619cbc8cbf1fac3d5a54e97931bfe2e6afea30b10e76b689d2c355c0", "events": [], "fighters": [ { @@ -29016,8 +29359,9 @@ "facing_y": -481, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -29076,6 +29420,7 @@ "facing_y": 481, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -29140,7 +29485,7 @@ "tick": 179 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 179 }, @@ -29149,7 +29494,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "83f93bd089b08bd07cfdb48695ce50f68c1ef98470cded22ef7df95db292b7be", + "checksum": "e5fa8afd63b444d94dabe07c804a10d6c9975fbc3f4c5c9ba7f6e16d504651fb", "events": [], "fighters": [ { @@ -29176,8 +29521,9 @@ "facing_y": -481, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -29236,6 +29582,7 @@ "facing_y": 481, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -29300,7 +29647,7 @@ "tick": 180 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 180 }, @@ -29309,7 +29656,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "77ff6b7f719a94704660be57469c37b4cf4f3ac0ab3e53aa9cddc5a222fcb9b8", + "checksum": "6b64a981a48827b7f9bb3a499a91ba8a652b4dd9c7d8db690b8d6e025345a0ac", "events": [], "fighters": [ { @@ -29336,8 +29683,9 @@ "facing_y": -481, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -29396,6 +29744,7 @@ "facing_y": 481, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -29460,7 +29809,7 @@ "tick": 181 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 181 }, @@ -29469,7 +29818,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e830bead7662288572f7b76abb3d99ec9eb1d181c399951c1a2cf3ac39282d27", + "checksum": "e739cd648a7b782a4c489b3aa27f2f676fef47d4d05e88be6f904c8d5a7e45f8", "events": [], "fighters": [ { @@ -29496,8 +29845,9 @@ "facing_y": -481, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -29556,6 +29906,7 @@ "facing_y": 481, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -29620,7 +29971,7 @@ "tick": 182 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 182 }, @@ -29629,7 +29980,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "3ca097d69882f00db4bf3a9745b3d5c03a7ded16b46db08d8317ac40f1ab39a1", + "checksum": "a555cbca1ee5e1d4ee88063d5792db0afe0ecb8c698bcc47f82d7aa4c8f21746", "events": [], "fighters": [ { @@ -29656,8 +30007,9 @@ "facing_y": -481, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -29716,6 +30068,7 @@ "facing_y": 481, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -29780,7 +30133,7 @@ "tick": 183 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 183 }, @@ -29789,7 +30142,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "a21446f06f41b991b5d216386c5a51d83ccc85b8fed24cd7fe74ee3930098f92", + "checksum": "f36edf7e63f23254182c2384611470c2858d46485ec33ad0dae89ac216ade190", "events": [], "fighters": [ { @@ -29816,8 +30169,9 @@ "facing_y": -481, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -29876,6 +30230,7 @@ "facing_y": 481, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -29940,7 +30295,7 @@ "tick": 184 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 184 }, @@ -29949,7 +30304,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "5b404798c8b7d8930ef07dda1f401abbcbbbaac54ff7e1c41e9ae0352e47c409", + "checksum": "c193dc3766b2519349c31c591ce40a6750450a371465d84ed315e2443add10de", "events": [], "fighters": [ { @@ -29976,8 +30331,9 @@ "facing_y": -481, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -30036,6 +30392,7 @@ "facing_y": 481, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -30100,7 +30457,7 @@ "tick": 185 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 185 }, @@ -30109,7 +30466,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "404078205f25b6e6bb8bfbda3b4642901bf16c3a4e2ca6f664758214d1f2ec42", + "checksum": "99f7480c7316e01cc8e7c0b21e80f741016b51d7ccba685abdec04fd7a6fcbf9", "events": [], "fighters": [ { @@ -30136,8 +30493,9 @@ "facing_y": -481, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -30196,6 +30554,7 @@ "facing_y": 481, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -30260,7 +30619,7 @@ "tick": 186 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 186 }, @@ -30269,7 +30628,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "83ff6b3e58748d89652a1974b5c5a547bd8c3184c3ddba6c3e72e658bdc9395e", + "checksum": "3cab33f02d987ad3b2dad0a7a6ffd004e7194ab316969823fa0e4b54cb3337cb", "events": [], "fighters": [ { @@ -30296,8 +30655,9 @@ "facing_y": -481, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -30356,6 +30716,7 @@ "facing_y": 481, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -30420,7 +30781,7 @@ "tick": 187 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 187 }, @@ -30429,7 +30790,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "1159ab53bab8f55bbf55172fad24dbd2c714df1935215cc55582399a299538a5", + "checksum": "b2351a53d6be62251820bb355b2730abae95bc3acaebfc33fda5476bbe3557d5", "events": [], "fighters": [ { @@ -30456,8 +30817,9 @@ "facing_y": -481, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -30516,6 +30878,7 @@ "facing_y": 481, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -30580,7 +30943,7 @@ "tick": 188 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 188 }, @@ -30589,7 +30952,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "775e520a1ebe02d2a8030268d2123660c650fe2324c6d4a65d66830cecc89b4a", + "checksum": "e469f7fa09fc8d40b38196c865c67531ec45dc00dad03dcff99af5d2c4c9c7f8", "events": [], "fighters": [ { @@ -30616,8 +30979,9 @@ "facing_y": -481, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -30676,6 +31040,7 @@ "facing_y": 481, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -30740,7 +31105,7 @@ "tick": 189 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 189 }, @@ -30749,7 +31114,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "eb43f10c49655930e2a8cdc38fd373d095da0451b7fab0b5c6b412c4dda09984", + "checksum": "84444f7eb9b05a8ec0d6760372ac5fefce5adf3e50938d837dcef9b3692a38c5", "events": [], "fighters": [ { @@ -30776,8 +31141,9 @@ "facing_y": -481, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -30836,6 +31202,7 @@ "facing_y": 481, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -30900,7 +31267,7 @@ "tick": 190 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 190 }, @@ -30909,7 +31276,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "d4e6c34ee47bc11b1917032fc5d3aa663eddc635f2589896b093bf7c4e68c746", + "checksum": "0ad74487e9b83f5429809a71912123d27d7bac6c4b69cd5c9e9010b6d6536f17", "events": [], "fighters": [ { @@ -30936,8 +31303,9 @@ "facing_y": -481, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -30996,6 +31364,7 @@ "facing_y": 481, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -31060,7 +31429,7 @@ "tick": 191 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 191 }, @@ -31069,7 +31438,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "2273f91c6723655883d9ede0c88fabef31379c388aec93467d56a27d59610c1c", + "checksum": "efddb54f05ab3bb1e3067644090369b731e3bf5503f4fbc5ae15dc2fc700cd35", "events": [], "fighters": [ { @@ -31096,8 +31465,9 @@ "facing_y": -481, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -31156,6 +31526,7 @@ "facing_y": 481, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -31220,7 +31591,7 @@ "tick": 192 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 192 }, @@ -31229,7 +31600,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "0676550005d9eca535b826d847b863e0c240329fd2127a09c84868219aab30fa", + "checksum": "03d4533ea66e2b4ffe7cb12708e215ebafef8b56c2a21c7c709e6f496917a2b0", "events": [], "fighters": [ { @@ -31256,8 +31627,9 @@ "facing_y": -481, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -31316,6 +31688,7 @@ "facing_y": 481, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -31380,7 +31753,7 @@ "tick": 193 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 193 }, @@ -31389,7 +31762,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "306720ee34d965699c21934c05782d75d9f53bdfe1b2b4285ada36f13c441469", + "checksum": "154851db71bdb55802b0d20b8a4cb0eb62569c945501785426f627e51c22f2be", "events": [], "fighters": [ { @@ -31416,8 +31789,9 @@ "facing_y": -481, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -31476,6 +31850,7 @@ "facing_y": 481, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -31540,7 +31915,7 @@ "tick": 194 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 194 }, @@ -31549,7 +31924,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "1f56664e610eddc9dc4ead96a77fbbde912e517dcbfdaddb9f603d6b7256da69", + "checksum": "8767a84fd00182d73053d853d3d6a6e486f79746355919c78a9cdc2b1841b6fa", "events": [], "fighters": [ { @@ -31576,8 +31951,9 @@ "facing_y": -481, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -31636,6 +32012,7 @@ "facing_y": 481, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -31700,7 +32077,7 @@ "tick": 195 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 195 }, @@ -31709,7 +32086,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "b49ab241106a3c5a49b1bdbed09f1015a07757b32f08163ed1d9185b98812389", + "checksum": "68bf435d4fd9e43ed40c28a150768c21f08c824f448b83eb7c92cd0cc4bcd286", "events": [], "fighters": [ { @@ -31736,8 +32113,9 @@ "facing_y": -481, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -31796,6 +32174,7 @@ "facing_y": 481, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -31860,7 +32239,7 @@ "tick": 196 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 196 }, @@ -31869,7 +32248,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "2b836650240ffa25b0c8af3c75603b681c4a901bef8c60a75e28191b0978c7dd", + "checksum": "9ec761fdfd3842a0bc0c780120b7a86ff9fc890a27dc00cd885d43ed4cbd318d", "events": [], "fighters": [ { @@ -31896,8 +32275,9 @@ "facing_y": -481, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -31956,6 +32336,7 @@ "facing_y": 481, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -32020,7 +32401,7 @@ "tick": 197 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 197 }, @@ -32029,7 +32410,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "8f3c27b66504bd92ee04f9e666ce949347992a0ef4882dceaa872fc0b8465a8f", + "checksum": "3a497afe328800816b3999f32f530a90b4fc8d8340add0a3fd5ce847bfeb6935", "events": [ { "action_id": null, @@ -32038,7 +32419,7 @@ "blood": 0, "detail": "", "direction": 0, - "event_id": 18, + "event_id": 16, "kind": "count", "target_id": "two", "tick": 198 @@ -32069,8 +32450,9 @@ "facing_y": -481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -32129,6 +32511,7 @@ "facing_y": 481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -32193,7 +32576,7 @@ "tick": 198 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 198 }, @@ -32202,7 +32585,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "ce7bcb7d04f63d33d060459abda4ff32d67da77b8986dac65b2e069be73a90e5", + "checksum": "0c4456ef68da60151ff016c0b7c0080a58fee9d91a9ed92b93ec663d32d877d5", "events": [], "fighters": [ { @@ -32229,8 +32612,9 @@ "facing_y": -481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -32289,6 +32673,7 @@ "facing_y": 481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -32353,7 +32738,7 @@ "tick": 199 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 199 }, @@ -32362,7 +32747,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "42166fab810f32c7b7bc921b9f857135ca90f4b828910d7c4a62ec163dba0c8d", + "checksum": "274e337a937e89623d33551d73cfc9f6cff4cc3a698e4a3fbe7e6d14fc917b9b", "events": [], "fighters": [ { @@ -32389,8 +32774,9 @@ "facing_y": -481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -32449,6 +32835,7 @@ "facing_y": 481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -32513,7 +32900,7 @@ "tick": 200 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 200 }, @@ -32522,7 +32909,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "9735dba40ec679b3591d7c0a2525b93ceca904d73139af032c1dce4c1d07ac0a", + "checksum": "0d1f8d5a66fba5ec15e11a0f2e2822d49720c768bb081ca94edd45fec8f1c188", "events": [], "fighters": [ { @@ -32549,8 +32936,9 @@ "facing_y": -481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -32609,6 +32997,7 @@ "facing_y": 481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -32673,7 +33062,7 @@ "tick": 201 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 201 }, @@ -32682,7 +33071,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "271f8e117845cf832e2487e661c2e9f45a873559d0c01d90cf28e090d0837c51", + "checksum": "25532b05a572a563923646be248fecf16098c9bc98477832509631c20983778a", "events": [], "fighters": [ { @@ -32709,8 +33098,9 @@ "facing_y": -481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -32769,6 +33159,7 @@ "facing_y": 481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -32833,7 +33224,7 @@ "tick": 202 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 202 }, @@ -32842,7 +33233,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e34d266f8ce0e2b25dc79877902508d194808765f05379b4fb4b7dc83bb488a3", + "checksum": "61bd46500333d088198ad1848d5664166ebaf9c93f2d8ede6fa2dad9b1786d50", "events": [], "fighters": [ { @@ -32869,8 +33260,9 @@ "facing_y": -481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -32929,6 +33321,7 @@ "facing_y": 481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -32993,7 +33386,7 @@ "tick": 203 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 203 }, @@ -33002,7 +33395,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "da6e809d1e28aae8a3e65fece479db73662689e63c4e7e41e75ea810a7baf217", + "checksum": "a2d045f7c4ad3b1ae478df9de88e959f6333d00c28b841ca4575328d83a8bbd1", "events": [], "fighters": [ { @@ -33029,8 +33422,9 @@ "facing_y": -481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -33089,6 +33483,7 @@ "facing_y": 481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -33153,7 +33548,7 @@ "tick": 204 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 204 }, @@ -33162,7 +33557,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "2bcc5fbd64c6ca189f186e84be2ba89d5c4aa2aebe8737acac6c7669d9d5e92e", + "checksum": "d4a0056ccf1920121fdbe552b1050c53eda5a7d03bd07d4ea75d385e66fe689d", "events": [], "fighters": [ { @@ -33189,8 +33584,9 @@ "facing_y": -481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -33249,6 +33645,7 @@ "facing_y": 481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -33313,7 +33710,7 @@ "tick": 205 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 205 }, @@ -33322,7 +33719,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "25e2ddcbf69eedd64dae71eef214483c7ef29e3af3aab9c81961e988c96906fc", + "checksum": "4d5a7f90ba38db934cb499c669e090561ce53f410bad4b60c2c8b9f6498517e0", "events": [], "fighters": [ { @@ -33349,8 +33746,9 @@ "facing_y": -481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -33409,6 +33807,7 @@ "facing_y": 481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -33473,7 +33872,7 @@ "tick": 206 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 206 }, @@ -33482,7 +33881,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "33364d3b21ff29ad83a04a9aa20ec25f4e02177cae704fafbb3db1248fa58efc", + "checksum": "48376bbbc127e6d0b6b565035dbd7e556e23e385c49ba42893aaa1aa37a6185f", "events": [], "fighters": [ { @@ -33509,8 +33908,9 @@ "facing_y": -481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -33569,6 +33969,7 @@ "facing_y": 481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -33633,7 +34034,7 @@ "tick": 207 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 207 }, @@ -33642,7 +34043,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "31baa22993b0331737b2e1777bfb2e6e3210e67cf43be8cac641c03cb40b482e", + "checksum": "ff815bf23eb3030be5eb00e67e8b2487eed8ee40bad0d8fff327ef9baa7fc838", "events": [], "fighters": [ { @@ -33669,8 +34070,9 @@ "facing_y": -481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -33729,6 +34131,7 @@ "facing_y": 481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -33793,7 +34196,7 @@ "tick": 208 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 208 }, @@ -33802,7 +34205,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "639c4664b4a9f8d5271134e9f7c8bcad2ac9048fe6be3500b979a26ae351a55b", + "checksum": "cc1fe3bd98a89622e76096a98a9ac8b74bc8380ab842a1aee4a5b13581d52d67", "events": [], "fighters": [ { @@ -33829,8 +34232,9 @@ "facing_y": -481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -33889,6 +34293,7 @@ "facing_y": 481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -33953,7 +34358,7 @@ "tick": 209 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 209 }, @@ -33962,7 +34367,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "0c260fd77e7489be79375d9cb1b407c44737fa2a9ebafcb92b03a83d5af4c88c", + "checksum": "a6871b70cd6ddb9f3bcffd9d01610237ff7a333db1e849b88047334a4c0c2a9e", "events": [], "fighters": [ { @@ -33989,8 +34394,9 @@ "facing_y": -481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -34049,6 +34455,7 @@ "facing_y": 481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -34113,7 +34520,7 @@ "tick": 210 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 210 }, @@ -34122,7 +34529,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "efdbce990792d8cb11e8a52d1848281bb00c135619a73f41b5437fdd9e2ea4f7", + "checksum": "12b9a99534db58d736b355460e6aff3f00b1a8e6f5e15dca799b3fece7250ee1", "events": [], "fighters": [ { @@ -34149,8 +34556,9 @@ "facing_y": -481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -34209,6 +34617,7 @@ "facing_y": 481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -34273,7 +34682,7 @@ "tick": 211 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 211 }, @@ -34282,7 +34691,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "cfc744d04296f1640bba2d87ceaf95ad193c9966321600829ee0a6d6557f5df3", + "checksum": "5fc962ae19bb688e9dac559bd4f3a2bfd39df9504c595ef0e340c05521035ca1", "events": [], "fighters": [ { @@ -34309,8 +34718,9 @@ "facing_y": -481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -34369,6 +34779,7 @@ "facing_y": 481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -34433,7 +34844,7 @@ "tick": 212 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 212 }, @@ -34442,7 +34853,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e90c2d0eae6e45f0644581fe89ad98fd896dd1d5df008e77d2eb2888247b932b", + "checksum": "35cd0477565c019af5f405f8f13580931a7ceefa5caa9eeabd18709beacaf0e5", "events": [], "fighters": [ { @@ -34469,8 +34880,9 @@ "facing_y": -481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -34529,6 +34941,7 @@ "facing_y": 481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -34593,7 +35006,7 @@ "tick": 213 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 213 }, @@ -34602,7 +35015,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e05bb6cac05fb5978fc3c0b32d2d586e00469205052f3b31f1b85152841ab2c3", + "checksum": "e45f56a494832b2ca48e39d7df956236042ef2f7b682ab044443e38acd5527c3", "events": [], "fighters": [ { @@ -34629,8 +35042,9 @@ "facing_y": -481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -34689,6 +35103,7 @@ "facing_y": 481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -34753,7 +35168,7 @@ "tick": 214 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 214 }, @@ -34762,7 +35177,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "3b612e5668528509a4e8866a47425e53ddb27b0a061cb4feb07e3cd0c123981b", + "checksum": "f52c4231100d42846f35dafe498495b8ad03dbdb8de2f3d7192939a94f1ba7c8", "events": [], "fighters": [ { @@ -34789,8 +35204,9 @@ "facing_y": -481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -34849,6 +35265,7 @@ "facing_y": 481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -34913,7 +35330,7 @@ "tick": 215 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 215 }, @@ -34922,7 +35339,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e0e53954fa7d604864089d7ab8410d07651e5bf8424532e14f148987b4d2b034", + "checksum": "52dd629af1acfe31e4e92b9c66aa8aaa3940af3871b9366b986e0d1ba8a4ac30", "events": [], "fighters": [ { @@ -34949,8 +35366,9 @@ "facing_y": -481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -35009,6 +35427,7 @@ "facing_y": 481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -35073,7 +35492,7 @@ "tick": 216 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 216 }, @@ -35082,7 +35501,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "9b2c59ad4aefe6a3606b32f395185e27eb5e108d23d491aaecf2c5baff75e4f2", + "checksum": "f19076195fbedc2c28c1944eb4c9b39ce10bed056c4c5c50a352f5f45708a884", "events": [], "fighters": [ { @@ -35109,8 +35528,9 @@ "facing_y": -481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -35169,6 +35589,7 @@ "facing_y": 481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -35233,7 +35654,7 @@ "tick": 217 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 217 }, @@ -35242,7 +35663,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "5bda0c7f05f9fee1e993b09ad45ecb90997824cf29e51f90a760bc086b56e1a6", + "checksum": "6b7c7731fbed902f83e09ecc007832845c959f40e676c35bc109b98684c8c3d9", "events": [ { "action_id": null, @@ -35251,7 +35672,7 @@ "blood": 0, "detail": "", "direction": 0, - "event_id": 19, + "event_id": 17, "kind": "box", "target_id": "two", "tick": 218 @@ -35282,8 +35703,9 @@ "facing_y": -481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -35342,6 +35764,7 @@ "facing_y": 481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -35406,7 +35829,7 @@ "tick": 218 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 218 }, @@ -35415,7 +35838,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "8a4619a529c97616c1e07b0c0e563bbf1dff290d9140d64bf40e08c7bc7b5e06", + "checksum": "0e44aca6212c65d1f978915693cf1e205e744f24d7eb2586ab426c0cef239d0b", "events": [], "fighters": [ { @@ -35442,8 +35865,9 @@ "facing_y": -481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -35502,6 +35926,7 @@ "facing_y": 481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -35566,7 +35991,7 @@ "tick": 219 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 219 }, @@ -35575,7 +36000,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "6714e6acc12dcb9183a566aa223d58027656286c7a5291c3d50e36b472d7e5d7", + "checksum": "c2d5d92c231adaf9be2b80021888318ba9fbf509a35458e20cf6e65f7fec9714", "events": [], "fighters": [ { @@ -35602,8 +36027,9 @@ "facing_y": -481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -35662,6 +36088,7 @@ "facing_y": 481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -35726,7 +36153,7 @@ "tick": 220 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 220 }, @@ -35735,7 +36162,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "1cc5486e7986f4a1ab59915fbecbbbc44493e925322f75072d147e0570109ab8", + "checksum": "9a6378bd35bd99912edf70eef0941028f1650613503e6ba0e3a96293426fb8ed", "events": [], "fighters": [ { @@ -35762,8 +36189,9 @@ "facing_y": -480, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -35822,6 +36250,7 @@ "facing_y": 481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -35886,7 +36315,7 @@ "tick": 221 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 221 }, @@ -35895,7 +36324,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "82ad7d434d62302465fda0ff0ccbb2cdc7f590199257acce7a86d27f4de37bad", + "checksum": "faa442c865b75ccdd559f82eccfcad9be7af53109c0cf7f906047b027df08a21", "events": [], "fighters": [ { @@ -35922,8 +36351,9 @@ "facing_y": -481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -35982,6 +36412,7 @@ "facing_y": 481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -36046,7 +36477,7 @@ "tick": 222 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 222 }, @@ -36055,7 +36486,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "6bb25a531a1ab9e16360375519975fd7bbbe214a6c03deca706700788693c8d6", + "checksum": "c135a5d21dfe37b910ec34b5fd1eec13b66c6b3574f38beb56eb359437688d84", "events": [], "fighters": [ { @@ -36082,8 +36513,9 @@ "facing_y": -482, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -36142,6 +36574,7 @@ "facing_y": 482, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -36206,7 +36639,7 @@ "tick": 223 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 223 }, @@ -36215,7 +36648,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "a5fff23e3e824bcb89fb7d35cc812044c42eb8f70a16b5b4cc0fb906a67cfa69", + "checksum": "dc1e9fce092d470c5c27a58a79f3757533708359d7edbd894fac2ff5107c4fd1", "events": [], "fighters": [ { @@ -36242,8 +36675,9 @@ "facing_y": -481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -36302,6 +36736,7 @@ "facing_y": 481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -36366,7 +36801,7 @@ "tick": 224 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 224 }, @@ -36375,7 +36810,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "f4d743a9e0e90ce2b2347a2ec51b3843c8a4989d103adef9b3502eb2dc59f731", + "checksum": "25679c5db293ecfd1c4c265a7361ee43568477467959fb51010dbf3c5be2fae3", "events": [], "fighters": [ { @@ -36402,8 +36837,9 @@ "facing_y": -481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -36462,6 +36898,7 @@ "facing_y": 481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -36526,7 +36963,7 @@ "tick": 225 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 225 }, @@ -36535,7 +36972,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "6a6b92e42e4f4447d81746ed67555cea54c7b1d11b6b5f02b932f15586b77be4", + "checksum": "9ff3a78adf9b0c034295ade7426a3c94eabc87fb4e312e16b32f3ba612e185f8", "events": [], "fighters": [ { @@ -36562,8 +36999,9 @@ "facing_y": -481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -36622,6 +37060,7 @@ "facing_y": 481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -36686,7 +37125,7 @@ "tick": 226 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 226 }, @@ -36695,7 +37134,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "0779d218b8caafdea70beaa397a39ce5859532747955e45f4cb6eea1a1dfaacf", + "checksum": "2ed63568d901292bfd45a43c08933c0980ee73ba8582857884ca3cba661bdccd", "events": [], "fighters": [ { @@ -36722,8 +37161,9 @@ "facing_y": -482, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -36782,6 +37222,7 @@ "facing_y": 482, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -36846,7 +37287,7 @@ "tick": 227 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 227 }, @@ -36855,7 +37296,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "f9635319c8e20e826d809091ff681e0af2caa3b63017ab08be7591ebfe651c46", + "checksum": "fc728e3dffaee5000da2763a037b8197b51099ffe63523c07ce3efacd7027625", "events": [], "fighters": [ { @@ -36882,8 +37323,9 @@ "facing_y": -482, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -36942,6 +37384,7 @@ "facing_y": 482, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -37006,7 +37449,7 @@ "tick": 228 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 228 }, @@ -37015,7 +37458,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "6cc8dea249316d7ac591b57082bd8ccef4eb404ffdf0647cbe2380860fe3bb9b", + "checksum": "e864dc5c77bbc4cbfb7fdada6fe0e1854a3ca8d4a44250f9d972e44d6b79592d", "events": [], "fighters": [ { @@ -37042,8 +37485,9 @@ "facing_y": -481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -37102,6 +37546,7 @@ "facing_y": 481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -37166,7 +37611,7 @@ "tick": 229 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 229 }, @@ -37175,7 +37620,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "39725315687a024425e102f40c03019c3cdc96e005efd04acddd020b0e3d4093", + "checksum": "13bd3986e230665e18fbd105fbb1d1dbdf19efdfef994b287553dddc06744220", "events": [], "fighters": [ { @@ -37202,8 +37647,9 @@ "facing_y": -481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -37262,6 +37708,7 @@ "facing_y": 481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -37326,7 +37773,7 @@ "tick": 230 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 230 }, @@ -37335,7 +37782,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "682e2d4ccf922123dc11f3778d319170a64f2443e7fcb56834681c73525983c6", + "checksum": "4d99785185bd7587b20f5142892a32ee56d05ce32d09cd627470f937f79cb19e", "events": [], "fighters": [ { @@ -37362,8 +37809,9 @@ "facing_y": -481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -37422,6 +37870,7 @@ "facing_y": 480, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -37486,7 +37935,7 @@ "tick": 231 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 231 }, @@ -37495,7 +37944,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "1d7d70267c71431d0578f86807b360a3c049b1317285bfbdf49b535be7b7a0e6", + "checksum": "870bf359c9e92ddf736a0567b6b7e6fb9a2005110f4d6e024624e13f6421ee0c", "events": [], "fighters": [ { @@ -37522,8 +37971,9 @@ "facing_y": -480, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -37582,6 +38032,7 @@ "facing_y": 482, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -37646,7 +38097,7 @@ "tick": 232 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 232 }, @@ -37655,7 +38106,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "9e4f67f1ce6feb47b126147b6ebf02e2224e05250f8588e5b45eacdeae73019e", + "checksum": "b5696eb5db959c538ebf908ba2955d3a402dd98132d20413bcc2d225aee67589", "events": [], "fighters": [ { @@ -37682,8 +38133,9 @@ "facing_y": -482, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -37742,6 +38194,7 @@ "facing_y": 481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -37806,7 +38259,7 @@ "tick": 233 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 233 }, @@ -37815,7 +38268,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "8a56643f1f5499ec03dae54c1bfb9e607029a0cce2d3bbc9031d5672e8f4902c", + "checksum": "4f81819d4f24cebbb087d6c223d1f172cebb70f7cddf9c5a390cb7943637f71a", "events": [], "fighters": [ { @@ -37842,8 +38295,9 @@ "facing_y": -481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -37902,6 +38356,7 @@ "facing_y": 482, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -37966,7 +38421,7 @@ "tick": 234 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 234 }, @@ -37975,7 +38430,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "70843d3057e02a3468aef287f27aa58bc2bb2158dcb1ab03b91593222d876804", + "checksum": "bc157f559adf61ca341f999480601ab46e893630d799773ed55f2cc48211e28b", "events": [], "fighters": [ { @@ -38002,8 +38457,9 @@ "facing_y": -482, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -38062,6 +38518,7 @@ "facing_y": 482, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -38126,7 +38583,7 @@ "tick": 235 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 235 }, @@ -38135,7 +38592,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "4859ff339ef0f6d69b6ab18653a2f5b540122dae1d192d27502d0edffbc10e83", + "checksum": "3a7164a29590526392bf4795c4f1a2c2a9634da3f914a4815bce94fe138115dd", "events": [], "fighters": [ { @@ -38162,8 +38619,9 @@ "facing_y": -481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -38222,6 +38680,7 @@ "facing_y": 481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -38286,7 +38745,7 @@ "tick": 236 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 236 }, @@ -38295,7 +38754,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "519e316a6bdb775cf8aa3f6bda51aa0d343d4b4354a88813b912a6846de03539", + "checksum": "8cae91dc5c9bfa12d491e0441ce72eaf9d5517b551aae9dee77dfd25442f69e2", "events": [], "fighters": [ { @@ -38322,8 +38781,9 @@ "facing_y": -480, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -38382,6 +38842,7 @@ "facing_y": 482, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -38446,7 +38907,7 @@ "tick": 237 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 237 }, @@ -38455,7 +38916,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "f729389a7efd60aedb27cb9ecaeaba569331821c352a90fad66166c1dec29d29", + "checksum": "1b32ed6d3d38e5b0fcd240fb258a29c1d937a9a9a4b75528d2e9d7c6f7c8ca5f", "events": [], "fighters": [ { @@ -38482,8 +38943,9 @@ "facing_y": -483, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -38542,6 +39004,7 @@ "facing_y": 482, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -38606,7 +39069,7 @@ "tick": 238 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 238 }, @@ -38615,7 +39078,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "56e57e223309652bb4696e2d485cf9c812a5e4b6ae049fd8a127444b3929003a", + "checksum": "fa76e003ad2c07681466e083a88206b15c1c3741197a5c6b8461c2b0fb9c5454", "events": [], "fighters": [ { @@ -38642,8 +39105,9 @@ "facing_y": -481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -38702,6 +39166,7 @@ "facing_y": 483, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -38766,7 +39231,7 @@ "tick": 239 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 239 }, @@ -38775,7 +39240,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "1530966627ec2a0a4f7bcce5f9015e3ab07aabb6b257b618ddb2d05d17b4628a", + "checksum": "d5f1574c03da44e9e9f773b32654111020cf43a5248c7a94da96e0507c6d1ade", "events": [], "fighters": [ { @@ -38802,8 +39267,9 @@ "facing_y": -483, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -38862,6 +39328,7 @@ "facing_y": 482, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -38926,7 +39393,7 @@ "tick": 240 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 240 }, @@ -38935,7 +39402,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "1140fc4e24f0d7c1b64bdcc5ec114dd0f2c387a32b20b5f3c5c24593b2cc6a30", + "checksum": "a66c3ee1f1fb3e9f549fa2c8fbc21d8dcb4a0402281d6f10da9e026a98f47aaf", "events": [], "fighters": [ { @@ -38962,8 +39429,9 @@ "facing_y": -480, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -39022,6 +39490,7 @@ "facing_y": 481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -39086,7 +39555,7 @@ "tick": 241 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 241 }, @@ -39095,7 +39564,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "2ab1150d48c634bc8ff679e4f1ec426556aa3c633ba55c5306821be78852a80f", + "checksum": "7cf14bdb1c5c89a80e637e92f53082fc6e8743089419e3d7a8e72dd4b3e5fcbe", "events": [], "fighters": [ { @@ -39122,8 +39591,9 @@ "facing_y": -479, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -39182,6 +39652,7 @@ "facing_y": 482, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -39246,7 +39717,7 @@ "tick": 242 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 242 }, @@ -39255,7 +39726,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "a5598b54fd10f07c964aa5b3273a3179aa841653c1cbe9e744b3a620ef6bca12", + "checksum": "8300d3baead599300733ea0d8bd13ba60007a3ad593bb06b273927d5ab79dfc2", "events": [], "fighters": [ { @@ -39282,8 +39753,9 @@ "facing_y": -484, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -39342,6 +39814,7 @@ "facing_y": 482, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -39406,7 +39879,7 @@ "tick": 243 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 243 }, @@ -39415,7 +39888,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "c4286313bac2060b9b48591da792b1455ab7eba7245dfa760b220b9c59770054", + "checksum": "a3593ec2e664e20c40b7593847e17561eecb22568403b9008e74cd1aaeec0000", "events": [], "fighters": [ { @@ -39442,8 +39915,9 @@ "facing_y": -482, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -39502,6 +39976,7 @@ "facing_y": 483, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -39566,7 +40041,7 @@ "tick": 244 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 244 }, @@ -39575,7 +40050,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "aef763dad9daf5e29e8e143ced9e6d71d7fbc658865cb936862f0bc7a1ebb848", + "checksum": "add813f07a0401e4c9e4b49370d2fb527e32cc07794e4435332992469d56bbf4", "events": [], "fighters": [ { @@ -39602,8 +40077,9 @@ "facing_y": -480, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -39662,6 +40138,7 @@ "facing_y": 482, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -39726,7 +40203,7 @@ "tick": 245 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 245 }, @@ -39735,7 +40212,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "47f49bcbd3d09b8123e7bb724794abf588bc821648b1d42ff593fdabb9f05e48", + "checksum": "92c162f8cfdde2ff070ba4cab5b78344c4f31c445b0634f986e60b083c716e40", "events": [], "fighters": [ { @@ -39762,8 +40239,9 @@ "facing_y": -481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -39822,6 +40300,7 @@ "facing_y": 481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -39886,7 +40365,7 @@ "tick": 246 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 246 }, @@ -39895,7 +40374,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "b34e1792a17abf7b335cb542a268e964f77b249f4e822d2f69da778c27d832e8", + "checksum": "0cddd628fa3966561cef1265edca632766a68fca33c8e0f4eca7a1cc6758813c", "events": [], "fighters": [ { @@ -39922,8 +40401,9 @@ "facing_y": -481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -39982,6 +40462,7 @@ "facing_y": 483, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -40046,7 +40527,7 @@ "tick": 247 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 247 }, @@ -40055,7 +40536,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "17075478153aaa25dff7ad6a785e253cf848c11841676a27d4ead3b4865b5fc2", + "checksum": "e9b82f74fdc79a62babc463af7b4c9b98da94be2f1bdb4acf0f64195b726c2f1", "events": [], "fighters": [ { @@ -40082,8 +40563,9 @@ "facing_y": -486, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -40142,6 +40624,7 @@ "facing_y": 483, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -40206,7 +40689,7 @@ "tick": 248 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 248 }, @@ -40215,7 +40698,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "f5ba18c4d0afbd42bf148611a2523130a6bd3e54d24bf30e2c1dc906a107e5cb", + "checksum": "33e138822f3dedcb15393f419b893b045666f2685937cab23b03ec7df2314747", "events": [], "fighters": [ { @@ -40242,8 +40725,9 @@ "facing_y": -481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -40302,6 +40786,7 @@ "facing_y": 483, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -40366,7 +40851,7 @@ "tick": 249 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 249 }, @@ -40375,7 +40860,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "5260d321a89a65ac5027035e3fb7adb17497db2ea26d6772e266469d5812c71d", + "checksum": "e6a8e2f02b31c84f1e3b4528ddabecc7a375979e617f04601d159d6eac1e62fa", "events": [], "fighters": [ { @@ -40402,8 +40887,9 @@ "facing_y": -481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -40462,6 +40948,7 @@ "facing_y": 483, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -40526,7 +41013,7 @@ "tick": 250 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 250 }, @@ -40535,7 +41022,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "b67fb15ce7ce75260b7d66b91e86beb5ff4eab8250bf5a4368a2828da1cc876c", + "checksum": "af7aff35e2d17537a2c68315dcce794ae1eb9791361772aabd4a1c5ec18bd172", "events": [], "fighters": [ { @@ -40562,8 +41049,9 @@ "facing_y": -482, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -40622,6 +41110,7 @@ "facing_y": 481, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -40686,7 +41175,7 @@ "tick": 251 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 251 }, @@ -40695,7 +41184,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "630d9fb5f0a6f4d8865d54e4e14995c44cde27a3be8dd5c2aa0c70cda693c673", + "checksum": "131bc135b3e52553272a16b6878ae9c348719af5cb2d2d2abdf08b891b53fa78", "events": [], "fighters": [ { @@ -40722,8 +41211,9 @@ "facing_y": -483, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -40782,6 +41272,7 @@ "facing_y": 477, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -40846,7 +41337,7 @@ "tick": 252 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 252 }, @@ -40855,7 +41346,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "a7f0109cd0f71a013c26858701462dfd392bd2a11aa7bfd29cf886ff2720abc2", + "checksum": "52ac5436065d8d10e01fef2cb48324bc1a4c40625b992e736f0020134af36d6e", "events": [], "fighters": [ { @@ -40882,8 +41373,9 @@ "facing_y": -477, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -40942,6 +41434,7 @@ "facing_y": 477, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -41006,7 +41499,7 @@ "tick": 253 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 253 }, @@ -41015,7 +41508,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "9f6f8ac631ed0c8505aeec841276f5fe45a599443c81c2fcc05407a22d99cfb4", + "checksum": "bb225c5ea0de692af2b33ced1b3e018910cbb5b0c874265f90c87f6b6c87c4b7", "events": [], "fighters": [ { @@ -41042,8 +41535,9 @@ "facing_y": -524, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -41102,6 +41596,7 @@ "facing_y": 478, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -41166,7 +41661,7 @@ "tick": 254 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 254 }, @@ -41175,7 +41670,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "1f87e2aa75252adbfb2af87f2f46c13feb55dbedc2ee65be71b664f050617ff8", + "checksum": "9c3f0e5a803de0cef8a0b0313f70d47d11a05ac6ccbd8f08443058fc37062785", "events": [], "fighters": [ { @@ -41202,8 +41697,9 @@ "facing_y": -586, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -41262,6 +41758,7 @@ "facing_y": 528, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -41326,7 +41823,7 @@ "tick": 255 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 255 }, @@ -41335,7 +41832,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "6188106d69774509ab32e40b5924de3427cf53cdd7b5e4b9a857cfde5628443b", + "checksum": "0ceb797bb552cb0967ad368ddacab4195caa241aa1cb16990ef2c2569900b78e", "events": [], "fighters": [ { @@ -41362,8 +41859,9 @@ "facing_y": -652, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -41422,6 +41920,7 @@ "facing_y": 580, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -41486,7 +41985,7 @@ "tick": 256 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 256 }, @@ -41495,7 +41994,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "fc188540a9d24885ac571210496596b3e9975366ad5f09b941ff0509f1deb85b", + "checksum": "84609963179314cdf355663ebe8fef64aee76666172683ab000d4c44ad594ba6", "events": [], "fighters": [ { @@ -41522,8 +42021,9 @@ "facing_y": -716, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -41582,6 +42082,7 @@ "facing_y": 631, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -41646,7 +42147,7 @@ "tick": 257 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 257 }, @@ -41655,7 +42156,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "ea5c734f744950b86055b28ae0d70f2245f904bc6a2a31c80724fd7bd29aa7d6", + "checksum": "e3dc17e2a0f12a72e5492e944cde7b8d70627996c01adc609f2abcca9be1c273", "events": [], "fighters": [ { @@ -41682,8 +42183,9 @@ "facing_y": -768, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -41742,6 +42244,7 @@ "facing_y": 679, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -41806,7 +42309,7 @@ "tick": 258 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 258 }, @@ -41815,7 +42318,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "be10086244c65bead7ddce7c3f53ead73d35c55022ba468cb7a88956039a3874", + "checksum": "735d2293d13d2fc4613f135272779e8270b20ed171a3111c76b37b37d7ebb837", "events": [], "fighters": [ { @@ -41842,8 +42345,9 @@ "facing_y": -818, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -41902,6 +42406,7 @@ "facing_y": 725, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -41966,7 +42471,7 @@ "tick": 259 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 259 }, @@ -41975,7 +42480,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "64e8e0841b34e95484c2cbb5051928a513dd76e05d20aff1f9ae15b46030ac03", + "checksum": "a5ffc2c4c29c12410c9fc2f3b041e2324317d8366bb61a482cf64c7a67c9cd87", "events": [], "fighters": [ { @@ -42002,8 +42507,9 @@ "facing_y": -867, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -42062,6 +42568,7 @@ "facing_y": 767, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -42126,7 +42633,7 @@ "tick": 260 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 260 }, @@ -42135,7 +42642,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "374acb03b8d8f7ca6cc8163d6a0cd847abe90f2c40330af2642b659d2d888acf", + "checksum": "c0beb98a4e0aa52f885a8a1c7999529a0804128bbd9fe2be8b3c77df55dfa889", "events": [], "fighters": [ { @@ -42162,8 +42669,9 @@ "facing_y": -901, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -42222,6 +42730,7 @@ "facing_y": 807, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -42286,7 +42795,7 @@ "tick": 261 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 261 }, @@ -42295,7 +42804,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "97462c3f4d5a9039ddec0858b6948a61b228ce76e50e0fcbda2b65aa8618038e", + "checksum": "1f5480a76179fa731216efdd141670a199418fd9eb9c2f192571e36c5d2efeb5", "events": [], "fighters": [ { @@ -42322,8 +42831,9 @@ "facing_y": -934, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -42382,6 +42892,7 @@ "facing_y": 843, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -42446,7 +42957,7 @@ "tick": 262 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 262 }, @@ -42455,7 +42966,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "505d1c7286d69b91910f51adbc5eab8bce6a13d6beaede63735ce3c6f1d79efc", + "checksum": "bf2ab1fdf1d5be1b7cb00de2349eee3013ffc49537512dbc695a2b582794199b", "events": [], "fighters": [ { @@ -42482,8 +42993,9 @@ "facing_y": -958, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -42542,6 +43054,7 @@ "facing_y": 876, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -42606,7 +43119,7 @@ "tick": 263 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 263 }, @@ -42615,7 +43128,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "a14401a5541a76400c41665ef7bb8b91826303914cf924600b4f76fbc261f7f4", + "checksum": "d93f8f3355b2553ed4d2aa2373d612cc703f128c0b7c71dbebc35961032f4212", "events": [], "fighters": [ { @@ -42642,8 +43155,9 @@ "facing_y": -983, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -42702,6 +43216,7 @@ "facing_y": 905, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -42766,7 +43281,7 @@ "tick": 264 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 264 }, @@ -42775,7 +43290,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "6f1bf15ddcebb48e173945976a474f928907bf9bc113eecdcc0fc5fb0f70018e", + "checksum": "1a019749782ba427d86832d46a2e4109815f83e1df611395c9b183a18fe38f4a", "events": [], "fighters": [ { @@ -42802,8 +43317,9 @@ "facing_y": -1000, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -42862,6 +43378,7 @@ "facing_y": 930, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -42926,7 +43443,7 @@ "tick": 265 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 265 }, @@ -42935,7 +43452,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "f44e4e270cddb1f7695b3005ed6df87e43f428b7f076a00a1ec5076e457640d0", + "checksum": "31f5cfaf98a2eba84e9dbca8f6dfd1e8558a1350a79f8e95e4aeb65682372818", "events": [], "fighters": [ { @@ -42962,8 +43479,9 @@ "facing_y": -1000, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -43022,6 +43540,7 @@ "facing_y": 952, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -43086,7 +43605,7 @@ "tick": 266 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 266 }, @@ -43095,7 +43614,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "4f347a88fd3b46e25a3232956df55c786992fd2499c8343db56b0ee3a0c18b32", + "checksum": "7886acdbe13e3490f8ca533fa6c5588b362d8c6e9b3ffd4b9dd3da33e35f9cd3", "events": [], "fighters": [ { @@ -43122,8 +43641,9 @@ "facing_y": -1000, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -43182,6 +43702,7 @@ "facing_y": 969, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -43246,7 +43767,7 @@ "tick": 267 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 267 }, @@ -43255,7 +43776,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "4c5cdfea7fc3bef7d28ce43b99c527666cd6c1956002aa893b08eaeae8a60045", + "checksum": "4d0202064b5f27efb9d4ad476ac216236e0a5b4a262b00694bdd35476445fbfa", "events": [], "fighters": [ { @@ -43282,8 +43803,9 @@ "facing_y": -1000, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -43342,6 +43864,7 @@ "facing_y": 983, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -43406,7 +43929,7 @@ "tick": 268 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 268 }, @@ -43415,7 +43938,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "b3d27546b3b90b563cdb23a59ade19624244f457f2a174da5558ae0af00373b9", + "checksum": "c5167363359568bfa929c6fb76364c47f24f578feb03c0e9a09c26442a1b6b1d", "events": [], "fighters": [ { @@ -43442,8 +43965,9 @@ "facing_y": -983, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -43502,6 +44026,7 @@ "facing_y": 993, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -43566,7 +44091,7 @@ "tick": 269 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 269 }, @@ -43575,7 +44100,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "238a1522aa4a23199b348ceebc80292ee680e63462f73ebb6711aee88341e87b", + "checksum": "2044fd9fca50b29775206dc9c21f1b790d6df92c1398df60266bf51e54d77644", "events": [], "fighters": [ { @@ -43602,8 +44127,9 @@ "facing_y": -966, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -43662,6 +44188,7 @@ "facing_y": 998, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -43726,7 +44253,7 @@ "tick": 270 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 270 }, @@ -43735,7 +44262,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "714f30b06efff2c9bd1e867965b84e2da67dfdad92c4251004e67c7659c4e99c", + "checksum": "4fa4ca73cb99877a18fed1afbcf79c9995fc573e404352c1ccad3e0cba3d68e0", "events": [], "fighters": [ { @@ -43762,8 +44289,9 @@ "facing_y": -942, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -43822,6 +44350,7 @@ "facing_y": 1000, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -43886,7 +44415,7 @@ "tick": 271 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 271 }, @@ -43895,7 +44424,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "c0cae329b530f3bceb2a96c7430921f6928b3aea79392ca6b25f71de0e52215d", + "checksum": "eee125143b724b3b9e6437937842f4ba8ad3174eccccaff9f9e51fbd927f5c8f", "events": [], "fighters": [ { @@ -43922,8 +44451,9 @@ "facing_y": -901, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -43982,6 +44512,7 @@ "facing_y": 997, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -44046,7 +44577,7 @@ "tick": 272 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 272 }, @@ -44055,7 +44586,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "c51c690091fc0aa3347ba45ff1a17c4528fec9ee4791f484a39fb9f5954374f7", + "checksum": "b1609e4391c0d778261afb84a1ebd3d3ff1def46ee897640f251097eec267d60", "events": [], "fighters": [ { @@ -44082,8 +44613,9 @@ "facing_y": -867, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -44142,6 +44674,7 @@ "facing_y": 991, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -44206,7 +44739,7 @@ "tick": 273 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 273 }, @@ -44215,7 +44748,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "40d8bab6b1b02e89727ff29a7e162493b3d029c7b47e3cf634a56b309db0efd5", + "checksum": "24c6697055cf96c60731b8ed1ccc59cf32071b02797a05a49c6b10e7b00f37ae", "events": [], "fighters": [ { @@ -44242,8 +44775,9 @@ "facing_y": -819, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -44302,6 +44836,7 @@ "facing_y": 980, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -44366,7 +44901,7 @@ "tick": 274 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 274 }, @@ -44375,7 +44910,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "d403aa4d6bfab8364662b3182dd06ae753c32e732d3eb3cdc6b867c538aa2a38", + "checksum": "dc87f994a1e93d425ceaa79b6f87370d74c04e1550eba33e102a0322627ef898", "events": [], "fighters": [ { @@ -44402,8 +44937,9 @@ "facing_y": -770, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -44462,6 +44998,7 @@ "facing_y": 965, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -44526,7 +45063,7 @@ "tick": 275 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 275 }, @@ -44535,7 +45072,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "4c03571743eae15b46d75549038dcf3faeb6318d24c30bebf7db31c78ebd7e86", + "checksum": "161c9fd838908f15f7501fc458b1ac46912e3e80095e5a94ad0403dd2f1fbe41", "events": [], "fighters": [ { @@ -44562,8 +45099,9 @@ "facing_y": -719, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -44622,6 +45160,7 @@ "facing_y": 947, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -44686,7 +45225,7 @@ "tick": 276 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 276 }, @@ -44695,7 +45234,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "d0dec80790b900c42911bb3e7ea3c8e73f4fdf8d520abdee69088d65d3d13b34", + "checksum": "5720ad5901799760cbfda053e6d8796502df14dbc4f553bc55033dd5e898b198", "events": [], "fighters": [ { @@ -44722,8 +45261,9 @@ "facing_y": -661, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -44782,6 +45322,7 @@ "facing_y": 924, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -44846,7 +45387,7 @@ "tick": 277 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 277 }, @@ -44855,7 +45396,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "d7865332180317efff6c57ecad57bd0074c87ca113246f11ffa2cc780e71820d", + "checksum": "daa73cda965d61ffdb3fc9b7af7693ae3bbf381b0d014c09066c51b9a894d584", "events": [], "fighters": [ { @@ -44882,8 +45423,9 @@ "facing_y": -595, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -44942,6 +45484,7 @@ "facing_y": 898, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -45006,7 +45549,7 @@ "tick": 278 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 278 }, @@ -45015,7 +45558,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "4ac7367a0300312b38afbecbce1e7f6b3a041e39b4b69eb19efa45f0cc7a7d20", + "checksum": "9c462a9a635a8f4d104c6f877293debbdc43f88b880fa01b3c4b7fcc7e063269", "events": [], "fighters": [ { @@ -45042,8 +45585,9 @@ "facing_y": -524, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -45102,6 +45646,7 @@ "facing_y": 868, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -45166,7 +45711,7 @@ "tick": 279 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 279 }, @@ -45175,7 +45720,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "7f909fc8eae15390f8ac7ee7d7f226d2401963cd2f86d8db7e9a78f49ad55986", + "checksum": "fd901e47f8a8362f5cbd6c2aa46023c4f0331093f0ad044c48e1947e29807b6b", "events": [], "fighters": [ { @@ -45202,8 +45747,9 @@ "facing_y": -450, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -45262,6 +45808,7 @@ "facing_y": 834, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -45326,7 +45873,7 @@ "tick": 280 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 280 }, @@ -45335,7 +45882,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "db8ddf755b69bf8cb52d5430778c27296984e266d22383e2258177fef4f7138f", + "checksum": "7c3d2ae29ab88687c12ccbe1467502502f630f59630cdd7f84dafa332b7e81c0", "events": [], "fighters": [ { @@ -45362,8 +45909,9 @@ "facing_y": -377, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -45422,6 +45970,7 @@ "facing_y": 797, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -45486,7 +46035,7 @@ "tick": 281 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 281 }, @@ -45495,7 +46044,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e435dcc0b5c318f0542be05b47ab29bb3bc4ec48494027d93997f2f8b6aa140e", + "checksum": "da0476329b54d0c45baaed6836f439d9ae456ce489358a2174ebd5b67052064d", "events": [], "fighters": [ { @@ -45522,8 +46071,9 @@ "facing_y": -297, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -45582,6 +46132,7 @@ "facing_y": 757, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -45646,7 +46197,7 @@ "tick": 282 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 282 }, @@ -45666,7 +46217,7 @@ }, "snapshot": { "payload": { - "checksum": "01d737103f123ca2ae89ed833cb6225bf991bc78e5458e822d9dc9e2d023d25b", + "checksum": "817d023931a4d461b04e7e3351990b6c239b994cd0156ce93ac1004c9b324778", "events": [ { "action_id": "two@283", @@ -45675,7 +46226,7 @@ "blood": 0, "detail": "right:straight:head", "direction": 0, - "event_id": 20, + "event_id": 18, "kind": "punch_start", "target_id": null, "tick": 283 @@ -45706,8 +46257,9 @@ "facing_y": -223, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -45766,6 +46318,7 @@ "facing_y": 714, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -45830,7 +46383,7 @@ "tick": 283 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 283 }, @@ -45850,7 +46403,7 @@ }, "snapshot": { "payload": { - "checksum": "52073dd0763b06d1db9811fa385f72a5d31b47cfc57e08110c9c4fcdf1e7538d", + "checksum": "678cb77522dad87816be6e3e449077ad85fe009d7a1939941e773db61bba6e88", "events": [], "fighters": [ { @@ -45877,8 +46430,9 @@ "facing_y": -140, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -45937,6 +46491,7 @@ "facing_y": 714, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -46001,7 +46556,7 @@ "tick": 284 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 284 }, @@ -46021,7 +46576,7 @@ }, "snapshot": { "payload": { - "checksum": "692552e78defe473c29dd12174c4b9f6a0627dbc98919b0cf81072d7a9263306", + "checksum": "c066e5d074cc277d3e53b9c6a1f972a7f04271acf6f8be8e5d90467622e9140c", "events": [], "fighters": [ { @@ -46048,8 +46603,9 @@ "facing_y": -57, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -46108,6 +46664,7 @@ "facing_y": 714, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -46172,7 +46729,7 @@ "tick": 285 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 285 }, @@ -46192,7 +46749,7 @@ }, "snapshot": { "payload": { - "checksum": "d16168f34008fe1ffa650894097bbc915d82a922c72dba4532135274a54ba63f", + "checksum": "fc33c76c40e51030fe9e1b77e9c47c710c79ea8f5bb4207f8965a1f359454269", "events": [], "fighters": [ { @@ -46219,8 +46776,9 @@ "facing_y": 24, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -46279,6 +46837,7 @@ "facing_y": 714, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -46343,7 +46902,7 @@ "tick": 286 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 286 }, @@ -46363,7 +46922,7 @@ }, "snapshot": { "payload": { - "checksum": "2bccf554ee6a98dfefd419ceea53269039839ce0b80e35f597bcbe97ca00674e", + "checksum": "6b7de7d42911b99bd2f2add61f046ff23da9b70ed847db34610a404f8845e69b", "events": [ { "action_id": "two@283", @@ -46372,7 +46931,7 @@ "blood": 0, "detail": "", "direction": 0, - "event_id": 21, + "event_id": 19, "kind": "whiff", "target_id": "one", "tick": 287 @@ -46403,8 +46962,9 @@ "facing_y": 106, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -46463,6 +47023,7 @@ "facing_y": 714, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -46527,7 +47088,7 @@ "tick": 287 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 287 }, @@ -46547,7 +47108,7 @@ }, "snapshot": { "payload": { - "checksum": "4a77fa7831753f04ec7802e388402c3caa036d181ad9108c5dcf02b193591d71", + "checksum": "96827b9ada943dbf7e18c4b80b4b9de12044a73ea631ff3159f9622eaa9d3da8", "events": [], "fighters": [ { @@ -46574,8 +47135,9 @@ "facing_y": 188, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -46634,6 +47196,7 @@ "facing_y": 714, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -46698,7 +47261,7 @@ "tick": 288 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 288 }, @@ -46718,7 +47281,7 @@ }, "snapshot": { "payload": { - "checksum": "fb61148526b3622045205d86fd98b57cd0489960c6f9ce923cff050f62a75f5d", + "checksum": "b0988a1b197ca05041a4b09a1be066b2acb818b40f29a98371e17d9bb3b85dbc", "events": [], "fighters": [ { @@ -46745,8 +47308,9 @@ "facing_y": 262, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -46805,6 +47369,7 @@ "facing_y": 714, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -46869,7 +47434,7 @@ "tick": 289 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 289 }, @@ -46889,7 +47454,7 @@ }, "snapshot": { "payload": { - "checksum": "4c2739919d5d28f63fafdd7e1e6be52344326ff7f2788407c1663ec38e91d2be", + "checksum": "0772bdb6eddbd5b32f65c1b6994bdc99c2218ea61322488c916ea0c1dbf6de5e", "events": [], "fighters": [ { @@ -46916,8 +47481,9 @@ "facing_y": 347, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -46976,6 +47542,7 @@ "facing_y": 668, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -47040,7 +47607,7 @@ "tick": 290 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 290 }, @@ -47060,7 +47627,7 @@ }, "snapshot": { "payload": { - "checksum": "8536857e1b5af5eca2b8555f91e723c6f803c29c89b8ce90a37c829240312ef4", + "checksum": "603ac5d92f3cf66d1d2607d75d247f8fb47cc116e6adc91be27f4810bd4b2e99", "events": [], "fighters": [ { @@ -47087,8 +47654,9 @@ "facing_y": 418, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -47147,6 +47715,7 @@ "facing_y": 619, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -47211,7 +47780,7 @@ "tick": 291 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 291 }, @@ -47231,7 +47800,7 @@ }, "snapshot": { "payload": { - "checksum": "a4c946927a14d48fb50155a93a5fca3129210abf87deb22126bfb719e382a63c", + "checksum": "2645e81700a45d34deb10072b502a83c7376c965b318c18cae23b36746c5bf12", "events": [], "fighters": [ { @@ -47258,8 +47827,9 @@ "facing_y": 495, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -47318,6 +47888,7 @@ "facing_y": 568, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -47382,7 +47953,7 @@ "tick": 292 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 292 }, @@ -47402,7 +47973,7 @@ }, "snapshot": { "payload": { - "checksum": "986637b5f43f5e7d548478066e707c40ad7fb5bdac5d2d2830631e303bbe672c", + "checksum": "b516b0bb94d766945644b56e6a24dc7e967864489175dbdfe415a1fabf64a81f", "events": [], "fighters": [ { @@ -47429,8 +48000,9 @@ "facing_y": 561, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -47489,6 +48061,7 @@ "facing_y": 514, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -47553,7 +48126,7 @@ "tick": 293 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 293 }, @@ -47573,7 +48146,7 @@ }, "snapshot": { "payload": { - "checksum": "1e6cc9e0649b90e1c675bfd87884e484fb89830e801ad6cdd26aab68eb4786c1", + "checksum": "405b5ae01a1b031cd15afeeaf2ccd927a61997d4ae108314dd16bc42f408c28a", "events": [], "fighters": [ { @@ -47600,8 +48173,9 @@ "facing_y": 631, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -47660,6 +48234,7 @@ "facing_y": 458, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -47724,7 +48299,7 @@ "tick": 294 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 294 }, @@ -47733,7 +48308,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "7d30c0607d433de91bba38097b2966ddc0baab99843e834001315a873b312327", + "checksum": "d4c7d55cf83ab948fe14881c47b3b73cb68e2bf7c26bca1d808514f0dba7b168", "events": [], "fighters": [ { @@ -47760,8 +48335,9 @@ "facing_y": 694, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -47820,6 +48396,7 @@ "facing_y": 400, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -47884,7 +48461,7 @@ "tick": 295 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 295 }, @@ -47893,7 +48470,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "16301a440cba58766f7bcaaa25a23bb5d2ddad323c505839344fd6750ae70a98", + "checksum": "a6a4874d1ae7c57959aa511c44cb0a940c3ec9aea890ba2097dc0b95985ba0f7", "events": [], "fighters": [ { @@ -47920,8 +48497,9 @@ "facing_y": 752, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -47980,6 +48558,7 @@ "facing_y": 341, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -48044,7 +48623,7 @@ "tick": 296 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 296 }, @@ -48064,7 +48643,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "8ab0336c30b0f4cb71ebbffef7627dbda5acebb2517d3ecbda755b9714d8d9e0", + "checksum": "91de7bf759844f260ce5f5cb5b56a1f3e241360923dbc040562b2491f62d0dd6", "events": [ { "action_id": "one@297", @@ -48073,7 +48652,7 @@ "blood": 0, "detail": "left:jab:head", "direction": 0, - "event_id": 22, + "event_id": 20, "kind": "punch_start", "target_id": null, "tick": 297 @@ -48104,8 +48683,9 @@ "facing_y": 752, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -48164,6 +48744,7 @@ "facing_y": 280, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -48228,7 +48809,7 @@ "tick": 297 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 297 }, @@ -48248,7 +48829,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "380e08b10fd6879f81a5bd8a07152609025841ed0dfbc52d36b8705d47940744", + "checksum": "53ad736f3d6e374cec5a7a76cc9a8e027294e81abd93c7cf1383eae5b74a24c4", "events": [], "fighters": [ { @@ -48275,8 +48856,9 @@ "facing_y": 752, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -48335,6 +48917,7 @@ "facing_y": 218, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -48399,7 +48982,7 @@ "tick": 298 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 298 }, @@ -48419,7 +49002,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e5afd4d5b3526757a121eb764f189a8bfacbfbb742f8a4996a42caef722904ca", + "checksum": "f10ac74f300522a0f1a2e010497c59cc3393873bc2707bcfd987a1e3bd3a0a0e", "events": [ { "action_id": "one@297", @@ -48428,7 +49011,7 @@ "blood": 11, "detail": "jab:head", "direction": -1, - "event_id": 23, + "event_id": 21, "kind": "hit", "target_id": "two", "tick": 299 @@ -48459,8 +49042,9 @@ "facing_y": 752, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -48519,6 +49103,7 @@ "facing_y": 155, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -48583,7 +49168,7 @@ "tick": 299 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 299 }, @@ -48603,7 +49188,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e84cf582f7489219af1ffd004c062ea13069d060995f4fdd88f8af723ec67947", + "checksum": "ac711391b42d145a28a35a143a5fcdad311088148ce6f1a44689edac96f36fb6", "events": [], "fighters": [ { @@ -48630,8 +49215,9 @@ "facing_y": 752, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -48690,6 +49276,7 @@ "facing_y": 91, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -48754,7 +49341,7 @@ "tick": 300 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 300 }, @@ -48774,7 +49361,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e61c623a3ac19352f18d9115e4fbdf8da8fc3e7551899ed22f2833aa2b402bbe", + "checksum": "16baa32ead907e7263beb5f0bd912d05259a899256893540bfd0f5ca4f8ad314", "events": [], "fighters": [ { @@ -48801,8 +49388,9 @@ "facing_y": 752, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -48861,6 +49449,7 @@ "facing_y": 27, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -48925,7 +49514,7 @@ "tick": 301 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 301 }, @@ -48945,7 +49534,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "dc1cbf9b2d587f5fb767396e6e22c4e15ba47d73cc81ef6b8c75d7c87fd44541", + "checksum": "6892701863c1cb046e24ccf3a4692dd7e9fbaea51a944b54ee4ec46699b2dfa0", "events": [ { "action_id": "one@302", @@ -48954,7 +49543,7 @@ "blood": 0, "detail": "right:straight:head", "direction": 0, - "event_id": 24, + "event_id": 22, "kind": "punch_start", "target_id": null, "tick": 302 @@ -48985,8 +49574,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -49045,6 +49635,7 @@ "facing_y": -37, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -49109,7 +49700,7 @@ "tick": 302 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 302 }, @@ -49129,7 +49720,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "09d8d325fa3ae4fe468058ca19ad4365f7c990200a3004fc581493851f8265ac", + "checksum": "130b5993658155ecca4a07acbf2f9f57bbb11cdf32ec65a36e182591db53c5f6", "events": [], "fighters": [ { @@ -49156,8 +49747,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -49216,6 +49808,7 @@ "facing_y": -101, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -49280,7 +49873,7 @@ "tick": 303 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 303 }, @@ -49300,7 +49893,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e92bea0ec847bdae788d5cd2606e4df8ff4573074bf74803bb23669c6d489d15", + "checksum": "360970c0c61c666eff9b4bae3f8a51efe426aa8371edb5c566c109706118beb1", "events": [], "fighters": [ { @@ -49327,8 +49920,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -49387,6 +49981,7 @@ "facing_y": -164, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -49451,7 +50046,7 @@ "tick": 304 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 304 }, @@ -49471,7 +50066,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "956d043767d30282255d6c5d9427a6ca9a0a99091a1afe605474df51131832de", + "checksum": "9b67f032dbaa3e102433e2e90bea8b12045a4cd83abbc768030dd49ecf4718f1", "events": [], "fighters": [ { @@ -49498,8 +50093,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -49558,6 +50154,7 @@ "facing_y": -227, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -49622,7 +50219,7 @@ "tick": 305 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 305 }, @@ -49642,7 +50239,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "f814ad17376d114e1305390641846f6d39b804fe32cdfcf52dc40ca1cbcd6b09", + "checksum": "224d9dc2fa4fe2ba8ef52f90f7bfe986975219b2c6311523b8254107bfe20f2e", "events": [ { "action_id": "one@302", @@ -49651,7 +50248,7 @@ "blood": 21, "detail": "straight:head", "direction": -1, - "event_id": 25, + "event_id": 23, "kind": "hit", "target_id": "two", "tick": 306 @@ -49682,8 +50279,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -49742,6 +50340,7 @@ "facing_y": -289, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -49806,7 +50405,7 @@ "tick": 306 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 306 }, @@ -49826,7 +50425,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "5e159297db21b7afdef2fb37682dc2e61fa7ae78c8af6efd31b4d0d49331224b", + "checksum": "f8f4081f735832153a596e3985ac458e3ae1c6d392841a3ca29184f7209af9aa", "events": [], "fighters": [ { @@ -49853,8 +50452,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -49913,6 +50513,7 @@ "facing_y": -350, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -49977,7 +50578,7 @@ "tick": 307 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 307 }, @@ -49997,7 +50598,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "a0f9c13a2997324960d49f7c2884a79e28448dee9018861057420e951a481463", + "checksum": "85333726024d98039ade119299833f2855f28d0065cd658c7eafcbe8155bab83", "events": [], "fighters": [ { @@ -50024,8 +50625,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -50084,6 +50686,7 @@ "facing_y": -409, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -50148,7 +50751,7 @@ "tick": 308 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 308 }, @@ -50168,7 +50771,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e3e6adb073d2adaddd45703fd607e1b90a7542fc6316b725538f60dbce56fc47", + "checksum": "1cc612c0f30e689b8f2d14c4ae744c319e829ce93cf3d726c05df547943ed9da", "events": [], "fighters": [ { @@ -50195,8 +50798,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -50255,6 +50859,7 @@ "facing_y": -467, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -50319,7 +50924,7 @@ "tick": 309 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 309 }, @@ -50339,7 +50944,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "500f249de2bd318c4ca27defe82d213db4ba1f06eea9101ba2e5c277e940150c", + "checksum": "88d36466fa2eced0301a236b6e39375ea38096b1a2ada3a7f04543ecb419abfd", "events": [], "fighters": [ { @@ -50366,8 +50971,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -50426,6 +51032,7 @@ "facing_y": -523, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -50490,7 +51097,7 @@ "tick": 310 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 310 }, @@ -50510,7 +51117,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "454346de473e6ed235d1610e3f4c46953f2a92f02cd1d8f94a2435477073ed4b", + "checksum": "b0510c24b59a15b7d83f8bdfd1f77c19a25035a144d508e202350a698081ef31", "events": [], "fighters": [ { @@ -50537,8 +51144,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -50597,6 +51205,7 @@ "facing_y": -576, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -50661,7 +51270,7 @@ "tick": 311 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 311 }, @@ -50681,7 +51290,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "270dc87c8d388f334b880579767a96fd3c0f13a359aaa2d8f7f23f73b97aebac", + "checksum": "06cb5312016948c7ecbf286a1afee32aad70dd053d1abe78e164eb0d5769e7de", "events": [], "fighters": [ { @@ -50708,8 +51317,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -50768,6 +51378,7 @@ "facing_y": -627, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -50832,7 +51443,7 @@ "tick": 312 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 312 }, @@ -50852,7 +51463,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "c7c9085a505c7a040889140afe036134ce6bcc259c151138e878fd4dfabdaca7", + "checksum": "8ef71043d74212767d3a7289ef0dc1bb86e96a2545fac1ac78a9e414918c6908", "events": [], "fighters": [ { @@ -50879,8 +51490,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -50939,6 +51551,7 @@ "facing_y": -676, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -51003,7 +51616,7 @@ "tick": 313 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 313 }, @@ -51012,7 +51625,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "aa9f5c57cfe88a8df194613efbc91915702947d159ffaef3333abe075a4480da", + "checksum": "864fc648e77ca7de41d6f2132896c39f006249d44d8f08d8fe64eea078356cc7", "events": [], "fighters": [ { @@ -51039,8 +51652,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -51099,6 +51713,7 @@ "facing_y": -722, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -51163,7 +51778,7 @@ "tick": 314 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 314 }, @@ -51172,7 +51787,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "07bc51f61fe4ba059cc7a286244bc1def60b8f2d636becf67dc3e03bd165700b", + "checksum": "64d28d84f3e4f8ce779ef6c7be3b26480d2a6cdaee686ff9370999d12b03784a", "events": [], "fighters": [ { @@ -51199,8 +51814,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -51259,6 +51875,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -51323,7 +51940,7 @@ "tick": 315 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 315 }, @@ -51332,7 +51949,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "1f7b6122c708044205b908e3bae096f21f4cedaa1fcd61fccf13ce629a47e1d0", + "checksum": "ca58ee86581bebe23200a7e8cb18391d4b7cbe1a5f3da089457891e413c1a055", "events": [], "fighters": [ { @@ -51359,8 +51976,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -51419,6 +52037,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -51483,7 +52102,7 @@ "tick": 316 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 316 }, @@ -51492,7 +52111,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "0adc30f32850f9a60d096591fa585722bf8b23790140c290a069232a13488820", + "checksum": "a6678541983fe170fa869d7342ef3d01a084d58aaa1070de3292c80c419d0e12", "events": [], "fighters": [ { @@ -51519,8 +52138,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -51579,6 +52199,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -51643,7 +52264,7 @@ "tick": 317 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 317 }, @@ -51652,7 +52273,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "66054afb8afe775d406b6c18b027e0dd2f601c9c9dad44359e150d293d9650b5", + "checksum": "4334ccc8a65f057130ec304fb3d7874e5de370837480e993e73ee4728a0939c8", "events": [], "fighters": [ { @@ -51679,8 +52300,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -51739,6 +52361,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -51803,7 +52426,7 @@ "tick": 318 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 318 }, @@ -51812,7 +52435,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "fdfcd36cda2e2799d5ece476312d56c9abe32bcc4e5c2892406c61a16c97345f", + "checksum": "cf10770a3b94f46d4c25d06bef8a413da99b45ef723840c647520514039e1576", "events": [], "fighters": [ { @@ -51839,8 +52462,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -51899,6 +52523,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -51963,7 +52588,7 @@ "tick": 319 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 319 }, @@ -51972,7 +52597,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "c30237eede3f3e7a684da615d2068ac3d3b51aa4163b5957b80bfd8f5a6d3b3d", + "checksum": "f1c099223d0eb928cce1911a6a62a96b630a5ccc789dbac50cc652f6b3d13839", "events": [], "fighters": [ { @@ -51999,8 +52624,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -52059,6 +52685,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -52123,7 +52750,7 @@ "tick": 320 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 320 }, @@ -52143,7 +52770,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "277aedd4f79ad5cc53739c4bd4abede030438383c5886782baf41e9b74793e8d", + "checksum": "c686c697289a166cee26ecc1de5823a5eee36c97b70761eecb667d5409d624e5", "events": [ { "action_id": "one@321", @@ -52152,7 +52779,7 @@ "blood": 0, "detail": "right:straight:head", "direction": 0, - "event_id": 26, + "event_id": 24, "kind": "punch_start", "target_id": null, "tick": 321 @@ -52183,8 +52810,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -52243,6 +52871,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -52307,7 +52936,7 @@ "tick": 321 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 321 }, @@ -52327,7 +52956,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "9d10bed00c6d64a835e9e9f71f6ca753917958e1f3864da8034e834100d49102", + "checksum": "437c4c0175a1ff70b421dadb194974469f5e6218c761a040b223d93f8ae4fa77", "events": [], "fighters": [ { @@ -52354,8 +52983,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -52414,6 +53044,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -52478,7 +53109,7 @@ "tick": 322 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 322 }, @@ -52498,7 +53129,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "3a535572ac3caa9cbd2bbf3f6037bf6bf086be8ec444e31437b799ab3d7d111a", + "checksum": "593c8b5b4f67d9f10d8caf29afbd6dfc5f5ce21f6ed75d0d196600565c39949a", "events": [], "fighters": [ { @@ -52525,8 +53156,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -52585,6 +53217,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -52649,7 +53282,7 @@ "tick": 323 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 323 }, @@ -52669,7 +53302,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "7f7e6c398d0528ca9052d5396d3bfc865946657d4748a2ddbc33d7d2661c64d0", + "checksum": "685e274d9ce3e969e804b20d34eab5fe4520dd6bea5b95a26f63f6cac3407e5d", "events": [], "fighters": [ { @@ -52696,8 +53329,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -52756,6 +53390,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -52820,7 +53455,7 @@ "tick": 324 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 324 }, @@ -52840,7 +53475,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "c08d48a1059520dca842300f82fe73c30da4c0de56bc84214c962d629b31cb96", + "checksum": "1771c0fcc792a0b17335017714988544ec0adc6ac8ed9d6bf266ee3990dbc2bf", "events": [], "fighters": [ { @@ -52867,8 +53502,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -52927,6 +53563,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -52991,7 +53628,7 @@ "tick": 325 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 325 }, @@ -53011,7 +53648,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "174608b419d0c986d7df62b6915275c97454aeb09e09dd3742ff80915befdd0a", + "checksum": "3d50473e4e1fdec67fd3645dedcb5b91c70d840bd74c31be85cfb02f90a59f9e", "events": [], "fighters": [ { @@ -53038,8 +53675,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -53098,6 +53736,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -53162,7 +53801,7 @@ "tick": 326 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 326 }, @@ -53182,7 +53821,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "5e4300a1e4031691db3e2bba2ea08933e55ca0cfe641e3507c8633f385b7d3fa", + "checksum": "f8110faeeaeee5c1ebe16ae22901dc86e13743bfa777869df307a83f3972f34f", "events": [], "fighters": [ { @@ -53209,8 +53848,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -53269,6 +53909,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -53333,7 +53974,7 @@ "tick": 327 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 327 }, @@ -53353,7 +53994,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "76803da0df2a7b7af2d2c9ce76aca7dcc7866f0e331f0b9708a5864798b68b9b", + "checksum": "8033782485a7cfd7b04db0b5c122ce734214f98f96604169ddcb4eafbb479e13", "events": [ { "action_id": "one@321", @@ -53362,7 +54003,7 @@ "blood": 33, "detail": "straight:head", "direction": -1, - "event_id": 27, + "event_id": 25, "kind": "hit", "target_id": "two", "tick": 328 @@ -53374,7 +54015,7 @@ "blood": 0, "detail": "", "direction": 0, - "event_id": 28, + "event_id": 26, "kind": "stun", "target_id": "two", "tick": 328 @@ -53405,8 +54046,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -53465,6 +54107,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -53529,7 +54172,7 @@ "tick": 328 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 328 }, @@ -53549,7 +54192,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "4310e1a35b360b501b70299c33c3316f8063e49b4447b65cd44d88ea73fffc1e", + "checksum": "a4f6c1334369d4fed94d9c1ee67cb034d80fe9237e67c7bd6cb12b19e7391d5c", "events": [], "fighters": [ { @@ -53576,8 +54219,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -53636,6 +54280,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -53700,7 +54345,7 @@ "tick": 329 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 329 }, @@ -53720,7 +54365,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "53b48b76d9f093c0378b65399a2bf1b777cd7729bfeed4789cc5f6387c6164de", + "checksum": "f5e92dfcb746e30d7b147f47beffd7823e5b62d816739eac333ef3c65641d32a", "events": [ { "action_id": null, @@ -53729,7 +54374,7 @@ "blood": 25, "detail": "", "direction": 0, - "event_id": 29, + "event_id": 27, "kind": "bleed", "target_id": null, "tick": 330 @@ -53760,8 +54405,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -53820,6 +54466,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -53884,7 +54531,7 @@ "tick": 330 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 330 }, @@ -53904,7 +54551,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "50bec2065b1e59baebcbfeaf331abfc1af7459902b60179098efb640270bc388", + "checksum": "90c37aa64567a4c646f7691d6e6c0582afa33493494638b86b750c7b79359b82", "events": [], "fighters": [ { @@ -53931,8 +54578,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -53991,6 +54639,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -54055,7 +54704,7 @@ "tick": 331 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 331 }, @@ -54075,7 +54724,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "46d706d4ce78bfad40f4fec67387fe59b06f07d0cf620f8a033e0fbd7a58f689", + "checksum": "c5c8bbfb96916c3b63701e891c70439a64902096c170295e65a9a7603069e4c2", "events": [], "fighters": [ { @@ -54102,8 +54751,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -54162,6 +54812,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -54226,7 +54877,7 @@ "tick": 332 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 332 }, @@ -54246,7 +54897,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e6fa423d6f68864231b940c65c0ce290c219e78ef0277e9e196fbc933df65c03", + "checksum": "bdaa4a1a2b0ca35cab5d06e3907c7bc5222790b23980a9e6c073725f0e820dd2", "events": [], "fighters": [ { @@ -54273,8 +54924,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -54333,6 +54985,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -54397,7 +55050,7 @@ "tick": 333 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 333 }, @@ -54417,7 +55070,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "67247ce58f784478158645cb63791b3df403fa385f19fb95fdae4795768a6212", + "checksum": "5916fde6cfcfb5c78170a69a2cbd3b43b0838ff3188144a945973d5a43bd0bb0", "events": [], "fighters": [ { @@ -54444,8 +55097,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -54504,6 +55158,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -54568,7 +55223,7 @@ "tick": 334 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 334 }, @@ -54588,7 +55243,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "42437daf13711a272cf846f8fffa8f6b11860a4cfaaa6d52ad70435456beca9d", + "checksum": "915366d6789a88bf143cf0eb526930d53505af9422ae00cf294134c76ec611f1", "events": [], "fighters": [ { @@ -54615,8 +55270,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -54675,6 +55331,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -54739,7 +55396,7 @@ "tick": 335 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 335 }, @@ -54759,7 +55416,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "143b74e4a77a9e117ea3bab8e2ac3211212d34e29942a4622fb652870f6c06de", + "checksum": "2367c88d5f03ae3982af488615490a960ed92be794b8a23fe8cfc2c81e929eaf", "events": [], "fighters": [ { @@ -54786,8 +55443,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -54846,6 +55504,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -54910,7 +55569,7 @@ "tick": 336 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 336 }, @@ -54930,7 +55589,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "f717ba3f00cce983901d2660c87c06edd9c3aa686298d87cf19bdf0e67d7ad44", + "checksum": "639c65f8c1a44c70c057caefeabf13bb1b55c516776c46c9b5d47180306692e1", "events": [], "fighters": [ { @@ -54957,8 +55616,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -55017,6 +55677,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -55081,7 +55742,7 @@ "tick": 337 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 337 }, @@ -55101,7 +55762,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "4d7f16ac52e9a539cc1aa17384da12ba17166da7840ce5ac4cbadda5ae594b66", + "checksum": "56c669c73d9e0fca6cf75c5cfd4fb87a9505f98497b7972e9f9372bd21eb3f2b", "events": [], "fighters": [ { @@ -55128,8 +55789,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -55188,6 +55850,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -55252,7 +55915,7 @@ "tick": 338 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 338 }, @@ -55272,7 +55935,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "8243179ede00373970f9bb1bb3c22bcb17e2cc32b3ad5887347a13a3f647c887", + "checksum": "51fd1b0ee9f7acaa4f1e02430bd76303ffb6db4b9f741d0481e03fbeacc86fd6", "events": [], "fighters": [ { @@ -55299,8 +55962,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -55359,6 +56023,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -55423,7 +56088,7 @@ "tick": 339 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 339 }, @@ -55432,7 +56097,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "7f1a4faf4783df7d611c51e726009b0df1e00b6e43b1e7e5c0b84cea48cd42d9", + "checksum": "969c15687292859bfbcfa8a025a083142817a7e01badf7d41c89515d70d60f93", "events": [], "fighters": [ { @@ -55459,8 +56124,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -55519,6 +56185,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -55583,7 +56250,7 @@ "tick": 340 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 340 }, @@ -55603,7 +56270,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "3fc2f7bf67cadac0d7d73d181e6aacab8aeb33454b82a09f8cd61e308d8dc26a", + "checksum": "7bce85f943168b480b32338c9cd57d303139a6b606fea170824ba49f13d6867e", "events": [ { "action_id": "one@341", @@ -55612,7 +56279,7 @@ "blood": 0, "detail": "right:straight:head", "direction": 0, - "event_id": 30, + "event_id": 28, "kind": "punch_start", "target_id": null, "tick": 341 @@ -55643,8 +56310,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -55703,6 +56371,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -55767,7 +56436,7 @@ "tick": 341 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 341 }, @@ -55787,7 +56456,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "50cd2e1bea0137bb2ba6118a03ae0b9c6d85ee1e5467fd6fab7e093e9b94a210", + "checksum": "33e83122b8dda9ae7e319716160a4e3a795308d0ad9facfbc66bd60fc7d6d772", "events": [], "fighters": [ { @@ -55814,8 +56483,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -55874,6 +56544,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -55938,7 +56609,7 @@ "tick": 342 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 342 }, @@ -55958,7 +56629,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "c65b22f82a102db4f3585799f76969364bab71e7b848dc10f8fa08f25179b745", + "checksum": "4a0994d3684d5f561ccf15843050bf12e12f324bfbe06115f4a3f8bcb231957d", "events": [], "fighters": [ { @@ -55985,8 +56656,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -56045,6 +56717,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -56109,7 +56782,7 @@ "tick": 343 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 343 }, @@ -56129,7 +56802,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "01b455ef8448594a5fa191bb9df98f43ee295afa6e7d8b09e601adcd13a740f6", + "checksum": "7265530953400606c0fd383f03f0465609fcfcb006d0ecfff58985e2a948b3d6", "events": [], "fighters": [ { @@ -56156,8 +56829,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -56216,6 +56890,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -56280,7 +56955,7 @@ "tick": 344 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 344 }, @@ -56300,7 +56975,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "ad7135381e2f19b1477f39a7e6ae6f60a70c4bbcf9803a626a53bcda27a78325", + "checksum": "a735322fb478b8947fc14e95a2097f9af335aea688500884e020a53c83e1abd0", "events": [ { "action_id": "one@341", @@ -56309,7 +56984,7 @@ "blood": 20, "detail": "straight:head", "direction": -1, - "event_id": 31, + "event_id": 29, "kind": "hit", "target_id": "two", "tick": 345 @@ -56340,8 +57015,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -56400,6 +57076,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -56464,7 +57141,7 @@ "tick": 345 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 345 }, @@ -56484,7 +57161,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "b87c466284277eee51119c4ef93fe218ba6ed75696d540d94320e7e3fd0c3df5", + "checksum": "286ebd51459382655c0b8fa6b99c9f38a248d03bb9241891dcf7010136805230", "events": [], "fighters": [ { @@ -56511,8 +57188,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -56571,6 +57249,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -56635,7 +57314,7 @@ "tick": 346 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 346 }, @@ -56655,7 +57334,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "aaece7bea312bb44da858e209cc3a896d1a0fb8569fd7a6be5c6ef2704af0033", + "checksum": "b3925005d553da19e05f63d3020aebe29d5ce99f1a7f5074d258c01f8e4a1d33", "events": [], "fighters": [ { @@ -56682,8 +57361,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -56742,6 +57422,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -56806,7 +57487,7 @@ "tick": 347 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 347 }, @@ -56826,7 +57507,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "91192582772c605a970a7f6d2ef5aabf3b89834b4ffcfa292cd8546e62693c2b", + "checksum": "470c9fe4211f23366c4a7757c4e43711e78557e085d9a460c41b789648e6d6bc", "events": [], "fighters": [ { @@ -56853,8 +57534,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -56913,6 +57595,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -56977,7 +57660,7 @@ "tick": 348 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 348 }, @@ -56997,7 +57680,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "88711a9383e4e0b67ba087a4c4da4ad213988f4f68a42b7e54d1cc9cce53162a", + "checksum": "5b01c55292a6f69a5250331245f23f5514e975b264e7a6b2a88135d52be4ec5b", "events": [], "fighters": [ { @@ -57024,8 +57707,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -57084,6 +57768,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -57148,7 +57833,7 @@ "tick": 349 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 349 }, @@ -57168,7 +57853,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "15942549bf43f6457ef7f6a07e883c74230d50410acac18361e46a993869f3e8", + "checksum": "c1692ae1c9ec558cadfefe24d88c243e64557d0106d0ec6fcd7011025947f5ca", "events": [], "fighters": [ { @@ -57195,8 +57880,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -57255,6 +57941,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -57319,7 +58006,7 @@ "tick": 350 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 350 }, @@ -57339,7 +58026,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "60a05a36fdbac4f56b2e911ff3fba6d80083f275b8281b6e3a7490ebcc91cfae", + "checksum": "66ee718eabc426f5bc991879129be8db46cfb84d315e7606bf45b9428b7f6041", "events": [], "fighters": [ { @@ -57366,8 +58053,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -57426,6 +58114,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -57490,7 +58179,7 @@ "tick": 351 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 351 }, @@ -57510,7 +58199,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "cc0e2b59beeca1e9e0cb2131fbb2e54a7c45a5dea3c8def23464d5ad69763d7f", + "checksum": "949436d952e74f3d89f34e23b9a20564e390f8f8550e3bd38097e54be94cedbf", "events": [], "fighters": [ { @@ -57537,8 +58226,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -57597,6 +58287,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -57661,7 +58352,7 @@ "tick": 352 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 352 }, @@ -57670,7 +58361,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "c0e1ad72266c8af8e38623e91d231366fa121d1e30985b6df61495b3c2351ff4", + "checksum": "224d29556ad0095a58f6781e83abf4fbf135087f32bb42465eab0433e941970e", "events": [], "fighters": [ { @@ -57697,8 +58388,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -57757,6 +58449,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -57821,7 +58514,7 @@ "tick": 353 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 353 }, @@ -57830,7 +58523,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "702909a42271acd26cd08cad9e4478e29bb63dee6ed4eb73b48a3606e8602383", + "checksum": "24ffab368a3d7c0b9f3ac1eceb67861cb17e87064c48330673541ebf1a8ab059", "events": [], "fighters": [ { @@ -57857,8 +58550,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -57917,6 +58611,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -57981,7 +58676,7 @@ "tick": 354 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 354 }, @@ -57990,7 +58685,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "90bef82709123fad205ffe6a5ea328c2f8c8bf6706e298157f8dbf22a4b1eeb1", + "checksum": "d1be7c36c8ae8697f270fb9dbb4ff3a573e163d6c544d574f3efcaadb5844342", "events": [], "fighters": [ { @@ -58017,8 +58712,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -58077,6 +58773,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -58141,7 +58838,7 @@ "tick": 355 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 355 }, @@ -58150,7 +58847,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e4b015c3ed39096d10573a989c5324c13bb8e2d9d1a3121d14fdfbb4b7afe388", + "checksum": "06af6b1836dc398c3d23b71860be9358cd5d936364ccf5c4e7b63389d48b1fb3", "events": [], "fighters": [ { @@ -58177,8 +58874,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -58237,6 +58935,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -58301,7 +59000,7 @@ "tick": 356 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 356 }, @@ -58310,7 +59009,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "118af8d63617ede4f13798700e5b11589f88d839dcf230b13921c3b086e71553", + "checksum": "0e79e1e447a404119d63febac1702f44e41e3395e5d23d89298c2328cd11fc29", "events": [], "fighters": [ { @@ -58337,8 +59036,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -58397,6 +59097,7 @@ "facing_y": -767, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -58461,7 +59162,7 @@ "tick": 357 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 357 }, @@ -58470,7 +59171,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "10b798c633895ba1b1a929c776c36230be09ef5a07702d6559255834dbd87717", + "checksum": "493a594753e689c42d36ec3c580e023bcaf0fc800b955f45b245c5dfd4a79e6e", "events": [], "fighters": [ { @@ -58497,8 +59198,9 @@ "facing_y": 767, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -58557,6 +59259,7 @@ "facing_y": -766, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -58621,7 +59324,7 @@ "tick": 358 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 358 }, @@ -58630,7 +59333,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "9a9bdb83e7d9704bf57d99e743bf689f20ef9a11297b10103184728c309d712a", + "checksum": "384a0133f8c0540fb19550027839a0b784c40f3f53df7e60c9cb5ac44ae0d556", "events": [], "fighters": [ { @@ -58657,8 +59360,9 @@ "facing_y": 766, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -58717,6 +59421,7 @@ "facing_y": -773, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -58781,7 +59486,7 @@ "tick": 359 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 359 }, @@ -58790,7 +59495,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "744f2897f249f826e53e7464a6f88030e02bcf83be9096bb1b0dc422fa7d97fc", + "checksum": "e9c1f120132c39d6b8f0804296a4d900ddd1e843b727f932a517c44c60fcffee", "events": [ { "action_id": null, @@ -58799,7 +59504,7 @@ "blood": 25, "detail": "", "direction": 0, - "event_id": 32, + "event_id": 30, "kind": "bleed", "target_id": null, "tick": 360 @@ -58830,8 +59535,9 @@ "facing_y": 773, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -58890,6 +59596,7 @@ "facing_y": -770, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -58954,7 +59661,7 @@ "tick": 360 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 360 }, @@ -58963,7 +59670,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "c2a348e3d998d774faf53e5a83eecd247aa2d61ff643a2002a989a1b4f6f8d19", + "checksum": "620aa853d08087123b0b8fe4294d4661decbdb36c2af1ce1c76bc514cd626772", "events": [ { "action_id": null, @@ -58972,7 +59679,7 @@ "blood": 0, "detail": "", "direction": 0, - "event_id": 33, + "event_id": 31, "kind": "clinch_start", "target_id": "one", "tick": 361 @@ -59003,8 +59710,9 @@ "facing_y": 770, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -59063,6 +59771,7 @@ "facing_y": -770, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -59127,7 +59836,7 @@ "tick": 361 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 361 }, @@ -59136,7 +59845,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "f53b99dbf1150c67de73e40301b2f52d8e3c158b9aa3cac561646937f26d55eb", + "checksum": "7426f3d9585a4f75b2d2daf44f2d02bf0cf4bb1ad2f163f763d9e382b54a91d1", "events": [], "fighters": [ { @@ -59163,8 +59872,9 @@ "facing_y": 764, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -59223,6 +59933,7 @@ "facing_y": -770, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -59287,7 +59998,7 @@ "tick": 362 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 362 }, @@ -59296,7 +60007,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "722a3cea38d6b1e3d4bf9ef857949dfc8eb40852bb2ec06e2f2ae2977fbbaa23", + "checksum": "f7c1cc004a8e21382dd01729311a77eb51a1b4ca54af459b9708df687685086b", "events": [], "fighters": [ { @@ -59323,8 +60034,9 @@ "facing_y": 764, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -59383,6 +60095,7 @@ "facing_y": -770, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -59447,7 +60160,7 @@ "tick": 363 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 363 }, @@ -59456,7 +60169,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "b3afee170d32bd0ec8b77e7abedf0680e9e42b0f19682966cbeaac4e087048ac", + "checksum": "26aae9ac3593879a67403caffefe81e97a9b0e1e08a05e42b195234311199e19", "events": [], "fighters": [ { @@ -59483,8 +60196,9 @@ "facing_y": 764, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -59543,6 +60257,7 @@ "facing_y": -770, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -59607,7 +60322,7 @@ "tick": 364 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 364 }, @@ -59616,7 +60331,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "741a7d21b3b0da90a2caf74928b79b92c795d7410d1a7f8edf4e9d6663ae0fb2", + "checksum": "53aa871f847b7851384aad2786311fcdf1d88a642ed86aeb5498b060f0d1a72f", "events": [], "fighters": [ { @@ -59643,8 +60358,9 @@ "facing_y": 764, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -59703,6 +60419,7 @@ "facing_y": -770, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -59767,7 +60484,7 @@ "tick": 365 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 365 }, @@ -59776,7 +60493,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e054ef78314332387a8a7c6aa8e7f5ca295110de773994db8f5c0850b905292e", + "checksum": "0070ef9b75f472e9f53b885c9759b5b40452d53b36166ccce624e39352c06fdd", "events": [], "fighters": [ { @@ -59803,8 +60520,9 @@ "facing_y": 764, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -59863,6 +60581,7 @@ "facing_y": -770, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -59927,7 +60646,7 @@ "tick": 366 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 366 }, @@ -59936,7 +60655,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "cd77bd1c78c5c6bf423906514659097c67896b972220840304b439d02a1386b8", + "checksum": "c7b267fdbeca322facbdef4c6810e7193a5a38e8c6c701b2c80f4a8b60e88ece", "events": [ { "action_id": null, @@ -59945,7 +60664,7 @@ "blood": 0, "detail": "", "direction": 0, - "event_id": 34, + "event_id": 32, "kind": "clinch", "target_id": "one", "tick": 367 @@ -59976,8 +60695,9 @@ "facing_y": 764, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -60036,6 +60756,7 @@ "facing_y": -770, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -60100,7 +60821,7 @@ "tick": 367 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 367 }, @@ -60109,7 +60830,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "903e2971cb6c62f065978483952b9e5b83840145de7d7167b5b3ccd708c38ce1", + "checksum": "6b4a62bd75c2b361b82bc4d12da73901845755eb1426184a668ab9c3d1e099cd", "events": [], "fighters": [ { @@ -60136,8 +60857,9 @@ "facing_y": 764, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -60196,6 +60918,7 @@ "facing_y": -764, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -60260,7 +60983,7 @@ "tick": 368 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 368 }, @@ -60269,7 +60992,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "ef0462d57d959a9cf312feecf559f2fd5df7961db6aaec9482fd3d5b09187968", + "checksum": "6f511eb0e12768df8f913c9b8c18cfd87f279e820050ad74ccbee29f8834e180", "events": [], "fighters": [ { @@ -60296,8 +61019,9 @@ "facing_y": 760, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -60356,6 +61080,7 @@ "facing_y": -760, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -60420,7 +61145,7 @@ "tick": 369 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 369 }, @@ -60429,7 +61154,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "3417180a5ae5fa749f73bc6b9e6a1b89835510c3c206476c431054b8f27f9fd9", + "checksum": "fa570c90b840a1500651837df353eb88dd589a3add6717652921dbf7bff3474e", "events": [], "fighters": [ { @@ -60456,8 +61181,9 @@ "facing_y": 753, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -60516,6 +61242,7 @@ "facing_y": -753, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -60580,7 +61307,7 @@ "tick": 370 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 370 }, @@ -60589,7 +61316,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "cc377c037e35b2efa4d8ae74afd6940fd3c6fdd49de7832da5b588790ac134bc", + "checksum": "b5b31fb257f302eb5ff618de06bb970765992a48261dfd2cd190dd4803fa4f2a", "events": [], "fighters": [ { @@ -60616,8 +61343,9 @@ "facing_y": 758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -60676,6 +61404,7 @@ "facing_y": -758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -60740,7 +61469,7 @@ "tick": 371 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 371 }, @@ -60749,7 +61478,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "a602b3092e0b63047ee43e782c0715f9ede8b1e3f6f53dc0f3e8f13b08039609", + "checksum": "6492902d9f633a7a4e41522503ad4b78c4d9ebaff48609136953ed488fd81225", "events": [], "fighters": [ { @@ -60776,8 +61505,9 @@ "facing_y": 758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -60836,6 +61566,7 @@ "facing_y": -758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -60900,7 +61631,7 @@ "tick": 372 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 372 }, @@ -60909,7 +61640,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "83b2a478da5d2a339d18482f5ed503b1800443df37a366f973de4c58537e6077", + "checksum": "ae74986813b12bfb93db6ca4422bb84401185aa77225b0bb52c0743dcb864efb", "events": [], "fighters": [ { @@ -60936,8 +61667,9 @@ "facing_y": 758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -60996,6 +61728,7 @@ "facing_y": -758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -61060,7 +61793,7 @@ "tick": 373 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 373 }, @@ -61069,7 +61802,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "56022dabf3af0a7e746e4077a812b65e6bf3fab5096e04a9d5f0760d5ad67a39", + "checksum": "26112c5f1d5e37a181f0da6ebc2b6cf9f612a29cf5ddadcd21ea3d029b6bdfe7", "events": [], "fighters": [ { @@ -61096,8 +61829,9 @@ "facing_y": 758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -61156,6 +61890,7 @@ "facing_y": -758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -61220,7 +61955,7 @@ "tick": 374 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 374 }, @@ -61229,7 +61964,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "010b78b0f8321e020fa2c2f9f9b152b828bd19822b6c4d899a37c6d470d6ec81", + "checksum": "34e5c3fefafb78049b6e1bdcfb1644f167fe44459e9d74924384367309cb21a8", "events": [], "fighters": [ { @@ -61256,8 +61991,9 @@ "facing_y": 758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -61316,6 +62052,7 @@ "facing_y": -758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -61380,7 +62117,7 @@ "tick": 375 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 375 }, @@ -61389,7 +62126,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "c17c34aed6f28cf031819aa21d1afc463033845268120dd058a243657ae9a159", + "checksum": "414fd6a7cd3a9ce6a4f889f5d235cfb7bcec16ad6e19dcaf2a03b8236f8885d3", "events": [], "fighters": [ { @@ -61416,8 +62153,9 @@ "facing_y": 758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -61476,6 +62214,7 @@ "facing_y": -758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -61540,7 +62279,7 @@ "tick": 376 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 376 }, @@ -61549,7 +62288,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "b4b0b8979b7ed1385fe5edcb1683a801bad85a310b53e278319763dee638e9e1", + "checksum": "432c713f3ffe6c94cc7242fd01a430d66d13c0e4fcdfcec91d357952a837a593", "events": [], "fighters": [ { @@ -61576,8 +62315,9 @@ "facing_y": 758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -61636,6 +62376,7 @@ "facing_y": -758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -61700,7 +62441,7 @@ "tick": 377 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 377 }, @@ -61709,7 +62450,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "308acbdbf53a871eb8332d3754ae3efa4627e3a3ac22c0384a6294039b4df7aa", + "checksum": "05589c17b48891c1aa5db9075d96fad70c044561998eb824349e0134131f0e19", "events": [], "fighters": [ { @@ -61736,8 +62477,9 @@ "facing_y": 758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -61796,6 +62538,7 @@ "facing_y": -758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -61860,7 +62603,7 @@ "tick": 378 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 378 }, @@ -61869,7 +62612,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "85a52cd44d96d0f16dc7323aaa5d6966b0d9852ef3198861bf9fcdfa1f685c1d", + "checksum": "c8045b5987e7aa2c93021a85bc9d5759ee4f8a6ced62e44432889c0f077e6e6f", "events": [], "fighters": [ { @@ -61896,8 +62639,9 @@ "facing_y": 758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -61956,6 +62700,7 @@ "facing_y": -758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -62020,7 +62765,7 @@ "tick": 379 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 379 }, @@ -62029,7 +62774,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "6a5954bcc52571910e360a48afad919442f254433d4f9df1bc858e74702659d8", + "checksum": "297f84678a9a859d274c44c2f0e5653951ccbdeb3ef2c1a8295085611cbf373b", "events": [], "fighters": [ { @@ -62056,8 +62801,9 @@ "facing_y": 758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -62116,6 +62862,7 @@ "facing_y": -758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -62180,7 +62927,7 @@ "tick": 380 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 380 }, @@ -62189,7 +62936,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "401bba03f3e8e9f16d0952fcfba63b69493c7cb7c540cfca943bcccc69f8d288", + "checksum": "ebe427c00de9d4dcaac65515dbab8785f81d6d0cead9b231d7e015a55d1cce3a", "events": [], "fighters": [ { @@ -62216,8 +62963,9 @@ "facing_y": 758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -62276,6 +63024,7 @@ "facing_y": -758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -62340,7 +63089,7 @@ "tick": 381 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 381 }, @@ -62349,7 +63098,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "9b5b7d83397975d98c4fbd5c5b2fd751216a2a4e3293e5273be40df9a0dd454a", + "checksum": "f5d4cd3c2e70edd0979f5c0b234e4638672df066da7ee630eb7879ca56a5a58e", "events": [], "fighters": [ { @@ -62376,8 +63125,9 @@ "facing_y": 758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -62436,6 +63186,7 @@ "facing_y": -758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -62500,7 +63251,7 @@ "tick": 382 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 382 }, @@ -62509,7 +63260,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "32dcbff25d4d23f82d875fd4cd4f74b11f613c4c71e335ebccd29a882e62e0a9", + "checksum": "d838f2a857d8a985f94ae1af42d957e8b0ffe8ca2955c74d4c79025c3fe1009b", "events": [], "fighters": [ { @@ -62536,8 +63287,9 @@ "facing_y": 758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -62596,6 +63348,7 @@ "facing_y": -758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -62660,7 +63413,7 @@ "tick": 383 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 383 }, @@ -62669,7 +63422,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "7468ce52f7f816564399ff99dbdf0ab87b8eda3921042857173cc7a89d9954b5", + "checksum": "70a69f6a4f8e6c8e6381667a5c7a95d7d3286c599ebcd18a8f4f25b4d87b48e7", "events": [], "fighters": [ { @@ -62696,8 +63449,9 @@ "facing_y": 758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -62756,6 +63510,7 @@ "facing_y": -758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -62820,7 +63575,7 @@ "tick": 384 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 384 }, @@ -62829,7 +63584,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "703304279511850b1b300ffb0cad4f943c0ace1e5de75be0b9db22afbc523bdd", + "checksum": "683a3f4f74ebbb6c733d78a5ed0386bdd54a9fb31a63e80f39159070d500dee9", "events": [], "fighters": [ { @@ -62856,8 +63611,9 @@ "facing_y": 758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -62916,6 +63672,7 @@ "facing_y": -758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -62980,7 +63737,7 @@ "tick": 385 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 385 }, @@ -62989,7 +63746,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "ce4fff7ed1e706e9ed37e0e8ff55a27950be0a1c5dca36376f9d5f11f1824f8c", + "checksum": "58783cb3be077e173ac927e8eebfa542da66ff0605ff2946b0f5b480f17a63bb", "events": [], "fighters": [ { @@ -63016,8 +63773,9 @@ "facing_y": 758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -63076,6 +63834,7 @@ "facing_y": -758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -63140,7 +63899,7 @@ "tick": 386 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 386 }, @@ -63149,7 +63908,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "4216719ffc421bc8c884dcf9dfb4ceb96d83b8585bf3c2a76390d5f6299cd915", + "checksum": "9bd87600bcdf35070e1b99b1bf92131b3320847a5871080981f3265a9b6b7c74", "events": [], "fighters": [ { @@ -63176,8 +63935,9 @@ "facing_y": 758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -63236,6 +63996,7 @@ "facing_y": -758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -63300,7 +64061,7 @@ "tick": 387 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 387 }, @@ -63309,7 +64070,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "bba3f5c3c4b44343c5fc2b23920bbfe4b7c05766dacd0ae9b9afc11f74f09ccd", + "checksum": "e88aeec6b276eb58aeb2b366d5fb963378e63a89e69fb01702461467e2c61818", "events": [], "fighters": [ { @@ -63336,8 +64097,9 @@ "facing_y": 758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -63396,6 +64158,7 @@ "facing_y": -758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -63460,7 +64223,7 @@ "tick": 388 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 388 }, @@ -63469,7 +64232,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "ca45fa07f152abac5a77a275a9190f25ca9f4f346b603b41d66800b1c7594e66", + "checksum": "ca808e3955e887e5086371d3d139ef402cc199ca957831991e1acaee9e91268d", "events": [], "fighters": [ { @@ -63496,8 +64259,9 @@ "facing_y": 758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -63556,6 +64320,7 @@ "facing_y": -758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -63620,7 +64385,7 @@ "tick": 389 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 389 }, @@ -63629,7 +64394,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "bec487e6c882be821086f7e90c3592d3aa486876b261e363e8cb23dc0de18ad2", + "checksum": "774f9615c75d689620b813918afb139bed344be4a4bcdf1efd6c00d83f11ef9e", "events": [ { "action_id": null, @@ -63638,7 +64403,7 @@ "blood": 25, "detail": "", "direction": 0, - "event_id": 35, + "event_id": 33, "kind": "bleed", "target_id": null, "tick": 390 @@ -63669,8 +64434,9 @@ "facing_y": 758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -63729,6 +64495,7 @@ "facing_y": -758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -63793,7 +64560,7 @@ "tick": 390 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 390 }, @@ -63802,7 +64569,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "f08ac56fd914f6e7298632c6376ef4b79de74eaf2c935af8074e2017b7c75252", + "checksum": "df7c4accbec2aad9ea338fbcc231655ef7a019c3cb163676741873e4b2301734", "events": [ { "action_id": null, @@ -63811,7 +64578,7 @@ "blood": 0, "detail": "", "direction": 0, - "event_id": 36, + "event_id": 34, "kind": "referee_break", "target_id": "two", "tick": 391 @@ -63842,8 +64609,9 @@ "facing_y": 758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -63902,6 +64670,7 @@ "facing_y": -758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -63966,7 +64735,7 @@ "tick": 391 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 391 }, @@ -63975,7 +64744,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "03829919c8d0f7492413af8ea0d37ad8085da66aa7b054da88e4d8820aa80f0d", + "checksum": "981a2f6134a6eca347e5d4bb2dcef15ace6a0bbc7bbde57f3af4c20e09b86de7", "events": [], "fighters": [ { @@ -64002,8 +64771,9 @@ "facing_y": 761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -64062,6 +64832,7 @@ "facing_y": -761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -64126,7 +64897,7 @@ "tick": 392 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 392 }, @@ -64135,7 +64906,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "945530fc1ac75cbb41ad3ea3a4f2424c183940997b74c9089f823a86971bda17", + "checksum": "cf265bae14465f9be14806bed66da4de7a353407eeefdb93beed13de4f52e45e", "events": [], "fighters": [ { @@ -64162,8 +64933,9 @@ "facing_y": 761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -64222,6 +64994,7 @@ "facing_y": -758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -64286,7 +65059,7 @@ "tick": 393 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 393 }, @@ -64295,7 +65068,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "75a8a0265def7cd98aa89172df4f17405ba4c21a4de5aab5f248bac0289a53c1", + "checksum": "fc4551f1532bf6b58aa0eb7f5199de8b838ea7691dab6045049716a0f19dd8ad", "events": [], "fighters": [ { @@ -64322,8 +65095,9 @@ "facing_y": 758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -64382,6 +65156,7 @@ "facing_y": -757, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -64446,7 +65221,7 @@ "tick": 394 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 394 }, @@ -64455,7 +65230,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "32bce1b6aec593266e4d4e311514a44944966031496fe1f752345cefdc6dafa9", + "checksum": "4f427d87abb92bbd43277b0b2debbf8294c4a37d1dcb8c483c90d60e6c6c578f", "events": [], "fighters": [ { @@ -64482,8 +65257,9 @@ "facing_y": 757, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -64542,6 +65318,7 @@ "facing_y": -761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -64606,7 +65383,7 @@ "tick": 395 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 395 }, @@ -64615,7 +65392,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "48688b77a57a21292caecb0e90968a96ae489a72e222135d329d359c88ce7d18", + "checksum": "85ea6c0558240c9903118a250ae551622a5685560d65498f6c89e93bf9d4fb63", "events": [], "fighters": [ { @@ -64642,8 +65419,9 @@ "facing_y": 761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -64702,6 +65480,7 @@ "facing_y": -760, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -64766,7 +65545,7 @@ "tick": 396 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 396 }, @@ -64775,7 +65554,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "a5959a2c75e1949f704b2bd633222649bc20e1f9a0dd62a17e3bd61e5c674b46", + "checksum": "46e68e6b7f44d3468272c44e4519b5e360689b5eac7eedb34622917076f6a1cc", "events": [], "fighters": [ { @@ -64802,8 +65581,9 @@ "facing_y": 760, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -64862,6 +65642,7 @@ "facing_y": -766, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -64926,7 +65707,7 @@ "tick": 397 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 397 }, @@ -64935,7 +65716,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "1e5d2d1a2e8b2523eea50bce4207d78663414e8fa331bfc48ad212bace71533f", + "checksum": "2af3ac822665df30b0c17d49437f919b67ccc5ac4dfeead9cf264031c7e82538", "events": [], "fighters": [ { @@ -64962,8 +65743,9 @@ "facing_y": 766, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -65022,6 +65804,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -65086,7 +65869,7 @@ "tick": 398 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 398 }, @@ -65095,7 +65878,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "f4af6b28a4c322c77b1a726a98eda39ee641f88dc38a6c2d4536cc531d3193c0", + "checksum": "090d47a5cf2dc4fd2163c7e7b90f89333c2e907b4cf95840501bcb5ebad8f4d3", "events": [], "fighters": [ { @@ -65122,8 +65905,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -65182,6 +65966,7 @@ "facing_y": -761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -65246,7 +66031,7 @@ "tick": 399 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 399 }, @@ -65255,7 +66040,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "a13c9e5aa0ec8c2334b4ceb7d3cc7075b3852f0cc6ef8d8a2f5f23da3029f41b", + "checksum": "8b56cd50c9ea0aa1fe07b8a2812f4d8baaae82f33d9e9108ec405233b797e445", "events": [ { "action_id": null, @@ -65264,7 +66049,7 @@ "blood": 0, "detail": "low_blow", "direction": 0, - "event_id": 37, + "event_id": 35, "kind": "foul", "target_id": "one", "tick": 400 @@ -65295,8 +66080,9 @@ "facing_y": 761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -65355,6 +66141,7 @@ "facing_y": -761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -65419,7 +66206,7 @@ "tick": 400 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 400 }, @@ -65428,7 +66215,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "6de49350b9ced24277b14786d35935205bf5e626a0b0b9a45bb4afa698af0b68", + "checksum": "49d063e64f16ac706fc10203a6061052c112268143afd183fff8ea03673d965b", "events": [], "fighters": [ { @@ -65455,8 +66242,9 @@ "facing_y": 761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -65515,6 +66303,7 @@ "facing_y": -761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -65579,7 +66368,7 @@ "tick": 401 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 401 }, @@ -65588,7 +66377,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "fa2dca21471c707634f702ec4e735f7e6ba0b947e3dc742477aeae6ad420be04", + "checksum": "ed5ba5f67c8ccf4345ef1f85f8db3012dbd4e428ec4847d5e20f9f1d05b00b99", "events": [], "fighters": [ { @@ -65615,8 +66404,9 @@ "facing_y": 761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -65675,6 +66465,7 @@ "facing_y": -761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -65739,7 +66530,7 @@ "tick": 402 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 402 }, @@ -65748,7 +66539,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "bacc1b9f1b337ebc77658d0dbd6d18150d346747ccc328f1a03289313382fc63", + "checksum": "e32d966c39b47784e1b8f1065aae3fd21062fb54592e51e7bba1c1098954a3bf", "events": [], "fighters": [ { @@ -65775,8 +66566,9 @@ "facing_y": 761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -65835,6 +66627,7 @@ "facing_y": -761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -65899,7 +66692,7 @@ "tick": 403 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 403 }, @@ -65908,7 +66701,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "28699ec34e8da090bcba6e8bb269d5472b0b87aee5584f66050960de4bc65ed3", + "checksum": "373f45d60ea45a2a1e910cd16427239a22e52041d324da6039ffe1605b11d668", "events": [], "fighters": [ { @@ -65935,8 +66728,9 @@ "facing_y": 761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -65995,6 +66789,7 @@ "facing_y": -761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -66059,7 +66854,7 @@ "tick": 404 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 404 }, @@ -66068,7 +66863,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "f83fbd97464cfa072b48e764dd46d7710f6ff86ea0cabfffb3c08bb325578f1b", + "checksum": "68e339a6606786bd2eb0f4f57f1205e32756e1a22ae6ec6f9c7c90766417a2d1", "events": [], "fighters": [ { @@ -66095,8 +66890,9 @@ "facing_y": 761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -66155,6 +66951,7 @@ "facing_y": -761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -66219,7 +67016,7 @@ "tick": 405 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 405 }, @@ -66228,7 +67025,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "7086a157daed3ac2ab6e2f5ddea08a8fc25a4ff75353d049fe404dcd2bcc1b4c", + "checksum": "6d2f40977bcd95b92f90029c4ac82af0a885d0ca7225ef86f7bdac8ca4f61d6d", "events": [], "fighters": [ { @@ -66255,8 +67052,9 @@ "facing_y": 761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -66315,6 +67113,7 @@ "facing_y": -761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -66379,7 +67178,7 @@ "tick": 406 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 406 }, @@ -66388,7 +67187,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "2f423e7f78175649f3412895ff785098ee75e0a498dd9df6afed7848371cb170", + "checksum": "468c518831e635a50f5b7ed999f04dc549d06652893c2a4b196ee07c87fbb695", "events": [], "fighters": [ { @@ -66415,8 +67214,9 @@ "facing_y": 761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -66475,6 +67275,7 @@ "facing_y": -761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -66539,7 +67340,7 @@ "tick": 407 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 407 }, @@ -66548,7 +67349,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "b1badace51ef545afdb17fad6e42ff72e4a9fda18be6bc9a09bca7a832992933", + "checksum": "da4030f7c7b89e991f361545560c665570a98c57a31fd51ff420ce6529d8cde2", "events": [], "fighters": [ { @@ -66575,8 +67376,9 @@ "facing_y": 761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -66635,6 +67437,7 @@ "facing_y": -761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -66699,7 +67502,7 @@ "tick": 408 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 408 }, @@ -66708,7 +67511,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "a31ead12de4627f88df695e1be30fa4824db4276e4dd18f8c070f12355046568", + "checksum": "152973a0eb936d748bfc64f4f1c7a7834c1f4feea806dc24abd9ced0bb8ee23d", "events": [], "fighters": [ { @@ -66735,8 +67538,9 @@ "facing_y": 761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -66795,6 +67599,7 @@ "facing_y": -761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -66859,7 +67664,7 @@ "tick": 409 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 409 }, @@ -66868,7 +67673,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "46035254047e687958085fb485452b258365a60bd4c19b21a796ac2b7f6dfdf1", + "checksum": "c78d74c3c301818f08ba580f7599888eeaccc0c965772c372bb03f0af63080d3", "events": [], "fighters": [ { @@ -66895,8 +67700,9 @@ "facing_y": 761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -66955,6 +67761,7 @@ "facing_y": -761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -67019,7 +67826,7 @@ "tick": 410 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 410 }, @@ -67028,7 +67835,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "3d53fcc0ecd92141b110bea0484d67cd32692330ff8945b69456349922ee368b", + "checksum": "0afae7d9c8c464a02f01241747812f1d828d1b899d948b273a9a06e1e65ae913", "events": [], "fighters": [ { @@ -67055,8 +67862,9 @@ "facing_y": 761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -67115,6 +67923,7 @@ "facing_y": -761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -67179,7 +67988,7 @@ "tick": 411 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 411 }, @@ -67188,7 +67997,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "b05748ecc962deee9aa3a762ae5beef5bc8122d4f3715c8169d6986db9269241", + "checksum": "83a4581dca92740c913959bd44632341aff88e1fe53ec2a4f85c00ce98c14da9", "events": [], "fighters": [ { @@ -67215,8 +68024,9 @@ "facing_y": 761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -67275,6 +68085,7 @@ "facing_y": -761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -67339,7 +68150,7 @@ "tick": 412 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 412 }, @@ -67348,7 +68159,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "73b67a64c205e3914574469d355b6da4331e3c270c23bd1977d7e40c1512417b", + "checksum": "15a747739c8f25f95df09a3c2c387556511b6f2f1c296ef46a93498d75f5f8e1", "events": [], "fighters": [ { @@ -67375,8 +68186,9 @@ "facing_y": 761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -67435,6 +68247,7 @@ "facing_y": -761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -67499,7 +68312,7 @@ "tick": 413 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 413 }, @@ -67508,7 +68321,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "c935219fa80b658796dd70d21e3fa8ac3a55cab1be731dc27d89815b7321b301", + "checksum": "f9d9f3780770ad9ffb72171e549b783b1eaad7616687254a7c8df4eb08171ef2", "events": [], "fighters": [ { @@ -67535,8 +68348,9 @@ "facing_y": 761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -67595,6 +68409,7 @@ "facing_y": -761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -67659,7 +68474,7 @@ "tick": 414 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 414 }, @@ -67668,7 +68483,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "b625c9036363dd60745df67a995115f2c8c9d3db69ca6a0684fbd928bf0cbb2e", + "checksum": "0fbc3eec239a0651f8f3e82a24bf3926dddf8875ee6453ea3dfa7bd75fbedd3b", "events": [], "fighters": [ { @@ -67695,8 +68510,9 @@ "facing_y": 761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -67755,6 +68571,7 @@ "facing_y": -761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -67819,7 +68636,7 @@ "tick": 415 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 415 }, @@ -67828,7 +68645,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "37ca1ca9924f6ca70dae6a0621862a119b1268d01eaf4123992da71f2a999fd6", + "checksum": "f47ea6dec3ae87f4c752137474937f25f394176e83e79278ecacd9c751b19100", "events": [], "fighters": [ { @@ -67855,8 +68672,9 @@ "facing_y": 761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -67915,6 +68733,7 @@ "facing_y": -761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -67979,7 +68798,7 @@ "tick": 416 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 416 }, @@ -67988,7 +68807,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "aba7efff6f957df2482deaf41e0003a7f6fbb9e999ad02ed291b158ef5e34fb7", + "checksum": "56653ebfc19a2e0bdf4487cefda3c1678f4355ed4d2bfb9677c899edd2cce289", "events": [], "fighters": [ { @@ -68015,8 +68834,9 @@ "facing_y": 761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -68075,6 +68895,7 @@ "facing_y": -761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -68139,7 +68960,7 @@ "tick": 417 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 417 }, @@ -68148,7 +68969,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e5fd8d102054d29af1ce948af35b62cdc8c324882f8d4bccda19247d146d2473", + "checksum": "4b9a60578f04f377d5750f8de213dda277e9b1bb3a43be7c99b7c65f6a4a2e1b", "events": [], "fighters": [ { @@ -68175,8 +68996,9 @@ "facing_y": 761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -68235,6 +69057,7 @@ "facing_y": -761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -68299,7 +69122,7 @@ "tick": 418 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 418 }, @@ -68308,7 +69131,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e8e8431adee295d836cf0537325bf83d0011cedb228af5a66f09b0d5a949622a", + "checksum": "b54117d09d0c0f854b9cfe9fd96c1ea58f3aff10c724528b8999c49963afb8b2", "events": [], "fighters": [ { @@ -68335,8 +69158,9 @@ "facing_y": 761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -68395,6 +69219,7 @@ "facing_y": -761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -68459,7 +69284,7 @@ "tick": 419 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 419 }, @@ -68468,7 +69293,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "a8445fd27062a7a3656b5f5b6f5cf6710db0b6eec4c8473885a1f7c2dd00b961", + "checksum": "ce552b7224b986ae5cb4e27538f3f700cb1fbf0beb3ca553e79fc92d447f3fe0", "events": [], "fighters": [ { @@ -68495,8 +69320,9 @@ "facing_y": 761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -68555,6 +69381,7 @@ "facing_y": -761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -68619,7 +69446,7 @@ "tick": 420 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 420 }, @@ -68628,7 +69455,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "66a252ee65a569cfb18cba9b5d2f29aaa224a0fbafe7fb1354a1623fee51f569", + "checksum": "9e36ec47bcaabba3971f1ff7ac652a5fa69865a28a7922b114f56f382fe265da", "events": [], "fighters": [ { @@ -68655,8 +69482,9 @@ "facing_y": 761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -68715,6 +69543,7 @@ "facing_y": -761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -68779,7 +69608,7 @@ "tick": 421 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 421 }, @@ -68788,7 +69617,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "5a4fd68f07a619c76d36fd017141178cfa3aaa3a4a63f4bbda13cabc35649562", + "checksum": "aa427a83a25367b71ee18465177951914ed964bc172237285827ddf0b132a156", "events": [], "fighters": [ { @@ -68815,8 +69644,9 @@ "facing_y": 761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -68875,6 +69705,7 @@ "facing_y": -761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -68939,7 +69770,7 @@ "tick": 422 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 422 }, @@ -68948,7 +69779,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e780cdbad6a216a6103cda68518f267d8df6aaad525eecdd21b57f58a4073f6c", + "checksum": "33f23d6d16c0d43cf84ed8330b8c557ba71e41b6112c6a9408d815b571dd8418", "events": [], "fighters": [ { @@ -68975,8 +69806,9 @@ "facing_y": 761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -69035,6 +69867,7 @@ "facing_y": -761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -69099,7 +69932,7 @@ "tick": 423 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 423 }, @@ -69108,7 +69941,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "132dee96b1d54e85ed5a5e09fca54c067ee4ad4f32467a2ca95a6d4373f641fa", + "checksum": "c9df061dbe0d8c33739db628f52f8b396ee8e7496ca8a5f1eb289438ea1fac21", "events": [], "fighters": [ { @@ -69135,8 +69968,9 @@ "facing_y": 761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -69195,6 +70029,7 @@ "facing_y": -761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -69259,7 +70094,7 @@ "tick": 424 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 424 }, @@ -69268,7 +70103,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "668eaee647543fe3ee54782f8e62240b6db77ac888007f618f034d5aed6b2f69", + "checksum": "71fb6103b62ddf02367596570fe76dbf8035209926a29a012a015280046532bb", "events": [], "fighters": [ { @@ -69295,8 +70130,9 @@ "facing_y": 761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -69355,6 +70191,7 @@ "facing_y": -761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -69419,7 +70256,7 @@ "tick": 425 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 425 }, @@ -69428,7 +70265,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "88aff0b0e736a09c5fbdbd5abb6051526563dbe401ae1a32a7d3755358d3c575", + "checksum": "3b1a691a8c5f48d0ca25487c22da5a70cf42d522323a705067227f5b1e06d8f4", "events": [], "fighters": [ { @@ -69455,8 +70292,9 @@ "facing_y": 761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -69515,6 +70353,7 @@ "facing_y": -761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -69579,7 +70418,7 @@ "tick": 426 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 426 }, @@ -69588,7 +70427,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e26f9a336d323aa37434a81e2f35d2b9fb94ea1ee280fccf22283e6beafb4558", + "checksum": "d1f1d58d3dbdd4b8ee6e53f3960e9c753c436ba3e9f3dd879b29e98daf2114e8", "events": [], "fighters": [ { @@ -69615,8 +70454,9 @@ "facing_y": 761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -69675,6 +70515,7 @@ "facing_y": -761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -69739,7 +70580,7 @@ "tick": 427 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 427 }, @@ -69748,7 +70589,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "692fe53a6b7dacc1403ac313e80f78fa48f51632117cc00584c9921b4fad8634", + "checksum": "92bae627933a3af0df9bb645499d3fc2c241feb3585ca74948f94624651bb02b", "events": [], "fighters": [ { @@ -69775,8 +70616,9 @@ "facing_y": 761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -69835,6 +70677,7 @@ "facing_y": -761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -69899,7 +70742,7 @@ "tick": 428 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 428 }, @@ -69908,7 +70751,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "95f9676386f70539b12f304d9fd9ee37759ea06006ad151859c6240a62732ebe", + "checksum": "3621d0655fb6bbf41e8a1916abd7d41ed6f20681472469dcdbd11c62c30bb959", "events": [], "fighters": [ { @@ -69935,8 +70778,9 @@ "facing_y": 761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -69995,6 +70839,7 @@ "facing_y": -761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -70059,7 +70904,7 @@ "tick": 429 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 429 }, @@ -70068,7 +70913,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "702e4ca62ca0ff30bded3acd91f9c53e760a10a4ccb2450c0b1e1fb80fde31b2", + "checksum": "f207ffca70f5774ff64b5511e363d0b15e2a786b5eceb657c792951fc3bdb330", "events": [ { "action_id": null, @@ -70077,7 +70922,7 @@ "blood": 0, "detail": "foul_recovery_complete", "direction": 0, - "event_id": 38, + "event_id": 36, "kind": "resume", "target_id": null, "tick": 430 @@ -70108,8 +70953,9 @@ "facing_y": 761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -70168,6 +71014,7 @@ "facing_y": -761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -70232,7 +71079,7 @@ "tick": 430 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 430 }, @@ -70241,7 +71088,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "c59704ef23db73eb7c7f96b44518db2e8f12d684f5179cabbedcb5a0bda3bc99", + "checksum": "2fc0aa3a325788d2543d132119c9d5338cd25d826469fe61209de3d975ed5d2e", "events": [], "fighters": [ { @@ -70268,8 +71115,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -70328,6 +71176,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -70392,7 +71241,7 @@ "tick": 431 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 431 }, @@ -70401,7 +71250,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "7e03552d7a01aecaf92686303b3e01f885343b036f84d3f1818ae123b63468ac", + "checksum": "4aca9eebe60aed0b1226ac36f1777d4c0229ee932975dd213fb2070c46428b54", "events": [], "fighters": [ { @@ -70428,8 +71277,9 @@ "facing_y": 760, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -70488,6 +71338,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -70552,7 +71403,7 @@ "tick": 432 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 432 }, @@ -70561,7 +71412,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "c71fb4acb23266089ac5c010a3efacc2d008e5499fcdc559df517cfc5334e729", + "checksum": "0815c8c719ffb57a9abe026c3d8b7e437730cf282c49957abb0958f1122d4d05", "events": [], "fighters": [ { @@ -70588,8 +71439,9 @@ "facing_y": 763, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -70648,6 +71500,7 @@ "facing_y": -760, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -70712,7 +71565,7 @@ "tick": 433 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 433 }, @@ -70721,7 +71574,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "be600f19ba7679b39d18c3cdc91131c306e606d7f01958a521503c2c4098b7d9", + "checksum": "16e9cb9d26977ea250f1688c2502e5fe3fecdc5d570de7858507508f35343218", "events": [], "fighters": [ { @@ -70748,8 +71601,9 @@ "facing_y": 761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -70808,6 +71662,7 @@ "facing_y": -763, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -70872,7 +71727,7 @@ "tick": 434 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 434 }, @@ -70881,7 +71736,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "394f1d89500d281542ccbad92cd4cba1bbbb6c763fcc6962fd25d3ff50616659", + "checksum": "0d866bed50229d76c91ff3507f912fba580800e484bae3c0c341bdda74e4c3af", "events": [], "fighters": [ { @@ -70908,8 +71763,9 @@ "facing_y": 760, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -70968,6 +71824,7 @@ "facing_y": -761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -71032,7 +71889,7 @@ "tick": 435 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 435 }, @@ -71041,7 +71898,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "697e10a1c71f2acf7f581570334abbc628234aabe713043c9fbe3971b44b33ed", + "checksum": "00fcd62fa30b7ceeae411aafed8941c2fffde36a09a154e26b7f88f8cc8774b7", "events": [], "fighters": [ { @@ -71068,8 +71925,9 @@ "facing_y": 763, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -71128,6 +71986,7 @@ "facing_y": -760, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -71192,7 +72051,7 @@ "tick": 436 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 436 }, @@ -71201,7 +72060,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "9edd06e6dcb19ce3d8dbad467be9a77ad37814517e9bf85cd84405295510952e", + "checksum": "c04e794177ca0be323b0b2c5c03e8735c4c5fdceac8ee7358021d0fe9517804c", "events": [], "fighters": [ { @@ -71228,8 +72087,9 @@ "facing_y": 762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -71288,6 +72148,7 @@ "facing_y": -763, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -71352,7 +72213,7 @@ "tick": 437 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 437 }, @@ -71361,7 +72222,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "3b6be31958cdacebf0711bad7c477dcfbd4db86ed0cad7ce7198cadc5f810294", + "checksum": "9deab35fa0f58483a8defcf12e5656df8cca5bf2eb4a2d0396270ada8e693b18", "events": [], "fighters": [ { @@ -71388,8 +72249,9 @@ "facing_y": 758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -71448,6 +72310,7 @@ "facing_y": -762, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -71512,7 +72375,7 @@ "tick": 438 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 438 }, @@ -71521,7 +72384,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "5b94385bb49ef751522a42d2b62f5d8418726f465788ffb742a0f8829f7fc6ea", + "checksum": "02b9e7d57effb1ddc80db5fa6af76625233d0b5e9a97f419769dc34944678270", "events": [], "fighters": [ { @@ -71548,8 +72411,9 @@ "facing_y": 754, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -71608,6 +72472,7 @@ "facing_y": -758, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -71672,7 +72537,7 @@ "tick": 439 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 439 }, @@ -71681,7 +72546,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "a9c52832b8290f683dadb8810c6f3c6e0108215d8aac48bc727b6df5dc55a238", + "checksum": "131540e3ced9a0a6c138f679bd5432bb0002dfec82fe45e9fe1423fed8b9d917", "events": [], "fighters": [ { @@ -71708,8 +72573,9 @@ "facing_y": 760, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -71768,6 +72634,7 @@ "facing_y": -754, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -71832,7 +72699,7 @@ "tick": 440 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 440 }, @@ -71841,7 +72708,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "2502edf11817870b892035c00468679fcc6bbcba4d2173516212fdc55d0afb02", + "checksum": "5071a166b8a933f270f6cb1c7423b65bb3be9e5aae738c0aed3c7eedd06f9eb7", "events": [ { "action_id": null, @@ -71850,7 +72717,7 @@ "blood": 0, "detail": "", "direction": 0, - "event_id": 39, + "event_id": 37, "kind": "clinch_start", "target_id": "two", "tick": 441 @@ -71881,8 +72748,9 @@ "facing_y": 760, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -71941,6 +72809,7 @@ "facing_y": -760, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -72005,7 +72874,7 @@ "tick": 441 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 441 }, @@ -72014,7 +72883,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "5d7fea29474595d2a1ed1bc3d3c8c89e0758c854a4d92b62e18737e33a41b55a", + "checksum": "cc38f5fe9feec407bbadf35c7f754c00170d0083d7223b1f434ef9943caf74d6", "events": [], "fighters": [ { @@ -72041,8 +72910,9 @@ "facing_y": 760, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -72101,6 +72971,7 @@ "facing_y": -764, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -72165,7 +73036,7 @@ "tick": 442 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 442 }, @@ -72174,7 +73045,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "d1bbe3ce4f268de67702848df73fd5fe9f35ea80bdbaf8389b197fb251441126", + "checksum": "b1132980958a4c0426ac97ef506c256d5fd75a708923d13240cddeb8bbaa30aa", "events": [], "fighters": [ { @@ -72201,8 +73072,9 @@ "facing_y": 760, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -72261,6 +73133,7 @@ "facing_y": -761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -72325,7 +73198,7 @@ "tick": 443 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 443 }, @@ -72334,7 +73207,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "3a610792562f289b28cfba02c1f6c010bb932f259fe9bdb076d8466c39df81a4", + "checksum": "b2e49a4766453a74b8c2736adcd325e30ff8a750b701c9c5277b7dc634a9959d", "events": [], "fighters": [ { @@ -72361,8 +73234,9 @@ "facing_y": 760, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -72421,6 +73295,7 @@ "facing_y": -761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -72485,7 +73360,7 @@ "tick": 444 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 444 }, @@ -72494,7 +73369,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "6b9595d6f1b6a428d5d7298bebb9a4a157ec118baa97f5b4b19af5fbf49ccedd", + "checksum": "f193207b780964102e357dadbe4ee7a23462a10e91e51c1012542a7d6e5b5ad5", "events": [], "fighters": [ { @@ -72521,8 +73396,9 @@ "facing_y": 760, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -72581,6 +73457,7 @@ "facing_y": -761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -72645,7 +73522,7 @@ "tick": 445 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 445 }, @@ -72654,7 +73531,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "66236e3334916fa697d7c6e093df7bcc35923c2fffadd430cf331993a0a90906", + "checksum": "fb011734299803900c7b1eadd9d81212ba62a9169b34833fd3431e52099f83d6", "events": [], "fighters": [ { @@ -72681,8 +73558,9 @@ "facing_y": 760, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -72741,6 +73619,7 @@ "facing_y": -761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -72805,7 +73684,7 @@ "tick": 446 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 446 }, @@ -72814,7 +73693,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "2a0fe7419a60a0a5d91931d3e4027e7c95dbd359521bb9c1936bc5bbaee7c46f", + "checksum": "d3b474373c973a104b60609c2c4190d5956aee790dcdab5eefbdf795ec6b5651", "events": [ { "action_id": null, @@ -72823,7 +73702,7 @@ "blood": 0, "detail": "", "direction": 0, - "event_id": 40, + "event_id": 38, "kind": "clinch", "target_id": "two", "tick": 447 @@ -72854,8 +73733,9 @@ "facing_y": 760, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -72914,6 +73794,7 @@ "facing_y": -761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -72978,7 +73859,7 @@ "tick": 447 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 447 }, @@ -72987,7 +73868,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "c7b214203e951fad2f3286591b73cd4f1b9b6fb0a304a6900051a5a146f57f0d", + "checksum": "95ab1fa79ca81cd7d333257de790cf5b30911d0bd5903fcfcdc1a9bf064d758f", "events": [], "fighters": [ { @@ -73014,8 +73895,9 @@ "facing_y": 761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -73074,6 +73956,7 @@ "facing_y": -761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -73138,7 +74021,7 @@ "tick": 448 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 448 }, @@ -73147,7 +74030,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "0991a493c999e921b80f3b1e01bd955c8aab44c5adcf3c8f84925a1d14c91efe", + "checksum": "08ef415f083e27935bcf3ce061600caac8ba8b6475af401459683f5f5f356327", "events": [], "fighters": [ { @@ -73174,8 +74057,9 @@ "facing_y": 756, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -73234,6 +74118,7 @@ "facing_y": -756, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -73298,7 +74183,7 @@ "tick": 449 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 449 }, @@ -73307,7 +74192,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "0c17a3234c8ddb4ba8712e082ea027180d8380de17543008e76c78b01ab0d45f", + "checksum": "258951ac189e8309a2ee4ef30578670724e5d2ef1aa2727d7f240e42d0086323", "events": [ { "action_id": null, @@ -73316,7 +74201,7 @@ "blood": 25, "detail": "", "direction": 0, - "event_id": 41, + "event_id": 39, "kind": "bleed", "target_id": null, "tick": 450 @@ -73347,8 +74232,9 @@ "facing_y": 761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -73407,6 +74293,7 @@ "facing_y": -761, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -73471,7 +74358,7 @@ "tick": 450 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 450 }, @@ -73480,7 +74367,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "c23ef9d801ef0b609c632901f93d3ec31f053c58e6e43c3f15734a8130534e49", + "checksum": "bd18e39279dd2091510bec7a7e2efa61599e3612169f28827d129ad55fc88599", "events": [], "fighters": [ { @@ -73507,8 +74394,9 @@ "facing_y": 746, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -73567,6 +74455,7 @@ "facing_y": -746, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -73631,7 +74520,7 @@ "tick": 451 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 451 }, @@ -73640,7 +74529,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "69120810ba71eb3fce39b0e00a6211e1189fdd318b46d00e152dd0673b800898", + "checksum": "6b395cf209e445bcfe15925fd650d2fdb110788afcaeae16c2e5cd21b5f030f9", "events": [], "fighters": [ { @@ -73667,8 +74556,9 @@ "facing_y": 746, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -73727,6 +74617,7 @@ "facing_y": -746, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -73791,7 +74682,7 @@ "tick": 452 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 452 }, @@ -73800,7 +74691,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "a22f66d043d45dc537c291ae19d7517c4ccf9e8a438d6684076948a88ca67902", + "checksum": "3b091bdca3e23fe216f9ac8439f646f4198345357b6b354e30045470684d35df", "events": [], "fighters": [ { @@ -73827,8 +74718,9 @@ "facing_y": 746, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -73887,6 +74779,7 @@ "facing_y": -746, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -73951,7 +74844,7 @@ "tick": 453 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 453 }, @@ -73960,7 +74853,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "ba0f7ad18cc66a599be5ea9324edda204450e4da71cb3adabe485016ec77d65e", + "checksum": "b1f7e76d7487956fee8565edd11abde092ace5712764f5a86d4de81aa48c6467", "events": [], "fighters": [ { @@ -73987,8 +74880,9 @@ "facing_y": 746, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -74047,6 +74941,7 @@ "facing_y": -746, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -74111,7 +75006,7 @@ "tick": 454 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 454 }, @@ -74120,7 +75015,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "9feca3d1e4f5e4c62dd5fa6513a8223714b2dd5e81f7778e5b3f118eacc16e3b", + "checksum": "e9cf5c8a44f63d2427ca97d229a34172bac3025a11e6f205d5954fbd1c83882f", "events": [], "fighters": [ { @@ -74147,8 +75042,9 @@ "facing_y": 746, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -74207,6 +75103,7 @@ "facing_y": -746, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -74271,7 +75168,7 @@ "tick": 455 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 455 }, @@ -74280,7 +75177,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "948a7297ac3ad825805744f2ae631c249e40eb44ebc5ce4f555e1156e84e5d6c", + "checksum": "b55d252d227c949a930c4fda8efc51397744f21c73a10881fa77e4d81a8beb3d", "events": [], "fighters": [ { @@ -74307,8 +75204,9 @@ "facing_y": 746, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -74367,6 +75265,7 @@ "facing_y": -746, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -74431,7 +75330,7 @@ "tick": 456 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 456 }, @@ -74440,7 +75339,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "2360cd18361b6868403f282b1abb7fca854eb441873cd26e82cf999339820f01", + "checksum": "9f79a41ad4331c44d384e990b77e0064009ac0c12b31b20cd48ed4c956f278e0", "events": [ { "action_id": null, @@ -74449,7 +75348,7 @@ "blood": 0, "detail": "round_end", "direction": 0, - "event_id": 42, + "event_id": 40, "kind": "bell", "target_id": null, "tick": 457 @@ -74461,7 +75360,7 @@ "blood": 0, "detail": "", "direction": 0, - "event_id": 43, + "event_id": 41, "kind": "referee_break", "target_id": "two", "tick": 457 @@ -74492,8 +75391,9 @@ "facing_y": 746, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -74552,6 +75452,7 @@ "facing_y": -746, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -74616,7 +75517,7 @@ "tick": 457 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 457 }, @@ -74625,7 +75526,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "785c7ef5ae828610fd016369992f50f6c34664f6e92e10efceda1fbda7a5f282", + "checksum": "a35c234bba19c0df3ecedfa8a5c2d880517e82cd0acba1bcd28760e0b501b151", "events": [], "fighters": [ { @@ -74652,8 +75553,9 @@ "facing_y": -616, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -74712,6 +75614,7 @@ "facing_y": 563, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -74776,7 +75679,7 @@ "tick": 458 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 458 }, @@ -74785,7 +75688,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "741913e9497fb34c5015128bf10b75057f12d86c454453bb788690cd29bb3c8a", + "checksum": "b51057a279e4528f56a260535ce9dc4ac0870bd106475b44f7010eeba05cb9cc", "events": [ { "action_id": null, @@ -74794,7 +75697,7 @@ "blood": 0, "detail": "cut", "direction": 0, - "event_id": 44, + "event_id": 42, "kind": "corner", "target_id": null, "tick": 459 @@ -74806,7 +75709,7 @@ "blood": 0, "detail": "swelling", "direction": 0, - "event_id": 45, + "event_id": 43, "kind": "corner", "target_id": null, "tick": 459 @@ -74837,8 +75740,9 @@ "facing_y": -616, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -74897,6 +75801,7 @@ "facing_y": 565, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -74961,7 +75866,7 @@ "tick": 459 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 459 }, @@ -74970,7 +75875,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "f999644e38619b09e0bf73af84cf5315a066650ca1f28fd8b2161b98a853eeff", + "checksum": "bcc0f866c8ac5fb3de54b4e05bcab7cb3b1b479afc0b7aa787ac18bb144a8056", "events": [], "fighters": [ { @@ -74997,8 +75902,9 @@ "facing_y": -616, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -75057,6 +75963,7 @@ "facing_y": 564, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -75121,7 +76028,7 @@ "tick": 460 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 460 }, @@ -75130,7 +76037,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "306ca7e6c38db36c182df5359ba21d4d7335fee1ecac2dd970a1fbb19c11d823", + "checksum": "05898b6f7f89871e6341597057fc0da3548bc195bb173b13a052486ff9f84a8b", "events": [], "fighters": [ { @@ -75157,8 +76064,9 @@ "facing_y": -616, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -75217,6 +76125,7 @@ "facing_y": 564, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -75281,7 +76190,7 @@ "tick": 461 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 461 }, @@ -75290,7 +76199,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "f729dbd33cdc971a58deb9c8283079d9abb6f132936b777634e5c6fea08c0e40", + "checksum": "28870de261773de35aff6bb490d3ea4de593b363040e77e8bfc89a6d123dd13a", "events": [], "fighters": [ { @@ -75317,8 +76226,9 @@ "facing_y": -616, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -75377,6 +76287,7 @@ "facing_y": 565, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -75441,7 +76352,7 @@ "tick": 462 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 462 }, @@ -75450,7 +76361,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "34549c3d15e732562884375b0cd98565b5955ec3dd429b4328d359baee8be5db", + "checksum": "e6de213dad6da57d7f7c6664bfe23238072121768897bdb14b8942d4961ec163", "events": [], "fighters": [ { @@ -75477,8 +76388,9 @@ "facing_y": -617, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -75537,6 +76449,7 @@ "facing_y": 564, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -75601,7 +76514,7 @@ "tick": 463 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 463 }, @@ -75610,7 +76523,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "feb777a3850b30b4a206e41b4bd8288e9a1b85a32a3be66513ce8b7e3320d9fb", + "checksum": "cca7742e168b8bd2a862e4fd33244cbb853140aadaf9c0e7d7ccd589174de658", "events": [], "fighters": [ { @@ -75637,8 +76550,9 @@ "facing_y": -617, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -75697,6 +76611,7 @@ "facing_y": 564, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -75761,7 +76676,7 @@ "tick": 464 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 464 }, @@ -75770,7 +76685,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "3ec824bb34e8a9e3ad31ac81237e5f3f847345cab38c50922fe2c48cbf1698d8", + "checksum": "886f4da89d929b5f1d0a975fe43c2ddc3426c541b6a7de39c5be3ecf1b2b4bd5", "events": [], "fighters": [ { @@ -75797,8 +76712,9 @@ "facing_y": -617, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -75857,6 +76773,7 @@ "facing_y": 563, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -75921,7 +76838,7 @@ "tick": 465 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 465 }, @@ -75930,7 +76847,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "9686bdd61660be5c06c1e21ed52318cca7388d1ce78a2a0a5f18b465ccdb25f0", + "checksum": "34d6454682c481a44c77d9cdd2ba3116d3d5d0b46a61d0e8eb30289d03c2c77f", "events": [], "fighters": [ { @@ -75957,8 +76874,9 @@ "facing_y": -617, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -76017,6 +76935,7 @@ "facing_y": 564, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -76081,7 +77000,7 @@ "tick": 466 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 466 }, @@ -76090,7 +77009,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "32c2ad198b484ff2fb9bed371c197f9163715b3287bd49c2bed58c62e1729a35", + "checksum": "b2d21d54acf07bd802afd739bfdca9439a92561880c94dcce64861d858408949", "events": [], "fighters": [ { @@ -76117,8 +77036,9 @@ "facing_y": -616, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -76177,6 +77097,7 @@ "facing_y": 566, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -76241,7 +77162,7 @@ "tick": 467 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 467 }, @@ -76250,7 +77171,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "fb8f20e48fd3f8b82249eff04466d635a6671e388174617718b7eaab1d134a02", + "checksum": "ffb1591a710c0a37831d6795e36bfba391804ad1767d63cce3004c9d7a983302", "events": [], "fighters": [ { @@ -76277,8 +77198,9 @@ "facing_y": -616, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -76337,6 +77259,7 @@ "facing_y": 565, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -76401,7 +77324,7 @@ "tick": 468 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 468 }, @@ -76410,7 +77333,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "32b6302581d5b84c3440d380f75e561d2132dd74421412bccf96378b30b4cd89", + "checksum": "1d75518a6d713d34b0c6199693fbe080e74bf1256090a2f53c1c1b33259b3524", "events": [], "fighters": [ { @@ -76437,8 +77360,9 @@ "facing_y": -617, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -76497,6 +77421,7 @@ "facing_y": 563, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -76561,7 +77486,7 @@ "tick": 469 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 469 }, @@ -76570,7 +77495,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "948c1d32b65218977a8ad2e90b0e3a6bd3ede3f0b213e68d3c7b45fde0794210", + "checksum": "a50db09be86b5656a9c25ac430b0b0e6db08fbfd75d106782c46d3f53683b39d", "events": [], "fighters": [ { @@ -76597,8 +77522,9 @@ "facing_y": -617, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -76657,6 +77583,7 @@ "facing_y": 566, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -76721,7 +77648,7 @@ "tick": 470 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 470 }, @@ -76730,7 +77657,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "18d36f00028116f7777e8dbc5b14cec3df7e7f81790fde34a3f7187b764b7887", + "checksum": "39ed3a671d46cb5bc955b0c20f7835a1d5722696d2fa051e4ba25bcc0c26794f", "events": [], "fighters": [ { @@ -76757,8 +77684,9 @@ "facing_y": -617, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -76817,6 +77745,7 @@ "facing_y": 564, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -76881,7 +77810,7 @@ "tick": 471 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 471 }, @@ -76890,7 +77819,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "5f11c68cc07268099e50cffe3147cac571bdbd3fddba181a9c94e764ccab4376", + "checksum": "3222ccd06756fbd7d7c339433a1cc511e5931b1b6f8b73e9aa459b4c2002b4ed", "events": [], "fighters": [ { @@ -76917,8 +77846,9 @@ "facing_y": -617, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -76977,6 +77907,7 @@ "facing_y": 563, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -77041,7 +77972,7 @@ "tick": 472 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 472 }, @@ -77050,7 +77981,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "cd42bd223f7a4bfa4f30ee5c6ab62ab69cc9f181b458f6f8652319afbb22d42e", + "checksum": "77413b087e46ad9d77420945bb33d643cdd48d0a1c2bc69781ac8aa3cb261a00", "events": [], "fighters": [ { @@ -77077,8 +78008,9 @@ "facing_y": -617, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -77137,6 +78069,7 @@ "facing_y": 566, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -77201,7 +78134,7 @@ "tick": 473 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 473 }, @@ -77210,7 +78143,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "c6c5290d0ba5775ee36d3697a3edc059508b54f856b0c1415be3afadfe3387b6", + "checksum": "ae43549badbdb0be525accd29fc9245b10bff3fab1951c9364645e0520b61ad0", "events": [], "fighters": [ { @@ -77237,8 +78170,9 @@ "facing_y": -618, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -77297,6 +78231,7 @@ "facing_y": 564, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -77361,7 +78296,7 @@ "tick": 474 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 474 }, @@ -77370,7 +78305,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e52b09bd5217f912972fd58941e6dfc046a35cb25f91421a1460c96b8b43bb7b", + "checksum": "2efd163ada58669364cfe5fde389ad5cc6d82dde65a75685f8a4fcb08b00548e", "events": [], "fighters": [ { @@ -77397,8 +78332,9 @@ "facing_y": -617, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -77457,6 +78393,7 @@ "facing_y": 565, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -77521,7 +78458,7 @@ "tick": 475 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 475 }, @@ -77530,7 +78467,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "39c9cf82572a6a63ef263d63258a7a3f25dc807afc8267f357aa8da3165e7f08", + "checksum": "461cf4af68fb1bf8ab91ffb670d21081db31ec4c619838500c5e03f8677c9842", "events": [], "fighters": [ { @@ -77557,8 +78494,9 @@ "facing_y": -615, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -77617,6 +78555,7 @@ "facing_y": 563, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -77681,7 +78620,7 @@ "tick": 476 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 476 }, @@ -77690,7 +78629,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "381bb89f21d27da4f2dba96cf21ec71e46394db3390f46a2b1aa80882f4fb82f", + "checksum": "9f9d3ab58e5b40c08256806d20a9d0842f96870250798289e569724646f188e8", "events": [], "fighters": [ { @@ -77717,8 +78656,9 @@ "facing_y": -615, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -77777,6 +78717,7 @@ "facing_y": 564, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -77841,7 +78782,7 @@ "tick": 477 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 477 }, @@ -77850,7 +78791,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "14a7e2f0ef28cfc48ad42d414f1d423c6d5c784e8e003e1a3818412b949c99c1", + "checksum": "23037a1c42074dc57d500cb90fe8ee452e0cda9107c924586eff5b98c2cfc9ba", "events": [], "fighters": [ { @@ -77877,8 +78818,9 @@ "facing_y": -616, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -77937,6 +78879,7 @@ "facing_y": 567, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -78001,7 +78944,7 @@ "tick": 478 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 478 }, @@ -78010,7 +78953,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "608a3a24053a425809900edd02d9064c1ea86ad47f8778210612c429104d572c", + "checksum": "945b3b059c4b105f06e4390a89ab718e399615e4ad2e0febb635864a313e0159", "events": [], "fighters": [ { @@ -78037,8 +78980,9 @@ "facing_y": -616, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -78097,6 +79041,7 @@ "facing_y": 565, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -78161,7 +79106,7 @@ "tick": 479 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 479 }, @@ -78170,7 +79115,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "b0a59a617d4699733cc73ebd7e5471fc0e9b07ddea14b275db6c35bc2863b5a0", + "checksum": "605147baa9b45898797c041f9bcacb40d7553fd242269d44998d7c338288c96f", "events": [], "fighters": [ { @@ -78197,8 +79142,9 @@ "facing_y": -617, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -78257,6 +79203,7 @@ "facing_y": 563, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -78321,7 +79268,7 @@ "tick": 480 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 480 }, @@ -78330,7 +79277,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "29c73f7edf4556dca0888ae9749f43991a586da7f198648dafa35f7dee06152e", + "checksum": "1f1772cb1e27be679250d4341c29904638037991a57d4efa63f809ce62e12c28", "events": [], "fighters": [ { @@ -78357,8 +79304,9 @@ "facing_y": -617, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -78417,6 +79365,7 @@ "facing_y": 567, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -78481,7 +79430,7 @@ "tick": 481 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 481 }, @@ -78490,7 +79439,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "b28ec518900b424e007cead819dd1a9e87b59f58d5c3946b71b0b0f100314794", + "checksum": "8d2e24e48bcbd6455c4a5a5a39983ec9fbc2d0383a2b2595cbb41552cc16f51e", "events": [], "fighters": [ { @@ -78517,8 +79466,9 @@ "facing_y": -617, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -78577,6 +79527,7 @@ "facing_y": 565, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -78641,7 +79592,7 @@ "tick": 482 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 482 }, @@ -78650,7 +79601,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "1908975462639b4889c487ba9a7e38a45aca6371bcc8251fc895cf34a6040719", + "checksum": "db73ea1c1ee3c822bdf5262eb27fbf8cbb5ad38980725a4796e0d5b5a32097ec", "events": [], "fighters": [ { @@ -78677,8 +79628,9 @@ "facing_y": -615, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -78737,6 +79689,7 @@ "facing_y": 563, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -78801,7 +79754,7 @@ "tick": 483 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 483 }, @@ -78810,7 +79763,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "7414f4f1ab600e6acde829ae3b28d6bfca9cfe77f735ccceed9ca1aa48b393d2", + "checksum": "08611d96d841a6466e7c0c7b753f3ce655dd9792f7135e2a933d2a028b2caaf7", "events": [], "fighters": [ { @@ -78837,8 +79790,9 @@ "facing_y": -616, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -78897,6 +79851,7 @@ "facing_y": 568, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -78961,7 +79916,7 @@ "tick": 484 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 484 }, @@ -78970,7 +79925,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "5180f6f6992c558e093f369f53fbe1abe0001e4aa96765d6423bb6e219b48ba3", + "checksum": "b284185282164cd863a06cbe687eae94ad71359e69138b4d49e3a22661c3248e", "events": [], "fighters": [ { @@ -78997,8 +79952,9 @@ "facing_y": -616, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -79057,6 +80013,7 @@ "facing_y": 565, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -79121,7 +80078,7 @@ "tick": 485 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 485 }, @@ -79130,7 +80087,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "4b6ac7e07084c6b20bc23bb5e38dd935cb5f9f36f971b5765f679eb2cac66a85", + "checksum": "3acdce329eb652897601870afac429c2e74deafd3a18943c33fddee5553373ad", "events": [], "fighters": [ { @@ -79157,8 +80114,9 @@ "facing_y": -617, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -79217,6 +80175,7 @@ "facing_y": 562, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -79281,7 +80240,7 @@ "tick": 486 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 486 }, @@ -79290,7 +80249,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "571ccb720f737c517a91b67d92d4296d62b9a12a197413ced1a8097ffba921ea", + "checksum": "571387a9ecbfaa8601377b0f725f8738ca617dd58e8ac925bcb2c2427e1c8cb0", "events": [], "fighters": [ { @@ -79317,8 +80276,9 @@ "facing_y": -617, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -79377,6 +80337,7 @@ "facing_y": 568, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -79441,7 +80402,7 @@ "tick": 487 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 487 }, @@ -79450,7 +80411,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "c4394c4220c4861e4efc05ecc24d981fb3869d609aa40d96122649f21b610c1d", + "checksum": "2106267febace0ab37f1acae91790006300dd1fb0ebf9059ae2af03249e4eae7", "events": [], "fighters": [ { @@ -79477,8 +80438,9 @@ "facing_y": -618, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -79537,6 +80499,7 @@ "facing_y": 565, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -79601,7 +80564,7 @@ "tick": 488 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 488 }, @@ -79610,7 +80573,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "944123ae64d76e2caf2184521982cb052ee38ea6adda5796093f49ee2263e545", + "checksum": "61d78ada502abfe6fb76a975b23401dc37a3038b5054ed684a541838573c8517", "events": [], "fighters": [ { @@ -79637,8 +80600,9 @@ "facing_y": -617, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -79697,6 +80661,7 @@ "facing_y": 560, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -79761,7 +80726,7 @@ "tick": 489 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 489 }, @@ -79770,7 +80735,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "2067aa8643bc61473d20f166eeb7a0c8cba89ccd9e043141265cbd3e646016b3", + "checksum": "a93855b63eea854ba5a1297cc27c376dc5a89e39e3325fdb2eca8e7fbf0a6f3f", "events": [], "fighters": [ { @@ -79797,8 +80762,9 @@ "facing_y": -618, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -79857,6 +80823,7 @@ "facing_y": 569, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -79921,7 +80888,7 @@ "tick": 490 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 490 }, @@ -79930,7 +80897,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "6ef8af7ee28be6289445ff755ab520a6a4a4961a81a68f71b1cbe1a3369e5b68", + "checksum": "24cef46ea3da0f60dbcf053ea8252653df5315a3ffe77b42e9ebc557d0263d1e", "events": [], "fighters": [ { @@ -79957,8 +80924,9 @@ "facing_y": -616, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -80017,6 +80985,7 @@ "facing_y": 573, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -80081,7 +81050,7 @@ "tick": 491 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 491 }, @@ -80090,7 +81059,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "0223c4f8be5b3162dae3b83d408292427b48df35ddf7499bf30773bc6c46fe9a", + "checksum": "4f2b7d895212f8ee09991e1beec55b73d362c1eb21b5cc77488e6e6dd6db075a", "events": [], "fighters": [ { @@ -80117,8 +81086,9 @@ "facing_y": -617, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -80177,6 +81147,7 @@ "facing_y": 568, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -80241,7 +81212,7 @@ "tick": 492 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 492 }, @@ -80250,7 +81221,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "bc23de5f5349542979e2cbfe43dcb653e47bfbe23920e3fa5a96ef35b7db658f", + "checksum": "c120a1985535b88816e3bc2bbbe89a9e45eadf78cbba076fbdabea8f030a0463", "events": [], "fighters": [ { @@ -80277,8 +81248,9 @@ "facing_y": -617, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -80337,6 +81309,7 @@ "facing_y": 571, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -80401,7 +81374,7 @@ "tick": 493 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 493 }, @@ -80410,7 +81383,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "bf0ff2acc9000e3a3bd53aa7f56ccfd16fee29b44e798cd911bd6983bc198f24", + "checksum": "feedcd35a2eeca57a091d336a610608599d51b078913c6c887a5193bb96c2d50", "events": [], "fighters": [ { @@ -80437,8 +81410,9 @@ "facing_y": -618, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -80497,6 +81471,7 @@ "facing_y": 580, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -80561,7 +81536,7 @@ "tick": 494 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 494 }, @@ -80570,7 +81545,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "d416325843390bbc3a7975debe1e48ef9ac52ebc78591449a8033dd70882ed0b", + "checksum": "e6aaea28b473b18e05e7255b16e92cd8d219b803cee0bb8a22ea28a49711b350", "events": [], "fighters": [ { @@ -80597,8 +81572,9 @@ "facing_y": -617, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -80657,6 +81633,7 @@ "facing_y": 571, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -80721,7 +81698,7 @@ "tick": 495 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 495 }, @@ -80730,7 +81707,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "cfff520f71cf60b7c304de6834b7e16278df6d1eaa72a5e70a8a45fdca2905bf", + "checksum": "50388f5a8a1495d67ea41bfd1d288e27c935bf66fa1e18bbb95291d32f2fc7a4", "events": [], "fighters": [ { @@ -80757,8 +81734,9 @@ "facing_y": -618, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -80817,6 +81795,7 @@ "facing_y": 636, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -80881,7 +81860,7 @@ "tick": 496 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 496 }, @@ -80890,7 +81869,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "7005f8a7052a96682b7a914d1699bb3a4ea8515d8bc224a6ca4924433cef2a55", + "checksum": "1e22569c1b3181b425496a1fa729b58acf65d788a9a94d4ec9a8b6237280e481", "events": [], "fighters": [ { @@ -80917,8 +81896,9 @@ "facing_y": -619, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -80977,6 +81957,7 @@ "facing_y": 562, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -81041,7 +82022,7 @@ "tick": 497 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 497 }, @@ -81050,7 +82031,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "9ff4ef42182f2d6870e89e250bbe49c8e10db7d77c3b5b0777e3a77cddaa8a3e", + "checksum": "774f68fe0667f5869d651df423bb0186ee4b806c3e1d72e2813d8787a740f877", "events": [], "fighters": [ { @@ -81077,8 +82058,9 @@ "facing_y": -619, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -81137,6 +82119,7 @@ "facing_y": 508, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -81201,7 +82184,7 @@ "tick": 498 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 498 }, @@ -81210,7 +82193,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "9a847a5d84486a0fb9205b2ea02cbc6a1137bb701f09420547eb27752d06fb14", + "checksum": "134d4488bbfdf8676c0da64d4dab84f69f2b41d49543a9cdd1ddec37084cc107", "events": [], "fighters": [ { @@ -81237,8 +82220,9 @@ "facing_y": -620, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -81297,6 +82281,7 @@ "facing_y": 452, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -81361,7 +82346,7 @@ "tick": 499 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 499 }, @@ -81370,7 +82355,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "705e1d5e3b4c6f0d063affac639c963379759f21167bb6a3eb9338f351924f5b", + "checksum": "d1f54dc47047858de68a5a740f65d0dc0eecc495c154c55053536dbc44231c03", "events": [], "fighters": [ { @@ -81397,8 +82382,9 @@ "facing_y": -614, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -81457,6 +82443,7 @@ "facing_y": 394, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -81521,7 +82508,7 @@ "tick": 500 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 500 }, @@ -81530,7 +82517,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "f292cd8ca76f75f1c23c6269a8bd06f0ab109f52baaaca143a5086555662e922", + "checksum": "2fbf8c8488ce6752b63acbc76009ce52c1ec15c7515e459fff1a1bf53e3a2423", "events": [], "fighters": [ { @@ -81557,8 +82544,9 @@ "facing_y": -615, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -81617,6 +82605,7 @@ "facing_y": 334, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -81681,7 +82670,7 @@ "tick": 501 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 501 }, @@ -81690,7 +82679,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e2ee2652b22458f5f86cc41d197294a9a976e7862a598f650763d970e8bc3efe", + "checksum": "769177e98f70016b38cb68fe09114b706e8c827b5d1c727487ab72fe631a6ede", "events": [], "fighters": [ { @@ -81717,8 +82706,9 @@ "facing_y": -615, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -81777,6 +82767,7 @@ "facing_y": 273, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -81841,7 +82832,7 @@ "tick": 502 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 502 }, @@ -81850,7 +82841,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "521c262a0f2346b795cb3e82424c7da120e6744619bc5c664fd45bb260c90c76", + "checksum": "b30497e52f508ecfb1109a428f3a039d9620360840d7601c62d1a49c93dfde96", "events": [], "fighters": [ { @@ -81877,8 +82868,9 @@ "facing_y": -616, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -81937,6 +82929,7 @@ "facing_y": 211, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -82001,7 +82994,7 @@ "tick": 503 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 503 }, @@ -82010,7 +83003,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "ccdc4c7cb07b1bc3a535c96a0b9158d5314b1aa0baa5c63ed5a150c2b2fa6179", + "checksum": "4ed4cdf2d1a788e18d70ab0698a60bc520b5c772a9a2a7b03e3d0ede23b7f5f6", "events": [], "fighters": [ { @@ -82037,8 +83030,9 @@ "facing_y": -617, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -82097,6 +83091,7 @@ "facing_y": 148, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -82161,7 +83156,7 @@ "tick": 504 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 504 }, @@ -82170,7 +83165,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "a87d4105917327d7ffdf5f0dc953c41a1106bed6490013f01319d4706c6cc45e", + "checksum": "1bec9b27449b72315aaf44c09ea86df3de2e84dd196b14cd98f46ac31e223c73", "events": [], "fighters": [ { @@ -82197,8 +83192,9 @@ "facing_y": -618, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -82257,6 +83253,7 @@ "facing_y": 84, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -82321,7 +83318,7 @@ "tick": 505 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 505 }, @@ -82330,7 +83327,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "73b3a8992d1b96bcccd851052a2fc3e7e4f22a9402b7a7dab47da4743247713a", + "checksum": "9069ea18f6536684cb49c5346129587aaed6d52f68b139f1fae9276e8f17edf1", "events": [], "fighters": [ { @@ -82357,8 +83354,9 @@ "facing_y": -617, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -82417,6 +83415,7 @@ "facing_y": 20, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -82481,7 +83480,7 @@ "tick": 506 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 506 }, @@ -82490,7 +83489,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "3b5e6d8fb69c5242e86d8e886c401e8b1329063cdf8b64e4e94c6eb1cf13b4af", + "checksum": "b74c3646f3fd921928104cea844dec2733fa0a392bc5829058535015389ee292", "events": [], "fighters": [ { @@ -82517,8 +83516,9 @@ "facing_y": -618, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -82577,6 +83577,7 @@ "facing_y": -44, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -82641,7 +83642,7 @@ "tick": 507 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 507 }, @@ -82650,7 +83651,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "680cb388b931c2b76d9d8f30c6d148ee7d302f2b23ee60074f72251d3e734a91", + "checksum": "f469483263e70f7e2dcd5f1a0faf975a435e1179b3a6e1b3500125f6607d37eb", "events": [], "fighters": [ { @@ -82677,8 +83678,9 @@ "facing_y": -615, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -82737,6 +83739,7 @@ "facing_y": -108, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -82801,7 +83804,7 @@ "tick": 508 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 508 }, @@ -82810,7 +83813,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "0ecbada449b23b4a747f3e6b8f179a12c18fac3ffb3f9914ee92811d869c11b8", + "checksum": "1146e1cf55d3be7370c7cf9b78d98f43dda1ef63f4e7673ae4bbfddd5b226db4", "events": [], "fighters": [ { @@ -82837,8 +83840,9 @@ "facing_y": -616, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -82897,6 +83901,7 @@ "facing_y": -171, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -82961,7 +83966,7 @@ "tick": 509 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 509 }, @@ -82970,7 +83975,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "dc8dd2284635a1f4eae81e0961128f2ef3f0bad5aea798c2774f475ec355c3d0", + "checksum": "c4869af61e8c05d17fed87111872d768939b597d8a407eab83baa326ed5b470e", "events": [], "fighters": [ { @@ -82997,8 +84002,9 @@ "facing_y": -617, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -83057,6 +84063,7 @@ "facing_y": -234, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -83121,7 +84128,7 @@ "tick": 510 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 510 }, @@ -83130,7 +84137,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "a593102eb4d2bd456857381f28e8a12c0ba26d8610b67639854e370f46d23496", + "checksum": "1315e54dd95c21f0ea24ca2d6dc97804b5e1c75a0e9400aa24fe207bd666499f", "events": [], "fighters": [ { @@ -83157,8 +84164,9 @@ "facing_y": -619, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -83217,6 +84225,7 @@ "facing_y": -296, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -83281,7 +84290,7 @@ "tick": 511 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 511 }, @@ -83290,7 +84299,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "1c84d329ebb32007eb19384c2114c318c36a727ce662a31a58ea87b38754f753", + "checksum": "163b2faf1ccd9ed1e8592475f232cbebfa3a012c88dbc56249c05bbd602cba31", "events": [], "fighters": [ { @@ -83317,8 +84326,9 @@ "facing_y": -617, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -83377,6 +84387,7 @@ "facing_y": -357, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -83441,7 +84452,7 @@ "tick": 512 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 512 }, @@ -83450,7 +84461,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e490bdff41f87e8d3124a85d8d7df14658eedf45dab9932ba39adaa99b818b0c", + "checksum": "b7a074c1c155c07395995ae2a5331b99a4871b53b9d5cd7f71c137d213c75e4d", "events": [], "fighters": [ { @@ -83477,8 +84488,9 @@ "facing_y": -619, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -83537,6 +84549,7 @@ "facing_y": -416, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -83601,7 +84614,7 @@ "tick": 513 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 513 }, @@ -83610,7 +84623,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "2f7d703527d1b74a3c582fc5a088fcd40f9789c11a8f16d0a87cc9de5e720ff1", + "checksum": "605ae60fb0b26f0997d18d77d630c5e935cc0bf126741ee4ef2380964a8bc231", "events": [], "fighters": [ { @@ -83637,8 +84650,9 @@ "facing_y": -621, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -83697,6 +84711,7 @@ "facing_y": -473, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -83761,7 +84776,7 @@ "tick": 514 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 514 }, @@ -83770,7 +84785,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "bb0ace3f8908283ce6b0164edf59ebb2506ae30427a7fa4e962acc4755741502", + "checksum": "3bac48eea7a79928be03be6ac2e3dcc8f05fa1d7cb6b4d9401870da1bf693843", "events": [], "fighters": [ { @@ -83797,8 +84812,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -83857,6 +84873,7 @@ "facing_y": -528, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -83921,7 +84938,7 @@ "tick": 515 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 515 }, @@ -83930,7 +84947,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "9d013e99ffcf7bfec9afe483017a66ff90a1a0c9e85c770483e1d3c111525d11", + "checksum": "44f1195ad7e488deeb7289c428def565b9f5637fbeec037e3d305073b565eb26", "events": [], "fighters": [ { @@ -83957,8 +84974,9 @@ "facing_y": -629, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -84017,6 +85035,7 @@ "facing_y": -581, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -84081,7 +85100,7 @@ "tick": 516 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 516 }, @@ -84090,7 +85109,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "6490fa1e57b3b854a453ad2c0909a7da2908f32f983152264ee67acdc45c3140", + "checksum": "353e639a40bde025779d4382e5e25835603794ea5efb639ec81842e56378784b", "events": [], "fighters": [ { @@ -84117,8 +85136,9 @@ "facing_y": -615, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -84177,6 +85197,7 @@ "facing_y": -632, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -84241,7 +85262,7 @@ "tick": 517 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 517 }, @@ -84250,7 +85271,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "6f1c3b2e4bd463a69988a5efe8e7ba2e37f6db12c53e3e1e98b833a10f9ba52b", + "checksum": "669058907d6060798305f9f92291aaf237d7324ebd0311ef9a851223ad502004", "events": [], "fighters": [ { @@ -84277,8 +85298,9 @@ "facing_y": -619, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -84337,6 +85359,7 @@ "facing_y": -680, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -84401,7 +85424,7 @@ "tick": 518 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 518 }, @@ -84410,7 +85433,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "c0a8abb89f08a13bf08dab184840e12aea7ba49f5494bb18da9fb7915714b5b6", + "checksum": "1db56cbba64e3ce96205913ba1654ff8a720b0fa9a24533f7f419855b09b49cb", "events": [], "fighters": [ { @@ -84437,8 +85460,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -84497,6 +85521,7 @@ "facing_y": -726, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -84561,7 +85586,7 @@ "tick": 519 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 519 }, @@ -84570,7 +85595,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "f041931752a4d3ec4a7a018422516011e716c795aef5117ee08c432158ac0326", + "checksum": "7928579d7b39b8712f70500bd84cfa04214ed090a328171f35fce5dfb174f5df", "events": [], "fighters": [ { @@ -84597,8 +85622,9 @@ "facing_y": -636, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -84657,6 +85683,7 @@ "facing_y": -768, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -84721,7 +85748,7 @@ "tick": 520 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 520 }, @@ -84730,7 +85757,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "a3e456647965b6523249666b3d78e7390f297aa277c9b8ae85e3050800169203", + "checksum": "9a7dc6c39b939f47851bd7872abcf1d31da02e2728cf600f434edcbfbfa3d61c", "events": [], "fighters": [ { @@ -84757,8 +85784,9 @@ "facing_y": -636, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -84817,6 +85845,7 @@ "facing_y": -808, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -84881,7 +85910,7 @@ "tick": 521 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 521 }, @@ -84890,7 +85919,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "5eeb8c04e4340f1e6c6c0585f85854c33d1316b35f865ca7c7549360ce5475cd", + "checksum": "c9751fd621238820b321c909666ed56ad8f3050379afbfeb446ab96f939f286c", "events": [], "fighters": [ { @@ -84917,8 +85946,9 @@ "facing_y": -562, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -84977,6 +86007,7 @@ "facing_y": -844, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -85041,7 +86072,7 @@ "tick": 522 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 522 }, @@ -85050,7 +86081,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e7bf2a26a4f820a3c30b9df7a37f5199beef1652fdc9d67ca1813c31f86de6ef", + "checksum": "fc89082903faa2fc9e3399d073fca2370091e4b43607ca5b30e88525116f8f6d", "events": [], "fighters": [ { @@ -85077,8 +86108,9 @@ "facing_y": -508, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -85137,6 +86169,7 @@ "facing_y": -876, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -85201,7 +86234,7 @@ "tick": 523 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 523 }, @@ -85210,7 +86243,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "522a19f9591a406b59dbbe3872704078a39733f1fa9d5349da876da55e6e39bb", + "checksum": "e742e93452527c7b987a24a112bd678edd4a2c23f0549fd85753ef8dabbea59f", "events": [], "fighters": [ { @@ -85237,8 +86270,9 @@ "facing_y": -452, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -85297,6 +86331,7 @@ "facing_y": -905, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -85361,7 +86396,7 @@ "tick": 524 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 524 }, @@ -85370,7 +86405,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "39aa10609d421b2b47198a7bd95adaa4bfeadb83151648449fd862ce30729e7d", + "checksum": "a864e62d16a3d96fc1b168932f3f28b5a3cb488a742ac90ce13db3ea49e0cd23", "events": [], "fighters": [ { @@ -85397,8 +86432,9 @@ "facing_y": -394, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -85457,6 +86493,7 @@ "facing_y": -930, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -85521,7 +86558,7 @@ "tick": 525 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 525 }, @@ -85530,7 +86567,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "af2f4b22783a765db306f16a97b9093347090ccb73fbaa8054726d7acec17d10", + "checksum": "23e3711b90c5012bad622b132bd0b7ef64e602627038a98cd4d75aa4ec7fe6e4", "events": [], "fighters": [ { @@ -85557,8 +86594,9 @@ "facing_y": -334, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -85617,6 +86655,7 @@ "facing_y": -952, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -85681,7 +86720,7 @@ "tick": 526 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 526 }, @@ -85690,7 +86729,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "aa6e967a2468ac7bbb9a81d79219c7156ed6edcb5ca6ec9eb5839ab021b351e9", + "checksum": "117c2dcb94117f582c24301df0795e671b7c2c3d30da75aaa6d96da5d4a6fd9b", "events": [], "fighters": [ { @@ -85717,8 +86756,9 @@ "facing_y": -273, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -85777,6 +86817,7 @@ "facing_y": -970, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -85841,7 +86882,7 @@ "tick": 527 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 527 }, @@ -85850,7 +86891,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "63fa216f77796df9ae97aeeaa39f74d065ed754ca0fef2dbfce036ad7b0f797e", + "checksum": "267b227c3b1ae71e2d5d30a2b1b40baee22b02d3bd90dc37f0fdb8cac8494dab", "events": [], "fighters": [ { @@ -85877,8 +86918,9 @@ "facing_y": -211, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -85937,6 +86979,7 @@ "facing_y": -983, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -86001,7 +87044,7 @@ "tick": 528 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 528 }, @@ -86010,7 +87053,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "768f641e978790cbf99c25655a74d1ccf82d3aa2c4d3bf9d7c4e59880605ccd2", + "checksum": "8edeb6b2d7f29210975c5d0ef944f22621fac1d38db2257735f83439bf948ecc", "events": [], "fighters": [ { @@ -86037,8 +87080,9 @@ "facing_y": -148, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -86097,6 +87141,7 @@ "facing_y": -993, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -86161,7 +87206,7 @@ "tick": 529 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 529 }, @@ -86170,7 +87215,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "8e1298eb0fd98345ae7cec058650ddd063d9c6515b540f1c65e2d216f88570ec", + "checksum": "5205e9c06555c25b0a8c84d8dbc8dbd41c742455f4a9003a8f7061e0ee1e5103", "events": [], "fighters": [ { @@ -86197,8 +87242,9 @@ "facing_y": -84, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -86257,6 +87303,7 @@ "facing_y": -999, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -86321,7 +87368,7 @@ "tick": 530 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 530 }, @@ -86330,7 +87377,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "0b0a13673bee98d48db66d6dcf17c7d8595126ba6bb9be04c88c669d1658da93", + "checksum": "6dadacb3e05ae515d0f7392316c054fee84678e44364c48b4b56fe0d3ee65e64", "events": [], "fighters": [ { @@ -86357,8 +87404,9 @@ "facing_y": -20, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -86417,6 +87465,7 @@ "facing_y": -1000, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -86481,7 +87530,7 @@ "tick": 531 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 531 }, @@ -86490,7 +87539,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "732c5c6ec38f33ebc081e1af0d1bb77ea3d3ca4fe6adaf94901fc56377ce37e7", + "checksum": "7c64917a6a86646aa618f47e820fe0462279a793f798f6f2662a7724a0a6e34d", "events": [], "fighters": [ { @@ -86517,8 +87566,9 @@ "facing_y": 44, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -86577,6 +87627,7 @@ "facing_y": -997, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -86641,7 +87692,7 @@ "tick": 532 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 532 }, @@ -86650,7 +87701,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "a451553acd8e2571dcb610d90e1ebd2c2d55b07f954289c3fef24a9b32903dd3", + "checksum": "a65fd02182109122e1383265fbc6be2ecf12c2f91ba98d6618225e28c3566312", "events": [], "fighters": [ { @@ -86677,8 +87728,9 @@ "facing_y": 108, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -86737,6 +87789,7 @@ "facing_y": -990, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -86801,7 +87854,7 @@ "tick": 533 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 533 }, @@ -86810,7 +87863,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "0d8e4ccf07e0559a5a4a37b3ab40d0ff7b186c9e876c39e938495778c9a0ef72", + "checksum": "f779db97effb1536aa91b3870359033e16481ee41981da11cabc675cb26dd6cc", "events": [], "fighters": [ { @@ -86837,8 +87890,9 @@ "facing_y": 171, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -86897,6 +87951,7 @@ "facing_y": -980, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -86961,7 +88016,7 @@ "tick": 534 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 534 }, @@ -86970,7 +88025,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "09f0b172f305eddc1eb9fc095351374b08f4f03760d6f4e69227baf44b64eab7", + "checksum": "56aeaa9e2294ec05b13650d9563e3fe5c69fc9b8cce12ce46cd22095494e1c0f", "events": [], "fighters": [ { @@ -86997,8 +88052,9 @@ "facing_y": 234, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -87057,6 +88113,7 @@ "facing_y": -965, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -87121,7 +88178,7 @@ "tick": 535 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 535 }, @@ -87130,7 +88187,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "50cc52f6c8adfd18fb568d58c17daad872e67967958852d8da2b74f64dde25c9", + "checksum": "562b41721c1f6c0274ef4e530a6a06aa62c8984fac12e82025c03c2cfb4ef494", "events": [], "fighters": [ { @@ -87157,8 +88214,9 @@ "facing_y": 296, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -87217,6 +88275,7 @@ "facing_y": -946, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -87281,7 +88340,7 @@ "tick": 536 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 536 }, @@ -87290,7 +88349,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "10772dac8009cfe3eeeefd01784cc144e01a8329832a193aef78f04fcc4f265d", + "checksum": "e87563a1f2e9fb42a30de91483a175b8216bcc0d14409d6dd1a97770b0c6ab15", "events": [], "fighters": [ { @@ -87317,8 +88376,9 @@ "facing_y": 357, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -87377,6 +88437,7 @@ "facing_y": -923, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -87441,7 +88502,7 @@ "tick": 537 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 537 }, @@ -87450,7 +88511,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "2972ec31e4ca3fd3a7eafe5e61092b7cb023c22d6568c43bb676881394946790", + "checksum": "20c995ed4f09886e198bab798c46c3fee61750dfbace724bab6ba489eb507998", "events": [], "fighters": [ { @@ -87477,8 +88538,9 @@ "facing_y": 416, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -87537,6 +88599,7 @@ "facing_y": -897, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -87601,7 +88664,7 @@ "tick": 538 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 538 }, @@ -87610,7 +88673,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "49479188de4ce6b5bdcc8064f2f2e6106bc93fe16b43cf4511a91a9b0c245570", + "checksum": "646859a6dd14874c32dbc447fde02dfcaec08fcda6efac8f78b02695430bacbd", "events": [], "fighters": [ { @@ -87637,8 +88700,9 @@ "facing_y": 473, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -87697,6 +88761,7 @@ "facing_y": -867, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -87761,7 +88826,7 @@ "tick": 539 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 539 }, @@ -87770,7 +88835,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "18f081226947d11de9146c49386666064b10053b3a7ed376e3ae67ab913f8380", + "checksum": "e2341ad2b4d6132dfc85d8614e64e8e6c909c482350fd7570e251572251f4972", "events": [], "fighters": [ { @@ -87797,8 +88862,9 @@ "facing_y": 528, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -87857,6 +88923,7 @@ "facing_y": -834, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -87921,7 +88988,7 @@ "tick": 540 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 540 }, @@ -87930,7 +88997,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "fe4da394eef7568f01b376158430972783c427586e111fcaac24bfdab4930d7e", + "checksum": "f037b782da4d9526c92dea4b9ea78f326753868e2c7d49cb2075629e3c61a74a", "events": [], "fighters": [ { @@ -87957,8 +89024,9 @@ "facing_y": 581, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -88017,6 +89085,7 @@ "facing_y": -796, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -88081,7 +89150,7 @@ "tick": 541 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 541 }, @@ -88090,7 +89159,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "268af8cb9adec485b5fb12b9cf68309cc460c9be176c491e9a26f1a6a58b734e", + "checksum": "63ebf8b33fa7dbade4d84bf85bd05871da207227b8d8ddf4f44b113c70e2242c", "events": [], "fighters": [ { @@ -88117,8 +89186,9 @@ "facing_y": 632, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -88177,6 +89247,7 @@ "facing_y": -756, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -88241,7 +89312,7 @@ "tick": 542 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 542 }, @@ -88250,7 +89321,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "4b32090864e98fa028c95fc446051ef48f6d9fd83780915a223dda5ff7e37df6", + "checksum": "0428dec9c8147cb7caf4795c6f6e2a03b528f64019dc60a68ea2bf5a9458bf81", "events": [], "fighters": [ { @@ -88277,8 +89348,9 @@ "facing_y": 680, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -88337,6 +89409,7 @@ "facing_y": -712, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -88401,7 +89474,7 @@ "tick": 543 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 543 }, @@ -88410,7 +89483,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "f9ce86a79b21ed9fddb3bcd285cd5fd9fcbf8a2f1a0469ef16350e069b7611b4", + "checksum": "d760417740b2089b93923a6fc55bbcbade9050d24ee3855f642f5ed62722c2fb", "events": [], "fighters": [ { @@ -88437,8 +89510,9 @@ "facing_y": 726, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -88497,6 +89571,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -88561,7 +89636,7 @@ "tick": 544 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 544 }, @@ -88570,7 +89645,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "f0e4628d18b2aa1d53f02b75c01e9a3a93b28f0240d721f944e9a45ce74c596a", + "checksum": "19cf8461241d500086beef4064eb72b6f35cdb565833ec3d031a7ce7f869ecd5", "events": [], "fighters": [ { @@ -88597,8 +89672,9 @@ "facing_y": 768, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -88657,6 +89733,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -88721,7 +89798,7 @@ "tick": 545 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 545 }, @@ -88730,7 +89807,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "f024103d493e0365d592161e3fbca4d3e39a7048c6ab87868ae6c392b79cea7f", + "checksum": "6fe30e73c72184779da18494c01bb6951214c089c0c776eb05d1aa9d1d43769f", "events": [], "fighters": [ { @@ -88757,8 +89834,9 @@ "facing_y": 808, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -88817,6 +89895,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -88881,7 +89960,7 @@ "tick": 546 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 546 }, @@ -88890,7 +89969,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "23d919c699bea57371a05f10a41ad69864620433554a1a0248aade929cbfa010", + "checksum": "7e7a88b0505afa10c1762d9378e17142f69de1cdb8f2583027689a8878a1d995", "events": [], "fighters": [ { @@ -88917,8 +89996,9 @@ "facing_y": 844, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -88977,6 +90057,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -89041,7 +90122,7 @@ "tick": 547 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 547 }, @@ -89050,7 +90131,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "9ed8e75408d7728a977398dcec0ee7c3c970fe9aa3583acebe3a10c7a2cbd1f1", + "checksum": "6f7b36bd97268a109fe779d2325962a0bf971166b76ea9d8ad14d27703413372", "events": [], "fighters": [ { @@ -89077,8 +90158,9 @@ "facing_y": 876, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -89137,6 +90219,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -89201,7 +90284,7 @@ "tick": 548 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 548 }, @@ -89210,7 +90293,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "9a9fd23b6314e8dc465e7967483f24d78a87a9b3e80eccd4abd162604e7692a9", + "checksum": "5edf94082a6dd6c7d3b63e6264bbad17771baa3efa38750468536c47c35ca1f5", "events": [], "fighters": [ { @@ -89237,8 +90320,9 @@ "facing_y": 905, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -89297,6 +90381,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -89361,7 +90446,7 @@ "tick": 549 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 549 }, @@ -89370,7 +90455,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "b1c472bab356573df749370af0d3ddb57fea93f2bf6a722f54df457eb0791e09", + "checksum": "ab8b77b1fa5a23d0585e911fed8bc228520c540d5d3e467874d5cdf3680c3c36", "events": [], "fighters": [ { @@ -89397,8 +90482,9 @@ "facing_y": 930, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -89457,6 +90543,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -89521,7 +90608,7 @@ "tick": 550 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 550 }, @@ -89530,7 +90617,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "b67329bd0d75d0d3348ee304398ff7ed7b9144b5048fc4d2103ec8e793bfe584", + "checksum": "bbbed72a17c79745ea4270b05521ebed5a80beaa9ed5195a8677bb217d5a12fe", "events": [], "fighters": [ { @@ -89557,8 +90644,9 @@ "facing_y": 952, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -89617,6 +90705,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -89681,7 +90770,7 @@ "tick": 551 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 551 }, @@ -89690,7 +90779,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "5449ba2535ff6d472de461f5ec4946b67bc34ddfc7cf163aebe79a739324bcac", + "checksum": "dd48587c48e94f22eeafef64dc1f9b59d14c8a4cd8541b300bc7a00f2db1660b", "events": [], "fighters": [ { @@ -89717,8 +90806,9 @@ "facing_y": 970, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -89777,6 +90867,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -89841,7 +90932,7 @@ "tick": 552 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 552 }, @@ -89850,7 +90941,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "79afdfdf548eb6fada954fb36b22c0ccb03ac2af7404a56b382eef2540f70f9c", + "checksum": "197fd8195881793de9f8610520d8f98f7c2bac5a38b7bbca8733df51a7313ef4", "events": [], "fighters": [ { @@ -89877,8 +90968,9 @@ "facing_y": 983, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -89937,6 +91029,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -90001,7 +91094,7 @@ "tick": 553 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 553 }, @@ -90010,7 +91103,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "d69e5a5f7ae00898c1798255d03b60d4d6fbf026fac810ff2796e663af76ff7d", + "checksum": "8b73ac7116c935731ea19a62a6451e6271b854f1c28476effe7f99e76e8a130a", "events": [], "fighters": [ { @@ -90037,8 +91130,9 @@ "facing_y": 993, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -90097,6 +91191,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -90161,7 +91256,7 @@ "tick": 554 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 554 }, @@ -90170,7 +91265,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "900367cdb5d3ec805274ef06719aad8f201ad8d43d75df263ab0954e5a2fc595", + "checksum": "2150192f0d027abcd5edbec1fda9f65908daee1c7c21e43c4e92e10988048e7b", "events": [], "fighters": [ { @@ -90197,8 +91292,9 @@ "facing_y": 999, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -90257,6 +91353,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -90321,7 +91418,7 @@ "tick": 555 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 555 }, @@ -90330,7 +91427,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "93b27e3fba364e4b0d1e3fe73459ecf27e3d16755f68e8523efd31e37eed132a", + "checksum": "6d49941c5877242db963d1fd74d54e0a23fb55886b4d86d213eb3afc562fe43e", "events": [], "fighters": [ { @@ -90357,8 +91454,9 @@ "facing_y": 1000, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -90417,6 +91515,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -90481,7 +91580,7 @@ "tick": 556 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 556 }, @@ -90490,7 +91589,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "ef1387dc70427730dbe1b4e2137dbf880d5ae3e665d14d4167d5c5f317e132a5", + "checksum": "94a2675748480a27660006c100f32b5fae0ad3f8af79f2a16bf536e9ba6458e6", "events": [], "fighters": [ { @@ -90517,8 +91616,9 @@ "facing_y": 997, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -90577,6 +91677,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -90641,7 +91742,7 @@ "tick": 557 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 557 }, @@ -90650,7 +91751,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "697474eaf40cc0e2a758251a34217bb52f17819d9cdb08b746abc8fe8a70a435", + "checksum": "6c8f4d85dc74450a600a70b75c48fc31924c3276bec8ac12ac0d66dd9224d5a3", "events": [], "fighters": [ { @@ -90677,8 +91778,9 @@ "facing_y": 990, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -90737,6 +91839,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -90801,7 +91904,7 @@ "tick": 558 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 558 }, @@ -90810,7 +91913,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "9a9bc24f933329f89432f29a3f8e131f1bb2a8da64ce543ea81073856e4fe277", + "checksum": "e82ab27a13e37be59e6a9f1beec795288147abc06d01a92995b9a4f16534f287", "events": [], "fighters": [ { @@ -90837,8 +91940,9 @@ "facing_y": 980, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -90897,6 +92001,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -90961,7 +92066,7 @@ "tick": 559 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 559 }, @@ -90970,7 +92075,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "424f0725ef2c37cd24aff0926275a893dc0cf42faf78bfbee39f9fbfe829cb6e", + "checksum": "784abf392733657b04696f67eadeb74ed95bcd0f51333bfe48f3cbd0d95b5396", "events": [], "fighters": [ { @@ -90997,8 +92102,9 @@ "facing_y": 965, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -91057,6 +92163,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -91121,7 +92228,7 @@ "tick": 560 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 560 }, @@ -91130,7 +92237,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "367dc5d9b42bfea24351b6ca53fa42e7cbf8b46d984bc3dbffb9cf11b55c1c6d", + "checksum": "9aa6f157059007910d0db641396aefb2a313483b8b9cf917d8c8e8c23016fac4", "events": [], "fighters": [ { @@ -91157,8 +92264,9 @@ "facing_y": 946, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -91217,6 +92325,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -91281,7 +92390,7 @@ "tick": 561 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 561 }, @@ -91290,7 +92399,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "1670040668a8d44607a78520ade882d3401b2adb35060a9e15cdefec15fe846b", + "checksum": "aa73324c53c1ba99eee8e7772e3ad51d381947f75d49c4ada1ca62e267b58999", "events": [], "fighters": [ { @@ -91317,8 +92426,9 @@ "facing_y": 923, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -91377,6 +92487,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -91441,7 +92552,7 @@ "tick": 562 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 562 }, @@ -91450,7 +92561,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "0500141b66bf722ee9143f86fefd501c4578b3d8d0d96e3277327555abd41240", + "checksum": "01e8c35eb8e7c3cff80c7cbc2e63d19c08bd6bbcb18986a16a1c53b7bd4c2018", "events": [], "fighters": [ { @@ -91477,8 +92588,9 @@ "facing_y": 897, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -91537,6 +92649,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -91601,7 +92714,7 @@ "tick": 563 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 563 }, @@ -91610,7 +92723,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "659a90ce827d8fdff24b9428c00f2c32eee43bb08a900b91cab9e276ef875df3", + "checksum": "529ad28ba642a0be4c15be610152a7c2e8209449bbd297ee921cc865bb369d5f", "events": [], "fighters": [ { @@ -91637,8 +92750,9 @@ "facing_y": 867, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -91697,6 +92811,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -91761,7 +92876,7 @@ "tick": 564 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 564 }, @@ -91770,7 +92885,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "6328f2cd7bde9cff0fb8ec13812b570cd73bd7f45d639946bc979f52b96285b5", + "checksum": "107b028f86b1ed1f708f938c21e9b7f155b71d3ddf8b812b55b25b4b5af2809c", "events": [], "fighters": [ { @@ -91797,8 +92912,9 @@ "facing_y": 834, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -91857,6 +92973,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -91921,7 +93038,7 @@ "tick": 565 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 565 }, @@ -91930,7 +93047,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e393082477ce8d682130180f686c4f6dd1e308202262b40f61befbd2caf4943f", + "checksum": "338ca5dee4c0926b9f66dfd4476aa3f70e0d84ca8b77fdc8a5ed7161d3c9ded3", "events": [], "fighters": [ { @@ -91957,8 +93074,9 @@ "facing_y": 796, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -92017,6 +93135,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -92081,7 +93200,7 @@ "tick": 566 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 566 }, @@ -92090,7 +93209,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "5276f4e0471b4a893496678c0e131eb2243dee95d4af1aed85065972b74e5527", + "checksum": "90cb89f32bcdc2c55e8016f95ab13ce7176bdab38be889e55be2572ada2a1cac", "events": [], "fighters": [ { @@ -92117,8 +93236,9 @@ "facing_y": 756, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -92177,6 +93297,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -92241,7 +93362,7 @@ "tick": 567 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 567 }, @@ -92250,7 +93371,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "b9fa82c737075ea9198cf8f2f7b59569339e47e8895f63eece76f5f5da296218", + "checksum": "12c6b2793896c3e3fda174a015f309a539844e46f92f772d34bb98a0593777f0", "events": [], "fighters": [ { @@ -92277,8 +93398,9 @@ "facing_y": 712, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -92337,6 +93459,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -92401,7 +93524,7 @@ "tick": 568 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 568 }, @@ -92410,7 +93533,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "905c1f69bafdefdd81d1d2f0b69ad9082438d59f1ae8f8697d071cac144b804c", + "checksum": "022f6c2e66132dd2aae36c142e565463e3f5664628477444553923213d5549e6", "events": [], "fighters": [ { @@ -92437,8 +93560,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -92497,6 +93621,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -92561,7 +93686,7 @@ "tick": 569 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 569 }, @@ -92570,7 +93695,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "61b34a19cfecaef16601d498efc08cef65a6e22d078126767db1322dbcd64508", + "checksum": "30064d7ee294e2a833782c2c679e73a63917818736cc4f3f8b9030480878e6a5", "events": [], "fighters": [ { @@ -92597,8 +93722,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -92657,6 +93783,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -92721,7 +93848,7 @@ "tick": 570 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 570 }, @@ -92730,7 +93857,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "147fb4e20424ba817d73c7c71bb264b05ae208af1017a50d40ab4daf40f6c039", + "checksum": "ef4821041bd5d521190e904785cc3b574469baa89a2eb9f13348033188f90ca8", "events": [], "fighters": [ { @@ -92757,8 +93884,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -92817,6 +93945,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -92881,7 +94010,7 @@ "tick": 571 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 571 }, @@ -92890,7 +94019,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "5b6cf46322ebdad8e2337b84ae43d1d353eb845545e3479706fa690d4c8c5360", + "checksum": "0f7878c36f82e756004849ddd75b271a753daa9de15ea105b66e5ef5ff221f40", "events": [], "fighters": [ { @@ -92917,8 +94046,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -92977,6 +94107,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -93041,7 +94172,7 @@ "tick": 572 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 572 }, @@ -93050,7 +94181,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "2522abee140907395d9863142844f852b267e948037f2a9fe41fcb7785fd45c1", + "checksum": "3c0dcf870c9ab9e5994acd53f8c12c7a47e670e2981c8d80567db68886adab97", "events": [], "fighters": [ { @@ -93077,8 +94208,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -93137,6 +94269,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -93201,7 +94334,7 @@ "tick": 573 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 573 }, @@ -93210,7 +94343,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "2b4fff2f2562d62dbfc9e1864603ecaf61a77ca522d46c954c5cc53763e5d34b", + "checksum": "239922adeaae80cb8817d674869726625a24dcd3d3f26a6f553d43135074fac5", "events": [], "fighters": [ { @@ -93237,8 +94370,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -93297,6 +94431,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -93361,7 +94496,7 @@ "tick": 574 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 574 }, @@ -93370,7 +94505,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "f8113204f5b2268efd64e7c90ab50ff2059fb30488ec80b247d38b2bf66ee80c", + "checksum": "14f0178b565665dcc326c512d7ffaeabd902b10fa8e0aa7fc647393aaa375386", "events": [], "fighters": [ { @@ -93397,8 +94532,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -93457,6 +94593,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -93521,7 +94658,7 @@ "tick": 575 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 575 }, @@ -93530,7 +94667,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "bf1692d05bdc390640fbdd393f9a156ba96c96a78e6973e57966e95114115016", + "checksum": "ceeccb4cbacf29f83f5d2da681973900dd142312d7d4d6791c88d5e89ad26ad5", "events": [], "fighters": [ { @@ -93557,8 +94694,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -93617,6 +94755,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -93681,7 +94820,7 @@ "tick": 576 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 576 }, @@ -93690,7 +94829,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "c9a5b5bcad573c0821564840b58189db54dd2a58256f9ca840b83f0072630bd5", + "checksum": "32535771e761c81f3499290d6a80247696c00399677c4aefbf0e40cd71e654a1", "events": [], "fighters": [ { @@ -93717,8 +94856,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -93777,6 +94917,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -93841,7 +94982,7 @@ "tick": 577 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 577 }, @@ -93850,7 +94991,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "99583cafdf533af86f7eec9c4c453bce9eb18bd306b32a7aa115c4bec65215fc", + "checksum": "3819b01a9272f223defe1d951002c0551693fdd665de58e5931f34f6aa7a5ed4", "events": [], "fighters": [ { @@ -93877,8 +95018,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -93937,6 +95079,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -94001,7 +95144,7 @@ "tick": 578 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 578 }, @@ -94010,7 +95153,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "deaa2c8474fcb6fdd4523012a949cae5567a5cfb5c02b3bd57795f63df8601a3", + "checksum": "03c8cecc4f13aab3b0b81a17b5ab90874cb60b7192206c34c19493c2b5007028", "events": [], "fighters": [ { @@ -94037,8 +95180,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -94097,6 +95241,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -94161,7 +95306,7 @@ "tick": 579 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 579 }, @@ -94170,7 +95315,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "2166bc0fbedfade81212fd2a5c37ef8dd690e5424ef9268454d62e323ea7123f", + "checksum": "916447e6154df962e03f871aa25b7d19f24163e9c1eba1da7c8b2977587e6e81", "events": [], "fighters": [ { @@ -94197,8 +95342,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -94257,6 +95403,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -94321,7 +95468,7 @@ "tick": 580 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 580 }, @@ -94330,7 +95477,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "36dfb30767b0f5af38d23598c142454d3ae525d0110d59b65dd78a984327898c", + "checksum": "8954a8b05f034fd967afb5d0a97ad204550b7286e4a1a86d107b4490151d9777", "events": [], "fighters": [ { @@ -94357,8 +95504,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -94417,6 +95565,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -94481,7 +95630,7 @@ "tick": 581 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 581 }, @@ -94490,7 +95639,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "6acc3d8cfe010de46620cf09603f7d21172a665bb1dfcfd70ff9fc4c19eb7f53", + "checksum": "3d5b7363d5cdedb1aca126b8da7435ea47164fb03d1a955ed20e388f4582617c", "events": [], "fighters": [ { @@ -94517,8 +95666,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -94577,6 +95727,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -94641,7 +95792,7 @@ "tick": 582 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 582 }, @@ -94650,7 +95801,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "621649fe4f48a9d52a45a8f51f91dc07856e8b47ad66494ea5b2d7c3817822d2", + "checksum": "122339d21d7b2439a6409906e772c15c4efb6abf456616d8a567817ce9b6bf15", "events": [], "fighters": [ { @@ -94677,8 +95828,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -94737,6 +95889,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -94801,7 +95954,7 @@ "tick": 583 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 583 }, @@ -94810,7 +95963,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "d37f3aac77b4697ae21b8b3ff5ec8f357dd68142a0682943fd501a96fc455715", + "checksum": "23d638734c24676e6a90ebd56d6b31793aa914063cf755ccc445c6514ff56a3a", "events": [], "fighters": [ { @@ -94837,8 +95990,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -94897,6 +96051,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -94961,7 +96116,7 @@ "tick": 584 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 584 }, @@ -94970,7 +96125,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "fc7f2a8863e063c0a825f22c0d37017df9ee79e5925db676b207992eb102abed", + "checksum": "196a08172ac40ecfb906ad5777453f5af71d9f5de1a69e481e276ca04228756d", "events": [], "fighters": [ { @@ -94997,8 +96152,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -95057,6 +96213,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -95121,7 +96278,7 @@ "tick": 585 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 585 }, @@ -95130,7 +96287,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "eda8d2330030946dbcaeaf14e9348899ef3a53047058e52c1ea616d8fd7b8c0a", + "checksum": "7ce2a8b34d23dc9936f1cdbae15fbbc29253609f5cfc8e8c7a4d93d75d00f6cb", "events": [], "fighters": [ { @@ -95157,8 +96314,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -95217,6 +96375,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -95281,7 +96440,7 @@ "tick": 586 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 586 }, @@ -95290,7 +96449,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "8a608326fdd43fce657616abd83c423021e3fc8a377bcfa923a7357e4bbd6798", + "checksum": "a332b3ae6014b768a3a625f2fa0b4b37990e5ac52359232a0f15ed79bd0368d1", "events": [], "fighters": [ { @@ -95317,8 +96476,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -95377,6 +96537,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -95441,7 +96602,7 @@ "tick": 587 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 587 }, @@ -95450,7 +96611,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "792d79af96f8b6d9744fbda2fb9cae489bf0f2f1adee2ac3b1f20bfeab4c7b77", + "checksum": "e1c5be2d4f5701c033f9e48bd5ab4c1479f3d16eac112fb030cf1fac88e3f70e", "events": [], "fighters": [ { @@ -95477,8 +96638,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -95537,6 +96699,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -95601,7 +96764,7 @@ "tick": 588 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 588 }, @@ -95610,7 +96773,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "1df49f81ebd1c05e5858e919e558fb40c38ef56ee0f24e5cc2d46331f0d14126", + "checksum": "a43ac5a40bd01fd39dc116dc6ef0ca51b313e6bc414f1de3017be0a55a9b7757", "events": [], "fighters": [ { @@ -95637,8 +96800,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -95697,6 +96861,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -95761,7 +96926,7 @@ "tick": 589 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 589 }, @@ -95770,7 +96935,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "2df6976e4d556b1d6e4f173939ed71d809585fba6e4e9917bba3f3e89a18d3ec", + "checksum": "0e8eb591f01ded35537aac827831a240834d99dfc23253113c2073e17b05cec9", "events": [], "fighters": [ { @@ -95797,8 +96962,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -95857,6 +97023,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -95921,7 +97088,7 @@ "tick": 590 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 590 }, @@ -95930,7 +97097,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e400438d663b8035c2752df0e25da09175c26e580ab0c51bacf1a2441a3d124b", + "checksum": "4d800f1681582f89a4a651cc4a95fcd784262bbebf40b2652139d365cdd9b0ea", "events": [], "fighters": [ { @@ -95957,8 +97124,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -96017,6 +97185,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -96081,7 +97250,7 @@ "tick": 591 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 591 }, @@ -96090,7 +97259,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "f808b0c16d3815ea20e569579cd9993ac96251a8bc4af2935b6b60f07ddde4fe", + "checksum": "7056063cc3c9daed81039cefa0e961824cb1e0af64d2032762e8ab599a85ca51", "events": [], "fighters": [ { @@ -96117,8 +97286,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -96177,6 +97347,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -96241,7 +97412,7 @@ "tick": 592 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 592 }, @@ -96250,7 +97421,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "b76c7a7b4947656cab0b3f4b78897a3d89fddf15a7e51cb5a6d56017c4db3127", + "checksum": "1bafbd8ae1679063065106c9d8bd950199efebce5118634d8c41d23d3bde5e28", "events": [], "fighters": [ { @@ -96277,8 +97448,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -96337,6 +97509,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -96401,7 +97574,7 @@ "tick": 593 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 593 }, @@ -96410,7 +97583,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "60996ebe6f2cce3a0dc5bf959d329827d6a367206f64148caa30999163098be5", + "checksum": "ad7b812a76b54be2210d627266f17e76d2cc4d849b8a4fef10a5c00d21e8cbae", "events": [], "fighters": [ { @@ -96437,8 +97610,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -96497,6 +97671,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -96561,7 +97736,7 @@ "tick": 594 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 594 }, @@ -96570,7 +97745,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "45c3702ff5b8835a8ca1e31767299673dc61c35948e6022d3a720532ec0f346c", + "checksum": "2682df4049e618eec64c55bd228f4c40ae86de582b5b6a7882987959f1472fa7", "events": [], "fighters": [ { @@ -96597,8 +97772,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -96657,6 +97833,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -96721,7 +97898,7 @@ "tick": 595 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 595 }, @@ -96730,7 +97907,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "6ea0a9fdbd2220b2b1b7d6f1e08e611dc279133d6da825e90db37685547f04e8", + "checksum": "2d607f9542c70d71531a001d7666b828304a170be623ed90673628e306bc4364", "events": [], "fighters": [ { @@ -96757,8 +97934,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -96817,6 +97995,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -96881,7 +98060,7 @@ "tick": 596 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 596 }, @@ -96890,7 +98069,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "65b4f77d6049aec0d28860251ed69f745088088ec9287e4d9c3a659d7eaffdec", + "checksum": "31215a8a3ca8d8b082e60fd90ba785f7995c64166f078d35bd35608805e1e777", "events": [], "fighters": [ { @@ -96917,8 +98096,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -96977,6 +98157,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -97041,7 +98222,7 @@ "tick": 597 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 597 }, @@ -97050,7 +98231,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "03627b334e9e2b640562ad488d5d16c6db70a16614dc9905c7891d3465e36b3b", + "checksum": "96b194fc9db604f62986b6cc18ac36d9d914d270532f7dab2c00a94933b6c454", "events": [], "fighters": [ { @@ -97077,8 +98258,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -97137,6 +98319,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -97201,7 +98384,7 @@ "tick": 598 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 598 }, @@ -97210,7 +98393,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "236da5fe6d8825f1112767ffc7dc2880b8f1d5aa0c86b6de494e63876502dffa", + "checksum": "f2a1dae8f3c53e090c5909b771a7c02d27816a937e9d96789b43a943235925dd", "events": [], "fighters": [ { @@ -97237,8 +98420,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -97297,6 +98481,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -97361,7 +98546,7 @@ "tick": 599 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 599 }, @@ -97370,7 +98555,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "2deaaf9075a5cbef6f1965cbe6bd9971b18727a15e8a33ec5c637cc7b4289b22", + "checksum": "1a650d6054d2e10aa18a28419b6fbf6f90d56307a66cc786b05e0adb9c9d73f6", "events": [], "fighters": [ { @@ -97397,8 +98582,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -97457,6 +98643,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -97521,7 +98708,7 @@ "tick": 600 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 600 }, @@ -97530,7 +98717,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "1c9ea4728543218a66b61746540b5c0a8884752b0a9d715e2a197a0e699f65fb", + "checksum": "e8a960401ffcc97e8ff4393cc0540c3eae7b27e65e2f3bee49f97b00581fd9a4", "events": [], "fighters": [ { @@ -97557,8 +98744,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -97617,6 +98805,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -97681,7 +98870,7 @@ "tick": 601 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 601 }, @@ -97690,7 +98879,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "5bd1fdb9882caf66dd024c05ee0dbff1c3a84b551872090272eff3efde4dc8e7", + "checksum": "38ab9f228eda78843b53800012798f80d5f40ff7f515ee53d7df3591f5f79d4f", "events": [], "fighters": [ { @@ -97717,8 +98906,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -97777,6 +98967,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -97841,7 +99032,7 @@ "tick": 602 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 602 }, @@ -97850,7 +99041,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "fe83892660aa11a3d94129abb99c96df12cbdd489e79f57ade4ce7500fd1a397", + "checksum": "3019d6b13208a5468fc7a2ccc98adf186107ffafb4fb4b04d39a2fd9386b0888", "events": [], "fighters": [ { @@ -97877,8 +99068,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -97937,6 +99129,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -98001,7 +99194,7 @@ "tick": 603 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 603 }, @@ -98010,7 +99203,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "7a84183cfb42d5d4a83ca092c6e86c3ff5f3fad2ae45df4366d43a7b8333ad0f", + "checksum": "bcd8e72f9f56482a4595c8c57977d98862e874bbaaaf54917623ae2d58313d42", "events": [], "fighters": [ { @@ -98037,8 +99230,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -98097,6 +99291,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -98161,7 +99356,7 @@ "tick": 604 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 604 }, @@ -98170,7 +99365,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "d930abe74e3940131d4134df170eadef891ebd06b4143b80949b03374a467423", + "checksum": "730f14237f0a8f806b3d7c003a2d13d7117561f0ade0b612662a3c07d342c4d2", "events": [], "fighters": [ { @@ -98197,8 +99392,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -98257,6 +99453,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -98321,7 +99518,7 @@ "tick": 605 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 605 }, @@ -98330,7 +99527,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "3d772b129021a421b55fe67058a5116318e399a248b83a1a7307e37fc3da15d6", + "checksum": "45e9b50fdebeb280592de954d43e6993cb9cda0aa9cc216a6de03eddd48c7c9c", "events": [], "fighters": [ { @@ -98357,8 +99554,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -98417,6 +99615,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -98481,7 +99680,7 @@ "tick": 606 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 606 }, @@ -98490,7 +99689,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "1ca9994f3cbfc9075d7e6cec501d21a704f0dd888807f155100bd534b44105f9", + "checksum": "b37af2b1c46500918a441544838f90474b712d9868e3bbd256568dfc1c46f59c", "events": [], "fighters": [ { @@ -98517,8 +99716,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -98577,6 +99777,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -98641,7 +99842,7 @@ "tick": 607 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 607 }, @@ -98650,7 +99851,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "bc23425f36f1bcf56d3fcf8d9f09923d4ad5509f8391b53c4483ded3ae9845bf", + "checksum": "f6274d1ccab9cac8d9fd6f39c634152e4913cce6045b1989df56d9b54751a44d", "events": [], "fighters": [ { @@ -98677,8 +99878,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -98737,6 +99939,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -98801,7 +100004,7 @@ "tick": 608 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 608 }, @@ -98810,7 +100013,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "1b6e6706522d7a9196cee4c48f1f036f391caa7af4725e48cb889016d85503ab", + "checksum": "8ac8ceab51eef0c6b41d200fc389bf16c5232cdf8eab8e21d1b292d1af4db57a", "events": [], "fighters": [ { @@ -98837,8 +100040,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -98897,6 +100101,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -98961,7 +100166,7 @@ "tick": 609 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 609 }, @@ -98970,7 +100175,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "15ccc6503b6d7a1a5272ec0abf809b6cda83b6f3fe74e89ba355905e70ca0002", + "checksum": "f09e10d84a4246cc81f30c3c93aa9dde9c5e3914aa18d631fac0df3ca025b50e", "events": [], "fighters": [ { @@ -98997,8 +100202,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -99057,6 +100263,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -99121,7 +100328,7 @@ "tick": 610 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 610 }, @@ -99130,7 +100337,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "300b64c21bfc5848b10f6cc9eb9b6cae7bd3fdb5ffc896ce1100bde9009c7e8a", + "checksum": "019cd026dcdda7a1b2fc1582acab2220bb04890865e91792d371f48317545372", "events": [], "fighters": [ { @@ -99157,8 +100364,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -99217,6 +100425,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -99281,7 +100490,7 @@ "tick": 611 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 611 }, @@ -99290,7 +100499,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "9ab9f02a7c479f8763ce88c7a94a72bc9ef32aba969061785709cd34417811e3", + "checksum": "bea5f660de7d5450f12b68a2260f0b1b4b0c4156a9ab8ec1e55e93065e20a87d", "events": [], "fighters": [ { @@ -99317,8 +100526,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -99377,6 +100587,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -99441,7 +100652,7 @@ "tick": 612 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 612 }, @@ -99450,7 +100661,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "9ab30e239b139f85a09b40579820fc64efabcfded53a7d2e7f509968c70cdaa8", + "checksum": "e8ad491238fcf7a63af9eef5eeb4265188bf7593164e72e45c09ee33fd20714b", "events": [], "fighters": [ { @@ -99477,8 +100688,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -99537,6 +100749,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -99601,7 +100814,7 @@ "tick": 613 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 613 }, @@ -99610,7 +100823,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "31ef1bfb81cbf328276b0a73c4f4869e46150c109bfb0d70ee2083ab442a5c14", + "checksum": "12a277236f5c107f1b5664a73c3d8cf486b719cfe9bfffe224b23cb04c6f883b", "events": [], "fighters": [ { @@ -99637,8 +100850,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -99697,6 +100911,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -99761,7 +100976,7 @@ "tick": 614 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 614 }, @@ -99770,7 +100985,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "7cb34c4f3547400a878285f705258e5801cb8df91219f1e83a6d65f67b10d931", + "checksum": "328c00e351cf6397e08e55ff15242ce115f45de31d4d12327237999ece45a9f7", "events": [], "fighters": [ { @@ -99797,8 +101012,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -99857,6 +101073,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -99921,7 +101138,7 @@ "tick": 615 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 615 }, @@ -99930,7 +101147,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "ab5df94f421c11e7db114e4f6a746abedd13ee5a82afcfa3ace63e3c9eb76bf3", + "checksum": "51bcf1447dabc1864104d9640aa4b34012c561adb8e310797fc56c400326bb73", "events": [], "fighters": [ { @@ -99957,8 +101174,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -100017,6 +101235,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -100081,7 +101300,7 @@ "tick": 616 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 616 }, @@ -100090,7 +101309,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "67f33d5bc5cea26e9ca0a3e928e38482f411df0c2e1b2e51ed6c13aab6dbce2c", + "checksum": "e50cd0c87e120ca14a85fca7235dc1581e66067ef1a2fd7018fa230a60f16e1d", "events": [], "fighters": [ { @@ -100117,8 +101336,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -100177,6 +101397,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -100241,7 +101462,7 @@ "tick": 617 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 617 }, @@ -100250,7 +101471,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "dd686edc78340b44e47b95c04bd16697736406892432b45937edb09c5c4ca2f6", + "checksum": "f34358733e062bf4534fbe57ac0285c102d4b557e9fb7a6eea7c8679769b5030", "events": [], "fighters": [ { @@ -100277,8 +101498,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -100337,6 +101559,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -100401,7 +101624,7 @@ "tick": 618 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 618 }, @@ -100410,7 +101633,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "37c7260d22370eb7e98072bb12f127e07039ac37c27d95f9f1cdadf55f16ff0a", + "checksum": "7ffc890c856de9c090643e1f8840bf97ee2926ba1b295bd3f4cb204f7900de07", "events": [], "fighters": [ { @@ -100437,8 +101660,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -100497,6 +101721,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -100561,7 +101786,7 @@ "tick": 619 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 619 }, @@ -100570,7 +101795,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "748f8d87e73da81b682d1adc62fab35fc3e5125afba43cb683dc5ada6ba7c107", + "checksum": "ce42924dcda38f1baddf90f7697209dcca46f58b68d77a7396c95e1119ea50fa", "events": [], "fighters": [ { @@ -100597,8 +101822,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -100657,6 +101883,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -100721,7 +101948,7 @@ "tick": 620 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 620 }, @@ -100730,7 +101957,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "f37d29e4a91c09afa8f0cb8c2ade1c23c2011028a75b78d790054d063dca5978", + "checksum": "3ea176b5a553c1ce1e3001490113e2b8fd5ac291a0c650531268c2f4fd4f0e70", "events": [], "fighters": [ { @@ -100757,8 +101984,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -100817,6 +102045,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -100881,7 +102110,7 @@ "tick": 621 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 621 }, @@ -100890,7 +102119,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "43ec954dc7a9b23f984336d2f709b11621e7dbc76d1f8014faf96c1da4da89ec", + "checksum": "75c71131dd03b8e5343b6f453f8b6dfdeaf5cafe4daf20485a4581f5dd172ff2", "events": [], "fighters": [ { @@ -100917,8 +102146,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -100977,6 +102207,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -101041,7 +102272,7 @@ "tick": 622 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 622 }, @@ -101050,7 +102281,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "ae43e2ad8ffe1bf34c5a2af184759de92939e39fd605daec8ed348ed24ab8568", + "checksum": "0f8b245f879242b43be8b326c2a23a9a850fc6642173312fe55122442a6b23e8", "events": [], "fighters": [ { @@ -101077,8 +102308,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -101137,6 +102369,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -101201,7 +102434,7 @@ "tick": 623 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 623 }, @@ -101210,7 +102443,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "56a3cebd6a292f8bd52116cd808385e555d3cfcd64acfbab304a23aae5527878", + "checksum": "fc60790b25c767eb0fbb7107b1e8742821f3c1738052b032f986fe14b7a8db35", "events": [], "fighters": [ { @@ -101237,8 +102470,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -101297,6 +102531,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -101361,7 +102596,7 @@ "tick": 624 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 624 }, @@ -101370,7 +102605,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e1b7e45ae036b598d291ba91743399489ebcd657165aec1388355ea4f7f7df2a", + "checksum": "b8c0a12f35e17e397aef706ac529cd4844f2b321b47d59d583adc3fe74e4b8f2", "events": [], "fighters": [ { @@ -101397,8 +102632,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -101457,6 +102693,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -101521,7 +102758,7 @@ "tick": 625 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 625 }, @@ -101530,7 +102767,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "4ea44c8926f5406a471fc8ae56ed341c9d3c40969aa896b9de434e6a62ff26f7", + "checksum": "beecd81e23f6ba8fca50ffddd06f058111a9d13270ddb658480d3e79ce1674d9", "events": [], "fighters": [ { @@ -101557,8 +102794,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -101617,6 +102855,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -101681,7 +102920,7 @@ "tick": 626 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 626 }, @@ -101690,7 +102929,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "fc0ffd800acc4feff9ba94af3a032fc93ca795e254390043c5162d1907af25a2", + "checksum": "a589f902b0d266b2eca41f665fe53228ef2001ff08f9e27601baf9e844d2357d", "events": [], "fighters": [ { @@ -101717,8 +102956,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -101777,6 +103017,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -101841,7 +103082,7 @@ "tick": 627 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 627 }, @@ -101850,7 +103091,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "656ed858d956703faafff89e76af1d123c1608e64f94c18deb81675afb5c5aa0", + "checksum": "c41d4decbee9e819c8227eace4449ae0a8d6461c3b2299d49d2f47aefddeea6d", "events": [], "fighters": [ { @@ -101877,8 +103118,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -101937,6 +103179,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -102001,7 +103244,7 @@ "tick": 628 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 628 }, @@ -102010,7 +103253,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "c760185292ca4451292bbfad8f6b04ff8c847ccf242bd62d9396bc5da3a476b1", + "checksum": "e533d90faf1bf2d45bb79f1c29386fd94784aa8c1ba50fcffcf7be359e35d4aa", "events": [], "fighters": [ { @@ -102037,8 +103280,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -102097,6 +103341,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -102161,7 +103406,7 @@ "tick": 629 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 629 }, @@ -102170,7 +103415,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "333200d3928869d34f802aeca67d8ba1fb314a6c60823644f0ac52980db3e0a9", + "checksum": "435a888db2f84079f586046fe4e8dc2f67fcf1d18efff0b852df13a74aa19c22", "events": [], "fighters": [ { @@ -102197,8 +103442,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -102257,6 +103503,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -102321,7 +103568,7 @@ "tick": 630 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 630 }, @@ -102330,7 +103577,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "93c3cdf5d51614aa8f81c5efd7d0e889101bf4f6a9f3df94e6b069d4b9891d33", + "checksum": "581e6190abd5449b67b2c50ed4f2242857ad2e3db0c1997e5c05a7542dbc8dc3", "events": [], "fighters": [ { @@ -102357,8 +103604,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -102417,6 +103665,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -102481,7 +103730,7 @@ "tick": 631 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 631 }, @@ -102490,7 +103739,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "dbcdd9da67a58ac177c8cb49a9a28fc4e75da9125632509ed961fb54341f3b3e", + "checksum": "577a7d5bba3be914f25d473c082a92fda820f186e48b49ea22cab16b9a83f459", "events": [], "fighters": [ { @@ -102517,8 +103766,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -102577,6 +103827,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -102641,7 +103892,7 @@ "tick": 632 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 632 }, @@ -102650,7 +103901,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "da82bed6d9ebcfa1eba157fd29099748244549af55911a3c00eb233be8e95a81", + "checksum": "54c35e089e2d524f34b7c8e18370b4cfc2cfb0b8d450cae16051f2400f65daa4", "events": [], "fighters": [ { @@ -102677,8 +103928,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -102737,6 +103989,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -102801,7 +104054,7 @@ "tick": 633 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 633 }, @@ -102810,7 +104063,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "b1b2d48735884f78489e39c83d34706a011ea6c9da4f2ecc59120afc867f50ab", + "checksum": "6b1507af9b056c5fd304bd273c9f37abf2770900deb3a9bc4eba4107c9c5d247", "events": [], "fighters": [ { @@ -102837,8 +104090,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -102897,6 +104151,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -102961,7 +104216,7 @@ "tick": 634 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 634 }, @@ -102970,7 +104225,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "6f7e8dea4da4879e0f393c59c2421769615f6508580478b4423d8d21e3614d67", + "checksum": "10c9c877517ff029b3177c774b8b7962aa521a60f7eceb0f0f7ff947314faa2f", "events": [], "fighters": [ { @@ -102997,8 +104252,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -103057,6 +104313,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -103121,7 +104378,7 @@ "tick": 635 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 635 }, @@ -103130,7 +104387,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "4335ed69e202e56cf5124bb521ffd5cce9596545433310b956239c6aef07440d", + "checksum": "860f6e45985a47ed94a52c07016d5426dafa8e10c4150505558f51934f5e72de", "events": [], "fighters": [ { @@ -103157,8 +104414,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -103217,6 +104475,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -103281,7 +104540,7 @@ "tick": 636 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 636 }, @@ -103290,7 +104549,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e80605a0d9fa4ea0deea4eedb829cb7e7558f43d4c1819fd3532462ddd3f7de4", + "checksum": "9dfc32e6969b2ff250334f7c7d50c17256e1f47f88301b0d59e94d46576f43aa", "events": [], "fighters": [ { @@ -103317,8 +104576,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -103377,6 +104637,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -103441,7 +104702,7 @@ "tick": 637 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 637 }, @@ -103450,7 +104711,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "20d8f66c915d4cbf2de50c5baa33a3f1769819e0234020441853e9032101b78d", + "checksum": "f42c256adb838aedacd1155c4ab649e820eb53ab8c401673bba3e33c990c6772", "events": [], "fighters": [ { @@ -103477,8 +104738,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -103537,6 +104799,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -103601,7 +104864,7 @@ "tick": 638 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 638 }, @@ -103610,7 +104873,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "c6564dce8af6b68cf5ace849c340d9a06b3a02f92fdaf4d54262c9daed430374", + "checksum": "90a62088b1c59136d7cbc1f2c775ebfcb70adb0cf00c0ee91a5a4def17236561", "events": [], "fighters": [ { @@ -103637,8 +104900,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -103697,6 +104961,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -103761,7 +105026,7 @@ "tick": 639 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 639 }, @@ -103770,7 +105035,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "03068c13b1cc107aec7aa61cbf6905e5834d50b2ce2115324cf17cd94770402a", + "checksum": "33594a270a90ea2c3fe115dee6d94e52d521f149e60a2f1acad213d0fecbbc20", "events": [], "fighters": [ { @@ -103797,8 +105062,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -103857,6 +105123,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -103921,7 +105188,7 @@ "tick": 640 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 640 }, @@ -103930,7 +105197,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "d88483dc53f46256c810a6d0dd831b6fc21fc1e5ac8dc2e3176b638e67771c34", + "checksum": "6877d5c17f62249fd32073e7e238374e171737cc2083c5ef06f31b9878e1709c", "events": [], "fighters": [ { @@ -103957,8 +105224,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -104017,6 +105285,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -104081,7 +105350,7 @@ "tick": 641 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 641 }, @@ -104090,7 +105359,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "9f7fe0bb49ce50be2162abc90e56d44cfd3c24f6204ccf0aff770577cdcd9a70", + "checksum": "767df056a320eab84d3032efec1120e39ac7f7261131992233dfbc0a567d155c", "events": [], "fighters": [ { @@ -104117,8 +105386,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -104177,6 +105447,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -104241,7 +105512,7 @@ "tick": 642 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 642 }, @@ -104250,7 +105521,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e1b0f57d01ea8eaf8d1060250ff5c1e97934588915af530f61bfe7df4bbd295e", + "checksum": "fd977560d215d0380ca234cee803b5147df0fe01176aef1da4b13df6bf17fe23", "events": [], "fighters": [ { @@ -104277,8 +105548,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -104337,6 +105609,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -104401,7 +105674,7 @@ "tick": 643 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 643 }, @@ -104410,7 +105683,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "214edde1b23c15657745f17dfb82ac93b2b61a325c93709885d904c2e11405e2", + "checksum": "08f49df5fb1253b1afb7eaffaae70e9b3fe68b043348aea497fa5d1f4c094429", "events": [], "fighters": [ { @@ -104437,8 +105710,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -104497,6 +105771,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -104561,7 +105836,7 @@ "tick": 644 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 644 }, @@ -104570,7 +105845,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e1e70eb05a59877290cb9099cf9b83bfa52b5915913b18cce3c366935c362cfe", + "checksum": "016d66ccfb4608e592c7c8ac69dca0f3156a561917f70b4cae656528f178b72d", "events": [], "fighters": [ { @@ -104597,8 +105872,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -104657,6 +105933,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -104721,7 +105998,7 @@ "tick": 645 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 645 }, @@ -104730,7 +106007,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "3f415bf1beeffdb9b974ed7639ee7430b9eac542d7fb08e09e52a9c95bb8764e", + "checksum": "9cc3e46f612ffdca92cd8b74cf6c641c0b8ac9d4fcba883cfc7e2bfec15e9fa2", "events": [], "fighters": [ { @@ -104757,8 +106034,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -104817,6 +106095,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -104881,7 +106160,7 @@ "tick": 646 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 646 }, @@ -104890,7 +106169,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "21bcd58ae303fb81de759946f4db12cae72bc2c0a310d44bb3b2808d9c13a92e", + "checksum": "cdd35e9a5a33232ffee8561b3e73218f2f6063912df7837737144fb7b5f52ba4", "events": [], "fighters": [ { @@ -104917,8 +106196,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -104977,6 +106257,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -105041,7 +106322,7 @@ "tick": 647 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 647 }, @@ -105050,7 +106331,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "00f18802861d89b02d7a5583bc94c36f96d1fc3ab141a2ed3725e98b36f6b55a", + "checksum": "633095a2fa3f8dd86d802e15541e3c9ed44c5466cce666f2409e9d8af227ca33", "events": [], "fighters": [ { @@ -105077,8 +106358,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -105137,6 +106419,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -105201,7 +106484,7 @@ "tick": 648 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 648 }, @@ -105210,7 +106493,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "4fffcfb32fd9fd39a4792e20d0b6d49053d570b48862a03baab6769c519b3119", + "checksum": "144df5d87d22e5a271f806e9eecbf4c8dc6e882f6d51bc6c8241b53d44148ec6", "events": [], "fighters": [ { @@ -105237,8 +106520,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -105297,6 +106581,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -105361,7 +106646,7 @@ "tick": 649 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 649 }, @@ -105370,7 +106655,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e969faa06e292ac8c3d5eea1d4528ba4674e886e06b700b53238126bf0e48511", + "checksum": "a7a95a42d38e564d6b4e2f3b4152bb581d2824e2cf8c0baa5ab3f9e3c2dc791f", "events": [], "fighters": [ { @@ -105397,8 +106682,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -105457,6 +106743,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -105521,7 +106808,7 @@ "tick": 650 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 650 }, @@ -105530,7 +106817,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "644f77dd41e9d4e15de574d8b8b7a6ac1efd4cea59a329610e958ae25ad017ae", + "checksum": "f9779e9425c243563315859545f79399db6f45375fc8bfc6d6ac9ab1888d51e6", "events": [], "fighters": [ { @@ -105557,8 +106844,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -105617,6 +106905,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -105681,7 +106970,7 @@ "tick": 651 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 651 }, @@ -105690,7 +106979,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "56a8c8e35c06450712eb729fba325e6bdcefbdf780b2a4f9bc477a73d5265bcf", + "checksum": "09c3808de490546f47ac83396f12b51cc42e93c5b78e740a5bcb5107b23541e5", "events": [], "fighters": [ { @@ -105717,8 +107006,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -105777,6 +107067,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -105841,7 +107132,7 @@ "tick": 652 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 652 }, @@ -105850,7 +107141,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "af7ee23a742fe209ddc140b448a0ce232bcc12d8f2c80de16baed1138a4be93f", + "checksum": "414c5617d0d9b5d5196e54c2db846f03a1060b19bbb89590a65711688ead5eda", "events": [], "fighters": [ { @@ -105877,8 +107168,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -105937,6 +107229,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -106001,7 +107294,7 @@ "tick": 653 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 653 }, @@ -106010,7 +107303,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "94c3921fa629754d3a077011080d3a1cddf7099c2ccaaffbb580955f83b2800d", + "checksum": "e40141f0e1d93419c4cc18d7a5ec8cef5304848b5133c2d279a81f5706b5c836", "events": [], "fighters": [ { @@ -106037,8 +107330,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -106097,6 +107391,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -106161,7 +107456,7 @@ "tick": 654 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 654 }, @@ -106170,7 +107465,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "42eae49e22f19299df00266cd7daf8ad5c266efd8c723b8fdbb79fac53f4d6be", + "checksum": "c78bc096dad0a7ed716fda5bcdd68ef356709579593eb40359009b07ae170401", "events": [], "fighters": [ { @@ -106197,8 +107492,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -106257,6 +107553,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -106321,7 +107618,7 @@ "tick": 655 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 655 }, @@ -106330,7 +107627,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "263ef228bfa4b46d56df7ed511dad0b18b364023d50e00a64b9c81f2d1642b4a", + "checksum": "8ecfbf0bac27ed3334ab0d18e6b291c64ec5d33495721c53f259b9dadf9ee5dd", "events": [], "fighters": [ { @@ -106357,8 +107654,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -106417,6 +107715,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -106481,7 +107780,7 @@ "tick": 656 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 656 }, @@ -106490,7 +107789,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "d639e0cbb73edbe136ddc09184000c6f568541c61e8546b491f7b6d29c2d21d1", + "checksum": "79af02ab47ee0c32177f6f2a70578759ac29c6bff2907bad4019a2e9709db520", "events": [], "fighters": [ { @@ -106517,8 +107816,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -106577,6 +107877,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -106641,7 +107942,7 @@ "tick": 657 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 657 }, @@ -106650,7 +107951,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "c179e96be3dea10d8fb729be693d55375209724890a327554ee781c6a7007c4e", + "checksum": "beb0e876fac6db0620a085c874cc9c1ac61538d13766b7c1081a0ba090454a7f", "events": [], "fighters": [ { @@ -106677,8 +107978,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -106737,6 +108039,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -106801,7 +108104,7 @@ "tick": 658 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 658 }, @@ -106810,7 +108113,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "c43a166fa65dac59493aa2b98c4d56d1fb2f4cfa56600b3a76171bc4f77a870f", + "checksum": "bb1ead995ea4eed8bd4e6387dea09dea11499e5e4c417cd3920cd1530e0d88db", "events": [], "fighters": [ { @@ -106837,8 +108140,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -106897,6 +108201,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -106961,7 +108266,7 @@ "tick": 659 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 659 }, @@ -106970,7 +108275,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e06f86c7212d92b73964d2686bbc5fc60e2c62a7dc202908f8d36db8ace8b869", + "checksum": "e40034905cab06b9b1fe333355f99a2421fbc09c30c4fb6997c6e4e790e59d49", "events": [], "fighters": [ { @@ -106997,8 +108302,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -107057,6 +108363,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -107121,7 +108428,7 @@ "tick": 660 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 660 }, @@ -107130,7 +108437,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "050f2b5b56256a40a898c8bee797fd0eb8ec1f67ba3048608c8fcf274a56904f", + "checksum": "ddc9473cf96d6c766431bc04b9631411faed1259285e85be59de3c140cb73e24", "events": [], "fighters": [ { @@ -107157,8 +108464,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -107217,6 +108525,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -107281,7 +108590,7 @@ "tick": 661 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 661 }, @@ -107290,7 +108599,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "4532f031d24cb8f52c8549dd7563397f9e1132b3afc2c36e0870b07862aa8cbf", + "checksum": "3fe9055466c26a4d99bc1a8d9f922b06881227720393811c1cf1ed3e91155c3f", "events": [], "fighters": [ { @@ -107317,8 +108626,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -107377,6 +108687,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -107441,7 +108752,7 @@ "tick": 662 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 662 }, @@ -107450,7 +108761,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "1f251d9e468e6285e546d21d4ad9d9f02cc9235bc29d29ab9352e95dcd487cdb", + "checksum": "8c998ff56f256ff686c845ed730af1f2ea95c3ef34a7c995e128f9825878ec05", "events": [], "fighters": [ { @@ -107477,8 +108788,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -107537,6 +108849,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -107601,7 +108914,7 @@ "tick": 663 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 663 }, @@ -107610,7 +108923,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e04ca308aded31b78f80319b8171f9009fc697f00507131fced26839e5e22b8b", + "checksum": "68ff94490df687ae111e0965f3f20f95155025dc907e8cddee4e4ee31d388b21", "events": [], "fighters": [ { @@ -107637,8 +108950,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -107697,6 +109011,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -107761,7 +109076,7 @@ "tick": 664 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 664 }, @@ -107770,7 +109085,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "8fbedac828dc6bb1007f20ec0b2dec91517bca745162ccdf622b2d97ab503016", + "checksum": "be0c7797a0b17230cae2830701dc00b621222122be09e07f925e05a758b19594", "events": [], "fighters": [ { @@ -107797,8 +109112,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -107857,6 +109173,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -107921,7 +109238,7 @@ "tick": 665 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 665 }, @@ -107930,7 +109247,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "15f29585c8a0075c565326776d9b2d454eb447aea59f1ee5308fd081d0f4a24e", + "checksum": "b32f816df775c7a5e155b62712d2675fa9c363c22a1e18db347ba2c2e8d36915", "events": [], "fighters": [ { @@ -107957,8 +109274,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -108017,6 +109335,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -108081,7 +109400,7 @@ "tick": 666 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 666 }, @@ -108090,7 +109409,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "3b82e88a90c26b0fd9769ec57c515b0fcee67469da8486e1b328d667e108bea5", + "checksum": "273bbeb02d8f6ed9949e3a514b0ac77d40423650e7e94300d53f5cb5cc930e0d", "events": [], "fighters": [ { @@ -108117,8 +109436,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -108177,6 +109497,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -108241,7 +109562,7 @@ "tick": 667 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 667 }, @@ -108250,7 +109571,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "3053333bd75ea48d914e93f5a2db8bdbf313cccc5b4531e3762446c40ad663f5", + "checksum": "d802b7f85ffcc91ac48853b39e088e0bcbcb8dbf0cfa80272b362b9eff6db8e2", "events": [], "fighters": [ { @@ -108277,8 +109598,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -108337,6 +109659,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -108401,7 +109724,7 @@ "tick": 668 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 668 }, @@ -108410,7 +109733,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "07b428c293a535b7313dbe3131a8b9bada0ac73df72954657dc6d6b8db0e5c0a", + "checksum": "512d1f62cccd9aa990e38414549871fdb085965fae83ce3ec657de5c8e2c551a", "events": [], "fighters": [ { @@ -108437,8 +109760,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -108497,6 +109821,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -108561,7 +109886,7 @@ "tick": 669 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 669 }, @@ -108570,7 +109895,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "cca81c631954b52bc35aece32576c75829e2a29d0261ee782018ec3952c04dfd", + "checksum": "34b09043646c8eebb50085ab60b769b5f5931e8f622435a1eeb4c66fe8feccc3", "events": [], "fighters": [ { @@ -108597,8 +109922,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -108657,6 +109983,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -108721,7 +110048,7 @@ "tick": 670 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 670 }, @@ -108730,7 +110057,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "5e305a9a368002495fb8bf963a90f1fa432fab039e5ccc43267f1294fab4d9e3", + "checksum": "89579e23a566c75af16371a5bb36d16941f03fbc3f27cd6ce5781b20bf1aa25e", "events": [], "fighters": [ { @@ -108757,8 +110084,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -108817,6 +110145,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -108881,7 +110210,7 @@ "tick": 671 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 671 }, @@ -108890,7 +110219,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "9b353736fcdd4c0d29c5f1acb7d017dbe43444c921cf3e115e8f7e4ac41d7647", + "checksum": "815c28261ed940185e2455f1d5752cfdcdc06aa126e5b3b90491c2d4d6042858", "events": [], "fighters": [ { @@ -108917,8 +110246,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -108977,6 +110307,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -109041,7 +110372,7 @@ "tick": 672 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 672 }, @@ -109050,7 +110381,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "643feab359b1edda3c701a5319804c90cd7ed9c7f79a0fbf71fc41f9e4c29f17", + "checksum": "df13271fddc40c2734b75ad10938f13ea382160f204ceeb4ba543ba7a9ae17f7", "events": [], "fighters": [ { @@ -109077,8 +110408,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -109137,6 +110469,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -109201,7 +110534,7 @@ "tick": 673 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 673 }, @@ -109210,7 +110543,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "818749727add928394fa29a23df7641a5ab67163213e42780a755bf686e8d062", + "checksum": "cdfb1b302060bddfb99ab23b536a4e72083af2c8753724bb41ef71df32648d72", "events": [], "fighters": [ { @@ -109237,8 +110570,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -109297,6 +110631,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -109361,7 +110696,7 @@ "tick": 674 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 674 }, @@ -109370,7 +110705,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "cdf33213ad7893ae0e0c5a47366e08e1ce8ec77bfc286f45011d218a553c7e29", + "checksum": "4930dc74c783ed5309e836b33e5cab40d2f82d8a8033e8ee196cc47362dccc45", "events": [], "fighters": [ { @@ -109397,8 +110732,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -109457,6 +110793,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -109521,7 +110858,7 @@ "tick": 675 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 675 }, @@ -109530,7 +110867,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "9f32670da2a166344fc2406ace4eed915894e8ced4a7c4e53cab92fe76f8e3e5", + "checksum": "fbef833b4364a6940a96375b02e997c94b4a44fb355d93d5af3d63e8b41174ac", "events": [], "fighters": [ { @@ -109557,8 +110894,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -109617,6 +110955,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -109681,7 +111020,7 @@ "tick": 676 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 676 }, @@ -109690,7 +111029,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "780f5d668ebd1122fce691fe4ddab59e927d1840254f4572c344086dce86cf40", + "checksum": "1e517c16515fdc521b06de49190092a5162a59bcff0d20dc0f09f4e5b99ce00d", "events": [], "fighters": [ { @@ -109717,8 +111056,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -109777,6 +111117,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -109841,7 +111182,7 @@ "tick": 677 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 677 }, @@ -109850,7 +111191,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "0a3fa9c9e3a5455db4f829135fef80de4a940577892fd553db0f57cfe9d1b0f8", + "checksum": "a11b54a8f41e7b0147cb0790af2e181ae6b89cd81419a04b2d562bf0cc3a03b5", "events": [], "fighters": [ { @@ -109877,8 +111218,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -109937,6 +111279,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -110001,7 +111344,7 @@ "tick": 678 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 678 }, @@ -110010,7 +111353,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "f2790546d49cd0da5057981c1419a052a34b0c52f7193281b0d690b61b8c4165", + "checksum": "3f4153bdaa7761a057fd8ed652e78bf5960ead482bdeeb442c35bb7cd15f8978", "events": [], "fighters": [ { @@ -110037,8 +111380,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -110097,6 +111441,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -110161,7 +111506,7 @@ "tick": 679 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 679 }, @@ -110170,7 +111515,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "741c2c54fe8fa5008419d7d5e357d38b8386b8e46ecc01db87a86ccabedefc1c", + "checksum": "979a155c120e6cc91fed9b4cee576084394e5bf515769462813bb3fe7307bcb2", "events": [], "fighters": [ { @@ -110197,8 +111542,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -110257,6 +111603,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -110321,7 +111668,7 @@ "tick": 680 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 680 }, @@ -110330,7 +111677,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "95a7367b6348861e5af9c428fec7f6f54e2703a569355f3401641eabfb12a7d8", + "checksum": "0ba208e5c360c4021331270156b59049ccf1842b21c62c65008f3e291c240e3a", "events": [], "fighters": [ { @@ -110357,8 +111704,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -110417,6 +111765,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -110481,7 +111830,7 @@ "tick": 681 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 681 }, @@ -110490,7 +111839,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "0829d07b72dc0641bb5937eda1b83a523f55b29d0e3b02cd890ea542c3024cbc", + "checksum": "69b00dc0061062a9f2a64552cdecb061daa1dfb00a676ba01aedac6fffee6601", "events": [], "fighters": [ { @@ -110517,8 +111866,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -110577,6 +111927,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -110641,7 +111992,7 @@ "tick": 682 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 682 }, @@ -110650,7 +112001,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "250059947c2383fd27a486a48aa9eb5a01276e645e2e3b42653c23d9ff5b64dc", + "checksum": "be143f694f50e4838e057c618f98767399dbab2f974e0675bd671393af03ea98", "events": [], "fighters": [ { @@ -110677,8 +112028,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -110737,6 +112089,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -110801,7 +112154,7 @@ "tick": 683 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 683 }, @@ -110810,7 +112163,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "f2970774be2a4304f44a6c07b826efc70b674c1e3864fcdb9847911daefb75ac", + "checksum": "d208601acc7380a4d80c376170e02b917097ff7f68fd3ee4e06ee1a058602929", "events": [], "fighters": [ { @@ -110837,8 +112190,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -110897,6 +112251,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -110961,7 +112316,7 @@ "tick": 684 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 684 }, @@ -110970,7 +112325,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "25f59e9d74244c7d78dbaf4dab121ed27d6af362eb69d2961e28688799bf395c", + "checksum": "a1cee425a848cfbd38aa2ddba9b8ecfdc4f938c6867d2528a320674d4a64b4ac", "events": [], "fighters": [ { @@ -110997,8 +112352,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -111057,6 +112413,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -111121,7 +112478,7 @@ "tick": 685 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 685 }, @@ -111130,7 +112487,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "6fc8c50b8a4f9ce6645095e80828fcff65b916e6b29e1b3f9c8224fda384b2ec", + "checksum": "910ea3c6fbaf2b4ca1d53cbfd6cf711504b1987215cee87a91348c3667cf918b", "events": [], "fighters": [ { @@ -111157,8 +112514,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -111217,6 +112575,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -111281,7 +112640,7 @@ "tick": 686 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 686 }, @@ -111290,7 +112649,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "2a0dc4d3d0034e787a0be12ab8bfc2123c1c415df17e9826a4eec04dbe95b13f", + "checksum": "6427a38f8f4201cffaa78c337ab3dea88aa28fc9af444039cacd569fd8ce6b17", "events": [], "fighters": [ { @@ -111317,8 +112676,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -111377,6 +112737,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -111441,7 +112802,7 @@ "tick": 687 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 687 }, @@ -111450,7 +112811,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "95de48357df766c641499df4d2e8708621390461791aa616b892788ed376199b", + "checksum": "26afdef351455bb849ff88bf78f296585ce632b32017195b16d752937cee9204", "events": [], "fighters": [ { @@ -111477,8 +112838,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -111537,6 +112899,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -111601,7 +112964,7 @@ "tick": 688 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 688 }, @@ -111610,7 +112973,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "14c59925009ca3eebc45b513d66c629fd3dd305b1ada731f382048a0ffdf38fa", + "checksum": "12004033dff160aeb234cad16770a1593f2e18f90e963151ba5375ca9c7292fd", "events": [], "fighters": [ { @@ -111637,8 +113000,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -111697,6 +113061,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -111761,7 +113126,7 @@ "tick": 689 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 689 }, @@ -111770,7 +113135,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "b4582a017e2af7d50a89c31eeb6bf64f94fe5f19cbdbe8ae7643ea5a9e5585a0", + "checksum": "cd03a4ffdb22f918a5662e01fe0c25df9ace81fd86a5900a68b2f1a4aa9939cc", "events": [], "fighters": [ { @@ -111797,8 +113162,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -111857,6 +113223,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -111921,7 +113288,7 @@ "tick": 690 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 690 }, @@ -111930,7 +113297,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e24e18232f04491334e52bad7bf22afa4c0dc3c83be7ae4c6fcff188d81d199a", + "checksum": "af3cd1094e14ffca698779fa688bafe5b2eaf7aab206006c328cd7ff42d8d591", "events": [], "fighters": [ { @@ -111957,8 +113324,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -112017,6 +113385,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -112081,7 +113450,7 @@ "tick": 691 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 691 }, @@ -112090,7 +113459,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "ae3ec4175f989a2de92030ebf40ba74cb8045a8fbb452395cc5c534c8873d96d", + "checksum": "d6152213fde9430cc220ccdffebb2a4643466e4f920d78f727385cbd6c94c252", "events": [], "fighters": [ { @@ -112117,8 +113486,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -112177,6 +113547,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -112241,7 +113612,7 @@ "tick": 692 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 692 }, @@ -112250,7 +113621,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "4e572df5a04b95e18700a94b23ee89b282ba2122ced825ac2865c12c0d778f60", + "checksum": "55ccac5032866f074460c6ae8f36c31924d79e65745f0ca4ee5f859dbece43b1", "events": [], "fighters": [ { @@ -112277,8 +113648,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -112337,6 +113709,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -112401,7 +113774,7 @@ "tick": 693 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 693 }, @@ -112410,7 +113783,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "31b1ee615d9c3370b65611363df65f277b6396f78d64c90b87adda4395871909", + "checksum": "8e4f3791d8eb7c9fd2c84d126f30b0ac3106b1825951ea3d6723a2d51f9af9db", "events": [], "fighters": [ { @@ -112437,8 +113810,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -112497,6 +113871,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -112561,7 +113936,7 @@ "tick": 694 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 694 }, @@ -112570,7 +113945,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "5b84847ce5b8841f6bfabb5286ca7dfbd55026c3f78eecb186d617d404dae452", + "checksum": "d860d477660e85f92ab3babba3b6fd19d37605e2b6604ea396eb5ca6db4a9248", "events": [], "fighters": [ { @@ -112597,8 +113972,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -112657,6 +114033,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -112721,7 +114098,7 @@ "tick": 695 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 695 }, @@ -112730,7 +114107,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "8197a887692ca7954a9c383637bdd61a415d59bb8e14d37f82d73fcdea8ce60c", + "checksum": "e5eb3bba29a462d5c3a857802b7b93a3649981027820d36bedbdc132415ea3c3", "events": [], "fighters": [ { @@ -112757,8 +114134,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -112817,6 +114195,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -112881,7 +114260,7 @@ "tick": 696 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 696 }, @@ -112890,7 +114269,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "c1efc0860c679af324f60f99465d1b3bad9a9cabe0ed263d54996166920f787b", + "checksum": "c6b6e590062e6c474a431e2e1ad673343913f92e7dfaf9c9202992cda747254c", "events": [ { "action_id": null, @@ -112899,7 +114278,7 @@ "blood": 0, "detail": "round_start", "direction": 0, - "event_id": 46, + "event_id": 44, "kind": "bell", "target_id": null, "tick": 697 @@ -112930,8 +114309,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -112990,6 +114370,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -113054,7 +114435,7 @@ "tick": 697 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 697 }, @@ -113063,7 +114444,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "f31e3c8261e8c91cb34aa5975b1f639aa68b1d5881007ddd74e4d2ee77380b5c", + "checksum": "9ae08f8c9c2492352c97edf5d76c5b9e1cf0c58183381823dcd8ea36b54744c2", "events": [], "fighters": [ { @@ -113090,8 +114471,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -113150,6 +114532,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -113214,7 +114597,7 @@ "tick": 698 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 698 }, @@ -113223,7 +114606,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "9eff333f447674d32069650097fffadedec9d4bc4a6e955e38dee1e1a18be534", + "checksum": "1754967eb222fc4e837be2be733bc2519f718f747cc2f0b4428359ee490e1d93", "events": [], "fighters": [ { @@ -113250,8 +114633,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -113310,6 +114694,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -113374,7 +114759,7 @@ "tick": 699 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 699 }, @@ -113383,7 +114768,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "0528fb4c4562c234e19ed3579a346ed65a137f7ad1d25de719ae440a4a7aed1d", + "checksum": "0eb21bbaa15c8b4df7605094ce106c205bff39522a80904982618e91d0c4d84e", "events": [], "fighters": [ { @@ -113410,8 +114795,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -113470,6 +114856,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -113534,7 +114921,7 @@ "tick": 700 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 700 }, @@ -113543,7 +114930,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "c00b5e4090481cc571785cf1da14c9f9309e92460029726dbc6f6770eb63e1ae", + "checksum": "7844cfd2afbfbc45071bb8b6f90df4304f85b31bd46db797c92cb5c5af185956", "events": [], "fighters": [ { @@ -113570,8 +114957,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -113630,6 +115018,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -113694,7 +115083,7 @@ "tick": 701 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 701 }, @@ -113703,7 +115092,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "aa1f4b615770018f3d54b8cb5a1c522e756483f5ef75aeb6d6d3984aeabb2491", + "checksum": "7b90d3e0d5b0e5a339ed671d27137b506e531c1777f8a9c679609259c76437db", "events": [], "fighters": [ { @@ -113730,8 +115119,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -113790,6 +115180,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -113854,7 +115245,7 @@ "tick": 702 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 702 }, @@ -113863,7 +115254,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "ca8c08be6deefb967614ea134889a3b48ae10e25eae3b339b68306fa137d4c1e", + "checksum": "38cf2312c62193211d8d892f80e6f6dbfb72eecc7cc28a0598828becfccc915b", "events": [], "fighters": [ { @@ -113890,8 +115281,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -113950,6 +115342,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -114014,7 +115407,7 @@ "tick": 703 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 703 }, @@ -114023,7 +115416,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "ce5954205f4447524f489e3bde482b557fcbc3caefd489804f77c0e0c30a2724", + "checksum": "f0197d7d6bed840bc99b9abe76e3926dcb9fa47d84cdf396cb7cce19fa347856", "events": [], "fighters": [ { @@ -114050,8 +115443,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -114110,6 +115504,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -114174,7 +115569,7 @@ "tick": 704 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 704 }, @@ -114183,7 +115578,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "8ea680652328825ebd301fcc1a46c351b312786294bc62b8e60cfc5da6780e68", + "checksum": "ccc9a450d899fd9675881eca23561609428fae2c3fbe19748c973b38b46a342e", "events": [], "fighters": [ { @@ -114210,8 +115605,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -114270,6 +115666,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -114334,7 +115731,7 @@ "tick": 705 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 705 }, @@ -114343,7 +115740,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "9a8109906f42bcb36dffbbecec4e82d05a51d9aece2024de4782a94a355a6964", + "checksum": "c594ace458143ff7864b1f08e4409ffbd7277b8cbd1854c083489536a1b2ff50", "events": [], "fighters": [ { @@ -114370,8 +115767,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -114430,6 +115828,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -114494,7 +115893,7 @@ "tick": 706 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 706 }, @@ -114503,7 +115902,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "002e4b1fa0d2ef228e9b6b2441f5020798901489bfa33d188657975e644dc2c1", + "checksum": "623dd9313c651dd3fd50c403438e358ff7d545548f084e2831801c428051863c", "events": [], "fighters": [ { @@ -114530,8 +115929,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -114590,6 +115990,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -114654,7 +116055,7 @@ "tick": 707 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 707 }, @@ -114663,7 +116064,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "8f432402e4dcf1ba0350df239726438bf70426930c0c13789c66519ebbb4d2b8", + "checksum": "fada49648d2f655464985ee1e032cb005c8222bfa2378cd53014fa8b5450ea60", "events": [], "fighters": [ { @@ -114690,8 +116091,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -114750,6 +116152,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -114814,7 +116217,7 @@ "tick": 708 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 708 }, @@ -114823,7 +116226,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "26d9b715824b5733d02e84d1605925321246ae370e7e1eaff5eee6d15c4e3a29", + "checksum": "29b8f7a19cf5647eacdb99d947764a628fb231d2df99fce86570cb669d8c82e1", "events": [], "fighters": [ { @@ -114850,8 +116253,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -114910,6 +116314,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -114974,7 +116379,7 @@ "tick": 709 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 709 }, @@ -114983,7 +116388,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "c6c3a4c95eb60c4b91b9ff17968e4614aa10b806a90e2d4041ad631cc38245c5", + "checksum": "1176dc077cc197968768f7d28dadeffc8af27febb104cfcbc5a69d3afdc8dd71", "events": [], "fighters": [ { @@ -115010,8 +116415,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -115070,6 +116476,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -115134,7 +116541,7 @@ "tick": 710 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 710 }, @@ -115143,7 +116550,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "c14f88b0f5580f8f16cb9d96e951704e411b3d8bb243e21d07bc95e6cf20713c", + "checksum": "0e1a7eaf4ec16880888be70ce6084aeb8e16a72ad3066361d2d8aef3c230848f", "events": [], "fighters": [ { @@ -115170,8 +116577,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -115230,6 +116638,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -115294,7 +116703,7 @@ "tick": 711 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 711 }, @@ -115303,7 +116712,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "91bcab7fb18eec225c71b0a4227d63ce9ac25c1c895be38deb224e7fedb4bd91", + "checksum": "63a446d3340232a46a787d0cae97711c751ee3d81a8b7112bb1b92b5c542fe20", "events": [], "fighters": [ { @@ -115330,8 +116739,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -115390,6 +116800,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -115454,7 +116865,7 @@ "tick": 712 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 712 }, @@ -115463,7 +116874,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "55f0af47e97559026be234fa8218a590ca1baf6d666955e9baacd7be8387c676", + "checksum": "3f1555c1a5a2788424371f1bf83c456bf71cea35260b924f94adf86130d98deb", "events": [], "fighters": [ { @@ -115490,8 +116901,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -115550,6 +116962,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -115614,7 +117027,7 @@ "tick": 713 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 713 }, @@ -115623,7 +117036,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "0a82faadb00329a94497d794ab91c680d98056ed3f3591e8beffdff799fa10b9", + "checksum": "d5209b751775a960351743e2a26279271b986602b2c7d18d38c2058204605249", "events": [], "fighters": [ { @@ -115650,8 +117063,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -115710,6 +117124,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -115774,7 +117189,7 @@ "tick": 714 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 714 }, @@ -115783,7 +117198,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "8c8355eb555700be4de0dae0bd741149e2149a8bdd1ff96ad633d92d1e80f8f9", + "checksum": "7b964f9c0b6b1c97d66a861704292f898e3f00cea3761634a7b6bf86252c3ccc", "events": [], "fighters": [ { @@ -115810,8 +117225,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -115870,6 +117286,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -115934,7 +117351,7 @@ "tick": 715 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 715 }, @@ -115943,7 +117360,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "5daf348619246469b50094b24ea921e4362cdccacf2faec2bd89f81db2a3c15d", + "checksum": "e5ad8791af34cfe039cc4aeddbcf5b9cf0fd2a1a27e00f74611a99d268a0227d", "events": [], "fighters": [ { @@ -115970,8 +117387,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -116030,6 +117448,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -116094,7 +117513,7 @@ "tick": 716 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 716 }, @@ -116103,7 +117522,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "66507d58e87a17844634260473b23c68550895ad5dbad5736d9e24cb226453c6", + "checksum": "40aa7a004f78839125ca11d4cc8b7afa6c55f17d3e14bf03bac413b2c255a6b5", "events": [], "fighters": [ { @@ -116130,8 +117549,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -116190,6 +117610,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -116254,7 +117675,7 @@ "tick": 717 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 717 }, @@ -116263,7 +117684,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "c2b3bfa78be23abedd28f1e83d4fe76cb5227e8ccd26329b87ff1163c3d82995", + "checksum": "69ad7a40cf4a7660d5caf19d31824f0500a028d39aa37c4bf177b2a235650b5e", "events": [], "fighters": [ { @@ -116290,8 +117711,9 @@ "facing_y": 708, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -116350,6 +117772,7 @@ "facing_y": -708, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -116414,7 +117837,7 @@ "tick": 718 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 718 }, @@ -116423,7 +117846,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "32b128aae72bb4428230453f806e001e36d58ed74b060194b6b200e3f98764df", + "checksum": "53ee9bc4a7a2c654fbda04592de4facab8ec95427ad8ab152401950211ea59e7", "events": [], "fighters": [ { @@ -116450,8 +117873,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -116510,6 +117934,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -116574,7 +117999,7 @@ "tick": 719 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 719 }, @@ -116583,7 +118008,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "01f96634a206e7c89a47b7dce342bd0f6c096c0a7a61db89cbdefec4472c3756", + "checksum": "24a699bb8bfd5266654bb7f26daec4acdbbd0b4a3f91dab93658972ff4f000a0", "events": [], "fighters": [ { @@ -116610,8 +118035,9 @@ "facing_y": 708, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -116670,6 +118096,7 @@ "facing_y": -708, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -116734,7 +118161,7 @@ "tick": 720 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 720 }, @@ -116743,7 +118170,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "dec1bb7eadcbd201af8ce3705dc618baa111bb75b039023265c8c745c39d89ac", + "checksum": "c0aeca6657c0770a18139bab647cac2d2e9625cf440a1c51394cdf28fcf6c452", "events": [], "fighters": [ { @@ -116770,8 +118197,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -116830,6 +118258,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -116894,7 +118323,7 @@ "tick": 721 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 721 }, @@ -116903,7 +118332,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "09bd663d1c8ab5248c3e85ea009d4efb2979c1e3263442f00f704c9fb93790d2", + "checksum": "5951beebb9f484ae3e7a836c9e4dc734d481c6aaae0a1061aae81f622531816d", "events": [], "fighters": [ { @@ -116930,8 +118359,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -116990,6 +118420,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -117054,7 +118485,7 @@ "tick": 722 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 722 }, @@ -117063,7 +118494,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "8df5aa9129c32bef02de3580dbff2307b7e7283d6f2af6c10c66bb8f54977724", + "checksum": "51714613b9ada6c40f1eac128e238c44d19d2cee7fd2acb918703fbc0f687cb3", "events": [], "fighters": [ { @@ -117090,8 +118521,9 @@ "facing_y": 708, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -117150,6 +118582,7 @@ "facing_y": -708, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -117214,7 +118647,7 @@ "tick": 723 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 723 }, @@ -117223,7 +118656,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "5ba1e9961d9a5d149e3acb773f0d64e76f95fcbe706f9b21d7783b32c5f5c7ea", + "checksum": "b6b302d1cd1bc993f430ce402bf628dc178fa92ca5dfa5f52aa70670aa1a4181", "events": [], "fighters": [ { @@ -117250,8 +118683,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -117310,6 +118744,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -117374,7 +118809,7 @@ "tick": 724 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 724 }, @@ -117383,7 +118818,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "edf8af33cde06e35183894ca7b2ca5a38db19b86c7c5f0b979963312b19bebfd", + "checksum": "5381cabb84e2cf94d786d68c20aecefec6d48621cda57f20948f553cd506fedf", "events": [], "fighters": [ { @@ -117410,8 +118845,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -117470,6 +118906,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -117534,7 +118971,7 @@ "tick": 725 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 725 }, @@ -117543,7 +118980,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "1795f16bb9438efd4ad131cc833a9bd3ef974878ce1fec0e68a88979b0116f09", + "checksum": "58bf761e63eb81e5a73080f832c678f0c2b0ab53eed603af325677b95ddd746c", "events": [], "fighters": [ { @@ -117570,8 +119007,9 @@ "facing_y": 708, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -117630,6 +119068,7 @@ "facing_y": -708, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -117694,7 +119133,7 @@ "tick": 726 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 726 }, @@ -117703,7 +119142,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "43d66a82bc6b0cfed3c3a7550b1d5d0eaa3fea07a17cc2c718e177c6cc80cd6c", + "checksum": "ec21328e2b66b9a0c8498fbc76693a3a39135d344f9ab9cede9d34daf2b4969e", "events": [], "fighters": [ { @@ -117730,8 +119169,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -117790,6 +119230,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -117854,7 +119295,7 @@ "tick": 727 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 727 }, @@ -117863,7 +119304,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "5b8c384c6dc6f7c08d66364d4ca2badc2c86798fc72362aa2803aa58a27952d4", + "checksum": "56e4791d043b0348fca8dc51946d8f9ea9f87280901a55100f94bb9848b08aeb", "events": [], "fighters": [ { @@ -117890,8 +119331,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -117950,6 +119392,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -118014,7 +119457,7 @@ "tick": 728 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 728 }, @@ -118023,7 +119466,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "f8192968f0b81ac894cd0c569d45956ca1cca5720260aaafd4d2f6720541a32c", + "checksum": "96c7ce3564945bfe575cc6f161d2222e21ec4113ff25d99a2f36a69385d374ac", "events": [], "fighters": [ { @@ -118050,8 +119493,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -118110,6 +119554,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -118174,7 +119619,7 @@ "tick": 729 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 729 }, @@ -118183,7 +119628,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "0df6d82333fb6c209feafa96f120a31b6a045b315148da9ffd621590afbbf910", + "checksum": "c4d2ae9751865879a0296bcde8eb87a99f4b085001d41c32199522cc094fc0b3", "events": [], "fighters": [ { @@ -118210,8 +119655,9 @@ "facing_y": 708, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -118270,6 +119716,7 @@ "facing_y": -708, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -118334,7 +119781,7 @@ "tick": 730 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 730 }, @@ -118343,7 +119790,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "6a04343c31a27d2265c6ae9254ac8c35ca4eab1a17a44f57e520731730df82d8", + "checksum": "8787531ace3862b56f26f736b020ba2cb29e4d70cd41e854e4d4028e25698997", "events": [], "fighters": [ { @@ -118370,8 +119817,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -118430,6 +119878,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -118494,7 +119943,7 @@ "tick": 731 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 731 }, @@ -118503,7 +119952,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "0a164ae4e06143f0ab7e08a8cd229b6f4057fdb603f631109b38003db657fead", + "checksum": "2835010ce3a91410b65486c3c0adcbef83b02bf14d37280132f2f454d094e771", "events": [], "fighters": [ { @@ -118530,8 +119979,9 @@ "facing_y": 708, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -118590,6 +120040,7 @@ "facing_y": -708, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -118654,7 +120105,7 @@ "tick": 732 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 732 }, @@ -118663,7 +120114,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "cc315946d90116d4cc2898a7c5e4bec9912e5762d3ee53439ad34aa74554429e", + "checksum": "7060d3583375de77146b79d4270743dddb3a776ddcf61a8fff316ac25537c067", "events": [], "fighters": [ { @@ -118690,8 +120141,9 @@ "facing_y": 708, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -118750,6 +120202,7 @@ "facing_y": -708, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -118814,7 +120267,7 @@ "tick": 733 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 733 }, @@ -118823,7 +120276,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "1b0d29f92456423b03ab8f1dedd152f6b4b12487ee8bbedca30a5607e4cdd9cc", + "checksum": "3c54a9c144d279f0e3603ba1b1f1f84842767cd4cd4c7d4e47f70e9a27d21dbb", "events": [], "fighters": [ { @@ -118850,8 +120303,9 @@ "facing_y": 708, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -118910,6 +120364,7 @@ "facing_y": -708, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -118974,7 +120429,7 @@ "tick": 734 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 734 }, @@ -118983,7 +120438,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "43f367f97109cacbaeb0bc351c17f9002b6fb7fa2f7c59c4cbfd102a77894f71", + "checksum": "9b5e3ad36cdd88cd2ddf7eaeeb2ff9eadcf2cec9da29be4696dfcfd93a2f1a93", "events": [], "fighters": [ { @@ -119010,8 +120465,9 @@ "facing_y": 708, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -119070,6 +120526,7 @@ "facing_y": -708, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -119134,7 +120591,7 @@ "tick": 735 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 735 }, @@ -119143,7 +120600,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "6ed303362d2db6f035f0d8d0ade07c3b546699feef9880bc54a4bab0fa407977", + "checksum": "df7cd8df33296bd9ba38766a1bdfa29ad2c8b969248717f39188927f997a7c70", "events": [], "fighters": [ { @@ -119170,8 +120627,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -119230,6 +120688,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -119294,7 +120753,7 @@ "tick": 736 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 736 }, @@ -119303,7 +120762,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "960bd786b0f8a24da84a7561fa49dbf9c354b640395c083bb959261e5fb28612", + "checksum": "d23d76a8c9edf74b44e85845e12ede8ff0f29ac842f48fc06a94c4da1da445fb", "events": [], "fighters": [ { @@ -119330,8 +120789,9 @@ "facing_y": 708, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -119390,6 +120850,7 @@ "facing_y": -708, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -119454,7 +120915,7 @@ "tick": 737 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 737 }, @@ -119463,7 +120924,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "61344dcf90836c88f49b10781b83bed74e4804ff5ce1e3cb47e31bf049fc1849", + "checksum": "7fdb65f824da105ad56e8b722d4d87280ef8401f3ef6c9885e3c65513af65271", "events": [], "fighters": [ { @@ -119490,8 +120951,9 @@ "facing_y": 709, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -119550,6 +121012,7 @@ "facing_y": -709, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -119614,7 +121077,7 @@ "tick": 738 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 738 }, @@ -119623,7 +121086,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "75ecab7cd93a60c5f931f89a316666801295ad955950718dae77e0d1a3cfe0ff", + "checksum": "bb4dc54b236e03a52fe9e200be0e3eaaa9b7d088b74db202d54ffa15e143aec3", "events": [], "fighters": [ { @@ -119650,8 +121113,9 @@ "facing_y": 709, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -119710,6 +121174,7 @@ "facing_y": -709, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -119774,7 +121239,7 @@ "tick": 739 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 739 }, @@ -119783,7 +121248,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "fe9273d0a11a20e7735ba8e34823b51b6380876a77cbb7aa01abbcc186ba89c7", + "checksum": "1a97269b91f09b2d887884d275b42ac1e105449e2e034bf25d7af9d1769035e2", "events": [], "fighters": [ { @@ -119810,8 +121275,9 @@ "facing_y": 708, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -119870,6 +121336,7 @@ "facing_y": -708, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -119934,7 +121401,7 @@ "tick": 740 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 740 }, @@ -119943,7 +121410,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "7cd95148487839563aaee7925f7a24891f49fedfe6d709a70702553e0e639e48", + "checksum": "2e79d85e22e5b6246ca96fe307e14290679597d803accff8b364145be964b766", "events": [], "fighters": [ { @@ -119970,8 +121437,9 @@ "facing_y": 709, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -120030,6 +121498,7 @@ "facing_y": -709, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -120094,7 +121563,7 @@ "tick": 741 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 741 }, @@ -120103,7 +121572,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "8422fee47772a01399a03a14cfb81e4e3c79cb630af97764bc5a738768cd28ac", + "checksum": "9c748f517a83427ae7ff0e2b6154322a8048d92e49cb2a26fd4bd6319f742287", "events": [], "fighters": [ { @@ -120130,8 +121599,9 @@ "facing_y": 710, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -120190,6 +121660,7 @@ "facing_y": -710, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -120254,7 +121725,7 @@ "tick": 742 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 742 }, @@ -120263,7 +121734,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "0f7f574b0e40ee3de1e21f1d703d939dcae9c264c5db1eb2020869566b83981a", + "checksum": "17d31c3a62315e431f49520df4ff8c744993f5cc375e2a112288631583195def", "events": [], "fighters": [ { @@ -120290,8 +121761,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -120350,6 +121822,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -120414,7 +121887,7 @@ "tick": 743 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 743 }, @@ -120423,7 +121896,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "6fe283787f5aecdc8789eae996acb135a47564f09789f62ffdf139faa64cd343", + "checksum": "1f273563c8bce2bf3da26686c4c52838f26a54c00c71ea17281fa68943b675eb", "events": [], "fighters": [ { @@ -120450,8 +121923,9 @@ "facing_y": 708, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -120510,6 +121984,7 @@ "facing_y": -708, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -120574,7 +122049,7 @@ "tick": 744 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 744 }, @@ -120583,7 +122058,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "d27a8424492a00bca2863948f9efbe13f774f65747dbb25cd3e0d3983a917f2e", + "checksum": "b30664a489f3fdcec10259d133c93680799c0fc79ba85f5347ea6a06846e6f51", "events": [], "fighters": [ { @@ -120610,8 +122085,9 @@ "facing_y": 707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -120670,6 +122146,7 @@ "facing_y": -707, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -120734,7 +122211,7 @@ "tick": 745 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 745 }, @@ -120743,7 +122220,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "bc607c02b436b41e9a86d66bb2b14c26d18f2ac1ba350bf3b2a442a98d890244", + "checksum": "ae07c608d70b33837df281c50d655916422614681f45133b7ac7063010a1bdd0", "events": [], "fighters": [ { @@ -120770,8 +122247,9 @@ "facing_y": 708, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -120830,6 +122308,7 @@ "facing_y": -708, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -120894,7 +122373,7 @@ "tick": 746 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 746 }, @@ -120914,7 +122393,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "4a1309bef4705e16d0d77413c949d45e1c6282de5af0e80d8fec5b39c99103d7", + "checksum": "908cdd609de165aca7143d48fca11957976bb8554df4fd8e65469c54fd9667c4", "events": [ { "action_id": "one@747", @@ -120923,7 +122402,7 @@ "blood": 0, "detail": "left:hook:body", "direction": 0, - "event_id": 47, + "event_id": 45, "kind": "punch_start", "target_id": null, "tick": 747 @@ -120954,8 +122433,9 @@ "facing_y": 710, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -121014,6 +122494,7 @@ "facing_y": -710, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -121078,7 +122559,7 @@ "tick": 747 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 747 }, @@ -121098,7 +122579,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "0e8cd9727b7e923751d0aa2f2117498d47c312cd970885e5378fa6ed72e22770", + "checksum": "e9db6407edb68e864e7cc73b3471063fb85103ea6c22dd9028f3f2cefa760266", "events": [], "fighters": [ { @@ -121125,8 +122606,9 @@ "facing_y": 710, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -121185,6 +122667,7 @@ "facing_y": -712, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -121249,7 +122732,7 @@ "tick": 748 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 748 }, @@ -121269,7 +122752,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "51a594dfac4522fd6f0fa7567043b1437f1cbca464cacfc92a071f80ded1343a", + "checksum": "629d43394689c8c1461e10dcb912ed0062a9dd11cc4ee922e93a3083b2808620", "events": [], "fighters": [ { @@ -121296,8 +122779,9 @@ "facing_y": 710, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -121356,6 +122840,7 @@ "facing_y": -709, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -121420,7 +122905,7 @@ "tick": 749 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 749 }, @@ -121440,7 +122925,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "f5c9003ebad1986e7ba22c2bc0fb6b3d12b7d900cdd7459401cd75b9cefd7ef7", + "checksum": "c851778fa01088ac4461c3b3dace2987a67125d23edd640ef14da1e52fdd83bf", "events": [], "fighters": [ { @@ -121467,8 +122952,9 @@ "facing_y": 710, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -121527,6 +123013,7 @@ "facing_y": -709, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -121591,7 +123078,7 @@ "tick": 750 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 750 }, @@ -121611,7 +123098,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "319532136bdbcbf959db10fe6410466d9816919b666efc10cff5d133dedb9589", + "checksum": "ff591577c9f54a4455536f624494ece085c0d676ba6d0bcbe8acb407add12820", "events": [], "fighters": [ { @@ -121638,8 +123125,9 @@ "facing_y": 710, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -121698,6 +123186,7 @@ "facing_y": -709, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -121762,7 +123251,7 @@ "tick": 751 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 751 }, @@ -121782,7 +123271,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "50a3c59d174b36dfab3f272423c24224ae76c7672f96721350d86a23339dd98b", + "checksum": "c713d99532986c9ded01e90f25be4e8724149dab2a1dc88dc57a9711054f4f49", "events": [], "fighters": [ { @@ -121809,8 +123298,9 @@ "facing_y": 710, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -121869,6 +123359,7 @@ "facing_y": -709, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -121933,7 +123424,7 @@ "tick": 752 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 752 }, @@ -121953,7 +123444,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "fbab93a050a42c4e6ac8946e1399fe8f6ade78cd9b8920911bc83abffc29bac5", + "checksum": "463188e86931930f6a23d9e099312de5069bf485dbdfa06549c9d0fba927043e", "events": [], "fighters": [ { @@ -121980,8 +123471,9 @@ "facing_y": 710, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -122040,6 +123532,7 @@ "facing_y": -709, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -122104,7 +123597,7 @@ "tick": 753 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 753 }, @@ -122124,7 +123617,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "6db2578d67a8fb32b60640453d8324a83b831dc274553b208b5217c9012e6f8e", + "checksum": "40267c11f5fd363f23ea8b150fcb33c92a9892b2ed5e5e98fd30320f0d33a4f2", "events": [], "fighters": [ { @@ -122151,8 +123644,9 @@ "facing_y": 710, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -122211,6 +123705,7 @@ "facing_y": -709, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -122275,7 +123770,7 @@ "tick": 754 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 754 }, @@ -122295,7 +123790,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "cb9e410df65ce6b3072a8e7d567590490264a190f25ea6322979b543482010a4", + "checksum": "ff88286ca5ba40118dda58d14f7bbb7f387380101fc3e70e2c835a8be1512d49", "events": [], "fighters": [ { @@ -122322,8 +123817,9 @@ "facing_y": 710, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -122382,6 +123878,7 @@ "facing_y": -709, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -122446,7 +123943,7 @@ "tick": 755 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 755 }, @@ -122466,7 +123963,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "fb4e30f75287ad669d0df66aafb3271c8306905d56c17d878616929bcbf61433", + "checksum": "b5aaaeff7410a96bbacba02c4acb0c1301fdc1c07a41e3c4b2ac5ca9532a6b32", "events": [ { "action_id": "one@747", @@ -122475,7 +123972,7 @@ "blood": 34, "detail": "hook:body", "direction": 1, - "event_id": 48, + "event_id": 46, "kind": "hit", "target_id": "two", "tick": 756 @@ -122487,7 +123984,7 @@ "blood": 100, "detail": "disemboweled", "direction": 1, - "event_id": 49, + "event_id": 47, "kind": "injury", "target_id": "two", "tick": 756 @@ -122499,7 +123996,7 @@ "blood": 0, "detail": "", "direction": 0, - "event_id": 50, + "event_id": 48, "kind": "body_collapse", "target_id": "two", "tick": 756 @@ -122530,8 +124027,9 @@ "facing_y": 710, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -122590,6 +124088,7 @@ "facing_y": -709, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -122656,7 +124155,7 @@ "tick": 756 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 756 }, @@ -122676,7 +124175,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "d7460d6833269d97c916ee812f4520028658246d14dbf707ce9050e70f40fe2f", + "checksum": "6b1f725fbed54c32b4e08a650ff3512e826f5e9516150b7389dc401742905bc4", "events": [], "fighters": [ { @@ -122703,8 +124202,9 @@ "facing_y": 710, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -122763,6 +124263,7 @@ "facing_y": -709, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -122829,7 +124330,7 @@ "tick": 757 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 757 }, @@ -122849,7 +124350,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "76a472f754959dab5f8919f537a497337c5510a9bad6f1de50ccdfc418a73c5b", + "checksum": "b2c745cfb7abf100959dd0b5996f51431dba32a3eb7267e8f60a2b185cc68b10", "events": [], "fighters": [ { @@ -122876,8 +124377,9 @@ "facing_y": 710, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -122936,6 +124438,7 @@ "facing_y": -709, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -123002,7 +124505,7 @@ "tick": 758 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 758 }, @@ -123022,7 +124525,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "052ddf14b73fbf1c55781e33964feb8a7a1d9d1686d6e0a53afdd60aff78829a", + "checksum": "ff603a328926f7790e0310c000239553d8e7e5444c3e5c4ef715e00417dfe971", "events": [], "fighters": [ { @@ -123049,8 +124552,9 @@ "facing_y": 710, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -123109,6 +124613,7 @@ "facing_y": -709, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -123175,7 +124680,7 @@ "tick": 759 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 759 }, @@ -123195,7 +124700,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "3e1c549b3504190324bc8a9870578831dc757bf1e66a66b6c5fc304d4d2476d2", + "checksum": "aab7c25247c19a733edc2a772e8f66b6950803ae7732c9bf83a948ae7414b777", "events": [], "fighters": [ { @@ -123222,8 +124727,9 @@ "facing_y": 709, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -123282,6 +124788,7 @@ "facing_y": -709, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -123348,7 +124855,7 @@ "tick": 760 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 760 }, @@ -123368,7 +124875,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "16e5ed03f62223556a89f80cc8274beb598a5fe6a681ad775c636c8d3e326832", + "checksum": "43c5d8c07c173e90612ed7498dfde31be0a96061d082cb4712520844468e3ed0", "events": [], "fighters": [ { @@ -123395,8 +124902,9 @@ "facing_y": 709, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -123455,6 +124963,7 @@ "facing_y": -709, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -123521,7 +125030,7 @@ "tick": 761 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 761 }, @@ -123541,7 +125050,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "2fb6a9c2d663f1329203381109101c0a631bfb8e98d447a0256213de085eeedf", + "checksum": "73feb6de966e7b0db3b5c1c2ed51970148927b51716b2d8c1328f43e116dd436", "events": [], "fighters": [ { @@ -123568,8 +125077,9 @@ "facing_y": 709, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -123628,6 +125138,7 @@ "facing_y": -709, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -123694,7 +125205,7 @@ "tick": 762 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 762 }, @@ -123714,7 +125225,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "f74074392b566341ce9d19cca83f9636b8deb69953388c593c1388295f9474dd", + "checksum": "b8a0309166807b28798544b31f47eda373e06293b66a0b3aab91371bb81180ac", "events": [], "fighters": [ { @@ -123741,8 +125252,9 @@ "facing_y": 709, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -123801,6 +125313,7 @@ "facing_y": -709, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -123867,7 +125380,7 @@ "tick": 763 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 763 }, @@ -123887,7 +125400,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "98af348743202d946493c776328becb65f814a078b2dd10664d68f1b8721ddc6", + "checksum": "7adc1d7332c7c11199d9243d8f51e8e2f42a9ba6d79718405dab2af0c53e1033", "events": [], "fighters": [ { @@ -123914,8 +125427,9 @@ "facing_y": 709, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -123974,6 +125488,7 @@ "facing_y": -709, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -124040,7 +125555,7 @@ "tick": 764 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 764 }, @@ -124060,7 +125575,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "b4889b544aa238a9bf2046663f1557cb6469918c816bf833c2eaf470fc1d38b0", + "checksum": "81d3a62f1973b4f63a0342f730091a29fa8b125a81bdbd4b33f1f5cb93e3e22f", "events": [], "fighters": [ { @@ -124087,8 +125602,9 @@ "facing_y": 709, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -124147,6 +125663,7 @@ "facing_y": -709, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -124213,7 +125730,7 @@ "tick": 765 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 765 }, @@ -124222,7 +125739,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "6e246d88089df01ac4dccba3a69845f0ae30c70dcd81f39d02bfc5b09705ce51", + "checksum": "f1543277cfcdc1cdc0317872de40669ec1b04020a4c3804bf802a6c343c31540", "events": [ { "action_id": "one@747", @@ -124231,7 +125748,7 @@ "blood": 0, "detail": "body", "direction": 0, - "event_id": 51, + "event_id": 49, "kind": "knockdown", "target_id": "two", "tick": 766 @@ -124243,7 +125760,7 @@ "blood": 50, "detail": "knee_right_blown", "direction": 1, - "event_id": 52, + "event_id": 50, "kind": "injury", "target_id": "two", "tick": 766 @@ -124274,8 +125791,9 @@ "facing_y": 709, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -124334,6 +125852,7 @@ "facing_y": -709, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -124401,7 +125920,7 @@ "tick": 766 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 766 }, @@ -124410,7 +125929,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "2b98c94b17b63902c818e5a8dbb4a28e101e5dcb3004ed87144cf60b03904b9a", + "checksum": "cfc913e5ab673637ae411ad88b7a199942a212b762c52c9e2302f1da62e9a3e7", "events": [], "fighters": [ { @@ -124437,8 +125956,9 @@ "facing_y": 641, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -124497,6 +126017,7 @@ "facing_y": -709, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -124564,7 +126085,7 @@ "tick": 767 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 767 }, @@ -124573,7 +126094,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "c19c38cb401fd65e17260d279d7635f78764c00dc17834d3354bf8c052b54895", + "checksum": "7083ce60ebe13c7d88e1c74f1e388195f602b8c32edb59de3be5da3227d1403b", "events": [], "fighters": [ { @@ -124600,8 +126121,9 @@ "facing_y": 569, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -124660,6 +126182,7 @@ "facing_y": -709, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -124727,7 +126250,7 @@ "tick": 768 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 768 }, @@ -124736,7 +126259,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "91ccc9b5c9258c43d498aee148744c3170b33a1388f5d2116b45becb7c5ce6c2", + "checksum": "729364ef4f72356429a6b8be13bdc3416c4f92dc83695e1dce6fdbe9bae8c273", "events": [], "fighters": [ { @@ -124763,8 +126286,9 @@ "facing_y": 489, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -124823,6 +126347,7 @@ "facing_y": -709, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -124890,7 +126415,7 @@ "tick": 769 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 769 }, @@ -124899,7 +126424,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "6ab72bcd98cb354af510347eff2d3e1a3f2459b34f855fdc154432c0da2f4114", + "checksum": "98336adbd303e7f532c1d8d1682d1471b239bc0123664287f2b948148268be4b", "events": [], "fighters": [ { @@ -124926,8 +126451,9 @@ "facing_y": 402, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -124986,6 +126512,7 @@ "facing_y": -709, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -125053,7 +126580,7 @@ "tick": 770 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 770 }, @@ -125062,7 +126589,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "f59d55579137b8113c0113a83e59983eff5587b3fc2b33e18405b2dd25e91be4", + "checksum": "a60d94133e8d3731b5bc3d930098d34cb4adc9ec638d1c7abc2e94761990e81a", "events": [], "fighters": [ { @@ -125089,8 +126616,9 @@ "facing_y": 320, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -125149,6 +126677,7 @@ "facing_y": -709, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -125216,7 +126745,7 @@ "tick": 771 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 771 }, @@ -125225,7 +126754,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "19c33b6a810b36dbba397daeceabc0c3fef04f911304e0976f48748143b56662", + "checksum": "905805a63ff7393db22547accf86fe56011c82ff18daf455edfe72823d3cbd3b", "events": [], "fighters": [ { @@ -125252,8 +126781,9 @@ "facing_y": 240, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -125312,6 +126842,7 @@ "facing_y": -709, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -125379,7 +126910,7 @@ "tick": 772 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 772 }, @@ -125388,7 +126919,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "8b3ca0cb1867200d02f3eb5cf6164c6b0ec189e13087fa2d4a41f3bcfb8c642e", + "checksum": "074850bee2cb265761549d8d7f484905d1767fe947883f1f5abea1fef59268e7", "events": [], "fighters": [ { @@ -125415,8 +126946,9 @@ "facing_y": 177, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -125475,6 +127007,7 @@ "facing_y": -709, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -125542,7 +127075,7 @@ "tick": 773 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 773 }, @@ -125551,7 +127084,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "69cf3b8d87dd32e45d96628e6b9db3dce84cc930c9eef97e2e9767bd7fffeead", + "checksum": "709362e85c5c698baf891071629caafd95dd491ea8d9650e821e08b8befeb6bd", "events": [], "fighters": [ { @@ -125578,8 +127111,9 @@ "facing_y": 107, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -125638,6 +127172,7 @@ "facing_y": -709, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -125705,7 +127240,7 @@ "tick": 774 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 774 }, @@ -125714,7 +127249,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "d7be60a82d23ce36b3bd3ae7ee7e8b8e663d22dc14c4e12b8378b9905f259821", + "checksum": "d90471997fb1035f8a8fe60ef0ab3de12e254a3c2d050409e2b06cf467702a3c", "events": [], "fighters": [ { @@ -125741,8 +127276,9 @@ "facing_y": 42, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -125801,6 +127337,7 @@ "facing_y": -709, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -125868,7 +127405,7 @@ "tick": 775 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 775 }, @@ -125877,7 +127414,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "1e0c7810882d44a34338c307ae7c1279f2d1b5b4fe36926c8c7678c8223fef36", + "checksum": "b408a0ffeb036b8107281064372110c1685f57c62445ded0c84458205c7864bb", "events": [], "fighters": [ { @@ -125904,8 +127441,9 @@ "facing_y": -16, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -125964,6 +127502,7 @@ "facing_y": -709, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -126031,7 +127570,7 @@ "tick": 776 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 776 }, @@ -126040,7 +127579,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "d03c7a51f324005b0b4a2acc05450971147bc443dd7471ea53da67e3c947f748", + "checksum": "4657bd17d95057a36fe9314f292218affaad0ef48d307dfa498e267bb6fd3312", "events": [], "fighters": [ { @@ -126067,8 +127606,9 @@ "facing_y": -69, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -126127,6 +127667,7 @@ "facing_y": -709, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -126194,7 +127735,7 @@ "tick": 777 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 777 }, @@ -126203,7 +127744,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "b4ff70d76e37b2d178d4bdb329aa13492b8189574be7e9f15c8d2e884ecd155d", + "checksum": "a3913900eb972d706e2dd5d6610d68314e64d32afbdbc63f6217697e772ae17f", "events": [], "fighters": [ { @@ -126230,8 +127771,9 @@ "facing_y": -110, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -126290,6 +127832,7 @@ "facing_y": -709, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -126357,7 +127900,7 @@ "tick": 778 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 778 }, @@ -126366,7 +127909,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "a16225dccd7f1da6704f8a8c519456ab889e6928eedb00e7434e9179f8450127", + "checksum": "8c26fd1a2e342c895a1885016ab4d8ba58444bda3a6591ec28134a813bcfd846", "events": [], "fighters": [ { @@ -126393,8 +127936,9 @@ "facing_y": -153, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -126453,6 +127997,7 @@ "facing_y": -709, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -126520,7 +128065,7 @@ "tick": 779 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 779 }, @@ -126529,7 +128074,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "ec950d29c04a641382584415b2a8faffb0c9bc5130a37c114539612302515e61", + "checksum": "82fe2467ce06257b7bd7f3b420adf8d7cfd980f02b1b9e8828ccc706d4b32085", "events": [], "fighters": [ { @@ -126556,8 +128101,9 @@ "facing_y": -193, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -126616,6 +128162,7 @@ "facing_y": -709, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -126683,7 +128230,7 @@ "tick": 780 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 780 }, @@ -126692,7 +128239,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "70793710c419b395dfb021334dd9e5b5ba08ec4ad526aae2d302f42830e53677", + "checksum": "bb080d07dca7f1304d1e87797eea8980d3cbd05c8c9685a0cbf3a2f1e4ca8cb6", "events": [], "fighters": [ { @@ -126719,8 +128266,9 @@ "facing_y": -227, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -126779,6 +128327,7 @@ "facing_y": -709, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -126846,7 +128395,7 @@ "tick": 781 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 781 }, @@ -126855,7 +128404,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "d9355df6da980f1291bed9f3a0a3e8c66aaba889138aa82e261e41b5ea35476c", + "checksum": "499a7bc9dc2d4f3d81ee1c5dd8e2d80006cff9887a7f3552fb001fd9a2fcea39", "events": [], "fighters": [ { @@ -126882,8 +128431,9 @@ "facing_y": -260, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -126942,6 +128492,7 @@ "facing_y": -709, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -127009,7 +128560,7 @@ "tick": 782 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 782 }, @@ -127018,7 +128569,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "fd3147da2059cbade3ed2ddd5d786150fabab2c38628c2478a4d5ba184455518", + "checksum": "9964d2a7dd3be8a001af6a9cfe6897eba5c130cec0bf91d38ef0fb818d84ede8", "events": [], "fighters": [ { @@ -127045,8 +128596,9 @@ "facing_y": -283, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -127105,6 +128657,7 @@ "facing_y": -709, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -127172,7 +128725,7 @@ "tick": 783 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 783 }, @@ -127181,7 +128734,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e1088fae2f7f59abac40ee76cfd9fd6adc8ff625a20ae91cd75dd12af0f781b6", + "checksum": "86b22f6a6360b41f5f744f5876b416517f7819758862dcd608fa407e6c59f4e4", "events": [], "fighters": [ { @@ -127208,8 +128761,9 @@ "facing_y": -312, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -127268,6 +128822,7 @@ "facing_y": -709, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -127335,7 +128890,7 @@ "tick": 784 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 784 }, @@ -127344,7 +128899,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "4f0b671eaf97f97bfb3594d8023e9e19332202f7221022c92863d54489698bf7", + "checksum": "6decbb4899b027ffc28e7ea864503427e2124b1072ed1628f5a50a5e34208c06", "events": [], "fighters": [ { @@ -127371,8 +128926,9 @@ "facing_y": -336, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -127431,6 +128987,7 @@ "facing_y": -709, "get_up_count": 0, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -127498,7 +129055,7 @@ "tick": 785 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 785 }, @@ -127507,7 +129064,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e69043e828c2ca99980f8e7cee2f01ba9218e61bb905f25bfe19b51621ba5294", + "checksum": "3d8e57b6f6c324c687e2b0141acd5053148f958884a124d3297b16ace58919a1", "events": [ { "action_id": null, @@ -127516,7 +129073,7 @@ "blood": 0, "detail": "", "direction": 0, - "event_id": 54, + "event_id": 51, "kind": "count", "target_id": "two", "tick": 786 @@ -127547,8 +129104,9 @@ "facing_y": -358, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -127607,6 +129165,7 @@ "facing_y": -709, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -127674,7 +129233,7 @@ "tick": 786 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 786 }, @@ -127683,7 +129242,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "0bb3f8c1c10ae0e6eb954030456d4b80cb4791e16e6d65c61e36864000b2b4f8", + "checksum": "00c1dde6c4ba1eddf0b5e0a9a485c1802847bd3304b8d64b73d66cbaafe1e1b6", "events": [], "fighters": [ { @@ -127710,8 +129269,9 @@ "facing_y": -377, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -127770,6 +129330,7 @@ "facing_y": -709, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -127837,7 +129398,7 @@ "tick": 787 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 787 }, @@ -127846,7 +129407,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "a02aa756809f7234a60c10eb32d173e8ffd58d97f3e767a058e137badc62a009", + "checksum": "17239418edce1a32473eb60010cee4ed4fb988a39484b92ace9662c6f99a7014", "events": [], "fighters": [ { @@ -127873,8 +129434,9 @@ "facing_y": -393, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -127933,6 +129495,7 @@ "facing_y": -709, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -128000,7 +129563,7 @@ "tick": 788 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 788 }, @@ -128009,7 +129572,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "8c754c4ac74704dc155f95f8eb3e78fe209e5a014c5fb226c551a90653ef2626", + "checksum": "ba23a0bf7310e2c6495a359436cd66edd7f1d70679528a441097740d70b05217", "events": [], "fighters": [ { @@ -128036,8 +129599,9 @@ "facing_y": -409, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -128096,6 +129660,7 @@ "facing_y": -709, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -128163,7 +129728,7 @@ "tick": 789 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 789 }, @@ -128172,7 +129737,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "25cadcf8c8d9a451907ff2af94eb0c51bbea37b84c3a1cfb2f18e02ae2cf7b29", + "checksum": "666fad39a4134a0f1922deedd519e702f95fbaa1a8190f4df874b67a2b6edbf4", "events": [], "fighters": [ { @@ -128199,8 +129764,9 @@ "facing_y": -425, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -128259,6 +129825,7 @@ "facing_y": -709, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -128326,7 +129893,7 @@ "tick": 790 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 790 }, @@ -128335,7 +129902,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "daad2f51e32ad8cbbb326f2a44a3c613d79c12f2772a732d3f869caa27136ef4", + "checksum": "1bbfa24c3c9b6d8a4adca8e5dc25f867935a068a79ad4eea248ba7371220b689", "events": [], "fighters": [ { @@ -128362,8 +129929,9 @@ "facing_y": -438, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -128422,6 +129990,7 @@ "facing_y": -709, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -128489,7 +130058,7 @@ "tick": 791 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 791 }, @@ -128498,7 +130067,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "1ea9bd3b5663d2f4b8b38d80b71e737557c4c98f0ed8faddbd29fd0dbe9d9a45", + "checksum": "59d26996b7159b8daa6d9d75472d3081d9245dbb1db33f60906d83198c8ba777", "events": [], "fighters": [ { @@ -128525,8 +130094,9 @@ "facing_y": -453, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -128585,6 +130155,7 @@ "facing_y": -709, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -128652,7 +130223,7 @@ "tick": 792 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 792 }, @@ -128661,7 +130232,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "13e49a32210cff41d244a8f2c58de5db709804c15283e936949d8c6428850ec6", + "checksum": "846e86b2213c12a02f936c2a6266002d2b8d61434397cd1b9859a43b6357d4d7", "events": [], "fighters": [ { @@ -128688,8 +130259,9 @@ "facing_y": -462, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -128748,6 +130320,7 @@ "facing_y": -709, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -128815,7 +130388,7 @@ "tick": 793 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 793 }, @@ -128824,7 +130397,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "719a2c91d236ac6332d9732f22f664e0064c977fbc73f2134d76c39ca4b4612b", + "checksum": "fa4d4d41bbb8677df009982ff71673cde426578dfba5bb7995c4feaf86506e0c", "events": [], "fighters": [ { @@ -128851,8 +130424,9 @@ "facing_y": -473, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -128911,6 +130485,7 @@ "facing_y": -709, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -128978,7 +130553,7 @@ "tick": 794 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 794 }, @@ -128987,7 +130562,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "c5623329a20699fc981c28757fc1cf46aa19a5fe645d438deb70f48613dc97eb", + "checksum": "8790ac2d8cc32ac1d02966fb865dd5c0fe15fedf71de12003ab1af4e4019adcd", "events": [], "fighters": [ { @@ -129014,8 +130589,9 @@ "facing_y": -486, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -129074,6 +130650,7 @@ "facing_y": -709, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -129141,7 +130718,7 @@ "tick": 795 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 795 }, @@ -129150,7 +130727,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "233d80d5cd92215cbb66bdeed85fe5c19129dd72890d71ca99778e2b538851ac", + "checksum": "0c86502d65805e61d82af8db1e38d6e3fd4b76be9d5db0fbe51c3ea578734624", "events": [], "fighters": [ { @@ -129177,8 +130754,9 @@ "facing_y": -496, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -129237,6 +130815,7 @@ "facing_y": -709, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -129304,7 +130883,7 @@ "tick": 796 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 796 }, @@ -129313,7 +130892,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "4a789d56b9c07becc29e72fd5d1e99dec51511180ab1bdd23c029c10d7fe293f", + "checksum": "95a6d6ece7532ddb949014486e2930ff3abc39f89ef83bb6e42d483c5df0140a", "events": [], "fighters": [ { @@ -129340,8 +130919,9 @@ "facing_y": -505, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -129400,6 +130980,7 @@ "facing_y": -709, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -129467,7 +131048,7 @@ "tick": 797 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 797 }, @@ -129476,7 +131057,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "d3c718db0eb513f1591afac6b8a829f98869c48574eb063f67cde57b6b2b5828", + "checksum": "a59c3862d15c8847011156e9c4b750d111c9e39abba5ea4ea6a5d3f977f29052", "events": [], "fighters": [ { @@ -129503,8 +131084,9 @@ "facing_y": -511, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -129563,6 +131145,7 @@ "facing_y": -709, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -129630,7 +131213,7 @@ "tick": 798 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 798 }, @@ -129639,7 +131222,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "9541fcd71f4eb7e8935c505c5ef8029a0f0050dd9f8b7ee99c76cdf3d4afbd2d", + "checksum": "8b58a6038769dd87a347f106379fac84251d3ff527c96fa382b0cb3b501e9906", "events": [], "fighters": [ { @@ -129666,8 +131249,9 @@ "facing_y": -519, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -129726,6 +131310,7 @@ "facing_y": -709, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -129793,7 +131378,7 @@ "tick": 799 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 799 }, @@ -129802,7 +131387,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "736f3100725f4087ab408dc3f3d84385544702662c7dc710fa797fdee7df16aa", + "checksum": "26534b5d327e39d4b6868bb93edb99d76be9cc456bfec98601e632cf6b63b7e6", "events": [], "fighters": [ { @@ -129829,8 +131414,9 @@ "facing_y": -527, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -129889,6 +131475,7 @@ "facing_y": -709, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -129956,7 +131543,7 @@ "tick": 800 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 800 }, @@ -129965,7 +131552,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "da5b5857aa4ca346423148ccfef373608a939d4a1eb446411a7e051a30a36fbd", + "checksum": "e1209487abbe77721c163fefeacb82b1a4b7059078d0436b31de3645c8173d69", "events": [], "fighters": [ { @@ -129992,8 +131579,9 @@ "facing_y": -535, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -130052,6 +131640,7 @@ "facing_y": -709, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -130119,7 +131708,7 @@ "tick": 801 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 801 }, @@ -130128,7 +131717,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "a8d25010375e0acd7018bfb513fa81711b37822bd7b7874e2035316d411e5410", + "checksum": "512c1a527d25617436334c91f37a22b47c4a47a92f14373ee6170b22b53c27ed", "events": [], "fighters": [ { @@ -130155,8 +131744,9 @@ "facing_y": -542, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -130215,6 +131805,7 @@ "facing_y": -709, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -130282,7 +131873,7 @@ "tick": 802 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 802 }, @@ -130291,7 +131882,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "0485ae76433aca891722b7637a855484805ad9c4f08a0a4f4389d948027ffa51", + "checksum": "ca3953a0c81e0be723f7a68bef52b686581339713aba06120221f5d1df7ea5d4", "events": [], "fighters": [ { @@ -130318,8 +131909,9 @@ "facing_y": -547, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -130378,6 +131970,7 @@ "facing_y": -709, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -130445,7 +132038,7 @@ "tick": 803 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 803 }, @@ -130454,7 +132047,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e7b7c854bbfa96db4a70732cc409d7011a1f797d7161bf3c7f347160cb2263fa", + "checksum": "f2d9b118ebe6547becf809cd4ea58fdb20034f60dd096f6975d07d0cea13cf67", "events": [], "fighters": [ { @@ -130481,8 +132074,9 @@ "facing_y": -553, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -130541,6 +132135,7 @@ "facing_y": -709, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -130608,7 +132203,7 @@ "tick": 804 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 804 }, @@ -130617,7 +132212,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "7c54aae11a9732aac9c1d27c70ee0a3648760e2fc668486631c5c968cfb1f4b1", + "checksum": "76093789410a4b2aca477eaef0c8ee99e82a64000bb5ffca7a7b510cde7babbb", "events": [], "fighters": [ { @@ -130644,8 +132239,9 @@ "facing_y": -558, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -130704,6 +132300,7 @@ "facing_y": -709, "get_up_count": 1, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -130771,7 +132368,7 @@ "tick": 805 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 805 }, @@ -130780,7 +132377,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "8ec504c1ebc6fbc7b16326c132ecf584c72de29e6d0a39c254e42ebff3180691", + "checksum": "a59d8d49179971f08f8e0ab47f0cbaf01923466fbf24fdb016c25bf03b30dbfb", "events": [ { "action_id": null, @@ -130789,7 +132386,7 @@ "blood": 0, "detail": "", "direction": 0, - "event_id": 57, + "event_id": 53, "kind": "count", "target_id": "two", "tick": 806 @@ -130820,8 +132417,9 @@ "facing_y": -565, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -130880,6 +132478,7 @@ "facing_y": -709, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -130947,7 +132546,7 @@ "tick": 806 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 806 }, @@ -130956,7 +132555,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "8c1cdf295dd981f8188352a893216b9ebf81c402483c6b32b0df86c2baf7a9a0", + "checksum": "ccf479ae122866b1092301dbbc7515b3f4001cbbe56589329386de3e6089c428", "events": [], "fighters": [ { @@ -130983,8 +132582,9 @@ "facing_y": -571, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -131043,6 +132643,7 @@ "facing_y": -709, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -131110,7 +132711,7 @@ "tick": 807 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 807 }, @@ -131119,7 +132720,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "d1f60547055c26ec9312d0ad0e6b571a132eada89c323375283ceffdb1a153a7", + "checksum": "08581a64543de8b26f2cf792258e53f616b5e1ac1982cbe87bbcca2e5fbf9653", "events": [], "fighters": [ { @@ -131146,8 +132747,9 @@ "facing_y": -573, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -131206,6 +132808,7 @@ "facing_y": -709, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -131273,7 +132876,7 @@ "tick": 808 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 808 }, @@ -131282,7 +132885,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "2fa6586463a273674c1022cd73aafbb71e71c2238e5ee5f45863e3dd4e57ff35", + "checksum": "90a389c6c3fef7141c2de6dec7b92b8db22e4ccf01c4a2312c63c65f5380b4bc", "events": [], "fighters": [ { @@ -131309,8 +132912,9 @@ "facing_y": -579, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -131369,6 +132973,7 @@ "facing_y": -709, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -131436,7 +133041,7 @@ "tick": 809 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 809 }, @@ -131445,7 +133050,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "50b2d3508589a41f5d2e0525761a33c7a776a912afa1ed6833bbd1e37ad6d9fc", + "checksum": "1f9d632603844038d85964c7692eb7772c0073340460cf4f557b3442850278de", "events": [], "fighters": [ { @@ -131472,8 +133077,9 @@ "facing_y": -583, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -131532,6 +133138,7 @@ "facing_y": -709, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -131599,7 +133206,7 @@ "tick": 810 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 810 }, @@ -131608,7 +133215,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "19e58746ca50f49bafa5840c2b9c09bf9923fe8494f5495c53a522104ca09569", + "checksum": "771a8f2246eb685af8586df5cc69135a11f5267c036cd6b19c9311a6694233e7", "events": [], "fighters": [ { @@ -131635,8 +133242,9 @@ "facing_y": -588, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -131695,6 +133303,7 @@ "facing_y": -709, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -131762,7 +133371,7 @@ "tick": 811 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 811 }, @@ -131771,7 +133380,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "319205f8a778c11a66acf80379a0e9dd60363adcb266deede6e6f02ff928d695", + "checksum": "0811297293ebf8e2c87a67f87cc0d48e84985cec36e7d5180a4de5e6c890e472", "events": [], "fighters": [ { @@ -131798,8 +133407,9 @@ "facing_y": -592, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -131858,6 +133468,7 @@ "facing_y": -709, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -131925,7 +133536,7 @@ "tick": 812 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 812 }, @@ -131934,7 +133545,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "8a623477d59ed89ab970771e224b7261137807fbf85aa9353bc85243cc2e5389", + "checksum": "b9fb196cb55fc080dea49010db35ca63ecc37def24dcb77a44cd0d844a39763d", "events": [], "fighters": [ { @@ -131961,8 +133572,9 @@ "facing_y": -596, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -132021,6 +133633,7 @@ "facing_y": -709, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -132088,7 +133701,7 @@ "tick": 813 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 813 }, @@ -132097,7 +133710,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "9586d5e9c8c3b772da22ee6eb7e271676a27c443455a6021b0b3977f03a90989", + "checksum": "5f0d006435a9da69ba81c8c94b00f48b4a02b45bbf694328cc796bd697ebf13a", "events": [], "fighters": [ { @@ -132124,8 +133737,9 @@ "facing_y": -597, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -132184,6 +133798,7 @@ "facing_y": -709, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -132251,7 +133866,7 @@ "tick": 814 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 814 }, @@ -132260,7 +133875,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "6587f4d11377cbef5ed1b61266ec2dfd16d446663a2c4837c6818d10040732d8", + "checksum": "b2850b0cbcc2cab676e0a02ea362b788d13efdaaad6adc214afa61b7e8929390", "events": [], "fighters": [ { @@ -132287,8 +133902,9 @@ "facing_y": -601, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -132347,6 +133963,7 @@ "facing_y": -709, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -132414,7 +134031,7 @@ "tick": 815 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 815 }, @@ -132423,21 +134040,8 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "6a389dbd0c4615bf880e81b6500f561cdbaf5288aedb006c63a301da1f0033d9", - "events": [ - { - "action_id": null, - "actor_id": "two", - "amount": 2, - "blood": 0, - "detail": "", - "direction": 0, - "event_id": 59, - "kind": "get_up", - "target_id": null, - "tick": 816 - } - ], + "checksum": "f7288c90d93ccf86d3bfca6c9f92ee4afe0c6660c1f04b918ee5661ffa303818", + "events": [], "fighters": [ { "action": null, @@ -132463,8 +134067,9 @@ "facing_y": -604, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -132523,6 +134128,7 @@ "facing_y": -709, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -132533,15 +134139,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -132564,7 +134170,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 70, + "phase_ticks_remaining": 150, "referee": { "alive": true, "facing_x": 811, @@ -132590,7 +134196,7 @@ "tick": 816 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 816 }, @@ -132599,7 +134205,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "fecbc112de75258516c57f2613c6bff84a63a582e743fbe2e6e042c0a3763422", + "checksum": "509307407989d1d1d383bca6d146526ea617da64165d2190c9f256e32e344fa5", "events": [], "fighters": [ { @@ -132626,8 +134232,9 @@ "facing_y": -608, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -132682,10 +134289,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -751, - "facing_y": -660, + "facing_x": -709, + "facing_y": -709, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -132696,15 +134304,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -132727,7 +134335,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 69, + "phase_ticks_remaining": 149, "referee": { "alive": true, "facing_x": 811, @@ -132753,7 +134361,7 @@ "tick": 817 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 817 }, @@ -132762,7 +134370,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "02c17a4b71b242db74528b5c56b9a5f6da8cce0e1c7df8db5a84a3b394f5656d", + "checksum": "cba0c676d9fc73a0884adcc21e83ee2682306e8fab3591da78d595a1f231cb12", "events": [], "fighters": [ { @@ -132789,8 +134397,9 @@ "facing_y": -611, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -132845,10 +134454,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -792, - "facing_y": -611, + "facing_x": -709, + "facing_y": -709, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -132859,15 +134469,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -132890,7 +134500,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 68, + "phase_ticks_remaining": 148, "referee": { "alive": true, "facing_x": 811, @@ -132916,7 +134526,7 @@ "tick": 818 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 818 }, @@ -132925,7 +134535,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "82ed4b3a6fd5ca21503355c3b3f0d8d31ff5588c8ef3cae5f7e299b30cb64fde", + "checksum": "67d2624ce90bcbdf6df56722266a6348f4efb2e43dc2fbf6fa19d1c54089e75d", "events": [], "fighters": [ { @@ -132952,8 +134562,9 @@ "facing_y": -614, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -133008,10 +134619,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -829, - "facing_y": -559, + "facing_x": -709, + "facing_y": -709, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -133022,15 +134634,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -133053,7 +134665,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 67, + "phase_ticks_remaining": 147, "referee": { "alive": true, "facing_x": 811, @@ -133079,7 +134691,7 @@ "tick": 819 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 819 }, @@ -133088,7 +134700,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "2fc6531e6093ed3113bb31f966fd88bd2638234423d0693f9ff0ffe75450ea9f", + "checksum": "19978b252b48d66521948d26d39dc4ed8babbb41331de7c7e58ee86a046ddef9", "events": [], "fighters": [ { @@ -133115,8 +134727,9 @@ "facing_y": -617, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -133171,10 +134784,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -863, - "facing_y": -505, + "facing_x": -709, + "facing_y": -709, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -133185,15 +134799,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -133216,7 +134830,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 66, + "phase_ticks_remaining": 146, "referee": { "alive": true, "facing_x": 811, @@ -133242,7 +134856,7 @@ "tick": 820 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 820 }, @@ -133251,7 +134865,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "1b35c97917bb841160b0cccf80a6d435d7933c3994fc08f7a576c7ce2838f269", + "checksum": "a6ef2c689ed9d4005ba28150a2904c3a0346f0092e1999b1df3b7108b09a1d20", "events": [], "fighters": [ { @@ -133278,8 +134892,9 @@ "facing_y": -620, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -133334,10 +134949,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -894, - "facing_y": -449, + "facing_x": -709, + "facing_y": -709, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -133348,15 +134964,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -133379,7 +134995,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 65, + "phase_ticks_remaining": 145, "referee": { "alive": true, "facing_x": 811, @@ -133405,7 +135021,7 @@ "tick": 821 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 821 }, @@ -133414,7 +135030,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "efc3b87a0c892732c6985174ef8ee0a96feadc54dc9af1b27cede2ac369805c8", + "checksum": "3786026fb4bc904789ce0b80a4512d68ad9c0355b150bb6355e6985706b2c2d0", "events": [], "fighters": [ { @@ -133441,8 +135057,9 @@ "facing_y": -622, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -133497,10 +135114,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -920, - "facing_y": -391, + "facing_x": -709, + "facing_y": -709, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -133511,15 +135129,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -133542,7 +135160,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 64, + "phase_ticks_remaining": 144, "referee": { "alive": true, "facing_x": 811, @@ -133568,7 +135186,7 @@ "tick": 822 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 822 }, @@ -133577,7 +135195,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "9e752a3eaf06ef5525990ef534d84d2c278fdd925922695f17a2fa21b5d1785f", + "checksum": "1a92a599e6b97224f6d26b0ab9148684b2f82fa9938cd372c3c88868e485e753", "events": [], "fighters": [ { @@ -133604,8 +135222,9 @@ "facing_y": -625, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -133660,10 +135279,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -943, - "facing_y": -331, + "facing_x": -709, + "facing_y": -709, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -133674,15 +135294,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -133705,7 +135325,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 63, + "phase_ticks_remaining": 143, "referee": { "alive": true, "facing_x": 811, @@ -133731,7 +135351,7 @@ "tick": 823 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 823 }, @@ -133740,7 +135360,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "b8c81988d1748ba9b2a3ccb9a9ed12b873334c6d78a723b93dd54e536d5c16b2", + "checksum": "b0558e79114a4c43e09618e41aba8406846c6e5f7de16a4436ae7d6a1299cdce", "events": [], "fighters": [ { @@ -133767,8 +135387,9 @@ "facing_y": -625, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -133823,10 +135444,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -963, - "facing_y": -270, + "facing_x": -709, + "facing_y": -709, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -133837,15 +135459,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -133868,7 +135490,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 62, + "phase_ticks_remaining": 142, "referee": { "alive": true, "facing_x": 811, @@ -133894,7 +135516,7 @@ "tick": 824 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 824 }, @@ -133903,7 +135525,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "ad639950de83e6e14b100fcbe203250526e51f73f3888d506aecfee7b6c597f5", + "checksum": "4944b9f423049762efbd04e9ffadf389a057eac142dc7dc75278bb8492488a06", "events": [], "fighters": [ { @@ -133930,8 +135552,9 @@ "facing_y": -625, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -133986,10 +135609,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -978, - "facing_y": -208, + "facing_x": -709, + "facing_y": -709, "get_up_count": 2, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -134000,15 +135624,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -134031,7 +135655,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 61, + "phase_ticks_remaining": 141, "referee": { "alive": true, "facing_x": 811, @@ -134057,7 +135681,7 @@ "tick": 825 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 825 }, @@ -134066,7 +135690,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "d726d089bc39efaed45ef89092364a1bc0fc7683e12ee51fc47bff7435fd034c", + "checksum": "8c7cc9822d1502ede8f8d866161f32a163cdc498a4f6e8d11a94c7adc990f270", "events": [ { "action_id": null, @@ -134075,7 +135699,7 @@ "blood": 0, "detail": "", "direction": 0, - "event_id": 60, + "event_id": 55, "kind": "count", "target_id": "two", "tick": 826 @@ -134106,8 +135730,9 @@ "facing_y": -625, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -134162,10 +135787,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -989, - "facing_y": -145, + "facing_x": -709, + "facing_y": -709, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -134176,15 +135802,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -134207,7 +135833,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 60, + "phase_ticks_remaining": 140, "referee": { "alive": true, "facing_x": 811, @@ -134233,7 +135859,7 @@ "tick": 826 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 826 }, @@ -134242,7 +135868,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "1c4b48f6cb1654ef490a4f4bf3d26c725a48ca7330ba1d424f50ecb69f472fee", + "checksum": "b2d5ecfaa9ec2029adca3de9eadc8e73482abca89b613e7df5834d8bd8f06088", "events": [], "fighters": [ { @@ -134269,8 +135895,9 @@ "facing_y": -625, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -134325,10 +135952,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -997, - "facing_y": -81, + "facing_x": -709, + "facing_y": -709, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -134339,15 +135967,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -134370,7 +135998,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 59, + "phase_ticks_remaining": 139, "referee": { "alive": true, "facing_x": 811, @@ -134396,7 +136024,7 @@ "tick": 827 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 827 }, @@ -134405,7 +136033,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "57e9c948be91f1dc7ce819c9ccae9b6c5437919c0a4f28bad3490903436bbe82", + "checksum": "6d4f7896e2303f20482641312d06023687d2db45c0e817e0747f44d2d7a03410", "events": [], "fighters": [ { @@ -134432,8 +136060,9 @@ "facing_y": -625, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -134488,10 +136117,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -1000, - "facing_y": -17, + "facing_x": -709, + "facing_y": -709, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -134502,15 +136132,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -134533,7 +136163,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 58, + "phase_ticks_remaining": 138, "referee": { "alive": true, "facing_x": 811, @@ -134559,7 +136189,7 @@ "tick": 828 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 828 }, @@ -134568,7 +136198,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "edcaf756306f4e099b70cf9b5c5932d50ffc6cb594bef795ee6bab2a42c9ada3", + "checksum": "ae2208284988911cb0ba7f559b5df293e81d2da85aa3b66d45b0e6fcd9c844ea", "events": [], "fighters": [ { @@ -134595,8 +136225,9 @@ "facing_y": -625, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -134651,10 +136282,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -999, - "facing_y": 47, + "facing_x": -709, + "facing_y": -709, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -134665,15 +136297,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -134696,7 +136328,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 57, + "phase_ticks_remaining": 137, "referee": { "alive": true, "facing_x": 811, @@ -134722,7 +136354,7 @@ "tick": 829 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 829 }, @@ -134731,7 +136363,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "efcaca2305ba3aa8f2c904624eb3d843c0ea86dc1b7dde4570287a17ea91ff33", + "checksum": "3398d13a034fd330b71a0b72094b4b7575f9ddbbe7f84253ab79871e05540a46", "events": [], "fighters": [ { @@ -134758,8 +136390,9 @@ "facing_y": -625, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -134814,10 +136447,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -994, - "facing_y": 111, + "facing_x": -709, + "facing_y": -709, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -134828,15 +136462,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -134859,7 +136493,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 56, + "phase_ticks_remaining": 136, "referee": { "alive": true, "facing_x": 811, @@ -134885,7 +136519,7 @@ "tick": 830 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 830 }, @@ -134894,7 +136528,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e8cf8648aada3423396152f9b63a5d8506f60e4719f1e581f71e5c89799c4a3e", + "checksum": "0ff5906a30f623690d6a13a77ca13087ce8ae6ef91f176df11218e21e9c12b13", "events": [], "fighters": [ { @@ -134921,8 +136555,9 @@ "facing_y": -625, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -134977,10 +136612,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -985, - "facing_y": 174, + "facing_x": -709, + "facing_y": -709, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -134991,15 +136627,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -135022,7 +136658,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 55, + "phase_ticks_remaining": 135, "referee": { "alive": true, "facing_x": 811, @@ -135048,7 +136684,7 @@ "tick": 831 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 831 }, @@ -135057,7 +136693,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "3cda205a2f0d68b09de3ee441930b51a604097550e957e7f396864523695410a", + "checksum": "67e23ec732883c16fc7ccae60cfefb0869f744e7e5afff2a5cec8468c087fe24", "events": [], "fighters": [ { @@ -135084,8 +136720,9 @@ "facing_y": -625, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -135140,10 +136777,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -972, - "facing_y": 237, + "facing_x": -709, + "facing_y": -709, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -135154,15 +136792,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -135185,7 +136823,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 54, + "phase_ticks_remaining": 134, "referee": { "alive": true, "facing_x": 811, @@ -135211,7 +136849,7 @@ "tick": 832 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 832 }, @@ -135220,7 +136858,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "feb7f222037f55c5899c347c622bada18b920ea028b6f4e753304ac970b5bf6c", + "checksum": "3094d7e60f1ea129001d415820a256938425c8365c622a902c3dece9dc6114e1", "events": [], "fighters": [ { @@ -135247,8 +136885,9 @@ "facing_y": -625, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -135303,10 +136942,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -954, - "facing_y": 299, + "facing_x": -709, + "facing_y": -709, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -135317,15 +136957,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -135348,7 +136988,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 53, + "phase_ticks_remaining": 133, "referee": { "alive": true, "facing_x": 811, @@ -135374,7 +137014,7 @@ "tick": 833 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 833 }, @@ -135383,7 +137023,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "fc8339cef1d82d50f239417b2661c4e0162ce41eeb738c8335860925ce2e4fe4", + "checksum": "024c504233ee0bedc8a3c931b4db8ef7b8e9fcde839831d95f8eea0e1c254f07", "events": [], "fighters": [ { @@ -135410,8 +137050,9 @@ "facing_y": -625, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -135466,10 +137107,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -933, - "facing_y": 359, + "facing_x": -709, + "facing_y": -709, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -135480,15 +137122,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -135511,7 +137153,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 52, + "phase_ticks_remaining": 132, "referee": { "alive": true, "facing_x": 811, @@ -135537,7 +137179,7 @@ "tick": 834 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 834 }, @@ -135546,7 +137188,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "7ca091f470a6673a47642a86c67760c1e6088f0ba15e8023a0e7c428ca942f33", + "checksum": "105c93b722ea790fe9cee546408f47dc44c890b5350b9f44d72f293d53364e5d", "events": [], "fighters": [ { @@ -135573,8 +137215,9 @@ "facing_y": -625, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -135629,10 +137272,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -908, - "facing_y": 418, + "facing_x": -709, + "facing_y": -709, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -135643,15 +137287,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -135674,7 +137318,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 51, + "phase_ticks_remaining": 131, "referee": { "alive": true, "facing_x": 811, @@ -135700,7 +137344,7 @@ "tick": 835 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 835 }, @@ -135709,7 +137353,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "7e33ac9b6987d51b123662307b7ba39a9279c366e15b98757072b0566106593f", + "checksum": "1b1fb9d9ec941d64ee9213753dea8cc3e18f9c8e9e6eca4bd8654b3312ed4e00", "events": [], "fighters": [ { @@ -135736,8 +137380,9 @@ "facing_y": -625, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -135792,10 +137437,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -880, - "facing_y": 475, + "facing_x": -709, + "facing_y": -709, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -135806,15 +137452,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -135837,7 +137483,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 50, + "phase_ticks_remaining": 130, "referee": { "alive": true, "facing_x": 811, @@ -135863,7 +137509,7 @@ "tick": 836 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 836 }, @@ -135872,7 +137518,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "1911301c78eb291f1363ea4bf8aa76aaf56305765e3e49f89448a686d597e7c2", + "checksum": "fdac0dd46bfb8679d1f57a5b876f0c4dbdedbdba76dcdba42513afe02e684741", "events": [], "fighters": [ { @@ -135899,8 +137545,9 @@ "facing_y": -625, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -135955,10 +137602,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -848, - "facing_y": 530, + "facing_x": -709, + "facing_y": -709, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -135969,15 +137617,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -136000,7 +137648,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 49, + "phase_ticks_remaining": 129, "referee": { "alive": true, "facing_x": 811, @@ -136026,7 +137674,7 @@ "tick": 837 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 837 }, @@ -136035,7 +137683,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e8bb68eff4c652b559c4b3a804ce0a751a5b847d71d59fb598e3626756bc9170", + "checksum": "99b097ebefb895b42fe2a30bedc6c63f31d514be22e35a94e67a1c28b91d03e4", "events": [], "fighters": [ { @@ -136062,8 +137710,9 @@ "facing_y": -625, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -136118,10 +137767,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -812, - "facing_y": 583, + "facing_x": -709, + "facing_y": -709, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -136132,15 +137782,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -136163,7 +137813,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 48, + "phase_ticks_remaining": 128, "referee": { "alive": true, "facing_x": 811, @@ -136189,7 +137839,7 @@ "tick": 838 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 838 }, @@ -136198,7 +137848,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "0f4fb006c9610bb2f0fb0d01195090f786d06e3ca33d0efcfe808048faad138a", + "checksum": "7e03da8fe5124bfded8023d1fae2e5b22c986a98103d0304059df882d4a509e7", "events": [], "fighters": [ { @@ -136225,8 +137875,9 @@ "facing_y": -625, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -136281,10 +137932,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -709, + "facing_y": -709, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -136295,15 +137947,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -136326,7 +137978,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 47, + "phase_ticks_remaining": 127, "referee": { "alive": true, "facing_x": 811, @@ -136352,7 +138004,7 @@ "tick": 839 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 839 }, @@ -136361,7 +138013,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "b3dcdf5a849dbb3fee33b0a73969676ee334472e3d47024cdbf3146677a5f079", + "checksum": "097b8e22fff8717cb533351d2d274a54f4472fefa28c616715f821ebf788a287", "events": [], "fighters": [ { @@ -136388,8 +138040,9 @@ "facing_y": -625, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -136444,10 +138097,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -709, + "facing_y": -709, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -136458,15 +138112,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -136489,7 +138143,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 46, + "phase_ticks_remaining": 126, "referee": { "alive": true, "facing_x": 811, @@ -136515,7 +138169,7 @@ "tick": 840 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 840 }, @@ -136524,7 +138178,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "f06261a28736b4cf99b382a3813a98df6e6aa9f67a1b001a6fff7e8027a668b8", + "checksum": "abf1f25f564a044f5eab2ae4cb58716e2cfcbf1d3364efe5eae27638e6981c67", "events": [], "fighters": [ { @@ -136551,8 +138205,9 @@ "facing_y": -625, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -136607,10 +138262,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -709, + "facing_y": -709, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -136621,15 +138277,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -136652,7 +138308,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 45, + "phase_ticks_remaining": 125, "referee": { "alive": true, "facing_x": 811, @@ -136678,7 +138334,7 @@ "tick": 841 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 841 }, @@ -136687,7 +138343,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "dc4119770326edacae539751471d55045f857c13baade3a88e3db1144baa6102", + "checksum": "97850018a26def07b910ff89107c03d67494ebdb1786bc7c3c86ed61c3006666", "events": [], "fighters": [ { @@ -136714,8 +138370,9 @@ "facing_y": -625, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -136770,10 +138427,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -709, + "facing_y": -709, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -136784,15 +138442,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -136815,7 +138473,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 44, + "phase_ticks_remaining": 124, "referee": { "alive": true, "facing_x": 811, @@ -136841,7 +138499,7 @@ "tick": 842 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 842 }, @@ -136850,7 +138508,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "4969bd434712a315c8faf64e8dd53079390c79971d0205d116751d149a788cd7", + "checksum": "bfc187922ce380ddb731180b3a673810a538e640c572a8376e2686b0e844adfc", "events": [], "fighters": [ { @@ -136877,8 +138535,9 @@ "facing_y": -625, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -136933,10 +138592,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -709, + "facing_y": -709, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -136947,15 +138607,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -136978,7 +138638,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 43, + "phase_ticks_remaining": 123, "referee": { "alive": true, "facing_x": 811, @@ -137004,7 +138664,7 @@ "tick": 843 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 843 }, @@ -137013,7 +138673,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "da7a28dc021ef9a1618f3ed3639951f70e51a9bd8ca0c8095cb6a25db8ef7186", + "checksum": "a494b3a7f098cbae294661aa221d2cc457b9319e9a986a22b587d18e16c96bf3", "events": [], "fighters": [ { @@ -137040,8 +138700,9 @@ "facing_y": -625, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -137096,10 +138757,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -709, + "facing_y": -709, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -137110,15 +138772,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -137141,7 +138803,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 42, + "phase_ticks_remaining": 122, "referee": { "alive": true, "facing_x": 811, @@ -137167,7 +138829,7 @@ "tick": 844 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 844 }, @@ -137176,7 +138838,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "87af7458b3259d597bf05edf77feb9ca5b999d4bd62cfd423ffa97a7c5908159", + "checksum": "e93c2a9eec46c0131d4bb971b03b054e6e07caf745cc47661942dfb1b7d02d4a", "events": [], "fighters": [ { @@ -137203,8 +138865,9 @@ "facing_y": -625, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -137259,10 +138922,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -709, + "facing_y": -709, "get_up_count": 3, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -137273,15 +138937,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -137304,7 +138968,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 41, + "phase_ticks_remaining": 121, "referee": { "alive": true, "facing_x": 811, @@ -137330,7 +138994,7 @@ "tick": 845 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 845 }, @@ -137339,7 +139003,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "5a83a99ac67edb4c5ebc21d2c05a63094fbd5c994d2f6df9adf53bf82d8f3fa3", + "checksum": "6e922e3ecfce92888f60ab4c37413d08305698511c96ffd0a9a9abce9dd17560", "events": [ { "action_id": null, @@ -137348,7 +139012,7 @@ "blood": 0, "detail": "", "direction": 0, - "event_id": 61, + "event_id": 57, "kind": "count", "target_id": "two", "tick": 846 @@ -137379,8 +139043,9 @@ "facing_y": -625, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -137435,10 +139100,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -709, + "facing_y": -709, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -137449,15 +139115,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -137480,7 +139146,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 40, + "phase_ticks_remaining": 120, "referee": { "alive": true, "facing_x": 811, @@ -137506,7 +139172,7 @@ "tick": 846 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 846 }, @@ -137515,7 +139181,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "1c490fe52fdb930383bbb29c4ab5ac342ce40f8a5bf5a46f163d75f649a096d9", + "checksum": "13c68d211bcfbed5df47019004b51b7f4e742f3cb721f34d6b7c56253e63ee70", "events": [], "fighters": [ { @@ -137542,8 +139208,9 @@ "facing_y": -625, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -137598,10 +139265,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -709, + "facing_y": -709, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -137612,15 +139280,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -137643,7 +139311,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 39, + "phase_ticks_remaining": 119, "referee": { "alive": true, "facing_x": 811, @@ -137669,7 +139337,7 @@ "tick": 847 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 847 }, @@ -137678,7 +139346,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "426fd1f49a0c03c6491ac2567b7321af2799b33434e9c8c15a0f205ebb284d45", + "checksum": "148a7e00068b197195eea0ba8e05de8c62344a491efb8ea567a7d2cf5dcc28c4", "events": [], "fighters": [ { @@ -137705,8 +139373,9 @@ "facing_y": -625, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -137761,10 +139430,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -709, + "facing_y": -709, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -137775,15 +139445,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -137806,7 +139476,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 38, + "phase_ticks_remaining": 118, "referee": { "alive": true, "facing_x": 811, @@ -137832,7 +139502,7 @@ "tick": 848 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 848 }, @@ -137841,7 +139511,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "3ac74efa0e1936406ae4adadd6fb7d6aaf0825bfac1e015f591dac2901498127", + "checksum": "64382620ba483cf32a6042cefd55685f9511475cf3da8dbdc0560dc87b7b759b", "events": [], "fighters": [ { @@ -137868,8 +139538,9 @@ "facing_y": -625, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -137924,10 +139595,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -709, + "facing_y": -709, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -137938,15 +139610,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -137969,7 +139641,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 37, + "phase_ticks_remaining": 117, "referee": { "alive": true, "facing_x": 811, @@ -137995,7 +139667,7 @@ "tick": 849 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 849 }, @@ -138004,7 +139676,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "49d374b66bc7b1104638e0f0a3f78f2c61bc03b9ea28748be3432c0789144431", + "checksum": "75710843b4615a893c7052e8cdca60cccbf886e2e63da0526d0d09e4c95d2451", "events": [], "fighters": [ { @@ -138031,8 +139703,9 @@ "facing_y": -625, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -138087,10 +139760,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -709, + "facing_y": -709, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -138101,15 +139775,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -138132,7 +139806,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 36, + "phase_ticks_remaining": 116, "referee": { "alive": true, "facing_x": 811, @@ -138158,7 +139832,7 @@ "tick": 850 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 850 }, @@ -138167,7 +139841,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "ace65a84a7b13b1ead18bba6785618db2dce87e4eba147c004495c2b80d0cfa7", + "checksum": "d01f4b8bfc825c75447f3f603ceadf67712fcfd51a1a19629041db237a5b0054", "events": [], "fighters": [ { @@ -138194,8 +139868,9 @@ "facing_y": -625, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -138250,10 +139925,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -709, + "facing_y": -709, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -138264,15 +139940,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -138295,7 +139971,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 35, + "phase_ticks_remaining": 115, "referee": { "alive": true, "facing_x": 811, @@ -138321,7 +139997,7 @@ "tick": 851 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 851 }, @@ -138330,7 +140006,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "83a1f9b391ed7014c95ae86e90cc4e36d05c44d7ac6075f42094b1b8585d3a9d", + "checksum": "2557e414da955de3d8f0b9bb8dfe745c56a01fa593741eb05b8d6a10e43415f6", "events": [], "fighters": [ { @@ -138357,8 +140033,9 @@ "facing_y": -625, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -138413,10 +140090,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -709, + "facing_y": -709, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -138427,15 +140105,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -138458,7 +140136,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 34, + "phase_ticks_remaining": 114, "referee": { "alive": true, "facing_x": 811, @@ -138484,7 +140162,7 @@ "tick": 852 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 852 }, @@ -138493,7 +140171,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "345e881eec16833ea59a72a890f6e362506d0fd594b2eba29f89f09cf3d11c38", + "checksum": "d58dcdcfed4d14e8b0fc65c47d5e88434437301eb0ddfe8649917dcd7309f0a3", "events": [], "fighters": [ { @@ -138520,8 +140198,9 @@ "facing_y": -625, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -138576,10 +140255,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -709, + "facing_y": -709, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -138590,15 +140270,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -138621,7 +140301,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 33, + "phase_ticks_remaining": 113, "referee": { "alive": true, "facing_x": 811, @@ -138647,7 +140327,7 @@ "tick": 853 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 853 }, @@ -138656,7 +140336,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "cbc1591ecdd9e2906d4c3ba0d27e1807f8b8f4c4f48c2bcd2b2c2d1c59676557", + "checksum": "5da762522a4cd73ba2f94b99a90cc3f06a2549a28bb88165f0e909bbb18fa21b", "events": [], "fighters": [ { @@ -138683,8 +140363,9 @@ "facing_y": -625, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -138739,10 +140420,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -709, + "facing_y": -709, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -138753,15 +140435,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -138784,7 +140466,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 32, + "phase_ticks_remaining": 112, "referee": { "alive": true, "facing_x": 811, @@ -138810,7 +140492,7 @@ "tick": 854 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 854 }, @@ -138819,7 +140501,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "5c9a56af146ae110d6cb420988045d49cbfc4589ae520f4fba15947ddad67298", + "checksum": "7690b8ed5e467e317b7530bc0b577239df0c1089774cb9aec413e0c73875b84f", "events": [], "fighters": [ { @@ -138846,8 +140528,9 @@ "facing_y": -625, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -138902,10 +140585,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -709, + "facing_y": -709, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -138916,15 +140600,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -138947,7 +140631,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 31, + "phase_ticks_remaining": 111, "referee": { "alive": true, "facing_x": 811, @@ -138973,7 +140657,7 @@ "tick": 855 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 855 }, @@ -138982,7 +140666,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "f0ce23a45dab77e57c0e89456be4730bdf7da4749e1162b871c494de35bb619a", + "checksum": "72431c8602ae4cd0c4b4e8147c8daf7e4b960cd3870854b7c4dc581d7e1cb677", "events": [], "fighters": [ { @@ -139009,8 +140693,9 @@ "facing_y": -625, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -139065,10 +140750,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -709, + "facing_y": -709, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -139079,15 +140765,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -139110,7 +140796,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 30, + "phase_ticks_remaining": 110, "referee": { "alive": true, "facing_x": 811, @@ -139136,7 +140822,7 @@ "tick": 856 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 856 }, @@ -139145,7 +140831,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "7df49b2352c2ad175a2a8209664951036a7bd2cf6814683664ef806ef1b03054", + "checksum": "97b3ad9eec5ed2860ef88532e4eb86b512572f2102b19df1453e6e32a3a00a59", "events": [], "fighters": [ { @@ -139172,8 +140858,9 @@ "facing_y": -625, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -139228,10 +140915,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -709, + "facing_y": -709, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -139242,15 +140930,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -139273,7 +140961,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 29, + "phase_ticks_remaining": 109, "referee": { "alive": true, "facing_x": 811, @@ -139299,7 +140987,7 @@ "tick": 857 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 857 }, @@ -139308,7 +140996,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "67d42f130a30c535be8611e8d65a7ca91b5330d89d5fd09487125e92e5ab5157", + "checksum": "38d3cb545ad1c698d8691fe545fb41e743482c2f9d9ed1ff50c4ed3e28864a83", "events": [], "fighters": [ { @@ -139335,8 +141023,9 @@ "facing_y": -625, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -139391,10 +141080,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -709, + "facing_y": -709, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -139405,15 +141095,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -139436,7 +141126,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 28, + "phase_ticks_remaining": 108, "referee": { "alive": true, "facing_x": 811, @@ -139462,7 +141152,7 @@ "tick": 858 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 858 }, @@ -139471,7 +141161,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "2b625b7726bd7a0aa09c1672fdfb8b9b1a4fc21dac46985931772b45b61fe41c", + "checksum": "a2ff5cc0a928ad7f851873155eb1e4a423df9e1664e2168d4bfdf10d6dc6856c", "events": [], "fighters": [ { @@ -139498,8 +141188,9 @@ "facing_y": -625, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -139554,10 +141245,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -709, + "facing_y": -709, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -139568,15 +141260,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -139599,7 +141291,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 27, + "phase_ticks_remaining": 107, "referee": { "alive": true, "facing_x": 811, @@ -139625,7 +141317,7 @@ "tick": 859 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 859 }, @@ -139634,7 +141326,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "32dfe830382d3558d6d8f06af40b6184a09ac548d0fa8df0b0c7a35c469659ad", + "checksum": "170123c259613c74c8f9dc947ebc18de24779386a0788581665d511e04c37ab7", "events": [], "fighters": [ { @@ -139661,8 +141353,9 @@ "facing_y": -625, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -139717,10 +141410,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -709, + "facing_y": -709, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -139731,15 +141425,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -139762,7 +141456,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 26, + "phase_ticks_remaining": 106, "referee": { "alive": true, "facing_x": 811, @@ -139788,7 +141482,7 @@ "tick": 860 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 860 }, @@ -139797,7 +141491,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "3ef86f0b24c67bcc4928daa4022d96352477c4751451898747166fdf965a2efa", + "checksum": "8ed099479f772b0bf8fdd7b58144da51c7bcf5f27836d7f511a19cebac7231a7", "events": [], "fighters": [ { @@ -139824,8 +141518,9 @@ "facing_y": -625, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -139880,10 +141575,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -709, + "facing_y": -709, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -139894,15 +141590,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -139925,7 +141621,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 25, + "phase_ticks_remaining": 105, "referee": { "alive": true, "facing_x": 811, @@ -139951,7 +141647,7 @@ "tick": 861 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 861 }, @@ -139960,7 +141656,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "da08cbb8f796cdeef19ea833887cc4c597ca348afe03d2cb1965edf0cabf5b12", + "checksum": "3afe59b2a2f0450d30b5b63d6b1ef2429479d13493158fd159caf66fe4705081", "events": [], "fighters": [ { @@ -139987,8 +141683,9 @@ "facing_y": -625, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -140043,10 +141740,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -709, + "facing_y": -709, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -140057,15 +141755,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -140088,7 +141786,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 24, + "phase_ticks_remaining": 104, "referee": { "alive": true, "facing_x": 811, @@ -140114,7 +141812,7 @@ "tick": 862 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 862 }, @@ -140123,7 +141821,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "39b9ed82e0ed7195fa748b4da4aee2379dcf64057b63f5488ec19cfc8e11e2cf", + "checksum": "f920489928d8023ce4019600ab93bb860d738150435ac808b358d93d6e0a3c82", "events": [], "fighters": [ { @@ -140150,8 +141848,9 @@ "facing_y": -625, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -140206,10 +141905,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -709, + "facing_y": -709, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -140220,15 +141920,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -140251,7 +141951,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 23, + "phase_ticks_remaining": 103, "referee": { "alive": true, "facing_x": 811, @@ -140277,7 +141977,7 @@ "tick": 863 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 863 }, @@ -140286,7 +141986,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "c9c3ced6f939413f0d1c946433021303ea5e17ac049e2c9d5e817de0d897c2c7", + "checksum": "2a002a6d8e2521583141494d300c427c7f2574777fa99afc6920d00c18651a2e", "events": [], "fighters": [ { @@ -140313,8 +142013,9 @@ "facing_y": -625, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -140369,10 +142070,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -709, + "facing_y": -709, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -140383,15 +142085,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -140414,7 +142116,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 22, + "phase_ticks_remaining": 102, "referee": { "alive": true, "facing_x": 811, @@ -140440,7 +142142,7 @@ "tick": 864 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 864 }, @@ -140449,7 +142151,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "99e5e99bb63b23e174993704ea7416b0cf934d357f8579fa79b2fce93d6a666e", + "checksum": "8d9d642b5cc4d861862e5467b9b6a80f9e2f556dfaf87dd74db502536557daab", "events": [], "fighters": [ { @@ -140476,8 +142178,9 @@ "facing_y": -625, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -140532,10 +142235,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -709, + "facing_y": -709, "get_up_count": 4, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -140546,15 +142250,15 @@ "disemboweled", "knee_right_blown" ], - "is_downed": false, + "is_downed": true, "is_foul_recovery_target": false, "knockdowns": 2, "last_input_sequence": -1, "maximum_stamina": 611, "player_id": "two", - "poise": 300, + "poise": 0, "queued_actions": 0, - "stamina": 600, + "stamina": 257, "stance": "orthodox", "stunned_ticks": 1, "style": "slugger", @@ -140577,7 +142281,7 @@ } ], "phase": "knockdown", - "phase_ticks_remaining": 21, + "phase_ticks_remaining": 101, "referee": { "alive": true, "facing_x": 811, @@ -140603,7 +142307,7 @@ "tick": 865 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 865 }, @@ -140612,18 +142316,18 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "a82867f269443e17f0a6261b78c3760025a6556091e2e8e22bf27fa4c511d4c3", + "checksum": "f0c2e808271e3be6142445b912138b6dc847f23b5d1f93b532a33cd45433bacb", "events": [ { "action_id": null, - "actor_id": null, + "actor_id": "two", "amount": 5, "blood": 0, "detail": "", "direction": 0, - "event_id": 62, - "kind": "count", - "target_id": "two", + "event_id": 59, + "kind": "get_up", + "target_id": null, "tick": 866 } ], @@ -140652,8 +142356,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -140708,10 +142413,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -709, + "facing_y": -709, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -140779,7 +142485,7 @@ "tick": 866 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 866 }, @@ -140788,7 +142494,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "512a2dd2ce87ecbe627aefbac589608b9c844def5cee719527e69dceef3ff05d", + "checksum": "50a928c443389b9cca9d33b7759027d1af1bfe300f35a85d1cab3255fabeae97", "events": [], "fighters": [ { @@ -140815,8 +142521,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -140871,10 +142578,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -751, + "facing_y": -660, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -140942,7 +142650,7 @@ "tick": 867 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 867 }, @@ -140951,7 +142659,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "d43f722421cd0c41fe2f8a98462bd7b4bedfb6b5b4068f2c3b3e4ca06cf11a10", + "checksum": "cb72faa580dff82de8e12007d8a1e3e7192a5b0706e1569f7424641561d7adf9", "events": [], "fighters": [ { @@ -140978,8 +142686,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -141034,10 +142743,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -792, + "facing_y": -611, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -141105,7 +142815,7 @@ "tick": 868 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 868 }, @@ -141114,7 +142824,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "30be798af30e04ef24ad56b705385ed6711829f3e460303ab075a7a6e535d0fe", + "checksum": "bc52d4edfbb00ccee9d7c5751777271d7dba2b06c1a84fc90f2e8dc1415e95ab", "events": [], "fighters": [ { @@ -141141,8 +142851,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -141197,10 +142908,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -829, + "facing_y": -559, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -141268,7 +142980,7 @@ "tick": 869 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 869 }, @@ -141277,7 +142989,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "62b82a38fe55a4005a827fb3521821ba51d1e397b21ca4d7bab9ff887d689179", + "checksum": "1c87593d3d23a6e85e158f4de36fd4ae0256b2c888f603dd253833433854fa66", "events": [], "fighters": [ { @@ -141304,8 +143016,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -141360,10 +143073,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -863, + "facing_y": -505, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -141431,7 +143145,7 @@ "tick": 870 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 870 }, @@ -141440,7 +143154,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "8a5f1c77824efb2d5d92bc6d70044d6196ccf341fee6de64c90b6563b10c5fa4", + "checksum": "f77a248d8613897704869727902b8907315d2e338449cb75a462b9a531a316e7", "events": [], "fighters": [ { @@ -141467,8 +143181,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -141523,10 +143238,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -894, + "facing_y": -449, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -141594,7 +143310,7 @@ "tick": 871 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 871 }, @@ -141603,7 +143319,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "7d452345bfbae0fb3cb0a19e63d7c4279425402b6678504a35ecb8b36f6c26a2", + "checksum": "eea1dde7f5ea50ed4969e6991e3764f70938e5f4cafed6de158e831b1eed201a", "events": [], "fighters": [ { @@ -141630,8 +143346,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -141686,10 +143403,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -920, + "facing_y": -391, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -141757,7 +143475,7 @@ "tick": 872 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 872 }, @@ -141766,7 +143484,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "cb9e356e6b3d3e57ec3485df1a59ff60e776d62705945634ed755676341f0cea", + "checksum": "f04c9ff7b8c3b2e5fe170c84a50a8d3f184cdd28a3db6026b6414906fda01a58", "events": [], "fighters": [ { @@ -141793,8 +143511,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -141849,10 +143568,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -943, + "facing_y": -331, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -141920,7 +143640,7 @@ "tick": 873 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 873 }, @@ -141929,7 +143649,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e66bb4bb08075ded9ce95dc2892b99c457e2337972f06399473a1f10f514263d", + "checksum": "b42eac371c7ea29734deb6b7e2203de479b74fb9b2a07c874ad2b2745f619199", "events": [], "fighters": [ { @@ -141956,8 +143676,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -142012,10 +143733,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -963, + "facing_y": -270, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -142083,7 +143805,7 @@ "tick": 874 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 874 }, @@ -142092,7 +143814,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "d0470d615b1e7710736789796cc9398c73c1b898b54d1eb614820ad518a3c368", + "checksum": "feee8df53014830f0c80b4ca602bbc2175cc1d2f31166a1cf4bace375e8fd117", "events": [], "fighters": [ { @@ -142119,8 +143841,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -142175,10 +143898,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -978, + "facing_y": -208, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -142246,7 +143970,7 @@ "tick": 875 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 875 }, @@ -142255,7 +143979,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "c37fef5a0434518bf527a6840d529ff3b884e2a71a640ef369ab561bc05e6ffc", + "checksum": "34e97080f985b6c50355b4a64c605cb4dcdbd1b1fb6f57639ff232d4245f6756", "events": [], "fighters": [ { @@ -142282,8 +144006,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -142338,10 +144063,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -989, + "facing_y": -145, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -142409,7 +144135,7 @@ "tick": 876 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 876 }, @@ -142418,7 +144144,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "2bf656fb2b944e1e1cd9b40b21e46374541fdd122841476c0ca17a5f846551ed", + "checksum": "438f286c8219c739bd3102700c5a60157219af7c3af62f96401fabb1095bbf8e", "events": [], "fighters": [ { @@ -142445,8 +144171,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -142501,10 +144228,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -997, + "facing_y": -81, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -142572,7 +144300,7 @@ "tick": 877 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 877 }, @@ -142581,7 +144309,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "a9db86dcc34b06a13480c6dbea4c5b57ee7c6b4b2eb08fa42c9d042445e4de52", + "checksum": "22e24a4028455c9147c774c4e71890b62804b6b9bab4c45b3c664315d5d15688", "events": [], "fighters": [ { @@ -142608,8 +144336,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -142664,10 +144393,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -1000, + "facing_y": -17, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -142735,7 +144465,7 @@ "tick": 878 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 878 }, @@ -142744,7 +144474,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e4ca5585d2e04160bf9794063a0e7292e53528b422ac22c18ca07dff201626d7", + "checksum": "c828a13bee1f94d90e2fced9cd5b0d08708e75214ae78b8b46700b9014e921c4", "events": [], "fighters": [ { @@ -142771,8 +144501,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -142827,10 +144558,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -999, + "facing_y": 47, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -142898,7 +144630,7 @@ "tick": 879 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 879 }, @@ -142907,7 +144639,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "5efc25328fbbc64d899242c00a97a74fafebc475d8d65ac9f0329cfa98a0d1a2", + "checksum": "639417acda1a5f2e7abf1b7d1c03b32bd08f50c4ff755031775e9968ce0a61d2", "events": [], "fighters": [ { @@ -142934,8 +144666,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -142990,10 +144723,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -994, + "facing_y": 111, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -143061,7 +144795,7 @@ "tick": 880 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 880 }, @@ -143070,7 +144804,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "bec22681addc3c40196af3fd8ae562e4874ab229db9867f3600f66a42d2fe4d0", + "checksum": "3d31a91812e895eea68a6d602c2c99c7dbbbe4e95b01171ff8d7364f8ea5a768", "events": [], "fighters": [ { @@ -143097,8 +144831,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -143153,10 +144888,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -985, + "facing_y": 174, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -143224,7 +144960,7 @@ "tick": 881 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 881 }, @@ -143233,7 +144969,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "935d5b3f85ada453da109da07a41f08a8e129f593acc488273aad932cce2a8da", + "checksum": "457879ce6be4f57683503bee78416ce9675de52a163a6e1d0f3f099418f59cf8", "events": [], "fighters": [ { @@ -143260,8 +144996,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -143316,10 +145053,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -972, + "facing_y": 237, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -143387,7 +145125,7 @@ "tick": 882 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 882 }, @@ -143396,7 +145134,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "98b93bfe34caa387ff1f3ed9eefb97130d5037c5e8c93fad5a9aa9e6b09c2a56", + "checksum": "a74e7f2d2071cb4d338ff4bcf09be65fb8c3481f9d6d76223c2ea7f075e05036", "events": [], "fighters": [ { @@ -143423,8 +145161,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -143479,10 +145218,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -954, + "facing_y": 299, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -143550,7 +145290,7 @@ "tick": 883 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 883 }, @@ -143559,7 +145299,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "85fc9c087113f100c039335a819f286aa2bd9f4ab528390000b1ec8cdbc712c0", + "checksum": "8e5d72e507d96fadd1d978f15ea632a74ad0d578ce17b3bb2c478013e56e8ca5", "events": [], "fighters": [ { @@ -143586,8 +145326,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -143642,10 +145383,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -933, + "facing_y": 359, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -143713,7 +145455,7 @@ "tick": 884 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 884 }, @@ -143722,7 +145464,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "d6204834b3b82433c4b96dfbbd7db0827dc3233f5e2b74c2b760b6751602f0a1", + "checksum": "1133508dc2601c981002042ef9fe6f2482a50a9af1514837f6df7fd7292d6e17", "events": [], "fighters": [ { @@ -143749,8 +145491,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -143805,10 +145548,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -908, + "facing_y": 418, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -143876,7 +145620,7 @@ "tick": 885 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 885 }, @@ -143885,7 +145629,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "39bc96486cf846405efa20c970999640208bdd685f23eae5e18e61db9eb87c80", + "checksum": "6f3fe0416ccf9a098a6e80f23b15d2c3feb83f6796b523a867fb3320d8723e7e", "events": [ { "action_id": null, @@ -143894,7 +145638,7 @@ "blood": 0, "detail": "", "direction": 0, - "event_id": 63, + "event_id": 60, "kind": "box", "target_id": "two", "tick": 886 @@ -143925,8 +145669,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -143981,10 +145726,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -880, + "facing_y": 475, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -144052,7 +145798,7 @@ "tick": 886 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 886 }, @@ -144061,7 +145807,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "ba21ad4ed92c3c82b1c151c88d9be7dddd9375c5ebaa00d012d223bf73879679", + "checksum": "5ebad5355f979efeb75a96679f22414dea350565affa2377f53307b71db32b7b", "events": [], "fighters": [ { @@ -144088,8 +145834,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -144144,10 +145891,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -848, + "facing_y": 530, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -144215,7 +145963,7 @@ "tick": 887 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 887 }, @@ -144224,7 +145972,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "2b635b4db69ced4abdea62eea3d5b960b836367e6234fbe2f821d6948f064b82", + "checksum": "cbda6c0ff226f9aedbd39ba58e3fc9f02f0ea18f93e29f9799a6ef261caa99a5", "events": [], "fighters": [ { @@ -144251,8 +145999,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -144307,10 +146056,11 @@ "deductions": 0, "defense": "none", "facing": -1, - "facing_x": -781, - "facing_y": 625, + "facing_x": -812, + "facing_y": 583, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -144378,7 +146128,7 @@ "tick": 888 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 888 }, @@ -144387,7 +146137,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "fdc3729280fb8aa081f124bcda3bdc6a78be86ae89e4e53aba669b1fdd4f29d8", + "checksum": "54167c87edb1ea1b045d00f1147404938baceb6a936e8264dae53d48826870d7", "events": [], "fighters": [ { @@ -144414,8 +146164,9 @@ "facing_y": -626, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -144474,6 +146225,7 @@ "facing_y": 625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -144541,7 +146293,7 @@ "tick": 889 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 889 }, @@ -144550,7 +146302,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e8534d24c9477287181ba7902fd3eb61e1cc051f886581d3ae853dc52bb5dfca", + "checksum": "c18b810a3555ec3ed6377b000b91d670daad24d8fd8ba2e36d9a4470c2bc4cf1", "events": [], "fighters": [ { @@ -144577,8 +146329,9 @@ "facing_y": -626, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -144637,6 +146390,7 @@ "facing_y": 626, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -144704,7 +146458,7 @@ "tick": 890 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 890 }, @@ -144713,7 +146467,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "9cabe04c696fb7cf834ca16051012e9daa657eb34aa310cf460a4b9bc6f290ff", + "checksum": "578f399371ff8488d393a5fb0f40f0cacb213999f2e79c25e9e10eec18b76d8e", "events": [], "fighters": [ { @@ -144740,8 +146494,9 @@ "facing_y": -627, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -144800,6 +146555,7 @@ "facing_y": 626, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -144867,7 +146623,7 @@ "tick": 891 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 891 }, @@ -144876,7 +146632,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "08c739bc997a9e4372fd7d780ceeeb81a689ada9d1e88d4d50b35181b099c9a5", + "checksum": "51fd713245e82fb29be9f6a7762b2c13e6e2c09db5fec1d25a7c41f0745ff668", "events": [], "fighters": [ { @@ -144903,8 +146659,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -144963,6 +146720,7 @@ "facing_y": 627, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -145030,7 +146788,7 @@ "tick": 892 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 892 }, @@ -145039,7 +146797,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "68c8deee2d6a9842d7b6809b3e396839a2419d252431e917bed5ddb538678d1d", + "checksum": "af35e2a9b5d49cd728099c5ba2b367043000ed77cd66b492e5f56a85048340c1", "events": [], "fighters": [ { @@ -145066,8 +146824,9 @@ "facing_y": -626, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -145126,6 +146885,7 @@ "facing_y": 625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -145193,7 +146953,7 @@ "tick": 893 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 893 }, @@ -145202,7 +146962,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "b98fdc7d50bf8bdbdf38416994c8b92d4872d76582fb0ca4ab1a2cf68179b1f5", + "checksum": "1d862e451f0367d891e8e67741ddc152f3285d540fe77fe3c26eab5fcd9d94d1", "events": [], "fighters": [ { @@ -145229,8 +146989,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -145289,6 +147050,7 @@ "facing_y": 626, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -145356,7 +147118,7 @@ "tick": 894 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 894 }, @@ -145365,7 +147127,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "490e8a7b61fe73d85f2bdde0a9fbaa4d4ec3a6cd96fa6cc5f93ce95327861925", + "checksum": "06af58974da56d014ff31edf20acf8ad0f31ca4be214d96a2f80caaca10ee46d", "events": [], "fighters": [ { @@ -145392,8 +147154,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -145452,6 +147215,7 @@ "facing_y": 625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -145519,7 +147283,7 @@ "tick": 895 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 895 }, @@ -145528,7 +147292,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "10ab9d3409d0728901e96093914561af1b045b2c9866a9c2c9d0d9f9a2bd6076", + "checksum": "2c297038e584f9a996255e85c81ef56494dc5671bf84b87b19a2613a373c1bb3", "events": [], "fighters": [ { @@ -145555,8 +147319,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -145615,6 +147380,7 @@ "facing_y": 625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -145682,7 +147448,7 @@ "tick": 896 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 896 }, @@ -145691,7 +147457,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e1b3792c3c49ee10889be450db6332f1150d9bdf004a43255f66898e0e7c47e1", + "checksum": "35b4bfcae14adea51f371a295f36277ad169ea21223e21a4f510a8aa79a12745", "events": [], "fighters": [ { @@ -145718,8 +147484,9 @@ "facing_y": -626, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -145778,6 +147545,7 @@ "facing_y": 625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -145845,7 +147613,7 @@ "tick": 897 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 897 }, @@ -145854,7 +147622,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e5be823695d120ec45f559310e0c443ed94f757b96e7923978d724702222b0d9", + "checksum": "c4aba4f4754e9b0dfb1dcc94ff5d4f5e32319129cdac5481435b90ded3d787fb", "events": [], "fighters": [ { @@ -145881,8 +147649,9 @@ "facing_y": -626, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -145941,6 +147710,7 @@ "facing_y": 626, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -146008,7 +147778,7 @@ "tick": 898 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 898 }, @@ -146017,7 +147787,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "a308ee93f48c0e457e8c8b421639270b8342ac904f2c79bcad54aefe9d6c5969", + "checksum": "a3e8c69b66aa02b6055f9c2002fa71e515356d4c3ec98940335a4e4facfb51b4", "events": [], "fighters": [ { @@ -146044,8 +147814,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -146104,6 +147875,7 @@ "facing_y": 626, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -146171,7 +147943,7 @@ "tick": 899 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 899 }, @@ -146180,7 +147952,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "47a03468a58d6767a2928cdd6f03c85c2ab34bf1c8967e7a25db0fa506e551ff", + "checksum": "1524a7bbe5a6f91ae479060cfafe3756f2be21e4c42422c575ea6971486e1f0c", "events": [], "fighters": [ { @@ -146207,8 +147979,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -146267,6 +148040,7 @@ "facing_y": 625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -146334,7 +148108,7 @@ "tick": 900 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 900 }, @@ -146343,7 +148117,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "dcd96076b5127947b02a8d201160ef1c025b3f363aae5158428b12e736a4d0b2", + "checksum": "07c8fcca0dbb6feefe4a953ea7085fe22be3b028896ab72953e52ce17499e596", "events": [], "fighters": [ { @@ -146370,8 +148144,9 @@ "facing_y": -626, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -146430,6 +148205,7 @@ "facing_y": 625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -146497,7 +148273,7 @@ "tick": 901 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 901 }, @@ -146506,7 +148282,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "87334e3eb36d9aa87ed4121effc560936e075ea8e9cfe08b62d7efceb75259d7", + "checksum": "215256c1fd42cd52e7edfeb6fb55ed3774a15ac49b4a50b0cce7f47698a64060", "events": [], "fighters": [ { @@ -146533,8 +148309,9 @@ "facing_y": -627, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -146593,6 +148370,7 @@ "facing_y": 626, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -146660,7 +148438,7 @@ "tick": 902 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 902 }, @@ -146669,7 +148447,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "07c4d3b5761c2046bd73888e8bc424656fbeeec9c7e05a932fdb7f7d2fe4c503", + "checksum": "6a30a07cbfa8897a593a78374663d6698e2a3ce6ef4fe4c6995fdf5a87486bc8", "events": [], "fighters": [ { @@ -146696,8 +148474,9 @@ "facing_y": -627, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -146756,6 +148535,7 @@ "facing_y": 627, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -146823,7 +148603,7 @@ "tick": 903 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 903 }, @@ -146832,7 +148612,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "8445cf9a5c2fe94a5b8a9c6fb664fa46bddad5e3e47a7d4b78b10c68ac69ca3b", + "checksum": "b0047914716dcdc331085d2a449a93fafc6f251bc571875cbf92f9a4e30595ae", "events": [], "fighters": [ { @@ -146859,8 +148639,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -146919,6 +148700,7 @@ "facing_y": 627, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -146986,7 +148768,7 @@ "tick": 904 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 904 }, @@ -146995,7 +148777,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "08ef8f28edb879469fbd66278a21238774b25522d98a46a93d896f7f8bd8dee0", + "checksum": "c80c53b902e8683a81a702cdadf2c97dd72b9cc57531b34e23751d0650167c42", "events": [], "fighters": [ { @@ -147022,8 +148804,9 @@ "facing_y": -626, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -147082,6 +148865,7 @@ "facing_y": 625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -147149,7 +148933,7 @@ "tick": 905 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 905 }, @@ -147158,7 +148942,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "2d84986c72b61a75286249a3dc639d88eee13d7d81e8aaad89abfada17e0e30d", + "checksum": "2ae585e226fd6812b8e6154e5166255e4bf6fe80f0e997679b789af5f6d5664a", "events": [], "fighters": [ { @@ -147185,8 +148969,9 @@ "facing_y": -627, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -147245,6 +149030,7 @@ "facing_y": 626, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -147312,7 +149098,7 @@ "tick": 906 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 906 }, @@ -147321,7 +149107,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "b2ffea4900331af13c252839d1f39a5b5d00c3c1d299e75abd0c9fd290fbbed5", + "checksum": "6b32ed12bc4f169ea5e7f03fd363b509792f6e8f481f0d31fa8f15715c0b6842", "events": [], "fighters": [ { @@ -147348,8 +149134,9 @@ "facing_y": -628, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -147408,6 +149195,7 @@ "facing_y": 627, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -147475,7 +149263,7 @@ "tick": 907 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 907 }, @@ -147484,7 +149272,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "0771cb5b1f77c534d0e8b37d5d85ca0f68073a1655f8d79329e1dfc3d305ac8b", + "checksum": "40c6946700b3c287cef21a3e9816dc40cacf26e3724bd9b6ff7259121ca06a39", "events": [], "fighters": [ { @@ -147511,8 +149299,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -147571,6 +149360,7 @@ "facing_y": 628, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -147638,7 +149428,7 @@ "tick": 908 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 908 }, @@ -147647,7 +149437,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "c5593fba6b09d517ccffa120a791d8eba170d38d6706f611742e73424d6d8113", + "checksum": "ae10ef408d0cbcf37f4af11c314a22dc0d65e8e5a624216888e7edbec777fbd5", "events": [], "fighters": [ { @@ -147674,8 +149464,9 @@ "facing_y": -626, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -147734,6 +149525,7 @@ "facing_y": 625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -147801,7 +149593,7 @@ "tick": 909 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 909 }, @@ -147810,7 +149602,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "c1d3623e8e6f4f91fd9c3f6d516cc934f3979f69720a80e3502dcc4fbd60df45", + "checksum": "47e53e5f128e4571ee1be0c830028a7b2124530b703a6952c3205323a618f7a7", "events": [], "fighters": [ { @@ -147837,8 +149629,9 @@ "facing_y": -627, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -147897,6 +149690,7 @@ "facing_y": 626, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -147964,7 +149758,7 @@ "tick": 910 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 910 }, @@ -147973,7 +149767,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e4057e702abdf7be8f74256099c339f2c2c2d93226cbbb964a4a7f8499436bac", + "checksum": "5da4252eb39791fc762dd155b81afc21f3b0e20586d4a7ccc727e19eeacf27b5", "events": [], "fighters": [ { @@ -148000,8 +149794,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -148060,6 +149855,7 @@ "facing_y": 627, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -148127,7 +149923,7 @@ "tick": 911 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 911 }, @@ -148136,7 +149932,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "4113d01c57dd2a3394b20c4cd24236275249e6ef8f2e40478a553b866619be79", + "checksum": "c287cd34114943ada2b4bc44476240d7885a8c984e4fecb77dc7c62d6eec5537", "events": [], "fighters": [ { @@ -148163,8 +149959,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -148223,6 +150020,7 @@ "facing_y": 625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -148290,7 +150088,7 @@ "tick": 912 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 912 }, @@ -148299,7 +150097,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e9aefbb2080cf925410416578b6210bb7c07694fb0f3b178ec44d2ad476713b9", + "checksum": "c924268519375fef073e3bfeb17be0cd8948d114be3a716f38495926837bc1c8", "events": [], "fighters": [ { @@ -148326,8 +150124,9 @@ "facing_y": -626, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -148386,6 +150185,7 @@ "facing_y": 625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -148453,7 +150253,7 @@ "tick": 913 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 913 }, @@ -148462,7 +150262,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "2cc46920bca57ae20b9cc9980f03770256a67b936aea54bd50f488e2ff715c54", + "checksum": "51a80c6111080b26894ceca52e5e33ec40e81def43a00ff2bd67654dd110c2c0", "events": [], "fighters": [ { @@ -148489,8 +150289,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -148549,6 +150350,7 @@ "facing_y": 626, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -148616,7 +150418,7 @@ "tick": 914 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 914 }, @@ -148625,7 +150427,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "0c75d9e1c90f684fa396f484ebbb934e94c14989b063012bec9fac616d7400bc", + "checksum": "46a692e93d9100ecb7bc97817e9e100a6a435379b3a19fec6cb196354772e3aa", "events": [], "fighters": [ { @@ -148652,8 +150454,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -148712,6 +150515,7 @@ "facing_y": 625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -148779,7 +150583,7 @@ "tick": 915 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 915 }, @@ -148788,7 +150592,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "d6d525dd448ff7556a6a648e0cbec0292c524568f8cfdf053239dc22508083a2", + "checksum": "59e7f66809897af73712e4a709507378628663cb9999b46b5d6571bb7a1b2348", "events": [], "fighters": [ { @@ -148815,8 +150619,9 @@ "facing_y": -626, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -148875,6 +150680,7 @@ "facing_y": 625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -148942,7 +150748,7 @@ "tick": 916 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 916 }, @@ -148951,7 +150757,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "58a95793113617d365971a9720fef46b33fabc5ca4bea5c6445fd4122fff0e0a", + "checksum": "5f3eeb1456b03aeb6fc4f593accc98825084698e8578b8bde12acf93562d2ec1", "events": [], "fighters": [ { @@ -148978,8 +150784,9 @@ "facing_y": -627, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -149038,6 +150845,7 @@ "facing_y": 626, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -149105,7 +150913,7 @@ "tick": 917 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 917 }, @@ -149114,7 +150922,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "ab970f1cfa73ea1d8cf5ed7208b35636dc54b2391b4295255f676c165906ddba", + "checksum": "78cbd8a4aeb43656a34a21a1f28fa5f91aacf3fb312c91ef3002196dfa3041d4", "events": [], "fighters": [ { @@ -149141,8 +150949,9 @@ "facing_y": -628, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -149201,6 +151010,7 @@ "facing_y": 627, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -149268,7 +151078,7 @@ "tick": 918 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 918 }, @@ -149277,7 +151087,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "8edf60e1b432d782ca07be4300c6cdf41df082d5cc3ec4a56061220fbc6692d5", + "checksum": "4564494aeeda851b95dd119220319cfd9432066d71ca59dda50fa0d22797c243", "events": [], "fighters": [ { @@ -149304,8 +151114,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -149364,6 +151175,7 @@ "facing_y": 628, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -149431,7 +151243,7 @@ "tick": 919 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 919 }, @@ -149440,7 +151252,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "577ea19e3c28b1ee8a2560d7bb93e35dffcb9259474ddaaf77126070489d5ca4", + "checksum": "ac417508cd16a3f28f6347075a3f9067eb1a0d8c390a447532fb5aab9c1c25c7", "events": [], "fighters": [ { @@ -149467,8 +151279,9 @@ "facing_y": -626, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -149527,6 +151340,7 @@ "facing_y": 625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -149594,7 +151408,7 @@ "tick": 920 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 920 }, @@ -149603,7 +151417,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "92ce8fc3d3bf49232df3a460606aa1374a441e332d03bdfce03783fc62ad483d", + "checksum": "32ac0c9bb5682ec86b14edf1115cf29216f3d59b9206f0ab5116b609b8300ced", "events": [], "fighters": [ { @@ -149630,8 +151444,9 @@ "facing_y": -627, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -149690,6 +151505,7 @@ "facing_y": 626, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -149757,7 +151573,7 @@ "tick": 921 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 921 }, @@ -149766,7 +151582,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "71bcf23c328a2d11cd3407310bcd9ad9fbee23eb61123dce7def69c755e97138", + "checksum": "a1fe261a8791ccdd28d3449f337c6b7d5caff33c8e8bd33318aa337438a75ca4", "events": [], "fighters": [ { @@ -149793,8 +151609,9 @@ "facing_y": -629, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -149853,6 +151670,7 @@ "facing_y": 627, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -149920,7 +151738,7 @@ "tick": 922 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 922 }, @@ -149929,7 +151747,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "00b052749f92a1bbc4ebaeea3d8f81cf71af746543d0824db69f0afa3fee42a6", + "checksum": "7c95c2bb5efb9ba829135a9064a8dafb4e9c7c23a38f38fb3a0b0fcba85b77b7", "events": [], "fighters": [ { @@ -149956,8 +151774,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -150016,6 +151835,7 @@ "facing_y": 629, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -150083,7 +151903,7 @@ "tick": 923 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 923 }, @@ -150092,7 +151912,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e4bd44d44297ec0d51786cb006090822c49ff89cd9c5f7b0ff8c5e94e2bc2f40", + "checksum": "a8953da58663624d77e6be5bf45871e088cbde7bc785250bed37a64405ff51fb", "events": [], "fighters": [ { @@ -150119,8 +151939,9 @@ "facing_y": -626, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -150179,6 +152000,7 @@ "facing_y": 625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -150246,7 +152068,7 @@ "tick": 924 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 924 }, @@ -150255,7 +152077,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "63b119229e360dd6abb229b133b98ccef67b4d7593b34aafa178d773d2b44ffa", + "checksum": "5e7d15b5f856af3b0d687b45fb35289eadee81bbba6bda16f672cb77c64fdfc0", "events": [], "fighters": [ { @@ -150282,8 +152104,9 @@ "facing_y": -628, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -150342,6 +152165,7 @@ "facing_y": 626, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -150409,7 +152233,7 @@ "tick": 925 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 925 }, @@ -150418,7 +152242,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "0edfa151f3f412b9a2e0efc46d6763f7436fb8ff814c9b553e02ae6899a40723", + "checksum": "500896d1e7cb5681f24f7d78f8d3af60c51fa1cc75dd3838a7386e14354c0aa6", "events": [], "fighters": [ { @@ -150445,8 +152269,9 @@ "facing_y": -630, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -150505,6 +152330,7 @@ "facing_y": 628, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -150572,7 +152398,7 @@ "tick": 926 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 926 }, @@ -150581,7 +152407,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "85f15d412164ca0794134140ae500916e36b4759f28425fe435023667f8412af", + "checksum": "72fb667148f058a3e2136e39b0ca901a4cf17e0cb48aa715702c23ccdefd53d0", "events": [], "fighters": [ { @@ -150608,8 +152434,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -150668,6 +152495,7 @@ "facing_y": 630, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -150735,7 +152563,7 @@ "tick": 927 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 927 }, @@ -150755,7 +152583,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "296fe2a07e9868096a3fa264f976b0636034fd3842596dbdeaf922199fe2ce62", + "checksum": "58f524ca025a2ced1e5ff926a9c722a56d91463b7d81d1442a75c076fac73970", "events": [ { "action_id": "one@928", @@ -150764,7 +152592,7 @@ "blood": 0, "detail": "left:jab:head", "direction": 0, - "event_id": 64, + "event_id": 61, "kind": "punch_start", "target_id": null, "tick": 928 @@ -150795,8 +152623,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -150855,6 +152684,7 @@ "facing_y": 625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -150922,7 +152752,7 @@ "tick": 928 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 928 }, @@ -150942,7 +152772,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "f49db8ecff9453b60efeff2983afd0d2fb149668aeeae132b5fbef1af08a0ff8", + "checksum": "4d8909aa5204c6549c372730cbd0b06586feab735b3b157d95ca58bf8531f20b", "events": [], "fighters": [ { @@ -150969,8 +152799,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -151029,6 +152860,7 @@ "facing_y": 627, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -151096,7 +152928,7 @@ "tick": 929 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 929 }, @@ -151116,7 +152948,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "2834c5ee13c7ec6ed87d9a0552aa5949c293c9297491152da10dec7662a6623d", + "checksum": "8af1d0c0d702ceeaf98a84de42c145d10ec5cb9056b32843f025b7e683a9e9c9", "events": [ { "action_id": "one@928", @@ -151125,7 +152957,7 @@ "blood": 12, "detail": "jab:head", "direction": 1, - "event_id": 65, + "event_id": 62, "kind": "hit", "target_id": "two", "tick": 930 @@ -151137,7 +152969,7 @@ "blood": 0, "detail": "", "direction": 0, - "event_id": 66, + "event_id": 63, "kind": "finish_him", "target_id": "two", "tick": 930 @@ -151149,7 +152981,7 @@ "blood": 25, "detail": "", "direction": 0, - "event_id": 67, + "event_id": 64, "kind": "bleed", "target_id": null, "tick": 930 @@ -151180,8 +153012,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -151240,6 +153073,7 @@ "facing_y": 627, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -151307,7 +153141,7 @@ "tick": 930 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 930 }, @@ -151327,7 +153161,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "b35d9aec941c3f8b0f611c9d01424163d39c254ed6eb9cb2aef7d2ef9f1bd692", + "checksum": "24652acc3bb679dc0de2218516f8f905bab2e1d5228eedb7f31bddffd1f02789", "events": [], "fighters": [ { @@ -151354,8 +153188,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -151414,6 +153249,7 @@ "facing_y": 627, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -151481,7 +153317,7 @@ "tick": 931 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 931 }, @@ -151501,7 +153337,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "e756f53bc30a70311b80b28e7d9f792bc0dba16bd761d1ff8aa9c4e2c2be26ac", + "checksum": "607ff1d5f58003d25f4427efa04db57dded11289af99513123d00155808fe702", "events": [], "fighters": [ { @@ -151528,8 +153364,9 @@ "facing_y": -625, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -151588,6 +153425,7 @@ "facing_y": 627, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -151655,7 +153493,7 @@ "tick": 932 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 932 }, @@ -151675,7 +153513,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "1d9bfefba2e96f0c9f534e8bc61dab4995f21ba6233b2de0f53b6d0aa0740fa8", + "checksum": "e1b6ae8c58b4dfe3a47cdb6c3560aa30dedcc3aff91620c1c10da6851b3e047e", "events": [], "fighters": [ { @@ -151702,8 +153540,9 @@ "facing_y": -623, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -151762,6 +153601,7 @@ "facing_y": 627, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -151829,7 +153669,7 @@ "tick": 933 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 933 }, @@ -151849,7 +153689,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "ab5e2c28b75da0c24538c914faabe0576b8bb0cb15f53a42cb71edfc86ceb005", + "checksum": "05577c0c33f90283dcfac43a675d5e6486f577a4bd983f7b45d73cfc933b9571", "events": [], "fighters": [ { @@ -151876,8 +153716,9 @@ "facing_y": -623, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -151936,6 +153777,7 @@ "facing_y": 627, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -152003,7 +153845,7 @@ "tick": 934 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 934 }, @@ -152012,7 +153854,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "6c853025d9604d8bd71608e5747e4881286c92b9b3ba3b5356b10a080192281d", + "checksum": "115ad7ade633c000ff5880c5a9f054ef91989e47d3f5a4cd42f0cb899c20b1cd", "events": [], "fighters": [ { @@ -152039,8 +153881,9 @@ "facing_y": -623, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -152099,6 +153942,7 @@ "facing_y": 627, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -152166,7 +154010,7 @@ "tick": 935 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 935 }, @@ -152186,7 +154030,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "5ddf5bb395b9e050abcfba9f1ea8ca54a2414326a5e872c11f0c04e7c2a2d650", + "checksum": "98e5bcdb4e1659e733875063361cbe900f2d61650dc818b108f5ffd62fe368f8", "events": [ { "action_id": "one@936", @@ -152195,7 +154039,7 @@ "blood": 0, "detail": "left:hook:head", "direction": 0, - "event_id": 68, + "event_id": 65, "kind": "punch_start", "target_id": null, "tick": 936 @@ -152226,8 +154070,9 @@ "facing_y": -623, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -152286,6 +154131,7 @@ "facing_y": 627, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -152353,7 +154199,7 @@ "tick": 936 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 936 }, @@ -152373,7 +154219,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "2f401fe96a1a8afb9e895c8b4b7e9aa03389520e1982ca399439854da1ccf75e", + "checksum": "e9aa47bed14981fc1814186c9d4f657ca73ba8ba91821374c4a2a6a91095f4ee", "events": [], "fighters": [ { @@ -152400,8 +154246,9 @@ "facing_y": -623, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -152460,6 +154307,7 @@ "facing_y": 627, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -152527,7 +154375,7 @@ "tick": 937 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 937 }, @@ -152547,7 +154395,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "2a8aaa5341a946a2157c13c2c5a3023fbb5cec9fe406fd1852bb127e1d2b91d8", + "checksum": "94e6935123d4f53665f79c90ced390e6b798f965f645ff06f9e26fd9e388e033", "events": [], "fighters": [ { @@ -152574,8 +154422,9 @@ "facing_y": -623, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -152634,6 +154483,7 @@ "facing_y": 627, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -152701,7 +154551,7 @@ "tick": 938 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 938 }, @@ -152721,7 +154571,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "6fafaa12aa928597d6a8cf356abfbb635c44a58058a27617545d675c6d1b0e48", + "checksum": "f6b49aeebdcbe20fda6c5cafa19d5652b00f3db6d6dde793f3cc8114aae29560", "events": [], "fighters": [ { @@ -152748,8 +154598,9 @@ "facing_y": -623, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -152808,6 +154659,7 @@ "facing_y": 627, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -152875,7 +154727,7 @@ "tick": 939 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 939 }, @@ -152895,7 +154747,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "86db4f029c38b3fa4ff3036cb35fae342930b4c7b06ed7e0f41a736423824891", + "checksum": "5f77d5417a0ceb6f5ab7cd8e246ee98ba5bb92d376eac075a18ee5165098881b", "events": [], "fighters": [ { @@ -152922,8 +154774,9 @@ "facing_y": -623, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -152982,6 +154835,7 @@ "facing_y": 627, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -153049,7 +154903,7 @@ "tick": 940 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 940 }, @@ -153069,7 +154923,7 @@ "attack_two": null, "snapshot": { "payload": { - "checksum": "d6029fdf7c1dccf4fb487a197c5fc8a854c42fe3c52eab82632fdd2828977927", + "checksum": "da5661730e2cdc960a7faef4fb072e7166edf19318cae695c4ff60922ce55e3b", "events": [ { "action_id": "one@936", @@ -153078,7 +154932,7 @@ "blood": 100, "detail": "hook:head", "direction": 1, - "event_id": 69, + "event_id": 66, "kind": "hit", "target_id": "two", "tick": 941 @@ -153090,7 +154944,7 @@ "blood": 100, "detail": "decapitation", "direction": 1, - "event_id": 70, + "event_id": 67, "kind": "fatality", "target_id": "two", "tick": 941 @@ -153102,7 +154956,7 @@ "blood": 0, "detail": "fatality:decapitation", "direction": 0, - "event_id": 71, + "event_id": 68, "kind": "death", "target_id": "two", "tick": 941 @@ -153114,7 +154968,7 @@ "blood": 0, "detail": "death", "direction": 0, - "event_id": 72, + "event_id": 69, "kind": "result", "target_id": null, "tick": 941 @@ -153145,8 +154999,9 @@ "facing_y": -623, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, - "get_up_required": 30, + "get_up_required": 0, "get_up_window_end_tick": 0, "get_up_window_start_tick": 0, "guard": 700, @@ -153205,6 +155060,7 @@ "facing_y": 627, "get_up_count": 5, "get_up_meter": 0, + "get_up_next_prompt": null, "get_up_prompt": null, "get_up_required": 0, "get_up_window_end_tick": 0, @@ -153315,7 +155171,7 @@ "tick": 941 }, "type": "snapshot", - "version": 6 + "version": 7 }, "tick": 941 } diff --git a/web/hands/src/app.test.ts b/web/hands/src/app.test.ts index 3a856006..638d3493 100644 --- a/web/hands/src/app.test.ts +++ b/web/hands/src/app.test.ts @@ -725,7 +725,7 @@ describe("browser lifecycle and accessible overlays", () => { await vi.waitFor(() => expect(mocks.callbacks).not.toBeNull()); const longName = "A very long authoritative fighter name that canvas must truncate but semantics retain"; send({ version: PROTOCOL_VERSION, type: "welcome", role: "fighter", player_id: "one", seat: 1, rating: 1500, players: [{ ...players[0], name: longName }, players[1]], server_tick: 1, next_sequence: 0, reconnect_ticket: "new" }); - const downed = { ...fighter("one", -100), is_downed: true, get_up_prompt: "get_up_left" as const, get_up_meter: 12, get_up_required: 50, get_up_count: 0, injuries: ["broken_nose", "arm_left_torn"] as const, blood_volume: 420 }; + const downed = { ...fighter("one", -100), is_downed: true, get_up_prompt: "get_up_left" as const, get_up_meter: 3, get_up_required: 8, get_up_count: 0, injuries: ["broken_nose", "arm_left_torn"] as const, blood_volume: 420 }; const snapshot = { ...makeSnapshot(2, "knockdown"), fighters: [downed, fighter("two", 100)] as const }; send({ version: PROTOCOL_VERSION, type: "snapshot", payload: snapshot }); const summary = root.querySelector("[data-fight-summary]")!; @@ -733,17 +733,17 @@ describe("browser lifecycle and accessible overlays", () => { expect(summary.hasAttribute("aria-live")).toBe(false); expect(summary.textContent).toContain(longName); expect(summary.textContent).toContain("Clock 1:00"); - expect(summary.textContent).toContain("Press left now"); + expect(summary.textContent).toContain("Press the left arrow key on the beat of the count"); expect(summary.textContent).toContain("blood 42 percent, injuries: broken nose, left arm torn off,"); expect(summary.textContent).toContain("blood 100 percent, no injuries,"); - expect(live.textContent).toBe("Knockdown. Count 0. Press left now."); + expect(live.textContent).toBe("You are down. Count 0. Press the left arrow key on the beat of the count, as the ring closes. One press a count. 5 more to get up."); const firstLiveNode = live.firstChild; const staminaChanged = { ...snapshot, tick: 3, fighters: [{ ...downed, stamina: downed.stamina - 1 }, snapshot.fighters[1]] as const }; send({ version: PROTOCOL_VERSION, type: "snapshot", payload: staminaChanged }); expect(summary.textContent).toContain(`stamina ${downed.stamina - 1}`); expect(live.firstChild).toBe(firstLiveNode); send({ version: PROTOCOL_VERSION, type: "snapshot", payload: { ...staminaChanged, tick: 4, fighters: [{ ...staminaChanged.fighters[0], get_up_prompt: "get_up_right" }, staminaChanged.fighters[1]] } }); - expect(live.textContent).toBe("Knockdown. Count 0. Press right now."); + expect(live.textContent).toBe("You are down. Count 0. Press the right arrow key on the beat of the count, as the ring closes. One press a count. 5 more to get up."); expect(live.firstChild).not.toBe(firstLiveNode); app.destroy(); }); diff --git a/web/hands/src/app.ts b/web/hands/src/app.ts index 504174d3..a67fe8ea 100644 --- a/web/hands/src/app.ts +++ b/web/hands/src/app.ts @@ -6,6 +6,7 @@ import { DiscordActivity, type ActivityAuthorizer, type DiscordSession } from ". import { CornerPanel } from "./corner"; import { saveStyle, StylePicker } from "./styles"; import { describeError } from "./errors"; +import { getUpStatus, getUpView } from "./getup"; import { HapticFeedback } from "./haptics"; import { BLOOD_VOLUME, injuryLabel } from "./injuries"; import { CONTROL_SECTIONS, controlHint } from "./input/bindings"; @@ -285,6 +286,11 @@ export class HandsApp { this.dispatch({ type: "bootstrap", simulation: session.bootstrap.simulation }); this.dispatch({ type: "authorized", player: session.player }); this.input.onAction((action) => { + if (action.kind === "get_up_left" || action.kind === "get_up_right") { + // Every press is answered at once on the press clock; the server's verdict replaces the guess. + const judgement = this.renderer?.pressGetUp(action.kind) ?? null; + if (judgement !== null) this.audio.getUpVerdict(judgement.detail); + } this.renderer?.predictAction?.(action); this.network?.notifyAction(); }); @@ -327,6 +333,10 @@ export class HandsApp { inputSequenceOf: (actionId) => this.network?.sequenceOf(actionId) ?? null, powerHeld: () => this.input.powerHeld, }); + renderer.onGetUpBeat = () => { + this.audio.getUpBeat(); + this.haptics.getUpBeat(); + }; renderer.onContact = (event, power) => { this.audio.event(event, power); this.haptics.event(event, power); @@ -406,11 +416,14 @@ export class HandsApp { this.renderer?.push(snapshot); const viewer = snapshot.fighters.find((fighter) => fighter.player_id === this.state.playerId); this.input.setKnockdown(viewer?.is_downed === true); + this.input.setGetUpPrompt(viewer?.is_downed === true ? this.renderer?.getUpView?.prompt?.side ?? viewer.get_up_prompt : null); if (viewer !== undefined) this.audio.snapshot(snapshot.tick, viewer.stamina, viewer.maximum_stamina, viewer.trauma.head + viewer.trauma.body); this.audio.roundClock(snapshot.phase, snapshot.round_number, snapshot.phase_ticks_remaining, this.state.simulation?.tick_rate ?? 30); this.audio.tension(crowdTension(snapshot)); for (const event of this.feedbackEvents.accept(snapshot.events)) { if (CONTACT_FEEDBACK_KINDS.has(event.kind)) continue; + // The downed player hears the count on his own beat (FightRenderer.onGetUpBeat), timed to his presses. + if (event.kind === "count" && viewer?.is_downed === true) continue; if (event.kind === "punch_start" && event.action_id !== null && this.soundedPunches.includes(event.action_id)) continue; // A punch's start says nothing of its power; the snapshot shows the fighter throwing it. const thrower = event.kind === "punch_start" ? snapshot.fighters.find((fighter) => fighter.player_id === event.actor_id && fighter.action_id === event.action_id) : undefined; @@ -483,7 +496,7 @@ export class HandsApp { const liveStatus = spectating ? `Spectating. ${labels[this.state.stage]}` : this.state.stage === "knockdown" && viewer?.is_downed === true - ? `Knockdown. Count ${viewer.get_up_count}. ${viewer.get_up_prompt === null ? "Wait for your private rhythm instruction." : `Press ${viewer.get_up_prompt === "get_up_left" ? "left" : "right"} now.`}` + ? getUpStatus(this.renderer?.getUpView ?? getUpView(viewer, this.state.snapshot?.tick ?? 0, 0, null, null, coarsePointer(), false)) : this.state.stage === "paused" ? "Connection paused." : labels[this.state.stage]; @@ -527,11 +540,7 @@ export class HandsApp { return `${player?.name ?? "Fighter"}, ${player?.cpu === true ? "computer opponent" : `ELO ${player?.rating ?? "unknown"}`}, stamina ${Math.round(fighter.stamina)} of ${Math.round(fighter.maximum_stamina)}, guard ${Math.round(fighter.guard)}, poise ${Math.round(fighter.poise)}, conditioning ${Math.round(fighter.conditioning)}, blood ${Math.round((fighter.blood_volume / BLOOD_VOLUME) * 100)} percent, ${injuries}, ${fighter.warnings} warnings, ${fighter.knockdowns} knockdowns`; }); const viewer = snapshot.fighters.find((fighter) => fighter.player_id === this.state.playerId); - const getUp = viewer?.is_downed === true - ? viewer.get_up_prompt === null - ? `You are down. Count ${viewer.get_up_count}. Wait for your private rhythm instruction.` - : `You are down. Count ${viewer.get_up_count}. Press ${viewer.get_up_prompt === "get_up_left" ? "left" : "right"} now. Get-up progress ${viewer.get_up_meter} of ${viewer.get_up_required}.` - : ""; + const getUp = viewer?.is_downed === true ? getUpStatus(this.renderer?.getUpView ?? getUpView(viewer, snapshot.tick, 0, null, null, coarsePointer(), false)) : ""; this.setText(this.fightSummary, `Round ${snapshot.round_number}. ${snapshot.phase.replace("_", " ")}. Clock ${clock}. ${fighters.join(". ")}. ${getUp}`.trim()); } diff --git a/web/hands/src/audio.ts b/web/hands/src/audio.ts index a10dacd3..1b3dd4f7 100644 --- a/web/hands/src/audio.ts +++ b/web/hands/src/audio.ts @@ -2,6 +2,7 @@ import { INJURY_SOUNDS } from "./assets/injury-sounds"; import { fatalityOf, injuryKind, type FatalityId, type GoreCue, type InjuryKind } from "./injuries"; import type { ArcadeInjury } from "./render/renderer"; import { XRAY_SNAP_SECONDS } from "./render/xray"; +import type { GetUpVerdict } from "./getup"; /** Finishers without a voice of their own borrow the nearest one. */ const BORROWED_VOICE: Partial>> = { head_burst: "decapitation", eye_left: "jaw_dislocation", eye_right: "jaw_dislocation", ribs_left: "shoulder_left", ribs_right: "shoulder_right" }; @@ -353,6 +354,25 @@ export class AudioFeedback { this.timers.add(timer); } + /** The downed player's beat: a tick on each number of the count, when a press made now reaches the server on it. */ + getUpBeat(): void { + this.tone({ from: 1320, duration: 0.05, type: "square", gain: 0.07 }); + } + + /** What the downed player's press did, as he makes it: rising for a score, dull for none, a buzz for the wrong side. */ + getUpVerdict(verdict: GetUpVerdict): void { + if (verdict === "perfect") { + this.tone({ from: 880, to: 1760, duration: 0.12, type: "triangle", gain: 0.11 }); + this.tone({ from: 1760, duration: 0.1, type: "triangle", gain: 0.08, delay: 0.07 }); + } else if (verdict === "good") { + this.tone({ from: 660, to: 990, duration: 0.1, type: "triangle", gain: 0.09 }); + } else if (verdict === "wrong") { + this.tone({ from: 140, duration: 0.16, type: "sawtooth", gain: 0.09 }); + } else { + this.tone({ from: 260, duration: 0.09, type: "sine", gain: 0.07 }); + } + } + /** The crowd takes up a rhythmic clap behind a fighter who has taken over. */ chant(): void { const context = this.context; diff --git a/web/hands/src/dev-fixtures.ts b/web/hands/src/dev-fixtures.ts index fd603505..fa0db775 100644 --- a/web/hands/src/dev-fixtures.ts +++ b/web/hands/src/dev-fixtures.ts @@ -1,6 +1,11 @@ -import { REST_CORNER_OFFSET, punchTiming } from "./manifest"; +// The development fixture (`?fixture=1`): recorded presentation data with no server, its scenes chosen by URL +// parameters documented where each is read. `getup=1` plays a knockdown from the downed viewer's side, keyboard and +// touch working and every press scored by the engine's rules (runGetUpFixture). +import { COUNT_TICKS, GET_UP, REST_CORNER_OFFSET, punchTiming } from "./manifest"; import * as THREE from "three"; import { FATALITY_IDS, INJURY_IDS, fatalityFor, parseDeathCause, type InjuryId } from "./injuries"; +import { getUpRequirement, judgeGetUpPress, type GetUpSide } from "./getup"; +import { ACTION_KEYS } from "./input/bindings"; import { SharedActionIntent } from "./input/action-buffer"; import { TouchInput, coarsePointer } from "./input/touch"; import { FightRenderer } from "./render/renderer"; @@ -26,7 +31,7 @@ const base = (id: string): Draft => ({ knockdowns: 0, warnings: 0, deductions: 0, stunned_ticks: 0, is_downed: false, action: null, action_hand: null, action_target: null, action_power: null, action_id: null, action_key: null, action_start_tick: 0, action_startup_ticks: 0, action_active_ticks: 0, action_recovery_ticks: 0, action_contact_tick: null, queued_actions: 0, clinch_startup_ticks: 0, clinch_ticks: 0, is_foul_recovery_target: false, taunt_ticks: 0, corner_choice: null, - get_up_prompt: null, get_up_meter: 0, get_up_required: 0, get_up_count: 0, get_up_window_start_tick: 0, get_up_window_end_tick: 0, + get_up_prompt: null, get_up_meter: 0, get_up_required: 0, get_up_count: 0, get_up_window_start_tick: 0, get_up_window_end_tick: 0, get_up_next_prompt: null, last_input_sequence: -1, injuries: [], blood_volume: 1000, }); @@ -40,6 +45,126 @@ function calmPlace(seconds: number, gap: number, walking: boolean, side: number) return { x: drift + side * Math.cos(turn) * half, y: side * Math.sin(turn) * half }; } +/** + * `getup=1`: a knockdown from the downed viewer's side, scored on this page by the engine's rules (getup.ts). He goes + * down a second in; the arrow keys, or the touch pads with `platform=mobile`, press, and the panel answers as it would + * against the server, which here is half a tick away. `knockdowns=2` makes it his second knockdown and `head=<0-1400>` + * sets his head trauma. Three seconds after he rises or is counted out he goes down again. + */ +function runGetUpFixture(renderer: FightRenderer, intent: SharedActionIntent, touch: TouchInput | null): () => void { + const search = new URLSearchParams(window.location.search); + const knockdowns = Math.min(2, Math.max(1, Number(search.get("knockdowns") ?? 1) || 1)); + const head = Math.min(1400, Math.max(0, Number(search.get("head") ?? 0) || 0)); + const required = getUpRequirement(knockdowns, head).total; + renderer.setInputLatency(1000 / 60); + const started = performance.now(); + let tick = 0; + let eventId = 0; + let knockTick = 30; + let meter = 0; + let prompt: GetUpSide | null = null; + let next: GetUpSide | null = null; + let beat = 0; + let overAt: number | null = null; + let risen = false; + let queued: GetUpSide | null = null; + let events: CombatEvent[] = []; + const emit = (kind: string, amount = 0, detail = ""): void => { + eventId += 1; + const struck = kind === "knockdown" || kind === "count"; + events.push({ event_id: eventId, tick, kind, actor_id: kind === "knockdown" ? "fixture-two" : struck ? null : "fixture-one", target_id: struck ? "fixture-one" : null, amount, detail, blood: 0, direction: 1, action_id: null }); + }; + // As the engine: a side for each number of the count before ten, and the next one drawn as a prompt is shown. + const sideOn = (at: number): GetUpSide | null => (at - knockTick >= 10 * COUNT_TICKS ? null : Math.random() < 0.5 ? "get_up_left" : "get_up_right"); + const schedule = (at: number, side: GetUpSide | null): void => { + prompt = side; + next = null; + if (side === null) return; + beat = at; + next = sideOn(at + COUNT_TICKS); + }; + const press = (kind: GetUpSide): void => { + renderer.pressGetUp(kind); + queued = kind; + }; + intent.setListener((action) => { + // Nothing sends frames here, so each press is taken off the queue at once, as the network's next frame would. + intent.clear(); + if (action.kind === "get_up_left" || action.kind === "get_up_right") press(action.kind); + }); + const onKey = (event: KeyboardEvent): void => { + const kind = ACTION_KEYS[event.code]?.kind; + if (event.repeat || (kind !== "get_up_left" && kind !== "get_up_right")) return; + event.preventDefault(); + press(kind); + }; + window.addEventListener("keydown", onKey); + const advance = (): void => { + tick += 1; + const counted = tick - knockTick; + if (counted === 0) { + meter = 0; + risen = false; + overAt = null; + emit("knockdown", knockdowns, "knockdown"); + const first = tick + GET_UP.firstCount * COUNT_TICKS; + schedule(first, sideOn(first)); + } + // Like the server, a tick scores the last press that arrived since the one before. + const pressed = queued; + queued = null; + if (counted <= 0 || overAt !== null) return; + if (prompt !== null && tick > beat + GET_UP.zoneTicks + GET_UP.lateTicks) schedule(beat + COUNT_TICKS, next); + const judgement = pressed === null || prompt === null ? null : judgeGetUpPress(tick, pressed, prompt, beat, meter); + if (judgement !== null) { + meter += judgement.amount; + emit("get_up_input", judgement.amount, judgement.detail); + schedule(beat + COUNT_TICKS, next); + } + if (counted >= 10 * COUNT_TICKS) { + overAt = tick; + prompt = next = null; + } else if (meter >= required) { + risen = true; + overAt = tick; + prompt = next = null; + emit("get_up", Math.floor(counted / COUNT_TICKS)); + } else if (counted % COUNT_TICKS === 0) { + emit("count", counted / COUNT_TICKS); + } + }; + const referee: RefereeSnapshot = { x: -40, y: 150, facing_x: -1000, facing_y: 0, velocity_x: 0, velocity_y: 0, stunned_ticks: 0, alive: true, trauma: { head: 0, body: 0, left_eye: 0, right_eye: 0, left_cut: 0, right_cut: 0, swelling: 0, bleeding: 0 } }; + const interval = window.setInterval(() => { + const due = Math.floor(((performance.now() - started) * 30) / 1000); + while (tick < due) { + advance(); + if (overAt !== null && tick >= overAt + 90 && knockTick <= overAt) knockTick = tick + 30; + } + const counted = tick - knockTick; + const counting = counted >= 0 && (overAt === null || tick < overAt + 90); + const one = base("fixture-one"); + const two = base("fixture-two"); + Object.assign(one, { x: -140, y: 40, facing: 1, facing_x: 949, facing_y: -316, defense: "none", knockdowns: counted >= 0 ? knockdowns : knockdowns - 1, trauma: { ...one.trauma, head } }); + Object.assign(two, { x: 160, y: -60, facing: -1, facing_x: -949, facing_y: 316 }); + if (counting) { + Object.assign(one, { + is_downed: !risen, get_up_prompt: prompt, get_up_next_prompt: next, get_up_meter: meter, get_up_required: required, get_up_count: Math.min(10, Math.floor(counted / COUNT_TICKS)), + get_up_window_start_tick: beat - GET_UP.zoneTicks, get_up_window_end_tick: beat + GET_UP.zoneTicks, + }); + } + renderer.push({ tick, phase: counting ? "knockdown" : "fight", round_number: 2, phase_ticks_remaining: counting ? Math.max(0, 10 * COUNT_TICKS - counted) : 3000, fighters: [{ ...one }, { ...two }], referee, events, result: null, checksum: "a".repeat(64) }); + events = []; + touch?.setKnockdown(counting && !risen); + touch?.setGetUpPrompt(renderer.getUpView?.prompt?.side ?? null); + (window as unknown as Record).__fixtureRenderer = renderer; + }, 1000 / 30); + return () => { + window.clearInterval(interval); + window.removeEventListener("keydown", onKey); + intent.setListener(null); + }; +} + export function runDevelopmentFixture(root: HTMLElement): () => void { root.innerHTML = `
HANDS · DEV FIXTUREProduction never enters this harness
`; const bloodParam = new URLSearchParams(window.location.search).get("blood"); @@ -59,7 +184,17 @@ export function runDevelopmentFixture(root: HTMLElement): () => void { "fixture-two": { id: pictured[1]?.[0] || "fixture-two", name: "Crimson Geometry", avatar: pictured[1]?.[1] || null, rating: 1494, connected: true }, }; renderer.setPlayers(players, "fixture-one"); - const touch = coarsePointer() ? new TouchInput(root.querySelector(".activity")!, new SharedActionIntent()) : null; + const intent = new SharedActionIntent(); + const touch = coarsePointer() ? new TouchInput(root.querySelector(".activity")!, intent) : null; + if (new URLSearchParams(window.location.search).has("getup")) { + const stop = runGetUpFixture(renderer, intent, touch); + return () => { + stop(); + touch?.destroy(); + renderer.destroy(); + root.replaceChildren(); + }; + } let tick = 0; let eventId = 0; diff --git a/web/hands/src/getup.test.ts b/web/hands/src/getup.test.ts new file mode 100644 index 00000000..a406615d --- /dev/null +++ b/web/hands/src/getup.test.ts @@ -0,0 +1,85 @@ +import { describe, expect, it } from "vitest"; +import { GetUpTracker, getUpLeadIn, getUpStatus, getUpView, judgeGetUpPress, type GetUpVerdict } from "./getup"; +import { COUNT_TICKS, GET_UP } from "./manifest"; +import { fighter } from "./test/fixtures"; +import type { CombatEvent, FighterSnapshot } from "./types"; + +const BEAT = 100; +const downed = (overrides: Partial = {}): FighterSnapshot => ({ + ...fighter("one"), is_downed: true, knockdowns: 1, get_up_prompt: "get_up_left", get_up_next_prompt: "get_up_right", + get_up_window_start_tick: BEAT - GET_UP.zoneTicks, get_up_window_end_tick: BEAT + GET_UP.zoneTicks, get_up_meter: 1, get_up_required: 4, ...overrides, +}); +const verdict = (detail: GetUpVerdict, amount: number): CombatEvent => ({ event_id: 1, tick: BEAT, kind: "get_up_input", actor_id: "one", target_id: null, amount, detail, blood: 0, direction: 0, action_id: null }); + +describe("a get-up press is judged as the engine judges it", () => { + // The same distances from the beat as the engine's test_a_get_up_press_is_judged_by_its_distance_from_the_beat. + it.each([ + [getUpLeadIn(BEAT) - 1, null], + [getUpLeadIn(BEAT), "early"], + [BEAT - GET_UP.zoneTicks - 1, "early"], + [BEAT - GET_UP.zoneTicks, "good"], + [BEAT - GET_UP.perfectTicks, "perfect"], + [BEAT, "perfect"], + [BEAT + GET_UP.perfectTicks + 1, "good"], + [BEAT + GET_UP.zoneTicks, "good"], + [BEAT + GET_UP.zoneTicks + 1, "late"], + [BEAT + GET_UP.zoneTicks + GET_UP.lateTicks, "late"], + ])("a press scored on tick %d is %s", (tick, detail) => { + expect(judgeGetUpPress(tick, "get_up_left", "get_up_left", BEAT, 0)?.detail ?? null).toBe(detail); + }); + + it("costs a press for the wrong side, never taking the meter below empty", () => { + expect(judgeGetUpPress(BEAT, "get_up_right", "get_up_left", BEAT, 3)).toEqual({ detail: "wrong", amount: -GET_UP.wrong }); + expect(judgeGetUpPress(BEAT, "get_up_right", "get_up_left", BEAT, 0)).toEqual({ detail: "wrong", amount: 0 }); + }); +}); + +describe("the downed player's own presses", () => { + it("moves on to the next prompt once he has pressed, before the snapshot does, and lets a double tap do nothing", () => { + const tracker = new GetUpTracker(); + const fighter = downed(); + expect(tracker.press("get_up_left", fighter, BEAT + 0.2, 0)).toEqual({ detail: "perfect", amount: GET_UP.perfect }); + expect(tracker.prompt(fighter, BEAT + 0.5)).toEqual({ side: "get_up_right", beat: BEAT + COUNT_TICKS, next: null }); + expect(tracker.press("get_up_right", fighter, BEAT + 1, 20)).toBeNull(); + expect(tracker.meter(fighter, 30)).toBe(1 + GET_UP.perfect); + }); + + it("shows the server's verdict in place of the guess, with the snapshot's meter", () => { + const tracker = new GetUpTracker(); + expect(tracker.press("get_up_left", downed(), BEAT, 0)?.detail).toBe("perfect"); + tracker.confirm(verdict("good", GET_UP.good), 150); + expect(tracker.verdict).toEqual({ detail: "good", amount: GET_UP.good, atMs: 0, confirmed: true }); + expect(tracker.meter(downed({ get_up_meter: 1 + GET_UP.good }), 160)).toBe(1 + GET_UP.good); + expect(tracker.counts.good).toBe(1); + }); + + it("stops counting a guess the server never answers", () => { + const tracker = new GetUpTracker(); + tracker.press("get_up_left", downed(), BEAT, 0); + expect(tracker.meter(downed(), 100)).toBe(1 + GET_UP.perfect); + expect(tracker.meter(downed(), 2000)).toBe(1); + }); + + it("gives a prompt up to the next once a press made now would land after its late ticks", () => { + const tracker = new GetUpTracker(); + expect(tracker.prompt(downed(), BEAT + GET_UP.zoneTicks + GET_UP.lateTicks)?.beat).toBe(BEAT); + expect(tracker.prompt(downed(), BEAT + GET_UP.zoneTicks + GET_UP.lateTicks + 1)?.beat).toBe(BEAT + COUNT_TICKS); + }); + + it("forgets the last count's attempt when he goes down again", () => { + const tracker = new GetUpTracker(); + tracker.press("get_up_left", downed(), BEAT, 0); + tracker.reset(); + expect(tracker.prompt(downed(), BEAT)?.beat).toBe(BEAT); + expect(tracker.verdict).toBeNull(); + }); +}); + +describe("the get-up status a screen reader speaks", () => { + it("names the count, the key, the side after it, what is left and the last verdict", () => { + const tracker = new GetUpTracker(); + tracker.confirm(verdict("wrong", -1), 0); + const status = getUpStatus(getUpView(downed({ get_up_count: 3 }), BEAT - 10, 10, tracker, null, false, false)); + expect(status).toBe("You are down. Count 3. Press the left arrow key on the beat of the count, as the ring closes; next, right. One press a count. 3 more to get up. Last press: wrong side, minus 1."); + }); +}); diff --git a/web/hands/src/getup.ts b/web/hands/src/getup.ts new file mode 100644 index 00000000..dee11b3e --- /dev/null +++ b/web/hands/src/getup.ts @@ -0,0 +1,145 @@ +import { COUNT_TICKS, GET_UP } from "./manifest"; +import type { CombatEvent, FighterSnapshot } from "./types"; + +export type GetUpSide = "get_up_left" | "get_up_right"; +export type GetUpVerdict = "perfect" | "good" | "early" | "late" | "wrong"; +export interface GetUpJudgement { readonly detail: GetUpVerdict; readonly amount: number } +/** A prompt as the press clock sees it: the side to press, the beat it is scored against, and the side after it if known. */ +export interface GetUpPrompt { readonly side: GetUpSide; readonly beat: number; readonly next: GetUpSide | null } +export interface GetUpShownVerdict extends GetUpJudgement { readonly atMs: number; readonly confirmed: boolean } + +const VERDICTS: readonly GetUpVerdict[] = ["perfect", "good", "early", "late", "wrong"]; +const isVerdict = (detail: string): detail is GetUpVerdict => (VERDICTS as readonly string[]).includes(detail); +/** A guessed verdict the server has not answered this long after the press was lost or turned down. */ +const PENDING_MS = 1500; + +/** The first tick a press counts for the prompt on `beat`; one before it is late for the last prompt, or made during the fall. */ +export function getUpLeadIn(beat: number): number { + return beat - COUNT_TICKS + GET_UP.zoneTicks + GET_UP.lateTicks + 1; +} + +/** The last tick a press still belongs to the prompt on `beat`, as a late one. */ +export function getUpLastTick(beat: number): number { + return beat + GET_UP.zoneTicks + GET_UP.lateTicks; +} + +/** + * The engine's verdict on a press scored on `tick` against the prompt on `beat` (BoxingEngine._score_get_up_action), + * with the meter at `meter`; null for a press that does nothing. + */ +export function judgeGetUpPress(tick: number, side: GetUpSide, prompt: GetUpSide, beat: number, meter: number): GetUpJudgement | null { + if (tick < getUpLeadIn(beat)) return null; + if (side !== prompt) return { detail: "wrong", amount: Math.max(0, meter - GET_UP.wrong) - meter }; + if (tick < beat - GET_UP.zoneTicks) return { detail: "early", amount: 0 }; + if (tick > beat + GET_UP.zoneTicks) return { detail: "late", amount: 0 }; + return Math.abs(tick - beat) <= GET_UP.perfectTicks ? { detail: "perfect", amount: GET_UP.perfect } : { detail: "good", amount: GET_UP.good }; +} + +/** What the meter must reach, in the parts the panel names: the knockdowns' share and the head trauma's. */ +export function getUpRequirement(knockdowns: number, head: number): { readonly knockdowns: number; readonly head: number; readonly total: number } { + const fromKnockdowns = GET_UP.base + GET_UP.perKnockdown * knockdowns; + const fromHead = Math.floor(head / GET_UP.traumaDivisor); + return { knockdowns: fromKnockdowns, head: fromHead, total: fromKnockdowns + fromHead }; +} + +/** + * The downed player's side of the get-up: which prompt a press made now goes to, the instant verdict on it, and the + * server's verdict, which replaces the guess. Presses are judged on the press clock, the fractional tick a press made + * now would be scored on at the server; the scored tick is the nearest whole one. + */ +export class GetUpTracker { + private attemptedBeat = -Infinity; + private pending: GetUpShownVerdict | null = null; + private shown: GetUpShownVerdict | null = null; + /** The server's verdicts since the page loaded, by kind. */ + readonly counts: Record = { perfect: 0, good: 0, early: 0, late: 0, wrong: 0 }; + + /** A new knockdown: the last count's attempts and verdicts are gone. */ + reset(): void { + this.attemptedBeat = -Infinity; + this.pending = null; + this.shown = null; + } + + get verdict(): GetUpShownVerdict | null { + return this.shown; + } + + prompt(fighter: FighterSnapshot, pressTick: number): GetUpPrompt | null { + if (fighter.get_up_prompt === null) return null; + const beat = fighter.get_up_window_start_tick + GET_UP.zoneTicks; + if (beat > this.attemptedBeat && Math.round(pressTick) <= getUpLastTick(beat)) return { side: fighter.get_up_prompt, beat, next: fighter.get_up_next_prompt }; + // The snapshot runs a round trip behind the press clock: a prompt already answered here, or one a press made now + // would miss, has given way to the next, whose side the snapshot shows a count ahead. + return fighter.get_up_next_prompt === null ? null : { side: fighter.get_up_next_prompt, beat: beat + COUNT_TICKS, next: null }; + } + + press(side: GetUpSide, fighter: FighterSnapshot, pressTick: number, nowMs: number): GetUpJudgement | null { + const prompt = this.prompt(fighter, pressTick); + if (prompt === null) return null; + const judgement = judgeGetUpPress(Math.round(pressTick), side, prompt.side, prompt.beat, this.meter(fighter, nowMs)); + if (judgement === null) return null; + this.attemptedBeat = prompt.beat; + this.pending = this.shown = { ...judgement, atMs: nowMs, confirmed: false }; + return judgement; + } + + /** The server's verdict on one of the viewer's presses. */ + confirm(event: CombatEvent, nowMs: number): void { + if (!isVerdict(event.detail)) return; + const atMs = this.pending?.atMs ?? nowMs; + this.pending = null; + this.shown = { detail: event.detail, amount: event.amount, atMs, confirmed: true }; + this.counts[event.detail] += 1; + } + + /** The meter as shown: the snapshot's, moved by a guessed verdict the server has not answered yet. */ + meter(fighter: FighterSnapshot, nowMs: number): number { + if (this.pending !== null && nowMs - this.pending.atMs > PENDING_MS) this.pending = null; + return Math.max(0, fighter.get_up_meter + (this.pending?.amount ?? 0)); + } +} + +/** Everything the get-up panel draws, for one frame. */ +export interface GetUpView { + readonly pressTick: number; + /** The referee's count on the press clock: the number changes on each beat. */ + readonly count: number; + readonly prompt: GetUpPrompt | null; + readonly meter: number; + readonly required: number; + readonly knockdowns: number; + readonly head: number; + readonly verdict: GetUpShownVerdict | null; + readonly nowMs: number; + readonly touch: boolean; + /** He has just beaten the count. */ + readonly risen: boolean; +} + +/** The panel's frame for the downed fighter: `knockTick`, the tick he went down on, puts the count on the press clock. */ +export function getUpView(fighter: FighterSnapshot, pressTick: number, nowMs: number, tracker: GetUpTracker | null, knockTick: number | null, touch: boolean, risen: boolean): GetUpView { + const count = knockTick === null ? fighter.get_up_count : Math.max(0, Math.min(10, Math.floor((pressTick - knockTick) / COUNT_TICKS))); + const required = fighter.get_up_required > 0 ? fighter.get_up_required : getUpRequirement(fighter.knockdowns, fighter.trauma.head).total; + return { + pressTick, count, prompt: risen ? null : tracker?.prompt(fighter, pressTick) ?? (fighter.get_up_prompt === null ? null : { side: fighter.get_up_prompt, beat: fighter.get_up_window_start_tick + GET_UP.zoneTicks, next: fighter.get_up_next_prompt }), + meter: risen ? required : tracker?.meter(fighter, nowMs) ?? fighter.get_up_meter, required, knockdowns: fighter.knockdowns, head: fighter.trauma.head, + verdict: tracker?.verdict ?? null, nowMs, touch, risen, + }; +} + +const SPOKEN: Readonly> = { get_up_left: "left", get_up_right: "right" }; +const SPOKEN_VERDICT: Readonly> = { perfect: "perfect", good: "good", early: "early, no score", late: "late, no score", wrong: "wrong side" }; + +/** The downed player's status for a screen reader: the count, what to press and when, what is left, and what the last press did. */ +export function getUpStatus(view: GetUpView): string { + if (view.risen) return `You beat the count at ${view.count}.`; + const control = view.touch ? "pad" : "arrow key"; + const prompt = view.prompt; + const press = prompt === null + ? "No more prompts this count." + : `Press the ${SPOKEN[prompt.side]} ${control} on the beat of the count, as the ring closes${prompt.next === null ? "" : `; next, ${SPOKEN[prompt.next]}`}. One press a count.`; + const verdict = view.verdict; + const last = verdict === null ? "" : ` Last press: ${SPOKEN_VERDICT[verdict.detail]}${verdict.amount === 0 ? "" : `, ${verdict.amount > 0 ? "plus" : "minus"} ${Math.abs(verdict.amount)}`}.`; + return `You are down. Count ${view.count}. ${press} ${Math.max(0, view.required - view.meter)} more to get up.${last}`; +} diff --git a/web/hands/src/haptics.ts b/web/hands/src/haptics.ts index f3cfefc8..3cc19180 100644 --- a/web/hands/src/haptics.ts +++ b/web/hands/src/haptics.ts @@ -22,6 +22,8 @@ const gorePatterns: Readonly> = { }; /** The second jolt of a broken bone, as its X-ray shows it snap. */ const BONE_SNAP: Pattern = [120, 0.65, 0.5]; +/** The tap on each beat of the count while the player is down. */ +const GET_UP_BEAT: Pattern = [35, 0.2, 0.35]; export class HapticFeedback { constructor(private readonly settings: () => Settings) {} @@ -45,6 +47,11 @@ export class HapticFeedback { if (cue.kind === "injury" && breakFor(cue.injury) !== null && current.blood === "full" && !current.reducedMotion) setTimeout(() => this.rumble(BONE_SNAP), XRAY_SNAP_SECONDS * 1000); } + /** A short pulse on each beat of the count while the player is down, the moment a press is timed to. */ + getUpBeat(): void { + if (this.settings().haptics) this.rumble(GET_UP_BEAT); + } + private rumble(pattern: Pattern): void { const actuator = this.padActuator(); if (actuator === null) { diff --git a/web/hands/src/input/bindings.ts b/web/hands/src/input/bindings.ts index 97871d97..d5f65460 100644 --- a/web/hands/src/input/bindings.ts +++ b/web/hands/src/input/bindings.ts @@ -12,18 +12,26 @@ export const ACTION_KEYS: Readonly> = { Digit1: { kind: "foul", foul: "low_blow" }, Digit2: { kind: "foul", foul: "headbutt" }, ArrowLeft: { kind: "get_up_left" }, ArrowRight: { kind: "get_up_right" }, }; +const KEY_NAMES: Readonly> = { ArrowLeft: "←", ArrowRight: "→" }; +const keyFor = (kind: "get_up_left" | "get_up_right"): string => { + const code = Object.keys(ACTION_KEYS).find((candidate) => ACTION_KEYS[candidate]!.kind === kind)!; + return KEY_NAMES[code] ?? code.replace(/^Key|^Digit/, ""); +}; +/** The keyboard key for each get-up side, as the panel names it. */ +export const GET_UP_KEYS: Readonly> = { get_up_left: keyFor("get_up_left"), get_up_right: keyFor("get_up_right") }; export const ACTIVE_CODES = new Set([...Object.keys(PUNCH_KEYS), ...Object.keys(ACTION_KEYS), "KeyW", "KeyA", "KeyS", "KeyD", "KeyQ", "KeyE", "ShiftLeft", "ShiftRight", "AltLeft", "AltRight"]); export const CONTROL_HELP = [ "Move: W up · S down · A left · D right", "High / low guard: Q / E", "Left/right jab: F / J", "Left/right straight: R / U", "Left/right hook: G / H", "Left/right uppercut: T / Y", "Body: Shift · Power: hold Alt (Option ⌥ on a Mac) with the punch, slower to throw and far heavier", - "Slip: Z / X · Weave: C · Pull: V", "Clinch: B · Stance: N · Taunt: M · Fouls (on purpose): Shift+1 low blow / Shift+2 headbutt", "Get-up rhythm: ← / →", + "Slip: Z / X · Weave: C · Pull: V", "Clinch: B · Stance: N · Taunt: M · Fouls (on purpose): Shift+1 low blow / Shift+2 headbutt", + `Get up when knocked down: press ${GET_UP_KEYS.get_up_left} or ${GET_UP_KEYS.get_up_right}, the side the big arrow shows, as the ring closes on each count; one press per count, the next side shows small beside it.`, "Camera: K cycles broadcast, close and over the shoulder (behind your fighter, W walks at the opponent and A / D circle him).", "Style pick before the bout: arrow keys choose · Enter settles · 1–5 settle on that card at once.", "Controller move: left stick. High / low guard: left / right shoulder (independent of punches).", "Controller face classes: bottom jab · right straight · left hook · top uppercut.", "Controller face hand: hold D-pad left for left hand or D-pad right for right hand, then press a face punch; otherwise punches use the right hand. A direction used for a punch is consumed and does not evade.", "Controller modifiers: left trigger body · right trigger power.", - "Controller actions: left stick press clinch · right stick press switch stance · hold right trigger + right stick press to taunt · D-pad up weave · D-pad down pull · tap and release D-pad left/right to slip; while down, D-pad left/right performs the private get-up rhythm immediately.", + "Controller actions: left stick press clinch · right stick press switch stance · hold right trigger + right stick press to taunt · D-pad up weave · D-pad down pull · tap and release D-pad left/right to slip; while down, D-pad left/right presses that get-up side at once.", "Controller fouls: View/Back low blow · Menu/Start headbutt.", "Controller style pick: D-pad or left stick to choose · bottom face button settles.", "Right-stick gesture: horizontal 0–22.5° hook · 22.5–45° jab · 45–70° straight · 70–90° uppercut; left/right direction selects hand.", diff --git a/web/hands/src/input/gamepad.test.ts b/web/hands/src/input/gamepad.test.ts index 538d0f44..f70ae0b5 100644 --- a/web/hands/src/input/gamepad.test.ts +++ b/web/hands/src/input/gamepad.test.ts @@ -11,7 +11,7 @@ const poll = (input: GamepadInput): void => { (input as unknown as { poll(): voi describe("gamepad semantic parity", () => { it("documents delayed slip release, consumed face chords, and immediate get-up exactly", () => { expect(CONTROL_HELP).toContain("Controller face hand: hold D-pad left for left hand or D-pad right for right hand, then press a face punch; otherwise punches use the right hand. A direction used for a punch is consumed and does not evade."); - expect(CONTROL_HELP).toContain("Controller actions: left stick press clinch · right stick press switch stance · hold right trigger + right stick press to taunt · D-pad up weave · D-pad down pull · tap and release D-pad left/right to slip; while down, D-pad left/right performs the private get-up rhythm immediately."); + expect(CONTROL_HELP).toContain("Controller actions: left stick press clinch · right stick press switch stance · hold right trigger + right stick press to taunt · D-pad up weave · D-pad down pull · tap and release D-pad left/right to slip; while down, D-pad left/right presses that get-up side at once."); expect(ACTION_KEYS.KeyM).toEqual({ kind: "taunt" }); }); diff --git a/web/hands/src/input/input.ts b/web/hands/src/input/input.ts index 582d6726..d735cdb7 100644 --- a/web/hands/src/input/input.ts +++ b/web/hands/src/input/input.ts @@ -42,6 +42,8 @@ export class InputController { /** `touchShown` keeps the touch controls on screen, inert, while input is off (the rest, a pause). */ setActive(active: boolean, touchShown = active): void { this.keyboard.setEnabled(active); this.gamepad.setEnabled(active); this.touch?.setEnabled(active, touchShown); } setKnockdown(value: boolean): void { this.gamepad.setKnockdown(value); this.touch?.setKnockdown(value); } + /** The get-up side to press now, which the touch pads light. */ + setGetUpPrompt(side: "get_up_left" | "get_up_right" | null): void { this.touch?.setGetUpPrompt(side); } onAction(listener: ((action: SemanticAction) => void) | null): void { this.actions.setListener(listener); } /** A power modifier is held on any device (Alt or Option, the POWER pad, the right trigger): the next punch is a power punch. */ get powerHeld(): boolean { return this.keyboard.powerHeld || this.gamepad.powerHeld || this.touch?.powerHeld === true; } diff --git a/web/hands/src/input/touch.test.ts b/web/hands/src/input/touch.test.ts index bacc62ac..1d3e2df4 100644 --- a/web/hands/src/input/touch.test.ts +++ b/web/hands/src/input/touch.test.ts @@ -1,6 +1,6 @@ import { SharedActionIntent } from "./action-buffer"; import { ACTION_KEYS } from "./bindings"; -import { TouchInput } from "./touch"; +import { TouchInput, getUpPadRects } from "./touch"; const pointer = (type: string, target: Element, init: { pointerId?: number; clientX?: number; clientY?: number }): void => { const event = new MouseEvent(type, { bubbles: true, cancelable: true, clientX: init.clientX ?? 0, clientY: init.clientY ?? 0 }) as MouseEvent & { pointerId: number }; @@ -56,13 +56,33 @@ describe("touch controls", () => { pointer("pointerup", zone, { pointerId: 3 }); expect(touch.frame().moveX).toBe(0); + // Down, the punch pads give way to one pair of get-up pads, LEFT and RIGHT, the side to press lit. touch.setKnockdown(true); - pointer("pointerdown", jab, { clientX: 190 }); - expect(actions.drain(4)).toEqual([{ kind: "get_up_right", id: "c4" }]); + touch.setGetUpPrompt("get_up_right"); + const [left, right] = [...container.querySelectorAll("[data-getup-side]")]; + expect(right!.classList.contains("wanted")).toBe(true); + expect(left!.classList.contains("wanted")).toBe(false); + pointer("pointerdown", right!, {}); + pointer("pointerdown", left!, {}); + expect(actions.drain(4)).toEqual([{ kind: "get_up_right", id: "c4" }, { kind: "get_up_left", id: "c5" }]); + touch.setKnockdown(false); + expect(right!.classList.contains("wanted")).toBe(false); touch.destroy(); expect(container.querySelector(".touch-controls")).toBeNull(); }); + it("puts the get-up pads under the thumbs: across the bottom upright, in the two corners on its side", () => { + const upright = getUpPadRects(390, 844); + expect(upright.left.x + upright.left.width).toBeLessThanOrEqual(195); + expect(upright.right.x).toBeGreaterThanOrEqual(195); + expect(upright.right.x + upright.right.width).toBeLessThanOrEqual(390 - 12); + expect(upright.left.y + upright.left.height).toBeLessThanOrEqual(844 - 112); + const flat = getUpPadRects(844, 390); + expect(flat.left.x).toBe(12); + expect(flat.right.x + flat.right.width).toBe(844 - 12); + expect(flat.left.y + flat.left.height).toBeLessThanOrEqual(390 - 112); + }); + it("gives phone players the slips, weave, pull and clinch as the keyboard's actions, inert while down or off", () => { const container = document.createElement("div"); document.body.append(container); diff --git a/web/hands/src/input/touch.ts b/web/hands/src/input/touch.ts index 8b239570..25ead12c 100644 --- a/web/hands/src/input/touch.ts +++ b/web/hands/src/input/touch.ts @@ -6,9 +6,33 @@ import type { HeldDefense, InputFrame, MovementKind, PunchClass } from "../types * half of the activity is a floating joystick for footwork; the right side * carries four punch pads whose left or right half selects the hand, hold * modifiers for body shots and power, hold guards, and a row of evasions and - * the clinch. During a knockdown the pads become the get-up rhythm buttons. + * the clinch. During a knockdown they give way to one pair of large get-up + * pads across the bottom, the side to press lit (getUpPadRects). */ +export interface PadRect { readonly x: number; readonly y: number; readonly width: number; readonly height: number } +/** The get-up pads' labels, which the get-up panel's instruction names. */ +export const GET_UP_PAD_LABELS: Readonly> = { get_up_left: "◀ LEFT", get_up_right: "RIGHT ▶" }; +/** How far the get-up pads stand off the bottom: above the plates' guard and poise bars. */ +const GET_UP_PADS_BOTTOM = 118; + +/** + * Where the two get-up pads go on a screen this size, in CSS pixels: one pair across the bottom above the plates, + * LEFT under the left thumb and RIGHT under the right. Upright they share the width; on its side they take the two + * corners and leave the middle to the get-up panel. + */ +export function getUpPadRects(width: number, height: number): { readonly left: PadRect; readonly right: PadRect } { + if (width <= height) { + const padWidth = (width - 36) / 2; + const y = height - GET_UP_PADS_BOTTOM - 96; + return { left: { x: 12, y, width: padWidth, height: 96 }, right: { x: 24 + padWidth, y, width: padWidth, height: 96 } }; + } + const padWidth = Math.min(220, Math.round(width * 0.24)); + const padHeight = Math.max(72, Math.min(110, height - GET_UP_PADS_BOTTOM - 120)); + const y = height - GET_UP_PADS_BOTTOM - padHeight; + return { left: { x: 12, y, width: padWidth, height: padHeight }, right: { x: width - 12 - padWidth, y, width: padWidth, height: padHeight } }; +} + export function coarsePointer(): boolean { try { if (window.matchMedia?.("(pointer: coarse)").matches) return true; @@ -41,6 +65,7 @@ export class TouchInput { private readonly stickKnob: HTMLElement; private readonly pads: HTMLButtonElement[] = []; private readonly moves: HTMLButtonElement[] = []; + private readonly getUpPads: HTMLButtonElement[] = []; private stickPointer: number | null = null; private stickOrigin = { x: 0, y: 0 }; private moveX = 0; @@ -67,13 +92,15 @@ export class TouchInput {
${PUNCH_PADS.map((pad) => ``).join("")}
-`; + +
${(["get_up_left", "get_up_right"] as const).map((side) => ``).join("")}
`; container.append(this.root); this.stickZone = this.root.querySelector("[data-stick]")!; this.stickBase = this.root.querySelector("[data-stick-base]")!; this.stickKnob = this.root.querySelector("[data-stick-knob]")!; this.pads.push(...this.root.querySelectorAll("[data-punch]")); this.moves.push(...this.root.querySelectorAll("[data-move]")); + this.getUpPads.push(...this.root.querySelectorAll("[data-getup-side]")); this.bind(); } @@ -109,16 +136,19 @@ export class TouchInput { zone.addEventListener("pointerup", release); zone.addEventListener("pointercancel", release); + for (const pad of this.getUpPads) { + pad.addEventListener("pointerdown", (event) => { + if (!this.enabled || !this.knockdown) return; + event.preventDefault(); + this.sharedActions.push("touch", { kind: pad.dataset.getupSide === "get_up_left" ? "get_up_left" : "get_up_right" }); + }); + } for (const pad of this.pads) { pad.addEventListener("pointerdown", (event) => { if (!this.enabled) return; event.preventDefault(); const rect = pad.getBoundingClientRect(); const hand = event.clientX - rect.left < rect.width / 2 ? "left" : "right"; - if (this.knockdown) { - this.sharedActions.push("touch", { kind: hand === "left" ? "get_up_left" : "get_up_right" }); - return; - } const punchClass = pad.dataset.punch as PunchClass; this.sharedActions.push("touch", { kind: "punch", hand, class: punchClass, target: this.body ? "body" : "head", power: this.power ? "power" : "normal" }); pad.classList.add("pressed"); @@ -199,12 +229,28 @@ export class TouchInput { if (this.knockdown === value) return; this.knockdown = value; this.root.classList.toggle("knockdown", value); - for (const [index, pad] of this.pads.entries()) { - const label = pad.querySelector(".touch-pad-label"); - if (label !== null) label.textContent = value ? (index % 2 === 0 ? "GET UP" : "RHYTHM") : PUNCH_PADS[index]!.label; + if (value) { + this.placeGetUpPads(); + window.addEventListener("resize", this.placeGetUpPads); + } else { + window.removeEventListener("resize", this.placeGetUpPads); + this.setGetUpPrompt(null); } } + private readonly placeGetUpPads = (): void => { + const rects = getUpPadRects(this.root.clientWidth || window.innerWidth, this.root.clientHeight || window.innerHeight); + for (const [index, pad] of this.getUpPads.entries()) { + const rect = index === 0 ? rects.left : rects.right; + Object.assign(pad.style, { left: `${rect.x}px`, top: `${rect.y}px`, width: `${rect.width}px`, height: `${rect.height}px` }); + } + }; + + /** Lights the get-up pad for the side to press now; the other stays dim. */ + setGetUpPrompt(side: "get_up_left" | "get_up_right" | null): void { + for (const pad of this.getUpPads) pad.classList.toggle("wanted", this.knockdown && side === pad.dataset.getupSide); + } + /** * Off and hidden outside a bout. Through the rest and pauses the controls stay shown, dimmed: a * thumb resting on the stick or a hold button counts from the first frame after the bell. @@ -237,6 +283,7 @@ export class TouchInput { destroy(): void { this.reset(); + window.removeEventListener("resize", this.placeGetUpPads); this.root.remove(); } } diff --git a/web/hands/src/interpolation.ts b/web/hands/src/interpolation.ts index 23d5245d..9f9f2342 100644 --- a/web/hands/src/interpolation.ts +++ b/web/hands/src/interpolation.ts @@ -93,6 +93,15 @@ export class SnapshotBuffer { return this.needs[0]?.ticks ?? 0; } latest(): EngineSnapshot | null { return this.snapshots.at(-1) ?? null; } + /** + * The newest snapshot's tick run on to `nowMs` at the tick rate, fractional: the server clock as the earliest arrivals + * showed it, a downlink behind the server. + */ + clockTick(nowMs: number): number { + const latest = this.latest(); + if (latest === null) return 0; + return this.offsetTicks === null ? latest.tick : (nowMs * this.tickRate) / 1000 + this.offsetTicks; + } /** Fractional tick to present at `nowMs`, clamped to the buffered range. */ renderTick(nowMs: number): number { const latest = this.latest(); diff --git a/web/hands/src/lab/model-lab.ts b/web/hands/src/lab/model-lab.ts index 386a0857..19673bf8 100644 --- a/web/hands/src/lab/model-lab.ts +++ b/web/hands/src/lab/model-lab.ts @@ -51,7 +51,7 @@ const base = (): Draft => ({ action: null, action_hand: null, action_target: null, action_power: null, action_id: null, action_key: null, action_start_tick: 0, action_startup_ticks: 0, action_active_ticks: 0, action_recovery_ticks: 0, action_contact_tick: null, queued_actions: 0, clinch_startup_ticks: 0, clinch_ticks: 0, is_foul_recovery_target: false, taunt_ticks: 0, corner_choice: null, - get_up_prompt: null, get_up_meter: 0, get_up_required: 0, get_up_count: 0, get_up_window_start_tick: 0, get_up_window_end_tick: 0, + get_up_prompt: null, get_up_meter: 0, get_up_required: 0, get_up_count: 0, get_up_window_start_tick: 0, get_up_window_end_tick: 0, get_up_next_prompt: null, last_input_sequence: -1, injuries: [], blood_volume: 1000, }); diff --git a/web/hands/src/manifest.ts b/web/hands/src/manifest.ts index 78286f2a..0830ffd9 100644 --- a/web/hands/src/manifest.ts +++ b/web/hands/src/manifest.ts @@ -112,9 +112,30 @@ export const COUNT_TICKS = knockdownRules.count_ticks; /** The engine caps head trauma here and stops a bout at the third knockdown. */ const HEAD_TRAUMA_LIMIT = 1400; const KNOCKDOWN_LIMIT = 3; -/** The fewest get-up presses the engine asks for, and the most: three knockdowns on a head beaten to the cap. */ +/** + * The fewest get-up presses the engine reports, for a fighter on his feet who has never been down and has no head + * trauma, and the most: three knockdowns on a head beaten to the cap. + */ export const GET_UP_REQUIRED_MIN = knockdownRules.get_up_base; export const GET_UP_REQUIRED_MAX = knockdownRules.get_up_base + KNOCKDOWN_LIMIT * knockdownRules.get_up_per_knockdown + Math.floor(HEAD_TRAUMA_LIMIT / knockdownRules.get_up_trauma_divisor); +/** + * The get-up prompts, as the engine scores them: one on each number of the count from `firstCount`, its beat the tick + * the number changes on; `zoneTicks` either side of the beat is in time and `perfectTicks` either side perfect, and a + * press up to `lateTicks` after the zone is late rather than the next prompt's. What each verdict does to the meter, + * and what the meter must reach: `base`, `perKnockdown` for each knockdown, one more for each `traumaDivisor` of head trauma. + */ +export const GET_UP = { + firstCount: knockdownRules.get_up_first_count, + zoneTicks: knockdownRules.get_up_zone_ticks, + perfectTicks: knockdownRules.get_up_perfect_ticks, + lateTicks: knockdownRules.get_up_late_ticks, + good: knockdownRules.get_up_good, + perfect: knockdownRules.get_up_perfect, + wrong: knockdownRules.get_up_wrong, + base: knockdownRules.get_up_base, + perKnockdown: knockdownRules.get_up_per_knockdown, + traumaDivisor: knockdownRules.get_up_trauma_divisor, +} as const; /** A stunned fighter's footwork, as a share of his speed. */ export const STUNNED_SPEED_PERCENT = manifestJson.stun.moving_speed_percent; /** A punch the fighter cannot pay for in full is thrown tired: this much slower to land and to recover. */ diff --git a/web/hands/src/protocol.test.ts b/web/hands/src/protocol.test.ts index 9c32c92a..6f19d606 100644 --- a/web/hands/src/protocol.test.ts +++ b/web/hands/src/protocol.test.ts @@ -110,18 +110,22 @@ describe(`strict protocol v${PROTOCOL_VERSION}`, () => { }); it("accepts exact fighter-domain boundaries and the private get-up sentinel", () => { const base = snapshot(); - const lower = { ...base.fighters[0], x: -462, y: -462, facing: -1, velocity_x: -7, velocity_y: -7, maximum_stamina: 330, stamina: 0, poise: 0, get_up_required: 45 }; + const lower = { ...base.fighters[0], x: -462, y: -462, facing: -1, velocity_x: -7, velocity_y: -7, maximum_stamina: 330, stamina: 0, poise: 0, get_up_required: GET_UP_REQUIRED_MIN, get_up_next_prompt: "get_up_left" }; const upper = { ...base.fighters[1], x: 462, y: 462, facing: 1, velocity_x: 7, velocity_y: 7, maximum_stamina: 1000, stamina: 1000, poise: 600, get_up_required: GET_UP_REQUIRED_MAX }; - expect(decodeServerFrame(JSON.stringify({ version: PROTOCOL_VERSION, type: "snapshot", payload: { ...base, fighters: [lower, upper] } }))).toMatchObject({ type: "snapshot", payload: { fighters: [{ get_up_required: 45 }, { get_up_required: GET_UP_REQUIRED_MAX }] } }); + expect(decodeServerFrame(JSON.stringify({ version: PROTOCOL_VERSION, type: "snapshot", payload: { ...base, fighters: [lower, upper] } }))).toMatchObject({ type: "snapshot", payload: { fighters: [{ get_up_required: GET_UP_REQUIRED_MIN, get_up_next_prompt: "get_up_left" }, { get_up_required: GET_UP_REQUIRED_MAX, get_up_next_prompt: null }] } }); const redactedOpponent = { ...upper, get_up_required: 0 }; - expect(decodeServerFrame(JSON.stringify({ version: PROTOCOL_VERSION, type: "snapshot", payload: { ...base, fighters: [lower, redactedOpponent] } }))).toMatchObject({ payload: { fighters: [{ get_up_required: 45 }, { get_up_required: 0 }] } }); + expect(decodeServerFrame(JSON.stringify({ version: PROTOCOL_VERSION, type: "snapshot", payload: { ...base, fighters: [lower, redactedOpponent] } }))).toMatchObject({ payload: { fighters: [{ get_up_required: GET_UP_REQUIRED_MIN }, { get_up_required: 0 }] } }); + // A fighter on his feet is sent what a knockdown would ask of him now: with no knockdowns, his head trauma's share alone. + const hurtStanding = { ...base.fighters[0], get_up_required: 1 }; + expect(decodeServerFrame(JSON.stringify({ version: PROTOCOL_VERSION, type: "snapshot", payload: { ...base, fighters: [hurtStanding, base.fighters[1]] } }))).toMatchObject({ payload: { fighters: [{ get_up_required: 1 }, {}] } }); }); it.each([ ["x below", "x", -463], ["x above", "x", 463], ["y below", "y", -463], ["y above", "y", 463], ["zero facing", "facing", 0], ["velocity x fraction", "velocity_x", 6.5], ["velocity y fraction", "velocity_y", -6.5], ["maximum stamina below", "maximum_stamina", 329], ["maximum stamina above", "maximum_stamina", 1001], ["poise below", "poise", -1], ["poise above", "poise", 601], - ["get-up gap start", "get_up_required", 1], ["get-up gap end", "get_up_required", GET_UP_REQUIRED_MIN - 1], ["get-up above", "get_up_required", GET_UP_REQUIRED_MAX + 1], + ["get-up below", "get_up_required", -1], ["get-up above", "get_up_required", GET_UP_REQUIRED_MAX + 1], + ["next get-up side unknown", "get_up_next_prompt", "taunt"], ["next get-up side missing", "get_up_next_prompt", undefined], ])("rejects %s fighter output", (_name, field, value) => { const base = snapshot(); const changed = { ...base.fighters[0], [field]: value }; diff --git a/web/hands/src/protocol.ts b/web/hands/src/protocol.ts index 9ebf1c7a..efdae57f 100644 --- a/web/hands/src/protocol.ts +++ b/web/hands/src/protocol.ts @@ -147,7 +147,7 @@ function fighter(value: unknown): FighterSnapshot { "action_startup_ticks", "action_active_ticks", "action_recovery_ticks", "action_contact_tick", "queued_actions", "clinch_startup_ticks", "clinch_ticks", "is_foul_recovery_target", "taunt_ticks", "corner_choice", "get_up_prompt", "get_up_meter", "get_up_required", "get_up_count", - "get_up_window_start_tick", "get_up_window_end_tick", "last_input_sequence", "injuries", "blood_volume", + "get_up_window_start_tick", "get_up_window_end_tick", "get_up_next_prompt", "last_input_sequence", "injuries", "blood_volume", ]); const action = o.action === null ? null : oneOf(o.action, classes, "action"); const actionHand = o.action_hand === null ? null : oneOf(o.action_hand, hands, "action hand"); @@ -159,6 +159,7 @@ function fighter(value: unknown): FighterSnapshot { if ([actionId, actionKey].some((part) => part === null) !== [actionId, actionKey].every((part) => part === null)) throw new ProtocolError("partial action instance"); if (actionId !== null && action === null) throw new ProtocolError("action instance without class"); const prompt = o.get_up_prompt === null ? null : oneOf(o.get_up_prompt, ["get_up_left", "get_up_right"] as const, "get-up prompt"); + const nextPrompt = o.get_up_next_prompt === null ? null : oneOf(o.get_up_next_prompt, ["get_up_left", "get_up_right"] as const, "next get-up prompt"); const maximumStamina = integer(o.maximum_stamina, "maximum_stamina", 330, 1000); const stamina = integer(o.stamina, "stamina", 0, maximumStamina); const getUpRequired = integer(o.get_up_required, "get_up_required", 0, GET_UP_REQUIRED_MAX); @@ -189,6 +190,7 @@ function fighter(value: unknown): FighterSnapshot { corner_choice: o.corner_choice === null ? null : oneOf(o.corner_choice, cornerChoices, "corner choice"), get_up_prompt: prompt, get_up_meter: integer(o.get_up_meter, "get_up_meter", 0, 256), get_up_required: getUpRequired, get_up_count: integer(o.get_up_count, "get_up_count", 0, 10), get_up_window_start_tick: integer(o.get_up_window_start_tick, "get_up_window_start_tick"), get_up_window_end_tick: integer(o.get_up_window_end_tick, "get_up_window_end_tick"), + get_up_next_prompt: nextPrompt, last_input_sequence: integer(o.last_input_sequence, "last_input_sequence", -1), injuries: injuries(o.injuries), blood_volume: integer(o.blood_volume, "blood_volume", 0, BLOOD_VOLUME), }; diff --git a/web/hands/src/render/caption.test.ts b/web/hands/src/render/caption.test.ts index eefde44b..f1597c19 100644 --- a/web/hands/src/render/caption.test.ts +++ b/web/hands/src/render/caption.test.ts @@ -1,5 +1,6 @@ import { readFileSync } from "node:fs"; import { fighter, mockHudContext, publicPlayers, snapshot } from "../test/fixtures"; +import { getUpPadRects } from "../input/touch"; import type { MatchPhase } from "../types"; import { cardMetrics, captionSlot, drawCaption, splitLine, type CaptionScene } from "./caption"; import type { BroadcastLine, Caption } from "./commentary"; @@ -150,11 +151,8 @@ describe("caption placement", () => { }); it("keeps a downed player's get-up panel clear of the get-up pads and his thumbs on them", () => { - // While he is down only the punch pads show (style.css), as the get-up pads: as Edge lays them out, 190 x 118 - // at the foot of the block, or 188 x 92 on a screen on its side 350 px tall or less; 8 px round them for thumbs. - const getUpPads = (width: number, height: number) => (width > height && height <= 350 - ? { left: width - 200 - 8, right: width - 12 + 8, top: height - 204 - 8, bottom: height - 112 + 8 } - : { left: width - 202 - 8, right: width - 12 + 8, top: height - 236 - 8, bottom: height - 118 + 8 }); + // While he is down the touch controls are the two get-up pads (getUpPadRects); 8 px round them for thumbs. + const getUpPads = (width: number, height: number) => Object.values(getUpPadRects(width, height)).map((pad) => ({ left: pad.x - 8, right: pad.x + pad.width + 8, top: pad.y - 8, bottom: pad.y + pad.height + 8 })); const named = Object.fromEntries(publicPlayers.map((player) => [player.id, { ...player, name: player.id === "one" ? "Azure Vector" : "Crimson Geometry" }])); for (const [width, height] of PHONES) { const fills: Array<{ x: number; y: number; w: number; h: number; style: string }> = []; @@ -175,11 +173,12 @@ describe("caption placement", () => { expect(panels, where).toHaveLength(1); const panel = panels[0]!; const meter = fills.find((fill) => fill.style === "rgba(2,4,9,0.9)")!; - const pads = getUpPads(width, height); - for (const box of [panel, meter]) expect(box.x + box.w <= pads.left || box.x >= pads.right || box.y + box.h <= pads.top || box.y >= pads.bottom, `${where}: ${JSON.stringify(box)} at the get-up pads`).toBe(true); + for (const pads of getUpPads(width, height)) { + for (const box of [panel, meter]) expect(box.x + box.w <= pads.left || box.x >= pads.right || box.y + box.h <= pads.top || box.y >= pads.bottom, `${where}: ${JSON.stringify(box)} at the get-up pads`).toBe(true); + } // On the screen, under the top bar and above the plates' guard and poise bars. expect(panel.x >= 12 && panel.x + panel.w <= width - 12 && panel.y >= 54 && panel.y + panel.h <= height - 112, `${where}: ${JSON.stringify(panel)}`).toBe(true); - for (const prompt of ["COUNT 3", "←", "NOW!"]) { + for (const prompt of ["3", "←", "NOW"]) { const text = texts.find((candidate) => candidate.text === prompt && candidate.y > panel.y); expect(text !== undefined && text.x > panel.x && text.x < panel.x + panel.w && text.y < panel.y + panel.h, `${where}: ${prompt} in the panel`).toBe(true); } diff --git a/web/hands/src/render/hud.ts b/web/hands/src/render/hud.ts index bb78ea66..9fbde248 100644 --- a/web/hands/src/render/hud.ts +++ b/web/hands/src/render/hud.ts @@ -1,4 +1,7 @@ -import { EYE_SHUT_TRAUMA, GUARD_BLOCK_MINIMUM, GUARD_REARM } from "../manifest"; +import { COUNT_TICKS, EYE_SHUT_TRAUMA, GET_UP, GUARD_BLOCK_MINIMUM, GUARD_REARM } from "../manifest"; +import { getUpLeadIn, getUpRequirement, getUpView, type GetUpSide, type GetUpVerdict, type GetUpView } from "../getup"; +import { GET_UP_KEYS } from "../input/bindings"; +import { GET_UP_PAD_LABELS, getUpPadRects } from "../input/touch"; import { BLOOD_VOLUME, FINISH_TICKS, bloodStage, deathLabel, fatalityFor, fatalityLabel, fatalityOf, injuryKind, injuryLabel, type DeathCause, type InjuryId, type InjuryKind } from "../injuries"; import { isDebut, recordLine } from "../record"; import { styleTag } from "../styles"; @@ -573,34 +576,243 @@ export function topPanel(width: number, height: number, touch = false): PanelRec return { x: right - panelWidth, y, width: panelWidth, height: panelHeight }; } -/** The downed viewer's get-up panel: the count, the rhythm prompt and its meter. */ -const GET_UP_PANEL = { width: 380, height: 150 } as const; +/** The get-up panel's full size, and the least height it is squeezed to on a short screen. */ +const GET_UP_PANEL = { width: 560, height: 360, shortest: 150 } as const; /** The plates' guard and poise bars, with their labels, come this far up from the bottom. */ const PLATE_BARS_TOP = 84 + 12 + 16; /** * Where the downed viewer's get-up panel goes: under the knockdown headline and above the plates' guard and poise - * bars. While he is down the touch pads show only the get-up pads (style.css), and the panel keeps clear of them - * and of the thumbs on them: above them on a phone held upright, left of them on its side. Where there is too - * little room under the headline it moves up over it, and on a narrow screen on its side over the round card, - * whose clock stands still through the count. + * bars. While he is down the touch controls are the two get-up pads (getUpPadRects), and the panel keeps clear of + * them: above them on a phone held upright, between them on its side. Where there is too little room under the + * headline it moves up over it, and on a narrow screen on its side over the round card, whose clock stands still + * through the count. On a short screen it gives up height, down to its shortest. */ export function getUpPanel(width: number, height: number, touch = false): PanelRect { - const pads = touchPadsFor(width, height); - const getUpPadsTop = height - pads.bottom - pads.grid; + const pads = touch ? getUpPadRects(width, height) : null; const upright = width <= height; - const bottom = touch && upright ? Math.min(height - PLATE_BARS_TOP, getUpPadsTop - 8) : height - PLATE_BARS_TOP; - const y = Math.max(56, Math.min(Math.max(height * 0.24, headlineBaseline(height, width < 640) + 34), bottom - GET_UP_PANEL.height)); - let panelWidth = Math.min(GET_UP_PANEL.width, width - 24); - let right = width / 2 + panelWidth / 2; - if (touch && !upright && y + GET_UP_PANEL.height > getUpPadsTop) { - const limit = width - TOUCH_PADS.reach; - if (right > limit) { - panelWidth = Math.min(panelWidth, limit - 12); - right = limit; + const bottom = pads !== null && upright ? Math.min(height - PLATE_BARS_TOP, pads.left.y - 8) : height - PLATE_BARS_TOP; + const room = pads !== null && !upright ? pads.right.x - pads.left.x - pads.left.width - 24 : width - 24; + const panelHeight = Math.min(GET_UP_PANEL.height, Math.max(GET_UP_PANEL.shortest, bottom - 56)); + const y = Math.max(56, Math.min(Math.max(height * 0.24, headlineBaseline(height, width < 640) + 34), bottom - panelHeight)); + const panelWidth = Math.min(GET_UP_PANEL.width, room); + return { x: width / 2 - panelWidth / 2, y, width: panelWidth, height: panelHeight }; +} + +const VERDICT_LOOK: Readonly> = { + perfect: { word: "PERFECT", color: "#ffd24a" }, + good: { word: "GOOD", color: "#7dffa8" }, + early: { word: "EARLY", color: "#8fc3ff" }, + late: { word: "LATE", color: "#ffad5c" }, + wrong: { word: "WRONG SIDE", color: "#ff6b6b" }, +}; +/** How long the last press's verdict stays up, and the meter marks what it did. */ +export const GET_UP_VERDICT_MS = 1100; +/** The target's radius, and how far out the closing ring starts a count before the beat, at the panel's full size. */ +const TARGET_RADIUS = 44; +const RING_TRAVEL = 64; +const ORDINALS = ["", "1st", "2nd", "3rd"]; +const GET_UP_ARROWS: Readonly> = { get_up_left: "←", get_up_right: "→" }; +/** The target as the ring reaches it: green while a press would be in time, gold at the perfect middle, else plain. */ +const TARGET_LOOK = { + plain: { ring: "#ffffff", disc: "#16233a", arrow: "#fff4cf" }, + good: { ring: "#7dffa8", disc: "#1d6a3f", arrow: "#e4ffee" }, + perfect: { ring: "#ffd24a", disc: "#7a5a08", arrow: "#fff8dc" }, +} as const; + +function ring(ctx: CanvasRenderingContext2D, x: number, y: number, radius: number): void { + ctx.beginPath(); + ctx.arc(x, y, radius, 0, Math.PI * 2); +} + +/** + * The downed viewer's get-up panel. The side to press now is the largest thing on it: an arrow in a target that a + * ring closes on, reaching it on the beat, the ring and arrow turning green while a press would be in time and gold at + * its perfect middle. The next side is small and dim beside it. Then the count with a pip for each number, the last + * press's verdict, one line naming the control, and the meter as presses still needed. With motion reduced the ring + * still closes and changes colour, but nothing flashes or pops. + */ +function drawGetUpPanel(ctx: CanvasRenderingContext2D, panel: PanelRect, view: GetUpView, motion: boolean): void { + const { x, y, width, height } = panel; + // The count row scales with the panel's height; the lines at the foot keep their size, and the target takes the + // room between, with the verdict beside it where there is room and under it where there is not. + const s = height / GET_UP_PANEL.height; + const row = (offset: number): number => y + offset * s; + const instructionY = y + height - 40; + const laneTop = row(52); + const laneScale = (bottom: number): number => Math.min(s, (bottom - laneTop) / 2 / (TARGET_RADIUS + RING_TRAVEL)); + const besideScale = laneScale(instructionY - 26); + const beside = width - 16 - (28 + 2 * (TARGET_RADIUS + RING_TRAVEL) * besideScale + 54 * besideScale + 16) >= 150; + const laneBottom = beside ? instructionY - 26 : instructionY - 54; + const lane = beside ? besideScale : laneScale(laneBottom); + const age = view.verdict === null ? Infinity : view.nowMs - view.verdict.atMs; + const verdict = age < GET_UP_VERDICT_MS ? view.verdict : null; + const look = verdict === null ? null : VERDICT_LOOK[verdict.detail]; + ctx.save(); + ctx.fillStyle = "rgba(3,6,12,0.88)"; + ctx.fillRect(x, y, width, height); + ctx.strokeStyle = motion && look !== null && age < 220 ? look.color : "rgba(246,213,122,0.5)"; + ctx.lineWidth = 2; + ctx.strokeRect(x + 2, y + 2, width - 4, height - 4); + + ctx.textAlign = "left"; + ctx.fillStyle = "#ffd77a"; + // The referee's first word is "one": before it the slot says what the panel is for. + if (view.count >= 1) { + ctx.font = "800 13px Inter, system-ui, sans-serif"; + ctx.fillText("COUNT", x + 18, row(36)); + ctx.font = `900 ${Math.round(40 * Math.max(0.75, s))}px Inter, system-ui, sans-serif`; + ctx.fillText(String(view.count), x + 76, row(42)); + } else { + ctx.font = `900 ${Math.round(32 * Math.max(0.75, s))}px Inter, system-ui, sans-serif`; + ctx.fillText("GET UP!", x + 18, row(42)); + } + for (let number = 1; number <= 10; number += 1) { + ring(ctx, x + width - 22 - (10 - number) * 14, row(24), 5); + const colour = number === 10 ? "#ff6b6b" : "#ffd77a"; + if (number <= view.count) { + ctx.fillStyle = colour; + ctx.fill(); + } else { + ctx.strokeStyle = number === 10 ? colour : "rgba(210,220,235,0.55)"; + ctx.lineWidth = 1.5; + ctx.stroke(); + } + } + ctx.textAlign = "right"; + ctx.fillStyle = "#aebbd0"; + ctx.font = "700 11px Inter, system-ui, sans-serif"; + ctx.fillText(view.count >= 10 ? "TEN" : `${10 - view.count} LEFT TO TEN`, x + width - 16, row(46)); + + const target = TARGET_RADIUS * lane; + const travel = RING_TRAVEL * lane; + const tx = beside ? x + 28 + target + travel : x + width / 2 - 26 * lane; + const ty = (laneTop + laneBottom) / 2; + const speed = travel / COUNT_TICKS; + const prompt = view.prompt; + let state = ""; + let stateColour = "#c8d3e6"; + let now = false; + ctx.textAlign = "center"; + if (view.risen || prompt === null) { + ring(ctx, tx, ty, target); + ctx.fillStyle = view.risen ? "#1d6a3f" : "#1a2130"; + ctx.fill(); + ctx.fillStyle = view.risen ? "#7dffa8" : "#6f7d94"; + ctx.font = `900 ${Math.round(30 * lane)}px Inter, system-ui, sans-serif`; + ctx.fillText(view.risen ? "UP" : "–", tx, ty + 11 * lane); + state = view.risen ? "ON YOUR FEET" : "NO MORE PROMPTS"; + stateColour = view.risen ? "#7dffa8" : "#c8d3e6"; + } else { + const toBeat = prompt.beat - view.pressTick; + const zone = GET_UP.zoneTicks + 0.5; + const waiting = view.pressTick < getUpLeadIn(prompt.beat) - 0.5; + now = !waiting && Math.abs(toBeat) <= zone; + const colours = !now ? TARGET_LOOK.plain : Math.abs(toBeat) <= GET_UP.perfectTicks + 0.5 ? TARGET_LOOK.perfect : TARGET_LOOK.good; + ctx.lineWidth = zone * 2 * speed; + ctx.strokeStyle = now ? "rgba(125,255,168,0.6)" : "rgba(125,255,168,0.22)"; + ring(ctx, tx, ty, target); + ctx.stroke(); + ctx.lineWidth = (GET_UP.perfectTicks + 0.5) * 2 * speed; + ctx.strokeStyle = "rgba(255,210,74,0.75)"; + ring(ctx, tx, ty, target); + ctx.stroke(); + ring(ctx, tx, ty, target - 6 * lane); + ctx.fillStyle = colours.disc; + ctx.fill(); + ctx.fillStyle = colours.arrow; + ctx.font = `900 ${Math.round(64 * lane)}px Inter, system-ui, sans-serif`; + ctx.fillText(GET_UP_ARROWS[prompt.side], tx, ty + 22 * lane); + if (waiting) { + ctx.setLineDash([6, 7]); + ctx.lineWidth = 2.5; + ctx.strokeStyle = "rgba(200,211,230,0.45)"; + ring(ctx, tx, ty, target + travel); + ctx.stroke(); + ctx.setLineDash([]); + state = "GET READY"; + } else if (toBeat >= -zone - GET_UP.lateTicks) { + ctx.lineWidth = Math.max(3, 5 * lane); + ctx.strokeStyle = colours.ring; + ring(ctx, tx, ty, Math.max(4, target + Math.min(COUNT_TICKS, toBeat) * speed)); + ctx.stroke(); + state = now ? "NOW" : toBeat > 0 ? "WAIT FOR IT" : "TOO LATE"; + stateColour = now ? colours.ring : toBeat > 0 ? "#eaf1ff" : "#ffad5c"; + } + if (prompt.next !== null) { + const nx = tx + target + travel + 36 * lane; + ctx.globalAlpha = 0.5; + ctx.setLineDash([3, 3]); + ctx.lineWidth = 1.5; + ctx.strokeStyle = "#aebbd0"; + ring(ctx, nx, ty, 18 * lane); + ctx.stroke(); + ctx.setLineDash([]); + ctx.fillStyle = "#aebbd0"; + ctx.font = `700 ${Math.round(22 * lane)}px Inter, system-ui, sans-serif`; + ctx.fillText(GET_UP_ARROWS[prompt.next], nx, ty + 8 * lane); + ctx.font = "700 10px Inter, system-ui, sans-serif"; + ctx.fillText("NEXT", nx, ty + 18 * lane + 12); + ctx.globalAlpha = 1; } } - return { x: right - panelWidth, y, width: panelWidth, height: GET_UP_PANEL.height }; + + // The verdict gives way once the ring is in the next zone: that moment matters more. + const column = beside ? tx + target + travel + 54 * lane + 16 : x + 16; + const columnWidth = x + width - 16 - column; + const centre = column + columnWidth / 2; + const amount = verdict === null ? "" : verdict.amount === 0 ? "no score" : `${verdict.amount > 0 ? "+" : "−"}${Math.abs(verdict.amount)}`; + if (look !== null && !(now && age > 200)) { + const pop = motion && age < 160 ? 1 + 0.2 * (1 - age / 160) : 1; + ctx.save(); + ctx.translate(centre, beside ? ty : instructionY - 30); + ctx.scale(pop, pop); + ctx.fillStyle = look.color; + fitted(ctx, beside ? look.word : `${look.word} ${amount}`, 0, 0, columnWidth, 900, beside ? 32 : 26, 13); + ctx.restore(); + if (beside) { + ctx.fillStyle = look.color; + ctx.font = "800 20px Inter, system-ui, sans-serif"; + ctx.fillText(amount, centre, ty + 28); + } + } else if (state !== "") { + ctx.fillStyle = stateColour; + fitted(ctx, state, centre, beside ? ty + 10 : instructionY - 30, columnWidth, 900, beside ? 28 : 24, 12); + } + + const side = prompt?.side ?? null; + const line = view.risen + ? "Up before ten: take the count, then box" + : side === null + ? "The count runs on to ten" + : `${view.touch ? `Tap ${GET_UP_PAD_LABELS[side]}` : `Press ${GET_UP_KEYS[side]}`} as the ring closes · one press a count`; + ctx.fillStyle = "#eaf1ff"; + fitted(ctx, line, x + width / 2, instructionY, width - 32, 800, 20, 11); + + const required = Math.max(1, view.required); + const filled = Math.max(0, Math.min(required, view.meter)); + const left = Math.max(0, required - view.meter); + const gained = verdict !== null && verdict.amount > 0 ? verdict.amount : 0; + const lost = verdict !== null && verdict.amount < 0 ? -verdict.amount : 0; + const pip = Math.min(24, (width - 40 - 96) / required); + ctx.fillStyle = "rgba(2,4,9,0.9)"; + ctx.fillRect(x + 16, y + height - 33, pip * required + 2, 16); + for (let index = 0; index < required; index += 1) { + if (index < filled) ctx.fillStyle = index >= filled - gained ? "#ffd24a" : "#3ccf78"; + else ctx.fillStyle = index < filled + lost ? "rgba(255,107,107,0.75)" : "rgba(210,220,235,0.16)"; + ctx.fillRect(x + 18 + index * pip, y + height - 31, Math.max(2, pip - 3), 12); + } + ctx.textAlign = "right"; + ctx.fillStyle = left === 0 ? "#7dffa8" : "#eaf1ff"; + ctx.font = "800 15px Inter, system-ui, sans-serif"; + ctx.fillText(left === 0 ? "UP!" : `${left} MORE`, x + width - 16, y + height - 20); + const parts = getUpRequirement(view.knockdowns, view.head); + const why = `${view.required} to get up: ${ORDINALS[view.knockdowns] ?? `${view.knockdowns}th`} knockdown ${parts.knockdowns}${parts.head > 0 ? ` + head damage ${parts.head}` : ""} · PERFECT counts ${GET_UP.perfect}`; + ctx.textAlign = "left"; + ctx.fillStyle = "#93a3bd"; + ctx.font = "600 10px Inter, system-ui, sans-serif"; + ctx.fillText(fit(ctx, why, width - 32), x + 16, y + height - 6); + ctx.restore(); } function centerPanel(ctx: CanvasRenderingContext2D, panel: PanelRect, title: string, subtitle: string): void { @@ -983,6 +1195,8 @@ export function drawHud( finishTarget: string | null = null, /** False with motion reduced: the blood bars and the FINISH HIM banner hold still. */ motion = true, + /** The downed viewer's get-up panel on the press clock (getUpView); without one it is drawn from the snapshot. */ + getUpFrame: GetUpView | null = null, ): void { ctx.save(); const scale = hudScale(width, height); @@ -1070,7 +1284,7 @@ export function drawHud( const clock = `${Math.floor(seconds / 60)}:${String(seconds % 60).padStart(2, "0")}`; // A downed viewer's get-up panel takes the room it needs from the knockdown headline, and on a narrow screen on // its side from the round card too, whose clock stands still through the count. - const getUp = snapshot.phase === "knockdown" && replayLabel === null && snapshot.fighters.some((fighter) => fighter.player_id === viewerId && fighter.is_downed) ? getUpPanel(width, height, touch) : null; + const getUp = snapshot.phase === "knockdown" && replayLabel === null && (getUpFrame?.risen === true || snapshot.fighters.some((fighter) => fighter.player_id === viewerId && fighter.is_downed)) ? getUpPanel(width, height, touch) : null; const cardCovered = getUp !== null && compact && getUp.y < 54 + 58; if (final === null && !cardCovered) roundCard(ctx, width / 2, compact ? 54 : height - 84, clock, `ROUND ${snapshot.round_number}`, snapshot.phase === "complete" ? "FINAL" : snapshot.phase.replace("_", " ").toUpperCase()); // Only a connection slow enough to feel is worth the broadcast screen; Settings, Diagnostics always shows it. @@ -1145,7 +1359,7 @@ export function drawHud( const viewer = snapshot.fighters.find((fighter) => fighter.player_id === viewerId); // The referee's first word is "one", a second after the fighter lands. const count = Math.max(...snapshot.fighters.map((fighter) => fighter.get_up_count)); - if (viewer?.is_downed !== true) { + if (viewer?.is_downed !== true && getUpFrame?.risen !== true) { if (count >= 1) { ctx.save(); ctx.textAlign = "center"; @@ -1157,51 +1371,8 @@ export function drawHud( ctx.fillText(`COUNT ${count}`, width / 2, headline + COUNT_BELOW_HEADLINE); ctx.restore(); } - } else { - const { x, y, width: panelWidth, height: panelHeight } = getUp ?? getUpPanel(width, height, touch); - const centre = x + panelWidth / 2; - ctx.fillStyle = "rgba(3,6,12,0.88)"; - ctx.fillRect(x, y, panelWidth, panelHeight); - ctx.strokeStyle = "rgba(246,213,122,0.5)"; - ctx.lineWidth = 2; - ctx.strokeRect(x + 2, y + 2, panelWidth - 4, panelHeight - 4); - ctx.textAlign = "center"; - ctx.fillStyle = "#ffd77a"; - ctx.font = "800 30px Inter, system-ui, sans-serif"; - ctx.fillText(count >= 1 ? `COUNT ${count}` : "GET UP!", centre, y + 40); - const prompt = viewer?.is_downed === true ? viewer.get_up_prompt : null; - if (prompt !== null && prompt !== undefined && viewer !== undefined) { - const inWindow = snapshot.tick >= viewer.get_up_window_start_tick && snapshot.tick <= viewer.get_up_window_end_tick; - const arrow = prompt === "get_up_left" ? "←" : "→"; - if (inWindow) { - ctx.fillStyle = "#ffe9a8"; - ctx.font = "900 64px Inter, system-ui, sans-serif"; - ctx.fillText(arrow, centre - 90, y + 106); - ctx.fillStyle = "#7dffa8"; - ctx.font = "900 34px Inter, system-ui, sans-serif"; - ctx.fillText("NOW!", centre + 62, y + 100); - } else { - ctx.fillStyle = "#8fa3c8"; - ctx.font = "800 30px Inter, system-ui, sans-serif"; - ctx.fillText(`GET READY ${arrow}`, centre, y + 98); - } - const meterWidth = panelWidth - 60; - const ratio = Math.max(0, Math.min(1, viewer.get_up_meter / Math.max(1, viewer.get_up_required))); - ctx.fillStyle = "rgba(2,4,9,0.9)"; - ctx.fillRect(x + 30, y + 120, meterWidth, 16); - const meterFill = ctx.createLinearGradient(x + 30, 0, x + 30 + meterWidth, 0); - meterFill.addColorStop(0, "#7dffa8"); - meterFill.addColorStop(1, "#2ea860"); - ctx.fillStyle = meterFill; - ctx.fillRect(x + 30, y + 120, meterWidth * ratio, 16); - ctx.strokeStyle = "rgba(210,220,235,0.5)"; - ctx.lineWidth = 1; - ctx.strokeRect(x + 29.5, y + 119.5, meterWidth + 1, 17); - } else { - ctx.fillStyle = "#c8d3e6"; - ctx.font = "600 14px Inter, system-ui, sans-serif"; - ctx.fillText(fit(ctx, "Waiting for your rhythm instruction…", panelWidth - 24), centre, y + 100); - } + } else if (viewer !== undefined) { + drawGetUpPanel(ctx, getUp ?? getUpPanel(width, height, touch), getUpFrame ?? getUpView(viewer, snapshot.tick, 0, null, null, touch, false), motion); } } // The replay of the punch that killed him runs back through the phase; the banner is the live bout's. diff --git a/web/hands/src/render/render.test.ts b/web/hands/src/render/render.test.ts index 2ae6e607..3c40dbab 100644 --- a/web/hands/src/render/render.test.ts +++ b/web/hands/src/render/render.test.ts @@ -624,18 +624,19 @@ describe("viewport and broadcast HUD", () => { const base = snapshot(); const opponentPrompt = { ...base, phase: "knockdown" as const, fighters: [base.fighters[0], { ...base.fighters[1], is_downed: true, get_up_prompt: "get_up_left" as const, get_up_count: 4 }] as const }; drawHud(ctx, 800, 600, opponentPrompt, players, "one", null, 0); - expect(texts.join(" ")).not.toContain("NOW!"); - expect(texts.join(" ")).not.toContain("GET READY"); + expect(texts).not.toContain("NOW"); + expect(texts).not.toContain("GET READY"); expect(texts).toContain("COUNT 4"); expect(texts.join(" ")).not.toContain("Waiting for"); texts.length = 0; - const ownPrompt = { ...opponentPrompt, fighters: [{ ...base.fighters[0], is_downed: true, get_up_prompt: "get_up_right" as const, get_up_meter: 2, get_up_required: 4 }, opponentPrompt.fighters[1]] as const }; + // Before the first prompt's lead-in the side shows, with nothing to press yet. + const ownPrompt = { ...opponentPrompt, fighters: [{ ...base.fighters[0], is_downed: true, get_up_prompt: "get_up_right" as const, get_up_next_prompt: "get_up_left" as const, get_up_meter: 2, get_up_required: 4, get_up_window_start_tick: 37, get_up_window_end_tick: 43 }, opponentPrompt.fighters[1]] as const }; drawHud(ctx, 800, 600, ownPrompt, players, "one", null, 0); - expect(texts.join(" ")).toContain("GET READY →"); + expect(texts).toEqual(expect.arrayContaining(["GET READY", "→", "←", "NEXT", "2 MORE"])); texts.length = 0; const inWindow = { ...ownPrompt, fighters: [{ ...base.fighters[0], is_downed: true, get_up_prompt: "get_up_right" as const, get_up_meter: 2, get_up_required: 4, get_up_window_start_tick: 5, get_up_window_end_tick: 15 }, opponentPrompt.fighters[1]] as const }; drawHud(ctx, 800, 600, inWindow, players, "one", null, 0); - expect(texts.join(" ")).toContain("NOW!"); + expect(texts).toContain("NOW"); }); it("renders broadcast plates, round card and totals", () => { diff --git a/web/hands/src/render/renderer.ts b/web/hands/src/render/renderer.ts index 9a9c0275..ac2c71f2 100644 --- a/web/hands/src/render/renderer.ts +++ b/web/hands/src/render/renderer.ts @@ -4,6 +4,7 @@ import { RenderPass } from "three/examples/jsm/postprocessing/RenderPass.js"; import { UnrealBloomPass } from "three/examples/jsm/postprocessing/UnrealBloomPass.js"; import { OutputPass } from "three/examples/jsm/postprocessing/OutputPass.js"; import { ShaderPass } from "three/examples/jsm/postprocessing/ShaderPass.js"; +import { GetUpTracker, getUpView, type GetUpJudgement, type GetUpSide, type GetUpVerdict, type GetUpView } from "../getup"; import { EventDeduplicator, SnapshotBuffer } from "../interpolation"; import { coarsePointer } from "../input/touch"; import { FIGHTER_RADIUS, REST_CORNER_OFFSET, RING_CORNER_REACH, RING_HALF_HEIGHT, RING_HALF_WIDTH, punchTiming, styleTiming } from "../manifest"; @@ -310,6 +311,8 @@ const UNIMPACTFUL_KINDS = new Set(["parry", "body_collapse", "eye_shut"]); /** The contacts of the player's own punch shown as soon as they arrive (see push). */ const OWN_EARLY_CONTACTS = new Set(["hit", "counter_hit", "block", "perfect_block"]); const BOX_CALLOUT_SECONDS = 1.2; +/** How long the get-up panel stays up, full, once the viewer has beaten the count. */ +const GET_UP_RISEN_MS = 1500; /** The referee's id in the engine's events: a punch that lands on him, his bleeding, his fall. */ export const REFEREE_ID = "referee"; /** @@ -905,7 +908,7 @@ function blankFighter(playerId: string): FighterSnapshot { action: null, action_hand: null, action_target: null, action_power: null, action_id: null, action_key: null, action_start_tick: 0, action_startup_ticks: 0, action_active_ticks: 0, action_recovery_ticks: 0, action_contact_tick: null, queued_actions: 0, clinch_startup_ticks: 0, clinch_ticks: 0, is_foul_recovery_target: false, taunt_ticks: 0, corner_choice: null, - get_up_prompt: null, get_up_meter: 0, get_up_required: 0, get_up_count: 0, get_up_window_start_tick: 0, get_up_window_end_tick: 0, + get_up_prompt: null, get_up_meter: 0, get_up_required: 0, get_up_count: 0, get_up_window_start_tick: 0, get_up_window_end_tick: 0, get_up_next_prompt: null, last_input_sequence: -1, injuries: [], blood_volume: 1000, }; } @@ -1143,7 +1146,7 @@ function refereeSnapshot(position: THREE.Vector3, yaw: number, velocity: THREE.V action: null, action_hand: null, action_target: null, action_power: null, action_id: null, action_key: null, action_start_tick: 0, action_startup_ticks: 0, action_active_ticks: 0, action_recovery_ticks: 0, action_contact_tick: null, queued_actions: 0, clinch_startup_ticks: 0, clinch_ticks: 0, is_foul_recovery_target: false, taunt_ticks: 0, corner_choice: null, - get_up_prompt: null, get_up_meter: 0, get_up_required: 0, get_up_count: 0, get_up_window_start_tick: 0, get_up_window_end_tick: 0, + get_up_prompt: null, get_up_meter: 0, get_up_required: 0, get_up_count: 0, get_up_window_start_tick: 0, get_up_window_end_tick: 0, get_up_next_prompt: null, last_input_sequence: -1, injuries: [], blood_volume: 1000, }; const focus: FighterSnapshot = { ...base, player_id: "focus", x: simX + Math.sin(yaw) * 300, y: simY - Math.cos(yaw) * 300 }; @@ -1319,6 +1322,14 @@ export class FightRenderer { private readonly bloomPass: UnrealBloomPass; private readonly avatars = new Avatars(); private inputLatencyMs: number | null = null; + private readonly getUp = new GetUpTracker(); + /** The tick the viewer last went down on, which puts the count on the press clock. */ + private getUpKnockTick: number | null = null; + private getUpRisenAt = -Infinity; + private getUpBeatCount = -1; + private getUpFrame: GetUpView | null = null; + /** Called on each number of the count on the press clock while the viewer is down: the beat a press is timed to. */ + onGetUpBeat: ((count: number) => void) | null = null; /** The slow-connection warning is up (lagWarning). */ private lagWarned = false; private frameMsAverage = 16.7; @@ -2468,6 +2479,48 @@ export class FightRenderer { return { position: this.burstStump.position, quaternion: this.burstStump.quaternion, rim, across: this.burstStump.across }; } + /** The fractional tick a press made now would be scored on at the server: the snapshot clock plus the measured round trip. */ + private pressTick(now: number): number { + return this.buffer.clockTick(now) + ((this.inputLatencyMs ?? 60) / 1000) * this.simulation.tick_rate; + } + + /** Judges the downed viewer's get-up press at once on the press clock, or null if it does nothing; the server's verdict follows. */ + pressGetUp(side: GetUpSide): GetUpJudgement | null { + const latest = this.buffer.latest(); + const fighter = latest?.fighters.find((candidate) => candidate.player_id === this.viewerId); + if (latest?.phase !== "knockdown" || fighter?.is_downed !== true) return null; + const now = this.manualClock ? this.lastManualTime : performance.now(); + return this.getUp.press(side, fighter, this.pressTick(now), now); + } + + /** The downed viewer's get-up panel as last drawn, or null while he is not down. */ + get getUpView(): GetUpView | null { + return this.getUpFrame; + } + + /** The server's verdicts on the viewer's get-up presses so far, by kind. */ + get getUpVerdicts(): Readonly> { + return this.getUp.counts; + } + + private updateGetUp(): void { + const latest = this.buffer.latest(); + const fighter = latest?.fighters.find((candidate) => candidate.player_id === this.viewerId); + const now = this.manualClock ? this.lastManualTime : performance.now(); + const risen = now - this.getUpRisenAt < GET_UP_RISEN_MS; + if (latest?.phase !== "knockdown" || fighter === undefined || this.replay !== null || !(fighter.is_downed || risen)) { + this.getUpFrame = null; + this.getUpBeatCount = -1; + return; + } + const frame = getUpView(fighter, this.pressTick(now), now, this.getUp, this.getUpKnockTick, this.touchControls, risen); + if (!risen && frame.count !== this.getUpBeatCount) { + if (this.getUpBeatCount >= 0 && frame.count >= 1 && frame.count <= 9) this.onGetUpBeat?.(frame.count); + this.getUpBeatCount = frame.count; + } + this.getUpFrame = frame; + } + predictAction(action: SemanticAction): void { const latest = this.buffer.latest(); if (latest === null || this.viewerId === null || this.replay !== null) return; @@ -2516,7 +2569,8 @@ export class FightRenderer { } push(snapshot: EngineSnapshot): void { - if (!this.buffer.push(snapshot, this.manualClock ? this.lastManualTime : performance.now())) return; + const arrived = this.manualClock ? this.lastManualTime : performance.now(); + if (!this.buffer.push(snapshot, arrived)) return; const accepted = this.dedupe.accept(snapshot.events); this.acknowledgeActions(snapshot, accepted); this.history.push(snapshot); @@ -2553,6 +2607,13 @@ export class FightRenderer { if (event.kind === "finish_him") this.finishTargetId = event.target_id; if (event.kind === "fatality" || event.kind === "death") this.noteDeath(event, accepted, snapshot); this.movement.observe(event, this.viewerId); + if (event.kind === "knockdown" && event.target_id === this.viewerId) { + this.getUp.reset(); + this.getUpKnockTick = event.tick; + this.getUpRisenAt = -Infinity; + } + if (event.kind === "get_up_input" && event.actor_id === this.viewerId) this.getUp.confirm(event, arrived); + if (event.kind === "get_up" && event.actor_id === this.viewerId) this.getUpRisenAt = arrived; } this.commentary.observe(snapshot, accepted, this.players, this.simulation.tick_rate, this.frameSeconds); // The player's own punch, thrown on the press's time, has already reached the opponent on screen when the server's word @@ -3226,6 +3287,7 @@ export class FightRenderer { const solid = frame === directed ? nearRopeOpacityFor(Math.max(this.tmpA.z, this.tmpB.z)) : frame.framed === true ? ANNOUNCEMENT_ROPE_OPACITY : 1; this.ring.setNearRopeOpacity(this.ring.nearRopeOpacity() + (solid - this.ring.nearRopeOpacity()) * (1 - Math.exp(-6 * dt))); + this.updateGetUp(); if (render) { this.composer.render(); // The cut-in of a breaking bone costs a second pass over the scene: a client at the bottom of the scale goes without. @@ -3811,7 +3873,7 @@ export class FightRenderer { if (!settings.reducedMotion) this.effects.drawLens(ctx, viewport.width, viewport.height); const death = this.deaths[0] ?? this.deaths[1]; const replayed = this.replay === null ? null : this.replay.plan.impact.kind === "referee_down" ? "REFEREE DOWN" : death === null ? "KNOCKOUT REPLAY" : fatalityOf(death) !== null ? "FATALITY REPLAY" : "DEATH REPLAY"; - drawHud(ctx, viewport.width, viewport.height, snapshot, this.players, this.viewerId, this.frameSeconds >= this.finalRevealAt ? this.final : null, this.reconnectMs, this.simulation.tick_rate, this.roundStats, replayed, this.lagWarned ? this.inputLatencyMs : null, this.frameSeconds < this.roundCalloutUntil ? `ROUND ${this.roundCalloutRound}` : this.eventCallout !== null && this.frameSeconds < this.eventCallout.until ? this.eventCallout.text : null, this.roundClock.ticks(snapshot), (player) => this.avatars.get(player), this.lastKnockdown?.knockdown.target_id ?? null, this.touchControls && snapshot.fighters.some((fighter) => fighter.player_id === this.viewerId), this.powerHeld?.() === true, death, this.finishTargetId, !settings.reducedMotion); + drawHud(ctx, viewport.width, viewport.height, snapshot, this.players, this.viewerId, this.frameSeconds >= this.finalRevealAt ? this.final : null, this.reconnectMs, this.simulation.tick_rate, this.roundStats, replayed, this.lagWarned ? this.inputLatencyMs : null, this.frameSeconds < this.roundCalloutUntil ? `ROUND ${this.roundCalloutRound}` : this.eventCallout !== null && this.frameSeconds < this.eventCallout.until ? this.eventCallout.text : null, this.roundClock.ticks(snapshot), (player) => this.avatars.get(player), this.lastKnockdown?.knockdown.target_id ?? null, this.touchControls && snapshot.fighters.some((fighter) => fighter.player_id === this.viewerId), this.powerHeld?.() === true, death, this.finishTargetId, !settings.reducedMotion, this.getUpFrame); this.drawCaption(ctx, viewport.width, viewport.height, snapshot); } diff --git a/web/hands/src/style.css b/web/hands/src/style.css index 12e93bc1..d1f19b60 100644 --- a/web/hands/src/style.css +++ b/web/hands/src/style.css @@ -7,4 +7,5 @@ .corner{position:absolute;z-index:3;left:50%;bottom:max(124px,calc(env(safe-area-inset-bottom) + 112px));transform:translateX(-50%);display:grid;gap:8px;width:min(660px,calc(100vw - 24px));padding:10px 12px 9px;background:#07101aeb;border:1px solid #f1cc7259;border-radius:3px;box-shadow:0 10px 30px #0009;text-align:center}.corner[hidden]{display:none}.corner-title{margin:0;color:#f1cc72;font-weight:800;font-size:12px;letter-spacing:.18em}.corner-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.corner-choices button{display:grid;grid-template-columns:auto 1fr;align-items:center;column-gap:9px;row-gap:2px;padding:8px 10px;text-align:left;color:#eaf1ff;background:#172334;border:1px solid #ffffff2e;border-radius:3px;cursor:pointer;font:inherit}.corner-choices kbd{grid-row:span 2;display:grid;place-items:center;width:26px;height:26px;border-radius:3px;background:#0b1520;border:1px solid #ffffff38;color:#f1cc72;font:800 13px ui-monospace,monospace}.corner-choices strong{font-size:13px}.corner-choices span{font-size:11px;color:#aebbd0}.corner-choices button:hover:not(:disabled){border-color:#f1cc72aa}.corner-choices button:disabled{cursor:default;opacity:.42}.corner-choices button[data-picked]{opacity:1;border-color:#f1cc72;background:#272515;box-shadow:inset 0 0 0 1px #f1cc72}.corner-status{margin:0;font-size:12px;color:#d7e0ee}@media(max-width:560px){.corner{bottom:max(112px,calc(env(safe-area-inset-bottom) + 100px));padding:8px 9px}.corner-choices{grid-template-columns:1fr;gap:6px}.corner-choices button{padding:6px 9px}}@media(max-height:460px){.corner{bottom:max(116px,calc(env(safe-area-inset-bottom) + 104px));width:min(600px,calc(100vw - 24px));padding:5px 8px;gap:4px}.corner-title{font-size:10px}.corner-choices{gap:6px}.corner-choices button{padding:4px 7px;column-gap:7px}.corner-choices kbd{width:22px;height:22px;font-size:12px}.corner-choices strong{font-size:12px}.corner-choices span{font-size:10px}.corner-status{font-size:11px}} .cpu-picker{pointer-events:auto;display:grid;justify-items:center;gap:8px;width:min(90vw,500px);padding:10px 12px;background:#07101adf;border:1px solid #ffffff1f;border-radius:3px}.cpu-picker[hidden]{display:none}.cpu-picker p{margin:0;font-size:13px;font-weight:800;letter-spacing:.04em;color:#f1cc72}.cpu-levels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;width:100%}.cpu-levels button{display:grid;align-content:center;gap:3px;min-height:52px;padding:8px 6px;color:#eaf1ff;background:#172334;border:1px solid #ffffff2e;border-radius:3px;cursor:pointer;font:inherit;text-align:center}.cpu-levels button strong{font-size:14px;letter-spacing:.03em}.cpu-levels button span{font-size:11px;line-height:1.25;color:#aebbd0}.cpu-levels button:hover,.cpu-levels button:focus-visible{border-color:#f1cc72;outline:none}@media(max-height:480px){.cpu-picker{gap:5px;padding:6px 10px}.cpu-levels button{min-height:40px;padding:5px 6px;gap:1px}.cpu-levels button strong{font-size:13px}.cpu-levels button span{font-size:10px;line-height:1.15}} .overlay[data-touch-hint]{left:max(12px,env(safe-area-inset-left));transform:none;max-width:min(44vw,300px,calc(100vw - 226px - env(safe-area-inset-left) - env(safe-area-inset-right)));justify-items:start;text-align:left}@media(orientation:landscape){.overlay[data-touch-hint]{max-width:min(44vw,300px,calc(100vw - 360px - env(safe-area-inset-left) - env(safe-area-inset-right)))}}.overlay[data-touch-hint] .hint{font-size:11px;line-height:1.35}.panel h3{margin:12px 0 6px;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#f1cc72}.panel h3:first-of-type{margin-top:4px}details.diagnostics summary{cursor:pointer;font-size:13px;font-weight:700;color:#f1cc72}details.diagnostics[open] summary{margin-bottom:6px} +.touch-getup{display:none;position:absolute;inset:0;pointer-events:none}.knockdown .touch-getup{display:block}.knockdown .touch-pads,.knockdown .touch-stick{display:none}.touch-getup-pad{position:absolute;pointer-events:auto;touch-action:none;border-radius:16px;border:2px solid #ffffff40;background:#1d2a3c;color:#eaf1ff;font:900 22px Inter,system-ui,sans-serif;letter-spacing:.06em;opacity:.4;cursor:pointer}.touch-getup-pad.wanted{opacity:1;background:#23a85c;color:#fff;border-color:#d8ffe6;box-shadow:0 0 0 3px #7dffa8,0 6px 18px #0009} .style-picker{position:absolute;z-index:3;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;gap:10px;width:min(980px,calc(100vw - 24px));max-height:calc(100% - 132px);overflow:auto;padding:12px 14px;background:#07101af2;border:1px solid #f1cc7266;border-radius:3px;box-shadow:0 14px 40px #000b;text-align:center}.style-picker[hidden]{display:none}.style-picker header{display:flex;justify-content:space-between;align-items:baseline;gap:12px}.style-title{margin:0;color:#f1cc72;font-weight:800;font-size:13px;letter-spacing:.18em}.style-clock{margin:0;color:#eaf1ff;font:800 15px ui-monospace,monospace}.style-cards{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.style-cards button{display:grid;grid-template-rows:auto auto 1fr auto;gap:5px;padding:10px;text-align:left;color:#eaf1ff;background:#172334;border:1px solid #ffffff2e;border-radius:3px;cursor:pointer;font:inherit}.style-cards kbd{justify-self:start;display:grid;place-items:center;width:22px;height:22px;border-radius:3px;background:#0b1520;border:1px solid #ffffff38;color:#f1cc72;font:800 12px ui-monospace,monospace}.style-cards strong{font-size:14px}.style-cards span{font-size:11px;line-height:1.35;color:#aebbd0}.style-stats{list-style:none;margin:2px 0 0;padding:0;display:grid;gap:3px}.style-stats li{display:grid;grid-template-columns:66px 1fr;align-items:center;gap:6px}.style-stats small{font-size:9px;letter-spacing:.05em;color:#8fa3c8;text-transform:uppercase}.style-stats i{display:block;height:5px;border-radius:2px;background:linear-gradient(90deg,#f1cc72,#d98a3a)}.style-stats i[data-value="1"]{width:20%}.style-stats i[data-value="2"]{width:40%}.style-stats i[data-value="3"]{width:60%}.style-stats i[data-value="4"]{width:80%}.style-stats i[data-value="5"]{width:100%}.style-cards button:hover:not(:disabled){border-color:#f1cc72aa}.style-cards button:disabled{cursor:default;opacity:.5}.style-cards button[data-chosen]{opacity:1;border-color:#f1cc72;background:#272515;box-shadow:inset 0 0 0 1px #f1cc72}.style-status{margin:0;font-size:12px;color:#d7e0ee}@media(max-width:700px){.style-picker{top:auto;bottom:max(12px,env(safe-area-inset-bottom));transform:translateX(-50%);max-height:calc(100% - 96px);padding:9px 10px}.style-cards{grid-template-columns:1fr 1fr;gap:6px}.style-cards button{grid-template-rows:auto 1fr;padding:8px 9px;gap:3px}.style-cards kbd,.style-stats{display:none}.style-cards strong{font-size:13px}.style-cards span{font-size:11px}.style-cards button:last-child{grid-column:1/-1}}@media(max-height:480px){.style-picker{top:auto;bottom:6px;transform:translateX(-50%);max-height:calc(100% - 60px);padding:6px 9px;gap:5px}.style-cards{grid-template-columns:repeat(5,1fr);gap:5px}.style-cards button{padding:5px 6px;gap:2px}.style-cards span{display:none}.style-cards button:last-child{grid-column:auto}.style-stats{display:grid;gap:1px}.style-stats li{grid-template-columns:52px 1fr}.style-stats small{font-size:8px}} diff --git a/web/hands/src/test/fixtures.ts b/web/hands/src/test/fixtures.ts index 4036ab22..08dac8ba 100644 --- a/web/hands/src/test/fixtures.ts +++ b/web/hands/src/test/fixtures.ts @@ -1,5 +1,5 @@ import { PROTOCOL_VERSION, type EngineSnapshot, type FighterSnapshot, type RefereeSnapshot } from "../types"; -export const fighter = (id: string, x = 0): FighterSnapshot => ({ player_id: id, x, y: 0, facing: id === "one" ? 1 : -1, facing_x: id === "one" ? 1000 : -1000, facing_y: 0, velocity_x: 0, velocity_y: 0, stance: "orthodox", style: "balanced", defense: "none", stamina: 900, maximum_stamina: 1000, conditioning: 850, guard: 650, guard_broken: false, poise: 550, trauma: { head: 0, body: 0, left_eye: 0, right_eye: 0, left_cut: 0, right_cut: 0, swelling: 0, bleeding: 0 }, knockdowns: 0, warnings: 0, deductions: 0, stunned_ticks: 0, is_downed: false, action: null, action_hand: null, action_target: null, action_power: null, action_id: null, action_key: null, action_start_tick: 0, action_startup_ticks: 0, action_active_ticks: 0, action_recovery_ticks: 0, action_contact_tick: null, queued_actions: 0, clinch_startup_ticks: 0, clinch_ticks: 0, is_foul_recovery_target: false, taunt_ticks: 0, corner_choice: null, get_up_prompt: null, get_up_meter: 0, get_up_required: 0, get_up_count: 0, get_up_window_start_tick: 0, get_up_window_end_tick: 0, last_input_sequence: -1, injuries: [], blood_volume: 1000 }); +export const fighter = (id: string, x = 0): FighterSnapshot => ({ player_id: id, x, y: 0, facing: id === "one" ? 1 : -1, facing_x: id === "one" ? 1000 : -1000, facing_y: 0, velocity_x: 0, velocity_y: 0, stance: "orthodox", style: "balanced", defense: "none", stamina: 900, maximum_stamina: 1000, conditioning: 850, guard: 650, guard_broken: false, poise: 550, trauma: { head: 0, body: 0, left_eye: 0, right_eye: 0, left_cut: 0, right_cut: 0, swelling: 0, bleeding: 0 }, knockdowns: 0, warnings: 0, deductions: 0, stunned_ticks: 0, is_downed: false, action: null, action_hand: null, action_target: null, action_power: null, action_id: null, action_key: null, action_start_tick: 0, action_startup_ticks: 0, action_active_ticks: 0, action_recovery_ticks: 0, action_contact_tick: null, queued_actions: 0, clinch_startup_ticks: 0, clinch_ticks: 0, is_foul_recovery_target: false, taunt_ticks: 0, corner_choice: null, get_up_prompt: null, get_up_meter: 0, get_up_required: 0, get_up_count: 0, get_up_window_start_tick: 0, get_up_window_end_tick: 0, get_up_next_prompt: null, last_input_sequence: -1, injuries: [], blood_volume: 1000 }); export const referee = (x = 0, y = 140): RefereeSnapshot => ({ x, y, facing_x: 0, facing_y: -1000, velocity_x: 0, velocity_y: 0, stunned_ticks: 0, alive: true, trauma: { head: 0, body: 0, left_eye: 0, right_eye: 0, left_cut: 0, right_cut: 0, swelling: 0, bleeding: 0 } }); export const snapshot = (tick = 10): EngineSnapshot => ({ tick, phase: "fight", round_number: 1, phase_ticks_remaining: 5000, fighters: [fighter("one", -100), fighter("two", 100)], referee: referee(), events: [], result: null, checksum: "a".repeat(64) }); export const envelope = (tick = 10): Record => ({ version: PROTOCOL_VERSION, type: "snapshot", payload: snapshot(tick) }); @@ -18,6 +18,8 @@ export function mockHudContext(texts: string[], drawn?: DrawnPicture[], arcs?: A clip: () => {}, setTransform: () => {}, scale: () => {}, + translate: () => {}, + setLineDash: () => {}, drawImage: (image: unknown, x: number, y: number, width: number, height: number) => drawn?.push({ image, x, y, width, height }), moveTo: () => {}, lineTo: () => {}, diff --git a/web/hands/src/test/movement-traces.json b/web/hands/src/test/movement-traces.json index fffe2032..e5903682 100644 --- a/web/hands/src/test/movement-traces.json +++ b/web/hands/src/test/movement-traces.json @@ -1 +1 @@ -{"a jab pressed during a hook's recovery while holding back":[{"events":[{"action_id":"one@1","actor_id":"one","amount":0,"blood":0,"detail":"left:hook:head","direction":0,"event_id":1,"kind":"punch_start","target_id":null,"tick":1}],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":1,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":955,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":1},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":2,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":957,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":2},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":3,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":959,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":3},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":4,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":961,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":4},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":5,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":963,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":5},{"events":[{"action_id":"one@1","actor_id":"one","amount":18,"blood":0,"detail":"","direction":0,"event_id":2,"kind":"whiff","target_id":"two","tick":6}],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":6,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":6,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":947,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":6},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":6,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":7,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":949,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":7},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":6,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":8,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":1,"stamina":950,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-5,"velocity_y":0,"warnings":0,"x":46,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":8},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":6,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":9,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":1,"stamina":951,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":40,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":9},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":6,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":10,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":1,"stamina":952,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":34,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":10},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":6,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":11,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":1,"stamina":953,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":28,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":11},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":6,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":12,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":1,"stamina":954,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":22,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":12},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":6,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":13,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":1,"stamina":955,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":17,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":13},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":6,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":14,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":1,"stamina":956,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":11,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":14},{"events":[{"action_id":"one@15","actor_id":"one","amount":0,"blood":0,"detail":"left:jab:head","direction":0,"event_id":3,"kind":"punch_start","target_id":null,"tick":15}],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":995,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":15,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":932,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-1,"velocity_y":0,"warnings":0,"x":9,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":15},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":995,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":16,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":933,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":9,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":16},{"events":[{"action_id":"one@15","actor_id":"one","amount":9,"blood":0,"detail":"","direction":0,"event_id":4,"kind":"whiff","target_id":"two","tick":17}],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":17,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":17,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":925,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":9,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":17},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":17,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":18,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":926,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":9,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":18},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":17,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":19,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":927,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-5,"velocity_y":0,"warnings":0,"x":4,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":19},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":17,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":20,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":928,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-2,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":20},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":17,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":21,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":929,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-8,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":21},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":17,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":22,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":930,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-14,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":22},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":17,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":23,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":933,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-9,"velocity_y":0,"warnings":0,"x":-22,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":23},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":17,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":24,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":936,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-32,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":24},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":17,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":25,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":939,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-42,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":25},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":17,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":26,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":942,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-52,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":26},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":17,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":27,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":945,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-62,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":27},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":17,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":28,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":948,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-72,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":28},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":17,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":29,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":951,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-82,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":29},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":17,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":30,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":954,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-92,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":30},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":17,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":31,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":957,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-102,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":31},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":17,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":32,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":960,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-112,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":32},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":17,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":33,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":963,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-122,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":33},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":17,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":34,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":966,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-132,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":34},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":17,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":35,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":969,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-142,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":35},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":17,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":36,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":972,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-152,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":36},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":17,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":37,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":975,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-162,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":37},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":17,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":38,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":978,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-172,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":38},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":39,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":981,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-182,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":39},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":40,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":984,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-192,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":40},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":41,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":987,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-202,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":41},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":42,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":990,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-212,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":42},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":43,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":993,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-222,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":43},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":44,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":996,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-232,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":44},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":45,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":998,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-242,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":45}],"a jab pressed late in a flinch while holding back":[{"events":[{"action_id":"two@1","actor_id":"two","amount":0,"blood":0,"detail":"left:jab:head","direction":0,"event_id":1,"kind":"punch_start","target_id":null,"tick":1},{"action_id":"one@1","actor_id":"one","amount":0,"blood":0,"detail":"left:hook:head","direction":0,"event_id":2,"kind":"punch_start","target_id":null,"tick":1}],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":1,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":955,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":150,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":1},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":2,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":957,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":150,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":2},{"events":[{"action_id":"two@1","actor_id":"two","amount":43,"blood":14,"detail":"jab:head","direction":-1,"event_id":3,"kind":"counter_hit","target_id":"one","tick":3}],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":3,"maximum_stamina":1000,"player_id":"one","poise":562,"queued_actions":0,"stamina":958,"stance":"orthodox","stunned_ticks":5,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-5,"velocity_y":0,"warnings":0,"x":145,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":3},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":4,"maximum_stamina":1000,"player_id":"one","poise":562,"queued_actions":0,"stamina":959,"stance":"orthodox","stunned_ticks":4,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":139,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":4},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":5,"maximum_stamina":1000,"player_id":"one","poise":562,"queued_actions":1,"stamina":960,"stance":"orthodox","stunned_ticks":3,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":132,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":5},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":6,"maximum_stamina":1000,"player_id":"one","poise":562,"queued_actions":1,"stamina":961,"stance":"orthodox","stunned_ticks":2,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":125,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":6},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":7,"maximum_stamina":1000,"player_id":"one","poise":562,"queued_actions":1,"stamina":962,"stance":"orthodox","stunned_ticks":1,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":118,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":7},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":8,"maximum_stamina":1000,"player_id":"one","poise":563,"queued_actions":1,"stamina":965,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-9,"velocity_y":0,"warnings":0,"x":109,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":8},{"events":[{"action_id":"one@9","actor_id":"one","amount":0,"blood":0,"detail":"left:jab:head","direction":0,"event_id":4,"kind":"punch_start","target_id":null,"tick":9}],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":9,"maximum_stamina":1000,"player_id":"one","poise":563,"queued_actions":0,"stamina":941,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-2,"velocity_y":0,"warnings":0,"x":106,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":9},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":10,"maximum_stamina":1000,"player_id":"one","poise":563,"queued_actions":0,"stamina":942,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-1,"velocity_y":0,"warnings":0,"x":106,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":10},{"events":[{"action_id":"one@9","actor_id":"one","amount":34,"blood":11,"detail":"jab:head","direction":1,"event_id":5,"kind":"hit","target_id":"two","tick":11}],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":11,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":11,"maximum_stamina":1000,"player_id":"one","poise":563,"queued_actions":0,"stamina":943,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":0,"velocity_y":0,"warnings":0,"x":106,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":11},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":11,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":12,"maximum_stamina":1000,"player_id":"one","poise":563,"queued_actions":0,"stamina":944,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":0,"velocity_y":0,"warnings":0,"x":106,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":12},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":11,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":13,"maximum_stamina":1000,"player_id":"one","poise":563,"queued_actions":0,"stamina":945,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-5,"velocity_y":0,"warnings":0,"x":101,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":13},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":11,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":14,"maximum_stamina":1000,"player_id":"one","poise":563,"queued_actions":0,"stamina":946,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":95,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":14},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":11,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":15,"maximum_stamina":1000,"player_id":"one","poise":563,"queued_actions":0,"stamina":947,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":89,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":15},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":11,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":16,"maximum_stamina":1000,"player_id":"one","poise":563,"queued_actions":0,"stamina":948,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":83,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":16},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":11,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":17,"maximum_stamina":1000,"player_id":"one","poise":563,"queued_actions":0,"stamina":951,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-9,"velocity_y":0,"warnings":0,"x":75,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":17},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":11,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":18,"maximum_stamina":1000,"player_id":"one","poise":564,"queued_actions":0,"stamina":954,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":65,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":18},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":11,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":19,"maximum_stamina":1000,"player_id":"one","poise":564,"queued_actions":0,"stamina":957,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":55,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":19},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":11,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":20,"maximum_stamina":1000,"player_id":"one","poise":565,"queued_actions":0,"stamina":960,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":45,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":20},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":11,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":21,"maximum_stamina":1000,"player_id":"one","poise":565,"queued_actions":0,"stamina":963,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":35,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":21},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":11,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":22,"maximum_stamina":1000,"player_id":"one","poise":566,"queued_actions":0,"stamina":966,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":25,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":22},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":11,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":23,"maximum_stamina":1000,"player_id":"one","poise":566,"queued_actions":0,"stamina":969,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":15,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":23},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":11,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":24,"maximum_stamina":1000,"player_id":"one","poise":567,"queued_actions":0,"stamina":972,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":5,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":24},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":11,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":25,"maximum_stamina":1000,"player_id":"one","poise":567,"queued_actions":0,"stamina":975,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-5,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":25},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":11,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":26,"maximum_stamina":1000,"player_id":"one","poise":568,"queued_actions":0,"stamina":978,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-15,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":26},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":11,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":27,"maximum_stamina":1000,"player_id":"one","poise":568,"queued_actions":0,"stamina":981,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-25,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":27},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":11,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":28,"maximum_stamina":1000,"player_id":"one","poise":569,"queued_actions":0,"stamina":984,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-35,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":28},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":11,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":29,"maximum_stamina":1000,"player_id":"one","poise":569,"queued_actions":0,"stamina":987,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-45,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":29},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":11,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":30,"maximum_stamina":1000,"player_id":"one","poise":570,"queued_actions":0,"stamina":990,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-55,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":30},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":11,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":31,"maximum_stamina":1000,"player_id":"one","poise":570,"queued_actions":0,"stamina":993,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-65,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":31},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":11,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":32,"maximum_stamina":1000,"player_id":"one","poise":571,"queued_actions":0,"stamina":996,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-75,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":32},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":33,"maximum_stamina":1000,"player_id":"one","poise":571,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-85,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":33},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":34,"maximum_stamina":1000,"player_id":"one","poise":572,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-95,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":34},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":35,"maximum_stamina":1000,"player_id":"one","poise":572,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-105,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":35},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":36,"maximum_stamina":1000,"player_id":"one","poise":573,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-115,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":36},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":37,"maximum_stamina":1000,"player_id":"one","poise":573,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-125,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":37},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":38,"maximum_stamina":1000,"player_id":"one","poise":574,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":38},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":39,"maximum_stamina":1000,"player_id":"one","poise":574,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-145,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":39},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":40,"maximum_stamina":1000,"player_id":"one","poise":575,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-155,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":40},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":41,"maximum_stamina":1000,"player_id":"one","poise":575,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-165,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":41},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":42,"maximum_stamina":1000,"player_id":"one","poise":576,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-175,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":42},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":43,"maximum_stamina":1000,"player_id":"one","poise":576,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-185,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":43},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":44,"maximum_stamina":1000,"player_id":"one","poise":577,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-195,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":44},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":45,"maximum_stamina":1000,"player_id":"one","poise":577,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-205,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":45}],"a jab thrown holding back":[{"events":[{"action_id":"one@1","actor_id":"one","amount":0,"blood":0,"detail":"left:jab:head","direction":0,"event_id":1,"kind":"punch_start","target_id":null,"tick":1}],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":1,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":977,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":1},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":2,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":979,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":2},{"events":[{"action_id":"one@1","actor_id":"one","amount":9,"blood":0,"detail":"","direction":0,"event_id":2,"kind":"whiff","target_id":"two","tick":3}],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":3,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":972,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":3},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":4,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":974,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":4},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":5,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":975,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-5,"velocity_y":0,"warnings":0,"x":46,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":5},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":6,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":976,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":40,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":6},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":7,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":977,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":34,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":7},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":8,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":978,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":28,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":8},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":9,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":981,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-9,"velocity_y":0,"warnings":0,"x":19,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":9},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":10,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":984,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":10,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":10},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":11,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":987,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":0,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":11},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":12,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":990,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-10,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":12},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":13,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":993,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-20,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":13},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":14,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":996,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-30,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":14},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":15,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-40,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":15},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":16,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":16},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":17,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-60,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":17},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":18,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-70,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":18},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":19,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-80,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":19},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":20,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-90,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":20},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":21,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-100,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":21},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":22,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-110,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":22},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":23,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-120,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":23},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":24,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-130,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":24},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":25,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-140,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":25},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":26,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-150,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":26},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":27,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-160,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":27},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":28,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-170,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":28},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":29,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-180,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":29},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":30,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-190,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":30},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":31,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-200,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":31},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":32,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-210,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":32},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":33,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-220,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":33},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":34,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-230,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":34},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":35,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-240,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":35},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":36,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-250,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":36},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":37,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-260,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":37},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":38,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-270,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":38},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":39,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-280,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":39},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":40,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-290,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":40},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":41,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-300,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":41},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":42,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-310,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":42},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":43,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-320,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":43},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":44,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-330,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":44},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":45,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-340,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":45}],"a jab thrown holding back on two blown knees":[{"events":[{"action_id":"one@1","actor_id":"one","amount":0,"blood":0,"detail":"left:jab:head","direction":0,"event_id":1,"kind":"punch_start","target_id":null,"tick":1}],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":1,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":977,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":1},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":2,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":979,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":2},{"events":[{"action_id":"one@1","actor_id":"one","amount":9,"blood":0,"detail":"","direction":0,"event_id":2,"kind":"whiff","target_id":"two","tick":3}],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":3,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":972,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":3},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":4,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":974,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":4},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":5,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":975,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-3,"velocity_y":0,"warnings":0,"x":48,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":5},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":6,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":976,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-4,"velocity_y":0,"warnings":0,"x":44,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":6},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":7,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":977,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-4,"velocity_y":0,"warnings":0,"x":40,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":7},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":8,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":978,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-4,"velocity_y":0,"warnings":0,"x":36,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":8},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":9,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":981,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":31,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":9},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":10,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":984,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":24,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":10},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":11,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":987,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":18,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":11},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":12,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":990,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":12,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":12},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":13,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":993,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":5,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":13},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":14,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":996,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-1,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":14},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":15,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-8,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":15},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":16,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-14,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":16},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":17,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-20,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":17},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":18,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-27,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":18},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":19,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-33,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":19},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":20,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-40,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":20},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":21,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-46,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":21},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":22,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-52,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":22},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":23,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-59,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":23},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":24,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-65,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":24},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":25,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-72,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":25},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":26,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-78,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":26},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":27,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-84,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":27},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":28,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-91,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":28},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":29,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-97,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":29},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":30,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-104,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":30},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":31,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-110,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":31},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":32,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-116,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":32},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":33,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-123,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":33},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":34,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-129,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":34},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":35,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-136,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":35},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":36,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-142,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":36},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":37,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-148,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":37},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":38,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-155,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":38},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":39,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-161,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":39},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":40,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-167,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":40},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":41,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-174,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":41},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":42,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-180,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":42},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":43,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-187,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":43},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":44,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-193,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":44},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":45,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-199,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":45}],"a slip thrown holding back":[{"events":[{"action_id":null,"actor_id":"one","amount":0,"blood":0,"detail":"slip_left","direction":0,"event_id":1,"kind":"defense","target_id":null,"tick":1}],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"slip_left","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":1,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":990,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":1},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"slip_left","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":2,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":995,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":2},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"slip_left","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":3,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":3},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"slip_left","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":4,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":4},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"slip_left","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":5,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":5},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"slip_left","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":6,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":6},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"slip_left","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":7,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":7},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":8,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-8,"velocity_y":0,"warnings":0,"x":43,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":8},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":9,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-9,"velocity_y":0,"warnings":0,"x":34,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":9},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":10,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":24,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":10},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":11,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":14,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":11},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":12,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":4,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":12},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":13,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-6,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":13},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":14,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-16,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":14},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":15,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-26,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":15},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":16,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-36,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":16},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":17,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-46,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":17},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":18,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-56,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":18},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":19,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-66,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":19},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":20,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-76,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":20},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":21,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-86,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":21},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":22,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-96,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":22},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":23,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-106,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":23},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":24,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-116,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":24},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":25,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-126,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":25},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":26,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-136,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":26},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":27,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-146,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":27},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":28,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-156,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":28},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":29,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-166,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":29},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":30,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-176,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":30},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":31,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-186,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":31},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":32,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-196,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":32},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":33,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-206,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":33},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":34,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-216,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":34},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":35,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-226,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":35},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":36,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-236,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":36},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":37,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-246,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":37},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":38,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-256,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":38},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":39,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-266,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":39},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":40,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-276,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":40},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":41,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-286,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":41},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":42,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-296,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":42},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":43,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-306,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":43},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":44,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-316,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":44},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":45,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-326,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":45}],"flinched mid-hook while holding back":[{"events":[{"action_id":"two@1","actor_id":"two","amount":0,"blood":0,"detail":"left:jab:head","direction":0,"event_id":1,"kind":"punch_start","target_id":null,"tick":1},{"action_id":"one@1","actor_id":"one","amount":0,"blood":0,"detail":"left:hook:head","direction":0,"event_id":2,"kind":"punch_start","target_id":null,"tick":1}],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":1,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":955,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":150,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":1},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":2,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":957,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":150,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":2},{"events":[{"action_id":"two@1","actor_id":"two","amount":43,"blood":14,"detail":"jab:head","direction":-1,"event_id":3,"kind":"counter_hit","target_id":"one","tick":3}],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":3,"maximum_stamina":1000,"player_id":"one","poise":562,"queued_actions":0,"stamina":958,"stance":"orthodox","stunned_ticks":5,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-5,"velocity_y":0,"warnings":0,"x":145,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":3},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":4,"maximum_stamina":1000,"player_id":"one","poise":562,"queued_actions":0,"stamina":959,"stance":"orthodox","stunned_ticks":4,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":139,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":4},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":5,"maximum_stamina":1000,"player_id":"one","poise":562,"queued_actions":0,"stamina":960,"stance":"orthodox","stunned_ticks":3,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":132,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":5},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":6,"maximum_stamina":1000,"player_id":"one","poise":562,"queued_actions":0,"stamina":961,"stance":"orthodox","stunned_ticks":2,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":125,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":6},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":7,"maximum_stamina":1000,"player_id":"one","poise":562,"queued_actions":0,"stamina":962,"stance":"orthodox","stunned_ticks":1,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":118,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":7},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":8,"maximum_stamina":1000,"player_id":"one","poise":563,"queued_actions":0,"stamina":965,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-9,"velocity_y":0,"warnings":0,"x":109,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":8},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":9,"maximum_stamina":1000,"player_id":"one","poise":563,"queued_actions":0,"stamina":968,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":99,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":9},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":10,"maximum_stamina":1000,"player_id":"one","poise":564,"queued_actions":0,"stamina":971,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":89,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":10},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":11,"maximum_stamina":1000,"player_id":"one","poise":564,"queued_actions":0,"stamina":974,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":79,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":11},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":12,"maximum_stamina":1000,"player_id":"one","poise":565,"queued_actions":0,"stamina":977,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":69,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":12},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":13,"maximum_stamina":1000,"player_id":"one","poise":565,"queued_actions":0,"stamina":980,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":59,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":13},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":14,"maximum_stamina":1000,"player_id":"one","poise":566,"queued_actions":0,"stamina":983,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":49,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":14},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":15,"maximum_stamina":1000,"player_id":"one","poise":566,"queued_actions":0,"stamina":986,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":39,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":15},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":16,"maximum_stamina":1000,"player_id":"one","poise":567,"queued_actions":0,"stamina":989,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":29,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":16},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":17,"maximum_stamina":1000,"player_id":"one","poise":567,"queued_actions":0,"stamina":992,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":19,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":17},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":18,"maximum_stamina":1000,"player_id":"one","poise":568,"queued_actions":0,"stamina":995,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":9,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":18},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":19,"maximum_stamina":1000,"player_id":"one","poise":568,"queued_actions":0,"stamina":998,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-1,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":19},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":20,"maximum_stamina":1000,"player_id":"one","poise":569,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-11,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":20},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":21,"maximum_stamina":1000,"player_id":"one","poise":569,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-21,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":21},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":22,"maximum_stamina":1000,"player_id":"one","poise":570,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-31,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":22},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":23,"maximum_stamina":1000,"player_id":"one","poise":570,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-41,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":23},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":24,"maximum_stamina":1000,"player_id":"one","poise":571,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-51,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":24},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":25,"maximum_stamina":1000,"player_id":"one","poise":571,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-61,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":25},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":26,"maximum_stamina":1000,"player_id":"one","poise":572,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-71,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":26},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":27,"maximum_stamina":1000,"player_id":"one","poise":572,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-81,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":27},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":28,"maximum_stamina":1000,"player_id":"one","poise":573,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-91,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":28},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":29,"maximum_stamina":1000,"player_id":"one","poise":573,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-101,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":29},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":30,"maximum_stamina":1000,"player_id":"one","poise":574,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-111,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":30},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":31,"maximum_stamina":1000,"player_id":"one","poise":574,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-121,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":31},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":32,"maximum_stamina":1000,"player_id":"one","poise":575,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-131,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":32},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":33,"maximum_stamina":1000,"player_id":"one","poise":575,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-141,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":33},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":34,"maximum_stamina":1000,"player_id":"one","poise":576,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-151,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":34},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":35,"maximum_stamina":1000,"player_id":"one","poise":576,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-161,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":35},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":36,"maximum_stamina":1000,"player_id":"one","poise":577,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-171,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":36},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":37,"maximum_stamina":1000,"player_id":"one","poise":577,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-181,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":37},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":38,"maximum_stamina":1000,"player_id":"one","poise":578,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-191,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":38},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":39,"maximum_stamina":1000,"player_id":"one","poise":578,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-201,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":39},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":40,"maximum_stamina":1000,"player_id":"one","poise":579,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-211,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":40},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":41,"maximum_stamina":1000,"player_id":"one","poise":579,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-221,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":41},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":42,"maximum_stamina":1000,"player_id":"one","poise":580,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-231,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":42},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":43,"maximum_stamina":1000,"player_id":"one","poise":580,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-241,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":43},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":44,"maximum_stamina":1000,"player_id":"one","poise":581,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-251,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":44},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":45,"maximum_stamina":1000,"player_id":"one","poise":581,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-261,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":45}],"holding back and a guard with no arms left":[{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":1,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-8,"velocity_y":0,"warnings":0,"x":43,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":1},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":2,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-9,"velocity_y":0,"warnings":0,"x":34,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":2},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":3,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":24,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":3},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":4,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":14,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":4},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":5,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":4,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":5},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":6,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-6,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":6},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":7,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-16,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":7},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":8,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-26,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":8},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":9,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-36,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":9},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":10,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-46,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":10},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":11,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-56,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":11},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":12,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-66,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":12},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":13,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-76,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":13},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":14,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-86,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":14},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":15,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-96,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":15},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":16,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-106,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":16},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":17,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-116,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":17},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":18,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-126,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":18},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":19,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-136,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":19},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":20,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-146,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":20},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":21,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-156,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":21},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":22,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-166,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":22},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":23,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-176,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":23},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":24,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-186,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":24},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":25,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-196,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":25},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":26,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-206,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":26},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":27,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-216,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":27},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":28,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-226,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":28},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":29,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-236,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":29},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":960,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":30,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-246,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":30},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":960,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":31,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-256,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":31},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":960,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":32,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-266,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":32},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":960,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":33,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-276,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":33},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":960,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":34,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-286,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":34},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":960,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":35,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-296,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":35},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":960,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":36,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-306,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":36},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":960,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":37,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-316,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":37},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":960,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":38,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-326,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":38},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":960,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":39,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-336,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":39},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":960,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":40,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-346,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":40},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":960,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":41,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-356,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":41},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":960,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":42,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-366,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":42},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":960,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":43,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-376,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":43},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":960,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":44,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-386,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":44},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":960,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":45,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-396,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":45}],"holding back behind a guard":[{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":697,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":1,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-5,"velocity_y":0,"warnings":0,"x":45,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":1},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":694,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":2,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":39,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":2},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":691,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":3,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":32,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":3},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":688,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":4,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":25,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":4},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":685,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":5,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":18,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":5},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":682,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":6,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":11,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":6},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":679,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":7,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":4,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":7},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":676,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":8,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-3,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":8},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":673,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":9,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-10,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":9},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":670,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":10,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-17,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":10},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":667,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":11,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-24,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":11},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":664,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":12,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-31,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":12},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":661,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":13,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-38,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":13},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":658,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":14,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-45,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":14},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":655,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":15,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-52,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":15},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":652,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":16,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-59,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":16},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":649,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":17,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-66,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":17},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":646,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":18,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-73,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":18},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":643,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":19,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-80,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":19},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":640,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":20,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-87,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":20},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":637,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":21,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-94,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":21},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":634,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":22,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-101,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":22},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":631,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":23,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-108,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":23},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":628,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":24,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-115,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":24},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":625,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":25,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-122,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":25},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":622,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":26,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-129,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":26},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":619,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":27,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-136,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":27},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":616,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":28,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-143,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":28},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":613,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":29,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-150,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":29},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":610,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":30,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-157,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":30},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":607,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":31,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-164,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":31},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":604,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":32,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-171,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":32},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":601,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":33,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-178,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":33},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":598,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":34,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-185,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":34},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":595,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":35,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-192,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":35},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":592,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":36,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-199,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":36},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":589,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":37,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-206,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":37},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":586,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":38,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-213,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":38},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":583,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":39,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-220,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":39},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":580,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":40,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-227,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":40},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":577,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":41,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-234,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":41},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":574,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":42,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-241,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":42},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":571,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":43,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-248,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":43},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":568,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":44,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-255,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":44},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":565,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":45,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-262,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":45}],"holding back on a blown knee with his gut open":[{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":1,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-5,"velocity_y":0,"warnings":0,"x":46,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":1},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":2,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":40,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":2},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":3,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":34,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":3},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":4,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":28,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":4},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":5,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":22,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":5},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":6,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":17,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":6},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":7,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":11,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":7},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":8,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":5,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":8},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":9,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-1,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":9},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":10,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-7,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":10},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":11,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-13,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":11},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":12,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-19,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":12},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":13,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-25,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":13},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":14,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-31,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":14},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":15,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-37,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":15},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":16,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-43,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":16},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":17,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-49,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":17},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":18,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-55,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":18},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":19,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-61,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":19},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":20,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-67,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":20},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":21,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-73,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":21},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":22,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-79,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":22},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":23,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-85,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":23},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":24,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-91,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":24},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":25,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-97,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":25},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":26,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-103,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":26},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":27,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-109,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":27},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":28,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-115,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":28},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":29,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-121,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":29},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":988,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":30,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-127,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":30},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":988,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":31,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-133,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":31},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":988,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":32,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-139,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":32},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":988,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":33,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-145,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":33},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":988,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":34,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-151,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":34},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":988,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":35,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-157,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":35},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":988,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":36,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-163,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":36},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":988,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":37,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-169,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":37},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":988,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":38,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-175,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":38},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":988,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":39,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-181,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":39},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":988,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":40,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-187,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":40},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":988,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":41,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-193,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":41},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":988,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":42,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-199,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":42},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":988,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":43,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-205,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":43},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":988,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":44,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-211,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":44},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":988,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":45,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-217,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":45}],"parried while holding back":[{"events":[{"action_id":"one@1","actor_id":"one","amount":0,"blood":0,"detail":"right:straight:head","direction":0,"event_id":1,"kind":"punch_start","target_id":null,"tick":1}],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":null,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":1,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":948,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":1},{"events":[],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":null,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":2,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":950,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":2},{"events":[],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":null,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":3,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":952,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":3},{"events":[],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":null,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":4,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":954,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":4},{"events":[],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":null,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":5,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":956,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":5},{"events":[],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":null,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":6,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":958,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":6},{"events":[],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":null,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":7,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":960,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":7},{"events":[{"action_id":"one@1","actor_id":"two","amount":0,"blood":0,"detail":"","direction":0,"event_id":2,"kind":"perfect_block","target_id":"one","tick":8},{"action_id":"one@1","actor_id":"two","amount":16,"blood":0,"detail":"","direction":0,"event_id":3,"kind":"parry","target_id":"one","tick":8},{"action_id":"one@1","actor_id":"one","amount":13,"blood":4,"detail":"straight:head","direction":1,"event_id":4,"kind":"hit","target_id":"two","tick":8}],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":8,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":8,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":962,"stance":"orthodox","stunned_ticks":16,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":8},{"events":[],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":8,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":9,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":964,"stance":"orthodox","stunned_ticks":15,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":9},{"events":[],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":8,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":10,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":966,"stance":"orthodox","stunned_ticks":14,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":10},{"events":[],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":8,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":11,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":968,"stance":"orthodox","stunned_ticks":13,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":11},{"events":[],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":8,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":12,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":970,"stance":"orthodox","stunned_ticks":12,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":12},{"events":[],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":8,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":13,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":972,"stance":"orthodox","stunned_ticks":11,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":13},{"events":[],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":8,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":14,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":974,"stance":"orthodox","stunned_ticks":10,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":14},{"events":[],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":8,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":15,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":976,"stance":"orthodox","stunned_ticks":9,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":15},{"events":[],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":8,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":16,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":978,"stance":"orthodox","stunned_ticks":8,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":16},{"events":[],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":8,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":17,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":980,"stance":"orthodox","stunned_ticks":7,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":17},{"events":[],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":8,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":18,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":982,"stance":"orthodox","stunned_ticks":6,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":18},{"events":[],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":8,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":19,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":984,"stance":"orthodox","stunned_ticks":5,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":19},{"events":[],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":8,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":20,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":986,"stance":"orthodox","stunned_ticks":4,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":20},{"events":[],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":8,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":21,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":988,"stance":"orthodox","stunned_ticks":3,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":21},{"events":[],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":8,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":22,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":990,"stance":"orthodox","stunned_ticks":2,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":22},{"events":[],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":8,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":23,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":992,"stance":"orthodox","stunned_ticks":1,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":23},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":24,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":995,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-8,"velocity_y":0,"warnings":0,"x":128,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":24},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":25,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":998,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-9,"velocity_y":0,"warnings":0,"x":119,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":25},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":26,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":109,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":26},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":27,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":99,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":27},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":28,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":89,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":28},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":29,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":79,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":29},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":30,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":69,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":30},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":31,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":59,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":31},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":32,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":49,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":32},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":33,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":39,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":33},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":34,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":29,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":34},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":35,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":19,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":35},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":36,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":9,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":36},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":37,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-1,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":37},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":38,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-11,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":38},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":39,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-21,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":39},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":40,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-31,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":40},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":41,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-41,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":41},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":42,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-51,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":42},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":43,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-61,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":43},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":44,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-71,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":44},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":45,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-81,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":45}],"slipped out of a power uppercut's recovery while holding back":[{"events":[{"action_id":"one@1","actor_id":"one","amount":0,"blood":0,"detail":"right:uppercut:head","direction":0,"event_id":1,"kind":"punch_start","target_id":null,"tick":1}],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":null,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":1,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":928,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":1},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":null,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":2,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":930,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":2},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":null,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":3,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":932,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":3},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":null,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":4,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":934,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":4},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":null,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":5,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":936,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":5},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":null,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":6,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":938,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":6},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":null,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":7,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":940,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":7},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":null,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":8,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":942,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":8},{"events":[{"action_id":"one@1","actor_id":"one","amount":33,"blood":0,"detail":"","direction":0,"event_id":2,"kind":"whiff","target_id":"two","tick":9}],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":9,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":994,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":9,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":911,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":9},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":9,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":994,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":10,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":913,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":10},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":9,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":994,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":11,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":915,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":11},{"events":[{"action_id":null,"actor_id":"one","amount":0,"blood":0,"detail":"slip_left","direction":0,"event_id":3,"kind":"defense","target_id":null,"tick":12}],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":9,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"slip_left","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":12,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":905,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":12},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":9,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"slip_left","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":13,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":910,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":13},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":9,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"slip_left","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":14,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":915,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":14},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":9,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"slip_left","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":15,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":920,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":15},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":9,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"slip_left","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":16,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":925,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":16},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":9,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"slip_left","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":17,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":930,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":17},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":9,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"slip_left","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":18,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":935,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":18},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":9,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":19,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":938,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-8,"velocity_y":0,"warnings":0,"x":43,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":19},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":9,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":20,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":941,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-9,"velocity_y":0,"warnings":0,"x":34,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":20},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":9,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":21,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":944,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":24,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":21},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":9,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":22,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":947,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":14,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":22},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":9,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":23,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":950,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":4,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":23},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":9,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":24,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":953,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-6,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":24},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":9,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":25,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":956,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-16,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":25},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":9,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":26,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":959,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-26,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":26},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":9,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":27,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":962,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-36,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":27},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":28,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":965,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-46,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":28},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":29,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":968,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-56,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":29},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":30,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":971,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-66,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":30},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":31,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":974,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-76,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":31},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":32,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":977,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-86,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":32},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":33,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":980,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-96,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":33},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":34,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":983,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-106,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":34},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":35,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":986,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-116,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":35},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":36,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":989,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-126,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":36},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":37,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":992,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-136,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":37},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":38,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":995,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-146,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":38},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":39,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":998,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-156,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":39},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":40,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":998,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-166,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":40},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":41,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":998,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-176,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":41},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":42,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":998,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-186,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":42},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":43,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":998,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-196,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":43},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":44,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":998,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-206,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":44},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":45,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":998,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-216,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":45}],"slipped out of a straight's recovery while holding back":[{"events":[{"action_id":"one@1","actor_id":"one","amount":0,"blood":0,"detail":"right:straight:head","direction":0,"event_id":1,"kind":"punch_start","target_id":null,"tick":1}],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":null,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":1,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":963,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":1},{"events":[],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":null,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":2,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":965,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":2},{"events":[],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":null,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":3,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":967,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":3},{"events":[],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":null,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":4,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":969,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":4},{"events":[{"action_id":"one@1","actor_id":"one","amount":14,"blood":0,"detail":"","direction":0,"event_id":2,"kind":"whiff","target_id":"two","tick":5}],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":5,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":5,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":957,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":5},{"events":[],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":5,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":6,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":959,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":6},{"events":[],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":5,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":7,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":960,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-5,"velocity_y":0,"warnings":0,"x":46,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":7},{"events":[],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":5,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":8,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":961,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":40,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":8},{"events":[{"action_id":null,"actor_id":"one","amount":0,"blood":0,"detail":"slip_left","direction":0,"event_id":3,"kind":"defense","target_id":null,"tick":9}],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":5,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"slip_left","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":9,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":949,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-1,"velocity_y":0,"warnings":0,"x":39,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":9},{"events":[],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":5,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"slip_left","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":10,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":952,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":39,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":10},{"events":[],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":5,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"slip_left","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":11,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":955,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":39,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":11},{"events":[],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":5,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"slip_left","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":12,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":958,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":39,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":12},{"events":[],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":5,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"slip_left","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":13,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":961,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":39,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":13},{"events":[],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":5,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"slip_left","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":14,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":964,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":39,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":14},{"events":[],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":5,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"slip_left","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":15,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":969,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":39,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":15},{"events":[],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":5,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":16,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":972,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-8,"velocity_y":0,"warnings":0,"x":31,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":16},{"events":[],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":5,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":17,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":975,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-9,"velocity_y":0,"warnings":0,"x":22,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":17},{"events":[],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":5,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":18,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":978,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":12,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":18},{"events":[],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":5,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":19,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":981,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":2,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":19},{"events":[],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":5,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":20,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":984,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-8,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":20},{"events":[],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":5,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":21,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":987,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-18,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":21},{"events":[],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":5,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":22,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":990,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-28,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":22},{"events":[],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":5,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":23,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":993,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-38,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":23},{"events":[],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":5,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":24,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":996,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-48,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":24},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":25,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-58,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":25},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":26,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-68,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":26},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":27,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-78,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":27},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":28,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-88,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":28},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":29,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-98,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":29},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":30,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-108,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":30},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":31,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-118,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":31},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":32,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-128,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":32},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":33,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-138,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":33},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":34,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-148,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":34},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":35,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-158,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":35},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":36,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-168,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":36},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":37,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-178,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":37},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":38,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-188,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":38},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":39,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-198,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":39},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":40,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-208,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":40},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":41,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-218,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":41},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":42,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-228,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":42},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":43,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-238,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":43},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":44,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-248,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":44},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_prompt":null,"get_up_required":30,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":45,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-258,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":45}]} +{"a jab pressed during a hook's recovery while holding back":[{"events":[{"action_id":"one@1","actor_id":"one","amount":0,"blood":0,"detail":"left:hook:head","direction":0,"event_id":1,"kind":"punch_start","target_id":null,"tick":1}],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":1,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":955,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":1},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":2,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":957,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":2},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":3,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":959,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":3},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":4,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":961,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":4},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":5,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":963,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":5},{"events":[{"action_id":"one@1","actor_id":"one","amount":18,"blood":0,"detail":"","direction":0,"event_id":2,"kind":"whiff","target_id":"two","tick":6}],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":6,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":6,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":947,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":6},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":6,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":7,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":949,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":7},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":6,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":8,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":1,"stamina":950,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-5,"velocity_y":0,"warnings":0,"x":46,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":8},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":6,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":9,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":1,"stamina":951,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":40,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":9},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":6,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":10,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":1,"stamina":952,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":34,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":10},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":6,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":11,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":1,"stamina":953,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":28,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":11},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":6,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":12,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":1,"stamina":954,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":22,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":12},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":6,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":13,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":1,"stamina":955,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":17,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":13},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":6,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":14,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":1,"stamina":956,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":11,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":14},{"events":[{"action_id":"one@15","actor_id":"one","amount":0,"blood":0,"detail":"left:jab:head","direction":0,"event_id":3,"kind":"punch_start","target_id":null,"tick":15}],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":995,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":15,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":932,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-1,"velocity_y":0,"warnings":0,"x":9,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":15},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":995,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":16,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":933,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":9,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":16},{"events":[{"action_id":"one@15","actor_id":"one","amount":9,"blood":0,"detail":"","direction":0,"event_id":4,"kind":"whiff","target_id":"two","tick":17}],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":17,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":17,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":925,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":9,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":17},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":17,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":18,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":926,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":9,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":18},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":17,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":19,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":927,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-5,"velocity_y":0,"warnings":0,"x":4,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":19},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":17,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":20,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":928,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-2,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":20},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":17,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":21,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":929,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-8,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":21},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":17,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":22,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":930,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-14,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":22},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":17,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":23,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":933,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-9,"velocity_y":0,"warnings":0,"x":-22,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":23},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":17,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":24,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":936,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-32,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":24},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":17,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":25,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":939,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-42,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":25},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":17,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":26,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":942,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-52,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":26},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":17,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":27,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":945,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-62,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":27},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":17,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":28,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":948,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-72,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":28},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":17,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":29,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":951,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-82,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":29},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":17,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":30,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":954,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-92,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":30},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":17,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":31,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":957,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-102,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":31},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":17,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":32,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":960,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-112,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":32},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":17,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":33,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":963,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-122,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":33},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":17,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":34,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":966,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-132,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":34},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":17,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":35,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":969,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-142,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":35},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":17,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":36,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":972,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-152,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":36},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":17,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":37,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":975,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-162,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":37},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":17,"action_hand":"left","action_id":"one@15","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":15,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":38,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":978,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-172,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":38},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":39,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":981,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-182,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":39},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":40,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":984,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-192,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":40},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":41,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":987,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-202,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":41},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":42,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":990,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-212,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":42},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":43,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":993,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-222,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":43},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":44,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":996,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-232,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":44},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":45,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":998,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-242,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":45}],"a jab pressed late in a flinch while holding back":[{"events":[{"action_id":"two@1","actor_id":"two","amount":0,"blood":0,"detail":"left:jab:head","direction":0,"event_id":1,"kind":"punch_start","target_id":null,"tick":1},{"action_id":"one@1","actor_id":"one","amount":0,"blood":0,"detail":"left:hook:head","direction":0,"event_id":2,"kind":"punch_start","target_id":null,"tick":1}],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":1,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":955,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":150,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":1},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":2,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":957,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":150,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":2},{"events":[{"action_id":"two@1","actor_id":"two","amount":43,"blood":14,"detail":"jab:head","direction":-1,"event_id":3,"kind":"counter_hit","target_id":"one","tick":3}],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":3,"maximum_stamina":1000,"player_id":"one","poise":562,"queued_actions":0,"stamina":958,"stance":"orthodox","stunned_ticks":5,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-5,"velocity_y":0,"warnings":0,"x":145,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":3},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":4,"maximum_stamina":1000,"player_id":"one","poise":562,"queued_actions":0,"stamina":959,"stance":"orthodox","stunned_ticks":4,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":139,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":4},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":5,"maximum_stamina":1000,"player_id":"one","poise":562,"queued_actions":1,"stamina":960,"stance":"orthodox","stunned_ticks":3,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":132,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":5},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":6,"maximum_stamina":1000,"player_id":"one","poise":562,"queued_actions":1,"stamina":961,"stance":"orthodox","stunned_ticks":2,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":125,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":6},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":7,"maximum_stamina":1000,"player_id":"one","poise":562,"queued_actions":1,"stamina":962,"stance":"orthodox","stunned_ticks":1,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":118,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":7},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":8,"maximum_stamina":1000,"player_id":"one","poise":563,"queued_actions":1,"stamina":965,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-9,"velocity_y":0,"warnings":0,"x":109,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":8},{"events":[{"action_id":"one@9","actor_id":"one","amount":0,"blood":0,"detail":"left:jab:head","direction":0,"event_id":4,"kind":"punch_start","target_id":null,"tick":9}],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":9,"maximum_stamina":1000,"player_id":"one","poise":563,"queued_actions":0,"stamina":941,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-2,"velocity_y":0,"warnings":0,"x":106,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":9},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":10,"maximum_stamina":1000,"player_id":"one","poise":563,"queued_actions":0,"stamina":942,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-1,"velocity_y":0,"warnings":0,"x":106,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":10},{"events":[{"action_id":"one@9","actor_id":"one","amount":34,"blood":11,"detail":"jab:head","direction":1,"event_id":5,"kind":"hit","target_id":"two","tick":11}],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":11,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":11,"maximum_stamina":1000,"player_id":"one","poise":563,"queued_actions":0,"stamina":943,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":0,"velocity_y":0,"warnings":0,"x":106,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":11},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":11,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":12,"maximum_stamina":1000,"player_id":"one","poise":563,"queued_actions":0,"stamina":944,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":0,"velocity_y":0,"warnings":0,"x":106,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":12},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":11,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":13,"maximum_stamina":1000,"player_id":"one","poise":563,"queued_actions":0,"stamina":945,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-5,"velocity_y":0,"warnings":0,"x":101,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":13},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":11,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":14,"maximum_stamina":1000,"player_id":"one","poise":563,"queued_actions":0,"stamina":946,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":95,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":14},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":11,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":15,"maximum_stamina":1000,"player_id":"one","poise":563,"queued_actions":0,"stamina":947,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":89,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":15},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":11,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":16,"maximum_stamina":1000,"player_id":"one","poise":563,"queued_actions":0,"stamina":948,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":83,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":16},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":11,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":17,"maximum_stamina":1000,"player_id":"one","poise":563,"queued_actions":0,"stamina":951,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-9,"velocity_y":0,"warnings":0,"x":75,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":17},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":11,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":18,"maximum_stamina":1000,"player_id":"one","poise":564,"queued_actions":0,"stamina":954,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":65,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":18},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":11,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":19,"maximum_stamina":1000,"player_id":"one","poise":564,"queued_actions":0,"stamina":957,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":55,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":19},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":11,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":20,"maximum_stamina":1000,"player_id":"one","poise":565,"queued_actions":0,"stamina":960,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":45,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":20},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":11,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":21,"maximum_stamina":1000,"player_id":"one","poise":565,"queued_actions":0,"stamina":963,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":35,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":21},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":11,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":22,"maximum_stamina":1000,"player_id":"one","poise":566,"queued_actions":0,"stamina":966,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":25,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":22},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":11,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":23,"maximum_stamina":1000,"player_id":"one","poise":566,"queued_actions":0,"stamina":969,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":15,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":23},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":11,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":24,"maximum_stamina":1000,"player_id":"one","poise":567,"queued_actions":0,"stamina":972,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":5,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":24},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":11,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":25,"maximum_stamina":1000,"player_id":"one","poise":567,"queued_actions":0,"stamina":975,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-5,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":25},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":11,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":26,"maximum_stamina":1000,"player_id":"one","poise":568,"queued_actions":0,"stamina":978,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-15,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":26},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":11,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":27,"maximum_stamina":1000,"player_id":"one","poise":568,"queued_actions":0,"stamina":981,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-25,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":27},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":11,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":28,"maximum_stamina":1000,"player_id":"one","poise":569,"queued_actions":0,"stamina":984,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-35,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":28},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":11,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":29,"maximum_stamina":1000,"player_id":"one","poise":569,"queued_actions":0,"stamina":987,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-45,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":29},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":11,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":30,"maximum_stamina":1000,"player_id":"one","poise":570,"queued_actions":0,"stamina":990,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-55,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":30},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":11,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":31,"maximum_stamina":1000,"player_id":"one","poise":570,"queued_actions":0,"stamina":993,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-65,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":31},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":11,"action_hand":"left","action_id":"one@9","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":9,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":32,"maximum_stamina":1000,"player_id":"one","poise":571,"queued_actions":0,"stamina":996,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-75,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":32},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":33,"maximum_stamina":1000,"player_id":"one","poise":571,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-85,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":33},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":34,"maximum_stamina":1000,"player_id":"one","poise":572,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-95,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":34},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":35,"maximum_stamina":1000,"player_id":"one","poise":572,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-105,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":35},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":36,"maximum_stamina":1000,"player_id":"one","poise":573,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-115,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":36},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":37,"maximum_stamina":1000,"player_id":"one","poise":573,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-125,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":37},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":38,"maximum_stamina":1000,"player_id":"one","poise":574,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":38},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":39,"maximum_stamina":1000,"player_id":"one","poise":574,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-145,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":39},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":40,"maximum_stamina":1000,"player_id":"one","poise":575,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-155,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":40},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":41,"maximum_stamina":1000,"player_id":"one","poise":575,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-165,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":41},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":42,"maximum_stamina":1000,"player_id":"one","poise":576,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-175,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":42},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":43,"maximum_stamina":1000,"player_id":"one","poise":576,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-185,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":43},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":44,"maximum_stamina":1000,"player_id":"one","poise":577,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-195,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":44},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":45,"maximum_stamina":1000,"player_id":"one","poise":577,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-205,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":45}],"a jab thrown holding back":[{"events":[{"action_id":"one@1","actor_id":"one","amount":0,"blood":0,"detail":"left:jab:head","direction":0,"event_id":1,"kind":"punch_start","target_id":null,"tick":1}],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":1,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":977,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":1},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":2,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":979,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":2},{"events":[{"action_id":"one@1","actor_id":"one","amount":9,"blood":0,"detail":"","direction":0,"event_id":2,"kind":"whiff","target_id":"two","tick":3}],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":3,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":972,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":3},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":4,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":974,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":4},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":5,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":975,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-5,"velocity_y":0,"warnings":0,"x":46,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":5},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":6,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":976,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":40,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":6},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":7,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":977,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":34,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":7},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":8,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":978,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":28,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":8},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":9,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":981,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-9,"velocity_y":0,"warnings":0,"x":19,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":9},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":10,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":984,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":10,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":10},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":11,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":987,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":0,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":11},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":12,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":990,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-10,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":12},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":13,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":993,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-20,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":13},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":14,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":996,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-30,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":14},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":15,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-40,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":15},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":16,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":16},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":17,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-60,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":17},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":18,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-70,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":18},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":19,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-80,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":19},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":20,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-90,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":20},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":21,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-100,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":21},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":22,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-110,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":22},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":23,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-120,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":23},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":24,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-130,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":24},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":25,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-140,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":25},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":26,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-150,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":26},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":27,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-160,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":27},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":28,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-170,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":28},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":29,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-180,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":29},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":30,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-190,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":30},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":31,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-200,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":31},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":32,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-210,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":32},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":33,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-220,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":33},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":34,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-230,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":34},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":35,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-240,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":35},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":36,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-250,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":36},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":37,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-260,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":37},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":38,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-270,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":38},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":39,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-280,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":39},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":40,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-290,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":40},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":41,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-300,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":41},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":42,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-310,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":42},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":43,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-320,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":43},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":44,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-330,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":44},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":45,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-340,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":45}],"a jab thrown holding back on two blown knees":[{"events":[{"action_id":"one@1","actor_id":"one","amount":0,"blood":0,"detail":"left:jab:head","direction":0,"event_id":1,"kind":"punch_start","target_id":null,"tick":1}],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":1,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":977,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":1},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":2,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":979,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":2},{"events":[{"action_id":"one@1","actor_id":"one","amount":9,"blood":0,"detail":"","direction":0,"event_id":2,"kind":"whiff","target_id":"two","tick":3}],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":3,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":972,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":3},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":4,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":974,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":4},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":5,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":975,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-3,"velocity_y":0,"warnings":0,"x":48,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":5},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":6,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":976,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-4,"velocity_y":0,"warnings":0,"x":44,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":6},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":7,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":977,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-4,"velocity_y":0,"warnings":0,"x":40,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":7},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":8,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":978,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-4,"velocity_y":0,"warnings":0,"x":36,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":8},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":9,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":981,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":31,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":9},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":10,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":984,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":24,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":10},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":11,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":987,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":18,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":11},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":12,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":990,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":12,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":12},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":13,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":993,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":5,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":13},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":14,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":996,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-1,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":14},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":15,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-8,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":15},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":16,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-14,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":16},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":17,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-20,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":17},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":18,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-27,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":18},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":19,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-33,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":19},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":20,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-40,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":20},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":21,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-46,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":21},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":22,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-52,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":22},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":23,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-59,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":23},{"events":[],"fighter":{"action":"jab","action_active_ticks":2,"action_contact_tick":3,"action_hand":"left","action_id":"one@1","action_key":"jab:left:head:normal","action_power":"normal","action_recovery_ticks":4,"action_start_tick":1,"action_startup_ticks":2,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":24,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-65,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":24},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":25,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-72,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":25},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":26,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-78,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":26},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":27,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-84,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":27},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":28,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-91,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":28},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":29,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-97,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":29},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":30,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-104,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":30},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":31,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-110,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":31},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":32,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-116,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":32},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":33,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-123,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":33},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":34,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-129,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":34},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":35,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-136,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":35},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":36,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-142,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":36},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":37,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-148,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":37},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":38,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-155,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":38},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":39,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-161,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":39},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":40,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-167,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":40},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":41,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-174,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":41},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":42,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-180,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":42},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":43,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-187,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":43},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":44,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-193,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":44},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["knee_left_blown","knee_right_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":45,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-199,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":45}],"a slip thrown holding back":[{"events":[{"action_id":null,"actor_id":"one","amount":0,"blood":0,"detail":"slip_left","direction":0,"event_id":1,"kind":"defense","target_id":null,"tick":1}],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"slip_left","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":1,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":990,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":1},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"slip_left","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":2,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":995,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":2},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"slip_left","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":3,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":3},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"slip_left","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":4,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":4},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"slip_left","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":5,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":5},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"slip_left","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":6,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":6},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"slip_left","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":7,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":7},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":8,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-8,"velocity_y":0,"warnings":0,"x":43,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":8},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":9,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-9,"velocity_y":0,"warnings":0,"x":34,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":9},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":10,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":24,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":10},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":11,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":14,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":11},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":12,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":4,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":12},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":13,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-6,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":13},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":14,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-16,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":14},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":15,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-26,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":15},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":16,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-36,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":16},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":17,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-46,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":17},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":18,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-56,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":18},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":19,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-66,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":19},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":20,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-76,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":20},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":21,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-86,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":21},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":22,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-96,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":22},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":23,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-106,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":23},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":24,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-116,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":24},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":25,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-126,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":25},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":26,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-136,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":26},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":27,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-146,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":27},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":28,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-156,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":28},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":29,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-166,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":29},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":30,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-176,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":30},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":31,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-186,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":31},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":32,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-196,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":32},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":33,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-206,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":33},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":34,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-216,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":34},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":35,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-226,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":35},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":36,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-236,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":36},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":37,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-246,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":37},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":38,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-256,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":38},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":39,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-266,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":39},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":40,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-276,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":40},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":41,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-286,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":41},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":42,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-296,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":42},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":43,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-306,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":43},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":44,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-316,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":44},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":45,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-326,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":45}],"flinched mid-hook while holding back":[{"events":[{"action_id":"two@1","actor_id":"two","amount":0,"blood":0,"detail":"left:jab:head","direction":0,"event_id":1,"kind":"punch_start","target_id":null,"tick":1},{"action_id":"one@1","actor_id":"one","amount":0,"blood":0,"detail":"left:hook:head","direction":0,"event_id":2,"kind":"punch_start","target_id":null,"tick":1}],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":1,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":955,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":150,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":1},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":2,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":957,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":150,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":2},{"events":[{"action_id":"two@1","actor_id":"two","amount":43,"blood":14,"detail":"jab:head","direction":-1,"event_id":3,"kind":"counter_hit","target_id":"one","tick":3}],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":3,"maximum_stamina":1000,"player_id":"one","poise":562,"queued_actions":0,"stamina":958,"stance":"orthodox","stunned_ticks":5,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-5,"velocity_y":0,"warnings":0,"x":145,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":3},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":4,"maximum_stamina":1000,"player_id":"one","poise":562,"queued_actions":0,"stamina":959,"stance":"orthodox","stunned_ticks":4,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":139,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":4},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":5,"maximum_stamina":1000,"player_id":"one","poise":562,"queued_actions":0,"stamina":960,"stance":"orthodox","stunned_ticks":3,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":132,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":5},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":6,"maximum_stamina":1000,"player_id":"one","poise":562,"queued_actions":0,"stamina":961,"stance":"orthodox","stunned_ticks":2,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":125,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":6},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":7,"maximum_stamina":1000,"player_id":"one","poise":562,"queued_actions":0,"stamina":962,"stance":"orthodox","stunned_ticks":1,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":118,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":7},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":8,"maximum_stamina":1000,"player_id":"one","poise":563,"queued_actions":0,"stamina":965,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-9,"velocity_y":0,"warnings":0,"x":109,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":8},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":9,"maximum_stamina":1000,"player_id":"one","poise":563,"queued_actions":0,"stamina":968,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":99,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":9},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":10,"maximum_stamina":1000,"player_id":"one","poise":564,"queued_actions":0,"stamina":971,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":89,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":10},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":11,"maximum_stamina":1000,"player_id":"one","poise":564,"queued_actions":0,"stamina":974,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":79,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":11},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":12,"maximum_stamina":1000,"player_id":"one","poise":565,"queued_actions":0,"stamina":977,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":69,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":12},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":13,"maximum_stamina":1000,"player_id":"one","poise":565,"queued_actions":0,"stamina":980,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":59,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":13},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":14,"maximum_stamina":1000,"player_id":"one","poise":566,"queued_actions":0,"stamina":983,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":49,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":14},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":15,"maximum_stamina":1000,"player_id":"one","poise":566,"queued_actions":0,"stamina":986,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":39,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":15},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":16,"maximum_stamina":1000,"player_id":"one","poise":567,"queued_actions":0,"stamina":989,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":29,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":16},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":17,"maximum_stamina":1000,"player_id":"one","poise":567,"queued_actions":0,"stamina":992,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":19,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":17},{"events":[],"fighter":{"action":"hook","action_active_ticks":2,"action_contact_tick":null,"action_hand":"left","action_id":"one@1","action_key":"hook:left:head:normal","action_power":"normal","action_recovery_ticks":7,"action_start_tick":1,"action_startup_ticks":5,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":18,"maximum_stamina":1000,"player_id":"one","poise":568,"queued_actions":0,"stamina":995,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":9,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":18},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":19,"maximum_stamina":1000,"player_id":"one","poise":568,"queued_actions":0,"stamina":998,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-1,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":19},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":20,"maximum_stamina":1000,"player_id":"one","poise":569,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-11,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":20},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":21,"maximum_stamina":1000,"player_id":"one","poise":569,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-21,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":21},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":22,"maximum_stamina":1000,"player_id":"one","poise":570,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-31,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":22},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":23,"maximum_stamina":1000,"player_id":"one","poise":570,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-41,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":23},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":24,"maximum_stamina":1000,"player_id":"one","poise":571,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-51,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":24},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":25,"maximum_stamina":1000,"player_id":"one","poise":571,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-61,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":25},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":26,"maximum_stamina":1000,"player_id":"one","poise":572,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-71,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":26},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":27,"maximum_stamina":1000,"player_id":"one","poise":572,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-81,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":27},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":28,"maximum_stamina":1000,"player_id":"one","poise":573,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-91,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":28},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":29,"maximum_stamina":1000,"player_id":"one","poise":573,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-101,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":29},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":30,"maximum_stamina":1000,"player_id":"one","poise":574,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-111,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":30},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":31,"maximum_stamina":1000,"player_id":"one","poise":574,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-121,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":31},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":32,"maximum_stamina":1000,"player_id":"one","poise":575,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-131,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":32},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":33,"maximum_stamina":1000,"player_id":"one","poise":575,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-141,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":33},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":34,"maximum_stamina":1000,"player_id":"one","poise":576,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-151,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":34},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":35,"maximum_stamina":1000,"player_id":"one","poise":576,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-161,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":35},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":36,"maximum_stamina":1000,"player_id":"one","poise":577,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-171,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":36},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":37,"maximum_stamina":1000,"player_id":"one","poise":577,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-181,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":37},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":38,"maximum_stamina":1000,"player_id":"one","poise":578,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-191,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":38},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":39,"maximum_stamina":1000,"player_id":"one","poise":578,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-201,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":39},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":40,"maximum_stamina":1000,"player_id":"one","poise":579,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-211,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":40},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":41,"maximum_stamina":1000,"player_id":"one","poise":579,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-221,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":41},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":42,"maximum_stamina":1000,"player_id":"one","poise":580,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-231,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":42},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":43,"maximum_stamina":1000,"player_id":"one","poise":580,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-241,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":43},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":44,"maximum_stamina":1000,"player_id":"one","poise":581,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-251,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":44},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":45,"maximum_stamina":1000,"player_id":"one","poise":581,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":25,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":30,"swelling":7},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-261,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":45}],"holding back and a guard with no arms left":[{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":1,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-8,"velocity_y":0,"warnings":0,"x":43,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":1},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":2,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-9,"velocity_y":0,"warnings":0,"x":34,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":2},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":3,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":24,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":3},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":4,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":14,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":4},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":5,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":4,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":5},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":6,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-6,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":6},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":7,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-16,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":7},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":8,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-26,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":8},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":9,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-36,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":9},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":10,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-46,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":10},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":11,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-56,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":11},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":12,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-66,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":12},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":13,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-76,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":13},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":14,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-86,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":14},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":15,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-96,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":15},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":16,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-106,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":16},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":17,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-116,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":17},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":18,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-126,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":18},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":19,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-136,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":19},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":20,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-146,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":20},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":21,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-156,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":21},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":22,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-166,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":22},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":23,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-176,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":23},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":24,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-186,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":24},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":25,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-196,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":25},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":26,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-206,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":26},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":27,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-216,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":27},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":28,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-226,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":28},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":29,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-236,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":29},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":960,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":30,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-246,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":30},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":960,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":31,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-256,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":31},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":960,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":32,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-266,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":32},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":960,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":33,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-276,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":33},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":960,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":34,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-286,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":34},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":960,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":35,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-296,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":35},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":960,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":36,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-306,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":36},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":960,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":37,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-316,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":37},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":960,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":38,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-326,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":38},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":960,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":39,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-336,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":39},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":960,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":40,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-346,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":40},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":960,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":41,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-356,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":41},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":960,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":42,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-366,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":42},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":960,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":43,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-376,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":43},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":960,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":44,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-386,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":44},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":960,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["arm_left_torn","arm_right_torn"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":45,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-396,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":45}],"holding back behind a guard":[{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":697,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":1,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-5,"velocity_y":0,"warnings":0,"x":45,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":1},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":694,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":2,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":39,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":2},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":691,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":3,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":32,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":3},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":688,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":4,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":25,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":4},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":685,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":5,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":18,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":5},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":682,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":6,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":11,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":6},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":679,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":7,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":4,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":7},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":676,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":8,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-3,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":8},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":673,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":9,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-10,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":9},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":670,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":10,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-17,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":10},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":667,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":11,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-24,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":11},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":664,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":12,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-31,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":12},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":661,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":13,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-38,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":13},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":658,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":14,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-45,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":14},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":655,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":15,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-52,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":15},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":652,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":16,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-59,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":16},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":649,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":17,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-66,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":17},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":646,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":18,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-73,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":18},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":643,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":19,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-80,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":19},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":640,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":20,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-87,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":20},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":637,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":21,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-94,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":21},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":634,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":22,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-101,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":22},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":631,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":23,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-108,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":23},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":628,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":24,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-115,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":24},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":625,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":25,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-122,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":25},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":622,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":26,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-129,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":26},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":619,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":27,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-136,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":27},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":616,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":28,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-143,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":28},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":613,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":29,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-150,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":29},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":610,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":30,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-157,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":30},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":607,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":31,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-164,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":31},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":604,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":32,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-171,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":32},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":601,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":33,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-178,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":33},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":598,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":34,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-185,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":34},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":595,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":35,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-192,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":35},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":592,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":36,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-199,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":36},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":589,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":37,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-206,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":37},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":586,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":38,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-213,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":38},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":583,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":39,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-220,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":39},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":580,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":40,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-227,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":40},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":577,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":41,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-234,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":41},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":574,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":42,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-241,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":42},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":571,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":43,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-248,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":43},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":568,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":44,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-255,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":44},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"guard_high","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":565,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":45,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-7,"velocity_y":0,"warnings":0,"x":-262,"y":0},"held":{"defense":"guard_high","moveX":-1000,"moveY":0},"tick":45}],"holding back on a blown knee with his gut open":[{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":1,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-5,"velocity_y":0,"warnings":0,"x":46,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":1},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":2,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":40,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":2},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":3,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":34,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":3},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":4,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":28,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":4},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":5,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":22,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":5},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":6,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":17,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":6},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":7,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":11,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":7},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":8,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":5,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":8},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":9,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-1,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":9},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":10,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-7,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":10},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":11,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-13,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":11},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":12,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-19,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":12},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":13,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-25,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":13},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":14,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-31,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":14},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":15,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-37,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":15},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":16,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-43,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":16},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":17,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-49,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":17},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":18,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-55,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":18},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":19,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-61,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":19},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":20,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-67,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":20},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":21,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-73,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":21},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":22,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-79,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":22},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":23,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-85,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":23},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":24,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-91,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":24},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":25,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-97,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":25},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":26,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-103,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":26},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":27,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-109,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":27},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":28,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-115,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":28},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":29,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-121,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":29},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":988,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":30,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-127,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":30},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":988,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":31,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-133,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":31},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":988,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":32,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-139,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":32},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":988,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":33,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-145,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":33},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":988,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":34,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-151,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":34},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":988,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":35,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-157,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":35},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":988,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":36,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-163,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":36},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":988,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":37,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-169,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":37},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":988,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":38,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-175,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":38},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":988,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":39,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-181,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":39},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":988,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":40,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-187,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":40},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":988,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":41,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-193,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":41},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":988,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":42,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-199,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":42},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":988,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":43,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-205,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":43},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":988,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":44,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-211,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":44},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":988,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":1000,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":["disemboweled","knee_left_blown"],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":45,"maximum_stamina":850,"player_id":"one","poise":600,"queued_actions":0,"stamina":850,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":-217,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":45}],"parried while holding back":[{"events":[{"action_id":"one@1","actor_id":"one","amount":0,"blood":0,"detail":"right:straight:head","direction":0,"event_id":1,"kind":"punch_start","target_id":null,"tick":1}],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":null,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":1,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":948,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":1},{"events":[],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":null,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":2,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":950,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":2},{"events":[],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":null,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":3,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":952,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":3},{"events":[],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":null,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":4,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":954,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":4},{"events":[],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":null,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":5,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":956,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":5},{"events":[],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":null,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":6,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":958,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":6},{"events":[],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":null,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":7,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":960,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":7},{"events":[{"action_id":"one@1","actor_id":"two","amount":0,"blood":0,"detail":"","direction":0,"event_id":2,"kind":"perfect_block","target_id":"one","tick":8},{"action_id":"one@1","actor_id":"two","amount":16,"blood":0,"detail":"","direction":0,"event_id":3,"kind":"parry","target_id":"one","tick":8},{"action_id":"one@1","actor_id":"one","amount":13,"blood":4,"detail":"straight:head","direction":1,"event_id":4,"kind":"hit","target_id":"two","tick":8}],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":8,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":8,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":962,"stance":"orthodox","stunned_ticks":16,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":8},{"events":[],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":8,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":9,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":964,"stance":"orthodox","stunned_ticks":15,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":9},{"events":[],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":8,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":10,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":966,"stance":"orthodox","stunned_ticks":14,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":10},{"events":[],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":8,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":11,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":968,"stance":"orthodox","stunned_ticks":13,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":11},{"events":[],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":8,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":12,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":970,"stance":"orthodox","stunned_ticks":12,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":12},{"events":[],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":8,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":13,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":972,"stance":"orthodox","stunned_ticks":11,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":13},{"events":[],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":8,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":14,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":974,"stance":"orthodox","stunned_ticks":10,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":14},{"events":[],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":8,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":15,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":976,"stance":"orthodox","stunned_ticks":9,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":15},{"events":[],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":8,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":16,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":978,"stance":"orthodox","stunned_ticks":8,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":16},{"events":[],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":8,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":17,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":980,"stance":"orthodox","stunned_ticks":7,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":17},{"events":[],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":8,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":18,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":982,"stance":"orthodox","stunned_ticks":6,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":18},{"events":[],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":8,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":19,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":984,"stance":"orthodox","stunned_ticks":5,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":19},{"events":[],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":8,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":20,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":986,"stance":"orthodox","stunned_ticks":4,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":20},{"events":[],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":8,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":21,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":988,"stance":"orthodox","stunned_ticks":3,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":21},{"events":[],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":8,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":22,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":990,"stance":"orthodox","stunned_ticks":2,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":22},{"events":[],"fighter":{"action":"straight","action_active_ticks":3,"action_contact_tick":8,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:power","action_power":"power","action_recovery_ticks":9,"action_start_tick":1,"action_startup_ticks":7,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":23,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":992,"stance":"orthodox","stunned_ticks":1,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":135,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":23},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":24,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":995,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-8,"velocity_y":0,"warnings":0,"x":128,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":24},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":25,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":998,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-9,"velocity_y":0,"warnings":0,"x":119,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":25},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":26,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":109,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":26},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":27,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":99,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":27},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":28,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":89,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":28},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":29,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":79,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":29},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":30,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":69,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":30},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":31,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":59,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":31},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":32,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":49,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":32},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":33,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":39,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":33},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":34,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":29,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":34},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":35,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":19,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":35},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":36,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":9,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":36},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":37,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-1,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":37},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":38,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-11,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":38},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":39,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-21,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":39},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":40,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-31,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":40},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":41,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-41,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":41},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":42,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-51,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":42},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":43,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-61,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":43},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":44,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-71,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":44},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":998,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":45,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":1000,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-81,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":45}],"slipped out of a power uppercut's recovery while holding back":[{"events":[{"action_id":"one@1","actor_id":"one","amount":0,"blood":0,"detail":"right:uppercut:head","direction":0,"event_id":1,"kind":"punch_start","target_id":null,"tick":1}],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":null,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":1,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":928,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":1},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":null,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":2,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":930,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":2},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":null,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":3,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":932,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":3},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":null,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":4,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":934,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":4},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":null,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":5,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":936,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":5},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":null,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":6,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":938,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":6},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":null,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":7,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":940,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":7},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":null,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":8,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":942,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":8},{"events":[{"action_id":"one@1","actor_id":"one","amount":33,"blood":0,"detail":"","direction":0,"event_id":2,"kind":"whiff","target_id":"two","tick":9}],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":9,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":994,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":9,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":911,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":9},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":9,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":994,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":10,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":913,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":10},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":9,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":994,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":11,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":915,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":11},{"events":[{"action_id":null,"actor_id":"one","amount":0,"blood":0,"detail":"slip_left","direction":0,"event_id":3,"kind":"defense","target_id":null,"tick":12}],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":9,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"slip_left","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":12,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":905,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":12},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":9,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"slip_left","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":13,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":910,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":13},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":9,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"slip_left","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":14,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":915,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":14},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":9,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"slip_left","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":15,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":920,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":15},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":9,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"slip_left","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":16,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":925,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":16},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":9,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"slip_left","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":17,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":930,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":17},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":9,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"slip_left","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":18,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":935,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":18},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":9,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":19,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":938,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-8,"velocity_y":0,"warnings":0,"x":43,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":19},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":9,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":20,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":941,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-9,"velocity_y":0,"warnings":0,"x":34,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":20},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":9,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":21,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":944,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":24,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":21},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":9,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":22,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":947,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":14,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":22},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":9,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":23,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":950,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":4,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":23},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":9,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":24,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":953,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-6,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":24},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":9,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":25,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":956,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-16,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":25},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":9,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":26,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":959,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-26,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":26},{"events":[],"fighter":{"action":"uppercut","action_active_ticks":3,"action_contact_tick":9,"action_hand":"right","action_id":"one@1","action_key":"uppercut:right:head:power","action_power":"power","action_recovery_ticks":11,"action_start_tick":1,"action_startup_ticks":8,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":27,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":962,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-36,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":27},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":28,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":965,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-46,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":28},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":29,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":968,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-56,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":29},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":30,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":971,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-66,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":30},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":31,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":974,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-76,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":31},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":32,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":977,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-86,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":32},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":33,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":980,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-96,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":33},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":34,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":983,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-106,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":34},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":35,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":986,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-116,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":35},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":36,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":989,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-126,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":36},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":37,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":992,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-136,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":37},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":38,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":995,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-146,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":38},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":39,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":998,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-156,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":39},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":40,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":998,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-166,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":40},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":41,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":998,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-176,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":41},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":42,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":998,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-186,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":42},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":43,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":998,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-196,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":43},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":44,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":998,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-206,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":44},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":993,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":45,"maximum_stamina":998,"player_id":"one","poise":600,"queued_actions":0,"stamina":998,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-216,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":45}],"slipped out of a straight's recovery while holding back":[{"events":[{"action_id":"one@1","actor_id":"one","amount":0,"blood":0,"detail":"right:straight:head","direction":0,"event_id":1,"kind":"punch_start","target_id":null,"tick":1}],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":null,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":1,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":963,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":1},{"events":[],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":null,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":2,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":965,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":2},{"events":[],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":null,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":3,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":967,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":3},{"events":[],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":null,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":999,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":4,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":969,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":4},{"events":[{"action_id":"one@1","actor_id":"one","amount":14,"blood":0,"detail":"","direction":0,"event_id":2,"kind":"whiff","target_id":"two","tick":5}],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":5,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":5,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":957,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":5},{"events":[],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":5,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":6,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":959,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":50,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":6},{"events":[],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":5,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":7,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":960,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-5,"velocity_y":0,"warnings":0,"x":46,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":7},{"events":[],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":5,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":997,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":8,"maximum_stamina":1000,"player_id":"one","poise":600,"queued_actions":0,"stamina":961,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-6,"velocity_y":0,"warnings":0,"x":40,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":8},{"events":[{"action_id":null,"actor_id":"one","amount":0,"blood":0,"detail":"slip_left","direction":0,"event_id":3,"kind":"defense","target_id":null,"tick":9}],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":5,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"slip_left","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":9,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":949,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-1,"velocity_y":0,"warnings":0,"x":39,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":9},{"events":[],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":5,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"slip_left","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":10,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":952,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":39,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":10},{"events":[],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":5,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"slip_left","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":11,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":955,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":39,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":11},{"events":[],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":5,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"slip_left","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":12,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":958,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":39,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":12},{"events":[],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":5,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"slip_left","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":13,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":961,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":39,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":13},{"events":[],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":5,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"slip_left","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":14,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":964,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":39,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":14},{"events":[],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":5,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"slip_left","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":15,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":969,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":0,"velocity_y":0,"warnings":0,"x":39,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":15},{"events":[],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":5,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":16,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":972,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-8,"velocity_y":0,"warnings":0,"x":31,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":16},{"events":[],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":5,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":17,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":975,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-9,"velocity_y":0,"warnings":0,"x":22,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":17},{"events":[],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":5,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":18,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":978,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":12,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":18},{"events":[],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":5,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":19,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":981,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":2,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":19},{"events":[],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":5,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":20,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":984,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-8,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":20},{"events":[],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":5,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":21,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":987,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-18,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":21},{"events":[],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":5,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":22,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":990,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-28,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":22},{"events":[],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":5,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":23,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":993,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-38,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":23},{"events":[],"fighter":{"action":"straight","action_active_ticks":2,"action_contact_tick":5,"action_hand":"right","action_id":"one@1","action_key":"straight:right:head:normal","action_power":"normal","action_recovery_ticks":6,"action_start_tick":1,"action_startup_ticks":4,"action_target":"head","blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":24,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":996,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-48,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":24},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":25,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-58,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":25},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":26,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-68,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":26},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":27,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-78,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":27},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":28,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-88,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":28},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":29,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-98,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":29},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":30,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-108,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":30},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":31,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-118,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":31},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":32,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-128,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":32},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":33,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-138,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":33},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":34,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-148,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":34},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":35,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-158,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":35},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":36,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-168,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":36},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":37,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-178,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":37},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":38,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-188,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":38},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":39,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-198,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":39},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":40,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-208,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":40},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":41,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-218,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":41},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":42,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-228,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":42},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":43,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-238,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":43},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":44,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-248,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":44},{"events":[],"fighter":{"action":null,"action_active_ticks":0,"action_contact_tick":null,"action_hand":null,"action_id":null,"action_key":null,"action_power":null,"action_recovery_ticks":0,"action_start_tick":0,"action_startup_ticks":0,"action_target":null,"blood_volume":1000,"clinch_startup_ticks":0,"clinch_ticks":0,"conditioning":996,"corner_choice":null,"deductions":0,"defense":"none","facing":1,"facing_x":1000,"facing_y":0,"get_up_count":0,"get_up_meter":0,"get_up_next_prompt":null,"get_up_prompt":null,"get_up_required":0,"get_up_window_end_tick":0,"get_up_window_start_tick":0,"guard":700,"guard_broken":false,"injuries":[],"is_downed":false,"is_foul_recovery_target":false,"knockdowns":0,"last_input_sequence":45,"maximum_stamina":999,"player_id":"one","poise":600,"queued_actions":0,"stamina":999,"stance":"orthodox","stunned_ticks":0,"style":"balanced","taunt_ticks":0,"trauma":{"bleeding":0,"body":0,"head":0,"left_cut":0,"left_eye":0,"right_cut":0,"right_eye":0,"swelling":0},"velocity_x":-10,"velocity_y":0,"warnings":0,"x":-258,"y":0},"held":{"defense":"none","moveX":-1000,"moveY":0},"tick":45}]} diff --git a/web/hands/src/types.ts b/web/hands/src/types.ts index a39b884d..d134d70a 100644 --- a/web/hands/src/types.ts +++ b/web/hands/src/types.ts @@ -1,6 +1,6 @@ import type { InjuryId } from "./injuries"; -export const PROTOCOL_VERSION = 6 as const; +export const PROTOCOL_VERSION = 7 as const; export const MAX_SERVER_FRAME_BYTES = 65_536; export type Hand = "left" | "right"; @@ -57,6 +57,8 @@ export interface FighterSnapshot { readonly get_up_prompt: "get_up_left" | "get_up_right" | null; readonly get_up_meter: number; readonly get_up_required: number; readonly get_up_count: number; readonly get_up_window_start_tick: number; readonly get_up_window_end_tick: number; + /** The side of the prompt after the current one, shown a count ahead; private like the prompt. */ + readonly get_up_next_prompt: "get_up_left" | "get_up_right" | null; readonly last_input_sequence: number; /** The fighter's discrete injuries, in the engine's canonical order (see injuries.ts). */ readonly injuries: readonly InjuryId[]; From 881502733bde9514a46f89eee5fc7423b4523b52 Mon Sep 17 00:00:00 2001 From: user1303836 Date: Tue, 17 Nov 2026 12:42:47 -0500 Subject: [PATCH 2/4] fix(hands): get-up review findings: a paused count, the first press in a tick, the press clock after the link changes, an exact end-to-end check --- README.md | 2 +- scripts/hands_e2e_scenarios.js | 162 ++++++--- scripts/hands_parity_fixtures.py | 47 ++- src/intelstream/hands/cpu.py | 14 +- src/intelstream/hands/engine.py | 19 +- src/intelstream/hands/static/assets/hands.css | 2 +- src/intelstream/hands/static/assets/hands.js | 308 +++++++++--------- tests/test_hands/test_engine.py | 42 +++ web/hands/src/app.test.ts | 9 +- web/hands/src/app.ts | 16 +- web/hands/src/dev-fixtures.ts | 2 +- web/hands/src/getup.test.ts | 71 +++- web/hands/src/getup.ts | 112 ++++++- web/hands/src/input/touch.ts | 46 ++- web/hands/src/interpolation.test.ts | 51 +++ web/hands/src/interpolation.ts | 22 +- web/hands/src/manifest.ts | 6 +- web/hands/src/protocol.test.ts | 9 +- web/hands/src/protocol.ts | 3 +- web/hands/src/render/caption.test.ts | 7 +- web/hands/src/render/hud.ts | 23 +- web/hands/src/render/renderer-getup.test.ts | 37 +++ web/hands/src/render/renderer.ts | 24 +- web/hands/src/style.css | 4 +- web/hands/src/test/get-up-table.json | 1 + 25 files changed, 742 insertions(+), 297 deletions(-) create mode 100644 web/hands/src/render/renderer-getup.test.ts create mode 100644 web/hands/src/test/get-up-table.json diff --git a/README.md b/README.md index 5a785856..730a5940 100644 --- a/README.md +++ b/README.md @@ -453,7 +453,7 @@ A disconnect pauses the bout and shows the connected opponent a live reconnect c - A close-range clinch has vulnerable startup and can be denied or interrupted. A successful finite hold cancels attacks, lets both regain a little stamina while spending conditioning, and ends in referee separation. - Low blows and headbutts are deliberate, costly fouls: misses still cost resources; a landed foul causes a recovery pause and warning, warning two deducts a point, and warning three disqualifies the offender. - Head/body and left/right eye trauma persist. Hooks intensify eye damage; damaged eyes reduce reach/accuracy. Cuts increase bleeding, bleeding adds head trauma and fatigue, swelling accumulates, and cut/swelling thresholds can cause a doctor stoppage. Blood event amounts are authoritative, while spray, pooling, audio, and shake are cosmetic only. -- Poise depletion or a sufficiently damaging head shot causes a knockdown. During the ten-count the downed fighter alone sees a large arrow on his get-up panel, left or right, with the side after it small and dim beside it. From the count of two, each number of the count is one prompt: a ring closes on the arrow and reaches it on the beat, the moment the number changes, turning green while a press would be in time and gold at its perfect middle. The first press of each prompt is its only attempt: on the beat (one tick either side) is PERFECT and counts two, within three ticks is GOOD and counts one, before that is EARLY and after it LATE (neither scores), and the wrong side costs one. Further presses do nothing, so mashing gets nowhere, and the next prompt takes over at once. He rises when the meter reaches four for each knockdown so far plus one for each 300 of head trauma; failure by ten is a KO. The panel is drawn for the moment a press made now reaches the server (the snapshot clock plus the measured round trip), every press is answered at once and then confirmed by the server, and a tick and a haptic pulse mark each beat. `scripts/hands_get_up.py` plays the count many times through the engine with scripted players and the computer levels and prints how often each gets up. +- Poise depletion or a sufficiently damaging head shot causes a knockdown. During the ten-count the downed fighter alone sees a large arrow on his get-up panel, left or right, with the side after it small and dim beside it. From the count of two, each number of the count is one prompt: a ring closes on the arrow and reaches it on the beat, the moment the number changes, turning green while a press would be in time and gold at its perfect middle. A prompt takes one attempt, the first press from the end of the one before (within a server tick, the first of its presses): on the beat (one tick either side) is PERFECT and counts two, within three ticks is GOOD and counts one, before that is EARLY and up to three ticks after it LATE (neither scores), and the wrong side costs one. The next prompt takes over as soon as the attempt is made. A press before a prompt's attempt can be made (during the fall, or after the last attempt and before that prompt's late ticks end) does nothing and draws no verdict, so mashing gets nowhere. He rises when the meter reaches four for each knockdown so far plus one for each 300 of head trauma; failure by ten is a KO. The panel is drawn for the moment a press made now reaches the server (the earliest recent snapshot's clock plus the measured round trip); a press that makes an attempt is answered on the panel at once with the client's guess and then with the server's verdict, which stands, and a tick and a haptic pulse mark each beat. While the bout is paused the panel goes away and the beats stop. `scripts/hands_get_up.py` plays the count many times through the engine with scripted players and the computer levels and prints how often each gets up. - **Injuries.** Damage ends in discrete, permanent injuries the server decides from accumulated wear and the punch that lands, one a punch, worst first, with no dice. Each is listed in the snapshot and changes how its owner fights: - Head: a broken nose (bleeds, 75% stamina regeneration), a broken jaw and then the jaw torn off (25% and 50% more poise lost), an eye punched out of a swollen socket (that eye is as good as shut for the rest of the bout), an ear torn off (slower poise recovery), a cut cheek flayed to the muscle (worse accuracy), and a fractured skull (poise ceiling 60%). More heavy shots on a fractured skull kill. - Body: caved-in ribs (35% more damage from body shots on that side, less maximum stamina), a ruptured liver (60% stamina regeneration, and he vomits every eight seconds, which stops him for a moment), and disembowelment (75% foot speed, less maximum stamina, 50% more body damage). Another power shot to an open gut kills. diff --git a/scripts/hands_e2e_scenarios.js b/scripts/hands_e2e_scenarios.js index aa7dd3f2..25ccf4ca 100644 --- a/scripts/hands_e2e_scenarios.js +++ b/scripts/hands_e2e_scenarios.js @@ -494,23 +494,27 @@ async function main() { const after = await status(A.page); note('A summary before:', before.summary?.slice(0, 200)); note('A summary after :', after.summary?.slice(0, 200)); - // Then A knocks him down, and he gets up with the get-up pads, tapping the lit one as his ring closes. - await installGetUpPlayer(B.page, 'touch'); - const begun = Date.now(); + // Then A knocks him down, and he gets up with the get-up pads: a real tap at the lit pad's centre as his ring closes. + await installGetUpPlayer(B.page, 'watch'); + let stop = false; + const tapping = tapGetUpPads(B.page, () => stop); + const begun = Date.now(); let down = false; await A.page.keyboard.down('Alt'); while (Date.now() - begun < 150000) { const sB = await status(B.page); if (sB.final || (await getUpTally(B.page)).presses >= 3) break; - if (/\. knockdown\./.test(sB.summary ?? '')) { await wait(150); continue; } + if (/\. knockdown\./.test(sB.summary ?? '')) { down = true; await wait(150); continue; } await pressOn(A); } await A.page.keyboard.up('Alt'); await wait(2500); + stop = true; + await tapping; await B.page.screenshot({ path: `${out}/e2e-touch-B-getup.png` }); const tally = await getUpTally(B.page); - note('touch get-up presses and verdicts:', JSON.stringify(tally)); - if (tally.presses > 0 && (tally.verdicts.good ?? 0) + (tally.verdicts.perfect ?? 0) === 0) report.errors.push('no get-up pad press scored'); - if (tally.presses === 0) note('B was not knocked down in time: the get-up pads went untried'); + note('touch get-up taps and verdicts:', JSON.stringify(tally)); + if (!down) report.errors.push('B was never knocked down, so the get-up pads went untried'); + else if ((tally.verdicts.good ?? 0) + (tally.verdicts.perfect ?? 0) === 0) report.errors.push('no tap on a get-up pad scored'); const final = await waitFor(A.page, (s) => Boolean(s.final), 180000, 'final'); note('FINAL:', JSON.stringify(final?.final ?? null).slice(0, 200)); } @@ -581,14 +585,18 @@ async function main() { await pressOn(A); } await A.page.keyboard.up('Alt'); - await wait(1500); - const tally = await getUpTally(B.page); - const judged = Object.values(tally.verdicts).reduce((sum, value) => sum + value, 0); - const timed = (tally.verdicts.good ?? 0) + (tally.verdicts.perfect ?? 0); - note('bouts:', bouts, '| knockdowns:', downs, '| presses:', tally.presses, '| verdicts:', JSON.stringify(tally.verdicts), `| good or perfect: ${timed} of ${judged} (${judged ? ((100 * timed) / judged).toFixed(1) : '-'}%)`); + // No more presses: every one made is then either judged or accounted for. + await B.page.evaluate(() => { window.__getUpStop = true; }); + await wait(2500); + const account = await getUpTally(B.page); + const timed = (account.verdicts.good ?? 0) + (account.verdicts.perfect ?? 0); + note('bouts:', bouts, '| knockdowns:', downs, '| presses:', account.presses, '| judged:', account.judged, '| verdicts:', JSON.stringify(account.verdicts), `| good or perfect: ${timed} of ${account.judged} (${account.judged ? ((100 * timed) / account.judged).toFixed(1) : '-'}%)`); + note('presses with no verdict, by cause:', JSON.stringify(account.unjudged)); + for (const press of account.unexplained) note('unexplained press:', JSON.stringify(press)); note('input latency B:', JSON.stringify(await B.page.evaluate(() => window.__handsApp?.networkStats ?? null))); - if (judged < wanted) report.errors.push(`only ${judged} get-up presses were judged, wanted ${wanted}`); - if (judged > 0 && timed / judged < 0.95) report.errors.push(`presses made when the ring said now scored good or perfect ${timed} of ${judged} times, under 95%`); + if (account.judged < wanted) report.errors.push(`only ${account.judged} get-up presses were judged, wanted ${wanted}`); + if (account.unexplained.length > 0) report.errors.push(`${account.unexplained.length} get-up presses drew no verdict and nothing explains it`); + if (account.judged > 0 && timed / account.judged < 0.95) report.errors.push(`presses made when the ring said now scored good or perfect ${timed} of ${account.judged} times, under 95%`); } if (scenario === 'latency') { @@ -880,50 +888,59 @@ async function main() { } /** - * Plays the floored fighter's get-up from inside the page, as a player watching the panel would: `keys` and `touch` - * press each prompt's side once, when the client's own ring reaches its target (renderer.getUpView's press clock at - * the beat), by an arrow key or by a pointer on that get-up pad; `mash` presses the two arrows in turn ten times a - * second whatever the panel shows. window.__getUpPresses counts the presses. + * Plays the floored fighter's get-up from inside the page, as a player watching the panel would. `keys` presses each + * prompt's side once, by its arrow key, when the client's own ring reaches its target (renderer.getUpView's press + * clock at the beat); `mash` presses the two arrows in turn ten times a second whatever the panel shows; `watch` + * presses nothing (tapGetUpPads taps). Every mode logs each press, with the tick the press clock said it would be + * scored on and its prompt's beat, and the server's get-up events as they arrive; window.__getUpStop ends the pressing. */ async function installGetUpPlayer(page, mode) { await page.evaluate((how) => { - window.__getUpPresses = 0; - // Each bout has its own renderer, and with it its own count of verdicts: the counts of the ones gone are kept here. - window.__getUpVerdictsBefore = {}; - let counted = null; - const keep = () => { - const renderer = window.__handsApp?.renderer ?? null; - if (renderer !== counted.renderer && counted.renderer !== null) { - for (const [kind, value] of Object.entries(counted.renderer.getUpVerdicts ?? {})) window.__getUpVerdictsBefore[kind] = (window.__getUpVerdictsBefore[kind] ?? 0) + value; + const app = window.__handsApp; + // Ticks start again with each bout, so every press and event carries the bout it belongs to. + const log = { presses: [], events: [], bout: 0 }; + window.__getUpLog = log; + window.__getUpStop = false; + window.__getUpRecordPress = (side) => { + const view = app.renderer?.getUpView; + log.presses.push({ bout: log.bout, side, tick: view ? Math.round(view.pressTick) : null, beat: view?.prompt?.beat ?? null, count: view?.count ?? null, at: Math.round(performance.now()) }); + }; + // Every server get-up event, as it arrives: the renderer's own counts start again with each bout. + const receive = app.receive.bind(app); + app.receive = (message) => { + if (message?.type === 'snapshot') { + const viewer = app.state.playerId; + for (const event of message.payload.events) { + const mine = event.actor_id === viewer || event.target_id === viewer; + if (!((mine && ['get_up_input', 'get_up', 'knockdown', 'box'].includes(event.kind)) || event.kind === 'result')) continue; + log.events.push({ bout: log.bout, kind: event.kind, tick: event.tick, detail: event.detail }); + if (event.kind === 'result') log.bout += 1; + } } - counted.renderer = renderer; - requestAnimationFrame(keep); + return receive(message); }; - counted = { renderer: window.__handsApp?.renderer ?? null }; - requestAnimationFrame(keep); const press = (side) => { - window.__getUpPresses += 1; - const pad = how === 'touch' ? document.querySelector(`.touch-getup-pad[data-getup-side="${side}"]`) : null; - if (pad !== null) { - pad.dispatchEvent(new PointerEvent('pointerdown', { bubbles: true, pointerId: 9, pointerType: 'touch' })); - return; - } + window.__getUpRecordPress(side); const code = side === 'get_up_left' ? 'ArrowLeft' : 'ArrowRight'; window.dispatchEvent(new KeyboardEvent('keydown', { code, key: code })); window.dispatchEvent(new KeyboardEvent('keyup', { code, key: code })); }; if (how === 'mash') { let left = true; - setInterval(() => { - if (!window.__handsApp?.renderer?.getUpView) return; - press(left ? 'get_up_left' : 'get_up_right'); - left = !left; + const mash = setInterval(() => { + if (window.__getUpStop) clearInterval(mash); + else if (app.renderer?.getUpView) { + press(left ? 'get_up_left' : 'get_up_right'); + left = !left; + } }, 100); return; } + if (how === 'watch') return; let answered = null; const loop = () => { - const view = window.__handsApp?.renderer?.getUpView; + if (window.__getUpStop) return; + const view = app.renderer?.getUpView; const prompt = view?.prompt; if (prompt && !view.risen && answered !== prompt.beat && view.pressTick >= prompt.beat) { answered = prompt.beat; @@ -935,12 +952,67 @@ async function installGetUpPlayer(page, mode) { }, mode); } -/** A page's get-up presses and what the server said of them, by verdict, over every bout since installGetUpPlayer. */ +/** Taps the lit get-up pad at its centre, as a finger would, each time the page's own ring reaches its target, until `done`. */ +async function tapGetUpPads(page, done) { + while (!done()) { + const side = await page.evaluate(() => { + const view = window.__handsApp?.renderer?.getUpView; + const prompt = view?.prompt; + if (!prompt || view.risen || window.__getUpTapped === prompt.beat || view.pressTick < prompt.beat - 0.5) return null; + window.__getUpTapped = prompt.beat; + window.__getUpRecordPress(prompt.side); + return prompt.side; + }).catch(() => null); + if (side === null) { + await wait(8); + continue; + } + const box = await page.locator(`.touch-getup-pad[data-getup-side="${side}"]`).boundingBox(); + if (box !== null) await page.touchscreen.tap(box.x + box.width / 2, box.y + box.height / 2); + } +} + +/** + * A page's get-up presses since installGetUpPlayer and what the server said of them, over every bout. Each verdict is + * paired with the press whose press-clock tick it was scored nearest to; a press left over is put down to the cause the + * server's events show: he was up, the bout was over or the count had run out before it arrived, or it was made before + * its prompt's lead-in. One left with no cause is unexplained. + */ function getUpTally(page) { return page.evaluate(() => { - const verdicts = { ...(window.__getUpVerdictsBefore ?? {}) }; - for (const [kind, value] of Object.entries(window.__handsApp?.renderer?.getUpVerdicts ?? {})) verdicts[kind] = (verdicts[kind] ?? 0) + value; - return { presses: window.__getUpPresses ?? 0, verdicts }; + const log = window.__getUpLog ?? { presses: [], events: [] }; + const verdictEvents = log.events.filter((event) => event.kind === 'get_up_input'); + const verdicts = {}; + for (const event of verdictEvents) verdicts[event.detail] = (verdicts[event.detail] ?? 0) + 1; + // Each verdict goes to the press of its bout whose press-clock tick is nearest the tick it was scored on. + const judged = new Set(); + for (const event of verdictEvents) { + let best = -1; + log.presses.forEach((press, index) => { + if (judged.has(index) || press.tick === null || press.bout !== event.bout || Math.abs(event.tick - press.tick) > 3) return; + if (best < 0 || Math.abs(event.tick - press.tick) < Math.abs(event.tick - log.presses[best].tick)) best = index; + }); + if (best >= 0) judged.add(best); + } + const unjudged = {}; + const unexplained = []; + for (const [index, press] of log.presses.entries()) { + if (judged.has(index)) continue; + // Whatever ended his count by the time the press arrived (a tick or so in flight). + const bout = log.events.filter((event) => event.bout === press.bout); + const knock = bout.filter((event) => event.kind === 'knockdown' && event.tick <= press.tick).at(-1); + const ended = bout.find((event) => knock !== undefined && event.tick > knock.tick && event.tick <= press.tick + 1 && ['get_up', 'result', 'box', 'knockdown'].includes(event.kind)); + const cause = press.tick === null ? 'pressed with no panel' + : ended?.kind === 'get_up' ? 'he was already up' + : ended?.kind === 'result' ? 'the bout was over' + : knock !== undefined && press.tick >= knock.tick + 200 ? 'the count had run out' + : press.beat === null ? 'after the last prompt was answered' + : press.tick < press.beat - 20 + 7 ? 'before its prompt\'s lead-in' + : null; + if (cause === null) unexplained.push({ ...press, events: log.events.filter((event) => Math.abs(event.tick - press.tick) <= 30) }); + else unjudged[cause] = (unjudged[cause] ?? 0) + 1; + } + return { presses: log.presses.length, judged: verdictEvents.length, verdicts, unjudged, unexplained }; }); } diff --git a/scripts/hands_parity_fixtures.py b/scripts/hands_parity_fixtures.py index 4b3be00e..8a47a7c6 100644 --- a/scripts/hands_parity_fixtures.py +++ b/scripts/hands_parity_fixtures.py @@ -13,7 +13,9 @@ was parried, flinched mid-punch, finished a punch, pressed a punch during another's recovery or late in a flinch, slipped, slipped out of a punch's recovery, or walked on injured legs; - injury-table.json: the injury ids in the engine's order, and the hand, startup and recovery of - every punch for each state a fighter's arms can be in. + every punch for each state a fighter's arms can be in; +- get-up-table.json: the verdict on a get-up press scored at each tick around a prompt's beat, for + the side shown and the other, with the meter empty and with presses in it. uv run python scripts/hands_parity_fixtures.py # rewrite the files uv run python scripts/hands_parity_fixtures.py --check # fail if they are out of date @@ -28,7 +30,14 @@ from intelstream.hands.engine import BoxingEngine, EngineConfig from intelstream.hands.protocol import encode_snapshot -from intelstream.hands.rules import PUNCH_RULES, STYLE_RULES, style_punch_rule +from intelstream.hands.rules import ( + COUNT_TICK_INTERVAL, + GET_UP_LATE_TICKS, + GET_UP_ZONE_TICKS, + PUNCH_RULES, + STYLE_RULES, + style_punch_rule, +) from intelstream.hands.types import ( ActionKind, DefensivePose, @@ -303,6 +312,39 @@ def injury_table() -> dict[str, list[str]]: return {"ids": [injury.value for injury in Injury], "punches": rows} +def get_up_table() -> list[str]: + """What the engine says of a get-up press scored at each tick from a count before the first prompt's beat to the + end of its late ticks, for the side shown and the other, with the meter empty and with three in it: + "offset,shown|other,meter,detail,amount", detail none for a press that does nothing.""" + rows = [] + for meter in (0, 3): + for offset in range(1 - COUNT_TICK_INTERVAL, GET_UP_ZONE_TICKS + GET_UP_LATE_TICKS + 1): + for shown in (True, False): + engine = _engine((FighterStyle.BALANCED, FighterStyle.BALANCED), 360) + downed = engine.fighter("one") + engine._knock_down(downed, engine.fighter("two")) + downed.get_up_meter = meter + beat = downed.get_up_window_start_tick + GET_UP_ZONE_TICKS + prompt = downed.get_up_prompt + while engine.tick < beat + offset - 1: + engine.step() + other = ( + ActionKind.GET_UP_RIGHT + if prompt is ActionKind.GET_UP_LEFT + else ActionKind.GET_UP_LEFT + ) + side = prompt if shown else other + assert side is not None + press = InputCommand(engine.tick + 1, engine.tick, actions=(MovementAction(side),)) + events = engine.step({"one": press}).events + verdict = next((event for event in events if event.kind == "get_up_input"), None) + detail, amount = ( + ("none", 0) if verdict is None else (verdict.detail, verdict.amount) + ) + rows.append(f"{offset},{'shown' if shown else 'other'},{meter},{detail},{amount}") + return rows + + def documents() -> dict[Path, str]: return { FIXTURES / "punch-timing-table.json": json.dumps(punch_timing_rows(), separators=(",", ":")) @@ -316,6 +358,7 @@ def documents() -> dict[Path, str]: injury_table(), separators=(",", ":"), sort_keys=True ) + "\n", + FIXTURES / "get-up-table.json": json.dumps(get_up_table()) + "\n", } diff --git a/src/intelstream/hands/cpu.py b/src/intelstream/hands/cpu.py index b5d03211..b752f764 100644 --- a/src/intelstream/hands/cpu.py +++ b/src/intelstream/hands/cpu.py @@ -143,8 +143,9 @@ class CpuProfile: """Chance per look to slip or duck ahead of a busy opponent's punches.""" get_up_percent: int """Chance to press the side shown, before head trauma and earlier knockdowns take theirs.""" - get_up_jitter: float - """Spread of a get-up press around the beat, a standard deviation in ticks.""" + get_up_jitter: int + """Spread of a get-up press around the beat: the sum of this many steps of -1, 0 or +1 tick, a standard + deviation of sqrt(2n/3) ticks.""" clinch_percent: int taunt_percent: int exploit_percent: int @@ -182,7 +183,7 @@ class CpuProfile: admire_ticks=60, head_movement_percent=4, get_up_percent=106, - get_up_jitter=2.45, + get_up_jitter=9, clinch_percent=15, taunt_percent=3, exploit_percent=0, @@ -214,7 +215,7 @@ class CpuProfile: admire_ticks=6, head_movement_percent=12, get_up_percent=145, - get_up_jitter=2.35, + get_up_jitter=8, clinch_percent=40, taunt_percent=2, exploit_percent=50, @@ -246,7 +247,7 @@ class CpuProfile: admire_ticks=0, head_movement_percent=14, get_up_percent=145, - get_up_jitter=1.8, + get_up_jitter=5, clinch_percent=65, taunt_percent=1, exploit_percent=80, @@ -1109,7 +1110,8 @@ def _get_up(self, tick: int, me: FighterState) -> tuple[SemanticAction, ...]: if me.get_up_window_start_tick != self._get_up_window: self._get_up_window = me.get_up_window_start_tick beat = (me.get_up_window_start_tick + me.get_up_window_end_tick) // 2 - self._get_up_press_tick = beat + round(self._rng.gauss(0, self.profile.get_up_jitter)) + error = sum(self._rng.randint(-1, 1) for _ in range(self.profile.get_up_jitter)) + self._get_up_press_tick = beat + error accuracy = ( self.profile.get_up_percent - me.trauma.head // GET_UP_ACCURACY_TRAUMA_DIVISOR diff --git a/src/intelstream/hands/engine.py b/src/intelstream/hands/engine.py index d2cbfac1..50ce9ccf 100644 --- a/src/intelstream/hands/engine.py +++ b/src/intelstream/hands/engine.py @@ -187,6 +187,7 @@ CLINCH_TICKS: Final = 24 FOUL_RECOVERY_TICKS: Final = 30 MAX_PENDING_ACTIONS: Final = 1 +GET_UP_KINDS: Final = (ActionKind.GET_UP_LEFT, ActionKind.GET_UP_RIGHT) TAUNT_TICKS: Final = 40 MOVEMENT_FIXED_SCALE: Final = 1000 # Conditioning a punch costs is worked out in thousandths of a point, so a style's saving survives @@ -789,7 +790,21 @@ def submit_input(self, player_id: str, command: InputCommand) -> bool: move_y=command.move_y, defense=command.defense, ) - if command.actions: + if command.actions and self.phase is MatchPhase.KNOCKDOWN and player_id == self._downed_id: + # A tick judges a downed fighter's first get-up press, as his client does: one already waiting + # stays, and of a frame's presses the first is taken. + press = next( + ( + action + for action in command.actions + if isinstance(action, MovementAction) and action.kind in GET_UP_KINDS + ), + None, + ) + if press is not None and not fighter.pending_actions: + fighter.pending_actions[:] = [press] + fighter.pending_action_expires_tick = self.tick + ACTION_BUFFER_TICKS + elif command.actions: recent_actions: list[SemanticAction] = [] for action in command.actions: if not recent_actions or action != recent_actions[-1]: @@ -2375,7 +2390,7 @@ def _score_get_up_action(self, fighter: FighterState, action: MovementAction) -> prompt shows as soon as it is made. A press before that, during the fall or after the attempt, does nothing.""" prompt = fighter.get_up_prompt - if prompt is None or action.kind not in (ActionKind.GET_UP_LEFT, ActionKind.GET_UP_RIGHT): + if prompt is None or action.kind not in GET_UP_KINDS: return beat = fighter.get_up_window_start_tick + GET_UP_ZONE_TICKS if self.tick <= beat - COUNT_TICK_INTERVAL + GET_UP_ZONE_TICKS + GET_UP_LATE_TICKS: diff --git a/src/intelstream/hands/static/assets/hands.css b/src/intelstream/hands/static/assets/hands.css index f26100ec..555ba0cd 100644 --- a/src/intelstream/hands/static/assets/hands.css +++ b/src/intelstream/hands/static/assets/hands.css @@ -1,2 +1,2 @@ -:root{color:#f2f6ff;font-synthesis:none;background:#07090e;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html,body,#app{width:100%;height:100%;margin:0;overflow:hidden}.activity{background:#080b12;width:100%;height:100%;min-height:320px;position:relative}.fight{touch-action:none;width:100%;height:100%;display:block}.topbar{top:max(8px,env(safe-area-inset-top));-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);letter-spacing:.03em;white-space:nowrap;background:#07101ad9;border:1px solid #ffffff24;border-radius:3px;align-items:center;gap:12px;padding:7px 10px;display:flex;position:absolute;left:50%;transform:translate(-50%)}.topbar strong{color:#f1cc72;letter-spacing:.18em}.topbar span{color:#aebbd0;font-size:12px}.topbar .spectator-role{color:#f1cc72;font-weight:800}.spectator-role[hidden]{display:none}.topbar button,.panel button{color:#eaf1ff;cursor:pointer;background:#172334;border:1px solid #ffffff2e;border-radius:3px;padding:6px 10px}.overlay{left:50%;bottom:max(18px,env(safe-area-inset-bottom));text-align:center;pointer-events:none;justify-items:center;gap:9px;max-width:min(90vw,540px);display:grid;position:absolute;transform:translate(-50%)}.overlay[hidden]{display:none}.overlay[data-raised]{bottom:max(124px,calc(env(safe-area-inset-bottom) + 112px))}.overlay[data-result]{bottom:max(26px,calc(env(safe-area-inset-bottom) + 14px))}.status[hidden]{display:none}.status{color:#e8effc;background:#07101adf;border:1px solid #ffffff1f;border-radius:3px;margin:0;padding:8px 13px;font-weight:600}.hint{letter-spacing:.02em;color:#aebbd0;background:#07101ab8;border:1px solid #ffffff14;border-radius:3px;margin:0;padding:6px 12px;font-size:12px}.hint[hidden]{display:none}.primary{pointer-events:auto;color:#081018;cursor:pointer;background:#f1cc72;border:0;border-radius:3px;padding:10px 18px;font-weight:800}.primary:disabled{opacity:.55;cursor:wait}.panel{z-index:4;background:#08111cf2;border:1px solid #ffffff2b;width:min(390px,100vw - 28px);max-height:calc(100vh - 80px);padding:16px 20px;position:absolute;top:58px;right:14px;overflow:auto;box-shadow:0 14px 45px #0009}.panel h2{color:#f1cc72;margin:0 0 10px;font-size:17px}.panel ul{color:#d7e0ee;margin:0;padding-left:19px;font-size:13px;line-height:1.55}.settings{gap:12px;display:grid}.settings[hidden],.panel[hidden]{display:none}.diagnostics h3{color:#f1cc72;margin:12px 0 4px;font-size:13px}.diagnostics pre{white-space:pre-wrap;word-break:break-word;color:#c8d3e6;background:#0c1622;border:1px solid #ffffff14;border-radius:3px;margin:0 0 8px;padding:8px;font-size:11px;line-height:1.45}.settings label{justify-content:space-between;align-items:center;gap:14px;font-size:14px;display:flex}.settings input[type=range]{width:190px}.settings select{color:#f2f6ff;background:#172334;border:1px solid #ffffff2e;padding:5px}.sr-summary{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.lab-controls{left:50%;bottom:max(10px,env(safe-area-inset-bottom));color:#d7e0ee;white-space:nowrap;background:#07101ae6;border:1px solid #ffffff24;border-radius:3px;align-items:center;gap:10px;padding:8px 12px;font-size:12px;display:flex;position:absolute;transform:translate(-50%)}.lab-controls button,.lab-controls select{color:#eaf1ff;cursor:pointer;background:#172334;border:1px solid #ffffff2e;border-radius:3px;padding:5px 9px;font-size:12px}.lab-controls input[type=number]{color:#eaf1ff;background:#0c1622;border:1px solid #ffffff2e;border-radius:3px;width:56px;padding:4px}.lab-controls label{cursor:pointer;align-items:center;gap:4px;display:flex}.lab-controls [data-lab-metrics]{color:#8fa3c8;text-overflow:ellipsis;max-width:40vw;overflow:hidden}@media (width<=700px){.topbar{flex-wrap:wrap;justify-content:center;left:8px;right:8px;transform:none}.topbar span:not(.spectator-role){display:none}.topbar button{padding:5px 8px}.panel{top:74px}.status{font-size:13px}.overlay{bottom:10px}.overlay[data-raised]{bottom:116px}.overlay[data-result]{bottom:26px}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}.model-panel{width:min(430px,100vw - 28px);max-height:calc(100vh - 80px);top:58px;left:14px;right:auto}.model-clips{gap:4px;max-height:200px;display:grid;overflow:auto}.model-clips button{text-align:left;color:#eaf1ff;cursor:pointer;background:#172334;border:1px solid #ffffff2e;border-radius:3px;padding:5px 8px;font-size:12px}.model-clips button.active{color:#f1cc72;border-color:#f1cc72}.model-row{align-items:center;gap:10px;margin-top:8px;font-size:12px;display:flex}.model-row label{align-items:center;gap:6px;display:flex}.model-inventory,.model-warnings{color:#c8d3e6;white-space:pre-wrap;max-height:220px;font-size:10px;line-height:1.4;overflow:auto}.model-credit{color:#9cabc1;margin:2px 0 0;font-size:11px;line-height:1.35}.model-credit a{color:#c7d5eb}.touch-controls{pointer-events:none;z-index:3;-webkit-user-select:none;user-select:none;font-family:Inter,system-ui,sans-serif;position:absolute;inset:0}.touch-controls.disabled{display:none}.touch-controls.resting{opacity:.4}.touch-stick{left:0;top:calc(max(8px,env(safe-area-inset-top)) + 48px);pointer-events:auto;touch-action:none;width:46%;position:absolute;bottom:0}.touch-stick-base{opacity:0;background:#0a121f66;border:2px solid #fff5;border-radius:50%;width:132px;height:132px;margin:-66px 0 0 -66px;transition:opacity .12s;position:absolute}.touch-stick-base.active{opacity:1}.touch-stick-knob{background:#f1cc72cc;border-radius:50%;width:56px;height:56px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 2px 10px #0008}.touch-pads{right:max(12px,env(safe-area-inset-right));bottom:max(118px,calc(env(safe-area-inset-bottom) + 118px));pointer-events:none;touch-action:none;gap:8px;display:grid;position:absolute}.touch-pad,.touch-mod,.touch-move{pointer-events:auto}.touch-grid{grid-template-columns:repeat(2,92px);gap:6px;display:grid}.touch-pad{color:#fff;letter-spacing:.01em;cursor:pointer;background:linear-gradient(90deg,#1d4ed8aa 0 50%,#b91c1caa 50% 100%);border:1px solid #fff4;border-radius:12px;justify-content:space-between;align-items:center;height:56px;padding:0 7px;font-size:11px;font-weight:800;display:flex;position:relative}.touch-pad .touch-pad-hand{opacity:.8;font-size:10px}.touch-pad .touch-pad-label{font-size:10px}.touch-pad.pressed{filter:brightness(1.5);transform:scale(.96)}.touch-mods{grid-template-columns:repeat(2,92px);gap:6px;display:grid}.touch-mod{color:#e8effc;letter-spacing:.06em;cursor:pointer;background:#0a121fcc;border:1px solid #fff4;border-radius:9px;height:32px;padding:0;font-size:11px;font-weight:800}.touch-mod.pressed{color:#081018;background:#f1cc72}.touch-controls.knockdown .touch-pad{background:linear-gradient(90deg,#1f8a4caa 0 50%,#1f8a4caa 50% 100%)}.touch-moves{grid-template-columns:repeat(3,1fr);grid-template-areas:"sl wv sr""pl cl cl";gap:6px;margin-bottom:4px;display:grid}.touch-move{color:#d8f3ee;letter-spacing:.05em;white-space:nowrap;cursor:pointer;background:#0a1a20cc;border:1px solid #7fd3c766;border-radius:9px;height:30px;padding:0;font-size:10px;font-weight:800}.touch-move.pressed{color:#081018;background:#f1cc72}.touch-move[data-move=slip_left]{grid-area:sl}.touch-move[data-move=weave]{grid-area:wv}.touch-move[data-move=slip_right]{grid-area:sr}.touch-move[data-move=pull]{grid-area:pl}.touch-move[data-move=clinch]{grid-area:cl}.touch-controls.knockdown .touch-move,.touch-controls.knockdown .touch-mod{visibility:hidden}@media (orientation:landscape){.touch-pads{grid-template-columns:auto auto;grid-template-areas:"moves mods""moves grid";column-gap:12px}.touch-moves{grid-area:moves;grid-template-columns:repeat(2,58px);grid-template-areas:"sl sr""wv pl""cl cl";align-self:end;margin-bottom:0}.touch-mods{grid-area:mods}.touch-grid{grid-area:grid}}@media (orientation:landscape) and (height<=350px){.touch-pads{bottom:max(112px,calc(env(safe-area-inset-bottom) + 112px));row-gap:6px}.touch-grid,.touch-mods,.touch-moves{gap:4px}.touch-pad{height:44px}.touch-mod,.touch-move{height:26px}}@media (pointer:fine) and (hover:hover){.touch-controls{display:none}}.corner{z-index:3;left:50%;bottom:max(124px,calc(env(safe-area-inset-bottom) + 112px));text-align:center;background:#07101aeb;border:1px solid #f1cc7259;border-radius:3px;gap:8px;width:min(660px,100vw - 24px);padding:10px 12px 9px;display:grid;position:absolute;transform:translate(-50%);box-shadow:0 10px 30px #0009}.corner[hidden]{display:none}.corner-title{color:#f1cc72;letter-spacing:.18em;margin:0;font-size:12px;font-weight:800}.corner-choices{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.corner-choices button{text-align:left;color:#eaf1ff;cursor:pointer;font:inherit;background:#172334;border:1px solid #ffffff2e;border-radius:3px;grid-template-columns:auto 1fr;align-items:center;gap:2px 9px;padding:8px 10px;display:grid}.corner-choices kbd{color:#f1cc72;background:#0b1520;border:1px solid #ffffff38;border-radius:3px;grid-row:span 2;place-items:center;width:26px;height:26px;font:800 13px ui-monospace,monospace;display:grid}.corner-choices strong{font-size:13px}.corner-choices span{color:#aebbd0;font-size:11px}.corner-choices button:hover:not(:disabled){border-color:#f1cc72aa}.corner-choices button:disabled{cursor:default;opacity:.42}.corner-choices button[data-picked]{opacity:1;background:#272515;border-color:#f1cc72;box-shadow:inset 0 0 0 1px #f1cc72}.corner-status{color:#d7e0ee;margin:0;font-size:12px}@media (width<=560px){.corner{bottom:max(112px,calc(env(safe-area-inset-bottom) + 100px));padding:8px 9px}.corner-choices{grid-template-columns:1fr;gap:6px}.corner-choices button{padding:6px 9px}}@media (height<=460px){.corner{bottom:max(116px,calc(env(safe-area-inset-bottom) + 104px));gap:4px;width:min(600px,100vw - 24px);padding:5px 8px}.corner-title{font-size:10px}.corner-choices{gap:6px}.corner-choices button{column-gap:7px;padding:4px 7px}.corner-choices kbd{width:22px;height:22px;font-size:12px}.corner-choices strong{font-size:12px}.corner-choices span{font-size:10px}.corner-status{font-size:11px}}.cpu-picker{pointer-events:auto;background:#07101adf;border:1px solid #ffffff1f;border-radius:3px;justify-items:center;gap:8px;width:min(90vw,500px);padding:10px 12px;display:grid}.cpu-picker[hidden]{display:none}.cpu-picker p{letter-spacing:.04em;color:#f1cc72;margin:0;font-size:13px;font-weight:800}.cpu-levels{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;width:100%;display:grid}.cpu-levels button{color:#eaf1ff;cursor:pointer;min-height:52px;font:inherit;text-align:center;background:#172334;border:1px solid #ffffff2e;border-radius:3px;align-content:center;gap:3px;padding:8px 6px;display:grid}.cpu-levels button strong{letter-spacing:.03em;font-size:14px}.cpu-levels button span{color:#aebbd0;font-size:11px;line-height:1.25}.cpu-levels button:hover,.cpu-levels button:focus-visible{border-color:#f1cc72;outline:none}@media (height<=480px){.cpu-picker{gap:5px;padding:6px 10px}.cpu-levels button{gap:1px;min-height:40px;padding:5px 6px}.cpu-levels button strong{font-size:13px}.cpu-levels button span{font-size:10px;line-height:1.15}}.overlay[data-touch-hint]{left:max(12px,env(safe-area-inset-left));max-width:min(44vw,300px,calc(100vw - 226px - env(safe-area-inset-left) - env(safe-area-inset-right)));text-align:left;justify-items:start;transform:none}@media (orientation:landscape){.overlay[data-touch-hint]{max-width:min(44vw,300px,calc(100vw - 360px - env(safe-area-inset-left) - env(safe-area-inset-right)))}}.overlay[data-touch-hint] .hint{font-size:11px;line-height:1.35}.panel h3{letter-spacing:.08em;text-transform:uppercase;color:#f1cc72;margin:12px 0 6px;font-size:12px}.panel h3:first-of-type{margin-top:4px}details.diagnostics summary{cursor:pointer;color:#f1cc72;font-size:13px;font-weight:700}details.diagnostics[open] summary{margin-bottom:6px}.touch-getup{pointer-events:none;display:none;position:absolute;inset:0}.knockdown .touch-getup{display:block}.knockdown .touch-pads,.knockdown .touch-stick{display:none}.touch-getup-pad{pointer-events:auto;touch-action:none;color:#eaf1ff;letter-spacing:.06em;opacity:.4;cursor:pointer;background:#1d2a3c;border:2px solid #ffffff40;border-radius:16px;font:900 22px Inter,system-ui,sans-serif;position:absolute}.touch-getup-pad.wanted{opacity:1;color:#fff;background:#23a85c;border-color:#d8ffe6;box-shadow:0 0 0 3px #7dffa8,0 6px 18px #0009}.style-picker{z-index:3;text-align:center;background:#07101af2;border:1px solid #f1cc7266;border-radius:3px;gap:10px;width:min(980px,100vw - 24px);max-height:calc(100% - 132px);padding:12px 14px;display:grid;position:absolute;top:50%;left:50%;overflow:auto;transform:translate(-50%,-50%);box-shadow:0 14px 40px #000b}.style-picker[hidden]{display:none}.style-picker header{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.style-title{color:#f1cc72;letter-spacing:.18em;margin:0;font-size:13px;font-weight:800}.style-clock{color:#eaf1ff;margin:0;font:800 15px ui-monospace,monospace}.style-cards{grid-template-columns:repeat(5,1fr);gap:8px;display:grid}.style-cards button{text-align:left;color:#eaf1ff;cursor:pointer;font:inherit;background:#172334;border:1px solid #ffffff2e;border-radius:3px;grid-template-rows:auto auto 1fr auto;gap:5px;padding:10px;display:grid}.style-cards kbd{color:#f1cc72;background:#0b1520;border:1px solid #ffffff38;border-radius:3px;justify-self:start;place-items:center;width:22px;height:22px;font:800 12px ui-monospace,monospace;display:grid}.style-cards strong{font-size:14px}.style-cards span{color:#aebbd0;font-size:11px;line-height:1.35}.style-stats{gap:3px;margin:2px 0 0;padding:0;list-style:none;display:grid}.style-stats li{grid-template-columns:66px 1fr;align-items:center;gap:6px;display:grid}.style-stats small{letter-spacing:.05em;color:#8fa3c8;text-transform:uppercase;font-size:9px}.style-stats i{background:linear-gradient(90deg,#f1cc72,#d98a3a);border-radius:2px;height:5px;display:block}.style-stats i[data-value="1"]{width:20%}.style-stats i[data-value="2"]{width:40%}.style-stats i[data-value="3"]{width:60%}.style-stats i[data-value="4"]{width:80%}.style-stats i[data-value="5"]{width:100%}.style-cards button:hover:not(:disabled){border-color:#f1cc72aa}.style-cards button:disabled{cursor:default;opacity:.5}.style-cards button[data-chosen]{opacity:1;background:#272515;border-color:#f1cc72;box-shadow:inset 0 0 0 1px #f1cc72}.style-status{color:#d7e0ee;margin:0;font-size:12px}@media (width<=700px){.style-picker{top:auto;bottom:max(12px,env(safe-area-inset-bottom));max-height:calc(100% - 96px);padding:9px 10px;transform:translate(-50%)}.style-cards{grid-template-columns:1fr 1fr;gap:6px}.style-cards button{grid-template-rows:auto 1fr;gap:3px;padding:8px 9px}.style-cards kbd,.style-stats{display:none}.style-cards strong{font-size:13px}.style-cards span{font-size:11px}.style-cards button:last-child{grid-column:1/-1}}@media (height<=480px){.style-picker{gap:5px;max-height:calc(100% - 60px);padding:6px 9px;top:auto;bottom:6px;transform:translate(-50%)}.style-cards{grid-template-columns:repeat(5,1fr);gap:5px}.style-cards button{gap:2px;padding:5px 6px}.style-cards span{display:none}.style-cards button:last-child{grid-column:auto}.style-stats{gap:1px;display:grid}.style-stats li{grid-template-columns:52px 1fr}.style-stats small{font-size:8px}} +:root{color:#f2f6ff;font-synthesis:none;background:#07090e;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html,body,#app{width:100%;height:100%;margin:0;overflow:hidden}.activity{background:#080b12;width:100%;height:100%;min-height:320px;position:relative}.fight{touch-action:none;width:100%;height:100%;display:block}.topbar{top:max(8px,env(safe-area-inset-top));-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);letter-spacing:.03em;white-space:nowrap;background:#07101ad9;border:1px solid #ffffff24;border-radius:3px;align-items:center;gap:12px;padding:7px 10px;display:flex;position:absolute;left:50%;transform:translate(-50%)}.topbar strong{color:#f1cc72;letter-spacing:.18em}.topbar span{color:#aebbd0;font-size:12px}.topbar .spectator-role{color:#f1cc72;font-weight:800}.spectator-role[hidden]{display:none}.topbar button,.panel button{color:#eaf1ff;cursor:pointer;background:#172334;border:1px solid #ffffff2e;border-radius:3px;padding:6px 10px}.overlay{left:50%;bottom:max(18px,env(safe-area-inset-bottom));text-align:center;pointer-events:none;justify-items:center;gap:9px;max-width:min(90vw,540px);display:grid;position:absolute;transform:translate(-50%)}.overlay[hidden]{display:none}.overlay[data-raised]{bottom:max(124px,calc(env(safe-area-inset-bottom) + 112px))}.overlay[data-result]{bottom:max(26px,calc(env(safe-area-inset-bottom) + 14px))}.status[hidden]{display:none}.status{color:#e8effc;background:#07101adf;border:1px solid #ffffff1f;border-radius:3px;margin:0;padding:8px 13px;font-weight:600}.hint{letter-spacing:.02em;color:#aebbd0;background:#07101ab8;border:1px solid #ffffff14;border-radius:3px;margin:0;padding:6px 12px;font-size:12px}.hint[hidden]{display:none}.primary{pointer-events:auto;color:#081018;cursor:pointer;background:#f1cc72;border:0;border-radius:3px;padding:10px 18px;font-weight:800}.primary:disabled{opacity:.55;cursor:wait}.panel{z-index:4;background:#08111cf2;border:1px solid #ffffff2b;width:min(390px,100vw - 28px);max-height:calc(100vh - 80px);padding:16px 20px;position:absolute;top:58px;right:14px;overflow:auto;box-shadow:0 14px 45px #0009}.panel h2{color:#f1cc72;margin:0 0 10px;font-size:17px}.panel ul{color:#d7e0ee;margin:0;padding-left:19px;font-size:13px;line-height:1.55}.settings{gap:12px;display:grid}.settings[hidden],.panel[hidden]{display:none}.diagnostics h3{color:#f1cc72;margin:12px 0 4px;font-size:13px}.diagnostics pre{white-space:pre-wrap;word-break:break-word;color:#c8d3e6;background:#0c1622;border:1px solid #ffffff14;border-radius:3px;margin:0 0 8px;padding:8px;font-size:11px;line-height:1.45}.settings label{justify-content:space-between;align-items:center;gap:14px;font-size:14px;display:flex}.settings input[type=range]{width:190px}.settings select{color:#f2f6ff;background:#172334;border:1px solid #ffffff2e;padding:5px}.sr-summary{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.lab-controls{left:50%;bottom:max(10px,env(safe-area-inset-bottom));color:#d7e0ee;white-space:nowrap;background:#07101ae6;border:1px solid #ffffff24;border-radius:3px;align-items:center;gap:10px;padding:8px 12px;font-size:12px;display:flex;position:absolute;transform:translate(-50%)}.lab-controls button,.lab-controls select{color:#eaf1ff;cursor:pointer;background:#172334;border:1px solid #ffffff2e;border-radius:3px;padding:5px 9px;font-size:12px}.lab-controls input[type=number]{color:#eaf1ff;background:#0c1622;border:1px solid #ffffff2e;border-radius:3px;width:56px;padding:4px}.lab-controls label{cursor:pointer;align-items:center;gap:4px;display:flex}.lab-controls [data-lab-metrics]{color:#8fa3c8;text-overflow:ellipsis;max-width:40vw;overflow:hidden}@media (width<=700px){.topbar{flex-wrap:wrap;justify-content:center;left:8px;right:8px;transform:none}.topbar span:not(.spectator-role){display:none}.topbar button{padding:5px 8px}.panel{top:74px}.status{font-size:13px}.overlay{bottom:10px}.overlay[data-raised]{bottom:116px}.overlay[data-result]{bottom:26px}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}.model-panel{width:min(430px,100vw - 28px);max-height:calc(100vh - 80px);top:58px;left:14px;right:auto}.model-clips{gap:4px;max-height:200px;display:grid;overflow:auto}.model-clips button{text-align:left;color:#eaf1ff;cursor:pointer;background:#172334;border:1px solid #ffffff2e;border-radius:3px;padding:5px 8px;font-size:12px}.model-clips button.active{color:#f1cc72;border-color:#f1cc72}.model-row{align-items:center;gap:10px;margin-top:8px;font-size:12px;display:flex}.model-row label{align-items:center;gap:6px;display:flex}.model-inventory,.model-warnings{color:#c8d3e6;white-space:pre-wrap;max-height:220px;font-size:10px;line-height:1.4;overflow:auto}.model-credit{color:#9cabc1;margin:2px 0 0;font-size:11px;line-height:1.35}.model-credit a{color:#c7d5eb}.touch-controls{pointer-events:none;z-index:3;-webkit-user-select:none;user-select:none;font-family:Inter,system-ui,sans-serif;position:absolute;inset:0}.touch-controls.disabled{display:none}.touch-controls.resting{opacity:.4}.touch-stick{left:0;top:calc(max(8px,env(safe-area-inset-top)) + 48px);pointer-events:auto;touch-action:none;width:46%;position:absolute;bottom:0}.touch-stick-base{opacity:0;background:#0a121f66;border:2px solid #fff5;border-radius:50%;width:132px;height:132px;margin:-66px 0 0 -66px;transition:opacity .12s;position:absolute}.touch-stick-base.active{opacity:1}.touch-stick-knob{background:#f1cc72cc;border-radius:50%;width:56px;height:56px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 2px 10px #0008}.touch-pads{right:max(12px,env(safe-area-inset-right));bottom:max(118px,calc(env(safe-area-inset-bottom) + 118px));pointer-events:none;touch-action:none;gap:8px;display:grid;position:absolute}.touch-pad,.touch-mod,.touch-move{pointer-events:auto}.touch-grid{grid-template-columns:repeat(2,92px);gap:6px;display:grid}.touch-pad{color:#fff;letter-spacing:.01em;cursor:pointer;background:linear-gradient(90deg,#1d4ed8aa 0 50%,#b91c1caa 50% 100%);border:1px solid #fff4;border-radius:12px;justify-content:space-between;align-items:center;height:56px;padding:0 7px;font-size:11px;font-weight:800;display:flex;position:relative}.touch-pad .touch-pad-hand{opacity:.8;font-size:10px}.touch-pad .touch-pad-label{font-size:10px}.touch-pad.pressed{filter:brightness(1.5);transform:scale(.96)}.touch-mods{grid-template-columns:repeat(2,92px);gap:6px;display:grid}.touch-mod{color:#e8effc;letter-spacing:.06em;cursor:pointer;background:#0a121fcc;border:1px solid #fff4;border-radius:9px;height:32px;padding:0;font-size:11px;font-weight:800}.touch-mod.pressed{color:#081018;background:#f1cc72}.touch-moves{grid-template-columns:repeat(3,1fr);grid-template-areas:"sl wv sr""pl cl cl";gap:6px;margin-bottom:4px;display:grid}.touch-move{color:#d8f3ee;letter-spacing:.05em;white-space:nowrap;cursor:pointer;background:#0a1a20cc;border:1px solid #7fd3c766;border-radius:9px;height:30px;padding:0;font-size:10px;font-weight:800}.touch-move.pressed{color:#081018;background:#f1cc72}.touch-move[data-move=slip_left]{grid-area:sl}.touch-move[data-move=weave]{grid-area:wv}.touch-move[data-move=slip_right]{grid-area:sr}.touch-move[data-move=pull]{grid-area:pl}.touch-move[data-move=clinch]{grid-area:cl}@media (orientation:landscape){.touch-pads{grid-template-columns:auto auto;grid-template-areas:"moves mods""moves grid";column-gap:12px}.touch-moves{grid-area:moves;grid-template-columns:repeat(2,58px);grid-template-areas:"sl sr""wv pl""cl cl";align-self:end;margin-bottom:0}.touch-mods{grid-area:mods}.touch-grid{grid-area:grid}}@media (orientation:landscape) and (height<=350px){.touch-pads{bottom:max(112px,calc(env(safe-area-inset-bottom) + 112px));row-gap:6px}.touch-grid,.touch-mods,.touch-moves{gap:4px}.touch-pad{height:44px}.touch-mod,.touch-move{height:26px}}@media (pointer:fine) and (hover:hover){.touch-controls{display:none}}.corner{z-index:3;left:50%;bottom:max(124px,calc(env(safe-area-inset-bottom) + 112px));text-align:center;background:#07101aeb;border:1px solid #f1cc7259;border-radius:3px;gap:8px;width:min(660px,100vw - 24px);padding:10px 12px 9px;display:grid;position:absolute;transform:translate(-50%);box-shadow:0 10px 30px #0009}.corner[hidden]{display:none}.corner-title{color:#f1cc72;letter-spacing:.18em;margin:0;font-size:12px;font-weight:800}.corner-choices{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.corner-choices button{text-align:left;color:#eaf1ff;cursor:pointer;font:inherit;background:#172334;border:1px solid #ffffff2e;border-radius:3px;grid-template-columns:auto 1fr;align-items:center;gap:2px 9px;padding:8px 10px;display:grid}.corner-choices kbd{color:#f1cc72;background:#0b1520;border:1px solid #ffffff38;border-radius:3px;grid-row:span 2;place-items:center;width:26px;height:26px;font:800 13px ui-monospace,monospace;display:grid}.corner-choices strong{font-size:13px}.corner-choices span{color:#aebbd0;font-size:11px}.corner-choices button:hover:not(:disabled){border-color:#f1cc72aa}.corner-choices button:disabled{cursor:default;opacity:.42}.corner-choices button[data-picked]{opacity:1;background:#272515;border-color:#f1cc72;box-shadow:inset 0 0 0 1px #f1cc72}.corner-status{color:#d7e0ee;margin:0;font-size:12px}@media (width<=560px){.corner{bottom:max(112px,calc(env(safe-area-inset-bottom) + 100px));padding:8px 9px}.corner-choices{grid-template-columns:1fr;gap:6px}.corner-choices button{padding:6px 9px}}@media (height<=460px){.corner{bottom:max(116px,calc(env(safe-area-inset-bottom) + 104px));gap:4px;width:min(600px,100vw - 24px);padding:5px 8px}.corner-title{font-size:10px}.corner-choices{gap:6px}.corner-choices button{column-gap:7px;padding:4px 7px}.corner-choices kbd{width:22px;height:22px;font-size:12px}.corner-choices strong{font-size:12px}.corner-choices span{font-size:10px}.corner-status{font-size:11px}}.cpu-picker{pointer-events:auto;background:#07101adf;border:1px solid #ffffff1f;border-radius:3px;justify-items:center;gap:8px;width:min(90vw,500px);padding:10px 12px;display:grid}.cpu-picker[hidden]{display:none}.cpu-picker p{letter-spacing:.04em;color:#f1cc72;margin:0;font-size:13px;font-weight:800}.cpu-levels{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;width:100%;display:grid}.cpu-levels button{color:#eaf1ff;cursor:pointer;min-height:52px;font:inherit;text-align:center;background:#172334;border:1px solid #ffffff2e;border-radius:3px;align-content:center;gap:3px;padding:8px 6px;display:grid}.cpu-levels button strong{letter-spacing:.03em;font-size:14px}.cpu-levels button span{color:#aebbd0;font-size:11px;line-height:1.25}.cpu-levels button:hover,.cpu-levels button:focus-visible{border-color:#f1cc72;outline:none}@media (height<=480px){.cpu-picker{gap:5px;padding:6px 10px}.cpu-levels button{gap:1px;min-height:40px;padding:5px 6px}.cpu-levels button strong{font-size:13px}.cpu-levels button span{font-size:10px;line-height:1.15}}.overlay[data-touch-hint]{left:max(12px,env(safe-area-inset-left));max-width:min(44vw,300px,calc(100vw - 226px - env(safe-area-inset-left) - env(safe-area-inset-right)));text-align:left;justify-items:start;transform:none}@media (orientation:landscape){.overlay[data-touch-hint]{max-width:min(44vw,300px,calc(100vw - 360px - env(safe-area-inset-left) - env(safe-area-inset-right)))}}.overlay[data-touch-hint] .hint{font-size:11px;line-height:1.35}.panel h3{letter-spacing:.08em;text-transform:uppercase;color:#f1cc72;margin:12px 0 6px;font-size:12px}.panel h3:first-of-type{margin-top:4px}details.diagnostics summary{cursor:pointer;color:#f1cc72;font-size:13px;font-weight:700}details.diagnostics[open] summary{margin-bottom:6px}.touch-getup{pointer-events:none;display:none;position:absolute;inset:0}.knockdown .touch-getup{display:block}.knockdown .touch-pads,.knockdown .touch-stick{visibility:hidden}.touch-getup-pad{pointer-events:auto;touch-action:none;color:#eaf1ff;letter-spacing:.06em;opacity:.4;cursor:pointer;background:#1d2a3c;border:2px solid #ffffff40;border-radius:16px;font:900 22px Inter,system-ui,sans-serif;position:absolute}.touch-getup-pad.wanted{opacity:1;color:#fff;background:#23a85c;border-color:#d8ffe6;box-shadow:0 0 0 3px #7dffa8,0 6px 18px #0009}.style-picker{z-index:3;text-align:center;background:#07101af2;border:1px solid #f1cc7266;border-radius:3px;gap:10px;width:min(980px,100vw - 24px);max-height:calc(100% - 132px);padding:12px 14px;display:grid;position:absolute;top:50%;left:50%;overflow:auto;transform:translate(-50%,-50%);box-shadow:0 14px 40px #000b}.style-picker[hidden]{display:none}.style-picker header{justify-content:space-between;align-items:baseline;gap:12px;display:flex}.style-title{color:#f1cc72;letter-spacing:.18em;margin:0;font-size:13px;font-weight:800}.style-clock{color:#eaf1ff;margin:0;font:800 15px ui-monospace,monospace}.style-cards{grid-template-columns:repeat(5,1fr);gap:8px;display:grid}.style-cards button{text-align:left;color:#eaf1ff;cursor:pointer;font:inherit;background:#172334;border:1px solid #ffffff2e;border-radius:3px;grid-template-rows:auto auto 1fr auto;gap:5px;padding:10px;display:grid}.style-cards kbd{color:#f1cc72;background:#0b1520;border:1px solid #ffffff38;border-radius:3px;justify-self:start;place-items:center;width:22px;height:22px;font:800 12px ui-monospace,monospace;display:grid}.style-cards strong{font-size:14px}.style-cards span{color:#aebbd0;font-size:11px;line-height:1.35}.style-stats{gap:3px;margin:2px 0 0;padding:0;list-style:none;display:grid}.style-stats li{grid-template-columns:66px 1fr;align-items:center;gap:6px;display:grid}.style-stats small{letter-spacing:.05em;color:#8fa3c8;text-transform:uppercase;font-size:9px}.style-stats i{background:linear-gradient(90deg,#f1cc72,#d98a3a);border-radius:2px;height:5px;display:block}.style-stats i[data-value="1"]{width:20%}.style-stats i[data-value="2"]{width:40%}.style-stats i[data-value="3"]{width:60%}.style-stats i[data-value="4"]{width:80%}.style-stats i[data-value="5"]{width:100%}.style-cards button:hover:not(:disabled){border-color:#f1cc72aa}.style-cards button:disabled{cursor:default;opacity:.5}.style-cards button[data-chosen]{opacity:1;background:#272515;border-color:#f1cc72;box-shadow:inset 0 0 0 1px #f1cc72}.style-status{color:#d7e0ee;margin:0;font-size:12px}@media (width<=700px){.style-picker{top:auto;bottom:max(12px,env(safe-area-inset-bottom));max-height:calc(100% - 96px);padding:9px 10px;transform:translate(-50%)}.style-cards{grid-template-columns:1fr 1fr;gap:6px}.style-cards button{grid-template-rows:auto 1fr;gap:3px;padding:8px 9px}.style-cards kbd,.style-stats{display:none}.style-cards strong{font-size:13px}.style-cards span{font-size:11px}.style-cards button:last-child{grid-column:1/-1}}@media (height<=480px){.style-picker{gap:5px;max-height:calc(100% - 60px);padding:6px 9px;top:auto;bottom:6px;transform:translate(-50%)}.style-cards{grid-template-columns:repeat(5,1fr);gap:5px}.style-cards button{gap:2px;padding:5px 6px}.style-cards span{display:none}.style-cards button:last-child{grid-column:auto}.style-stats{gap:1px;display:grid}.style-stats li{grid-template-columns:52px 1fr}.style-stats small{font-size:8px}} /*$vite$:1*/ \ No newline at end of file diff --git a/src/intelstream/hands/static/assets/hands.js b/src/intelstream/hands/static/assets/hands.js index 2cd12516..9744b0ce 100644 --- a/src/intelstream/hands/static/assets/hands.js +++ b/src/intelstream/hands/static/assets/hands.js @@ -1,19 +1,19 @@ -var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var n={format:2,tick_rate:30,ring:{half_width:500,half_height:500,fighter_radius:38},limits:{max_stamina:1e3,max_conditioning:1e3,max_guard:700,max_poise:600},action_buffer_ticks:8,facing:{scale:1e3,turn_degrees_per_second:110},movement:{max_speed:10,blend_percent:75,recovery_speed_percent:60},evasion:{ticks:7,stamina:15},combos:{recovery_cancel_percent:50,chains:[[`jab`,`straight`],[`jab`,`hook`],[`straight`,`hook`],[`hook`,`uppercut`],[`uppercut`,`hook`]]},knockdown:{referee_walk_speed:9,count_ticks:20,mandatory_count:5,box_pause_ticks:20,get_up_stun_ticks:12,get_up_stamina:600,get_up_base:0,get_up_per_knockdown:4,get_up_trauma_divisor:300,get_up_first_count:2,get_up_zone_ticks:3,get_up_perfect_ticks:1,get_up_late_ticks:3,get_up_good:1,get_up_perfect:2,get_up_wrong:1},countdown:{opening_ticks:90},tired:{startup_ticks:1,recovery_ticks:2,impact_percent:70},foul:{separation:45},hitstop_ms:{hit:78,block:45,power:140},fatigue_scaling:{startup_formula:`max(2, startup * 100 // fatigue - lead_jab_bonus)`,recovery_formula:`max(3, recovery * 100 // fatigue)`,lead_jab_bonus:1,rear_straight_impact_bonus:8},punches:{jab:{startup:3,active:2,recovery:4,reach:150,lateral_arc:42,impact:34,stamina_cost:25,whiff_cost:9,guard_damage:44,poise_damage:35,combo_window:7,startup_vulnerability:1,recovery_vulnerability:2},straight:{startup:4,active:2,recovery:6,reach:168,lateral_arc:38,impact:52,stamina_cost:39,whiff_cost:14,guard_damage:66,poise_damage:58,combo_window:8,startup_vulnerability:2,recovery_vulnerability:3},hook:{startup:5,active:2,recovery:7,reach:126,lateral_arc:92,impact:64,stamina_cost:47,whiff_cost:18,guard_damage:82,poise_damage:72,combo_window:9,startup_vulnerability:3,recovery_vulnerability:4},uppercut:{startup:5,active:2,recovery:8,reach:108,lateral_arc:54,impact:72,stamina_cost:53,whiff_cost:22,guard_damage:88,poise_damage:84,combo_window:10,startup_vulnerability:3,recovery_vulnerability:5}},variants:{body:{startup_add:1,reach_min:80,reach_sub:14,lateral_arc_add:8,impact_mul_num:92,impact_mul_den:100,stamina_cost_add:2,whiff_cost_add:2,poise_damage_mul_num:72,poise_damage_mul_den:100},power:{startup_add:3,active_add:1,recovery_add:3,reach_add:5,impact_mul_num:185,impact_mul_den:100,stamina_cost_mul_num:140,stamina_cost_mul_den:100,whiff_cost_mul_num:150,whiff_cost_mul_den:100,guard_damage_mul_num:220,guard_damage_mul_den:100,poise_damage_mul_num:175,poise_damage_mul_den:100,startup_vulnerability_add:1,recovery_vulnerability_add:1}},hurtboxes:{head:{radius:.13,length:.16,joint:`head`,offset_y:.12},torso:{radius:.21,length:.34,joint:`chest`,offset_y:.16}},corners:{reach:733},rest:{corner_offset:365,walk_speed:10},clinch:{hold_distance:60,draw_speed:6},referee:{radius:34,health:450,walk_speed:6,standoff:62,count_standoff:90,stagger_base_ticks:6,stagger_damage_divisor:8,stagger_max_ticks:30,down_ticks:150,bleed_health_divisor:60},corner:{cut:{worse_cut:250,other_cut:100,bleeding_kept_percent:30},swelling:{swelling:250,eyes:200},breath:{conditioning:180,body:150},balanced:{worse_cut:80,bleeding_kept_percent:75,swelling:80,eyes:60}},blind_side:{eye_threshold:700,impact_percent:120},parry:{stagger_ticks:16},body:{wind_percent:90,collapse_body_trauma:650,collapse_stamina:350,collapse_minimum_damage:40,collapse_delay_ticks:10,collapse_cooldown_ticks:300},styles:{balanced:{},boxer:{recovery_ticks:{jab:-1},reach_percent:102,impact_percent:98,poise_damage_percent:98},slugger:{impact_percent:108,poise_damage_percent:108,poise_taken_percent:95,stamina_cost_percent:115,recovery_ticks:{hook:1,uppercut:1},move_speed_percent:96},swarmer:{move_speed_percent:103,startup_ticks:{hook:-1,uppercut:-1},body_damage_percent:110,conditioning_loss_percent:85,impact_percent:96,poise_damage_percent:96,evasion_ticks:1},counter_puncher:{counter_bonus_percent:38,counter_window_ticks:3,evasion_ticks:1,perfect_block_ticks:1,impact_percent:96,poise_damage_percent:96}},stun:{flinch_minimum_damage:36,flinch_base_ticks:4,flinch_damage_divisor:16,rocked_counter_damage:50,rocked_power_damage:70,rocked_hurt_poise:180,rocked_base_ticks:12,rocked_damage_divisor:6,rocked_max_ticks:28,chain_max_ticks:36,immunity_ticks:18,rocked_immunity_ticks:8,moving_speed_percent:75},guard:{block_poise_percent:35,perfect_block_poise_percent:0,leak_base_percent:80,leak_minimum_percent:25,block_minimum:60,perfect_rearm_ticks:6,damage_percent:100,stamina_regen_percent:50,held_drain:3,break_stun_ticks:24,rearm:250},trauma:{head_per_damage_percent:60,eye_per_damage_percent:70,cut_per_damage_percent:80,jab_cut_percent:40,jab_swelling_percent:50,swelling_per_damage_percent:33,poise_ceiling_per_head_percent:30,poise_ceiling_floor:220,body_per_damage_percent:100,poise_regen_every_ticks:2,poise_damage_percent:85,cut_opens_eye:120,bleeding_cut_divisor:30},hitbox:{glove_radius:.11},injuries:{blood:{volume:1e3,bleeding_divisor:160,rest_percent:50,stages:[{below:600,stamina_regen_percent:75},{below:350,stamina_regen_percent:50},{below:150,stamina_regen_percent:25}]},kinds:{broken_nose:{drain:1,stamina_regen_percent:75,bleeding_floor:150},broken_jaw:{drain:1,poise_taken_percent:125},jaw_torn:{drain:5,poise_taken_percent:150,bleeding_floor:300},eye_out:{drain:2},ear_torn:{drain:1,poise_regen_ticks_add:1},face_flayed:{drain:4,vision_penalty:8},skull_fractured:{drain:4,poise_ceiling_percent:60},shoulder_dislocated:{drain:0,startup_add:2,impact_percent:50,guard_leak_add:20},arm_broken:{drain:3,startup_add:2,impact_percent:30,guard_leak_add:25},forearm_severed:{drain:12,impact_percent:20,reach_sub:45,guard_leak_add:35},arm_torn:{drain:20,guard_leak_add:50},ribs_broken:{drain:0,body_taken_percent:135,max_stamina_sub:60},liver_ruptured:{drain:6,stamina_regen_percent:60},disemboweled:{drain:12,move_speed_percent:75,max_stamina_sub:150,body_taken_percent:150},knee_blown:{drain:0,move_speed_percent:80}},triggers:{nose_wear:800,jaw_break_wear:320,jaw_tear_wear:640,ear_wear:280,eye_out_trauma:850,eye_out_damage:55,flay_cut:550,flay_damage:60,skull_head_trauma:1050,skull_damage:90,brain_death_wear:220,shoulder_wear:280,shoulder_whiff_wear:40,shoulder_parried_wear:90,arm_break_wear:1100,arm_guard_break_wear:300,arm_tear_damage:80,ribs_wear:260,liver_wear:260,gut_body_trauma:800,gut_damage:90,gutted_damage:90,knee_knockdowns:2},vomit:{every_ticks:240,stun_ticks:10},finish:{ticks:105},fatalities:{head:{jab:`eyes_out`,straight:`head_burst`,hook:`decapitation`,uppercut:`spine_rip`},body:{jab:`heart_punch`,straight:`gutting`,hook:`bisection`,uppercut:`total_gib`}}}},r=n.punches,i=n.variants,a=n.tick_rate;n.action_buffer_ticks;var o=n.hitstop_ms,s=n.hurtboxes,c=n.hitbox.glove_radius;n.fatigue_scaling;var l=n.rest.corner_offset,u=n.ring.half_width,d=n.ring.half_height,f=n.ring.fighter_radius,p=n.blind_side.eye_threshold,m=n.guard.block_minimum,h=n.guard.rearm,g=n.movement.max_speed,_=n.movement.blend_percent,v=n.movement.recovery_speed_percent,y=n.evasion.ticks,b=n.evasion.stamina,x=n.corner,S=n.corners.reach,C=n.combos.recovery_cancel_percent,w=new Set(n.combos.chains.map(([e,t])=>`${e}:${t}`));function T(e,t){return w.has(`${e}:${t}`)}function E(e){return e.startup+e.active+Math.floor(e.recovery*C/100)}function D(e,t,n,r,i,a=`balanced`){return t&&!i&&T(e,n.class)&&r>=fe(a,n.class,n.target,n.power)}function O(e){return r[e].combo_window}var k=n.stun.rocked_base_ticks,ee=n.stun.rocked_max_ticks,A=n.knockdown,te=A.count_ticks,j=1400,ne=3,re=A.get_up_base,ie=A.get_up_base+ne*A.get_up_per_knockdown+Math.floor(j/A.get_up_trauma_divisor),M={firstCount:A.get_up_first_count,zoneTicks:A.get_up_zone_ticks,perfectTicks:A.get_up_perfect_ticks,lateTicks:A.get_up_late_ticks,good:A.get_up_good,perfect:A.get_up_perfect,wrong:A.get_up_wrong,base:A.get_up_base,perKnockdown:A.get_up_per_knockdown,traumaDivisor:A.get_up_trauma_divisor},N=n.stun.moving_speed_percent,ae=n.tired.startup_ticks,oe=n.tired.recovery_ticks;function se(e,t,n){let a=r[e],o=a.startup,s=a.active,c=a.recovery,l=a.reach,u=a.lateral_arc;if(t===`body`){let e=i.body;o+=e.startup_add??0,c+=e.recovery_add??0,l=Math.max(e.reach_min??0,l-(e.reach_sub??0)),u+=e.lateral_arc_add??0}if(n===`power`){let e=i.power;o+=e.startup_add??0,s+=e.active_add??0,c+=e.recovery_add??0,l+=e.reach_add??0}return{startup:o,active:s,recovery:c,reach:l,lateralArc:u}}function ce(e,t,n){let a=r[e].stamina_cost;return t===`body`&&(a+=i.body.stamina_cost_add??0),n===`power`&&(a=Math.floor(a*(i.power.stamina_cost_mul_num??1)/(i.power.stamina_cost_mul_den??1))),a}var le=n.styles,ue=new Map;function de(e){let t=ue.get(e);if(t!==void 0)return t;let n=le[e]??{},r={startupTicks:n.startup_ticks??{},recoveryTicks:n.recovery_ticks??{},staminaCostPercent:n.stamina_cost_percent??100,conditioningLossPercent:n.conditioning_loss_percent??100,moveSpeedPercent:n.move_speed_percent??100,evasionTicks:n.evasion_ticks??0};return ue.set(e,r),r}function fe(e,t,n,r){return Math.floor(ce(t,n,r)*de(e).staminaCostPercent/100)}function pe(e){return e.startup+e.active+e.recovery}var me=[`perfect`,`good`,`early`,`late`,`wrong`],he=e=>me.includes(e),ge=1500;function _e(e){return e-te+M.zoneTicks+M.lateTicks+1}function ve(e){return e+M.zoneTicks+M.lateTicks}function ye(e,t,n,r,i){return e<_e(r)?null:t===n?er+M.zoneTicks?{detail:`late`,amount:0}:Math.abs(e-r)<=M.perfectTicks?{detail:`perfect`,amount:M.perfect}:{detail:`good`,amount:M.good}:{detail:`wrong`,amount:Math.max(0,i-M.wrong)-i}}function be(e,t){let n=M.base+M.perKnockdown*e,r=Math.floor(t/M.traumaDivisor);return{knockdowns:n,head:r,total:n+r}}var xe=class{attemptedBeat=-1/0;pending=null;shown=null;counts={perfect:0,good:0,early:0,late:0,wrong:0};reset(){this.attemptedBeat=-1/0,this.pending=null,this.shown=null}get verdict(){return this.shown}prompt(e,t){if(e.get_up_prompt===null)return null;let n=e.get_up_window_start_tick+M.zoneTicks;return n>this.attemptedBeat&&Math.round(t)<=ve(n)?{side:e.get_up_prompt,beat:n,next:e.get_up_next_prompt}:e.get_up_next_prompt===null?null:{side:e.get_up_next_prompt,beat:n+te,next:null}}press(e,t,n,r){let i=this.prompt(t,n);if(i===null)return null;let a=ye(Math.round(n),e,i.side,i.beat,this.meter(t,r));return a===null?null:(this.attemptedBeat=i.beat,this.pending=this.shown={...a,atMs:r,confirmed:!1},a)}confirm(e,t){if(!he(e.detail))return;let n=this.pending?.atMs??t;this.pending=null,this.shown={detail:e.detail,amount:e.amount,atMs:n,confirmed:!0},this.counts[e.detail]+=1}meter(e,t){return this.pending!==null&&t-this.pending.atMs>ge&&(this.pending=null),Math.max(0,e.get_up_meter+(this.pending?.amount??0))}};function Se(e,t,n,r,i,a,o){let s=i===null?e.get_up_count:Math.max(0,Math.min(10,Math.floor((t-i)/te))),c=e.get_up_required>0?e.get_up_required:be(e.knockdowns,e.trauma.head).total;return{pressTick:t,count:s,prompt:o?null:r?.prompt(e,t)??(e.get_up_prompt===null?null:{side:e.get_up_prompt,beat:e.get_up_window_start_tick+M.zoneTicks,next:e.get_up_next_prompt}),meter:o?c:r?.meter(e,n)??e.get_up_meter,required:c,knockdowns:e.knockdowns,head:e.trauma.head,verdict:r?.verdict??null,nowMs:n,touch:a,risen:o}}var Ce={get_up_left:`left`,get_up_right:`right`},P={perfect:`perfect`,good:`good`,early:`early, no score`,late:`late, no score`,wrong:`wrong side`};function we(e){if(e.risen)return`You beat the count at ${e.count}.`;let t=e.touch?`pad`:`arrow key`,n=e.prompt,r=n===null?`No more prompts this count.`:`Press the ${Ce[n.side]} ${t} on the beat of the count, as the ring closes${n.next===null?``:`; next, ${Ce[n.next]}`}. One press a count.`,i=e.verdict,a=i===null?``:` Last press: ${P[i.detail]}${i.amount===0?``:`, ${i.amount>0?`plus`:`minus`} ${Math.abs(i.amount)}`}.`;return`You are down. Count ${e.count}. ${r} ${Math.max(0,e.required-e.meter)} more to get up.${a}`}var Te={KeyF:[`left`,`jab`],KeyJ:[`right`,`jab`],KeyR:[`left`,`straight`],KeyU:[`right`,`straight`],KeyG:[`left`,`hook`],KeyH:[`right`,`hook`],KeyT:[`left`,`uppercut`],KeyY:[`right`,`uppercut`]},F={KeyZ:{kind:`slip_left`},KeyX:{kind:`slip_right`},KeyC:{kind:`weave`},KeyV:{kind:`pull`},KeyB:{kind:`clinch`},KeyN:{kind:`switch_stance`},KeyM:{kind:`taunt`},Digit1:{kind:`foul`,foul:`low_blow`},Digit2:{kind:`foul`,foul:`headbutt`},ArrowLeft:{kind:`get_up_left`},ArrowRight:{kind:`get_up_right`}},I={ArrowLeft:`←`,ArrowRight:`→`},Ee=e=>{let t=Object.keys(F).find(t=>F[t].kind===e);return I[t]??t.replace(/^Key|^Digit/,``)},De={get_up_left:Ee(`get_up_left`),get_up_right:Ee(`get_up_right`)},Oe=new Set([...Object.keys(Te),...Object.keys(F),`KeyW`,`KeyA`,`KeyS`,`KeyD`,`KeyQ`,`KeyE`,`ShiftLeft`,`ShiftRight`,`AltLeft`,`AltRight`]),ke=[`Move: W up · S down · A left · D right`,`High / low guard: Q / E`,`Left/right jab: F / J`,`Left/right straight: R / U`,`Left/right hook: G / H`,`Left/right uppercut: T / Y`,`Body: Shift · Power: hold Alt (Option ⌥ on a Mac) with the punch, slower to throw and far heavier`,`Slip: Z / X · Weave: C · Pull: V`,`Clinch: B · Stance: N · Taunt: M · Fouls (on purpose): Shift+1 low blow / Shift+2 headbutt`,`Get up when knocked down: press ${De.get_up_left} or ${De.get_up_right}, the side the big arrow shows, as the ring closes on each count; one press per count, the next side shows small beside it.`,`Camera: K cycles broadcast, close and over the shoulder (behind your fighter, W walks at the opponent and A / D circle him).`,`Style pick before the bout: arrow keys choose · Enter settles · 1–5 settle on that card at once.`,`Controller move: left stick. High / low guard: left / right shoulder (independent of punches).`,`Controller face classes: bottom jab · right straight · left hook · top uppercut.`,`Controller face hand: hold D-pad left for left hand or D-pad right for right hand, then press a face punch; otherwise punches use the right hand. A direction used for a punch is consumed and does not evade.`,`Controller modifiers: left trigger body · right trigger power.`,`Controller actions: left stick press clinch · right stick press switch stance · hold right trigger + right stick press to taunt · D-pad up weave · D-pad down pull · tap and release D-pad left/right to slip; while down, D-pad left/right presses that get-up side at once.`,`Controller fouls: View/Back low blow · Menu/Start headbutt.`,`Controller style pick: D-pad or left stick to choose · bottom face button settles.`,`Right-stick gesture: horizontal 0–22.5° hook · 22.5–45° jab · 45–70° straight · 70–90° uppercut; left/right direction selects hand.`,`Between rounds, tell your corner what to work on: 1 close the cut · 2 bring down the swelling · 3 catch your breath (controller: left, top or right face button; or tap).`,`Touch: drag the left side to move · tap a punch pad's left or right half for that hand · hold BODY, POWER, GUARD or LOW · tap ◀ SLIP, SLIP ▶, WEAVE, PULL or CLINCH.`],Ae=`Move WASD · Jab F/J · Straight R/U · Hook G/H · Uppercut T/Y · Guard Q/E · Body Shift · Power Alt/Option ⌥`,je=`Drag on the left to move · Tap the pads to punch, L or R hand · Hold BODY, POWER or GUARD · Tap SLIP, WEAVE, PULL or CLINCH`,Me=`Drag left to move · Tap pads to punch · Hold GUARD`,Ne=(e,t)=>e?t<480?Me:je:Ae,Pe=[{title:`Keyboard`,items:ke.filter(e=>!e.startsWith(`Controller`)&&!e.startsWith(`Right-stick`)&&!e.startsWith(`Between rounds`)&&!e.startsWith(`Touch`))},{title:`Between rounds`,items:ke.filter(e=>e.startsWith(`Between rounds`))},{title:`Controller`,items:ke.filter(e=>e.startsWith(`Controller`)||e.startsWith(`Right-stick`))},{title:`Touch`,items:ke.filter(e=>e.startsWith(`Touch`))}],Fe={get_up_left:`◀ LEFT`,get_up_right:`RIGHT ▶`},Ie=118;function Le(e,t){if(e<=t){let n=(e-36)/2,r=t-Ie-96;return{left:{x:12,y:r,width:n,height:96},right:{x:24+n,y:r,width:n,height:96}}}let n=Math.min(220,Math.round(e*.24)),r=Math.max(72,Math.min(110,t-Ie-120)),i=t-Ie-r;return{left:{x:12,y:i,width:n,height:r},right:{x:e-12-n,y:i,width:n,height:r}}}function Re(){try{if(window.matchMedia?.(`(pointer: coarse)`).matches)return!0}catch{}return(navigator.maxTouchPoints??0)>0&&new URLSearchParams(window.location.search).get(`platform`)===`mobile`}var ze=[{label:`JAB`,punchClass:`jab`},{label:`STRAIGHT`,punchClass:`straight`},{label:`HOOK`,punchClass:`hook`},{label:`UPPER`,punchClass:`uppercut`}],Be=[{label:`◀ SLIP`,name:`Slip left`,kind:`slip_left`},{label:`WEAVE`,name:`Weave`,kind:`weave`},{label:`SLIP ▶`,name:`Slip right`,kind:`slip_right`},{label:`PULL`,name:`Pull`,kind:`pull`},{label:`CLINCH`,name:`Clinch`,kind:`clinch`}],Ve=class{sharedActions;root;stickZone;stickBase;stickKnob;pads=[];moves=[];getUpPads=[];stickPointer=null;stickOrigin={x:0,y:0};moveX=0;moveY=0;body=!1;power=!1;guard=`none`;knockdown=!1;enabled=!0;heldPointers=new Map;heldListener=null;constructor(e,t){this.sharedActions=t,this.root=document.createElement(`div`),this.root.className=`touch-controls`,this.root.setAttribute(`aria-label`,`Touch controls`),this.root.innerHTML=`
+var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var n={format:2,tick_rate:30,ring:{half_width:500,half_height:500,fighter_radius:38},limits:{max_stamina:1e3,max_conditioning:1e3,max_guard:700,max_poise:600},action_buffer_ticks:8,facing:{scale:1e3,turn_degrees_per_second:110},movement:{max_speed:10,blend_percent:75,recovery_speed_percent:60},evasion:{ticks:7,stamina:15},combos:{recovery_cancel_percent:50,chains:[[`jab`,`straight`],[`jab`,`hook`],[`straight`,`hook`],[`hook`,`uppercut`],[`uppercut`,`hook`]]},knockdown:{referee_walk_speed:9,count_ticks:20,mandatory_count:5,box_pause_ticks:20,get_up_stun_ticks:12,get_up_stamina:600,get_up_base:0,get_up_per_knockdown:4,get_up_trauma_divisor:300,get_up_first_count:2,get_up_zone_ticks:3,get_up_perfect_ticks:1,get_up_late_ticks:3,get_up_good:1,get_up_perfect:2,get_up_wrong:1},countdown:{opening_ticks:90},tired:{startup_ticks:1,recovery_ticks:2,impact_percent:70},foul:{separation:45},hitstop_ms:{hit:78,block:45,power:140},fatigue_scaling:{startup_formula:`max(2, startup * 100 // fatigue - lead_jab_bonus)`,recovery_formula:`max(3, recovery * 100 // fatigue)`,lead_jab_bonus:1,rear_straight_impact_bonus:8},punches:{jab:{startup:3,active:2,recovery:4,reach:150,lateral_arc:42,impact:34,stamina_cost:25,whiff_cost:9,guard_damage:44,poise_damage:35,combo_window:7,startup_vulnerability:1,recovery_vulnerability:2},straight:{startup:4,active:2,recovery:6,reach:168,lateral_arc:38,impact:52,stamina_cost:39,whiff_cost:14,guard_damage:66,poise_damage:58,combo_window:8,startup_vulnerability:2,recovery_vulnerability:3},hook:{startup:5,active:2,recovery:7,reach:126,lateral_arc:92,impact:64,stamina_cost:47,whiff_cost:18,guard_damage:82,poise_damage:72,combo_window:9,startup_vulnerability:3,recovery_vulnerability:4},uppercut:{startup:5,active:2,recovery:8,reach:108,lateral_arc:54,impact:72,stamina_cost:53,whiff_cost:22,guard_damage:88,poise_damage:84,combo_window:10,startup_vulnerability:3,recovery_vulnerability:5}},variants:{body:{startup_add:1,reach_min:80,reach_sub:14,lateral_arc_add:8,impact_mul_num:92,impact_mul_den:100,stamina_cost_add:2,whiff_cost_add:2,poise_damage_mul_num:72,poise_damage_mul_den:100},power:{startup_add:3,active_add:1,recovery_add:3,reach_add:5,impact_mul_num:185,impact_mul_den:100,stamina_cost_mul_num:140,stamina_cost_mul_den:100,whiff_cost_mul_num:150,whiff_cost_mul_den:100,guard_damage_mul_num:220,guard_damage_mul_den:100,poise_damage_mul_num:175,poise_damage_mul_den:100,startup_vulnerability_add:1,recovery_vulnerability_add:1}},hurtboxes:{head:{radius:.13,length:.16,joint:`head`,offset_y:.12},torso:{radius:.21,length:.34,joint:`chest`,offset_y:.16}},corners:{reach:733},rest:{corner_offset:365,walk_speed:10},clinch:{hold_distance:60,draw_speed:6},referee:{radius:34,health:450,walk_speed:6,standoff:62,count_standoff:90,stagger_base_ticks:6,stagger_damage_divisor:8,stagger_max_ticks:30,down_ticks:150,bleed_health_divisor:60},corner:{cut:{worse_cut:250,other_cut:100,bleeding_kept_percent:30},swelling:{swelling:250,eyes:200},breath:{conditioning:180,body:150},balanced:{worse_cut:80,bleeding_kept_percent:75,swelling:80,eyes:60}},blind_side:{eye_threshold:700,impact_percent:120},parry:{stagger_ticks:16},body:{wind_percent:90,collapse_body_trauma:650,collapse_stamina:350,collapse_minimum_damage:40,collapse_delay_ticks:10,collapse_cooldown_ticks:300},styles:{balanced:{},boxer:{recovery_ticks:{jab:-1},reach_percent:102,impact_percent:98,poise_damage_percent:98},slugger:{impact_percent:108,poise_damage_percent:108,poise_taken_percent:95,stamina_cost_percent:115,recovery_ticks:{hook:1,uppercut:1},move_speed_percent:96},swarmer:{move_speed_percent:103,startup_ticks:{hook:-1,uppercut:-1},body_damage_percent:110,conditioning_loss_percent:85,impact_percent:96,poise_damage_percent:96,evasion_ticks:1},counter_puncher:{counter_bonus_percent:38,counter_window_ticks:3,evasion_ticks:1,perfect_block_ticks:1,impact_percent:96,poise_damage_percent:96}},stun:{flinch_minimum_damage:36,flinch_base_ticks:4,flinch_damage_divisor:16,rocked_counter_damage:50,rocked_power_damage:70,rocked_hurt_poise:180,rocked_base_ticks:12,rocked_damage_divisor:6,rocked_max_ticks:28,chain_max_ticks:36,immunity_ticks:18,rocked_immunity_ticks:8,moving_speed_percent:75},guard:{block_poise_percent:35,perfect_block_poise_percent:0,leak_base_percent:80,leak_minimum_percent:25,block_minimum:60,perfect_rearm_ticks:6,damage_percent:100,stamina_regen_percent:50,held_drain:3,break_stun_ticks:24,rearm:250},trauma:{head_per_damage_percent:60,eye_per_damage_percent:70,cut_per_damage_percent:80,jab_cut_percent:40,jab_swelling_percent:50,swelling_per_damage_percent:33,poise_ceiling_per_head_percent:30,poise_ceiling_floor:220,body_per_damage_percent:100,poise_regen_every_ticks:2,poise_damage_percent:85,cut_opens_eye:120,bleeding_cut_divisor:30},hitbox:{glove_radius:.11},injuries:{blood:{volume:1e3,bleeding_divisor:160,rest_percent:50,stages:[{below:600,stamina_regen_percent:75},{below:350,stamina_regen_percent:50},{below:150,stamina_regen_percent:25}]},kinds:{broken_nose:{drain:1,stamina_regen_percent:75,bleeding_floor:150},broken_jaw:{drain:1,poise_taken_percent:125},jaw_torn:{drain:5,poise_taken_percent:150,bleeding_floor:300},eye_out:{drain:2},ear_torn:{drain:1,poise_regen_ticks_add:1},face_flayed:{drain:4,vision_penalty:8},skull_fractured:{drain:4,poise_ceiling_percent:60},shoulder_dislocated:{drain:0,startup_add:2,impact_percent:50,guard_leak_add:20},arm_broken:{drain:3,startup_add:2,impact_percent:30,guard_leak_add:25},forearm_severed:{drain:12,impact_percent:20,reach_sub:45,guard_leak_add:35},arm_torn:{drain:20,guard_leak_add:50},ribs_broken:{drain:0,body_taken_percent:135,max_stamina_sub:60},liver_ruptured:{drain:6,stamina_regen_percent:60},disemboweled:{drain:12,move_speed_percent:75,max_stamina_sub:150,body_taken_percent:150},knee_blown:{drain:0,move_speed_percent:80}},triggers:{nose_wear:800,jaw_break_wear:320,jaw_tear_wear:640,ear_wear:280,eye_out_trauma:850,eye_out_damage:55,flay_cut:550,flay_damage:60,skull_head_trauma:1050,skull_damage:90,brain_death_wear:220,shoulder_wear:280,shoulder_whiff_wear:40,shoulder_parried_wear:90,arm_break_wear:1100,arm_guard_break_wear:300,arm_tear_damage:80,ribs_wear:260,liver_wear:260,gut_body_trauma:800,gut_damage:90,gutted_damage:90,knee_knockdowns:2},vomit:{every_ticks:240,stun_ticks:10},finish:{ticks:105},fatalities:{head:{jab:`eyes_out`,straight:`head_burst`,hook:`decapitation`,uppercut:`spine_rip`},body:{jab:`heart_punch`,straight:`gutting`,hook:`bisection`,uppercut:`total_gib`}}}},r=n.punches,i=n.variants,a=n.tick_rate;n.action_buffer_ticks;var o=n.hitstop_ms,s=n.hurtboxes,c=n.hitbox.glove_radius;n.fatigue_scaling;var l=n.rest.corner_offset,u=n.ring.half_width,d=n.ring.half_height,f=n.ring.fighter_radius,p=n.blind_side.eye_threshold,m=n.guard.block_minimum,h=n.guard.rearm,g=n.movement.max_speed,_=n.movement.blend_percent,v=n.movement.recovery_speed_percent,y=n.evasion.ticks,b=n.evasion.stamina,x=n.corner,S=n.corners.reach,C=n.combos.recovery_cancel_percent,w=new Set(n.combos.chains.map(([e,t])=>`${e}:${t}`));function T(e,t){return w.has(`${e}:${t}`)}function E(e){return e.startup+e.active+Math.floor(e.recovery*C/100)}function D(e,t,n,r,i,a=`balanced`){return t&&!i&&T(e,n.class)&&r>=le(a,n.class,n.target,n.power)}function O(e){return r[e].combo_window}var k=n.stun.rocked_base_ticks,ee=n.stun.rocked_max_ticks,A=n.knockdown,te=A.count_ticks,j=A.get_up_base+3*A.get_up_per_knockdown+Math.floor(1400/A.get_up_trauma_divisor),M={firstCount:A.get_up_first_count,zoneTicks:A.get_up_zone_ticks,perfectTicks:A.get_up_perfect_ticks,lateTicks:A.get_up_late_ticks,good:A.get_up_good,perfect:A.get_up_perfect,wrong:A.get_up_wrong,base:A.get_up_base,perKnockdown:A.get_up_per_knockdown,traumaDivisor:A.get_up_trauma_divisor},ne=n.stun.moving_speed_percent,re=n.tired.startup_ticks,ie=n.tired.recovery_ticks;function N(e,t,n){let a=r[e],o=a.startup,s=a.active,c=a.recovery,l=a.reach,u=a.lateral_arc;if(t===`body`){let e=i.body;o+=e.startup_add??0,c+=e.recovery_add??0,l=Math.max(e.reach_min??0,l-(e.reach_sub??0)),u+=e.lateral_arc_add??0}if(n===`power`){let e=i.power;o+=e.startup_add??0,s+=e.active_add??0,c+=e.recovery_add??0,l+=e.reach_add??0}return{startup:o,active:s,recovery:c,reach:l,lateralArc:u}}function ae(e,t,n){let a=r[e].stamina_cost;return t===`body`&&(a+=i.body.stamina_cost_add??0),n===`power`&&(a=Math.floor(a*(i.power.stamina_cost_mul_num??1)/(i.power.stamina_cost_mul_den??1))),a}var oe=n.styles,se=new Map;function ce(e){let t=se.get(e);if(t!==void 0)return t;let n=oe[e]??{},r={startupTicks:n.startup_ticks??{},recoveryTicks:n.recovery_ticks??{},staminaCostPercent:n.stamina_cost_percent??100,conditioningLossPercent:n.conditioning_loss_percent??100,moveSpeedPercent:n.move_speed_percent??100,evasionTicks:n.evasion_ticks??0};return se.set(e,r),r}function le(e,t,n,r){return Math.floor(ae(t,n,r)*ce(e).staminaCostPercent/100)}function ue(e){return e.startup+e.active+e.recovery}var de=[`perfect`,`good`,`early`,`late`,`wrong`],fe=e=>de.includes(e),pe=1500,me=128;function he(e){return e-te+M.zoneTicks+M.lateTicks+1}function ge(e){return e+M.zoneTicks+M.lateTicks}function _e(e,t,n,r,i){return er+M.zoneTicks?{detail:`late`,amount:0}:Math.abs(e-r)<=M.perfectTicks?{detail:`perfect`,amount:M.perfect}:{detail:`good`,amount:M.good}:{detail:`wrong`,amount:Math.max(0,i-M.wrong)-i}}function ve(e,t){let n=M.base+M.perKnockdown*e,r=Math.floor(t/M.traumaDivisor);return{knockdowns:n,head:r,total:n+r}}function ye(e,t){let n=t-e.get_up_count*te;return e.get_up_prompt===null?n:n-((n-(e.get_up_window_start_tick+M.zoneTicks))%te+te)%te}var be=class{attemptedBeat=-1/0;pending=null;shown=null;current={side:`get_up_left`,beat:0,next:null};counts={perfect:0,good:0,early:0,late:0,wrong:0};log=[];reset(){this.attemptedBeat=-1/0,this.pending=null,this.shown=null}get verdict(){return this.shown}prompt(e,t){if(e.get_up_prompt===null)return null;let n=e.get_up_window_start_tick+M.zoneTicks;return n>this.attemptedBeat&&Math.round(t)<=ge(n)?this.set(e.get_up_prompt,n,e.get_up_next_prompt):e.get_up_next_prompt===null||n+te<=this.attemptedBeat?null:this.set(e.get_up_next_prompt,n+te,null)}set(e,t,n){return this.current.side=e,this.current.beat=t,this.current.next=n,this.current}press(e,t,n,r){let i=this.prompt(t,n);if(i===null)return null;let a=_e(Math.round(n),e,i.side,i.beat,this.meter(t,r));return a===null?null:(this.attemptedBeat=i.beat,this.pending=this.shown={...a,atMs:r,confirmed:!1},a)}confirm(e,t){if(!fe(e.detail))return;let n=this.pending?.atMs??t;this.pending=null,this.shown={detail:e.detail,amount:e.amount,atMs:n,confirmed:!0},this.counts[e.detail]+=1,this.log.push({tick:e.tick,detail:e.detail,amount:e.amount}),this.log.length>me&&this.log.shift()}meter(e,t){return this.pending!==null&&t-this.pending.atMs>pe&&(this.pending=null),Math.max(0,e.get_up_meter+(this.pending?.amount??0))}},xe=()=>({pressTick:0,count:0,prompt:null,meter:0,required:0,knockdowns:0,head:0,verdict:null,nowMs:0,touch:!1,risen:!1});function Se(e,t,n,r,i,a,o,s=xe()){let c=e.get_up_required>0?e.get_up_required:ve(e.knockdowns,e.trauma.head).total;return s.pressTick=t,s.count=i===null?e.get_up_count:Math.max(0,Math.min(10,Math.floor((t-i)/te))),s.prompt=o?null:r===null?e.get_up_prompt===null?null:{side:e.get_up_prompt,beat:e.get_up_window_start_tick+M.zoneTicks,next:e.get_up_next_prompt}:r.prompt(e,t),s.meter=o?c:r?.meter(e,n)??e.get_up_meter,s.required=c,s.knockdowns=e.knockdowns,s.head=e.trauma.head,s.verdict=r?.verdict??null,s.nowMs=n,s.touch=a,s.risen=o,s}var Ce={get_up_left:`left`,get_up_right:`right`},P={perfect:`perfect`,good:`good`,early:`early, no score`,late:`late, no score`,wrong:`wrong side`},we=e=>e.charAt(0).toUpperCase()+e.slice(1),Te=e=>`${P[e.detail]}${e.amount===0?``:`, ${e.amount>0?`plus`:`minus`} ${Math.abs(e.amount)}`}.`;function F(e){if(e.risen)return`You beat the count at ${e.count}.`;let t=e.touch?`pad`:`arrow key`,n=e.prompt,r=n===null?`No more prompts this count.`:`Press the ${Ce[n.side]} ${t} on the beat of the count, as the ring closes${n.next===null?``:`; next, ${Ce[n.next]}`}. One press a count.`,i=e.verdict===null?``:` Last press: ${Te(e.verdict)}`;return`You are down. Count ${e.count}. ${r} ${Math.max(0,e.required-e.meter)} more to get up.${i}`}var I=class{beat=NaN;side=null;verdictKey=``;text=``;reset(){this.beat=NaN,this.side=null,this.verdictKey=this.text=``}announce(e){if(e.risen)return`Up.`;let t=``,n=e.verdict,r=n===null?``:`${n.atMs}:${n.detail}:${n.amount}`;n!==null&&r!==this.verdictKey&&(this.verdictKey=r,t=we(Te(n)));let i=e.prompt;return i!==null&&i.beat!==this.beat&&(this.beat=i.beat,t=`${t} ${we(Ce[i.side])}${this.side===i.side?` again`:``}.`.trim(),this.side=i.side),t!==``&&(this.text=t),this.text}},Ee={KeyF:[`left`,`jab`],KeyJ:[`right`,`jab`],KeyR:[`left`,`straight`],KeyU:[`right`,`straight`],KeyG:[`left`,`hook`],KeyH:[`right`,`hook`],KeyT:[`left`,`uppercut`],KeyY:[`right`,`uppercut`]},De={KeyZ:{kind:`slip_left`},KeyX:{kind:`slip_right`},KeyC:{kind:`weave`},KeyV:{kind:`pull`},KeyB:{kind:`clinch`},KeyN:{kind:`switch_stance`},KeyM:{kind:`taunt`},Digit1:{kind:`foul`,foul:`low_blow`},Digit2:{kind:`foul`,foul:`headbutt`},ArrowLeft:{kind:`get_up_left`},ArrowRight:{kind:`get_up_right`}},Oe={ArrowLeft:`←`,ArrowRight:`→`},ke=e=>{let t=Object.keys(De).find(t=>De[t].kind===e);return Oe[t]??t.replace(/^Key|^Digit/,``)},Ae={get_up_left:ke(`get_up_left`),get_up_right:ke(`get_up_right`)},je=new Set([...Object.keys(Ee),...Object.keys(De),`KeyW`,`KeyA`,`KeyS`,`KeyD`,`KeyQ`,`KeyE`,`ShiftLeft`,`ShiftRight`,`AltLeft`,`AltRight`]),Me=[`Move: W up · S down · A left · D right`,`High / low guard: Q / E`,`Left/right jab: F / J`,`Left/right straight: R / U`,`Left/right hook: G / H`,`Left/right uppercut: T / Y`,`Body: Shift · Power: hold Alt (Option ⌥ on a Mac) with the punch, slower to throw and far heavier`,`Slip: Z / X · Weave: C · Pull: V`,`Clinch: B · Stance: N · Taunt: M · Fouls (on purpose): Shift+1 low blow / Shift+2 headbutt`,`Get up when knocked down: press ${Ae.get_up_left} or ${Ae.get_up_right}, the side the big arrow shows, as the ring closes on each count; one press per count, the next side shows small beside it.`,`Camera: K cycles broadcast, close and over the shoulder (behind your fighter, W walks at the opponent and A / D circle him).`,`Style pick before the bout: arrow keys choose · Enter settles · 1–5 settle on that card at once.`,`Controller move: left stick. High / low guard: left / right shoulder (independent of punches).`,`Controller face classes: bottom jab · right straight · left hook · top uppercut.`,`Controller face hand: hold D-pad left for left hand or D-pad right for right hand, then press a face punch; otherwise punches use the right hand. A direction used for a punch is consumed and does not evade.`,`Controller modifiers: left trigger body · right trigger power.`,`Controller actions: left stick press clinch · right stick press switch stance · hold right trigger + right stick press to taunt · D-pad up weave · D-pad down pull · tap and release D-pad left/right to slip; while down, D-pad left/right presses that get-up side at once.`,`Controller fouls: View/Back low blow · Menu/Start headbutt.`,`Controller style pick: D-pad or left stick to choose · bottom face button settles.`,`Right-stick gesture: horizontal 0–22.5° hook · 22.5–45° jab · 45–70° straight · 70–90° uppercut; left/right direction selects hand.`,`Between rounds, tell your corner what to work on: 1 close the cut · 2 bring down the swelling · 3 catch your breath (controller: left, top or right face button; or tap).`,`Touch: drag the left side to move · tap a punch pad's left or right half for that hand · hold BODY, POWER, GUARD or LOW · tap ◀ SLIP, SLIP ▶, WEAVE, PULL or CLINCH.`],Ne=`Move WASD · Jab F/J · Straight R/U · Hook G/H · Uppercut T/Y · Guard Q/E · Body Shift · Power Alt/Option ⌥`,Pe=`Drag on the left to move · Tap the pads to punch, L or R hand · Hold BODY, POWER or GUARD · Tap SLIP, WEAVE, PULL or CLINCH`,Fe=`Drag left to move · Tap pads to punch · Hold GUARD`,Ie=(e,t)=>e?t<480?Fe:Pe:Ne,Le=[{title:`Keyboard`,items:Me.filter(e=>!e.startsWith(`Controller`)&&!e.startsWith(`Right-stick`)&&!e.startsWith(`Between rounds`)&&!e.startsWith(`Touch`))},{title:`Between rounds`,items:Me.filter(e=>e.startsWith(`Between rounds`))},{title:`Controller`,items:Me.filter(e=>e.startsWith(`Controller`)||e.startsWith(`Right-stick`))},{title:`Touch`,items:Me.filter(e=>e.startsWith(`Touch`))}],Re={top:0,right:0,bottom:0,left:0},ze={get_up_left:`◀ LEFT`,get_up_right:`RIGHT ▶`},Be=118,Ve=null,He=0,Ue=0;function We(){if(typeof document>`u`||document.body===null)return Re;if(Ve!==null&&He===window.innerWidth&&Ue===window.innerHeight)return Ve;let e=document.createElement(`div`);e.style.cssText=`position:fixed;visibility:hidden;pointer-events:none;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)`,document.body.append(e);let t=getComputedStyle(e);return Ve={top:Number.parseFloat(t.paddingTop)||0,right:Number.parseFloat(t.paddingRight)||0,bottom:Number.parseFloat(t.paddingBottom)||0,left:Number.parseFloat(t.paddingLeft)||0},He=window.innerWidth,Ue=window.innerHeight,e.remove(),Ve}function Ge(e,t,n=Re){let r=Math.max(12,n.left),i=e-Math.max(12,n.right),a=Be+n.bottom;if(e<=t){let e=(i-r-12)/2,n=t-a-96;return{left:{x:r,y:n,width:e,height:96},right:{x:i-e,y:n,width:e,height:96}}}let o=Math.min(220,Math.round(e*.24)),s=Math.max(72,Math.min(110,t-a-120)),c=t-a-s;return{left:{x:r,y:c,width:o,height:s},right:{x:i-o,y:c,width:o,height:s}}}function Ke(){try{if(window.matchMedia?.(`(pointer: coarse)`).matches)return!0}catch{}return(navigator.maxTouchPoints??0)>0&&new URLSearchParams(window.location.search).get(`platform`)===`mobile`}var qe=[{label:`JAB`,punchClass:`jab`},{label:`STRAIGHT`,punchClass:`straight`},{label:`HOOK`,punchClass:`hook`},{label:`UPPER`,punchClass:`uppercut`}],Je=[{label:`◀ SLIP`,name:`Slip left`,kind:`slip_left`},{label:`WEAVE`,name:`Weave`,kind:`weave`},{label:`SLIP ▶`,name:`Slip right`,kind:`slip_right`},{label:`PULL`,name:`Pull`,kind:`pull`},{label:`CLINCH`,name:`Clinch`,kind:`clinch`}],Ye=class{sharedActions;root;stickZone;stickBase;stickKnob;pads=[];moves=[];getUpPads=[];stickPointer=null;stickOrigin={x:0,y:0};moveX=0;moveY=0;body=!1;power=!1;guard=`none`;knockdown=!1;enabled=!0;heldPointers=new Map;heldListener=null;constructor(e,t){this.sharedActions=t,this.root=document.createElement(`div`),this.root.className=`touch-controls`,this.root.setAttribute(`aria-label`,`Touch controls`),this.root.innerHTML=`
-
${Be.map(e=>``).join(``)}
+
${Je.map(e=>``).join(``)}
-
${ze.map(e=>``).join(``)}
+
${qe.map(e=>``).join(``)}
-
${[`get_up_left`,`get_up_right`].map(e=>``).join(``)}
`,e.append(this.root),this.stickZone=this.root.querySelector(`[data-stick]`),this.stickBase=this.root.querySelector(`[data-stick-base]`),this.stickKnob=this.root.querySelector(`[data-stick-knob]`),this.pads.push(...this.root.querySelectorAll(`[data-punch]`)),this.moves.push(...this.root.querySelectorAll(`[data-move]`)),this.getUpPads.push(...this.root.querySelectorAll(`[data-getup-side]`)),this.bind()}bind(){let e=this.stickZone;e.addEventListener(`pointerdown`,t=>{if(this.stickPointer!==null)return;t.preventDefault(),this.stickPointer=t.pointerId,this.stickOrigin={x:t.clientX,y:t.clientY},e.setPointerCapture(t.pointerId);let n=e.getBoundingClientRect();this.stickBase.style.left=`${t.clientX-n.left}px`,this.stickBase.style.top=`${t.clientY-n.top}px`,this.stickBase.classList.add(`active`),this.updateStick(t.clientX,t.clientY)}),e.addEventListener(`pointermove`,e=>{e.pointerId===this.stickPointer&&(e.preventDefault(),this.updateStick(e.clientX,e.clientY))});let t=e=>{e.pointerId===this.stickPointer&&(this.stickPointer=null,this.moveX=0,this.moveY=0,this.stickKnob.style.transform=`translate(-50%, -50%)`,this.stickBase.classList.remove(`active`),this.heldListener?.())};e.addEventListener(`pointerup`,t),e.addEventListener(`pointercancel`,t);for(let e of this.getUpPads)e.addEventListener(`pointerdown`,t=>{this.enabled&&this.knockdown&&(t.preventDefault(),this.sharedActions.push(`touch`,{kind:e.dataset.getupSide===`get_up_left`?`get_up_left`:`get_up_right`}))});for(let e of this.pads)e.addEventListener(`pointerdown`,t=>{if(!this.enabled)return;t.preventDefault();let n=e.getBoundingClientRect(),r=t.clientX-n.lefte.classList.remove(`pressed`),120)});for(let e of this.moves)e.addEventListener(`pointerdown`,t=>{this.enabled&&!this.knockdown&&(t.preventDefault(),this.sharedActions.push(`touch`,{kind:e.dataset.move}),e.classList.add(`pressed`),window.setTimeout(()=>e.classList.remove(`pressed`),120))});for(let e of this.root.querySelectorAll(`[data-mod], [data-guard]`)){let t=e.dataset.mod??e.dataset.guard??``,n=n=>{n.preventDefault(),e.setPointerCapture(n.pointerId),this.heldPointers.set(n.pointerId,t),this.syncHeld(),e.classList.add(`pressed`)},r=n=>{this.heldPointers.delete(n.pointerId)&&(this.syncHeld(),e.classList.toggle(`pressed`,[...this.heldPointers.values()].includes(t)))};e.addEventListener(`pointerdown`,n),e.addEventListener(`pointerup`,r),e.addEventListener(`pointercancel`,r)}}syncHeld(){let e=[...this.heldPointers.values()];this.body=e.includes(`body`),this.power=e.includes(`power`);let t=e.findLast(e=>e===`guard_high`||e===`guard_low`)??`none`,n=t!==this.guard;this.guard=t,n&&this.heldListener?.()}get powerHeld(){return this.enabled&&this.power}onHeldChange(e){this.heldListener=e}updateStick(e,t){let n=e-this.stickOrigin.x,r=t-this.stickOrigin.y,i=Math.hypot(n,r);i>56&&(n=n/i*56,r=r/i*56),this.stickKnob.style.transform=`translate(calc(-50% + ${n}px), calc(-50% + ${r}px))`;let a=Math.min(1,i/56),o=a<.15?0:(a-.15)/.85,s=i>0?n/Math.max(i,1e-6):0,c=i>0?r/Math.max(i,1e-6):0;this.moveX=Math.round(s*o*1e3)||0,this.moveY=Math.round(-c*o*1e3)||0,this.heldListener?.()}setKnockdown(e){this.knockdown!==e&&(this.knockdown=e,this.root.classList.toggle(`knockdown`,e),e?(this.placeGetUpPads(),window.addEventListener(`resize`,this.placeGetUpPads)):(window.removeEventListener(`resize`,this.placeGetUpPads),this.setGetUpPrompt(null)))}placeGetUpPads=()=>{let e=Le(this.root.clientWidth||window.innerWidth,this.root.clientHeight||window.innerHeight);for(let[t,n]of this.getUpPads.entries()){let r=t===0?e.left:e.right;Object.assign(n.style,{left:`${r.x}px`,top:`${r.y}px`,width:`${r.width}px`,height:`${r.height}px`})}};setGetUpPrompt(e){for(let t of this.getUpPads)t.classList.toggle(`wanted`,this.knockdown&&e===t.dataset.getupSide)}setEnabled(e,t=e){this.enabled=e,this.root.classList.toggle(`disabled`,!t),this.root.classList.toggle(`resting`,t&&!e),t?e||this.sharedActions.clearSource(`touch`):this.reset()}frame(){return this.enabled?{moveX:this.moveX,moveY:this.moveY,defense:this.guard,actions:[]}:{moveX:0,moveY:0,defense:`none`,actions:[]}}reset(){this.stickPointer=null,this.moveX=0,this.moveY=0,this.body=!1,this.power=!1,this.guard=`none`,this.heldPointers.clear(),this.stickBase.classList.remove(`active`);for(let e of this.root.querySelectorAll(`.pressed`))e.classList.remove(`pressed`);this.sharedActions.clearSource(`touch`)}destroy(){this.reset(),window.removeEventListener(`resize`,this.placeGetUpPads),this.root.remove()}},He=[`broken_nose`,`broken_jaw`,`jaw_torn`,`eye_left_out`,`eye_right_out`,`ear_left_torn`,`ear_right_torn`,`face_left_flayed`,`face_right_flayed`,`skull_fractured`,`shoulder_left_dislocated`,`shoulder_right_dislocated`,`arm_left_broken`,`arm_right_broken`,`forearm_left_severed`,`forearm_right_severed`,`arm_left_torn`,`arm_right_torn`,`ribs_left_broken`,`ribs_right_broken`,`liver_ruptured`,`disemboweled`,`knee_left_blown`,`knee_right_blown`];function Ue(e){return He.includes(e)}var We=[`eyes_out`,`head_burst`,`decapitation`,`spine_rip`,`heart_punch`,`gutting`,`bisection`,`total_gib`],Ge=[`nose`,`mouth`,`eye_left`,`eye_right`,`ear_left`,`ear_right`,`skull`,`neck`,`shoulder_left`,`shoulder_right`,`elbow_left`,`elbow_right`,`chest`,`ribs_left`,`ribs_right`,`liver`,`belly`,`waist`,`crotch`,`knee_left`,`knee_right`],Ke=n.injuries,qe=Ke.kinds,Je=Ke.blood.volume,Ye=Ke.blood.stages.map(e=>e.below),Xe=Ke.finish.ticks,Ze=(e,t)=>Array.isArray(e)?e.includes(t):e.has(t);function Qe(e){return e.includes(`_left_`)?`left`:e.includes(`_right_`)?`right`:null}function $e(e){return e.replace(`_left_`,`_`).replace(`_right_`,`_`)}var et={broken_nose:`BROKEN NOSE`,broken_jaw:`BROKEN JAW`,jaw_torn:`JAW TORN OFF`,eye_out:`EYE OUT`,ear_torn:`EAR TORN OFF`,face_flayed:`CHEEK FLAYED`,skull_fractured:`SKULL SPLIT OPEN`,shoulder_dislocated:`SHOULDER OUT`,arm_broken:`ARM SNAPPED`,forearm_severed:`FOREARM SEVERED`,arm_torn:`ARM TORN OFF`,ribs_broken:`RIBS CAVED IN`,liver_ruptured:`LIVER RUPTURED`,disemboweled:`DISEMBOWELED`,knee_blown:`KNEE BLOWN OUT`};function tt(e){let t=Qe(e),n=et[$e(e)];return t===null?n:`${t.toUpperCase()} ${n}`}var nt={eyes_out:`EYES PUNCHED OUT`,head_burst:`HEAD EXPLODED`,decapitation:`DECAPITATED`,spine_rip:`SPINE RIPPED OUT`,heart_punch:`HEART PUNCHED OUT`,gutting:`GUTTED`,bisection:`TORN IN HALF`,total_gib:`BLOWN TO PIECES`};function rt(e){return nt[e]}function it(e,t){return Ke.fatalities[e][t]}function at(e){if(e===`bled_out`||e===`brain`||e===`gutted`)return e;let t=e.startsWith(`fatality:`)?e.slice(9):null;return t!==null&&We.includes(t)?e:null}function ot(e){return e.startsWith(`fatality:`)?e.slice(9):null}function st(e){let t=ot(e);return t===null?e===`bled_out`?`BLED TO DEATH`:e===`brain`?`BRAIN DESTROYED`:`GUTTED`:rt(t)}function ct(e,t){return Ze(e,`arm_${t}_torn`)?`torn`:Ze(e,`forearm_${t}_severed`)?`severed`:Ze(e,`arm_${t}_broken`)?`broken`:Ze(e,`shoulder_${t}_dislocated`)?`dislocated`:`whole`}var lt={dislocated:`shoulder_dislocated`,broken:`arm_broken`,severed:`forearm_severed`,torn:`arm_torn`};function ut(e,t){if(ct(e,t)!==`torn`)return t;let n=t===`left`?`right`:`left`;return ct(e,n)===`torn`?null:n}function dt(e){return ct(e,`left`)===`torn`&&ct(e,`right`)===`torn`}function ft(e,t){let n=ct(e,t);return n===`whole`?0:qe[lt[n]].startup_add??0}var pt=Object.fromEntries(He.map(e=>[e,qe[$e(e)].move_speed_percent??100]));function mt(e,t){let n=e;for(let e of t){let t=pt[e];t!==100&&(n=Math.floor(n*t/100))}return n}function ht(e){let t=0;for(let n of Ye)e0?`-${e.draws}`:``}`}var _t=e=>e.wins+e.losses+e.draws===0;function vt(e){return _t(e)?`PRO DEBUT`:`${gt(e)} (${e.knockouts} KO)`}var yt=class extends Error{name=`ProtocolError`},bt=2147483647,xt=new TextEncoder;function St(e){let t=0,n=()=>{for(;/\s/u.test(e[t]??``);)t+=1},r=()=>{let n=t;if(e[t++]!==`"`)throw new yt(`invalid JSON`);for(;t{n();let a=e[t];if(a===`{`){t+=1,n();let a=new Set;if(e[t]===`}`){t+=1;return}for(;;){n();let o=r();if(a.has(o))throw new yt(`duplicate field ${o}`);if(a.add(o),n(),e[t++]!==`:`)throw new yt(`invalid JSON`);i(),n();let s=e[t++];if(s===`}`)return;if(s!==`,`)throw new yt(`invalid JSON`)}}if(a===`[`){if(t+=1,n(),e[t]===`]`){t+=1;return}for(;;){i(),n();let r=e[t++];if(r===`]`)return;if(r!==`,`)throw new yt(`invalid JSON`)}}if(a===`"`){r();return}let o=e.slice(t),s=/^(?:-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?|true|false|null)/u.exec(o);if(!s)throw new yt(`invalid JSON`);t+=s[0].length};if(i(),n(),t!==e.length)throw new yt(`invalid JSON`)}function Ct(e){let t,n;if(typeof e==`string`?(t=xt.encode(e),n=e):(t=e instanceof Uint8Array?e:new Uint8Array(e),n=new TextDecoder(`utf-8`,{fatal:!0}).decode(t)),t.byteLength>65536)throw new yt(`server frame too large`);try{return St(n),JSON.parse(n)}catch(e){throw e instanceof yt?e:new yt(`invalid JSON`)}}function wt(e,t){if(typeof e!=`object`||!e||Array.isArray(e)||Object.getPrototypeOf(e)!==Object.prototype)throw new yt(`${t} must be an object`);return e}function Tt(e,t,n=[]){let r=new Set([...t,...n]),i=Object.keys(e);if(t.some(t=>!Object.hasOwn(e,t))||i.some(e=>!r.has(e)))throw new yt(`schema mismatch`)}function L(e,t,n=0,r=bt){if(!Number.isSafeInteger(e)||er)throw new yt(`${t} must be a bounded integer`);return e}function Et(e,t){if(typeof e!=`boolean`)throw new yt(`${t} must be boolean`);return e}function Dt(e,t,n=255,r=1){if(typeof e!=`string`||e.lengthn||/[\u0000-\u001f\u007f]/u.test(e))throw new yt(`${t} must be a bounded string`);return e}function Ot(e,t,n=255){return e===null?null:Dt(e,t,n)}function kt(e,t,n){if(typeof e!=`string`||!t.includes(e))throw new yt(`invalid ${n}`);return e}function At(e,t,n){if(!Array.isArray(e)||e.length>n)throw new yt(`${t} must be a bounded array`);return e}var jt=[`left`,`right`],Mt=[`jab`,`straight`,`hook`,`uppercut`],Nt=[`head`,`body`],Pt=[`normal`,`power`],Ft=[`orthodox`,`southpaw`],It=[`balanced`,`boxer`,`slugger`,`swarmer`,`counter_puncher`],Lt=[`none`,`guard_high`,`guard_low`,`slip_left`,`slip_right`,`weave`,`pull`],Rt=[`none`,`guard_high`,`guard_low`],zt=[`slip_left`,`slip_right`,`weave`,`pull`,`clinch`,`switch_stance`,`get_up_left`,`get_up_right`,`taunt`,`corner_cut`,`corner_swelling`,`corner_breath`],Bt=[`cut`,`swelling`,`breath`,`balanced`],Vt=[`low_blow`,`headbutt`],Ht=[`countdown`,`fight`,`knockdown`,`foul_recovery`,`referee_down`,`finish`,`rest`,`complete`],Ut=[`ko`,`flash_ko`,`tko`,`death`,`disqualification`,`decision`,`draw`,`forfeit`];function Wt(e){let t=wt(e,`record`);return Tt(t,[`wins`,`losses`,`draws`,`knockouts`]),{wins:L(t.wins,`record.wins`),losses:L(t.losses,`record.losses`),draws:L(t.draws,`record.draws`),knockouts:L(t.knockouts,`record.knockouts`)}}function Gt(e){let t=wt(e,`player`);Tt(t,[`id`,`name`,`avatar`,`rating`,`connected`],[`cpu`,`record`,`style`]);let n=t.style===void 0?{}:{style:kt(t.style,It,`player style`)},r=t.cpu===void 0?{}:{cpu:Et(t.cpu,`cpu`)},i=t.record===void 0?{}:{record:Wt(t.record)};return{id:Dt(t.id,`player.id`),name:Dt(t.name,`player.name`,80),avatar:Ot(t.avatar,`player.avatar`,128),rating:L(t.rating,`rating`),connected:Et(t.connected,`connected`),...r,...i,...n}}function Kt(e,t,n=1){let r=At(e,`players`,2).map(Gt);if(r.lengthe.id)).size!==r.length)throw new yt(`players must be present and distinct`);return r}function qt(e){let t=wt(e,`trauma`);return Tt(t,[`head`,`body`,`left_eye`,`right_eye`,`left_cut`,`right_cut`,`swelling`,`bleeding`]),{head:L(t.head,`head`,0,1400),body:L(t.body,`body`,0,1200),left_eye:L(t.left_eye,`left_eye`,0,1e3),right_eye:L(t.right_eye,`right_eye`,0,1e3),left_cut:L(t.left_cut,`left_cut`,0,1e3),right_cut:L(t.right_cut,`right_cut`,0,1e3),swelling:L(t.swelling,`swelling`,0,1e3),bleeding:L(t.bleeding,`bleeding`,0,1e3)}}var Jt=g;function Yt(e,t){return Math.max(-Jt,Math.min(Jt,L(e,t,-2147483647,bt)))}function Xt(e){let t=At(e,`injuries`,He.length).map(e=>kt(e,He,`injury`));for(let e=1;ee===null)&&[n,r,i,a].some(e=>e!==null))throw new yt(`partial punch action`);let o=t.action_id===null?null:Dt(t.action_id,`action_id`,32),s=t.action_key===null?null:Dt(t.action_key,`action_key`,64);if([o,s].some(e=>e===null)!==[o,s].every(e=>e===null))throw new yt(`partial action instance`);if(o!==null&&n===null)throw new yt(`action instance without class`);let c=t.get_up_prompt===null?null:kt(t.get_up_prompt,[`get_up_left`,`get_up_right`],`get-up prompt`),l=t.get_up_next_prompt===null?null:kt(t.get_up_next_prompt,[`get_up_left`,`get_up_right`],`next get-up prompt`),u=L(t.maximum_stamina,`maximum_stamina`,330,1e3),d=L(t.stamina,`stamina`,0,u),f=L(t.get_up_required,`get_up_required`,0,ie),p=L(t.facing,`facing`,-1,1);if(p===0)throw new yt(`invalid facing`);let m=L(t.facing_x,`facing_x`,-1e3,1e3),h=L(t.facing_y,`facing_y`,-1e3,1e3);if(m===0&&h===0)throw new yt(`invalid facing vector`);if(f!==0&&fAt(e,`round scores`,15).map(e=>L(e,`score`,6,10)),r=n(t.player_one),i=n(t.player_two);if(r.length!==i.length)throw new yt(`scorecard round mismatch`);return{judge:Dt(t.judge,`judge`,80),player_one:r,player_two:i}}function en(e){let t=At(e,`scorecards`,3).map($t);if(t.length!==3)throw new yt(`exactly three scorecards required`);return t}function tn(e,t){if(t===`draw`!=(e===null))throw new yt(`incoherent finish result`)}function nn(e){let t=wt(e,`result`);Tt(t,[`match_id`,`activity_instance_id`,`guild_id`,`player_one_id`,`player_two_id`,`winner_id`,`finish_method`,`round_number`,`tick`,`scorecards`,`player_one_knockdowns`,`player_two_knockdowns`,`player_one_damage`,`player_two_damage`]);let n=Dt(t.player_one_id,`player_one_id`),r=Dt(t.player_two_id,`player_two_id`);if(n===r)throw new yt(`result players must be distinct`);let i=Ot(t.winner_id,`winner_id`);if(i!==null&&i!==n&&i!==r)throw new yt(`invalid winner`);let a=kt(t.finish_method,Ut,`finish method`);return tn(i,a),{match_id:Dt(t.match_id,`match_id`),activity_instance_id:Dt(t.activity_instance_id,`activity_instance_id`),guild_id:Dt(t.guild_id,`guild_id`),player_one_id:n,player_two_id:r,winner_id:i,finish_method:a,round_number:L(t.round_number,`round`,1,15),tick:L(t.tick,`tick`),scorecards:en(t.scorecards),player_one_knockdowns:L(t.player_one_knockdowns,`knockdowns`,0,3),player_two_knockdowns:L(t.player_two_knockdowns,`knockdowns`,0,3),player_one_damage:L(t.player_one_damage,`damage`),player_two_damage:L(t.player_two_damage,`damage`)}}function rn(e){let t=wt(e,`referee`);return Tt(t,[`x`,`y`,`facing_x`,`facing_y`,`velocity_x`,`velocity_y`,`stunned_ticks`,`alive`,`trauma`]),{x:L(t.x,`referee.x`,-462,462),y:L(t.y,`referee.y`,-462,462),facing_x:L(t.facing_x,`referee.facing_x`,-1e3,1e3),facing_y:L(t.facing_y,`referee.facing_y`,-1e3,1e3),velocity_x:Yt(t.velocity_x,`referee.velocity_x`),velocity_y:Yt(t.velocity_y,`referee.velocity_y`),stunned_ticks:L(t.stunned_ticks,`referee.stunned_ticks`,0,90),alive:Et(t.alive,`referee.alive`),trauma:qt(t.trauma)}}function an(e){let t=wt(e,`snapshot`);Tt(t,[`tick`,`phase`,`round_number`,`phase_ticks_remaining`,`fighters`,`referee`,`events`,`result`,`checksum`]);let n=At(t.fighters,`fighters`,2).map(Zt);if(n.length!==2||n[0]?.player_id===n[1]?.player_id)throw new yt(`snapshot requires two distinct fighters`);let r=Dt(t.checksum,`checksum`,64);if(!/^[a-f0-9]{64}$/u.test(r))throw new yt(`invalid checksum`);return{tick:L(t.tick,`tick`),phase:kt(t.phase,Ht,`phase`),round_number:L(t.round_number,`round`,1,15),phase_ticks_remaining:L(t.phase_ticks_remaining,`phase ticks`),fighters:[n[0],n[1]],referee:rn(t.referee),events:At(t.events,`events`,256).map(Qt),result:t.result===null?null:nn(t.result),checksum:r}}function on(e){let t=wt(Ct(e),`envelope`);if(t.version!==7)throw new yt(`unsupported protocol version`);let n=Dt(t.type,`type`,32);if(n===`welcome`){let e=kt(t.role,[`fighter`,`spectator`],`connection role`),r=Dt(t.player_id,`player_id`),i=t.reconnect_ticket===void 0?{}:{reconnect_ticket:Dt(t.reconnect_ticket,`reconnect_ticket`,4096)};if(e===`fighter`){Tt(t,[`version`,`type`,`role`,`player_id`,`seat`,`rating`,`players`,`server_tick`,`next_sequence`],[`reconnect_ticket`]);let a=Kt(t.players);if(!a.some(e=>e.id===r))throw new yt(`welcome fighter is absent`);return{version:7,type:n,role:e,player_id:r,seat:L(t.seat,`seat`,1,2),rating:L(t.rating,`rating`),players:a,server_tick:L(t.server_tick,`server_tick`),next_sequence:L(t.next_sequence,`next_sequence`),...i}}Tt(t,[`version`,`type`,`role`,`player_id`,`players`,`server_tick`],[`reconnect_ticket`]);let a=Kt(t.players,void 0,0);if(a.some(e=>e.id===r))throw new yt(`spectator cannot be a fighter`);return{version:7,type:n,role:e,player_id:r,players:a,server_tick:L(t.server_tick,`server_tick`),...i}}if(n===`ticket`)return Tt(t,[`version`,`type`,`reconnect_ticket`,`refresh_id`]),{version:7,type:n,reconnect_ticket:Dt(t.reconnect_ticket,`reconnect_ticket`,4096),refresh_id:Dt(t.refresh_id,`refresh_id`,128,16)};if(n===`waiting`){if(Tt(t,[`version`,`type`,`open_seats`]),t.open_seats!==1&&t.open_seats!==2)throw new yt(`invalid open seats`);return{version:7,type:n,open_seats:t.open_seats}}if(n===`select`){Tt(t,[`version`,`type`,`deadline_ms`,`players`,`ready`]);let e=Kt(t.players,2),r=At(t.ready,`ready`,2).map(e=>Dt(e,`ready player id`));if(new Set(r).size!==r.length||r.some(t=>!e.some(e=>e.id===t)))throw new yt(`invalid ready fighters`);return{version:7,type:n,deadline_ms:L(t.deadline_ms,`deadline_ms`,0,6e4),players:[e[0],e[1]],ready:r}}if(n===`ready`){Tt(t,[`version`,`type`,`players`]);let e=Kt(t.players,2);return{version:7,type:n,players:[e[0],e[1]]}}if(n===`paused`)return Tt(t,[`version`,`type`,`player_id`,`grace_ms`]),{version:7,type:n,player_id:Dt(t.player_id,`player_id`),grace_ms:L(t.grace_ms,`grace_ms`,0,6e4)};if(n===`resumed`)return Tt(t,[`version`,`type`,`player_id`]),{version:7,type:n,player_id:Dt(t.player_id,`player_id`)};if(n===`snapshot`)return Tt(t,[`version`,`type`,`payload`]),{version:7,type:n,payload:an(t.payload)};if(n===`error`)return Tt(t,[`version`,`type`,`code`]),{version:7,type:n,code:Dt(t.code,`error code`,80)};if(n===`final`)return cn(t,n);throw new yt(`unsupported server message type`)}function sn(e,t){let n=Object.entries(wt(e,`punches`));if(n.length!==2||n.some(([e])=>!t.includes(e)))throw new yt(`punches must count both fighters`);let r=Object.create(null);for(let[e,t]of n){let n=wt(t,`punch totals`);Tt(n,[`thrown`,`landed`,`jabs_thrown`,`jabs_landed`]);let i=L(n.thrown,`thrown`),a=L(n.landed,`landed`,0,i),o=L(n.jabs_thrown,`jabs_thrown`,0,i);r[e]={thrown:i,landed:a,jabs_thrown:o,jabs_landed:L(n.jabs_landed,`jabs_landed`,0,Math.min(a,o))}}return r}function cn(e,t){Tt(e,[`version`,`type`,`match_id`,`winner_id`,`method`,`round`,`scorecards`,`ratings`],[`punches`]);let n=wt(e.ratings,`ratings`),r=Object.entries(n);if(r.length!==2)throw new yt(`final requires two ratings`);let i=Object.create(null);for(let[e,t]of r){Dt(e,`rating player id`);let n=wt(t,`rating`);Tt(n,[`before`,`after`]),i[e]={before:L(n.before,`before`),after:L(n.after,`after`)}}let a=Ot(e.winner_id,`winner_id`);if(a!==null&&!Object.hasOwn(i,a))throw new yt(`winner absent from ratings`);let o=kt(e.method,Ut,`finish method`);tn(a,o);let s=e.punches===void 0?{}:{punches:sn(e.punches,Object.keys(i))};return{version:7,type:t,match_id:Dt(e.match_id,`match_id`),winner_id:a,method:o,round:L(e.round,`round`,1,15),scorecards:en(e.scorecards),ratings:i,...s}}function ln(e,t,n){return JSON.stringify({version:7,type:`input`,sequence:L(e,`sequence`),client_tick:L(t,`client tick`),move:{x:Math.max(-1e3,Math.min(1e3,Math.round(Number.isFinite(n.moveX)?n.moveX:0))),y:Math.max(-1e3,Math.min(1e3,Math.round(Number.isFinite(n.moveY)?n.moveY:0)))},defense:kt(n.defense,Rt,`held defense`),actions:n.actions.slice(0,4).map(e=>{let t=e.id===void 0?{}:{id:e.id.slice(0,32)};return e.kind===`punch`?{kind:`punch`,hand:kt(e.hand,jt,`hand`),class:kt(e.class,Mt,`class`),target:kt(e.target,Nt,`target`),power:kt(e.power,Pt,`power`),...t}:e.kind===`foul`?{kind:`foul`,foul:kt(e.foul,Vt,`foul`),...t}:{kind:kt(e.kind,zt,`action`),...t}})})}function un(e,t){return JSON.stringify({version:7,type:`style`,style:kt(e,It,`fighter style`),ready:t===!0})}var dn=[`rookie`,`contender`,`champion`];function fn(e){return JSON.stringify({version:7,type:`cpu`,level:kt(e,dn,`computer level`)})}function pn(e){let t=wt(e,`bootstrap`);if(Tt(t,[`client_id`,`state`,`protocol`,`simulation`]),t.protocol!==7)throw new yt(`unsupported protocol version`);let n=wt(t.simulation,`simulation`);return Tt(n,[`tick_rate`,`ring_half_width`,`ring_half_height`]),{client_id:Dt(t.client_id,`client_id`,36),state:Dt(t.state,`state`,128),protocol:7,simulation:{tick_rate:L(n.tick_rate,`tick rate`,1,120),ring_half_width:L(n.ring_half_width,`ring width`,1),ring_half_height:L(n.ring_half_height,`ring height`,1)}}}function mn(e){let t=wt(e,`token response`);Tt(t,[`access_token`,`ticket`,`player`]);let n=wt(t.player,`player`);return Tt(n,[`id`,`name`,`avatar`,`rating`]),{access_token:Dt(t.access_token,`access token`,4096),ticket:Dt(t.ticket,`ticket`,4096),player:{id:Dt(n.id,`id`),name:Dt(n.name,`name`,80),avatar:Ot(n.avatar,`avatar`,128),rating:L(n.rating,`rating`)}}}var hn=[`Power`,`Hand speed`,`Footwork`,`Reach`,`Stamina`,`Defence`],gn=[{style:`balanced`,name:`Balanced`,tag:`BALANCED`,detail:`Even at everything, no holes to exploit.`,stats:[3,3,3,3,3,3]},{style:`boxer`,name:`Boxer`,tag:`BOXER`,detail:`Snappy jab and long reach, lighter hands.`,stats:[2,4,3,4,3,3]},{style:`slugger`,name:`Slugger`,tag:`SLUGGER`,detail:`Heavy hands, hard chin, slow feet, tires sooner.`,stats:[5,2,2,3,2,4]},{style:`swarmer`,name:`Swarmer`,tag:`SWARMER`,detail:`Quick feet and head, digs to the body, never stops.`,stats:[2,4,4,3,4,3]},{style:`counter_puncher`,name:`Counter-puncher`,tag:`COUNTER`,detail:`Slips and parries, makes every miss cost.`,stats:[2,3,3,3,3,5]}],_n=e=>gn.find(t=>t.style===e)??gn[0];function vn(e){return e===void 0||e===`balanced`?null:_n(e).tag}function yn(e){return e===void 0||e===`balanced`?null:`the ${_n(e).name.toLowerCase()}`}var bn=`hands.style.v1`;function xn(e=Cn()){try{let t=e?.getItem(bn);return It.find(e=>e===t)??`balanced`}catch{return`balanced`}}function Sn(e,t=Cn()){try{t?.setItem(bn,e)}catch{}}function Cn(){try{return window.localStorage}catch{return null}}var wn=400,Tn={Digit1:0,Digit2:1,Digit3:2,Digit4:3,Digit5:4,Numpad1:0,Numpad2:1,Numpad3:2,Numpad4:3,Numpad5:4},En=.6;function Dn(){try{return[...navigator.getGamepads?.()??[]].find(e=>e!==null&&e.connected&&e.mapping===`standard`)??null}catch{return null}}function On(e){let t=new Set;if(e===null)return t;let n=t=>e.buttons[t]?.pressed===!0,r=e.axes[0]??0,i=e.axes[1]??0;return(n(12)||n(14)||r<-.6||i<-.6)&&t.add(`previous`),(n(13)||n(15)||r>En||i>En)&&t.add(`next`),n(0)&&t.add(`settle`),t}var kn=class{send;now;element;buttons=new Map;clock;status;visible=!1;choosing=!1;highlighted;settled=!1;deadlineAt=0;timer=null;padFrame=0;padHeld=new Set;context=null;keydown=e=>{if(!this.visible||!this.choosing||e.repeat||e.ctrlKey||e.metaKey||e.altKey)return;let t=e.target;if(t instanceof HTMLElement&&t!==document.body&&!this.element.contains(t))return;let n=Tn[e.code];n===void 0?e.code===`ArrowRight`||e.code===`ArrowDown`?(e.preventDefault(),this.move(this.neighbour(1))):e.code===`ArrowLeft`||e.code===`ArrowUp`?(e.preventDefault(),this.move(this.neighbour(-1))):e.code!==`Enter`&&e.code!==`Space`||t instanceof HTMLButtonElement||(e.preventDefault(),this.pick(this.highlighted,!0)):(e.preventDefault(),this.pick(gn[n].style,!0))};constructor(e,t,n=()=>performance.now(),r=xn()){this.send=t,this.now=n,this.highlighted=r;let i=document.createElement(`section`);i.className=`style-picker`,i.dataset.stylePicker=``,i.hidden=!0,i.setAttribute(`aria-label`,`Pick how your fighter boxes`);let a=document.createElement(`header`),o=document.createElement(`p`);o.className=`style-title`,o.textContent=`CHOOSE YOUR STYLE`,this.clock=document.createElement(`p`),this.clock.className=`style-clock`,a.append(o,this.clock);let s=document.createElement(`div`);s.className=`style-cards`;for(let[e,t]of gn.entries()){let n=document.createElement(`button`);n.type=`button`,n.dataset.style=t.style,n.setAttribute(`aria-pressed`,`false`);let r=document.createElement(`kbd`);r.textContent=String(e+1);let i=document.createElement(`strong`);i.textContent=t.name;let a=document.createElement(`span`);a.textContent=t.detail;let o=document.createElement(`ul`);o.className=`style-stats`;for(let[e,n]of t.stats.entries()){let t=document.createElement(`li`);t.setAttribute(`aria-label`,`${hn[e]} ${n} of 5`);let r=document.createElement(`small`);r.textContent=hn[e];let i=document.createElement(`i`);i.dataset.value=String(n),t.append(r,i),o.append(t)}n.append(r,i,a,o),n.addEventListener(`click`,()=>this.pick(t.style,!0)),s.append(n),this.buttons.set(t.style,n)}this.status=document.createElement(`p`),this.status.className=`style-status`,this.status.setAttribute(`role`,`status`),i.append(a,s,this.status),e.append(i),this.element=i,window.addEventListener(`keydown`,this.keydown)}update(e,t,n){if(e===null){this.setVisible(!1),this.context=null,this.settled=!1;return}let r=this.context===null||!this.choosing&&n===`fighter`;this.context?.select!==e&&(this.deadlineAt=this.now()+e.deadline_ms-wn),this.context={select:e,viewerId:t},this.choosing=n===`fighter`&&t!==null,this.settled=this.choosing&&(this.settled||e.ready.includes(t));let i=e.players.find(e=>e.id===t)?.style;this.settled&&i!==void 0&&(this.highlighted=i),r&&this.choosing&&!this.settled&&this.send(this.highlighted,!1),this.setVisible(!0),this.render()}pick(e,t){!this.choosing||this.settled||this.closed||(this.highlighted=e,this.send(e,t)&&(t&&(this.settled=!0),this.render()))}get closed(){return this.now()>=this.deadlineAt}neighbour(e){return gn[(gn.findIndex(e=>e.style===this.highlighted)+e+gn.length)%gn.length].style}move(e){this.pick(e,!1),this.settled||this.buttons.get(this.highlighted)?.focus()}render(){let e=this.context;if(e===null)return;let{select:t,viewerId:n}=e;for(let e of gn){let t=this.buttons.get(e.style),n=this.choosing&&e.style===this.highlighted;t.disabled=!this.choosing||this.settled||this.closed,t.setAttribute(`aria-pressed`,String(n)),t.toggleAttribute(`data-chosen`,n),t.tabIndex=e.style===this.highlighted?0:-1}let r=`${Math.max(0,Math.ceil((this.deadlineAt-this.now())/1e3))}s`;this.clock.textContent!==r&&(this.clock.textContent=r);let i=t.players.filter(e=>e.id!==n&&(!e.connected||t.ready.includes(e.id))).map(e=>e.connected?`${e.name} is ready.`:`Waiting for ${e.name} to reconnect.`).join(` `),a=this.choosing?this.settled?i.length>0?`Ready as ${_n(this.highlighted).name}. ${i}`:`Ready as ${_n(this.highlighted).name}. Waiting for your opponent.`:i.length>0?`${i} Tap a style or press Enter to settle on yours.`:`Tap a style, or use the arrow keys and Enter.`:i.length>0?`The fighters are choosing. ${i}`:`The fighters are choosing their styles.`;this.status.textContent!==a&&(this.status.textContent=a)}setVisible(e){this.visible!==e&&(this.visible=e,this.element.hidden=!e,e?(this.timer=window.setInterval(()=>this.render(),250),this.padHeld=On(Dn()),this.padFrame=requestAnimationFrame(()=>this.pollPad())):(this.timer!==null&&window.clearInterval(this.timer),this.timer=null,cancelAnimationFrame(this.padFrame)))}pollPad(){if(!this.visible)return;let e=On(Dn());for(let t of e)this.padHeld.has(t)||(t===`settle`?this.pick(this.highlighted,!0):this.move(this.neighbour(t===`next`?1:-1)));this.padHeld=e,this.padFrame=requestAnimationFrame(()=>this.pollPad())}destroy(){this.setVisible(!1),window.removeEventListener(`keydown`,this.keydown),this.element.remove()}},An=/^[0-9]{17,20}$/u,jn=/^[A-Za-z0-9_]{1,128}$/u,Mn=`https://cdn.discordapp.com/avatars/`,Nn=128,Pn=8;function Fn(e){return e.avatar===null||!An.test(e.id)||!jn.test(e.avatar)?null:new URL(`${e.id}/${e.avatar}.png?size=${Nn}`,Mn).href}function In(e){let t=Array.from(e).find(e=>/[\p{L}\p{N}]/u.test(e));return t===void 0?`?`:t.toUpperCase()}var Ln=class{create;pictures=new Map;addresses=new Map;constructor(e=()=>new Image){this.create=e}get(e){if(e===void 0)return null;let t=this.addresses.get(e.id);(t===void 0||t.avatar!==e.avatar)&&(this.addresses.size>=Pn&&this.addresses.clear(),t={avatar:e.avatar,url:Fn(e)},this.addresses.set(e.id,t));let n=t.url;if(n===null)return null;let r=this.pictures.get(n);if(r!==void 0)return r.ready?r.image:null;if(this.pictures.size>=Pn){let e=this.pictures.entries().next().value;e!==void 0&&this.drop(e[0],e[1])}let i={image:this.create(),ready:!1};return this.pictures.set(n,i),i.image.crossOrigin=`anonymous`,i.image.referrerPolicy=`no-referrer`,i.image.decoding=`async`,i.image.onload=()=>{i.ready=i.image.naturalWidth>0},i.image.onerror=()=>{i.ready=!1},i.image.src=n,null}dispose(){for(let[e,t]of[...this.pictures])this.drop(e,t);this.addresses.clear()}drop(e,t){t.image.onload=null,t.image.onerror=null,t.ready=!1,this.pictures.delete(e)}},Rn=`POWER ARMED`,zn=1e3,Bn=e=>e.reduce((e,t)=>e+t,0),Vn=(e,t,n)=>{if(e.measureText(t).width<=n)return t;let r=t;for(;r.length>1&&e.measureText(`${r}…`).width>n;)r=r.slice(0,-1);return`${r}…`},Hn=(e,t,n,r)=>{for(let i=n;i>r;--i)if(e(i)<=t)return i;return r},Un=`#ff7066`;function Wn(e,t,n,r,i,a){let o=i.spentBelow!==void 0&&i.value0&&(e.globalAlpha=i.alarm*.6,e.fillStyle=`#ff4632`,e.fillRect(t-1,n-1,r+2,11),e.globalAlpha=1),o){e.beginPath();for(let i=-9;i.5?`#ffffff`:`#ff9a90`,e.fillText(r,t,n-4)}}function Kn(e,t,n,r,i,a,o){let s=()=>{e.beginPath(),e.arc(t,n,r,0,Math.PI*2),e.closePath()};e.save(),s(),e.fillStyle=`#0b1220`,e.fill(),i===null?(e.globalAlpha=.4,e.fillStyle=o,e.fill(),e.globalAlpha=1,e.fillStyle=`#f5f8ff`,e.textAlign=`center`,e.font=`800 ${Math.round(r*1.1)}px Inter, system-ui, sans-serif`,e.fillText(In(a),t,n+r*.39)):(e.save(),e.clip(),e.drawImage(i,t-r,n-r,r*2,r*2),e.restore()),s(),e.lineWidth=Math.max(1.5,r/9),e.strokeStyle=o,e.stroke(),e.restore()}function qn(e,t=[]){let n=e.left_eye>=p&&!t.includes(`eye_left_out`),r=e.right_eye>=p&&!t.includes(`eye_right_out`);return n&&r?`BOTH EYES SHUT`:n?`LEFT EYE SHUT`:r?`RIGHT EYE SHUT`:null}var Jn={cut:`closing the cut`,swelling:`icing the swelling`,breath:`catching breath`,balanced:`a little of everything`};function Yn(e){let t=e.flatMap((e,t)=>e.corner_choice===null?[]:[`${t===0?`Blue`:`Red`}: ${Jn[e.corner_choice]}`]);return t.length===0?null:t.join(` · `)}function Xn(e,t,n,r){e.save(),e.font=`900 12px Inter, system-ui, sans-serif`;let i=e.measureText(Rn).width+16,a=r?t-i:t;e.shadowColor=`rgba(255,120,30,0.9)`,e.shadowBlur=12;let o=e.createLinearGradient(0,n,0,n+18);o.addColorStop(0,`#ffd36b`),o.addColorStop(1,`#ff6a1a`),e.fillStyle=o,e.fillRect(a,n,i,18),e.shadowBlur=0,e.fillStyle=`#2a0c00`,e.textAlign=`left`,e.fillText(Rn,a+8,n+13),e.restore()}function Zn(e,t,n,r,i){e.save(),e.font=`800 9px Inter, system-ui, sans-serif`;let a=e.measureText(r).width+12,o=i?t-a:t;e.fillStyle=`rgba(150,22,18,0.92)`,e.fillRect(o,n,a,14),e.fillStyle=`#ffe8e3`,e.textAlign=`left`,e.fillText(r,o+6,n+10),e.restore()}var Qn={arm_torn:0,disemboweled:1,forearm_severed:2,skull_fractured:3,jaw_torn:4,face_flayed:5,eye_out:6,ear_torn:7,arm_broken:8,knee_blown:9,ribs_broken:10,broken_jaw:11,broken_nose:12,liver_ruptured:13,shoulder_dislocated:14},$n=8,er=e=>Qn[$e(e)],tr={wide:4,compact:3};function nr(e){return e.filter(t=>t!==`broken_jaw`||!e.includes(`jaw_torn`)).sort((e,t)=>er(e)-er(t))}function rr(e,t){let n=e.slice(0,t).map(tt);return e.length>t&&n.push(`+${e.length-t}`),n}var ir=14,ar=3,or=`800 9px Inter, system-ui, sans-serif`,sr={grave:`#c4160f`,plain:`rgba(122,18,14,0.92)`,count:`rgba(52,8,8,0.92)`},cr={grave:`#ffffff`,plain:`#ffe8e3`,count:`#ffb1a8`};function lr(e,t,n,r,i,a){e.fillStyle=sr[a],e.fillRect(t,n,r,ir),e.fillStyle=cr[a],e.fillText(i,t+6,n+10)}function ur(e,t,n,r,i,a,o){if(i.length===0)return n;let s=nr(i),c=Math.min(a,s.length),l=rr(s,a).map(e=>({label:e,width:0,offset:0,row:0}));e.save(),e.font=or,e.textAlign=`left`;let u=0,d=0;for(let t of l)t.label=Vn(e,t.label,r-12),t.width=e.measureText(t.label).width+12,d>0&&d+ar+t.width>r&&(u+=1,d=0),t.offset=d===0?0:d+ar,t.row=u,d=t.offset+t.width;let f=n-(u+1)*17+ar;return l.forEach((n,r)=>{let i=r>=c?`count`:er(s[r])<$n?`grave`:`plain`;lr(e,o?t-n.offset-n.width:t+n.offset,f+n.row*17,n.width,n.label,i)}),e.restore(),f}function dr(e,t,n,r,i,a,o){let s=nr(a),c=s.length+(i===null?0:1);if(c===0)return 0;e.save(),e.font=or,e.textAlign=`left`;let l=0,u=0;for(;ur)break;lr(e,o?t-p-f:t+p,n,f,d,a===null||er(a)>=$n?`plain`:`grave`),l=p+f,u+=1}if(u>0&&u0?`${t.knockdowns} KD`:null,c=[s,t.warnings>0?`${t.warnings} WARNING${t.warnings===1?``:`S`}`:null,t.deductions>0?`−${t.deductions} PT${t.deductions===1?``:`S`}`:null,r>0?`${r} INJUR${r===1?`Y`:`IES`}`:null],l=[s,t.warnings>0?`W${t.warnings}`:null,t.deductions>0?`−${t.deductions}`:null,r>0?`${r} INJ`:null],u=(...e)=>e.filter(e=>e!==null).join(` · `),d=n?[u(i,...l),u(...l)]:[u(i,a,o,...c),u(i,o,...c),u(i,...c),u(i,...l),u(...l)];return d.filter((e,t)=>e!==``&&d.indexOf(e)===t)}var xr=168;function Sr(e,t,n,r,i,a,o,s,c,l,u=!1){e.save(),e.beginPath(),s?(e.moveTo(t+14,n),e.lineTo(t+r,n),e.lineTo(t+r-14,n+62),e.lineTo(t,n+62)):(e.moveTo(t,n),e.lineTo(t+r-14,n),e.lineTo(t+r,n+62),e.lineTo(t+14,n+62)),e.closePath(),e.fillStyle=`rgba(3,6,12,0.82)`,e.fill(),e.strokeStyle=`rgba(190,200,220,0.22)`,e.lineWidth=1,e.stroke(),e.fillStyle=c,e.fillRect(s?t+r-5:t,n+4,5,54);let d=l===void 0?20:51;l!==void 0&&Kn(e,s?t+r-11-16:t+11+16,n+4+16,16,l,i,c);let f=s?t+r-d:t+d;e.textAlign=s?`right`:`left`,e.fillStyle=`#f5f8ff`;let p=i.toUpperCase(),m=r-d-24;e.font=`800 ${Hn(t=>(e.font=`800 ${t}px Inter, system-ui, sans-serif`,e.measureText(p).width),m,16,11)}px Inter, system-ui, sans-serif`,e.fillText(Vn(e,p,m),f,n+21);let h=r-d-14;if(u)e.fillStyle=`#ffb347`,e.font=`900 10px Inter, system-ui, sans-serif`,e.fillText(Vn(e,Rn,h),f,n+35);else{e.fillStyle=`#93a3bd`;let t=(t,n)=>(e.font=`600 ${n}px Inter, system-ui, sans-serif`,e.measureText(t).width),r=a.find(e=>t(e,8)<=h)??a.at(-1)??``;e.font=`600 ${Hn(e=>t(r,e),h,10,8)}px Inter, system-ui, sans-serif`,e.fillText(Vn(e,r,h),f,n+35)}let g=(r-52)/o.length,_=o.length*g+(o.length-1)*12,v=s?t+r-20-_:t+20;o.forEach((t,r)=>{Wn(e,v+(g+12)*r,n+48,g,t,s)}),e.restore()}function Cr(e,t,n,r,i,a){let o=xr;e.save(),e.beginPath(),e.moveTo(t-o/2+12,n),e.lineTo(t+o/2-12,n),e.lineTo(t+o/2,n+29),e.lineTo(t+o/2-12,n+58),e.lineTo(t-o/2+12,n+58),e.lineTo(t-o/2,n+29),e.closePath(),e.fillStyle=`rgba(4,6,12,0.88)`,e.fill();let s=e.createLinearGradient(t-o/2,n,t+o/2,n+58);s.addColorStop(0,`#8a6a26`),s.addColorStop(.5,`#f6d57a`),s.addColorStop(1,`#8a6a26`),e.strokeStyle=s,e.lineWidth=2,e.stroke(),e.textAlign=`center`,e.fillStyle=`#ffffff`,e.font=`800 22px ui-monospace, monospace`,e.fillText(r,t,n+27),e.fillStyle=`#f6d57a`,e.font=`800 12px Inter, system-ui, sans-serif`,e.fillText(i,t,n+44),a!==`FIGHT`&&(e.fillStyle=`#93a3bd`,e.font=`700 9px Inter, system-ui, sans-serif`,e.fillText(a,t,n+55)),e.restore()}var wr=78,Tr=50,Er=.22,Dr=e=>e<480?Tr:wr,Or=(e,t)=>Math.max(e<640?112:56,t*.1)+Dr(t)/2-t/2,kr={upright:{bottom:118,height:274,moves:0,grid:118},landscape:{bottom:118,height:196,moves:102,grid:118},short:{bottom:112,height:154,moves:86,grid:92},shortHeight:350,reach:216,movesReach:134},Ar=(e,t)=>e<=t?kr.upright:t<=kr.shortHeight?kr.short:kr.landscape;function jr(e,t,n){let r=Ar(e,t);return n<=t-r.bottom-r.height?0:kr.reach+(r.moves>0&&n>t-r.bottom-r.moves?kr.movesReach:0)}var Mr=160;function Nr(e,t,n=!1){let r=Dr(t),i=t/2+Or(e,t)-r/2,a=Math.min(320,e-24),o=e/2+a/2;if(n&&e<=t)jr(e,t,i+r+8)>0&&(r=Tr);else if(n){let n=e<640?Math.min(e/2-xr/2-8,e-jr(e,t,56+r)):0,s=n-12>=Mr;s&&(i=56);let c=s?n:e-jr(e,t,i+r);o>c&&(a=Math.min(a,c-12),o=c)}return{x:o-a,y:i,width:a,height:r}}var Pr={width:560,height:360,shortest:150},Fr=112;function Ir(e,t,n=!1){let r=n?Le(e,t):null,i=e<=t,a=r!==null&&i?Math.min(t-Fr,r.left.y-8):t-Fr,o=r!==null&&!i?r.right.x-r.left.x-r.left.width-24:e-24,s=Math.min(Pr.height,Math.max(Pr.shortest,a-56)),c=Math.max(56,Math.min(Math.max(t*.24,ti(t,e<640)+34),a-s)),l=Math.min(Pr.width,o);return{x:e/2-l/2,y:c,width:l,height:s}}var Lr={perfect:{word:`PERFECT`,color:`#ffd24a`},good:{word:`GOOD`,color:`#7dffa8`},early:{word:`EARLY`,color:`#8fc3ff`},late:{word:`LATE`,color:`#ffad5c`},wrong:{word:`WRONG SIDE`,color:`#ff6b6b`}},Rr=44,zr=64,Br=[``,`1st`,`2nd`,`3rd`],Vr={get_up_left:`←`,get_up_right:`→`},Hr={plain:{ring:`#ffffff`,disc:`#16233a`,arrow:`#fff4cf`},good:{ring:`#7dffa8`,disc:`#1d6a3f`,arrow:`#e4ffee`},perfect:{ring:`#ffd24a`,disc:`#7a5a08`,arrow:`#fff8dc`}};function Ur(e,t,n,r){e.beginPath(),e.arc(t,n,r,0,Math.PI*2)}function Wr(e,t,n,r){let{x:i,y:a,width:o,height:s}=t,c=s/Pr.height,l=e=>a+e*c,u=a+s-40,d=l(52),f=e=>Math.min(c,(e-d)/2/108),p=f(u-26),m=o-16-(28+216*p+54*p+16)>=150,h=m?u-26:u-54,g=m?p:f(h),_=n.verdict===null?1/0:n.nowMs-n.verdict.atMs,v=_<1100?n.verdict:null,y=v===null?null:Lr[v.detail];e.save(),e.fillStyle=`rgba(3,6,12,0.88)`,e.fillRect(i,a,o,s),e.strokeStyle=r&&y!==null&&_<220?y.color:`rgba(246,213,122,0.5)`,e.lineWidth=2,e.strokeRect(i+2,a+2,o-4,s-4),e.textAlign=`left`,e.fillStyle=`#ffd77a`,n.count>=1?(e.font=`800 13px Inter, system-ui, sans-serif`,e.fillText(`COUNT`,i+18,l(36)),e.font=`900 ${Math.round(40*Math.max(.75,c))}px Inter, system-ui, sans-serif`,e.fillText(String(n.count),i+76,l(42))):(e.font=`900 ${Math.round(32*Math.max(.75,c))}px Inter, system-ui, sans-serif`,e.fillText(`GET UP!`,i+18,l(42)));for(let t=1;t<=10;t+=1){Ur(e,i+o-22-(10-t)*14,l(24),5);let r=t===10?`#ff6b6b`:`#ffd77a`;t<=n.count?(e.fillStyle=r,e.fill()):(e.strokeStyle=t===10?r:`rgba(210,220,235,0.55)`,e.lineWidth=1.5,e.stroke())}e.textAlign=`right`,e.fillStyle=`#aebbd0`,e.font=`700 11px Inter, system-ui, sans-serif`,e.fillText(n.count>=10?`TEN`:`${10-n.count} LEFT TO TEN`,i+o-16,l(46));let b=Rr*g,x=zr*g,S=m?i+28+b+x:i+o/2-26*g,C=(d+h)/2,w=x/te,T=n.prompt,E=``,D=`#c8d3e6`,O=!1;if(e.textAlign=`center`,n.risen||T===null)Ur(e,S,C,b),e.fillStyle=n.risen?`#1d6a3f`:`#1a2130`,e.fill(),e.fillStyle=n.risen?`#7dffa8`:`#6f7d94`,e.font=`900 ${Math.round(30*g)}px Inter, system-ui, sans-serif`,e.fillText(n.risen?`UP`:`–`,S,C+11*g),E=n.risen?`ON YOUR FEET`:`NO MORE PROMPTS`,D=n.risen?`#7dffa8`:`#c8d3e6`;else{let t=T.beat-n.pressTick,r=M.zoneTicks+.5,i=n.pressTick<_e(T.beat)-.5;O=!i&&Math.abs(t)<=r;let a=O?Math.abs(t)<=M.perfectTicks+.5?Hr.perfect:Hr.good:Hr.plain;if(e.lineWidth=r*2*w,e.strokeStyle=O?`rgba(125,255,168,0.6)`:`rgba(125,255,168,0.22)`,Ur(e,S,C,b),e.stroke(),e.lineWidth=(M.perfectTicks+.5)*2*w,e.strokeStyle=`rgba(255,210,74,0.75)`,Ur(e,S,C,b),e.stroke(),Ur(e,S,C,b-6*g),e.fillStyle=a.disc,e.fill(),e.fillStyle=a.arrow,e.font=`900 ${Math.round(64*g)}px Inter, system-ui, sans-serif`,e.fillText(Vr[T.side],S,C+22*g),i?(e.setLineDash([6,7]),e.lineWidth=2.5,e.strokeStyle=`rgba(200,211,230,0.45)`,Ur(e,S,C,b+x),e.stroke(),e.setLineDash([]),E=`GET READY`):t>=-r-M.lateTicks&&(e.lineWidth=Math.max(3,5*g),e.strokeStyle=a.ring,Ur(e,S,C,Math.max(4,b+Math.min(te,t)*w)),e.stroke(),E=O?`NOW`:t>0?`WAIT FOR IT`:`TOO LATE`,D=O?a.ring:t>0?`#eaf1ff`:`#ffad5c`),T.next!==null){let t=S+b+x+36*g;e.globalAlpha=.5,e.setLineDash([3,3]),e.lineWidth=1.5,e.strokeStyle=`#aebbd0`,Ur(e,t,C,18*g),e.stroke(),e.setLineDash([]),e.fillStyle=`#aebbd0`,e.font=`700 ${Math.round(22*g)}px Inter, system-ui, sans-serif`,e.fillText(Vr[T.next],t,C+8*g),e.font=`700 10px Inter, system-ui, sans-serif`,e.fillText(`NEXT`,t,C+18*g+12),e.globalAlpha=1}}let k=m?S+b+x+54*g+16:i+16,ee=i+o-16-k,A=k+ee/2,j=v===null?``:v.amount===0?`no score`:`${v.amount>0?`+`:`−`}${Math.abs(v.amount)}`;if(y!==null&&!(O&&_>200)){let t=r&&_<160?1+.2*(1-_/160):1;e.save(),e.translate(A,m?C:u-30),e.scale(t,t),e.fillStyle=y.color,Si(e,m?y.word:`${y.word} ${j}`,0,0,ee,900,m?32:26,13),e.restore(),m&&(e.fillStyle=y.color,e.font=`800 20px Inter, system-ui, sans-serif`,e.fillText(j,A,C+28))}else E!==``&&(e.fillStyle=D,Si(e,E,A,m?C+10:u-30,ee,900,m?28:24,12));let ne=T?.side??null,re=n.risen?`Up before ten: take the count, then box`:ne===null?`The count runs on to ten`:`${n.touch?`Tap ${Fe[ne]}`:`Press ${De[ne]}`} as the ring closes · one press a count`;e.fillStyle=`#eaf1ff`,Si(e,re,i+o/2,u,o-32,800,20,11);let ie=Math.max(1,n.required),N=Math.max(0,Math.min(ie,n.meter)),ae=Math.max(0,ie-n.meter),oe=v!==null&&v.amount>0?v.amount:0,se=v!==null&&v.amount<0?-v.amount:0,ce=Math.min(24,(o-40-96)/ie);e.fillStyle=`rgba(2,4,9,0.9)`,e.fillRect(i+16,a+s-33,ce*ie+2,16);for(let t=0;t=N-oe?`#ffd24a`:`#3ccf78`:t0?` + head damage ${le.head}`:``} · PERFECT counts ${M.perfect}`;e.textAlign=`left`,e.fillStyle=`#93a3bd`,e.font=`600 10px Inter, system-ui, sans-serif`,e.fillText(Vn(e,ue,o-32),i+16,a+s-6),e.restore()}function Gr(e,t,n,r){let i=t.height===Tr,a=t.x+t.width/2;e.fillStyle=`rgba(3,6,12,0.88)`,e.fillRect(t.x,t.y,t.width,t.height),e.strokeStyle=`rgba(246,213,122,0.45)`,e.lineWidth=1.5,e.strokeRect(t.x+2,t.y+2,t.width-4,t.height-4),e.textAlign=`center`,e.fillStyle=`#ffd77a`,Si(e,n,a,t.y+(i?22:34),t.width-24,800,i?17:22,12),e.fillStyle=`#c8d3e6`,e.font=`600 ${i?11:12}px Inter, system-ui, sans-serif`,e.fillText(Vn(e,r,t.width-24),a,t.y+(i?39:58))}var Kr=class{fightTicks=null;round=0;ticks(e){return e.round_number!==this.round&&(this.round=e.round_number,this.fightTicks=null),e.phase===`fight`&&(this.fightTicks=e.phase_ticks_remaining),(e.phase===`knockdown`||e.phase===`foul_recovery`||e.phase===`referee_down`||e.phase===`finish`||e.phase===`complete`)&&this.fightTicks!==null?this.fightTicks:e.phase_ticks_remaining}},qr=()=>({thrown:0,landed:0,jabsThrown:0,jabsLanded:0});function Jr(e,t){return e.action_id!==null&&t.some(t=>(t.kind===`block`||t.kind===`perfect_block`)&&t.tick===e.tick&&t.action_id===e.action_id&&t.actor_id===e.target_id)}var Yr=class{stats=new Map;totals=new Map;record(e,t=[]){if(e.kind===`bell`)e.detail===`round_start`&&this.stats.clear();else if(e.actor_id!==null){if(e.kind===`punch_start`){let t=+(e.detail.split(`:`)[1]===`jab`);for(let n of[this.entry(this.stats,e.actor_id),this.entry(this.totals,e.actor_id)])n.thrown+=1,n.jabsThrown+=t}else if((e.kind===`hit`||e.kind===`counter_hit`)&&!Jr(e,t)){let t=+(e.detail.split(`:`)[0]===`jab`);for(let n of[this.entry(this.stats,e.actor_id),this.entry(this.totals,e.actor_id)])n.landed+=1,n.jabsLanded+=t}}}get(e){return this.stats.get(e)??qr()}total(e){return this.totals.get(e)??qr()}entry(e,t){let n=e.get(t);return n===void 0&&(n=qr(),e.set(t,n)),n}};function Xr(e){let t=e.method.replaceAll(`_`,` `).toUpperCase();if(e.method!==`decision`&&e.method!==`draw`)return t;let n=0,r=0,i=0;for(let t of e.scorecards){let e=Bn(t.player_one),a=Bn(t.player_two);e>a?n+=1:a>e?r+=1:i+=1}let a=e.scorecards.length;return a===0?t:e.method===`draw`?i===a?`UNANIMOUS DRAW`:n===r?`SPLIT DRAW`:`MAJORITY DRAW`:Math.max(n,r)===a?`UNANIMOUS DECISION`:i>0?`MAJORITY DECISION`:`SPLIT DECISION`}var Zr=new Set([`ko`,`flash_ko`,`tko`,`death`]),Qr=3.6,$r=2.4;function ei(e){return e===null?0:Zr.has(e.method)?Qr:e.method===`disqualification`?$r:0}var ti=(e,t)=>Math.max(e*.16,(t?112:56)+40),ni=(e,t)=>e!==null&&e>=(t?100:120),ri=`FINISH HIM!`,ii=`Impact, "Arial Black", Inter, system-ui, sans-serif`,ai=2.2,oi=.82,si={name:15,nameGap:24,bar:10,foot:42},ci={name:11,nameGap:15,bar:6,foot:26},li=28,ui=160;function di(e,t,n=!1){let r=e<640?118:60,i=Math.round(Math.min(120,t*.17,(e-32)/5)),a=(e,t,n,r,i)=>{let a=i+Math.round(e*oi);return{centre:n,maxWidth:r,size:e,baseline:a,bottom:a+(t?ci:si).foot,dense:t}};if(!n)return a(i,!1,e/2,e-32,r);let o=Ar(e,t),s=t-o.bottom-o.height;for(let n of[!1,!0]){let c=null;for(let l of o.moves>0?[s,t-o.bottom-o.moves]:[s]){let o=Math.min(i,Math.floor((l-r-(n?ci:si).foot)/oi));if(o=ui&&(c={...s,maxWidth:e-2*u})}if(c!==null)return c}let c=Nr(e,t,!0);return a(Math.max(12,Math.min(i,Math.floor((c.height-ci.foot-4)/oi))),!0,c.x+c.width/2,c.width,c.y+2)}function fi(e,t=null){let[n,r]=e;return t!==null&&(n.player_id===t||r.player_id===t)?n.player_id===t?n:r:n.poise===0==(r.poise===0)?n.knockdowns===r.knockdowns?n.stunned_ticks===r.stunned_ticks?null:n.stunned_ticks>r.stunned_ticks?n:r:n.knockdowns>r.knockdowns?n:r:n.poise===0?n:r}var pi=[`jab`,`straight`,`hook`,`uppercut`],mi=pi.map(e=>e.toUpperCase()),hi=[`head`,`body`].map(e=>({target:e.toUpperCase(),fatalities:pi.map(t=>rt(it(e,t)))})),gi=14,_i=.4,vi=[0,0,0,0];function yi(e,t,n,r,i){e.save(),e.textAlign=`left`;for(let a of[!1,!0])for(let o=10;o>=8;--o){let s=o+5,c=(a?3:2)*s+6;if(n+c>i)continue;e.font=`700 ${o}px Inter, system-ui, sans-serif`;let l=o*.4,u=Math.max(...hi.map(t=>e.measureText(t.target).width))+10,d=12+u+42;for(let[t,n]of mi.entries()){let r=e.measureText(n).width,i=a?r:0;for(let n of hi)i=Math.max(i,e.measureText(n.fatalities[t]).width+(a?0:r+l));vi[t]=i,d+=i}if(d>r)continue;let f=t-d/2;e.fillStyle=`rgba(3,6,12,0.78)`,e.fillRect(f,n,d,c);let p=n+2+o;if(a){e.fillStyle=`#f6d57a`;let t=f+6+u;for(let[n,r]of mi.entries())e.fillText(r,t,p),t+=vi[n]+gi;p+=s}for(let t of hi){e.fillStyle=Un,e.fillText(t.target,f+6,p);let n=f+6+u;for(let[r,i]of t.fatalities.entries()){let t=mi[r];a||(e.fillStyle=`#f6d57a`,e.fillText(t,n,p)),e.fillStyle=`#f5f8ff`,e.fillText(i,a?n:n+e.measureText(t).width+l,p),n+=vi[r]+gi}p+=s}e.restore();return}e.restore()}function bi(e,t,n,r,i,a){let o=i===null?0:.5-.5*Math.cos(i*ai*Math.PI*2),s=t.dense?ci:si;e.save(),e.textAlign=`center`,e.font=`italic 900 ${t.size}px ${ii}`;let c=e.measureText(ri).width,l=Math.min(t.size,t.size*t.maxWidth/(c*1.1)),u=l*(1+.08*o);e.font=`italic 900 ${u}px ${ii}`,e.lineJoin=`round`,e.lineWidth=Math.max(3,u*.12),e.strokeStyle=`rgba(10,0,0,0.92)`,e.shadowColor=`rgba(255,24,12,0.9)`,e.shadowBlur=14+24*o,e.strokeText(ri,t.centre,t.baseline),e.shadowBlur=0;let d=e.createLinearGradient(0,t.baseline-u*.8,0,t.baseline);d.addColorStop(0,`#ff5540`),d.addColorStop(.5,`#d8160d`),d.addColorStop(1,`#7d0705`),e.fillStyle=d,e.fillText(ri,t.centre,t.baseline),e.font=`800 ${s.name}px Inter, system-ui, sans-serif`,e.lineWidth=t.dense?3:4;let f=`ONE MORE PUNCH KILLS`;if(n!==null){let r=e.measureText(`${n} IS DEAD ON HIS FEET`).width<=t.maxWidth?` IS DEAD ON HIS FEET`:` IS DONE FOR`;f=`${Vn(e,n,Math.max(0,t.maxWidth-e.measureText(r).width))}${r}`}e.strokeText(f,t.centre,t.baseline+s.nameGap),e.fillStyle=`#ffe8e3`,e.fillText(f,t.centre,t.baseline+s.nameGap);let p=Math.min(420,t.maxWidth),m=t.bottom-s.bar-2,h=p*Math.max(0,Math.min(1,r));e.fillStyle=`rgba(2,4,9,0.85)`,e.fillRect(t.centre-p/2-1,m-1,p+2,s.bar+2),e.fillStyle=`#e0180f`,e.fillRect(t.centre-h/2,m,h,s.bar),e.strokeStyle=`rgba(255,112,102,0.85)`,e.lineWidth=1,e.strokeRect(t.centre-p/2-1.5,m-1.5,p+3,s.bar+3),e.restore(),a!==null&&yi(e,t.centre,t.bottom+8,Math.min(t.maxWidth,c*l/t.size),a)}function xi(e,t,n,r,i,a,o,s,c=30,l=null,u=null,d=null,f=null,p=null,g=null,_=null,v=!1,y=!1,b=null,x=null,S=!0,C=null){e.save();let w=yr(t,n);e.scale(w,w),t/=w,n/=w,e.textBaseline=`alphabetic`;let T=e=>{let t=i[e.player_id];return t===void 0||g===null?null:g(t)},E=t<640,D=E?(t-56)/2:Math.min(300,t*.38,t/2-xr/2-8-24),O=n-84,k=S?r.tick/c:null,ee=_r(t,n,v,r.phase===`rest`&&r.fighters.some(e=>e.player_id===a));o===null&&r.fighters.forEach((o,s)=>{let c=s===1,l=c?t-24-D:24,u=i[o.player_id],d=[{label:`${E?`STA`:`STAMINA`} ${Math.round(o.stamina)}`,value:o.stamina,maximum:o.maximum_stamina,from:`#ffe08a`,to:`#d9a53a`},{label:`${E?`HP`:`HEALTH`} ${Math.round(o.conditioning)}`,value:o.conditioning,maximum:zn,from:`#ff8a7a`,to:`#b02a20`},{label:o.guard_broken?`GUARD BROKEN`:`GUARD`,value:o.guard,maximum:700,from:`#9ec7ff`,to:`#3d6fb8`,spentBelow:o.guard_broken?h:m},{label:`POISE ${Math.round(o.poise)}`,value:o.poise,maximum:600,from:`#e8c890`,to:`#8a6a34`}],f=s===0?`#3d6fb8`:`#b02a20`,p=O-12,g=qn(o.trauma,o.injuries),_=vr(o.blood_volume,k),b=r.phase===`fight`||r.phase===`countdown`||r.phase===`finish`&&fi(r.fighters,x)?.player_id!==o.player_id,S=y&&o.player_id===a&&b,C=ee?3:2,w=Math.min(64,(D-28-C*12)/C),A=w+12,te=c?l+D+4-C*A:l+20,j=c?l+D-8:te,ne=te+(c?C-2:0)*A,re=0;if(ee){let n=w<40,r=n&&_.label===`BLEEDING OUT`;Wn(e,ne,p,w,n?{...d[2],label:r?``:`GUARD`}:d[2],c),Wn(e,ne+A,p,w,n?{...d[3],label:r?``:`POISE`}:d[3],c),Wn(e,c?te:te+2*A,p,w,n?{..._,label:r?``:`BLOOD`}:_,c),r&&Gn(e,j,p,mr,c,!1,_.alarm);let i=c?te-12:te+3*A;re=dr(e,i,p-5,c?i-t/2-4:t/2-4-i,g,o.injuries,c)}else{Wn(e,ne,p,w,d[2],c),Wn(e,ne+A,p,w,d[3],c);let t=2*w+12;Wn(e,te,p-hr,t,_,c);let n=p-hr-gr;g!==null&&(n-=18,Zn(e,j,n,g,c)),n=ur(e,j,n-4,E?D-24:t,o.injuries,E?tr.compact:tr.wide,c),S&&Xn(e,j,n-18,c)}Sr(e,l,O,D,u?.name??`Fighter`,br(u,o,E,re),d.slice(0,2),c,f,E?void 0:T(o),ee&&S),E&&!(v&&t>n)&&Kn(e,t/2+(c?1:-1)*112,83,20,T(o),u?.name??`Fighter`,f)});let A=Math.floor((p??r.phase_ticks_remaining)/c),te=`${Math.floor(A/60)}:${String(A%60).padStart(2,`0`)}`,j=r.phase===`knockdown`&&u===null&&(C?.risen===!0||r.fighters.some(e=>e.player_id===a&&e.is_downed))?Ir(t,n,v):null,ne=j!==null&&E&&j.y<112;o===null&&!ne&&Cr(e,t/2,E?54:n-84,te,`ROUND ${r.round_number}`,r.phase===`complete`?`FINAL`:r.phase.replace(`_`,` `).toUpperCase());let re=d===null?0:Math.round(d);if(re>=100&&!E&&o===null&&!(v&&u!==null)&&r.fighters.some(e=>e.player_id===a)&&(e.save(),e.textAlign=v?`left`:`right`,e.font=`700 11px ui-monospace, monospace`,e.fillStyle=re<200?`rgba(240,200,110,0.9)`:`rgba(255,110,100,0.95)`,e.fillText(`SLOW CONNECTION ${re} ms`,v?24:t-24,76),e.restore()),u!==null){let t=E?120:64;e.save(),e.fillStyle=`rgba(3,6,12,0.82)`,e.fillRect(24,t,196,34),e.fillStyle=`#ff3b3b`,e.beginPath(),e.arc(42,t+17,6,0,Math.PI*2),e.fill(),e.fillStyle=`#f6f7fb`,e.font=`800 14px Inter, system-ui, sans-serif`,e.textAlign=`left`,e.fillText(u,56,t+22),e.restore()}f!==null&&r.phase===`fight`&&(e.save(),e.textAlign=`center`,e.font=`900 46px Inter, system-ui, sans-serif`,e.lineWidth=6,e.strokeStyle=`rgba(0,0,0,0.75)`,e.strokeText(f,t/2,n*Er),e.fillStyle=`#f6d57a`,e.fillText(f,t/2,n*Er),e.restore()),r.phase===`countdown`&&Gr(e,Nr(t,n,v),`ROUND ${r.round_number}`,`Touch gloves. Protect yourself at all times.`);let ie=ti(n,E);if(r.phase===`knockdown`&&u===null){let n=r.fighters.find(e=>e.is_downed),a=n??r.fighters.find(e=>e.player_id===_),o=a===void 0?null:(i[a.player_id]?.name??`Fighter`).toUpperCase();e.save(),e.textAlign=`center`,e.font=`900 44px Inter, system-ui, sans-serif`,e.lineWidth=6,e.strokeStyle=`rgba(0,0,0,0.75)`,(j===null||j.y>=ie+6)&&(e.strokeText(`KNOCKDOWN`,t/2,ie),e.fillStyle=`#ff4d4d`,e.fillText(`KNOCKDOWN`,t/2,ie)),e.font=`700 15px Inter, system-ui, sans-serif`,e.fillStyle=`#e6ecf7`;let s=n===void 0?` BEAT THE COUNT`:` IS DOWN`,c=o===null?`STANDING EIGHT`:`${Vn(e,o,Math.min(t*.5,t-32-e.measureText(s).width))}${s}`;(j===null||j.y>=ie+30)&&e.fillText(c,t/2,ie+24),e.restore()}if(r.phase===`knockdown`&&u===null){let i=r.fighters.find(e=>e.player_id===a),o=Math.max(...r.fighters.map(e=>e.get_up_count));i?.is_downed!==!0&&C?.risen!==!0?o>=1&&(e.save(),e.textAlign=`center`,e.font=`900 36px Inter, system-ui, sans-serif`,e.lineWidth=5,e.strokeStyle=`rgba(0,0,0,0.75)`,e.strokeText(`COUNT ${o}`,t/2,ie+64),e.fillStyle=`#ffd77a`,e.fillText(`COUNT ${o}`,t/2,ie+64),e.restore()):i!==void 0&&Wr(e,j??Ir(t,n,v),C??Se(i,r.tick,0,null,null,v,!1),S)}if(r.phase===`finish`&&o===null&&u===null){let o=fi(r.fighters,x),s=di(t,n,v),c=o!==null&&o.player_id!==a&&r.fighters.some(e=>e.player_id===a);bi(e,s,o===null?null:(i[o.player_id]?.name??`Fighter`).toUpperCase(),r.phase_ticks_remaining/Xe,k,c&&!v?n*_i:null)}if(r.phase===`foul_recovery`){let a=r.fighters.find(e=>e.is_foul_recovery_target);Gr(e,Nr(t,n,v),`FOUL RECOVERY`,`${i[a?.player_id??``]?.name??`Fighter`} is recovering`)}if(r.phase===`rest`){let i=r.fighters.map((e,t)=>({corner:t===0?`Blue`:`Red`,stats:l?.get(e.player_id)??qr()})).filter(({stats:e})=>e.thrown>0||e.landed>0).map(({corner:e,stats:t})=>`${e} ${t.landed} of ${t.thrown}`).join(` · `),a=Yn(r.fighters);Gr(e,Nr(t,n,v),`CORNERS · RECOVER`,a??(i.length>0?`Landed this round: ${i}`:`Conditioning governs recovery`))}if(s>0){let r=Math.min(320,t-24),i=Dr(n);Gr(e,v?Nr(t,n,!0):{x:t/2-r/2,y:n/2-i/2,width:r,height:i},`OPPONENT RECONNECTING · ${Math.ceil(s/1e3)}s`,`The bout is paused`)}if(o!==null){let a=r.fighters.map(e=>l?.total(e.player_id)??qr());Mi(e,t,n,Ti(o,r.fighters,i,a,b),!0,[T(r.fighters[0]),T(r.fighters[1])])}e.restore()}function Si(e,t,n,r,i,a,o,s,c=`Inter, system-ui, sans-serif`){e.font=`${a} ${Hn(n=>(e.font=`${a} ${n}px ${c}`,e.measureText(t).width),i,o,s)}px ${c}`,e.fillText(Vn(e,t,i),n,r)}var Ci={ko:`KNOCKOUT`,flash_ko:`FLASH KNOCKOUT`,tko:`TECHNICAL KNOCKOUT`,disqualification:`DISQUALIFICATION`,forfeit:`FORFEIT`},wi=(e,t)=>e>t?0:t>e?1:null;function Ti(e,t,n,r,i=null){let a=t.map(e=>n[e.player_id]?.name??`Fighter`),o=e.winner_id===null?null:t[0].player_id===e.winner_id?0:t[1].player_id===e.winner_id?1:null,s=e.method===`draw`&&i!==null,c=[],l=[];if(e.method===`decision`||e.method===`draw`&&!s)for(let t of e.scorecards){let e=Bn(t.player_one),n=Bn(t.player_two);l.push({label:t.judge.toUpperCase(),values:[String(e),String(n)],lead:wi(e,n)})}let u=[t[1].knockdowns,t[0].knockdowns];(u[0]>0||u[1]>0)&&c.push({label:`KNOCKDOWNS`,values:[String(u[0]),String(u[1])],lead:wi(u[0],u[1])});let[d,f]=t.map(t=>e.punches?.[t.player_id]),p=e=>({thrown:e.thrown,landed:e.landed,jabsThrown:e.jabs_thrown,jabsLanded:e.jabs_landed}),m=d!==void 0&&f!==void 0?[p(d),p(f)]:r;if(m[0].thrown>0||m[1].thrown>0){let e=(e,t)=>t>0?`${Math.min(e,t)}/${t} (${Math.round(Math.min(e,t)/t*100)}%)`:`0/0`,t=m.map(e=>({landed:e.landed-e.jabsLanded,thrown:e.thrown-e.jabsThrown}));c.push({label:`TOTAL PUNCHES`,values:[e(m[0].landed,m[0].thrown),e(m[1].landed,m[1].thrown)],lead:wi(m[0].landed,m[1].landed)}),c.push({label:`JABS`,values:[e(m[0].jabsLanded,m[0].jabsThrown),e(m[1].jabsLanded,m[1].jabsThrown)],lead:wi(m[0].jabsLanded,m[1].jabsLanded)}),c.push({label:`POWER PUNCHES`,values:[e(t[0].landed,t[0].thrown),e(t[1].landed,t[1].thrown)],lead:wi(t[0].landed,t[1].landed)})}let[h,g]=t.map(t=>e.ratings[t.player_id]);if(t.some(e=>n[e.player_id]?.cpu===!0))c.push({label:`RATING`,values:[`Unrated`,`Unrated`],lead:null});else if(h!==void 0&&g!==void 0){let e=e=>`${e.after} (${e.after>=e.before?`+`:`−`}${Math.abs(e.after-e.before)})`;c.push({label:`RATING`,values:[e(h),e(g)],lead:null,news:[h.after>=h.before,g.after>=g.before]})}return{headline:e.method===`death`?i!==null&&ot(i)!==null?`FATALITY`:`DEATH`:s?`DOUBLE DEATH`:Ci[e.method]??Xr(e),detail:i!==null&&(e.method===`death`||s)?`${st(i)} · ROUND ${e.round}`:`ROUND ${e.round}`,verdict:s?`NO SURVIVORS`:o===null?e.winner_id===null?`DRAW`:`${(n[e.winner_id]?.name??`Winner`).toUpperCase()} WINS`:`${a[o].toUpperCase()} WINS`,deadly:e.method===`death`||s,winnerSeat:o,names:a,judges:l,rows:c}}var Ei=[`#4f86d9`,`#d9483c`],Di=14;function Oi(e,t,n,r){let i=yr(e,t),a=ji(e/i,t/i,n,r);return i===1?a:{...a,x:a.x*i,y:a.y*i,width:a.width*i,height:a.height*i,rowHeight:a.rowHeight*i,verdictHeight:a.verdictHeight*i,judgesHeight:a.judgesHeight*i}}var ki=new Set([`KNOCKDOWNS`,`TOTAL PUNCHES`,`RATING`]),Ai=(e,t)=>t?e.rows.filter(e=>ki.has(e.label)):e.rows;function ji(e,t,n,r){let i=t<480,a=e>=900||e>=640&&i,o=Math.min(e-24,a?980:720),s=r?62:Di,c=i?72:112,l=n.judges.length===0?0:i?36:52,u=c+l,d=Ai(n,i).length+1,f=t-(e<640?118:70)-14-Di-s-(a?0:u),p=Math.max(16,Math.min(i?20:28,f/d)),m=Di+(a?Math.max(u,d*p):u+d*p)+s;return{x:(e-o)/2,y:t-14-m,width:o,height:m,wide:a,dense:i,rowHeight:p,verdictHeight:c,judgesHeight:l}}function Mi(e,t,n,r,i,a){let o=ji(t,n,r,i),{x:s,y:c}=o;e.fillStyle=`rgba(3,6,12,0.9)`,e.fillRect(s,c,o.width,o.height),e.strokeStyle=r.deadly?`rgba(224,36,26,0.8)`:`rgba(246,213,122,0.55)`,e.lineWidth=2,e.strokeRect(s+1,c+1,o.width-2,o.height-2),e.textAlign=`center`;let l=(o.wide?o.width*.42:o.width)-32,u=o.wide?s+o.width*.21+4:t/2,d=c+Di,f=o.verdictHeight/112;e.fillStyle=r.deadly?`#ff3a2c`:`#f6d57a`,Si(e,r.headline,u,d+34*f,l,800,(o.wide||t>=640?32:28)*f,14),e.fillStyle=`#aebbd0`,Si(e,r.detail,u,d+56*f,l,700,13*f,9),e.fillStyle=r.winnerSeat===null?`#f6f7fb`:Ei[r.winnerSeat],Si(e,r.verdict,u,d+92*f,l,800,25*f,12);let p=l/Math.max(1,r.judges.length),m=d+o.verdictHeight;r.judges.forEach((t,n)=>{let r=u-l/2+p*(n+.5);e.fillStyle=`rgba(255,255,255,0.06)`,e.fillRect(r-p/2+3,m,p-6,o.judgesHeight-8),e.fillStyle=`#8fa3c8`,Si(e,t.label,r,m+o.judgesHeight*.3,p-14,700,10,7),e.fillStyle=`#f6f7fb`,Si(e,`${t.values[0]} – ${t.values[1]}`,r,m+o.judgesHeight*.7,p-14,800,o.dense?14:17,10)});let h=o.wide?s+o.width*.42:s+12,g=s+o.width-12-h,_=o.wide?d:m+o.judgesHeight,v=g*.36,y=(g-v)/2,b=[h+y/2,h+g-y/2],x=o.rowHeight,S=Math.min(16,x*.6),C=_+x*.7;e.fillStyle=`rgba(255,255,255,0.06)`,e.fillRect(h,_,g,x);let w=Math.max(6,x/2-2);for(let t of[0,1]){let n=t===0?-1:1;e.fillStyle=Ei[t],e.fillRect(t===0?h:h+g-4,_,4,x),Kn(e,b[t]+n*(y/2-10-w),_+x/2,w,a[t],r.names[t],Ei[t]),e.textAlign=`center`,e.fillStyle=`#f6f7fb`,Si(e,r.names[t],b[t]-n*(w+3+v/4),C,y+v/2-22-w*2,800,S,9)}for(let t of Ai(r,o.dense)){C+=x,e.fillStyle=`#8fa3c8`,Si(e,t.label,h+g/2,C,v,700,Math.min(12,S),8);for(let n of[0,1])e.fillStyle=t.news===void 0?t.lead===n?`#f6f7fb`:`#aebbd0`:t.news[n]?`#55df9b`:`#ff7b74`,Si(e,t.values[n],b[n],C,y-16,t.lead===n?800:600,S,9)}}var Ni=6,Pi=150;function Fi(){return typeof window<`u`&&typeof window.speechSynthesis==`object`&&window.speechSynthesis!==null&&typeof window.SpeechSynthesisUtterance==`function`}function Ii(e){let t=e.filter(e=>e.localService&&e.lang.toLowerCase().startsWith(`en`));return t.find(e=>e.default)??t[0]??null}var Li=class{settings;synthesis;Utterance;queue=[];speaking=null;destroyed=!1;grave=!1;voice=null;voicesListed=!1;onVoicesChanged=null;cutoff=null;pendingShout=null;cutOff=null;shoutTimer=null;voicesChanged=()=>{this.listVoices(),this.voice===null&&this.cancel(),this.onVoicesChanged?.()};visibility=()=>{document.hidden&&this.cancel()};constructor(e,t=Fi()?window.speechSynthesis:null,n=Fi()?window.SpeechSynthesisUtterance:null){this.settings=e,this.synthesis=t,this.Utterance=n,this.listVoices(),t?.addEventListener?.(`voiceschanged`,this.voicesChanged),document.addEventListener(`visibilitychange`,this.visibility)}get supported(){return this.synthesis!==null&&this.Utterance!==null}get hasVoice(){return this.supported&&(this.voice!==null||!this.voicesListed)}speak(e){if(!this.supported||this.destroyed||document.hidden)return;let t=this.settings();!t.announcer||t.volume<=0||(this.voice===null&&this.listVoices(),this.voice!==null&&(this.queue.push(...e),this.queue.length>Ni&&this.queue.splice(0,this.queue.length-Ni),this.speaking===null&&this.pendingShout===null&&this.next()))}shout(e){let t=this.speaking??this.cutOff;if(this.cancel(),t===null){this.grave=!0,this.speak([e]),this.grave=!1;return}let n=()=>{this.pendingShout===n&&(this.clearShout(),t.onend=null,t.onerror=null,this.queue.unshift(e),this.grave=!0,this.next(),this.grave=!1)};this.pendingShout=n,this.cutOff=t,t.onend=n,t.onerror=n,this.shoutTimer=window.setTimeout(n,Pi)}settingsChanged(){let e=this.settings();(!e.announcer||e.volume<=0)&&this.cancel()}finishLine(e){this.queue.length=0,this.clearCutoff();let t=this.speaking;t!==null&&(this.cutoff=window.setTimeout(()=>{this.cutoff=null,this.speaking===t&&this.cancel()},e))}cancel(){this.queue.length=0,this.clearCutoff(),this.clearShout();let e=this.speaking;this.speaking=null,e!==null&&(e.onend=null,e.onerror=null,this.synthesis?.cancel())}destroy(){this.destroyed=!0,this.synthesis?.removeEventListener?.(`voiceschanged`,this.voicesChanged),document.removeEventListener(`visibilitychange`,this.visibility),this.onVoicesChanged=null,this.cancel()}clearCutoff(){this.cutoff!==null&&window.clearTimeout(this.cutoff),this.cutoff=null}clearShout(){this.shoutTimer!==null&&window.clearTimeout(this.shoutTimer),this.shoutTimer=null,this.pendingShout=null,this.cutOff=null}listVoices(){let e=this.synthesis?.getVoices()??[];e.length>0&&(this.voicesListed=!0),this.voice=Ii(e)}next(){let e=this.synthesis,t=this.Utterance,n=this.voice,r=this.queue.shift();if(e===null||t===null||r===void 0)return;let i=this.settings();if(!i.announcer||i.volume<=0||n===null||document.hidden){this.queue.length=0;return}let a=new t(r);a.volume=Math.min(1,i.volume),a.rate=this.grave?.8:.96,a.pitch=this.grave?.3:.82,a.voice=n,a.lang=n.lang;let o=()=>{this.speaking===a&&(this.speaking=null,this.clearCutoff(),this.next())};a.onend=o,a.onerror=o,this.speaking=a,e.speak(a)}},Ri=[{name:`decapitation`,sampleRate:12e3,frames:7920,wav:`UklGRgQ+AABXQVZFZm10IBAAAAABAAEA4C4AAMBdAAACABAAZGF0YeA9AAAGAGAAd/9r/1b/Dv+d/kH+Of69/vL/gAGaAhUD9wKOAmICHwPSBLYGQ/pC+4r72/rQ+Sr5sPle+7X+MQM2BmQHHwfgBSEFpAU+CKkLYA649Q331faL9fnzlfMw9ST5+/5iBV4JDAtaCuYIVgdWB0kKSw/iE2HuFvGL8lnxVO/g7TXt4+6L8wT7agMsCvAN0g4gDb0K4QjzCOEMBhO+GHQdcuis667sVOsZ6dTmDeaH54Hr4fE9+0wECgylELYRuBDhDU0LfAnWCb8OABXvG6QiDyiLKwjk3uUl5fziMuAc3v/cvtx23kbj2Op98xH8EQYQD/ETiBVzFgkUHxCYDc0MWAtYC4sPrhWTHE4kpitIMV41DDlm11XZV9pG2ZPXOtVN0yrRjc/wzkXPstA51HDae+DX6I/xjfq1BBYNYRMgGAYaSRwnHU8dkxoAFz0USRJLECwP5A0ZDyUSzha7HdclaS2nNJw6o0JgRw9LVE6kUMZROMnOyWDLQMlWxRzEScGKv0u+eLx5uq+5xbnxuii8ub7nwOLDMMrT0IXWnt1r54DwWPp2A/YLiRBdF9wbex6gIAkibyGNH3IdGBpMFdESOA45C08JEQoUC1gMIBImGl0fFiogM7A6FEMZS1ZThlfAXGhgxGHyY1S6Cbszuki4dLensvmwaq+crAesQqy5rfiv1bR/un/B2swO2f3m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33779,Sa=35840,Ca=35841,wa=35842,Ta=35843,Ea=36196,Da=37492,Oa=37496,ka=37488,Aa=37489,ja=37490,Ma=37491,Na=37808,Pa=37809,Fa=37810,Ia=37811,La=37812,Ra=37813,za=37814,Ba=37815,Va=37816,Ha=37817,Ua=37818,Wa=37819,Ga=37820,Ka=37821,qa=36492,Ja=36494,Ya=36495,Xa=36283,Za=36284,Qa=36285,$a=36286,eo=2300,to=2301,no=2302,ro=2303,io=2400,ao=2401,oo=2402,so=2500,co=3200,lo=`srgb`,uo=`srgb-linear`,fo=`linear`,po=`srgb`,mo=7680,ho=35044,go=35048,_o=2e3;function vo(e){for(let t=e.length-1;t>=0;--t)if(e[t]>=65535)return!0;return!1}function yo(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function bo(e){return document.createElementNS(`http://www.w3.org/1999/xhtml`,e)}function xo(){let e=bo(`canvas`);return e.style.display=`block`,e}var So={};function Co(...e){let t=`THREE.`+e.shift();console.log(t,...e)}function wo(e){let t=e[0];if(typeof t==`string`&&t.startsWith(`TSL:`)){let t=e[1];t&&t.isStackTrace?e[0]+=` `+t.getLocation():e[1]=`Stack trace not available. Enable "THREE.Node.captureStackTrace" to capture stack traces.`}return e}function To(...e){e=wo(e);let t=`THREE.`+e.shift();{let n=e[0];n&&n.isStackTrace?console.warn(n.getError(t)):console.warn(t,...e)}}function Eo(...e){e=wo(e);let t=`THREE.`+e.shift();{let n=e[0];n&&n.isStackTrace?console.error(n.getError(t)):console.error(t,...e)}}function Do(...e){let t=e.join(` `);t in So||(So[t]=!0,To(...e))}function Oo(e,t,n){return new Promise(function(r,i){function a(){switch(e.clientWaitSync(t,e.SYNC_FLUSH_COMMANDS_BIT,0)){case e.WAIT_FAILED:i();break;case e.TIMEOUT_EXPIRED:setTimeout(a,n);break;default:r()}}setTimeout(a,n)})}var ko={0:1,2:6,4:7,3:5,1:0,6:2,7:4,5:3},Ao=class{addEventListener(e,t){this._listeners===void 0&&(this._listeners={});let n=this._listeners;n[e]===void 0&&(n[e]=[]),n[e].indexOf(t)===-1&&n[e].push(t)}hasEventListener(e,t){let n=this._listeners;return n!==void 0&&n[e]!==void 0&&n[e].indexOf(t)!==-1}removeEventListener(e,t){let n=this._listeners;if(n===void 0)return;let r=n[e];if(r!==void 0){let e=r.indexOf(t);e!==-1&&r.splice(e,1)}}dispatchEvent(e){let t=this._listeners;if(t===void 0)return;let n=t[e.type];if(n!==void 0){e.target=this;let t=n.slice(0);for(let n=0,r=t.length;n>8&255]+jo[e>>16&255]+jo[e>>24&255]+`-`+jo[t&255]+jo[t>>8&255]+`-`+jo[t>>16&15|64]+jo[t>>24&255]+`-`+jo[n&63|128]+jo[n>>8&255]+`-`+jo[n>>16&255]+jo[n>>24&255]+jo[r&255]+jo[r>>8&255]+jo[r>>16&255]+jo[r>>24&255]).toLowerCase()}function Io(e,t,n){return Math.max(t,Math.min(n,e))}function Lo(e,t){return(e%t+t)%t}function Ro(e,t,n,r,i){return r+(e-t)*(i-r)/(n-t)}function zo(e,t,n){return e===t?0:(n-e)/(t-e)}function Bo(e,t,n){return(1-n)*e+n*t}function Vo(e,t,n,r){return Bo(e,t,1-Math.exp(-n*r))}function Ho(e,t=1){return t-Math.abs(Lo(e,t*2)-t)}function Uo(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t),e*e*(3-2*e))}function Wo(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t),e*e*e*(e*(e*6-15)+10))}function Go(e,t){return e+Math.floor(Math.random()*(t-e+1))}function Ko(e,t){return e+Math.random()*(t-e)}function qo(e){return e*(.5-Math.random())}function Jo(e){e!==void 0&&(Mo=e);let t=Mo+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}function Yo(e){return e*No}function Xo(e){return e*Po}function Zo(e){return e>0&&Number.isInteger(e)&&2**Math.round(Math.log2(e))===e}function Qo(e){return 2**Math.ceil(Math.log(e)/Math.LN2)}function $o(e){return 2**Math.floor(Math.log(e)/Math.LN2)}function es(e,t,n,r,i){let a=Math.cos,o=Math.sin,s=a(n/2),c=o(n/2),l=a((t+r)/2),u=o((t+r)/2),d=a((t-r)/2),f=o((t-r)/2),p=a((r-t)/2),m=o((r-t)/2);switch(i){case`XYX`:e.set(s*u,c*d,c*f,s*l);break;case`YZY`:e.set(c*f,s*u,c*d,s*l);break;case`ZXZ`:e.set(c*d,c*f,s*u,s*l);break;case`XZX`:e.set(s*u,c*m,c*p,s*l);break;case`YXY`:e.set(c*p,s*u,c*m,s*l);break;case`ZYZ`:e.set(c*m,c*p,s*u,s*l);break;default:To(`MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: `+i)}}function ts(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return e/4294967295;case Uint16Array:return e/65535;case Uint8Array:case Uint8ClampedArray:return e/255;case Int32Array:return Math.max(e/2147483647,-1);case Int16Array:return Math.max(e/32767,-1);case Int8Array:return Math.max(e/127,-1);default:throw Error(`THREE.MathUtils: Invalid component type.`)}}function ns(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return Math.round(e*4294967295);case Uint16Array:return Math.round(e*65535);case Uint8Array:case Uint8ClampedArray:return Math.round(e*255);case Int32Array:return Math.round(e*2147483647);case Int16Array:return Math.round(e*32767);case Int8Array:return Math.round(e*127);default:throw Error(`THREE.MathUtils: Invalid component type.`)}}var R={DEG2RAD:No,RAD2DEG:Po,generateUUID:Fo,clamp:Io,euclideanModulo:Lo,mapLinear:Ro,inverseLerp:zo,lerp:Bo,damp:Vo,pingpong:Ho,smoothstep:Uo,smootherstep:Wo,randInt:Go,randFloat:Ko,randFloatSpread:qo,seededRandom:Jo,degToRad:Yo,radToDeg:Xo,isPowerOfTwo:Zo,ceilPowerOfTwo:Qo,floorPowerOfTwo:$o,setQuaternionFromProperEuler:es,normalize:ns,denormalize:ts},z=class e{static{e.prototype.isVector2=!0}constructor(e=0,t=0){this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw Error(`THREE.Vector2: index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw Error(`THREE.Vector2: index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){let t=this.x,n=this.y,r=e.elements;return this.x=r[0]*t+r[3]*n+r[6],this.y=r[1]*t+r[4]*n+r[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=Io(this.x,e.x,t.x),this.y=Io(this.y,e.y,t.y),this}clampScalar(e,t){return this.x=Io(this.x,e,t),this.y=Io(this.y,e,t),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(Io(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){let t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;let n=this.dot(e)/t;return Math.acos(Io(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){let t=this.x-e.x,n=this.y-e.y;return t*t+n*n}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){let n=Math.cos(t),r=Math.sin(t),i=this.x-e.x,a=this.y-e.y;return this.x=i*n-a*r+e.x,this.y=i*r+a*n+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}},rs=class{constructor(e=0,t=0,n=0,r=1){this.isQuaternion=!0,this._x=e,this._y=t,this._z=n,this._w=r}static slerpFlat(e,t,n,r,i,a,o){let s=n[r+0],c=n[r+1],l=n[r+2],u=n[r+3],d=i[a+0],f=i[a+1],p=i[a+2],m=i[a+3];if(u!==m||s!==d||c!==f||l!==p){let e=s*d+c*f+l*p+u*m;e<0&&(d=-d,f=-f,p=-p,m=-m,e=-e);let t=1-o;if(e<.9995){let n=Math.acos(e),r=Math.sin(n);t=Math.sin(t*n)/r,o=Math.sin(o*n)/r,s=s*t+d*o,c=c*t+f*o,l=l*t+p*o,u=u*t+m*o}else{s=s*t+d*o,c=c*t+f*o,l=l*t+p*o,u=u*t+m*o;let e=1/Math.sqrt(s*s+c*c+l*l+u*u);s*=e,c*=e,l*=e,u*=e}}e[t]=s,e[t+1]=c,e[t+2]=l,e[t+3]=u}static multiplyQuaternionsFlat(e,t,n,r,i,a){let o=n[r],s=n[r+1],c=n[r+2],l=n[r+3],u=i[a],d=i[a+1],f=i[a+2],p=i[a+3];return e[t]=o*p+l*u+s*f-c*d,e[t+1]=s*p+l*d+c*u-o*f,e[t+2]=c*p+l*f+o*d-s*u,e[t+3]=l*p-o*u-s*d-c*f,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,n,r){return this._x=e,this._y=t,this._z=n,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t=!0){let n=e._x,r=e._y,i=e._z,a=e._order,o=Math.cos,s=Math.sin,c=o(n/2),l=o(r/2),u=o(i/2),d=s(n/2),f=s(r/2),p=s(i/2);switch(a){case`XYZ`:this._x=d*l*u+c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u-d*f*p;break;case`YXZ`:this._x=d*l*u+c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u+d*f*p;break;case`ZXY`:this._x=d*l*u-c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u-d*f*p;break;case`ZYX`:this._x=d*l*u-c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u+d*f*p;break;case`YZX`:this._x=d*l*u+c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u-d*f*p;break;case`XZY`:this._x=d*l*u-c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u+d*f*p;break;default:To(`Quaternion: .setFromEuler() encountered an unknown order: `+a)}return t===!0&&this._onChangeCallback(),this}setFromAxisAngle(e,t){let n=t/2,r=Math.sin(n);return this._x=e.x*r,this._y=e.y*r,this._z=e.z*r,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(e){let t=e.elements,n=t[0],r=t[4],i=t[8],a=t[1],o=t[5],s=t[9],c=t[2],l=t[6],u=t[10],d=n+o+u;if(d>0){let e=.5/Math.sqrt(d+1);this._w=.25/e,this._x=(l-s)*e,this._y=(i-c)*e,this._z=(a-r)*e}else if(n>o&&n>u){let e=2*Math.sqrt(1+n-o-u);this._w=(l-s)/e,this._x=.25*e,this._y=(r+a)/e,this._z=(i+c)/e}else if(o>u){let e=2*Math.sqrt(1+o-n-u);this._w=(i-c)/e,this._x=(r+a)/e,this._y=.25*e,this._z=(s+l)/e}else{let e=2*Math.sqrt(1+u-n-o);this._w=(a-r)/e,this._x=(i+c)/e,this._y=(s+l)/e,this._z=.25*e}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let n=e.dot(t)+1;return n<1e-8?(n=0,Math.abs(e.x)>Math.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=n):(this._x=0,this._y=-e.z,this._z=e.y,this._w=n)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=n),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(Io(this.dot(e),-1,1)))}rotateTowards(e,t){let n=this.angleTo(e);if(n===0)return this;let r=Math.min(1,t/n);return this.slerp(e,r),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x*=e,this._y*=e,this._z*=e,this._w*=e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){let n=e._x,r=e._y,i=e._z,a=e._w,o=t._x,s=t._y,c=t._z,l=t._w;return this._x=n*l+a*o+r*c-i*s,this._y=r*l+a*s+i*o-n*c,this._z=i*l+a*c+n*s-r*o,this._w=a*l-n*o-r*s-i*c,this._onChangeCallback(),this}slerp(e,t){let n=e._x,r=e._y,i=e._z,a=e._w,o=this.dot(e);o<0&&(n=-n,r=-r,i=-i,a=-a,o=-o);let s=1-t;if(o<.9995){let e=Math.acos(o),c=Math.sin(e);s=Math.sin(s*e)/c,t=Math.sin(t*e)/c,this._x=this._x*s+n*t,this._y=this._y*s+r*t,this._z=this._z*s+i*t,this._w=this._w*s+a*t,this._onChangeCallback()}else this._x=this._x*s+n*t,this._y=this._y*s+r*t,this._z=this._z*s+i*t,this._w=this._w*s+a*t,this.normalize();return this}slerpQuaternions(e,t,n){return this.copy(e).slerp(t,n)}random(){let e=2*Math.PI*Math.random(),t=2*Math.PI*Math.random(),n=Math.random(),r=Math.sqrt(1-n),i=Math.sqrt(n);return this.set(r*Math.sin(e),r*Math.cos(e),i*Math.sin(t),i*Math.cos(t))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}},B=class e{static{e.prototype.isVector3=!0}constructor(e=0,t=0,n=0){this.x=e,this.y=t,this.z=n}set(e,t,n){return n===void 0&&(n=this.z),this.x=e,this.y=t,this.z=n,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw Error(`THREE.Vector3: index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw Error(`THREE.Vector3: index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(as.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(as.setFromAxisAngle(e,t))}applyMatrix3(e){let t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[3]*n+i[6]*r,this.y=i[1]*t+i[4]*n+i[7]*r,this.z=i[2]*t+i[5]*n+i[8]*r,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){let t=this.x,n=this.y,r=this.z,i=e.elements,a=1/(i[3]*t+i[7]*n+i[11]*r+i[15]);return this.x=(i[0]*t+i[4]*n+i[8]*r+i[12])*a,this.y=(i[1]*t+i[5]*n+i[9]*r+i[13])*a,this.z=(i[2]*t+i[6]*n+i[10]*r+i[14])*a,this}applyQuaternion(e){let t=this.x,n=this.y,r=this.z,i=e.x,a=e.y,o=e.z,s=e.w,c=2*(a*r-o*n),l=2*(o*t-i*r),u=2*(i*n-a*t);return this.x=t+s*c+a*u-o*l,this.y=n+s*l+o*c-i*u,this.z=r+s*u+i*l-a*c,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){let t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[4]*n+i[8]*r,this.y=i[1]*t+i[5]*n+i[9]*r,this.z=i[2]*t+i[6]*n+i[10]*r,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=Io(this.x,e.x,t.x),this.y=Io(this.y,e.y,t.y),this.z=Io(this.z,e.z,t.z),this}clampScalar(e,t){return this.x=Io(this.x,e,t),this.y=Io(this.y,e,t),this.z=Io(this.z,e,t),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(Io(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){let n=e.x,r=e.y,i=e.z,a=t.x,o=t.y,s=t.z;return this.x=r*s-i*o,this.y=i*a-n*s,this.z=n*o-r*a,this}projectOnVector(e){let t=e.lengthSq();if(t===0)return this.set(0,0,0);let n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}projectOnPlane(e){return is.copy(this).projectOnVector(e),this.sub(is)}reflect(e){return this.sub(is.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){let t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;let n=this.dot(e)/t;return Math.acos(Io(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){let t=this.x-e.x,n=this.y-e.y,r=this.z-e.z;return t*t+n*n+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,n){let r=Math.sin(t)*e;return this.x=r*Math.sin(n),this.y=Math.cos(t)*e,this.z=r*Math.cos(n),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){let t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){let t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),r=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=r,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,t*4)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,t*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){let e=Math.random()*Math.PI*2,t=Math.random()*2-1,n=Math.sqrt(1-t*t);return this.x=n*Math.cos(e),this.y=t,this.z=n*Math.sin(e),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}},is=new B,as=new rs,os=class e{static{e.prototype.isMatrix3=!0}constructor(e,t,n,r,i,a,o,s,c){this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,t,n,r,i,a,o,s,c)}set(e,t,n,r,i,a,o,s,c){let l=this.elements;return l[0]=e,l[1]=r,l[2]=o,l[3]=t,l[4]=i,l[5]=s,l[6]=n,l[7]=a,l[8]=c,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){let t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this}extractBasis(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(e){let t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){let n=e.elements,r=t.elements,i=this.elements,a=n[0],o=n[3],s=n[6],c=n[1],l=n[4],u=n[7],d=n[2],f=n[5],p=n[8],m=r[0],h=r[3],g=r[6],_=r[1],v=r[4],y=r[7],b=r[2],x=r[5],S=r[8];return i[0]=a*m+o*_+s*b,i[3]=a*h+o*v+s*x,i[6]=a*g+o*y+s*S,i[1]=c*m+l*_+u*b,i[4]=c*h+l*v+u*x,i[7]=c*g+l*y+u*S,i[2]=d*m+f*_+p*b,i[5]=d*h+f*v+p*x,i[8]=d*g+f*y+p*S,this}multiplyScalar(e){let t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){let e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8];return t*a*l-t*o*c-n*i*l+n*o*s+r*i*c-r*a*s}invert(){let e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8],u=l*a-o*c,d=o*s-l*i,f=c*i-a*s,p=t*u+n*d+r*f;if(p===0)return this.set(0,0,0,0,0,0,0,0,0);let m=1/p;return e[0]=u*m,e[1]=(r*c-l*n)*m,e[2]=(o*n-r*a)*m,e[3]=d*m,e[4]=(l*t-r*s)*m,e[5]=(r*i-o*t)*m,e[6]=f*m,e[7]=(n*s-c*t)*m,e[8]=(a*t-n*i)*m,this}transpose(){let e,t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){let t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,n,r,i,a,o){let s=Math.cos(i),c=Math.sin(i);return this.set(n*s,n*c,-n*(s*a+c*o)+a+e,-r*c,r*s,-r*(-c*a+s*o)+o+t,0,0,1),this}scale(e,t){return Do(`Matrix3: .scale() is deprecated. Use .makeScale() instead.`),this.premultiply(ss.makeScale(e,t)),this}rotate(e){return Do(`Matrix3: .rotate() is deprecated. Use .makeRotation() instead.`),this.premultiply(ss.makeRotation(-e)),this}translate(e,t){return Do(`Matrix3: .translate() is deprecated. Use .makeTranslation() instead.`),this.premultiply(ss.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){let t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,n,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){let t=this.elements,n=e.elements;for(let e=0;e<9;e++)if(t[e]!==n[e])return!1;return!0}fromArray(e,t=0){for(let n=0;n<9;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){let n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}clone(){return new this.constructor().fromArray(this.elements)}},ss=new os,cs=new os().set(.4123908,.3575843,.1804808,.212639,.7151687,.0721923,.0193308,.1191948,.9505322),ls=new os().set(3.2409699,-1.5373832,-.4986108,-.9692436,1.8759675,.0415551,.0556301,-.203977,1.0569715);function us(){let e={enabled:!0,workingColorSpace:uo,spaces:{},convert:function(e,t,n){return this.enabled===!1||t===n||!t||!n||(this.spaces[t].transfer===`srgb`&&(e.r=fs(e.r),e.g=fs(e.g),e.b=fs(e.b)),this.spaces[t].primaries!==this.spaces[n].primaries&&(e.applyMatrix3(this.spaces[t].toXYZ),e.applyMatrix3(this.spaces[n].fromXYZ)),this.spaces[n].transfer===`srgb`&&(e.r=ps(e.r),e.g=ps(e.g),e.b=ps(e.b))),e},workingToColorSpace:function(e,t){return this.convert(e,this.workingColorSpace,t)},colorSpaceToWorking:function(e,t){return this.convert(e,t,this.workingColorSpace)},getPrimaries:function(e){return this.spaces[e].primaries},getTransfer:function(e){return e===``?fo:this.spaces[e].transfer},getToneMappingMode:function(e){return this.spaces[e].outputColorSpaceConfig.toneMappingMode||`standard`},getLuminanceCoefficients:function(e,t=this.workingColorSpace){return e.fromArray(this.spaces[t].luminanceCoefficients)},define:function(e){Object.assign(this.spaces,e)},_getMatrix:function(e,t,n){return e.copy(this.spaces[t].toXYZ).multiply(this.spaces[n].fromXYZ)},_getDrawingBufferColorSpace:function(e){return this.spaces[e].outputColorSpaceConfig.drawingBufferColorSpace},_getUnpackColorSpace:function(e=this.workingColorSpace){return this.spaces[e].workingColorSpaceConfig.unpackColorSpace},fromWorkingColorSpace:function(t,n){return Do(`ColorManagement: .fromWorkingColorSpace() has been renamed to .workingToColorSpace().`),e.workingToColorSpace(t,n)},toWorkingColorSpace:function(t,n){return Do(`ColorManagement: .toWorkingColorSpace() has been renamed to .colorSpaceToWorking().`),e.colorSpaceToWorking(t,n)}},t=[.64,.33,.3,.6,.15,.06],n=[.2126,.7152,.0722],r=[.3127,.329];return e.define({[uo]:{primaries:t,whitePoint:r,transfer:fo,toXYZ:cs,fromXYZ:ls,luminanceCoefficients:n,workingColorSpaceConfig:{unpackColorSpace:lo},outputColorSpaceConfig:{drawingBufferColorSpace:lo}},[lo]:{primaries:t,whitePoint:r,transfer:po,toXYZ:cs,fromXYZ:ls,luminanceCoefficients:n,outputColorSpaceConfig:{drawingBufferColorSpace:lo}}}),e}var ds=us();function fs(e){return e<.04045?e*.0773993808:(e*.9478672986+.0521327014)**2.4}function ps(e){return e<.0031308?e*12.92:1.055*e**.41666-.055}var ms,hs=class{static getDataURL(e,t=`image/png`){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>`u`)return e.src;let n;if(e instanceof HTMLCanvasElement)n=e;else{ms===void 0&&(ms=bo(`canvas`)),ms.width=e.width,ms.height=e.height;let t=ms.getContext(`2d`);e instanceof ImageData?t.putImageData(e,0,0):t.drawImage(e,0,0,e.width,e.height),n=ms}return n.toDataURL(t)}static sRGBToLinear(e){if(typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement||typeof ImageBitmap<`u`&&e instanceof ImageBitmap){let t=bo(`canvas`);t.width=e.width,t.height=e.height;let n=t.getContext(`2d`);n.drawImage(e,0,0,e.width,e.height);let r=n.getImageData(0,0,e.width,e.height),i=r.data;for(let e=0;e1),this.pmremVersion=0,this.normalized=!1}get width(){return this.source.getSize(bs).x}get height(){return this.source.getSize(bs).y}get depth(){return this.source.getSize(bs).z}get image(){return this.source.data}set image(e){this.source.data=e}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}clone(){return new this.constructor().copy(this)}copy(e){return this.name=e.name,this.source=e.source,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.channel=e.channel,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.internalFormat=e.internalFormat,this.type=e.type,this.normalized=e.normalized,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.colorSpace=e.colorSpace,this.renderTarget=e.renderTarget,this.isRenderTargetTexture=e.isRenderTargetTexture,this.isArrayTexture=e.isArrayTexture,this.userData=JSON.parse(JSON.stringify(e.userData)),this.needsUpdate=!0,this}setValues(e){for(let t in e){let n=e[t];if(n===void 0){To(`Texture.setValues(): parameter '${t}' has value of undefined.`);continue}let r=this[t];r===void 0?To(`Texture.setValues(): property '${t}' does not exist.`):r&&n&&r.isVector2&&n.isVector2||r&&n&&r.isVector3&&n.isVector3||r&&n&&r.isMatrix3&&n.isMatrix3?r.copy(n):this[t]=n}}toJSON(e){let t=e===void 0||typeof e==`string`;if(!t&&e.textures[this.uuid]!==void 0)return e.textures[this.uuid];let n={metadata:{version:4.7,type:`Texture`,generator:`Texture.toJSON`},uuid:this.uuid,name:this.name,image:this.source.toJSON(e).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,normalized:this.normalized,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(n.userData=this.userData),t||(e.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:`dispose`})}transformUv(e){if(this.mapping!==300)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case Bi:e.x-=Math.floor(e.x);break;case Vi:e.x=e.x<0?0:1;break;case Hi:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x-=Math.floor(e.x)}if(e.y<0||e.y>1)switch(this.wrapT){case Bi:e.y-=Math.floor(e.y);break;case Vi:e.y=e.y<0?0:1;break;case Hi:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y-=Math.floor(e.y)}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(e){e===!0&&this.pmremVersion++}};xs.DEFAULT_IMAGE=null,xs.DEFAULT_MAPPING=300,xs.DEFAULT_ANISOTROPY=1;var Ss=class e{static{e.prototype.isVector4=!0}constructor(e=0,t=0,n=0,r=1){this.x=e,this.y=t,this.z=n,this.w=r}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,n,r){return this.x=e,this.y=t,this.z=n,this.w=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw Error(`THREE.Vector4: index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw Error(`THREE.Vector4: index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w===void 0?1:e.w,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){let t=this.x,n=this.y,r=this.z,i=this.w,a=e.elements;return this.x=a[0]*t+a[4]*n+a[8]*r+a[12]*i,this.y=a[1]*t+a[5]*n+a[9]*r+a[13]*i,this.z=a[2]*t+a[6]*n+a[10]*r+a[14]*i,this.w=a[3]*t+a[7]*n+a[11]*r+a[15]*i,this}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this.w/=e.w,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);let t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,n,r,i,a=.01,o=.1,s=e.elements,c=s[0],l=s[4],u=s[8],d=s[1],f=s[5],p=s[9],m=s[2],h=s[6],g=s[10];if(Math.abs(l-d)s&&e>_?e_?s1);this.dispose()}this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}clone(){return new this.constructor().copy(this)}copy(e){this.width=e.width,this.height=e.height,this.depth=e.depth,this.scissor.copy(e.scissor),this.scissorTest=e.scissorTest,this.viewport.copy(e.viewport),this.textures.length=0;for(let t=0,n=e.textures.length;t>>0}enable(e){this.mask|=1<1){for(let e=0;e1){for(let e=0;e0&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),r.up=this.up.toArray(),this.pivot!==null&&(r.pivot=this.pivot.toArray()),this.morphTargetDictionary!==void 0&&(r.morphTargetDictionary=Object.assign({},this.morphTargetDictionary)),this.morphTargetInfluences!==void 0&&(r.morphTargetInfluences=this.morphTargetInfluences.slice()),this.isInstancedMesh&&(r.type=`InstancedMesh`,r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(r.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(r.type=`BatchedMesh`,r.perObjectFrustumCulled=this.perObjectFrustumCulled,r.sortObjects=this.sortObjects,r.drawRanges=this._drawRanges,r.reservedRanges=this._reservedRanges,r.geometryInfo=this._geometryInfo.map(e=>({...e,boundingBox:e.boundingBox?e.boundingBox.toJSON():void 0,boundingSphere:e.boundingSphere?e.boundingSphere.toJSON():void 0})),r.instanceInfo=this._instanceInfo.map(e=>({...e})),r.availableInstanceIds=this._availableInstanceIds.slice(),r.availableGeometryIds=this._availableGeometryIds.slice(),r.nextIndexStart=this._nextIndexStart,r.nextVertexStart=this._nextVertexStart,r.geometryCount=this._geometryCount,r.maxInstanceCount=this._maxInstanceCount,r.maxVertexCount=this._maxVertexCount,r.maxIndexCount=this._maxIndexCount,r.geometryInitialized=this._geometryInitialized,r.matricesTexture=this._matricesTexture.toJSON(e),r.indirectTexture=this._indirectTexture.toJSON(e),this._colorsTexture!==null&&(r.colorsTexture=this._colorsTexture.toJSON(e)),this.boundingSphere!==null&&(r.boundingSphere=this.boundingSphere.toJSON()),this.boundingBox!==null&&(r.boundingBox=this.boundingBox.toJSON()));function i(t,n){return t[n.uuid]===void 0&&(t[n.uuid]=n.toJSON(e)),n.uuid}if(this.isScene)this.background&&(this.background.isColor?r.background=this.background.toJSON():this.background.isTexture&&(r.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(r.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){r.geometry=i(e.geometries,this.geometry);let t=this.geometry.parameters;if(t!==void 0&&t.shapes!==void 0){let n=t.shapes;if(Array.isArray(n))for(let t=0,r=n.length;t0){r.children=[];for(let t=0;t0){r.animations=[];for(let t=0;t0&&(n.geometries=t),r.length>0&&(n.materials=r),i.length>0&&(n.textures=i),o.length>0&&(n.images=o),s.length>0&&(n.shapes=s),c.length>0&&(n.skeletons=c),l.length>0&&(n.animations=l),u.length>0&&(n.nodes=u)}return n.object=r,n;function a(e){let t=[];for(let n in e){let r=e[n];delete r.metadata,t.push(r)}return t}}clone(e){return new this.constructor().copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.pivot=e.pivot===null?null:e.pivot.clone(),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.static=e.static,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),t===!0)for(let t=0;t.025?(c.inputState.pinching=!1,this.dispatchEvent({type:`pinchend`,handedness:e.handedness,target:this})):!c.inputState.pinching&&o<=.015&&(c.inputState.pinching=!0,this.dispatchEvent({type:`pinchstart`,handedness:e.handedness,target:this}))}else s!==null&&e.gripSpace&&(i=t.getPose(e.gripSpace,n),i!==null&&(s.matrix.fromArray(i.transform.matrix),s.matrix.decompose(s.position,s.rotation,s.scale),s.matrixWorldNeedsUpdate=!0,i.linearVelocity?(s.hasLinearVelocity=!0,s.linearVelocity.copy(i.linearVelocity)):s.hasLinearVelocity=!1,i.angularVelocity?(s.hasAngularVelocity=!0,s.angularVelocity.copy(i.angularVelocity)):s.hasAngularVelocity=!1,s.eventsEnabled&&s.dispatchEvent({type:`gripUpdated`,data:e,target:this})));o!==null&&(r=t.getPose(e.targetRaySpace,n),r===null&&i!==null&&(r=i),r!==null&&(o.matrix.fromArray(r.transform.matrix),o.matrix.decompose(o.position,o.rotation,o.scale),o.matrixWorldNeedsUpdate=!0,r.linearVelocity?(o.hasLinearVelocity=!0,o.linearVelocity.copy(r.linearVelocity)):o.hasLinearVelocity=!1,r.angularVelocity?(o.hasAngularVelocity=!0,o.angularVelocity.copy(r.angularVelocity)):o.hasAngularVelocity=!1,this.dispatchEvent(nc)))}return o!==null&&(o.visible=r!==null),s!==null&&(s.visible=i!==null),c!==null&&(c.visible=a!==null),this}_getHandJoint(e,t){if(e.joints[t.jointName]===void 0){let n=new tc;n.matrixAutoUpdate=!1,n.visible=!1,e.joints[t.jointName]=n,e.add(n)}return e.joints[t.jointName]}},ic={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},ac={h:0,s:0,l:0},oc={h:0,s:0,l:0};function sc(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*6*(2/3-n):e}var V=class{constructor(e,t,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,n)}set(e,t,n){if(t===void 0&&n===void 0){let t=e;t&&t.isColor?this.copy(t):typeof t==`number`?this.setHex(t):typeof t==`string`&&this.setStyle(t)}else this.setRGB(e,t,n);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=lo){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,ds.colorSpaceToWorking(this,t),this}setRGB(e,t,n,r=ds.workingColorSpace){return this.r=e,this.g=t,this.b=n,ds.colorSpaceToWorking(this,r),this}setHSL(e,t,n,r=ds.workingColorSpace){if(e=Lo(e,1),t=Io(t,0,1),n=Io(n,0,1),t===0)this.r=this.g=this.b=n;else{let r=n<=.5?n*(1+t):n+t-n*t,i=2*n-r;this.r=sc(i,r,e+1/3),this.g=sc(i,r,e),this.b=sc(i,r,e-1/3)}return ds.colorSpaceToWorking(this,r),this}setStyle(e,t=lo){function n(t){t!==void 0&&parseFloat(t)<1&&To(`Color: Alpha component of `+e+` will be ignored.`)}let r;if(r=/^(\w+)\(([^\)]*)\)/.exec(e)){let i,a=r[1],o=r[2];switch(a){case`rgb`:case`rgba`:if(i=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setRGB(Math.min(255,parseInt(i[1],10))/255,Math.min(255,parseInt(i[2],10))/255,Math.min(255,parseInt(i[3],10))/255,t);if(i=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setRGB(Math.min(100,parseInt(i[1],10))/100,Math.min(100,parseInt(i[2],10))/100,Math.min(100,parseInt(i[3],10))/100,t);break;case`hsl`:case`hsla`:if(i=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setHSL(parseFloat(i[1])/360,parseFloat(i[2])/100,parseFloat(i[3])/100,t);break;default:To(`Color: Unknown color model `+e)}}else if(r=/^\#([A-Fa-f\d]+)$/.exec(e)){let n=r[1],i=n.length;if(i===3)return this.setRGB(parseInt(n.charAt(0),16)/15,parseInt(n.charAt(1),16)/15,parseInt(n.charAt(2),16)/15,t);if(i===6)return this.setHex(parseInt(n,16),t);To(`Color: Invalid hex color `+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=lo){let n=ic[e.toLowerCase()];return n===void 0?To(`Color: Unknown color `+e):this.setHex(n,t),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=fs(e.r),this.g=fs(e.g),this.b=fs(e.b),this}copyLinearToSRGB(e){return this.r=ps(e.r),this.g=ps(e.g),this.b=ps(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=lo){return ds.workingToColorSpace(cc.copy(this),e),Math.round(Io(cc.r*255,0,255))*65536+Math.round(Io(cc.g*255,0,255))*256+Math.round(Io(cc.b*255,0,255))}getHexString(e=lo){return(`000000`+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=ds.workingColorSpace){ds.workingToColorSpace(cc.copy(this),t);let n=cc.r,r=cc.g,i=cc.b,a=Math.max(n,r,i),o=Math.min(n,r,i),s,c,l=(o+a)/2;if(o===a)s=0,c=0;else{let e=a-o;switch(c=l<=.5?e/(a+o):e/(2-a-o),a){case n:s=(r-i)/e+(r0?r.multiplyScalar(1/Math.sqrt(i)):r.set(0,0,0)}static getBarycoord(e,t,n,r,i){dc.subVectors(r,t),fc.subVectors(n,t),pc.subVectors(e,t);let a=dc.dot(dc),o=dc.dot(fc),s=dc.dot(pc),c=fc.dot(fc),l=fc.dot(pc),u=a*c-o*o;if(u===0)return i.set(0,0,0),null;let d=1/u,f=(c*s-o*l)*d,p=(a*l-o*s)*d;return i.set(1-f-p,p,f)}static containsPoint(e,t,n,r){return this.getBarycoord(e,t,n,r,mc)!==null&&mc.x>=0&&mc.y>=0&&mc.x+mc.y<=1}static getInterpolation(e,t,n,r,i,a,o,s){return this.getBarycoord(e,t,n,r,mc)===null?(s.x=0,s.y=0,`z`in s&&(s.z=0),`w`in s&&(s.w=0),null):(s.setScalar(0),s.addScaledVector(i,mc.x),s.addScaledVector(a,mc.y),s.addScaledVector(o,mc.z),s)}static getInterpolatedAttribute(e,t,n,r,i,a){return xc.setScalar(0),Sc.setScalar(0),Cc.setScalar(0),xc.fromBufferAttribute(e,t),Sc.fromBufferAttribute(e,n),Cc.fromBufferAttribute(e,r),a.setScalar(0),a.addScaledVector(xc,i.x),a.addScaledVector(Sc,i.y),a.addScaledVector(Cc,i.z),a}static isFrontFacing(e,t,n,r){return dc.subVectors(n,t),fc.subVectors(e,t),dc.cross(fc).dot(r)<0}set(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this}setFromPointsAndIndices(e,t,n,r){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[r]),this}setFromAttributeAndIndices(e,t,n,r){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,n),this.c.fromBufferAttribute(e,r),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return dc.subVectors(this.c,this.b),fc.subVectors(this.a,this.b),dc.cross(fc).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(t){return e.getNormal(this.a,this.b,this.c,t)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(t,n){return e.getBarycoord(t,this.a,this.b,this.c,n)}getInterpolation(t,n,r,i,a){return e.getInterpolation(t,this.a,this.b,this.c,n,r,i,a)}containsPoint(t){return e.containsPoint(t,this.a,this.b,this.c)}isFrontFacing(t){return e.isFrontFacing(this.a,this.b,this.c,t)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){let n=this.a,r=this.b,i=this.c,a,o;hc.subVectors(r,n),gc.subVectors(i,n),vc.subVectors(e,n);let s=hc.dot(vc),c=gc.dot(vc);if(s<=0&&c<=0)return t.copy(n);yc.subVectors(e,r);let l=hc.dot(yc),u=gc.dot(yc);if(l>=0&&u<=l)return t.copy(r);let d=s*u-l*c;if(d<=0&&s>=0&&l<=0)return a=s/(s-l),t.copy(n).addScaledVector(hc,a);bc.subVectors(e,i);let f=hc.dot(bc),p=gc.dot(bc);if(p>=0&&f<=p)return t.copy(i);let m=f*c-s*p;if(m<=0&&c>=0&&p<=0)return o=c/(c-p),t.copy(n).addScaledVector(gc,o);let h=l*p-f*u;if(h<=0&&u-l>=0&&f-p>=0)return _c.subVectors(i,r),o=(u-l)/(u-l+(f-p)),t.copy(r).addScaledVector(_c,o);let g=1/(h+m+d);return a=m*g,o=d*g,t.copy(n).addScaledVector(hc,a).addScaledVector(gc,o)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}},Tc=class{constructor(e=new B(1/0,1/0,1/0),t=new B(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,n=e.length;t=this.min.x&&e.x<=this.max.x&&e.y>=this.min.y&&e.y<=this.max.y&&e.z>=this.min.z&&e.z<=this.max.z}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return e.max.x>=this.min.x&&e.min.x<=this.max.x&&e.max.y>=this.min.y&&e.min.y<=this.max.y&&e.max.z>=this.min.z&&e.min.z<=this.max.z}intersectsSphere(e){return this.clampPoint(e.center,Dc),Dc.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,n;return e.normal.x>0?(t=e.normal.x*this.min.x,n=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,n=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,n+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,n+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,n+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,n+=e.normal.z*this.min.z),t<=-e.constant&&n>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(Fc),Ic.subVectors(this.max,Fc),kc.subVectors(e.a,Fc),Ac.subVectors(e.b,Fc),jc.subVectors(e.c,Fc),Mc.subVectors(Ac,kc),Nc.subVectors(jc,Ac),Pc.subVectors(kc,jc);let t=[0,-Mc.z,Mc.y,0,-Nc.z,Nc.y,0,-Pc.z,Pc.y,Mc.z,0,-Mc.x,Nc.z,0,-Nc.x,Pc.z,0,-Pc.x,-Mc.y,Mc.x,0,-Nc.y,Nc.x,0,-Pc.y,Pc.x,0];return!zc(t,kc,Ac,jc,Ic)||(t=[1,0,0,0,1,0,0,0,1],!zc(t,kc,Ac,jc,Ic))?!1:(Lc.crossVectors(Mc,Nc),t=[Lc.x,Lc.y,Lc.z],zc(t,kc,Ac,jc,Ic))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,Dc).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(Dc).length()*.5),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()||(Ec[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),Ec[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),Ec[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),Ec[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),Ec[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),Ec[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),Ec[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),Ec[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(Ec)),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}toJSON(){return{min:this.min.toArray(),max:this.max.toArray()}}fromJSON(e){return this.min.fromArray(e.min),this.max.fromArray(e.max),this}},Ec=[new B,new B,new B,new B,new B,new B,new B,new B],Dc=new B,Oc=new Tc,kc=new B,Ac=new B,jc=new B,Mc=new B,Nc=new B,Pc=new B,Fc=new B,Ic=new B,Lc=new B,Rc=new B;function zc(e,t,n,r,i){for(let a=0,o=e.length-3;a<=o;a+=3){Rc.fromArray(e,a);let o=i.x*Math.abs(Rc.x)+i.y*Math.abs(Rc.y)+i.z*Math.abs(Rc.z),s=t.dot(Rc),c=n.dot(Rc),l=r.dot(Rc);if(Math.max(-Math.max(s,c,l),Math.min(s,c,l))>o)return!1}return!0}var Bc=new B,Vc=new z,Hc=0,Uc=class extends Ao{constructor(e,t,n=!1){if(super(),Array.isArray(e))throw TypeError(`THREE.BufferAttribute: array should be a Typed Array.`);this.isBufferAttribute=!0,Object.defineProperty(this,"id",{value:Hc++}),this.name=``,this.array=e,this.itemSize=t,this.count=e===void 0?0:e.length/t,this.normalized=n,this.usage=ho,this.updateRanges=[],this.gpuType=ta,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,n){e*=this.itemSize,n*=t.itemSize;for(let r=0,i=this.itemSize;rthis.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius*=e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;Jc.subVectors(e,this.center);let t=Jc.lengthSq();if(t>this.radius*this.radius){let e=Math.sqrt(t),n=(e-this.radius)*.5;this.center.addScaledVector(Jc,n/e),this.radius+=n}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(this.center.equals(e.center)===!0?this.radius=Math.max(this.radius,e.radius):(Yc.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(Jc.copy(e.center).add(Yc)),this.expandByPoint(Jc.copy(e.center).sub(Yc))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}toJSON(){return{radius:this.radius,center:this.center.toArray()}}fromJSON(e){return this.radius=e.radius,this.center.fromArray(e.center),this}},Zc=0,Qc=new Ds,$c=new ec,el=new B,tl=new Tc,nl=new Tc,rl=new B,il=class e extends Ao{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,"id",{value:Zc++}),this.uuid=Fo(),this.name=``,this.type=`BufferGeometry`,this.index=null,this.indirect=null,this.indirectOffset=0,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={},this._transformed=!1}getIndex(){return this.index}setIndex(e){return this.index=Array.isArray(e)?new(vo(e)?Gc:Wc)(e,1):e,this}setIndirect(e,t=0){return this.indirect=e,this.indirectOffset=t,this}getIndirect(){return this.indirect}getAttribute(e){return this.attributes[e]}setAttribute(e,t){return this.attributes[e]=t,this}deleteAttribute(e){return delete this.attributes[e],this}hasAttribute(e){return this.attributes[e]!==void 0}addGroup(e,t,n=0){this.groups.push({start:e,count:t,materialIndex:n})}clearGroups(){this.groups=[]}setDrawRange(e,t){this.drawRange.start=e,this.drawRange.count=t}applyMatrix4(e){let t=this.attributes.position;t!==void 0&&(t.applyMatrix4(e),t.needsUpdate=!0);let n=this.attributes.normal;if(n!==void 0){let t=new os().getNormalMatrix(e);n.applyNormalMatrix(t),n.needsUpdate=!0}let r=this.attributes.tangent;return r!==void 0&&(r.transformDirection(e),r.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this._transformed=!0,this}applyQuaternion(e){return Qc.makeRotationFromQuaternion(e),this.applyMatrix4(Qc),this}rotateX(e){return Qc.makeRotationX(e),this.applyMatrix4(Qc),this}rotateY(e){return Qc.makeRotationY(e),this.applyMatrix4(Qc),this}rotateZ(e){return Qc.makeRotationZ(e),this.applyMatrix4(Qc),this}translate(e,t,n){return Qc.makeTranslation(e,t,n),this.applyMatrix4(Qc),this}scale(e,t,n){return Qc.makeScale(e,t,n),this.applyMatrix4(Qc),this}lookAt(e){return $c.lookAt(e),$c.updateMatrix(),this.applyMatrix4($c.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(el).negate(),this.translate(el.x,el.y,el.z),this}setFromPoints(e){let t=this.getAttribute(`position`);if(t===void 0){let t=[];for(let n=0,r=e.length;nt.count&&To(`BufferGeometry: Buffer size too small for points data. Use .dispose() and create a new geometry.`),t.needsUpdate=!0}return this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new Tc);let e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute)Eo(`BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.`,this),this.boundingBox.set(new B(-1/0,-1/0,-1/0),new B(1/0,1/0,1/0));else{if(e!==void 0){if(this.boundingBox.setFromBufferAttribute(e),t)for(let e=0,n=t.length;e0&&(e.userData=this.userData),this.parameters!==void 0&&this._transformed!==!0){let t=this.parameters;for(let n in t)t[n]!==void 0&&(e[n]=t[n]);return e}e.data={attributes:{}};let t=this.index;t!==null&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});let n=this.attributes;for(let t in n){let r=n[t];e.data.attributes[t]=r.toJSON(e.data)}let r={},i=!1;for(let t in this.morphAttributes){let n=this.morphAttributes[t],a=[];for(let t=0,r=n.length;t0&&(r[t]=a,i=!0)}i&&(e.data.morphAttributes=r,e.data.morphTargetsRelative=this.morphTargetsRelative);let a=this.groups;a.length>0&&(e.data.groups=JSON.parse(JSON.stringify(a)));let o=this.boundingSphere;return o!==null&&(e.data.boundingSphere=o.toJSON()),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;let t={};this.name=e.name;let n=e.index;n!==null&&this.setIndex(n.clone());let r=e.attributes;for(let e in r){let n=r[e];this.setAttribute(e,n.clone(t))}let i=e.morphAttributes;for(let e in i){let n=[],r=i[e];for(let e=0,i=r.length;e1)?null:t.copy(e.start).addScaledVector(r,a)}intersectsLine(e){let t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){let n=t||ul.getNormalMatrix(e),r=this.coplanarPoint(cl).applyMatrix4(e),i=this.normal.applyMatrix3(n).normalize();return this.constant=-r.dot(i),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}toJSON(){return{normal:this.normal.toArray(),constant:this.constant}}fromJSON(e){return this.normal.fromArray(e.normal),this.constant=e.constant,this}},fl=0,pl=class extends Ao{constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,"id",{value:fl++}),this.uuid=Fo(),this.name=``,this.type=`Material`,this.blending=1,this.side=0,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.alphaHash=!1,this.blendSrc=204,this.blendDst=205,this.blendEquation=100,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.blendColor=new V(0,0,0),this.blendAlpha=0,this.depthFunc=3,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=519,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=mo,this.stencilZFail=mo,this.stencilZPass=mo,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.forceSinglePass=!1,this.allowOverride=!0,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(e){this._alphaTest>0!=e>0&&this.version++,this._alphaTest=e}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(let t in e){let n=e[t];if(n===void 0){To(`Material: parameter '${t}' has value of undefined.`);continue}let r=this[t];r===void 0?To(`Material: '${t}' is not a property of THREE.${this.type}.`):r&&r.isColor?r.set(n):r&&r.isVector2&&n&&n.isVector2||r&&r.isEuler&&n&&n.isEuler||r&&r.isVector3&&n&&n.isVector3?r.copy(n):this[t]=n}}toJSON(e){let t=e===void 0||typeof e==`string`;t&&(e={textures:{},images:{}});let n={metadata:{version:4.7,type:`Material`,generator:`Material.toJSON`}};n.uuid=this.uuid,n.type=this.type,n.blending=this.blending,n.side=this.side,n.shadowSide=this.shadowSide,n.vertexColors=this.vertexColors,n.opacity=this.opacity,n.transparent=this.transparent,n.blendSrc=this.blendSrc,n.blendDst=this.blendDst,n.blendEquation=this.blendEquation,n.blendSrcAlpha=this.blendSrcAlpha,n.blendDstAlpha=this.blendDstAlpha,n.blendEquationAlpha=this.blendEquationAlpha,n.blendColor=this.blendColor.getHex(),n.blendAlpha=this.blendAlpha,n.depthFunc=this.depthFunc,n.depthTest=this.depthTest,n.depthWrite=this.depthWrite,n.colorWrite=this.colorWrite,n.clipIntersection=this.clipIntersection,n.clipShadows=this.clipShadows,n.stencilWriteMask=this.stencilWriteMask,n.stencilFunc=this.stencilFunc,n.stencilRef=this.stencilRef,n.stencilFuncMask=this.stencilFuncMask,n.stencilFail=this.stencilFail,n.stencilZFail=this.stencilZFail,n.stencilZPass=this.stencilZPass,n.stencilWrite=this.stencilWrite,n.polygonOffset=this.polygonOffset,n.polygonOffsetFactor=this.polygonOffsetFactor,n.polygonOffsetUnits=this.polygonOffsetUnits,n.dithering=this.dithering,n.alphaTest=this.alphaTest,n.alphaHash=this.alphaHash,n.alphaToCoverage=this.alphaToCoverage,n.premultipliedAlpha=this.premultipliedAlpha,n.forceSinglePass=this.forceSinglePass,n.allowOverride=this.allowOverride,n.visible=this.visible,n.toneMapped=this.toneMapped,n.name=this.name,this.color&&this.color.isColor&&(n.color=this.color.getHex()),this.roughness!==void 0&&(n.roughness=this.roughness),this.metalness!==void 0&&(n.metalness=this.metalness),this.sheen!==void 0&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity!==void 0&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(n.shininess=this.shininess),this.clearcoat!==void 0&&(n.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.sheenColorMap&&this.sheenColorMap.isTexture&&(n.sheenColorMap=this.sheenColorMap.toJSON(e).uuid),this.sheenRoughnessMap&&this.sheenRoughnessMap.isTexture&&(n.sheenRoughnessMap=this.sheenRoughnessMap.toJSON(e).uuid),this.dispersion!==void 0&&(n.dispersion=this.dispersion),this.retroreflectivity!==void 0&&(n.retroreflectivity=this.retroreflectivity),this.iridescence!==void 0&&(n.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(n.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(n.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(n.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(n.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(n.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(n.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(n.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(e).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(e).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(e).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(e).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(e).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(n.combine=this.combine)),this.envMapRotation!==void 0&&(n.envMapRotation=this.envMapRotation.toArray()),this.envMapIntensity!==void 0&&(n.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(n.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&(n.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(n.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(n.size=this.size),this.sizeAttenuation!==void 0&&(n.sizeAttenuation=this.sizeAttenuation),Array.isArray(this.clippingPlanes)&&this.clippingPlanes.length>0&&(n.clippingPlanes=this.clippingPlanes.map(e=>e.toJSON())),this.rotation!==void 0&&(n.rotation=this.rotation),this.depthPacking!==void 0&&(n.depthPacking=this.depthPacking),this.linewidth!==void 0&&(n.linewidth=this.linewidth),this.linecap!==void 0&&(n.linecap=this.linecap),this.linejoin!==void 0&&(n.linejoin=this.linejoin),this.dashSize!==void 0&&(n.dashSize=this.dashSize),this.gapSize!==void 0&&(n.gapSize=this.gapSize),this.scale!==void 0&&(n.scale=this.scale),this.wireframe!==void 0&&(n.wireframe=this.wireframe),this.wireframeLinewidth!==void 0&&(n.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!==void 0&&(n.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!==void 0&&(n.wireframeLinejoin=this.wireframeLinejoin),this.flatShading!==void 0&&(n.flatShading=this.flatShading),this.fog!==void 0&&(n.fog=this.fog),Object.keys(this.userData).length>0&&(n.userData=this.userData);function r(e){let t=[];for(let n in e){let r=e[n];delete r.metadata,t.push(r)}return t}if(t){let t=r(e.textures),i=r(e.images);t.length>0&&(n.textures=t),i.length>0&&(n.images=i)}return n}fromJSON(e,t){if(e.uuid!==void 0&&(this.uuid=e.uuid),e.name!==void 0&&(this.name=e.name),e.color!==void 0&&this.color!==void 0&&this.color.setHex(e.color),e.roughness!==void 0&&(this.roughness=e.roughness),e.metalness!==void 0&&(this.metalness=e.metalness),e.sheen!==void 0&&(this.sheen=e.sheen),e.sheenColor!==void 0&&(this.sheenColor=new V().setHex(e.sheenColor)),e.sheenRoughness!==void 0&&(this.sheenRoughness=e.sheenRoughness),e.emissive!==void 0&&this.emissive!==void 0&&this.emissive.setHex(e.emissive),e.specular!==void 0&&this.specular!==void 0&&this.specular.setHex(e.specular),e.specularIntensity!==void 0&&(this.specularIntensity=e.specularIntensity),e.specularColor!==void 0&&this.specularColor!==void 0&&this.specularColor.setHex(e.specularColor),e.shininess!==void 0&&(this.shininess=e.shininess),e.clearcoat!==void 0&&(this.clearcoat=e.clearcoat),e.clearcoatRoughness!==void 0&&(this.clearcoatRoughness=e.clearcoatRoughness),e.dispersion!==void 0&&(this.dispersion=e.dispersion),e.retroreflectivity!==void 0&&(this.retroreflectivity=e.retroreflectivity),e.iridescence!==void 0&&(this.iridescence=e.iridescence),e.iridescenceIOR!==void 0&&(this.iridescenceIOR=e.iridescenceIOR),e.iridescenceThicknessRange!==void 0&&(this.iridescenceThicknessRange=e.iridescenceThicknessRange),e.transmission!==void 0&&(this.transmission=e.transmission),e.thickness!==void 0&&(this.thickness=e.thickness),e.attenuationDistance!==void 0&&(this.attenuationDistance=e.attenuationDistance),e.attenuationColor!==void 0&&this.attenuationColor!==void 0&&this.attenuationColor.setHex(e.attenuationColor),e.anisotropy!==void 0&&(this.anisotropy=e.anisotropy),e.anisotropyRotation!==void 0&&(this.anisotropyRotation=e.anisotropyRotation),e.fog!==void 0&&(this.fog=e.fog),e.flatShading!==void 0&&(this.flatShading=e.flatShading),e.blending!==void 0&&(this.blending=e.blending),e.combine!==void 0&&(this.combine=e.combine),e.side!==void 0&&(this.side=e.side),e.shadowSide!==void 0&&(this.shadowSide=e.shadowSide),e.opacity!==void 0&&(this.opacity=e.opacity),e.transparent!==void 0&&(this.transparent=e.transparent),e.alphaTest!==void 0&&(this.alphaTest=e.alphaTest),e.alphaHash!==void 0&&(this.alphaHash=e.alphaHash),e.depthFunc!==void 0&&(this.depthFunc=e.depthFunc),e.depthTest!==void 0&&(this.depthTest=e.depthTest),e.depthWrite!==void 0&&(this.depthWrite=e.depthWrite),e.colorWrite!==void 0&&(this.colorWrite=e.colorWrite),e.clippingPlanes!==void 0&&(this.clippingPlanes=e.clippingPlanes.map(e=>new dl().fromJSON(e))),e.clipIntersection!==void 0&&(this.clipIntersection=e.clipIntersection),e.clipShadows!==void 0&&(this.clipShadows=e.clipShadows),e.depthPacking!==void 0&&(this.depthPacking=e.depthPacking),e.blendSrc!==void 0&&(this.blendSrc=e.blendSrc),e.blendDst!==void 0&&(this.blendDst=e.blendDst),e.blendEquation!==void 0&&(this.blendEquation=e.blendEquation),e.blendSrcAlpha!==void 0&&(this.blendSrcAlpha=e.blendSrcAlpha),e.blendDstAlpha!==void 0&&(this.blendDstAlpha=e.blendDstAlpha),e.blendEquationAlpha!==void 0&&(this.blendEquationAlpha=e.blendEquationAlpha),e.blendColor!==void 0&&this.blendColor!==void 0&&this.blendColor.setHex(e.blendColor),e.blendAlpha!==void 0&&(this.blendAlpha=e.blendAlpha),e.stencilWriteMask!==void 0&&(this.stencilWriteMask=e.stencilWriteMask),e.stencilFunc!==void 0&&(this.stencilFunc=e.stencilFunc),e.stencilRef!==void 0&&(this.stencilRef=e.stencilRef),e.stencilFuncMask!==void 0&&(this.stencilFuncMask=e.stencilFuncMask),e.stencilFail!==void 0&&(this.stencilFail=e.stencilFail),e.stencilZFail!==void 0&&(this.stencilZFail=e.stencilZFail),e.stencilZPass!==void 0&&(this.stencilZPass=e.stencilZPass),e.stencilWrite!==void 0&&(this.stencilWrite=e.stencilWrite),e.wireframe!==void 0&&(this.wireframe=e.wireframe),e.wireframeLinewidth!==void 0&&(this.wireframeLinewidth=e.wireframeLinewidth),e.wireframeLinecap!==void 0&&(this.wireframeLinecap=e.wireframeLinecap),e.wireframeLinejoin!==void 0&&(this.wireframeLinejoin=e.wireframeLinejoin),e.rotation!==void 0&&(this.rotation=e.rotation),e.linewidth!==void 0&&(this.linewidth=e.linewidth),e.linecap!==void 0&&(this.linecap=e.linecap),e.linejoin!==void 0&&(this.linejoin=e.linejoin),e.dashSize!==void 0&&(this.dashSize=e.dashSize),e.gapSize!==void 0&&(this.gapSize=e.gapSize),e.scale!==void 0&&(this.scale=e.scale),e.polygonOffset!==void 0&&(this.polygonOffset=e.polygonOffset),e.polygonOffsetFactor!==void 0&&(this.polygonOffsetFactor=e.polygonOffsetFactor),e.polygonOffsetUnits!==void 0&&(this.polygonOffsetUnits=e.polygonOffsetUnits),e.dithering!==void 0&&(this.dithering=e.dithering),e.alphaToCoverage!==void 0&&(this.alphaToCoverage=e.alphaToCoverage),e.premultipliedAlpha!==void 0&&(this.premultipliedAlpha=e.premultipliedAlpha),e.forceSinglePass!==void 0&&(this.forceSinglePass=e.forceSinglePass),e.allowOverride!==void 0&&(this.allowOverride=e.allowOverride),e.visible!==void 0&&(this.visible=e.visible),e.toneMapped!==void 0&&(this.toneMapped=e.toneMapped),e.userData!==void 0&&(this.userData=e.userData),e.vertexColors!==void 0&&(this.vertexColors=typeof e.vertexColors==`number`?e.vertexColors>0:e.vertexColors),e.size!==void 0&&(this.size=e.size),e.sizeAttenuation!==void 0&&(this.sizeAttenuation=e.sizeAttenuation),e.map!==void 0&&(this.map=t[e.map]||null),e.matcap!==void 0&&(this.matcap=t[e.matcap]||null),e.alphaMap!==void 0&&(this.alphaMap=t[e.alphaMap]||null),e.bumpMap!==void 0&&(this.bumpMap=t[e.bumpMap]||null),e.bumpScale!==void 0&&(this.bumpScale=e.bumpScale),e.normalMap!==void 0&&(this.normalMap=t[e.normalMap]||null),e.normalMapType!==void 0&&(this.normalMapType=e.normalMapType),e.normalScale!==void 0){let t=e.normalScale;Array.isArray(t)===!1&&(t=[t,t]),this.normalScale=new z().fromArray(t)}return e.displacementMap!==void 0&&(this.displacementMap=t[e.displacementMap]||null),e.displacementScale!==void 0&&(this.displacementScale=e.displacementScale),e.displacementBias!==void 0&&(this.displacementBias=e.displacementBias),e.roughnessMap!==void 0&&(this.roughnessMap=t[e.roughnessMap]||null),e.metalnessMap!==void 0&&(this.metalnessMap=t[e.metalnessMap]||null),e.emissiveMap!==void 0&&(this.emissiveMap=t[e.emissiveMap]||null),e.emissiveIntensity!==void 0&&(this.emissiveIntensity=e.emissiveIntensity),e.specularMap!==void 0&&(this.specularMap=t[e.specularMap]||null),e.specularIntensityMap!==void 0&&(this.specularIntensityMap=t[e.specularIntensityMap]||null),e.specularColorMap!==void 0&&(this.specularColorMap=t[e.specularColorMap]||null),e.envMap!==void 0&&(this.envMap=t[e.envMap]||null),e.envMapRotation!==void 0&&this.envMapRotation.fromArray(e.envMapRotation),e.envMapIntensity!==void 0&&(this.envMapIntensity=e.envMapIntensity),e.reflectivity!==void 0&&(this.reflectivity=e.reflectivity),e.refractionRatio!==void 0&&(this.refractionRatio=e.refractionRatio),e.lightMap!==void 0&&(this.lightMap=t[e.lightMap]||null),e.lightMapIntensity!==void 0&&(this.lightMapIntensity=e.lightMapIntensity),e.aoMap!==void 0&&(this.aoMap=t[e.aoMap]||null),e.aoMapIntensity!==void 0&&(this.aoMapIntensity=e.aoMapIntensity),e.gradientMap!==void 0&&(this.gradientMap=t[e.gradientMap]||null),e.clearcoatMap!==void 0&&(this.clearcoatMap=t[e.clearcoatMap]||null),e.clearcoatRoughnessMap!==void 0&&(this.clearcoatRoughnessMap=t[e.clearcoatRoughnessMap]||null),e.clearcoatNormalMap!==void 0&&(this.clearcoatNormalMap=t[e.clearcoatNormalMap]||null),e.clearcoatNormalScale!==void 0&&(this.clearcoatNormalScale=new z().fromArray(e.clearcoatNormalScale)),e.iridescenceMap!==void 0&&(this.iridescenceMap=t[e.iridescenceMap]||null),e.iridescenceThicknessMap!==void 0&&(this.iridescenceThicknessMap=t[e.iridescenceThicknessMap]||null),e.transmissionMap!==void 0&&(this.transmissionMap=t[e.transmissionMap]||null),e.thicknessMap!==void 0&&(this.thicknessMap=t[e.thicknessMap]||null),e.anisotropyMap!==void 0&&(this.anisotropyMap=t[e.anisotropyMap]||null),e.sheenColorMap!==void 0&&(this.sheenColorMap=t[e.sheenColorMap]||null),e.sheenRoughnessMap!==void 0&&(this.sheenRoughnessMap=t[e.sheenRoughnessMap]||null),this}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;let t=e.clippingPlanes,n=null;if(t!==null){let e=t.length;n=Array(e);for(let r=0;r!==e;++r)n[r]=t[r].clone()}return this.clippingPlanes=n,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.allowOverride=e.allowOverride,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:`dispose`})}set needsUpdate(e){e===!0&&this.version++}},ml=new B,hl=new B,gl=new B,_l=new B,vl=class{constructor(e=new B,t=new B(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,ml)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);let n=t.dot(this.direction);return n<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,n)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){let t=ml.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(ml.copy(this.origin).addScaledVector(this.direction,t),ml.distanceToSquared(e))}distanceSqToSegment(e,t,n,r){hl.copy(e).add(t).multiplyScalar(.5),gl.copy(t).sub(e).normalize(),_l.copy(this.origin).sub(hl);let i=e.distanceTo(t)*.5,a=-this.direction.dot(gl),o=_l.dot(this.direction),s=-_l.dot(gl),c=_l.lengthSq(),l=Math.abs(1-a*a),u,d,f,p;if(l>0){if(u=a*s-o,d=a*o-s,p=i*l,u>=0){if(d>=-p){if(d<=p){let e=1/l;u*=e,d*=e,f=u*(u+a*d+2*o)+d*(a*u+d+2*s)+c}else d=i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c}else d=-i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c}else d<=-p?(u=Math.max(0,-(-a*i+o)),d=u>0?-i:Math.min(Math.max(-i,-s),i),f=-u*u+d*(d+2*s)+c):d<=p?(u=0,d=Math.min(Math.max(-i,-s),i),f=d*(d+2*s)+c):(u=Math.max(0,-(a*i+o)),d=u>0?i:Math.min(Math.max(-i,-s),i),f=-u*u+d*(d+2*s)+c)}else d=a>0?-i:i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c;return n&&n.copy(this.origin).addScaledVector(this.direction,u),r&&r.copy(hl).addScaledVector(gl,d),f}intersectSphere(e,t){if(e.radius<0)return null;ml.subVectors(e.center,this.origin);let n=ml.dot(this.direction),r=ml.dot(ml)-n*n,i=e.radius*e.radius;if(r>i)return null;let a=Math.sqrt(i-r),o=n-a,s=n+a;return s<0?null:o<0?this.at(s,t):this.at(o,t)}intersectsSphere(e){return e.radius<0?!1:this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){let t=e.normal.dot(this.direction);if(t===0)return e.distanceToPoint(this.origin)===0?0:null;let n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null}intersectPlane(e,t){let n=this.distanceToPlane(e);return n===null?null:this.at(n,t)}intersectsPlane(e){let t=e.distanceToPoint(this.origin);return t===0||e.normal.dot(this.direction)*t<0}intersectBox(e,t){let n,r,i,a,o,s,c=1/this.direction.x,l=1/this.direction.y,u=1/this.direction.z,d=this.origin;return c>=0?(n=(e.min.x-d.x)*c,r=(e.max.x-d.x)*c):(n=(e.max.x-d.x)*c,r=(e.min.x-d.x)*c),l>=0?(i=(e.min.y-d.y)*l,a=(e.max.y-d.y)*l):(i=(e.max.y-d.y)*l,a=(e.min.y-d.y)*l),n>a||i>r||((i>n||isNaN(n))&&(n=i),(a=0?(o=(e.min.z-d.z)*u,s=(e.max.z-d.z)*u):(o=(e.max.z-d.z)*u,s=(e.min.z-d.z)*u),n>s||o>r)||((o>n||n!==n)&&(n=o),(s=0?n:r,t)}intersectsBox(e){return this.intersectBox(e,ml)!==null}intersectTriangle(e,t,n,r,i){let a=this.origin,o=this.direction,s=o.x,c=o.y,l=o.z,u=e.x-a.x,d=e.y-a.y,f=e.z-a.z,p=t.x-a.x,m=t.y-a.y,h=t.z-a.z,g=n.x-a.x,_=n.y-a.y,v=n.z-a.z,y=Math.abs(s),b=Math.abs(c),x=Math.abs(l),S,C,w,T,E,D,O,k,ee,A,te,j;if(y>=b&&y>=x?(w=s,D=u,ee=p,j=g,s>=0?(S=c,C=l,T=d,E=f,O=m,k=h,A=_,te=v):(S=l,C=c,T=f,E=d,O=h,k=m,A=v,te=_)):b>=x?(w=c,D=d,ee=m,j=_,c>=0?(S=l,C=s,T=f,E=u,O=h,k=p,A=v,te=g):(S=s,C=l,T=u,E=f,O=p,k=h,A=g,te=v)):(w=l,D=f,ee=h,j=v,l>=0?(S=s,C=c,T=u,E=d,O=p,k=m,A=g,te=_):(S=c,C=s,T=d,E=u,O=m,k=p,A=_,te=g)),w===0)return null;let ne=S/w,re=C/w,ie=1/w,M=T-ne*D,N=E-re*D,ae=O-ne*ee,oe=k-re*ee,se=A-ne*j,ce=te-re*j,le=se*oe-ce*ae,ue=M*ce-N*se,de=ae*N-oe*M;if(r){if(le<0||ue<0||de<0)return null}else if((le<0||ue<0||de<0)&&(le>0||ue>0||de>0))return null;let fe=le+ue+de;if(fe===0)return null;let pe=ie*(le*D+ue*ee+de*j);return(fe>0?pe<0:pe>0)?null:this.at(pe/fe,i)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}},yl=class extends pl{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type=`MeshBasicMaterial`,this.color=new V(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new Ls,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap=`round`,this.wireframeLinejoin=`round`,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}},bl=new Ds,xl=new vl,Sl=new Xc,Cl=new B,wl=new B,Tl=new B,El=new B,Dl=new B,Ol=new B,kl=new B,Al=new B,H=class extends ec{constructor(e=new il,t=new yl){super(),this.isMesh=!0,this.type=`Mesh`,this.geometry=e,this.material=t,this.morphTargetDictionary=void 0,this.morphTargetInfluences=void 0,this.count=1,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),e.morphTargetInfluences!==void 0&&(this.morphTargetInfluences=e.morphTargetInfluences.slice()),e.morphTargetDictionary!==void 0&&(this.morphTargetDictionary=Object.assign({},e.morphTargetDictionary)),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}updateMorphTargets(){let e=this.geometry.morphAttributes,t=Object.keys(e);if(t.length>0){let n=e[t[0]];if(n!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;e(e.far-e.near)**2)||(bl.copy(i).invert(),xl.copy(e.ray).applyMatrix4(bl),(n.boundingBox===null||xl.intersectsBox(n.boundingBox)!==!1)&&this._computeIntersections(e,t,xl)))}_computeIntersections(e,t,n){let r,i=this.geometry,a=this.material,o=i.index,s=i.attributes.position,c=i.attributes.uv,l=i.attributes.uv1,u=i.attributes.normal,d=i.groups,f=i.drawRange;if(o!==null){if(Array.isArray(a))for(let i=0,s=d.length;in.far?null:{distance:l,point:Al.clone(),object:e}}function Ml(e,t,n,r,i,a,o,s,c,l){e.getVertexPosition(s,wl),e.getVertexPosition(c,Tl),e.getVertexPosition(l,El);let u=jl(e,t,n,r,wl,Tl,El,kl);if(u){let e=new B;wc.getBarycoord(kl,wl,Tl,El,e),i&&(u.uv=wc.getInterpolatedAttribute(i,s,c,l,e,new z)),a&&(u.uv1=wc.getInterpolatedAttribute(a,s,c,l,e,new z)),o&&(u.normal=wc.getInterpolatedAttribute(o,s,c,l,e,new B),u.normal.dot(r.direction)>0&&u.normal.multiplyScalar(-1));let t={a:s,b:c,c:l,normal:new B,materialIndex:0};wc.getNormal(wl,Tl,El,t.normal),u.face=t,u.barycoord=e}return u}var Nl=new Ss,Pl=new Ss,Fl=new Ss,Il=new Ss,Ll=new Ds,Rl=new B,zl=new Xc,Bl=new Ds,Vl=new vl,Hl=class extends H{constructor(e,t){super(e,t),this.isSkinnedMesh=!0,this.type=`SkinnedMesh`,this.bindMode=zi,this.bindMatrix=new Ds,this.bindMatrixInverse=new Ds,this.boundingBox=null,this.boundingSphere=null}computeBoundingBox(){let e=this.geometry;this.boundingBox===null&&(this.boundingBox=new Tc),this.boundingBox.makeEmpty();let t=e.getAttribute(`position`);for(let e=0;e0?e.max.x:e.min.x,au.y=r.normal.y>0?e.max.y:e.min.y,au.z=r.normal.z>0?e.max.z:e.min.z,r.distanceToPoint(au)<0)return!1}return!0}containsPoint(e){let t=this.planes;for(let n=0;n<6;n++)if(t[n].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}},su=class extends pl{constructor(e){super(),this.isLineBasicMaterial=!0,this.type=`LineBasicMaterial`,this.color=new V(16777215),this.map=null,this.linewidth=1,this.linecap=`round`,this.linejoin=`round`,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.linewidth=e.linewidth,this.linecap=e.linecap,this.linejoin=e.linejoin,this.fog=e.fog,this}},cu=new B,lu=new B,uu=new Ds,du=new vl,fu=new Xc,pu=new B,mu=new B,hu=class extends ec{constructor(e=new il,t=new su){super(),this.isLine=!0,this.type=`Line`,this.geometry=e,this.material=t,this.morphTargetDictionary=void 0,this.morphTargetInfluences=void 0,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}computeLineDistances(){let e=this.geometry;if(e.index===null){let t=e.attributes.position,n=[0];for(let e=1,r=t.count;e0){let n=e[t[0]];if(n!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;er)return;pu.applyMatrix4(e.matrixWorld);let c=t.ray.origin.distanceTo(pu);if(!(ct.far))return{distance:c,point:mu.clone().applyMatrix4(e.matrixWorld),index:o,face:null,faceIndex:null,barycoord:null,object:e}}var _u=new B,vu=new B,yu=class extends hu{constructor(e,t){super(e,t),this.isLineSegments=!0,this.type=`LineSegments`}computeLineDistances(){let e=this.geometry;if(e.index===null){let t=e.attributes.position,n=[];for(let e=0,r=t.count;e0){let n=e[t[0]];if(n!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;ei.far)return;a.push({distance:c,distanceToRay:Math.sqrt(s),point:n,index:t,face:null,faceIndex:null,barycoord:null,object:o})}}var Ou=class extends xs{constructor(e=[],t=301,n,r,i,a,o,s,c,l){super(e,t,n,r,i,a,o,s,c,l),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}},ku=class extends xs{constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r,i,a,o,s,c),this.isCanvasTexture=!0,this.needsUpdate=!0}},Au=class extends xs{constructor(e,t,n=ea,r,i,a,o=Ui,s=Ui,c,l=da,u=1){if(l!==1026&&l!==1027)throw Error(`THREE.DepthTexture: format must be either THREE.DepthFormat or THREE.DepthStencilFormat`);super({width:e,height:t,depth:u},r,i,a,o,s,l,n,c),this.isDepthTexture=!0,this.flipY=!1,this.generateMipmaps=!1,this.compareFunction=null}copy(e){return super.copy(e),this.source=new _s(Object.assign({},e.image)),this.compareFunction=e.compareFunction,this}toJSON(e){let t=super.toJSON(e);return t.compareFunction=this.compareFunction,t}},ju=class extends Au{constructor(e,t=ea,n=301,r,i,a=Ui,o=Ui,s,c=da){let l={width:e,height:e,depth:1},u=[l,l,l,l,l,l];super(e,e,t,n,r,i,a,o,s,c),this.image=u,this.isCubeDepthTexture=!0,this.isCubeTexture=!0}get images(){return this.image}set images(e){this.image=e}},Mu=class extends xs{constructor(e=null){super(),this.sourceTexture=e,this.isExternalTexture=!0}copy(e){return super.copy(e),this.sourceTexture=e.sourceTexture,this}},Nu=class e extends il{constructor(e=1,t=1,n=1,r=1,i=1,a=1){super(),this.type=`BoxGeometry`,this.parameters={width:e,height:t,depth:n,widthSegments:r,heightSegments:i,depthSegments:a};let o=this;r=Math.floor(r),i=Math.floor(i),a=Math.floor(a);let s=[],c=[],l=[],u=[],d=0,f=0;p(`z`,`y`,`x`,-1,-1,n,t,e,a,i,0),p(`z`,`y`,`x`,1,-1,n,t,-e,a,i,1),p(`x`,`z`,`y`,1,1,e,n,t,r,a,2),p(`x`,`z`,`y`,1,-1,e,n,-t,r,a,3),p(`x`,`y`,`z`,1,-1,e,t,n,r,i,4),p(`x`,`y`,`z`,-1,-1,e,t,-n,r,i,5),this.setIndex(s),this.setAttribute(`position`,new Kc(c,3)),this.setAttribute(`normal`,new Kc(l,3)),this.setAttribute(`uv`,new Kc(u,2));function p(e,t,n,r,i,a,p,m,h,g,_){let v=a/h,y=p/g,b=a/2,x=p/2,S=m/2,C=h+1,w=g+1,T=0,E=0,D=new B;for(let a=0;a0?1:-1,l.push(D.x,D.y,D.z),u.push(s/h),u.push(1-a/g),T+=1}for(let e=0;e0){let e=(_-1)*m;for(let t=0;t0&&v(!0),t>0&&v(!1)),this.setIndex(l),this.setAttribute(`position`,new Kc(u,3)),this.setAttribute(`normal`,new Kc(d,3)),this.setAttribute(`uv`,new Kc(f,2));function _(){let a=new B,_=new B,v=0,y=(t-e)/n;for(let c=0;c<=i;c++){let l=[],g=c/i,v=g*(t-e)+e;for(let e=0;e<=r;e++){let t=e/r,i=t*s+o,c=Math.sin(i),m=Math.cos(i);_.x=v*c,_.y=-g*n+h,_.z=v*m,u.push(_.x,_.y,_.z),a.set(c,y,m).normalize(),d.push(a.x,a.y,a.z),f.push(t,1-g),l.push(p++)}m.push(l)}for(let n=0;n0||r!==0)&&(l.push(a,o,c),v+=3),(t>0||r!==i-1)&&(l.push(o,s,c),v+=3)}c.addGroup(g,v,0),g+=v}function v(n){let i=p,a=new z,m=new B,_=0,v=n===!0?e:t,y=n===!0?1:-1;for(let e=1;e<=r;e++)u.push(0,h*y,0),d.push(0,y,0),f.push(.5,.5),p++;let b=p;for(let e=0;e<=r;e++){let t=e/r*s+o,n=Math.cos(t),i=Math.sin(t);m.x=v*i,m.y=h*y,m.z=v*n,u.push(m.x,m.y,m.z),d.push(0,y,0),a.x=n*.5+.5,a.y=i*.5*y+.5,f.push(a.x,a.y),p++}for(let e=0;e.9&&Math.min(t,n,r)<.1&&(t<.2&&(a[e+0]+=1),n<.2&&(a[e+2]+=1),r<.2&&(a[e+4]+=1))}}function d(e){i.push(e.x,e.y,e.z)}function f(t,n){let r=t*3;n.x=e[r+0],n.y=e[r+1],n.z=e[r+2]}function p(){let e=new B,t=new B,n=new B,r=new B,o=new z,s=new z,c=new z;for(let l=0,u=0;l0)s=r-1;else{s=r;break}if(r=s,n[r]===a)return r/(i-1);let l=n[r],u=n[r+1]-l,d=(a-l)/u;return(r+d)/(i-1)}getTangent(e,t){let n=1e-4,r=e-n,i=e+n;r<0&&(r=0),i>1&&(i=1);let a=this.getPoint(r),o=this.getPoint(i),s=t||(a.isVector2?new z:new B);return s.copy(o).sub(a).normalize(),s}getTangentAt(e,t){let n=this.getUtoTmapping(e);return this.getTangent(n,t)}computeFrenetFrames(e,t=!1){let n=new B,r=[],i=[],a=[],o=new B,s=new Ds;for(let t=0;t<=e;t++){let n=t/e;r[t]=this.getTangentAt(n,new B)}i[0]=new B,a[0]=new B;let c=Number.MAX_VALUE,l=Math.abs(r[0].x),u=Math.abs(r[0].y),d=Math.abs(r[0].z);l<=c&&(c=l,n.set(1,0,0)),u<=c&&(c=u,n.set(0,1,0)),d<=c&&n.set(0,0,1),o.crossVectors(r[0],n).normalize(),i[0].crossVectors(r[0],o),a[0].crossVectors(r[0],i[0]);for(let t=1;t<=e;t++){if(i[t]=i[t-1].clone(),a[t]=a[t-1].clone(),o.crossVectors(r[t-1],r[t]),o.length()>2**-52){o.normalize();let e=Math.acos(Io(r[t-1].dot(r[t]),-1,1));i[t].applyMatrix4(s.makeRotationAxis(o,e))}a[t].crossVectors(r[t],i[t])}if(t===!0){let t=Math.acos(Io(i[0].dot(i[e]),-1,1));t/=e,r[0].dot(o.crossVectors(i[0],i[e]))>0&&(t=-t);for(let n=1;n<=e;n++)i[n].applyMatrix4(s.makeRotationAxis(r[n],t*n)),a[n].crossVectors(r[n],i[n])}return{tangents:r,normals:i,binormals:a}}clone(){return new this.constructor().copy(this)}copy(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}toJSON(){let e={metadata:{version:4.7,type:`Curve`,generator:`Curve.toJSON`}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.type,e}fromJSON(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}},Bu=class extends zu{constructor(e=0,t=0,n=1,r=1,i=0,a=Math.PI*2,o=!1,s=0){super(),this.isEllipseCurve=!0,this.type=`EllipseCurve`,this.aX=e,this.aY=t,this.xRadius=n,this.yRadius=r,this.aStartAngle=i,this.aEndAngle=a,this.aClockwise=o,this.aRotation=s}getPoint(e,t=new z){let n=t,r=Math.PI*2,i=this.aEndAngle-this.aStartAngle,a=Math.abs(i)<2**-52;for(;i<0;)i+=r;for(;i>r;)i-=r;i<2**-52&&(i=a?0:r),this.aClockwise===!0&&!a&&(i===r?i=-r:i-=r);let o=this.aStartAngle+e*i,s=this.aX+this.xRadius*Math.cos(o),c=this.aY+this.yRadius*Math.sin(o);if(this.aRotation!==0){let e=Math.cos(this.aRotation),t=Math.sin(this.aRotation),n=s-this.aX,r=c-this.aY;s=n*e-r*t+this.aX,c=n*t+r*e+this.aY}return n.set(s,c)}copy(e){return super.copy(e),this.aX=e.aX,this.aY=e.aY,this.xRadius=e.xRadius,this.yRadius=e.yRadius,this.aStartAngle=e.aStartAngle,this.aEndAngle=e.aEndAngle,this.aClockwise=e.aClockwise,this.aRotation=e.aRotation,this}toJSON(){let e=super.toJSON();return e.aX=this.aX,e.aY=this.aY,e.xRadius=this.xRadius,e.yRadius=this.yRadius,e.aStartAngle=this.aStartAngle,e.aEndAngle=this.aEndAngle,e.aClockwise=this.aClockwise,e.aRotation=this.aRotation,e}fromJSON(e){return super.fromJSON(e),this.aX=e.aX,this.aY=e.aY,this.xRadius=e.xRadius,this.yRadius=e.yRadius,this.aStartAngle=e.aStartAngle,this.aEndAngle=e.aEndAngle,this.aClockwise=e.aClockwise,this.aRotation=e.aRotation,this}},Vu=class extends Bu{constructor(e,t,n,r,i,a){super(e,t,n,n,r,i,a),this.isArcCurve=!0,this.type=`ArcCurve`}};function Hu(){let e=0,t=0,n=0,r=0;function i(i,a,o,s){e=i,t=o,n=-3*i+3*a-2*o-s,r=2*i-2*a+o+s}return{initCatmullRom:function(e,t,n,r,a){i(t,n,a*(n-e),a*(r-t))},initNonuniformCatmullRom:function(e,t,n,r,a,o,s){let c=(t-e)/a-(n-e)/(a+o)+(n-t)/o,l=(n-t)/o-(r-t)/(o+s)+(r-n)/s;c*=o,l*=o,i(t,n,c,l)},calc:function(i){let a=i*i,o=a*i;return e+t*i+n*a+r*o}}}var Uu=new B,Wu=new B,Gu=new Hu,Ku=new Hu,qu=new Hu,Ju=class extends zu{constructor(e=[],t=!1,n=`centripetal`,r=.5){super(),this.isCatmullRomCurve3=!0,this.type=`CatmullRomCurve3`,this.points=e,this.closed=t,this.curveType=n,this.tension=r}getPoint(e,t=new B){let n=t,r=this.points,i=r.length,a=(i-+!this.closed)*e,o=Math.floor(a),s=a-o;this.closed?o+=o>0?0:(Math.floor(Math.abs(o)/i)+1)*i:s===0&&o===i-1&&(o=i-2,s=1);let c,l;this.closed||o>0?c=r[(o-1)%i]:(Wu.subVectors(r[0],r[1]).add(r[0]),c=Wu);let u=r[o%i],d=r[(o+1)%i];if(this.closed||o+2r.length-2?r.length-1:a+1],u=r[a>r.length-3?r.length-1:a+2];return n.set(Yu(o,s.x,c.x,l.x,u.x),Yu(o,s.y,c.y,l.y,u.y)),n}copy(e){super.copy(e),this.points=[];for(let t=0,n=e.points.length;t0)&&f.push(t,i,c),(e!==n-1||s${[`get_up_left`,`get_up_right`].map(e=>``).join(``)}`,e.append(this.root),this.stickZone=this.root.querySelector(`[data-stick]`),this.stickBase=this.root.querySelector(`[data-stick-base]`),this.stickKnob=this.root.querySelector(`[data-stick-knob]`),this.pads.push(...this.root.querySelectorAll(`[data-punch]`)),this.moves.push(...this.root.querySelectorAll(`[data-move]`)),this.getUpPads.push(...this.root.querySelectorAll(`[data-getup-side]`)),this.bind()}bind(){let e=this.stickZone;e.addEventListener(`pointerdown`,t=>{if(this.stickPointer!==null)return;t.preventDefault(),this.stickPointer=t.pointerId,this.stickOrigin={x:t.clientX,y:t.clientY},e.setPointerCapture(t.pointerId);let n=e.getBoundingClientRect();this.stickBase.style.left=`${t.clientX-n.left}px`,this.stickBase.style.top=`${t.clientY-n.top}px`,this.stickBase.classList.add(`active`),this.updateStick(t.clientX,t.clientY)}),e.addEventListener(`pointermove`,e=>{e.pointerId===this.stickPointer&&(e.preventDefault(),this.updateStick(e.clientX,e.clientY))});let t=e=>{e.pointerId===this.stickPointer&&(this.stickPointer=null,this.moveX=0,this.moveY=0,this.stickKnob.style.transform=`translate(-50%, -50%)`,this.stickBase.classList.remove(`active`),this.heldListener?.())};e.addEventListener(`pointerup`,t),e.addEventListener(`pointercancel`,t);for(let e of this.getUpPads)e.addEventListener(`pointerdown`,t=>{this.enabled&&this.knockdown&&(t.preventDefault(),this.sharedActions.push(`touch`,{kind:e.dataset.getupSide===`get_up_left`?`get_up_left`:`get_up_right`}))});for(let e of this.pads)e.addEventListener(`pointerdown`,t=>{if(!this.enabled)return;t.preventDefault();let n=e.getBoundingClientRect(),r=t.clientX-n.lefte.classList.remove(`pressed`),120)});for(let e of this.moves)e.addEventListener(`pointerdown`,t=>{this.enabled&&!this.knockdown&&(t.preventDefault(),this.sharedActions.push(`touch`,{kind:e.dataset.move}),e.classList.add(`pressed`),window.setTimeout(()=>e.classList.remove(`pressed`),120))});for(let e of this.root.querySelectorAll(`[data-mod], [data-guard]`)){let t=e.dataset.mod??e.dataset.guard??``,n=n=>{n.preventDefault(),e.setPointerCapture(n.pointerId),this.heldPointers.set(n.pointerId,t),this.syncHeld(),e.classList.add(`pressed`)},r=n=>{this.heldPointers.delete(n.pointerId)&&(this.syncHeld(),e.classList.toggle(`pressed`,[...this.heldPointers.values()].includes(t)))};e.addEventListener(`pointerdown`,n),e.addEventListener(`pointerup`,r),e.addEventListener(`pointercancel`,r)}}syncHeld(){let e=[...this.heldPointers.values()];this.body=e.includes(`body`),this.power=e.includes(`power`);let t=e.findLast(e=>e===`guard_high`||e===`guard_low`)??`none`,n=t!==this.guard;this.guard=t,n&&this.heldListener?.()}get powerHeld(){return this.enabled&&this.power}onHeldChange(e){this.heldListener=e}updateStick(e,t){let n=e-this.stickOrigin.x,r=t-this.stickOrigin.y,i=Math.hypot(n,r);i>56&&(n=n/i*56,r=r/i*56),this.stickKnob.style.transform=`translate(calc(-50% + ${n}px), calc(-50% + ${r}px))`;let a=Math.min(1,i/56),o=a<.15?0:(a-.15)/.85,s=i>0?n/Math.max(i,1e-6):0,c=i>0?r/Math.max(i,1e-6):0;this.moveX=Math.round(s*o*1e3)||0,this.moveY=Math.round(-c*o*1e3)||0,this.heldListener?.()}setKnockdown(e){this.knockdown!==e&&(this.knockdown=e,this.root.classList.toggle(`knockdown`,e),e?(this.placeGetUpPads(),window.addEventListener(`resize`,this.placeGetUpPads)):(window.removeEventListener(`resize`,this.placeGetUpPads),this.setGetUpPrompt(null)))}placeGetUpPads=()=>{let e=Ge(this.root.clientWidth||window.innerWidth,this.root.clientHeight||window.innerHeight,We());for(let[t,n]of this.getUpPads.entries()){let r=t===0?e.left:e.right;Object.assign(n.style,{left:`${r.x}px`,top:`${r.y}px`,width:`${r.width}px`,height:`${r.height}px`})}};setGetUpPrompt(e){for(let t of this.getUpPads)t.classList.toggle(`wanted`,this.knockdown&&e===t.dataset.getupSide)}setEnabled(e,t=e){this.enabled=e,this.root.classList.toggle(`disabled`,!t),this.root.classList.toggle(`resting`,t&&!e),t?e||this.sharedActions.clearSource(`touch`):this.reset()}frame(){return this.enabled?{moveX:this.moveX,moveY:this.moveY,defense:this.guard,actions:[]}:{moveX:0,moveY:0,defense:`none`,actions:[]}}reset(){this.stickPointer=null,this.moveX=0,this.moveY=0,this.body=!1,this.power=!1,this.guard=`none`,this.heldPointers.clear(),this.stickBase.classList.remove(`active`);for(let e of this.root.querySelectorAll(`.pressed`))e.classList.remove(`pressed`);this.sharedActions.clearSource(`touch`)}destroy(){this.reset(),window.removeEventListener(`resize`,this.placeGetUpPads),this.root.remove()}},Xe=[`broken_nose`,`broken_jaw`,`jaw_torn`,`eye_left_out`,`eye_right_out`,`ear_left_torn`,`ear_right_torn`,`face_left_flayed`,`face_right_flayed`,`skull_fractured`,`shoulder_left_dislocated`,`shoulder_right_dislocated`,`arm_left_broken`,`arm_right_broken`,`forearm_left_severed`,`forearm_right_severed`,`arm_left_torn`,`arm_right_torn`,`ribs_left_broken`,`ribs_right_broken`,`liver_ruptured`,`disemboweled`,`knee_left_blown`,`knee_right_blown`];function Ze(e){return Xe.includes(e)}var Qe=[`eyes_out`,`head_burst`,`decapitation`,`spine_rip`,`heart_punch`,`gutting`,`bisection`,`total_gib`],$e=[`nose`,`mouth`,`eye_left`,`eye_right`,`ear_left`,`ear_right`,`skull`,`neck`,`shoulder_left`,`shoulder_right`,`elbow_left`,`elbow_right`,`chest`,`ribs_left`,`ribs_right`,`liver`,`belly`,`waist`,`crotch`,`knee_left`,`knee_right`],et=n.injuries,tt=et.kinds,nt=et.blood.volume,rt=et.blood.stages.map(e=>e.below),it=et.finish.ticks,at=(e,t)=>Array.isArray(e)?e.includes(t):e.has(t);function ot(e){return e.includes(`_left_`)?`left`:e.includes(`_right_`)?`right`:null}function st(e){return e.replace(`_left_`,`_`).replace(`_right_`,`_`)}var ct={broken_nose:`BROKEN NOSE`,broken_jaw:`BROKEN JAW`,jaw_torn:`JAW TORN OFF`,eye_out:`EYE OUT`,ear_torn:`EAR TORN OFF`,face_flayed:`CHEEK FLAYED`,skull_fractured:`SKULL SPLIT OPEN`,shoulder_dislocated:`SHOULDER OUT`,arm_broken:`ARM SNAPPED`,forearm_severed:`FOREARM SEVERED`,arm_torn:`ARM TORN OFF`,ribs_broken:`RIBS CAVED IN`,liver_ruptured:`LIVER RUPTURED`,disemboweled:`DISEMBOWELED`,knee_blown:`KNEE BLOWN OUT`};function lt(e){let t=ot(e),n=ct[st(e)];return t===null?n:`${t.toUpperCase()} ${n}`}var ut={eyes_out:`EYES PUNCHED OUT`,head_burst:`HEAD EXPLODED`,decapitation:`DECAPITATED`,spine_rip:`SPINE RIPPED OUT`,heart_punch:`HEART PUNCHED OUT`,gutting:`GUTTED`,bisection:`TORN IN HALF`,total_gib:`BLOWN TO PIECES`};function dt(e){return ut[e]}function ft(e,t){return et.fatalities[e][t]}function pt(e){if(e===`bled_out`||e===`brain`||e===`gutted`)return e;let t=e.startsWith(`fatality:`)?e.slice(9):null;return t!==null&&Qe.includes(t)?e:null}function mt(e){return e.startsWith(`fatality:`)?e.slice(9):null}function ht(e){let t=mt(e);return t===null?e===`bled_out`?`BLED TO DEATH`:e===`brain`?`BRAIN DESTROYED`:`GUTTED`:dt(t)}function gt(e,t){return at(e,`arm_${t}_torn`)?`torn`:at(e,`forearm_${t}_severed`)?`severed`:at(e,`arm_${t}_broken`)?`broken`:at(e,`shoulder_${t}_dislocated`)?`dislocated`:`whole`}var _t={dislocated:`shoulder_dislocated`,broken:`arm_broken`,severed:`forearm_severed`,torn:`arm_torn`};function vt(e,t){if(gt(e,t)!==`torn`)return t;let n=t===`left`?`right`:`left`;return gt(e,n)===`torn`?null:n}function yt(e){return gt(e,`left`)===`torn`&>(e,`right`)===`torn`}function bt(e,t){let n=gt(e,t);return n===`whole`?0:tt[_t[n]].startup_add??0}var xt=Object.fromEntries(Xe.map(e=>[e,tt[st(e)].move_speed_percent??100]));function St(e,t){let n=e;for(let e of t){let t=xt[e];t!==100&&(n=Math.floor(n*t/100))}return n}function Ct(e){let t=0;for(let n of rt)e0?`-${e.draws}`:``}`}var Tt=e=>e.wins+e.losses+e.draws===0;function Et(e){return Tt(e)?`PRO DEBUT`:`${wt(e)} (${e.knockouts} KO)`}var Dt=class extends Error{name=`ProtocolError`},Ot=2147483647,kt=new TextEncoder;function At(e){let t=0,n=()=>{for(;/\s/u.test(e[t]??``);)t+=1},r=()=>{let n=t;if(e[t++]!==`"`)throw new Dt(`invalid JSON`);for(;t{n();let a=e[t];if(a===`{`){t+=1,n();let a=new Set;if(e[t]===`}`){t+=1;return}for(;;){n();let o=r();if(a.has(o))throw new Dt(`duplicate field ${o}`);if(a.add(o),n(),e[t++]!==`:`)throw new Dt(`invalid JSON`);i(),n();let s=e[t++];if(s===`}`)return;if(s!==`,`)throw new Dt(`invalid JSON`)}}if(a===`[`){if(t+=1,n(),e[t]===`]`){t+=1;return}for(;;){i(),n();let r=e[t++];if(r===`]`)return;if(r!==`,`)throw new Dt(`invalid JSON`)}}if(a===`"`){r();return}let o=e.slice(t),s=/^(?:-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?|true|false|null)/u.exec(o);if(!s)throw new Dt(`invalid JSON`);t+=s[0].length};if(i(),n(),t!==e.length)throw new Dt(`invalid JSON`)}function jt(e){let t,n;if(typeof e==`string`?(t=kt.encode(e),n=e):(t=e instanceof Uint8Array?e:new Uint8Array(e),n=new TextDecoder(`utf-8`,{fatal:!0}).decode(t)),t.byteLength>65536)throw new Dt(`server frame too large`);try{return At(n),JSON.parse(n)}catch(e){throw e instanceof Dt?e:new Dt(`invalid JSON`)}}function Mt(e,t){if(typeof e!=`object`||!e||Array.isArray(e)||Object.getPrototypeOf(e)!==Object.prototype)throw new Dt(`${t} must be an object`);return e}function Nt(e,t,n=[]){let r=new Set([...t,...n]),i=Object.keys(e);if(t.some(t=>!Object.hasOwn(e,t))||i.some(e=>!r.has(e)))throw new Dt(`schema mismatch`)}function L(e,t,n=0,r=Ot){if(!Number.isSafeInteger(e)||er)throw new Dt(`${t} must be a bounded integer`);return e}function Pt(e,t){if(typeof e!=`boolean`)throw new Dt(`${t} must be boolean`);return e}function Ft(e,t,n=255,r=1){if(typeof e!=`string`||e.lengthn||/[\u0000-\u001f\u007f]/u.test(e))throw new Dt(`${t} must be a bounded string`);return e}function It(e,t,n=255){return e===null?null:Ft(e,t,n)}function Lt(e,t,n){if(typeof e!=`string`||!t.includes(e))throw new Dt(`invalid ${n}`);return e}function Rt(e,t,n){if(!Array.isArray(e)||e.length>n)throw new Dt(`${t} must be a bounded array`);return e}var zt=[`left`,`right`],Bt=[`jab`,`straight`,`hook`,`uppercut`],Vt=[`head`,`body`],Ht=[`normal`,`power`],Ut=[`orthodox`,`southpaw`],Wt=[`balanced`,`boxer`,`slugger`,`swarmer`,`counter_puncher`],Gt=[`none`,`guard_high`,`guard_low`,`slip_left`,`slip_right`,`weave`,`pull`],Kt=[`none`,`guard_high`,`guard_low`],qt=[`slip_left`,`slip_right`,`weave`,`pull`,`clinch`,`switch_stance`,`get_up_left`,`get_up_right`,`taunt`,`corner_cut`,`corner_swelling`,`corner_breath`],Jt=[`cut`,`swelling`,`breath`,`balanced`],Yt=[`low_blow`,`headbutt`],Xt=[`countdown`,`fight`,`knockdown`,`foul_recovery`,`referee_down`,`finish`,`rest`,`complete`],Zt=[`ko`,`flash_ko`,`tko`,`death`,`disqualification`,`decision`,`draw`,`forfeit`];function Qt(e){let t=Mt(e,`record`);return Nt(t,[`wins`,`losses`,`draws`,`knockouts`]),{wins:L(t.wins,`record.wins`),losses:L(t.losses,`record.losses`),draws:L(t.draws,`record.draws`),knockouts:L(t.knockouts,`record.knockouts`)}}function $t(e){let t=Mt(e,`player`);Nt(t,[`id`,`name`,`avatar`,`rating`,`connected`],[`cpu`,`record`,`style`]);let n=t.style===void 0?{}:{style:Lt(t.style,Wt,`player style`)},r=t.cpu===void 0?{}:{cpu:Pt(t.cpu,`cpu`)},i=t.record===void 0?{}:{record:Qt(t.record)};return{id:Ft(t.id,`player.id`),name:Ft(t.name,`player.name`,80),avatar:It(t.avatar,`player.avatar`,128),rating:L(t.rating,`rating`),connected:Pt(t.connected,`connected`),...r,...i,...n}}function en(e,t,n=1){let r=Rt(e,`players`,2).map($t);if(r.lengthe.id)).size!==r.length)throw new Dt(`players must be present and distinct`);return r}function tn(e){let t=Mt(e,`trauma`);return Nt(t,[`head`,`body`,`left_eye`,`right_eye`,`left_cut`,`right_cut`,`swelling`,`bleeding`]),{head:L(t.head,`head`,0,1400),body:L(t.body,`body`,0,1200),left_eye:L(t.left_eye,`left_eye`,0,1e3),right_eye:L(t.right_eye,`right_eye`,0,1e3),left_cut:L(t.left_cut,`left_cut`,0,1e3),right_cut:L(t.right_cut,`right_cut`,0,1e3),swelling:L(t.swelling,`swelling`,0,1e3),bleeding:L(t.bleeding,`bleeding`,0,1e3)}}var nn=g;function rn(e,t){return Math.max(-nn,Math.min(nn,L(e,t,-2147483647,Ot)))}function an(e){let t=Rt(e,`injuries`,Xe.length).map(e=>Lt(e,Xe,`injury`));for(let e=1;ee===null)&&[n,r,i,a].some(e=>e!==null))throw new Dt(`partial punch action`);let o=t.action_id===null?null:Ft(t.action_id,`action_id`,32),s=t.action_key===null?null:Ft(t.action_key,`action_key`,64);if([o,s].some(e=>e===null)!==[o,s].every(e=>e===null))throw new Dt(`partial action instance`);if(o!==null&&n===null)throw new Dt(`action instance without class`);let c=t.get_up_prompt===null?null:Lt(t.get_up_prompt,[`get_up_left`,`get_up_right`],`get-up prompt`),l=t.get_up_next_prompt===null?null:Lt(t.get_up_next_prompt,[`get_up_left`,`get_up_right`],`next get-up prompt`),u=L(t.maximum_stamina,`maximum_stamina`,330,1e3),d=L(t.stamina,`stamina`,0,u),f=L(t.get_up_required,`get_up_required`,0,j),p=L(t.facing,`facing`,-1,1);if(p===0)throw new Dt(`invalid facing`);let m=L(t.facing_x,`facing_x`,-1e3,1e3),h=L(t.facing_y,`facing_y`,-1e3,1e3);if(m===0&&h===0)throw new Dt(`invalid facing vector`);return{player_id:Ft(t.player_id,`player_id`),x:L(t.x,`x`,-462,462),y:L(t.y,`y`,-462,462),facing:p,facing_x:m,facing_y:h,velocity_x:rn(t.velocity_x,`velocity_x`),velocity_y:rn(t.velocity_y,`velocity_y`),stance:Lt(t.stance,Ut,`stance`),style:Lt(t.style,Wt,`style`),defense:Lt(t.defense,Gt,`defense`),stamina:d,maximum_stamina:u,conditioning:L(t.conditioning,`conditioning`,0,1e3),guard:L(t.guard,`guard`,0,700),guard_broken:Pt(t.guard_broken,`guard_broken`),poise:L(t.poise,`poise`,0,600),trauma:tn(t.trauma),knockdowns:L(t.knockdowns,`knockdowns`,0,3),warnings:L(t.warnings,`warnings`,0,3),deductions:L(t.deductions,`deductions`,0,1),stunned_ticks:L(t.stunned_ticks,`stunned_ticks`,0,90),is_downed:Pt(t.is_downed,`is_downed`),action:n,action_hand:r,action_target:i,action_power:a,action_id:o,action_key:s,action_start_tick:L(t.action_start_tick,`action_start_tick`,0),action_startup_ticks:L(t.action_startup_ticks,`action_startup_ticks`,0,40),action_active_ticks:L(t.action_active_ticks,`action_active_ticks`,0,10),action_recovery_ticks:L(t.action_recovery_ticks,`action_recovery_ticks`,0,40),action_contact_tick:t.action_contact_tick===null?null:L(t.action_contact_tick,`action_contact_tick`,0),queued_actions:L(t.queued_actions,`queued_actions`,0,1),clinch_startup_ticks:L(t.clinch_startup_ticks,`clinch_startup_ticks`,0,8),clinch_ticks:L(t.clinch_ticks,`clinch_ticks`,0,45),is_foul_recovery_target:Pt(t.is_foul_recovery_target,`is_foul_recovery_target`),taunt_ticks:L(t.taunt_ticks,`taunt_ticks`,0,60),corner_choice:t.corner_choice===null?null:Lt(t.corner_choice,Jt,`corner choice`),get_up_prompt:c,get_up_meter:L(t.get_up_meter,`get_up_meter`,0,256),get_up_required:f,get_up_count:L(t.get_up_count,`get_up_count`,0,10),get_up_window_start_tick:L(t.get_up_window_start_tick,`get_up_window_start_tick`),get_up_window_end_tick:L(t.get_up_window_end_tick,`get_up_window_end_tick`),get_up_next_prompt:l,last_input_sequence:L(t.last_input_sequence,`last_input_sequence`,-1),injuries:an(t.injuries),blood_volume:L(t.blood_volume,`blood_volume`,0,nt)}}function sn(e){let t=Mt(e,`event`);return Nt(t,[`event_id`,`tick`,`kind`,`actor_id`,`target_id`,`amount`,`detail`,`blood`,`direction`,`action_id`]),{event_id:L(t.event_id,`event_id`),tick:L(t.tick,`tick`),kind:Ft(t.kind,`event kind`,32),actor_id:It(t.actor_id,`actor_id`),target_id:It(t.target_id,`target_id`),amount:L(t.amount,`amount`,-1e4,1e4),detail:Ft(t.detail,`detail`,96,0),blood:L(t.blood,`blood`,0,100),direction:L(t.direction,`direction`,-1,1),action_id:t.action_id===null?null:Ft(t.action_id,`action_id`,32)}}function cn(e){let t=Mt(e,`judge card`);Nt(t,[`judge`,`player_one`,`player_two`]);let n=e=>Rt(e,`round scores`,15).map(e=>L(e,`score`,6,10)),r=n(t.player_one),i=n(t.player_two);if(r.length!==i.length)throw new Dt(`scorecard round mismatch`);return{judge:Ft(t.judge,`judge`,80),player_one:r,player_two:i}}function ln(e){let t=Rt(e,`scorecards`,3).map(cn);if(t.length!==3)throw new Dt(`exactly three scorecards required`);return t}function un(e,t){if(t===`draw`!=(e===null))throw new Dt(`incoherent finish result`)}function dn(e){let t=Mt(e,`result`);Nt(t,[`match_id`,`activity_instance_id`,`guild_id`,`player_one_id`,`player_two_id`,`winner_id`,`finish_method`,`round_number`,`tick`,`scorecards`,`player_one_knockdowns`,`player_two_knockdowns`,`player_one_damage`,`player_two_damage`]);let n=Ft(t.player_one_id,`player_one_id`),r=Ft(t.player_two_id,`player_two_id`);if(n===r)throw new Dt(`result players must be distinct`);let i=It(t.winner_id,`winner_id`);if(i!==null&&i!==n&&i!==r)throw new Dt(`invalid winner`);let a=Lt(t.finish_method,Zt,`finish method`);return un(i,a),{match_id:Ft(t.match_id,`match_id`),activity_instance_id:Ft(t.activity_instance_id,`activity_instance_id`),guild_id:Ft(t.guild_id,`guild_id`),player_one_id:n,player_two_id:r,winner_id:i,finish_method:a,round_number:L(t.round_number,`round`,1,15),tick:L(t.tick,`tick`),scorecards:ln(t.scorecards),player_one_knockdowns:L(t.player_one_knockdowns,`knockdowns`,0,3),player_two_knockdowns:L(t.player_two_knockdowns,`knockdowns`,0,3),player_one_damage:L(t.player_one_damage,`damage`),player_two_damage:L(t.player_two_damage,`damage`)}}function fn(e){let t=Mt(e,`referee`);return Nt(t,[`x`,`y`,`facing_x`,`facing_y`,`velocity_x`,`velocity_y`,`stunned_ticks`,`alive`,`trauma`]),{x:L(t.x,`referee.x`,-462,462),y:L(t.y,`referee.y`,-462,462),facing_x:L(t.facing_x,`referee.facing_x`,-1e3,1e3),facing_y:L(t.facing_y,`referee.facing_y`,-1e3,1e3),velocity_x:rn(t.velocity_x,`referee.velocity_x`),velocity_y:rn(t.velocity_y,`referee.velocity_y`),stunned_ticks:L(t.stunned_ticks,`referee.stunned_ticks`,0,90),alive:Pt(t.alive,`referee.alive`),trauma:tn(t.trauma)}}function pn(e){let t=Mt(e,`snapshot`);Nt(t,[`tick`,`phase`,`round_number`,`phase_ticks_remaining`,`fighters`,`referee`,`events`,`result`,`checksum`]);let n=Rt(t.fighters,`fighters`,2).map(on);if(n.length!==2||n[0]?.player_id===n[1]?.player_id)throw new Dt(`snapshot requires two distinct fighters`);let r=Ft(t.checksum,`checksum`,64);if(!/^[a-f0-9]{64}$/u.test(r))throw new Dt(`invalid checksum`);return{tick:L(t.tick,`tick`),phase:Lt(t.phase,Xt,`phase`),round_number:L(t.round_number,`round`,1,15),phase_ticks_remaining:L(t.phase_ticks_remaining,`phase ticks`),fighters:[n[0],n[1]],referee:fn(t.referee),events:Rt(t.events,`events`,256).map(sn),result:t.result===null?null:dn(t.result),checksum:r}}function mn(e){let t=Mt(jt(e),`envelope`);if(t.version!==7)throw new Dt(`unsupported protocol version`);let n=Ft(t.type,`type`,32);if(n===`welcome`){let e=Lt(t.role,[`fighter`,`spectator`],`connection role`),r=Ft(t.player_id,`player_id`),i=t.reconnect_ticket===void 0?{}:{reconnect_ticket:Ft(t.reconnect_ticket,`reconnect_ticket`,4096)};if(e===`fighter`){Nt(t,[`version`,`type`,`role`,`player_id`,`seat`,`rating`,`players`,`server_tick`,`next_sequence`],[`reconnect_ticket`]);let a=en(t.players);if(!a.some(e=>e.id===r))throw new Dt(`welcome fighter is absent`);return{version:7,type:n,role:e,player_id:r,seat:L(t.seat,`seat`,1,2),rating:L(t.rating,`rating`),players:a,server_tick:L(t.server_tick,`server_tick`),next_sequence:L(t.next_sequence,`next_sequence`),...i}}Nt(t,[`version`,`type`,`role`,`player_id`,`players`,`server_tick`],[`reconnect_ticket`]);let a=en(t.players,void 0,0);if(a.some(e=>e.id===r))throw new Dt(`spectator cannot be a fighter`);return{version:7,type:n,role:e,player_id:r,players:a,server_tick:L(t.server_tick,`server_tick`),...i}}if(n===`ticket`)return Nt(t,[`version`,`type`,`reconnect_ticket`,`refresh_id`]),{version:7,type:n,reconnect_ticket:Ft(t.reconnect_ticket,`reconnect_ticket`,4096),refresh_id:Ft(t.refresh_id,`refresh_id`,128,16)};if(n===`waiting`){if(Nt(t,[`version`,`type`,`open_seats`]),t.open_seats!==1&&t.open_seats!==2)throw new Dt(`invalid open seats`);return{version:7,type:n,open_seats:t.open_seats}}if(n===`select`){Nt(t,[`version`,`type`,`deadline_ms`,`players`,`ready`]);let e=en(t.players,2),r=Rt(t.ready,`ready`,2).map(e=>Ft(e,`ready player id`));if(new Set(r).size!==r.length||r.some(t=>!e.some(e=>e.id===t)))throw new Dt(`invalid ready fighters`);return{version:7,type:n,deadline_ms:L(t.deadline_ms,`deadline_ms`,0,6e4),players:[e[0],e[1]],ready:r}}if(n===`ready`){Nt(t,[`version`,`type`,`players`]);let e=en(t.players,2);return{version:7,type:n,players:[e[0],e[1]]}}if(n===`paused`)return Nt(t,[`version`,`type`,`player_id`,`grace_ms`]),{version:7,type:n,player_id:Ft(t.player_id,`player_id`),grace_ms:L(t.grace_ms,`grace_ms`,0,6e4)};if(n===`resumed`)return Nt(t,[`version`,`type`,`player_id`]),{version:7,type:n,player_id:Ft(t.player_id,`player_id`)};if(n===`snapshot`)return Nt(t,[`version`,`type`,`payload`]),{version:7,type:n,payload:pn(t.payload)};if(n===`error`)return Nt(t,[`version`,`type`,`code`]),{version:7,type:n,code:Ft(t.code,`error code`,80)};if(n===`final`)return gn(t,n);throw new Dt(`unsupported server message type`)}function hn(e,t){let n=Object.entries(Mt(e,`punches`));if(n.length!==2||n.some(([e])=>!t.includes(e)))throw new Dt(`punches must count both fighters`);let r=Object.create(null);for(let[e,t]of n){let n=Mt(t,`punch totals`);Nt(n,[`thrown`,`landed`,`jabs_thrown`,`jabs_landed`]);let i=L(n.thrown,`thrown`),a=L(n.landed,`landed`,0,i),o=L(n.jabs_thrown,`jabs_thrown`,0,i);r[e]={thrown:i,landed:a,jabs_thrown:o,jabs_landed:L(n.jabs_landed,`jabs_landed`,0,Math.min(a,o))}}return r}function gn(e,t){Nt(e,[`version`,`type`,`match_id`,`winner_id`,`method`,`round`,`scorecards`,`ratings`],[`punches`]);let n=Mt(e.ratings,`ratings`),r=Object.entries(n);if(r.length!==2)throw new Dt(`final requires two ratings`);let i=Object.create(null);for(let[e,t]of r){Ft(e,`rating player id`);let n=Mt(t,`rating`);Nt(n,[`before`,`after`]),i[e]={before:L(n.before,`before`),after:L(n.after,`after`)}}let a=It(e.winner_id,`winner_id`);if(a!==null&&!Object.hasOwn(i,a))throw new Dt(`winner absent from ratings`);let o=Lt(e.method,Zt,`finish method`);un(a,o);let s=e.punches===void 0?{}:{punches:hn(e.punches,Object.keys(i))};return{version:7,type:t,match_id:Ft(e.match_id,`match_id`),winner_id:a,method:o,round:L(e.round,`round`,1,15),scorecards:ln(e.scorecards),ratings:i,...s}}function _n(e,t,n){return JSON.stringify({version:7,type:`input`,sequence:L(e,`sequence`),client_tick:L(t,`client tick`),move:{x:Math.max(-1e3,Math.min(1e3,Math.round(Number.isFinite(n.moveX)?n.moveX:0))),y:Math.max(-1e3,Math.min(1e3,Math.round(Number.isFinite(n.moveY)?n.moveY:0)))},defense:Lt(n.defense,Kt,`held defense`),actions:n.actions.slice(0,4).map(e=>{let t=e.id===void 0?{}:{id:e.id.slice(0,32)};return e.kind===`punch`?{kind:`punch`,hand:Lt(e.hand,zt,`hand`),class:Lt(e.class,Bt,`class`),target:Lt(e.target,Vt,`target`),power:Lt(e.power,Ht,`power`),...t}:e.kind===`foul`?{kind:`foul`,foul:Lt(e.foul,Yt,`foul`),...t}:{kind:Lt(e.kind,qt,`action`),...t}})})}function vn(e,t){return JSON.stringify({version:7,type:`style`,style:Lt(e,Wt,`fighter style`),ready:t===!0})}var yn=[`rookie`,`contender`,`champion`];function bn(e){return JSON.stringify({version:7,type:`cpu`,level:Lt(e,yn,`computer level`)})}function xn(e){let t=Mt(e,`bootstrap`);if(Nt(t,[`client_id`,`state`,`protocol`,`simulation`]),t.protocol!==7)throw new Dt(`unsupported protocol version`);let n=Mt(t.simulation,`simulation`);return Nt(n,[`tick_rate`,`ring_half_width`,`ring_half_height`]),{client_id:Ft(t.client_id,`client_id`,36),state:Ft(t.state,`state`,128),protocol:7,simulation:{tick_rate:L(n.tick_rate,`tick rate`,1,120),ring_half_width:L(n.ring_half_width,`ring width`,1),ring_half_height:L(n.ring_half_height,`ring height`,1)}}}function Sn(e){let t=Mt(e,`token response`);Nt(t,[`access_token`,`ticket`,`player`]);let n=Mt(t.player,`player`);return Nt(n,[`id`,`name`,`avatar`,`rating`]),{access_token:Ft(t.access_token,`access token`,4096),ticket:Ft(t.ticket,`ticket`,4096),player:{id:Ft(n.id,`id`),name:Ft(n.name,`name`,80),avatar:It(n.avatar,`avatar`,128),rating:L(n.rating,`rating`)}}}var Cn=[`Power`,`Hand speed`,`Footwork`,`Reach`,`Stamina`,`Defence`],wn=[{style:`balanced`,name:`Balanced`,tag:`BALANCED`,detail:`Even at everything, no holes to exploit.`,stats:[3,3,3,3,3,3]},{style:`boxer`,name:`Boxer`,tag:`BOXER`,detail:`Snappy jab and long reach, lighter hands.`,stats:[2,4,3,4,3,3]},{style:`slugger`,name:`Slugger`,tag:`SLUGGER`,detail:`Heavy hands, hard chin, slow feet, tires sooner.`,stats:[5,2,2,3,2,4]},{style:`swarmer`,name:`Swarmer`,tag:`SWARMER`,detail:`Quick feet and head, digs to the body, never stops.`,stats:[2,4,4,3,4,3]},{style:`counter_puncher`,name:`Counter-puncher`,tag:`COUNTER`,detail:`Slips and parries, makes every miss cost.`,stats:[2,3,3,3,3,5]}],Tn=e=>wn.find(t=>t.style===e)??wn[0];function En(e){return e===void 0||e===`balanced`?null:Tn(e).tag}function Dn(e){return e===void 0||e===`balanced`?null:`the ${Tn(e).name.toLowerCase()}`}var On=`hands.style.v1`;function kn(e=jn()){try{let t=e?.getItem(On);return Wt.find(e=>e===t)??`balanced`}catch{return`balanced`}}function An(e,t=jn()){try{t?.setItem(On,e)}catch{}}function jn(){try{return window.localStorage}catch{return null}}var Mn=400,Nn={Digit1:0,Digit2:1,Digit3:2,Digit4:3,Digit5:4,Numpad1:0,Numpad2:1,Numpad3:2,Numpad4:3,Numpad5:4},Pn=.6;function Fn(){try{return[...navigator.getGamepads?.()??[]].find(e=>e!==null&&e.connected&&e.mapping===`standard`)??null}catch{return null}}function In(e){let t=new Set;if(e===null)return t;let n=t=>e.buttons[t]?.pressed===!0,r=e.axes[0]??0,i=e.axes[1]??0;return(n(12)||n(14)||r<-.6||i<-.6)&&t.add(`previous`),(n(13)||n(15)||r>Pn||i>Pn)&&t.add(`next`),n(0)&&t.add(`settle`),t}var Ln=class{send;now;element;buttons=new Map;clock;status;visible=!1;choosing=!1;highlighted;settled=!1;deadlineAt=0;timer=null;padFrame=0;padHeld=new Set;context=null;keydown=e=>{if(!this.visible||!this.choosing||e.repeat||e.ctrlKey||e.metaKey||e.altKey)return;let t=e.target;if(t instanceof HTMLElement&&t!==document.body&&!this.element.contains(t))return;let n=Nn[e.code];n===void 0?e.code===`ArrowRight`||e.code===`ArrowDown`?(e.preventDefault(),this.move(this.neighbour(1))):e.code===`ArrowLeft`||e.code===`ArrowUp`?(e.preventDefault(),this.move(this.neighbour(-1))):e.code!==`Enter`&&e.code!==`Space`||t instanceof HTMLButtonElement||(e.preventDefault(),this.pick(this.highlighted,!0)):(e.preventDefault(),this.pick(wn[n].style,!0))};constructor(e,t,n=()=>performance.now(),r=kn()){this.send=t,this.now=n,this.highlighted=r;let i=document.createElement(`section`);i.className=`style-picker`,i.dataset.stylePicker=``,i.hidden=!0,i.setAttribute(`aria-label`,`Pick how your fighter boxes`);let a=document.createElement(`header`),o=document.createElement(`p`);o.className=`style-title`,o.textContent=`CHOOSE YOUR STYLE`,this.clock=document.createElement(`p`),this.clock.className=`style-clock`,a.append(o,this.clock);let s=document.createElement(`div`);s.className=`style-cards`;for(let[e,t]of wn.entries()){let n=document.createElement(`button`);n.type=`button`,n.dataset.style=t.style,n.setAttribute(`aria-pressed`,`false`);let r=document.createElement(`kbd`);r.textContent=String(e+1);let i=document.createElement(`strong`);i.textContent=t.name;let a=document.createElement(`span`);a.textContent=t.detail;let o=document.createElement(`ul`);o.className=`style-stats`;for(let[e,n]of t.stats.entries()){let t=document.createElement(`li`);t.setAttribute(`aria-label`,`${Cn[e]} ${n} of 5`);let r=document.createElement(`small`);r.textContent=Cn[e];let i=document.createElement(`i`);i.dataset.value=String(n),t.append(r,i),o.append(t)}n.append(r,i,a,o),n.addEventListener(`click`,()=>this.pick(t.style,!0)),s.append(n),this.buttons.set(t.style,n)}this.status=document.createElement(`p`),this.status.className=`style-status`,this.status.setAttribute(`role`,`status`),i.append(a,s,this.status),e.append(i),this.element=i,window.addEventListener(`keydown`,this.keydown)}update(e,t,n){if(e===null){this.setVisible(!1),this.context=null,this.settled=!1;return}let r=this.context===null||!this.choosing&&n===`fighter`;this.context?.select!==e&&(this.deadlineAt=this.now()+e.deadline_ms-Mn),this.context={select:e,viewerId:t},this.choosing=n===`fighter`&&t!==null,this.settled=this.choosing&&(this.settled||e.ready.includes(t));let i=e.players.find(e=>e.id===t)?.style;this.settled&&i!==void 0&&(this.highlighted=i),r&&this.choosing&&!this.settled&&this.send(this.highlighted,!1),this.setVisible(!0),this.render()}pick(e,t){!this.choosing||this.settled||this.closed||(this.highlighted=e,this.send(e,t)&&(t&&(this.settled=!0),this.render()))}get closed(){return this.now()>=this.deadlineAt}neighbour(e){return wn[(wn.findIndex(e=>e.style===this.highlighted)+e+wn.length)%wn.length].style}move(e){this.pick(e,!1),this.settled||this.buttons.get(this.highlighted)?.focus()}render(){let e=this.context;if(e===null)return;let{select:t,viewerId:n}=e;for(let e of wn){let t=this.buttons.get(e.style),n=this.choosing&&e.style===this.highlighted;t.disabled=!this.choosing||this.settled||this.closed,t.setAttribute(`aria-pressed`,String(n)),t.toggleAttribute(`data-chosen`,n),t.tabIndex=e.style===this.highlighted?0:-1}let r=`${Math.max(0,Math.ceil((this.deadlineAt-this.now())/1e3))}s`;this.clock.textContent!==r&&(this.clock.textContent=r);let i=t.players.filter(e=>e.id!==n&&(!e.connected||t.ready.includes(e.id))).map(e=>e.connected?`${e.name} is ready.`:`Waiting for ${e.name} to reconnect.`).join(` `),a=this.choosing?this.settled?i.length>0?`Ready as ${Tn(this.highlighted).name}. ${i}`:`Ready as ${Tn(this.highlighted).name}. Waiting for your opponent.`:i.length>0?`${i} Tap a style or press Enter to settle on yours.`:`Tap a style, or use the arrow keys and Enter.`:i.length>0?`The fighters are choosing. ${i}`:`The fighters are choosing their styles.`;this.status.textContent!==a&&(this.status.textContent=a)}setVisible(e){this.visible!==e&&(this.visible=e,this.element.hidden=!e,e?(this.timer=window.setInterval(()=>this.render(),250),this.padHeld=In(Fn()),this.padFrame=requestAnimationFrame(()=>this.pollPad())):(this.timer!==null&&window.clearInterval(this.timer),this.timer=null,cancelAnimationFrame(this.padFrame)))}pollPad(){if(!this.visible)return;let e=In(Fn());for(let t of e)this.padHeld.has(t)||(t===`settle`?this.pick(this.highlighted,!0):this.move(this.neighbour(t===`next`?1:-1)));this.padHeld=e,this.padFrame=requestAnimationFrame(()=>this.pollPad())}destroy(){this.setVisible(!1),window.removeEventListener(`keydown`,this.keydown),this.element.remove()}},Rn=/^[0-9]{17,20}$/u,zn=/^[A-Za-z0-9_]{1,128}$/u,Bn=`https://cdn.discordapp.com/avatars/`,Vn=128,Hn=8;function Un(e){return e.avatar===null||!Rn.test(e.id)||!zn.test(e.avatar)?null:new URL(`${e.id}/${e.avatar}.png?size=${Vn}`,Bn).href}function Wn(e){let t=Array.from(e).find(e=>/[\p{L}\p{N}]/u.test(e));return t===void 0?`?`:t.toUpperCase()}var Gn=class{create;pictures=new Map;addresses=new Map;constructor(e=()=>new Image){this.create=e}get(e){if(e===void 0)return null;let t=this.addresses.get(e.id);(t===void 0||t.avatar!==e.avatar)&&(this.addresses.size>=Hn&&this.addresses.clear(),t={avatar:e.avatar,url:Un(e)},this.addresses.set(e.id,t));let n=t.url;if(n===null)return null;let r=this.pictures.get(n);if(r!==void 0)return r.ready?r.image:null;if(this.pictures.size>=Hn){let e=this.pictures.entries().next().value;e!==void 0&&this.drop(e[0],e[1])}let i={image:this.create(),ready:!1};return this.pictures.set(n,i),i.image.crossOrigin=`anonymous`,i.image.referrerPolicy=`no-referrer`,i.image.decoding=`async`,i.image.onload=()=>{i.ready=i.image.naturalWidth>0},i.image.onerror=()=>{i.ready=!1},i.image.src=n,null}dispose(){for(let[e,t]of[...this.pictures])this.drop(e,t);this.addresses.clear()}drop(e,t){t.image.onload=null,t.image.onerror=null,t.ready=!1,this.pictures.delete(e)}},Kn=`POWER ARMED`,qn=1e3,Jn=e=>e.reduce((e,t)=>e+t,0),Yn=(e,t,n)=>{if(e.measureText(t).width<=n)return t;let r=t;for(;r.length>1&&e.measureText(`${r}…`).width>n;)r=r.slice(0,-1);return`${r}…`},Xn=(e,t,n,r)=>{for(let i=n;i>r;--i)if(e(i)<=t)return i;return r},Zn=`#ff7066`;function Qn(e,t,n,r,i,a){let o=i.spentBelow!==void 0&&i.value0&&(e.globalAlpha=i.alarm*.6,e.fillStyle=`#ff4632`,e.fillRect(t-1,n-1,r+2,11),e.globalAlpha=1),o){e.beginPath();for(let i=-9;i.5?`#ffffff`:`#ff9a90`,e.fillText(r,t,n-4)}}function er(e,t,n,r,i,a,o){let s=()=>{e.beginPath(),e.arc(t,n,r,0,Math.PI*2),e.closePath()};e.save(),s(),e.fillStyle=`#0b1220`,e.fill(),i===null?(e.globalAlpha=.4,e.fillStyle=o,e.fill(),e.globalAlpha=1,e.fillStyle=`#f5f8ff`,e.textAlign=`center`,e.font=`800 ${Math.round(r*1.1)}px Inter, system-ui, sans-serif`,e.fillText(Wn(a),t,n+r*.39)):(e.save(),e.clip(),e.drawImage(i,t-r,n-r,r*2,r*2),e.restore()),s(),e.lineWidth=Math.max(1.5,r/9),e.strokeStyle=o,e.stroke(),e.restore()}function tr(e,t=[]){let n=e.left_eye>=p&&!t.includes(`eye_left_out`),r=e.right_eye>=p&&!t.includes(`eye_right_out`);return n&&r?`BOTH EYES SHUT`:n?`LEFT EYE SHUT`:r?`RIGHT EYE SHUT`:null}var nr={cut:`closing the cut`,swelling:`icing the swelling`,breath:`catching breath`,balanced:`a little of everything`};function rr(e){let t=e.flatMap((e,t)=>e.corner_choice===null?[]:[`${t===0?`Blue`:`Red`}: ${nr[e.corner_choice]}`]);return t.length===0?null:t.join(` · `)}function ir(e,t,n,r){e.save(),e.font=`900 12px Inter, system-ui, sans-serif`;let i=e.measureText(Kn).width+16,a=r?t-i:t;e.shadowColor=`rgba(255,120,30,0.9)`,e.shadowBlur=12;let o=e.createLinearGradient(0,n,0,n+18);o.addColorStop(0,`#ffd36b`),o.addColorStop(1,`#ff6a1a`),e.fillStyle=o,e.fillRect(a,n,i,18),e.shadowBlur=0,e.fillStyle=`#2a0c00`,e.textAlign=`left`,e.fillText(Kn,a+8,n+13),e.restore()}function ar(e,t,n,r,i){e.save(),e.font=`800 9px Inter, system-ui, sans-serif`;let a=e.measureText(r).width+12,o=i?t-a:t;e.fillStyle=`rgba(150,22,18,0.92)`,e.fillRect(o,n,a,14),e.fillStyle=`#ffe8e3`,e.textAlign=`left`,e.fillText(r,o+6,n+10),e.restore()}var or={arm_torn:0,disemboweled:1,forearm_severed:2,skull_fractured:3,jaw_torn:4,face_flayed:5,eye_out:6,ear_torn:7,arm_broken:8,knee_blown:9,ribs_broken:10,broken_jaw:11,broken_nose:12,liver_ruptured:13,shoulder_dislocated:14},sr=8,cr=e=>or[st(e)],lr={wide:4,compact:3};function ur(e){return e.filter(t=>t!==`broken_jaw`||!e.includes(`jaw_torn`)).sort((e,t)=>cr(e)-cr(t))}function dr(e,t){let n=e.slice(0,t).map(lt);return e.length>t&&n.push(`+${e.length-t}`),n}var fr=14,pr=3,mr=`800 9px Inter, system-ui, sans-serif`,hr={grave:`#c4160f`,plain:`rgba(122,18,14,0.92)`,count:`rgba(52,8,8,0.92)`},gr={grave:`#ffffff`,plain:`#ffe8e3`,count:`#ffb1a8`};function _r(e,t,n,r,i,a){e.fillStyle=hr[a],e.fillRect(t,n,r,fr),e.fillStyle=gr[a],e.fillText(i,t+6,n+10)}function vr(e,t,n,r,i,a,o){if(i.length===0)return n;let s=ur(i),c=Math.min(a,s.length),l=dr(s,a).map(e=>({label:e,width:0,offset:0,row:0}));e.save(),e.font=mr,e.textAlign=`left`;let u=0,d=0;for(let t of l)t.label=Yn(e,t.label,r-12),t.width=e.measureText(t.label).width+12,d>0&&d+pr+t.width>r&&(u+=1,d=0),t.offset=d===0?0:d+pr,t.row=u,d=t.offset+t.width;let f=n-(u+1)*17+pr;return l.forEach((n,r)=>{let i=r>=c?`count`:cr(s[r])r)break;_r(e,o?t-p-f:t+p,n,f,d,a===null||cr(a)>=sr?`plain`:`grave`),l=p+f,u+=1}if(u>0&&u0?`${t.knockdowns} KD`:null,c=[s,t.warnings>0?`${t.warnings} WARNING${t.warnings===1?``:`S`}`:null,t.deductions>0?`−${t.deductions} PT${t.deductions===1?``:`S`}`:null,r>0?`${r} INJUR${r===1?`Y`:`IES`}`:null],l=[s,t.warnings>0?`W${t.warnings}`:null,t.deductions>0?`−${t.deductions}`:null,r>0?`${r} INJ`:null],u=(...e)=>e.filter(e=>e!==null).join(` · `),d=n?[u(i,...l),u(...l)]:[u(i,a,o,...c),u(i,o,...c),u(i,...c),u(i,...l),u(...l)];return d.filter((e,t)=>e!==``&&d.indexOf(e)===t)}var kr=168;function Ar(e,t,n,r,i,a,o,s,c,l,u=!1){e.save(),e.beginPath(),s?(e.moveTo(t+14,n),e.lineTo(t+r,n),e.lineTo(t+r-14,n+62),e.lineTo(t,n+62)):(e.moveTo(t,n),e.lineTo(t+r-14,n),e.lineTo(t+r,n+62),e.lineTo(t+14,n+62)),e.closePath(),e.fillStyle=`rgba(3,6,12,0.82)`,e.fill(),e.strokeStyle=`rgba(190,200,220,0.22)`,e.lineWidth=1,e.stroke(),e.fillStyle=c,e.fillRect(s?t+r-5:t,n+4,5,54);let d=l===void 0?20:51;l!==void 0&&er(e,s?t+r-11-16:t+11+16,n+4+16,16,l,i,c);let f=s?t+r-d:t+d;e.textAlign=s?`right`:`left`,e.fillStyle=`#f5f8ff`;let p=i.toUpperCase(),m=r-d-24;e.font=`800 ${Xn(t=>(e.font=`800 ${t}px Inter, system-ui, sans-serif`,e.measureText(p).width),m,16,11)}px Inter, system-ui, sans-serif`,e.fillText(Yn(e,p,m),f,n+21);let h=r-d-14;if(u)e.fillStyle=`#ffb347`,e.font=`900 10px Inter, system-ui, sans-serif`,e.fillText(Yn(e,Kn,h),f,n+35);else{e.fillStyle=`#93a3bd`;let t=(t,n)=>(e.font=`600 ${n}px Inter, system-ui, sans-serif`,e.measureText(t).width),r=a.find(e=>t(e,8)<=h)??a.at(-1)??``;e.font=`600 ${Xn(e=>t(r,e),h,10,8)}px Inter, system-ui, sans-serif`,e.fillText(Yn(e,r,h),f,n+35)}let g=(r-52)/o.length,_=o.length*g+(o.length-1)*12,v=s?t+r-20-_:t+20;o.forEach((t,r)=>{Qn(e,v+(g+12)*r,n+48,g,t,s)}),e.restore()}function jr(e,t,n,r,i,a){let o=kr;e.save(),e.beginPath(),e.moveTo(t-o/2+12,n),e.lineTo(t+o/2-12,n),e.lineTo(t+o/2,n+29),e.lineTo(t+o/2-12,n+58),e.lineTo(t-o/2+12,n+58),e.lineTo(t-o/2,n+29),e.closePath(),e.fillStyle=`rgba(4,6,12,0.88)`,e.fill();let s=e.createLinearGradient(t-o/2,n,t+o/2,n+58);s.addColorStop(0,`#8a6a26`),s.addColorStop(.5,`#f6d57a`),s.addColorStop(1,`#8a6a26`),e.strokeStyle=s,e.lineWidth=2,e.stroke(),e.textAlign=`center`,e.fillStyle=`#ffffff`,e.font=`800 22px ui-monospace, monospace`,e.fillText(r,t,n+27),e.fillStyle=`#f6d57a`,e.font=`800 12px Inter, system-ui, sans-serif`,e.fillText(i,t,n+44),a!==`FIGHT`&&(e.fillStyle=`#93a3bd`,e.font=`700 9px Inter, system-ui, sans-serif`,e.fillText(a,t,n+55)),e.restore()}var Mr=78,Nr=50,Pr=.22,Fr=e=>e<480?Nr:Mr,Ir=(e,t)=>Math.max(e<640?112:56,t*.1)+Fr(t)/2-t/2,Lr={upright:{bottom:118,height:274,moves:0,grid:118},landscape:{bottom:118,height:196,moves:102,grid:118},short:{bottom:112,height:154,moves:86,grid:92},shortHeight:350,reach:216,movesReach:134},Rr=(e,t)=>e<=t?Lr.upright:t<=Lr.shortHeight?Lr.short:Lr.landscape;function zr(e,t,n){let r=Rr(e,t);return n<=t-r.bottom-r.height?0:Lr.reach+(r.moves>0&&n>t-r.bottom-r.moves?Lr.movesReach:0)}var Br=160;function Vr(e,t,n=!1){let r=Fr(t),i=t/2+Ir(e,t)-r/2,a=Math.min(320,e-24),o=e/2+a/2;if(n&&e<=t)zr(e,t,i+r+8)>0&&(r=Nr);else if(n){let n=e<640?Math.min(e/2-kr/2-8,e-zr(e,t,56+r)):0,s=n-12>=Br;s&&(i=56);let c=s?n:e-zr(e,t,i+r);o>c&&(a=Math.min(a,c-12),o=c)}return{x:o-a,y:i,width:a,height:r}}var Hr={width:560,height:360,shortest:150},Ur=112;function Wr(e,t,n=!1){let r=n?Ge(e,t,We()):null,i=e<=t,a=r!==null&&i?Math.min(t-Ur,r.left.y-8):t-Ur,o=r!==null&&!i?r.right.x-r.left.x-r.left.width-24:e-24,s=Math.min(Hr.height,Math.max(Hr.shortest,a-56)),c=Math.max(56,Math.min(Math.max(t*.24,fi(t,e<640)+34),a-s)),l=Math.min(Hr.width,o);return{x:e/2-l/2,y:c,width:l,height:s}}var Gr={perfect:{word:`PERFECT`,color:`#ffd24a`},good:{word:`GOOD`,color:`#7dffa8`},early:{word:`EARLY`,color:`#8fc3ff`},late:{word:`LATE`,color:`#ffad5c`},wrong:{word:`WRONG SIDE`,color:`#ff6b6b`}},Kr=44,qr=64,Jr=[``,`1st`,`2nd`,`3rd`],Yr={get_up_left:`←`,get_up_right:`→`},Xr={plain:{ring:`#ffffff`,disc:`#16233a`,arrow:`#fff4cf`},good:{ring:`#7dffa8`,disc:`#1d6a3f`,arrow:`#e4ffee`},perfect:{ring:`#ffd24a`,disc:`#7a5a08`,arrow:`#fff8dc`}},Zr=[6,7],Qr=[3,3],$r=[];function ei(e,t,n,r){e.beginPath(),e.arc(t,n,r,0,Math.PI*2)}function ti(e,t,n,r){let{x:i,y:a,width:o,height:s}=t,c=s/Hr.height,l=e=>a+e*c,u=a+s-40,d=l(52),f=e=>Math.min(c,(e-d)/2/108),p=f(u-26),m=o-16-(28+216*p+54*p+16)>=150,h=m?u-26:u-54,g=m?p:f(h),_=n.verdict===null?1/0:n.nowMs-n.verdict.atMs,v=_<1100?n.verdict:null,y=v===null?null:Gr[v.detail];e.save(),e.fillStyle=`rgba(3,6,12,0.88)`,e.fillRect(i,a,o,s),e.strokeStyle=r&&y!==null&&_<220?y.color:`rgba(246,213,122,0.5)`,e.lineWidth=2,e.strokeRect(i+2,a+2,o-4,s-4),e.textAlign=`left`,e.fillStyle=`#ffd77a`,n.count>=1?(e.font=`800 13px Inter, system-ui, sans-serif`,e.fillText(`COUNT`,i+18,l(36)),e.font=`900 ${Math.round(40*Math.max(.75,c))}px Inter, system-ui, sans-serif`,e.fillText(String(n.count),i+76,l(42))):(e.font=`900 ${Math.round(32*Math.max(.75,c))}px Inter, system-ui, sans-serif`,e.fillText(`GET UP!`,i+18,l(42)));for(let t=1;t<=10;t+=1){ei(e,i+o-22-(10-t)*14,l(24),5);let r=t===10?`#ff6b6b`:`#ffd77a`;t<=n.count?(e.fillStyle=r,e.fill()):(e.strokeStyle=t===10?r:`rgba(210,220,235,0.55)`,e.lineWidth=1.5,e.stroke())}e.textAlign=`right`,e.fillStyle=`#aebbd0`,e.font=`700 11px Inter, system-ui, sans-serif`,e.fillText(n.count>=10?`TEN`:`${10-n.count} LEFT TO TEN`,i+o-16,l(46));let b=Kr*g,x=qr*g,S=m?i+28+b+x:i+o/2-26*g,C=(d+h)/2,w=x/te,T=n.prompt,E=``,D=`#c8d3e6`,O=!1;if(e.textAlign=`center`,n.risen||T===null)ei(e,S,C,b),e.fillStyle=n.risen?`#1d6a3f`:`#1a2130`,e.fill(),e.fillStyle=n.risen?`#7dffa8`:`#6f7d94`,e.font=`900 ${Math.round(30*g)}px Inter, system-ui, sans-serif`,e.fillText(n.risen?`UP`:`–`,S,C+11*g),E=n.risen?`ON YOUR FEET`:`NO MORE PROMPTS`,D=n.risen?`#7dffa8`:`#c8d3e6`;else{let t=T.beat-n.pressTick,r=M.zoneTicks+.5,i=n.pressTick=-r-M.lateTicks&&(e.lineWidth=Math.max(3,5*g),e.strokeStyle=a.ring,ei(e,S,C,Math.max(4,b+Math.min(te,t)*w)),e.stroke(),E=O?`NOW`:t>0?`WAIT FOR IT`:`TOO LATE`,D=O?a.ring:t>0?`#eaf1ff`:`#ffad5c`),T.next!==null){let t=S+b+x+36*g;e.globalAlpha=.5,e.setLineDash(Qr),e.lineWidth=1.5,e.strokeStyle=`#aebbd0`,ei(e,t,C,18*g),e.stroke(),e.setLineDash($r),e.fillStyle=`#aebbd0`,e.font=`700 ${Math.round(22*g)}px Inter, system-ui, sans-serif`,e.fillText(Yr[T.next],t,C+8*g),e.font=`700 10px Inter, system-ui, sans-serif`,e.fillText(`NEXT`,t,C+18*g+12),e.globalAlpha=1}}let k=m?S+b+x+54*g+16:i+16,ee=i+o-16-k,A=k+ee/2,j=v===null?``:v.amount===0?`no score`:`${v.amount>0?`+`:`−`}${Math.abs(v.amount)}`;if(y!==null&&!(O&&_>200)){let t=r&&_<160?1+.2*(1-_/160):1;e.save(),e.translate(A,m?C:u-30),e.scale(t,t),e.fillStyle=y.color,Ni(e,m?y.word:`${y.word} ${j}`,0,0,ee,900,m?32:26,13),e.restore(),m&&(e.fillStyle=y.color,e.font=`800 20px Inter, system-ui, sans-serif`,e.fillText(j,A,C+28))}else E!==``&&(e.fillStyle=D,Ni(e,E,A,m?C+10:u-30,ee,900,m?28:24,12));let ne=T?.side??null,re=n.risen?`Up before ten: take the count, then box`:ne===null?`The count runs on to ten`:`${n.touch?`Tap ${ze[ne]}`:`Press ${Ae[ne]}`} as the ring closes · one press a count`;e.fillStyle=`#eaf1ff`,Ni(e,re,i+o/2,u,o-32,800,20,11);let ie=Math.max(1,n.required),N=Math.max(0,Math.min(ie,n.meter)),ae=Math.max(0,ie-n.meter),oe=v!==null&&v.amount>0?v.amount:0,se=v!==null&&v.amount<0?-v.amount:0,ce=Math.min(24,(o-40-96)/ie);e.fillStyle=`rgba(2,4,9,0.9)`,e.fillRect(i+16,a+s-33,ce*ie+2,16);for(let t=0;t=N-oe?`#ffd24a`:`#3ccf78`:t0?` + head damage ${ue}`:``} · PERFECT counts ${M.perfect}`;e.textAlign=`left`,e.fillStyle=`#93a3bd`,e.font=`600 10px Inter, system-ui, sans-serif`,e.fillText(Yn(e,de,o-32),i+16,a+s-6),e.restore()}function ni(e,t,n,r){let i=t.height===Nr,a=t.x+t.width/2;e.fillStyle=`rgba(3,6,12,0.88)`,e.fillRect(t.x,t.y,t.width,t.height),e.strokeStyle=`rgba(246,213,122,0.45)`,e.lineWidth=1.5,e.strokeRect(t.x+2,t.y+2,t.width-4,t.height-4),e.textAlign=`center`,e.fillStyle=`#ffd77a`,Ni(e,n,a,t.y+(i?22:34),t.width-24,800,i?17:22,12),e.fillStyle=`#c8d3e6`,e.font=`600 ${i?11:12}px Inter, system-ui, sans-serif`,e.fillText(Yn(e,r,t.width-24),a,t.y+(i?39:58))}var ri=class{fightTicks=null;round=0;ticks(e){return e.round_number!==this.round&&(this.round=e.round_number,this.fightTicks=null),e.phase===`fight`&&(this.fightTicks=e.phase_ticks_remaining),(e.phase===`knockdown`||e.phase===`foul_recovery`||e.phase===`referee_down`||e.phase===`finish`||e.phase===`complete`)&&this.fightTicks!==null?this.fightTicks:e.phase_ticks_remaining}},ii=()=>({thrown:0,landed:0,jabsThrown:0,jabsLanded:0});function ai(e,t){return e.action_id!==null&&t.some(t=>(t.kind===`block`||t.kind===`perfect_block`)&&t.tick===e.tick&&t.action_id===e.action_id&&t.actor_id===e.target_id)}var oi=class{stats=new Map;totals=new Map;record(e,t=[]){if(e.kind===`bell`)e.detail===`round_start`&&this.stats.clear();else if(e.actor_id!==null){if(e.kind===`punch_start`){let t=+(e.detail.split(`:`)[1]===`jab`);for(let n of[this.entry(this.stats,e.actor_id),this.entry(this.totals,e.actor_id)])n.thrown+=1,n.jabsThrown+=t}else if((e.kind===`hit`||e.kind===`counter_hit`)&&!ai(e,t)){let t=+(e.detail.split(`:`)[0]===`jab`);for(let n of[this.entry(this.stats,e.actor_id),this.entry(this.totals,e.actor_id)])n.landed+=1,n.jabsLanded+=t}}}get(e){return this.stats.get(e)??ii()}total(e){return this.totals.get(e)??ii()}entry(e,t){let n=e.get(t);return n===void 0&&(n=ii(),e.set(t,n)),n}};function si(e){let t=e.method.replaceAll(`_`,` `).toUpperCase();if(e.method!==`decision`&&e.method!==`draw`)return t;let n=0,r=0,i=0;for(let t of e.scorecards){let e=Jn(t.player_one),a=Jn(t.player_two);e>a?n+=1:a>e?r+=1:i+=1}let a=e.scorecards.length;return a===0?t:e.method===`draw`?i===a?`UNANIMOUS DRAW`:n===r?`SPLIT DRAW`:`MAJORITY DRAW`:Math.max(n,r)===a?`UNANIMOUS DECISION`:i>0?`MAJORITY DECISION`:`SPLIT DECISION`}var ci=new Set([`ko`,`flash_ko`,`tko`,`death`]),li=3.6,ui=2.4;function di(e){return e===null?0:ci.has(e.method)?li:e.method===`disqualification`?ui:0}var fi=(e,t)=>Math.max(e*.16,(t?112:56)+40),pi=(e,t)=>e!==null&&e>=(t?100:120),mi=`FINISH HIM!`,hi=`Impact, "Arial Black", Inter, system-ui, sans-serif`,gi=2.2,_i=.82,vi={name:15,nameGap:24,bar:10,foot:42},yi={name:11,nameGap:15,bar:6,foot:26},bi=28,xi=160;function Si(e,t,n=!1){let r=e<640?118:60,i=Math.round(Math.min(120,t*.17,(e-32)/5)),a=(e,t,n,r,i)=>{let a=i+Math.round(e*_i);return{centre:n,maxWidth:r,size:e,baseline:a,bottom:a+(t?yi:vi).foot,dense:t}};if(!n)return a(i,!1,e/2,e-32,r);let o=Rr(e,t),s=t-o.bottom-o.height;for(let n of[!1,!0]){let c=null;for(let l of o.moves>0?[s,t-o.bottom-o.moves]:[s]){let o=Math.min(i,Math.floor((l-r-(n?yi:vi).foot)/_i));if(o=xi&&(c={...s,maxWidth:e-2*u})}if(c!==null)return c}let c=Vr(e,t,!0);return a(Math.max(12,Math.min(i,Math.floor((c.height-yi.foot-4)/_i))),!0,c.x+c.width/2,c.width,c.y+2)}function Ci(e,t=null){let[n,r]=e;return t!==null&&(n.player_id===t||r.player_id===t)?n.player_id===t?n:r:n.poise===0==(r.poise===0)?n.knockdowns===r.knockdowns?n.stunned_ticks===r.stunned_ticks?null:n.stunned_ticks>r.stunned_ticks?n:r:n.knockdowns>r.knockdowns?n:r:n.poise===0?n:r}var wi=[`jab`,`straight`,`hook`,`uppercut`],Ti=wi.map(e=>e.toUpperCase()),Ei=[`head`,`body`].map(e=>({target:e.toUpperCase(),fatalities:wi.map(t=>dt(ft(e,t)))})),Di=14,Oi=.4,ki=[0,0,0,0];function Ai(e,t,n,r,i){e.save(),e.textAlign=`left`;for(let a of[!1,!0])for(let o=10;o>=8;--o){let s=o+5,c=(a?3:2)*s+6;if(n+c>i)continue;e.font=`700 ${o}px Inter, system-ui, sans-serif`;let l=o*.4,u=Math.max(...Ei.map(t=>e.measureText(t.target).width))+10,d=12+u+42;for(let[t,n]of Ti.entries()){let r=e.measureText(n).width,i=a?r:0;for(let n of Ei)i=Math.max(i,e.measureText(n.fatalities[t]).width+(a?0:r+l));ki[t]=i,d+=i}if(d>r)continue;let f=t-d/2;e.fillStyle=`rgba(3,6,12,0.78)`,e.fillRect(f,n,d,c);let p=n+2+o;if(a){e.fillStyle=`#f6d57a`;let t=f+6+u;for(let[n,r]of Ti.entries())e.fillText(r,t,p),t+=ki[n]+Di;p+=s}for(let t of Ei){e.fillStyle=Zn,e.fillText(t.target,f+6,p);let n=f+6+u;for(let[r,i]of t.fatalities.entries()){let t=Ti[r];a||(e.fillStyle=`#f6d57a`,e.fillText(t,n,p)),e.fillStyle=`#f5f8ff`,e.fillText(i,a?n:n+e.measureText(t).width+l,p),n+=ki[r]+Di}p+=s}e.restore();return}e.restore()}function ji(e,t,n,r,i,a){let o=i===null?0:.5-.5*Math.cos(i*gi*Math.PI*2),s=t.dense?yi:vi;e.save(),e.textAlign=`center`,e.font=`italic 900 ${t.size}px ${hi}`;let c=e.measureText(mi).width,l=Math.min(t.size,t.size*t.maxWidth/(c*1.1)),u=l*(1+.08*o);e.font=`italic 900 ${u}px ${hi}`,e.lineJoin=`round`,e.lineWidth=Math.max(3,u*.12),e.strokeStyle=`rgba(10,0,0,0.92)`,e.shadowColor=`rgba(255,24,12,0.9)`,e.shadowBlur=14+24*o,e.strokeText(mi,t.centre,t.baseline),e.shadowBlur=0;let d=e.createLinearGradient(0,t.baseline-u*.8,0,t.baseline);d.addColorStop(0,`#ff5540`),d.addColorStop(.5,`#d8160d`),d.addColorStop(1,`#7d0705`),e.fillStyle=d,e.fillText(mi,t.centre,t.baseline),e.font=`800 ${s.name}px Inter, system-ui, sans-serif`,e.lineWidth=t.dense?3:4;let f=`ONE MORE PUNCH KILLS`;if(n!==null){let r=e.measureText(`${n} IS DEAD ON HIS FEET`).width<=t.maxWidth?` IS DEAD ON HIS FEET`:` IS DONE FOR`;f=`${Yn(e,n,Math.max(0,t.maxWidth-e.measureText(r).width))}${r}`}e.strokeText(f,t.centre,t.baseline+s.nameGap),e.fillStyle=`#ffe8e3`,e.fillText(f,t.centre,t.baseline+s.nameGap);let p=Math.min(420,t.maxWidth),m=t.bottom-s.bar-2,h=p*Math.max(0,Math.min(1,r));e.fillStyle=`rgba(2,4,9,0.85)`,e.fillRect(t.centre-p/2-1,m-1,p+2,s.bar+2),e.fillStyle=`#e0180f`,e.fillRect(t.centre-h/2,m,h,s.bar),e.strokeStyle=`rgba(255,112,102,0.85)`,e.lineWidth=1,e.strokeRect(t.centre-p/2-1.5,m-1.5,p+3,s.bar+3),e.restore(),a!==null&&Ai(e,t.centre,t.bottom+8,Math.min(t.maxWidth,c*l/t.size),a)}function Mi(e,t,n,r,i,a,o,s,c=30,l=null,u=null,d=null,f=null,p=null,g=null,_=null,v=!1,y=!1,b=null,x=null,S=!0,C=null){e.save();let w=Dr(t,n);e.scale(w,w),t/=w,n/=w,e.textBaseline=`alphabetic`;let T=e=>{let t=i[e.player_id];return t===void 0||g===null?null:g(t)},E=t<640,D=E?(t-56)/2:Math.min(300,t*.38,t/2-kr/2-8-24),O=n-84,k=S?r.tick/c:null,ee=Tr(t,n,v,r.phase===`rest`&&r.fighters.some(e=>e.player_id===a));o===null&&r.fighters.forEach((o,s)=>{let c=s===1,l=c?t-24-D:24,u=i[o.player_id],d=[{label:`${E?`STA`:`STAMINA`} ${Math.round(o.stamina)}`,value:o.stamina,maximum:o.maximum_stamina,from:`#ffe08a`,to:`#d9a53a`},{label:`${E?`HP`:`HEALTH`} ${Math.round(o.conditioning)}`,value:o.conditioning,maximum:qn,from:`#ff8a7a`,to:`#b02a20`},{label:o.guard_broken?`GUARD BROKEN`:`GUARD`,value:o.guard,maximum:700,from:`#9ec7ff`,to:`#3d6fb8`,spentBelow:o.guard_broken?h:m},{label:`POISE ${Math.round(o.poise)}`,value:o.poise,maximum:600,from:`#e8c890`,to:`#8a6a34`}],f=s===0?`#3d6fb8`:`#b02a20`,p=O-12,g=tr(o.trauma,o.injuries),_=Er(o.blood_volume,k),b=r.phase===`fight`||r.phase===`countdown`||r.phase===`finish`&&Ci(r.fighters,x)?.player_id!==o.player_id,S=y&&o.player_id===a&&b,C=ee?3:2,w=Math.min(64,(D-28-C*12)/C),A=w+12,te=c?l+D+4-C*A:l+20,j=c?l+D-8:te,M=te+(c?C-2:0)*A,ne=0;if(ee){let n=w<40,r=n&&_.label===`BLEEDING OUT`;Qn(e,M,p,w,n?{...d[2],label:r?``:`GUARD`}:d[2],c),Qn(e,M+A,p,w,n?{...d[3],label:r?``:`POISE`}:d[3],c),Qn(e,c?te:te+2*A,p,w,n?{..._,label:r?``:`BLOOD`}:_,c),r&&$n(e,j,p,Sr,c,!1,_.alarm);let i=c?te-12:te+3*A;ne=yr(e,i,p-5,c?i-t/2-4:t/2-4-i,g,o.injuries,c)}else{Qn(e,M,p,w,d[2],c),Qn(e,M+A,p,w,d[3],c);let t=2*w+12;Qn(e,te,p-Cr,t,_,c);let n=p-Cr-wr;g!==null&&(n-=18,ar(e,j,n,g,c)),n=vr(e,j,n-4,E?D-24:t,o.injuries,E?lr.compact:lr.wide,c),S&&ir(e,j,n-18,c)}Ar(e,l,O,D,u?.name??`Fighter`,Or(u,o,E,ne),d.slice(0,2),c,f,E?void 0:T(o),ee&&S),E&&!(v&&t>n)&&er(e,t/2+(c?1:-1)*112,83,20,T(o),u?.name??`Fighter`,f)});let A=Math.floor((p??r.phase_ticks_remaining)/c),te=`${Math.floor(A/60)}:${String(A%60).padStart(2,`0`)}`,j=r.phase===`knockdown`&&u===null&&(C?.risen===!0||r.fighters.some(e=>e.player_id===a&&e.is_downed))?Wr(t,n,v):null,M=j!==null&&E&&j.y<112;o===null&&!M&&jr(e,t/2,E?54:n-84,te,`ROUND ${r.round_number}`,r.phase===`complete`?`FINAL`:r.phase.replace(`_`,` `).toUpperCase());let ne=d===null?0:Math.round(d);if(ne>=100&&!E&&o===null&&!(v&&u!==null)&&r.fighters.some(e=>e.player_id===a)&&(e.save(),e.textAlign=v?`left`:`right`,e.font=`700 11px ui-monospace, monospace`,e.fillStyle=ne<200?`rgba(240,200,110,0.9)`:`rgba(255,110,100,0.95)`,e.fillText(`SLOW CONNECTION ${ne} ms`,v?24:t-24,76),e.restore()),u!==null){let t=E?120:64;e.save(),e.fillStyle=`rgba(3,6,12,0.82)`,e.fillRect(24,t,196,34),e.fillStyle=`#ff3b3b`,e.beginPath(),e.arc(42,t+17,6,0,Math.PI*2),e.fill(),e.fillStyle=`#f6f7fb`,e.font=`800 14px Inter, system-ui, sans-serif`,e.textAlign=`left`,e.fillText(u,56,t+22),e.restore()}f!==null&&r.phase===`fight`&&(e.save(),e.textAlign=`center`,e.font=`900 46px Inter, system-ui, sans-serif`,e.lineWidth=6,e.strokeStyle=`rgba(0,0,0,0.75)`,e.strokeText(f,t/2,n*Pr),e.fillStyle=`#f6d57a`,e.fillText(f,t/2,n*Pr),e.restore()),r.phase===`countdown`&&ni(e,Vr(t,n,v),`ROUND ${r.round_number}`,`Touch gloves. Protect yourself at all times.`);let re=fi(n,E);if(r.phase===`knockdown`&&u===null){let n=r.fighters.find(e=>e.is_downed),a=n??r.fighters.find(e=>e.player_id===_),o=a===void 0?null:(i[a.player_id]?.name??`Fighter`).toUpperCase();e.save(),e.textAlign=`center`,e.font=`900 44px Inter, system-ui, sans-serif`,e.lineWidth=6,e.strokeStyle=`rgba(0,0,0,0.75)`,(j===null||j.y>=re+6)&&(e.strokeText(`KNOCKDOWN`,t/2,re),e.fillStyle=`#ff4d4d`,e.fillText(`KNOCKDOWN`,t/2,re)),e.font=`700 15px Inter, system-ui, sans-serif`,e.fillStyle=`#e6ecf7`;let s=n===void 0?` BEAT THE COUNT`:` IS DOWN`,c=o===null?`STANDING EIGHT`:`${Yn(e,o,Math.min(t*.5,t-32-e.measureText(s).width))}${s}`;(j===null||j.y>=re+30)&&e.fillText(c,t/2,re+24),e.restore()}if(r.phase===`knockdown`&&u===null){let i=r.fighters.find(e=>e.player_id===a),o=Math.max(...r.fighters.map(e=>e.get_up_count));i?.is_downed!==!0&&C?.risen!==!0?o>=1&&(e.save(),e.textAlign=`center`,e.font=`900 36px Inter, system-ui, sans-serif`,e.lineWidth=5,e.strokeStyle=`rgba(0,0,0,0.75)`,e.strokeText(`COUNT ${o}`,t/2,re+64),e.fillStyle=`#ffd77a`,e.fillText(`COUNT ${o}`,t/2,re+64),e.restore()):i!==void 0&&ti(e,j??Wr(t,n,v),C??Se(i,r.tick,0,null,null,v,!1),S)}if(r.phase===`finish`&&o===null&&u===null){let o=Ci(r.fighters,x),s=Si(t,n,v),c=o!==null&&o.player_id!==a&&r.fighters.some(e=>e.player_id===a);ji(e,s,o===null?null:(i[o.player_id]?.name??`Fighter`).toUpperCase(),r.phase_ticks_remaining/it,k,c&&!v?n*Oi:null)}if(r.phase===`foul_recovery`){let a=r.fighters.find(e=>e.is_foul_recovery_target);ni(e,Vr(t,n,v),`FOUL RECOVERY`,`${i[a?.player_id??``]?.name??`Fighter`} is recovering`)}if(r.phase===`rest`){let i=r.fighters.map((e,t)=>({corner:t===0?`Blue`:`Red`,stats:l?.get(e.player_id)??ii()})).filter(({stats:e})=>e.thrown>0||e.landed>0).map(({corner:e,stats:t})=>`${e} ${t.landed} of ${t.thrown}`).join(` · `),a=rr(r.fighters);ni(e,Vr(t,n,v),`CORNERS · RECOVER`,a??(i.length>0?`Landed this round: ${i}`:`Conditioning governs recovery`))}if(s>0){let r=Math.min(320,t-24),i=Fr(n);ni(e,v?Vr(t,n,!0):{x:t/2-r/2,y:n/2-i/2,width:r,height:i},`OPPONENT RECONNECTING · ${Math.ceil(s/1e3)}s`,`The bout is paused`)}if(o!==null){let a=r.fighters.map(e=>l?.total(e.player_id)??ii());Ui(e,t,n,Ii(o,r.fighters,i,a,b),!0,[T(r.fighters[0]),T(r.fighters[1])])}e.restore()}function Ni(e,t,n,r,i,a,o,s,c=`Inter, system-ui, sans-serif`){e.font=`${a} ${Xn(n=>(e.font=`${a} ${n}px ${c}`,e.measureText(t).width),i,o,s)}px ${c}`,e.fillText(Yn(e,t,i),n,r)}var Pi={ko:`KNOCKOUT`,flash_ko:`FLASH KNOCKOUT`,tko:`TECHNICAL KNOCKOUT`,disqualification:`DISQUALIFICATION`,forfeit:`FORFEIT`},Fi=(e,t)=>e>t?0:t>e?1:null;function Ii(e,t,n,r,i=null){let a=t.map(e=>n[e.player_id]?.name??`Fighter`),o=e.winner_id===null?null:t[0].player_id===e.winner_id?0:t[1].player_id===e.winner_id?1:null,s=e.method===`draw`&&i!==null,c=[],l=[];if(e.method===`decision`||e.method===`draw`&&!s)for(let t of e.scorecards){let e=Jn(t.player_one),n=Jn(t.player_two);l.push({label:t.judge.toUpperCase(),values:[String(e),String(n)],lead:Fi(e,n)})}let u=[t[1].knockdowns,t[0].knockdowns];(u[0]>0||u[1]>0)&&c.push({label:`KNOCKDOWNS`,values:[String(u[0]),String(u[1])],lead:Fi(u[0],u[1])});let[d,f]=t.map(t=>e.punches?.[t.player_id]),p=e=>({thrown:e.thrown,landed:e.landed,jabsThrown:e.jabs_thrown,jabsLanded:e.jabs_landed}),m=d!==void 0&&f!==void 0?[p(d),p(f)]:r;if(m[0].thrown>0||m[1].thrown>0){let e=(e,t)=>t>0?`${Math.min(e,t)}/${t} (${Math.round(Math.min(e,t)/t*100)}%)`:`0/0`,t=m.map(e=>({landed:e.landed-e.jabsLanded,thrown:e.thrown-e.jabsThrown}));c.push({label:`TOTAL PUNCHES`,values:[e(m[0].landed,m[0].thrown),e(m[1].landed,m[1].thrown)],lead:Fi(m[0].landed,m[1].landed)}),c.push({label:`JABS`,values:[e(m[0].jabsLanded,m[0].jabsThrown),e(m[1].jabsLanded,m[1].jabsThrown)],lead:Fi(m[0].jabsLanded,m[1].jabsLanded)}),c.push({label:`POWER PUNCHES`,values:[e(t[0].landed,t[0].thrown),e(t[1].landed,t[1].thrown)],lead:Fi(t[0].landed,t[1].landed)})}let[h,g]=t.map(t=>e.ratings[t.player_id]);if(t.some(e=>n[e.player_id]?.cpu===!0))c.push({label:`RATING`,values:[`Unrated`,`Unrated`],lead:null});else if(h!==void 0&&g!==void 0){let e=e=>`${e.after} (${e.after>=e.before?`+`:`−`}${Math.abs(e.after-e.before)})`;c.push({label:`RATING`,values:[e(h),e(g)],lead:null,news:[h.after>=h.before,g.after>=g.before]})}return{headline:e.method===`death`?i!==null&&mt(i)!==null?`FATALITY`:`DEATH`:s?`DOUBLE DEATH`:Pi[e.method]??si(e),detail:i!==null&&(e.method===`death`||s)?`${ht(i)} · ROUND ${e.round}`:`ROUND ${e.round}`,verdict:s?`NO SURVIVORS`:o===null?e.winner_id===null?`DRAW`:`${(n[e.winner_id]?.name??`Winner`).toUpperCase()} WINS`:`${a[o].toUpperCase()} WINS`,deadly:e.method===`death`||s,winnerSeat:o,names:a,judges:l,rows:c}}var Li=[`#4f86d9`,`#d9483c`],Ri=14;function zi(e,t,n,r){let i=Dr(e,t),a=Hi(e/i,t/i,n,r);return i===1?a:{...a,x:a.x*i,y:a.y*i,width:a.width*i,height:a.height*i,rowHeight:a.rowHeight*i,verdictHeight:a.verdictHeight*i,judgesHeight:a.judgesHeight*i}}var Bi=new Set([`KNOCKDOWNS`,`TOTAL PUNCHES`,`RATING`]),Vi=(e,t)=>t?e.rows.filter(e=>Bi.has(e.label)):e.rows;function Hi(e,t,n,r){let i=t<480,a=e>=900||e>=640&&i,o=Math.min(e-24,a?980:720),s=r?62:Ri,c=i?72:112,l=n.judges.length===0?0:i?36:52,u=c+l,d=Vi(n,i).length+1,f=t-(e<640?118:70)-14-Ri-s-(a?0:u),p=Math.max(16,Math.min(i?20:28,f/d)),m=Ri+(a?Math.max(u,d*p):u+d*p)+s;return{x:(e-o)/2,y:t-14-m,width:o,height:m,wide:a,dense:i,rowHeight:p,verdictHeight:c,judgesHeight:l}}function Ui(e,t,n,r,i,a){let o=Hi(t,n,r,i),{x:s,y:c}=o;e.fillStyle=`rgba(3,6,12,0.9)`,e.fillRect(s,c,o.width,o.height),e.strokeStyle=r.deadly?`rgba(224,36,26,0.8)`:`rgba(246,213,122,0.55)`,e.lineWidth=2,e.strokeRect(s+1,c+1,o.width-2,o.height-2),e.textAlign=`center`;let l=(o.wide?o.width*.42:o.width)-32,u=o.wide?s+o.width*.21+4:t/2,d=c+Ri,f=o.verdictHeight/112;e.fillStyle=r.deadly?`#ff3a2c`:`#f6d57a`,Ni(e,r.headline,u,d+34*f,l,800,(o.wide||t>=640?32:28)*f,14),e.fillStyle=`#aebbd0`,Ni(e,r.detail,u,d+56*f,l,700,13*f,9),e.fillStyle=r.winnerSeat===null?`#f6f7fb`:Li[r.winnerSeat],Ni(e,r.verdict,u,d+92*f,l,800,25*f,12);let p=l/Math.max(1,r.judges.length),m=d+o.verdictHeight;r.judges.forEach((t,n)=>{let r=u-l/2+p*(n+.5);e.fillStyle=`rgba(255,255,255,0.06)`,e.fillRect(r-p/2+3,m,p-6,o.judgesHeight-8),e.fillStyle=`#8fa3c8`,Ni(e,t.label,r,m+o.judgesHeight*.3,p-14,700,10,7),e.fillStyle=`#f6f7fb`,Ni(e,`${t.values[0]} – ${t.values[1]}`,r,m+o.judgesHeight*.7,p-14,800,o.dense?14:17,10)});let h=o.wide?s+o.width*.42:s+12,g=s+o.width-12-h,_=o.wide?d:m+o.judgesHeight,v=g*.36,y=(g-v)/2,b=[h+y/2,h+g-y/2],x=o.rowHeight,S=Math.min(16,x*.6),C=_+x*.7;e.fillStyle=`rgba(255,255,255,0.06)`,e.fillRect(h,_,g,x);let w=Math.max(6,x/2-2);for(let t of[0,1]){let n=t===0?-1:1;e.fillStyle=Li[t],e.fillRect(t===0?h:h+g-4,_,4,x),er(e,b[t]+n*(y/2-10-w),_+x/2,w,a[t],r.names[t],Li[t]),e.textAlign=`center`,e.fillStyle=`#f6f7fb`,Ni(e,r.names[t],b[t]-n*(w+3+v/4),C,y+v/2-22-w*2,800,S,9)}for(let t of Vi(r,o.dense)){C+=x,e.fillStyle=`#8fa3c8`,Ni(e,t.label,h+g/2,C,v,700,Math.min(12,S),8);for(let n of[0,1])e.fillStyle=t.news===void 0?t.lead===n?`#f6f7fb`:`#aebbd0`:t.news[n]?`#55df9b`:`#ff7b74`,Ni(e,t.values[n],b[n],C,y-16,t.lead===n?800:600,S,9)}}var Wi=6,Gi=150;function Ki(){return typeof window<`u`&&typeof window.speechSynthesis==`object`&&window.speechSynthesis!==null&&typeof window.SpeechSynthesisUtterance==`function`}function qi(e){let t=e.filter(e=>e.localService&&e.lang.toLowerCase().startsWith(`en`));return t.find(e=>e.default)??t[0]??null}var Ji=class{settings;synthesis;Utterance;queue=[];speaking=null;destroyed=!1;grave=!1;voice=null;voicesListed=!1;onVoicesChanged=null;cutoff=null;pendingShout=null;cutOff=null;shoutTimer=null;voicesChanged=()=>{this.listVoices(),this.voice===null&&this.cancel(),this.onVoicesChanged?.()};visibility=()=>{document.hidden&&this.cancel()};constructor(e,t=Ki()?window.speechSynthesis:null,n=Ki()?window.SpeechSynthesisUtterance:null){this.settings=e,this.synthesis=t,this.Utterance=n,this.listVoices(),t?.addEventListener?.(`voiceschanged`,this.voicesChanged),document.addEventListener(`visibilitychange`,this.visibility)}get supported(){return this.synthesis!==null&&this.Utterance!==null}get hasVoice(){return this.supported&&(this.voice!==null||!this.voicesListed)}speak(e){if(!this.supported||this.destroyed||document.hidden)return;let t=this.settings();!t.announcer||t.volume<=0||(this.voice===null&&this.listVoices(),this.voice!==null&&(this.queue.push(...e),this.queue.length>Wi&&this.queue.splice(0,this.queue.length-Wi),this.speaking===null&&this.pendingShout===null&&this.next()))}shout(e){let t=this.speaking??this.cutOff;if(this.cancel(),t===null){this.grave=!0,this.speak([e]),this.grave=!1;return}let n=()=>{this.pendingShout===n&&(this.clearShout(),t.onend=null,t.onerror=null,this.queue.unshift(e),this.grave=!0,this.next(),this.grave=!1)};this.pendingShout=n,this.cutOff=t,t.onend=n,t.onerror=n,this.shoutTimer=window.setTimeout(n,Gi)}settingsChanged(){let e=this.settings();(!e.announcer||e.volume<=0)&&this.cancel()}finishLine(e){this.queue.length=0,this.clearCutoff();let t=this.speaking;t!==null&&(this.cutoff=window.setTimeout(()=>{this.cutoff=null,this.speaking===t&&this.cancel()},e))}cancel(){this.queue.length=0,this.clearCutoff(),this.clearShout();let e=this.speaking;this.speaking=null,e!==null&&(e.onend=null,e.onerror=null,this.synthesis?.cancel())}destroy(){this.destroyed=!0,this.synthesis?.removeEventListener?.(`voiceschanged`,this.voicesChanged),document.removeEventListener(`visibilitychange`,this.visibility),this.onVoicesChanged=null,this.cancel()}clearCutoff(){this.cutoff!==null&&window.clearTimeout(this.cutoff),this.cutoff=null}clearShout(){this.shoutTimer!==null&&window.clearTimeout(this.shoutTimer),this.shoutTimer=null,this.pendingShout=null,this.cutOff=null}listVoices(){let e=this.synthesis?.getVoices()??[];e.length>0&&(this.voicesListed=!0),this.voice=qi(e)}next(){let e=this.synthesis,t=this.Utterance,n=this.voice,r=this.queue.shift();if(e===null||t===null||r===void 0)return;let i=this.settings();if(!i.announcer||i.volume<=0||n===null||document.hidden){this.queue.length=0;return}let a=new t(r);a.volume=Math.min(1,i.volume),a.rate=this.grave?.8:.96,a.pitch=this.grave?.3:.82,a.voice=n,a.lang=n.lang;let o=()=>{this.speaking===a&&(this.speaking=null,this.clearCutoff(),this.next())};a.onend=o,a.onerror=o,this.speaking=a,e.speak(a)}},Yi=[{name:`decapitation`,sampleRate:12e3,frames:7920,wav:`UklGRgQ+AABXQVZFZm10IBAAAAABAAEA4C4AAMBdAAACABAAZGF0YeA9AAAGAGAAd/9r/1b/Dv+d/kH+Of69/vL/gAGaAhUD9wKOAmICHwPSBLYGQ/pC+4r72/rQ+Sr5sPle+7X+MQM2BmQHHwfgBSEFpAU+CKkLYA649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QSMAwwC7f/q/ZD8vvtp+077vPsb/Xf+e/8IABsAAQAFAHUAOgFWApcDPQQzBPcDhgOUAjYBiv8S/gT9mvxP/Ej8TfxW/VP+Hv+a/9L/wv/V/w0AoQBbAWcCQgNxA1gDIgOlAt0BwgCE/3r+yf13/Vf9Uf19/SP+1/5m/7j/3f/l/wQAPwC+AHABEwKEAnICQwL7AXkBygDr/y//qf5t/l7+Xv5n/sf+Mf92/5//qP+j/77/AABnAOAAQAF7AWMBQgEJAacAMwDB/3j/WP9R/1j/Xf+J/8H/3f/g/+H/6f/8/x4ARQBjAG4AYwBSADoAIAAMAAQABwA=`}],Xi=`attached`,Zi=1e3,Qi=1001,$i=1002,ea=1003,ta=1004,na=1005,ra=1006,ia=1007,aa=1008,oa=1009,sa=1010,ca=1011,la=1012,ua=1013,da=1014,fa=1015,pa=1016,ma=1017,ha=1018,ga=1020,_a=35902,va=35899,ya=1021,ba=1022,xa=1023,Sa=1026,Ca=1027,wa=1028,Ta=1029,Ea=1030,Da=1031,Oa=1033,ka=33776,Aa=33777,ja=33778,Ma=33779,Na=35840,Pa=35841,Fa=35842,Ia=35843,La=36196,Ra=37492,za=37496,Ba=37488,Va=37489,Ha=37490,Ua=37491,Wa=37808,Ga=37809,Ka=37810,qa=37811,Ja=37812,Ya=37813,Xa=37814,Za=37815,Qa=37816,$a=37817,eo=37818,to=37819,no=37820,ro=37821,io=36492,ao=36494,oo=36495,so=36283,co=36284,lo=36285,uo=36286,fo=2300,po=2301,mo=2302,ho=2303,go=2400,_o=2401,vo=2402,yo=2500,bo=3200,xo=`srgb`,So=`srgb-linear`,Co=`linear`,wo=`srgb`,To=7680,Eo=35044,Do=35048,Oo=2e3;function ko(e){for(let t=e.length-1;t>=0;--t)if(e[t]>=65535)return!0;return!1}function Ao(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function jo(e){return document.createElementNS(`http://www.w3.org/1999/xhtml`,e)}function Mo(){let e=jo(`canvas`);return e.style.display=`block`,e}var No={};function Po(...e){let t=`THREE.`+e.shift();console.log(t,...e)}function Fo(e){let t=e[0];if(typeof t==`string`&&t.startsWith(`TSL:`)){let t=e[1];t&&t.isStackTrace?e[0]+=` `+t.getLocation():e[1]=`Stack trace not available. Enable "THREE.Node.captureStackTrace" to capture stack traces.`}return e}function Io(...e){e=Fo(e);let t=`THREE.`+e.shift();{let n=e[0];n&&n.isStackTrace?console.warn(n.getError(t)):console.warn(t,...e)}}function Lo(...e){e=Fo(e);let t=`THREE.`+e.shift();{let n=e[0];n&&n.isStackTrace?console.error(n.getError(t)):console.error(t,...e)}}function Ro(...e){let t=e.join(` `);t in No||(No[t]=!0,Io(...e))}function zo(e,t,n){return new Promise(function(r,i){function a(){switch(e.clientWaitSync(t,e.SYNC_FLUSH_COMMANDS_BIT,0)){case e.WAIT_FAILED:i();break;case e.TIMEOUT_EXPIRED:setTimeout(a,n);break;default:r()}}setTimeout(a,n)})}var Bo={0:1,2:6,4:7,3:5,1:0,6:2,7:4,5:3},Vo=class{addEventListener(e,t){this._listeners===void 0&&(this._listeners={});let n=this._listeners;n[e]===void 0&&(n[e]=[]),n[e].indexOf(t)===-1&&n[e].push(t)}hasEventListener(e,t){let n=this._listeners;return n!==void 0&&n[e]!==void 0&&n[e].indexOf(t)!==-1}removeEventListener(e,t){let n=this._listeners;if(n===void 0)return;let r=n[e];if(r!==void 0){let e=r.indexOf(t);e!==-1&&r.splice(e,1)}}dispatchEvent(e){let t=this._listeners;if(t===void 0)return;let n=t[e.type];if(n!==void 0){e.target=this;let t=n.slice(0);for(let n=0,r=t.length;n>8&255]+Ho[e>>16&255]+Ho[e>>24&255]+`-`+Ho[t&255]+Ho[t>>8&255]+`-`+Ho[t>>16&15|64]+Ho[t>>24&255]+`-`+Ho[n&63|128]+Ho[n>>8&255]+`-`+Ho[n>>16&255]+Ho[n>>24&255]+Ho[r&255]+Ho[r>>8&255]+Ho[r>>16&255]+Ho[r>>24&255]).toLowerCase()}function qo(e,t,n){return Math.max(t,Math.min(n,e))}function Jo(e,t){return(e%t+t)%t}function Yo(e,t,n,r,i){return r+(e-t)*(i-r)/(n-t)}function Xo(e,t,n){return e===t?0:(n-e)/(t-e)}function Zo(e,t,n){return(1-n)*e+n*t}function Qo(e,t,n,r){return Zo(e,t,1-Math.exp(-n*r))}function $o(e,t=1){return t-Math.abs(Jo(e,t*2)-t)}function es(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t),e*e*(3-2*e))}function ts(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t),e*e*e*(e*(e*6-15)+10))}function ns(e,t){return e+Math.floor(Math.random()*(t-e+1))}function rs(e,t){return e+Math.random()*(t-e)}function is(e){return e*(.5-Math.random())}function as(e){e!==void 0&&(Uo=e);let t=Uo+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}function os(e){return e*Wo}function ss(e){return e*Go}function cs(e){return e>0&&Number.isInteger(e)&&2**Math.round(Math.log2(e))===e}function ls(e){return 2**Math.ceil(Math.log(e)/Math.LN2)}function us(e){return 2**Math.floor(Math.log(e)/Math.LN2)}function ds(e,t,n,r,i){let a=Math.cos,o=Math.sin,s=a(n/2),c=o(n/2),l=a((t+r)/2),u=o((t+r)/2),d=a((t-r)/2),f=o((t-r)/2),p=a((r-t)/2),m=o((r-t)/2);switch(i){case`XYX`:e.set(s*u,c*d,c*f,s*l);break;case`YZY`:e.set(c*f,s*u,c*d,s*l);break;case`ZXZ`:e.set(c*d,c*f,s*u,s*l);break;case`XZX`:e.set(s*u,c*m,c*p,s*l);break;case`YXY`:e.set(c*p,s*u,c*m,s*l);break;case`ZYZ`:e.set(c*m,c*p,s*u,s*l);break;default:Io(`MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: `+i)}}function fs(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return e/4294967295;case Uint16Array:return e/65535;case Uint8Array:case Uint8ClampedArray:return e/255;case Int32Array:return Math.max(e/2147483647,-1);case Int16Array:return Math.max(e/32767,-1);case Int8Array:return Math.max(e/127,-1);default:throw Error(`THREE.MathUtils: Invalid component type.`)}}function ps(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return Math.round(e*4294967295);case Uint16Array:return Math.round(e*65535);case Uint8Array:case Uint8ClampedArray:return Math.round(e*255);case Int32Array:return Math.round(e*2147483647);case Int16Array:return Math.round(e*32767);case Int8Array:return Math.round(e*127);default:throw Error(`THREE.MathUtils: Invalid component type.`)}}var R={DEG2RAD:Wo,RAD2DEG:Go,generateUUID:Ko,clamp:qo,euclideanModulo:Jo,mapLinear:Yo,inverseLerp:Xo,lerp:Zo,damp:Qo,pingpong:$o,smoothstep:es,smootherstep:ts,randInt:ns,randFloat:rs,randFloatSpread:is,seededRandom:as,degToRad:os,radToDeg:ss,isPowerOfTwo:cs,ceilPowerOfTwo:ls,floorPowerOfTwo:us,setQuaternionFromProperEuler:ds,normalize:ps,denormalize:fs},z=class e{static{e.prototype.isVector2=!0}constructor(e=0,t=0){this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw Error(`THREE.Vector2: index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw Error(`THREE.Vector2: index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){let t=this.x,n=this.y,r=e.elements;return this.x=r[0]*t+r[3]*n+r[6],this.y=r[1]*t+r[4]*n+r[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=qo(this.x,e.x,t.x),this.y=qo(this.y,e.y,t.y),this}clampScalar(e,t){return this.x=qo(this.x,e,t),this.y=qo(this.y,e,t),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(qo(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){let t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;let n=this.dot(e)/t;return Math.acos(qo(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){let t=this.x-e.x,n=this.y-e.y;return t*t+n*n}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){let n=Math.cos(t),r=Math.sin(t),i=this.x-e.x,a=this.y-e.y;return this.x=i*n-a*r+e.x,this.y=i*r+a*n+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}},ms=class{constructor(e=0,t=0,n=0,r=1){this.isQuaternion=!0,this._x=e,this._y=t,this._z=n,this._w=r}static slerpFlat(e,t,n,r,i,a,o){let s=n[r+0],c=n[r+1],l=n[r+2],u=n[r+3],d=i[a+0],f=i[a+1],p=i[a+2],m=i[a+3];if(u!==m||s!==d||c!==f||l!==p){let e=s*d+c*f+l*p+u*m;e<0&&(d=-d,f=-f,p=-p,m=-m,e=-e);let t=1-o;if(e<.9995){let n=Math.acos(e),r=Math.sin(n);t=Math.sin(t*n)/r,o=Math.sin(o*n)/r,s=s*t+d*o,c=c*t+f*o,l=l*t+p*o,u=u*t+m*o}else{s=s*t+d*o,c=c*t+f*o,l=l*t+p*o,u=u*t+m*o;let e=1/Math.sqrt(s*s+c*c+l*l+u*u);s*=e,c*=e,l*=e,u*=e}}e[t]=s,e[t+1]=c,e[t+2]=l,e[t+3]=u}static multiplyQuaternionsFlat(e,t,n,r,i,a){let o=n[r],s=n[r+1],c=n[r+2],l=n[r+3],u=i[a],d=i[a+1],f=i[a+2],p=i[a+3];return e[t]=o*p+l*u+s*f-c*d,e[t+1]=s*p+l*d+c*u-o*f,e[t+2]=c*p+l*f+o*d-s*u,e[t+3]=l*p-o*u-s*d-c*f,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,n,r){return this._x=e,this._y=t,this._z=n,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t=!0){let n=e._x,r=e._y,i=e._z,a=e._order,o=Math.cos,s=Math.sin,c=o(n/2),l=o(r/2),u=o(i/2),d=s(n/2),f=s(r/2),p=s(i/2);switch(a){case`XYZ`:this._x=d*l*u+c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u-d*f*p;break;case`YXZ`:this._x=d*l*u+c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u+d*f*p;break;case`ZXY`:this._x=d*l*u-c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u-d*f*p;break;case`ZYX`:this._x=d*l*u-c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u+d*f*p;break;case`YZX`:this._x=d*l*u+c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u-d*f*p;break;case`XZY`:this._x=d*l*u-c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u+d*f*p;break;default:Io(`Quaternion: .setFromEuler() encountered an unknown order: `+a)}return t===!0&&this._onChangeCallback(),this}setFromAxisAngle(e,t){let n=t/2,r=Math.sin(n);return this._x=e.x*r,this._y=e.y*r,this._z=e.z*r,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(e){let t=e.elements,n=t[0],r=t[4],i=t[8],a=t[1],o=t[5],s=t[9],c=t[2],l=t[6],u=t[10],d=n+o+u;if(d>0){let e=.5/Math.sqrt(d+1);this._w=.25/e,this._x=(l-s)*e,this._y=(i-c)*e,this._z=(a-r)*e}else if(n>o&&n>u){let e=2*Math.sqrt(1+n-o-u);this._w=(l-s)/e,this._x=.25*e,this._y=(r+a)/e,this._z=(i+c)/e}else if(o>u){let e=2*Math.sqrt(1+o-n-u);this._w=(i-c)/e,this._x=(r+a)/e,this._y=.25*e,this._z=(s+l)/e}else{let e=2*Math.sqrt(1+u-n-o);this._w=(a-r)/e,this._x=(i+c)/e,this._y=(s+l)/e,this._z=.25*e}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let n=e.dot(t)+1;return n<1e-8?(n=0,Math.abs(e.x)>Math.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=n):(this._x=0,this._y=-e.z,this._z=e.y,this._w=n)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=n),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(qo(this.dot(e),-1,1)))}rotateTowards(e,t){let n=this.angleTo(e);if(n===0)return this;let r=Math.min(1,t/n);return this.slerp(e,r),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x*=e,this._y*=e,this._z*=e,this._w*=e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){let n=e._x,r=e._y,i=e._z,a=e._w,o=t._x,s=t._y,c=t._z,l=t._w;return this._x=n*l+a*o+r*c-i*s,this._y=r*l+a*s+i*o-n*c,this._z=i*l+a*c+n*s-r*o,this._w=a*l-n*o-r*s-i*c,this._onChangeCallback(),this}slerp(e,t){let n=e._x,r=e._y,i=e._z,a=e._w,o=this.dot(e);o<0&&(n=-n,r=-r,i=-i,a=-a,o=-o);let s=1-t;if(o<.9995){let e=Math.acos(o),c=Math.sin(e);s=Math.sin(s*e)/c,t=Math.sin(t*e)/c,this._x=this._x*s+n*t,this._y=this._y*s+r*t,this._z=this._z*s+i*t,this._w=this._w*s+a*t,this._onChangeCallback()}else this._x=this._x*s+n*t,this._y=this._y*s+r*t,this._z=this._z*s+i*t,this._w=this._w*s+a*t,this.normalize();return this}slerpQuaternions(e,t,n){return this.copy(e).slerp(t,n)}random(){let e=2*Math.PI*Math.random(),t=2*Math.PI*Math.random(),n=Math.random(),r=Math.sqrt(1-n),i=Math.sqrt(n);return this.set(r*Math.sin(e),r*Math.cos(e),i*Math.sin(t),i*Math.cos(t))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}},B=class e{static{e.prototype.isVector3=!0}constructor(e=0,t=0,n=0){this.x=e,this.y=t,this.z=n}set(e,t,n){return n===void 0&&(n=this.z),this.x=e,this.y=t,this.z=n,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw Error(`THREE.Vector3: index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw Error(`THREE.Vector3: index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(gs.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(gs.setFromAxisAngle(e,t))}applyMatrix3(e){let t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[3]*n+i[6]*r,this.y=i[1]*t+i[4]*n+i[7]*r,this.z=i[2]*t+i[5]*n+i[8]*r,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){let t=this.x,n=this.y,r=this.z,i=e.elements,a=1/(i[3]*t+i[7]*n+i[11]*r+i[15]);return this.x=(i[0]*t+i[4]*n+i[8]*r+i[12])*a,this.y=(i[1]*t+i[5]*n+i[9]*r+i[13])*a,this.z=(i[2]*t+i[6]*n+i[10]*r+i[14])*a,this}applyQuaternion(e){let t=this.x,n=this.y,r=this.z,i=e.x,a=e.y,o=e.z,s=e.w,c=2*(a*r-o*n),l=2*(o*t-i*r),u=2*(i*n-a*t);return this.x=t+s*c+a*u-o*l,this.y=n+s*l+o*c-i*u,this.z=r+s*u+i*l-a*c,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){let t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[4]*n+i[8]*r,this.y=i[1]*t+i[5]*n+i[9]*r,this.z=i[2]*t+i[6]*n+i[10]*r,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=qo(this.x,e.x,t.x),this.y=qo(this.y,e.y,t.y),this.z=qo(this.z,e.z,t.z),this}clampScalar(e,t){return this.x=qo(this.x,e,t),this.y=qo(this.y,e,t),this.z=qo(this.z,e,t),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(qo(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){let n=e.x,r=e.y,i=e.z,a=t.x,o=t.y,s=t.z;return this.x=r*s-i*o,this.y=i*a-n*s,this.z=n*o-r*a,this}projectOnVector(e){let t=e.lengthSq();if(t===0)return this.set(0,0,0);let n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}projectOnPlane(e){return hs.copy(this).projectOnVector(e),this.sub(hs)}reflect(e){return this.sub(hs.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){let t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;let n=this.dot(e)/t;return Math.acos(qo(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){let t=this.x-e.x,n=this.y-e.y,r=this.z-e.z;return t*t+n*n+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,n){let r=Math.sin(t)*e;return this.x=r*Math.sin(n),this.y=Math.cos(t)*e,this.z=r*Math.cos(n),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){let t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){let t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),r=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=r,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,t*4)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,t*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){let e=Math.random()*Math.PI*2,t=Math.random()*2-1,n=Math.sqrt(1-t*t);return this.x=n*Math.cos(e),this.y=t,this.z=n*Math.sin(e),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}},hs=new B,gs=new ms,_s=class e{static{e.prototype.isMatrix3=!0}constructor(e,t,n,r,i,a,o,s,c){this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,t,n,r,i,a,o,s,c)}set(e,t,n,r,i,a,o,s,c){let l=this.elements;return l[0]=e,l[1]=r,l[2]=o,l[3]=t,l[4]=i,l[5]=s,l[6]=n,l[7]=a,l[8]=c,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){let t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this}extractBasis(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(e){let t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){let n=e.elements,r=t.elements,i=this.elements,a=n[0],o=n[3],s=n[6],c=n[1],l=n[4],u=n[7],d=n[2],f=n[5],p=n[8],m=r[0],h=r[3],g=r[6],_=r[1],v=r[4],y=r[7],b=r[2],x=r[5],S=r[8];return i[0]=a*m+o*_+s*b,i[3]=a*h+o*v+s*x,i[6]=a*g+o*y+s*S,i[1]=c*m+l*_+u*b,i[4]=c*h+l*v+u*x,i[7]=c*g+l*y+u*S,i[2]=d*m+f*_+p*b,i[5]=d*h+f*v+p*x,i[8]=d*g+f*y+p*S,this}multiplyScalar(e){let t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){let e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8];return t*a*l-t*o*c-n*i*l+n*o*s+r*i*c-r*a*s}invert(){let e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8],u=l*a-o*c,d=o*s-l*i,f=c*i-a*s,p=t*u+n*d+r*f;if(p===0)return this.set(0,0,0,0,0,0,0,0,0);let m=1/p;return e[0]=u*m,e[1]=(r*c-l*n)*m,e[2]=(o*n-r*a)*m,e[3]=d*m,e[4]=(l*t-r*s)*m,e[5]=(r*i-o*t)*m,e[6]=f*m,e[7]=(n*s-c*t)*m,e[8]=(a*t-n*i)*m,this}transpose(){let e,t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){let t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,n,r,i,a,o){let s=Math.cos(i),c=Math.sin(i);return this.set(n*s,n*c,-n*(s*a+c*o)+a+e,-r*c,r*s,-r*(-c*a+s*o)+o+t,0,0,1),this}scale(e,t){return Ro(`Matrix3: .scale() is deprecated. Use .makeScale() instead.`),this.premultiply(vs.makeScale(e,t)),this}rotate(e){return Ro(`Matrix3: .rotate() is deprecated. Use .makeRotation() instead.`),this.premultiply(vs.makeRotation(-e)),this}translate(e,t){return Ro(`Matrix3: .translate() is deprecated. Use .makeTranslation() instead.`),this.premultiply(vs.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){let t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,n,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){let t=this.elements,n=e.elements;for(let e=0;e<9;e++)if(t[e]!==n[e])return!1;return!0}fromArray(e,t=0){for(let n=0;n<9;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){let n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}clone(){return new this.constructor().fromArray(this.elements)}},vs=new _s,ys=new _s().set(.4123908,.3575843,.1804808,.212639,.7151687,.0721923,.0193308,.1191948,.9505322),bs=new _s().set(3.2409699,-1.5373832,-.4986108,-.9692436,1.8759675,.0415551,.0556301,-.203977,1.0569715);function xs(){let e={enabled:!0,workingColorSpace:So,spaces:{},convert:function(e,t,n){return this.enabled===!1||t===n||!t||!n||(this.spaces[t].transfer===`srgb`&&(e.r=Cs(e.r),e.g=Cs(e.g),e.b=Cs(e.b)),this.spaces[t].primaries!==this.spaces[n].primaries&&(e.applyMatrix3(this.spaces[t].toXYZ),e.applyMatrix3(this.spaces[n].fromXYZ)),this.spaces[n].transfer===`srgb`&&(e.r=ws(e.r),e.g=ws(e.g),e.b=ws(e.b))),e},workingToColorSpace:function(e,t){return this.convert(e,this.workingColorSpace,t)},colorSpaceToWorking:function(e,t){return this.convert(e,t,this.workingColorSpace)},getPrimaries:function(e){return this.spaces[e].primaries},getTransfer:function(e){return e===``?Co:this.spaces[e].transfer},getToneMappingMode:function(e){return this.spaces[e].outputColorSpaceConfig.toneMappingMode||`standard`},getLuminanceCoefficients:function(e,t=this.workingColorSpace){return e.fromArray(this.spaces[t].luminanceCoefficients)},define:function(e){Object.assign(this.spaces,e)},_getMatrix:function(e,t,n){return e.copy(this.spaces[t].toXYZ).multiply(this.spaces[n].fromXYZ)},_getDrawingBufferColorSpace:function(e){return this.spaces[e].outputColorSpaceConfig.drawingBufferColorSpace},_getUnpackColorSpace:function(e=this.workingColorSpace){return this.spaces[e].workingColorSpaceConfig.unpackColorSpace},fromWorkingColorSpace:function(t,n){return Ro(`ColorManagement: .fromWorkingColorSpace() has been renamed to .workingToColorSpace().`),e.workingToColorSpace(t,n)},toWorkingColorSpace:function(t,n){return Ro(`ColorManagement: .toWorkingColorSpace() has been renamed to .colorSpaceToWorking().`),e.colorSpaceToWorking(t,n)}},t=[.64,.33,.3,.6,.15,.06],n=[.2126,.7152,.0722],r=[.3127,.329];return e.define({[So]:{primaries:t,whitePoint:r,transfer:Co,toXYZ:ys,fromXYZ:bs,luminanceCoefficients:n,workingColorSpaceConfig:{unpackColorSpace:xo},outputColorSpaceConfig:{drawingBufferColorSpace:xo}},[xo]:{primaries:t,whitePoint:r,transfer:wo,toXYZ:ys,fromXYZ:bs,luminanceCoefficients:n,outputColorSpaceConfig:{drawingBufferColorSpace:xo}}}),e}var Ss=xs();function Cs(e){return e<.04045?e*.0773993808:(e*.9478672986+.0521327014)**2.4}function ws(e){return e<.0031308?e*12.92:1.055*e**.41666-.055}var Ts,Es=class{static getDataURL(e,t=`image/png`){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>`u`)return e.src;let n;if(e instanceof HTMLCanvasElement)n=e;else{Ts===void 0&&(Ts=jo(`canvas`)),Ts.width=e.width,Ts.height=e.height;let t=Ts.getContext(`2d`);e instanceof ImageData?t.putImageData(e,0,0):t.drawImage(e,0,0,e.width,e.height),n=Ts}return n.toDataURL(t)}static sRGBToLinear(e){if(typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement||typeof ImageBitmap<`u`&&e instanceof ImageBitmap){let t=jo(`canvas`);t.width=e.width,t.height=e.height;let n=t.getContext(`2d`);n.drawImage(e,0,0,e.width,e.height);let r=n.getImageData(0,0,e.width,e.height),i=r.data;for(let e=0;e1),this.pmremVersion=0,this.normalized=!1}get width(){return this.source.getSize(js).x}get height(){return this.source.getSize(js).y}get depth(){return this.source.getSize(js).z}get image(){return this.source.data}set image(e){this.source.data=e}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}clone(){return new this.constructor().copy(this)}copy(e){return this.name=e.name,this.source=e.source,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.channel=e.channel,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.internalFormat=e.internalFormat,this.type=e.type,this.normalized=e.normalized,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.colorSpace=e.colorSpace,this.renderTarget=e.renderTarget,this.isRenderTargetTexture=e.isRenderTargetTexture,this.isArrayTexture=e.isArrayTexture,this.userData=JSON.parse(JSON.stringify(e.userData)),this.needsUpdate=!0,this}setValues(e){for(let t in e){let n=e[t];if(n===void 0){Io(`Texture.setValues(): parameter '${t}' has value of undefined.`);continue}let r=this[t];r===void 0?Io(`Texture.setValues(): property '${t}' does not exist.`):r&&n&&r.isVector2&&n.isVector2||r&&n&&r.isVector3&&n.isVector3||r&&n&&r.isMatrix3&&n.isMatrix3?r.copy(n):this[t]=n}}toJSON(e){let t=e===void 0||typeof e==`string`;if(!t&&e.textures[this.uuid]!==void 0)return e.textures[this.uuid];let n={metadata:{version:4.7,type:`Texture`,generator:`Texture.toJSON`},uuid:this.uuid,name:this.name,image:this.source.toJSON(e).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,normalized:this.normalized,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(n.userData=this.userData),t||(e.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:`dispose`})}transformUv(e){if(this.mapping!==300)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case Zi:e.x-=Math.floor(e.x);break;case Qi:e.x=e.x<0?0:1;break;case $i:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x-=Math.floor(e.x)}if(e.y<0||e.y>1)switch(this.wrapT){case Zi:e.y-=Math.floor(e.y);break;case Qi:e.y=e.y<0?0:1;break;case $i:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y-=Math.floor(e.y)}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(e){e===!0&&this.pmremVersion++}};Ms.DEFAULT_IMAGE=null,Ms.DEFAULT_MAPPING=300,Ms.DEFAULT_ANISOTROPY=1;var Ns=class e{static{e.prototype.isVector4=!0}constructor(e=0,t=0,n=0,r=1){this.x=e,this.y=t,this.z=n,this.w=r}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,n,r){return this.x=e,this.y=t,this.z=n,this.w=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw Error(`THREE.Vector4: index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw Error(`THREE.Vector4: index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w===void 0?1:e.w,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){let t=this.x,n=this.y,r=this.z,i=this.w,a=e.elements;return this.x=a[0]*t+a[4]*n+a[8]*r+a[12]*i,this.y=a[1]*t+a[5]*n+a[9]*r+a[13]*i,this.z=a[2]*t+a[6]*n+a[10]*r+a[14]*i,this.w=a[3]*t+a[7]*n+a[11]*r+a[15]*i,this}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this.w/=e.w,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);let t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,n,r,i,a=.01,o=.1,s=e.elements,c=s[0],l=s[4],u=s[8],d=s[1],f=s[5],p=s[9],m=s[2],h=s[6],g=s[10];if(Math.abs(l-d)s&&e>_?e_?s1);this.dispose()}this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}clone(){return new this.constructor().copy(this)}copy(e){this.width=e.width,this.height=e.height,this.depth=e.depth,this.scissor.copy(e.scissor),this.scissorTest=e.scissorTest,this.viewport.copy(e.viewport),this.textures.length=0;for(let t=0,n=e.textures.length;t>>0}enable(e){this.mask|=1<1){for(let e=0;e1){for(let e=0;e0&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),r.up=this.up.toArray(),this.pivot!==null&&(r.pivot=this.pivot.toArray()),this.morphTargetDictionary!==void 0&&(r.morphTargetDictionary=Object.assign({},this.morphTargetDictionary)),this.morphTargetInfluences!==void 0&&(r.morphTargetInfluences=this.morphTargetInfluences.slice()),this.isInstancedMesh&&(r.type=`InstancedMesh`,r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(r.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(r.type=`BatchedMesh`,r.perObjectFrustumCulled=this.perObjectFrustumCulled,r.sortObjects=this.sortObjects,r.drawRanges=this._drawRanges,r.reservedRanges=this._reservedRanges,r.geometryInfo=this._geometryInfo.map(e=>({...e,boundingBox:e.boundingBox?e.boundingBox.toJSON():void 0,boundingSphere:e.boundingSphere?e.boundingSphere.toJSON():void 0})),r.instanceInfo=this._instanceInfo.map(e=>({...e})),r.availableInstanceIds=this._availableInstanceIds.slice(),r.availableGeometryIds=this._availableGeometryIds.slice(),r.nextIndexStart=this._nextIndexStart,r.nextVertexStart=this._nextVertexStart,r.geometryCount=this._geometryCount,r.maxInstanceCount=this._maxInstanceCount,r.maxVertexCount=this._maxVertexCount,r.maxIndexCount=this._maxIndexCount,r.geometryInitialized=this._geometryInitialized,r.matricesTexture=this._matricesTexture.toJSON(e),r.indirectTexture=this._indirectTexture.toJSON(e),this._colorsTexture!==null&&(r.colorsTexture=this._colorsTexture.toJSON(e)),this.boundingSphere!==null&&(r.boundingSphere=this.boundingSphere.toJSON()),this.boundingBox!==null&&(r.boundingBox=this.boundingBox.toJSON()));function i(t,n){return t[n.uuid]===void 0&&(t[n.uuid]=n.toJSON(e)),n.uuid}if(this.isScene)this.background&&(this.background.isColor?r.background=this.background.toJSON():this.background.isTexture&&(r.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(r.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){r.geometry=i(e.geometries,this.geometry);let t=this.geometry.parameters;if(t!==void 0&&t.shapes!==void 0){let n=t.shapes;if(Array.isArray(n))for(let t=0,r=n.length;t0){r.children=[];for(let t=0;t0){r.animations=[];for(let t=0;t0&&(n.geometries=t),r.length>0&&(n.materials=r),i.length>0&&(n.textures=i),o.length>0&&(n.images=o),s.length>0&&(n.shapes=s),c.length>0&&(n.skeletons=c),l.length>0&&(n.animations=l),u.length>0&&(n.nodes=u)}return n.object=r,n;function a(e){let t=[];for(let n in e){let r=e[n];delete r.metadata,t.push(r)}return t}}clone(e){return new this.constructor().copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.pivot=e.pivot===null?null:e.pivot.clone(),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.static=e.static,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),t===!0)for(let t=0;t.025?(c.inputState.pinching=!1,this.dispatchEvent({type:`pinchend`,handedness:e.handedness,target:this})):!c.inputState.pinching&&o<=.015&&(c.inputState.pinching=!0,this.dispatchEvent({type:`pinchstart`,handedness:e.handedness,target:this}))}else s!==null&&e.gripSpace&&(i=t.getPose(e.gripSpace,n),i!==null&&(s.matrix.fromArray(i.transform.matrix),s.matrix.decompose(s.position,s.rotation,s.scale),s.matrixWorldNeedsUpdate=!0,i.linearVelocity?(s.hasLinearVelocity=!0,s.linearVelocity.copy(i.linearVelocity)):s.hasLinearVelocity=!1,i.angularVelocity?(s.hasAngularVelocity=!0,s.angularVelocity.copy(i.angularVelocity)):s.hasAngularVelocity=!1,s.eventsEnabled&&s.dispatchEvent({type:`gripUpdated`,data:e,target:this})));o!==null&&(r=t.getPose(e.targetRaySpace,n),r===null&&i!==null&&(r=i),r!==null&&(o.matrix.fromArray(r.transform.matrix),o.matrix.decompose(o.position,o.rotation,o.scale),o.matrixWorldNeedsUpdate=!0,r.linearVelocity?(o.hasLinearVelocity=!0,o.linearVelocity.copy(r.linearVelocity)):o.hasLinearVelocity=!1,r.angularVelocity?(o.hasAngularVelocity=!0,o.angularVelocity.copy(r.angularVelocity)):o.hasAngularVelocity=!1,this.dispatchEvent(pc)))}return o!==null&&(o.visible=r!==null),s!==null&&(s.visible=i!==null),c!==null&&(c.visible=a!==null),this}_getHandJoint(e,t){if(e.joints[t.jointName]===void 0){let n=new fc;n.matrixAutoUpdate=!1,n.visible=!1,e.joints[t.jointName]=n,e.add(n)}return e.joints[t.jointName]}},hc={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},gc={h:0,s:0,l:0},_c={h:0,s:0,l:0};function vc(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*6*(2/3-n):e}var V=class{constructor(e,t,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,n)}set(e,t,n){if(t===void 0&&n===void 0){let t=e;t&&t.isColor?this.copy(t):typeof t==`number`?this.setHex(t):typeof t==`string`&&this.setStyle(t)}else this.setRGB(e,t,n);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=xo){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,Ss.colorSpaceToWorking(this,t),this}setRGB(e,t,n,r=Ss.workingColorSpace){return this.r=e,this.g=t,this.b=n,Ss.colorSpaceToWorking(this,r),this}setHSL(e,t,n,r=Ss.workingColorSpace){if(e=Jo(e,1),t=qo(t,0,1),n=qo(n,0,1),t===0)this.r=this.g=this.b=n;else{let r=n<=.5?n*(1+t):n+t-n*t,i=2*n-r;this.r=vc(i,r,e+1/3),this.g=vc(i,r,e),this.b=vc(i,r,e-1/3)}return Ss.colorSpaceToWorking(this,r),this}setStyle(e,t=xo){function n(t){t!==void 0&&parseFloat(t)<1&&Io(`Color: Alpha component of `+e+` will be ignored.`)}let r;if(r=/^(\w+)\(([^\)]*)\)/.exec(e)){let i,a=r[1],o=r[2];switch(a){case`rgb`:case`rgba`:if(i=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setRGB(Math.min(255,parseInt(i[1],10))/255,Math.min(255,parseInt(i[2],10))/255,Math.min(255,parseInt(i[3],10))/255,t);if(i=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setRGB(Math.min(100,parseInt(i[1],10))/100,Math.min(100,parseInt(i[2],10))/100,Math.min(100,parseInt(i[3],10))/100,t);break;case`hsl`:case`hsla`:if(i=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setHSL(parseFloat(i[1])/360,parseFloat(i[2])/100,parseFloat(i[3])/100,t);break;default:Io(`Color: Unknown color model `+e)}}else if(r=/^\#([A-Fa-f\d]+)$/.exec(e)){let n=r[1],i=n.length;if(i===3)return this.setRGB(parseInt(n.charAt(0),16)/15,parseInt(n.charAt(1),16)/15,parseInt(n.charAt(2),16)/15,t);if(i===6)return this.setHex(parseInt(n,16),t);Io(`Color: Invalid hex color `+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=xo){let n=hc[e.toLowerCase()];return n===void 0?Io(`Color: Unknown color `+e):this.setHex(n,t),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=Cs(e.r),this.g=Cs(e.g),this.b=Cs(e.b),this}copyLinearToSRGB(e){return this.r=ws(e.r),this.g=ws(e.g),this.b=ws(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=xo){return Ss.workingToColorSpace(yc.copy(this),e),Math.round(qo(yc.r*255,0,255))*65536+Math.round(qo(yc.g*255,0,255))*256+Math.round(qo(yc.b*255,0,255))}getHexString(e=xo){return(`000000`+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=Ss.workingColorSpace){Ss.workingToColorSpace(yc.copy(this),t);let n=yc.r,r=yc.g,i=yc.b,a=Math.max(n,r,i),o=Math.min(n,r,i),s,c,l=(o+a)/2;if(o===a)s=0,c=0;else{let e=a-o;switch(c=l<=.5?e/(a+o):e/(2-a-o),a){case n:s=(r-i)/e+(r0?r.multiplyScalar(1/Math.sqrt(i)):r.set(0,0,0)}static getBarycoord(e,t,n,r,i){Sc.subVectors(r,t),Cc.subVectors(n,t),wc.subVectors(e,t);let a=Sc.dot(Sc),o=Sc.dot(Cc),s=Sc.dot(wc),c=Cc.dot(Cc),l=Cc.dot(wc),u=a*c-o*o;if(u===0)return i.set(0,0,0),null;let d=1/u,f=(c*s-o*l)*d,p=(a*l-o*s)*d;return i.set(1-f-p,p,f)}static containsPoint(e,t,n,r){return this.getBarycoord(e,t,n,r,Tc)!==null&&Tc.x>=0&&Tc.y>=0&&Tc.x+Tc.y<=1}static getInterpolation(e,t,n,r,i,a,o,s){return this.getBarycoord(e,t,n,r,Tc)===null?(s.x=0,s.y=0,`z`in s&&(s.z=0),`w`in s&&(s.w=0),null):(s.setScalar(0),s.addScaledVector(i,Tc.x),s.addScaledVector(a,Tc.y),s.addScaledVector(o,Tc.z),s)}static getInterpolatedAttribute(e,t,n,r,i,a){return Mc.setScalar(0),Nc.setScalar(0),Pc.setScalar(0),Mc.fromBufferAttribute(e,t),Nc.fromBufferAttribute(e,n),Pc.fromBufferAttribute(e,r),a.setScalar(0),a.addScaledVector(Mc,i.x),a.addScaledVector(Nc,i.y),a.addScaledVector(Pc,i.z),a}static isFrontFacing(e,t,n,r){return Sc.subVectors(n,t),Cc.subVectors(e,t),Sc.cross(Cc).dot(r)<0}set(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this}setFromPointsAndIndices(e,t,n,r){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[r]),this}setFromAttributeAndIndices(e,t,n,r){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,n),this.c.fromBufferAttribute(e,r),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return Sc.subVectors(this.c,this.b),Cc.subVectors(this.a,this.b),Sc.cross(Cc).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(t){return e.getNormal(this.a,this.b,this.c,t)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(t,n){return e.getBarycoord(t,this.a,this.b,this.c,n)}getInterpolation(t,n,r,i,a){return e.getInterpolation(t,this.a,this.b,this.c,n,r,i,a)}containsPoint(t){return e.containsPoint(t,this.a,this.b,this.c)}isFrontFacing(t){return e.isFrontFacing(this.a,this.b,this.c,t)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){let n=this.a,r=this.b,i=this.c,a,o;Ec.subVectors(r,n),Dc.subVectors(i,n),kc.subVectors(e,n);let s=Ec.dot(kc),c=Dc.dot(kc);if(s<=0&&c<=0)return t.copy(n);Ac.subVectors(e,r);let l=Ec.dot(Ac),u=Dc.dot(Ac);if(l>=0&&u<=l)return t.copy(r);let d=s*u-l*c;if(d<=0&&s>=0&&l<=0)return a=s/(s-l),t.copy(n).addScaledVector(Ec,a);jc.subVectors(e,i);let f=Ec.dot(jc),p=Dc.dot(jc);if(p>=0&&f<=p)return t.copy(i);let m=f*c-s*p;if(m<=0&&c>=0&&p<=0)return o=c/(c-p),t.copy(n).addScaledVector(Dc,o);let h=l*p-f*u;if(h<=0&&u-l>=0&&f-p>=0)return Oc.subVectors(i,r),o=(u-l)/(u-l+(f-p)),t.copy(r).addScaledVector(Oc,o);let g=1/(h+m+d);return a=m*g,o=d*g,t.copy(n).addScaledVector(Ec,a).addScaledVector(Dc,o)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}},Ic=class{constructor(e=new B(1/0,1/0,1/0),t=new B(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,n=e.length;t=this.min.x&&e.x<=this.max.x&&e.y>=this.min.y&&e.y<=this.max.y&&e.z>=this.min.z&&e.z<=this.max.z}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return e.max.x>=this.min.x&&e.min.x<=this.max.x&&e.max.y>=this.min.y&&e.min.y<=this.max.y&&e.max.z>=this.min.z&&e.min.z<=this.max.z}intersectsSphere(e){return this.clampPoint(e.center,Rc),Rc.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,n;return e.normal.x>0?(t=e.normal.x*this.min.x,n=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,n=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,n+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,n+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,n+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,n+=e.normal.z*this.min.z),t<=-e.constant&&n>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(Kc),qc.subVectors(this.max,Kc),Bc.subVectors(e.a,Kc),Vc.subVectors(e.b,Kc),Hc.subVectors(e.c,Kc),Uc.subVectors(Vc,Bc),Wc.subVectors(Hc,Vc),Gc.subVectors(Bc,Hc);let t=[0,-Uc.z,Uc.y,0,-Wc.z,Wc.y,0,-Gc.z,Gc.y,Uc.z,0,-Uc.x,Wc.z,0,-Wc.x,Gc.z,0,-Gc.x,-Uc.y,Uc.x,0,-Wc.y,Wc.x,0,-Gc.y,Gc.x,0];return!Xc(t,Bc,Vc,Hc,qc)||(t=[1,0,0,0,1,0,0,0,1],!Xc(t,Bc,Vc,Hc,qc))?!1:(Jc.crossVectors(Uc,Wc),t=[Jc.x,Jc.y,Jc.z],Xc(t,Bc,Vc,Hc,qc))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,Rc).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(Rc).length()*.5),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()||(Lc[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),Lc[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),Lc[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),Lc[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),Lc[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),Lc[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),Lc[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),Lc[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(Lc)),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}toJSON(){return{min:this.min.toArray(),max:this.max.toArray()}}fromJSON(e){return this.min.fromArray(e.min),this.max.fromArray(e.max),this}},Lc=[new B,new B,new B,new B,new B,new B,new B,new B],Rc=new B,zc=new Ic,Bc=new B,Vc=new B,Hc=new B,Uc=new B,Wc=new B,Gc=new B,Kc=new B,qc=new B,Jc=new B,Yc=new B;function Xc(e,t,n,r,i){for(let a=0,o=e.length-3;a<=o;a+=3){Yc.fromArray(e,a);let o=i.x*Math.abs(Yc.x)+i.y*Math.abs(Yc.y)+i.z*Math.abs(Yc.z),s=t.dot(Yc),c=n.dot(Yc),l=r.dot(Yc);if(Math.max(-Math.max(s,c,l),Math.min(s,c,l))>o)return!1}return!0}var Zc=new B,Qc=new z,$c=0,el=class extends Vo{constructor(e,t,n=!1){if(super(),Array.isArray(e))throw TypeError(`THREE.BufferAttribute: array should be a Typed Array.`);this.isBufferAttribute=!0,Object.defineProperty(this,"id",{value:$c++}),this.name=``,this.array=e,this.itemSize=t,this.count=e===void 0?0:e.length/t,this.normalized=n,this.usage=Eo,this.updateRanges=[],this.gpuType=fa,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,n){e*=this.itemSize,n*=t.itemSize;for(let r=0,i=this.itemSize;rthis.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius*=e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;al.subVectors(e,this.center);let t=al.lengthSq();if(t>this.radius*this.radius){let e=Math.sqrt(t),n=(e-this.radius)*.5;this.center.addScaledVector(al,n/e),this.radius+=n}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(this.center.equals(e.center)===!0?this.radius=Math.max(this.radius,e.radius):(ol.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(al.copy(e.center).add(ol)),this.expandByPoint(al.copy(e.center).sub(ol))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}toJSON(){return{radius:this.radius,center:this.center.toArray()}}fromJSON(e){return this.radius=e.radius,this.center.fromArray(e.center),this}},cl=0,ll=new Rs,ul=new dc,dl=new B,fl=new Ic,pl=new Ic,ml=new B,hl=class e extends Vo{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,"id",{value:cl++}),this.uuid=Ko(),this.name=``,this.type=`BufferGeometry`,this.index=null,this.indirect=null,this.indirectOffset=0,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={},this._transformed=!1}getIndex(){return this.index}setIndex(e){return this.index=Array.isArray(e)?new(ko(e)?nl:tl)(e,1):e,this}setIndirect(e,t=0){return this.indirect=e,this.indirectOffset=t,this}getIndirect(){return this.indirect}getAttribute(e){return this.attributes[e]}setAttribute(e,t){return this.attributes[e]=t,this}deleteAttribute(e){return delete this.attributes[e],this}hasAttribute(e){return this.attributes[e]!==void 0}addGroup(e,t,n=0){this.groups.push({start:e,count:t,materialIndex:n})}clearGroups(){this.groups=[]}setDrawRange(e,t){this.drawRange.start=e,this.drawRange.count=t}applyMatrix4(e){let t=this.attributes.position;t!==void 0&&(t.applyMatrix4(e),t.needsUpdate=!0);let n=this.attributes.normal;if(n!==void 0){let t=new _s().getNormalMatrix(e);n.applyNormalMatrix(t),n.needsUpdate=!0}let r=this.attributes.tangent;return r!==void 0&&(r.transformDirection(e),r.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this._transformed=!0,this}applyQuaternion(e){return ll.makeRotationFromQuaternion(e),this.applyMatrix4(ll),this}rotateX(e){return ll.makeRotationX(e),this.applyMatrix4(ll),this}rotateY(e){return ll.makeRotationY(e),this.applyMatrix4(ll),this}rotateZ(e){return ll.makeRotationZ(e),this.applyMatrix4(ll),this}translate(e,t,n){return ll.makeTranslation(e,t,n),this.applyMatrix4(ll),this}scale(e,t,n){return ll.makeScale(e,t,n),this.applyMatrix4(ll),this}lookAt(e){return ul.lookAt(e),ul.updateMatrix(),this.applyMatrix4(ul.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(dl).negate(),this.translate(dl.x,dl.y,dl.z),this}setFromPoints(e){let t=this.getAttribute(`position`);if(t===void 0){let t=[];for(let n=0,r=e.length;nt.count&&Io(`BufferGeometry: Buffer size too small for points data. Use .dispose() and create a new geometry.`),t.needsUpdate=!0}return this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new Ic);let e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute)Lo(`BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.`,this),this.boundingBox.set(new B(-1/0,-1/0,-1/0),new B(1/0,1/0,1/0));else{if(e!==void 0){if(this.boundingBox.setFromBufferAttribute(e),t)for(let e=0,n=t.length;e0&&(e.userData=this.userData),this.parameters!==void 0&&this._transformed!==!0){let t=this.parameters;for(let n in t)t[n]!==void 0&&(e[n]=t[n]);return e}e.data={attributes:{}};let t=this.index;t!==null&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});let n=this.attributes;for(let t in n){let r=n[t];e.data.attributes[t]=r.toJSON(e.data)}let r={},i=!1;for(let t in this.morphAttributes){let n=this.morphAttributes[t],a=[];for(let t=0,r=n.length;t0&&(r[t]=a,i=!0)}i&&(e.data.morphAttributes=r,e.data.morphTargetsRelative=this.morphTargetsRelative);let a=this.groups;a.length>0&&(e.data.groups=JSON.parse(JSON.stringify(a)));let o=this.boundingSphere;return o!==null&&(e.data.boundingSphere=o.toJSON()),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;let t={};this.name=e.name;let n=e.index;n!==null&&this.setIndex(n.clone());let r=e.attributes;for(let e in r){let n=r[e];this.setAttribute(e,n.clone(t))}let i=e.morphAttributes;for(let e in i){let n=[],r=i[e];for(let e=0,i=r.length;e1)?null:t.copy(e.start).addScaledVector(r,a)}intersectsLine(e){let t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){let n=t||xl.getNormalMatrix(e),r=this.coplanarPoint(yl).applyMatrix4(e),i=this.normal.applyMatrix3(n).normalize();return this.constant=-r.dot(i),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}toJSON(){return{normal:this.normal.toArray(),constant:this.constant}}fromJSON(e){return this.normal.fromArray(e.normal),this.constant=e.constant,this}},Cl=0,wl=class extends Vo{constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,"id",{value:Cl++}),this.uuid=Ko(),this.name=``,this.type=`Material`,this.blending=1,this.side=0,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.alphaHash=!1,this.blendSrc=204,this.blendDst=205,this.blendEquation=100,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.blendColor=new V(0,0,0),this.blendAlpha=0,this.depthFunc=3,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=519,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=To,this.stencilZFail=To,this.stencilZPass=To,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.forceSinglePass=!1,this.allowOverride=!0,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(e){this._alphaTest>0!=e>0&&this.version++,this._alphaTest=e}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(let t in e){let n=e[t];if(n===void 0){Io(`Material: parameter '${t}' has value of undefined.`);continue}let r=this[t];r===void 0?Io(`Material: '${t}' is not a property of THREE.${this.type}.`):r&&r.isColor?r.set(n):r&&r.isVector2&&n&&n.isVector2||r&&r.isEuler&&n&&n.isEuler||r&&r.isVector3&&n&&n.isVector3?r.copy(n):this[t]=n}}toJSON(e){let t=e===void 0||typeof e==`string`;t&&(e={textures:{},images:{}});let n={metadata:{version:4.7,type:`Material`,generator:`Material.toJSON`}};n.uuid=this.uuid,n.type=this.type,n.blending=this.blending,n.side=this.side,n.shadowSide=this.shadowSide,n.vertexColors=this.vertexColors,n.opacity=this.opacity,n.transparent=this.transparent,n.blendSrc=this.blendSrc,n.blendDst=this.blendDst,n.blendEquation=this.blendEquation,n.blendSrcAlpha=this.blendSrcAlpha,n.blendDstAlpha=this.blendDstAlpha,n.blendEquationAlpha=this.blendEquationAlpha,n.blendColor=this.blendColor.getHex(),n.blendAlpha=this.blendAlpha,n.depthFunc=this.depthFunc,n.depthTest=this.depthTest,n.depthWrite=this.depthWrite,n.colorWrite=this.colorWrite,n.clipIntersection=this.clipIntersection,n.clipShadows=this.clipShadows,n.stencilWriteMask=this.stencilWriteMask,n.stencilFunc=this.stencilFunc,n.stencilRef=this.stencilRef,n.stencilFuncMask=this.stencilFuncMask,n.stencilFail=this.stencilFail,n.stencilZFail=this.stencilZFail,n.stencilZPass=this.stencilZPass,n.stencilWrite=this.stencilWrite,n.polygonOffset=this.polygonOffset,n.polygonOffsetFactor=this.polygonOffsetFactor,n.polygonOffsetUnits=this.polygonOffsetUnits,n.dithering=this.dithering,n.alphaTest=this.alphaTest,n.alphaHash=this.alphaHash,n.alphaToCoverage=this.alphaToCoverage,n.premultipliedAlpha=this.premultipliedAlpha,n.forceSinglePass=this.forceSinglePass,n.allowOverride=this.allowOverride,n.visible=this.visible,n.toneMapped=this.toneMapped,n.name=this.name,this.color&&this.color.isColor&&(n.color=this.color.getHex()),this.roughness!==void 0&&(n.roughness=this.roughness),this.metalness!==void 0&&(n.metalness=this.metalness),this.sheen!==void 0&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity!==void 0&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(n.shininess=this.shininess),this.clearcoat!==void 0&&(n.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.sheenColorMap&&this.sheenColorMap.isTexture&&(n.sheenColorMap=this.sheenColorMap.toJSON(e).uuid),this.sheenRoughnessMap&&this.sheenRoughnessMap.isTexture&&(n.sheenRoughnessMap=this.sheenRoughnessMap.toJSON(e).uuid),this.dispersion!==void 0&&(n.dispersion=this.dispersion),this.retroreflectivity!==void 0&&(n.retroreflectivity=this.retroreflectivity),this.iridescence!==void 0&&(n.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(n.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(n.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(n.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(n.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(n.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(n.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(n.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(e).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(e).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(e).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(e).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(e).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(n.combine=this.combine)),this.envMapRotation!==void 0&&(n.envMapRotation=this.envMapRotation.toArray()),this.envMapIntensity!==void 0&&(n.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(n.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&(n.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(n.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(n.size=this.size),this.sizeAttenuation!==void 0&&(n.sizeAttenuation=this.sizeAttenuation),Array.isArray(this.clippingPlanes)&&this.clippingPlanes.length>0&&(n.clippingPlanes=this.clippingPlanes.map(e=>e.toJSON())),this.rotation!==void 0&&(n.rotation=this.rotation),this.depthPacking!==void 0&&(n.depthPacking=this.depthPacking),this.linewidth!==void 0&&(n.linewidth=this.linewidth),this.linecap!==void 0&&(n.linecap=this.linecap),this.linejoin!==void 0&&(n.linejoin=this.linejoin),this.dashSize!==void 0&&(n.dashSize=this.dashSize),this.gapSize!==void 0&&(n.gapSize=this.gapSize),this.scale!==void 0&&(n.scale=this.scale),this.wireframe!==void 0&&(n.wireframe=this.wireframe),this.wireframeLinewidth!==void 0&&(n.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!==void 0&&(n.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!==void 0&&(n.wireframeLinejoin=this.wireframeLinejoin),this.flatShading!==void 0&&(n.flatShading=this.flatShading),this.fog!==void 0&&(n.fog=this.fog),Object.keys(this.userData).length>0&&(n.userData=this.userData);function r(e){let t=[];for(let n in e){let r=e[n];delete r.metadata,t.push(r)}return t}if(t){let t=r(e.textures),i=r(e.images);t.length>0&&(n.textures=t),i.length>0&&(n.images=i)}return n}fromJSON(e,t){if(e.uuid!==void 0&&(this.uuid=e.uuid),e.name!==void 0&&(this.name=e.name),e.color!==void 0&&this.color!==void 0&&this.color.setHex(e.color),e.roughness!==void 0&&(this.roughness=e.roughness),e.metalness!==void 0&&(this.metalness=e.metalness),e.sheen!==void 0&&(this.sheen=e.sheen),e.sheenColor!==void 0&&(this.sheenColor=new V().setHex(e.sheenColor)),e.sheenRoughness!==void 0&&(this.sheenRoughness=e.sheenRoughness),e.emissive!==void 0&&this.emissive!==void 0&&this.emissive.setHex(e.emissive),e.specular!==void 0&&this.specular!==void 0&&this.specular.setHex(e.specular),e.specularIntensity!==void 0&&(this.specularIntensity=e.specularIntensity),e.specularColor!==void 0&&this.specularColor!==void 0&&this.specularColor.setHex(e.specularColor),e.shininess!==void 0&&(this.shininess=e.shininess),e.clearcoat!==void 0&&(this.clearcoat=e.clearcoat),e.clearcoatRoughness!==void 0&&(this.clearcoatRoughness=e.clearcoatRoughness),e.dispersion!==void 0&&(this.dispersion=e.dispersion),e.retroreflectivity!==void 0&&(this.retroreflectivity=e.retroreflectivity),e.iridescence!==void 0&&(this.iridescence=e.iridescence),e.iridescenceIOR!==void 0&&(this.iridescenceIOR=e.iridescenceIOR),e.iridescenceThicknessRange!==void 0&&(this.iridescenceThicknessRange=e.iridescenceThicknessRange),e.transmission!==void 0&&(this.transmission=e.transmission),e.thickness!==void 0&&(this.thickness=e.thickness),e.attenuationDistance!==void 0&&(this.attenuationDistance=e.attenuationDistance),e.attenuationColor!==void 0&&this.attenuationColor!==void 0&&this.attenuationColor.setHex(e.attenuationColor),e.anisotropy!==void 0&&(this.anisotropy=e.anisotropy),e.anisotropyRotation!==void 0&&(this.anisotropyRotation=e.anisotropyRotation),e.fog!==void 0&&(this.fog=e.fog),e.flatShading!==void 0&&(this.flatShading=e.flatShading),e.blending!==void 0&&(this.blending=e.blending),e.combine!==void 0&&(this.combine=e.combine),e.side!==void 0&&(this.side=e.side),e.shadowSide!==void 0&&(this.shadowSide=e.shadowSide),e.opacity!==void 0&&(this.opacity=e.opacity),e.transparent!==void 0&&(this.transparent=e.transparent),e.alphaTest!==void 0&&(this.alphaTest=e.alphaTest),e.alphaHash!==void 0&&(this.alphaHash=e.alphaHash),e.depthFunc!==void 0&&(this.depthFunc=e.depthFunc),e.depthTest!==void 0&&(this.depthTest=e.depthTest),e.depthWrite!==void 0&&(this.depthWrite=e.depthWrite),e.colorWrite!==void 0&&(this.colorWrite=e.colorWrite),e.clippingPlanes!==void 0&&(this.clippingPlanes=e.clippingPlanes.map(e=>new Sl().fromJSON(e))),e.clipIntersection!==void 0&&(this.clipIntersection=e.clipIntersection),e.clipShadows!==void 0&&(this.clipShadows=e.clipShadows),e.depthPacking!==void 0&&(this.depthPacking=e.depthPacking),e.blendSrc!==void 0&&(this.blendSrc=e.blendSrc),e.blendDst!==void 0&&(this.blendDst=e.blendDst),e.blendEquation!==void 0&&(this.blendEquation=e.blendEquation),e.blendSrcAlpha!==void 0&&(this.blendSrcAlpha=e.blendSrcAlpha),e.blendDstAlpha!==void 0&&(this.blendDstAlpha=e.blendDstAlpha),e.blendEquationAlpha!==void 0&&(this.blendEquationAlpha=e.blendEquationAlpha),e.blendColor!==void 0&&this.blendColor!==void 0&&this.blendColor.setHex(e.blendColor),e.blendAlpha!==void 0&&(this.blendAlpha=e.blendAlpha),e.stencilWriteMask!==void 0&&(this.stencilWriteMask=e.stencilWriteMask),e.stencilFunc!==void 0&&(this.stencilFunc=e.stencilFunc),e.stencilRef!==void 0&&(this.stencilRef=e.stencilRef),e.stencilFuncMask!==void 0&&(this.stencilFuncMask=e.stencilFuncMask),e.stencilFail!==void 0&&(this.stencilFail=e.stencilFail),e.stencilZFail!==void 0&&(this.stencilZFail=e.stencilZFail),e.stencilZPass!==void 0&&(this.stencilZPass=e.stencilZPass),e.stencilWrite!==void 0&&(this.stencilWrite=e.stencilWrite),e.wireframe!==void 0&&(this.wireframe=e.wireframe),e.wireframeLinewidth!==void 0&&(this.wireframeLinewidth=e.wireframeLinewidth),e.wireframeLinecap!==void 0&&(this.wireframeLinecap=e.wireframeLinecap),e.wireframeLinejoin!==void 0&&(this.wireframeLinejoin=e.wireframeLinejoin),e.rotation!==void 0&&(this.rotation=e.rotation),e.linewidth!==void 0&&(this.linewidth=e.linewidth),e.linecap!==void 0&&(this.linecap=e.linecap),e.linejoin!==void 0&&(this.linejoin=e.linejoin),e.dashSize!==void 0&&(this.dashSize=e.dashSize),e.gapSize!==void 0&&(this.gapSize=e.gapSize),e.scale!==void 0&&(this.scale=e.scale),e.polygonOffset!==void 0&&(this.polygonOffset=e.polygonOffset),e.polygonOffsetFactor!==void 0&&(this.polygonOffsetFactor=e.polygonOffsetFactor),e.polygonOffsetUnits!==void 0&&(this.polygonOffsetUnits=e.polygonOffsetUnits),e.dithering!==void 0&&(this.dithering=e.dithering),e.alphaToCoverage!==void 0&&(this.alphaToCoverage=e.alphaToCoverage),e.premultipliedAlpha!==void 0&&(this.premultipliedAlpha=e.premultipliedAlpha),e.forceSinglePass!==void 0&&(this.forceSinglePass=e.forceSinglePass),e.allowOverride!==void 0&&(this.allowOverride=e.allowOverride),e.visible!==void 0&&(this.visible=e.visible),e.toneMapped!==void 0&&(this.toneMapped=e.toneMapped),e.userData!==void 0&&(this.userData=e.userData),e.vertexColors!==void 0&&(this.vertexColors=typeof e.vertexColors==`number`?e.vertexColors>0:e.vertexColors),e.size!==void 0&&(this.size=e.size),e.sizeAttenuation!==void 0&&(this.sizeAttenuation=e.sizeAttenuation),e.map!==void 0&&(this.map=t[e.map]||null),e.matcap!==void 0&&(this.matcap=t[e.matcap]||null),e.alphaMap!==void 0&&(this.alphaMap=t[e.alphaMap]||null),e.bumpMap!==void 0&&(this.bumpMap=t[e.bumpMap]||null),e.bumpScale!==void 0&&(this.bumpScale=e.bumpScale),e.normalMap!==void 0&&(this.normalMap=t[e.normalMap]||null),e.normalMapType!==void 0&&(this.normalMapType=e.normalMapType),e.normalScale!==void 0){let t=e.normalScale;Array.isArray(t)===!1&&(t=[t,t]),this.normalScale=new z().fromArray(t)}return e.displacementMap!==void 0&&(this.displacementMap=t[e.displacementMap]||null),e.displacementScale!==void 0&&(this.displacementScale=e.displacementScale),e.displacementBias!==void 0&&(this.displacementBias=e.displacementBias),e.roughnessMap!==void 0&&(this.roughnessMap=t[e.roughnessMap]||null),e.metalnessMap!==void 0&&(this.metalnessMap=t[e.metalnessMap]||null),e.emissiveMap!==void 0&&(this.emissiveMap=t[e.emissiveMap]||null),e.emissiveIntensity!==void 0&&(this.emissiveIntensity=e.emissiveIntensity),e.specularMap!==void 0&&(this.specularMap=t[e.specularMap]||null),e.specularIntensityMap!==void 0&&(this.specularIntensityMap=t[e.specularIntensityMap]||null),e.specularColorMap!==void 0&&(this.specularColorMap=t[e.specularColorMap]||null),e.envMap!==void 0&&(this.envMap=t[e.envMap]||null),e.envMapRotation!==void 0&&this.envMapRotation.fromArray(e.envMapRotation),e.envMapIntensity!==void 0&&(this.envMapIntensity=e.envMapIntensity),e.reflectivity!==void 0&&(this.reflectivity=e.reflectivity),e.refractionRatio!==void 0&&(this.refractionRatio=e.refractionRatio),e.lightMap!==void 0&&(this.lightMap=t[e.lightMap]||null),e.lightMapIntensity!==void 0&&(this.lightMapIntensity=e.lightMapIntensity),e.aoMap!==void 0&&(this.aoMap=t[e.aoMap]||null),e.aoMapIntensity!==void 0&&(this.aoMapIntensity=e.aoMapIntensity),e.gradientMap!==void 0&&(this.gradientMap=t[e.gradientMap]||null),e.clearcoatMap!==void 0&&(this.clearcoatMap=t[e.clearcoatMap]||null),e.clearcoatRoughnessMap!==void 0&&(this.clearcoatRoughnessMap=t[e.clearcoatRoughnessMap]||null),e.clearcoatNormalMap!==void 0&&(this.clearcoatNormalMap=t[e.clearcoatNormalMap]||null),e.clearcoatNormalScale!==void 0&&(this.clearcoatNormalScale=new z().fromArray(e.clearcoatNormalScale)),e.iridescenceMap!==void 0&&(this.iridescenceMap=t[e.iridescenceMap]||null),e.iridescenceThicknessMap!==void 0&&(this.iridescenceThicknessMap=t[e.iridescenceThicknessMap]||null),e.transmissionMap!==void 0&&(this.transmissionMap=t[e.transmissionMap]||null),e.thicknessMap!==void 0&&(this.thicknessMap=t[e.thicknessMap]||null),e.anisotropyMap!==void 0&&(this.anisotropyMap=t[e.anisotropyMap]||null),e.sheenColorMap!==void 0&&(this.sheenColorMap=t[e.sheenColorMap]||null),e.sheenRoughnessMap!==void 0&&(this.sheenRoughnessMap=t[e.sheenRoughnessMap]||null),this}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;let t=e.clippingPlanes,n=null;if(t!==null){let e=t.length;n=Array(e);for(let r=0;r!==e;++r)n[r]=t[r].clone()}return this.clippingPlanes=n,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.allowOverride=e.allowOverride,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:`dispose`})}set needsUpdate(e){e===!0&&this.version++}},Tl=new B,El=new B,Dl=new B,Ol=new B,kl=class{constructor(e=new B,t=new B(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,Tl)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);let n=t.dot(this.direction);return n<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,n)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){let t=Tl.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(Tl.copy(this.origin).addScaledVector(this.direction,t),Tl.distanceToSquared(e))}distanceSqToSegment(e,t,n,r){El.copy(e).add(t).multiplyScalar(.5),Dl.copy(t).sub(e).normalize(),Ol.copy(this.origin).sub(El);let i=e.distanceTo(t)*.5,a=-this.direction.dot(Dl),o=Ol.dot(this.direction),s=-Ol.dot(Dl),c=Ol.lengthSq(),l=Math.abs(1-a*a),u,d,f,p;if(l>0){if(u=a*s-o,d=a*o-s,p=i*l,u>=0){if(d>=-p){if(d<=p){let e=1/l;u*=e,d*=e,f=u*(u+a*d+2*o)+d*(a*u+d+2*s)+c}else d=i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c}else d=-i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c}else d<=-p?(u=Math.max(0,-(-a*i+o)),d=u>0?-i:Math.min(Math.max(-i,-s),i),f=-u*u+d*(d+2*s)+c):d<=p?(u=0,d=Math.min(Math.max(-i,-s),i),f=d*(d+2*s)+c):(u=Math.max(0,-(a*i+o)),d=u>0?i:Math.min(Math.max(-i,-s),i),f=-u*u+d*(d+2*s)+c)}else d=a>0?-i:i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c;return n&&n.copy(this.origin).addScaledVector(this.direction,u),r&&r.copy(El).addScaledVector(Dl,d),f}intersectSphere(e,t){if(e.radius<0)return null;Tl.subVectors(e.center,this.origin);let n=Tl.dot(this.direction),r=Tl.dot(Tl)-n*n,i=e.radius*e.radius;if(r>i)return null;let a=Math.sqrt(i-r),o=n-a,s=n+a;return s<0?null:o<0?this.at(s,t):this.at(o,t)}intersectsSphere(e){return e.radius<0?!1:this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){let t=e.normal.dot(this.direction);if(t===0)return e.distanceToPoint(this.origin)===0?0:null;let n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null}intersectPlane(e,t){let n=this.distanceToPlane(e);return n===null?null:this.at(n,t)}intersectsPlane(e){let t=e.distanceToPoint(this.origin);return t===0||e.normal.dot(this.direction)*t<0}intersectBox(e,t){let n,r,i,a,o,s,c=1/this.direction.x,l=1/this.direction.y,u=1/this.direction.z,d=this.origin;return c>=0?(n=(e.min.x-d.x)*c,r=(e.max.x-d.x)*c):(n=(e.max.x-d.x)*c,r=(e.min.x-d.x)*c),l>=0?(i=(e.min.y-d.y)*l,a=(e.max.y-d.y)*l):(i=(e.max.y-d.y)*l,a=(e.min.y-d.y)*l),n>a||i>r||((i>n||isNaN(n))&&(n=i),(a=0?(o=(e.min.z-d.z)*u,s=(e.max.z-d.z)*u):(o=(e.max.z-d.z)*u,s=(e.min.z-d.z)*u),n>s||o>r)||((o>n||n!==n)&&(n=o),(s=0?n:r,t)}intersectsBox(e){return this.intersectBox(e,Tl)!==null}intersectTriangle(e,t,n,r,i){let a=this.origin,o=this.direction,s=o.x,c=o.y,l=o.z,u=e.x-a.x,d=e.y-a.y,f=e.z-a.z,p=t.x-a.x,m=t.y-a.y,h=t.z-a.z,g=n.x-a.x,_=n.y-a.y,v=n.z-a.z,y=Math.abs(s),b=Math.abs(c),x=Math.abs(l),S,C,w,T,E,D,O,k,ee,A,te,j;if(y>=b&&y>=x?(w=s,D=u,ee=p,j=g,s>=0?(S=c,C=l,T=d,E=f,O=m,k=h,A=_,te=v):(S=l,C=c,T=f,E=d,O=h,k=m,A=v,te=_)):b>=x?(w=c,D=d,ee=m,j=_,c>=0?(S=l,C=s,T=f,E=u,O=h,k=p,A=v,te=g):(S=s,C=l,T=u,E=f,O=p,k=h,A=g,te=v)):(w=l,D=f,ee=h,j=v,l>=0?(S=s,C=c,T=u,E=d,O=p,k=m,A=g,te=_):(S=c,C=s,T=d,E=u,O=m,k=p,A=_,te=g)),w===0)return null;let M=S/w,ne=C/w,re=1/w,ie=T-M*D,N=E-ne*D,ae=O-M*ee,oe=k-ne*ee,se=A-M*j,ce=te-ne*j,le=se*oe-ce*ae,ue=ie*ce-N*se,de=ae*N-oe*ie;if(r){if(le<0||ue<0||de<0)return null}else if((le<0||ue<0||de<0)&&(le>0||ue>0||de>0))return null;let fe=le+ue+de;if(fe===0)return null;let pe=re*(le*D+ue*ee+de*j);return(fe>0?pe<0:pe>0)?null:this.at(pe/fe,i)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}},Al=class extends wl{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type=`MeshBasicMaterial`,this.color=new V(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new Js,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap=`round`,this.wireframeLinejoin=`round`,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}},jl=new Rs,Ml=new kl,Nl=new sl,Pl=new B,Fl=new B,Il=new B,Ll=new B,Rl=new B,zl=new B,Bl=new B,Vl=new B,H=class extends dc{constructor(e=new hl,t=new Al){super(),this.isMesh=!0,this.type=`Mesh`,this.geometry=e,this.material=t,this.morphTargetDictionary=void 0,this.morphTargetInfluences=void 0,this.count=1,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),e.morphTargetInfluences!==void 0&&(this.morphTargetInfluences=e.morphTargetInfluences.slice()),e.morphTargetDictionary!==void 0&&(this.morphTargetDictionary=Object.assign({},e.morphTargetDictionary)),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}updateMorphTargets(){let e=this.geometry.morphAttributes,t=Object.keys(e);if(t.length>0){let n=e[t[0]];if(n!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;e(e.far-e.near)**2)||(jl.copy(i).invert(),Ml.copy(e.ray).applyMatrix4(jl),(n.boundingBox===null||Ml.intersectsBox(n.boundingBox)!==!1)&&this._computeIntersections(e,t,Ml)))}_computeIntersections(e,t,n){let r,i=this.geometry,a=this.material,o=i.index,s=i.attributes.position,c=i.attributes.uv,l=i.attributes.uv1,u=i.attributes.normal,d=i.groups,f=i.drawRange;if(o!==null){if(Array.isArray(a))for(let i=0,s=d.length;in.far?null:{distance:l,point:Vl.clone(),object:e}}function Ul(e,t,n,r,i,a,o,s,c,l){e.getVertexPosition(s,Fl),e.getVertexPosition(c,Il),e.getVertexPosition(l,Ll);let u=Hl(e,t,n,r,Fl,Il,Ll,Bl);if(u){let e=new B;Fc.getBarycoord(Bl,Fl,Il,Ll,e),i&&(u.uv=Fc.getInterpolatedAttribute(i,s,c,l,e,new z)),a&&(u.uv1=Fc.getInterpolatedAttribute(a,s,c,l,e,new z)),o&&(u.normal=Fc.getInterpolatedAttribute(o,s,c,l,e,new B),u.normal.dot(r.direction)>0&&u.normal.multiplyScalar(-1));let t={a:s,b:c,c:l,normal:new B,materialIndex:0};Fc.getNormal(Fl,Il,Ll,t.normal),u.face=t,u.barycoord=e}return u}var Wl=new Ns,Gl=new Ns,Kl=new Ns,ql=new Ns,Jl=new Rs,Yl=new B,Xl=new sl,Zl=new Rs,Ql=new kl,$l=class extends H{constructor(e,t){super(e,t),this.isSkinnedMesh=!0,this.type=`SkinnedMesh`,this.bindMode=Xi,this.bindMatrix=new Rs,this.bindMatrixInverse=new Rs,this.boundingBox=null,this.boundingSphere=null}computeBoundingBox(){let e=this.geometry;this.boundingBox===null&&(this.boundingBox=new Ic),this.boundingBox.makeEmpty();let t=e.getAttribute(`position`);for(let e=0;e0?e.max.x:e.min.x,gu.y=r.normal.y>0?e.max.y:e.min.y,gu.z=r.normal.z>0?e.max.z:e.min.z,r.distanceToPoint(gu)<0)return!1}return!0}containsPoint(e){let t=this.planes;for(let n=0;n<6;n++)if(t[n].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}},vu=class extends wl{constructor(e){super(),this.isLineBasicMaterial=!0,this.type=`LineBasicMaterial`,this.color=new V(16777215),this.map=null,this.linewidth=1,this.linecap=`round`,this.linejoin=`round`,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.linewidth=e.linewidth,this.linecap=e.linecap,this.linejoin=e.linejoin,this.fog=e.fog,this}},yu=new B,bu=new B,xu=new Rs,Su=new kl,Cu=new sl,wu=new B,Tu=new B,Eu=class extends dc{constructor(e=new hl,t=new vu){super(),this.isLine=!0,this.type=`Line`,this.geometry=e,this.material=t,this.morphTargetDictionary=void 0,this.morphTargetInfluences=void 0,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}computeLineDistances(){let e=this.geometry;if(e.index===null){let t=e.attributes.position,n=[0];for(let e=1,r=t.count;e0){let n=e[t[0]];if(n!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;er)return;wu.applyMatrix4(e.matrixWorld);let c=t.ray.origin.distanceTo(wu);if(!(ct.far))return{distance:c,point:Tu.clone().applyMatrix4(e.matrixWorld),index:o,face:null,faceIndex:null,barycoord:null,object:e}}var Ou=new B,ku=new B,Au=class extends Eu{constructor(e,t){super(e,t),this.isLineSegments=!0,this.type=`LineSegments`}computeLineDistances(){let e=this.geometry;if(e.index===null){let t=e.attributes.position,n=[];for(let e=0,r=t.count;e0){let n=e[t[0]];if(n!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;ei.far)return;a.push({distance:c,distanceToRay:Math.sqrt(s),point:n,index:t,face:null,faceIndex:null,barycoord:null,object:o})}}var zu=class extends Ms{constructor(e=[],t=301,n,r,i,a,o,s,c,l){super(e,t,n,r,i,a,o,s,c,l),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}},Bu=class extends Ms{constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r,i,a,o,s,c),this.isCanvasTexture=!0,this.needsUpdate=!0}},Vu=class extends Ms{constructor(e,t,n=da,r,i,a,o=ea,s=ea,c,l=Sa,u=1){if(l!==1026&&l!==1027)throw Error(`THREE.DepthTexture: format must be either THREE.DepthFormat or THREE.DepthStencilFormat`);super({width:e,height:t,depth:u},r,i,a,o,s,l,n,c),this.isDepthTexture=!0,this.flipY=!1,this.generateMipmaps=!1,this.compareFunction=null}copy(e){return super.copy(e),this.source=new Os(Object.assign({},e.image)),this.compareFunction=e.compareFunction,this}toJSON(e){let t=super.toJSON(e);return t.compareFunction=this.compareFunction,t}},Hu=class extends Vu{constructor(e,t=da,n=301,r,i,a=ea,o=ea,s,c=Sa){let l={width:e,height:e,depth:1},u=[l,l,l,l,l,l];super(e,e,t,n,r,i,a,o,s,c),this.image=u,this.isCubeDepthTexture=!0,this.isCubeTexture=!0}get images(){return this.image}set images(e){this.image=e}},Uu=class extends Ms{constructor(e=null){super(),this.sourceTexture=e,this.isExternalTexture=!0}copy(e){return super.copy(e),this.sourceTexture=e.sourceTexture,this}},Wu=class e extends hl{constructor(e=1,t=1,n=1,r=1,i=1,a=1){super(),this.type=`BoxGeometry`,this.parameters={width:e,height:t,depth:n,widthSegments:r,heightSegments:i,depthSegments:a};let o=this;r=Math.floor(r),i=Math.floor(i),a=Math.floor(a);let s=[],c=[],l=[],u=[],d=0,f=0;p(`z`,`y`,`x`,-1,-1,n,t,e,a,i,0),p(`z`,`y`,`x`,1,-1,n,t,-e,a,i,1),p(`x`,`z`,`y`,1,1,e,n,t,r,a,2),p(`x`,`z`,`y`,1,-1,e,n,-t,r,a,3),p(`x`,`y`,`z`,1,-1,e,t,n,r,i,4),p(`x`,`y`,`z`,-1,-1,e,t,-n,r,i,5),this.setIndex(s),this.setAttribute(`position`,new rl(c,3)),this.setAttribute(`normal`,new rl(l,3)),this.setAttribute(`uv`,new rl(u,2));function p(e,t,n,r,i,a,p,m,h,g,_){let v=a/h,y=p/g,b=a/2,x=p/2,S=m/2,C=h+1,w=g+1,T=0,E=0,D=new B;for(let a=0;a0?1:-1,l.push(D.x,D.y,D.z),u.push(s/h),u.push(1-a/g),T+=1}for(let e=0;e0){let e=(_-1)*m;for(let t=0;t0&&v(!0),t>0&&v(!1)),this.setIndex(l),this.setAttribute(`position`,new rl(u,3)),this.setAttribute(`normal`,new rl(d,3)),this.setAttribute(`uv`,new rl(f,2));function _(){let a=new B,_=new B,v=0,y=(t-e)/n;for(let c=0;c<=i;c++){let l=[],g=c/i,v=g*(t-e)+e;for(let e=0;e<=r;e++){let t=e/r,i=t*s+o,c=Math.sin(i),m=Math.cos(i);_.x=v*c,_.y=-g*n+h,_.z=v*m,u.push(_.x,_.y,_.z),a.set(c,y,m).normalize(),d.push(a.x,a.y,a.z),f.push(t,1-g),l.push(p++)}m.push(l)}for(let n=0;n0||r!==0)&&(l.push(a,o,c),v+=3),(t>0||r!==i-1)&&(l.push(o,s,c),v+=3)}c.addGroup(g,v,0),g+=v}function v(n){let i=p,a=new z,m=new B,_=0,v=n===!0?e:t,y=n===!0?1:-1;for(let e=1;e<=r;e++)u.push(0,h*y,0),d.push(0,y,0),f.push(.5,.5),p++;let b=p;for(let e=0;e<=r;e++){let t=e/r*s+o,n=Math.cos(t),i=Math.sin(t);m.x=v*i,m.y=h*y,m.z=v*n,u.push(m.x,m.y,m.z),d.push(0,y,0),a.x=n*.5+.5,a.y=i*.5*y+.5,f.push(a.x,a.y),p++}for(let e=0;e.9&&Math.min(t,n,r)<.1&&(t<.2&&(a[e+0]+=1),n<.2&&(a[e+2]+=1),r<.2&&(a[e+4]+=1))}}function d(e){i.push(e.x,e.y,e.z)}function f(t,n){let r=t*3;n.x=e[r+0],n.y=e[r+1],n.z=e[r+2]}function p(){let e=new B,t=new B,n=new B,r=new B,o=new z,s=new z,c=new z;for(let l=0,u=0;l0)s=r-1;else{s=r;break}if(r=s,n[r]===a)return r/(i-1);let l=n[r],u=n[r+1]-l,d=(a-l)/u;return(r+d)/(i-1)}getTangent(e,t){let n=1e-4,r=e-n,i=e+n;r<0&&(r=0),i>1&&(i=1);let a=this.getPoint(r),o=this.getPoint(i),s=t||(a.isVector2?new z:new B);return s.copy(o).sub(a).normalize(),s}getTangentAt(e,t){let n=this.getUtoTmapping(e);return this.getTangent(n,t)}computeFrenetFrames(e,t=!1){let n=new B,r=[],i=[],a=[],o=new B,s=new Rs;for(let t=0;t<=e;t++){let n=t/e;r[t]=this.getTangentAt(n,new B)}i[0]=new B,a[0]=new B;let c=Number.MAX_VALUE,l=Math.abs(r[0].x),u=Math.abs(r[0].y),d=Math.abs(r[0].z);l<=c&&(c=l,n.set(1,0,0)),u<=c&&(c=u,n.set(0,1,0)),d<=c&&n.set(0,0,1),o.crossVectors(r[0],n).normalize(),i[0].crossVectors(r[0],o),a[0].crossVectors(r[0],i[0]);for(let t=1;t<=e;t++){if(i[t]=i[t-1].clone(),a[t]=a[t-1].clone(),o.crossVectors(r[t-1],r[t]),o.length()>2**-52){o.normalize();let e=Math.acos(qo(r[t-1].dot(r[t]),-1,1));i[t].applyMatrix4(s.makeRotationAxis(o,e))}a[t].crossVectors(r[t],i[t])}if(t===!0){let t=Math.acos(qo(i[0].dot(i[e]),-1,1));t/=e,r[0].dot(o.crossVectors(i[0],i[e]))>0&&(t=-t);for(let n=1;n<=e;n++)i[n].applyMatrix4(s.makeRotationAxis(r[n],t*n)),a[n].crossVectors(r[n],i[n])}return{tangents:r,normals:i,binormals:a}}clone(){return new this.constructor().copy(this)}copy(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}toJSON(){let e={metadata:{version:4.7,type:`Curve`,generator:`Curve.toJSON`}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.type,e}fromJSON(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}},Zu=class extends Xu{constructor(e=0,t=0,n=1,r=1,i=0,a=Math.PI*2,o=!1,s=0){super(),this.isEllipseCurve=!0,this.type=`EllipseCurve`,this.aX=e,this.aY=t,this.xRadius=n,this.yRadius=r,this.aStartAngle=i,this.aEndAngle=a,this.aClockwise=o,this.aRotation=s}getPoint(e,t=new z){let n=t,r=Math.PI*2,i=this.aEndAngle-this.aStartAngle,a=Math.abs(i)<2**-52;for(;i<0;)i+=r;for(;i>r;)i-=r;i<2**-52&&(i=a?0:r),this.aClockwise===!0&&!a&&(i===r?i=-r:i-=r);let o=this.aStartAngle+e*i,s=this.aX+this.xRadius*Math.cos(o),c=this.aY+this.yRadius*Math.sin(o);if(this.aRotation!==0){let e=Math.cos(this.aRotation),t=Math.sin(this.aRotation),n=s-this.aX,r=c-this.aY;s=n*e-r*t+this.aX,c=n*t+r*e+this.aY}return n.set(s,c)}copy(e){return super.copy(e),this.aX=e.aX,this.aY=e.aY,this.xRadius=e.xRadius,this.yRadius=e.yRadius,this.aStartAngle=e.aStartAngle,this.aEndAngle=e.aEndAngle,this.aClockwise=e.aClockwise,this.aRotation=e.aRotation,this}toJSON(){let e=super.toJSON();return e.aX=this.aX,e.aY=this.aY,e.xRadius=this.xRadius,e.yRadius=this.yRadius,e.aStartAngle=this.aStartAngle,e.aEndAngle=this.aEndAngle,e.aClockwise=this.aClockwise,e.aRotation=this.aRotation,e}fromJSON(e){return super.fromJSON(e),this.aX=e.aX,this.aY=e.aY,this.xRadius=e.xRadius,this.yRadius=e.yRadius,this.aStartAngle=e.aStartAngle,this.aEndAngle=e.aEndAngle,this.aClockwise=e.aClockwise,this.aRotation=e.aRotation,this}},Qu=class extends Zu{constructor(e,t,n,r,i,a){super(e,t,n,n,r,i,a),this.isArcCurve=!0,this.type=`ArcCurve`}};function $u(){let e=0,t=0,n=0,r=0;function i(i,a,o,s){e=i,t=o,n=-3*i+3*a-2*o-s,r=2*i-2*a+o+s}return{initCatmullRom:function(e,t,n,r,a){i(t,n,a*(n-e),a*(r-t))},initNonuniformCatmullRom:function(e,t,n,r,a,o,s){let c=(t-e)/a-(n-e)/(a+o)+(n-t)/o,l=(n-t)/o-(r-t)/(o+s)+(r-n)/s;c*=o,l*=o,i(t,n,c,l)},calc:function(i){let a=i*i,o=a*i;return e+t*i+n*a+r*o}}}var ed=new B,td=new B,nd=new $u,rd=new $u,id=new $u,ad=class extends Xu{constructor(e=[],t=!1,n=`centripetal`,r=.5){super(),this.isCatmullRomCurve3=!0,this.type=`CatmullRomCurve3`,this.points=e,this.closed=t,this.curveType=n,this.tension=r}getPoint(e,t=new B){let n=t,r=this.points,i=r.length,a=(i-+!this.closed)*e,o=Math.floor(a),s=a-o;this.closed?o+=o>0?0:(Math.floor(Math.abs(o)/i)+1)*i:s===0&&o===i-1&&(o=i-2,s=1);let c,l;this.closed||o>0?c=r[(o-1)%i]:(td.subVectors(r[0],r[1]).add(r[0]),c=td);let u=r[o%i],d=r[(o+1)%i];if(this.closed||o+2r.length-2?r.length-1:a+1],u=r[a>r.length-3?r.length-1:a+2];return n.set(od(o,s.x,c.x,l.x,u.x),od(o,s.y,c.y,l.y,u.y)),n}copy(e){super.copy(e),this.points=[];for(let t=0,n=e.points.length;t0)&&f.push(t,i,c),(e!==n-1||s0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;let n={};for(let e in this.extensions)this.extensions[e]===!0&&(n[e]=!0);return Object.keys(n).length>0&&(t.extensions=n),t}fromJSON(e,t){if(super.fromJSON(e,t),e.uniforms!==void 0)for(let n in e.uniforms){let r=e.uniforms[n];switch(this.uniforms[n]={},r.type){case`t`:this.uniforms[n].value=t[r.value]||null;break;case`c`:this.uniforms[n].value=new V().setHex(r.value);break;case`v2`:this.uniforms[n].value=new z().fromArray(r.value);break;case`v3`:this.uniforms[n].value=new B().fromArray(r.value);break;case`v4`:this.uniforms[n].value=new Ss().fromArray(r.value);break;case`m3`:this.uniforms[n].value=new os().fromArray(r.value);break;case`m4`:this.uniforms[n].value=new Ds().fromArray(r.value);break;default:this.uniforms[n].value=r.value}}if(e.defines!==void 0&&(this.defines=e.defines),e.vertexShader!==void 0&&(this.vertexShader=e.vertexShader),e.fragmentShader!==void 0&&(this.fragmentShader=e.fragmentShader),e.glslVersion!==void 0&&(this.glslVersion=e.glslVersion),e.extensions!==void 0)for(let t in e.extensions)this.extensions[t]=e.extensions[t];return e.lights!==void 0&&(this.lights=e.lights),e.clipping!==void 0&&(this.clipping=e.clipping),this}},Ad=class extends kd{constructor(e){super(e),this.isRawShaderMaterial=!0,this.type=`RawShaderMaterial`}},jd=class extends pl{constructor(e){super(),this.isMeshStandardMaterial=!0,this.type=`MeshStandardMaterial`,this.defines={STANDARD:``},this.color=new V(16777215),this.roughness=1,this.metalness=0,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new V(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new z(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.roughnessMap=null,this.metalnessMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new Ls,this.envMapIntensity=1,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap=`round`,this.wireframeLinejoin=`round`,this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.defines={STANDARD:``},this.color.copy(e.color),this.roughness=e.roughness,this.metalness=e.metalness,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.roughnessMap=e.roughnessMap,this.metalnessMap=e.metalnessMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.envMapIntensity=e.envMapIntensity,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}},Md=class extends jd{constructor(e){super(),this.isMeshPhysicalMaterial=!0,this.defines={STANDARD:``,PHYSICAL:``},this.type=`MeshPhysicalMaterial`,this.anisotropyRotation=0,this.anisotropyMap=null,this.clearcoatMap=null,this.clearcoatRoughness=0,this.clearcoatRoughnessMap=null,this.clearcoatNormalScale=new z(1,1),this.clearcoatNormalMap=null,this.ior=1.5,Object.defineProperty(this,"reflectivity",{get:function(){return Io(2.5*(this.ior-1)/(this.ior+1),0,1)},set:function(e){this.ior=(1+.4*e)/(1-.4*e)}}),this.iridescenceMap=null,this.iridescenceIOR=1.3,this.iridescenceThicknessRange=[100,400],this.iridescenceThicknessMap=null,this.sheenColor=new V(0),this.sheenColorMap=null,this.sheenRoughness=1,this.sheenRoughnessMap=null,this.transmissionMap=null,this.thickness=0,this.thicknessMap=null,this.attenuationDistance=1/0,this.attenuationColor=new V(1,1,1),this.specularIntensity=1,this.specularIntensityMap=null,this.specularColor=new V(1,1,1),this.specularColorMap=null,this._anisotropy=0,this._clearcoat=0,this._dispersion=0,this._iridescence=0,this._retroreflectivity=0,this._sheen=0,this._transmission=0,this.setValues(e)}get anisotropy(){return this._anisotropy}set anisotropy(e){this._anisotropy>0!=e>0&&this.version++,this._anisotropy=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!=e>0&&this.version++,this._clearcoat=e}get iridescence(){return this._iridescence}set iridescence(e){this._iridescence>0!=e>0&&this.version++,this._iridescence=e}get dispersion(){return this._dispersion}set dispersion(e){this._dispersion>0!=e>0&&this.version++,this._dispersion=e}get retroreflectivity(){return this._retroreflectivity}set retroreflectivity(e){this._retroreflectivity>0!=e>0&&this.version++,this._retroreflectivity=e}get sheen(){return this._sheen}set sheen(e){this._sheen>0!=e>0&&this.version++,this._sheen=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!=e>0&&this.version++,this._transmission=e}copy(e){return super.copy(e),this.defines={STANDARD:``,PHYSICAL:``},this.anisotropy=e.anisotropy,this.anisotropyRotation=e.anisotropyRotation,this.anisotropyMap=e.anisotropyMap,this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.dispersion=e.dispersion,this.ior=e.ior,this.iridescence=e.iridescence,this.iridescenceMap=e.iridescenceMap,this.iridescenceIOR=e.iridescenceIOR,this.iridescenceThicknessRange=[...e.iridescenceThicknessRange],this.iridescenceThicknessMap=e.iridescenceThicknessMap,this.retroreflectivity=e.retroreflectivity,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}},Nd=class extends pl{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type=`MeshDepthMaterial`,this.depthPacking=co,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}},Pd=class extends pl{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type=`MeshDistanceMaterial`,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}};function Fd(e,t){return!e||e.constructor===t?e:typeof t.BYTES_PER_ELEMENT==`number`?new t(e):Array.prototype.slice.call(e)}function Id(e){return e!==void 0&&e.inTangents!==void 0&&e.outTangents!==void 0}function Ld(e){function t(t,n){return e[t]-e[n]}let n=e.length,r=Array(n);for(let e=0;e!==n;++e)r[e]=e;return r.sort(t),r}function Rd(e,t,n){let r=e.length,i=new e.constructor(r);for(let a=0,o=0;o!==r;++a){let r=n[a]*t;for(let n=0;n!==t;++n)i[o++]=e[r+n]}return i}function zd(e,t,n,r){let i=1,a=e[0];for(;a!==void 0&&a[r]===void 0;)a=e[i++];if(a===void 0)return;let o=a[r];if(o!==void 0){if(Array.isArray(o))do o=a[r],o!==void 0&&(t.push(a.time),n.push(...o)),a=e[i++];while(a!==void 0);else if(o.toArray!==void 0)do o=a[r],o!==void 0&&(t.push(a.time),o.toArray(n,n.length)),a=e[i++];while(a!==void 0);else do o=a[r],o!==void 0&&(t.push(a.time),n.push(o)),a=e[i++];while(a!==void 0)}}var Bd=class{constructor(e,t,n,r){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=r===void 0?new t.constructor(n):r,this.sampleValues=t,this.valueSize=n,this.settings=null,this.DefaultSettings_={}}evaluate(e){let t=this.parameterPositions,n=this._cachedIndex,r=t[n],i=t[n-1];validate_interval:{seek:{let a;linear_scan:{forward_scan:if(!(e=i)){let o=t[1];e=i)break seek}a=n,n=0;break linear_scan}break validate_interval}for(;n>>1;et;)--a;if(++a,i!==0||a!==r){i>=a&&(a=Math.max(a,1),i=a-1);let e=this.getValueSize();this.times=n.slice(i,a),this.values=this.values.slice(i*e,a*e)}return this}validate(){let e=!0,t=this.getValueSize();t-Math.floor(t)!==0&&(Eo(`KeyframeTrack: Invalid value size in track.`,this),e=!1);let n=this.times,r=this.values,i=n.length;i===0&&(Eo(`KeyframeTrack: Track is empty.`,this),e=!1);let a=null;for(let t=0;t!==i;t++){let r=n[t];if(typeof r==`number`&&isNaN(r)){Eo(`KeyframeTrack: Time is not a valid number.`,this,t,r),e=!1;break}if(a!==null&&a>r){Eo(`KeyframeTrack: Out of order keys.`,this,t,r,a),e=!1;break}a=r}if(r!==void 0&&yo(r))for(let t=0,n=r.length;t!==n;++t){let n=r[t];if(isNaN(n)){Eo(`KeyframeTrack: Value is not a valid number.`,this,t,n),e=!1;break}}return e}optimize(){let e=this.times.slice(),t=this.values.slice(),n=this.getValueSize(),r=this.getInterpolation()===no,i=e.length-1,a=1;for(let o=1;o0){e[a]=e[i];for(let e=i*n,r=a*n,o=0;o!==n;++o)t[r+o]=t[e+o];++a}return a===e.length?(this.times=e,this.values=t):(this.times=e.slice(0,a),this.values=t.slice(0,a*n)),this}clone(){let e=this.times.slice(),t=this.values.slice(),n=this.constructor,r=new n(this.name,e,t);return r.createInterpolant=this.createInterpolant,Id(this.settings)&&(r.settings={inTangents:this.settings.inTangents.slice(),outTangents:this.settings.outTangents.slice()}),r}};function Yd(e,t){for(let n=0,r=e.length;n!==r;n+=2)e[n]*=t}Jd.prototype.ValueTypeName=``,Jd.prototype.TimeBufferType=Float32Array,Jd.prototype.ValueBufferType=Float32Array,Jd.prototype.DefaultInterpolation=to;var Xd=class extends Jd{constructor(e,t,n){super(e,t,n)}};Xd.prototype.ValueTypeName=`bool`,Xd.prototype.ValueBufferType=Array,Xd.prototype.DefaultInterpolation=eo,Xd.prototype.InterpolantFactoryMethodLinear=void 0,Xd.prototype.InterpolantFactoryMethodSmooth=void 0;var Zd=class extends Jd{constructor(e,t,n,r){super(e,t,n,r)}};Zd.prototype.ValueTypeName=`color`;var Qd=class extends Jd{constructor(e,t,n,r){super(e,t,n,r)}};Qd.prototype.ValueTypeName=`number`;var $d=class extends Bd{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e,t,n,r){let i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=(n-t)/(r-t),c=e*o;for(let e=c+o;c!==e;c+=4)rs.slerpFlat(i,0,a,c-o,a,c,s);return i}},ef=class extends Jd{constructor(e,t,n,r){super(e,t,n,r)}InterpolantFactoryMethodLinear(e){return new $d(this.times,this.values,this.getValueSize(),e)}};ef.prototype.ValueTypeName=`quaternion`,ef.prototype.InterpolantFactoryMethodSmooth=void 0;var tf=class extends Jd{constructor(e,t,n){super(e,t,n)}};tf.prototype.ValueTypeName=`string`,tf.prototype.ValueBufferType=Array,tf.prototype.DefaultInterpolation=eo,tf.prototype.InterpolantFactoryMethodLinear=void 0,tf.prototype.InterpolantFactoryMethodSmooth=void 0;var nf=class extends Jd{constructor(e,t,n,r){super(e,t,n,r)}};nf.prototype.ValueTypeName=`vector`;var rf=class{constructor(e=``,t=-1,n=[],r=so){this.name=e,this.tracks=n,this.duration=t,this.blendMode=r,this.uuid=Fo(),this.userData={},this.duration<0&&this.resetDuration()}static parse(e){let t=[],n=e.tracks,r=1/(e.fps||1);for(let e=0,i=n.length;e!==i;++e)t.push(of(n[e]).scale(r));let i=new this(e.name,e.duration,t,e.blendMode);return i.uuid=e.uuid,i.userData=JSON.parse(e.userData||`{}`),i}static toJSON(e){let t=[],n=e.tracks,r={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode,userData:JSON.stringify(e.userData)};for(let e=0,r=n.length;e!==r;++e)t.push(Jd.toJSON(n[e]));return r}static CreateFromMorphTargetSequence(e,t,n,r){let i=t.length,a=[];for(let e=0;e1){let e=a[1],t=r[e];t||(r[e]=t=[]),t.push(n)}}let a=[];for(let e in r)a.push(this.CreateFromMorphTargetSequence(e,r[e],t,n));return a}resetDuration(){let e=this.tracks,t=0;for(let n=0,r=e.length;n!==r;++n){let e=this.tracks[n];t=Math.max(t,e.times[e.times.length-1])}return this.duration=t,this}trim(){for(let e=0;e{t&&t(i),this.manager.itemEnd(e)},0);return}if(df[e]!==void 0){df[e].push({onLoad:t,onProgress:n,onError:r});return}df[e]=[],df[e].push({onLoad:t,onProgress:n,onError:r});let a=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?`include`:`same-origin`,signal:typeof AbortSignal.any==`function`?AbortSignal.any([this._abortController.signal,this.manager.abortController.signal]):this._abortController.signal}),o=this.mimeType,s=this.responseType;fetch(a).then(t=>{if(t.status===200||t.status===0){if(t.status===0&&To(`FileLoader: HTTP Status 0 received.`),typeof ReadableStream>`u`||t.body===void 0||t.body.getReader===void 0)return t;let n=df[e],r=t.body.getReader(),i=t.headers.get(`X-File-Size`)||t.headers.get(`Content-Length`),a=i?parseInt(i):0,o=a!==0,s=0,c=new ReadableStream({start(e){t();function t(){r.read().then(({done:r,value:i})=>{if(r)e.close();else{s+=i.byteLength;let r=new ProgressEvent(`progress`,{lengthComputable:o,loaded:s,total:a});for(let e=0,t=n.length;e{e.error(t)})}}});return new Response(c)}throw new ff(`fetch for "${t.url}" responded with ${t.status}: ${t.statusText}`,t)}).then(e=>{switch(s){case`arraybuffer`:return e.arrayBuffer();case`blob`:return e.blob();case`document`:return e.text().then(e=>new DOMParser().parseFromString(e,o));case`json`:return e.json();default:if(o===``)return e.text();{let t=/charset="?([^;"\s]*)"?/i.exec(o),n=t&&t[1]?t[1].toLowerCase():void 0,r=new TextDecoder(n);return e.arrayBuffer().then(e=>r.decode(e))}}}).then(t=>{sf.add(`file:${e}`,t);let n=df[e];delete df[e];for(let e=0,r=n.length;e{let n=df[e];if(n===void 0)throw this.manager.itemError(e),t;delete df[e];for(let e=0,r=n.length;e{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}abort(){return this._abortController.abort(),this._abortController=new AbortController,this}},mf=new WeakMap,hf=class extends uf{constructor(e){super(e)}load(e,t,n,r){this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);let i=this,a=sf.get(`image:${e}`);if(a!==void 0){if(a.complete===!0)i.manager.itemStart(e),setTimeout(function(){t&&t(a),i.manager.itemEnd(e)},0);else{let e=mf.get(a);e===void 0&&(e=[],mf.set(a,e)),e.push({onLoad:t,onError:r})}return a}let o=bo(`img`);function s(){l(),t&&t(this);let n=mf.get(this)||[];for(let e=0;e`u`&&To(`ImageBitmapLoader: createImageBitmap() not supported.`),typeof fetch>`u`&&To(`ImageBitmapLoader: fetch() not supported.`),this.options={premultiplyAlpha:`none`},this._abortController=new AbortController}setOptions(e){return this.options=e,this}load(e,t,n,r){e===void 0&&(e=``),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);let i=this,a=sf.get(`image-bitmap:${e}`);if(a!==void 0){if(i.manager.itemStart(e),a.then){a.then(n=>{zf.has(a)===!0?(r&&r(zf.get(a)),i.manager.itemError(e),i.manager.itemEnd(e)):(t&&t(n),i.manager.itemEnd(e))});return}setTimeout(function(){t&&t(a),i.manager.itemEnd(e)},0);return}let o={};o.credentials=this.crossOrigin===`anonymous`?`same-origin`:`include`,o.headers=this.requestHeader,o.signal=typeof AbortSignal.any==`function`?AbortSignal.any([this._abortController.signal,this.manager.abortController.signal]):this._abortController.signal;let s=fetch(e,o).then(function(e){return e.blob()}).then(function(e){return createImageBitmap(e,Object.assign({},i.options,{colorSpaceConversion:`none`}))}).then(function(n){return sf.add(`image-bitmap:${e}`,n),t&&t(n),i.manager.itemEnd(e),n}).catch(function(t){r&&r(t),zf.set(s,t),sf.remove(`image-bitmap:${e}`),i.manager.itemError(e),i.manager.itemEnd(e)});sf.add(`image-bitmap:${e}`,s),i.manager.itemStart(e)}abort(){return this._abortController.abort(),this._abortController=new AbortController,this}},Vf=-90,Hf=1,Uf=class extends ec{constructor(e,t,n){super(),this.type=`CubeCamera`,this.renderTarget=n,this.coordinateSystem=null,this.activeMipmapLevel=0;let r=new Af(Vf,Hf,e,t);r.layers=this.layers,this.add(r);let i=new Af(Vf,Hf,e,t);i.layers=this.layers,this.add(i);let a=new Af(Vf,Hf,e,t);a.layers=this.layers,this.add(a);let o=new Af(Vf,Hf,e,t);o.layers=this.layers,this.add(o);let s=new Af(Vf,Hf,e,t);s.layers=this.layers,this.add(s);let c=new Af(Vf,Hf,e,t);c.layers=this.layers,this.add(c)}updateCoordinateSystem(){let e=this.coordinateSystem,t=this.children.concat(),[n,r,i,a,o,s]=t;for(let e of t)this.remove(e);if(e===2e3)n.up.set(0,1,0),n.lookAt(1,0,0),r.up.set(0,1,0),r.lookAt(-1,0,0),i.up.set(0,0,-1),i.lookAt(0,1,0),a.up.set(0,0,1),a.lookAt(0,-1,0),o.up.set(0,1,0),o.lookAt(0,0,1),s.up.set(0,1,0),s.lookAt(0,0,-1);else if(e===2001)n.up.set(0,-1,0),n.lookAt(-1,0,0),r.up.set(0,-1,0),r.lookAt(1,0,0),i.up.set(0,0,1),i.lookAt(0,1,0),a.up.set(0,0,-1),a.lookAt(0,-1,0),o.up.set(0,-1,0),o.lookAt(0,0,1),s.up.set(0,-1,0),s.lookAt(0,0,-1);else throw Error(`THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: `+e);for(let e of t)this.add(e),e.updateMatrixWorld()}update(e,t){this.parent===null&&this.updateMatrixWorld();let{renderTarget:n,activeMipmapLevel:r}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());let[i,a,o,s,c,l]=this.children,u=e.getRenderTarget(),d=e.getActiveCubeFace(),f=e.getActiveMipmapLevel(),p=e.xr.enabled;e.xr.enabled=!1;let m=n.texture.generateMipmaps;n.texture.generateMipmaps=!1;let h=!1;h=e.isWebGLRenderer===!0?e.state.buffers.depth.getReversed():e.reversedDepthBuffer,e.setRenderTarget(n,0,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,i),e.setRenderTarget(n,1,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,a),e.setRenderTarget(n,2,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,o),e.setRenderTarget(n,3,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,s),e.setRenderTarget(n,4,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,c),n.texture.generateMipmaps=m,e.setRenderTarget(n,5,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,l),e.setRenderTarget(u,d,f),e.xr.enabled=p,n.texture.needsPMREMUpdate=!0}},Wf=class extends Af{constructor(e=[]){super(),this.isArrayCamera=!0,this.isMultiViewCamera=!1,this.cameras=e}},Gf=class{constructor(){this._previousTime=0,this._currentTime=0,this._startTime=performance.now(),this._delta=0,this._elapsed=0,this._timescale=1,this._document=null,this._pageVisibilityHandler=null}connect(e){this._document=e,e.hidden!==void 0&&(this._pageVisibilityHandler=Kf.bind(this),e.addEventListener(`visibilitychange`,this._pageVisibilityHandler,!1))}disconnect(){this._pageVisibilityHandler!==null&&(this._document.removeEventListener(`visibilitychange`,this._pageVisibilityHandler),this._pageVisibilityHandler=null),this._document=null}getDelta(){return this._delta/1e3}getElapsed(){return this._elapsed/1e3}getTimescale(){return this._timescale}setTimescale(e){return this._timescale=e,this}reset(){return this._currentTime=performance.now()-this._startTime,this}dispose(){this.disconnect()}update(e){return this._pageVisibilityHandler!==null&&this._document.hidden===!0?this._delta=0:(this._previousTime=this._currentTime,this._currentTime=(e===void 0?performance.now():e)-this._startTime,this._delta=(this._currentTime-this._previousTime)*this._timescale,this._elapsed+=this._delta),this}};function Kf(){this._document.hidden===!1&&this.reset()}var qf=`\\[\\]\\.:\\/`,Jf=RegExp(`[\\[\\]\\.:\\/]`,`g`),Yf=`[^\\[\\]\\.:\\/]`,Xf=`[^`+qf.replace(`\\.`,``)+`]`,Zf=`((?:WC+[\\/:])*)`.replace(`WC`,Yf),Qf=`(WCOD+)?`.replace(`WCOD`,Xf),$f=`(?:\\.(WC+)(?:\\[(.+)\\])?)?`.replace(`WC`,Yf),ep=`\\.(WC+)(?:\\[(.+)\\])?`.replace(`WC`,Yf),tp=RegExp(`^`+Zf+Qf+$f+ep+`$`),np=[`material`,`materials`,`bones`,`map`],rp=class{constructor(e,t,n){let r=n||ip.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,r)}getValue(e,t){this.bind();let n=this._targetGroup.nCachedObjects_,r=this._bindings[n];r!==void 0&&r.getValue(e,t)}setValue(e,t){let n=this._bindings;for(let r=this._targetGroup.nCachedObjects_,i=n.length;r!==i;++r)n[r].setValue(e,t)}bind(){let e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].bind()}unbind(){let e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].unbind()}},ip=class e{constructor(t,n,r){this.path=n,this.parsedPath=r||e.parseTrackName(n),this.node=e.findNode(t,this.parsedPath.nodeName),this.rootNode=t,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(t,n,r){return t&&t.isAnimationObjectGroup?new e.Composite(t,n,r):new e(t,n,r)}static sanitizeNodeName(e){return e.replace(/\s/g,`_`).replace(Jf,``)}static parseTrackName(e){let t=tp.exec(e);if(t===null)throw Error(`THREE.PropertyBinding: Cannot parse trackName: `+e);let n={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},r=n.nodeName&&n.nodeName.lastIndexOf(`.`);if(r!==void 0&&r!==-1){let e=n.nodeName.substring(r+1);np.indexOf(e)!==-1&&(n.nodeName=n.nodeName.substring(0,r),n.objectName=e)}if(n.propertyName===null||n.propertyName.length===0)throw Error(`THREE.PropertyBinding: can not parse propertyName from trackName: `+e);return n}static findNode(e,t){if(t===void 0||t===``||t===`.`||t===-1||t===e.name||t===e.uuid)return e;if(e.skeleton){let n=e.skeleton.getBoneByName(t);if(n!==void 0)return n}if(e.children){let n=function(e){for(let r=0;r=this.min.x&&e.x<=this.max.x&&e.y>=this.min.y&&e.y<=this.max.y}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y))}intersectsBox(e){return e.max.x>=this.min.x&&e.min.x<=this.max.x&&e.max.y>=this.min.y&&e.min.y<=this.max.y}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,ap).distanceTo(e)}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}},sp=new B,cp=new Ds,lp=new Ds,up=class extends yu{constructor(e){let t=dp(e),n=new il,r=[],i=[];for(let e=0;ee.start-t.start);let t=0;for(let e=1;e0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;let n={};for(let e in this.extensions)this.extensions[e]===!0&&(n[e]=!0);return Object.keys(n).length>0&&(t.extensions=n),t}fromJSON(e,t){if(super.fromJSON(e,t),e.uniforms!==void 0)for(let n in e.uniforms){let r=e.uniforms[n];switch(this.uniforms[n]={},r.type){case`t`:this.uniforms[n].value=t[r.value]||null;break;case`c`:this.uniforms[n].value=new V().setHex(r.value);break;case`v2`:this.uniforms[n].value=new z().fromArray(r.value);break;case`v3`:this.uniforms[n].value=new B().fromArray(r.value);break;case`v4`:this.uniforms[n].value=new Ns().fromArray(r.value);break;case`m3`:this.uniforms[n].value=new _s().fromArray(r.value);break;case`m4`:this.uniforms[n].value=new Rs().fromArray(r.value);break;default:this.uniforms[n].value=r.value}}if(e.defines!==void 0&&(this.defines=e.defines),e.vertexShader!==void 0&&(this.vertexShader=e.vertexShader),e.fragmentShader!==void 0&&(this.fragmentShader=e.fragmentShader),e.glslVersion!==void 0&&(this.glslVersion=e.glslVersion),e.extensions!==void 0)for(let t in e.extensions)this.extensions[t]=e.extensions[t];return e.lights!==void 0&&(this.lights=e.lights),e.clipping!==void 0&&(this.clipping=e.clipping),this}},Vd=class extends Bd{constructor(e){super(e),this.isRawShaderMaterial=!0,this.type=`RawShaderMaterial`}},Hd=class extends wl{constructor(e){super(),this.isMeshStandardMaterial=!0,this.type=`MeshStandardMaterial`,this.defines={STANDARD:``},this.color=new V(16777215),this.roughness=1,this.metalness=0,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new V(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new z(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.roughnessMap=null,this.metalnessMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new Js,this.envMapIntensity=1,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap=`round`,this.wireframeLinejoin=`round`,this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.defines={STANDARD:``},this.color.copy(e.color),this.roughness=e.roughness,this.metalness=e.metalness,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.roughnessMap=e.roughnessMap,this.metalnessMap=e.metalnessMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.envMapIntensity=e.envMapIntensity,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}},Ud=class extends Hd{constructor(e){super(),this.isMeshPhysicalMaterial=!0,this.defines={STANDARD:``,PHYSICAL:``},this.type=`MeshPhysicalMaterial`,this.anisotropyRotation=0,this.anisotropyMap=null,this.clearcoatMap=null,this.clearcoatRoughness=0,this.clearcoatRoughnessMap=null,this.clearcoatNormalScale=new z(1,1),this.clearcoatNormalMap=null,this.ior=1.5,Object.defineProperty(this,"reflectivity",{get:function(){return qo(2.5*(this.ior-1)/(this.ior+1),0,1)},set:function(e){this.ior=(1+.4*e)/(1-.4*e)}}),this.iridescenceMap=null,this.iridescenceIOR=1.3,this.iridescenceThicknessRange=[100,400],this.iridescenceThicknessMap=null,this.sheenColor=new V(0),this.sheenColorMap=null,this.sheenRoughness=1,this.sheenRoughnessMap=null,this.transmissionMap=null,this.thickness=0,this.thicknessMap=null,this.attenuationDistance=1/0,this.attenuationColor=new V(1,1,1),this.specularIntensity=1,this.specularIntensityMap=null,this.specularColor=new V(1,1,1),this.specularColorMap=null,this._anisotropy=0,this._clearcoat=0,this._dispersion=0,this._iridescence=0,this._retroreflectivity=0,this._sheen=0,this._transmission=0,this.setValues(e)}get anisotropy(){return this._anisotropy}set anisotropy(e){this._anisotropy>0!=e>0&&this.version++,this._anisotropy=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!=e>0&&this.version++,this._clearcoat=e}get iridescence(){return this._iridescence}set iridescence(e){this._iridescence>0!=e>0&&this.version++,this._iridescence=e}get dispersion(){return this._dispersion}set dispersion(e){this._dispersion>0!=e>0&&this.version++,this._dispersion=e}get retroreflectivity(){return this._retroreflectivity}set retroreflectivity(e){this._retroreflectivity>0!=e>0&&this.version++,this._retroreflectivity=e}get sheen(){return this._sheen}set sheen(e){this._sheen>0!=e>0&&this.version++,this._sheen=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!=e>0&&this.version++,this._transmission=e}copy(e){return super.copy(e),this.defines={STANDARD:``,PHYSICAL:``},this.anisotropy=e.anisotropy,this.anisotropyRotation=e.anisotropyRotation,this.anisotropyMap=e.anisotropyMap,this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.dispersion=e.dispersion,this.ior=e.ior,this.iridescence=e.iridescence,this.iridescenceMap=e.iridescenceMap,this.iridescenceIOR=e.iridescenceIOR,this.iridescenceThicknessRange=[...e.iridescenceThicknessRange],this.iridescenceThicknessMap=e.iridescenceThicknessMap,this.retroreflectivity=e.retroreflectivity,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}},Wd=class extends wl{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type=`MeshDepthMaterial`,this.depthPacking=bo,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}},Gd=class extends wl{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type=`MeshDistanceMaterial`,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}};function Kd(e,t){return!e||e.constructor===t?e:typeof t.BYTES_PER_ELEMENT==`number`?new t(e):Array.prototype.slice.call(e)}function qd(e){return e!==void 0&&e.inTangents!==void 0&&e.outTangents!==void 0}function Jd(e){function t(t,n){return e[t]-e[n]}let n=e.length,r=Array(n);for(let e=0;e!==n;++e)r[e]=e;return r.sort(t),r}function Yd(e,t,n){let r=e.length,i=new e.constructor(r);for(let a=0,o=0;o!==r;++a){let r=n[a]*t;for(let n=0;n!==t;++n)i[o++]=e[r+n]}return i}function Xd(e,t,n,r){let i=1,a=e[0];for(;a!==void 0&&a[r]===void 0;)a=e[i++];if(a===void 0)return;let o=a[r];if(o!==void 0){if(Array.isArray(o))do o=a[r],o!==void 0&&(t.push(a.time),n.push(...o)),a=e[i++];while(a!==void 0);else if(o.toArray!==void 0)do o=a[r],o!==void 0&&(t.push(a.time),o.toArray(n,n.length)),a=e[i++];while(a!==void 0);else do o=a[r],o!==void 0&&(t.push(a.time),n.push(o)),a=e[i++];while(a!==void 0)}}var Zd=class{constructor(e,t,n,r){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=r===void 0?new t.constructor(n):r,this.sampleValues=t,this.valueSize=n,this.settings=null,this.DefaultSettings_={}}evaluate(e){let t=this.parameterPositions,n=this._cachedIndex,r=t[n],i=t[n-1];validate_interval:{seek:{let a;linear_scan:{forward_scan:if(!(e=i)){let o=t[1];e=i)break seek}a=n,n=0;break linear_scan}break validate_interval}for(;n>>1;et;)--a;if(++a,i!==0||a!==r){i>=a&&(a=Math.max(a,1),i=a-1);let e=this.getValueSize();this.times=n.slice(i,a),this.values=this.values.slice(i*e,a*e)}return this}validate(){let e=!0,t=this.getValueSize();t-Math.floor(t)!==0&&(Lo(`KeyframeTrack: Invalid value size in track.`,this),e=!1);let n=this.times,r=this.values,i=n.length;i===0&&(Lo(`KeyframeTrack: Track is empty.`,this),e=!1);let a=null;for(let t=0;t!==i;t++){let r=n[t];if(typeof r==`number`&&isNaN(r)){Lo(`KeyframeTrack: Time is not a valid number.`,this,t,r),e=!1;break}if(a!==null&&a>r){Lo(`KeyframeTrack: Out of order keys.`,this,t,r,a),e=!1;break}a=r}if(r!==void 0&&Ao(r))for(let t=0,n=r.length;t!==n;++t){let n=r[t];if(isNaN(n)){Lo(`KeyframeTrack: Value is not a valid number.`,this,t,n),e=!1;break}}return e}optimize(){let e=this.times.slice(),t=this.values.slice(),n=this.getValueSize(),r=this.getInterpolation()===mo,i=e.length-1,a=1;for(let o=1;o0){e[a]=e[i];for(let e=i*n,r=a*n,o=0;o!==n;++o)t[r+o]=t[e+o];++a}return a===e.length?(this.times=e,this.values=t):(this.times=e.slice(0,a),this.values=t.slice(0,a*n)),this}clone(){let e=this.times.slice(),t=this.values.slice(),n=this.constructor,r=new n(this.name,e,t);return r.createInterpolant=this.createInterpolant,qd(this.settings)&&(r.settings={inTangents:this.settings.inTangents.slice(),outTangents:this.settings.outTangents.slice()}),r}};function sf(e,t){for(let n=0,r=e.length;n!==r;n+=2)e[n]*=t}of.prototype.ValueTypeName=``,of.prototype.TimeBufferType=Float32Array,of.prototype.ValueBufferType=Float32Array,of.prototype.DefaultInterpolation=po;var cf=class extends of{constructor(e,t,n){super(e,t,n)}};cf.prototype.ValueTypeName=`bool`,cf.prototype.ValueBufferType=Array,cf.prototype.DefaultInterpolation=fo,cf.prototype.InterpolantFactoryMethodLinear=void 0,cf.prototype.InterpolantFactoryMethodSmooth=void 0;var lf=class extends of{constructor(e,t,n,r){super(e,t,n,r)}};lf.prototype.ValueTypeName=`color`;var uf=class extends of{constructor(e,t,n,r){super(e,t,n,r)}};uf.prototype.ValueTypeName=`number`;var df=class extends Zd{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e,t,n,r){let i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=(n-t)/(r-t),c=e*o;for(let e=c+o;c!==e;c+=4)ms.slerpFlat(i,0,a,c-o,a,c,s);return i}},ff=class extends of{constructor(e,t,n,r){super(e,t,n,r)}InterpolantFactoryMethodLinear(e){return new df(this.times,this.values,this.getValueSize(),e)}};ff.prototype.ValueTypeName=`quaternion`,ff.prototype.InterpolantFactoryMethodSmooth=void 0;var pf=class extends of{constructor(e,t,n){super(e,t,n)}};pf.prototype.ValueTypeName=`string`,pf.prototype.ValueBufferType=Array,pf.prototype.DefaultInterpolation=fo,pf.prototype.InterpolantFactoryMethodLinear=void 0,pf.prototype.InterpolantFactoryMethodSmooth=void 0;var mf=class extends of{constructor(e,t,n,r){super(e,t,n,r)}};mf.prototype.ValueTypeName=`vector`;var hf=class{constructor(e=``,t=-1,n=[],r=yo){this.name=e,this.tracks=n,this.duration=t,this.blendMode=r,this.uuid=Ko(),this.userData={},this.duration<0&&this.resetDuration()}static parse(e){let t=[],n=e.tracks,r=1/(e.fps||1);for(let e=0,i=n.length;e!==i;++e)t.push(_f(n[e]).scale(r));let i=new this(e.name,e.duration,t,e.blendMode);return i.uuid=e.uuid,i.userData=JSON.parse(e.userData||`{}`),i}static toJSON(e){let t=[],n=e.tracks,r={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode,userData:JSON.stringify(e.userData)};for(let e=0,r=n.length;e!==r;++e)t.push(of.toJSON(n[e]));return r}static CreateFromMorphTargetSequence(e,t,n,r){let i=t.length,a=[];for(let e=0;e1){let e=a[1],t=r[e];t||(r[e]=t=[]),t.push(n)}}let a=[];for(let e in r)a.push(this.CreateFromMorphTargetSequence(e,r[e],t,n));return a}resetDuration(){let e=this.tracks,t=0;for(let n=0,r=e.length;n!==r;++n){let e=this.tracks[n];t=Math.max(t,e.times[e.times.length-1])}return this.duration=t,this}trim(){for(let e=0;e{t&&t(i),this.manager.itemEnd(e)},0);return}if(Sf[e]!==void 0){Sf[e].push({onLoad:t,onProgress:n,onError:r});return}Sf[e]=[],Sf[e].push({onLoad:t,onProgress:n,onError:r});let a=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?`include`:`same-origin`,signal:typeof AbortSignal.any==`function`?AbortSignal.any([this._abortController.signal,this.manager.abortController.signal]):this._abortController.signal}),o=this.mimeType,s=this.responseType;fetch(a).then(t=>{if(t.status===200||t.status===0){if(t.status===0&&Io(`FileLoader: HTTP Status 0 received.`),typeof ReadableStream>`u`||t.body===void 0||t.body.getReader===void 0)return t;let n=Sf[e],r=t.body.getReader(),i=t.headers.get(`X-File-Size`)||t.headers.get(`Content-Length`),a=i?parseInt(i):0,o=a!==0,s=0,c=new ReadableStream({start(e){t();function t(){r.read().then(({done:r,value:i})=>{if(r)e.close();else{s+=i.byteLength;let r=new ProgressEvent(`progress`,{lengthComputable:o,loaded:s,total:a});for(let e=0,t=n.length;e{e.error(t)})}}});return new Response(c)}throw new Cf(`fetch for "${t.url}" responded with ${t.status}: ${t.statusText}`,t)}).then(e=>{switch(s){case`arraybuffer`:return e.arrayBuffer();case`blob`:return e.blob();case`document`:return e.text().then(e=>new DOMParser().parseFromString(e,o));case`json`:return e.json();default:if(o===``)return e.text();{let t=/charset="?([^;"\s]*)"?/i.exec(o),n=t&&t[1]?t[1].toLowerCase():void 0,r=new TextDecoder(n);return e.arrayBuffer().then(e=>r.decode(e))}}}).then(t=>{vf.add(`file:${e}`,t);let n=Sf[e];delete Sf[e];for(let e=0,r=n.length;e{let n=Sf[e];if(n===void 0)throw this.manager.itemError(e),t;delete Sf[e];for(let e=0,r=n.length;e{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}abort(){return this._abortController.abort(),this._abortController=new AbortController,this}},Tf=new WeakMap,Ef=class extends xf{constructor(e){super(e)}load(e,t,n,r){this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);let i=this,a=vf.get(`image:${e}`);if(a!==void 0){if(a.complete===!0)i.manager.itemStart(e),setTimeout(function(){t&&t(a),i.manager.itemEnd(e)},0);else{let e=Tf.get(a);e===void 0&&(e=[],Tf.set(a,e)),e.push({onLoad:t,onError:r})}return a}let o=jo(`img`);function s(){l(),t&&t(this);let n=Tf.get(this)||[];for(let e=0;e`u`&&Io(`ImageBitmapLoader: createImageBitmap() not supported.`),typeof fetch>`u`&&Io(`ImageBitmapLoader: fetch() not supported.`),this.options={premultiplyAlpha:`none`},this._abortController=new AbortController}setOptions(e){return this.options=e,this}load(e,t,n,r){e===void 0&&(e=``),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);let i=this,a=vf.get(`image-bitmap:${e}`);if(a!==void 0){if(i.manager.itemStart(e),a.then){a.then(n=>{Xf.has(a)===!0?(r&&r(Xf.get(a)),i.manager.itemError(e),i.manager.itemEnd(e)):(t&&t(n),i.manager.itemEnd(e))});return}setTimeout(function(){t&&t(a),i.manager.itemEnd(e)},0);return}let o={};o.credentials=this.crossOrigin===`anonymous`?`same-origin`:`include`,o.headers=this.requestHeader,o.signal=typeof AbortSignal.any==`function`?AbortSignal.any([this._abortController.signal,this.manager.abortController.signal]):this._abortController.signal;let s=fetch(e,o).then(function(e){return e.blob()}).then(function(e){return createImageBitmap(e,Object.assign({},i.options,{colorSpaceConversion:`none`}))}).then(function(n){return vf.add(`image-bitmap:${e}`,n),t&&t(n),i.manager.itemEnd(e),n}).catch(function(t){r&&r(t),Xf.set(s,t),vf.remove(`image-bitmap:${e}`),i.manager.itemError(e),i.manager.itemEnd(e)});vf.add(`image-bitmap:${e}`,s),i.manager.itemStart(e)}abort(){return this._abortController.abort(),this._abortController=new AbortController,this}},Qf=-90,$f=1,ep=class extends dc{constructor(e,t,n){super(),this.type=`CubeCamera`,this.renderTarget=n,this.coordinateSystem=null,this.activeMipmapLevel=0;let r=new Vf(Qf,$f,e,t);r.layers=this.layers,this.add(r);let i=new Vf(Qf,$f,e,t);i.layers=this.layers,this.add(i);let a=new Vf(Qf,$f,e,t);a.layers=this.layers,this.add(a);let o=new Vf(Qf,$f,e,t);o.layers=this.layers,this.add(o);let s=new Vf(Qf,$f,e,t);s.layers=this.layers,this.add(s);let c=new Vf(Qf,$f,e,t);c.layers=this.layers,this.add(c)}updateCoordinateSystem(){let e=this.coordinateSystem,t=this.children.concat(),[n,r,i,a,o,s]=t;for(let e of t)this.remove(e);if(e===2e3)n.up.set(0,1,0),n.lookAt(1,0,0),r.up.set(0,1,0),r.lookAt(-1,0,0),i.up.set(0,0,-1),i.lookAt(0,1,0),a.up.set(0,0,1),a.lookAt(0,-1,0),o.up.set(0,1,0),o.lookAt(0,0,1),s.up.set(0,1,0),s.lookAt(0,0,-1);else if(e===2001)n.up.set(0,-1,0),n.lookAt(-1,0,0),r.up.set(0,-1,0),r.lookAt(1,0,0),i.up.set(0,0,1),i.lookAt(0,1,0),a.up.set(0,0,-1),a.lookAt(0,-1,0),o.up.set(0,-1,0),o.lookAt(0,0,1),s.up.set(0,-1,0),s.lookAt(0,0,-1);else throw Error(`THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: `+e);for(let e of t)this.add(e),e.updateMatrixWorld()}update(e,t){this.parent===null&&this.updateMatrixWorld();let{renderTarget:n,activeMipmapLevel:r}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());let[i,a,o,s,c,l]=this.children,u=e.getRenderTarget(),d=e.getActiveCubeFace(),f=e.getActiveMipmapLevel(),p=e.xr.enabled;e.xr.enabled=!1;let m=n.texture.generateMipmaps;n.texture.generateMipmaps=!1;let h=!1;h=e.isWebGLRenderer===!0?e.state.buffers.depth.getReversed():e.reversedDepthBuffer,e.setRenderTarget(n,0,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,i),e.setRenderTarget(n,1,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,a),e.setRenderTarget(n,2,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,o),e.setRenderTarget(n,3,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,s),e.setRenderTarget(n,4,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,c),n.texture.generateMipmaps=m,e.setRenderTarget(n,5,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,l),e.setRenderTarget(u,d,f),e.xr.enabled=p,n.texture.needsPMREMUpdate=!0}},tp=class extends Vf{constructor(e=[]){super(),this.isArrayCamera=!0,this.isMultiViewCamera=!1,this.cameras=e}},np=class{constructor(){this._previousTime=0,this._currentTime=0,this._startTime=performance.now(),this._delta=0,this._elapsed=0,this._timescale=1,this._document=null,this._pageVisibilityHandler=null}connect(e){this._document=e,e.hidden!==void 0&&(this._pageVisibilityHandler=rp.bind(this),e.addEventListener(`visibilitychange`,this._pageVisibilityHandler,!1))}disconnect(){this._pageVisibilityHandler!==null&&(this._document.removeEventListener(`visibilitychange`,this._pageVisibilityHandler),this._pageVisibilityHandler=null),this._document=null}getDelta(){return this._delta/1e3}getElapsed(){return this._elapsed/1e3}getTimescale(){return this._timescale}setTimescale(e){return this._timescale=e,this}reset(){return this._currentTime=performance.now()-this._startTime,this}dispose(){this.disconnect()}update(e){return this._pageVisibilityHandler!==null&&this._document.hidden===!0?this._delta=0:(this._previousTime=this._currentTime,this._currentTime=(e===void 0?performance.now():e)-this._startTime,this._delta=(this._currentTime-this._previousTime)*this._timescale,this._elapsed+=this._delta),this}};function rp(){this._document.hidden===!1&&this.reset()}var ip=`\\[\\]\\.:\\/`,ap=RegExp(`[\\[\\]\\.:\\/]`,`g`),op=`[^\\[\\]\\.:\\/]`,sp=`[^`+ip.replace(`\\.`,``)+`]`,cp=`((?:WC+[\\/:])*)`.replace(`WC`,op),lp=`(WCOD+)?`.replace(`WCOD`,sp),up=`(?:\\.(WC+)(?:\\[(.+)\\])?)?`.replace(`WC`,op),dp=`\\.(WC+)(?:\\[(.+)\\])?`.replace(`WC`,op),fp=RegExp(`^`+cp+lp+up+dp+`$`),pp=[`material`,`materials`,`bones`,`map`],mp=class{constructor(e,t,n){let r=n||hp.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,r)}getValue(e,t){this.bind();let n=this._targetGroup.nCachedObjects_,r=this._bindings[n];r!==void 0&&r.getValue(e,t)}setValue(e,t){let n=this._bindings;for(let r=this._targetGroup.nCachedObjects_,i=n.length;r!==i;++r)n[r].setValue(e,t)}bind(){let e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].bind()}unbind(){let e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].unbind()}},hp=class e{constructor(t,n,r){this.path=n,this.parsedPath=r||e.parseTrackName(n),this.node=e.findNode(t,this.parsedPath.nodeName),this.rootNode=t,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(t,n,r){return t&&t.isAnimationObjectGroup?new e.Composite(t,n,r):new e(t,n,r)}static sanitizeNodeName(e){return e.replace(/\s/g,`_`).replace(ap,``)}static parseTrackName(e){let t=fp.exec(e);if(t===null)throw Error(`THREE.PropertyBinding: Cannot parse trackName: `+e);let n={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},r=n.nodeName&&n.nodeName.lastIndexOf(`.`);if(r!==void 0&&r!==-1){let e=n.nodeName.substring(r+1);pp.indexOf(e)!==-1&&(n.nodeName=n.nodeName.substring(0,r),n.objectName=e)}if(n.propertyName===null||n.propertyName.length===0)throw Error(`THREE.PropertyBinding: can not parse propertyName from trackName: `+e);return n}static findNode(e,t){if(t===void 0||t===``||t===`.`||t===-1||t===e.name||t===e.uuid)return e;if(e.skeleton){let n=e.skeleton.getBoneByName(t);if(n!==void 0)return n}if(e.children){let n=function(e){for(let r=0;r=this.min.x&&e.x<=this.max.x&&e.y>=this.min.y&&e.y<=this.max.y}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y))}intersectsBox(e){return e.max.x>=this.min.x&&e.min.x<=this.max.x&&e.max.y>=this.min.y&&e.min.y<=this.max.y}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,gp).distanceTo(e)}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}},vp=new B,yp=new Rs,bp=new Rs,xp=class extends Au{constructor(e){let t=Sp(e),n=new hl,r=[],i=[];for(let e=0;ee.start-t.start);let t=0;for(let e=1;e #include #include -}`},U={common:{diffuse:{value:new V(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new os},alphaMap:{value:null},alphaMapTransform:{value:new os},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new os}},envmap:{envMap:{value:null},envMapRotation:{value:new os},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98},dfgLUT:{value:null}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new os}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new os}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new os},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new os},normalScale:{value:new z(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new os},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new os}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new os}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new os}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new V(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},sunLights:{value:[],properties:{direction:{},color:{}}},sunLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},sunShadowMatrix:{value:[]},sunShadowCascade:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null},probesSH:{value:null},probesMin:{value:new B},probesMax:{value:new B},probesResolution:{value:new B}},points:{diffuse:{value:new V(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new os},alphaTest:{value:0},uvTransform:{value:new os}},sprite:{diffuse:{value:new V(16777215)},opacity:{value:1},center:{value:new z(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new os},alphaMap:{value:null},alphaMapTransform:{value:new os},alphaTest:{value:0}}},vp={basic:{uniforms:Sd([U.common,U.specularmap,U.envmap,U.aomap,U.lightmap,U.fog]),vertexShader:_p.meshbasic_vert,fragmentShader:_p.meshbasic_frag},lambert:{uniforms:Sd([U.common,U.specularmap,U.envmap,U.aomap,U.lightmap,U.emissivemap,U.bumpmap,U.normalmap,U.displacementmap,U.fog,U.lights,{emissive:{value:new V(0)},envMapIntensity:{value:1}}]),vertexShader:_p.meshlambert_vert,fragmentShader:_p.meshlambert_frag},phong:{uniforms:Sd([U.common,U.specularmap,U.envmap,U.aomap,U.lightmap,U.emissivemap,U.bumpmap,U.normalmap,U.displacementmap,U.fog,U.lights,{emissive:{value:new V(0)},specular:{value:new V(1118481)},shininess:{value:30},envMapIntensity:{value:1}}]),vertexShader:_p.meshphong_vert,fragmentShader:_p.meshphong_frag},standard:{uniforms:Sd([U.common,U.envmap,U.aomap,U.lightmap,U.emissivemap,U.bumpmap,U.normalmap,U.displacementmap,U.roughnessmap,U.metalnessmap,U.fog,U.lights,{emissive:{value:new V(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:_p.meshphysical_vert,fragmentShader:_p.meshphysical_frag},toon:{uniforms:Sd([U.common,U.aomap,U.lightmap,U.emissivemap,U.bumpmap,U.normalmap,U.displacementmap,U.gradientmap,U.fog,U.lights,{emissive:{value:new V(0)}}]),vertexShader:_p.meshtoon_vert,fragmentShader:_p.meshtoon_frag},matcap:{uniforms:Sd([U.common,U.bumpmap,U.normalmap,U.displacementmap,U.fog,{matcap:{value:null}}]),vertexShader:_p.meshmatcap_vert,fragmentShader:_p.meshmatcap_frag},points:{uniforms:Sd([U.points,U.fog]),vertexShader:_p.points_vert,fragmentShader:_p.points_frag},dashed:{uniforms:Sd([U.common,U.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:_p.linedashed_vert,fragmentShader:_p.linedashed_frag},depth:{uniforms:Sd([U.common,U.displacementmap]),vertexShader:_p.depth_vert,fragmentShader:_p.depth_frag},normal:{uniforms:Sd([U.common,U.bumpmap,U.normalmap,U.displacementmap,{opacity:{value:1}}]),vertexShader:_p.meshnormal_vert,fragmentShader:_p.meshnormal_frag},sprite:{uniforms:Sd([U.sprite,U.fog]),vertexShader:_p.sprite_vert,fragmentShader:_p.sprite_frag},background:{uniforms:{uvTransform:{value:new os},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:_p.background_vert,fragmentShader:_p.background_frag},backgroundCube:{uniforms:{envMap:{value:null},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new os}},vertexShader:_p.backgroundCube_vert,fragmentShader:_p.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:_p.cube_vert,fragmentShader:_p.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:_p.equirect_vert,fragmentShader:_p.equirect_frag},distance:{uniforms:Sd([U.common,U.displacementmap,{referencePosition:{value:new B},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:_p.distance_vert,fragmentShader:_p.distance_frag},shadow:{uniforms:Sd([U.lights,U.fog,{color:{value:new V(0)},opacity:{value:1}}]),vertexShader:_p.shadow_vert,fragmentShader:_p.shadow_frag}};vp.physical={uniforms:Sd([vp.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new os},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new os},clearcoatNormalScale:{value:new z(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new os},dispersion:{value:0},retroreflectivity:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new os},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new os},sheen:{value:0},sheenColor:{value:new V(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new os},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new os},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new os},transmissionSamplerSize:{value:new z},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new os},attenuationDistance:{value:0},attenuationColor:{value:new V(0)},specularColor:{value:new V(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new os},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new os},anisotropyVector:{value:new z},anisotropyMap:{value:null},anisotropyMapTransform:{value:new os}}]),vertexShader:_p.meshphysical_vert,fragmentShader:_p.meshphysical_frag};var yp={r:0,b:0,g:0},bp=new Ds,xp=new os;xp.set(-1,0,0,0,1,0,0,0,1);function Sp(e,t,n,r,i,a){let o=new V(0),s=i===!0?0:1,c,l,u=null,d=0,f=null;function p(e){let n=e.isScene===!0?e.background:null;if(n&&n.isTexture){let r=e.backgroundBlurriness>0;n=t.get(n,r)}return n}function m(t){let r=!1,i=p(t);i===null?g(o,s):i&&i.isColor&&(g(i,1),r=!0);let c=e.xr.getEnvironmentBlendMode();c===`additive`?n.buffers.color.setClear(0,0,0,1,a):c===`alpha-blend`&&n.buffers.color.setClear(0,0,0,0,a),(e.autoClear||r)&&(n.buffers.depth.setTest(!0),n.buffers.depth.setMask(!0),n.buffers.color.setMask(!0),e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil))}function h(t,n){let i=p(n);i&&(i.isCubeTexture||i.mapping===306)?(l===void 0&&(l=new H(new Nu(1,1,1),new kd({name:`BackgroundCubeMaterial`,uniforms:xd(vp.backgroundCube.uniforms),vertexShader:vp.backgroundCube.vertexShader,fragmentShader:vp.backgroundCube.fragmentShader,side:1,depthTest:!1,depthWrite:!1,fog:!1,allowOverride:!1})),l.geometry.deleteAttribute(`normal`),l.geometry.deleteAttribute(`uv`),l.onBeforeRender=function(e,t,n){this.matrixWorld.copyPosition(n.matrixWorld)},Object.defineProperty(l.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),r.update(l)),l.material.uniforms.envMap.value=i,l.material.uniforms.backgroundBlurriness.value=n.backgroundBlurriness,l.material.uniforms.backgroundIntensity.value=n.backgroundIntensity,l.material.uniforms.backgroundRotation.value.setFromMatrix4(bp.makeRotationFromEuler(n.backgroundRotation)).transpose(),i.isCubeTexture&&i.isRenderTargetTexture===!1&&l.material.uniforms.backgroundRotation.value.premultiply(xp),l.material.toneMapped=ds.getTransfer(i.colorSpace)!==po,(u!==i||d!==i.version||f!==e.toneMapping)&&(l.material.needsUpdate=!0,u=i,d=i.version,f=e.toneMapping),l.layers.enableAll(),t.unshift(l,l.geometry,l.material,0,0,null)):i&&i.isTexture&&(c===void 0&&(c=new H(new hd(2,2),new kd({name:`BackgroundMaterial`,uniforms:xd(vp.background.uniforms),vertexShader:vp.background.vertexShader,fragmentShader:vp.background.fragmentShader,side:0,depthTest:!1,depthWrite:!1,fog:!1,allowOverride:!1})),c.geometry.deleteAttribute(`normal`),Object.defineProperty(c.material,"map",{get:function(){return this.uniforms.t2D.value}}),r.update(c)),c.material.uniforms.t2D.value=i,c.material.uniforms.backgroundIntensity.value=n.backgroundIntensity,c.material.toneMapped=ds.getTransfer(i.colorSpace)!==po,i.matrixAutoUpdate===!0&&i.updateMatrix(),c.material.uniforms.uvTransform.value.copy(i.matrix),(u!==i||d!==i.version||f!==e.toneMapping)&&(c.material.needsUpdate=!0,u=i,d=i.version,f=e.toneMapping),c.layers.enableAll(),t.unshift(c,c.geometry,c.material,0,0,null))}function g(t,r){t.getRGB(yp,Td(e)),n.buffers.color.setClear(yp.r,yp.g,yp.b,r,a)}function _(){l!==void 0&&(l.geometry.dispose(),l.material.dispose(),l=void 0),c!==void 0&&(c.geometry.dispose(),c.material.dispose(),c=void 0)}return{getClearColor:function(){return o},setClearColor:function(e,t=1){o.set(e),s=t,g(o,s)},getClearAlpha:function(){return s},setClearAlpha:function(e){s=e,g(o,s)},render:m,addToRenderList:h,dispose:_}}function Cp(e,t){let n=e.getParameter(e.MAX_VERTEX_ATTRIBS),r={},i=f(null),a=i,o=!1;function s(n,r,i,s,c){let u=!1,f=d(n,s,i,r);a!==f&&(a=f,l(a.object)),u=p(n,s,i,c),u&&m(n,s,i,c),c!==null&&t.update(c,e.ELEMENT_ARRAY_BUFFER),(u||o)&&(o=!1,b(n,r,i,s),c!==null&&e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t.get(c).buffer))}function c(){return e.createVertexArray()}function l(t){return e.bindVertexArray(t)}function u(t){return e.deleteVertexArray(t)}function d(e,t,n,i){let a=i.wireframe===!0,o=r[t.id];o===void 0&&(o={},r[t.id]=o);let s=e.isInstancedMesh===!0?e.id:0,l=o[s];l===void 0&&(l={},o[s]=l);let u=l[n.id];u===void 0&&(u={},l[n.id]=u);let d=u[a];return d===void 0&&(d=f(c()),u[a]=d),d}function f(e){let t=[],r=[],i=[];for(let e=0;e=0){let n=i[t],r=o[t];if(r===void 0&&(t===`instanceMatrix`&&e.instanceMatrix&&(r=e.instanceMatrix),t===`instanceColor`&&e.instanceColor&&(r=e.instanceColor)),n===void 0||n.attribute!==r||r&&n.data!==r.data)return!0;s++}return a.attributesNum!==s||a.index!==r}function m(e,t,n,r){let i={},o=t.attributes,s=0,c=n.getAttributes();for(let t in c)if(c[t].location>=0){let n=o[t];n===void 0&&(t===`instanceMatrix`&&e.instanceMatrix&&(n=e.instanceMatrix),t===`instanceColor`&&e.instanceColor&&(n=e.instanceColor));let r={};r.attribute=n,n&&n.data&&(r.data=n.data),i[t]=r,s++}a.attributes=i,a.attributesNum=s,a.index=r}function h(){let e=a.newAttributes;for(let t=0,n=e.length;t=0){let s=o[r];if(s===void 0&&(r===`instanceMatrix`&&n.instanceMatrix&&(s=n.instanceMatrix),r===`instanceColor`&&n.instanceColor&&(s=n.instanceColor)),s!==void 0){let r=s.normalized,o=s.itemSize,c=t.get(s);if(c===void 0)continue;let l=c.buffer,u=c.type,d=c.bytesPerElement,f=u===e.INT||u===e.UNSIGNED_INT||s.gpuType===1013;if(s.isInterleavedBufferAttribute){let t=s.data,c=t.stride,p=s.offset;if(t.isInstancedInterleavedBuffer){for(let e=0;e0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT).precision>0)return`highp`;t=`mediump`}return t===`mediump`&&e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.MEDIUM_FLOAT).precision>0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.MEDIUM_FLOAT).precision>0?`mediump`:`lowp`}let l=n.precision===void 0?`highp`:n.precision,u=c(l);u!==l&&(To(`WebGLRenderer:`,l,`not supported, using`,u,`instead.`),l=u);let d=n.logarithmicDepthBuffer===!0,f=n.reversedDepthBuffer===!0&&t.has(`EXT_clip_control`);n.reversedDepthBuffer===!0&&f===!1&&To(`WebGLRenderer: Unable to use reversed depth buffer due to missing EXT_clip_control extension. Fallback to default depth buffer.`);let p=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),m=e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS),h=e.getParameter(e.MAX_TEXTURE_SIZE),g=e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE),_=e.getParameter(e.MAX_VERTEX_ATTRIBS),v=e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS),y=e.getParameter(e.MAX_VARYING_VECTORS),b=e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS),x=e.getParameter(e.MAX_SAMPLES),S=e.getParameter(e.SAMPLES);return{isWebGL2:!0,getMaxAnisotropy:a,getMaxPrecision:c,textureFormatReadable:o,textureTypeReadable:s,precision:l,logarithmicDepthBuffer:d,reversedDepthBuffer:f,maxTextures:p,maxVertexTextures:m,maxTextureSize:h,maxCubemapSize:g,maxAttributes:_,maxVertexUniforms:v,maxVaryings:y,maxFragmentUniforms:b,maxSamples:x,samples:S}}function Ep(e){let t=this,n=null,r=0,i=!1,a=!1,o=new dl,s=new os,c={value:null,needsUpdate:!1};this.uniform=c,this.numPlanes=0,this.numIntersection=0,this.init=function(e,t){let n=e.length!==0||t||r!==0||i;return i=t,r=e.length,n},this.beginShadows=function(){a=!0,u(null)},this.endShadows=function(){a=!1},this.setGlobalState=function(e,t){n=u(e,t,0)},this.setState=function(t,o,s){let d=t.clippingPlanes,f=t.clipIntersection,p=t.clipShadows,m=e.get(t);if(!i||d===null||d.length===0||a&&!p)a?u(null):l();else{let e=a?0:r,t=e*4,i=m.clippingState||null;c.value=i,i=u(d,o,t,s);for(let e=0;e!==t;++e)i[e]=n[e];m.clippingState=i,this.numIntersection=f?this.numPlanes:0,this.numPlanes+=e}};function l(){c.value!==n&&(c.value=n,c.needsUpdate=r>0),t.numPlanes=r,t.numIntersection=0}function u(e,n,r,i){let a=e===null?0:e.length,l=null;if(a!==0){if(l=c.value,i!==!0||l===null){let t=r+a*4,i=n.matrixWorldInverse;s.getNormalMatrix(i),(l===null||l.length0&&this._blur(s,0,0,t),this._applyPMREM(s),this._cleanup(s),s}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=Kp(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=Gp(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose(),this._backgroundBox!==null&&(this._backgroundBox.geometry.dispose(),this._backgroundBox.material.dispose())}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=2**this._lodMax}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._ggxMaterial!==null&&this._ggxMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let e=0;e2?l:0,l,l),c.setRenderTarget(r),p&&c.render(d,a),c.render(e,a)}c.toneMapping=u,c.autoClear=l,e.background=m}_textureToCubeUV(e,t){let n=this._renderer,r=e.mapping===301||e.mapping===302;r?(this._cubemapMaterial===null&&(this._cubemapMaterial=Kp()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=Gp());let i=r?this._cubemapMaterial:this._equirectMaterial,a=this._lodMeshes[0];a.material=i;let o=i.uniforms;o.envMap.value=e;let s=this._cubeSize;Hp(t,0,0,3*s,2*s),n.setRenderTarget(t),n.render(a,jp)}_applyPMREM(e){let t=this._renderer,n=t.autoClear;t.autoClear=!1;let r=this._lodMeshes.length;for(let t=1;td-Dp?n-d+Dp:0),m=4*(this._cubeSize-f);s.envMap.value=e.texture,s.roughness.value=u,s.mipInt.value=d-t,Hp(i,p,m,3*f,2*f),r.setRenderTarget(i),r.render(o,jp),s.envMap.value=i.texture,s.roughness.value=0,s.mipInt.value=d-n,Hp(e,p,m,3*f,2*f),r.setRenderTarget(e),r.render(o,jp)}_blur(e,t,n,r){let i=this._pingPongRenderTarget,a=Math.min(r,Math.PI)/Math.SQRT2;this._blurPass(e,i,t,n,a),this._blurPass(i,e,n,n,a)}_blurPass(e,t,n,r,i){let a=this._renderer,o=this._blurMaterial,s=this._lodMeshes[r];s.material=o;let c=o.uniforms;c.envMap.value=e.texture,c.sigma.value=i,c.mipInt.value=this._lodMax-n;let l=this._sizeLods[r];Hp(t,3*l*(r>this._lodMax-Dp?r-this._lodMax+Dp:0),4*(this._cubeSize-l),3*l,2*l),a.setRenderTarget(t),a.render(s,jp)}};function Bp(e){let t=[],n=[],r=e,i=e-Dp+1+Op;for(let e=0;e2?0:-1,r=[t,n,0,t+2/3,n,0,t+2/3,n+1,0,t,n,0,t+2/3,n+1,0,t,n+1,0];c.set(r,18*e);for(let t=0;t<6;t++){let n=s[t*2]*2-1,r=s[t*2+1]*2-1;e===0?Rp.set(1,r,n):e===1?Rp.set(-n,1,-r):e===2?Rp.set(-n,r,1):e===3?Rp.set(-1,r,-n):e===4?Rp.set(-n,-1,r):Rp.set(n,r,-1),Rp.toArray(l,(e*6+t)*3)}}let u=new il;u.setAttribute(`position`,new Uc(c,3)),u.setAttribute(`outputDirection`,new Uc(l,3)),n.push(new H(u,null)),r>Dp&&r--}return{lodMeshes:n,sizeLods:t}}function Vp(e,t,n){let r=new ws(e,t,n);return r.texture.mapping=306,r.texture.name=`PMREM.cubeUv`,r.scissorTest=!0,r}function Hp(e,t,n,r,i){e.viewport.set(t,n,r,i),e.scissor.set(t,n,r,i)}function Up(e,t,n){return new kd({name:`PMREMGGXConvolution`,defines:{GGX_SAMPLES:Ap,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${e}.0`},uniforms:{envMap:{value:null},roughness:{value:0},mipInt:{value:0}},vertexShader:qp(),fragmentShader:` +}`},U={common:{diffuse:{value:new V(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new _s},alphaMap:{value:null},alphaMapTransform:{value:new _s},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new _s}},envmap:{envMap:{value:null},envMapRotation:{value:new _s},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98},dfgLUT:{value:null}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new _s}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new _s}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new _s},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new _s},normalScale:{value:new z(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new _s},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new _s}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new _s}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new _s}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new V(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},sunLights:{value:[],properties:{direction:{},color:{}}},sunLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},sunShadowMatrix:{value:[]},sunShadowCascade:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null},probesSH:{value:null},probesMin:{value:new B},probesMax:{value:new B},probesResolution:{value:new B}},points:{diffuse:{value:new V(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new _s},alphaTest:{value:0},uvTransform:{value:new _s}},sprite:{diffuse:{value:new V(16777215)},opacity:{value:1},center:{value:new z(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new _s},alphaMap:{value:null},alphaMapTransform:{value:new _s},alphaTest:{value:0}}},kp={basic:{uniforms:Nd([U.common,U.specularmap,U.envmap,U.aomap,U.lightmap,U.fog]),vertexShader:Op.meshbasic_vert,fragmentShader:Op.meshbasic_frag},lambert:{uniforms:Nd([U.common,U.specularmap,U.envmap,U.aomap,U.lightmap,U.emissivemap,U.bumpmap,U.normalmap,U.displacementmap,U.fog,U.lights,{emissive:{value:new V(0)},envMapIntensity:{value:1}}]),vertexShader:Op.meshlambert_vert,fragmentShader:Op.meshlambert_frag},phong:{uniforms:Nd([U.common,U.specularmap,U.envmap,U.aomap,U.lightmap,U.emissivemap,U.bumpmap,U.normalmap,U.displacementmap,U.fog,U.lights,{emissive:{value:new V(0)},specular:{value:new V(1118481)},shininess:{value:30},envMapIntensity:{value:1}}]),vertexShader:Op.meshphong_vert,fragmentShader:Op.meshphong_frag},standard:{uniforms:Nd([U.common,U.envmap,U.aomap,U.lightmap,U.emissivemap,U.bumpmap,U.normalmap,U.displacementmap,U.roughnessmap,U.metalnessmap,U.fog,U.lights,{emissive:{value:new V(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Op.meshphysical_vert,fragmentShader:Op.meshphysical_frag},toon:{uniforms:Nd([U.common,U.aomap,U.lightmap,U.emissivemap,U.bumpmap,U.normalmap,U.displacementmap,U.gradientmap,U.fog,U.lights,{emissive:{value:new V(0)}}]),vertexShader:Op.meshtoon_vert,fragmentShader:Op.meshtoon_frag},matcap:{uniforms:Nd([U.common,U.bumpmap,U.normalmap,U.displacementmap,U.fog,{matcap:{value:null}}]),vertexShader:Op.meshmatcap_vert,fragmentShader:Op.meshmatcap_frag},points:{uniforms:Nd([U.points,U.fog]),vertexShader:Op.points_vert,fragmentShader:Op.points_frag},dashed:{uniforms:Nd([U.common,U.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Op.linedashed_vert,fragmentShader:Op.linedashed_frag},depth:{uniforms:Nd([U.common,U.displacementmap]),vertexShader:Op.depth_vert,fragmentShader:Op.depth_frag},normal:{uniforms:Nd([U.common,U.bumpmap,U.normalmap,U.displacementmap,{opacity:{value:1}}]),vertexShader:Op.meshnormal_vert,fragmentShader:Op.meshnormal_frag},sprite:{uniforms:Nd([U.sprite,U.fog]),vertexShader:Op.sprite_vert,fragmentShader:Op.sprite_frag},background:{uniforms:{uvTransform:{value:new _s},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:Op.background_vert,fragmentShader:Op.background_frag},backgroundCube:{uniforms:{envMap:{value:null},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new _s}},vertexShader:Op.backgroundCube_vert,fragmentShader:Op.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:Op.cube_vert,fragmentShader:Op.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Op.equirect_vert,fragmentShader:Op.equirect_frag},distance:{uniforms:Nd([U.common,U.displacementmap,{referencePosition:{value:new B},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Op.distance_vert,fragmentShader:Op.distance_frag},shadow:{uniforms:Nd([U.lights,U.fog,{color:{value:new V(0)},opacity:{value:1}}]),vertexShader:Op.shadow_vert,fragmentShader:Op.shadow_frag}};kp.physical={uniforms:Nd([kp.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new _s},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new _s},clearcoatNormalScale:{value:new z(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new _s},dispersion:{value:0},retroreflectivity:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new _s},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new _s},sheen:{value:0},sheenColor:{value:new V(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new _s},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new _s},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new _s},transmissionSamplerSize:{value:new z},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new _s},attenuationDistance:{value:0},attenuationColor:{value:new V(0)},specularColor:{value:new V(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new _s},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new _s},anisotropyVector:{value:new z},anisotropyMap:{value:null},anisotropyMapTransform:{value:new _s}}]),vertexShader:Op.meshphysical_vert,fragmentShader:Op.meshphysical_frag};var Ap={r:0,b:0,g:0},jp=new Rs,Mp=new _s;Mp.set(-1,0,0,0,1,0,0,0,1);function Np(e,t,n,r,i,a){let o=new V(0),s=i===!0?0:1,c,l,u=null,d=0,f=null;function p(e){let n=e.isScene===!0?e.background:null;if(n&&n.isTexture){let r=e.backgroundBlurriness>0;n=t.get(n,r)}return n}function m(t){let r=!1,i=p(t);i===null?g(o,s):i&&i.isColor&&(g(i,1),r=!0);let c=e.xr.getEnvironmentBlendMode();c===`additive`?n.buffers.color.setClear(0,0,0,1,a):c===`alpha-blend`&&n.buffers.color.setClear(0,0,0,0,a),(e.autoClear||r)&&(n.buffers.depth.setTest(!0),n.buffers.depth.setMask(!0),n.buffers.color.setMask(!0),e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil))}function h(t,n){let i=p(n);i&&(i.isCubeTexture||i.mapping===306)?(l===void 0&&(l=new H(new Wu(1,1,1),new Bd({name:`BackgroundCubeMaterial`,uniforms:Md(kp.backgroundCube.uniforms),vertexShader:kp.backgroundCube.vertexShader,fragmentShader:kp.backgroundCube.fragmentShader,side:1,depthTest:!1,depthWrite:!1,fog:!1,allowOverride:!1})),l.geometry.deleteAttribute(`normal`),l.geometry.deleteAttribute(`uv`),l.onBeforeRender=function(e,t,n){this.matrixWorld.copyPosition(n.matrixWorld)},Object.defineProperty(l.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),r.update(l)),l.material.uniforms.envMap.value=i,l.material.uniforms.backgroundBlurriness.value=n.backgroundBlurriness,l.material.uniforms.backgroundIntensity.value=n.backgroundIntensity,l.material.uniforms.backgroundRotation.value.setFromMatrix4(jp.makeRotationFromEuler(n.backgroundRotation)).transpose(),i.isCubeTexture&&i.isRenderTargetTexture===!1&&l.material.uniforms.backgroundRotation.value.premultiply(Mp),l.material.toneMapped=Ss.getTransfer(i.colorSpace)!==wo,(u!==i||d!==i.version||f!==e.toneMapping)&&(l.material.needsUpdate=!0,u=i,d=i.version,f=e.toneMapping),l.layers.enableAll(),t.unshift(l,l.geometry,l.material,0,0,null)):i&&i.isTexture&&(c===void 0&&(c=new H(new Ed(2,2),new Bd({name:`BackgroundMaterial`,uniforms:Md(kp.background.uniforms),vertexShader:kp.background.vertexShader,fragmentShader:kp.background.fragmentShader,side:0,depthTest:!1,depthWrite:!1,fog:!1,allowOverride:!1})),c.geometry.deleteAttribute(`normal`),Object.defineProperty(c.material,"map",{get:function(){return this.uniforms.t2D.value}}),r.update(c)),c.material.uniforms.t2D.value=i,c.material.uniforms.backgroundIntensity.value=n.backgroundIntensity,c.material.toneMapped=Ss.getTransfer(i.colorSpace)!==wo,i.matrixAutoUpdate===!0&&i.updateMatrix(),c.material.uniforms.uvTransform.value.copy(i.matrix),(u!==i||d!==i.version||f!==e.toneMapping)&&(c.material.needsUpdate=!0,u=i,d=i.version,f=e.toneMapping),c.layers.enableAll(),t.unshift(c,c.geometry,c.material,0,0,null))}function g(t,r){t.getRGB(Ap,Id(e)),n.buffers.color.setClear(Ap.r,Ap.g,Ap.b,r,a)}function _(){l!==void 0&&(l.geometry.dispose(),l.material.dispose(),l=void 0),c!==void 0&&(c.geometry.dispose(),c.material.dispose(),c=void 0)}return{getClearColor:function(){return o},setClearColor:function(e,t=1){o.set(e),s=t,g(o,s)},getClearAlpha:function(){return s},setClearAlpha:function(e){s=e,g(o,s)},render:m,addToRenderList:h,dispose:_}}function Pp(e,t){let n=e.getParameter(e.MAX_VERTEX_ATTRIBS),r={},i=f(null),a=i,o=!1;function s(n,r,i,s,c){let u=!1,f=d(n,s,i,r);a!==f&&(a=f,l(a.object)),u=p(n,s,i,c),u&&m(n,s,i,c),c!==null&&t.update(c,e.ELEMENT_ARRAY_BUFFER),(u||o)&&(o=!1,b(n,r,i,s),c!==null&&e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t.get(c).buffer))}function c(){return e.createVertexArray()}function l(t){return e.bindVertexArray(t)}function u(t){return e.deleteVertexArray(t)}function d(e,t,n,i){let a=i.wireframe===!0,o=r[t.id];o===void 0&&(o={},r[t.id]=o);let s=e.isInstancedMesh===!0?e.id:0,l=o[s];l===void 0&&(l={},o[s]=l);let u=l[n.id];u===void 0&&(u={},l[n.id]=u);let d=u[a];return d===void 0&&(d=f(c()),u[a]=d),d}function f(e){let t=[],r=[],i=[];for(let e=0;e=0){let n=i[t],r=o[t];if(r===void 0&&(t===`instanceMatrix`&&e.instanceMatrix&&(r=e.instanceMatrix),t===`instanceColor`&&e.instanceColor&&(r=e.instanceColor)),n===void 0||n.attribute!==r||r&&n.data!==r.data)return!0;s++}return a.attributesNum!==s||a.index!==r}function m(e,t,n,r){let i={},o=t.attributes,s=0,c=n.getAttributes();for(let t in c)if(c[t].location>=0){let n=o[t];n===void 0&&(t===`instanceMatrix`&&e.instanceMatrix&&(n=e.instanceMatrix),t===`instanceColor`&&e.instanceColor&&(n=e.instanceColor));let r={};r.attribute=n,n&&n.data&&(r.data=n.data),i[t]=r,s++}a.attributes=i,a.attributesNum=s,a.index=r}function h(){let e=a.newAttributes;for(let t=0,n=e.length;t=0){let s=o[r];if(s===void 0&&(r===`instanceMatrix`&&n.instanceMatrix&&(s=n.instanceMatrix),r===`instanceColor`&&n.instanceColor&&(s=n.instanceColor)),s!==void 0){let r=s.normalized,o=s.itemSize,c=t.get(s);if(c===void 0)continue;let l=c.buffer,u=c.type,d=c.bytesPerElement,f=u===e.INT||u===e.UNSIGNED_INT||s.gpuType===1013;if(s.isInterleavedBufferAttribute){let t=s.data,c=t.stride,p=s.offset;if(t.isInstancedInterleavedBuffer){for(let e=0;e0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT).precision>0)return`highp`;t=`mediump`}return t===`mediump`&&e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.MEDIUM_FLOAT).precision>0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.MEDIUM_FLOAT).precision>0?`mediump`:`lowp`}let l=n.precision===void 0?`highp`:n.precision,u=c(l);u!==l&&(Io(`WebGLRenderer:`,l,`not supported, using`,u,`instead.`),l=u);let d=n.logarithmicDepthBuffer===!0,f=n.reversedDepthBuffer===!0&&t.has(`EXT_clip_control`);n.reversedDepthBuffer===!0&&f===!1&&Io(`WebGLRenderer: Unable to use reversed depth buffer due to missing EXT_clip_control extension. Fallback to default depth buffer.`);let p=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),m=e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS),h=e.getParameter(e.MAX_TEXTURE_SIZE),g=e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE),_=e.getParameter(e.MAX_VERTEX_ATTRIBS),v=e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS),y=e.getParameter(e.MAX_VARYING_VECTORS),b=e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS),x=e.getParameter(e.MAX_SAMPLES),S=e.getParameter(e.SAMPLES);return{isWebGL2:!0,getMaxAnisotropy:a,getMaxPrecision:c,textureFormatReadable:o,textureTypeReadable:s,precision:l,logarithmicDepthBuffer:d,reversedDepthBuffer:f,maxTextures:p,maxVertexTextures:m,maxTextureSize:h,maxCubemapSize:g,maxAttributes:_,maxVertexUniforms:v,maxVaryings:y,maxFragmentUniforms:b,maxSamples:x,samples:S}}function Lp(e){let t=this,n=null,r=0,i=!1,a=!1,o=new Sl,s=new _s,c={value:null,needsUpdate:!1};this.uniform=c,this.numPlanes=0,this.numIntersection=0,this.init=function(e,t){let n=e.length!==0||t||r!==0||i;return i=t,r=e.length,n},this.beginShadows=function(){a=!0,u(null)},this.endShadows=function(){a=!1},this.setGlobalState=function(e,t){n=u(e,t,0)},this.setState=function(t,o,s){let d=t.clippingPlanes,f=t.clipIntersection,p=t.clipShadows,m=e.get(t);if(!i||d===null||d.length===0||a&&!p)a?u(null):l();else{let e=a?0:r,t=e*4,i=m.clippingState||null;c.value=i,i=u(d,o,t,s);for(let e=0;e!==t;++e)i[e]=n[e];m.clippingState=i,this.numIntersection=f?this.numPlanes:0,this.numPlanes+=e}};function l(){c.value!==n&&(c.value=n,c.needsUpdate=r>0),t.numPlanes=r,t.numIntersection=0}function u(e,n,r,i){let a=e===null?0:e.length,l=null;if(a!==0){if(l=c.value,i!==!0||l===null){let t=r+a*4,i=n.matrixWorldInverse;s.getNormalMatrix(i),(l===null||l.length0&&this._blur(s,0,0,t),this._applyPMREM(s),this._cleanup(s),s}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=rm(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=nm(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose(),this._backgroundBox!==null&&(this._backgroundBox.geometry.dispose(),this._backgroundBox.material.dispose())}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=2**this._lodMax}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._ggxMaterial!==null&&this._ggxMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let e=0;e2?l:0,l,l),c.setRenderTarget(r),p&&c.render(d,a),c.render(e,a)}c.toneMapping=u,c.autoClear=l,e.background=m}_textureToCubeUV(e,t){let n=this._renderer,r=e.mapping===301||e.mapping===302;r?(this._cubemapMaterial===null&&(this._cubemapMaterial=rm()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=nm());let i=r?this._cubemapMaterial:this._equirectMaterial,a=this._lodMeshes[0];a.material=i;let o=i.uniforms;o.envMap.value=e;let s=this._cubeSize;$p(t,0,0,3*s,2*s),n.setRenderTarget(t),n.render(a,Hp)}_applyPMREM(e){let t=this._renderer,n=t.autoClear;t.autoClear=!1;let r=this._lodMeshes.length;for(let t=1;td-Rp?n-d+Rp:0),m=4*(this._cubeSize-f);s.envMap.value=e.texture,s.roughness.value=u,s.mipInt.value=d-t,$p(i,p,m,3*f,2*f),r.setRenderTarget(i),r.render(o,Hp),s.envMap.value=i.texture,s.roughness.value=0,s.mipInt.value=d-n,$p(e,p,m,3*f,2*f),r.setRenderTarget(e),r.render(o,Hp)}_blur(e,t,n,r){let i=this._pingPongRenderTarget,a=Math.min(r,Math.PI)/Math.SQRT2;this._blurPass(e,i,t,n,a),this._blurPass(i,e,n,n,a)}_blurPass(e,t,n,r,i){let a=this._renderer,o=this._blurMaterial,s=this._lodMeshes[r];s.material=o;let c=o.uniforms;c.envMap.value=e.texture,c.sigma.value=i,c.mipInt.value=this._lodMax-n;let l=this._sizeLods[r];$p(t,3*l*(r>this._lodMax-Rp?r-this._lodMax+Rp:0),4*(this._cubeSize-l),3*l,2*l),a.setRenderTarget(t),a.render(s,Hp)}};function Zp(e){let t=[],n=[],r=e,i=e-Rp+1+zp;for(let e=0;e2?0:-1,r=[t,n,0,t+2/3,n,0,t+2/3,n+1,0,t,n,0,t+2/3,n+1,0,t,n+1,0];c.set(r,18*e);for(let t=0;t<6;t++){let n=s[t*2]*2-1,r=s[t*2+1]*2-1;e===0?Yp.set(1,r,n):e===1?Yp.set(-n,1,-r):e===2?Yp.set(-n,r,1):e===3?Yp.set(-1,r,-n):e===4?Yp.set(-n,-1,r):Yp.set(n,r,-1),Yp.toArray(l,(e*6+t)*3)}}let u=new hl;u.setAttribute(`position`,new el(c,3)),u.setAttribute(`outputDirection`,new el(l,3)),n.push(new H(u,null)),r>Rp&&r--}return{lodMeshes:n,sizeLods:t}}function Qp(e,t,n){let r=new Fs(e,t,n);return r.texture.mapping=306,r.texture.name=`PMREM.cubeUv`,r.scissorTest=!0,r}function $p(e,t,n,r,i){e.viewport.set(t,n,r,i),e.scissor.set(t,n,r,i)}function em(e,t,n){return new Bd({name:`PMREMGGXConvolution`,defines:{GGX_SAMPLES:Vp,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${e}.0`},uniforms:{envMap:{value:null},roughness:{value:0},mipInt:{value:0}},vertexShader:im(),fragmentShader:` precision highp float; precision highp int; @@ -3935,7 +3935,7 @@ void main() { gl_FragColor = vec4(prefilteredColor, 1.0); } - `,blending:0,depthTest:!1,depthWrite:!1})}function Wp(e,t,n){return new kd({name:`SphericalGaussianBlur`,defines:{SAMPLES:kp,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${e}.0`},uniforms:{envMap:{value:null},sigma:{value:0},mipInt:{value:0}},vertexShader:qp(),fragmentShader:` + `,blending:0,depthTest:!1,depthWrite:!1})}function tm(e,t,n){return new Bd({name:`SphericalGaussianBlur`,defines:{SAMPLES:Bp,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${e}.0`},uniforms:{envMap:{value:null},sigma:{value:0},mipInt:{value:0}},vertexShader:im(),fragmentShader:` precision highp float; precision highp int; @@ -3995,7 +3995,7 @@ void main() { gl_FragColor = vec4( accumColor / accumWeight, 1.0 ); } - `,blending:0,depthTest:!1,depthWrite:!1})}function Gp(){return new kd({name:`EquirectangularToCubeUV`,uniforms:{envMap:{value:null}},vertexShader:qp(),fragmentShader:` + `,blending:0,depthTest:!1,depthWrite:!1})}function nm(){return new Bd({name:`EquirectangularToCubeUV`,uniforms:{envMap:{value:null}},vertexShader:im(),fragmentShader:` precision mediump float; precision mediump int; @@ -4014,7 +4014,7 @@ void main() { gl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 ); } - `,blending:0,depthTest:!1,depthWrite:!1})}function Kp(){return new kd({name:`CubemapToCubeUV`,uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:qp(),fragmentShader:` + `,blending:0,depthTest:!1,depthWrite:!1})}function rm(){return new Bd({name:`CubemapToCubeUV`,uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:im(),fragmentShader:` precision mediump float; precision mediump int; @@ -4030,7 +4030,7 @@ void main() { gl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) ); } - `,blending:0,depthTest:!1,depthWrite:!1})}function qp(){return` + `,blending:0,depthTest:!1,depthWrite:!1})}function im(){return` precision mediump float; precision mediump int; @@ -4045,7 +4045,7 @@ void main() { gl_Position = vec4( position, 1.0 ); } - `}var Jp=class extends ws{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;let n={width:e,height:e,depth:1},r=[n,n,n,n,n,n];this.texture=new Ou(r),this._setTextureOptions(t),this.texture.isRenderTargetTexture=!0}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;let n={uniforms:{tEquirect:{value:null}},vertexShader:` + `}var am=class extends Fs{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;let n={width:e,height:e,depth:1},r=[n,n,n,n,n,n];this.texture=new zu(r),this._setTextureOptions(t),this.texture.isRenderTargetTexture=!0}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;let n={uniforms:{tEquirect:{value:null}},vertexShader:` varying vec3 vWorldDirection; @@ -4080,7 +4080,7 @@ void main() { gl_FragColor = texture2D( tEquirect, sampleUV ); } - `},r=new Nu(5,5,5),i=new kd({name:`CubemapFromEquirect`,uniforms:xd(n.uniforms),vertexShader:n.vertexShader,fragmentShader:n.fragmentShader,side:1,blending:0});i.uniforms.tEquirect.value=t;let a=new H(r,i),o=t.minFilter;return t.minFilter===1008&&(t.minFilter=Ki),new Uf(1,10,this).update(e,a),t.minFilter=o,a.geometry.dispose(),a.material.dispose(),this}clear(e,t=!0,n=!0,r=!0){let i=e.getRenderTarget();for(let i=0;i<6;i++)e.setRenderTarget(this,i),e.clear(t,n,r);e.setRenderTarget(i)}};function Yp(e){let t=new WeakMap,n=new WeakMap,r=null;function i(e,t=!1){return e==null?null:t?o(e):a(e)}function a(n){if(n&&n.isTexture){let r=n.mapping;if(r===303||r===304){if(t.has(n)){let e=t.get(n).texture;return s(e,n.mapping)}{let r=n.image;if(r&&r.height>0){let i=new Jp(r.height);return i.fromEquirectangularTexture(e,n),t.set(n,i),n.addEventListener(`dispose`,l),s(i.texture,n.mapping)}return null}}}return n}function o(t){if(t&&t.isTexture){let i=t.mapping,a=i===303||i===304,o=i===301||i===302;if(a||o){let i=n.get(t),s=i===void 0?0:i.texture.pmremVersion;if(t.isRenderTargetTexture&&t.pmremVersion!==s)return r===null&&(r=new zp(e)),i=a?r.fromEquirectangular(t,i):r.fromCubemap(t,i),i.texture.pmremVersion=t.pmremVersion,n.set(t,i),i.texture;if(i!==void 0)return i.texture;{let s=t.image;return a&&s&&s.height>0||o&&s&&c(s)?(r===null&&(r=new zp(e)),i=a?r.fromEquirectangular(t):r.fromCubemap(t),i.texture.pmremVersion=t.pmremVersion,n.set(t,i),t.addEventListener(`dispose`,u),i.texture):null}}}return t}function s(e,t){return t===303?e.mapping=301:t===304&&(e.mapping=302),e}function c(e){let t=0;for(let n=0;n<6;n++)e[n]!==void 0&&t++;return t===6}function l(e){let n=e.target;n.removeEventListener(`dispose`,l);let r=t.get(n);r!==void 0&&(t.delete(n),r.dispose())}function u(e){let t=e.target;t.removeEventListener(`dispose`,u);let r=n.get(t);r!==void 0&&(n.delete(t),r.dispose())}function d(){t=new WeakMap,n=new WeakMap,r!==null&&(r.dispose(),r=null)}return{get:i,dispose:d}}function Xp(e){let t={};function n(n){if(t[n]!==void 0)return t[n];let r=e.getExtension(n);return t[n]=r,r}return{has:function(e){return n(e)!==null},init:function(){n(`EXT_color_buffer_float`),n(`WEBGL_clip_cull_distance`),n(`OES_texture_float_linear`),n(`EXT_color_buffer_half_float`),n(`WEBGL_multisampled_render_to_texture`),n(`WEBGL_render_shared_exponent`)},get:function(e){let t=n(e);return t===null&&Do(`WebGLRenderer: `+e+` extension not supported.`),t}}}function Zp(e,t,n,r){let i={},a=new WeakMap;function o(e){let s=e.target;s.index!==null&&t.remove(s.index);for(let e in s.attributes)t.remove(s.attributes[e]);s.removeEventListener(`dispose`,o),delete i[s.id];let c=a.get(s);c&&(t.remove(c),a.delete(s)),r.releaseStatesOfGeometry(s),s.isInstancedBufferGeometry===!0&&delete s._maxInstanceCount,n.memory.geometries--}function s(e,t){return i[t.id]===!0||(t.addEventListener(`dispose`,o),i[t.id]=!0,n.memory.geometries++),t}function c(n){let r=n.attributes;for(let n in r)t.update(r[n],e.ARRAY_BUFFER)}function l(e){let n=[],r=e.index,i=e.attributes.position,o=0;if(i===void 0)return;if(r!==null){let e=r.array;o=r.version;for(let t=0,r=e.length;t=65535?Gc:Wc)(n,1);s.version=o;let c=a.get(e);c&&t.remove(c),a.set(e,s)}function u(e){let t=a.get(e);if(t){let n=e.index;n!==null&&t.versiont.maxTextureSize&&(m=Math.ceil(p/t.maxTextureSize),p=t.maxTextureSize);let h=new Float32Array(p*m*4*u),g=new Ts(h,p,m,u);g.type=ta,g.needsUpdate=!0;let _=f*4;for(let t=0;t0){let i=new am(r.height);return i.fromEquirectangularTexture(e,n),t.set(n,i),n.addEventListener(`dispose`,l),s(i.texture,n.mapping)}return null}}}return n}function o(t){if(t&&t.isTexture){let i=t.mapping,a=i===303||i===304,o=i===301||i===302;if(a||o){let i=n.get(t),s=i===void 0?0:i.texture.pmremVersion;if(t.isRenderTargetTexture&&t.pmremVersion!==s)return r===null&&(r=new Xp(e)),i=a?r.fromEquirectangular(t,i):r.fromCubemap(t,i),i.texture.pmremVersion=t.pmremVersion,n.set(t,i),i.texture;if(i!==void 0)return i.texture;{let s=t.image;return a&&s&&s.height>0||o&&s&&c(s)?(r===null&&(r=new Xp(e)),i=a?r.fromEquirectangular(t):r.fromCubemap(t),i.texture.pmremVersion=t.pmremVersion,n.set(t,i),t.addEventListener(`dispose`,u),i.texture):null}}}return t}function s(e,t){return t===303?e.mapping=301:t===304&&(e.mapping=302),e}function c(e){let t=0;for(let n=0;n<6;n++)e[n]!==void 0&&t++;return t===6}function l(e){let n=e.target;n.removeEventListener(`dispose`,l);let r=t.get(n);r!==void 0&&(t.delete(n),r.dispose())}function u(e){let t=e.target;t.removeEventListener(`dispose`,u);let r=n.get(t);r!==void 0&&(n.delete(t),r.dispose())}function d(){t=new WeakMap,n=new WeakMap,r!==null&&(r.dispose(),r=null)}return{get:i,dispose:d}}function sm(e){let t={};function n(n){if(t[n]!==void 0)return t[n];let r=e.getExtension(n);return t[n]=r,r}return{has:function(e){return n(e)!==null},init:function(){n(`EXT_color_buffer_float`),n(`WEBGL_clip_cull_distance`),n(`OES_texture_float_linear`),n(`EXT_color_buffer_half_float`),n(`WEBGL_multisampled_render_to_texture`),n(`WEBGL_render_shared_exponent`)},get:function(e){let t=n(e);return t===null&&Ro(`WebGLRenderer: `+e+` extension not supported.`),t}}}function cm(e,t,n,r){let i={},a=new WeakMap;function o(e){let s=e.target;s.index!==null&&t.remove(s.index);for(let e in s.attributes)t.remove(s.attributes[e]);s.removeEventListener(`dispose`,o),delete i[s.id];let c=a.get(s);c&&(t.remove(c),a.delete(s)),r.releaseStatesOfGeometry(s),s.isInstancedBufferGeometry===!0&&delete s._maxInstanceCount,n.memory.geometries--}function s(e,t){return i[t.id]===!0||(t.addEventListener(`dispose`,o),i[t.id]=!0,n.memory.geometries++),t}function c(n){let r=n.attributes;for(let n in r)t.update(r[n],e.ARRAY_BUFFER)}function l(e){let n=[],r=e.index,i=e.attributes.position,o=0;if(i===void 0)return;if(r!==null){let e=r.array;o=r.version;for(let t=0,r=e.length;t=65535?nl:tl)(n,1);s.version=o;let c=a.get(e);c&&t.remove(c),a.set(e,s)}function u(e){let t=a.get(e);if(t){let n=e.index;n!==null&&t.versiont.maxTextureSize&&(m=Math.ceil(p/t.maxTextureSize),p=t.maxTextureSize);let h=new Float32Array(p*m*4*u),g=new Is(h,p,m,u);g.type=fa,g.needsUpdate=!0;let _=f*4;for(let t=0;t0&&v[0].isRenderPass===!0;let t=o.width,n=o.height;v.length>0&&s===null&&(s=new ws(t,n,{type:na,depthBuffer:!1,stencilBuffer:!1}),c=new ws(t,n,{type:na,depthBuffer:!1,stencilBuffer:!1}));for(let e=0;e0)return e;let i=t*n,a=lm[i];if(a===void 0&&(a=new Float32Array(i),lm[i]=a),t!==0){r.toArray(a,0);for(let r=1,i=0;r!==t;++r)i+=n,e[r].toArray(a,i)}return a}function hm(e,t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n0&&(this.seq=r.concat(i))}setValue(e,t,n,r){let i=this.map[t];i!==void 0&&i.setValue(e,n,r)}setOptional(e,t,n){let r=t[n];r!==void 0&&this.setValue(e,n,r)}static upload(e,t,n,r){for(let i=0,a=t.length;i!==a;++i){let a=t[i],o=n[a.id];o.needsUpdate!==!1&&a.setValue(e,o.value,r)}}static seqWithValue(e,t){let n=[];for(let r=0,i=e.length;r!==i;++r){let i=e[r];i.id in t&&n.push(i)}return n}};function dh(e,t,n){let r=e.createShader(t);return e.shaderSource(r,n),e.compileShader(r),r}var fh=37297,ph=0;function mh(e,t){let n=e.split(` + }`,depthTest:!1,depthWrite:!1}),d=new H(l,u),f=new Kf(-1,1,1,-1,0,1),p=null,m=null,h=!1,g,_=null,v=[],y=!1;this.setSize=function(e,t){o.setSize(e,t),s!==null&&s.setSize(e,t),c!==null&&c.setSize(e,t);for(let n=0;n0&&v[0].isRenderPass===!0;let t=o.width,n=o.height;v.length>0&&s===null&&(s=new Fs(t,n,{type:pa,depthBuffer:!1,stencilBuffer:!1}),c=new Fs(t,n,{type:pa,depthBuffer:!1,stencilBuffer:!1}));for(let e=0;e0)return e;let i=t*n,a=bm[i];if(a===void 0&&(a=new Float32Array(i),bm[i]=a),t!==0){r.toArray(a,0);for(let r=1,i=0;r!==t;++r)i+=n,e[r].toArray(a,i)}return a}function Em(e,t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n0&&(this.seq=r.concat(i))}setValue(e,t,n,r){let i=this.map[t];i!==void 0&&i.setValue(e,n,r)}setOptional(e,t,n){let r=t[n];r!==void 0&&this.setValue(e,n,r)}static upload(e,t,n,r){for(let i=0,a=t.length;i!==a;++i){let a=t[i],o=n[a.id];o.needsUpdate!==!1&&a.setValue(e,o.value,r)}}static seqWithValue(e,t){let n=[];for(let r=0,i=e.length;r!==i;++r){let i=e[r];i.id in t&&n.push(i)}return n}};function Sh(e,t,n){let r=e.createShader(t);return e.shaderSource(r,n),e.compileShader(r),r}var Ch=37297,wh=0;function Th(e,t){let n=e.split(` `),r=[],i=Math.max(t-6,0),a=Math.min(t+6,n.length);for(let e=i;e`:` `} ${i}: ${n[e]}`)}return r.join(` -`)}var hh=new os;function gh(e){ds._getMatrix(hh,ds.workingColorSpace,e);let t=`mat3( ${hh.elements.map(e=>e.toFixed(4))} )`;switch(ds.getTransfer(e)){case fo:return[t,`LinearTransferOETF`];case po:return[t,`sRGBTransferOETF`];default:return To(`WebGLProgram: Unsupported color space: `,e),[t,`LinearTransferOETF`]}}function _h(e,t,n){let r=e.getShaderParameter(t,e.COMPILE_STATUS),i=(e.getShaderInfoLog(t)||``).trim();if(r&&i===``)return``;let a=/ERROR: 0:(\d+)/.exec(i);if(a){let r=parseInt(a[1]);return n.toUpperCase()+` +`)}var Eh=new _s;function Dh(e){Ss._getMatrix(Eh,Ss.workingColorSpace,e);let t=`mat3( ${Eh.elements.map(e=>e.toFixed(4))} )`;switch(Ss.getTransfer(e)){case Co:return[t,`LinearTransferOETF`];case wo:return[t,`sRGBTransferOETF`];default:return Io(`WebGLProgram: Unsupported color space: `,e),[t,`LinearTransferOETF`]}}function Oh(e,t,n){let r=e.getShaderParameter(t,e.COMPILE_STATUS),i=(e.getShaderInfoLog(t)||``).trim();if(r&&i===``)return``;let a=/ERROR: 0:(\d+)/.exec(i);if(a){let r=parseInt(a[1]);return n.toUpperCase()+` `+i+` -`+mh(e.getShaderSource(t),r)}return i}function vh(e,t){let n=gh(t);return[`vec4 ${e}( vec4 value ) {`,` return ${n[1]}( vec4( value.rgb * ${n[0]}, value.a ) );`,`}`].join(` -`)}var yh={1:`Linear`,2:`Reinhard`,3:`Cineon`,4:`ACESFilmic`,6:`AgX`,7:`Neutral`,5:`Custom`};function bh(e,t){let n=yh[t];return n===void 0?(To(`WebGLProgram: Unsupported toneMapping:`,t),`vec3 `+e+`( vec3 color ) { return LinearToneMapping( color ); }`):`vec3 `+e+`( vec3 color ) { return `+n+`ToneMapping( color ); }`}var xh=new B;function Sh(){return ds.getLuminanceCoefficients(xh),[`float luminance( const in vec3 rgb ) {`,` const vec3 weights = vec3( ${xh.x.toFixed(4)}, ${xh.y.toFixed(4)}, ${xh.z.toFixed(4)} );`,` return dot( weights, rgb );`,`}`].join(` -`)}function Ch(e){return[e.extensionClipCullDistance?`#extension GL_ANGLE_clip_cull_distance : require`:``,e.extensionMultiDraw?`#extension GL_ANGLE_multi_draw : require`:``].filter(Eh).join(` -`)}function wh(e){let t=[];for(let n in e){let r=e[n];r!==!1&&t.push(`#define `+n+` `+r)}return t.join(` -`)}function Th(e,t){let n={},r=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES);for(let i=0;i/gm;function Ah(e){return e.replace(kh,Mh)}var jh=new Map;function Mh(e,t){let n=_p[t];if(n===void 0){let e=jh.get(t);if(e!==void 0)n=_p[e],To(`WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.`,t,e);else throw Error(`THREE.WebGLProgram: Can not resolve #include <`+t+`>`)}return Ah(n)}var Nh=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function Ph(e){return e.replace(Nh,Fh)}function Fh(e,t,n,r){let i=``;for(let e=parseInt(t);e/gm;function Vh(e){return e.replace(Bh,Uh)}var Hh=new Map;function Uh(e,t){let n=Op[t];if(n===void 0){let e=Hh.get(t);if(e!==void 0)n=Op[e],Io(`WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.`,t,e);else throw Error(`THREE.WebGLProgram: Can not resolve #include <`+t+`>`)}return Vh(n)}var Wh=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function Gh(e){return e.replace(Wh,Kh)}function Kh(e,t,n,r){let i=``;for(let e=parseInt(t);e0&&(g+=` -`),_=[`#define SHADER_TYPE `+n.shaderType,`#define SHADER_NAME `+n.shaderName,m].filter(Eh).join(` +`),_=[`#define SHADER_TYPE `+n.shaderType,`#define SHADER_NAME `+n.shaderName,m].filter(Lh).join(` `),_.length>0&&(_+=` -`)):(g=[Ih(n),`#define SHADER_TYPE `+n.shaderType,`#define SHADER_NAME `+n.shaderName,m,n.extensionClipCullDistance?`#define USE_CLIP_DISTANCE`:``,n.batching?`#define USE_BATCHING`:``,n.batchingColor?`#define USE_BATCHING_COLOR`:``,n.instancing?`#define USE_INSTANCING`:``,n.instancingColor?`#define USE_INSTANCING_COLOR`:``,n.instancingMorph?`#define USE_INSTANCING_MORPH`:``,n.useFog&&n.fog?`#define USE_FOG`:``,n.useFog&&n.fogExp2?`#define FOG_EXP2`:``,n.map?`#define USE_MAP`:``,n.envMap?`#define USE_ENVMAP`:``,n.envMap?`#define `+u:``,n.lightMap?`#define USE_LIGHTMAP`:``,n.aoMap?`#define USE_AOMAP`:``,n.bumpMap?`#define USE_BUMPMAP`:``,n.normalMap?`#define USE_NORMALMAP`:``,n.normalMapObjectSpace?`#define USE_NORMALMAP_OBJECTSPACE`:``,n.normalMapTangentSpace?`#define USE_NORMALMAP_TANGENTSPACE`:``,n.displacementMap?`#define USE_DISPLACEMENTMAP`:``,n.emissiveMap?`#define USE_EMISSIVEMAP`:``,n.anisotropy?`#define USE_ANISOTROPY`:``,n.anisotropyMap?`#define USE_ANISOTROPYMAP`:``,n.clearcoatMap?`#define USE_CLEARCOATMAP`:``,n.clearcoatRoughnessMap?`#define USE_CLEARCOAT_ROUGHNESSMAP`:``,n.clearcoatNormalMap?`#define USE_CLEARCOAT_NORMALMAP`:``,n.iridescenceMap?`#define USE_IRIDESCENCEMAP`:``,n.iridescenceThicknessMap?`#define USE_IRIDESCENCE_THICKNESSMAP`:``,n.specularMap?`#define USE_SPECULARMAP`:``,n.specularColorMap?`#define USE_SPECULAR_COLORMAP`:``,n.specularIntensityMap?`#define USE_SPECULAR_INTENSITYMAP`:``,n.roughnessMap?`#define USE_ROUGHNESSMAP`:``,n.metalnessMap?`#define USE_METALNESSMAP`:``,n.alphaMap?`#define USE_ALPHAMAP`:``,n.alphaHash?`#define USE_ALPHAHASH`:``,n.transmission?`#define USE_TRANSMISSION`:``,n.transmissionMap?`#define USE_TRANSMISSIONMAP`:``,n.thicknessMap?`#define USE_THICKNESSMAP`:``,n.sheenColorMap?`#define USE_SHEEN_COLORMAP`:``,n.sheenRoughnessMap?`#define USE_SHEEN_ROUGHNESSMAP`:``,n.mapUv?`#define MAP_UV `+n.mapUv:``,n.alphaMapUv?`#define ALPHAMAP_UV `+n.alphaMapUv:``,n.lightMapUv?`#define LIGHTMAP_UV `+n.lightMapUv:``,n.aoMapUv?`#define AOMAP_UV `+n.aoMapUv:``,n.emissiveMapUv?`#define EMISSIVEMAP_UV `+n.emissiveMapUv:``,n.bumpMapUv?`#define BUMPMAP_UV `+n.bumpMapUv:``,n.normalMapUv?`#define NORMALMAP_UV `+n.normalMapUv:``,n.displacementMapUv?`#define DISPLACEMENTMAP_UV `+n.displacementMapUv:``,n.metalnessMapUv?`#define METALNESSMAP_UV `+n.metalnessMapUv:``,n.roughnessMapUv?`#define ROUGHNESSMAP_UV `+n.roughnessMapUv:``,n.anisotropyMapUv?`#define ANISOTROPYMAP_UV `+n.anisotropyMapUv:``,n.clearcoatMapUv?`#define CLEARCOATMAP_UV `+n.clearcoatMapUv:``,n.clearcoatNormalMapUv?`#define CLEARCOAT_NORMALMAP_UV `+n.clearcoatNormalMapUv:``,n.clearcoatRoughnessMapUv?`#define CLEARCOAT_ROUGHNESSMAP_UV `+n.clearcoatRoughnessMapUv:``,n.iridescenceMapUv?`#define IRIDESCENCEMAP_UV `+n.iridescenceMapUv:``,n.iridescenceThicknessMapUv?`#define IRIDESCENCE_THICKNESSMAP_UV `+n.iridescenceThicknessMapUv:``,n.sheenColorMapUv?`#define SHEEN_COLORMAP_UV `+n.sheenColorMapUv:``,n.sheenRoughnessMapUv?`#define SHEEN_ROUGHNESSMAP_UV `+n.sheenRoughnessMapUv:``,n.specularMapUv?`#define SPECULARMAP_UV `+n.specularMapUv:``,n.specularColorMapUv?`#define SPECULAR_COLORMAP_UV `+n.specularColorMapUv:``,n.specularIntensityMapUv?`#define SPECULAR_INTENSITYMAP_UV `+n.specularIntensityMapUv:``,n.transmissionMapUv?`#define TRANSMISSIONMAP_UV `+n.transmissionMapUv:``,n.thicknessMapUv?`#define THICKNESSMAP_UV `+n.thicknessMapUv:``,n.vertexTangents&&n.flatShading===!1?`#define USE_TANGENT`:``,n.vertexNormals?`#define HAS_NORMAL`:``,n.vertexColors?`#define USE_COLOR`:``,n.vertexAlphas?`#define USE_COLOR_ALPHA`:``,n.vertexUv1s?`#define USE_UV1`:``,n.vertexUv2s?`#define USE_UV2`:``,n.vertexUv3s?`#define USE_UV3`:``,n.pointsUvs?`#define USE_POINTS_UV`:``,n.flatShading?`#define FLAT_SHADED`:``,n.skinning?`#define USE_SKINNING`:``,n.morphTargets?`#define USE_MORPHTARGETS`:``,n.morphNormals&&n.flatShading===!1?`#define USE_MORPHNORMALS`:``,n.morphColors?`#define USE_MORPHCOLORS`:``,n.morphTargetsCount>0?`#define MORPHTARGETS_TEXTURE_STRIDE `+n.morphTextureStride:``,n.morphTargetsCount>0?`#define MORPHTARGETS_COUNT `+n.morphTargetsCount:``,n.doubleSided?`#define DOUBLE_SIDED`:``,n.flipSided?`#define FLIP_SIDED`:``,n.shadowMapEnabled?`#define USE_SHADOWMAP`:``,n.shadowMapEnabled?`#define `+c:``,n.sizeAttenuation?`#define USE_SIZEATTENUATION`:``,n.numLightProbes>0?`#define USE_LIGHT_PROBES`:``,n.logarithmicDepthBuffer?`#define USE_LOGARITHMIC_DEPTH_BUFFER`:``,n.reversedDepthBuffer?`#define USE_REVERSED_DEPTH_BUFFER`:``,`uniform mat4 modelMatrix;`,`uniform mat4 modelViewMatrix;`,`uniform mat4 projectionMatrix;`,`uniform mat4 viewMatrix;`,`uniform mat3 normalMatrix;`,`uniform vec3 cameraPosition;`,`uniform bool isOrthographic;`,`#ifdef USE_INSTANCING`,` attribute mat4 instanceMatrix;`,`#endif`,`#ifdef USE_INSTANCING_COLOR`,` attribute vec3 instanceColor;`,`#endif`,`#ifdef USE_INSTANCING_MORPH`,` uniform sampler2D morphTexture;`,`#endif`,`attribute vec3 position;`,`attribute vec3 normal;`,`attribute vec2 uv;`,`#ifdef USE_UV1`,` attribute vec2 uv1;`,`#endif`,`#ifdef USE_UV2`,` attribute vec2 uv2;`,`#endif`,`#ifdef USE_UV3`,` attribute vec2 uv3;`,`#endif`,`#ifdef USE_TANGENT`,` attribute vec4 tangent;`,`#endif`,`#if defined( USE_COLOR_ALPHA )`,` attribute vec4 color;`,`#elif defined( USE_COLOR )`,` attribute vec3 color;`,`#endif`,`#ifdef USE_SKINNING`,` attribute vec4 skinIndex;`,` attribute vec4 skinWeight;`,`#endif`,` -`].filter(Eh).join(` -`),_=[Ih(n),`#define SHADER_TYPE `+n.shaderType,`#define SHADER_NAME `+n.shaderName,m,n.useFog&&n.fog?`#define USE_FOG`:``,n.useFog&&n.fogExp2?`#define FOG_EXP2`:``,n.alphaToCoverage?`#define ALPHA_TO_COVERAGE`:``,n.map?`#define USE_MAP`:``,n.matcap?`#define USE_MATCAP`:``,n.envMap?`#define USE_ENVMAP`:``,n.envMap?`#define `+l:``,n.envMap?`#define `+u:``,n.envMap?`#define `+d:``,f?`#define CUBEUV_TEXEL_WIDTH `+f.texelWidth:``,f?`#define CUBEUV_TEXEL_HEIGHT `+f.texelHeight:``,f?`#define CUBEUV_MAX_MIP `+f.maxMip+`.0`:``,n.lightMap?`#define USE_LIGHTMAP`:``,n.aoMap?`#define USE_AOMAP`:``,n.bumpMap?`#define USE_BUMPMAP`:``,n.normalMap?`#define USE_NORMALMAP`:``,n.normalMapObjectSpace?`#define USE_NORMALMAP_OBJECTSPACE`:``,n.normalMapTangentSpace?`#define USE_NORMALMAP_TANGENTSPACE`:``,n.packedNormalMap?`#define USE_PACKED_NORMALMAP`:``,n.emissiveMap?`#define USE_EMISSIVEMAP`:``,n.anisotropy?`#define USE_ANISOTROPY`:``,n.anisotropyMap?`#define USE_ANISOTROPYMAP`:``,n.clearcoat?`#define USE_CLEARCOAT`:``,n.clearcoatMap?`#define USE_CLEARCOATMAP`:``,n.clearcoatRoughnessMap?`#define USE_CLEARCOAT_ROUGHNESSMAP`:``,n.clearcoatNormalMap?`#define USE_CLEARCOAT_NORMALMAP`:``,n.dispersion?`#define USE_DISPERSION`:``,n.retroreflection?`#define USE_RETROREFLECTION`:``,n.iridescence?`#define USE_IRIDESCENCE`:``,n.iridescenceMap?`#define USE_IRIDESCENCEMAP`:``,n.iridescenceThicknessMap?`#define USE_IRIDESCENCE_THICKNESSMAP`:``,n.specularMap?`#define USE_SPECULARMAP`:``,n.specularColorMap?`#define USE_SPECULAR_COLORMAP`:``,n.specularIntensityMap?`#define USE_SPECULAR_INTENSITYMAP`:``,n.roughnessMap?`#define USE_ROUGHNESSMAP`:``,n.metalnessMap?`#define USE_METALNESSMAP`:``,n.alphaMap?`#define USE_ALPHAMAP`:``,n.alphaTest?`#define USE_ALPHATEST`:``,n.alphaHash?`#define USE_ALPHAHASH`:``,n.sheen?`#define USE_SHEEN`:``,n.sheenColorMap?`#define USE_SHEEN_COLORMAP`:``,n.sheenRoughnessMap?`#define USE_SHEEN_ROUGHNESSMAP`:``,n.transmission?`#define USE_TRANSMISSION`:``,n.transmissionMap?`#define USE_TRANSMISSIONMAP`:``,n.thicknessMap?`#define USE_THICKNESSMAP`:``,n.vertexTangents&&n.flatShading===!1?`#define USE_TANGENT`:``,n.vertexColors||n.instancingColor?`#define USE_COLOR`:``,n.vertexAlphas||n.batchingColor?`#define USE_COLOR_ALPHA`:``,n.vertexUv1s?`#define USE_UV1`:``,n.vertexUv2s?`#define USE_UV2`:``,n.vertexUv3s?`#define USE_UV3`:``,n.pointsUvs?`#define USE_POINTS_UV`:``,n.gradientMap?`#define USE_GRADIENTMAP`:``,n.flatShading?`#define FLAT_SHADED`:``,n.doubleSided?`#define DOUBLE_SIDED`:``,n.flipSided?`#define FLIP_SIDED`:``,n.shadowMapEnabled?`#define USE_SHADOWMAP`:``,n.shadowMapEnabled?`#define `+c:``,n.premultipliedAlpha?`#define PREMULTIPLIED_ALPHA`:``,n.numLightProbes>0?`#define USE_LIGHT_PROBES`:``,n.numLightProbeGrids>0?`#define USE_LIGHT_PROBES_GRID`:``,n.decodeVideoTexture?`#define DECODE_VIDEO_TEXTURE`:``,n.decodeVideoTextureEmissive?`#define DECODE_VIDEO_TEXTURE_EMISSIVE`:``,n.logarithmicDepthBuffer?`#define USE_LOGARITHMIC_DEPTH_BUFFER`:``,n.reversedDepthBuffer?`#define USE_REVERSED_DEPTH_BUFFER`:``,`uniform mat4 viewMatrix;`,`uniform vec3 cameraPosition;`,`uniform bool isOrthographic;`,n.toneMapping===0?``:`#define TONE_MAPPING`,n.toneMapping===0?``:_p.tonemapping_pars_fragment,n.toneMapping===0?``:bh(`toneMapping`,n.toneMapping),n.dithering?`#define DITHERING`:``,n.opaque?`#define OPAQUE`:``,_p.colorspace_pars_fragment,vh(`linearToOutputTexel`,n.outputColorSpace),Sh(),n.useDepthPacking?`#define DEPTH_PACKING `+n.depthPacking:``,` -`].filter(Eh).join(` -`)),o=Ah(o),o=Dh(o,n),o=Oh(o,n),s=Ah(s),s=Dh(s,n),s=Oh(s,n),o=Ph(o),s=Ph(s),n.isRawShaderMaterial!==!0&&(v=`#version 300 es +`)):(g=[qh(n),`#define SHADER_TYPE `+n.shaderType,`#define SHADER_NAME `+n.shaderName,m,n.extensionClipCullDistance?`#define USE_CLIP_DISTANCE`:``,n.batching?`#define USE_BATCHING`:``,n.batchingColor?`#define USE_BATCHING_COLOR`:``,n.instancing?`#define USE_INSTANCING`:``,n.instancingColor?`#define USE_INSTANCING_COLOR`:``,n.instancingMorph?`#define USE_INSTANCING_MORPH`:``,n.useFog&&n.fog?`#define USE_FOG`:``,n.useFog&&n.fogExp2?`#define FOG_EXP2`:``,n.map?`#define USE_MAP`:``,n.envMap?`#define USE_ENVMAP`:``,n.envMap?`#define `+u:``,n.lightMap?`#define USE_LIGHTMAP`:``,n.aoMap?`#define USE_AOMAP`:``,n.bumpMap?`#define USE_BUMPMAP`:``,n.normalMap?`#define USE_NORMALMAP`:``,n.normalMapObjectSpace?`#define USE_NORMALMAP_OBJECTSPACE`:``,n.normalMapTangentSpace?`#define USE_NORMALMAP_TANGENTSPACE`:``,n.displacementMap?`#define USE_DISPLACEMENTMAP`:``,n.emissiveMap?`#define USE_EMISSIVEMAP`:``,n.anisotropy?`#define USE_ANISOTROPY`:``,n.anisotropyMap?`#define USE_ANISOTROPYMAP`:``,n.clearcoatMap?`#define USE_CLEARCOATMAP`:``,n.clearcoatRoughnessMap?`#define USE_CLEARCOAT_ROUGHNESSMAP`:``,n.clearcoatNormalMap?`#define USE_CLEARCOAT_NORMALMAP`:``,n.iridescenceMap?`#define USE_IRIDESCENCEMAP`:``,n.iridescenceThicknessMap?`#define USE_IRIDESCENCE_THICKNESSMAP`:``,n.specularMap?`#define USE_SPECULARMAP`:``,n.specularColorMap?`#define USE_SPECULAR_COLORMAP`:``,n.specularIntensityMap?`#define USE_SPECULAR_INTENSITYMAP`:``,n.roughnessMap?`#define USE_ROUGHNESSMAP`:``,n.metalnessMap?`#define USE_METALNESSMAP`:``,n.alphaMap?`#define USE_ALPHAMAP`:``,n.alphaHash?`#define USE_ALPHAHASH`:``,n.transmission?`#define USE_TRANSMISSION`:``,n.transmissionMap?`#define USE_TRANSMISSIONMAP`:``,n.thicknessMap?`#define USE_THICKNESSMAP`:``,n.sheenColorMap?`#define USE_SHEEN_COLORMAP`:``,n.sheenRoughnessMap?`#define USE_SHEEN_ROUGHNESSMAP`:``,n.mapUv?`#define MAP_UV `+n.mapUv:``,n.alphaMapUv?`#define ALPHAMAP_UV `+n.alphaMapUv:``,n.lightMapUv?`#define LIGHTMAP_UV `+n.lightMapUv:``,n.aoMapUv?`#define AOMAP_UV `+n.aoMapUv:``,n.emissiveMapUv?`#define EMISSIVEMAP_UV `+n.emissiveMapUv:``,n.bumpMapUv?`#define BUMPMAP_UV `+n.bumpMapUv:``,n.normalMapUv?`#define NORMALMAP_UV `+n.normalMapUv:``,n.displacementMapUv?`#define DISPLACEMENTMAP_UV `+n.displacementMapUv:``,n.metalnessMapUv?`#define METALNESSMAP_UV `+n.metalnessMapUv:``,n.roughnessMapUv?`#define ROUGHNESSMAP_UV `+n.roughnessMapUv:``,n.anisotropyMapUv?`#define ANISOTROPYMAP_UV `+n.anisotropyMapUv:``,n.clearcoatMapUv?`#define CLEARCOATMAP_UV `+n.clearcoatMapUv:``,n.clearcoatNormalMapUv?`#define CLEARCOAT_NORMALMAP_UV `+n.clearcoatNormalMapUv:``,n.clearcoatRoughnessMapUv?`#define CLEARCOAT_ROUGHNESSMAP_UV `+n.clearcoatRoughnessMapUv:``,n.iridescenceMapUv?`#define IRIDESCENCEMAP_UV `+n.iridescenceMapUv:``,n.iridescenceThicknessMapUv?`#define IRIDESCENCE_THICKNESSMAP_UV `+n.iridescenceThicknessMapUv:``,n.sheenColorMapUv?`#define SHEEN_COLORMAP_UV `+n.sheenColorMapUv:``,n.sheenRoughnessMapUv?`#define SHEEN_ROUGHNESSMAP_UV `+n.sheenRoughnessMapUv:``,n.specularMapUv?`#define SPECULARMAP_UV `+n.specularMapUv:``,n.specularColorMapUv?`#define SPECULAR_COLORMAP_UV `+n.specularColorMapUv:``,n.specularIntensityMapUv?`#define SPECULAR_INTENSITYMAP_UV `+n.specularIntensityMapUv:``,n.transmissionMapUv?`#define TRANSMISSIONMAP_UV `+n.transmissionMapUv:``,n.thicknessMapUv?`#define THICKNESSMAP_UV `+n.thicknessMapUv:``,n.vertexTangents&&n.flatShading===!1?`#define USE_TANGENT`:``,n.vertexNormals?`#define HAS_NORMAL`:``,n.vertexColors?`#define USE_COLOR`:``,n.vertexAlphas?`#define USE_COLOR_ALPHA`:``,n.vertexUv1s?`#define USE_UV1`:``,n.vertexUv2s?`#define USE_UV2`:``,n.vertexUv3s?`#define USE_UV3`:``,n.pointsUvs?`#define USE_POINTS_UV`:``,n.flatShading?`#define FLAT_SHADED`:``,n.skinning?`#define USE_SKINNING`:``,n.morphTargets?`#define USE_MORPHTARGETS`:``,n.morphNormals&&n.flatShading===!1?`#define USE_MORPHNORMALS`:``,n.morphColors?`#define USE_MORPHCOLORS`:``,n.morphTargetsCount>0?`#define MORPHTARGETS_TEXTURE_STRIDE `+n.morphTextureStride:``,n.morphTargetsCount>0?`#define MORPHTARGETS_COUNT `+n.morphTargetsCount:``,n.doubleSided?`#define DOUBLE_SIDED`:``,n.flipSided?`#define FLIP_SIDED`:``,n.shadowMapEnabled?`#define USE_SHADOWMAP`:``,n.shadowMapEnabled?`#define `+c:``,n.sizeAttenuation?`#define USE_SIZEATTENUATION`:``,n.numLightProbes>0?`#define USE_LIGHT_PROBES`:``,n.logarithmicDepthBuffer?`#define USE_LOGARITHMIC_DEPTH_BUFFER`:``,n.reversedDepthBuffer?`#define USE_REVERSED_DEPTH_BUFFER`:``,`uniform mat4 modelMatrix;`,`uniform mat4 modelViewMatrix;`,`uniform mat4 projectionMatrix;`,`uniform mat4 viewMatrix;`,`uniform mat3 normalMatrix;`,`uniform vec3 cameraPosition;`,`uniform bool isOrthographic;`,`#ifdef USE_INSTANCING`,` attribute mat4 instanceMatrix;`,`#endif`,`#ifdef USE_INSTANCING_COLOR`,` attribute vec3 instanceColor;`,`#endif`,`#ifdef USE_INSTANCING_MORPH`,` uniform sampler2D morphTexture;`,`#endif`,`attribute vec3 position;`,`attribute vec3 normal;`,`attribute vec2 uv;`,`#ifdef USE_UV1`,` attribute vec2 uv1;`,`#endif`,`#ifdef USE_UV2`,` attribute vec2 uv2;`,`#endif`,`#ifdef USE_UV3`,` attribute vec2 uv3;`,`#endif`,`#ifdef USE_TANGENT`,` attribute vec4 tangent;`,`#endif`,`#if defined( USE_COLOR_ALPHA )`,` attribute vec4 color;`,`#elif defined( USE_COLOR )`,` attribute vec3 color;`,`#endif`,`#ifdef USE_SKINNING`,` attribute vec4 skinIndex;`,` attribute vec4 skinWeight;`,`#endif`,` +`].filter(Lh).join(` +`),_=[qh(n),`#define SHADER_TYPE `+n.shaderType,`#define SHADER_NAME `+n.shaderName,m,n.useFog&&n.fog?`#define USE_FOG`:``,n.useFog&&n.fogExp2?`#define FOG_EXP2`:``,n.alphaToCoverage?`#define ALPHA_TO_COVERAGE`:``,n.map?`#define USE_MAP`:``,n.matcap?`#define USE_MATCAP`:``,n.envMap?`#define USE_ENVMAP`:``,n.envMap?`#define `+l:``,n.envMap?`#define `+u:``,n.envMap?`#define `+d:``,f?`#define CUBEUV_TEXEL_WIDTH `+f.texelWidth:``,f?`#define CUBEUV_TEXEL_HEIGHT `+f.texelHeight:``,f?`#define CUBEUV_MAX_MIP `+f.maxMip+`.0`:``,n.lightMap?`#define USE_LIGHTMAP`:``,n.aoMap?`#define USE_AOMAP`:``,n.bumpMap?`#define USE_BUMPMAP`:``,n.normalMap?`#define USE_NORMALMAP`:``,n.normalMapObjectSpace?`#define USE_NORMALMAP_OBJECTSPACE`:``,n.normalMapTangentSpace?`#define USE_NORMALMAP_TANGENTSPACE`:``,n.packedNormalMap?`#define USE_PACKED_NORMALMAP`:``,n.emissiveMap?`#define USE_EMISSIVEMAP`:``,n.anisotropy?`#define USE_ANISOTROPY`:``,n.anisotropyMap?`#define USE_ANISOTROPYMAP`:``,n.clearcoat?`#define USE_CLEARCOAT`:``,n.clearcoatMap?`#define USE_CLEARCOATMAP`:``,n.clearcoatRoughnessMap?`#define USE_CLEARCOAT_ROUGHNESSMAP`:``,n.clearcoatNormalMap?`#define USE_CLEARCOAT_NORMALMAP`:``,n.dispersion?`#define USE_DISPERSION`:``,n.retroreflection?`#define USE_RETROREFLECTION`:``,n.iridescence?`#define USE_IRIDESCENCE`:``,n.iridescenceMap?`#define USE_IRIDESCENCEMAP`:``,n.iridescenceThicknessMap?`#define USE_IRIDESCENCE_THICKNESSMAP`:``,n.specularMap?`#define USE_SPECULARMAP`:``,n.specularColorMap?`#define USE_SPECULAR_COLORMAP`:``,n.specularIntensityMap?`#define USE_SPECULAR_INTENSITYMAP`:``,n.roughnessMap?`#define USE_ROUGHNESSMAP`:``,n.metalnessMap?`#define USE_METALNESSMAP`:``,n.alphaMap?`#define USE_ALPHAMAP`:``,n.alphaTest?`#define USE_ALPHATEST`:``,n.alphaHash?`#define USE_ALPHAHASH`:``,n.sheen?`#define USE_SHEEN`:``,n.sheenColorMap?`#define USE_SHEEN_COLORMAP`:``,n.sheenRoughnessMap?`#define USE_SHEEN_ROUGHNESSMAP`:``,n.transmission?`#define USE_TRANSMISSION`:``,n.transmissionMap?`#define USE_TRANSMISSIONMAP`:``,n.thicknessMap?`#define USE_THICKNESSMAP`:``,n.vertexTangents&&n.flatShading===!1?`#define USE_TANGENT`:``,n.vertexColors||n.instancingColor?`#define USE_COLOR`:``,n.vertexAlphas||n.batchingColor?`#define USE_COLOR_ALPHA`:``,n.vertexUv1s?`#define USE_UV1`:``,n.vertexUv2s?`#define USE_UV2`:``,n.vertexUv3s?`#define USE_UV3`:``,n.pointsUvs?`#define USE_POINTS_UV`:``,n.gradientMap?`#define USE_GRADIENTMAP`:``,n.flatShading?`#define FLAT_SHADED`:``,n.doubleSided?`#define DOUBLE_SIDED`:``,n.flipSided?`#define FLIP_SIDED`:``,n.shadowMapEnabled?`#define USE_SHADOWMAP`:``,n.shadowMapEnabled?`#define `+c:``,n.premultipliedAlpha?`#define PREMULTIPLIED_ALPHA`:``,n.numLightProbes>0?`#define USE_LIGHT_PROBES`:``,n.numLightProbeGrids>0?`#define USE_LIGHT_PROBES_GRID`:``,n.decodeVideoTexture?`#define DECODE_VIDEO_TEXTURE`:``,n.decodeVideoTextureEmissive?`#define DECODE_VIDEO_TEXTURE_EMISSIVE`:``,n.logarithmicDepthBuffer?`#define USE_LOGARITHMIC_DEPTH_BUFFER`:``,n.reversedDepthBuffer?`#define USE_REVERSED_DEPTH_BUFFER`:``,`uniform mat4 viewMatrix;`,`uniform vec3 cameraPosition;`,`uniform bool isOrthographic;`,n.toneMapping===0?``:`#define TONE_MAPPING`,n.toneMapping===0?``:Op.tonemapping_pars_fragment,n.toneMapping===0?``:jh(`toneMapping`,n.toneMapping),n.dithering?`#define DITHERING`:``,n.opaque?`#define OPAQUE`:``,Op.colorspace_pars_fragment,kh(`linearToOutputTexel`,n.outputColorSpace),Nh(),n.useDepthPacking?`#define DEPTH_PACKING `+n.depthPacking:``,` +`].filter(Lh).join(` +`)),o=Vh(o),o=Rh(o,n),o=zh(o,n),s=Vh(s),s=Rh(s,n),s=zh(s,n),o=Gh(o),s=Gh(s),n.isRawShaderMaterial!==!0&&(v=`#version 300 es `,g=[p,`#define attribute in`,`#define varying out`,`#define texture2D texture`].join(` `)+` `+g,_=[`#define varying in`,n.glslVersion===`300 es`?``:`layout(location = 0) out highp vec4 pc_fragColor;`,n.glslVersion===`300 es`?``:`#define gl_FragColor pc_fragColor`,`#define gl_FragDepthEXT gl_FragDepth`,`#define texture2D texture`,`#define textureCube texture`,`#define texture2DProj textureProj`,`#define texture2DLodEXT textureLod`,`#define texture2DProjLodEXT textureProjLod`,`#define textureCubeLodEXT textureLod`,`#define texture2DGradEXT textureGrad`,`#define texture2DProjGradEXT textureProjGrad`,`#define textureCubeGradEXT textureGrad`].join(` `)+` -`+_);let y=v+g+o,b=v+_+s,x=dh(i,i.VERTEX_SHADER,y),S=dh(i,i.FRAGMENT_SHADER,b);i.attachShader(h,x),i.attachShader(h,S),n.index0AttributeName===void 0?n.hasPositionAttribute===!0&&i.bindAttribLocation(h,0,`position`):i.bindAttribLocation(h,0,n.index0AttributeName),i.linkProgram(h);function C(t){if(e.debug.checkShaderErrors){let n=i.getProgramInfoLog(h)||``,r=i.getShaderInfoLog(x)||``,a=i.getShaderInfoLog(S)||``,o=n.trim(),s=r.trim(),c=a.trim(),l=!0,u=!0;if(i.getProgramParameter(h,i.LINK_STATUS)===!1){if(l=!1,typeof e.debug.onShaderError==`function`)e.debug.onShaderError(i,h,x,S);else{let e=_h(i,x,`vertex`),n=_h(i,S,`fragment`);Eo(`WebGLProgram: Shader Error `+i.getError()+` - VALIDATE_STATUS `+i.getProgramParameter(h,i.VALIDATE_STATUS)+` +`+_);let y=v+g+o,b=v+_+s,x=Sh(i,i.VERTEX_SHADER,y),S=Sh(i,i.FRAGMENT_SHADER,b);i.attachShader(h,x),i.attachShader(h,S),n.index0AttributeName===void 0?n.hasPositionAttribute===!0&&i.bindAttribLocation(h,0,`position`):i.bindAttribLocation(h,0,n.index0AttributeName),i.linkProgram(h);function C(t){if(e.debug.checkShaderErrors){let n=i.getProgramInfoLog(h)||``,r=i.getShaderInfoLog(x)||``,a=i.getShaderInfoLog(S)||``,o=n.trim(),s=r.trim(),c=a.trim(),l=!0,u=!0;if(i.getProgramParameter(h,i.LINK_STATUS)===!1){if(l=!1,typeof e.debug.onShaderError==`function`)e.debug.onShaderError(i,h,x,S);else{let e=Oh(i,x,`vertex`),n=Oh(i,S,`fragment`);Lo(`WebGLProgram: Shader Error `+i.getError()+` - VALIDATE_STATUS `+i.getProgramParameter(h,i.VALIDATE_STATUS)+` Material Name: `+t.name+` Material Type: `+t.type+` Program Info Log: `+o+` `+e+` -`+n)}}else o===``?(s===``||c===``)&&(u=!1):To(`WebGLProgram: Program Info Log:`,o);u&&(t.diagnostics={runnable:l,programLog:o,vertexShader:{log:s,prefix:g},fragmentShader:{log:c,prefix:_}})}i.deleteShader(x),i.deleteShader(S),w=new uh(i,h),T=Th(i,h)}let w;this.getUniforms=function(){return w===void 0&&C(this),w};let T;this.getAttributes=function(){return T===void 0&&C(this),T};let E=n.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return E===!1&&(E=i.getProgramParameter(h,fh)),E},this.destroy=function(){r.releaseStatesOfProgram(this),i.deleteProgram(h),this.program=void 0},this.type=n.shaderType,this.name=n.shaderName,this.id=ph++,this.cacheKey=t,this.usedTimes=1,this.program=h,this.vertexShader=x,this.fragmentShader=S,this}var qh=0,Jh=class{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e,t,n){let r=this._getShaderCacheForMaterial(e);return r.has(t)===!1&&(r.add(t),t.usedTimes++),r.has(n)===!1&&(r.add(n),n.usedTimes++),this}remove(e){let t=this.materialCache.get(e);for(let e of t)e.usedTimes--,e.usedTimes===0&&this.shaderCache.delete(e.code);return this.materialCache.delete(e),this}getVertexShaderStage(e){return this._getShaderStage(e.vertexShader)}getFragmentShaderStage(e){return this._getShaderStage(e.fragmentShader)}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){let t=this.materialCache,n=t.get(e);return n===void 0&&(n=new Set,t.set(e,n)),n}_getShaderStage(e){let t=this.shaderCache,n=t.get(e);return n===void 0&&(n=new Yh(e),t.set(e,n)),n}},Yh=class{constructor(e){this.id=qh++,this.code=e,this.usedTimes=0}};function Xh(e){return e===1030||e===37490||e===36285}function Zh(e,t,n,r,i,a){let o=new Rs,s=new Jh,c=new Set,l=[],u=new Map,d=r.logarithmicDepthBuffer,f=r.precision,p={MeshDepthMaterial:`depth`,MeshDistanceMaterial:`distance`,MeshNormalMaterial:`normal`,MeshBasicMaterial:`basic`,MeshLambertMaterial:`lambert`,MeshPhongMaterial:`phong`,MeshToonMaterial:`toon`,MeshStandardMaterial:`physical`,MeshPhysicalMaterial:`physical`,MeshMatcapMaterial:`matcap`,LineBasicMaterial:`basic`,LineDashedMaterial:`dashed`,PointsMaterial:`points`,ShadowMaterial:`shadow`,SpriteMaterial:`sprite`};function m(e){return c.add(e),e===0?`uv`:`uv${e}`}function h(i,o,l,u,h,g){let _=u.fog,v=h.geometry,y=i.isMeshStandardMaterial||i.isMeshLambertMaterial||i.isMeshPhongMaterial?u.environment:null,b=i.isMeshStandardMaterial||i.isMeshLambertMaterial&&!i.envMap||i.isMeshPhongMaterial&&!i.envMap,x=t.get(i.envMap||y,b),S=x&&x.mapping===306?x.image.height:null,C=p[i.type];i.precision!==null&&(f=r.getMaxPrecision(i.precision),f!==i.precision&&To(`WebGLProgram.getParameters:`,i.precision,`not supported, using`,f,`instead.`));let w=v.morphAttributes.position||v.morphAttributes.normal||v.morphAttributes.color,T=w===void 0?0:w.length,E=0;v.morphAttributes.position!==void 0&&(E=1),v.morphAttributes.normal!==void 0&&(E=2),v.morphAttributes.color!==void 0&&(E=3);let D,O,k,ee;if(C){let e=vp[C];D=e.vertexShader,O=e.fragmentShader}else{D=i.vertexShader,O=i.fragmentShader;let e=s.getVertexShaderStage(i),t=s.getFragmentShaderStage(i);s.update(i,e,t),k=e.id,ee=t.id}let A=e.getRenderTarget(),te=e.state.buffers.depth.getReversed(),j=h.isInstancedMesh===!0,ne=h.isBatchedMesh===!0,re=!!i.map,ie=!!i.matcap,M=!!x,N=!!i.aoMap,ae=!!i.lightMap,oe=!!i.bumpMap&&i.wireframe===!1,se=!!i.normalMap,ce=!!i.displacementMap,le=!!i.emissiveMap,ue=!!i.metalnessMap,de=!!i.roughnessMap,fe=i.anisotropy>0,pe=i.clearcoat>0,me=i.dispersion>0,he=i.retroreflectivity>0,ge=i.iridescence>0,_e=i.sheen>0,ve=i.transmission>0,ye=fe&&!!i.anisotropyMap,be=pe&&!!i.clearcoatMap,xe=pe&&!!i.clearcoatNormalMap,Se=pe&&!!i.clearcoatRoughnessMap,Ce=ge&&!!i.iridescenceMap,P=ge&&!!i.iridescenceThicknessMap,we=_e&&!!i.sheenColorMap,Te=_e&&!!i.sheenRoughnessMap,F=!!i.specularMap,I=!!i.specularColorMap,Ee=!!i.specularIntensityMap,De=ve&&!!i.transmissionMap,Oe=ve&&!!i.thicknessMap,ke=!!i.gradientMap,Ae=!!i.alphaMap,je=i.alphaTest>0,Me=!!i.alphaHash,Ne=!!i.extensions,Pe=0;i.toneMapped&&(A===null||A.isXRRenderTarget===!0)&&(Pe=e.toneMapping);let Fe={shaderID:C,shaderType:i.type,shaderName:i.name,vertexShader:D,fragmentShader:O,defines:i.defines,customVertexShaderID:k,customFragmentShaderID:ee,isRawShaderMaterial:i.isRawShaderMaterial===!0,glslVersion:i.glslVersion,precision:f,batching:ne,batchingColor:ne&&h._colorsTexture!==null,instancing:j,instancingColor:j&&h.instanceColor!==null,instancingMorph:j&&h.morphTexture!==null,outputColorSpace:A===null?e.outputColorSpace:A.isXRRenderTarget===!0?A.texture.colorSpace:ds.workingColorSpace,alphaToCoverage:!!i.alphaToCoverage,map:re,matcap:ie,envMap:M,envMapMode:M&&x.mapping,envMapCubeUVHeight:S,aoMap:N,lightMap:ae,bumpMap:oe,normalMap:se,displacementMap:ce,emissiveMap:le,normalMapObjectSpace:se&&i.normalMapType===1,normalMapTangentSpace:se&&i.normalMapType===0,packedNormalMap:se&&i.normalMapType===0&&Xh(i.normalMap.format),metalnessMap:ue,roughnessMap:de,anisotropy:fe,anisotropyMap:ye,clearcoat:pe,clearcoatMap:be,clearcoatNormalMap:xe,clearcoatRoughnessMap:Se,dispersion:me,retroreflection:he,iridescence:ge,iridescenceMap:Ce,iridescenceThicknessMap:P,sheen:_e,sheenColorMap:we,sheenRoughnessMap:Te,specularMap:F,specularColorMap:I,specularIntensityMap:Ee,transmission:ve,transmissionMap:De,thicknessMap:Oe,gradientMap:ke,opaque:i.transparent===!1&&i.blending===1&&i.alphaToCoverage===!1,alphaMap:Ae,alphaTest:je,alphaHash:Me,combine:i.combine,mapUv:re&&m(i.map.channel),aoMapUv:N&&m(i.aoMap.channel),lightMapUv:ae&&m(i.lightMap.channel),bumpMapUv:oe&&m(i.bumpMap.channel),normalMapUv:se&&m(i.normalMap.channel),displacementMapUv:ce&&m(i.displacementMap.channel),emissiveMapUv:le&&m(i.emissiveMap.channel),metalnessMapUv:ue&&m(i.metalnessMap.channel),roughnessMapUv:de&&m(i.roughnessMap.channel),anisotropyMapUv:ye&&m(i.anisotropyMap.channel),clearcoatMapUv:be&&m(i.clearcoatMap.channel),clearcoatNormalMapUv:xe&&m(i.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:Se&&m(i.clearcoatRoughnessMap.channel),iridescenceMapUv:Ce&&m(i.iridescenceMap.channel),iridescenceThicknessMapUv:P&&m(i.iridescenceThicknessMap.channel),sheenColorMapUv:we&&m(i.sheenColorMap.channel),sheenRoughnessMapUv:Te&&m(i.sheenRoughnessMap.channel),specularMapUv:F&&m(i.specularMap.channel),specularColorMapUv:I&&m(i.specularColorMap.channel),specularIntensityMapUv:Ee&&m(i.specularIntensityMap.channel),transmissionMapUv:De&&m(i.transmissionMap.channel),thicknessMapUv:Oe&&m(i.thicknessMap.channel),alphaMapUv:Ae&&m(i.alphaMap.channel),vertexTangents:!!v.attributes.tangent&&(se||fe),vertexNormals:!!v.attributes.normal,vertexColors:i.vertexColors,vertexAlphas:i.vertexColors===!0&&!!v.attributes.color&&v.attributes.color.itemSize===4,pointsUvs:h.isPoints===!0&&!!v.attributes.uv&&(re||Ae),fog:!!_,useFog:i.fog===!0,fogExp2:!!_&&_.isFogExp2,flatShading:i.wireframe===!1&&(i.flatShading===!0||v.attributes.normal===void 0&&se===!1&&(i.isMeshLambertMaterial||i.isMeshPhongMaterial||i.isMeshStandardMaterial||i.isMeshPhysicalMaterial)),sizeAttenuation:i.sizeAttenuation===!0,logarithmicDepthBuffer:d,reversedDepthBuffer:te,skinning:h.isSkinnedMesh===!0,hasPositionAttribute:v.attributes.position!==void 0,morphTargets:v.morphAttributes.position!==void 0,morphNormals:v.morphAttributes.normal!==void 0,morphColors:v.morphAttributes.color!==void 0,morphTargetsCount:T,morphTextureStride:E,numSunLights:o.sun.length,numDirLights:o.directional.length,numPointLights:o.point.length,numSpotLights:o.spot.length,numSpotLightMaps:o.spotLightMap.length,numRectAreaLights:o.rectArea.length,numHemiLights:o.hemi.length,numSunLightShadows:o.sunShadowMap.length,numDirLightShadows:o.directionalShadowMap.length,numPointLightShadows:o.pointShadowMap.length,numSpotLightShadows:o.spotShadowMap.length,numSpotLightShadowsWithMaps:o.numSpotLightShadowsWithMaps,numLightProbes:o.numLightProbes,numLightProbeGrids:g.length,numClippingPlanes:a.numPlanes,numClipIntersection:a.numIntersection,dithering:i.dithering,shadowMapEnabled:e.shadowMap.enabled&&l.length>0,shadowMapType:e.shadowMap.type,toneMapping:Pe,decodeVideoTexture:re&&i.map.isVideoTexture===!0&&ds.getTransfer(i.map.colorSpace)===`srgb`,decodeVideoTextureEmissive:le&&i.emissiveMap.isVideoTexture===!0&&ds.getTransfer(i.emissiveMap.colorSpace)===`srgb`,premultipliedAlpha:i.premultipliedAlpha,doubleSided:i.side===2,flipSided:i.side===1,useDepthPacking:i.depthPacking>=0,depthPacking:i.depthPacking||0,index0AttributeName:i.index0AttributeName,extensionClipCullDistance:Ne&&i.extensions.clipCullDistance===!0&&n.has(`WEBGL_clip_cull_distance`),extensionMultiDraw:(Ne&&i.extensions.multiDraw===!0||ne)&&n.has(`WEBGL_multi_draw`),rendererExtensionParallelShaderCompile:n.has(`KHR_parallel_shader_compile`),customProgramCacheKey:i.customProgramCacheKey()};return Fe.vertexUv1s=c.has(1),Fe.vertexUv2s=c.has(2),Fe.vertexUv3s=c.has(3),c.clear(),Fe}function g(t){let n=[];if(t.shaderID?n.push(t.shaderID):(n.push(t.customVertexShaderID),n.push(t.customFragmentShaderID)),t.defines!==void 0)for(let e in t.defines)n.push(e),n.push(t.defines[e]);return t.isRawShaderMaterial===!1&&(_(n,t),v(n,t),n.push(e.outputColorSpace)),n.push(t.customProgramCacheKey),n.join()}function _(e,t){e.push(t.precision),e.push(t.outputColorSpace),e.push(t.envMapMode),e.push(t.envMapCubeUVHeight),e.push(t.mapUv),e.push(t.alphaMapUv),e.push(t.lightMapUv),e.push(t.aoMapUv),e.push(t.bumpMapUv),e.push(t.normalMapUv),e.push(t.displacementMapUv),e.push(t.emissiveMapUv),e.push(t.metalnessMapUv),e.push(t.roughnessMapUv),e.push(t.anisotropyMapUv),e.push(t.clearcoatMapUv),e.push(t.clearcoatNormalMapUv),e.push(t.clearcoatRoughnessMapUv),e.push(t.iridescenceMapUv),e.push(t.iridescenceThicknessMapUv),e.push(t.sheenColorMapUv),e.push(t.sheenRoughnessMapUv),e.push(t.specularMapUv),e.push(t.specularColorMapUv),e.push(t.specularIntensityMapUv),e.push(t.transmissionMapUv),e.push(t.thicknessMapUv),e.push(t.combine),e.push(t.fogExp2),e.push(t.sizeAttenuation),e.push(t.morphTargetsCount),e.push(t.morphAttributeCount),e.push(t.numSunLights),e.push(t.numDirLights),e.push(t.numPointLights),e.push(t.numSpotLights),e.push(t.numSpotLightMaps),e.push(t.numHemiLights),e.push(t.numRectAreaLights),e.push(t.numSunLightShadows),e.push(t.numDirLightShadows),e.push(t.numPointLightShadows),e.push(t.numSpotLightShadows),e.push(t.numSpotLightShadowsWithMaps),e.push(t.numLightProbes),e.push(t.shadowMapType),e.push(t.toneMapping),e.push(t.numClippingPlanes),e.push(t.numClipIntersection),e.push(t.depthPacking)}function v(e,t){o.disableAll(),t.instancing&&o.enable(0),t.instancingColor&&o.enable(1),t.instancingMorph&&o.enable(2),t.matcap&&o.enable(3),t.envMap&&o.enable(4),t.normalMapObjectSpace&&o.enable(5),t.normalMapTangentSpace&&o.enable(6),t.clearcoat&&o.enable(7),t.iridescence&&o.enable(8),t.alphaTest&&o.enable(9),t.vertexColors&&o.enable(10),t.vertexAlphas&&o.enable(11),t.vertexUv1s&&o.enable(12),t.vertexUv2s&&o.enable(13),t.vertexUv3s&&o.enable(14),t.vertexTangents&&o.enable(15),t.anisotropy&&o.enable(16),t.alphaHash&&o.enable(17),t.batching&&o.enable(18),t.dispersion&&o.enable(19),t.retroreflection&&o.enable(24),t.batchingColor&&o.enable(20),t.gradientMap&&o.enable(21),t.packedNormalMap&&o.enable(22),t.vertexNormals&&o.enable(23),e.push(o.mask),o.disableAll(),t.fog&&o.enable(0),t.useFog&&o.enable(1),t.flatShading&&o.enable(2),t.logarithmicDepthBuffer&&o.enable(3),t.reversedDepthBuffer&&o.enable(4),t.skinning&&o.enable(5),t.morphTargets&&o.enable(6),t.morphNormals&&o.enable(7),t.morphColors&&o.enable(8),t.premultipliedAlpha&&o.enable(9),t.shadowMapEnabled&&o.enable(10),t.doubleSided&&o.enable(11),t.flipSided&&o.enable(12),t.useDepthPacking&&o.enable(13),t.dithering&&o.enable(14),t.transmission&&o.enable(15),t.sheen&&o.enable(16),t.opaque&&o.enable(17),t.pointsUvs&&o.enable(18),t.decodeVideoTexture&&o.enable(19),t.decodeVideoTextureEmissive&&o.enable(20),t.alphaToCoverage&&o.enable(21),t.numLightProbeGrids>0&&o.enable(22),t.hasPositionAttribute&&o.enable(23),e.push(o.mask)}function y(e){let t=p[e.type],n;if(t){let e=vp[t];n=Ed.clone(e.uniforms)}else n=e.uniforms;return n}function b(t,n){let r=u.get(n);return r===void 0?(r=new Kh(e,n,t,i),l.push(r),u.set(n,r)):++r.usedTimes,r}function x(e){if(--e.usedTimes===0){let t=l.indexOf(e);l[t]=l[l.length-1],l.pop(),u.delete(e.cacheKey),e.destroy()}}function S(e){s.remove(e)}function C(){s.dispose()}return{getParameters:h,getProgramCacheKey:g,getUniforms:y,acquireProgram:b,releaseProgram:x,releaseShaderCache:S,programs:l,dispose:C}}function Qh(){let e=new WeakMap;function t(t){return e.has(t)}function n(t){let n=e.get(t);return n===void 0&&(n={},e.set(t,n)),n}function r(t){e.delete(t)}function i(t,n,r){e.get(t)[n]=r}function a(){e=new WeakMap}return{has:t,get:n,remove:r,update:i,dispose:a}}function $h(e,t){return e.groupOrder===t.groupOrder?e.renderOrder===t.renderOrder?e.material.id===t.material.id?e.materialVariant===t.materialVariant?e.z===t.z?e.id-t.id:e.z-t.z:e.materialVariant-t.materialVariant:e.material.id-t.material.id:e.renderOrder-t.renderOrder:e.groupOrder-t.groupOrder}function eg(e,t){return e.groupOrder===t.groupOrder?e.renderOrder===t.renderOrder?e.z===t.z?e.id-t.id:t.z-e.z:e.renderOrder-t.renderOrder:e.groupOrder-t.groupOrder}function tg(){let e=[],t=0,n=[],r=[],i=[];function a(){t=0,n.length=0,r.length=0,i.length=0}function o(e){let t=0;return e.isInstancedMesh&&(t+=2),e.isSkinnedMesh&&(t+=1),t}function s(n,r,i,a,s,c){let l=e[t];return l===void 0?(l={id:n.id,object:n,geometry:r,material:i,materialVariant:o(n),groupOrder:a,renderOrder:n.renderOrder,z:s,group:c},e[t]=l):(l.id=n.id,l.object=n,l.geometry=r,l.material=i,l.materialVariant=o(n),l.groupOrder=a,l.renderOrder=n.renderOrder,l.z=s,l.group=c),t++,l}function c(e,t,a,o,c,l,u){u.reversedDepth===!0&&(c=-c);let d=s(e,t,a,o,c,l);a.transmission>0?r.push(d):a.transparent===!0?i.push(d):n.push(d)}function l(e,t,a,o,c,l){let u=s(e,t,a,o,c,l);a.transmission>0?r.unshift(u):a.transparent===!0?i.unshift(u):n.unshift(u)}function u(e,t){n.length>1&&n.sort(e||$h),r.length>1&&r.sort(t||eg),i.length>1&&i.sort(t||eg)}function d(){for(let n=t,r=e.length;n=r.length?(i=new tg,r.push(i)):i=r[n],i}function n(){e=new WeakMap}return{get:t,dispose:n}}function rg(){let e={};return{get:function(t){if(e[t.id]!==void 0)return e[t.id];let n;switch(t.type){case`SunLight`:case`DirectionalLight`:n={direction:new B,color:new V};break;case`SpotLight`:n={position:new B,direction:new B,color:new V,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case`PointLight`:n={position:new B,color:new V,distance:0,decay:0};break;case`HemisphereLight`:n={direction:new B,skyColor:new V,groundColor:new V};break;case`RectAreaLight`:n={color:new V,position:new B,halfWidth:new B,halfHeight:new B}}return e[t.id]=n,n}}}function ig(){let e={};return{get:function(t){if(e[t.id]!==void 0)return e[t.id];let n;switch(t.type){case`SunLight`:case`DirectionalLight`:n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new z};break;case`SpotLight`:n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new z};break;case`PointLight`:n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new z,shadowCameraNear:1,shadowCameraFar:1e3}}return e[t.id]=n,n}}}var ag=0;function og(e,t){return(t.castShadow?2:0)-(e.castShadow?2:0)+ +!!t.map-!!e.map}function sg(e){let t=new rg,n=ig(),r={version:0,hash:{sunLength:-1,directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numSunShadows:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],sun:[],sunShadow:[],sunShadowMap:[],sunShadowMatrix:[],sunShadowCascade:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let e=0;e<9;e++)r.probe.push(new B);let i=new B,a=new Ds,o=new Ds;function s(i){let a=0,o=0,s=0;for(let e=0;e<9;e++)r.probe[e].set(0,0,0);let c=0,l=0,u=0,d=0,f=0,p=0,m=0,h=0,g=0,_=0,v=0,y=0,b=0,x=0;i.sort(og);for(let e=0,S=i.length;e0&&(e.has(`OES_texture_float_linear`)===!0?(r.rectAreaLTC1=U.LTC_FLOAT_1,r.rectAreaLTC2=U.LTC_FLOAT_2):(r.rectAreaLTC1=U.LTC_HALF_1,r.rectAreaLTC2=U.LTC_HALF_2)),r.ambient[0]=a,r.ambient[1]=o,r.ambient[2]=s;let S=r.hash;(S.sunLength!==c||S.directionalLength!==d||S.pointLength!==f||S.spotLength!==p||S.rectAreaLength!==m||S.hemiLength!==h||S.numSunShadows!==l||S.numDirectionalShadows!==g||S.numPointShadows!==_||S.numSpotShadows!==v||S.numSpotMaps!==y||S.numLightProbes!==x)&&(r.sun.length=c,r.directional.length=d,r.spot.length=p,r.rectArea.length=m,r.point.length=f,r.hemi.length=h,r.sunShadow.length=l,r.sunShadowMap.length=l,r.sunShadowMatrix.length=u,r.sunShadowCascade.length=u,r.directionalShadow.length=g,r.directionalShadowMap.length=g,r.directionalShadowMatrix.length=g,r.pointShadow.length=_,r.pointShadowMap.length=_,r.pointShadowMatrix.length=_,r.spotShadow.length=v,r.spotShadowMap.length=v,r.spotLightMatrix.length=v+y-b,r.spotLightMap.length=y,r.numSpotLightShadowsWithMaps=b,r.numLightProbes=x,S.sunLength=c,S.directionalLength=d,S.pointLength=f,S.spotLength=p,S.rectAreaLength=m,S.hemiLength=h,S.numSunShadows=l,S.numDirectionalShadows=g,S.numPointShadows=_,S.numSpotShadows=v,S.numSpotMaps=y,S.numLightProbes=x,r.version=ag++)}function c(e,t){let n=0,s=0,c=0,l=0,u=0,d=0,f=t.matrixWorldInverse;for(let t=0,p=e.length;t=i.length?(a=new cg(e),i.push(a)):a=i[r],a}function r(){t=new WeakMap}return{get:n,dispose:r}}var ug=`void main() { +`+n)}}else o===``?(s===``||c===``)&&(u=!1):Io(`WebGLProgram: Program Info Log:`,o);u&&(t.diagnostics={runnable:l,programLog:o,vertexShader:{log:s,prefix:g},fragmentShader:{log:c,prefix:_}})}i.deleteShader(x),i.deleteShader(S),w=new xh(i,h),T=Ih(i,h)}let w;this.getUniforms=function(){return w===void 0&&C(this),w};let T;this.getAttributes=function(){return T===void 0&&C(this),T};let E=n.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return E===!1&&(E=i.getProgramParameter(h,Ch)),E},this.destroy=function(){r.releaseStatesOfProgram(this),i.deleteProgram(h),this.program=void 0},this.type=n.shaderType,this.name=n.shaderName,this.id=wh++,this.cacheKey=t,this.usedTimes=1,this.program=h,this.vertexShader=x,this.fragmentShader=S,this}var ig=0,ag=class{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e,t,n){let r=this._getShaderCacheForMaterial(e);return r.has(t)===!1&&(r.add(t),t.usedTimes++),r.has(n)===!1&&(r.add(n),n.usedTimes++),this}remove(e){let t=this.materialCache.get(e);for(let e of t)e.usedTimes--,e.usedTimes===0&&this.shaderCache.delete(e.code);return this.materialCache.delete(e),this}getVertexShaderStage(e){return this._getShaderStage(e.vertexShader)}getFragmentShaderStage(e){return this._getShaderStage(e.fragmentShader)}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){let t=this.materialCache,n=t.get(e);return n===void 0&&(n=new Set,t.set(e,n)),n}_getShaderStage(e){let t=this.shaderCache,n=t.get(e);return n===void 0&&(n=new og(e),t.set(e,n)),n}},og=class{constructor(e){this.id=ig++,this.code=e,this.usedTimes=0}};function sg(e){return e===1030||e===37490||e===36285}function cg(e,t,n,r,i,a){let o=new Ys,s=new ag,c=new Set,l=[],u=new Map,d=r.logarithmicDepthBuffer,f=r.precision,p={MeshDepthMaterial:`depth`,MeshDistanceMaterial:`distance`,MeshNormalMaterial:`normal`,MeshBasicMaterial:`basic`,MeshLambertMaterial:`lambert`,MeshPhongMaterial:`phong`,MeshToonMaterial:`toon`,MeshStandardMaterial:`physical`,MeshPhysicalMaterial:`physical`,MeshMatcapMaterial:`matcap`,LineBasicMaterial:`basic`,LineDashedMaterial:`dashed`,PointsMaterial:`points`,ShadowMaterial:`shadow`,SpriteMaterial:`sprite`};function m(e){return c.add(e),e===0?`uv`:`uv${e}`}function h(i,o,l,u,h,g){let _=u.fog,v=h.geometry,y=i.isMeshStandardMaterial||i.isMeshLambertMaterial||i.isMeshPhongMaterial?u.environment:null,b=i.isMeshStandardMaterial||i.isMeshLambertMaterial&&!i.envMap||i.isMeshPhongMaterial&&!i.envMap,x=t.get(i.envMap||y,b),S=x&&x.mapping===306?x.image.height:null,C=p[i.type];i.precision!==null&&(f=r.getMaxPrecision(i.precision),f!==i.precision&&Io(`WebGLProgram.getParameters:`,i.precision,`not supported, using`,f,`instead.`));let w=v.morphAttributes.position||v.morphAttributes.normal||v.morphAttributes.color,T=w===void 0?0:w.length,E=0;v.morphAttributes.position!==void 0&&(E=1),v.morphAttributes.normal!==void 0&&(E=2),v.morphAttributes.color!==void 0&&(E=3);let D,O,k,ee;if(C){let e=kp[C];D=e.vertexShader,O=e.fragmentShader}else{D=i.vertexShader,O=i.fragmentShader;let e=s.getVertexShaderStage(i),t=s.getFragmentShaderStage(i);s.update(i,e,t),k=e.id,ee=t.id}let A=e.getRenderTarget(),te=e.state.buffers.depth.getReversed(),j=h.isInstancedMesh===!0,M=h.isBatchedMesh===!0,ne=!!i.map,re=!!i.matcap,ie=!!x,N=!!i.aoMap,ae=!!i.lightMap,oe=!!i.bumpMap&&i.wireframe===!1,se=!!i.normalMap,ce=!!i.displacementMap,le=!!i.emissiveMap,ue=!!i.metalnessMap,de=!!i.roughnessMap,fe=i.anisotropy>0,pe=i.clearcoat>0,me=i.dispersion>0,he=i.retroreflectivity>0,ge=i.iridescence>0,_e=i.sheen>0,ve=i.transmission>0,ye=fe&&!!i.anisotropyMap,be=pe&&!!i.clearcoatMap,xe=pe&&!!i.clearcoatNormalMap,Se=pe&&!!i.clearcoatRoughnessMap,Ce=ge&&!!i.iridescenceMap,P=ge&&!!i.iridescenceThicknessMap,we=_e&&!!i.sheenColorMap,Te=_e&&!!i.sheenRoughnessMap,F=!!i.specularMap,I=!!i.specularColorMap,Ee=!!i.specularIntensityMap,De=ve&&!!i.transmissionMap,Oe=ve&&!!i.thicknessMap,ke=!!i.gradientMap,Ae=!!i.alphaMap,je=i.alphaTest>0,Me=!!i.alphaHash,Ne=!!i.extensions,Pe=0;i.toneMapped&&(A===null||A.isXRRenderTarget===!0)&&(Pe=e.toneMapping);let Fe={shaderID:C,shaderType:i.type,shaderName:i.name,vertexShader:D,fragmentShader:O,defines:i.defines,customVertexShaderID:k,customFragmentShaderID:ee,isRawShaderMaterial:i.isRawShaderMaterial===!0,glslVersion:i.glslVersion,precision:f,batching:M,batchingColor:M&&h._colorsTexture!==null,instancing:j,instancingColor:j&&h.instanceColor!==null,instancingMorph:j&&h.morphTexture!==null,outputColorSpace:A===null?e.outputColorSpace:A.isXRRenderTarget===!0?A.texture.colorSpace:Ss.workingColorSpace,alphaToCoverage:!!i.alphaToCoverage,map:ne,matcap:re,envMap:ie,envMapMode:ie&&x.mapping,envMapCubeUVHeight:S,aoMap:N,lightMap:ae,bumpMap:oe,normalMap:se,displacementMap:ce,emissiveMap:le,normalMapObjectSpace:se&&i.normalMapType===1,normalMapTangentSpace:se&&i.normalMapType===0,packedNormalMap:se&&i.normalMapType===0&&sg(i.normalMap.format),metalnessMap:ue,roughnessMap:de,anisotropy:fe,anisotropyMap:ye,clearcoat:pe,clearcoatMap:be,clearcoatNormalMap:xe,clearcoatRoughnessMap:Se,dispersion:me,retroreflection:he,iridescence:ge,iridescenceMap:Ce,iridescenceThicknessMap:P,sheen:_e,sheenColorMap:we,sheenRoughnessMap:Te,specularMap:F,specularColorMap:I,specularIntensityMap:Ee,transmission:ve,transmissionMap:De,thicknessMap:Oe,gradientMap:ke,opaque:i.transparent===!1&&i.blending===1&&i.alphaToCoverage===!1,alphaMap:Ae,alphaTest:je,alphaHash:Me,combine:i.combine,mapUv:ne&&m(i.map.channel),aoMapUv:N&&m(i.aoMap.channel),lightMapUv:ae&&m(i.lightMap.channel),bumpMapUv:oe&&m(i.bumpMap.channel),normalMapUv:se&&m(i.normalMap.channel),displacementMapUv:ce&&m(i.displacementMap.channel),emissiveMapUv:le&&m(i.emissiveMap.channel),metalnessMapUv:ue&&m(i.metalnessMap.channel),roughnessMapUv:de&&m(i.roughnessMap.channel),anisotropyMapUv:ye&&m(i.anisotropyMap.channel),clearcoatMapUv:be&&m(i.clearcoatMap.channel),clearcoatNormalMapUv:xe&&m(i.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:Se&&m(i.clearcoatRoughnessMap.channel),iridescenceMapUv:Ce&&m(i.iridescenceMap.channel),iridescenceThicknessMapUv:P&&m(i.iridescenceThicknessMap.channel),sheenColorMapUv:we&&m(i.sheenColorMap.channel),sheenRoughnessMapUv:Te&&m(i.sheenRoughnessMap.channel),specularMapUv:F&&m(i.specularMap.channel),specularColorMapUv:I&&m(i.specularColorMap.channel),specularIntensityMapUv:Ee&&m(i.specularIntensityMap.channel),transmissionMapUv:De&&m(i.transmissionMap.channel),thicknessMapUv:Oe&&m(i.thicknessMap.channel),alphaMapUv:Ae&&m(i.alphaMap.channel),vertexTangents:!!v.attributes.tangent&&(se||fe),vertexNormals:!!v.attributes.normal,vertexColors:i.vertexColors,vertexAlphas:i.vertexColors===!0&&!!v.attributes.color&&v.attributes.color.itemSize===4,pointsUvs:h.isPoints===!0&&!!v.attributes.uv&&(ne||Ae),fog:!!_,useFog:i.fog===!0,fogExp2:!!_&&_.isFogExp2,flatShading:i.wireframe===!1&&(i.flatShading===!0||v.attributes.normal===void 0&&se===!1&&(i.isMeshLambertMaterial||i.isMeshPhongMaterial||i.isMeshStandardMaterial||i.isMeshPhysicalMaterial)),sizeAttenuation:i.sizeAttenuation===!0,logarithmicDepthBuffer:d,reversedDepthBuffer:te,skinning:h.isSkinnedMesh===!0,hasPositionAttribute:v.attributes.position!==void 0,morphTargets:v.morphAttributes.position!==void 0,morphNormals:v.morphAttributes.normal!==void 0,morphColors:v.morphAttributes.color!==void 0,morphTargetsCount:T,morphTextureStride:E,numSunLights:o.sun.length,numDirLights:o.directional.length,numPointLights:o.point.length,numSpotLights:o.spot.length,numSpotLightMaps:o.spotLightMap.length,numRectAreaLights:o.rectArea.length,numHemiLights:o.hemi.length,numSunLightShadows:o.sunShadowMap.length,numDirLightShadows:o.directionalShadowMap.length,numPointLightShadows:o.pointShadowMap.length,numSpotLightShadows:o.spotShadowMap.length,numSpotLightShadowsWithMaps:o.numSpotLightShadowsWithMaps,numLightProbes:o.numLightProbes,numLightProbeGrids:g.length,numClippingPlanes:a.numPlanes,numClipIntersection:a.numIntersection,dithering:i.dithering,shadowMapEnabled:e.shadowMap.enabled&&l.length>0,shadowMapType:e.shadowMap.type,toneMapping:Pe,decodeVideoTexture:ne&&i.map.isVideoTexture===!0&&Ss.getTransfer(i.map.colorSpace)===`srgb`,decodeVideoTextureEmissive:le&&i.emissiveMap.isVideoTexture===!0&&Ss.getTransfer(i.emissiveMap.colorSpace)===`srgb`,premultipliedAlpha:i.premultipliedAlpha,doubleSided:i.side===2,flipSided:i.side===1,useDepthPacking:i.depthPacking>=0,depthPacking:i.depthPacking||0,index0AttributeName:i.index0AttributeName,extensionClipCullDistance:Ne&&i.extensions.clipCullDistance===!0&&n.has(`WEBGL_clip_cull_distance`),extensionMultiDraw:(Ne&&i.extensions.multiDraw===!0||M)&&n.has(`WEBGL_multi_draw`),rendererExtensionParallelShaderCompile:n.has(`KHR_parallel_shader_compile`),customProgramCacheKey:i.customProgramCacheKey()};return Fe.vertexUv1s=c.has(1),Fe.vertexUv2s=c.has(2),Fe.vertexUv3s=c.has(3),c.clear(),Fe}function g(t){let n=[];if(t.shaderID?n.push(t.shaderID):(n.push(t.customVertexShaderID),n.push(t.customFragmentShaderID)),t.defines!==void 0)for(let e in t.defines)n.push(e),n.push(t.defines[e]);return t.isRawShaderMaterial===!1&&(_(n,t),v(n,t),n.push(e.outputColorSpace)),n.push(t.customProgramCacheKey),n.join()}function _(e,t){e.push(t.precision),e.push(t.outputColorSpace),e.push(t.envMapMode),e.push(t.envMapCubeUVHeight),e.push(t.mapUv),e.push(t.alphaMapUv),e.push(t.lightMapUv),e.push(t.aoMapUv),e.push(t.bumpMapUv),e.push(t.normalMapUv),e.push(t.displacementMapUv),e.push(t.emissiveMapUv),e.push(t.metalnessMapUv),e.push(t.roughnessMapUv),e.push(t.anisotropyMapUv),e.push(t.clearcoatMapUv),e.push(t.clearcoatNormalMapUv),e.push(t.clearcoatRoughnessMapUv),e.push(t.iridescenceMapUv),e.push(t.iridescenceThicknessMapUv),e.push(t.sheenColorMapUv),e.push(t.sheenRoughnessMapUv),e.push(t.specularMapUv),e.push(t.specularColorMapUv),e.push(t.specularIntensityMapUv),e.push(t.transmissionMapUv),e.push(t.thicknessMapUv),e.push(t.combine),e.push(t.fogExp2),e.push(t.sizeAttenuation),e.push(t.morphTargetsCount),e.push(t.morphAttributeCount),e.push(t.numSunLights),e.push(t.numDirLights),e.push(t.numPointLights),e.push(t.numSpotLights),e.push(t.numSpotLightMaps),e.push(t.numHemiLights),e.push(t.numRectAreaLights),e.push(t.numSunLightShadows),e.push(t.numDirLightShadows),e.push(t.numPointLightShadows),e.push(t.numSpotLightShadows),e.push(t.numSpotLightShadowsWithMaps),e.push(t.numLightProbes),e.push(t.shadowMapType),e.push(t.toneMapping),e.push(t.numClippingPlanes),e.push(t.numClipIntersection),e.push(t.depthPacking)}function v(e,t){o.disableAll(),t.instancing&&o.enable(0),t.instancingColor&&o.enable(1),t.instancingMorph&&o.enable(2),t.matcap&&o.enable(3),t.envMap&&o.enable(4),t.normalMapObjectSpace&&o.enable(5),t.normalMapTangentSpace&&o.enable(6),t.clearcoat&&o.enable(7),t.iridescence&&o.enable(8),t.alphaTest&&o.enable(9),t.vertexColors&&o.enable(10),t.vertexAlphas&&o.enable(11),t.vertexUv1s&&o.enable(12),t.vertexUv2s&&o.enable(13),t.vertexUv3s&&o.enable(14),t.vertexTangents&&o.enable(15),t.anisotropy&&o.enable(16),t.alphaHash&&o.enable(17),t.batching&&o.enable(18),t.dispersion&&o.enable(19),t.retroreflection&&o.enable(24),t.batchingColor&&o.enable(20),t.gradientMap&&o.enable(21),t.packedNormalMap&&o.enable(22),t.vertexNormals&&o.enable(23),e.push(o.mask),o.disableAll(),t.fog&&o.enable(0),t.useFog&&o.enable(1),t.flatShading&&o.enable(2),t.logarithmicDepthBuffer&&o.enable(3),t.reversedDepthBuffer&&o.enable(4),t.skinning&&o.enable(5),t.morphTargets&&o.enable(6),t.morphNormals&&o.enable(7),t.morphColors&&o.enable(8),t.premultipliedAlpha&&o.enable(9),t.shadowMapEnabled&&o.enable(10),t.doubleSided&&o.enable(11),t.flipSided&&o.enable(12),t.useDepthPacking&&o.enable(13),t.dithering&&o.enable(14),t.transmission&&o.enable(15),t.sheen&&o.enable(16),t.opaque&&o.enable(17),t.pointsUvs&&o.enable(18),t.decodeVideoTexture&&o.enable(19),t.decodeVideoTextureEmissive&&o.enable(20),t.alphaToCoverage&&o.enable(21),t.numLightProbeGrids>0&&o.enable(22),t.hasPositionAttribute&&o.enable(23),e.push(o.mask)}function y(e){let t=p[e.type],n;if(t){let e=kp[t];n=Ld.clone(e.uniforms)}else n=e.uniforms;return n}function b(t,n){let r=u.get(n);return r===void 0?(r=new rg(e,n,t,i),l.push(r),u.set(n,r)):++r.usedTimes,r}function x(e){if(--e.usedTimes===0){let t=l.indexOf(e);l[t]=l[l.length-1],l.pop(),u.delete(e.cacheKey),e.destroy()}}function S(e){s.remove(e)}function C(){s.dispose()}return{getParameters:h,getProgramCacheKey:g,getUniforms:y,acquireProgram:b,releaseProgram:x,releaseShaderCache:S,programs:l,dispose:C}}function lg(){let e=new WeakMap;function t(t){return e.has(t)}function n(t){let n=e.get(t);return n===void 0&&(n={},e.set(t,n)),n}function r(t){e.delete(t)}function i(t,n,r){e.get(t)[n]=r}function a(){e=new WeakMap}return{has:t,get:n,remove:r,update:i,dispose:a}}function ug(e,t){return e.groupOrder===t.groupOrder?e.renderOrder===t.renderOrder?e.material.id===t.material.id?e.materialVariant===t.materialVariant?e.z===t.z?e.id-t.id:e.z-t.z:e.materialVariant-t.materialVariant:e.material.id-t.material.id:e.renderOrder-t.renderOrder:e.groupOrder-t.groupOrder}function dg(e,t){return e.groupOrder===t.groupOrder?e.renderOrder===t.renderOrder?e.z===t.z?e.id-t.id:t.z-e.z:e.renderOrder-t.renderOrder:e.groupOrder-t.groupOrder}function fg(){let e=[],t=0,n=[],r=[],i=[];function a(){t=0,n.length=0,r.length=0,i.length=0}function o(e){let t=0;return e.isInstancedMesh&&(t+=2),e.isSkinnedMesh&&(t+=1),t}function s(n,r,i,a,s,c){let l=e[t];return l===void 0?(l={id:n.id,object:n,geometry:r,material:i,materialVariant:o(n),groupOrder:a,renderOrder:n.renderOrder,z:s,group:c},e[t]=l):(l.id=n.id,l.object=n,l.geometry=r,l.material=i,l.materialVariant=o(n),l.groupOrder=a,l.renderOrder=n.renderOrder,l.z=s,l.group=c),t++,l}function c(e,t,a,o,c,l,u){u.reversedDepth===!0&&(c=-c);let d=s(e,t,a,o,c,l);a.transmission>0?r.push(d):a.transparent===!0?i.push(d):n.push(d)}function l(e,t,a,o,c,l){let u=s(e,t,a,o,c,l);a.transmission>0?r.unshift(u):a.transparent===!0?i.unshift(u):n.unshift(u)}function u(e,t){n.length>1&&n.sort(e||ug),r.length>1&&r.sort(t||dg),i.length>1&&i.sort(t||dg)}function d(){for(let n=t,r=e.length;n=r.length?(i=new fg,r.push(i)):i=r[n],i}function n(){e=new WeakMap}return{get:t,dispose:n}}function mg(){let e={};return{get:function(t){if(e[t.id]!==void 0)return e[t.id];let n;switch(t.type){case`SunLight`:case`DirectionalLight`:n={direction:new B,color:new V};break;case`SpotLight`:n={position:new B,direction:new B,color:new V,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case`PointLight`:n={position:new B,color:new V,distance:0,decay:0};break;case`HemisphereLight`:n={direction:new B,skyColor:new V,groundColor:new V};break;case`RectAreaLight`:n={color:new V,position:new B,halfWidth:new B,halfHeight:new B}}return e[t.id]=n,n}}}function hg(){let e={};return{get:function(t){if(e[t.id]!==void 0)return e[t.id];let n;switch(t.type){case`SunLight`:case`DirectionalLight`:n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new z};break;case`SpotLight`:n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new z};break;case`PointLight`:n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new z,shadowCameraNear:1,shadowCameraFar:1e3}}return e[t.id]=n,n}}}var gg=0;function _g(e,t){return(t.castShadow?2:0)-(e.castShadow?2:0)+ +!!t.map-!!e.map}function vg(e){let t=new mg,n=hg(),r={version:0,hash:{sunLength:-1,directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numSunShadows:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],sun:[],sunShadow:[],sunShadowMap:[],sunShadowMatrix:[],sunShadowCascade:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let e=0;e<9;e++)r.probe.push(new B);let i=new B,a=new Rs,o=new Rs;function s(i){let a=0,o=0,s=0;for(let e=0;e<9;e++)r.probe[e].set(0,0,0);let c=0,l=0,u=0,d=0,f=0,p=0,m=0,h=0,g=0,_=0,v=0,y=0,b=0,x=0;i.sort(_g);for(let e=0,S=i.length;e0&&(e.has(`OES_texture_float_linear`)===!0?(r.rectAreaLTC1=U.LTC_FLOAT_1,r.rectAreaLTC2=U.LTC_FLOAT_2):(r.rectAreaLTC1=U.LTC_HALF_1,r.rectAreaLTC2=U.LTC_HALF_2)),r.ambient[0]=a,r.ambient[1]=o,r.ambient[2]=s;let S=r.hash;(S.sunLength!==c||S.directionalLength!==d||S.pointLength!==f||S.spotLength!==p||S.rectAreaLength!==m||S.hemiLength!==h||S.numSunShadows!==l||S.numDirectionalShadows!==g||S.numPointShadows!==_||S.numSpotShadows!==v||S.numSpotMaps!==y||S.numLightProbes!==x)&&(r.sun.length=c,r.directional.length=d,r.spot.length=p,r.rectArea.length=m,r.point.length=f,r.hemi.length=h,r.sunShadow.length=l,r.sunShadowMap.length=l,r.sunShadowMatrix.length=u,r.sunShadowCascade.length=u,r.directionalShadow.length=g,r.directionalShadowMap.length=g,r.directionalShadowMatrix.length=g,r.pointShadow.length=_,r.pointShadowMap.length=_,r.pointShadowMatrix.length=_,r.spotShadow.length=v,r.spotShadowMap.length=v,r.spotLightMatrix.length=v+y-b,r.spotLightMap.length=y,r.numSpotLightShadowsWithMaps=b,r.numLightProbes=x,S.sunLength=c,S.directionalLength=d,S.pointLength=f,S.spotLength=p,S.rectAreaLength=m,S.hemiLength=h,S.numSunShadows=l,S.numDirectionalShadows=g,S.numPointShadows=_,S.numSpotShadows=v,S.numSpotMaps=y,S.numLightProbes=x,r.version=gg++)}function c(e,t){let n=0,s=0,c=0,l=0,u=0,d=0,f=t.matrixWorldInverse;for(let t=0,p=e.length;t=i.length?(a=new yg(e),i.push(a)):a=i[r],a}function r(){t=new WeakMap}return{get:n,dispose:r}}var xg=`void main() { gl_Position = vec4( position, 1.0 ); -}`,dg=`uniform sampler2D shadow_pass; +}`,Sg=`uniform sampler2D shadow_pass; uniform vec2 resolution; uniform float radius; void main() { @@ -4204,12 +4204,12 @@ void main() { squared_mean = squared_mean / samples; float std_dev = sqrt( max( 0.0, squared_mean - mean * mean ) ); gl_FragColor = vec4( mean, std_dev, 0.0, 1.0 ); -}`,fg=[new B(1,0,0),new B(-1,0,0),new B(0,1,0),new B(0,-1,0),new B(0,0,1),new B(0,0,-1)],pg=[new B(0,-1,0),new B(0,-1,0),new B(0,0,1),new B(0,0,-1),new B(0,-1,0),new B(0,-1,0)],mg=new Ds,hg=new B,gg=new B;function _g(e,t,n){let r=new ou,i=new z,a=new z,o=new Ss,s=new Nd,c=new Pd,l={},u=n.maxTextureSize,d={0:1,1:0,2:2},f=new kd({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new z},radius:{value:4}},vertexShader:ug,fragmentShader:dg}),p=f.clone();p.defines.HORIZONTAL_PASS=1;let m=new il;m.setAttribute(`position`,new Uc(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));let h=new H(m,f),g=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=1;let _=this.type;this.render=function(t,n,s){if(g.enabled===!1||g.autoUpdate===!1&&g.needsUpdate===!1||t.length===0)return;this.type===2&&(To(`WebGLShadowMap: PCFSoftShadowMap has been removed. Using PCFShadowMap instead.`),this.type=1);let c=e.getRenderTarget(),l=e.getActiveCubeFace(),d=e.getActiveMipmapLevel(),f=e.state;f.setBlending(0),f.buffers.depth.getReversed()===!0?f.buffers.color.setClear(0,0,0,0):f.buffers.color.setClear(1,1,1,1),f.buffers.depth.setTest(!0),f.setScissorTest(!1);let p=_!==this.type;p&&n.traverse(function(e){e.material&&(Array.isArray(e.material)?e.material.forEach(e=>e.needsUpdate=!0):e.material.needsUpdate=!0)});for(let c=0,l=t.length;cu||i.y>u)&&(i.x>u&&(a.x=Math.floor(u/m.x),i.x=a.x*m.x,d.mapSize.x=a.x),i.y>u&&(a.y=Math.floor(u/m.y),i.y=a.y*m.y,d.mapSize.y=a.y));let h=e.state.buffers.depth.getReversed();if(d.camera._reversedDepth=h,d.map===null||p===!0){if(d.map!==null&&(d.map.depthTexture!==null&&(d.map.depthTexture.dispose(),d.map.depthTexture=null),d.map.dispose()),this.type===3){if(l.isPointLight){To(`WebGLShadowMap: VSM shadow maps are not supported for PointLights. Use PCF or BasicShadowMap instead.`);continue}d.map=new ws(i.x,i.y,{format:ha,type:na,minFilter:Ki,magFilter:Ki,generateMipmaps:!1}),d.map.texture.name=l.name+`.shadowMap`,d.map.depthTexture=new Au(i.x,i.y,ta),d.map.depthTexture.name=l.name+`.shadowMapDepth`,d.map.depthTexture.format=da,d.map.depthTexture.compareFunction=null,d.map.depthTexture.minFilter=Ui,d.map.depthTexture.magFilter=Ui}else l.isPointLight?(d.map=new Jp(i.x),d.map.depthTexture=new ju(i.x,ea)):(d.map=new ws(i.x,i.y),d.map.depthTexture=new Au(i.x,i.y,ea)),d.map.depthTexture.name=l.name+`.shadowMap`,d.map.depthTexture.format=da,this.type===1?(d.map.depthTexture.compareFunction=h?518:515,d.map.depthTexture.minFilter=Ki,d.map.depthTexture.magFilter=Ki):(d.map.depthTexture.compareFunction=null,d.map.depthTexture.minFilter=Ui,d.map.depthTexture.magFilter=Ui);d.camera.updateProjectionMatrix()}d.map.isWebGLCubeRenderTarget!==!0&&(d.map.width!==i.x||d.map.height!==i.y)&&d.map.setSize(i.x,i.y);let g=d.map.isWebGLCubeRenderTarget?6:d.getViewportCount();l.isPointLight!==!0&&d.updateMatrices(l,s);for(let t=0;t0||n.map&&n.alphaTest>0||n.alphaToCoverage===!0){let e=a.uuid,t=n.uuid,r=l[e];r===void 0&&(r={},l[e]=r);let i=r[t];i===void 0&&(i=a.clone(),r[t]=i,n.addEventListener(`dispose`,x)),a=i}if(a.visible=n.visible,a.wireframe=n.wireframe,i===3?a.side=n.shadowSide===null?n.side:n.shadowSide:a.side=n.shadowSide===null?d[n.side]:n.shadowSide,a.alphaMap=n.alphaMap,a.alphaTest=n.alphaToCoverage===!0?.5:n.alphaTest,a.map=n.map,a.clipShadows=n.clipShadows,a.clippingPlanes=n.clippingPlanes,a.clipIntersection=n.clipIntersection,a.displacementMap=n.displacementMap,a.displacementScale=n.displacementScale,a.displacementBias=n.displacementBias,a.wireframeLinewidth=n.wireframeLinewidth,a.linewidth=n.linewidth,r.isPointLight===!0&&a.isMeshDistanceMaterial===!0){let t=e.properties.get(a);t.light=r}return a}function b(n,i,a,o,s){if(n.visible===!1)return;if(n.layers.test(i.layers)&&(n.isMesh||n.isLine||n.isPoints)&&(n.castShadow||n.receiveShadow&&s===3)&&(!n.frustumCulled||n.intersectsFrustum(r))){n.modelViewMatrix.multiplyMatrices(a.matrixWorldInverse,n.matrixWorld);let r=t.update(n),c=n.material;if(Array.isArray(c)){let t=r.groups;for(let l=0,u=t.length;l=2):(ne=parseFloat(/^WebGL (\d)/.exec(re)[1]),j=ne>=1);let ie=null,M={},N=e.getParameter(e.SCISSOR_BOX),ae=e.getParameter(e.VIEWPORT),oe=new Ss().fromArray(N),se=new Ss().fromArray(ae);function ce(t,n,r,i){let a=new Uint8Array(4),o=e.createTexture();e.bindTexture(t,o),e.texParameteri(t,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(t,e.TEXTURE_MAG_FILTER,e.NEAREST);for(let o=0;o`u`?!1:/OculusBrowser/g.test(navigator.userAgent),l=new z,u=new WeakMap,d=new Set,f,p=new WeakMap,m=!1;try{m=typeof OffscreenCanvas<`u`&&new OffscreenCanvas(1,1).getContext(`2d`)!==null}catch{}function h(e,t){return m?new OffscreenCanvas(e,t):bo(`canvas`)}function g(e,t,n){let r=1,i=F(e);if((i.width>n||i.height>n)&&(r=n/Math.max(i.width,i.height)),r<1){if(typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement||typeof ImageBitmap<`u`&&e instanceof ImageBitmap||typeof VideoFrame<`u`&&e instanceof VideoFrame){let n=Math.floor(r*i.width),a=Math.floor(r*i.height);f===void 0&&(f=h(n,a));let o=t?h(n,a):f;return o.width=n,o.height=a,o.getContext(`2d`).drawImage(e,0,0,n,a),To(`WebGLRenderer: Texture has been resized from (`+i.width+`x`+i.height+`) to (`+n+`x`+a+`).`),o}return`data`in e&&To(`WebGLRenderer: Image in DataTexture is too big (`+i.width+`x`+i.height+`).`),e}return e}function _(e){return e.generateMipmaps}function v(t){e.generateMipmap(t)}function y(t){return t.isWebGLCubeRenderTarget?e.TEXTURE_CUBE_MAP:t.isWebGL3DRenderTarget?e.TEXTURE_3D:t.isWebGLArrayRenderTarget||t.isCompressedArrayTexture?e.TEXTURE_2D_ARRAY:e.TEXTURE_2D}function b(n,r,i,a,o,s=!1){if(n!==null){if(e[n]!==void 0)return e[n];To(`WebGLRenderer: Attempt to use non-existing WebGL internal format '`+n+`'`)}let c;a&&(c=t.get(`EXT_texture_norm16`),c||To(`WebGLRenderer: Unable to use normalized textures without EXT_texture_norm16 extension`));let l=r;if(r===e.RED&&(i===e.FLOAT&&(l=e.R32F),i===e.HALF_FLOAT&&(l=e.R16F),i===e.UNSIGNED_BYTE&&(l=e.R8),i===e.UNSIGNED_SHORT&&c&&(l=c.R16_EXT),i===e.SHORT&&c&&(l=c.R16_SNORM_EXT)),r===e.RED_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.R8UI),i===e.UNSIGNED_SHORT&&(l=e.R16UI),i===e.UNSIGNED_INT&&(l=e.R32UI),i===e.BYTE&&(l=e.R8I),i===e.SHORT&&(l=e.R16I),i===e.INT&&(l=e.R32I)),r===e.RG&&(i===e.FLOAT&&(l=e.RG32F),i===e.HALF_FLOAT&&(l=e.RG16F),i===e.UNSIGNED_BYTE&&(l=e.RG8),i===e.UNSIGNED_SHORT&&c&&(l=c.RG16_EXT),i===e.SHORT&&c&&(l=c.RG16_SNORM_EXT)),r===e.RG_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.RG8UI),i===e.UNSIGNED_SHORT&&(l=e.RG16UI),i===e.UNSIGNED_INT&&(l=e.RG32UI),i===e.BYTE&&(l=e.RG8I),i===e.SHORT&&(l=e.RG16I),i===e.INT&&(l=e.RG32I)),r===e.RGB_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.RGB8UI),i===e.UNSIGNED_SHORT&&(l=e.RGB16UI),i===e.UNSIGNED_INT&&(l=e.RGB32UI),i===e.BYTE&&(l=e.RGB8I),i===e.SHORT&&(l=e.RGB16I),i===e.INT&&(l=e.RGB32I)),r===e.RGBA_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.RGBA8UI),i===e.UNSIGNED_SHORT&&(l=e.RGBA16UI),i===e.UNSIGNED_INT&&(l=e.RGBA32UI),i===e.BYTE&&(l=e.RGBA8I),i===e.SHORT&&(l=e.RGBA16I),i===e.INT&&(l=e.RGBA32I)),r===e.RGB&&(i===e.UNSIGNED_SHORT&&c&&(l=c.RGB16_EXT),i===e.SHORT&&c&&(l=c.RGB16_SNORM_EXT),i===e.UNSIGNED_INT_5_9_9_9_REV&&(l=e.RGB9_E5),i===e.UNSIGNED_INT_10F_11F_11F_REV&&(l=e.R11F_G11F_B10F)),r===e.RGBA){let t=s?fo:ds.getTransfer(o);i===e.FLOAT&&(l=e.RGBA32F),i===e.HALF_FLOAT&&(l=e.RGBA16F),i===e.UNSIGNED_BYTE&&(l=t===`srgb`?e.SRGB8_ALPHA8:e.RGBA8),i===e.UNSIGNED_SHORT&&c&&(l=c.RGBA16_EXT),i===e.SHORT&&c&&(l=c.RGBA16_SNORM_EXT),i===e.UNSIGNED_SHORT_4_4_4_4&&(l=e.RGBA4),i===e.UNSIGNED_SHORT_5_5_5_1&&(l=e.RGB5_A1)}return(l===e.R16F||l===e.R32F||l===e.RG16F||l===e.RG32F||l===e.RGBA16F||l===e.RGBA32F)&&t.get(`EXT_color_buffer_float`),l}function x(t,n){let r;return t?n===null||n===1014||n===1020?r=e.DEPTH24_STENCIL8:n===1015?r=e.DEPTH32F_STENCIL8:n===1012&&(r=e.DEPTH24_STENCIL8,To(`DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.`)):n===null||n===1014||n===1020?r=e.DEPTH_COMPONENT24:n===1015?r=e.DEPTH_COMPONENT32F:n===1012&&(r=e.DEPTH_COMPONENT16),r}function S(e,t){return _(e)===!0||e.isFramebufferTexture&&e.minFilter!==1003&&e.minFilter!==1006?Math.log2(Math.max(t.width,t.height))+1:e.mipmaps!==void 0&&e.mipmaps.length>0?e.mipmaps.length:e.isCompressedTexture&&Array.isArray(e.image)?t.mipmaps.length:1}function C(e){let t=e.target;t.removeEventListener(`dispose`,C),T(t),t.isVideoTexture&&u.delete(t),t.isHTMLTexture&&d.delete(t)}function w(e){let t=e.target;t.removeEventListener(`dispose`,w),D(t)}function T(e){let t=r.get(e);if(t.__webglInit===void 0)return;let n=e.source,i=p.get(n);if(i){let r=i[t.__cacheKey];r.usedTimes--,r.usedTimes===0&&E(e),Object.keys(i).length===0&&p.delete(n)}r.remove(e)}function E(t){let n=r.get(t);e.deleteTexture(n.__webglTexture);let i=t.source,a=p.get(i);delete a[n.__cacheKey],o.memory.textures--}function D(t){let n=r.get(t);if(t.depthTexture&&(t.depthTexture.dispose(),r.remove(t.depthTexture)),t.isWebGLCubeRenderTarget)for(let t=0;t<6;t++){if(Array.isArray(n.__webglFramebuffer[t]))for(let r=0;r=i.maxTextures&&To(`WebGLTextures: Trying to use `+(e+1)+` texture units while this GPU supports only `+i.maxTextures),O+=1,e}function j(e){let t=[];return t.push(e.wrapS),t.push(e.wrapT),t.push(e.wrapR||0),t.push(e.magFilter),t.push(e.minFilter),t.push(e.anisotropy),t.push(e.internalFormat),t.push(e.format),t.push(e.type),t.push(e.generateMipmaps),t.push(e.premultiplyAlpha),t.push(e.flipY),t.push(e.unpackAlignment),t.push(e.colorSpace),t.join()}function ne(t,i){let a=r.get(t);if(t.isVideoTexture&&we(t),t.isRenderTargetTexture===!1&&t.isExternalTexture!==!0&&t.version>0&&a.__version!==t.version){let e=t.image;if(e===null)To(`WebGLRenderer: Texture marked for update but no image data found.`);else if(e.complete===!1)To(`WebGLRenderer: Texture marked for update but image is incomplete`);else{de(a,t,i);return}}else t.isExternalTexture&&(a.__webglTexture=t.sourceTexture?t.sourceTexture:null);n.bindTexture(e.TEXTURE_2D,a.__webglTexture,e.TEXTURE0+i)}function re(t,i){let a=r.get(t);t.isRenderTargetTexture===!1&&t.version>0&&a.__version!==t.version?de(a,t,i):(t.isExternalTexture&&(a.__webglTexture=t.sourceTexture?t.sourceTexture:null),n.bindTexture(e.TEXTURE_2D_ARRAY,a.__webglTexture,e.TEXTURE0+i))}function ie(t,i){let a=r.get(t);t.isRenderTargetTexture===!1&&t.version>0&&a.__version!==t.version?de(a,t,i):n.bindTexture(e.TEXTURE_3D,a.__webglTexture,e.TEXTURE0+i)}function M(t,i){let a=r.get(t);t.isCubeDepthTexture!==!0&&t.version>0&&a.__version!==t.version?fe(a,t,i):n.bindTexture(e.TEXTURE_CUBE_MAP,a.__webglTexture,e.TEXTURE0+i)}let N={[Bi]:e.REPEAT,[Vi]:e.CLAMP_TO_EDGE,[Hi]:e.MIRRORED_REPEAT},ae={[Ui]:e.NEAREST,[Wi]:e.NEAREST_MIPMAP_NEAREST,[Gi]:e.NEAREST_MIPMAP_LINEAR,[Ki]:e.LINEAR,[qi]:e.LINEAR_MIPMAP_NEAREST,[Ji]:e.LINEAR_MIPMAP_LINEAR},oe={512:e.NEVER,519:e.ALWAYS,513:e.LESS,515:e.LEQUAL,514:e.EQUAL,518:e.GEQUAL,516:e.GREATER,517:e.NOTEQUAL};function se(n,a){if(a.type===1015&&t.has(`OES_texture_float_linear`)===!1&&(a.magFilter===1006||a.magFilter===1007||a.magFilter===1005||a.magFilter===1008||a.minFilter===1006||a.minFilter===1007||a.minFilter===1005||a.minFilter===1008)&&To(`WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device.`),e.texParameteri(n,e.TEXTURE_WRAP_S,N[a.wrapS]),e.texParameteri(n,e.TEXTURE_WRAP_T,N[a.wrapT]),(n===e.TEXTURE_3D||n===e.TEXTURE_2D_ARRAY)&&e.texParameteri(n,e.TEXTURE_WRAP_R,N[a.wrapR]),e.texParameteri(n,e.TEXTURE_MAG_FILTER,ae[a.magFilter]),e.texParameteri(n,e.TEXTURE_MIN_FILTER,ae[a.minFilter]),a.compareFunction&&(e.texParameteri(n,e.TEXTURE_COMPARE_MODE,e.COMPARE_REF_TO_TEXTURE),e.texParameteri(n,e.TEXTURE_COMPARE_FUNC,oe[a.compareFunction])),t.has(`EXT_texture_filter_anisotropic`)===!0){if(a.magFilter===1003||a.minFilter!==1005&&a.minFilter!==1008||a.type===1015&&t.has(`OES_texture_float_linear`)===!1)return;if(a.anisotropy>1||r.get(a).__currentAnisotropy){let o=t.get(`EXT_texture_filter_anisotropic`);e.texParameterf(n,o.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(a.anisotropy,i.getMaxAnisotropy())),r.get(a).__currentAnisotropy=a.anisotropy}}}function ce(t,n){let r=!1;t.__webglInit===void 0&&(t.__webglInit=!0,n.addEventListener(`dispose`,C));let i=n.source,a=p.get(i);a===void 0&&(a={},p.set(i,a));let s=j(n);if(s!==t.__cacheKey){a[s]===void 0&&(a[s]={texture:e.createTexture(),usedTimes:0},o.memory.textures++,r=!0),a[s].usedTimes++;let i=a[t.__cacheKey];i!==void 0&&(a[t.__cacheKey].usedTimes--,i.usedTimes===0&&E(n)),t.__cacheKey=s,t.__webglTexture=a[s].texture}return r}function le(e,t,n){return Math.floor(Math.floor(e/n)/t)}function ue(t,r,i,a){let o=t.updateRanges;if(o.length===0)n.texSubImage2D(e.TEXTURE_2D,0,0,0,r.width,r.height,i,a,r.data);else{o.sort((e,t)=>e.start-t.start);let s=0;for(let e=1;e0){C&&w&&n.texStorage2D(e.TEXTURE_2D,E,m,y[0].width,y[0].height);for(let t=0,i=y.length;t0){let t=pp(h.width,h.height,o.format,o.type);for(let a of o.layerUpdates){let o=h.data.subarray(a*t/h.data.BYTES_PER_ELEMENT,(a+1)*t/h.data.BYTES_PER_ELEMENT);n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,i,0,0,a,h.width,h.height,1,r,o)}}else n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,i,0,0,0,h.width,h.height,t.depth,r,h.data)}}else n.compressedTexImage3D(e.TEXTURE_2D_ARRAY,i,m,h.width,h.height,t.depth,0,h.data,0,0)}else To(`WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()`)}else C?T&&n.texSubImage3D(e.TEXTURE_2D_ARRAY,i,0,0,0,h.width,h.height,t.depth,r,p,h.data):n.texImage3D(e.TEXTURE_2D_ARRAY,i,m,h.width,h.height,t.depth,0,r,p,h.data);o.layerUpdates.size>0&&o.clearLayerUpdates()}else{C&&w&&n.texStorage2D(e.TEXTURE_2D,E,m,y[0].width,y[0].height);for(let t=0,i=y.length;t0){let i=pp(t.width,t.height,o.format,o.type);for(let a of o.layerUpdates){let o=t.data.subarray(a*i/t.data.BYTES_PER_ELEMENT,(a+1)*i/t.data.BYTES_PER_ELEMENT);n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,a,t.width,t.height,1,r,p,o)}o.clearLayerUpdates()}else n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,0,t.width,t.height,t.depth,r,p,t.data)}}else n.texImage3D(e.TEXTURE_2D_ARRAY,0,m,t.width,t.height,t.depth,0,r,p,t.data)}else if(o.isData3DTexture)C?(w&&n.texStorage3D(e.TEXTURE_3D,E,m,t.width,t.height,t.depth),T&&n.texSubImage3D(e.TEXTURE_3D,0,0,0,0,t.width,t.height,t.depth,r,p,t.data)):n.texImage3D(e.TEXTURE_3D,0,m,t.width,t.height,t.depth,0,r,p,t.data);else if(o.isFramebufferTexture){if(w){if(C)n.texStorage2D(e.TEXTURE_2D,E,m,t.width,t.height);else{let i=t.width,a=t.height;for(let t=0;t>=1,a>>=1}}}else if(o.isHTMLTexture){if(`texElementImage2D`in e){let n=e.canvas;if(n.hasAttribute(`layoutsubtree`)||n.setAttribute(`layoutsubtree`,`true`),t.parentNode!==n){n.appendChild(t),d.add(o),n.onpaint=e=>{let t=e.changedElements;for(let e of d)t.includes(e.image)&&(e.needsUpdate=!0)},n.requestPaint();return}if(e.texElementImage2D.length===3)e.texElementImage2D(e.TEXTURE_2D,e.RGBA8,t);else{let n=e.RGBA,r=e.RGBA,i=e.UNSIGNED_BYTE;e.texElementImage2D(e.TEXTURE_2D,0,n,r,i,t)}e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE)}}else if(y.length>0){if(C&&w){let t=F(y[0]);n.texStorage2D(e.TEXTURE_2D,E,m,t.width,t.height)}for(let t=0,i=y.length;t0&&D++;let t=F(m[0]);n.texStorage2D(e.TEXTURE_CUBE_MAP,D,C,t.width,t.height)}for(let t=0;t<6;t++)if(p){w?E&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,0,0,m[t].width,m[t].height,y,x,m[t].data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,C,m[t].width,m[t].height,0,y,x,m[t].data);for(let r=0;r>u),r=Math.max(1,i.height>>u);l===e.TEXTURE_3D||l===e.TEXTURE_2D_ARRAY?n.texImage3D(l,u,p,t,r,i.depth,0,d,f,null):n.texImage2D(l,u,p,t,r,0,d,f,null)}n.bindFramebuffer(e.FRAMEBUFFER,t),P(i)?s.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,c,l,h.__webglTexture,0,Ce(i)):(l===e.TEXTURE_2D||l>=e.TEXTURE_CUBE_MAP_POSITIVE_X&&l<=e.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&e.framebufferTexture2D(e.FRAMEBUFFER,c,l,h.__webglTexture,u),n.bindFramebuffer(e.FRAMEBUFFER,null)}function me(t,n,r){if(e.bindRenderbuffer(e.RENDERBUFFER,t),n.depthBuffer){let i=n.depthTexture,a=i&&i.isDepthTexture?i.type:null,o=x(n.stencilBuffer,a),c=n.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT;P(n)?s.renderbufferStorageMultisampleEXT(e.RENDERBUFFER,Ce(n),o,n.width,n.height):r?e.renderbufferStorageMultisample(e.RENDERBUFFER,Ce(n),o,n.width,n.height):e.renderbufferStorage(e.RENDERBUFFER,o,n.width,n.height),e.framebufferRenderbuffer(e.FRAMEBUFFER,c,e.RENDERBUFFER,t)}else{let t=n.textures;for(let i=0;i{delete i.__boundDepthTexture,delete i.__depthDisposeCallback,e.removeEventListener(`dispose`,t)};e.addEventListener(`dispose`,t),i.__depthDisposeCallback=t}i.__boundDepthTexture=e}if(t.depthTexture&&!i.__autoAllocateDepthBuffer){if(a)for(let e=0;e<6;e++)he(i.__webglFramebuffer[e],t,e);else{let e=t.texture.mipmaps;e&&e.length>0?he(i.__webglFramebuffer[0],t,0):he(i.__webglFramebuffer,t,0)}}else if(a){i.__webglDepthbuffer=[];for(let r=0;r<6;r++)if(n.bindFramebuffer(e.FRAMEBUFFER,i.__webglFramebuffer[r]),i.__webglDepthbuffer[r]===void 0)i.__webglDepthbuffer[r]=e.createRenderbuffer(),me(i.__webglDepthbuffer[r],t,!1);else{let n=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,a=i.__webglDepthbuffer[r];e.bindRenderbuffer(e.RENDERBUFFER,a),e.framebufferRenderbuffer(e.FRAMEBUFFER,n,e.RENDERBUFFER,a)}}else{let r=t.texture.mipmaps;if(r&&r.length>0?n.bindFramebuffer(e.FRAMEBUFFER,i.__webglFramebuffer[0]):n.bindFramebuffer(e.FRAMEBUFFER,i.__webglFramebuffer),i.__webglDepthbuffer===void 0)i.__webglDepthbuffer=e.createRenderbuffer(),me(i.__webglDepthbuffer,t,!1);else{let n=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,r=i.__webglDepthbuffer;e.bindRenderbuffer(e.RENDERBUFFER,r),e.framebufferRenderbuffer(e.FRAMEBUFFER,n,e.RENDERBUFFER,r)}}n.bindFramebuffer(e.FRAMEBUFFER,null)}function _e(t,n,i){let a=r.get(t);n!==void 0&&pe(a.__webglFramebuffer,t,t.texture,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,0),i!==void 0&&ge(t)}function ve(t){let i=t.texture,s=r.get(t),c=r.get(i);t.addEventListener(`dispose`,w);let l=t.textures,u=t.isWebGLCubeRenderTarget===!0,d=l.length>1;if(d||(c.__webglTexture===void 0&&(c.__webglTexture=e.createTexture()),c.__version=i.version,o.memory.textures++),u){s.__webglFramebuffer=[];for(let t=0;t<6;t++)if(i.mipmaps&&i.mipmaps.length>0){s.__webglFramebuffer[t]=[];for(let n=0;n0){s.__webglFramebuffer=[];for(let t=0;t0&&P(t)===!1){s.__webglMultisampledFramebuffer=e.createFramebuffer(),s.__webglColorRenderbuffer=[],n.bindFramebuffer(e.FRAMEBUFFER,s.__webglMultisampledFramebuffer);for(let n=0;n0)for(let r=0;r0)for(let n=0;n0){if(P(t)===!1){let i=t.textures,a=t.width,o=t.height,s=e.COLOR_BUFFER_BIT,l=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,u=r.get(t),d=i.length>1;if(d)for(let t=0;t0?n.bindFramebuffer(e.DRAW_FRAMEBUFFER,u.__webglFramebuffer[0]):n.bindFramebuffer(e.DRAW_FRAMEBUFFER,u.__webglFramebuffer);for(let n=0;n0&&t.has(`WEBGL_multisampled_render_to_texture`)===!0&&n.__useRenderToTexture!==!1}function we(e){let t=o.render.frame;u.get(e)!==t&&(u.set(e,t),e.update())}function Te(e,t){let n=e.colorSpace,r=e.format,i=e.type;return e.isCompressedTexture===!0||e.isVideoTexture===!0||n!==`srgb-linear`&&n!==``&&(ds.getTransfer(n)===`srgb`?(r!==1023||i!==1009)&&To(`WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.`):Eo(`WebGLTextures: Unsupported texture color space:`,n)),t}function F(e){return typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement?(l.width=e.naturalWidth||e.width,l.height=e.naturalHeight||e.height):typeof VideoFrame<`u`&&e instanceof VideoFrame?(l.width=e.displayWidth,l.height=e.displayHeight):(l.width=e.width,l.height=e.height),l}this.allocateTextureUnit=te,this.resetTextureUnits=k,this.getTextureUnits=ee,this.setTextureUnits=A,this.setTexture2D=ne,this.setTexture2DArray=re,this.setTexture3D=ie,this.setTextureCube=M,this.rebindTextures=_e,this.setupRenderTarget=ve,this.updateRenderTargetMipmap=ye,this.updateMultisampleRenderTarget=Se,this.setupDepthRenderbuffer=ge,this.setupFrameBufferTexture=pe,this.useMultisampledRTT=P,this.isReversedDepthBuffer=function(){return n.buffers.depth.getReversed()}}function bg(e,t){function n(n,r=``){let i,a=ds.getTransfer(r);if(n===1009)return e.UNSIGNED_BYTE;if(n===1017)return e.UNSIGNED_SHORT_4_4_4_4;if(n===1018)return e.UNSIGNED_SHORT_5_5_5_1;if(n===35902)return e.UNSIGNED_INT_5_9_9_9_REV;if(n===35899)return e.UNSIGNED_INT_10F_11F_11F_REV;if(n===1010)return e.BYTE;if(n===1011)return e.SHORT;if(n===1012)return e.UNSIGNED_SHORT;if(n===1013)return e.INT;if(n===1014)return e.UNSIGNED_INT;if(n===1015)return e.FLOAT;if(n===1016)return e.HALF_FLOAT;if(n===1021)return e.ALPHA;if(n===1022)return e.RGB;if(n===1023)return e.RGBA;if(n===1026)return e.DEPTH_COMPONENT;if(n===1027)return e.DEPTH_STENCIL;if(n===1028)return e.RED;if(n===1029)return e.RED_INTEGER;if(n===1030)return e.RG;if(n===1031)return e.RG_INTEGER;if(n===1033)return e.RGBA_INTEGER;if(n===33776||n===33777||n===33778||n===33779){if(a===`srgb`){if(i=t.get(`WEBGL_compressed_texture_s3tc_srgb`),i!==null){if(n===33776)return i.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(n===33777)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(n===33778)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(n===33779)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null}else if(i=t.get(`WEBGL_compressed_texture_s3tc`),i!==null){if(n===33776)return i.COMPRESSED_RGB_S3TC_DXT1_EXT;if(n===33777)return i.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(n===33778)return i.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(n===33779)return i.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null}if(n===35840||n===35841||n===35842||n===35843){if(i=t.get(`WEBGL_compressed_texture_pvrtc`),i!==null){if(n===35840)return i.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(n===35841)return i.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(n===35842)return i.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(n===35843)return i.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null}if(n===36196||n===37492||n===37496||n===37488||n===37489||n===37490||n===37491){if(i=t.get(`WEBGL_compressed_texture_etc`),i!==null){if(n===36196||n===37492)return a===`srgb`?i.COMPRESSED_SRGB8_ETC2:i.COMPRESSED_RGB8_ETC2;if(n===37496)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:i.COMPRESSED_RGBA8_ETC2_EAC;if(n===37488)return i.COMPRESSED_R11_EAC;if(n===37489)return i.COMPRESSED_SIGNED_R11_EAC;if(n===37490)return i.COMPRESSED_RG11_EAC;if(n===37491)return i.COMPRESSED_SIGNED_RG11_EAC}else return null}if(n===37808||n===37809||n===37810||n===37811||n===37812||n===37813||n===37814||n===37815||n===37816||n===37817||n===37818||n===37819||n===37820||n===37821){if(i=t.get(`WEBGL_compressed_texture_astc`),i!==null){if(n===37808)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:i.COMPRESSED_RGBA_ASTC_4x4_KHR;if(n===37809)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:i.COMPRESSED_RGBA_ASTC_5x4_KHR;if(n===37810)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:i.COMPRESSED_RGBA_ASTC_5x5_KHR;if(n===37811)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:i.COMPRESSED_RGBA_ASTC_6x5_KHR;if(n===37812)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:i.COMPRESSED_RGBA_ASTC_6x6_KHR;if(n===37813)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:i.COMPRESSED_RGBA_ASTC_8x5_KHR;if(n===37814)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:i.COMPRESSED_RGBA_ASTC_8x6_KHR;if(n===37815)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:i.COMPRESSED_RGBA_ASTC_8x8_KHR;if(n===37816)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:i.COMPRESSED_RGBA_ASTC_10x5_KHR;if(n===37817)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:i.COMPRESSED_RGBA_ASTC_10x6_KHR;if(n===37818)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:i.COMPRESSED_RGBA_ASTC_10x8_KHR;if(n===37819)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:i.COMPRESSED_RGBA_ASTC_10x10_KHR;if(n===37820)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:i.COMPRESSED_RGBA_ASTC_12x10_KHR;if(n===37821)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:i.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null}if(n===36492||n===36494||n===36495){if(i=t.get(`EXT_texture_compression_bptc`),i!==null){if(n===36492)return a===`srgb`?i.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:i.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(n===36494)return i.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(n===36495)return i.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null}if(n===36283||n===36284||n===36285||n===36286){if(i=t.get(`EXT_texture_compression_rgtc`),i!==null){if(n===36283)return i.COMPRESSED_RED_RGTC1_EXT;if(n===36284)return i.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(n===36285)return i.COMPRESSED_RED_GREEN_RGTC2_EXT;if(n===36286)return i.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null}return n===1020?e.UNSIGNED_INT_24_8:e[n]===void 0?null:e[n]}return{convert:n}}var xg=` +}`,Cg=[new B(1,0,0),new B(-1,0,0),new B(0,1,0),new B(0,-1,0),new B(0,0,1),new B(0,0,-1)],wg=[new B(0,-1,0),new B(0,-1,0),new B(0,0,1),new B(0,0,-1),new B(0,-1,0),new B(0,-1,0)],Tg=new Rs,Eg=new B,Dg=new B;function Og(e,t,n){let r=new _u,i=new z,a=new z,o=new Ns,s=new Wd,c=new Gd,l={},u=n.maxTextureSize,d={0:1,1:0,2:2},f=new Bd({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new z},radius:{value:4}},vertexShader:xg,fragmentShader:Sg}),p=f.clone();p.defines.HORIZONTAL_PASS=1;let m=new hl;m.setAttribute(`position`,new el(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));let h=new H(m,f),g=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=1;let _=this.type;this.render=function(t,n,s){if(g.enabled===!1||g.autoUpdate===!1&&g.needsUpdate===!1||t.length===0)return;this.type===2&&(Io(`WebGLShadowMap: PCFSoftShadowMap has been removed. Using PCFShadowMap instead.`),this.type=1);let c=e.getRenderTarget(),l=e.getActiveCubeFace(),d=e.getActiveMipmapLevel(),f=e.state;f.setBlending(0),f.buffers.depth.getReversed()===!0?f.buffers.color.setClear(0,0,0,0):f.buffers.color.setClear(1,1,1,1),f.buffers.depth.setTest(!0),f.setScissorTest(!1);let p=_!==this.type;p&&n.traverse(function(e){e.material&&(Array.isArray(e.material)?e.material.forEach(e=>e.needsUpdate=!0):e.material.needsUpdate=!0)});for(let c=0,l=t.length;cu||i.y>u)&&(i.x>u&&(a.x=Math.floor(u/m.x),i.x=a.x*m.x,d.mapSize.x=a.x),i.y>u&&(a.y=Math.floor(u/m.y),i.y=a.y*m.y,d.mapSize.y=a.y));let h=e.state.buffers.depth.getReversed();if(d.camera._reversedDepth=h,d.map===null||p===!0){if(d.map!==null&&(d.map.depthTexture!==null&&(d.map.depthTexture.dispose(),d.map.depthTexture=null),d.map.dispose()),this.type===3){if(l.isPointLight){Io(`WebGLShadowMap: VSM shadow maps are not supported for PointLights. Use PCF or BasicShadowMap instead.`);continue}d.map=new Fs(i.x,i.y,{format:Ea,type:pa,minFilter:ra,magFilter:ra,generateMipmaps:!1}),d.map.texture.name=l.name+`.shadowMap`,d.map.depthTexture=new Vu(i.x,i.y,fa),d.map.depthTexture.name=l.name+`.shadowMapDepth`,d.map.depthTexture.format=Sa,d.map.depthTexture.compareFunction=null,d.map.depthTexture.minFilter=ea,d.map.depthTexture.magFilter=ea}else l.isPointLight?(d.map=new am(i.x),d.map.depthTexture=new Hu(i.x,da)):(d.map=new Fs(i.x,i.y),d.map.depthTexture=new Vu(i.x,i.y,da)),d.map.depthTexture.name=l.name+`.shadowMap`,d.map.depthTexture.format=Sa,this.type===1?(d.map.depthTexture.compareFunction=h?518:515,d.map.depthTexture.minFilter=ra,d.map.depthTexture.magFilter=ra):(d.map.depthTexture.compareFunction=null,d.map.depthTexture.minFilter=ea,d.map.depthTexture.magFilter=ea);d.camera.updateProjectionMatrix()}d.map.isWebGLCubeRenderTarget!==!0&&(d.map.width!==i.x||d.map.height!==i.y)&&d.map.setSize(i.x,i.y);let g=d.map.isWebGLCubeRenderTarget?6:d.getViewportCount();l.isPointLight!==!0&&d.updateMatrices(l,s);for(let t=0;t0||n.map&&n.alphaTest>0||n.alphaToCoverage===!0){let e=a.uuid,t=n.uuid,r=l[e];r===void 0&&(r={},l[e]=r);let i=r[t];i===void 0&&(i=a.clone(),r[t]=i,n.addEventListener(`dispose`,x)),a=i}if(a.visible=n.visible,a.wireframe=n.wireframe,i===3?a.side=n.shadowSide===null?n.side:n.shadowSide:a.side=n.shadowSide===null?d[n.side]:n.shadowSide,a.alphaMap=n.alphaMap,a.alphaTest=n.alphaToCoverage===!0?.5:n.alphaTest,a.map=n.map,a.clipShadows=n.clipShadows,a.clippingPlanes=n.clippingPlanes,a.clipIntersection=n.clipIntersection,a.displacementMap=n.displacementMap,a.displacementScale=n.displacementScale,a.displacementBias=n.displacementBias,a.wireframeLinewidth=n.wireframeLinewidth,a.linewidth=n.linewidth,r.isPointLight===!0&&a.isMeshDistanceMaterial===!0){let t=e.properties.get(a);t.light=r}return a}function b(n,i,a,o,s){if(n.visible===!1)return;if(n.layers.test(i.layers)&&(n.isMesh||n.isLine||n.isPoints)&&(n.castShadow||n.receiveShadow&&s===3)&&(!n.frustumCulled||n.intersectsFrustum(r))){n.modelViewMatrix.multiplyMatrices(a.matrixWorldInverse,n.matrixWorld);let r=t.update(n),c=n.material;if(Array.isArray(c)){let t=r.groups;for(let l=0,u=t.length;l=2):(M=parseFloat(/^WebGL (\d)/.exec(ne)[1]),j=M>=1);let re=null,ie={},N=e.getParameter(e.SCISSOR_BOX),ae=e.getParameter(e.VIEWPORT),oe=new Ns().fromArray(N),se=new Ns().fromArray(ae);function ce(t,n,r,i){let a=new Uint8Array(4),o=e.createTexture();e.bindTexture(t,o),e.texParameteri(t,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(t,e.TEXTURE_MAG_FILTER,e.NEAREST);for(let o=0;o`u`?!1:/OculusBrowser/g.test(navigator.userAgent),l=new z,u=new WeakMap,d=new Set,f,p=new WeakMap,m=!1;try{m=typeof OffscreenCanvas<`u`&&new OffscreenCanvas(1,1).getContext(`2d`)!==null}catch{}function h(e,t){return m?new OffscreenCanvas(e,t):jo(`canvas`)}function g(e,t,n){let r=1,i=F(e);if((i.width>n||i.height>n)&&(r=n/Math.max(i.width,i.height)),r<1){if(typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement||typeof ImageBitmap<`u`&&e instanceof ImageBitmap||typeof VideoFrame<`u`&&e instanceof VideoFrame){let n=Math.floor(r*i.width),a=Math.floor(r*i.height);f===void 0&&(f=h(n,a));let o=t?h(n,a):f;return o.width=n,o.height=a,o.getContext(`2d`).drawImage(e,0,0,n,a),Io(`WebGLRenderer: Texture has been resized from (`+i.width+`x`+i.height+`) to (`+n+`x`+a+`).`),o}return`data`in e&&Io(`WebGLRenderer: Image in DataTexture is too big (`+i.width+`x`+i.height+`).`),e}return e}function _(e){return e.generateMipmaps}function v(t){e.generateMipmap(t)}function y(t){return t.isWebGLCubeRenderTarget?e.TEXTURE_CUBE_MAP:t.isWebGL3DRenderTarget?e.TEXTURE_3D:t.isWebGLArrayRenderTarget||t.isCompressedArrayTexture?e.TEXTURE_2D_ARRAY:e.TEXTURE_2D}function b(n,r,i,a,o,s=!1){if(n!==null){if(e[n]!==void 0)return e[n];Io(`WebGLRenderer: Attempt to use non-existing WebGL internal format '`+n+`'`)}let c;a&&(c=t.get(`EXT_texture_norm16`),c||Io(`WebGLRenderer: Unable to use normalized textures without EXT_texture_norm16 extension`));let l=r;if(r===e.RED&&(i===e.FLOAT&&(l=e.R32F),i===e.HALF_FLOAT&&(l=e.R16F),i===e.UNSIGNED_BYTE&&(l=e.R8),i===e.UNSIGNED_SHORT&&c&&(l=c.R16_EXT),i===e.SHORT&&c&&(l=c.R16_SNORM_EXT)),r===e.RED_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.R8UI),i===e.UNSIGNED_SHORT&&(l=e.R16UI),i===e.UNSIGNED_INT&&(l=e.R32UI),i===e.BYTE&&(l=e.R8I),i===e.SHORT&&(l=e.R16I),i===e.INT&&(l=e.R32I)),r===e.RG&&(i===e.FLOAT&&(l=e.RG32F),i===e.HALF_FLOAT&&(l=e.RG16F),i===e.UNSIGNED_BYTE&&(l=e.RG8),i===e.UNSIGNED_SHORT&&c&&(l=c.RG16_EXT),i===e.SHORT&&c&&(l=c.RG16_SNORM_EXT)),r===e.RG_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.RG8UI),i===e.UNSIGNED_SHORT&&(l=e.RG16UI),i===e.UNSIGNED_INT&&(l=e.RG32UI),i===e.BYTE&&(l=e.RG8I),i===e.SHORT&&(l=e.RG16I),i===e.INT&&(l=e.RG32I)),r===e.RGB_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.RGB8UI),i===e.UNSIGNED_SHORT&&(l=e.RGB16UI),i===e.UNSIGNED_INT&&(l=e.RGB32UI),i===e.BYTE&&(l=e.RGB8I),i===e.SHORT&&(l=e.RGB16I),i===e.INT&&(l=e.RGB32I)),r===e.RGBA_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.RGBA8UI),i===e.UNSIGNED_SHORT&&(l=e.RGBA16UI),i===e.UNSIGNED_INT&&(l=e.RGBA32UI),i===e.BYTE&&(l=e.RGBA8I),i===e.SHORT&&(l=e.RGBA16I),i===e.INT&&(l=e.RGBA32I)),r===e.RGB&&(i===e.UNSIGNED_SHORT&&c&&(l=c.RGB16_EXT),i===e.SHORT&&c&&(l=c.RGB16_SNORM_EXT),i===e.UNSIGNED_INT_5_9_9_9_REV&&(l=e.RGB9_E5),i===e.UNSIGNED_INT_10F_11F_11F_REV&&(l=e.R11F_G11F_B10F)),r===e.RGBA){let t=s?Co:Ss.getTransfer(o);i===e.FLOAT&&(l=e.RGBA32F),i===e.HALF_FLOAT&&(l=e.RGBA16F),i===e.UNSIGNED_BYTE&&(l=t===`srgb`?e.SRGB8_ALPHA8:e.RGBA8),i===e.UNSIGNED_SHORT&&c&&(l=c.RGBA16_EXT),i===e.SHORT&&c&&(l=c.RGBA16_SNORM_EXT),i===e.UNSIGNED_SHORT_4_4_4_4&&(l=e.RGBA4),i===e.UNSIGNED_SHORT_5_5_5_1&&(l=e.RGB5_A1)}return(l===e.R16F||l===e.R32F||l===e.RG16F||l===e.RG32F||l===e.RGBA16F||l===e.RGBA32F)&&t.get(`EXT_color_buffer_float`),l}function x(t,n){let r;return t?n===null||n===1014||n===1020?r=e.DEPTH24_STENCIL8:n===1015?r=e.DEPTH32F_STENCIL8:n===1012&&(r=e.DEPTH24_STENCIL8,Io(`DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.`)):n===null||n===1014||n===1020?r=e.DEPTH_COMPONENT24:n===1015?r=e.DEPTH_COMPONENT32F:n===1012&&(r=e.DEPTH_COMPONENT16),r}function S(e,t){return _(e)===!0||e.isFramebufferTexture&&e.minFilter!==1003&&e.minFilter!==1006?Math.log2(Math.max(t.width,t.height))+1:e.mipmaps!==void 0&&e.mipmaps.length>0?e.mipmaps.length:e.isCompressedTexture&&Array.isArray(e.image)?t.mipmaps.length:1}function C(e){let t=e.target;t.removeEventListener(`dispose`,C),T(t),t.isVideoTexture&&u.delete(t),t.isHTMLTexture&&d.delete(t)}function w(e){let t=e.target;t.removeEventListener(`dispose`,w),D(t)}function T(e){let t=r.get(e);if(t.__webglInit===void 0)return;let n=e.source,i=p.get(n);if(i){let r=i[t.__cacheKey];r.usedTimes--,r.usedTimes===0&&E(e),Object.keys(i).length===0&&p.delete(n)}r.remove(e)}function E(t){let n=r.get(t);e.deleteTexture(n.__webglTexture);let i=t.source,a=p.get(i);delete a[n.__cacheKey],o.memory.textures--}function D(t){let n=r.get(t);if(t.depthTexture&&(t.depthTexture.dispose(),r.remove(t.depthTexture)),t.isWebGLCubeRenderTarget)for(let t=0;t<6;t++){if(Array.isArray(n.__webglFramebuffer[t]))for(let r=0;r=i.maxTextures&&Io(`WebGLTextures: Trying to use `+(e+1)+` texture units while this GPU supports only `+i.maxTextures),O+=1,e}function j(e){let t=[];return t.push(e.wrapS),t.push(e.wrapT),t.push(e.wrapR||0),t.push(e.magFilter),t.push(e.minFilter),t.push(e.anisotropy),t.push(e.internalFormat),t.push(e.format),t.push(e.type),t.push(e.generateMipmaps),t.push(e.premultiplyAlpha),t.push(e.flipY),t.push(e.unpackAlignment),t.push(e.colorSpace),t.join()}function M(t,i){let a=r.get(t);if(t.isVideoTexture&&we(t),t.isRenderTargetTexture===!1&&t.isExternalTexture!==!0&&t.version>0&&a.__version!==t.version){let e=t.image;if(e===null)Io(`WebGLRenderer: Texture marked for update but no image data found.`);else if(e.complete===!1)Io(`WebGLRenderer: Texture marked for update but image is incomplete`);else{de(a,t,i);return}}else t.isExternalTexture&&(a.__webglTexture=t.sourceTexture?t.sourceTexture:null);n.bindTexture(e.TEXTURE_2D,a.__webglTexture,e.TEXTURE0+i)}function ne(t,i){let a=r.get(t);t.isRenderTargetTexture===!1&&t.version>0&&a.__version!==t.version?de(a,t,i):(t.isExternalTexture&&(a.__webglTexture=t.sourceTexture?t.sourceTexture:null),n.bindTexture(e.TEXTURE_2D_ARRAY,a.__webglTexture,e.TEXTURE0+i))}function re(t,i){let a=r.get(t);t.isRenderTargetTexture===!1&&t.version>0&&a.__version!==t.version?de(a,t,i):n.bindTexture(e.TEXTURE_3D,a.__webglTexture,e.TEXTURE0+i)}function ie(t,i){let a=r.get(t);t.isCubeDepthTexture!==!0&&t.version>0&&a.__version!==t.version?fe(a,t,i):n.bindTexture(e.TEXTURE_CUBE_MAP,a.__webglTexture,e.TEXTURE0+i)}let N={[Zi]:e.REPEAT,[Qi]:e.CLAMP_TO_EDGE,[$i]:e.MIRRORED_REPEAT},ae={[ea]:e.NEAREST,[ta]:e.NEAREST_MIPMAP_NEAREST,[na]:e.NEAREST_MIPMAP_LINEAR,[ra]:e.LINEAR,[ia]:e.LINEAR_MIPMAP_NEAREST,[aa]:e.LINEAR_MIPMAP_LINEAR},oe={512:e.NEVER,519:e.ALWAYS,513:e.LESS,515:e.LEQUAL,514:e.EQUAL,518:e.GEQUAL,516:e.GREATER,517:e.NOTEQUAL};function se(n,a){if(a.type===1015&&t.has(`OES_texture_float_linear`)===!1&&(a.magFilter===1006||a.magFilter===1007||a.magFilter===1005||a.magFilter===1008||a.minFilter===1006||a.minFilter===1007||a.minFilter===1005||a.minFilter===1008)&&Io(`WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device.`),e.texParameteri(n,e.TEXTURE_WRAP_S,N[a.wrapS]),e.texParameteri(n,e.TEXTURE_WRAP_T,N[a.wrapT]),(n===e.TEXTURE_3D||n===e.TEXTURE_2D_ARRAY)&&e.texParameteri(n,e.TEXTURE_WRAP_R,N[a.wrapR]),e.texParameteri(n,e.TEXTURE_MAG_FILTER,ae[a.magFilter]),e.texParameteri(n,e.TEXTURE_MIN_FILTER,ae[a.minFilter]),a.compareFunction&&(e.texParameteri(n,e.TEXTURE_COMPARE_MODE,e.COMPARE_REF_TO_TEXTURE),e.texParameteri(n,e.TEXTURE_COMPARE_FUNC,oe[a.compareFunction])),t.has(`EXT_texture_filter_anisotropic`)===!0){if(a.magFilter===1003||a.minFilter!==1005&&a.minFilter!==1008||a.type===1015&&t.has(`OES_texture_float_linear`)===!1)return;if(a.anisotropy>1||r.get(a).__currentAnisotropy){let o=t.get(`EXT_texture_filter_anisotropic`);e.texParameterf(n,o.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(a.anisotropy,i.getMaxAnisotropy())),r.get(a).__currentAnisotropy=a.anisotropy}}}function ce(t,n){let r=!1;t.__webglInit===void 0&&(t.__webglInit=!0,n.addEventListener(`dispose`,C));let i=n.source,a=p.get(i);a===void 0&&(a={},p.set(i,a));let s=j(n);if(s!==t.__cacheKey){a[s]===void 0&&(a[s]={texture:e.createTexture(),usedTimes:0},o.memory.textures++,r=!0),a[s].usedTimes++;let i=a[t.__cacheKey];i!==void 0&&(a[t.__cacheKey].usedTimes--,i.usedTimes===0&&E(n)),t.__cacheKey=s,t.__webglTexture=a[s].texture}return r}function le(e,t,n){return Math.floor(Math.floor(e/n)/t)}function ue(t,r,i,a){let o=t.updateRanges;if(o.length===0)n.texSubImage2D(e.TEXTURE_2D,0,0,0,r.width,r.height,i,a,r.data);else{o.sort((e,t)=>e.start-t.start);let s=0;for(let e=1;e0){C&&w&&n.texStorage2D(e.TEXTURE_2D,E,m,y[0].width,y[0].height);for(let t=0,i=y.length;t0){let t=wp(h.width,h.height,o.format,o.type);for(let a of o.layerUpdates){let o=h.data.subarray(a*t/h.data.BYTES_PER_ELEMENT,(a+1)*t/h.data.BYTES_PER_ELEMENT);n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,i,0,0,a,h.width,h.height,1,r,o)}}else n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,i,0,0,0,h.width,h.height,t.depth,r,h.data)}}else n.compressedTexImage3D(e.TEXTURE_2D_ARRAY,i,m,h.width,h.height,t.depth,0,h.data,0,0)}else Io(`WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()`)}else C?T&&n.texSubImage3D(e.TEXTURE_2D_ARRAY,i,0,0,0,h.width,h.height,t.depth,r,p,h.data):n.texImage3D(e.TEXTURE_2D_ARRAY,i,m,h.width,h.height,t.depth,0,r,p,h.data);o.layerUpdates.size>0&&o.clearLayerUpdates()}else{C&&w&&n.texStorage2D(e.TEXTURE_2D,E,m,y[0].width,y[0].height);for(let t=0,i=y.length;t0){let i=wp(t.width,t.height,o.format,o.type);for(let a of o.layerUpdates){let o=t.data.subarray(a*i/t.data.BYTES_PER_ELEMENT,(a+1)*i/t.data.BYTES_PER_ELEMENT);n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,a,t.width,t.height,1,r,p,o)}o.clearLayerUpdates()}else n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,0,t.width,t.height,t.depth,r,p,t.data)}}else n.texImage3D(e.TEXTURE_2D_ARRAY,0,m,t.width,t.height,t.depth,0,r,p,t.data)}else if(o.isData3DTexture)C?(w&&n.texStorage3D(e.TEXTURE_3D,E,m,t.width,t.height,t.depth),T&&n.texSubImage3D(e.TEXTURE_3D,0,0,0,0,t.width,t.height,t.depth,r,p,t.data)):n.texImage3D(e.TEXTURE_3D,0,m,t.width,t.height,t.depth,0,r,p,t.data);else if(o.isFramebufferTexture){if(w){if(C)n.texStorage2D(e.TEXTURE_2D,E,m,t.width,t.height);else{let i=t.width,a=t.height;for(let t=0;t>=1,a>>=1}}}else if(o.isHTMLTexture){if(`texElementImage2D`in e){let n=e.canvas;if(n.hasAttribute(`layoutsubtree`)||n.setAttribute(`layoutsubtree`,`true`),t.parentNode!==n){n.appendChild(t),d.add(o),n.onpaint=e=>{let t=e.changedElements;for(let e of d)t.includes(e.image)&&(e.needsUpdate=!0)},n.requestPaint();return}if(e.texElementImage2D.length===3)e.texElementImage2D(e.TEXTURE_2D,e.RGBA8,t);else{let n=e.RGBA,r=e.RGBA,i=e.UNSIGNED_BYTE;e.texElementImage2D(e.TEXTURE_2D,0,n,r,i,t)}e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE)}}else if(y.length>0){if(C&&w){let t=F(y[0]);n.texStorage2D(e.TEXTURE_2D,E,m,t.width,t.height)}for(let t=0,i=y.length;t0&&D++;let t=F(m[0]);n.texStorage2D(e.TEXTURE_CUBE_MAP,D,C,t.width,t.height)}for(let t=0;t<6;t++)if(p){w?E&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,0,0,m[t].width,m[t].height,y,x,m[t].data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,C,m[t].width,m[t].height,0,y,x,m[t].data);for(let r=0;r>u),r=Math.max(1,i.height>>u);l===e.TEXTURE_3D||l===e.TEXTURE_2D_ARRAY?n.texImage3D(l,u,p,t,r,i.depth,0,d,f,null):n.texImage2D(l,u,p,t,r,0,d,f,null)}n.bindFramebuffer(e.FRAMEBUFFER,t),P(i)?s.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,c,l,h.__webglTexture,0,Ce(i)):(l===e.TEXTURE_2D||l>=e.TEXTURE_CUBE_MAP_POSITIVE_X&&l<=e.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&e.framebufferTexture2D(e.FRAMEBUFFER,c,l,h.__webglTexture,u),n.bindFramebuffer(e.FRAMEBUFFER,null)}function me(t,n,r){if(e.bindRenderbuffer(e.RENDERBUFFER,t),n.depthBuffer){let i=n.depthTexture,a=i&&i.isDepthTexture?i.type:null,o=x(n.stencilBuffer,a),c=n.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT;P(n)?s.renderbufferStorageMultisampleEXT(e.RENDERBUFFER,Ce(n),o,n.width,n.height):r?e.renderbufferStorageMultisample(e.RENDERBUFFER,Ce(n),o,n.width,n.height):e.renderbufferStorage(e.RENDERBUFFER,o,n.width,n.height),e.framebufferRenderbuffer(e.FRAMEBUFFER,c,e.RENDERBUFFER,t)}else{let t=n.textures;for(let i=0;i{delete i.__boundDepthTexture,delete i.__depthDisposeCallback,e.removeEventListener(`dispose`,t)};e.addEventListener(`dispose`,t),i.__depthDisposeCallback=t}i.__boundDepthTexture=e}if(t.depthTexture&&!i.__autoAllocateDepthBuffer){if(a)for(let e=0;e<6;e++)he(i.__webglFramebuffer[e],t,e);else{let e=t.texture.mipmaps;e&&e.length>0?he(i.__webglFramebuffer[0],t,0):he(i.__webglFramebuffer,t,0)}}else if(a){i.__webglDepthbuffer=[];for(let r=0;r<6;r++)if(n.bindFramebuffer(e.FRAMEBUFFER,i.__webglFramebuffer[r]),i.__webglDepthbuffer[r]===void 0)i.__webglDepthbuffer[r]=e.createRenderbuffer(),me(i.__webglDepthbuffer[r],t,!1);else{let n=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,a=i.__webglDepthbuffer[r];e.bindRenderbuffer(e.RENDERBUFFER,a),e.framebufferRenderbuffer(e.FRAMEBUFFER,n,e.RENDERBUFFER,a)}}else{let r=t.texture.mipmaps;if(r&&r.length>0?n.bindFramebuffer(e.FRAMEBUFFER,i.__webglFramebuffer[0]):n.bindFramebuffer(e.FRAMEBUFFER,i.__webglFramebuffer),i.__webglDepthbuffer===void 0)i.__webglDepthbuffer=e.createRenderbuffer(),me(i.__webglDepthbuffer,t,!1);else{let n=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,r=i.__webglDepthbuffer;e.bindRenderbuffer(e.RENDERBUFFER,r),e.framebufferRenderbuffer(e.FRAMEBUFFER,n,e.RENDERBUFFER,r)}}n.bindFramebuffer(e.FRAMEBUFFER,null)}function _e(t,n,i){let a=r.get(t);n!==void 0&&pe(a.__webglFramebuffer,t,t.texture,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,0),i!==void 0&&ge(t)}function ve(t){let i=t.texture,s=r.get(t),c=r.get(i);t.addEventListener(`dispose`,w);let l=t.textures,u=t.isWebGLCubeRenderTarget===!0,d=l.length>1;if(d||(c.__webglTexture===void 0&&(c.__webglTexture=e.createTexture()),c.__version=i.version,o.memory.textures++),u){s.__webglFramebuffer=[];for(let t=0;t<6;t++)if(i.mipmaps&&i.mipmaps.length>0){s.__webglFramebuffer[t]=[];for(let n=0;n0){s.__webglFramebuffer=[];for(let t=0;t0&&P(t)===!1){s.__webglMultisampledFramebuffer=e.createFramebuffer(),s.__webglColorRenderbuffer=[],n.bindFramebuffer(e.FRAMEBUFFER,s.__webglMultisampledFramebuffer);for(let n=0;n0)for(let r=0;r0)for(let n=0;n0){if(P(t)===!1){let i=t.textures,a=t.width,o=t.height,s=e.COLOR_BUFFER_BIT,l=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,u=r.get(t),d=i.length>1;if(d)for(let t=0;t0?n.bindFramebuffer(e.DRAW_FRAMEBUFFER,u.__webglFramebuffer[0]):n.bindFramebuffer(e.DRAW_FRAMEBUFFER,u.__webglFramebuffer);for(let n=0;n0&&t.has(`WEBGL_multisampled_render_to_texture`)===!0&&n.__useRenderToTexture!==!1}function we(e){let t=o.render.frame;u.get(e)!==t&&(u.set(e,t),e.update())}function Te(e,t){let n=e.colorSpace,r=e.format,i=e.type;return e.isCompressedTexture===!0||e.isVideoTexture===!0||n!==`srgb-linear`&&n!==``&&(Ss.getTransfer(n)===`srgb`?(r!==1023||i!==1009)&&Io(`WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.`):Lo(`WebGLTextures: Unsupported texture color space:`,n)),t}function F(e){return typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement?(l.width=e.naturalWidth||e.width,l.height=e.naturalHeight||e.height):typeof VideoFrame<`u`&&e instanceof VideoFrame?(l.width=e.displayWidth,l.height=e.displayHeight):(l.width=e.width,l.height=e.height),l}this.allocateTextureUnit=te,this.resetTextureUnits=k,this.getTextureUnits=ee,this.setTextureUnits=A,this.setTexture2D=M,this.setTexture2DArray=ne,this.setTexture3D=re,this.setTextureCube=ie,this.rebindTextures=_e,this.setupRenderTarget=ve,this.updateRenderTargetMipmap=ye,this.updateMultisampleRenderTarget=Se,this.setupDepthRenderbuffer=ge,this.setupFrameBufferTexture=pe,this.useMultisampledRTT=P,this.isReversedDepthBuffer=function(){return n.buffers.depth.getReversed()}}function jg(e,t){function n(n,r=``){let i,a=Ss.getTransfer(r);if(n===1009)return e.UNSIGNED_BYTE;if(n===1017)return e.UNSIGNED_SHORT_4_4_4_4;if(n===1018)return e.UNSIGNED_SHORT_5_5_5_1;if(n===35902)return e.UNSIGNED_INT_5_9_9_9_REV;if(n===35899)return e.UNSIGNED_INT_10F_11F_11F_REV;if(n===1010)return e.BYTE;if(n===1011)return e.SHORT;if(n===1012)return e.UNSIGNED_SHORT;if(n===1013)return e.INT;if(n===1014)return e.UNSIGNED_INT;if(n===1015)return e.FLOAT;if(n===1016)return e.HALF_FLOAT;if(n===1021)return e.ALPHA;if(n===1022)return e.RGB;if(n===1023)return e.RGBA;if(n===1026)return e.DEPTH_COMPONENT;if(n===1027)return e.DEPTH_STENCIL;if(n===1028)return e.RED;if(n===1029)return e.RED_INTEGER;if(n===1030)return e.RG;if(n===1031)return e.RG_INTEGER;if(n===1033)return e.RGBA_INTEGER;if(n===33776||n===33777||n===33778||n===33779){if(a===`srgb`){if(i=t.get(`WEBGL_compressed_texture_s3tc_srgb`),i!==null){if(n===33776)return i.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(n===33777)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(n===33778)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(n===33779)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null}else if(i=t.get(`WEBGL_compressed_texture_s3tc`),i!==null){if(n===33776)return i.COMPRESSED_RGB_S3TC_DXT1_EXT;if(n===33777)return i.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(n===33778)return i.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(n===33779)return i.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null}if(n===35840||n===35841||n===35842||n===35843){if(i=t.get(`WEBGL_compressed_texture_pvrtc`),i!==null){if(n===35840)return i.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(n===35841)return i.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(n===35842)return i.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(n===35843)return i.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null}if(n===36196||n===37492||n===37496||n===37488||n===37489||n===37490||n===37491){if(i=t.get(`WEBGL_compressed_texture_etc`),i!==null){if(n===36196||n===37492)return a===`srgb`?i.COMPRESSED_SRGB8_ETC2:i.COMPRESSED_RGB8_ETC2;if(n===37496)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:i.COMPRESSED_RGBA8_ETC2_EAC;if(n===37488)return i.COMPRESSED_R11_EAC;if(n===37489)return i.COMPRESSED_SIGNED_R11_EAC;if(n===37490)return i.COMPRESSED_RG11_EAC;if(n===37491)return i.COMPRESSED_SIGNED_RG11_EAC}else return null}if(n===37808||n===37809||n===37810||n===37811||n===37812||n===37813||n===37814||n===37815||n===37816||n===37817||n===37818||n===37819||n===37820||n===37821){if(i=t.get(`WEBGL_compressed_texture_astc`),i!==null){if(n===37808)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:i.COMPRESSED_RGBA_ASTC_4x4_KHR;if(n===37809)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:i.COMPRESSED_RGBA_ASTC_5x4_KHR;if(n===37810)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:i.COMPRESSED_RGBA_ASTC_5x5_KHR;if(n===37811)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:i.COMPRESSED_RGBA_ASTC_6x5_KHR;if(n===37812)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:i.COMPRESSED_RGBA_ASTC_6x6_KHR;if(n===37813)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:i.COMPRESSED_RGBA_ASTC_8x5_KHR;if(n===37814)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:i.COMPRESSED_RGBA_ASTC_8x6_KHR;if(n===37815)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:i.COMPRESSED_RGBA_ASTC_8x8_KHR;if(n===37816)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:i.COMPRESSED_RGBA_ASTC_10x5_KHR;if(n===37817)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:i.COMPRESSED_RGBA_ASTC_10x6_KHR;if(n===37818)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:i.COMPRESSED_RGBA_ASTC_10x8_KHR;if(n===37819)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:i.COMPRESSED_RGBA_ASTC_10x10_KHR;if(n===37820)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:i.COMPRESSED_RGBA_ASTC_12x10_KHR;if(n===37821)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:i.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null}if(n===36492||n===36494||n===36495){if(i=t.get(`EXT_texture_compression_bptc`),i!==null){if(n===36492)return a===`srgb`?i.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:i.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(n===36494)return i.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(n===36495)return i.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null}if(n===36283||n===36284||n===36285||n===36286){if(i=t.get(`EXT_texture_compression_rgtc`),i!==null){if(n===36283)return i.COMPRESSED_RED_RGTC1_EXT;if(n===36284)return i.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(n===36285)return i.COMPRESSED_RED_GREEN_RGTC2_EXT;if(n===36286)return i.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null}return n===1020?e.UNSIGNED_INT_24_8:e[n]===void 0?null:e[n]}return{convert:n}}var Mg=` void main() { gl_Position = vec4( position, 1.0 ); -}`,Sg=` +}`,Ng=` uniform sampler2DArray depthColor; uniform float depthWidth; uniform float depthHeight; @@ -4228,46 +4228,46 @@ void main() { } -}`,Cg=class{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(e,t){if(this.texture===null){let n=new Mu(e.texture);(e.depthNear!==t.depthNear||e.depthFar!==t.depthFar)&&(this.depthNear=e.depthNear,this.depthFar=e.depthFar),this.texture=n}}getMesh(e){if(this.texture!==null&&this.mesh===null){let t=e.cameras[0].viewport,n=new kd({vertexShader:xg,fragmentShader:Sg,uniforms:{depthColor:{value:this.texture},depthWidth:{value:t.z},depthHeight:{value:t.w}}});this.mesh=new H(new hd(20,20),n)}return this.mesh}reset(){this.texture=null,this.mesh=null}getDepthTexture(){return this.texture}},wg=class extends Ao{constructor(e,t){super();let n=this,r=null,i=1,a=null,o=`local-floor`,s=1,c=null,l=null,u=null,d=null,f=null,p=null,m=typeof XRWebGLBinding<`u`,h=new Cg,g={},_=t.getContextAttributes(),v=null,y=null,b=[],x=[],S=new z,C=null,w=null,T=new Af;T.viewport=new Ss;let E=new Af;E.viewport=new Ss;let D=[T,E],O=new Wf,k=null,ee=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(e){let t=b[e];return t===void 0&&(t=new rc,b[e]=t),t.getTargetRaySpace()},this.getControllerGrip=function(e){let t=b[e];return t===void 0&&(t=new rc,b[e]=t),t.getGripSpace()},this.getHand=function(e){let t=b[e];return t===void 0&&(t=new rc,b[e]=t),t.getHandSpace()};function A(e){let t=x.indexOf(e.inputSource);if(t===-1)return;let n=b[t];n!==void 0&&(n.update(e.inputSource,e.frame,c||a),n.dispatchEvent({type:e.type,data:e.inputSource}))}function te(){r.removeEventListener(`select`,A),r.removeEventListener(`selectstart`,A),r.removeEventListener(`selectend`,A),r.removeEventListener(`squeeze`,A),r.removeEventListener(`squeezestart`,A),r.removeEventListener(`squeezeend`,A),r.removeEventListener(`end`,te),r.removeEventListener(`inputsourceschange`,j);for(let e=0;e=0&&(x[r]=null,b[r].disconnect(n))}for(let t=0;t=x.length){x.push(n),r=e;break}else if(x[e]===null){x[e]=n,r=e;break}if(r===-1)break}let i=b[r];i&&i.connect(n)}}let ne=new B,re=new B;function ie(e,t,n){ne.setFromMatrixPosition(t.matrixWorld),re.setFromMatrixPosition(n.matrixWorld);let r=ne.distanceTo(re),i=t.projectionMatrix.elements,a=n.projectionMatrix.elements,o=i[14]/(i[10]-1),s=i[14]/(i[10]+1),c=(i[9]+1)/i[5],l=(i[9]-1)/i[5],u=(i[8]-1)/i[0],d=(a[8]+1)/a[0],f=o*u,p=o*d,m=r/(-u+d),h=m*-u;if(t.matrixWorld.decompose(e.position,e.quaternion,e.scale),e.translateX(h),e.translateZ(m),e.matrixWorld.compose(e.position,e.quaternion,e.scale),e.matrixWorldInverse.copy(e.matrixWorld).invert(),i[10]===-1)e.projectionMatrix.copy(t.projectionMatrix),e.projectionMatrixInverse.copy(t.projectionMatrixInverse);else{let t=o+m,n=s+m,i=f-h,a=p+(r-h),u=c*s/n*t,d=l*s/n*t;e.projectionMatrix.makePerspective(i,a,u,d,t,n),e.projectionMatrixInverse.copy(e.projectionMatrix).invert()}}function M(e,t){t===null?e.matrixWorld.copy(e.matrix):e.matrixWorld.multiplyMatrices(t.matrixWorld,e.matrix),e.matrixWorldInverse.copy(e.matrixWorld).invert()}this.updateCamera=function(e){if(r===null)return;let t=e.near,n=e.far;h.texture!==null&&(h.depthNear>0&&(t=h.depthNear),h.depthFar>0&&(n=h.depthFar)),O.near=E.near=T.near=t,O.far=E.far=T.far=n,(k!==O.near||ee!==O.far)&&(r.updateRenderState({depthNear:O.near,depthFar:O.far}),k=O.near,ee=O.far),O.layers.mask=e.layers.mask|6,T.layers.mask=O.layers.mask&-5,E.layers.mask=O.layers.mask&-3;let i=e.parent,a=O.cameras;M(O,i);for(let e=0;e0&&(e.alphaTest.value=r.alphaTest);let i=t.get(r),a=i.envMap,o=i.envMapRotation;a&&(e.envMap.value=a,e.envMapRotation.value.setFromMatrix4(Tg.makeRotationFromEuler(o)).transpose(),a.isCubeTexture&&a.isRenderTargetTexture===!1&&e.envMapRotation.value.premultiply(Eg),e.reflectivity.value=r.reflectivity,e.ior.value=r.ior,e.refractionRatio.value=r.refractionRatio),r.lightMap&&(e.lightMap.value=r.lightMap,e.lightMapIntensity.value=r.lightMapIntensity,n(r.lightMap,e.lightMapTransform)),r.aoMap&&(e.aoMap.value=r.aoMap,e.aoMapIntensity.value=r.aoMapIntensity,n(r.aoMap,e.aoMapTransform))}function o(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform))}function s(e,t){e.dashSize.value=t.dashSize,e.totalSize.value=t.dashSize+t.gapSize,e.scale.value=t.scale}function c(e,t,r,i){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.size.value=t.size*r,e.scale.value=i*.5,t.map&&(e.map.value=t.map,n(t.map,e.uvTransform)),t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform)),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}function l(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.rotation.value=t.rotation,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform)),t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform)),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}function u(e,t){e.specular.value.copy(t.specular),e.shininess.value=Math.max(t.shininess,1e-4)}function d(e,t){t.gradientMap&&(e.gradientMap.value=t.gradientMap)}function f(e,t){e.metalness.value=t.metalness,t.metalnessMap&&(e.metalnessMap.value=t.metalnessMap,n(t.metalnessMap,e.metalnessMapTransform)),e.roughness.value=t.roughness,t.roughnessMap&&(e.roughnessMap.value=t.roughnessMap,n(t.roughnessMap,e.roughnessMapTransform)),t.envMap&&(e.envMapIntensity.value=t.envMapIntensity)}function p(e,t,r){e.ior.value=t.ior,t.sheen>0&&(e.sheenColor.value.copy(t.sheenColor).multiplyScalar(t.sheen),e.sheenRoughness.value=t.sheenRoughness,t.sheenColorMap&&(e.sheenColorMap.value=t.sheenColorMap,n(t.sheenColorMap,e.sheenColorMapTransform)),t.sheenRoughnessMap&&(e.sheenRoughnessMap.value=t.sheenRoughnessMap,n(t.sheenRoughnessMap,e.sheenRoughnessMapTransform))),t.clearcoat>0&&(e.clearcoat.value=t.clearcoat,e.clearcoatRoughness.value=t.clearcoatRoughness,t.clearcoatMap&&(e.clearcoatMap.value=t.clearcoatMap,n(t.clearcoatMap,e.clearcoatMapTransform)),t.clearcoatRoughnessMap&&(e.clearcoatRoughnessMap.value=t.clearcoatRoughnessMap,n(t.clearcoatRoughnessMap,e.clearcoatRoughnessMapTransform)),t.clearcoatNormalMap&&(e.clearcoatNormalMap.value=t.clearcoatNormalMap,n(t.clearcoatNormalMap,e.clearcoatNormalMapTransform),e.clearcoatNormalScale.value.copy(t.clearcoatNormalScale),t.side===1&&e.clearcoatNormalScale.value.negate())),t.dispersion>0&&(e.dispersion.value=t.dispersion),t.retroreflectivity>0&&(e.retroreflectivity.value=t.retroreflectivity),t.iridescence>0&&(e.iridescence.value=t.iridescence,e.iridescenceIOR.value=t.iridescenceIOR,e.iridescenceThicknessMinimum.value=t.iridescenceThicknessRange[0],e.iridescenceThicknessMaximum.value=t.iridescenceThicknessRange[1],t.iridescenceMap&&(e.iridescenceMap.value=t.iridescenceMap,n(t.iridescenceMap,e.iridescenceMapTransform)),t.iridescenceThicknessMap&&(e.iridescenceThicknessMap.value=t.iridescenceThicknessMap,n(t.iridescenceThicknessMap,e.iridescenceThicknessMapTransform))),t.transmission>0&&(e.transmission.value=t.transmission,e.transmissionSamplerMap.value=r.texture,e.transmissionSamplerSize.value.set(r.width,r.height),t.transmissionMap&&(e.transmissionMap.value=t.transmissionMap,n(t.transmissionMap,e.transmissionMapTransform)),e.thickness.value=t.thickness,t.thicknessMap&&(e.thicknessMap.value=t.thicknessMap,n(t.thicknessMap,e.thicknessMapTransform)),e.attenuationDistance.value=t.attenuationDistance,e.attenuationColor.value.copy(t.attenuationColor)),t.anisotropy>0&&(e.anisotropyVector.value.set(t.anisotropy*Math.cos(t.anisotropyRotation),t.anisotropy*Math.sin(t.anisotropyRotation)),t.anisotropyMap&&(e.anisotropyMap.value=t.anisotropyMap,n(t.anisotropyMap,e.anisotropyMapTransform))),e.specularIntensity.value=t.specularIntensity,e.specularColor.value.copy(t.specularColor),t.specularColorMap&&(e.specularColorMap.value=t.specularColorMap,n(t.specularColorMap,e.specularColorMapTransform)),t.specularIntensityMap&&(e.specularIntensityMap.value=t.specularIntensityMap,n(t.specularIntensityMap,e.specularIntensityMapTransform))}function m(e,t){t.matcap&&(e.matcap.value=t.matcap)}function h(e,n){let r=t.get(n).light;e.referencePosition.value.setFromMatrixPosition(r.matrixWorld),e.nearDistance.value=r.shadow.camera.near,e.farDistance.value=r.shadow.camera.far}return{refreshFogUniforms:r,refreshMaterialUniforms:i}}function Og(e,t,n,r){let i={},a={},o=[],s=e.getParameter(e.MAX_UNIFORM_BUFFER_BINDINGS);function c(e,t){let n=t.program;r.uniformBlockBinding(e,n)}function l(e,n){let o=i[e.id];o===void 0&&(g(e),o=u(e),i[e.id]=o,e.addEventListener(`dispose`,v));let s=n.program;r.updateUBOMapping(e,s);let c=t.render.frame;a[e.id]!==c&&(f(e),a[e.id]=c)}function u(t){let n=d();t.__bindingPointIndex=n;let r=e.createBuffer(),i=t.__size,a=t.usage;return e.bindBuffer(e.UNIFORM_BUFFER,r),e.bufferData(e.UNIFORM_BUFFER,i,a),e.bindBuffer(e.UNIFORM_BUFFER,null),e.bindBufferBase(e.UNIFORM_BUFFER,n,r),r}function d(){for(let e=0;e0&&(n+=16-r),e.__size=n,e.__cache={},this}function _(e){let t={boundary:0,storage:0};return typeof e==`number`||typeof e==`boolean`?(t.boundary=4,t.storage=4):e.isVector2?(t.boundary=8,t.storage=8):e.isVector3||e.isColor?(t.boundary=16,t.storage=12):e.isVector4?(t.boundary=16,t.storage=16):e.isMatrix3?(t.boundary=48,t.storage=48):e.isMatrix4?(t.boundary=64,t.storage=64):e.isTexture?To(`WebGLRenderer: Texture samplers can not be part of an uniforms group.`):ArrayBuffer.isView(e)?(t.boundary=16,t.storage=e.byteLength):To(`WebGLRenderer: Unsupported uniform value type.`,e),t}function v(t){let n=t.target;n.removeEventListener(`dispose`,v);let r=o.indexOf(n.__bindingPointIndex);o.splice(r,1),e.deleteBuffer(i[n.id]),delete i[n.id],delete a[n.id]}function y(){for(let t in i)e.deleteBuffer(i[t]);o=[],i={},a={}}return{bind:c,update:l,dispose:y}}var kg=new Uint16Array([12469,15057,12620,14925,13266,14620,13807,14376,14323,13990,14545,13625,14713,13328,14840,12882,14931,12528,14996,12233,15039,11829,15066,11525,15080,11295,15085,10976,15082,10705,15073,10495,13880,14564,13898,14542,13977,14430,14158,14124,14393,13732,14556,13410,14702,12996,14814,12596,14891,12291,14937,11834,14957,11489,14958,11194,14943,10803,14921,10506,14893,10278,14858,9960,14484,14039,14487,14025,14499,13941,14524,13740,14574,13468,14654,13106,14743,12678,14818,12344,14867,11893,14889,11509,14893,11180,14881,10751,14852,10428,14812,10128,14765,9754,14712,9466,14764,13480,14764,13475,14766,13440,14766,13347,14769,13070,14786,12713,14816,12387,14844,11957,14860,11549,14868,11215,14855,10751,14825,10403,14782,10044,14729,9651,14666,9352,14599,9029,14967,12835,14966,12831,14963,12804,14954,12723,14936,12564,14917,12347,14900,11958,14886,11569,14878,11247,14859,10765,14828,10401,14784,10011,14727,9600,14660,9289,14586,8893,14508,8533,15111,12234,15110,12234,15104,12216,15092,12156,15067,12010,15028,11776,14981,11500,14942,11205,14902,10752,14861,10393,14812,9991,14752,9570,14682,9252,14603,8808,14519,8445,14431,8145,15209,11449,15208,11451,15202,11451,15190,11438,15163,11384,15117,11274,15055,10979,14994,10648,14932,10343,14871,9936,14803,9532,14729,9218,14645,8742,14556,8381,14461,8020,14365,7603,15273,10603,15272,10607,15267,10619,15256,10631,15231,10614,15182,10535,15118,10389,15042,10167,14963,9787,14883,9447,14800,9115,14710,8665,14615,8318,14514,7911,14411,7507,14279,7198,15314,9675,15313,9683,15309,9712,15298,9759,15277,9797,15229,9773,15166,9668,15084,9487,14995,9274,14898,8910,14800,8539,14697,8234,14590,7790,14479,7409,14367,7067,14178,6621,15337,8619,15337,8631,15333,8677,15325,8769,15305,8871,15264,8940,15202,8909,15119,8775,15022,8565,14916,8328,14804,8009,14688,7614,14569,7287,14448,6888,14321,6483,14088,6171,15350,7402,15350,7419,15347,7480,15340,7613,15322,7804,15287,7973,15229,8057,15148,8012,15046,7846,14933,7611,14810,7357,14682,7069,14552,6656,14421,6316,14251,5948,14007,5528,15356,5942,15356,5977,15353,6119,15348,6294,15332,6551,15302,6824,15249,7044,15171,7122,15070,7050,14949,6861,14818,6611,14679,6349,14538,6067,14398,5651,14189,5311,13935,4958,15359,4123,15359,4153,15356,4296,15353,4646,15338,5160,15311,5508,15263,5829,15188,6042,15088,6094,14966,6001,14826,5796,14678,5543,14527,5287,14377,4985,14133,4586,13869,4257,15360,1563,15360,1642,15358,2076,15354,2636,15341,3350,15317,4019,15273,4429,15203,4732,15105,4911,14981,4932,14836,4818,14679,4621,14517,4386,14359,4156,14083,3795,13808,3437,15360,122,15360,137,15358,285,15355,636,15344,1274,15322,2177,15281,2765,15215,3223,15120,3451,14995,3569,14846,3567,14681,3466,14511,3305,14344,3121,14037,2800,13753,2467,15360,0,15360,1,15359,21,15355,89,15346,253,15325,479,15287,796,15225,1148,15133,1492,15008,1749,14856,1882,14685,1886,14506,1783,14324,1608,13996,1398,13702,1183]),Ag=null;function jg(){return Ag===null&&(Ag=new Wl(kg,16,16,ha,na),Ag.name=`DFG_LUT`,Ag.minFilter=Ki,Ag.magFilter=Ki,Ag.wrapS=Vi,Ag.wrapT=Vi,Ag.generateMipmaps=!1,Ag.needsUpdate=!0),Ag}var Mg=class{constructor(e={}){let{canvas:t=xo(),context:n=null,depth:r=!0,stencil:i=!1,alpha:a=!1,antialias:o=!1,premultipliedAlpha:s=!0,preserveDrawingBuffer:c=!1,powerPreference:l=`default`,failIfMajorPerformanceCaveat:u=!1,reversedDepthBuffer:d=!1,outputBufferType:f=Yi}=e;this.isWebGLRenderer=!0;let p;if(n!==null){if(typeof WebGLRenderingContext<`u`&&n instanceof WebGLRenderingContext)throw Error(`THREE.WebGLRenderer: WebGL 1 is not supported since r163.`);p=n.getContextAttributes().alpha}else p=a;let m=f,h=new Set([_a,ga,ma]),g=new Set([Yi,ea,Qi,aa,ra,ia]),_=new Uint32Array(4),v=new Int32Array(4),y=new B,b=null,x=null,S=[],C=[],w=null;this.domElement=t,this.debug={checkShaderErrors:!0,diagnostics:{keywords:!1},onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.toneMapping=0,this.toneMappingExposure=1,this.transmissionResolutionScale=1;let T=this,E=!1,D=null,O=null,k=null,ee=null;this._outputColorSpace=lo;let A=0,te=0,j=null,ne=-1,re=null,ie=new Ss,M=new Ss,N=null,ae=new V(0),oe=0,se=t.width,ce=t.height,le=1,ue=null,de=null,fe=new Ss(0,0,se,ce),pe=new Ss(0,0,se,ce),me=!1,he=new ou,ge=!1,_e=!1,ve=new Ds,ye=new B,be=new Ss,xe={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0},Se=!1;function Ce(){return j===null?le:1}let P=n;function we(e,n){return t.getContext(e,n)}let Te,F,I,Ee,De,Oe,ke,Ae,je,Me,Ne,Pe,Fe,Ie,Le,Re,ze,Be,Ve,He,Ue,We,Ge;try{let e={alpha:!0,depth:r,stencil:i,antialias:o,premultipliedAlpha:s,preserveDrawingBuffer:c,powerPreference:l,failIfMajorPerformanceCaveat:u};if(`setAttribute`in t&&t.setAttribute(`data-engine`,`three.js r186`),t.addEventListener(`webglcontextlost`,Je,!1),t.addEventListener(`webglcontextrestored`,Ye,!1),t.addEventListener(`webglcontextcreationerror`,Xe,!1),P===null){let t=`webgl2`;if(P=we(t,e),P===null)throw we(t)?Error(`THREE.WebGLRenderer: Error creating WebGL context with your selected attributes.`):Error(`THREE.WebGLRenderer: Error creating WebGL context.`)}Ke()}catch(e){throw t.removeEventListener(`webglcontextlost`,Je,!1),t.removeEventListener(`webglcontextrestored`,Ye,!1),t.removeEventListener(`webglcontextcreationerror`,Xe,!1),Eo(`WebGLRenderer: `+e.message),e}function Ke(){Te=new Xp(P),Te.init(),Ue=new bg(P,Te),F=new Tp(P,Te,e,Ue),I=new vg(P,Te),F.reversedDepthBuffer&&d&&I.buffers.depth.setReversed(!0),O=P.createFramebuffer(),k=P.createFramebuffer(),ee=P.createFramebuffer(),Ee=new $p(P),De=new Qh,Oe=new yg(P,Te,I,De,F,Ue,Ee),ke=new Yp(T),Ae=new gp(P),We=new Cp(P,Ae),je=new Zp(P,Ae,Ee,We),Me=new tm(P,je,Ae,We,Ee),Be=new em(P,F,Oe),Le=new Ep(De),Ne=new Zh(T,ke,Te,F,We,Le),Pe=new Dg(T,De),Fe=new ng,Ie=new lg(Te),ze=new Sp(T,ke,I,Me,p,s),Re=new _g(T,Me,F),Ge=new Og(P,Ee,F,I),Ve=new wp(P,Te,Ee),He=new Qp(P,Te,Ee),Ee.programs=Ne.programs,T.capabilities=F,T.extensions=Te,T.properties=De,T.renderLists=Fe,T.shadowMap=Re,T.state=I,T.info=Ee}m!==1009&&(w=new rm(m,t.width,t.height,o,r,i));let qe=new wg(T,P);this.xr=qe,this.getContext=function(){return P},this.getContextAttributes=function(){return P.getContextAttributes()},this.forceContextLoss=function(){let e=Te.get(`WEBGL_lose_context`);e&&e.loseContext()},this.forceContextRestore=function(){let e=Te.get(`WEBGL_lose_context`);e&&e.restoreContext()},this.getPixelRatio=function(){return le},this.setPixelRatio=function(e){e!==void 0&&(le=e,this.setSize(se,ce,!1))},this.getSize=function(e){return e.set(se,ce)},this.setSize=function(e,n,r=!0){qe.isPresenting?To(`WebGLRenderer: Can't change size while VR device is presenting.`):(se=e,ce=n,t.width=Math.floor(e*le),t.height=Math.floor(n*le),r===!0&&(t.style.width=e+`px`,t.style.height=n+`px`),w!==null&&w.setSize(t.width,t.height),this.setViewport(0,0,e,n))},this.getDrawingBufferSize=function(e){return e.set(se*le,ce*le).floor()},this.setDrawingBufferSize=function(e,n,r){se=e,ce=n,le=r,t.width=Math.floor(e*r),t.height=Math.floor(n*r),this.setViewport(0,0,e,n)},this.setEffects=function(e){if(m===1009)Eo(`WebGLRenderer: setEffects() requires outputBufferType set to HalfFloatType or FloatType.`);else{if(e){for(let t=0;t{function n(){r.forEach(function(e){let t=De.get(e).currentProgram;(t===void 0||t.isReady())&&r.delete(e)}),r.size===0?t(e):setTimeout(n,10)}Te.get(`KHR_parallel_shader_compile`)===null?setTimeout(n,10):n()})};let tt=null;function nt(e){tt&&tt(e)}function rt(){at.stop()}function it(){at.start()}let at=new hp;at.setAnimationLoop(nt),typeof self<`u`&&at.setContext(self),this.setAnimationLoop=function(e){tt=e,qe.setAnimationLoop(e),e===null?at.stop():at.start()},qe.addEventListener(`sessionstart`,rt),qe.addEventListener(`sessionend`,it),this.render=function(e,t){if(t!==void 0&&t.isCamera!==!0){Eo(`WebGLRenderer.render: camera is not an instance of THREE.Camera.`);return}if(E===!0)return;D!==null&&D.renderStart(e,t);let n=qe.enabled===!0&&qe.isPresenting===!0,r=w!==null&&(j===null||n)&&w.begin(T,j);if(e.matrixWorldAutoUpdate===!0&&e.updateMatrixWorld(),t.parent===null&&t.matrixWorldAutoUpdate===!0&&t.updateMatrixWorld(),qe.enabled===!0&&qe.isPresenting===!0&&(w===null||w.isCompositing()===!1)&&(qe.cameraAutoUpdate===!0&&qe.updateCamera(t),t=qe.getCamera()),e.isScene===!0&&e.onBeforeRender(T,e,t,j),x=Ie.get(e,C.length),x.init(t),x.state.textureUnits=Oe.getTextureUnits(),C.push(x),ve.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),he.setFromProjectionMatrix(ve,_o,t.reversedDepth),_e=this.localClippingEnabled,ge=Le.init(this.clippingPlanes,_e),b=Fe.get(e,S.length),b.init(),S.push(b),qe.enabled===!0&&qe.isPresenting===!0){let e=T.xr.getDepthSensingMesh();e!==null&&ot(e,t,-1/0,T.sortObjects)}ot(e,t,0,T.sortObjects),b.finish(),D!==null&&D.updateLights(x.state.lightsArray),T.sortObjects===!0&&b.sort(ue,de),Se=qe.enabled===!1||qe.isPresenting===!1||qe.hasDepthSensing()===!1,Se&&ze.addToRenderList(b,e),this.info.render.frame++,this.info.autoReset===!0&&this.info.reset(),ge===!0&&Le.beginShadows();let i=x.state.shadowsArray;if(Re.render(i,e,t),ge===!0&&Le.endShadows(),(r&&w.hasRenderPass())===!1){let n=b.opaque,r=b.transmissive;if(x.setupLights(),t.isArrayCamera){let i=t.cameras;if(r.length>0)for(let t=0,a=i.length;t0&&ct(n,r,e,t),Se&&ze.render(e),st(b,e,t)}j!==null&&te===0&&(Oe.updateMultisampleRenderTarget(j),Oe.updateRenderTargetMipmap(j)),r&&w.end(T),e.isScene===!0&&e.onAfterRender(T,e,t),We.resetDefaultState(),ne=-1,re=null,C.pop(),C.length>0?(x=C[C.length-1],Oe.setTextureUnits(x.state.textureUnits),ge===!0&&Le.setGlobalState(T.clippingPlanes,x.state.camera)):x=null,S.pop(),b=S.length>0?S[S.length-1]:null,D!==null&&D.renderEnd()};function ot(e,t,n,r){if(e.visible===!1)return;if(e.layers.test(t.layers)){if(e.isGroup)n=e.renderOrder;else if(e.isLOD)e.autoUpdate===!0&&e.update(t);else if(e.isLightProbeGrid)x.pushLightProbeGrid(e);else if(e.isLight)x.pushLight(e),e.castShadow&&x.pushShadow(e);else if(e.isSprite){if(!e.frustumCulled||e.intersectsFrustum(he)){r&&be.setFromMatrixPosition(e.matrixWorld).applyMatrix4(ve);let i=Me.update(e),a=e.material;a.visible&&b.push(e,i,a,n,be.z,null,t)}}else if((e.isMesh||e.isLine||e.isPoints)&&(!e.frustumCulled||e.intersectsFrustum(he))){let i=Me.update(e),a=e.material;if(r&&(e.boundingSphere===void 0?(i.boundingSphere===null&&i.computeBoundingSphere(),be.copy(i.boundingSphere.center)):(e.boundingSphere===null&&e.computeBoundingSphere(),be.copy(e.boundingSphere.center)),be.applyMatrix4(e.matrixWorld).applyMatrix4(ve)),Array.isArray(a)){let r=i.groups;for(let o=0,s=r.length;o0&<(i,t,n),a.length>0&<(a,t,n),o.length>0&<(o,t,n),I.buffers.depth.setTest(!0),I.buffers.depth.setMask(!0),I.buffers.color.setMask(!0),I.setPolygonOffset(!1)}function ct(e,t,n,r){if((n.isScene===!0?n.overrideMaterial:null)!==null)return;if(x.state.transmissionRenderTarget[r.id]===void 0){let e=Te.has(`EXT_color_buffer_half_float`)||Te.has(`EXT_color_buffer_float`);x.state.transmissionRenderTarget[r.id]=new ws(1,1,{generateMipmaps:!0,type:e?na:Yi,minFilter:Ji,samples:Math.max(4,F.samples),stencilBuffer:i,resolveDepthBuffer:!1,resolveStencilBuffer:!1,storeMultisampledDepthBuffer:!1,storeMultisampledStencilBuffer:!1,colorSpace:ds.workingColorSpace})}let a=x.state.transmissionRenderTarget[r.id],o=r.viewport||ie;a.setSize(o.z*T.transmissionResolutionScale,o.w*T.transmissionResolutionScale);let s=T.getRenderTarget(),c=T.getActiveCubeFace(),l=T.getActiveMipmapLevel();T.setRenderTarget(a),T.getClearColor(ae),oe=T.getClearAlpha(),oe<1&&T.setClearColor(16777215,.5),T.clear(),Se&&ze.render(n);let u=T.toneMapping;T.toneMapping=0;let d=r.viewport;if(r.viewport!==void 0&&(r.viewport=void 0),x.setupLightsView(r),ge===!0&&Le.setGlobalState(T.clippingPlanes,r),lt(e,n,r),Oe.updateMultisampleRenderTarget(a),Oe.updateRenderTargetMipmap(a),Te.has(`WEBGL_multisampled_render_to_texture`)===!1){let e=!1;for(let i=0,a=t.length;i0,r.currentProgram=d,r.uniformsList=null,d}function ft(e){if(e.uniformsList===null){let t=e.currentProgram.getUniforms();e.uniformsList=uh.seqWithValue(t.seq,e.uniforms)}return e.uniformsList}function pt(e,t){let n=De.get(e);n.outputColorSpace=t.outputColorSpace,n.batching=t.batching,n.batchingColor=t.batchingColor,n.instancing=t.instancing,n.instancingColor=t.instancingColor,n.instancingMorph=t.instancingMorph,n.skinning=t.skinning,n.morphTargets=t.morphTargets,n.morphNormals=t.morphNormals,n.morphColors=t.morphColors,n.morphTargetsCount=t.morphTargetsCount,n.numClippingPlanes=t.numClippingPlanes,n.numIntersection=t.numClipIntersection,n.vertexAlphas=t.vertexAlphas,n.vertexTangents=t.vertexTangents,n.toneMapping=t.toneMapping}function mt(e,t){if(e.length===0)return null;if(e.length===1)return e[0].texture===null?null:e[0];y.setFromMatrixPosition(t.matrixWorld);for(let t=0,n=e.length;t0),f=!!n.morphAttributes.position,p=!!n.morphAttributes.normal,m=!!n.morphAttributes.color,h=0;r.toneMapped&&(j===null||j.isXRRenderTarget===!0)&&(h=T.toneMapping);let g=n.morphAttributes.position||n.morphAttributes.normal||n.morphAttributes.color,_=g===void 0?0:g.length,v=De.get(r),y=x.state.lights;if(ge===!0&&(_e===!0||e!==re)){let t=e===re&&r.id===ne;Le.setState(r,e,t)}let b=!1;r.version===v.__version?v.needsLights&&v.lightsStateVersion!==y.state.version?b=!0:v.outputColorSpace===s?i.isBatchedMesh&&v.batching===!1||!i.isBatchedMesh&&v.batching===!0||i.isBatchedMesh&&v.batchingColor===!0&&i._colorsTexture===null||i.isBatchedMesh&&v.batchingColor===!1&&i._colorsTexture!==null||i.isInstancedMesh&&v.instancing===!1||!i.isInstancedMesh&&v.instancing===!0||i.isSkinnedMesh&&v.skinning===!1||!i.isSkinnedMesh&&v.skinning===!0||i.isInstancedMesh&&v.instancingColor===!0&&i.instanceColor===null||i.isInstancedMesh&&v.instancingColor===!1&&i.instanceColor!==null||i.isInstancedMesh&&v.instancingMorph===!0&&i.morphTexture===null||i.isInstancedMesh&&v.instancingMorph===!1&&i.morphTexture!==null?b=!0:v.envMap===l?r.fog===!0&&v.fog!==a||v.numClippingPlanes!==void 0&&(v.numClippingPlanes!==Le.numPlanes||v.numIntersection!==Le.numIntersection)?b=!0:v.vertexAlphas===u&&v.vertexTangents===d&&v.morphTargets===f&&v.morphNormals===p&&v.morphColors===m&&v.toneMapping===h&&v.morphTargetsCount===_?!!v.lightProbeGrid!=x.state.lightProbeGridArray.length>0&&(b=!0):b=!0:b=!0:b=!0:(b=!0,v.__version=r.version);let S=v.currentProgram;b===!0&&(S=dt(r,t,i),D&&r.isNodeMaterial&&D.onUpdateProgram(r,S,v));let C=!1,w=!1,E=!1,O=S.getUniforms(),k=v.uniforms;if(I.useProgram(S.program)&&(C=!0,w=!0,E=!0),r.id!==ne&&(ne=r.id,w=!0),v.needsLights){let e=mt(x.state.lightProbeGridArray,i);v.lightProbeGrid!==e&&(v.lightProbeGrid=e,w=!0)}if(C||re!==e){I.buffers.depth.getReversed()&&e.reversedDepth!==!0&&(e._reversedDepth=!0,e.updateProjectionMatrix()),O.setValue(P,`projectionMatrix`,e.projectionMatrix),O.setValue(P,`viewMatrix`,e.matrixWorldInverse);let t=O.map.cameraPosition;t!==void 0&&t.setValue(P,ye.setFromMatrixPosition(e.matrixWorld)),F.logarithmicDepthBuffer&&O.setValue(P,`logDepthBufFC`,2/(Math.log(e.far+1)/Math.LN2)),(r.isMeshPhongMaterial||r.isMeshToonMaterial||r.isMeshLambertMaterial||r.isMeshBasicMaterial||r.isMeshStandardMaterial||r.isShaderMaterial)&&O.setValue(P,`isOrthographic`,e.isOrthographicCamera===!0),re!==e&&(re=e,w=!0,E=!0)}if(v.needsLights&&(y.state.sunShadowMap.length>0&&O.setValue(P,`sunShadowMap`,y.state.sunShadowMap,Oe),y.state.directionalShadowMap.length>0&&O.setValue(P,`directionalShadowMap`,y.state.directionalShadowMap,Oe),y.state.spotShadowMap.length>0&&O.setValue(P,`spotShadowMap`,y.state.spotShadowMap,Oe),y.state.pointShadowMap.length>0&&O.setValue(P,`pointShadowMap`,y.state.pointShadowMap,Oe)),i.isSkinnedMesh){O.setOptional(P,i,`bindMatrix`),O.setOptional(P,i,`bindMatrixInverse`);let e=i.skeleton;e&&(e.boneTexture===null&&e.computeBoneTexture(),O.setValue(P,`boneTexture`,e.boneTexture,Oe))}i.isBatchedMesh&&(O.setOptional(P,i,`batchingTexture`),O.setValue(P,`batchingTexture`,i._matricesTexture,Oe),O.setOptional(P,i,`batchingIdTexture`),O.setValue(P,`batchingIdTexture`,i._indirectTexture,Oe),O.setOptional(P,i,`batchingColorTexture`),i._colorsTexture!==null&&O.setValue(P,`batchingColorTexture`,i._colorsTexture,Oe));let ee=n.morphAttributes;if((ee.position!==void 0||ee.normal!==void 0||ee.color!==void 0)&&Be.update(i,n,S),(w||v.receiveShadow!==i.receiveShadow)&&(v.receiveShadow=i.receiveShadow,O.setValue(P,`receiveShadow`,i.receiveShadow)),(r.isMeshStandardMaterial||r.isMeshLambertMaterial||r.isMeshPhongMaterial)&&r.envMap===null&&t.environment!==null&&(k.envMapIntensity.value=t.environmentIntensity),k.dfgLUT!==void 0&&(k.dfgLUT.value=jg()),w){if(O.setValue(P,`toneMappingExposure`,T.toneMappingExposure),v.needsLights&>(k,E),a&&r.fog===!0&&Pe.refreshFogUniforms(k,a),Pe.refreshMaterialUniforms(k,r,le,ce,x.state.transmissionRenderTarget[e.id]),v.needsLights&&v.lightProbeGrid){let e=v.lightProbeGrid;k.probesSH.value=e.texture,k.probesMin.value.copy(e.boundingBox.min),k.probesMax.value.copy(e.boundingBox.max),k.probesResolution.value.copy(e.resolution)}uh.upload(P,ft(v),k,Oe)}if(r.isShaderMaterial&&r.uniformsNeedUpdate===!0&&(uh.upload(P,ft(v),k,Oe),r.uniformsNeedUpdate=!1),r.isSpriteMaterial&&O.setValue(P,`center`,i.center),O.setValue(P,`modelViewMatrix`,i.modelViewMatrix),O.setValue(P,`normalMatrix`,i.normalMatrix),O.setValue(P,`modelMatrix`,i.matrixWorld),r.uniformsGroups!==void 0){let e=r.uniformsGroups;for(let t=0,n=e.length;t0&&Oe.useMultisampledRTT(e)===!1?De.get(e).__webglMultisampledFramebuffer:Array.isArray(c)?c[n]:c,ie.copy(e.viewport),M.copy(e.scissor),N=e.scissorTest}else ie.copy(fe).multiplyScalar(le).floor(),M.copy(pe).multiplyScalar(le).floor(),N=me;if(n!==0&&(r=O),I.bindFramebuffer(P.FRAMEBUFFER,r)&&I.drawBuffers(e,r),I.viewport(ie),I.scissor(M),I.setScissorTest(N),i){let r=De.get(e.texture);P.framebufferTexture2D(P.FRAMEBUFFER,P.COLOR_ATTACHMENT0,P.TEXTURE_CUBE_MAP_POSITIVE_X+t,r.__webglTexture,n)}else if(a){let r=t;for(let t=0;t1&&P.readBuffer(P.COLOR_ATTACHMENT0+s);let u=vt(o);if(u.__formatReadable===!1){Eo(`WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.`);return}if(u.__typeReadable===!1){Eo(`WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.`);return}t>=0&&t<=e.width-r&&n>=0&&n<=e.height-i&&P.readPixels(t,n,r,i,Ue.convert(c),Ue.convert(l),a)}finally{let e=j===null?null:De.get(j).__webglFramebuffer;I.bindFramebuffer(P.FRAMEBUFFER,e)}}},this.readRenderTargetPixelsAsync=async function(e,t,n,r,i,a,o,s=0){if(!(e&&e.isWebGLRenderTarget))throw Error(`THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.`);let c=De.get(e).__webglFramebuffer;if(e.isWebGLCubeRenderTarget&&o!==void 0&&(c=c[o]),c){if(t>=0&&t<=e.width-r&&n>=0&&n<=e.height-i){I.bindFramebuffer(P.FRAMEBUFFER,c);let o=e.textures[s],l=o.format,u=o.type;e.textures.length>1&&P.readBuffer(P.COLOR_ATTACHMENT0+s);let d=vt(o);if(d.__formatReadable===!1)throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.`);if(d.__typeReadable===!1)throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.`);let f=P.createBuffer();P.bindBuffer(P.PIXEL_PACK_BUFFER,f),P.bufferData(P.PIXEL_PACK_BUFFER,a.byteLength,P.STREAM_READ),P.readPixels(t,n,r,i,Ue.convert(l),Ue.convert(u),0),P.bindBuffer(P.PIXEL_PACK_BUFFER,null);let p=j===null?null:De.get(j).__webglFramebuffer;I.bindFramebuffer(P.FRAMEBUFFER,p);let m=P.fenceSync(P.SYNC_GPU_COMMANDS_COMPLETE,0);return P.flush(),await Oo(P,m,4),P.bindBuffer(P.PIXEL_PACK_BUFFER,f),P.getBufferSubData(P.PIXEL_PACK_BUFFER,0,a),P.bindBuffer(P.PIXEL_PACK_BUFFER,null),P.deleteBuffer(f),P.deleteSync(m),a}throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: requested read bounds are out of range.`)}},this.copyFramebufferToTexture=function(e,t=null,n=0){let r=2**-n,i=Math.floor(e.image.width*r),a=Math.floor(e.image.height*r),o=t===null?0:t.x,s=t===null?0:t.y;Oe.setTexture2D(e,0),P.copyTexSubImage2D(P.TEXTURE_2D,n,0,0,o,s,i,a),I.unbindTexture()},this.copyTextureToTexture=function(e,t,n=null,r=null,i=0,a=0){let o,s,c,l,u,d,f,p,m,h=e.isCompressedTexture?e.mipmaps[a]:e.image;if(n!==null)o=n.max.x-n.min.x,s=n.max.y-n.min.y,c=n.isBox3?n.max.z-n.min.z:1,l=n.min.x,u=n.min.y,d=n.isBox3?n.min.z:0;else{let t=2**-i;o=Math.floor(h.width*t),s=Math.floor(h.height*t),c=e.isDataArrayTexture?h.depth:e.isData3DTexture?Math.floor(h.depth*t):1,l=0,u=0,d=0}r===null?(f=0,p=0,m=0):(f=r.x,p=r.y,m=r.z);let g=Ue.convert(t.format),_=Ue.convert(t.type),v;t.isData3DTexture?(Oe.setTexture3D(t,0),v=P.TEXTURE_3D):t.isDataArrayTexture||t.isCompressedArrayTexture?(Oe.setTexture2DArray(t,0),v=P.TEXTURE_2D_ARRAY):(Oe.setTexture2D(t,0),v=P.TEXTURE_2D),I.activeTexture(P.TEXTURE0),I.pixelStorei(P.UNPACK_FLIP_Y_WEBGL,t.flipY),I.pixelStorei(P.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.premultiplyAlpha),I.pixelStorei(P.UNPACK_ALIGNMENT,t.unpackAlignment);let y=I.getParameter(P.UNPACK_ROW_LENGTH),b=I.getParameter(P.UNPACK_IMAGE_HEIGHT),x=I.getParameter(P.UNPACK_SKIP_PIXELS),S=I.getParameter(P.UNPACK_SKIP_ROWS),C=I.getParameter(P.UNPACK_SKIP_IMAGES);I.pixelStorei(P.UNPACK_ROW_LENGTH,h.width),I.pixelStorei(P.UNPACK_IMAGE_HEIGHT,h.height),I.pixelStorei(P.UNPACK_SKIP_PIXELS,l),I.pixelStorei(P.UNPACK_SKIP_ROWS,u),I.pixelStorei(P.UNPACK_SKIP_IMAGES,d);let w=e.isDataArrayTexture||e.isData3DTexture,T=t.isDataArrayTexture||t.isData3DTexture;if(e.isDepthTexture){let n=De.get(e),r=De.get(t),h=De.get(n.__renderTarget),g=De.get(r.__renderTarget);I.bindFramebuffer(P.READ_FRAMEBUFFER,h.__webglFramebuffer),I.bindFramebuffer(P.DRAW_FRAMEBUFFER,g.__webglFramebuffer);for(let n=0;n{let r=new e.array.constructor(e.count*e.itemSize);l[n][t]=new e.constructor(r,e.itemSize,e.normalized)}))}let p=t*.5,m=10**Math.log10(1/t),h=p*m;for(let t=0;t=0&&(x[r]=null,b[r].disconnect(n))}for(let t=0;t=x.length){x.push(n),r=e;break}else if(x[e]===null){x[e]=n,r=e;break}if(r===-1)break}let i=b[r];i&&i.connect(n)}}let M=new B,ne=new B;function re(e,t,n){M.setFromMatrixPosition(t.matrixWorld),ne.setFromMatrixPosition(n.matrixWorld);let r=M.distanceTo(ne),i=t.projectionMatrix.elements,a=n.projectionMatrix.elements,o=i[14]/(i[10]-1),s=i[14]/(i[10]+1),c=(i[9]+1)/i[5],l=(i[9]-1)/i[5],u=(i[8]-1)/i[0],d=(a[8]+1)/a[0],f=o*u,p=o*d,m=r/(-u+d),h=m*-u;if(t.matrixWorld.decompose(e.position,e.quaternion,e.scale),e.translateX(h),e.translateZ(m),e.matrixWorld.compose(e.position,e.quaternion,e.scale),e.matrixWorldInverse.copy(e.matrixWorld).invert(),i[10]===-1)e.projectionMatrix.copy(t.projectionMatrix),e.projectionMatrixInverse.copy(t.projectionMatrixInverse);else{let t=o+m,n=s+m,i=f-h,a=p+(r-h),u=c*s/n*t,d=l*s/n*t;e.projectionMatrix.makePerspective(i,a,u,d,t,n),e.projectionMatrixInverse.copy(e.projectionMatrix).invert()}}function ie(e,t){t===null?e.matrixWorld.copy(e.matrix):e.matrixWorld.multiplyMatrices(t.matrixWorld,e.matrix),e.matrixWorldInverse.copy(e.matrixWorld).invert()}this.updateCamera=function(e){if(r===null)return;let t=e.near,n=e.far;h.texture!==null&&(h.depthNear>0&&(t=h.depthNear),h.depthFar>0&&(n=h.depthFar)),O.near=E.near=T.near=t,O.far=E.far=T.far=n,(k!==O.near||ee!==O.far)&&(r.updateRenderState({depthNear:O.near,depthFar:O.far}),k=O.near,ee=O.far),O.layers.mask=e.layers.mask|6,T.layers.mask=O.layers.mask&-5,E.layers.mask=O.layers.mask&-3;let i=e.parent,a=O.cameras;ie(O,i);for(let e=0;e0&&(e.alphaTest.value=r.alphaTest);let i=t.get(r),a=i.envMap,o=i.envMapRotation;a&&(e.envMap.value=a,e.envMapRotation.value.setFromMatrix4(Ig.makeRotationFromEuler(o)).transpose(),a.isCubeTexture&&a.isRenderTargetTexture===!1&&e.envMapRotation.value.premultiply(Lg),e.reflectivity.value=r.reflectivity,e.ior.value=r.ior,e.refractionRatio.value=r.refractionRatio),r.lightMap&&(e.lightMap.value=r.lightMap,e.lightMapIntensity.value=r.lightMapIntensity,n(r.lightMap,e.lightMapTransform)),r.aoMap&&(e.aoMap.value=r.aoMap,e.aoMapIntensity.value=r.aoMapIntensity,n(r.aoMap,e.aoMapTransform))}function o(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform))}function s(e,t){e.dashSize.value=t.dashSize,e.totalSize.value=t.dashSize+t.gapSize,e.scale.value=t.scale}function c(e,t,r,i){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.size.value=t.size*r,e.scale.value=i*.5,t.map&&(e.map.value=t.map,n(t.map,e.uvTransform)),t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform)),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}function l(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.rotation.value=t.rotation,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform)),t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform)),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}function u(e,t){e.specular.value.copy(t.specular),e.shininess.value=Math.max(t.shininess,1e-4)}function d(e,t){t.gradientMap&&(e.gradientMap.value=t.gradientMap)}function f(e,t){e.metalness.value=t.metalness,t.metalnessMap&&(e.metalnessMap.value=t.metalnessMap,n(t.metalnessMap,e.metalnessMapTransform)),e.roughness.value=t.roughness,t.roughnessMap&&(e.roughnessMap.value=t.roughnessMap,n(t.roughnessMap,e.roughnessMapTransform)),t.envMap&&(e.envMapIntensity.value=t.envMapIntensity)}function p(e,t,r){e.ior.value=t.ior,t.sheen>0&&(e.sheenColor.value.copy(t.sheenColor).multiplyScalar(t.sheen),e.sheenRoughness.value=t.sheenRoughness,t.sheenColorMap&&(e.sheenColorMap.value=t.sheenColorMap,n(t.sheenColorMap,e.sheenColorMapTransform)),t.sheenRoughnessMap&&(e.sheenRoughnessMap.value=t.sheenRoughnessMap,n(t.sheenRoughnessMap,e.sheenRoughnessMapTransform))),t.clearcoat>0&&(e.clearcoat.value=t.clearcoat,e.clearcoatRoughness.value=t.clearcoatRoughness,t.clearcoatMap&&(e.clearcoatMap.value=t.clearcoatMap,n(t.clearcoatMap,e.clearcoatMapTransform)),t.clearcoatRoughnessMap&&(e.clearcoatRoughnessMap.value=t.clearcoatRoughnessMap,n(t.clearcoatRoughnessMap,e.clearcoatRoughnessMapTransform)),t.clearcoatNormalMap&&(e.clearcoatNormalMap.value=t.clearcoatNormalMap,n(t.clearcoatNormalMap,e.clearcoatNormalMapTransform),e.clearcoatNormalScale.value.copy(t.clearcoatNormalScale),t.side===1&&e.clearcoatNormalScale.value.negate())),t.dispersion>0&&(e.dispersion.value=t.dispersion),t.retroreflectivity>0&&(e.retroreflectivity.value=t.retroreflectivity),t.iridescence>0&&(e.iridescence.value=t.iridescence,e.iridescenceIOR.value=t.iridescenceIOR,e.iridescenceThicknessMinimum.value=t.iridescenceThicknessRange[0],e.iridescenceThicknessMaximum.value=t.iridescenceThicknessRange[1],t.iridescenceMap&&(e.iridescenceMap.value=t.iridescenceMap,n(t.iridescenceMap,e.iridescenceMapTransform)),t.iridescenceThicknessMap&&(e.iridescenceThicknessMap.value=t.iridescenceThicknessMap,n(t.iridescenceThicknessMap,e.iridescenceThicknessMapTransform))),t.transmission>0&&(e.transmission.value=t.transmission,e.transmissionSamplerMap.value=r.texture,e.transmissionSamplerSize.value.set(r.width,r.height),t.transmissionMap&&(e.transmissionMap.value=t.transmissionMap,n(t.transmissionMap,e.transmissionMapTransform)),e.thickness.value=t.thickness,t.thicknessMap&&(e.thicknessMap.value=t.thicknessMap,n(t.thicknessMap,e.thicknessMapTransform)),e.attenuationDistance.value=t.attenuationDistance,e.attenuationColor.value.copy(t.attenuationColor)),t.anisotropy>0&&(e.anisotropyVector.value.set(t.anisotropy*Math.cos(t.anisotropyRotation),t.anisotropy*Math.sin(t.anisotropyRotation)),t.anisotropyMap&&(e.anisotropyMap.value=t.anisotropyMap,n(t.anisotropyMap,e.anisotropyMapTransform))),e.specularIntensity.value=t.specularIntensity,e.specularColor.value.copy(t.specularColor),t.specularColorMap&&(e.specularColorMap.value=t.specularColorMap,n(t.specularColorMap,e.specularColorMapTransform)),t.specularIntensityMap&&(e.specularIntensityMap.value=t.specularIntensityMap,n(t.specularIntensityMap,e.specularIntensityMapTransform))}function m(e,t){t.matcap&&(e.matcap.value=t.matcap)}function h(e,n){let r=t.get(n).light;e.referencePosition.value.setFromMatrixPosition(r.matrixWorld),e.nearDistance.value=r.shadow.camera.near,e.farDistance.value=r.shadow.camera.far}return{refreshFogUniforms:r,refreshMaterialUniforms:i}}function zg(e,t,n,r){let i={},a={},o=[],s=e.getParameter(e.MAX_UNIFORM_BUFFER_BINDINGS);function c(e,t){let n=t.program;r.uniformBlockBinding(e,n)}function l(e,n){let o=i[e.id];o===void 0&&(g(e),o=u(e),i[e.id]=o,e.addEventListener(`dispose`,v));let s=n.program;r.updateUBOMapping(e,s);let c=t.render.frame;a[e.id]!==c&&(f(e),a[e.id]=c)}function u(t){let n=d();t.__bindingPointIndex=n;let r=e.createBuffer(),i=t.__size,a=t.usage;return e.bindBuffer(e.UNIFORM_BUFFER,r),e.bufferData(e.UNIFORM_BUFFER,i,a),e.bindBuffer(e.UNIFORM_BUFFER,null),e.bindBufferBase(e.UNIFORM_BUFFER,n,r),r}function d(){for(let e=0;e0&&(n+=16-r),e.__size=n,e.__cache={},this}function _(e){let t={boundary:0,storage:0};return typeof e==`number`||typeof e==`boolean`?(t.boundary=4,t.storage=4):e.isVector2?(t.boundary=8,t.storage=8):e.isVector3||e.isColor?(t.boundary=16,t.storage=12):e.isVector4?(t.boundary=16,t.storage=16):e.isMatrix3?(t.boundary=48,t.storage=48):e.isMatrix4?(t.boundary=64,t.storage=64):e.isTexture?Io(`WebGLRenderer: Texture samplers can not be part of an uniforms group.`):ArrayBuffer.isView(e)?(t.boundary=16,t.storage=e.byteLength):Io(`WebGLRenderer: Unsupported uniform value type.`,e),t}function v(t){let n=t.target;n.removeEventListener(`dispose`,v);let r=o.indexOf(n.__bindingPointIndex);o.splice(r,1),e.deleteBuffer(i[n.id]),delete i[n.id],delete a[n.id]}function y(){for(let t in i)e.deleteBuffer(i[t]);o=[],i={},a={}}return{bind:c,update:l,dispose:y}}var Bg=new Uint16Array([12469,15057,12620,14925,13266,14620,13807,14376,14323,13990,14545,13625,14713,13328,14840,12882,14931,12528,14996,12233,15039,11829,15066,11525,15080,11295,15085,10976,15082,10705,15073,10495,13880,14564,13898,14542,13977,14430,14158,14124,14393,13732,14556,13410,14702,12996,14814,12596,14891,12291,14937,11834,14957,11489,14958,11194,14943,10803,14921,10506,14893,10278,14858,9960,14484,14039,14487,14025,14499,13941,14524,13740,14574,13468,14654,13106,14743,12678,14818,12344,14867,11893,14889,11509,14893,11180,14881,10751,14852,10428,14812,10128,14765,9754,14712,9466,14764,13480,14764,13475,14766,13440,14766,13347,14769,13070,14786,12713,14816,12387,14844,11957,14860,11549,14868,11215,14855,10751,14825,10403,14782,10044,14729,9651,14666,9352,14599,9029,14967,12835,14966,12831,14963,12804,14954,12723,14936,12564,14917,12347,14900,11958,14886,11569,14878,11247,14859,10765,14828,10401,14784,10011,14727,9600,14660,9289,14586,8893,14508,8533,15111,12234,15110,12234,15104,12216,15092,12156,15067,12010,15028,11776,14981,11500,14942,11205,14902,10752,14861,10393,14812,9991,14752,9570,14682,9252,14603,8808,14519,8445,14431,8145,15209,11449,15208,11451,15202,11451,15190,11438,15163,11384,15117,11274,15055,10979,14994,10648,14932,10343,14871,9936,14803,9532,14729,9218,14645,8742,14556,8381,14461,8020,14365,7603,15273,10603,15272,10607,15267,10619,15256,10631,15231,10614,15182,10535,15118,10389,15042,10167,14963,9787,14883,9447,14800,9115,14710,8665,14615,8318,14514,7911,14411,7507,14279,7198,15314,9675,15313,9683,15309,9712,15298,9759,15277,9797,15229,9773,15166,9668,15084,9487,14995,9274,14898,8910,14800,8539,14697,8234,14590,7790,14479,7409,14367,7067,14178,6621,15337,8619,15337,8631,15333,8677,15325,8769,15305,8871,15264,8940,15202,8909,15119,8775,15022,8565,14916,8328,14804,8009,14688,7614,14569,7287,14448,6888,14321,6483,14088,6171,15350,7402,15350,7419,15347,7480,15340,7613,15322,7804,15287,7973,15229,8057,15148,8012,15046,7846,14933,7611,14810,7357,14682,7069,14552,6656,14421,6316,14251,5948,14007,5528,15356,5942,15356,5977,15353,6119,15348,6294,15332,6551,15302,6824,15249,7044,15171,7122,15070,7050,14949,6861,14818,6611,14679,6349,14538,6067,14398,5651,14189,5311,13935,4958,15359,4123,15359,4153,15356,4296,15353,4646,15338,5160,15311,5508,15263,5829,15188,6042,15088,6094,14966,6001,14826,5796,14678,5543,14527,5287,14377,4985,14133,4586,13869,4257,15360,1563,15360,1642,15358,2076,15354,2636,15341,3350,15317,4019,15273,4429,15203,4732,15105,4911,14981,4932,14836,4818,14679,4621,14517,4386,14359,4156,14083,3795,13808,3437,15360,122,15360,137,15358,285,15355,636,15344,1274,15322,2177,15281,2765,15215,3223,15120,3451,14995,3569,14846,3567,14681,3466,14511,3305,14344,3121,14037,2800,13753,2467,15360,0,15360,1,15359,21,15355,89,15346,253,15325,479,15287,796,15225,1148,15133,1492,15008,1749,14856,1882,14685,1886,14506,1783,14324,1608,13996,1398,13702,1183]),Vg=null;function Hg(){return Vg===null&&(Vg=new tu(Bg,16,16,Ea,pa),Vg.name=`DFG_LUT`,Vg.minFilter=ra,Vg.magFilter=ra,Vg.wrapS=Qi,Vg.wrapT=Qi,Vg.generateMipmaps=!1,Vg.needsUpdate=!0),Vg}var Ug=class{constructor(e={}){let{canvas:t=Mo(),context:n=null,depth:r=!0,stencil:i=!1,alpha:a=!1,antialias:o=!1,premultipliedAlpha:s=!0,preserveDrawingBuffer:c=!1,powerPreference:l=`default`,failIfMajorPerformanceCaveat:u=!1,reversedDepthBuffer:d=!1,outputBufferType:f=oa}=e;this.isWebGLRenderer=!0;let p;if(n!==null){if(typeof WebGLRenderingContext<`u`&&n instanceof WebGLRenderingContext)throw Error(`THREE.WebGLRenderer: WebGL 1 is not supported since r163.`);p=n.getContextAttributes().alpha}else p=a;let m=f,h=new Set([Oa,Da,Ta]),g=new Set([oa,da,la,ga,ma,ha]),_=new Uint32Array(4),v=new Int32Array(4),y=new B,b=null,x=null,S=[],C=[],w=null;this.domElement=t,this.debug={checkShaderErrors:!0,diagnostics:{keywords:!1},onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.toneMapping=0,this.toneMappingExposure=1,this.transmissionResolutionScale=1;let T=this,E=!1,D=null,O=null,k=null,ee=null;this._outputColorSpace=xo;let A=0,te=0,j=null,M=-1,ne=null,re=new Ns,ie=new Ns,N=null,ae=new V(0),oe=0,se=t.width,ce=t.height,le=1,ue=null,de=null,fe=new Ns(0,0,se,ce),pe=new Ns(0,0,se,ce),me=!1,he=new _u,ge=!1,_e=!1,ve=new Rs,ye=new B,be=new Ns,xe={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0},Se=!1;function Ce(){return j===null?le:1}let P=n;function we(e,n){return t.getContext(e,n)}let Te,F,I,Ee,De,Oe,ke,Ae,je,Me,Ne,Pe,Fe,Ie,Le,Re,ze,Be,Ve,He,Ue,We,Ge;try{let e={alpha:!0,depth:r,stencil:i,antialias:o,premultipliedAlpha:s,preserveDrawingBuffer:c,powerPreference:l,failIfMajorPerformanceCaveat:u};if(`setAttribute`in t&&t.setAttribute(`data-engine`,`three.js r186`),t.addEventListener(`webglcontextlost`,Je,!1),t.addEventListener(`webglcontextrestored`,Ye,!1),t.addEventListener(`webglcontextcreationerror`,Xe,!1),P===null){let t=`webgl2`;if(P=we(t,e),P===null)throw we(t)?Error(`THREE.WebGLRenderer: Error creating WebGL context with your selected attributes.`):Error(`THREE.WebGLRenderer: Error creating WebGL context.`)}Ke()}catch(e){throw t.removeEventListener(`webglcontextlost`,Je,!1),t.removeEventListener(`webglcontextrestored`,Ye,!1),t.removeEventListener(`webglcontextcreationerror`,Xe,!1),Lo(`WebGLRenderer: `+e.message),e}function Ke(){Te=new sm(P),Te.init(),Ue=new jg(P,Te),F=new Ip(P,Te,e,Ue),I=new kg(P,Te),F.reversedDepthBuffer&&d&&I.buffers.depth.setReversed(!0),O=P.createFramebuffer(),k=P.createFramebuffer(),ee=P.createFramebuffer(),Ee=new um(P),De=new lg,Oe=new Ag(P,Te,I,De,F,Ue,Ee),ke=new om(T),Ae=new Dp(P),We=new Pp(P,Ae),je=new cm(P,Ae,Ee,We),Me=new fm(P,je,Ae,We,Ee),Be=new dm(P,F,Oe),Le=new Lp(De),Ne=new cg(T,ke,Te,F,We,Le),Pe=new Rg(T,De),Fe=new pg,Ie=new bg(Te),ze=new Np(T,ke,I,Me,p,s),Re=new Og(T,Me,F),Ge=new zg(P,Ee,F,I),Ve=new Fp(P,Te,Ee),He=new lm(P,Te,Ee),Ee.programs=Ne.programs,T.capabilities=F,T.extensions=Te,T.properties=De,T.renderLists=Fe,T.shadowMap=Re,T.state=I,T.info=Ee}m!==1009&&(w=new mm(m,t.width,t.height,o,r,i));let qe=new Fg(T,P);this.xr=qe,this.getContext=function(){return P},this.getContextAttributes=function(){return P.getContextAttributes()},this.forceContextLoss=function(){let e=Te.get(`WEBGL_lose_context`);e&&e.loseContext()},this.forceContextRestore=function(){let e=Te.get(`WEBGL_lose_context`);e&&e.restoreContext()},this.getPixelRatio=function(){return le},this.setPixelRatio=function(e){e!==void 0&&(le=e,this.setSize(se,ce,!1))},this.getSize=function(e){return e.set(se,ce)},this.setSize=function(e,n,r=!0){qe.isPresenting?Io(`WebGLRenderer: Can't change size while VR device is presenting.`):(se=e,ce=n,t.width=Math.floor(e*le),t.height=Math.floor(n*le),r===!0&&(t.style.width=e+`px`,t.style.height=n+`px`),w!==null&&w.setSize(t.width,t.height),this.setViewport(0,0,e,n))},this.getDrawingBufferSize=function(e){return e.set(se*le,ce*le).floor()},this.setDrawingBufferSize=function(e,n,r){se=e,ce=n,le=r,t.width=Math.floor(e*r),t.height=Math.floor(n*r),this.setViewport(0,0,e,n)},this.setEffects=function(e){if(m===1009)Lo(`WebGLRenderer: setEffects() requires outputBufferType set to HalfFloatType or FloatType.`);else{if(e){for(let t=0;t{function n(){r.forEach(function(e){let t=De.get(e).currentProgram;(t===void 0||t.isReady())&&r.delete(e)}),r.size===0?t(e):setTimeout(n,10)}Te.get(`KHR_parallel_shader_compile`)===null?setTimeout(n,10):n()})};let tt=null;function nt(e){tt&&tt(e)}function rt(){at.stop()}function it(){at.start()}let at=new Ep;at.setAnimationLoop(nt),typeof self<`u`&&at.setContext(self),this.setAnimationLoop=function(e){tt=e,qe.setAnimationLoop(e),e===null?at.stop():at.start()},qe.addEventListener(`sessionstart`,rt),qe.addEventListener(`sessionend`,it),this.render=function(e,t){if(t!==void 0&&t.isCamera!==!0){Lo(`WebGLRenderer.render: camera is not an instance of THREE.Camera.`);return}if(E===!0)return;D!==null&&D.renderStart(e,t);let n=qe.enabled===!0&&qe.isPresenting===!0,r=w!==null&&(j===null||n)&&w.begin(T,j);if(e.matrixWorldAutoUpdate===!0&&e.updateMatrixWorld(),t.parent===null&&t.matrixWorldAutoUpdate===!0&&t.updateMatrixWorld(),qe.enabled===!0&&qe.isPresenting===!0&&(w===null||w.isCompositing()===!1)&&(qe.cameraAutoUpdate===!0&&qe.updateCamera(t),t=qe.getCamera()),e.isScene===!0&&e.onBeforeRender(T,e,t,j),x=Ie.get(e,C.length),x.init(t),x.state.textureUnits=Oe.getTextureUnits(),C.push(x),ve.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),he.setFromProjectionMatrix(ve,Oo,t.reversedDepth),_e=this.localClippingEnabled,ge=Le.init(this.clippingPlanes,_e),b=Fe.get(e,S.length),b.init(),S.push(b),qe.enabled===!0&&qe.isPresenting===!0){let e=T.xr.getDepthSensingMesh();e!==null&&ot(e,t,-1/0,T.sortObjects)}ot(e,t,0,T.sortObjects),b.finish(),D!==null&&D.updateLights(x.state.lightsArray),T.sortObjects===!0&&b.sort(ue,de),Se=qe.enabled===!1||qe.isPresenting===!1||qe.hasDepthSensing()===!1,Se&&ze.addToRenderList(b,e),this.info.render.frame++,this.info.autoReset===!0&&this.info.reset(),ge===!0&&Le.beginShadows();let i=x.state.shadowsArray;if(Re.render(i,e,t),ge===!0&&Le.endShadows(),(r&&w.hasRenderPass())===!1){let n=b.opaque,r=b.transmissive;if(x.setupLights(),t.isArrayCamera){let i=t.cameras;if(r.length>0)for(let t=0,a=i.length;t0&&ct(n,r,e,t),Se&&ze.render(e),st(b,e,t)}j!==null&&te===0&&(Oe.updateMultisampleRenderTarget(j),Oe.updateRenderTargetMipmap(j)),r&&w.end(T),e.isScene===!0&&e.onAfterRender(T,e,t),We.resetDefaultState(),M=-1,ne=null,C.pop(),C.length>0?(x=C[C.length-1],Oe.setTextureUnits(x.state.textureUnits),ge===!0&&Le.setGlobalState(T.clippingPlanes,x.state.camera)):x=null,S.pop(),b=S.length>0?S[S.length-1]:null,D!==null&&D.renderEnd()};function ot(e,t,n,r){if(e.visible===!1)return;if(e.layers.test(t.layers)){if(e.isGroup)n=e.renderOrder;else if(e.isLOD)e.autoUpdate===!0&&e.update(t);else if(e.isLightProbeGrid)x.pushLightProbeGrid(e);else if(e.isLight)x.pushLight(e),e.castShadow&&x.pushShadow(e);else if(e.isSprite){if(!e.frustumCulled||e.intersectsFrustum(he)){r&&be.setFromMatrixPosition(e.matrixWorld).applyMatrix4(ve);let i=Me.update(e),a=e.material;a.visible&&b.push(e,i,a,n,be.z,null,t)}}else if((e.isMesh||e.isLine||e.isPoints)&&(!e.frustumCulled||e.intersectsFrustum(he))){let i=Me.update(e),a=e.material;if(r&&(e.boundingSphere===void 0?(i.boundingSphere===null&&i.computeBoundingSphere(),be.copy(i.boundingSphere.center)):(e.boundingSphere===null&&e.computeBoundingSphere(),be.copy(e.boundingSphere.center)),be.applyMatrix4(e.matrixWorld).applyMatrix4(ve)),Array.isArray(a)){let r=i.groups;for(let o=0,s=r.length;o0&<(i,t,n),a.length>0&<(a,t,n),o.length>0&<(o,t,n),I.buffers.depth.setTest(!0),I.buffers.depth.setMask(!0),I.buffers.color.setMask(!0),I.setPolygonOffset(!1)}function ct(e,t,n,r){if((n.isScene===!0?n.overrideMaterial:null)!==null)return;if(x.state.transmissionRenderTarget[r.id]===void 0){let e=Te.has(`EXT_color_buffer_half_float`)||Te.has(`EXT_color_buffer_float`);x.state.transmissionRenderTarget[r.id]=new Fs(1,1,{generateMipmaps:!0,type:e?pa:oa,minFilter:aa,samples:Math.max(4,F.samples),stencilBuffer:i,resolveDepthBuffer:!1,resolveStencilBuffer:!1,storeMultisampledDepthBuffer:!1,storeMultisampledStencilBuffer:!1,colorSpace:Ss.workingColorSpace})}let a=x.state.transmissionRenderTarget[r.id],o=r.viewport||re;a.setSize(o.z*T.transmissionResolutionScale,o.w*T.transmissionResolutionScale);let s=T.getRenderTarget(),c=T.getActiveCubeFace(),l=T.getActiveMipmapLevel();T.setRenderTarget(a),T.getClearColor(ae),oe=T.getClearAlpha(),oe<1&&T.setClearColor(16777215,.5),T.clear(),Se&&ze.render(n);let u=T.toneMapping;T.toneMapping=0;let d=r.viewport;if(r.viewport!==void 0&&(r.viewport=void 0),x.setupLightsView(r),ge===!0&&Le.setGlobalState(T.clippingPlanes,r),lt(e,n,r),Oe.updateMultisampleRenderTarget(a),Oe.updateRenderTargetMipmap(a),Te.has(`WEBGL_multisampled_render_to_texture`)===!1){let e=!1;for(let i=0,a=t.length;i0,r.currentProgram=d,r.uniformsList=null,d}function ft(e){if(e.uniformsList===null){let t=e.currentProgram.getUniforms();e.uniformsList=xh.seqWithValue(t.seq,e.uniforms)}return e.uniformsList}function pt(e,t){let n=De.get(e);n.outputColorSpace=t.outputColorSpace,n.batching=t.batching,n.batchingColor=t.batchingColor,n.instancing=t.instancing,n.instancingColor=t.instancingColor,n.instancingMorph=t.instancingMorph,n.skinning=t.skinning,n.morphTargets=t.morphTargets,n.morphNormals=t.morphNormals,n.morphColors=t.morphColors,n.morphTargetsCount=t.morphTargetsCount,n.numClippingPlanes=t.numClippingPlanes,n.numIntersection=t.numClipIntersection,n.vertexAlphas=t.vertexAlphas,n.vertexTangents=t.vertexTangents,n.toneMapping=t.toneMapping}function mt(e,t){if(e.length===0)return null;if(e.length===1)return e[0].texture===null?null:e[0];y.setFromMatrixPosition(t.matrixWorld);for(let t=0,n=e.length;t0),f=!!n.morphAttributes.position,p=!!n.morphAttributes.normal,m=!!n.morphAttributes.color,h=0;r.toneMapped&&(j===null||j.isXRRenderTarget===!0)&&(h=T.toneMapping);let g=n.morphAttributes.position||n.morphAttributes.normal||n.morphAttributes.color,_=g===void 0?0:g.length,v=De.get(r),y=x.state.lights;if(ge===!0&&(_e===!0||e!==ne)){let t=e===ne&&r.id===M;Le.setState(r,e,t)}let b=!1;r.version===v.__version?v.needsLights&&v.lightsStateVersion!==y.state.version?b=!0:v.outputColorSpace===s?i.isBatchedMesh&&v.batching===!1||!i.isBatchedMesh&&v.batching===!0||i.isBatchedMesh&&v.batchingColor===!0&&i._colorsTexture===null||i.isBatchedMesh&&v.batchingColor===!1&&i._colorsTexture!==null||i.isInstancedMesh&&v.instancing===!1||!i.isInstancedMesh&&v.instancing===!0||i.isSkinnedMesh&&v.skinning===!1||!i.isSkinnedMesh&&v.skinning===!0||i.isInstancedMesh&&v.instancingColor===!0&&i.instanceColor===null||i.isInstancedMesh&&v.instancingColor===!1&&i.instanceColor!==null||i.isInstancedMesh&&v.instancingMorph===!0&&i.morphTexture===null||i.isInstancedMesh&&v.instancingMorph===!1&&i.morphTexture!==null?b=!0:v.envMap===l?r.fog===!0&&v.fog!==a||v.numClippingPlanes!==void 0&&(v.numClippingPlanes!==Le.numPlanes||v.numIntersection!==Le.numIntersection)?b=!0:v.vertexAlphas===u&&v.vertexTangents===d&&v.morphTargets===f&&v.morphNormals===p&&v.morphColors===m&&v.toneMapping===h&&v.morphTargetsCount===_?!!v.lightProbeGrid!=x.state.lightProbeGridArray.length>0&&(b=!0):b=!0:b=!0:b=!0:(b=!0,v.__version=r.version);let S=v.currentProgram;b===!0&&(S=dt(r,t,i),D&&r.isNodeMaterial&&D.onUpdateProgram(r,S,v));let C=!1,w=!1,E=!1,O=S.getUniforms(),k=v.uniforms;if(I.useProgram(S.program)&&(C=!0,w=!0,E=!0),r.id!==M&&(M=r.id,w=!0),v.needsLights){let e=mt(x.state.lightProbeGridArray,i);v.lightProbeGrid!==e&&(v.lightProbeGrid=e,w=!0)}if(C||ne!==e){I.buffers.depth.getReversed()&&e.reversedDepth!==!0&&(e._reversedDepth=!0,e.updateProjectionMatrix()),O.setValue(P,`projectionMatrix`,e.projectionMatrix),O.setValue(P,`viewMatrix`,e.matrixWorldInverse);let t=O.map.cameraPosition;t!==void 0&&t.setValue(P,ye.setFromMatrixPosition(e.matrixWorld)),F.logarithmicDepthBuffer&&O.setValue(P,`logDepthBufFC`,2/(Math.log(e.far+1)/Math.LN2)),(r.isMeshPhongMaterial||r.isMeshToonMaterial||r.isMeshLambertMaterial||r.isMeshBasicMaterial||r.isMeshStandardMaterial||r.isShaderMaterial)&&O.setValue(P,`isOrthographic`,e.isOrthographicCamera===!0),ne!==e&&(ne=e,w=!0,E=!0)}if(v.needsLights&&(y.state.sunShadowMap.length>0&&O.setValue(P,`sunShadowMap`,y.state.sunShadowMap,Oe),y.state.directionalShadowMap.length>0&&O.setValue(P,`directionalShadowMap`,y.state.directionalShadowMap,Oe),y.state.spotShadowMap.length>0&&O.setValue(P,`spotShadowMap`,y.state.spotShadowMap,Oe),y.state.pointShadowMap.length>0&&O.setValue(P,`pointShadowMap`,y.state.pointShadowMap,Oe)),i.isSkinnedMesh){O.setOptional(P,i,`bindMatrix`),O.setOptional(P,i,`bindMatrixInverse`);let e=i.skeleton;e&&(e.boneTexture===null&&e.computeBoneTexture(),O.setValue(P,`boneTexture`,e.boneTexture,Oe))}i.isBatchedMesh&&(O.setOptional(P,i,`batchingTexture`),O.setValue(P,`batchingTexture`,i._matricesTexture,Oe),O.setOptional(P,i,`batchingIdTexture`),O.setValue(P,`batchingIdTexture`,i._indirectTexture,Oe),O.setOptional(P,i,`batchingColorTexture`),i._colorsTexture!==null&&O.setValue(P,`batchingColorTexture`,i._colorsTexture,Oe));let ee=n.morphAttributes;if((ee.position!==void 0||ee.normal!==void 0||ee.color!==void 0)&&Be.update(i,n,S),(w||v.receiveShadow!==i.receiveShadow)&&(v.receiveShadow=i.receiveShadow,O.setValue(P,`receiveShadow`,i.receiveShadow)),(r.isMeshStandardMaterial||r.isMeshLambertMaterial||r.isMeshPhongMaterial)&&r.envMap===null&&t.environment!==null&&(k.envMapIntensity.value=t.environmentIntensity),k.dfgLUT!==void 0&&(k.dfgLUT.value=Hg()),w){if(O.setValue(P,`toneMappingExposure`,T.toneMappingExposure),v.needsLights&>(k,E),a&&r.fog===!0&&Pe.refreshFogUniforms(k,a),Pe.refreshMaterialUniforms(k,r,le,ce,x.state.transmissionRenderTarget[e.id]),v.needsLights&&v.lightProbeGrid){let e=v.lightProbeGrid;k.probesSH.value=e.texture,k.probesMin.value.copy(e.boundingBox.min),k.probesMax.value.copy(e.boundingBox.max),k.probesResolution.value.copy(e.resolution)}xh.upload(P,ft(v),k,Oe)}if(r.isShaderMaterial&&r.uniformsNeedUpdate===!0&&(xh.upload(P,ft(v),k,Oe),r.uniformsNeedUpdate=!1),r.isSpriteMaterial&&O.setValue(P,`center`,i.center),O.setValue(P,`modelViewMatrix`,i.modelViewMatrix),O.setValue(P,`normalMatrix`,i.normalMatrix),O.setValue(P,`modelMatrix`,i.matrixWorld),r.uniformsGroups!==void 0){let e=r.uniformsGroups;for(let t=0,n=e.length;t0&&Oe.useMultisampledRTT(e)===!1?De.get(e).__webglMultisampledFramebuffer:Array.isArray(c)?c[n]:c,re.copy(e.viewport),ie.copy(e.scissor),N=e.scissorTest}else re.copy(fe).multiplyScalar(le).floor(),ie.copy(pe).multiplyScalar(le).floor(),N=me;if(n!==0&&(r=O),I.bindFramebuffer(P.FRAMEBUFFER,r)&&I.drawBuffers(e,r),I.viewport(re),I.scissor(ie),I.setScissorTest(N),i){let r=De.get(e.texture);P.framebufferTexture2D(P.FRAMEBUFFER,P.COLOR_ATTACHMENT0,P.TEXTURE_CUBE_MAP_POSITIVE_X+t,r.__webglTexture,n)}else if(a){let r=t;for(let t=0;t1&&P.readBuffer(P.COLOR_ATTACHMENT0+s);let u=vt(o);if(u.__formatReadable===!1){Lo(`WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.`);return}if(u.__typeReadable===!1){Lo(`WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.`);return}t>=0&&t<=e.width-r&&n>=0&&n<=e.height-i&&P.readPixels(t,n,r,i,Ue.convert(c),Ue.convert(l),a)}finally{let e=j===null?null:De.get(j).__webglFramebuffer;I.bindFramebuffer(P.FRAMEBUFFER,e)}}},this.readRenderTargetPixelsAsync=async function(e,t,n,r,i,a,o,s=0){if(!(e&&e.isWebGLRenderTarget))throw Error(`THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.`);let c=De.get(e).__webglFramebuffer;if(e.isWebGLCubeRenderTarget&&o!==void 0&&(c=c[o]),c){if(t>=0&&t<=e.width-r&&n>=0&&n<=e.height-i){I.bindFramebuffer(P.FRAMEBUFFER,c);let o=e.textures[s],l=o.format,u=o.type;e.textures.length>1&&P.readBuffer(P.COLOR_ATTACHMENT0+s);let d=vt(o);if(d.__formatReadable===!1)throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.`);if(d.__typeReadable===!1)throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.`);let f=P.createBuffer();P.bindBuffer(P.PIXEL_PACK_BUFFER,f),P.bufferData(P.PIXEL_PACK_BUFFER,a.byteLength,P.STREAM_READ),P.readPixels(t,n,r,i,Ue.convert(l),Ue.convert(u),0),P.bindBuffer(P.PIXEL_PACK_BUFFER,null);let p=j===null?null:De.get(j).__webglFramebuffer;I.bindFramebuffer(P.FRAMEBUFFER,p);let m=P.fenceSync(P.SYNC_GPU_COMMANDS_COMPLETE,0);return P.flush(),await zo(P,m,4),P.bindBuffer(P.PIXEL_PACK_BUFFER,f),P.getBufferSubData(P.PIXEL_PACK_BUFFER,0,a),P.bindBuffer(P.PIXEL_PACK_BUFFER,null),P.deleteBuffer(f),P.deleteSync(m),a}throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: requested read bounds are out of range.`)}},this.copyFramebufferToTexture=function(e,t=null,n=0){let r=2**-n,i=Math.floor(e.image.width*r),a=Math.floor(e.image.height*r),o=t===null?0:t.x,s=t===null?0:t.y;Oe.setTexture2D(e,0),P.copyTexSubImage2D(P.TEXTURE_2D,n,0,0,o,s,i,a),I.unbindTexture()},this.copyTextureToTexture=function(e,t,n=null,r=null,i=0,a=0){let o,s,c,l,u,d,f,p,m,h=e.isCompressedTexture?e.mipmaps[a]:e.image;if(n!==null)o=n.max.x-n.min.x,s=n.max.y-n.min.y,c=n.isBox3?n.max.z-n.min.z:1,l=n.min.x,u=n.min.y,d=n.isBox3?n.min.z:0;else{let t=2**-i;o=Math.floor(h.width*t),s=Math.floor(h.height*t),c=e.isDataArrayTexture?h.depth:e.isData3DTexture?Math.floor(h.depth*t):1,l=0,u=0,d=0}r===null?(f=0,p=0,m=0):(f=r.x,p=r.y,m=r.z);let g=Ue.convert(t.format),_=Ue.convert(t.type),v;t.isData3DTexture?(Oe.setTexture3D(t,0),v=P.TEXTURE_3D):t.isDataArrayTexture||t.isCompressedArrayTexture?(Oe.setTexture2DArray(t,0),v=P.TEXTURE_2D_ARRAY):(Oe.setTexture2D(t,0),v=P.TEXTURE_2D),I.activeTexture(P.TEXTURE0),I.pixelStorei(P.UNPACK_FLIP_Y_WEBGL,t.flipY),I.pixelStorei(P.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.premultiplyAlpha),I.pixelStorei(P.UNPACK_ALIGNMENT,t.unpackAlignment);let y=I.getParameter(P.UNPACK_ROW_LENGTH),b=I.getParameter(P.UNPACK_IMAGE_HEIGHT),x=I.getParameter(P.UNPACK_SKIP_PIXELS),S=I.getParameter(P.UNPACK_SKIP_ROWS),C=I.getParameter(P.UNPACK_SKIP_IMAGES);I.pixelStorei(P.UNPACK_ROW_LENGTH,h.width),I.pixelStorei(P.UNPACK_IMAGE_HEIGHT,h.height),I.pixelStorei(P.UNPACK_SKIP_PIXELS,l),I.pixelStorei(P.UNPACK_SKIP_ROWS,u),I.pixelStorei(P.UNPACK_SKIP_IMAGES,d);let w=e.isDataArrayTexture||e.isData3DTexture,T=t.isDataArrayTexture||t.isData3DTexture;if(e.isDepthTexture){let n=De.get(e),r=De.get(t),h=De.get(n.__renderTarget),g=De.get(r.__renderTarget);I.bindFramebuffer(P.READ_FRAMEBUFFER,h.__webglFramebuffer),I.bindFramebuffer(P.DRAW_FRAMEBUFFER,g.__webglFramebuffer);for(let n=0;n{let r=new e.array.constructor(e.count*e.itemSize);l[n][t]=new e.constructor(r,e.itemSize,e.normalized)}))}let p=t*.5,m=10**Math.log10(1/t),h=p*m;for(let t=0;tNumber.isInteger(e)?e.toFixed(1):String(e);function Qg(e,t,n,r){let i=Math.atan2(t-Gg.y,n-Gg.z);return r*e-Gg.x-.45*Math.sin(i*5+r)-.25*Math.sin(i*11+1.3)}function $g(e,t,n,r){let i=Math.atan2(t-Kg.y,n-Kg.z),a=r*e-Kg.x+Kg.lean*(t-Kg.y)-.4*Math.sin(i*4+r)-.25*Math.sin(i*9+2.1);return Math.min(a,Math.max(t-Kg.armpit,a-3))}function e_(e,t,n){let r=Math.atan2(n-qg.z,e);return t-qg.y-.7*Math.sin(r*5)-.4*Math.sin(r*12+.9)}function t_(e,t,n){let r=t-Jg.y,i=Math.atan2(r,e);return Jg.radius+.5*Math.sin(i*5+.4)+.3*Math.sin(i*11)-Math.sqrt(e*e+r*r)}function n_(e,t,n){let r=Yg.top+.25*Math.sin(e*2.3)-t,i=t-Yg.under,a=n-Yg.back+Yg.curve*e*e;return Math.min(r,Math.min(i,a))}var r_=` +`,n_={x:31,y:102.8,z:-5.2},r_={x:15,y:103.5,z:-5.5,lean:.25,armpit:97.5},i_={y:81.5,z:-1},a_={y:99.5,radius:4.6},o_={top:114.9,under:111.2,back:.8,curve:.12},s_={y:125.2,z:-3},c_=e=>Number.isInteger(e)?e.toFixed(1):String(e);function l_(e,t,n,r){let i=Math.atan2(t-n_.y,n-n_.z);return r*e-n_.x-.45*Math.sin(i*5+r)-.25*Math.sin(i*11+1.3)}function u_(e,t,n,r){let i=Math.atan2(t-r_.y,n-r_.z),a=r*e-r_.x+r_.lean*(t-r_.y)-.4*Math.sin(i*4+r)-.25*Math.sin(i*9+2.1);return Math.min(a,Math.max(t-r_.armpit,a-3))}function d_(e,t,n){let r=Math.atan2(n-i_.z,e);return t-i_.y-.7*Math.sin(r*5)-.4*Math.sin(r*12+.9)}function f_(e,t,n){let r=t-a_.y,i=Math.atan2(r,e);return a_.radius+.5*Math.sin(i*5+.4)+.3*Math.sin(i*11)-Math.sqrt(e*e+r*r)}function p_(e,t,n){let r=o_.top+.25*Math.sin(e*2.3)-t,i=t-o_.under,a=n-o_.back+o_.curve*e*e;return Math.min(r,Math.min(i,a))}var m_=` float injuryElbowCut(vec3 p, float side) { - float around = atan(p.y - ${Zg(Gg.y)}, p.z - ${Zg(Gg.z)}); - return side * p.x - ${Zg(Gg.x)} - 0.45 * sin(around * 5.0 + side) - 0.25 * sin(around * 11.0 + 1.3); + float around = atan(p.y - ${c_(n_.y)}, p.z - ${c_(n_.z)}); + return side * p.x - ${c_(n_.x)} - 0.45 * sin(around * 5.0 + side) - 0.25 * sin(around * 11.0 + 1.3); } float injuryShoulderCut(vec3 p, float side) { - float around = atan(p.y - ${Zg(Kg.y)}, p.z - ${Zg(Kg.z)}); - float across = side * p.x - ${Zg(Kg.x)} + ${Zg(Kg.lean)} * (p.y - ${Zg(Kg.y)}) - 0.4 * sin(around * 4.0 + side) - 0.25 * sin(around * 9.0 + 2.1); - return min(across, max(p.y - ${Zg(Kg.armpit)}, across - 3.0)); + float around = atan(p.y - ${c_(r_.y)}, p.z - ${c_(r_.z)}); + float across = side * p.x - ${c_(r_.x)} + ${c_(r_.lean)} * (p.y - ${c_(r_.y)}) - 0.4 * sin(around * 4.0 + side) - 0.25 * sin(around * 9.0 + 2.1); + return min(across, max(p.y - ${c_(r_.armpit)}, across - 3.0)); } float injuryWaistCut(vec3 p) { - float around = atan(p.z - ${Zg(qg.z)}, p.x); - return p.y - ${Zg(qg.y)} - 0.7 * sin(around * 5.0) - 0.4 * sin(around * 12.0 + 0.9); + float around = atan(p.z - ${c_(i_.z)}, p.x); + return p.y - ${c_(i_.y)} - 0.7 * sin(around * 5.0) - 0.4 * sin(around * 12.0 + 0.9); } float injuryChestHoleCut(vec3 p) { - float dy = p.y - ${Zg(Jg.y)}; + float dy = p.y - ${c_(a_.y)}; float around = atan(dy, p.x); - return ${Zg(Jg.radius)} + 0.5 * sin(around * 5.0 + 0.4) + 0.3 * sin(around * 11.0) - sqrt(p.x * p.x + dy * dy); + return ${c_(a_.radius)} + 0.5 * sin(around * 5.0 + 0.4) + 0.3 * sin(around * 11.0) - sqrt(p.x * p.x + dy * dy); } -`,i_=` +`,h_=` float injuryJawCut(vec3 p) { - float top = ${Zg(Yg.top)} + 0.25 * sin(p.x * 2.3) - p.y; - float under = p.y - ${Zg(Yg.under)}; - float front = p.z - ${Zg(Yg.back)} + ${Zg(Yg.curve)} * p.x * p.x; + float top = ${c_(o_.top)} + 0.25 * sin(p.x * 2.3) - p.y; + float under = p.y - ${c_(o_.under)}; + float front = p.z - ${c_(o_.back)} + ${c_(o_.curve)} * p.x * p.x; return min(top, min(under, front)); } float injurySkullCut(vec3 p) { - float around = atan(p.z - ${Zg(Xg.z)}, p.x); - return p.y - ${Zg(Xg.y)} - 0.55 * sin(around * 7.0) - 0.3 * sin(around * 15.0 + 1.0); + float around = atan(p.z - ${c_(s_.z)}, p.x); + return p.y - ${c_(s_.y)} - 0.55 * sin(around * 7.0) - 0.3 * sin(around * 15.0 + 1.0); } -`,a_=[`nose`,`leftEar`,`rightEar`,`leftFace`,`rightFace`],o_=[`leftShoulder`,`rightShoulder`,`leftElbow`,`rightElbow`,`leftRibs`,`rightRibs`,`liver`,`belly`,`leftKnee`,`rightKnee`],s_=[`jaw`,`skull`],c_=[`leftArm`,`rightArm`,`waist`,`chestHole`],l_=o_.length,u_=c_.length,d_=[6.3,117.6,-3],f_=[[11.3,97.9,2],[10.6,95.6,2.3],[10.1,93.3,1.9]],p_=[31.2,105.9,-3.4],m_=[12.3,34.4,-5],h_=[0,86,6.5],g_=e=>` -uniform float uInjuryGone[${u_}]; -${e?r_:i_} +`,g_=[`nose`,`leftEar`,`rightEar`,`leftFace`,`rightFace`],__=[`leftShoulder`,`rightShoulder`,`leftElbow`,`rightElbow`,`leftRibs`,`rightRibs`,`liver`,`belly`,`leftKnee`,`rightKnee`],v_=[`jaw`,`skull`],y_=[`leftArm`,`rightArm`,`waist`,`chestHole`],b_=__.length,x_=y_.length,S_=[6.3,117.6,-3],C_=[[11.3,97.9,2],[10.6,95.6,2.3],[10.1,93.3,1.9]],w_=[31.2,105.9,-3.4],T_=[12.3,34.4,-5],E_=[0,86,6.5],D_=e=>` +uniform float uInjuryGone[${x_}]; +${e?m_:h_} float injuryGone(vec3 p) { float gone = -1000.0; ${e?` @@ -4281,14 +4281,14 @@ ${e?` if (uInjuryGone[1] > 0.5) gone = max(gone, injurySkullCut(p));`} return gone; } -`,__=` +`,O_=` float injuryBellyGape(vec3 p) { float along = p.x / 9.4; float reach = 2.1 * pow(max(0.0, 1.0 - along * along), 0.6) * (1.0 + 0.18 * sin(p.x * 2.9) + 0.1 * sin(p.x * 6.7 + 1.0)); - float line = ${Zg(h_[1])} - 0.014 * p.x * p.x + 0.3 * sin(p.x * 1.1 + 0.5); + float line = ${c_(E_[1])} - 0.014 * p.x * p.x + 0.3 * sin(p.x * 1.1 + 0.5); return p.z < 0.0 || reach <= 0.0 ? 9.0 : abs(p.y - line) / reach; } -`,v_=[0,119,-3.5,0],y_=[0,0,-2,1],b_=[[2.65,120.65,3.6],[-2.75,120.75,3.4]],x_=`HANDS_INJURY_WOUNDS`,S_=`HANDS_INJURY_OPEN`,C_=e=>` +`,k_=[0,119,-3.5,0],A_=[0,0,-2,1],j_=[[2.65,120.65,3.6],[-2.75,120.75,3.4]],M_=`HANDS_INJURY_WOUNDS`,N_=`HANDS_INJURY_OPEN`,P_=e=>` uniform vec4 uInjurySite[12]; uniform float uInjurySwell[12]; uniform vec4 uInjuryCore; @@ -4301,13 +4301,13 @@ uniform vec3 uInjuryImpactPush; uniform vec4 uInjuryNose; uniform mat3 uInjuryBindToPart; varying vec3 vInjuryPos; -#ifdef ${x_} -uniform float uInjuryWound[${l_}]; +#ifdef ${M_} +uniform float uInjuryWound[${b_}]; uniform float uInjuryExplicit; -${e?__:``} +${e?O_:``} #endif -`,w_=` -#ifdef ${x_} +`,F_=` +#ifdef ${M_} { float crushed = uInjuryWound[0] * uInjuryExplicit; if (crushed > 0.0) { @@ -4321,13 +4321,13 @@ ${e?__:``} float torn = (s == 0 ? uInjuryWound[1] : uInjuryWound[2]) * uInjuryExplicit; if (torn <= 0.0) continue; float side = s == 0 ? 1.0 : -1.0; - float w = 1.0 - smoothstep(0.8, 2.8, distance(injuryBind, vec3(side * ${Zg(d_[0])}, ${Zg(d_[1])}, ${Zg(d_[2])}))); + float w = 1.0 - smoothstep(0.8, 2.8, distance(injuryBind, vec3(side * ${c_(S_[0])}, ${c_(S_[1])}, ${c_(S_[2])}))); injuryMoved.x -= side * torn * w * max(0.0, side * injuryBind.x - 5.3) * 0.9; } } #endif -`,T_=` -#ifdef ${x_} +`,I_=` +#ifdef ${M_} { float side = injuryBind.x < 0.0 ? -1.0 : 1.0; float slipped = (side > 0.0 ? uInjuryWound[0] : uInjuryWound[1]) * uInjuryExplicit; @@ -4339,7 +4339,7 @@ ${e?__:``} } float caved = (side > 0.0 ? uInjuryWound[4] : uInjuryWound[5]) * uInjuryExplicit; if (caved > 0.0) { - float w = 1.0 - smoothstep(0.0, 8.0, distance(injuryBind, vec3(side * ${Zg(f_[1][0])}, ${Zg(f_[1][1])}, ${Zg(f_[1][2])}))); + float w = 1.0 - smoothstep(0.0, 8.0, distance(injuryBind, vec3(side * ${c_(C_[1][0])}, ${c_(C_[1][1])}, ${c_(C_[1][2])}))); injuryMoved -= normalize(injuryBind - vec3(0.0, injuryBind.y, -2.0) + vec3(0.0, 0.0, 0.001)) * caved * 2.4 * w * w; } float gutted = uInjuryWound[7] * uInjuryExplicit; @@ -4352,7 +4352,7 @@ ${e?__:``} } } #endif -`,E_=(e,t)=>` +`,L_=(e,t)=>` { vec3 injuryBind = ${e?`bindPosition`:`transformed`}; vInjuryPos = injuryBind; @@ -4387,10 +4387,10 @@ ${e?__:``} injuryMoved.x += uInjuryJaw * 1.7 * jawMask; injuryMoved.y -= uInjuryJaw * 0.9 * jawMask; injuryMoved.z -= uInjuryJaw * 0.4 * jawMask; - ${t?T_:w_} + ${t?I_:F_} ${e?`transformed += uInjuryBindToPart * (injuryMoved - injuryBind);`:`transformed = injuryMoved;`} } -`,D_=e=>` +`,R_=e=>` uniform vec4 uInjurySite[12]; uniform vec4 uInjuryCut[12]; uniform float uInjuryBruise[12]; @@ -4405,11 +4405,11 @@ uniform float uInjuryXrayShown; uniform float uInjuryRun; varying vec3 vInjuryPos; float injuryWet = 0.0; -${Wg} +${t_} float injuryHash(float n) { return fract(sin(n) * 43758.5453123); } -#ifdef ${x_} -uniform float uInjuryWound[${l_}]; +#ifdef ${M_} +uniform float uInjuryWound[${b_}]; uniform float uInjuryExplicit; uniform float uInjuryPallor; uniform vec4 uInjuryMark[6]; @@ -4430,13 +4430,13 @@ vec3 injuryBruised(vec3 skin, float depth) { vec3 tone = mix(vec3(0.4, 0.08, 0.2), vec3(0.05, 0.012, 0.05), clamp(depth, 0.0, 1.0)); return mix(skin * tone / vec3(0.6, 0.32, 0.19), tone, 0.35); } -${e?__:``} +${e?O_:``} #endif -#ifdef ${S_} -${g_(e)} +#ifdef ${N_} +${D_(e)} #endif -`,O_=e=>` -#ifdef ${x_} +`,z_=e=>` +#ifdef ${M_} if (uInjuryPallor > 0.0) { float luma = dot(diffuseColor.rgb, vec3(0.3, 0.55, 0.15)); vec3 drained = (vec3(luma) * 1.3 + 0.04) * vec3(0.97, 1.0, 1.05); @@ -4452,8 +4452,8 @@ ${e?` diffuseColor.rgb = mix(diffuseColor.rgb, vec3(0.3, 0.33, 0.47) * (0.5 + luma), lips * uInjuryPallor * 0.85);`} } #endif -`,k_=` -#ifdef ${x_} +`,B_=` +#ifdef ${M_} { float graphic = uInjuryExplicit; float mottle = 0.7 + 0.3 * injuryNoise(injuryPos.xy * 2.1 + injuryPos.z); @@ -4481,7 +4481,7 @@ ${e?` float ear = s == 0 ? uInjuryWound[1] : uInjuryWound[2]; if (ear > 0.0 && sx > 3.0) { // Where the ear was: a ragged raw wound round the dark hole of the ear, running down the neck. - vec3 q = injuryPos - vec3(side * ${Zg(d_[0])}, ${Zg(d_[1])}, ${Zg(d_[2])}); + vec3 q = injuryPos - vec3(side * ${c_(S_[0])}, ${c_(S_[1])}, ${c_(S_[2])}); float around = atan(q.y, q.z); float reach = length(vec2(q.z / 1.4, q.y / 2.1)) / (1.0 + 0.16 * sin(around * 5.0 + side) + 0.08 * sin(around * 11.0)); float bruise = (1.0 - smoothstep(0.8, 1.9, reach)) * mottle; @@ -4574,8 +4574,8 @@ ${e?` } } #endif -`,A_=` -#ifdef ${x_} +`,V_=` +#ifdef ${M_} { float graphic = uInjuryExplicit; float side = injuryPos.x < 0.0 ? -1.0 : 1.0; @@ -4593,12 +4593,12 @@ ${e?` float elbow = side > 0.0 ? uInjuryWound[2] : uInjuryWound[3]; if (elbow > 0.0 && sx > 22.0) { // Black round the joint, the hole the bone came out of, and blood down the forearm to the glove. - vec3 q = vec3(sx, injuryPos.y, injuryPos.z) - vec3(${Zg(Gg.x)}, ${Zg(Gg.y)}, ${Zg(Gg.z)}); + vec3 q = vec3(sx, injuryPos.y, injuryPos.z) - vec3(${c_(n_.x)}, ${c_(n_.y)}, ${c_(n_.z)}); float bruise = (1.0 - smoothstep(2.0, 7.0, abs(q.x))) * mottle; diffuseColor.rgb = mix(diffuseColor.rgb, injuryBruised(diffuseColor.rgb, 0.4 + 0.5 * (1.0 - smoothstep(0.0, 3.0, abs(q.x)))), bruise * elbow * 0.9); float around = atan(q.y, q.z); float sleeve = smoothstep(-1.5, 1.0, q.x) * (0.5 + 0.5 * sin(around * 7.0 + 1.5 * sin(q.x * 0.9))) * (1.0 - 0.5 * smoothstep(7.0, 13.0, q.x)); - vec3 exit = vec3(sx, injuryPos.y, injuryPos.z) - vec3(${Zg(p_[0])}, ${Zg(p_[1])}, ${Zg(p_[2])}); + vec3 exit = vec3(sx, injuryPos.y, injuryPos.z) - vec3(${c_(w_[0])}, ${c_(w_[1])}, ${c_(w_[2])}); float hole = (1.0 - smoothstep(0.75, 1.1, length(exit / vec3(2.1, 1.3, 1.3)) * (1.0 + 0.15 * sin(atan(exit.z, exit.x) * 6.0)))) * graphic; float blood = max(sleeve * mix(0.3, 0.9, graphic), hole) * elbow; diffuseColor.rgb = mix(diffuseColor.rgb, mix(running, mix(raw, gore, smoothstep(0.3, 0.8, hole)), hole), blood); @@ -4607,13 +4607,13 @@ ${e?` float ribs = side > 0.0 ? uInjuryWound[4] : uInjuryWound[5]; if (ribs > 0.0 && injuryPos.y > 80.0 && sx < 16.0) { // Black with bruising, banded where the ribs lie under it, and a raw hole where each broken end comes through. - vec3 q = vec3(sx, injuryPos.y, injuryPos.z) - vec3(${Zg(f_[1][0])}, ${Zg(f_[1][1])}, ${Zg(f_[1][2])}); + vec3 q = vec3(sx, injuryPos.y, injuryPos.z) - vec3(${c_(C_[1][0])}, ${c_(C_[1][1])}, ${c_(C_[1][2])}); float spread = length(vec3(q.x, q.y * 0.85, q.z * 0.6)); float bands = 0.72 + 0.28 * sin((injuryPos.y + 0.3 * sx - 0.25 * injuryPos.z) * 2.8); float bruise = (1.0 - smoothstep(2.5, 9.5, spread)) * mottle * bands; diffuseColor.rgb = mix(diffuseColor.rgb, injuryBruised(diffuseColor.rgb, 0.7 + 0.3 * (1.0 - smoothstep(0.0, 5.0, spread))), bruise * ribs * 0.95); - for (int k = 0; k < ${f_.length}; k++) { - vec3 end = k == 0 ? vec3(${f_[0].map(Zg).join(`, `)}) : k == 1 ? vec3(${f_[1].map(Zg).join(`, `)}) : vec3(${f_[2].map(Zg).join(`, `)}); + for (int k = 0; k < ${C_.length}; k++) { + vec3 end = k == 0 ? vec3(${C_[0].map(c_).join(`, `)}) : k == 1 ? vec3(${C_[1].map(c_).join(`, `)}) : vec3(${C_[2].map(c_).join(`, `)}); vec3 at = vec3(sx, injuryPos.y, injuryPos.z) - end; float hole = (1.0 - smoothstep(0.6, 1.0, length(at / vec3(1.7, 1.0, 1.7)))) * graphic; float drop = -at.y; @@ -4638,7 +4638,7 @@ ${e?` if (gutted > 0.0 && injuryPos.y > 74.0 && injuryPos.y < 92.0) { // Torn open from side to side: a dark wet cavity between lips of raw muscle and yellow fat, and everything below it red. float gape = injuryBellyGape(injuryPos) * (1.0 + 0.45 * (injuryNoise(injuryPos.xy * 2.4 + 9.0) - 0.5)); - float line = ${Zg(h_[1])} - 0.014 * injuryPos.x * injuryPos.x; + float line = ${c_(E_[1])} - 0.014 * injuryPos.x * injuryPos.x; float below = line - injuryPos.y; float sheet = smoothstep(-0.5, 1.5, below) * (1.0 - smoothstep(8.6, 9.9, abs(injuryPos.x) + 0.6 * sin(injuryPos.y * 1.7))) * step(0.0, injuryPos.z) * (0.82 + 0.18 * sin(injuryPos.x * 4.3 + sin(injuryPos.y * 0.9))); float bruise = (1.0 - smoothstep(1.2, 3.2, gape)) * mottle; @@ -4652,9 +4652,9 @@ ${e?` injuryWet = max(injuryWet, max(open, sheet * gutted * graphic)); } float knee = side > 0.0 ? uInjuryWound[8] : uInjuryWound[9]; - if (knee > 0.0 && injuryPos.y < ${Zg(60)}) { + if (knee > 0.0 && injuryPos.y < ${c_(60)}) { // Swollen black below the trunks, a raw hole in the side of the knee where the bone shows, and blood down the shin to the boot. - vec3 q = vec3(sx, injuryPos.y, injuryPos.z) - vec3(${m_.map(Zg).join(`, `)}); + vec3 q = vec3(sx, injuryPos.y, injuryPos.z) - vec3(${T_.map(c_).join(`, `)}); float bruise = (1.0 - smoothstep(27.0, 34.0, 62.0 - injuryPos.y)) * smoothstep(25.0, 31.0, injuryPos.y) * mottle; diffuseColor.rgb = mix(diffuseColor.rgb, injuryBruised(diffuseColor.rgb, 0.4 + 0.5 * smoothstep(30.0, 36.0, injuryPos.y)), bruise * knee * 0.9); float hole = (1.0 - smoothstep(0.7, 1.05, length(q / vec3(1.8, 2.0, 1.8)) * (1.0 + 0.15 * sin(atan(q.y, q.z) * 5.0)))) * graphic; @@ -4667,7 +4667,7 @@ ${e?` } } #endif -`,j_=` +`,H_=` if (uInjuryGone[1] > 0.5) { // A skull broken open: the bone of its rim under the torn scalp, and cracks running down from it. float rim = -injurySkullCut(injuryPos); @@ -4684,7 +4684,7 @@ ${e?` diffuseColor.rgb = mix(diffuseColor.rgb, vec3(0.28, 0.008, 0.012), sheet * 0.93); injuryWet = max(injuryWet, sheet); } -`,M_=` +`,U_=` { // A stump runs with blood back from its cut, and a hole through the chest down the front and the back. float side = injuryPos.x < 0.0 ? -1.0 : 1.0; @@ -4694,18 +4694,18 @@ ${e?` if (uInjuryGone[2] > 0.5) soaked = max(soaked, (1.0 - smoothstep(0.5, 3.5, -injuryWaistCut(injuryPos))) * 0.9); if (uInjuryGone[3] > 0.5) { float hole = -injuryChestHoleCut(injuryPos); - float below = ${Zg(Jg.y)} - injuryPos.y; + float below = ${c_(a_.y)} - injuryPos.y; float sheet = smoothstep(0.0, 3.0, below) * (1.0 - smoothstep(3.5, 6.5, abs(injuryPos.x) - below * 0.08)) * (0.65 + 0.35 * sin(injuryPos.x * 4.1 + sin(injuryPos.y * 0.8))) * (1.0 - 0.5 * smoothstep(8.0, 20.0, below)); soaked = max(soaked, max(sheet * step(-30.0, -abs(injuryPos.x)), (1.0 - smoothstep(0.5, 3.0, hole)) * 0.85)); } diffuseColor.rgb = mix(diffuseColor.rgb, vec3(0.28, 0.008, 0.012), soaked * 0.93); injuryWet = max(injuryWet, soaked); } -`,N_=e=>` +`,W_=e=>` { vec3 injuryPos = vInjuryPos; -${O_(e)} -#ifdef ${S_} +${z_(e)} +#ifdef ${N_} { float below = injuryCutLine(injuryPos) - injuryPos.y; if (below < 0.0) discard; @@ -4715,7 +4715,7 @@ ${O_(e)} diffuseColor.rgb = mix(diffuseColor.rgb, vec3(0.2, 0.008, 0.012), torn * 0.94); injuryWet = max(injuryWet, torn); } -${e?M_:j_} +${e?U_:H_} #endif vec3 hematomaFresh = vec3(0.42, 0.09, 0.11); vec3 hematomaDeep = vec3(0.2, 0.04, 0.07); @@ -4775,7 +4775,7 @@ ${e?M_:j_} diffuseColor.rgb = mix(diffuseColor.rgb, mix(puffed, vec3(0.03, 0.006, 0.01), crease * 0.92), closed); injuryWet = max(injuryWet, closed * 0.35 * (1.0 - crease)); } -${e?A_:k_} +${e?V_:B_} // An empty socket: a raw red rim round a dark hollow where the eye was. for (int e = 0; e < 2; e++) { float gone = e == 0 ? uInjuryEyeOut.x : uInjuryEyeOut.y; @@ -4829,7 +4829,7 @@ ${e?A_:k_} } injuryWet = max(injuryWet, w); } -#ifdef ${x_} +#ifdef ${M_} // Where punches landed: a red welt the shape of the glove, a bruise that darkens under it, and, hit again and again, a split that runs. for (int m = 0; m < 6; m++) { vec4 mark = uInjuryMark[m]; @@ -4878,7 +4878,7 @@ ${e?A_:k_} injuryWet = max(injuryWet, spat * 0.8); } #endif -#ifdef ${S_} +#ifdef ${N_} // Where a cut or a burst opens the head, its inside shows as raw flesh rather than nothing. if (!gl_FrontFacing) { diffuseColor.rgb = vec3(0.2, 0.012, 0.022); @@ -4893,14 +4893,14 @@ ${e?A_:k_} injuryWet = max(injuryWet, seen * 0.6); } } -`,P_=` +`,G_=` roughnessFactor = mix(roughnessFactor, 0.18, injuryWet); -`,F_=2.4,I_=.85,L_=.02,R_=1.6,z_=class{material;sites;uniforms={uInjurySite:{value:[]},uInjuryCut:{value:[]},uInjurySwell:{value:new Float32Array(12)},uInjuryBruise:{value:new Float32Array(12)},uInjuryBlood:{value:new Float32Array(12)},uInjuryJaw:{value:0},uInjuryJawLevel:{value:114.5},uInjuryImpact:{value:new Ss(0,-1e3,0,1)},uInjuryImpactPush:{value:new B},uInjuryNose:{value:new Ss(0,-1e3,0,0)},uInjuryWetness:{value:1},uInjuryRaw:{value:1},uInjurySever:{value:Ug},uInjurySeverShape:{value:new z(Bg,1)},uInjuryCore:{value:new Ss(...v_)},uInjuryWash:{value:0},uInjuryLid:{value:[new Ss(0,-1e3,0,0),new Ss(0,-1e3,0,0)]},uInjuryEyeOut:{value:new z},uInjuryBindToPart:{value:new os},uInjuryWound:{value:new Float32Array(l_)},uInjuryGone:{value:new Float32Array(u_)},uInjuryExplicit:{value:1},uInjuryPallor:{value:0},uInjuryXray:{value:new Ss(0,0,0,0)},uInjuryXrayShown:{value:0},uInjuryRun:{value:1},uInjuryMark:{value:Array.from({length:6},()=>new Ss(0,0,0,0))},uInjurySpatter:{value:0}};index=new Map;wounds;cuts;body;shadow=null;shadowSideSet=!1;constructor(e,t,n={core:v_}){if(this.material=e,this.sites=t,t.length!==12)throw Error(`injury shading requires 12 sites`);let r=n.wash===!0;this.body=r,this.wounds=r?o_:a_,this.cuts=r?c_:s_,this.uniforms.uInjuryCore.value.set(...n.core),this.uniforms.uInjuryWash.value=+(n.wash===!0);for(let[e,t]of(n.lids??[]).slice(0,2).entries())this.uniforms.uInjuryLid.value[e].set(t[0],t[1],t[2],0);for(let[e,n]of t.entries())this.index.set(n.name,e),this.uniforms.uInjurySite.value.push(new Ss(n.position[0],n.position[1],n.position[2],n.radius)),this.uniforms.uInjuryCut.value.push(new Ss(n.cutHalfLength,0,0,0));if(e===null)return;let i=this.uniforms,a=n.baked===!0;e.onBeforeCompile=e=>{Object.assign(e.uniforms,i),e.vertexShader=e.vertexShader.replace(`#include `,`#include \n${C_(r)}`).replace(`#include `,`#include \n${E_(a,r)}`),e.fragmentShader=e.fragmentShader.replace(`#include `,`#include \n${D_(r)}`).replace(`#include `,`#include \n${N_(r)}`).replace(`#include `,`#include \n${P_}`)},e.customProgramCacheKey=()=>`hands-injury-12${r?`-body`:``}${a?`-baked`:``}`,e.needsUpdate=!0}slot(e){let t=this.index.get(e);if(t===void 0)throw Error(`unknown injury site ${e}`);return t}set(e,t){let n=this.slot(e);t.bruise!==void 0&&(this.uniforms.uInjuryBruise.value[n]=R.clamp(t.bruise,0,1.2)),t.swell!==void 0&&(this.uniforms.uInjurySwell.value[n]=R.clamp(t.swell,0,2.2)),t.cut!==void 0&&(this.uniforms.uInjuryCut.value[n].y=R.clamp(t.cut,0,1)),t.blood!==void 0&&(this.uniforms.uInjuryBlood.value[n]=R.clamp(t.blood,0,1.4))}impact(e,t,n){let r=this.uniforms.uInjurySite.value[this.slot(e)];this.uniforms.uInjuryImpact.value.set(r.x,r.y,r.z,n),this.uniforms.uInjuryImpactPush.value.set(t[0],t[1],t[2])}setNoseShift(e){let t=this.index.get(`nose`);if(t===void 0)return;let n=this.uniforms.uInjurySite.value[t];this.uniforms.uInjuryNose.value.set(n.x,n.y,n.z,R.clamp(e,-1.4,1.4)||0)}update(e){let t=this.uniforms.uInjuryMark.value;for(let n=0;n0&&r.w0&&(s.x-e)**2+(s.y-t)**2+(s.z-n)**20,t.w=0;e&&this.refresh()}setSpatter(e){let t=R.clamp(e,0,1)||0;t!==this.uniforms.uInjurySpatter.value&&(this.uniforms.uInjurySpatter.value=t,this.refresh())}get spatter(){return this.uniforms.uInjurySpatter.value}setRun(e){this.uniforms.uInjuryRun.value=R.clamp(e,.3,2)||1}setXray(e,t,n,r,i){this.uniforms.uInjuryXray.value.set(e,t,n,r),this.uniforms.uInjuryXrayShown.value=i}get impactDepth(){return this.uniforms.uInjuryImpactPush.value.length()}setSevered(e){this.uniforms.uInjurySever.value=e?zg:Ug,this.uniforms.uInjurySeverShape.value.set(Bg,1),this.refresh()}setBurst(e){this.uniforms.uInjurySever.value=e?Vg:Ug,this.uniforms.uInjurySeverShape.value.set(e?0:Bg,e?Hg:1),this.refresh()}get open(){return this.material?.defines?.[S_]!==void 0}get wounded(){return this.material?.defines?.[x_]!==void 0}setOpen(e){this.switchTo(e||this.painted,e)}get painted(){let e=this.uniforms.uInjuryWound.value;for(let t=0;t0)return!0;for(let e of this.uniforms.uInjuryMark.value)if(e.w>0)return!0;return this.uniforms.uInjuryPallor.value>0||this.uniforms.uInjurySpatter.value>0}refresh(){let e=this.uniforms.uInjurySever.value!==Ug,t=this.uniforms.uInjuryGone.value;for(let n=0;n0&&(e=!0);this.switchTo(e||this.painted,e)}switchTo(e,t){let n=this.material;n===null||e===this.wounded&&t===this.open||(t!==this.open&&this.shadow!==null&&(this.shadow.defines=t?{[S_]:``}:{},this.shadow.needsUpdate=!0),V_(n,e,t),t&&n.shadowSide===null?(n.shadowSide=1,this.shadowSideSet=!0):!t&&this.shadowSideSet&&(n.shadowSide=null,this.shadowSideSet=!1))}variant(e){let t=this.material;if(t===null)return null;let n=t.clone();return n.defines={...t.defines},n.onBeforeCompile=t.onBeforeCompile,n.customProgramCacheKey=t.customProgramCacheKey,V_(n,!0,e),n.shadowSide=t.shadowSide??(e?1:null),n}shadowMaterial(){return this.shadow=this.depthMaterial(this.open),this.shadow}shadowVariant(){return this.depthMaterial(!0)}depthMaterial(e){let t=new Nd,n={uInjurySever:this.uniforms.uInjurySever,uInjurySeverShape:this.uniforms.uInjurySeverShape,uInjuryGone:this.uniforms.uInjuryGone},r=this.body;return t.onBeforeCompile=e=>{Object.assign(e.uniforms,n),e.vertexShader=e.vertexShader.replace(`#include `,`#include +`,K_=2.4,q_=.85,J_=.02,Y_=1.6,X_=class{material;sites;uniforms={uInjurySite:{value:[]},uInjuryCut:{value:[]},uInjurySwell:{value:new Float32Array(12)},uInjuryBruise:{value:new Float32Array(12)},uInjuryBlood:{value:new Float32Array(12)},uInjuryJaw:{value:0},uInjuryJawLevel:{value:114.5},uInjuryImpact:{value:new Ns(0,-1e3,0,1)},uInjuryImpactPush:{value:new B},uInjuryNose:{value:new Ns(0,-1e3,0,0)},uInjuryWetness:{value:1},uInjuryRaw:{value:1},uInjurySever:{value:e_},uInjurySeverShape:{value:new z(Zg,1)},uInjuryCore:{value:new Ns(...k_)},uInjuryWash:{value:0},uInjuryLid:{value:[new Ns(0,-1e3,0,0),new Ns(0,-1e3,0,0)]},uInjuryEyeOut:{value:new z},uInjuryBindToPart:{value:new _s},uInjuryWound:{value:new Float32Array(b_)},uInjuryGone:{value:new Float32Array(x_)},uInjuryExplicit:{value:1},uInjuryPallor:{value:0},uInjuryXray:{value:new Ns(0,0,0,0)},uInjuryXrayShown:{value:0},uInjuryRun:{value:1},uInjuryMark:{value:Array.from({length:6},()=>new Ns(0,0,0,0))},uInjurySpatter:{value:0}};index=new Map;wounds;cuts;body;shadow=null;shadowSideSet=!1;constructor(e,t,n={core:k_}){if(this.material=e,this.sites=t,t.length!==12)throw Error(`injury shading requires 12 sites`);let r=n.wash===!0;this.body=r,this.wounds=r?__:g_,this.cuts=r?y_:v_,this.uniforms.uInjuryCore.value.set(...n.core),this.uniforms.uInjuryWash.value=+(n.wash===!0);for(let[e,t]of(n.lids??[]).slice(0,2).entries())this.uniforms.uInjuryLid.value[e].set(t[0],t[1],t[2],0);for(let[e,n]of t.entries())this.index.set(n.name,e),this.uniforms.uInjurySite.value.push(new Ns(n.position[0],n.position[1],n.position[2],n.radius)),this.uniforms.uInjuryCut.value.push(new Ns(n.cutHalfLength,0,0,0));if(e===null)return;let i=this.uniforms,a=n.baked===!0;e.onBeforeCompile=e=>{Object.assign(e.uniforms,i),e.vertexShader=e.vertexShader.replace(`#include `,`#include \n${P_(r)}`).replace(`#include `,`#include \n${L_(a,r)}`),e.fragmentShader=e.fragmentShader.replace(`#include `,`#include \n${R_(r)}`).replace(`#include `,`#include \n${W_(r)}`).replace(`#include `,`#include \n${G_}`)},e.customProgramCacheKey=()=>`hands-injury-12${r?`-body`:``}${a?`-baked`:``}`,e.needsUpdate=!0}slot(e){let t=this.index.get(e);if(t===void 0)throw Error(`unknown injury site ${e}`);return t}set(e,t){let n=this.slot(e);t.bruise!==void 0&&(this.uniforms.uInjuryBruise.value[n]=R.clamp(t.bruise,0,1.2)),t.swell!==void 0&&(this.uniforms.uInjurySwell.value[n]=R.clamp(t.swell,0,2.2)),t.cut!==void 0&&(this.uniforms.uInjuryCut.value[n].y=R.clamp(t.cut,0,1)),t.blood!==void 0&&(this.uniforms.uInjuryBlood.value[n]=R.clamp(t.blood,0,1.4))}impact(e,t,n){let r=this.uniforms.uInjurySite.value[this.slot(e)];this.uniforms.uInjuryImpact.value.set(r.x,r.y,r.z,n),this.uniforms.uInjuryImpactPush.value.set(t[0],t[1],t[2])}setNoseShift(e){let t=this.index.get(`nose`);if(t===void 0)return;let n=this.uniforms.uInjurySite.value[t];this.uniforms.uInjuryNose.value.set(n.x,n.y,n.z,R.clamp(e,-1.4,1.4)||0)}update(e){let t=this.uniforms.uInjuryMark.value;for(let n=0;n0&&r.w0&&(s.x-e)**2+(s.y-t)**2+(s.z-n)**20,t.w=0;e&&this.refresh()}setSpatter(e){let t=R.clamp(e,0,1)||0;t!==this.uniforms.uInjurySpatter.value&&(this.uniforms.uInjurySpatter.value=t,this.refresh())}get spatter(){return this.uniforms.uInjurySpatter.value}setRun(e){this.uniforms.uInjuryRun.value=R.clamp(e,.3,2)||1}setXray(e,t,n,r,i){this.uniforms.uInjuryXray.value.set(e,t,n,r),this.uniforms.uInjuryXrayShown.value=i}get impactDepth(){return this.uniforms.uInjuryImpactPush.value.length()}setSevered(e){this.uniforms.uInjurySever.value=e?Xg:e_,this.uniforms.uInjurySeverShape.value.set(Zg,1),this.refresh()}setBurst(e){this.uniforms.uInjurySever.value=e?Qg:e_,this.uniforms.uInjurySeverShape.value.set(e?0:Zg,e?$g:1),this.refresh()}get open(){return this.material?.defines?.[N_]!==void 0}get wounded(){return this.material?.defines?.[M_]!==void 0}setOpen(e){this.switchTo(e||this.painted,e)}get painted(){let e=this.uniforms.uInjuryWound.value;for(let t=0;t0)return!0;for(let e of this.uniforms.uInjuryMark.value)if(e.w>0)return!0;return this.uniforms.uInjuryPallor.value>0||this.uniforms.uInjurySpatter.value>0}refresh(){let e=this.uniforms.uInjurySever.value!==e_,t=this.uniforms.uInjuryGone.value;for(let n=0;n0&&(e=!0);this.switchTo(e||this.painted,e)}switchTo(e,t){let n=this.material;n===null||e===this.wounded&&t===this.open||(t!==this.open&&this.shadow!==null&&(this.shadow.defines=t?{[N_]:``}:{},this.shadow.needsUpdate=!0),Q_(n,e,t),t&&n.shadowSide===null?(n.shadowSide=1,this.shadowSideSet=!0):!t&&this.shadowSideSet&&(n.shadowSide=null,this.shadowSideSet=!1))}variant(e){let t=this.material;if(t===null)return null;let n=t.clone();return n.defines={...t.defines},n.onBeforeCompile=t.onBeforeCompile,n.customProgramCacheKey=t.customProgramCacheKey,Q_(n,!0,e),n.shadowSide=t.shadowSide??(e?1:null),n}shadowMaterial(){return this.shadow=this.depthMaterial(this.open),this.shadow}shadowVariant(){return this.depthMaterial(!0)}depthMaterial(e){let t=new Wd,n={uInjurySever:this.uniforms.uInjurySever,uInjurySeverShape:this.uniforms.uInjurySeverShape,uInjuryGone:this.uniforms.uInjuryGone},r=this.body;return t.onBeforeCompile=e=>{Object.assign(e.uniforms,n),e.vertexShader=e.vertexShader.replace(`#include `,`#include varying vec3 vInjuryPos;`).replace(`#include `,`#include -vInjuryPos = transformed;`),e.fragmentShader=e.fragmentShader.replace(`#include `,`#include \nvarying vec3 vInjuryPos;\n${Wg}\n#ifdef ${S_}\n${g_(r)}\n#endif`).replace(`#include `,`#include \n#ifdef ${S_}\nif (vInjuryPos.y > injuryCutLine(vInjuryPos)) discard;\nif (injuryGone(vInjuryPos) > 0.0) discard;\n#endif`)},t.customProgramCacheKey=()=>`hands-injury-shadow${r?`-body`:``}`,e&&(t.defines={[S_]:``}),t}setWound(e,t){this.uniforms.uInjuryWound.value[B_(this.wounds,e)]=R.clamp(t,0,1)||0,this.refresh()}wound(e){return this.uniforms.uInjuryWound.value[B_(this.wounds,e)]}setGone(e,t){this.uniforms.uInjuryGone.value[B_(this.cuts,e)]=R.clamp(t,0,2)||0,this.refresh()}gone(e){return this.uniforms.uInjuryGone.value[B_(this.cuts,e)]}setExplicit(e){this.uniforms.uInjuryExplicit.value=+!!e}get explicit(){return this.uniforms.uInjuryExplicit.value>0}setPallor(e){let t=R.clamp(e,0,1)||0;t!==this.uniforms.uInjuryPallor.value&&(this.uniforms.uInjuryPallor.value=t,this.refresh())}get pallor(){return this.uniforms.uInjuryPallor.value}raise(e,t,n=0,r=0){let i=this.slot(e),a=this.uniforms;a.uInjuryBruise.value[i]=Math.max(a.uInjuryBruise.value[i],Math.min(t,1.2)),a.uInjuryBlood.value[i]=Math.max(a.uInjuryBlood.value[i],Math.min(n,1.4));let o=a.uInjuryCut.value[i];o.y=Math.max(o.y,Math.min(r,1))}copyFrom(e){let t=e.uniforms,n=this.uniforms;n.uInjuryBruise.value.set(t.uInjuryBruise.value),n.uInjurySwell.value.set(t.uInjurySwell.value),n.uInjuryBlood.value.set(t.uInjuryBlood.value);for(let[e,r]of n.uInjuryCut.value.entries())r.y=t.uInjuryCut.value[e]?.y??0;for(let[e,r]of n.uInjuryLid.value.entries())r.w=t.uInjuryLid.value[e]?.w??0;n.uInjuryEyeOut.value.copy(t.uInjuryEyeOut.value),n.uInjuryNose.value.copy(t.uInjuryNose.value),n.uInjuryJaw.value=t.uInjuryJaw.value,n.uInjuryWetness.value=t.uInjuryWetness.value,n.uInjuryRaw.value=t.uInjuryRaw.value,n.uInjuryImpactPush.value.set(0,0,0),n.uInjuryWound.value.set(t.uInjuryWound.value),n.uInjuryGone.value.set(t.uInjuryGone.value),n.uInjuryExplicit.value=t.uInjuryExplicit.value,n.uInjuryPallor.value=t.uInjuryPallor.value;for(let[e,r]of n.uInjuryMark.value.entries())r.copy(t.uInjuryMark.value[e]);n.uInjurySpatter.value=t.uInjurySpatter.value,n.uInjuryRun.value=t.uInjuryRun.value,this.refresh()}setBindToPart(e){this.uniforms.uInjuryBindToPart.value.copy(e)}setRawCuts(e){this.uniforms.uInjuryRaw.value=R.clamp(e,0,1)||0}setJaw(e){this.uniforms.uInjuryJaw.value=R.clamp(e,0,1)}setEyesShut(e,t){let[n,r]=this.uniforms.uInjuryLid.value;n.y>-500&&(n.w=R.clamp(e,0,1)||0),r.y>-500&&(r.w=R.clamp(t,0,1)||0)}setEyeOut(e){let t=this.uniforms.uInjuryLid.value,n=(e===`left`||e===`both`)&&t[0].y>-500,r=(e===`right`||e===`both`)&&t[1].y>-500;this.uniforms.uInjuryEyeOut.value.set(+!!n,+!!r),this.index.has(`leftEye`)&&this.set(`leftEye`,{blood:n?1.3:0}),this.index.has(`rightEye`)&&this.set(`rightEye`,{blood:r?1.3:0})}get eyeOut(){let e=this.uniforms.uInjuryEyeOut.value;return e.x>0&&e.y>0?`both`:e.x>0?`left`:e.y>0?`right`:null}get eyesShut(){return[this.uniforms.uInjuryLid.value[0].w,this.uniforms.uInjuryLid.value[1].w]}clear(){this.uniforms.uInjuryBruise.value.fill(0),this.uniforms.uInjurySwell.value.fill(0),this.uniforms.uInjuryBlood.value.fill(0);for(let e of this.uniforms.uInjuryCut.value)e.y=0;this.uniforms.uInjuryJaw.value=0;for(let e of this.uniforms.uInjuryLid.value)e.w=0;this.uniforms.uInjuryEyeOut.value.set(0,0),this.uniforms.uInjuryNose.value.w=0,this.uniforms.uInjuryImpactPush.value.set(0,0,0),this.uniforms.uInjuryWound.value.fill(0),this.uniforms.uInjuryGone.value.fill(0),this.uniforms.uInjuryPallor.value=0;for(let e of this.uniforms.uInjuryMark.value)e.set(0,0,0,0);this.uniforms.uInjurySpatter.value=0,this.uniforms.uInjuryRun.value=1,this.refresh()}level(e){let t=this.slot(e);return{bruise:this.uniforms.uInjuryBruise.value[t],swell:this.uniforms.uInjurySwell.value[t],cut:this.uniforms.uInjuryCut.value[t].y,blood:this.uniforms.uInjuryBlood.value[t]}}};function B_(e,t){let n=e.indexOf(t);if(n<0)throw Error(`unknown injury ${t}`);return n}function V_(e,t,n){let r=e.defines??={};delete r[x_],delete r[S_],t&&(r[x_]=``),n&&(r[S_]=``),e.side=n?2:0,e.needsUpdate=!0}var H_=e=>e===`off`?0:e===`reduced`?.2:1.5,U_=330;function W_(e,t){return R.clamp((e-U_)/(p-U_)+Math.max(0,t-200)/1600,0,1)}var G_=1.8,K_=150,q_=240;function J_(e,t,n){let r=H_(n),i=n===`full`?1:.6;e.setRawCuts(n===`full`?1:n===`reduced`?.6:0);let a=e=>Math.min(1.2,e/380+t.swelling/900),o=e=>Math.min(2,(e/600+t.swelling/900)*i);e.set(`leftEye`,{bruise:a(t.left_eye),swell:o(t.left_eye)}),e.set(`rightEye`,{bruise:a(t.right_eye),swell:o(t.right_eye)}),e.setEyesShut(W_(t.left_eye,t.swelling),W_(t.right_eye,t.swelling));let s=e=>Math.min(1,e/120),c=e=>Math.min(1.4,(e/120+t.bleeding/240)*r);e.set(`leftBrow`,{bruise:Math.min(1,t.left_eye/700),swell:Math.min(1.2,t.left_eye/900)*i,cut:s(t.left_cut),blood:c(t.left_cut)}),e.set(`rightBrow`,{bruise:Math.min(1,t.right_eye/700),swell:Math.min(1.2,t.right_eye/900)*i,cut:s(t.right_cut),blood:c(t.right_cut)});let l=Math.min(1,t.head/950+t.swelling/1100),u=Math.min(G_,t.swelling/520)*i,d=e=>Math.min(1,Math.max(0,e-K_)/350),f=e=>Math.min(1.2,Math.max(0,e-K_+30)/240)*r;e.set(`leftCheek`,{bruise:l*.9,swell:u,cut:d(t.left_cut),blood:f(t.left_cut)}),e.set(`rightCheek`,{bruise:l*.85,swell:u,cut:d(t.right_cut),blood:f(t.right_cut)}),e.set(`nose`,{bruise:Math.min(1,t.head/800),swell:Math.min(.8,t.head/1400)*i,blood:Math.min(1.4,(Math.max(0,t.head-60)/300+t.bleeding/220)*r)}),e.set(`mouth`,{bruise:Math.min(.8,t.head/1100),cut:Math.min(1,Math.max(0,t.head-250)/500),blood:Math.min(1.3,(Math.max(0,t.head-120)/360+t.bleeding/260)*r)}),e.set(`chin`,{bruise:Math.min(.7,t.head/1300)});let p=t.left_eye>=t.right_eye?-1:1;e.setNoseShift(p*Math.min(1.1,Math.max(0,t.head-520)/450)*i),e.set(`leftJaw`,{bruise:Math.min(.9,t.left_eye/900+t.head/1600)}),e.set(`rightJaw`,{bruise:Math.min(.9,t.right_eye/900+t.head/1600)}),e.set(`forehead`,{bruise:Math.min(.6,t.swelling/1200),cut:Math.min(1,Math.max(0,t.swelling-q_)/300),blood:Math.min(1.2,Math.max(0,t.swelling-q_)/220)*r})}function Y_(e,t){return Math.min(1,(Math.max(0,e.bleeding-10)/220+Math.max(0,e.left_cut+e.right_cut-60)/650)*H_(t))}function X_(e,t,n){let r=H_(n),i=Math.min(1.1,t.body/620);e.set(`leftRibs`,{bruise:i,swell:Math.min(1,t.body/1300)}),e.set(`rightRibs`,{bruise:i*.9,swell:Math.min(1,t.body/1400)}),e.set(`solarPlexus`,{bruise:Math.min(1,t.body/800)}),e.set(`leftPec`,{bruise:Math.min(.8,t.body/1100)}),e.set(`rightPec`,{bruise:Math.min(.8,t.body/1150)});let a=Math.min(1.4,(t.bleeding/200+(t.left_cut+t.right_cut)/450)*r);e.set(`neckSmear`,{blood:a}),e.set(`leftShoulderSmear`,{blood:Math.min(1.2,t.left_cut/300)*r}),e.set(`rightShoulderSmear`,{blood:Math.min(1.2,t.right_cut/300)*r})}var Z_=3.05,Q_=3.85,$_=4.05,ev=3.42,tv=ev*.72,nv=[.5,.88,1.26];function rv(e){let t=Z_/Math.max(1,e.ring_half_width),n=Z_/Math.max(1,e.ring_half_height);return{x:e=>e*t,z:e=>-e*n}}var iv={blue:1920728,red:12131356,neutral:15067115},av=128,ov=4,sv=.12,cv=.82,lv={edge:4851467,core:[`rgba(40,3,6,0.9)`,`rgba(58,5,9,0.65)`,`rgba(70,7,11,0)`]},uv=6,dv=.29,fv=14,pv=e=>()=>(e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296);function mv(e){let t=pv(e);return{lobes:Array.from({length:5+Math.floor(t()*4)},(e,n)=>{let r=t()*Math.PI*2,i=n===0?0:6+t()*12,a=n===0?16+t()*6:8+t()*9;return{x:64+Math.cos(r)*i,y:64+Math.sin(r)*i,rx:a,ry:a*(.55+t()*.45),turn:t()*Math.PI}}),fill:.55+t()*.2,rim:.95,satellites:6+Math.floor(t()*6)}}function hv(e){let t=document.createElement(`canvas`);t.width=av,t.height=av;let n=t.getContext(`2d`);if(n!==null){let t=mv(e),r=pv(e^1540483477);n.clearRect(0,0,av,av),n.fillStyle=`rgba(255,255,255,1)`,n.strokeStyle=`rgba(255,255,255,1)`,n.globalAlpha=t.rim,n.lineWidth=3.5;for(let e of t.lobes)n.beginPath(),n.ellipse(e.x,e.y,e.rx,e.ry,e.turn,0,Math.PI*2),n.stroke();let i=()=>{n.beginPath();for(let e of t.lobes){let t=Math.max(1,e.rx-1.5);n.moveTo(e.x+Math.cos(e.turn)*t,e.y+Math.sin(e.turn)*t),n.ellipse(e.x,e.y,t,Math.max(1,e.ry-1.5),e.turn,0,Math.PI*2)}n.fill()};n.globalCompositeOperation=`destination-out`,n.globalAlpha=1,i(),n.globalCompositeOperation=`source-over`,n.globalAlpha=t.fill,i();for(let e=0;e{let t=t=>Math.round((e>>t&255)*.8);return`rgb(${t(16)},${t(8)},${t(0)})`},_v=class{scene;size;mesh;canvas;context;texture;source;uploader=null;region=new op;regionAt=new z;material;geometry;stamps=[];tinted=new Map;pixelsPerMetre;dirty=!1;sinceUpload=0;uploadInterval=sv;painted=0;streakSeed=0;constructor(e,t=1024){this.scene=e,this.size=t,this.canvas=document.createElement(`canvas`),this.canvas.width=t,this.canvas.height=t,this.context=this.canvas.getContext(`2d`),this.context?.clearRect(0,0,t,t);for(let e=0;e3.05||Math.abs(t)>3.05)return;let c=this.context;if(this.painted+=1,this.dirty=!0,this.mesh.visible=!0,c===null)return;let l=this.tintedStamp(o,s),u=this.pixel(e,t),d=Math.max(1,n*this.pixelsPerMetre),f=Math.max(1,r*this.pixelsPerMetre);this.grow(u.x,u.y,Math.hypot(d,f)/2),c.save(),c.globalAlpha=R.clamp(a,0,1),c.translate(u.x,u.y),c.rotate(Number.isFinite(i)?i:0),c.drawImage(l,-d/2,-f/2,d,f),c.restore()}tintedStamp(e,t){let n=this.tinted.get(e);return n===void 0&&(n=this.stamps.map(t=>{let n=document.createElement(`canvas`);n.width=av,n.height=av;let r=n.getContext(`2d`);return r!==null&&(r.drawImage(t,0,0),r.globalCompositeOperation=`source-in`,r.fillStyle=gv(e),r.fillRect(0,0,av,av)),n}),this.tinted.set(e,n)),n[Math.abs(Math.trunc(t))%ov]}pool(e,t,n,r,i,a=lv){this.stain(e,t,n*2.3,n*2,i*1.7,r*.8,a.edge,i);let o=this.context;if(o===null||Math.abs(e)>3.05||Math.abs(t)>3.05)return;let s=this.pixel(e,t),c=Math.max(1,n*1.15*this.pixelsPerMetre);this.grow(s.x,s.y,c);let l=o.createRadialGradient(s.x,s.y,0,s.x,s.y,c);l.addColorStop(0,a.core[0]),l.addColorStop(.65,a.core[1]),l.addColorStop(1,a.core[2]),o.save(),o.globalAlpha=R.clamp(r,0,1),o.fillStyle=l,o.beginPath(),o.ellipse(s.x,s.y,c,c*.86,i*.9,0,Math.PI*2),o.fill(),o.restore()}streakRandom(){return this.streakSeed=Math.imul(this.streakSeed^this.streakSeed>>>15,1|this.streakSeed),this.streakSeed^=this.streakSeed+Math.imul(this.streakSeed^this.streakSeed>>>7,61|this.streakSeed),((this.streakSeed^this.streakSeed>>>14)>>>0)/4294967296}smear(e,t,n,r,i,a,o){if(!Number.isFinite(e+t+n+r+i)||Math.abs(e)>3.05||Math.abs(t)>3.05)return;let s=this.context;if(this.painted+=1,this.dirty=!0,this.mesh.visible=!0,s===null)return;let c=(e+Z_)*this.pixelsPerMetre,l=(t+Z_)*this.pixelsPerMetre,u=(R.clamp(n,-Z_,Z_)+Z_)*this.pixelsPerMetre,d=(R.clamp(r,-Z_,Z_)+Z_)*this.pixelsPerMetre,f=Math.max(1,i*this.pixelsPerMetre);this.grow(c,l,f),this.grow(u,d,f);let p=Math.hypot(u-c,d-l),m=p>1e-6?(l-d)/p:1,h=p>1e-6?(u-c)/p:0;this.streakSeed=1374496523^Math.imul(this.painted,40503),s.save(),s.strokeStyle=gv(o),s.lineCap=`round`;for(let e=0;e3.05||Math.abs(t)>3.05)return;let o=this.context;if(this.painted+=1,this.dirty=!0,this.mesh.visible=!0,o===null)return;let s=(e+Z_)*this.pixelsPerMetre,c=(t+Z_)*this.pixelsPerMetre,l=Math.max(2,dv*this.pixelsPerMetre),u=l*.36;this.grow(s,c,l*.6);let d=(r?-1:1)*u*.06,f=l/fv;o.save(),o.globalAlpha=R.clamp(i,0,1),o.fillStyle=gv(a),o.translate(s,c),o.rotate(-n);for(let e=0;et.min.x&&t.max.y>t.min.y?this.uploader.copyTextureToTexture(this.source,this.texture,t,this.regionAt.copy(t.min)):this.texture.needsUpdate=!0,t.makeEmpty(),this.dirty=!1,this.sinceUpload=0}clear(){this.context?.clearRect(0,0,this.size,this.size),this.painted=0,this.dirty=!1,this.region.makeEmpty(),this.texture.needsUpdate=!0,this.mesh.visible=!1}dispose(){this.scene.remove(this.mesh),this.texture.dispose(),this.source.dispose(),this.material.dispose(),this.geometry.dispose()}};function vv(){let e=new fd(1,2);e.deleteAttribute(`normal`),e.deleteAttribute(`uv`);let t=Fg(e,1e-4);e.dispose();let n=t.getAttribute(`position`),r=new B;for(let e=0;e=120?5:t>=90?3:t>=60?2:+(t>=40):e===`hit`?t>=130?4:t>=100?3:t>=75?2:+(t>=50):0:0}function xv(e,t){return Math.min(800,Math.round(Math.max(0,e)*4.5+Math.max(0,t)*2.8))}var Sv=1.1,Cv=.6,wv=.35,Tv=1.2;function Ev(){let e=new _d(1,8,6),t=e.getAttribute(`position`);for(let e=0;e1+(e-1)*28+t%28;for(let e=0;e<28;e+=1)a.push(0,o(1,e+1),o(1,e));for(let e=1;e<6;e+=1)for(let t=0;t<28;t+=1)a.push(o(e,t),o(e,t+1),o(e+1,t)),a.push(o(e,t+1),o(e+1,t+1),o(e+1,t));let s=new il;return s.setAttribute(`position`,new Kc(r,3)),s.setAttribute(`uv`,new Kc(i,2)),s.setIndex(a),s.computeVertexNormals(),s}function Nv(e,t){let n=e.getAttribute(`position`),r=e.getIndex();if(r===null)return[];let i=new Map,a=new Int32Array(n.count),o=new Uint8Array(n.count),s=new B;for(let e=0;eo[e]===1);for(let e=0;e<3;e+=1){let r=a[t[e]],o=a[t[(e+1)%3]],s=r=2&&l.push(Math.floor(e/n.count),e%n.count);return l}var Pv=.5,Fv=new B,Iv=new B,Lv=new B,Rv=new B,zv=new B;function Bv(e,t,n){zv.copy(e).addScaledVector(t,-e.dot(t)).multiplyScalar(Pv/n).add(t).normalize()}function Vv(e,t,n,r,i=.01,a){let o=Math.floor(t.length/6),s=e.getAttribute(`position`),c=e.getAttribute(`normal`),l=e.getAttribute(`uv`);(s===void 0||c===void 0||l===void 0||s.count!==o*3)&&(s=new Uc(new Float32Array(o*9),3).setUsage(go),c=new Uc(new Float32Array(o*9),3).setUsage(go),l=new Uc(new Float32Array(o*6),2).setUsage(go),e.setAttribute(`position`,s),e.setAttribute(`normal`,c),e.setAttribute(`uv`,l)),Fv.set(1,0,0),Math.abs(r.x)>.9&&Fv.set(0,0,1),a!==void 0&&a.lengthSq()>1e-8&&Math.abs(a.dot(r))<.95*a.length()&&Fv.copy(a),Iv.crossVectors(r,Fv).normalize(),Fv.crossVectors(Iv,r).normalize();let u=1e-6;for(let e=0;e=0)continue;let i=`${Math.round(s.x*1e5)},${Math.round(s.y*1e5)},${Math.round(s.z*1e5)}`,l=a.get(i)??n;a.set(i,l),o[n]=l}c.multiplyScalar(1/Math.max(1,r.count));for(let e=0;e{let t=e;for(;u.has(t);)t=u.get(t);return t},f=[];for(let[e,t]of l){if(t!==1)continue;f.push(e);let n=d(Math.floor(e/i)),r=d(e%i);n!==r&&u.set(n,r)}let p=new Map;for(let e of f){let t=d(e%i),n=p.get(t)??[];n.push(e),p.set(t,n)}let m=[],h=[],g=[],_=new il,v=new il,y=new B,b=new B,x=[];for(let e of p.values()){if(e.length<3)continue;let r=new Float32Array(e.length*6);y.set(0,0,0);let a=0;for(let[o,c]of e.entries()){let e=Math.floor(c/i),l=c%i;y.add(s.fromBufferAttribute(t,e)),s.toArray(r,o*6),y.add(s.fromBufferAttribute(t,l)),s.toArray(r,o*6+3),a+=n===void 0?r[o*6+1]+r[o*6+4]:n.getY(e)+n.getY(l)}y.multiplyScalar(1/(e.length*2));let o=0;for(let e=0;e(n=Math.imul(n^n>>>15,1|n),n^=n+Math.imul(n^n>>>7,61|n),((n^n>>>14)>>>0)/4294967296);for(let e=0;e<46;e+=1){let e=r()*Math.PI*2,n=14+r()*42;t.fillStyle=r()<.5?`rgba(150,28,30,0.55)`:`rgba(40,4,8,0.5)`,t.beginPath(),t.ellipse(64+Math.cos(e)*n,64+Math.sin(e)*n,3+r()*6,2+r()*3,e,0,Math.PI*2),t.fill()}let i=(e,n,r,i)=>{t.fillStyle=i,t.beginPath(),t.arc(e,n,r,0,Math.PI*2),t.fill()};i(64,38,10,`#8f7c64`),i(61,36,4.5,`#6a2a25`),i(66,78,7,`#7a3c34`),i(66,78,4.5,`#150203`),i(41,64,3,`#1d0204`),i(90,69,2.6,`#1d0204`);for(let e=0;e<70;e+=1){let e=r()*Math.PI*2,t=r()*60;i(64+Math.cos(e)*t,64+Math.sin(e)*t,.6+r()*1.6,r()<.4?`rgba(190,60,50,0.5)`:`rgba(20,2,4,0.55)`)}Gv(t)}let n=new ku(e);return n.colorSpace=lo,n}function Gv(e){e.lineWidth=7,e.strokeStyle=`rgba(214,178,92,0.85)`,e.beginPath(),e.arc(64,64,55,0,Math.PI*2),e.stroke(),e.lineWidth=4,e.strokeStyle=`#b8775c`,e.beginPath(),e.arc(64,64,61,0,Math.PI*2),e.stroke()}function Kv(){let e=document.createElement(`canvas`);e.width=128,e.height=128;let t=e.getContext(`2d`);if(t!==null){let e=t.createRadialGradient(64,64,6,64,64,64);e.addColorStop(0,`#741014`),e.addColorStop(.7,`#52090d`),e.addColorStop(1,`#300407`),t.fillStyle=e,t.fillRect(0,0,128,128);let n=(e,n,r,i)=>{t.fillStyle=i,t.beginPath(),t.arc(e,n,r,0,Math.PI*2),t.fill()};for(let[e,t,r]of[[46,60,13],[84,66,10]])n(e,t,r,`#e4d8c0`),n(e,t,r*.62,`#a4483c`),n(e-r*.2,t-r*.2,r*.25,`rgba(220,110,90,0.6)`);for(let e=0;e<9;e+=1){let t=Math.PI*(.15+e/8*.7);n(64+Math.cos(t)*34,64+Math.sin(t)*34,3.2,`#d9c9b3`)}n(30,84,3.4,`#1a0204`),n(98,46,3,`#1a0204`),n(66,30,2.6,`#1a0204`),Gv(t)}let n=new ku(e);return n.colorSpace=lo,n}function qv(){let e=document.createElement(`canvas`);e.width=128,e.height=128;let t=e.getContext(`2d`);if(t!==null){let e=t.createRadialGradient(64,64,6,64,64,64);e.addColorStop(0,`#7c1218`),e.addColorStop(.7,`#560a0f`),e.addColorStop(1,`#2e0407`),t.fillStyle=e,t.fillRect(0,0,128,128);let n=2135587861,r=()=>(n=Math.imul(n^n>>>15,1|n),n^=n+Math.imul(n^n>>>7,61|n),((n^n>>>14)>>>0)/4294967296);for(let e=0;e<11;e+=1){let n=e/11*Math.PI*2+r()*.3,i=26+r()*12;t.fillStyle=r()<.5?`#8e1c20`:`#6c1016`,t.strokeStyle=`rgba(30,3,6,0.8)`,t.lineWidth=1.6,t.beginPath(),t.ellipse(64+Math.cos(n)*i,64+Math.sin(n)*i,13+r()*5,8+r()*4,n+Math.PI/2,0,Math.PI*2),t.fill(),t.stroke()}let i=(e,n,r,i)=>{t.fillStyle=i,t.beginPath(),t.arc(e,n,r,0,Math.PI*2),t.fill()};i(58,60,15,`#e8dcc4`),i(58,60,9.5,`#a8463a`),i(55,57,3.5,`rgba(226,116,96,0.65)`),i(82,70,4.2,`#170204`),i(80,80,3,`#3a0a2a`),i(88,62,2.2,`#e0d2a0`);for(let e=0;e<70;e+=1){let e=r()*Math.PI*2,t=18+r()*40;i(64+Math.cos(e)*t,64+Math.sin(e)*t,.6+r()*1.5,r()<.4?`rgba(200,70,56,0.5)`:`rgba(20,2,4,0.55)`)}Gv(t)}let n=new ku(e);return n.colorSpace=lo,n}function Jv(){let e=document.createElement(`canvas`);e.width=128,e.height=128;let t=e.getContext(`2d`);if(t!==null){t.fillStyle=`#3c060a`,t.fillRect(0,0,128,128);let e=461845907,n=()=>(e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296),r=(e,n,r,i,a,o,s)=>{t.fillStyle=o,t.beginPath(),t.ellipse(e,n,r,i,a,0,Math.PI*2),t.fill(),s!==void 0&&(t.strokeStyle=s,t.lineWidth=1.4,t.stroke())};t.strokeStyle=`#7c151a`,t.lineWidth=12,t.beginPath(),t.arc(64,64,46,0,Math.PI*2),t.stroke(),r(40,30,13,9,.5,`#8a1c20`,`rgba(30,3,6,0.8)`),r(88,30,13,9,-.5,`#8a1c20`,`rgba(30,3,6,0.8)`),r(40,58,15,10,.4,`#4a1410`);for(let e=0;e<15;e+=1){let e=n()*Math.PI*2,t=n()*25,i=68+Math.cos(e)*t,a=74+Math.sin(e)*t*.8,o=6+n()*4;r(i,a,o,o*(.7+n()*.3),n()*Math.PI,`#d49a98`,`rgba(110,30,36,0.9)`),r(i,a,o*.45,o*.35,n()*Math.PI,n()<.4?`#6a5a14`:`#3a070b`)}r(64,26,11,9,0,`#e6dac2`),r(64,26,7,5.5,0,`#b4594a`),r(64,13,4,3.4,0,`#efe6c8`,`#8a7c60`),r(57,40,4.4,4.4,0,`#160204`,`#a03038`),r(71,40,4,3.4,0,`#2a0a2c`);for(let e=0;e<80;e+=1){let e=n()*Math.PI*2,t=n()*54;r(64+Math.cos(e)*t,64+Math.sin(e)*t,.6+n()*1.6,.6+n()*1.6,0,n()<.3?`rgba(226,190,90,0.6)`:n()<.5?`rgba(190,50,44,0.5)`:`rgba(20,2,4,0.55)`)}Gv(t)}let n=new ku(e);return n.colorSpace=lo,n}function Yv(){let e=.09,t=[];for(let e=0;e<9;e+=1){let n=e/9*Math.PI*2,r=.32*(.62+.38*Math.abs(Math.sin(e*2.3+.4)));t.push([Math.cos(n)*r,Math.sin(n)*r])}let n=(t,n,r)=>{let i=Math.hypot(t,n,1);return[t/i*r,n/i*r,1/i*r-e]},r=[],i=[],a=[.07,.035,.025],o=[.78,.7,.58],s=[.42,.05,.05],c=(e,t,n,a)=>{r.push(...e,...t,...n);for(let e=0;e<3;e+=1)i.push(...a)};for(let r=0;r<9;r+=1){let[i,l]=t[r],[u,d]=t[(r+1)%9];c(n(0,0,e),n(i,l,e),n(u,d,e),a),c(n(0,0,.08299999999999999),n(u,d,.08299999999999999),n(i,l,.08299999999999999),r%3==0?o:s),c(n(i,l,e),n(i,l,.08299999999999999),n(u,d,e),o),c(n(u,d,e),n(i,l,.08299999999999999),n(u,d,.08299999999999999),o)}let l=new il;return l.setAttribute(`position`,new Kc(r,3)),l.setAttribute(`color`,new Kc(i,3)),l.computeVertexNormals(),l.computeBoundingSphere(),l}function Xv(){let e=document.createElement(`canvas`);e.width=128,e.height=128;let t=e.getContext(`2d`);if(t!==null){let e=t.createRadialGradient(64,60,6,64,64,66);e.addColorStop(0,`#7a1016`),e.addColorStop(.75,`#530a0e`),e.addColorStop(1,`#300408`),t.fillStyle=e,t.fillRect(0,0,128,128),t.fillStyle=`#8a2a2e`,t.beginPath(),t.ellipse(64,50,22,17,0,0,Math.PI*2),t.fill(),t.fillStyle=`rgba(220,120,120,0.35)`,t.beginPath(),t.ellipse(60,45,9,5,-.3,0,Math.PI*2),t.fill(),t.strokeStyle=`#a99c86`,t.lineWidth=5,t.beginPath(),t.ellipse(64,62,50,50,0,Math.PI*.08,Math.PI*.92),t.stroke();for(let e=0;e<12;e+=1){let n=Math.PI*(.14+e/11*.72);t.save(),t.translate(64+Math.cos(n)*42,62+Math.sin(n)*42),t.rotate(n+Math.PI/2),t.fillStyle=e%5==2?`#3a0508`:`#ece4cf`,t.fillRect(-3.5,-4.5,7,9),t.restore()}let n=625341585,r=()=>(n=Math.imul(n^n>>>15,1|n),n^=n+Math.imul(n^n>>>7,61|n),((n^n>>>14)>>>0)/4294967296);for(let e=0;e<60;e+=1)t.fillStyle=r()<.5?`rgba(150,20,24,0.6)`:`rgba(20,2,4,0.5)`,t.beginPath(),t.arc(r()*128,r()*128,.8+r()*2.2,0,Math.PI*2),t.fill();Gv(t)}let n=new ku(e);return n.colorSpace=lo,n}function Zv(){let e=document.createElement(`canvas`);e.width=128,e.height=64;let t=e.getContext(`2d`);if(t!==null){let e=t.createLinearGradient(0,0,128,0);e.addColorStop(0,`#e9ddd4`),e.addColorStop(.42,`#e9ddd4`),e.addColorStop(.62,`#8a2a2c`),e.addColorStop(.85,`#4a070b`),e.addColorStop(1,`#e9ddd4`),t.fillStyle=e,t.fillRect(0,0,128,64),t.strokeStyle=`rgba(170,20,26,0.75)`,t.lineWidth=.8;for(let e=0;e<14;e+=1){let n=e/14*Math.PI*2;t.beginPath(),t.moveTo(32+Math.cos(n)*30,32+Math.sin(n)*26),t.quadraticCurveTo(32+Math.cos(n+.3)*20,32+Math.sin(n+.3)*18,32+Math.cos(n)*11,32+Math.sin(n)*11),t.stroke()}let n=t.createRadialGradient(32,32,2,32,32,9);n.addColorStop(0,`#6b4524`),n.addColorStop(.8,`#4a2d14`),n.addColorStop(1,`#1e1208`),t.fillStyle=n,t.beginPath(),t.arc(32,32,9,0,Math.PI*2),t.fill(),t.fillStyle=`#050302`,t.beginPath(),t.arc(32,32,4,0,Math.PI*2),t.fill(),t.fillStyle=`rgba(255,255,255,0.85)`,t.beginPath(),t.arc(29.5,29.5,1.4,0,Math.PI*2),t.fill()}let n=new ku(e);return n.colorSpace=lo,n}function Qv(e){let t=new Map,n=new Map,r=e.clone();return $v(e,r,function(e,r){t.set(r,e),n.set(e,r)}),r.traverse(function(e){if(!e.isSkinnedMesh)return;let r=e,i=t.get(e),a=i.skeleton.bones;r.skeleton=i.skeleton.clone(),r.bindMatrix.copy(i.bindMatrix),r.skeleton.bones=a.map(function(e){return n.get(e)}),r.bind(r.skeleton,r.bindMatrix)}),r}function $v(e,t,n){n(e,t);for(let r=0;r=2.0 are supported.`));return}let c=new Zy(i,{path:t||this.resourcePath||``,crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});c.fileLoader.setRequestHeader(this.requestHeader);for(let e=0;e=0&&o[t]===void 0&&console.warn(`THREE.GLTFLoader: Unknown extension "`+t+`".`)}}c.setExtensions(a),c.setPlugins(o),c.parse(n,r)}parseAsync(e,t){let n=this;return new Promise(function(r,i){n.parse(e,t,r,i)})}};function ty(){let e={};return{get:function(t){return e[t]},add:function(t,n){e[t]=n},remove:function(t){delete e[t]},removeAll:function(){e={}}}}function ny(e,t,n){let r=e.json.materials[t];return r.extensions&&r.extensions[n]?r.extensions[n]:null}var ry={KHR_BINARY_GLTF:`KHR_binary_glTF`,KHR_DRACO_MESH_COMPRESSION:`KHR_draco_mesh_compression`,KHR_LIGHTS_PUNCTUAL:`KHR_lights_punctual`,KHR_MATERIALS_CLEARCOAT:`KHR_materials_clearcoat`,KHR_MATERIALS_DISPERSION:`KHR_materials_dispersion`,KHR_MATERIALS_IOR:`KHR_materials_ior`,KHR_MATERIALS_SHEEN:`KHR_materials_sheen`,KHR_MATERIALS_SPECULAR:`KHR_materials_specular`,KHR_MATERIALS_TRANSMISSION:`KHR_materials_transmission`,KHR_MATERIALS_IRIDESCENCE:`KHR_materials_iridescence`,KHR_MATERIALS_ANISOTROPY:`KHR_materials_anisotropy`,KHR_MATERIALS_UNLIT:`KHR_materials_unlit`,KHR_MATERIALS_VOLUME:`KHR_materials_volume`,KHR_TEXTURE_BASISU:`KHR_texture_basisu`,KHR_TEXTURE_TRANSFORM:`KHR_texture_transform`,KHR_MESH_QUANTIZATION:`KHR_mesh_quantization`,KHR_MATERIALS_EMISSIVE_STRENGTH:`KHR_materials_emissive_strength`,EXT_MATERIALS_BUMP:`EXT_materials_bump`,EXT_TEXTURE_WEBP:`EXT_texture_webp`,EXT_TEXTURE_AVIF:`EXT_texture_avif`,EXT_MESHOPT_COMPRESSION:`EXT_meshopt_compression`,KHR_MESHOPT_COMPRESSION:`KHR_meshopt_compression`,EXT_MESH_GPU_INSTANCING:`EXT_mesh_gpu_instancing`},iy=class{constructor(e){this.parser=e,this.name=ry.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){let e=this.parser,t=this.parser.json.nodes||[];for(let n=0,r=t.length;n=0)throw Error(`THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures`);return null}return t.loadTextureImage(e,i.source,a)}},vy=class{constructor(e){this.parser=e,this.name=ry.EXT_TEXTURE_WEBP}loadTexture(e){let t=this.name,n=this.parser,r=n.json,i=r.textures[e];if(!i.extensions||!i.extensions[t])return null;let a=i.extensions[t],o=r.images[a.source],s=n.textureLoader;if(o.uri){let e=n.options.manager.getHandler(o.uri);e!==null&&(s=e)}return n.loadTextureImage(e,a.source,s)}},yy=class{constructor(e){this.parser=e,this.name=ry.EXT_TEXTURE_AVIF}loadTexture(e){let t=this.name,n=this.parser,r=n.json,i=r.textures[e];if(!i.extensions||!i.extensions[t])return null;let a=i.extensions[t],o=r.images[a.source],s=n.textureLoader;if(o.uri){let e=n.options.manager.getHandler(o.uri);e!==null&&(s=e)}return n.loadTextureImage(e,a.source,s)}},by=class{constructor(e,t){this.name=t,this.parser=e}loadBufferView(e){let t=this.parser.json,n=t.bufferViews[e];if(n.extensions&&n.extensions[this.name]){let e=n.extensions[this.name],r=this.parser.getDependency(`buffer`,e.buffer),i=this.parser.options.meshoptDecoder;if(!i||!i.supported){if(t.extensionsRequired&&t.extensionsRequired.indexOf(this.name)>=0)throw Error(`THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files`);return null}return r.then(function(t){let n=e.byteOffset||0,r=e.byteLength||0,a=e.count,o=e.byteStride,s=new Uint8Array(t,n,r);return i.decodeGltfBufferAsync?i.decodeGltfBufferAsync(a,o,s,e.mode,e.filter).then(function(e){return e.buffer}):i.ready.then(function(){let t=new ArrayBuffer(a*o);return i.decodeGltfBuffer(new Uint8Array(t),a,o,s,e.mode,e.filter),t})})}return null}},xy=class{constructor(e){this.name=ry.EXT_MESH_GPU_INSTANCING,this.parser=e}createNodeMesh(e){let t=this.parser.json,n=t.nodes[e];if(!n.extensions||!n.extensions[this.name]||n.mesh===void 0)return null;let r=t.meshes[n.mesh];for(let e of r.primitives)if(e.mode!==My.TRIANGLES&&e.mode!==My.TRIANGLE_STRIP&&e.mode!==My.TRIANGLE_FAN&&e.mode!==void 0)return null;let i=n.extensions[this.name].attributes,a=[],o={};for(let e in i)a.push(this.parser.getDependency(`accessor`,i[e]).then(t=>(o[e]=t,o[e])));return a.length<1?null:(a.push(this.parser.createNodeMesh(e)),Promise.all(a).then(e=>{let t=e.pop(),n=t.isGroup?t.children:[t],r=e[0].count,i=[];for(let e of n){let t=new Ds,n=new B,a=new rs,s=new B(1,1,1),c=new nu(e.geometry,e.material,r);for(let e=0;e0||e.search(/^data\:image\/jpeg/)===0?`image/jpeg`:e.search(/\.webp($|\?)/i)>0||e.search(/^data\:image\/webp/)===0?`image/webp`:e.search(/\.ktx2($|\?)/i)>0||e.search(/^data\:image\/ktx2/)===0?`image/ktx2`:`image/png`}var Xy=new Ds,Zy=class{constructor(e={},t={}){this.json=e,this.extensions={},this.plugins={},this.options=t,this.cache=new ty,this.associations=new Map,this.primitiveCache={},this.nodeCache={},this.meshCache={refs:{},uses:{}},this.cameraCache={refs:{},uses:{}},this.lightCache={refs:{},uses:{}},this.sourceCache={},this.textureCache={},this.nodeNamesUsed={};let n=!1,r=-1,i=!1,a=-1;if(typeof navigator<`u`&&navigator.userAgent!==void 0){let e=navigator.userAgent;n=/^((?!chrome|android).)*safari/i.test(e)===!0;let t=e.match(/Version\/(\d+)/);r=n&&t?parseInt(t[1],10):-1,i=e.indexOf(`Firefox`)>-1,a=i?e.match(/Firefox\/([0-9]+)\./)[1]:-1}this.textureLoader=typeof createImageBitmap>`u`||n&&r<17||i&&a<98?new gf(this.options.manager):new Bf(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new pf(this.options.manager),this.fileLoader.setResponseType(`arraybuffer`),this.options.crossOrigin===`use-credentials`&&this.fileLoader.setWithCredentials(!0)}setExtensions(e){this.extensions=e}setPlugins(e){this.plugins=e}parse(e,t){let n=this,r=this.json,i=this.extensions;this.cache.removeAll(),this.nodeCache={},this._invokeAll(function(e){return e._markDefs&&e._markDefs()}),Promise.all(this._invokeAll(function(e){return e.beforeRoot&&e.beforeRoot()})).then(function(){return Promise.all([n.getDependencies(`scene`),n.getDependencies(`animation`),n.getDependencies(`camera`)])}).then(function(t){let a={scene:t[0][r.scene||0],scenes:t[0],animations:t[1],cameras:t[2],asset:r.asset,parser:n,userData:{}};return Hy(i,a,r),Uy(a,r),Promise.all(n._invokeAll(function(e){return e.afterRoot&&e.afterRoot(a)})).then(function(){for(let e of a.scenes)e.updateMatrixWorld();e(a)})}).catch(t)}_markDefs(){let e=this.json.nodes||[],t=this.json.skins||[],n=this.json.meshes||[];for(let n=0,r=t.length;n{let n=this.associations.get(e);n!=null&&this.associations.set(t,n);for(let[n,r]of e.children.entries())i(r,t.children[n])};return i(n,r),r.name+=`_instance_`+e.uses[t]++,r}_invokeOne(e){let t=Object.values(this.plugins);t.push(this);for(let n=0;n=2&&p.setY(t,u[e*a+1]),a>=3&&p.setZ(t,u[e*a+2]),a>=4&&p.setW(t,u[e*a+3]),a>=5)throw Error(`THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.`)}p.normalized=d}return p})}loadTexture(e){let t=this.json,n=this.options,r=t.textures[e].source,i=t.images[r],a=this.textureLoader;if(i.uri){let e=n.manager.getHandler(i.uri);e!==null&&(a=e)}return this.loadTextureImage(e,r,a)}loadTextureImage(e,t,n){let r=this,i=this.json,a=i.textures[e],o=i.images[t],s=(o.uri||o.bufferView)+`:`+a.sampler;if(this.textureCache[s])return this.textureCache[s];let c=this.loadImageSource(t,n).then(function(t){t.flipY=!1,t.name=a.name||o.name||``,t.name===``&&typeof o.uri==`string`&&o.uri.startsWith(`data:image/`)===!1&&(t.name=o.uri);let n=(i.samplers||{})[a.sampler]||{};return t.magFilter=Py[n.magFilter]||1006,t.minFilter=Py[n.minFilter]||1008,t.wrapS=Fy[n.wrapS]||1e3,t.wrapT=Fy[n.wrapT]||1e3,t.generateMipmaps=!t.isCompressedTexture&&t.minFilter!==1003&&t.minFilter!==1006,r.associations.set(t,{textures:e}),t}).catch(function(){return null});return this.textureCache[s]=c,c}loadImageSource(e,t){let n=this,r=this.json,i=this.options;if(this.sourceCache[e]!==void 0)return this.sourceCache[e].then(e=>e.clone());let a=r.images[e],o=self.URL||self.webkitURL,s=a.uri||``,c=!1;if(a.bufferView!==void 0)s=n.getDependency(`bufferView`,a.bufferView).then(function(e){c=!0;let t=new Blob([e],{type:a.mimeType});return s=o.createObjectURL(t),s});else if(a.uri===void 0)throw Error(`THREE.GLTFLoader: Image `+e+` is missing URI and bufferView`);let l=Promise.resolve(s).then(function(e){return new Promise(function(n,r){let a=n;t.isImageBitmapLoader===!0&&(a=function(e){let t=new xs(e);t.needsUpdate=!0,n(t)}),t.load(Rf.resolveURL(e,i.path),a,void 0,r)})}).then(function(e){return c===!0&&o.revokeObjectURL(s),Uy(e,a),e.userData.mimeType=a.mimeType||Yy(a.uri),e}).catch(function(e){throw console.error(`THREE.GLTFLoader: Couldn't load texture`,s),e});return this.sourceCache[e]=l,l}assignTexture(e,t,n,r){let i=this;return this.getDependency(`texture`,n.index).then(function(a){if(!a)return null;if(n.texCoord!==void 0&&n.texCoord>0&&(a=a.clone(),a.channel=n.texCoord),i.extensions[ry.KHR_TEXTURE_TRANSFORM]){let e=n.extensions===void 0?void 0:n.extensions[ry.KHR_TEXTURE_TRANSFORM];if(e){let t=i.associations.get(a);a=i.extensions[ry.KHR_TEXTURE_TRANSFORM].extendTexture(a,e),i.associations.set(a,t)}}return r!==void 0&&(a.colorSpace=r),e[t]=a,a})}assignFinalMaterial(e){let t=e.geometry,n=e.material,r=t.attributes.tangent===void 0,i=t.attributes.color!==void 0,a=t.attributes.normal===void 0;if(e.isPoints){let e=`PointsMaterial:`+n.uuid,t=this.cache.get(e);t||(t=new xu,pl.prototype.copy.call(t,n),t.color.copy(n.color),t.map=n.map,t.sizeAttenuation=!1,this.cache.add(e,t)),n=t}else if(e.isLine){let e=`LineBasicMaterial:`+n.uuid,t=this.cache.get(e);t||(t=new su,pl.prototype.copy.call(t,n),t.color.copy(n.color),t.map=n.map,this.cache.add(e,t)),n=t}if(r||i||a){let e=`ClonedMaterial:`+n.uuid+`:`;r&&(e+=`derivative-tangents:`),i&&(e+=`vertex-colors:`),a&&(e+=`flat-shading:`);let t=this.cache.get(e);t||(t=n.clone(),i&&(t.vertexColors=!0),a&&(t.flatShading=!0),r&&(t.normalScale&&(t.normalScale.y*=-1),t.clearcoatNormalScale&&(t.clearcoatNormalScale.y*=-1)),this.cache.add(e,t),this.associations.set(t,this.associations.get(n))),n=t}e.material=n}getMaterialType(){return jd}loadMaterial(e){let t=this,n=this.json,r=this.extensions,i=n.materials[e],a,o={},s=i.extensions||{},c=[];if(s[ry.KHR_MATERIALS_UNLIT]){let e=r[ry.KHR_MATERIALS_UNLIT];a=e.getMaterialType(),c.push(e.extendParams(o,i,t))}else{let n=i.pbrMetallicRoughness||{};if(o.color=new V(1,1,1),o.opacity=1,Array.isArray(n.baseColorFactor)){let e=n.baseColorFactor;o.color.setRGB(e[0],e[1],e[2],uo),o.opacity=e[3]}n.baseColorTexture!==void 0&&c.push(t.assignTexture(o,`map`,n.baseColorTexture,lo)),o.metalness=n.metallicFactor===void 0?1:n.metallicFactor,o.roughness=n.roughnessFactor===void 0?1:n.roughnessFactor,n.metallicRoughnessTexture!==void 0&&(c.push(t.assignTexture(o,`metalnessMap`,n.metallicRoughnessTexture)),c.push(t.assignTexture(o,`roughnessMap`,n.metallicRoughnessTexture))),a=this._invokeOne(function(t){return t.getMaterialType&&t.getMaterialType(e)}),c.push(Promise.all(this._invokeAll(function(t){return t.extendMaterialParams&&t.extendMaterialParams(e,o)})))}i.doubleSided===!0&&(o.side=2);let l=i.alphaMode||By.OPAQUE;if(l===By.BLEND?(o.transparent=!0,o.depthWrite=!1):(o.transparent=!1,l===By.MASK&&(o.alphaTest=i.alphaCutoff===void 0?.5:i.alphaCutoff)),i.normalTexture!==void 0&&a!==yl&&(c.push(t.assignTexture(o,`normalMap`,i.normalTexture)),o.normalScale=new z(1,1),i.normalTexture.scale!==void 0)){let e=i.normalTexture.scale;o.normalScale.set(e,e)}if(i.occlusionTexture!==void 0&&a!==yl&&(c.push(t.assignTexture(o,`aoMap`,i.occlusionTexture)),i.occlusionTexture.strength!==void 0&&(o.aoMapIntensity=i.occlusionTexture.strength)),i.emissiveFactor!==void 0&&a!==yl){let e=i.emissiveFactor;o.emissive=new V().setRGB(e[0],e[1],e[2],uo)}return i.emissiveTexture!==void 0&&a!==yl&&c.push(t.assignTexture(o,`emissiveMap`,i.emissiveTexture,lo)),Promise.all(c).then(function(){let n=new a(o);return i.name&&(n.name=i.name),Uy(n,i),t.associations.set(n,{materials:e}),i.extensions&&Hy(r,n,i),n})}createUniqueName(e){let t=ip.sanitizeNodeName(e||``);return t in this.nodeNamesUsed?t+`_`+ ++this.nodeNamesUsed[t]:(this.nodeNamesUsed[t]=0,t)}loadGeometries(e){let t=this,n=this.extensions,r=this.primitiveCache;function i(e){return n[ry.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(e,t).then(function(n){return $y(n,e,t)})}let a=[];for(let n=0,o=e.length;nIg(e,1)):o.mode===My.TRIANGLE_FAN&&(e=e.then(e=>Ig(e,2))),r[s]={primitive:o,promise:e},a.push(e)}}return Promise.all(a)}loadMesh(e){let t=this,n=this.json,r=this.extensions,i=n.meshes[e],a=i.primitives,o=[];for(let e=0,t=a.length;e0&&Gy(d,i),d.name=t.createUniqueName(i.name||`mesh_`+e),Uy(d,i),u.extensions&&Hy(r,d,u),t.assignFinalMaterial(d),c.push(d)}for(let n=0,r=c.length;n0){let e=t.userData.pivot,r=n[0];t.pivot=new B().fromArray(e),t.position.x-=e[0],t.position.y-=e[1],t.position.z-=e[2],r.position.set(0,0,0),delete t.userData.pivot}return t})}_loadNodeShallow(e){let t=this.json,n=this.extensions,r=this;if(this.nodeCache[e]!==void 0)return this.nodeCache[e];let i=t.nodes[e],a=i.name?r.createUniqueName(i.name):``,o=[],s=r._invokeOne(function(t){return t.createNodeMesh&&t.createNodeMesh(e)});return s&&o.push(s),i.camera!==void 0&&o.push(r.getDependency(`camera`,i.camera).then(function(e){return r._getNodeRef(r.cameraCache,i.camera,e)})),r._invokeAll(function(t){return t.createNodeAttachment&&t.createNodeAttachment(e)}).forEach(function(e){o.push(e)}),this.nodeCache[e]=Promise.all(o).then(function(t){let o;if(o=i.isBone===!0?new Ul:t.length>1?new tc:t.length===1?t[0]:new ec,o!==t[0])for(let e=0,n=t.length;e1){let e=r.associations.get(o);r.associations.set(o,{...e})}return r.associations.get(o).nodes=e,o}),this.nodeCache[e]}loadScene(e){let t=this.extensions,n=this.json.scenes[e],r=this,i=new tc;n.name&&(i.name=r.createUniqueName(n.name)),Uy(i,n),n.extensions&&Hy(t,i,n);let a=n.nodes||[],o=[];for(let e=0,t=a.length;e{let t=new Map;for(let[e,n]of r.associations)(e instanceof pl||e instanceof xs)&&t.set(e,n);return e.traverse(e=>{let n=r.associations.get(e);n!=null&&t.set(e,n)}),t})(i),i})}_createAnimationTracks(e,t,n,r,i){let a=[],o=e.name?e.name:e.uuid,s=[];function c(e){e.morphTargetInfluences&&s.push(e.name?e.name:e.uuid)}Ry[i.path]===Ry.weights?(c(e),e.isGroup&&e.children.forEach(c)):s.push(o);let l;switch(Ry[i.path]){case Ry.weights:l=Qd;break;case Ry.rotation:l=ef;break;case Ry.translation:case Ry.scale:l=nf;break;default:switch(n.itemSize){case 1:l=Qd;break;default:l=nf}}let u=r.interpolation===void 0?to:zy[r.interpolation],d=this._getArrayFromAccessor(n);for(let e=0,n=s.length;e`,`#include \nvarying vec3 vInjuryPos;\n${t_}\n#ifdef ${N_}\n${D_(r)}\n#endif`).replace(`#include `,`#include \n#ifdef ${N_}\nif (vInjuryPos.y > injuryCutLine(vInjuryPos)) discard;\nif (injuryGone(vInjuryPos) > 0.0) discard;\n#endif`)},t.customProgramCacheKey=()=>`hands-injury-shadow${r?`-body`:``}`,e&&(t.defines={[N_]:``}),t}setWound(e,t){this.uniforms.uInjuryWound.value[Z_(this.wounds,e)]=R.clamp(t,0,1)||0,this.refresh()}wound(e){return this.uniforms.uInjuryWound.value[Z_(this.wounds,e)]}setGone(e,t){this.uniforms.uInjuryGone.value[Z_(this.cuts,e)]=R.clamp(t,0,2)||0,this.refresh()}gone(e){return this.uniforms.uInjuryGone.value[Z_(this.cuts,e)]}setExplicit(e){this.uniforms.uInjuryExplicit.value=+!!e}get explicit(){return this.uniforms.uInjuryExplicit.value>0}setPallor(e){let t=R.clamp(e,0,1)||0;t!==this.uniforms.uInjuryPallor.value&&(this.uniforms.uInjuryPallor.value=t,this.refresh())}get pallor(){return this.uniforms.uInjuryPallor.value}raise(e,t,n=0,r=0){let i=this.slot(e),a=this.uniforms;a.uInjuryBruise.value[i]=Math.max(a.uInjuryBruise.value[i],Math.min(t,1.2)),a.uInjuryBlood.value[i]=Math.max(a.uInjuryBlood.value[i],Math.min(n,1.4));let o=a.uInjuryCut.value[i];o.y=Math.max(o.y,Math.min(r,1))}copyFrom(e){let t=e.uniforms,n=this.uniforms;n.uInjuryBruise.value.set(t.uInjuryBruise.value),n.uInjurySwell.value.set(t.uInjurySwell.value),n.uInjuryBlood.value.set(t.uInjuryBlood.value);for(let[e,r]of n.uInjuryCut.value.entries())r.y=t.uInjuryCut.value[e]?.y??0;for(let[e,r]of n.uInjuryLid.value.entries())r.w=t.uInjuryLid.value[e]?.w??0;n.uInjuryEyeOut.value.copy(t.uInjuryEyeOut.value),n.uInjuryNose.value.copy(t.uInjuryNose.value),n.uInjuryJaw.value=t.uInjuryJaw.value,n.uInjuryWetness.value=t.uInjuryWetness.value,n.uInjuryRaw.value=t.uInjuryRaw.value,n.uInjuryImpactPush.value.set(0,0,0),n.uInjuryWound.value.set(t.uInjuryWound.value),n.uInjuryGone.value.set(t.uInjuryGone.value),n.uInjuryExplicit.value=t.uInjuryExplicit.value,n.uInjuryPallor.value=t.uInjuryPallor.value;for(let[e,r]of n.uInjuryMark.value.entries())r.copy(t.uInjuryMark.value[e]);n.uInjurySpatter.value=t.uInjurySpatter.value,n.uInjuryRun.value=t.uInjuryRun.value,this.refresh()}setBindToPart(e){this.uniforms.uInjuryBindToPart.value.copy(e)}setRawCuts(e){this.uniforms.uInjuryRaw.value=R.clamp(e,0,1)||0}setJaw(e){this.uniforms.uInjuryJaw.value=R.clamp(e,0,1)}setEyesShut(e,t){let[n,r]=this.uniforms.uInjuryLid.value;n.y>-500&&(n.w=R.clamp(e,0,1)||0),r.y>-500&&(r.w=R.clamp(t,0,1)||0)}setEyeOut(e){let t=this.uniforms.uInjuryLid.value,n=(e===`left`||e===`both`)&&t[0].y>-500,r=(e===`right`||e===`both`)&&t[1].y>-500;this.uniforms.uInjuryEyeOut.value.set(+!!n,+!!r),this.index.has(`leftEye`)&&this.set(`leftEye`,{blood:n?1.3:0}),this.index.has(`rightEye`)&&this.set(`rightEye`,{blood:r?1.3:0})}get eyeOut(){let e=this.uniforms.uInjuryEyeOut.value;return e.x>0&&e.y>0?`both`:e.x>0?`left`:e.y>0?`right`:null}get eyesShut(){return[this.uniforms.uInjuryLid.value[0].w,this.uniforms.uInjuryLid.value[1].w]}clear(){this.uniforms.uInjuryBruise.value.fill(0),this.uniforms.uInjurySwell.value.fill(0),this.uniforms.uInjuryBlood.value.fill(0);for(let e of this.uniforms.uInjuryCut.value)e.y=0;this.uniforms.uInjuryJaw.value=0;for(let e of this.uniforms.uInjuryLid.value)e.w=0;this.uniforms.uInjuryEyeOut.value.set(0,0),this.uniforms.uInjuryNose.value.w=0,this.uniforms.uInjuryImpactPush.value.set(0,0,0),this.uniforms.uInjuryWound.value.fill(0),this.uniforms.uInjuryGone.value.fill(0),this.uniforms.uInjuryPallor.value=0;for(let e of this.uniforms.uInjuryMark.value)e.set(0,0,0,0);this.uniforms.uInjurySpatter.value=0,this.uniforms.uInjuryRun.value=1,this.refresh()}level(e){let t=this.slot(e);return{bruise:this.uniforms.uInjuryBruise.value[t],swell:this.uniforms.uInjurySwell.value[t],cut:this.uniforms.uInjuryCut.value[t].y,blood:this.uniforms.uInjuryBlood.value[t]}}};function Z_(e,t){let n=e.indexOf(t);if(n<0)throw Error(`unknown injury ${t}`);return n}function Q_(e,t,n){let r=e.defines??={};delete r[M_],delete r[N_],t&&(r[M_]=``),n&&(r[N_]=``),e.side=n?2:0,e.needsUpdate=!0}var $_=e=>e===`off`?0:e===`reduced`?.2:1.5,ev=330;function tv(e,t){return R.clamp((e-ev)/(p-ev)+Math.max(0,t-200)/1600,0,1)}var nv=1.8,rv=150,iv=240;function av(e,t,n){let r=$_(n),i=n===`full`?1:.6;e.setRawCuts(n===`full`?1:n===`reduced`?.6:0);let a=e=>Math.min(1.2,e/380+t.swelling/900),o=e=>Math.min(2,(e/600+t.swelling/900)*i);e.set(`leftEye`,{bruise:a(t.left_eye),swell:o(t.left_eye)}),e.set(`rightEye`,{bruise:a(t.right_eye),swell:o(t.right_eye)}),e.setEyesShut(tv(t.left_eye,t.swelling),tv(t.right_eye,t.swelling));let s=e=>Math.min(1,e/120),c=e=>Math.min(1.4,(e/120+t.bleeding/240)*r);e.set(`leftBrow`,{bruise:Math.min(1,t.left_eye/700),swell:Math.min(1.2,t.left_eye/900)*i,cut:s(t.left_cut),blood:c(t.left_cut)}),e.set(`rightBrow`,{bruise:Math.min(1,t.right_eye/700),swell:Math.min(1.2,t.right_eye/900)*i,cut:s(t.right_cut),blood:c(t.right_cut)});let l=Math.min(1,t.head/950+t.swelling/1100),u=Math.min(nv,t.swelling/520)*i,d=e=>Math.min(1,Math.max(0,e-rv)/350),f=e=>Math.min(1.2,Math.max(0,e-rv+30)/240)*r;e.set(`leftCheek`,{bruise:l*.9,swell:u,cut:d(t.left_cut),blood:f(t.left_cut)}),e.set(`rightCheek`,{bruise:l*.85,swell:u,cut:d(t.right_cut),blood:f(t.right_cut)}),e.set(`nose`,{bruise:Math.min(1,t.head/800),swell:Math.min(.8,t.head/1400)*i,blood:Math.min(1.4,(Math.max(0,t.head-60)/300+t.bleeding/220)*r)}),e.set(`mouth`,{bruise:Math.min(.8,t.head/1100),cut:Math.min(1,Math.max(0,t.head-250)/500),blood:Math.min(1.3,(Math.max(0,t.head-120)/360+t.bleeding/260)*r)}),e.set(`chin`,{bruise:Math.min(.7,t.head/1300)});let p=t.left_eye>=t.right_eye?-1:1;e.setNoseShift(p*Math.min(1.1,Math.max(0,t.head-520)/450)*i),e.set(`leftJaw`,{bruise:Math.min(.9,t.left_eye/900+t.head/1600)}),e.set(`rightJaw`,{bruise:Math.min(.9,t.right_eye/900+t.head/1600)}),e.set(`forehead`,{bruise:Math.min(.6,t.swelling/1200),cut:Math.min(1,Math.max(0,t.swelling-iv)/300),blood:Math.min(1.2,Math.max(0,t.swelling-iv)/220)*r})}function ov(e,t){return Math.min(1,(Math.max(0,e.bleeding-10)/220+Math.max(0,e.left_cut+e.right_cut-60)/650)*$_(t))}function sv(e,t,n){let r=$_(n),i=Math.min(1.1,t.body/620);e.set(`leftRibs`,{bruise:i,swell:Math.min(1,t.body/1300)}),e.set(`rightRibs`,{bruise:i*.9,swell:Math.min(1,t.body/1400)}),e.set(`solarPlexus`,{bruise:Math.min(1,t.body/800)}),e.set(`leftPec`,{bruise:Math.min(.8,t.body/1100)}),e.set(`rightPec`,{bruise:Math.min(.8,t.body/1150)});let a=Math.min(1.4,(t.bleeding/200+(t.left_cut+t.right_cut)/450)*r);e.set(`neckSmear`,{blood:a}),e.set(`leftShoulderSmear`,{blood:Math.min(1.2,t.left_cut/300)*r}),e.set(`rightShoulderSmear`,{blood:Math.min(1.2,t.right_cut/300)*r})}var cv=3.05,lv=3.85,uv=4.05,dv=3.42,fv=dv*.72,pv=[.5,.88,1.26];function mv(e){let t=cv/Math.max(1,e.ring_half_width),n=cv/Math.max(1,e.ring_half_height);return{x:e=>e*t,z:e=>-e*n}}var hv={blue:1920728,red:12131356,neutral:15067115},gv=128,_v=4,vv=.12,yv=.82,bv={edge:4851467,core:[`rgba(40,3,6,0.9)`,`rgba(58,5,9,0.65)`,`rgba(70,7,11,0)`]},xv=6,Sv=.29,Cv=14,wv=e=>()=>(e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296);function Tv(e){let t=wv(e);return{lobes:Array.from({length:5+Math.floor(t()*4)},(e,n)=>{let r=t()*Math.PI*2,i=n===0?0:6+t()*12,a=n===0?16+t()*6:8+t()*9;return{x:64+Math.cos(r)*i,y:64+Math.sin(r)*i,rx:a,ry:a*(.55+t()*.45),turn:t()*Math.PI}}),fill:.55+t()*.2,rim:.95,satellites:6+Math.floor(t()*6)}}function Ev(e){let t=document.createElement(`canvas`);t.width=gv,t.height=gv;let n=t.getContext(`2d`);if(n!==null){let t=Tv(e),r=wv(e^1540483477);n.clearRect(0,0,gv,gv),n.fillStyle=`rgba(255,255,255,1)`,n.strokeStyle=`rgba(255,255,255,1)`,n.globalAlpha=t.rim,n.lineWidth=3.5;for(let e of t.lobes)n.beginPath(),n.ellipse(e.x,e.y,e.rx,e.ry,e.turn,0,Math.PI*2),n.stroke();let i=()=>{n.beginPath();for(let e of t.lobes){let t=Math.max(1,e.rx-1.5);n.moveTo(e.x+Math.cos(e.turn)*t,e.y+Math.sin(e.turn)*t),n.ellipse(e.x,e.y,t,Math.max(1,e.ry-1.5),e.turn,0,Math.PI*2)}n.fill()};n.globalCompositeOperation=`destination-out`,n.globalAlpha=1,i(),n.globalCompositeOperation=`source-over`,n.globalAlpha=t.fill,i();for(let e=0;e{let t=t=>Math.round((e>>t&255)*.8);return`rgb(${t(16)},${t(8)},${t(0)})`},Ov=class{scene;size;mesh;canvas;context;texture;source;uploader=null;region=new _p;regionAt=new z;material;geometry;stamps=[];tinted=new Map;pixelsPerMetre;dirty=!1;sinceUpload=0;uploadInterval=vv;painted=0;streakSeed=0;constructor(e,t=1024){this.scene=e,this.size=t,this.canvas=document.createElement(`canvas`),this.canvas.width=t,this.canvas.height=t,this.context=this.canvas.getContext(`2d`),this.context?.clearRect(0,0,t,t);for(let e=0;e<_v;e+=1)this.stamps.push(Ev(975110353+e*977));this.pixelsPerMetre=t/(cv*2),this.texture=new Bu(this.canvas),this.texture.colorSpace=xo,this.texture.anisotropy=4,this.texture.flipY=!1,this.source=new Ms(this.canvas),this.region.makeEmpty(),this.material=new Hd({map:this.texture,transparent:!0,depthWrite:!1,roughness:yv,metalness:0,polygonOffset:!0,polygonOffsetFactor:-1,polygonOffsetUnits:-1}),this.geometry=new Ed(cv*2,cv*2);let n=this.geometry.getAttribute(`uv`);for(let e=0;e3.05||Math.abs(t)>3.05)return;let c=this.context;if(this.painted+=1,this.dirty=!0,this.mesh.visible=!0,c===null)return;let l=this.tintedStamp(o,s),u=this.pixel(e,t),d=Math.max(1,n*this.pixelsPerMetre),f=Math.max(1,r*this.pixelsPerMetre);this.grow(u.x,u.y,Math.hypot(d,f)/2),c.save(),c.globalAlpha=R.clamp(a,0,1),c.translate(u.x,u.y),c.rotate(Number.isFinite(i)?i:0),c.drawImage(l,-d/2,-f/2,d,f),c.restore()}tintedStamp(e,t){let n=this.tinted.get(e);return n===void 0&&(n=this.stamps.map(t=>{let n=document.createElement(`canvas`);n.width=gv,n.height=gv;let r=n.getContext(`2d`);return r!==null&&(r.drawImage(t,0,0),r.globalCompositeOperation=`source-in`,r.fillStyle=Dv(e),r.fillRect(0,0,gv,gv)),n}),this.tinted.set(e,n)),n[Math.abs(Math.trunc(t))%_v]}pool(e,t,n,r,i,a=bv){this.stain(e,t,n*2.3,n*2,i*1.7,r*.8,a.edge,i);let o=this.context;if(o===null||Math.abs(e)>3.05||Math.abs(t)>3.05)return;let s=this.pixel(e,t),c=Math.max(1,n*1.15*this.pixelsPerMetre);this.grow(s.x,s.y,c);let l=o.createRadialGradient(s.x,s.y,0,s.x,s.y,c);l.addColorStop(0,a.core[0]),l.addColorStop(.65,a.core[1]),l.addColorStop(1,a.core[2]),o.save(),o.globalAlpha=R.clamp(r,0,1),o.fillStyle=l,o.beginPath(),o.ellipse(s.x,s.y,c,c*.86,i*.9,0,Math.PI*2),o.fill(),o.restore()}streakRandom(){return this.streakSeed=Math.imul(this.streakSeed^this.streakSeed>>>15,1|this.streakSeed),this.streakSeed^=this.streakSeed+Math.imul(this.streakSeed^this.streakSeed>>>7,61|this.streakSeed),((this.streakSeed^this.streakSeed>>>14)>>>0)/4294967296}smear(e,t,n,r,i,a,o){if(!Number.isFinite(e+t+n+r+i)||Math.abs(e)>3.05||Math.abs(t)>3.05)return;let s=this.context;if(this.painted+=1,this.dirty=!0,this.mesh.visible=!0,s===null)return;let c=(e+cv)*this.pixelsPerMetre,l=(t+cv)*this.pixelsPerMetre,u=(R.clamp(n,-cv,cv)+cv)*this.pixelsPerMetre,d=(R.clamp(r,-cv,cv)+cv)*this.pixelsPerMetre,f=Math.max(1,i*this.pixelsPerMetre);this.grow(c,l,f),this.grow(u,d,f);let p=Math.hypot(u-c,d-l),m=p>1e-6?(l-d)/p:1,h=p>1e-6?(u-c)/p:0;this.streakSeed=1374496523^Math.imul(this.painted,40503),s.save(),s.strokeStyle=Dv(o),s.lineCap=`round`;for(let e=0;e3.05||Math.abs(t)>3.05)return;let o=this.context;if(this.painted+=1,this.dirty=!0,this.mesh.visible=!0,o===null)return;let s=(e+cv)*this.pixelsPerMetre,c=(t+cv)*this.pixelsPerMetre,l=Math.max(2,Sv*this.pixelsPerMetre),u=l*.36;this.grow(s,c,l*.6);let d=(r?-1:1)*u*.06,f=l/Cv;o.save(),o.globalAlpha=R.clamp(i,0,1),o.fillStyle=Dv(a),o.translate(s,c),o.rotate(-n);for(let e=0;et.min.x&&t.max.y>t.min.y?this.uploader.copyTextureToTexture(this.source,this.texture,t,this.regionAt.copy(t.min)):this.texture.needsUpdate=!0,t.makeEmpty(),this.dirty=!1,this.sinceUpload=0}clear(){this.context?.clearRect(0,0,this.size,this.size),this.painted=0,this.dirty=!1,this.region.makeEmpty(),this.texture.needsUpdate=!0,this.mesh.visible=!1}dispose(){this.scene.remove(this.mesh),this.texture.dispose(),this.source.dispose(),this.material.dispose(),this.geometry.dispose()}};function kv(){let e=new Cd(1,2);e.deleteAttribute(`normal`),e.deleteAttribute(`uv`);let t=Kg(e,1e-4);e.dispose();let n=t.getAttribute(`position`),r=new B;for(let e=0;e=120?5:t>=90?3:t>=60?2:+(t>=40):e===`hit`?t>=130?4:t>=100?3:t>=75?2:+(t>=50):0:0}function Mv(e,t){return Math.min(800,Math.round(Math.max(0,e)*4.5+Math.max(0,t)*2.8))}var Nv=1.1,Pv=.6,Fv=.35,Iv=1.2;function Lv(){let e=new Od(1,8,6),t=e.getAttribute(`position`);for(let e=0;e1+(e-1)*28+t%28;for(let e=0;e<28;e+=1)a.push(0,o(1,e+1),o(1,e));for(let e=1;e<6;e+=1)for(let t=0;t<28;t+=1)a.push(o(e,t),o(e,t+1),o(e+1,t)),a.push(o(e,t+1),o(e+1,t+1),o(e+1,t));let s=new hl;return s.setAttribute(`position`,new rl(r,3)),s.setAttribute(`uv`,new rl(i,2)),s.setIndex(a),s.computeVertexNormals(),s}function Wv(e,t){let n=e.getAttribute(`position`),r=e.getIndex();if(r===null)return[];let i=new Map,a=new Int32Array(n.count),o=new Uint8Array(n.count),s=new B;for(let e=0;eo[e]===1);for(let e=0;e<3;e+=1){let r=a[t[e]],o=a[t[(e+1)%3]],s=r=2&&l.push(Math.floor(e/n.count),e%n.count);return l}var Gv=.5,Kv=new B,qv=new B,Jv=new B,Yv=new B,Xv=new B;function Zv(e,t,n){Xv.copy(e).addScaledVector(t,-e.dot(t)).multiplyScalar(Gv/n).add(t).normalize()}function Qv(e,t,n,r,i=.01,a){let o=Math.floor(t.length/6),s=e.getAttribute(`position`),c=e.getAttribute(`normal`),l=e.getAttribute(`uv`);(s===void 0||c===void 0||l===void 0||s.count!==o*3)&&(s=new el(new Float32Array(o*9),3).setUsage(Do),c=new el(new Float32Array(o*9),3).setUsage(Do),l=new el(new Float32Array(o*6),2).setUsage(Do),e.setAttribute(`position`,s),e.setAttribute(`normal`,c),e.setAttribute(`uv`,l)),Kv.set(1,0,0),Math.abs(r.x)>.9&&Kv.set(0,0,1),a!==void 0&&a.lengthSq()>1e-8&&Math.abs(a.dot(r))<.95*a.length()&&Kv.copy(a),qv.crossVectors(r,Kv).normalize(),Kv.crossVectors(qv,r).normalize();let u=1e-6;for(let e=0;e=0)continue;let i=`${Math.round(s.x*1e5)},${Math.round(s.y*1e5)},${Math.round(s.z*1e5)}`,l=a.get(i)??n;a.set(i,l),o[n]=l}c.multiplyScalar(1/Math.max(1,r.count));for(let e=0;e{let t=e;for(;u.has(t);)t=u.get(t);return t},f=[];for(let[e,t]of l){if(t!==1)continue;f.push(e);let n=d(Math.floor(e/i)),r=d(e%i);n!==r&&u.set(n,r)}let p=new Map;for(let e of f){let t=d(e%i),n=p.get(t)??[];n.push(e),p.set(t,n)}let m=[],h=[],g=[],_=new hl,v=new hl,y=new B,b=new B,x=[];for(let e of p.values()){if(e.length<3)continue;let r=new Float32Array(e.length*6);y.set(0,0,0);let a=0;for(let[o,c]of e.entries()){let e=Math.floor(c/i),l=c%i;y.add(s.fromBufferAttribute(t,e)),s.toArray(r,o*6),y.add(s.fromBufferAttribute(t,l)),s.toArray(r,o*6+3),a+=n===void 0?r[o*6+1]+r[o*6+4]:n.getY(e)+n.getY(l)}y.multiplyScalar(1/(e.length*2));let o=0;for(let e=0;e(n=Math.imul(n^n>>>15,1|n),n^=n+Math.imul(n^n>>>7,61|n),((n^n>>>14)>>>0)/4294967296);for(let e=0;e<46;e+=1){let e=r()*Math.PI*2,n=14+r()*42;t.fillStyle=r()<.5?`rgba(150,28,30,0.55)`:`rgba(40,4,8,0.5)`,t.beginPath(),t.ellipse(64+Math.cos(e)*n,64+Math.sin(e)*n,3+r()*6,2+r()*3,e,0,Math.PI*2),t.fill()}let i=(e,n,r,i)=>{t.fillStyle=i,t.beginPath(),t.arc(e,n,r,0,Math.PI*2),t.fill()};i(64,38,10,`#8f7c64`),i(61,36,4.5,`#6a2a25`),i(66,78,7,`#7a3c34`),i(66,78,4.5,`#150203`),i(41,64,3,`#1d0204`),i(90,69,2.6,`#1d0204`);for(let e=0;e<70;e+=1){let e=r()*Math.PI*2,t=r()*60;i(64+Math.cos(e)*t,64+Math.sin(e)*t,.6+r()*1.6,r()<.4?`rgba(190,60,50,0.5)`:`rgba(20,2,4,0.55)`)}ny(t)}let n=new Bu(e);return n.colorSpace=xo,n}function ny(e){e.lineWidth=7,e.strokeStyle=`rgba(214,178,92,0.85)`,e.beginPath(),e.arc(64,64,55,0,Math.PI*2),e.stroke(),e.lineWidth=4,e.strokeStyle=`#b8775c`,e.beginPath(),e.arc(64,64,61,0,Math.PI*2),e.stroke()}function ry(){let e=document.createElement(`canvas`);e.width=128,e.height=128;let t=e.getContext(`2d`);if(t!==null){let e=t.createRadialGradient(64,64,6,64,64,64);e.addColorStop(0,`#741014`),e.addColorStop(.7,`#52090d`),e.addColorStop(1,`#300407`),t.fillStyle=e,t.fillRect(0,0,128,128);let n=(e,n,r,i)=>{t.fillStyle=i,t.beginPath(),t.arc(e,n,r,0,Math.PI*2),t.fill()};for(let[e,t,r]of[[46,60,13],[84,66,10]])n(e,t,r,`#e4d8c0`),n(e,t,r*.62,`#a4483c`),n(e-r*.2,t-r*.2,r*.25,`rgba(220,110,90,0.6)`);for(let e=0;e<9;e+=1){let t=Math.PI*(.15+e/8*.7);n(64+Math.cos(t)*34,64+Math.sin(t)*34,3.2,`#d9c9b3`)}n(30,84,3.4,`#1a0204`),n(98,46,3,`#1a0204`),n(66,30,2.6,`#1a0204`),ny(t)}let n=new Bu(e);return n.colorSpace=xo,n}function iy(){let e=document.createElement(`canvas`);e.width=128,e.height=128;let t=e.getContext(`2d`);if(t!==null){let e=t.createRadialGradient(64,64,6,64,64,64);e.addColorStop(0,`#7c1218`),e.addColorStop(.7,`#560a0f`),e.addColorStop(1,`#2e0407`),t.fillStyle=e,t.fillRect(0,0,128,128);let n=2135587861,r=()=>(n=Math.imul(n^n>>>15,1|n),n^=n+Math.imul(n^n>>>7,61|n),((n^n>>>14)>>>0)/4294967296);for(let e=0;e<11;e+=1){let n=e/11*Math.PI*2+r()*.3,i=26+r()*12;t.fillStyle=r()<.5?`#8e1c20`:`#6c1016`,t.strokeStyle=`rgba(30,3,6,0.8)`,t.lineWidth=1.6,t.beginPath(),t.ellipse(64+Math.cos(n)*i,64+Math.sin(n)*i,13+r()*5,8+r()*4,n+Math.PI/2,0,Math.PI*2),t.fill(),t.stroke()}let i=(e,n,r,i)=>{t.fillStyle=i,t.beginPath(),t.arc(e,n,r,0,Math.PI*2),t.fill()};i(58,60,15,`#e8dcc4`),i(58,60,9.5,`#a8463a`),i(55,57,3.5,`rgba(226,116,96,0.65)`),i(82,70,4.2,`#170204`),i(80,80,3,`#3a0a2a`),i(88,62,2.2,`#e0d2a0`);for(let e=0;e<70;e+=1){let e=r()*Math.PI*2,t=18+r()*40;i(64+Math.cos(e)*t,64+Math.sin(e)*t,.6+r()*1.5,r()<.4?`rgba(200,70,56,0.5)`:`rgba(20,2,4,0.55)`)}ny(t)}let n=new Bu(e);return n.colorSpace=xo,n}function ay(){let e=document.createElement(`canvas`);e.width=128,e.height=128;let t=e.getContext(`2d`);if(t!==null){t.fillStyle=`#3c060a`,t.fillRect(0,0,128,128);let e=461845907,n=()=>(e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296),r=(e,n,r,i,a,o,s)=>{t.fillStyle=o,t.beginPath(),t.ellipse(e,n,r,i,a,0,Math.PI*2),t.fill(),s!==void 0&&(t.strokeStyle=s,t.lineWidth=1.4,t.stroke())};t.strokeStyle=`#7c151a`,t.lineWidth=12,t.beginPath(),t.arc(64,64,46,0,Math.PI*2),t.stroke(),r(40,30,13,9,.5,`#8a1c20`,`rgba(30,3,6,0.8)`),r(88,30,13,9,-.5,`#8a1c20`,`rgba(30,3,6,0.8)`),r(40,58,15,10,.4,`#4a1410`);for(let e=0;e<15;e+=1){let e=n()*Math.PI*2,t=n()*25,i=68+Math.cos(e)*t,a=74+Math.sin(e)*t*.8,o=6+n()*4;r(i,a,o,o*(.7+n()*.3),n()*Math.PI,`#d49a98`,`rgba(110,30,36,0.9)`),r(i,a,o*.45,o*.35,n()*Math.PI,n()<.4?`#6a5a14`:`#3a070b`)}r(64,26,11,9,0,`#e6dac2`),r(64,26,7,5.5,0,`#b4594a`),r(64,13,4,3.4,0,`#efe6c8`,`#8a7c60`),r(57,40,4.4,4.4,0,`#160204`,`#a03038`),r(71,40,4,3.4,0,`#2a0a2c`);for(let e=0;e<80;e+=1){let e=n()*Math.PI*2,t=n()*54;r(64+Math.cos(e)*t,64+Math.sin(e)*t,.6+n()*1.6,.6+n()*1.6,0,n()<.3?`rgba(226,190,90,0.6)`:n()<.5?`rgba(190,50,44,0.5)`:`rgba(20,2,4,0.55)`)}ny(t)}let n=new Bu(e);return n.colorSpace=xo,n}function oy(){let e=.09,t=[];for(let e=0;e<9;e+=1){let n=e/9*Math.PI*2,r=.32*(.62+.38*Math.abs(Math.sin(e*2.3+.4)));t.push([Math.cos(n)*r,Math.sin(n)*r])}let n=(t,n,r)=>{let i=Math.hypot(t,n,1);return[t/i*r,n/i*r,1/i*r-e]},r=[],i=[],a=[.07,.035,.025],o=[.78,.7,.58],s=[.42,.05,.05],c=(e,t,n,a)=>{r.push(...e,...t,...n);for(let e=0;e<3;e+=1)i.push(...a)};for(let r=0;r<9;r+=1){let[i,l]=t[r],[u,d]=t[(r+1)%9];c(n(0,0,e),n(i,l,e),n(u,d,e),a),c(n(0,0,.08299999999999999),n(u,d,.08299999999999999),n(i,l,.08299999999999999),r%3==0?o:s),c(n(i,l,e),n(i,l,.08299999999999999),n(u,d,e),o),c(n(u,d,e),n(i,l,.08299999999999999),n(u,d,.08299999999999999),o)}let l=new hl;return l.setAttribute(`position`,new rl(r,3)),l.setAttribute(`color`,new rl(i,3)),l.computeVertexNormals(),l.computeBoundingSphere(),l}function sy(){let e=document.createElement(`canvas`);e.width=128,e.height=128;let t=e.getContext(`2d`);if(t!==null){let e=t.createRadialGradient(64,60,6,64,64,66);e.addColorStop(0,`#7a1016`),e.addColorStop(.75,`#530a0e`),e.addColorStop(1,`#300408`),t.fillStyle=e,t.fillRect(0,0,128,128),t.fillStyle=`#8a2a2e`,t.beginPath(),t.ellipse(64,50,22,17,0,0,Math.PI*2),t.fill(),t.fillStyle=`rgba(220,120,120,0.35)`,t.beginPath(),t.ellipse(60,45,9,5,-.3,0,Math.PI*2),t.fill(),t.strokeStyle=`#a99c86`,t.lineWidth=5,t.beginPath(),t.ellipse(64,62,50,50,0,Math.PI*.08,Math.PI*.92),t.stroke();for(let e=0;e<12;e+=1){let n=Math.PI*(.14+e/11*.72);t.save(),t.translate(64+Math.cos(n)*42,62+Math.sin(n)*42),t.rotate(n+Math.PI/2),t.fillStyle=e%5==2?`#3a0508`:`#ece4cf`,t.fillRect(-3.5,-4.5,7,9),t.restore()}let n=625341585,r=()=>(n=Math.imul(n^n>>>15,1|n),n^=n+Math.imul(n^n>>>7,61|n),((n^n>>>14)>>>0)/4294967296);for(let e=0;e<60;e+=1)t.fillStyle=r()<.5?`rgba(150,20,24,0.6)`:`rgba(20,2,4,0.5)`,t.beginPath(),t.arc(r()*128,r()*128,.8+r()*2.2,0,Math.PI*2),t.fill();ny(t)}let n=new Bu(e);return n.colorSpace=xo,n}function cy(){let e=document.createElement(`canvas`);e.width=128,e.height=64;let t=e.getContext(`2d`);if(t!==null){let e=t.createLinearGradient(0,0,128,0);e.addColorStop(0,`#e9ddd4`),e.addColorStop(.42,`#e9ddd4`),e.addColorStop(.62,`#8a2a2c`),e.addColorStop(.85,`#4a070b`),e.addColorStop(1,`#e9ddd4`),t.fillStyle=e,t.fillRect(0,0,128,64),t.strokeStyle=`rgba(170,20,26,0.75)`,t.lineWidth=.8;for(let e=0;e<14;e+=1){let n=e/14*Math.PI*2;t.beginPath(),t.moveTo(32+Math.cos(n)*30,32+Math.sin(n)*26),t.quadraticCurveTo(32+Math.cos(n+.3)*20,32+Math.sin(n+.3)*18,32+Math.cos(n)*11,32+Math.sin(n)*11),t.stroke()}let n=t.createRadialGradient(32,32,2,32,32,9);n.addColorStop(0,`#6b4524`),n.addColorStop(.8,`#4a2d14`),n.addColorStop(1,`#1e1208`),t.fillStyle=n,t.beginPath(),t.arc(32,32,9,0,Math.PI*2),t.fill(),t.fillStyle=`#050302`,t.beginPath(),t.arc(32,32,4,0,Math.PI*2),t.fill(),t.fillStyle=`rgba(255,255,255,0.85)`,t.beginPath(),t.arc(29.5,29.5,1.4,0,Math.PI*2),t.fill()}let n=new Bu(e);return n.colorSpace=xo,n}function ly(e){let t=new Map,n=new Map,r=e.clone();return uy(e,r,function(e,r){t.set(r,e),n.set(e,r)}),r.traverse(function(e){if(!e.isSkinnedMesh)return;let r=e,i=t.get(e),a=i.skeleton.bones;r.skeleton=i.skeleton.clone(),r.bindMatrix.copy(i.bindMatrix),r.skeleton.bones=a.map(function(e){return n.get(e)}),r.bind(r.skeleton,r.bindMatrix)}),r}function uy(e,t,n){n(e,t);for(let r=0;r=2.0 are supported.`));return}let c=new cb(i,{path:t||this.resourcePath||``,crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});c.fileLoader.setRequestHeader(this.requestHeader);for(let e=0;e=0&&o[t]===void 0&&console.warn(`THREE.GLTFLoader: Unknown extension "`+t+`".`)}}c.setExtensions(a),c.setPlugins(o),c.parse(n,r)}parseAsync(e,t){let n=this;return new Promise(function(r,i){n.parse(e,t,r,i)})}};function fy(){let e={};return{get:function(t){return e[t]},add:function(t,n){e[t]=n},remove:function(t){delete e[t]},removeAll:function(){e={}}}}function py(e,t,n){let r=e.json.materials[t];return r.extensions&&r.extensions[n]?r.extensions[n]:null}var my={KHR_BINARY_GLTF:`KHR_binary_glTF`,KHR_DRACO_MESH_COMPRESSION:`KHR_draco_mesh_compression`,KHR_LIGHTS_PUNCTUAL:`KHR_lights_punctual`,KHR_MATERIALS_CLEARCOAT:`KHR_materials_clearcoat`,KHR_MATERIALS_DISPERSION:`KHR_materials_dispersion`,KHR_MATERIALS_IOR:`KHR_materials_ior`,KHR_MATERIALS_SHEEN:`KHR_materials_sheen`,KHR_MATERIALS_SPECULAR:`KHR_materials_specular`,KHR_MATERIALS_TRANSMISSION:`KHR_materials_transmission`,KHR_MATERIALS_IRIDESCENCE:`KHR_materials_iridescence`,KHR_MATERIALS_ANISOTROPY:`KHR_materials_anisotropy`,KHR_MATERIALS_UNLIT:`KHR_materials_unlit`,KHR_MATERIALS_VOLUME:`KHR_materials_volume`,KHR_TEXTURE_BASISU:`KHR_texture_basisu`,KHR_TEXTURE_TRANSFORM:`KHR_texture_transform`,KHR_MESH_QUANTIZATION:`KHR_mesh_quantization`,KHR_MATERIALS_EMISSIVE_STRENGTH:`KHR_materials_emissive_strength`,EXT_MATERIALS_BUMP:`EXT_materials_bump`,EXT_TEXTURE_WEBP:`EXT_texture_webp`,EXT_TEXTURE_AVIF:`EXT_texture_avif`,EXT_MESHOPT_COMPRESSION:`EXT_meshopt_compression`,KHR_MESHOPT_COMPRESSION:`KHR_meshopt_compression`,EXT_MESH_GPU_INSTANCING:`EXT_mesh_gpu_instancing`},hy=class{constructor(e){this.parser=e,this.name=my.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){let e=this.parser,t=this.parser.json.nodes||[];for(let n=0,r=t.length;n=0)throw Error(`THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures`);return null}return t.loadTextureImage(e,i.source,a)}},ky=class{constructor(e){this.parser=e,this.name=my.EXT_TEXTURE_WEBP}loadTexture(e){let t=this.name,n=this.parser,r=n.json,i=r.textures[e];if(!i.extensions||!i.extensions[t])return null;let a=i.extensions[t],o=r.images[a.source],s=n.textureLoader;if(o.uri){let e=n.options.manager.getHandler(o.uri);e!==null&&(s=e)}return n.loadTextureImage(e,a.source,s)}},Ay=class{constructor(e){this.parser=e,this.name=my.EXT_TEXTURE_AVIF}loadTexture(e){let t=this.name,n=this.parser,r=n.json,i=r.textures[e];if(!i.extensions||!i.extensions[t])return null;let a=i.extensions[t],o=r.images[a.source],s=n.textureLoader;if(o.uri){let e=n.options.manager.getHandler(o.uri);e!==null&&(s=e)}return n.loadTextureImage(e,a.source,s)}},jy=class{constructor(e,t){this.name=t,this.parser=e}loadBufferView(e){let t=this.parser.json,n=t.bufferViews[e];if(n.extensions&&n.extensions[this.name]){let e=n.extensions[this.name],r=this.parser.getDependency(`buffer`,e.buffer),i=this.parser.options.meshoptDecoder;if(!i||!i.supported){if(t.extensionsRequired&&t.extensionsRequired.indexOf(this.name)>=0)throw Error(`THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files`);return null}return r.then(function(t){let n=e.byteOffset||0,r=e.byteLength||0,a=e.count,o=e.byteStride,s=new Uint8Array(t,n,r);return i.decodeGltfBufferAsync?i.decodeGltfBufferAsync(a,o,s,e.mode,e.filter).then(function(e){return e.buffer}):i.ready.then(function(){let t=new ArrayBuffer(a*o);return i.decodeGltfBuffer(new Uint8Array(t),a,o,s,e.mode,e.filter),t})})}return null}},My=class{constructor(e){this.name=my.EXT_MESH_GPU_INSTANCING,this.parser=e}createNodeMesh(e){let t=this.parser.json,n=t.nodes[e];if(!n.extensions||!n.extensions[this.name]||n.mesh===void 0)return null;let r=t.meshes[n.mesh];for(let e of r.primitives)if(e.mode!==Uy.TRIANGLES&&e.mode!==Uy.TRIANGLE_STRIP&&e.mode!==Uy.TRIANGLE_FAN&&e.mode!==void 0)return null;let i=n.extensions[this.name].attributes,a=[],o={};for(let e in i)a.push(this.parser.getDependency(`accessor`,i[e]).then(t=>(o[e]=t,o[e])));return a.length<1?null:(a.push(this.parser.createNodeMesh(e)),Promise.all(a).then(e=>{let t=e.pop(),n=t.isGroup?t.children:[t],r=e[0].count,i=[];for(let e of n){let t=new Rs,n=new B,a=new ms,s=new B(1,1,1),c=new pu(e.geometry,e.material,r);for(let e=0;e0||e.search(/^data\:image\/jpeg/)===0?`image/jpeg`:e.search(/\.webp($|\?)/i)>0||e.search(/^data\:image\/webp/)===0?`image/webp`:e.search(/\.ktx2($|\?)/i)>0||e.search(/^data\:image\/ktx2/)===0?`image/ktx2`:`image/png`}var sb=new Rs,cb=class{constructor(e={},t={}){this.json=e,this.extensions={},this.plugins={},this.options=t,this.cache=new fy,this.associations=new Map,this.primitiveCache={},this.nodeCache={},this.meshCache={refs:{},uses:{}},this.cameraCache={refs:{},uses:{}},this.lightCache={refs:{},uses:{}},this.sourceCache={},this.textureCache={},this.nodeNamesUsed={};let n=!1,r=-1,i=!1,a=-1;if(typeof navigator<`u`&&navigator.userAgent!==void 0){let e=navigator.userAgent;n=/^((?!chrome|android).)*safari/i.test(e)===!0;let t=e.match(/Version\/(\d+)/);r=n&&t?parseInt(t[1],10):-1,i=e.indexOf(`Firefox`)>-1,a=i?e.match(/Firefox\/([0-9]+)\./)[1]:-1}this.textureLoader=typeof createImageBitmap>`u`||n&&r<17||i&&a<98?new Df(this.options.manager):new Zf(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new wf(this.options.manager),this.fileLoader.setResponseType(`arraybuffer`),this.options.crossOrigin===`use-credentials`&&this.fileLoader.setWithCredentials(!0)}setExtensions(e){this.extensions=e}setPlugins(e){this.plugins=e}parse(e,t){let n=this,r=this.json,i=this.extensions;this.cache.removeAll(),this.nodeCache={},this._invokeAll(function(e){return e._markDefs&&e._markDefs()}),Promise.all(this._invokeAll(function(e){return e.beforeRoot&&e.beforeRoot()})).then(function(){return Promise.all([n.getDependencies(`scene`),n.getDependencies(`animation`),n.getDependencies(`camera`)])}).then(function(t){let a={scene:t[0][r.scene||0],scenes:t[0],animations:t[1],cameras:t[2],asset:r.asset,parser:n,userData:{}};return $y(i,a,r),eb(a,r),Promise.all(n._invokeAll(function(e){return e.afterRoot&&e.afterRoot(a)})).then(function(){for(let e of a.scenes)e.updateMatrixWorld();e(a)})}).catch(t)}_markDefs(){let e=this.json.nodes||[],t=this.json.skins||[],n=this.json.meshes||[];for(let n=0,r=t.length;n{let n=this.associations.get(e);n!=null&&this.associations.set(t,n);for(let[n,r]of e.children.entries())i(r,t.children[n])};return i(n,r),r.name+=`_instance_`+e.uses[t]++,r}_invokeOne(e){let t=Object.values(this.plugins);t.push(this);for(let n=0;n=2&&p.setY(t,u[e*a+1]),a>=3&&p.setZ(t,u[e*a+2]),a>=4&&p.setW(t,u[e*a+3]),a>=5)throw Error(`THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.`)}p.normalized=d}return p})}loadTexture(e){let t=this.json,n=this.options,r=t.textures[e].source,i=t.images[r],a=this.textureLoader;if(i.uri){let e=n.manager.getHandler(i.uri);e!==null&&(a=e)}return this.loadTextureImage(e,r,a)}loadTextureImage(e,t,n){let r=this,i=this.json,a=i.textures[e],o=i.images[t],s=(o.uri||o.bufferView)+`:`+a.sampler;if(this.textureCache[s])return this.textureCache[s];let c=this.loadImageSource(t,n).then(function(t){t.flipY=!1,t.name=a.name||o.name||``,t.name===``&&typeof o.uri==`string`&&o.uri.startsWith(`data:image/`)===!1&&(t.name=o.uri);let n=(i.samplers||{})[a.sampler]||{};return t.magFilter=Gy[n.magFilter]||1006,t.minFilter=Gy[n.minFilter]||1008,t.wrapS=Ky[n.wrapS]||1e3,t.wrapT=Ky[n.wrapT]||1e3,t.generateMipmaps=!t.isCompressedTexture&&t.minFilter!==1003&&t.minFilter!==1006,r.associations.set(t,{textures:e}),t}).catch(function(){return null});return this.textureCache[s]=c,c}loadImageSource(e,t){let n=this,r=this.json,i=this.options;if(this.sourceCache[e]!==void 0)return this.sourceCache[e].then(e=>e.clone());let a=r.images[e],o=self.URL||self.webkitURL,s=a.uri||``,c=!1;if(a.bufferView!==void 0)s=n.getDependency(`bufferView`,a.bufferView).then(function(e){c=!0;let t=new Blob([e],{type:a.mimeType});return s=o.createObjectURL(t),s});else if(a.uri===void 0)throw Error(`THREE.GLTFLoader: Image `+e+` is missing URI and bufferView`);let l=Promise.resolve(s).then(function(e){return new Promise(function(n,r){let a=n;t.isImageBitmapLoader===!0&&(a=function(e){let t=new Ms(e);t.needsUpdate=!0,n(t)}),t.load(Yf.resolveURL(e,i.path),a,void 0,r)})}).then(function(e){return c===!0&&o.revokeObjectURL(s),eb(e,a),e.userData.mimeType=a.mimeType||ob(a.uri),e}).catch(function(e){throw console.error(`THREE.GLTFLoader: Couldn't load texture`,s),e});return this.sourceCache[e]=l,l}assignTexture(e,t,n,r){let i=this;return this.getDependency(`texture`,n.index).then(function(a){if(!a)return null;if(n.texCoord!==void 0&&n.texCoord>0&&(a=a.clone(),a.channel=n.texCoord),i.extensions[my.KHR_TEXTURE_TRANSFORM]){let e=n.extensions===void 0?void 0:n.extensions[my.KHR_TEXTURE_TRANSFORM];if(e){let t=i.associations.get(a);a=i.extensions[my.KHR_TEXTURE_TRANSFORM].extendTexture(a,e),i.associations.set(a,t)}}return r!==void 0&&(a.colorSpace=r),e[t]=a,a})}assignFinalMaterial(e){let t=e.geometry,n=e.material,r=t.attributes.tangent===void 0,i=t.attributes.color!==void 0,a=t.attributes.normal===void 0;if(e.isPoints){let e=`PointsMaterial:`+n.uuid,t=this.cache.get(e);t||(t=new Mu,wl.prototype.copy.call(t,n),t.color.copy(n.color),t.map=n.map,t.sizeAttenuation=!1,this.cache.add(e,t)),n=t}else if(e.isLine){let e=`LineBasicMaterial:`+n.uuid,t=this.cache.get(e);t||(t=new vu,wl.prototype.copy.call(t,n),t.color.copy(n.color),t.map=n.map,this.cache.add(e,t)),n=t}if(r||i||a){let e=`ClonedMaterial:`+n.uuid+`:`;r&&(e+=`derivative-tangents:`),i&&(e+=`vertex-colors:`),a&&(e+=`flat-shading:`);let t=this.cache.get(e);t||(t=n.clone(),i&&(t.vertexColors=!0),a&&(t.flatShading=!0),r&&(t.normalScale&&(t.normalScale.y*=-1),t.clearcoatNormalScale&&(t.clearcoatNormalScale.y*=-1)),this.cache.add(e,t),this.associations.set(t,this.associations.get(n))),n=t}e.material=n}getMaterialType(){return Hd}loadMaterial(e){let t=this,n=this.json,r=this.extensions,i=n.materials[e],a,o={},s=i.extensions||{},c=[];if(s[my.KHR_MATERIALS_UNLIT]){let e=r[my.KHR_MATERIALS_UNLIT];a=e.getMaterialType(),c.push(e.extendParams(o,i,t))}else{let n=i.pbrMetallicRoughness||{};if(o.color=new V(1,1,1),o.opacity=1,Array.isArray(n.baseColorFactor)){let e=n.baseColorFactor;o.color.setRGB(e[0],e[1],e[2],So),o.opacity=e[3]}n.baseColorTexture!==void 0&&c.push(t.assignTexture(o,`map`,n.baseColorTexture,xo)),o.metalness=n.metallicFactor===void 0?1:n.metallicFactor,o.roughness=n.roughnessFactor===void 0?1:n.roughnessFactor,n.metallicRoughnessTexture!==void 0&&(c.push(t.assignTexture(o,`metalnessMap`,n.metallicRoughnessTexture)),c.push(t.assignTexture(o,`roughnessMap`,n.metallicRoughnessTexture))),a=this._invokeOne(function(t){return t.getMaterialType&&t.getMaterialType(e)}),c.push(Promise.all(this._invokeAll(function(t){return t.extendMaterialParams&&t.extendMaterialParams(e,o)})))}i.doubleSided===!0&&(o.side=2);let l=i.alphaMode||Zy.OPAQUE;if(l===Zy.BLEND?(o.transparent=!0,o.depthWrite=!1):(o.transparent=!1,l===Zy.MASK&&(o.alphaTest=i.alphaCutoff===void 0?.5:i.alphaCutoff)),i.normalTexture!==void 0&&a!==Al&&(c.push(t.assignTexture(o,`normalMap`,i.normalTexture)),o.normalScale=new z(1,1),i.normalTexture.scale!==void 0)){let e=i.normalTexture.scale;o.normalScale.set(e,e)}if(i.occlusionTexture!==void 0&&a!==Al&&(c.push(t.assignTexture(o,`aoMap`,i.occlusionTexture)),i.occlusionTexture.strength!==void 0&&(o.aoMapIntensity=i.occlusionTexture.strength)),i.emissiveFactor!==void 0&&a!==Al){let e=i.emissiveFactor;o.emissive=new V().setRGB(e[0],e[1],e[2],So)}return i.emissiveTexture!==void 0&&a!==Al&&c.push(t.assignTexture(o,`emissiveMap`,i.emissiveTexture,xo)),Promise.all(c).then(function(){let n=new a(o);return i.name&&(n.name=i.name),eb(n,i),t.associations.set(n,{materials:e}),i.extensions&&$y(r,n,i),n})}createUniqueName(e){let t=hp.sanitizeNodeName(e||``);return t in this.nodeNamesUsed?t+`_`+ ++this.nodeNamesUsed[t]:(this.nodeNamesUsed[t]=0,t)}loadGeometries(e){let t=this,n=this.extensions,r=this.primitiveCache;function i(e){return n[my.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(e,t).then(function(n){return ub(n,e,t)})}let a=[];for(let n=0,o=e.length;nqg(e,1)):o.mode===Uy.TRIANGLE_FAN&&(e=e.then(e=>qg(e,2))),r[s]={primitive:o,promise:e},a.push(e)}}return Promise.all(a)}loadMesh(e){let t=this,n=this.json,r=this.extensions,i=n.meshes[e],a=i.primitives,o=[];for(let e=0,t=a.length;e0&&nb(d,i),d.name=t.createUniqueName(i.name||`mesh_`+e),eb(d,i),u.extensions&&$y(r,d,u),t.assignFinalMaterial(d),c.push(d)}for(let n=0,r=c.length;n0){let e=t.userData.pivot,r=n[0];t.pivot=new B().fromArray(e),t.position.x-=e[0],t.position.y-=e[1],t.position.z-=e[2],r.position.set(0,0,0),delete t.userData.pivot}return t})}_loadNodeShallow(e){let t=this.json,n=this.extensions,r=this;if(this.nodeCache[e]!==void 0)return this.nodeCache[e];let i=t.nodes[e],a=i.name?r.createUniqueName(i.name):``,o=[],s=r._invokeOne(function(t){return t.createNodeMesh&&t.createNodeMesh(e)});return s&&o.push(s),i.camera!==void 0&&o.push(r.getDependency(`camera`,i.camera).then(function(e){return r._getNodeRef(r.cameraCache,i.camera,e)})),r._invokeAll(function(t){return t.createNodeAttachment&&t.createNodeAttachment(e)}).forEach(function(e){o.push(e)}),this.nodeCache[e]=Promise.all(o).then(function(t){let o;if(o=i.isBone===!0?new eu:t.length>1?new fc:t.length===1?t[0]:new dc,o!==t[0])for(let e=0,n=t.length;e1){let e=r.associations.get(o);r.associations.set(o,{...e})}return r.associations.get(o).nodes=e,o}),this.nodeCache[e]}loadScene(e){let t=this.extensions,n=this.json.scenes[e],r=this,i=new fc;n.name&&(i.name=r.createUniqueName(n.name)),eb(i,n),n.extensions&&$y(t,i,n);let a=n.nodes||[],o=[];for(let e=0,t=a.length;e{let t=new Map;for(let[e,n]of r.associations)(e instanceof wl||e instanceof Ms)&&t.set(e,n);return e.traverse(e=>{let n=r.associations.get(e);n!=null&&t.set(e,n)}),t})(i),i})}_createAnimationTracks(e,t,n,r,i){let a=[],o=e.name?e.name:e.uuid,s=[];function c(e){e.morphTargetInfluences&&s.push(e.name?e.name:e.uuid)}Yy[i.path]===Yy.weights?(c(e),e.isGroup&&e.children.forEach(c)):s.push(o);let l;switch(Yy[i.path]){case Yy.weights:l=uf;break;case Yy.rotation:l=ff;break;case Yy.translation:case Yy.scale:l=mf;break;default:switch(n.itemSize){case 1:l=uf;break;default:l=mf}}let u=r.interpolation===void 0?po:Xy[r.interpolation],d=this._getArrayFromAccessor(n);for(let e=0,n=s.length;e{e.uniforms.uGearBlood=r,e.vertexShader=e.vertexShader.replace(`#include `,`#include \n${t?`attribute vec3 bindPosition;`:``}\n${rb}`).replace(`#include `,`#include \nvGearPos = ${t?`bindPosition`:`position`};`),e.fragmentShader=e.fragmentShader.replace(`#include `,`#include \n${rb}\nfloat gearSoaked = 0.0;\nfloat gearTrim = 0.0;`).replace(`#include `,`#include \n${ib}`).replace(`#include `,`#include \n${ab}`)},e.customProgramCacheKey=()=>`hands-gear-${t?`baked`:`live`}`,e.needsUpdate=!0,r}var sb={tint:16777215,hair:4862755,shaved:0,beard:0,jaw:0,nose:0,brow:0,skull:0},cb={referee:{tint:15916235,hair:9210502,shaved:0,beard:0,jaw:-.4,nose:.3,brow:-.2,skull:.2},blueCorner:{tint:11109480,hair:1380364,shaved:1,beard:.8,jaw:.7,nose:.5,brow:.6,skull:.4},redCorner:{tint:16772829,hair:8007452,shaved:0,beard:.6,jaw:.2,nose:-.5,brow:.1,skull:-.3},blueCutman:{tint:14202008,hair:2234128,shaved:0,beard:0,jaw:-.6,nose:.8,brow:-.5,skull:-.5},redCutman:{tint:9070160,hair:1380364,shaved:1,beard:.45,jaw:.5,nose:.2,brow:.8,skull:.6}},lb=[16777215,16047307,14268057,12555896,10717820,9071708,7296328],ub=[1380364,2234128,3810326,5913120,9071164,11045976,7222304,9210502];function db(e){let t=2166136261;for(let n=0;n>>0}function fb(e){return()=>(e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296)}function pb(e){let t=fb(db(e)||1),n=e=>e[Math.floor(t()*e.length)],r=()=>Math.round((t()*2-1)*100)/100;return{tint:n(lb),hair:n(ub),shaved:+(t()<.28),beard:t()<.45?0:Math.round((.35+t()*.65)*100)/100,jaw:r(),nose:r(),brow:r(),skull:r()}}var mb=`vec3(0.84, 0.39, 0.175)`,hb=` +`;function _b(e,t=!1,n=`gloves`){let r={value:0};return n===`trunks`&&(e.defines={...e.defines,GEAR_TRUNKS:``}),e.onBeforeCompile=e=>{e.uniforms.uGearBlood=r,e.vertexShader=e.vertexShader.replace(`#include `,`#include \n${t?`attribute vec3 bindPosition;`:``}\n${mb}`).replace(`#include `,`#include \nvGearPos = ${t?`bindPosition`:`position`};`),e.fragmentShader=e.fragmentShader.replace(`#include `,`#include \n${mb}\nfloat gearSoaked = 0.0;\nfloat gearTrim = 0.0;`).replace(`#include `,`#include \n${hb}`).replace(`#include `,`#include \n${gb}`)},e.customProgramCacheKey=()=>`hands-gear-${t?`baked`:`live`}`,e.needsUpdate=!0,r}var vb={tint:16777215,hair:4862755,shaved:0,beard:0,jaw:0,nose:0,brow:0,skull:0},yb={referee:{tint:15916235,hair:9210502,shaved:0,beard:0,jaw:-.4,nose:.3,brow:-.2,skull:.2},blueCorner:{tint:11109480,hair:1380364,shaved:1,beard:.8,jaw:.7,nose:.5,brow:.6,skull:.4},redCorner:{tint:16772829,hair:8007452,shaved:0,beard:.6,jaw:.2,nose:-.5,brow:.1,skull:-.3},blueCutman:{tint:14202008,hair:2234128,shaved:0,beard:0,jaw:-.6,nose:.8,brow:-.5,skull:-.5},redCutman:{tint:9070160,hair:1380364,shaved:1,beard:.45,jaw:.5,nose:.2,brow:.8,skull:.6}},bb=[16777215,16047307,14268057,12555896,10717820,9071708,7296328],xb=[1380364,2234128,3810326,5913120,9071164,11045976,7222304,9210502];function Sb(e){let t=2166136261;for(let n=0;n>>0}function Cb(e){return()=>(e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296)}function wb(e){let t=Cb(Sb(e)||1),n=e=>e[Math.floor(t()*e.length)],r=()=>Math.round((t()*2-1)*100)/100;return{tint:n(bb),hair:n(xb),shaved:+(t()<.28),beard:t()<.45?0:Math.round((.35+t()*.65)*100)/100,jaw:r(),nose:r(),brow:r(),skull:r()}}var Tb=`vec3(0.84, 0.39, 0.175)`,Eb=` uniform vec3 uLookHair; uniform vec4 uLookFace; uniform vec2 uLookGroom; @@ -4938,7 +4938,7 @@ float lookHairZone(vec3 p) { float reach = mix(3.8, 9.0, nape); return smoothstep(line - 0.5, line + 0.5, p.y) * (1.0 - smoothstep(reach, reach + 1.0, abs(p.x)) * (1.0 - nape)); } -`,gb=` +`,Db=` { vec3 p = position; vLookPos = p; @@ -4959,29 +4959,29 @@ float lookHairZone(vec3 p) { transformed.y -= crownAway.y * crownDepth; transformed.z -= crownAway.z * crownDepth; } -`,_b=(e,t,n)=>{let r=Math.min(1,Math.max(0,(n-e)/(t-e)));return r*r*(3-2*r)},vb=(e,t,n)=>e+(t-e)*n;function yb(e,t,n){let r=vb(vb(115.3,120.6,_b(-6.8,-4.6,n)),125.5,_b(-4.6,1.6,n)),i=_b(116,121,t),a=vb(3.8,9,i);return _b(r-.5,r+.5,t)*(1-_b(a,a+1,Math.abs(e))*(1-i))}function bb(e,t,n){let{x:r,y:i,z:a}=e,o=(1-_b(113.5,118,i))*_b(108.5,112,i)*_b(-7,-2,a),s=1-_b(0,2.6,Math.hypot(r,i-117.2,a-5)),c=(1-_b(0,2.2,Math.abs(i-123.2)))*_b(1.5,3.5,a),l=r*.12*t.jaw*o+r*.4*t.nose*s+r*.06*t.skull*_b(112,116,i),u=0,d=.5*t.nose*s+.55*t.brow*c,f=vb(.9,1.9,_b(-1,3,a)*_b(123.5,126,i))*yb(r,i,a)*t.shaved,p=r,m=(i-120)*1.1,h=a+2.5,g=Math.hypot(p,m,h)||1;return l-=p/g*f,u-=m/g*f,d-=h/g*f,n.set(r+l,i+u,a+d)}var xb=` +`,Ob=(e,t,n)=>{let r=Math.min(1,Math.max(0,(n-e)/(t-e)));return r*r*(3-2*r)},kb=(e,t,n)=>e+(t-e)*n;function Ab(e,t,n){let r=kb(kb(115.3,120.6,Ob(-6.8,-4.6,n)),125.5,Ob(-4.6,1.6,n)),i=Ob(116,121,t),a=kb(3.8,9,i);return Ob(r-.5,r+.5,t)*(1-Ob(a,a+1,Math.abs(e))*(1-i))}function jb(e,t,n){let{x:r,y:i,z:a}=e,o=(1-Ob(113.5,118,i))*Ob(108.5,112,i)*Ob(-7,-2,a),s=1-Ob(0,2.6,Math.hypot(r,i-117.2,a-5)),c=(1-Ob(0,2.2,Math.abs(i-123.2)))*Ob(1.5,3.5,a),l=r*.12*t.jaw*o+r*.4*t.nose*s+r*.06*t.skull*Ob(112,116,i),u=0,d=.5*t.nose*s+.55*t.brow*c,f=kb(.9,1.9,Ob(-1,3,a)*Ob(123.5,126,i))*Ab(r,i,a)*t.shaved,p=r,m=(i-120)*1.1,h=a+2.5,g=Math.hypot(p,m,h)||1;return l-=p/g*f,u-=m/g*f,d-=h/g*f,n.set(r+l,i+u,a+d)}var Mb=` vLookPos = bindPosition; -`,Sb=` +`,Nb=` #ifdef USE_MAP { vec3 p = vLookPos; float scanned = dot(sampledDiffuseColor.rgb, vec3(0.2126, 0.7152, 0.0722)); float hair = lookHairZone(p) * max(1.0 - smoothstep(0.13, 0.26, scanned), smoothstep(126.2, 127.4, p.y)); vec3 dyed = uLookHair * clamp(scanned / 0.075, 0.45, 1.7); - vec3 scalp = mix(${mb}, uLookHair, 0.1) * clamp(scanned / 0.075, 0.85, 1.12) * 0.9; + vec3 scalp = mix(${Tb}, uLookHair, 0.1) * clamp(scanned / 0.075, 0.85, 1.12) * 0.9; diffuseColor.rgb = mix(diffuseColor.rgb, mix(dyed, scalp * diffuse, uLookGroom.x), hair); // The beard covers the chin and runs back along the jaw to the ear, clear of the neck beneath it. float front = mix(1.4, -4.8, smoothstep(111.2, 114.6, p.y)); float jaw = (1.0 - smoothstep(115.4, 116.8, p.y)) * smoothstep(109.6, 110.6, p.y) * smoothstep(front - 0.6, front + 0.6, p.z); float lips = 1.0 - smoothstep(0.8, 2.0, length(vec3(p.x * 0.55, p.y - 114.3, (p.z - 4.8) * 0.4))); float grain = 0.8 + 0.2 * sin(p.x * 41.0 + p.z * 13.0) * sin(p.y * 47.0 + p.z * 29.0); - diffuseColor.rgb = mix(diffuseColor.rgb, mix(uLookHair * 0.8, ${mb} * diffuse, 0.12), jaw * (1.0 - lips) * uLookGroom.y * grain * 0.88); + diffuseColor.rgb = mix(diffuseColor.rgb, mix(uLookHair * 0.8, ${Tb} * diffuse, 0.12), jaw * (1.0 - lips) * uLookGroom.y * grain * 0.88); } #endif -`,Cb=` +`,Pb=` uniform vec3 uLookExpression; varying float vLookJaw; -`,wb=` +`,Fb=` { vec3 p = position; // Everything of the face under the seam of the lips drops with the jaw and swings back; the lips part between. @@ -4993,7 +4993,7 @@ varying float vLookJaw; transformed.y -= 0.4 * uLookExpression.z * frown; transformed.x -= sign(p.x) * 0.18 * uLookExpression.z * frown; } -`,Tb=` +`,Ib=` #ifdef USE_MAP { vec3 p = vLookPos; @@ -5005,7 +5005,7 @@ varying float vLookJaw; float teeth = (1.0 - smoothstep(0.14, 0.22, vLookJaw)) * (1.0 - smoothstep(0.8, 1.3, abs(p.x))); diffuseColor.rgb = mix(diffuseColor.rgb, mix(vec3(0.035, 0.006, 0.008), vec3(0.5, 0.44, 0.36), teeth), parted * between); // The upper lid comes down over the eye along its own curve, a dark lash line at its edge. - vec3 lidSkin = ${mb} * diffuse * 0.72; + vec3 lidSkin = ${Tb} * diffuse * 0.72; for (int e = 0; e < 2; e++) { vec3 q = p - (e == 0 ? vec3(2.65, 120.65, 3.6) : vec3(-2.75, 120.75, 3.4)); float across = q.x / 1.35; @@ -5017,7 +5017,7 @@ varying float vLookJaw; } } #endif -`,Eb=class{material;uniforms={uLookHair:{value:new V(sb.hair)},uLookFace:{value:new Ss},uLookGroom:{value:new z},uLookExpression:{value:new B}};current=sb;constructor(e,t=!1){this.material=e;let n=this.uniforms,r=e.onBeforeCompile,i=Object.hasOwn(e,`customProgramCacheKey`)?e.customProgramCacheKey():`plain`;e.onBeforeCompile=(i,a)=>{r.call(e,i,a),Object.assign(i.uniforms,n),i.vertexShader=i.vertexShader.replace(`#include `,`#include \n${t?`attribute vec3 bindPosition;`:Cb}\n${hb}`).replace(`#include `,`${t?xb:gb+wb}\n#include `),i.fragmentShader=i.fragmentShader.replace(`#include `,`#include \n${t?``:Cb}${hb}`).replace(`#include `,`#include \n${Sb}${t?``:Tb}`)},e.customProgramCacheKey=()=>`${i}-look-${t?`baked`:`live`}`,e.needsUpdate=!0}set(e){this.current=e,this.material.color.setHex(e.tint),this.uniforms.uLookHair.value.setHex(e.hair),this.uniforms.uLookFace.value.set(e.jaw,e.nose,e.brow,e.skull),this.uniforms.uLookGroom.value.set(e.shaved,e.beard)}setExpression(e,t,n){this.uniforms.uLookExpression.value.set(e,t,n)}get look(){return this.current}},Db=new B;function Ob(e,t,n,r,i,a){let o=2*Math.PI*i/4,s=Math.max(a-2*i,0),c=Math.PI/4;Db.copy(t),Db[r]=0,Db.normalize();let l=.5*o/(o+s),u=1-Db.angleTo(e)/c;return Math.sign(Db[n])===1?u*l:s/(o+s)+l+l*(1-u)}var kb=class e extends Nu{constructor(e=1,t=1,n=1,r=2,i=.1){let a=r*2+1;if(i=Math.min(e/2,t/2,n/2,i),super(1,1,1,a,a,a),this.type=`RoundedBoxGeometry`,this.parameters={width:e,height:t,depth:n,segments:r,radius:i},a===1)return;let o=this.toNonIndexed();this.index=null,this.attributes.position=o.attributes.position,this.attributes.normal=o.attributes.normal,this.attributes.uv=o.attributes.uv;let s=new B,c=new B,l=new B(e,t,n).divideScalar(2).subScalar(i),u=this.attributes.position.array,d=this.attributes.normal.array,f=this.attributes.uv.array,p=u.length/6,m=new B,h=.5/a;for(let r=0,a=0;r{r.call(e,i,a),Object.assign(i.uniforms,n),i.vertexShader=i.vertexShader.replace(`#include `,`#include \n${t?`attribute vec3 bindPosition;`:Pb}\n${Eb}`).replace(`#include `,`${t?Mb:Db+Fb}\n#include `),i.fragmentShader=i.fragmentShader.replace(`#include `,`#include \n${t?``:Pb}${Eb}`).replace(`#include `,`#include \n${Nb}${t?``:Ib}`)},e.customProgramCacheKey=()=>`${i}-look-${t?`baked`:`live`}`,e.needsUpdate=!0}set(e){this.current=e,this.material.color.setHex(e.tint),this.uniforms.uLookHair.value.setHex(e.hair),this.uniforms.uLookFace.value.set(e.jaw,e.nose,e.brow,e.skull),this.uniforms.uLookGroom.value.set(e.shaved,e.beard)}setExpression(e,t,n){this.uniforms.uLookExpression.value.set(e,t,n)}get look(){return this.current}},Rb=new B;function zb(e,t,n,r,i,a){let o=2*Math.PI*i/4,s=Math.max(a-2*i,0),c=Math.PI/4;Rb.copy(t),Rb[r]=0,Rb.normalize();let l=.5*o/(o+s),u=1-Rb.angleTo(e)/c;return Math.sign(Rb[n])===1?u*l:s/(o+s)+l+l*(1-u)}var Bb=class e extends Wu{constructor(e=1,t=1,n=1,r=2,i=.1){let a=r*2+1;if(i=Math.min(e/2,t/2,n/2,i),super(1,1,1,a,a,a),this.type=`RoundedBoxGeometry`,this.parameters={width:e,height:t,depth:n,segments:r,radius:i},a===1)return;let o=this.toNonIndexed();this.index=null,this.attributes.position=o.attributes.position,this.attributes.normal=o.attributes.normal,this.attributes.uv=o.attributes.uv;let s=new B,c=new B,l=new B(e,t,n).divideScalar(2).subScalar(i),u=this.attributes.position.array,d=this.attributes.normal.array,f=this.attributes.uv.array,p=u.length/6,m=new B,h=.5/a;for(let r=0,a=0;r` -${Lb} +`,Yb={head:`1.0 - smoothstep(outfitCollar(p) - 0.3, outfitCollar(p) + 0.3, p.y)`,body:`p.y < 60.0 ? 1.0 : 1.0 - smoothstep(uOutfitShape.x - 0.4, uOutfitShape.x + 0.4, abs(p.x))`,shoes:`smoothstep(9.0, 11.0, p.y)`,pants:`1.0`},Xb=e=>` +${Jb} varying vec3 vOutfitPos; vec3 outfitBindNormal = vec3(0.0, 1.0, 0.0); -float outfitClothAt(vec3 p) { return ${Rb[e]}; } +float outfitClothAt(vec3 p) { return ${Yb[e]}; } vec3 outfitRounded(vec3 p, vec3 n) { if (p.y < 60.0) { vec2 radial = normalize(p.xz - outfitLegAxis(p.y, sign(p.x)) + vec2(1e-4)); @@ -5081,20 +5081,20 @@ vec3 outfitDraped(vec3 p, vec3 at, float cloth) { at.yz += around / span * (max(span, sleeve) - span) * arm; return at; } -`,Bb=` +`,Zb=` { vec3 p = position; float cloth = outfitClothAt(p); objectNormal = normalize(mix(objectNormal, outfitRounded(p, objectNormal), 0.97 * cloth)); outfitBindNormal = objectNormal; } -`,Vb=` +`,Qb=` float side = sign(p.x); vec2 axis = outfitLegAxis(p.y, side); vec2 offset = transformed.xz - axis; float reach = max(length(offset), 1e-3); float tube = mix(5.2, 6.0, smoothstep(12.0, 40.0, p.y)); -`,Hb={head:` +`,$b={head:` { vec3 p = position; vOutfitPos = p; @@ -5106,7 +5106,7 @@ vec3 outfitDraped(vec3 p, vec3 at, float cloth) { vec3 p = position; vOutfitPos = p; if (p.y < 60.0) { - ${Vb} + ${Qb} float weight = 1.0 - smoothstep(40.5, 45.0, p.y); transformed.xz = axis + offset / reach * mix(reach, max(reach, tube), weight); } else { @@ -5118,7 +5118,7 @@ vec3 outfitDraped(vec3 p, vec3 at, float cloth) { { vec3 p = position; vOutfitPos = p; - ${Vb} + ${Qb} float weight = smoothstep(9.0, 11.5, p.y); transformed.xz = axis + offset / reach * mix(reach, max(reach, tube), weight); } @@ -5131,8 +5131,8 @@ vec3 outfitDraped(vec3 p, vec3 at, float cloth) { vec2 narrow = vec2(mix(0.76, 1.0, slim), mix(0.62, 1.0, slim)); transformed.xz = mix(transformed.xz, axis + (transformed.xz - axis) * narrow, smoothstep(0.5, 4.0, abs(p.x))); } -`},Ub=` -${Lb} +`},ex=` +${Jb} uniform vec3 uOutfitShirt; uniform vec3 uOutfitTrousers; uniform vec3 uOutfitAccent; @@ -5156,7 +5156,7 @@ vec3 outfitShirtTone(vec3 p) { float band = (1.0 - smoothstep(7.0, 7.2, reach)) * step(104.0, p.y); vec3 tone = uOutfitShirt * mix(mix(0.9, 1.0, fold), 1.07, band); tone *= 1.0 - 0.4 * (1.0 - smoothstep(0.0, 0.3, abs(reach - 7.25))) * step(104.0, p.y); - float hem = min(uOutfitShape.x, ${Pb.toFixed(1)}) - 2.4; + float hem = min(uOutfitShape.x, ${Gb.toFixed(1)}) - 2.4; tone *= mix(1.0, 0.86, smoothstep(hem - 0.1, hem + 0.1, along)); if (along < 1.0 && p.z > 0.5 && p.y < 106.0) { tone *= 0.92; @@ -5167,7 +5167,7 @@ vec3 outfitShirtTone(vec3 p) { outfitGloss = tie * 0.4; return mix(tone, uOutfitAccent, tie); } -`,Wb={head:` +`,tx={head:` { vec3 p = vOutfitPos; float collar = outfitCollar(p); @@ -5203,13 +5203,13 @@ vec3 outfitShirtTone(vec3 p) { outfitCloth = 1.0 - belt; outfitGloss = belt; } -`},Gb=` +`},nx=` roughnessFactor = mix(mix(roughnessFactor, 0.88, outfitCloth), 0.32, outfitGloss); -`,Kb=` +`,rx=` #ifdef USE_CLEARCOAT material.clearcoat *= 1.0 - outfitCloth; #endif -`;function qb(e,t,n){let r={uOutfitShirt:{value:new V(n.shirt)},uOutfitTrousers:{value:new V(n.trousers)},uOutfitAccent:{value:new V(n.accent)},uOutfitShape:{value:new Ss(n.sleeves===`long`?63.4:Fb,+!!n.bowTie,Ib,0)}},i=e.onBeforeCompile,a=Object.hasOwn(e,`customProgramCacheKey`)?e.customProgramCacheKey():`plain`;e.onBeforeCompile=(n,a)=>{i.call(e,n,a),Object.assign(n.uniforms,r),n.vertexShader=n.vertexShader.replace(`#include `,`#include \n${zb(t)}`).replace(`#include `,`#include \n${Bb}`).replace(`#include `,`#include \n${Hb[t]}`),n.fragmentShader=n.fragmentShader.replace(`#include `,`#include \n${Ub}`).replace(`#include `,`#include \n${Wb[t]}`).replace(`#include `,`#include \n${Gb}`).replace(`#include `,`#include \n${Kb}`)},e.customProgramCacheKey=()=>`${a}-outfit-${t}`,e.needsUpdate=!0}var Jb=new B(0,1,0);function Yb(e,t,n,r){let i=new Pu(r,n,1,6);return i.applyQuaternion(new rs().setFromUnitVectors(Jb,t)),i.translate(e.x+t.x*n*.5,e.y+t.y*n*.5,e.z+t.z*n*.5),i}function Xb(e){let t=e===`left`?-1:1,n=[],r=new kb(8.4,9.2,2.8,1,1.25);r.translate(0,5.2,0),n.push(r);let i=new Pu(2.2,2.2,1,6);i.scale(1.3,1,.9),i.translate(0,.4,0),n.push(i);let a=[{x:3.2*t,y:9.1,scale:.95,curl:.22,splay:.12*t},{x:1.08*t,y:9.5,scale:1.05,curl:.34,splay:.03*t},{x:-1.05*t,y:9.3,scale:.98,curl:.46,splay:-.05*t},{x:-3.05*t,y:8.7,scale:.8,curl:.6,splay:-.16*t}];for(let e of a){let t=new B(e.x,e.y,0),r=e.curl;for(let[i,a,o]of[[4.3,1.04,.55],[2.7,.95,.5],[2.2,.86,0]]){let s=new B(Math.sin(e.splay)*Math.cos(r),Math.cos(e.splay)*Math.cos(r),Math.sin(r)),c=i*e.scale;n.push(Yb(t,s,c,a*(.88+.12*e.scale))),t.addScaledVector(s,c),r+=o}}let o=new _d(1.9,6,4);o.scale(1.15,1.5,.95),o.translate(2.7*t,3.3,.9),n.push(o);let s=new B(3.7*t,3.4,.9),c=new B(.62*t,.64,.45).normalize();n.push(Yb(s,c,3.9,1.2)),s.addScaledVector(c,3.9),n.push(Yb(s,new B(.3*t,.82,.48).normalize(),3,1.05));let l=n.map(e=>{let t=e.index===null?e:e.toNonIndexed();return t.deleteAttribute(`uv`),t}),u=Ng(l,!1);for(let e of new Set([...n,...l]))e.dispose();if(u===null)throw Error(`hand geometry could not be merged`);return u}function Zb(){let e=new Iu(3.9,6,9.2,20,1,!1);return e.scale(1,1,.96),e.translate(0,21.1,0),e}var Qb=` +`;function ix(e,t,n){let r={uOutfitShirt:{value:new V(n.shirt)},uOutfitTrousers:{value:new V(n.trousers)},uOutfitAccent:{value:new V(n.accent)},uOutfitShape:{value:new Ns(n.sleeves===`long`?63.4:Kb,+!!n.bowTie,qb,0)}},i=e.onBeforeCompile,a=Object.hasOwn(e,`customProgramCacheKey`)?e.customProgramCacheKey():`plain`;e.onBeforeCompile=(n,a)=>{i.call(e,n,a),Object.assign(n.uniforms,r),n.vertexShader=n.vertexShader.replace(`#include `,`#include \n${Xb(t)}`).replace(`#include `,`#include \n${Zb}`).replace(`#include `,`#include \n${$b[t]}`),n.fragmentShader=n.fragmentShader.replace(`#include `,`#include \n${ex}`).replace(`#include `,`#include \n${tx[t]}`).replace(`#include `,`#include \n${nx}`).replace(`#include `,`#include \n${rx}`)},e.customProgramCacheKey=()=>`${a}-outfit-${t}`,e.needsUpdate=!0}var ax=new B(0,1,0);function ox(e,t,n,r){let i=new Gu(r,n,1,6);return i.applyQuaternion(new ms().setFromUnitVectors(ax,t)),i.translate(e.x+t.x*n*.5,e.y+t.y*n*.5,e.z+t.z*n*.5),i}function sx(e){let t=e===`left`?-1:1,n=[],r=new Bb(8.4,9.2,2.8,1,1.25);r.translate(0,5.2,0),n.push(r);let i=new Gu(2.2,2.2,1,6);i.scale(1.3,1,.9),i.translate(0,.4,0),n.push(i);let a=[{x:3.2*t,y:9.1,scale:.95,curl:.22,splay:.12*t},{x:1.08*t,y:9.5,scale:1.05,curl:.34,splay:.03*t},{x:-1.05*t,y:9.3,scale:.98,curl:.46,splay:-.05*t},{x:-3.05*t,y:8.7,scale:.8,curl:.6,splay:-.16*t}];for(let e of a){let t=new B(e.x,e.y,0),r=e.curl;for(let[i,a,o]of[[4.3,1.04,.55],[2.7,.95,.5],[2.2,.86,0]]){let s=new B(Math.sin(e.splay)*Math.cos(r),Math.cos(e.splay)*Math.cos(r),Math.sin(r)),c=i*e.scale;n.push(ox(t,s,c,a*(.88+.12*e.scale))),t.addScaledVector(s,c),r+=o}}let o=new Od(1.9,6,4);o.scale(1.15,1.5,.95),o.translate(2.7*t,3.3,.9),n.push(o);let s=new B(3.7*t,3.4,.9),c=new B(.62*t,.64,.45).normalize();n.push(ox(s,c,3.9,1.2)),s.addScaledVector(c,3.9),n.push(ox(s,new B(.3*t,.82,.48).normalize(),3,1.05));let l=n.map(e=>{let t=e.index===null?e:e.toNonIndexed();return t.deleteAttribute(`uv`),t}),u=Wg(l,!1);for(let e of new Set([...n,...l]))e.dispose();if(u===null)throw Error(`hand geometry could not be merged`);return u}function cx(){let e=new qu(3.9,6,9.2,20,1,!1);return e.scale(1,1,.96),e.translate(0,21.1,0),e}var lx=` void RE_Direct_Skin( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { RE_Direct_Physical( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); float facing = dot( geometryNormal, directLight.direction ); @@ -5221,13 +5221,13 @@ void RE_Direct_Skin( const in IncidentLight directLight, const in vec3 geometryP } #undef RE_Direct #define RE_Direct RE_Direct_Skin -`,$b=.35;function ex(e){e.bumpMap=e.map,e.bumpScale=$b;let t=e.onBeforeCompile,n=Object.hasOwn(e,`customProgramCacheKey`)?e.customProgramCacheKey():`plain`;e.onBeforeCompile=(n,r)=>{t.call(e,n,r),n.fragmentShader=n.fragmentShader.replace(`#include `,`#include \n${Qb}`)},e.customProgramCacheKey=()=>`${n}-skin`,e.needsUpdate=!0}var tx={x:7,y:66.1,z:-3},nx={x:8.4,y:39.4,z:-4.7},rx=62,ix=58,ax=72,ox=.78,sx=.85,cx=.66,lx=(e,t,n)=>{let r=R.clamp((n-e)/(t-e),0,1);return r*r*(3-2*r)},ux=R.lerp;function dx(e,t){let n=e.clone(),r=n.getAttribute(`position`),i=n.getAttribute(`skinIndex`),a=new Map([[t.indexOf(tb.kneeL),t.indexOf(tb.hipL)],[t.indexOf(tb.kneeR),t.indexOf(tb.hipR)]]);for(let e=0;e0&&(t=Math.sign(t)*(l+d*ux(1,ox,s))),o=u+(o-u)*ux(1,o>u?sx:cx,s),r.setXYZ(e,t,n,o);for(let t=0;t>>0||1,this.blinkIn=this.nextBlink()}nextBlink(){return this.seed=Math.imul(this.seed,1664525)+1013904223>>>0,px[0]+this.seed/4294967296*(px[1]-px[0])}flinch(e,t){let n=Math.min(1,Math.max(0,e));this.wince=Math.max(this.wince,t?.55+.45*n:.3+.4*n),this.gape=Math.max(this.gape,t?.25+.6*n:.5+.5*n)}update(e,t,n,r,i,a){let o=Math.max(0,e);this.wince=Math.max(0,this.wince-this.wince*mx*o-.2*o),this.gape=Math.max(0,this.gape-this.gape*mx*.6*o-.15*o),!t&&!a&&(this.blinkIn-=o,this.blinkIn<=0&&(this.blink=fx,this.blinkIn=this.nextBlink()),this.breath+=o*hx*Math.PI*2),this.blink=Math.max(0,this.blink-o);let s=this.blink>0?Math.sin(this.blink/fx*Math.PI):0,c=t?.3:.3+.25*Math.sin(this.breath),l=a?1:Math.max(s,this.wince,n?.4:0,i*.55),u=a?.45:Math.max(this.gape,n?.3:0,r*c,i*.35),d=a?0:Math.max(+!!n,this.wince*.8),f=1-Math.exp(-14*o);this.lids=Math.max(s,this.wince,this.lids+(l-this.lids)*f),this.mouth+=(u-this.mouth)*f,this.brow+=(d-this.brow)*f}},_x={hips:tb.hips,spine:tb.spine,chest:`Spine1_024`,upperChest:tb.chest,neck:`Neck_012`,head:tb.head,clavicleL:`LeftShoulder_09`,shoulderL:tb.shoulderL,elbowL:tb.elbowL,gloveL:tb.gloveL,clavicleR:`RightShoulder_020`,shoulderR:tb.shoulderR,elbowR:tb.elbowR,gloveR:tb.gloveR,hipL:tb.hipL,kneeL:tb.kneeL,ankleL:tb.ankleL,toeL:`LeftToeBase_011`,hipR:tb.hipR,kneeR:tb.kneeR,ankleR:tb.ankleR,toeR:`RightToeBase_022`},vx=new B,yx=new B,bx=new B,xx=new Ds,Sx=new rs,Cx=new rs,wx=new B,Tx=new B,Ex=new B,Dx=new B,Ox=new B,kx=new B,Ax=new B,jx=new B,Mx=new B,Nx=new B;function Px(e,t){return t.setFromMatrixPosition(e.matrixWorld)}function Fx(e,t){return e.matrixWorld.decompose(wx,t,Tx),t}function Ix(e,t,n,r){return yx.copy(e).normalize(),n===`z`?(bx.copy(t).addScaledVector(yx,-t.dot(yx)),bx.lengthSq()<1e-8&&bx.set(0,0,1).addScaledVector(yx,-yx.z),bx.normalize(),vx.crossVectors(yx,bx).normalize()):(vx.copy(t).addScaledVector(yx,-t.dot(yx)),vx.lengthSq()<1e-8&&vx.set(1,0,0).addScaledVector(yx,-yx.x),vx.normalize(),bx.crossVectors(vx,yx).normalize()),xx.makeBasis(vx,yx,bx),r.setFromRotationMatrix(xx)}var Lx=class{bones;metrics;restLocal=new Map;restPositions=new Map;limb={reached:!1,joint:new B};constructor(e){let t=new Map;e.traverse(e=>{e instanceof Ul&&t.set(e.name,e)});let n={};for(let[e,r]of Object.entries(_x)){let i=t.get(r);if(i===void 0)throw Error(`fighter rig missing bone ${r} (${e})`);n[e]=i}this.bones=n,e.updateMatrixWorld(!0);for(let e of t.values())this.restLocal.set(e,e.quaternion.clone()),this.restPositions.set(e,e.position.clone());let r=(e,t)=>Px(n[e],Ex).distanceTo(Px(n[t],Dx)),i=Px(n.hips,Ex).clone(),a=Px(n.hips.parent??e,Dx).clone(),o=n.hips.position.length(),s=i.distanceTo(a);this.metrics={hipsHeight:i.y,headHeight:Px(n.head,Ex).y,chestHeight:Px(n.upperChest,Ex).y,ankleHeight:Px(n.ankleL,Ex).y,armL:{upper:r(`shoulderL`,`elbowL`),lower:r(`elbowL`,`gloveL`)},armR:{upper:r(`shoulderR`,`elbowR`),lower:r(`elbowR`,`gloveR`)},legL:{upper:r(`hipL`,`kneeL`),lower:r(`kneeL`,`ankleL`)},legR:{upper:r(`hipR`,`kneeR`),lower:r(`kneeR`,`ankleR`)},footLength:r(`ankleL`,`toeL`),unitsPerMeter:s>1e-6?o/s:1}}resetToRest(){for(let[e,t]of this.restLocal){e.quaternion.copy(t);let n=this.restPositions.get(e);n!==void 0&&e.position.copy(n)}}restLocalQuaternion(e){return this.restLocal.get(e)??e.quaternion}restLocalPosition(e){return this.restPositions.get(e)??e.position}position(e,t){return Px(this.bones[e],t)}setWorldRotation(e,t){let n=e.parent;n===null?e.quaternion.copy(t):(Fx(n,Cx),e.quaternion.copy(Cx.invert().multiply(t)).normalize()),e.updateWorldMatrix(!1,!1)}setWorldFrame(e,t,n,r){this.setWorldRotation(e,Ix(t,n,r,Sx))}setWorldPosition(e,t){let n=e.parent;n===null?e.position.copy(t):(e.position.copy(t),n.worldToLocal(e.position)),e.updateWorldMatrix(!1,!1)}aimAt(e,t,n){if(e.updateWorldMatrix(!1,!1),Px(e,Ex),Ox.subVectors(t,Ex),Ox.lengthSq()<1e-10)return;Fx(e,Sx);let r=n===`z`?Nx.set(0,0,1):Nx.set(1,0,0);this.setWorldFrame(e,Ox,r.applyQuaternion(Sx),n)}solveLimb(e,t,n,r,i,a,o,s=.01){e.updateWorldMatrix(!1,!1);let c=Px(e,Ex);Ox.subVectors(r,c);let l=n.upper+n.lower-s,u=R.clamp(Ox.length(),Math.abs(n.upper-n.lower)+.005,l),d=Ox.length()<=l;Ox.lengthSq()<1e-10&&Ox.set(0,-1,0),Ox.normalize(),kx.copy(i).addScaledVector(Ox,-i.dot(Ox)),kx.lengthSq()<1e-8&&(kx.set(0,0,1).addScaledVector(Ox,-Ox.z),kx.lengthSq()<1e-8&&kx.set(1,0,0)),kx.normalize();let f=R.clamp((n.upper*n.upper+u*u-n.lower*n.lower)/(2*n.upper*u),-1,1),p=n.upper*f,m=n.upper*Math.sqrt(Math.max(0,1-f*f));Ax.copy(c).addScaledVector(Ox,p).addScaledVector(kx,m),jx.crossVectors(kx,Ox).multiplyScalar(o).normalize(),Mx.copy(Ax).sub(c),this.setWorldFrame(e,Mx,jx,a),t.updateWorldMatrix(!1,!1);let h=Px(t,Dx);return Mx.copy(c).addScaledVector(Ox,u).sub(h),this.setWorldFrame(t,Mx,jx,a),this.limb.reached=d,this.limb.joint.copy(h),this.limb}},Rx={x:.1059,y:.0253,z:-.0026},zx=new B(.2018,.081,-.027),Bx=new B(-.2018,.081,-.027),Vx=(e,t,n)=>new B(e,t,n),Hx=(e,t,n)=>{let r=R.clamp((n-e)/Math.max(1e-6,t-e),0,1);return r*r*(3-2*r)},Ux=(e,t=1.7)=>R.clamp(e,0,1)**+t,Wx=(e,t=2)=>1-(1-R.clamp(e,0,1))**t,Gx=new rs,Kx=new B,qx=new B,Jx=new B,Yx=new B,Xx=new B,Zx=new rs,Qx=new rs,$x=new Ls,eS=new B(0,1,0),tS=[[`spine`,.25,.2],[`chest`,.55,.5],[`upperChest`,1,1]],nS=class{rig;chestLocal=new B;constructor(e){this.rig=e}toWorld(e,t){return t.copy(e).applyQuaternion(Gx).add(Kx)}dirToWorld(e,t){return t.copy(e).applyQuaternion(Gx)}setYawPitchRoll(e,t,n,r){$x.set(n,t,r,`YXZ`),Zx.setFromEuler($x),Qx.copy(Gx).multiply(Zx),this.rig.setWorldRotation(e,Qx)}apply(e,t){let n=this.rig,r=n.bones;n.resetToRest(),e.updateMatrixWorld(!0),Fx(e,Gx),Px(e,Kx);let i=t.torso;this.toWorld(i.hips,qx),n.setWorldPosition(r.hips,qx),this.setYawPitchRoll(r.hips,i.hipsYaw,i.hipsPitch,i.hipsRoll);let a=i.shouldersYaw-i.hipsYaw;for(let e=0;e0&&(Px(r.head,qx),this.dirToWorld(i.headOffset,Jx),qx.add(Jx),n.setWorldPosition(r.head,qx)),this.solveArm(`L`,t.handL,t.shrugL),this.solveArm(`R`,t.handR,t.shrugR),this.solveLeg(`L`,t.footL),this.solveLeg(`R`,t.footR)}solveArm(e,t,n){let r=this.rig,i=r.bones,a=e===`L`?i.clavicleL:i.clavicleR,o=e===`L`?i.shoulderL:i.shoulderR,s=e===`L`?i.elbowL:i.elbowR,c=e===`L`?i.gloveL:i.gloveR,l=e===`L`?r.metrics.armL:r.metrics.armR,u=e===`L`?zx:Bx;this.chestLocal.copy(u),this.chestLocal.z+=n*.06,this.chestLocal.y+=n*.035,this.chestLocal.x*=1-n*.08,Yx.copy(this.chestLocal).multiplyScalar(r.metrics.unitsPerMeter),i.upperChest.localToWorld(Yx),r.aimAt(a,Yx,`z`),o.updateWorldMatrix(!1,!1),this.toWorld(t.position,qx),this.dirToWorld(t.pole,Jx),r.solveLimb(o,s,l,qx,Jx,`z`,e===`L`?1:-1,.012),c.updateWorldMatrix(!1,!1),this.dirToWorld(t.knuckles,Yx),this.dirToWorld(t.palm,Xx),r.setWorldFrame(c,Yx,Xx,`z`)}solveLeg(e,t){let n=this.rig,r=n.bones,i=e===`L`?r.hipL:r.hipR,a=e===`L`?r.kneeL:r.kneeR,o=e===`L`?r.ankleL:r.ankleR,s=e===`L`?r.toeL:r.toeR,c=e===`L`?n.metrics.legL:n.metrics.legR;this.toWorld(t.position,qx),this.dirToWorld(t.toe,Yx).normalize();let l=n.metrics.footLength;Xx.copy(Yx).multiplyScalar(l).addScaledVector(eS,-n.metrics.ankleHeight).normalize(),t.heel!==0&&(qx.addScaledVector(Xx,l),Zx.setFromAxisAngle(Jx.crossVectors(Yx,eS).normalize(),-t.heel),Xx.applyQuaternion(Zx),qx.addScaledVector(Xx,-l)),this.dirToWorld(t.pole,Jx),n.solveLimb(i,a,c,qx,Jx,`x`,-1,.02),o.updateWorldMatrix(!1,!1),n.setWorldFrame(o,Xx,eS,`z`),s.updateWorldMatrix(!1,!1),n.setWorldFrame(s,Yx,eS,`z`)}},rS={bladeYaw:-.68,shoulderBlade:1.18,hipsHeight:.875,leadFoot:Vx(.13,0,.2),rearFoot:Vx(-.15,0,-.25),leadToe:Vx(-.26,0,.97),rearToe:Vx(-.68,0,.73),leadHeel:.05,rearHeel:.3,lean:.09,hunch:.15,chinTuck:.24,leadShrug:.45,rearShrug:.25,relaxedLead:Vx(.12,-.15,.44),relaxedRear:Vx(-.07,-.11,.18),tightLead:Vx(.13,-.11,.29),tightRear:Vx(-.08,-.1,.15),guardHighLead:Vx(.1,-.12,.33),guardHighRear:Vx(-.1,-.11,.24),guardLowLead:Vx(.11,-.3,.27),guardLowRear:Vx(-.11,-.3,.25),guardHighLeadPole:Vx(.15,-1,.35),guardHighRearPole:Vx(-.15,-1,.35),guardLowLeadPole:Vx(.3,-1,-.1),guardLowRearPole:Vx(-.3,-1,-.1),guardKnuckles:Vx(-.05,1,.15),guardPalm:Vx(-.6,0,-.8),leadPole:Vx(.3,-1,.1),rearPole:Vx(-.35,-1,-.15),leadKnuckles:Vx(.05,.75,.65),leadPalm:Vx(-.9,.15,-.35),rearKnuckles:Vx(-.05,.85,.5),rearPalm:Vx(.95,.1,-.25)},iS=e=>({rise:0,length:1,width:1,weight:0,lean:0,lead:Vx(0,0,0),rear:Vx(0,0,0),flare:0,shrug:0,shell:0,spring:1,tempo:1,rock:1,bob:1,heel:1,paw:1,...e}),aS={balanced:iS({}),boxer:iS({rise:.022,width:.9,length:1.04,lean:-.03,lead:Vx(0,.02,.07),flare:-.1,spring:.7,tempo:1.25,rock:1.7,bob:.8,heel:1.3,paw:1.4}),slugger:iS({rise:-.015,width:1.22,length:.94,weight:-.035,lead:Vx(.04,-.07,-.05),rear:Vx(-.04,-.06,0),flare:.3,shrug:-.15,spring:.3,tempo:.8,rock:.5,bob:.6,heel:.3,paw:.5}),swarmer:iS({rise:-.045,width:1.06,length:.9,weight:.035,lean:.06,lead:Vx(-.03,.05,-.14),rear:Vx(0,.03,-.02),flare:-.3,spring:.9,tempo:1.1,rock:.8,bob:2.6,paw:.3}),counter_puncher:iS({rise:.005,width:.94,length:1.05,weight:-.04,lean:-.05,lead:Vx(-.11,-.3,-.2),rear:Vx(.01,.01,-.02),shrug:.45,shell:1,spring:.3,tempo:.8,rock:.4,bob:.4,heel:.8,paw:.2})};function oS(e,t,n=new B){return n.set(e.x*t,e.y,e.z)}var W={pelvis:0,hipL:1,hipR:2,belly:3,chest:4,upper:5,neck:6,shoulderL:7,shoulderR:8,head:9,crown:10,face:11,elbowL:12,wristL:13,fistL:14,elbowR:15,wristR:16,fistR:17,kneeL:18,ankleL:19,toeL:20,heelL:21,kneeR:22,ankleR:23,toeR:24,heelR:25},sS=[9,4,4,2,10,7,2,3.5,3.5,2.5,1.5,1,1.6,1,1,1.6,1,1,3.6,1.6,.4,.6,3.6,1.6,.4,.6],cS=[.12,.09,.09,.11,.14,.13,.06,.07,.07,.09,.085,.055,.05,.065,.08,.05,.065,.08,.06,.05,.035,.04,.06,.05,.035,.04],lS=.12,uS=.16,dS=.09,fS=.06,pS=.11,mS=[[W.pelvis,W.hipL],[W.pelvis,W.hipR],[W.hipL,W.hipR],[W.belly,W.hipL],[W.belly,W.hipR],[W.belly,W.pelvis],[W.pelvis,W.chest],[W.chest,W.upper],[W.upper,W.neck],[W.upper,W.shoulderL],[W.upper,W.shoulderR],[W.neck,W.shoulderL],[W.neck,W.shoulderR],[W.shoulderL,W.shoulderR],[W.neck,W.head],[W.head,W.crown],[W.head,W.face],[W.crown,W.face],[W.shoulderL,W.elbowL],[W.elbowL,W.wristL],[W.wristL,W.fistL],[W.shoulderR,W.elbowR],[W.elbowR,W.wristR],[W.wristR,W.fistR],[W.hipL,W.kneeL],[W.kneeL,W.ankleL],[W.ankleL,W.toeL],[W.ankleL,W.heelL],[W.toeL,W.heelL],[W.hipR,W.kneeR],[W.kneeR,W.ankleR],[W.ankleR,W.toeR],[W.ankleR,W.heelR],[W.toeR,W.heelR]],hS=[[W.hipL,W.shoulderL,.8,1.05],[W.hipR,W.shoulderR,.8,1.05],[W.hipL,W.shoulderR,.84,1.08],[W.hipR,W.shoulderL,.84,1.08],[W.belly,W.upper,.7,1.06],[W.pelvis,W.upper,.86,1],[W.hipL,W.chest,.84,1.08],[W.hipR,W.chest,.84,1.08],[W.shoulderL,W.face,.76,1.2],[W.shoulderR,W.face,.76,1.2],[W.kneeL,W.hipR,.8,1.3],[W.kneeR,W.hipL,.8,1.3],[W.kneeL,W.belly,.5,1.12],[W.kneeR,W.belly,.5,1.12]],gS=8,_S=[[W.kneeL,W.kneeR,.13],[W.ankleL,W.ankleR,.11],[W.kneeL,W.ankleR,.1],[W.kneeR,W.ankleL,.1],[W.hipL,W.ankleL,.2],[W.hipR,W.ankleR,.2],[W.shoulderL,W.wristL,.14],[W.shoulderR,W.wristR,.14],[W.face,W.chest,.2],[W.crown,W.chest,.24],[W.kneeL,W.upper,.3],[W.kneeR,W.upper,.3]],vS=[W.elbowL,W.wristL,W.fistL,W.elbowR,W.wristR,W.fistR],yS=[.7,.6,.6,.7,.9,1,1,1,1,1,1,1,.9,.8,.8,.9,.8,.8,.35,.1,0,0,.35,.1,0,0],bS=[[W.pelvis,W.chest,.12],[W.chest,W.upper,.13]],xS=Int32Array.from(mS.flat()),SS=Int32Array.from(hS.flatMap(([e,t])=>[e,t])),CS=Int32Array.from(_S.flatMap(([e,t])=>[e,t])),wS=Float64Array.from(_S.map(([,,e])=>e)),TS=Int32Array.from(bS.flatMap(([e,t])=>[e,t])),ES=Float64Array.from(bS.map(([,,e])=>e)),DS=Float64Array.from([W.head,1,W.crown,.9,W.face,1,W.neck,.45]),OS=Float64Array.from([W.belly,1,W.chest,.6,W.pelvis,.4,W.hipL,.3,W.hipR,.3]),kS=[W.head,W.crown,W.face],AS=[W.crown,W.face],jS=[[W.toeL,W.heelL],[W.toeR,W.heelR]],MS=[[W.heelL],[W.heelR]],NS=[W.head,W.crown,W.face],PS=[W.fistL],FS=[W.fistR],IS=1/120,LS=12,RS=9.81,zS=.998,BS=.5,VS=.03,HS=.35,US=.12,WS=[W.pelvis,W.hipL,W.hipR,W.belly,W.chest,W.upper],GS=[W.upper,W.neck,W.shoulderL,W.shoulderR,W.head,W.crown,W.face,W.elbowL,W.wristL,W.fistL,W.elbowR,W.wristR,W.fistR],KS=[W.pelvis,W.hipL,W.hipR,W.belly,W.kneeL,W.ankleL,W.toeL,W.heelL,W.kneeR,W.ankleR,W.toeR,W.heelR],qS=40*Math.PI/180,JS=[[W.kneeL,W.ankleL,W.toeL,W.heelL],[W.kneeR,W.ankleR,W.toeR,W.heelR]],YS=[[W.ankleL,W.toeL,W.heelL],[W.ankleR,W.toeR,W.heelR]],XS=.08,ZS=.35,QS=new Set(WS),$S=Z_+.45,eC=.24,tC=1.75,nC=.012,rC=1,iC=.35,aC=.15,oC=1.1,sC=.4,cC=1.2,lC=1200,uC=3,dC=7,fC=.08,pC=.97,mC=2.55,hC=.5,gC=30*Math.PI/180,_C=32*Math.PI/180,vC=28*Math.PI/180,yC=35*Math.PI/180,bC=20*Math.PI/180,xC=.5,SC=.01,CC=.04,wC=.4,TC=.02,EC=.25,DC={timber:{knee:.12,spine:.2,seconds:.55},crumple:{knee:mC,spine:1,seconds:0},sag:{knee:.55,spine:.6,seconds:.3},fold:{knee:.9,spine:1,seconds:.5}},OC=2.5,kC=35*Math.PI/180,AC=50*Math.PI/180,jC=135*Math.PI/180,MC=[[W.kneeL,W.ankleL,W.toeL,AC,jC],[W.kneeR,W.ankleR,W.toeR,AC,jC],[W.elbowL,W.wristL,W.fistL,0,kC],[W.elbowR,W.wristR,W.fistR,0,kC]],NC=Int32Array.from(MC.flatMap(([e,,t])=>[e,t]));function PC(e,t,n,r){if(t===`body`)return`fold`;if(n<90)return`sag`;let i=Math.abs(Math.floor(r))%3;return e===`hook`?i===0?`timber`:`crumple`:i===0?`crumple`:`timber`}var FC=(e,t,n)=>n.set(e[t*3],e[t*3+1],e[t*3+2]),IC=e=>e-Math.round(e/(Math.PI*2))*Math.PI*2,LC=(e,t,n)=>{e[t*3]=n.x,e[t*3+1]=n.y,e[t*3+2]=n.z},RC=class{position=new Float64Array(78);previous=new Float64Array(78);before=new Float64Array(78);invMass=new Float64Array(26);rigidLength=new Float64Array(mS.length);rangeMin=new Float64Array(hS.length);rangeMax=new Float64Array(hS.length);restRange=new Float64Array(hS.length);rangeStart=new Float64Array(hS.length);kneeStart=new Float64Array(2);footSign=new Float64Array(2);turnAxis=new B;turnQuaternion=new rs;turnPoint=new B;angleRanges=new Float64Array(MC.length*2);elbowAxes=new Float64Array(6);kneeAxes=new Float64Array(6);hingeStart=new Float64Array(24);hingeNow=new Float64Array(24);swing=new rs;local=new B;localAxis=new B;ropeLines=new Float64Array(4);style=`crumple`;steps=0;stillSeconds=0;torsoStillSeconds=0;fallSeconds=0;landedSeconds=-1;asleep=!1;obstacleActive=!1;obstacleX=0;obstacleZ=0;obstacleTrack=null;obstacleTrackLive=!1;pull=null;pullShare=0;trackObstacle(e,t){this.obstacleTrack=e,this.obstacleTrackLive=e!==null&&!t}a=new B;b=new B;c=new B;d=new B;e=new B;fx=new B;fy=new B;fz=new B;gx=new B;gy=new B;gz=new B;pivot=new B;segmentA=new B;segmentB=new B;constructor(){for(let e=0;e<26;e+=1)this.invMass[e]=1/sS[e]}calibrate(e){for(let[t,[n,r]]of hS.entries())this.restRange[t]=this.distance(e,n,r)}start(e,t,n){this.position.set(e),this.before.set(e);for(let n=0;n<78;n+=1)this.previous[n]=e[n]-t[n]*IS;for(let[t,[n,r]]of mS.entries())this.rigidLength[t]=this.distance(e,n,r);for(let[t,[n,r,i,a,o]]of MC.entries()){let s=this.distance(e,n,r),c=this.distance(e,r,i),l=this.distance(e,n,i),u=e=>Math.sqrt(s*s+c*c+2*s*c*Math.cos(e));this.angleRanges[t*2]=Math.min(u(o),l),this.angleRanges[t*2+1]=Math.max(u(a),l)}for(let[t,[n,r,i,a]]of hS.entries()){let o=this.distance(e,n,r),s=this.restRange[t]>0?this.restRange[t]:o;this.rangeMin[t]=Math.min(s*i,o*.98),this.rangeMax[t]=Math.max(s*a,o*1.02),this.rangeStart[t]=o}this.style=n,this.steps=0,this.stillSeconds=0,this.torsoStillSeconds=0,this.fallSeconds=0,this.landedSeconds=-1,this.asleep=!1,this.upperFrame(this.position),this.pelvisFrame(this.position);for(let e of[0,1]){this.startHinge(this.elbowAxes,e,e===0?W.shoulderL:W.shoulderR,e===0?W.elbowL:W.elbowR,e===0?W.wristL:W.wristR,this.gx,-1),this.startHinge(this.kneeAxes,e,e===0?W.hipL:W.hipR,e===0?W.kneeL:W.kneeR,e===0?W.ankleL:W.ankleR,this.fx,1),this.storeHingeStart(e,e===0?W.hipL:W.hipR,e===0?W.kneeL:W.kneeR,this.kneeAxes,this.fx,this.fy,this.fz),this.storeHingeStart(2+e,e===0?W.shoulderL:W.shoulderR,e===0?W.elbowL:W.elbowR,this.elbowAxes,this.gx,this.gy,this.gz);let t=this.dir(e===0?W.hipL:W.hipR,e===0?W.kneeL:W.kneeR,this.a),n=this.dir(e===0?W.kneeL:W.kneeR,e===0?W.ankleL:W.ankleR,this.b);this.kneeStart[e]=Math.acos(Math.min(1,Math.max(-1,t.dot(n))));let r=this.c.set(this.kneeAxes[e*3],this.kneeAxes[e*3+1],this.kneeAxes[e*3+2]);this.footSign[e]=this.footNormal(e,this.d).dot(r)>=0?1:-1}for(let t=0;t<4;t+=1){let n=t<2?0:2,r=t%2==0?1:-1,i=0;for(let t of WS)i=Math.max(i,r*e[t*3+n]+cS[t]);this.ropeLines[t]=Math.max(tv,i+.04)}}startHinge(e,t,n,r,i,a,o){let s=this.dir(n,r,this.a),c=this.dir(r,i,this.b),l=this.c.crossVectors(s,c);l.length()<.2&&l.copy(a).multiplyScalar(o),l.addScaledVector(s,-l.dot(s)),l.lengthSq()<1e-8&&l.copy(a).multiplyScalar(o).addScaledVector(s,-o*a.dot(s)),l.normalize(),e[t*3]=l.x,e[t*3+1]=l.y,e[t*3+2]=l.z}storeHingeStart(e,t,n,r,i,a,o){let s=e%2,c=this.dir(t,n,this.a),l=this.b.set(r[s*3],r[s*3+1],r[s*3+2]),u=e*6;this.hingeStart[u]=c.dot(i),this.hingeStart[u+1]=c.dot(a),this.hingeStart[u+2]=c.dot(o),this.hingeStart[u+3]=l.dot(i),this.hingeStart[u+4]=l.dot(a),this.hingeStart[u+5]=l.dot(o);for(let e=0;e<6;e+=1)this.hingeNow[u+e]=this.hingeStart[u+e]}hingeAxis(e,t,n,r,i,a){let o=e*6,s=this.hingeNow;return this.local.set(t.dot(n),t.dot(r),t.dot(i)).normalize(),this.localAxis.set(s[o],s[o+1],s[o+2]),this.swing.setFromUnitVectors(this.localAxis,this.local),this.localAxis.set(s[o+3],s[o+4],s[o+5]).applyQuaternion(this.swing),a.copy(n).multiplyScalar(this.localAxis.x).addScaledVector(r,this.localAxis.y).addScaledVector(i,this.localAxis.z),a.addScaledVector(t,-a.dot(t)).normalize()}carryHinges(){this.pelvisFrame(this.position),this.upperFrame(this.position);for(let e=0;e<4;e+=1){let t=e%2,n=e<2,r=n?t===0?W.hipL:W.hipR:t===0?W.shoulderL:W.shoulderR,i=n?t===0?W.kneeL:W.kneeR:t===0?W.elbowL:W.elbowR,a=n?this.fx:this.gx,o=n?this.fy:this.gy,s=n?this.fz:this.gz,c=this.dir(r,i,this.a),l=this.hingeAxis(e,c,a,o,s,this.b),u=e*6;this.hingeNow[u]=c.dot(a),this.hingeNow[u+1]=c.dot(o),this.hingeNow[u+2]=c.dot(s),this.hingeNow[u+3]=l.dot(a),this.hingeNow[u+4]=l.dot(o),this.hingeNow[u+5]=l.dot(s)}}get holding(){return this.steps*IS0&&(this.landedSeconds=0)}setLimp(e,t){for(let n=0;n0){let e=Math.min(this.steps,t.steps-1)*3;this.obstacleActive=t.data[e]===1,this.obstacleX=t.data[e+1],this.obstacleZ=t.data[e+2]}let n=IS,r=this.position,i=this.previous,a=this.landedSeconds<0?zS:zS+-.02300000000000002*Math.min(1,this.landedSeconds/sC);this.before.set(r);for(let e=0;e<26;e+=1)for(let t=0;t<3;t+=1){let o=e*3+t,s=r[o],c=(s-i[o])*a;i[o]=s,r[o]=s+c-(t===1?RS*n*n:0)}let o=this.pull;if(o!==null)for(let e=0;e<26;e+=1){let t=(o[e*3]-r[e*3])*this.pullShare,n=(o[e*3+1]-r[e*3+1])*this.pullShare,a=(o[e*3+2]-r[e*3+2])*this.pullShare,s=Math.sqrt(t*t+n*n+a*a),c=this.pullShare<1&&s>XC?XC/s:1;for(let o=0;o<3;o+=1){let s=(o===0?t:o===1?n:a)*c;r[e*3+o]=r[e*3+o]+s,i[e*3+o]=i[e*3+o]+s}}this.carryHinges();for(let e=0;e=0&&o===null&&this.toppleLegs(),this.applyFriction(),this.limitSpeed(),this.steps+=1;let s=0,c=0;for(let e=0;e<26;e+=1){let t=r[e*3]-i[e*3],a=r[e*3+1]-i[e*3+1],o=r[e*3+2]-i[e*3+2],l=Math.sqrt(t*t+a*a+o*o)/n;s=Math.max(s,l),QS.has(e)&&(c=Math.max(c,l))}this.stillSeconds=s=0?this.landedSeconds+=n:(this.torsoStillSeconds=c=aC||this.fallSeconds>=oC)&&(this.landedSeconds=0)),o===null&&(this.stillSeconds>=rC||this.landedSeconds>=cC)&&(this.asleep=!0)}solveRigid(){for(let e=0;er?r:c;if(l===c)return;let u=this.invMass[e],d=this.invMass[t],f=u+d;if(f<=0)return;let p=(c-l)/(c*f);i[e*3]=i[e*3]+a*p*u,i[e*3+1]=i[e*3+1]+o*p*u,i[e*3+2]=i[e*3+2]+s*p*u,i[t*3]=i[t*3]-a*p*d,i[t*3+1]=i[t*3+1]-o*p*d,i[t*3+2]=i[t*3+2]-s*p*d}solveKnees(){this.pelvisFrame(this.position);for(let e=0;e<2;e+=1){let t=e===0?W.hipL:W.hipR,n=e===0?W.kneeL:W.kneeR,r=this.dir(t,n,this.a),i=this.hingeAxis(e,r,this.fx,this.fy,this.fz,this.b),a=this.holding?Math.min(mC,this.kneeStart[e]+DC[this.style].knee):mC;this.hinge(n,e===0?W.ankleL:W.ankleR,r,i,-.12,a)}}solveElbows(){this.upperFrame(this.position);for(let e=0;e<2;e+=1){let t=e===0?W.shoulderL:W.shoulderR,n=e===0?W.elbowL:W.elbowR,r=this.dir(t,n,this.a),i=this.hingeAxis(2+e,r,this.gx,this.gy,this.gz,this.b);this.hinge(n,e===0?W.wristL:W.wristR,r,i,-.12,OC)}}toppleLegs(){let e=this.position;for(let t=0;t<2;t+=1){let n=t===0?W.hipL:W.hipR,r=t===0?W.kneeL:W.kneeR,i=t===0?W.ankleL:W.ankleR,a=this.dir(n,r,this.a);if(a.y>ZS){let i=this.dir(W.hipR,W.hipL,this.b),o=this.c.crossVectors(i,this.d.set(e[r*3]-e[n*3],e[r*3+1]-e[n*3+1],e[r*3+2]-e[n*3+2])).y>0?-1:1;this.rotateAbout(JS[t],n,i,o*XS*(a.y-ZS))}let o=this.dir(r,i,this.a);if(o.y>ZS){let n=this.kneeAxis(t===0?0:1,e,this.b),a=this.c.crossVectors(n,this.d.set(e[i*3]-e[r*3],e[i*3+1]-e[r*3+1],e[i*3+2]-e[r*3+2])).y>0?-1:1;this.rotateAbout(YS[t],r,n,a*XS*(o.y-ZS))}}}solveTwist(){let e=this.dir(W.pelvis,W.upper,this.e),t=this.dir(W.hipR,W.hipL,this.a);t.addScaledVector(e,-t.dot(e));let n=this.dir(W.shoulderR,W.shoulderL,this.c);if(n.addScaledVector(e,-n.dot(e)),t.lengthSq()<1e-8||n.lengthSq()<1e-8)return;let r=Math.atan2(this.d.crossVectors(t,n).dot(e),t.dot(n)),i=Math.abs(r)-qS;if(i<=0)return;let a=this.spinInertia(GS,e),o=this.spinInertia(KS,e),s=Math.sign(r)*i*wC;this.rotateAbout(GS,W.chest,e,-s*(o/(a+o))),this.rotateAbout(KS,W.chest,e,s*(a/(a+o)))}spinInertia(e,t){let n=this.position,r=1e-6;for(let i=0;iMath.abs(p)+1e-6){let n=Math.atan2(r,u),a=Math.acos(p/i),c=IC(n-a),l=IC(n+a),d=(Math.abs(c)<=Math.abs(l)?c:l)*s;this.rotateAbout(MS[t],o,e,Math.min(CC,Math.max(-.04,d)))}}let m=this.dir(i,a,this.a),h=this.hingeAxis(t,m,this.fx,this.fy,this.fz,this.b),g=this.footNormal(t===0?0:1,this.d).multiplyScalar(this.footSign[t]);if(h.addScaledVector(c,-h.dot(c)),g.addScaledVector(c,-g.dot(c)),h.lengthSq()<.09||g.lengthSq()<.09)continue;h.normalize(),g.normalize();let _=Math.atan2(this.e.crossVectors(h,g).dot(c),h.dot(g)),v=Math.min(vC,Math.max(-vC,_));v!==_&&this.rotateAbout(jS[t],o,c,Math.min(SC,Math.max(-.01,(v-_)*s)))}}footNormal(e,t){let n=this.position,r=e===0?W.ankleL:W.ankleR,i=e===0?W.toeL:W.toeR,a=e===0?W.heelL:W.heelR;return t.set(n[i*3]-n[a*3],n[i*3+1]-n[a*3+1],n[i*3+2]-n[a*3+2]),this.turnPoint.set(n[r*3]-n[a*3],n[r*3+1]-n[a*3+1],n[r*3+2]-n[a*3+2]),t.cross(this.turnPoint).normalize()}cone(e,t,n,r,i,a){let o=this.dir(t,n,this.turnPoint),s=Math.acos(Math.min(1,Math.max(-1,o.dot(e))));if(s<=r)return;let c=this.turnAxis.crossVectors(o,e);if(c.lengthSq()<1e-10)return;c.normalize();let l=this.pressed(a,i,c)?TC*EC:TC;this.rotateAbout(a,i,c,Math.min(l,(s-r)*wC))}pressed(e,t,n){let r=this.position;for(let i=0;icS[a]+.005)&&n.z*(r[a*3]-r[t*3])-n.x*(r[a*3+2]-r[t*3+2])<-1e-9)return!0}return!1}rotateAbout(e,t,n,r){let i=this.position;this.turnQuaternion.setFromAxisAngle(n,r);let a=i[t*3],o=i[t*3+1],s=i[t*3+2];for(let t=0;t=u||l<1e-6||(o.addScaledVector(c,(u-l)/l),LC(e,n,o))}}}closestOnSegment(e,t,n,r){let i=this.segmentA.subVectors(t,e),a=i.lengthSq(),o=a<1e-12?0:Math.min(1,Math.max(0,this.segmentB.subVectors(n,e).dot(i)/a));return r.copy(e).addScaledVector(i,o)}solveEnvironment(){let e=this.position;for(let t=0;t<26;t+=1){let n=cS[t],r=e[t*3],i=e[t*3+1],a=e[t*3+2];i=p||f<1e-9)continue;let m=(p-f)/f*HS,h=u*m,g=d*m;t?r+=s*h:a+=s*h,i+=g}let u=o?c-n*.6:$S;s*(t?r:a)>u&&(t?r=s*u:a=s*u)}for(let e=0;e<4;e+=1){let t=e<2?-tv:tv,o=e%2==0?-tv:tv,s=r-t,c=a-o,l=Math.sqrt(s*s+c*c),u=US+n;l>=u||l<1e-9||i>1.45||(r=t+s/l*u,a=o+c/l*u)}if(this.obstacleActive&&i1e-9&&(r=this.obstacleX+e/i*o,a=this.obstacleZ+t/i*o)}e[t*3]=r,e[t*3+1]=i,e[t*3+2]=a}}limitSpeed(){let e=this.position,t=this.previous,n=dC*IS,r=fC*IS;for(let i=0;i<26;i+=1){let a=e[i*3]-t[i*3],o=e[i*3+1]-t[i*3+1],s=e[i*3+2]-t[i*3+2],c=Math.sqrt(a*a+o*o+s*s);if(c>n||cn?n/c:pC;t[i*3]=e[i*3]-a*r,t[i*3+1]=e[i*3+1]-o*r,t[i*3+2]=e[i*3+2]-s*r}}}applyFriction(){let e=this.position,t=this.previous;for(let n=0;n<26;n+=1)e[n*3+1]>cS[n]+.004||(t[n*3]=t[n*3]+(e[n*3]-t[n*3])*BS,t[n*3+2]=t[n*3+2]+(e[n*3+2]-t[n*3+2])*BS,t[n*3+1]>e[n*3+1]&&(t[n*3+1]=e[n*3+1]))}settle(e=4,t){let n=this.steps+Math.ceil(e/IS);for(;!this.asleep&&this.steps1e-9?n.divideScalar(i):n.set(0,1,0)}pelvisFrame(e){this.fx.set(e[W.hipL*3]-e[W.hipR*3],e[W.hipL*3+1]-e[W.hipR*3+1],e[W.hipL*3+2]-e[W.hipR*3+2]).normalize(),this.fz.set(e[W.belly*3]-(e[W.hipL*3]+e[W.hipR*3])/2,e[W.belly*3+1]-(e[W.hipL*3+1]+e[W.hipR*3+1])/2,e[W.belly*3+2]-(e[W.hipL*3+2]+e[W.hipR*3+2])/2),this.fz.addScaledVector(this.fx,-this.fz.dot(this.fx)).normalize(),this.fy.crossVectors(this.fz,this.fx).normalize()}upperFrame(e){this.gx.set(e[W.shoulderL*3]-e[W.shoulderR*3],e[W.shoulderL*3+1]-e[W.shoulderR*3+1],e[W.shoulderL*3+2]-e[W.shoulderR*3+2]).normalize(),this.gy.set(e[W.neck*3]-e[W.upper*3],e[W.neck*3+1]-e[W.upper*3+1],e[W.neck*3+2]-e[W.upper*3+2]),this.gy.addScaledVector(this.gx,-this.gy.dot(this.gx)).normalize(),this.gz.crossVectors(this.gx,this.gy).normalize()}pelvisForward(e){return this.pelvisFrame(this.position),e.copy(this.fz)}};function zC(e,t){e.setLimp(NS,!!(t&1)),e.setLimp(PS,!!(t&2)),e.setLimp(FS,!!(t&4))}var BC=[`hips`,`spine`,`chest`,`upperChest`,`neck`,`head`,`shoulderL`,`elbowL`,`gloveL`,`shoulderR`,`elbowR`,`gloveR`,`hipL`,`kneeL`,`ankleL`,`hipR`,`kneeR`,`ankleR`],VC=BC.map(e=>({shoulderL:[W.shoulderL,W.elbowL],elbowL:[W.elbowL,W.wristL],gloveL:[W.wristL,W.fistL],shoulderR:[W.shoulderR,W.elbowR],elbowR:[W.elbowR,W.wristR],gloveR:[W.wristR,W.fistR],hipL:[W.hipL,W.kneeL],kneeL:[W.kneeL,W.ankleL],hipR:[W.hipR,W.kneeR],kneeR:[W.kneeR,W.ankleR]})[e]??null),HC=BC.map(e=>({chest:W.chest,shoulderL:W.shoulderL,shoulderR:W.shoulderR,hipL:W.hipL,hipR:W.hipR})[e]??-1),UC=.1,WC=.35,GC=.6,KC=10,qC=.35,JC=6,YC=.25,XC=.05,ZC=.3,QC=6;function $C(e){let t=e.lateral;if(e.target===`body`){let n=Math.min(2.6,Math.max(1,.9+e.amount/90));return{x:.3*t*n,y:-.05*n,z:-n,driveX:.1*t*n,driveY:-.2*n,driveZ:.45*n,twist:0}}let n=Math.min(3.2,Math.max(1.4,1.2+e.amount/70)),r=n/3.2;switch(e.punchClass){case`hook`:return{x:t*n,y:.05*n,z:-.25*n,driveX:.55*t*r,driveY:-.1*r,driveZ:.85*r,twist:.6};case`uppercut`:return{x:0,y:.8*n,z:-.65*n,driveX:0,driveY:.25*r,driveZ:-1.1*r,twist:.4};case`straight`:return{x:.12*t*n,y:.1*n,z:-n,driveX:.1*t*r,driveY:0,driveZ:-1.25*r,twist:.3};default:return{x:.12*t*n,y:.1*n,z:-.85*n,driveX:.08*t*r,driveY:0,driveZ:-1*r,twist:.2}}}var ew=class{rig;root;body=new RC;ahead=new RC;aheadOf=null;aheadBlows=0;ragdolling=!1;age=0;accumulator=0;sampleNow=new Float64Array(78);sampleBefore=new Float64Array(78);sampleRoot=new B;sampleSeconds=0;samples=0;drawn=new Float64Array(78);velocities=new Float64Array(78);offsets=BC.map(()=>new rs);fromLocal=BC.map(()=>new rs);fromPositions=BC.map(()=>new B);fromHips=new B;riseLocal=BC.map(()=>new rs);riseHips=new B;riseTurns=BC.map(()=>new rs);solvedTurns=BC.map(()=>new rs);rootTurn=new rs;turn=new rs;riseCaptured=!1;lastFall=null;recordPositions=new Float64Array(78);recordVelocities=new Float64Array(78);recordOffsets=BC.map(()=>new rs);recordImpulses=[];recordObstacles={data:new Float64Array(lC*3),steps:0};recordLosses=[];recordRest={position:new Float64Array(78),previous:new Float64Array(78),steps:-1};replaying=null;followTargets=new Float64Array(78);followOffsets=BC.map(()=>new rs);blendedOffsets=BC.map(()=>new rs);following=!1;followAge=0;primed=!1;pending=null;lost=0;clock=0;bones;frame=new rs;world=new rs;axisX=new B;axisY=new B;axisZ=new B;hint=new B;point=new B;other=new B;pelvisX=new B;pelvisY=new B;upperX=new B;headX=new B;kneeAxes=[new B(1,0,0),new B(1,0,0)];elbowAxes=[new B,new B];spineLength;tiltJoint=new B;tiltChest=new B;tiltAcross=new B;tiltTurn=new rs;constructor(e,t){this.rig=e,this.root=t,this.bones=BC.map(t=>e.bones[t]);let n=new Map;t.traverse(e=>{e instanceof Ul&&n.set(e,[e.quaternion.clone(),e.position.clone()])}),e.resetToRest(),t.updateMatrixWorld(!0);let r=new Float64Array(78);this.read(r),this.body.calibrate(r),this.ahead.calibrate(r),this.spineLength=this.tiltJoint.setFromMatrixPosition(e.bones.spine.matrixWorld).distanceTo(this.tiltChest.setFromMatrixPosition(e.bones.chest.matrixWorld));for(let[e,[t,r]]of n)e.quaternion.copy(t),e.position.copy(r);t.updateMatrixWorld(!0)}get active(){return this.ragdolling}get record(){return this.lastFall}sample(e){this.ragdolling||e<=0||(this.sampleBefore.set(this.sampleNow),this.read(this.sampleNow),this.sampleRoot.setFromMatrixPosition(this.root.matrixWorld),this.sampleSeconds=e,this.samples=Math.min(2,this.samples+1))}tick(e){this.clock+=e}takeBlow(e,t,n,r,i){let a={step:0,x:e.x,y:e.y,z:e.z,driveX:t.x,driveY:t.y,driveZ:t.z,target:n,twist:r,style:i};if(this.ragdolling){if(this.age>WC)return;if(this.replaying!==null){this.replaying.impulses.length===0&&this.replaying.impulses.push({...a,step:this.body.steps});return}this.lastFall?.impulses.push(this.body.impulse(a))}else this.pending={...a,at:this.clock}}dropBlow(){this.pending=null}twitch(e,t,n){this.ragdolling&&!this.following&&(this.body.twitch(e,t,n),this.replaying===null&&this.lastFall!==null&&(this.lastFall.rest.steps=-1))}prime(){this.primed=this.lastFall!==null}forget(){this.lastFall=null,this.primed=!1}start(e){let t=this.primed?this.lastFall:null;if(this.primed=!1,this.root.updateMatrixWorld(!0),this.captureLocals(this.fromLocal,this.fromHips),t!==null){this.replaying=t,this.body.start(t.positions,t.velocities,t.style),this.body.trackObstacle(t.obstacles,!0),this.replayLosses(this.body,t,0);for(let[e,n]of t.offsets.entries())this.offsets[e].copy(n);this.aheadOf=null,t.rest.steps<0&&this.runAhead(t,0)}else{this.replaying=null;let t=this.point.setFromMatrixPosition(this.root.matrixWorld).sub(this.sampleRoot),n=this.samples>0&&t.lengthSq()<=qC*qC;if(!n)this.read(this.sampleNow);else for(let e=0;e<26;e+=1)for(let n of[this.sampleNow,this.sampleBefore])n[e*3]=n[e*3]+t.x,n[e*3+1]=n[e*3+1]+t.y,n[e*3+2]=n[e*3+2]+t.z;let r=n&&this.samples>=2&&this.sampleSeconds>0?this.sampleSeconds:0;this.samples=0;for(let e=0;e<78;e+=1){let t=r>0?(this.sampleNow[e]-this.sampleBefore[e])/r:0;this.velocities[e]=Math.max(-3,Math.min(uC,t))}let i=this.rig.bones.neck,a=this.rig.bones.head;this.point.copy(this.rig.restLocalPosition(a)).applyMatrix4(i.matrixWorld).sub(this.other.setFromMatrixPosition(a.matrixWorld));for(let e of kS)this.sampleNow[e*3]=this.sampleNow[e*3]+this.point.x,this.sampleNow[e*3+1]=this.sampleNow[e*3+1]+this.point.y,this.sampleNow[e*3+2]=this.sampleNow[e*3+2]+this.point.z;let o=this.pending!==null&&this.clock-this.pending.at<=GC?this.pending:null;this.body.start(this.sampleNow,this.velocities,o?.style??e),this.computeOffsets();let s=this.recordImpulses;s.length=0,o!==null&&s.push(this.body.impulse({step:0,x:o.x,y:o.y,z:o.z,driveX:o.driveX,driveY:o.driveY,driveZ:o.driveZ,target:o.target,twist:o.twist}));let c=this.recordObstacles;c.steps=0,this.body.trackObstacle(c,!1),this.recordPositions.set(this.sampleNow),this.recordVelocities.set(this.velocities);for(let e=0;e=.008333333333333333&&i=.008333333333333333&&n=0)this.body.restore(t);else{let t=this.body.steps+Math.ceil(QC/IS);for(;!this.body.asleep&&this.body.steps=1)return;let t=Math.min(1,Math.max(0,e));this.bodyTurns(this.solvedTurns),this.rig.bones.hips.position.lerpVectors(this.riseHips,this.rig.bones.hips.position,t);for(let e=0;eLC(e,t,n),r=e=>this.point.setFromMatrixPosition(e.matrixWorld),i=(e,t,n)=>n.setFromMatrixColumn(e.matrixWorld,t).normalize();n(W.pelvis,r(t.hips)),n(W.hipL,r(t.hipL)),n(W.hipR,r(t.hipR)),n(W.belly,r(t.hips).addScaledVector(i(t.hips,2,this.axisZ),lS)),n(W.chest,r(t.chest)),n(W.upper,r(t.upperChest)),n(W.neck,r(t.neck)),n(W.shoulderL,r(t.shoulderL)),n(W.shoulderR,r(t.shoulderR)),n(W.head,r(t.head)),n(W.crown,r(t.head).addScaledVector(i(t.head,1,this.axisY),uS)),n(W.face,r(t.head).addScaledVector(i(t.head,2,this.axisZ),dS).addScaledVector(i(t.head,1,this.axisY),fS)),n(W.elbowL,r(t.elbowL)),n(W.wristL,r(t.gloveL)),n(W.fistL,r(t.gloveL).addScaledVector(i(t.gloveL,1,this.axisY),pS)),n(W.elbowR,r(t.elbowR)),n(W.wristR,r(t.gloveR)),n(W.fistR,r(t.gloveR).addScaledVector(i(t.gloveR,1,this.axisY),pS)),n(W.kneeL,r(t.kneeL)),n(W.ankleL,r(t.ankleL)),n(W.toeL,r(t.toeL)),n(W.heelL,r(t.ankleL).addScaledVector(i(t.toeL,1,this.axisY),-.07).addScaledVector(i(t.toeL,2,this.axisZ),-.09)),n(W.kneeR,r(t.kneeR)),n(W.ankleR,r(t.ankleR)),n(W.toeR,r(t.toeR)),n(W.heelR,r(t.ankleR).addScaledVector(i(t.toeR,1,this.axisY),-.07).addScaledVector(i(t.toeR,2,this.axisZ),-.09))}computeOffsets(){this.prepareFrames(this.body.position);for(let e=0;e=0&&this.rig.setWorldPosition(i,FC(e,a,this.point)),BC[r]===`upperChest`&&(this.rig.bones.clavicleL.updateWorldMatrix(!1,!1),this.rig.bones.clavicleR.updateWorldMatrix(!1,!1))}this.root.updateMatrixWorld(!0)}tiltHips(e){let t=this.rig.bones.hips,n=this.point.setFromMatrixPosition(t.matrixWorld),r=this.tiltJoint.copy(this.rig.restLocalPosition(this.rig.bones.spine)).applyMatrix4(t.matrixWorld).sub(n),i=FC(e,W.chest,this.tiltChest).sub(n),a=this.pelvisX,o=a.dot(r),s=this.tiltAcross.copy(r).addScaledVector(a,-o),c=(r.lengthSq()+i.lengthSq()-this.spineLength*this.spineLength)/2-o*a.dot(i),l=s.dot(i),u=this.other.crossVectors(a,s).dot(i),d=Math.hypot(l,u);if(d<1e-9)return;let f=Math.atan2(u,l),p=Math.acos(Math.min(1,Math.max(-1,c/d))),m=IC(f-p),h=IC(f+p),g=Math.abs(m)<=Math.abs(h)?m:h;Math.abs(g)<1e-5||(t.getWorldQuaternion(this.world).premultiply(this.tiltTurn.setFromAxisAngle(a,g)),this.rig.setWorldRotation(t,this.world))}prepareFrames(e){this.segment(e,W.hipR,W.hipL,this.pelvisX),this.axisZ.set(e[W.belly*3]-(e[W.hipL*3]+e[W.hipR*3])/2,e[W.belly*3+1]-(e[W.hipL*3+1]+e[W.hipR*3+1])/2,e[W.belly*3+2]-(e[W.hipL*3+2]+e[W.hipR*3+2])/2),this.axisZ.addScaledVector(this.pelvisX,-this.axisZ.dot(this.pelvisX)).normalize(),this.pelvisY.crossVectors(this.axisZ,this.pelvisX).normalize(),this.segment(e,W.shoulderR,W.shoulderL,this.upperX),this.segment(e,W.head,W.crown,this.axisX),this.segment(e,W.head,W.face,this.other),this.headX.crossVectors(this.axisX,this.other).normalize()}segment(e,t,n,r){return r.set(e[n*3]-e[t*3],e[n*3+1]-e[t*3+1],e[n*3+2]-e[t*3+2]),r.lengthSq()>1e-12?r.normalize():r.set(0,1,0)}frameFor(e,t,n){let r=BC[e];switch(r){case`hips`:return Ix(this.pelvisY,this.pelvisX,`x`,n);case`spine`:{let r=this.bones[e];return r.updateWorldMatrix(!1,!1),this.axisY.setFromMatrixPosition(r.matrixWorld),this.axisY.set(t[W.chest*3]-this.axisY.x,t[W.chest*3+1]-this.axisY.y,t[W.chest*3+2]-this.axisY.z),this.axisY.lengthSq()>1e-12?this.axisY.normalize():this.segment(t,W.pelvis,W.chest,this.axisY),Ix(this.axisY,this.hint.copy(this.pelvisX).multiplyScalar(.75).addScaledVector(this.upperX,.25),`x`,n)}case`chest`:return this.segment(t,W.chest,W.upper,this.axisY),Ix(this.axisY,this.hint.copy(this.pelvisX).multiplyScalar(.4).addScaledVector(this.upperX,.6),`x`,n);case`upperChest`:return this.segment(t,W.upper,W.neck,this.axisY),Ix(this.axisY,this.upperX,`x`,n);case`neck`:return this.segment(t,W.neck,W.head,this.axisY),Ix(this.axisY,this.hint.copy(this.upperX).add(this.headX),`x`,n);case`head`:return this.segment(t,W.head,W.crown,this.axisY),Ix(this.axisY,this.segment(t,W.head,W.face,this.hint),`z`,n);case`shoulderL`:case`elbowL`:case`gloveL`:case`shoulderR`:case`elbowR`:case`gloveR`:{let i=+!r.endsWith(`L`),a=VC[e],o=this.body.elbowAxis(i,t,this.elbowAxes[i]);return this.segment(t,a[0],a[1],this.axisY),Ix(this.axisY,o,`x`,n)}case`hipL`:case`kneeL`:case`hipR`:case`kneeR`:{let i=+!r.endsWith(`L`),a=VC[e],o=this.body.kneeAxis(i,t,this.kneeAxes[i]);return this.segment(t,a[0],a[1],this.axisY),Ix(this.axisY,o,`x`,n)}default:{let e=r===`ankleL`,i=e?W.ankleL:W.ankleR,a=e?W.toeL:W.toeR,o=e?W.heelL:W.heelR;return this.segment(t,i,a,this.axisY),this.segment(t,o,a,this.hint),this.other.set(t[i*3]-t[o*3],t[i*3+1]-t[o*3+1],t[i*3+2]-t[o*3+2]),this.hint.cross(this.other),Ix(this.axisY,this.hint,`x`,n)}}}};function tw(e,t,n){let r=Math.min(1,Math.max(0,(n-e)/(t-e)));return r*r*(3-2*r)}var nw=3,rw=5;function iw(e){return 1-.74*tw(-.6,1.4,e)}var aw=.23,ow=.22,sw=.22,cw=1.15,lw=.5,uw=.9,dw=.045,fw=[.33,.66],pw=dw*2*.33*.67,mw=.04;function hw(e,t){return{pressX:Math.min(ow,Math.max(0,Math.abs(e)+aw-tv)),pressZ:Math.min(ow,Math.max(0,Math.abs(t)+aw-tv))}}function gw(e,t,n){return n.x=Math.sign(e)*Math.max(0,Math.abs(e)+aw-tv-ow),n.z=Math.sign(t)*Math.max(0,Math.abs(t)+aw-tv-ow),n}var _w=` +`,ux=.35;function dx(e){e.bumpMap=e.map,e.bumpScale=ux;let t=e.onBeforeCompile,n=Object.hasOwn(e,`customProgramCacheKey`)?e.customProgramCacheKey():`plain`;e.onBeforeCompile=(n,r)=>{t.call(e,n,r),n.fragmentShader=n.fragmentShader.replace(`#include `,`#include \n${lx}`)},e.customProgramCacheKey=()=>`${n}-skin`,e.needsUpdate=!0}var fx={x:7,y:66.1,z:-3},px={x:8.4,y:39.4,z:-4.7},mx=62,hx=58,gx=72,_x=.78,vx=.85,yx=.66,bx=(e,t,n)=>{let r=R.clamp((n-e)/(t-e),0,1);return r*r*(3-2*r)},xx=R.lerp;function Sx(e,t){let n=e.clone(),r=n.getAttribute(`position`),i=n.getAttribute(`skinIndex`),a=new Map([[t.indexOf(fb.kneeL),t.indexOf(fb.hipL)],[t.indexOf(fb.kneeR),t.indexOf(fb.hipR)]]);for(let e=0;e0&&(t=Math.sign(t)*(l+d*xx(1,_x,s))),o=u+(o-u)*xx(1,o>u?vx:yx,s),r.setXYZ(e,t,n,o);for(let t=0;t>>0||1,this.blinkIn=this.nextBlink()}nextBlink(){return this.seed=Math.imul(this.seed,1664525)+1013904223>>>0,wx[0]+this.seed/4294967296*(wx[1]-wx[0])}flinch(e,t){let n=Math.min(1,Math.max(0,e));this.wince=Math.max(this.wince,t?.55+.45*n:.3+.4*n),this.gape=Math.max(this.gape,t?.25+.6*n:.5+.5*n)}update(e,t,n,r,i,a){let o=Math.max(0,e);this.wince=Math.max(0,this.wince-this.wince*Tx*o-.2*o),this.gape=Math.max(0,this.gape-this.gape*Tx*.6*o-.15*o),!t&&!a&&(this.blinkIn-=o,this.blinkIn<=0&&(this.blink=Cx,this.blinkIn=this.nextBlink()),this.breath+=o*Ex*Math.PI*2),this.blink=Math.max(0,this.blink-o);let s=this.blink>0?Math.sin(this.blink/Cx*Math.PI):0,c=t?.3:.3+.25*Math.sin(this.breath),l=a?1:Math.max(s,this.wince,n?.4:0,i*.55),u=a?.45:Math.max(this.gape,n?.3:0,r*c,i*.35),d=a?0:Math.max(+!!n,this.wince*.8),f=1-Math.exp(-14*o);this.lids=Math.max(s,this.wince,this.lids+(l-this.lids)*f),this.mouth+=(u-this.mouth)*f,this.brow+=(d-this.brow)*f}},Ox={hips:fb.hips,spine:fb.spine,chest:`Spine1_024`,upperChest:fb.chest,neck:`Neck_012`,head:fb.head,clavicleL:`LeftShoulder_09`,shoulderL:fb.shoulderL,elbowL:fb.elbowL,gloveL:fb.gloveL,clavicleR:`RightShoulder_020`,shoulderR:fb.shoulderR,elbowR:fb.elbowR,gloveR:fb.gloveR,hipL:fb.hipL,kneeL:fb.kneeL,ankleL:fb.ankleL,toeL:`LeftToeBase_011`,hipR:fb.hipR,kneeR:fb.kneeR,ankleR:fb.ankleR,toeR:`RightToeBase_022`},kx=new B,Ax=new B,jx=new B,Mx=new Rs,Nx=new ms,Px=new ms,Fx=new B,Ix=new B,Lx=new B,Rx=new B,zx=new B,Bx=new B,Vx=new B,Hx=new B,Ux=new B,Wx=new B;function Gx(e,t){return t.setFromMatrixPosition(e.matrixWorld)}function Kx(e,t){return e.matrixWorld.decompose(Fx,t,Ix),t}function qx(e,t,n,r){return Ax.copy(e).normalize(),n===`z`?(jx.copy(t).addScaledVector(Ax,-t.dot(Ax)),jx.lengthSq()<1e-8&&jx.set(0,0,1).addScaledVector(Ax,-Ax.z),jx.normalize(),kx.crossVectors(Ax,jx).normalize()):(kx.copy(t).addScaledVector(Ax,-t.dot(Ax)),kx.lengthSq()<1e-8&&kx.set(1,0,0).addScaledVector(Ax,-Ax.x),kx.normalize(),jx.crossVectors(kx,Ax).normalize()),Mx.makeBasis(kx,Ax,jx),r.setFromRotationMatrix(Mx)}var Jx=class{bones;metrics;restLocal=new Map;restPositions=new Map;limb={reached:!1,joint:new B};constructor(e){let t=new Map;e.traverse(e=>{e instanceof eu&&t.set(e.name,e)});let n={};for(let[e,r]of Object.entries(Ox)){let i=t.get(r);if(i===void 0)throw Error(`fighter rig missing bone ${r} (${e})`);n[e]=i}this.bones=n,e.updateMatrixWorld(!0);for(let e of t.values())this.restLocal.set(e,e.quaternion.clone()),this.restPositions.set(e,e.position.clone());let r=(e,t)=>Gx(n[e],Lx).distanceTo(Gx(n[t],Rx)),i=Gx(n.hips,Lx).clone(),a=Gx(n.hips.parent??e,Rx).clone(),o=n.hips.position.length(),s=i.distanceTo(a);this.metrics={hipsHeight:i.y,headHeight:Gx(n.head,Lx).y,chestHeight:Gx(n.upperChest,Lx).y,ankleHeight:Gx(n.ankleL,Lx).y,armL:{upper:r(`shoulderL`,`elbowL`),lower:r(`elbowL`,`gloveL`)},armR:{upper:r(`shoulderR`,`elbowR`),lower:r(`elbowR`,`gloveR`)},legL:{upper:r(`hipL`,`kneeL`),lower:r(`kneeL`,`ankleL`)},legR:{upper:r(`hipR`,`kneeR`),lower:r(`kneeR`,`ankleR`)},footLength:r(`ankleL`,`toeL`),unitsPerMeter:s>1e-6?o/s:1}}resetToRest(){for(let[e,t]of this.restLocal){e.quaternion.copy(t);let n=this.restPositions.get(e);n!==void 0&&e.position.copy(n)}}restLocalQuaternion(e){return this.restLocal.get(e)??e.quaternion}restLocalPosition(e){return this.restPositions.get(e)??e.position}position(e,t){return Gx(this.bones[e],t)}setWorldRotation(e,t){let n=e.parent;n===null?e.quaternion.copy(t):(Kx(n,Px),e.quaternion.copy(Px.invert().multiply(t)).normalize()),e.updateWorldMatrix(!1,!1)}setWorldFrame(e,t,n,r){this.setWorldRotation(e,qx(t,n,r,Nx))}setWorldPosition(e,t){let n=e.parent;n===null?e.position.copy(t):(e.position.copy(t),n.worldToLocal(e.position)),e.updateWorldMatrix(!1,!1)}aimAt(e,t,n){if(e.updateWorldMatrix(!1,!1),Gx(e,Lx),zx.subVectors(t,Lx),zx.lengthSq()<1e-10)return;Kx(e,Nx);let r=n===`z`?Wx.set(0,0,1):Wx.set(1,0,0);this.setWorldFrame(e,zx,r.applyQuaternion(Nx),n)}solveLimb(e,t,n,r,i,a,o,s=.01){e.updateWorldMatrix(!1,!1);let c=Gx(e,Lx);zx.subVectors(r,c);let l=n.upper+n.lower-s,u=R.clamp(zx.length(),Math.abs(n.upper-n.lower)+.005,l),d=zx.length()<=l;zx.lengthSq()<1e-10&&zx.set(0,-1,0),zx.normalize(),Bx.copy(i).addScaledVector(zx,-i.dot(zx)),Bx.lengthSq()<1e-8&&(Bx.set(0,0,1).addScaledVector(zx,-zx.z),Bx.lengthSq()<1e-8&&Bx.set(1,0,0)),Bx.normalize();let f=R.clamp((n.upper*n.upper+u*u-n.lower*n.lower)/(2*n.upper*u),-1,1),p=n.upper*f,m=n.upper*Math.sqrt(Math.max(0,1-f*f));Vx.copy(c).addScaledVector(zx,p).addScaledVector(Bx,m),Hx.crossVectors(Bx,zx).multiplyScalar(o).normalize(),Ux.copy(Vx).sub(c),this.setWorldFrame(e,Ux,Hx,a),t.updateWorldMatrix(!1,!1);let h=Gx(t,Rx);return Ux.copy(c).addScaledVector(zx,u).sub(h),this.setWorldFrame(t,Ux,Hx,a),this.limb.reached=d,this.limb.joint.copy(h),this.limb}},Yx={x:.1059,y:.0253,z:-.0026},Xx=new B(.2018,.081,-.027),Zx=new B(-.2018,.081,-.027),Qx=(e,t,n)=>new B(e,t,n),$x=(e,t,n)=>{let r=R.clamp((n-e)/Math.max(1e-6,t-e),0,1);return r*r*(3-2*r)},eS=(e,t=1.7)=>R.clamp(e,0,1)**+t,tS=(e,t=2)=>1-(1-R.clamp(e,0,1))**t,nS=new ms,rS=new B,iS=new B,aS=new B,oS=new B,sS=new B,cS=new ms,lS=new ms,uS=new Js,dS=new B(0,1,0),fS=[[`spine`,.25,.2],[`chest`,.55,.5],[`upperChest`,1,1]],pS=class{rig;chestLocal=new B;constructor(e){this.rig=e}toWorld(e,t){return t.copy(e).applyQuaternion(nS).add(rS)}dirToWorld(e,t){return t.copy(e).applyQuaternion(nS)}setYawPitchRoll(e,t,n,r){uS.set(n,t,r,`YXZ`),cS.setFromEuler(uS),lS.copy(nS).multiply(cS),this.rig.setWorldRotation(e,lS)}apply(e,t){let n=this.rig,r=n.bones;n.resetToRest(),e.updateMatrixWorld(!0),Kx(e,nS),Gx(e,rS);let i=t.torso;this.toWorld(i.hips,iS),n.setWorldPosition(r.hips,iS),this.setYawPitchRoll(r.hips,i.hipsYaw,i.hipsPitch,i.hipsRoll);let a=i.shouldersYaw-i.hipsYaw;for(let e=0;e0&&(Gx(r.head,iS),this.dirToWorld(i.headOffset,aS),iS.add(aS),n.setWorldPosition(r.head,iS)),this.solveArm(`L`,t.handL,t.shrugL),this.solveArm(`R`,t.handR,t.shrugR),this.solveLeg(`L`,t.footL),this.solveLeg(`R`,t.footR)}solveArm(e,t,n){let r=this.rig,i=r.bones,a=e===`L`?i.clavicleL:i.clavicleR,o=e===`L`?i.shoulderL:i.shoulderR,s=e===`L`?i.elbowL:i.elbowR,c=e===`L`?i.gloveL:i.gloveR,l=e===`L`?r.metrics.armL:r.metrics.armR,u=e===`L`?Xx:Zx;this.chestLocal.copy(u),this.chestLocal.z+=n*.06,this.chestLocal.y+=n*.035,this.chestLocal.x*=1-n*.08,oS.copy(this.chestLocal).multiplyScalar(r.metrics.unitsPerMeter),i.upperChest.localToWorld(oS),r.aimAt(a,oS,`z`),o.updateWorldMatrix(!1,!1),this.toWorld(t.position,iS),this.dirToWorld(t.pole,aS),r.solveLimb(o,s,l,iS,aS,`z`,e===`L`?1:-1,.012),c.updateWorldMatrix(!1,!1),this.dirToWorld(t.knuckles,oS),this.dirToWorld(t.palm,sS),r.setWorldFrame(c,oS,sS,`z`)}solveLeg(e,t){let n=this.rig,r=n.bones,i=e===`L`?r.hipL:r.hipR,a=e===`L`?r.kneeL:r.kneeR,o=e===`L`?r.ankleL:r.ankleR,s=e===`L`?r.toeL:r.toeR,c=e===`L`?n.metrics.legL:n.metrics.legR;this.toWorld(t.position,iS),this.dirToWorld(t.toe,oS).normalize();let l=n.metrics.footLength;sS.copy(oS).multiplyScalar(l).addScaledVector(dS,-n.metrics.ankleHeight).normalize(),t.heel!==0&&(iS.addScaledVector(sS,l),cS.setFromAxisAngle(aS.crossVectors(oS,dS).normalize(),-t.heel),sS.applyQuaternion(cS),iS.addScaledVector(sS,-l)),this.dirToWorld(t.pole,aS),n.solveLimb(i,a,c,iS,aS,`x`,-1,.02),o.updateWorldMatrix(!1,!1),n.setWorldFrame(o,sS,dS,`z`),s.updateWorldMatrix(!1,!1),n.setWorldFrame(s,oS,dS,`z`)}},mS={bladeYaw:-.68,shoulderBlade:1.18,hipsHeight:.875,leadFoot:Qx(.13,0,.2),rearFoot:Qx(-.15,0,-.25),leadToe:Qx(-.26,0,.97),rearToe:Qx(-.68,0,.73),leadHeel:.05,rearHeel:.3,lean:.09,hunch:.15,chinTuck:.24,leadShrug:.45,rearShrug:.25,relaxedLead:Qx(.12,-.15,.44),relaxedRear:Qx(-.07,-.11,.18),tightLead:Qx(.13,-.11,.29),tightRear:Qx(-.08,-.1,.15),guardHighLead:Qx(.1,-.12,.33),guardHighRear:Qx(-.1,-.11,.24),guardLowLead:Qx(.11,-.3,.27),guardLowRear:Qx(-.11,-.3,.25),guardHighLeadPole:Qx(.15,-1,.35),guardHighRearPole:Qx(-.15,-1,.35),guardLowLeadPole:Qx(.3,-1,-.1),guardLowRearPole:Qx(-.3,-1,-.1),guardKnuckles:Qx(-.05,1,.15),guardPalm:Qx(-.6,0,-.8),leadPole:Qx(.3,-1,.1),rearPole:Qx(-.35,-1,-.15),leadKnuckles:Qx(.05,.75,.65),leadPalm:Qx(-.9,.15,-.35),rearKnuckles:Qx(-.05,.85,.5),rearPalm:Qx(.95,.1,-.25)},hS=e=>({rise:0,length:1,width:1,weight:0,lean:0,lead:Qx(0,0,0),rear:Qx(0,0,0),flare:0,shrug:0,shell:0,spring:1,tempo:1,rock:1,bob:1,heel:1,paw:1,...e}),gS={balanced:hS({}),boxer:hS({rise:.022,width:.9,length:1.04,lean:-.03,lead:Qx(0,.02,.07),flare:-.1,spring:.7,tempo:1.25,rock:1.7,bob:.8,heel:1.3,paw:1.4}),slugger:hS({rise:-.015,width:1.22,length:.94,weight:-.035,lead:Qx(.04,-.07,-.05),rear:Qx(-.04,-.06,0),flare:.3,shrug:-.15,spring:.3,tempo:.8,rock:.5,bob:.6,heel:.3,paw:.5}),swarmer:hS({rise:-.045,width:1.06,length:.9,weight:.035,lean:.06,lead:Qx(-.03,.05,-.14),rear:Qx(0,.03,-.02),flare:-.3,spring:.9,tempo:1.1,rock:.8,bob:2.6,paw:.3}),counter_puncher:hS({rise:.005,width:.94,length:1.05,weight:-.04,lean:-.05,lead:Qx(-.11,-.3,-.2),rear:Qx(.01,.01,-.02),shrug:.45,shell:1,spring:.3,tempo:.8,rock:.4,bob:.4,heel:.8,paw:.2})};function _S(e,t,n=new B){return n.set(e.x*t,e.y,e.z)}var W={pelvis:0,hipL:1,hipR:2,belly:3,chest:4,upper:5,neck:6,shoulderL:7,shoulderR:8,head:9,crown:10,face:11,elbowL:12,wristL:13,fistL:14,elbowR:15,wristR:16,fistR:17,kneeL:18,ankleL:19,toeL:20,heelL:21,kneeR:22,ankleR:23,toeR:24,heelR:25},vS=[9,4,4,2,10,7,2,3.5,3.5,2.5,1.5,1,1.6,1,1,1.6,1,1,3.6,1.6,.4,.6,3.6,1.6,.4,.6],yS=[.12,.09,.09,.11,.14,.13,.06,.07,.07,.09,.085,.055,.05,.065,.08,.05,.065,.08,.06,.05,.035,.04,.06,.05,.035,.04],bS=.12,xS=.16,SS=.09,CS=.06,wS=.11,TS=[[W.pelvis,W.hipL],[W.pelvis,W.hipR],[W.hipL,W.hipR],[W.belly,W.hipL],[W.belly,W.hipR],[W.belly,W.pelvis],[W.pelvis,W.chest],[W.chest,W.upper],[W.upper,W.neck],[W.upper,W.shoulderL],[W.upper,W.shoulderR],[W.neck,W.shoulderL],[W.neck,W.shoulderR],[W.shoulderL,W.shoulderR],[W.neck,W.head],[W.head,W.crown],[W.head,W.face],[W.crown,W.face],[W.shoulderL,W.elbowL],[W.elbowL,W.wristL],[W.wristL,W.fistL],[W.shoulderR,W.elbowR],[W.elbowR,W.wristR],[W.wristR,W.fistR],[W.hipL,W.kneeL],[W.kneeL,W.ankleL],[W.ankleL,W.toeL],[W.ankleL,W.heelL],[W.toeL,W.heelL],[W.hipR,W.kneeR],[W.kneeR,W.ankleR],[W.ankleR,W.toeR],[W.ankleR,W.heelR],[W.toeR,W.heelR]],ES=[[W.hipL,W.shoulderL,.8,1.05],[W.hipR,W.shoulderR,.8,1.05],[W.hipL,W.shoulderR,.84,1.08],[W.hipR,W.shoulderL,.84,1.08],[W.belly,W.upper,.7,1.06],[W.pelvis,W.upper,.86,1],[W.hipL,W.chest,.84,1.08],[W.hipR,W.chest,.84,1.08],[W.shoulderL,W.face,.76,1.2],[W.shoulderR,W.face,.76,1.2],[W.kneeL,W.hipR,.8,1.3],[W.kneeR,W.hipL,.8,1.3],[W.kneeL,W.belly,.5,1.12],[W.kneeR,W.belly,.5,1.12]],DS=8,OS=[[W.kneeL,W.kneeR,.13],[W.ankleL,W.ankleR,.11],[W.kneeL,W.ankleR,.1],[W.kneeR,W.ankleL,.1],[W.hipL,W.ankleL,.2],[W.hipR,W.ankleR,.2],[W.shoulderL,W.wristL,.14],[W.shoulderR,W.wristR,.14],[W.face,W.chest,.2],[W.crown,W.chest,.24],[W.kneeL,W.upper,.3],[W.kneeR,W.upper,.3]],kS=[W.elbowL,W.wristL,W.fistL,W.elbowR,W.wristR,W.fistR],AS=[.7,.6,.6,.7,.9,1,1,1,1,1,1,1,.9,.8,.8,.9,.8,.8,.35,.1,0,0,.35,.1,0,0],jS=[[W.pelvis,W.chest,.12],[W.chest,W.upper,.13]],MS=Int32Array.from(TS.flat()),NS=Int32Array.from(ES.flatMap(([e,t])=>[e,t])),PS=Int32Array.from(OS.flatMap(([e,t])=>[e,t])),FS=Float64Array.from(OS.map(([,,e])=>e)),IS=Int32Array.from(jS.flatMap(([e,t])=>[e,t])),LS=Float64Array.from(jS.map(([,,e])=>e)),RS=Float64Array.from([W.head,1,W.crown,.9,W.face,1,W.neck,.45]),zS=Float64Array.from([W.belly,1,W.chest,.6,W.pelvis,.4,W.hipL,.3,W.hipR,.3]),BS=[W.head,W.crown,W.face],VS=[W.crown,W.face],HS=[[W.toeL,W.heelL],[W.toeR,W.heelR]],US=[[W.heelL],[W.heelR]],WS=[W.head,W.crown,W.face],GS=[W.fistL],KS=[W.fistR],qS=1/120,JS=12,YS=9.81,XS=.998,ZS=.5,QS=.03,$S=.35,eC=.12,tC=[W.pelvis,W.hipL,W.hipR,W.belly,W.chest,W.upper],nC=[W.upper,W.neck,W.shoulderL,W.shoulderR,W.head,W.crown,W.face,W.elbowL,W.wristL,W.fistL,W.elbowR,W.wristR,W.fistR],rC=[W.pelvis,W.hipL,W.hipR,W.belly,W.kneeL,W.ankleL,W.toeL,W.heelL,W.kneeR,W.ankleR,W.toeR,W.heelR],iC=40*Math.PI/180,aC=[[W.kneeL,W.ankleL,W.toeL,W.heelL],[W.kneeR,W.ankleR,W.toeR,W.heelR]],oC=[[W.ankleL,W.toeL,W.heelL],[W.ankleR,W.toeR,W.heelR]],sC=.08,cC=.35,lC=new Set(tC),uC=cv+.45,dC=.24,fC=1.75,pC=.012,mC=1,hC=.35,gC=.15,_C=1.1,vC=.4,yC=1.2,bC=1200,xC=3,SC=7,CC=.08,wC=.97,TC=2.55,EC=.5,DC=30*Math.PI/180,OC=32*Math.PI/180,kC=28*Math.PI/180,AC=35*Math.PI/180,jC=20*Math.PI/180,MC=.5,NC=.01,PC=.04,FC=.4,IC=.02,LC=.25,RC={timber:{knee:.12,spine:.2,seconds:.55},crumple:{knee:TC,spine:1,seconds:0},sag:{knee:.55,spine:.6,seconds:.3},fold:{knee:.9,spine:1,seconds:.5}},zC=2.5,BC=35*Math.PI/180,VC=50*Math.PI/180,HC=135*Math.PI/180,UC=[[W.kneeL,W.ankleL,W.toeL,VC,HC],[W.kneeR,W.ankleR,W.toeR,VC,HC],[W.elbowL,W.wristL,W.fistL,0,BC],[W.elbowR,W.wristR,W.fistR,0,BC]],WC=Int32Array.from(UC.flatMap(([e,,t])=>[e,t]));function GC(e,t,n,r){if(t===`body`)return`fold`;if(n<90)return`sag`;let i=Math.abs(Math.floor(r))%3;return e===`hook`?i===0?`timber`:`crumple`:i===0?`crumple`:`timber`}var KC=(e,t,n)=>n.set(e[t*3],e[t*3+1],e[t*3+2]),qC=e=>e-Math.round(e/(Math.PI*2))*Math.PI*2,JC=(e,t,n)=>{e[t*3]=n.x,e[t*3+1]=n.y,e[t*3+2]=n.z},YC=class{position=new Float64Array(78);previous=new Float64Array(78);before=new Float64Array(78);invMass=new Float64Array(26);rigidLength=new Float64Array(TS.length);rangeMin=new Float64Array(ES.length);rangeMax=new Float64Array(ES.length);restRange=new Float64Array(ES.length);rangeStart=new Float64Array(ES.length);kneeStart=new Float64Array(2);footSign=new Float64Array(2);turnAxis=new B;turnQuaternion=new ms;turnPoint=new B;angleRanges=new Float64Array(UC.length*2);elbowAxes=new Float64Array(6);kneeAxes=new Float64Array(6);hingeStart=new Float64Array(24);hingeNow=new Float64Array(24);swing=new ms;local=new B;localAxis=new B;ropeLines=new Float64Array(4);style=`crumple`;steps=0;stillSeconds=0;torsoStillSeconds=0;fallSeconds=0;landedSeconds=-1;asleep=!1;obstacleActive=!1;obstacleX=0;obstacleZ=0;obstacleTrack=null;obstacleTrackLive=!1;pull=null;pullShare=0;trackObstacle(e,t){this.obstacleTrack=e,this.obstacleTrackLive=e!==null&&!t}a=new B;b=new B;c=new B;d=new B;e=new B;fx=new B;fy=new B;fz=new B;gx=new B;gy=new B;gz=new B;pivot=new B;segmentA=new B;segmentB=new B;constructor(){for(let e=0;e<26;e+=1)this.invMass[e]=1/vS[e]}calibrate(e){for(let[t,[n,r]]of ES.entries())this.restRange[t]=this.distance(e,n,r)}start(e,t,n){this.position.set(e),this.before.set(e);for(let n=0;n<78;n+=1)this.previous[n]=e[n]-t[n]*qS;for(let[t,[n,r]]of TS.entries())this.rigidLength[t]=this.distance(e,n,r);for(let[t,[n,r,i,a,o]]of UC.entries()){let s=this.distance(e,n,r),c=this.distance(e,r,i),l=this.distance(e,n,i),u=e=>Math.sqrt(s*s+c*c+2*s*c*Math.cos(e));this.angleRanges[t*2]=Math.min(u(o),l),this.angleRanges[t*2+1]=Math.max(u(a),l)}for(let[t,[n,r,i,a]]of ES.entries()){let o=this.distance(e,n,r),s=this.restRange[t]>0?this.restRange[t]:o;this.rangeMin[t]=Math.min(s*i,o*.98),this.rangeMax[t]=Math.max(s*a,o*1.02),this.rangeStart[t]=o}this.style=n,this.steps=0,this.stillSeconds=0,this.torsoStillSeconds=0,this.fallSeconds=0,this.landedSeconds=-1,this.asleep=!1,this.upperFrame(this.position),this.pelvisFrame(this.position);for(let e of[0,1]){this.startHinge(this.elbowAxes,e,e===0?W.shoulderL:W.shoulderR,e===0?W.elbowL:W.elbowR,e===0?W.wristL:W.wristR,this.gx,-1),this.startHinge(this.kneeAxes,e,e===0?W.hipL:W.hipR,e===0?W.kneeL:W.kneeR,e===0?W.ankleL:W.ankleR,this.fx,1),this.storeHingeStart(e,e===0?W.hipL:W.hipR,e===0?W.kneeL:W.kneeR,this.kneeAxes,this.fx,this.fy,this.fz),this.storeHingeStart(2+e,e===0?W.shoulderL:W.shoulderR,e===0?W.elbowL:W.elbowR,this.elbowAxes,this.gx,this.gy,this.gz);let t=this.dir(e===0?W.hipL:W.hipR,e===0?W.kneeL:W.kneeR,this.a),n=this.dir(e===0?W.kneeL:W.kneeR,e===0?W.ankleL:W.ankleR,this.b);this.kneeStart[e]=Math.acos(Math.min(1,Math.max(-1,t.dot(n))));let r=this.c.set(this.kneeAxes[e*3],this.kneeAxes[e*3+1],this.kneeAxes[e*3+2]);this.footSign[e]=this.footNormal(e,this.d).dot(r)>=0?1:-1}for(let t=0;t<4;t+=1){let n=t<2?0:2,r=t%2==0?1:-1,i=0;for(let t of tC)i=Math.max(i,r*e[t*3+n]+yS[t]);this.ropeLines[t]=Math.max(fv,i+.04)}}startHinge(e,t,n,r,i,a,o){let s=this.dir(n,r,this.a),c=this.dir(r,i,this.b),l=this.c.crossVectors(s,c);l.length()<.2&&l.copy(a).multiplyScalar(o),l.addScaledVector(s,-l.dot(s)),l.lengthSq()<1e-8&&l.copy(a).multiplyScalar(o).addScaledVector(s,-o*a.dot(s)),l.normalize(),e[t*3]=l.x,e[t*3+1]=l.y,e[t*3+2]=l.z}storeHingeStart(e,t,n,r,i,a,o){let s=e%2,c=this.dir(t,n,this.a),l=this.b.set(r[s*3],r[s*3+1],r[s*3+2]),u=e*6;this.hingeStart[u]=c.dot(i),this.hingeStart[u+1]=c.dot(a),this.hingeStart[u+2]=c.dot(o),this.hingeStart[u+3]=l.dot(i),this.hingeStart[u+4]=l.dot(a),this.hingeStart[u+5]=l.dot(o);for(let e=0;e<6;e+=1)this.hingeNow[u+e]=this.hingeStart[u+e]}hingeAxis(e,t,n,r,i,a){let o=e*6,s=this.hingeNow;return this.local.set(t.dot(n),t.dot(r),t.dot(i)).normalize(),this.localAxis.set(s[o],s[o+1],s[o+2]),this.swing.setFromUnitVectors(this.localAxis,this.local),this.localAxis.set(s[o+3],s[o+4],s[o+5]).applyQuaternion(this.swing),a.copy(n).multiplyScalar(this.localAxis.x).addScaledVector(r,this.localAxis.y).addScaledVector(i,this.localAxis.z),a.addScaledVector(t,-a.dot(t)).normalize()}carryHinges(){this.pelvisFrame(this.position),this.upperFrame(this.position);for(let e=0;e<4;e+=1){let t=e%2,n=e<2,r=n?t===0?W.hipL:W.hipR:t===0?W.shoulderL:W.shoulderR,i=n?t===0?W.kneeL:W.kneeR:t===0?W.elbowL:W.elbowR,a=n?this.fx:this.gx,o=n?this.fy:this.gy,s=n?this.fz:this.gz,c=this.dir(r,i,this.a),l=this.hingeAxis(e,c,a,o,s,this.b),u=e*6;this.hingeNow[u]=c.dot(a),this.hingeNow[u+1]=c.dot(o),this.hingeNow[u+2]=c.dot(s),this.hingeNow[u+3]=l.dot(a),this.hingeNow[u+4]=l.dot(o),this.hingeNow[u+5]=l.dot(s)}}get holding(){return this.steps*qS0&&(this.landedSeconds=0)}setLimp(e,t){for(let n=0;n0){let e=Math.min(this.steps,t.steps-1)*3;this.obstacleActive=t.data[e]===1,this.obstacleX=t.data[e+1],this.obstacleZ=t.data[e+2]}let n=qS,r=this.position,i=this.previous,a=this.landedSeconds<0?XS:XS+-.02300000000000002*Math.min(1,this.landedSeconds/vC);this.before.set(r);for(let e=0;e<26;e+=1)for(let t=0;t<3;t+=1){let o=e*3+t,s=r[o],c=(s-i[o])*a;i[o]=s,r[o]=s+c-(t===1?YS*n*n:0)}let o=this.pull;if(o!==null)for(let e=0;e<26;e+=1){let t=(o[e*3]-r[e*3])*this.pullShare,n=(o[e*3+1]-r[e*3+1])*this.pullShare,a=(o[e*3+2]-r[e*3+2])*this.pullShare,s=Math.sqrt(t*t+n*n+a*a),c=this.pullShare<1&&s>sw?sw/s:1;for(let o=0;o<3;o+=1){let s=(o===0?t:o===1?n:a)*c;r[e*3+o]=r[e*3+o]+s,i[e*3+o]=i[e*3+o]+s}}this.carryHinges();for(let e=0;e=0&&o===null&&this.toppleLegs(),this.applyFriction(),this.limitSpeed(),this.steps+=1;let s=0,c=0;for(let e=0;e<26;e+=1){let t=r[e*3]-i[e*3],a=r[e*3+1]-i[e*3+1],o=r[e*3+2]-i[e*3+2],l=Math.sqrt(t*t+a*a+o*o)/n;s=Math.max(s,l),lC.has(e)&&(c=Math.max(c,l))}this.stillSeconds=s=0?this.landedSeconds+=n:(this.torsoStillSeconds=c=gC||this.fallSeconds>=_C)&&(this.landedSeconds=0)),o===null&&(this.stillSeconds>=mC||this.landedSeconds>=yC)&&(this.asleep=!0)}solveRigid(){for(let e=0;er?r:c;if(l===c)return;let u=this.invMass[e],d=this.invMass[t],f=u+d;if(f<=0)return;let p=(c-l)/(c*f);i[e*3]=i[e*3]+a*p*u,i[e*3+1]=i[e*3+1]+o*p*u,i[e*3+2]=i[e*3+2]+s*p*u,i[t*3]=i[t*3]-a*p*d,i[t*3+1]=i[t*3+1]-o*p*d,i[t*3+2]=i[t*3+2]-s*p*d}solveKnees(){this.pelvisFrame(this.position);for(let e=0;e<2;e+=1){let t=e===0?W.hipL:W.hipR,n=e===0?W.kneeL:W.kneeR,r=this.dir(t,n,this.a),i=this.hingeAxis(e,r,this.fx,this.fy,this.fz,this.b),a=this.holding?Math.min(TC,this.kneeStart[e]+RC[this.style].knee):TC;this.hinge(n,e===0?W.ankleL:W.ankleR,r,i,-.12,a)}}solveElbows(){this.upperFrame(this.position);for(let e=0;e<2;e+=1){let t=e===0?W.shoulderL:W.shoulderR,n=e===0?W.elbowL:W.elbowR,r=this.dir(t,n,this.a),i=this.hingeAxis(2+e,r,this.gx,this.gy,this.gz,this.b);this.hinge(n,e===0?W.wristL:W.wristR,r,i,-.12,zC)}}toppleLegs(){let e=this.position;for(let t=0;t<2;t+=1){let n=t===0?W.hipL:W.hipR,r=t===0?W.kneeL:W.kneeR,i=t===0?W.ankleL:W.ankleR,a=this.dir(n,r,this.a);if(a.y>cC){let i=this.dir(W.hipR,W.hipL,this.b),o=this.c.crossVectors(i,this.d.set(e[r*3]-e[n*3],e[r*3+1]-e[n*3+1],e[r*3+2]-e[n*3+2])).y>0?-1:1;this.rotateAbout(aC[t],n,i,o*sC*(a.y-cC))}let o=this.dir(r,i,this.a);if(o.y>cC){let n=this.kneeAxis(t===0?0:1,e,this.b),a=this.c.crossVectors(n,this.d.set(e[i*3]-e[r*3],e[i*3+1]-e[r*3+1],e[i*3+2]-e[r*3+2])).y>0?-1:1;this.rotateAbout(oC[t],r,n,a*sC*(o.y-cC))}}}solveTwist(){let e=this.dir(W.pelvis,W.upper,this.e),t=this.dir(W.hipR,W.hipL,this.a);t.addScaledVector(e,-t.dot(e));let n=this.dir(W.shoulderR,W.shoulderL,this.c);if(n.addScaledVector(e,-n.dot(e)),t.lengthSq()<1e-8||n.lengthSq()<1e-8)return;let r=Math.atan2(this.d.crossVectors(t,n).dot(e),t.dot(n)),i=Math.abs(r)-iC;if(i<=0)return;let a=this.spinInertia(nC,e),o=this.spinInertia(rC,e),s=Math.sign(r)*i*FC;this.rotateAbout(nC,W.chest,e,-s*(o/(a+o))),this.rotateAbout(rC,W.chest,e,s*(a/(a+o)))}spinInertia(e,t){let n=this.position,r=1e-6;for(let i=0;iMath.abs(p)+1e-6){let n=Math.atan2(r,u),a=Math.acos(p/i),c=qC(n-a),l=qC(n+a),d=(Math.abs(c)<=Math.abs(l)?c:l)*s;this.rotateAbout(US[t],o,e,Math.min(PC,Math.max(-.04,d)))}}let m=this.dir(i,a,this.a),h=this.hingeAxis(t,m,this.fx,this.fy,this.fz,this.b),g=this.footNormal(t===0?0:1,this.d).multiplyScalar(this.footSign[t]);if(h.addScaledVector(c,-h.dot(c)),g.addScaledVector(c,-g.dot(c)),h.lengthSq()<.09||g.lengthSq()<.09)continue;h.normalize(),g.normalize();let _=Math.atan2(this.e.crossVectors(h,g).dot(c),h.dot(g)),v=Math.min(kC,Math.max(-kC,_));v!==_&&this.rotateAbout(HS[t],o,c,Math.min(NC,Math.max(-.01,(v-_)*s)))}}footNormal(e,t){let n=this.position,r=e===0?W.ankleL:W.ankleR,i=e===0?W.toeL:W.toeR,a=e===0?W.heelL:W.heelR;return t.set(n[i*3]-n[a*3],n[i*3+1]-n[a*3+1],n[i*3+2]-n[a*3+2]),this.turnPoint.set(n[r*3]-n[a*3],n[r*3+1]-n[a*3+1],n[r*3+2]-n[a*3+2]),t.cross(this.turnPoint).normalize()}cone(e,t,n,r,i,a){let o=this.dir(t,n,this.turnPoint),s=Math.acos(Math.min(1,Math.max(-1,o.dot(e))));if(s<=r)return;let c=this.turnAxis.crossVectors(o,e);if(c.lengthSq()<1e-10)return;c.normalize();let l=this.pressed(a,i,c)?IC*LC:IC;this.rotateAbout(a,i,c,Math.min(l,(s-r)*FC))}pressed(e,t,n){let r=this.position;for(let i=0;iyS[a]+.005)&&n.z*(r[a*3]-r[t*3])-n.x*(r[a*3+2]-r[t*3+2])<-1e-9)return!0}return!1}rotateAbout(e,t,n,r){let i=this.position;this.turnQuaternion.setFromAxisAngle(n,r);let a=i[t*3],o=i[t*3+1],s=i[t*3+2];for(let t=0;t=u||l<1e-6||(o.addScaledVector(c,(u-l)/l),JC(e,n,o))}}}closestOnSegment(e,t,n,r){let i=this.segmentA.subVectors(t,e),a=i.lengthSq(),o=a<1e-12?0:Math.min(1,Math.max(0,this.segmentB.subVectors(n,e).dot(i)/a));return r.copy(e).addScaledVector(i,o)}solveEnvironment(){let e=this.position;for(let t=0;t<26;t+=1){let n=yS[t],r=e[t*3],i=e[t*3+1],a=e[t*3+2];i=p||f<1e-9)continue;let m=(p-f)/f*$S,h=u*m,g=d*m;t?r+=s*h:a+=s*h,i+=g}let u=o?c-n*.6:uC;s*(t?r:a)>u&&(t?r=s*u:a=s*u)}for(let e=0;e<4;e+=1){let t=e<2?-fv:fv,o=e%2==0?-fv:fv,s=r-t,c=a-o,l=Math.sqrt(s*s+c*c),u=eC+n;l>=u||l<1e-9||i>1.45||(r=t+s/l*u,a=o+c/l*u)}if(this.obstacleActive&&i1e-9&&(r=this.obstacleX+e/i*o,a=this.obstacleZ+t/i*o)}e[t*3]=r,e[t*3+1]=i,e[t*3+2]=a}}limitSpeed(){let e=this.position,t=this.previous,n=SC*qS,r=CC*qS;for(let i=0;i<26;i+=1){let a=e[i*3]-t[i*3],o=e[i*3+1]-t[i*3+1],s=e[i*3+2]-t[i*3+2],c=Math.sqrt(a*a+o*o+s*s);if(c>n||cn?n/c:wC;t[i*3]=e[i*3]-a*r,t[i*3+1]=e[i*3+1]-o*r,t[i*3+2]=e[i*3+2]-s*r}}}applyFriction(){let e=this.position,t=this.previous;for(let n=0;n<26;n+=1)e[n*3+1]>yS[n]+.004||(t[n*3]=t[n*3]+(e[n*3]-t[n*3])*ZS,t[n*3+2]=t[n*3+2]+(e[n*3+2]-t[n*3+2])*ZS,t[n*3+1]>e[n*3+1]&&(t[n*3+1]=e[n*3+1]))}settle(e=4,t){let n=this.steps+Math.ceil(e/qS);for(;!this.asleep&&this.steps1e-9?n.divideScalar(i):n.set(0,1,0)}pelvisFrame(e){this.fx.set(e[W.hipL*3]-e[W.hipR*3],e[W.hipL*3+1]-e[W.hipR*3+1],e[W.hipL*3+2]-e[W.hipR*3+2]).normalize(),this.fz.set(e[W.belly*3]-(e[W.hipL*3]+e[W.hipR*3])/2,e[W.belly*3+1]-(e[W.hipL*3+1]+e[W.hipR*3+1])/2,e[W.belly*3+2]-(e[W.hipL*3+2]+e[W.hipR*3+2])/2),this.fz.addScaledVector(this.fx,-this.fz.dot(this.fx)).normalize(),this.fy.crossVectors(this.fz,this.fx).normalize()}upperFrame(e){this.gx.set(e[W.shoulderL*3]-e[W.shoulderR*3],e[W.shoulderL*3+1]-e[W.shoulderR*3+1],e[W.shoulderL*3+2]-e[W.shoulderR*3+2]).normalize(),this.gy.set(e[W.neck*3]-e[W.upper*3],e[W.neck*3+1]-e[W.upper*3+1],e[W.neck*3+2]-e[W.upper*3+2]),this.gy.addScaledVector(this.gx,-this.gy.dot(this.gx)).normalize(),this.gz.crossVectors(this.gx,this.gy).normalize()}pelvisForward(e){return this.pelvisFrame(this.position),e.copy(this.fz)}};function XC(e,t){e.setLimp(WS,!!(t&1)),e.setLimp(GS,!!(t&2)),e.setLimp(KS,!!(t&4))}var ZC=[`hips`,`spine`,`chest`,`upperChest`,`neck`,`head`,`shoulderL`,`elbowL`,`gloveL`,`shoulderR`,`elbowR`,`gloveR`,`hipL`,`kneeL`,`ankleL`,`hipR`,`kneeR`,`ankleR`],QC=ZC.map(e=>({shoulderL:[W.shoulderL,W.elbowL],elbowL:[W.elbowL,W.wristL],gloveL:[W.wristL,W.fistL],shoulderR:[W.shoulderR,W.elbowR],elbowR:[W.elbowR,W.wristR],gloveR:[W.wristR,W.fistR],hipL:[W.hipL,W.kneeL],kneeL:[W.kneeL,W.ankleL],hipR:[W.hipR,W.kneeR],kneeR:[W.kneeR,W.ankleR]})[e]??null),$C=ZC.map(e=>({chest:W.chest,shoulderL:W.shoulderL,shoulderR:W.shoulderR,hipL:W.hipL,hipR:W.hipR})[e]??-1),ew=.1,tw=.35,nw=.6,rw=10,iw=.35,aw=6,ow=.25,sw=.05,cw=.3,lw=6;function uw(e){let t=e.lateral;if(e.target===`body`){let n=Math.min(2.6,Math.max(1,.9+e.amount/90));return{x:.3*t*n,y:-.05*n,z:-n,driveX:.1*t*n,driveY:-.2*n,driveZ:.45*n,twist:0}}let n=Math.min(3.2,Math.max(1.4,1.2+e.amount/70)),r=n/3.2;switch(e.punchClass){case`hook`:return{x:t*n,y:.05*n,z:-.25*n,driveX:.55*t*r,driveY:-.1*r,driveZ:.85*r,twist:.6};case`uppercut`:return{x:0,y:.8*n,z:-.65*n,driveX:0,driveY:.25*r,driveZ:-1.1*r,twist:.4};case`straight`:return{x:.12*t*n,y:.1*n,z:-n,driveX:.1*t*r,driveY:0,driveZ:-1.25*r,twist:.3};default:return{x:.12*t*n,y:.1*n,z:-.85*n,driveX:.08*t*r,driveY:0,driveZ:-1*r,twist:.2}}}var dw=class{rig;root;body=new YC;ahead=new YC;aheadOf=null;aheadBlows=0;ragdolling=!1;age=0;accumulator=0;sampleNow=new Float64Array(78);sampleBefore=new Float64Array(78);sampleRoot=new B;sampleSeconds=0;samples=0;drawn=new Float64Array(78);velocities=new Float64Array(78);offsets=ZC.map(()=>new ms);fromLocal=ZC.map(()=>new ms);fromPositions=ZC.map(()=>new B);fromHips=new B;riseLocal=ZC.map(()=>new ms);riseHips=new B;riseTurns=ZC.map(()=>new ms);solvedTurns=ZC.map(()=>new ms);rootTurn=new ms;turn=new ms;riseCaptured=!1;lastFall=null;recordPositions=new Float64Array(78);recordVelocities=new Float64Array(78);recordOffsets=ZC.map(()=>new ms);recordImpulses=[];recordObstacles={data:new Float64Array(bC*3),steps:0};recordLosses=[];recordRest={position:new Float64Array(78),previous:new Float64Array(78),steps:-1};replaying=null;followTargets=new Float64Array(78);followOffsets=ZC.map(()=>new ms);blendedOffsets=ZC.map(()=>new ms);following=!1;followAge=0;primed=!1;pending=null;lost=0;clock=0;bones;frame=new ms;world=new ms;axisX=new B;axisY=new B;axisZ=new B;hint=new B;point=new B;other=new B;pelvisX=new B;pelvisY=new B;upperX=new B;headX=new B;kneeAxes=[new B(1,0,0),new B(1,0,0)];elbowAxes=[new B,new B];spineLength;tiltJoint=new B;tiltChest=new B;tiltAcross=new B;tiltTurn=new ms;constructor(e,t){this.rig=e,this.root=t,this.bones=ZC.map(t=>e.bones[t]);let n=new Map;t.traverse(e=>{e instanceof eu&&n.set(e,[e.quaternion.clone(),e.position.clone()])}),e.resetToRest(),t.updateMatrixWorld(!0);let r=new Float64Array(78);this.read(r),this.body.calibrate(r),this.ahead.calibrate(r),this.spineLength=this.tiltJoint.setFromMatrixPosition(e.bones.spine.matrixWorld).distanceTo(this.tiltChest.setFromMatrixPosition(e.bones.chest.matrixWorld));for(let[e,[t,r]]of n)e.quaternion.copy(t),e.position.copy(r);t.updateMatrixWorld(!0)}get active(){return this.ragdolling}get record(){return this.lastFall}sample(e){this.ragdolling||e<=0||(this.sampleBefore.set(this.sampleNow),this.read(this.sampleNow),this.sampleRoot.setFromMatrixPosition(this.root.matrixWorld),this.sampleSeconds=e,this.samples=Math.min(2,this.samples+1))}tick(e){this.clock+=e}takeBlow(e,t,n,r,i){let a={step:0,x:e.x,y:e.y,z:e.z,driveX:t.x,driveY:t.y,driveZ:t.z,target:n,twist:r,style:i};if(this.ragdolling){if(this.age>tw)return;if(this.replaying!==null){this.replaying.impulses.length===0&&this.replaying.impulses.push({...a,step:this.body.steps});return}this.lastFall?.impulses.push(this.body.impulse(a))}else this.pending={...a,at:this.clock}}dropBlow(){this.pending=null}twitch(e,t,n){this.ragdolling&&!this.following&&(this.body.twitch(e,t,n),this.replaying===null&&this.lastFall!==null&&(this.lastFall.rest.steps=-1))}prime(){this.primed=this.lastFall!==null}forget(){this.lastFall=null,this.primed=!1}start(e){let t=this.primed?this.lastFall:null;if(this.primed=!1,this.root.updateMatrixWorld(!0),this.captureLocals(this.fromLocal,this.fromHips),t!==null){this.replaying=t,this.body.start(t.positions,t.velocities,t.style),this.body.trackObstacle(t.obstacles,!0),this.replayLosses(this.body,t,0);for(let[e,n]of t.offsets.entries())this.offsets[e].copy(n);this.aheadOf=null,t.rest.steps<0&&this.runAhead(t,0)}else{this.replaying=null;let t=this.point.setFromMatrixPosition(this.root.matrixWorld).sub(this.sampleRoot),n=this.samples>0&&t.lengthSq()<=iw*iw;if(!n)this.read(this.sampleNow);else for(let e=0;e<26;e+=1)for(let n of[this.sampleNow,this.sampleBefore])n[e*3]=n[e*3]+t.x,n[e*3+1]=n[e*3+1]+t.y,n[e*3+2]=n[e*3+2]+t.z;let r=n&&this.samples>=2&&this.sampleSeconds>0?this.sampleSeconds:0;this.samples=0;for(let e=0;e<78;e+=1){let t=r>0?(this.sampleNow[e]-this.sampleBefore[e])/r:0;this.velocities[e]=Math.max(-3,Math.min(xC,t))}let i=this.rig.bones.neck,a=this.rig.bones.head;this.point.copy(this.rig.restLocalPosition(a)).applyMatrix4(i.matrixWorld).sub(this.other.setFromMatrixPosition(a.matrixWorld));for(let e of BS)this.sampleNow[e*3]=this.sampleNow[e*3]+this.point.x,this.sampleNow[e*3+1]=this.sampleNow[e*3+1]+this.point.y,this.sampleNow[e*3+2]=this.sampleNow[e*3+2]+this.point.z;let o=this.pending!==null&&this.clock-this.pending.at<=nw?this.pending:null;this.body.start(this.sampleNow,this.velocities,o?.style??e),this.computeOffsets();let s=this.recordImpulses;s.length=0,o!==null&&s.push(this.body.impulse({step:0,x:o.x,y:o.y,z:o.z,driveX:o.driveX,driveY:o.driveY,driveZ:o.driveZ,target:o.target,twist:o.twist}));let c=this.recordObstacles;c.steps=0,this.body.trackObstacle(c,!1),this.recordPositions.set(this.sampleNow),this.recordVelocities.set(this.velocities);for(let e=0;e=.008333333333333333&&i=.008333333333333333&&n=0)this.body.restore(t);else{let t=this.body.steps+Math.ceil(lw/qS);for(;!this.body.asleep&&this.body.steps=1)return;let t=Math.min(1,Math.max(0,e));this.bodyTurns(this.solvedTurns),this.rig.bones.hips.position.lerpVectors(this.riseHips,this.rig.bones.hips.position,t);for(let e=0;eJC(e,t,n),r=e=>this.point.setFromMatrixPosition(e.matrixWorld),i=(e,t,n)=>n.setFromMatrixColumn(e.matrixWorld,t).normalize();n(W.pelvis,r(t.hips)),n(W.hipL,r(t.hipL)),n(W.hipR,r(t.hipR)),n(W.belly,r(t.hips).addScaledVector(i(t.hips,2,this.axisZ),bS)),n(W.chest,r(t.chest)),n(W.upper,r(t.upperChest)),n(W.neck,r(t.neck)),n(W.shoulderL,r(t.shoulderL)),n(W.shoulderR,r(t.shoulderR)),n(W.head,r(t.head)),n(W.crown,r(t.head).addScaledVector(i(t.head,1,this.axisY),xS)),n(W.face,r(t.head).addScaledVector(i(t.head,2,this.axisZ),SS).addScaledVector(i(t.head,1,this.axisY),CS)),n(W.elbowL,r(t.elbowL)),n(W.wristL,r(t.gloveL)),n(W.fistL,r(t.gloveL).addScaledVector(i(t.gloveL,1,this.axisY),wS)),n(W.elbowR,r(t.elbowR)),n(W.wristR,r(t.gloveR)),n(W.fistR,r(t.gloveR).addScaledVector(i(t.gloveR,1,this.axisY),wS)),n(W.kneeL,r(t.kneeL)),n(W.ankleL,r(t.ankleL)),n(W.toeL,r(t.toeL)),n(W.heelL,r(t.ankleL).addScaledVector(i(t.toeL,1,this.axisY),-.07).addScaledVector(i(t.toeL,2,this.axisZ),-.09)),n(W.kneeR,r(t.kneeR)),n(W.ankleR,r(t.ankleR)),n(W.toeR,r(t.toeR)),n(W.heelR,r(t.ankleR).addScaledVector(i(t.toeR,1,this.axisY),-.07).addScaledVector(i(t.toeR,2,this.axisZ),-.09))}computeOffsets(){this.prepareFrames(this.body.position);for(let e=0;e=0&&this.rig.setWorldPosition(i,KC(e,a,this.point)),ZC[r]===`upperChest`&&(this.rig.bones.clavicleL.updateWorldMatrix(!1,!1),this.rig.bones.clavicleR.updateWorldMatrix(!1,!1))}this.root.updateMatrixWorld(!0)}tiltHips(e){let t=this.rig.bones.hips,n=this.point.setFromMatrixPosition(t.matrixWorld),r=this.tiltJoint.copy(this.rig.restLocalPosition(this.rig.bones.spine)).applyMatrix4(t.matrixWorld).sub(n),i=KC(e,W.chest,this.tiltChest).sub(n),a=this.pelvisX,o=a.dot(r),s=this.tiltAcross.copy(r).addScaledVector(a,-o),c=(r.lengthSq()+i.lengthSq()-this.spineLength*this.spineLength)/2-o*a.dot(i),l=s.dot(i),u=this.other.crossVectors(a,s).dot(i),d=Math.hypot(l,u);if(d<1e-9)return;let f=Math.atan2(u,l),p=Math.acos(Math.min(1,Math.max(-1,c/d))),m=qC(f-p),h=qC(f+p),g=Math.abs(m)<=Math.abs(h)?m:h;Math.abs(g)<1e-5||(t.getWorldQuaternion(this.world).premultiply(this.tiltTurn.setFromAxisAngle(a,g)),this.rig.setWorldRotation(t,this.world))}prepareFrames(e){this.segment(e,W.hipR,W.hipL,this.pelvisX),this.axisZ.set(e[W.belly*3]-(e[W.hipL*3]+e[W.hipR*3])/2,e[W.belly*3+1]-(e[W.hipL*3+1]+e[W.hipR*3+1])/2,e[W.belly*3+2]-(e[W.hipL*3+2]+e[W.hipR*3+2])/2),this.axisZ.addScaledVector(this.pelvisX,-this.axisZ.dot(this.pelvisX)).normalize(),this.pelvisY.crossVectors(this.axisZ,this.pelvisX).normalize(),this.segment(e,W.shoulderR,W.shoulderL,this.upperX),this.segment(e,W.head,W.crown,this.axisX),this.segment(e,W.head,W.face,this.other),this.headX.crossVectors(this.axisX,this.other).normalize()}segment(e,t,n,r){return r.set(e[n*3]-e[t*3],e[n*3+1]-e[t*3+1],e[n*3+2]-e[t*3+2]),r.lengthSq()>1e-12?r.normalize():r.set(0,1,0)}frameFor(e,t,n){let r=ZC[e];switch(r){case`hips`:return qx(this.pelvisY,this.pelvisX,`x`,n);case`spine`:{let r=this.bones[e];return r.updateWorldMatrix(!1,!1),this.axisY.setFromMatrixPosition(r.matrixWorld),this.axisY.set(t[W.chest*3]-this.axisY.x,t[W.chest*3+1]-this.axisY.y,t[W.chest*3+2]-this.axisY.z),this.axisY.lengthSq()>1e-12?this.axisY.normalize():this.segment(t,W.pelvis,W.chest,this.axisY),qx(this.axisY,this.hint.copy(this.pelvisX).multiplyScalar(.75).addScaledVector(this.upperX,.25),`x`,n)}case`chest`:return this.segment(t,W.chest,W.upper,this.axisY),qx(this.axisY,this.hint.copy(this.pelvisX).multiplyScalar(.4).addScaledVector(this.upperX,.6),`x`,n);case`upperChest`:return this.segment(t,W.upper,W.neck,this.axisY),qx(this.axisY,this.upperX,`x`,n);case`neck`:return this.segment(t,W.neck,W.head,this.axisY),qx(this.axisY,this.hint.copy(this.upperX).add(this.headX),`x`,n);case`head`:return this.segment(t,W.head,W.crown,this.axisY),qx(this.axisY,this.segment(t,W.head,W.face,this.hint),`z`,n);case`shoulderL`:case`elbowL`:case`gloveL`:case`shoulderR`:case`elbowR`:case`gloveR`:{let i=+!r.endsWith(`L`),a=QC[e],o=this.body.elbowAxis(i,t,this.elbowAxes[i]);return this.segment(t,a[0],a[1],this.axisY),qx(this.axisY,o,`x`,n)}case`hipL`:case`kneeL`:case`hipR`:case`kneeR`:{let i=+!r.endsWith(`L`),a=QC[e],o=this.body.kneeAxis(i,t,this.kneeAxes[i]);return this.segment(t,a[0],a[1],this.axisY),qx(this.axisY,o,`x`,n)}default:{let e=r===`ankleL`,i=e?W.ankleL:W.ankleR,a=e?W.toeL:W.toeR,o=e?W.heelL:W.heelR;return this.segment(t,i,a,this.axisY),this.segment(t,o,a,this.hint),this.other.set(t[i*3]-t[o*3],t[i*3+1]-t[o*3+1],t[i*3+2]-t[o*3+2]),this.hint.cross(this.other),qx(this.axisY,this.hint,`x`,n)}}}};function fw(e,t,n){let r=Math.min(1,Math.max(0,(n-e)/(t-e)));return r*r*(3-2*r)}var pw=3,mw=5;function hw(e){return 1-.74*fw(-.6,1.4,e)}var gw=.23,_w=.22,vw=.22,yw=1.15,bw=.5,xw=.9,Sw=.045,Cw=[.33,.66],ww=Sw*2*.33*.67,Tw=.04;function Ew(e,t){return{pressX:Math.min(_w,Math.max(0,Math.abs(e)+gw-fv)),pressZ:Math.min(_w,Math.max(0,Math.abs(t)+gw-fv))}}function Dw(e,t,n){return n.x=Math.sign(e)*Math.max(0,Math.abs(e)+gw-fv-_w),n.z=Math.sign(t)*Math.max(0,Math.abs(t)+gw-fv-_w),n}var Ow=` float ropeGive(float along, float position, float height) { - float near = 1.0 - smoothstep(${sw.toFixed(2)}, ${cw.toFixed(2)}, abs(along)); - float tied = smoothstep(0.0, ${lw.toFixed(2)}, ${tv.toFixed(4)} - abs(position)); - return near * tied * (${uw.toFixed(2)} + ${.09999999999999998.toFixed(2)} * smoothstep(0.5, 0.88, height)); + float near = 1.0 - smoothstep(${vw.toFixed(2)}, ${yw.toFixed(2)}, abs(along)); + float tied = smoothstep(0.0, ${bw.toFixed(2)}, ${fv.toFixed(4)} - abs(position)); + return near * tied * (${xw.toFixed(2)} + ${.09999999999999998.toFixed(2)} * smoothstep(0.5, 0.88, height)); } -`,vw=` +`,kw=` vec3 ropeWorld = (modelMatrix * vec4(transformed, 1.0)).xyz; bool ropeSideX = abs(ropeWorld.x) > abs(ropeWorld.z); vec3 ropeOut = ropeSideX ? vec3(sign(ropeWorld.x), 0.0, 0.0) : vec3(0.0, 0.0, sign(ropeWorld.z)); @@ -5241,12 +5241,12 @@ for (int ropeIndex = 0; ropeIndex < 2; ropeIndex += 1) { ropeFlex = max(ropeFlex, press * sameSide * ropeGive(ropeAlong - along, ropeAlong, ropeWorld.y)); } transformed += ropeOut * ropeFlex; -`;function yw(e,t){let n=document.createElement(`canvas`);n.width=e,n.height=e;let r=n.getContext(`2d`);r!==null&&t(r,e);let i=new ku(n);return i.anisotropy=8,i.colorSpace=lo,i}function bw(){return yw(1024,(e,t)=>{e.fillStyle=`#9d968a`,e.fillRect(0,0,t,t);let n=e.createLinearGradient(0,0,t,t);n.addColorStop(0,`rgba(255,255,255,0.08)`),n.addColorStop(.5,`rgba(60,50,40,0.06)`),n.addColorStop(1,`rgba(255,255,255,0.04)`),e.fillStyle=n,e.fillRect(0,0,t,t);for(let n=0;n<2600;n+=1){let r=Math.sin(n*12.9898)*43758.5453%1,i=Math.sin(n*78.233)*12543.1234%1;e.fillStyle=`rgba(${n%3==0?`255,255,255`:`70,55,45`},${.02+n%5*.006})`,e.fillRect(Math.abs(r)*t,Math.abs(i)*t,2+n%4,1+n%3)}for(let n=0;n<40;n+=1){let r=Math.abs(Math.sin(n*91.7)*7919.3%1)*t,i=Math.abs(Math.sin(n*47.1)*4271.9%1)*t;e.fillStyle=`rgba(80,60,50,${.05+n%4*.02})`,e.beginPath(),e.ellipse(r,i,18+n%7*6,6+n%5*3,n*.7%Math.PI,0,Math.PI*2),e.fill()}e.strokeStyle=`rgba(30,60,140,0.85)`,e.lineWidth=12,e.beginPath(),e.arc(t/2,t/2,t*.2,0,Math.PI*2),e.stroke(),e.fillStyle=`rgba(30,60,140,0.9)`,e.font=`800 ${Math.round(t*.062)}px Inter, system-ui, sans-serif`,e.textAlign=`center`,e.textBaseline=`middle`,e.fillText(`H A N D S`,t/2,t/2-t*.012),e.font=`600 ${Math.round(t*.024)}px Inter, system-ui, sans-serif`,e.fillText(`CHAMPIONSHIP BOXING`,t/2,t/2+t*.052),e.strokeStyle=`rgba(30,60,140,0.6)`,e.lineWidth=6,e.strokeRect(t*.035,t*.035,t*.93,t*.93)})}function xw(){let e=[],t=[],n=[],r=new tc;r.name=`ring`;let i=bw();n.push(i);let a=new jd({map:i,color:`#c8c2b8`,roughness:.84,metalness:0});t.push(a);let o=new hd(Z_*2,Z_*2);e.push(o);let s=new H(o,a);s.rotation.x=-Math.PI/2,s.position.y=.002,s.receiveShadow=!0,r.add(s);let c=new jd({color:`#1c2b52`,roughness:.85});t.push(c);let l=new gd(Z_*.98,Q_,4,1);e.push(l);let u=new H(l,c);u.rotation.x=-Math.PI/2,u.rotation.z=Math.PI/4,u.position.y=.001,u.receiveShadow=!0,r.add(u);let d=new jd({color:`#0c1424`,roughness:.9});t.push(d);let f=new Nu($_*2,1,$_*2);e.push(f);let p=new H(f,d);p.position.y=-.5,p.receiveShadow=!0,r.add(p);let m=new jd({color:`#101b33`,roughness:.95});t.push(m);for(let t=0;t<4;t+=1){let n=new hd($_*2,.95);e.push(n);let i=new H(n,m),a=t*Math.PI/2;i.position.set(Math.sin(a)*($_-.001),-.48,Math.cos(a)*($_-.001)),i.rotation.y=a,r.add(i)}let h=new jd({color:`#9aa7b5`,roughness:.35,metalness:.75});t.push(h);let g=[iv.neutral,iv.red,iv.neutral,iv.blue],_=new Iu(.055,.055,1.55,12);e.push(_);let v=new Nu(.34,.52,.13);e.push(v);let y=new Nu(.16,.07,.1);e.push(y);let b=[];for(let e=0;e<4;e+=1){let n=Math.PI/4+e*Math.PI/2,i=Math.sin(n)*ev*Math.SQRT2*.72,a=Math.cos(n)*ev*Math.SQRT2*.72;b.push(new B(i,0,a));let o=new H(_,h);o.position.set(i,.78,a),o.castShadow=!0,r.add(o);let s=new jd({color:g[e],roughness:.55});t.push(s);for(let e of[.62,1.12]){let t=new H(v,s);t.position.set(i*.985,e,a*.985),t.lookAt(0,e,0),t.castShadow=!0,r.add(t)}}let x=[new Ss(0,0,0,0),new Ss(0,0,0,0)],S={uRopeContactA:{value:x[0]},uRopeContactB:{value:x[1]}},C=[12131356,15067115,1920728],w=e=>{e.uniforms.uRopeContactA=S.uRopeContactA,e.uniforms.uRopeContactB=S.uRopeContactB,e.vertexShader=e.vertexShader.replace(`#include `,`#include \nuniform vec4 uRopeContactA;\nuniform vec4 uRopeContactB;\n${_w}`).replace(`#include `,`#include ${vw}`)},T=e=>{let n=new jd(e);return n.onBeforeCompile=w,t.push(n),n},E=new Nd;E.onBeforeCompile=w,E.customProgramCacheKey=()=>`hands-rope-depth`,t.push(E);let D=e=>T({color:e,roughness:.42,metalness:.05}),O=C.map(D),k=C.map(D),ee=T({color:14212840,roughness:.6}),A=T({color:14212840,roughness:.6});k.push(A);let te=nv[0]-pw-mw,j=nv[nv.length-1]-pw+mw,ne=new Nu(.035,j-te,.012,1,6,1);e.push(ne);let re=(e,t)=>{for(let[n,r]of[e,t].entries()){let e=x[n];if(r===null){e.set(0,0,0,0);continue}let t=hw(r.x,r.z);e.set(r.x,r.z,t.pressX,t.pressZ)}};for(let t=0;t<4;t+=1){let n=b[t],i=b[(t+1)%4];for(let[a,o]of nv.entries()){let s=n.clone().add(i).multiplyScalar(.5);s.y=o-dw;let c=new bd(new ud(new B(n.x,o,n.z),s,new B(i.x,o,i.z)),72,.028,8,!1);e.push(c);let l=new H(c,(t===nw?k:O)[a]);l.castShadow=!0,l.customDepthMaterial=E,t===nw&&(l.renderOrder=rw),r.add(l)}for(let e of fw){let a=n.x+(i.x-n.x)*e,o=n.z+(i.z-n.z)*e,s=new H(ne,t===nw?A:ee);s.position.set(a,(te+j)/2,o),s.lookAt(0,s.position.y,0),t===nw&&(s.renderOrder=rw),r.add(s)}}for(let e of k)e.transparent=!0;return{group:r,materials:t,geometries:e,textures:n,setRopeContacts:re,ropeContacts:x,setNearRopeOpacity:e=>{for(let t of k)t.opacity=R.clamp(e,0,1),t.visible=t.opacity>.03,t.depthWrite=t.opacity>=1},nearRopeOpacity:()=>k[0].opacity}}function Sw(e){for(let t of e.geometries)t.dispose();for(let t of e.materials)t.dispose();for(let t of e.textures)t.dispose()}var Cw={MHeadMat0:`head`,GlovesMat0:`gloves`,MBodyMat0:`body`,ShoesMat0:`shoes`,PantsMat0:`pants`},ww={GlovesMat0:.33,PantsMat0:.44,ShoesMat0:.5},Tw=new Map,Ew=new Map,Dw=null,Ow=null,kw=new Map;function Aw(e){return e.colorSpace=lo,e.flipY=!1,e}function jw(e){let t=Tw.get(e);if(t!==void 0)return Promise.resolve(t);let n=Ew.get(e);if(n!==void 0)return n;let r=new gf().loadAsync(nb[e]).then(t=>(Tw.set(e,Aw(t)),t));return Ew.set(e,r),r}function Mw(){return Promise.all(Object.keys(nb).map(jw))}async function Nw(){let e=Uint8Array.from(atob(eb),e=>e.charCodeAt(0)),t=new Response(e).body;if(t===null)throw Error(`fighter_glb_stream_unavailable`);return new Response(t.pipeThrough(new DecompressionStream(`gzip`))).arrayBuffer()}function Pw(){if(Dw===null){let e=Nw().then(e=>new Promise((t,n)=>{new ey().parse(e,``,t,e=>n(e instanceof Error?e:Error(String(e))))}));Dw=Promise.all([e,Mw()]).then(([e])=>(Ow=e.scene,e))}return Dw}function Fw(){Iw(Ow,Tw.values());for(let e of kw.values())e.dispose()}function Iw(e,t){e?.traverse(e=>{e instanceof H&&e.geometry.dispose()});for(let e of t)e.dispose()}function Lw(e){e.traverse(e=>{e instanceof Hl&&e.skeleton.dispose()})}function Rw(e){let t=Tw.get(e);if(t!==void 0)return t;let n=Aw(new gf().load(nb[e]));return Tw.set(e,n),n}var zw=`{ +`;function Aw(e,t){let n=document.createElement(`canvas`);n.width=e,n.height=e;let r=n.getContext(`2d`);r!==null&&t(r,e);let i=new Bu(n);return i.anisotropy=8,i.colorSpace=xo,i}function jw(){return Aw(1024,(e,t)=>{e.fillStyle=`#9d968a`,e.fillRect(0,0,t,t);let n=e.createLinearGradient(0,0,t,t);n.addColorStop(0,`rgba(255,255,255,0.08)`),n.addColorStop(.5,`rgba(60,50,40,0.06)`),n.addColorStop(1,`rgba(255,255,255,0.04)`),e.fillStyle=n,e.fillRect(0,0,t,t);for(let n=0;n<2600;n+=1){let r=Math.sin(n*12.9898)*43758.5453%1,i=Math.sin(n*78.233)*12543.1234%1;e.fillStyle=`rgba(${n%3==0?`255,255,255`:`70,55,45`},${.02+n%5*.006})`,e.fillRect(Math.abs(r)*t,Math.abs(i)*t,2+n%4,1+n%3)}for(let n=0;n<40;n+=1){let r=Math.abs(Math.sin(n*91.7)*7919.3%1)*t,i=Math.abs(Math.sin(n*47.1)*4271.9%1)*t;e.fillStyle=`rgba(80,60,50,${.05+n%4*.02})`,e.beginPath(),e.ellipse(r,i,18+n%7*6,6+n%5*3,n*.7%Math.PI,0,Math.PI*2),e.fill()}e.strokeStyle=`rgba(30,60,140,0.85)`,e.lineWidth=12,e.beginPath(),e.arc(t/2,t/2,t*.2,0,Math.PI*2),e.stroke(),e.fillStyle=`rgba(30,60,140,0.9)`,e.font=`800 ${Math.round(t*.062)}px Inter, system-ui, sans-serif`,e.textAlign=`center`,e.textBaseline=`middle`,e.fillText(`H A N D S`,t/2,t/2-t*.012),e.font=`600 ${Math.round(t*.024)}px Inter, system-ui, sans-serif`,e.fillText(`CHAMPIONSHIP BOXING`,t/2,t/2+t*.052),e.strokeStyle=`rgba(30,60,140,0.6)`,e.lineWidth=6,e.strokeRect(t*.035,t*.035,t*.93,t*.93)})}function Mw(){let e=[],t=[],n=[],r=new fc;r.name=`ring`;let i=jw();n.push(i);let a=new Hd({map:i,color:`#c8c2b8`,roughness:.84,metalness:0});t.push(a);let o=new Ed(cv*2,cv*2);e.push(o);let s=new H(o,a);s.rotation.x=-Math.PI/2,s.position.y=.002,s.receiveShadow=!0,r.add(s);let c=new Hd({color:`#1c2b52`,roughness:.85});t.push(c);let l=new Dd(cv*.98,lv,4,1);e.push(l);let u=new H(l,c);u.rotation.x=-Math.PI/2,u.rotation.z=Math.PI/4,u.position.y=.001,u.receiveShadow=!0,r.add(u);let d=new Hd({color:`#0c1424`,roughness:.9});t.push(d);let f=new Wu(uv*2,1,uv*2);e.push(f);let p=new H(f,d);p.position.y=-.5,p.receiveShadow=!0,r.add(p);let m=new Hd({color:`#101b33`,roughness:.95});t.push(m);for(let t=0;t<4;t+=1){let n=new Ed(uv*2,.95);e.push(n);let i=new H(n,m),a=t*Math.PI/2;i.position.set(Math.sin(a)*(uv-.001),-.48,Math.cos(a)*(uv-.001)),i.rotation.y=a,r.add(i)}let h=new Hd({color:`#9aa7b5`,roughness:.35,metalness:.75});t.push(h);let g=[hv.neutral,hv.red,hv.neutral,hv.blue],_=new qu(.055,.055,1.55,12);e.push(_);let v=new Wu(.34,.52,.13);e.push(v);let y=new Wu(.16,.07,.1);e.push(y);let b=[];for(let e=0;e<4;e+=1){let n=Math.PI/4+e*Math.PI/2,i=Math.sin(n)*dv*Math.SQRT2*.72,a=Math.cos(n)*dv*Math.SQRT2*.72;b.push(new B(i,0,a));let o=new H(_,h);o.position.set(i,.78,a),o.castShadow=!0,r.add(o);let s=new Hd({color:g[e],roughness:.55});t.push(s);for(let e of[.62,1.12]){let t=new H(v,s);t.position.set(i*.985,e,a*.985),t.lookAt(0,e,0),t.castShadow=!0,r.add(t)}}let x=[new Ns(0,0,0,0),new Ns(0,0,0,0)],S={uRopeContactA:{value:x[0]},uRopeContactB:{value:x[1]}},C=[12131356,15067115,1920728],w=e=>{e.uniforms.uRopeContactA=S.uRopeContactA,e.uniforms.uRopeContactB=S.uRopeContactB,e.vertexShader=e.vertexShader.replace(`#include `,`#include \nuniform vec4 uRopeContactA;\nuniform vec4 uRopeContactB;\n${Ow}`).replace(`#include `,`#include ${kw}`)},T=e=>{let n=new Hd(e);return n.onBeforeCompile=w,t.push(n),n},E=new Wd;E.onBeforeCompile=w,E.customProgramCacheKey=()=>`hands-rope-depth`,t.push(E);let D=e=>T({color:e,roughness:.42,metalness:.05}),O=C.map(D),k=C.map(D),ee=T({color:14212840,roughness:.6}),A=T({color:14212840,roughness:.6});k.push(A);let te=pv[0]-ww-Tw,j=pv[pv.length-1]-ww+Tw,M=new Wu(.035,j-te,.012,1,6,1);e.push(M);let ne=(e,t)=>{for(let[n,r]of[e,t].entries()){let e=x[n];if(r===null){e.set(0,0,0,0);continue}let t=Ew(r.x,r.z);e.set(r.x,r.z,t.pressX,t.pressZ)}};for(let t=0;t<4;t+=1){let n=b[t],i=b[(t+1)%4];for(let[a,o]of pv.entries()){let s=n.clone().add(i).multiplyScalar(.5);s.y=o-Sw;let c=new jd(new xd(new B(n.x,o,n.z),s,new B(i.x,o,i.z)),72,.028,8,!1);e.push(c);let l=new H(c,(t===pw?k:O)[a]);l.castShadow=!0,l.customDepthMaterial=E,t===pw&&(l.renderOrder=mw),r.add(l)}for(let e of Cw){let a=n.x+(i.x-n.x)*e,o=n.z+(i.z-n.z)*e,s=new H(M,t===pw?A:ee);s.position.set(a,(te+j)/2,o),s.lookAt(0,s.position.y,0),t===pw&&(s.renderOrder=mw),r.add(s)}}for(let e of k)e.transparent=!0;return{group:r,materials:t,geometries:e,textures:n,setRopeContacts:ne,ropeContacts:x,setNearRopeOpacity:e=>{for(let t of k)t.opacity=R.clamp(e,0,1),t.visible=t.opacity>.03,t.depthWrite=t.opacity>=1},nearRopeOpacity:()=>k[0].opacity}}function Nw(e){for(let t of e.geometries)t.dispose();for(let t of e.materials)t.dispose();for(let t of e.textures)t.dispose()}var Pw={MHeadMat0:`head`,GlovesMat0:`gloves`,MBodyMat0:`body`,ShoesMat0:`shoes`,PantsMat0:`pants`},Fw={GlovesMat0:.33,PantsMat0:.44,ShoesMat0:.5},Iw=new Map,Lw=new Map,Rw=null,zw=null,Bw=new Map;function Vw(e){return e.colorSpace=xo,e.flipY=!1,e}function Hw(e){let t=Iw.get(e);if(t!==void 0)return Promise.resolve(t);let n=Lw.get(e);if(n!==void 0)return n;let r=new Df().loadAsync(pb[e]).then(t=>(Iw.set(e,Vw(t)),t));return Lw.set(e,r),r}function Uw(){return Promise.all(Object.keys(pb).map(Hw))}async function Ww(){let e=Uint8Array.from(atob(db),e=>e.charCodeAt(0)),t=new Response(e).body;if(t===null)throw Error(`fighter_glb_stream_unavailable`);return new Response(t.pipeThrough(new DecompressionStream(`gzip`))).arrayBuffer()}function Gw(){if(Rw===null){let e=Ww().then(e=>new Promise((t,n)=>{new dy().parse(e,``,t,e=>n(e instanceof Error?e:Error(String(e))))}));Rw=Promise.all([e,Uw()]).then(([e])=>(zw=e.scene,e))}return Rw}function Kw(){qw(zw,Iw.values());for(let e of Bw.values())e.dispose()}function qw(e,t){e?.traverse(e=>{e instanceof H&&e.geometry.dispose()});for(let e of t)e.dispose()}function Jw(e){e.traverse(e=>{e instanceof $l&&e.skeleton.dispose()})}function Yw(e){let t=Iw.get(e);if(t!==void 0)return t;let n=Vw(new Df().load(pb[e]));return Iw.set(e,n),n}var Xw=`{ vec4 pressedOntoCanvas = modelMatrix * vec4( transformed, 1.0 ); - if ( pressedOntoCanvas.y < ${0 .toFixed(4)} && max( abs( pressedOntoCanvas.x ), abs( pressedOntoCanvas.z ) ) < ${$_.toFixed(4)} ) { + if ( pressedOntoCanvas.y < ${0 .toFixed(4)} && max( abs( pressedOntoCanvas.x ), abs( pressedOntoCanvas.z ) ) < ${uv.toFixed(4)} ) { transformed += inverse( mat3( modelMatrix ) ) * vec3( 0.0, ${0 .toFixed(4)} - pressedOntoCanvas.y, 0.0 ); } -}`;function Bw(e){let t=e.onBeforeCompile,n=Object.hasOwn(e,`customProgramCacheKey`)?e.customProgramCacheKey():`plain`;e.onBeforeCompile=(n,r)=>{t.call(e,n,r),n.vertexShader=n.vertexShader.replace(`#include `,`${zw}\n#include `)},e.customProgramCacheKey=()=>`${n}-on-canvas`,e.needsUpdate=!0}function Vw(e,t){let n=t.outfit!==void 0,r=!n||t.wounds===!0,i=[],a=[],o=new Map,s=null,c={value:0},l=null,u=null;if(e.traverse(e=>{if(!(e instanceof Hl)||Array.isArray(e.material))return;let d=e.material.name,f=Cw[d];if(f===void 0)throw Error(`fighter GLB has unsupported material ${d}`);let p=o.get(d);if(p===void 0){let e=d===`MHeadMat0`||d===`MBodyMat0`,m=t.outfit,h=d===`GlovesMat0`?t.gear:d===`PantsMat0`?m?.trousers??t.gear:d===`ShoesMat0`&&m!==void 0?m.shoes:16777215,g=Rw(f);p=e&&!n?new Md({map:g,color:h,roughness:.58,metalness:.02,clearcoat:.25,clearcoatRoughness:.6}):new jd({map:g,color:h,roughness:e?.58:ww[d]??.4,metalness:e?.02:.03}),p.name=d,o.set(d,p),a.push(p),e&&i.push(p),d===`MHeadMat0`&&(l=new z_(r?p:null,Lg,{core:v_,lids:b_})),d===`MBodyMat0`&&(u=new z_(r?p:null,Rg,{core:y_,wash:!0}));let _=Hw[d];m!==void 0&&_!==void 0?qb(p,_,m):d===`PantsMat0`?c=ob(p,!1,`trunks`):d===`GlovesMat0`&&(s=ob(p)),e&&!n&&ex(p),Bw(p)}if(e.material=p,!n&&e.name===`BoxerPants`){let t=kw.get(e.geometry);t===void 0&&kw.set(e.geometry,t=dx(e.geometry,e.skeleton.bones.map(e=>e.name))),e.geometry=t}e.castShadow=!n,e.receiveShadow=!0,e.frustumCulled=!1}),i.length!==2||s===null||a.length!==5||l===null||u===null)throw Error(`fighter GLB material contract failed: ${i.length} skin, ${a.length} total`);return{skin:i,gloveBlood:s,trunksBlood:c,owned:a,headInjury:l,bodyInjury:u}}var Hw={MHeadMat0:`head`,MBodyMat0:`body`,ShoesMat0:`shoes`,PantsMat0:`pants`},Uw=new V().setRGB(.6,.32,.19,uo),Ww=(e,t,n,r)=>e+(t-e)*(1-Math.exp(-n*r)),Gw=(e,t,n,r)=>e+(((t-e+Math.PI)%(Math.PI*2)+Math.PI*2)%(Math.PI*2)-Math.PI)*(1-Math.exp(-n*r)),Kw=R.clamp,qw=class{root=new tc;bones=new Map;rig;metrics;skinMaterials;ownedMaterials;gloveBlood;trunksBlood;headMeshes=[];handMeshes={left:[],right:[]};decapitated=!1;burst=!1;dismemberedHands={left:!1,right:!1};dressed;ownedGeometries=[];gearBaseColor;skinBaseColor;headInjury;bodyInjury;headLook;face;bareHand;constructor(e,t){let n=Qv(e.scene);n.scale.setScalar(1),this.root.add(n);let r=Vw(n,t);this.skinMaterials=r.skin,this.ownedMaterials=[...r.owned],this.gloveBlood=r.gloveBlood,this.trunksBlood=r.trunksBlood,this.headInjury=r.headInjury,this.bodyInjury=r.bodyInjury,this.gearBaseColor=new V(t.gear),this.skinBaseColor=new V(t.skin),this.dressed=t.outfit!==void 0,n.traverse(e=>{e instanceof Hl&&e.name===`BoxerHead`&&this.headMeshes.push(e),e instanceof Hl&&e.name===`BoxerGloveLeft`&&this.handMeshes.left.push(e),e instanceof Hl&&e.name===`BoxerGloveRight`&&this.handMeshes.right.push(e),e instanceof Ul&&this.bones.set(e.name,e)});let i=Object.values(tb).filter(e=>!this.bones.has(e));if(i.length>0)throw Error(`fighter GLB missing required bones: ${i.join(`, `)}`);if(this.headMeshes.length!==1)throw Error(`fighter GLB requires one BoxerHead mesh, found ${this.headMeshes.length}`);let a=this.headInjury.shadowMaterial();this.headMeshes[0].customDepthMaterial=a;let o=this.headMeshes[0].material;o.side=0,o.shadowSide=1,this.ownedMaterials.push(a);for(let e of[`left`,`right`])if(this.handMeshes[e].length!==1)throw Error(`fighter GLB requires one ${e} glove mesh, found ${this.handMeshes[e].length}`);this.root.updateMatrixWorld(!0),this.rig=new Lx(this.root),this.headLook=new Eb(this.headMeshes[0].material),this.face=new gx(t.gear^t.skin),this.bareHand=t.outfit===void 0?null:this.addHands(t.outfit),this.setLook(t.look??sb);let s=this.rig.metrics;this.metrics={armUpper:s.armL.upper,armFore:s.armL.lower,legThigh:s.legL.upper,legShin:s.legL.lower,headRestY:s.headHeight,chestRestY:s.chestHeight,ankleRestY:s.ankleHeight}}bone(e){return this.bones.get(tb[e]??e)??null}setGloveBlood(e){this.gloveBlood.value=Kw(e,0,1)}get gloveBloodLevel(){return this.gloveBlood.value}setTrunksBlood(e){this.trunksBlood.value=Kw(e,0,1)}get trunksBloodLevel(){return this.trunksBlood.value}get headMesh(){return this.headMeshes[0]}gloveMesh(e){return this.handMeshes[e][0]}get skin(){return this.skinMaterials[0]}get isDecapitated(){return this.decapitated}setDecapitated(e){this.decapitated=e,this.burst=!1,this.headInjury.setSevered(e),this.bone(`head`).visible=!e}get isHeadBurst(){return this.burst}setHeadBurst(e){this.burst=e,this.decapitated=!1,this.headInjury.setBurst(e),this.bone(`head`).visible=!e}isHandDismembered(e){return this.dismemberedHands[e]}setHandDismembered(e,t){this.dismemberedHands[e]=t;for(let n of this.handMeshes[e])n.visible=!t&&!this.dressed}setLook(e){this.headLook.set(e);for(let t of this.skinMaterials)t.color.setHex(e.tint);this.bareHand?.color.copy(Uw).multiply(this.skinMaterials[0].color)}get look(){return this.headLook.look}addHands(e){let t=e.gloves!==null,n=new jd({color:t?e.gloves:Uw,roughness:t?.38:.6,metalness:.02}),r=t?n:new jd({color:new V(e.shirt).multiplyScalar(.9),roughness:.88,metalness:0});this.ownedMaterials.push(n),r!==n&&this.ownedMaterials.push(r);let i=Zb();this.ownedGeometries.push(i);for(let e of[`left`,`right`]){for(let t of this.handMeshes[e])t.visible=!1;let t=Xb(e);this.ownedGeometries.push(t);let a=e===`left`?`L`:`R`;for(let[o,s,c,l]of[[this.rig.bones[`glove${a}`],t,n,`hand-${e}`],[this.rig.bones[`elbow${a}`],i,r,`cuff-${e}`]]){let e=new H(s,c);e.name=l,e.castShadow=!1,e.receiveShadow=!0,o.add(e)}}return t?null:n}setSkinClearcoat(e){for(let t of this.skinMaterials)t instanceof Md&&(t.clearcoat=e)}flinch(e,t){this.face.flinch(e,t)}updateFace(e,t,n,r,i,a){this.face.update(e,t,n,r,i,a),this.headLook.setExpression(this.face.lids,this.face.mouth,this.face.brow)}dispose(){for(let e of this.ownedMaterials)e.dispose();for(let e of this.ownedGeometries)e.dispose();Lw(this.root)}},Jw=(e,t,n,r,i)=>{let a=e.value,o=e.velocity;o.addScaledVector(a,-n*t).multiplyScalar(Math.exp(-r*t)),a.addScaledVector(o,t),a.length()>i&&a.setLength(i)},Yw=.06,Xw=150,Zw=.58,Qw=.25,$w=.32,eT=9,tT=1,nT=.08,rT=.3,iT=1,aT=1.6,oT=.25,sT=.12,cT=.33,lT=.3,uT=8;function dT(e,t,n,r){gw(e,t,n);let i=Math.hypot(n.x,n.z);if(i<=0)return r.x=0,r.z=0,0;let a=Hx(0,oT,i),o=1+sT*a/i;return r.x=n.x*o,r.z=n.z*o,a}var fT=(e,t)=>e===0||Math.sign(t)===Math.sign(e)&&Math.abs(t)>Math.abs(e)?t:e,pT=.75,mT=.38,hT=.72,gT=.5,_T=.2,vT=.55,yT=.7,bT=6,xT=.4,ST=.2,CT=.3,wT=.5,TT=class{mapping;boxer;solver;yaw=0;yawInitialized=!1;rootX=null;rootZ=0;punchActive=!1;punchAgeTicks=0;punchTotalTicks=1;punchClass=`jab`;punchHand=`left`;punchTarget=`head`;punchPower=`normal`;punchTiming=se(`jab`,`head`,`normal`);actionId=null;completedActionId=null;ownActionId=null;ownPress=!1;ownLeadTicks=0;ownAuthoritativeAge=null;ownWaitedTicks=0;ownExpectedTicks=0;ownPulled=!1;ownSequence=null;ownStarted=!1;ownPressedAt=0;ownRefused=!1;ownCut=!1;recoveryCut=!1;ownQueued=null;contactId=null;contactParried=!1;shownFighter=null;shownOpponent=null;retiredOwnIds=[];pressesLanded=[];anticipatedId=null;hitstop=0;hitstopScale=1;hitstopLag=0;downState=`up`;fallAge=0;riseProgress=0;riseFrom=0;fallSide=0;fallProne=!1;fallKneel=!1;windedSide=-1;windedTime=0;winded=0;landProne=!1;landSide=0;landShift=new B;landSettled=!1;fallen=sD();fallenFromPhysics=!1;riseRoot=new B;riseRootFrom=new B;downPoles=[new B,new B,new B,new B];downPolesSet=!1;poleSettle=0;characterInverse=new Ds;place=new B;riseRootVelocity=new B;liveOpponentHead=new B;hasLiveHead=!1;guardOpponentHead=new B;opponentHeadOffset=new B;opponentSteadySeconds=0;followHead=0;aimActionId=null;refereeContactId=null;refereeHead=new B;hasRefereeHead=!1;followReferee=0;headKick={value:new B,velocity:new B};torsoKick={value:new B,velocity:new B};rootKick={value:new B,velocity:new B};coverKick={value:new B,velocity:new B};foldDelay=0;pendingFold=0;coverDelay=0;pendingCover=0;liverDelay=0;pendingLiver=0;armKick={value:new B,velocity:new B};handsDrop=0;guardWasBroken=!1;hurtSeed=1;rockedTime=0;rockedPhase=0;nextLurch=0;guardKick=0;guardHigh=0;guardLow=0;guardSpent=0;slip=0;weave=0;weaveTime=0;pull=0;crouchExtra=0;bouncePhase=0;weightPhase=0;breathPhase=0;stunPhase=0;feintTimer=2;pawAge=aE;pawCount=0;idleSeed=-1;manner={...aS.balanced,lead:new B,rear:new B};mannerStyle=null;mannerSeed=0;breath=0;battered=0;walkLean=new z;leadingFoot=-1;nextFoot=-1;steppedYaw=0;stunAmount=0;tired=0;clinchWeight=0;foulWeight=0;tauntWeight=0;crowding=0;tight=0;punchCommit=0;punchMiss=0;headSpace=new z;ownHead=new B;ropeHold=new B;ropeExcess={x:0,z:0};ropeOwn={x:0,z:0};ropeTheirs={x:0,z:0};ropeLeanTarget=0;ropeLean=0;ropeOutward=new B(1,0,0);ropeLocal=new B;tauntEnd=null;lastSpeed=0;stool;stoolRoot=new B;stoolYaw=0;enswell;bottle;treatProp=`enswell`;treatTarget=new B;treatScratch=new B;treatFacing=new B(0,0,-1);treatFacingLocal=new B;treatSide=1;treating=!1;treatWeight=0;resting=!1;seated=0;stillTime=0;celebrateTime=0;celebration=0;waveTime=0;wave=0;breakTime=0;breakWeight=0;breakFighters=[new B,new B];breakAimed=!1;attending=!1;verdictSide=0;verdict=null;squareWeight=0;raisedWeight=0;bowedWeight=0;wrists=[null,null];wristTargets=[new B,new B];wristWeights=[0,0];attendWeight=0;countdownTicks=null;countdownEnd=null;touchWeight=0;touchOffset=new B;touchVelocity=new B;debugHoldImpact=!1;feet=[{planted:new B,from:new B,to:new B,progress:1,stepping:!1,duration:.2},{planted:new B,from:new B,to:new B,progress:1,stepping:!1,duration:.2}];feetInitialized=!1;dislocation=null;scratch=new B;scratchB=new B;scratchC=new B;scratchD=new B;scratchE=new B;clinchCentre=new B;clinchForward=new B;clinchTemp=new B;scratchQ=new rs;headWorld=new B;hand={L:this.makeHand(),R:this.makeHand()};punchGuard=this.makeHand();punchDir=new B;punchContact=new B;punchStart=new B;punchSweepFrom=new B;punchSweepTo=new B;punchMid=new B;foot={L:this.makeFoot(),R:this.makeFoot()};torso={hips:new B,hipsYaw:0,hipsPitch:0,hipsRoll:0,shouldersYaw:0,spinePitch:0,spineRoll:0,headYaw:0,headPitch:0,headRoll:0,headOffset:new B};pose;downStanding=sD();downFrom=sD();downTo=sD();downResult=sD();downStand=1;fallStart=sD();fallStartStand=1;fallFromGetUp=!1;referee;refereeCount=0;refereeCounting=!1;countChangedTick=null;countWeight=0;countPump=0;watchPoint=new B;watching=!1;duty=`watch`;backWeight=0;waveSlow=!1;mood=`work`;mournWeight=0;cheerWeight=0;treatUrgency=0;gazeYaw=0;gazePitch=0;travel=new B;strideYaw=0;backing=!1;footYaw=[0,0];ragdoll;forcedDown=!1;heldDown=!1;authoredNextFall=!1;obstacle=null;blows=0;riseBlendAge=0;posedInjuries=0;armCarry=[`whole`,`whole`];armLimp=[0,0];armSnap=[0,0];armDangle=[lE(),lE()];forearmDangle=[lE(),lE()];trunkLow=new B;trunkHigh=new B;lostLean=0;cover=0;kneeBlown=[!1,!1];kneeGive=[0,0];gutted=!1;hunch=0;liver=!1;curl=0;faintTarget=0;faint=0;retchTime=0;retching=0;dazed=!1;daze=0;dazeTime=0;stepPace=[1,1];stepLift=[1,1];stepSlack=1;hurt=!1;punchReach=0;dead=!1;deathFall=!1;deathStyle=`crumple`;deathAge=0;throe=fE.length;throeSide=0;laidOut=!1;constructor(e,t,n={}){this.mapping=t,this.boxer=e,this.referee=n.referee===!0,this.solver=new nS(e.rig),this.pose={torso:this.torso,handL:this.hand.L,handR:this.hand.R,footL:this.foot.L,footR:this.foot.R,shrugL:0,shrugR:0},this.stool=PD(),this.stool.group.position.set(0,0,.02),e.root.add(this.stool.group),this.enswell=MD(),e.rig.bones.gloveL.add(this.enswell.group),this.bottle=ND(),e.rig.bones.gloveL.add(this.bottle.group),this.ragdoll=this.referee&&n.knockout!==!0?null:new ew(e.rig,e.root)}primeReplayFall(){this.ragdoll?.prime()}useAuthoredFall(){this.authoredNextFall=!0}knockOut(){this.forcedDown=!0}stayDown(e){this.heldDown=e}setObstacle(e,t){this.obstacle??={x:e,z:t},this.obstacle.x=e,this.obstacle.z=t}get fallBody(){return this.ragdoll?.active===!0?this.ragdoll:null}setResting(e){this.resting=e}get stoolVisible(){return this.stool.group.visible}celebrate(e=4.4){this.celebrateTime=e}resetTransient(e=!1){this.forcedDown=!1;let t=this.ragdoll;t!==null&&(e?t.active?t.settle():t.restoreSettled():(t.stop(),t.clearRise())),this.downState=e?`down`:`up`,this.landSettled=!1,this.fallenFromPhysics=!1,this.riseRoot.set(0,0,0),this.riseRootFrom.set(0,0,0),this.riseRootVelocity.set(0,0,0),this.fallAge=e?pT:0,this.riseProgress=0,this.hitstop=0,this.hitstopScale=1,this.hitstopLag=0;for(let e of[this.headKick,this.torsoKick,this.rootKick,this.coverKick,this.armKick])e.value.set(0,0,0),e.velocity.set(0,0,0);this.foldDelay=0,this.pendingFold=0,this.coverDelay=0,this.pendingCover=0,this.liverDelay=0,this.pendingLiver=0,this.handsDrop=0,this.rockedTime=0,this.guardKick=0,this.stunAmount=0,this.windedTime=0,this.winded=0,this.celebrateTime=0,this.celebration=0,this.waveTime=0,this.wave=0,this.verdictSide=0,this.verdict=null,this.squareWeight=0,this.raisedWeight=0,this.bowedWeight=0,this.wrists.fill(null),this.wristWeights.fill(0),this.seated=0,this.stillTime=0,this.rootX=null,this.yawInitialized=!1,this.feetInitialized=!1,this.retirePunch(),this.ownQueued=null,this.completedActionId=null,this.retiredOwnIds.length=0,this.anticipatedId=null,this.retchTime=0,this.retching=0,this.dazed=!1,this.daze=0,this.dazeTime=0;for(let e=0;e<2;e+=1)dE(this.armDangle[e]),dE(this.forearmDangle[e]);this.dead=!1,this.deathFall=!1,this.throe=fE.length,this.laidOut=e}waveOff(e=2.6,t=!1){this.waveTime=e,this.waveSlow=t}setCountdown(e){this.countdownTicks=e}attend(e,t=`work`){this.attending=e,this.mood=t}treat(e,t,n=1,r=`enswell`,i=0){this.treating=e!==null,e!==null&&(this.treatTarget.copy(e),t!==void 0&&this.treatFacing.copy(t),this.treatSide=n,this.treatProp=r,this.treatUrgency=i)}awaitVerdict(e){this.verdictSide=e??0,e===null&&(this.verdict=null)}announce(e){this.verdict=e}raise(e,t){this.wrists[0]=e===null?null:this.wristTargets[0].copy(e),this.wrists[1]=t===null?null:this.wristTargets[1].copy(t)}breakClinch(e=1.3){this.breakTime=e}get breaking(){return this.breakTime>0}aimBreak(e,t,n=null,r=`watch`){this.breakFighters[0].copy(e),this.breakFighters[1].copy(t),this.breakAimed=!0,this.watching=n!==null,n!==null&&this.watchPoint.copy(n),this.duty=r}makeHand(){return{position:new B,knuckles:new B(0,1,0),palm:new B(0,0,1),pole:new B(0,-1,0)}}makeFoot(){return{position:new B,toe:new B(0,0,1),heel:0,pole:new B(0,0,1)}}get currentRoot(){return{x:this.rootX??0,z:this.rootZ}}get isDown(){return this.downState!==`up`||this.dead}setRefereeCount(e,t){(e!==this.refereeCounting||t!==this.refereeCount)&&(this.countChangedTick=null),this.refereeCounting=e,this.refereeCount=t}predict(e,t,n,r=0,i,a=r){if(e.kind!==`punch`||e.id===void 0)return;let o={action:{...e,id:e.id},timing:i??se(e.class,e.target,e.power),leadTicks:r,answerTicks:a,pressedAt:t,sequence:null,started:!1,waited:0};if(this.punchActive&&this.ownActionId!==null&&this.ownAuthoritativeAge===null&&!this.ownPulled&&!this.ownStarted&&(t-this.ownPressedAt)*n0||e.clinch_ticks>0||e.clinch_startup_ticks>0,a=this.ownQueued;if(a!==null&&(a.sequence??=r?.(a.action.id)??null,e.action_id===a.action.id?a.started=!0:!a.started&&(i||a.sequence!==null&&e.last_input_sequence>=a.sequence&&e.queued_actions===0)&&(this.ownQueued=null)),!this.punchActive||this.ownActionId===null||this.ownPulled||this.ownRefused)return;this.ownStarted||(this.ownSequence??=r?.(this.ownActionId)??null);let o=e.action_id===this.ownActionId;o&&(this.ownStarted=!0);let s=this.ownQueued;s!==null&&s.sequence!==null&&r!==null&&!this.ownStarted&&this.ownSequence===null&&this.ownAuthoritativeAge===null?(this.ownActionId=null,this.ownQueued=null,this.retirePunch(),this.startOwnPunch(s)):(o?i&&e.action_contact_tick===null:!this.ownStarted&&this.ownAuthoritativeAge===null&&(i||this.ownSequence!==null&&e.last_input_sequence>=this.ownSequence&&e.queued_actions===0))&&(this.ownRefused=!0,this.takeBack())}takeBack(){this.punchAgeTickse.action_startup_ticks*(1/YD-1)||this.punchActive&&this.punchAgeTicks/this.punchTotalTicks<=.55)return;this.anticipatedId=n;let r=e.action_target??`head`,i=e.action_power??`normal`,a={...se(e.action,r,i),startup:e.action_startup_ticks,active:e.action_active_ticks,recovery:e.action_recovery_ticks},o=e.action_hand??(e.stance===`orthodox`?`left`:`right`);this.startEarly(n,e.action,o,r,i,a,t,t)}startOwnPunch(e){let{action:t,timing:n}=e;this.startEarly(t.id,t.class,t.hand,t.target,t.power,n,0,Math.max(0,e.answerTicks)),this.ownPress=!0,this.ownSequence=e.sequence,this.ownStarted=e.started,this.ownPressedAt=e.pressedAt}startEarly(e,t,n,r,i,a,o,s){this.retirePunch(),this.punchClass=t,this.punchHand=n,this.punchTarget=r,this.punchPower=i,this.punchTiming=a,this.punchTotalTicks=Math.max(1,pe(a)),this.punchAgeTicks=0,this.punchActive=!0,this.ownActionId=e,this.ownLeadTicks=Kw(o,0,ID),this.ownExpectedTicks=s}followUpStartAge(e){let t=this.shownFighter,n=this.shownOpponent,r=this.actionId??this.ownActionId,i=r!==null&&r===this.contactId&&!this.contactParried;return t!==null&&n!==null&&D(this.punchClass,i,e.action,t.stamina,n.stunned_ticks>0,t.style)?E(this.punchTiming):this.punchTotalTicks}releaseQueuedPress(e){let t=this.ownQueued;t!==null&&(t.waited+=e*30,this.punchActive&&!this.ownPulled&&this.punchAgeTicks+this.serverLag(t.leadTicks)6&&this.retiredOwnIds.shift()),this.actionId=null,this.punchActive=!1,this.ownActionId=null,this.ownPress=!1,this.ownLeadTicks=0,this.ownAuthoritativeAge=null,this.ownWaitedTicks=0,this.ownExpectedTicks=0,this.ownPulled=!1,this.ownSequence=null,this.ownStarted=!1,this.ownRefused=!1,this.ownCut=!1,this.recoveryCut=!1,this.hitstopLag=0}setRefereeHead(e){this.hasRefereeHead=e!==null,e!==null&&this.refereeHead.copy(e)}landedHit(e,t,n=!1){this.punchActive&&e!==null&&e===(this.actionId??this.ownActionId)&&(this.punchAgeTicks>=this.punchTiming.startup+this.punchTiming.active+1||(this.hitstop=Math.max(this.hitstop,(t?o.block:n?o.power:o.hit)/1e3)))}powerHeat(e){if(!this.punchActive||this.punchPower!==`power`||this.punchHand!==e||this.ownPulled)return 0;let{startup:t,active:n,recovery:r}=this.punchTiming,i=this.punchAgeTicks;return i>>0;let u=i===`left`?1:i===`right`||n>=0?-1:1;if(t===`body`){switch(r){case`hook`:this.torsoKick.velocity.x+=3*l,this.torsoKick.velocity.z+=4.6*l*u,this.rootKick.velocity.x+=.5*l*u,this.coverDelay=.09,this.pendingCover=2.4*l*u,u>0&&e===`hit`&&o>.25&&(this.liverDelay=.28,this.pendingLiver=l*(.4+o));break;case`uppercut`:this.rootKick.velocity.y+=.9*l,this.torsoKick.velocity.x-=1.6*l,this.foldDelay=.1,this.pendingFold=5.2*l;break;default:this.torsoKick.velocity.x+=4.6*l}this.rootKick.velocity.z-=.45*l,this.headKick.velocity.z-=.6*l,this.headKick.velocity.y-=.7*l,this.guardKick=Math.max(this.guardKick,.6*l)}else{switch(e===`hit`&&(this.guardKick=Math.max(this.guardKick,.4*l)),r){case`hook`:this.headKick.velocity.x+=2.6*l*u,this.headKick.velocity.z-=.7*l,this.torsoKick.velocity.y+=3.4*l*u,this.torsoKick.velocity.z-=1.2*l*u;break;case`uppercut`:this.headKick.velocity.y+=2.2*l,this.headKick.velocity.z-=1.2*l,this.torsoKick.velocity.x-=1.6*l;break;case`straight`:this.headKick.velocity.z-=2.4*l,this.headKick.velocity.x+=.5*l*u,this.torsoKick.velocity.x-=1*l,this.torsoKick.velocity.y+=1.4*l*u;break;default:this.headKick.velocity.z-=1.5*l,this.torsoKick.velocity.x-=.5*l,this.torsoKick.velocity.y+=.5*l*u}if(this.rootKick.velocity.z-=.45*l,e===`block`)this.guardKick=Math.max(this.guardKick,Math.min(1.2,2.4*l)),this.rootKick.velocity.z-=1.1*l,this.torsoKick.velocity.x-=1.2*l;else{this.rootKick.velocity.y-=1.1*l*o;let e=1.7*l*o;r===`hook`?this.armKick.velocity.add(this.scratchE.set(u,.3,-.2).multiplyScalar(e)):r===`uppercut`?this.armKick.velocity.add(this.scratchE.set(0,1,-.4).multiplyScalar(e)):this.armKick.velocity.add(this.scratchE.set(.3*u,.7,-.4).multiplyScalar(e)),this.handsDrop=Math.max(this.handsDrop,Kw((o-.35)*2,0,1)*(.5+.5*c))}}if(e===`hit`&&(this.dentSurface(t,u,r,o),this.fallSide=r===`hook`?u:u*.5,this.fallProne=r===`hook`||t===`body`),e===`hit`&&a>=10&&this.ragdoll!==null){let e=$C({target:t,punchClass:r,hand:i,lateral:u,amount:a}),n=this.scratchE.set(e.x,e.y,e.z).applyAxisAngle(FD,this.yaw),o=this.scratchD.set(e.driveX,e.driveY,e.driveZ).applyAxisAngle(FD,this.yaw);this.blows+=1,this.ragdoll.takeBlow(n,o,t,e.twist,PC(r,t,a,this.blows+Math.round(a)))}}stagger(){this.torsoKick.velocity.x-=2.6,this.headKick.velocity.z-=1.4,this.headKick.velocity.y+=.5,this.rootKick.velocity.z-=1.1,this.guardKick=Math.max(this.guardKick,1.1)}windedFor(e,t){this.windedTime=Math.max(this.windedTime,e),this.windedSide=t>=0?1:-1}fallToKnee(e){this.dead||(this.fallKneel=e,e&&(this.authoredNextFall=!0))}dentSurface(e,t,n,r){let i=1.1+r*2.1;if(e===`body`){let e=n===`hook`?t>0?`rightRibs`:`leftRibs`:`solarPlexus`;this.boxer.bodyInjury.impact(e,[n===`hook`?t*i*.8:0,0,-i],9)}else n===`hook`?this.boxer.headInjury.impact(t>0?`rightCheek`:`leftCheek`,[t*i,0,-i*.35],5.5):n===`uppercut`?this.boxer.headInjury.impact(`chin`,[0,i*.7,-i*.6],5):this.boxer.headInjury.impact(n===`jab`?`nose`:`mouth`,[0,0,-i],4.5)}footPlace(e,t,n){if(this.squareWeight>.5)return n.set(e===0?.16:-.16,0,e===0?.02:-.02);let r=e===0==t>0?rS.leadFoot:rS.rearFoot;return n.set(r.x*t*this.manner.width*(1+QT*this.battered),0,r.z*this.manner.length*(1-JT*this.crowding))}standLike(e){this.mannerSeed=oE(e)+1,this.mannerStyle=null}keyManner(e){let t=aS[e],n=this.manner;if(this.mannerStyle=e,Object.assign(n,t,{lead:n.lead.copy(t.lead),rear:n.rear.copy(t.rear)}),this.mannerSeed===0)return;let r=e=>Math.abs(Math.sin(this.mannerSeed*(e*7.31+3.17))*43758.5453)%1*2-1;n.rise+=r(1)*.012,n.length*=1+r(2)*.05,n.width*=1+r(3)*.06,n.lead.y+=r(4)*.025,n.lead.z+=r(5)*.03,n.flare+=r(6)*.12,n.spring*=1+r(7)*.2,n.bob*=1+r(1)*r(4)*.4,n.rock*=1+r(2)*r(6)*.3}stepOfficialFeet(e,t,n,r,i){let a=t>jT,o=n.x*Math.sin(i)+n.z*Math.cos(i),s=n.x*Math.cos(i)-n.z*Math.sin(i),c=0;a&&(o<-.35*t?this.backing=!0:o>-.05*t&&(this.backing=!1),c=this.backing?Math.atan2(-s,-o):Math.atan2(s,o)),this.strideYaw=Ww(this.strideYaw,c,6,e);let l=1-Math.exp(-8*e);this.travel.x+=(s-this.travel.x)*l,this.travel.z+=(o-this.travel.z)*l;let u=this.scratch,d=this.scratchQ.setFromAxisAngle(FD,i+this.strideYaw),f=a?0:Math.sin(this.weightPhase*.17)>=0?.045:-.045,p=Kw(.42/Math.max(t,.01),.22,.34),m=t*p*.4;for(let o=0;o<2;o+=1){let s=this.feet[o],c=o===0?1:-1;u.set(c*.15,0,c*f).applyQuaternion(d).add(r),u.y=0;let l=i+this.strideYaw*.85+c*.2;if(!this.feetInitialized){s.planted.copy(u),s.progress=1,s.stepping=!1,this.footYaw[o]=l;continue}let h=Math.atan2(Math.sin(this.footYaw[o]-l),Math.cos(this.footYaw[o]-l));if(!a&&Math.abs(h)>.8&&(this.footYaw[o]=l+Math.sign(h)*.8),s.stepping){s.progress=Math.min(1,s.progress+e/s.duration),this.footYaw[o]=Gw(this.footYaw[o],l,14,e),s.progress>=1&&(s.stepping=!1,s.planted.copy(s.to));continue}let g=this.feet[1-o];if(g.stepping)continue;let _=u.x-s.planted.x,v=u.z-s.planted.z,y=Math.hypot(_,v),b=a?(_*n.x+v*n.z)/t:0;G.set(-c*.15,0,-c*f).applyQuaternion(d).add(r).sub(g.planted);let x=a?(G.x*n.x+G.z*n.z)/t:0;(a?b>(x>0?.05:Math.max(.05,m*.8))||y>m+.2:y>.085)&&(s.stepping=!0,s.progress=0,s.duration=a?Kw((.22-x)/t,.16,p):y>.12?.2:.32,s.from.copy(s.planted),s.to.copy(u).addScaledVector(n,s.duration*1.6),s.to.y=0)}this.feetInitialized=!0}stepFeet(e,t,n,r,i,a){if(this.referee||this.squareWeight>.5){this.stepOfficialFeet(e,n,r,i,a);return}let o=this.scratch,s=this.scratchQ.setFromAxisAngle(FD,a),c=+(t>0),l=-1;n>$T&&(l=this.footPlace(0,t,o).applyQuaternion(s).dot(r)>=this.footPlace(1,t,o).applyQuaternion(s).dot(r)?0:1),l!==this.leadingFoot&&(this.leadingFoot=l,this.nextFoot=l);let u=l<0?c:l,d=Math.abs(a-this.steppedYaw)>rE*e;this.steppedYaw=a;for(let f=0;f<2;f+=1){let p=f===0?u:1-u,m=this.feet[p];if(this.footPlace(p,t,o).applyQuaternion(s).add(i),o.y=0,this.daze>.001&&this.stumble(p,o,a),!this.feetInitialized){m.planted.copy(o),m.progress=1,m.stepping=!1;continue}if(m.stepping){m.progress=Math.min(1,m.progress+e/m.duration),m.progress>=1&&(m.stepping=!1,m.planted.copy(m.to));continue}let h=this.feet[1-p],g=m.planted.distanceTo(o),_;if(l<0)_=g>(p===c||!d?eE:tE)*this.stepSlack&&!h.stepping;else{let e=!h.stepping||h.progress>=1-.6*Kw((n-.4)/1,0,1),t=this.scratchD.subVectors(o,m.planted).dot(r)>0;_=this.nextFoot===p&&t&&g>nE*this.stepSlack&&e}_&&(m.stepping=!0,m.progress=0,m.duration=Kw(.2-n*.05,.11,.2)*this.stepPace[p],m.from.copy(m.planted),m.to.copy(o).addScaledVector(r,m.duration*(p===l?1.3:1)),m.to.y=0,l>=0&&(this.nextFoot=1-p))}this.feetInitialized=!0}footWorld(e,t){let n=this.feet[e];if(!n.stepping)return t.copy(n.planted),0;let r=Wx(n.progress,1.6);return t.copy(n.from).lerp(n.to,r),Math.sin(n.progress*Math.PI)*iE*this.stepLift[e]}update(e,t,n,r,i,a,o,s){let c=this.boxer,l=e.stance===`orthodox`?1:-1,u=i?.35:1,d=this.touchWalk(e,t,n,o);this.walkBackFromTheFall(n);let f=this.holdOnTheRopes(t,this.mapping.x(e.x)+d.x+this.riseRoot.x,this.mapping.z(e.y)+d.z+this.riseRoot.z),p=this.mapping.x(e.x)+d.x+this.riseRoot.x-f.x,h=this.mapping.z(e.y)+d.z+this.riseRoot.z-f.z;this.place.set(p,0,h),this.rootX===null&&(this.rootX=p,this.rootZ=h);let g=aO*Math.max(n,1/60);this.rootX+=Kw(p-this.rootX,-g,g),this.rootZ+=Kw(h-this.rootZ,-g,g);let _=Math.atan2(e.facing_x,-e.facing_y);this.yawInitialized||=(this.yaw=_,!0);let v=this.punchActive&&this.punchAgeTicks0?.12:1;let y=n*this.hitstopScale;this.punchActive&&this.hitstop>0&&(this.hitstopLag+=(n-y)*30),this.syncAction(e,t,o,y),this.debugHoldImpact||(this.boxer.headInjury.update(y),this.boxer.bodyInjury.update(y)),s!==void 0&&this.trackOpponentHead(t,s,n);let b=this.scratchB.set(this.mapping.x(e.velocity_x)*30,0,this.mapping.z(e.velocity_y)*30).add(this.touchVelocity).add(this.riseRootVelocity),x=b.length(),S=Math.hypot(b.x-this.riseRootVelocity.x,b.z-this.riseRootVelocity.z);this.lastSpeed=x,this.stillTime=x<.03?this.stillTime+n:0;let C=this.resting&&this.stillTime>.2&&this.downState===`up`;this.seated=Ww(this.seated,+!!C,C?2.2:4,n);let w=this.resting&&this.stillTime>.05&&this.downState===`up`;w&&(this.stoolRoot.set(this.rootX,0,this.rootZ),this.stoolYaw=this.yaw),this.stool.group.visible=w||this.seated>DT&&this.downState===`up`,this.stool.group.position.set(this.stoolRoot.x-this.rootX,0,this.stoolRoot.z-this.rootZ).add(this.scratch.set(0,0,.02).applyAxisAngle(FD,this.stoolYaw)).applyAxisAngle(FD,-this.yaw),this.stool.group.rotation.y=this.stoolYaw-this.yaw,this.celebrateTime=Math.max(0,this.celebrateTime-n),this.celebration=Ww(this.celebration,+(this.celebrateTime>0&&this.downState===`up`),3.5,n),this.waveTime=Math.max(0,this.waveTime-n),this.wave=Ww(this.wave,+(this.waveTime>0&&this.downState===`up`),4,n),this.breakTime=Math.max(0,this.breakTime-n),this.breakWeight=Ww(this.breakWeight,+(this.breakTime>0&&this.downState===`up`),6,n),this.attendWeight=Ww(this.attendWeight,+!!this.attending,2.5,n),this.mournWeight=Ww(this.mournWeight,+(this.mood===`mourn`),2.5,n),this.cheerWeight=Ww(this.cheerWeight,+(this.mood===`cheer`),2.5,n);let T=!this.referee&&(this.verdictSide!==0||this.resting||this.countdownTicks!==null&&this.countdownTicks>RT);this.squareWeight=Ww(this.squareWeight,+!!T,3,n),this.raisedWeight=Ww(this.raisedWeight,+(this.verdictSide!==0&&(this.verdict===`winner`||this.verdict===`level`)),3.2,n),this.bowedWeight=Ww(this.bowedWeight,+(this.verdictSide!==0&&this.verdict===`loser`),2.2,n);for(let e of[0,1])this.wristWeights[e]=Ww(this.wristWeights[e],this.wrists[e]===null?0:1,3.2,n);this.treatWeight=Ww(this.treatWeight,+!!this.treating,3,n),this.windedTime=Math.max(0,this.windedTime-n);let E=this.fallKneel&&this.downState===`falling`;this.winded=Ww(this.winded,this.windedTime>0&&this.downState===`up`||E?1:0,this.windedTime>0||E?12:4,n),this.enswell.group.visible=this.treatWeight>.4&&this.treatProp===`enswell`,this.bottle.group.visible=this.treatWeight>.4&&this.treatProp===`bottle`;let D=this.countdownTicks!==null&&this.countdownTicks<=FT&&this.countdownTicks>=IT;this.touchWeight=Ww(this.touchWeight,+!!D,6,n);let O=e.stamina/Math.max(1,e.maximum_stamina);this.tired=Ww(this.tired,Kw((.55-O)/.5,0,1),2,n),this.stunAmount=Ww(this.stunAmount,Math.min(1,e.stunned_ticks/24),8,n),c.updateFace(n,i,this.punchActive&&this.punchPower===`power`,this.tired,this.stunAmount,this.isDown);let k=e.defense;this.guardHigh=Ww(this.guardHigh,+(k===`guard_high`),$D,n),this.guardLow=Ww(this.guardLow,+(k===`guard_low`),$D,n),this.guardSpent=Ww(this.guardSpent,+(e.guard0||e.clinch_startup_ticks>0),10,n),this.foulWeight=Ww(this.foulWeight,+!!e.is_foul_recovery_target,8,n),this.tauntWeight=Ww(this.tauntWeight,+(e.taunt_ticks>0),10,n);let te=Math.hypot(this.mapping.x(t.x)-this.mapping.x(e.x),this.mapping.z(t.y)-this.mapping.z(e.y)),j=this.referee||e.is_downed||t.is_downed?0:1-Hx(Zw,tT,te);this.crowding=Ww(this.crowding,j,9,n);let ne=this.referee||e.is_downed||t.is_downed?0:1-Hx(KT,qT,te);this.tight=Ww(this.tight,ne,9,n);let re=1/0;if(this.hasLiveHead&&!this.referee&&this.downState===`up`){let e=this.boxer.rig.bones.head.getWorldPosition(this.ownHead),t=e.x-this.liveOpponentHead.x,r=e.z-this.liveOpponentHead.z,i=Math.hypot(t,r);if(re=Math.hypot(t,e.y-this.liveOpponentHead.y,r),re1e-4){let e=(Qw-re)/Qw*eT*n,a=Math.cos(-this.yaw),o=Math.sin(-this.yaw);this.headSpace.x+=(t*a+r*o)/i*e,this.headSpace.y+=(-t*o+r*a)/i*e,this.headSpace.lengthSq()>1&&this.headSpace.normalize()}}if(re>$w&&this.headSpace.multiplyScalar(Math.exp(-3*n)),this.tauntEnd=AD(this.tauntEnd,o,e.taunt_ticks>0?e.taunt_ticks:null),Jw(this.headKick,n,190,7.5,.24),Jw(this.torsoKick,n,150,7,.7),Jw(this.rootKick,n,120,8,.12),Jw(this.coverKick,n,110,15,.3),Jw(this.armKick,n,55,6,.3),this.foldDelay>0&&(this.foldDelay-=n,this.foldDelay<=0&&(this.torsoKick.velocity.x+=this.pendingFold,this.pendingFold=0)),this.coverDelay>0&&(this.coverDelay-=n,this.coverDelay<=0&&(this.coverKick.velocity.x+=this.pendingCover,this.pendingCover=0)),this.liverDelay>0&&(this.liverDelay-=n,this.liverDelay<=0&&(this.rootKick.velocity.y-=1.4*this.pendingLiver,this.torsoKick.velocity.x+=2.6*this.pendingLiver,this.torsoKick.velocity.z+=1.6*this.pendingLiver,this.pendingLiver=0)),this.handsDrop=Math.max(0,this.handsDrop-n*1.5),e.guard_broken&&!this.guardWasBroken&&(this.handsDrop=1,this.guardKick=1.2),this.guardWasBroken=e.guard_broken,this.stunAmount>.25&&this.downState===`up`&&!this.referee){if(this.rockedTime===0&&(this.rockedPhase=this.hurtRandom()*Math.PI*2,this.nextLurch=.1+this.hurtRandom()*.2),this.rockedTime+=n,this.rockedTime>=this.nextLurch){let e=this.stunAmount;this.rootKick.velocity.x+=(this.hurtRandom()-.5)*1.4*e,this.rootKick.velocity.z+=(this.hurtRandom()-.6)*1.2*e,this.rootKick.velocity.y-=this.hurtRandom()*.9*e,this.torsoKick.velocity.z+=(this.hurtRandom()-.5)*1.5*e,this.nextLurch=this.rockedTime+.3+this.hurtRandom()*.5}}else this.stunAmount<.02&&(this.rockedTime=0);this.guardKick=Math.max(0,this.guardKick-n*2.4),this.ragdoll?.tick(n),this.updateDownState(e,n,i,S),this.stepDeath(n),this.stepInjuries(n),this.idleSeed<0&&(this.idleSeed=oE(e.player_id),this.bouncePhase=this.idleSeed*19,this.weightPhase=this.idleSeed*43,this.breathPhase=this.idleSeed*71);let ie=this.idleSeed;e.style!==this.mannerStyle&&this.keyManner(e.style);let M=this.manner;this.battered=Ww(this.battered,Kw((e.trauma.head+e.trauma.body-XT)/ZT,0,1),1.5,n);let N=this.battered,ae=r*(.93+ie*.14)+ie*37,oe=(2.1-this.tired*.8)*(1-this.stunAmount*.6)*(.94+ie*.12)*M.tempo;if(this.bouncePhase+=n*oe*Math.PI*2*u,this.weightPhase+=n*(.42+ie*.1)*Math.PI*2*u,this.breathPhase+=n*(.3+this.tired*.75)*Math.PI*2,this.stunPhase+=n*5.5,this.feintTimer-=n,this.pawAge+=n,this.feintTimer<=0&&!this.punchActive&&x<1&&this.downState===`up`){this.pawCount+=1;let e=Math.abs(Math.sin(this.pawCount*12.9898+ie*78.233)*43758.5453)%1;this.feintTimer=e<.3?aE*1.2:1.4+e*2.6,this.pawAge=0}let se=this.pawAge/aE,ce=se<1?Math.sin(Math.PI*.5*(Hx(0,.4,se)+Hx(.4,1,se))):0,le=this.referee?0:ce*M.paw*(1-.7*this.tight)*(1-.6*this.tired)*(1-this.stunAmount)*(1-N)*Kw(1-this.guardHigh-this.guardLow,0,1)*u,ue=this.referee?0:(1-this.stunAmount)*(1-.6*this.tired)*(1-.7*N)*(x>.6?.5:1)*M.spring,de=Math.sin(this.bouncePhase)*(.7+.3*Math.sin(ae*.83+1.7))*ue,fe=Math.sin(this.bouncePhase*.5+.6)*ue*M.rock,pe=Math.sin(this.breathPhase)*(1+2*this.tired);this.breath=pe;let me=this.scratchC.set(this.rootX,0,this.rootZ);(this.downState===`up`||this.downState===`rising`)&&this.stepFeet(n,l,x,b,me,this.yaw);let he=Math.cos(this.yaw),ge=Math.sin(this.yaw);this.walkLean.x=Ww(this.walkLean.x,Kw((b.x*he-b.z*ge)*.03,-.04,.04),8,n),this.walkLean.y=Ww(this.walkLean.y,Kw((b.x*ge+b.z*he)*.03,-.04,.04),8,n);let _e=this.scratchQ.setFromAxisAngle(FD,-this.yaw),ve=l>0?this.foot.L:this.foot.R,ye=l>0?this.foot.R:this.foot.L,be=l>0?0:1,xe=+(l>0),Se=this.footWorld(be,ve.position),Ce=this.footWorld(xe,ye.position);ve.position.sub(me).applyQuaternion(_e),ye.position.sub(me).applyQuaternion(_e);let P=this.boxer.rig.metrics.ankleHeight;ve.position.y=P+Se,ye.position.y=P+Ce,oS(rS.leadToe,l,ve.toe),oS(rS.rearToe,l,ye.toe);let we=Kw(this.tired*.6+this.stunAmount+N*.6,0,1),Te=(Se+Ce)*3;ve.heel=Math.max(0,rS.leadHeel+(M.heel-1)*.12)+(.5+.5*de)*.09*ue+Math.max(0,-fe)*.06+Te,ye.heel=rS.rearHeel*M.heel*(1-.7*we)+(.5+.5*de)*.07*ue+Math.max(0,fe)*.07+Te,this.referee&&(ve.heel=ye.heel=Te),ve.pole.copy(ve.toe).setY(.35).normalize(),ye.pole.copy(ye.toe).setY(.35).normalize();let F=this.torso,I=rS.bladeYaw*l,Ee=de*.013,De=(Math.sin(this.weightPhase)*.018+Math.sin(ae*.31+2.2)*.008)*u*(.5+.5*M.bob),Oe=.012+this.tired*.03+this.stunAmount*.05+N*.025;F.hips.set(De*l+Math.sin(this.stunPhase*.9)*.05*this.stunAmount+this.walkLean.x,rS.hipsHeight+M.rise-Oe+Ee+pe*.002,fe*.018+this.walkLean.y+M.weight),F.hipsYaw=I,F.hipsPitch=.02+this.tired*.08,F.hipsRoll=Math.sin(this.stunPhase)*.09*this.stunAmount,F.shouldersYaw=I*rS.shoulderBlade;let ke=(rS.lean+M.lean)*(1-.5*this.tight);F.spinePitch=rS.hunch+ke*Math.cos(I)+this.tired*.16+N*.06-pe*.012+this.walkLean.y,F.spineRoll=ke*Math.sin(I)+Math.sin(this.stunPhase*1.3)*.06*this.stunAmount-this.walkLean.x+(Math.sin(ae*.61+2)*.018+Math.sin(ae*1.43)*.008)*u*M.bob,F.headYaw=-.12*l+Math.sin(ae*.9)*.05+Math.sin(this.stunPhase*.7)*.25*this.stunAmount,F.headPitch=rS.chinTuck+Math.sin(ae*1.7)*.02+this.stunAmount*.18+N*.2*(1-this.punchCommit),F.headRoll=Math.sin(this.stunPhase*1.1)*.14*this.stunAmount,F.headOffset.set(0,0,0);let Ae=l>0?this.hand.L:this.hand.R,je=l>0?this.hand.R:this.hand.L,Me=this.headRestChar(l),Ne=Kw(this.guardHigh+this.guardLow,0,1),Pe=1-this.crowding,Fe=this.scratch.copy(rS.relaxedLead).lerp(rS.tightLead,this.tight);Fe.x+=M.lead.x*Pe,Fe.y+=M.lead.y*Pe,Fe.z+=M.lead.z*Pe*(1-this.tight*(1-M.shell)),Fe.lerp(rS.guardHighLead,this.guardHigh).lerp(rS.guardLowLead,this.guardLow);let Ie=this.scratchB.copy(rS.relaxedRear).lerp(rS.tightRear,this.tight).addScaledVector(M.rear,Pe).lerp(rS.guardHighRear,this.guardHigh).lerp(rS.guardLowRear,this.guardLow);Fe.y-=this.tired*.12+this.stunAmount*.22+N*.06,Ie.y-=this.tired*.1+this.stunAmount*.2+N*.05,Fe.y-=this.guardSpent*GT,Ie.y-=this.guardSpent*GT,Fe.z-=this.guardSpent*.04,Ie.z-=this.guardSpent*.03,Fe.z+=le*.11+Math.sin(ae*2.3)*.012*u,Fe.x+=Math.sin(ae*1.9)*.01*u,Fe.y+=le*.02+Math.sin(ae*1.27+1)*.008*u+pe*.004,Ie.y+=Math.cos(ae*2.7)*.006*u+pe*.004,Ie.x+=Math.sin(ae*1.13+2)*.004*u,Fe.z-=this.guardKick*.07,Ie.z-=this.guardKick*.05,Fe.y-=this.guardKick*.02,Fe.add(Me),Ie.add(Me),Ae.position.set(Fe.x*l,Fe.y,Fe.z),je.position.set(Ie.x*l,Ie.y,Ie.z),oS(rS.leadKnuckles,l,Ae.knuckles),oS(rS.leadPalm,l,Ae.palm),oS(rS.rearKnuckles,l,je.knuckles),oS(rS.rearPalm,l,je.palm),oS(rS.leadPole,l,Ae.pole),oS(rS.rearPole,l,je.pole),Ae.pole.x*=1-.6*this.tight;let Le=Pe*(1-Ne);if(Ae.pole.x+=M.flare*l*Le,je.pole.x-=M.flare*l*Le,M.shell>0){let e=M.shell*Le;Ae.knuckles.lerp(this.scratchD.set(-.8*l,.1,.6),e).normalize(),Ae.palm.lerp(this.scratchD.set(-.3*l,.35,-.9),e).normalize(),Ae.pole.lerp(this.scratchD.set(.5*l,-.8,-.35),e).normalize()}F.shouldersYaw+=I*.07*le;let Re=rS.leadShrug+(.6-rS.leadShrug)*Ne+pe*.12+le*.2+M.shrug*Le,ze=rS.rearShrug+(.5-rS.rearShrug)*Ne+pe*.12+Math.min(0,M.shrug)*Le;if(Ne>.001&&(Ae.pole.lerp(oS(rS.guardHighLeadPole,l,this.scratch),this.guardHigh).lerp(oS(rS.guardLowLeadPole,l,this.scratch),this.guardLow).normalize(),je.pole.lerp(oS(rS.guardHighRearPole,l,this.scratch),this.guardHigh).lerp(oS(rS.guardLowRearPole,l,this.scratch),this.guardLow).normalize(),Ae.knuckles.lerp(oS(rS.guardKnuckles,l,this.scratch),Ne).normalize(),je.knuckles.lerp(oS(rS.guardKnuckles,-l,this.scratch),Ne).normalize(),Ae.palm.lerp(oS(rS.guardPalm,l,this.scratch),Ne).normalize(),je.palm.lerp(oS(rS.guardPalm,-l,this.scratch),Ne).normalize(),F.hips.y-=.03*this.guardHigh+.08*this.guardLow,F.spinePitch+=.05*this.guardHigh+.2*this.guardLow,F.headPitch+=.08*Ne),this.hurt&&this.applyHurtStance(r,l,Ae,je,Me),Math.abs(this.slip)>.001||this.weave>.001||this.pull>.001){let e=F.hips.x,t=F.hips.y,n=F.hips.z,r=F.spinePitch,i=F.spineRoll,a=F.shouldersYaw,o=this.slip;F.shouldersYaw+=o*.22,F.hipsYaw+=o*.1,this.leanHead(o*.18,0),F.hips.x+=o*.05,F.hips.y-=Math.abs(o)*.04;let s=this.weave,c=Kw(this.weaveTime/eO,0,1),u=Math.sin(c*Math.PI),d=s*(1-2*c)*l;F.hips.y-=s*(.08+.14*u),F.hips.x+=d*.04,this.leanHead(d*.14,s*(.04+.06*u));let f=this.pull;F.hips.z-=f*.1,F.hips.y-=f*.03,this.leanHead(0,-f*.2),F.headPitch-=f*.06;let p=this.headTravel(this.scratch,e,t,n,r,i,a);Ae.position.add(p),je.position.add(p)}this.punchCommit=Ww(this.punchCommit,+!!this.punchActive,10,n);let Be=this.crowding*(1-this.clinchWeight)*(1-this.punchCommit);if(Be>.001&&(F.headOffset.x-=Be*.075,F.headOffset.z-=Be*.04,F.headYaw-=Be*.2,F.spinePitch-=Be*.07,F.hips.z-=Be*.05,Ae.position.z-=Be*.14,Ae.position.x-=Be*.035*l,je.position.z-=Be*.07),Math.abs(this.headSpace.x)+Math.abs(this.headSpace.y)>.001){let e=this.headSpace.x,t=this.headSpace.y,n=1-this.clinchWeight;F.spinePitch+=t*.7*n,F.spineRoll-=e*.7*n,F.hips.z+=t*.1*n,F.hips.x+=e*.05*n,F.headOffset.x+=e*.05,F.headOffset.z+=t*.05,F.headPitch+=t*.2,F.headRoll-=e*.3}if(this.ropeLean=Ww(this.ropeLean,this.referee||this.downState!==`up`?0:this.ropeLeanTarget,uT,n),this.ropeLean>.001){let e=this.ropeLocal.copy(this.ropeOutward).applyAxisAngle(FD,-this.yaw);F.hipsPitch+=e.z*cT*this.ropeLean,F.hipsRoll-=e.x*lT*this.ropeLean}if(this.referee||this.applyReactions(Ae,je,ve,ye),this.punchActive){let e=this.applyPunch(l,Ae,je,ve,ye,Me);this.punchReach=e,this.punchHand===`left`==l>0?Re=Math.max(Re,e):ze=Math.max(ze,e)}if(this.referee&&(Re=ze=this.applyRefereePose(l,Ae,je,ve,ye,r,o,n,e.stunned_ticks),this.applyReactions(Ae,je,ve,ye)),this.clinchWeight>.001&&this.applyClinchPose(this.clinchWeight,r,l,e,t,Ae,je,Me),this.foulWeight>.001){let e=this.foulWeight;F.hips.y-=e*.16,F.spinePitch+=e*.55,F.headPitch+=e*.2,Ae.position.lerp(this.scratch.set(.06*l,.72,.16),e),je.position.lerp(this.scratch.set(-.05*l,.7,.14),e),Ae.pole.set(.6*l,-.6,.5),je.pole.set(-.6*l,-.6,.5)}if(this.tauntWeight>.001){let e=this.tauntEnd===null?0:Kw(this.tauntEnd-o,0,UT);this.applyTauntPose(this.tauntWeight,(UT-e)/UT*WT,l,Ae,je,Me)}if(this.dislocation===`shoulder_left`||this.dislocation===`shoulder_right`){let e=this.dislocation===`shoulder_left`?this.hand.L:this.hand.R,t=this.dislocation===`shoulder_left`?1:-1;e.position.set(.24*t,.55,.05),e.pole.set(.9*t,-.3,.2),e.knuckles.set(0,-1,.1),e.palm.set(-t,0,.2)}this.winded>.001&&(this.downState===`up`||E)&&this.applyWindedPose(this.winded,r,l,Ae,je),this.hurt&&this.downState===`up`&&this.applyHurtActs(r,l,ve,ye),this.touchWeight>.001&&this.downState===`up`&&this.applyTouchGlovesPose(this.touchWeight,l,Ae,je),this.celebration>.001&&this.downState===`up`&&this.applyCelebratePose(this.celebration,r,l,Ae,je,ve,ye),this.wave>.001&&this.downState===`up`&&this.applyWaveOffPose(this.wave,r,l,Ae,je),this.squareWeight>.001&&this.downState===`up`&&(this.applyVerdictPose(this.squareWeight,r,l,Ae,je,ve,ye,Me),ve.heel*=1-this.squareWeight,ye.heel*=1-this.squareWeight,Re=R.lerp(Re,this.breath*.15,this.squareWeight),ze=R.lerp(ze,this.breath*.15,this.squareWeight)),(this.wristWeights[0]>.001||this.wristWeights[1]>.001)&&this.downState===`up`&&this.applyRaisePose(l,Ae,je),this.breakWeight>.001&&this.downState===`up`&&this.applyBreakPose(this.breakWeight,l,Ae,je),this.attendWeight>.001&&this.downState===`up`&&this.applyAttendPose(this.attendWeight,r,l,Ae,je),this.treatWeight>.001&&this.downState===`up`&&this.applyTreatPose(this.treatWeight,r,l,Ae,je,ve,ye),this.seated>.001&&this.downState===`up`&&this.applySeatedPose(this.seated,r,l,Ae,je,ve,ye),this.downState!==`up`&&this.applyDownPose(l,Ae,je,ve,ye),this.steadyJointPoles(l,Ae,je,ve,ye,n),Oe=0;let Ve=this.pose;Ve.shrugL=l>0?Re:ze,Ve.shrugR=l>0?ze:Re;let He=this.ragdoll;if(He?.active===!0&&i&&(He.stop(),He.clearRise()),He?.active===!0&&!He.handingOver)He.setLost(c.isDecapitated,c.isHandDismembered(`left`),c.isHandDismembered(`right`)),He.update(n,this.obstacle),this.hurt&&this.dropDangles();else{if(this.solver.apply(c.root,this.pose),He?.handingOver===!0)He.followPose(n,this.obstacle),this.riseProgress>=mT&&He.handOverSeconds>=CT&&(He.letGo(),this.riseBlendAge=0);else if(He!==null&&He.hasRisePose){let e=Hx(0,ST,this.riseBlendAge);e<1&&this.downState!==`up`?He.blendRise(e):He.clearRise()}this.hurt&&this.dangleArms(n),He?.sample(n)}this.applyDislocation();let Ue=Math.min(1,(t.trauma.bleeding+t.trauma.left_cut+t.trauma.right_cut+t.trauma.head/4)/300*(a===`off`?0:a===`reduced`?.15:1.5));c.setGloveBlood(Ue),c.setTrunksBlood(Y_(e.trauma,a)),J_(c.headInjury,e.trauma,a),X_(c.bodyInjury,e.trauma,a),c.setSkinClearcoat(.25+(1-O)*.4),this.laidOut=!1}applyTauntPose(e,t,n,r,i,a){let o=this.torso,s=.5-.5*Math.cos(t*Math.PI*2);i.position.lerp(this.scratch.set(-.3*n,a.y-.62,.02),e),i.pole.lerp(this.scratch.set(-.5*n,-.4,-.75),e).normalize(),i.knuckles.lerp(this.scratch.set(-.1*n,-.95,.3),e).normalize(),i.palm.lerp(this.scratch.set(0,.3,.95),e).normalize(),r.position.lerp(this.scratch.set(.26*n,a.y-.36+s*.1,.52-s*.24),e),r.pole.lerp(this.scratch.set(.7*n,-.7,.1),e).normalize(),r.knuckles.lerp(this.scratch.set(.1*n,.25+s*.6,.95-s*.7),e).normalize(),r.palm.lerp(this.scratch.set(-.2*n,.95,-.2-s*.5),e).normalize(),o.spinePitch-=e*.12,o.headPitch-=e*.22,o.headYaw+=Math.sin(t*Math.PI)*.15*e,o.shouldersYaw+=Math.sin(t*Math.PI*3)*.1*e,o.hips.x+=Math.sin(t*Math.PI)*.03*e*n,o.headOffset.z+=e*.03}applyClinchPose(e,t,n,r,i,a,o,s){let c=this.torso,l=r.player_idy&&(h.x*=y/v,h.z*=y/v),h.x+=o,h.z+=u,t.position.lerp(h,e),t.pole.lerp(this.clinchTemp.set(r*.85,l?.35:-.6,.25),e).normalize(),t.knuckles.lerp(this.clinchTemp.set(-p*r*.9+f.x*.3,l?-.25:.1,-m*r*.9+f.z*.3),e).normalize(),t.palm.lerp(this.clinchTemp.set(-f.x,l?.1:.35,-f.z),e).normalize()}}holdOnTheRopes(e,t,n){if(this.referee)return this.ropeLeanTarget=0,this.ropeHold.set(0,0,0);this.ropeLeanTarget=dT(t,n,this.ropeExcess,this.ropeOwn);let r=Math.hypot(this.ropeExcess.x,this.ropeExcess.z);r>0&&this.ropeOutward.set(this.ropeExcess.x/r,0,this.ropeExcess.z/r);let i=this.mapping.x(e.x),a=this.mapping.z(e.y);dT(i,a,this.ropeTheirs,this.ropeTheirs);let o=1-Hx(iT,aT,Math.hypot(i-t,a-n));return this.ropeHold.set(fT(this.ropeOwn.x,this.ropeTheirs.x*o),0,fT(this.ropeOwn.z,this.ropeTheirs.z*o))}headRestChar(e){let t=this.boxer.rig.metrics;return this.headWorld.set(-.08,t.headHeight-t.hipsHeight+this.torso.hips.y,.02)}syncAction(e,t,n,r){this.shownFighter=e,this.shownOpponent=t;let i=this.ownQueued;if(i!==null&&e.action_id===i.action.id&&(this.ownQueued=null,this.retirePunch(),this.startOwnPunch(i),this.ownPress=!1),e.action_id!==null&&e.action_id!==this.actionId&&e.action_id!==this.completedActionId&&!this.retiredOwnIds.includes(e.action_id)){let t=e.action;if(t!==null){let r=e.action_hand??(e.stance===`orthodox`?`left`:`right`),i=this.ownActionId===e.action_id&&this.punchActive,a=this.punchTiming;this.actionId=e.action_id,this.punchClass=t,this.punchHand=r,this.punchTarget=e.action_target??`head`,this.punchPower=e.action_power??`normal`,this.punchTiming={...se(this.punchClass,this.punchTarget,this.punchPower),startup:e.action_startup_ticks,active:e.action_active_ticks,recovery:e.action_recovery_ticks},this.punchTotalTicks=Math.max(1,e.action_startup_ticks+e.action_active_ticks+e.action_recovery_ticks);let o=Math.max(0,n-e.action_start_tick);i?(this.punchAgeTicks=iO(this.punchAgeTicks,a,this.punchTiming),this.ownAuthoritativeAge=o,this.ownRefused||(this.ownPulled=!1,this.ownCut=!1,o-this.punchAgeTicks>1&&(this.punchAgeTicks=o))):(this.punchAgeTicks=o,this.ownActionId=null,this.ownPress=!1,this.ownLeadTicks=0,this.ownAuthoritativeAge=null),this.ownWaitedTicks=0,this.punchActive=!0}}if(e.action_id===null)this.actionId=null,this.completedActionId=null;else if(e.action_id===this.actionId&&this.punchActive){let t=Math.max(0,n-e.action_start_tick);this.ownActionId===this.actionId?(this.ownAuthoritativeAge=t,!this.ownPulled&&t-this.punchAgeTicks-this.hitstopLag>1.5&&(this.punchAgeTicks=t)):Math.abs(this.punchAgeTicks+this.hitstopLag-t)>1.5&&(this.punchAgeTicks=t,this.hitstopLag=0)}if(this.punchActive&&this.ownActionId!==null&&this.ownAuthoritativeAge===null&&!this.ownPulled&&!this.ownCut&&(this.ownWaitedTicks+=r*30,this.ownWaitedTicks>this.ownExpectedTicks*1.5+LD&&(this.ownPress?!this.ownStarted:this.punchAgeTicks=e,n=this.hitstop>0?0:Math.min(this.hitstopLag,r*30*BD);this.hitstopLag-=n,this.punchAgeTicks+=r*30*(t?zD:this.ownPunchRate())+n,this.ownPress&&this.ownActionId!==null&&!this.ownCut&&this.punchAgeTicks>=this.punchTiming.startup&&this.pressesLanded.at(-1)!==this.ownActionId&&(this.pressesLanded.push(this.ownActionId),this.pressesLanded.length>6&&this.pressesLanded.shift()),this.punchAgeTicks>=this.punchTotalTicks&&this.retirePunch()}e.is_downed&&(this.punchActive&&this.retirePunch(),this.ownQueued=null),this.releaseQueuedPress(r);let a=this.actionId??this.ownActionId;a!==this.aimActionId&&(this.aimActionId=a,this.followHead=0),this.followHead=Ww(this.followHead,+(a!==null&&a===this.contactId),nO,r),this.followReferee=Ww(this.followReferee,+(a!==null&&a===this.refereeContactId),nO,r)}trackOpponentHead(e,t,n){let r=this.guardOpponentHead.set(this.mapping.x(e.x),0,this.mapping.z(e.y));this.opponentSteadySeconds=QD.has(e.defense)?0:this.opponentSteadySeconds+n,(!this.hasLiveHead||this.opponentSteadySeconds>=tO)&&this.opponentHeadOffset.copy(t).sub(r),r.add(this.opponentHeadOffset),this.liveOpponentHead.copy(t),this.hasLiveHead=!0}ownPunchRate(){if(this.ownActionId===null||this.ownPress)return 1;let e=this.punchTiming.startup,t=this.ownAuthoritativeAge;return t===null?this.punchAgeTicks0,_=g?t:n,v=g?n:t,y=(g?1:-1)*e,b=+(this.punchPower===`power`),x=+(this.punchTarget===`body`),S,C,w,T=1,E=1,D=0,O=1,k=1,ee=0,A=0;if(ue&&Me.set(Me.x*e/t,Me.y,Me.z*e/t),Me.add(Oe)}else Me.multiplyScalar(Math.min(1,Ae/Math.max(1e-6,n))).add(Oe)}if(fe>i.heel&&(i.heel+=(fe-i.heel)*O),pe>r.heel&&(r.heel+=(pe-r.heel)*O),he>0){let t=this.scratchQ.setFromAxisAngle(FD,-he*e*O);r.toe.applyQuaternion(t),r.pole.applyQuaternion(t)}if(me>0){let t=this.scratchQ.setFromAxisAngle(FD,me*e*O);i.toe.applyQuaternion(t),i.pole.applyQuaternion(t)}let Pe=this.scratchE;switch(m){case`hook`:Pe.set((.1+.03*b)*y,-.05,-.06);break;case`uppercut`:Pe.set(.03*y,-.26,-.04);break;case`straight`:Pe.set(.02*y,-.02,-.04-.05*b);break;default:Pe.set(0,-.01,-.02-.07*b)}Pe.y-=.05*b,Pe.z-=(h?.07:.12)*b;let Fe=this.punchStart.copy(ie).addScaledVector(Pe,Math.max(C,h?(1-j)*.6*T:0)),Ie=A*this.punchMiss;if(m===`hook`){let e=Math.hypot(Fe.x-Oe.x,Fe.z-Oe.z),t=Math.hypot(Me.x-Oe.x,Me.z-Oe.z),n=this.punchSweepFrom.copy(Fe).sub(Oe).setY(0).normalize(),r=this.punchSweepTo.copy(Me).sub(Oe).setY(0).normalize(),i=Math.acos(Kw(n.dot(r),-1,1)),a=n.z*r.x-n.x*r.z>=0?1:-1,o=Hx(0,1,j),s=n.applyAxisAngle(FD,(i*o+.5*Ie)*a).normalize();_.position.copy(Oe).addScaledVector(s,R.lerp(e,t,o)),_.position.y=R.lerp(Fe.y,Me.y,o),_.pole.set(.9*y,.2+.5*(1-x),.25).normalize(),_.knuckles.copy(s).applyAxisAngle(FD,a*Math.PI/2).setY(.05).normalize(),_.palm.set(0,-1,0)}else if(m===`uppercut`){let e=Hx(0,1,j),t=this.punchMid.set(Fe.x+(Me.x-Fe.x)*.6,Math.min(Fe.y,Me.y-.12),Fe.z+(Me.z-Fe.z)*.75);_.position.copy(Fe).multiplyScalar((1-e)*(1-e)).addScaledVector(t,2*(1-e)*e).addScaledVector(Me,e*e),_.position.y+=.05*ee+.14*Ie,_.pole.set(.3*y,-1,-.1).normalize(),_.knuckles.set(.05*y,.9,.35).normalize(),_.palm.set(-.2*y,.3,-.95).normalize()}else{_.position.copy(Fe).lerp(Me,Math.min(1,j)).addScaledVector(ke,.14*Ie),_.position.y+=Math.sin(Kw(j,0,1)*Math.PI)*.025,_.pole.set(.55*y,-.9,.35);let e=Hx(.55,1,j);_.knuckles.copy(ke).lerp(this.scratchC.set(.1*y,.55,.8),1-e).normalize(),_.palm.set(-.9*y,.2,-.3).lerp(this.scratchC.set(0,-1,.1),e).normalize()}if(ne>0&&(_.position.lerp(ie,ne),_.knuckles.lerp(M,ne).normalize(),_.palm.lerp(N,ne).normalize(),_.pole.lerp(ae,ne).normalize()),E<1){let e=(1-_.pole.dot(ae)/Math.max(1e-6,_.pole.length()*ae.length()))/2,t=Math.sin(Math.PI*E);_.knuckles.lerp(M,1-E).normalize(),_.palm.lerp(N,1-E).normalize(),_.pole.lerp(ae,1-E).addScaledVector(this.scratchC.set(y,0,0),rO*e*t*t).normalize()}let Le=this.scratchE.set(-.11*y,a.y-.13,.13+a.z);v.position.lerp(Le,Math.max(k,te)*.8).add(this.headTravel(this.scratchC,ve,ye,be,xe,Se,Ce));let Re=this.hasLiveHead?Hx(.08,.2,this.guardOpponentHead.distanceTo(this.liveOpponentHead))*(1-this.followHead):0;return this.punchMiss=Math.max(Hx(.02,.12,Ne),Re),te}hurtRandom(){return this.hurtSeed=Math.imul(this.hurtSeed,1664525)+1013904223>>>0,this.hurtSeed/4294967296}applyReactions(e,t,n,r){let i=this.torso,a=this.headKick.value;i.headOffset.addScaledVector(a,.4),this.leanHead(a.x*.6,a.z*.6),i.headPitch+=a.z*2.6-a.y*2,i.headYaw+=a.x*2.6,i.headRoll+=-a.x*1.1,i.shouldersYaw+=this.torsoKick.value.y,i.hipsYaw+=this.torsoKick.value.y*.4,i.spinePitch+=this.torsoKick.value.x,i.spineRoll+=this.torsoKick.value.z*.5,i.hips.x+=this.rootKick.value.x,i.hips.z+=this.rootKick.value.z,i.hips.y-=Math.max(0,this.torsoKick.value.x)*.08,this.torsoKick.value.x>.05&&(e.position.y-=this.torsoKick.value.x*.25,t.position.y-=this.torsoKick.value.x*.2,e.position.z-=this.torsoKick.value.x*.1);let o=Math.max(0,this.rootKick.value.y);i.hips.y+=this.downState===`up`?this.rootKick.value.y:o,n.heel+=o*6,r.heel+=o*6;let s=this.coverKick.value.x;if(Math.abs(s)>.002){let e=s>0?this.hand.R:this.hand.L;e.position.y-=Math.abs(s)*.9,e.position.x+=s*.2,e.position.z-=Math.abs(s)*.25,e.pole.y-=Math.abs(s)*3}let c=this.hand.L.position,l=this.hand.R.position;c.add(this.armKick.value),l.addScaledVector(this.armKick.value,.8);let u=Hx(0,1,this.handsDrop);c.set(c.x+.07*u,c.y-.24*u,c.z-.04*u),l.set(l.x-.07*u,l.y-.22*u,l.z-.03*u),i.hips.y-=this.guardKick*.02;let d=this.downState===`up`&&!this.referee?this.stunAmount:0;if(d>.01){let e=this.rockedTime,t=this.rockedPhase,n=Math.max(0,Math.sin(e*3.3+t)*Math.sin(e*1.9+t*1.7)),r=.5+.5*Math.sin(e*1.1+t*1.7);i.hips.y-=d*(.02+.08*n),i.hips.x+=d*.04*Math.sin(e*2.1+t*2.9),i.hips.z+=d*.03*Math.sin(e*1.3+t),i.headRoll+=d*.2*Math.sin(e*2.1+t*2.9-1.1),i.headPitch+=d*.1*Math.sin(e*1.3+t-.9),c.set(c.x+d*.07*r,c.y-d*.05*r,c.z),l.set(l.x-d*.07*r,l.y-d*.08*(1-r),l.z)}}legRoom(e,t){let n=this.torso,r=e.position.x-n.hips.x-t*Rx.x*Math.cos(n.hipsYaw),i=e.position.z-n.hips.z+t*Rx.x*Math.sin(n.hipsYaw);return e.position.y+Math.sqrt(Math.max(.04,AT*AT-r*r-i*i))-Rx.y}applyRefereePose(e,t,n,r,i,a,o,s,c=0){let l=this.torso,u=R.lerp,d=this.countWeight=Ww(this.countWeight,+!!this.refereeCounting,5,s),f=Math.sin(a*.7)*.08,p=this.refereeCounting?.75:.06;if(this.breakAimed){let e=G.copy(this.watching?this.watchPoint:this.breakFighters[Math.sin(this.weightPhase*.32)+Math.sin(this.weightPhase*.125)>0?0:1]);this.watching||(e.y=MT-.1),e.x-=this.rootX??0,e.z-=this.rootZ,e.applyAxisAngle(FD,-this.yaw),f=Kw(Math.atan2(e.x,e.z),-1,1)*.85,p=Kw(Math.atan2(MT-e.y,Math.hypot(e.x,e.z)),-.2,.85)}this.gazeYaw=Ww(this.gazeYaw,f,6,s),this.gazePitch=Ww(this.gazePitch,p,6,s);let m=d*Hx(.2,.6,this.gazePitch),h=Math.sin(a*1.6),g=Math.sin(this.weightPhase*.35)*.02+Math.sin(this.weightPhase*.9+1)*.006,_=Math.hypot(this.travel.x,this.travel.z),v=Math.min(1,_/.4);l.hipsYaw=this.strideYaw*.7,l.shouldersYaw=this.strideYaw*.2+this.gazeYaw*.25,l.hipsPitch=.04+m*.2,l.hipsRoll=0,l.spinePitch=.1+h*.008+Kw(this.travel.z,-1,1.5)*.04+d*.06+m*.3,l.spineRoll=-g*.6-this.travel.x*.03,l.headYaw=this.gazeYaw,l.headPitch=.04+this.gazePitch,l.headRoll=0,l.hips.set(g,0,-m*.1);let y=this.footYaw[e>0?0:1]-this.yaw,b=this.footYaw[+(e>0)]-this.yaw;r.toe.set(Math.sin(y),0,Math.cos(y)),i.toe.set(Math.sin(b),0,Math.cos(b)),r.pole.copy(r.toe).setY(.3).normalize(),i.pole.copy(i.toe).setY(.3).normalize();let x=_>.001?v/_:0;r.heel=Kw((-(r.position.x*this.travel.x+r.position.z*this.travel.z)*x-.08)*3.5,0,.75),i.heel=Kw((-(i.position.x*this.travel.x+i.position.z*this.travel.z)*x-.08)*3.5,0,.75);let S=((r.position.x-i.position.x)*this.travel.x+(r.position.z-i.position.z)*this.travel.z)*(x/Math.max(_,.001))*.1;l.hips.y=Math.max(kT-.14,Math.min(kT-m*.05,this.legRoom(r,e),this.legRoom(i,-e)));let C=l.hips.y+.24+h*.004;if(t.position.set(.16*e-this.travel.x*S,C,.3-this.travel.z*S),n.position.set(-.16*e+this.travel.x*S,C-.015,.28+this.travel.z*S),t.pole.set(.7*e,-.5,-.5).normalize(),n.pole.set(-.7*e,-.5,-.5).normalize(),t.knuckles.set(-.35*e,.05,.9).normalize(),n.knuckles.set(.35*e,.05,.9).normalize(),t.palm.set(-.65*e,-.75,.05).normalize(),n.palm.set(.65*e,-.75,.05).normalize(),d>.001){if(this.refereeCounting){this.countChangedTick??=o;let e=Kw((o-this.countChangedTick)/te,0,1);this.countPump=e.001&&(l.spinePitch=u(l.spinePitch,-.04,w),t.position.lerp(G.set(.32*e,l.hips.y+.6,.2),w),n.position.lerp(G.set(-.32*e,l.hips.y+.6,.2),w),t.knuckles.lerp(G.set(.1*e,1,.1),w).normalize(),n.knuckles.lerp(G.set(-.1*e,1,.1),w).normalize(),t.palm.lerp(G.set(0,.1,1),w).normalize(),n.palm.lerp(G.set(0,.1,1),w).normalize(),t.pole.lerp(G.set(.6*e,-.8,-.1),w).normalize(),n.pole.lerp(G.set(-.6*e,-.8,-.1),w).normalize()),c>0){let r=Math.min(1,c/12),i=Math.sin(a*9.5);l.hips.y-=.09*r,l.hips.x+=i*.05*r,l.spineRoll+=i*.18*r,l.headRoll-=i*.35*r,l.headPitch+=.25*r,t.position.x+=.18*e*r,n.position.x-=.18*e*r,t.position.y-=.1*r,n.position.y-=.1*r}return .05+h*.025}updateDownState(e,t,n,r){if(this.riseBlendAge+=t,e.is_downed||this.forcedDown||this.dead){if(this.downState===`up`||this.downState===`rising`||this.deathFall)this.deathFall=!1,this.fallFromGetUp=this.downState!==`up`,this.fallFromGetUp&&(DD(this.fallStart,this.downResult),this.fallStartStand=this.downStand),this.downState=`falling`,this.fallAge=0,this.riseProgress=0,this.riseRootFrom.copy(this.riseRoot),this.landSettled=!1,this.fallenFromPhysics=!1,this.downPolesSet=!1,this.ragdoll?.clearRise(),this.authoredNextFall?this.ragdoll?.forget():n||this.startFall(e),this.authoredNextFall=!1;else if(this.downState===`falling`)this.fallAge+=t,this.fallAge>=pT&&(this.downState=`down`);else if(this.fallKneel)this.riseProgress=hT;else{let n=(!this.forcedDown&&!this.heldDown&&!this.dead&&e.get_up_required>0?Kw(e.get_up_meter/e.get_up_required,0,1):0)*hT;if(this.ragdoll?.active===!0&&!this.ragdoll.handingOver){if(n<=0)return;this.handOverFall(e)}this.riseProgress+=Kw(n-this.riseProgress,-.4*t,vT*t)}return}if((this.downState===`down`||this.downState===`falling`)&&(this.downState=`rising`,this.ragdoll?.active===!0&&!this.ragdoll.handingOver&&this.handOverFall(e),this.fallKneel&&(this.riseProgress=Math.max(this.riseProgress,hT)),this.riseFrom=this.riseProgress,this.feetInitialized=!1),this.downState!==`rising`)return;let i=r>.3||this.punchActive,a=(1-this.riseFrom)/(i?_T:gT);this.riseProgress=Math.min(1,this.riseProgress+(this.riseProgress=1&&(this.downState=`up`,this.fallKneel=!1)}startFall(e){let t=this.ragdoll;t!==null&&(this.rootX!==null&&Math.hypot(this.place.x-this.rootX,this.place.z-this.rootZ)>wT&&(this.rootX=this.place.x,this.rootZ=this.place.z,this.boxer.root.position.set(this.rootX,0,this.rootZ)),t.start(this.dead?this.deathStyle:`crumple`),e.get_up_count>0&&!this.dead&&(t.settle(),this.fallAge=pT))}handOverFall(e){let t=this.ragdoll;if(t===null||!t.active||t.handingOver)return;let n=e.stance===`orthodox`?1:-1,r=this.boxer.rig.bones;this.boxer.root.updateMatrixWorld(!0);let i=this.scratchC.set(this.rootX??0,0,this.rootZ),a=this.scratchQ.setFromAxisAngle(FD,-this.yaw),o=this.fallen,s=(e,t)=>t.setFromMatrixPosition(e.matrixWorld).sub(i).applyQuaternion(a),c=(e,t,n,r)=>vD(rD.setFromQuaternion(e.getWorldQuaternion(nD).premultiply(a),`YXZ`),t,n,r);s(r.hips,o.hips),this.landProne=t.faceDown();let l=Math.abs(o.hips.x)>.12?Math.sign(o.hips.x):0,u=this.landProne?mD(this.downTo,uD,dD,n,l,this.boxer.rig.metrics.ankleHeight):mD(this.downTo,cD,lD,n,l,this.boxer.rig.metrics.ankleHeight);this.landSide=l,this.landShift.set(o.hips.x-u.hips.x,0,o.hips.z-u.hips.z);let d=c(r.hips,u.hipsPitch,u.hipsYaw,u.hipsRoll);o.hipsPitch=d.x,o.hipsYaw=d.y,o.hipsRoll=d.z;let f=c(r.upperChest,o.hipsPitch,o.hipsYaw,o.hipsRoll);o.shouldersYaw=f.y,o.spinePitch=f.x-o.hipsPitch,o.spineRoll=f.z-o.hipsRoll;let p=c(r.head,f.x,f.y,f.z);o.headPitch=p.x,o.turn=p.y,o.headRoll=p.z,s(n>0?r.gloveL:r.gloveR,o.leadHand),s(n>0?r.gloveR:r.gloveL,o.rearHand),s(n>0?r.ankleL:r.ankleR,o.leadFoot),s(n>0?r.ankleR:r.ankleL,o.rearFoot);let m=this.boxer.rig.metrics.ankleHeight;o.leadFoot.y=Math.max(o.leadFoot.y,m),o.rearFoot.y=Math.max(o.rearFoot.y,m);let h=(e,t,n,r,i)=>{let o=s(e,this.scratchB),c=s(n,this.scratchD).sub(o).normalize();s(t,r).sub(o),r.addScaledVector(YE.copy(i).applyQuaternion(e.getWorldQuaternion(nD)).applyQuaternion(a),tD),r.addScaledVector(c,-r.dot(c)),r.lengthSq()>1e-6?r.normalize():r.copy(i===QE?XE:ZE)},g=n>0;h(g?r.hipL:r.hipR,g?r.kneeL:r.kneeR,g?r.ankleL:r.ankleR,o.leadKnee,QE),h(g?r.hipR:r.hipL,g?r.kneeR:r.kneeL,g?r.ankleR:r.ankleL,o.rearKnee,QE),h(g?r.shoulderL:r.shoulderR,g?r.elbowL:r.elbowR,g?r.gloveL:r.gloveR,o.leadElbow,g?$E:eD),h(g?r.shoulderR:r.shoulderL,g?r.elbowR:r.elbowL,g?r.gloveR:r.gloveL,o.rearElbow,g?eD:$E);let _=(e,t,n)=>{let r=e.getWorldQuaternion(nD).premultiply(a);t.set(0,1,0).applyQuaternion(r),n.set(0,0,1).applyQuaternion(r)};_(g?r.gloveL:r.gloveR,o.leadKnuckles,o.leadPalm),_(g?r.gloveR:r.gloveL,o.rearKnuckles,o.rearPalm),o.ownJoints=1,o.leadHeel=0,o.rearHeel=0,o.palmsDown=+!!this.landProne,this.fallenFromPhysics=!0,this.landSettled=!0,this.downPolesSet=!1,t.handOver(),this.riseBlendAge=0;let v=this.scratchE.set(t.pelvis(this.scratchD).x-(this.rootX??0),0,this.scratchD.z-this.rootZ),y=this.scratchB.copy(v).applyQuaternion(a);for(let e of[o.hips,o.leadHand,o.rearHand,o.leadFoot,o.rearFoot])e.x-=y.x,e.z-=y.z;t.shiftRise(this.scratchC.copy(v).negate()),this.rootX=(this.rootX??0)+v.x,this.rootZ+=v.z,this.boxer.root.position.set(this.rootX,0,this.rootZ),this.riseRoot.set(this.rootX-this.mapping.x(e.x)-this.touchOffset.x,0,this.rootZ-this.mapping.z(e.y)-this.touchOffset.z),this.riseRootFrom.copy(this.riseRoot)}walkBackFromTheFall(e){let t=this.downState===`rising`?1-Hx(hT,1,this.riseProgress):this.downState===`up`?0:1,n=this.riseRootFrom.x*t,r=this.riseRootFrom.z*t;e>0?this.riseRootVelocity.set((n-this.riseRoot.x)/e,0,(r-this.riseRoot.z)/e):this.riseRootVelocity.set(0,0,0),this.riseRoot.set(n,0,r),t===0&&this.riseRootFrom.set(0,0,0)}steadyJointPoles(e,t,n,r,i,a){if(this.poleSettle=this.downState===`up`?Math.max(0,this.poleSettle-a):xT,this.poleSettle<=0||this.ragdoll?.active===!0&&!this.ragdoll.handingOver){this.downPolesSet=!1;return}let o=this.boxer.rig.bones,s=e>0;this.characterInverse.copy(this.boxer.root.matrixWorld).invert();for(let e=0;e<4;e+=1){let c=e<2,l=e%2==0,u=l===s,d=c?u?o.hipL:o.hipR:u?o.shoulderL:o.shoulderR,f=c?l?r:i:l?t:n,p=f.position,m=f.pole,h=this.downPoles[e];if(!this.downPolesSet){h.copy(m);continue}let g=this.scratchB.setFromMatrixPosition(d.matrixWorld).applyMatrix4(this.characterInverse).sub(p).negate();if(g.lengthSq()<1e-6){h.copy(m);continue}g.normalize();let _=this.scratchD.copy(h).addScaledVector(g,-h.dot(g)),v=this.scratchE.copy(m).addScaledVector(g,-m.dot(g));if(_.lengthSq()<1e-4||v.lengthSq()<1e-4){h.copy(m);continue}let y=Math.atan2(this.scratch.crossVectors(_,v).dot(g),_.dot(v)),b=bT*Math.max(a,1/120);Math.abs(y)<=b||m.copy(_.normalize().applyAxisAngle(g,Math.sign(y)*b)),h.copy(m)}this.downPolesSet=!0}applyWindedPose(e,t,n,r,i){let a=this.torso,o=R.lerp,s=this.windedSide,c=Math.sin(t*23)*.006;a.hips.y=o(a.hips.y,rS.hipsHeight-.1,e),a.hips.z=o(a.hips.z,-.04,e),a.hipsPitch=o(a.hipsPitch,.2,e),a.spinePitch=o(a.spinePitch,.62+c,e),a.spineRoll=o(a.spineRoll,s*.16,e),a.headPitch=o(a.headPitch,.38,e);let l=s>0?this.hand.L:this.hand.R,u=l===r?i:r;l.position.lerp(G.set(s*.13,.98,.17),e),l.palm.lerp(G.set(-s*.6,0,-.8),e).normalize(),l.knuckles.lerp(G.set(-s*.5,.5,.2),e).normalize(),l.pole.lerp(G.set(s*.9,-.3,-.3),e).normalize(),u.position.lerp(G.set(-s*.2,.86,.3),e),u.pole.lerp(G.set(-s*.8,-.6,0),e).normalize()}applyTouchGlovesPose(e,t,n,r){let i=this.torso,a=R.lerp;i.hips.z=a(i.hips.z,.06,e),i.hipsYaw=a(i.hipsYaw,i.hipsYaw*.4,e),i.shouldersYaw=a(i.shouldersYaw,0,e),i.spinePitch=a(i.spinePitch,.12,e),i.headPitch=a(i.headPitch,.1,e),n.position.lerp(G.set(.11*t,1.24,.5),e),r.position.lerp(G.set(-.11*t,1.22,.47),e),n.palm.lerp(G.set(-t,0,0),e).normalize(),r.palm.lerp(G.set(t,0,0),e).normalize(),n.knuckles.lerp(G.set(0,.15,1),e).normalize(),r.knuckles.lerp(G.set(0,.15,1),e).normalize(),n.pole.lerp(G.set(.7*t,-.7,0),e).normalize(),r.pole.lerp(G.set(-.7*t,-.7,0),e).normalize()}touchWalk(e,t,n,r){this.countdownEnd=AD(this.countdownEnd,r,this.countdownTicks);let i=this.countdownEnd===null?0:jD(this.countdownEnd-r),a=this.mapping.x(t.x)-this.mapping.x(e.x),o=this.mapping.z(t.y)-this.mapping.z(e.y),s=Math.hypot(a,o),c=s>LT?(s-LT)/2/s*i:0;return this.touchVelocity.set(a*c-this.touchOffset.x,0,o*c-this.touchOffset.z).divideScalar(Math.max(n,.001)).clampLength(0,HT),this.touchOffset.set(a*c,0,o*c)}applyCelebratePose(e,t,n,r,i,a,o){let s=this.torso,c=R.lerp,l=Math.sin(t*6)*.04;s.hips.y=c(s.hips.y,rS.hipsHeight+.035+l*.5,e),s.hipsYaw=c(s.hipsYaw,0,e),s.hipsPitch=c(s.hipsPitch,-.12,e),s.hipsRoll=c(s.hipsRoll,0,e),s.shouldersYaw=c(s.shouldersYaw,0,e),s.spinePitch=c(s.spinePitch,-.1,e),s.headPitch=c(s.headPitch,-.25,e),r.position.lerp(G.set(.3*n,1.86+l,.08),e),i.position.lerp(G.set(-.3*n,1.84+l,.06),e),r.palm.lerp(G.set(0,0,1),e).normalize(),i.palm.lerp(G.set(0,0,1),e).normalize(),r.knuckles.lerp(G.set(.15*n,1,0),e).normalize(),i.knuckles.lerp(G.set(-.15*n,1,0),e).normalize(),r.pole.lerp(G.set(n,.1,-.3),e).normalize(),i.pole.lerp(G.set(-n,.1,-.3),e).normalize(),a.heel=c(a.heel,.45,e),o.heel=c(o.heel,.45,e)}kneelLegs(e,t,n,r,i){let a=R.lerp;n.position.x=a(n.position.x,.24*t,e),n.position.z=a(n.position.z,i+.3,e),r.position.x=a(r.position.x,-.18*t,e),r.position.z=a(r.position.z,i-.66,e),n.heel=a(n.heel,0,e),r.heel=a(r.heel,1.25,e),n.toe.lerp(this.treatScratch.set(.2*t,0,1),e).normalize(),r.toe.lerp(this.treatScratch.set(-.1*t,0,1),e).normalize(),n.pole.lerp(this.treatScratch.set(.25*t,.4,1),e).normalize(),r.pole.lerp(this.treatScratch.set(-.05*t,-.8,.6),e).normalize()}applyAttendPose(e,t,n,r,i){let a=this.torso,o=R.lerp,s=Math.sin(t*3.1)*.5+Math.sin(t*5.3+1)*.5;a.hips.z=o(a.hips.z,.12,e),a.hips.y=o(a.hips.y,kT-.06,e),a.hipsPitch=o(a.hipsPitch,.3,e),a.spinePitch=o(a.spinePitch,.42,e),a.headPitch=o(a.headPitch,.4+s*.05,e),a.headYaw=o(a.headYaw,Math.sin(t*1.3)*.08,e),r.position.lerp(G.set(.2*n,1.36+s*.06,.6+s*.04),e),i.position.lerp(G.set(-.14*n,1.23,.6),e),r.palm.lerp(G.set(-.8*n,-.2,.5),e).normalize(),i.palm.lerp(G.set(0,-.9,.3),e).normalize(),r.knuckles.lerp(G.set(.1*n,.5,1),e).normalize(),i.knuckles.lerp(G.set(.8*n,.1,.6),e).normalize(),r.pole.lerp(G.set(.8*n,-.5,-.1),e).normalize(),i.pole.lerp(G.set(-n,-.1,.1),e).normalize();let c=this.mournWeight*e;if(c>.001){a.hipsPitch=o(a.hipsPitch,.1,c),a.spinePitch=o(a.spinePitch,.28,c),a.headPitch=o(a.headPitch,.55,c),a.headYaw=o(a.headYaw,0,c);let e=a.hips.y+.76;r.position.lerp(G.set(.14*n,e,.4),c),i.position.lerp(G.set(-.14*n,e,.4),c),r.knuckles.lerp(G.set(-.35*n,.9,0),c).normalize(),i.knuckles.lerp(G.set(.35*n,.9,0),c).normalize(),r.palm.lerp(G.set(-n,-.2,0),c).normalize(),i.palm.lerp(G.set(n,-.2,0),c).normalize(),r.pole.lerp(G.set(n,-.2,.3),c).normalize(),i.pole.lerp(G.set(-n,-.2,.3),c).normalize()}let l=this.cheerWeight*e;if(l>.001){let e=Math.sin(t*8.5);a.hips.z=o(a.hips.z,.04,l),a.hipsPitch=o(a.hipsPitch,-.02,l),a.spinePitch=o(a.spinePitch,-.06,l),a.spineRoll=o(a.spineRoll,e*.05,l),a.headPitch=o(a.headPitch,-.2,l);let s=a.hips.y+.93+e*.05;r.position.lerp(G.set(.36*n,s,.06),l),i.position.lerp(G.set(-.36*n,s-e*.06,.06),l),r.knuckles.lerp(G.set(.15*n,1,0),l).normalize(),i.knuckles.lerp(G.set(-.15*n,1,0),l).normalize(),r.palm.lerp(G.set(0,0,1),l).normalize(),i.palm.lerp(G.set(0,0,1),l).normalize(),r.pole.lerp(G.set(n,-.3,-.2),l).normalize(),i.pole.lerp(G.set(-n,-.3,-.2),l).normalize()}}applyTreatPose(e,t,n,r,i,a,o){let s=this.torso,c=R.lerp,l=this.treatScratch.set(this.rootX??0,0,this.rootZ),u=this.scratchQ.setFromAxisAngle(FD,-this.yaw),d=G.copy(this.treatTarget).sub(l).applyQuaternion(u),f=this.treatFacingLocal.copy(this.treatFacing).applyQuaternion(u),p=f.z,m=-f.x,h=this.treatUrgency,g=t*c(2.6,7,h),_=Math.sin(g)*c(.006,.016,h),v=Math.cos(g)*.03*h;s.hips.lerp(this.treatScratch.set(0,.5,.1),e),s.hipsYaw=c(s.hipsYaw,0,e),s.hipsPitch=c(s.hipsPitch,.14,e),s.hipsRoll=c(s.hipsRoll,0,e),s.shouldersYaw=c(s.shouldersYaw,0,e),s.spinePitch=c(s.spinePitch,.26,e),s.headYaw=c(s.headYaw,Kw(Math.atan2(d.x,d.z-.25),-.6,.6),e),s.headPitch=c(s.headPitch,Kw(Math.atan2(1.12-d.y,Math.hypot(d.x,d.z-.25)),-.5,.6),e),this.kneelLegs(e,n,a,o,.1);let y=this.treatProp===`bottle`,b=y?.3:.08-_;r.position.lerp(this.treatScratch.set(d.x+f.x*b+p*v,d.y+(y?.02:-.07),d.z+f.z*b+m*v),e),y?r.knuckles.lerp(this.treatScratch.set(-f.x,-.25,-f.z),e).normalize():r.knuckles.lerp(this.treatScratch.set(0,1,.05),e).normalize(),r.palm.lerp(y?this.treatScratch.set(0,-1,0):this.treatScratch.set(-f.x,0,-f.z),e).normalize(),r.pole.lerp(this.treatScratch.set(.85*n,-.35,.1),e).normalize();let x=this.treatSide*.135;i.position.lerp(this.treatScratch.set(d.x-p*x+f.x*.05,d.y-.2,d.z-m*x+f.z*.05),e),i.knuckles.lerp(this.treatScratch.set(0,.9,.4),e).normalize(),i.palm.lerp(this.treatScratch.set(p*this.treatSide*.8-f.x*.6,.1,m*this.treatSide*.8-f.z*.6),e).normalize(),i.pole.lerp(this.treatScratch.set(-.85*n,-.4,.1),e).normalize()}applyBreakPose(e,t,n,r){let i=this.torso,a=R.lerp;i.hipsPitch=a(i.hipsPitch,.14,e),i.spinePitch=a(i.spinePitch,.2,e);let o=this.scratchC.set(.48*t,1.22,.52),s=this.scratchD.set(-.48*t,1.22,.52);if(this.breakAimed){let[e,n]=this.breakFighters,r=this.scratch.subVectors(n,e).setY(0).normalize(),i=this.scratchQ.setFromAxisAngle(FD,-this.yaw),a=this.scratchB.set(this.rootX??0,0,this.rootZ);o.copy(e).addScaledVector(r,NT).sub(a).applyQuaternion(i),s.copy(n).addScaledVector(r,-NT).sub(a).applyQuaternion(i),o.x*tpT*.15;let s=this.downResult;if(this.downState!==`falling`){let a=this.riseProgress,c=0;if(this.fallKneel)c=Hx(hT,1,a),OD(s,this.placeKneel(this.downFrom,e),o,c);else if(a0==t>0;return e.hips.set(.02*t,.53,-.06),e.hipsYaw=rS.bladeYaw*t*.3,e.hipsPitch=.24,e.hipsRoll=0,e.shouldersYaw=rS.bladeYaw*t*.2,e.spinePitch=.62,e.headPitch=.48,(r?e.leadHand:e.rearHand).set(n*.13,.66,.2),(r?e.rearHand:e.leadHand).set(.13*t,.66,.37),e.leadFoot.set(.16*t,.125,.32),e.rearFoot.set(-.12*t,.12,-.5),e.leadHeel=0,e.rearHeel=0,e.palmsDown=1,e}placeLying(e){let t=this.boxer.rig.metrics.ankleHeight;return yD(this.landProne?mD(this.downFrom,uD,dD,e,this.landSide,t):mD(this.downFrom,cD,lD,e,this.landSide,t),this.landShift)}placeDown(e,t,n){return mD(e,t,null,n,0,this.boxer.rig.metrics.ankleHeight)}chooseLanding(e){let t=this.boxer.rig.metrics.ankleHeight,n=1/0;for(let r=0;r=n||(n=u.length()+o,this.landProne=s,this.landSide=c,this.landShift.copy(u))}}ropeShift(e,t){let n=this.scratchQ.setFromAxisAngle(FD,this.yaw);rD.set(e.hipsPitch+e.spinePitch*.7,e.hipsYaw,e.hipsRoll,`YXZ`),CD[0].set(0,xD,0).applyEuler(rD).add(e.hips),CD[1].set(.2,SD,0).applyEuler(rD).add(e.hips),CD[2].set(-.2,SD,0).applyEuler(rD).add(e.hips),CD[3].copy(e.leadHand),CD[4].copy(e.rearHand),CD[5].copy(e.leadFoot).z+=e.leadHeel>0?.25:.19,CD[6].copy(e.rearFoot).z+=e.rearHeel>0?.25:.19,CD[7].copy(e.hips);let r=1/0,i=-1/0,a=1/0,o=-1/0;for(let e=0;e0==t>0,c=s?n:r,l=s?r:n;i.pole.lerp(G.set(.15*t,.35,1),e).normalize(),a.pole.lerp(G.set(-.1*t,-1,.3),e).normalize(),i.toe.lerp(G.set(.15*t,0,1),e).normalize(),a.toe.lerp(G.set(0,-.35,-1),e).normalize(),c.palm.lerp(G.set(-o*.75,0,-.65),e).normalize(),c.knuckles.lerp(G.set(-o*.35,.25,.9),e).normalize(),c.pole.lerp(G.set(o*.9,-.35,-.25),e).normalize(),l.palm.lerp(G.set(0,-1,.1),e).normalize(),l.knuckles.lerp(G.set(.2*t,-.2,1),e).normalize(),l.pole.lerp(G.set(t*.7,.1,-.7),e).normalize()}writeDown(e,t,n,r,i,a,o,s){let c=this.torso,l=1-s;this.downStand=s,c.hips.copy(e.hips),c.hipsYaw=e.hipsYaw,c.hipsPitch=e.hipsPitch,c.hipsRoll=e.hipsRoll,c.shouldersYaw=e.shouldersYaw,c.spinePitch=e.spinePitch,c.spineRoll=c.spineRoll*s+e.spineRoll,c.headPitch=e.headPitch,c.headYaw=c.headYaw*s+e.turn,c.headRoll=c.headRoll*s+e.headRoll,c.headOffset.multiplyScalar(s),c.headOffset.z-=o,n.position.copy(e.leadHand),r.position.copy(e.rearHand),oD(n,t,e.palmsDown,l),oD(r,-t,e.palmsDown,l),i.position.copy(e.leadFoot),a.position.copy(e.rearFoot),i.toe.lerp(YE.set(.2*t,0,1).normalize(),l).normalize(),a.toe.lerp(YE.set(-.2*t,0,1).normalize(),l).normalize(),i.heel=e.leadHeel,a.heel=e.rearHeel;let u=YE.set(0,0,1).applyEuler(rD.set(e.hipsPitch,e.hipsYaw,e.hipsRoll,`YXZ`));if(i.pole.lerp(u,l),a.pole.lerp(u,l),e.ownJoints>0){let t=e.ownJoints*l;_D(i.pole,e.leadKnee,t),_D(a.pole,e.rearKnee,t),_D(n.pole,e.leadElbow,t),_D(r.pole,e.rearElbow,t),_D(n.knuckles,e.leadKnuckles,t),_D(n.palm,e.leadPalm,t),_D(r.knuckles,e.rearKnuckles,t),_D(r.palm,e.rearPalm,t)}}calmInjuries(){this.armLimp.fill(0),this.armSnap.fill(0),this.kneeGive.fill(0),this.lostLean=0,this.cover=0,this.hunch=0,this.curl=0,this.faint=0,this.retching=0,this.daze=0,this.stepPace.fill(1),this.stepLift.fill(1),this.stepSlack=1,this.hurt=!1,this.dropDangles()}dropDangles(){for(let e=0;e<2;e+=1)this.armDangle[e].live=!1,this.forearmDangle[e].live=!1}stepInjuries(e){this.retchTime=Math.max(0,this.retchTime-e);let t=this.posedInjuries>1||this.faintTarget>0||this.retchTime>0||this.dazed;if(!t&&!this.hurt)return;let n=this.downState===`up`,r=0;for(let t=0;t<2;t+=1){let n=this.armCarry[t];this.armLimp[t]=Ww(this.armLimp[t],+(n===`dead`||n===`gone`),pE,e),this.armSnap[t]=Ww(this.armSnap[t],+(n===`snapped`),pE,e),this.kneeGive[t]=Ww(this.kneeGive[t],+!!this.kneeBlown[t],8,e),r=Math.max(r,this.armLimp[t],this.armSnap[t],this.kneeGive[t])}let i=this.armCarry[0],a=this.armCarry[1],o=i===`whole`||i===`stump`,s=a===`whole`||a===`stump`;this.cover=Ww(this.cover,o===s?0:o?1:-1,6,e),this.lostLean=Ww(this.lostLean,(i===`gone`)-+(a===`gone`),4,e),this.hunch=Ww(this.hunch,+!!this.gutted,5,e),this.curl=Ww(this.curl,+!!this.liver,4,e),this.faint=Ww(this.faint,this.faintTarget,2.5,e);let c=this.retchTime>0&&n;this.retching=Ww(this.retching,+!!c,c?12:5,e);let l=this.dazed&&n;if(this.daze=Ww(this.daze,+!!l,l?8:5,e),this.dazeTime=this.daze>.001?this.dazeTime+e:0,r=Math.max(r,Math.abs(this.cover),Math.abs(this.lostLean),this.hunch,this.curl,this.faint,this.retching,this.daze),!t&&r<.001){this.calmInjuries();return}this.hurt=!0;let u=this.hunch,d=this.faint,f=this.daze;this.stepSlack=(1-.3*u)*(1-.55*f);for(let e=0;e<2;e+=1){let t=this.kneeGive[e],n=this.kneeGive[1-e];this.stepPace[e]=(1-.4*n)*(1+.25*t)*(1-.25*u)*(1+.15*d)*(1+.2*f),this.stepLift[e]=(1-.5*t)*(1-.6*u)*(1-.75*d)*(1-.4*f)}}stepDeath(e){if(!(!this.dead||this.throe>=fE.length))for(this.deathAge+=e;this.throe=fE[this.throe].at;){let e=fE[this.throe];this.ragdoll?.twitch(e.part,(this.throe+this.throeSide)%2,e.speed),this.throe+=1}}stumble(e,t,n){let r=this.dazeTime;t.add(this.scratchD.set(Math.sin(r*1.7+e*2.1)*.07,0,Math.sin(r*1.25+e*1.3)*.06).multiplyScalar(this.daze).applyAxisAngle(FD,n))}applyHurtStance(e,t,n,r,i){let a=this.torso,o=0,s=0,c=0,l=this.hunch;l>.001&&(s+=.3*l,o+=.045*l,a.hipsPitch+=.06*l,a.headPitch+=.12*l);let u=this.curl;u>.001&&(s+=.1*u,a.spineRoll+=.21*u,a.headRoll+=.08*u,c+=.02*u,this.hand.R.position.y-=.08*u);let d=this.lostLean;Math.abs(d)>.001&&(a.spineRoll+=.15*d,c+=.025*d,a.headRoll-=.05*d);let f=this.faint;if(f>.001){let t=Math.sin(e*1.15),i=Math.sin(e*.83+1.3);a.hips.x+=t*.09*f,a.hips.z+=i*.06*f,a.hipsRoll+=t*.05*f,a.spineRoll+=Math.sin(e*1.15-.7)*.2*f,s+=(.17+i*.06)*f,o+=.03*f+(.06+.04*(.5+.5*Math.sin(e*2.6)))*f*f,a.headPitch+=(.4+Math.sin(e*.9+.4)*.14)*f,a.headRoll+=Math.sin(e*.7)*.36*f,a.headYaw+=Math.sin(e*.53+2)*.18*f,n.position.y-=.32*f,r.position.y-=.27*f,n.position.z-=.07*f}for(let e=0;e<2;e+=1){let t=this.kneeGive[e];if(t<=.001)continue;let n=e===0?1:-1,r=e===0?this.foot.L:this.foot.R,i=e===0?this.foot.R:this.foot.L,s=this.feet[1-e],c=s.stepping?Math.sin(s.progress*Math.PI)*t:0,l=t-c;a.hips.x+=(i.position.x-a.hips.x)*.25*l,a.hips.z+=(i.position.z-a.hips.z)*.18*l,o+=.085*c+.01*l,a.hipsRoll-=n*.16*c,a.spineRoll+=n*.13*c,r.heel+=.3*l,r.pole.x-=n*(.35*t+.9*c),r.pole.normalize()}if(a.hips.x+=Math.cos(a.hipsYaw)*c,a.hips.z-=Math.sin(a.hipsYaw)*c,o!==0||s!==0){a.hips.y-=o,a.spinePitch+=s;let e=o+s*FE,t=s*PE;i.y-=e,i.z+=t,n.position.y-=e,n.position.z+=t,r.position.y-=e,r.position.z+=t}let p=this.cover;if(Math.abs(p)>.001){let e=p>0?this.hand.L:this.hand.R,n=Math.abs(p);e.position.x+=(IE*t-e.position.x)*.7*n,e.position.y+=.03*n,e.position.z+=.03*n}}applyHurtActs(e,t,n,r){let i=this.torso,a=R.lerp,o=+(t>0),s=this.armCarry[o]===`whole`?o:this.armCarry[1-o]===`whole`?1-o:-1,c=this.retching*(1-.7*this.punchCommit);if(c>.001){let t=Math.max(0,Math.sin(e*10.5))**2;i.hips.y=a(i.hips.y,rS.hipsHeight-.13-t*.02,c),i.hips.z=a(i.hips.z,-.08,c),i.hipsPitch=a(i.hipsPitch,.36,c),i.spinePitch=a(i.spinePitch,.78+t*.12,c),i.spineRoll=a(i.spineRoll,0,c),i.headPitch=a(i.headPitch,1.3+t*.15,c),i.headYaw=a(i.headYaw,0,c),i.headRoll=a(i.headRoll,0,c),i.headOffset.multiplyScalar(1-c);let n=s<0?o:1-s;if(this.armCarry[n]===`whole`){let e=n===0?1:-1,t=n===0?this.hand.L:this.hand.R;t.position.lerp(G.set(e*.19,.62,n===o?-.02:.15),c),t.pole.lerp(G.set(e*.9,.1,-.4),c).normalize(),t.knuckles.lerp(G.set(-e*.2,-.7,.6),c).normalize(),t.palm.lerp(G.set(0,-.6,-.8),c).normalize()}}let l=Math.max(Math.abs(this.slip),this.weave,this.pull),u=Kw(1-this.guardHigh-this.guardLow,0,1)*(1-this.punchCommit)*(1-l)*(1-this.clinchWeight),d=this.punchActive&&s===(this.punchHand===`left`?0:1)?Kw(this.punchReach*4,0,1):0,f=Math.max(c,this.hunch*u)*(1-d);f>.001&&s>=0&&this.clutchBelly(s,f);let p=this.daze;if(p>.001){let e=this.dazeTime,o=Hx(.7,1.6,e),s=Math.sin(e*2.2),c=Math.sin(e*1.45+.9),l=rS.bladeYaw*t;i.hips.x=a(i.hips.x,s*.06,p),i.hips.z=a(i.hips.z,c*.045,p),i.hips.y=a(i.hips.y,rS.hipsHeight-.08-Math.sin(e*4.4+1)*.02,p),i.hipsYaw=a(i.hipsYaw,l*.8,p),i.hipsPitch=a(i.hipsPitch,.04,p),i.hipsRoll=a(i.hipsRoll,s*.05,p),i.shouldersYaw=a(i.shouldersYaw,l*.65,p),i.spinePitch=a(i.spinePitch,.24+c*.07,p),i.spineRoll=a(i.spineRoll,Math.sin(e*2.2-.9)*.13,p),i.headYaw=a(i.headYaw,o*Math.sin(e*1.1+2)*.3,p),i.headPitch=a(i.headPitch,.95-o*(.28+Math.sin(e*1.3)*.25),p),i.headRoll=a(i.headRoll,o*Math.sin(e*1.9)*.42,p),i.headOffset.multiplyScalar(1-p),n.heel=a(n.heel,0,p),r.heel=a(r.heel,0,p)}}clutchBelly(e,t){let n=this.torso,r=e===0?this.hand.L:this.hand.R,i=e===0?1:-1,a=n.hipsYaw+(n.shouldersYaw-n.hipsYaw)*.25,o=n.hipsPitch+n.spinePitch*.2;r.position.lerp(G.set(i*.05,.17,.19+o*.08).applyAxisAngle(FD,a).add(n.hips),t),r.knuckles.lerp(G.set(-i*.9,-.3,.2).applyAxisAngle(FD,a),t).normalize(),r.palm.lerp(G.set(-i*.1,.15,-1).applyAxisAngle(FD,a),t).normalize(),r.pole.lerp(G.set(i*.85,-.35,-.4).applyAxisAngle(FD,a),t).normalize()}dangleArms(e){let t=this.daze,n=this.boxer.rig,r=n.bones;Px(r.hips,this.trunkLow),Px(r.upperChest,this.trunkHigh),this.trunkLow.addScaledVector(LE.subVectors(this.trunkLow,this.trunkHigh).normalize(),jE);let i=this.ragdoll?.handingOver===!0;for(let a=0;a<2;a+=1){let o=Math.max(this.armLimp[a],t),s=this.armSnap[a],c=this.armDangle[a],l=this.forearmDangle[a];if(o<=.001&&(c.live=!1),s<=.001&&(l.live=!1),o<=.001&&s<=.001)continue;let u=a===0,d=u?1:-1,f=u?r.shoulderL:r.shoulderR,p=u?r.elbowL:r.elbowR,m=u?r.gloveL:r.gloveR,h=u?n.metrics.armL:n.metrics.armR;if(o>.001){let t=Px(m,RE);if(Fx(m,qE),this.armCarry[a]===`dead`){let e=Px(f,zE);e.y-=mE*this.armLimp[a],n.aimAt(u?r.clavicleL:r.clavicleR,e,`z`),f.updateWorldMatrix(!1,!1)}let s=Px(f,zE),l=(h.upper+h.lower)*hE;if(!c.live){let e=o>kE&&!i;uE(c,e?LE.set(s.x,s.y-l,s.z):t,s),e&&this.holdDangle(c.at,s,l,!1,null)}let g=this.punchActive&&this.punchHand===`left`===u?this.punchReach:0;this.swing(c,s,l,!1,e,gE,_E,t,g*yE);let _=BE.set(d*.3,.15+3*Kw(1-s.y/NE,0,1),-1).lerp(u?this.hand.L.pole:this.hand.R.pole,1-o).applyAxisAngle(FD,this.yaw);n.solveLimb(f,p,h,t.lerp(c.at,o),_,`z`,u?1:-1,.012),m.updateWorldMatrix(!1,!1),Ix(VE.subVectors(Px(m,RE),Px(p,LE)).normalize(),BE.set(-d,0,.2).applyAxisAngle(FD,this.yaw),`z`,JE),n.setWorldRotation(m,qE.slerp(JE,o))}if(s>.001){let t=Px(p,zE),r=Px(m,RE);Fx(m,qE);let a=Math.max(0,-(t.y-Px(f,LE).y)/h.upper),o=Kw((t.y-ME)/h.lower,0,1),c=KE.set(d*(bE+xE*a*a),-o,0).applyAxisAngle(FD,this.yaw).normalize();l.live||(uE(l,s>kE&&!i?LE.set(t.x,t.y-h.lower,t.z):r,t),this.holdDangle(l.at,t,h.lower,!0,c)),this.swing(l,t,h.lower,!0,e,gE,vE,null,0,c);let u=VE.subVectors(r,t).lerp(LE.subVectors(l.at,t),s).normalize(),g=BE.setFromMatrixColumn(p.matrixWorld,2).lerp(LE.setFromMatrixColumn(p.matrixWorld,0).multiplyScalar(d),s);n.setWorldFrame(p,u,g,`z`),m.updateWorldMatrix(!1,!1),Ix(LE.copy(u).addScaledVector(ZE,.9).normalize(),BE.set(-d,.2,-.4).applyAxisAngle(FD,this.yaw),`z`,JE),n.setWorldRotation(m,qE.slerp(JE,s))}}}swing(e,t,n,r,i,a,o,s,c,l=null){let u=e.at,d=e.velocity;(e.carried||t.distanceToSquared(e.pivot)>OE*OE)&&(u.add(t).sub(e.pivot),d.set(0,0,0),e.pivot.copy(t),e.carried=!1);let f=i>0?Math.min(EE,Math.ceil(i/TE)):0,p=f>0?i/f:0;for(let i=1;i<=f;i+=1)HE.copy(u),d.addScaledVector(a,p),s!==null&&c>0&&d.addScaledVector(UE.subVectors(s,u),c*p),d.multiplyScalar(Math.exp(-o*p)),u.addScaledVector(d,p),this.holdDangle(u,UE.lerpVectors(e.pivot,t,i/f),n,r,l),d.subVectors(u,HE).divideScalar(p).clampLength(0,DE);f===0&&this.holdDangle(u,t,n,r,l),e.pivot.copy(t)}holdDangle(e,t,n,r,i){let a=this.trunkLow,o=WE.subVectors(this.trunkHigh,a);for(let s=0;s<2;s+=1){let s=Kw(GE.subVectors(e,a).dot(o)/Math.max(1e-6,o.lengthSq()),0,1),c=GE.addScaledVector(o,-s).length();c1e-4&&e.addScaledVector(GE,(AE-c)/c),e.y=Math.max(e.y,ME);let l=GE.subVectors(e,t),u=l.length();if(u<1e-6?e.set(t.x,t.y-n,t.z):(r||u>n)&&e.copy(t).addScaledVector(l,n/u),i===null)continue;l.subVectors(e,t);let d=l.dot(i);if(d>=n*CE)continue;let f=l.addScaledVector(i,-d).length();e.copy(t).addScaledVector(i,n*(f>1e-6?CE:1)),f>1e-6&&e.addScaledVector(l,n*wE/f)}}applyDislocation(){if(this.dislocation!==`jaw`)return;let e=this.boxer.bone(`head`);e!==null&&(e.quaternion.multiply(sE),e.updateWorldMatrix(!1,!0))}dispose(){this.stool.dispose(),this.enswell.dispose(),this.bottle.dispose(),this.boxer.dispose()}},ET=.44,DT=.2,OT=.75,kT=.94,AT=.836,jT=.12,MT=1.72,NT=.2,PT=1.26,FT=48,IT=14,LT=1.34,RT=80,zT=56,BT=24,VT=4,HT=1.5,UT=60,WT=4,GT=.15,KT=.8,qT=1.3,JT=.35,YT=.93,XT=500,ZT=900,QT=.15,$T=.05,eE=.07,tE=.14,nE=.05,rE=.2,iE=.04,aE=.36;function oE(e){let t=7;for(let n=0;nMath.atan2(Math.sin(e),Math.cos(e)),gD=new B;function _D(e,t,n){if(n<=0)return e;e.normalize();let r=e.angleTo(t);return r<1e-4?e:(gD.crossVectors(e,t),gD.lengthSq()<1e-8&&gD.crossVectors(e,Math.abs(e.y)<.9?FD:XE),e.applyAxisAngle(gD.normalize(),r*Math.min(1,n)))}function vD(e,t,n,r){let i=t+hD(e.x-t),a=n+hD(e.y-n),o=r+hD(e.z-r),s=t+hD(Math.PI-e.x-t),c=n+hD(e.y+Math.PI-n),l=r+hD(e.z+Math.PI-r);return Math.abs(i-t)+Math.abs(a-n)+Math.abs(o-r)<=Math.abs(s-t)+Math.abs(c-n)+Math.abs(l-r)?e.set(i,a,o,`YXZ`):e.set(s,c,l,`YXZ`)}function yD(e,t){return e.hips.add(t),e.leadHand.add(t),e.rearHand.add(t),e.leadFoot.add(t),e.rearFoot.add(t),e}var bD=ev*.72-.05,xD=.78,SD=.5,CD=Array.from({length:8},()=>new B),wD=[.17,.22,.22,.13,.13,.12,.12,.2],TD=[[!1,1,0],[!1,0,.15],[!1,-1,.3],[!0,1,.4],[!0,0,.5],[!0,-1,.6]];function ED(e,t){return e<-bD&&t>bD?-(e+t)/2:e<-bD?-bD-e:t>bD?bD-t:0}function DD(e,t){return OD(e,t,t,0)}function OD(e,t,n,r){let i=R.lerp;return e.hips.copy(t.hips).lerp(n.hips,r),e.hipsYaw=i(t.hipsYaw,n.hipsYaw,r),e.hipsPitch=i(t.hipsPitch,n.hipsPitch,r),e.hipsRoll=i(t.hipsRoll,n.hipsRoll,r),e.shouldersYaw=i(t.shouldersYaw,n.shouldersYaw,r),e.spinePitch=i(t.spinePitch,n.spinePitch,r),e.spineRoll=i(t.spineRoll,n.spineRoll,r),e.headPitch=i(t.headPitch,n.headPitch,r),e.headRoll=i(t.headRoll,n.headRoll,r),e.leadHand.copy(t.leadHand).lerp(n.leadHand,r),e.rearHand.copy(t.rearHand).lerp(n.rearHand,r),e.leadFoot.copy(t.leadFoot).lerp(n.leadFoot,r),e.rearFoot.copy(t.rearFoot).lerp(n.rearFoot,r),e.leadHeel=i(t.leadHeel,n.leadHeel,r),e.rearHeel=i(t.rearHeel,n.rearHeel,r),e.palmsDown=i(t.palmsDown,n.palmsDown,r),e.turn=i(t.turn,n.turn,r),_D(e.leadKnee.copy(t.leadKnee),n.leadKnee,r),_D(e.rearKnee.copy(t.rearKnee),n.rearKnee,r),_D(e.leadElbow.copy(t.leadElbow),n.leadElbow,r),_D(e.rearElbow.copy(t.rearElbow),n.rearElbow,r),_D(e.leadKnuckles.copy(t.leadKnuckles),n.leadKnuckles,r),_D(e.leadPalm.copy(t.leadPalm),n.leadPalm,r),_D(e.rearKnuckles.copy(t.rearKnuckles),n.rearKnuckles,r),_D(e.rearPalm.copy(t.rearPalm),n.rearPalm,r),e.ownJoints=i(t.ownJoints,n.ownJoints,r),e}var kD=3;function AD(e,t,n){if(n===null)return null;let r=t+n;return e===null||Math.abs(r-e)>kD?r:e}function jD(e){return(1-Hx(zT,RT,e))*Hx(VT,BT,e)}function MD(){let e=new tc;e.name=`enswell`,e.visible=!1;let t=new Iu(3.2,3.2,.9,20),n=new Iu(.8,.8,6,10),r=new jd({color:13159634,roughness:.3,metalness:.9}),i=new H(t,r);i.rotation.x=Math.PI/2,i.position.set(0,9.5,3.4),e.add(i);let a=new H(n,r);return a.position.set(0,5.5,2.4),e.add(a),{group:e,dispose:()=>{t.dispose(),n.dispose(),r.dispose()}}}function ND(){let e=new tc;e.name=`bottle`,e.visible=!1;let t=new Iu(3.3,3.3,15,18),n=new Iu(1.3,3.3,3,18),r=new Iu(.7,1.1,3.2,10),i=new jd({color:14280430,roughness:.32,metalness:0}),a=new jd({color:1920728,roughness:.5,metalness:0}),o=new H(t,i);o.position.set(0,9,2.6);let s=new H(n,i);s.position.set(0,18,2.6);let c=new H(r,a);return c.position.set(0,21,2.6),e.add(o,s,c),{group:e,dispose:()=>{t.dispose(),n.dispose(),r.dispose(),i.dispose(),a.dispose()}}}function PD(){let e=new tc;e.name=`stool`,e.visible=!1;let t=new Iu(.17,.17,.035,18),n=new Iu(.012,.014,.42,8),r=new jd({color:13222581,roughness:.85}),i=new jd({color:2764083,roughness:.45,metalness:.6}),a=new H(t,r);a.position.y=.4225,a.castShadow=!0,e.add(a);for(let t=0;t<4;t+=1){let r=Math.PI/4+t*Math.PI/2,a=new H(n,i);a.position.set(Math.cos(r)*.13,.42/2,Math.sin(r)*.13),a.rotation.set(-Math.sin(r)*.12,0,Math.cos(r)*.12),a.castShadow=!0,e.add(a)}return{group:e,dispose:()=>{t.dispose(),n.dispose(),r.dispose(),i.dispose()}}}var FD=new B(0,1,0),ID=6,LD=3,RD=1.5,zD=2.5,BD=1.5,VD=.55,HD=2.1,UD=.42,WD=.22,GD=.08,KD=.15,qD=.42,JD=.12,YD=.5,XD=.5,ZD=new Set([`hit`,`counter_hit`,`block`,`perfect_block`,`referee_hit`]),QD=new Set([`slip_left`,`slip_right`,`weave`,`pull`]),$D=40,eO=y/a,tO=.12,nO=30,rO=2;function iO(e,t,n){if(e0;case`forearm_left`:return t===`glove_left`||o&&Qg(r,i,a,1)>0;case`forearm_right`:return t===`glove_right`||o&&Qg(r,i,a,-1)>0;case`arm_left`:return t===`glove_left`||o&&$g(r,i,a,1)>0;case`arm_right`:return t===`glove_right`||o&&$g(r,i,a,-1)>0;case`leg_left`:return r>=0&&(t===`shoes`||o&&i<60);case`leg_right`:return r<0&&(t===`shoes`||o&&i<60);case`upper_body`:return t===`head`||t===`glove_left`||t===`glove_right`||o&&e_(r,i,a)>0;case`torso`:return t===`pants`||o&&i>=60&&$g(r,i,a,1)<=0&&$g(r,i,a,-1)<=0}}var sO={head:`BoxerHead`,body:`BoxerBody`,glove_left:`BoxerGloveLeft`,glove_right:`BoxerGloveRight`,pants:`BoxerPants`,shoes:`BoxerShoes`},cO=new WeakMap;function lO(e,t){let n=cO.get(e);if(n===void 0){n={};let t=new Map(Object.entries(sO).map(([e,t])=>[t,e]));e.root.traverse(e=>{let r=e instanceof Hl?t.get(e.name):void 0;r!==void 0&&(n[r]=e)}),cO.set(e,n)}return n[t]??null}var uO=[`left`,`right`],dO=new B(0,1,0),fO=new B(0,-1,0),pO=15129792,mO=6032400,hO=9313310,gO=4982537,_O=14200392,vO=2228997,yO=14263970,bO=8270912,xO=11618383,SO=15524550,CO=12866653,wO=13602176,TO=9384504,EO=new V,DO=new V,OO=new B,kO=R.smoothstep;function AO(e,t){e.deleteAttribute(`uv`);let n=e.getAttribute(`position`),r=new Float32Array(n.count*3);for(let e=0;eo/2-.001){let t=Math.atan2(OO.z,OO.x);OO.y+=i<1e-4?-n*.8:n*(.5*Math.sin(t*3+e[1])+.35*Math.sin(t*5+e[2]))}c.setXYZ(t,OO.x,OO.y+o/2,OO.z*r)}return s.computeVertexNormals(),AO(s,(t,r)=>{let i=1-kO(t.y/o,.15,.42)*(.85+.15*Math.sin(Math.atan2(t.z,t.x)*4+e[0]));r.setHex(pO).lerp(DO.setHex(gO),i),Math.hypot(t.x,t.z)o*.5&&r.setHex(mO)}),s.applyQuaternion(new rs().setFromUnitVectors(dO,a.normalize())),s.translate(i.x,i.y,i.z),s}function NO(e,t,n,r=!1){return AO(new bd(new Ju(e.map(e=>new B(...e)),r),e.length*5,t,7,r),n)}var PO=[0,123.6,-3.2],FO=[4.5,4,5];function IO(){let e=new _d(1,40,24,0,Math.PI*2,0,Math.PI*.6),t=e.getAttribute(`position`),n=new Float32Array(t.count);for(let e=0;e{let i=n[r];r+=1,t.setHex(bO).lerp(DO.setHex(yO),kO(i,-.5,.45)),(i<-1||Math.sin(e.x*.9+e.z*1.3)>.72)&&t.lerp(DO.setHex(hO),.7)})}function LO(){let e=[[1,.2,pO],[.9,0,pO],[.82,0,mO],[.74,0,pO],[.66,-.9,gO]],t=[],n=[],r=[];for(let[i,[a,o,s]]of e.entries())for(let e=0;e<32;e+=1){let c=e/32*Math.PI*2;if(t.push(Math.cos(c)*5.6*a,124+o,-3.3+Math.sin(c)*6.4*a),EO.setHex(s).multiplyScalar(.85+.15*Math.sin(c*11+i)),n.push(EO.r,EO.g,EO.b),i===0)continue;let l=(e+1)%32;r.push((i-1)*32+e,i*32+e,(i-1)*32+l,(i-1)*32+l,i*32+e,i*32+l)}let i=new il;return i.setAttribute(`position`,new Kc(t,3)),i.setAttribute(`color`,new Kc(n,3)),i.setIndex(r),i.computeVertexNormals(),i}var RO=[0,112.9,-.4],zO=9,BO=new B(0,-.93,.37).normalize(),VO=.95;function HO(){let e=new Pu(1.5,6,6,16,8),t=e.getAttribute(`position`);for(let e=0;e0?.5*(1-kO(r,0,.45)):0,a=.5*Math.sin(n*5)*(1-n);t.setXYZ(e,OO.x*R.lerp(.9,1.1,Math.sin(n*Math.PI))+a*.4,OO.y-zO/2,(OO.z-i)*.3+.35*r*r+1.3*n*n)}return e.computeVertexNormals(),AO(e,(e,t)=>{let n=-e.y/zO,r=Math.sin(e.y*2.6+e.x*2.1)*Math.sin(e.x*3.3-e.y*1.2);t.setHex(CO).multiplyScalar(.8+.2*r).lerp(DO.setHex(gO),.8*(1-kO(n,0,.35))),(r>.45||n>.88)&&t.lerp(DO.setHex(hO),.65)})}function UO(){let e=[],t=new _d(1,18,12,Math.PI,Math.PI);t.scale(3.3,2.5,3.2),t.translate(0,113.3,-.5),e.push(AO(t,(e,t)=>{t.setHex(vO).lerp(DO.setHex(hO),kO(Math.hypot(e.x,e.y-112.6,(e.z+3)*.7),.7,2.6))}));let n=new Fu(1,20);n.rotateX(Math.PI/2),n.scale(3.3,1,3.9),n.translate(0,115.25,.5),e.push(AO(n,(e,t)=>{t.setHex(TO).multiplyScalar(.75+.25*Math.sin(e.z*5)).lerp(DO.setHex(vO),1-kO(e.z,-3,.5))}));let r=[];for(let t=0;t<14;t+=1){let n=-1.75+t/13*3.5,i=1-Math.abs(n)/1.75,a=t===4||t===9?1.35:R.lerp(.85,1.2,i),o=new Iu(.3,t===4||t===9?.16:.37,a,6);o.scale(1,1,R.lerp(1.15,.55,i)),o.rotateY(n);let s=Math.sin(n)*2.75,c=.9+Math.cos(n)*3.1;o.translate(s,114.9-a/2,c),e.push(AO(o,(e,t)=>{t.setHex(SO).lerp(DO.setHex(hO),.8*kO(e.y,114.3,114.9))})),r.push([s,114.95,c])}return e.push(NO(r,.45,xO)),jO(e)}function WO(e){return jO([MO([e*29.4,103.8,-4.2],[e*32.9,104.1,-4],.85),MO([e*29.4,102,-6.2],[e*32.3,101.8,-6.5],.7)])}function GO(e){let t=new _d(1,12,9);return t.scale(.9,1.7,1.5),t.translate(e*13.3,103.4,-5.5),AO(t,(e,t)=>{t.setHex(15327954).lerp(DO.setHex(hO),Math.sin(e.y*3.1+e.z*2.3)>.4?.75:.1)})}function KO(){return jO([AO(new Iu(2,2.1,1.8,10).translate(0,80.4,-5.4),pO),AO(new Iu(1.8,1.8,.6,10).translate(0,81.6,-5.4),12563866),MO([0,81.9,-5.4],[.4,85.4,-5.8],1.9),NO([[.2,84.6,-5.6],[.3,86.6,-5.8],[.9,87.8,-5.2]],.55,15255984),NO([[-6.5,81.6,.5],[-3,82.6,3.6],[1.5,81.8,4.4],[6,82.8,2],[7,81.6,-2],[3.5,82.9,-1],[-1,81.7,.6],[-5,82.9,-2.6],[-7.2,81.5,-4]],1.25,wO,!0),NO([[4.5,83.6,1.6],[1,84.4,2.4],[-3,83.5,.6],[-2,84.2,-2.6],[2.5,83.6,-2.2]],1.05,12548720,!0),AO(new _d(1,10,7).scale(3.2,1.6,2.6).translate(-6,82.2,1.5),4854808)])}function qO(e){return jO(f_.map((t,n)=>{let r=new B(-t[0],0,-2-t[2]).normalize();return MO([e*(t[0]+r.x*3),t[1]-.3,t[2]+r.z*3],[e*(t[0]-r.x*1.3),t[1]+.7-.3*n,t[2]-r.z*1.3+.7],.75,.5)}))}function JO(){let e=[];for(let t=0;t<5;t+=1){let n=.5+t*1.26,r=Math.cos(n),i=Math.sin(n);e.push(MO([r*5.8,99.5+i*5.8,3.9],[r*2.9,99.5+i*2.9,2.4],.7,.5)),e.push(MO([i*5.6,99.5-r*5.6,-9.6],[i*4.3,99.5-r*4.3,-12.8],.7,.5))}return jO(e)}var YO=new B,XO=new B,ZO=new B,QO=new B,$O=new WeakMap;function ek(e,t,n){let r=e.getAttribute(`position`),i=e.getAttribute(`skinIndex`),a=e.getAttribute(`skinWeight`),o=new Map,s=new B;for(let e of t)o.has(e)||(o.set(e,o.size),s.add(OO.fromBufferAttribute(r,e)));s.multiplyScalar(1/o.size);let c=n.layers.length,l=[],u=[],d=[],f=[],p=new Map;for(let e of o.keys()){for(let[t,[o,c]]of n.layers.entries()){n.place(OO.fromBufferAttribute(r,e),s,o,YO),l.push(YO.x,YO.y,YO.z),EO.setHex(c).multiplyScalar(.8+.4*Math.abs(Math.sin(e*12.9898+t*4.1))),u.push(EO.r,EO.g,EO.b);for(let t=0;t<4;t+=1)d.push(i.getComponent(e,t)),f.push(a.getComponent(e,t))}for(let t=0;t<4;t+=1)p.set(i.getComponent(e,t),(p.get(i.getComponent(e,t))??0)+a.getComponent(e,t))}let m=o.size*c;if(n.middle!==null){n.place(s,s,1,YO),l.push(YO.x,YO.y,YO.z),EO.setHex(n.middle),u.push(EO.r,EO.g,EO.b);let e=[...p].sort((e,t)=>t[1]-e[1]).slice(0,4),t=e.reduce((e,[,t])=>e+t,0);for(let n=0;n<4;n+=1)d.push(e[n]?.[0]??0),f.push((e[n]?.[1]??0)/t)}let h=[],g=(e,t,r)=>{YO.fromArray(l,e*3),XO.fromArray(l,t*3),ZO.fromArray(l,r*3),n.facing(OO.copy(YO).add(XO).add(ZO).multiplyScalar(1/3),s,QO);let i=XO.sub(YO).cross(ZO.sub(YO)).dot(QO)>=0;h.push(e,i?t:r,i?r:t)};for(let e=0;evoid a.copy(n).lerp(r,i).addScaledVector(e,-t*i),facing:(t,n,r)=>void r.copy(e),middle:vO}}var nk={layers:[[0,gO],[.4,gO],[1,vO]],place:(e,t,n,r)=>void r.set(R.lerp(e.x,t.x,.22*n),R.lerp(e.y,t.y,.22*n),R.lerp(e.z,t.z-Math.sign(e.z-t.z)*.6,n)),facing:(e,t,n)=>void n.set(t.x-e.x,t.y-e.y,0),middle:null},rk={nose:{bone:`head`,mesh:`head`,at:[0,117,5.3],axis:[0,-.3,1]},mouth:{bone:`head`,mesh:`head`,at:[0,114.3,4.6],axis:[0,-.35,1]},eye_left:{bone:`head`,mesh:`head`,at:b_[0],axis:[.2,0,1]},eye_right:{bone:`head`,mesh:`head`,at:b_[1],axis:[-.2,0,1]},ear_left:{bone:`head`,mesh:`head`,at:d_,axis:[1,-.2,0]},ear_right:{bone:`head`,mesh:`head`,at:[-d_[0],d_[1],d_[2]],axis:[-1,-.2,0]},skull:{bone:`head`,mesh:`head`,at:[0,127.5,-3],axis:[0,1,0]},neck:{bone:`neck`,mesh:`body`,at:[0,109,-2],axis:[0,1,0]},shoulder_left:{bone:`clavicleL`,mesh:`body`,at:[15,103.5,-5.5],axis:[1,0,0]},shoulder_right:{bone:`clavicleR`,mesh:`body`,at:[-15,103.5,-5.5],axis:[-1,0,0]},elbow_left:{bone:`shoulderL`,mesh:`body`,at:[31,102.8,-5.2],axis:[1,0,0]},elbow_right:{bone:`shoulderR`,mesh:`body`,at:[-31,102.8,-5.2],axis:[-1,0,0]},chest:{bone:`chest`,mesh:`body`,at:[0,99.5,5.6],axis:[0,0,1]},ribs_left:{bone:`chest`,mesh:`body`,at:f_[1],axis:[1,0,.3]},ribs_right:{bone:`chest`,mesh:`body`,at:[-f_[1][0],f_[1][1],f_[1][2]],axis:[-1,0,.3]},liver:{bone:`chest`,mesh:`body`,at:[-8.5,89.5,4.4],axis:[-.5,0,1]},belly:{bone:`spine`,mesh:`body`,at:h_,axis:[0,-.2,1]},waist:{bone:`spine`,mesh:`body`,at:[0,81.5,-1],axis:[0,1,0]},crotch:{bone:`hips`,mesh:`body`,at:[0,72,2],axis:[0,-1,.15]},knee_left:{bone:`kneeL`,mesh:`body`,at:m_,axis:[1,0,.2]},knee_right:{bone:`kneeR`,mesh:`body`,at:[-m_[0],m_[1],m_[2]],axis:[-1,0,.2]}},ik=[`skull`,`maw`,`chest`,`waist`,...uO.flatMap(e=>[`fracture`,`ribs`,`knee`,`elbow`,`shoulder`].map(t=>`${t}_${e}`))],ak={left:{sign:1,bone:`L`,ear:`leftEar`,face:`leftFace`,cheek:`leftCheek`,eye:`leftEye`,arm:`leftArm`,shoulder:`leftShoulder`,elbow:`leftElbow`,ribs:`leftRibs`,knee:`leftKnee`,smear:`leftShoulderSmear`},right:{sign:-1,bone:`R`,ear:`rightEar`,face:`rightFace`,cheek:`rightCheek`,eye:`rightEye`,arm:`rightArm`,shoulder:`rightShoulder`,elbow:`rightElbow`,ribs:`rightRibs`,knee:`rightKnee`,smear:`rightShoulderSmear`}},ok=class{boxer;headRaises=[];bodyRaises=[];gloveGone={left:!1,right:!1};eyeOut={left:!1,right:!1};eyeShut={left:!1,right:!1};gloved;flesh;owned=[];tongueTip=new B;tongueVelocity=new B;root=new B;rest=new B;reach=new B;matrix=new Ds;fit=new Ds;upperGone=!1;headHidden=!1;injuries=0;blood=`full`;hole=!1;jawHung=!1;pieces=new Map;geometries=[];skull=null;skullMount=new Ds;brain=null;tongue=null;bodyShadow=null;standIns=null;tongueHung=!1;constructor(e){this.boxer=e,this.gloved={left:e.gloveMesh(`left`).visible,right:e.gloveMesh(`right`).visible},this.flesh=new jd({vertexColors:!0,roughness:.3,metalness:0,side:2}),Bw(this.flesh)}apply(e,t){let n=0;for(let t=0;tc*3)&&(this.tongueHung=!0,l.copy(o).addScaledVector(s,c),u.set(0,0,0));let d=this.reach.copy(l);e>1e-4&&(u.y-=9.8*e,u.addScaledVector(OO.copy(o).addScaledVector(s,c).sub(l),60*e).multiplyScalar(Math.exp(-5*e)),d.addScaledVector(u,e)),d.sub(o).setLength(c),d.angleTo(s)>VO&&(OO.copy(d).addScaledVector(s,-d.dot(s)).setLength(Math.sin(VO)*c),d.copy(s).multiplyScalar(Math.cos(VO)*c).add(OO)),d.add(o),e>1e-4&&u.copy(d).sub(l).multiplyScalar(1/e),l.copy(d),r.quaternion.setFromUnitVectors(fO,OO.copy(l).sub(o).transformDirection(a.invert()))}compileStandIns(){if(this.standIns!==null)return this.standIns;let e=this.boxer;for(let e of ik)this.built(e);let t=[],n=[[e.headMesh,e.headInjury],[lO(e,`body`),e.bodyInjury]];for(let[e,r]of n)for(let n of[!1,!0]){let i=e===null?null:r.variant(n);if(e===null||i===null)continue;this.owned.push(i);let a=new Hl(e.geometry,i);if(a.bind(e.skeleton,e.bindMatrix),a.frustumCulled=!1,a.castShadow=e.castShadow,n){let e=r.shadowVariant();this.owned.push(e),a.customDepthMaterial=e}t.push(a)}this.brain!==null&&t.push(new H(this.brain.geometry,this.flesh));let r=this.built(`waist`).find(e=>e instanceof Hl);if(r!==void 0){let e=new Hl(r.geometry,this.flesh);e.bind(r.skeleton,r.bindMatrix),e.frustumCulled=!1,t.push(e)}return this.standIns=t,t}clear(){this.upperGone=!1,this.hole=!1,this.injuries=0,this.show(),this.setPallor(0)}dispose(){this.clear();for(let e of this.standIns??[])e.removeFromParent();this.standIns=null;for(let e of this.pieces.values())for(let t of e)t.removeFromParent();for(let e of this.geometries)e.dispose();this.pieces.clear(),this.geometries.length=0,this.skull=this.brain=this.tongue=null,this.bodyShadow?.dispose(),this.bodyShadow=null;for(let e of this.owned)e.dispose();this.owned.length=0,this.flesh.dispose()}has(e){return!!(this.injuries&1<this.blood!==`off`&&this.has(e),o=r&&this.upperGone,s=this.isPartGone(`jaw`),c=r&&this.has(`skull_fractured`);t.setExplicit(r),n.setExplicit(r);let l=this.headRaises,u=this.bodyRaises;l.length=0,u.length=0;let d=(e,t,n,r=0,a=0)=>void e.push({site:t,bruise:n,blood:r*i,cut:a});if(t.setWound(`nose`,+!!a(`broken_nose`)),a(`broken_nose`)&&d(l,`nose`,1.1,1.4),a(`broken_jaw`)||a(`jaw_torn`)){let e=a(`jaw_torn`);d(l,`chin`,1.2),d(l,`leftJaw`,e?1.2:1),d(l,`rightJaw`,e?1.2:1),d(l,`mouth`,.7,e?1.4:.9,.7),d(u,`neckSmear`,0,e?1.4:.6)}a(`skull_fractured`)&&(d(l,`forehead`,1.1,1.4,+!r),d(u,`neckSmear`,0,1.1)),t.setGone(`jaw`,+!!s),t.setGone(`skull`,+!!c);let f=!1;for(let i of uO){let s=ak[i];t.setWound(s.ear,+!!a(`ear_${i}_torn`));let c=a(`face_${i}_flayed`);t.setWound(s.face,+!!c),c&&(d(l,s.cheek,.8,1.2),d(u,`neckSmear`,0,.9));let p=a(`eye_${i}_out`);p&&d(l,s.eye,1.1,+!r),this.eyeOut[i]&&!(p&&r)&&(f=!0),this.eyeOut[i]=p&&r,this.eyeShut[i]=p&&!r;let m=o?0:this.isPartGone(`arm_${i}`)?2:+!!this.isPartGone(`forearm_${i}`),h=!r&&a(`arm_${i}_torn`),g=!r&&a(`forearm_${i}_severed`);n.setGone(s.arm,m),n.setWound(s.shoulder,a(`shoulder_${i}_dislocated`)||h?1:0),n.setWound(s.elbow,a(`arm_${i}_broken`)||g?1:0),n.setWound(s.ribs,+!!a(`ribs_${i}_broken`)),n.setWound(s.knee,+!!a(`knee_${i}_blown`)),(m===2||h)&&d(u,s.smear,0,1.2),a(`ribs_${i}_broken`)&&d(u,s.ribs,1.2);let _=m>0||o;_?e.gloveMesh(i).visible=!1:this.gloveGone[i]&&(e.gloveMesh(i).visible=this.gloved[i]&&!e.isHandDismembered(i)),this.gloveGone[i]=_,this.piece(`fracture_${i}`,r&&!o&&m===0&&this.has(`arm_${i}_broken`)),this.piece(`ribs_${i}`,r&&!o&&this.has(`ribs_${i}_broken`)),this.piece(`knee_${i}`,r&&this.has(`knee_${i}_blown`)),this.piece(`elbow_${i}`,m===1),this.piece(`shoulder_${i}`,m===2)}f&&t.setEyeOut(this.eyeOut.left&&this.eyeOut.right?`both`:this.eyeOut.left?`left`:this.eyeOut.right?`right`:null),n.setWound(`liver`,+!!a(`liver_ruptured`)),n.setWound(`belly`,+!!a(`disemboweled`)),n.setGone(`waist`,+!!o),n.setGone(`chestHole`,r&&this.hole&&!o?1:0);let p=r&&this.has(`broken_jaw`)&&!s;this.jawHung&&!p&&t.setJaw(0),this.jawHung=p,o?e.headMesh.visible=!1:this.headHidden&&(e.headMesh.visible=!0),this.headHidden=o,this.piece(`skull`,c&&!o),this.piece(`maw`,s&&!o),this.piece(`chest`,r&&this.hole&&!o),this.piece(`waist`,o),c&&!o&&this.fitSkull();let m=lO(e,`body`);m!==null&&n.material!==null&&(n.open?m.customDepthMaterial=this.bodyShadow??=n.shadowMaterial():m.customDepthMaterial===this.bodyShadow&&(m.customDepthMaterial=void 0))}assert(){let e=this.boxer,t=e.headInjury,n=this.headRaises,r=this.bodyRaises;for(let e=0;e0,o=this.eyeOut.right||i.y>0;(this.eyeOut.left&&i.x===0||this.eyeOut.right&&i.y===0)&&t.setEyeOut(a&&o?`both`:a?`left`:`right`);let s=t.uniforms.uInjuryLid.value;(this.eyeShut.left||this.eyeShut.right)&&t.setEyesShut(this.eyeShut.left?1:s[0].w,this.eyeShut.right?1:s[1].w),this.gloveGone.left&&(e.gloveMesh(`left`).visible=!1),this.gloveGone.right&&(e.gloveMesh(`right`).visible=!1)}piece(e,t){if(t||this.pieces.has(e))for(let n of this.built(e))n.visible=t}built(e){let t=this.pieces.get(e);return t===void 0&&(t=this.make(e),this.pieces.set(e,t)),t}bindToWorld(e,t,n){let r=this.boxer.rig.bones[t],i=e.skeleton.bones.indexOf(r);return i<0?!1:(n.multiplyMatrices(r.matrixWorld,e.skeleton.boneInverses[i]).multiply(e.bindMatrix),!0)}skinMatrix(e,t,n){let r=e===`head`?this.boxer.headMesh:lO(this.boxer,`body`);return r!==null&&this.bindToWorld(r,t,n)}fitSkull(){let e=this.skull;if(e===null)return;let t=this.boxer.look,n=bb(OO.set(5.9,124.6,-3.3),t,this.root).x,r=bb(OO.set(-5.9,124.6,-3.3),t,this.root).x,i=bb(OO.set(0,124.6,3.3),t,this.root).z,a=bb(OO.set(0,124.6,-9.9),t,this.root).z,o=(i-a)/13.2;this.fit.makeScale((n-r)/11.8,1,o).setPosition((n+r)/2,0,(i+a)/2+3.3*o),e.matrix.multiplyMatrices(this.skullMount,this.fit)}solid(e){this.geometries.push(e);let t=new H(e,this.flesh);return t.receiveShadow=!0,t}mount(e,t,n=lO(this.boxer,`body`)){let r=this.boxer.rig.bones[e],i=n===null?-1:n.skeleton.bones.indexOf(r);return n!==null&&i>=0&&t.matrix.multiplyMatrices(n.skeleton.boneInverses[i],n.bindMatrix),t.matrixAutoUpdate=!1,t.visible=!1,r.add(t),t}closing(e,t,n){let r=lO(this.boxer,`body`);if(r===null)return[];let i=$O.get(r.geometry);i===void 0&&$O.set(r.geometry,i=new Map);let a=i.get(e);if(a===void 0&&i.set(e,a=Nv(r.geometry,t)),a.length===0)return[];let o=new Hl(ek(r.geometry,a,n),this.flesh);return this.geometries.push(o.geometry),o.bind(r.skeleton,r.bindMatrix),o.frustumCulled=!1,o.receiveShadow=!0,o.visible=!1,(r.parent??this.boxer.root).add(o),[o]}make(e){let t=this.boxer.headMesh;if(e===`skull`){let e=new tc,n=this.solid(IO());return n.position.set(...PO),e.add(n,this.solid(LO())),this.mount(`head`,e,t),this.skullMount.copy(e.matrix),this.skull=e,this.brain=n,[e]}if(e===`maw`){let e=new tc,n=this.solid(HO());return n.position.set(...RO),e.add(this.solid(UO()),n),this.tongue=n,[this.mount(`head`,e,t)]}if(e===`chest`)return[...this.closing(e,e=>t_(e.x,e.y,e.z)<=0,nk),this.mount(`chest`,this.solid(JO()))];if(e===`waist`)return[...this.closing(e,e=>!oO(`upper_body`,`body`,e),tk(dO,.8)),this.mount(`spine`,this.solid(KO()))];let n=e.endsWith(`_left`)?`left`:`right`,{sign:r,bone:i}=ak[n];switch(e.slice(0,e.indexOf(`_`))){case`fracture`:return[this.mount(`shoulder${i}`,this.solid(MO([r*27.6,103.3,-5],[r*(p_[0]+2.4),p_[1]+2.6,p_[2]+1.4],1.05))),this.mount(`elbow${i}`,this.solid(jO([MO([r*34.6,102.3,-4.8],[r*30,98.6,-.8],.8),MO([r*34,103.2,-5.6],[r*30.6,100.6,-9.8],.6)])))];case`ribs`:return[this.mount(`chest`,this.solid(qO(r)))];case`knee`:return[this.mount(`knee${i}`,this.solid(MO([r*8.8,37.8,-4.6],[r*(m_[0]+3.8),m_[1]-1.2,m_[2]-.2],1.2)))];case`elbow`:return[...this.closing(e,e=>!oO(`forearm_${n}`,`body`,e),tk(new B(r,0,0),0)),this.mount(`shoulder${i}`,this.solid(WO(r)))];case`shoulder`:return[...this.closing(e,e=>!oO(`arm_${n}`,`body`,e),tk(new B(r,0,0),1.6)),this.mount(`clavicle${i}`,this.solid(GO(r)))]}}};function sk(e){switch(e){case`skull_fractured`:return`skull`;case`broken_jaw`:return`jaw`;case`broken_nose`:return`nose`;case`ribs_left_broken`:return`ribs_left`;case`ribs_right_broken`:return`ribs_right`;case`arm_left_broken`:return`arm_left`;case`arm_right_broken`:return`arm_right`;case`knee_left_blown`:return`knee_left`;case`knee_right_blown`:return`knee_right`;case`shoulder_left_dislocated`:return`shoulder_left`;case`shoulder_right_dislocated`:return`shoulder_right`;default:return null}}var ck=.3,lk=1.35,uk=.07,dk=.25,fk=.4,pk=.13,mk=.6,hk=.66,gk=1.05,_k=new V(10474751),vk=new V(16777215),yk=new V(132105),bk=5,xk=8,Sk=(e,t)=>[t===`left`?e[0]:-e[0],e[1],e[2]];function Ck(e){let t=e.endsWith(`_right`)?`right`:`left`,n=t===`left`?`L`:`R`;return e===`skull`?{center:[0,123.5,-1],radius:13,anchor:`skull`}:e===`jaw`?{center:[0,113.5,2],radius:10,anchor:`mouth`}:e===`nose`?{center:[0,118,3],radius:9,anchor:`nose`}:e.startsWith(`ribs`)?{center:Sk(f_[1],t),radius:26,anchor:`ribs_${t}`}:e.startsWith(`arm`)?{center:Sk(p_,t),radius:17,anchor:`elbow_${t}`,joint:`elbow${n}`}:e.startsWith(`knee`)?{center:Sk(m_,t),radius:20,anchor:`knee_${t}`,joint:`knee${n}`}:{center:Sk([15,103.5,-5.5],t),radius:15,anchor:`shoulder_${t}`,joint:`shoulder${n}`}}var wk=[1,1,1],Tk=[.06,.07,.09],Ek=[.3,.32,.36],Dk=[1,0,0],Ok=new B(0,1,0);function kk(e,t){e.deleteAttribute(`uv`);let n=e.getAttribute(`position`).count,r=new Float32Array(n*3);for(let e=0;e0?.25:-1.75,e>0?1.75:-.25)])}function Uk(){let e=kk(new _d(1,8,5,Math.PI/2-.55,1.1,.35,.7).scale(5.75,6.25,7.45).translate(0,121.6,-3),Ek),t=(e,t)=>[-5.8*Math.cos(e)*Math.sin(t),121.6+6.3*Math.cos(t),-3+7.5*Math.sin(e)*Math.sin(t)],n=[];for(let[e,r,i,a]of[[1,.35,.7,.05],[2.1,.4,2.7,.2],[2.1,1.05,2.8,1.2],[1,1.05,.4,1.3],[1.57,1.05,1.5,1.5],[1.57,.35,1.9,.02]]){let o=t((e+i)/2+.12,(r+a)/2+.05);n.push(Fk(t(e,r),o,.22,Tk),Fk(o,t(i,a),.16,Tk))}return Ik([e,...n])}function Wk(e,t,n){let r=[];for(let i=e;i{t.call(e,n,r),n.vertexShader=n.vertexShader.replace(`#include `,`${Xw}\n#include `)},e.customProgramCacheKey=()=>`${n}-on-canvas`,e.needsUpdate=!0}function Qw(e,t){let n=t.outfit!==void 0,r=!n||t.wounds===!0,i=[],a=[],o=new Map,s=null,c={value:0},l=null,u=null;if(e.traverse(e=>{if(!(e instanceof $l)||Array.isArray(e.material))return;let d=e.material.name,f=Pw[d];if(f===void 0)throw Error(`fighter GLB has unsupported material ${d}`);let p=o.get(d);if(p===void 0){let e=d===`MHeadMat0`||d===`MBodyMat0`,m=t.outfit,h=d===`GlovesMat0`?t.gear:d===`PantsMat0`?m?.trousers??t.gear:d===`ShoesMat0`&&m!==void 0?m.shoes:16777215,g=Yw(f);p=e&&!n?new Ud({map:g,color:h,roughness:.58,metalness:.02,clearcoat:.25,clearcoatRoughness:.6}):new Hd({map:g,color:h,roughness:e?.58:Fw[d]??.4,metalness:e?.02:.03}),p.name=d,o.set(d,p),a.push(p),e&&i.push(p),d===`MHeadMat0`&&(l=new X_(r?p:null,Jg,{core:k_,lids:j_})),d===`MBodyMat0`&&(u=new X_(r?p:null,Yg,{core:A_,wash:!0}));let _=$w[d];m!==void 0&&_!==void 0?ix(p,_,m):d===`PantsMat0`?c=_b(p,!1,`trunks`):d===`GlovesMat0`&&(s=_b(p)),e&&!n&&dx(p),Zw(p)}if(e.material=p,!n&&e.name===`BoxerPants`){let t=Bw.get(e.geometry);t===void 0&&Bw.set(e.geometry,t=Sx(e.geometry,e.skeleton.bones.map(e=>e.name))),e.geometry=t}e.castShadow=!n,e.receiveShadow=!0,e.frustumCulled=!1}),i.length!==2||s===null||a.length!==5||l===null||u===null)throw Error(`fighter GLB material contract failed: ${i.length} skin, ${a.length} total`);return{skin:i,gloveBlood:s,trunksBlood:c,owned:a,headInjury:l,bodyInjury:u}}var $w={MHeadMat0:`head`,MBodyMat0:`body`,ShoesMat0:`shoes`,PantsMat0:`pants`},eT=new V().setRGB(.6,.32,.19,So),tT=(e,t,n,r)=>e+(t-e)*(1-Math.exp(-n*r)),nT=(e,t,n,r)=>e+(((t-e+Math.PI)%(Math.PI*2)+Math.PI*2)%(Math.PI*2)-Math.PI)*(1-Math.exp(-n*r)),rT=R.clamp,iT=class{root=new fc;bones=new Map;rig;metrics;skinMaterials;ownedMaterials;gloveBlood;trunksBlood;headMeshes=[];handMeshes={left:[],right:[]};decapitated=!1;burst=!1;dismemberedHands={left:!1,right:!1};dressed;ownedGeometries=[];gearBaseColor;skinBaseColor;headInjury;bodyInjury;headLook;face;bareHand;constructor(e,t){let n=ly(e.scene);n.scale.setScalar(1),this.root.add(n);let r=Qw(n,t);this.skinMaterials=r.skin,this.ownedMaterials=[...r.owned],this.gloveBlood=r.gloveBlood,this.trunksBlood=r.trunksBlood,this.headInjury=r.headInjury,this.bodyInjury=r.bodyInjury,this.gearBaseColor=new V(t.gear),this.skinBaseColor=new V(t.skin),this.dressed=t.outfit!==void 0,n.traverse(e=>{e instanceof $l&&e.name===`BoxerHead`&&this.headMeshes.push(e),e instanceof $l&&e.name===`BoxerGloveLeft`&&this.handMeshes.left.push(e),e instanceof $l&&e.name===`BoxerGloveRight`&&this.handMeshes.right.push(e),e instanceof eu&&this.bones.set(e.name,e)});let i=Object.values(fb).filter(e=>!this.bones.has(e));if(i.length>0)throw Error(`fighter GLB missing required bones: ${i.join(`, `)}`);if(this.headMeshes.length!==1)throw Error(`fighter GLB requires one BoxerHead mesh, found ${this.headMeshes.length}`);let a=this.headInjury.shadowMaterial();this.headMeshes[0].customDepthMaterial=a;let o=this.headMeshes[0].material;o.side=0,o.shadowSide=1,this.ownedMaterials.push(a);for(let e of[`left`,`right`])if(this.handMeshes[e].length!==1)throw Error(`fighter GLB requires one ${e} glove mesh, found ${this.handMeshes[e].length}`);this.root.updateMatrixWorld(!0),this.rig=new Jx(this.root),this.headLook=new Lb(this.headMeshes[0].material),this.face=new Dx(t.gear^t.skin),this.bareHand=t.outfit===void 0?null:this.addHands(t.outfit),this.setLook(t.look??vb);let s=this.rig.metrics;this.metrics={armUpper:s.armL.upper,armFore:s.armL.lower,legThigh:s.legL.upper,legShin:s.legL.lower,headRestY:s.headHeight,chestRestY:s.chestHeight,ankleRestY:s.ankleHeight}}bone(e){return this.bones.get(fb[e]??e)??null}setGloveBlood(e){this.gloveBlood.value=rT(e,0,1)}get gloveBloodLevel(){return this.gloveBlood.value}setTrunksBlood(e){this.trunksBlood.value=rT(e,0,1)}get trunksBloodLevel(){return this.trunksBlood.value}get headMesh(){return this.headMeshes[0]}gloveMesh(e){return this.handMeshes[e][0]}get skin(){return this.skinMaterials[0]}get isDecapitated(){return this.decapitated}setDecapitated(e){this.decapitated=e,this.burst=!1,this.headInjury.setSevered(e),this.bone(`head`).visible=!e}get isHeadBurst(){return this.burst}setHeadBurst(e){this.burst=e,this.decapitated=!1,this.headInjury.setBurst(e),this.bone(`head`).visible=!e}isHandDismembered(e){return this.dismemberedHands[e]}setHandDismembered(e,t){this.dismemberedHands[e]=t;for(let n of this.handMeshes[e])n.visible=!t&&!this.dressed}setLook(e){this.headLook.set(e);for(let t of this.skinMaterials)t.color.setHex(e.tint);this.bareHand?.color.copy(eT).multiply(this.skinMaterials[0].color)}get look(){return this.headLook.look}addHands(e){let t=e.gloves!==null,n=new Hd({color:t?e.gloves:eT,roughness:t?.38:.6,metalness:.02}),r=t?n:new Hd({color:new V(e.shirt).multiplyScalar(.9),roughness:.88,metalness:0});this.ownedMaterials.push(n),r!==n&&this.ownedMaterials.push(r);let i=cx();this.ownedGeometries.push(i);for(let e of[`left`,`right`]){for(let t of this.handMeshes[e])t.visible=!1;let t=sx(e);this.ownedGeometries.push(t);let a=e===`left`?`L`:`R`;for(let[o,s,c,l]of[[this.rig.bones[`glove${a}`],t,n,`hand-${e}`],[this.rig.bones[`elbow${a}`],i,r,`cuff-${e}`]]){let e=new H(s,c);e.name=l,e.castShadow=!1,e.receiveShadow=!0,o.add(e)}}return t?null:n}setSkinClearcoat(e){for(let t of this.skinMaterials)t instanceof Ud&&(t.clearcoat=e)}flinch(e,t){this.face.flinch(e,t)}updateFace(e,t,n,r,i,a){this.face.update(e,t,n,r,i,a),this.headLook.setExpression(this.face.lids,this.face.mouth,this.face.brow)}dispose(){for(let e of this.ownedMaterials)e.dispose();for(let e of this.ownedGeometries)e.dispose();Jw(this.root)}},aT=(e,t,n,r,i)=>{let a=e.value,o=e.velocity;o.addScaledVector(a,-n*t).multiplyScalar(Math.exp(-r*t)),a.addScaledVector(o,t),a.length()>i&&a.setLength(i)},oT=.06,sT=150,cT=.58,lT=.25,uT=.32,dT=9,fT=1,pT=.08,mT=.3,hT=1,gT=1.6,_T=.25,vT=.12,yT=.33,bT=.3,xT=8;function ST(e,t,n,r){Dw(e,t,n);let i=Math.hypot(n.x,n.z);if(i<=0)return r.x=0,r.z=0,0;let a=$x(0,_T,i),o=1+vT*a/i;return r.x=n.x*o,r.z=n.z*o,a}var CT=(e,t)=>e===0||Math.sign(t)===Math.sign(e)&&Math.abs(t)>Math.abs(e)?t:e,wT=.75,TT=.38,ET=.72,DT=.5,OT=.2,kT=.55,AT=.7,jT=6,MT=.4,NT=.2,PT=.3,FT=.5,IT=class{mapping;boxer;solver;yaw=0;yawInitialized=!1;rootX=null;rootZ=0;punchActive=!1;punchAgeTicks=0;punchTotalTicks=1;punchClass=`jab`;punchHand=`left`;punchTarget=`head`;punchPower=`normal`;punchTiming=N(`jab`,`head`,`normal`);actionId=null;completedActionId=null;ownActionId=null;ownPress=!1;ownLeadTicks=0;ownAuthoritativeAge=null;ownWaitedTicks=0;ownExpectedTicks=0;ownPulled=!1;ownSequence=null;ownStarted=!1;ownPressedAt=0;ownRefused=!1;ownCut=!1;recoveryCut=!1;ownQueued=null;contactId=null;contactParried=!1;shownFighter=null;shownOpponent=null;retiredOwnIds=[];pressesLanded=[];anticipatedId=null;hitstop=0;hitstopScale=1;hitstopLag=0;downState=`up`;fallAge=0;riseProgress=0;riseFrom=0;fallSide=0;fallProne=!1;fallKneel=!1;windedSide=-1;windedTime=0;winded=0;landProne=!1;landSide=0;landShift=new B;landSettled=!1;fallen=vD();fallenFromPhysics=!1;riseRoot=new B;riseRootFrom=new B;downPoles=[new B,new B,new B,new B];downPolesSet=!1;poleSettle=0;characterInverse=new Rs;place=new B;riseRootVelocity=new B;liveOpponentHead=new B;hasLiveHead=!1;guardOpponentHead=new B;opponentHeadOffset=new B;opponentSteadySeconds=0;followHead=0;aimActionId=null;refereeContactId=null;refereeHead=new B;hasRefereeHead=!1;followReferee=0;headKick={value:new B,velocity:new B};torsoKick={value:new B,velocity:new B};rootKick={value:new B,velocity:new B};coverKick={value:new B,velocity:new B};foldDelay=0;pendingFold=0;coverDelay=0;pendingCover=0;liverDelay=0;pendingLiver=0;armKick={value:new B,velocity:new B};handsDrop=0;guardWasBroken=!1;hurtSeed=1;rockedTime=0;rockedPhase=0;nextLurch=0;guardKick=0;guardHigh=0;guardLow=0;guardSpent=0;slip=0;weave=0;weaveTime=0;pull=0;crouchExtra=0;bouncePhase=0;weightPhase=0;breathPhase=0;stunPhase=0;feintTimer=2;pawAge=gE;pawCount=0;idleSeed=-1;manner={...gS.balanced,lead:new B,rear:new B};mannerStyle=null;mannerSeed=0;breath=0;battered=0;walkLean=new z;leadingFoot=-1;nextFoot=-1;steppedYaw=0;stunAmount=0;tired=0;clinchWeight=0;foulWeight=0;tauntWeight=0;crowding=0;tight=0;punchCommit=0;punchMiss=0;headSpace=new z;ownHead=new B;ropeHold=new B;ropeExcess={x:0,z:0};ropeOwn={x:0,z:0};ropeTheirs={x:0,z:0};ropeLeanTarget=0;ropeLean=0;ropeOutward=new B(1,0,0);ropeLocal=new B;tauntEnd=null;lastSpeed=0;stool;stoolRoot=new B;stoolYaw=0;enswell;bottle;treatProp=`enswell`;treatTarget=new B;treatScratch=new B;treatFacing=new B(0,0,-1);treatFacingLocal=new B;treatSide=1;treating=!1;treatWeight=0;resting=!1;seated=0;stillTime=0;celebrateTime=0;celebration=0;waveTime=0;wave=0;breakTime=0;breakWeight=0;breakFighters=[new B,new B];breakAimed=!1;attending=!1;verdictSide=0;verdict=null;squareWeight=0;raisedWeight=0;bowedWeight=0;wrists=[null,null];wristTargets=[new B,new B];wristWeights=[0,0];attendWeight=0;countdownTicks=null;countdownEnd=null;touchWeight=0;touchOffset=new B;touchVelocity=new B;debugHoldImpact=!1;feet=[{planted:new B,from:new B,to:new B,progress:1,stepping:!1,duration:.2},{planted:new B,from:new B,to:new B,progress:1,stepping:!1,duration:.2}];feetInitialized=!1;dislocation=null;scratch=new B;scratchB=new B;scratchC=new B;scratchD=new B;scratchE=new B;clinchCentre=new B;clinchForward=new B;clinchTemp=new B;scratchQ=new ms;headWorld=new B;hand={L:this.makeHand(),R:this.makeHand()};punchGuard=this.makeHand();punchDir=new B;punchContact=new B;punchStart=new B;punchSweepFrom=new B;punchSweepTo=new B;punchMid=new B;foot={L:this.makeFoot(),R:this.makeFoot()};torso={hips:new B,hipsYaw:0,hipsPitch:0,hipsRoll:0,shouldersYaw:0,spinePitch:0,spineRoll:0,headYaw:0,headPitch:0,headRoll:0,headOffset:new B};pose;downStanding=vD();downFrom=vD();downTo=vD();downResult=vD();downStand=1;fallStart=vD();fallStartStand=1;fallFromGetUp=!1;referee;refereeCount=0;refereeCounting=!1;countChangedTick=null;countWeight=0;countPump=0;watchPoint=new B;watching=!1;duty=`watch`;backWeight=0;waveSlow=!1;mood=`work`;mournWeight=0;cheerWeight=0;treatUrgency=0;gazeYaw=0;gazePitch=0;travel=new B;strideYaw=0;backing=!1;footYaw=[0,0];ragdoll;forcedDown=!1;heldDown=!1;authoredNextFall=!1;obstacle=null;blows=0;riseBlendAge=0;posedInjuries=0;armCarry=[`whole`,`whole`];armLimp=[0,0];armSnap=[0,0];armDangle=[bE(),bE()];forearmDangle=[bE(),bE()];trunkLow=new B;trunkHigh=new B;lostLean=0;cover=0;kneeBlown=[!1,!1];kneeGive=[0,0];gutted=!1;hunch=0;liver=!1;curl=0;faintTarget=0;faint=0;retchTime=0;retching=0;dazed=!1;daze=0;dazeTime=0;stepPace=[1,1];stepLift=[1,1];stepSlack=1;hurt=!1;punchReach=0;dead=!1;deathFall=!1;deathStyle=`crumple`;deathAge=0;throe=CE.length;throeSide=0;laidOut=!1;constructor(e,t,n={}){this.mapping=t,this.boxer=e,this.referee=n.referee===!0,this.solver=new pS(e.rig),this.pose={torso:this.torso,handL:this.hand.L,handR:this.hand.R,footL:this.foot.L,footR:this.foot.R,shrugL:0,shrugR:0},this.stool=GD(),this.stool.group.position.set(0,0,.02),e.root.add(this.stool.group),this.enswell=UD(),e.rig.bones.gloveL.add(this.enswell.group),this.bottle=WD(),e.rig.bones.gloveL.add(this.bottle.group),this.ragdoll=this.referee&&n.knockout!==!0?null:new dw(e.rig,e.root)}primeReplayFall(){this.ragdoll?.prime()}useAuthoredFall(){this.authoredNextFall=!0}knockOut(){this.forcedDown=!0}stayDown(e){this.heldDown=e}setObstacle(e,t){this.obstacle??={x:e,z:t},this.obstacle.x=e,this.obstacle.z=t}get fallBody(){return this.ragdoll?.active===!0?this.ragdoll:null}setResting(e){this.resting=e}get stoolVisible(){return this.stool.group.visible}celebrate(e=4.4){this.celebrateTime=e}resetTransient(e=!1){this.forcedDown=!1;let t=this.ragdoll;t!==null&&(e?t.active?t.settle():t.restoreSettled():(t.stop(),t.clearRise())),this.downState=e?`down`:`up`,this.landSettled=!1,this.fallenFromPhysics=!1,this.riseRoot.set(0,0,0),this.riseRootFrom.set(0,0,0),this.riseRootVelocity.set(0,0,0),this.fallAge=e?wT:0,this.riseProgress=0,this.hitstop=0,this.hitstopScale=1,this.hitstopLag=0;for(let e of[this.headKick,this.torsoKick,this.rootKick,this.coverKick,this.armKick])e.value.set(0,0,0),e.velocity.set(0,0,0);this.foldDelay=0,this.pendingFold=0,this.coverDelay=0,this.pendingCover=0,this.liverDelay=0,this.pendingLiver=0,this.handsDrop=0,this.rockedTime=0,this.guardKick=0,this.stunAmount=0,this.windedTime=0,this.winded=0,this.celebrateTime=0,this.celebration=0,this.waveTime=0,this.wave=0,this.verdictSide=0,this.verdict=null,this.squareWeight=0,this.raisedWeight=0,this.bowedWeight=0,this.wrists.fill(null),this.wristWeights.fill(0),this.seated=0,this.stillTime=0,this.rootX=null,this.yawInitialized=!1,this.feetInitialized=!1,this.retirePunch(),this.ownQueued=null,this.completedActionId=null,this.retiredOwnIds.length=0,this.anticipatedId=null,this.retchTime=0,this.retching=0,this.dazed=!1,this.daze=0,this.dazeTime=0;for(let e=0;e<2;e+=1)SE(this.armDangle[e]),SE(this.forearmDangle[e]);this.dead=!1,this.deathFall=!1,this.throe=CE.length,this.laidOut=e}waveOff(e=2.6,t=!1){this.waveTime=e,this.waveSlow=t}setCountdown(e){this.countdownTicks=e}attend(e,t=`work`){this.attending=e,this.mood=t}treat(e,t,n=1,r=`enswell`,i=0){this.treating=e!==null,e!==null&&(this.treatTarget.copy(e),t!==void 0&&this.treatFacing.copy(t),this.treatSide=n,this.treatProp=r,this.treatUrgency=i)}awaitVerdict(e){this.verdictSide=e??0,e===null&&(this.verdict=null)}announce(e){this.verdict=e}raise(e,t){this.wrists[0]=e===null?null:this.wristTargets[0].copy(e),this.wrists[1]=t===null?null:this.wristTargets[1].copy(t)}breakClinch(e=1.3){this.breakTime=e}get breaking(){return this.breakTime>0}aimBreak(e,t,n=null,r=`watch`){this.breakFighters[0].copy(e),this.breakFighters[1].copy(t),this.breakAimed=!0,this.watching=n!==null,n!==null&&this.watchPoint.copy(n),this.duty=r}makeHand(){return{position:new B,knuckles:new B(0,1,0),palm:new B(0,0,1),pole:new B(0,-1,0)}}makeFoot(){return{position:new B,toe:new B(0,0,1),heel:0,pole:new B(0,0,1)}}get currentRoot(){return{x:this.rootX??0,z:this.rootZ}}get isDown(){return this.downState!==`up`||this.dead}setRefereeCount(e,t){(e!==this.refereeCounting||t!==this.refereeCount)&&(this.countChangedTick=null),this.refereeCounting=e,this.refereeCount=t}predict(e,t,n,r=0,i,a=r){if(e.kind!==`punch`||e.id===void 0)return;let o={action:{...e,id:e.id},timing:i??N(e.class,e.target,e.power),leadTicks:r,answerTicks:a,pressedAt:t,sequence:null,started:!1,waited:0};if(this.punchActive&&this.ownActionId!==null&&this.ownAuthoritativeAge===null&&!this.ownPulled&&!this.ownStarted&&(t-this.ownPressedAt)*n0||e.clinch_ticks>0||e.clinch_startup_ticks>0,a=this.ownQueued;if(a!==null&&(a.sequence??=r?.(a.action.id)??null,e.action_id===a.action.id?a.started=!0:!a.started&&(i||a.sequence!==null&&e.last_input_sequence>=a.sequence&&e.queued_actions===0)&&(this.ownQueued=null)),!this.punchActive||this.ownActionId===null||this.ownPulled||this.ownRefused)return;this.ownStarted||(this.ownSequence??=r?.(this.ownActionId)??null);let o=e.action_id===this.ownActionId;o&&(this.ownStarted=!0);let s=this.ownQueued;s!==null&&s.sequence!==null&&r!==null&&!this.ownStarted&&this.ownSequence===null&&this.ownAuthoritativeAge===null?(this.ownActionId=null,this.ownQueued=null,this.retirePunch(),this.startOwnPunch(s)):(o?i&&e.action_contact_tick===null:!this.ownStarted&&this.ownAuthoritativeAge===null&&(i||this.ownSequence!==null&&e.last_input_sequence>=this.ownSequence&&e.queued_actions===0))&&(this.ownRefused=!0,this.takeBack())}takeBack(){this.punchAgeTickse.action_startup_ticks*(1/oO-1)||this.punchActive&&this.punchAgeTicks/this.punchTotalTicks<=.55)return;this.anticipatedId=n;let r=e.action_target??`head`,i=e.action_power??`normal`,a={...N(e.action,r,i),startup:e.action_startup_ticks,active:e.action_active_ticks,recovery:e.action_recovery_ticks},o=e.action_hand??(e.stance===`orthodox`?`left`:`right`);this.startEarly(n,e.action,o,r,i,a,t,t)}startOwnPunch(e){let{action:t,timing:n}=e;this.startEarly(t.id,t.class,t.hand,t.target,t.power,n,0,Math.max(0,e.answerTicks)),this.ownPress=!0,this.ownSequence=e.sequence,this.ownStarted=e.started,this.ownPressedAt=e.pressedAt}startEarly(e,t,n,r,i,a,o,s){this.retirePunch(),this.punchClass=t,this.punchHand=n,this.punchTarget=r,this.punchPower=i,this.punchTiming=a,this.punchTotalTicks=Math.max(1,ue(a)),this.punchAgeTicks=0,this.punchActive=!0,this.ownActionId=e,this.ownLeadTicks=rT(o,0,qD),this.ownExpectedTicks=s}followUpStartAge(e){let t=this.shownFighter,n=this.shownOpponent,r=this.actionId??this.ownActionId,i=r!==null&&r===this.contactId&&!this.contactParried;return t!==null&&n!==null&&D(this.punchClass,i,e.action,t.stamina,n.stunned_ticks>0,t.style)?E(this.punchTiming):this.punchTotalTicks}releaseQueuedPress(e){let t=this.ownQueued;t!==null&&(t.waited+=e*30,this.punchActive&&!this.ownPulled&&this.punchAgeTicks+this.serverLag(t.leadTicks)6&&this.retiredOwnIds.shift()),this.actionId=null,this.punchActive=!1,this.ownActionId=null,this.ownPress=!1,this.ownLeadTicks=0,this.ownAuthoritativeAge=null,this.ownWaitedTicks=0,this.ownExpectedTicks=0,this.ownPulled=!1,this.ownSequence=null,this.ownStarted=!1,this.ownRefused=!1,this.ownCut=!1,this.recoveryCut=!1,this.hitstopLag=0}setRefereeHead(e){this.hasRefereeHead=e!==null,e!==null&&this.refereeHead.copy(e)}landedHit(e,t,n=!1){this.punchActive&&e!==null&&e===(this.actionId??this.ownActionId)&&(this.punchAgeTicks>=this.punchTiming.startup+this.punchTiming.active+1||(this.hitstop=Math.max(this.hitstop,(t?o.block:n?o.power:o.hit)/1e3)))}powerHeat(e){if(!this.punchActive||this.punchPower!==`power`||this.punchHand!==e||this.ownPulled)return 0;let{startup:t,active:n,recovery:r}=this.punchTiming,i=this.punchAgeTicks;return i>>0;let u=i===`left`?1:i===`right`||n>=0?-1:1;if(t===`body`){switch(r){case`hook`:this.torsoKick.velocity.x+=3*l,this.torsoKick.velocity.z+=4.6*l*u,this.rootKick.velocity.x+=.5*l*u,this.coverDelay=.09,this.pendingCover=2.4*l*u,u>0&&e===`hit`&&o>.25&&(this.liverDelay=.28,this.pendingLiver=l*(.4+o));break;case`uppercut`:this.rootKick.velocity.y+=.9*l,this.torsoKick.velocity.x-=1.6*l,this.foldDelay=.1,this.pendingFold=5.2*l;break;default:this.torsoKick.velocity.x+=4.6*l}this.rootKick.velocity.z-=.45*l,this.headKick.velocity.z-=.6*l,this.headKick.velocity.y-=.7*l,this.guardKick=Math.max(this.guardKick,.6*l)}else{switch(e===`hit`&&(this.guardKick=Math.max(this.guardKick,.4*l)),r){case`hook`:this.headKick.velocity.x+=2.6*l*u,this.headKick.velocity.z-=.7*l,this.torsoKick.velocity.y+=3.4*l*u,this.torsoKick.velocity.z-=1.2*l*u;break;case`uppercut`:this.headKick.velocity.y+=2.2*l,this.headKick.velocity.z-=1.2*l,this.torsoKick.velocity.x-=1.6*l;break;case`straight`:this.headKick.velocity.z-=2.4*l,this.headKick.velocity.x+=.5*l*u,this.torsoKick.velocity.x-=1*l,this.torsoKick.velocity.y+=1.4*l*u;break;default:this.headKick.velocity.z-=1.5*l,this.torsoKick.velocity.x-=.5*l,this.torsoKick.velocity.y+=.5*l*u}if(this.rootKick.velocity.z-=.45*l,e===`block`)this.guardKick=Math.max(this.guardKick,Math.min(1.2,2.4*l)),this.rootKick.velocity.z-=1.1*l,this.torsoKick.velocity.x-=1.2*l;else{this.rootKick.velocity.y-=1.1*l*o;let e=1.7*l*o;r===`hook`?this.armKick.velocity.add(this.scratchE.set(u,.3,-.2).multiplyScalar(e)):r===`uppercut`?this.armKick.velocity.add(this.scratchE.set(0,1,-.4).multiplyScalar(e)):this.armKick.velocity.add(this.scratchE.set(.3*u,.7,-.4).multiplyScalar(e)),this.handsDrop=Math.max(this.handsDrop,rT((o-.35)*2,0,1)*(.5+.5*c))}}if(e===`hit`&&(this.dentSurface(t,u,r,o),this.fallSide=r===`hook`?u:u*.5,this.fallProne=r===`hook`||t===`body`),e===`hit`&&a>=10&&this.ragdoll!==null){let e=uw({target:t,punchClass:r,hand:i,lateral:u,amount:a}),n=this.scratchE.set(e.x,e.y,e.z).applyAxisAngle(KD,this.yaw),o=this.scratchD.set(e.driveX,e.driveY,e.driveZ).applyAxisAngle(KD,this.yaw);this.blows+=1,this.ragdoll.takeBlow(n,o,t,e.twist,GC(r,t,a,this.blows+Math.round(a)))}}stagger(){this.torsoKick.velocity.x-=2.6,this.headKick.velocity.z-=1.4,this.headKick.velocity.y+=.5,this.rootKick.velocity.z-=1.1,this.guardKick=Math.max(this.guardKick,1.1)}windedFor(e,t){this.windedTime=Math.max(this.windedTime,e),this.windedSide=t>=0?1:-1}fallToKnee(e){this.dead||(this.fallKneel=e,e&&(this.authoredNextFall=!0))}dentSurface(e,t,n,r){let i=1.1+r*2.1;if(e===`body`){let e=n===`hook`?t>0?`rightRibs`:`leftRibs`:`solarPlexus`;this.boxer.bodyInjury.impact(e,[n===`hook`?t*i*.8:0,0,-i],9)}else n===`hook`?this.boxer.headInjury.impact(t>0?`rightCheek`:`leftCheek`,[t*i,0,-i*.35],5.5):n===`uppercut`?this.boxer.headInjury.impact(`chin`,[0,i*.7,-i*.6],5):this.boxer.headInjury.impact(n===`jab`?`nose`:`mouth`,[0,0,-i],4.5)}footPlace(e,t,n){if(this.squareWeight>.5)return n.set(e===0?.16:-.16,0,e===0?.02:-.02);let r=e===0==t>0?mS.leadFoot:mS.rearFoot;return n.set(r.x*t*this.manner.width*(1+lE*this.battered),0,r.z*this.manner.length*(1-aE*this.crowding))}standLike(e){this.mannerSeed=_E(e)+1,this.mannerStyle=null}keyManner(e){let t=gS[e],n=this.manner;if(this.mannerStyle=e,Object.assign(n,t,{lead:n.lead.copy(t.lead),rear:n.rear.copy(t.rear)}),this.mannerSeed===0)return;let r=e=>Math.abs(Math.sin(this.mannerSeed*(e*7.31+3.17))*43758.5453)%1*2-1;n.rise+=r(1)*.012,n.length*=1+r(2)*.05,n.width*=1+r(3)*.06,n.lead.y+=r(4)*.025,n.lead.z+=r(5)*.03,n.flare+=r(6)*.12,n.spring*=1+r(7)*.2,n.bob*=1+r(1)*r(4)*.4,n.rock*=1+r(2)*r(6)*.3}stepOfficialFeet(e,t,n,r,i){let a=t>HT,o=n.x*Math.sin(i)+n.z*Math.cos(i),s=n.x*Math.cos(i)-n.z*Math.sin(i),c=0;a&&(o<-.35*t?this.backing=!0:o>-.05*t&&(this.backing=!1),c=this.backing?Math.atan2(-s,-o):Math.atan2(s,o)),this.strideYaw=tT(this.strideYaw,c,6,e);let l=1-Math.exp(-8*e);this.travel.x+=(s-this.travel.x)*l,this.travel.z+=(o-this.travel.z)*l;let u=this.scratch,d=this.scratchQ.setFromAxisAngle(KD,i+this.strideYaw),f=a?0:Math.sin(this.weightPhase*.17)>=0?.045:-.045,p=rT(.42/Math.max(t,.01),.22,.34),m=t*p*.4;for(let o=0;o<2;o+=1){let s=this.feet[o],c=o===0?1:-1;u.set(c*.15,0,c*f).applyQuaternion(d).add(r),u.y=0;let l=i+this.strideYaw*.85+c*.2;if(!this.feetInitialized){s.planted.copy(u),s.progress=1,s.stepping=!1,this.footYaw[o]=l;continue}let h=Math.atan2(Math.sin(this.footYaw[o]-l),Math.cos(this.footYaw[o]-l));if(!a&&Math.abs(h)>.8&&(this.footYaw[o]=l+Math.sign(h)*.8),s.stepping){s.progress=Math.min(1,s.progress+e/s.duration),this.footYaw[o]=nT(this.footYaw[o],l,14,e),s.progress>=1&&(s.stepping=!1,s.planted.copy(s.to));continue}let g=this.feet[1-o];if(g.stepping)continue;let _=u.x-s.planted.x,v=u.z-s.planted.z,y=Math.hypot(_,v),b=a?(_*n.x+v*n.z)/t:0;G.set(-c*.15,0,-c*f).applyQuaternion(d).add(r).sub(g.planted);let x=a?(G.x*n.x+G.z*n.z)/t:0;(a?b>(x>0?.05:Math.max(.05,m*.8))||y>m+.2:y>.085)&&(s.stepping=!0,s.progress=0,s.duration=a?rT((.22-x)/t,.16,p):y>.12?.2:.32,s.from.copy(s.planted),s.to.copy(u).addScaledVector(n,s.duration*1.6),s.to.y=0)}this.feetInitialized=!0}stepFeet(e,t,n,r,i,a){if(this.referee||this.squareWeight>.5){this.stepOfficialFeet(e,n,r,i,a);return}let o=this.scratch,s=this.scratchQ.setFromAxisAngle(KD,a),c=+(t>0),l=-1;n>uE&&(l=this.footPlace(0,t,o).applyQuaternion(s).dot(r)>=this.footPlace(1,t,o).applyQuaternion(s).dot(r)?0:1),l!==this.leadingFoot&&(this.leadingFoot=l,this.nextFoot=l);let u=l<0?c:l,d=Math.abs(a-this.steppedYaw)>mE*e;this.steppedYaw=a;for(let f=0;f<2;f+=1){let p=f===0?u:1-u,m=this.feet[p];if(this.footPlace(p,t,o).applyQuaternion(s).add(i),o.y=0,this.daze>.001&&this.stumble(p,o,a),!this.feetInitialized){m.planted.copy(o),m.progress=1,m.stepping=!1;continue}if(m.stepping){m.progress=Math.min(1,m.progress+e/m.duration),m.progress>=1&&(m.stepping=!1,m.planted.copy(m.to));continue}let h=this.feet[1-p],g=m.planted.distanceTo(o),_;if(l<0)_=g>(p===c||!d?dE:fE)*this.stepSlack&&!h.stepping;else{let e=!h.stepping||h.progress>=1-.6*rT((n-.4)/1,0,1),t=this.scratchD.subVectors(o,m.planted).dot(r)>0;_=this.nextFoot===p&&t&&g>pE*this.stepSlack&&e}_&&(m.stepping=!0,m.progress=0,m.duration=rT(.2-n*.05,.11,.2)*this.stepPace[p],m.from.copy(m.planted),m.to.copy(o).addScaledVector(r,m.duration*(p===l?1.3:1)),m.to.y=0,l>=0&&(this.nextFoot=1-p))}this.feetInitialized=!0}footWorld(e,t){let n=this.feet[e];if(!n.stepping)return t.copy(n.planted),0;let r=tS(n.progress,1.6);return t.copy(n.from).lerp(n.to,r),Math.sin(n.progress*Math.PI)*hE*this.stepLift[e]}update(e,t,n,r,i,a,o,s){let c=this.boxer,l=e.stance===`orthodox`?1:-1,u=i?.35:1,d=this.touchWalk(e,t,n,o);this.walkBackFromTheFall(n);let f=this.holdOnTheRopes(t,this.mapping.x(e.x)+d.x+this.riseRoot.x,this.mapping.z(e.y)+d.z+this.riseRoot.z),p=this.mapping.x(e.x)+d.x+this.riseRoot.x-f.x,h=this.mapping.z(e.y)+d.z+this.riseRoot.z-f.z;this.place.set(p,0,h),this.rootX===null&&(this.rootX=p,this.rootZ=h);let g=gO*Math.max(n,1/60);this.rootX+=rT(p-this.rootX,-g,g),this.rootZ+=rT(h-this.rootZ,-g,g);let _=Math.atan2(e.facing_x,-e.facing_y);this.yawInitialized||=(this.yaw=_,!0);let v=this.punchActive&&this.punchAgeTicks0?.12:1;let y=n*this.hitstopScale;this.punchActive&&this.hitstop>0&&(this.hitstopLag+=(n-y)*30),this.syncAction(e,t,o,y),this.debugHoldImpact||(this.boxer.headInjury.update(y),this.boxer.bodyInjury.update(y)),s!==void 0&&this.trackOpponentHead(t,s,n);let b=this.scratchB.set(this.mapping.x(e.velocity_x)*30,0,this.mapping.z(e.velocity_y)*30).add(this.touchVelocity).add(this.riseRootVelocity),x=b.length(),S=Math.hypot(b.x-this.riseRootVelocity.x,b.z-this.riseRootVelocity.z);this.lastSpeed=x,this.stillTime=x<.03?this.stillTime+n:0;let C=this.resting&&this.stillTime>.2&&this.downState===`up`;this.seated=tT(this.seated,+!!C,C?2.2:4,n);let w=this.resting&&this.stillTime>.05&&this.downState===`up`;w&&(this.stoolRoot.set(this.rootX,0,this.rootZ),this.stoolYaw=this.yaw),this.stool.group.visible=w||this.seated>RT&&this.downState===`up`,this.stool.group.position.set(this.stoolRoot.x-this.rootX,0,this.stoolRoot.z-this.rootZ).add(this.scratch.set(0,0,.02).applyAxisAngle(KD,this.stoolYaw)).applyAxisAngle(KD,-this.yaw),this.stool.group.rotation.y=this.stoolYaw-this.yaw,this.celebrateTime=Math.max(0,this.celebrateTime-n),this.celebration=tT(this.celebration,+(this.celebrateTime>0&&this.downState===`up`),3.5,n),this.waveTime=Math.max(0,this.waveTime-n),this.wave=tT(this.wave,+(this.waveTime>0&&this.downState===`up`),4,n),this.breakTime=Math.max(0,this.breakTime-n),this.breakWeight=tT(this.breakWeight,+(this.breakTime>0&&this.downState===`up`),6,n),this.attendWeight=tT(this.attendWeight,+!!this.attending,2.5,n),this.mournWeight=tT(this.mournWeight,+(this.mood===`mourn`),2.5,n),this.cheerWeight=tT(this.cheerWeight,+(this.mood===`cheer`),2.5,n);let T=!this.referee&&(this.verdictSide!==0||this.resting||this.countdownTicks!==null&&this.countdownTicks>YT);this.squareWeight=tT(this.squareWeight,+!!T,3,n),this.raisedWeight=tT(this.raisedWeight,+(this.verdictSide!==0&&(this.verdict===`winner`||this.verdict===`level`)),3.2,n),this.bowedWeight=tT(this.bowedWeight,+(this.verdictSide!==0&&this.verdict===`loser`),2.2,n);for(let e of[0,1])this.wristWeights[e]=tT(this.wristWeights[e],this.wrists[e]===null?0:1,3.2,n);this.treatWeight=tT(this.treatWeight,+!!this.treating,3,n),this.windedTime=Math.max(0,this.windedTime-n);let E=this.fallKneel&&this.downState===`falling`;this.winded=tT(this.winded,this.windedTime>0&&this.downState===`up`||E?1:0,this.windedTime>0||E?12:4,n),this.enswell.group.visible=this.treatWeight>.4&&this.treatProp===`enswell`,this.bottle.group.visible=this.treatWeight>.4&&this.treatProp===`bottle`;let D=this.countdownTicks!==null&&this.countdownTicks<=KT&&this.countdownTicks>=qT;this.touchWeight=tT(this.touchWeight,+!!D,6,n);let O=e.stamina/Math.max(1,e.maximum_stamina);this.tired=tT(this.tired,rT((.55-O)/.5,0,1),2,n),this.stunAmount=tT(this.stunAmount,Math.min(1,e.stunned_ticks/24),8,n),c.updateFace(n,i,this.punchActive&&this.punchPower===`power`,this.tired,this.stunAmount,this.isDown);let k=e.defense;this.guardHigh=tT(this.guardHigh,+(k===`guard_high`),uO,n),this.guardLow=tT(this.guardLow,+(k===`guard_low`),uO,n),this.guardSpent=tT(this.guardSpent,+(e.guard0||e.clinch_startup_ticks>0),10,n),this.foulWeight=tT(this.foulWeight,+!!e.is_foul_recovery_target,8,n),this.tauntWeight=tT(this.tauntWeight,+(e.taunt_ticks>0),10,n);let te=Math.hypot(this.mapping.x(t.x)-this.mapping.x(e.x),this.mapping.z(t.y)-this.mapping.z(e.y)),j=this.referee||e.is_downed||t.is_downed?0:1-$x(cT,fT,te);this.crowding=tT(this.crowding,j,9,n);let M=this.referee||e.is_downed||t.is_downed?0:1-$x(rE,iE,te);this.tight=tT(this.tight,M,9,n);let ne=1/0;if(this.hasLiveHead&&!this.referee&&this.downState===`up`){let e=this.boxer.rig.bones.head.getWorldPosition(this.ownHead),t=e.x-this.liveOpponentHead.x,r=e.z-this.liveOpponentHead.z,i=Math.hypot(t,r);if(ne=Math.hypot(t,e.y-this.liveOpponentHead.y,r),ne1e-4){let e=(lT-ne)/lT*dT*n,a=Math.cos(-this.yaw),o=Math.sin(-this.yaw);this.headSpace.x+=(t*a+r*o)/i*e,this.headSpace.y+=(-t*o+r*a)/i*e,this.headSpace.lengthSq()>1&&this.headSpace.normalize()}}if(ne>uT&&this.headSpace.multiplyScalar(Math.exp(-3*n)),this.tauntEnd=VD(this.tauntEnd,o,e.taunt_ticks>0?e.taunt_ticks:null),aT(this.headKick,n,190,7.5,.24),aT(this.torsoKick,n,150,7,.7),aT(this.rootKick,n,120,8,.12),aT(this.coverKick,n,110,15,.3),aT(this.armKick,n,55,6,.3),this.foldDelay>0&&(this.foldDelay-=n,this.foldDelay<=0&&(this.torsoKick.velocity.x+=this.pendingFold,this.pendingFold=0)),this.coverDelay>0&&(this.coverDelay-=n,this.coverDelay<=0&&(this.coverKick.velocity.x+=this.pendingCover,this.pendingCover=0)),this.liverDelay>0&&(this.liverDelay-=n,this.liverDelay<=0&&(this.rootKick.velocity.y-=1.4*this.pendingLiver,this.torsoKick.velocity.x+=2.6*this.pendingLiver,this.torsoKick.velocity.z+=1.6*this.pendingLiver,this.pendingLiver=0)),this.handsDrop=Math.max(0,this.handsDrop-n*1.5),e.guard_broken&&!this.guardWasBroken&&(this.handsDrop=1,this.guardKick=1.2),this.guardWasBroken=e.guard_broken,this.stunAmount>.25&&this.downState===`up`&&!this.referee){if(this.rockedTime===0&&(this.rockedPhase=this.hurtRandom()*Math.PI*2,this.nextLurch=.1+this.hurtRandom()*.2),this.rockedTime+=n,this.rockedTime>=this.nextLurch){let e=this.stunAmount;this.rootKick.velocity.x+=(this.hurtRandom()-.5)*1.4*e,this.rootKick.velocity.z+=(this.hurtRandom()-.6)*1.2*e,this.rootKick.velocity.y-=this.hurtRandom()*.9*e,this.torsoKick.velocity.z+=(this.hurtRandom()-.5)*1.5*e,this.nextLurch=this.rockedTime+.3+this.hurtRandom()*.5}}else this.stunAmount<.02&&(this.rockedTime=0);this.guardKick=Math.max(0,this.guardKick-n*2.4),this.ragdoll?.tick(n),this.updateDownState(e,n,i,S),this.stepDeath(n),this.stepInjuries(n),this.idleSeed<0&&(this.idleSeed=_E(e.player_id),this.bouncePhase=this.idleSeed*19,this.weightPhase=this.idleSeed*43,this.breathPhase=this.idleSeed*71);let re=this.idleSeed;e.style!==this.mannerStyle&&this.keyManner(e.style);let ie=this.manner;this.battered=tT(this.battered,rT((e.trauma.head+e.trauma.body-sE)/cE,0,1),1.5,n);let N=this.battered,ae=r*(.93+re*.14)+re*37,oe=(2.1-this.tired*.8)*(1-this.stunAmount*.6)*(.94+re*.12)*ie.tempo;if(this.bouncePhase+=n*oe*Math.PI*2*u,this.weightPhase+=n*(.42+re*.1)*Math.PI*2*u,this.breathPhase+=n*(.3+this.tired*.75)*Math.PI*2,this.stunPhase+=n*5.5,this.feintTimer-=n,this.pawAge+=n,this.feintTimer<=0&&!this.punchActive&&x<1&&this.downState===`up`){this.pawCount+=1;let e=Math.abs(Math.sin(this.pawCount*12.9898+re*78.233)*43758.5453)%1;this.feintTimer=e<.3?gE*1.2:1.4+e*2.6,this.pawAge=0}let se=this.pawAge/gE,ce=se<1?Math.sin(Math.PI*.5*($x(0,.4,se)+$x(.4,1,se))):0,le=this.referee?0:ce*ie.paw*(1-.7*this.tight)*(1-.6*this.tired)*(1-this.stunAmount)*(1-N)*rT(1-this.guardHigh-this.guardLow,0,1)*u,ue=this.referee?0:(1-this.stunAmount)*(1-.6*this.tired)*(1-.7*N)*(x>.6?.5:1)*ie.spring,de=Math.sin(this.bouncePhase)*(.7+.3*Math.sin(ae*.83+1.7))*ue,fe=Math.sin(this.bouncePhase*.5+.6)*ue*ie.rock,pe=Math.sin(this.breathPhase)*(1+2*this.tired);this.breath=pe;let me=this.scratchC.set(this.rootX,0,this.rootZ);(this.downState===`up`||this.downState===`rising`)&&this.stepFeet(n,l,x,b,me,this.yaw);let he=Math.cos(this.yaw),ge=Math.sin(this.yaw);this.walkLean.x=tT(this.walkLean.x,rT((b.x*he-b.z*ge)*.03,-.04,.04),8,n),this.walkLean.y=tT(this.walkLean.y,rT((b.x*ge+b.z*he)*.03,-.04,.04),8,n);let _e=this.scratchQ.setFromAxisAngle(KD,-this.yaw),ve=l>0?this.foot.L:this.foot.R,ye=l>0?this.foot.R:this.foot.L,be=l>0?0:1,xe=+(l>0),Se=this.footWorld(be,ve.position),Ce=this.footWorld(xe,ye.position);ve.position.sub(me).applyQuaternion(_e),ye.position.sub(me).applyQuaternion(_e);let P=this.boxer.rig.metrics.ankleHeight;ve.position.y=P+Se,ye.position.y=P+Ce,_S(mS.leadToe,l,ve.toe),_S(mS.rearToe,l,ye.toe);let we=rT(this.tired*.6+this.stunAmount+N*.6,0,1),Te=(Se+Ce)*3;ve.heel=Math.max(0,mS.leadHeel+(ie.heel-1)*.12)+(.5+.5*de)*.09*ue+Math.max(0,-fe)*.06+Te,ye.heel=mS.rearHeel*ie.heel*(1-.7*we)+(.5+.5*de)*.07*ue+Math.max(0,fe)*.07+Te,this.referee&&(ve.heel=ye.heel=Te),ve.pole.copy(ve.toe).setY(.35).normalize(),ye.pole.copy(ye.toe).setY(.35).normalize();let F=this.torso,I=mS.bladeYaw*l,Ee=de*.013,De=(Math.sin(this.weightPhase)*.018+Math.sin(ae*.31+2.2)*.008)*u*(.5+.5*ie.bob),Oe=.012+this.tired*.03+this.stunAmount*.05+N*.025;F.hips.set(De*l+Math.sin(this.stunPhase*.9)*.05*this.stunAmount+this.walkLean.x,mS.hipsHeight+ie.rise-Oe+Ee+pe*.002,fe*.018+this.walkLean.y+ie.weight),F.hipsYaw=I,F.hipsPitch=.02+this.tired*.08,F.hipsRoll=Math.sin(this.stunPhase)*.09*this.stunAmount,F.shouldersYaw=I*mS.shoulderBlade;let ke=(mS.lean+ie.lean)*(1-.5*this.tight);F.spinePitch=mS.hunch+ke*Math.cos(I)+this.tired*.16+N*.06-pe*.012+this.walkLean.y,F.spineRoll=ke*Math.sin(I)+Math.sin(this.stunPhase*1.3)*.06*this.stunAmount-this.walkLean.x+(Math.sin(ae*.61+2)*.018+Math.sin(ae*1.43)*.008)*u*ie.bob,F.headYaw=-.12*l+Math.sin(ae*.9)*.05+Math.sin(this.stunPhase*.7)*.25*this.stunAmount,F.headPitch=mS.chinTuck+Math.sin(ae*1.7)*.02+this.stunAmount*.18+N*.2*(1-this.punchCommit),F.headRoll=Math.sin(this.stunPhase*1.1)*.14*this.stunAmount,F.headOffset.set(0,0,0);let Ae=l>0?this.hand.L:this.hand.R,je=l>0?this.hand.R:this.hand.L,Me=this.headRestChar(l),Ne=rT(this.guardHigh+this.guardLow,0,1),Pe=1-this.crowding,Fe=this.scratch.copy(mS.relaxedLead).lerp(mS.tightLead,this.tight);Fe.x+=ie.lead.x*Pe,Fe.y+=ie.lead.y*Pe,Fe.z+=ie.lead.z*Pe*(1-this.tight*(1-ie.shell)),Fe.lerp(mS.guardHighLead,this.guardHigh).lerp(mS.guardLowLead,this.guardLow);let Ie=this.scratchB.copy(mS.relaxedRear).lerp(mS.tightRear,this.tight).addScaledVector(ie.rear,Pe).lerp(mS.guardHighRear,this.guardHigh).lerp(mS.guardLowRear,this.guardLow);Fe.y-=this.tired*.12+this.stunAmount*.22+N*.06,Ie.y-=this.tired*.1+this.stunAmount*.2+N*.05,Fe.y-=this.guardSpent*nE,Ie.y-=this.guardSpent*nE,Fe.z-=this.guardSpent*.04,Ie.z-=this.guardSpent*.03,Fe.z+=le*.11+Math.sin(ae*2.3)*.012*u,Fe.x+=Math.sin(ae*1.9)*.01*u,Fe.y+=le*.02+Math.sin(ae*1.27+1)*.008*u+pe*.004,Ie.y+=Math.cos(ae*2.7)*.006*u+pe*.004,Ie.x+=Math.sin(ae*1.13+2)*.004*u,Fe.z-=this.guardKick*.07,Ie.z-=this.guardKick*.05,Fe.y-=this.guardKick*.02,Fe.add(Me),Ie.add(Me),Ae.position.set(Fe.x*l,Fe.y,Fe.z),je.position.set(Ie.x*l,Ie.y,Ie.z),_S(mS.leadKnuckles,l,Ae.knuckles),_S(mS.leadPalm,l,Ae.palm),_S(mS.rearKnuckles,l,je.knuckles),_S(mS.rearPalm,l,je.palm),_S(mS.leadPole,l,Ae.pole),_S(mS.rearPole,l,je.pole),Ae.pole.x*=1-.6*this.tight;let Le=Pe*(1-Ne);if(Ae.pole.x+=ie.flare*l*Le,je.pole.x-=ie.flare*l*Le,ie.shell>0){let e=ie.shell*Le;Ae.knuckles.lerp(this.scratchD.set(-.8*l,.1,.6),e).normalize(),Ae.palm.lerp(this.scratchD.set(-.3*l,.35,-.9),e).normalize(),Ae.pole.lerp(this.scratchD.set(.5*l,-.8,-.35),e).normalize()}F.shouldersYaw+=I*.07*le;let Re=mS.leadShrug+(.6-mS.leadShrug)*Ne+pe*.12+le*.2+ie.shrug*Le,ze=mS.rearShrug+(.5-mS.rearShrug)*Ne+pe*.12+Math.min(0,ie.shrug)*Le;if(Ne>.001&&(Ae.pole.lerp(_S(mS.guardHighLeadPole,l,this.scratch),this.guardHigh).lerp(_S(mS.guardLowLeadPole,l,this.scratch),this.guardLow).normalize(),je.pole.lerp(_S(mS.guardHighRearPole,l,this.scratch),this.guardHigh).lerp(_S(mS.guardLowRearPole,l,this.scratch),this.guardLow).normalize(),Ae.knuckles.lerp(_S(mS.guardKnuckles,l,this.scratch),Ne).normalize(),je.knuckles.lerp(_S(mS.guardKnuckles,-l,this.scratch),Ne).normalize(),Ae.palm.lerp(_S(mS.guardPalm,l,this.scratch),Ne).normalize(),je.palm.lerp(_S(mS.guardPalm,-l,this.scratch),Ne).normalize(),F.hips.y-=.03*this.guardHigh+.08*this.guardLow,F.spinePitch+=.05*this.guardHigh+.2*this.guardLow,F.headPitch+=.08*Ne),this.hurt&&this.applyHurtStance(r,l,Ae,je,Me),Math.abs(this.slip)>.001||this.weave>.001||this.pull>.001){let e=F.hips.x,t=F.hips.y,n=F.hips.z,r=F.spinePitch,i=F.spineRoll,a=F.shouldersYaw,o=this.slip;F.shouldersYaw+=o*.22,F.hipsYaw+=o*.1,this.leanHead(o*.18,0),F.hips.x+=o*.05,F.hips.y-=Math.abs(o)*.04;let s=this.weave,c=rT(this.weaveTime/dO,0,1),u=Math.sin(c*Math.PI),d=s*(1-2*c)*l;F.hips.y-=s*(.08+.14*u),F.hips.x+=d*.04,this.leanHead(d*.14,s*(.04+.06*u));let f=this.pull;F.hips.z-=f*.1,F.hips.y-=f*.03,this.leanHead(0,-f*.2),F.headPitch-=f*.06;let p=this.headTravel(this.scratch,e,t,n,r,i,a);Ae.position.add(p),je.position.add(p)}this.punchCommit=tT(this.punchCommit,+!!this.punchActive,10,n);let Be=this.crowding*(1-this.clinchWeight)*(1-this.punchCommit);if(Be>.001&&(F.headOffset.x-=Be*.075,F.headOffset.z-=Be*.04,F.headYaw-=Be*.2,F.spinePitch-=Be*.07,F.hips.z-=Be*.05,Ae.position.z-=Be*.14,Ae.position.x-=Be*.035*l,je.position.z-=Be*.07),Math.abs(this.headSpace.x)+Math.abs(this.headSpace.y)>.001){let e=this.headSpace.x,t=this.headSpace.y,n=1-this.clinchWeight;F.spinePitch+=t*.7*n,F.spineRoll-=e*.7*n,F.hips.z+=t*.1*n,F.hips.x+=e*.05*n,F.headOffset.x+=e*.05,F.headOffset.z+=t*.05,F.headPitch+=t*.2,F.headRoll-=e*.3}if(this.ropeLean=tT(this.ropeLean,this.referee||this.downState!==`up`?0:this.ropeLeanTarget,xT,n),this.ropeLean>.001){let e=this.ropeLocal.copy(this.ropeOutward).applyAxisAngle(KD,-this.yaw);F.hipsPitch+=e.z*yT*this.ropeLean,F.hipsRoll-=e.x*bT*this.ropeLean}if(this.referee||this.applyReactions(Ae,je,ve,ye),this.punchActive){let e=this.applyPunch(l,Ae,je,ve,ye,Me);this.punchReach=e,this.punchHand===`left`==l>0?Re=Math.max(Re,e):ze=Math.max(ze,e)}if(this.referee&&(Re=ze=this.applyRefereePose(l,Ae,je,ve,ye,r,o,n,e.stunned_ticks),this.applyReactions(Ae,je,ve,ye)),this.clinchWeight>.001&&this.applyClinchPose(this.clinchWeight,r,l,e,t,Ae,je,Me),this.foulWeight>.001){let e=this.foulWeight;F.hips.y-=e*.16,F.spinePitch+=e*.55,F.headPitch+=e*.2,Ae.position.lerp(this.scratch.set(.06*l,.72,.16),e),je.position.lerp(this.scratch.set(-.05*l,.7,.14),e),Ae.pole.set(.6*l,-.6,.5),je.pole.set(-.6*l,-.6,.5)}if(this.tauntWeight>.001){let e=this.tauntEnd===null?0:rT(this.tauntEnd-o,0,eE);this.applyTauntPose(this.tauntWeight,(eE-e)/eE*tE,l,Ae,je,Me)}if(this.dislocation===`shoulder_left`||this.dislocation===`shoulder_right`){let e=this.dislocation===`shoulder_left`?this.hand.L:this.hand.R,t=this.dislocation===`shoulder_left`?1:-1;e.position.set(.24*t,.55,.05),e.pole.set(.9*t,-.3,.2),e.knuckles.set(0,-1,.1),e.palm.set(-t,0,.2)}this.winded>.001&&(this.downState===`up`||E)&&this.applyWindedPose(this.winded,r,l,Ae,je),this.hurt&&this.downState===`up`&&this.applyHurtActs(r,l,ve,ye),this.touchWeight>.001&&this.downState===`up`&&this.applyTouchGlovesPose(this.touchWeight,l,Ae,je),this.celebration>.001&&this.downState===`up`&&this.applyCelebratePose(this.celebration,r,l,Ae,je,ve,ye),this.wave>.001&&this.downState===`up`&&this.applyWaveOffPose(this.wave,r,l,Ae,je),this.squareWeight>.001&&this.downState===`up`&&(this.applyVerdictPose(this.squareWeight,r,l,Ae,je,ve,ye,Me),ve.heel*=1-this.squareWeight,ye.heel*=1-this.squareWeight,Re=R.lerp(Re,this.breath*.15,this.squareWeight),ze=R.lerp(ze,this.breath*.15,this.squareWeight)),(this.wristWeights[0]>.001||this.wristWeights[1]>.001)&&this.downState===`up`&&this.applyRaisePose(l,Ae,je),this.breakWeight>.001&&this.downState===`up`&&this.applyBreakPose(this.breakWeight,l,Ae,je),this.attendWeight>.001&&this.downState===`up`&&this.applyAttendPose(this.attendWeight,r,l,Ae,je),this.treatWeight>.001&&this.downState===`up`&&this.applyTreatPose(this.treatWeight,r,l,Ae,je,ve,ye),this.seated>.001&&this.downState===`up`&&this.applySeatedPose(this.seated,r,l,Ae,je,ve,ye),this.downState!==`up`&&this.applyDownPose(l,Ae,je,ve,ye),this.steadyJointPoles(l,Ae,je,ve,ye,n),Oe=0;let Ve=this.pose;Ve.shrugL=l>0?Re:ze,Ve.shrugR=l>0?ze:Re;let He=this.ragdoll;if(He?.active===!0&&i&&(He.stop(),He.clearRise()),He?.active===!0&&!He.handingOver)He.setLost(c.isDecapitated,c.isHandDismembered(`left`),c.isHandDismembered(`right`)),He.update(n,this.obstacle),this.hurt&&this.dropDangles();else{if(this.solver.apply(c.root,this.pose),He?.handingOver===!0)He.followPose(n,this.obstacle),this.riseProgress>=TT&&He.handOverSeconds>=PT&&(He.letGo(),this.riseBlendAge=0);else if(He!==null&&He.hasRisePose){let e=$x(0,NT,this.riseBlendAge);e<1&&this.downState!==`up`?He.blendRise(e):He.clearRise()}this.hurt&&this.dangleArms(n),He?.sample(n)}this.applyDislocation();let Ue=Math.min(1,(t.trauma.bleeding+t.trauma.left_cut+t.trauma.right_cut+t.trauma.head/4)/300*(a===`off`?0:a===`reduced`?.15:1.5));c.setGloveBlood(Ue),c.setTrunksBlood(ov(e.trauma,a)),av(c.headInjury,e.trauma,a),sv(c.bodyInjury,e.trauma,a),c.setSkinClearcoat(.25+(1-O)*.4),this.laidOut=!1}applyTauntPose(e,t,n,r,i,a){let o=this.torso,s=.5-.5*Math.cos(t*Math.PI*2);i.position.lerp(this.scratch.set(-.3*n,a.y-.62,.02),e),i.pole.lerp(this.scratch.set(-.5*n,-.4,-.75),e).normalize(),i.knuckles.lerp(this.scratch.set(-.1*n,-.95,.3),e).normalize(),i.palm.lerp(this.scratch.set(0,.3,.95),e).normalize(),r.position.lerp(this.scratch.set(.26*n,a.y-.36+s*.1,.52-s*.24),e),r.pole.lerp(this.scratch.set(.7*n,-.7,.1),e).normalize(),r.knuckles.lerp(this.scratch.set(.1*n,.25+s*.6,.95-s*.7),e).normalize(),r.palm.lerp(this.scratch.set(-.2*n,.95,-.2-s*.5),e).normalize(),o.spinePitch-=e*.12,o.headPitch-=e*.22,o.headYaw+=Math.sin(t*Math.PI)*.15*e,o.shouldersYaw+=Math.sin(t*Math.PI*3)*.1*e,o.hips.x+=Math.sin(t*Math.PI)*.03*e*n,o.headOffset.z+=e*.03}applyClinchPose(e,t,n,r,i,a,o,s){let c=this.torso,l=r.player_idy&&(h.x*=y/v,h.z*=y/v),h.x+=o,h.z+=u,t.position.lerp(h,e),t.pole.lerp(this.clinchTemp.set(r*.85,l?.35:-.6,.25),e).normalize(),t.knuckles.lerp(this.clinchTemp.set(-p*r*.9+f.x*.3,l?-.25:.1,-m*r*.9+f.z*.3),e).normalize(),t.palm.lerp(this.clinchTemp.set(-f.x,l?.1:.35,-f.z),e).normalize()}}holdOnTheRopes(e,t,n){if(this.referee)return this.ropeLeanTarget=0,this.ropeHold.set(0,0,0);this.ropeLeanTarget=ST(t,n,this.ropeExcess,this.ropeOwn);let r=Math.hypot(this.ropeExcess.x,this.ropeExcess.z);r>0&&this.ropeOutward.set(this.ropeExcess.x/r,0,this.ropeExcess.z/r);let i=this.mapping.x(e.x),a=this.mapping.z(e.y);ST(i,a,this.ropeTheirs,this.ropeTheirs);let o=1-$x(hT,gT,Math.hypot(i-t,a-n));return this.ropeHold.set(CT(this.ropeOwn.x,this.ropeTheirs.x*o),0,CT(this.ropeOwn.z,this.ropeTheirs.z*o))}headRestChar(e){let t=this.boxer.rig.metrics;return this.headWorld.set(-.08,t.headHeight-t.hipsHeight+this.torso.hips.y,.02)}syncAction(e,t,n,r){this.shownFighter=e,this.shownOpponent=t;let i=this.ownQueued;if(i!==null&&e.action_id===i.action.id&&(this.ownQueued=null,this.retirePunch(),this.startOwnPunch(i),this.ownPress=!1),e.action_id!==null&&e.action_id!==this.actionId&&e.action_id!==this.completedActionId&&!this.retiredOwnIds.includes(e.action_id)){let t=e.action;if(t!==null){let r=e.action_hand??(e.stance===`orthodox`?`left`:`right`),i=this.ownActionId===e.action_id&&this.punchActive,a=this.punchTiming;this.actionId=e.action_id,this.punchClass=t,this.punchHand=r,this.punchTarget=e.action_target??`head`,this.punchPower=e.action_power??`normal`,this.punchTiming={...N(this.punchClass,this.punchTarget,this.punchPower),startup:e.action_startup_ticks,active:e.action_active_ticks,recovery:e.action_recovery_ticks},this.punchTotalTicks=Math.max(1,e.action_startup_ticks+e.action_active_ticks+e.action_recovery_ticks);let o=Math.max(0,n-e.action_start_tick);i?(this.punchAgeTicks=hO(this.punchAgeTicks,a,this.punchTiming),this.ownAuthoritativeAge=o,this.ownRefused||(this.ownPulled=!1,this.ownCut=!1,o-this.punchAgeTicks>1&&(this.punchAgeTicks=o))):(this.punchAgeTicks=o,this.ownActionId=null,this.ownPress=!1,this.ownLeadTicks=0,this.ownAuthoritativeAge=null),this.ownWaitedTicks=0,this.punchActive=!0}}if(e.action_id===null)this.actionId=null,this.completedActionId=null;else if(e.action_id===this.actionId&&this.punchActive){let t=Math.max(0,n-e.action_start_tick);this.ownActionId===this.actionId?(this.ownAuthoritativeAge=t,!this.ownPulled&&t-this.punchAgeTicks-this.hitstopLag>1.5&&(this.punchAgeTicks=t)):Math.abs(this.punchAgeTicks+this.hitstopLag-t)>1.5&&(this.punchAgeTicks=t,this.hitstopLag=0)}if(this.punchActive&&this.ownActionId!==null&&this.ownAuthoritativeAge===null&&!this.ownPulled&&!this.ownCut&&(this.ownWaitedTicks+=r*30,this.ownWaitedTicks>this.ownExpectedTicks*1.5+JD&&(this.ownPress?!this.ownStarted:this.punchAgeTicks=e,n=this.hitstop>0?0:Math.min(this.hitstopLag,r*30*ZD);this.hitstopLag-=n,this.punchAgeTicks+=r*30*(t?XD:this.ownPunchRate())+n,this.ownPress&&this.ownActionId!==null&&!this.ownCut&&this.punchAgeTicks>=this.punchTiming.startup&&this.pressesLanded.at(-1)!==this.ownActionId&&(this.pressesLanded.push(this.ownActionId),this.pressesLanded.length>6&&this.pressesLanded.shift()),this.punchAgeTicks>=this.punchTotalTicks&&this.retirePunch()}e.is_downed&&(this.punchActive&&this.retirePunch(),this.ownQueued=null),this.releaseQueuedPress(r);let a=this.actionId??this.ownActionId;a!==this.aimActionId&&(this.aimActionId=a,this.followHead=0),this.followHead=tT(this.followHead,+(a!==null&&a===this.contactId),pO,r),this.followReferee=tT(this.followReferee,+(a!==null&&a===this.refereeContactId),pO,r)}trackOpponentHead(e,t,n){let r=this.guardOpponentHead.set(this.mapping.x(e.x),0,this.mapping.z(e.y));this.opponentSteadySeconds=lO.has(e.defense)?0:this.opponentSteadySeconds+n,(!this.hasLiveHead||this.opponentSteadySeconds>=fO)&&this.opponentHeadOffset.copy(t).sub(r),r.add(this.opponentHeadOffset),this.liveOpponentHead.copy(t),this.hasLiveHead=!0}ownPunchRate(){if(this.ownActionId===null||this.ownPress)return 1;let e=this.punchTiming.startup,t=this.ownAuthoritativeAge;return t===null?this.punchAgeTicks0,_=g?t:n,v=g?n:t,y=(g?1:-1)*e,b=+(this.punchPower===`power`),x=+(this.punchTarget===`body`),S,C,w,T=1,E=1,D=0,O=1,k=1,ee=0,A=0;if(ue&&Me.set(Me.x*e/t,Me.y,Me.z*e/t),Me.add(Oe)}else Me.multiplyScalar(Math.min(1,Ae/Math.max(1e-6,n))).add(Oe)}if(fe>i.heel&&(i.heel+=(fe-i.heel)*O),pe>r.heel&&(r.heel+=(pe-r.heel)*O),he>0){let t=this.scratchQ.setFromAxisAngle(KD,-he*e*O);r.toe.applyQuaternion(t),r.pole.applyQuaternion(t)}if(me>0){let t=this.scratchQ.setFromAxisAngle(KD,me*e*O);i.toe.applyQuaternion(t),i.pole.applyQuaternion(t)}let Pe=this.scratchE;switch(m){case`hook`:Pe.set((.1+.03*b)*y,-.05,-.06);break;case`uppercut`:Pe.set(.03*y,-.26,-.04);break;case`straight`:Pe.set(.02*y,-.02,-.04-.05*b);break;default:Pe.set(0,-.01,-.02-.07*b)}Pe.y-=.05*b,Pe.z-=(h?.07:.12)*b;let Fe=this.punchStart.copy(re).addScaledVector(Pe,Math.max(C,h?(1-j)*.6*T:0)),Ie=A*this.punchMiss;if(m===`hook`){let e=Math.hypot(Fe.x-Oe.x,Fe.z-Oe.z),t=Math.hypot(Me.x-Oe.x,Me.z-Oe.z),n=this.punchSweepFrom.copy(Fe).sub(Oe).setY(0).normalize(),r=this.punchSweepTo.copy(Me).sub(Oe).setY(0).normalize(),i=Math.acos(rT(n.dot(r),-1,1)),a=n.z*r.x-n.x*r.z>=0?1:-1,o=$x(0,1,j),s=n.applyAxisAngle(KD,(i*o+.5*Ie)*a).normalize();_.position.copy(Oe).addScaledVector(s,R.lerp(e,t,o)),_.position.y=R.lerp(Fe.y,Me.y,o),_.pole.set(.9*y,.2+.5*(1-x),.25).normalize(),_.knuckles.copy(s).applyAxisAngle(KD,a*Math.PI/2).setY(.05).normalize(),_.palm.set(0,-1,0)}else if(m===`uppercut`){let e=$x(0,1,j),t=this.punchMid.set(Fe.x+(Me.x-Fe.x)*.6,Math.min(Fe.y,Me.y-.12),Fe.z+(Me.z-Fe.z)*.75);_.position.copy(Fe).multiplyScalar((1-e)*(1-e)).addScaledVector(t,2*(1-e)*e).addScaledVector(Me,e*e),_.position.y+=.05*ee+.14*Ie,_.pole.set(.3*y,-1,-.1).normalize(),_.knuckles.set(.05*y,.9,.35).normalize(),_.palm.set(-.2*y,.3,-.95).normalize()}else{_.position.copy(Fe).lerp(Me,Math.min(1,j)).addScaledVector(ke,.14*Ie),_.position.y+=Math.sin(rT(j,0,1)*Math.PI)*.025,_.pole.set(.55*y,-.9,.35);let e=$x(.55,1,j);_.knuckles.copy(ke).lerp(this.scratchC.set(.1*y,.55,.8),1-e).normalize(),_.palm.set(-.9*y,.2,-.3).lerp(this.scratchC.set(0,-1,.1),e).normalize()}if(M>0&&(_.position.lerp(re,M),_.knuckles.lerp(ie,M).normalize(),_.palm.lerp(N,M).normalize(),_.pole.lerp(ae,M).normalize()),E<1){let e=(1-_.pole.dot(ae)/Math.max(1e-6,_.pole.length()*ae.length()))/2,t=Math.sin(Math.PI*E);_.knuckles.lerp(ie,1-E).normalize(),_.palm.lerp(N,1-E).normalize(),_.pole.lerp(ae,1-E).addScaledVector(this.scratchC.set(y,0,0),mO*e*t*t).normalize()}let Le=this.scratchE.set(-.11*y,a.y-.13,.13+a.z);v.position.lerp(Le,Math.max(k,te)*.8).add(this.headTravel(this.scratchC,ve,ye,be,xe,Se,Ce));let Re=this.hasLiveHead?$x(.08,.2,this.guardOpponentHead.distanceTo(this.liveOpponentHead))*(1-this.followHead):0;return this.punchMiss=Math.max($x(.02,.12,Ne),Re),te}hurtRandom(){return this.hurtSeed=Math.imul(this.hurtSeed,1664525)+1013904223>>>0,this.hurtSeed/4294967296}applyReactions(e,t,n,r){let i=this.torso,a=this.headKick.value;i.headOffset.addScaledVector(a,.4),this.leanHead(a.x*.6,a.z*.6),i.headPitch+=a.z*2.6-a.y*2,i.headYaw+=a.x*2.6,i.headRoll+=-a.x*1.1,i.shouldersYaw+=this.torsoKick.value.y,i.hipsYaw+=this.torsoKick.value.y*.4,i.spinePitch+=this.torsoKick.value.x,i.spineRoll+=this.torsoKick.value.z*.5,i.hips.x+=this.rootKick.value.x,i.hips.z+=this.rootKick.value.z,i.hips.y-=Math.max(0,this.torsoKick.value.x)*.08,this.torsoKick.value.x>.05&&(e.position.y-=this.torsoKick.value.x*.25,t.position.y-=this.torsoKick.value.x*.2,e.position.z-=this.torsoKick.value.x*.1);let o=Math.max(0,this.rootKick.value.y);i.hips.y+=this.downState===`up`?this.rootKick.value.y:o,n.heel+=o*6,r.heel+=o*6;let s=this.coverKick.value.x;if(Math.abs(s)>.002){let e=s>0?this.hand.R:this.hand.L;e.position.y-=Math.abs(s)*.9,e.position.x+=s*.2,e.position.z-=Math.abs(s)*.25,e.pole.y-=Math.abs(s)*3}let c=this.hand.L.position,l=this.hand.R.position;c.add(this.armKick.value),l.addScaledVector(this.armKick.value,.8);let u=$x(0,1,this.handsDrop);c.set(c.x+.07*u,c.y-.24*u,c.z-.04*u),l.set(l.x-.07*u,l.y-.22*u,l.z-.03*u),i.hips.y-=this.guardKick*.02;let d=this.downState===`up`&&!this.referee?this.stunAmount:0;if(d>.01){let e=this.rockedTime,t=this.rockedPhase,n=Math.max(0,Math.sin(e*3.3+t)*Math.sin(e*1.9+t*1.7)),r=.5+.5*Math.sin(e*1.1+t*1.7);i.hips.y-=d*(.02+.08*n),i.hips.x+=d*.04*Math.sin(e*2.1+t*2.9),i.hips.z+=d*.03*Math.sin(e*1.3+t),i.headRoll+=d*.2*Math.sin(e*2.1+t*2.9-1.1),i.headPitch+=d*.1*Math.sin(e*1.3+t-.9),c.set(c.x+d*.07*r,c.y-d*.05*r,c.z),l.set(l.x-d*.07*r,l.y-d*.08*(1-r),l.z)}}legRoom(e,t){let n=this.torso,r=e.position.x-n.hips.x-t*Yx.x*Math.cos(n.hipsYaw),i=e.position.z-n.hips.z+t*Yx.x*Math.sin(n.hipsYaw);return e.position.y+Math.sqrt(Math.max(.04,VT*VT-r*r-i*i))-Yx.y}applyRefereePose(e,t,n,r,i,a,o,s,c=0){let l=this.torso,u=R.lerp,d=this.countWeight=tT(this.countWeight,+!!this.refereeCounting,5,s),f=Math.sin(a*.7)*.08,p=this.refereeCounting?.75:.06;if(this.breakAimed){let e=G.copy(this.watching?this.watchPoint:this.breakFighters[Math.sin(this.weightPhase*.32)+Math.sin(this.weightPhase*.125)>0?0:1]);this.watching||(e.y=UT-.1),e.x-=this.rootX??0,e.z-=this.rootZ,e.applyAxisAngle(KD,-this.yaw),f=rT(Math.atan2(e.x,e.z),-1,1)*.85,p=rT(Math.atan2(UT-e.y,Math.hypot(e.x,e.z)),-.2,.85)}this.gazeYaw=tT(this.gazeYaw,f,6,s),this.gazePitch=tT(this.gazePitch,p,6,s);let m=d*$x(.2,.6,this.gazePitch),h=Math.sin(a*1.6),g=Math.sin(this.weightPhase*.35)*.02+Math.sin(this.weightPhase*.9+1)*.006,_=Math.hypot(this.travel.x,this.travel.z),v=Math.min(1,_/.4);l.hipsYaw=this.strideYaw*.7,l.shouldersYaw=this.strideYaw*.2+this.gazeYaw*.25,l.hipsPitch=.04+m*.2,l.hipsRoll=0,l.spinePitch=.1+h*.008+rT(this.travel.z,-1,1.5)*.04+d*.06+m*.3,l.spineRoll=-g*.6-this.travel.x*.03,l.headYaw=this.gazeYaw,l.headPitch=.04+this.gazePitch,l.headRoll=0,l.hips.set(g,0,-m*.1);let y=this.footYaw[e>0?0:1]-this.yaw,b=this.footYaw[+(e>0)]-this.yaw;r.toe.set(Math.sin(y),0,Math.cos(y)),i.toe.set(Math.sin(b),0,Math.cos(b)),r.pole.copy(r.toe).setY(.3).normalize(),i.pole.copy(i.toe).setY(.3).normalize();let x=_>.001?v/_:0;r.heel=rT((-(r.position.x*this.travel.x+r.position.z*this.travel.z)*x-.08)*3.5,0,.75),i.heel=rT((-(i.position.x*this.travel.x+i.position.z*this.travel.z)*x-.08)*3.5,0,.75);let S=((r.position.x-i.position.x)*this.travel.x+(r.position.z-i.position.z)*this.travel.z)*(x/Math.max(_,.001))*.1;l.hips.y=Math.max(BT-.14,Math.min(BT-m*.05,this.legRoom(r,e),this.legRoom(i,-e)));let C=l.hips.y+.24+h*.004;if(t.position.set(.16*e-this.travel.x*S,C,.3-this.travel.z*S),n.position.set(-.16*e+this.travel.x*S,C-.015,.28+this.travel.z*S),t.pole.set(.7*e,-.5,-.5).normalize(),n.pole.set(-.7*e,-.5,-.5).normalize(),t.knuckles.set(-.35*e,.05,.9).normalize(),n.knuckles.set(.35*e,.05,.9).normalize(),t.palm.set(-.65*e,-.75,.05).normalize(),n.palm.set(.65*e,-.75,.05).normalize(),d>.001){if(this.refereeCounting){this.countChangedTick??=o;let e=rT((o-this.countChangedTick)/te,0,1);this.countPump=e.001&&(l.spinePitch=u(l.spinePitch,-.04,w),t.position.lerp(G.set(.32*e,l.hips.y+.6,.2),w),n.position.lerp(G.set(-.32*e,l.hips.y+.6,.2),w),t.knuckles.lerp(G.set(.1*e,1,.1),w).normalize(),n.knuckles.lerp(G.set(-.1*e,1,.1),w).normalize(),t.palm.lerp(G.set(0,.1,1),w).normalize(),n.palm.lerp(G.set(0,.1,1),w).normalize(),t.pole.lerp(G.set(.6*e,-.8,-.1),w).normalize(),n.pole.lerp(G.set(-.6*e,-.8,-.1),w).normalize()),c>0){let r=Math.min(1,c/12),i=Math.sin(a*9.5);l.hips.y-=.09*r,l.hips.x+=i*.05*r,l.spineRoll+=i*.18*r,l.headRoll-=i*.35*r,l.headPitch+=.25*r,t.position.x+=.18*e*r,n.position.x-=.18*e*r,t.position.y-=.1*r,n.position.y-=.1*r}return .05+h*.025}updateDownState(e,t,n,r){if(this.riseBlendAge+=t,e.is_downed||this.forcedDown||this.dead){if(this.downState===`up`||this.downState===`rising`||this.deathFall)this.deathFall=!1,this.fallFromGetUp=this.downState!==`up`,this.fallFromGetUp&&(RD(this.fallStart,this.downResult),this.fallStartStand=this.downStand),this.downState=`falling`,this.fallAge=0,this.riseProgress=0,this.riseRootFrom.copy(this.riseRoot),this.landSettled=!1,this.fallenFromPhysics=!1,this.downPolesSet=!1,this.ragdoll?.clearRise(),this.authoredNextFall?this.ragdoll?.forget():n||this.startFall(e),this.authoredNextFall=!1;else if(this.downState===`falling`)this.fallAge+=t,this.fallAge>=wT&&(this.downState=`down`);else if(this.fallKneel)this.riseProgress=ET;else{let n=(!this.forcedDown&&!this.heldDown&&!this.dead&&e.get_up_required>0?rT(e.get_up_meter/e.get_up_required,0,1):0)*ET;if(this.ragdoll?.active===!0&&!this.ragdoll.handingOver){if(n<=0)return;this.handOverFall(e)}this.riseProgress+=rT(n-this.riseProgress,-.4*t,kT*t)}return}if((this.downState===`down`||this.downState===`falling`)&&(this.downState=`rising`,this.ragdoll?.active===!0&&!this.ragdoll.handingOver&&this.handOverFall(e),this.fallKneel&&(this.riseProgress=Math.max(this.riseProgress,ET)),this.riseFrom=this.riseProgress,this.feetInitialized=!1),this.downState!==`rising`)return;let i=r>.3||this.punchActive,a=(1-this.riseFrom)/(i?OT:DT);this.riseProgress=Math.min(1,this.riseProgress+(this.riseProgress=1&&(this.downState=`up`,this.fallKneel=!1)}startFall(e){let t=this.ragdoll;t!==null&&(this.rootX!==null&&Math.hypot(this.place.x-this.rootX,this.place.z-this.rootZ)>FT&&(this.rootX=this.place.x,this.rootZ=this.place.z,this.boxer.root.position.set(this.rootX,0,this.rootZ)),t.start(this.dead?this.deathStyle:`crumple`),e.get_up_count>0&&!this.dead&&(t.settle(),this.fallAge=wT))}handOverFall(e){let t=this.ragdoll;if(t===null||!t.active||t.handingOver)return;let n=e.stance===`orthodox`?1:-1,r=this.boxer.rig.bones;this.boxer.root.updateMatrixWorld(!0);let i=this.scratchC.set(this.rootX??0,0,this.rootZ),a=this.scratchQ.setFromAxisAngle(KD,-this.yaw),o=this.fallen,s=(e,t)=>t.setFromMatrixPosition(e.matrixWorld).sub(i).applyQuaternion(a),c=(e,t,n,r)=>kD(mD.setFromQuaternion(e.getWorldQuaternion(pD).premultiply(a),`YXZ`),t,n,r);s(r.hips,o.hips),this.landProne=t.faceDown();let l=Math.abs(o.hips.x)>.12?Math.sign(o.hips.x):0,u=this.landProne?TD(this.downTo,xD,SD,n,l,this.boxer.rig.metrics.ankleHeight):TD(this.downTo,yD,bD,n,l,this.boxer.rig.metrics.ankleHeight);this.landSide=l,this.landShift.set(o.hips.x-u.hips.x,0,o.hips.z-u.hips.z);let d=c(r.hips,u.hipsPitch,u.hipsYaw,u.hipsRoll);o.hipsPitch=d.x,o.hipsYaw=d.y,o.hipsRoll=d.z;let f=c(r.upperChest,o.hipsPitch,o.hipsYaw,o.hipsRoll);o.shouldersYaw=f.y,o.spinePitch=f.x-o.hipsPitch,o.spineRoll=f.z-o.hipsRoll;let p=c(r.head,f.x,f.y,f.z);o.headPitch=p.x,o.turn=p.y,o.headRoll=p.z,s(n>0?r.gloveL:r.gloveR,o.leadHand),s(n>0?r.gloveR:r.gloveL,o.rearHand),s(n>0?r.ankleL:r.ankleR,o.leadFoot),s(n>0?r.ankleR:r.ankleL,o.rearFoot);let m=this.boxer.rig.metrics.ankleHeight;o.leadFoot.y=Math.max(o.leadFoot.y,m),o.rearFoot.y=Math.max(o.rearFoot.y,m);let h=(e,t,n,r,i)=>{let o=s(e,this.scratchB),c=s(n,this.scratchD).sub(o).normalize();s(t,r).sub(o),r.addScaledVector(oD.copy(i).applyQuaternion(e.getWorldQuaternion(pD)).applyQuaternion(a),fD),r.addScaledVector(c,-r.dot(c)),r.lengthSq()>1e-6?r.normalize():r.copy(i===lD?sD:cD)},g=n>0;h(g?r.hipL:r.hipR,g?r.kneeL:r.kneeR,g?r.ankleL:r.ankleR,o.leadKnee,lD),h(g?r.hipR:r.hipL,g?r.kneeR:r.kneeL,g?r.ankleR:r.ankleL,o.rearKnee,lD),h(g?r.shoulderL:r.shoulderR,g?r.elbowL:r.elbowR,g?r.gloveL:r.gloveR,o.leadElbow,g?uD:dD),h(g?r.shoulderR:r.shoulderL,g?r.elbowR:r.elbowL,g?r.gloveR:r.gloveL,o.rearElbow,g?dD:uD);let _=(e,t,n)=>{let r=e.getWorldQuaternion(pD).premultiply(a);t.set(0,1,0).applyQuaternion(r),n.set(0,0,1).applyQuaternion(r)};_(g?r.gloveL:r.gloveR,o.leadKnuckles,o.leadPalm),_(g?r.gloveR:r.gloveL,o.rearKnuckles,o.rearPalm),o.ownJoints=1,o.leadHeel=0,o.rearHeel=0,o.palmsDown=+!!this.landProne,this.fallenFromPhysics=!0,this.landSettled=!0,this.downPolesSet=!1,t.handOver(),this.riseBlendAge=0;let v=this.scratchE.set(t.pelvis(this.scratchD).x-(this.rootX??0),0,this.scratchD.z-this.rootZ),y=this.scratchB.copy(v).applyQuaternion(a);for(let e of[o.hips,o.leadHand,o.rearHand,o.leadFoot,o.rearFoot])e.x-=y.x,e.z-=y.z;t.shiftRise(this.scratchC.copy(v).negate()),this.rootX=(this.rootX??0)+v.x,this.rootZ+=v.z,this.boxer.root.position.set(this.rootX,0,this.rootZ),this.riseRoot.set(this.rootX-this.mapping.x(e.x)-this.touchOffset.x,0,this.rootZ-this.mapping.z(e.y)-this.touchOffset.z),this.riseRootFrom.copy(this.riseRoot)}walkBackFromTheFall(e){let t=this.downState===`rising`?1-$x(ET,1,this.riseProgress):this.downState===`up`?0:1,n=this.riseRootFrom.x*t,r=this.riseRootFrom.z*t;e>0?this.riseRootVelocity.set((n-this.riseRoot.x)/e,0,(r-this.riseRoot.z)/e):this.riseRootVelocity.set(0,0,0),this.riseRoot.set(n,0,r),t===0&&this.riseRootFrom.set(0,0,0)}steadyJointPoles(e,t,n,r,i,a){if(this.poleSettle=this.downState===`up`?Math.max(0,this.poleSettle-a):MT,this.poleSettle<=0||this.ragdoll?.active===!0&&!this.ragdoll.handingOver){this.downPolesSet=!1;return}let o=this.boxer.rig.bones,s=e>0;this.characterInverse.copy(this.boxer.root.matrixWorld).invert();for(let e=0;e<4;e+=1){let c=e<2,l=e%2==0,u=l===s,d=c?u?o.hipL:o.hipR:u?o.shoulderL:o.shoulderR,f=c?l?r:i:l?t:n,p=f.position,m=f.pole,h=this.downPoles[e];if(!this.downPolesSet){h.copy(m);continue}let g=this.scratchB.setFromMatrixPosition(d.matrixWorld).applyMatrix4(this.characterInverse).sub(p).negate();if(g.lengthSq()<1e-6){h.copy(m);continue}g.normalize();let _=this.scratchD.copy(h).addScaledVector(g,-h.dot(g)),v=this.scratchE.copy(m).addScaledVector(g,-m.dot(g));if(_.lengthSq()<1e-4||v.lengthSq()<1e-4){h.copy(m);continue}let y=Math.atan2(this.scratch.crossVectors(_,v).dot(g),_.dot(v)),b=jT*Math.max(a,1/120);Math.abs(y)<=b||m.copy(_.normalize().applyAxisAngle(g,Math.sign(y)*b)),h.copy(m)}this.downPolesSet=!0}applyWindedPose(e,t,n,r,i){let a=this.torso,o=R.lerp,s=this.windedSide,c=Math.sin(t*23)*.006;a.hips.y=o(a.hips.y,mS.hipsHeight-.1,e),a.hips.z=o(a.hips.z,-.04,e),a.hipsPitch=o(a.hipsPitch,.2,e),a.spinePitch=o(a.spinePitch,.62+c,e),a.spineRoll=o(a.spineRoll,s*.16,e),a.headPitch=o(a.headPitch,.38,e);let l=s>0?this.hand.L:this.hand.R,u=l===r?i:r;l.position.lerp(G.set(s*.13,.98,.17),e),l.palm.lerp(G.set(-s*.6,0,-.8),e).normalize(),l.knuckles.lerp(G.set(-s*.5,.5,.2),e).normalize(),l.pole.lerp(G.set(s*.9,-.3,-.3),e).normalize(),u.position.lerp(G.set(-s*.2,.86,.3),e),u.pole.lerp(G.set(-s*.8,-.6,0),e).normalize()}applyTouchGlovesPose(e,t,n,r){let i=this.torso,a=R.lerp;i.hips.z=a(i.hips.z,.06,e),i.hipsYaw=a(i.hipsYaw,i.hipsYaw*.4,e),i.shouldersYaw=a(i.shouldersYaw,0,e),i.spinePitch=a(i.spinePitch,.12,e),i.headPitch=a(i.headPitch,.1,e),n.position.lerp(G.set(.11*t,1.24,.5),e),r.position.lerp(G.set(-.11*t,1.22,.47),e),n.palm.lerp(G.set(-t,0,0),e).normalize(),r.palm.lerp(G.set(t,0,0),e).normalize(),n.knuckles.lerp(G.set(0,.15,1),e).normalize(),r.knuckles.lerp(G.set(0,.15,1),e).normalize(),n.pole.lerp(G.set(.7*t,-.7,0),e).normalize(),r.pole.lerp(G.set(-.7*t,-.7,0),e).normalize()}touchWalk(e,t,n,r){this.countdownEnd=VD(this.countdownEnd,r,this.countdownTicks);let i=this.countdownEnd===null?0:HD(this.countdownEnd-r),a=this.mapping.x(t.x)-this.mapping.x(e.x),o=this.mapping.z(t.y)-this.mapping.z(e.y),s=Math.hypot(a,o),c=s>JT?(s-JT)/2/s*i:0;return this.touchVelocity.set(a*c-this.touchOffset.x,0,o*c-this.touchOffset.z).divideScalar(Math.max(n,.001)).clampLength(0,$T),this.touchOffset.set(a*c,0,o*c)}applyCelebratePose(e,t,n,r,i,a,o){let s=this.torso,c=R.lerp,l=Math.sin(t*6)*.04;s.hips.y=c(s.hips.y,mS.hipsHeight+.035+l*.5,e),s.hipsYaw=c(s.hipsYaw,0,e),s.hipsPitch=c(s.hipsPitch,-.12,e),s.hipsRoll=c(s.hipsRoll,0,e),s.shouldersYaw=c(s.shouldersYaw,0,e),s.spinePitch=c(s.spinePitch,-.1,e),s.headPitch=c(s.headPitch,-.25,e),r.position.lerp(G.set(.3*n,1.86+l,.08),e),i.position.lerp(G.set(-.3*n,1.84+l,.06),e),r.palm.lerp(G.set(0,0,1),e).normalize(),i.palm.lerp(G.set(0,0,1),e).normalize(),r.knuckles.lerp(G.set(.15*n,1,0),e).normalize(),i.knuckles.lerp(G.set(-.15*n,1,0),e).normalize(),r.pole.lerp(G.set(n,.1,-.3),e).normalize(),i.pole.lerp(G.set(-n,.1,-.3),e).normalize(),a.heel=c(a.heel,.45,e),o.heel=c(o.heel,.45,e)}kneelLegs(e,t,n,r,i){let a=R.lerp;n.position.x=a(n.position.x,.24*t,e),n.position.z=a(n.position.z,i+.3,e),r.position.x=a(r.position.x,-.18*t,e),r.position.z=a(r.position.z,i-.66,e),n.heel=a(n.heel,0,e),r.heel=a(r.heel,1.25,e),n.toe.lerp(this.treatScratch.set(.2*t,0,1),e).normalize(),r.toe.lerp(this.treatScratch.set(-.1*t,0,1),e).normalize(),n.pole.lerp(this.treatScratch.set(.25*t,.4,1),e).normalize(),r.pole.lerp(this.treatScratch.set(-.05*t,-.8,.6),e).normalize()}applyAttendPose(e,t,n,r,i){let a=this.torso,o=R.lerp,s=Math.sin(t*3.1)*.5+Math.sin(t*5.3+1)*.5;a.hips.z=o(a.hips.z,.12,e),a.hips.y=o(a.hips.y,BT-.06,e),a.hipsPitch=o(a.hipsPitch,.3,e),a.spinePitch=o(a.spinePitch,.42,e),a.headPitch=o(a.headPitch,.4+s*.05,e),a.headYaw=o(a.headYaw,Math.sin(t*1.3)*.08,e),r.position.lerp(G.set(.2*n,1.36+s*.06,.6+s*.04),e),i.position.lerp(G.set(-.14*n,1.23,.6),e),r.palm.lerp(G.set(-.8*n,-.2,.5),e).normalize(),i.palm.lerp(G.set(0,-.9,.3),e).normalize(),r.knuckles.lerp(G.set(.1*n,.5,1),e).normalize(),i.knuckles.lerp(G.set(.8*n,.1,.6),e).normalize(),r.pole.lerp(G.set(.8*n,-.5,-.1),e).normalize(),i.pole.lerp(G.set(-n,-.1,.1),e).normalize();let c=this.mournWeight*e;if(c>.001){a.hipsPitch=o(a.hipsPitch,.1,c),a.spinePitch=o(a.spinePitch,.28,c),a.headPitch=o(a.headPitch,.55,c),a.headYaw=o(a.headYaw,0,c);let e=a.hips.y+.76;r.position.lerp(G.set(.14*n,e,.4),c),i.position.lerp(G.set(-.14*n,e,.4),c),r.knuckles.lerp(G.set(-.35*n,.9,0),c).normalize(),i.knuckles.lerp(G.set(.35*n,.9,0),c).normalize(),r.palm.lerp(G.set(-n,-.2,0),c).normalize(),i.palm.lerp(G.set(n,-.2,0),c).normalize(),r.pole.lerp(G.set(n,-.2,.3),c).normalize(),i.pole.lerp(G.set(-n,-.2,.3),c).normalize()}let l=this.cheerWeight*e;if(l>.001){let e=Math.sin(t*8.5);a.hips.z=o(a.hips.z,.04,l),a.hipsPitch=o(a.hipsPitch,-.02,l),a.spinePitch=o(a.spinePitch,-.06,l),a.spineRoll=o(a.spineRoll,e*.05,l),a.headPitch=o(a.headPitch,-.2,l);let s=a.hips.y+.93+e*.05;r.position.lerp(G.set(.36*n,s,.06),l),i.position.lerp(G.set(-.36*n,s-e*.06,.06),l),r.knuckles.lerp(G.set(.15*n,1,0),l).normalize(),i.knuckles.lerp(G.set(-.15*n,1,0),l).normalize(),r.palm.lerp(G.set(0,0,1),l).normalize(),i.palm.lerp(G.set(0,0,1),l).normalize(),r.pole.lerp(G.set(n,-.3,-.2),l).normalize(),i.pole.lerp(G.set(-n,-.3,-.2),l).normalize()}}applyTreatPose(e,t,n,r,i,a,o){let s=this.torso,c=R.lerp,l=this.treatScratch.set(this.rootX??0,0,this.rootZ),u=this.scratchQ.setFromAxisAngle(KD,-this.yaw),d=G.copy(this.treatTarget).sub(l).applyQuaternion(u),f=this.treatFacingLocal.copy(this.treatFacing).applyQuaternion(u),p=f.z,m=-f.x,h=this.treatUrgency,g=t*c(2.6,7,h),_=Math.sin(g)*c(.006,.016,h),v=Math.cos(g)*.03*h;s.hips.lerp(this.treatScratch.set(0,.5,.1),e),s.hipsYaw=c(s.hipsYaw,0,e),s.hipsPitch=c(s.hipsPitch,.14,e),s.hipsRoll=c(s.hipsRoll,0,e),s.shouldersYaw=c(s.shouldersYaw,0,e),s.spinePitch=c(s.spinePitch,.26,e),s.headYaw=c(s.headYaw,rT(Math.atan2(d.x,d.z-.25),-.6,.6),e),s.headPitch=c(s.headPitch,rT(Math.atan2(1.12-d.y,Math.hypot(d.x,d.z-.25)),-.5,.6),e),this.kneelLegs(e,n,a,o,.1);let y=this.treatProp===`bottle`,b=y?.3:.08-_;r.position.lerp(this.treatScratch.set(d.x+f.x*b+p*v,d.y+(y?.02:-.07),d.z+f.z*b+m*v),e),y?r.knuckles.lerp(this.treatScratch.set(-f.x,-.25,-f.z),e).normalize():r.knuckles.lerp(this.treatScratch.set(0,1,.05),e).normalize(),r.palm.lerp(y?this.treatScratch.set(0,-1,0):this.treatScratch.set(-f.x,0,-f.z),e).normalize(),r.pole.lerp(this.treatScratch.set(.85*n,-.35,.1),e).normalize();let x=this.treatSide*.135;i.position.lerp(this.treatScratch.set(d.x-p*x+f.x*.05,d.y-.2,d.z-m*x+f.z*.05),e),i.knuckles.lerp(this.treatScratch.set(0,.9,.4),e).normalize(),i.palm.lerp(this.treatScratch.set(p*this.treatSide*.8-f.x*.6,.1,m*this.treatSide*.8-f.z*.6),e).normalize(),i.pole.lerp(this.treatScratch.set(-.85*n,-.4,.1),e).normalize()}applyBreakPose(e,t,n,r){let i=this.torso,a=R.lerp;i.hipsPitch=a(i.hipsPitch,.14,e),i.spinePitch=a(i.spinePitch,.2,e);let o=this.scratchC.set(.48*t,1.22,.52),s=this.scratchD.set(-.48*t,1.22,.52);if(this.breakAimed){let[e,n]=this.breakFighters,r=this.scratch.subVectors(n,e).setY(0).normalize(),i=this.scratchQ.setFromAxisAngle(KD,-this.yaw),a=this.scratchB.set(this.rootX??0,0,this.rootZ);o.copy(e).addScaledVector(r,WT).sub(a).applyQuaternion(i),s.copy(n).addScaledVector(r,-WT).sub(a).applyQuaternion(i),o.x*twT*.15;let s=this.downResult;if(this.downState!==`falling`){let a=this.riseProgress,c=0;if(this.fallKneel)c=$x(ET,1,a),zD(s,this.placeKneel(this.downFrom,e),o,c);else if(a0==t>0;return e.hips.set(.02*t,.53,-.06),e.hipsYaw=mS.bladeYaw*t*.3,e.hipsPitch=.24,e.hipsRoll=0,e.shouldersYaw=mS.bladeYaw*t*.2,e.spinePitch=.62,e.headPitch=.48,(r?e.leadHand:e.rearHand).set(n*.13,.66,.2),(r?e.rearHand:e.leadHand).set(.13*t,.66,.37),e.leadFoot.set(.16*t,.125,.32),e.rearFoot.set(-.12*t,.12,-.5),e.leadHeel=0,e.rearHeel=0,e.palmsDown=1,e}placeLying(e){let t=this.boxer.rig.metrics.ankleHeight;return AD(this.landProne?TD(this.downFrom,xD,SD,e,this.landSide,t):TD(this.downFrom,yD,bD,e,this.landSide,t),this.landShift)}placeDown(e,t,n){return TD(e,t,null,n,0,this.boxer.rig.metrics.ankleHeight)}chooseLanding(e){let t=this.boxer.rig.metrics.ankleHeight,n=1/0;for(let r=0;r=n||(n=u.length()+o,this.landProne=s,this.landSide=c,this.landShift.copy(u))}}ropeShift(e,t){let n=this.scratchQ.setFromAxisAngle(KD,this.yaw);mD.set(e.hipsPitch+e.spinePitch*.7,e.hipsYaw,e.hipsRoll,`YXZ`),PD[0].set(0,MD,0).applyEuler(mD).add(e.hips),PD[1].set(.2,ND,0).applyEuler(mD).add(e.hips),PD[2].set(-.2,ND,0).applyEuler(mD).add(e.hips),PD[3].copy(e.leadHand),PD[4].copy(e.rearHand),PD[5].copy(e.leadFoot).z+=e.leadHeel>0?.25:.19,PD[6].copy(e.rearFoot).z+=e.rearHeel>0?.25:.19,PD[7].copy(e.hips);let r=1/0,i=-1/0,a=1/0,o=-1/0;for(let e=0;e0==t>0,c=s?n:r,l=s?r:n;i.pole.lerp(G.set(.15*t,.35,1),e).normalize(),a.pole.lerp(G.set(-.1*t,-1,.3),e).normalize(),i.toe.lerp(G.set(.15*t,0,1),e).normalize(),a.toe.lerp(G.set(0,-.35,-1),e).normalize(),c.palm.lerp(G.set(-o*.75,0,-.65),e).normalize(),c.knuckles.lerp(G.set(-o*.35,.25,.9),e).normalize(),c.pole.lerp(G.set(o*.9,-.35,-.25),e).normalize(),l.palm.lerp(G.set(0,-1,.1),e).normalize(),l.knuckles.lerp(G.set(.2*t,-.2,1),e).normalize(),l.pole.lerp(G.set(t*.7,.1,-.7),e).normalize()}writeDown(e,t,n,r,i,a,o,s){let c=this.torso,l=1-s;this.downStand=s,c.hips.copy(e.hips),c.hipsYaw=e.hipsYaw,c.hipsPitch=e.hipsPitch,c.hipsRoll=e.hipsRoll,c.shouldersYaw=e.shouldersYaw,c.spinePitch=e.spinePitch,c.spineRoll=c.spineRoll*s+e.spineRoll,c.headPitch=e.headPitch,c.headYaw=c.headYaw*s+e.turn,c.headRoll=c.headRoll*s+e.headRoll,c.headOffset.multiplyScalar(s),c.headOffset.z-=o,n.position.copy(e.leadHand),r.position.copy(e.rearHand),_D(n,t,e.palmsDown,l),_D(r,-t,e.palmsDown,l),i.position.copy(e.leadFoot),a.position.copy(e.rearFoot),i.toe.lerp(oD.set(.2*t,0,1).normalize(),l).normalize(),a.toe.lerp(oD.set(-.2*t,0,1).normalize(),l).normalize(),i.heel=e.leadHeel,a.heel=e.rearHeel;let u=oD.set(0,0,1).applyEuler(mD.set(e.hipsPitch,e.hipsYaw,e.hipsRoll,`YXZ`));if(i.pole.lerp(u,l),a.pole.lerp(u,l),e.ownJoints>0){let t=e.ownJoints*l;OD(i.pole,e.leadKnee,t),OD(a.pole,e.rearKnee,t),OD(n.pole,e.leadElbow,t),OD(r.pole,e.rearElbow,t),OD(n.knuckles,e.leadKnuckles,t),OD(n.palm,e.leadPalm,t),OD(r.knuckles,e.rearKnuckles,t),OD(r.palm,e.rearPalm,t)}}calmInjuries(){this.armLimp.fill(0),this.armSnap.fill(0),this.kneeGive.fill(0),this.lostLean=0,this.cover=0,this.hunch=0,this.curl=0,this.faint=0,this.retching=0,this.daze=0,this.stepPace.fill(1),this.stepLift.fill(1),this.stepSlack=1,this.hurt=!1,this.dropDangles()}dropDangles(){for(let e=0;e<2;e+=1)this.armDangle[e].live=!1,this.forearmDangle[e].live=!1}stepInjuries(e){this.retchTime=Math.max(0,this.retchTime-e);let t=this.posedInjuries>1||this.faintTarget>0||this.retchTime>0||this.dazed;if(!t&&!this.hurt)return;let n=this.downState===`up`,r=0;for(let t=0;t<2;t+=1){let n=this.armCarry[t];this.armLimp[t]=tT(this.armLimp[t],+(n===`dead`||n===`gone`),wE,e),this.armSnap[t]=tT(this.armSnap[t],+(n===`snapped`),wE,e),this.kneeGive[t]=tT(this.kneeGive[t],+!!this.kneeBlown[t],8,e),r=Math.max(r,this.armLimp[t],this.armSnap[t],this.kneeGive[t])}let i=this.armCarry[0],a=this.armCarry[1],o=i===`whole`||i===`stump`,s=a===`whole`||a===`stump`;this.cover=tT(this.cover,o===s?0:o?1:-1,6,e),this.lostLean=tT(this.lostLean,(i===`gone`)-+(a===`gone`),4,e),this.hunch=tT(this.hunch,+!!this.gutted,5,e),this.curl=tT(this.curl,+!!this.liver,4,e),this.faint=tT(this.faint,this.faintTarget,2.5,e);let c=this.retchTime>0&&n;this.retching=tT(this.retching,+!!c,c?12:5,e);let l=this.dazed&&n;if(this.daze=tT(this.daze,+!!l,l?8:5,e),this.dazeTime=this.daze>.001?this.dazeTime+e:0,r=Math.max(r,Math.abs(this.cover),Math.abs(this.lostLean),this.hunch,this.curl,this.faint,this.retching,this.daze),!t&&r<.001){this.calmInjuries();return}this.hurt=!0;let u=this.hunch,d=this.faint,f=this.daze;this.stepSlack=(1-.3*u)*(1-.55*f);for(let e=0;e<2;e+=1){let t=this.kneeGive[e],n=this.kneeGive[1-e];this.stepPace[e]=(1-.4*n)*(1+.25*t)*(1-.25*u)*(1+.15*d)*(1+.2*f),this.stepLift[e]=(1-.5*t)*(1-.6*u)*(1-.75*d)*(1-.4*f)}}stepDeath(e){if(!(!this.dead||this.throe>=CE.length))for(this.deathAge+=e;this.throe=CE[this.throe].at;){let e=CE[this.throe];this.ragdoll?.twitch(e.part,(this.throe+this.throeSide)%2,e.speed),this.throe+=1}}stumble(e,t,n){let r=this.dazeTime;t.add(this.scratchD.set(Math.sin(r*1.7+e*2.1)*.07,0,Math.sin(r*1.25+e*1.3)*.06).multiplyScalar(this.daze).applyAxisAngle(KD,n))}applyHurtStance(e,t,n,r,i){let a=this.torso,o=0,s=0,c=0,l=this.hunch;l>.001&&(s+=.3*l,o+=.045*l,a.hipsPitch+=.06*l,a.headPitch+=.12*l);let u=this.curl;u>.001&&(s+=.1*u,a.spineRoll+=.21*u,a.headRoll+=.08*u,c+=.02*u,this.hand.R.position.y-=.08*u);let d=this.lostLean;Math.abs(d)>.001&&(a.spineRoll+=.15*d,c+=.025*d,a.headRoll-=.05*d);let f=this.faint;if(f>.001){let t=Math.sin(e*1.15),i=Math.sin(e*.83+1.3);a.hips.x+=t*.09*f,a.hips.z+=i*.06*f,a.hipsRoll+=t*.05*f,a.spineRoll+=Math.sin(e*1.15-.7)*.2*f,s+=(.17+i*.06)*f,o+=.03*f+(.06+.04*(.5+.5*Math.sin(e*2.6)))*f*f,a.headPitch+=(.4+Math.sin(e*.9+.4)*.14)*f,a.headRoll+=Math.sin(e*.7)*.36*f,a.headYaw+=Math.sin(e*.53+2)*.18*f,n.position.y-=.32*f,r.position.y-=.27*f,n.position.z-=.07*f}for(let e=0;e<2;e+=1){let t=this.kneeGive[e];if(t<=.001)continue;let n=e===0?1:-1,r=e===0?this.foot.L:this.foot.R,i=e===0?this.foot.R:this.foot.L,s=this.feet[1-e],c=s.stepping?Math.sin(s.progress*Math.PI)*t:0,l=t-c;a.hips.x+=(i.position.x-a.hips.x)*.25*l,a.hips.z+=(i.position.z-a.hips.z)*.18*l,o+=.085*c+.01*l,a.hipsRoll-=n*.16*c,a.spineRoll+=n*.13*c,r.heel+=.3*l,r.pole.x-=n*(.35*t+.9*c),r.pole.normalize()}if(a.hips.x+=Math.cos(a.hipsYaw)*c,a.hips.z-=Math.sin(a.hipsYaw)*c,o!==0||s!==0){a.hips.y-=o,a.spinePitch+=s;let e=o+s*KE,t=s*GE;i.y-=e,i.z+=t,n.position.y-=e,n.position.z+=t,r.position.y-=e,r.position.z+=t}let p=this.cover;if(Math.abs(p)>.001){let e=p>0?this.hand.L:this.hand.R,n=Math.abs(p);e.position.x+=(qE*t-e.position.x)*.7*n,e.position.y+=.03*n,e.position.z+=.03*n}}applyHurtActs(e,t,n,r){let i=this.torso,a=R.lerp,o=+(t>0),s=this.armCarry[o]===`whole`?o:this.armCarry[1-o]===`whole`?1-o:-1,c=this.retching*(1-.7*this.punchCommit);if(c>.001){let t=Math.max(0,Math.sin(e*10.5))**2;i.hips.y=a(i.hips.y,mS.hipsHeight-.13-t*.02,c),i.hips.z=a(i.hips.z,-.08,c),i.hipsPitch=a(i.hipsPitch,.36,c),i.spinePitch=a(i.spinePitch,.78+t*.12,c),i.spineRoll=a(i.spineRoll,0,c),i.headPitch=a(i.headPitch,1.3+t*.15,c),i.headYaw=a(i.headYaw,0,c),i.headRoll=a(i.headRoll,0,c),i.headOffset.multiplyScalar(1-c);let n=s<0?o:1-s;if(this.armCarry[n]===`whole`){let e=n===0?1:-1,t=n===0?this.hand.L:this.hand.R;t.position.lerp(G.set(e*.19,.62,n===o?-.02:.15),c),t.pole.lerp(G.set(e*.9,.1,-.4),c).normalize(),t.knuckles.lerp(G.set(-e*.2,-.7,.6),c).normalize(),t.palm.lerp(G.set(0,-.6,-.8),c).normalize()}}let l=Math.max(Math.abs(this.slip),this.weave,this.pull),u=rT(1-this.guardHigh-this.guardLow,0,1)*(1-this.punchCommit)*(1-l)*(1-this.clinchWeight),d=this.punchActive&&s===(this.punchHand===`left`?0:1)?rT(this.punchReach*4,0,1):0,f=Math.max(c,this.hunch*u)*(1-d);f>.001&&s>=0&&this.clutchBelly(s,f);let p=this.daze;if(p>.001){let e=this.dazeTime,o=$x(.7,1.6,e),s=Math.sin(e*2.2),c=Math.sin(e*1.45+.9),l=mS.bladeYaw*t;i.hips.x=a(i.hips.x,s*.06,p),i.hips.z=a(i.hips.z,c*.045,p),i.hips.y=a(i.hips.y,mS.hipsHeight-.08-Math.sin(e*4.4+1)*.02,p),i.hipsYaw=a(i.hipsYaw,l*.8,p),i.hipsPitch=a(i.hipsPitch,.04,p),i.hipsRoll=a(i.hipsRoll,s*.05,p),i.shouldersYaw=a(i.shouldersYaw,l*.65,p),i.spinePitch=a(i.spinePitch,.24+c*.07,p),i.spineRoll=a(i.spineRoll,Math.sin(e*2.2-.9)*.13,p),i.headYaw=a(i.headYaw,o*Math.sin(e*1.1+2)*.3,p),i.headPitch=a(i.headPitch,.95-o*(.28+Math.sin(e*1.3)*.25),p),i.headRoll=a(i.headRoll,o*Math.sin(e*1.9)*.42,p),i.headOffset.multiplyScalar(1-p),n.heel=a(n.heel,0,p),r.heel=a(r.heel,0,p)}}clutchBelly(e,t){let n=this.torso,r=e===0?this.hand.L:this.hand.R,i=e===0?1:-1,a=n.hipsYaw+(n.shouldersYaw-n.hipsYaw)*.25,o=n.hipsPitch+n.spinePitch*.2;r.position.lerp(G.set(i*.05,.17,.19+o*.08).applyAxisAngle(KD,a).add(n.hips),t),r.knuckles.lerp(G.set(-i*.9,-.3,.2).applyAxisAngle(KD,a),t).normalize(),r.palm.lerp(G.set(-i*.1,.15,-1).applyAxisAngle(KD,a),t).normalize(),r.pole.lerp(G.set(i*.85,-.35,-.4).applyAxisAngle(KD,a),t).normalize()}dangleArms(e){let t=this.daze,n=this.boxer.rig,r=n.bones;Gx(r.hips,this.trunkLow),Gx(r.upperChest,this.trunkHigh),this.trunkLow.addScaledVector(JE.subVectors(this.trunkLow,this.trunkHigh).normalize(),HE);let i=this.ragdoll?.handingOver===!0;for(let a=0;a<2;a+=1){let o=Math.max(this.armLimp[a],t),s=this.armSnap[a],c=this.armDangle[a],l=this.forearmDangle[a];if(o<=.001&&(c.live=!1),s<=.001&&(l.live=!1),o<=.001&&s<=.001)continue;let u=a===0,d=u?1:-1,f=u?r.shoulderL:r.shoulderR,p=u?r.elbowL:r.elbowR,m=u?r.gloveL:r.gloveR,h=u?n.metrics.armL:n.metrics.armR;if(o>.001){let t=Gx(m,YE);if(Kx(m,iD),this.armCarry[a]===`dead`){let e=Gx(f,XE);e.y-=TE*this.armLimp[a],n.aimAt(u?r.clavicleL:r.clavicleR,e,`z`),f.updateWorldMatrix(!1,!1)}let s=Gx(f,XE),l=(h.upper+h.lower)*EE;if(!c.live){let e=o>BE&&!i;xE(c,e?JE.set(s.x,s.y-l,s.z):t,s),e&&this.holdDangle(c.at,s,l,!1,null)}let g=this.punchActive&&this.punchHand===`left`===u?this.punchReach:0;this.swing(c,s,l,!1,e,DE,OE,t,g*AE);let _=ZE.set(d*.3,.15+3*rT(1-s.y/WE,0,1),-1).lerp(u?this.hand.L.pole:this.hand.R.pole,1-o).applyAxisAngle(KD,this.yaw);n.solveLimb(f,p,h,t.lerp(c.at,o),_,`z`,u?1:-1,.012),m.updateWorldMatrix(!1,!1),qx(QE.subVectors(Gx(m,YE),Gx(p,JE)).normalize(),ZE.set(-d,0,.2).applyAxisAngle(KD,this.yaw),`z`,aD),n.setWorldRotation(m,iD.slerp(aD,o))}if(s>.001){let t=Gx(p,XE),r=Gx(m,YE);Kx(m,iD);let a=Math.max(0,-(t.y-Gx(f,JE).y)/h.upper),o=rT((t.y-UE)/h.lower,0,1),c=rD.set(d*(jE+ME*a*a),-o,0).applyAxisAngle(KD,this.yaw).normalize();l.live||(xE(l,s>BE&&!i?JE.set(t.x,t.y-h.lower,t.z):r,t),this.holdDangle(l.at,t,h.lower,!0,c)),this.swing(l,t,h.lower,!0,e,DE,kE,null,0,c);let u=QE.subVectors(r,t).lerp(JE.subVectors(l.at,t),s).normalize(),g=ZE.setFromMatrixColumn(p.matrixWorld,2).lerp(JE.setFromMatrixColumn(p.matrixWorld,0).multiplyScalar(d),s);n.setWorldFrame(p,u,g,`z`),m.updateWorldMatrix(!1,!1),qx(JE.copy(u).addScaledVector(cD,.9).normalize(),ZE.set(-d,.2,-.4).applyAxisAngle(KD,this.yaw),`z`,aD),n.setWorldRotation(m,iD.slerp(aD,s))}}}swing(e,t,n,r,i,a,o,s,c,l=null){let u=e.at,d=e.velocity;(e.carried||t.distanceToSquared(e.pivot)>zE*zE)&&(u.add(t).sub(e.pivot),d.set(0,0,0),e.pivot.copy(t),e.carried=!1);let f=i>0?Math.min(LE,Math.ceil(i/IE)):0,p=f>0?i/f:0;for(let i=1;i<=f;i+=1)$E.copy(u),d.addScaledVector(a,p),s!==null&&c>0&&d.addScaledVector(eD.subVectors(s,u),c*p),d.multiplyScalar(Math.exp(-o*p)),u.addScaledVector(d,p),this.holdDangle(u,eD.lerpVectors(e.pivot,t,i/f),n,r,l),d.subVectors(u,$E).divideScalar(p).clampLength(0,RE);f===0&&this.holdDangle(u,t,n,r,l),e.pivot.copy(t)}holdDangle(e,t,n,r,i){let a=this.trunkLow,o=tD.subVectors(this.trunkHigh,a);for(let s=0;s<2;s+=1){let s=rT(nD.subVectors(e,a).dot(o)/Math.max(1e-6,o.lengthSq()),0,1),c=nD.addScaledVector(o,-s).length();c1e-4&&e.addScaledVector(nD,(VE-c)/c),e.y=Math.max(e.y,UE);let l=nD.subVectors(e,t),u=l.length();if(u<1e-6?e.set(t.x,t.y-n,t.z):(r||u>n)&&e.copy(t).addScaledVector(l,n/u),i===null)continue;l.subVectors(e,t);let d=l.dot(i);if(d>=n*PE)continue;let f=l.addScaledVector(i,-d).length();e.copy(t).addScaledVector(i,n*(f>1e-6?PE:1)),f>1e-6&&e.addScaledVector(l,n*FE/f)}}applyDislocation(){if(this.dislocation!==`jaw`)return;let e=this.boxer.bone(`head`);e!==null&&(e.quaternion.multiply(vE),e.updateWorldMatrix(!1,!0))}dispose(){this.stool.dispose(),this.enswell.dispose(),this.bottle.dispose(),this.boxer.dispose()}},LT=.44,RT=.2,zT=.75,BT=.94,VT=.836,HT=.12,UT=1.72,WT=.2,GT=1.26,KT=48,qT=14,JT=1.34,YT=80,XT=56,ZT=24,QT=4,$T=1.5,eE=60,tE=4,nE=.15,rE=.8,iE=1.3,aE=.35,oE=.93,sE=500,cE=900,lE=.15,uE=.05,dE=.07,fE=.14,pE=.05,mE=.2,hE=.04,gE=.36;function _E(e){let t=7;for(let n=0;nMath.atan2(Math.sin(e),Math.cos(e)),DD=new B;function OD(e,t,n){if(n<=0)return e;e.normalize();let r=e.angleTo(t);return r<1e-4?e:(DD.crossVectors(e,t),DD.lengthSq()<1e-8&&DD.crossVectors(e,Math.abs(e.y)<.9?KD:sD),e.applyAxisAngle(DD.normalize(),r*Math.min(1,n)))}function kD(e,t,n,r){let i=t+ED(e.x-t),a=n+ED(e.y-n),o=r+ED(e.z-r),s=t+ED(Math.PI-e.x-t),c=n+ED(e.y+Math.PI-n),l=r+ED(e.z+Math.PI-r);return Math.abs(i-t)+Math.abs(a-n)+Math.abs(o-r)<=Math.abs(s-t)+Math.abs(c-n)+Math.abs(l-r)?e.set(i,a,o,`YXZ`):e.set(s,c,l,`YXZ`)}function AD(e,t){return e.hips.add(t),e.leadHand.add(t),e.rearHand.add(t),e.leadFoot.add(t),e.rearFoot.add(t),e}var jD=dv*.72-.05,MD=.78,ND=.5,PD=Array.from({length:8},()=>new B),FD=[.17,.22,.22,.13,.13,.12,.12,.2],ID=[[!1,1,0],[!1,0,.15],[!1,-1,.3],[!0,1,.4],[!0,0,.5],[!0,-1,.6]];function LD(e,t){return e<-jD&&t>jD?-(e+t)/2:e<-jD?-jD-e:t>jD?jD-t:0}function RD(e,t){return zD(e,t,t,0)}function zD(e,t,n,r){let i=R.lerp;return e.hips.copy(t.hips).lerp(n.hips,r),e.hipsYaw=i(t.hipsYaw,n.hipsYaw,r),e.hipsPitch=i(t.hipsPitch,n.hipsPitch,r),e.hipsRoll=i(t.hipsRoll,n.hipsRoll,r),e.shouldersYaw=i(t.shouldersYaw,n.shouldersYaw,r),e.spinePitch=i(t.spinePitch,n.spinePitch,r),e.spineRoll=i(t.spineRoll,n.spineRoll,r),e.headPitch=i(t.headPitch,n.headPitch,r),e.headRoll=i(t.headRoll,n.headRoll,r),e.leadHand.copy(t.leadHand).lerp(n.leadHand,r),e.rearHand.copy(t.rearHand).lerp(n.rearHand,r),e.leadFoot.copy(t.leadFoot).lerp(n.leadFoot,r),e.rearFoot.copy(t.rearFoot).lerp(n.rearFoot,r),e.leadHeel=i(t.leadHeel,n.leadHeel,r),e.rearHeel=i(t.rearHeel,n.rearHeel,r),e.palmsDown=i(t.palmsDown,n.palmsDown,r),e.turn=i(t.turn,n.turn,r),OD(e.leadKnee.copy(t.leadKnee),n.leadKnee,r),OD(e.rearKnee.copy(t.rearKnee),n.rearKnee,r),OD(e.leadElbow.copy(t.leadElbow),n.leadElbow,r),OD(e.rearElbow.copy(t.rearElbow),n.rearElbow,r),OD(e.leadKnuckles.copy(t.leadKnuckles),n.leadKnuckles,r),OD(e.leadPalm.copy(t.leadPalm),n.leadPalm,r),OD(e.rearKnuckles.copy(t.rearKnuckles),n.rearKnuckles,r),OD(e.rearPalm.copy(t.rearPalm),n.rearPalm,r),e.ownJoints=i(t.ownJoints,n.ownJoints,r),e}var BD=3;function VD(e,t,n){if(n===null)return null;let r=t+n;return e===null||Math.abs(r-e)>BD?r:e}function HD(e){return(1-$x(XT,YT,e))*$x(QT,ZT,e)}function UD(){let e=new fc;e.name=`enswell`,e.visible=!1;let t=new qu(3.2,3.2,.9,20),n=new qu(.8,.8,6,10),r=new Hd({color:13159634,roughness:.3,metalness:.9}),i=new H(t,r);i.rotation.x=Math.PI/2,i.position.set(0,9.5,3.4),e.add(i);let a=new H(n,r);return a.position.set(0,5.5,2.4),e.add(a),{group:e,dispose:()=>{t.dispose(),n.dispose(),r.dispose()}}}function WD(){let e=new fc;e.name=`bottle`,e.visible=!1;let t=new qu(3.3,3.3,15,18),n=new qu(1.3,3.3,3,18),r=new qu(.7,1.1,3.2,10),i=new Hd({color:14280430,roughness:.32,metalness:0}),a=new Hd({color:1920728,roughness:.5,metalness:0}),o=new H(t,i);o.position.set(0,9,2.6);let s=new H(n,i);s.position.set(0,18,2.6);let c=new H(r,a);return c.position.set(0,21,2.6),e.add(o,s,c),{group:e,dispose:()=>{t.dispose(),n.dispose(),r.dispose(),i.dispose(),a.dispose()}}}function GD(){let e=new fc;e.name=`stool`,e.visible=!1;let t=new qu(.17,.17,.035,18),n=new qu(.012,.014,.42,8),r=new Hd({color:13222581,roughness:.85}),i=new Hd({color:2764083,roughness:.45,metalness:.6}),a=new H(t,r);a.position.y=.4225,a.castShadow=!0,e.add(a);for(let t=0;t<4;t+=1){let r=Math.PI/4+t*Math.PI/2,a=new H(n,i);a.position.set(Math.cos(r)*.13,.42/2,Math.sin(r)*.13),a.rotation.set(-Math.sin(r)*.12,0,Math.cos(r)*.12),a.castShadow=!0,e.add(a)}return{group:e,dispose:()=>{t.dispose(),n.dispose(),r.dispose(),i.dispose()}}}var KD=new B(0,1,0),qD=6,JD=3,YD=1.5,XD=2.5,ZD=1.5,QD=.55,$D=2.1,eO=.42,tO=.22,nO=.08,rO=.15,iO=.42,aO=.12,oO=.5,sO=.5,cO=new Set([`hit`,`counter_hit`,`block`,`perfect_block`,`referee_hit`]),lO=new Set([`slip_left`,`slip_right`,`weave`,`pull`]),uO=40,dO=y/a,fO=.12,pO=30,mO=2;function hO(e,t,n){if(e0;case`forearm_left`:return t===`glove_left`||o&&l_(r,i,a,1)>0;case`forearm_right`:return t===`glove_right`||o&&l_(r,i,a,-1)>0;case`arm_left`:return t===`glove_left`||o&&u_(r,i,a,1)>0;case`arm_right`:return t===`glove_right`||o&&u_(r,i,a,-1)>0;case`leg_left`:return r>=0&&(t===`shoes`||o&&i<60);case`leg_right`:return r<0&&(t===`shoes`||o&&i<60);case`upper_body`:return t===`head`||t===`glove_left`||t===`glove_right`||o&&d_(r,i,a)>0;case`torso`:return t===`pants`||o&&i>=60&&u_(r,i,a,1)<=0&&u_(r,i,a,-1)<=0}}var vO={head:`BoxerHead`,body:`BoxerBody`,glove_left:`BoxerGloveLeft`,glove_right:`BoxerGloveRight`,pants:`BoxerPants`,shoes:`BoxerShoes`},yO=new WeakMap;function bO(e,t){let n=yO.get(e);if(n===void 0){n={};let t=new Map(Object.entries(vO).map(([e,t])=>[t,e]));e.root.traverse(e=>{let r=e instanceof $l?t.get(e.name):void 0;r!==void 0&&(n[r]=e)}),yO.set(e,n)}return n[t]??null}var xO=[`left`,`right`],SO=new B(0,1,0),CO=new B(0,-1,0),wO=15129792,TO=6032400,EO=9313310,DO=4982537,OO=14200392,kO=2228997,AO=14263970,jO=8270912,MO=11618383,NO=15524550,PO=12866653,FO=13602176,IO=9384504,LO=new V,RO=new V,zO=new B,BO=R.smoothstep;function VO(e,t){e.deleteAttribute(`uv`);let n=e.getAttribute(`position`),r=new Float32Array(n.count*3);for(let e=0;eo/2-.001){let t=Math.atan2(zO.z,zO.x);zO.y+=i<1e-4?-n*.8:n*(.5*Math.sin(t*3+e[1])+.35*Math.sin(t*5+e[2]))}c.setXYZ(t,zO.x,zO.y+o/2,zO.z*r)}return s.computeVertexNormals(),VO(s,(t,r)=>{let i=1-BO(t.y/o,.15,.42)*(.85+.15*Math.sin(Math.atan2(t.z,t.x)*4+e[0]));r.setHex(wO).lerp(RO.setHex(DO),i),Math.hypot(t.x,t.z)o*.5&&r.setHex(TO)}),s.applyQuaternion(new ms().setFromUnitVectors(SO,a.normalize())),s.translate(i.x,i.y,i.z),s}function WO(e,t,n,r=!1){return VO(new jd(new ad(e.map(e=>new B(...e)),r),e.length*5,t,7,r),n)}var GO=[0,123.6,-3.2],KO=[4.5,4,5];function qO(){let e=new Od(1,40,24,0,Math.PI*2,0,Math.PI*.6),t=e.getAttribute(`position`),n=new Float32Array(t.count);for(let e=0;e{let i=n[r];r+=1,t.setHex(jO).lerp(RO.setHex(AO),BO(i,-.5,.45)),(i<-1||Math.sin(e.x*.9+e.z*1.3)>.72)&&t.lerp(RO.setHex(EO),.7)})}function JO(){let e=[[1,.2,wO],[.9,0,wO],[.82,0,TO],[.74,0,wO],[.66,-.9,DO]],t=[],n=[],r=[];for(let[i,[a,o,s]]of e.entries())for(let e=0;e<32;e+=1){let c=e/32*Math.PI*2;if(t.push(Math.cos(c)*5.6*a,124+o,-3.3+Math.sin(c)*6.4*a),LO.setHex(s).multiplyScalar(.85+.15*Math.sin(c*11+i)),n.push(LO.r,LO.g,LO.b),i===0)continue;let l=(e+1)%32;r.push((i-1)*32+e,i*32+e,(i-1)*32+l,(i-1)*32+l,i*32+e,i*32+l)}let i=new hl;return i.setAttribute(`position`,new rl(t,3)),i.setAttribute(`color`,new rl(n,3)),i.setIndex(r),i.computeVertexNormals(),i}var YO=[0,112.9,-.4],XO=9,ZO=new B(0,-.93,.37).normalize(),QO=.95;function $O(){let e=new Gu(1.5,6,6,16,8),t=e.getAttribute(`position`);for(let e=0;e0?.5*(1-BO(r,0,.45)):0,a=.5*Math.sin(n*5)*(1-n);t.setXYZ(e,zO.x*R.lerp(.9,1.1,Math.sin(n*Math.PI))+a*.4,zO.y-XO/2,(zO.z-i)*.3+.35*r*r+1.3*n*n)}return e.computeVertexNormals(),VO(e,(e,t)=>{let n=-e.y/XO,r=Math.sin(e.y*2.6+e.x*2.1)*Math.sin(e.x*3.3-e.y*1.2);t.setHex(PO).multiplyScalar(.8+.2*r).lerp(RO.setHex(DO),.8*(1-BO(n,0,.35))),(r>.45||n>.88)&&t.lerp(RO.setHex(EO),.65)})}function ek(){let e=[],t=new Od(1,18,12,Math.PI,Math.PI);t.scale(3.3,2.5,3.2),t.translate(0,113.3,-.5),e.push(VO(t,(e,t)=>{t.setHex(kO).lerp(RO.setHex(EO),BO(Math.hypot(e.x,e.y-112.6,(e.z+3)*.7),.7,2.6))}));let n=new Ku(1,20);n.rotateX(Math.PI/2),n.scale(3.3,1,3.9),n.translate(0,115.25,.5),e.push(VO(n,(e,t)=>{t.setHex(IO).multiplyScalar(.75+.25*Math.sin(e.z*5)).lerp(RO.setHex(kO),1-BO(e.z,-3,.5))}));let r=[];for(let t=0;t<14;t+=1){let n=-1.75+t/13*3.5,i=1-Math.abs(n)/1.75,a=t===4||t===9?1.35:R.lerp(.85,1.2,i),o=new qu(.3,t===4||t===9?.16:.37,a,6);o.scale(1,1,R.lerp(1.15,.55,i)),o.rotateY(n);let s=Math.sin(n)*2.75,c=.9+Math.cos(n)*3.1;o.translate(s,114.9-a/2,c),e.push(VO(o,(e,t)=>{t.setHex(NO).lerp(RO.setHex(EO),.8*BO(e.y,114.3,114.9))})),r.push([s,114.95,c])}return e.push(WO(r,.45,MO)),HO(e)}function tk(e){return HO([UO([e*29.4,103.8,-4.2],[e*32.9,104.1,-4],.85),UO([e*29.4,102,-6.2],[e*32.3,101.8,-6.5],.7)])}function nk(e){let t=new Od(1,12,9);return t.scale(.9,1.7,1.5),t.translate(e*13.3,103.4,-5.5),VO(t,(e,t)=>{t.setHex(15327954).lerp(RO.setHex(EO),Math.sin(e.y*3.1+e.z*2.3)>.4?.75:.1)})}function rk(){return HO([VO(new qu(2,2.1,1.8,10).translate(0,80.4,-5.4),wO),VO(new qu(1.8,1.8,.6,10).translate(0,81.6,-5.4),12563866),UO([0,81.9,-5.4],[.4,85.4,-5.8],1.9),WO([[.2,84.6,-5.6],[.3,86.6,-5.8],[.9,87.8,-5.2]],.55,15255984),WO([[-6.5,81.6,.5],[-3,82.6,3.6],[1.5,81.8,4.4],[6,82.8,2],[7,81.6,-2],[3.5,82.9,-1],[-1,81.7,.6],[-5,82.9,-2.6],[-7.2,81.5,-4]],1.25,FO,!0),WO([[4.5,83.6,1.6],[1,84.4,2.4],[-3,83.5,.6],[-2,84.2,-2.6],[2.5,83.6,-2.2]],1.05,12548720,!0),VO(new Od(1,10,7).scale(3.2,1.6,2.6).translate(-6,82.2,1.5),4854808)])}function ik(e){return HO(C_.map((t,n)=>{let r=new B(-t[0],0,-2-t[2]).normalize();return UO([e*(t[0]+r.x*3),t[1]-.3,t[2]+r.z*3],[e*(t[0]-r.x*1.3),t[1]+.7-.3*n,t[2]-r.z*1.3+.7],.75,.5)}))}function ak(){let e=[];for(let t=0;t<5;t+=1){let n=.5+t*1.26,r=Math.cos(n),i=Math.sin(n);e.push(UO([r*5.8,99.5+i*5.8,3.9],[r*2.9,99.5+i*2.9,2.4],.7,.5)),e.push(UO([i*5.6,99.5-r*5.6,-9.6],[i*4.3,99.5-r*4.3,-12.8],.7,.5))}return HO(e)}var ok=new B,sk=new B,ck=new B,lk=new B,uk=new WeakMap;function dk(e,t,n){let r=e.getAttribute(`position`),i=e.getAttribute(`skinIndex`),a=e.getAttribute(`skinWeight`),o=new Map,s=new B;for(let e of t)o.has(e)||(o.set(e,o.size),s.add(zO.fromBufferAttribute(r,e)));s.multiplyScalar(1/o.size);let c=n.layers.length,l=[],u=[],d=[],f=[],p=new Map;for(let e of o.keys()){for(let[t,[o,c]]of n.layers.entries()){n.place(zO.fromBufferAttribute(r,e),s,o,ok),l.push(ok.x,ok.y,ok.z),LO.setHex(c).multiplyScalar(.8+.4*Math.abs(Math.sin(e*12.9898+t*4.1))),u.push(LO.r,LO.g,LO.b);for(let t=0;t<4;t+=1)d.push(i.getComponent(e,t)),f.push(a.getComponent(e,t))}for(let t=0;t<4;t+=1)p.set(i.getComponent(e,t),(p.get(i.getComponent(e,t))??0)+a.getComponent(e,t))}let m=o.size*c;if(n.middle!==null){n.place(s,s,1,ok),l.push(ok.x,ok.y,ok.z),LO.setHex(n.middle),u.push(LO.r,LO.g,LO.b);let e=[...p].sort((e,t)=>t[1]-e[1]).slice(0,4),t=e.reduce((e,[,t])=>e+t,0);for(let n=0;n<4;n+=1)d.push(e[n]?.[0]??0),f.push((e[n]?.[1]??0)/t)}let h=[],g=(e,t,r)=>{ok.fromArray(l,e*3),sk.fromArray(l,t*3),ck.fromArray(l,r*3),n.facing(zO.copy(ok).add(sk).add(ck).multiplyScalar(1/3),s,lk);let i=sk.sub(ok).cross(ck.sub(ok)).dot(lk)>=0;h.push(e,i?t:r,i?r:t)};for(let e=0;evoid a.copy(n).lerp(r,i).addScaledVector(e,-t*i),facing:(t,n,r)=>void r.copy(e),middle:kO}}var pk={layers:[[0,DO],[.4,DO],[1,kO]],place:(e,t,n,r)=>void r.set(R.lerp(e.x,t.x,.22*n),R.lerp(e.y,t.y,.22*n),R.lerp(e.z,t.z-Math.sign(e.z-t.z)*.6,n)),facing:(e,t,n)=>void n.set(t.x-e.x,t.y-e.y,0),middle:null},mk={nose:{bone:`head`,mesh:`head`,at:[0,117,5.3],axis:[0,-.3,1]},mouth:{bone:`head`,mesh:`head`,at:[0,114.3,4.6],axis:[0,-.35,1]},eye_left:{bone:`head`,mesh:`head`,at:j_[0],axis:[.2,0,1]},eye_right:{bone:`head`,mesh:`head`,at:j_[1],axis:[-.2,0,1]},ear_left:{bone:`head`,mesh:`head`,at:S_,axis:[1,-.2,0]},ear_right:{bone:`head`,mesh:`head`,at:[-S_[0],S_[1],S_[2]],axis:[-1,-.2,0]},skull:{bone:`head`,mesh:`head`,at:[0,127.5,-3],axis:[0,1,0]},neck:{bone:`neck`,mesh:`body`,at:[0,109,-2],axis:[0,1,0]},shoulder_left:{bone:`clavicleL`,mesh:`body`,at:[15,103.5,-5.5],axis:[1,0,0]},shoulder_right:{bone:`clavicleR`,mesh:`body`,at:[-15,103.5,-5.5],axis:[-1,0,0]},elbow_left:{bone:`shoulderL`,mesh:`body`,at:[31,102.8,-5.2],axis:[1,0,0]},elbow_right:{bone:`shoulderR`,mesh:`body`,at:[-31,102.8,-5.2],axis:[-1,0,0]},chest:{bone:`chest`,mesh:`body`,at:[0,99.5,5.6],axis:[0,0,1]},ribs_left:{bone:`chest`,mesh:`body`,at:C_[1],axis:[1,0,.3]},ribs_right:{bone:`chest`,mesh:`body`,at:[-C_[1][0],C_[1][1],C_[1][2]],axis:[-1,0,.3]},liver:{bone:`chest`,mesh:`body`,at:[-8.5,89.5,4.4],axis:[-.5,0,1]},belly:{bone:`spine`,mesh:`body`,at:E_,axis:[0,-.2,1]},waist:{bone:`spine`,mesh:`body`,at:[0,81.5,-1],axis:[0,1,0]},crotch:{bone:`hips`,mesh:`body`,at:[0,72,2],axis:[0,-1,.15]},knee_left:{bone:`kneeL`,mesh:`body`,at:T_,axis:[1,0,.2]},knee_right:{bone:`kneeR`,mesh:`body`,at:[-T_[0],T_[1],T_[2]],axis:[-1,0,.2]}},hk=[`skull`,`maw`,`chest`,`waist`,...xO.flatMap(e=>[`fracture`,`ribs`,`knee`,`elbow`,`shoulder`].map(t=>`${t}_${e}`))],gk={left:{sign:1,bone:`L`,ear:`leftEar`,face:`leftFace`,cheek:`leftCheek`,eye:`leftEye`,arm:`leftArm`,shoulder:`leftShoulder`,elbow:`leftElbow`,ribs:`leftRibs`,knee:`leftKnee`,smear:`leftShoulderSmear`},right:{sign:-1,bone:`R`,ear:`rightEar`,face:`rightFace`,cheek:`rightCheek`,eye:`rightEye`,arm:`rightArm`,shoulder:`rightShoulder`,elbow:`rightElbow`,ribs:`rightRibs`,knee:`rightKnee`,smear:`rightShoulderSmear`}},_k=class{boxer;headRaises=[];bodyRaises=[];gloveGone={left:!1,right:!1};eyeOut={left:!1,right:!1};eyeShut={left:!1,right:!1};gloved;flesh;owned=[];tongueTip=new B;tongueVelocity=new B;root=new B;rest=new B;reach=new B;matrix=new Rs;fit=new Rs;upperGone=!1;headHidden=!1;injuries=0;blood=`full`;hole=!1;jawHung=!1;pieces=new Map;geometries=[];skull=null;skullMount=new Rs;brain=null;tongue=null;bodyShadow=null;standIns=null;tongueHung=!1;constructor(e){this.boxer=e,this.gloved={left:e.gloveMesh(`left`).visible,right:e.gloveMesh(`right`).visible},this.flesh=new Hd({vertexColors:!0,roughness:.3,metalness:0,side:2}),Zw(this.flesh)}apply(e,t){let n=0;for(let t=0;tc*3)&&(this.tongueHung=!0,l.copy(o).addScaledVector(s,c),u.set(0,0,0));let d=this.reach.copy(l);e>1e-4&&(u.y-=9.8*e,u.addScaledVector(zO.copy(o).addScaledVector(s,c).sub(l),60*e).multiplyScalar(Math.exp(-5*e)),d.addScaledVector(u,e)),d.sub(o).setLength(c),d.angleTo(s)>QO&&(zO.copy(d).addScaledVector(s,-d.dot(s)).setLength(Math.sin(QO)*c),d.copy(s).multiplyScalar(Math.cos(QO)*c).add(zO)),d.add(o),e>1e-4&&u.copy(d).sub(l).multiplyScalar(1/e),l.copy(d),r.quaternion.setFromUnitVectors(CO,zO.copy(l).sub(o).transformDirection(a.invert()))}compileStandIns(){if(this.standIns!==null)return this.standIns;let e=this.boxer;for(let e of hk)this.built(e);let t=[],n=[[e.headMesh,e.headInjury],[bO(e,`body`),e.bodyInjury]];for(let[e,r]of n)for(let n of[!1,!0]){let i=e===null?null:r.variant(n);if(e===null||i===null)continue;this.owned.push(i);let a=new $l(e.geometry,i);if(a.bind(e.skeleton,e.bindMatrix),a.frustumCulled=!1,a.castShadow=e.castShadow,n){let e=r.shadowVariant();this.owned.push(e),a.customDepthMaterial=e}t.push(a)}this.brain!==null&&t.push(new H(this.brain.geometry,this.flesh));let r=this.built(`waist`).find(e=>e instanceof $l);if(r!==void 0){let e=new $l(r.geometry,this.flesh);e.bind(r.skeleton,r.bindMatrix),e.frustumCulled=!1,t.push(e)}return this.standIns=t,t}clear(){this.upperGone=!1,this.hole=!1,this.injuries=0,this.show(),this.setPallor(0)}dispose(){this.clear();for(let e of this.standIns??[])e.removeFromParent();this.standIns=null;for(let e of this.pieces.values())for(let t of e)t.removeFromParent();for(let e of this.geometries)e.dispose();this.pieces.clear(),this.geometries.length=0,this.skull=this.brain=this.tongue=null,this.bodyShadow?.dispose(),this.bodyShadow=null;for(let e of this.owned)e.dispose();this.owned.length=0,this.flesh.dispose()}has(e){return!!(this.injuries&1<this.blood!==`off`&&this.has(e),o=r&&this.upperGone,s=this.isPartGone(`jaw`),c=r&&this.has(`skull_fractured`);t.setExplicit(r),n.setExplicit(r);let l=this.headRaises,u=this.bodyRaises;l.length=0,u.length=0;let d=(e,t,n,r=0,a=0)=>void e.push({site:t,bruise:n,blood:r*i,cut:a});if(t.setWound(`nose`,+!!a(`broken_nose`)),a(`broken_nose`)&&d(l,`nose`,1.1,1.4),a(`broken_jaw`)||a(`jaw_torn`)){let e=a(`jaw_torn`);d(l,`chin`,1.2),d(l,`leftJaw`,e?1.2:1),d(l,`rightJaw`,e?1.2:1),d(l,`mouth`,.7,e?1.4:.9,.7),d(u,`neckSmear`,0,e?1.4:.6)}a(`skull_fractured`)&&(d(l,`forehead`,1.1,1.4,+!r),d(u,`neckSmear`,0,1.1)),t.setGone(`jaw`,+!!s),t.setGone(`skull`,+!!c);let f=!1;for(let i of xO){let s=gk[i];t.setWound(s.ear,+!!a(`ear_${i}_torn`));let c=a(`face_${i}_flayed`);t.setWound(s.face,+!!c),c&&(d(l,s.cheek,.8,1.2),d(u,`neckSmear`,0,.9));let p=a(`eye_${i}_out`);p&&d(l,s.eye,1.1,+!r),this.eyeOut[i]&&!(p&&r)&&(f=!0),this.eyeOut[i]=p&&r,this.eyeShut[i]=p&&!r;let m=o?0:this.isPartGone(`arm_${i}`)?2:+!!this.isPartGone(`forearm_${i}`),h=!r&&a(`arm_${i}_torn`),g=!r&&a(`forearm_${i}_severed`);n.setGone(s.arm,m),n.setWound(s.shoulder,a(`shoulder_${i}_dislocated`)||h?1:0),n.setWound(s.elbow,a(`arm_${i}_broken`)||g?1:0),n.setWound(s.ribs,+!!a(`ribs_${i}_broken`)),n.setWound(s.knee,+!!a(`knee_${i}_blown`)),(m===2||h)&&d(u,s.smear,0,1.2),a(`ribs_${i}_broken`)&&d(u,s.ribs,1.2);let _=m>0||o;_?e.gloveMesh(i).visible=!1:this.gloveGone[i]&&(e.gloveMesh(i).visible=this.gloved[i]&&!e.isHandDismembered(i)),this.gloveGone[i]=_,this.piece(`fracture_${i}`,r&&!o&&m===0&&this.has(`arm_${i}_broken`)),this.piece(`ribs_${i}`,r&&!o&&this.has(`ribs_${i}_broken`)),this.piece(`knee_${i}`,r&&this.has(`knee_${i}_blown`)),this.piece(`elbow_${i}`,m===1),this.piece(`shoulder_${i}`,m===2)}f&&t.setEyeOut(this.eyeOut.left&&this.eyeOut.right?`both`:this.eyeOut.left?`left`:this.eyeOut.right?`right`:null),n.setWound(`liver`,+!!a(`liver_ruptured`)),n.setWound(`belly`,+!!a(`disemboweled`)),n.setGone(`waist`,+!!o),n.setGone(`chestHole`,r&&this.hole&&!o?1:0);let p=r&&this.has(`broken_jaw`)&&!s;this.jawHung&&!p&&t.setJaw(0),this.jawHung=p,o?e.headMesh.visible=!1:this.headHidden&&(e.headMesh.visible=!0),this.headHidden=o,this.piece(`skull`,c&&!o),this.piece(`maw`,s&&!o),this.piece(`chest`,r&&this.hole&&!o),this.piece(`waist`,o),c&&!o&&this.fitSkull();let m=bO(e,`body`);m!==null&&n.material!==null&&(n.open?m.customDepthMaterial=this.bodyShadow??=n.shadowMaterial():m.customDepthMaterial===this.bodyShadow&&(m.customDepthMaterial=void 0))}assert(){let e=this.boxer,t=e.headInjury,n=this.headRaises,r=this.bodyRaises;for(let e=0;e0,o=this.eyeOut.right||i.y>0;(this.eyeOut.left&&i.x===0||this.eyeOut.right&&i.y===0)&&t.setEyeOut(a&&o?`both`:a?`left`:`right`);let s=t.uniforms.uInjuryLid.value;(this.eyeShut.left||this.eyeShut.right)&&t.setEyesShut(this.eyeShut.left?1:s[0].w,this.eyeShut.right?1:s[1].w),this.gloveGone.left&&(e.gloveMesh(`left`).visible=!1),this.gloveGone.right&&(e.gloveMesh(`right`).visible=!1)}piece(e,t){if(t||this.pieces.has(e))for(let n of this.built(e))n.visible=t}built(e){let t=this.pieces.get(e);return t===void 0&&(t=this.make(e),this.pieces.set(e,t)),t}bindToWorld(e,t,n){let r=this.boxer.rig.bones[t],i=e.skeleton.bones.indexOf(r);return i<0?!1:(n.multiplyMatrices(r.matrixWorld,e.skeleton.boneInverses[i]).multiply(e.bindMatrix),!0)}skinMatrix(e,t,n){let r=e===`head`?this.boxer.headMesh:bO(this.boxer,`body`);return r!==null&&this.bindToWorld(r,t,n)}fitSkull(){let e=this.skull;if(e===null)return;let t=this.boxer.look,n=jb(zO.set(5.9,124.6,-3.3),t,this.root).x,r=jb(zO.set(-5.9,124.6,-3.3),t,this.root).x,i=jb(zO.set(0,124.6,3.3),t,this.root).z,a=jb(zO.set(0,124.6,-9.9),t,this.root).z,o=(i-a)/13.2;this.fit.makeScale((n-r)/11.8,1,o).setPosition((n+r)/2,0,(i+a)/2+3.3*o),e.matrix.multiplyMatrices(this.skullMount,this.fit)}solid(e){this.geometries.push(e);let t=new H(e,this.flesh);return t.receiveShadow=!0,t}mount(e,t,n=bO(this.boxer,`body`)){let r=this.boxer.rig.bones[e],i=n===null?-1:n.skeleton.bones.indexOf(r);return n!==null&&i>=0&&t.matrix.multiplyMatrices(n.skeleton.boneInverses[i],n.bindMatrix),t.matrixAutoUpdate=!1,t.visible=!1,r.add(t),t}closing(e,t,n){let r=bO(this.boxer,`body`);if(r===null)return[];let i=uk.get(r.geometry);i===void 0&&uk.set(r.geometry,i=new Map);let a=i.get(e);if(a===void 0&&i.set(e,a=Wv(r.geometry,t)),a.length===0)return[];let o=new $l(dk(r.geometry,a,n),this.flesh);return this.geometries.push(o.geometry),o.bind(r.skeleton,r.bindMatrix),o.frustumCulled=!1,o.receiveShadow=!0,o.visible=!1,(r.parent??this.boxer.root).add(o),[o]}make(e){let t=this.boxer.headMesh;if(e===`skull`){let e=new fc,n=this.solid(qO());return n.position.set(...GO),e.add(n,this.solid(JO())),this.mount(`head`,e,t),this.skullMount.copy(e.matrix),this.skull=e,this.brain=n,[e]}if(e===`maw`){let e=new fc,n=this.solid($O());return n.position.set(...YO),e.add(this.solid(ek()),n),this.tongue=n,[this.mount(`head`,e,t)]}if(e===`chest`)return[...this.closing(e,e=>f_(e.x,e.y,e.z)<=0,pk),this.mount(`chest`,this.solid(ak()))];if(e===`waist`)return[...this.closing(e,e=>!_O(`upper_body`,`body`,e),fk(SO,.8)),this.mount(`spine`,this.solid(rk()))];let n=e.endsWith(`_left`)?`left`:`right`,{sign:r,bone:i}=gk[n];switch(e.slice(0,e.indexOf(`_`))){case`fracture`:return[this.mount(`shoulder${i}`,this.solid(UO([r*27.6,103.3,-5],[r*(w_[0]+2.4),w_[1]+2.6,w_[2]+1.4],1.05))),this.mount(`elbow${i}`,this.solid(HO([UO([r*34.6,102.3,-4.8],[r*30,98.6,-.8],.8),UO([r*34,103.2,-5.6],[r*30.6,100.6,-9.8],.6)])))];case`ribs`:return[this.mount(`chest`,this.solid(ik(r)))];case`knee`:return[this.mount(`knee${i}`,this.solid(UO([r*8.8,37.8,-4.6],[r*(T_[0]+3.8),T_[1]-1.2,T_[2]-.2],1.2)))];case`elbow`:return[...this.closing(e,e=>!_O(`forearm_${n}`,`body`,e),fk(new B(r,0,0),0)),this.mount(`shoulder${i}`,this.solid(tk(r)))];case`shoulder`:return[...this.closing(e,e=>!_O(`arm_${n}`,`body`,e),fk(new B(r,0,0),1.6)),this.mount(`clavicle${i}`,this.solid(nk(r)))]}}};function vk(e){switch(e){case`skull_fractured`:return`skull`;case`broken_jaw`:return`jaw`;case`broken_nose`:return`nose`;case`ribs_left_broken`:return`ribs_left`;case`ribs_right_broken`:return`ribs_right`;case`arm_left_broken`:return`arm_left`;case`arm_right_broken`:return`arm_right`;case`knee_left_blown`:return`knee_left`;case`knee_right_blown`:return`knee_right`;case`shoulder_left_dislocated`:return`shoulder_left`;case`shoulder_right_dislocated`:return`shoulder_right`;default:return null}}var yk=.3,bk=1.35,xk=.07,Sk=.25,Ck=.4,wk=.13,Tk=.6,Ek=.66,Dk=1.05,Ok=new V(10474751),kk=new V(16777215),Ak=new V(132105),jk=5,Mk=8,Nk=(e,t)=>[t===`left`?e[0]:-e[0],e[1],e[2]];function Pk(e){let t=e.endsWith(`_right`)?`right`:`left`,n=t===`left`?`L`:`R`;return e===`skull`?{center:[0,123.5,-1],radius:13,anchor:`skull`}:e===`jaw`?{center:[0,113.5,2],radius:10,anchor:`mouth`}:e===`nose`?{center:[0,118,3],radius:9,anchor:`nose`}:e.startsWith(`ribs`)?{center:Nk(C_[1],t),radius:26,anchor:`ribs_${t}`}:e.startsWith(`arm`)?{center:Nk(w_,t),radius:17,anchor:`elbow_${t}`,joint:`elbow${n}`}:e.startsWith(`knee`)?{center:Nk(T_,t),radius:20,anchor:`knee_${t}`,joint:`knee${n}`}:{center:Nk([15,103.5,-5.5],t),radius:15,anchor:`shoulder_${t}`,joint:`shoulder${n}`}}var Fk=[1,1,1],Ik=[.06,.07,.09],Lk=[.3,.32,.36],Rk=[1,0,0],zk=new B(0,1,0);function Bk(e,t){e.deleteAttribute(`uv`);let n=e.getAttribute(`position`).count,r=new Float32Array(n*3);for(let e=0;e0?.25:-1.75,e>0?1.75:-.25)])}function eA(){let e=Bk(new Od(1,8,5,Math.PI/2-.55,1.1,.35,.7).scale(5.75,6.25,7.45).translate(0,121.6,-3),Lk),t=(e,t)=>[-5.8*Math.cos(e)*Math.sin(t),121.6+6.3*Math.cos(t),-3+7.5*Math.sin(e)*Math.sin(t)],n=[];for(let[e,r,i,a]of[[1,.35,.7,.05],[2.1,.4,2.7,.2],[2.1,1.05,2.8,1.2],[1,1.05,.4,1.3],[1.57,1.05,1.5,1.5],[1.57,.35,1.9,.02]]){let o=t((e+i)/2+.12,(r+a)/2+.05);n.push(Kk(t(e,r),o,.22,Ik),Kk(o,t(i,a),.16,Ik))}return qk([e,...n])}function tA(e,t,n){let r=[];for(let i=e;i #include } -`,Jk=class{root=new tc;uniforms={uCenter:{value:new B},uRadius:{value:0},uOpacity:{value:0},uFlash:{value:0}};material=new kd({uniforms:this.uniforms,vertexShader:Kk,fragmentShader:qk,vertexColors:!0,transparent:!0});framed=[];longs=[];chips=[];sprays=[];pieces=null;boxer=null;mutilation=null;site=null;spot=Ck(`skull`);center=new B;fighter=-1;elapsed=0;held=!1;push=new B;matrix=new Ds;local=new Ds;turn=new rs;from=new B;to=new B;along=new B;across=new B;axis=new B;outward=new B;offset=new B;one=new B(1,1,1);insetCamera=new Af(30,1,.05,40);canvasSize=new z;clearColor=new V;frameColor=new V;compiled=null;constructor(){this.root.visible=!1,this.root.name=`BoneXray`}get owner(){return this.site===null?-1:this.fighter}get breaking(){return this.site}get snapped(){return this.site!==null&&this.elapsed>=.3}drawInset(e,t,n){if(this.site===null||this.held||this.elapsed<=0)return;let r=e.getSize(this.canvasSize),i=Math.round(Math.min(r.x,r.y)*fk),a=Math.max(2,Math.round(i*.012)),o=this.fighter===0?Math.round(i*.08):r.x-i-Math.round(i*.08),s=r.y-i-Math.round(r.y*(r.y>r.x?mk:pk)),c=this.uniforms.uCenter.value,l=this.insetCamera,u=l.position.subVectors(n.position,c).setY(0).normalize();u.addScaledVector(this.push,-u.dot(this.push)),u.lengthSq()<.12&&u.set(-this.push.z,0,this.push.x),u.normalize().addScaledVector(this.outward,.4).setY(0).normalize(),l.position.multiplyScalar(this.spot.joint===void 0&&this.spot.radius<15?hk:gk).add(c),l.position.y+=.12,l.lookAt(c);let d=e.getClearAlpha(),f=e.shadowMap.autoUpdate;e.getClearColor(this.clearColor),e.shadowMap.autoUpdate=!1,e.setScissorTest(!0);let p=this.uniforms.uFlash.value;e.setClearColor(this.frameColor.copy(_k).lerp(vk,Math.min(1,p*2)),1),e.setScissor(o-a,s-a,i+a*2,i+a*2),e.clear(!0,!0,!1),e.setClearColor(yk,1),e.setScissor(o,s,i,i),e.setViewport(o,s,i,i),e.render(t,l),e.setScissorTest(!1),e.setViewport(0,0,r.x,r.y),e.setClearColor(this.clearColor,d),e.shadowMap.autoUpdate=f}start(e,t,n,r,i,a,o=!1){this.stop(),this.prepare(t),this.fighter=e,this.boxer=t,this.mutilation=n,this.site=r,this.spot=Ck(r),this.center.set(this.spot.center[0],this.spot.center[1],this.spot.center[2]);let s=lO(t,`body`),c=this.spot.joint===void 0||s===null?-1:s.skeleton.bones.indexOf(t.rig.bones[this.spot.joint]);c>=0&&this.center.setFromMatrixPosition(this.matrix.multiplyMatrices(s.skeleton.boneInverses[c],s.bindMatrix).invert()),this.elapsed=o?lk*.5:0,this.held=o,this.push.set(i,0,a),this.push.lengthSq()<1e-6&&this.push.set(1,0,0),this.push.normalize();let l=r.length*7+3,u=()=>(l=l*16807%2147483647,l/2147483647);for(let e of this.sprays)e.set(this.push.x*.9+u()*1.6-.8,u()*1.5-.2,this.push.z*.9+u()*1.6-.8).multiplyScalar(.5+u()*.9);this.root.visible=!0}stop(){this.site!==null&&(this.boxer?.headInjury.setXray(0,0,0,0,0),this.boxer?.bodyInjury.setXray(0,0,0,0,0),this.site=null,this.boxer=null,this.mutilation=null,this.root.visible=!1)}update(e){let{site:t,boxer:n,mutilation:r,pieces:i}=this;if(t===null||n===null||r===null||i===null)return;this.held||(this.elapsed+=e);let a=this.elapsed;if(a>=1.35||!r.anchor(this.spot.anchor,this.uniforms.uCenter.value,this.outward)){this.stop();return}this.spot.joint!==void 0&&n.rig.bones[this.spot.joint].getWorldPosition(this.uniforms.uCenter.value);let o=a-ck,s=o<0?0:1-Math.exp(-o*20),c=o<0||this.held?0:Math.exp(-o*11),l=Math.min(1,a/uk,(lk-a)/dk),u=this.spot,d=this.center,f=1/n.rig.metrics.unitsPerMeter,p=this.held?1e3:u.radius*(1+bk*c);n.headInjury.setXray(d.x,d.y,d.z,p,l),n.bodyInjury.setXray(d.x,d.y,d.z,p,l),this.uniforms.uRadius.value=p*f*1.1,this.uniforms.uOpacity.value=l,this.uniforms.uFlash.value=c*.55;let m=+!!t.endsWith(`_right`),h=m===1?-1:1;for(let e of this.framed)e.mesh.visible=r.skinMatrix(e.skin,e.bone,e.mesh.matrix),e.mesh.matrixWorldNeedsUpdate=!0;let g=(e,t,n,r,i)=>{this.turn.setFromAxisAngle(this.axis.set(n[0],n[1],n[2]),r),this.local.compose(this.offset.set(t[0]+i[0],t[1]+i[1],t[2]+i[2]),this.turn,this.one),e.matrix.multiply(this.local).multiply(this.matrix.makeTranslation(-t[0],-t[1],-t[2]))};i.plate.visible&&=t===`skull`&&s>0,t===`jaw`?(g(i.jaw[0],[0,111.7,3.9],[0,1,0],.3*s,[.9*s,-.7*s,0]),g(i.jaw[1],[-5,116.8,-2.1],[0,0,1],-.16*s,[.5*s,0,0])):t===`nose`?g(i.nasal,[0,120.4,3.6],[0,0,1],.7*s,[.5*s,-.2*s,-.5*s]):t.startsWith(`ribs`)&&g(i.ribsFront[m],[h*11.2,96,-1.2],[0,1,0],-h*.5*s,[-h*.9*s,0,0]);let _=n.rig.bones;for(let e of this.longs){_[e.from].getWorldPosition(this.from),_[e.to].getWorldPosition(this.to);let n=e.mesh===i.humerus[m]&&(t.startsWith(`arm`)||t.startsWith(`shoulder`))||e.mesh===i.shin[m]&&t.startsWith(`knee`);e.mesh.visible=!0,n&&t.startsWith(`arm`)?(e.mesh.visible=!1,this.along.subVectors(this.to,this.from),this.across.crossVectors(this.along,this.push).normalize(),this.across.lengthSq()<.5&&this.across.set(0,1,0),this.span(i.stump,this.from,this.to,e.length,f),this.to.copy(this.from).addScaledVector(this.along,.62),this.offset.crossVectors(this.across,this.along).normalize(),i.shard.position.copy(this.to).addScaledVector(this.offset,.022*s),this.turn.setFromAxisAngle(this.across,.75*s),i.shard.quaternion.copy(i.stump.quaternion).premultiply(this.turn),i.shard.scale.copy(i.stump.scale)):(n&&t.startsWith(`shoulder`)&&(this.from.addScaledVector(this.push,.035*s).y-=.04*s),n&&t.startsWith(`knee`)&&this.from.addScaledVector(this.outward,.05*s),this.span(e.mesh,this.from,this.to,e.length,f))}let v=t.startsWith(`arm`);i.stump.visible=v,i.shard.visible=v;let y=this.uniforms.uCenter.value;for(let[e,t]of this.chips.entries()){if(t.visible=o>0,o<=0)continue;let n=this.sprays[e];t.position.copy(y).addScaledVector(n,o*.55),t.position.y-=1.6*o*o,t.rotation.set(o*9+e,o*7,e),t.scale.setScalar((e{let t=new H(e,this.material);return t.frustumCulled=!1,t.renderOrder=40,this.root.add(t),t},n=(e,n,r)=>{let i=t(e);return i.matrixAutoUpdate=!1,this.framed.push({mesh:i,skin:n,bone:r}),i},r=e.rig.metrics,i=r.unitsPerMeter,a=(e,n,r,i)=>{let a=t(e);return this.longs.push({mesh:a,from:n,to:r,length:i}),a};n(Vk(),`head`,`head`);let o=n(Uk(),`head`,`head`),s=n(Fk([0,120.4,3.6],[0,118.3,5],.55,wk,.5),`head`,`head`),c=[n(Hk(1),`head`,`head`),n(Hk(-1),`head`,`head`)];n(Wk(108.5,116.5,-3.4),`body`,`neck`),n(Wk(88,108,-6.2),`body`,`chest`),n(Wk(76,87.5,-3.6),`body`,`spine`),n(Gk(),`body`,`hips`),n(Ik([kk(new Nu(2.2,10.5,.9).translate(0,99,4.3),wk),Fk([1.4,106.4,2.8],[13.6,105.2,-3.4],.55),Fk([-1.4,106.4,2.8],[-13.6,105.2,-3.4],.55),Ak([11,101,-7.6],[3.6,4.6,.7]),Ak([-11,101,-7.6],[3.6,4.6,.7])]),`body`,`chest`),n(zk(1,!1),`body`,`chest`),n(zk(-1,!1),`body`,`chest`);let l=[n(zk(1,!0),`body`,`chest`),n(zk(-1,!0),`body`,`chest`)],u=r.armL.upper*i,d=r.armL.lower*i,f=r.legL.upper*i,p=r.legL.lower*i,m=Lk(u,.95,1.5),h=Lk(d,.62,1.15,.9),g=Lk(f,1.25,2),_=Lk(p,1.05,1.75,1.5),v=Fk([0,0,0],[0,10,0],.9,wk,.6),y=[a(m,`shoulderL`,`elbowL`,u),a(m,`shoulderR`,`elbowR`,u)];a(h,`elbowL`,`gloveL`,d),a(h,`elbowR`,`gloveR`,d),a(g,`hipL`,`kneeL`,f),a(g,`hipR`,`kneeR`,f);let b=[a(_,`kneeL`,`ankleL`,p),a(_,`kneeR`,`ankleR`,p)];a(v,`ankleL`,`toeL`,10),a(v,`ankleR`,`toeR`,10);let x=u*.62,S=t(Ik([Fk([0,0,0],[0,x,0],.95,wk,.85),Ak([0,0,0],1.5),Fk([0,x,0],[.5,x+1.6,.2],.7,wk,.1),Ak([0,x,0],.6,Dk)])),C=t(Ik([Fk([0,.4,0],[0,u-x,0],.85),Ak([0,u-x,0],1.3),Fk([0,.6,0],[-.4,-1.5,-.3],.7,wk,.1),Ak([0,.5,0],.55,Dk)])),w=kk(new vd(1),wk),T=kk(new fd(1,1),Dk);for(let e=0;e<14;e+=1)this.chips.push(t(e{let e=this.context;e!==null&&e.state!==`running`&&e.resume().catch(()=>void 0),this.unlock().catch(()=>void 0)};visibility=()=>{let e=this.context;if(e===null)return;let t=document.hidden?e.suspend():this.unlocked?e.resume():null;t!==null&&t.catch(()=>void 0)};constructor(e){this.settings=e;for(let e of uA)window.addEventListener(e,this.unlockListener);document.addEventListener(`visibilitychange`,this.visibility)}unlock(){return this.destroyed||this.unlocked?Promise.resolve():(this.unlockPromise===null&&(this.unlockPromise=this.performUnlock().finally(()=>{this.unlockPromise=null})),this.unlockPromise)}async performUnlock(){let e=this.context;if(e===null){e=new AudioContext;let t=e.createGain();t.gain.value=Math.min(.8,Math.max(0,this.settings().volume));let n=e.createBiquadFilter();n.type=`lowpass`,n.frequency.value=cA,n.Q.value=.7,t.connect(n).connect(e.destination),this.context=e,this.master=t,this.muffle=n}if(e.state===`suspended`&&await e.resume(),this.destroyed||this.context!==e)return;let t=await this.decodeInjuryBuffers(e);if(!(this.destroyed||this.context!==e)){this.injuryBuffers=t,this.unlocked=!0;for(let e of uA)window.removeEventListener(e,this.unlockListener);this.crowdStarted||(this.crowdStarted=!0,this.crowdBed())}}setVolume(){this.master!==null&&(this.master.gain.value=Math.min(.8,Math.max(0,this.settings().volume)))}event(e,t=!1){if(this.unlocked)switch(e.kind){case`punch_start`:this.whoosh(e.detail.split(`:`)[1]??`jab`,t);break;case`whiff`:this.noise({duration:.11,frequency:850,sweepTo:320,gain:.07,type:`bandpass`,q:1.1});break;case`hit`:case`counter_hit`:{let n=e.detail.endsWith(`body`),r=Math.min(1,e.amount/260),i=Math.min(.36,.14+r*.2)*(e.kind===`counter_hit`?1.25:1);this.impact(i,n,r,t),(e.kind===`counter_hit`||r>.7||t)&&this.crowdSwell(.35+r*.4),(e.kind===`counter_hit`&&e.amount>=50||e.amount>=90)&&this.ooh(Math.min(1,e.amount/160));break}case`referee_hit`:{let t=Math.min(1,e.amount/260);this.impact(Math.min(.36,.16+t*.2),e.detail.endsWith(`body`),t),this.ooh(.7+t*.3),this.crowdSwell(.5+t*.3);break}case`referee_down`:this.impact(.36,!1,1),this.crowdRoar(1),this.ooh(1);break;case`block`:this.noise({duration:.045,frequency:1200,sweepTo:600,gain:.14,type:`bandpass`,q:1.1}),this.noise({duration:.09,frequency:260,gain:.08}),this.tone({from:160,to:110,duration:.06,type:`triangle`,gain:.05}),t&&this.tone({from:96,to:44,duration:.2,type:`sine`,gain:.2});break;case`perfect_block`:this.noise({duration:.05,frequency:1800,sweepTo:900,gain:.16,type:`bandpass`,q:1.6}),this.tone({from:280,to:210,duration:.06,type:`triangle`,gain:.06});break;case`guard_break`:this.impact(.3,!1,.9),this.tone({from:230,to:78,duration:.2,type:`sawtooth`,gain:.08}),this.crowdSwell(.5),this.ooh(.6);break;case`stun`:this.tone({from:96,to:74,duration:.22,type:`sine`,gain:.1}),this.crowdSwell(.3);break;case`parry`:this.noise({duration:.06,frequency:2400,sweepTo:1100,gain:.18,type:`bandpass`,q:1.8}),this.tone({from:330,to:180,duration:.09,type:`triangle`,gain:.07}),this.crowdSwell(.35);break;case`body_collapse`:this.tone({from:118,to:52,duration:.42,type:`sine`,gain:.16}),this.noise({duration:.26,frequency:420,sweepTo:180,gain:.05,type:`bandpass`,q:.9}),this.crowdSwell(.6);break;case`eye_shut`:this.crowdSwell(.25);break;case`corner`:this.noise({duration:.22,frequency:2600,sweepTo:1500,gain:.05,type:`bandpass`,q:.8});break;case`knockdown`:this.impact(.34,!1,1),this.tone({from:60,to:28,duration:.42,type:`sine`,gain:.3}),this.noise({duration:.3,frequency:140,gain:.24}),this.crowdRoar(1),this.hush();break;case`bell`:{let t=e.detail===`round_start`?3:1;for(let e=0;e10*r||this.clapperRound===t||(this.clapperRound=t,!this.unlocked))return;this.noise({duration:.05,frequency:2600,gain:.42,type:`bandpass`,q:1.4}),this.noise({duration:.09,frequency:700,gain:.18,type:`bandpass`,q:.8});let i=window.setTimeout(()=>{this.timers.delete(i),this.noise({duration:.05,frequency:2400,gain:.4,type:`bandpass`,q:1.4}),this.noise({duration:.09,frequency:660,gain:.16,type:`bandpass`,q:.8})},120);this.timers.add(i)}getUpBeat(){this.tone({from:1320,duration:.05,type:`square`,gain:.07})}getUpVerdict(e){e===`perfect`?(this.tone({from:880,to:1760,duration:.12,type:`triangle`,gain:.11}),this.tone({from:1760,duration:.1,type:`triangle`,gain:.08,delay:.07})):e===`good`?this.tone({from:660,to:990,duration:.1,type:`triangle`,gain:.09}):e===`wrong`?this.tone({from:140,duration:.16,type:`sawtooth`,gain:.09}):this.tone({from:260,duration:.09,type:`sine`,gain:.07})}chant(){let e=this.context;if(!(!this.unlocked||e===null||e.currentTime-this.lastChantAtthis.murmurLevel;this.murmurLevel=r,n.gain.setTargetAtTime(r*oA,t.currentTime,i?.3:.8)}rocked(e,t){this.follow(t);let n=this.context,r=this.muffle;if(!this.unlocked||n===null||r===null)return;let i=Math.max(0,Math.min(1,e));if(Math.abs(i-this.rockedLevel)>=.02||i===0&&this.rockedLevel!==0){let e=i>this.rockedLevel;this.rockedLevel=i,r.frequency.setTargetAtTime(cA*(lA/cA)**+i,n.currentTime,e?.05:.9)}i>.15&&t-this.lastRockedBeat>=fA(i)&&(this.lastRockedBeat=t,this.tone({from:58,to:40,duration:.12,type:`sine`,gain:.09+i*.08}),this.tone({from:50,to:36,duration:.14,type:`sine`,gain:.07+i*.06,delay:.16}))}snapshot(e,t,n,r){if(this.follow(e),!this.unlocked)return;let i=1-t/Math.max(1,n);i>.55&&e-this.lastBreathTick>=75&&(this.lastBreathTick=e,this.noise({duration:.18,frequency:420,gain:.045+i*.04})),(i>.72||r>500)&&this.rockedLevel<=.15&&e-this.lastHeartbeatTick>=24&&(this.lastHeartbeatTick=e,this.tone({from:52,duration:.09,type:`sine`,gain:.055}))}result(e){if(this.openMuffle(),!this.unlocked)return;this.crowdSwell(1),this.tone({from:e.winner_id===null?280:520,duration:.45,type:`triangle`,gain:.18});let t=window.setTimeout(()=>{this.timers.delete(t),this.tone({from:650,duration:.5,type:`triangle`,gain:.14})},160);this.timers.add(t)}injury(e){let t=this.context,n=this.master,r=this.injuryBuffers.get(Yk[e]??e),i=this.settings();if(!this.unlocked||t===null||n===null||i.blood!==`full`||i.reducedMotion||(this.tearing(),r===void 0))return;let a=t.createBufferSource(),o=t.createGain();a.buffer=r,o.gain.value=.2,a.connect(o).connect(n),a.start()}tearing(){this.noise({duration:.09,frequency:2600,sweepTo:700,gain:.22,type:`bandpass`,q:1.6}),this.noise({duration:.4,frequency:900,sweepTo:150,gain:.28,type:`lowpass`,q:6,offset:.35});for(let[e,t]of[.3,.9,1.5].entries())this.noise({duration:.2,frequency:480-e*60,sweepTo:170,gain:.13-e*.03,type:`bandpass`,q:4,delay:t,offset:.2+t})}gore(e){let t=this.settings();if(!this.unlocked||t.volume<=0)return;let n=t.blood===`full`&&!t.reducedMotion;switch(e.kind){case`injury`:{let t=Xk[$e(e.injury)];n?(this.wound(t,0),t===`crack`&&this.xray()):this.impact(.3,!1,.9),this.ooh(1),this.crowdSwell(.8),t!==`crack`&&this.crowdVoice({...nA,delay:.45});break}case`vomit`:n&&this.retch(),this.crowdVoice({...nA,gain:.09,delay:.5});break;case`finish_him`:this.omen(),this.crowdRoar(1);break;case`fatality`:this.sting(),n&&Zk[e.fatality].forEach((e,t)=>this.wound(e,t*.2)),this.crowdRoar(1),this.ooh(1);break;case`death`:ot(e.cause)===null?(this.flatline(0),this.hush(!0)):this.flatline(eA)}}wound(e,t){e===`crack`?this.crack(t):e===`rip`?this.rip(t):e===`squelch`?this.squelch(t):this.chop(t)}xray(){this.tone({from:90,to:440,duration:ck,type:`sine`,gain:.1,delay:0}),this.crack(ck),this.noise({duration:.16,frequency:520,sweepTo:170,gain:.2,type:`lowpass`,q:4,delay:ck+.03,offset:.3})}crack(e){this.noise({duration:.03,frequency:3400,sweepTo:1800,gain:.34,type:`bandpass`,q:2.2,delay:e}),this.tone({from:190,to:70,duration:.09,type:`triangle`,gain:.22,delay:e});for(let[t,n]of $k.entries())this.noise({duration:.018,frequency:2800-t*260,gain:.2-t*.03,type:`highpass`,q:1.4,delay:e+n,offset:.17*(t+1)})}rip(e){this.noise({duration:.5,frequency:420,sweepTo:2600,gain:.3,type:`bandpass`,q:3.2,delay:e,offset:.4}),this.noise({duration:.45,frequency:180,sweepTo:520,gain:.2,type:`lowpass`,q:5,delay:e+.03,offset:.7});for(let t=0;t<6;t+=1)this.noise({duration:.035,frequency:900+t*280,gain:.16,type:`bandpass`,q:6,delay:e+.05+t*.07,offset:.09*t});this.noise({duration:.12,frequency:700,sweepTo:160,gain:.24,type:`lowpass`,q:4,delay:e+.52,offset:.55})}squelch(e){this.noise({duration:.3,frequency:1100,sweepTo:140,gain:.32,type:`lowpass`,q:9,delay:e,offset:.25}),this.noise({duration:.22,frequency:300,sweepTo:900,gain:.18,type:`bandpass`,q:7,delay:e+.1,offset:.6}),this.tone({from:150,to:60,duration:.12,type:`sine`,gain:.16,delay:e}),this.spatter(e+.25)}spatter(e){for(let[t,n]of Qk.entries())this.noise({duration:.03,frequency:1500+t%3*600,sweepTo:500,gain:.14-t*.012,type:`bandpass`,q:3,delay:e+n,offset:.13*t})}chop(e){this.tone({from:120,to:38,duration:.2,type:`sine`,gain:.32,delay:e}),this.noise({duration:.05,frequency:2200,sweepTo:500,gain:.3,type:`bandpass`,q:1.2,delay:e}),this.noise({duration:.16,frequency:600,sweepTo:150,gain:.26,type:`lowpass`,q:5,delay:e+.02,offset:.3});for(let[t,n]of[.3,.75,1.2,1.65].entries())this.noise({duration:.22,frequency:520-t*60,sweepTo:170,gain:.15-t*.03,type:`bandpass`,q:4,delay:e+n,offset:.2+n})}retch(){for(let[e,t]of[0,.45].entries())this.tone({from:150-e*25,to:80,duration:.3,type:`sawtooth`,gain:.09,delay:t}),this.crowdVoice({duration:.36,first:[650,360],second:[1150,780],gain:.22,delay:t});this.noise({duration:.45,frequency:2400,sweepTo:300,gain:.24,type:`lowpass`,q:3,delay:.9,offset:.5}),this.spatter(1.05)}drum(e){this.tone({from:95,to:30,duration:.7,type:`sine`,gain:.35,delay:e}),this.noise({duration:.2,frequency:160,gain:.3,delay:e}),this.noise({duration:.03,frequency:1800,sweepTo:600,gain:.18,type:`bandpass`,q:1,delay:e})}omen(){this.drum(0),this.held({frequency:27.5,duration:1.4,gain:.3,attack:1.1,type:`sine`,delay:.1}),this.held({frequency:55,duration:1.4,gain:.12,attack:1.2,type:`sawtooth`,delay:.1}),this.held({frequency:58.3,duration:1.4,gain:.1,attack:1.2,type:`sawtooth`,delay:.1}),this.drum(1.5)}sting(){this.drum(0);for(let[e,t]of[196,185,147,110].entries())this.tone({from:t,to:t*.97,duration:.5,type:`sawtooth`,gain:.14,delay:e*.2}),this.tone({from:t/2,duration:.5,type:`square`,gain:.1,delay:e*.2});this.tone({from:73.4,to:69,duration:1.4,type:`sawtooth`,gain:.2,delay:.8}),this.tone({from:36.7,to:34.5,duration:1.4,type:`sine`,gain:.32,delay:.8}),this.drum(.8)}flatline(e){for(let t of[0,.38])this.held({frequency:880,duration:.09,gain:.1,attack:.005,type:`sine`,delay:e+t});this.held({frequency:880,duration:2.6,gain:.1,attack:.01,type:`sine`,delay:e+.76})}held(e){let t=this.context,n=this.master;if(t===null||n===null)return;let r=t.currentTime+(e.delay??0),i=Math.min(3,e.duration),a=Math.min(.35,e.gain),o=t.createOscillator(),s=t.createGain();o.type=e.type,o.frequency.setValueAtTime(Math.max(20,e.frequency),r),s.gain.setValueAtTime(1e-4,r),s.gain.exponentialRampToValueAtTime(a,r+Math.min(i-.03,e.attack)),s.gain.setValueAtTime(a,r+i-.03),s.gain.exponentialRampToValueAtTime(1e-4,r+i),o.connect(s).connect(n),o.start(r),o.stop(r+i+.03)}async decodeInjuryBuffers(e){let t=await Promise.all(Ri.map(async t=>{let n=atob(t.wav),r=new Uint8Array(n.length);for(let e=0;evoid 0)}},mA=class extends Error{code;reloadRequired;name=`ClientError`;constructor(e,t=!1){super(e),this.code=e,this.reloadRequired=t}};async function hA(e,t){if(!e.ok)throw new mA(e.status===429?`rate_limited`:t);if(!(e.headers.get(`content-type`)??``).toLowerCase().startsWith(`application/json`))throw new mA(t);try{return Ct(await e.text())}catch{throw new mA(t)}}function gA(e=window.location.search){let t=new URLSearchParams(e).getAll(`instance_id`);if(t.length!==1||!/^[A-Za-z0-9_-]{1,255}$/u.test(t[0]??``))throw new mA(`invalid_launch`);return t[0]}function _A(e){if(typeof e==`object`&&e&&`protocol`in e&&e.protocol!==7)throw new mA(`client_outdated`,!0)}async function vA(e,t){let n=new URL(`/api/hands/bootstrap`,window.location.origin);try{let r=await hA(await fetch(n,{method:`POST`,credentials:`same-origin`,cache:`no-store`,headers:{"Content-Type":`application/json`},body:JSON.stringify({instance_id:e}),...t===void 0?{}:{signal:t}}),`bootstrap_failed`);return _A(r),pn(r)}catch(e){throw e instanceof mA?e:e instanceof yt?new mA(`invalid_bootstrap`):new mA(`bootstrap_failed`)}}async function yA(e,t,n){try{return mn(await hA(await fetch(new URL(`/api/hands/token`,window.location.origin),{method:`POST`,credentials:`same-origin`,cache:`no-store`,headers:{"Content-Type":`application/json`},body:JSON.stringify({code:e,state:t}),...n===void 0?{}:{signal:n}}),`token_failed`))}catch(e){throw e instanceof mA?e:e instanceof yt?new mA(`invalid_token_response`):new mA(`token_failed`)}}function bA(e){return e instanceof mA?e.code:e instanceof yt?`protocol_error`:`unexpected_error`}var xA=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function SA(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var CA={exports:{}},wA;function TA(){return wA||(wA=1,(function(e){var t=Object.prototype.hasOwnProperty,n=`~`;function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(e,t,r,a,o){if(typeof r!=`function`)throw TypeError(`The listener must be a function`);var s=new i(r,a||e,o),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function o(e,t){--e._eventsCount===0?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var e=[],r,i;if(this._eventsCount===0)return e;for(i in r=this._events)t.call(r,i)&&e.push(n?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(r)):e},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,a=r.length,o=Array(a);ie;function t(e){}e.assertIs=t;function n(e){throw Error()}e.assertNever=n,e.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},e.getValidEnumValues=t=>{let n=e.objectKeys(t).filter(e=>typeof t[t[e]]!=`number`),r={};for(let e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys=typeof Object.keys==`function`?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(let n of e)if(t(n))return n},e.isInteger=typeof Number.isInteger==`function`?e=>Number.isInteger(e):e=>typeof e==`number`&&isFinite(e)&&Math.floor(e)===e;function r(e,t=` | `){return e.map(e=>typeof e==`string`?`'${e}'`:e).join(t)}e.joinValues=r,e.jsonStringifyReplacer=(e,t)=>typeof t==`bigint`?t.toString():t})(DA||={});var OA;(function(e){e.mergeShapes=(e,t)=>({...e,...t})})(OA||={});var K=DA.arrayToEnum([`string`,`nan`,`number`,`integer`,`float`,`boolean`,`date`,`bigint`,`symbol`,`function`,`undefined`,`null`,`array`,`object`,`unknown`,`promise`,`void`,`never`,`map`,`set`]),kA=e=>{switch(typeof e){case`undefined`:return K.undefined;case`string`:return K.string;case`number`:return isNaN(e)?K.nan:K.number;case`boolean`:return K.boolean;case`function`:return K.function;case`bigint`:return K.bigint;case`symbol`:return K.symbol;case`object`:return Array.isArray(e)?K.array:e===null?K.null:e.then&&typeof e.then==`function`&&e.catch&&typeof e.catch==`function`?K.promise:typeof Map<`u`&&e instanceof Map?K.map:typeof Set<`u`&&e instanceof Set?K.set:typeof Date<`u`&&e instanceof Date?K.date:K.object;default:return K.unknown}},q=DA.arrayToEnum([`invalid_type`,`invalid_literal`,`custom`,`invalid_union`,`invalid_union_discriminator`,`invalid_enum_value`,`unrecognized_keys`,`invalid_arguments`,`invalid_return_type`,`invalid_date`,`invalid_string`,`too_small`,`too_big`,`invalid_intersection_types`,`not_multiple_of`,`not_finite`]),AA=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,`$1:`),jA=class e extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name=`ZodError`,this.issues=e}get errors(){return this.issues}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`)i.unionErrors.map(r);else if(i.code===`invalid_return_type`)r(i.returnTypeError);else if(i.code===`invalid_arguments`)r(i.argumentsError);else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;re.message){let t={},n=[];for(let r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}};jA.create=e=>new jA(e);var MA=(e,t)=>{let n;switch(e.code){case q.invalid_type:n=e.received===K.undefined?`Required`:`Expected ${e.expected}, received ${e.received}`;break;case q.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,DA.jsonStringifyReplacer)}`;break;case q.unrecognized_keys:n=`Unrecognized key(s) in object: ${DA.joinValues(e.keys,`, `)}`;break;case q.invalid_union:n=`Invalid input`;break;case q.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${DA.joinValues(e.options)}`;break;case q.invalid_enum_value:n=`Invalid enum value. Expected ${DA.joinValues(e.options)}, received '${e.received}'`;break;case q.invalid_arguments:n=`Invalid function arguments`;break;case q.invalid_return_type:n=`Invalid function return type`;break;case q.invalid_date:n=`Invalid date`;break;case q.invalid_string:typeof e.validation==`object`?`includes`in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position==`number`&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):`startsWith`in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:`endsWith`in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:DA.assertNever(e.validation):n=e.validation===`regex`?`Invalid`:`Invalid ${e.validation}`;break;case q.too_small:n=e.type===`array`?`Array must contain ${e.exact?`exactly`:e.inclusive?`at least`:`more than`} ${e.minimum} element(s)`:e.type===`string`?`String must contain ${e.exact?`exactly`:e.inclusive?`at least`:`over`} ${e.minimum} character(s)`:e.type===`number`?`Number must be ${e.exact?`exactly equal to `:e.inclusive?`greater than or equal to `:`greater than `}${e.minimum}`:e.type===`date`?`Date must be ${e.exact?`exactly equal to `:e.inclusive?`greater than or equal to `:`greater than `}${new Date(Number(e.minimum))}`:`Invalid input`;break;case q.too_big:n=e.type===`array`?`Array must contain ${e.exact?`exactly`:e.inclusive?`at most`:`less than`} ${e.maximum} element(s)`:e.type===`string`?`String must contain ${e.exact?`exactly`:e.inclusive?`at most`:`under`} ${e.maximum} character(s)`:e.type===`number`?`Number must be ${e.exact?`exactly`:e.inclusive?`less than or equal to`:`less than`} ${e.maximum}`:e.type===`bigint`?`BigInt must be ${e.exact?`exactly`:e.inclusive?`less than or equal to`:`less than`} ${e.maximum}`:e.type===`date`?`Date must be ${e.exact?`exactly`:e.inclusive?`smaller than or equal to`:`smaller than`} ${new Date(Number(e.maximum))}`:`Invalid input`;break;case q.custom:n=`Invalid input`;break;case q.invalid_intersection_types:n=`Intersection results could not be merged`;break;case q.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case q.not_finite:n=`Number must be finite`;break;default:n=t.defaultError,DA.assertNever(e)}return{message:n}},NA=MA;function PA(e){NA=e}function FA(){return NA}var IA=e=>{let{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a};if(i.message!==void 0)return{...i,path:a,message:i.message};let s=``,c=r.filter(e=>!!e).slice().reverse();for(let e of c)s=e(o,{data:t,defaultError:s}).message;return{...i,path:a,message:s}},LA=[];function J(e,t){let n=FA(),r=IA({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===MA?void 0:MA].filter(e=>!!e)});e.common.issues.push(r)}var RA=class e{constructor(){this.value=`valid`}dirty(){this.value===`valid`&&(this.value=`dirty`)}abort(){this.value!==`aborted`&&(this.value=`aborted`)}static mergeArray(e,t){let n=[];for(let r of t){if(r.status===`aborted`)return zA;r.status===`dirty`&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(t,n){let r=[];for(let e of n){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return e.mergeObjectSync(t,r)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:t,value:i}=r;if(t.status===`aborted`||i.status===`aborted`)return zA;t.status===`dirty`&&e.dirty(),i.status===`dirty`&&e.dirty(),t.value!==`__proto__`&&(i.value!==void 0||r.alwaysSet)&&(n[t.value]=i.value)}return{status:e.value,value:n}}},zA=Object.freeze({status:`aborted`}),BA=e=>({status:`dirty`,value:e}),VA=e=>({status:`valid`,value:e}),HA=e=>e.status===`aborted`,UA=e=>e.status===`dirty`,WA=e=>e.status===`valid`,GA=e=>typeof Promise<`u`&&e instanceof Promise;function KA(e,t,n,r){if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return t.get(e)}function qA(e,t,n,r,i){if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return t.set(e,n),n}var JA;(function(e){e.errToObj=e=>typeof e==`string`?{message:e}:e||{},e.toString=e=>typeof e==`string`?e:e?.message})(JA||={});var YA,XA,ZA=class{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},QA=(e,t)=>{if(WA(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error(`Validation failed but no issues detected.`);return{success:!1,get error(){if(this._error)return this._error;let t=new jA(e.common.issues);return this._error=t,this._error}}};function $A(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:a}=e;return t.code===`invalid_enum_value`?{message:a??i.defaultError}:i.data===void 0?{message:a??r??i.defaultError}:t.code===`invalid_type`?{message:a??n??i.defaultError}:{message:i.defaultError}},description:i}}var ej=class{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return kA(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:kA(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new RA,ctx:{common:e.parent.common,data:e.data,parsedType:kA(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(GA(t))throw Error(`Synchronous parse encountered promise.`);return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){let n={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:kA(e)};return QA(n,this._parseSync({data:e,path:n.path,parent:n}))}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:kA(e)},r=this._parse({data:e,path:n.path,parent:n});return QA(n,await(GA(r)?r:Promise.resolve(r)))}refine(e,t){let n=e=>typeof t==`string`||t===void 0?{message:t}:typeof t==`function`?t(e):t;return this._refinement((t,r)=>{let i=e(t),a=()=>r.addIssue({code:q.custom,...n(t)});return typeof Promise<`u`&&i instanceof Promise?i.then(e=>e?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(e,t){return this._refinement((n,r)=>e(n)?!0:(r.addIssue(typeof t==`function`?t(n,r):t),!1))}_refinement(e){return new Zj({schema:this,typeName:lM.ZodEffects,effect:{type:`refinement`,refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return Qj.create(this,this._def)}nullable(){return $j.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Mj.create(this,this._def)}promise(){return Xj.create(this,this._def)}or(e){return Fj.create([this,e],this._def)}and(e){return zj.create(this,e,this._def)}transform(e){return new Zj({...$A(this._def),schema:this,typeName:lM.ZodEffects,effect:{type:`transform`,transform:e}})}default(e){let t=typeof e==`function`?e:()=>e;return new eM({...$A(this._def),innerType:this,defaultValue:t,typeName:lM.ZodDefault})}brand(){return new iM({typeName:lM.ZodBranded,type:this,...$A(this._def)})}catch(e){let t=typeof e==`function`?e:()=>e;return new tM({...$A(this._def),innerType:this,catchValue:t,typeName:lM.ZodCatch})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}pipe(e){return aM.create(this,e)}readonly(){return oM.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},tj=/^c[^\s-]{8,}$/i,nj=/^[0-9a-z]+$/,rj=/^[0-9A-HJKMNP-TV-Z]{26}$/,ij=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-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048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`,mj=RegExp(`^${pj}$`);function hj(e){let t=`([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d`;return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision??(t=`${t}(\\.\\d+)?`),t}function gj(e){return RegExp(`^${hj(e)}$`)}function _j(e){let t=`${pj}T${hj(e)}`,n=[];return n.push(e.local?`Z?`:`Z`),e.offset&&n.push(`([+-]\\d{2}:?\\d{2})`),t=`${t}(${n.join(`|`)})`,RegExp(`^${t}$`)}function vj(e,t){return!((t!==`v4`&&t||!uj.test(e))&&(t!==`v6`&&t||!dj.test(e)))}var yj=class e extends ej{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==K.string){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.string,received:t.parsedType}),zA}let t=new RA,n;for(let r of this._def.checks)if(r.kind===`min`)e.data.lengthr.value&&(n=this._getOrReturnCtx(e,n),J(n,{code:q.too_big,maximum:r.value,type:`string`,inclusive:!0,exact:!1,message:r.message}),t.dirty());else if(r.kind===`length`){let i=e.data.length>r.value,a=e.data.lengthe.test(t),{validation:t,code:q.invalid_string,...JA.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(e){return this._addCheck({kind:`email`,...JA.errToObj(e)})}url(e){return this._addCheck({kind:`url`,...JA.errToObj(e)})}emoji(e){return this._addCheck({kind:`emoji`,...JA.errToObj(e)})}uuid(e){return this._addCheck({kind:`uuid`,...JA.errToObj(e)})}nanoid(e){return this._addCheck({kind:`nanoid`,...JA.errToObj(e)})}cuid(e){return this._addCheck({kind:`cuid`,...JA.errToObj(e)})}cuid2(e){return this._addCheck({kind:`cuid2`,...JA.errToObj(e)})}ulid(e){return this._addCheck({kind:`ulid`,...JA.errToObj(e)})}base64(e){return this._addCheck({kind:`base64`,...JA.errToObj(e)})}ip(e){return this._addCheck({kind:`ip`,...JA.errToObj(e)})}datetime(e){return typeof e==`string`?this._addCheck({kind:`datetime`,precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:`datetime`,precision:e?.precision===void 0?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...JA.errToObj(e?.message)})}date(e){return this._addCheck({kind:`date`,message:e})}time(e){return typeof e==`string`?this._addCheck({kind:`time`,precision:null,message:e}):this._addCheck({kind:`time`,precision:e?.precision===void 0?null:e?.precision,...JA.errToObj(e?.message)})}duration(e){return this._addCheck({kind:`duration`,...JA.errToObj(e)})}regex(e,t){return this._addCheck({kind:`regex`,regex:e,...JA.errToObj(t)})}includes(e,t){return this._addCheck({kind:`includes`,value:e,position:t?.position,...JA.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:`startsWith`,value:e,...JA.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:`endsWith`,value:e,...JA.errToObj(t)})}min(e,t){return this._addCheck({kind:`min`,value:e,...JA.errToObj(t)})}max(e,t){return this._addCheck({kind:`max`,value:e,...JA.errToObj(t)})}length(e,t){return this._addCheck({kind:`length`,value:e,...JA.errToObj(t)})}nonempty(e){return this.min(1,JA.errToObj(e))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:`trim`}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:`toLowerCase`}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:`toUpperCase`}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind===`datetime`)}get isDate(){return!!this._def.checks.find(e=>e.kind===`date`)}get isTime(){return!!this._def.checks.find(e=>e.kind===`time`)}get isDuration(){return!!this._def.checks.find(e=>e.kind===`duration`)}get isEmail(){return!!this._def.checks.find(e=>e.kind===`email`)}get isURL(){return!!this._def.checks.find(e=>e.kind===`url`)}get isEmoji(){return!!this._def.checks.find(e=>e.kind===`emoji`)}get isUUID(){return!!this._def.checks.find(e=>e.kind===`uuid`)}get isNANOID(){return!!this._def.checks.find(e=>e.kind===`nanoid`)}get isCUID(){return!!this._def.checks.find(e=>e.kind===`cuid`)}get isCUID2(){return!!this._def.checks.find(e=>e.kind===`cuid2`)}get isULID(){return!!this._def.checks.find(e=>e.kind===`ulid`)}get isIP(){return!!this._def.checks.find(e=>e.kind===`ip`)}get isBase64(){return!!this._def.checks.find(e=>e.kind===`base64`)}get minLength(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.valuenew yj({checks:[],typeName:lM.ZodString,coerce:e?.coerce??!1,...$A(e)});function bj(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=(t.toString().split(`.`)[1]||``).length,i=n>r?n:r;return parseInt(e.toFixed(i).replace(`.`,``))%parseInt(t.toFixed(i).replace(`.`,``))/10**i}var xj=class e extends ej{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==K.number){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.number,received:t.parsedType}),zA}let t,n=new RA;for(let r of this._def.checks)r.kind===`int`?DA.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),J(t,{code:q.invalid_type,expected:`integer`,received:`float`,message:r.message}),n.dirty()):r.kind===`min`?(r.inclusive?e.datar.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),J(t,{code:q.too_big,maximum:r.value,type:`number`,inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):r.kind===`multipleOf`?bj(e.data,r.value)!==0&&(t=this._getOrReturnCtx(e,t),J(t,{code:q.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):r.kind===`finite`?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),J(t,{code:q.not_finite,message:r.message}),n.dirty()):DA.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit(`min`,e,!0,JA.toString(t))}gt(e,t){return this.setLimit(`min`,e,!1,JA.toString(t))}lte(e,t){return this.setLimit(`max`,e,!0,JA.toString(t))}lt(e,t){return this.setLimit(`max`,e,!1,JA.toString(t))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:JA.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(e){return this._addCheck({kind:`int`,message:JA.toString(e)})}positive(e){return this._addCheck({kind:`min`,value:0,inclusive:!1,message:JA.toString(e)})}negative(e){return this._addCheck({kind:`max`,value:0,inclusive:!1,message:JA.toString(e)})}nonpositive(e){return this._addCheck({kind:`max`,value:0,inclusive:!0,message:JA.toString(e)})}nonnegative(e){return this._addCheck({kind:`min`,value:0,inclusive:!0,message:JA.toString(e)})}multipleOf(e,t){return this._addCheck({kind:`multipleOf`,value:e,message:JA.toString(t)})}finite(e){return this._addCheck({kind:`finite`,message:JA.toString(e)})}safe(e){return this._addCheck({kind:`min`,inclusive:!0,value:-(2**53-1),message:JA.toString(e)})._addCheck({kind:`max`,inclusive:!0,value:2**53-1,message:JA.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.valuee.kind===`int`||e.kind===`multipleOf`&&DA.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks)if(n.kind===`finite`||n.kind===`int`||n.kind===`multipleOf`)return!0;else n.kind===`min`?(t===null||n.value>t)&&(t=n.value):n.kind===`max`&&(e===null||n.valuenew xj({checks:[],typeName:lM.ZodNumber,coerce:e?.coerce||!1,...$A(e)});var Sj=class e extends ej{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==K.bigint){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.bigint,received:t.parsedType}),zA}let t,n=new RA;for(let r of this._def.checks)r.kind===`min`?(r.inclusive?e.datar.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),J(t,{code:q.too_big,type:`bigint`,maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):r.kind===`multipleOf`?e.data%r.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),J(t,{code:q.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):DA.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit(`min`,e,!0,JA.toString(t))}gt(e,t){return this.setLimit(`min`,e,!1,JA.toString(t))}lte(e,t){return this.setLimit(`max`,e,!0,JA.toString(t))}lt(e,t){return this.setLimit(`max`,e,!1,JA.toString(t))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:JA.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(e){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!1,message:JA.toString(e)})}negative(e){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!1,message:JA.toString(e)})}nonpositive(e){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!0,message:JA.toString(e)})}nonnegative(e){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!0,message:JA.toString(e)})}multipleOf(e,t){return this._addCheck({kind:`multipleOf`,value:e,message:JA.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.valuenew Sj({checks:[],typeName:lM.ZodBigInt,coerce:e?.coerce??!1,...$A(e)});var Cj=class extends ej{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==K.boolean){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.boolean,received:t.parsedType}),zA}return VA(e.data)}};Cj.create=e=>new Cj({typeName:lM.ZodBoolean,coerce:e?.coerce||!1,...$A(e)});var wj=class e extends ej{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==K.date){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.date,received:t.parsedType}),zA}if(isNaN(e.data.getTime()))return J(this._getOrReturnCtx(e),{code:q.invalid_date}),zA;let t=new RA,n;for(let r of this._def.checks)r.kind===`min`?e.data.getTime()r.value&&(n=this._getOrReturnCtx(e,n),J(n,{code:q.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:`date`}),t.dirty()):DA.assertNever(r);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(e,t){return this._addCheck({kind:`min`,value:e.getTime(),message:JA.toString(t)})}max(e,t){return this._addCheck({kind:`max`,value:e.getTime(),message:JA.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e==null?null:new Date(e)}get maxDate(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.valuenew wj({checks:[],coerce:e?.coerce||!1,typeName:lM.ZodDate,...$A(e)});var Tj=class extends ej{_parse(e){if(this._getType(e)!==K.symbol){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.symbol,received:t.parsedType}),zA}return VA(e.data)}};Tj.create=e=>new Tj({typeName:lM.ZodSymbol,...$A(e)});var Ej=class extends ej{_parse(e){if(this._getType(e)!==K.undefined){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.undefined,received:t.parsedType}),zA}return VA(e.data)}};Ej.create=e=>new Ej({typeName:lM.ZodUndefined,...$A(e)});var Dj=class extends ej{_parse(e){if(this._getType(e)!==K.null){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.null,received:t.parsedType}),zA}return VA(e.data)}};Dj.create=e=>new Dj({typeName:lM.ZodNull,...$A(e)});var Oj=class extends ej{constructor(){super(...arguments),this._any=!0}_parse(e){return VA(e.data)}};Oj.create=e=>new Oj({typeName:lM.ZodAny,...$A(e)});var kj=class extends ej{constructor(){super(...arguments),this._unknown=!0}_parse(e){return VA(e.data)}};kj.create=e=>new kj({typeName:lM.ZodUnknown,...$A(e)});var Aj=class extends ej{_parse(e){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.never,received:t.parsedType}),zA}};Aj.create=e=>new Aj({typeName:lM.ZodNever,...$A(e)});var jj=class extends ej{_parse(e){if(this._getType(e)!==K.undefined){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.void,received:t.parsedType}),zA}return VA(e.data)}};jj.create=e=>new jj({typeName:lM.ZodVoid,...$A(e)});var Mj=class e extends ej{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==K.array)return J(t,{code:q.invalid_type,expected:K.array,received:t.parsedType}),zA;if(r.exactLength!==null){let e=t.data.length>r.exactLength.value,i=t.data.lengthr.maxLength.value&&(J(t,{code:q.too_big,maximum:r.maxLength.value,type:`array`,inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new ZA(t,e,t.path,n)))).then(e=>RA.mergeArray(n,e));let i=[...t.data].map((e,n)=>r.type._parseSync(new ZA(t,e,t.path,n)));return RA.mergeArray(n,i)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:JA.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:JA.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:JA.toString(n)}})}nonempty(e){return this.min(1,e)}};Mj.create=(e,t)=>new Mj({type:e,minLength:null,maxLength:null,exactLength:null,typeName:lM.ZodArray,...$A(t)});function Nj(e){if(e instanceof Pj){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=Qj.create(Nj(r))}return new Pj({...e._def,shape:()=>t})}return e instanceof Mj?new Mj({...e._def,type:Nj(e.element)}):e instanceof Qj?Qj.create(Nj(e.unwrap())):e instanceof $j?$j.create(Nj(e.unwrap())):e instanceof Bj?Bj.create(e.items.map(e=>Nj(e))):e}var Pj=class e extends ej{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),t=DA.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==K.object){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.object,received:t.parsedType}),zA}let{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof Aj&&this._def.unknownKeys===`strip`))for(let e in n.data)i.includes(e)||a.push(e);let o=[];for(let e of i){let t=r[e],i=n.data[e];o.push({key:{status:`valid`,value:e},value:t._parse(new ZA(n,i,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof Aj){let e=this._def.unknownKeys;if(e===`passthrough`)for(let e of a)o.push({key:{status:`valid`,value:e},value:{status:`valid`,value:n.data[e]}});else if(e===`strict`)a.length>0&&(J(n,{code:q.unrecognized_keys,keys:a}),t.dirty());else if(e!==`strip`)throw Error(`Internal ZodObject error: invalid unknownKeys value.`)}else{let e=this._def.catchall;for(let t of a){let r=n.data[t];o.push({key:{status:`valid`,value:t},value:e._parse(new ZA(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of o){let n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e}).then(e=>RA.mergeObjectSync(t,e)):RA.mergeObjectSync(t,o)}get shape(){return this._def.shape()}strict(t){return JA.errToObj,new e({...this._def,unknownKeys:`strict`,...t===void 0?{}:{errorMap:(e,n)=>{var r;let i=(r=this._def).errorMap?.call(r,e,n).message??n.defaultError;return e.code===`unrecognized_keys`?{message:JA.errToObj(t).message??i}:{message:i}}}})}strip(){return new e({...this._def,unknownKeys:`strip`})}passthrough(){return new e({...this._def,unknownKeys:`passthrough`})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:lM.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};return DA.objectKeys(t).forEach(e=>{t[e]&&this.shape[e]&&(n[e]=this.shape[e])}),new e({...this._def,shape:()=>n})}omit(t){let n={};return DA.objectKeys(this.shape).forEach(e=>{t[e]||(n[e]=this.shape[e])}),new e({...this._def,shape:()=>n})}deepPartial(){return Nj(this)}partial(t){let n={};return DA.objectKeys(this.shape).forEach(e=>{let r=this.shape[e];t&&!t[e]?n[e]=r:n[e]=r.optional()}),new e({...this._def,shape:()=>n})}required(t){let n={};return DA.objectKeys(this.shape).forEach(e=>{if(t&&!t[e])n[e]=this.shape[e];else{let t=this.shape[e];for(;t instanceof Qj;)t=t._def.innerType;n[e]=t}}),new e({...this._def,shape:()=>n})}keyof(){return qj(DA.objectKeys(this.shape))}};Pj.create=(e,t)=>new Pj({shape:()=>e,unknownKeys:`strip`,catchall:Aj.create(),typeName:lM.ZodObject,...$A(t)}),Pj.strictCreate=(e,t)=>new Pj({shape:()=>e,unknownKeys:`strict`,catchall:Aj.create(),typeName:lM.ZodObject,...$A(t)}),Pj.lazycreate=(e,t)=>new Pj({shape:e,unknownKeys:`strip`,catchall:Aj.create(),typeName:lM.ZodObject,...$A(t)});var Fj=class extends ej{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;function r(e){for(let t of e)if(t.result.status===`valid`)return t.result;for(let n of e)if(n.result.status===`dirty`)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new jA(e.ctx.common.issues));return J(t,{code:q.invalid_union,unionErrors:n}),zA}if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(r);{let e,r=[];for(let i of n){let n={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:n});if(a.status===`valid`)return a;a.status===`dirty`&&!e&&(e={result:a,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=r.map(e=>new jA(e));return J(t,{code:q.invalid_union,unionErrors:i}),zA}}get options(){return this._def.options}};Fj.create=(e,t)=>new Fj({options:e,typeName:lM.ZodUnion,...$A(t)});var Ij=e=>e instanceof Gj?Ij(e.schema):e instanceof Zj?Ij(e.innerType()):e instanceof Kj?[e.value]:e instanceof Jj?e.options:e instanceof Yj?DA.objectValues(e.enum):e instanceof eM?Ij(e._def.innerType):e instanceof Ej?[void 0]:e instanceof Dj?[null]:e instanceof Qj?[void 0,...Ij(e.unwrap())]:e instanceof $j?[null,...Ij(e.unwrap())]:e instanceof iM||e instanceof oM?Ij(e.unwrap()):e instanceof tM?Ij(e._def.innerType):[],Lj=class e extends ej{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==K.object)return J(t,{code:q.invalid_type,expected:K.object,received:t.parsedType}),zA;let n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(J(t,{code:q.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),zA)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){let i=new Map;for(let e of n){let n=Ij(e.shape[t]);if(!n.length)throw Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let r of n){if(i.has(r))throw Error(`Discriminator property ${String(t)} has duplicate value ${String(r)}`);i.set(r,e)}}return new e({typeName:lM.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...$A(r)})}};function Rj(e,t){let n=kA(e),r=kA(t);if(e===t)return{valid:!0,data:e};if(n===K.object&&r===K.object){let n=DA.objectKeys(t),r=DA.objectKeys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=Rj(e[n],t[n]);if(!r.valid)return{valid:!1};i[n]=r.data}return{valid:!0,data:i}}if(n===K.array&&r===K.array){if(e.length!==t.length)return{valid:!1};let n=[];for(let r=0;r{if(HA(e)||HA(r))return zA;let i=Rj(e.value,r.value);return i.valid?((UA(e)||UA(r))&&t.dirty(),{status:t.value,value:i.data}):(J(n,{code:q.invalid_intersection_types}),zA)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};zj.create=(e,t,n)=>new zj({left:e,right:t,typeName:lM.ZodIntersection,...$A(n)});var Bj=class e extends ej{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==K.array)return J(n,{code:q.invalid_type,expected:K.array,received:n.parsedType}),zA;if(n.data.lengththis._def.items.length&&(J(n,{code:q.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:`array`}),t.dirty());let r=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new ZA(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(r).then(e=>RA.mergeArray(t,e)):RA.mergeArray(t,r)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};Bj.create=(e,t)=>{if(!Array.isArray(e))throw Error(`You must pass an array of schemas to z.tuple([ ... ])`);return new Bj({items:e,typeName:lM.ZodTuple,rest:null,...$A(t)})};var Vj=class e extends ej{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==K.object)return J(n,{code:q.invalid_type,expected:K.object,received:n.parsedType}),zA;let r=[],i=this._def.keyType,a=this._def.valueType;for(let e in n.data)r.push({key:i._parse(new ZA(n,e,n.path,e)),value:a._parse(new ZA(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?RA.mergeObjectAsync(t,r):RA.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof ej?new e({keyType:t,valueType:n,typeName:lM.ZodRecord,...$A(r)}):new e({keyType:yj.create(),valueType:t,typeName:lM.ZodRecord,...$A(n)})}},Hj=class extends ej{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==K.map)return J(n,{code:q.invalid_type,expected:K.map,received:n.parsedType}),zA;let r=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map(([e,t],a)=>({key:r._parse(new ZA(n,e,n.path,[a,`key`])),value:i._parse(new ZA(n,t,n.path,[a,`value`]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of a){let r=await n.key,i=await n.value;if(r.status===`aborted`||i.status===`aborted`)return zA;(r.status===`dirty`||i.status===`dirty`)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let n of a){let r=n.key,i=n.value;if(r.status===`aborted`||i.status===`aborted`)return zA;(r.status===`dirty`||i.status===`dirty`)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}};Hj.create=(e,t,n)=>new Hj({valueType:t,keyType:e,typeName:lM.ZodMap,...$A(n)});var Uj=class e extends ej{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==K.set)return J(n,{code:q.invalid_type,expected:K.set,received:n.parsedType}),zA;let r=this._def;r.minSize!==null&&n.data.sizer.maxSize.value&&(J(n,{code:q.too_big,maximum:r.maxSize.value,type:`set`,inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let n=new Set;for(let r of e){if(r.status===`aborted`)return zA;r.status===`dirty`&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let o=[...n.data.values()].map((e,t)=>i._parse(new ZA(n,e,n.path,t)));return n.common.async?Promise.all(o).then(e=>a(e)):a(o)}min(t,n){return new e({...this._def,minSize:{value:t,message:JA.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:JA.toString(n)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}};Uj.create=(e,t)=>new Uj({valueType:e,minSize:null,maxSize:null,typeName:lM.ZodSet,...$A(t)});var Wj=class e extends ej{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==K.function)return J(t,{code:q.invalid_type,expected:K.function,received:t.parsedType}),zA;function n(e,n){return IA({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,FA(),MA].filter(e=>!!e),issueData:{code:q.invalid_arguments,argumentsError:n}})}function r(e,n){return IA({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,FA(),MA].filter(e=>!!e),issueData:{code:q.invalid_return_type,returnTypeError:n}})}let i={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof Xj){let e=this;return VA(async function(...t){let o=new jA([]),s=await e._def.args.parseAsync(t,i).catch(e=>{throw o.addIssue(n(t,e)),o}),c=await Reflect.apply(a,this,s);return await e._def.returns._def.type.parseAsync(c,i).catch(e=>{throw o.addIssue(r(c,e)),o})})}{let e=this;return VA(function(...t){let o=e._def.args.safeParse(t,i);if(!o.success)throw new jA([n(t,o.error)]);let s=Reflect.apply(a,this,o.data),c=e._def.returns.safeParse(s,i);if(!c.success)throw new jA([r(s,c.error)]);return c.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:Bj.create(t).rest(kj.create())})}returns(t){return new e({...this._def,returns:t})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(t,n,r){return new e({args:t||Bj.create([]).rest(kj.create()),returns:n||kj.create(),typeName:lM.ZodFunction,...$A(r)})}},Gj=class extends ej{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}};Gj.create=(e,t)=>new Gj({getter:e,typeName:lM.ZodLazy,...$A(t)});var Kj=class extends ej{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return J(t,{received:t.data,code:q.invalid_literal,expected:this._def.value}),zA}return{status:`valid`,value:e.data}}get value(){return this._def.value}};Kj.create=(e,t)=>new Kj({value:e,typeName:lM.ZodLiteral,...$A(t)});function qj(e,t){return new Jj({values:e,typeName:lM.ZodEnum,...$A(t)})}var Jj=class e extends ej{constructor(){super(...arguments),YA.set(this,void 0)}_parse(e){if(typeof e.data!=`string`){let t=this._getOrReturnCtx(e),n=this._def.values;return J(t,{expected:DA.joinValues(n),received:t.parsedType,code:q.invalid_type}),zA}if(KA(this,YA)||qA(this,YA,new Set(this._def.values)),!KA(this,YA).has(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return J(t,{received:t.data,code:q.invalid_enum_value,options:n}),zA}return VA(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(t,n=this._def){return e.create(t,{...this._def,...n})}exclude(t,n=this._def){return e.create(this.options.filter(e=>!t.includes(e)),{...this._def,...n})}};YA=new WeakMap,Jj.create=qj;var Yj=class extends ej{constructor(){super(...arguments),XA.set(this,void 0)}_parse(e){let t=DA.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==K.string&&n.parsedType!==K.number){let e=DA.objectValues(t);return J(n,{expected:DA.joinValues(e),received:n.parsedType,code:q.invalid_type}),zA}if(KA(this,XA)||qA(this,XA,new Set(DA.getValidEnumValues(this._def.values))),!KA(this,XA).has(e.data)){let e=DA.objectValues(t);return J(n,{received:n.data,code:q.invalid_enum_value,options:e}),zA}return VA(e.data)}get enum(){return this._def.values}};XA=new WeakMap,Yj.create=(e,t)=>new Yj({values:e,typeName:lM.ZodNativeEnum,...$A(t)});var Xj=class extends ej{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==K.promise&&t.common.async===!1?(J(t,{code:q.invalid_type,expected:K.promise,received:t.parsedType}),zA):VA((t.parsedType===K.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}};Xj.create=(e,t)=>new Xj({type:e,typeName:lM.ZodPromise,...$A(t)});var Zj=class extends ej{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===lM.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,i={addIssue:e=>{J(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),r.type===`preprocess`){let e=r.transform(n.data,i);if(n.common.async)return Promise.resolve(e).then(async e=>{if(t.value===`aborted`)return zA;let r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return r.status===`aborted`?zA:r.status===`dirty`||t.value===`dirty`?BA(r.value):r});{if(t.value===`aborted`)return zA;let r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return r.status===`aborted`?zA:r.status===`dirty`||t.value===`dirty`?BA(r.value):r}}if(r.type===`refinement`){let e=e=>{let t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error(`Async refinement encountered during synchronous parse operation. Use .parseAsync instead.`);return e};if(n.common.async===!1){let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return r.status===`aborted`?zA:(r.status===`dirty`&&t.dirty(),e(r.value),{status:t.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>n.status===`aborted`?zA:(n.status===`dirty`&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))))}if(r.type===`transform`){if(n.common.async===!1){let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!WA(e))return e;let a=r.transform(e.value,i);if(a instanceof Promise)throw Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);return{status:t.value,value:a}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>WA(e)?Promise.resolve(r.transform(e.value,i)).then(e=>({status:t.value,value:e})):e)}DA.assertNever(r)}};Zj.create=(e,t,n)=>new Zj({schema:e,typeName:lM.ZodEffects,effect:t,...$A(n)}),Zj.createWithPreprocess=(e,t,n)=>new Zj({schema:t,effect:{type:`preprocess`,transform:e},typeName:lM.ZodEffects,...$A(n)});var Qj=class extends ej{_parse(e){return this._getType(e)===K.undefined?VA(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};Qj.create=(e,t)=>new Qj({innerType:e,typeName:lM.ZodOptional,...$A(t)});var $j=class extends ej{_parse(e){return this._getType(e)===K.null?VA(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};$j.create=(e,t)=>new $j({innerType:e,typeName:lM.ZodNullable,...$A(t)});var eM=class extends ej{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===K.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}};eM.create=(e,t)=>new eM({innerType:e,typeName:lM.ZodDefault,defaultValue:typeof t.default==`function`?t.default:()=>t.default,...$A(t)});var tM=class extends ej{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return GA(r)?r.then(e=>({status:`valid`,value:e.status===`valid`?e.value:this._def.catchValue({get error(){return new jA(n.common.issues)},input:n.data})})):{status:`valid`,value:r.status===`valid`?r.value:this._def.catchValue({get error(){return new jA(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};tM.create=(e,t)=>new tM({innerType:e,typeName:lM.ZodCatch,catchValue:typeof t.catch==`function`?t.catch:()=>t.catch,...$A(t)});var nM=class extends ej{_parse(e){if(this._getType(e)!==K.nan){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.nan,received:t.parsedType}),zA}return{status:`valid`,value:e.data}}};nM.create=e=>new nM({typeName:lM.ZodNaN,...$A(e)});var rM=Symbol(`zod_brand`),iM=class extends ej{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}},aM=class e extends ej{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return e.status===`aborted`?zA:e.status===`dirty`?(t.dirty(),BA(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{let e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return e.status===`aborted`?zA:e.status===`dirty`?(t.dirty(),{status:`dirty`,value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(t,n){return new e({in:t,out:n,typeName:lM.ZodPipeline})}},oM=class extends ej{_parse(e){let t=this._def.innerType._parse(e),n=e=>(WA(e)&&(e.value=Object.freeze(e.value)),e);return GA(t)?t.then(e=>n(e)):n(t)}unwrap(){return this._def.innerType}};oM.create=(e,t)=>new oM({innerType:e,typeName:lM.ZodReadonly,...$A(t)});function sM(e,t={},n){return e?Oj.create().superRefine((r,i)=>{if(!e(r)){let e=typeof t==`function`?t(r):typeof t==`string`?{message:t}:t,a=e.fatal??n??!0,o=typeof e==`string`?{message:e}:e;i.addIssue({code:`custom`,...o,fatal:a})}}):Oj.create()}var cM={object:Pj.lazycreate},lM;(function(e){e.ZodString=`ZodString`,e.ZodNumber=`ZodNumber`,e.ZodNaN=`ZodNaN`,e.ZodBigInt=`ZodBigInt`,e.ZodBoolean=`ZodBoolean`,e.ZodDate=`ZodDate`,e.ZodSymbol=`ZodSymbol`,e.ZodUndefined=`ZodUndefined`,e.ZodNull=`ZodNull`,e.ZodAny=`ZodAny`,e.ZodUnknown=`ZodUnknown`,e.ZodNever=`ZodNever`,e.ZodVoid=`ZodVoid`,e.ZodArray=`ZodArray`,e.ZodObject=`ZodObject`,e.ZodUnion=`ZodUnion`,e.ZodDiscriminatedUnion=`ZodDiscriminatedUnion`,e.ZodIntersection=`ZodIntersection`,e.ZodTuple=`ZodTuple`,e.ZodRecord=`ZodRecord`,e.ZodMap=`ZodMap`,e.ZodSet=`ZodSet`,e.ZodFunction=`ZodFunction`,e.ZodLazy=`ZodLazy`,e.ZodLiteral=`ZodLiteral`,e.ZodEnum=`ZodEnum`,e.ZodEffects=`ZodEffects`,e.ZodNativeEnum=`ZodNativeEnum`,e.ZodOptional=`ZodOptional`,e.ZodNullable=`ZodNullable`,e.ZodDefault=`ZodDefault`,e.ZodCatch=`ZodCatch`,e.ZodPromise=`ZodPromise`,e.ZodBranded=`ZodBranded`,e.ZodPipeline=`ZodPipeline`,e.ZodReadonly=`ZodReadonly`})(lM||={});var uM=(e,t={message:`Input not instance of ${e.name}`})=>sM(t=>t instanceof e,t),Y=yj.create,dM=xj.create,fM=nM.create,pM=Sj.create,mM=Cj.create,hM=wj.create,gM=Tj.create,_M=Ej.create,vM=Dj.create,yM=Oj.create,bM=kj.create,xM=Aj.create,SM=jj.create,CM=Mj.create,X=Pj.create,wM=Pj.strictCreate,TM=Fj.create,EM=Lj.create,DM=zj.create,OM=Bj.create,kM=Vj.create,AM=Hj.create,jM=Uj.create,MM=Wj.create,NM=Gj.create,PM=Kj.create,FM=Jj.create,IM=Yj.create,LM=Xj.create,RM=Zj.create,zM=Qj.create,BM=$j.create,VM=Zj.createWithPreprocess,HM=aM.create,Z=Object.freeze({__proto__:null,defaultErrorMap:MA,setErrorMap:PA,getErrorMap:FA,makeIssue:IA,EMPTY_PATH:LA,addIssueToContext:J,ParseStatus:RA,INVALID:zA,DIRTY:BA,OK:VA,isAborted:HA,isDirty:UA,isValid:WA,isAsync:GA,get util(){return DA},get objectUtil(){return OA},ZodParsedType:K,getParsedType:kA,ZodType:ej,datetimeRegex:_j,ZodString:yj,ZodNumber:xj,ZodBigInt:Sj,ZodBoolean:Cj,ZodDate:wj,ZodSymbol:Tj,ZodUndefined:Ej,ZodNull:Dj,ZodAny:Oj,ZodUnknown:kj,ZodNever:Aj,ZodVoid:jj,ZodArray:Mj,ZodObject:Pj,ZodUnion:Fj,ZodDiscriminatedUnion:Lj,ZodIntersection:zj,ZodTuple:Bj,ZodRecord:Vj,ZodMap:Hj,ZodSet:Uj,ZodFunction:Wj,ZodLazy:Gj,ZodLiteral:Kj,ZodEnum:Jj,ZodNativeEnum:Yj,ZodPromise:Xj,ZodEffects:Zj,ZodTransformer:Zj,ZodOptional:Qj,ZodNullable:$j,ZodDefault:eM,ZodCatch:tM,ZodNaN:nM,BRAND:rM,ZodBranded:iM,ZodPipeline:aM,ZodReadonly:oM,custom:sM,Schema:ej,ZodSchema:ej,late:cM,get ZodFirstPartyTypeKind(){return lM},coerce:{string:(e=>yj.create({...e,coerce:!0})),number:(e=>xj.create({...e,coerce:!0})),boolean:(e=>Cj.create({...e,coerce:!0})),bigint:(e=>Sj.create({...e,coerce:!0})),date:(e=>wj.create({...e,coerce:!0}))},any:yM,array:CM,bigint:pM,boolean:mM,date:hM,discriminatedUnion:EM,effect:RM,enum:FM,function:MM,instanceof:uM,intersection:DM,lazy:NM,literal:PM,map:AM,nan:fM,nativeEnum:IM,never:xM,null:vM,nullable:BM,number:dM,object:X,oboolean:()=>mM().optional(),onumber:()=>dM().optional(),optional:zM,ostring:()=>Y().optional(),pipeline:HM,preprocess:VM,promise:LM,record:kM,set:jM,strictObject:wM,string:Y,symbol:gM,transformer:RM,tuple:OM,undefined:_M,union:TM,unknown:bM,void:SM,NEVER:zA,ZodIssueCode:q,quotelessJson:AA,ZodError:jA}),UM={exports:{}},WM;function GM(){return WM||(WM=1,(function(e){var t=(function(e){var n=1e7,r=9007199254740992,i=f(r),a=`0123456789abcdefghijklmnopqrstuvwxyz`,o=typeof BigInt==`function`;function s(e,t,n,r){return e===void 0?s[0]:t===void 0||+t==10&&!n?P(e):_e(e,t,n,r)}function c(e,t){this.value=e,this.sign=t,this.isSmall=!1}c.prototype=Object.create(s.prototype);function l(e){this.value=e,this.sign=e<0,this.isSmall=!0}l.prototype=Object.create(s.prototype);function u(e){this.value=e}u.prototype=Object.create(s.prototype);function d(e){return-r0?Math.floor(e):Math.ceil(e)}function _(e,t){for(var r=e.length,i=t.length,a=Array(r),o=0,s=n,c,l=0;l=s),a[l]=c-o*s;for(;l0&&a.push(o),a}function v(e,t){return e.length>=t.length?_(e,t):_(t,e)}function y(e,t){for(var r=e.length,i=Array(r),a=n,o,s=0;s0;)i[s++]=t%a,t=Math.floor(t/a);return i}c.prototype.add=function(e){var t=P(e);if(this.sign!==t.sign)return this.subtract(t.negate());var n=this.value,r=t.value;return t.isSmall?new c(y(n,Math.abs(r)),this.sign):new c(v(n,r),this.sign)},c.prototype.plus=c.prototype.add,l.prototype.add=function(e){var t=P(e),n=this.value;if(n<0!==t.sign)return this.subtract(t.negate());var r=t.value;if(t.isSmall){if(d(n+r))return new l(n+r);r=f(Math.abs(r))}return new c(y(r,Math.abs(n)),n<0)},l.prototype.plus=l.prototype.add,u.prototype.add=function(e){return new u(this.value+P(e).value)},u.prototype.plus=u.prototype.add;function b(e,t){for(var r=e.length,i=t.length,a=Array(r),o=0,s=n,c=0,l;c=0?r=b(e,t):(r=b(t,e),n=!n),r=p(r),typeof r==`number`?(n&&(r=-r),new l(r)):new c(r,n)}function S(e,t,r){for(var i=e.length,a=Array(i),o=-t,s=n,u=0,d;u=0)},l.prototype.minus=l.prototype.subtract,u.prototype.subtract=function(e){return new u(this.value-P(e).value)},u.prototype.minus=u.prototype.subtract,c.prototype.negate=function(){return new c(this.value,!this.sign)},l.prototype.negate=function(){var e=this.sign,t=new l(-this.value);return t.sign=!e,t},u.prototype.negate=function(){return new u(-this.value)},c.prototype.abs=function(){return new c(this.value,!1)},l.prototype.abs=function(){return new l(Math.abs(this.value))},u.prototype.abs=function(){return new u(this.value>=0?this.value:-this.value)};function C(e,t){for(var r=e.length,i=t.length,a=h(r+i),o=n,s,c,l=0,u,d;l0;)i[c++]=o%a,o=Math.floor(o/a);return i}function T(e,t){for(var n=[];t-->0;)n.push(0);return n.concat(e)}function E(e,t){var n=Math.max(e.length,t.length);if(n<=30)return C(e,t);n=Math.ceil(n/2);var r=e.slice(n),i=e.slice(0,n),a=t.slice(n),o=t.slice(0,n),s=E(i,o),c=E(r,a),l=v(v(s,T(b(b(E(v(i,r),v(o,a)),s),c),n)),T(c,2*n));return m(l),l}function D(e,t){return-.012*e-.012*t+15e-6*e*t>0}c.prototype.multiply=function(e){var t=P(e),r=this.value,i=t.value,a=this.sign!==t.sign,o;if(t.isSmall){if(i===0)return s[0];if(i===1)return this;if(i===-1)return this.negate();if(o=Math.abs(i),o=0;f--){for(d=a-1,l[f+i]!==s&&(d=Math.floor((l[f+i]*a+l[f+i-1])/s)),m=0,g=0,v=u.length,_=0;_i&&(u=(u+1)*s),c=Math.ceil(u/d);do{if(f=w(t,c),ne(f,o)<=0)break;c--}while(c);a.push(c),o=b(o,f)}return a.reverse(),[p(a),p(o)]}function te(e,t){var r=e.length,i=h(r),a=n,o,s,c=0,l;for(o=r-1;o>=0;--o)l=c*a+e[o],s=g(l/t),c=l-s*t,i[o]=s|0;return[i,c|0]}function j(e,t){var r,i=P(t);if(o)return[new u(e.value/i.value),new u(e.value%i.value)];var a=e.value,d=i.value,m;if(d===0)throw Error(`Cannot divide by zero`);if(e.isSmall)return i.isSmall?[new l(g(a/d)),new l(a%d)]:[s[0],e];if(i.isSmall){if(d===1)return[e,s[0]];if(d==-1)return[e.negate(),s[0]];var h=Math.abs(d);if(ht.length?1:-1;for(var n=e.length-1;n>=0;n--)if(e[n]!==t[n])return e[n]>t[n]?1:-1;return 0}c.prototype.compareAbs=function(e){var t=P(e),n=this.value,r=t.value;return t.isSmall?1:ne(n,r)},l.prototype.compareAbs=function(e){var t=P(e),n=Math.abs(this.value),r=t.value;return t.isSmall?(r=Math.abs(r),n===r?0:n>r?1:-1):-1},u.prototype.compareAbs=function(e){var t=this.value,n=P(e).value;return t=t>=0?t:-t,n=n>=0?n:-n,t===n?0:t>n?1:-1},c.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=P(e),n=this.value,r=t.value;return this.sign===t.sign?t.isSmall?this.sign?-1:1:ne(n,r)*(this.sign?-1:1):t.sign?1:-1},c.prototype.compareTo=c.prototype.compare,l.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=P(e),n=this.value,r=t.value;return t.isSmall?n==r?0:n>r?1:-1:n<0===t.sign?n<0?1:-1:n<0?-1:1},l.prototype.compareTo=l.prototype.compare,u.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=this.value,n=P(e).value;return t===n?0:t>n?1:-1},u.prototype.compareTo=u.prototype.compare,c.prototype.equals=function(e){return this.compare(e)===0},u.prototype.eq=u.prototype.equals=l.prototype.eq=l.prototype.equals=c.prototype.eq=c.prototype.equals,c.prototype.notEquals=function(e){return this.compare(e)!==0},u.prototype.neq=u.prototype.notEquals=l.prototype.neq=l.prototype.notEquals=c.prototype.neq=c.prototype.notEquals,c.prototype.greater=function(e){return this.compare(e)>0},u.prototype.gt=u.prototype.greater=l.prototype.gt=l.prototype.greater=c.prototype.gt=c.prototype.greater,c.prototype.lesser=function(e){return this.compare(e)<0},u.prototype.lt=u.prototype.lesser=l.prototype.lt=l.prototype.lesser=c.prototype.lt=c.prototype.lesser,c.prototype.greaterOrEquals=function(e){return this.compare(e)>=0},u.prototype.geq=u.prototype.greaterOrEquals=l.prototype.geq=l.prototype.greaterOrEquals=c.prototype.geq=c.prototype.greaterOrEquals,c.prototype.lesserOrEquals=function(e){return this.compare(e)<=0},u.prototype.leq=u.prototype.lesserOrEquals=l.prototype.leq=l.prototype.lesserOrEquals=c.prototype.leq=c.prototype.lesserOrEquals,c.prototype.isEven=function(){return!(this.value[0]&1)},l.prototype.isEven=function(){return!(this.value&1)},u.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},c.prototype.isOdd=function(){return(this.value[0]&1)==1},l.prototype.isOdd=function(){return(this.value&1)==1},u.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},c.prototype.isPositive=function(){return!this.sign},l.prototype.isPositive=function(){return this.value>0},u.prototype.isPositive=l.prototype.isPositive,c.prototype.isNegative=function(){return this.sign},l.prototype.isNegative=function(){return this.value<0},u.prototype.isNegative=l.prototype.isNegative,c.prototype.isUnit=function(){return!1},l.prototype.isUnit=function(){return Math.abs(this.value)===1},u.prototype.isUnit=function(){return this.abs().value===BigInt(1)},c.prototype.isZero=function(){return!1},l.prototype.isZero=function(){return this.value===0},u.prototype.isZero=function(){return this.value===BigInt(0)},c.prototype.isDivisibleBy=function(e){var t=P(e);return t.isZero()?!1:t.isUnit()?!0:t.compareAbs(2)===0?this.isEven():this.mod(t).isZero()},u.prototype.isDivisibleBy=l.prototype.isDivisibleBy=c.prototype.isDivisibleBy;function re(e){var t=e.abs();if(t.isUnit())return!1;if(t.equals(2)||t.equals(3)||t.equals(5))return!0;if(t.isEven()||t.isDivisibleBy(3)||t.isDivisibleBy(5))return!1;if(t.lesser(49))return!0}function ie(e,n){for(var r=e.prev(),i=r,a=0,o,s,c;i.isEven();)i=i.divide(2),a++;next:for(s=0;s-r?new l(e-1):new c(i,!0)},u.prototype.prev=function(){return new u(this.value-BigInt(1))};for(var M=[1];2*M[M.length-1]<=n;)M.push(2*M[M.length-1]);var N=M.length,ae=M[N-1];function oe(e){return Math.abs(e)<=n}c.prototype.shiftLeft=function(e){var t=P(e).toJSNumber();if(!oe(t))throw Error(String(t)+` is too large for shifting.`);if(t<0)return this.shiftRight(-t);var n=this;if(n.isZero())return n;for(;t>=N;)n=n.multiply(ae),t-=N-1;return n.multiply(M[t])},u.prototype.shiftLeft=l.prototype.shiftLeft=c.prototype.shiftLeft,c.prototype.shiftRight=function(e){var t,n=P(e).toJSNumber();if(!oe(n))throw Error(String(n)+` is too large for shifting.`);if(n<0)return this.shiftLeft(-n);for(var r=this;n>=N;){if(r.isZero()||r.isNegative()&&r.isUnit())return r;t=j(r,ae),r=t[1].isNegative()?t[0].prev():t[0],n-=N-1}return t=j(r,M[n]),t[1].isNegative()?t[0].prev():t[0]},u.prototype.shiftRight=l.prototype.shiftRight=c.prototype.shiftRight;function se(e,n,r){n=P(n);for(var i=e.isNegative(),a=n.isNegative(),o=i?e.not():e,s=a?n.not():n,c=0,l=0,u=null,d=null,f=[];!o.isZero()||!s.isZero();)u=j(o,ae),c=u[1].toJSNumber(),i&&(c=ae-1-c),d=j(s,ae),l=d[1].toJSNumber(),a&&(l=ae-1-l),o=u[0],s=d[0],f.push(r(c,l));for(var p=r(+!!i,+!!a)===0?t(0):t(-1),m=f.length-1;m>=0;--m)p=p.multiply(ae).add(t(f[m]));return p}c.prototype.not=function(){return this.negate().prev()},u.prototype.not=l.prototype.not=c.prototype.not,c.prototype.and=function(e){return se(this,e,function(e,t){return e&t})},u.prototype.and=l.prototype.and=c.prototype.and,c.prototype.or=function(e){return se(this,e,function(e,t){return e|t})},u.prototype.or=l.prototype.or=c.prototype.or,c.prototype.xor=function(e){return se(this,e,function(e,t){return e^t})},u.prototype.xor=l.prototype.xor=c.prototype.xor;var ce=1<<30,le=(n&-n)*(n&-n)|ce;function ue(e){var t=e.value,r=typeof t==`number`?t|ce:typeof t==`bigint`?t|BigInt(ce):t[0]+t[1]*n|le;return r&-r}function de(e,n){if(n.compareTo(e)<=0){var r=de(e,n.square(n)),i=r.p,a=r.e,o=i.multiply(n);return o.compareTo(e)<=0?{p:o,e:a*2+1}:{p:i,e:a*2}}return{p:t(1),e:0}}c.prototype.bitLength=function(){var e=this;return e.compareTo(t(0))<0&&(e=e.negate().subtract(t(1))),e.compareTo(t(0))===0?t(0):t(de(e,t(2)).e).add(t(1))},u.prototype.bitLength=l.prototype.bitLength=c.prototype.bitLength;function fe(e,t){return e=P(e),t=P(t),e.greater(t)?e:t}function pe(e,t){return e=P(e),t=P(t),e.lesser(t)?e:t}function me(e,t){if(e=P(e).abs(),t=P(t).abs(),e.equals(t))return e;if(e.isZero())return t;if(t.isZero())return e;for(var n=s[1],r,i;e.isEven()&&t.isEven();)r=pe(ue(e),ue(t)),e=e.divide(r),t=t.divide(r),n=n.multiply(r);for(;e.isEven();)e=e.divide(ue(e));do{for(;t.isEven();)t=t.divide(ue(t));e.greater(t)&&(i=t,t=e,e=i),t=t.subtract(e)}while(!t.isZero());return n.isUnit()?e:e.multiply(n)}function he(e,t){return e=P(e).abs(),t=P(t).abs(),e.divide(me(e,t)).multiply(t)}function ge(e,t,r){e=P(e),t=P(t);var i=r||Math.random,a=pe(e,t),o=fe(e,t).subtract(a).add(1);if(o.isSmall)return a.add(Math.floor(i()*o));for(var c=be(o,n).value,l=[],u=!0,d=0;d=s){if(l===`1`&&s===1)continue;throw Error(l+` is not a valid digit in base `+t+`.`)}}t=P(t);var u=[],d=e[0]===`-`;for(o=+!!d;o`&&o=0;a--)r=r.add(e[a].times(i)),i=i.times(t);return n?r.negate():r}function ye(e,t){return t||=a,e`}function be(e,n){if(n=t(n),n.isZero()){if(e.isZero())return{value:[0],isNegative:!1};throw Error(`Cannot convert nonzero numbers to base 0.`)}if(n.equals(-1)){if(e.isZero())return{value:[0],isNegative:!1};if(e.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-e.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var r=Array.apply(null,Array(e.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return r.unshift([1]),{value:[].concat.apply([],r),isNegative:!1}}var i=!1;if(e.isNegative()&&n.isPositive()&&(i=!0,e=e.abs()),n.isUnit())return e.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(e.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:i};for(var a=[],o=e,s;o.isNegative()||o.compareAbs(n)>=0;){s=o.divmod(n),o=s.quotient;var c=s.remainder;c.isNegative()&&(c=n.minus(c).abs(),o=o.next()),a.push(c.toJSNumber())}return a.push(o.toJSNumber()),{value:a.reverse(),isNegative:i}}function xe(e,t,n){var r=be(e,t);return(r.isNegative?`-`:``)+r.value.map(function(e){return ye(e,n)}).join(``)}c.prototype.toArray=function(e){return be(this,e)},l.prototype.toArray=function(e){return be(this,e)},u.prototype.toArray=function(e){return be(this,e)},c.prototype.toString=function(t,n){if(t===e&&(t=10),t!==10||n)return xe(this,t,n);for(var r=this.value,i=r.length,a=String(r[--i]),o=`0000000`,s;--i>=0;)s=String(r[i]),a+=o.slice(s.length)+s;return(this.sign?`-`:``)+a},l.prototype.toString=function(t,n){return t===e&&(t=10),t!=10||n?xe(this,t,n):String(this.value)},u.prototype.toString=l.prototype.toString,u.prototype.toJSON=c.prototype.toJSON=l.prototype.toJSON=function(){return this.toString()},c.prototype.valueOf=function(){return parseInt(this.toString(),10)},c.prototype.toJSNumber=c.prototype.valueOf,l.prototype.valueOf=function(){return this.value},l.prototype.toJSNumber=l.prototype.valueOf,u.prototype.valueOf=u.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};function Se(e){if(d(+e)){var t=+e;if(t===g(t))return o?new u(BigInt(t)):new l(t);throw Error(`Invalid integer: `+e)}var n=e[0]===`-`;n&&(e=e.slice(1));var r=e.split(/e/i);if(r.length>2)throw Error(`Invalid integer: `+r.join(`e`));if(r.length===2){var i=r[1];if(i[0]===`+`&&(i=i.slice(1)),i=+i,i!==g(i)||!d(i))throw Error(`Invalid integer: `+i+` is not a valid exponent.`);var a=r[0],s=a.indexOf(`.`);if(s>=0&&(i-=a.length-s-1,a=a.slice(0,s)+a.slice(s+1)),i<0)throw Error(`Cannot include negative exponent part for integers`);a+=Array(i+1).join(`0`),e=a}if(!/^([0-9][0-9]*)$/.test(e))throw Error(`Invalid integer: `+e);if(o)return new u(BigInt(n?`-`+e:e));for(var f=[],p=e.length,h=7,_=p-h;p>0;)f.push(+e.slice(_,p)),_-=h,_<0&&(_=0),p-=h;return m(f),new c(f,n)}function Ce(e){if(o)return new u(BigInt(e));if(d(e)){if(e!==g(e))throw Error(e+` is not an integer.`);return new l(e)}return Se(e.toString())}function P(e){return typeof e==`number`?Ce(e):typeof e==`string`?Se(e):typeof e==`bigint`?new u(e):e}for(var we=0;we<1e3;we++)s[we]=P(we),we>0&&(s[-we]=P(-we));return s.one=s[1],s.zero=s[0],s.minusOne=s[-1],s.max=fe,s.min=pe,s.gcd=me,s.lcm=he,s.isInstance=function(e){return e instanceof c||e instanceof l||e instanceof u},s.randBetween=ge,s.fromArray=function(e,t,n){return ve(e.map(P),P(t||10),n)},s})();e.hasOwnProperty(`exports`)&&(e.exports=t)})(UM)),UM.exports}var KM=SA(GM()),qM=64,JM=16,YM=qM/JM;function XM(){try{return!0}catch{return!1}}function ZM(e,t,n){let r=0;for(let i=0;ie&t[n]))}or({parts:t}){return new e(this.parts.map((e,n)=>e|t[n]))}xor({parts:t}){return new e(this.parts.map((e,n)=>e^t[n]))}not(){return new e(this.parts.map(e=>~e))}equals({parts:e}){return this.parts.every((t,n)=>t===e[n])}toString(){if(this.str!=null)return this.str;let e=Array(qM/4);return this.parts.forEach((t,n)=>{let r=QM(t.toString());for(let t=0;t<4;t++)e[t+n*4]=r[3-t]||0}),this.str=KM.fromArray(e,16).toString()}toJSON(){return this.toString()}},tN=XM();tN&&BigInt.prototype.toJSON==null&&(BigInt.prototype.toJSON=function(){return this.toString()});var nN={},rN=tN?function(e){return BigInt(e)}:function(e){return e instanceof eN?e:(typeof e==`number`&&(e=e.toString()),nN[e]??(nN[e]=eN.fromString(e)),nN[e])},iN=rN(0),aN=tN?function(e=iN,t=iN){return e&t}:function(e=iN,t=iN){return e.and(t)},oN=tN?function(e=iN,t=iN){return e|t}:function(e=iN,t=iN){return e.or(t)},sN=tN?function(e=iN,t=iN){return e^t}:function(e=iN,t=iN){return e.xor(t)},cN=tN?function(e=iN){return~e}:function(e=iN){return e.not()},lN=tN?function(e,t){return e===t}:function(e,t){return e==null||t==null?e==t:e.equals(t)};function uN(...e){let t=e[0];for(let n=1;n{let[n]=Object.entries(e).find(([,e])=>e===t)??[];return t!=null&&n===void 0?e.UNHANDLED:t},Y().or(dM()))}function xN(e){let t=sM().transform(t=>{let n=e.safeParse(t);return n.success?n.data:e._def.defaultValue()});return t.overlayType=e,t}var SN=Z.object({image_url:Z.string()}).describe(`Response for "INITIATE_IMAGE_UPLOAD" Command`),CN=Z.object({mediaUrl:Z.string().max(1024)}).describe(`Request for "OPEN_SHARE_MOMENT_DIALOG" Command`),wN=Z.object({access_token:Z.union([Z.string(),Z.null()]).optional()}).describe(`Request for "AUTHENTICATE" Command`),TN=Z.object({access_token:Z.string(),user:Z.object({username:Z.string(),discriminator:Z.string(),id:Z.string(),avatar:Z.union([Z.string(),Z.null()]).optional(),public_flags:Z.number(),global_name:Z.union([Z.string(),Z.null()]).optional()}),scopes:Z.array(xN(Z.enum(`identify,identify.premium,email,connections,guilds,guilds.join,guilds.members.read,guilds.channels.read,gdm.join,bot,rpc,rpc.notifications.read,rpc.voice.read,rpc.voice.write,rpc.video.read,rpc.video.write,rpc.screenshare.read,rpc.screenshare.write,rpc.activities.write,webhook.incoming,messages.read,applications.builds.upload,applications.builds.read,applications.commands,applications.commands.permissions.update,applications.commands.update,applications.store.update,applications.entitlements,activities.read,activities.write,activities.invites.write,relationships.read,relationships.write,voice,dm_channels.read,role_connections.write,presences.read,presences.write,openid,dm_channels.messages.read,dm_channels.messages.write,gateway.connect,account.global_name.update,payment_sources.country_code,sdk.social_layer_presence,sdk.social_layer,lobbies.write,application_identities.write`.split(`,`)).or(Z.literal(-1)).default(-1))),expires:Z.string(),application:Z.object({description:Z.string(),icon:Z.union([Z.string(),Z.null()]).optional(),id:Z.string(),rpc_origins:Z.array(Z.string()).optional(),name:Z.string()})}).describe(`Response for "AUTHENTICATE" Command`),EN=Z.object({participants:Z.array(Z.object({id:Z.string(),username:Z.string(),global_name:Z.union([Z.string(),Z.null()]).optional(),discriminator:Z.string(),avatar:Z.union([Z.string(),Z.null()]).optional(),flags:Z.number(),bot:Z.boolean(),avatar_decoration_data:Z.union([Z.object({asset:Z.union([Z.string(),Z.null()]).optional(),skuId:Z.string().optional(),expiresAt:Z.number().optional()}),Z.null()]).optional(),premium_type:Z.union([Z.number(),Z.null()]).optional(),nickname:Z.string().optional()}))}).describe(`Response for "GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS" Command`),DN=Z.object({command:Z.string(),options:Z.array(Z.object({name:Z.string(),value:Z.string()})).optional(),content:Z.string().max(2e3).optional(),require_launch_channel:Z.boolean().optional(),preview_image:Z.object({height:Z.number(),url:Z.string(),width:Z.number()}).optional(),components:Z.array(Z.object({type:Z.literal(1),components:Z.array(Z.object({type:Z.literal(2),style:Z.number().gte(1).lte(5),label:Z.string().max(80).optional(),custom_id:Z.string().max(100).describe(`Developer-defined identifier for the button; max 100 characters`).optional()})).max(5).optional()})).optional(),pid:Z.number().optional()}).describe(`Request for "SHARE_INTERACTION" Command`),ON=Z.object({success:Z.boolean()}).describe(`Response for "SHARE_INTERACTION" Command`),kN=Z.object({custom_id:Z.string().max(64).optional(),message:Z.string().max(1e3),link_id:Z.string().max(64).optional()}).describe(`Request for "SHARE_LINK" Command`),AN=Z.object({success:Z.boolean(),didCopyLink:Z.boolean(),didSendMessage:Z.boolean()}).describe(`Response for "SHARE_LINK" Command`),jN=Z.object({relationships:Z.array(Z.object({type:Z.number(),user:Z.object({id:Z.string(),username:Z.string(),global_name:Z.union([Z.string(),Z.null()]).optional(),discriminator:Z.string(),avatar:Z.union([Z.string(),Z.null()]).optional(),flags:Z.number(),bot:Z.boolean(),avatar_decoration_data:Z.union([Z.object({asset:Z.union([Z.string(),Z.null()]).optional(),skuId:Z.string().optional(),expiresAt:Z.number().optional()}),Z.null()]).optional(),premium_type:Z.union([Z.number(),Z.null()]).optional()}),presence:Z.object({status:Z.string(),activity:Z.union([Z.object({session_id:Z.string().optional(),type:Z.number().optional(),name:Z.string(),url:Z.union([Z.string(),Z.null()]).optional(),application_id:Z.string().optional(),status_display_type:Z.number().optional(),state:Z.string().optional(),state_url:Z.string().optional(),details:Z.string().optional(),details_url:Z.string().optional(),emoji:Z.union([Z.object({name:Z.string(),id:Z.union([Z.string(),Z.null()]).optional(),animated:Z.union([Z.boolean(),Z.null()]).optional()}),Z.null()]).optional(),assets:Z.object({large_image:Z.string().optional(),large_text:Z.string().optional(),large_url:Z.string().optional(),small_image:Z.string().optional(),small_text:Z.string().optional(),small_url:Z.string().optional()}).optional(),timestamps:Z.object({start:Z.number().optional(),end:Z.number().optional()}).optional(),party:Z.object({id:Z.string().optional(),size:Z.array(Z.number()).min(2).max(2).optional(),privacy:Z.number().optional()}).optional(),secrets:Z.object({match:Z.string().optional(),join:Z.string().optional()}).optional(),sync_id:Z.string().optional(),created_at:Z.number().optional(),instance:Z.boolean().optional(),flags:Z.number().optional(),metadata:Z.object({}).optional(),platform:Z.string().optional(),supported_platforms:Z.array(Z.string()).optional(),buttons:Z.array(Z.string()).optional(),hangStatus:Z.string().optional()}),Z.null()]).optional()}).optional()}))}).describe(`Response for "GET_RELATIONSHIPS" Command`),MN=Z.object({user_id:Z.string(),content:Z.string().min(0).max(1024).optional()}).describe(`Request for "INVITE_USER_EMBEDDED" Command`),NN=Z.object({id:Z.string().max(64)}).describe(`Request for "GET_USER" Command`),PN=Z.union([Z.object({id:Z.string(),username:Z.string(),global_name:Z.union([Z.string(),Z.null()]).optional(),discriminator:Z.string(),avatar:Z.union([Z.string(),Z.null()]).optional(),flags:Z.number(),bot:Z.boolean(),avatar_decoration_data:Z.union([Z.object({asset:Z.union([Z.string(),Z.null()]).optional(),skuId:Z.string().optional(),expiresAt:Z.number().optional()}),Z.null()]).optional(),premium_type:Z.union([Z.number(),Z.null()]).optional()}),Z.null()]),FN=Z.object({quest_id:Z.string()}).describe(`Request for "GET_QUEST_ENROLLMENT_STATUS" Command`),IN=Z.object({quest_id:Z.string(),is_enrolled:Z.boolean(),enrolled_at:Z.union([Z.string(),Z.null()]).optional()}).describe(`Response for "GET_QUEST_ENROLLMENT_STATUS" Command`),LN=Z.object({quest_id:Z.string()}).describe(`Request for "QUEST_START_TIMER" Command`),RN=Z.object({success:Z.boolean()}).describe(`Response for "QUEST_START_TIMER" Command`),zN=Z.object({quest_id:Z.string(),enrolled_at:Z.union([Z.string(),Z.null()]).optional(),completed_at:Z.union([Z.string(),Z.null()]).optional(),external_cta_url:Z.string()}).describe(`Response for "GET_QUEST" Command`),BN=Z.object({ticket:Z.string()}).describe(`Response for "REQUEST_PROXY_TICKET_REFRESH" Command`),VN;(function(e){e.INITIATE_IMAGE_UPLOAD=`INITIATE_IMAGE_UPLOAD`,e.OPEN_SHARE_MOMENT_DIALOG=`OPEN_SHARE_MOMENT_DIALOG`,e.AUTHENTICATE=`AUTHENTICATE`,e.GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS=`GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS`,e.SHARE_INTERACTION=`SHARE_INTERACTION`,e.SHARE_LINK=`SHARE_LINK`,e.GET_RELATIONSHIPS=`GET_RELATIONSHIPS`,e.INVITE_USER_EMBEDDED=`INVITE_USER_EMBEDDED`,e.GET_USER=`GET_USER`,e.GET_QUEST_ENROLLMENT_STATUS=`GET_QUEST_ENROLLMENT_STATUS`,e.QUEST_START_TIMER=`QUEST_START_TIMER`,e.GET_QUEST=`GET_QUEST`,e.REQUEST_PROXY_TICKET_REFRESH=`REQUEST_PROXY_TICKET_REFRESH`})(VN||={});var HN=Z.object({}).optional().nullable(),UN=Z.void(),WN={[VN.INITIATE_IMAGE_UPLOAD]:{request:UN,response:SN},[VN.OPEN_SHARE_MOMENT_DIALOG]:{request:CN,response:HN},[VN.AUTHENTICATE]:{request:wN,response:TN},[VN.GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS]:{request:UN,response:EN},[VN.SHARE_INTERACTION]:{request:DN,response:ON},[VN.SHARE_LINK]:{request:kN,response:AN},[VN.GET_RELATIONSHIPS]:{request:UN,response:jN},[VN.INVITE_USER_EMBEDDED]:{request:MN,response:HN},[VN.GET_USER]:{request:NN,response:PN},[VN.GET_QUEST_ENROLLMENT_STATUS]:{request:FN,response:IN},[VN.QUEST_START_TIMER]:{request:LN,response:RN},[VN.GET_QUEST]:{request:UN,response:zN},[VN.REQUEST_PROXY_TICKET_REFRESH]:{request:UN,response:BN}},GN=t({Activity:()=>oP,Attachment:()=>hP,CertifiedDevice:()=>FP,CertifiedDeviceTypeObject:()=>PP,Channel:()=>uP,ChannelMention:()=>mP,ChannelTypesObject:()=>lP,Commands:()=>qN,DISPATCH:()=>KN,Embed:()=>SP,EmbedAuthor:()=>bP,EmbedField:()=>xP,EmbedFooter:()=>gP,EmbedProvider:()=>yP,Emoji:()=>tP,Entitlement:()=>zP,EntitlementTypesObject:()=>RP,Guild:()=>pP,GuildMember:()=>$N,GuildMemberRPC:()=>eP,Image:()=>_P,KeyTypesObject:()=>kP,LayoutMode:()=>qP,LayoutModeTypeObject:()=>KP,Message:()=>DP,MessageActivity:()=>wP,MessageApplication:()=>TP,MessageReference:()=>EP,Orientation:()=>GP,OrientationLockState:()=>VP,OrientationLockStateTypeObject:()=>BP,OrientationTypeObject:()=>WP,PermissionOverwrite:()=>cP,PermissionOverwriteTypeObject:()=>sP,PresenceUpdate:()=>dP,Reaction:()=>CP,ReceiveFramePayload:()=>JN,Relationship:()=>ZN,Role:()=>fP,Scopes:()=>XN,ScopesObject:()=>YN,ShortcutKey:()=>AP,Sku:()=>LP,SkuTypeObject:()=>IP,Status:()=>aP,StatusObject:()=>iP,ThermalState:()=>UP,ThermalStateTypeObject:()=>HP,User:()=>QN,UserVoiceState:()=>rP,Video:()=>vP,VoiceDevice:()=>OP,VoiceSettingModeTypeObject:()=>jP,VoiceSettingsIO:()=>NP,VoiceSettingsMode:()=>MP,VoiceState:()=>nP}),KN=`DISPATCH`,qN;(function(e){e.AUTHORIZE=`AUTHORIZE`,e.GET_GUILDS=`GET_GUILDS`,e.GET_GUILD=`GET_GUILD`,e.GET_CHANNEL=`GET_CHANNEL`,e.GET_CHANNELS=`GET_CHANNELS`,e.SELECT_VOICE_CHANNEL=`SELECT_VOICE_CHANNEL`,e.SELECT_TEXT_CHANNEL=`SELECT_TEXT_CHANNEL`,e.SUBSCRIBE=`SUBSCRIBE`,e.UNSUBSCRIBE=`UNSUBSCRIBE`,e.CAPTURE_SHORTCUT=`CAPTURE_SHORTCUT`,e.SET_CERTIFIED_DEVICES=`SET_CERTIFIED_DEVICES`,e.SET_ACTIVITY=`SET_ACTIVITY`,e.GET_SKUS=`GET_SKUS`,e.GET_ENTITLEMENTS=`GET_ENTITLEMENTS`,e.GET_SKUS_EMBEDDED=`GET_SKUS_EMBEDDED`,e.GET_ENTITLEMENTS_EMBEDDED=`GET_ENTITLEMENTS_EMBEDDED`,e.START_PURCHASE=`START_PURCHASE`,e.SET_CONFIG=`SET_CONFIG`,e.SEND_ANALYTICS_EVENT=`SEND_ANALYTICS_EVENT`,e.USER_SETTINGS_GET_LOCALE=`USER_SETTINGS_GET_LOCALE`,e.OPEN_EXTERNAL_LINK=`OPEN_EXTERNAL_LINK`,e.ENCOURAGE_HW_ACCELERATION=`ENCOURAGE_HW_ACCELERATION`,e.CAPTURE_LOG=`CAPTURE_LOG`,e.SET_ORIENTATION_LOCK_STATE=`SET_ORIENTATION_LOCK_STATE`,e.OPEN_INVITE_DIALOG=`OPEN_INVITE_DIALOG`,e.GET_PLATFORM_BEHAVIORS=`GET_PLATFORM_BEHAVIORS`,e.GET_CHANNEL_PERMISSIONS=`GET_CHANNEL_PERMISSIONS`,e.AUTHENTICATE=`AUTHENTICATE`,e.GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS=`GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS`,e.GET_QUEST=`GET_QUEST`,e.GET_QUEST_ENROLLMENT_STATUS=`GET_QUEST_ENROLLMENT_STATUS`,e.GET_RELATIONSHIPS=`GET_RELATIONSHIPS`,e.GET_USER=`GET_USER`,e.INITIATE_IMAGE_UPLOAD=`INITIATE_IMAGE_UPLOAD`,e.INVITE_USER_EMBEDDED=`INVITE_USER_EMBEDDED`,e.OPEN_SHARE_MOMENT_DIALOG=`OPEN_SHARE_MOMENT_DIALOG`,e.QUEST_START_TIMER=`QUEST_START_TIMER`,e.REQUEST_PROXY_TICKET_REFRESH=`REQUEST_PROXY_TICKET_REFRESH`,e.SHARE_INTERACTION=`SHARE_INTERACTION`,e.SHARE_LINK=`SHARE_LINK`})(qN||={});var JN=X({cmd:Y(),data:bM(),evt:vM(),nonce:Y()}).passthrough(),YN=Object.assign(Object.assign({},TN.shape.scopes.element.overlayType._def.innerType.options[0].Values),{UNHANDLED:-1}),XN=bN(YN),ZN=jN.shape.relationships.element,QN=X({id:Y(),username:Y(),discriminator:Y(),global_name:Y().optional().nullable(),avatar:Y().optional().nullable(),avatar_decoration_data:X({asset:Y(),sku_id:Y().optional()}).nullable(),bot:mM(),flags:dM().optional().nullable(),premium_type:dM().optional().nullable()}),$N=X({user:QN,nick:Y().optional().nullable(),roles:CM(Y()),joined_at:Y(),deaf:mM(),mute:mM()}),eP=X({user_id:Y(),nick:Y().optional().nullable(),guild_id:Y(),avatar:Y().optional().nullable(),avatar_decoration_data:X({asset:Y(),sku_id:Y().optional().nullable()}).optional().nullable(),color_string:Y().optional().nullable()}),tP=X({id:Y(),name:Y().optional().nullable(),roles:CM(Y()).optional().nullable(),user:QN.optional().nullable(),require_colons:mM().optional().nullable(),managed:mM().optional().nullable(),animated:mM().optional().nullable(),available:mM().optional().nullable()}),nP=X({mute:mM(),deaf:mM(),self_mute:mM(),self_deaf:mM(),suppress:mM()}),rP=X({mute:mM(),nick:Y(),user:QN,voice_state:nP,volume:dM()}),iP={UNHANDLED:-1,IDLE:`idle`,DND:`dnd`,ONLINE:`online`,OFFLINE:`offline`},aP=bN(iP),oP=X({name:Y(),type:dM(),url:Y().optional().nullable(),created_at:dM().optional().nullable(),timestamps:X({start:dM(),end:dM()}).partial().optional().nullable(),application_id:Y().optional().nullable(),details:Y().optional().nullable(),details_url:Y().url().optional().nullable(),state:Y().optional().nullable(),state_url:Y().url().optional().nullable(),emoji:tP.optional().nullable(),party:X({id:Y().optional().nullable(),size:CM(dM()).optional().nullable()}).optional().nullable(),assets:X({large_image:Y().nullable(),large_text:Y().nullable(),large_url:Y().url().optional().nullable(),small_image:Y().nullable(),small_text:Y().nullable(),small_url:Y().url().optional().nullable()}).partial().optional().nullable(),secrets:X({join:Y(),match:Y()}).partial().optional().nullable(),instance:mM().optional().nullable(),flags:dM().optional().nullable()}),sP={UNHANDLED:-1,ROLE:0,MEMBER:1},cP=X({id:Y(),type:bN(sP),allow:Y(),deny:Y()}),lP={UNHANDLED:-1,DM:1,GROUP_DM:3,GUILD_TEXT:0,GUILD_VOICE:2,GUILD_CATEGORY:4,GUILD_ANNOUNCEMENT:5,GUILD_STORE:6,ANNOUNCEMENT_THREAD:10,PUBLIC_THREAD:11,PRIVATE_THREAD:12,GUILD_STAGE_VOICE:13,GUILD_DIRECTORY:14,GUILD_FORUM:15},uP=X({id:Y(),type:bN(lP),guild_id:Y().optional().nullable(),position:dM().optional().nullable(),permission_overwrites:CM(cP).optional().nullable(),name:Y().optional().nullable(),topic:Y().optional().nullable(),nsfw:mM().optional().nullable(),last_message_id:Y().optional().nullable(),bitrate:dM().optional().nullable(),user_limit:dM().optional().nullable(),rate_limit_per_user:dM().optional().nullable(),recipients:CM(QN).optional().nullable(),icon:Y().optional().nullable(),owner_id:Y().optional().nullable(),application_id:Y().optional().nullable(),parent_id:Y().optional().nullable(),last_pin_timestamp:Y().optional().nullable()}),dP=X({user:QN,guild_id:Y(),status:aP,activities:CM(oP),client_status:X({desktop:aP,mobile:aP,web:aP}).partial()}),fP=X({id:Y(),name:Y(),color:dM(),hoist:mM(),position:dM(),permissions:Y(),managed:mM(),mentionable:mM()}),pP=X({id:Y(),name:Y(),owner_id:Y(),icon:Y().nullable(),icon_hash:Y().optional().nullable(),splash:Y().nullable(),discovery_splash:Y().nullable(),owner:mM().optional().nullable(),permissions:Y().optional().nullable(),region:Y(),afk_channel_id:Y().nullable(),afk_timeout:dM(),widget_enabled:mM().optional().nullable(),widget_channel_id:Y().optional().nullable(),verification_level:dM(),default_message_notifications:dM(),explicit_content_filter:dM(),roles:CM(fP),emojis:CM(tP),features:CM(Y()),mfa_level:dM(),application_id:Y().nullable(),system_channel_id:Y().nullable(),system_channel_flags:dM(),rules_channel_id:Y().nullable(),joined_at:Y().optional().nullable(),large:mM().optional().nullable(),unavailable:mM().optional().nullable(),member_count:dM().optional().nullable(),voice_states:CM(nP).optional().nullable(),members:CM($N).optional().nullable(),channels:CM(uP).optional().nullable(),presences:CM(dP).optional().nullable(),max_presences:dM().optional().nullable(),max_members:dM().optional().nullable(),vanity_url_code:Y().nullable(),description:Y().nullable(),banner:Y().nullable(),premium_tier:dM(),premium_subscription_count:dM().optional().nullable(),preferred_locale:Y(),public_updates_channel_id:Y().nullable(),max_video_channel_users:dM().optional().nullable(),approximate_member_count:dM().optional().nullable(),approximate_presence_count:dM().optional().nullable()}),mP=X({id:Y(),guild_id:Y(),type:dM(),name:Y()}),hP=X({id:Y(),filename:Y(),size:dM(),url:Y(),proxy_url:Y(),height:dM().optional().nullable(),width:dM().optional().nullable()}),gP=X({text:Y(),icon_url:Y().optional().nullable(),proxy_icon_url:Y().optional().nullable()}),_P=X({url:Y().optional().nullable(),proxy_url:Y().optional().nullable(),height:dM().optional().nullable(),width:dM().optional().nullable()}),vP=_P.omit({proxy_url:!0}),yP=X({name:Y().optional().nullable(),url:Y().optional().nullable()}),bP=X({name:Y().optional().nullable(),url:Y().optional().nullable(),icon_url:Y().optional().nullable(),proxy_icon_url:Y().optional().nullable()}),xP=X({name:Y(),value:Y(),inline:mM()}),SP=X({title:Y().optional().nullable(),type:Y().optional().nullable(),description:Y().optional().nullable(),url:Y().optional().nullable(),timestamp:Y().optional().nullable(),color:dM().optional().nullable(),footer:gP.optional().nullable(),image:_P.optional().nullable(),thumbnail:_P.optional().nullable(),video:vP.optional().nullable(),provider:yP.optional().nullable(),author:bP.optional().nullable(),fields:CM(xP).optional().nullable()}),CP=X({count:dM(),me:mM(),emoji:tP}),wP=X({type:dM(),party_id:Y().optional().nullable()}),TP=X({id:Y(),cover_image:Y().optional().nullable(),description:Y(),icon:Y().optional().nullable(),name:Y()}),EP=X({message_id:Y().optional().nullable(),channel_id:Y().optional().nullable(),guild_id:Y().optional().nullable()}),DP=X({id:Y(),channel_id:Y(),guild_id:Y().optional().nullable(),author:QN.optional().nullable(),member:$N.optional().nullable(),content:Y(),timestamp:Y(),edited_timestamp:Y().optional().nullable(),tts:mM(),mention_everyone:mM(),mentions:CM(QN),mention_roles:CM(Y()),mention_channels:CM(mP),attachments:CM(hP),embeds:CM(SP),reactions:CM(CP).optional().nullable(),nonce:TM([Y(),dM()]).optional().nullable(),pinned:mM(),webhook_id:Y().optional().nullable(),type:dM(),activity:wP.optional().nullable(),application:TP.optional().nullable(),message_reference:EP.optional().nullable(),flags:dM().optional().nullable(),stickers:CM(bM()).optional().nullable(),referenced_message:bM().optional().nullable()}),OP=X({id:Y(),name:Y()}),kP={UNHANDLED:-1,KEYBOARD_KEY:0,MOUSE_BUTTON:1,KEYBOARD_MODIFIER_KEY:2,GAMEPAD_BUTTON:3},AP=X({type:bN(kP),code:dM(),name:Y()}),jP={UNHANDLED:-1,PUSH_TO_TALK:`PUSH_TO_TALK`,VOICE_ACTIVITY:`VOICE_ACTIVITY`},MP=X({type:bN(jP),auto_threshold:mM(),threshold:dM(),shortcut:CM(AP),delay:dM()}),NP=X({device_id:Y(),volume:dM(),available_devices:CM(OP)}),PP={UNHANDLED:-1,AUDIO_INPUT:`AUDIO_INPUT`,AUDIO_OUTPUT:`AUDIO_OUTPUT`,VIDEO_INPUT:`VIDEO_INPUT`},FP=X({type:bN(PP),id:Y(),vendor:X({name:Y(),url:Y()}),model:X({name:Y(),url:Y()}),related:CM(Y()),echo_cancellation:mM().optional().nullable(),noise_suppression:mM().optional().nullable(),automatic_gain_control:mM().optional().nullable(),hardware_mute:mM().optional().nullable()}),IP={UNHANDLED:-1,APPLICATION:1,DLC:2,CONSUMABLE:3,BUNDLE:4,SUBSCRIPTION:5},LP=X({id:Y(),name:Y(),type:bN(IP),price:X({amount:dM(),currency:Y()}),application_id:Y(),flags:dM(),release_date:Y().nullable()}),RP={UNHANDLED:-1,PURCHASE:1,PREMIUM_SUBSCRIPTION:2,DEVELOPER_GIFT:3,TEST_MODE_PURCHASE:4,FREE_PURCHASE:5,USER_GIFT:6,PREMIUM_PURCHASE:7},zP=X({id:Y(),sku_id:Y(),application_id:Y(),user_id:Y(),gift_code_flags:dM(),type:bN(RP),gifter_user_id:Y().optional().nullable(),branches:CM(Y()).optional().nullable(),starts_at:Y().optional().nullable(),ends_at:Y().optional().nullable(),parent_id:Y().optional().nullable(),consumed:mM().optional().nullable(),deleted:mM().optional().nullable(),gift_code_batch_id:Y().optional().nullable()}),BP={UNHANDLED:-1,UNLOCKED:1,PORTRAIT:2,LANDSCAPE:3},VP=bN(BP),HP={UNHANDLED:-1,NOMINAL:0,FAIR:1,SERIOUS:2,CRITICAL:3},UP=bN(HP),WP={UNHANDLED:-1,PORTRAIT:0,LANDSCAPE:1},GP=bN(WP),KP={UNHANDLED:-1,FOCUSED:0,PIP:1,GRID:2},qP=bN(KP),JP=`ERROR`,YP;(function(e){e.READY=`READY`,e.VOICE_STATE_UPDATE=`VOICE_STATE_UPDATE`,e.SPEAKING_START=`SPEAKING_START`,e.SPEAKING_STOP=`SPEAKING_STOP`,e.ACTIVITY_LAYOUT_MODE_UPDATE=`ACTIVITY_LAYOUT_MODE_UPDATE`,e.ORIENTATION_UPDATE=`ORIENTATION_UPDATE`,e.CURRENT_USER_UPDATE=`CURRENT_USER_UPDATE`,e.CURRENT_GUILD_MEMBER_UPDATE=`CURRENT_GUILD_MEMBER_UPDATE`,e.ENTITLEMENT_CREATE=`ENTITLEMENT_CREATE`,e.THERMAL_STATE_UPDATE=`THERMAL_STATE_UPDATE`,e.ACTIVITY_INSTANCE_PARTICIPANTS_UPDATE=`ACTIVITY_INSTANCE_PARTICIPANTS_UPDATE`,e.RELATIONSHIP_UPDATE=`RELATIONSHIP_UPDATE`,e.ACTIVITY_JOIN=`ACTIVITY_JOIN`,e.QUEST_ENROLLMENT_STATUS_UPDATE=`QUEST_ENROLLMENT_STATUS_UPDATE`})(YP||={});var XP=JN.extend({evt:IM(YP),nonce:Y().nullable(),cmd:PM(KN),data:X({}).passthrough()}),ZP=JN.extend({evt:PM(JP),data:X({code:dM(),message:Y().optional()}).passthrough(),cmd:IM(qN),nonce:Y().nullable()}),QP=TM([XP,XP.extend({evt:Y()}),ZP]);function $P(e){let t=e.evt;if(!(t in YP))throw Error(`Unrecognized event type ${e.evt}`);return eF[t].payload.parse(e)}var eF={[YP.READY]:{payload:XP.extend({evt:PM(YP.READY),data:X({v:dM(),config:X({cdn_host:Y().optional(),api_endpoint:Y(),environment:Y()}),user:X({id:Y(),username:Y(),discriminator:Y(),avatar:Y().optional()}).optional()})})},[YP.VOICE_STATE_UPDATE]:{payload:XP.extend({evt:PM(YP.VOICE_STATE_UPDATE),data:rP}),subscribeArgs:X({channel_id:Y()})},[YP.SPEAKING_START]:{payload:XP.extend({evt:PM(YP.SPEAKING_START),data:X({lobby_id:Y().optional(),channel_id:Y().optional(),user_id:Y()})}),subscribeArgs:X({lobby_id:Y().nullable().optional(),channel_id:Y().nullable().optional()})},[YP.SPEAKING_STOP]:{payload:XP.extend({evt:PM(YP.SPEAKING_STOP),data:X({lobby_id:Y().optional(),channel_id:Y().optional(),user_id:Y()})}),subscribeArgs:X({lobby_id:Y().nullable().optional(),channel_id:Y().nullable().optional()})},[YP.ACTIVITY_LAYOUT_MODE_UPDATE]:{payload:XP.extend({evt:PM(YP.ACTIVITY_LAYOUT_MODE_UPDATE),data:X({layout_mode:bN(KP)})})},[YP.ORIENTATION_UPDATE]:{payload:XP.extend({evt:PM(YP.ORIENTATION_UPDATE),data:X({screen_orientation:bN(WP),orientation:IM(vN)})})},[YP.CURRENT_USER_UPDATE]:{payload:XP.extend({evt:PM(YP.CURRENT_USER_UPDATE),data:QN})},[YP.CURRENT_GUILD_MEMBER_UPDATE]:{payload:XP.extend({evt:PM(YP.CURRENT_GUILD_MEMBER_UPDATE),data:eP}),subscribeArgs:X({guild_id:Y()})},[YP.ENTITLEMENT_CREATE]:{payload:XP.extend({evt:PM(YP.ENTITLEMENT_CREATE),data:X({entitlement:zP})})},[YP.THERMAL_STATE_UPDATE]:{payload:XP.extend({evt:PM(YP.THERMAL_STATE_UPDATE),data:X({thermal_state:UP})})},[YP.ACTIVITY_INSTANCE_PARTICIPANTS_UPDATE]:{payload:XP.extend({evt:PM(YP.ACTIVITY_INSTANCE_PARTICIPANTS_UPDATE),data:X({participants:EN.shape.participants})})},[YP.RELATIONSHIP_UPDATE]:{payload:XP.extend({evt:PM(YP.RELATIONSHIP_UPDATE),data:ZN})},[YP.ACTIVITY_JOIN]:{payload:XP.extend({evt:PM(YP.ACTIVITY_JOIN),data:X({applicationId:Y(),secret:Y()})})},[YP.QUEST_ENROLLMENT_STATUS_UPDATE]:{payload:XP.extend({evt:PM(YP.QUEST_ENROLLMENT_STATUS_UPDATE),data:X({quest_id:Y(),is_enrolled:mM(),enrolled_at:Y().date()})})}};function tF(e,t){throw t}var nF=X({}).nullable(),rF=X({code:Y()}),iF=X({guilds:CM(X({id:Y(),name:Y()}))}),aF=X({id:Y(),name:Y(),icon_url:Y().optional(),members:CM($N)}),oF=X({id:Y(),type:bN(lP),guild_id:Y().optional().nullable(),name:Y().optional().nullable(),topic:Y().optional().nullable(),bitrate:dM().optional().nullable(),user_limit:dM().optional().nullable(),position:dM().optional().nullable(),voice_states:CM(rP),messages:CM(DP)}),sF=X({channels:CM(uP)});oF.nullable();var cF=oF.nullable(),lF=oF.nullable();X({input:NP,output:NP,mode:MP,automatic_gain_control:mM(),echo_cancellation:mM(),noise_suppression:mM(),qos:mM(),silence_warning:mM(),deaf:mM(),mute:mM()});var uF=X({evt:Y()}),dF=X({shortcut:AP}),fF=oP,pF=X({skus:CM(LP)}),mF=X({entitlements:CM(zP)}),hF=CM(zP).nullable(),gF=X({use_interactive_pip:mM()}),_F=X({locale:Y()}),vF=X({enabled:mM()}),yF=X({permissions:pM().or(Y())}),bF=xN(X({opened:mM().or(vM())}).default({opened:null})),xF=X({iosKeyboardResizesView:zM(mM())}),SF=JN.extend({cmd:IM(qN),evt:vM()});function CF({cmd:e,data:t}){switch(e){case qN.AUTHORIZE:return rF.parse(t);case qN.CAPTURE_SHORTCUT:return dF.parse(t);case qN.ENCOURAGE_HW_ACCELERATION:return vF.parse(t);case qN.GET_CHANNEL:return oF.parse(t);case qN.GET_CHANNELS:return sF.parse(t);case qN.GET_CHANNEL_PERMISSIONS:return yF.parse(t);case qN.GET_GUILD:return aF.parse(t);case qN.GET_GUILDS:return iF.parse(t);case qN.GET_PLATFORM_BEHAVIORS:return xF.parse(t);case qN.GET_CHANNEL:return oF.parse(t);case qN.SELECT_TEXT_CHANNEL:return lF.parse(t);case qN.SELECT_VOICE_CHANNEL:return cF.parse(t);case qN.SET_ACTIVITY:return fF.parse(t);case qN.GET_SKUS_EMBEDDED:return pF.parse(t);case qN.GET_ENTITLEMENTS_EMBEDDED:return mF.parse(t);case qN.SET_CONFIG:return gF.parse(t);case qN.START_PURCHASE:return hF.parse(t);case qN.SUBSCRIBE:case qN.UNSUBSCRIBE:return uF.parse(t);case qN.USER_SETTINGS_GET_LOCALE:return _F.parse(t);case qN.OPEN_EXTERNAL_LINK:return bF.parse(t);case qN.SET_ORIENTATION_LOCK_STATE:case qN.SET_CERTIFIED_DEVICES:case qN.SEND_ANALYTICS_EVENT:case qN.OPEN_INVITE_DIALOG:case qN.CAPTURE_LOG:case qN.GET_SKUS:case qN.GET_ENTITLEMENTS:return nF.parse(t);case qN.AUTHENTICATE:case qN.GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS:case qN.GET_QUEST:case qN.GET_QUEST_ENROLLMENT_STATUS:case qN.GET_RELATIONSHIPS:case qN.GET_USER:case qN.INITIATE_IMAGE_UPLOAD:case qN.INVITE_USER_EMBEDDED:case qN.OPEN_SHARE_MOMENT_DIALOG:case qN.QUEST_START_TIMER:case qN.REQUEST_PROXY_TICKET_REFRESH:case qN.SHARE_INTERACTION:case qN.SHARE_LINK:let{response:n}=WN[e];return n.parse(t);default:tF(e,Error(`Unrecognized command ${e}`))}}function wF(e){return Object.assign(Object.assign({},e),{data:CF(e)})}X({frame_id:Y(),platform:IM(yN).optional().nullable()}),X({v:PM(1),encoding:PM(`json`).optional(),client_id:Y(),frame_id:Y()});var TF=X({code:dM(),message:Y().optional()}),EF=X({evt:Y().nullable(),nonce:Y().nullable(),data:bM().nullable(),cmd:Y()}).passthrough();function DF(e){let t=EF.parse(e);return t.evt==null?wF(SF.passthrough().parse(t)):t.evt===`ERROR`?ZP.parse(t):$P(QP.parse(t))}function OF(e,t,n,r=()=>void 0){let i=JN.extend({cmd:PM(t),data:n});return async n=>{let a=await e({cmd:t,args:n,transfer:r(n)});return i.parse(a).data}}function kF(e,t=()=>void 0){let n=WN[e].response,r=JN.extend({cmd:PM(e),data:n});return n=>async i=>{let a=await n({cmd:e,args:i,transfer:t(i)});return r.parse(a).data}}var AF=e=>OF(e,qN.AUTHORIZE,rF),jF=e=>OF(e,qN.CAPTURE_LOG,nF),MF=e=>OF(e,qN.ENCOURAGE_HW_ACCELERATION,vF),NF=e=>OF(e,qN.GET_CHANNEL,oF),PF=e=>OF(e,qN.GET_ENTITLEMENTS_EMBEDDED,mF),FF=e=>OF(e,qN.GET_SKUS_EMBEDDED,pF),IF=e=>OF(e,qN.GET_CHANNEL_PERMISSIONS,yF),LF=e=>OF(e,qN.GET_PLATFORM_BEHAVIORS,xF),RF=e=>OF(e,qN.OPEN_EXTERNAL_LINK,bF),zF=e=>OF(e,qN.OPEN_INVITE_DIALOG,nF);oP.pick({state:!0,state_url:!0,details:!0,details_url:!0,timestamps:!0,assets:!0,party:!0,secrets:!0,instance:!0,type:!0}).extend({type:oP.shape.type.optional(),instance:oP.shape.instance.optional()}).nullable();var BF=e=>OF(e,qN.SET_ACTIVITY,fF),VF=e=>OF(e,qN.SET_CONFIG,gF);function HF({sendCommand:e,cmd:t,response:n,fallbackTransform:r,transferTransform:i=()=>void 0}){let a=JN.extend({cmd:PM(t),data:n});return async n=>{try{let r=await e({cmd:t,args:n,transfer:i(n)});return a.parse(r).data}catch(o){if(o.code===_N.INVALID_PAYLOAD){let o=r(n),s=await e({cmd:t,args:o,transfer:i(o)});return a.parse(s).data}throw o}}}var UF=e=>({lock_state:e.lock_state,picture_in_picture_lock_state:e.picture_in_picture_lock_state}),WF=e=>HF({sendCommand:e,cmd:qN.SET_ORIENTATION_LOCK_STATE,response:nF,fallbackTransform:UF}),GF=e=>OF(e,qN.START_PURCHASE,hF),KF=e=>OF(e,qN.USER_SETTINGS_GET_LOCALE,_F),qF=kF(VN.AUTHENTICATE),JF=kF(VN.GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS),YF=kF(VN.GET_QUEST),XF=kF(VN.GET_QUEST_ENROLLMENT_STATUS),ZF=kF(VN.GET_RELATIONSHIPS),QF=kF(VN.GET_USER),$F=kF(VN.INITIATE_IMAGE_UPLOAD),eI=kF(VN.INVITE_USER_EMBEDDED),tI=kF(VN.OPEN_SHARE_MOMENT_DIALOG),nI=kF(VN.QUEST_START_TIMER),rI=kF(VN.REQUEST_PROXY_TICKET_REFRESH),iI=kF(VN.SHARE_INTERACTION),aI=kF(VN.SHARE_LINK);function oI(e){return{authorize:AF(e),captureLog:jF(e),encourageHardwareAcceleration:MF(e),getChannel:NF(e),getChannelPermissions:IF(e),getEntitlements:PF(e),getPlatformBehaviors:LF(e),getSkus:FF(e),openExternalLink:RF(e),openInviteDialog:zF(e),setActivity:BF(e),setConfig:VF(e),setOrientationLockState:WF(e),startPurchase:GF(e),userSettingsGetLocale:KF(e),getInstanceConnectedParticipants:JF(e),authenticate:qF(e),getActivityInstanceConnectedParticipants:JF(e),getQuest:YF(e),getQuestEnrollmentStatus:XF(e),getRelationships:ZF(e),getUser:QF(e),initiateImageUpload:$F(e),inviteUserEmbedded:eI(e),openShareMomentDialog:tI(e),questStartTimer:nI(e),requestProxyTicketRefresh:rI(e),shareInteraction:iI(e),shareLink:aI(e)}}var sI=class extends Error{constructor(e,t=``){super(t),this.code=e,this.message=t,this.name=`Discord SDK Error`}};function cI(){return{disableConsoleLogOverride:!1}}var lI=[`log`,`warn`,`debug`,`info`,`error`];function uI(e,t,n){let r=e[t],i=e;r&&(e[t]=function(){let e=[].slice.call(arguments);n(t,``+e.join(` `)),r.apply(i,e)})}var dI=`2.5.0`,fI={randomUUID:typeof crypto<`u`&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},pI,mI=new Uint8Array(16);function hI(){if(!pI){if(typeof crypto>`u`||!crypto.getRandomValues)throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);pI=crypto.getRandomValues.bind(crypto)}return pI(mI)}var gI=[];for(let e=0;e<256;++e)gI.push((e+256).toString(16).slice(1));function _I(e,t=0){return(gI[e[t+0]]+gI[e[t+1]]+gI[e[t+2]]+gI[e[t+3]]+`-`+gI[e[t+4]]+gI[e[t+5]]+`-`+gI[e[t+6]]+gI[e[t+7]]+`-`+gI[e[t+8]]+gI[e[t+9]]+`-`+gI[e[t+10]]+gI[e[t+11]]+gI[e[t+12]]+gI[e[t+13]]+gI[e[t+14]]+gI[e[t+15]]).toLowerCase()}function vI(e,t,n){if(fI.randomUUID&&!t&&!e)return fI.randomUUID();e||={};let r=e.random??e.rng?.()??hI();if(r.length<16)throw Error(`Random bytes length must be >= 16`);return r[6]=r[6]&15|64,r[8]=r[8]&63|128,_I(r)}var yI;(function(e){e[e.HANDSHAKE=0]=`HANDSHAKE`,e[e.FRAME=1]=`FRAME`,e[e.CLOSE=2]=`CLOSE`,e[e.HELLO=3]=`HELLO`})(yI||={});var bI=new Set(xI());function xI(){return typeof window>`u`?[]:[window.location.origin,`https://discord.com`,`https://discordapp.com`,`https://ptb.discord.com`,`https://ptb.discordapp.com`,`https://canary.discord.com`,`https://canary.discordapp.com`,`https://staging.discord.co`,`http://localhost:3333`,`https://pax.discord.com`,`null`]}function SI(){return[window.parent.opener??window.parent,document.referrer?document.referrer:`*`]}var CI=class{getTransfer(e){switch(e.cmd){case qN.SUBSCRIBE:case qN.UNSUBSCRIBE:return;default:return e.transfer??void 0}}constructor(e,t){if(this.sdkVersion=dI,this.mobileAppVersion=null,this.source=null,this.sourceOrigin=``,this.eventBus=new EA,this.pendingCommands=new Map,this.sendCommand=e=>{var t;if(this.source==null)throw Error(`Attempting to send message before initialization`);let n=vI();return(t=this.source)==null||t.postMessage([yI.FRAME,Object.assign(Object.assign({},e),{nonce:n})],this.sourceOrigin,this.getTransfer(e)),new Promise((e,t)=>{this.pendingCommands.set(n,{resolve:e,reject:t})})},this.commands=oI(this.sendCommand),this.handleMessage=e=>{if(!bI.has(e.origin))return;let t=e.data;if(!Array.isArray(t))return;let[n,r]=t;switch(n){case yI.HELLO:return;case yI.CLOSE:return this.handleClose(r);case yI.HANDSHAKE:return this.handleHandshake();case yI.FRAME:return this.handleFrame(r);default:throw Error(`Invalid message format`)}},this.isReady=!1,this.clientId=e,this.configuration=t??cI(),typeof window<`u`&&window.addEventListener(`message`,this.handleMessage),typeof window>`u`){this.frameId=``,this.instanceId=``,this.customId=null,this.referrerId=null,this.platform=yN.DESKTOP,this.guildId=null,this.channelId=null,this.locationId=null;return}let n=new URLSearchParams(this._getSearch()),r=n.get(`frame_id`);if(!r)throw Error(`frame_id query param is not defined`);this.frameId=r;let i=n.get(`instance_id`);if(!i)throw Error(`instance_id query param is not defined`);this.instanceId=i;let a=n.get(`platform`);if(!a)throw Error(`platform query param is not defined`);if(a!==yN.DESKTOP&&a!==yN.MOBILE)throw Error(`Invalid query param "platform" of "${a}". Valid values are "${yN.DESKTOP}" or "${yN.MOBILE}"`);this.platform=a,this.customId=n.get(`custom_id`),this.referrerId=n.get(`referrer_id`),this.guildId=n.get(`guild_id`),this.channelId=n.get(`channel_id`),this.locationId=n.get(`location_id`),this.mobileAppVersion=n.get(`mobile_app_version`),[this.source,this.sourceOrigin]=SI(),this.addOnReadyListener(),this.handshake()}close(e,t){var n;window.removeEventListener(`message`,this.handleMessage);let r=vI();(n=this.source)==null||n.postMessage([yI.CLOSE,{code:e,message:t,nonce:r}],this.sourceOrigin)}async subscribe(e,t,...n){let[r]=n,i=this.eventBus.listenerCount(e),a=this.eventBus.on(e,t);return Object.values(YP).includes(e)&&e!==YP.READY&&i===0&&await this.sendCommand({cmd:qN.SUBSCRIBE,args:r,evt:e}),a}async unsubscribe(e,t,...n){let[r]=n;return e!==YP.READY&&this.eventBus.listenerCount(e)===1&&await this.sendCommand({cmd:qN.UNSUBSCRIBE,evt:e,args:r}),this.eventBus.off(e,t)}async ready(){this.isReady||await new Promise(e=>{this.eventBus.once(YP.READY,e)})}parseMajorMobileVersion(){if(this.mobileAppVersion&&this.mobileAppVersion.includes(`.`))try{return parseInt(this.mobileAppVersion.split(`.`)[0])}catch{return-1}return-1}handshake(){var e;let t={v:1,encoding:`json`,client_id:this.clientId,frame_id:this.frameId},n=this.parseMajorMobileVersion();(this.platform===yN.DESKTOP||n>=250)&&(t.sdk_version=this.sdkVersion),(e=this.source)==null||e.postMessage([yI.HANDSHAKE,t],this.sourceOrigin)}addOnReadyListener(){this.eventBus.once(YP.READY,()=>{this.overrideConsoleLogging(),this.isReady=!0})}overrideConsoleLogging(){if(this.configuration.disableConsoleLogOverride)return;let e=(e,t)=>{this.commands.captureLog({level:e,message:t})};lI.forEach(t=>{uI(console,t,e)})}handleClose(e){TF.parse(e)}handleHandshake(){}handleFrame(e){var t,n;let r;try{r=DF(e)}catch(t){console.error(`Failed to parse`,e),console.error(t);return}if(r.cmd===`DISPATCH`)this.eventBus.emit(r.evt,r.data);else{if(r.evt===`ERROR`){if(r.nonce!=null){(t=this.pendingCommands.get(r.nonce))==null||t.reject(r.data),this.pendingCommands.delete(r.nonce);return}this.eventBus.emit(`error`,new sI(r.data.code,r.data.message))}if(r.nonce==null){console.error(`Missing nonce`,e);return}(n=this.pendingCommands.get(r.nonce))==null||n.resolve(r),this.pendingCommands.delete(r.nonce)}}_getSearch(){return typeof window>`u`?``:window.location.search}},wI=1e9,TI={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:`2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286`},EI=!0,DI=`[DecimalError] `,OI=DI+`Invalid argument: `,kI=DI+`Exponent out of range: `,AI=Math.floor,jI=Math.pow,MI=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,NI,PI=1e7,FI=7,II=9007199254740991,LI=AI(II/FI),RI={};RI.absoluteValue=RI.abs=function(){var e=new this.constructor(this);return e.s&&=1,e},RI.comparedTo=RI.cmp=function(e){var t,n,r,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(r=a.d.length,i=e.d.length,t=0,n=re.d[t]^a.s<0?1:-1;return r===i?0:r>i^a.s<0?1:-1},RI.decimalPlaces=RI.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*FI;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n},RI.dividedBy=RI.div=function(e){return HI(this,new this.constructor(e))},RI.dividedToIntegerBy=RI.idiv=function(e){var t=this,n=t.constructor;return YI(HI(t,new n(e),0,1),n.precision)},RI.equals=RI.eq=function(e){return!this.cmp(e)},RI.exponent=function(){return WI(this)},RI.greaterThan=RI.gt=function(e){return this.cmp(e)>0},RI.greaterThanOrEqualTo=RI.gte=function(e){return this.cmp(e)>=0},RI.isInteger=RI.isint=function(){return this.e>this.d.length-2},RI.isNegative=RI.isneg=function(){return this.s<0},RI.isPositive=RI.ispos=function(){return this.s>0},RI.isZero=function(){return this.s===0},RI.lessThan=RI.lt=function(e){return this.cmp(e)<0},RI.lessThanOrEqualTo=RI.lte=function(e){return this.cmp(e)<1},RI.logarithm=RI.log=function(e){var t,n=this,r=n.constructor,i=r.precision,a=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(NI))throw Error(DI+`NaN`);if(n.s<1)throw Error(DI+(n.s?`NaN`:`-Infinity`));return n.eq(NI)?new r(0):(EI=!1,t=HI(qI(n,a),qI(e,a),a),EI=!0,YI(t,i))},RI.minus=RI.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?XI(t,e):zI(t,(e.s=-e.s,e))},RI.modulo=RI.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(DI+`NaN`);return n.s?(EI=!1,t=HI(n,e,0,1).times(e),EI=!0,n.minus(t)):YI(new r(n),i)},RI.naturalExponential=RI.exp=function(){return UI(this)},RI.naturalLogarithm=RI.ln=function(){return qI(this)},RI.negated=RI.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},RI.plus=RI.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?zI(t,e):XI(t,(e.s=-e.s,e))},RI.precision=RI.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(OI+e);if(t=WI(i)+1,r=i.d.length-1,n=r*FI+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},RI.squareRoot=RI.sqrt=function(){var e,t,n,r,i,a,o,s=this,c=s.constructor;if(s.s<1){if(!s.s)return new c(0);throw Error(DI+`NaN`)}for(e=WI(s),EI=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=VI(s.d),(t.length+e)%2==0&&(t+=`0`),i=Math.sqrt(t),e=AI((e+1)/2)-(e<0||e%2),i==1/0?t=`5e`+e:(t=i.toExponential(),t=t.slice(0,t.indexOf(`e`)+1)+e),r=new c(t)):r=new c(i.toString()),n=c.precision,i=o=n+3;;)if(a=r,r=a.plus(HI(s,a,o+2)).times(.5),VI(a.d).slice(0,o)===(t=VI(r.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t==`4999`){if(YI(a,n+1,0),a.times(a).eq(s)){r=a;break}}else if(t!=`9999`)break;o+=4}return EI=!0,YI(r,n)},RI.times=RI.mul=function(e){var t,n,r,i,a,o,s,c,l,u=this,d=u.constructor,f=u.d,p=(e=new d(e)).d;if(!u.s||!e.s)return new d(0);for(e.s*=u.s,n=u.e+e.e,c=f.length,l=p.length,c=0;){for(t=0,i=c+r;i>r;)s=a[i]+p[r]*f[i-r-1]+t,a[i--]=s%PI|0,t=s/PI|0;a[i]=(a[i]+t)%PI|0}for(;!a[--o];)a.pop();return t?++n:a.shift(),e.d=a,e.e=n,EI?YI(e,d.precision):e},RI.toDecimalPlaces=RI.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(BI(e,0,wI),t===void 0?t=r.rounding:BI(t,0,8),YI(n,e+WI(n)+1,t))},RI.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=ZI(r,!0):(BI(e,0,wI),t===void 0?t=i.rounding:BI(t,0,8),r=YI(new i(r),e+1,t),n=ZI(r,!0,e+1)),n},RI.toFixed=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?ZI(i):(BI(e,0,wI),t===void 0?t=a.rounding:BI(t,0,8),r=YI(new a(i),e+WI(i)+1,t),n=ZI(r.abs(),!1,e+WI(r)+1),i.isneg()&&!i.isZero()?`-`+n:n)},RI.toInteger=RI.toint=function(){var e=this,t=e.constructor;return YI(new t(e),WI(e)+1,t.rounding)},RI.toNumber=function(){return+this},RI.toPower=RI.pow=function(e){var t,n,r,i,a,o,s=this,c=s.constructor,l=12,u=+(e=new c(e));if(!e.s)return new c(NI);if(s=new c(s),!s.s){if(e.s<1)throw Error(DI+`Infinity`);return s}if(s.eq(NI))return s;if(r=c.precision,e.eq(NI))return YI(s,r);if(t=e.e,n=e.d.length-1,o=t>=n,a=s.s,!o){if(a<0)throw Error(DI+`NaN`)}else if((n=u<0?-u:u)<=II){for(i=new c(NI),t=Math.ceil(r/FI+4),EI=!1;n%2&&(i=i.times(s),QI(i.d,t)),n=AI(n/2),n!==0;)s=s.times(s),QI(s.d,t);return EI=!0,e.s<0?new c(NI).div(i):YI(i,r)}return a=a<0&&e.d[Math.max(t,n)]&1?-1:1,s.s=1,EI=!1,i=e.times(qI(s,r+l)),EI=!0,i=UI(i),i.s=a,i},RI.toPrecision=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?(n=WI(i),r=ZI(i,n<=a.toExpNeg||n>=a.toExpPos)):(BI(e,1,wI),t===void 0?t=a.rounding:BI(t,0,8),i=YI(new a(i),e,t),n=WI(i),r=ZI(i,e<=n||n<=a.toExpNeg,e)),r},RI.toSignificantDigits=RI.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(BI(e,1,wI),t===void 0?t=r.rounding:BI(t,0,8)),YI(new r(n),e,t)},RI.toString=RI.valueOf=RI.val=RI.toJSON=RI[Symbol.for(`nodejs.util.inspect.custom`)]=function(){var e=this,t=WI(e),n=e.constructor;return ZI(e,t<=n.toExpNeg||t>=n.toExpPos)};function zI(e,t){var n,r,i,a,o,s,c,l,u=e.constructor,d=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),EI?YI(t,d):t;if(c=e.d,l=t.d,o=e.e,i=t.e,c=c.slice(),a=o-i,a){for(a<0?(r=c,a=-a,s=l.length):(r=l,i=o,s=c.length),o=Math.ceil(d/FI),s=o>s?o+1:s+1,a>s&&(a=s,r.length=1),r.reverse();a--;)r.push(0);r.reverse()}for(s=c.length,a=l.length,s-a<0&&(a=s,r=l,l=c,c=r),n=0;a;)n=(c[--a]=c[a]+l[a]+n)/PI|0,c[a]%=PI;for(n&&(c.unshift(n),++i),s=c.length;c[--s]==0;)c.pop();return t.d=c,t.e=i,EI?YI(t,d):t}function BI(e,t,n){if(e!==~~e||en)throw Error(OI+e)}function VI(e){var t,n,r,i=e.length-1,a=``,o=e[0];if(i>0){for(a+=o,t=1;tr?1:-1;else for(i=a=0;it[i]?1:-1;break}return a}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=+(e[n]1;)e.shift()}return function(r,i,a,o){var s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T=r.constructor,E=r.s==i.s?1:-1,D=r.d,O=i.d;if(!r.s)return new T(r);if(!i.s)throw Error(DI+`Division by zero`);for(c=r.e-i.e,C=O.length,x=D.length,p=new T(E),m=p.d=[],l=0;O[l]==(D[l]||0);)++l;if(O[l]>(D[l]||0)&&--c,v=a==null?a=T.precision:o?a+(WI(r)-WI(i))+1:a,v<0)return new T(0);if(v=v/FI+2|0,l=0,C==1)for(u=0,O=O[0],v++;(l1&&(O=e(O,u),D=e(D,u),C=O.length,x=D.length),b=C,h=D.slice(0,C),g=h.length;g=PI/2&&++S;do u=0,s=t(O,h,C,g),s<0?(_=h[0],C!=g&&(_=_*PI+(h[1]||0)),u=_/S|0,u>1?(u>=PI&&(u=PI-1),d=e(O,u),f=d.length,g=h.length,s=t(d,h,f,g),s==1&&(u--,n(d,C16)throw Error(kI+WI(e));if(!e.s)return new u(NI);for(t==null?(EI=!1,s=d):s=t,o=new u(.03125);e.abs().gte(.1);)e=e.times(o),l+=5;for(r=Math.log(jI(2,l))/Math.LN10*2+5|0,s+=r,n=i=a=new u(NI),u.precision=s;;){if(i=YI(i.times(e),s),n=n.times(++c),o=a.plus(HI(i,n,s)),VI(o.d).slice(0,s)===VI(a.d).slice(0,s)){for(;l--;)a=YI(a.times(a),s);return u.precision=d,t==null?(EI=!0,YI(a,d)):a}a=o}}function WI(e){for(var t=e.e*FI,n=e.d[0];n>=10;n/=10)t++;return t}function GI(e,t,n){if(t>e.LN10.sd())throw EI=!0,n&&(e.precision=n),Error(DI+`LN10 precision limit exceeded`);return YI(new e(e.LN10),t)}function KI(e){for(var t=``;e--;)t+=`0`;return t}function qI(e,t){var n,r,i,a,o,s,c,l,u,d=1,f=10,p=e,m=p.d,h=p.constructor,g=h.precision;if(p.s<1)throw Error(DI+(p.s?`NaN`:`-Infinity`));if(p.eq(NI))return new h(0);if(t==null?(EI=!1,l=g):l=t,p.eq(10))return t??(EI=!0),GI(h,l);if(l+=f,h.precision=l,n=VI(m),r=n.charAt(0),a=WI(p),Math.abs(a)<0x5543df729c000){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)p=p.times(e),n=VI(p.d),r=n.charAt(0),d++;a=WI(p),r>1?(p=new h(`0.`+n),a++):p=new h(r+`.`+n.slice(1))}else return c=GI(h,l+2,g).times(a+``),p=qI(new h(r+`.`+n.slice(1)),l-f).plus(c),h.precision=g,t==null?(EI=!0,YI(p,g)):p;for(s=o=p=HI(p.minus(NI),p.plus(NI),l),u=YI(p.times(p),l),i=3;;){if(o=YI(o.times(u),l),c=s.plus(HI(o,new h(i),l)),VI(c.d).slice(0,l)===VI(s.d).slice(0,l))return s=s.times(2),a!==0&&(s=s.plus(GI(h,l+2,g).times(a+``))),s=HI(s,new h(d),l),h.precision=g,t==null?(EI=!0,YI(s,g)):s;s=c,i+=2}}function JI(e,t){var n,r,i;for((n=t.indexOf(`.`))>-1&&(t=t.replace(`.`,``)),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=AI(n/FI),e.d=[],r=(n+1)%FI,n<0&&(r+=FI),rLI||e.e<-LI))throw Error(kI+n)}else e.s=0,e.e=0,e.d=[0];return e}function YI(e,t,n){var r,i,a,o,s,c,l,u,d=e.d;for(o=1,a=d[0];a>=10;a/=10)o++;if(r=t-o,r<0)r+=FI,i=t,l=d[u=0];else{if(u=Math.ceil((r+1)/FI),a=d.length,u>=a)return e;for(l=a=d[u],o=1;a>=10;a/=10)o++;r%=FI,i=r-FI+o}if(n!==void 0&&(a=jI(10,o-i-1),s=l/a%10|0,c=t<0||d[u+1]!==void 0||l%a,c=n<4?(s||c)&&(n==0||n==(e.s<0?3:2)):s>5||s==5&&(n==4||c||n==6&&(r>0?i>0?l/jI(10,o-i):0:d[u-1])%10&1||n==(e.s<0?8:7))),t<1||!d[0])return c?(a=WI(e),d.length=1,t=t-a-1,d[0]=jI(10,(FI-t%FI)%FI),e.e=AI(-t/FI)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(r==0?(d.length=u,a=1,u--):(d.length=u+1,a=jI(10,FI-r),d[u]=i>0?(l/jI(10,o-i)%jI(10,i)|0)*a:0),c)for(;;)if(u==0){(d[0]+=a)==PI&&(d[0]=1,++e.e);break}else{if(d[u]+=a,d[u]!=PI)break;d[u--]=0,a=1}for(r=d.length;d[--r]===0;)d.pop();if(EI&&(e.e>LI||e.e<-LI))throw Error(kI+WI(e));return e}function XI(e,t){var n,r,i,a,o,s,c,l,u,d,f=e.constructor,p=f.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new f(e),EI?YI(t,p):t;if(c=e.d,d=t.d,r=t.e,l=e.e,c=c.slice(),o=l-r,o){for(u=o<0,u?(n=c,o=-o,s=d.length):(n=d,r=l,s=c.length),i=Math.max(Math.ceil(p/FI),s)+2,o>i&&(o=i,n.length=1),n.reverse(),i=o;i--;)n.push(0);n.reverse()}else{for(i=c.length,s=d.length,u=i0;--i)c[s++]=0;for(i=d.length;i>o;){if(c[--i]0?a=a.charAt(0)+`.`+a.slice(1)+KI(r):o>1&&(a=a.charAt(0)+`.`+a.slice(1)),a=a+(i<0?`e`:`e+`)+i):i<0?(a=`0.`+KI(-i-1)+a,n&&(r=n-o)>0&&(a+=KI(r))):i>=o?(a+=KI(i+1-o),n&&(r=n-i-1)>0&&(a=a+`.`+KI(r))):((r=i+1)0&&(i+1===o&&(a+=`.`),a+=KI(r))),e.s<0?`-`+a:a}function QI(e,t){if(e.length>t)return e.length=t,!0}function $I(e){var t,n,r;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i)t.s=e.s,t.e=e.e,t.d=(e=e.d)?e.slice():e;else{if(typeof e==`number`){if(e*0!=0)throw Error(OI+e);if(e>0)t.s=1;else if(e<0)e=-e,t.s=-1;else{t.s=0,t.e=0,t.d=[0];return}if(e===~~e&&e<1e7){t.e=0,t.d=[e];return}return JI(t,e.toString())}if(typeof e!=`string`)throw Error(OI+e);if(e.charCodeAt(0)===45?(e=e.slice(1),t.s=-1):t.s=1,MI.test(e))JI(t,e);else throw Error(OI+e)}}if(i.prototype=RI,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=$I,i.config=i.set=eL,e===void 0&&(e={}),e)for(r=[`precision`,`rounding`,`toExpNeg`,`toExpPos`,`LN10`],t=0;t=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(OI+n+`: `+r)}if((r=e[n=`LN10`])!==void 0){if(r==Math.LN10)this[n]=new this(r);else throw Error(OI+n+`: `+r)}return this}NI=new($I(TI))(1);var Q;(function(e){e.AED=`aed`,e.AFN=`afn`,e.ALL=`all`,e.AMD=`amd`,e.ANG=`ang`,e.AOA=`aoa`,e.ARS=`ars`,e.AUD=`aud`,e.AWG=`awg`,e.AZN=`azn`,e.BAM=`bam`,e.BBD=`bbd`,e.BDT=`bdt`,e.BGN=`bgn`,e.BHD=`bhd`,e.BIF=`bif`,e.BMD=`bmd`,e.BND=`bnd`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Q.XPF,Q.XPT,Q.XSU,Q.XTS,Q.XUA,Q.YER,Q.ZAR,Q.ZMW,Q.ZWL;var tL={exports:{}};tL.exports;var nL;function rL(){return nL||(nL=1,(function(e,t){var n=`__lodash_hash_undefined__`,r=9007199254740991,i=`[object Arguments]`,a=`[object Array]`,o=`[object Boolean]`,s=`[object Date]`,c=`[object Error]`,l=`[object Function]`,u=`[object Map]`,d=`[object Number]`,f=`[object Object]`,p=`[object Promise]`,m=`[object RegExp]`,h=`[object Set]`,g=`[object String]`,_=`[object Symbol]`,v=`[object WeakMap]`,y=`[object ArrayBuffer]`,b=`[object DataView]`,x=`[object Float32Array]`,S=`[object Float64Array]`,C=`[object Int8Array]`,w=`[object Int16Array]`,T=`[object Int32Array]`,E=`[object Uint8Array]`,D=`[object Uint8ClampedArray]`,O=`[object Uint16Array]`,k=`[object Uint32Array]`,ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,A=/^\w*$/,te=/^\./,j=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ne=/[\\^$.*+?()[\]{}|]/g,re=/\\(\\)?/g,ie=/^\[object .+?Constructor\]$/,M=/^(?:0|[1-9]\d*)$/,N={};N[x]=N[S]=N[C]=N[w]=N[T]=N[E]=N[D]=N[O]=N[k]=!0,N[i]=N[a]=N[y]=N[o]=N[b]=N[s]=N[c]=N[l]=N[u]=N[d]=N[f]=N[m]=N[h]=N[g]=N[v]=!1;var ae=typeof xA==`object`&&xA&&xA.Object===Object&&xA,oe=typeof self==`object`&&self&&self.Object===Object&&self,se=ae||oe||globalThis,ce=t&&!t.nodeType&&t,le=ce&&e&&!e.nodeType&&e,ue=le&&le.exports===ce&&ae.process,de=function(){try{return ue&&ue.binding(`util`)}catch{}}(),fe=de&&de.isTypedArray;function pe(e,t){for(var n=-1,r=e?e.length:0;++n-1}function st(e,t){var n=this.__data__,r=wt(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}nt.prototype.clear=rt,nt.prototype.delete=it,nt.prototype.get=at,nt.prototype.has=ot,nt.prototype.set=st;function ct(e){var t=-1,n=e?e.length:0;for(this.clear();++ts))return!1;var l=a.get(e);if(l&&a.get(t))return l==t;var u=-1,d=!0,f=i&1?new mt:void 0;for(a.set(e,t),a.set(t,e);++u-1&&e%1==0&&e-1&&e%1==0&&e<=r}function gn(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function _n(e){return!!e&&typeof e==`object`}function vn(e){return typeof e==`symbol`||_n(e)&&De.call(e)==_}var yn=fe?_e(fe):Pt;function bn(e){return e==null?``:Bt(e)}function xn(e,t,n){var r=e==null?void 0:Dt(e,t);return r===void 0?n:r}function Sn(e,t){return e!=null&&Xt(e,t,kt)}function Cn(e){return fn(e)?Ct(e):It(e)}function wn(e,t,n){var r=dn(e)||yn(e);if(t=Ft(t),n==null){if(r||gn(e)){var i=e.constructor;n=r?dn(e)?new i:[]:mn(i)?Tt(je(e)):{}}else n={}}return(r?pe:Et)(e,function(e,r,i){return t(n,e,r,i)}),n}function Tn(e){return e}function En(e){return Qt(e)?he(on(e)):zt(e)}e.exports=wn})(tL,tL.exports)),tL.exports}rL();var{Commands:iL}=GN,aL=[`identify`,`guilds.members.read`];function oL(e,t){if(e instanceof mA)return e;if(typeof e==`object`&&e&&`code`in e){let n=e.code,r=Object.values(_N).filter(e=>typeof e==`number`);if(typeof n==`number`&&r.includes(n))return new mA(`${t}_${n}`)}return new mA(t)}var sL=15e3,cL=12e4,lL=15e3;function uL(e=window.location.search){let t=new URLSearchParams(e),n=t.getAll(`frame_id`),r=t.getAll(`platform`);if(n.length!==1||n[0]===void 0||n[0].length===0||n[0].length>255||r.length!==1||![`desktop`,`mobile`].includes(r[0]??``))throw new mA(`invalid_launch`)}async function dL(e,t,n,r,i){let a=null,o=new Promise((e,n)=>{t!==void 0&&(a=()=>n(new mA(`cancelled`)),t.addEventListener(`abort`,a,{once:!0}),t.aborted&&a())}),s=null,c=new Promise((e,t)=>{s=setTimeout(()=>t(new mA(r)),i)}),l=Promise.resolve().then(()=>{if(t?.aborted)throw new mA(`cancelled`);return e()}).catch(e=>{throw oL(e,n)});try{return await Promise.race([l,o,c])}finally{s!==null&&clearTimeout(s),t!==void 0&&a!==null&&t.removeEventListener(`abort`,a)}}var fL=class{makeSDK;sdk=null;authenticated=!1;closed=!1;constructor(e=e=>new CI(e)){this.makeSDK=e}async authorize(e){let t=gA();uL();let n=await vA(t,e),r=this.open(n.client_id),i=()=>{if(e?.aborted)throw new mA(`cancelled`)};try{if(i(),await dL(()=>r.ready(),e,`sdk_ready_failed`,`sdk_ready_timeout`,sL),i(),r.instanceId!==t)throw new mA(`instance_mismatch`);let a=await dL(()=>r.commands.authorize({client_id:n.client_id,response_type:`code`,state:n.state,prompt:`none`,scope:[...aL]}),e,`authorize_failed`,`authorize_timeout`,cL);i();let o=await yA(a.code,n.state,e);if(i(),!this.authenticated){if(await dL(()=>r.commands.authenticate({access_token:o.access_token}),e,`sdk_authenticate_failed`,`sdk_authenticate_timeout`,lL)==null)throw new mA(`sdk_authenticate_failed`);this.authenticated=!0,i()}let s=o.ticket;return{sdk:r,bootstrap:n,player:o.player,takeTicket:()=>{let e=s;return s=null,e},destroy:()=>{s=null}}}catch(t){throw e?.aborted?new mA(`cancelled`):new mA(oL(t,`authorization_failed`).code,!0)}}close(){if(!this.closed&&(this.closed=!0,this.sdk!==null))try{this.sdk.close(gN.CLOSE_NORMAL,`Hands session closed`)}catch{}}open(e){if(this.closed)throw new mA(`cancelled`);if(this.sdk!==null)return this.sdk;try{this.sdk=this.makeSDK(e)}catch(e){throw new mA(oL(e,`sdk_initialization_failed`).code,!0)}return this.sdk}},pL={Digit1:`corner_cut`,Numpad1:`corner_cut`,Digit2:`corner_swelling`,Numpad2:`corner_swelling`,Digit3:`corner_breath`,Numpad3:`corner_breath`},mL={2:`corner_cut`,3:`corner_swelling`,1:`corner_breath`},hL=[{kind:`corner_cut`,choice:`cut`,key:`1`,title:`Close the cut`},{kind:`corner_swelling`,choice:`swelling`,key:`2`,title:`Bring down the swelling`},{kind:`corner_breath`,choice:`breath`,key:`3`,title:`Catch your breath`}],gL={cut:`Your corner is closing the cut.`,swelling:`Your corner is bringing the swelling down.`,breath:`Your corner is getting your breath back.`,balanced:`Your corner did a little of everything.`},_L=1500,vL=1e3;function yL(e){return e<150?`small`:e<350?`nasty`:e<550?`deep`:`dangerous`}var bL=(e,t)=>Math.round(Math.max(0,Math.min(1,e/t))*100);function xL(e){let{trauma:t}=e,n=Math.max(t.left_cut,t.right_cut),r=Math.max(0,n-x.cut.worse_cut),i=Math.max(t.left_eye,t.right_eye),a=Math.max(0,i-x.swelling.eyes),o=i>=p?a0,swelling:Math.max(t.left_eye,t.right_eye)>0||t.swelling>0,breath:!0,balanced:!1}}function CL(){try{return[...navigator.getGamepads?.()??[]].find(e=>e!==null&&e.connected&&e.mapping===`standard`)??null}catch{return null}}var wL=class{pick;now;element;buttons=new Map;details=new Map;status;visible=!1;choice=null;pending=null;shown=null;frozen=null;available=null;padFrame=0;padPrevious=new Set;measuredTop=null;resize=()=>{this.measuredTop=null};keydown=e=>{let t=pL[e.code];t!==void 0&&this.visible&&!e.repeat&&(e.preventDefault(),this.choose(t))};constructor(e,t,n=()=>performance.now()){this.pick=t,this.now=n;let r=document.createElement(`section`);r.className=`corner`,r.dataset.corner=``,r.hidden=!0,r.setAttribute(`aria-label`,`Instructions for your corner`);let i=document.createElement(`p`);i.className=`corner-title`,i.textContent=`YOUR CORNER`;let a=document.createElement(`div`);a.className=`corner-choices`;for(let{kind:e,key:t,title:n}of hL){let r=document.createElement(`button`);r.type=`button`,r.dataset.cornerPick=e;let i=document.createElement(`kbd`);i.textContent=t;let o=document.createElement(`strong`);o.textContent=n;let s=document.createElement(`span`);r.append(i,o,s),r.addEventListener(`click`,()=>this.choose(e)),a.append(r),this.buttons.set(e,r),this.details.set(e,s)}this.status=document.createElement(`p`),this.status.className=`corner-status`,this.status.setAttribute(`role`,`status`),r.append(i,a,this.status),e.append(r),this.element=r,window.addEventListener(`keydown`,this.keydown),window.addEventListener(`resize`,this.resize)}update(e,t,n){let r=e?.fighters.find(e=>e.player_id===t);if(!(n&&e!==null&&e.phase===`rest`&&r!==void 0)||r===void 0){this.setVisible(!1),this.choice=null,this.pending=null,this.shown=null,this.frozen=null;return}this.setVisible(!0),this.choice=r.corner_choice,(this.choice!==null||this.pending!==null&&this.now()-this.pending.at>_L)&&(this.pending=null);let i=this.choice!==null||this.pending!==null;i||(this.frozen=null);let a=i&&this.frozen!==null?this.frozen:xL(r);this.shown=a;let o=SL(r);this.available=o;for(let{kind:e,choice:t}of hL){let n=this.buttons.get(e),r=this.details.get(e);r.textContent!==a[t]&&(r.textContent=a[t]),n.disabled=i||!o[t],n.toggleAttribute(`data-picked`,this.choice===t||this.pending?.kind===e)}let s=this.choice===null?this.pending===null?`Tell your corner what to work on before the bell.`:`Calling it to your corner…`:gL[this.choice];this.status.textContent!==s&&(this.status.textContent=s)}choose(e){if(!this.visible||this.choice!==null||this.pending!==null)return;let t=hL.find(t=>t.kind===e)?.choice;if(t!==void 0&&this.available?.[t]!==!1&&this.pick(e)){this.frozen=this.shown,this.pending={kind:e,at:this.now()};for(let[t,n]of this.buttons)n.disabled=!0,n.toggleAttribute(`data-picked`,t===e);this.status.textContent=`Calling it to your corner…`}}setVisible(e){if(e!==this.visible){if(this.visible=e,this.element.hidden=!e,this.measuredTop=null,this.padPrevious.clear(),e){let e=CL();for(let t of Object.keys(mL))e?.buttons[Number(t)]?.pressed===!0&&this.padPrevious.add(Number(t));this.padFrame=requestAnimationFrame(()=>this.pollPad())}else cancelAnimationFrame(this.padFrame)}}top(){if(!this.visible)return null;if(this.measuredTop===null){let e=this.element.getBoundingClientRect();if(e.height<=0)return null;this.measuredTop=e.top-(this.element.parentElement?.getBoundingClientRect().top??0)}return this.measuredTop}pollPad(){if(!this.visible)return;let e=CL();if(e!==null)for(let[t,n]of Object.entries(mL)){let r=Number(t),i=e.buttons[r]?.pressed===!0;i&&!this.padPrevious.has(r)&&this.choose(n),i?this.padPrevious.add(r):this.padPrevious.delete(r)}this.padFrame=requestAnimationFrame(()=>this.pollPad())}destroy(){this.setVisible(!1),window.removeEventListener(`keydown`,this.keydown),window.removeEventListener(`resize`,this.resize),this.element.remove()}},TL={invalid_launch:`open Hands from a Discord voice channel with Play now`,cancelled:`the session was cancelled`,authorization_failed:`Discord did not authorize the session`,authorize_failed:`Discord did not authorize the session`,authorize_timeout:`Discord took too long to authorize the session`,sdk_ready_failed:`the Discord client did not respond`,sdk_ready_timeout:`the Discord client took too long to respond`,sdk_authenticate_failed:`Discord did not confirm your identity`,sdk_authenticate_timeout:`Discord took too long to confirm your identity`,sdk_initialization_failed:`the Discord client could not start the activity`,instance_mismatch:`this window belongs to a different activity instance`,bootstrap_failed:`the Hands server could not be reached`,token_failed:`the Hands server rejected the sign-in`,invalid_bootstrap:`the Hands server sent an unexpected reply`,invalid_token_response:`the Hands server sent an unexpected reply`,ticket_unavailable:`the session ticket was already used`,protocol_error:`the server and client disagree on the protocol`,unexpected_error:`something unexpected went wrong`,authentication_timeout:`the connection took too long to authenticate`,authentication_required:`the connection was not authenticated`,invalid_ticket:`the session ticket was rejected`,invalid_request:`the server rejected the request`,invalid_input:`the server rejected an input frame`,input_queue_full:`the server could not keep up with the inputs`,rate_limited:`too many requests were sent; wait a moment`,service_busy:`the server is busy right now`,service_unavailable:`the server is unavailable right now`,upstream_unavailable:`Discord is unavailable right now`,room_closed:`the bout has already ended; use Play now to start another`,room_full:`both seats in this bout are taken`,already_in_room:`you are already in a bout in another channel`,match_not_started:`the bout has not started yet`,connection_replaced:`this seat was taken over by a newer connection`,spectator_read_only:`spectators cannot send input`,server_shutting_down:`the server is restarting`,internal_error:`the server hit an internal error`,not_in_activity:`you are not a participant of this activity`,invalid_activity:`this activity instance is not valid`,invalid_state:`the sign-in state expired; retry`,invalid_guild:`this activity belongs to another server`,persistence_failed:`the result could not be saved`,rematch_unavailable:`the ring could not be cleared for a rematch; use Play now to start another bout`,network_unavailable:`the connection to the Hands server could not be opened`,match_abandoned:`both fighters lost their connection and the bout was called off`};function EL(e){if(e===`client_outdated`)return`Hands was updated. Reload to continue (client_outdated).`;let t=TL[e]??TL[e.replace(/_\d+$/u,``)];return t===void 0?`Unable to continue (${e}).`:`Unable to continue: ${t} (${e}).`}var DL={block:[55,.12,.22],hit:[85,.3,.42],counter_hit:[105,.38,.5],stun:[125,.42,.55],knockdown:[180,.62,.65],parry:[60,.18,.4],body_collapse:[170,.55,.3]},OL={injury:[150,.55,.6],vomit:[90,.15,.45],finish_him:[180,.65,.3],fatality:[180,.65,.65],death:[170,.5,.12]},kL=[120,.65,.5],AL=[35,.2,.35],jL=class{settings;constructor(e){this.settings=e}event(e,t=!1){if(!this.settings().haptics)return;let n=DL[e.kind];n!==void 0&&this.rumble(t?[n[0]*1.6,n[1]+.2,n[2]+.15]:n)}gore(e){if(!this.settings().haptics||e.kind===`death`&&ot(e.cause)!==null)return;this.rumble(OL[e.kind]);let t=this.settings();e.kind===`injury`&&sk(e.injury)!==null&&t.blood===`full`&&!t.reducedMotion&&setTimeout(()=>this.rumble(kL),ck*1e3)}getUpBeat(){this.settings().haptics&&this.rumble(AL)}rumble(e){let t=this.padActuator();if(t===null)this.vibrate(e[0]);else try{Promise.resolve(t.playEffect(`dual-rumble`,{duration:Math.min(180,Math.max(0,e[0])),strongMagnitude:Math.min(.65,Math.max(0,e[1])),weakMagnitude:Math.min(.65,Math.max(0,e[2]))})).catch(()=>void 0)}catch{}}padActuator(){if(typeof navigator.getGamepads!=`function`)return null;let e;try{e=[...navigator.getGamepads.call(navigator)]}catch{return null}let t=e.find(e=>e!==null&&e.connected&&`vibrationActuator`in e)?.vibrationActuator;return t==null||typeof t.playEffect!=`function`?null:t}vibrate(e){if(Re()&&typeof navigator.vibrate==`function`)try{navigator.vibrate(Math.min(180,Math.max(0,e)))}catch{}}};function ML(e,t){return e.kind===t.kind?e.kind===`punch`&&t.kind===`punch`?e.hand===t.hand&&e.class===t.class&&e.target===t.target&&e.power===t.power:e.kind===`foul`&&t.kind===`foul`?e.foul===t.foul:!0:!1}function NL(e,t,n){if(n<1||e.length>0&&ML(e.at(-1),t))return;let r=e.length-n+1;r>0&&e.splice(0,r),e.push(t)}var PL=class{maximum;queue=[];counter=0;listener=null;constructor(e=1){this.maximum=e}setListener(e){this.listener=e}push(e,t){if(this.maximum<1)return;let n=this.queue.at(-1);if(n!==void 0&&ML(n.action,t)){n.source=e;return}let r={...t,id:`c${this.counter+=1}`},i=this.queue.length-this.maximum+1;i>0&&this.queue.splice(0,i),this.queue.push({action:r,source:e}),this.listener?.(r)}clear(){this.queue.length=0}clearSource(e){let t=this.queue.filter(t=>t.source!==e);this.queue.splice(0,this.queue.length,...t)}drain(e){return this.queue.splice(0,e).map(e=>e.action)}};function FL(e,t,n=.18){let r=Math.hypot(e,t);if(!Number.isFinite(r)||r<=n)return{x:0,y:0};let i=(Math.min(1,r)-n)/(1-n);return{x:e/r*i,y:t/r*i}}var IL=(e,t)=>{let n=Math.atan2(Math.abs(t),Math.abs(e))*180/Math.PI;return n<22.5?`hook`:n<45?`jab`:n<70?`straight`:`uppercut`},LL=class{active=!1;hand=`right`;target=`head`;power=`normal`;peak={x:0,y:0};peakMagnitude=0;update(e,t,n,r){let i=Math.hypot(e,t);if(!this.active&&i>=.55&&Math.abs(e)>=.12)return this.active=!0,this.hand=e<0?`left`:`right`,this.target=n?`body`:`head`,this.power=r?`power`:`normal`,this.peak={x:e,y:t},this.peakMagnitude=i,null;if(!this.active)return null;if(i>this.peakMagnitude&&(this.peak={x:e,y:t},this.peakMagnitude=i),i<=.25){let e={kind:`punch`,hand:this.hand,class:IL(this.peak.x,this.peak.y),target:this.target,power:this.power};return this.reset(),e}return null}reset(){this.active=!1,this.peak={x:0,y:0},this.peakMagnitude=0}},RL=[`jab`,`straight`,`hook`,`uppercut`],zL=(e,t)=>e.buttons[t]?.pressed===!0;function BL(){let e=navigator.getGamepads;if(typeof e!=`function`)return null;try{return[...e.call(navigator)].find(e=>e!==null&&e.connected&&e.mapping===`standard`)??null}catch{return null}}var VL=class{maximumQueue;sharedActions;gesture=new LL;queue=[];previous=new Set;selectorConsumed=new Map;raf=0;currentId=null;moveX=0;moveY=0;defense=`none`;knockdown=!1;enabled=!0;trigger=!1;heldListener=null;disconnect=e=>{e.gamepad.id===this.currentId&&this.reset()};constructor(e=1,t){this.maximumQueue=e,this.sharedActions=t,window.addEventListener(`gamepaddisconnected`,this.disconnect),this.raf=requestAnimationFrame(()=>this.poll())}onHeldChange(e){this.heldListener=e}push(e){this.sharedActions===void 0?NL(this.queue,e,this.maximumQueue):this.sharedActions.push(`gamepad`,e)}poll(){if(!this.enabled){this.reset(),this.schedulePoll();return}let e=BL();if(e===null){this.currentId!==null&&this.reset(),this.schedulePoll();return}this.currentId!==null&&this.currentId!==e.id&&this.reset(),this.currentId=e.id;let t=FL(e.axes[0]??0,e.axes[1]??0),n=Math.round(t.x*1e3),r=Math.round(-t.y*1e3),i=zL(e,4)?`guard_high`:zL(e,5)?`guard_low`:`none`,a=n!==this.moveX||r!==this.moveY||i!==this.defense;this.moveX=n,this.moveY=r,this.defense=i,a&&this.heldListener?.(),this.trigger=zL(e,7);let o=this.gesture.update(e.axes[2]??0,e.axes[3]??0,zL(e,6),this.trigger);o!==null&&this.push(o);let s=RL.some((t,n)=>zL(e,n)&&!this.previous.has(n));for(let t of[14,15]){let n=zL(e,t),r=this.previous.has(t);this.knockdown?(n&&!r&&this.push({kind:t===14?`get_up_left`:`get_up_right`}),this.selectorConsumed.delete(t)):n?(r||this.selectorConsumed.set(t,!1),s&&this.selectorConsumed.set(t,!0)):r&&(this.selectorConsumed.get(t)===!1&&this.push({kind:t===14?`slip_left`:`slip_right`}),this.selectorConsumed.delete(t))}for(let t=0;tthis.poll())}setKnockdown(e){this.knockdown=e}get powerHeld(){return this.enabled&&this.trigger}setEnabled(e){this.enabled=e,e||this.reset()}frame(e=4){let t=this.sharedActions===void 0?this.queue.splice(0,e):[];return{moveX:this.moveX,moveY:this.moveY,defense:this.defense,actions:t}}reset(){this.currentId=null,this.moveX=this.moveY=0,this.defense=`none`,this.trigger=!1,this.queue.length=0,this.sharedActions?.clearSource(`gamepad`),this.previous.clear(),this.selectorConsumed.clear(),this.gesture.reset()}destroy(){cancelAnimationFrame(this.raf),window.removeEventListener(`gamepaddisconnected`,this.disconnect),this.reset()}},HL=new Set([`KeyW`,`KeyA`,`KeyS`,`KeyD`,`KeyQ`,`KeyE`]),UL=new Set([`ShiftLeft`,`ShiftRight`,`AltLeft`,`AltRight`]),WL=class{target;maximumQueue;sharedActions;held=new Set;queue=[];enabled=!0;altFlag=!1;heldListener=null;keydown=e=>{if(this.altFlag=e.altKey,!Oe.has(e.code))return;if(!this.enabled){this.hold(e.code,e.repeat);return}if(e.preventDefault(),this.hold(e.code,e.repeat),e.repeat)return;let t=Te[e.code];if(t!==void 0)this.push({kind:`punch`,hand:t[0],class:t[1],target:this.hasShift(e)?`body`:`head`,power:this.alt?`power`:`normal`});else{let t=F[e.code];t!==void 0&&(t.kind!==`foul`||this.hasShift(e))&&this.push(t)}};keyup=e=>{this.altFlag=e.altKey,e.code===`MetaLeft`||e.code===`MetaRight`?this.letGo(e=>!UL.has(e)):Oe.has(e.code)&&(this.enabled&&e.preventDefault(),this.letGo(t=>t===e.code))};visibility=()=>{document.hidden&&this.reset()};blur=()=>this.reset();constructor(e=window,t=1,n){this.target=e,this.maximumQueue=t,this.sharedActions=n,e.addEventListener(`keydown`,this.keydown),e.addEventListener(`keyup`,this.keyup),e.addEventListener(`blur`,this.blur),document.addEventListener(`visibilitychange`,this.visibility)}onHeldChange(e){this.heldListener=e}hold(e,t){t&&this.held.has(e)||(this.held.delete(e),this.held.add(e),HL.has(e)&&this.heldListener?.())}letGo(e){let t=!1;for(let n of this.held)e(n)&&(this.held.delete(n),t||=HL.has(n));t&&this.heldListener?.()}axis(e,t){let n=0;for(let r of this.held)r===e?n=1:r===t&&(n=-1);return n}hasShift(e){return e.shiftKey||this.held.has(`ShiftLeft`)||this.held.has(`ShiftRight`)}get alt(){return this.altFlag||this.held.has(`AltLeft`)||this.held.has(`AltRight`)}get powerHeld(){return this.enabled&&this.alt}push(e){this.sharedActions===void 0?NL(this.queue,e,this.maximumQueue):this.sharedActions.push(`keyboard`,e)}setEnabled(e){this.enabled=e,e||(this.queue.length=0,this.sharedActions?.clearSource(`keyboard`))}frame(e=4){if(!this.enabled)return{moveX:0,moveY:0,defense:`none`,actions:[]};let t=this.axis(`KeyD`,`KeyA`)*1e3,n=this.axis(`KeyW`,`KeyS`)*1e3;t!==0&&n!==0&&(t=Math.sign(t)*707,n=Math.sign(n)*707);let r=this.axis(`KeyQ`,`KeyE`);return{moveX:t,moveY:n,defense:r>0?`guard_high`:r<0?`guard_low`:`none`,actions:this.sharedActions===void 0?this.queue.splice(0,e):[]}}reset(){this.letGo(()=>!0),this.altFlag=!1,this.queue.length=0,this.sharedActions?.clearSource(`keyboard`)}destroy(){this.reset(),this.target.removeEventListener(`keydown`,this.keydown),this.target.removeEventListener(`keyup`,this.keyup),this.target.removeEventListener(`blur`,this.blur),document.removeEventListener(`visibilitychange`,this.visibility)}};function GL(e,t,n,r){let i=e=>Math.max(-1e3,Math.min(1e3,Math.round(e)))||0;return{moveX:i(-r*e+n*t),moveY:i(-n*e-r*t)}}var KL=(e,t,n,r)=>Math.abs(Math.atan2(e*r-t*n,e*n+t*r)),qL=Math.PI/4-.01,JL=Math.PI/8,YL=300,XL=class{actions=new PL(1);keyboard;gamepad;touch=null;reset=()=>{this.keyboard.reset(),this.gamepad.reset(),this.touch?.reset(),this.actions.clear(),this.gamepad.setKnockdown(!1)};heldChanged=()=>{let e=this.held(),t=this.sentHeld,n=e.moveX!==0||e.moveY!==0,r=t.moveX!==0||t.moveY!==0;(e.defense!==t.defense||n!==r||n&&(KL(e.moveX,e.moveY,t.moveX,t.moveY)>JL||Math.abs(Math.hypot(e.moveX,e.moveY)-Math.hypot(t.moveX,t.moveY))>YL))&&(this.sentHeld=e,this.heldListener?.())};constructor(){this.keyboard=new WL(window,1,this.actions),this.gamepad=new VL(1,this.actions),this.keyboard.onHeldChange(this.heldChanged),this.gamepad.onHeldChange(this.heldChanged),window.addEventListener(`blur`,this.reset),document.addEventListener(`visibilitychange`,this.visibility)}visibility=()=>{document.hidden&&this.reset()};attachTouch(e,t=Re()){this.touch===null&&t&&(this.touch=new Ve(e,this.actions),this.touch.onHeldChange(this.heldChanged))}setActive(e,t=e){this.keyboard.setEnabled(e),this.gamepad.setEnabled(e),this.touch?.setEnabled(e,t)}setKnockdown(e){this.gamepad.setKnockdown(e),this.touch?.setKnockdown(e)}setGetUpPrompt(e){this.touch?.setGetUpPrompt(e)}onAction(e){this.actions.setListener(e)}get powerHeld(){return this.keyboard.powerHeld||this.gamepad.powerHeld||this.touch?.powerHeld===!0}onHeldChange(e){this.heldListener=e}heldListener=null;sentHeld={moveX:0,moveY:0,defense:`none`};setViewForward(e){this.viewForward=e}viewForward=null;latched=null;held(){let e=this.keyboard.frame(0),t=this.gamepad.frame(0),n=this.touch?.frame()??null,r=t.moveX===0?n!==null&&n.moveX!==0?n.moveX:e.moveX:t.moveX,i=t.moveY===0?n!==null&&n.moveY!==0?n.moveY:e.moveY:t.moveY,a=t.defense===`none`?n!==null&&n.defense!==`none`?n.defense:e.defense:t.defense;if(r===0&&i===0)return this.latched=null,{moveX:r,moveY:i,defense:a};let o=this.viewForward?.()??null,s=this.latched;s===null||KL(r,i,s.moveX,s.moveY)>qL?this.latched={moveX:r,moveY:i,forward:o===null?null:{x:o.x,z:o.z}}:s.forward!==null&&o!==null&&(s.forward.x=o.x,s.forward.z=o.z);let c=this.latched.forward;if(c===null)return{moveX:r,moveY:i,defense:a};let l=GL(r,i,c.x,c.z);return{moveX:l.moveX,moveY:l.moveY,defense:a}}frame(){return{...this.held(),actions:this.actions.drain(4)}}destroy(){window.removeEventListener(`blur`,this.reset),document.removeEventListener(`visibilitychange`,this.visibility),this.keyboard.destroy(),this.gamepad.destroy(),this.touch?.destroy()}},ZL=(e,t,n)=>e+(t-e)*n,QL=(e,t,n)=>({...t,x:ZL(e.x,t.x,n),y:ZL(e.y,t.y,n),facing:ZL(e.facing,t.facing,n),facing_x:ZL(e.facing_x,t.facing_x,n),facing_y:ZL(e.facing_y,t.facing_y,n),velocity_x:ZL(e.velocity_x,t.velocity_x,n),velocity_y:ZL(e.velocity_y,t.velocity_y,n),stamina:ZL(e.stamina,t.stamina,n),maximum_stamina:ZL(e.maximum_stamina,t.maximum_stamina,n),conditioning:ZL(e.conditioning,t.conditioning,n),guard:ZL(e.guard,t.guard,n),poise:ZL(e.poise,t.poise,n)}),$L=(e,t,n)=>({...t,x:ZL(e.x,t.x,n),y:ZL(e.y,t.y,n),facing_x:ZL(e.facing_x,t.facing_x,n),facing_y:ZL(e.facing_y,t.facing_y,n),velocity_x:ZL(e.velocity_x,t.velocity_x,n),velocity_y:ZL(e.velocity_y,t.velocity_y,n)}),eR=1.5,tR=6,nR=.5,rR=2500,iR=1,aR=.04,oR=100,sR=.01,cR=4,lR=class{maximum;tickRate;initialDelayTicks;snapshots=[];offsetTicks=null;delayTicks;lastStarvationMs=-1/0;lastFrameMs=null;behindPushes=0;needs=[];constructor(e=8,t=30,n=2){this.maximum=e,this.tickRate=t,this.initialDelayTicks=n,this.delayTicks=n}get interpolationDelayTicks(){return this.delayTicks}push(e,t){let n=this.snapshots.at(-1);if(n!==void 0&&e.tick<=n.tick)return!1;if(this.snapshots.push(e),this.snapshots.length>this.maximum&&this.snapshots.shift(),t!==void 0&&Number.isFinite(t)){let n=e.tick-t*this.tickRate/1e3;this.offsetTicks!==null&&n=cR&&this.restartClock(),this.offsetTicks===null?(this.offsetTicks=n,this.need(t,this.initialDelayTicks)):this.offsetTicks=Math.max(n,this.offsetTicks-sR),this.need(t,this.offsetTicks-n+iR)}return!0}resync(){this.restartClock()}restartClock(){this.offsetTicks=null,this.delayTicks=this.initialDelayTicks,this.lastStarvationMs=-1/0,this.behindPushes=0,this.needs.length=0}need(e,t){for(;this.needs.length>0&&this.needs.at(-1).ticks<=t;)this.needs.pop();this.needs.push({atMs:e,ticks:t})}recentNeed(e){for(;this.needs.length>0&&this.needs[0].atMs<=e-rR;)this.needs.shift();return this.needs[0]?.ticks??0}latest(){return this.snapshots.at(-1)??null}clockTick(e){let t=this.latest();return t===null?0:this.offsetTicks===null?t.tick:e*this.tickRate/1e3+this.offsetTicks}renderTick(e){let t=this.latest();if(t===null)return 0;let n=this.snapshots[0].tick;if(this.offsetTicks===null)return Math.max(n,t.tick-1);let r=this.lastFrameMs===null?0:Math.min(oR,Math.max(0,e-this.lastFrameMs));this.lastFrameMs=e;let i=e*this.tickRate/1e3+this.offsetTicks-this.delayTicks;if(i>t.tick+.25)e-this.lastStarvationMs>250&&(this.lastStarvationMs=e,this.delayTicks=Math.min(tR,this.delayTicks+nR),this.need(e,this.delayTicks));else{let t=Math.max(eR,this.recentNeed(e));this.delayTicks>t&&(this.delayTicks=Math.max(t,this.delayTicks-aR*r*this.tickRate/1e3))}return Math.min(t.tick,Math.max(n,i))}sample(e){let t=this.snapshots.findIndex(t=>t.tick>=e);if(t<=0)return this.snapshots[Math.max(0,t)]??this.latest();let n=this.snapshots[t-1],r=this.snapshots[t];if(n.phase!==r.phase||n.fighters.some((e,t)=>e.knockdowns!==r.fighters[t]?.knockdowns))return r;let i=Math.max(0,Math.min(1,(e-n.tick)/Math.max(1,r.tick-n.tick)));return{...r,fighters:[QL(n.fighters[0],r.fighters[0],i),QL(n.fighters[1],r.fighters[1],i)],referee:$L(n.referee,r.referee,i)}}clear(){this.snapshots.length=0,this.offsetTicks=null}},uR=class{highest=-1;accept(e){let t=new Set,n=e.filter(e=>e.event_id<=this.highest||t.has(e.event_id)?!1:(t.add(e.event_id),!0)).sort((e,t)=>e.event_id-t.event_id);for(let e of n)this.highest=Math.max(this.highest,e.event_id);return n}reset(){this.highest=-1}};function dR(e=window.location){let t=new URL(`/api/hands/ws`,e.origin);if(e.protocol===`https:`)t.protocol=`wss:`;else if(e.protocol===`http:`&&[`localhost`,`127.0.0.1`,`::1`].includes(e.hostname))t.protocol=`ws:`;else throw Error(`insecure_websocket_origin`);return t.search=``,t.hash=``,t.toString()}var fR=1,pR={moveX:0,moveY:0,defense:`none`,actions:[]},mR=33,hR=8,gR=50,_R=20,vR=10,yR=2048;function bR(e){try{return on(e)}catch(t){let n;try{let t=Ct(e);n=typeof t==`object`&&t&&`version`in t?t.version:void 0}catch{}throw typeof n==`number`&&n!==7?new mA(`client_outdated`,!0):t}}var xR=class{getInput;callbacks;makeSocket;now;socket=null;reconnectTicket;reconnectTimer=null;opponentPauseTimer=null;inputTimer=null;reconnectDeadline=0;opponentPauseDeadline=0;opponentPaused=!1;attempts=0;nextSequence=0;playerId=null;sentAt=new Map;actionSequences=new Map;latencyMs=null;serverTick=0;role=null;active=!1;resting=!1;boutStarted=!1;disposed=!1;terminal=!1;inputSuppressed=!1;pointerFocus=!1;listenersBound=!1;lastInputSentAt=-1/0;sendTimes=[];edgeSendTimes=[];heldSendTimes=[];heldTimer=null;pressWaiting=!1;constructor(e,t,n,r=e=>new WebSocket(e),i=()=>performance.now()){this.getInput=t,this.callbacks=n,this.makeSocket=r,this.now=i,this.reconnectTicket=e}start(){this.disposed||this.listenersBound||(this.bindInputListeners(),this.connect(),!this.disposed&&!this.terminal&&(this.inputTimer=window.setInterval(()=>this.periodicFlush(),mR)))}bindInputListeners(){this.listenersBound=!0,window.addEventListener(`blur`,this.onInputLoss),window.addEventListener(`focus`,this.onInputRegain),window.addEventListener(`pointerdown`,this.onPagePointer,!0),document.addEventListener(`visibilitychange`,this.onVisibilityChange)}setActive(e){this.setInputActive(e)}setInputActive(e){let t=this.active;this.active=e,e?this.boutStarted=!0:t&&this.sendInput(pR,!0)}notifyAction(){this.pressWaiting=!0,this.now()-(this.edgeSendTimes.at(-1)??-1/0)=_R||this.flushInput()&&this.edgeSendTimes.push(this.lastInputSentAt)}notifyHeld(){let e=hR-(this.now()-Math.max(this.edgeSendTimes.at(-1)??-1/0,this.heldSendTimes.at(-1)??-1/0));e>0?this.heldTimer??=window.setTimeout(()=>{this.heldTimer=null,this.notifyHeld()},e):this.withinLastSecond(this.heldSendTimes)>=vR||this.sendsInLastSecond()>=40||this.flushInput()&&this.heldSendTimes.push(this.lastInputSentAt)}periodicFlush(){this.now()-Math.max(this.edgeSendTimes.at(-1)??-1/0,this.heldSendTimes.at(-1)??-1/0)=40||this.flushInput()}sendsInLastSecond(){return this.withinLastSecond(this.sendTimes)}withinLastSecond(e){let t=this.now()-1e3;for(;e.length>0&&e[0]<=t;)e.shift();return e.length}onInputLoss=()=>{this.inputSuppressed||(this.sendInput(pR,this.boutStarted),this.inputSuppressed=!0,this.pointerFocus=!1)};onInputRegain=()=>{!document.hidden&&document.hasFocus()&&(this.inputSuppressed=!1)};onPagePointer=()=>{if(!document.hidden&&(this.pointerFocus=!0,this.inputSuppressed=!1,!document.hasFocus()))try{window.focus()}catch{}};onVisibilityChange=()=>{document.hidden?this.onInputLoss():this.onInputRegain()};connect(){if(this.disposed||this.terminal)return;let e=this.reconnectTicket;if(e===null){this.terminal=!0,this.stopInputLifecycle(),this.callbacks.onFreshAuth();return}let t;try{t=this.makeSocket(dR())}catch{this.terminal=!0,this.stopInputLifecycle(),this.callbacks.onFatal(`network_unavailable`);return}this.socket=t,t.binaryType=`arraybuffer`,t.onopen=()=>{if(!(this.socket!==t||this.disposed))try{t.send(JSON.stringify({version:7,type:`authenticate`,ticket:e})),this.reconnectTicket=null}catch{this.handleClose(t)}},t.onmessage=e=>this.handleMessage(t,e),t.onerror=()=>void 0,t.onclose=()=>this.handleClose(t)}handleMessage(e,t){if(!(this.socket!==e||this.disposed||this.terminal))try{if(typeof t.data!=`string`&&!(t.data instanceof ArrayBuffer))throw Error(`unsupported_frame`);let n=bR(t.data);if(this.applyMessage(n),n.type===`ticket`){try{e.send(JSON.stringify({version:7,type:`ticket_ack`,refresh_id:n.refresh_id}))}catch{this.handleClose(e)}return}this.callbacks.onMessage(n),n.type===`error`?this.terminate(n.code,e):n.type===`final`&&(this.terminal=!0,this.clearTransportReconnect(!0),this.clearOpponentPause(!0),this.stopInputLifecycle(),this.socket===e&&(this.socket=null),e.onopen=e.onmessage=e.onclose=e.onerror=null,e.close(1e3,`complete`))}catch(e){this.callbacks.onFatal(bA(e)),this.dispose()}}applyMessage(e){if(e.type===`welcome`){if(e.reconnect_ticket===void 0)throw Error(`missing_reconnect_ticket`);this.reconnectTicket=e.reconnect_ticket,this.serverTick=e.server_tick;let t=this.role===`spectator`&&e.role===`fighter`;this.role=e.role,this.playerId=e.role===`fighter`?e.player_id:null,this.sentAt.clear(),e.role===`fighter`?this.nextSequence=Math.max(this.nextSequence,e.next_sequence):this.stopInputLifecycle(),t&&(this.listenersBound||this.bindInputListeners(),this.inputTimer??=window.setInterval(()=>this.periodicFlush(),mR)),this.attempts=0,this.clearTransportReconnect(!0)}else e.type===`ticket`?this.reconnectTicket=e.reconnect_ticket:e.type===`snapshot`?(this.serverTick=Math.max(this.serverTick,e.payload.tick),this.setInputActive([`countdown`,`fight`,`knockdown`,`foul_recovery`,`referee_down`,`finish`].includes(e.payload.phase)),this.resting=e.payload.phase===`rest`,this.observeAcknowledgement(e.payload)):e.type===`paused`?(this.setInputActive(!1),this.startOpponentPause(e.grace_ms)):e.type===`resumed`?(this.setInputActive(!0),this.attempts=0,this.clearOpponentPause(!0)):e.type===`select`?this.clearOpponentPause(!0):e.type===`ready`?(this.clearOpponentPause(!0),this.setInputActive(!0)):e.type===`waiting`?(this.clearOpponentPause(!0),this.setInputActive(!1)):(e.type===`final`||e.type===`error`)&&(this.active=!1,this.clearOpponentPause(!0))}terminate(e,t){this.terminal=!0,this.active=!1,this.clearTransportReconnect(!0),this.clearOpponentPause(!0),this.stopInputLifecycle(),this.callbacks.onFatal(e),this.socket===t&&(this.socket=null,t.onopen=t.onmessage=t.onclose=t.onerror=null,t.close(1e3,`terminal`))}handleClose(e){if(this.socket!==e||(this.socket=null,this.active=!1,this.disposed||this.terminal))return;if(this.reconnectTicket===null){this.terminal=!0,this.stopInputLifecycle(),this.callbacks.onFreshAuth();return}this.clearOpponentPause(!1),this.reconnectDeadline===0&&(this.reconnectDeadline=this.now()+2e4);let t=Math.max(0,this.reconnectDeadline-this.now());if(this.callbacks.onReconnect(t),t<=0){this.terminal=!0,this.stopInputLifecycle(),this.callbacks.onFreshAuth();return}let n=Math.min(3e3,250*2**Math.min(this.attempts,4),t);this.attempts+=1,this.reconnectTimer=window.setTimeout(()=>{this.reconnectTimer=null,this.callbacks.onReconnect(Math.max(0,this.reconnectDeadline-this.now())),this.connect()},n)}requestCpu(e){let t=this.socket;if(this.role!==`fighter`||this.disposed||this.terminal||t?.readyState!==fR)return!1;try{return t.send(fn(e)),!0}catch{return this.handleClose(t),!1}}chooseStyle(e,t){let n=this.socket;if(this.role!==`fighter`||this.disposed||this.terminal||n?.readyState!==fR)return!1;try{return n.send(un(e,t)),!0}catch{return this.handleClose(n),!1}}get inputLatencyMs(){return this.latencyMs}sequenceOf(e){return this.actionSequences.get(e)??null}observeAcknowledgement(e){if(this.playerId===null)return;let t=e.fighters.find(e=>e.player_id===this.playerId);if(t===void 0||t.last_input_sequence<0)return;let n=this.sentAt.get(t.last_input_sequence);if(n!==void 0){let e=Math.max(0,this.now()-n);this.latencyMs=this.latencyMs===null?e:this.latencyMs*.8+e*.2}for(let e of this.sentAt.keys())e<=t.last_input_sequence&&this.sentAt.delete(e)}sendInput(e,t=!1){return(this.active||t)&&this.transmit(e)}sendCornerChoice(e){return this.resting?this.transmit({moveX:0,moveY:0,defense:`none`,actions:[{kind:e}]}):!1}transmit(e){let t=this.socket;if(this.role!==`fighter`||this.disposed||this.terminal||t?.readyState!==fR)return!1;try{let n=e.actions.slice(0,4);t.send(ln(this.nextSequence,this.serverTick,{...e,actions:n})),this.sentAt.set(this.nextSequence,this.now()),this.sentAt.size>128&&this.sentAt.delete(this.sentAt.keys().next().value);for(let e of n)e.id!==void 0&&this.actionSequences.set(e.id,this.nextSequence);for(;this.actionSequences.size>64;)this.actionSequences.delete(this.actionSequences.keys().next().value);return this.nextSequence+=1,this.lastInputSentAt=this.now(),this.sendTimes.push(this.lastInputSentAt),!0}catch{return this.handleClose(t),!1}}flushInput(){return this.inputSuppressed||document.hidden||!(this.pointerFocus||document.hasFocus())||this.sendsInLastSecond()>=gR||(this.socket?.bufferedAmount??0)>yR||!this.sendInput(this.getInput())?!1:(this.pressWaiting=!1,!0)}startOpponentPause(e){this.clearOpponentPause(!1),this.opponentPaused=!0,this.opponentPauseDeadline=this.now()+e,this.callbacks.onReconnect(e),e>0&&this.scheduleOpponentPauseTick()}scheduleOpponentPauseTick(){let e=Math.max(0,this.opponentPauseDeadline-this.now());e<=0?(this.opponentPauseDeadline=0,this.callbacks.onReconnect(0)):this.opponentPauseTimer=window.setTimeout(()=>{this.opponentPauseTimer=null;let e=Math.max(0,this.opponentPauseDeadline-this.now());this.callbacks.onReconnect(e),e>0?this.scheduleOpponentPauseTick():this.opponentPauseDeadline=0},Math.min(250,e))}clearOpponentPause(e){let t=this.opponentPaused;this.opponentPaused=!1,this.opponentPauseDeadline=0,this.opponentPauseTimer!==null&&(clearTimeout(this.opponentPauseTimer),this.opponentPauseTimer=null),e&&t&&this.callbacks.onReconnect(0)}cancelReconnect(){this.reconnectTimer!==null&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null)}clearTransportReconnect(e){let t=this.reconnectDeadline!==0;this.reconnectDeadline=0,this.cancelReconnect(),e&&t&&this.callbacks.onReconnect(0)}stopInputLifecycle(){this.inputTimer!==null&&(clearInterval(this.inputTimer),this.inputTimer=null),this.heldTimer!==null&&(clearTimeout(this.heldTimer),this.heldTimer=null),this.listenersBound&&=(window.removeEventListener(`blur`,this.onInputLoss),window.removeEventListener(`focus`,this.onInputRegain),window.removeEventListener(`pointerdown`,this.onPagePointer,!0),document.removeEventListener(`visibilitychange`,this.onVisibilityChange),!1)}dispose(){if(this.disposed)return;this.disposed=!0,this.active=!1,this.reconnectTicket=null,this.clearTransportReconnect(!0),this.clearOpponentPause(!0),this.stopInputLifecycle();let e=this.socket;this.socket=null,e!==null&&(e.onopen=e.onmessage=e.onclose=e.onerror=null,e.close(1e3,`teardown`))}},SR={play:`CALLAHAN`,colour:`OKAFOR`,announcer:`RING ANNOUNCER`},CR=.3,wR=.9,TR=.25,ER=2.6,DR=4.5,OR=12,kR=.8,AR=6,jR=9,MR=6,NR=42,PR=8,FR=15,IR=10,LR=[60,480,640],RR=500,zR=.2,BR=.3,VR=120,HR={knockdown:[`Down goes {b}!`,`{a} drops {b}!`,`{b} is down! What a shot from {a}!`,`Down goes {b}! {a} found the chin!`],knockdownAgain:[`{b} is down again!`,`Down for the second time! {b} is in deep trouble!`,`{a} puts {b} down again!`],knockdownCounter:[`Down goes {b}, off a perfect counter!`,`{a} times it, and {b} is down!`],struggle:[`{b} is struggling to get up...`,`{b} is trying to beat the count...`,`Can {b} get up?`],upLate:[`{b} beats the count at {n}!`,`Up at {n}! {b} is still in this!`,`{b} makes it up at {n}, but the legs look heavy.`],upEarly:[`{b} is up at {n}.`,`{b} is back up at the count of {n}.`,`Up at {n}. {b} wants to keep fighting.`],finishCall:[`{a} has to go for the finish now.`,`{b} needs to survive the next minute.`,`{b} has to hold and clear the head.`],hurt:[`{b} is hurt!`,`{a} has {b} in trouble!`,`{b}'s legs just buckled!`,`Big shot! {b} is wobbled!`,`{b} is rocked! Keep the pressure on, {a}!`],hurtBadly:[`{b} is out on their feet!`,`{b} is in all sorts of trouble!`,`{b} is badly hurt!`],guardBreak:[`{a} blasts right through the guard!`,`The guard is gone! {b} can't keep those hands up!`,`{a} breaks the guard down!`],counter:[`What a counter from {a}!`,`{a} times it perfectly! A {punch} on the counter!`,`{b} walked right into that {punch}!`,`Counter {punch} from {a}! Beautiful timing.`],bigShot:[`Big {punch} from {a}!`,`{a} lands a thudding {punch}!`,`That {punch} landed flush!`,`Huge {punch}! {b} felt that one.`],cut:[`{b} is cut over the {side} eye.`,`There's blood now. A cut over {b}'s {side} eye.`,`That's opened a cut over the {side} eye of {b}.`],cutWorse:[`That cut over {b}'s {side} eye is getting worse.`,`The blood is pouring from that {side} eye now.`,`{b} is bleeding badly from the {side} eye.`],cutGushing:[`That cut is gushing now! {b} is covered in it.`,`{b}'s face is a crimson mask, and nobody is stopping this!`],eyeSwelling:[`{b}'s {side} eye is swelling badly.`,`{b} is having trouble seeing out of that {side} eye.`],eyeShut:[`{b}'s {side} eye has closed completely!`,`That {side} eye is shut! {b} can't see them coming from that side.`,`{b} is fighting with one eye now.`],blindSide:[`{a} is working the blind side.`,`{b} never saw that one. Nothing is getting through that {side} eye.`,`Smart from {a}, punching where {b} can't see.`],parried:[`{a} picks it off and {b} is wide open!`,`Beautiful parry from {a}! {b} is off balance.`,`{a} slaps it away and {b} is left stranded.`],bodyCollapse:[`Body shot! {b} is going down!`,`{a} digs to the body and {b} is folding!`,`Oh, that body shot! {b} is in agony!`],knockdownBody:[`Down goes {b} from the body shot!`,`{b} takes a knee! That body shot took everything out!`,`{a} goes downstairs and {b} can't take it!`],cornerCut:[`{a}'s cutman is working on that cut.`,`They're working hard on the cut in {a}'s corner.`],cornerSwelling:[`{a}'s corner is getting the swelling down.`,`Ice and the enswell on that eye in {a}'s corner.`],cornerBreath:[`{a}'s corner wants the breath back first. Big drink of water.`,`{a} is told to breathe and settle down.`],combo:[`A three-punch combination from {a}!`,`{a} puts it together beautifully.`,`Lovely combination from {a}!`],unanswered:[`Five unanswered punches from {a}!`,`{a} is unloading! {b} has to fire back!`,`{b} is just covering up as {a} lets the hands go!`],jab:[`{a}'s jab is finding a home.`,`Stiff jab from {a}, and another.`,`{a} keeps popping that jab in {b}'s face.`],body:[`{a} is going to work on the body.`,`{a} keeps digging to the body.`,`Another one downstairs from {a}.`],payoff:[`The body work is paying off. {b} is slowing down.`,`Those body shots are taking it out of {b}.`,`{a} has invested in the body, and {b} is paying for it now.`],tiring:[`{b} is running on empty.`,`{b} is breathing hard. Those punches have nothing on them.`,`{b} has punched out. The tank is empty.`],takeover:[`{a} is taking over this round.`,`This is all {a} right now.`,`{a} is in complete control.`],clinch:[`{a} ties {b} up.`,`{a} grabs hold.`,`They're tied up in the clinch.`],holdingOn:[`{a} is hurt and holding on!`,`{a} grabs on for dear life!`,`Smart from {a}, holding on to clear the head.`],refBreak:[`The referee breaks them.`,`The referee steps in to separate them.`,`Break! The referee pulls them apart.`],refHit:[`{a} just tagged the referee!`,`Oh no, {a} has caught the referee!`,`That one landed on the referee!`],refDown:[`The referee is down! {a} has killed the referee!`,`Oh my goodness, the referee isn't moving! I think he's dead!`,`{a} has flattened the official for good! Absolute chaos!`],refBledOut:[`The referee has collapsed! He's bled out right there in the ring!`,`The referee goes down! He's lost too much blood!`],noRef:[`Nobody left to break them up!`,`No referee to part them, so they just let go.`],taunt:[`{a} drops the hands and invites {b} in!`,`Showboating from {a}! The crowd loves it.`,`{a} is taunting {b} now!`,`{a} sticks the chin out. Come and get it!`],lowBlow:[`Low blow from {a}! The referee steps in.`,`That's below the belt! {b} is doubled over.`,`{a} goes low, and the referee calls time.`],headbutt:[`Headbutt from {a}! The referee calls time.`,`{a} leads with the head! That's a foul.`],warning:[`A warning for {a}. One more and it costs a point.`,`The referee warns {a}. That can't happen again.`],deduction:[`The referee takes a point from {a}!`,`That costs {a} a point!`,`Point deduction! {a} has been warned enough.`],resume:[`And we're back underway.`,`Time in. Let's box.`],box:[`The referee waves them on. {b} has to survive now.`,`Box! {a} will be looking to finish it.`,`{b} has convinced the referee. Here comes {a}.`],evade:[`{a} slips it! Lovely head movement.`,`{b} misses, and {a} was never there.`,`Great defence from {a}.`],parry:[`{a} picks that off with the gloves.`,`{a} parries it away.`,`Tight defence from {a}.`],whiff:[`{a} misses wildly with the {punch}.`,`Big swing and a miss from {a}.`,`{a} throws everything into that {punch} and hits nothing but air.`],southpaw:[`{a} switches to southpaw.`,`{a} turns southpaw now.`],orthodox:[`{a} goes back to orthodox.`,`{a} switches back to orthodox.`],roundStart:[`Round {r}. Here we go.`,`We're underway in round {r}.`,`Round {r} is on.`],roundEnd:[`That's the bell to end round {r}.`,`The bell ends round {r}.`,`And that's round {r} in the books.`],savedByBell:[`Saved by the bell! {b} was in real trouble.`,`{b} is saved by the bell!`,`The bell rescues {b}!`],finalBell:[`That's the final bell!`,`The final bell! We go to the scorecards.`],summary:[`Round {r}: {a} landed {x} of {y}, {b} {z} of {w}.`],roundFor:[`I had that round for {a}.`,`{a} took that round.`,`That was {a}'s round.`],roundBig:[`The knockdown makes that a big round for {a}.`,`{a} wins that round big with the knockdown.`],roundClose:[`Close round. That one could go either way.`,`Tough round to score.`,`Nothing between them in that round.`],pullingAway:[`{a} is pulling away on the cards.`,`{b} needs something big. {a} is building a lead.`],ko:[`It's all over! {a} wins by knockout!`,`{b} can't beat the count! {a} wins it!`,`That's it! {a} has knocked out {b}!`],flashKo:[`Lights out! {b} is out cold!`,`One punch, and it's over! {a} wins!`,`Good night! {a} ends it with one shot!`],tko:[`Three knockdowns, and it's over! {a} wins!`,`The referee waves it off! {a} wins by stoppage!`],disqualified:[`{b} is disqualified!`,`That's it! {b} has been thrown out!`],forfeit:[`{b} has left the ring. {a} wins by forfeit.`],replay:[`Here it is again.`,`Let's see that one more time.`,`Watch {a} set it up...`],injBrokenNose:[`{b}'s nose is now mostly a suggestion.`,`That nose is broken. It is pointing at the exit, and so should {b}.`,`{a} has moved {b}'s nose to a different part of his face.`],injBrokenJaw:[`{b}'s jaw is broken. It is hanging off his face like a drawer left open.`,`That jaw has gone sideways. {b} will be eating through a straw, if he lives.`,`You can hear {b}'s jaw clicking from up here. That is not a good sound.`],injJawTorn:[`That is his jaw in the third row.`,`{a} has torn {b}'s jaw clean off! Somebody at ringside just caught a souvenir.`,`{b} has no lower jaw. His tongue is just hanging there like a necktie.`],injEyeOut:[`{b}'s {side} eye is out of his head! It is swinging on the nerve like a yo-yo.`,`The {side} eye has popped its socket. It is looking at {b}'s own cheek.`,`{a} has punched {b}'s {side} eye clean out. He can see his own shoes with it.`],injEarTorn:[`That is {b}'s {side} ear on the canvas. Somebody just trod on it.`,`{a} has taken the {side} ear clean off. {b} did not want to hear this anyway.`,`The {side} ear is gone. I think it is stuck to {a}'s glove.`],injFaceFlayed:[`The {side} half of {b}'s face has come off like a wet sock.`,`I can see {b}'s teeth through his {side} cheek. All of them.`,`{a} has peeled {b}'s face. That is muscle. That is bone. That is my lunch coming back up.`],injSkull:[`{b}'s skull has split open. That is his brain. I can see it thinking.`,`The top of {b}'s head is open like a boiled egg, and he is still standing.`,`That is brain, folks. One more upstairs and {b} forgets everything, permanently.`],injShoulder:[`{b}'s {side} shoulder has popped out. The arm is hanging like a coat on a hook.`,`The {side} shoulder is out of its socket. It is not supposed to be down there.`,`{b}'s {side} arm has come unplugged. His corner can shove it back in at the bell.`],injArmBroken:[`{b}'s {side} arm has snapped! The bone is out and waving at the crowd.`,`That {side} elbow now bends both ways. It is only meant to bend the one.`,`Compound fracture! {b}'s {side} forearm is dangling by the meat.`],injForearmSevered:[`{b}'s {side} forearm is off! The glove is still making a fist over there on the canvas.`,`{a} has taken the {side} arm off at the elbow, and {b} is punching with the stump!`,`There goes the {side} forearm. Somebody put it on ice. Actually, do not bother.`],injArmTorn:[`{a} has ripped {b}'s {side} arm off at the shoulder! It is on the canvas, still twitching!`,`The whole {side} arm is gone. That shoulder is a fire hose.`,`{b} has lost the {side} arm. The judges will take that into account.`],injRibs:[`{b}'s {side} ribs have caved in. One is sticking out of him like a coat hanger.`,`Those {side} ribs are through the skin. You can count them. I make it four.`,`The {side} side of {b} just folded like a lawn chair.`],injLiver:[`That is the liver, and it has burst. {b} is about to show us everything he ate today.`,`{b}'s liver just exploded inside him. He is turning a colour I have only seen on old fruit.`,`Liver shot, and it popped. {b} is filling up with blood on the inside.`],injDisemboweled:[`{b}'s belly is open and his guts are on the canvas! He is treading on them!`,`He is holding his intestines in with his glove and he still wants to fight.`,`{a} has unzipped {b} from hip to hip. That is twenty feet of intestine, and it is all coming out.`],injKnee:[`{b}'s {side} knee is bending the wrong way. Knees should not have a reverse gear.`,`The {side} knee has blown apart. I can see the kneecap. It is over by the ropes.`,`{b}'s {side} leg is held on by skin and optimism.`],ghastly:[`I would stop this fight. Nobody is going to stop this fight.`,`In any other sport that is a penalty.`,`{b} will feel that in the morning, if he gets one.`,`There are children watching this. They are cheering.`],shoulderBack:[`{b}'s corner has shoved the {side} shoulder back in. You could hear it from the cheap seats.`,`The {side} shoulder is back in its socket. {b} screamed, and then he said thank you.`,`They have popped {b}'s {side} shoulder back in. Good as new. It is not, but good as new.`],vomit:[`{a} is throwing up blood and bile all over the canvas. Mind your step.`,`There it goes. {a} is vomiting something black. That is the liver talking.`,`{a} is sick down his own chest. Blood, bile, and I think that was a tooth.`],finishHim:[`{b} is out on his feet and nobody is stopping it! Finish him!`,`{b} is just standing there, dead behind the eyes. {a} can do anything he likes with him.`,`This is it. {a} gets one free punch, and {b} will not be getting up from it. Ever.`],armless:[`{a} is trying to punch with arms he no longer has.`,`{a} just threw a punch. I will let somebody else tell him.`,`No arms, and {a} is still swinging. You have to admire it. You do not have to watch it.`,`{a} is waving two stumps at him. That is not a guard. That is a cry for help.`],fatEyesOut:[`{a} has punched both of {b}'s eyes out through the back of his head!`,`Two eyes, one punch! They are rolling across the ring. One of them is looking at me.`,`{b}'s eyes are out, and so is {b}. There is daylight coming through his face.`],fatHeadBurst:[`{b}'s head has exploded! It is just gone! It is all over the first three rows!`,`{a} hit him so hard his head burst like a dropped melon. The front row is wearing {b}.`],fatDecapitation:[`{a} has taken {b}'s head clean off! It is in the crowd! Somebody is holding it up!`,`Off comes the head! The body is still standing there, looking for it.`],fatSpineRip:[`The uppercut takes {b}'s head off, and his spine comes with it! All of it! Like boning a fish!`,`{b}'s head is in the air with the whole spine dangling off it. I have never seen that. Nobody has.`],fatHeartPunch:[`{a}'s fist has gone straight through {b}'s chest! That is his heart on the canvas, and it is still beating!`,`In through the chest and out the back! {a} is wearing {b} like a bracelet.`],fatGutting:[`{a} has emptied {b} onto the canvas! Everything he kept inside is now outside!`,`One straight to the gut and it all falls out. Liver, stomach, the lot. {b} is hollow.`],fatBisection:[`{a} has torn {b} in half at the waist! The legs are still standing! The top half is trying to crawl away!`,`{b} is in two pieces. The judges will have to score each half separately.`],fatTotalGib:[`{b} has exploded! There is nothing left! It is raining {b}!`,`{a} hit him and he just came apart. There are bits of {b} on the lights. There is a foot in my coffee.`],deathBledOut:[`{b} has bled to death, right there in the ring. There is more of him on the canvas than in him.`,`{b} is gone. He ran out of blood. You do need some.`,`And {b} just drops. Bled out. They will need a mop and a priest.`],deathBrain:[`That was the last of {b}'s brain, and {a} has punched it into soup. He is dead before he lands.`,`{b} is dead. His brain has left through the hole in his skull.`,`{b} is dead. You cannot fight without a brain. Plenty have tried.`],deathGutted:[`{b} is dead. {a} has punched what was left of his insides clean out of him.`,`That body shot went in one side and out the other. {b} is done, and I mean buried.`,`{b} has been gutted like a fish, and he has died like one, flapping.`],deathFatality:[`He is dead. I would like that on the record. {b} is extremely dead.`,`I have been doing this thirty years. I am going to need a different job.`,`Somebody tell {b}'s corner they can stop shouting advice.`],doubleDeath:[`They are both dead. Both of them. I do not know who to interview.`,`Two fighters, no survivors. The judges are going to hate this.`,`{a} and {b} have killed each other. Call it a draw. Call somebody.`]},UR={ko:`ko`,flash_ko:`flashKo`,tko:`tko`,disqualification:`disqualified`,forfeit:`forfeit`},WR={broken_nose:`injBrokenNose`,broken_jaw:`injBrokenJaw`,jaw_torn:`injJawTorn`,eye_out:`injEyeOut`,ear_torn:`injEarTorn`,face_flayed:`injFaceFlayed`,skull_fractured:`injSkull`,shoulder_dislocated:`injShoulder`,arm_broken:`injArmBroken`,forearm_severed:`injForearmSevered`,arm_torn:`injArmTorn`,ribs_broken:`injRibs`,liver_ruptured:`injLiver`,disemboweled:`injDisemboweled`,knee_blown:`injKnee`},GR={eyes_out:`fatEyesOut`,head_burst:`fatHeadBurst`,decapitation:`fatDecapitation`,spine_rip:`fatSpineRip`,heart_punch:`fatHeartPunch`,gutting:`fatGutting`,bisection:`fatBisection`,total_gib:`fatTotalGib`},KR={bled_out:`deathBledOut`,brain:`deathBrain`,gutted:`deathGutted`},qR=new Set([`injJawTorn`,`injEyeOut`,`injFaceFlayed`,`injSkull`,`injForearmSevered`,`injArmTorn`,`injDisemboweled`,`finishHim`,`fatEyesOut`,`fatHeadBurst`,`fatDecapitation`,`fatSpineRip`,`fatHeartPunch`,`fatGutting`,`fatBisection`,`fatTotalGib`,`deathBledOut`,`deathBrain`,`deathGutted`,`deathFatality`,`doubleDeath`]),JR={struggle:new Set([`knockdown`]),finishHim:new Set([`finish`])},YR=3.2,XR=4,ZR=`struggle`,QR=new Set([`countdown`]),$R=3.2,ez=new Set([`knockdown`,`knockdownAgain`,`knockdownCounter`,`knockdownBody`,`bodyCollapse`,`upLate`,`upEarly`,`hurt`,`hurtBadly`,`lowBlow`,`headbutt`,`deduction`,`ko`,`flashKo`,`tko`,`disqualified`,`forfeit`,`replay`,`refDown`,`refBledOut`,`savedByBell`,`finalBell`,`roundEnd`,`roundStart`,`injBrokenNose`,`injBrokenJaw`,`injEarTorn`,`injShoulder`,`injArmBroken`,`injRibs`,`injLiver`,`injKnee`,...qR]),tz=new Set([`lowBlow`,`headbutt`,`warning`,`deduction`,`box`,`tko`]),nz={fatEyesOut:99,fatHeadBurst:99,fatDecapitation:99,fatSpineRip:99,fatHeartPunch:99,fatGutting:99,fatBisection:99,fatTotalGib:99,doubleDeath:99,deathBledOut:98,deathBrain:98,deathGutted:98,deathFatality:98,finishHim:97,injJawTorn:96,injEyeOut:96,injFaceFlayed:96,injSkull:96,injForearmSevered:96,injArmTorn:96,injDisemboweled:96,injBrokenNose:85,injBrokenJaw:85,injEarTorn:85,injShoulder:85,injArmBroken:85,injRibs:85,injLiver:85,injKnee:85,vomit:66,shoulderBack:47,ghastly:44,armless:40,ko:98,flashKo:98,tko:98,disqualified:98,forfeit:98,refDown:97,refBledOut:97,refHit:72,knockdown:95,knockdownAgain:95,knockdownCounter:95,knockdownBody:95,bodyCollapse:86,upLate:90,upEarly:90,replay:88,deduction:84,lowBlow:82,headbutt:82,hurt:80,box:78,hurtBadly:80,holdingOn:76,savedByBell:74,finalBell:72,struggle:70,guardBreak:65,eyeShut:62,counter:60,parried:58,bigShot:55,roundEnd:52,cut:50,cutWorse:50,summary:50,cutGushing:48,eyeSwelling:48,cornerCut:47,cornerSwelling:47,cornerBreath:47,blindSide:42,roundFor:46,roundBig:46,roundClose:46,pullingAway:46,unanswered:45,finishCall:44,warning:42,combo:40,payoff:40,takeover:38,body:35,jab:30,tiring:30,roundStart:28,taunt:25,parry:22,evade:20,clinch:20,whiff:18,refBreak:12,noRef:12,southpaw:10,orthodox:10,resume:10},rz={finishCall:`colour`,payoff:`colour`,tiring:`colour`,takeover:`colour`,holdingOn:`colour`,taunt:`colour`,parry:`colour`,evade:`colour`,warning:`colour`,blindSide:`colour`,cornerCut:`colour`,cornerSwelling:`colour`,cornerBreath:`colour`,roundFor:`colour`,roundBig:`colour`,roundClose:`colour`,pullingAway:`colour`,cutGushing:`colour`,noRef:`colour`,jab:`colour`,ghastly:`colour`,shoulderBack:`colour`,vomit:`colour`,deathFatality:`colour`,doubleDeath:`colour`,armless:`colour`},iz={combo:6,jab:20,body:18,evade:12,parry:15,parried:8,blindSide:20,whiff:12,clinch:15,refBreak:20,taunt:10,southpaw:15,orthodox:15,bigShot:4,counter:3,unanswered:15,takeover:25,vomit:20,ghastly:14,armless:12},az=[`zero`,`one`,`two`,`three`,`four`,`five`,`six`,`seven`,`eight`,`nine`,`ten`,`eleven`,`twelve`,`thirteen`,`fourteen`,`fifteen`],oz=e=>az[e]??String(e),sz=[...az,`sixteen`,`seventeen`,`eighteen`,`nineteen`],cz=[``,``,`twenty`,`thirty`,`forty`,`fifty`,`sixty`,`seventy`,`eighty`,`ninety`];function lz(e){return!Number.isInteger(e)||e<0||e>=1e3?String(e):e<20?sz[e]:e<100?`${cz[Math.floor(e/10)]}${e%10==0?``:`-${sz[e%10]}`}`:`${sz[Math.floor(e/100)]} hundred${e%100==0?``:` and ${lz(e%100)}`}`}function uz(e,t=!0){if(_t(e))return`making a pro debut`;let n=e.draws>0?`${lz(e.wins)}, ${lz(e.losses)} and ${lz(e.draws)}`:`${lz(e.wins)} and ${e.losses===0?`oh`:lz(e.losses)}`;return t&&e.knockouts>0?`${n}, ${lz(e.knockouts)} by knockout`:n}function dz(e){return .85+e.length*.077+(e.split(`...`).length-1)*.35}var fz=.3;function pz(e,t){let n=t-fz,r=[e=>[e.record===void 0?null:uz(e.record),yn(e.style)],e=>[yn(e.style)],()=>[]];for(let t of r){let r=e.map((e,n)=>{let r=n===0?`In the blue corner`:`And in the red corner`,i=t(e).filter(e=>e!==null);return i.length===0?`${r}, ${e.name}!`:`${r}, ${i.join(`, `)}... ${e.name}!`});if(r.reduce((e,t)=>e+dz(t),0)<=n)return r}let i=`${e[0].name}... versus ${e[1].name}!`;return dz(i)<=n?[i]:[]}function mz(e,t){let n=e.replace(/\{(a|b|n|side|punch|r|x|y|z|w)\}/gu,(e,n)=>String(t[n]??``));return n.charAt(0).toUpperCase()+n.slice(1)}var hz=(e,t)=>{let n=Math.imul((e|0)^Math.imul(t,2654435761),2246822507);return n^=n>>>13,n=Math.imul(n,3266489909),(n^n>>>16)>>>0};function gz(e){let t=e.split(`:`);return[t.at(-2),t.at(-1)]}function _z(e,t){let[n=`punch`,r=`head`]=gz(e),i=t!==void 0&&t.action===n?t.action_hand:null,a=n===`jab`?`jab`:n===`straight`?i===null?`straight`:`${i} hand`:i===null?n:`${i} ${n}`;return r===`body`?`${a} to the body`:a}function vz(e){if(e.phase===`knockdown`){let t=Math.max(...e.fighters.map(e=>e.get_up_count));return Math.min(1,.3+t*.07)}if(e.phase===`finish`)return 1;if(e.phase!==`fight`)return 0;let t=0;for(let[n,r]of e.fighters.entries()){let i=e.fighters[1-n];r.is_downed||(r.stunned_ticks>0?t=Math.max(t,.75):r.poise<150&&(t=Math.max(t,.45)),(Math.max(Math.abs(r.x),Math.abs(r.y))>400||Math.abs(r.x)+Math.abs(r.y)>640)&&Math.hypot(r.x-i.x,r.y-i.y)<150&&(t=Math.max(t,.4)))}return t}var yz=()=>({thrown:0,landed:0,damage:0,knockdowns:0,body:0}),bz=()=>({jabs:[],window:[],evasions:[],run:0,runTick:-1e3,unanswered:0,stunnedAt:-1e3,knockedDownAt:-1e5,lowSince:null,tiredRound:0,takeoverRound:0,payoffRound:0,cutMarks:[0,0],eyeShut:[!1,!1],eyeSwelling:[!1,!1],rounds:0}),xz=class{hooks;queue=[];showing=null;lastEnd=-1/0;lastChoice=new Map;cooldowns=new Map;notes=new Map;tallies=new Map;players={};fighters=null;tickRate=30;introduced=!1;lastPhase=null;round=0;roundLength=null;fightRemaining=0;struggleCalled=-1;lastKnockdown=null;refereeDead=!1;final=null;verdictGiven=!1;resultCalled=!1;deaths=new Map;caption={line:null,opacity:0,entering:0};constructor(e={}){this.hooks=e}observe(e,t,n,r,i){this.players=n,this.fighters=e.fighters,this.refereeDead=e.referee?.alive===!1,this.tickRate=r,this.trackClock(e),this.introduced||(this.introduced=!0,e.phase===`countdown`&&e.round_number===1&&this.introduce(e,i));let a=t.find(e=>e.kind===`result`)??null;for(let n of t)this.consider(n,e,a,i);this.inspect(e,i),this.lastPhase=e.phase,this.dropOutOfPhase(e.phase,i)}dropOutOfPhase(e,t){for(let t=this.queue.length-1;t>=0;--t){let n=this.queue[t].phases;n!==null&&!n.has(e)&&this.queue.splice(t,1)}let n=this.showing;n!==null&&n.phases!==null&&!n.phases.has(e)&&(n.end=Math.min(n.end,t+TR))}finish(e,t,n,r){this.players=t,this.final=e,n&&this.deaths.size<2&&(this.enqueue(this.announcement(`Ladies and gentlemen, we go to the scorecards.`,{kicker:`LADIES AND GENTLEMEN`,title:`WE GO TO THE SCORECARDS`,detail:``,corner:null},MR,99),r,null,30),this.hooks.speak?.([`Ladies and gentlemen, we go to the scorecards.`])),e.method===`forfeit`&&!this.resultCalled&&e.winner_id!==null&&(this.resultCalled=!0,this.say(`forfeit`,e.round,r,{a:this.nameOf(e.winner_id),b:this.nameOf(this.otherId(e.winner_id))},`result`,0))}verdict(e){let t=this.final;if(t===null||this.verdictGiven)return;this.verdictGiven=!0;let n=Xr(t);if(t.winner_id===null&&this.deaths.size>=2){let n=`Ladies and gentlemen, both fighters are dead. There is no winner.`;this.enqueue(this.announcement(n,{kicker:`ROUND ${t.round}`,title:`DOUBLE DEATH`,detail:`NO SURVIVORS`,corner:null},jR,100),e,`verdict`,30),this.hooks.speak?.([n]);return}if(t.winner_id===null){let r=`After ${oz(t.round)} rounds, this bout is scored a ${n.toLowerCase()}.`;this.enqueue(this.announcement(r,{kicker:`AFTER ${oz(t.round).toUpperCase()} ROUNDS`,title:n,detail:``,corner:null},jR,100),e,`verdict`,30),this.hooks.speak?.([r]);return}let r=this.nameOf(t.winner_id),i=n.toLowerCase();this.enqueue(this.announcement(`The winner, by ${i}: ${r}!`,{kicker:`THE WINNER, BY ${n}`,title:r.toUpperCase(),detail:``,corner:this.seatOf(t.winner_id)},jR,100),e,`verdict`,30),this.hooks.speak?.([`And the winner, by ${i}... ${r}!`])}resultShown(e){let t=this.final;if(t===null||this.verdictGiven)return;if(t.method===`decision`||t.method===`draw`){this.verdict(e);return}if(this.verdictGiven=!0,t.winner_id===null)return;let n=this.nameOf(t.winner_id),r=this.otherId(t.winner_id),i=t.method===`death`,a=i&&r!==null?this.deaths.get(r)??null:null,o=i?a!==null&&ot(a)!==null?`fatality`:`death`:{ko:`knockout`,flash_ko:`knockout`,tko:`technical knockout`,disqualification:`disqualification`,forfeit:`forfeit`}[t.method]??t.method.replaceAll(`_`,` `),s=this.stoppageClock(t.round),c=t.method===`ko`||t.method===`flash_ko`||t.method===`tko`||i,l=c&&s!==null?`${i?`DEAD`:`STOPPED`} AT ${s} OF ROUND ${t.round}`:`ROUND ${t.round}`,u=c&&s!==null?`${n} wins by ${o} at ${s} of round ${t.round}.`:`${n} wins by ${o} in round ${t.round}.`,d=`WINS BY ${o.toUpperCase()}${a===null?``:` · ${st(a)}`}`;this.enqueue(this.announcement(u,{kicker:l,title:n.toUpperCase(),detail:d,corner:this.seatOf(t.winner_id)},jR,100),e,`verdict`,30);let f=i?`${this.nameOf(r)} is dead`:this.refereeDead?`With the referee dead on the canvas, it is over`:`The referee stops the contest`,p=c&&s!==null?`${f} at ${s} of round ${oz(t.round)}. `:``;this.hooks.speak?.([`${p}Your winner, by ${o}... ${n}!`])}replay(e,t=null){let n=t?.kind===`referee_down`?{actor:t.actor_id,target:null,tick:t.tick}:this.lastKnockdown;this.say(`replay`,n?.tick??0,e,{a:this.nameOf(n?.actor??null),b:this.nameOf(n?.target??null)},`replay`,.6,6)}current(e){for(let t=this.queue.length-1;t>=0;--t)this.queue[t].expires<=e&&this.queue.splice(t,1);this.showing!==null&&e>=this.showing.end&&(this.lastEnd=this.showing.end,this.showing=null);let t=null;for(let n of this.queue)n.at>e||(t===null||n.line.priority>t.line.priority||n.line.priority===t.line.priority&&n.at=this.lastEnd+wR:t.line.urgent&&t.line.priority>n.line.priority&&e-n.start>=kR)&&(this.queue.splice(this.queue.indexOf(t),1),this.showing={line:t.line,start:e,end:e+t.line.hold,moment:t.moment,phases:t.phases},t.spoken!==null&&this.hooks.speak?.([t.spoken]))}let n=this.showing;return n===null?null:(this.caption.line=n.line,this.caption.opacity=Math.max(0,Math.min(1,(e-n.start)/TR,(n.end-e)/TR)),this.caption.entering=Math.max(0,1-(e-n.start)/TR),this.caption)}trackClock(e){e.phase===`fight`&&((this.lastPhase===`countdown`||this.lastPhase===`rest`)&&(this.roundLength={round:e.round_number,ticks:e.phase_ticks_remaining+1}),this.fightRemaining=e.phase_ticks_remaining),e.round_number!==this.round&&(this.round=e.round_number,this.tallies.clear())}stoppageClock(e){let t=this.roundLength;if(t===null||t.round!==e)return null;let n=Math.max(0,Math.floor((t.ticks-this.fightRemaining)/this.tickRate));return`${Math.floor(n/60)}:${String(n%60).padStart(2,`0`)}`}introduce(e,t){let n=e.phase_ticks_remaining/this.tickRate;if(n<1.2)return;let r=e.fighters.map(e=>this.nameOf(e.player_id)),i=e.fighters.map((e,t)=>({name:r[t],record:this.players[e.player_id]?.record,style:e.style})),a=pz([i[0],i[1]],n),o=Math.max(1.4,a.length===2?dz(a[0]):n/2),s=[o,Math.max(1.4,n-o)];for(let n of[0,1]){let i=n===0?`blue`:`red`,c=this.players[e.fighters[n].player_id],l=vn(e.fighters[n].style),u=c===void 0?``:`${l===null?``:`${l} · `}${c.record===void 0?``:`${vt(c.record)} · `}${c.cpu===!0?`COMPUTER`:`RATED ${c.rating}`}`;this.enqueue(this.announcement(`In the ${i} corner, ${r[n]}.`,{kicker:`IN THE ${i.toUpperCase()} CORNER`,title:r[n].toUpperCase(),detail:u,corner:n},s[n],97),t+n*o,null,30,QR,a[n]??null)}}consider(e,t,n,r){let i=e.actor_id,a=e.target_id,o=`${e.tick}:${a??i??``}`,s={a:this.nameOf(i),b:this.nameOf(a)};switch(e.kind){case`punch_start`:i!==null&&(this.tally(i).thrown+=1);return;case`hit`:case`counter_hit`:i!==null&&a!==null&&!Jr(e,t.events)&&this.landed(e,i,a,t,r);return;case`stun`:{if(a===null)return;this.notesFor(a).stunnedAt=e.tick;let t=this.fighter(a),n=t!==void 0&&(t.poise=ee-6);this.say(n?`hurtBadly`:`hurt`,e.event_id,r,s,o);return}case`guard_break`:this.say(`guardBreak`,e.event_id,r,s,o);return;case`knockdown`:{if(a===null||(this.lastKnockdown={actor:i,target:a,tick:e.tick},this.notesFor(a).knockedDownAt=e.tick,i!==null&&(this.tally(i).knockdowns+=1),n!==null))return;let c=t.events.some(t=>t.kind===`counter_hit`&&t.tick===e.tick&&t.target_id===a);this.say(e.amount>=2?`knockdownAgain`:e.detail===`body`?`knockdownBody`:c?`knockdownCounter`:`knockdown`,e.event_id,r,s,o);return}case`body_collapse`:this.say(`bodyCollapse`,e.event_id,r,s,o);return;case`parry`:this.say(`parried`,e.event_id,r,s,o,CR,void 0,i);return;case`eye_shut`:if(a===null||e.detail!==`left`&&e.detail!==`right`)return;this.notesFor(a).eyeShut[e.detail===`left`?0:1]=!0,this.say(`eyeShut`,e.event_id,r,{...s,side:e.detail},o);return;case`blind_side`:if(e.detail!==`left`&&e.detail!==`right`)return;this.say(`blindSide`,e.event_id,r,{...s,side:e.detail},null,CR,void 0,i);return;case`corner`:{let t=e.detail===`cut`?`cornerCut`:e.detail===`swelling`?`cornerSwelling`:e.detail===`breath`?`cornerBreath`:null;t!==null&&this.say(t,e.event_id,r,s,null,CR,void 0,i);return}case`count`:e.amount>=6&&this.struggleCalled!==this.lastKnockdown?.tick&&this.fighter(a)?.is_downed===!0&&(this.struggleCalled=this.lastKnockdown?.tick??e.tick,this.say(`struggle`,e.event_id,r,{a:this.nameOf(this.otherId(a)),b:this.nameOf(a)},ZR));return;case`get_up`:{for(let e=this.queue.length-1;e>=0;--e)this.queue[e].moment===ZR&&this.queue.splice(e,1);this.showing?.moment===ZR&&(this.showing.end=Math.min(this.showing.end,r+TR));let t={a:this.nameOf(this.otherId(i)),b:this.nameOf(i),n:oz(e.amount)};this.say(e.amount>=8?`upLate`:`upEarly`,e.event_id,r,t,o),this.say(`finishCall`,e.event_id,r,t,null,3.4,4);return}case`perfect_block`:this.say(`parry`,e.event_id,r,s,o,CR,void 0,i);return;case`evade`:{if(i===null)return;let t=this.notesFor(i);t.evasions=t.evasions.filter(t=>t>e.tick-IR*this.tickRate),t.evasions.push(e.tick),(this.fighter(a)?.action_power===`power`||t.evasions.length>=3)&&this.say(`evade`,e.event_id,r,s,o,CR,void 0,i)&&(t.evasions.length=0);return}case`whiff`:{let t=this.fighter(i);if(t?.action_power!==`power`||t.action===null)return;this.say(`whiff`,e.event_id,r,{...s,punch:_z(`${t.action}:${t.action_target??`head`}`,t)},o,CR,void 0,i);return}case`clinch`:{if(i===null)return;let t=this.fighter(i),n=e.tick-this.notesFor(i).stunnedAt<=3*this.tickRate||t!==void 0&&t.poise<150;this.say(n?`holdingOn`:`clinch`,e.event_id,r,s,o,CR,void 0,i);return}case`referee_break`:this.say(`refBreak`,e.event_id,r,s,null,CR,void 0,`referee`);return;case`referee_hit`:this.say(`refHit`,e.event_id,r,s,o,CR,void 0,i);return;case`referee_down`:this.say(e.action_id===null?`refBledOut`:`refDown`,e.event_id,r,s,o);return;case`clinch_break`:this.say(`noRef`,e.event_id,r,s,null,CR);return;case`taunt`:this.say(`taunt`,e.event_id,r,{a:s.a,b:this.nameOf(this.otherId(i))},o,CR,void 0,i);return;case`foul`:this.say(e.detail===`headbutt`?`headbutt`:`lowBlow`,e.event_id,r,s,o),this.fighter(i)?.warnings===1&&this.say(`warning`,e.event_id,r,s,null,3.6,4);return;case`point_deduction`:this.say(`deduction`,e.event_id,r,s,`deduction:${e.tick}`);return;case`resume`:this.say(`resume`,e.event_id,r,s,null);return;case`box`:this.say(`box`,e.event_id,r,{a:this.nameOf(this.otherId(a)),b:this.nameOf(a)},o);return;case`stance`:this.say(e.detail===`southpaw`?`southpaw`:`orthodox`,e.event_id,r,s,null,CR,void 0,i);return;case`exhausted`:i!==null&&this.tired(i,e.event_id,r);return;case`bell`:e.detail===`round_start`?(this.tallies.clear(),t.round_number>=2&&this.say(`roundStart`,e.event_id,r,{r:t.round_number},null,CR,$R)):e.detail===`round_end`&&this.roundEnded(e,t,n,r);return;case`injury`:{let n=He.find(t=>t===e.detail);if(a===null||n===void 0)return;let i=WR[$e(n)],c={...s,side:Qe(n)??``};!qR.has(i)&&t.events.some(t=>t.kind===`knockdown`&&t.tick===e.tick&&t.target_id===a)?this.sayAt(i,e.event_id,r+YR,c,8):this.say(i,e.event_id,r,c,o),qR.has(i)&&this.say(`ghastly`,e.event_id,r,s,null,3.8,4);return}case`injury_healed`:{let t=He.find(t=>t===e.detail);if(t===void 0||$e(t)!==`shoulder_dislocated`)return;this.sayAt(`shoulderBack`,e.event_id,r+XR,{b:this.nameOf(a??i),side:Qe(t)??``},9);return}case`armless`:this.say(`armless`,e.event_id,r,s,null,CR,void 0,i);return;case`vomit`:this.say(`vomit`,e.event_id,r,{a:this.nameOf(i??a)},o,CR,void 0,i??a);return;case`finish_him`:this.say(`finishHim`,e.event_id,r,s,o,0);return;case`fatality`:{let t=We.find(t=>t===e.detail);t!==void 0&&this.say(GR[t],e.event_id,r,s,o,0);return}case`death`:{let t=at(e.detail);if(t===null||a===null)return;this.deaths.set(a,t);let n={a:this.nameOf(i??this.otherId(a)),b:s.b};this.deaths.size>=2?this.say(`doubleDeath`,e.event_id,r,n,null,.6):t===`bled_out`||t===`brain`||t===`gutted`?this.say(KR[t],e.event_id,r,n,o,0):this.say(`deathFatality`,e.event_id,r,n,null,3.6);return}case`result`:this.resulted(e,r);return;default:return}}landed(e,t,n,r,i){let[a,o]=gz(e.detail),s=this.tally(t);s.landed+=1,s.damage+=e.amount,o===`body`&&(s.body+=1);let c=this.notesFor(t),l=this.notesFor(n);l.run=0,l.unanswered=0,c.run=e.tick-c.runTick<=NR?c.run+1:1,c.runTick=e.tick,c.unanswered+=1,c.window=c.window.filter(t=>t>e.tick-FR*this.tickRate),c.window.push(e.tick);let u=`${e.tick}:${n}`,d=r.fighters.find(e=>e.player_id===t),f={a:this.nameOf(t),b:this.nameOf(n),punch:_z(e.detail,d)},p=d?.action_power===`power`&&d.action===a;if(e.kind===`counter_hit`&&e.amount>=40?this.say(`counter`,e.event_id,i,f,u,CR,void 0,t):(e.amount>=85||p&&o===`head`&&e.amount>=60)&&this.say(`bigShot`,e.event_id,i,f,u,CR,void 0,t),c.unanswered===5?this.say(`unanswered`,e.event_id,i,f,u,CR,void 0,t):c.run===3&&this.say(`combo`,e.event_id,i,f,u,CR,void 0,t),a===`jab`&&(c.jabs=c.jabs.filter(t=>t>e.tick-PR*this.tickRate),c.jabs.push(e.tick),c.jabs.length>=3&&this.say(`jab`,e.event_id,i,f,null,CR,void 0,t)&&(c.jabs.length=0)),o===`body`){let a=this.fighter(n);a!==void 0&&s.body>=5&&a.staminat>e.tick-FR*this.tickRate).length;c.window.length>=7&&m<=2&&c.takeoverRound!==r.round_number&&(c.takeoverRound=r.round_number,this.say(`takeover`,e.event_id,i,f,null,CR,void 0,t)&&this.hooks.cue?.(`chant`))}roundEnded(e,t,n,r){let i=t.round_number;if(n!==null){(n.detail===`decision`||n.detail===`draw`)&&this.say(`finalBell`,e.event_id,r,{},`bell`,CR,$R);return}let a=t.fighters.find(t=>{let n=this.notesFor(t.player_id);return t.stunned_ticks>0||t.poise({id:e.player_id,tally:this.tally(e.player_id)})),[c,l]=o.tally.landed>=s.tally.landed?[o,s]:[s,o];c.tally.thrown+l.tally.thrown>0&&this.sayAt(`summary`,e.event_id,r+2.4,{r:i,a:this.nameOf(c.id),x:c.tally.landed,y:c.tally.thrown,b:this.nameOf(l.id),z:l.tally.landed,w:l.tally.thrown},5);let u=(o.tally.knockdowns-s.tally.knockdowns)*1e3+(o.tally.damage-s.tally.damage)+6*(o.tally.landed-s.tally.landed),d=Math.abs(u)0?o:s;d!==null&&(this.notesFor(d.id).rounds+=1);let f=d===null?null:d===o?s:o,p=d===null||f===null?0:this.notesFor(d.id).rounds-this.notesFor(f.id).rounds,m=d===null?`roundClose`:o.tally.knockdowns===s.tally.knockdowns?i>=2&&p>=2?`pullingAway`:`roundFor`:`roundBig`;this.sayAt(m,e.event_id,r+6.4,{a:this.nameOf(d?.id??null),b:this.nameOf(f?.id??null)},5)}resulted(e,t){let n=UR[e.detail];if(n===void 0||this.resultCalled)return;this.resultCalled=!0;let r=e.actor_id;this.say(n,e.event_id,t,{a:this.nameOf(r),b:this.nameOf(this.otherId(r))},`result`,0)}inspect(e,t){if(e.phase===`fight`)for(let n of e.fighters){let r=this.notesFor(n.player_id),i={a:this.nameOf(this.otherId(n.player_id)),b:this.nameOf(n.player_id)};for(let[a,o]of[[0,`left`],[1,`right`]]){let s=a===0?n.trauma.left_cut:n.trauma.right_cut,c=r.cutMarks[a];c=LR[c]&&(r.cutMarks[a]=LR.filter(e=>s>=e).length,this.say(c===0?`cut`:c===1?`cutWorse`:`cutGushing`,e.tick+a,t,{...i,side:o},null));let l=a===0?n.trauma.left_eye:n.trauma.right_eye;!r.eyeSwelling[a]&&!r.eyeShut[a]&&l>=RR&&(r.eyeSwelling[a]=!0,this.say(`eyeSwelling`,e.tick+a,t,{...i,side:o},null))}let a=n.stamina/Math.max(1,n.maximum_stamina);a=2*this.tickRate&&this.tired(n.player_id,e.tick,t)):a>=BR&&(r.lowSince=null)}}tired(e,t,n){let r=this.notesFor(e);r.tiredRound!==this.round&&(r.tiredRound=this.round,this.say(`tiring`,t,n,{a:this.nameOf(this.otherId(e)),b:this.nameOf(e)},null))}say(e,t,n,r,i,a=CR,o,s){let c=iz[e],l=`${e}:${s??``}`;if(c!==void 0){if(n<(this.cooldowns.get(l)??-1/0))return!1;this.cooldowns.set(l,n+c)}let u=mz(this.choose(e,t),r),d={speaker:rz[e]??`play`,text:u,priority:nz[e],urgent:ez.has(e),hold:Sz(u),card:null},f=qR.has(e);return this.enqueue(d,n+a,i,o??(f?OR:void 0),JR[e]??null,null,f)}sayAt(e,t,n,r,i){let a=mz(this.choose(e,t),r);this.enqueue({speaker:rz[e]??`play`,text:a,priority:nz[e],urgent:ez.has(e),hold:Sz(a),card:null},n,null,i)}announcement(e,t,n,r){return{speaker:`announcer`,text:e,priority:r,urgent:!0,hold:n,card:t}}choose(e,t){let n=HR[e],r=this.refereeDead&&tz.has(e)?n.filter(e=>!/referee/iu.test(e)):n,i=hz(t,e.length*31+e.charCodeAt(0))%r.length;return r.length>1&&this.lastChoice.get(e)===i&&(i=(i+1)%r.length),this.lastChoice.set(e,i),r[i]}enqueue(e,t,n,r,i=null,a=null,o=!1){if(n!==null){if(!o&&this.queue.some(t=>t.moment===n&&t.line.priority>=e.priority)||!o&&this.showing?.moment===n&&this.showing.line.priority>=e.priority)return!1;for(let t=this.queue.length-1;t>=0;--t){let r=this.queue[t];r.moment===n&&!r.big&&r.line.priorityAR){let e=0;for(let t=1;tt.player_id===e)}otherId(e){let t=this.fighters;return t===null||e===null?null:t[0].player_id===e?t[1].player_id:t[1].player_id===e?t[0].player_id:null}seatOf(e){let t=this.fighters?.findIndex(t=>t.player_id===e)??-1;return t===0||t===1?t:null}nameOf(e){if(e===null)return`the fighter`;let t=this.players[e]?.name;if(t!==void 0&&t.trim().length>0)return t.trim();let n=this.seatOf(e);return n===0?`the blue corner`:n===1?`the red corner`:`the fighter`}};function Sz(e){return Math.min(5.2,Math.max(2.2,1.4+e.length*.05))}var Cz={name:`CopyShader`,uniforms:{tDiffuse:{value:null},opacity:{value:1}},vertexShader:` +`,aA=class{root=new fc;uniforms={uCenter:{value:new B},uRadius:{value:0},uOpacity:{value:0},uFlash:{value:0}};material=new Bd({uniforms:this.uniforms,vertexShader:rA,fragmentShader:iA,vertexColors:!0,transparent:!0});framed=[];longs=[];chips=[];sprays=[];pieces=null;boxer=null;mutilation=null;site=null;spot=Pk(`skull`);center=new B;fighter=-1;elapsed=0;held=!1;push=new B;matrix=new Rs;local=new Rs;turn=new ms;from=new B;to=new B;along=new B;across=new B;axis=new B;outward=new B;offset=new B;one=new B(1,1,1);insetCamera=new Vf(30,1,.05,40);canvasSize=new z;clearColor=new V;frameColor=new V;compiled=null;constructor(){this.root.visible=!1,this.root.name=`BoneXray`}get owner(){return this.site===null?-1:this.fighter}get breaking(){return this.site}get snapped(){return this.site!==null&&this.elapsed>=.3}drawInset(e,t,n){if(this.site===null||this.held||this.elapsed<=0)return;let r=e.getSize(this.canvasSize),i=Math.round(Math.min(r.x,r.y)*Ck),a=Math.max(2,Math.round(i*.012)),o=this.fighter===0?Math.round(i*.08):r.x-i-Math.round(i*.08),s=r.y-i-Math.round(r.y*(r.y>r.x?Tk:wk)),c=this.uniforms.uCenter.value,l=this.insetCamera,u=l.position.subVectors(n.position,c).setY(0).normalize();u.addScaledVector(this.push,-u.dot(this.push)),u.lengthSq()<.12&&u.set(-this.push.z,0,this.push.x),u.normalize().addScaledVector(this.outward,.4).setY(0).normalize(),l.position.multiplyScalar(this.spot.joint===void 0&&this.spot.radius<15?Ek:Dk).add(c),l.position.y+=.12,l.lookAt(c);let d=e.getClearAlpha(),f=e.shadowMap.autoUpdate;e.getClearColor(this.clearColor),e.shadowMap.autoUpdate=!1,e.setScissorTest(!0);let p=this.uniforms.uFlash.value;e.setClearColor(this.frameColor.copy(Ok).lerp(kk,Math.min(1,p*2)),1),e.setScissor(o-a,s-a,i+a*2,i+a*2),e.clear(!0,!0,!1),e.setClearColor(Ak,1),e.setScissor(o,s,i,i),e.setViewport(o,s,i,i),e.render(t,l),e.setScissorTest(!1),e.setViewport(0,0,r.x,r.y),e.setClearColor(this.clearColor,d),e.shadowMap.autoUpdate=f}start(e,t,n,r,i,a,o=!1){this.stop(),this.prepare(t),this.fighter=e,this.boxer=t,this.mutilation=n,this.site=r,this.spot=Pk(r),this.center.set(this.spot.center[0],this.spot.center[1],this.spot.center[2]);let s=bO(t,`body`),c=this.spot.joint===void 0||s===null?-1:s.skeleton.bones.indexOf(t.rig.bones[this.spot.joint]);c>=0&&this.center.setFromMatrixPosition(this.matrix.multiplyMatrices(s.skeleton.boneInverses[c],s.bindMatrix).invert()),this.elapsed=o?bk*.5:0,this.held=o,this.push.set(i,0,a),this.push.lengthSq()<1e-6&&this.push.set(1,0,0),this.push.normalize();let l=r.length*7+3,u=()=>(l=l*16807%2147483647,l/2147483647);for(let e of this.sprays)e.set(this.push.x*.9+u()*1.6-.8,u()*1.5-.2,this.push.z*.9+u()*1.6-.8).multiplyScalar(.5+u()*.9);this.root.visible=!0}stop(){this.site!==null&&(this.boxer?.headInjury.setXray(0,0,0,0,0),this.boxer?.bodyInjury.setXray(0,0,0,0,0),this.site=null,this.boxer=null,this.mutilation=null,this.root.visible=!1)}update(e){let{site:t,boxer:n,mutilation:r,pieces:i}=this;if(t===null||n===null||r===null||i===null)return;this.held||(this.elapsed+=e);let a=this.elapsed;if(a>=1.35||!r.anchor(this.spot.anchor,this.uniforms.uCenter.value,this.outward)){this.stop();return}this.spot.joint!==void 0&&n.rig.bones[this.spot.joint].getWorldPosition(this.uniforms.uCenter.value);let o=a-yk,s=o<0?0:1-Math.exp(-o*20),c=o<0||this.held?0:Math.exp(-o*11),l=Math.min(1,a/xk,(bk-a)/Sk),u=this.spot,d=this.center,f=1/n.rig.metrics.unitsPerMeter,p=this.held?1e3:u.radius*(1+jk*c);n.headInjury.setXray(d.x,d.y,d.z,p,l),n.bodyInjury.setXray(d.x,d.y,d.z,p,l),this.uniforms.uRadius.value=p*f*1.1,this.uniforms.uOpacity.value=l,this.uniforms.uFlash.value=c*.55;let m=+!!t.endsWith(`_right`),h=m===1?-1:1;for(let e of this.framed)e.mesh.visible=r.skinMatrix(e.skin,e.bone,e.mesh.matrix),e.mesh.matrixWorldNeedsUpdate=!0;let g=(e,t,n,r,i)=>{this.turn.setFromAxisAngle(this.axis.set(n[0],n[1],n[2]),r),this.local.compose(this.offset.set(t[0]+i[0],t[1]+i[1],t[2]+i[2]),this.turn,this.one),e.matrix.multiply(this.local).multiply(this.matrix.makeTranslation(-t[0],-t[1],-t[2]))};i.plate.visible&&=t===`skull`&&s>0,t===`jaw`?(g(i.jaw[0],[0,111.7,3.9],[0,1,0],.3*s,[.9*s,-.7*s,0]),g(i.jaw[1],[-5,116.8,-2.1],[0,0,1],-.16*s,[.5*s,0,0])):t===`nose`?g(i.nasal,[0,120.4,3.6],[0,0,1],.7*s,[.5*s,-.2*s,-.5*s]):t.startsWith(`ribs`)&&g(i.ribsFront[m],[h*11.2,96,-1.2],[0,1,0],-h*.5*s,[-h*.9*s,0,0]);let _=n.rig.bones;for(let e of this.longs){_[e.from].getWorldPosition(this.from),_[e.to].getWorldPosition(this.to);let n=e.mesh===i.humerus[m]&&(t.startsWith(`arm`)||t.startsWith(`shoulder`))||e.mesh===i.shin[m]&&t.startsWith(`knee`);e.mesh.visible=!0,n&&t.startsWith(`arm`)?(e.mesh.visible=!1,this.along.subVectors(this.to,this.from),this.across.crossVectors(this.along,this.push).normalize(),this.across.lengthSq()<.5&&this.across.set(0,1,0),this.span(i.stump,this.from,this.to,e.length,f),this.to.copy(this.from).addScaledVector(this.along,.62),this.offset.crossVectors(this.across,this.along).normalize(),i.shard.position.copy(this.to).addScaledVector(this.offset,.022*s),this.turn.setFromAxisAngle(this.across,.75*s),i.shard.quaternion.copy(i.stump.quaternion).premultiply(this.turn),i.shard.scale.copy(i.stump.scale)):(n&&t.startsWith(`shoulder`)&&(this.from.addScaledVector(this.push,.035*s).y-=.04*s),n&&t.startsWith(`knee`)&&this.from.addScaledVector(this.outward,.05*s),this.span(e.mesh,this.from,this.to,e.length,f))}let v=t.startsWith(`arm`);i.stump.visible=v,i.shard.visible=v;let y=this.uniforms.uCenter.value;for(let[e,t]of this.chips.entries()){if(t.visible=o>0,o<=0)continue;let n=this.sprays[e];t.position.copy(y).addScaledVector(n,o*.55),t.position.y-=1.6*o*o,t.rotation.set(o*9+e,o*7,e),t.scale.setScalar((e{let t=new H(e,this.material);return t.frustumCulled=!1,t.renderOrder=40,this.root.add(t),t},n=(e,n,r)=>{let i=t(e);return i.matrixAutoUpdate=!1,this.framed.push({mesh:i,skin:n,bone:r}),i},r=e.rig.metrics,i=r.unitsPerMeter,a=(e,n,r,i)=>{let a=t(e);return this.longs.push({mesh:a,from:n,to:r,length:i}),a};n(Qk(),`head`,`head`);let o=n(eA(),`head`,`head`),s=n(Kk([0,120.4,3.6],[0,118.3,5],.55,Fk,.5),`head`,`head`),c=[n($k(1),`head`,`head`),n($k(-1),`head`,`head`)];n(tA(108.5,116.5,-3.4),`body`,`neck`),n(tA(88,108,-6.2),`body`,`chest`),n(tA(76,87.5,-3.6),`body`,`spine`),n(nA(),`body`,`hips`),n(qk([Bk(new Wu(2.2,10.5,.9).translate(0,99,4.3),Fk),Kk([1.4,106.4,2.8],[13.6,105.2,-3.4],.55),Kk([-1.4,106.4,2.8],[-13.6,105.2,-3.4],.55),Vk([11,101,-7.6],[3.6,4.6,.7]),Vk([-11,101,-7.6],[3.6,4.6,.7])]),`body`,`chest`),n(Xk(1,!1),`body`,`chest`),n(Xk(-1,!1),`body`,`chest`);let l=[n(Xk(1,!0),`body`,`chest`),n(Xk(-1,!0),`body`,`chest`)],u=r.armL.upper*i,d=r.armL.lower*i,f=r.legL.upper*i,p=r.legL.lower*i,m=Jk(u,.95,1.5),h=Jk(d,.62,1.15,.9),g=Jk(f,1.25,2),_=Jk(p,1.05,1.75,1.5),v=Kk([0,0,0],[0,10,0],.9,Fk,.6),y=[a(m,`shoulderL`,`elbowL`,u),a(m,`shoulderR`,`elbowR`,u)];a(h,`elbowL`,`gloveL`,d),a(h,`elbowR`,`gloveR`,d),a(g,`hipL`,`kneeL`,f),a(g,`hipR`,`kneeR`,f);let b=[a(_,`kneeL`,`ankleL`,p),a(_,`kneeR`,`ankleR`,p)];a(v,`ankleL`,`toeL`,10),a(v,`ankleR`,`toeR`,10);let x=u*.62,S=t(qk([Kk([0,0,0],[0,x,0],.95,Fk,.85),Vk([0,0,0],1.5),Kk([0,x,0],[.5,x+1.6,.2],.7,Fk,.1),Vk([0,x,0],.6,Rk)])),C=t(qk([Kk([0,.4,0],[0,u-x,0],.85),Vk([0,u-x,0],1.3),Kk([0,.6,0],[-.4,-1.5,-.3],.7,Fk,.1),Vk([0,.5,0],.55,Rk)])),w=Bk(new kd(1),Fk),T=Bk(new Cd(1,1),Rk);for(let e=0;e<14;e+=1)this.chips.push(t(e{let e=this.context;e!==null&&e.state!==`running`&&e.resume().catch(()=>void 0),this.unlock().catch(()=>void 0)};visibility=()=>{let e=this.context;if(e===null)return;let t=document.hidden?e.suspend():this.unlocked?e.resume():null;t!==null&&t.catch(()=>void 0)};constructor(e){this.settings=e;for(let e of xA)window.addEventListener(e,this.unlockListener);document.addEventListener(`visibilitychange`,this.visibility)}unlock(){return this.destroyed||this.unlocked?Promise.resolve():(this.unlockPromise===null&&(this.unlockPromise=this.performUnlock().finally(()=>{this.unlockPromise=null})),this.unlockPromise)}async performUnlock(){let e=this.context;if(e===null){e=new AudioContext;let t=e.createGain();t.gain.value=Math.min(.8,Math.max(0,this.settings().volume));let n=e.createBiquadFilter();n.type=`lowpass`,n.frequency.value=yA,n.Q.value=.7,t.connect(n).connect(e.destination),this.context=e,this.master=t,this.muffle=n}if(e.state===`suspended`&&await e.resume(),this.destroyed||this.context!==e)return;let t=await this.decodeInjuryBuffers(e);if(!(this.destroyed||this.context!==e)){this.injuryBuffers=t,this.unlocked=!0;for(let e of xA)window.removeEventListener(e,this.unlockListener);this.crowdStarted||(this.crowdStarted=!0,this.crowdBed())}}setVolume(){this.master!==null&&(this.master.gain.value=Math.min(.8,Math.max(0,this.settings().volume)))}event(e,t=!1){if(this.unlocked)switch(e.kind){case`punch_start`:this.whoosh(e.detail.split(`:`)[1]??`jab`,t);break;case`whiff`:this.noise({duration:.11,frequency:850,sweepTo:320,gain:.07,type:`bandpass`,q:1.1});break;case`hit`:case`counter_hit`:{let n=e.detail.endsWith(`body`),r=Math.min(1,e.amount/260),i=Math.min(.36,.14+r*.2)*(e.kind===`counter_hit`?1.25:1);this.impact(i,n,r,t),(e.kind===`counter_hit`||r>.7||t)&&this.crowdSwell(.35+r*.4),(e.kind===`counter_hit`&&e.amount>=50||e.amount>=90)&&this.ooh(Math.min(1,e.amount/160));break}case`referee_hit`:{let t=Math.min(1,e.amount/260);this.impact(Math.min(.36,.16+t*.2),e.detail.endsWith(`body`),t),this.ooh(.7+t*.3),this.crowdSwell(.5+t*.3);break}case`referee_down`:this.impact(.36,!1,1),this.crowdRoar(1),this.ooh(1);break;case`block`:this.noise({duration:.045,frequency:1200,sweepTo:600,gain:.14,type:`bandpass`,q:1.1}),this.noise({duration:.09,frequency:260,gain:.08}),this.tone({from:160,to:110,duration:.06,type:`triangle`,gain:.05}),t&&this.tone({from:96,to:44,duration:.2,type:`sine`,gain:.2});break;case`perfect_block`:this.noise({duration:.05,frequency:1800,sweepTo:900,gain:.16,type:`bandpass`,q:1.6}),this.tone({from:280,to:210,duration:.06,type:`triangle`,gain:.06});break;case`guard_break`:this.impact(.3,!1,.9),this.tone({from:230,to:78,duration:.2,type:`sawtooth`,gain:.08}),this.crowdSwell(.5),this.ooh(.6);break;case`stun`:this.tone({from:96,to:74,duration:.22,type:`sine`,gain:.1}),this.crowdSwell(.3);break;case`parry`:this.noise({duration:.06,frequency:2400,sweepTo:1100,gain:.18,type:`bandpass`,q:1.8}),this.tone({from:330,to:180,duration:.09,type:`triangle`,gain:.07}),this.crowdSwell(.35);break;case`body_collapse`:this.tone({from:118,to:52,duration:.42,type:`sine`,gain:.16}),this.noise({duration:.26,frequency:420,sweepTo:180,gain:.05,type:`bandpass`,q:.9}),this.crowdSwell(.6);break;case`eye_shut`:this.crowdSwell(.25);break;case`corner`:this.noise({duration:.22,frequency:2600,sweepTo:1500,gain:.05,type:`bandpass`,q:.8});break;case`knockdown`:this.impact(.34,!1,1),this.tone({from:60,to:28,duration:.42,type:`sine`,gain:.3}),this.noise({duration:.3,frequency:140,gain:.24}),this.crowdRoar(1),this.hush();break;case`bell`:{let t=e.detail===`round_start`?3:1;for(let e=0;e10*r||this.clapperRound===t||(this.clapperRound=t,!this.unlocked))return;this.noise({duration:.05,frequency:2600,gain:.42,type:`bandpass`,q:1.4}),this.noise({duration:.09,frequency:700,gain:.18,type:`bandpass`,q:.8});let i=window.setTimeout(()=>{this.timers.delete(i),this.noise({duration:.05,frequency:2400,gain:.4,type:`bandpass`,q:1.4}),this.noise({duration:.09,frequency:660,gain:.16,type:`bandpass`,q:.8})},120);this.timers.add(i)}getUpBeat(){this.tone({from:1320,duration:.05,type:`square`,gain:.07})}getUpVerdict(e){e===`perfect`?(this.tone({from:880,to:1760,duration:.12,type:`triangle`,gain:.11}),this.tone({from:1760,duration:.1,type:`triangle`,gain:.08,delay:.07})):e===`good`?this.tone({from:660,to:990,duration:.1,type:`triangle`,gain:.09}):e===`wrong`?this.tone({from:140,duration:.16,type:`sawtooth`,gain:.09}):this.tone({from:260,duration:.09,type:`sine`,gain:.07})}chant(){let e=this.context;if(!(!this.unlocked||e===null||e.currentTime-this.lastChantAtthis.murmurLevel;this.murmurLevel=r,n.gain.setTargetAtTime(r*_A,t.currentTime,i?.3:.8)}rocked(e,t){this.follow(t);let n=this.context,r=this.muffle;if(!this.unlocked||n===null||r===null)return;let i=Math.max(0,Math.min(1,e));if(Math.abs(i-this.rockedLevel)>=.02||i===0&&this.rockedLevel!==0){let e=i>this.rockedLevel;this.rockedLevel=i,r.frequency.setTargetAtTime(yA*(bA/yA)**+i,n.currentTime,e?.05:.9)}i>.15&&t-this.lastRockedBeat>=CA(i)&&(this.lastRockedBeat=t,this.tone({from:58,to:40,duration:.12,type:`sine`,gain:.09+i*.08}),this.tone({from:50,to:36,duration:.14,type:`sine`,gain:.07+i*.06,delay:.16}))}snapshot(e,t,n,r){if(this.follow(e),!this.unlocked)return;let i=1-t/Math.max(1,n);i>.55&&e-this.lastBreathTick>=75&&(this.lastBreathTick=e,this.noise({duration:.18,frequency:420,gain:.045+i*.04})),(i>.72||r>500)&&this.rockedLevel<=.15&&e-this.lastHeartbeatTick>=24&&(this.lastHeartbeatTick=e,this.tone({from:52,duration:.09,type:`sine`,gain:.055}))}result(e){if(this.openMuffle(),!this.unlocked)return;this.crowdSwell(1),this.tone({from:e.winner_id===null?280:520,duration:.45,type:`triangle`,gain:.18});let t=window.setTimeout(()=>{this.timers.delete(t),this.tone({from:650,duration:.5,type:`triangle`,gain:.14})},160);this.timers.add(t)}injury(e){let t=this.context,n=this.master,r=this.injuryBuffers.get(oA[e]??e),i=this.settings();if(!this.unlocked||t===null||n===null||i.blood!==`full`||i.reducedMotion||(this.tearing(),r===void 0))return;let a=t.createBufferSource(),o=t.createGain();a.buffer=r,o.gain.value=.2,a.connect(o).connect(n),a.start()}tearing(){this.noise({duration:.09,frequency:2600,sweepTo:700,gain:.22,type:`bandpass`,q:1.6}),this.noise({duration:.4,frequency:900,sweepTo:150,gain:.28,type:`lowpass`,q:6,offset:.35});for(let[e,t]of[.3,.9,1.5].entries())this.noise({duration:.2,frequency:480-e*60,sweepTo:170,gain:.13-e*.03,type:`bandpass`,q:4,delay:t,offset:.2+t})}gore(e){let t=this.settings();if(!this.unlocked||t.volume<=0)return;let n=t.blood===`full`&&!t.reducedMotion;switch(e.kind){case`injury`:{let t=sA[st(e.injury)];n?(this.wound(t,0),t===`crack`&&this.xray()):this.impact(.3,!1,.9),this.ooh(1),this.crowdSwell(.8),t!==`crack`&&this.crowdVoice({...pA,delay:.45});break}case`vomit`:n&&this.retch(),this.crowdVoice({...pA,gain:.09,delay:.5});break;case`finish_him`:this.omen(),this.crowdRoar(1);break;case`fatality`:this.sting(),n&&cA[e.fatality].forEach((e,t)=>this.wound(e,t*.2)),this.crowdRoar(1),this.ooh(1);break;case`death`:mt(e.cause)===null?(this.flatline(0),this.hush(!0)):this.flatline(dA)}}wound(e,t){e===`crack`?this.crack(t):e===`rip`?this.rip(t):e===`squelch`?this.squelch(t):this.chop(t)}xray(){this.tone({from:90,to:440,duration:yk,type:`sine`,gain:.1,delay:0}),this.crack(yk),this.noise({duration:.16,frequency:520,sweepTo:170,gain:.2,type:`lowpass`,q:4,delay:yk+.03,offset:.3})}crack(e){this.noise({duration:.03,frequency:3400,sweepTo:1800,gain:.34,type:`bandpass`,q:2.2,delay:e}),this.tone({from:190,to:70,duration:.09,type:`triangle`,gain:.22,delay:e});for(let[t,n]of uA.entries())this.noise({duration:.018,frequency:2800-t*260,gain:.2-t*.03,type:`highpass`,q:1.4,delay:e+n,offset:.17*(t+1)})}rip(e){this.noise({duration:.5,frequency:420,sweepTo:2600,gain:.3,type:`bandpass`,q:3.2,delay:e,offset:.4}),this.noise({duration:.45,frequency:180,sweepTo:520,gain:.2,type:`lowpass`,q:5,delay:e+.03,offset:.7});for(let t=0;t<6;t+=1)this.noise({duration:.035,frequency:900+t*280,gain:.16,type:`bandpass`,q:6,delay:e+.05+t*.07,offset:.09*t});this.noise({duration:.12,frequency:700,sweepTo:160,gain:.24,type:`lowpass`,q:4,delay:e+.52,offset:.55})}squelch(e){this.noise({duration:.3,frequency:1100,sweepTo:140,gain:.32,type:`lowpass`,q:9,delay:e,offset:.25}),this.noise({duration:.22,frequency:300,sweepTo:900,gain:.18,type:`bandpass`,q:7,delay:e+.1,offset:.6}),this.tone({from:150,to:60,duration:.12,type:`sine`,gain:.16,delay:e}),this.spatter(e+.25)}spatter(e){for(let[t,n]of lA.entries())this.noise({duration:.03,frequency:1500+t%3*600,sweepTo:500,gain:.14-t*.012,type:`bandpass`,q:3,delay:e+n,offset:.13*t})}chop(e){this.tone({from:120,to:38,duration:.2,type:`sine`,gain:.32,delay:e}),this.noise({duration:.05,frequency:2200,sweepTo:500,gain:.3,type:`bandpass`,q:1.2,delay:e}),this.noise({duration:.16,frequency:600,sweepTo:150,gain:.26,type:`lowpass`,q:5,delay:e+.02,offset:.3});for(let[t,n]of[.3,.75,1.2,1.65].entries())this.noise({duration:.22,frequency:520-t*60,sweepTo:170,gain:.15-t*.03,type:`bandpass`,q:4,delay:e+n,offset:.2+n})}retch(){for(let[e,t]of[0,.45].entries())this.tone({from:150-e*25,to:80,duration:.3,type:`sawtooth`,gain:.09,delay:t}),this.crowdVoice({duration:.36,first:[650,360],second:[1150,780],gain:.22,delay:t});this.noise({duration:.45,frequency:2400,sweepTo:300,gain:.24,type:`lowpass`,q:3,delay:.9,offset:.5}),this.spatter(1.05)}drum(e){this.tone({from:95,to:30,duration:.7,type:`sine`,gain:.35,delay:e}),this.noise({duration:.2,frequency:160,gain:.3,delay:e}),this.noise({duration:.03,frequency:1800,sweepTo:600,gain:.18,type:`bandpass`,q:1,delay:e})}omen(){this.drum(0),this.held({frequency:27.5,duration:1.4,gain:.3,attack:1.1,type:`sine`,delay:.1}),this.held({frequency:55,duration:1.4,gain:.12,attack:1.2,type:`sawtooth`,delay:.1}),this.held({frequency:58.3,duration:1.4,gain:.1,attack:1.2,type:`sawtooth`,delay:.1}),this.drum(1.5)}sting(){this.drum(0);for(let[e,t]of[196,185,147,110].entries())this.tone({from:t,to:t*.97,duration:.5,type:`sawtooth`,gain:.14,delay:e*.2}),this.tone({from:t/2,duration:.5,type:`square`,gain:.1,delay:e*.2});this.tone({from:73.4,to:69,duration:1.4,type:`sawtooth`,gain:.2,delay:.8}),this.tone({from:36.7,to:34.5,duration:1.4,type:`sine`,gain:.32,delay:.8}),this.drum(.8)}flatline(e){for(let t of[0,.38])this.held({frequency:880,duration:.09,gain:.1,attack:.005,type:`sine`,delay:e+t});this.held({frequency:880,duration:2.6,gain:.1,attack:.01,type:`sine`,delay:e+.76})}held(e){let t=this.context,n=this.master;if(t===null||n===null)return;let r=t.currentTime+(e.delay??0),i=Math.min(3,e.duration),a=Math.min(.35,e.gain),o=t.createOscillator(),s=t.createGain();o.type=e.type,o.frequency.setValueAtTime(Math.max(20,e.frequency),r),s.gain.setValueAtTime(1e-4,r),s.gain.exponentialRampToValueAtTime(a,r+Math.min(i-.03,e.attack)),s.gain.setValueAtTime(a,r+i-.03),s.gain.exponentialRampToValueAtTime(1e-4,r+i),o.connect(s).connect(n),o.start(r),o.stop(r+i+.03)}async decodeInjuryBuffers(e){let t=await Promise.all(Yi.map(async t=>{let n=atob(t.wav),r=new Uint8Array(n.length);for(let e=0;evoid 0)}},TA=class extends Error{code;reloadRequired;name=`ClientError`;constructor(e,t=!1){super(e),this.code=e,this.reloadRequired=t}};async function EA(e,t){if(!e.ok)throw new TA(e.status===429?`rate_limited`:t);if(!(e.headers.get(`content-type`)??``).toLowerCase().startsWith(`application/json`))throw new TA(t);try{return jt(await e.text())}catch{throw new TA(t)}}function DA(e=window.location.search){let t=new URLSearchParams(e).getAll(`instance_id`);if(t.length!==1||!/^[A-Za-z0-9_-]{1,255}$/u.test(t[0]??``))throw new TA(`invalid_launch`);return t[0]}function OA(e){if(typeof e==`object`&&e&&`protocol`in e&&e.protocol!==7)throw new TA(`client_outdated`,!0)}async function kA(e,t){let n=new URL(`/api/hands/bootstrap`,window.location.origin);try{let r=await EA(await fetch(n,{method:`POST`,credentials:`same-origin`,cache:`no-store`,headers:{"Content-Type":`application/json`},body:JSON.stringify({instance_id:e}),...t===void 0?{}:{signal:t}}),`bootstrap_failed`);return OA(r),xn(r)}catch(e){throw e instanceof TA?e:e instanceof Dt?new TA(`invalid_bootstrap`):new TA(`bootstrap_failed`)}}async function AA(e,t,n){try{return Sn(await EA(await fetch(new URL(`/api/hands/token`,window.location.origin),{method:`POST`,credentials:`same-origin`,cache:`no-store`,headers:{"Content-Type":`application/json`},body:JSON.stringify({code:e,state:t}),...n===void 0?{}:{signal:n}}),`token_failed`))}catch(e){throw e instanceof TA?e:e instanceof Dt?new TA(`invalid_token_response`):new TA(`token_failed`)}}function jA(e){return e instanceof TA?e.code:e instanceof Dt?`protocol_error`:`unexpected_error`}var MA=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function NA(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var PA={exports:{}},FA;function IA(){return FA||(FA=1,(function(e){var t=Object.prototype.hasOwnProperty,n=`~`;function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(e,t,r,a,o){if(typeof r!=`function`)throw TypeError(`The listener must be a function`);var s=new i(r,a||e,o),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function o(e,t){--e._eventsCount===0?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var e=[],r,i;if(this._eventsCount===0)return e;for(i in r=this._events)t.call(r,i)&&e.push(n?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(r)):e},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,a=r.length,o=Array(a);ie;function t(e){}e.assertIs=t;function n(e){throw Error()}e.assertNever=n,e.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},e.getValidEnumValues=t=>{let n=e.objectKeys(t).filter(e=>typeof t[t[e]]!=`number`),r={};for(let e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys=typeof Object.keys==`function`?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(let n of e)if(t(n))return n},e.isInteger=typeof Number.isInteger==`function`?e=>Number.isInteger(e):e=>typeof e==`number`&&isFinite(e)&&Math.floor(e)===e;function r(e,t=` | `){return e.map(e=>typeof e==`string`?`'${e}'`:e).join(t)}e.joinValues=r,e.jsonStringifyReplacer=(e,t)=>typeof t==`bigint`?t.toString():t})(RA||={});var zA;(function(e){e.mergeShapes=(e,t)=>({...e,...t})})(zA||={});var K=RA.arrayToEnum([`string`,`nan`,`number`,`integer`,`float`,`boolean`,`date`,`bigint`,`symbol`,`function`,`undefined`,`null`,`array`,`object`,`unknown`,`promise`,`void`,`never`,`map`,`set`]),BA=e=>{switch(typeof e){case`undefined`:return K.undefined;case`string`:return K.string;case`number`:return isNaN(e)?K.nan:K.number;case`boolean`:return K.boolean;case`function`:return K.function;case`bigint`:return K.bigint;case`symbol`:return K.symbol;case`object`:return Array.isArray(e)?K.array:e===null?K.null:e.then&&typeof e.then==`function`&&e.catch&&typeof e.catch==`function`?K.promise:typeof Map<`u`&&e instanceof Map?K.map:typeof Set<`u`&&e instanceof Set?K.set:typeof Date<`u`&&e instanceof Date?K.date:K.object;default:return K.unknown}},q=RA.arrayToEnum([`invalid_type`,`invalid_literal`,`custom`,`invalid_union`,`invalid_union_discriminator`,`invalid_enum_value`,`unrecognized_keys`,`invalid_arguments`,`invalid_return_type`,`invalid_date`,`invalid_string`,`too_small`,`too_big`,`invalid_intersection_types`,`not_multiple_of`,`not_finite`]),VA=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,`$1:`),HA=class e extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name=`ZodError`,this.issues=e}get errors(){return this.issues}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`)i.unionErrors.map(r);else if(i.code===`invalid_return_type`)r(i.returnTypeError);else if(i.code===`invalid_arguments`)r(i.argumentsError);else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;re.message){let t={},n=[];for(let r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}};HA.create=e=>new HA(e);var UA=(e,t)=>{let n;switch(e.code){case q.invalid_type:n=e.received===K.undefined?`Required`:`Expected ${e.expected}, received ${e.received}`;break;case q.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,RA.jsonStringifyReplacer)}`;break;case q.unrecognized_keys:n=`Unrecognized key(s) in object: ${RA.joinValues(e.keys,`, `)}`;break;case q.invalid_union:n=`Invalid input`;break;case q.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${RA.joinValues(e.options)}`;break;case q.invalid_enum_value:n=`Invalid enum value. Expected ${RA.joinValues(e.options)}, received '${e.received}'`;break;case q.invalid_arguments:n=`Invalid function arguments`;break;case q.invalid_return_type:n=`Invalid function return type`;break;case q.invalid_date:n=`Invalid date`;break;case q.invalid_string:typeof e.validation==`object`?`includes`in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position==`number`&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):`startsWith`in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:`endsWith`in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:RA.assertNever(e.validation):n=e.validation===`regex`?`Invalid`:`Invalid ${e.validation}`;break;case q.too_small:n=e.type===`array`?`Array must contain ${e.exact?`exactly`:e.inclusive?`at least`:`more than`} ${e.minimum} element(s)`:e.type===`string`?`String must contain ${e.exact?`exactly`:e.inclusive?`at least`:`over`} ${e.minimum} character(s)`:e.type===`number`?`Number must be ${e.exact?`exactly equal to `:e.inclusive?`greater than or equal to `:`greater than `}${e.minimum}`:e.type===`date`?`Date must be ${e.exact?`exactly equal to `:e.inclusive?`greater than or equal to `:`greater than `}${new Date(Number(e.minimum))}`:`Invalid input`;break;case q.too_big:n=e.type===`array`?`Array must contain ${e.exact?`exactly`:e.inclusive?`at most`:`less than`} ${e.maximum} element(s)`:e.type===`string`?`String must contain ${e.exact?`exactly`:e.inclusive?`at most`:`under`} ${e.maximum} character(s)`:e.type===`number`?`Number must be ${e.exact?`exactly`:e.inclusive?`less than or equal to`:`less than`} ${e.maximum}`:e.type===`bigint`?`BigInt must be ${e.exact?`exactly`:e.inclusive?`less than or equal to`:`less than`} ${e.maximum}`:e.type===`date`?`Date must be ${e.exact?`exactly`:e.inclusive?`smaller than or equal to`:`smaller than`} ${new Date(Number(e.maximum))}`:`Invalid input`;break;case q.custom:n=`Invalid input`;break;case q.invalid_intersection_types:n=`Intersection results could not be merged`;break;case q.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case q.not_finite:n=`Number must be finite`;break;default:n=t.defaultError,RA.assertNever(e)}return{message:n}},WA=UA;function GA(e){WA=e}function KA(){return WA}var qA=e=>{let{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a};if(i.message!==void 0)return{...i,path:a,message:i.message};let s=``,c=r.filter(e=>!!e).slice().reverse();for(let e of c)s=e(o,{data:t,defaultError:s}).message;return{...i,path:a,message:s}},JA=[];function J(e,t){let n=KA(),r=qA({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===UA?void 0:UA].filter(e=>!!e)});e.common.issues.push(r)}var YA=class e{constructor(){this.value=`valid`}dirty(){this.value===`valid`&&(this.value=`dirty`)}abort(){this.value!==`aborted`&&(this.value=`aborted`)}static mergeArray(e,t){let n=[];for(let r of t){if(r.status===`aborted`)return XA;r.status===`dirty`&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(t,n){let r=[];for(let e of n){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return e.mergeObjectSync(t,r)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:t,value:i}=r;if(t.status===`aborted`||i.status===`aborted`)return XA;t.status===`dirty`&&e.dirty(),i.status===`dirty`&&e.dirty(),t.value!==`__proto__`&&(i.value!==void 0||r.alwaysSet)&&(n[t.value]=i.value)}return{status:e.value,value:n}}},XA=Object.freeze({status:`aborted`}),ZA=e=>({status:`dirty`,value:e}),QA=e=>({status:`valid`,value:e}),$A=e=>e.status===`aborted`,ej=e=>e.status===`dirty`,tj=e=>e.status===`valid`,nj=e=>typeof Promise<`u`&&e instanceof Promise;function rj(e,t,n,r){if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return t.get(e)}function ij(e,t,n,r,i){if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return t.set(e,n),n}var aj;(function(e){e.errToObj=e=>typeof e==`string`?{message:e}:e||{},e.toString=e=>typeof e==`string`?e:e?.message})(aj||={});var oj,sj,cj=class{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},lj=(e,t)=>{if(tj(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error(`Validation failed but no issues detected.`);return{success:!1,get error(){if(this._error)return this._error;let t=new HA(e.common.issues);return this._error=t,this._error}}};function uj(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:a}=e;return t.code===`invalid_enum_value`?{message:a??i.defaultError}:i.data===void 0?{message:a??r??i.defaultError}:t.code===`invalid_type`?{message:a??n??i.defaultError}:{message:i.defaultError}},description:i}}var dj=class{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return BA(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:BA(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new YA,ctx:{common:e.parent.common,data:e.data,parsedType:BA(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(nj(t))throw Error(`Synchronous parse encountered promise.`);return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){let n={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:BA(e)};return lj(n,this._parseSync({data:e,path:n.path,parent:n}))}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:BA(e)},r=this._parse({data:e,path:n.path,parent:n});return lj(n,await(nj(r)?r:Promise.resolve(r)))}refine(e,t){let n=e=>typeof t==`string`||t===void 0?{message:t}:typeof t==`function`?t(e):t;return this._refinement((t,r)=>{let i=e(t),a=()=>r.addIssue({code:q.custom,...n(t)});return typeof Promise<`u`&&i instanceof Promise?i.then(e=>e?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(e,t){return this._refinement((n,r)=>e(n)?!0:(r.addIssue(typeof t==`function`?t(n,r):t),!1))}_refinement(e){return new cM({schema:this,typeName:bM.ZodEffects,effect:{type:`refinement`,refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return lM.create(this,this._def)}nullable(){return uM.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Uj.create(this,this._def)}promise(){return sM.create(this,this._def)}or(e){return Kj.create([this,e],this._def)}and(e){return Xj.create(this,e,this._def)}transform(e){return new cM({...uj(this._def),schema:this,typeName:bM.ZodEffects,effect:{type:`transform`,transform:e}})}default(e){let t=typeof e==`function`?e:()=>e;return new dM({...uj(this._def),innerType:this,defaultValue:t,typeName:bM.ZodDefault})}brand(){return new hM({typeName:bM.ZodBranded,type:this,...uj(this._def)})}catch(e){let t=typeof e==`function`?e:()=>e;return new fM({...uj(this._def),innerType:this,catchValue:t,typeName:bM.ZodCatch})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}pipe(e){return gM.create(this,e)}readonly(){return _M.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},fj=/^c[^\s-]{8,}$/i,pj=/^[0-9a-z]+$/,mj=/^[0-9A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A-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,wj=`((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`,Tj=RegExp(`^${wj}$`);function Ej(e){let t=`([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d`;return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision??(t=`${t}(\\.\\d+)?`),t}function Dj(e){return RegExp(`^${Ej(e)}$`)}function Oj(e){let t=`${wj}T${Ej(e)}`,n=[];return n.push(e.local?`Z?`:`Z`),e.offset&&n.push(`([+-]\\d{2}:?\\d{2})`),t=`${t}(${n.join(`|`)})`,RegExp(`^${t}$`)}function kj(e,t){return!((t!==`v4`&&t||!xj.test(e))&&(t!==`v6`&&t||!Sj.test(e)))}var Aj=class e extends dj{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==K.string){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.string,received:t.parsedType}),XA}let t=new YA,n;for(let r of this._def.checks)if(r.kind===`min`)e.data.lengthr.value&&(n=this._getOrReturnCtx(e,n),J(n,{code:q.too_big,maximum:r.value,type:`string`,inclusive:!0,exact:!1,message:r.message}),t.dirty());else if(r.kind===`length`){let i=e.data.length>r.value,a=e.data.lengthe.test(t),{validation:t,code:q.invalid_string,...aj.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(e){return this._addCheck({kind:`email`,...aj.errToObj(e)})}url(e){return this._addCheck({kind:`url`,...aj.errToObj(e)})}emoji(e){return this._addCheck({kind:`emoji`,...aj.errToObj(e)})}uuid(e){return this._addCheck({kind:`uuid`,...aj.errToObj(e)})}nanoid(e){return this._addCheck({kind:`nanoid`,...aj.errToObj(e)})}cuid(e){return this._addCheck({kind:`cuid`,...aj.errToObj(e)})}cuid2(e){return this._addCheck({kind:`cuid2`,...aj.errToObj(e)})}ulid(e){return this._addCheck({kind:`ulid`,...aj.errToObj(e)})}base64(e){return this._addCheck({kind:`base64`,...aj.errToObj(e)})}ip(e){return this._addCheck({kind:`ip`,...aj.errToObj(e)})}datetime(e){return typeof e==`string`?this._addCheck({kind:`datetime`,precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:`datetime`,precision:e?.precision===void 0?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...aj.errToObj(e?.message)})}date(e){return this._addCheck({kind:`date`,message:e})}time(e){return typeof e==`string`?this._addCheck({kind:`time`,precision:null,message:e}):this._addCheck({kind:`time`,precision:e?.precision===void 0?null:e?.precision,...aj.errToObj(e?.message)})}duration(e){return this._addCheck({kind:`duration`,...aj.errToObj(e)})}regex(e,t){return this._addCheck({kind:`regex`,regex:e,...aj.errToObj(t)})}includes(e,t){return this._addCheck({kind:`includes`,value:e,position:t?.position,...aj.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:`startsWith`,value:e,...aj.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:`endsWith`,value:e,...aj.errToObj(t)})}min(e,t){return this._addCheck({kind:`min`,value:e,...aj.errToObj(t)})}max(e,t){return this._addCheck({kind:`max`,value:e,...aj.errToObj(t)})}length(e,t){return this._addCheck({kind:`length`,value:e,...aj.errToObj(t)})}nonempty(e){return this.min(1,aj.errToObj(e))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:`trim`}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:`toLowerCase`}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:`toUpperCase`}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind===`datetime`)}get isDate(){return!!this._def.checks.find(e=>e.kind===`date`)}get isTime(){return!!this._def.checks.find(e=>e.kind===`time`)}get isDuration(){return!!this._def.checks.find(e=>e.kind===`duration`)}get isEmail(){return!!this._def.checks.find(e=>e.kind===`email`)}get isURL(){return!!this._def.checks.find(e=>e.kind===`url`)}get isEmoji(){return!!this._def.checks.find(e=>e.kind===`emoji`)}get isUUID(){return!!this._def.checks.find(e=>e.kind===`uuid`)}get isNANOID(){return!!this._def.checks.find(e=>e.kind===`nanoid`)}get isCUID(){return!!this._def.checks.find(e=>e.kind===`cuid`)}get isCUID2(){return!!this._def.checks.find(e=>e.kind===`cuid2`)}get isULID(){return!!this._def.checks.find(e=>e.kind===`ulid`)}get isIP(){return!!this._def.checks.find(e=>e.kind===`ip`)}get isBase64(){return!!this._def.checks.find(e=>e.kind===`base64`)}get minLength(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.valuenew Aj({checks:[],typeName:bM.ZodString,coerce:e?.coerce??!1,...uj(e)});function jj(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=(t.toString().split(`.`)[1]||``).length,i=n>r?n:r;return parseInt(e.toFixed(i).replace(`.`,``))%parseInt(t.toFixed(i).replace(`.`,``))/10**i}var Mj=class e extends dj{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==K.number){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.number,received:t.parsedType}),XA}let t,n=new YA;for(let r of this._def.checks)r.kind===`int`?RA.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),J(t,{code:q.invalid_type,expected:`integer`,received:`float`,message:r.message}),n.dirty()):r.kind===`min`?(r.inclusive?e.datar.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),J(t,{code:q.too_big,maximum:r.value,type:`number`,inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):r.kind===`multipleOf`?jj(e.data,r.value)!==0&&(t=this._getOrReturnCtx(e,t),J(t,{code:q.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):r.kind===`finite`?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),J(t,{code:q.not_finite,message:r.message}),n.dirty()):RA.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit(`min`,e,!0,aj.toString(t))}gt(e,t){return this.setLimit(`min`,e,!1,aj.toString(t))}lte(e,t){return this.setLimit(`max`,e,!0,aj.toString(t))}lt(e,t){return this.setLimit(`max`,e,!1,aj.toString(t))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:aj.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(e){return this._addCheck({kind:`int`,message:aj.toString(e)})}positive(e){return this._addCheck({kind:`min`,value:0,inclusive:!1,message:aj.toString(e)})}negative(e){return this._addCheck({kind:`max`,value:0,inclusive:!1,message:aj.toString(e)})}nonpositive(e){return this._addCheck({kind:`max`,value:0,inclusive:!0,message:aj.toString(e)})}nonnegative(e){return this._addCheck({kind:`min`,value:0,inclusive:!0,message:aj.toString(e)})}multipleOf(e,t){return this._addCheck({kind:`multipleOf`,value:e,message:aj.toString(t)})}finite(e){return this._addCheck({kind:`finite`,message:aj.toString(e)})}safe(e){return this._addCheck({kind:`min`,inclusive:!0,value:-(2**53-1),message:aj.toString(e)})._addCheck({kind:`max`,inclusive:!0,value:2**53-1,message:aj.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.valuee.kind===`int`||e.kind===`multipleOf`&&RA.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks)if(n.kind===`finite`||n.kind===`int`||n.kind===`multipleOf`)return!0;else n.kind===`min`?(t===null||n.value>t)&&(t=n.value):n.kind===`max`&&(e===null||n.valuenew Mj({checks:[],typeName:bM.ZodNumber,coerce:e?.coerce||!1,...uj(e)});var Nj=class e extends dj{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==K.bigint){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.bigint,received:t.parsedType}),XA}let t,n=new YA;for(let r of this._def.checks)r.kind===`min`?(r.inclusive?e.datar.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),J(t,{code:q.too_big,type:`bigint`,maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):r.kind===`multipleOf`?e.data%r.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),J(t,{code:q.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):RA.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit(`min`,e,!0,aj.toString(t))}gt(e,t){return this.setLimit(`min`,e,!1,aj.toString(t))}lte(e,t){return this.setLimit(`max`,e,!0,aj.toString(t))}lt(e,t){return this.setLimit(`max`,e,!1,aj.toString(t))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:aj.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(e){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!1,message:aj.toString(e)})}negative(e){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!1,message:aj.toString(e)})}nonpositive(e){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!0,message:aj.toString(e)})}nonnegative(e){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!0,message:aj.toString(e)})}multipleOf(e,t){return this._addCheck({kind:`multipleOf`,value:e,message:aj.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.valuenew Nj({checks:[],typeName:bM.ZodBigInt,coerce:e?.coerce??!1,...uj(e)});var Pj=class extends dj{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==K.boolean){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.boolean,received:t.parsedType}),XA}return QA(e.data)}};Pj.create=e=>new Pj({typeName:bM.ZodBoolean,coerce:e?.coerce||!1,...uj(e)});var Fj=class e extends dj{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==K.date){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.date,received:t.parsedType}),XA}if(isNaN(e.data.getTime()))return J(this._getOrReturnCtx(e),{code:q.invalid_date}),XA;let t=new YA,n;for(let r of this._def.checks)r.kind===`min`?e.data.getTime()r.value&&(n=this._getOrReturnCtx(e,n),J(n,{code:q.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:`date`}),t.dirty()):RA.assertNever(r);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(e,t){return this._addCheck({kind:`min`,value:e.getTime(),message:aj.toString(t)})}max(e,t){return this._addCheck({kind:`max`,value:e.getTime(),message:aj.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e==null?null:new Date(e)}get maxDate(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.valuenew Fj({checks:[],coerce:e?.coerce||!1,typeName:bM.ZodDate,...uj(e)});var Ij=class extends dj{_parse(e){if(this._getType(e)!==K.symbol){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.symbol,received:t.parsedType}),XA}return QA(e.data)}};Ij.create=e=>new Ij({typeName:bM.ZodSymbol,...uj(e)});var Lj=class extends dj{_parse(e){if(this._getType(e)!==K.undefined){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.undefined,received:t.parsedType}),XA}return QA(e.data)}};Lj.create=e=>new Lj({typeName:bM.ZodUndefined,...uj(e)});var Rj=class extends dj{_parse(e){if(this._getType(e)!==K.null){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.null,received:t.parsedType}),XA}return QA(e.data)}};Rj.create=e=>new Rj({typeName:bM.ZodNull,...uj(e)});var zj=class extends dj{constructor(){super(...arguments),this._any=!0}_parse(e){return QA(e.data)}};zj.create=e=>new zj({typeName:bM.ZodAny,...uj(e)});var Bj=class extends dj{constructor(){super(...arguments),this._unknown=!0}_parse(e){return QA(e.data)}};Bj.create=e=>new Bj({typeName:bM.ZodUnknown,...uj(e)});var Vj=class extends dj{_parse(e){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.never,received:t.parsedType}),XA}};Vj.create=e=>new Vj({typeName:bM.ZodNever,...uj(e)});var Hj=class extends dj{_parse(e){if(this._getType(e)!==K.undefined){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.void,received:t.parsedType}),XA}return QA(e.data)}};Hj.create=e=>new Hj({typeName:bM.ZodVoid,...uj(e)});var Uj=class e extends dj{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==K.array)return J(t,{code:q.invalid_type,expected:K.array,received:t.parsedType}),XA;if(r.exactLength!==null){let e=t.data.length>r.exactLength.value,i=t.data.lengthr.maxLength.value&&(J(t,{code:q.too_big,maximum:r.maxLength.value,type:`array`,inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new cj(t,e,t.path,n)))).then(e=>YA.mergeArray(n,e));let i=[...t.data].map((e,n)=>r.type._parseSync(new cj(t,e,t.path,n)));return YA.mergeArray(n,i)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:aj.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:aj.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:aj.toString(n)}})}nonempty(e){return this.min(1,e)}};Uj.create=(e,t)=>new Uj({type:e,minLength:null,maxLength:null,exactLength:null,typeName:bM.ZodArray,...uj(t)});function Wj(e){if(e instanceof Gj){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=lM.create(Wj(r))}return new Gj({...e._def,shape:()=>t})}return e instanceof Uj?new Uj({...e._def,type:Wj(e.element)}):e instanceof lM?lM.create(Wj(e.unwrap())):e instanceof uM?uM.create(Wj(e.unwrap())):e instanceof Zj?Zj.create(e.items.map(e=>Wj(e))):e}var Gj=class e extends dj{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),t=RA.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==K.object){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.object,received:t.parsedType}),XA}let{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof Vj&&this._def.unknownKeys===`strip`))for(let e in n.data)i.includes(e)||a.push(e);let o=[];for(let e of i){let t=r[e],i=n.data[e];o.push({key:{status:`valid`,value:e},value:t._parse(new cj(n,i,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof Vj){let e=this._def.unknownKeys;if(e===`passthrough`)for(let e of a)o.push({key:{status:`valid`,value:e},value:{status:`valid`,value:n.data[e]}});else if(e===`strict`)a.length>0&&(J(n,{code:q.unrecognized_keys,keys:a}),t.dirty());else if(e!==`strip`)throw Error(`Internal ZodObject error: invalid unknownKeys value.`)}else{let e=this._def.catchall;for(let t of a){let r=n.data[t];o.push({key:{status:`valid`,value:t},value:e._parse(new cj(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of o){let n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e}).then(e=>YA.mergeObjectSync(t,e)):YA.mergeObjectSync(t,o)}get shape(){return this._def.shape()}strict(t){return aj.errToObj,new e({...this._def,unknownKeys:`strict`,...t===void 0?{}:{errorMap:(e,n)=>{var r;let i=(r=this._def).errorMap?.call(r,e,n).message??n.defaultError;return e.code===`unrecognized_keys`?{message:aj.errToObj(t).message??i}:{message:i}}}})}strip(){return new e({...this._def,unknownKeys:`strip`})}passthrough(){return new e({...this._def,unknownKeys:`passthrough`})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:bM.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};return RA.objectKeys(t).forEach(e=>{t[e]&&this.shape[e]&&(n[e]=this.shape[e])}),new e({...this._def,shape:()=>n})}omit(t){let n={};return RA.objectKeys(this.shape).forEach(e=>{t[e]||(n[e]=this.shape[e])}),new e({...this._def,shape:()=>n})}deepPartial(){return Wj(this)}partial(t){let n={};return RA.objectKeys(this.shape).forEach(e=>{let r=this.shape[e];t&&!t[e]?n[e]=r:n[e]=r.optional()}),new e({...this._def,shape:()=>n})}required(t){let n={};return RA.objectKeys(this.shape).forEach(e=>{if(t&&!t[e])n[e]=this.shape[e];else{let t=this.shape[e];for(;t instanceof lM;)t=t._def.innerType;n[e]=t}}),new e({...this._def,shape:()=>n})}keyof(){return iM(RA.objectKeys(this.shape))}};Gj.create=(e,t)=>new Gj({shape:()=>e,unknownKeys:`strip`,catchall:Vj.create(),typeName:bM.ZodObject,...uj(t)}),Gj.strictCreate=(e,t)=>new Gj({shape:()=>e,unknownKeys:`strict`,catchall:Vj.create(),typeName:bM.ZodObject,...uj(t)}),Gj.lazycreate=(e,t)=>new Gj({shape:e,unknownKeys:`strip`,catchall:Vj.create(),typeName:bM.ZodObject,...uj(t)});var Kj=class extends dj{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;function r(e){for(let t of e)if(t.result.status===`valid`)return t.result;for(let n of e)if(n.result.status===`dirty`)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new HA(e.ctx.common.issues));return J(t,{code:q.invalid_union,unionErrors:n}),XA}if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(r);{let e,r=[];for(let i of n){let n={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:n});if(a.status===`valid`)return a;a.status===`dirty`&&!e&&(e={result:a,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=r.map(e=>new HA(e));return J(t,{code:q.invalid_union,unionErrors:i}),XA}}get options(){return this._def.options}};Kj.create=(e,t)=>new Kj({options:e,typeName:bM.ZodUnion,...uj(t)});var qj=e=>e instanceof nM?qj(e.schema):e instanceof cM?qj(e.innerType()):e instanceof rM?[e.value]:e instanceof aM?e.options:e instanceof oM?RA.objectValues(e.enum):e instanceof dM?qj(e._def.innerType):e instanceof Lj?[void 0]:e instanceof Rj?[null]:e instanceof lM?[void 0,...qj(e.unwrap())]:e instanceof uM?[null,...qj(e.unwrap())]:e instanceof hM||e instanceof _M?qj(e.unwrap()):e instanceof fM?qj(e._def.innerType):[],Jj=class e extends dj{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==K.object)return J(t,{code:q.invalid_type,expected:K.object,received:t.parsedType}),XA;let n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(J(t,{code:q.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),XA)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){let i=new Map;for(let e of n){let n=qj(e.shape[t]);if(!n.length)throw Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let r of n){if(i.has(r))throw Error(`Discriminator property ${String(t)} has duplicate value ${String(r)}`);i.set(r,e)}}return new e({typeName:bM.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...uj(r)})}};function Yj(e,t){let n=BA(e),r=BA(t);if(e===t)return{valid:!0,data:e};if(n===K.object&&r===K.object){let n=RA.objectKeys(t),r=RA.objectKeys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=Yj(e[n],t[n]);if(!r.valid)return{valid:!1};i[n]=r.data}return{valid:!0,data:i}}if(n===K.array&&r===K.array){if(e.length!==t.length)return{valid:!1};let n=[];for(let r=0;r{if($A(e)||$A(r))return XA;let i=Yj(e.value,r.value);return i.valid?((ej(e)||ej(r))&&t.dirty(),{status:t.value,value:i.data}):(J(n,{code:q.invalid_intersection_types}),XA)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};Xj.create=(e,t,n)=>new Xj({left:e,right:t,typeName:bM.ZodIntersection,...uj(n)});var Zj=class e extends dj{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==K.array)return J(n,{code:q.invalid_type,expected:K.array,received:n.parsedType}),XA;if(n.data.lengththis._def.items.length&&(J(n,{code:q.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:`array`}),t.dirty());let r=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new cj(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(r).then(e=>YA.mergeArray(t,e)):YA.mergeArray(t,r)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};Zj.create=(e,t)=>{if(!Array.isArray(e))throw Error(`You must pass an array of schemas to z.tuple([ ... ])`);return new Zj({items:e,typeName:bM.ZodTuple,rest:null,...uj(t)})};var Qj=class e extends dj{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==K.object)return J(n,{code:q.invalid_type,expected:K.object,received:n.parsedType}),XA;let r=[],i=this._def.keyType,a=this._def.valueType;for(let e in n.data)r.push({key:i._parse(new cj(n,e,n.path,e)),value:a._parse(new cj(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?YA.mergeObjectAsync(t,r):YA.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof dj?new e({keyType:t,valueType:n,typeName:bM.ZodRecord,...uj(r)}):new e({keyType:Aj.create(),valueType:t,typeName:bM.ZodRecord,...uj(n)})}},$j=class extends dj{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==K.map)return J(n,{code:q.invalid_type,expected:K.map,received:n.parsedType}),XA;let r=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map(([e,t],a)=>({key:r._parse(new cj(n,e,n.path,[a,`key`])),value:i._parse(new cj(n,t,n.path,[a,`value`]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of a){let r=await n.key,i=await n.value;if(r.status===`aborted`||i.status===`aborted`)return XA;(r.status===`dirty`||i.status===`dirty`)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let n of a){let r=n.key,i=n.value;if(r.status===`aborted`||i.status===`aborted`)return XA;(r.status===`dirty`||i.status===`dirty`)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}};$j.create=(e,t,n)=>new $j({valueType:t,keyType:e,typeName:bM.ZodMap,...uj(n)});var eM=class e extends dj{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==K.set)return J(n,{code:q.invalid_type,expected:K.set,received:n.parsedType}),XA;let r=this._def;r.minSize!==null&&n.data.sizer.maxSize.value&&(J(n,{code:q.too_big,maximum:r.maxSize.value,type:`set`,inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let n=new Set;for(let r of e){if(r.status===`aborted`)return XA;r.status===`dirty`&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let o=[...n.data.values()].map((e,t)=>i._parse(new cj(n,e,n.path,t)));return n.common.async?Promise.all(o).then(e=>a(e)):a(o)}min(t,n){return new e({...this._def,minSize:{value:t,message:aj.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:aj.toString(n)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}};eM.create=(e,t)=>new eM({valueType:e,minSize:null,maxSize:null,typeName:bM.ZodSet,...uj(t)});var tM=class e extends dj{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==K.function)return J(t,{code:q.invalid_type,expected:K.function,received:t.parsedType}),XA;function n(e,n){return qA({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,KA(),UA].filter(e=>!!e),issueData:{code:q.invalid_arguments,argumentsError:n}})}function r(e,n){return qA({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,KA(),UA].filter(e=>!!e),issueData:{code:q.invalid_return_type,returnTypeError:n}})}let i={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof sM){let e=this;return QA(async function(...t){let o=new HA([]),s=await e._def.args.parseAsync(t,i).catch(e=>{throw o.addIssue(n(t,e)),o}),c=await Reflect.apply(a,this,s);return await e._def.returns._def.type.parseAsync(c,i).catch(e=>{throw o.addIssue(r(c,e)),o})})}{let e=this;return QA(function(...t){let o=e._def.args.safeParse(t,i);if(!o.success)throw new HA([n(t,o.error)]);let s=Reflect.apply(a,this,o.data),c=e._def.returns.safeParse(s,i);if(!c.success)throw new HA([r(s,c.error)]);return c.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:Zj.create(t).rest(Bj.create())})}returns(t){return new e({...this._def,returns:t})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(t,n,r){return new e({args:t||Zj.create([]).rest(Bj.create()),returns:n||Bj.create(),typeName:bM.ZodFunction,...uj(r)})}},nM=class extends dj{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}};nM.create=(e,t)=>new nM({getter:e,typeName:bM.ZodLazy,...uj(t)});var rM=class extends dj{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return J(t,{received:t.data,code:q.invalid_literal,expected:this._def.value}),XA}return{status:`valid`,value:e.data}}get value(){return this._def.value}};rM.create=(e,t)=>new rM({value:e,typeName:bM.ZodLiteral,...uj(t)});function iM(e,t){return new aM({values:e,typeName:bM.ZodEnum,...uj(t)})}var aM=class e extends dj{constructor(){super(...arguments),oj.set(this,void 0)}_parse(e){if(typeof e.data!=`string`){let t=this._getOrReturnCtx(e),n=this._def.values;return J(t,{expected:RA.joinValues(n),received:t.parsedType,code:q.invalid_type}),XA}if(rj(this,oj)||ij(this,oj,new Set(this._def.values)),!rj(this,oj).has(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return J(t,{received:t.data,code:q.invalid_enum_value,options:n}),XA}return QA(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(t,n=this._def){return e.create(t,{...this._def,...n})}exclude(t,n=this._def){return e.create(this.options.filter(e=>!t.includes(e)),{...this._def,...n})}};oj=new WeakMap,aM.create=iM;var oM=class extends dj{constructor(){super(...arguments),sj.set(this,void 0)}_parse(e){let t=RA.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==K.string&&n.parsedType!==K.number){let e=RA.objectValues(t);return J(n,{expected:RA.joinValues(e),received:n.parsedType,code:q.invalid_type}),XA}if(rj(this,sj)||ij(this,sj,new Set(RA.getValidEnumValues(this._def.values))),!rj(this,sj).has(e.data)){let e=RA.objectValues(t);return J(n,{received:n.data,code:q.invalid_enum_value,options:e}),XA}return QA(e.data)}get enum(){return this._def.values}};sj=new WeakMap,oM.create=(e,t)=>new oM({values:e,typeName:bM.ZodNativeEnum,...uj(t)});var sM=class extends dj{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==K.promise&&t.common.async===!1?(J(t,{code:q.invalid_type,expected:K.promise,received:t.parsedType}),XA):QA((t.parsedType===K.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}};sM.create=(e,t)=>new sM({type:e,typeName:bM.ZodPromise,...uj(t)});var cM=class extends dj{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===bM.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,i={addIssue:e=>{J(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),r.type===`preprocess`){let e=r.transform(n.data,i);if(n.common.async)return Promise.resolve(e).then(async e=>{if(t.value===`aborted`)return XA;let r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return r.status===`aborted`?XA:r.status===`dirty`||t.value===`dirty`?ZA(r.value):r});{if(t.value===`aborted`)return XA;let r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return r.status===`aborted`?XA:r.status===`dirty`||t.value===`dirty`?ZA(r.value):r}}if(r.type===`refinement`){let e=e=>{let t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error(`Async refinement encountered during synchronous parse operation. Use .parseAsync instead.`);return e};if(n.common.async===!1){let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return r.status===`aborted`?XA:(r.status===`dirty`&&t.dirty(),e(r.value),{status:t.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>n.status===`aborted`?XA:(n.status===`dirty`&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))))}if(r.type===`transform`){if(n.common.async===!1){let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!tj(e))return e;let a=r.transform(e.value,i);if(a instanceof Promise)throw Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);return{status:t.value,value:a}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>tj(e)?Promise.resolve(r.transform(e.value,i)).then(e=>({status:t.value,value:e})):e)}RA.assertNever(r)}};cM.create=(e,t,n)=>new cM({schema:e,typeName:bM.ZodEffects,effect:t,...uj(n)}),cM.createWithPreprocess=(e,t,n)=>new cM({schema:t,effect:{type:`preprocess`,transform:e},typeName:bM.ZodEffects,...uj(n)});var lM=class extends dj{_parse(e){return this._getType(e)===K.undefined?QA(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};lM.create=(e,t)=>new lM({innerType:e,typeName:bM.ZodOptional,...uj(t)});var uM=class extends dj{_parse(e){return this._getType(e)===K.null?QA(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};uM.create=(e,t)=>new uM({innerType:e,typeName:bM.ZodNullable,...uj(t)});var dM=class extends dj{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===K.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}};dM.create=(e,t)=>new dM({innerType:e,typeName:bM.ZodDefault,defaultValue:typeof t.default==`function`?t.default:()=>t.default,...uj(t)});var fM=class extends dj{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return nj(r)?r.then(e=>({status:`valid`,value:e.status===`valid`?e.value:this._def.catchValue({get error(){return new HA(n.common.issues)},input:n.data})})):{status:`valid`,value:r.status===`valid`?r.value:this._def.catchValue({get error(){return new HA(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};fM.create=(e,t)=>new fM({innerType:e,typeName:bM.ZodCatch,catchValue:typeof t.catch==`function`?t.catch:()=>t.catch,...uj(t)});var pM=class extends dj{_parse(e){if(this._getType(e)!==K.nan){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.nan,received:t.parsedType}),XA}return{status:`valid`,value:e.data}}};pM.create=e=>new pM({typeName:bM.ZodNaN,...uj(e)});var mM=Symbol(`zod_brand`),hM=class extends dj{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}},gM=class e extends dj{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return e.status===`aborted`?XA:e.status===`dirty`?(t.dirty(),ZA(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{let e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return e.status===`aborted`?XA:e.status===`dirty`?(t.dirty(),{status:`dirty`,value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(t,n){return new e({in:t,out:n,typeName:bM.ZodPipeline})}},_M=class extends dj{_parse(e){let t=this._def.innerType._parse(e),n=e=>(tj(e)&&(e.value=Object.freeze(e.value)),e);return nj(t)?t.then(e=>n(e)):n(t)}unwrap(){return this._def.innerType}};_M.create=(e,t)=>new _M({innerType:e,typeName:bM.ZodReadonly,...uj(t)});function vM(e,t={},n){return e?zj.create().superRefine((r,i)=>{if(!e(r)){let e=typeof t==`function`?t(r):typeof t==`string`?{message:t}:t,a=e.fatal??n??!0,o=typeof e==`string`?{message:e}:e;i.addIssue({code:`custom`,...o,fatal:a})}}):zj.create()}var yM={object:Gj.lazycreate},bM;(function(e){e.ZodString=`ZodString`,e.ZodNumber=`ZodNumber`,e.ZodNaN=`ZodNaN`,e.ZodBigInt=`ZodBigInt`,e.ZodBoolean=`ZodBoolean`,e.ZodDate=`ZodDate`,e.ZodSymbol=`ZodSymbol`,e.ZodUndefined=`ZodUndefined`,e.ZodNull=`ZodNull`,e.ZodAny=`ZodAny`,e.ZodUnknown=`ZodUnknown`,e.ZodNever=`ZodNever`,e.ZodVoid=`ZodVoid`,e.ZodArray=`ZodArray`,e.ZodObject=`ZodObject`,e.ZodUnion=`ZodUnion`,e.ZodDiscriminatedUnion=`ZodDiscriminatedUnion`,e.ZodIntersection=`ZodIntersection`,e.ZodTuple=`ZodTuple`,e.ZodRecord=`ZodRecord`,e.ZodMap=`ZodMap`,e.ZodSet=`ZodSet`,e.ZodFunction=`ZodFunction`,e.ZodLazy=`ZodLazy`,e.ZodLiteral=`ZodLiteral`,e.ZodEnum=`ZodEnum`,e.ZodEffects=`ZodEffects`,e.ZodNativeEnum=`ZodNativeEnum`,e.ZodOptional=`ZodOptional`,e.ZodNullable=`ZodNullable`,e.ZodDefault=`ZodDefault`,e.ZodCatch=`ZodCatch`,e.ZodPromise=`ZodPromise`,e.ZodBranded=`ZodBranded`,e.ZodPipeline=`ZodPipeline`,e.ZodReadonly=`ZodReadonly`})(bM||={});var xM=(e,t={message:`Input not instance of ${e.name}`})=>vM(t=>t instanceof e,t),Y=Aj.create,SM=Mj.create,CM=pM.create,wM=Nj.create,TM=Pj.create,EM=Fj.create,DM=Ij.create,OM=Lj.create,kM=Rj.create,AM=zj.create,jM=Bj.create,MM=Vj.create,NM=Hj.create,PM=Uj.create,X=Gj.create,FM=Gj.strictCreate,IM=Kj.create,LM=Jj.create,RM=Xj.create,zM=Zj.create,BM=Qj.create,VM=$j.create,HM=eM.create,UM=tM.create,WM=nM.create,GM=rM.create,KM=aM.create,qM=oM.create,JM=sM.create,YM=cM.create,XM=lM.create,ZM=uM.create,QM=cM.createWithPreprocess,$M=gM.create,Z=Object.freeze({__proto__:null,defaultErrorMap:UA,setErrorMap:GA,getErrorMap:KA,makeIssue:qA,EMPTY_PATH:JA,addIssueToContext:J,ParseStatus:YA,INVALID:XA,DIRTY:ZA,OK:QA,isAborted:$A,isDirty:ej,isValid:tj,isAsync:nj,get util(){return RA},get objectUtil(){return zA},ZodParsedType:K,getParsedType:BA,ZodType:dj,datetimeRegex:Oj,ZodString:Aj,ZodNumber:Mj,ZodBigInt:Nj,ZodBoolean:Pj,ZodDate:Fj,ZodSymbol:Ij,ZodUndefined:Lj,ZodNull:Rj,ZodAny:zj,ZodUnknown:Bj,ZodNever:Vj,ZodVoid:Hj,ZodArray:Uj,ZodObject:Gj,ZodUnion:Kj,ZodDiscriminatedUnion:Jj,ZodIntersection:Xj,ZodTuple:Zj,ZodRecord:Qj,ZodMap:$j,ZodSet:eM,ZodFunction:tM,ZodLazy:nM,ZodLiteral:rM,ZodEnum:aM,ZodNativeEnum:oM,ZodPromise:sM,ZodEffects:cM,ZodTransformer:cM,ZodOptional:lM,ZodNullable:uM,ZodDefault:dM,ZodCatch:fM,ZodNaN:pM,BRAND:mM,ZodBranded:hM,ZodPipeline:gM,ZodReadonly:_M,custom:vM,Schema:dj,ZodSchema:dj,late:yM,get ZodFirstPartyTypeKind(){return bM},coerce:{string:(e=>Aj.create({...e,coerce:!0})),number:(e=>Mj.create({...e,coerce:!0})),boolean:(e=>Pj.create({...e,coerce:!0})),bigint:(e=>Nj.create({...e,coerce:!0})),date:(e=>Fj.create({...e,coerce:!0}))},any:AM,array:PM,bigint:wM,boolean:TM,date:EM,discriminatedUnion:LM,effect:YM,enum:KM,function:UM,instanceof:xM,intersection:RM,lazy:WM,literal:GM,map:VM,nan:CM,nativeEnum:qM,never:MM,null:kM,nullable:ZM,number:SM,object:X,oboolean:()=>TM().optional(),onumber:()=>SM().optional(),optional:XM,ostring:()=>Y().optional(),pipeline:$M,preprocess:QM,promise:JM,record:BM,set:HM,strictObject:FM,string:Y,symbol:DM,transformer:YM,tuple:zM,undefined:OM,union:IM,unknown:jM,void:NM,NEVER:XA,ZodIssueCode:q,quotelessJson:VA,ZodError:HA}),eN={exports:{}},tN;function nN(){return tN||(tN=1,(function(e){var t=(function(e){var n=1e7,r=9007199254740992,i=f(r),a=`0123456789abcdefghijklmnopqrstuvwxyz`,o=typeof BigInt==`function`;function s(e,t,n,r){return e===void 0?s[0]:t===void 0||+t==10&&!n?P(e):_e(e,t,n,r)}function c(e,t){this.value=e,this.sign=t,this.isSmall=!1}c.prototype=Object.create(s.prototype);function l(e){this.value=e,this.sign=e<0,this.isSmall=!0}l.prototype=Object.create(s.prototype);function u(e){this.value=e}u.prototype=Object.create(s.prototype);function d(e){return-r0?Math.floor(e):Math.ceil(e)}function _(e,t){for(var r=e.length,i=t.length,a=Array(r),o=0,s=n,c,l=0;l=s),a[l]=c-o*s;for(;l0&&a.push(o),a}function v(e,t){return e.length>=t.length?_(e,t):_(t,e)}function y(e,t){for(var r=e.length,i=Array(r),a=n,o,s=0;s0;)i[s++]=t%a,t=Math.floor(t/a);return i}c.prototype.add=function(e){var t=P(e);if(this.sign!==t.sign)return this.subtract(t.negate());var n=this.value,r=t.value;return t.isSmall?new c(y(n,Math.abs(r)),this.sign):new c(v(n,r),this.sign)},c.prototype.plus=c.prototype.add,l.prototype.add=function(e){var t=P(e),n=this.value;if(n<0!==t.sign)return this.subtract(t.negate());var r=t.value;if(t.isSmall){if(d(n+r))return new l(n+r);r=f(Math.abs(r))}return new c(y(r,Math.abs(n)),n<0)},l.prototype.plus=l.prototype.add,u.prototype.add=function(e){return new u(this.value+P(e).value)},u.prototype.plus=u.prototype.add;function b(e,t){for(var r=e.length,i=t.length,a=Array(r),o=0,s=n,c=0,l;c=0?r=b(e,t):(r=b(t,e),n=!n),r=p(r),typeof r==`number`?(n&&(r=-r),new l(r)):new c(r,n)}function S(e,t,r){for(var i=e.length,a=Array(i),o=-t,s=n,u=0,d;u=0)},l.prototype.minus=l.prototype.subtract,u.prototype.subtract=function(e){return new u(this.value-P(e).value)},u.prototype.minus=u.prototype.subtract,c.prototype.negate=function(){return new c(this.value,!this.sign)},l.prototype.negate=function(){var e=this.sign,t=new l(-this.value);return t.sign=!e,t},u.prototype.negate=function(){return new u(-this.value)},c.prototype.abs=function(){return new c(this.value,!1)},l.prototype.abs=function(){return new l(Math.abs(this.value))},u.prototype.abs=function(){return new u(this.value>=0?this.value:-this.value)};function C(e,t){for(var r=e.length,i=t.length,a=h(r+i),o=n,s,c,l=0,u,d;l0;)i[c++]=o%a,o=Math.floor(o/a);return i}function T(e,t){for(var n=[];t-->0;)n.push(0);return n.concat(e)}function E(e,t){var n=Math.max(e.length,t.length);if(n<=30)return C(e,t);n=Math.ceil(n/2);var r=e.slice(n),i=e.slice(0,n),a=t.slice(n),o=t.slice(0,n),s=E(i,o),c=E(r,a),l=v(v(s,T(b(b(E(v(i,r),v(o,a)),s),c),n)),T(c,2*n));return m(l),l}function D(e,t){return-.012*e-.012*t+15e-6*e*t>0}c.prototype.multiply=function(e){var t=P(e),r=this.value,i=t.value,a=this.sign!==t.sign,o;if(t.isSmall){if(i===0)return s[0];if(i===1)return this;if(i===-1)return this.negate();if(o=Math.abs(i),o=0;f--){for(d=a-1,l[f+i]!==s&&(d=Math.floor((l[f+i]*a+l[f+i-1])/s)),m=0,g=0,v=u.length,_=0;_i&&(u=(u+1)*s),c=Math.ceil(u/d);do{if(f=w(t,c),M(f,o)<=0)break;c--}while(c);a.push(c),o=b(o,f)}return a.reverse(),[p(a),p(o)]}function te(e,t){var r=e.length,i=h(r),a=n,o,s,c=0,l;for(o=r-1;o>=0;--o)l=c*a+e[o],s=g(l/t),c=l-s*t,i[o]=s|0;return[i,c|0]}function j(e,t){var r,i=P(t);if(o)return[new u(e.value/i.value),new u(e.value%i.value)];var a=e.value,d=i.value,m;if(d===0)throw Error(`Cannot divide by zero`);if(e.isSmall)return i.isSmall?[new l(g(a/d)),new l(a%d)]:[s[0],e];if(i.isSmall){if(d===1)return[e,s[0]];if(d==-1)return[e.negate(),s[0]];var h=Math.abs(d);if(ht.length?1:-1;for(var n=e.length-1;n>=0;n--)if(e[n]!==t[n])return e[n]>t[n]?1:-1;return 0}c.prototype.compareAbs=function(e){var t=P(e),n=this.value,r=t.value;return t.isSmall?1:M(n,r)},l.prototype.compareAbs=function(e){var t=P(e),n=Math.abs(this.value),r=t.value;return t.isSmall?(r=Math.abs(r),n===r?0:n>r?1:-1):-1},u.prototype.compareAbs=function(e){var t=this.value,n=P(e).value;return t=t>=0?t:-t,n=n>=0?n:-n,t===n?0:t>n?1:-1},c.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=P(e),n=this.value,r=t.value;return this.sign===t.sign?t.isSmall?this.sign?-1:1:M(n,r)*(this.sign?-1:1):t.sign?1:-1},c.prototype.compareTo=c.prototype.compare,l.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=P(e),n=this.value,r=t.value;return t.isSmall?n==r?0:n>r?1:-1:n<0===t.sign?n<0?1:-1:n<0?-1:1},l.prototype.compareTo=l.prototype.compare,u.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=this.value,n=P(e).value;return t===n?0:t>n?1:-1},u.prototype.compareTo=u.prototype.compare,c.prototype.equals=function(e){return this.compare(e)===0},u.prototype.eq=u.prototype.equals=l.prototype.eq=l.prototype.equals=c.prototype.eq=c.prototype.equals,c.prototype.notEquals=function(e){return this.compare(e)!==0},u.prototype.neq=u.prototype.notEquals=l.prototype.neq=l.prototype.notEquals=c.prototype.neq=c.prototype.notEquals,c.prototype.greater=function(e){return this.compare(e)>0},u.prototype.gt=u.prototype.greater=l.prototype.gt=l.prototype.greater=c.prototype.gt=c.prototype.greater,c.prototype.lesser=function(e){return this.compare(e)<0},u.prototype.lt=u.prototype.lesser=l.prototype.lt=l.prototype.lesser=c.prototype.lt=c.prototype.lesser,c.prototype.greaterOrEquals=function(e){return this.compare(e)>=0},u.prototype.geq=u.prototype.greaterOrEquals=l.prototype.geq=l.prototype.greaterOrEquals=c.prototype.geq=c.prototype.greaterOrEquals,c.prototype.lesserOrEquals=function(e){return this.compare(e)<=0},u.prototype.leq=u.prototype.lesserOrEquals=l.prototype.leq=l.prototype.lesserOrEquals=c.prototype.leq=c.prototype.lesserOrEquals,c.prototype.isEven=function(){return!(this.value[0]&1)},l.prototype.isEven=function(){return!(this.value&1)},u.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},c.prototype.isOdd=function(){return(this.value[0]&1)==1},l.prototype.isOdd=function(){return(this.value&1)==1},u.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},c.prototype.isPositive=function(){return!this.sign},l.prototype.isPositive=function(){return this.value>0},u.prototype.isPositive=l.prototype.isPositive,c.prototype.isNegative=function(){return this.sign},l.prototype.isNegative=function(){return this.value<0},u.prototype.isNegative=l.prototype.isNegative,c.prototype.isUnit=function(){return!1},l.prototype.isUnit=function(){return Math.abs(this.value)===1},u.prototype.isUnit=function(){return this.abs().value===BigInt(1)},c.prototype.isZero=function(){return!1},l.prototype.isZero=function(){return this.value===0},u.prototype.isZero=function(){return this.value===BigInt(0)},c.prototype.isDivisibleBy=function(e){var t=P(e);return t.isZero()?!1:t.isUnit()?!0:t.compareAbs(2)===0?this.isEven():this.mod(t).isZero()},u.prototype.isDivisibleBy=l.prototype.isDivisibleBy=c.prototype.isDivisibleBy;function ne(e){var t=e.abs();if(t.isUnit())return!1;if(t.equals(2)||t.equals(3)||t.equals(5))return!0;if(t.isEven()||t.isDivisibleBy(3)||t.isDivisibleBy(5))return!1;if(t.lesser(49))return!0}function re(e,n){for(var r=e.prev(),i=r,a=0,o,s,c;i.isEven();)i=i.divide(2),a++;next:for(s=0;s-r?new l(e-1):new c(i,!0)},u.prototype.prev=function(){return new u(this.value-BigInt(1))};for(var ie=[1];2*ie[ie.length-1]<=n;)ie.push(2*ie[ie.length-1]);var N=ie.length,ae=ie[N-1];function oe(e){return Math.abs(e)<=n}c.prototype.shiftLeft=function(e){var t=P(e).toJSNumber();if(!oe(t))throw Error(String(t)+` is too large for shifting.`);if(t<0)return this.shiftRight(-t);var n=this;if(n.isZero())return n;for(;t>=N;)n=n.multiply(ae),t-=N-1;return n.multiply(ie[t])},u.prototype.shiftLeft=l.prototype.shiftLeft=c.prototype.shiftLeft,c.prototype.shiftRight=function(e){var t,n=P(e).toJSNumber();if(!oe(n))throw Error(String(n)+` is too large for shifting.`);if(n<0)return this.shiftLeft(-n);for(var r=this;n>=N;){if(r.isZero()||r.isNegative()&&r.isUnit())return r;t=j(r,ae),r=t[1].isNegative()?t[0].prev():t[0],n-=N-1}return t=j(r,ie[n]),t[1].isNegative()?t[0].prev():t[0]},u.prototype.shiftRight=l.prototype.shiftRight=c.prototype.shiftRight;function se(e,n,r){n=P(n);for(var i=e.isNegative(),a=n.isNegative(),o=i?e.not():e,s=a?n.not():n,c=0,l=0,u=null,d=null,f=[];!o.isZero()||!s.isZero();)u=j(o,ae),c=u[1].toJSNumber(),i&&(c=ae-1-c),d=j(s,ae),l=d[1].toJSNumber(),a&&(l=ae-1-l),o=u[0],s=d[0],f.push(r(c,l));for(var p=r(+!!i,+!!a)===0?t(0):t(-1),m=f.length-1;m>=0;--m)p=p.multiply(ae).add(t(f[m]));return p}c.prototype.not=function(){return this.negate().prev()},u.prototype.not=l.prototype.not=c.prototype.not,c.prototype.and=function(e){return se(this,e,function(e,t){return e&t})},u.prototype.and=l.prototype.and=c.prototype.and,c.prototype.or=function(e){return se(this,e,function(e,t){return e|t})},u.prototype.or=l.prototype.or=c.prototype.or,c.prototype.xor=function(e){return se(this,e,function(e,t){return e^t})},u.prototype.xor=l.prototype.xor=c.prototype.xor;var ce=1<<30,le=(n&-n)*(n&-n)|ce;function ue(e){var t=e.value,r=typeof t==`number`?t|ce:typeof t==`bigint`?t|BigInt(ce):t[0]+t[1]*n|le;return r&-r}function de(e,n){if(n.compareTo(e)<=0){var r=de(e,n.square(n)),i=r.p,a=r.e,o=i.multiply(n);return o.compareTo(e)<=0?{p:o,e:a*2+1}:{p:i,e:a*2}}return{p:t(1),e:0}}c.prototype.bitLength=function(){var e=this;return e.compareTo(t(0))<0&&(e=e.negate().subtract(t(1))),e.compareTo(t(0))===0?t(0):t(de(e,t(2)).e).add(t(1))},u.prototype.bitLength=l.prototype.bitLength=c.prototype.bitLength;function fe(e,t){return e=P(e),t=P(t),e.greater(t)?e:t}function pe(e,t){return e=P(e),t=P(t),e.lesser(t)?e:t}function me(e,t){if(e=P(e).abs(),t=P(t).abs(),e.equals(t))return e;if(e.isZero())return t;if(t.isZero())return e;for(var n=s[1],r,i;e.isEven()&&t.isEven();)r=pe(ue(e),ue(t)),e=e.divide(r),t=t.divide(r),n=n.multiply(r);for(;e.isEven();)e=e.divide(ue(e));do{for(;t.isEven();)t=t.divide(ue(t));e.greater(t)&&(i=t,t=e,e=i),t=t.subtract(e)}while(!t.isZero());return n.isUnit()?e:e.multiply(n)}function he(e,t){return e=P(e).abs(),t=P(t).abs(),e.divide(me(e,t)).multiply(t)}function ge(e,t,r){e=P(e),t=P(t);var i=r||Math.random,a=pe(e,t),o=fe(e,t).subtract(a).add(1);if(o.isSmall)return a.add(Math.floor(i()*o));for(var c=be(o,n).value,l=[],u=!0,d=0;d=s){if(l===`1`&&s===1)continue;throw Error(l+` is not a valid digit in base `+t+`.`)}}t=P(t);var u=[],d=e[0]===`-`;for(o=+!!d;o`&&o=0;a--)r=r.add(e[a].times(i)),i=i.times(t);return n?r.negate():r}function ye(e,t){return t||=a,e`}function be(e,n){if(n=t(n),n.isZero()){if(e.isZero())return{value:[0],isNegative:!1};throw Error(`Cannot convert nonzero numbers to base 0.`)}if(n.equals(-1)){if(e.isZero())return{value:[0],isNegative:!1};if(e.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-e.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var r=Array.apply(null,Array(e.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return r.unshift([1]),{value:[].concat.apply([],r),isNegative:!1}}var i=!1;if(e.isNegative()&&n.isPositive()&&(i=!0,e=e.abs()),n.isUnit())return e.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(e.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:i};for(var a=[],o=e,s;o.isNegative()||o.compareAbs(n)>=0;){s=o.divmod(n),o=s.quotient;var c=s.remainder;c.isNegative()&&(c=n.minus(c).abs(),o=o.next()),a.push(c.toJSNumber())}return a.push(o.toJSNumber()),{value:a.reverse(),isNegative:i}}function xe(e,t,n){var r=be(e,t);return(r.isNegative?`-`:``)+r.value.map(function(e){return ye(e,n)}).join(``)}c.prototype.toArray=function(e){return be(this,e)},l.prototype.toArray=function(e){return be(this,e)},u.prototype.toArray=function(e){return be(this,e)},c.prototype.toString=function(t,n){if(t===e&&(t=10),t!==10||n)return xe(this,t,n);for(var r=this.value,i=r.length,a=String(r[--i]),o=`0000000`,s;--i>=0;)s=String(r[i]),a+=o.slice(s.length)+s;return(this.sign?`-`:``)+a},l.prototype.toString=function(t,n){return t===e&&(t=10),t!=10||n?xe(this,t,n):String(this.value)},u.prototype.toString=l.prototype.toString,u.prototype.toJSON=c.prototype.toJSON=l.prototype.toJSON=function(){return this.toString()},c.prototype.valueOf=function(){return parseInt(this.toString(),10)},c.prototype.toJSNumber=c.prototype.valueOf,l.prototype.valueOf=function(){return this.value},l.prototype.toJSNumber=l.prototype.valueOf,u.prototype.valueOf=u.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};function Se(e){if(d(+e)){var t=+e;if(t===g(t))return o?new u(BigInt(t)):new l(t);throw Error(`Invalid integer: `+e)}var n=e[0]===`-`;n&&(e=e.slice(1));var r=e.split(/e/i);if(r.length>2)throw Error(`Invalid integer: `+r.join(`e`));if(r.length===2){var i=r[1];if(i[0]===`+`&&(i=i.slice(1)),i=+i,i!==g(i)||!d(i))throw Error(`Invalid integer: `+i+` is not a valid exponent.`);var a=r[0],s=a.indexOf(`.`);if(s>=0&&(i-=a.length-s-1,a=a.slice(0,s)+a.slice(s+1)),i<0)throw Error(`Cannot include negative exponent part for integers`);a+=Array(i+1).join(`0`),e=a}if(!/^([0-9][0-9]*)$/.test(e))throw Error(`Invalid integer: `+e);if(o)return new u(BigInt(n?`-`+e:e));for(var f=[],p=e.length,h=7,_=p-h;p>0;)f.push(+e.slice(_,p)),_-=h,_<0&&(_=0),p-=h;return m(f),new c(f,n)}function Ce(e){if(o)return new u(BigInt(e));if(d(e)){if(e!==g(e))throw Error(e+` is not an integer.`);return new l(e)}return Se(e.toString())}function P(e){return typeof e==`number`?Ce(e):typeof e==`string`?Se(e):typeof e==`bigint`?new u(e):e}for(var we=0;we<1e3;we++)s[we]=P(we),we>0&&(s[-we]=P(-we));return s.one=s[1],s.zero=s[0],s.minusOne=s[-1],s.max=fe,s.min=pe,s.gcd=me,s.lcm=he,s.isInstance=function(e){return e instanceof c||e instanceof l||e instanceof u},s.randBetween=ge,s.fromArray=function(e,t,n){return ve(e.map(P),P(t||10),n)},s})();e.hasOwnProperty(`exports`)&&(e.exports=t)})(eN)),eN.exports}var rN=NA(nN()),iN=64,aN=16,oN=iN/aN;function sN(){try{return!0}catch{return!1}}function cN(e,t,n){let r=0;for(let i=0;ie&t[n]))}or({parts:t}){return new e(this.parts.map((e,n)=>e|t[n]))}xor({parts:t}){return new e(this.parts.map((e,n)=>e^t[n]))}not(){return new e(this.parts.map(e=>~e))}equals({parts:e}){return this.parts.every((t,n)=>t===e[n])}toString(){if(this.str!=null)return this.str;let e=Array(iN/4);return this.parts.forEach((t,n)=>{let r=lN(t.toString());for(let t=0;t<4;t++)e[t+n*4]=r[3-t]||0}),this.str=rN.fromArray(e,16).toString()}toJSON(){return this.toString()}},fN=sN();fN&&BigInt.prototype.toJSON==null&&(BigInt.prototype.toJSON=function(){return this.toString()});var pN={},mN=fN?function(e){return BigInt(e)}:function(e){return e instanceof dN?e:(typeof e==`number`&&(e=e.toString()),pN[e]??(pN[e]=dN.fromString(e)),pN[e])},hN=mN(0),gN=fN?function(e=hN,t=hN){return e&t}:function(e=hN,t=hN){return e.and(t)},_N=fN?function(e=hN,t=hN){return e|t}:function(e=hN,t=hN){return e.or(t)},vN=fN?function(e=hN,t=hN){return e^t}:function(e=hN,t=hN){return e.xor(t)},yN=fN?function(e=hN){return~e}:function(e=hN){return e.not()},bN=fN?function(e,t){return e===t}:function(e,t){return e==null||t==null?e==t:e.equals(t)};function xN(...e){let t=e[0];for(let n=1;n{let[n]=Object.entries(e).find(([,e])=>e===t)??[];return t!=null&&n===void 0?e.UNHANDLED:t},Y().or(SM()))}function MN(e){let t=vM().transform(t=>{let n=e.safeParse(t);return n.success?n.data:e._def.defaultValue()});return t.overlayType=e,t}var NN=Z.object({image_url:Z.string()}).describe(`Response for "INITIATE_IMAGE_UPLOAD" Command`),PN=Z.object({mediaUrl:Z.string().max(1024)}).describe(`Request for "OPEN_SHARE_MOMENT_DIALOG" Command`),FN=Z.object({access_token:Z.union([Z.string(),Z.null()]).optional()}).describe(`Request for "AUTHENTICATE" Command`),IN=Z.object({access_token:Z.string(),user:Z.object({username:Z.string(),discriminator:Z.string(),id:Z.string(),avatar:Z.union([Z.string(),Z.null()]).optional(),public_flags:Z.number(),global_name:Z.union([Z.string(),Z.null()]).optional()}),scopes:Z.array(MN(Z.enum(`identify,identify.premium,email,connections,guilds,guilds.join,guilds.members.read,guilds.channels.read,gdm.join,bot,rpc,rpc.notifications.read,rpc.voice.read,rpc.voice.write,rpc.video.read,rpc.video.write,rpc.screenshare.read,rpc.screenshare.write,rpc.activities.write,webhook.incoming,messages.read,applications.builds.upload,applications.builds.read,applications.commands,applications.commands.permissions.update,applications.commands.update,applications.store.update,applications.entitlements,activities.read,activities.write,activities.invites.write,relationships.read,relationships.write,voice,dm_channels.read,role_connections.write,presences.read,presences.write,openid,dm_channels.messages.read,dm_channels.messages.write,gateway.connect,account.global_name.update,payment_sources.country_code,sdk.social_layer_presence,sdk.social_layer,lobbies.write,application_identities.write`.split(`,`)).or(Z.literal(-1)).default(-1))),expires:Z.string(),application:Z.object({description:Z.string(),icon:Z.union([Z.string(),Z.null()]).optional(),id:Z.string(),rpc_origins:Z.array(Z.string()).optional(),name:Z.string()})}).describe(`Response for "AUTHENTICATE" Command`),LN=Z.object({participants:Z.array(Z.object({id:Z.string(),username:Z.string(),global_name:Z.union([Z.string(),Z.null()]).optional(),discriminator:Z.string(),avatar:Z.union([Z.string(),Z.null()]).optional(),flags:Z.number(),bot:Z.boolean(),avatar_decoration_data:Z.union([Z.object({asset:Z.union([Z.string(),Z.null()]).optional(),skuId:Z.string().optional(),expiresAt:Z.number().optional()}),Z.null()]).optional(),premium_type:Z.union([Z.number(),Z.null()]).optional(),nickname:Z.string().optional()}))}).describe(`Response for "GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS" Command`),RN=Z.object({command:Z.string(),options:Z.array(Z.object({name:Z.string(),value:Z.string()})).optional(),content:Z.string().max(2e3).optional(),require_launch_channel:Z.boolean().optional(),preview_image:Z.object({height:Z.number(),url:Z.string(),width:Z.number()}).optional(),components:Z.array(Z.object({type:Z.literal(1),components:Z.array(Z.object({type:Z.literal(2),style:Z.number().gte(1).lte(5),label:Z.string().max(80).optional(),custom_id:Z.string().max(100).describe(`Developer-defined identifier for the button; max 100 characters`).optional()})).max(5).optional()})).optional(),pid:Z.number().optional()}).describe(`Request for "SHARE_INTERACTION" Command`),zN=Z.object({success:Z.boolean()}).describe(`Response for "SHARE_INTERACTION" Command`),BN=Z.object({custom_id:Z.string().max(64).optional(),message:Z.string().max(1e3),link_id:Z.string().max(64).optional()}).describe(`Request for "SHARE_LINK" Command`),VN=Z.object({success:Z.boolean(),didCopyLink:Z.boolean(),didSendMessage:Z.boolean()}).describe(`Response for "SHARE_LINK" Command`),HN=Z.object({relationships:Z.array(Z.object({type:Z.number(),user:Z.object({id:Z.string(),username:Z.string(),global_name:Z.union([Z.string(),Z.null()]).optional(),discriminator:Z.string(),avatar:Z.union([Z.string(),Z.null()]).optional(),flags:Z.number(),bot:Z.boolean(),avatar_decoration_data:Z.union([Z.object({asset:Z.union([Z.string(),Z.null()]).optional(),skuId:Z.string().optional(),expiresAt:Z.number().optional()}),Z.null()]).optional(),premium_type:Z.union([Z.number(),Z.null()]).optional()}),presence:Z.object({status:Z.string(),activity:Z.union([Z.object({session_id:Z.string().optional(),type:Z.number().optional(),name:Z.string(),url:Z.union([Z.string(),Z.null()]).optional(),application_id:Z.string().optional(),status_display_type:Z.number().optional(),state:Z.string().optional(),state_url:Z.string().optional(),details:Z.string().optional(),details_url:Z.string().optional(),emoji:Z.union([Z.object({name:Z.string(),id:Z.union([Z.string(),Z.null()]).optional(),animated:Z.union([Z.boolean(),Z.null()]).optional()}),Z.null()]).optional(),assets:Z.object({large_image:Z.string().optional(),large_text:Z.string().optional(),large_url:Z.string().optional(),small_image:Z.string().optional(),small_text:Z.string().optional(),small_url:Z.string().optional()}).optional(),timestamps:Z.object({start:Z.number().optional(),end:Z.number().optional()}).optional(),party:Z.object({id:Z.string().optional(),size:Z.array(Z.number()).min(2).max(2).optional(),privacy:Z.number().optional()}).optional(),secrets:Z.object({match:Z.string().optional(),join:Z.string().optional()}).optional(),sync_id:Z.string().optional(),created_at:Z.number().optional(),instance:Z.boolean().optional(),flags:Z.number().optional(),metadata:Z.object({}).optional(),platform:Z.string().optional(),supported_platforms:Z.array(Z.string()).optional(),buttons:Z.array(Z.string()).optional(),hangStatus:Z.string().optional()}),Z.null()]).optional()}).optional()}))}).describe(`Response for "GET_RELATIONSHIPS" Command`),UN=Z.object({user_id:Z.string(),content:Z.string().min(0).max(1024).optional()}).describe(`Request for "INVITE_USER_EMBEDDED" Command`),WN=Z.object({id:Z.string().max(64)}).describe(`Request for "GET_USER" Command`),GN=Z.union([Z.object({id:Z.string(),username:Z.string(),global_name:Z.union([Z.string(),Z.null()]).optional(),discriminator:Z.string(),avatar:Z.union([Z.string(),Z.null()]).optional(),flags:Z.number(),bot:Z.boolean(),avatar_decoration_data:Z.union([Z.object({asset:Z.union([Z.string(),Z.null()]).optional(),skuId:Z.string().optional(),expiresAt:Z.number().optional()}),Z.null()]).optional(),premium_type:Z.union([Z.number(),Z.null()]).optional()}),Z.null()]),KN=Z.object({quest_id:Z.string()}).describe(`Request for "GET_QUEST_ENROLLMENT_STATUS" Command`),qN=Z.object({quest_id:Z.string(),is_enrolled:Z.boolean(),enrolled_at:Z.union([Z.string(),Z.null()]).optional()}).describe(`Response for "GET_QUEST_ENROLLMENT_STATUS" Command`),JN=Z.object({quest_id:Z.string()}).describe(`Request for "QUEST_START_TIMER" Command`),YN=Z.object({success:Z.boolean()}).describe(`Response for "QUEST_START_TIMER" Command`),XN=Z.object({quest_id:Z.string(),enrolled_at:Z.union([Z.string(),Z.null()]).optional(),completed_at:Z.union([Z.string(),Z.null()]).optional(),external_cta_url:Z.string()}).describe(`Response for "GET_QUEST" Command`),ZN=Z.object({ticket:Z.string()}).describe(`Response for "REQUEST_PROXY_TICKET_REFRESH" Command`),QN;(function(e){e.INITIATE_IMAGE_UPLOAD=`INITIATE_IMAGE_UPLOAD`,e.OPEN_SHARE_MOMENT_DIALOG=`OPEN_SHARE_MOMENT_DIALOG`,e.AUTHENTICATE=`AUTHENTICATE`,e.GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS=`GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS`,e.SHARE_INTERACTION=`SHARE_INTERACTION`,e.SHARE_LINK=`SHARE_LINK`,e.GET_RELATIONSHIPS=`GET_RELATIONSHIPS`,e.INVITE_USER_EMBEDDED=`INVITE_USER_EMBEDDED`,e.GET_USER=`GET_USER`,e.GET_QUEST_ENROLLMENT_STATUS=`GET_QUEST_ENROLLMENT_STATUS`,e.QUEST_START_TIMER=`QUEST_START_TIMER`,e.GET_QUEST=`GET_QUEST`,e.REQUEST_PROXY_TICKET_REFRESH=`REQUEST_PROXY_TICKET_REFRESH`})(QN||={});var $N=Z.object({}).optional().nullable(),eP=Z.void(),tP={[QN.INITIATE_IMAGE_UPLOAD]:{request:eP,response:NN},[QN.OPEN_SHARE_MOMENT_DIALOG]:{request:PN,response:$N},[QN.AUTHENTICATE]:{request:FN,response:IN},[QN.GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS]:{request:eP,response:LN},[QN.SHARE_INTERACTION]:{request:RN,response:zN},[QN.SHARE_LINK]:{request:BN,response:VN},[QN.GET_RELATIONSHIPS]:{request:eP,response:HN},[QN.INVITE_USER_EMBEDDED]:{request:UN,response:$N},[QN.GET_USER]:{request:WN,response:GN},[QN.GET_QUEST_ENROLLMENT_STATUS]:{request:KN,response:qN},[QN.QUEST_START_TIMER]:{request:JN,response:YN},[QN.GET_QUEST]:{request:eP,response:XN},[QN.REQUEST_PROXY_TICKET_REFRESH]:{request:eP,response:ZN}},nP=t({Activity:()=>_P,Attachment:()=>EP,CertifiedDevice:()=>KP,CertifiedDeviceTypeObject:()=>GP,Channel:()=>xP,ChannelMention:()=>TP,ChannelTypesObject:()=>bP,Commands:()=>iP,DISPATCH:()=>rP,Embed:()=>NP,EmbedAuthor:()=>jP,EmbedField:()=>MP,EmbedFooter:()=>DP,EmbedProvider:()=>AP,Emoji:()=>fP,Entitlement:()=>XP,EntitlementTypesObject:()=>YP,Guild:()=>wP,GuildMember:()=>uP,GuildMemberRPC:()=>dP,Image:()=>OP,KeyTypesObject:()=>BP,LayoutMode:()=>iF,LayoutModeTypeObject:()=>rF,Message:()=>RP,MessageActivity:()=>FP,MessageApplication:()=>IP,MessageReference:()=>LP,Orientation:()=>nF,OrientationLockState:()=>QP,OrientationLockStateTypeObject:()=>ZP,OrientationTypeObject:()=>tF,PermissionOverwrite:()=>yP,PermissionOverwriteTypeObject:()=>vP,PresenceUpdate:()=>SP,Reaction:()=>PP,ReceiveFramePayload:()=>aP,Relationship:()=>cP,Role:()=>CP,Scopes:()=>sP,ScopesObject:()=>oP,ShortcutKey:()=>VP,Sku:()=>JP,SkuTypeObject:()=>qP,Status:()=>gP,StatusObject:()=>hP,ThermalState:()=>eF,ThermalStateTypeObject:()=>$P,User:()=>lP,UserVoiceState:()=>mP,Video:()=>kP,VoiceDevice:()=>zP,VoiceSettingModeTypeObject:()=>HP,VoiceSettingsIO:()=>WP,VoiceSettingsMode:()=>UP,VoiceState:()=>pP}),rP=`DISPATCH`,iP;(function(e){e.AUTHORIZE=`AUTHORIZE`,e.GET_GUILDS=`GET_GUILDS`,e.GET_GUILD=`GET_GUILD`,e.GET_CHANNEL=`GET_CHANNEL`,e.GET_CHANNELS=`GET_CHANNELS`,e.SELECT_VOICE_CHANNEL=`SELECT_VOICE_CHANNEL`,e.SELECT_TEXT_CHANNEL=`SELECT_TEXT_CHANNEL`,e.SUBSCRIBE=`SUBSCRIBE`,e.UNSUBSCRIBE=`UNSUBSCRIBE`,e.CAPTURE_SHORTCUT=`CAPTURE_SHORTCUT`,e.SET_CERTIFIED_DEVICES=`SET_CERTIFIED_DEVICES`,e.SET_ACTIVITY=`SET_ACTIVITY`,e.GET_SKUS=`GET_SKUS`,e.GET_ENTITLEMENTS=`GET_ENTITLEMENTS`,e.GET_SKUS_EMBEDDED=`GET_SKUS_EMBEDDED`,e.GET_ENTITLEMENTS_EMBEDDED=`GET_ENTITLEMENTS_EMBEDDED`,e.START_PURCHASE=`START_PURCHASE`,e.SET_CONFIG=`SET_CONFIG`,e.SEND_ANALYTICS_EVENT=`SEND_ANALYTICS_EVENT`,e.USER_SETTINGS_GET_LOCALE=`USER_SETTINGS_GET_LOCALE`,e.OPEN_EXTERNAL_LINK=`OPEN_EXTERNAL_LINK`,e.ENCOURAGE_HW_ACCELERATION=`ENCOURAGE_HW_ACCELERATION`,e.CAPTURE_LOG=`CAPTURE_LOG`,e.SET_ORIENTATION_LOCK_STATE=`SET_ORIENTATION_LOCK_STATE`,e.OPEN_INVITE_DIALOG=`OPEN_INVITE_DIALOG`,e.GET_PLATFORM_BEHAVIORS=`GET_PLATFORM_BEHAVIORS`,e.GET_CHANNEL_PERMISSIONS=`GET_CHANNEL_PERMISSIONS`,e.AUTHENTICATE=`AUTHENTICATE`,e.GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS=`GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS`,e.GET_QUEST=`GET_QUEST`,e.GET_QUEST_ENROLLMENT_STATUS=`GET_QUEST_ENROLLMENT_STATUS`,e.GET_RELATIONSHIPS=`GET_RELATIONSHIPS`,e.GET_USER=`GET_USER`,e.INITIATE_IMAGE_UPLOAD=`INITIATE_IMAGE_UPLOAD`,e.INVITE_USER_EMBEDDED=`INVITE_USER_EMBEDDED`,e.OPEN_SHARE_MOMENT_DIALOG=`OPEN_SHARE_MOMENT_DIALOG`,e.QUEST_START_TIMER=`QUEST_START_TIMER`,e.REQUEST_PROXY_TICKET_REFRESH=`REQUEST_PROXY_TICKET_REFRESH`,e.SHARE_INTERACTION=`SHARE_INTERACTION`,e.SHARE_LINK=`SHARE_LINK`})(iP||={});var aP=X({cmd:Y(),data:jM(),evt:kM(),nonce:Y()}).passthrough(),oP=Object.assign(Object.assign({},IN.shape.scopes.element.overlayType._def.innerType.options[0].Values),{UNHANDLED:-1}),sP=jN(oP),cP=HN.shape.relationships.element,lP=X({id:Y(),username:Y(),discriminator:Y(),global_name:Y().optional().nullable(),avatar:Y().optional().nullable(),avatar_decoration_data:X({asset:Y(),sku_id:Y().optional()}).nullable(),bot:TM(),flags:SM().optional().nullable(),premium_type:SM().optional().nullable()}),uP=X({user:lP,nick:Y().optional().nullable(),roles:PM(Y()),joined_at:Y(),deaf:TM(),mute:TM()}),dP=X({user_id:Y(),nick:Y().optional().nullable(),guild_id:Y(),avatar:Y().optional().nullable(),avatar_decoration_data:X({asset:Y(),sku_id:Y().optional().nullable()}).optional().nullable(),color_string:Y().optional().nullable()}),fP=X({id:Y(),name:Y().optional().nullable(),roles:PM(Y()).optional().nullable(),user:lP.optional().nullable(),require_colons:TM().optional().nullable(),managed:TM().optional().nullable(),animated:TM().optional().nullable(),available:TM().optional().nullable()}),pP=X({mute:TM(),deaf:TM(),self_mute:TM(),self_deaf:TM(),suppress:TM()}),mP=X({mute:TM(),nick:Y(),user:lP,voice_state:pP,volume:SM()}),hP={UNHANDLED:-1,IDLE:`idle`,DND:`dnd`,ONLINE:`online`,OFFLINE:`offline`},gP=jN(hP),_P=X({name:Y(),type:SM(),url:Y().optional().nullable(),created_at:SM().optional().nullable(),timestamps:X({start:SM(),end:SM()}).partial().optional().nullable(),application_id:Y().optional().nullable(),details:Y().optional().nullable(),details_url:Y().url().optional().nullable(),state:Y().optional().nullable(),state_url:Y().url().optional().nullable(),emoji:fP.optional().nullable(),party:X({id:Y().optional().nullable(),size:PM(SM()).optional().nullable()}).optional().nullable(),assets:X({large_image:Y().nullable(),large_text:Y().nullable(),large_url:Y().url().optional().nullable(),small_image:Y().nullable(),small_text:Y().nullable(),small_url:Y().url().optional().nullable()}).partial().optional().nullable(),secrets:X({join:Y(),match:Y()}).partial().optional().nullable(),instance:TM().optional().nullable(),flags:SM().optional().nullable()}),vP={UNHANDLED:-1,ROLE:0,MEMBER:1},yP=X({id:Y(),type:jN(vP),allow:Y(),deny:Y()}),bP={UNHANDLED:-1,DM:1,GROUP_DM:3,GUILD_TEXT:0,GUILD_VOICE:2,GUILD_CATEGORY:4,GUILD_ANNOUNCEMENT:5,GUILD_STORE:6,ANNOUNCEMENT_THREAD:10,PUBLIC_THREAD:11,PRIVATE_THREAD:12,GUILD_STAGE_VOICE:13,GUILD_DIRECTORY:14,GUILD_FORUM:15},xP=X({id:Y(),type:jN(bP),guild_id:Y().optional().nullable(),position:SM().optional().nullable(),permission_overwrites:PM(yP).optional().nullable(),name:Y().optional().nullable(),topic:Y().optional().nullable(),nsfw:TM().optional().nullable(),last_message_id:Y().optional().nullable(),bitrate:SM().optional().nullable(),user_limit:SM().optional().nullable(),rate_limit_per_user:SM().optional().nullable(),recipients:PM(lP).optional().nullable(),icon:Y().optional().nullable(),owner_id:Y().optional().nullable(),application_id:Y().optional().nullable(),parent_id:Y().optional().nullable(),last_pin_timestamp:Y().optional().nullable()}),SP=X({user:lP,guild_id:Y(),status:gP,activities:PM(_P),client_status:X({desktop:gP,mobile:gP,web:gP}).partial()}),CP=X({id:Y(),name:Y(),color:SM(),hoist:TM(),position:SM(),permissions:Y(),managed:TM(),mentionable:TM()}),wP=X({id:Y(),name:Y(),owner_id:Y(),icon:Y().nullable(),icon_hash:Y().optional().nullable(),splash:Y().nullable(),discovery_splash:Y().nullable(),owner:TM().optional().nullable(),permissions:Y().optional().nullable(),region:Y(),afk_channel_id:Y().nullable(),afk_timeout:SM(),widget_enabled:TM().optional().nullable(),widget_channel_id:Y().optional().nullable(),verification_level:SM(),default_message_notifications:SM(),explicit_content_filter:SM(),roles:PM(CP),emojis:PM(fP),features:PM(Y()),mfa_level:SM(),application_id:Y().nullable(),system_channel_id:Y().nullable(),system_channel_flags:SM(),rules_channel_id:Y().nullable(),joined_at:Y().optional().nullable(),large:TM().optional().nullable(),unavailable:TM().optional().nullable(),member_count:SM().optional().nullable(),voice_states:PM(pP).optional().nullable(),members:PM(uP).optional().nullable(),channels:PM(xP).optional().nullable(),presences:PM(SP).optional().nullable(),max_presences:SM().optional().nullable(),max_members:SM().optional().nullable(),vanity_url_code:Y().nullable(),description:Y().nullable(),banner:Y().nullable(),premium_tier:SM(),premium_subscription_count:SM().optional().nullable(),preferred_locale:Y(),public_updates_channel_id:Y().nullable(),max_video_channel_users:SM().optional().nullable(),approximate_member_count:SM().optional().nullable(),approximate_presence_count:SM().optional().nullable()}),TP=X({id:Y(),guild_id:Y(),type:SM(),name:Y()}),EP=X({id:Y(),filename:Y(),size:SM(),url:Y(),proxy_url:Y(),height:SM().optional().nullable(),width:SM().optional().nullable()}),DP=X({text:Y(),icon_url:Y().optional().nullable(),proxy_icon_url:Y().optional().nullable()}),OP=X({url:Y().optional().nullable(),proxy_url:Y().optional().nullable(),height:SM().optional().nullable(),width:SM().optional().nullable()}),kP=OP.omit({proxy_url:!0}),AP=X({name:Y().optional().nullable(),url:Y().optional().nullable()}),jP=X({name:Y().optional().nullable(),url:Y().optional().nullable(),icon_url:Y().optional().nullable(),proxy_icon_url:Y().optional().nullable()}),MP=X({name:Y(),value:Y(),inline:TM()}),NP=X({title:Y().optional().nullable(),type:Y().optional().nullable(),description:Y().optional().nullable(),url:Y().optional().nullable(),timestamp:Y().optional().nullable(),color:SM().optional().nullable(),footer:DP.optional().nullable(),image:OP.optional().nullable(),thumbnail:OP.optional().nullable(),video:kP.optional().nullable(),provider:AP.optional().nullable(),author:jP.optional().nullable(),fields:PM(MP).optional().nullable()}),PP=X({count:SM(),me:TM(),emoji:fP}),FP=X({type:SM(),party_id:Y().optional().nullable()}),IP=X({id:Y(),cover_image:Y().optional().nullable(),description:Y(),icon:Y().optional().nullable(),name:Y()}),LP=X({message_id:Y().optional().nullable(),channel_id:Y().optional().nullable(),guild_id:Y().optional().nullable()}),RP=X({id:Y(),channel_id:Y(),guild_id:Y().optional().nullable(),author:lP.optional().nullable(),member:uP.optional().nullable(),content:Y(),timestamp:Y(),edited_timestamp:Y().optional().nullable(),tts:TM(),mention_everyone:TM(),mentions:PM(lP),mention_roles:PM(Y()),mention_channels:PM(TP),attachments:PM(EP),embeds:PM(NP),reactions:PM(PP).optional().nullable(),nonce:IM([Y(),SM()]).optional().nullable(),pinned:TM(),webhook_id:Y().optional().nullable(),type:SM(),activity:FP.optional().nullable(),application:IP.optional().nullable(),message_reference:LP.optional().nullable(),flags:SM().optional().nullable(),stickers:PM(jM()).optional().nullable(),referenced_message:jM().optional().nullable()}),zP=X({id:Y(),name:Y()}),BP={UNHANDLED:-1,KEYBOARD_KEY:0,MOUSE_BUTTON:1,KEYBOARD_MODIFIER_KEY:2,GAMEPAD_BUTTON:3},VP=X({type:jN(BP),code:SM(),name:Y()}),HP={UNHANDLED:-1,PUSH_TO_TALK:`PUSH_TO_TALK`,VOICE_ACTIVITY:`VOICE_ACTIVITY`},UP=X({type:jN(HP),auto_threshold:TM(),threshold:SM(),shortcut:PM(VP),delay:SM()}),WP=X({device_id:Y(),volume:SM(),available_devices:PM(zP)}),GP={UNHANDLED:-1,AUDIO_INPUT:`AUDIO_INPUT`,AUDIO_OUTPUT:`AUDIO_OUTPUT`,VIDEO_INPUT:`VIDEO_INPUT`},KP=X({type:jN(GP),id:Y(),vendor:X({name:Y(),url:Y()}),model:X({name:Y(),url:Y()}),related:PM(Y()),echo_cancellation:TM().optional().nullable(),noise_suppression:TM().optional().nullable(),automatic_gain_control:TM().optional().nullable(),hardware_mute:TM().optional().nullable()}),qP={UNHANDLED:-1,APPLICATION:1,DLC:2,CONSUMABLE:3,BUNDLE:4,SUBSCRIPTION:5},JP=X({id:Y(),name:Y(),type:jN(qP),price:X({amount:SM(),currency:Y()}),application_id:Y(),flags:SM(),release_date:Y().nullable()}),YP={UNHANDLED:-1,PURCHASE:1,PREMIUM_SUBSCRIPTION:2,DEVELOPER_GIFT:3,TEST_MODE_PURCHASE:4,FREE_PURCHASE:5,USER_GIFT:6,PREMIUM_PURCHASE:7},XP=X({id:Y(),sku_id:Y(),application_id:Y(),user_id:Y(),gift_code_flags:SM(),type:jN(YP),gifter_user_id:Y().optional().nullable(),branches:PM(Y()).optional().nullable(),starts_at:Y().optional().nullable(),ends_at:Y().optional().nullable(),parent_id:Y().optional().nullable(),consumed:TM().optional().nullable(),deleted:TM().optional().nullable(),gift_code_batch_id:Y().optional().nullable()}),ZP={UNHANDLED:-1,UNLOCKED:1,PORTRAIT:2,LANDSCAPE:3},QP=jN(ZP),$P={UNHANDLED:-1,NOMINAL:0,FAIR:1,SERIOUS:2,CRITICAL:3},eF=jN($P),tF={UNHANDLED:-1,PORTRAIT:0,LANDSCAPE:1},nF=jN(tF),rF={UNHANDLED:-1,FOCUSED:0,PIP:1,GRID:2},iF=jN(rF),aF=`ERROR`,oF;(function(e){e.READY=`READY`,e.VOICE_STATE_UPDATE=`VOICE_STATE_UPDATE`,e.SPEAKING_START=`SPEAKING_START`,e.SPEAKING_STOP=`SPEAKING_STOP`,e.ACTIVITY_LAYOUT_MODE_UPDATE=`ACTIVITY_LAYOUT_MODE_UPDATE`,e.ORIENTATION_UPDATE=`ORIENTATION_UPDATE`,e.CURRENT_USER_UPDATE=`CURRENT_USER_UPDATE`,e.CURRENT_GUILD_MEMBER_UPDATE=`CURRENT_GUILD_MEMBER_UPDATE`,e.ENTITLEMENT_CREATE=`ENTITLEMENT_CREATE`,e.THERMAL_STATE_UPDATE=`THERMAL_STATE_UPDATE`,e.ACTIVITY_INSTANCE_PARTICIPANTS_UPDATE=`ACTIVITY_INSTANCE_PARTICIPANTS_UPDATE`,e.RELATIONSHIP_UPDATE=`RELATIONSHIP_UPDATE`,e.ACTIVITY_JOIN=`ACTIVITY_JOIN`,e.QUEST_ENROLLMENT_STATUS_UPDATE=`QUEST_ENROLLMENT_STATUS_UPDATE`})(oF||={});var sF=aP.extend({evt:qM(oF),nonce:Y().nullable(),cmd:GM(rP),data:X({}).passthrough()}),cF=aP.extend({evt:GM(aF),data:X({code:SM(),message:Y().optional()}).passthrough(),cmd:qM(iP),nonce:Y().nullable()}),lF=IM([sF,sF.extend({evt:Y()}),cF]);function uF(e){let t=e.evt;if(!(t in oF))throw Error(`Unrecognized event type ${e.evt}`);return dF[t].payload.parse(e)}var dF={[oF.READY]:{payload:sF.extend({evt:GM(oF.READY),data:X({v:SM(),config:X({cdn_host:Y().optional(),api_endpoint:Y(),environment:Y()}),user:X({id:Y(),username:Y(),discriminator:Y(),avatar:Y().optional()}).optional()})})},[oF.VOICE_STATE_UPDATE]:{payload:sF.extend({evt:GM(oF.VOICE_STATE_UPDATE),data:mP}),subscribeArgs:X({channel_id:Y()})},[oF.SPEAKING_START]:{payload:sF.extend({evt:GM(oF.SPEAKING_START),data:X({lobby_id:Y().optional(),channel_id:Y().optional(),user_id:Y()})}),subscribeArgs:X({lobby_id:Y().nullable().optional(),channel_id:Y().nullable().optional()})},[oF.SPEAKING_STOP]:{payload:sF.extend({evt:GM(oF.SPEAKING_STOP),data:X({lobby_id:Y().optional(),channel_id:Y().optional(),user_id:Y()})}),subscribeArgs:X({lobby_id:Y().nullable().optional(),channel_id:Y().nullable().optional()})},[oF.ACTIVITY_LAYOUT_MODE_UPDATE]:{payload:sF.extend({evt:GM(oF.ACTIVITY_LAYOUT_MODE_UPDATE),data:X({layout_mode:jN(rF)})})},[oF.ORIENTATION_UPDATE]:{payload:sF.extend({evt:GM(oF.ORIENTATION_UPDATE),data:X({screen_orientation:jN(tF),orientation:qM(kN)})})},[oF.CURRENT_USER_UPDATE]:{payload:sF.extend({evt:GM(oF.CURRENT_USER_UPDATE),data:lP})},[oF.CURRENT_GUILD_MEMBER_UPDATE]:{payload:sF.extend({evt:GM(oF.CURRENT_GUILD_MEMBER_UPDATE),data:dP}),subscribeArgs:X({guild_id:Y()})},[oF.ENTITLEMENT_CREATE]:{payload:sF.extend({evt:GM(oF.ENTITLEMENT_CREATE),data:X({entitlement:XP})})},[oF.THERMAL_STATE_UPDATE]:{payload:sF.extend({evt:GM(oF.THERMAL_STATE_UPDATE),data:X({thermal_state:eF})})},[oF.ACTIVITY_INSTANCE_PARTICIPANTS_UPDATE]:{payload:sF.extend({evt:GM(oF.ACTIVITY_INSTANCE_PARTICIPANTS_UPDATE),data:X({participants:LN.shape.participants})})},[oF.RELATIONSHIP_UPDATE]:{payload:sF.extend({evt:GM(oF.RELATIONSHIP_UPDATE),data:cP})},[oF.ACTIVITY_JOIN]:{payload:sF.extend({evt:GM(oF.ACTIVITY_JOIN),data:X({applicationId:Y(),secret:Y()})})},[oF.QUEST_ENROLLMENT_STATUS_UPDATE]:{payload:sF.extend({evt:GM(oF.QUEST_ENROLLMENT_STATUS_UPDATE),data:X({quest_id:Y(),is_enrolled:TM(),enrolled_at:Y().date()})})}};function fF(e,t){throw t}var pF=X({}).nullable(),mF=X({code:Y()}),hF=X({guilds:PM(X({id:Y(),name:Y()}))}),gF=X({id:Y(),name:Y(),icon_url:Y().optional(),members:PM(uP)}),_F=X({id:Y(),type:jN(bP),guild_id:Y().optional().nullable(),name:Y().optional().nullable(),topic:Y().optional().nullable(),bitrate:SM().optional().nullable(),user_limit:SM().optional().nullable(),position:SM().optional().nullable(),voice_states:PM(mP),messages:PM(RP)}),vF=X({channels:PM(xP)});_F.nullable();var yF=_F.nullable(),bF=_F.nullable();X({input:WP,output:WP,mode:UP,automatic_gain_control:TM(),echo_cancellation:TM(),noise_suppression:TM(),qos:TM(),silence_warning:TM(),deaf:TM(),mute:TM()});var xF=X({evt:Y()}),SF=X({shortcut:VP}),CF=_P,wF=X({skus:PM(JP)}),TF=X({entitlements:PM(XP)}),EF=PM(XP).nullable(),DF=X({use_interactive_pip:TM()}),OF=X({locale:Y()}),kF=X({enabled:TM()}),AF=X({permissions:wM().or(Y())}),jF=MN(X({opened:TM().or(kM())}).default({opened:null})),MF=X({iosKeyboardResizesView:XM(TM())}),NF=aP.extend({cmd:qM(iP),evt:kM()});function PF({cmd:e,data:t}){switch(e){case iP.AUTHORIZE:return mF.parse(t);case iP.CAPTURE_SHORTCUT:return SF.parse(t);case iP.ENCOURAGE_HW_ACCELERATION:return kF.parse(t);case iP.GET_CHANNEL:return _F.parse(t);case iP.GET_CHANNELS:return vF.parse(t);case iP.GET_CHANNEL_PERMISSIONS:return AF.parse(t);case iP.GET_GUILD:return gF.parse(t);case iP.GET_GUILDS:return hF.parse(t);case iP.GET_PLATFORM_BEHAVIORS:return MF.parse(t);case iP.GET_CHANNEL:return _F.parse(t);case iP.SELECT_TEXT_CHANNEL:return bF.parse(t);case iP.SELECT_VOICE_CHANNEL:return yF.parse(t);case iP.SET_ACTIVITY:return CF.parse(t);case iP.GET_SKUS_EMBEDDED:return wF.parse(t);case iP.GET_ENTITLEMENTS_EMBEDDED:return TF.parse(t);case iP.SET_CONFIG:return DF.parse(t);case iP.START_PURCHASE:return EF.parse(t);case iP.SUBSCRIBE:case iP.UNSUBSCRIBE:return xF.parse(t);case iP.USER_SETTINGS_GET_LOCALE:return OF.parse(t);case iP.OPEN_EXTERNAL_LINK:return jF.parse(t);case iP.SET_ORIENTATION_LOCK_STATE:case iP.SET_CERTIFIED_DEVICES:case iP.SEND_ANALYTICS_EVENT:case iP.OPEN_INVITE_DIALOG:case iP.CAPTURE_LOG:case iP.GET_SKUS:case iP.GET_ENTITLEMENTS:return pF.parse(t);case iP.AUTHENTICATE:case iP.GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS:case iP.GET_QUEST:case iP.GET_QUEST_ENROLLMENT_STATUS:case iP.GET_RELATIONSHIPS:case iP.GET_USER:case iP.INITIATE_IMAGE_UPLOAD:case iP.INVITE_USER_EMBEDDED:case iP.OPEN_SHARE_MOMENT_DIALOG:case iP.QUEST_START_TIMER:case iP.REQUEST_PROXY_TICKET_REFRESH:case iP.SHARE_INTERACTION:case iP.SHARE_LINK:let{response:n}=tP[e];return n.parse(t);default:fF(e,Error(`Unrecognized command ${e}`))}}function FF(e){return Object.assign(Object.assign({},e),{data:PF(e)})}X({frame_id:Y(),platform:qM(AN).optional().nullable()}),X({v:GM(1),encoding:GM(`json`).optional(),client_id:Y(),frame_id:Y()});var IF=X({code:SM(),message:Y().optional()}),LF=X({evt:Y().nullable(),nonce:Y().nullable(),data:jM().nullable(),cmd:Y()}).passthrough();function RF(e){let t=LF.parse(e);return t.evt==null?FF(NF.passthrough().parse(t)):t.evt===`ERROR`?cF.parse(t):uF(lF.parse(t))}function zF(e,t,n,r=()=>void 0){let i=aP.extend({cmd:GM(t),data:n});return async n=>{let a=await e({cmd:t,args:n,transfer:r(n)});return i.parse(a).data}}function BF(e,t=()=>void 0){let n=tP[e].response,r=aP.extend({cmd:GM(e),data:n});return n=>async i=>{let a=await n({cmd:e,args:i,transfer:t(i)});return r.parse(a).data}}var VF=e=>zF(e,iP.AUTHORIZE,mF),HF=e=>zF(e,iP.CAPTURE_LOG,pF),UF=e=>zF(e,iP.ENCOURAGE_HW_ACCELERATION,kF),WF=e=>zF(e,iP.GET_CHANNEL,_F),GF=e=>zF(e,iP.GET_ENTITLEMENTS_EMBEDDED,TF),KF=e=>zF(e,iP.GET_SKUS_EMBEDDED,wF),qF=e=>zF(e,iP.GET_CHANNEL_PERMISSIONS,AF),JF=e=>zF(e,iP.GET_PLATFORM_BEHAVIORS,MF),YF=e=>zF(e,iP.OPEN_EXTERNAL_LINK,jF),XF=e=>zF(e,iP.OPEN_INVITE_DIALOG,pF);_P.pick({state:!0,state_url:!0,details:!0,details_url:!0,timestamps:!0,assets:!0,party:!0,secrets:!0,instance:!0,type:!0}).extend({type:_P.shape.type.optional(),instance:_P.shape.instance.optional()}).nullable();var ZF=e=>zF(e,iP.SET_ACTIVITY,CF),QF=e=>zF(e,iP.SET_CONFIG,DF);function $F({sendCommand:e,cmd:t,response:n,fallbackTransform:r,transferTransform:i=()=>void 0}){let a=aP.extend({cmd:GM(t),data:n});return async n=>{try{let r=await e({cmd:t,args:n,transfer:i(n)});return a.parse(r).data}catch(o){if(o.code===ON.INVALID_PAYLOAD){let o=r(n),s=await e({cmd:t,args:o,transfer:i(o)});return a.parse(s).data}throw o}}}var eI=e=>({lock_state:e.lock_state,picture_in_picture_lock_state:e.picture_in_picture_lock_state}),tI=e=>$F({sendCommand:e,cmd:iP.SET_ORIENTATION_LOCK_STATE,response:pF,fallbackTransform:eI}),nI=e=>zF(e,iP.START_PURCHASE,EF),rI=e=>zF(e,iP.USER_SETTINGS_GET_LOCALE,OF),iI=BF(QN.AUTHENTICATE),aI=BF(QN.GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS),oI=BF(QN.GET_QUEST),sI=BF(QN.GET_QUEST_ENROLLMENT_STATUS),cI=BF(QN.GET_RELATIONSHIPS),lI=BF(QN.GET_USER),uI=BF(QN.INITIATE_IMAGE_UPLOAD),dI=BF(QN.INVITE_USER_EMBEDDED),fI=BF(QN.OPEN_SHARE_MOMENT_DIALOG),pI=BF(QN.QUEST_START_TIMER),mI=BF(QN.REQUEST_PROXY_TICKET_REFRESH),hI=BF(QN.SHARE_INTERACTION),gI=BF(QN.SHARE_LINK);function _I(e){return{authorize:VF(e),captureLog:HF(e),encourageHardwareAcceleration:UF(e),getChannel:WF(e),getChannelPermissions:qF(e),getEntitlements:GF(e),getPlatformBehaviors:JF(e),getSkus:KF(e),openExternalLink:YF(e),openInviteDialog:XF(e),setActivity:ZF(e),setConfig:QF(e),setOrientationLockState:tI(e),startPurchase:nI(e),userSettingsGetLocale:rI(e),getInstanceConnectedParticipants:aI(e),authenticate:iI(e),getActivityInstanceConnectedParticipants:aI(e),getQuest:oI(e),getQuestEnrollmentStatus:sI(e),getRelationships:cI(e),getUser:lI(e),initiateImageUpload:uI(e),inviteUserEmbedded:dI(e),openShareMomentDialog:fI(e),questStartTimer:pI(e),requestProxyTicketRefresh:mI(e),shareInteraction:hI(e),shareLink:gI(e)}}var vI=class extends Error{constructor(e,t=``){super(t),this.code=e,this.message=t,this.name=`Discord SDK Error`}};function yI(){return{disableConsoleLogOverride:!1}}var bI=[`log`,`warn`,`debug`,`info`,`error`];function xI(e,t,n){let r=e[t],i=e;r&&(e[t]=function(){let e=[].slice.call(arguments);n(t,``+e.join(` `)),r.apply(i,e)})}var SI=`2.5.0`,CI={randomUUID:typeof crypto<`u`&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},wI,TI=new Uint8Array(16);function EI(){if(!wI){if(typeof crypto>`u`||!crypto.getRandomValues)throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);wI=crypto.getRandomValues.bind(crypto)}return wI(TI)}var DI=[];for(let e=0;e<256;++e)DI.push((e+256).toString(16).slice(1));function OI(e,t=0){return(DI[e[t+0]]+DI[e[t+1]]+DI[e[t+2]]+DI[e[t+3]]+`-`+DI[e[t+4]]+DI[e[t+5]]+`-`+DI[e[t+6]]+DI[e[t+7]]+`-`+DI[e[t+8]]+DI[e[t+9]]+`-`+DI[e[t+10]]+DI[e[t+11]]+DI[e[t+12]]+DI[e[t+13]]+DI[e[t+14]]+DI[e[t+15]]).toLowerCase()}function kI(e,t,n){if(CI.randomUUID&&!t&&!e)return CI.randomUUID();e||={};let r=e.random??e.rng?.()??EI();if(r.length<16)throw Error(`Random bytes length must be >= 16`);return r[6]=r[6]&15|64,r[8]=r[8]&63|128,OI(r)}var AI;(function(e){e[e.HANDSHAKE=0]=`HANDSHAKE`,e[e.FRAME=1]=`FRAME`,e[e.CLOSE=2]=`CLOSE`,e[e.HELLO=3]=`HELLO`})(AI||={});var jI=new Set(MI());function MI(){return typeof window>`u`?[]:[window.location.origin,`https://discord.com`,`https://discordapp.com`,`https://ptb.discord.com`,`https://ptb.discordapp.com`,`https://canary.discord.com`,`https://canary.discordapp.com`,`https://staging.discord.co`,`http://localhost:3333`,`https://pax.discord.com`,`null`]}function NI(){return[window.parent.opener??window.parent,document.referrer?document.referrer:`*`]}var PI=class{getTransfer(e){switch(e.cmd){case iP.SUBSCRIBE:case iP.UNSUBSCRIBE:return;default:return e.transfer??void 0}}constructor(e,t){if(this.sdkVersion=SI,this.mobileAppVersion=null,this.source=null,this.sourceOrigin=``,this.eventBus=new LA,this.pendingCommands=new Map,this.sendCommand=e=>{var t;if(this.source==null)throw Error(`Attempting to send message before initialization`);let n=kI();return(t=this.source)==null||t.postMessage([AI.FRAME,Object.assign(Object.assign({},e),{nonce:n})],this.sourceOrigin,this.getTransfer(e)),new Promise((e,t)=>{this.pendingCommands.set(n,{resolve:e,reject:t})})},this.commands=_I(this.sendCommand),this.handleMessage=e=>{if(!jI.has(e.origin))return;let t=e.data;if(!Array.isArray(t))return;let[n,r]=t;switch(n){case AI.HELLO:return;case AI.CLOSE:return this.handleClose(r);case AI.HANDSHAKE:return this.handleHandshake();case AI.FRAME:return this.handleFrame(r);default:throw Error(`Invalid message format`)}},this.isReady=!1,this.clientId=e,this.configuration=t??yI(),typeof window<`u`&&window.addEventListener(`message`,this.handleMessage),typeof window>`u`){this.frameId=``,this.instanceId=``,this.customId=null,this.referrerId=null,this.platform=AN.DESKTOP,this.guildId=null,this.channelId=null,this.locationId=null;return}let n=new URLSearchParams(this._getSearch()),r=n.get(`frame_id`);if(!r)throw Error(`frame_id query param is not defined`);this.frameId=r;let i=n.get(`instance_id`);if(!i)throw Error(`instance_id query param is not defined`);this.instanceId=i;let a=n.get(`platform`);if(!a)throw Error(`platform query param is not defined`);if(a!==AN.DESKTOP&&a!==AN.MOBILE)throw Error(`Invalid query param "platform" of "${a}". Valid values are "${AN.DESKTOP}" or "${AN.MOBILE}"`);this.platform=a,this.customId=n.get(`custom_id`),this.referrerId=n.get(`referrer_id`),this.guildId=n.get(`guild_id`),this.channelId=n.get(`channel_id`),this.locationId=n.get(`location_id`),this.mobileAppVersion=n.get(`mobile_app_version`),[this.source,this.sourceOrigin]=NI(),this.addOnReadyListener(),this.handshake()}close(e,t){var n;window.removeEventListener(`message`,this.handleMessage);let r=kI();(n=this.source)==null||n.postMessage([AI.CLOSE,{code:e,message:t,nonce:r}],this.sourceOrigin)}async subscribe(e,t,...n){let[r]=n,i=this.eventBus.listenerCount(e),a=this.eventBus.on(e,t);return Object.values(oF).includes(e)&&e!==oF.READY&&i===0&&await this.sendCommand({cmd:iP.SUBSCRIBE,args:r,evt:e}),a}async unsubscribe(e,t,...n){let[r]=n;return e!==oF.READY&&this.eventBus.listenerCount(e)===1&&await this.sendCommand({cmd:iP.UNSUBSCRIBE,evt:e,args:r}),this.eventBus.off(e,t)}async ready(){this.isReady||await new Promise(e=>{this.eventBus.once(oF.READY,e)})}parseMajorMobileVersion(){if(this.mobileAppVersion&&this.mobileAppVersion.includes(`.`))try{return parseInt(this.mobileAppVersion.split(`.`)[0])}catch{return-1}return-1}handshake(){var e;let t={v:1,encoding:`json`,client_id:this.clientId,frame_id:this.frameId},n=this.parseMajorMobileVersion();(this.platform===AN.DESKTOP||n>=250)&&(t.sdk_version=this.sdkVersion),(e=this.source)==null||e.postMessage([AI.HANDSHAKE,t],this.sourceOrigin)}addOnReadyListener(){this.eventBus.once(oF.READY,()=>{this.overrideConsoleLogging(),this.isReady=!0})}overrideConsoleLogging(){if(this.configuration.disableConsoleLogOverride)return;let e=(e,t)=>{this.commands.captureLog({level:e,message:t})};bI.forEach(t=>{xI(console,t,e)})}handleClose(e){IF.parse(e)}handleHandshake(){}handleFrame(e){var t,n;let r;try{r=RF(e)}catch(t){console.error(`Failed to parse`,e),console.error(t);return}if(r.cmd===`DISPATCH`)this.eventBus.emit(r.evt,r.data);else{if(r.evt===`ERROR`){if(r.nonce!=null){(t=this.pendingCommands.get(r.nonce))==null||t.reject(r.data),this.pendingCommands.delete(r.nonce);return}this.eventBus.emit(`error`,new vI(r.data.code,r.data.message))}if(r.nonce==null){console.error(`Missing nonce`,e);return}(n=this.pendingCommands.get(r.nonce))==null||n.resolve(r),this.pendingCommands.delete(r.nonce)}}_getSearch(){return typeof window>`u`?``:window.location.search}},FI=1e9,II={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:`2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286`},LI=!0,RI=`[DecimalError] `,zI=RI+`Invalid argument: `,BI=RI+`Exponent out of range: `,VI=Math.floor,HI=Math.pow,UI=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,WI,GI=1e7,KI=7,qI=9007199254740991,JI=VI(qI/KI),YI={};YI.absoluteValue=YI.abs=function(){var e=new this.constructor(this);return e.s&&=1,e},YI.comparedTo=YI.cmp=function(e){var t,n,r,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(r=a.d.length,i=e.d.length,t=0,n=re.d[t]^a.s<0?1:-1;return r===i?0:r>i^a.s<0?1:-1},YI.decimalPlaces=YI.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*KI;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n},YI.dividedBy=YI.div=function(e){return $I(this,new this.constructor(e))},YI.dividedToIntegerBy=YI.idiv=function(e){var t=this,n=t.constructor;return oL($I(t,new n(e),0,1),n.precision)},YI.equals=YI.eq=function(e){return!this.cmp(e)},YI.exponent=function(){return tL(this)},YI.greaterThan=YI.gt=function(e){return this.cmp(e)>0},YI.greaterThanOrEqualTo=YI.gte=function(e){return this.cmp(e)>=0},YI.isInteger=YI.isint=function(){return this.e>this.d.length-2},YI.isNegative=YI.isneg=function(){return this.s<0},YI.isPositive=YI.ispos=function(){return this.s>0},YI.isZero=function(){return this.s===0},YI.lessThan=YI.lt=function(e){return this.cmp(e)<0},YI.lessThanOrEqualTo=YI.lte=function(e){return this.cmp(e)<1},YI.logarithm=YI.log=function(e){var t,n=this,r=n.constructor,i=r.precision,a=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(WI))throw Error(RI+`NaN`);if(n.s<1)throw Error(RI+(n.s?`NaN`:`-Infinity`));return n.eq(WI)?new r(0):(LI=!1,t=$I(iL(n,a),iL(e,a),a),LI=!0,oL(t,i))},YI.minus=YI.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?sL(t,e):XI(t,(e.s=-e.s,e))},YI.modulo=YI.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(RI+`NaN`);return n.s?(LI=!1,t=$I(n,e,0,1).times(e),LI=!0,n.minus(t)):oL(new r(n),i)},YI.naturalExponential=YI.exp=function(){return eL(this)},YI.naturalLogarithm=YI.ln=function(){return iL(this)},YI.negated=YI.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},YI.plus=YI.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?XI(t,e):sL(t,(e.s=-e.s,e))},YI.precision=YI.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(zI+e);if(t=tL(i)+1,r=i.d.length-1,n=r*KI+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},YI.squareRoot=YI.sqrt=function(){var e,t,n,r,i,a,o,s=this,c=s.constructor;if(s.s<1){if(!s.s)return new c(0);throw Error(RI+`NaN`)}for(e=tL(s),LI=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=QI(s.d),(t.length+e)%2==0&&(t+=`0`),i=Math.sqrt(t),e=VI((e+1)/2)-(e<0||e%2),i==1/0?t=`5e`+e:(t=i.toExponential(),t=t.slice(0,t.indexOf(`e`)+1)+e),r=new c(t)):r=new c(i.toString()),n=c.precision,i=o=n+3;;)if(a=r,r=a.plus($I(s,a,o+2)).times(.5),QI(a.d).slice(0,o)===(t=QI(r.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t==`4999`){if(oL(a,n+1,0),a.times(a).eq(s)){r=a;break}}else if(t!=`9999`)break;o+=4}return LI=!0,oL(r,n)},YI.times=YI.mul=function(e){var t,n,r,i,a,o,s,c,l,u=this,d=u.constructor,f=u.d,p=(e=new d(e)).d;if(!u.s||!e.s)return new d(0);for(e.s*=u.s,n=u.e+e.e,c=f.length,l=p.length,c=0;){for(t=0,i=c+r;i>r;)s=a[i]+p[r]*f[i-r-1]+t,a[i--]=s%GI|0,t=s/GI|0;a[i]=(a[i]+t)%GI|0}for(;!a[--o];)a.pop();return t?++n:a.shift(),e.d=a,e.e=n,LI?oL(e,d.precision):e},YI.toDecimalPlaces=YI.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(ZI(e,0,FI),t===void 0?t=r.rounding:ZI(t,0,8),oL(n,e+tL(n)+1,t))},YI.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=cL(r,!0):(ZI(e,0,FI),t===void 0?t=i.rounding:ZI(t,0,8),r=oL(new i(r),e+1,t),n=cL(r,!0,e+1)),n},YI.toFixed=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?cL(i):(ZI(e,0,FI),t===void 0?t=a.rounding:ZI(t,0,8),r=oL(new a(i),e+tL(i)+1,t),n=cL(r.abs(),!1,e+tL(r)+1),i.isneg()&&!i.isZero()?`-`+n:n)},YI.toInteger=YI.toint=function(){var e=this,t=e.constructor;return oL(new t(e),tL(e)+1,t.rounding)},YI.toNumber=function(){return+this},YI.toPower=YI.pow=function(e){var t,n,r,i,a,o,s=this,c=s.constructor,l=12,u=+(e=new c(e));if(!e.s)return new c(WI);if(s=new c(s),!s.s){if(e.s<1)throw Error(RI+`Infinity`);return s}if(s.eq(WI))return s;if(r=c.precision,e.eq(WI))return oL(s,r);if(t=e.e,n=e.d.length-1,o=t>=n,a=s.s,!o){if(a<0)throw Error(RI+`NaN`)}else if((n=u<0?-u:u)<=qI){for(i=new c(WI),t=Math.ceil(r/KI+4),LI=!1;n%2&&(i=i.times(s),lL(i.d,t)),n=VI(n/2),n!==0;)s=s.times(s),lL(s.d,t);return LI=!0,e.s<0?new c(WI).div(i):oL(i,r)}return a=a<0&&e.d[Math.max(t,n)]&1?-1:1,s.s=1,LI=!1,i=e.times(iL(s,r+l)),LI=!0,i=eL(i),i.s=a,i},YI.toPrecision=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?(n=tL(i),r=cL(i,n<=a.toExpNeg||n>=a.toExpPos)):(ZI(e,1,FI),t===void 0?t=a.rounding:ZI(t,0,8),i=oL(new a(i),e,t),n=tL(i),r=cL(i,e<=n||n<=a.toExpNeg,e)),r},YI.toSignificantDigits=YI.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(ZI(e,1,FI),t===void 0?t=r.rounding:ZI(t,0,8)),oL(new r(n),e,t)},YI.toString=YI.valueOf=YI.val=YI.toJSON=YI[Symbol.for(`nodejs.util.inspect.custom`)]=function(){var e=this,t=tL(e),n=e.constructor;return cL(e,t<=n.toExpNeg||t>=n.toExpPos)};function XI(e,t){var n,r,i,a,o,s,c,l,u=e.constructor,d=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),LI?oL(t,d):t;if(c=e.d,l=t.d,o=e.e,i=t.e,c=c.slice(),a=o-i,a){for(a<0?(r=c,a=-a,s=l.length):(r=l,i=o,s=c.length),o=Math.ceil(d/KI),s=o>s?o+1:s+1,a>s&&(a=s,r.length=1),r.reverse();a--;)r.push(0);r.reverse()}for(s=c.length,a=l.length,s-a<0&&(a=s,r=l,l=c,c=r),n=0;a;)n=(c[--a]=c[a]+l[a]+n)/GI|0,c[a]%=GI;for(n&&(c.unshift(n),++i),s=c.length;c[--s]==0;)c.pop();return t.d=c,t.e=i,LI?oL(t,d):t}function ZI(e,t,n){if(e!==~~e||en)throw Error(zI+e)}function QI(e){var t,n,r,i=e.length-1,a=``,o=e[0];if(i>0){for(a+=o,t=1;tr?1:-1;else for(i=a=0;it[i]?1:-1;break}return a}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=+(e[n]1;)e.shift()}return function(r,i,a,o){var s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T=r.constructor,E=r.s==i.s?1:-1,D=r.d,O=i.d;if(!r.s)return new T(r);if(!i.s)throw Error(RI+`Division by zero`);for(c=r.e-i.e,C=O.length,x=D.length,p=new T(E),m=p.d=[],l=0;O[l]==(D[l]||0);)++l;if(O[l]>(D[l]||0)&&--c,v=a==null?a=T.precision:o?a+(tL(r)-tL(i))+1:a,v<0)return new T(0);if(v=v/KI+2|0,l=0,C==1)for(u=0,O=O[0],v++;(l1&&(O=e(O,u),D=e(D,u),C=O.length,x=D.length),b=C,h=D.slice(0,C),g=h.length;g=GI/2&&++S;do u=0,s=t(O,h,C,g),s<0?(_=h[0],C!=g&&(_=_*GI+(h[1]||0)),u=_/S|0,u>1?(u>=GI&&(u=GI-1),d=e(O,u),f=d.length,g=h.length,s=t(d,h,f,g),s==1&&(u--,n(d,C16)throw Error(BI+tL(e));if(!e.s)return new u(WI);for(t==null?(LI=!1,s=d):s=t,o=new u(.03125);e.abs().gte(.1);)e=e.times(o),l+=5;for(r=Math.log(HI(2,l))/Math.LN10*2+5|0,s+=r,n=i=a=new u(WI),u.precision=s;;){if(i=oL(i.times(e),s),n=n.times(++c),o=a.plus($I(i,n,s)),QI(o.d).slice(0,s)===QI(a.d).slice(0,s)){for(;l--;)a=oL(a.times(a),s);return u.precision=d,t==null?(LI=!0,oL(a,d)):a}a=o}}function tL(e){for(var t=e.e*KI,n=e.d[0];n>=10;n/=10)t++;return t}function nL(e,t,n){if(t>e.LN10.sd())throw LI=!0,n&&(e.precision=n),Error(RI+`LN10 precision limit exceeded`);return oL(new e(e.LN10),t)}function rL(e){for(var t=``;e--;)t+=`0`;return t}function iL(e,t){var n,r,i,a,o,s,c,l,u,d=1,f=10,p=e,m=p.d,h=p.constructor,g=h.precision;if(p.s<1)throw Error(RI+(p.s?`NaN`:`-Infinity`));if(p.eq(WI))return new h(0);if(t==null?(LI=!1,l=g):l=t,p.eq(10))return t??(LI=!0),nL(h,l);if(l+=f,h.precision=l,n=QI(m),r=n.charAt(0),a=tL(p),Math.abs(a)<0x5543df729c000){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)p=p.times(e),n=QI(p.d),r=n.charAt(0),d++;a=tL(p),r>1?(p=new h(`0.`+n),a++):p=new h(r+`.`+n.slice(1))}else return c=nL(h,l+2,g).times(a+``),p=iL(new h(r+`.`+n.slice(1)),l-f).plus(c),h.precision=g,t==null?(LI=!0,oL(p,g)):p;for(s=o=p=$I(p.minus(WI),p.plus(WI),l),u=oL(p.times(p),l),i=3;;){if(o=oL(o.times(u),l),c=s.plus($I(o,new h(i),l)),QI(c.d).slice(0,l)===QI(s.d).slice(0,l))return s=s.times(2),a!==0&&(s=s.plus(nL(h,l+2,g).times(a+``))),s=$I(s,new h(d),l),h.precision=g,t==null?(LI=!0,oL(s,g)):s;s=c,i+=2}}function aL(e,t){var n,r,i;for((n=t.indexOf(`.`))>-1&&(t=t.replace(`.`,``)),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=VI(n/KI),e.d=[],r=(n+1)%KI,n<0&&(r+=KI),rJI||e.e<-JI))throw Error(BI+n)}else e.s=0,e.e=0,e.d=[0];return e}function oL(e,t,n){var r,i,a,o,s,c,l,u,d=e.d;for(o=1,a=d[0];a>=10;a/=10)o++;if(r=t-o,r<0)r+=KI,i=t,l=d[u=0];else{if(u=Math.ceil((r+1)/KI),a=d.length,u>=a)return e;for(l=a=d[u],o=1;a>=10;a/=10)o++;r%=KI,i=r-KI+o}if(n!==void 0&&(a=HI(10,o-i-1),s=l/a%10|0,c=t<0||d[u+1]!==void 0||l%a,c=n<4?(s||c)&&(n==0||n==(e.s<0?3:2)):s>5||s==5&&(n==4||c||n==6&&(r>0?i>0?l/HI(10,o-i):0:d[u-1])%10&1||n==(e.s<0?8:7))),t<1||!d[0])return c?(a=tL(e),d.length=1,t=t-a-1,d[0]=HI(10,(KI-t%KI)%KI),e.e=VI(-t/KI)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(r==0?(d.length=u,a=1,u--):(d.length=u+1,a=HI(10,KI-r),d[u]=i>0?(l/HI(10,o-i)%HI(10,i)|0)*a:0),c)for(;;)if(u==0){(d[0]+=a)==GI&&(d[0]=1,++e.e);break}else{if(d[u]+=a,d[u]!=GI)break;d[u--]=0,a=1}for(r=d.length;d[--r]===0;)d.pop();if(LI&&(e.e>JI||e.e<-JI))throw Error(BI+tL(e));return e}function sL(e,t){var n,r,i,a,o,s,c,l,u,d,f=e.constructor,p=f.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new f(e),LI?oL(t,p):t;if(c=e.d,d=t.d,r=t.e,l=e.e,c=c.slice(),o=l-r,o){for(u=o<0,u?(n=c,o=-o,s=d.length):(n=d,r=l,s=c.length),i=Math.max(Math.ceil(p/KI),s)+2,o>i&&(o=i,n.length=1),n.reverse(),i=o;i--;)n.push(0);n.reverse()}else{for(i=c.length,s=d.length,u=i0;--i)c[s++]=0;for(i=d.length;i>o;){if(c[--i]0?a=a.charAt(0)+`.`+a.slice(1)+rL(r):o>1&&(a=a.charAt(0)+`.`+a.slice(1)),a=a+(i<0?`e`:`e+`)+i):i<0?(a=`0.`+rL(-i-1)+a,n&&(r=n-o)>0&&(a+=rL(r))):i>=o?(a+=rL(i+1-o),n&&(r=n-i-1)>0&&(a=a+`.`+rL(r))):((r=i+1)0&&(i+1===o&&(a+=`.`),a+=rL(r))),e.s<0?`-`+a:a}function lL(e,t){if(e.length>t)return e.length=t,!0}function uL(e){var t,n,r;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i)t.s=e.s,t.e=e.e,t.d=(e=e.d)?e.slice():e;else{if(typeof e==`number`){if(e*0!=0)throw Error(zI+e);if(e>0)t.s=1;else if(e<0)e=-e,t.s=-1;else{t.s=0,t.e=0,t.d=[0];return}if(e===~~e&&e<1e7){t.e=0,t.d=[e];return}return aL(t,e.toString())}if(typeof e!=`string`)throw Error(zI+e);if(e.charCodeAt(0)===45?(e=e.slice(1),t.s=-1):t.s=1,UI.test(e))aL(t,e);else throw Error(zI+e)}}if(i.prototype=YI,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=uL,i.config=i.set=dL,e===void 0&&(e={}),e)for(r=[`precision`,`rounding`,`toExpNeg`,`toExpPos`,`LN10`],t=0;t=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(zI+n+`: `+r)}if((r=e[n=`LN10`])!==void 0){if(r==Math.LN10)this[n]=new this(r);else throw Error(zI+n+`: `+r)}return this}WI=new(uL(II))(1);var Q;(function(e){e.AED=`aed`,e.AFN=`afn`,e.ALL=`all`,e.AMD=`amd`,e.ANG=`ang`,e.AOA=`aoa`,e.ARS=`ars`,e.AUD=`aud`,e.AWG=`awg`,e.AZN=`azn`,e.BAM=`bam`,e.BBD=`bbd`,e.BDT=`bdt`,e.BGN=`bgn`,e.BHD=`bhd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Q.XCD,Q.XDR,Q.XFU,Q.XOF,Q.XPD,Q.XPF,Q.XPT,Q.XSU,Q.XTS,Q.XUA,Q.YER,Q.ZAR,Q.ZMW,Q.ZWL;var fL={exports:{}};fL.exports;var pL;function mL(){return pL||(pL=1,(function(e,t){var n=`__lodash_hash_undefined__`,r=9007199254740991,i=`[object Arguments]`,a=`[object Array]`,o=`[object Boolean]`,s=`[object Date]`,c=`[object Error]`,l=`[object Function]`,u=`[object Map]`,d=`[object Number]`,f=`[object Object]`,p=`[object Promise]`,m=`[object RegExp]`,h=`[object Set]`,g=`[object String]`,_=`[object Symbol]`,v=`[object WeakMap]`,y=`[object ArrayBuffer]`,b=`[object DataView]`,x=`[object Float32Array]`,S=`[object Float64Array]`,C=`[object Int8Array]`,w=`[object Int16Array]`,T=`[object Int32Array]`,E=`[object Uint8Array]`,D=`[object Uint8ClampedArray]`,O=`[object Uint16Array]`,k=`[object Uint32Array]`,ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,A=/^\w*$/,te=/^\./,j=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,M=/[\\^$.*+?()[\]{}|]/g,ne=/\\(\\)?/g,re=/^\[object .+?Constructor\]$/,ie=/^(?:0|[1-9]\d*)$/,N={};N[x]=N[S]=N[C]=N[w]=N[T]=N[E]=N[D]=N[O]=N[k]=!0,N[i]=N[a]=N[y]=N[o]=N[b]=N[s]=N[c]=N[l]=N[u]=N[d]=N[f]=N[m]=N[h]=N[g]=N[v]=!1;var ae=typeof MA==`object`&&MA&&MA.Object===Object&&MA,oe=typeof self==`object`&&self&&self.Object===Object&&self,se=ae||oe||globalThis,ce=t&&!t.nodeType&&t,le=ce&&e&&!e.nodeType&&e,ue=le&&le.exports===ce&&ae.process,de=function(){try{return ue&&ue.binding(`util`)}catch{}}(),fe=de&&de.isTypedArray;function pe(e,t){for(var n=-1,r=e?e.length:0;++n-1}function st(e,t){var n=this.__data__,r=wt(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}nt.prototype.clear=rt,nt.prototype.delete=it,nt.prototype.get=at,nt.prototype.has=ot,nt.prototype.set=st;function ct(e){var t=-1,n=e?e.length:0;for(this.clear();++ts))return!1;var l=a.get(e);if(l&&a.get(t))return l==t;var u=-1,d=!0,f=i&1?new mt:void 0;for(a.set(e,t),a.set(t,e);++u-1&&e%1==0&&e-1&&e%1==0&&e<=r}function gn(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function _n(e){return!!e&&typeof e==`object`}function vn(e){return typeof e==`symbol`||_n(e)&&De.call(e)==_}var yn=fe?_e(fe):Pt;function bn(e){return e==null?``:Bt(e)}function xn(e,t,n){var r=e==null?void 0:Ot(e,t);return r===void 0?n:r}function Sn(e,t){return e!=null&&Xt(e,t,At)}function Cn(e){return fn(e)?Ct(e):It(e)}function wn(e,t,n){var r=dn(e)||yn(e);if(t=Ft(t),n==null){if(r||gn(e)){var i=e.constructor;n=r?dn(e)?new i:[]:mn(i)?Tt(je(e)):{}}else n={}}return(r?pe:Dt)(e,function(e,r,i){return t(n,e,r,i)}),n}function Tn(e){return e}function En(e){return Qt(e)?he(on(e)):zt(e)}e.exports=wn})(fL,fL.exports)),fL.exports}mL();var{Commands:hL}=nP,gL=[`identify`,`guilds.members.read`];function _L(e,t){if(e instanceof TA)return e;if(typeof e==`object`&&e&&`code`in e){let n=e.code,r=Object.values(ON).filter(e=>typeof e==`number`);if(typeof n==`number`&&r.includes(n))return new TA(`${t}_${n}`)}return new TA(t)}var vL=15e3,yL=12e4,bL=15e3;function xL(e=window.location.search){let t=new URLSearchParams(e),n=t.getAll(`frame_id`),r=t.getAll(`platform`);if(n.length!==1||n[0]===void 0||n[0].length===0||n[0].length>255||r.length!==1||![`desktop`,`mobile`].includes(r[0]??``))throw new TA(`invalid_launch`)}async function SL(e,t,n,r,i){let a=null,o=new Promise((e,n)=>{t!==void 0&&(a=()=>n(new TA(`cancelled`)),t.addEventListener(`abort`,a,{once:!0}),t.aborted&&a())}),s=null,c=new Promise((e,t)=>{s=setTimeout(()=>t(new TA(r)),i)}),l=Promise.resolve().then(()=>{if(t?.aborted)throw new TA(`cancelled`);return e()}).catch(e=>{throw _L(e,n)});try{return await Promise.race([l,o,c])}finally{s!==null&&clearTimeout(s),t!==void 0&&a!==null&&t.removeEventListener(`abort`,a)}}var CL=class{makeSDK;sdk=null;authenticated=!1;closed=!1;constructor(e=e=>new PI(e)){this.makeSDK=e}async authorize(e){let t=DA();xL();let n=await kA(t,e),r=this.open(n.client_id),i=()=>{if(e?.aborted)throw new TA(`cancelled`)};try{if(i(),await SL(()=>r.ready(),e,`sdk_ready_failed`,`sdk_ready_timeout`,vL),i(),r.instanceId!==t)throw new TA(`instance_mismatch`);let a=await SL(()=>r.commands.authorize({client_id:n.client_id,response_type:`code`,state:n.state,prompt:`none`,scope:[...gL]}),e,`authorize_failed`,`authorize_timeout`,yL);i();let o=await AA(a.code,n.state,e);if(i(),!this.authenticated){if(await SL(()=>r.commands.authenticate({access_token:o.access_token}),e,`sdk_authenticate_failed`,`sdk_authenticate_timeout`,bL)==null)throw new TA(`sdk_authenticate_failed`);this.authenticated=!0,i()}let s=o.ticket;return{sdk:r,bootstrap:n,player:o.player,takeTicket:()=>{let e=s;return s=null,e},destroy:()=>{s=null}}}catch(t){throw e?.aborted?new TA(`cancelled`):new TA(_L(t,`authorization_failed`).code,!0)}}close(){if(!this.closed&&(this.closed=!0,this.sdk!==null))try{this.sdk.close(DN.CLOSE_NORMAL,`Hands session closed`)}catch{}}open(e){if(this.closed)throw new TA(`cancelled`);if(this.sdk!==null)return this.sdk;try{this.sdk=this.makeSDK(e)}catch(e){throw new TA(_L(e,`sdk_initialization_failed`).code,!0)}return this.sdk}},wL={Digit1:`corner_cut`,Numpad1:`corner_cut`,Digit2:`corner_swelling`,Numpad2:`corner_swelling`,Digit3:`corner_breath`,Numpad3:`corner_breath`},TL={2:`corner_cut`,3:`corner_swelling`,1:`corner_breath`},EL=[{kind:`corner_cut`,choice:`cut`,key:`1`,title:`Close the cut`},{kind:`corner_swelling`,choice:`swelling`,key:`2`,title:`Bring down the swelling`},{kind:`corner_breath`,choice:`breath`,key:`3`,title:`Catch your breath`}],DL={cut:`Your corner is closing the cut.`,swelling:`Your corner is bringing the swelling down.`,breath:`Your corner is getting your breath back.`,balanced:`Your corner did a little of everything.`},OL=1500,kL=1e3;function AL(e){return e<150?`small`:e<350?`nasty`:e<550?`deep`:`dangerous`}var jL=(e,t)=>Math.round(Math.max(0,Math.min(1,e/t))*100);function ML(e){let{trauma:t}=e,n=Math.max(t.left_cut,t.right_cut),r=Math.max(0,n-x.cut.worse_cut),i=Math.max(t.left_eye,t.right_eye),a=Math.max(0,i-x.swelling.eyes),o=i>=p?a0,swelling:Math.max(t.left_eye,t.right_eye)>0||t.swelling>0,breath:!0,balanced:!1}}function PL(){try{return[...navigator.getGamepads?.()??[]].find(e=>e!==null&&e.connected&&e.mapping===`standard`)??null}catch{return null}}var FL=class{pick;now;element;buttons=new Map;details=new Map;status;visible=!1;choice=null;pending=null;shown=null;frozen=null;available=null;padFrame=0;padPrevious=new Set;measuredTop=null;resize=()=>{this.measuredTop=null};keydown=e=>{let t=wL[e.code];t!==void 0&&this.visible&&!e.repeat&&(e.preventDefault(),this.choose(t))};constructor(e,t,n=()=>performance.now()){this.pick=t,this.now=n;let r=document.createElement(`section`);r.className=`corner`,r.dataset.corner=``,r.hidden=!0,r.setAttribute(`aria-label`,`Instructions for your corner`);let i=document.createElement(`p`);i.className=`corner-title`,i.textContent=`YOUR CORNER`;let a=document.createElement(`div`);a.className=`corner-choices`;for(let{kind:e,key:t,title:n}of EL){let r=document.createElement(`button`);r.type=`button`,r.dataset.cornerPick=e;let i=document.createElement(`kbd`);i.textContent=t;let o=document.createElement(`strong`);o.textContent=n;let s=document.createElement(`span`);r.append(i,o,s),r.addEventListener(`click`,()=>this.choose(e)),a.append(r),this.buttons.set(e,r),this.details.set(e,s)}this.status=document.createElement(`p`),this.status.className=`corner-status`,this.status.setAttribute(`role`,`status`),r.append(i,a,this.status),e.append(r),this.element=r,window.addEventListener(`keydown`,this.keydown),window.addEventListener(`resize`,this.resize)}update(e,t,n){let r=e?.fighters.find(e=>e.player_id===t);if(!(n&&e!==null&&e.phase===`rest`&&r!==void 0)||r===void 0){this.setVisible(!1),this.choice=null,this.pending=null,this.shown=null,this.frozen=null;return}this.setVisible(!0),this.choice=r.corner_choice,(this.choice!==null||this.pending!==null&&this.now()-this.pending.at>OL)&&(this.pending=null);let i=this.choice!==null||this.pending!==null;i||(this.frozen=null);let a=i&&this.frozen!==null?this.frozen:ML(r);this.shown=a;let o=NL(r);this.available=o;for(let{kind:e,choice:t}of EL){let n=this.buttons.get(e),r=this.details.get(e);r.textContent!==a[t]&&(r.textContent=a[t]),n.disabled=i||!o[t],n.toggleAttribute(`data-picked`,this.choice===t||this.pending?.kind===e)}let s=this.choice===null?this.pending===null?`Tell your corner what to work on before the bell.`:`Calling it to your corner…`:DL[this.choice];this.status.textContent!==s&&(this.status.textContent=s)}choose(e){if(!this.visible||this.choice!==null||this.pending!==null)return;let t=EL.find(t=>t.kind===e)?.choice;if(t!==void 0&&this.available?.[t]!==!1&&this.pick(e)){this.frozen=this.shown,this.pending={kind:e,at:this.now()};for(let[t,n]of this.buttons)n.disabled=!0,n.toggleAttribute(`data-picked`,t===e);this.status.textContent=`Calling it to your corner…`}}setVisible(e){if(e!==this.visible){if(this.visible=e,this.element.hidden=!e,this.measuredTop=null,this.padPrevious.clear(),e){let e=PL();for(let t of Object.keys(TL))e?.buttons[Number(t)]?.pressed===!0&&this.padPrevious.add(Number(t));this.padFrame=requestAnimationFrame(()=>this.pollPad())}else cancelAnimationFrame(this.padFrame)}}top(){if(!this.visible)return null;if(this.measuredTop===null){let e=this.element.getBoundingClientRect();if(e.height<=0)return null;this.measuredTop=e.top-(this.element.parentElement?.getBoundingClientRect().top??0)}return this.measuredTop}pollPad(){if(!this.visible)return;let e=PL();if(e!==null)for(let[t,n]of Object.entries(TL)){let r=Number(t),i=e.buttons[r]?.pressed===!0;i&&!this.padPrevious.has(r)&&this.choose(n),i?this.padPrevious.add(r):this.padPrevious.delete(r)}this.padFrame=requestAnimationFrame(()=>this.pollPad())}destroy(){this.setVisible(!1),window.removeEventListener(`keydown`,this.keydown),window.removeEventListener(`resize`,this.resize),this.element.remove()}},IL={invalid_launch:`open Hands from a Discord voice channel with Play now`,cancelled:`the session was cancelled`,authorization_failed:`Discord did not authorize the session`,authorize_failed:`Discord did not authorize the session`,authorize_timeout:`Discord took too long to authorize the session`,sdk_ready_failed:`the Discord client did not respond`,sdk_ready_timeout:`the Discord client took too long to respond`,sdk_authenticate_failed:`Discord did not confirm your identity`,sdk_authenticate_timeout:`Discord took too long to confirm your identity`,sdk_initialization_failed:`the Discord client could not start the activity`,instance_mismatch:`this window belongs to a different activity instance`,bootstrap_failed:`the Hands server could not be reached`,token_failed:`the Hands server rejected the sign-in`,invalid_bootstrap:`the Hands server sent an unexpected reply`,invalid_token_response:`the Hands server sent an unexpected reply`,ticket_unavailable:`the session ticket was already used`,protocol_error:`the server and client disagree on the protocol`,unexpected_error:`something unexpected went wrong`,authentication_timeout:`the connection took too long to authenticate`,authentication_required:`the connection was not authenticated`,invalid_ticket:`the session ticket was rejected`,invalid_request:`the server rejected the request`,invalid_input:`the server rejected an input frame`,input_queue_full:`the server could not keep up with the inputs`,rate_limited:`too many requests were sent; wait a moment`,service_busy:`the server is busy right now`,service_unavailable:`the server is unavailable right now`,upstream_unavailable:`Discord is unavailable right now`,room_closed:`the bout has already ended; use Play now to start another`,room_full:`both seats in this bout are taken`,already_in_room:`you are already in a bout in another channel`,match_not_started:`the bout has not started yet`,connection_replaced:`this seat was taken over by a newer connection`,spectator_read_only:`spectators cannot send input`,server_shutting_down:`the server is restarting`,internal_error:`the server hit an internal error`,not_in_activity:`you are not a participant of this activity`,invalid_activity:`this activity instance is not valid`,invalid_state:`the sign-in state expired; retry`,invalid_guild:`this activity belongs to another server`,persistence_failed:`the result could not be saved`,rematch_unavailable:`the ring could not be cleared for a rematch; use Play now to start another bout`,network_unavailable:`the connection to the Hands server could not be opened`,match_abandoned:`both fighters lost their connection and the bout was called off`};function LL(e){if(e===`client_outdated`)return`Hands was updated. Reload to continue (client_outdated).`;let t=IL[e]??IL[e.replace(/_\d+$/u,``)];return t===void 0?`Unable to continue (${e}).`:`Unable to continue: ${t} (${e}).`}var RL={block:[55,.12,.22],hit:[85,.3,.42],counter_hit:[105,.38,.5],stun:[125,.42,.55],knockdown:[180,.62,.65],parry:[60,.18,.4],body_collapse:[170,.55,.3]},zL={injury:[150,.55,.6],vomit:[90,.15,.45],finish_him:[180,.65,.3],fatality:[180,.65,.65],death:[170,.5,.12]},BL=[120,.65,.5],VL=[35,.2,.35],HL=class{settings;constructor(e){this.settings=e}event(e,t=!1){if(!this.settings().haptics)return;let n=RL[e.kind];n!==void 0&&this.rumble(t?[n[0]*1.6,n[1]+.2,n[2]+.15]:n)}gore(e){if(!this.settings().haptics||e.kind===`death`&&mt(e.cause)!==null)return;this.rumble(zL[e.kind]);let t=this.settings();e.kind===`injury`&&vk(e.injury)!==null&&t.blood===`full`&&!t.reducedMotion&&setTimeout(()=>this.rumble(BL),yk*1e3)}getUpBeat(){this.settings().haptics&&this.rumble(VL)}rumble(e){let t=this.padActuator();if(t===null)this.vibrate(e[0]);else try{Promise.resolve(t.playEffect(`dual-rumble`,{duration:Math.min(180,Math.max(0,e[0])),strongMagnitude:Math.min(.65,Math.max(0,e[1])),weakMagnitude:Math.min(.65,Math.max(0,e[2]))})).catch(()=>void 0)}catch{}}padActuator(){if(typeof navigator.getGamepads!=`function`)return null;let e;try{e=[...navigator.getGamepads.call(navigator)]}catch{return null}let t=e.find(e=>e!==null&&e.connected&&`vibrationActuator`in e)?.vibrationActuator;return t==null||typeof t.playEffect!=`function`?null:t}vibrate(e){if(Ke()&&typeof navigator.vibrate==`function`)try{navigator.vibrate(Math.min(180,Math.max(0,e)))}catch{}}};function UL(e,t){return e.kind===t.kind?e.kind===`punch`&&t.kind===`punch`?e.hand===t.hand&&e.class===t.class&&e.target===t.target&&e.power===t.power:e.kind===`foul`&&t.kind===`foul`?e.foul===t.foul:!0:!1}function WL(e,t,n){if(n<1||e.length>0&&UL(e.at(-1),t))return;let r=e.length-n+1;r>0&&e.splice(0,r),e.push(t)}var GL=class{maximum;queue=[];counter=0;listener=null;constructor(e=1){this.maximum=e}setListener(e){this.listener=e}push(e,t){if(this.maximum<1)return;let n=this.queue.at(-1);if(n!==void 0&&UL(n.action,t)){n.source=e;return}let r={...t,id:`c${this.counter+=1}`},i=this.queue.length-this.maximum+1;i>0&&this.queue.splice(0,i),this.queue.push({action:r,source:e}),this.listener?.(r)}clear(){this.queue.length=0}clearSource(e){let t=this.queue.filter(t=>t.source!==e);this.queue.splice(0,this.queue.length,...t)}drain(e){return this.queue.splice(0,e).map(e=>e.action)}};function KL(e,t,n=.18){let r=Math.hypot(e,t);if(!Number.isFinite(r)||r<=n)return{x:0,y:0};let i=(Math.min(1,r)-n)/(1-n);return{x:e/r*i,y:t/r*i}}var qL=(e,t)=>{let n=Math.atan2(Math.abs(t),Math.abs(e))*180/Math.PI;return n<22.5?`hook`:n<45?`jab`:n<70?`straight`:`uppercut`},JL=class{active=!1;hand=`right`;target=`head`;power=`normal`;peak={x:0,y:0};peakMagnitude=0;update(e,t,n,r){let i=Math.hypot(e,t);if(!this.active&&i>=.55&&Math.abs(e)>=.12)return this.active=!0,this.hand=e<0?`left`:`right`,this.target=n?`body`:`head`,this.power=r?`power`:`normal`,this.peak={x:e,y:t},this.peakMagnitude=i,null;if(!this.active)return null;if(i>this.peakMagnitude&&(this.peak={x:e,y:t},this.peakMagnitude=i),i<=.25){let e={kind:`punch`,hand:this.hand,class:qL(this.peak.x,this.peak.y),target:this.target,power:this.power};return this.reset(),e}return null}reset(){this.active=!1,this.peak={x:0,y:0},this.peakMagnitude=0}},YL=[`jab`,`straight`,`hook`,`uppercut`],XL=(e,t)=>e.buttons[t]?.pressed===!0;function ZL(){let e=navigator.getGamepads;if(typeof e!=`function`)return null;try{return[...e.call(navigator)].find(e=>e!==null&&e.connected&&e.mapping===`standard`)??null}catch{return null}}var QL=class{maximumQueue;sharedActions;gesture=new JL;queue=[];previous=new Set;selectorConsumed=new Map;raf=0;currentId=null;moveX=0;moveY=0;defense=`none`;knockdown=!1;enabled=!0;trigger=!1;heldListener=null;disconnect=e=>{e.gamepad.id===this.currentId&&this.reset()};constructor(e=1,t){this.maximumQueue=e,this.sharedActions=t,window.addEventListener(`gamepaddisconnected`,this.disconnect),this.raf=requestAnimationFrame(()=>this.poll())}onHeldChange(e){this.heldListener=e}push(e){this.sharedActions===void 0?WL(this.queue,e,this.maximumQueue):this.sharedActions.push(`gamepad`,e)}poll(){if(!this.enabled){this.reset(),this.schedulePoll();return}let e=ZL();if(e===null){this.currentId!==null&&this.reset(),this.schedulePoll();return}this.currentId!==null&&this.currentId!==e.id&&this.reset(),this.currentId=e.id;let t=KL(e.axes[0]??0,e.axes[1]??0),n=Math.round(t.x*1e3),r=Math.round(-t.y*1e3),i=XL(e,4)?`guard_high`:XL(e,5)?`guard_low`:`none`,a=n!==this.moveX||r!==this.moveY||i!==this.defense;this.moveX=n,this.moveY=r,this.defense=i,a&&this.heldListener?.(),this.trigger=XL(e,7);let o=this.gesture.update(e.axes[2]??0,e.axes[3]??0,XL(e,6),this.trigger);o!==null&&this.push(o);let s=YL.some((t,n)=>XL(e,n)&&!this.previous.has(n));for(let t of[14,15]){let n=XL(e,t),r=this.previous.has(t);this.knockdown?(n&&!r&&this.push({kind:t===14?`get_up_left`:`get_up_right`}),this.selectorConsumed.delete(t)):n?(r||this.selectorConsumed.set(t,!1),s&&this.selectorConsumed.set(t,!0)):r&&(this.selectorConsumed.get(t)===!1&&this.push({kind:t===14?`slip_left`:`slip_right`}),this.selectorConsumed.delete(t))}for(let t=0;tthis.poll())}setKnockdown(e){this.knockdown=e}get powerHeld(){return this.enabled&&this.trigger}setEnabled(e){this.enabled=e,e||this.reset()}frame(e=4){let t=this.sharedActions===void 0?this.queue.splice(0,e):[];return{moveX:this.moveX,moveY:this.moveY,defense:this.defense,actions:t}}reset(){this.currentId=null,this.moveX=this.moveY=0,this.defense=`none`,this.trigger=!1,this.queue.length=0,this.sharedActions?.clearSource(`gamepad`),this.previous.clear(),this.selectorConsumed.clear(),this.gesture.reset()}destroy(){cancelAnimationFrame(this.raf),window.removeEventListener(`gamepaddisconnected`,this.disconnect),this.reset()}},$L=new Set([`KeyW`,`KeyA`,`KeyS`,`KeyD`,`KeyQ`,`KeyE`]),eR=new Set([`ShiftLeft`,`ShiftRight`,`AltLeft`,`AltRight`]),tR=class{target;maximumQueue;sharedActions;held=new Set;queue=[];enabled=!0;altFlag=!1;heldListener=null;keydown=e=>{if(this.altFlag=e.altKey,!je.has(e.code))return;if(!this.enabled){this.hold(e.code,e.repeat);return}if(e.preventDefault(),this.hold(e.code,e.repeat),e.repeat)return;let t=Ee[e.code];if(t!==void 0)this.push({kind:`punch`,hand:t[0],class:t[1],target:this.hasShift(e)?`body`:`head`,power:this.alt?`power`:`normal`});else{let t=De[e.code];t!==void 0&&(t.kind!==`foul`||this.hasShift(e))&&this.push(t)}};keyup=e=>{this.altFlag=e.altKey,e.code===`MetaLeft`||e.code===`MetaRight`?this.letGo(e=>!eR.has(e)):je.has(e.code)&&(this.enabled&&e.preventDefault(),this.letGo(t=>t===e.code))};visibility=()=>{document.hidden&&this.reset()};blur=()=>this.reset();constructor(e=window,t=1,n){this.target=e,this.maximumQueue=t,this.sharedActions=n,e.addEventListener(`keydown`,this.keydown),e.addEventListener(`keyup`,this.keyup),e.addEventListener(`blur`,this.blur),document.addEventListener(`visibilitychange`,this.visibility)}onHeldChange(e){this.heldListener=e}hold(e,t){t&&this.held.has(e)||(this.held.delete(e),this.held.add(e),$L.has(e)&&this.heldListener?.())}letGo(e){let t=!1;for(let n of this.held)e(n)&&(this.held.delete(n),t||=$L.has(n));t&&this.heldListener?.()}axis(e,t){let n=0;for(let r of this.held)r===e?n=1:r===t&&(n=-1);return n}hasShift(e){return e.shiftKey||this.held.has(`ShiftLeft`)||this.held.has(`ShiftRight`)}get alt(){return this.altFlag||this.held.has(`AltLeft`)||this.held.has(`AltRight`)}get powerHeld(){return this.enabled&&this.alt}push(e){this.sharedActions===void 0?WL(this.queue,e,this.maximumQueue):this.sharedActions.push(`keyboard`,e)}setEnabled(e){this.enabled=e,e||(this.queue.length=0,this.sharedActions?.clearSource(`keyboard`))}frame(e=4){if(!this.enabled)return{moveX:0,moveY:0,defense:`none`,actions:[]};let t=this.axis(`KeyD`,`KeyA`)*1e3,n=this.axis(`KeyW`,`KeyS`)*1e3;t!==0&&n!==0&&(t=Math.sign(t)*707,n=Math.sign(n)*707);let r=this.axis(`KeyQ`,`KeyE`);return{moveX:t,moveY:n,defense:r>0?`guard_high`:r<0?`guard_low`:`none`,actions:this.sharedActions===void 0?this.queue.splice(0,e):[]}}reset(){this.letGo(()=>!0),this.altFlag=!1,this.queue.length=0,this.sharedActions?.clearSource(`keyboard`)}destroy(){this.reset(),this.target.removeEventListener(`keydown`,this.keydown),this.target.removeEventListener(`keyup`,this.keyup),this.target.removeEventListener(`blur`,this.blur),document.removeEventListener(`visibilitychange`,this.visibility)}};function nR(e,t,n,r){let i=e=>Math.max(-1e3,Math.min(1e3,Math.round(e)))||0;return{moveX:i(-r*e+n*t),moveY:i(-n*e-r*t)}}var rR=(e,t,n,r)=>Math.abs(Math.atan2(e*r-t*n,e*n+t*r)),iR=Math.PI/4-.01,aR=Math.PI/8,oR=300,sR=class{actions=new GL(1);keyboard;gamepad;touch=null;reset=()=>{this.keyboard.reset(),this.gamepad.reset(),this.touch?.reset(),this.actions.clear(),this.gamepad.setKnockdown(!1)};heldChanged=()=>{let e=this.held(),t=this.sentHeld,n=e.moveX!==0||e.moveY!==0,r=t.moveX!==0||t.moveY!==0;(e.defense!==t.defense||n!==r||n&&(rR(e.moveX,e.moveY,t.moveX,t.moveY)>aR||Math.abs(Math.hypot(e.moveX,e.moveY)-Math.hypot(t.moveX,t.moveY))>oR))&&(this.sentHeld=e,this.heldListener?.())};constructor(){this.keyboard=new tR(window,1,this.actions),this.gamepad=new QL(1,this.actions),this.keyboard.onHeldChange(this.heldChanged),this.gamepad.onHeldChange(this.heldChanged),window.addEventListener(`blur`,this.reset),document.addEventListener(`visibilitychange`,this.visibility)}visibility=()=>{document.hidden&&this.reset()};attachTouch(e,t=Ke()){this.touch===null&&t&&(this.touch=new Ye(e,this.actions),this.touch.onHeldChange(this.heldChanged))}setActive(e,t=e){this.keyboard.setEnabled(e),this.gamepad.setEnabled(e),this.touch?.setEnabled(e,t)}setKnockdown(e){this.gamepad.setKnockdown(e),this.touch?.setKnockdown(e)}setGetUpPrompt(e){this.touch?.setGetUpPrompt(e)}onAction(e){this.actions.setListener(e)}get powerHeld(){return this.keyboard.powerHeld||this.gamepad.powerHeld||this.touch?.powerHeld===!0}onHeldChange(e){this.heldListener=e}heldListener=null;sentHeld={moveX:0,moveY:0,defense:`none`};setViewForward(e){this.viewForward=e}viewForward=null;latched=null;held(){let e=this.keyboard.frame(0),t=this.gamepad.frame(0),n=this.touch?.frame()??null,r=t.moveX===0?n!==null&&n.moveX!==0?n.moveX:e.moveX:t.moveX,i=t.moveY===0?n!==null&&n.moveY!==0?n.moveY:e.moveY:t.moveY,a=t.defense===`none`?n!==null&&n.defense!==`none`?n.defense:e.defense:t.defense;if(r===0&&i===0)return this.latched=null,{moveX:r,moveY:i,defense:a};let o=this.viewForward?.()??null,s=this.latched;s===null||rR(r,i,s.moveX,s.moveY)>iR?this.latched={moveX:r,moveY:i,forward:o===null?null:{x:o.x,z:o.z}}:s.forward!==null&&o!==null&&(s.forward.x=o.x,s.forward.z=o.z);let c=this.latched.forward;if(c===null)return{moveX:r,moveY:i,defense:a};let l=nR(r,i,c.x,c.z);return{moveX:l.moveX,moveY:l.moveY,defense:a}}frame(){return{...this.held(),actions:this.actions.drain(4)}}destroy(){window.removeEventListener(`blur`,this.reset),document.removeEventListener(`visibilitychange`,this.visibility),this.keyboard.destroy(),this.gamepad.destroy(),this.touch?.destroy()}},cR=(e,t,n)=>e+(t-e)*n,lR=(e,t,n)=>({...t,x:cR(e.x,t.x,n),y:cR(e.y,t.y,n),facing:cR(e.facing,t.facing,n),facing_x:cR(e.facing_x,t.facing_x,n),facing_y:cR(e.facing_y,t.facing_y,n),velocity_x:cR(e.velocity_x,t.velocity_x,n),velocity_y:cR(e.velocity_y,t.velocity_y,n),stamina:cR(e.stamina,t.stamina,n),maximum_stamina:cR(e.maximum_stamina,t.maximum_stamina,n),conditioning:cR(e.conditioning,t.conditioning,n),guard:cR(e.guard,t.guard,n),poise:cR(e.poise,t.poise,n)}),uR=(e,t,n)=>({...t,x:cR(e.x,t.x,n),y:cR(e.y,t.y,n),facing_x:cR(e.facing_x,t.facing_x,n),facing_y:cR(e.facing_y,t.facing_y,n),velocity_x:cR(e.velocity_x,t.velocity_x,n),velocity_y:cR(e.velocity_y,t.velocity_y,n)}),dR=1.5,fR=6,pR=.5,mR=2500,hR=1,gR=.04,_R=100,vR=.01,yR=4,bR=1500,xR=class{maximum;tickRate;initialDelayTicks;snapshots=[];offsetTicks=null;delayTicks;lastStarvationMs=-1/0;lastFrameMs=null;behindPushes=0;needs=[];arrivals=[];constructor(e=8,t=30,n=2){this.maximum=e,this.tickRate=t,this.initialDelayTicks=n,this.delayTicks=n}get interpolationDelayTicks(){return this.delayTicks}push(e,t){let n=this.snapshots.at(-1);if(n!==void 0&&e.tick<=n.tick)return!1;if(this.snapshots.push(e),this.snapshots.length>this.maximum&&this.snapshots.shift(),t!==void 0&&Number.isFinite(t)){let n=e.tick-t*this.tickRate/1e3;for(this.offsetTicks!==null&&n=yR&&this.restartClock(),this.offsetTicks===null?(this.offsetTicks=n,this.need(t,this.initialDelayTicks)):this.offsetTicks=Math.max(n,this.offsetTicks-vR),this.need(t,this.offsetTicks-n+hR);this.arrivals.length>0&&this.arrivals.at(-1).sample<=n;)this.arrivals.pop();this.arrivals.push({atMs:t,sample:n})}return!0}resync(){this.restartClock()}restartClock(){this.offsetTicks=null,this.delayTicks=this.initialDelayTicks,this.lastStarvationMs=-1/0,this.behindPushes=0,this.needs.length=0,this.arrivals.length=0}need(e,t){for(;this.needs.length>0&&this.needs.at(-1).ticks<=t;)this.needs.pop();this.needs.push({atMs:e,ticks:t})}recentNeed(e){for(;this.needs.length>0&&this.needs[0].atMs<=e-mR;)this.needs.shift();return this.needs[0]?.ticks??0}latest(){return this.snapshots.at(-1)??null}clockTick(e){let t=this.latest();if(t===null)return 0;for(;this.arrivals.length>1&&this.arrivals[0].atMs<=e-bR;)this.arrivals.shift();let n=this.arrivals[0];return n===void 0?t.tick:Math.min(t.tick+fR,e*this.tickRate/1e3+n.sample)}renderTick(e){let t=this.latest();if(t===null)return 0;let n=this.snapshots[0].tick;if(this.offsetTicks===null)return Math.max(n,t.tick-1);let r=this.lastFrameMs===null?0:Math.min(_R,Math.max(0,e-this.lastFrameMs));this.lastFrameMs=e;let i=e*this.tickRate/1e3+this.offsetTicks-this.delayTicks;if(i>t.tick+.25)e-this.lastStarvationMs>250&&(this.lastStarvationMs=e,this.delayTicks=Math.min(fR,this.delayTicks+pR),this.need(e,this.delayTicks));else{let t=Math.max(dR,this.recentNeed(e));this.delayTicks>t&&(this.delayTicks=Math.max(t,this.delayTicks-gR*r*this.tickRate/1e3))}return Math.min(t.tick,Math.max(n,i))}sample(e){let t=this.snapshots.findIndex(t=>t.tick>=e);if(t<=0)return this.snapshots[Math.max(0,t)]??this.latest();let n=this.snapshots[t-1],r=this.snapshots[t];if(n.phase!==r.phase||n.fighters.some((e,t)=>e.knockdowns!==r.fighters[t]?.knockdowns))return r;let i=Math.max(0,Math.min(1,(e-n.tick)/Math.max(1,r.tick-n.tick)));return{...r,fighters:[lR(n.fighters[0],r.fighters[0],i),lR(n.fighters[1],r.fighters[1],i)],referee:uR(n.referee,r.referee,i)}}clear(){this.snapshots.length=0,this.offsetTicks=null,this.arrivals.length=0}},SR=class{highest=-1;accept(e){let t=new Set,n=e.filter(e=>e.event_id<=this.highest||t.has(e.event_id)?!1:(t.add(e.event_id),!0)).sort((e,t)=>e.event_id-t.event_id);for(let e of n)this.highest=Math.max(this.highest,e.event_id);return n}reset(){this.highest=-1}};function CR(e=window.location){let t=new URL(`/api/hands/ws`,e.origin);if(e.protocol===`https:`)t.protocol=`wss:`;else if(e.protocol===`http:`&&[`localhost`,`127.0.0.1`,`::1`].includes(e.hostname))t.protocol=`ws:`;else throw Error(`insecure_websocket_origin`);return t.search=``,t.hash=``,t.toString()}var wR=1,TR={moveX:0,moveY:0,defense:`none`,actions:[]},ER=33,DR=8,OR=50,kR=20,AR=10,jR=2048;function MR(e){try{return mn(e)}catch(t){let n;try{let t=jt(e);n=typeof t==`object`&&t&&`version`in t?t.version:void 0}catch{}throw typeof n==`number`&&n!==7?new TA(`client_outdated`,!0):t}}var NR=class{getInput;callbacks;makeSocket;now;socket=null;reconnectTicket;reconnectTimer=null;opponentPauseTimer=null;inputTimer=null;reconnectDeadline=0;opponentPauseDeadline=0;opponentPaused=!1;attempts=0;nextSequence=0;playerId=null;sentAt=new Map;actionSequences=new Map;latencyMs=null;serverTick=0;role=null;active=!1;resting=!1;boutStarted=!1;disposed=!1;terminal=!1;inputSuppressed=!1;pointerFocus=!1;listenersBound=!1;lastInputSentAt=-1/0;sendTimes=[];edgeSendTimes=[];heldSendTimes=[];heldTimer=null;pressWaiting=!1;constructor(e,t,n,r=e=>new WebSocket(e),i=()=>performance.now()){this.getInput=t,this.callbacks=n,this.makeSocket=r,this.now=i,this.reconnectTicket=e}start(){this.disposed||this.listenersBound||(this.bindInputListeners(),this.connect(),!this.disposed&&!this.terminal&&(this.inputTimer=window.setInterval(()=>this.periodicFlush(),ER)))}bindInputListeners(){this.listenersBound=!0,window.addEventListener(`blur`,this.onInputLoss),window.addEventListener(`focus`,this.onInputRegain),window.addEventListener(`pointerdown`,this.onPagePointer,!0),document.addEventListener(`visibilitychange`,this.onVisibilityChange)}setActive(e){this.setInputActive(e)}setInputActive(e){let t=this.active;this.active=e,e?this.boutStarted=!0:t&&this.sendInput(TR,!0)}notifyAction(){this.pressWaiting=!0,this.now()-(this.edgeSendTimes.at(-1)??-1/0)=kR||this.flushInput()&&this.edgeSendTimes.push(this.lastInputSentAt)}notifyHeld(){let e=DR-(this.now()-Math.max(this.edgeSendTimes.at(-1)??-1/0,this.heldSendTimes.at(-1)??-1/0));e>0?this.heldTimer??=window.setTimeout(()=>{this.heldTimer=null,this.notifyHeld()},e):this.withinLastSecond(this.heldSendTimes)>=AR||this.sendsInLastSecond()>=40||this.flushInput()&&this.heldSendTimes.push(this.lastInputSentAt)}periodicFlush(){this.now()-Math.max(this.edgeSendTimes.at(-1)??-1/0,this.heldSendTimes.at(-1)??-1/0)=40||this.flushInput()}sendsInLastSecond(){return this.withinLastSecond(this.sendTimes)}withinLastSecond(e){let t=this.now()-1e3;for(;e.length>0&&e[0]<=t;)e.shift();return e.length}onInputLoss=()=>{this.inputSuppressed||(this.sendInput(TR,this.boutStarted),this.inputSuppressed=!0,this.pointerFocus=!1)};onInputRegain=()=>{!document.hidden&&document.hasFocus()&&(this.inputSuppressed=!1)};onPagePointer=()=>{if(!document.hidden&&(this.pointerFocus=!0,this.inputSuppressed=!1,!document.hasFocus()))try{window.focus()}catch{}};onVisibilityChange=()=>{document.hidden?this.onInputLoss():this.onInputRegain()};connect(){if(this.disposed||this.terminal)return;let e=this.reconnectTicket;if(e===null){this.terminal=!0,this.stopInputLifecycle(),this.callbacks.onFreshAuth();return}let t;try{t=this.makeSocket(CR())}catch{this.terminal=!0,this.stopInputLifecycle(),this.callbacks.onFatal(`network_unavailable`);return}this.socket=t,t.binaryType=`arraybuffer`,t.onopen=()=>{if(!(this.socket!==t||this.disposed))try{t.send(JSON.stringify({version:7,type:`authenticate`,ticket:e})),this.reconnectTicket=null}catch{this.handleClose(t)}},t.onmessage=e=>this.handleMessage(t,e),t.onerror=()=>void 0,t.onclose=()=>this.handleClose(t)}handleMessage(e,t){if(!(this.socket!==e||this.disposed||this.terminal))try{if(typeof t.data!=`string`&&!(t.data instanceof ArrayBuffer))throw Error(`unsupported_frame`);let n=MR(t.data);if(this.applyMessage(n),n.type===`ticket`){try{e.send(JSON.stringify({version:7,type:`ticket_ack`,refresh_id:n.refresh_id}))}catch{this.handleClose(e)}return}this.callbacks.onMessage(n),n.type===`error`?this.terminate(n.code,e):n.type===`final`&&(this.terminal=!0,this.clearTransportReconnect(!0),this.clearOpponentPause(!0),this.stopInputLifecycle(),this.socket===e&&(this.socket=null),e.onopen=e.onmessage=e.onclose=e.onerror=null,e.close(1e3,`complete`))}catch(e){this.callbacks.onFatal(jA(e)),this.dispose()}}applyMessage(e){if(e.type===`welcome`){if(e.reconnect_ticket===void 0)throw Error(`missing_reconnect_ticket`);this.reconnectTicket=e.reconnect_ticket,this.serverTick=e.server_tick;let t=this.role===`spectator`&&e.role===`fighter`;this.role=e.role,this.playerId=e.role===`fighter`?e.player_id:null,this.sentAt.clear(),e.role===`fighter`?this.nextSequence=Math.max(this.nextSequence,e.next_sequence):this.stopInputLifecycle(),t&&(this.listenersBound||this.bindInputListeners(),this.inputTimer??=window.setInterval(()=>this.periodicFlush(),ER)),this.attempts=0,this.clearTransportReconnect(!0)}else e.type===`ticket`?this.reconnectTicket=e.reconnect_ticket:e.type===`snapshot`?(this.serverTick=Math.max(this.serverTick,e.payload.tick),this.setInputActive([`countdown`,`fight`,`knockdown`,`foul_recovery`,`referee_down`,`finish`].includes(e.payload.phase)),this.resting=e.payload.phase===`rest`,this.observeAcknowledgement(e.payload)):e.type===`paused`?(this.setInputActive(!1),this.startOpponentPause(e.grace_ms)):e.type===`resumed`?(this.setInputActive(!0),this.attempts=0,this.clearOpponentPause(!0)):e.type===`select`?this.clearOpponentPause(!0):e.type===`ready`?(this.clearOpponentPause(!0),this.setInputActive(!0)):e.type===`waiting`?(this.clearOpponentPause(!0),this.setInputActive(!1)):(e.type===`final`||e.type===`error`)&&(this.active=!1,this.clearOpponentPause(!0))}terminate(e,t){this.terminal=!0,this.active=!1,this.clearTransportReconnect(!0),this.clearOpponentPause(!0),this.stopInputLifecycle(),this.callbacks.onFatal(e),this.socket===t&&(this.socket=null,t.onopen=t.onmessage=t.onclose=t.onerror=null,t.close(1e3,`terminal`))}handleClose(e){if(this.socket!==e||(this.socket=null,this.active=!1,this.disposed||this.terminal))return;if(this.reconnectTicket===null){this.terminal=!0,this.stopInputLifecycle(),this.callbacks.onFreshAuth();return}this.clearOpponentPause(!1),this.reconnectDeadline===0&&(this.reconnectDeadline=this.now()+2e4);let t=Math.max(0,this.reconnectDeadline-this.now());if(this.callbacks.onReconnect(t),t<=0){this.terminal=!0,this.stopInputLifecycle(),this.callbacks.onFreshAuth();return}let n=Math.min(3e3,250*2**Math.min(this.attempts,4),t);this.attempts+=1,this.reconnectTimer=window.setTimeout(()=>{this.reconnectTimer=null,this.callbacks.onReconnect(Math.max(0,this.reconnectDeadline-this.now())),this.connect()},n)}requestCpu(e){let t=this.socket;if(this.role!==`fighter`||this.disposed||this.terminal||t?.readyState!==wR)return!1;try{return t.send(bn(e)),!0}catch{return this.handleClose(t),!1}}chooseStyle(e,t){let n=this.socket;if(this.role!==`fighter`||this.disposed||this.terminal||n?.readyState!==wR)return!1;try{return n.send(vn(e,t)),!0}catch{return this.handleClose(n),!1}}get inputLatencyMs(){return this.latencyMs}sequenceOf(e){return this.actionSequences.get(e)??null}observeAcknowledgement(e){if(this.playerId===null)return;let t=e.fighters.find(e=>e.player_id===this.playerId);if(t===void 0||t.last_input_sequence<0)return;let n=this.sentAt.get(t.last_input_sequence);if(n!==void 0){let e=Math.max(0,this.now()-n);this.latencyMs=this.latencyMs===null?e:this.latencyMs*.8+e*.2}for(let e of this.sentAt.keys())e<=t.last_input_sequence&&this.sentAt.delete(e)}sendInput(e,t=!1){return(this.active||t)&&this.transmit(e)}sendCornerChoice(e){return this.resting?this.transmit({moveX:0,moveY:0,defense:`none`,actions:[{kind:e}]}):!1}transmit(e){let t=this.socket;if(this.role!==`fighter`||this.disposed||this.terminal||t?.readyState!==wR)return!1;try{let n=e.actions.slice(0,4);t.send(_n(this.nextSequence,this.serverTick,{...e,actions:n})),this.sentAt.set(this.nextSequence,this.now()),this.sentAt.size>128&&this.sentAt.delete(this.sentAt.keys().next().value);for(let e of n)e.id!==void 0&&this.actionSequences.set(e.id,this.nextSequence);for(;this.actionSequences.size>64;)this.actionSequences.delete(this.actionSequences.keys().next().value);return this.nextSequence+=1,this.lastInputSentAt=this.now(),this.sendTimes.push(this.lastInputSentAt),!0}catch{return this.handleClose(t),!1}}flushInput(){return this.inputSuppressed||document.hidden||!(this.pointerFocus||document.hasFocus())||this.sendsInLastSecond()>=OR||(this.socket?.bufferedAmount??0)>jR||!this.sendInput(this.getInput())?!1:(this.pressWaiting=!1,!0)}startOpponentPause(e){this.clearOpponentPause(!1),this.opponentPaused=!0,this.opponentPauseDeadline=this.now()+e,this.callbacks.onReconnect(e),e>0&&this.scheduleOpponentPauseTick()}scheduleOpponentPauseTick(){let e=Math.max(0,this.opponentPauseDeadline-this.now());e<=0?(this.opponentPauseDeadline=0,this.callbacks.onReconnect(0)):this.opponentPauseTimer=window.setTimeout(()=>{this.opponentPauseTimer=null;let e=Math.max(0,this.opponentPauseDeadline-this.now());this.callbacks.onReconnect(e),e>0?this.scheduleOpponentPauseTick():this.opponentPauseDeadline=0},Math.min(250,e))}clearOpponentPause(e){let t=this.opponentPaused;this.opponentPaused=!1,this.opponentPauseDeadline=0,this.opponentPauseTimer!==null&&(clearTimeout(this.opponentPauseTimer),this.opponentPauseTimer=null),e&&t&&this.callbacks.onReconnect(0)}cancelReconnect(){this.reconnectTimer!==null&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null)}clearTransportReconnect(e){let t=this.reconnectDeadline!==0;this.reconnectDeadline=0,this.cancelReconnect(),e&&t&&this.callbacks.onReconnect(0)}stopInputLifecycle(){this.inputTimer!==null&&(clearInterval(this.inputTimer),this.inputTimer=null),this.heldTimer!==null&&(clearTimeout(this.heldTimer),this.heldTimer=null),this.listenersBound&&=(window.removeEventListener(`blur`,this.onInputLoss),window.removeEventListener(`focus`,this.onInputRegain),window.removeEventListener(`pointerdown`,this.onPagePointer,!0),document.removeEventListener(`visibilitychange`,this.onVisibilityChange),!1)}dispose(){if(this.disposed)return;this.disposed=!0,this.active=!1,this.reconnectTicket=null,this.clearTransportReconnect(!0),this.clearOpponentPause(!0),this.stopInputLifecycle();let e=this.socket;this.socket=null,e!==null&&(e.onopen=e.onmessage=e.onclose=e.onerror=null,e.close(1e3,`teardown`))}},PR={play:`CALLAHAN`,colour:`OKAFOR`,announcer:`RING ANNOUNCER`},FR=.3,IR=.9,LR=.25,RR=2.6,zR=4.5,BR=12,VR=.8,HR=6,UR=9,WR=6,GR=42,KR=8,qR=15,JR=10,YR=[60,480,640],XR=500,ZR=.2,QR=.3,$R=120,ez={knockdown:[`Down goes {b}!`,`{a} drops {b}!`,`{b} is down! What a shot from {a}!`,`Down goes {b}! {a} found the chin!`],knockdownAgain:[`{b} is down again!`,`Down for the second time! {b} is in deep trouble!`,`{a} puts {b} down again!`],knockdownCounter:[`Down goes {b}, off a perfect counter!`,`{a} times it, and {b} is down!`],struggle:[`{b} is struggling to get up...`,`{b} is trying to beat the count...`,`Can {b} get up?`],upLate:[`{b} beats the count at {n}!`,`Up at {n}! {b} is still in this!`,`{b} makes it up at {n}, but the legs look heavy.`],upEarly:[`{b} is up at {n}.`,`{b} is back up at the count of {n}.`,`Up at {n}. {b} wants to keep fighting.`],finishCall:[`{a} has to go for the finish now.`,`{b} needs to survive the next minute.`,`{b} has to hold and clear the head.`],hurt:[`{b} is hurt!`,`{a} has {b} in trouble!`,`{b}'s legs just buckled!`,`Big shot! {b} is wobbled!`,`{b} is rocked! Keep the pressure on, {a}!`],hurtBadly:[`{b} is out on their feet!`,`{b} is in all sorts of trouble!`,`{b} is badly hurt!`],guardBreak:[`{a} blasts right through the guard!`,`The guard is gone! {b} can't keep those hands up!`,`{a} breaks the guard down!`],counter:[`What a counter from {a}!`,`{a} times it perfectly! A {punch} on the counter!`,`{b} walked right into that {punch}!`,`Counter {punch} from {a}! Beautiful timing.`],bigShot:[`Big {punch} from {a}!`,`{a} lands a thudding {punch}!`,`That {punch} landed flush!`,`Huge {punch}! {b} felt that one.`],cut:[`{b} is cut over the {side} eye.`,`There's blood now. A cut over {b}'s {side} eye.`,`That's opened a cut over the {side} eye of {b}.`],cutWorse:[`That cut over {b}'s {side} eye is getting worse.`,`The blood is pouring from that {side} eye now.`,`{b} is bleeding badly from the {side} eye.`],cutGushing:[`That cut is gushing now! {b} is covered in it.`,`{b}'s face is a crimson mask, and nobody is stopping this!`],eyeSwelling:[`{b}'s {side} eye is swelling badly.`,`{b} is having trouble seeing out of that {side} eye.`],eyeShut:[`{b}'s {side} eye has closed completely!`,`That {side} eye is shut! {b} can't see them coming from that side.`,`{b} is fighting with one eye now.`],blindSide:[`{a} is working the blind side.`,`{b} never saw that one. Nothing is getting through that {side} eye.`,`Smart from {a}, punching where {b} can't see.`],parried:[`{a} picks it off and {b} is wide open!`,`Beautiful parry from {a}! {b} is off balance.`,`{a} slaps it away and {b} is left stranded.`],bodyCollapse:[`Body shot! {b} is going down!`,`{a} digs to the body and {b} is folding!`,`Oh, that body shot! {b} is in agony!`],knockdownBody:[`Down goes {b} from the body shot!`,`{b} takes a knee! That body shot took everything out!`,`{a} goes downstairs and {b} can't take it!`],cornerCut:[`{a}'s cutman is working on that cut.`,`They're working hard on the cut in {a}'s corner.`],cornerSwelling:[`{a}'s corner is getting the swelling down.`,`Ice and the enswell on that eye in {a}'s corner.`],cornerBreath:[`{a}'s corner wants the breath back first. Big drink of water.`,`{a} is told to breathe and settle down.`],combo:[`A three-punch combination from {a}!`,`{a} puts it together beautifully.`,`Lovely combination from {a}!`],unanswered:[`Five unanswered punches from {a}!`,`{a} is unloading! {b} has to fire back!`,`{b} is just covering up as {a} lets the hands go!`],jab:[`{a}'s jab is finding a home.`,`Stiff jab from {a}, and another.`,`{a} keeps popping that jab in {b}'s face.`],body:[`{a} is going to work on the body.`,`{a} keeps digging to the body.`,`Another one downstairs from {a}.`],payoff:[`The body work is paying off. {b} is slowing down.`,`Those body shots are taking it out of {b}.`,`{a} has invested in the body, and {b} is paying for it now.`],tiring:[`{b} is running on empty.`,`{b} is breathing hard. Those punches have nothing on them.`,`{b} has punched out. The tank is empty.`],takeover:[`{a} is taking over this round.`,`This is all {a} right now.`,`{a} is in complete control.`],clinch:[`{a} ties {b} up.`,`{a} grabs hold.`,`They're tied up in the clinch.`],holdingOn:[`{a} is hurt and holding on!`,`{a} grabs on for dear life!`,`Smart from {a}, holding on to clear the head.`],refBreak:[`The referee breaks them.`,`The referee steps in to separate them.`,`Break! The referee pulls them apart.`],refHit:[`{a} just tagged the referee!`,`Oh no, {a} has caught the referee!`,`That one landed on the referee!`],refDown:[`The referee is down! {a} has killed the referee!`,`Oh my goodness, the referee isn't moving! I think he's dead!`,`{a} has flattened the official for good! Absolute chaos!`],refBledOut:[`The referee has collapsed! He's bled out right there in the ring!`,`The referee goes down! He's lost too much blood!`],noRef:[`Nobody left to break them up!`,`No referee to part them, so they just let go.`],taunt:[`{a} drops the hands and invites {b} in!`,`Showboating from {a}! The crowd loves it.`,`{a} is taunting {b} now!`,`{a} sticks the chin out. Come and get it!`],lowBlow:[`Low blow from {a}! The referee steps in.`,`That's below the belt! {b} is doubled over.`,`{a} goes low, and the referee calls time.`],headbutt:[`Headbutt from {a}! The referee calls time.`,`{a} leads with the head! That's a foul.`],warning:[`A warning for {a}. One more and it costs a point.`,`The referee warns {a}. That can't happen again.`],deduction:[`The referee takes a point from {a}!`,`That costs {a} a point!`,`Point deduction! {a} has been warned enough.`],resume:[`And we're back underway.`,`Time in. Let's box.`],box:[`The referee waves them on. {b} has to survive now.`,`Box! {a} will be looking to finish it.`,`{b} has convinced the referee. Here comes {a}.`],evade:[`{a} slips it! Lovely head movement.`,`{b} misses, and {a} was never there.`,`Great defence from {a}.`],parry:[`{a} picks that off with the gloves.`,`{a} parries it away.`,`Tight defence from {a}.`],whiff:[`{a} misses wildly with the {punch}.`,`Big swing and a miss from {a}.`,`{a} throws everything into that {punch} and hits nothing but air.`],southpaw:[`{a} switches to southpaw.`,`{a} turns southpaw now.`],orthodox:[`{a} goes back to orthodox.`,`{a} switches back to orthodox.`],roundStart:[`Round {r}. Here we go.`,`We're underway in round {r}.`,`Round {r} is on.`],roundEnd:[`That's the bell to end round {r}.`,`The bell ends round {r}.`,`And that's round {r} in the books.`],savedByBell:[`Saved by the bell! {b} was in real trouble.`,`{b} is saved by the bell!`,`The bell rescues {b}!`],finalBell:[`That's the final bell!`,`The final bell! We go to the scorecards.`],summary:[`Round {r}: {a} landed {x} of {y}, {b} {z} of {w}.`],roundFor:[`I had that round for {a}.`,`{a} took that round.`,`That was {a}'s round.`],roundBig:[`The knockdown makes that a big round for {a}.`,`{a} wins that round big with the knockdown.`],roundClose:[`Close round. That one could go either way.`,`Tough round to score.`,`Nothing between them in that round.`],pullingAway:[`{a} is pulling away on the cards.`,`{b} needs something big. {a} is building a lead.`],ko:[`It's all over! {a} wins by knockout!`,`{b} can't beat the count! {a} wins it!`,`That's it! {a} has knocked out {b}!`],flashKo:[`Lights out! {b} is out cold!`,`One punch, and it's over! {a} wins!`,`Good night! {a} ends it with one shot!`],tko:[`Three knockdowns, and it's over! {a} wins!`,`The referee waves it off! {a} wins by stoppage!`],disqualified:[`{b} is disqualified!`,`That's it! {b} has been thrown out!`],forfeit:[`{b} has left the ring. {a} wins by forfeit.`],replay:[`Here it is again.`,`Let's see that one more time.`,`Watch {a} set it up...`],injBrokenNose:[`{b}'s nose is now mostly a suggestion.`,`That nose is broken. It is pointing at the exit, and so should {b}.`,`{a} has moved {b}'s nose to a different part of his face.`],injBrokenJaw:[`{b}'s jaw is broken. It is hanging off his face like a drawer left open.`,`That jaw has gone sideways. {b} will be eating through a straw, if he lives.`,`You can hear {b}'s jaw clicking from up here. That is not a good sound.`],injJawTorn:[`That is his jaw in the third row.`,`{a} has torn {b}'s jaw clean off! Somebody at ringside just caught a souvenir.`,`{b} has no lower jaw. His tongue is just hanging there like a necktie.`],injEyeOut:[`{b}'s {side} eye is out of his head! It is swinging on the nerve like a yo-yo.`,`The {side} eye has popped its socket. It is looking at {b}'s own cheek.`,`{a} has punched {b}'s {side} eye clean out. He can see his own shoes with it.`],injEarTorn:[`That is {b}'s {side} ear on the canvas. Somebody just trod on it.`,`{a} has taken the {side} ear clean off. {b} did not want to hear this anyway.`,`The {side} ear is gone. I think it is stuck to {a}'s glove.`],injFaceFlayed:[`The {side} half of {b}'s face has come off like a wet sock.`,`I can see {b}'s teeth through his {side} cheek. All of them.`,`{a} has peeled {b}'s face. That is muscle. That is bone. That is my lunch coming back up.`],injSkull:[`{b}'s skull has split open. That is his brain. I can see it thinking.`,`The top of {b}'s head is open like a boiled egg, and he is still standing.`,`That is brain, folks. One more upstairs and {b} forgets everything, permanently.`],injShoulder:[`{b}'s {side} shoulder has popped out. The arm is hanging like a coat on a hook.`,`The {side} shoulder is out of its socket. It is not supposed to be down there.`,`{b}'s {side} arm has come unplugged. His corner can shove it back in at the bell.`],injArmBroken:[`{b}'s {side} arm has snapped! The bone is out and waving at the crowd.`,`That {side} elbow now bends both ways. It is only meant to bend the one.`,`Compound fracture! {b}'s {side} forearm is dangling by the meat.`],injForearmSevered:[`{b}'s {side} forearm is off! The glove is still making a fist over there on the canvas.`,`{a} has taken the {side} arm off at the elbow, and {b} is punching with the stump!`,`There goes the {side} forearm. Somebody put it on ice. Actually, do not bother.`],injArmTorn:[`{a} has ripped {b}'s {side} arm off at the shoulder! It is on the canvas, still twitching!`,`The whole {side} arm is gone. That shoulder is a fire hose.`,`{b} has lost the {side} arm. The judges will take that into account.`],injRibs:[`{b}'s {side} ribs have caved in. One is sticking out of him like a coat hanger.`,`Those {side} ribs are through the skin. You can count them. I make it four.`,`The {side} side of {b} just folded like a lawn chair.`],injLiver:[`That is the liver, and it has burst. {b} is about to show us everything he ate today.`,`{b}'s liver just exploded inside him. He is turning a colour I have only seen on old fruit.`,`Liver shot, and it popped. {b} is filling up with blood on the inside.`],injDisemboweled:[`{b}'s belly is open and his guts are on the canvas! He is treading on them!`,`He is holding his intestines in with his glove and he still wants to fight.`,`{a} has unzipped {b} from hip to hip. That is twenty feet of intestine, and it is all coming out.`],injKnee:[`{b}'s {side} knee is bending the wrong way. Knees should not have a reverse gear.`,`The {side} knee has blown apart. I can see the kneecap. It is over by the ropes.`,`{b}'s {side} leg is held on by skin and optimism.`],ghastly:[`I would stop this fight. Nobody is going to stop this fight.`,`In any other sport that is a penalty.`,`{b} will feel that in the morning, if he gets one.`,`There are children watching this. They are cheering.`],shoulderBack:[`{b}'s corner has shoved the {side} shoulder back in. You could hear it from the cheap seats.`,`The {side} shoulder is back in its socket. {b} screamed, and then he said thank you.`,`They have popped {b}'s {side} shoulder back in. Good as new. It is not, but good as new.`],vomit:[`{a} is throwing up blood and bile all over the canvas. Mind your step.`,`There it goes. {a} is vomiting something black. That is the liver talking.`,`{a} is sick down his own chest. Blood, bile, and I think that was a tooth.`],finishHim:[`{b} is out on his feet and nobody is stopping it! Finish him!`,`{b} is just standing there, dead behind the eyes. {a} can do anything he likes with him.`,`This is it. {a} gets one free punch, and {b} will not be getting up from it. Ever.`],armless:[`{a} is trying to punch with arms he no longer has.`,`{a} just threw a punch. I will let somebody else tell him.`,`No arms, and {a} is still swinging. You have to admire it. You do not have to watch it.`,`{a} is waving two stumps at him. That is not a guard. That is a cry for help.`],fatEyesOut:[`{a} has punched both of {b}'s eyes out through the back of his head!`,`Two eyes, one punch! They are rolling across the ring. One of them is looking at me.`,`{b}'s eyes are out, and so is {b}. There is daylight coming through his face.`],fatHeadBurst:[`{b}'s head has exploded! It is just gone! It is all over the first three rows!`,`{a} hit him so hard his head burst like a dropped melon. The front row is wearing {b}.`],fatDecapitation:[`{a} has taken {b}'s head clean off! It is in the crowd! Somebody is holding it up!`,`Off comes the head! The body is still standing there, looking for it.`],fatSpineRip:[`The uppercut takes {b}'s head off, and his spine comes with it! All of it! Like boning a fish!`,`{b}'s head is in the air with the whole spine dangling off it. I have never seen that. Nobody has.`],fatHeartPunch:[`{a}'s fist has gone straight through {b}'s chest! That is his heart on the canvas, and it is still beating!`,`In through the chest and out the back! {a} is wearing {b} like a bracelet.`],fatGutting:[`{a} has emptied {b} onto the canvas! Everything he kept inside is now outside!`,`One straight to the gut and it all falls out. Liver, stomach, the lot. {b} is hollow.`],fatBisection:[`{a} has torn {b} in half at the waist! The legs are still standing! The top half is trying to crawl away!`,`{b} is in two pieces. The judges will have to score each half separately.`],fatTotalGib:[`{b} has exploded! There is nothing left! It is raining {b}!`,`{a} hit him and he just came apart. There are bits of {b} on the lights. There is a foot in my coffee.`],deathBledOut:[`{b} has bled to death, right there in the ring. There is more of him on the canvas than in him.`,`{b} is gone. He ran out of blood. You do need some.`,`And {b} just drops. Bled out. They will need a mop and a priest.`],deathBrain:[`That was the last of {b}'s brain, and {a} has punched it into soup. He is dead before he lands.`,`{b} is dead. His brain has left through the hole in his skull.`,`{b} is dead. You cannot fight without a brain. Plenty have tried.`],deathGutted:[`{b} is dead. {a} has punched what was left of his insides clean out of him.`,`That body shot went in one side and out the other. {b} is done, and I mean buried.`,`{b} has been gutted like a fish, and he has died like one, flapping.`],deathFatality:[`He is dead. I would like that on the record. {b} is extremely dead.`,`I have been doing this thirty years. I am going to need a different job.`,`Somebody tell {b}'s corner they can stop shouting advice.`],doubleDeath:[`They are both dead. Both of them. I do not know who to interview.`,`Two fighters, no survivors. The judges are going to hate this.`,`{a} and {b} have killed each other. Call it a draw. Call somebody.`]},tz={ko:`ko`,flash_ko:`flashKo`,tko:`tko`,disqualification:`disqualified`,forfeit:`forfeit`},nz={broken_nose:`injBrokenNose`,broken_jaw:`injBrokenJaw`,jaw_torn:`injJawTorn`,eye_out:`injEyeOut`,ear_torn:`injEarTorn`,face_flayed:`injFaceFlayed`,skull_fractured:`injSkull`,shoulder_dislocated:`injShoulder`,arm_broken:`injArmBroken`,forearm_severed:`injForearmSevered`,arm_torn:`injArmTorn`,ribs_broken:`injRibs`,liver_ruptured:`injLiver`,disemboweled:`injDisemboweled`,knee_blown:`injKnee`},rz={eyes_out:`fatEyesOut`,head_burst:`fatHeadBurst`,decapitation:`fatDecapitation`,spine_rip:`fatSpineRip`,heart_punch:`fatHeartPunch`,gutting:`fatGutting`,bisection:`fatBisection`,total_gib:`fatTotalGib`},iz={bled_out:`deathBledOut`,brain:`deathBrain`,gutted:`deathGutted`},az=new Set([`injJawTorn`,`injEyeOut`,`injFaceFlayed`,`injSkull`,`injForearmSevered`,`injArmTorn`,`injDisemboweled`,`finishHim`,`fatEyesOut`,`fatHeadBurst`,`fatDecapitation`,`fatSpineRip`,`fatHeartPunch`,`fatGutting`,`fatBisection`,`fatTotalGib`,`deathBledOut`,`deathBrain`,`deathGutted`,`deathFatality`,`doubleDeath`]),oz={struggle:new Set([`knockdown`]),finishHim:new Set([`finish`])},sz=3.2,cz=4,lz=`struggle`,uz=new Set([`countdown`]),dz=3.2,fz=new Set([`knockdown`,`knockdownAgain`,`knockdownCounter`,`knockdownBody`,`bodyCollapse`,`upLate`,`upEarly`,`hurt`,`hurtBadly`,`lowBlow`,`headbutt`,`deduction`,`ko`,`flashKo`,`tko`,`disqualified`,`forfeit`,`replay`,`refDown`,`refBledOut`,`savedByBell`,`finalBell`,`roundEnd`,`roundStart`,`injBrokenNose`,`injBrokenJaw`,`injEarTorn`,`injShoulder`,`injArmBroken`,`injRibs`,`injLiver`,`injKnee`,...az]),pz=new Set([`lowBlow`,`headbutt`,`warning`,`deduction`,`box`,`tko`]),mz={fatEyesOut:99,fatHeadBurst:99,fatDecapitation:99,fatSpineRip:99,fatHeartPunch:99,fatGutting:99,fatBisection:99,fatTotalGib:99,doubleDeath:99,deathBledOut:98,deathBrain:98,deathGutted:98,deathFatality:98,finishHim:97,injJawTorn:96,injEyeOut:96,injFaceFlayed:96,injSkull:96,injForearmSevered:96,injArmTorn:96,injDisemboweled:96,injBrokenNose:85,injBrokenJaw:85,injEarTorn:85,injShoulder:85,injArmBroken:85,injRibs:85,injLiver:85,injKnee:85,vomit:66,shoulderBack:47,ghastly:44,armless:40,ko:98,flashKo:98,tko:98,disqualified:98,forfeit:98,refDown:97,refBledOut:97,refHit:72,knockdown:95,knockdownAgain:95,knockdownCounter:95,knockdownBody:95,bodyCollapse:86,upLate:90,upEarly:90,replay:88,deduction:84,lowBlow:82,headbutt:82,hurt:80,box:78,hurtBadly:80,holdingOn:76,savedByBell:74,finalBell:72,struggle:70,guardBreak:65,eyeShut:62,counter:60,parried:58,bigShot:55,roundEnd:52,cut:50,cutWorse:50,summary:50,cutGushing:48,eyeSwelling:48,cornerCut:47,cornerSwelling:47,cornerBreath:47,blindSide:42,roundFor:46,roundBig:46,roundClose:46,pullingAway:46,unanswered:45,finishCall:44,warning:42,combo:40,payoff:40,takeover:38,body:35,jab:30,tiring:30,roundStart:28,taunt:25,parry:22,evade:20,clinch:20,whiff:18,refBreak:12,noRef:12,southpaw:10,orthodox:10,resume:10},hz={finishCall:`colour`,payoff:`colour`,tiring:`colour`,takeover:`colour`,holdingOn:`colour`,taunt:`colour`,parry:`colour`,evade:`colour`,warning:`colour`,blindSide:`colour`,cornerCut:`colour`,cornerSwelling:`colour`,cornerBreath:`colour`,roundFor:`colour`,roundBig:`colour`,roundClose:`colour`,pullingAway:`colour`,cutGushing:`colour`,noRef:`colour`,jab:`colour`,ghastly:`colour`,shoulderBack:`colour`,vomit:`colour`,deathFatality:`colour`,doubleDeath:`colour`,armless:`colour`},gz={combo:6,jab:20,body:18,evade:12,parry:15,parried:8,blindSide:20,whiff:12,clinch:15,refBreak:20,taunt:10,southpaw:15,orthodox:15,bigShot:4,counter:3,unanswered:15,takeover:25,vomit:20,ghastly:14,armless:12},_z=[`zero`,`one`,`two`,`three`,`four`,`five`,`six`,`seven`,`eight`,`nine`,`ten`,`eleven`,`twelve`,`thirteen`,`fourteen`,`fifteen`],vz=e=>_z[e]??String(e),yz=[..._z,`sixteen`,`seventeen`,`eighteen`,`nineteen`],bz=[``,``,`twenty`,`thirty`,`forty`,`fifty`,`sixty`,`seventy`,`eighty`,`ninety`];function xz(e){return!Number.isInteger(e)||e<0||e>=1e3?String(e):e<20?yz[e]:e<100?`${bz[Math.floor(e/10)]}${e%10==0?``:`-${yz[e%10]}`}`:`${yz[Math.floor(e/100)]} hundred${e%100==0?``:` and ${xz(e%100)}`}`}function Sz(e,t=!0){if(Tt(e))return`making a pro debut`;let n=e.draws>0?`${xz(e.wins)}, ${xz(e.losses)} and ${xz(e.draws)}`:`${xz(e.wins)} and ${e.losses===0?`oh`:xz(e.losses)}`;return t&&e.knockouts>0?`${n}, ${xz(e.knockouts)} by knockout`:n}function Cz(e){return .85+e.length*.077+(e.split(`...`).length-1)*.35}var wz=.3;function Tz(e,t){let n=t-wz,r=[e=>[e.record===void 0?null:Sz(e.record),Dn(e.style)],e=>[Dn(e.style)],()=>[]];for(let t of r){let r=e.map((e,n)=>{let r=n===0?`In the blue corner`:`And in the red corner`,i=t(e).filter(e=>e!==null);return i.length===0?`${r}, ${e.name}!`:`${r}, ${i.join(`, `)}... ${e.name}!`});if(r.reduce((e,t)=>e+Cz(t),0)<=n)return r}let i=`${e[0].name}... versus ${e[1].name}!`;return Cz(i)<=n?[i]:[]}function Ez(e,t){let n=e.replace(/\{(a|b|n|side|punch|r|x|y|z|w)\}/gu,(e,n)=>String(t[n]??``));return n.charAt(0).toUpperCase()+n.slice(1)}var Dz=(e,t)=>{let n=Math.imul((e|0)^Math.imul(t,2654435761),2246822507);return n^=n>>>13,n=Math.imul(n,3266489909),(n^n>>>16)>>>0};function Oz(e){let t=e.split(`:`);return[t.at(-2),t.at(-1)]}function kz(e,t){let[n=`punch`,r=`head`]=Oz(e),i=t!==void 0&&t.action===n?t.action_hand:null,a=n===`jab`?`jab`:n===`straight`?i===null?`straight`:`${i} hand`:i===null?n:`${i} ${n}`;return r===`body`?`${a} to the body`:a}function Az(e){if(e.phase===`knockdown`){let t=Math.max(...e.fighters.map(e=>e.get_up_count));return Math.min(1,.3+t*.07)}if(e.phase===`finish`)return 1;if(e.phase!==`fight`)return 0;let t=0;for(let[n,r]of e.fighters.entries()){let i=e.fighters[1-n];r.is_downed||(r.stunned_ticks>0?t=Math.max(t,.75):r.poise<150&&(t=Math.max(t,.45)),(Math.max(Math.abs(r.x),Math.abs(r.y))>400||Math.abs(r.x)+Math.abs(r.y)>640)&&Math.hypot(r.x-i.x,r.y-i.y)<150&&(t=Math.max(t,.4)))}return t}var jz=()=>({thrown:0,landed:0,damage:0,knockdowns:0,body:0}),Mz=()=>({jabs:[],window:[],evasions:[],run:0,runTick:-1e3,unanswered:0,stunnedAt:-1e3,knockedDownAt:-1e5,lowSince:null,tiredRound:0,takeoverRound:0,payoffRound:0,cutMarks:[0,0],eyeShut:[!1,!1],eyeSwelling:[!1,!1],rounds:0}),Nz=class{hooks;queue=[];showing=null;lastEnd=-1/0;lastChoice=new Map;cooldowns=new Map;notes=new Map;tallies=new Map;players={};fighters=null;tickRate=30;introduced=!1;lastPhase=null;round=0;roundLength=null;fightRemaining=0;struggleCalled=-1;lastKnockdown=null;refereeDead=!1;final=null;verdictGiven=!1;resultCalled=!1;deaths=new Map;caption={line:null,opacity:0,entering:0};constructor(e={}){this.hooks=e}observe(e,t,n,r,i){this.players=n,this.fighters=e.fighters,this.refereeDead=e.referee?.alive===!1,this.tickRate=r,this.trackClock(e),this.introduced||(this.introduced=!0,e.phase===`countdown`&&e.round_number===1&&this.introduce(e,i));let a=t.find(e=>e.kind===`result`)??null;for(let n of t)this.consider(n,e,a,i);this.inspect(e,i),this.lastPhase=e.phase,this.dropOutOfPhase(e.phase,i)}dropOutOfPhase(e,t){for(let t=this.queue.length-1;t>=0;--t){let n=this.queue[t].phases;n!==null&&!n.has(e)&&this.queue.splice(t,1)}let n=this.showing;n!==null&&n.phases!==null&&!n.phases.has(e)&&(n.end=Math.min(n.end,t+LR))}finish(e,t,n,r){this.players=t,this.final=e,n&&this.deaths.size<2&&(this.enqueue(this.announcement(`Ladies and gentlemen, we go to the scorecards.`,{kicker:`LADIES AND GENTLEMEN`,title:`WE GO TO THE SCORECARDS`,detail:``,corner:null},WR,99),r,null,30),this.hooks.speak?.([`Ladies and gentlemen, we go to the scorecards.`])),e.method===`forfeit`&&!this.resultCalled&&e.winner_id!==null&&(this.resultCalled=!0,this.say(`forfeit`,e.round,r,{a:this.nameOf(e.winner_id),b:this.nameOf(this.otherId(e.winner_id))},`result`,0))}verdict(e){let t=this.final;if(t===null||this.verdictGiven)return;this.verdictGiven=!0;let n=si(t);if(t.winner_id===null&&this.deaths.size>=2){let n=`Ladies and gentlemen, both fighters are dead. There is no winner.`;this.enqueue(this.announcement(n,{kicker:`ROUND ${t.round}`,title:`DOUBLE DEATH`,detail:`NO SURVIVORS`,corner:null},UR,100),e,`verdict`,30),this.hooks.speak?.([n]);return}if(t.winner_id===null){let r=`After ${vz(t.round)} rounds, this bout is scored a ${n.toLowerCase()}.`;this.enqueue(this.announcement(r,{kicker:`AFTER ${vz(t.round).toUpperCase()} ROUNDS`,title:n,detail:``,corner:null},UR,100),e,`verdict`,30),this.hooks.speak?.([r]);return}let r=this.nameOf(t.winner_id),i=n.toLowerCase();this.enqueue(this.announcement(`The winner, by ${i}: ${r}!`,{kicker:`THE WINNER, BY ${n}`,title:r.toUpperCase(),detail:``,corner:this.seatOf(t.winner_id)},UR,100),e,`verdict`,30),this.hooks.speak?.([`And the winner, by ${i}... ${r}!`])}resultShown(e){let t=this.final;if(t===null||this.verdictGiven)return;if(t.method===`decision`||t.method===`draw`){this.verdict(e);return}if(this.verdictGiven=!0,t.winner_id===null)return;let n=this.nameOf(t.winner_id),r=this.otherId(t.winner_id),i=t.method===`death`,a=i&&r!==null?this.deaths.get(r)??null:null,o=i?a!==null&&mt(a)!==null?`fatality`:`death`:{ko:`knockout`,flash_ko:`knockout`,tko:`technical knockout`,disqualification:`disqualification`,forfeit:`forfeit`}[t.method]??t.method.replaceAll(`_`,` `),s=this.stoppageClock(t.round),c=t.method===`ko`||t.method===`flash_ko`||t.method===`tko`||i,l=c&&s!==null?`${i?`DEAD`:`STOPPED`} AT ${s} OF ROUND ${t.round}`:`ROUND ${t.round}`,u=c&&s!==null?`${n} wins by ${o} at ${s} of round ${t.round}.`:`${n} wins by ${o} in round ${t.round}.`,d=`WINS BY ${o.toUpperCase()}${a===null?``:` · ${ht(a)}`}`;this.enqueue(this.announcement(u,{kicker:l,title:n.toUpperCase(),detail:d,corner:this.seatOf(t.winner_id)},UR,100),e,`verdict`,30);let f=i?`${this.nameOf(r)} is dead`:this.refereeDead?`With the referee dead on the canvas, it is over`:`The referee stops the contest`,p=c&&s!==null?`${f} at ${s} of round ${vz(t.round)}. `:``;this.hooks.speak?.([`${p}Your winner, by ${o}... ${n}!`])}replay(e,t=null){let n=t?.kind===`referee_down`?{actor:t.actor_id,target:null,tick:t.tick}:this.lastKnockdown;this.say(`replay`,n?.tick??0,e,{a:this.nameOf(n?.actor??null),b:this.nameOf(n?.target??null)},`replay`,.6,6)}current(e){for(let t=this.queue.length-1;t>=0;--t)this.queue[t].expires<=e&&this.queue.splice(t,1);this.showing!==null&&e>=this.showing.end&&(this.lastEnd=this.showing.end,this.showing=null);let t=null;for(let n of this.queue)n.at>e||(t===null||n.line.priority>t.line.priority||n.line.priority===t.line.priority&&n.at=this.lastEnd+IR:t.line.urgent&&t.line.priority>n.line.priority&&e-n.start>=VR)&&(this.queue.splice(this.queue.indexOf(t),1),this.showing={line:t.line,start:e,end:e+t.line.hold,moment:t.moment,phases:t.phases},t.spoken!==null&&this.hooks.speak?.([t.spoken]))}let n=this.showing;return n===null?null:(this.caption.line=n.line,this.caption.opacity=Math.max(0,Math.min(1,(e-n.start)/LR,(n.end-e)/LR)),this.caption.entering=Math.max(0,1-(e-n.start)/LR),this.caption)}trackClock(e){e.phase===`fight`&&((this.lastPhase===`countdown`||this.lastPhase===`rest`)&&(this.roundLength={round:e.round_number,ticks:e.phase_ticks_remaining+1}),this.fightRemaining=e.phase_ticks_remaining),e.round_number!==this.round&&(this.round=e.round_number,this.tallies.clear())}stoppageClock(e){let t=this.roundLength;if(t===null||t.round!==e)return null;let n=Math.max(0,Math.floor((t.ticks-this.fightRemaining)/this.tickRate));return`${Math.floor(n/60)}:${String(n%60).padStart(2,`0`)}`}introduce(e,t){let n=e.phase_ticks_remaining/this.tickRate;if(n<1.2)return;let r=e.fighters.map(e=>this.nameOf(e.player_id)),i=e.fighters.map((e,t)=>({name:r[t],record:this.players[e.player_id]?.record,style:e.style})),a=Tz([i[0],i[1]],n),o=Math.max(1.4,a.length===2?Cz(a[0]):n/2),s=[o,Math.max(1.4,n-o)];for(let n of[0,1]){let i=n===0?`blue`:`red`,c=this.players[e.fighters[n].player_id],l=En(e.fighters[n].style),u=c===void 0?``:`${l===null?``:`${l} · `}${c.record===void 0?``:`${Et(c.record)} · `}${c.cpu===!0?`COMPUTER`:`RATED ${c.rating}`}`;this.enqueue(this.announcement(`In the ${i} corner, ${r[n]}.`,{kicker:`IN THE ${i.toUpperCase()} CORNER`,title:r[n].toUpperCase(),detail:u,corner:n},s[n],97),t+n*o,null,30,uz,a[n]??null)}}consider(e,t,n,r){let i=e.actor_id,a=e.target_id,o=`${e.tick}:${a??i??``}`,s={a:this.nameOf(i),b:this.nameOf(a)};switch(e.kind){case`punch_start`:i!==null&&(this.tally(i).thrown+=1);return;case`hit`:case`counter_hit`:i!==null&&a!==null&&!ai(e,t.events)&&this.landed(e,i,a,t,r);return;case`stun`:{if(a===null)return;this.notesFor(a).stunnedAt=e.tick;let t=this.fighter(a),n=t!==void 0&&(t.poise<$R||t.stunned_ticks>=ee-6);this.say(n?`hurtBadly`:`hurt`,e.event_id,r,s,o);return}case`guard_break`:this.say(`guardBreak`,e.event_id,r,s,o);return;case`knockdown`:{if(a===null||(this.lastKnockdown={actor:i,target:a,tick:e.tick},this.notesFor(a).knockedDownAt=e.tick,i!==null&&(this.tally(i).knockdowns+=1),n!==null))return;let c=t.events.some(t=>t.kind===`counter_hit`&&t.tick===e.tick&&t.target_id===a);this.say(e.amount>=2?`knockdownAgain`:e.detail===`body`?`knockdownBody`:c?`knockdownCounter`:`knockdown`,e.event_id,r,s,o);return}case`body_collapse`:this.say(`bodyCollapse`,e.event_id,r,s,o);return;case`parry`:this.say(`parried`,e.event_id,r,s,o,FR,void 0,i);return;case`eye_shut`:if(a===null||e.detail!==`left`&&e.detail!==`right`)return;this.notesFor(a).eyeShut[e.detail===`left`?0:1]=!0,this.say(`eyeShut`,e.event_id,r,{...s,side:e.detail},o);return;case`blind_side`:if(e.detail!==`left`&&e.detail!==`right`)return;this.say(`blindSide`,e.event_id,r,{...s,side:e.detail},null,FR,void 0,i);return;case`corner`:{let t=e.detail===`cut`?`cornerCut`:e.detail===`swelling`?`cornerSwelling`:e.detail===`breath`?`cornerBreath`:null;t!==null&&this.say(t,e.event_id,r,s,null,FR,void 0,i);return}case`count`:e.amount>=6&&this.struggleCalled!==this.lastKnockdown?.tick&&this.fighter(a)?.is_downed===!0&&(this.struggleCalled=this.lastKnockdown?.tick??e.tick,this.say(`struggle`,e.event_id,r,{a:this.nameOf(this.otherId(a)),b:this.nameOf(a)},lz));return;case`get_up`:{for(let e=this.queue.length-1;e>=0;--e)this.queue[e].moment===lz&&this.queue.splice(e,1);this.showing?.moment===lz&&(this.showing.end=Math.min(this.showing.end,r+LR));let t={a:this.nameOf(this.otherId(i)),b:this.nameOf(i),n:vz(e.amount)};this.say(e.amount>=8?`upLate`:`upEarly`,e.event_id,r,t,o),this.say(`finishCall`,e.event_id,r,t,null,3.4,4);return}case`perfect_block`:this.say(`parry`,e.event_id,r,s,o,FR,void 0,i);return;case`evade`:{if(i===null)return;let t=this.notesFor(i);t.evasions=t.evasions.filter(t=>t>e.tick-JR*this.tickRate),t.evasions.push(e.tick),(this.fighter(a)?.action_power===`power`||t.evasions.length>=3)&&this.say(`evade`,e.event_id,r,s,o,FR,void 0,i)&&(t.evasions.length=0);return}case`whiff`:{let t=this.fighter(i);if(t?.action_power!==`power`||t.action===null)return;this.say(`whiff`,e.event_id,r,{...s,punch:kz(`${t.action}:${t.action_target??`head`}`,t)},o,FR,void 0,i);return}case`clinch`:{if(i===null)return;let t=this.fighter(i),n=e.tick-this.notesFor(i).stunnedAt<=3*this.tickRate||t!==void 0&&t.poise<150;this.say(n?`holdingOn`:`clinch`,e.event_id,r,s,o,FR,void 0,i);return}case`referee_break`:this.say(`refBreak`,e.event_id,r,s,null,FR,void 0,`referee`);return;case`referee_hit`:this.say(`refHit`,e.event_id,r,s,o,FR,void 0,i);return;case`referee_down`:this.say(e.action_id===null?`refBledOut`:`refDown`,e.event_id,r,s,o);return;case`clinch_break`:this.say(`noRef`,e.event_id,r,s,null,FR);return;case`taunt`:this.say(`taunt`,e.event_id,r,{a:s.a,b:this.nameOf(this.otherId(i))},o,FR,void 0,i);return;case`foul`:this.say(e.detail===`headbutt`?`headbutt`:`lowBlow`,e.event_id,r,s,o),this.fighter(i)?.warnings===1&&this.say(`warning`,e.event_id,r,s,null,3.6,4);return;case`point_deduction`:this.say(`deduction`,e.event_id,r,s,`deduction:${e.tick}`);return;case`resume`:this.say(`resume`,e.event_id,r,s,null);return;case`box`:this.say(`box`,e.event_id,r,{a:this.nameOf(this.otherId(a)),b:this.nameOf(a)},o);return;case`stance`:this.say(e.detail===`southpaw`?`southpaw`:`orthodox`,e.event_id,r,s,null,FR,void 0,i);return;case`exhausted`:i!==null&&this.tired(i,e.event_id,r);return;case`bell`:e.detail===`round_start`?(this.tallies.clear(),t.round_number>=2&&this.say(`roundStart`,e.event_id,r,{r:t.round_number},null,FR,dz)):e.detail===`round_end`&&this.roundEnded(e,t,n,r);return;case`injury`:{let n=Xe.find(t=>t===e.detail);if(a===null||n===void 0)return;let i=nz[st(n)],c={...s,side:ot(n)??``};!az.has(i)&&t.events.some(t=>t.kind===`knockdown`&&t.tick===e.tick&&t.target_id===a)?this.sayAt(i,e.event_id,r+sz,c,8):this.say(i,e.event_id,r,c,o),az.has(i)&&this.say(`ghastly`,e.event_id,r,s,null,3.8,4);return}case`injury_healed`:{let t=Xe.find(t=>t===e.detail);if(t===void 0||st(t)!==`shoulder_dislocated`)return;this.sayAt(`shoulderBack`,e.event_id,r+cz,{b:this.nameOf(a??i),side:ot(t)??``},9);return}case`armless`:this.say(`armless`,e.event_id,r,s,null,FR,void 0,i);return;case`vomit`:this.say(`vomit`,e.event_id,r,{a:this.nameOf(i??a)},o,FR,void 0,i??a);return;case`finish_him`:this.say(`finishHim`,e.event_id,r,s,o,0);return;case`fatality`:{let t=Qe.find(t=>t===e.detail);t!==void 0&&this.say(rz[t],e.event_id,r,s,o,0);return}case`death`:{let t=pt(e.detail);if(t===null||a===null)return;this.deaths.set(a,t);let n={a:this.nameOf(i??this.otherId(a)),b:s.b};this.deaths.size>=2?this.say(`doubleDeath`,e.event_id,r,n,null,.6):t===`bled_out`||t===`brain`||t===`gutted`?this.say(iz[t],e.event_id,r,n,o,0):this.say(`deathFatality`,e.event_id,r,n,null,3.6);return}case`result`:this.resulted(e,r);return;default:return}}landed(e,t,n,r,i){let[a,o]=Oz(e.detail),s=this.tally(t);s.landed+=1,s.damage+=e.amount,o===`body`&&(s.body+=1);let c=this.notesFor(t),l=this.notesFor(n);l.run=0,l.unanswered=0,c.run=e.tick-c.runTick<=GR?c.run+1:1,c.runTick=e.tick,c.unanswered+=1,c.window=c.window.filter(t=>t>e.tick-qR*this.tickRate),c.window.push(e.tick);let u=`${e.tick}:${n}`,d=r.fighters.find(e=>e.player_id===t),f={a:this.nameOf(t),b:this.nameOf(n),punch:kz(e.detail,d)},p=d?.action_power===`power`&&d.action===a;if(e.kind===`counter_hit`&&e.amount>=40?this.say(`counter`,e.event_id,i,f,u,FR,void 0,t):(e.amount>=85||p&&o===`head`&&e.amount>=60)&&this.say(`bigShot`,e.event_id,i,f,u,FR,void 0,t),c.unanswered===5?this.say(`unanswered`,e.event_id,i,f,u,FR,void 0,t):c.run===3&&this.say(`combo`,e.event_id,i,f,u,FR,void 0,t),a===`jab`&&(c.jabs=c.jabs.filter(t=>t>e.tick-KR*this.tickRate),c.jabs.push(e.tick),c.jabs.length>=3&&this.say(`jab`,e.event_id,i,f,null,FR,void 0,t)&&(c.jabs.length=0)),o===`body`){let a=this.fighter(n);a!==void 0&&s.body>=5&&a.staminat>e.tick-qR*this.tickRate).length;c.window.length>=7&&m<=2&&c.takeoverRound!==r.round_number&&(c.takeoverRound=r.round_number,this.say(`takeover`,e.event_id,i,f,null,FR,void 0,t)&&this.hooks.cue?.(`chant`))}roundEnded(e,t,n,r){let i=t.round_number;if(n!==null){(n.detail===`decision`||n.detail===`draw`)&&this.say(`finalBell`,e.event_id,r,{},`bell`,FR,dz);return}let a=t.fighters.find(t=>{let n=this.notesFor(t.player_id);return t.stunned_ticks>0||t.poise<$R||e.tick-n.knockedDownAt<=12*this.tickRate});a===void 0?this.say(`roundEnd`,e.event_id,r,{r:i},`bell`,FR,dz):this.say(`savedByBell`,e.event_id,r,{b:this.nameOf(a.player_id)},`bell`,FR,dz);let[o,s]=t.fighters.map(e=>({id:e.player_id,tally:this.tally(e.player_id)})),[c,l]=o.tally.landed>=s.tally.landed?[o,s]:[s,o];c.tally.thrown+l.tally.thrown>0&&this.sayAt(`summary`,e.event_id,r+2.4,{r:i,a:this.nameOf(c.id),x:c.tally.landed,y:c.tally.thrown,b:this.nameOf(l.id),z:l.tally.landed,w:l.tally.thrown},5);let u=(o.tally.knockdowns-s.tally.knockdowns)*1e3+(o.tally.damage-s.tally.damage)+6*(o.tally.landed-s.tally.landed),d=Math.abs(u)0?o:s;d!==null&&(this.notesFor(d.id).rounds+=1);let f=d===null?null:d===o?s:o,p=d===null||f===null?0:this.notesFor(d.id).rounds-this.notesFor(f.id).rounds,m=d===null?`roundClose`:o.tally.knockdowns===s.tally.knockdowns?i>=2&&p>=2?`pullingAway`:`roundFor`:`roundBig`;this.sayAt(m,e.event_id,r+6.4,{a:this.nameOf(d?.id??null),b:this.nameOf(f?.id??null)},5)}resulted(e,t){let n=tz[e.detail];if(n===void 0||this.resultCalled)return;this.resultCalled=!0;let r=e.actor_id;this.say(n,e.event_id,t,{a:this.nameOf(r),b:this.nameOf(this.otherId(r))},`result`,0)}inspect(e,t){if(e.phase===`fight`)for(let n of e.fighters){let r=this.notesFor(n.player_id),i={a:this.nameOf(this.otherId(n.player_id)),b:this.nameOf(n.player_id)};for(let[a,o]of[[0,`left`],[1,`right`]]){let s=a===0?n.trauma.left_cut:n.trauma.right_cut,c=r.cutMarks[a];c=YR[c]&&(r.cutMarks[a]=YR.filter(e=>s>=e).length,this.say(c===0?`cut`:c===1?`cutWorse`:`cutGushing`,e.tick+a,t,{...i,side:o},null));let l=a===0?n.trauma.left_eye:n.trauma.right_eye;!r.eyeSwelling[a]&&!r.eyeShut[a]&&l>=XR&&(r.eyeSwelling[a]=!0,this.say(`eyeSwelling`,e.tick+a,t,{...i,side:o},null))}let a=n.stamina/Math.max(1,n.maximum_stamina);a=2*this.tickRate&&this.tired(n.player_id,e.tick,t)):a>=QR&&(r.lowSince=null)}}tired(e,t,n){let r=this.notesFor(e);r.tiredRound!==this.round&&(r.tiredRound=this.round,this.say(`tiring`,t,n,{a:this.nameOf(this.otherId(e)),b:this.nameOf(e)},null))}say(e,t,n,r,i,a=FR,o,s){let c=gz[e],l=`${e}:${s??``}`;if(c!==void 0){if(n<(this.cooldowns.get(l)??-1/0))return!1;this.cooldowns.set(l,n+c)}let u=Ez(this.choose(e,t),r),d={speaker:hz[e]??`play`,text:u,priority:mz[e],urgent:fz.has(e),hold:Pz(u),card:null},f=az.has(e);return this.enqueue(d,n+a,i,o??(f?BR:void 0),oz[e]??null,null,f)}sayAt(e,t,n,r,i){let a=Ez(this.choose(e,t),r);this.enqueue({speaker:hz[e]??`play`,text:a,priority:mz[e],urgent:fz.has(e),hold:Pz(a),card:null},n,null,i)}announcement(e,t,n,r){return{speaker:`announcer`,text:e,priority:r,urgent:!0,hold:n,card:t}}choose(e,t){let n=ez[e],r=this.refereeDead&&pz.has(e)?n.filter(e=>!/referee/iu.test(e)):n,i=Dz(t,e.length*31+e.charCodeAt(0))%r.length;return r.length>1&&this.lastChoice.get(e)===i&&(i=(i+1)%r.length),this.lastChoice.set(e,i),r[i]}enqueue(e,t,n,r,i=null,a=null,o=!1){if(n!==null){if(!o&&this.queue.some(t=>t.moment===n&&t.line.priority>=e.priority)||!o&&this.showing?.moment===n&&this.showing.line.priority>=e.priority)return!1;for(let t=this.queue.length-1;t>=0;--t){let r=this.queue[t];r.moment===n&&!r.big&&r.line.priorityHR){let e=0;for(let t=1;tt.player_id===e)}otherId(e){let t=this.fighters;return t===null||e===null?null:t[0].player_id===e?t[1].player_id:t[1].player_id===e?t[0].player_id:null}seatOf(e){let t=this.fighters?.findIndex(t=>t.player_id===e)??-1;return t===0||t===1?t:null}nameOf(e){if(e===null)return`the fighter`;let t=this.players[e]?.name;if(t!==void 0&&t.trim().length>0)return t.trim();let n=this.seatOf(e);return n===0?`the blue corner`:n===1?`the red corner`:`the fighter`}};function Pz(e){return Math.min(5.2,Math.max(2.2,1.4+e.length*.05))}var Fz={name:`CopyShader`,uniforms:{tDiffuse:{value:null},opacity:{value:1}},vertexShader:` varying vec2 vUv; @@ -5306,7 +5306,7 @@ void main() { gl_FragColor = opacity * texel; - }`},wz=class{constructor(){this.isPass=!0,this.enabled=!0,this.needsSwap=!0,this.clear=!1,this.renderToScreen=!1}setSize(){}render(){console.error(`THREE.Pass: .render() must be implemented in derived pass.`)}dispose(){}},Tz=new Ff(-1,1,1,-1,0,1),Ez=new class extends il{constructor(){super(),this.setAttribute(`position`,new Kc([-1,3,0,-1,-1,0,3,-1,0],3)),this.setAttribute(`uv`,new Kc([0,2,0,0,2,0],2))}},Dz=class{constructor(e){this._mesh=new H(Ez,e)}dispose(){this._mesh.geometry.dispose()}render(e){e.render(this._mesh,Tz)}get material(){return this._mesh.material}set material(e){this._mesh.material=e}},Oz=class extends wz{constructor(e,t=`tDiffuse`){super(),this.textureID=t,this.uniforms=null,this.material=null,e instanceof kd?(this.uniforms=e.uniforms,this.material=e):e&&(this.uniforms=Ed.clone(e.uniforms),this.material=new kd({name:e.name===void 0?`unspecified`:e.name,defines:Object.assign({},e.defines),uniforms:this.uniforms,vertexShader:e.vertexShader,fragmentShader:e.fragmentShader})),this._fsQuad=new Dz(this.material)}render(e,t,n){this.uniforms[this.textureID]&&(this.uniforms[this.textureID].value=n.texture),this._fsQuad.material=this.material,this.renderToScreen?(e.setRenderTarget(null),this._fsQuad.render(e)):(e.setRenderTarget(t),this.clear&&e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil),this._fsQuad.render(e))}dispose(){this.material.dispose(),this._fsQuad.dispose()}},kz=class extends wz{constructor(e,t){super(),this.scene=e,this.camera=t,this.clear=!0,this.needsSwap=!1,this.inverse=!1}render(e,t,n){let r=e.getContext(),i=e.state;i.buffers.color.setMask(!1),i.buffers.depth.setMask(!1),i.buffers.color.setLocked(!0),i.buffers.depth.setLocked(!0);let a,o;this.inverse?(a=0,o=1):(a=1,o=0),i.buffers.stencil.setTest(!0),i.buffers.stencil.setOp(r.REPLACE,r.REPLACE,r.REPLACE),i.buffers.stencil.setFunc(r.ALWAYS,a,4294967295),i.buffers.stencil.setClear(o),i.buffers.stencil.setLocked(!0),e.setRenderTarget(n),this.clear&&e.clear(),e.render(this.scene,this.camera),e.setRenderTarget(t),this.clear&&e.clear(),e.render(this.scene,this.camera),i.buffers.color.setLocked(!1),i.buffers.depth.setLocked(!1),i.buffers.color.setMask(!0),i.buffers.depth.setMask(!0),i.buffers.stencil.setLocked(!1),i.buffers.stencil.setFunc(r.EQUAL,1,4294967295),i.buffers.stencil.setOp(r.KEEP,r.KEEP,r.KEEP),i.buffers.stencil.setLocked(!0)}},Az=class extends wz{constructor(){super(),this.needsSwap=!1}render(e){e.state.buffers.stencil.setLocked(!1),e.state.buffers.stencil.setTest(!1)}},jz=class{constructor(e,t){if(this.renderer=e,this._pixelRatio=e.getPixelRatio(),t===void 0){let n=e.getSize(new z);this._width=n.width,this._height=n.height,t=new ws(this._width*this._pixelRatio,this._height*this._pixelRatio,{type:na}),t.texture.name=`EffectComposer.rt1`}else this._width=t.width,this._height=t.height;this.renderTarget1=t,this.renderTarget2=t.clone(),this.renderTarget2.texture.name=`EffectComposer.rt2`,this.writeBuffer=this.renderTarget1,this.readBuffer=this.renderTarget2,this.renderToScreen=!0,this.passes=[],this.copyPass=new Oz(Cz),this.copyPass.material.blending=0,this.timer=new Gf}swapBuffers(){let e=this.readBuffer;this.readBuffer=this.writeBuffer,this.writeBuffer=e}addPass(e){this.passes.push(e),e.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}insertPass(e,t){this.passes.splice(t,0,e),e.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}removePass(e){let t=this.passes.indexOf(e);t!==-1&&this.passes.splice(t,1)}isLastEnabledPass(e){for(let t=e+1;t0||e.clinch_startup_ticks>0||e.taunt_ticks>0||e.is_foul_recovery_target}function Gz(e,t,n={x:0,y:0,speed:0},r=0){let i=Math.max(2,Math.floor(g*Bz(e.conditioning,e.trauma.body)/100)),a=e.stunned_ticks-r,o=i;a>1?o=Math.max(2,Math.floor(i*N/100)):a<=0&&(t.defense===`guard_high`||t.defense===`guard_low`)&&!dt(e.injuries)&&(o=Math.max(2,Math.floor(i*Lz/100))),o=mt(o*10*de(e.style).moveSpeedPercent,e.injuries)/1e3;let s=Math.hypot(t.moveX,t.moveY),c=s>1e3?1e3/s:1;return n.x=t.moveX*c*o/1e3,n.y=t.moveY*c*o/1e3,n.speed=o,n}function Kz(e,t,n){return e.kind===`parry`&&e.target_id===t?Math.max(n,e.tick+e.amount):n}function qz(e,t,n){return e.kind===`defense`&&e.actor_id===t&&oB(e.detail)?Math.max(n??e.tick,e.tick):n}function Jz(e,t){if(e.stunned_ticks>0||e.action_id!==null&&e.action_id===t.cutActionId)return!0;let n=t.evasionFrom;if(n===void 0||e.action===null)return!1;let r=e.action_start_tick+e.action_startup_ticks+e.action_active_ticks;return n>=r&&n=n&&t0?Math.min((n.rootedUntil??0)-t,e.stunned_ticks)-1:0;return Math.max(r,i)}function Zz(e,t,n){if(!oB(e.defense))return 0;let r=n.evasionFrom;return t===void 0||r===void 0||r>t?null:Math.max(0,r+y+de(e.style).evasionTicks-t-1)}function Qz(e,t,n){if(e.queued_actions===0)return 1/0;if(t===void 0)return 0;if(e.action!==null&&!Jz(e,n)){let n=e.action_start_tick+e.action_startup_ticks+e.action_active_ticks+e.action_recovery_ticks-t-1;if(n>0)return n}return Math.max(0,e.stunned_ticks)}function $z(e,t,n,r,i={}){let a=Zz(e,r,i);if(n<=0||Wz(e)||a===null)return{dx:0,dy:0};let o=Math.max(a,r===void 0?e.action===null?0:1/0:Xz(e,r,i)),s=Qz(e,r,i),c=Jz(e,i),l=(t,n)=>Math.min(n.share??1,r!==void 0&&!c&&Yz(e,r+1+t)?v/100:1),u=e.velocity_x,d=e.velocity_y,f=0,p=0,m=Math.floor(n),h=n-m;for(let e=0;e=o&&er.speed*i&&(u=u/a*r.speed*i,d=d/a*r.speed*i),f+=u,p+=d}if(h>0){let e=m>=o&&m(e*(100-_)+t*_)/100,tB=1e3,nB=2.5,rB=class{history=[];offset={dx:0,dy:0};mean={x:0,y:0,speed:0,share:1};sample={x:0,y:0,speed:0};horizon=null;holds={rootedUntil:0,cutActionId:null,evasionFrom:void 0};observe(e,t){this.holds.rootedUntil=Kz(e,t,this.holds.rootedUntil),this.holds.evasionFrom=qz(e,t,this.holds.evasionFrom)}update(e,t,n,r,i,a,o,s){for(this.history.push({at:r,held:n<=0?{...t,moveX:0,moveY:0}:t,share:n<=0?1:n});this.history.length>2&&this.history[1].at0&&e.action_id!==null&&(this.holds.cutActionId=e.action_id),e!==null){let t=1e3/s,n=this.horizon;c=$z(e,i=>this.meanIntent(e,i,r-(n-1-i)*t,t),n,a,this.holds)}let l=nB*g*s*o,u=c.dx-this.offset.dx,d=c.dy-this.offset.dy,f=Math.hypot(u,d),p=f>l?l/f:1;return this.offset.dx+=u*p,this.offset.dy+=d*p,{dx:this.offset.dx,dy:this.offset.dy}}meanIntent(e,t,n,r){let i=n-r/2,a=n+r/2,o=this.mean;o.x=0,o.y=0,o.speed=0,o.share=0;for(let n=0;nr?{x:i*(S-r),y:a*r}:m>n?{x:i*n,y:a*(S-n)}:{x:i*m,y:a*h}}function aB(e,t,n){let r=e.x+t.dx,i=e.y+t.dy;if(n!==null){let t=Math.min(zz,Math.hypot(e.x-n.x,e.y-n.y)),a=r-n.x,o=i-n.y,s=Math.hypot(a,o);s1e-9?(r=n.x+a/s*t,i=n.y+o/s*t):(r=e.x,i=e.y))}let a=iB(r,i);return{dx:a.x-e.x,dy:a.y-e.y}}function oB(e){return e===`slip_left`||e===`slip_right`||e===`weave`||e===`pull`}function sB(e,t,n,r=!1){return e.stunned_ticks>0||e.taunt_ticks>0||e.clinch_ticks>0?e.defense:n===null?oB(e.defense)&&!r?e.defense:dt(e.injuries)?`none`:t.defense:n}var cB=class{kind=null;id=``;startsAt=0;endsAt=0;until=0;sequence=null;started=!1;press(e,t,n,r,i,a=y,o=n){this.kind=e,this.id=t,this.startsAt=o,this.endsAt=o+a*1e3/i,this.until=this.endsAt+Math.max(0,r)*1e3/i,this.sequence=null,this.started=!1}acknowledge(e,t,n){if(this.kind===null)return!1;this.sequence??=n?.(this.id)??null,e.defense===this.kind&&(this.started=!0);let r=!t||e.stunned_ticks>0||e.clinch_ticks>0,i=!this.started&&this.sequence!==null&&e.last_input_sequence>=this.sequence&&e.queued_actions===0;return(r||i)&&(this.kind=null),i}pose(e){return this.kind!==null&&e>=this.until&&(this.kind=null),this.kind!==null&&e>=this.startsAt&&e=this.startsAt&&e=this.startsAt&&e=this.startsAt?!1:(this.kind=null,!0)}},lB=[{radius:8.2,y:-.55,count:120,scale:1},{radius:10.6,y:.35,count:150,scale:1.04},{radius:13.2,y:1.35,count:180,scale:1.08},{radius:16,y:2.45,count:210,scale:1.12}],uB=.95,dB=.42,fB=[3819104,5915960,3493980,6963002,4612159,5524835,7233348,9076852,4678266,7620714,10107450,11843778,3104688,11573822,2303534,2303534],pB=[13081462,9067067,7225640,14726287,5517341,11105359],mB=[1380364,2759442,4862496,7035464,9341572,11569742],hB=.9,gB=.235,_B=-.35,vB=.32,yB=.26,bB=6.2;function xB(e,t,n=bB){return t>0&&Math.hypot(e,t)>n&&Math.abs(Math.atan2(e,t))<.3}var SB=` + }`},Jz=class extends Iz{constructor(){super(),this.isOutputPass=!0,this.uniforms=Ld.clone(qz.uniforms),this.material=new Vd({name:qz.name,uniforms:this.uniforms,vertexShader:qz.vertexShader,fragmentShader:qz.fragmentShader}),this._fsQuad=new zz(this.material),this._outputColorSpace=null,this._toneMapping=null}render(e,t,n){this.uniforms.tDiffuse.value=n.texture,this.uniforms.toneMappingExposure.value=e.toneMappingExposure,(this._outputColorSpace!==e.outputColorSpace||this._toneMapping!==e.toneMapping)&&(this._outputColorSpace=e.outputColorSpace,this._toneMapping=e.toneMapping,this.material.defines={},Ss.getTransfer(this._outputColorSpace)===`srgb`&&(this.material.defines.SRGB_TRANSFER=``),this._toneMapping===1?this.material.defines.LINEAR_TONE_MAPPING=``:this._toneMapping===2?this.material.defines.REINHARD_TONE_MAPPING=``:this._toneMapping===3?this.material.defines.CINEON_TONE_MAPPING=``:this._toneMapping===4?this.material.defines.ACES_FILMIC_TONE_MAPPING=``:this._toneMapping===6?this.material.defines.AGX_TONE_MAPPING=``:this._toneMapping===7?this.material.defines.NEUTRAL_TONE_MAPPING=``:this._toneMapping===5&&(this.material.defines.CUSTOM_TONE_MAPPING=``),this.material.needsUpdate=!0),this.renderToScreen===!0?(e.setRenderTarget(null),this._fsQuad.render(e)):(e.setRenderTarget(t),this.clear&&e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil),this._fsQuad.render(e))}dispose(){this.material.dispose(),this._fsQuad.dispose()}},Yz=70,Xz=1e3,Zz=f*2;function Qz(e,t){return Math.max(65,100-Math.floor((Xz-e)/30)-Math.floor(t/50))}function $z(e,t,n){if(e.action===null||!T(e.action,t.class))return!1;let r=e.action_startup_ticks+e.action_active_ticks+e.action_recovery_ticks;return n-e.action_start_tick0||e.clinch_startup_ticks>0||e.taunt_ticks>0||e.is_foul_recovery_target}function rB(e,t,n={x:0,y:0,speed:0},r=0){let i=Math.max(2,Math.floor(g*Qz(e.conditioning,e.trauma.body)/100)),a=e.stunned_ticks-r,o=i;a>1?o=Math.max(2,Math.floor(i*ne/100)):a<=0&&(t.defense===`guard_high`||t.defense===`guard_low`)&&!yt(e.injuries)&&(o=Math.max(2,Math.floor(i*Yz/100))),o=St(o*10*ce(e.style).moveSpeedPercent,e.injuries)/1e3;let s=Math.hypot(t.moveX,t.moveY),c=s>1e3?1e3/s:1;return n.x=t.moveX*c*o/1e3,n.y=t.moveY*c*o/1e3,n.speed=o,n}function iB(e,t,n){return e.kind===`parry`&&e.target_id===t?Math.max(n,e.tick+e.amount):n}function aB(e,t,n){return e.kind===`defense`&&e.actor_id===t&&vB(e.detail)?Math.max(n??e.tick,e.tick):n}function oB(e,t){if(e.stunned_ticks>0||e.action_id!==null&&e.action_id===t.cutActionId)return!0;let n=t.evasionFrom;if(n===void 0||e.action===null)return!1;let r=e.action_start_tick+e.action_startup_ticks+e.action_active_ticks;return n>=r&&n=n&&t0?Math.min((n.rootedUntil??0)-t,e.stunned_ticks)-1:0;return Math.max(r,i)}function lB(e,t,n){if(!vB(e.defense))return 0;let r=n.evasionFrom;return t===void 0||r===void 0||r>t?null:Math.max(0,r+y+ce(e.style).evasionTicks-t-1)}function uB(e,t,n){if(e.queued_actions===0)return 1/0;if(t===void 0)return 0;if(e.action!==null&&!oB(e,n)){let n=e.action_start_tick+e.action_startup_ticks+e.action_active_ticks+e.action_recovery_ticks-t-1;if(n>0)return n}return Math.max(0,e.stunned_ticks)}function dB(e,t,n,r,i={}){let a=lB(e,r,i);if(n<=0||nB(e)||a===null)return{dx:0,dy:0};let o=Math.max(a,r===void 0?e.action===null?0:1/0:cB(e,r,i)),s=uB(e,r,i),c=oB(e,i),l=(t,n)=>Math.min(n.share??1,r!==void 0&&!c&&sB(e,r+1+t)?v/100:1),u=e.velocity_x,d=e.velocity_y,f=0,p=0,m=Math.floor(n),h=n-m;for(let e=0;e=o&&er.speed*i&&(u=u/a*r.speed*i,d=d/a*r.speed*i),f+=u,p+=d}if(h>0){let e=m>=o&&m(e*(100-_)+t*_)/100,pB=1e3,mB=2.5,hB=class{history=[];offset={dx:0,dy:0};mean={x:0,y:0,speed:0,share:1};sample={x:0,y:0,speed:0};horizon=null;holds={rootedUntil:0,cutActionId:null,evasionFrom:void 0};observe(e,t){this.holds.rootedUntil=iB(e,t,this.holds.rootedUntil),this.holds.evasionFrom=aB(e,t,this.holds.evasionFrom)}update(e,t,n,r,i,a,o,s){for(this.history.push({at:r,held:n<=0?{...t,moveX:0,moveY:0}:t,share:n<=0?1:n});this.history.length>2&&this.history[1].at0&&e.action_id!==null&&(this.holds.cutActionId=e.action_id),e!==null){let t=1e3/s,n=this.horizon;c=dB(e,i=>this.meanIntent(e,i,r-(n-1-i)*t,t),n,a,this.holds)}let l=mB*g*s*o,u=c.dx-this.offset.dx,d=c.dy-this.offset.dy,f=Math.hypot(u,d),p=f>l?l/f:1;return this.offset.dx+=u*p,this.offset.dy+=d*p,{dx:this.offset.dx,dy:this.offset.dy}}meanIntent(e,t,n,r){let i=n-r/2,a=n+r/2,o=this.mean;o.x=0,o.y=0,o.speed=0,o.share=0;for(let n=0;nr?{x:i*(S-r),y:a*r}:m>n?{x:i*n,y:a*(S-n)}:{x:i*m,y:a*h}}function _B(e,t,n){let r=e.x+t.dx,i=e.y+t.dy;if(n!==null){let t=Math.min(Zz,Math.hypot(e.x-n.x,e.y-n.y)),a=r-n.x,o=i-n.y,s=Math.hypot(a,o);s1e-9?(r=n.x+a/s*t,i=n.y+o/s*t):(r=e.x,i=e.y))}let a=gB(r,i);return{dx:a.x-e.x,dy:a.y-e.y}}function vB(e){return e===`slip_left`||e===`slip_right`||e===`weave`||e===`pull`}function yB(e,t,n,r=!1){return e.stunned_ticks>0||e.taunt_ticks>0||e.clinch_ticks>0?e.defense:n===null?vB(e.defense)&&!r?e.defense:yt(e.injuries)?`none`:t.defense:n}var bB=class{kind=null;id=``;startsAt=0;endsAt=0;until=0;sequence=null;started=!1;press(e,t,n,r,i,a=y,o=n){this.kind=e,this.id=t,this.startsAt=o,this.endsAt=o+a*1e3/i,this.until=this.endsAt+Math.max(0,r)*1e3/i,this.sequence=null,this.started=!1}acknowledge(e,t,n){if(this.kind===null)return!1;this.sequence??=n?.(this.id)??null,e.defense===this.kind&&(this.started=!0);let r=!t||e.stunned_ticks>0||e.clinch_ticks>0,i=!this.started&&this.sequence!==null&&e.last_input_sequence>=this.sequence&&e.queued_actions===0;return(r||i)&&(this.kind=null),i}pose(e){return this.kind!==null&&e>=this.until&&(this.kind=null),this.kind!==null&&e>=this.startsAt&&e=this.startsAt&&e=this.startsAt&&e=this.startsAt?!1:(this.kind=null,!0)}},xB=[{radius:8.2,y:-.55,count:120,scale:1},{radius:10.6,y:.35,count:150,scale:1.04},{radius:13.2,y:1.35,count:180,scale:1.08},{radius:16,y:2.45,count:210,scale:1.12}],SB=.95,CB=.42,wB=[3819104,5915960,3493980,6963002,4612159,5524835,7233348,9076852,4678266,7620714,10107450,11843778,3104688,11573822,2303534,2303534],TB=[13081462,9067067,7225640,14726287,5517341,11105359],EB=[1380364,2759442,4862496,7035464,9341572,11569742],DB=.9,OB=.235,kB=-.35,AB=.32,jB=.26,MB=6.2;function NB(e,t,n=MB){return t>0&&Math.hypot(e,t)>n&&Math.abs(Math.atan2(e,t))<.3}var PB=` #ifdef USE_INSTANCING vec4 crowdWorld = modelMatrix * instanceMatrix * vec4(transformed, 1.0); #else vec4 crowdWorld = modelMatrix * vec4(transformed, 1.0); #endif vCrowdLight = vec3(-crowdWorld.x, ${7.5.toFixed(1)} - crowdWorld.y, -crowdWorld.z); -`,CB=` +`,FB=` #ifdef USE_COLOR totalEmissiveRadiance *= vColor.rgb * (0.22 + 0.78 * max(0.0, dot(inverseTransformDirection(normal, viewMatrix), normalize(vCrowdLight)))); #endif -`,wB=(e,t,n)=>{let r=Math.min(1,Math.max(0,(n-e)/(t-e)));return r*r*(3-2*r)};function TB(e,t){let n=[];for(let[r,i]of e.entries())for(let e=0;e0&&Math.abs(Math.atan2(s,c))<.3})}return n}function EB(e,t,n,r={rise:0,armLeft:0,armRight:0,sway:0}){let i=.2+.7*(1-e.keen),a=wB(i-.12,i+.12,n),o=Math.abs(Math.sin(t*(2.3+n*3.2)+e.phase*1.7))*(.02+.1*a),s=Math.sin(t*6.2+e.phase)*.32*a,c=_B+-2.35*a;return r.rise=a*vB+o,r.armLeft=c+s,r.armRight=c-s*.8,r.sway=Math.sin(t*1.6+e.phase)*(.04+n*.05),r}function DB(e){let t=Ng(e,!1);for(let t of e)t.dispose();if(t===null)throw Error(`crowd geometry could not be merged`);return t}function OB(){let e=new Pu(.16,.28,2,8);e.scale(1.35,1,.8),e.translate(0,.64,0);let t=new Pu(.078,.3,1,5);t.rotateZ(Math.PI/2),t.translate(0,.89,0);let n=new Pu(.11,.26,1,5);return n.rotateX(Math.PI/2),n.scale(1.7,1,1),n.translate(0,.4,.17),DB([e,t,n])}function kB(){let e=new _d(.105,10,6);e.rotateY(-Math.PI/2),e.scale(.92,1.12,1),e.translate(0,1.12,.01);let t=new Iu(.048,.056,.1,5,1,!0);t.translate(0,.99,0);let n=t.getAttribute(`uv`);for(let e=0;e{e.vertexShader=e.vertexShader.replace(`#include `,`#include -varying vec3 vCrowdLight;`).replace(`#include `,`#include \n${SB}`),e.fragmentShader=e.fragmentShader.replace(`#include `,`#include -varying vec3 vCrowdLight;`).replace(`#include `,`#include \n${CB}`)},e.customProgramCacheKey=()=>`hands-crowd`;let u=new jd({color:724501,roughness:.96,metalness:0,side:2}),d=new nu(o[0],s,i),f=new nu(o[1],c,i),p=new nu(o[2],l,i),m=new nu(o[3],s,i),h=new nu(o[3],s,i),g=[d,f,p,m,h],_=[d,f,p];for(let e of g)e.instanceMatrix.setUsage(go),e.frustumCulled=!1;let v=new V;for(let t=0;t.12&&v.setHex(mB[Math.floor(e()*mB.length)]).multiplyScalar((.8+e()*.4)*n),p.setColorAt(t,v)}for(let e of g)e.instanceColor.needsUpdate=!0;let y=new H(o[4],u);y.name=`stands`,y.receiveShadow=!1,n.add(y,...g);let b=new B(0,1,0),x=new B,S=new rs,C=new B,w=new Ds,T=new Ds,E=new Ds,D=new Ds,O={rise:0,armLeft:0,armRight:0,sway:0},k=(e,t,n,r)=>{E.makeTranslation(n*gB,hB,0),D.makeRotationX(r),T.multiplyMatrices(w,E).multiply(D),e.setMatrixAt(t,T)},ee=0,A=!1,te=!1,j=!1,ne=0,re=0,ie=r.flatMap((e,t)=>e.platform?[t]:[]),M=new Ds().makeScale(0,0,0),N=(e,t)=>{let n=r[e];if(j&&n.platform)for(let n of t?g:_)n.setMatrixAt(e,M);else EB(n,ne,re,O),S.setFromAxisAngle(b,n.yaw+O.sway),w.compose(x.set(n.x,n.y+O.rise*n.scale,n.z),S,C.setScalar(n.scale)),d.setMatrixAt(e,w),f.setMatrixAt(e,w),p.setMatrixAt(e,w),t&&(k(m,e,1,O.armLeft),k(h,e,-1,O.armRight))},ae=(e,t,n=!1)=>{let r=n||te;te=!1;let a=r?1:A?4:2,o=Math.ceil(i/a),s=ee%a*o,c=Math.min(i,s+o);ee+=1,ne=e,re=t;let l=!A||r;for(let e=s;e{e!==A&&(A=e,m.visible=!e,h.visible=!e,e||(te=!0))},makeRoomForCamera:e=>{let t=xB(e.x,e.z,j?5.9:bB);if(t!==j){j=t;for(let e of ie)N(e,!0);for(let e of g)e.instanceMatrix.clearUpdateRanges(),e.instanceMatrix.needsUpdate=!0}},dispose:()=>{for(let e of o)e.dispose();for(let e of[s,c,l,u])e.dispose();a.dispose();for(let e of g)e.dispose()}}}var FB=.3,IB=.012,LB=e=>()=>(e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296);function RB(){let e=new tc;e.name=`arena`;let t=[],n=[],r=[],i=new jd({color:`#05070c`,roughness:.95});n.push(i);let a=new Fu(30,40);t.push(a);let o=new H(a,i);o.rotation.x=-Math.PI/2,o.position.y=-1,o.receiveShadow=!0,e.add(o);let s=LB(20260727),c=lB,l=PB(s);e.add(l.group);let u=document.createElement(`canvas`);u.width=1024,u.height=64;let d=u.getContext(`2d`);d!==null&&(d.fillStyle=`#070c1a`,d.fillRect(0,0,1024,64),d.fillStyle=`#13203f`,d.fillRect(0,0,1024,5),d.fillRect(0,59,1024,5),d.textBaseline=`middle`,d.font=`800 38px Inter, system-ui, sans-serif`,d.fillStyle=`#e9c46a`,d.fillText(`H A N D S`,28,33),d.fillStyle=`#c9d6f2`,d.font=`600 26px Inter, system-ui, sans-serif`,d.fillText(`CHAMPIONSHIP BOXING`,300,34),d.fillStyle=`#e9c46a`,d.font=`800 30px Inter, system-ui, sans-serif`,d.fillText(`FIGHT NIGHT`,700,34),d.fillStyle=`#b91c1c`,d.fillRect(948,22,22,22),d.fillStyle=`#1d4ed8`,d.fillRect(978,22,22,22));let f=new ku(u);f.colorSpace=lo,f.wrapS=Bi,f.repeat.set(-6,1),r.push(f);let p=new yl({map:f,side:1});n.push(p);let m=c[0].y+dB,h=new Iu(c[0].radius-uB-.03,c[0].radius-uB-.03,m- -1-.04,72,1,!0);t.push(h);let g=new H(h,p);g.name=`boards`,g.position.y=(m+-1)/2+.02,e.add(g);let _=new Float32Array(270);for(let e=0;e<90;e+=1){let t=c[Math.floor(s()*c.length)],n=s()*Math.PI*2;_[e*3]=Math.sin(n)*t.radius,_[e*3+1]=t.y+.9+s()*.5,_[e*3+2]=Math.cos(n)*t.radius}let v=new il;v.setAttribute(`position`,new Uc(_,3)),t.push(v);let y=new xu({color:13623551,size:.09,transparent:!0,opacity:0,blending:2,depthWrite:!1});n.push(y);let b=new Eu(v,y);e.add(b);let x=new jd({color:`#11151d`,roughness:.6,metalness:.4});n.push(x);let S=new jd({color:`#1a2230`,emissive:`#dfe9ff`,emissiveIntensity:1.1,roughness:.4});n.push(S);let C=new yl({color:`#a8c4ff`,transparent:!0,opacity:.006,blending:2,depthWrite:!1,side:2});n.push(C);let w=new Nu(9,.18,.18);t.push(w);let T=new Iu(.09,.14,.22,10);t.push(T);let E=new Lu(1.7,6.6,20,1,!0);t.push(E);for(let t=0;t<2;t+=1){let n=new H(w,x);n.position.set(0,7.6,t===0?-1.6:1.6),e.add(n);for(let t=0;t<5;t+=1){let r=-3.6+t*1.8,i=new H(T,S);i.position.set(r,7.45,n.position.z),e.add(i);let a=new H(E,C);a.position.set(r,4.1,n.position.z*.4),e.add(a)}}let D=new jd({color:`#070a12`,roughness:1});n.push(D);let O=new Iu(24,24,14,32,1,!0);t.push(O);let k=new H(O,D);k.position.y=5,k.material.side=1,e.add(k);let ee=document.createElement(`canvas`);ee.width=512,ee.height=256;let A=ee.getContext(`2d`);A!==null&&(A.fillStyle=`#04060c`,A.fillRect(0,0,512,256),A.strokeStyle=`#f1cc72`,A.lineWidth=6,A.strokeRect(14,14,484,228),A.fillStyle=`#f1cc72`,A.font=`800 84px Inter, system-ui, sans-serif`,A.textAlign=`center`,A.textBaseline=`middle`,A.fillText(`H A N D S`,256,104),A.fillStyle=`#8fa3c8`,A.font=`600 30px Inter, system-ui, sans-serif`,A.fillText(`CHAMPIONSHIP BOXING`,256,186));let te=new ku(ee);te.colorSpace=lo;let j=new yl({map:te});n.push(j);let ne=new Nu(4.6,2.3,.3);t.push(ne);let re=new H(ne,j);re.position.set(0,6.4,-14.5),e.add(re);let ie=new H(ne,x);ie.position.set(0,6.4,-14.65),e.add(ie),r.push(te);let M=0,N=0,ae=0,oe=!1;return{group:e,update:(e,t,n)=>{ae=Math.max(0,ae-t*FB),n&&!oe&&l.update(0,0,!0),oe=n,n||(l.update(e,ae),f.offset.x=e*IB%1,M-=t,M<=0&&(N=.09+Math.random()*.08,M=(.25+Math.random()*1.6)/(1+ae*4)),N=Math.max(0,N-t),y.opacity=N>0?.85:0)},excite:e=>{ae=Math.min(1,ae+Math.max(0,e))},excitement:()=>ae,setLowTier:l.setLowTier,makeRoomForCamera:l.makeRoomForCamera,dispose:()=>{for(let e of t)e.dispose();for(let e of n)e.dispose();for(let e of r)e.dispose();l.dispose()}}}var zB=2.05,BB=5.5,VB=1.05,HB=1.78,UB=3.75,WB=.85,GB=.45,KB=1.18,qB=2.5,JB=5.5;function YB(e,t,n){return e<2.5||t<3?null:(n+Math.floor((e-qB)/JB))%2}function XB(e){return Math.max(0,e-qB)%JB}var ZB=.95,QB=2.6,$B=-25;function eV(e,t,n,r,i){let a=e===0?-1:1,o=r*Math.PI/180,s=-a*Math.SQRT1_2,c=a*Math.SQRT1_2,l=s*Math.cos(o)+c*Math.sin(o),u=-s*Math.sin(o)+c*Math.cos(o);return i.set(a*t+l*n,0,-a*t+u*n)}function tV(e,t,n,r,i){eV(e,t,QB,$B+Math.min(1,n/JB)*5,r).setY(1.45),eV(e,t,.62,27,i).setY(1.05)}var nV={top:2.42,bottom:.95,width:2.4};function rV(e,t,n,r=.09){let i=Math.max(.2,1-n-r),a=Math.max((nV.top-nV.bottom)/i,nV.width/Math.max(.1,e)),o=(nV.top+nV.bottom)/2;return{distance:a/(2*Math.tan(R.degToRad(t)/2)),height:o-(.5-(r+i/2))*a}}var iV=class{current=new B(0,zB,BB);look=new B(0,VB,0);swayPhase=0;update(e,t,n,r,i,a,o,s,c=!1,l=null){this.swayPhase+=e;let u=a&&l!==null?WB:0,d=(n.x+r.x)/2+((l?.x??0)-(n.x+r.x)/2)*u,f=(n.z+r.z)/2+((l?.z??0)-(n.z+r.z)/2)*u,p=R.clamp(d,-1.4,1.4),m=R.clamp(f,-1.1,1.1),h=c?R.clamp(UB+i*.45-(a?.6:0),3.3,5.6):R.clamp(BB+i*.6-(a?.9:0),4.6,8.4),g=(c?HB:zB)+i*.08-(a?.45:0),_=s?0:Math.sin(this.swayPhase*.21)*.35,v=s?0:Math.sin(this.swayPhase*.13)*.3,y=p*.32+_,b=h+m*.2,x=g+v*.2;if(this.current.x+=(y-this.current.x)*(1-Math.exp(-2.6*e)),this.current.y+=(x-this.current.y)*(1-Math.exp(-2.6*e)),this.current.z+=(b-this.current.z)*(1-Math.exp(-2.6*e)),this.look.x+=(p-this.look.x)*(1-Math.exp(-3.2*e)),this.look.y+=((a?u>0?GB:.7:c?KB:VB)-this.look.y)*(1-Math.exp(-3.2*e)),this.look.z+=(m*.6-this.look.z)*(1-Math.exp(-3.2*e)),!s&&o>5e-4){let e=t*61;this.current.x+=Math.sin(e*1.31)*o,this.current.y+=Math.cos(e*1.97)*o*.6,this.look.x+=Math.sin(e*1.53)*o*.5,this.look.y+=Math.cos(e*2.11)*o*.35}return{position:this.current,lookAt:this.look}}},aV=2.45,oV=2.25,sV=1.35,cV=3.5,lV=1.25,uV=.45;function dV(e,t,n,r,i,a,o=31){let s=R.degToRad(o),c=Math.cos(s)*aV,l=Math.sin(s)*aV,u=-r,d=n,f=-n*c+u*l,p=-r*c+d*l,m=(e,t)=>Math.abs(t)<1e-9?1:R.clamp((Math.sign(t)*cV-e)/t,0,1),h=Math.min(m(e.x,f),m(e.z,p));i.set(R.clamp(e.x+f*h,-3.5,cV),oV,R.clamp(e.z+p*h,-3.5,cV)),a.set(t.x,sV,t.z)}var fV=class{angle=Math.PI;closeness=0;initialised=!1;target=new B;position=new B;look=new B;aim=new B;get forwardX(){return Math.sin(this.angle)}get forwardZ(){return Math.cos(this.angle)}reset(){this.initialised=!1}update(e,t,n,r,i,a,o=16/9){let s=r.x-n.x,c=r.z-n.z,l=Math.hypot(s,c),u=l>.05?Math.atan2(s,c):this.angle,d=R.clamp((1.3-l)/.8,0,1);if(!this.initialised)this.angle=u,this.closeness=d;else{let t=Math.atan2(Math.sin(u-this.angle),Math.cos(u-this.angle));this.angle+=t*(1-Math.exp(-4.5*e)),this.closeness+=(d-this.closeness)*(1-Math.exp(-3*e))}let f=R.clamp(o,uV,1);if(dV(n,r,this.forwardX,this.forwardZ,this.target,this.aim,R.lerp(31,60,this.closeness)*f),!this.initialised)this.position.copy(this.target),this.look.copy(this.aim),this.initialised=!0;else{let t=1-Math.exp(-10*e);this.position.lerp(this.target,t),this.look.lerp(this.aim,t)}let p={position:this.position,lookAt:this.look,tight:!0};if(a||i<=5e-4)return p;let m=t*61;return this.target.set(this.position.x+Math.sin(m*1.31)*i,this.position.y+Math.cos(m*1.97)*i*.6,this.position.z),this.aim.set(this.look.x+Math.sin(m*1.53)*i*.5,this.look.y+Math.cos(m*2.11)*i*.35,this.look.z),{position:this.target,lookAt:this.aim,tight:!0}}},pV=54,mV=136,hV=110,gV=168,_V=400,vV=74,yV=72,bV={right:220,wideTop:64,compactTop:120,height:34},xV=200,SV={reach:192,bottom:80},CV=`rgba(3,6,12,0.86)`,wV=`rgb(4,7,13)`,TV={play:`#f6d57a`,colour:`#9ec7ff`,announcer:`#f6d57a`},EV=[`#4f86d9`,`#d9483c`],DV=`Inter, system-ui, sans-serif`;function OV(e){let{width:t,height:n}=e,r=t<640,i=n<480,a=i?.78:r?.85:1,o=Math.min(680,t-24),s=e.resultTop,c=s===null&&e.touch&&e.phase!==`complete`,l=Nr(t,n,c);if(c&&e.paused===!0&&e.phase===`countdown`)return null;if(s===null&&e.phase===`countdown`){let e=l.x+l.width/2,r=t-(c&&t>n?jr(t,n,l.y+l.height):12);return{x:e,y:l.y,maxWidth:Math.min(o,2*Math.min(e-12,r-e)),anchor:`top`,scale:a,cover:{width:l.width,height:l.height}}}let u=t-384;if(s===null&&!e.touch&&!i&&u>=_V){let r=n-(e.hint?gV:hV),i=e.cornerPanelTop===void 0||e.cornerPanelTop===null?r:Math.min(r,e.cornerPanelTop-8);if(i-vV*a>=n*.45)return{x:t/2,y:i,maxWidth:Math.min(o,u),anchor:`bottom`,scale:a,cover:null}}if(s===null&&e.viewerDown)return null;let d=s===null&&r?mV:pV;s===null&&(e.phase===`rest`||e.phase===`foul_recovery`||c&&e.paused===!0?d=Math.max(d,l.y+l.height+8):e.phase===`knockdown`?d=Math.max(d,ti(n,r)+yV):e.phase===`finish`&&(d=Math.max(d,di(t,n,c).bottom+8+(c?0:59))),e.replay&&t/2-o/2f)return null;let p=c&&e.lag===!0&&!r&&!e.replay&&dMath.round(8*e)+Math.round(10*e)+Math.round(4*e)+2*Math.round(Math.round(17*e)*1.3)+Math.round(5*e);function AV(e,t,n,r){let i=r?1:t.opacity;if(i<=.01)return;let a=r||n.cover!==null?0:t.entering*8*(n.anchor===`bottom`?1:-1);e.save(),e.globalAlpha=i,e.textBaseline=`alphabetic`;let o=i*i;t.line.card===null?NV(e,t.line,n,a,o):FV(e,t.line.card,n,a,o),e.restore()}function jV(e,t,n){if(e.measureText(t).width<=n)return t;let r=t;for(;r.length>1&&e.measureText(`${r}…`).width>n;)r=r.slice(0,-1);return`${r}…`}function MV(e,t){let n=e.length/2,r=null,i=1/0;for(let a=e.indexOf(` `);a>=0;a=e.indexOf(` `,a+1)){let o=e.slice(0,a),s=e.slice(a+1),c=Math.abs(a-n);t(o)&&t(s)&&c0?[e.slice(0,a),e.slice(a+1)]:[e,``]}function NV(e,t,n,r,i){let a=n.scale,o=Math.round(14*a),s=Math.round(10*a),c=n.maxWidth-o*2-4,l=(t,n)=>(e.font=`700 ${n}px ${DV}`,e.measureText(t).width),u=Hn(e=>l(t.text,e),c,Math.round(17*a),Math.round(13*a)),d=l(t.text,u)<=c?[t.text]:MV(t.text,e=>l(e,u)<=c).filter(e=>e.length>0),f=Math.max(...d.map(e=>Math.min(c,l(e,u)))),p=SR[t.speaker];e.font=`800 ${s}px ${DV}`;let m=e.measureText(p).width,h=Math.min(n.maxWidth,Math.max(f,m)+o*2+4),g=Math.round(u*1.3),_=Math.round(8*a)+s,v=_+Math.round(4*a)+d.length*g+Math.round(5*a),y=(n.anchor===`bottom`?n.y-v:n.y)+r,b=n.x-h/2,x=TV[t.speaker];e.fillStyle=CV,e.fillRect(b,y,h,v),e.fillStyle=x,e.fillRect(b,y,4,v),e.globalAlpha=i,e.textAlign=`left`,e.font=`800 ${s}px ${DV}`,e.fillText(p,b+4+o,y+_),e.fillStyle=`#f6f7fb`,e.font=`700 ${u}px ${DV}`,d.forEach((t,n)=>e.fillText(jV(e,t,c),b+4+o,y+_+Math.round(4*a)+g*(n+1)-Math.round(u*.28)))}function PV(e,t,n){let r=Math.round(11*e),i=Math.round(28*e),a=Math.round(6*e),o={pad:Math.round(10*e),gap:Math.round(7*e)},s={pad:Math.max(4,Math.round(6*e)),gap:Math.max(3,Math.round(4*e))},c=t?Math.round(10*e):0,l=[{...o,detail:c},{...s,detail:c},{...s,detail:0}],u=(e,t)=>e.pad*2+r+e.gap+t+(e.detail===0?0:a+e.detail);for(let e of l)if(n===null||u(e,i)<=n)return{kicker:r,title:i,...e,height:u(e,i)};let d=l[2],f=Math.max(12,Math.min(i,(n??1/0)-u(d,0)));return{kicker:r,title:f,...d,height:u(d,f)}}function FV(e,t,n,r,i){let a=n.scale,o=Math.round(18*a),s=n.maxWidth-o*2,c=PV(a,t.detail.length>0,n.cover?.height??null),l=c.kicker,u=c.detail,d=(t,n,r)=>(e.font=`${n} ${r}px ${DV}`,e.measureText(t).width),f=Hn(e=>d(t.title,900,e),s,c.title,Math.min(c.title,Math.round(15*a))),p=Math.max(d(t.kicker,800,l),Math.min(s,d(t.title,900,f)),u===0?0:d(t.detail,700,u)),m=Math.min(n.maxWidth,Math.max(240*a,p+o*2,n.cover?.width??0)),h=c.pad+l+c.gap+f+(u===0?0:Math.round(6*a)+u)+c.pad,g=Math.max(h,n.cover?.height??0),_=(n.anchor===`bottom`?n.y-g:n.y)+r,v=n.x-m/2,y=t.corner===null?TV.announcer:EV[t.corner];e.fillStyle=n.cover===null?CV:wV,e.fillRect(v,_,m,g),e.fillStyle=y,e.fillRect(v,_,m,3),e.globalAlpha=i,e.textAlign=`center`;let b=_+(g-h)/2+c.pad+l;e.font=`800 ${l}px ${DV}`,e.fillText(jV(e,t.kicker,s),n.x,b),b+=c.gap+f,e.fillStyle=`#ffffff`,e.font=`900 ${f}px ${DV}`,e.fillText(jV(e,t.title,s),n.x,b-Math.round(f*.12)),u>0&&(b+=Math.round(6*a)+u,e.fillStyle=`#93a3bd`,e.font=`700 ${u}px ${DV}`,e.fillText(jV(e,t.detail,s),n.x,b))}var IV={broken_nose:[`nose`,.3],broken_jaw:[`mouth`,.25],jaw_torn:[`mouth`,.75],eye_left_out:[`eye_left`,.3],eye_right_out:[`eye_right`,.3],ear_left_torn:[`ear_left`,.3],ear_right_torn:[`ear_right`,.3],skull_fractured:[`skull`,.4],arm_left_broken:[`elbow_left`,.3],arm_right_broken:[`elbow_right`,.3],forearm_left_severed:[`elbow_left`,1],forearm_right_severed:[`elbow_right`,1],arm_left_torn:[`shoulder_left`,1],arm_right_torn:[`shoulder_right`,1],ribs_left_broken:[`ribs_left`,.15],ribs_right_broken:[`ribs_right`,.15],disemboweled:[`belly`,.6],knee_left_blown:[`knee_left`,.2],knee_right_blown:[`knee_right`,.2]},LV=new Map(Ge.map(e=>[e,[]]));for(let[e,[t,n]]of Object.entries(IV))LV.get(t).push([e,n]);var RV=new Set([`nose`,`mouth`,`eye_left`,`eye_right`,`ear_left`,`ear_right`,`skull`]),zV=new Set([`waist`,`crotch`,`knee_left`,`knee_right`]),BV=1.5,VV=8,HV=.9,UV=18,WV=36,GV=.45,KV=.25,qV=.3,JV=.08,YV=.012,XV=[`ankleL`,`ankleR`],ZV=[`toeL`,`toeR`],QV=.35,$V=.05,eH=.5,tH=.3,nH=.4,rH=2.2,iH=.12,aH=4e-4,oH=.4,sH=.6,cH=4,lH=1.1,uH=1/500,dH=.18,fH=.55,pH=.45,mH=.5,hH=.08,gH=[`gloveL`,`gloveR`],_H={bottom:80,top:108,half:17},vH=70,yH=2,bH=7,xH=.5,SH=.28,CH=[`left`,`right`],wH={left:`eye_left_out`,right:`eye_right_out`},TH={left:`eye_left`,right:`eye_right`},EH={left:[`forearm_left_severed`,`arm_left_torn`],right:[`forearm_right_severed`,`arm_right_torn`]},DH=[`head`,`arm_left`,`arm_right`,`leg_left`,`leg_right`,`torso`],OH={head:[`neck`,`neck`],jaw:[`mouth`,`head`],forearm_left:[`elbow_left`,`elbowL`],forearm_right:[`elbow_right`,`elbowR`],arm_left:[`shoulder_left`,`shoulderL`],arm_right:[`shoulder_right`,`shoulderR`],leg_left:[`knee_left`,`kneeL`],leg_right:[`knee_right`,`kneeR`],upper_body:[`waist`,`hips`],torso:[`chest`,`upperChest`]},kH=Object.keys(OH),AH={head:[`head`],jaw:[`head`],forearm_left:[`body`,`glove_left`],forearm_right:[`body`,`glove_right`],arm_left:[`body`,`glove_left`],arm_right:[`body`,`glove_right`],leg_left:[`body`,`shoes`],leg_right:[`body`,`shoes`],upper_body:[`head`,`body`,`glove_left`,`glove_right`],torso:[`body`,`pants`]},jH=new B(0,1,0),MH=new B(0,.12,.02),NH=class{effects;bake;bodies=[null,null];position=new B;axis=new B;scratch=new B;turn=new rs;matrix=new Ds;skullOffset=new B;injuries=new Set;time=0;settings={blood:`full`,reducedMotion:!1};xray=new Jk;constructor(e,t){this.effects=e,this.bake=t,e.scene.add(this.xray.root)}attach(e,t){this.bodies[e]?.mutilation.dispose(),this.xray.prepare(t.boxer);let n={graph:t,mutilation:new ok(t.boxer),shown:new Set,early:new Map,awaited:new Map,inflicted:new Set,fatalWounds:new Map,forced:new Set,fatalParts:[],burst:new Set,fatality:null,dead:null,gutsDropAt:null,gibbed:!1,vomitUntil:0,printed:[new B,new B],dragged:new B,sliding:!1,broke:null,spatter:0,lost:0,dripIn:0,dripped:0,diedAt:0,voided:!1};return this.bodies[e]=n,n.mutilation}get graphic(){return this.settings.blood===`full`&&!this.settings.reducedMotion}expect(e,t){let n=this.bodies[e];n!=null&&!n.inflicted.has(t)&&n.awaited.set(t,this.time+VV)}sync(e,t,n,r,i,a=!1){this.time=i,this.settings=n;let o=this.bodies[e];if(o==null)return;let s=this.graphic;!s&&(o.gibbed||o.fatalParts.length>0||o.fatalWounds.size>0||o.forced.size>0)&&this.unmaim(o,e);let c=this.injuries;c.clear();let l=!1;for(let e of t.injuries){let t=o.awaited.get(e);if(t!==void 0){if(i<=t){l=!0;continue}o.awaited.delete(e)}c.add(e),o.early.delete(e),o.inflicted.add(e)}for(let[e,t]of o.early)i>t?o.early.delete(e):c.add(e);for(let e of o.forced)c.add(e);if(l)for(let e of o.shown)c.add(e);o.shown.clear();for(let e of c)o.shown.add(e);for(let e of o.inflicted)o.shown.has(e)||o.inflicted.delete(e);let u=o.graph.boxer,d=R.clamp(1-t.blood_volume/Je,0,1);if(o.mutilation.apply(o.shown,s?`full`:n.blood===`off`?`off`:`reduced`),o.mutilation.setPallor(n.blood===`off`?0:d),o.graph.setInjuries(o.shown,s),o.graph.setFaint(o.dead===null?R.clamp((.6-t.blood_volume/Je)/.6,0,1):0),o.dead!==null&&!o.graph.isDead&&o.graph.die(o.dead),o.mutilation.update(r,i),this.xray.owner===e&&(s&&!o.gibbed?this.xray.update(r):this.xray.stop()),u.root.visible=!o.gibbed,o.gibbed)return;this.wear(o,e,d,r);let f=o.mutilation.isPartGone(`upper_body`),p=f||u.isDecapitated,m=p||u.isHeadBurst,h=1-.65*d,g=0;for(let t of Ge){let n=o.fatalWounds.get(t)??0,r=`blood`,c=LV.get(t);for(let e=0;e0&&o.mutilation.anchor(t,this.position,this.axis)&&this.effects.anchorWound(e,t,this.position,this.axis)}for(let t=0;t=o.gutsDropAt&&(o.gutsDropAt=null,this.effects.dropGuts(e)),this.effects.anchorGuts(e,this.position,this.axis)):this.effects.gutsOut(e)&&this.effects.clearGuts(e),i=KV&&this.track(o,Math.min(1,g)),o.dead===null||!o.mutilation.anchor(`waist`,this.position,this.axis))return;this.effects.setCorpse(e,s?this.position:null);let v=s&&this.position.yeH?o.dragged.copy(this.position):y>$V&&(this.effects.smear(o.dragged.x,o.dragged.z,this.position.x,this.position.z,tH),o.dragged.copy(this.position)),o.sliding=v}gibbed(e){return this.bodies[e]?.gibbed===!0}hasGlove(e,t){let n=this.bodies[e]?.shown;return n===void 0||!this.graphic||!(n.has(EH[t][0])||n.has(EH[t][1]))}wear(e,t,n,r){let i=e.graph.boxer,a=this.graphic,o=this.bodies[1-t]??null;e.lost=n;let s=o===null?0:o.lost*rH+o.shown.size*iH,c=a?Math.min(1,Math.max(e.spatter,s)):0;i.headInjury.setSpatter(c*.8),i.bodyInjury.setSpatter(c),i.setGloveBlood(Math.max(i.gloveBloodLevel,c)),i.setTrunksBlood(Math.max(i.trunksBloodLevel,c*.7));let l=this.settings.blood===`off`?1:sH+Math.min(lH,n*cH);if(i.headInjury.setRun(l),i.bodyInjury.setRun(l),this.settings.blood===`off`&&(i.headInjury.clearMarks(),i.bodyInjury.clearMarks()),!a||e.dead!==null||i.gloveBloodLevel0))return;e.dripIn=mH/i.gloveBloodLevel,e.dripped+=1;let u=e.dripped%2;this.hasGlove(t,CH[u])&&(i.rig.bones[gH[u]].getWorldPosition(this.position),this.position.y-=hH,this.effects.shed(this.position,t*4099+e.dripped))}land(e,t,n,r,i,a,o,s=0,c=1){let l=this.bodies[t]??null,u=this.bodies[e]??null;if(l!==null&&n!==null&&this.hasGlove(t,n)?l.graph.boxer.rig.bones[gH[n===`left`?0:1]].getWorldPosition(this.scratch):this.scratch.copy(o),this.bruise(e,this.scratch,r,i),this.graphic&&(a>0&&l!==null&&(l.spatter=Math.min(1,l.spatter+a*aH)),a>0&&u!==null&&(u.spatter=Math.min(1,u.spatter+a*aH*oH)),!(u===null||u.gibbed))){for(let t=0;t_H.top||Math.abs(t)>_H.half))continue;let i=(t-s.x)**2+(r-s.y)**2+(c.getZ(e)-s.z)**2;ia.mutilation.anchor(e,c,l);switch(t){case`broken_nose`:d(`nose`)&&s.sprayFluid(`blood`,c,r,140,n,1.1);break;case`broken_jaw`:d(`mouth`)&&(s.spawnTeeth(c,r,5,n),s.sprayFluid(`blood`,c,r,180,n));break;case`jaw_torn`:d(`mouth`)&&(this.fling(a,e,`jaw`,n,r,{radius:.05,speed:1.2,lift:.8}),s.spawnDebris(`jawbone`,c,r,1,n,1.2),s.spawnTeeth(c,r,9,n),s.sprayFluid(`blood`,c,r,420,n,1.2));break;case`eye_left_out`:case`eye_right_out`:d(`eye_${u}`)&&(s.gougeEye(e,c,l,r,n,u),s.sprayFluid(`blood`,c,r,120,n));break;case`ear_left_torn`:case`ear_right_torn`:d(`ear_${u}`)&&(s.spawnDebris(`ear`,c,r,1,n),s.sprayFluid(`blood`,c,r,130,n));break;case`face_left_flayed`:case`face_right_flayed`:d(`eye_${u}`)&&(s.spawnDebris(`skin`,c,r,3,n),s.sprayFluid(`blood`,c,r,260,n));break;case`skull_fractured`:d(`skull`)&&(s.spawnDebris(`shard`,c,r,7,n,1.2),s.spawnDebris(`brain`,c,r,8,n),s.sprayFluid(`blood`,c,r,300,n,1.3),s.sprayFluid(`brain`,c,r,90,n));break;case`shoulder_left_dislocated`:case`shoulder_right_dislocated`:break;case`arm_left_broken`:case`arm_right_broken`:d(`elbow_${u}`)&&(s.spawnDebris(`bone`,c,r,3,n),s.sprayFluid(`blood`,c,r,200,n));break;case`forearm_left_severed`:case`forearm_right_severed`:this.fling(a,e,`forearm_${u}`,n,r,{radius:.07,speed:1.1}),d(`elbow_${u}`)&&(s.spawnDebris(`bone`,c,r,2,n),s.spawnDebris(`flesh`,c,r,8,n),s.sprayFluid(`blood`,c,r,600,n,1.3));break;case`arm_left_torn`:case`arm_right_torn`:this.fling(a,e,`arm_${u}`,n,r,{radius:.08,speed:1,spin:.7}),d(`shoulder_${u}`)&&(s.spawnDebris(`flesh`,c,r,14,n),s.spawnDebris(`bone`,c,r,2,n),s.sprayFluid(`blood`,c,r,800,n,1.4));break;case`ribs_left_broken`:case`ribs_right_broken`:d(`ribs_${u}`)&&(s.spawnDebris(`bone`,c,r,2,n,.8),s.sprayFluid(`blood`,c,r,140,n));break;case`liver_ruptured`:this.vomit(e,n,1.6);break;case`disemboweled`:d(`belly`)&&(s.spillGuts(e,c,n,UV),s.spawnDebris(`organ`,c,r,3,n),s.spawnDebris(`gut`,c,r,4,n),s.spawnDebris(`fat`,c,r,4,n),s.sprayFluid(`blood`,c,r,650,n,1.2),s.sprayFluid(`bile`,c,r,110,n));break;case`knee_left_blown`:case`knee_right_blown`:d(`knee_${u}`)&&(s.spawnDebris(`bone`,c,r,2,n,.7),s.sprayFluid(`blood`,c,r,110,n))}return!0}rebreak(e,t){let n=this.bodies[e],r=n?.broke??null;return n==null||r===null||r.tick!==t||!this.graphic||n.gibbed?!1:(this.xray.start(e,n.graph.boxer,n.mutilation,r.site,r.x,r.z),!0)}drawBreak(e,t,n,r){if(this.xray.owner<0)return;let i=this.effects.mistPoints,a=i.visible,o=r.visible;i.visible=!1,r.visible=!1,this.xray.drawInset(e,t,n),i.visible=a,r.visible=o}holdXray(e,t){let n=this.bodies[e];n!=null&&this.xray.start(e,n.graph.boxer,n.mutilation,t,1,0,!0)}vomit(e,t,n=1.3){let r=this.bodies[e];r==null||r.gibbed||this.settings.reducedMotion||(r.graph.retch(n),this.settings.blood===`full`&&r.mutilation.anchor(`mouth`,this.position,this.axis)&&(r.vomitUntil=this.time+n,this.effects.gush(e,this.position,this.axis.addScaledVector(jH,-.4).normalize(),n,520,t,`bile`),this.effects.sprayFluid(`blood`,this.position,0,90,t,.6),this.effects.puddle(this.position.x+this.axis.x*nH,this.position.z+this.axis.z*nH,.22,`bile`,t)))}fatality(e,t,n,r){let i=this.bodies[e];if(i==null||i.fatality!==null||!this.graphic)return!1;i.fatality=t;let a=this.effects,o=this.position,s=this.axis,c=(t,i,s=1)=>a.spawnDebris(t,o,r,i,n,s,e),l=(e,t,i=1)=>a.sprayFluid(e,o,r,t,n,i);if(t===`eyes_out`){for(let t=0;ta||Math.hypot(this.position.x-s.x,this.position.z-s.z)t!==n&&e.mutilation.isPartGone(t)),d=[],f=new B;for(let e of AH[n]){let t=lO(c,e);if(t===null||!t.visible)continue;let r=t=>oO(n,e,t)&&!u.some(n=>oO(n,e,t)),i=t.geometry.getAttribute(`position`),a=t.geometry.getIndex(),o=0,s=0,p=new Uint8Array(i.count);if(a===null)p.fill(1);else for(let e=0;e0&&d.push(this.bake(c,e,t,l,this.turn,o===s?void 0:r))}return d.length>0&&this.effects.flingPart(PH(t,n),d,l,this.turn,i,r,{...a,part:n})}};function PH(e,t){return`${e}:${t}`}var FH=96,IH=4,LH=2.5,RH=.45,zH=.032,BH=e=>()=>(e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296);function VH(e){let t=document.createElement(`canvas`);t.width=FH,t.height=FH;let n=t.getContext(`2d`);if(n===null)return t;let r=BH(e),i=FH/2,a=4+Math.floor(r()*3);for(let e=0;e.05)||!Number.isFinite(e)||!Number.isFinite(t))return;let i=BH((Number.isSafeInteger(r)?r:0)*40503+11),a=Math.min(24,Math.max(1,Math.round(n*12))),o=.7+.3*Math.min(3,n);for(let r=0;r=1.5?1.8:1),l=LH+i()*2.5;this.drops.push({x:Math.min(1,Math.max(0,a?i():e+(i()+i()-1)*s*1.6)),y:Math.min(1,Math.max(0,a?i():t+(i()+i()-1)*s)),radius:c,alpha:.6+i()*.35,life:l,maxLife:l,run:c>=zH?.02+i()*.04:0,ran:0,sprite:Math.floor(i()*IH),turn:i()*Math.PI*2})}this.drops.length>96&&this.drops.splice(0,this.drops.length-96)}update(e){let t=Number.isFinite(e)?Math.max(0,e):0;for(let e=this.drops.length-1;e>=0;--e){let n=this.drops[e];n.life-=t,n.life<=0?this.drops.splice(e,1):n.ran+=n.run*t*(n.life/n.maxLife)}}draw(e,t,n){if(this.drops.length!==0){this.sprites??=Array.from({length:IH},(e,t)=>VH(1374496523+t*7919)),e.save();for(let r of this.drops){let i=Math.min(1,r.life/(r.maxLife*RH)),a=r.radius*n,o=r.x*t,s=(r.y+r.ran)*n;if(e.globalAlpha=r.alpha*i,r.ran>0){let t=r.y*n,i=e.createLinearGradient(0,t,0,s);i.addColorStop(0,`rgba(88,0,6,0)`),i.addColorStop(1,`rgba(88,0,6,0.6)`),e.fillStyle=i,e.beginPath(),e.moveTo(o-a*.06,t),e.lineTo(o+a*.06,t),e.lineTo(o+a*.28,s),e.lineTo(o-a*.28,s),e.closePath(),e.fill()}e.save(),e.translate(o,s),e.rotate(r.turn),e.drawImage(this.sprites[r.sprite],-a,-a,a*2,a*2),e.restore()}e.restore()}}clear(){this.drops.length=0}},UH=.026,WH=.038,GH=22,KH=[[.55,.85],[.55,.1],[.4,-.12],[-.4,-.12],[-.55,.05],[-.55,.6],[-.32,.62],[-.3,.16],[.3,.16],[.32,.85]],qH=.03;function JH(){let e=[],t=[],n=KH.length,r=new B,i=new B,a=new B;for(let t=0;t<=GH;t+=1){let n=t/GH*2-1;r.set(n*UH,0,WH*(1-n*n)-WH*.5),i.set(UH,0,-2*WH*n).normalize(),a.set(i.z,0,-i.x),a.dot(r.clone().setY(0).add(new B(0,0,WH*.5)))<0&&a.negate();for(let[t,n]of KH)e.push(r.x+a.x*t*.01,n*.01,r.z+a.z*t*.01)}for(let e=0;e=50:e===`hit`&&t>=65:!1}var XH=9.81,ZH=.32,QH=4.5,$H=.04,eU=3;function tU(){return{out:!1,moving:!1,sliding:!1,x:0,y:-50,z:0,vx:0,vy:0,vz:0,wx:0,wy:0,wz:0,bounces:0,age:0,restYaw:0}}function nU(e,t,n,r){if(!e.out||!e.moving)return!1;e.age+=n;let i=r+.006;if(!e.sliding)e.vy-=XH*n,e.x+=e.vx*n,e.y+=e.vy*n,e.z+=e.vz*n,sU(t,e.wx*n,e.wy*n,e.wz*n),e.y<=i&&(e.y=i,e.bounces.6?(e.bounces+=1,e.vy=-e.vy*ZH,e.vx*=.72,e.vz*=.72,e.wx*=.55,e.wy*=.7,e.wz*=.55):(e.vy=0,e.sliding=!0));else{let r=Math.hypot(e.vx,e.vz),a=Math.max(0,r-QH*n);a<=$H?(e.vx=0,e.vz=0):(e.vx*=a/r,e.vz*=a/r),e.x+=e.vx*n,e.z+=e.vz*n,e.y=i,e.wy*=Math.exp(-4*n),e.restYaw+=e.wy*n,iU.setFromAxisAngle(rU,e.restYaw),t.slerp(iU,1-Math.exp(-12*n)),e.vx===0&&e.vz===0&&t.angleTo(iU)<.02&&(t.copy(iU),e.moving=!1)}return e.moving}var rU=new B(0,1,0),iU=new rs,aU=new rs,oU=new Ls;function sU(e,t,n,r){aU.setFromEuler(oU.set(t,n,r)),e.multiply(aU).normalize()}var cU=[.84,.78,.62],lU=[.4,.04,.04],uU=[.3,.012,.018],dU=[.5,.045,.05],fU=[.86,.64,.16],pU=[.42,.19,.09],mU=[.92,.88,.74],hU=[.72,.36,.34],gU=[.82,.52,.46],_U=(e,t,n)=>{let r=Math.min(1,Math.max(0,n));return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r,e[2]+(t[2]-e[2])*r]},vU=e=>{let t=Math.min(1,Math.max(0,e));return t*t*(3-2*t)},yU=(e,t,n=0)=>.5+.25*Math.sin(e.x*t*1.31+n)*Math.sin(e.y*t*1.93+n*1.7)+.25*Math.sin(e.z*t*1.57+n*.6)*Math.sin(e.x*t*.83-n),bU=e=>()=>(e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296),xU=new B;function SU(e,t){e.deleteAttribute(`normal`),e.deleteAttribute(`uv`);let n=Fg(e,1e-5);e.dispose();let r=n.getAttribute(`position`);for(let e=0;enew Ds().compose(new B(e,t,n),new rs().setFromEuler(new Ls(r,i,a)),new B(o,s,c));function EU(e,t,n){return CU(new bd(new Ju(e.map(e=>new B(...e))),Math.max(4,e.length*3),t,7,!1),n)}var DU=new Map;function OU(e){let t=DU.get(e);return t===void 0&&(t=e(),DU.set(e,t)),t.clone()}function kU(){return wU([CU(SU(new fd(1,3),e=>{e.normalize();let t=.45+.55*vU((e.x+1)/2),n=1-.34*Math.exp(-(((e.x+.2)/.14)**2))*vU(e.z+.6),r=1+.07*Math.sin(e.x*5.1+.7)*Math.sin(e.z*4.3+1.9);e.set(e.x*.1*r,(e.y>0?e.y:e.y*.4)*.04*t*r,e.z*.062*n*(.7+.3*t))}),e=>_U(_U([.2,.035,.022],[.34,.07,.04],yU(e,70)),uU,e.y<-.006?.5:0)),CU(SU(new fd(1,2),e=>e.set(e.x*.03,e.y*.012,e.z*.014)),[.16,.24,.04],TU(.03,-.012,.03,0,.5,0)),EU([[.01,.004,-.03],[0,.012,-.055],[-.012,.014,-.075]],.007,e=>_U([.16,.05,.2],uU,vU((-e.z-.06)*60)))])}function AU(){return wU([CU(SU(new fd(1,3),e=>{e.normalize();let t=1-.42*Math.exp(-((e.x/.4)**2))*vU(e.z);e.set(e.x*.058,e.y*.024,e.z*.033*t-e.x*e.x*.012)}),e=>_U([.3,.05,.075],[.19,.025,.05],yU(e,120,1.3))),EU([[0,0,.014],[.004,.002,.034],[.018,0,.058],[.02,-.002,.082]],.0048,e=>_U([.86,.72,.56],uU,vU((e.z-.066)*70))),EU([[-.006,.002,.014],[-.012,.004,.034],[-.03,.002,.046]],.0042,uU),CU(SU(new fd(1,1),e=>e.set(e.x*.014,e.y*.009,e.z*.01)),fU,TU(0,.002,.02))])}function jU(){return wU([CU(SU(new fd(1,3),e=>{e.normalize();let t=.55+.45*vU((1-e.z)/2+.1),n=1-.3*Math.exp(-(((e.z-.1-e.x*.3)/.1)**2)),r=1+.035*Math.sin(e.x*23)*Math.sin(e.y*19)*Math.sin(e.z*21);e.set(e.x*.062*t*n*r,(e.y>0?e.y:e.y*.55)*.036*t*n*r,e.z*.09*r)}),e=>_U(_U([.66,.34,.34],[.34,.16,.2],vU(yU(e,160,.4)*1.7-.5)),uU,vU((e.z-.05)*22)*.7)),CU(new Iu(.011,.012,.045,9,5,!0),e=>Math.abs((e.y+.5)*110%2)<1?[.84,.74,.62]:[.6,.26,.24],TU(0,.006,.105,Math.PI/2-.2,0,0))])}function MU(){let e=new Ju([[-.085,0,.012],[-.045,.004,-.02],[0,0,.018],[.04,.003,-.016],[.082,0,.014]].map(e=>new B(...e))),t=[],n=[],r=[],i=e.computeFrenetFrames(30,!1);for(let r=0;r<=30;r+=1){let a=r/30,o=e.getPointAt(a),s=Math.min(1,Math.sin(a*Math.PI)*5),c=.0175*(.82+.18*Math.abs(Math.sin(a*Math.PI*5.5)))*(.25+.75*s);for(let e=0;e<9;e+=1){let l=e/9*Math.PI*2,u=xU.copy(i.normals[r]).multiplyScalar(Math.cos(l)).addScaledVector(i.binormals[r],Math.sin(l));t.push(o.x+u.x*c,o.y+u.y*c,o.z+u.z*c);let d=1-.3*(1-Math.abs(Math.sin(a*Math.PI*5.5))),f=e===0?uU:_U(_U(hU,gU,.5+.5*Math.sin(a*23+e)),uU,s<1?.8:0);n.push(f[0]*d,f[1]*d,f[2]*d)}}for(let e=0;e<30;e+=1)for(let t=0;t<9;t+=1){let n=e*9+t,i=e*9+(t+1)%9;r.push(n,i,n+9,i,i+9,n+9)}let a=new il;a.setAttribute(`position`,new Kc(t,3)),a.setAttribute(`color`,new Kc(n,3)),a.setIndex(r),a.computeVertexNormals();let o=a.toNonIndexed();return a.dispose(),wU([o,...[[-.03,-.004,-.03],[.012,-.004,.03],[.05,-.004,-.028]].map(([e,t,n])=>CU(SU(new fd(1,1),e=>e.set(e.x*.016,e.y*.007,e.z*.011)),fU,TU(e,t,n,0,e*20,0)))])}function NU(){let e=[[.012,.008],[.004,.0105],[-.01,.0075],[-.013,-.004],[-.002,-.0095],[.01,-.0065]],t=[-1,-.72,-.3,.2,.62,1],n=[.02,.62,1,.9,.5,.02],r=[.004,-.002,0,.001,-.003,.005],i=[],a=[],o=(i,a)=>{let[o,s]=e[a%e.length];return[t[i]*.062,s*n[i],o*n[i]+r[i]]},s=(n,r)=>{let i=Math.abs(t[n]);return _U(r%e.length===3||r%e.length===4?_U(cU,lU,.75):cU,uU,vU((i-.6)*3.2))};for(let n=0;n_U(pU,dU,vU((-e.x-.006)*90));return wU([CU(SU(new fd(1,3),e=>{e.normalize();let t=e.y>0?1-.75*Math.exp(-(((e.x-.1)/.5)**2+((e.z+.1)/.55)**2)):1;e.set(e.x*.019,e.y*.0055*t,e.z*.031*(1-.18*e.x))}),t=>_U(e(t),[.24,.08,.05],t.y<.003&&t.y>-.001?.5:0)),CU(new yd(.024,.0048,7,18,Math.PI*1.25),pU,TU(-.001,.004,.004,-Math.PI/2,0,-Math.PI*.72,.78,1.18,1)),CU(SU(new fd(1,2),e=>e.set(e.x*.0095,e.y*.0055,e.z*.0105)),e,TU(.002,.002,.031)),CU(SU(new fd(1,1),e=>e.set(e.x*.005,e.y*.005,e.z*.007)),e,TU(-.011,.004,.006)),CU(SU(new fd(1,1),e=>e.set(e.x*.006,e.y*.005,e.z*.022)),dU,TU(-.017,0,.002))])}var FU=12;function IU(){let e=e=>[Math.sin(e)*.046,Math.cos(e)*.056-.02],t=[],n=e=>_U(_U(cU,[.7,.6,.44],yU(e,200)),uU,vU((e.y-.003)*220)*.75),r=Math.PI*.62,i=[];for(let t=0;t<=22;t+=1){let[n,a]=e(-r+t/22*r*2);i.push(new B(n,0,a))}let a=new bd(new Ju(i),44,.0085,8,!1);t.push(CU(SU(a,e=>e.setY(e.y*1.35)),n)),t.push(CU(SU(new fd(1,2),e=>e.set(e.x*.016,e.y*.013,e.z*.011)),n,TU(0,-.003,.038)));for(let n=0;n_U(mU,[.7,.2,.14],vU((-e.y-5e-4)*400)),TU(a,.0125+(s?.0045:.003),o,0,-i,0))),t.push(CU(SU(new fd(1,1),e=>e.set(e.x*.0058,e.y*.0045,e.z*.0058)),c?[.05,.004,.006]:[.5,.07,.08],TU(a,.0105,o)))}for(let n of[-1,1]){let[i,a]=e(n*r),o=SU(new Nu(.008,.05,.026,1,4,2),e=>{let t=e.y/.05+.5;e.z+=-.012*t+(t>.9?Math.sign(e.z)*.004:0),e.x*=1-.3*t});t.push(CU(o,e=>_U(cU,uU,vU((e.y-.012)*60)),TU(i,.02,a-.006,0,n*.25,n*-.12))),t.push(CU(SU(new fd(1,1),e=>e.set(e.x*.009,e.y*.006,e.z*.014)),dU,TU(i,.047,a-.016)))}let o=wU(t);return o.translate(0,-.016,0),o.computeBoundingBox(),o.computeBoundingSphere(),o}function LU(){let e=(e,t,n)=>{let r=t/13*Math.PI*2,i=.55+.45*Math.abs(Math.sin(t*2.7+.9))+.12*Math.sin(t*5.3),a=e/3*i,o=Math.cos(r)*a*.062,s=Math.sin(r)*a*.044;return[o,.009*Math.sin(o*60+.4)*Math.cos(s*48)+.3*(o*o+s*s)/.062+n*.0028*(1-e/3*.7),s]},t=[],n=[],r=(e,r,i,a)=>{for(let o of[e,r,i])t.push(...o),n.push(...a(o))},i=()=>pU,a=e=>Math.sin(e[0]*310+1)*Math.sin(e[2]*270)>.45?fU:_U(dU,uU,.5+.5*Math.sin(e[0]*140+e[2]*90));for(let t=0;t<3;t+=1)for(let n=0;n<13;n+=1){let o=(n+1)%13;r(e(t,n,1),e(t+1,o,1),e(t+1,n,1),i),r(e(t,n,0),e(t+1,n,0),e(t+1,o,0),a),t>0&&(r(e(t,n,1),e(t,o,1),e(t+1,o,1),i),r(e(t,n,0),e(t+1,o,0),e(t,o,0),a))}for(let t=0;t<13;t+=1){let n=(t+1)%13;r(e(3,t,1),e(3,n,1),e(3,t,0),()=>dU),r(e(3,n,1),e(3,n,0),e(3,t,0),()=>dU)}let o=new il;return o.setAttribute(`position`,new Kc(t,3)),o.setAttribute(`color`,new Kc(n,3)),o.computeVertexNormals(),wU([o])}function RU(){let e=bU(795558343),t=[];for(let n=0;n<9;n+=1){let r=e()*Math.PI*2,i=n===0?0:.012+e()*.02,a=n===0?.021:.009+e()*.009,o=e();t.push(CU(SU(new fd(1,2),e=>e.set(e.x*a,e.y*a*.7,e.z*a)),_U(fU,[.92,.8,.36],o),TU(Math.cos(r)*i,(e()-.3)*.008,Math.sin(r)*i*.8)))}return t.push(CU(SU(new fd(1,1),e=>e.set(e.x*.02,e.y*.005,e.z*.009)),dU,TU(.018,-.006,.01,0,.6,0))),wU(t)}function zU(){let e=e=>_U(_U(cU,[.68,.58,.42],yU(e,260)),uU,vU(yU(e,90,2.2)*2.4-1.3)),t=CU(SU(new Iu(.02,.02,.022,14,2),e=>{let t=1-.14*(1-(e.y/.011)**2);e.x*=t,e.z*=t*(e.z<0?.8:1)}),e,TU(0,0,.008)),n=CU(new Iu(.0175,.0175,.005,12),e=>_U([.78,.5,.46],dU,yU(e,400)),TU(0,.0125,.008)),r=CU(new yd(.0115,.0042,6,12),e,TU(0,0,-.016,Math.PI/2,0,0)),i=CU(SU(new Nu(.007,.011,.03,1,1,3),e=>{let t=.5-e.z/.03;e.x*=1-.55*t,e.y=e.y*(1-.4*t)-.008*t}),e,TU(0,0,-.04)),a=[-1,1].map(t=>CU(SU(new Nu(.024,.008,.008,3,1,1),e=>{let n=.5+t*e.x/.024;e.y*=1-.5*n,e.z=e.z*(1-.4*n)-.006*n}),e,TU(t*.027,0,-.012))),o=CU(new Iu(.0048,.0048,.03,7),e=>_U([.88,.8,.6],uU,vU((Math.abs(e.y)-.009)*200)),TU(0,0,-.016));return wU([t,n,r,i,...a,o])}function BU(){return wU([CU(SU(new Nu(.075,.004,.022,9,1,3),e=>{let t=e.x/.075+.5;e.x+=.0375,e.z=e.z*(1-.75*t)*(1+.5*Math.sin(t*17))+.006*Math.sin(t*9),e.y+=.004*Math.sin(t*13)}),e=>_U(_U(dU,uU,yU(e,240)),fU,Math.sin(e.x*260)>.93?.8:0))])}var VU={position:new B(.012,.089,.004),direction:new B(.47,.88,-.12).normalize()};function HU(){let e=CU(SU(new fd(1,4),e=>{e.normalize();let t=vU((1-e.y)/2),n=1-.62*t**2.4,r=1-.1*Math.exp(-(((e.x+.12)/.14)**2))*(e.z>-.2?1:.4);e.set(e.x*.05*n*r+.012*t,e.y>0?e.y*.038:e.y*.07,e.z*.04*n*r)}),e=>{let t=Math.exp(-(((e.x+.008+e.y*.3)/.006)**2)),n=Math.exp(-(((e.y-.032)/.006)**2));return _U(_U(_U([.42,.03,.035],[.26,.015,.025],yU(e,130)),fU,Math.max(t*.85,n*.7)*vU(yU(e,420,.7)*2)),[.12,.02,.1],t>.6&&Math.sin(e.y*300)>.2?.7:0)}),t=(e,t,n)=>CU(SU(new fd(1,2),e=>{let t=1+.12*Math.sin(e.x*9)*Math.sin(e.z*8);e.set(e.x*n*t,e.y*n*.72,e.z*n*.9*t)}),e=>_U([.3,.02,.05],[.18,.012,.045],yU(e,200)),TU(e,.04,t)),n=(e,t)=>n=>_U(e,uU,vU((n.y-t)*120)),r=EU([[-.006,.03,.006],[-.004,.058,.008],[.004,.08,.006],[.012,.095,.004]],.0125,n([.82,.56,.44],.082)),i=[-1,0,1].map(e=>EU([[-.003+e*.004,.066,.008],[-.012+e*.012,.086,.012-e*.004],[-.016+e*.018,.1,.014-e*.006]],.0048,n([.78,.5,.4],.09))),a=EU([[.016,.03,.022],[.012,.052,.026],[-.006,.066,.03],[-.026,.07,.03]],.0105,e=>_U([.3,.3,.52],uU,vU((-e.x-.014)*110))),o=EU([[.03,.036,-.016],[.034,.058,-.018],[.036,.08,-.02]],.0095,n([.16,.14,.34],.068)),s=wU([e,t(.027,-.006,.024),t(-.024,-.004,.022),r,...i,a,o]);return s.translate(0,-.006,0),s.computeBoundingBox(),s.computeBoundingSphere(),s}var UU=2;function WU(e){let t=Math.min(14,Math.max(0,e));return UU*t-1.55*t*t/28}function GU(e){return Math.max(0,1-Math.max(0,e)/14)**.8}function KU(e){let t=e-Math.floor(e);return t<.16?vU(t/.16):1-vU((t-.16)/.3)}var qU=9.81,JU=.97,YU=.6,XU=10,ZU=1.02,QU=.5,$U=.5,eW=2e-4,tW=.45,nW=.03,rW=.15,iW=class{capacity;radius;selfAvoiding;positions;previous;nodes=0;segment=0;pinned=!1;resting=!0;paidOut=0;payRate=0;still=0;constructor(e,t,n){this.capacity=e,this.radius=t,this.selfAvoiding=n,this.positions=new Float32Array(e*3),this.previous=new Float32Array(e*3)}get held(){return this.pinned?Math.max(0,this.nodes-1-Math.floor(this.paidOut)):-1}spill(e,t,n,r,i){this.nodes=Math.min(this.capacity,Math.max(2,Math.round(e)+1)),this.segment=t,this.pinned=!0,this.resting=!1,this.paidOut=1,this.payRate=r,this.still=0;for(let e=0;e.4)for(let e=0;ethis.segment?this.segment:s=a-1?this.still+e:0,this.still>=$U&&(this.resting=!0,s.set(o)),!0}drape(e,t,n,r=!1){let i=Math.hypot(n.x,n.z);if(i<.3)return;let a=this.positions;for(let o=e;otW||s<-.05)continue;let c=nW+rW*Math.min(1,Math.max(0,s)/.25),l=((a[e]-t.x)*n.x+(a[e+2]-t.z)*n.z)/i;if(l>=c+(r?1e-4:0))continue;let u=Math.max(0,c-l);if(a[e]=a[e]+n.x/i*u,a[e+2]=a[e+2]+n.z/i*u,!r)continue;let d=((a[e]-this.previous[e])*n.x+(a[e+2]-this.previous[e+2])*n.z)/i;this.previous[e]=this.previous[e]+n.x/i*d,this.previous[e+2]=this.previous[e+2]+n.z/i*d}}keepApart(e){let t=this.positions,n=this.radius*1.7;for(let r=e;r=n*n)continue;let c=Math.sqrt(s),l=Math.hypot(i,o)1e-10&&lW.copy(fW).normalize(),uW.addScaledVector(lW,-uW.dot(lW)),uW.lengthSq()<1e-8&&(uW.set(+(Math.abs(lW.x)<.9),0,Math.abs(lW.x)<.9?0:1),uW.addScaledVector(lW,-uW.dot(lW))),uW.normalize(),dW.crossVectors(lW,uW);let a=Math.min(e,n-1-e),c=this.radii[e]*(a===0?.08:a===1?.62:a===2?.9:1);for(let t=0;t0?t.fromBufferAttribute(n,0):t.set(0,1,0).applyQuaternion(e.mesh.quaternion),t.lengthSq()>1e-8?t.normalize():t.set(0,1,0)}var OG=e=>()=>(e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296),$=(e,t=0)=>Number.isFinite(e)?e:t,kG=()=>({alive:!1,x:0,y:-50,z:0,vx:0,vy:0,vz:0,rx:0,ry:0,rz:0,vrx:0,vry:0,vrz:0,scale:0,stretch:1,bounces:0,stained:!1,kind:`flesh`,resting:!1,born:0,owner:-1,fading:-1}),AG=e=>{for(let t of e)if(!t.alive)return!0;return!1},jG=new V(16054267),MG=.012,NG=.055,PG=90,FG=10,IG=.985,LG=new z(.097,.132),RG=.012,zG={r:.82,g:.86,b:.9},BG=4,VG=(e,t)=>Math.trunc(e)*2+(t===`left`?0:1),HG=new B(1,0,0),UG=[`blood`,`bile`,`brain`,`urine`],WG=2400,GG={liver:{build:kU,share:.06,size:[.8,.5],stretch:[.9,.3],stain:.5},kidney:{build:AU,share:.06,size:[.9,.5],stretch:[.9,.25],stain:.3},lung:{build:jU,share:.06,size:[.75,.45],stretch:[.9,.3],stain:.45},gut:{build:MU,share:.18,size:[.8,.5],stretch:[.8,.5],stain:.4},bone:{build:NU,share:.24,size:[.7,.8],stretch:[.8,.6],stain:.14},vertebra:{build:zU,share:.1,size:[.9,.3],stretch:[1,0],stain:.2},skin:{build:LU,share:.1,size:[.8,.8],stretch:[.7,.7],stain:.3},fat:{build:RU,share:.12,size:[.6,.7],stretch:[.8,.5],stain:.2},ear:{build:PU,share:.03,size:[1.3,.3],stretch:[1,0],stain:.14},jawbone:{build:IU,share:.016,size:[1.1,.15],stretch:[1,0],stain:.34}},KG=Object.keys(GG),qG=[`liver`,`kidney`,`lung`],JG=Object.fromEntries(Ge.map((e,t)=>[e,t])),YG=14,XG=3.5,ZG=1100,QG=.12,$G=.45,eK=lG*Math.sqrt(Math.PI),tK=e=>R.clamp((e-.3)/.6,0,1),nK=e=>YG+326*e**2.2,rK=e=>nK(e)*(1-tK(e)*.88*(1-eK)),iK=16,aK=8,oK=.4,sK=24,cK=11,lK=.046,uK=[0,0,1,3,6],dK=50,fK=48,pK=.6,mK=1,hK=.06,gK=.075,_K=4,vK=24,yK=1.3,bK=new rs().setFromEuler(new Ls(.95,0,0)),xK=60,SK=4,CK=5,wK=1.2,TK=1.5,EK=.5;function DK(e){if(typeof e==`number`)return{x:e<0?-1:1,z:0};let t=Math.hypot(e.x,e.z);return Number.isFinite(t)&&t>1e-6?{x:e.x/t,z:e.z/t}:{x:1,z:0}}var OK=new B(0,1,0),kK=new B(0,0,1),AK=e=>Number.isFinite(e)?R.clamp(e,0,$W):0,jK=new Set([`hit`,`counter_hit`,`block`,`perfect_block`,`guard_break`,`knockdown`,`bleed`]);function MK(e,t,n,r){let i=Math.abs(e)-r;if(i<=0)return{position:e,velocity:t};let a=Math.sign(e);return Math.abs(n)<=r?{position:a*r,velocity:t*-.42}:{position:e,velocity:-a*Math.max(-a*t,i*FW)}}function NK(e){if(e.kind===`bleed`)return`ooze`;if(e.kind===`knockdown`)return`impact`;let t=e.detail.split(`:`);if(t.at(-1)===`body`)return`body_burst`;let n=t.find(e=>[`jab`,`straight`,`hook`,`uppercut`].includes(e));return n===`hook`?`fan`:n===`uppercut`?`plume`:`jet`}function PK(e,t){e.set($(t.x),$(t.y),$(t.z),$(t.w,1)),e.lengthSq()<1e-6?e.identity():e.normalize()}function FK(){return new Md({color:9063730,roughness:.58,metalness:.02,clearcoat:.25,clearcoatRoughness:.6})}function IK(e,t){let n=FK();n.map=t;let r=e?new z_(n,Rg,{core:y_,wash:!0,baked:!0}):new z_(n,Lg,{core:v_,lids:b_,baked:!0});if(!e)return{material:n,injury:r,look:new Eb(n,!0)};let i=n.onBeforeCompile;return n.onBeforeCompile=(e,t)=>{i.call(n,e,t),e.vertexShader=e.vertexShader.replace(`#include `,`#include -attribute vec3 bindPosition;`)},{material:n,injury:r,look:null}}var LK=0,RK=1,zK=2,BK=3;function VK(e,t,n){return e===void 0||e===`forearm_left`||e===`forearm_right`?LK:e===`head`?zK:e===`upper_body`?t?BK:RK:e===`torso`&&n?zK:RK}function HK(e,t,n,r=0){let i=new jd({map:e,color:t,roughness:n===void 0?.6:.38,metalness:.02,side:2});return n!==void 0&&(ob(i,!0,n).value=r),i}function UK(e,t,n){n.identity();let r=e.getAttribute(`position`),i=e.getAttribute(`bindPosition`),a=e.getIndex();if(i===void 0||i.count!==r.count)return n;let o=new Uint8Array(r.count);if(a===null)o.fill(1);else for(let e=0;e({active:!1,eventId:null,fluid:`blood`,life:0,seconds:1,rate:0,accumulator:0,position:new B,axis:new B(0,1,0)}));simulationRemainder=0;ambientSeed=1597463007;shake=0;lowTier=!1;bloodLevel=`full`;lens=new HH;camera=null;lensPoint=new B;debrisCursor=new Map;visceraMaterial;viscera=[];visceraByShape={};wounds=[];woundsOpen=0;woundShare=1;woundClock=0;parts=[];partsThrown=0;partBox=new Tc;partMiddle=new B;partVertex=new B;limbMap;limbMaterial;trunkMap;trunkMaterial;fleshSections;spines=[];spineMesh;spineStretch;shredGeometry;shredMesh;spineNeck=new B;guts=[];heartGeometry;heartMesh;heartRest;heartRadius;heart={active:!1,moving:!1,owner:-1,age:0,beats:0,vx:0,vy:0,vz:0,vrx:0,vry:0,vrz:0,bounces:0,settle:-1,settleFrom:new rs,settleTo:new rs,settleFromY:0,pool:0,trail:0};corpses=[];flyGeometry;flyMaterial;flyMesh;flies;constructor(e,t=1024,n=_W){this.scene=e,this.budget=n,this.dropletPositions=new Float32Array(n.droplets*3),this.dropletColors=new Float32Array(n.droplets*3),this.dropletBuffers={position:new Uc(this.dropletPositions,3),color:new Uc(this.dropletColors,3)},this.dropletGeometry=Ev(),this.dropletMaterial=new jd({color:16777215,roughness:.3,metalness:.02}),this.dropletMesh=new nu(this.dropletGeometry,this.dropletMaterial,n.droplets),this.dropletMesh.instanceMatrix.setUsage(go),this.dropletMesh.frustumCulled=!1,this.dropletMesh.castShadow=!1,e.add(this.dropletMesh);for(let e=0;eObject.assign(new H(e.geometry,e.material),{castShadow:e.castShadow}));if(e.push(Object.assign(new H(this.stumpGeometry,this.jawMaterial),{castShadow:this.stumps[0].mesh.castShadow})),this.bakedStandIns===null){let e=new xs,t=[IK(!1,e),IK(!0,e)].flatMap(e=>[e.material,e.injury.variant(!1),e.injury.variant(!0)]),n=new jd({color:1920728,roughness:.38,metalness:.03,map:e});ob(n,!0);let r=[HK(e,16777215),HK(null,16777215),HK(e,1920728,`gloves`),HK(e,1920728,`trunks`)],i=new nu(this.heartGeometry,this.visceraMaterial,1);i.setColorAt(0,this.gibColor.setHex(16777215)),i.castShadow=!0,this.bakedStandIns={map:e,materials:[...t,n,...r],instanced:[i,new nu(this.flyGeometry,this.flyMaterial,1)]}}for(let t of this.bakedStandIns.materials)e.push(Object.assign(new H(this.headGeometry,t),{castShadow:!0}));return e.push(Object.assign(new H(this.heartGeometry,this.visceraMaterial),{castShadow:!0}),...this.bakedStandIns.instanced),e}setCamera(e){this.camera=e}drawLens(e,t,n){this.lens.draw(e,t,n)}get lensDrops(){return this.lens.count}setBloodLevel(e){if(e===this.bloodLevel)return;let t=this.bloodLevel;this.bloodLevel=e,(e===`off`||t===`full`&&e===`reduced`)&&this.clearArcadeGore()}get shakeAmount(){return this.shake}get liveParticles(){return this.droplets.filter(e=>e.alive).length}get liveBloodParticles(){return this.droplets.filter(e=>e.alive&&e.blood).length}get liveMist(){return this.mists.filter(e=>e.alive).length}get canvasStains(){return this.canvasBlood.stains}useUploader(e){this.canvasBlood.useUploader(e)}setLowTier(e){this.canvasBlood.setLowTier(e),this.lowTier=e}get liveGibs(){return this.gibs.filter(e=>e.alive).length}get liveShards(){return this.shards.filter(e=>e.alive).length}debrisCount(e){let t=0;for(let n of this.gibs)n.alive&&n.kind===e&&(t+=1);for(let n of this.shards)n.alive&&n.kind===e&&(t+=1);for(let n of this.eyeballs)n.alive&&n.kind===e&&(t+=1);for(let n of this.viscera)for(let r of n.pieces)r.alive&&r.kind===e&&(t+=1);return t}get activeHeads(){return this.heads.filter(e=>e.active).length}headBurst(e){let t=this.stumps[Math.trunc(e)];return t!==void 0&&t.active&&t.mesh.material===this.jawMaterial}severedHeadPosition(e,t){let n=this.heads[Math.trunc(e)];return n===void 0||!n.active?!1:(t.copy(n.mesh.position),!0)}severedHeadFacing(e,t){let n=this.heads[Math.trunc(e)];return n===void 0||!n.active?!1:(t.set(0,0,1).applyQuaternion(n.mesh.quaternion),!0)}mouthpieceOut(e){return this.shields[Math.trunc(e)]?.out===!0}mouthpiecePosition(e,t){let n=this.shields[Math.trunc(e)];return n===void 0||!n.out?!1:(t.set(n.x,n.y,n.z),!0)}ejectMouthpiece(e,t,n,r,i,a,o=!1){if(e<0||e>=wW)return!1;let s=Math.trunc(e),c=this.shields[s],l=Number.isSafeInteger(i)?i:0;if(c.out&&!o||this.lastShieldEvent[s]===l)return!1;this.lastShieldEvent[s]=l;let u=OG(l*48271+s*7907+5),d=DK(r),f=.9+u()*.9,p=.9+u()*.9,m=(u()-.5)*1.1;Object.assign(c,tU(),{out:!0,moving:!0,x:$(t.x),y:$(t.y,1.45),z:$(t.z),vx:f*d.x-m*d.z,vy:p,vz:f*d.z+m*d.x,wx:(u()-.5)*26,wy:(u()-.5)*18,wz:(u()-.5)*26,restYaw:u()*Math.PI*2});let h=this.shieldMeshes[s];h.position.set(c.x,c.y,c.z),PK(h.quaternion,n),h.visible=!0,this.shieldMaterials[s].color.setHex(a).lerp(jG,.55);let g=this.bloodLevel===`full`;for(let e=0;e<(g?22:12);e+=1){let t=u()*Math.PI*2,n=g?e%3!=0:this.bloodLevel===`reduced`&&e%3==0;this.spawnDroplet(c.x+(u()-.5)*.03,c.y+(u()-.5)*.03,c.z+(u()-.5)*.03,c.vx*(.5+u()*.6)+Math.sin(t)*.4,c.vy*(.4+u()*.6),c.vz*.5+Math.cos(t)*.4,n?kv(u()):zG,.5+u()*.5,n)}return!0}gougeEye(e,t,n,r,i,a,o=!1){if(this.bloodLevel!==`full`||e<0||e>=wW)return;let s=Math.trunc(e),c=VG(s,a),l=this.eyes[c],u=Number.isSafeInteger(i)?i:0;if(l.active&&(o||l.eventId===u))return;l.active&&this.burstEye(s,a,u),l.active=!0,l.eventId=u,l.socket.set($(t.x),$(t.y,1.6),$(t.z)),l.facing.copy(n),l.hasSkull=!1,l.position.copy(l.socket).addScaledVector(n,MG*1.5),this.eyeDirection.copy(n).multiplyScalar(1.3);let d=DK(r);if(this.eyeDirection.x+=d.x*.5,this.eyeDirection.z+=d.z*.5,l.previous.copy(l.position),o||l.previous.addScaledVector(this.eyeDirection,-.016666666666666666),l.bleeding=o?0:FG,l.accumulator=0,this.eyeMeshes[c].visible=!0,this.nerveMeshes[c].visible=!0,this.writeEye(c),o)return;let f=OG(u*52711+s*3571+(a===`right`?977:0)+13);for(let e=0;e1e-8&&o.facing.copy(n).normalize(),r!==void 0&&i!==void 0&&(o.skull.set($(r.x),$(r.y,1.6),$(r.z)),PK(o.skullTurn,i),o.hasSkull=!0))}eyeOut(e,t){return t===void 0?this.eyes[VG(e,`left`)]?.active===!0||this.eyes[VG(e,`right`)]?.active===!0:this.eyes[VG(e,t)]?.active===!0}eyePosition(e,t,n){let r=this.eyes[VG(e,`left`)],i=this.eyes[VG(e,`right`)],a=n===`left`||n===void 0&&r?.active===!0?r:i;return a===void 0||!a.active?!1:(t.copy(a.position),!0)}updateEyes(e){for(let[t,n]of this.eyes.entries()){if(!n.active)continue;this.eyeDirection.copy(n.position).sub(n.previous).multiplyScalar(IG),n.previous.copy(n.position),n.position.add(this.eyeDirection),n.position.y-=IW*e*e,this.eyeDirection.copy(n.position).sub(n.socket);let r=this.eyeDirection.length();if(r>.055&&n.position.copy(n.socket).addScaledVector(this.eyeDirection,NG/r),n.hasSkull&&this.restOnFace(n)){n.previous.lerp(n.position,.6),this.eyeDirection.copy(n.position).sub(n.socket);let e=this.eyeDirection.length();e>.055&&n.position.copy(n.socket).addScaledVector(this.eyeDirection,NG/e)}if(n.position.y<0+MG&&(n.position.y=0+MG),this.bloodLevel===`full`&&n.bleeding>0)for(n.bleeding=Math.max(0,n.bleeding-e),n.accumulator+=e*this.forDevice(PG);n.accumulator>=1;){--n.accumulator;let e=.15+this.ambientRandom()*.5;this.spawnDroplet(n.socket.x,n.socket.y-.005,n.socket.z,n.facing.x*e+(this.ambientRandom()-.5)*.2,-.15-this.ambientRandom()*.4,n.facing.z*e+(this.ambientRandom()-.5)*.2,kv(this.ambientRandom()),.9,!0)}this.writeEye(t)}}restOnFace(e){this.eyeTurn.copy(e.skullTurn).invert();let t=this.eyeDirection.copy(e.position).sub(e.skull).applyQuaternion(this.eyeTurn),n=this.eyeSocketLocal.copy(e.socket).sub(e.skull).applyQuaternion(this.eyeTurn).z+MG+RG;if(t.z>=n)return!1;let r=Math.hypot(t.x/LG.x,t.y/LG.y);return r>=1?!1:(n-t.z<=(1-r)*Math.min(LG.x,LG.y)||r<1e-6?t.z=n:(t.x/=r,t.y/=r),e.position.copy(e.skull).add(t.applyQuaternion(e.skullTurn)),!0)}writeEye(e){let t=this.eyes[e],n=this.eyeMeshes[e],r=this.nerveMeshes[e];n.position.copy(t.position),this.eyeDirection.copy(t.position).sub(t.socket);let i=this.eyeDirection.length();i>1e-5&&(this.eyeDirection.multiplyScalar(1/i),r.quaternion.setFromUnitVectors(OK,this.eyeDirection),this.eyeDirection.addScaledVector(t.facing,.9).normalize(),n.quaternion.setFromUnitVectors(kK,this.eyeDirection)),r.position.copy(t.socket),r.scale.set(1,Math.max(.001,i-MG*.8),1)}returnMouthpiece(e){let t=Math.trunc(e),n=this.shields[t];n!==void 0&&(Object.assign(n,tU()),this.shieldMeshes[t].visible=!1,this.lastShieldEvent[t]=null)}clearMouthpieces(){for(let[e,t]of this.shields.entries())Object.assign(t,tU()),this.shieldMeshes[e].visible=!1,this.lastShieldEvent[e]=null}updateShields(e){for(let[t,n]of this.shields.entries()){if(!n.out||!n.moving)continue;let r=this.shieldMeshes[t],i=n.age<.3&&!n.sliding,a=n.x,o=n.z;nU(n,r.quaternion,e,0);let s=tv-qH-PW,c=MK(n.x,n.vx,a,s),l=MK(n.z,n.vz,o,s);if(n.x=c.position,n.vx=c.velocity,n.z=l.position,n.vz=l.velocity,r.position.set(n.x,n.y,n.z),i&&this.ambientRandom()e.active).length}get activeStumps(){return[...this.stumps,...this.handStumps].filter(e=>e.active).length}spawnDroplet(e,t,n,r,i,a,o,s,c,l=c?.0035+this.ambientRandom()**3*.0125:.0025+this.ambientRandom()**2*.004,u=`blood`){let d=this.liveDropletsthis.droplets[e].maxLife-this.droplets[e].life;for(let n=0;n0&&t(e[i-1])tG&&e.pop()}}forDevice(e){return Math.round(e*this.budget.droplets*(this.lowTier?.5:1)/_W.droplets)}uploadDroplets(e,t,n){if(this.dropletMesh.count=this.liveDroplets,t<=e)return;this.dropletMesh.instanceMatrix.addUpdateRange(e*16,(t-e)*16),this.dropletMesh.instanceMatrix.needsUpdate=!0;let r=this.dropletMesh.instanceColor;n&&r!==null&&(r.addUpdateRange(e*3,(t-e)*3),r.needsUpdate=!0)}retireDroplet(e){this.oldest.length=0;let t=this.liveDroplets-1,n=this.droplets[e];if(n.alive=!1,this.liveDroplets=t,e!==t){let r=this.droplets[t];this.droplets[e]=r,this.droplets[t]=n,this.dropletPositions.copyWithin(e*3,t*3,t*3+3),this.dropletColors.copyWithin(e*3,t*3,t*3+3),this.dropletMesh.setColorAt(e,this.dropletColor.setRGB(r.r,r.g,r.b)),this.writeDropletMatrix(e,r)}this.dropletPositions[t*3+1]=-50,this.writeDropletMatrix(t,n)}sprayDroplet(e,t,n,r,i,a,o,s,c,l,u,d){this.spawnDroplet(t,n,r,i*e.x-o*e.z,a,i*e.z+o*e.x,s,c,l,u,d)}writeDropletMatrix(e,t){if(!t.alive){this.dropletScale.setScalar(0),this.dropletQuaternion.identity(),this.dropletMatrix.compose(this.dropletVelocity.set(0,-50,0),this.dropletQuaternion,this.dropletScale),this.dropletMesh.setMatrixAt(e,this.dropletMatrix);return}let n=Math.hypot(t.vx,t.vy,t.vz);n>1e-4?(this.dropletVelocity.set(t.vx/n,t.vy/n,t.vz/n),this.dropletQuaternion.setFromUnitVectors(OK,this.dropletVelocity)):this.dropletQuaternion.identity();let r=Math.min(1,t.life/(t.maxLife*.3))*this.dropletCloseness*(t.blood&&this.bloodLevel===`full`?YW:1),i=Dv(t.radius*r,n,this.dropletShape);this.dropletScale.set(i.width,i.length,i.width),this.dropletMatrix.compose(this.dropletVelocity.set(t.x,t.y,t.z),this.dropletQuaternion,this.dropletScale),this.dropletMesh.setMatrixAt(e,this.dropletMatrix)}spawnMist(e,t,n,r,i){let a=this.mistIndex%this.budget.mist;this.mistIndex+=1;let o=this.mists[a];o.alive=!0,o.x=$(e),o.y=$(t,1),o.z=$(n),o.maxLife=Math.max(.05,$(i,.5)),o.life=o.maxLife,o.scale=Math.max(.1,$(r,1)),this.mistPositions[a*3]=o.x,this.mistPositions[a*3+1]=o.y,this.mistPositions[a*3+2]=o.z,this.mistColors[a*4+3]=Math.min(1,o.scale),this.mistGeometry.attributes.position.needsUpdate=!0,this.mistGeometry.attributes.color.needsUpdate=!0}placeDecal(e,t,n,r,i,a,o){this.canvasBlood.stain($(e),$(t),Math.max(.01,$(n,.2))*.28,Math.max(.01,$(r,.15))*.28,$(i),R.clamp($(a,.4),0,.95),o)}splashLens(e,t,n,r,i){let a=this.camera;if(a===null||this.bloodLevel===`off`||!(r>0))return;let o=this.lensPoint.set($(e),$(t,1.5),$(n)),s=o.distanceTo(a.position);if(o.project(a),!(o.z<1)||Math.abs(o.x)>1.15||Math.abs(o.y)>1.15)return;let c=R.clamp((nG-s)/8.5,0,1);this.lens.splash((o.x+1)/2,(1-o.y)/2,c*r*(this.bloodLevel===`reduced`?.25:1),i)}ambientRandom(){return this.ambientSeed=Math.imul(this.ambientSeed^this.ambientSeed>>>15,1|this.ambientSeed),this.ambientSeed^=this.ambientSeed+Math.imul(this.ambientSeed^this.ambientSeed>>>7,61|this.ambientSeed),((this.ambientSeed^this.ambientSeed>>>14)>>>0)/4294967296}splatter(e,t,n,r=()=>this.ambientRandom(),i=12,a=WW){if(this.bloodLevel===`off`)return;let o=this.bloodLevel===`reduced`,s=o?Math.ceil(i/4):i,c=o?.35:GW;for(let i=0;i0?$(t.y):e.detail.endsWith(`:body`)?1.05:1.58,z:$(t.z)},f=e.kind===`bleed`,p=n||f?0:Math.round(s?(a?4:6)+Math.min(6,Math.max(0,e.amount)/40):(a?6:16)+Math.min(20,Math.max(0,e.amount)/20)),m={x:0,y:0,z:0,vx:0,vy:0,vz:0,life:0,radius:0,color:kv(0)},h=e.kind===`hit`||e.kind===`counter_hit`,g=h?Math.max(0,e.blood-Math.floor(Math.max(0,e.amount)/3)):0,_=n||e.blood<=0||this.bloodLevel===`off`?0:f?this.bloodLevel===`reduced`?1:Math.min(12,3+Math.floor(Math.max(0,e.amount)/8)):this.bloodLevel===`reduced`?Math.min(24,Math.round(e.blood*(a?.12:.24))):this.forDevice(a?Math.round(xv(e.blood,0)/2):o?xv(e.blood,0)+XW:xv(e.blood,h?e.amount:0));f||(this.shake=Math.min(.14,this.shake+(a?.008:Math.max(.012,e.amount/1500)))),o&&(this.shake=Math.min(.2,this.shake+.09));let v=o?1.2:h?R.clamp((e.amount-40)/60,0,1)*(.6+Math.min(100,e.blood)/150):0;!n&&!f&&e.blood>0&&this.splashLens(d.x,d.y,d.z,v,e.event_id);for(let e=0;e0&&t<=RW){let e=1-zW*t;this.spawnDroplet(m.x,m.y,m.z,m.vx*e,m.vy*e,m.vz*e,m.color,m.life,!0,m.radius*(1-BW*t));continue}let n=t===0,r=(i()-.5)*Math.PI,a=n?2.2+i()*1.8:.9+i()*1.5,o=a,s=.5+i()*1.25,u=(i()-.5)*.5;if(c===`fan`)o=a*(.45+Math.cos(r)*.35),s=.55+i()*1.15,u=Math.sin(r)*a*.9;else if(c===`plume`)o=a*(.25+i()*.25),s=1.8+i()*2.2,u=(i()-.5)*a*.65;else if(c===`body_burst`)o=a*(.55+i()*.45),s=-.15+i()*1.05,u=Math.sin(r)*a*.75;else if(c===`ooze`)o=.08+i()*.22,s=-.3-i()*.55,u=(i()-.5)*.22;else if(c===`impact`)o=a*(.45+i()*.65),s=.9+i()*2.1,u=Math.sin(r)*a;else{let e=n?.12:.34;o=a*(.8+i()*.35),s=n?1.3+i()*1.6:.5+i()*1.25,u=(i()-.5)*a*e}let f=o*l.x-u*l.z,p=o*l.z+u*l.x,h=kv(i()),g=d.x+(i()-.5)*.12,_=d.y+(i()-.5)*.14,v=d.z+(i()-.5)*.12,y=.65+i()*.85;n?(m.x=g,m.y=_,m.z=v,m.vx=f,m.vy=s,m.vz=p,m.color=h,m.life=y,m.radius=.008+i()*.008,this.spawnDroplet(g,_,v,f,s,p,h,y,!0,m.radius)):this.spawnDroplet(g,_,v,f,s,p,h,y,!0)}let y=s?o||e.kind===`counter_hit`||h&&(e.amount>=35||g>=KW):e.kind===`hit`&&e.amount>=70||o||e.kind===`counter_hit`||g>=16;if(!n&&e.blood>0&&this.bloodLevel!==`off`&&y){let t=s?this.forDevice(o?36:12+Math.min(24,Math.floor(g/2)+Math.floor(Math.max(0,e.amount-35)/6))):o?3:2,n=s?1:.35;for(let e=0;e0&&this.bloodLevel!==`off`){let t=o?1+Math.min(2,e.blood/55):.8+Math.min(1.2,g/30);this.splatter(d.x+(i()-.5)*.6,d.z+(i()-.5)*.6,s?t*1.3:t,i,x,o?UW:HW)}let S=e.amount>=70||e.kind===`counter_hit`&&e.amount>=yv,C=h&&(e.amount>=60||S&&g>=KW/4);if(s&&!n&&C&&!e.detail.endsWith(`:body`)){let t=Math.min(20,Math.max(3,Math.round((e.amount-10)/6)));for(let e=0;e0){e.sideLow=1/0,e.sideHigh=-1/0;for(let t=0;t=wW)return;let s=Math.trunc(e),c=Number.isSafeInteger(i)?i:0,l=this.heads[s];if(l.active||this.lastDecapitationEvent[s]===c)return;this.stopGush(s),this.applyBakedPart(l,o,a);let u=OG(c*104729+s*8191+23),d=DK(r);this.lastDecapitationEvent[s]=c,l.active=!0,l.moving=!0,l.eventId=c;let f=1.8+u()*1.1;l.vy=2.3+u()*1.1;let p=(u()-.5)*2.2;l.vx=f*d.x-p*d.z,l.vz=f*d.z+p*d.x,l.vrx=(u()-.5)*12,l.vry=(u()-.5)*12,l.vrz=(u()-.5)*12,l.bounces=0,l.trail=0,l.stained=!1,l.settle=-1,l.mesh.position.set($(t.x),$(t.y,1.55),$(t.z)),PK(l.mesh.quaternion,n),l.mesh.visible=!0;let m=this.stumps[s];m.mesh.material=this.stumpMaterial,m.active=!0,m.fountainLife=14,m.accumulator=0,m.seed=c|1,m.direction=d,m.mesh.position.copy(l.mesh.position),m.mesh.quaternion.copy(l.mesh.quaternion),m.mesh.visible=!0;for(let e=0;e=wW)return;let i=Math.trunc(e),a=Number.isSafeInteger(r)?r:0,o=this.stumps[i];if(o.active||this.lastBurstEvent[i]===a)return;this.lastBurstEvent[i]=a,this.stopGush(i);let s=OG(a*91813+i*6151+41),c=DK(n),l=$(t.x),u=$(t.y,1.6),d=$(t.z),f=(e,t,n,r,a)=>{for(let o=0;o=wW)return;let c=Math.trunc(e)*2+(t===`left`?0:1),l=Number.isSafeInteger(a)?a:0,u=this.hands[c];if(u.active||this.lastDismembermentEvent[c]===l)return;this.applyBakedPart(u,s,o);let d=OG(l*130363+c*12289+37),f=DK(i);this.lastDismembermentEvent[c]=l,u.active=!0,u.moving=!0,u.eventId=l;let p=1.3+d()*1.1;u.vy=1.5+d()*1.2;let m=(d()-.5)*1.8;u.vx=p*f.x-m*f.z,u.vz=p*f.z+m*f.x,u.vrx=(d()-.5)*16,u.vry=(d()-.5)*16,u.vrz=(d()-.5)*16,u.bounces=0,u.trail=0,u.stained=!1,u.mesh.position.set($(n.x),$(n.y,1.25),$(n.z)),PK(u.mesh.quaternion,r),u.mesh.visible=!0;let h=this.handStumps[c];h.active=!0,h.fountainLife=oG,h.accumulator=0,h.seed=l|1,h.direction=f,h.mesh.position.copy(u.mesh.position),h.mesh.quaternion.copy(u.mesh.quaternion),h.mesh.visible=!0;for(let t=0;t=wW)return;let o=Math.trunc(e),s=Number.isSafeInteger(i)?i:0,c=OG(s*69061+o*2741+29),l=DK(r),u=this.tornAxis.copy(n);u.lengthSq()>1e-8&&Number.isFinite(u.lengthSq())||u.set(0,1,0),u.normalize();let d=$(t.x),f=$(t.y,1.2),p=$(t.z);for(let e=0;e{for(let n=0;n=wW)return;let i=Math.trunc(e)*2+(t===`left`?0:1),a=this.handStumps[i];a.active&&(a.mesh.position.set($(n.x),$(n.y,1.2),$(n.z)),PK(a.mesh.quaternion,r))}anchorStump(e,t,n,r,i){if(this.bloodLevel!==`full`||e<0||e>=wW)return;let a=this.stumps[Math.trunc(e)];a.active&&(a.mesh.position.set($(t.x),$(t.y,1.5),$(t.z)),r===void 0||r.length<18?(a.mesh.geometry=this.stumpGeometry,PK(a.mesh.quaternion,n)):(Vv(a.flesh,r,a.mesh.position,this.stumpOutward.set(0,1,0).applyQuaternion(n),.01,i),a.mesh.geometry=a.flesh,a.mesh.quaternion.identity()))}restoreFighter(e){if(e<0||e>=wW)return;let t=Math.trunc(e),n=this.heads[t];n.active=!1,n.moving=!1,n.mesh.visible=!1,n.mesh.position.y=-50,this.applyBakedPart(n,void 0,9063730);let r=this.stumps[t];r.active=!1,r.fountainLife=0,r.accumulator=0,r.mesh.visible=!1,r.mesh.position.y=-50,r.mesh.material=this.stumpMaterial,this.clearGibs(t),this.stopGush(t);for(let e of[t*2,t*2+1]){let t=this.eyes[e];t.active=!1,t.bleeding=0,this.eyeMeshes[e].visible=!1,this.nerveMeshes[e].visible=!1}this.clearWounds(t),this.clearGuts(t),this.clearSpine(t),this.clearCorpse(t),this.heart.owner===t&&(this.heart.active=!1,this.heartMesh.visible=!1);for(let e of[t*2,t*2+1]){let t=this.hands[e];t.active=!1,t.moving=!1,t.mesh.visible=!1,t.mesh.position.y=-50,this.applyBakedPart(t,void 0,1920728);let n=this.handStumps[e];n.active=!1,n.fountainLife=0,n.accumulator=0,n.mesh.visible=!1,n.mesh.position.y=-50}}drip(e,t,n,r=0){let i=+(r===1);if(this.bloodLevel===`off`||n||t<=.05){this.stopDrip(i);return}let a=this.dripEmitters[i];a.position.set($(e.x),$(e.y,1.5),$(e.z)),a.rate=this.bloodLevel===`reduced`?Math.min(3,t*3):Math.min(60,t*40),a.active=!0}stopDrip(e){let t=this.dripEmitters[+(e===1)];t.active=!1,t.rate=0,t.accumulator=0}gush(e,t,n,r,i,a,o=`blood`){if(this.bloodLevel!==`full`||e<0||e>=this.gushes.length)return;let s=this.gushes[Math.trunc(e)],c=Number.isSafeInteger(a)?a:0;s.active&&s.eventId===c||(s.active=!0,s.eventId=c,s.fluid=o,s.seconds=Math.max(.1,$(r,1)),s.life=s.seconds,s.rate=Math.max(0,$(i)),s.accumulator=0,this.anchorGush(e,t,n))}anchorGush(e,t,n){let r=this.gushes[Math.trunc(e)];r!==void 0&&r.active&&(r.position.set($(t.x),$(t.y,1.4),$(t.z)),n.lengthSq()>1e-8&&Number.isFinite(n.lengthSq())&&r.axis.copy(n).normalize())}gushing(e){return this.gushes[Math.trunc(e)]?.active===!0}stopGush(e){let t=this.gushes[e];t!==void 0&&(t.active=!1,t.eventId=null)}updateGushes(e){for(let t of this.gushes){if(!t.active)continue;if(t.life-=e,t.life<=0||this.bloodLevel!==`full`){t.active=!1;continue}let n=t.life/t.seconds,r=(t.seconds-t.life)*cG%1,i=Math.exp(-(((r-.5)/yG)**2));if(t.accumulator+=e*this.forDevice(t.rate)*n*(bG+.7*i),!(t.accumulator<1))for(wG.set(Math.abs(t.axis.y)<.9?0:1,+(Math.abs(t.axis.y)<.9),0).cross(t.axis).normalize(),TG.crossVectors(t.axis,wG);t.accumulator>=1;){--t.accumulator;let e=Math.sqrt(this.ambientRandom())*SG,r=this.ambientRandom()*Math.PI*2,a=(xG+this.ambientRandom()*2)*(.5+.5*n)*(.7+.3*i);EG.copy(t.axis).multiplyScalar(Math.cos(e)).addScaledVector(wG,Math.sin(e)*Math.cos(r)).addScaledVector(TG,Math.sin(e)*Math.sin(r)).multiplyScalar(a),this.spawnDroplet(t.position.x+(this.ambientRandom()-.5)*.03,t.position.y+(this.ambientRandom()-.5)*.02,t.position.z+(this.ambientRandom()-.5)*.03,EG.x,EG.y,EG.z,jv(t.fluid,this.ambientRandom()),1.2,!0,(.004+this.ambientRandom()**2*.01)*Av[t.fluid].drop,t.fluid)}}}updateDripEmitters(e){for(let t of this.dripEmitters)if(t.active)for(t.accumulator+=e*t.rate;t.accumulator>=1;)--t.accumulator,this.spawnDroplet(t.position.x+(this.ambientRandom()-.5)*.14,t.position.y-.04,t.position.z+(this.ambientRandom()-.5)*.1,(this.ambientRandom()-.5)*.08,-.25-this.ambientRandom()*.4,(this.ambientRandom()-.5)*.08,kv(this.ambientRandom()),1.1,!0)}spawnTeeth(e,t,n,r){if(this.bloodLevel===`off`)return;let i=this.bloodLevel===`reduced`?+(n>=3):Math.min(12,Math.max(1,Math.round(n)));if(i<=0)return;let a=OG((Number.isSafeInteger(r)?r:0)*7331+91),o=DK(t);for(let t=0;t>3):f.length>>2)}debrisSlot(e){let t=this.debrisCursor.get(e)??0,n=t%e.length;for(let r=0;r=0?n.scale*Math.max(0,n.fading)/iG:n.scale;this.gibScale.set(e*n.stretch,e,e/Math.sqrt(n.stretch))}this.gibMatrix.compose(this.gibPosition,this.gibQuaternion,this.gibScale),e.setMatrixAt(t,this.gibMatrix)}updateDebris(e,t,n,r){let i=!1;for(let[a,o]of e.entries()){if(!o.alive||o.resting&&o.fading<0)continue;if(i=!0,o.fading>=0){o.fading-=n,o.fading<=0&&(o.alive=!1),this.writeDebrisMatrix(t,a,o);continue}o.vy-=6.4*n,o.x+=o.vx*n,o.y+=o.vy*n,o.z+=o.vz*n,o.rx+=o.vrx*n,o.ry+=o.vry*n,o.rz+=o.vrz*n,this.confineGib(o);let e=0+(r===void 0?o.kind===`eye`?MG*SW:.015:r.low*o.scale);if(o.y<=e){if(o.y=e,!o.stained&&this.bloodLevel===`full`&&o.kind!==`tooth`&&o.kind!==`eye`&&(o.stained=!0,r===void 0?this.placeDecal(o.x,o.z,.24+o.scale*.16,.14+o.scale*.1,o.rz,.55,6425104):this.canvasBlood.stain(o.x,o.z,GG[r.shape].stain*o.scale,GG[r.shape].stain*o.scale*.7,o.ry,.6,6425104)),o.bounces.35)o.bounces+=1,o.vy=Math.abs(o.vy)*.3,o.vx*=.68,o.vz*=.68,o.vrx*=.7,o.vry*=.7,o.vrz*=.7;else{if(o.vx=0,o.vy=0,o.vz=0,o.vrx=o.vry=o.vrz=0,o.kind===`shard`&&(o.rx=Math.round(o.rx/Math.PI)*Math.PI),r!==void 0){let e=Math.round(o.rx/Math.PI),t=Math.round(o.rz/Math.PI);o.rx=e*Math.PI,o.rz=t*Math.PI,o.y=0+((e+t)%2==0?r.low:r.high)*o.scale}o.resting=!0}}this.writeDebrisMatrix(t,a,o)}i?t.instanceMatrix.needsUpdate=!0:r!==void 0&&(r.moving=!1)}confineGib(e){Math.abs(e.x)>3.05&&(e.x=Math.sign(e.x)*Z_,e.vx*=-.45),Math.abs(e.z)>3.05&&(e.z=Math.sign(e.z)*Z_,e.vz*=-.45)}updateDetachedParts(e,t){for(let n of e){if(n.active&&n.settle>=0&&n.settle<1){n.settle=Math.min(1,n.settle+t/NW);let e=n.settle*n.settle*(3-2*n.settle);n.mesh.quaternion.slerpQuaternions(n.settleFrom,n.settleTo,e),n.mesh.position.y=n.settleFromY+(n.settleToY-n.settleFromY)*e}if(!n.active||!n.moving)continue;let e=n.mesh.position.x,r=n.mesh.position.z;if(n.vy-=5.8*t,n.mesh.position.x+=n.vx*t,n.mesh.position.y+=n.vy*t,n.mesh.position.z+=n.vz*t,n.mesh.rotation.x+=n.vrx*t,n.mesh.rotation.y+=n.vry*t,n.mesh.rotation.z+=n.vrz*t,this.bloodLevel===`full`)for(n.trail+=t*this.forDevice(CW),n.trail>=1&&this.trailPoint.copy(n.cap.position).multiply(n.mesh.scale).applyQuaternion(n.mesh.quaternion).add(n.mesh.position);n.trail>=1;)--n.trail,this.spawnDroplet(this.trailPoint.x+(this.ambientRandom()-.5)*.03,this.trailPoint.y+(this.ambientRandom()-.5)*.03,this.trailPoint.z+(this.ambientRandom()-.5)*.03,n.vx*.35+(this.ambientRandom()-.5)*.9,n.vy*.35+(this.ambientRandom()-.5)*.9,n.vz*.35+(this.ambientRandom()-.5)*.9,kv(this.ambientRandom()),.9,!0);let i=tv-n.radius-PW,a=MK(n.mesh.position.x,n.vx,e,i),o=MK(n.mesh.position.z,n.vz,r,i);if(n.mesh.position.x=a.position,n.mesh.position.z=o.position,n.vx=a.velocity,n.vz=o.velocity,n.mesh.position.y<=0+n.radius){if(n.mesh.position.y=0+n.radius,!n.stained&&this.bloodLevel===`full`){n.stained=!0;let e=n.radius===MW?1:.55;this.placeDecal(n.mesh.position.x,n.mesh.position.z,1.3*e,.9*e,n.mesh.rotation.z,.85,4392199)}n.bounces<2&&Math.abs(n.vy)>.42?(n.bounces+=1,n.vy=Math.abs(n.vy)*.32,n.vx*=.62,n.vz*=.62,n.vrx*=.65,n.vry*=.65,n.vrz*=.65):(n.moving=!1,n.vx=0,n.vy=0,n.vz=0,n.vrx=0,n.vry=0,n.vrz=0,n.look!==null&&this.rollOntoEar(n))}Number.isFinite(n.mesh.position.x)&&Number.isFinite(n.mesh.position.y)&&Number.isFinite(n.mesh.position.z)&&Number.isFinite(n.mesh.quaternion.x)&&Number.isFinite(n.mesh.quaternion.y)&&Number.isFinite(n.mesh.quaternion.z)&&Number.isFinite(n.mesh.quaternion.w)||(n.mesh.position.set(0,0+n.radius,0),n.mesh.quaternion.identity(),n.moving=!1,n.vx=0,n.vy=0,n.vz=0)}}rollOntoEar(e){let t=this.settleAxis.set(1,0,0).applyQuaternion(e.mesh.quaternion),n=t.y>=0?1:-1;e.settleFrom.copy(e.mesh.quaternion),e.settleTo.setFromUnitVectors(t,this.settleUp.set(0,n,0)).multiply(e.mesh.quaternion),e.settleFromY=e.mesh.position.y,e.settleToY=0+(n>0?-e.sideLow:e.sideHigh),e.settle=0}stumpRandom(e){let t=e.seed|0;return t=Math.imul(t^t>>>15,1|t),t^=t+Math.imul(t^t>>>7,61|t),e.seed=t|0,((t^t>>>14)>>>0)/4294967296}updateStumpFountains(e){if(this.bloodLevel===`full`)for(let t of[...this.stumps,...this.handStumps]){if(!t.active||t.fountainLife<=0)continue;t.fountainLife=Math.max(0,t.fountainLife-e);let n=Math.min(1,t.fountainLife/sG),r=t.fountainLife*cG%1,i=Math.exp(-(((r-.5)/lG)**2));if(t.accumulator+=e*this.forDevice(uG)*n*(dG+.88*i),t.accumulator<1)continue;let a=DG(t,CG);for(wG.set(Math.abs(a.y)<.9?0:1,+(Math.abs(a.y)<.9),0).cross(a).normalize(),TG.crossVectors(a,wG);t.accumulator>=1;){--t.accumulator;let e=this.stumpRandom(t),r=this.stumpRandom(t),o=this.stumpRandom(t),s=Math.sqrt(e)*mG,c=r*Math.PI*2;EG.copy(a).multiplyScalar(Math.cos(s)).addScaledVector(wG,Math.sin(s)*Math.cos(c)).addScaledVector(TG,Math.sin(s)*Math.sin(c)).multiplyScalar(R.lerp(fG,pG,o)*(.7+.3*i)*(.55+.45*n)),this.spawnDroplet(t.mesh.position.x+a.x*.015+(e-.5)*.03,t.mesh.position.y+a.y*.015,t.mesh.position.z+a.z*.015+(r-.5)*.03,EG.x,EG.y,EG.z,kv(e),1.2+o*.6,!0,.004+o*o*.01)}}}update(e){for(this.canvasBlood.update(AK(e)),this.lens.update(AK(e)),this.simulationRemainder+=AK(e);this.simulationRemainder+1e-9>=eG;)this.simulationRemainder=Math.max(0,this.simulationRemainder-eG),this.simulate(eG);for(let e of this.guts)e.active&&e.sinceDrop<0&&e.rope.hold(e.anchor)&&(e.moved=!0),e.moved&&=(e.tube.write(e.rope),!1)}simulate(e){this.shake*=.02**e,this.updateDripEmitters(e),this.updateGushes(e),this.updateStumpFountains(e),this.updateDetachedParts(this.heads,e),this.updateDetachedParts(this.hands,e),this.updateShields(e),this.updateEyes(e),this.updateDebris(this.gibs,this.gibMesh,e),this.updateDebris(this.shards,this.shardMesh,e),this.updateDebris(this.eyeballs,this.eyeballMesh,e);for(let t of this.viscera)t.moving&&this.updateDebris(t.pieces,t.mesh,e,t);this.updateWounds(e),this.updateParts(e),this.updateSpines(e),this.updateGuts(e),this.updateHeart(e),this.updateCorpses(e);let t=this.liveDroplets,n=!1;for(let t=0;t0&&(this.dropletBuffers.position.needsUpdate=!0,this.dropletBuffers.color.needsUpdate=!0,this.uploadDroplets(0,this.liveDroplets,n));let r=!1;for(let[t,n]of this.mists.entries()){if(!n.alive)continue;if(r=!0,n.life-=e,n.life<=0){n.alive=!1,this.mistPositions[t*3+1]=-50;continue}let i=1-n.life/n.maxLife;this.mistPositions[t*3]=n.x,this.mistPositions[t*3+1]=n.y+i*.14,this.mistPositions[t*3+2]=n.z,this.mistColors[t*4+3]=Math.max(0,1-i)*Math.min(1,n.scale)}r&&(this.mistGeometry.attributes.position.needsUpdate=!0,this.mistGeometry.attributes.color.needsUpdate=!0)}clearDroplets(e){let t=this.liveDroplets;for(let t=0;t0))return;let s=OG((Number.isSafeInteger(i)?i:0)*15485863+e.charCodeAt(0)*131+e.length*977+7),c=DK(n),l=Math.max(.2,$(a,1)),u=$(t.x),d=$(t.y,1.2),f=$(t.z),p=Math.min(Math.round(r),this.debrisPlaces(e));for(let t=0;t0))return;let o=Number.isSafeInteger(i)?i:0,s=OG(o*86243+UG.indexOf(e)*3331+59),c=DK(n),l=Av[e],u=Math.max(.2,$(a,1)),d=$(t.x),f=$(t.y,1.2),p=$(t.z),m=Math.min(WG,r);for(let t=this.forDevice(m);t>0;--t){let t=s()*Math.PI*2,n=(.5+s()*1.9)*u;this.sprayDroplet(c,d+(s()-.5)*.08,f+(s()-.5)*.08,p+(s()-.5)*.08,(.4+s()*1.9)*u+Math.sin(t)*n*.35,(.3+s()*2.3)*Math.sqrt(u),Math.cos(t)*n*.8,jv(e,s()),.7+s(),!0,(.004+s()**2*.013)*l.drop,e)}if(e===`blood`){for(let e=Math.min(48,Math.round(m/25));e>0;--e)this.spawnMist(d+(s()-.5)*.4,f+(s()-.5)*.3,p+(s()-.5)*.4,.9+s()*1.5,.6+s()*.7);this.splatter(d+c.x*.3,p+c.z*.3,1+Math.min(2.4,m/500),s,Math.min(50,Math.round(m/20))),this.splashLens(d,f,p,Math.min(3,m/350),o)}else for(let e=Math.min(10,Math.round(m/30));e>0;--e){let t=.2+s()*.9*u;this.placeDecal(d+c.x*t+(s()-.5)*.5,p+c.z*t+(s()-.5)*.5,.5+s()*.9,.3+s()*.7,s()*Math.PI,.7*l.soak,e%2==0?l.splash:l.stain)}this.shake=Math.min(.22,this.shake+Math.min(.06,m/2e4))}puddle(e,t,n,r,i){if(this.bloodLevel!==`full`)return;let a=Av[r];this.canvasBlood.pool($(e),$(t),Math.max(.02,$(n,.1)),.95*a.soak,i,a.pool)}shed(e,t){if(this.bloodLevel!==`full`)return;let n=OG(t*7919+11);this.spawnDroplet($(e.x)+(n()-.5)*.05,$(e.y,1),$(e.z)+(n()-.5)*.05,(n()-.5)*.2,-.1,(n()-.5)*.2,jv(`blood`,n()),1.6,!0)}smear(e,t,n,r,i){this.bloodLevel===`full`&&this.canvasBlood.smear(e,t,n,r,Math.max(.005,$(i,.05)),.75,Av.blood.splash)}footprint(e,t,n,r,i){this.bloodLevel===`full`&&i>0&&this.canvasBlood.print(e,t,n,r,Math.min(1,i)*.85,Av.blood.splash)}setWound(e,t,n,r=`blood`){let i=this.woundAt(e,t);if(i===null)return;let a=this.bloodLevel===`full`?R.clamp($(n),0,1):0;a>0&&i.strength<=0&&(i.anchored=!1,i.accumulator=0,i.run=0,i.pool=0),i.strength=a,i.fluid=r,this.shareWounds()}anchorWound(e,t,n,r){let i=this.woundAt(e,t);i===null||i.strength<=0||(i.position.set($(n.x),$(n.y,1.2),$(n.z)),r.lengthSq()>1e-8&&Number.isFinite(r.lengthSq())&&i.axis.copy(r).normalize(),i.anchored=!0)}woundStrength(e,t){return this.woundAt(e,t)?.strength??0}clearWounds(e){for(let[t,n]of this.wounds.entries())(e===void 0||Math.floor(t/Ge.length)===Math.trunc(e))&&(n.strength=0);this.shareWounds()}get openWounds(){return this.woundsOpen}woundAt(e,t){let n=Math.trunc(e);return n>=0&&nZG?ZG/e:1}updateWounds(e){if(this.woundsOpen!==0&&this.bloodLevel===`full`){this.woundClock+=e;for(let t=0;t=QG){n.run-=QG;let e=.12+XG*r*r,i=l.y*e,a=(i+Math.sqrt(i*i+2*IW*Math.max(0,u.y-0)))/IW,o=u.x+l.x*e*a,s=u.z+l.z*e*a;n.pool<=0||Math.hypot(o-n.poolX,s-n.poolZ)>Math.max(.12,n.pool*1.2)?(n.poolX=o,n.poolZ=s,n.pool=.03):n.pool=Math.min($G*(.25+.75*r),n.pool+.012);let c=Av[n.fluid];this.canvasBlood.pool(n.poolX,n.poolZ,n.pool,.95*c.soak,t*7+Math.round(n.pool*80),c.pool)}if(n.accumulator<1)continue;wG.set(Math.abs(l.y)<.9?0:1,+(Math.abs(l.y)<.9),0).cross(l).normalize(),TG.crossVectors(l,wG);let d=R.lerp(.8,mG*.8,r),f=Av[n.fluid].drop;for(;n.accumulator>=1;){--n.accumulator;let e=Math.sqrt(this.ambientRandom())*d,t=this.ambientRandom()*Math.PI*2;EG.copy(l).multiplyScalar(Math.cos(e)).addScaledVector(wG,Math.sin(e)*Math.cos(t)).addScaledVector(TG,Math.sin(e)*Math.sin(t)).multiplyScalar(c*(.75+this.ambientRandom()*.4)),this.spawnDroplet(u.x+l.x*.012+(this.ambientRandom()-.5)*.02,u.y+l.y*.012,u.z+l.z*.012+(this.ambientRandom()-.5)*.02,EG.x,EG.y,EG.z,jv(n.fluid,this.ambientRandom()),1.3+r*.5,!0,(.004+this.ambientRandom()**2*.01)*f,n.fluid)}}}}burstEye(e,t,n){let r=Math.trunc(e),i=VG(r,t),a=this.eyes[i];if(r<0||r>=wW||a===void 0||!a.active)return!1;if(a.active=!1,a.bleeding=0,this.eyeMeshes[i].visible=!1,this.nerveMeshes[i].visible=!1,this.bloodLevel!==`full`)return!0;let o=Number.isSafeInteger(n)?n:0,s=OG(o*39916801+i*211+3),{x:c,y:l,z:u}=a.position;for(let e=this.forDevice(160);e>0;--e){let t=s()*Math.PI*2,n=s()*1.6-.6,r=Math.sqrt(Math.max(0,1-Math.min(1,n*n))),i=.6+s()*2.2,a=e%3!=0;this.spawnDroplet(c,l,u,Math.cos(t)*r*i,n*i+.5,Math.sin(t)*r*i,a?kv(s()):zG,.5+s()*.7,a,.003+s()**2*.008)}for(let e=0;e<4;e+=1)this.spawnGib(c,l,u,(s()-.5)*1.6,.4+s()*1.2,(s()-.5)*1.6,s,`flesh`,r);for(let e=0;e<8;e+=1)this.spawnMist(c+(s()-.5)*.12,l+(s()-.5)*.1,u+(s()-.5)*.12,.5+s()*.6,.4+s()*.4);return this.splashLens(c,l,u,.8,o),!0}skinOf(e,t){let n=IK(t.sites===Rg,e.map),r=e.look??sb;return n.look?.set(r),n.material.color.setHex(e.color),n.injury.copyFrom(t),n.injury.setBindToPart(UK(e.geometry,r,this.bindToPartMatrix)),t.material instanceof Md&&(n.material.clearcoat=t.material.clearcoat),n.material}flingPart(e,t,n,r,i,a,o={}){this.removePart(e);let s=this.partBox.makeEmpty();for(let e of t){let t=e.geometry.getAttribute(`position`),n=e.geometry.getIndex(),r=n===null?t.count:n.count;for(let e=0;ep.reach)&&(p=e),(m===null||e.height>m.height)&&(m=e);for(let{fan:e,opening:t}of f)e.materialIndex=VK(o.part,t===p,t===m);c.cut.set(0,0,0),p!==null&&c.cut.copy(p.centre).sub(l),PK(c.group.quaternion,r),c.group.position.copy(l).applyQuaternion(c.group.quaternion),c.group.position.set(c.group.position.x+$(n.x),c.group.position.y+$(n.y,1.2),c.group.position.z+$(n.z)),c.group.visible=!0,c.key=e,c.born=this.partsThrown++;let h=0;for(let t=0;tt.key===e)}partPosition(e,t){let n=this.parts.find(t=>t.key===e);return n!==void 0&&(t.copy(n.group.position),!0)}removePart(e){for(let t of this.parts)if(t.key===e){t.key=null,t.moving=!1,t.settle=-1,t.group.visible=!1,t.group.clear();for(let e of t.geometries)e.dispose();for(let e of t.materials)e.dispose();t.geometries.length=0,t.materials.length=0}}get activeParts(){let e=0;for(let t of this.parts)t.key!==null&&(e+=1);return e}partResting(e){return this.parts.some(t=>t.key===e&&!t.moving&&(t.settle<0||t.settle>=1))}updateParts(e){let t=this.bloodLevel===`full`;for(let n=0;n=0&&r.settle<1){r.settle=Math.min(1,r.settle+e/NW);let t=r.settle*r.settle*(3-2*r.settle);i.quaternion.slerpQuaternions(r.settleFrom,r.settleTo,t),i.position.y=r.settleFromY+(r.settleToY-r.settleFromY)*t}if(!r.moving){if(!t||r.lain>=aK)continue;let a=Math.floor(r.lain/oK);for(r.lain+=e,this.trailPoint.copy(r.cut).applyQuaternion(i.quaternion).add(i.position),r.trail+=e*this.forDevice(sK);r.trail>=1;)--r.trail,this.spawnDroplet(this.trailPoint.x,Math.max(.02,this.trailPoint.y),this.trailPoint.z,(this.ambientRandom()-.5)*.5,.2+this.ambientRandom()*.5,(this.ambientRandom()-.5)*.5,kv(this.ambientRandom()),.6,!0);if(Math.floor(r.lain/oK)===a)continue;let o=.1+r.radius*1.8;r.pool=Math.min(o,r.pool+o*oK*1.5/aK),this.canvasBlood.pool(this.trailPoint.x,this.trailPoint.z,r.pool,.95,n*13+a);continue}let a=i.position.x,o=i.position.z;if(r.vy-=5.8*e,i.position.x+=r.vx*e,i.position.y+=r.vy*e,i.position.z+=r.vz*e,i.rotation.x+=r.vrx*e,i.rotation.y+=r.vry*e,i.rotation.z+=r.vrz*e,t)for(r.trail+=e*this.forDevice(CW),r.trail>=1&&this.trailPoint.copy(r.cut).applyQuaternion(i.quaternion).add(i.position);r.trail>=1;)--r.trail,this.spawnDroplet(this.trailPoint.x+(this.ambientRandom()-.5)*.03,this.trailPoint.y+(this.ambientRandom()-.5)*.03,this.trailPoint.z+(this.ambientRandom()-.5)*.03,r.vx*.35+(this.ambientRandom()-.5)*.9,r.vy*.35+(this.ambientRandom()-.5)*.9,r.vz*.35+(this.ambientRandom()-.5)*.9,kv(this.ambientRandom()),.9,!0);let s=Math.max(.5,tv-r.reach-PW),c=MK(i.position.x,r.vx,a,s),l=MK(i.position.z,r.vz,o,s);if(i.position.x=c.position,i.position.z=l.position,r.vx=c.velocity,r.vz=l.velocity,i.position.y<=0+r.radius){if(i.position.y=0+r.radius,!r.stained&&t){r.stained=!0;let e=Math.min(2.4,r.radius/MW+.3);this.placeDecal(i.position.x,i.position.z,1.3*e,.9*e,i.rotation.z,.85,4392199)}if(r.bounces<2&&Math.abs(r.vy)>.42)r.bounces+=1,r.vy=Math.abs(r.vy)*.32,r.vx*=.62,r.vz*=.62,r.vrx*=.65,r.vry*=.65,r.vrz*=.65;else{r.moving=!1,r.trail=0;let e=this.settleAxis.copy(r.thin).applyQuaternion(i.quaternion);r.settleFrom.copy(i.quaternion),r.settleTo.setFromUnitVectors(e,this.settleUp.set(0,e.y>=0?1:-1,0)).multiply(i.quaternion),r.settleFromY=i.position.y,r.settleToY=0+r.thickness,r.settle=0}}Number.isFinite(i.position.x+i.position.y+i.position.z+i.quaternion.x+i.quaternion.y+i.quaternion.z+i.quaternion.w)||(i.position.set(0,0+r.thickness,0),i.quaternion.identity(),r.moving=!1,r.settle=-1)}}attachSpine(e){let t=this.spines[Math.trunc(e)];t!==void 0&&this.bloodLevel===`full`&&(t.wanted=!0)}spineOut(e){return this.spines[Math.trunc(e)]?.out===!0}spineTail(e,t){let n=this.spines[Math.trunc(e)];return n===void 0||!n.out?!1:(n.rope.node(cK,t),!0)}updateSpines(e){for(let t=0;t=1;){--n.trail;let e=a.node(Math.floor(this.ambientRandom()*12),this.gibPosition);this.spawnDroplet(e.x,e.y,e.z,(this.ambientRandom()-.5)*.8,(this.ambientRandom()-.5)*.8,(this.ambientRandom()-.5)*.8,kv(this.ambientRandom()),.8,!0)}}}}writeSpine(e){let t=this.spines[e].rope;for(let n=0;n1e-6?i.multiplyScalar(1/a):i.set(0,1,0)),r.add(this.partVertex).multiplyScalar(.5);let o=(.9+.5*Math.min(1,n/6))*(n>=9?.55+.25*(10-n):1);this.gibMatrix.compose(r,this.gibQuaternion,this.gibScale.set(o,this.spineStretch,o)),this.spineMesh.setMatrixAt(e*cK+n,this.gibMatrix)}this.spineMesh.instanceMatrix.needsUpdate=!0;for(let n=0;ne.out);this.spineMesh.visible=n,this.shredMesh.visible=n}spillGuts(e,t,n,r=18){let i=this.guts[Math.trunc(e)];if(i===void 0||e<0||this.bloodLevel!==`full`)return;let a=Number.isSafeInteger(n)?n:0;if(i.active&&i.eventId===a)return;let o=R.clamp(Math.round($(r,18)),2,fK),s=Math.max(2,Math.min(o,this.lowTier?Math.ceil(this.budget.gutLinks/2):this.budget.gutLinks));i.active=!0,i.eventId=a,i.sinceDrop=-1,i.drip=0,i.smeared.fill(NaN),i.anchor.set($(t.x),$(t.y,.9),$(t.z)),i.rope.spill(s,o*oW/s,i.anchor,s/pK,OG(a*28657+Math.trunc(e)*5+1)),i.tube.write(i.rope),i.mesh.visible=!0,i.moved=!1}anchorGuts(e,t,n){let r=this.guts[Math.trunc(e)];r===void 0||!r.active||r.sinceDrop>=0||(r.anchor.set($(t.x),$(t.y,.9),$(t.z)),n.lengthSq()>1e-8&&Number.isFinite(n.lengthSq())&&r.away.copy(n).normalize())}gutsOut(e){return this.guts[Math.trunc(e)]?.active===!0}dropGuts(e){let t=this.guts[Math.trunc(e)];t===void 0||!t.active||t.sinceDrop>=0||(t.sinceDrop=0,t.rope.release())}clearGuts(e){for(let[t,n]of this.guts.entries())(e===void 0||t===Math.trunc(e))&&(n.active=!1,n.eventId=null,n.moved=!1,n.rope.clear(),n.mesh.visible=!1)}gutsLength(e){let t=this.guts[Math.trunc(e)];return t===void 0||!t.active?0:t.rope.length}gutsPoint(e,t,n){let r=this.guts[Math.trunc(e)];return r===void 0||!r.active?!1:(r.rope.node(Math.round(R.clamp(t,0,1)*(r.rope.nodes-1)),n),!0)}updateGuts(e){for(let t=0;t=0&&n.sinceDrop=mK&&i)){let e=r.node(r.nodes>>1,this.gibPosition);this.canvasBlood.pool(e.x,e.z,.26,.95,t+3),this.puddle(e.x+.12,e.z+.05,.11,`bile`,t+5)}if(r.step(e,n.anchor,0,Math.max(2.4383999999999997,Math.abs(n.anchor.x),Math.abs(n.anchor.z)),n.away)&&(n.moved=!0,i)){for(let e=0;e<_K;e+=1){let t=r.node(Math.round((r.nodes-1)*(1-e*.2)),this.gibPosition);if(t.y>0+.024*1.5){n.smeared[e*2]=NaN;continue}let i=n.smeared[e*2],a=n.smeared[e*2+1],o=Math.hypot(t.x-i,t.z-a);o=0))for(n.drip+=e*this.forDevice(vK);n.drip>=1;){--n.drip;let e=r.node(Math.floor(this.ambientRandom()*r.nodes),this.gibPosition),t=this.ambientRandom()<.8?`blood`:`bile`;this.spawnDroplet(e.x,e.y-aW,e.z,(this.ambientRandom()-.5)*.3,-.1,(this.ambientRandom()-.5)*.3,jv(t,this.ambientRandom()),.9,!0,.004+this.ambientRandom()*.005,t)}}}}ejectHeart(e,t,n,r=-1){if(this.bloodLevel!==`full`)return;let i=this.heart,a=OG((Number.isSafeInteger(n)?n:0)*611953+19),o=DK(t),s=2+a()*1.2,c=(a()-.5)*1.2;i.active=!0,i.moving=!0,i.owner=Math.trunc(r),i.age=0,i.beats=0,i.bounces=0,i.settle=-1,i.pool=0,i.trail=0,i.vx=s*o.x-c*o.z,i.vy=1.8+a()*1.2,i.vz=s*o.z+c*o.x,i.vrx=(a()-.5)*14,i.vry=(a()-.5)*14,i.vrz=(a()-.5)*14,i.settleTo.setFromAxisAngle(OK,a()*Math.PI*2).multiply(bK),this.heartMesh.position.set($(e.x),$(e.y,1.2),$(e.z)),this.heartMesh.quaternion.identity(),this.heartMesh.scale.setScalar(yK),this.heartMesh.visible=!0}get heartOut(){return this.heart.active}get heartBeating(){return this.heart.active&&this.heart.age<14}heartPosition(e){return this.heart.active?(e.copy(this.heartMesh.position),!0):!1}updateHeart(e){let t=this.heart;if(!t.active)return;let n=this.heartMesh,r=this.bloodLevel===`full`;if(t.moving){let i=n.position.x,a=n.position.z;t.vy-=6.4*e,n.position.x+=t.vx*e,n.position.y+=t.vy*e,n.position.z+=t.vz*e,n.rotation.x+=t.vrx*e,n.rotation.y+=t.vry*e,n.rotation.z+=t.vrz*e;let o=tv-this.heartRadius-PW,s=MK(n.position.x,t.vx,i,o),c=MK(n.position.z,t.vz,a,o);if(n.position.x=s.position,n.position.z=c.position,t.vx=s.velocity,t.vz=c.velocity,r)for(t.trail+=e*this.forDevice(CW/2);t.trail>=1;)--t.trail,this.spawnDroplet(n.position.x,n.position.y,n.position.z,t.vx*.3+(this.ambientRandom()-.5)*.8,t.vy*.3+(this.ambientRandom()-.5)*.8,t.vz*.3+(this.ambientRandom()-.5)*.8,kv(this.ambientRandom()),.8,!0);n.position.y<=0+this.heartRadius&&(n.position.y=0+this.heartRadius,t.bounces===0&&r&&this.placeDecal(n.position.x,n.position.z,.9,.7,n.rotation.z,.8,4392199),t.bounces<2&&Math.abs(t.vy)>.4?(t.bounces+=1,t.vy=Math.abs(t.vy)*.3,t.vx*=.6,t.vz*=.6,t.vrx*=.6,t.vry*=.6,t.vrz*=.6):(t.moving=!1,t.settle=0,t.settleFrom.copy(n.quaternion),t.settleFromY=n.position.y)),Number.isFinite(n.position.x+n.position.y+n.position.z)||(n.position.set(0,0+this.heartRest,0),n.quaternion.copy(t.settleTo),t.moving=!1,t.settle=1)}else if(t.settle<1){t.settle=Math.min(1,t.settle+e/NW);let r=t.settle*t.settle*(3-2*t.settle);n.quaternion.slerpQuaternions(t.settleFrom,t.settleTo,r),n.position.y=t.settleFromY+(0+this.heartRest-t.settleFromY)*r}if(t.age>=14)return;t.age+=e;let i=GU(t.age),a=WU(t.age),o=KU(a)*(.35+.65*i);if(n.scale.set(yK*(1-.17*o),yK*(1+.08*o),yK*(1-.17*o)),Math.floor(a)<=t.beats||(t.beats=Math.floor(a),!r))return;let s=this.trailPoint.copy(VU.position).multiply(n.scale).applyQuaternion(n.quaternion).add(n.position),c=CG.copy(VU.direction).applyQuaternion(n.quaternion);wG.set(Math.abs(c.y)<.9?0:1,+(Math.abs(c.y)<.9),0).cross(c).normalize(),TG.crossVectors(c,wG);for(let e=this.forDevice(Math.round(8+xK*i));e>0;--e){let e=Math.sqrt(this.ambientRandom())*.2,t=this.ambientRandom()*Math.PI*2;EG.copy(c).multiplyScalar(Math.cos(e)).addScaledVector(wG,Math.sin(e)*Math.cos(t)).addScaledVector(TG,Math.sin(e)*Math.sin(t)).multiplyScalar((.7+2.9*i)*(.5+.55*this.ambientRandom())),this.spawnDroplet(s.x,s.y,s.z,EG.x,EG.y,EG.z,kv(this.ambientRandom()),1.1,!0,.004+this.ambientRandom()**2*.011)}t.moving||(t.pool=Math.min(.3,t.pool+.022),this.canvasBlood.pool(n.position.x,n.position.z,t.pool,.95,t.beats))}setCorpse(e,t){let n=Math.trunc(e),r=this.corpses[n];r!==void 0&&(t===null||this.bloodLevel!==`full`?this.clearCorpse(n):(r.active||(r.active=!0,r.age=0,r.puddle=0),r.position.set($(t.x),Math.max(0,$(t.y,0)),$(t.z))))}fliesOver(e){let t=this.corpses[Math.trunc(e)];return t===void 0||!t.active?0:this.fliesArrived(t.age)}fliesArrived(e){let t=this.lowTier?this.budget.flies>>1:this.budget.flies;return Math.floor(R.clamp((e-SK)/CK,0,1)*t)}updateCorpses(e){for(let t=0;t=n.puddle+.04&&(n.puddle=r,this.puddle(n.position.x,n.position.z,r,`urine`,t*11+Math.round(r*25)));let i=this.fliesArrived(n.age);if(i===0)continue;let a=this.budget.flies,o=CK/(this.lowTier?a>>1:a);for(let e=0;e=i)this.gibMatrix.makeScale(0,0,0).setPosition(0,-50,0);else{let t=Math.min(1,(n.age-SK-e*o)/wK),i=gW(this.flies,r,n.age,this.gibPosition),a=1+(1-t)*2.5;this.gibMatrix.makeTranslation(n.position.x+i.x*a,Math.max(.03,n.position.y+i.y+(1-t)*(1-t)*1.6),n.position.z+i.z*a)}this.flyMesh.setMatrixAt(r,this.gibMatrix)}this.flyMesh.visible=!0,this.flyMesh.instanceMatrix.needsUpdate=!0}}clearCorpse(e){let t=this.corpses[e];if(t.active){t.active=!1,this.gibMatrix.makeScale(0,0,0).setPosition(0,-50,0);for(let t=0;te.active)}}dispose(){this.scene.remove(this.dropletMesh),this.scene.remove(this.mistPoints),this.scene.remove(this.gibMesh),this.scene.remove(this.shardMesh),this.scene.remove(this.eyeballMesh);for(let e of this.viscera)this.scene.remove(e.mesh),e.mesh.dispose(),e.geometry.dispose();this.visceraMaterial.dispose();for(let e of this.parts)e.key!==null&&this.removePart(e.key),this.scene.remove(e.group);this.limbMaterial.dispose(),this.limbMap.dispose(),this.trunkMaterial.dispose(),this.trunkMap.dispose(),this.scene.remove(this.spineMesh,this.shredMesh,this.heartMesh,this.flyMesh),this.spineMesh.dispose(),this.shredMesh.dispose(),this.shredGeometry.dispose();for(let e of this.guts)this.scene.remove(e.mesh),e.tube.dispose();this.heartGeometry.dispose(),this.flyMesh.dispose(),this.flyGeometry.dispose(),this.flyMaterial.dispose(),this.dropletMesh.dispose(),this.dropletGeometry.dispose(),this.dropletMaterial.dispose(),this.canvasBlood.dispose();for(let e of[...this.heads,...this.hands])e.baked?.dispose(),e.bakedFlesh?.dispose();for(let e of[...this.stumps,...this.handStumps])e.flesh.dispose();this.mistGeometry.dispose(),this.mistMaterial.dispose(),this.mistMap.dispose(),this.gibMesh.dispose(),this.gibGeometry.dispose(),this.gibMaterial.dispose(),this.shardMesh.dispose(),this.eyeballMesh.dispose(),this.shardGeometry.dispose(),this.shardMaterial.dispose(),this.jawMaterial.dispose(),this.jawMap.dispose(),this.headGeometry.dispose();for(let e of this.headMaterials)e.dispose();this.handGeometry.dispose();for(let e of this.handMaterials)e.dispose();this.stumpGeometry.dispose(),this.wristStumpGeometry.dispose(),this.shieldGeometry.dispose();for(let e of this.shieldMaterials)e.dispose();for(let e of this.shieldMeshes)this.scene.remove(e);this.eyeGeometry.dispose(),this.eyeMap.dispose(),this.eyeMaterial.dispose(),this.nerveGeometry.dispose(),this.nerveMaterial.dispose();for(let e of[...this.eyeMeshes,...this.nerveMeshes])this.scene.remove(e);if(this.stumpMaterial.dispose(),this.stumpMap.dispose(),this.wristMaterial.dispose(),this.wristMap.dispose(),this.bakedStandIns!==null){this.bakedStandIns.map.dispose();for(let e of this.bakedStandIns.materials)e.dispose();for(let e of this.bakedStandIns.instanced)e.dispose();this.bakedStandIns=null}for(let e of this.heads)this.scene.remove(e.mesh);for(let e of this.hands)this.scene.remove(e.mesh);for(let e of[...this.stumps,...this.handStumps])this.scene.remove(e.mesh)}},KK={maximum:1,minimum:.55,slowMs:24,fastMs:17.5,windowMs:1e3,step:.15},qK=10,JK=10,YK=160,XK=3,ZK=3,QK=class{options;scale;elapsed=0;frames=0;fastWindows=0;holdWindows=0;fruitlessAttempts=0;pending=null;raised=null;raiseHoldWindows=0;failedRaises=0;constructor(e=KK){this.options=e,this.scale=e.maximum}record(e){if(!(e>0)||e>1e3||(this.elapsed+=e,this.frames+=1,this.elapsede.before*.9)return this.scale=e.previous,this.holdWindows=Math.min(YK,qK*2**this.fruitlessAttempts),this.fruitlessAttempts+=1,!0;this.fruitlessAttempts=0}if(this.raised!==null){let e=this.raised;if(t>this.options.slowMs)return this.raised=null,this.scale=e.previous,this.fastWindows=0,this.raiseHoldWindows=Math.min(YK,JK*2**this.failedRaises),this.failedRaises+=1,!0;e.windows+=1,e.windows>=ZK&&(this.raised=null,this.failedRaises=0)}if(t>this.options.slowMs){if(this.fastWindows=0,this.holdWindows>0)return--this.holdWindows,!1;if(this.scale<=this.options.minimum)return!1;let e=this.scale;return this.scale=Math.max(this.options.minimum,this.scale-this.options.step),this.pending={before:t,previous:e},!0}return t0?(--this.raiseHoldWindows,!1):this.fastWindows>=XK&&this.scale0&&e.poise===0)return 1;if(e.is_downed)return eq;let n=e.stunned_ticksthis.value?7:.9;return this.value+=(e-this.value)*(1-Math.exp(-n*Math.max(0,t))),e===0&&this.value<.003&&(this.value=0),this.value}},rq=.4,iq=.5,aq={before:24,after:24,speed:.5};function oq(e,t,n=30,r=rq,i=42,a=33){let o=t.tick-i,s=t.tick+a,c=e.filter(e=>e.tick>=o-1&&e.tick<=s+1),l=c.at(-1),u=l!==void 0&&l.result!==null&&l.tick({...l,tick:l.tick+t+1,events:[]}))]:c,d=u[0],f=u.at(-1);if(d===void 0||f===void 0||u.length<8||d.tick>t.tick-12||f.tick=1&&this.lastHeat<1&&!r&&(this.flare=1),this.lastHeat=t,this.flare=Math.max(0,this.flare-n/dq);let a=this.mesh.material;if(a.opacity=Math.min(1,t*.8+this.flare*.6),this.mesh.visible=a.opacity>.01,!this.mesh.visible)return;this.mesh.position.copy(e),this.mesh.quaternion.copy(i.quaternion);let o=lq*(.55+.45*t)*(1+this.flare*uq);this.mesh.scale.set(o,o,1)}get active(){return this.mesh.visible}standIn(){return new H(this.mesh.geometry,this.mesh.material)}reset(){this.flare=0,this.lastHeat=0,this.mesh.material.opacity=0,this.mesh.visible=!1}dispose(){this.mesh.geometry.dispose(),this.mesh.material.dispose()}},yq=class{group=new tc;flash;ring;age=1/0;constructor(e){this.flash=_q(e,new V(1,.86,.62)),this.flash.material.depthTest=!1,this.ring=new H(new gd(.42,.5,40),new yl({color:cq,blending:2,depthWrite:!1,transparent:!0,side:2})),this.flash.renderOrder=6,this.ring.renderOrder=6,this.group.add(this.flash,this.ring),this.group.visible=!1}fire(e){this.age=0,this.group.position.copy(e)}update(e,t){this.age+=e;let n=this.age/fq,r=this.age/mq;if(this.group.visible=r<1,!this.group.visible)return;this.group.quaternion.copy(t.quaternion),this.flash.visible=n<1;let i=pq*(.35+.65*Math.sqrt(Math.min(1,n)));this.flash.scale.set(i,i,1),this.flash.material.opacity=(1-Math.min(1,n))**2;let a=hq*(.15+.85*(1-(1-r)**3));this.ring.scale.set(a,a,a),this.ring.material.opacity=.9*(1-r)}get active(){return this.group.visible}standIns(){return[new H(this.flash.geometry,this.flash.material),new H(this.ring.geometry,this.ring.material)]}reset(){this.age=1/0,this.group.visible=!1}dispose(){this.flash.geometry.dispose(),this.flash.material.dispose(),this.ring.geometry.dispose(),this.ring.material.dispose()}},bq=10,xq=.055,Sq=3.2,Cq=1.4,wq=class{color;mesh;geometry;positions=new Float32Array(60);colors=new Float32Array(80);history=[];last=new B;hasLast=!1;tangent=new B;side=new B;toCamera=new B;shade=new V;strength=0;heat=0;constructor(e){this.color=e,this.geometry=new il,this.geometry.setAttribute(`position`,new Uc(this.positions,3).setUsage(go)),this.geometry.setAttribute(`color`,new Uc(this.colors,4).setUsage(go));let t=[];for(let e=0;e<9;e+=1){let n=e*2;t.push(n,n+1,n+2,n+1,n+3,n+2)}this.geometry.setIndex(t);let n=new yl({vertexColors:!0,transparent:!0,blending:2,depthWrite:!1,side:2});this.mesh=new H(this.geometry,n),this.mesh.frustumCulled=!1,this.mesh.visible=!1,this.mesh.renderOrder=4}update(e,t,n,r,i=0){if(t<=0)return;let a=this.hasLast?e.distanceTo(this.last)/t:0;this.last.copy(e),this.hasLast=!0,this.heat=i>this.heat?i:this.heat+(i-this.heat)*Math.min(1,t*6);let o=Sq*(1-.55*this.heat),s=r&&a>o?Math.min(1,(a-o)/4+this.heat*.4):0;this.strength+=(s-this.strength)*Math.min(1,t*18);let c=this.history.length>=bq?this.history.shift():new B;if(c.copy(e),this.history.push(c),this.strength<.02||this.history.length<3){this.mesh.visible=!1;return}let l=this.history.length,u=this.shade.copy(this.color).lerp(cq,this.heat),d=xq*(1+Cq*this.heat);for(let e=0;e3*t}function Oq(e,t,n){let r=e.detail.endsWith(`:head`)||e.detail.endsWith(`:body`);return t===void 0||![`hit`,`counter_hit`].includes(e.kind)||!r||n===null||n.winner_id===null||n.winner_id!==e.actor_id?!1:n.finish_method===`flash_ko`||(n.finish_method===`ko`||n.finish_method===`tko`)&&t.is_downed}function kq(e){for(let t of e.passes)t.dispose?.();e.dispose()}function Aq(e,t,n,r,i){e.setRenderTarget(t.readBuffer);let a=e.compileAsync(n,r,i);return e.setRenderTarget(null),a}var jq=-4e-4,Mq=10,Nq=16;function Pq(e,t,n){let r=t?Nq:n;e.autoUpdate=!t,e.intensity=+!t,e.bias=t?Mq:jq,e.mapSize.x!==r&&(e.mapSize.set(r,r),e.map?.dispose(),e.map=null,e.needsUpdate=!0)}function Fq(e,t){let n=t.fighters.findIndex(t=>t.player_id===e.target_id),r=t.fighters.findIndex(t=>t.player_id===e.actor_id),i=e.kind===`block`||e.kind===`perfect_block`;return{recipientIndex:i?r:n,puncherIndex:i?n:r}}function Iq(e,t,n){if(e===void 0||t===void 0)return;let r=n.x(t.x)-n.x(e.x),i=n.z(t.y)-n.z(e.y),a=Math.hypot(r,i);return Number.isFinite(a)&&a>.001?{x:r/a,z:i/a}:void 0}var Lq=e=>e.kind===`hit`||e.kind===`counter_hit`,Rq=e=>e.kind===`block`||e.kind===`perfect_block`,zq=480,Bq=.56,Vq=1.8,Hq=1.7,Uq=1.2,Wq=1.6,Gq=30,Kq=6.5,qq=.4,Jq=600,Yq=2.8,Xq=.6,Zq=[[1,0],[-1,0],[.75,-.66],[-.75,-.66],[.75,.66],[-.75,.66]],Qq=.15,$q=.6,eJ=2.3,tJ=.5,nJ=3.42,rJ=2.2,iJ=.9,aJ=`body`,oJ=`collapse`,sJ=.55,cJ=.5,lJ=.5,uJ=.28,dJ=104,fJ=260,pJ=.05,mJ=2.95,hJ=2.4,gJ=1.6,_J=.98,vJ=500,yJ={uniforms:{tDiffuse:{value:null},uTime:{value:0},uVignette:{value:.32},uGrain:{value:.035},uRocked:{value:0}},vertexShader:` +`,IB=(e,t,n)=>{let r=Math.min(1,Math.max(0,(n-e)/(t-e)));return r*r*(3-2*r)};function LB(e,t){let n=[];for(let[r,i]of e.entries())for(let e=0;e0&&Math.abs(Math.atan2(s,c))<.3})}return n}function RB(e,t,n,r={rise:0,armLeft:0,armRight:0,sway:0}){let i=.2+.7*(1-e.keen),a=IB(i-.12,i+.12,n),o=Math.abs(Math.sin(t*(2.3+n*3.2)+e.phase*1.7))*(.02+.1*a),s=Math.sin(t*6.2+e.phase)*.32*a,c=kB+-2.35*a;return r.rise=a*AB+o,r.armLeft=c+s,r.armRight=c-s*.8,r.sway=Math.sin(t*1.6+e.phase)*(.04+n*.05),r}function zB(e){let t=Wg(e,!1);for(let t of e)t.dispose();if(t===null)throw Error(`crowd geometry could not be merged`);return t}function BB(){let e=new Gu(.16,.28,2,8);e.scale(1.35,1,.8),e.translate(0,.64,0);let t=new Gu(.078,.3,1,5);t.rotateZ(Math.PI/2),t.translate(0,.89,0);let n=new Gu(.11,.26,1,5);return n.rotateX(Math.PI/2),n.scale(1.7,1,1),n.translate(0,.4,.17),zB([e,t,n])}function VB(){let e=new Od(.105,10,6);e.rotateY(-Math.PI/2),e.scale(.92,1.12,1),e.translate(0,1.12,.01);let t=new qu(.048,.056,.1,5,1,!0);t.translate(0,.99,0);let n=t.getAttribute(`uv`);for(let e=0;e{e.vertexShader=e.vertexShader.replace(`#include `,`#include +varying vec3 vCrowdLight;`).replace(`#include `,`#include \n${PB}`),e.fragmentShader=e.fragmentShader.replace(`#include `,`#include +varying vec3 vCrowdLight;`).replace(`#include `,`#include \n${FB}`)},e.customProgramCacheKey=()=>`hands-crowd`;let u=new Hd({color:724501,roughness:.96,metalness:0,side:2}),d=new pu(o[0],s,i),f=new pu(o[1],c,i),p=new pu(o[2],l,i),m=new pu(o[3],s,i),h=new pu(o[3],s,i),g=[d,f,p,m,h],_=[d,f,p];for(let e of g)e.instanceMatrix.setUsage(Do),e.frustumCulled=!1;let v=new V;for(let t=0;t.12&&v.setHex(EB[Math.floor(e()*EB.length)]).multiplyScalar((.8+e()*.4)*n),p.setColorAt(t,v)}for(let e of g)e.instanceColor.needsUpdate=!0;let y=new H(o[4],u);y.name=`stands`,y.receiveShadow=!1,n.add(y,...g);let b=new B(0,1,0),x=new B,S=new ms,C=new B,w=new Rs,T=new Rs,E=new Rs,D=new Rs,O={rise:0,armLeft:0,armRight:0,sway:0},k=(e,t,n,r)=>{E.makeTranslation(n*OB,DB,0),D.makeRotationX(r),T.multiplyMatrices(w,E).multiply(D),e.setMatrixAt(t,T)},ee=0,A=!1,te=!1,j=!1,M=0,ne=0,re=r.flatMap((e,t)=>e.platform?[t]:[]),ie=new Rs().makeScale(0,0,0),N=(e,t)=>{let n=r[e];if(j&&n.platform)for(let n of t?g:_)n.setMatrixAt(e,ie);else RB(n,M,ne,O),S.setFromAxisAngle(b,n.yaw+O.sway),w.compose(x.set(n.x,n.y+O.rise*n.scale,n.z),S,C.setScalar(n.scale)),d.setMatrixAt(e,w),f.setMatrixAt(e,w),p.setMatrixAt(e,w),t&&(k(m,e,1,O.armLeft),k(h,e,-1,O.armRight))},ae=(e,t,n=!1)=>{let r=n||te;te=!1;let a=r?1:A?4:2,o=Math.ceil(i/a),s=ee%a*o,c=Math.min(i,s+o);ee+=1,M=e,ne=t;let l=!A||r;for(let e=s;e{e!==A&&(A=e,m.visible=!e,h.visible=!e,e||(te=!0))},makeRoomForCamera:e=>{let t=NB(e.x,e.z,j?5.9:MB);if(t!==j){j=t;for(let e of re)N(e,!0);for(let e of g)e.instanceMatrix.clearUpdateRanges(),e.instanceMatrix.needsUpdate=!0}},dispose:()=>{for(let e of o)e.dispose();for(let e of[s,c,l,u])e.dispose();a.dispose();for(let e of g)e.dispose()}}}var qB=.3,JB=.012,YB=e=>()=>(e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296);function XB(){let e=new fc;e.name=`arena`;let t=[],n=[],r=[],i=new Hd({color:`#05070c`,roughness:.95});n.push(i);let a=new Ku(30,40);t.push(a);let o=new H(a,i);o.rotation.x=-Math.PI/2,o.position.y=-1,o.receiveShadow=!0,e.add(o);let s=YB(20260727),c=xB,l=KB(s);e.add(l.group);let u=document.createElement(`canvas`);u.width=1024,u.height=64;let d=u.getContext(`2d`);d!==null&&(d.fillStyle=`#070c1a`,d.fillRect(0,0,1024,64),d.fillStyle=`#13203f`,d.fillRect(0,0,1024,5),d.fillRect(0,59,1024,5),d.textBaseline=`middle`,d.font=`800 38px Inter, system-ui, sans-serif`,d.fillStyle=`#e9c46a`,d.fillText(`H A N D S`,28,33),d.fillStyle=`#c9d6f2`,d.font=`600 26px Inter, system-ui, sans-serif`,d.fillText(`CHAMPIONSHIP BOXING`,300,34),d.fillStyle=`#e9c46a`,d.font=`800 30px Inter, system-ui, sans-serif`,d.fillText(`FIGHT NIGHT`,700,34),d.fillStyle=`#b91c1c`,d.fillRect(948,22,22,22),d.fillStyle=`#1d4ed8`,d.fillRect(978,22,22,22));let f=new Bu(u);f.colorSpace=xo,f.wrapS=Zi,f.repeat.set(-6,1),r.push(f);let p=new Al({map:f,side:1});n.push(p);let m=c[0].y+CB,h=new qu(c[0].radius-SB-.03,c[0].radius-SB-.03,m- -1-.04,72,1,!0);t.push(h);let g=new H(h,p);g.name=`boards`,g.position.y=(m+-1)/2+.02,e.add(g);let _=new Float32Array(270);for(let e=0;e<90;e+=1){let t=c[Math.floor(s()*c.length)],n=s()*Math.PI*2;_[e*3]=Math.sin(n)*t.radius,_[e*3+1]=t.y+.9+s()*.5,_[e*3+2]=Math.cos(n)*t.radius}let v=new hl;v.setAttribute(`position`,new el(_,3)),t.push(v);let y=new Mu({color:13623551,size:.09,transparent:!0,opacity:0,blending:2,depthWrite:!1});n.push(y);let b=new Lu(v,y);e.add(b);let x=new Hd({color:`#11151d`,roughness:.6,metalness:.4});n.push(x);let S=new Hd({color:`#1a2230`,emissive:`#dfe9ff`,emissiveIntensity:1.1,roughness:.4});n.push(S);let C=new Al({color:`#a8c4ff`,transparent:!0,opacity:.006,blending:2,depthWrite:!1,side:2});n.push(C);let w=new Wu(9,.18,.18);t.push(w);let T=new qu(.09,.14,.22,10);t.push(T);let E=new Ju(1.7,6.6,20,1,!0);t.push(E);for(let t=0;t<2;t+=1){let n=new H(w,x);n.position.set(0,7.6,t===0?-1.6:1.6),e.add(n);for(let t=0;t<5;t+=1){let r=-3.6+t*1.8,i=new H(T,S);i.position.set(r,7.45,n.position.z),e.add(i);let a=new H(E,C);a.position.set(r,4.1,n.position.z*.4),e.add(a)}}let D=new Hd({color:`#070a12`,roughness:1});n.push(D);let O=new qu(24,24,14,32,1,!0);t.push(O);let k=new H(O,D);k.position.y=5,k.material.side=1,e.add(k);let ee=document.createElement(`canvas`);ee.width=512,ee.height=256;let A=ee.getContext(`2d`);A!==null&&(A.fillStyle=`#04060c`,A.fillRect(0,0,512,256),A.strokeStyle=`#f1cc72`,A.lineWidth=6,A.strokeRect(14,14,484,228),A.fillStyle=`#f1cc72`,A.font=`800 84px Inter, system-ui, sans-serif`,A.textAlign=`center`,A.textBaseline=`middle`,A.fillText(`H A N D S`,256,104),A.fillStyle=`#8fa3c8`,A.font=`600 30px Inter, system-ui, sans-serif`,A.fillText(`CHAMPIONSHIP BOXING`,256,186));let te=new Bu(ee);te.colorSpace=xo;let j=new Al({map:te});n.push(j);let M=new Wu(4.6,2.3,.3);t.push(M);let ne=new H(M,j);ne.position.set(0,6.4,-14.5),e.add(ne);let re=new H(M,x);re.position.set(0,6.4,-14.65),e.add(re),r.push(te);let ie=0,N=0,ae=0,oe=!1;return{group:e,update:(e,t,n)=>{ae=Math.max(0,ae-t*qB),n&&!oe&&l.update(0,0,!0),oe=n,n||(l.update(e,ae),f.offset.x=e*JB%1,ie-=t,ie<=0&&(N=.09+Math.random()*.08,ie=(.25+Math.random()*1.6)/(1+ae*4)),N=Math.max(0,N-t),y.opacity=N>0?.85:0)},excite:e=>{ae=Math.min(1,ae+Math.max(0,e))},excitement:()=>ae,setLowTier:l.setLowTier,makeRoomForCamera:l.makeRoomForCamera,dispose:()=>{for(let e of t)e.dispose();for(let e of n)e.dispose();for(let e of r)e.dispose();l.dispose()}}}var ZB=2.05,QB=5.5,$B=1.05,eV=1.78,tV=3.75,nV=.85,rV=.45,iV=1.18,aV=2.5,oV=5.5;function sV(e,t,n){return e<2.5||t<3?null:(n+Math.floor((e-aV)/oV))%2}function cV(e){return Math.max(0,e-aV)%oV}var lV=.95,uV=2.6,dV=-25;function fV(e,t,n,r,i){let a=e===0?-1:1,o=r*Math.PI/180,s=-a*Math.SQRT1_2,c=a*Math.SQRT1_2,l=s*Math.cos(o)+c*Math.sin(o),u=-s*Math.sin(o)+c*Math.cos(o);return i.set(a*t+l*n,0,-a*t+u*n)}function pV(e,t,n,r,i){fV(e,t,uV,dV+Math.min(1,n/oV)*5,r).setY(1.45),fV(e,t,.62,27,i).setY(1.05)}var mV={top:2.42,bottom:.95,width:2.4};function hV(e,t,n,r=.09){let i=Math.max(.2,1-n-r),a=Math.max((mV.top-mV.bottom)/i,mV.width/Math.max(.1,e)),o=(mV.top+mV.bottom)/2;return{distance:a/(2*Math.tan(R.degToRad(t)/2)),height:o-(.5-(r+i/2))*a}}var gV=class{current=new B(0,ZB,QB);look=new B(0,$B,0);swayPhase=0;update(e,t,n,r,i,a,o,s,c=!1,l=null){this.swayPhase+=e;let u=a&&l!==null?nV:0,d=(n.x+r.x)/2+((l?.x??0)-(n.x+r.x)/2)*u,f=(n.z+r.z)/2+((l?.z??0)-(n.z+r.z)/2)*u,p=R.clamp(d,-1.4,1.4),m=R.clamp(f,-1.1,1.1),h=c?R.clamp(tV+i*.45-(a?.6:0),3.3,5.6):R.clamp(QB+i*.6-(a?.9:0),4.6,8.4),g=(c?eV:ZB)+i*.08-(a?.45:0),_=s?0:Math.sin(this.swayPhase*.21)*.35,v=s?0:Math.sin(this.swayPhase*.13)*.3,y=p*.32+_,b=h+m*.2,x=g+v*.2;if(this.current.x+=(y-this.current.x)*(1-Math.exp(-2.6*e)),this.current.y+=(x-this.current.y)*(1-Math.exp(-2.6*e)),this.current.z+=(b-this.current.z)*(1-Math.exp(-2.6*e)),this.look.x+=(p-this.look.x)*(1-Math.exp(-3.2*e)),this.look.y+=((a?u>0?rV:.7:c?iV:$B)-this.look.y)*(1-Math.exp(-3.2*e)),this.look.z+=(m*.6-this.look.z)*(1-Math.exp(-3.2*e)),!s&&o>5e-4){let e=t*61;this.current.x+=Math.sin(e*1.31)*o,this.current.y+=Math.cos(e*1.97)*o*.6,this.look.x+=Math.sin(e*1.53)*o*.5,this.look.y+=Math.cos(e*2.11)*o*.35}return{position:this.current,lookAt:this.look}}},_V=2.45,vV=2.25,yV=1.35,bV=3.5,xV=1.25,SV=.45;function CV(e,t,n,r,i,a,o=31){let s=R.degToRad(o),c=Math.cos(s)*_V,l=Math.sin(s)*_V,u=-r,d=n,f=-n*c+u*l,p=-r*c+d*l,m=(e,t)=>Math.abs(t)<1e-9?1:R.clamp((Math.sign(t)*bV-e)/t,0,1),h=Math.min(m(e.x,f),m(e.z,p));i.set(R.clamp(e.x+f*h,-3.5,bV),vV,R.clamp(e.z+p*h,-3.5,bV)),a.set(t.x,yV,t.z)}var wV=class{angle=Math.PI;closeness=0;initialised=!1;target=new B;position=new B;look=new B;aim=new B;get forwardX(){return Math.sin(this.angle)}get forwardZ(){return Math.cos(this.angle)}reset(){this.initialised=!1}update(e,t,n,r,i,a,o=16/9){let s=r.x-n.x,c=r.z-n.z,l=Math.hypot(s,c),u=l>.05?Math.atan2(s,c):this.angle,d=R.clamp((1.3-l)/.8,0,1);if(!this.initialised)this.angle=u,this.closeness=d;else{let t=Math.atan2(Math.sin(u-this.angle),Math.cos(u-this.angle));this.angle+=t*(1-Math.exp(-4.5*e)),this.closeness+=(d-this.closeness)*(1-Math.exp(-3*e))}let f=R.clamp(o,SV,1);if(CV(n,r,this.forwardX,this.forwardZ,this.target,this.aim,R.lerp(31,60,this.closeness)*f),!this.initialised)this.position.copy(this.target),this.look.copy(this.aim),this.initialised=!0;else{let t=1-Math.exp(-10*e);this.position.lerp(this.target,t),this.look.lerp(this.aim,t)}let p={position:this.position,lookAt:this.look,tight:!0};if(a||i<=5e-4)return p;let m=t*61;return this.target.set(this.position.x+Math.sin(m*1.31)*i,this.position.y+Math.cos(m*1.97)*i*.6,this.position.z),this.aim.set(this.look.x+Math.sin(m*1.53)*i*.5,this.look.y+Math.cos(m*2.11)*i*.35,this.look.z),{position:this.target,lookAt:this.aim,tight:!0}}},TV=54,EV=136,DV=110,OV=168,kV=400,AV=74,jV=72,MV={right:220,wideTop:64,compactTop:120,height:34},NV=200,PV={reach:192,bottom:80},FV=`rgba(3,6,12,0.86)`,IV=`rgb(4,7,13)`,LV={play:`#f6d57a`,colour:`#9ec7ff`,announcer:`#f6d57a`},RV=[`#4f86d9`,`#d9483c`],zV=`Inter, system-ui, sans-serif`;function BV(e){let{width:t,height:n}=e,r=t<640,i=n<480,a=i?.78:r?.85:1,o=Math.min(680,t-24),s=e.resultTop,c=s===null&&e.touch&&e.phase!==`complete`,l=Vr(t,n,c);if(c&&e.paused===!0&&e.phase===`countdown`)return null;if(s===null&&e.phase===`countdown`){let e=l.x+l.width/2,r=t-(c&&t>n?zr(t,n,l.y+l.height):12);return{x:e,y:l.y,maxWidth:Math.min(o,2*Math.min(e-12,r-e)),anchor:`top`,scale:a,cover:{width:l.width,height:l.height}}}let u=t-384;if(s===null&&!e.touch&&!i&&u>=kV){let r=n-(e.hint?OV:DV),i=e.cornerPanelTop===void 0||e.cornerPanelTop===null?r:Math.min(r,e.cornerPanelTop-8);if(i-AV*a>=n*.45)return{x:t/2,y:i,maxWidth:Math.min(o,u),anchor:`bottom`,scale:a,cover:null}}if(s===null&&e.viewerDown)return null;let d=s===null&&r?EV:TV;s===null&&(e.phase===`rest`||e.phase===`foul_recovery`||c&&e.paused===!0?d=Math.max(d,l.y+l.height+8):e.phase===`knockdown`?d=Math.max(d,fi(n,r)+jV):e.phase===`finish`&&(d=Math.max(d,Si(t,n,c).bottom+8+(c?0:59))),e.replay&&t/2-o/2f)return null;let p=c&&e.lag===!0&&!r&&!e.replay&&dMath.round(8*e)+Math.round(10*e)+Math.round(4*e)+2*Math.round(Math.round(17*e)*1.3)+Math.round(5*e);function HV(e,t,n,r){let i=r?1:t.opacity;if(i<=.01)return;let a=r||n.cover!==null?0:t.entering*8*(n.anchor===`bottom`?1:-1);e.save(),e.globalAlpha=i,e.textBaseline=`alphabetic`;let o=i*i;t.line.card===null?GV(e,t.line,n,a,o):qV(e,t.line.card,n,a,o),e.restore()}function UV(e,t,n){if(e.measureText(t).width<=n)return t;let r=t;for(;r.length>1&&e.measureText(`${r}…`).width>n;)r=r.slice(0,-1);return`${r}…`}function WV(e,t){let n=e.length/2,r=null,i=1/0;for(let a=e.indexOf(` `);a>=0;a=e.indexOf(` `,a+1)){let o=e.slice(0,a),s=e.slice(a+1),c=Math.abs(a-n);t(o)&&t(s)&&c0?[e.slice(0,a),e.slice(a+1)]:[e,``]}function GV(e,t,n,r,i){let a=n.scale,o=Math.round(14*a),s=Math.round(10*a),c=n.maxWidth-o*2-4,l=(t,n)=>(e.font=`700 ${n}px ${zV}`,e.measureText(t).width),u=Xn(e=>l(t.text,e),c,Math.round(17*a),Math.round(13*a)),d=l(t.text,u)<=c?[t.text]:WV(t.text,e=>l(e,u)<=c).filter(e=>e.length>0),f=Math.max(...d.map(e=>Math.min(c,l(e,u)))),p=PR[t.speaker];e.font=`800 ${s}px ${zV}`;let m=e.measureText(p).width,h=Math.min(n.maxWidth,Math.max(f,m)+o*2+4),g=Math.round(u*1.3),_=Math.round(8*a)+s,v=_+Math.round(4*a)+d.length*g+Math.round(5*a),y=(n.anchor===`bottom`?n.y-v:n.y)+r,b=n.x-h/2,x=LV[t.speaker];e.fillStyle=FV,e.fillRect(b,y,h,v),e.fillStyle=x,e.fillRect(b,y,4,v),e.globalAlpha=i,e.textAlign=`left`,e.font=`800 ${s}px ${zV}`,e.fillText(p,b+4+o,y+_),e.fillStyle=`#f6f7fb`,e.font=`700 ${u}px ${zV}`,d.forEach((t,n)=>e.fillText(UV(e,t,c),b+4+o,y+_+Math.round(4*a)+g*(n+1)-Math.round(u*.28)))}function KV(e,t,n){let r=Math.round(11*e),i=Math.round(28*e),a=Math.round(6*e),o={pad:Math.round(10*e),gap:Math.round(7*e)},s={pad:Math.max(4,Math.round(6*e)),gap:Math.max(3,Math.round(4*e))},c=t?Math.round(10*e):0,l=[{...o,detail:c},{...s,detail:c},{...s,detail:0}],u=(e,t)=>e.pad*2+r+e.gap+t+(e.detail===0?0:a+e.detail);for(let e of l)if(n===null||u(e,i)<=n)return{kicker:r,title:i,...e,height:u(e,i)};let d=l[2],f=Math.max(12,Math.min(i,(n??1/0)-u(d,0)));return{kicker:r,title:f,...d,height:u(d,f)}}function qV(e,t,n,r,i){let a=n.scale,o=Math.round(18*a),s=n.maxWidth-o*2,c=KV(a,t.detail.length>0,n.cover?.height??null),l=c.kicker,u=c.detail,d=(t,n,r)=>(e.font=`${n} ${r}px ${zV}`,e.measureText(t).width),f=Xn(e=>d(t.title,900,e),s,c.title,Math.min(c.title,Math.round(15*a))),p=Math.max(d(t.kicker,800,l),Math.min(s,d(t.title,900,f)),u===0?0:d(t.detail,700,u)),m=Math.min(n.maxWidth,Math.max(240*a,p+o*2,n.cover?.width??0)),h=c.pad+l+c.gap+f+(u===0?0:Math.round(6*a)+u)+c.pad,g=Math.max(h,n.cover?.height??0),_=(n.anchor===`bottom`?n.y-g:n.y)+r,v=n.x-m/2,y=t.corner===null?LV.announcer:RV[t.corner];e.fillStyle=n.cover===null?FV:IV,e.fillRect(v,_,m,g),e.fillStyle=y,e.fillRect(v,_,m,3),e.globalAlpha=i,e.textAlign=`center`;let b=_+(g-h)/2+c.pad+l;e.font=`800 ${l}px ${zV}`,e.fillText(UV(e,t.kicker,s),n.x,b),b+=c.gap+f,e.fillStyle=`#ffffff`,e.font=`900 ${f}px ${zV}`,e.fillText(UV(e,t.title,s),n.x,b-Math.round(f*.12)),u>0&&(b+=Math.round(6*a)+u,e.fillStyle=`#93a3bd`,e.font=`700 ${u}px ${zV}`,e.fillText(UV(e,t.detail,s),n.x,b))}var JV={broken_nose:[`nose`,.3],broken_jaw:[`mouth`,.25],jaw_torn:[`mouth`,.75],eye_left_out:[`eye_left`,.3],eye_right_out:[`eye_right`,.3],ear_left_torn:[`ear_left`,.3],ear_right_torn:[`ear_right`,.3],skull_fractured:[`skull`,.4],arm_left_broken:[`elbow_left`,.3],arm_right_broken:[`elbow_right`,.3],forearm_left_severed:[`elbow_left`,1],forearm_right_severed:[`elbow_right`,1],arm_left_torn:[`shoulder_left`,1],arm_right_torn:[`shoulder_right`,1],ribs_left_broken:[`ribs_left`,.15],ribs_right_broken:[`ribs_right`,.15],disemboweled:[`belly`,.6],knee_left_blown:[`knee_left`,.2],knee_right_blown:[`knee_right`,.2]},YV=new Map($e.map(e=>[e,[]]));for(let[e,[t,n]]of Object.entries(JV))YV.get(t).push([e,n]);var XV=new Set([`nose`,`mouth`,`eye_left`,`eye_right`,`ear_left`,`ear_right`,`skull`]),ZV=new Set([`waist`,`crotch`,`knee_left`,`knee_right`]),QV=1.5,$V=8,eH=.9,tH=18,nH=36,rH=.45,iH=.25,aH=.3,oH=.08,sH=.012,cH=[`ankleL`,`ankleR`],lH=[`toeL`,`toeR`],uH=.35,dH=.05,fH=.5,pH=.3,mH=.4,hH=2.2,gH=.12,_H=4e-4,vH=.4,yH=.6,bH=4,xH=1.1,SH=1/500,CH=.18,wH=.55,TH=.45,EH=.5,DH=.08,OH=[`gloveL`,`gloveR`],kH={bottom:80,top:108,half:17},AH=70,jH=2,MH=7,NH=.5,PH=.28,FH=[`left`,`right`],IH={left:`eye_left_out`,right:`eye_right_out`},LH={left:`eye_left`,right:`eye_right`},RH={left:[`forearm_left_severed`,`arm_left_torn`],right:[`forearm_right_severed`,`arm_right_torn`]},zH=[`head`,`arm_left`,`arm_right`,`leg_left`,`leg_right`,`torso`],BH={head:[`neck`,`neck`],jaw:[`mouth`,`head`],forearm_left:[`elbow_left`,`elbowL`],forearm_right:[`elbow_right`,`elbowR`],arm_left:[`shoulder_left`,`shoulderL`],arm_right:[`shoulder_right`,`shoulderR`],leg_left:[`knee_left`,`kneeL`],leg_right:[`knee_right`,`kneeR`],upper_body:[`waist`,`hips`],torso:[`chest`,`upperChest`]},VH=Object.keys(BH),HH={head:[`head`],jaw:[`head`],forearm_left:[`body`,`glove_left`],forearm_right:[`body`,`glove_right`],arm_left:[`body`,`glove_left`],arm_right:[`body`,`glove_right`],leg_left:[`body`,`shoes`],leg_right:[`body`,`shoes`],upper_body:[`head`,`body`,`glove_left`,`glove_right`],torso:[`body`,`pants`]},UH=new B(0,1,0),WH=new B(0,.12,.02),GH=class{effects;bake;bodies=[null,null];position=new B;axis=new B;scratch=new B;turn=new ms;matrix=new Rs;skullOffset=new B;injuries=new Set;time=0;settings={blood:`full`,reducedMotion:!1};xray=new aA;constructor(e,t){this.effects=e,this.bake=t,e.scene.add(this.xray.root)}attach(e,t){this.bodies[e]?.mutilation.dispose(),this.xray.prepare(t.boxer);let n={graph:t,mutilation:new _k(t.boxer),shown:new Set,early:new Map,awaited:new Map,inflicted:new Set,fatalWounds:new Map,forced:new Set,fatalParts:[],burst:new Set,fatality:null,dead:null,gutsDropAt:null,gibbed:!1,vomitUntil:0,printed:[new B,new B],dragged:new B,sliding:!1,broke:null,spatter:0,lost:0,dripIn:0,dripped:0,diedAt:0,voided:!1};return this.bodies[e]=n,n.mutilation}get graphic(){return this.settings.blood===`full`&&!this.settings.reducedMotion}expect(e,t){let n=this.bodies[e];n!=null&&!n.inflicted.has(t)&&n.awaited.set(t,this.time+$V)}sync(e,t,n,r,i,a=!1){this.time=i,this.settings=n;let o=this.bodies[e];if(o==null)return;let s=this.graphic;!s&&(o.gibbed||o.fatalParts.length>0||o.fatalWounds.size>0||o.forced.size>0)&&this.unmaim(o,e);let c=this.injuries;c.clear();let l=!1;for(let e of t.injuries){let t=o.awaited.get(e);if(t!==void 0){if(i<=t){l=!0;continue}o.awaited.delete(e)}c.add(e),o.early.delete(e),o.inflicted.add(e)}for(let[e,t]of o.early)i>t?o.early.delete(e):c.add(e);for(let e of o.forced)c.add(e);if(l)for(let e of o.shown)c.add(e);o.shown.clear();for(let e of c)o.shown.add(e);for(let e of o.inflicted)o.shown.has(e)||o.inflicted.delete(e);let u=o.graph.boxer,d=R.clamp(1-t.blood_volume/nt,0,1);if(o.mutilation.apply(o.shown,s?`full`:n.blood===`off`?`off`:`reduced`),o.mutilation.setPallor(n.blood===`off`?0:d),o.graph.setInjuries(o.shown,s),o.graph.setFaint(o.dead===null?R.clamp((.6-t.blood_volume/nt)/.6,0,1):0),o.dead!==null&&!o.graph.isDead&&o.graph.die(o.dead),o.mutilation.update(r,i),this.xray.owner===e&&(s&&!o.gibbed?this.xray.update(r):this.xray.stop()),u.root.visible=!o.gibbed,o.gibbed)return;this.wear(o,e,d,r);let f=o.mutilation.isPartGone(`upper_body`),p=f||u.isDecapitated,m=p||u.isHeadBurst,h=1-.65*d,g=0;for(let t of $e){let n=o.fatalWounds.get(t)??0,r=`blood`,c=YV.get(t);for(let e=0;e0&&o.mutilation.anchor(t,this.position,this.axis)&&this.effects.anchorWound(e,t,this.position,this.axis)}for(let t=0;t=o.gutsDropAt&&(o.gutsDropAt=null,this.effects.dropGuts(e)),this.effects.anchorGuts(e,this.position,this.axis)):this.effects.gutsOut(e)&&this.effects.clearGuts(e),i=iH&&this.track(o,Math.min(1,g)),o.dead===null||!o.mutilation.anchor(`waist`,this.position,this.axis))return;this.effects.setCorpse(e,s?this.position:null);let v=s&&this.position.yfH?o.dragged.copy(this.position):y>dH&&(this.effects.smear(o.dragged.x,o.dragged.z,this.position.x,this.position.z,pH),o.dragged.copy(this.position)),o.sliding=v}gibbed(e){return this.bodies[e]?.gibbed===!0}hasGlove(e,t){let n=this.bodies[e]?.shown;return n===void 0||!this.graphic||!(n.has(RH[t][0])||n.has(RH[t][1]))}wear(e,t,n,r){let i=e.graph.boxer,a=this.graphic,o=this.bodies[1-t]??null;e.lost=n;let s=o===null?0:o.lost*hH+o.shown.size*gH,c=a?Math.min(1,Math.max(e.spatter,s)):0;i.headInjury.setSpatter(c*.8),i.bodyInjury.setSpatter(c),i.setGloveBlood(Math.max(i.gloveBloodLevel,c)),i.setTrunksBlood(Math.max(i.trunksBloodLevel,c*.7));let l=this.settings.blood===`off`?1:yH+Math.min(xH,n*bH);if(i.headInjury.setRun(l),i.bodyInjury.setRun(l),this.settings.blood===`off`&&(i.headInjury.clearMarks(),i.bodyInjury.clearMarks()),!a||e.dead!==null||i.gloveBloodLevel0))return;e.dripIn=EH/i.gloveBloodLevel,e.dripped+=1;let u=e.dripped%2;this.hasGlove(t,FH[u])&&(i.rig.bones[OH[u]].getWorldPosition(this.position),this.position.y-=DH,this.effects.shed(this.position,t*4099+e.dripped))}land(e,t,n,r,i,a,o,s=0,c=1){let l=this.bodies[t]??null,u=this.bodies[e]??null;if(l!==null&&n!==null&&this.hasGlove(t,n)?l.graph.boxer.rig.bones[OH[n===`left`?0:1]].getWorldPosition(this.scratch):this.scratch.copy(o),this.bruise(e,this.scratch,r,i),this.graphic&&(a>0&&l!==null&&(l.spatter=Math.min(1,l.spatter+a*_H)),a>0&&u!==null&&(u.spatter=Math.min(1,u.spatter+a*_H*vH)),!(u===null||u.gibbed))){for(let t=0;t<$e.length;t+=1){let n=$e[t],i=this.effects.woundStrength(e,n);i<=0||(r===`head`?!XV.has(n):XV.has(n)||ZV.has(n))||u.mutilation.anchor(n,this.position,this.axis)&&this.effects.sprayFluid(`blood`,this.position,c,Math.round(AH*i),s+t+1,.8)}r===`head`&&u.shown.has(`broken_jaw`)&&u.mutilation.anchor(`mouth`,this.position,this.axis)&&this.effects.spawnTeeth(this.position,c,jH,s)}}bruise(e,t,n,r){let i=this.bodies[e];if(i==null||i.gibbed||this.settings.blood===`off`)return;let a=i.graph.boxer,o=n===`head`?a.headMesh:bO(a,`body`);if(o===null||!i.mutilation.skinMatrix(n,n===`head`?`head`:`chest`,this.matrix))return;let s=this.position.copy(t).applyMatrix4(this.matrix.invert()),c=o.geometry.getAttribute(`position`),l=1/0,u=-1;for(let e=0;ekH.top||Math.abs(t)>kH.half))continue;let i=(t-s.x)**2+(r-s.y)**2+(c.getZ(e)-s.z)**2;ia.mutilation.anchor(e,c,l);switch(t){case`broken_nose`:d(`nose`)&&s.sprayFluid(`blood`,c,r,140,n,1.1);break;case`broken_jaw`:d(`mouth`)&&(s.spawnTeeth(c,r,5,n),s.sprayFluid(`blood`,c,r,180,n));break;case`jaw_torn`:d(`mouth`)&&(this.fling(a,e,`jaw`,n,r,{radius:.05,speed:1.2,lift:.8}),s.spawnDebris(`jawbone`,c,r,1,n,1.2),s.spawnTeeth(c,r,9,n),s.sprayFluid(`blood`,c,r,420,n,1.2));break;case`eye_left_out`:case`eye_right_out`:d(`eye_${u}`)&&(s.gougeEye(e,c,l,r,n,u),s.sprayFluid(`blood`,c,r,120,n));break;case`ear_left_torn`:case`ear_right_torn`:d(`ear_${u}`)&&(s.spawnDebris(`ear`,c,r,1,n),s.sprayFluid(`blood`,c,r,130,n));break;case`face_left_flayed`:case`face_right_flayed`:d(`eye_${u}`)&&(s.spawnDebris(`skin`,c,r,3,n),s.sprayFluid(`blood`,c,r,260,n));break;case`skull_fractured`:d(`skull`)&&(s.spawnDebris(`shard`,c,r,7,n,1.2),s.spawnDebris(`brain`,c,r,8,n),s.sprayFluid(`blood`,c,r,300,n,1.3),s.sprayFluid(`brain`,c,r,90,n));break;case`shoulder_left_dislocated`:case`shoulder_right_dislocated`:break;case`arm_left_broken`:case`arm_right_broken`:d(`elbow_${u}`)&&(s.spawnDebris(`bone`,c,r,3,n),s.sprayFluid(`blood`,c,r,200,n));break;case`forearm_left_severed`:case`forearm_right_severed`:this.fling(a,e,`forearm_${u}`,n,r,{radius:.07,speed:1.1}),d(`elbow_${u}`)&&(s.spawnDebris(`bone`,c,r,2,n),s.spawnDebris(`flesh`,c,r,8,n),s.sprayFluid(`blood`,c,r,600,n,1.3));break;case`arm_left_torn`:case`arm_right_torn`:this.fling(a,e,`arm_${u}`,n,r,{radius:.08,speed:1,spin:.7}),d(`shoulder_${u}`)&&(s.spawnDebris(`flesh`,c,r,14,n),s.spawnDebris(`bone`,c,r,2,n),s.sprayFluid(`blood`,c,r,800,n,1.4));break;case`ribs_left_broken`:case`ribs_right_broken`:d(`ribs_${u}`)&&(s.spawnDebris(`bone`,c,r,2,n,.8),s.sprayFluid(`blood`,c,r,140,n));break;case`liver_ruptured`:this.vomit(e,n,1.6);break;case`disemboweled`:d(`belly`)&&(s.spillGuts(e,c,n,tH),s.spawnDebris(`organ`,c,r,3,n),s.spawnDebris(`gut`,c,r,4,n),s.spawnDebris(`fat`,c,r,4,n),s.sprayFluid(`blood`,c,r,650,n,1.2),s.sprayFluid(`bile`,c,r,110,n));break;case`knee_left_blown`:case`knee_right_blown`:d(`knee_${u}`)&&(s.spawnDebris(`bone`,c,r,2,n,.7),s.sprayFluid(`blood`,c,r,110,n))}return!0}rebreak(e,t){let n=this.bodies[e],r=n?.broke??null;return n==null||r===null||r.tick!==t||!this.graphic||n.gibbed?!1:(this.xray.start(e,n.graph.boxer,n.mutilation,r.site,r.x,r.z),!0)}drawBreak(e,t,n,r){if(this.xray.owner<0)return;let i=this.effects.mistPoints,a=i.visible,o=r.visible;i.visible=!1,r.visible=!1,this.xray.drawInset(e,t,n),i.visible=a,r.visible=o}holdXray(e,t){let n=this.bodies[e];n!=null&&this.xray.start(e,n.graph.boxer,n.mutilation,t,1,0,!0)}vomit(e,t,n=1.3){let r=this.bodies[e];r==null||r.gibbed||this.settings.reducedMotion||(r.graph.retch(n),this.settings.blood===`full`&&r.mutilation.anchor(`mouth`,this.position,this.axis)&&(r.vomitUntil=this.time+n,this.effects.gush(e,this.position,this.axis.addScaledVector(UH,-.4).normalize(),n,520,t,`bile`),this.effects.sprayFluid(`blood`,this.position,0,90,t,.6),this.effects.puddle(this.position.x+this.axis.x*mH,this.position.z+this.axis.z*mH,.22,`bile`,t)))}fatality(e,t,n,r){let i=this.bodies[e];if(i==null||i.fatality!==null||!this.graphic)return!1;i.fatality=t;let a=this.effects,o=this.position,s=this.axis,c=(t,i,s=1)=>a.spawnDebris(t,o,r,i,n,s,e),l=(e,t,i=1)=>a.sprayFluid(e,o,r,t,n,i);if(t===`eyes_out`){for(let t=0;ta||Math.hypot(this.position.x-s.x,this.position.z-s.z)t!==n&&e.mutilation.isPartGone(t)),d=[],f=new B;for(let e of HH[n]){let t=bO(c,e);if(t===null||!t.visible)continue;let r=t=>_O(n,e,t)&&!u.some(n=>_O(n,e,t)),i=t.geometry.getAttribute(`position`),a=t.geometry.getIndex(),o=0,s=0,p=new Uint8Array(i.count);if(a===null)p.fill(1);else for(let e=0;e0&&d.push(this.bake(c,e,t,l,this.turn,o===s?void 0:r))}return d.length>0&&this.effects.flingPart(KH(t,n),d,l,this.turn,i,r,{...a,part:n})}};function KH(e,t){return`${e}:${t}`}var qH=96,JH=4,YH=2.5,XH=.45,ZH=.032,QH=e=>()=>(e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296);function $H(e){let t=document.createElement(`canvas`);t.width=qH,t.height=qH;let n=t.getContext(`2d`);if(n===null)return t;let r=QH(e),i=qH/2,a=4+Math.floor(r()*3);for(let e=0;e.05)||!Number.isFinite(e)||!Number.isFinite(t))return;let i=QH((Number.isSafeInteger(r)?r:0)*40503+11),a=Math.min(24,Math.max(1,Math.round(n*12))),o=.7+.3*Math.min(3,n);for(let r=0;r=1.5?1.8:1),l=YH+i()*2.5;this.drops.push({x:Math.min(1,Math.max(0,a?i():e+(i()+i()-1)*s*1.6)),y:Math.min(1,Math.max(0,a?i():t+(i()+i()-1)*s)),radius:c,alpha:.6+i()*.35,life:l,maxLife:l,run:c>=ZH?.02+i()*.04:0,ran:0,sprite:Math.floor(i()*JH),turn:i()*Math.PI*2})}this.drops.length>96&&this.drops.splice(0,this.drops.length-96)}update(e){let t=Number.isFinite(e)?Math.max(0,e):0;for(let e=this.drops.length-1;e>=0;--e){let n=this.drops[e];n.life-=t,n.life<=0?this.drops.splice(e,1):n.ran+=n.run*t*(n.life/n.maxLife)}}draw(e,t,n){if(this.drops.length!==0){this.sprites??=Array.from({length:JH},(e,t)=>$H(1374496523+t*7919)),e.save();for(let r of this.drops){let i=Math.min(1,r.life/(r.maxLife*XH)),a=r.radius*n,o=r.x*t,s=(r.y+r.ran)*n;if(e.globalAlpha=r.alpha*i,r.ran>0){let t=r.y*n,i=e.createLinearGradient(0,t,0,s);i.addColorStop(0,`rgba(88,0,6,0)`),i.addColorStop(1,`rgba(88,0,6,0.6)`),e.fillStyle=i,e.beginPath(),e.moveTo(o-a*.06,t),e.lineTo(o+a*.06,t),e.lineTo(o+a*.28,s),e.lineTo(o-a*.28,s),e.closePath(),e.fill()}e.save(),e.translate(o,s),e.rotate(r.turn),e.drawImage(this.sprites[r.sprite],-a,-a,a*2,a*2),e.restore()}e.restore()}}clear(){this.drops.length=0}},tU=.026,nU=.038,rU=22,iU=[[.55,.85],[.55,.1],[.4,-.12],[-.4,-.12],[-.55,.05],[-.55,.6],[-.32,.62],[-.3,.16],[.3,.16],[.32,.85]],aU=.03;function oU(){let e=[],t=[],n=iU.length,r=new B,i=new B,a=new B;for(let t=0;t<=rU;t+=1){let n=t/rU*2-1;r.set(n*tU,0,nU*(1-n*n)-nU*.5),i.set(tU,0,-2*nU*n).normalize(),a.set(i.z,0,-i.x),a.dot(r.clone().setY(0).add(new B(0,0,nU*.5)))<0&&a.negate();for(let[t,n]of iU)e.push(r.x+a.x*t*.01,n*.01,r.z+a.z*t*.01)}for(let e=0;e=50:e===`hit`&&t>=65:!1}var cU=9.81,lU=.32,uU=4.5,dU=.04,fU=3;function pU(){return{out:!1,moving:!1,sliding:!1,x:0,y:-50,z:0,vx:0,vy:0,vz:0,wx:0,wy:0,wz:0,bounces:0,age:0,restYaw:0}}function mU(e,t,n,r){if(!e.out||!e.moving)return!1;e.age+=n;let i=r+.006;if(!e.sliding)e.vy-=cU*n,e.x+=e.vx*n,e.y+=e.vy*n,e.z+=e.vz*n,yU(t,e.wx*n,e.wy*n,e.wz*n),e.y<=i&&(e.y=i,e.bounces.6?(e.bounces+=1,e.vy=-e.vy*lU,e.vx*=.72,e.vz*=.72,e.wx*=.55,e.wy*=.7,e.wz*=.55):(e.vy=0,e.sliding=!0));else{let r=Math.hypot(e.vx,e.vz),a=Math.max(0,r-uU*n);a<=dU?(e.vx=0,e.vz=0):(e.vx*=a/r,e.vz*=a/r),e.x+=e.vx*n,e.z+=e.vz*n,e.y=i,e.wy*=Math.exp(-4*n),e.restYaw+=e.wy*n,gU.setFromAxisAngle(hU,e.restYaw),t.slerp(gU,1-Math.exp(-12*n)),e.vx===0&&e.vz===0&&t.angleTo(gU)<.02&&(t.copy(gU),e.moving=!1)}return e.moving}var hU=new B(0,1,0),gU=new ms,_U=new ms,vU=new Js;function yU(e,t,n,r){_U.setFromEuler(vU.set(t,n,r)),e.multiply(_U).normalize()}var bU=[.84,.78,.62],xU=[.4,.04,.04],SU=[.3,.012,.018],CU=[.5,.045,.05],wU=[.86,.64,.16],TU=[.42,.19,.09],EU=[.92,.88,.74],DU=[.72,.36,.34],OU=[.82,.52,.46],kU=(e,t,n)=>{let r=Math.min(1,Math.max(0,n));return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r,e[2]+(t[2]-e[2])*r]},AU=e=>{let t=Math.min(1,Math.max(0,e));return t*t*(3-2*t)},jU=(e,t,n=0)=>.5+.25*Math.sin(e.x*t*1.31+n)*Math.sin(e.y*t*1.93+n*1.7)+.25*Math.sin(e.z*t*1.57+n*.6)*Math.sin(e.x*t*.83-n),MU=e=>()=>(e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296),NU=new B;function PU(e,t){e.deleteAttribute(`normal`),e.deleteAttribute(`uv`);let n=Kg(e,1e-5);e.dispose();let r=n.getAttribute(`position`);for(let e=0;enew Rs().compose(new B(e,t,n),new ms().setFromEuler(new Js(r,i,a)),new B(o,s,c));function RU(e,t,n){return FU(new jd(new ad(e.map(e=>new B(...e))),Math.max(4,e.length*3),t,7,!1),n)}var zU=new Map;function BU(e){let t=zU.get(e);return t===void 0&&(t=e(),zU.set(e,t)),t.clone()}function VU(){return IU([FU(PU(new Cd(1,3),e=>{e.normalize();let t=.45+.55*AU((e.x+1)/2),n=1-.34*Math.exp(-(((e.x+.2)/.14)**2))*AU(e.z+.6),r=1+.07*Math.sin(e.x*5.1+.7)*Math.sin(e.z*4.3+1.9);e.set(e.x*.1*r,(e.y>0?e.y:e.y*.4)*.04*t*r,e.z*.062*n*(.7+.3*t))}),e=>kU(kU([.2,.035,.022],[.34,.07,.04],jU(e,70)),SU,e.y<-.006?.5:0)),FU(PU(new Cd(1,2),e=>e.set(e.x*.03,e.y*.012,e.z*.014)),[.16,.24,.04],LU(.03,-.012,.03,0,.5,0)),RU([[.01,.004,-.03],[0,.012,-.055],[-.012,.014,-.075]],.007,e=>kU([.16,.05,.2],SU,AU((-e.z-.06)*60)))])}function HU(){return IU([FU(PU(new Cd(1,3),e=>{e.normalize();let t=1-.42*Math.exp(-((e.x/.4)**2))*AU(e.z);e.set(e.x*.058,e.y*.024,e.z*.033*t-e.x*e.x*.012)}),e=>kU([.3,.05,.075],[.19,.025,.05],jU(e,120,1.3))),RU([[0,0,.014],[.004,.002,.034],[.018,0,.058],[.02,-.002,.082]],.0048,e=>kU([.86,.72,.56],SU,AU((e.z-.066)*70))),RU([[-.006,.002,.014],[-.012,.004,.034],[-.03,.002,.046]],.0042,SU),FU(PU(new Cd(1,1),e=>e.set(e.x*.014,e.y*.009,e.z*.01)),wU,LU(0,.002,.02))])}function UU(){return IU([FU(PU(new Cd(1,3),e=>{e.normalize();let t=.55+.45*AU((1-e.z)/2+.1),n=1-.3*Math.exp(-(((e.z-.1-e.x*.3)/.1)**2)),r=1+.035*Math.sin(e.x*23)*Math.sin(e.y*19)*Math.sin(e.z*21);e.set(e.x*.062*t*n*r,(e.y>0?e.y:e.y*.55)*.036*t*n*r,e.z*.09*r)}),e=>kU(kU([.66,.34,.34],[.34,.16,.2],AU(jU(e,160,.4)*1.7-.5)),SU,AU((e.z-.05)*22)*.7)),FU(new qu(.011,.012,.045,9,5,!0),e=>Math.abs((e.y+.5)*110%2)<1?[.84,.74,.62]:[.6,.26,.24],LU(0,.006,.105,Math.PI/2-.2,0,0))])}function WU(){let e=new ad([[-.085,0,.012],[-.045,.004,-.02],[0,0,.018],[.04,.003,-.016],[.082,0,.014]].map(e=>new B(...e))),t=[],n=[],r=[],i=e.computeFrenetFrames(30,!1);for(let r=0;r<=30;r+=1){let a=r/30,o=e.getPointAt(a),s=Math.min(1,Math.sin(a*Math.PI)*5),c=.0175*(.82+.18*Math.abs(Math.sin(a*Math.PI*5.5)))*(.25+.75*s);for(let e=0;e<9;e+=1){let l=e/9*Math.PI*2,u=NU.copy(i.normals[r]).multiplyScalar(Math.cos(l)).addScaledVector(i.binormals[r],Math.sin(l));t.push(o.x+u.x*c,o.y+u.y*c,o.z+u.z*c);let d=1-.3*(1-Math.abs(Math.sin(a*Math.PI*5.5))),f=e===0?SU:kU(kU(DU,OU,.5+.5*Math.sin(a*23+e)),SU,s<1?.8:0);n.push(f[0]*d,f[1]*d,f[2]*d)}}for(let e=0;e<30;e+=1)for(let t=0;t<9;t+=1){let n=e*9+t,i=e*9+(t+1)%9;r.push(n,i,n+9,i,i+9,n+9)}let a=new hl;a.setAttribute(`position`,new rl(t,3)),a.setAttribute(`color`,new rl(n,3)),a.setIndex(r),a.computeVertexNormals();let o=a.toNonIndexed();return a.dispose(),IU([o,...[[-.03,-.004,-.03],[.012,-.004,.03],[.05,-.004,-.028]].map(([e,t,n])=>FU(PU(new Cd(1,1),e=>e.set(e.x*.016,e.y*.007,e.z*.011)),wU,LU(e,t,n,0,e*20,0)))])}function GU(){let e=[[.012,.008],[.004,.0105],[-.01,.0075],[-.013,-.004],[-.002,-.0095],[.01,-.0065]],t=[-1,-.72,-.3,.2,.62,1],n=[.02,.62,1,.9,.5,.02],r=[.004,-.002,0,.001,-.003,.005],i=[],a=[],o=(i,a)=>{let[o,s]=e[a%e.length];return[t[i]*.062,s*n[i],o*n[i]+r[i]]},s=(n,r)=>{let i=Math.abs(t[n]);return kU(r%e.length===3||r%e.length===4?kU(bU,xU,.75):bU,SU,AU((i-.6)*3.2))};for(let n=0;nkU(TU,CU,AU((-e.x-.006)*90));return IU([FU(PU(new Cd(1,3),e=>{e.normalize();let t=e.y>0?1-.75*Math.exp(-(((e.x-.1)/.5)**2+((e.z+.1)/.55)**2)):1;e.set(e.x*.019,e.y*.0055*t,e.z*.031*(1-.18*e.x))}),t=>kU(e(t),[.24,.08,.05],t.y<.003&&t.y>-.001?.5:0)),FU(new Ad(.024,.0048,7,18,Math.PI*1.25),TU,LU(-.001,.004,.004,-Math.PI/2,0,-Math.PI*.72,.78,1.18,1)),FU(PU(new Cd(1,2),e=>e.set(e.x*.0095,e.y*.0055,e.z*.0105)),e,LU(.002,.002,.031)),FU(PU(new Cd(1,1),e=>e.set(e.x*.005,e.y*.005,e.z*.007)),e,LU(-.011,.004,.006)),FU(PU(new Cd(1,1),e=>e.set(e.x*.006,e.y*.005,e.z*.022)),CU,LU(-.017,0,.002))])}var qU=12;function JU(){let e=e=>[Math.sin(e)*.046,Math.cos(e)*.056-.02],t=[],n=e=>kU(kU(bU,[.7,.6,.44],jU(e,200)),SU,AU((e.y-.003)*220)*.75),r=Math.PI*.62,i=[];for(let t=0;t<=22;t+=1){let[n,a]=e(-r+t/22*r*2);i.push(new B(n,0,a))}let a=new jd(new ad(i),44,.0085,8,!1);t.push(FU(PU(a,e=>e.setY(e.y*1.35)),n)),t.push(FU(PU(new Cd(1,2),e=>e.set(e.x*.016,e.y*.013,e.z*.011)),n,LU(0,-.003,.038)));for(let n=0;nkU(EU,[.7,.2,.14],AU((-e.y-5e-4)*400)),LU(a,.0125+(s?.0045:.003),o,0,-i,0))),t.push(FU(PU(new Cd(1,1),e=>e.set(e.x*.0058,e.y*.0045,e.z*.0058)),c?[.05,.004,.006]:[.5,.07,.08],LU(a,.0105,o)))}for(let n of[-1,1]){let[i,a]=e(n*r),o=PU(new Wu(.008,.05,.026,1,4,2),e=>{let t=e.y/.05+.5;e.z+=-.012*t+(t>.9?Math.sign(e.z)*.004:0),e.x*=1-.3*t});t.push(FU(o,e=>kU(bU,SU,AU((e.y-.012)*60)),LU(i,.02,a-.006,0,n*.25,n*-.12))),t.push(FU(PU(new Cd(1,1),e=>e.set(e.x*.009,e.y*.006,e.z*.014)),CU,LU(i,.047,a-.016)))}let o=IU(t);return o.translate(0,-.016,0),o.computeBoundingBox(),o.computeBoundingSphere(),o}function YU(){let e=(e,t,n)=>{let r=t/13*Math.PI*2,i=.55+.45*Math.abs(Math.sin(t*2.7+.9))+.12*Math.sin(t*5.3),a=e/3*i,o=Math.cos(r)*a*.062,s=Math.sin(r)*a*.044;return[o,.009*Math.sin(o*60+.4)*Math.cos(s*48)+.3*(o*o+s*s)/.062+n*.0028*(1-e/3*.7),s]},t=[],n=[],r=(e,r,i,a)=>{for(let o of[e,r,i])t.push(...o),n.push(...a(o))},i=()=>TU,a=e=>Math.sin(e[0]*310+1)*Math.sin(e[2]*270)>.45?wU:kU(CU,SU,.5+.5*Math.sin(e[0]*140+e[2]*90));for(let t=0;t<3;t+=1)for(let n=0;n<13;n+=1){let o=(n+1)%13;r(e(t,n,1),e(t+1,o,1),e(t+1,n,1),i),r(e(t,n,0),e(t+1,n,0),e(t+1,o,0),a),t>0&&(r(e(t,n,1),e(t,o,1),e(t+1,o,1),i),r(e(t,n,0),e(t+1,o,0),e(t,o,0),a))}for(let t=0;t<13;t+=1){let n=(t+1)%13;r(e(3,t,1),e(3,n,1),e(3,t,0),()=>CU),r(e(3,n,1),e(3,n,0),e(3,t,0),()=>CU)}let o=new hl;return o.setAttribute(`position`,new rl(t,3)),o.setAttribute(`color`,new rl(n,3)),o.computeVertexNormals(),IU([o])}function XU(){let e=MU(795558343),t=[];for(let n=0;n<9;n+=1){let r=e()*Math.PI*2,i=n===0?0:.012+e()*.02,a=n===0?.021:.009+e()*.009,o=e();t.push(FU(PU(new Cd(1,2),e=>e.set(e.x*a,e.y*a*.7,e.z*a)),kU(wU,[.92,.8,.36],o),LU(Math.cos(r)*i,(e()-.3)*.008,Math.sin(r)*i*.8)))}return t.push(FU(PU(new Cd(1,1),e=>e.set(e.x*.02,e.y*.005,e.z*.009)),CU,LU(.018,-.006,.01,0,.6,0))),IU(t)}function ZU(){let e=e=>kU(kU(bU,[.68,.58,.42],jU(e,260)),SU,AU(jU(e,90,2.2)*2.4-1.3)),t=FU(PU(new qu(.02,.02,.022,14,2),e=>{let t=1-.14*(1-(e.y/.011)**2);e.x*=t,e.z*=t*(e.z<0?.8:1)}),e,LU(0,0,.008)),n=FU(new qu(.0175,.0175,.005,12),e=>kU([.78,.5,.46],CU,jU(e,400)),LU(0,.0125,.008)),r=FU(new Ad(.0115,.0042,6,12),e,LU(0,0,-.016,Math.PI/2,0,0)),i=FU(PU(new Wu(.007,.011,.03,1,1,3),e=>{let t=.5-e.z/.03;e.x*=1-.55*t,e.y=e.y*(1-.4*t)-.008*t}),e,LU(0,0,-.04)),a=[-1,1].map(t=>FU(PU(new Wu(.024,.008,.008,3,1,1),e=>{let n=.5+t*e.x/.024;e.y*=1-.5*n,e.z=e.z*(1-.4*n)-.006*n}),e,LU(t*.027,0,-.012))),o=FU(new qu(.0048,.0048,.03,7),e=>kU([.88,.8,.6],SU,AU((Math.abs(e.y)-.009)*200)),LU(0,0,-.016));return IU([t,n,r,i,...a,o])}function QU(){return IU([FU(PU(new Wu(.075,.004,.022,9,1,3),e=>{let t=e.x/.075+.5;e.x+=.0375,e.z=e.z*(1-.75*t)*(1+.5*Math.sin(t*17))+.006*Math.sin(t*9),e.y+=.004*Math.sin(t*13)}),e=>kU(kU(CU,SU,jU(e,240)),wU,Math.sin(e.x*260)>.93?.8:0))])}var $U={position:new B(.012,.089,.004),direction:new B(.47,.88,-.12).normalize()};function eW(){let e=FU(PU(new Cd(1,4),e=>{e.normalize();let t=AU((1-e.y)/2),n=1-.62*t**2.4,r=1-.1*Math.exp(-(((e.x+.12)/.14)**2))*(e.z>-.2?1:.4);e.set(e.x*.05*n*r+.012*t,e.y>0?e.y*.038:e.y*.07,e.z*.04*n*r)}),e=>{let t=Math.exp(-(((e.x+.008+e.y*.3)/.006)**2)),n=Math.exp(-(((e.y-.032)/.006)**2));return kU(kU(kU([.42,.03,.035],[.26,.015,.025],jU(e,130)),wU,Math.max(t*.85,n*.7)*AU(jU(e,420,.7)*2)),[.12,.02,.1],t>.6&&Math.sin(e.y*300)>.2?.7:0)}),t=(e,t,n)=>FU(PU(new Cd(1,2),e=>{let t=1+.12*Math.sin(e.x*9)*Math.sin(e.z*8);e.set(e.x*n*t,e.y*n*.72,e.z*n*.9*t)}),e=>kU([.3,.02,.05],[.18,.012,.045],jU(e,200)),LU(e,.04,t)),n=(e,t)=>n=>kU(e,SU,AU((n.y-t)*120)),r=RU([[-.006,.03,.006],[-.004,.058,.008],[.004,.08,.006],[.012,.095,.004]],.0125,n([.82,.56,.44],.082)),i=[-1,0,1].map(e=>RU([[-.003+e*.004,.066,.008],[-.012+e*.012,.086,.012-e*.004],[-.016+e*.018,.1,.014-e*.006]],.0048,n([.78,.5,.4],.09))),a=RU([[.016,.03,.022],[.012,.052,.026],[-.006,.066,.03],[-.026,.07,.03]],.0105,e=>kU([.3,.3,.52],SU,AU((-e.x-.014)*110))),o=RU([[.03,.036,-.016],[.034,.058,-.018],[.036,.08,-.02]],.0095,n([.16,.14,.34],.068)),s=IU([e,t(.027,-.006,.024),t(-.024,-.004,.022),r,...i,a,o]);return s.translate(0,-.006,0),s.computeBoundingBox(),s.computeBoundingSphere(),s}var tW=2;function nW(e){let t=Math.min(14,Math.max(0,e));return tW*t-1.55*t*t/28}function rW(e){return Math.max(0,1-Math.max(0,e)/14)**.8}function iW(e){let t=e-Math.floor(e);return t<.16?AU(t/.16):1-AU((t-.16)/.3)}var aW=9.81,oW=.97,sW=.6,cW=10,lW=1.02,uW=.5,dW=.5,fW=2e-4,pW=.45,mW=.03,hW=.15,gW=class{capacity;radius;selfAvoiding;positions;previous;nodes=0;segment=0;pinned=!1;resting=!0;paidOut=0;payRate=0;still=0;constructor(e,t,n){this.capacity=e,this.radius=t,this.selfAvoiding=n,this.positions=new Float32Array(e*3),this.previous=new Float32Array(e*3)}get held(){return this.pinned?Math.max(0,this.nodes-1-Math.floor(this.paidOut)):-1}spill(e,t,n,r,i){this.nodes=Math.min(this.capacity,Math.max(2,Math.round(e)+1)),this.segment=t,this.pinned=!0,this.resting=!1,this.paidOut=1,this.payRate=r,this.still=0;for(let e=0;e.4)for(let e=0;ethis.segment?this.segment:s=a-1?this.still+e:0,this.still>=dW&&(this.resting=!0,s.set(o)),!0}drape(e,t,n,r=!1){let i=Math.hypot(n.x,n.z);if(i<.3)return;let a=this.positions;for(let o=e;opW||s<-.05)continue;let c=mW+hW*Math.min(1,Math.max(0,s)/.25),l=((a[e]-t.x)*n.x+(a[e+2]-t.z)*n.z)/i;if(l>=c+(r?1e-4:0))continue;let u=Math.max(0,c-l);if(a[e]=a[e]+n.x/i*u,a[e+2]=a[e+2]+n.z/i*u,!r)continue;let d=((a[e]-this.previous[e])*n.x+(a[e+2]-this.previous[e+2])*n.z)/i;this.previous[e]=this.previous[e]+n.x/i*d,this.previous[e+2]=this.previous[e+2]+n.z/i*d}}keepApart(e){let t=this.positions,n=this.radius*1.7;for(let r=e;r=n*n)continue;let c=Math.sqrt(s),l=Math.hypot(i,o)1e-10&&xW.copy(wW).normalize(),SW.addScaledVector(xW,-SW.dot(xW)),SW.lengthSq()<1e-8&&(SW.set(+(Math.abs(xW.x)<.9),0,Math.abs(xW.x)<.9?0:1),SW.addScaledVector(xW,-SW.dot(xW))),SW.normalize(),CW.crossVectors(xW,SW);let a=Math.min(e,n-1-e),c=this.radii[e]*(a===0?.08:a===1?.62:a===2?.9:1);for(let t=0;t0?t.fromBufferAttribute(n,0):t.set(0,1,0).applyQuaternion(e.mesh.quaternion),t.lengthSq()>1e-8?t.normalize():t.set(0,1,0)}var BG=e=>()=>(e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296),$=(e,t=0)=>Number.isFinite(e)?e:t,VG=()=>({alive:!1,x:0,y:-50,z:0,vx:0,vy:0,vz:0,rx:0,ry:0,rz:0,vrx:0,vry:0,vrz:0,scale:0,stretch:1,bounces:0,stained:!1,kind:`flesh`,resting:!1,born:0,owner:-1,fading:-1}),HG=e=>{for(let t of e)if(!t.alive)return!0;return!1},UG=new V(16054267),WG=.012,GG=.055,KG=90,qG=10,JG=.985,YG=new z(.097,.132),XG=.012,ZG={r:.82,g:.86,b:.9},QG=4,$G=(e,t)=>Math.trunc(e)*2+(t===`left`?0:1),eK=new B(1,0,0),tK=[`blood`,`bile`,`brain`,`urine`],nK=2400,rK={liver:{build:VU,share:.06,size:[.8,.5],stretch:[.9,.3],stain:.5},kidney:{build:HU,share:.06,size:[.9,.5],stretch:[.9,.25],stain:.3},lung:{build:UU,share:.06,size:[.75,.45],stretch:[.9,.3],stain:.45},gut:{build:WU,share:.18,size:[.8,.5],stretch:[.8,.5],stain:.4},bone:{build:GU,share:.24,size:[.7,.8],stretch:[.8,.6],stain:.14},vertebra:{build:ZU,share:.1,size:[.9,.3],stretch:[1,0],stain:.2},skin:{build:YU,share:.1,size:[.8,.8],stretch:[.7,.7],stain:.3},fat:{build:XU,share:.12,size:[.6,.7],stretch:[.8,.5],stain:.2},ear:{build:KU,share:.03,size:[1.3,.3],stretch:[1,0],stain:.14},jawbone:{build:JU,share:.016,size:[1.1,.15],stretch:[1,0],stain:.34}},iK=Object.keys(rK),aK=[`liver`,`kidney`,`lung`],oK=Object.fromEntries($e.map((e,t)=>[e,t])),sK=14,cK=3.5,lK=1100,uK=.12,dK=.45,fK=xG*Math.sqrt(Math.PI),pK=e=>R.clamp((e-.3)/.6,0,1),mK=e=>sK+326*e**2.2,hK=e=>mK(e)*(1-pK(e)*.88*(1-fK)),gK=16,_K=8,vK=.4,yK=24,bK=11,xK=.046,SK=[0,0,1,3,6],CK=50,wK=48,TK=.6,EK=1,DK=.06,OK=.075,kK=4,AK=24,jK=1.3,MK=new ms().setFromEuler(new Js(.95,0,0)),NK=60,PK=4,FK=5,IK=1.2,LK=1.5,RK=.5;function zK(e){if(typeof e==`number`)return{x:e<0?-1:1,z:0};let t=Math.hypot(e.x,e.z);return Number.isFinite(t)&&t>1e-6?{x:e.x/t,z:e.z/t}:{x:1,z:0}}var BK=new B(0,1,0),VK=new B(0,0,1),HK=e=>Number.isFinite(e)?R.clamp(e,0,dG):0,UK=new Set([`hit`,`counter_hit`,`block`,`perfect_block`,`guard_break`,`knockdown`,`bleed`]);function WK(e,t,n,r){let i=Math.abs(e)-r;if(i<=0)return{position:e,velocity:t};let a=Math.sign(e);return Math.abs(n)<=r?{position:a*r,velocity:t*-.42}:{position:e,velocity:-a*Math.max(-a*t,i*qW)}}function GK(e){if(e.kind===`bleed`)return`ooze`;if(e.kind===`knockdown`)return`impact`;let t=e.detail.split(`:`);if(t.at(-1)===`body`)return`body_burst`;let n=t.find(e=>[`jab`,`straight`,`hook`,`uppercut`].includes(e));return n===`hook`?`fan`:n===`uppercut`?`plume`:`jet`}function KK(e,t){e.set($(t.x),$(t.y),$(t.z),$(t.w,1)),e.lengthSq()<1e-6?e.identity():e.normalize()}function qK(){return new Ud({color:9063730,roughness:.58,metalness:.02,clearcoat:.25,clearcoatRoughness:.6})}function JK(e,t){let n=qK();n.map=t;let r=e?new X_(n,Yg,{core:A_,wash:!0,baked:!0}):new X_(n,Jg,{core:k_,lids:j_,baked:!0});if(!e)return{material:n,injury:r,look:new Lb(n,!0)};let i=n.onBeforeCompile;return n.onBeforeCompile=(e,t)=>{i.call(n,e,t),e.vertexShader=e.vertexShader.replace(`#include `,`#include +attribute vec3 bindPosition;`)},{material:n,injury:r,look:null}}var YK=0,XK=1,ZK=2,QK=3;function $K(e,t,n){return e===void 0||e===`forearm_left`||e===`forearm_right`?YK:e===`head`?ZK:e===`upper_body`?t?QK:XK:e===`torso`&&n?ZK:XK}function eq(e,t,n,r=0){let i=new Hd({map:e,color:t,roughness:n===void 0?.6:.38,metalness:.02,side:2});return n!==void 0&&(_b(i,!0,n).value=r),i}function tq(e,t,n){n.identity();let r=e.getAttribute(`position`),i=e.getAttribute(`bindPosition`),a=e.getIndex();if(i===void 0||i.count!==r.count)return n;let o=new Uint8Array(r.count);if(a===null)o.fill(1);else for(let e=0;e({active:!1,eventId:null,fluid:`blood`,life:0,seconds:1,rate:0,accumulator:0,position:new B,axis:new B(0,1,0)}));simulationRemainder=0;ambientSeed=1597463007;shake=0;lowTier=!1;bloodLevel=`full`;lens=new eU;camera=null;lensPoint=new B;debrisCursor=new Map;visceraMaterial;viscera=[];visceraByShape={};wounds=[];woundsOpen=0;woundShare=1;woundClock=0;parts=[];partsThrown=0;partBox=new Ic;partMiddle=new B;partVertex=new B;limbMap;limbMaterial;trunkMap;trunkMaterial;fleshSections;spines=[];spineMesh;spineStretch;shredGeometry;shredMesh;spineNeck=new B;guts=[];heartGeometry;heartMesh;heartRest;heartRadius;heart={active:!1,moving:!1,owner:-1,age:0,beats:0,vx:0,vy:0,vz:0,vrx:0,vry:0,vrz:0,bounces:0,settle:-1,settleFrom:new ms,settleTo:new ms,settleFromY:0,pool:0,trail:0};corpses=[];flyGeometry;flyMaterial;flyMesh;flies;constructor(e,t=1024,n=kW){this.scene=e,this.budget=n,this.dropletPositions=new Float32Array(n.droplets*3),this.dropletColors=new Float32Array(n.droplets*3),this.dropletBuffers={position:new el(this.dropletPositions,3),color:new el(this.dropletColors,3)},this.dropletGeometry=Lv(),this.dropletMaterial=new Hd({color:16777215,roughness:.3,metalness:.02}),this.dropletMesh=new pu(this.dropletGeometry,this.dropletMaterial,n.droplets),this.dropletMesh.instanceMatrix.setUsage(Do),this.dropletMesh.frustumCulled=!1,this.dropletMesh.castShadow=!1,e.add(this.dropletMesh);for(let e=0;eObject.assign(new H(e.geometry,e.material),{castShadow:e.castShadow}));if(e.push(Object.assign(new H(this.stumpGeometry,this.jawMaterial),{castShadow:this.stumps[0].mesh.castShadow})),this.bakedStandIns===null){let e=new Ms,t=[JK(!1,e),JK(!0,e)].flatMap(e=>[e.material,e.injury.variant(!1),e.injury.variant(!0)]),n=new Hd({color:1920728,roughness:.38,metalness:.03,map:e});_b(n,!0);let r=[eq(e,16777215),eq(null,16777215),eq(e,1920728,`gloves`),eq(e,1920728,`trunks`)],i=new pu(this.heartGeometry,this.visceraMaterial,1);i.setColorAt(0,this.gibColor.setHex(16777215)),i.castShadow=!0,this.bakedStandIns={map:e,materials:[...t,n,...r],instanced:[i,new pu(this.flyGeometry,this.flyMaterial,1)]}}for(let t of this.bakedStandIns.materials)e.push(Object.assign(new H(this.headGeometry,t),{castShadow:!0}));return e.push(Object.assign(new H(this.heartGeometry,this.visceraMaterial),{castShadow:!0}),...this.bakedStandIns.instanced),e}setCamera(e){this.camera=e}drawLens(e,t,n){this.lens.draw(e,t,n)}get lensDrops(){return this.lens.count}setBloodLevel(e){if(e===this.bloodLevel)return;let t=this.bloodLevel;this.bloodLevel=e,(e===`off`||t===`full`&&e===`reduced`)&&this.clearArcadeGore()}get shakeAmount(){return this.shake}get liveParticles(){return this.droplets.filter(e=>e.alive).length}get liveBloodParticles(){return this.droplets.filter(e=>e.alive&&e.blood).length}get liveMist(){return this.mists.filter(e=>e.alive).length}get canvasStains(){return this.canvasBlood.stains}useUploader(e){this.canvasBlood.useUploader(e)}setLowTier(e){this.canvasBlood.setLowTier(e),this.lowTier=e}get liveGibs(){return this.gibs.filter(e=>e.alive).length}get liveShards(){return this.shards.filter(e=>e.alive).length}debrisCount(e){let t=0;for(let n of this.gibs)n.alive&&n.kind===e&&(t+=1);for(let n of this.shards)n.alive&&n.kind===e&&(t+=1);for(let n of this.eyeballs)n.alive&&n.kind===e&&(t+=1);for(let n of this.viscera)for(let r of n.pieces)r.alive&&r.kind===e&&(t+=1);return t}get activeHeads(){return this.heads.filter(e=>e.active).length}headBurst(e){let t=this.stumps[Math.trunc(e)];return t!==void 0&&t.active&&t.mesh.material===this.jawMaterial}severedHeadPosition(e,t){let n=this.heads[Math.trunc(e)];return n===void 0||!n.active?!1:(t.copy(n.mesh.position),!0)}severedHeadFacing(e,t){let n=this.heads[Math.trunc(e)];return n===void 0||!n.active?!1:(t.set(0,0,1).applyQuaternion(n.mesh.quaternion),!0)}mouthpieceOut(e){return this.shields[Math.trunc(e)]?.out===!0}mouthpiecePosition(e,t){let n=this.shields[Math.trunc(e)];return n===void 0||!n.out?!1:(t.set(n.x,n.y,n.z),!0)}ejectMouthpiece(e,t,n,r,i,a,o=!1){if(e<0||e>=IW)return!1;let s=Math.trunc(e),c=this.shields[s],l=Number.isSafeInteger(i)?i:0;if(c.out&&!o||this.lastShieldEvent[s]===l)return!1;this.lastShieldEvent[s]=l;let u=BG(l*48271+s*7907+5),d=zK(r),f=.9+u()*.9,p=.9+u()*.9,m=(u()-.5)*1.1;Object.assign(c,pU(),{out:!0,moving:!0,x:$(t.x),y:$(t.y,1.45),z:$(t.z),vx:f*d.x-m*d.z,vy:p,vz:f*d.z+m*d.x,wx:(u()-.5)*26,wy:(u()-.5)*18,wz:(u()-.5)*26,restYaw:u()*Math.PI*2});let h=this.shieldMeshes[s];h.position.set(c.x,c.y,c.z),KK(h.quaternion,n),h.visible=!0,this.shieldMaterials[s].color.setHex(a).lerp(UG,.55);let g=this.bloodLevel===`full`;for(let e=0;e<(g?22:12);e+=1){let t=u()*Math.PI*2,n=g?e%3!=0:this.bloodLevel===`reduced`&&e%3==0;this.spawnDroplet(c.x+(u()-.5)*.03,c.y+(u()-.5)*.03,c.z+(u()-.5)*.03,c.vx*(.5+u()*.6)+Math.sin(t)*.4,c.vy*(.4+u()*.6),c.vz*.5+Math.cos(t)*.4,n?Bv(u()):ZG,.5+u()*.5,n)}return!0}gougeEye(e,t,n,r,i,a,o=!1){if(this.bloodLevel!==`full`||e<0||e>=IW)return;let s=Math.trunc(e),c=$G(s,a),l=this.eyes[c],u=Number.isSafeInteger(i)?i:0;if(l.active&&(o||l.eventId===u))return;l.active&&this.burstEye(s,a,u),l.active=!0,l.eventId=u,l.socket.set($(t.x),$(t.y,1.6),$(t.z)),l.facing.copy(n),l.hasSkull=!1,l.position.copy(l.socket).addScaledVector(n,WG*1.5),this.eyeDirection.copy(n).multiplyScalar(1.3);let d=zK(r);if(this.eyeDirection.x+=d.x*.5,this.eyeDirection.z+=d.z*.5,l.previous.copy(l.position),o||l.previous.addScaledVector(this.eyeDirection,-.016666666666666666),l.bleeding=o?0:qG,l.accumulator=0,this.eyeMeshes[c].visible=!0,this.nerveMeshes[c].visible=!0,this.writeEye(c),o)return;let f=BG(u*52711+s*3571+(a===`right`?977:0)+13);for(let e=0;e1e-8&&o.facing.copy(n).normalize(),r!==void 0&&i!==void 0&&(o.skull.set($(r.x),$(r.y,1.6),$(r.z)),KK(o.skullTurn,i),o.hasSkull=!0))}eyeOut(e,t){return t===void 0?this.eyes[$G(e,`left`)]?.active===!0||this.eyes[$G(e,`right`)]?.active===!0:this.eyes[$G(e,t)]?.active===!0}eyePosition(e,t,n){let r=this.eyes[$G(e,`left`)],i=this.eyes[$G(e,`right`)],a=n===`left`||n===void 0&&r?.active===!0?r:i;return a===void 0||!a.active?!1:(t.copy(a.position),!0)}updateEyes(e){for(let[t,n]of this.eyes.entries()){if(!n.active)continue;this.eyeDirection.copy(n.position).sub(n.previous).multiplyScalar(JG),n.previous.copy(n.position),n.position.add(this.eyeDirection),n.position.y-=JW*e*e,this.eyeDirection.copy(n.position).sub(n.socket);let r=this.eyeDirection.length();if(r>.055&&n.position.copy(n.socket).addScaledVector(this.eyeDirection,GG/r),n.hasSkull&&this.restOnFace(n)){n.previous.lerp(n.position,.6),this.eyeDirection.copy(n.position).sub(n.socket);let e=this.eyeDirection.length();e>.055&&n.position.copy(n.socket).addScaledVector(this.eyeDirection,GG/e)}if(n.position.y<0+WG&&(n.position.y=0+WG),this.bloodLevel===`full`&&n.bleeding>0)for(n.bleeding=Math.max(0,n.bleeding-e),n.accumulator+=e*this.forDevice(KG);n.accumulator>=1;){--n.accumulator;let e=.15+this.ambientRandom()*.5;this.spawnDroplet(n.socket.x,n.socket.y-.005,n.socket.z,n.facing.x*e+(this.ambientRandom()-.5)*.2,-.15-this.ambientRandom()*.4,n.facing.z*e+(this.ambientRandom()-.5)*.2,Bv(this.ambientRandom()),.9,!0)}this.writeEye(t)}}restOnFace(e){this.eyeTurn.copy(e.skullTurn).invert();let t=this.eyeDirection.copy(e.position).sub(e.skull).applyQuaternion(this.eyeTurn),n=this.eyeSocketLocal.copy(e.socket).sub(e.skull).applyQuaternion(this.eyeTurn).z+WG+XG;if(t.z>=n)return!1;let r=Math.hypot(t.x/YG.x,t.y/YG.y);return r>=1?!1:(n-t.z<=(1-r)*Math.min(YG.x,YG.y)||r<1e-6?t.z=n:(t.x/=r,t.y/=r),e.position.copy(e.skull).add(t.applyQuaternion(e.skullTurn)),!0)}writeEye(e){let t=this.eyes[e],n=this.eyeMeshes[e],r=this.nerveMeshes[e];n.position.copy(t.position),this.eyeDirection.copy(t.position).sub(t.socket);let i=this.eyeDirection.length();i>1e-5&&(this.eyeDirection.multiplyScalar(1/i),r.quaternion.setFromUnitVectors(BK,this.eyeDirection),this.eyeDirection.addScaledVector(t.facing,.9).normalize(),n.quaternion.setFromUnitVectors(VK,this.eyeDirection)),r.position.copy(t.socket),r.scale.set(1,Math.max(.001,i-WG*.8),1)}returnMouthpiece(e){let t=Math.trunc(e),n=this.shields[t];n!==void 0&&(Object.assign(n,pU()),this.shieldMeshes[t].visible=!1,this.lastShieldEvent[t]=null)}clearMouthpieces(){for(let[e,t]of this.shields.entries())Object.assign(t,pU()),this.shieldMeshes[e].visible=!1,this.lastShieldEvent[e]=null}updateShields(e){for(let[t,n]of this.shields.entries()){if(!n.out||!n.moving)continue;let r=this.shieldMeshes[t],i=n.age<.3&&!n.sliding,a=n.x,o=n.z;mU(n,r.quaternion,e,0);let s=fv-aU-KW,c=WK(n.x,n.vx,a,s),l=WK(n.z,n.vz,o,s);if(n.x=c.position,n.vx=c.velocity,n.z=l.position,n.vz=l.velocity,r.position.set(n.x,n.y,n.z),i&&this.ambientRandom()e.active).length}get activeStumps(){return[...this.stumps,...this.handStumps].filter(e=>e.active).length}spawnDroplet(e,t,n,r,i,a,o,s,c,l=c?.0035+this.ambientRandom()**3*.0125:.0025+this.ambientRandom()**2*.004,u=`blood`){let d=this.liveDropletsthis.droplets[e].maxLife-this.droplets[e].life;for(let n=0;n0&&t(e[i-1])pG&&e.pop()}}forDevice(e){return Math.round(e*this.budget.droplets*(this.lowTier?.5:1)/kW.droplets)}uploadDroplets(e,t,n){if(this.dropletMesh.count=this.liveDroplets,t<=e)return;this.dropletMesh.instanceMatrix.addUpdateRange(e*16,(t-e)*16),this.dropletMesh.instanceMatrix.needsUpdate=!0;let r=this.dropletMesh.instanceColor;n&&r!==null&&(r.addUpdateRange(e*3,(t-e)*3),r.needsUpdate=!0)}retireDroplet(e){this.oldest.length=0;let t=this.liveDroplets-1,n=this.droplets[e];if(n.alive=!1,this.liveDroplets=t,e!==t){let r=this.droplets[t];this.droplets[e]=r,this.droplets[t]=n,this.dropletPositions.copyWithin(e*3,t*3,t*3+3),this.dropletColors.copyWithin(e*3,t*3,t*3+3),this.dropletMesh.setColorAt(e,this.dropletColor.setRGB(r.r,r.g,r.b)),this.writeDropletMatrix(e,r)}this.dropletPositions[t*3+1]=-50,this.writeDropletMatrix(t,n)}sprayDroplet(e,t,n,r,i,a,o,s,c,l,u,d){this.spawnDroplet(t,n,r,i*e.x-o*e.z,a,i*e.z+o*e.x,s,c,l,u,d)}writeDropletMatrix(e,t){if(!t.alive){this.dropletScale.setScalar(0),this.dropletQuaternion.identity(),this.dropletMatrix.compose(this.dropletVelocity.set(0,-50,0),this.dropletQuaternion,this.dropletScale),this.dropletMesh.setMatrixAt(e,this.dropletMatrix);return}let n=Math.hypot(t.vx,t.vy,t.vz);n>1e-4?(this.dropletVelocity.set(t.vx/n,t.vy/n,t.vz/n),this.dropletQuaternion.setFromUnitVectors(BK,this.dropletVelocity)):this.dropletQuaternion.identity();let r=Math.min(1,t.life/(t.maxLife*.3))*this.dropletCloseness*(t.blood&&this.bloodLevel===`full`?sG:1),i=Rv(t.radius*r,n,this.dropletShape);this.dropletScale.set(i.width,i.length,i.width),this.dropletMatrix.compose(this.dropletVelocity.set(t.x,t.y,t.z),this.dropletQuaternion,this.dropletScale),this.dropletMesh.setMatrixAt(e,this.dropletMatrix)}spawnMist(e,t,n,r,i){let a=this.mistIndex%this.budget.mist;this.mistIndex+=1;let o=this.mists[a];o.alive=!0,o.x=$(e),o.y=$(t,1),o.z=$(n),o.maxLife=Math.max(.05,$(i,.5)),o.life=o.maxLife,o.scale=Math.max(.1,$(r,1)),this.mistPositions[a*3]=o.x,this.mistPositions[a*3+1]=o.y,this.mistPositions[a*3+2]=o.z,this.mistColors[a*4+3]=Math.min(1,o.scale),this.mistGeometry.attributes.position.needsUpdate=!0,this.mistGeometry.attributes.color.needsUpdate=!0}placeDecal(e,t,n,r,i,a,o){this.canvasBlood.stain($(e),$(t),Math.max(.01,$(n,.2))*.28,Math.max(.01,$(r,.15))*.28,$(i),R.clamp($(a,.4),0,.95),o)}splashLens(e,t,n,r,i){let a=this.camera;if(a===null||this.bloodLevel===`off`||!(r>0))return;let o=this.lensPoint.set($(e),$(t,1.5),$(n)),s=o.distanceTo(a.position);if(o.project(a),!(o.z<1)||Math.abs(o.x)>1.15||Math.abs(o.y)>1.15)return;let c=R.clamp((mG-s)/8.5,0,1);this.lens.splash((o.x+1)/2,(1-o.y)/2,c*r*(this.bloodLevel===`reduced`?.25:1),i)}ambientRandom(){return this.ambientSeed=Math.imul(this.ambientSeed^this.ambientSeed>>>15,1|this.ambientSeed),this.ambientSeed^=this.ambientSeed+Math.imul(this.ambientSeed^this.ambientSeed>>>7,61|this.ambientSeed),((this.ambientSeed^this.ambientSeed>>>14)>>>0)/4294967296}splatter(e,t,n,r=()=>this.ambientRandom(),i=12,a=nG){if(this.bloodLevel===`off`)return;let o=this.bloodLevel===`reduced`,s=o?Math.ceil(i/4):i,c=o?.35:rG;for(let i=0;i0?$(t.y):e.detail.endsWith(`:body`)?1.05:1.58,z:$(t.z)},f=e.kind===`bleed`,p=n||f?0:Math.round(s?(a?4:6)+Math.min(6,Math.max(0,e.amount)/40):(a?6:16)+Math.min(20,Math.max(0,e.amount)/20)),m={x:0,y:0,z:0,vx:0,vy:0,vz:0,life:0,radius:0,color:Bv(0)},h=e.kind===`hit`||e.kind===`counter_hit`,g=h?Math.max(0,e.blood-Math.floor(Math.max(0,e.amount)/3)):0,_=n||e.blood<=0||this.bloodLevel===`off`?0:f?this.bloodLevel===`reduced`?1:Math.min(12,3+Math.floor(Math.max(0,e.amount)/8)):this.bloodLevel===`reduced`?Math.min(24,Math.round(e.blood*(a?.12:.24))):this.forDevice(a?Math.round(Mv(e.blood,0)/2):o?Mv(e.blood,0)+cG:Mv(e.blood,h?e.amount:0));f||(this.shake=Math.min(.14,this.shake+(a?.008:Math.max(.012,e.amount/1500)))),o&&(this.shake=Math.min(.2,this.shake+.09));let v=o?1.2:h?R.clamp((e.amount-40)/60,0,1)*(.6+Math.min(100,e.blood)/150):0;!n&&!f&&e.blood>0&&this.splashLens(d.x,d.y,d.z,v,e.event_id);for(let e=0;e0&&t<=XW){let e=1-ZW*t;this.spawnDroplet(m.x,m.y,m.z,m.vx*e,m.vy*e,m.vz*e,m.color,m.life,!0,m.radius*(1-QW*t));continue}let n=t===0,r=(i()-.5)*Math.PI,a=n?2.2+i()*1.8:.9+i()*1.5,o=a,s=.5+i()*1.25,u=(i()-.5)*.5;if(c===`fan`)o=a*(.45+Math.cos(r)*.35),s=.55+i()*1.15,u=Math.sin(r)*a*.9;else if(c===`plume`)o=a*(.25+i()*.25),s=1.8+i()*2.2,u=(i()-.5)*a*.65;else if(c===`body_burst`)o=a*(.55+i()*.45),s=-.15+i()*1.05,u=Math.sin(r)*a*.75;else if(c===`ooze`)o=.08+i()*.22,s=-.3-i()*.55,u=(i()-.5)*.22;else if(c===`impact`)o=a*(.45+i()*.65),s=.9+i()*2.1,u=Math.sin(r)*a;else{let e=n?.12:.34;o=a*(.8+i()*.35),s=n?1.3+i()*1.6:.5+i()*1.25,u=(i()-.5)*a*e}let f=o*l.x-u*l.z,p=o*l.z+u*l.x,h=Bv(i()),g=d.x+(i()-.5)*.12,_=d.y+(i()-.5)*.14,v=d.z+(i()-.5)*.12,y=.65+i()*.85;n?(m.x=g,m.y=_,m.z=v,m.vx=f,m.vy=s,m.vz=p,m.color=h,m.life=y,m.radius=.008+i()*.008,this.spawnDroplet(g,_,v,f,s,p,h,y,!0,m.radius)):this.spawnDroplet(g,_,v,f,s,p,h,y,!0)}let y=s?o||e.kind===`counter_hit`||h&&(e.amount>=35||g>=iG):e.kind===`hit`&&e.amount>=70||o||e.kind===`counter_hit`||g>=16;if(!n&&e.blood>0&&this.bloodLevel!==`off`&&y){let t=s?this.forDevice(o?36:12+Math.min(24,Math.floor(g/2)+Math.floor(Math.max(0,e.amount-35)/6))):o?3:2,n=s?1:.35;for(let e=0;e0&&this.bloodLevel!==`off`){let t=o?1+Math.min(2,e.blood/55):.8+Math.min(1.2,g/30);this.splatter(d.x+(i()-.5)*.6,d.z+(i()-.5)*.6,s?t*1.3:t,i,x,o?tG:eG)}let S=e.amount>=70||e.kind===`counter_hit`&&e.amount>=Av,C=h&&(e.amount>=60||S&&g>=iG/4);if(s&&!n&&C&&!e.detail.endsWith(`:body`)){let t=Math.min(20,Math.max(3,Math.round((e.amount-10)/6)));for(let e=0;e0){e.sideLow=1/0,e.sideHigh=-1/0;for(let t=0;t=IW)return;let s=Math.trunc(e),c=Number.isSafeInteger(i)?i:0,l=this.heads[s];if(l.active||this.lastDecapitationEvent[s]===c)return;this.stopGush(s),this.applyBakedPart(l,o,a);let u=BG(c*104729+s*8191+23),d=zK(r);this.lastDecapitationEvent[s]=c,l.active=!0,l.moving=!0,l.eventId=c;let f=1.8+u()*1.1;l.vy=2.3+u()*1.1;let p=(u()-.5)*2.2;l.vx=f*d.x-p*d.z,l.vz=f*d.z+p*d.x,l.vrx=(u()-.5)*12,l.vry=(u()-.5)*12,l.vrz=(u()-.5)*12,l.bounces=0,l.trail=0,l.stained=!1,l.settle=-1,l.mesh.position.set($(t.x),$(t.y,1.55),$(t.z)),KK(l.mesh.quaternion,n),l.mesh.visible=!0;let m=this.stumps[s];m.mesh.material=this.stumpMaterial,m.active=!0,m.fountainLife=14,m.accumulator=0,m.seed=c|1,m.direction=d,m.mesh.position.copy(l.mesh.position),m.mesh.quaternion.copy(l.mesh.quaternion),m.mesh.visible=!0;for(let e=0;e=IW)return;let i=Math.trunc(e),a=Number.isSafeInteger(r)?r:0,o=this.stumps[i];if(o.active||this.lastBurstEvent[i]===a)return;this.lastBurstEvent[i]=a,this.stopGush(i);let s=BG(a*91813+i*6151+41),c=zK(n),l=$(t.x),u=$(t.y,1.6),d=$(t.z),f=(e,t,n,r,a)=>{for(let o=0;o=IW)return;let c=Math.trunc(e)*2+(t===`left`?0:1),l=Number.isSafeInteger(a)?a:0,u=this.hands[c];if(u.active||this.lastDismembermentEvent[c]===l)return;this.applyBakedPart(u,s,o);let d=BG(l*130363+c*12289+37),f=zK(i);this.lastDismembermentEvent[c]=l,u.active=!0,u.moving=!0,u.eventId=l;let p=1.3+d()*1.1;u.vy=1.5+d()*1.2;let m=(d()-.5)*1.8;u.vx=p*f.x-m*f.z,u.vz=p*f.z+m*f.x,u.vrx=(d()-.5)*16,u.vry=(d()-.5)*16,u.vrz=(d()-.5)*16,u.bounces=0,u.trail=0,u.stained=!1,u.mesh.position.set($(n.x),$(n.y,1.25),$(n.z)),KK(u.mesh.quaternion,r),u.mesh.visible=!0;let h=this.handStumps[c];h.active=!0,h.fountainLife=vG,h.accumulator=0,h.seed=l|1,h.direction=f,h.mesh.position.copy(u.mesh.position),h.mesh.quaternion.copy(u.mesh.quaternion),h.mesh.visible=!0;for(let t=0;t=IW)return;let o=Math.trunc(e),s=Number.isSafeInteger(i)?i:0,c=BG(s*69061+o*2741+29),l=zK(r),u=this.tornAxis.copy(n);u.lengthSq()>1e-8&&Number.isFinite(u.lengthSq())||u.set(0,1,0),u.normalize();let d=$(t.x),f=$(t.y,1.2),p=$(t.z);for(let e=0;e{for(let n=0;n=IW)return;let i=Math.trunc(e)*2+(t===`left`?0:1),a=this.handStumps[i];a.active&&(a.mesh.position.set($(n.x),$(n.y,1.2),$(n.z)),KK(a.mesh.quaternion,r))}anchorStump(e,t,n,r,i){if(this.bloodLevel!==`full`||e<0||e>=IW)return;let a=this.stumps[Math.trunc(e)];a.active&&(a.mesh.position.set($(t.x),$(t.y,1.5),$(t.z)),r===void 0||r.length<18?(a.mesh.geometry=this.stumpGeometry,KK(a.mesh.quaternion,n)):(Qv(a.flesh,r,a.mesh.position,this.stumpOutward.set(0,1,0).applyQuaternion(n),.01,i),a.mesh.geometry=a.flesh,a.mesh.quaternion.identity()))}restoreFighter(e){if(e<0||e>=IW)return;let t=Math.trunc(e),n=this.heads[t];n.active=!1,n.moving=!1,n.mesh.visible=!1,n.mesh.position.y=-50,this.applyBakedPart(n,void 0,9063730);let r=this.stumps[t];r.active=!1,r.fountainLife=0,r.accumulator=0,r.mesh.visible=!1,r.mesh.position.y=-50,r.mesh.material=this.stumpMaterial,this.clearGibs(t),this.stopGush(t);for(let e of[t*2,t*2+1]){let t=this.eyes[e];t.active=!1,t.bleeding=0,this.eyeMeshes[e].visible=!1,this.nerveMeshes[e].visible=!1}this.clearWounds(t),this.clearGuts(t),this.clearSpine(t),this.clearCorpse(t),this.heart.owner===t&&(this.heart.active=!1,this.heartMesh.visible=!1);for(let e of[t*2,t*2+1]){let t=this.hands[e];t.active=!1,t.moving=!1,t.mesh.visible=!1,t.mesh.position.y=-50,this.applyBakedPart(t,void 0,1920728);let n=this.handStumps[e];n.active=!1,n.fountainLife=0,n.accumulator=0,n.mesh.visible=!1,n.mesh.position.y=-50}}drip(e,t,n,r=0){let i=+(r===1);if(this.bloodLevel===`off`||n||t<=.05){this.stopDrip(i);return}let a=this.dripEmitters[i];a.position.set($(e.x),$(e.y,1.5),$(e.z)),a.rate=this.bloodLevel===`reduced`?Math.min(3,t*3):Math.min(60,t*40),a.active=!0}stopDrip(e){let t=this.dripEmitters[+(e===1)];t.active=!1,t.rate=0,t.accumulator=0}gush(e,t,n,r,i,a,o=`blood`){if(this.bloodLevel!==`full`||e<0||e>=this.gushes.length)return;let s=this.gushes[Math.trunc(e)],c=Number.isSafeInteger(a)?a:0;s.active&&s.eventId===c||(s.active=!0,s.eventId=c,s.fluid=o,s.seconds=Math.max(.1,$(r,1)),s.life=s.seconds,s.rate=Math.max(0,$(i)),s.accumulator=0,this.anchorGush(e,t,n))}anchorGush(e,t,n){let r=this.gushes[Math.trunc(e)];r!==void 0&&r.active&&(r.position.set($(t.x),$(t.y,1.4),$(t.z)),n.lengthSq()>1e-8&&Number.isFinite(n.lengthSq())&&r.axis.copy(n).normalize())}gushing(e){return this.gushes[Math.trunc(e)]?.active===!0}stopGush(e){let t=this.gushes[e];t!==void 0&&(t.active=!1,t.eventId=null)}updateGushes(e){for(let t of this.gushes){if(!t.active)continue;if(t.life-=e,t.life<=0||this.bloodLevel!==`full`){t.active=!1;continue}let n=t.life/t.seconds,r=(t.seconds-t.life)*bG%1,i=Math.exp(-(((r-.5)/jG)**2));if(t.accumulator+=e*this.forDevice(t.rate)*n*(MG+.7*i),!(t.accumulator<1))for(IG.set(Math.abs(t.axis.y)<.9?0:1,+(Math.abs(t.axis.y)<.9),0).cross(t.axis).normalize(),LG.crossVectors(t.axis,IG);t.accumulator>=1;){--t.accumulator;let e=Math.sqrt(this.ambientRandom())*PG,r=this.ambientRandom()*Math.PI*2,a=(NG+this.ambientRandom()*2)*(.5+.5*n)*(.7+.3*i);RG.copy(t.axis).multiplyScalar(Math.cos(e)).addScaledVector(IG,Math.sin(e)*Math.cos(r)).addScaledVector(LG,Math.sin(e)*Math.sin(r)).multiplyScalar(a),this.spawnDroplet(t.position.x+(this.ambientRandom()-.5)*.03,t.position.y+(this.ambientRandom()-.5)*.02,t.position.z+(this.ambientRandom()-.5)*.03,RG.x,RG.y,RG.z,Hv(t.fluid,this.ambientRandom()),1.2,!0,(.004+this.ambientRandom()**2*.01)*Vv[t.fluid].drop,t.fluid)}}}updateDripEmitters(e){for(let t of this.dripEmitters)if(t.active)for(t.accumulator+=e*t.rate;t.accumulator>=1;)--t.accumulator,this.spawnDroplet(t.position.x+(this.ambientRandom()-.5)*.14,t.position.y-.04,t.position.z+(this.ambientRandom()-.5)*.1,(this.ambientRandom()-.5)*.08,-.25-this.ambientRandom()*.4,(this.ambientRandom()-.5)*.08,Bv(this.ambientRandom()),1.1,!0)}spawnTeeth(e,t,n,r){if(this.bloodLevel===`off`)return;let i=this.bloodLevel===`reduced`?+(n>=3):Math.min(12,Math.max(1,Math.round(n)));if(i<=0)return;let a=BG((Number.isSafeInteger(r)?r:0)*7331+91),o=zK(t);for(let t=0;t>3):f.length>>2)}debrisSlot(e){let t=this.debrisCursor.get(e)??0,n=t%e.length;for(let r=0;r=0?n.scale*Math.max(0,n.fading)/gG:n.scale;this.gibScale.set(e*n.stretch,e,e/Math.sqrt(n.stretch))}this.gibMatrix.compose(this.gibPosition,this.gibQuaternion,this.gibScale),e.setMatrixAt(t,this.gibMatrix)}updateDebris(e,t,n,r){let i=!1;for(let[a,o]of e.entries()){if(!o.alive||o.resting&&o.fading<0)continue;if(i=!0,o.fading>=0){o.fading-=n,o.fading<=0&&(o.alive=!1),this.writeDebrisMatrix(t,a,o);continue}o.vy-=6.4*n,o.x+=o.vx*n,o.y+=o.vy*n,o.z+=o.vz*n,o.rx+=o.vrx*n,o.ry+=o.vry*n,o.rz+=o.vrz*n,this.confineGib(o);let e=0+(r===void 0?o.kind===`eye`?WG*PW:.015:r.low*o.scale);if(o.y<=e){if(o.y=e,!o.stained&&this.bloodLevel===`full`&&o.kind!==`tooth`&&o.kind!==`eye`&&(o.stained=!0,r===void 0?this.placeDecal(o.x,o.z,.24+o.scale*.16,.14+o.scale*.1,o.rz,.55,6425104):this.canvasBlood.stain(o.x,o.z,rK[r.shape].stain*o.scale,rK[r.shape].stain*o.scale*.7,o.ry,.6,6425104)),o.bounces.35)o.bounces+=1,o.vy=Math.abs(o.vy)*.3,o.vx*=.68,o.vz*=.68,o.vrx*=.7,o.vry*=.7,o.vrz*=.7;else{if(o.vx=0,o.vy=0,o.vz=0,o.vrx=o.vry=o.vrz=0,o.kind===`shard`&&(o.rx=Math.round(o.rx/Math.PI)*Math.PI),r!==void 0){let e=Math.round(o.rx/Math.PI),t=Math.round(o.rz/Math.PI);o.rx=e*Math.PI,o.rz=t*Math.PI,o.y=0+((e+t)%2==0?r.low:r.high)*o.scale}o.resting=!0}}this.writeDebrisMatrix(t,a,o)}i?t.instanceMatrix.needsUpdate=!0:r!==void 0&&(r.moving=!1)}confineGib(e){Math.abs(e.x)>3.05&&(e.x=Math.sign(e.x)*cv,e.vx*=-.45),Math.abs(e.z)>3.05&&(e.z=Math.sign(e.z)*cv,e.vz*=-.45)}updateDetachedParts(e,t){for(let n of e){if(n.active&&n.settle>=0&&n.settle<1){n.settle=Math.min(1,n.settle+t/GW);let e=n.settle*n.settle*(3-2*n.settle);n.mesh.quaternion.slerpQuaternions(n.settleFrom,n.settleTo,e),n.mesh.position.y=n.settleFromY+(n.settleToY-n.settleFromY)*e}if(!n.active||!n.moving)continue;let e=n.mesh.position.x,r=n.mesh.position.z;if(n.vy-=5.8*t,n.mesh.position.x+=n.vx*t,n.mesh.position.y+=n.vy*t,n.mesh.position.z+=n.vz*t,n.mesh.rotation.x+=n.vrx*t,n.mesh.rotation.y+=n.vry*t,n.mesh.rotation.z+=n.vrz*t,this.bloodLevel===`full`)for(n.trail+=t*this.forDevice(FW),n.trail>=1&&this.trailPoint.copy(n.cap.position).multiply(n.mesh.scale).applyQuaternion(n.mesh.quaternion).add(n.mesh.position);n.trail>=1;)--n.trail,this.spawnDroplet(this.trailPoint.x+(this.ambientRandom()-.5)*.03,this.trailPoint.y+(this.ambientRandom()-.5)*.03,this.trailPoint.z+(this.ambientRandom()-.5)*.03,n.vx*.35+(this.ambientRandom()-.5)*.9,n.vy*.35+(this.ambientRandom()-.5)*.9,n.vz*.35+(this.ambientRandom()-.5)*.9,Bv(this.ambientRandom()),.9,!0);let i=fv-n.radius-KW,a=WK(n.mesh.position.x,n.vx,e,i),o=WK(n.mesh.position.z,n.vz,r,i);if(n.mesh.position.x=a.position,n.mesh.position.z=o.position,n.vx=a.velocity,n.vz=o.velocity,n.mesh.position.y<=0+n.radius){if(n.mesh.position.y=0+n.radius,!n.stained&&this.bloodLevel===`full`){n.stained=!0;let e=n.radius===WW?1:.55;this.placeDecal(n.mesh.position.x,n.mesh.position.z,1.3*e,.9*e,n.mesh.rotation.z,.85,4392199)}n.bounces<2&&Math.abs(n.vy)>.42?(n.bounces+=1,n.vy=Math.abs(n.vy)*.32,n.vx*=.62,n.vz*=.62,n.vrx*=.65,n.vry*=.65,n.vrz*=.65):(n.moving=!1,n.vx=0,n.vy=0,n.vz=0,n.vrx=0,n.vry=0,n.vrz=0,n.look!==null&&this.rollOntoEar(n))}Number.isFinite(n.mesh.position.x)&&Number.isFinite(n.mesh.position.y)&&Number.isFinite(n.mesh.position.z)&&Number.isFinite(n.mesh.quaternion.x)&&Number.isFinite(n.mesh.quaternion.y)&&Number.isFinite(n.mesh.quaternion.z)&&Number.isFinite(n.mesh.quaternion.w)||(n.mesh.position.set(0,0+n.radius,0),n.mesh.quaternion.identity(),n.moving=!1,n.vx=0,n.vy=0,n.vz=0)}}rollOntoEar(e){let t=this.settleAxis.set(1,0,0).applyQuaternion(e.mesh.quaternion),n=t.y>=0?1:-1;e.settleFrom.copy(e.mesh.quaternion),e.settleTo.setFromUnitVectors(t,this.settleUp.set(0,n,0)).multiply(e.mesh.quaternion),e.settleFromY=e.mesh.position.y,e.settleToY=0+(n>0?-e.sideLow:e.sideHigh),e.settle=0}stumpRandom(e){let t=e.seed|0;return t=Math.imul(t^t>>>15,1|t),t^=t+Math.imul(t^t>>>7,61|t),e.seed=t|0,((t^t>>>14)>>>0)/4294967296}updateStumpFountains(e){if(this.bloodLevel===`full`)for(let t of[...this.stumps,...this.handStumps]){if(!t.active||t.fountainLife<=0)continue;t.fountainLife=Math.max(0,t.fountainLife-e);let n=Math.min(1,t.fountainLife/yG),r=t.fountainLife*bG%1,i=Math.exp(-(((r-.5)/xG)**2));if(t.accumulator+=e*this.forDevice(SG)*n*(CG+.88*i),t.accumulator<1)continue;let a=zG(t,FG);for(IG.set(Math.abs(a.y)<.9?0:1,+(Math.abs(a.y)<.9),0).cross(a).normalize(),LG.crossVectors(a,IG);t.accumulator>=1;){--t.accumulator;let e=this.stumpRandom(t),r=this.stumpRandom(t),o=this.stumpRandom(t),s=Math.sqrt(e)*EG,c=r*Math.PI*2;RG.copy(a).multiplyScalar(Math.cos(s)).addScaledVector(IG,Math.sin(s)*Math.cos(c)).addScaledVector(LG,Math.sin(s)*Math.sin(c)).multiplyScalar(R.lerp(wG,TG,o)*(.7+.3*i)*(.55+.45*n)),this.spawnDroplet(t.mesh.position.x+a.x*.015+(e-.5)*.03,t.mesh.position.y+a.y*.015,t.mesh.position.z+a.z*.015+(r-.5)*.03,RG.x,RG.y,RG.z,Bv(e),1.2+o*.6,!0,.004+o*o*.01)}}}update(e){for(this.canvasBlood.update(HK(e)),this.lens.update(HK(e)),this.simulationRemainder+=HK(e);this.simulationRemainder+1e-9>=fG;)this.simulationRemainder=Math.max(0,this.simulationRemainder-fG),this.simulate(fG);for(let e of this.guts)e.active&&e.sinceDrop<0&&e.rope.hold(e.anchor)&&(e.moved=!0),e.moved&&=(e.tube.write(e.rope),!1)}simulate(e){this.shake*=.02**e,this.updateDripEmitters(e),this.updateGushes(e),this.updateStumpFountains(e),this.updateDetachedParts(this.heads,e),this.updateDetachedParts(this.hands,e),this.updateShields(e),this.updateEyes(e),this.updateDebris(this.gibs,this.gibMesh,e),this.updateDebris(this.shards,this.shardMesh,e),this.updateDebris(this.eyeballs,this.eyeballMesh,e);for(let t of this.viscera)t.moving&&this.updateDebris(t.pieces,t.mesh,e,t);this.updateWounds(e),this.updateParts(e),this.updateSpines(e),this.updateGuts(e),this.updateHeart(e),this.updateCorpses(e);let t=this.liveDroplets,n=!1;for(let t=0;t0&&(this.dropletBuffers.position.needsUpdate=!0,this.dropletBuffers.color.needsUpdate=!0,this.uploadDroplets(0,this.liveDroplets,n));let r=!1;for(let[t,n]of this.mists.entries()){if(!n.alive)continue;if(r=!0,n.life-=e,n.life<=0){n.alive=!1,this.mistPositions[t*3+1]=-50;continue}let i=1-n.life/n.maxLife;this.mistPositions[t*3]=n.x,this.mistPositions[t*3+1]=n.y+i*.14,this.mistPositions[t*3+2]=n.z,this.mistColors[t*4+3]=Math.max(0,1-i)*Math.min(1,n.scale)}r&&(this.mistGeometry.attributes.position.needsUpdate=!0,this.mistGeometry.attributes.color.needsUpdate=!0)}clearDroplets(e){let t=this.liveDroplets;for(let t=0;t0))return;let s=BG((Number.isSafeInteger(i)?i:0)*15485863+e.charCodeAt(0)*131+e.length*977+7),c=zK(n),l=Math.max(.2,$(a,1)),u=$(t.x),d=$(t.y,1.2),f=$(t.z),p=Math.min(Math.round(r),this.debrisPlaces(e));for(let t=0;t0))return;let o=Number.isSafeInteger(i)?i:0,s=BG(o*86243+tK.indexOf(e)*3331+59),c=zK(n),l=Vv[e],u=Math.max(.2,$(a,1)),d=$(t.x),f=$(t.y,1.2),p=$(t.z),m=Math.min(nK,r);for(let t=this.forDevice(m);t>0;--t){let t=s()*Math.PI*2,n=(.5+s()*1.9)*u;this.sprayDroplet(c,d+(s()-.5)*.08,f+(s()-.5)*.08,p+(s()-.5)*.08,(.4+s()*1.9)*u+Math.sin(t)*n*.35,(.3+s()*2.3)*Math.sqrt(u),Math.cos(t)*n*.8,Hv(e,s()),.7+s(),!0,(.004+s()**2*.013)*l.drop,e)}if(e===`blood`){for(let e=Math.min(48,Math.round(m/25));e>0;--e)this.spawnMist(d+(s()-.5)*.4,f+(s()-.5)*.3,p+(s()-.5)*.4,.9+s()*1.5,.6+s()*.7);this.splatter(d+c.x*.3,p+c.z*.3,1+Math.min(2.4,m/500),s,Math.min(50,Math.round(m/20))),this.splashLens(d,f,p,Math.min(3,m/350),o)}else for(let e=Math.min(10,Math.round(m/30));e>0;--e){let t=.2+s()*.9*u;this.placeDecal(d+c.x*t+(s()-.5)*.5,p+c.z*t+(s()-.5)*.5,.5+s()*.9,.3+s()*.7,s()*Math.PI,.7*l.soak,e%2==0?l.splash:l.stain)}this.shake=Math.min(.22,this.shake+Math.min(.06,m/2e4))}puddle(e,t,n,r,i){if(this.bloodLevel!==`full`)return;let a=Vv[r];this.canvasBlood.pool($(e),$(t),Math.max(.02,$(n,.1)),.95*a.soak,i,a.pool)}shed(e,t){if(this.bloodLevel!==`full`)return;let n=BG(t*7919+11);this.spawnDroplet($(e.x)+(n()-.5)*.05,$(e.y,1),$(e.z)+(n()-.5)*.05,(n()-.5)*.2,-.1,(n()-.5)*.2,Hv(`blood`,n()),1.6,!0)}smear(e,t,n,r,i){this.bloodLevel===`full`&&this.canvasBlood.smear(e,t,n,r,Math.max(.005,$(i,.05)),.75,Vv.blood.splash)}footprint(e,t,n,r,i){this.bloodLevel===`full`&&i>0&&this.canvasBlood.print(e,t,n,r,Math.min(1,i)*.85,Vv.blood.splash)}setWound(e,t,n,r=`blood`){let i=this.woundAt(e,t);if(i===null)return;let a=this.bloodLevel===`full`?R.clamp($(n),0,1):0;a>0&&i.strength<=0&&(i.anchored=!1,i.accumulator=0,i.run=0,i.pool=0),i.strength=a,i.fluid=r,this.shareWounds()}anchorWound(e,t,n,r){let i=this.woundAt(e,t);i===null||i.strength<=0||(i.position.set($(n.x),$(n.y,1.2),$(n.z)),r.lengthSq()>1e-8&&Number.isFinite(r.lengthSq())&&i.axis.copy(r).normalize(),i.anchored=!0)}woundStrength(e,t){return this.woundAt(e,t)?.strength??0}clearWounds(e){for(let[t,n]of this.wounds.entries())(e===void 0||Math.floor(t/$e.length)===Math.trunc(e))&&(n.strength=0);this.shareWounds()}get openWounds(){return this.woundsOpen}woundAt(e,t){let n=Math.trunc(e);return n>=0&&nlK?lK/e:1}updateWounds(e){if(this.woundsOpen!==0&&this.bloodLevel===`full`){this.woundClock+=e;for(let t=0;t=uK){n.run-=uK;let e=.12+cK*r*r,i=l.y*e,a=(i+Math.sqrt(i*i+2*JW*Math.max(0,u.y-0)))/JW,o=u.x+l.x*e*a,s=u.z+l.z*e*a;n.pool<=0||Math.hypot(o-n.poolX,s-n.poolZ)>Math.max(.12,n.pool*1.2)?(n.poolX=o,n.poolZ=s,n.pool=.03):n.pool=Math.min(dK*(.25+.75*r),n.pool+.012);let c=Vv[n.fluid];this.canvasBlood.pool(n.poolX,n.poolZ,n.pool,.95*c.soak,t*7+Math.round(n.pool*80),c.pool)}if(n.accumulator<1)continue;IG.set(Math.abs(l.y)<.9?0:1,+(Math.abs(l.y)<.9),0).cross(l).normalize(),LG.crossVectors(l,IG);let d=R.lerp(.8,EG*.8,r),f=Vv[n.fluid].drop;for(;n.accumulator>=1;){--n.accumulator;let e=Math.sqrt(this.ambientRandom())*d,t=this.ambientRandom()*Math.PI*2;RG.copy(l).multiplyScalar(Math.cos(e)).addScaledVector(IG,Math.sin(e)*Math.cos(t)).addScaledVector(LG,Math.sin(e)*Math.sin(t)).multiplyScalar(c*(.75+this.ambientRandom()*.4)),this.spawnDroplet(u.x+l.x*.012+(this.ambientRandom()-.5)*.02,u.y+l.y*.012,u.z+l.z*.012+(this.ambientRandom()-.5)*.02,RG.x,RG.y,RG.z,Hv(n.fluid,this.ambientRandom()),1.3+r*.5,!0,(.004+this.ambientRandom()**2*.01)*f,n.fluid)}}}}burstEye(e,t,n){let r=Math.trunc(e),i=$G(r,t),a=this.eyes[i];if(r<0||r>=IW||a===void 0||!a.active)return!1;if(a.active=!1,a.bleeding=0,this.eyeMeshes[i].visible=!1,this.nerveMeshes[i].visible=!1,this.bloodLevel!==`full`)return!0;let o=Number.isSafeInteger(n)?n:0,s=BG(o*39916801+i*211+3),{x:c,y:l,z:u}=a.position;for(let e=this.forDevice(160);e>0;--e){let t=s()*Math.PI*2,n=s()*1.6-.6,r=Math.sqrt(Math.max(0,1-Math.min(1,n*n))),i=.6+s()*2.2,a=e%3!=0;this.spawnDroplet(c,l,u,Math.cos(t)*r*i,n*i+.5,Math.sin(t)*r*i,a?Bv(s()):ZG,.5+s()*.7,a,.003+s()**2*.008)}for(let e=0;e<4;e+=1)this.spawnGib(c,l,u,(s()-.5)*1.6,.4+s()*1.2,(s()-.5)*1.6,s,`flesh`,r);for(let e=0;e<8;e+=1)this.spawnMist(c+(s()-.5)*.12,l+(s()-.5)*.1,u+(s()-.5)*.12,.5+s()*.6,.4+s()*.4);return this.splashLens(c,l,u,.8,o),!0}skinOf(e,t){let n=JK(t.sites===Yg,e.map),r=e.look??vb;return n.look?.set(r),n.material.color.setHex(e.color),n.injury.copyFrom(t),n.injury.setBindToPart(tq(e.geometry,r,this.bindToPartMatrix)),t.material instanceof Ud&&(n.material.clearcoat=t.material.clearcoat),n.material}flingPart(e,t,n,r,i,a,o={}){this.removePart(e);let s=this.partBox.makeEmpty();for(let e of t){let t=e.geometry.getAttribute(`position`),n=e.geometry.getIndex(),r=n===null?t.count:n.count;for(let e=0;ep.reach)&&(p=e),(m===null||e.height>m.height)&&(m=e);for(let{fan:e,opening:t}of f)e.materialIndex=$K(o.part,t===p,t===m);c.cut.set(0,0,0),p!==null&&c.cut.copy(p.centre).sub(l),KK(c.group.quaternion,r),c.group.position.copy(l).applyQuaternion(c.group.quaternion),c.group.position.set(c.group.position.x+$(n.x),c.group.position.y+$(n.y,1.2),c.group.position.z+$(n.z)),c.group.visible=!0,c.key=e,c.born=this.partsThrown++;let h=0;for(let t=0;tt.key===e)}partPosition(e,t){let n=this.parts.find(t=>t.key===e);return n!==void 0&&(t.copy(n.group.position),!0)}removePart(e){for(let t of this.parts)if(t.key===e){t.key=null,t.moving=!1,t.settle=-1,t.group.visible=!1,t.group.clear();for(let e of t.geometries)e.dispose();for(let e of t.materials)e.dispose();t.geometries.length=0,t.materials.length=0}}get activeParts(){let e=0;for(let t of this.parts)t.key!==null&&(e+=1);return e}partResting(e){return this.parts.some(t=>t.key===e&&!t.moving&&(t.settle<0||t.settle>=1))}updateParts(e){let t=this.bloodLevel===`full`;for(let n=0;n=0&&r.settle<1){r.settle=Math.min(1,r.settle+e/GW);let t=r.settle*r.settle*(3-2*r.settle);i.quaternion.slerpQuaternions(r.settleFrom,r.settleTo,t),i.position.y=r.settleFromY+(r.settleToY-r.settleFromY)*t}if(!r.moving){if(!t||r.lain>=_K)continue;let a=Math.floor(r.lain/vK);for(r.lain+=e,this.trailPoint.copy(r.cut).applyQuaternion(i.quaternion).add(i.position),r.trail+=e*this.forDevice(yK);r.trail>=1;)--r.trail,this.spawnDroplet(this.trailPoint.x,Math.max(.02,this.trailPoint.y),this.trailPoint.z,(this.ambientRandom()-.5)*.5,.2+this.ambientRandom()*.5,(this.ambientRandom()-.5)*.5,Bv(this.ambientRandom()),.6,!0);if(Math.floor(r.lain/vK)===a)continue;let o=.1+r.radius*1.8;r.pool=Math.min(o,r.pool+o*vK*1.5/_K),this.canvasBlood.pool(this.trailPoint.x,this.trailPoint.z,r.pool,.95,n*13+a);continue}let a=i.position.x,o=i.position.z;if(r.vy-=5.8*e,i.position.x+=r.vx*e,i.position.y+=r.vy*e,i.position.z+=r.vz*e,i.rotation.x+=r.vrx*e,i.rotation.y+=r.vry*e,i.rotation.z+=r.vrz*e,t)for(r.trail+=e*this.forDevice(FW),r.trail>=1&&this.trailPoint.copy(r.cut).applyQuaternion(i.quaternion).add(i.position);r.trail>=1;)--r.trail,this.spawnDroplet(this.trailPoint.x+(this.ambientRandom()-.5)*.03,this.trailPoint.y+(this.ambientRandom()-.5)*.03,this.trailPoint.z+(this.ambientRandom()-.5)*.03,r.vx*.35+(this.ambientRandom()-.5)*.9,r.vy*.35+(this.ambientRandom()-.5)*.9,r.vz*.35+(this.ambientRandom()-.5)*.9,Bv(this.ambientRandom()),.9,!0);let s=Math.max(.5,fv-r.reach-KW),c=WK(i.position.x,r.vx,a,s),l=WK(i.position.z,r.vz,o,s);if(i.position.x=c.position,i.position.z=l.position,r.vx=c.velocity,r.vz=l.velocity,i.position.y<=0+r.radius){if(i.position.y=0+r.radius,!r.stained&&t){r.stained=!0;let e=Math.min(2.4,r.radius/WW+.3);this.placeDecal(i.position.x,i.position.z,1.3*e,.9*e,i.rotation.z,.85,4392199)}if(r.bounces<2&&Math.abs(r.vy)>.42)r.bounces+=1,r.vy=Math.abs(r.vy)*.32,r.vx*=.62,r.vz*=.62,r.vrx*=.65,r.vry*=.65,r.vrz*=.65;else{r.moving=!1,r.trail=0;let e=this.settleAxis.copy(r.thin).applyQuaternion(i.quaternion);r.settleFrom.copy(i.quaternion),r.settleTo.setFromUnitVectors(e,this.settleUp.set(0,e.y>=0?1:-1,0)).multiply(i.quaternion),r.settleFromY=i.position.y,r.settleToY=0+r.thickness,r.settle=0}}Number.isFinite(i.position.x+i.position.y+i.position.z+i.quaternion.x+i.quaternion.y+i.quaternion.z+i.quaternion.w)||(i.position.set(0,0+r.thickness,0),i.quaternion.identity(),r.moving=!1,r.settle=-1)}}attachSpine(e){let t=this.spines[Math.trunc(e)];t!==void 0&&this.bloodLevel===`full`&&(t.wanted=!0)}spineOut(e){return this.spines[Math.trunc(e)]?.out===!0}spineTail(e,t){let n=this.spines[Math.trunc(e)];return n===void 0||!n.out?!1:(n.rope.node(bK,t),!0)}updateSpines(e){for(let t=0;t=1;){--n.trail;let e=a.node(Math.floor(this.ambientRandom()*12),this.gibPosition);this.spawnDroplet(e.x,e.y,e.z,(this.ambientRandom()-.5)*.8,(this.ambientRandom()-.5)*.8,(this.ambientRandom()-.5)*.8,Bv(this.ambientRandom()),.8,!0)}}}}writeSpine(e){let t=this.spines[e].rope;for(let n=0;n1e-6?i.multiplyScalar(1/a):i.set(0,1,0)),r.add(this.partVertex).multiplyScalar(.5);let o=(.9+.5*Math.min(1,n/6))*(n>=9?.55+.25*(10-n):1);this.gibMatrix.compose(r,this.gibQuaternion,this.gibScale.set(o,this.spineStretch,o)),this.spineMesh.setMatrixAt(e*bK+n,this.gibMatrix)}this.spineMesh.instanceMatrix.needsUpdate=!0;for(let n=0;ne.out);this.spineMesh.visible=n,this.shredMesh.visible=n}spillGuts(e,t,n,r=18){let i=this.guts[Math.trunc(e)];if(i===void 0||e<0||this.bloodLevel!==`full`)return;let a=Number.isSafeInteger(n)?n:0;if(i.active&&i.eventId===a)return;let o=R.clamp(Math.round($(r,18)),2,wK),s=Math.max(2,Math.min(o,this.lowTier?Math.ceil(this.budget.gutLinks/2):this.budget.gutLinks));i.active=!0,i.eventId=a,i.sinceDrop=-1,i.drip=0,i.smeared.fill(NaN),i.anchor.set($(t.x),$(t.y,.9),$(t.z)),i.rope.spill(s,o*vW/s,i.anchor,s/TK,BG(a*28657+Math.trunc(e)*5+1)),i.tube.write(i.rope),i.mesh.visible=!0,i.moved=!1}anchorGuts(e,t,n){let r=this.guts[Math.trunc(e)];r===void 0||!r.active||r.sinceDrop>=0||(r.anchor.set($(t.x),$(t.y,.9),$(t.z)),n.lengthSq()>1e-8&&Number.isFinite(n.lengthSq())&&r.away.copy(n).normalize())}gutsOut(e){return this.guts[Math.trunc(e)]?.active===!0}dropGuts(e){let t=this.guts[Math.trunc(e)];t===void 0||!t.active||t.sinceDrop>=0||(t.sinceDrop=0,t.rope.release())}clearGuts(e){for(let[t,n]of this.guts.entries())(e===void 0||t===Math.trunc(e))&&(n.active=!1,n.eventId=null,n.moved=!1,n.rope.clear(),n.mesh.visible=!1)}gutsLength(e){let t=this.guts[Math.trunc(e)];return t===void 0||!t.active?0:t.rope.length}gutsPoint(e,t,n){let r=this.guts[Math.trunc(e)];return r===void 0||!r.active?!1:(r.rope.node(Math.round(R.clamp(t,0,1)*(r.rope.nodes-1)),n),!0)}updateGuts(e){for(let t=0;t=0&&n.sinceDrop=EK&&i)){let e=r.node(r.nodes>>1,this.gibPosition);this.canvasBlood.pool(e.x,e.z,.26,.95,t+3),this.puddle(e.x+.12,e.z+.05,.11,`bile`,t+5)}if(r.step(e,n.anchor,0,Math.max(2.4383999999999997,Math.abs(n.anchor.x),Math.abs(n.anchor.z)),n.away)&&(n.moved=!0,i)){for(let e=0;e0+.024*1.5){n.smeared[e*2]=NaN;continue}let i=n.smeared[e*2],a=n.smeared[e*2+1],o=Math.hypot(t.x-i,t.z-a);o=0))for(n.drip+=e*this.forDevice(AK);n.drip>=1;){--n.drip;let e=r.node(Math.floor(this.ambientRandom()*r.nodes),this.gibPosition),t=this.ambientRandom()<.8?`blood`:`bile`;this.spawnDroplet(e.x,e.y-_W,e.z,(this.ambientRandom()-.5)*.3,-.1,(this.ambientRandom()-.5)*.3,Hv(t,this.ambientRandom()),.9,!0,.004+this.ambientRandom()*.005,t)}}}}ejectHeart(e,t,n,r=-1){if(this.bloodLevel!==`full`)return;let i=this.heart,a=BG((Number.isSafeInteger(n)?n:0)*611953+19),o=zK(t),s=2+a()*1.2,c=(a()-.5)*1.2;i.active=!0,i.moving=!0,i.owner=Math.trunc(r),i.age=0,i.beats=0,i.bounces=0,i.settle=-1,i.pool=0,i.trail=0,i.vx=s*o.x-c*o.z,i.vy=1.8+a()*1.2,i.vz=s*o.z+c*o.x,i.vrx=(a()-.5)*14,i.vry=(a()-.5)*14,i.vrz=(a()-.5)*14,i.settleTo.setFromAxisAngle(BK,a()*Math.PI*2).multiply(MK),this.heartMesh.position.set($(e.x),$(e.y,1.2),$(e.z)),this.heartMesh.quaternion.identity(),this.heartMesh.scale.setScalar(jK),this.heartMesh.visible=!0}get heartOut(){return this.heart.active}get heartBeating(){return this.heart.active&&this.heart.age<14}heartPosition(e){return this.heart.active?(e.copy(this.heartMesh.position),!0):!1}updateHeart(e){let t=this.heart;if(!t.active)return;let n=this.heartMesh,r=this.bloodLevel===`full`;if(t.moving){let i=n.position.x,a=n.position.z;t.vy-=6.4*e,n.position.x+=t.vx*e,n.position.y+=t.vy*e,n.position.z+=t.vz*e,n.rotation.x+=t.vrx*e,n.rotation.y+=t.vry*e,n.rotation.z+=t.vrz*e;let o=fv-this.heartRadius-KW,s=WK(n.position.x,t.vx,i,o),c=WK(n.position.z,t.vz,a,o);if(n.position.x=s.position,n.position.z=c.position,t.vx=s.velocity,t.vz=c.velocity,r)for(t.trail+=e*this.forDevice(FW/2);t.trail>=1;)--t.trail,this.spawnDroplet(n.position.x,n.position.y,n.position.z,t.vx*.3+(this.ambientRandom()-.5)*.8,t.vy*.3+(this.ambientRandom()-.5)*.8,t.vz*.3+(this.ambientRandom()-.5)*.8,Bv(this.ambientRandom()),.8,!0);n.position.y<=0+this.heartRadius&&(n.position.y=0+this.heartRadius,t.bounces===0&&r&&this.placeDecal(n.position.x,n.position.z,.9,.7,n.rotation.z,.8,4392199),t.bounces<2&&Math.abs(t.vy)>.4?(t.bounces+=1,t.vy=Math.abs(t.vy)*.3,t.vx*=.6,t.vz*=.6,t.vrx*=.6,t.vry*=.6,t.vrz*=.6):(t.moving=!1,t.settle=0,t.settleFrom.copy(n.quaternion),t.settleFromY=n.position.y)),Number.isFinite(n.position.x+n.position.y+n.position.z)||(n.position.set(0,0+this.heartRest,0),n.quaternion.copy(t.settleTo),t.moving=!1,t.settle=1)}else if(t.settle<1){t.settle=Math.min(1,t.settle+e/GW);let r=t.settle*t.settle*(3-2*t.settle);n.quaternion.slerpQuaternions(t.settleFrom,t.settleTo,r),n.position.y=t.settleFromY+(0+this.heartRest-t.settleFromY)*r}if(t.age>=14)return;t.age+=e;let i=rW(t.age),a=nW(t.age),o=iW(a)*(.35+.65*i);if(n.scale.set(jK*(1-.17*o),jK*(1+.08*o),jK*(1-.17*o)),Math.floor(a)<=t.beats||(t.beats=Math.floor(a),!r))return;let s=this.trailPoint.copy($U.position).multiply(n.scale).applyQuaternion(n.quaternion).add(n.position),c=FG.copy($U.direction).applyQuaternion(n.quaternion);IG.set(Math.abs(c.y)<.9?0:1,+(Math.abs(c.y)<.9),0).cross(c).normalize(),LG.crossVectors(c,IG);for(let e=this.forDevice(Math.round(8+NK*i));e>0;--e){let e=Math.sqrt(this.ambientRandom())*.2,t=this.ambientRandom()*Math.PI*2;RG.copy(c).multiplyScalar(Math.cos(e)).addScaledVector(IG,Math.sin(e)*Math.cos(t)).addScaledVector(LG,Math.sin(e)*Math.sin(t)).multiplyScalar((.7+2.9*i)*(.5+.55*this.ambientRandom())),this.spawnDroplet(s.x,s.y,s.z,RG.x,RG.y,RG.z,Bv(this.ambientRandom()),1.1,!0,.004+this.ambientRandom()**2*.011)}t.moving||(t.pool=Math.min(.3,t.pool+.022),this.canvasBlood.pool(n.position.x,n.position.z,t.pool,.95,t.beats))}setCorpse(e,t){let n=Math.trunc(e),r=this.corpses[n];r!==void 0&&(t===null||this.bloodLevel!==`full`?this.clearCorpse(n):(r.active||(r.active=!0,r.age=0,r.puddle=0),r.position.set($(t.x),Math.max(0,$(t.y,0)),$(t.z))))}fliesOver(e){let t=this.corpses[Math.trunc(e)];return t===void 0||!t.active?0:this.fliesArrived(t.age)}fliesArrived(e){let t=this.lowTier?this.budget.flies>>1:this.budget.flies;return Math.floor(R.clamp((e-PK)/FK,0,1)*t)}updateCorpses(e){for(let t=0;t=n.puddle+.04&&(n.puddle=r,this.puddle(n.position.x,n.position.z,r,`urine`,t*11+Math.round(r*25)));let i=this.fliesArrived(n.age);if(i===0)continue;let a=this.budget.flies,o=FK/(this.lowTier?a>>1:a);for(let e=0;e=i)this.gibMatrix.makeScale(0,0,0).setPosition(0,-50,0);else{let t=Math.min(1,(n.age-PK-e*o)/IK),i=OW(this.flies,r,n.age,this.gibPosition),a=1+(1-t)*2.5;this.gibMatrix.makeTranslation(n.position.x+i.x*a,Math.max(.03,n.position.y+i.y+(1-t)*(1-t)*1.6),n.position.z+i.z*a)}this.flyMesh.setMatrixAt(r,this.gibMatrix)}this.flyMesh.visible=!0,this.flyMesh.instanceMatrix.needsUpdate=!0}}clearCorpse(e){let t=this.corpses[e];if(t.active){t.active=!1,this.gibMatrix.makeScale(0,0,0).setPosition(0,-50,0);for(let t=0;te.active)}}dispose(){this.scene.remove(this.dropletMesh),this.scene.remove(this.mistPoints),this.scene.remove(this.gibMesh),this.scene.remove(this.shardMesh),this.scene.remove(this.eyeballMesh);for(let e of this.viscera)this.scene.remove(e.mesh),e.mesh.dispose(),e.geometry.dispose();this.visceraMaterial.dispose();for(let e of this.parts)e.key!==null&&this.removePart(e.key),this.scene.remove(e.group);this.limbMaterial.dispose(),this.limbMap.dispose(),this.trunkMaterial.dispose(),this.trunkMap.dispose(),this.scene.remove(this.spineMesh,this.shredMesh,this.heartMesh,this.flyMesh),this.spineMesh.dispose(),this.shredMesh.dispose(),this.shredGeometry.dispose();for(let e of this.guts)this.scene.remove(e.mesh),e.tube.dispose();this.heartGeometry.dispose(),this.flyMesh.dispose(),this.flyGeometry.dispose(),this.flyMaterial.dispose(),this.dropletMesh.dispose(),this.dropletGeometry.dispose(),this.dropletMaterial.dispose(),this.canvasBlood.dispose();for(let e of[...this.heads,...this.hands])e.baked?.dispose(),e.bakedFlesh?.dispose();for(let e of[...this.stumps,...this.handStumps])e.flesh.dispose();this.mistGeometry.dispose(),this.mistMaterial.dispose(),this.mistMap.dispose(),this.gibMesh.dispose(),this.gibGeometry.dispose(),this.gibMaterial.dispose(),this.shardMesh.dispose(),this.eyeballMesh.dispose(),this.shardGeometry.dispose(),this.shardMaterial.dispose(),this.jawMaterial.dispose(),this.jawMap.dispose(),this.headGeometry.dispose();for(let e of this.headMaterials)e.dispose();this.handGeometry.dispose();for(let e of this.handMaterials)e.dispose();this.stumpGeometry.dispose(),this.wristStumpGeometry.dispose(),this.shieldGeometry.dispose();for(let e of this.shieldMaterials)e.dispose();for(let e of this.shieldMeshes)this.scene.remove(e);this.eyeGeometry.dispose(),this.eyeMap.dispose(),this.eyeMaterial.dispose(),this.nerveGeometry.dispose(),this.nerveMaterial.dispose();for(let e of[...this.eyeMeshes,...this.nerveMeshes])this.scene.remove(e);if(this.stumpMaterial.dispose(),this.stumpMap.dispose(),this.wristMaterial.dispose(),this.wristMap.dispose(),this.bakedStandIns!==null){this.bakedStandIns.map.dispose();for(let e of this.bakedStandIns.materials)e.dispose();for(let e of this.bakedStandIns.instanced)e.dispose();this.bakedStandIns=null}for(let e of this.heads)this.scene.remove(e.mesh);for(let e of this.hands)this.scene.remove(e.mesh);for(let e of[...this.stumps,...this.handStumps])this.scene.remove(e.mesh)}},iq={maximum:1,minimum:.55,slowMs:24,fastMs:17.5,windowMs:1e3,step:.15},aq=10,oq=10,sq=160,cq=3,lq=3,uq=class{options;scale;elapsed=0;frames=0;fastWindows=0;holdWindows=0;fruitlessAttempts=0;pending=null;raised=null;raiseHoldWindows=0;failedRaises=0;constructor(e=iq){this.options=e,this.scale=e.maximum}record(e){if(!(e>0)||e>1e3||(this.elapsed+=e,this.frames+=1,this.elapsede.before*.9)return this.scale=e.previous,this.holdWindows=Math.min(sq,aq*2**this.fruitlessAttempts),this.fruitlessAttempts+=1,!0;this.fruitlessAttempts=0}if(this.raised!==null){let e=this.raised;if(t>this.options.slowMs)return this.raised=null,this.scale=e.previous,this.fastWindows=0,this.raiseHoldWindows=Math.min(sq,oq*2**this.failedRaises),this.failedRaises+=1,!0;e.windows+=1,e.windows>=lq&&(this.raised=null,this.failedRaises=0)}if(t>this.options.slowMs){if(this.fastWindows=0,this.holdWindows>0)return--this.holdWindows,!1;if(this.scale<=this.options.minimum)return!1;let e=this.scale;return this.scale=Math.max(this.options.minimum,this.scale-this.options.step),this.pending={before:t,previous:e},!0}return t0?(--this.raiseHoldWindows,!1):this.fastWindows>=cq&&this.scale0&&e.poise===0)return 1;if(e.is_downed)return fq;let n=e.stunned_ticksthis.value?7:.9;return this.value+=(e-this.value)*(1-Math.exp(-n*Math.max(0,t))),e===0&&this.value<.003&&(this.value=0),this.value}},hq=.4,gq=.5,_q={before:24,after:24,speed:.5};function vq(e,t,n=30,r=hq,i=42,a=33){let o=t.tick-i,s=t.tick+a,c=e.filter(e=>e.tick>=o-1&&e.tick<=s+1),l=c.at(-1),u=l!==void 0&&l.result!==null&&l.tick({...l,tick:l.tick+t+1,events:[]}))]:c,d=u[0],f=u.at(-1);if(d===void 0||f===void 0||u.length<8||d.tick>t.tick-12||f.tick=1&&this.lastHeat<1&&!r&&(this.flare=1),this.lastHeat=t,this.flare=Math.max(0,this.flare-n/Cq);let a=this.mesh.material;if(a.opacity=Math.min(1,t*.8+this.flare*.6),this.mesh.visible=a.opacity>.01,!this.mesh.visible)return;this.mesh.position.copy(e),this.mesh.quaternion.copy(i.quaternion);let o=xq*(.55+.45*t)*(1+this.flare*Sq);this.mesh.scale.set(o,o,1)}get active(){return this.mesh.visible}standIn(){return new H(this.mesh.geometry,this.mesh.material)}reset(){this.flare=0,this.lastHeat=0,this.mesh.material.opacity=0,this.mesh.visible=!1}dispose(){this.mesh.geometry.dispose(),this.mesh.material.dispose()}},jq=class{group=new fc;flash;ring;age=1/0;constructor(e){this.flash=kq(e,new V(1,.86,.62)),this.flash.material.depthTest=!1,this.ring=new H(new Dd(.42,.5,40),new Al({color:bq,blending:2,depthWrite:!1,transparent:!0,side:2})),this.flash.renderOrder=6,this.ring.renderOrder=6,this.group.add(this.flash,this.ring),this.group.visible=!1}fire(e){this.age=0,this.group.position.copy(e)}update(e,t){this.age+=e;let n=this.age/wq,r=this.age/Eq;if(this.group.visible=r<1,!this.group.visible)return;this.group.quaternion.copy(t.quaternion),this.flash.visible=n<1;let i=Tq*(.35+.65*Math.sqrt(Math.min(1,n)));this.flash.scale.set(i,i,1),this.flash.material.opacity=(1-Math.min(1,n))**2;let a=Dq*(.15+.85*(1-(1-r)**3));this.ring.scale.set(a,a,a),this.ring.material.opacity=.9*(1-r)}get active(){return this.group.visible}standIns(){return[new H(this.flash.geometry,this.flash.material),new H(this.ring.geometry,this.ring.material)]}reset(){this.age=1/0,this.group.visible=!1}dispose(){this.flash.geometry.dispose(),this.flash.material.dispose(),this.ring.geometry.dispose(),this.ring.material.dispose()}},Mq=10,Nq=.055,Pq=3.2,Fq=1.4,Iq=class{color;mesh;geometry;positions=new Float32Array(60);colors=new Float32Array(80);history=[];last=new B;hasLast=!1;tangent=new B;side=new B;toCamera=new B;shade=new V;strength=0;heat=0;constructor(e){this.color=e,this.geometry=new hl,this.geometry.setAttribute(`position`,new el(this.positions,3).setUsage(Do)),this.geometry.setAttribute(`color`,new el(this.colors,4).setUsage(Do));let t=[];for(let e=0;e<9;e+=1){let n=e*2;t.push(n,n+1,n+2,n+1,n+3,n+2)}this.geometry.setIndex(t);let n=new Al({vertexColors:!0,transparent:!0,blending:2,depthWrite:!1,side:2});this.mesh=new H(this.geometry,n),this.mesh.frustumCulled=!1,this.mesh.visible=!1,this.mesh.renderOrder=4}update(e,t,n,r,i=0){if(t<=0)return;let a=this.hasLast?e.distanceTo(this.last)/t:0;this.last.copy(e),this.hasLast=!0,this.heat=i>this.heat?i:this.heat+(i-this.heat)*Math.min(1,t*6);let o=Pq*(1-.55*this.heat),s=r&&a>o?Math.min(1,(a-o)/4+this.heat*.4):0;this.strength+=(s-this.strength)*Math.min(1,t*18);let c=this.history.length>=Mq?this.history.shift():new B;if(c.copy(e),this.history.push(c),this.strength<.02||this.history.length<3){this.mesh.visible=!1;return}let l=this.history.length,u=this.shade.copy(this.color).lerp(bq,this.heat),d=Nq*(1+Fq*this.heat);for(let e=0;e3*t}function Bq(e,t,n){let r=e.detail.endsWith(`:head`)||e.detail.endsWith(`:body`);return t===void 0||![`hit`,`counter_hit`].includes(e.kind)||!r||n===null||n.winner_id===null||n.winner_id!==e.actor_id?!1:n.finish_method===`flash_ko`||(n.finish_method===`ko`||n.finish_method===`tko`)&&t.is_downed}function Vq(e){for(let t of e.passes)t.dispose?.();e.dispose()}function Hq(e,t,n,r,i){e.setRenderTarget(t.readBuffer);let a=e.compileAsync(n,r,i);return e.setRenderTarget(null),a}var Uq=-4e-4,Wq=10,Gq=16;function Kq(e,t,n){let r=t?Gq:n;e.autoUpdate=!t,e.intensity=+!t,e.bias=t?Wq:Uq,e.mapSize.x!==r&&(e.mapSize.set(r,r),e.map?.dispose(),e.map=null,e.needsUpdate=!0)}function qq(e,t){let n=t.fighters.findIndex(t=>t.player_id===e.target_id),r=t.fighters.findIndex(t=>t.player_id===e.actor_id),i=e.kind===`block`||e.kind===`perfect_block`;return{recipientIndex:i?r:n,puncherIndex:i?n:r}}function Jq(e,t,n){if(e===void 0||t===void 0)return;let r=n.x(t.x)-n.x(e.x),i=n.z(t.y)-n.z(e.y),a=Math.hypot(r,i);return Number.isFinite(a)&&a>.001?{x:r/a,z:i/a}:void 0}var Yq=e=>e.kind===`hit`||e.kind===`counter_hit`,Xq=e=>e.kind===`block`||e.kind===`perfect_block`,Zq=480,Qq=.56,$q=1.8,eJ=1.7,tJ=1.2,nJ=1.6,rJ=30,iJ=6.5,aJ=.4,oJ=600,sJ=2.8,cJ=.6,lJ=[[1,0],[-1,0],[.75,-.66],[-.75,-.66],[.75,.66],[-.75,.66]],uJ=.15,dJ=.6,fJ=2.3,pJ=.5,mJ=3.42,hJ=2.2,gJ=.9,_J=`body`,vJ=`collapse`,yJ=.55,bJ=.5,xJ=.5,SJ=.28,CJ=104,wJ=260,TJ=.05,EJ=2.95,DJ=2.4,OJ=1.6,kJ=.98,AJ=500,jJ={uniforms:{tDiffuse:{value:null},uTime:{value:0},uVignette:{value:.32},uGrain:{value:.035},uRocked:{value:0}},vertexShader:` varying vec2 vUv; void main() { vUv = uv; @@ -5536,8 +5536,8 @@ void main() { float grain = (hash(floor(vUv * vec2(960.0, 540.0))) - 0.5) * uGrain; color.rgb += grain * (0.15 + color.rgb); gl_FragColor = color; -}`},bJ=[{x:-102,y:-16},{x:102,y:-16}],xJ=[0,1],SJ=.5,CJ={x:0,z:-.2},wJ=0,TJ=200,EJ=1.3,DJ=.7,OJ=4.5;function kJ(e,t,n,r){let i=n.x-e,a=n.y-t,o=Math.hypot(i,a);return o<=Math.max(r,1e-6)?{x:n.x,y:n.y,arrived:!0}:{x:e+i/o*r,y:t+a/o*r,arrived:!1}}var AJ=16,jJ=.6,MJ={hit:.18,counter_hit:.3,guard_break:.25,knockdown:1,block:.04,perfect_block:.1,parry:.22,body_collapse:.45},NJ=new Set([`hit`,`counter_hit`,`block`,`perfect_block`,`guard_break`,`knockdown`,`parry`,`body_collapse`,`eye_shut`]),PJ=new Set([`parry`,`body_collapse`,`eye_shut`]),FJ=new Set([`hit`,`counter_hit`,`block`,`perfect_block`]),IJ=1.2,LJ=1500,RJ=.8,zJ=2.4,BJ=2.5,VJ=new Set([`referee_hit`,`referee_down`]),HJ=.05,UJ=.08,WJ={parry:{text:`PARRIED`,seconds:1},eye_shut:{text:`EYE SWOLLEN SHUT`,seconds:1.6}},GJ=new Set([`injury`,`vomit`,`finish_him`,`fatality`,`death`]),KJ=1.8,qJ=3,JJ=.6;function YJ(e,t){let n=ct(e,t);return n!==`severed`&&n!==`torn`}function XJ(e){return e.kind===`death`?e.detail===`brain`?`head_burst`:null:e.kind===`fatality`?e.detail===`head_burst`?`head_burst`:e.detail===`decapitation`||e.detail===`spine_rip`?`decapitation`:null:null}var ZJ=e=>e.kind===`knockdown`&&e.detail===`body`;function QJ(e,t){if(Lq(e)&&e.action_id!==null)return t.find(t=>Rq(t)&&t.action_id===e.action_id&&t.actor_id===e.target_id&&t.target_id===e.actor_id)}function $J(e,t){if(Rq(e)&&e.action_id!==null)return t.find(t=>Lq(t)&&t.action_id===e.action_id&&t.actor_id===e.target_id&&t.target_id===e.actor_id)}function eY(e,t){return e.map((n,r)=>{if(PJ.has(n.kind)||n.kind===`knockdown`&&n.detail===oJ)return{event:n,presentationEvent:n,presentImpact:!1,reactAmount:null};let{puncherIndex:i}=Fq(n,t),a=t.fighters[i],o=a?.action_key?.split(`:`)??[],s=o.length>=3?`${o[0]}:${o[2]}`:n.detail,c=$J(n,e);if(Rq(n))return{event:n,presentationEvent:{...n,detail:c?.detail||s,direction:c?.direction??a?.facing??n.direction,blood:c?.blood??n.blood},presentImpact:!0,reactAmount:n.amount};if(QJ(n,e)!==void 0)return{event:n,presentationEvent:n,presentImpact:!1,reactAmount:n.amount};if(n.kind===`knockdown`){let t=e.slice(0,r).reverse().find(e=>Lq(e)&&e.tick===n.tick&&e.actor_id===n.actor_id&&e.target_id===n.target_id);if(t!==void 0)return{event:n,presentationEvent:{...n,detail:t.detail,direction:t.direction,blood:t.blood,action_id:t.action_id},presentImpact:!0,reactAmount:QJ(t,e)===void 0?null:t.amount}}return{event:n,presentationEvent:n,presentImpact:!0,reactAmount:n.amount}})}function tY(e){let t=e?.trauma;if(t===void 0)return{side:1,lift:.08,lateral:.035,prop:`enswell`};switch(e?.corner_choice){case`cut`:return{side:t.right_cut>t.left_cut?-1:1,lift:.11,lateral:.04,prop:`enswell`};case`swelling`:return{side:t.right_eye>t.left_eye?-1:1,lift:.08,lateral:.035,prop:`enswell`};case`breath`:return{side:1,lift:-.015,lateral:0,prop:`bottle`};default:return{side:t.right_eye+t.right_cut>t.left_eye+t.left_cut?-1:1,lift:.08,lateral:.035,prop:`enswell`}}}function nY(e){return e?.split(`:`)[1]===`right`?1:-1}function rY(e){return e.result===null?e.tick-1:e.tick}var iY=50,aY=40,oY=40,sY=50,cY=[`jab`,`straight`,`hook`,`uppercut`];function lY(e,t,n,r){if(!Oq(e,t,n))return null;let i=r?.action_key?.split(`:`),a=e.detail.split(`:`).find(e=>cY.includes(e))??i?.[0],o=i?.[1]===`right`?`left`:`right`,s=e.amount;return e.detail.endsWith(`:head`)?n?.finish_method===`flash_ko`||e.kind===`counter_hit`&&s>=70?`head_burst`:a===`uppercut`&&s>=aY||a===`straight`&&s>=iY?`decapitation`:(a===`hook`||a===`jab`)&&s>=oY?`eye_${o}`:`jaw_dislocation`:a===`hook`?s>=sY?`dismember_${o}`:`shoulder_${o}`:`ribs_${o}`}function uY(){let e=document.createElement(`canvas`);e.width=128,e.height=128;let t=e.getContext(`2d`);if(t!==null){let e=t.createRadialGradient(64,64,8,64,64,62);e.addColorStop(0,`rgba(0,0,0,0.68)`),e.addColorStop(.6,`rgba(0,0,0,0.34)`),e.addColorStop(1,`rgba(0,0,0,0)`),t.fillStyle=e,t.fillRect(0,0,128,128)}return new ku(e)}var dY=.42,fY=.16;function pY(e){return .9*R.clamp(1-e/fY,0,1)}var mY=new B(0,.12,.02),hY=new B(0,1,0),gY=new WeakMap;function _Y(e){let t=gY.get(e);return t===void 0&&(t=Nv(e,IY),gY.set(e,t)),t}function vY(e){return e.y>Vg-1.4}var yY=new WeakMap;function bY(e){let t=yY.get(e);return t===void 0&&(t=Nv(e,vY),yY.set(e,t)),t}function xY(e,t,n){let r=e.bone(`head`);if(r===null)return null;e.root.updateMatrixWorld(!0);let i=e.headMesh,a=bY(i.geometry);if(a.length===0)return null;let o=t.length===a.length*3?t:new Float32Array(a.length*3);n.position.set(0,0,0);for(let[t,r]of a.entries())AY(e,r,n.scratch),n.scratch.toArray(o,t*3),n.position.add(n.scratch);return n.position.multiplyScalar(1/a.length),r.getWorldQuaternion(n.quaternion),n.across.set(1,0,0).applyQuaternion(n.quaternion),n.scratch.set(0,1,0).applyQuaternion(n.quaternion),n.quaternion.setFromUnitVectors(hY,n.scratch),o}function SY(e,t,n,r){let i=e?.currentRoot;return r.set(i?.x??n.x(t.x),0,i?.z??n.z(t.y))}function CY(e,t,n,r,i){let a=Math.hypot(e-n,t-r);return a>=i?{x:e,z:t}:a<1e-6?{x:n,z:r-i}:{x:n+(e-n)/a*i,z:r+(t-r)/a*i}}var wY=[0,1.05,-1.05,2.1,-2.1,Math.PI];function TY(e,t,n,r,i,a,o=[]){let s=n===null?0:Math.hypot(n.x,n.z),c=n!==null&&s>=.35?[Math.atan2(n.x,n.z)]:[];for(let e of wY)c.push(a+e);for(let n of c){let a=R.clamp(e+Math.sin(n)*r,-i,i),s=R.clamp(t+Math.cos(n)*r,-i,i),c=Math.hypot(a-e,s-t);if(!(c{let r=R.clamp(((n.x-e)*(a-e)+(n.z-t)*(s-t))/(c*c),.25,1);return Math.hypot(e+(a-e)*r-n.x,t+(s-t)*r-n.z)1e-9&&(s=Math.min(s,(Math.sign(n)*i-e)/n)),Math.abs(r)>1e-9&&(s=Math.min(s,(Math.sign(r)*a-t)/r));for(let i of[-1,1])for(let a of[-1,1]){let c=i*n+a*r;c>1e-9&&(s=Math.min(s,(o-i*e-a*t)/c))}return Math.max(0,s)}function DY(e,t,n,r,i,a,o,s=1/0){let c=Math.hypot(n-e,r-t);if(c>=i)return null;let l=c<1e-6?1:(n-e)/c,u=c<1e-6?0:(r-t)/c,d=i-c,f=EY(e,t,-l,-u,a,o,s),p=EY(n,r,l,u,a,o,s),m=Math.min(d/2,f),h=Math.min(d-m,p);m=Math.min(d-h,f);let g=R.clamp;return{ax:g(e-l*m,-a,a),ay:g(t-u*m,-o,o),bx:g(n+l*h,-a,a),by:g(r+u*h,-o,o)}}var OY=new WeakMap;function kY(e,t,n,r,i,a,o,s=null){let c=OY.get(e);if(c!==void 0&&c.width===t&&c.height===n)return c.top;let l=Oi(t,n,Ti(e,r,i,r.map(e=>a.total(e.player_id)),s),!0).y;return OY.set(e,{width:t,height:n,top:l}),l}function AY(e,t,n){let r=e.headMesh;return bb(n.fromBufferAttribute(r.geometry.getAttribute(`position`),t),e.look,n),r.applyBoneTransform(t,n).applyMatrix4(r.matrixWorld)}var jY=new Ss,MY=new Ss,NY=new Ds;function PY(e,t,n){let r=e.geometry;jY.fromBufferAttribute(r.getAttribute(`skinIndex`),t),MY.fromBufferAttribute(r.getAttribute(`skinWeight`),t),n.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);for(let t=0;t<4;t+=1){let r=MY.getComponent(t);if(r===0)continue;let i=jY.getComponent(t);NY.multiplyMatrices(e.skeleton.bones[i].matrixWorld,e.skeleton.boneInverses[i]);for(let e=0;e<16;e+=1)n.elements[e]+=NY.elements[e]*r}return n.premultiply(e.bindMatrixInverse).multiply(e.bindMatrix)}var FY=new B(-1,0,0);function IY(e){return e.y>zg-Bg*(e.z- -4)-.3}var LY={tick_rate:30,ring_half_width:500,ring_half_height:500};function RY(e,t,n,r,i,a,o=!0){let s=e.geometry,c=s.getAttribute(`position`),l=s.getIndex(),u=[],d=l!==null&&r===void 0?[]:null;if(l===null||d===null)for(let e=0;e=i.start+o))return{action:i.punchClass,action_hand:i.hand,action_target:`head`,action_power:`normal`,action_id:`idle-${n}-${r}`,action_key:`${i.punchClass}:${i.hand}:head:normal`,action_start_tick:e-(t-i.start),action_startup_ticks:a.startup,action_active_ticks:a.active,action_recovery_ticks:a.recovery,action_contact_tick:e-(t-i.start)+a.startup}}return{}}var GY=1000003,KY=1.6;function qY(e,t,n,r,i,a){let o=r<0?-1:1,s=o=>Math.hypot(R.clamp(e+n*o*i,-a,a)-e,R.clamp(t+r*o*i,-a,a)-t);return s(o)>=i*.8||s(o)>=s(-o)?o:-o}function JY(e,t,n){return t?e.kind===`knockdown`?1:Math.min(1,.35+e.amount/400):(n===`full`?1:n===`reduced`?.4:0)*(e.kind===`knockdown`?.85:e.amount>=50?Math.min(.75,(e.amount-30)/140):0)}function YY(e){if(e.kind!==`hit`&&e.kind!==`counter_hit`||e.amount<(e.detail.endsWith(`:body`)?70:50))return null;let t=Math.min(100,Math.max(0,e.blood));return{seconds:.6+t/50,rate:150+e.amount*1.5+t*2}}function XY(e,t){return t===`full`?e>100?Math.min(.65,e/1800):0:e>350?Math.min(.3,e/4600):0}function ZY(e){return!e.is_downed&&e.stunned_ticks===0&&e.clinch_ticks===0&&e.clinch_startup_ticks===0&&e.taunt_ticks===0&&!e.is_foul_recovery_target}function QY(e,t){if(e===null)return null;let n=t.fighters.find(t=>t.player_id===e.target_id),r=t.fighters.find(t=>t.player_id===e.actor_id);return lY(e,n===void 0?void 0:{...n,is_downed:!0},{finish_method:`ko`,winner_id:e.actor_id},r)}var $Y=.2,eX=1.1,tX=1.6,nX=2.4,rX=2,iX=new B(0,-.1,.08),aX=new B(0,-.07,.1),oX=new B(0,-.35,1),sX=3,cX=320,lX=8,uX=1.6,dX=.08,fX=.12,pX=e=>e===`shoulder_left`||e===`shoulder_right`||e===`ribs_left`||e===`ribs_right`?e:`mouth`;function mX(e,t,n=eX){return Math.min(n,.06+.08*Math.sqrt(Math.max(0,e))*Math.min(1.6,Math.max(0,t)))}function hX(e,t,n){return e.is_downed||t?.isDown===!0||n!==void 0&&e.player_id===n}var gX=6,_X=11,vX=.13;function yX(e,t){let n=t===`left`?`leftRibs`:`rightRibs`;e.impact(n,[t===`left`?-6:gX,-6*.15,-1.5],_X),e.set(n,{bruise:1.2,swell:0,blood:1.4})}function bX(e,t){e.set(`mouth`,{cut:1,blood:1.4}),e.set(`chin`,{bruise:1.2}),t.set(`neckSmear`,{blood:1.4})}function xX(e,t){e.set(t===`left`?`leftShoulderSmear`:`rightShoulderSmear`,{blood:1.4}),e.set(t===`left`?`leftPec`:`rightPec`,{bruise:1.1})}var SX=new WeakMap;function CX(e,t){let n=SX.get(e);if(n===void 0){let t=e.getAttribute(`position`),r=new B,i=new B,a=b_.map(e=>{let n=0,a=1/0;i.set(e[0],e[1],e[2]);for(let e=0;ethis.onAnnouncement?.(e),cue:e=>this.onCrowdCue?.(e)});touchControls=Re();resultAnnounced=!1;captionText=``;rocked=new nq;tmpA=new B;tmpB=new B;contactPoint=new B;cornerPanelTop=null;mouthPoint=new B;tmpHead=new B;tmpHeadQuaternion=new rs;tmpStump=new B;tmpStumpOffset=new B;tmpStumpQuaternion=new rs;tmpStumpAcross=new B;tmpPart=new B;tmpPartQuaternion=new rs;woundPoint=new B;woundAxis=new B;constructor(e,t=LY,n,r={}){this.canvas=e,this.simulation=t,this.settings=n,this.manualClock=r.manualClock===!0,this.localInput=r.localInput??null,this.powerHeld=r.powerHeld??null,this.inputSequenceOf=r.inputSequenceOf??null,this.buffer=new lR(8,t.tick_rate),this.mapping=rv(t),this.renderer=new Mg({canvas:e,antialias:!0,powerPreference:`high-performance`,preserveDrawingBuffer:r.manualClock===!0}),this.renderer.shadowMap.enabled=!0,this.renderer.shadowMap.type=1,this.renderer.toneMapping=4,this.renderer.toneMappingExposure=1,this.renderer.setPixelRatio(this.basePixelRatio),this.scene.background=new V(`#04060b`),this.scene.fog=new lc(`#04060b`,.042),this.camera=new Af(36,1,.1,80),this.camera.position.set(0,2.05,5.9),this.camera.lookAt(0,1.05,0),this.setupLights(),this.ring=xw(),this.scene.add(this.ring.group),this.arena=RB(),this.scene.add(this.arena.group),this.effects=new GK(this.scene,Re()?1024:2048,Re()?vW:_W),this.effects.useUploader(this.renderer),this.effects.setCamera(this.camera),this.carnage=new NH(this.effects,BY),this.blobTexture=uY();let i=new hd(1,1);for(let e=0;e<3;e+=1){let t=new H(i,new yl({map:this.blobTexture,transparent:!0,depthWrite:!1}));t.rotation.x=-Math.PI/2,t.position.y=.006+e*4e-4,t.renderOrder=1,this.blobShadows.push(t),this.scene.add(t)}for(let e=0;e<4;e+=1){let t=new H(i,new yl({map:this.blobTexture,transparent:!0,depthWrite:!1}));t.rotation.x=-Math.PI/2,t.position.y=.0075+e*4e-4,t.scale.set(dY,dY,1),t.renderOrder=1,t.visible=!1,this.footShadows.push(t),this.scene.add(t)}this.composer=new jz(this.renderer),this.composer.addPass(new Mz(this.scene,this.camera));let a=new Pz(new z(1280,720),.22,.35,1.5);this.bloomPass=a,this.composer.addPass(a),this.finishPass=new Oz(yJ),this.composer.addPass(this.finishPass),this.composer.addPass(new Iz),this.hudCanvas=document.createElement(`canvas`),this.hudCanvas.className=`fight-hud`,this.hudCanvas.style.cssText=`position:absolute;inset:0;width:100%;height:100%;pointer-events:none`,e.insertAdjacentElement(`afterend`,this.hudCanvas),this.bloodLevel=n().blood,this.effects.setBloodLevel(this.bloodLevel),this.ensureGraphs(),this.manualClock||(this.raf=requestAnimationFrame(e=>this.draw(e)))}ensureGraphs(){this.glbLoading||this.graphs!==null||(this.glbLoading=!0,this.graphsReady=Pw().then(async e=>{if(this.destroyed)return;let t=new qw(e,{skin:11563071,gear:1920728}),n=new qw(e,{skin:7225640,gear:12131356});this.graphs=[new TT(t,this.mapping),new TT(n,this.mapping)];let r=[this.carnage.attach(0,this.graphs[0]),this.carnage.attach(1,this.graphs[1])];this.lookIds.fill(null),this.syncInjuryPresentation(0),this.syncInjuryPresentation(1);let i=new qw(e,{skin:13081462,gear:3889080,look:cb.referee,outfit:Ab,wounds:!0});this.referee=new TT(i,this.mapping,{referee:!0,knockout:!0});let a=new qw(e,{skin:9067067,gear:1778224,look:cb.blueCorner,outfit:jb}),o=new qw(e,{skin:14264188,gear:1778224,look:cb.redCorner,outfit:Mb});this.cornermen=[new TT(a,this.mapping,{referee:!0}),new TT(o,this.mapping,{referee:!0})];let s=new qw(e,{skin:12160102,gear:1778224,look:cb.blueCutman,outfit:Nb}),c=new qw(e,{skin:5913126,gear:1778224,look:cb.redCutman,outfit:Nb});this.cutmen=[new TT(s,this.mapping,{referee:!0}),new TT(c,this.mapping,{referee:!0})],s.root.visible=!1,c.root.visible=!1,this.trails=[1920728,12131356].flatMap(e=>[0,1].map(()=>new wq(new V(e).lerp(new V(16777215),.55))));let l=gq();this.glowMap=l,this.glows=[0,1,2,3].map(()=>new vq(l)),this.impactFlashes=[0,1].map(()=>new yq(l));let u=new tc;u.add(t.root,n.root,i.root,a.root,o.root,s.root,c.root,...this.trails.map(e=>e.mesh),...this.effects.compileStandIns(),...r.flatMap(e=>e.compileStandIns()),this.glows[0].standIn(),...this.impactFlashes[0].standIns()),u.add(this.carnage.xray.standIn());let d=t.headInjury.open;t.headInjury.setOpen(!0);try{await Aq(this.renderer,this.composer,u,this.camera,this.scene)}catch{}if(!this.destroyed){this.scene.add(t.root,n.root,i.root,a.root,o.root,s.root,c.root);for(let e of this.trails)this.scene.add(e.mesh);for(let e of this.glows)this.scene.add(e.mesh);for(let e of this.impactFlashes)this.scene.add(e.group);this.compileShadowsOf(u),t.headInjury.setOpen(d)}}).catch(e=>{this.glbLoading=!1,console.error(`boxer_glb_load_failed`,e)}))}compileShadowsOf(e){let t=this.keyLight;if(t!==null&&e.children.length!==0){for(let t of e.children)t.frustumCulled=!1,t.onBeforeShadow=(e,t,n,r,i,a)=>{a.needsUpdate=!0};this.scene.add(e),t.shadow.needsUpdate=!0,this.renderer.setRenderTarget(this.composer.readBuffer);try{this.renderer.render(this.scene,this.camera)}catch{}finally{this.renderer.setRenderTarget(null),this.scene.remove(e)}}}get ready(){return this.graphsReady}get labRigs(){let e=this.graphs;return e===null?[]:[e[0].boxer.root,e[1].boxer.root]}get labScene(){return this.scene}get labEffects(){return this.effects}labSetCameraOverride(e,t){this.cameraOverride={position:new B(...e),lookAt:new B(...t)}}labFrame(e,t=!0){this.draw(e*1e3,!0,t)}setCornerPanelTop(e){this.cornerPanelTop=e}viewForward(){return this.ownViewActive?(this.ownForward.x=this.fighterCam.forwardX,this.ownForward.z=this.fighterCam.forwardZ,this.ownForward):null}setPlayers(e,t,n=Object.keys(e)){this.players=e,this.viewerId=t,this.playerOrder=n}updateIdleFighters(e,t,n){let r=this.graphs;if(r===null)return;let i=this.playerOrder.filter(e=>this.players[e]!==void 0).length<2;for(let[a,o]of r.entries()){let r=this.playerOrder[a]??`seat-${a}`,s=!i||r===this.viewerId||this.viewerId===null&&a===0;if(o.boxer.root.visible=s,!s)continue;this.wearLook(a===0?0:1,r);let c=a===0?-1:1,l=Math.floor(t*this.simulation.tick_rate),u={...VY(r),x:i?0:c*180,y:i?-70:0,facing:i?1:-c,facing_x:i?0:-c*1e3,facing_y:i?-1e3:0,...i?WY(l):{}},d={...VY(this.playerOrder[1-a]??`opponent`),x:i?0:-c*180,y:i?-150:0};o.setResting(!1),o.update(u,d,e,t,this.settings().reducedMotion,this.bloodLevel,i?l:n)}}setFinal(e){if(e!==null&&e.match_id===this.final?.match_id)return;this.final=e,this.stoppageWinner=-1,this.stoppageRaiseAt=1/0,this.stoppageSpot=null,this.raiseFramed=!1,this.ceremony=this.ceremonyFor(e);let t=e?.method===`draw`&&this.deaths.every(e=>e!==null);if(this.finalRevealAt=this.frameSeconds+(this.ceremony===null?t?Qr:ei(e):OJ),this.ovationUntil=e===null?0:this.frameSeconds+AJ,e!==null&&this.commentary.finish(e,this.players,this.ceremony!==null,this.frameSeconds),this.ceremony===null&&this.endCeremony(),this.pendingFinish=null,e===null||!Zr.has(e.method))return;let n=this.lastKnockdown===null?null:oq(this.history,this.lastKnockdown.hit??this.lastKnockdown.knockdown,this.simulation.tick_rate),r=this.finishingInjury(e);if(n!==null&&this.graphs!==null&&!this.settings().reducedMotion){r!==null&&(this.replayInjuries[r.index]={injury:r.injury,event:r.event}),this.startReplay(n);return}if(r!==null){let e=this.pendingContacts.find(e=>e.event.event_id===r.event.event_id);e===void 0?this.applyArcadeInjury(r.index,r.injury,r.event):e.injury??=r.injury}let i=this.buffer.latest()?.result?.tick;i===void 0?this.presentFinish(e):this.pendingFinish={final:e,tick:i,latestAt:this.frameSeconds+tJ}}presentFinishWhenShown(e){let t=this.pendingFinish;t===null||ee.player_id===t.hit.target_id)??-1;return r<0||this.arcadeInjuries[r]!==null?null:{index:r,injury:t.finisher,event:t.hit}}ceremonyFor(e){let t=this.buffer.latest()?.fighters;if(e===null||t===void 0||e.method!==`decision`&&e.method!==`draw`||t.some(e=>e.is_downed)||this.deaths.some(e=>e!==null))return null;let n=t.findIndex(t=>t.player_id===e.winner_id);return{winnerSeat:n===0||n===1?n:null,positions:null,refereeArrived:!1,arrivedAt:null,announced:!1}}endCeremony(){for(let e of this.graphs??[])e.awaitVerdict(null);this.referee?.raise(null,null)}ceremonyFighters(e,t,n,r,i=null){e.positions===null&&(e.positions=[{x:t[0].x+(i?.[0].x??0),y:t[0].y+(i?.[0].y??0)},{x:t[1].x+(i?.[1].x??0),y:t[1].y+(i?.[1].y??0)}],e.marks=e.positions[0].x<=e.positions[1].x?[0,1]:[1,0]);let a=e.marks??xJ,o=e.refereeArrived;for(let r of[0,1]){let i=e.positions[r],s=a[r],c=kJ(i.x,i.y,bJ[s],TJ*n),l=Math.hypot(c.x-i.x,c.y-i.y),u=n>0?1/(n*this.simulation.tick_rate):0,d=!c.arrived&&l>1e-6;Object.assign(this.drawnFighters[r],t[r],{x:c.x,y:c.y,velocity_x:(c.x-i.x)*u,velocity_y:(c.y-i.y)*u,facing_x:d?Math.round((c.x-i.x)/l*1e3):0,facing_y:d?Math.round((c.y-i.y)/l*1e3):-1e3,facing:d&&c.x=DJ){e.announced=!0,this.commentary.verdict(this.frameSeconds);for(let t of[0,1])this.graphs?.[t]?.announce(e.winnerSeat===null?`level`:e.winnerSeat===t?`winner`:`loser`);this.finalRevealAt=Math.min(this.finalRevealAt,this.frameSeconds+.35),this.arena.excite(1)}if(e.announced){let n=n=>{let r=a[0]===n?0:1,i=e.winnerSeat===null||e.winnerSeat===r,o=ct(t[r].injuries,n===0?`left`:`right`)===`whole`,s=this.graphs?.[r]?.boxer.rig.bones[n===0?`gloveL`:`gloveR`];return i&&o&&s!==void 0?s.getWorldPosition(this.ceremonyWrists[n]):null};this.referee?.isDown!==!0&&this.referee?.raise(n(1),n(0))}return this.drawnFighters}ceremonyFrame(e){let t=this.ceremony,n=this.buffer.latest();if(t===null||t.arrivedAt===null||this.replay!==null||this.final===null||n===null)return null;let{width:r,height:i}=this.hudViewport,a=kY(this.final,r,i,n.fighters,this.players,this.roundStats,this.viewerId),o=rV(this.camera.aspect,this.camera.fov,(i-a)/Math.max(1,i)),s=this.settings().reducedMotion?0:Math.sin((e-t.arrivedAt)*.35)*.06*o.distance;return this.cornerPosition.set(s,o.height+.05*o.distance,o.distance),this.cornerLookAt.set(0,o.height,0),{position:this.cornerPosition,lookAt:this.cornerLookAt,framed:!0}}raiseFrame(e,t,n){let r=this.buffer.latest();if(this.stoppageWinner<0||this.final===null||this.replay!==null||this.ceremony!==null||r===null||e0?-1:1)*Xq,o=this.stoppageSpot?.z??0;this.raiseFramed||this.raiseCentre.set(i.x+a/2,0,i.z+o/2),this.raiseCentre.lerp(this.tmpCamera.set(i.x+a/2,0,i.z+o/2),1-Math.exp(-3*t)),this.raiseFramed=!0;let{width:s,height:c}=this.hudViewport,l=kY(this.final,s,c,r.fighters,this.players,this.roundStats,this.viewerId,this.deaths[0]??this.deaths[1]),u=rV(this.camera.aspect,this.baseFov,(c-l)/Math.max(1,c)),d=e-(this.stoppageRaiseAt-Yq),f=n?0:Math.sin(d*.35)*.06*u.distance;return this.cornerPosition.set(R.clamp(this.raiseCentre.x,-1.4,1.4)+f,u.height+.05*u.distance,this.raiseCentre.z+u.distance),this.cornerLookAt.set(this.raiseCentre.x,u.height,this.raiseCentre.z),{position:this.cornerPosition,lookAt:this.cornerLookAt,framed:!0}}presentFinish(e){let t=this.buffer.latest()?.referee.alive===!1;t||this.referee?.waveOff(void 0,e.method===`death`);let n=this.buffer.latest()?.fighters,r=n?.findIndex(t=>t.player_id!==e.winner_id&&t.player_id!==null)??-1;if(r>=0&&this.headCacheValid[r]&&!this.settings().reducedMotion&&!this.carnage.gibbed(r)&&(this.finishCloseUpIndex=r,this.finishCloseUpUntil=this.frameSeconds+Hq,this.finishCloseUpBearing=null,this.finishCloseUpAt=this.frameSeconds),e.winner_id===null)return;let i=n?.findIndex(t=>t.player_id===e.winner_id)??-1;if(i<0)return;this.graphs?.[i]?.celebrate(Jq);let a=n?.[i]?.injuries??[];!t&&(YJ(a,`left`)||YJ(a,`right`))&&(this.stoppageWinner=i,this.stoppageRaiseAt=this.frameSeconds+Yq)}cornerShotFrame(e,t,n){if(t===null||t.phase!==`rest`||n||this.graphs===null)return null;let r=t.fighters.findIndex(e=>e.player_id===this.viewerId),i=e-this.restStartedAt,a=YB(i,t.phase_ticks_remaining/this.simulation.tick_rate,+(r===1));return a===null||!this.graphs[a].stoolVisible||this.cutmen!==null&&this.cutmanProgress[a]<_J?null:(tV(a,this.mapping.x(l),XB(i),this.cornerPosition,this.cornerLookAt),{position:this.cornerPosition,lookAt:this.cornerLookAt})}restWideFrame(e){if(e?.phase!==`rest`||this.portraitPull<=Wq)return null;let t=+(e.fighters.findIndex(e=>e.player_id===this.viewerId)===1),n=this.mapping.x(l);return eV(t,n,-3.5,Gq,this.cornerPosition).setY(Kq),eV(t,n,0,0,this.cornerLookAt),this.cornerLookAt.lerp(eV(+(t===0),n,0,0,this.tmpCamera),qq).setY(.9),{position:this.cornerPosition,lookAt:this.cornerLookAt,framed:!0}}closeUpFrame(e){if(e>=this.finishCloseUpUntil||this.finishCloseUpIndex<0||!this.headCacheValid[this.finishCloseUpIndex])return null;let t=this.arcadeInjuries[this.finishCloseUpIndex],n=t===`decapitation`&&this.effects.severedHeadPosition(this.finishCloseUpIndex,this.closeUpTarget),r=!n&&this.effects.partPosition(PH(this.finishCloseUpIndex,`upper_body`),this.closeUpTarget),i=n||r?null:this.graphs?.[this.finishCloseUpIndex]?.fallBody??null;if(this.finishCloseUpBearing===null&&i!==null&&!i.body.asleep&&e-this.finishCloseUpAt.4?u:.9,a)}let d=this.finishCloseUpBearing+l;return this.closeUpPosition.set(R.clamp(s.x+Math.sin(d)*c,-2.2,rJ),s.y+(n?.42:o?.5:.75),R.clamp(s.z+Math.cos(d)*c,-2.2,rJ)),this.replayLookAt.copy(s),{position:this.closeUpPosition,lookAt:this.replayLookAt,tight:!0}}raiseSpot(e,t){let n=e.x>0?-1:1,r={x:n*Xq,z:0},i=-1/0;for(let[a,o]of Zq){let s=e.x+n*a*Xq,c=e.z+o*Xq,l=Math.min(eJ-Math.abs(s),eJ-Math.abs(c),Math.hypot(s-t.x,c-t.z)-$q);for(let e of this.graphs??[]){let t=e.fallBody;if(t!==null)for(let e of[0,1,2,3,4])t.bodyPoint(e,this.bodyPoint),l=Math.min(l,Math.hypot(s-this.bodyPoint.x,c-this.bodyPoint.z)-sJ-.05)}for(let e of[0,1])this.effects.severedHeadPosition(e,this.closeUpTarget)&&(l=Math.min(l,Math.hypot(s-this.closeUpTarget.x,c-this.closeUpTarget.z)-iJ-.05));if(l>=0)return{x:s-e.x,z:c-e.z};l>i&&(i=l,r={x:s-e.x,z:c-e.z})}return r}nearerGlove(e,t){e.getWorldPosition(this.stoppageWrist),t.getWorldPosition(this.stoppageOtherWrist);let n=e=>Math.hypot(e.x-this.refereePosition.x,e.z-this.refereePosition.z);return n(this.stoppageOtherWrist)-.5*n.length()}startReplay(e){let t=new lR(e.snapshots.length+2,this.simulation.tick_rate);for(let n of e.snapshots)t.push(n);if(this.replay={plan:e,buffer:t,startedAt:this.frameSeconds,impactFired:!1,side:null},this.drawnOffsetsLive=!1,this.commentary.replay(this.frameSeconds,e.impact),this.replayFollow=0,this.replayFollowAt=0,e.impact.kind===`referee_down`){this.referee?.resetTransient(!1),this.referee?.primeReplayFall(),this.effects.stopGush(2);return}for(let e=this.pendingGore.length-1;e>=0;--e)this.pendingGore[e].event.kind!==`injury`&&this.pendingGore.splice(e,1);for(let e of[0,1]){this.effects.stopGush(e),this.deaths[e]!==null&&this.carnage.undoDeath(e);let t=this.arcadeInjuries[e],n=this.arcadeInjuryEvents[e];t!==null&&n!==null&&(this.replayInjuries[e]={injury:t,event:n},this.restoreInjury(e))}for(let t of this.pendingContacts.splice(0)){let n=t.recipientIndex;t.injury!==null&&(n===0||n===1)&&this.replayInjuries[n]===null&&this.arcadeInjuries[n]===null&&(this.replayInjuries[n]={injury:t.injury,event:t.event}),t.event.event_id!==e.impact.event_id&&(t.injury=null,t.contactTick=1/0,this.pendingContacts.push(t))}let n=e.snapshots[0]?.fighters.findIndex(t=>t.player_id===e.impact.target_id)??-1;n>=0&&e.impact.detail.endsWith(`:head`)&&this.effects.returnMouthpiece(n);let r=this.lastKnockdown?.knockdown.detail===aJ;for(let[t,i]of(this.graphs??[]).entries()){let a=this.liveFallTicks[t]??null;i.resetTransient(!1),a!==null&&a>=e.impact.tick-1&&i.primeReplayFall(),t===n&&r&&i.fallToKnee(!0)}this.finalRevealAt=this.frameSeconds+e.durationSeconds+ei(this.final)}endReplay(){let e=this.replay?.plan.impact.kind===`referee_down`;if(this.replay=null,e){this.drawnOffsetsLive=!1;let e=this.buffer.latest();for(let[t,n]of(this.graphs??[]).entries())n.resetTransient(e?.fighters[t]?.is_downed===!0);return}this.drawnOffsetsLive=!1,this.reapplyReplayInjuries();let t=this.buffer.latest();for(let[e,n]of(this.graphs??[]).entries()){let r=t?.fighters[e],i=r!==void 0&&r.player_id===this.flashKnockout?.loserId;n.resetTransient(r?.is_downed===!0||i),i&&n.knockOut()}for(let e of[0,1])this.showDeath(e,0,!0);this.final!==null&&this.presentFinish(this.final)}fireRefereeEvents(e){for(let t=0;te){t+=1;continue}this.pendingRefereeEvents.splice(t,1);let r=this.buffer.latest();n.kind===`referee_down`?(r!==null&&this.fireRefereeFall(n,r),this.eventCallout={text:`THE REFEREE IS DEAD!`,until:this.frameSeconds+zJ},this.refereeReplayAt={at:this.frameSeconds+RJ,impact:n}):n.kind===`referee_hit`?r!==null&&this.punchReferee(n,r,!1):this.referee!==null&&(this.referee.boxer.rig.bones.head.getWorldPosition(this.refereeHead),this.effects.addEvent(n,this.refereeHead,this.settings().reducedMotion))}}punchReferee(e,t,n){let r=this.referee;if(r===null)return;let[i,a]=e.detail.split(`:`),o=t.fighters.findIndex(t=>t.player_id===e.actor_id),s=t.fighters[o],c=s?.action_key?.split(`:`)[1]??null;r.react(`hit`,a===`body`?`body`:`head`,e.direction,i,c,n?Math.max(e.amount,140):e.amount),r.boxer.rig.bones.head.getWorldPosition(this.refereeHead);let l=s===void 0?void 0:Iq(s,{...s,x:t.referee.x,y:t.referee.y},this.mapping),u=this.settings().reducedMotion;this.effects.addEvent({...e,kind:n?`knockdown`:`hit`},this.refereeHead,u,l);let d=n||u?null:YY({...e,kind:`hit`}),f=d===null?null:this.refereeMouth();d!==null&&f!==null&&this.effects.gush(2,f.position,f.axis,d.seconds,d.rate,e.event_id);let p=this.refereePunchPower(e);o>=0&&this.graphs?.[o]?.landedHit(e.action_id,!1,p),this.onContact?.(e,p)}fireRefereeFall(e,t,n=!1){let r=this.referee;if(r===null)return;let i=n?this.refereeBlow(e):null;i===null?(r.boxer.rig.bones.head.getWorldPosition(this.refereeHead),this.effects.addEvent({...e,kind:`knockdown`,amount:160,blood:80},this.refereeHead,this.settings().reducedMotion)):this.punchReferee(i,t,!0);let a=this.settings().reducedMotion?null:this.refereeMouth();a!==null&&this.effects.gush(2,a.position,a.axis,sX,cX,e.event_id),r.knockOut(),this.onContact?.(e,!1)}refereePunchPower(e){for(let t=this.history.length-1;t>=0;--t){let n=this.history[t];if(n.tickt.player_id===e.actor_id);return r!==void 0&&r.action_id===e.action_id&&r.action_power===`power`}return!1}refereeBlow(e){if(e.action_id===null)return null;for(let t=this.history.length-1;t>=0;--t){let n=this.history[t],r=n.events.find(t=>t.kind===`referee_hit`&&t.action_id===e.action_id&&t.tick===e.tick);if(r!==void 0)return r;if(n.tick=0?e.fighters[a]:void 0,l=c?.action_key?.split(`:`)??[],u=l[0]??null,d=l[1]??null,f=l[3]===`power`;this.graphs?.[i]?.react(`hit`,r.detail.endsWith(`:body`)?`body`:`head`,r.direction,u,d,r.amount),n.knockdown.detail===`body`&&n.knockdown.tick>r.tick&&this.graphs?.[i]?.windedFor((n.knockdown.tick-r.tick)/this.simulation.tick_rate+.15,nY(c?.action_key??null)),o.player_id===this.flashKnockout?.loserId&&this.graphs?.[i]?.knockOut(),a>=0&&this.graphs?.[a]?.landedHit(r.action_id,n.blocked,f),r.detail.endsWith(`:head`)&&!this.settings().reducedMotion&&this.knockOutMouthpiece(i,s??r.direction,r.event_id+GY,!0),f&&!n.blocked&&!this.settings().reducedMotion&&this.presentPowerHit(i,r),this.onContact?.(r,f),this.reapplyReplayInjuries(s),this.deaths[i]!=null&&(this.showDeath(i,s??r.direction,!0),this.announceDeath(i));for(let e of this.pendingGore.splice(0))this.presentGore(e.event);for(let t of this.pendingContacts)t.contactTick===1/0&&(t.contactTick=this.replay?.plan.impact.tick??e.tick)}replayFrame(e,t){let[n,r]=e.fighters,i=this.mapping.x(n.x),a=this.mapping.z(n.y),o=this.mapping.x(r.x),s=this.mapping.z(r.y),c=this.replay?.plan.impact.kind===`referee_down`,l=e.fighters.findIndex(e=>e.player_id===this.replay?.plan.impact.target_id),u=this.replay?.impactFired===!0&&l>=0&&this.headCacheValid[l]===!0;if(c&&this.referee!==null)return this.refereeReplayFrame(e,t);let d=1-Math.exp(-3*Math.max(0,t-this.replayFollowAt));this.replayFollowAt=t,this.replayFollow+=(+!!u-this.replayFollow)*d;let f=l<0?0:Math.max(this.portraitPull>1.3?.7:0,this.replayFollow*.8),p=u?this.headCache[l].x:l===1?o:i,m=u?this.headCache[l].z:l===1?s:a,h=(i+o)/2+(p-(i+o)/2)*f,g=(a+s)/2+(m-(a+s)/2)*f,_=-(s-a),v=o-i,y=Math.hypot(_,v)||1;_/=y,v/=y;let b=2.5,x=this.replay;x!==null&&x.side===null&&(x.side=qY(h,g,_,v,b,rJ));let S=x?.side??(v<0?-1:1);_*=S,v*=S;let C=.35*Math.sin(t*.7),w=_*Math.cos(C)-v*Math.sin(C),T=_*Math.sin(C)+v*Math.cos(C);this.replayCameraPosition.set(R.clamp(h+w*b,-2.2,rJ),1.38-Math.min(.25,t*.05),R.clamp(g+T*b,-2.2,rJ));let E=Math.hypot(this.replayCameraPosition.x-h,this.replayCameraPosition.z-g),D=Math.hypot(h,g);if(E.01){let e=KY-E;this.replayCameraPosition.x=R.clamp(this.replayCameraPosition.x-h/D*e,-2.2,rJ),this.replayCameraPosition.z=R.clamp(this.replayCameraPosition.z-g/D*e,-2.2,rJ)}let O=u?R.clamp(this.headCache[l].y,.45,1.28):1.28;this.replayLookAt.set(h,1.28+(O-1.28)*this.replayFollow,g);let k=this.settings().reducedMotion?0:this.powerShake;if(k>5e-4){let e=t*61;this.replayCameraPosition.x=R.clamp(this.replayCameraPosition.x+Math.sin(e*1.31)*k,-2.2,rJ),this.replayCameraPosition.y+=Math.cos(e*1.97)*k*.6,this.replayLookAt.x+=Math.sin(e*1.53)*k*.5,this.replayLookAt.y+=Math.cos(e*2.11)*k*.35}return{position:this.replayCameraPosition,lookAt:this.replayLookAt,tight:!0}}setInputLatency(e){this.inputLatencyMs=e,this.lagWarned=ni(e,this.lagWarned)}resyncClock(){this.buffer.resync()}setReconnect(e){this.reconnectMs=e}setBloodLevel(e){e!==`full`&&this.bloodLevel===`full`&&this.restoreAllInjuries(),this.bloodLevel=e,e===`off`&&this.downedPoolAccumulators.fill(0),this.effects.setBloodLevel(e)}setReducedMotion(e){e&&(this.restoreAllInjuries(),this.effects.clearDynamic())}syncInjuryPresentation(e){let t=this.arcadeInjuries[e],n=this.graphs;if(n!==null){let r=n[e];t===`head_burst`?r.boxer.setHeadBurst(!0):r.boxer.setDecapitated(t===`decapitation`),r.boxer.headInjury.setEyeOut(t===`eye_left`||t===`eye_right`?`both`:null),r.boxer.setHandDismembered(`left`,t===`dismember_left`),r.boxer.setHandDismembered(`right`,t===`dismember_right`);let i=t===`jaw_dislocation`?`jaw`:t===`shoulder_left`||t===`shoulder_right`?t:null;r.setArcadeDislocation(i)}}applyArcadeInjury(e,t,n,r){t===`dismember_left`&&!this.carnage.hasGlove(e,`left`)?t=`ribs_left`:t===`dismember_right`&&!this.carnage.hasGlove(e,`right`)?t=`ribs_right`:(t===`eye_left`&&this.carnage.eyeBurst(e,`left`)||t===`eye_right`&&this.carnage.eyeBurst(e,`right`))&&(t=`jaw_dislocation`);let i=!1;if(t===`decapitation`){let t=this.headWorldPose(e);if(t!==null){let a=this.graphs?.[e],o=a===void 0?void 0:zY(a.boxer,t.position,t.quaternion);this.effects.decapitate(e,t.position,t.quaternion,r??n.direction,n.event_id,this.skinColor(e),o);let s=this.stumpWorldPose(e);s!==null&&this.effects.anchorStump(e,s.position,s.quaternion,s.rim,s.across),i=!0}}else if(t===`head_burst`){let t=this.headWorldPose(e);if(t!==null){this.effects.burstHead(e,t.position,r??n.direction,n.event_id);let a=this.burstStumpPose(e);a!==null&&this.effects.anchorStump(e,a.position,a.quaternion,a.rim,a.across),i=!0}}else if(t===`eye_left`||t===`eye_right`){let a=this.graphs?.[e]?.boxer,o=t===`eye_left`?`left`:`right`;if(a!==void 0&&wX(a,o,this.tmpPart,this.tmpStumpOffset,this.tmpPartQuaternion)){let t=r??n.direction;this.effects.gougeEye(e,this.tmpPart,this.tmpStumpOffset,t,n.event_id,o);let s=o===`left`?`right`:`left`;!this.effects.eyeOut(e,s)&&!this.carnage.eyeBurst(e,s)&&wX(a,s,this.tmpPart,this.tmpStumpOffset,this.tmpPartQuaternion)&&this.effects.spawnDebris(`eye`,this.tmpPart,t,1,n.event_id,uX,e),i=!0}}else if(t===`dismember_left`||t===`dismember_right`){let a=t===`dismember_left`?`left`:`right`,o=this.handWorldPose(e,a);if(o!==null){let t=this.graphs?.[e],s=t===void 0?void 0:{...RY(t.boxer.gloveMesh(a),o.position,o.quaternion),gloveBlood:t.boxer.gloveBloodLevel};this.effects.dismemberHand(e,a,o.position,o.quaternion,r??n.direction,n.event_id,this.gearColor(e),s),this.effects.anchorHandStump(e,a,o.position,o.quaternion),i=!0}}else if(t===`jaw_dislocation`||t===`shoulder_left`||t===`shoulder_right`||t===`ribs_left`||t===`ribs_right`){let a=this.tornWound(e,pX(t));a!==null&&(this.effects.tearOpen(e,a.position,a.axis,r??n.direction,n.event_id,t===`jaw_dislocation`?lX:0),i=!0)}return i?(this.arcadeInjuries[e]=t,this.arcadeInjuryEvents[e]=n,this.observedInjuryDown[e]=!1,this.syncInjuryPresentation(e),this.onArcadeInjury?.(t,n),!0):!1}reapplyReplayInjuries(e){for(let t of[0,1]){let n=this.replayInjuries[t];if(n===null)continue;this.replayInjuries[t]=null;let r=this.settings();r.blood!==`full`||r.reducedMotion||this.applyArcadeInjury(t,n.injury,{...n.event,event_id:n.event.event_id+GY},e)}}restoreInjury(e){this.arcadeInjuries[e]!==null&&(this.arcadeInjuries[e]=null,this.arcadeInjuryEvents[e]=null,this.observedInjuryDown[e]=!1,this.syncInjuryPresentation(e),this.effects.restoreFighter(e))}restoreAllInjuries(){this.restoreInjury(0),this.restoreInjury(1),this.effects.clearArcadeGore()}headWorldPose(e){let t=this.graphs,n=t===null?null:t[e].boxer.bone(`head`);return n===null||t===null?null:(t[e].boxer.root.updateMatrixWorld(!0),n.getWorldPosition(this.tmpHead),n.getWorldQuaternion(this.tmpHeadQuaternion),this.tmpStumpOffset.copy(mY).applyQuaternion(this.tmpHeadQuaternion),this.tmpHead.add(this.tmpStumpOffset),{position:this.tmpHead,quaternion:this.tmpHeadQuaternion})}handWorldPose(e,t){let n=this.graphs,r=n===null?null:n[e].boxer.bone(t===`left`?`gloveL`:`gloveR`);return r===null||n===null?null:(n[e].boxer.root.updateMatrixWorld(!0),r.getWorldPosition(this.tmpPart),r.getWorldQuaternion(this.tmpPartQuaternion),{position:this.tmpPart,quaternion:this.tmpPartQuaternion})}gearColor(e){return this.graphs?.[e]?.boxer.gearBaseColor.getHex()??1920728}skinColor(e){return this.graphs?.[e]?.boxer.skinBaseColor.getHex()??11563071}stumpWorldPose(e){let t=this.graphs?.[e]?.boxer,n=t?.bone(`head`);if(t===void 0||n==null)return null;t.root.updateMatrixWorld(!0);let r=t.headMesh,i=_Y(r.geometry);if(i.length===0)return null;this.stumpRim.length!==i.length*3&&(this.stumpRim=new Float32Array(i.length*3)),this.tmpStump.set(0,0,0);for(let[e,n]of i.entries())AY(t,n,this.tmpStumpOffset),this.tmpStumpOffset.toArray(this.stumpRim,e*3),this.tmpStump.add(this.tmpStumpOffset);return this.tmpStump.multiplyScalar(1/i.length),n.getWorldPosition(this.tmpStumpOffset).sub(this.tmpStump).normalize(),this.tmpStumpAcross.set(1,0,0).applyQuaternion(n.getWorldQuaternion(this.tmpStumpQuaternion)),this.tmpStumpQuaternion.setFromUnitVectors(hY,this.tmpStumpOffset),{position:this.tmpStump,quaternion:this.tmpStumpQuaternion,rim:this.stumpRim,across:this.tmpStumpAcross}}burstStumpPose(e){let t=this.graphs?.[e]?.boxer;if(t===void 0)return null;let n=xY(t,this.stumpRim,this.burstStump);return n===null?null:(this.stumpRim=n,{position:this.burstStump.position,quaternion:this.burstStump.quaternion,rim:n,across:this.burstStump.across})}pressTick(e){return this.buffer.clockTick(e)+(this.inputLatencyMs??60)/1e3*this.simulation.tick_rate}pressGetUp(e){let t=this.buffer.latest(),n=t?.fighters.find(e=>e.player_id===this.viewerId);if(t?.phase!==`knockdown`||n?.is_downed!==!0)return null;let r=this.manualClock?this.lastManualTime:performance.now();return this.getUp.press(e,n,this.pressTick(r),r)}get getUpView(){return this.getUpFrame}get getUpVerdicts(){return this.getUp.counts}updateGetUp(){let e=this.buffer.latest(),t=e?.fighters.find(e=>e.player_id===this.viewerId),n=this.manualClock?this.lastManualTime:performance.now(),r=n-this.getUpRisenAt=0&&i.count>=1&&i.count<=9&&this.onGetUpBeat?.(i.count),this.getUpBeatCount=i.count),this.getUpFrame=i}predictAction(e){let t=this.buffer.latest();if(t===null||this.viewerId===null||this.replay!==null)return;let n=t.fighters.findIndex(e=>e.player_id===this.viewerId);if(n<0)return;let r=t.fighters[n];if(t.phase!==`fight`&&t.phase!==`finish`||!ZY(r))return;let i=(this.inputLatencyMs??60)/1e3*this.simulation.tick_rate,a=i+this.buffer.interpolationDelayTicks,o=this.manualClock?this.lastManualTime:performance.now(),s=this.graphs?.[n];if(oB(e.kind)){let n=s?.ownPunchActive===!0;if(e.id===void 0||r.stamina0||!n&&Uz(r,t.tick)>0)return;let i=n?s.ownTicksToRecovery:0;n&&s.cutOwnRecovery(),this.evasion.press(e.kind,e.id,o,a,this.simulation.tick_rate,y+de(r.style).evasionTicks,o+i*1e3/this.simulation.tick_rate);return}if(e.kind!==`punch`)return;this.evasion.drop(o)&&s?.keepOwnRecovery();let c=ut(r.injuries,e.hand);c!==null&&s?.predict(c===e.hand?e:{...e,hand:c},performance.now()/1e3,this.simulation.tick_rate,a,Hz(r,e,t.tick+1),i)}acknowledgeActions(e,t){for(let[n,r]of e.fighters.entries()){let i=r.player_id===this.viewerId,a=e.phase===`fight`||e.phase===`finish`;i&&this.evasion.acknowledge(r,a,this.inputSequenceOf)&&this.graphs?.[n]?.keepOwnRecovery();let o=t.filter(t=>Fq(t,e).puncherIndex===n);this.graphs?.[n]?.acknowledge(r,a,o,i?this.inputSequenceOf:null)}}push(e){let t=this.manualClock?this.lastManualTime:performance.now();if(!this.buffer.push(e,t))return;let n=this.dedupe.accept(e.events);this.acknowledgeActions(e,n),this.history.push(e),this.history.length>zq&&this.history.shift();for(let r of n){if(this.roundStats.record(r,n),r.kind===`knockdown`){let t=n.find(e=>Lq(e)&&e.target_id===r.target_id&&e.tick===r.tick)??(r.detail===`body`?this.recordedHit(r):null),i=t!==null&&Jr(t,e.events);this.lastKnockdown={knockdown:r,hit:t,blocked:i,finisher:i?null:QY(t,e)};let a=e.fighters.findIndex(e=>e.player_id===r.target_id);this.graphs?.[a]?.fallToKnee(r.detail===aJ),r.detail===oJ&&(this.lastKnockdown=null)}if(r.kind===`result`&&r.detail===`flash_ko`){let e=n.findLast(e=>(e.kind===`hit`||e.kind===`counter_hit`)&&e.actor_id===r.actor_id)??null;e!==null&&e.target_id!==null&&(this.flashKnockout={hitEventId:e.event_id,loserId:e.target_id},this.lastKnockdown={knockdown:{...e,kind:`knockdown`},hit:e,blocked:!1,finisher:null})}r.kind===`referee_break`&&this.referee?.breakClinch(),(VJ.has(r.kind)||r.kind===`bleed`&&r.actor_id===`referee`)&&this.pendingRefereeEvents.push(r),r.kind===`box`&&(this.eventCallout={text:`BOX!`,until:this.frameSeconds+IJ}),r.kind===`body_collapse`&&r.target_id===this.viewerId&&(this.ownCollapseUntil=r.tick+r.amount),r.kind===`finish_him`&&(this.finishTargetId=r.target_id),(r.kind===`fatality`||r.kind===`death`)&&this.noteDeath(r,n,e),this.movement.observe(r,this.viewerId),r.kind===`knockdown`&&r.target_id===this.viewerId&&(this.getUp.reset(),this.getUpKnockTick=r.tick,this.getUpRisenAt=-1/0),r.kind===`get_up_input`&&r.actor_id===this.viewerId&&this.getUp.confirm(r,t),r.kind===`get_up`&&r.actor_id===this.viewerId&&(this.getUpRisenAt=t)}this.commentary.observe(e,n,this.players,this.simulation.tick_rate,this.frameSeconds);let r=e.fighters.findIndex(e=>e.player_id===this.viewerId),i=e.result===null&&!n.some(e=>e.kind===`knockdown`);for(let{event:t,presentationEvent:a,presentImpact:o,reactAmount:s}of eY(n,e)){let n=e.fighters.findIndex(e=>e.player_id===t.target_id),c=e.fighters.findIndex(e=>e.player_id===t.actor_id),{recipientIndex:l,puncherIndex:u}=Fq(t,e),d=e.fighters[l]??e.fighters[n]??e.fighters[c]??e.fighters[0];if(SY(this.graphs?.[e.fighters.indexOf(d)],d,this.mapping,this.contactPoint),NJ.has(t.kind)){let n=u>=0?e.fighters[u]:null;this.pendingContacts.push({event:t,presentationEvent:a,presentImpact:o,reactAmount:s,contactTick:i&&u===r&&FJ.has(t.kind)&&this.graphs?.[u]?.pressLanded(t.action_id)===!0?-1/0:n?.action_contact_tick??t.tick,recipientIndex:l,puncherIndex:u,injury:lY(t,e.fighters[l],e.result,n??void 0),power:n!==null&&n.action_id===t.action_id&&n.action_power===`power`})}else t.kind===`bleed`&&t.actor_id!==`referee`&&this.effects.addEvent(t,this.contactPoint,this.settings().reducedMotion)}for(let t of n){if(!GJ.has(t.kind))continue;let n=t.action_id===null?void 0:this.pendingContacts.find(e=>e.event.tick===t.tick&&e.event.action_id===t.action_id&&(Lq(e.event)||Rq(e.event)));n!==void 0&&(n.injury??=XJ(t)),t.kind!==`fatality`&&(this.pendingGore.push({event:t,at:n?.contactTick??t.tick}),t.kind===`injury`&&Ue(t.detail)&&this.carnage.expect(e.fighters.findIndex(e=>e.player_id===t.target_id),t.detail))}}fireContacts(e){for(let t=0;te){t+=1;continue}this.pendingContacts.splice(t,1);let{event:r,presentationEvent:i,reactAmount:a,recipientIndex:o,puncherIndex:s,injury:c}=n,l=n.presentImpact&&!ZJ(i),u=this.buffer.latest()?.fighters[o],d=Iq(this.buffer.latest()?.fighters[s],u,this.mapping);this.presentFightEvent(r,o,s),l&&u!==void 0&&(this.contactOn(o,u,i.detail.endsWith(`:body`),d,i.direction),this.effects.addEvent(i,this.contactPoint,this.settings().reducedMotion,d));let f=this.settings();if(n.power&&l&&Lq(r)&&u!==void 0&&!f.reducedMotion&&this.presentPowerHit(o,i),(n.presentImpact||PJ.has(r.kind))&&this.arena.excite(MJ[r.kind]??0),l&&o>=0&&[`hit`,`counter_hit`,`knockdown`].includes(r.kind)){let e=this.viewerId!==null&&this.buffer.latest()?.fighters[o]?.player_id===this.viewerId;this.viewerHitFlash=Math.max(this.viewerHitFlash,JY(r,e,f.blood))}c!==null&&o>=0&&this.arcadeInjuries[o]===null&&f.blood===`full`&&!f.reducedMotion&&this.applyArcadeInjury(o,c,r,d);let p=this.graphs;l&&o>=0&&!f.reducedMotion&&YH(r.kind,r.amount,i.detail.endsWith(`:head`))&&this.knockOutMouthpiece(o,d??i.direction,r.event_id,!1);let m=l&&!f.reducedMotion?YY(r):null;m!==null&&o>=0&&this.gushFromMouth(o,r.event_id,m.seconds,m.rate),n.presentImpact&&o>=0&&r.kind===`knockdown`&&!f.reducedMotion&&this.gushFromMouth(o,r.event_id,sX,cX);let h=l&&o>=0?bv(r.kind,r.amount,i.detail.endsWith(`:head`)):0;if(h>0&&!f.reducedMotion&&f.blood!==`off`){let e=this.headWorldPose(o);e!==null&&(this.mouthPoint.set(0,-.07,.1).applyQuaternion(e.quaternion).add(e.position),this.effects.spawnTeeth(this.mouthPoint,d??i.direction,h,r.event_id))}if(l&&o>=0&&a!==null&&[`hit`,`counter_hit`,`block`,`perfect_block`,`knockdown`].includes(r.kind)){let e=r.kind===`block`||r.kind===`perfect_block`,t=i.detail.endsWith(`:body`)?`body`:`head`;if(p!==null){let n=(s>=0?this.buffer.latest()?.fighters[s]:void 0)?.action_key?.split(`:`)??[],c=n[0]??i.detail.split(`:`)[0]??null,l=n[1]??null;p[o].react(e?`block`:`hit`,t,i.direction,c,l,a),Lq(r)&&t===`head`&&l!==null&&this.carnage.punched(o,l===`left`?`right`:`left`,r.event_id),Lq(r)&&l!==null&&this.carnage.land(o,s,l,t,r.amount,r.blood,this.contactPoint,r.event_id,d??i.direction),this.flashKnockout?.hitEventId===r.event_id&&p[o].knockOut()}}l&&s>=0&&[`hit`,`counter_hit`,`block`,`perfect_block`,`guard_break`].includes(r.kind)&&p?.[s]?.landedHit(r.action_id,r.kind===`block`||r.kind===`perfect_block`,n.power),(n.presentImpact||!Lq(r))&&this.onContact?.(r,n.power===!0)}this.replay===null&&this.fireRefereeEvents(e);let t=this.refereeReplayAt;if(t!==null&&this.replay===null&&this.frameSeconds>=t.at){this.refereeReplayAt=null;let e=oq(this.history,t.impact,this.simulation.tick_rate,aq.speed,aq.before,aq.after),n=this.buffer.latest(),r=e!==null&&n!==null&&n.phase===`referee_down`&&n.phase_ticks_remaining/this.simulation.tick_rate>=e.durationSeconds-.5;e!==null&&r&&!this.settings().reducedMotion&&this.startReplay(e)}}fireGore(e){for(let t=0;te?t+=1:(this.pendingGore.splice(t,1),this.presentGore(n.event))}}presentGore(e){let t=this.buffer.latest()?.fighters,n=t?.findIndex(t=>t.player_id===(e.kind===`vomit`?e.actor_id:e.target_id))??-1;if(t===void 0||n<0)return;let r=Iq(e.actor_id===e.target_id?void 0:t.find(t=>t.player_id===e.actor_id),t[n],this.mapping)??e.direction;if(e.kind===`vomit`)this.carnage.vomit(n,e.event_id),this.onGore?.({kind:`vomit`});else if(e.kind===`finish_him`)this.arena.excite(1),this.onGore?.({kind:`finish_him`});else if(e.kind===`death`)this.showDeath(n,r,!1),this.announceDeath(n);else if(e.kind===`injury`&&Ue(e.detail)){let i=e.detail;if(!this.carnage.inflict(n,i,e.event_id,r,e.tick))return;this.eventCallout={text:`${tt(i)}!`,until:this.frameSeconds+KJ},this.arena.excite(JJ);let a=this.viewerId!==null&&t[n].player_id===this.viewerId;this.settings().blood!==`off`&&(this.viewerHitFlash=Math.max(this.viewerHitFlash,a?1:.5)),this.settings().reducedMotion||(this.powerShake=Math.min(UJ,this.powerShake+HJ)),this.onGore?.({kind:`injury`,injury:i})}}showDeath(e,t,n){let r=this.deaths[e]??null;if(r===null)return;let i=this.fatal?.index===e?this.fatal:null,a=(i?.hit.event_id??e)+(n?GY:0);i===null?r===`gutted`&&this.carnage.fatality(e,`gutting`,a,t):this.carnage.fatality(e,i.fatality,a,t),this.carnage.die(e,r)}announceDeath(e){let t=this.deaths[e]??null;if(t===null)return;let n=ot(t);this.eventCallout={text:`${st(t)}!`,until:this.frameSeconds+qJ},this.arena.excite(1),this.settings().reducedMotion||(this.powerShake=UJ),n!==null&&this.onGore?.({kind:`fatality`,fatality:n}),this.onGore?.({kind:`death`,cause:t})}noteDeath(e,t,n){let r=n.fighters.findIndex(t=>t.player_id===e.target_id);if(r!==0&&r!==1)return;let i=e.action_id===null?null:t.find(t=>Lq(t)&&t.tick===e.tick&&t.action_id===e.action_id&&t.target_id===e.target_id)??null;if(e.kind===`fatality`){i!==null&&We.includes(e.detail)&&(this.fatal={index:r,fatality:e.detail,hit:i});return}let a=at(e.detail);a!==null&&(this.deaths[r]=a,i===null?this.lastKnockdown=null:(this.flashKnockout={hitEventId:i.event_id,loserId:n.fighters[r].player_id},this.lastKnockdown={knockdown:{...i,kind:`knockdown`},hit:i,blocked:!1,finisher:null}))}presentFightEvent(e,t,n){let r=WJ[e.kind];r!==void 0&&(this.eventCallout={text:r.text,until:this.frameSeconds+r.seconds});let i=this.graphs;if(!(i===null||t<0)&&(e.kind===`parry`&&i[t]?.stagger(),e.kind===`body_collapse`)){let r=n>=0?this.buffer.latest()?.fighters[n]:void 0;i[t]?.windedFor(e.amount/this.simulation.tick_rate+.15,nY(r?.action_key??null))}}recordedHit(e){if(e.action_id===null)return null;for(let t=this.history.length-1;t>=0;--t){let n=this.history[t].events.find(t=>(t.kind===`hit`||t.kind===`counter_hit`)&&t.action_id===e.action_id&&t.target_id===e.target_id);if(n!==void 0)return n}return null}enterRest(e){this.restStartedAt=e,this.effects.clearMouthpieces()}contactOn(e,t,n,r,i){let a=n?null:this.headWorldPose(e),o=n?this.graphs?.[e]?.boxer.rig.bones.upperChest:void 0,s=a?.position??o?.getWorldPosition(this.contactPoint)??null;if(s===null)return SY(this.graphs?.[e],t,this.mapping,this.contactPoint);let c=r??{x:i<0?-1:1,z:0},l=n?fX:dX;return this.contactPoint.set(s.x-c.x*l,s.y,s.z-c.z*l)}gushFromMouth(e,t,n,r){let i=this.tornWound(e,`mouth`);i!==null&&this.effects.gush(e,i.position,i.axis,n,r,t)}anchorGush(e){if(!this.effects.gushing(e)||this.carnage.vomiting(e))return;let t=this.tornWound(e,pX(this.arcadeInjuries[e]??null));t!==null&&this.effects.anchorGush(e,t.position,t.axis)}tornWound(e,t){if(t===`mouth`){let t=this.headWorldPose(e);return t===null?null:{position:this.woundPoint.copy(aX).applyQuaternion(t.quaternion).add(t.position),axis:this.woundAxis.copy(oX).applyQuaternion(t.quaternion)}}let n=this.graphs?.[e]?.boxer;if(n===void 0)return null;n.root.updateMatrixWorld(!0);let r=n.rig.bones,i=t===`shoulder_left`||t===`ribs_left`,a=r.shoulderL.getWorldPosition(this.woundAxis).sub(r.shoulderR.getWorldPosition(this.tmpStumpOffset)).normalize().multiplyScalar(i?1:-1),o=r.upperChest.getWorldPosition(this.tmpStump),s=this.tmpStumpOffset.copy(o).sub(r.hips.getWorldPosition(this.tmpStumpAcross)).normalize();return t===`ribs_left`||t===`ribs_right`?{position:this.woundPoint.copy(o).addScaledVector(a,vX).addScaledVector(s,-.06),axis:a}:((i?r.shoulderL:r.shoulderR).getWorldPosition(this.woundPoint),{position:this.woundPoint,axis:a.addScaledVector(s,.5).normalize()})}refereeMouth(){let e=this.referee?.boxer.rig.bones.head;return e===void 0?null:(e.getWorldPosition(this.tmpHead),e.getWorldQuaternion(this.tmpHeadQuaternion),this.tmpHead.add(this.tmpStumpOffset.copy(mY).applyQuaternion(this.tmpHeadQuaternion)),{position:this.woundPoint.copy(aX).applyQuaternion(this.tmpHeadQuaternion).add(this.tmpHead),axis:this.woundAxis.copy(oX).applyQuaternion(this.tmpHeadQuaternion)})}knockOutMouthpiece(e,t,n,r){let i=this.headWorldPose(e);i!==null&&(this.mouthPoint.set(0,-.075,.1).applyQuaternion(i.quaternion).add(i.position),this.effects.ejectMouthpiece(e,this.mouthPoint,i.quaternion,t,n,this.gearColor(e),r))}get resultVisible(){return this.final!==null&&this.frameSeconds>=this.finalRevealAt}get resolutionScale(){return this.scaler.scale}get diagnostics(){let e=this.renderer.getContext(),t=e.getExtension(`WEBGL_debug_renderer_info`),n=t===null?e.getParameter(e.RENDERER):e.getParameter(t.UNMASKED_RENDERER_WEBGL);return{frameMs:this.frameMsAverage,resolutionScale:this.scaler.scale,gpu:this.memoryInfo,graphics:String(n)}}get memoryInfo(){return{geometries:this.renderer.info.memory.geometries,textures:this.renderer.info.memory.textures,programs:this.renderer.info.programs?.length??0}}applyResolutionScale(){let e=this.basePixelRatio*this.scaler.scale;this.renderer.setPixelRatio(e),this.composer.setPixelRatio(e);let t=this.scaler.scale<=Bq;this.bloomPass.enabled=!t,this.keyLight!==null&&Pq(this.keyLight.shadow,t,this.scaler.scale<.8?1024:2048),this.arena.setLowTier(t),this.effects.setLowTier(t)}setupLights(){let e=new vf(`#33416c`,`#3b2c20`,.6);this.scene.add(e),this.lights.push(e);let t=new Mf(`#fff0da`,185,26,.56,.6,1.7);t.position.set(.9,7.2,4.4),t.target.position.set(0,.6,0),t.castShadow=!0,t.shadow.mapSize.set(2048,2048),t.shadow.bias=jq,t.shadow.camera.near=3,t.shadow.camera.far=14,this.keyLight=t,this.scene.add(t,t.target),this.lights.push(t);let n=new Mf(`#cfdcff`,55,24,.6,.7,1.7);n.position.set(-3.6,5.5,2.2),n.target.position.set(0,.8,0),this.scene.add(n,n.target),this.lights.push(n);for(let[e,t,n,r]of[[`#a9c0ff`,-5.2,3.4,-4.6],[`#9db4ff`,5.2,3.4,-4.6]]){let i=new Mf(e,170,30,.6,.9,1.8);i.position.set(t,n,r),i.target.position.set(0,1.2,0),this.scene.add(i,i.target),this.lights.push(i)}let r=new Mf(`#e4ecff`,85,22,.3,.8,1.5);r.position.set(0,6.4,-4.4),r.target.position.set(0,1,0),this.scene.add(r,r.target),this.lights.push(r),this.followSpot=r}draw(e,t=!1,n=!0){if(this.destroyed)return;let r=e-this.previous,i=t?1/60:Math.min(.05,Math.max(.001,r/1e3));this.previous=e,!t&&this.scaler.record(r)&&this.applyResolutionScale(),!t&&r>0&&r<1e3&&(this.frameMsAverage+=(r-this.frameMsAverage)*.05);let a=Math.min(this.pixelRatioCap,window.devicePixelRatio||1);a!==this.basePixelRatio&&(this.basePixelRatio=a,this.applyResolutionScale());let o=this.canvas.clientWidth,s=this.canvas.clientHeight;o>0&&s>0&&(this.renderer.getSize(this.sizeCheck),(this.sizeCheck.x!==o||this.sizeCheck.y!==s)&&(this.renderer.setSize(o,s,!1),this.composer.setSize(o,s),this.camera.aspect=o/s,this.portraitPull=R.clamp(1.2/this.camera.aspect,1,2.2),this.baseFov=36*Math.min(1.3,Math.sqrt(this.portraitPull)),this.camera.fov=this.baseFov,this.camera.updateProjectionMatrix()));let c=e/1e3;this.frameSeconds=c,this.finishPass.uniforms.uTime.value=c%1e3,t&&(this.lastManualTime=e);let l=this.settings();this.setBloodLevel(l.blood);let u=this.buffer.latest(),d=i,f=u?.result!==null&&u?.result!==void 0&&Zr.has(u.result.finish_method);if(this.cheer(c,i),f&&!this.finishSeen&&(this.finishSeen=!0,this.finishSlowMotion=2.2,this.arena.excite(1)),this.finishSlowMotion>0&&!l.reducedMotion){this.finishSlowMotion=Math.max(0,this.finishSlowMotion-i);let e=Math.min(1,this.finishSlowMotion/.5);i*=.3+.7*(1-e)}this.viewerHitFlash=Math.max(0,this.viewerHitFlash-i*3.2);let p=u===null?0:t?rY(u):this.buffer.renderTick(e),m=this.updateRocked(u===null?null:this.shownAt(p),d,l.reducedMotion);m!==null&&u!==null&&this.onRocked?.(m,u.tick);let h=u===null?null:this.applyLocalPrediction(this.buffer.sample(p),i,e),g=this.replay;if(g!==null){let e=c-g.startedAt;e>=g.plan.durationSeconds||g.plan.impact.kind===`referee_down`&&u?.phase!==`referee_down`?this.endReplay():(p=sq(g.plan,e,this.simulation.tick_rate),h=g.buffer.sample(p)??h,!g.impactFired&&p>=g.plan.impact.tick&&h!==null&&(g.impactFired=!0,this.fireReplayImpact(h)))}let _=this.replay===null?i:i*this.replay.plan.speed,v=1.8,y=!1,b=null;if(h!==null){let e=this.replay===null?this.ceremony:null,[t,n]=e===null?this.standApart(h.fighters,_):this.ceremonyFighters(e,h.fighters,_,c,this.drawnOffsets);for(let[e,t]of h.fighters.entries())this.arcadeInjuries[e]!==null&&this.replay===null&&(t.is_downed?this.observedInjuryDown[e]=!0:this.observedInjuryDown[e]&&h.result===null&&this.restoreInjury(e));let r=this.graphs;if(r!==null){this.wearLook(0,t.player_id),this.wearLook(1,n.player_id);let e=this.headCacheValid[0]?this.headCache[0]:void 0,i=this.headCacheValid[1]?this.headCache[1]:void 0;r[0].boxer.root.visible=!0,r[1].boxer.root.visible=!0;let a=Dq(h,this.simulation.tick_rate);r[0].setResting(a),r[1].setResting(a);let o=h.phase===`countdown`?h.phase_ticks_remaining:null;r[0].setCountdown(o),r[1].setCountdown(o);let s=this.replay!==null||h.phase===`complete`;r[0].stayDown(s),r[1].stayDown(s),h.phase===`fight`&&this.lastPhase===`rest`&&this.replay===null&&(this.roundCalloutUntil=c+Vq,this.roundCalloutRound=h.round_number),h.phase===`rest`&&this.lastPhase!==`rest`&&this.enterRest(c),this.lastPhase=h.phase,this.anticipatePunches(u,p),r[0].setObstacle(r[1].boxer.root.position.x,r[1].boxer.root.position.z),r[1].setObstacle(r[0].boxer.root.position.x,r[0].boxer.root.position.z);let d=this.referee?.boxer.rig.bones.head.getWorldPosition(this.refereeHead)??null;r[0].setRefereeHead(d),r[1].setRefereeHead(d),r[0].update(t,n,_,c,l.reducedMotion,l.blood,p,i),r[1].update(n,t,_,c,l.reducedMotion,l.blood,p,e);let f=h.phase===`finish`?fi(h.fighters,this.finishTargetId):null;for(let[e,t]of h.fighters.entries()){let n=f!==null&&t.player_id===f.player_id;r[e].setDazed(n),this.carnage.sync(e,(this.replay===null?void 0:u?.fighters[e])??t,l,_,c,n)}let m=r[h.fighters.findIndex(e=>e.player_id===this.viewerId)],g=m?.ownPressId??null;if(m!==void 0&&g!==null&&g!==this.soundedPress){this.soundedPress=g;let{punchClass:e,power:t}=m.punchKind;this.onOwnPunch?.(e,t,g)}for(let[e,t]of r.entries()){let n=t.boxer.bone(`head`);n!==null&&(t.boxer.root.updateMatrixWorld(!0),n.getWorldPosition(this.headCache[e]),this.headCacheValid[e]=!0);let r=t.fallBody!==null;r&&!this.fallingLive[e]&&this.replay===null&&(this.liveFallTicks[e]=p),this.fallingLive[e]=r}}for(let e=0;ee.player_id===this.viewerId),C=l.camera===`fighter`&&S>=0&&Eq(h)?this.fighterCam.update(i,c,S===0?this.tmpA:this.tmpB,S===0?this.tmpB:this.tmpA,this.effects.shakeAmount+this.powerShake,l.reducedMotion,this.camera.aspect):null;C===null&&this.fighterCam.reset();let w=this.replay,T=this.cameraOverride??(w!==null&&h!==null?this.replayFrame(h,c-w.startedAt):this.closeUpFrame(c)??this.raiseFrame(c,i,l.reducedMotion)??this.cornerShotFrame(c,h,l.reducedMotion)??this.restWideFrame(h)??this.ceremonyFrame(c)??C??x);this.ownViewActive=C!==null&&T===C;let E=this.ownViewActive?this.baseFov*lV:this.baseFov;if(this.camera.fov!==E&&(this.camera.fov=E,this.camera.updateProjectionMatrix()),this.cameraOverride===null&&this.portraitPull>1&&T.framed!==!0&&!this.ownViewActive){let e=T.tight===!0,t=this.portraitPull/Math.min(1.3,Math.sqrt(this.portraitPull)),n=e?Math.min(t,1.25):t;this.tmpCamera.subVectors(T.position,T.lookAt).multiplyScalar(n),this.camera.position.copy(T.lookAt).add(this.tmpCamera),e&&(this.camera.position.x=R.clamp(this.camera.position.x,-2.2,rJ),this.camera.position.z=R.clamp(this.camera.position.z,-2.2,rJ)),this.camera.lookAt(T.lookAt.x,T.lookAt.y-(this.portraitPull-1)*(e?.08:.45),T.lookAt.z)}else this.camera.position.copy(T.position),this.camera.lookAt(T.lookAt);this.effects.setViewDistance(this.camera.position.distanceTo(T.lookAt)),this.arena.makeRoomForCamera(this.camera.position);let D=T===x?iw(Math.max(this.tmpA.z,this.tmpB.z)):T.framed===!0?wJ:1;this.ring.setNearRopeOpacity(this.ring.nearRopeOpacity()+(D-this.ring.nearRopeOpacity())*(1-Math.exp(-6*i))),this.updateGetUp(),n&&(this.composer.render(),this.bloomPass.enabled&&this.carnage.drawBreak(this.renderer,this.scene,this.camera,this.arena.group),this.drawHudOverlay(h)),!this.destroyed&&!this.manualClock&&(this.raf=requestAnimationFrame(e=>this.draw(e)))}applyLocalPrediction(e,t,n){if(e===null||this.localInput===null||this.viewerId===null)return e;let r=e.fighters.findIndex(e=>e.player_id===this.viewerId),i=this.localInput()??{moveX:0,moveY:0,defense:`none`},a=(this.inputLatencyMs??60)/1e3*this.simulation.tick_rate+this.buffer.interpolationDelayTicks,o=this.ownCollapseUntil>e.tick,s=e.phase===`fight`||e.phase===`finish`&&r>=0&&fi(e.fighters,this.finishTargetId)!==e.fighters[r],c=r>=0&&s&&!o?e.fighters[r]:null,l=this.evasion.holdsFeet(n)?0:this.graphs?.[r]?.ownFootwork??1,u=this.movement.update(c,i,l,n,a,e.tick,t,this.simulation.tick_rate),d=this.evasion.pose(n);if(r<0)return e;let f=e.fighters[r],p=c===null?f.defense:sB(c,i,d,this.evasion.hidesServerEvasion(n));if(Math.abs(u.dx)<.01&&Math.abs(u.dy)<.01&&p===f.defense)return e;let m=aB(f,u,e.fighters[+(r===0)]??null),h={...f,x:f.x+m.dx,y:f.y+m.dy,defense:p},g=r===0?[h,e.fighters[1]]:[e.fighters[0],h];return{...e,fighters:g}}anticipatePunches(e,t){if(!(this.replay!==null||e===null||e.phase!==`fight`&&e.phase!==`finish`))for(let[n,r]of(this.graphs??[]).entries()){let i=e.fighters[n];i!==void 0&&!i.is_downed&&r.anticipate(i,i.action_start_tick-t)}}cheer(e,t){ee.clinch_ticks>0||e.clinch_startup_ticks>0||e.is_downed)?null:DY(n.x,n.y,r.x,r.y,dJ,u-f,d-f,S),[a,o]=this.drawnTargets;a.x=i===null?0:i.ax-n.x,a.y=i===null?0:i.ay-n.y,o.x=i===null?0:i.bx-r.x,o.y=i===null?0:i.by-r.y,this.clearOfTheFallen(e);let s=1-Math.exp(-14*t);for(let e of[0,1]){let n=this.drawnOffsets[e],r=this.drawnTargets[e],i=r.x-n.x,a=r.y-n.y;if(this.drawnOffsetsLive){i*=s,a*=s;let e=Math.hypot(i,a);e>fJ*t&&(i*=fJ*t/e,a*=fJ*t/e)}n.x+=i,n.y+=a}return this.drawnOffsetsLive=!0,[this.drawnAt(0,n),this.drawnAt(1,r)]}drawnAt(e,t){let n=this.drawnOffsets[e];if(Math.abs(n.x)<.01&&Math.abs(n.y)<.01)return t;let r=iB(t.x+n.x,t.y+n.y);return Object.assign(this.drawnFighters[e],t,{x:r.x,y:r.y})}clearOfTheFallen(e){for(let t of[0,1]){let n=this.graphs?.[t]?.fallBody??null,r=+(t===0),i=e[r];if(n===null||i.is_downed||(this.graphs?.[r]?.fallBody??null)!==null)continue;let a=this.drawnTargets[r],o=this.mapping.x(i.x+a.x),s=this.mapping.z(i.y+a.y),c=this.clearOf(n,o,s);a.x+=(c.x-o)/this.mapping.x(1),a.y+=(c.z-s)/this.mapping.z(1);return}}clearOf(e,t,n){let r={x:t,z:n};for(let t of[0,1,2,3,4])e.bodyPoint(t,this.bodyPoint),r=CY(r.x,r.z,this.bodyPoint.x,this.bodyPoint.z,cJ);let i=this.insideRopes(r.x,r.z);if(Math.hypot(i.x-r.x,i.z-r.z)<1e-6)return r;let a=t=>[0,1,2,3,4].every(n=>(e.bodyPoint(n,this.bodyPoint),Math.hypot(t.x-this.bodyPoint.x,t.z-this.bodyPoint.z)>=.499999));for(let e=pJ;e<=2.000000001;e+=pJ)for(let[t,n]of[[1,0],[-1,0],[0,1],[0,-1]]){let r=this.insideRopes(i.x+t*e,i.z+n*e);if(a(r))return r}return i}insideRopes(e,t){let n=iB(e/this.mapping.x(1),t/this.mapping.z(1));return{x:this.mapping.x(n.x),z:this.mapping.z(n.y)}}headHeightOf(e){return(this.graphs?.[e]?.boxer.metrics.headRestY??1.52)+.04}bleed(e,t,n){for(let[r,i]of e.entries()){let e=hX(i,this.graphs?.[r],this.flashKnockout?.loserId),a=this.arcadeInjuries[r]??null,o=a!==null,s=(i.trauma.bleeding+i.trauma.left_cut+i.trauma.right_cut)/380,c=o?Math.max(s,tX):s;if(c>.05&&!e)this.downedPoolAccumulators[r]=0,this.downedPoolCounts[r]=0,this.effects.drip(this.dripPoint(r),c,n.reducedMotion,r);else if(c>$Y&&e&&n.blood!==`off`){this.effects.stopDrip(r),this.downedPoolAccumulators[r]+=t*5*(o?nX:1);let e=this.poolSource(r,a);for(;this.downedPoolAccumulators[r]>=1;){--this.downedPoolAccumulators[r];let t=this.downedPoolCounts[r];this.downedPoolCounts[r]=t+1;let n=mX(t,c,o?rX:eX),i=t*2.399963+r*Math.PI;this.effects.pool(e.x+Math.sin(i)*n*.25,e.z+Math.cos(i)*n*.25,n,t+r*7)}}else this.effects.stopDrip(r),this.downedPoolAccumulators[r]=0,e||(this.downedPoolCounts[r]=0)}}dripPoint(e){let t=this.headWorldPose(e);if(t!==null)return t.position.add(this.tmpStumpOffset.copy(iX).applyQuaternion(t.quaternion));if(this.headCacheValid[e])return this.tmpHead.copy(this.headCache[e]);let n=e===0?this.tmpA:this.tmpB;return this.tmpHead.set(n.x,this.headHeightOf(e),n.z)}poolSource(e,t){if(t===`dismember_left`||t===`dismember_right`){let n=this.handWorldPose(e,t===`dismember_left`?`left`:`right`);if(n!==null)return n.position}let n=pX(t);if(n!==`mouth`){let t=this.tornWound(e,n);if(t!==null)return t.position}return this.headCacheValid[e]?this.headCache[e]:e===0?this.tmpA:this.tmpB}updateBlobShadows(){let e=[this.tmpA,this.tmpB,this.refereePosition];for(let[t,n]of this.blobShadows.entries()){n.visible=t>=2||!this.carnage.gibbed(t);let r=t<2?this.graphs?.[t]:this.referee??void 0,i=r?.fallBody?.centre(this.bodyPoint)??null??(r?.boxer.root.visible===!0?r.currentRoot:e[t]);n.position.x=i.x,n.position.z=i.z;let a=t<2?this.buffer.latest()?.fighters[t]:void 0,o=t<2?a!==void 0&&hX(a,r,this.flashKnockout?.loserId):r?.isDown===!0;n.scale.set(o?2.1:1.25,o?.9:.85,1)}}updateFootShadows(){for(let[e,t]of this.footShadows.entries()){let n=e>>1,r=this.graphs?.[n]?.boxer;t.visible=r!==void 0&&r.root.visible&&!this.carnage.gibbed(n),r!==void 0&&t.visible&&(r.rig.bones[e%2==0?`ankleL`:`ankleR`].getWorldPosition(this.footPoint),t.position.x=this.footPoint.x,t.position.z=this.footPoint.z,t.material.opacity=pY(this.footPoint.y-r.metrics.ankleRestY))}}updateReferee(e,t,n,r){let i=this.referee;if(i===null)return;let a=this.replay===null||this.replay.plan.impact.kind===`referee_down`;i.boxer.root.visible=a;let o=this.blobShadows[2];o!==void 0&&(o.visible=a);let s=n?.referee??null,c=this.replay!==null&&this.replay.plan.impact.kind===`referee_down`?this.replay:null;!this.refereePlaced&&s!==null&&(this.refereePlaced=!0,this.refereePosition.set(this.mapping.x(s.x),0,this.mapping.z(s.y)));let l=this.refereeReplayAt!==null||this.pendingRefereeEvents.some(e=>e.kind===`referee_down`);s?.alive===!0&&i.isDown&&this.replay===null&&n?.phase!==`referee_down`&&!l&&i.resetTransient(!1),s===null||s.alive||i.isDown||this.replay!==null||l||(this.refereePosition.set(this.mapping.x(s.x),0,this.mapping.z(s.y)),i.knockOut(),this.refereeFallUnseen=!0);let u=s!==null&&(n?.phase===`fight`&&s.alive||c!==null&&!c.impactFired)?s:null,d=s?.alive===!1&&(c===null||c.impactFired),f=n?.fighters.find(e=>e.is_downed)??(n?.phase===`knockdown`?n.fighters.find(e=>e.player_id===this.lastKnockdown?.knockdown.target_id):void 0)??null,p=n?.fighters.some(e=>e.clinch_ticks>0||e.clinch_startup_ticks>0)??!1,m=f===null&&i.breaking,h=f===null?void 0:this.graphs?.[n?.fighters.indexOf(f)??-1],g=h?.fallBody?.centre(this.bodyPoint)??null,_=f!==null&&!f.is_downed?h?.currentRoot??null:null,v=f===null?(this.tmpA.x+this.tmpB.x)/2:g?.x??_?.x??this.mapping.x(f.x),y=f===null?(this.tmpA.z+this.tmpB.z)/2:g?.z??_?.z??this.mapping.z(f.y),b=this.refereeAway.set(this.refereePosition.x-v,0,this.refereePosition.z-y);if(b.lengthSq()<.01&&b.set(0,0,-1),b.normalize(),m){let e=this.tmpB.z-this.tmpA.z,t=this.tmpA.x-this.tmpB.x,n=Math.hypot(e,t),r=e*b.x+t*b.z>=0?1:-1;n>.01&&b.set(e/n*r,0,t/n*r)}let{standoff:x,clearance:S}=TX(f!==null,p,m),C=R.clamp(v+b.x*x,-2.4,2.4),w=R.clamp(y+b.z*x,-2.4,2.4),T=this.refereePosition.x,E=this.refereePosition.z,D=this.replay===null&&this.ceremony?.positions!==null?this.ceremony:null,O=!d&&D===null&&this.replay===null&&this.stoppageWinner>=0&&this.frameSeconds>=this.stoppageRaiseAt?this.stoppageWinner===0?this.tmpA:this.tmpB:null,k=O===null?null:this.stoppageSpot??=this.raiseSpot(O,this.stoppageWinner===0?this.tmpB:this.tmpA),ee=k!==null&&k.x<0?-1:1;if(d)D!==null&&(D.refereeArrived=!0);else if(O!==null&&k!==null){let t=kJ(this.refereePosition.x,this.refereePosition.z,{x:O.x+k.x,y:O.z+k.z},EJ*e);this.refereePosition.x=t.x,this.refereePosition.z=t.y}else if(D!==null){let t=kJ(this.refereePosition.x,this.refereePosition.z,{x:CJ.x,y:CJ.z},EJ*e);this.refereePosition.x=t.x,this.refereePosition.z=t.y,D.refereeArrived=t.arrived}else if(u!==null){let t=c===null?1-Math.exp(-20*e):1;this.refereePosition.x+=(this.mapping.x(u.x)-this.refereePosition.x)*t,this.refereePosition.z+=(this.mapping.z(u.y)-this.refereePosition.z)*t}else{let t=1-Math.exp(-(m?8:1.6)*e),n=m?Math.min(1,hJ*e/Math.max(1e-6,Math.hypot(C-this.refereePosition.x,w-this.refereePosition.z)*t)):1;this.refereePosition.x+=(C-this.refereePosition.x)*t*n,this.refereePosition.z+=(w-this.refereePosition.z)*t*n}let A=O===null?D===null?u!==null||d?0:S:D.refereeArrived?0:SJ:Xq*.85;for(let e of A>0?[this.tmpA,this.tmpB]:[]){let t=this.refereePosition.x-e.x,n=this.refereePosition.z-e.z,r=Math.hypot(t,n);r.001&&(this.refereePosition.x=e.x+t/r*A,this.refereePosition.z=e.z+n/r*A)}for(let e of D!==null||d?[]:this.graphs??[]){let t=e.fallBody;if(t!==null)for(let e of[0,1,2,3,4]){t.bodyPoint(e,this.bodyPoint);let n=CY(this.refereePosition.x,this.refereePosition.z,this.bodyPoint.x,this.bodyPoint.z,sJ);this.refereePosition.x=n.x,this.refereePosition.z=n.z}}for(let e of d?[]:[0,1]){if(!this.effects.severedHeadPosition(e,this.closeUpTarget))continue;let t=CY(this.refereePosition.x,this.refereePosition.z,this.closeUpTarget.x,this.closeUpTarget.z,iJ);this.refereePosition.x=t.x,this.refereePosition.z=t.z}if(c===null&&!d){let t=this.refereePosition.x-T,n=this.refereePosition.z-E,r=Math.hypot(t,n),i=BJ*e;r>i&&(this.refereePosition.x=T+t/r*i,this.refereePosition.z=E+n/r*i)}e>0&&this.refereeVelocity.set((this.refereePosition.x-T)/e,0,(this.refereePosition.z-E)/e);let te=O!==null&&k!==null&&Math.hypot(this.refereePosition.x-O.x-k.x,this.refereePosition.z-O.z-k.z)<=Qq,j=D!==null&&!D.refereeArrived,ne=O===null?D===null?u===null?Math.atan2(v-this.refereePosition.x,y-this.refereePosition.z):Math.atan2(u.facing_x,-u.facing_y):j?Math.atan2(CJ.x-this.refereePosition.x,CJ.z-this.refereePosition.z):0:te?0:Math.atan2(O.x-this.refereePosition.x,O.z-this.refereePosition.z);if(O!==null){let e=this.graphs?.[this.stoppageWinner]?.boxer.rig.bones,t=n?.fighters[this.stoppageWinner]?.injuries??[],r=YJ(t,`left`),a=!te||e===void 0?null:r&&YJ(t,`right`)?this.nearerGlove(e.gloveL,e.gloveR):(r?e.gloveL:e.gloveR).getWorldPosition(this.stoppageWrist);i.raise(ee<0?a:null,ee>0?a:null)}let re=((ne-this.refereeYaw+Math.PI)%(Math.PI*2)+Math.PI*2)%(Math.PI*2)-Math.PI;this.refereeYaw+=re*(1-Math.exp(-(m?8:3)*e));let ie=EX(this.refereePosition,this.refereeYaw,this.refereeVelocity,this.mapping,s);i.setRefereeCount(f!==null,f?.get_up_count??0);let M=f===null?n?.fighters.findIndex(e=>e.stunned_ticks>0)??-1:-1,N=M===0?this.tmpA:this.tmpB,ae=f===null?M>=0?b.set(N.x,1.5,N.z):null:b.set(v,f.is_downed?.25:1.5,y);i.aimBreak(this.tmpA,this.tmpB,ae,n?.phase===`finish`?`stand_back`:`watch`);let oe=this.settings();if(i.update(ie.self,ie.focus,e,t,oe.reducedMotion,oe.blood,r),this.refereeFallUnseen&&(this.refereeFallUnseen=!1,i.fallBody?.settle()),this.effects.gushing(2)){let e=this.refereeMouth();e!==null&&this.effects.anchorGush(2,e.position,e.axis)}this.poolUnderReferee(s?.alive===!1,d,e,oe.blood)}poolUnderReferee(e,t,n,r){if(!e&&this.replay===null&&(this.refereePoolAccumulator=0,this.refereePoolCount=0),!t||r===`off`||this.referee===null)return;this.refereePoolAccumulator+=n*5*nX;let i=this.referee.boxer.rig.bones.head.getWorldPosition(this.refereeHead);for(;this.refereePoolAccumulator>=1;){--this.refereePoolAccumulator;let e=this.refereePoolCount,t=mX(e,tX,rX);if(t>=rX)return;this.refereePoolCount=e+1;let n=e*2.399963;this.effects.pool(i.x+Math.sin(n)*t*.25,i.z+Math.cos(n)*t*.25,t,e+14)}}updateTrails(e,t){let n=this.graphs;if(!(n===null||this.trails.length<4)){for(let[r,i]of n.entries())for(let[n,a]of[`gloveL`,`gloveR`].entries()){let o=this.trails[r*2+n],s=this.glows[r*2+n];if(!i.boxer.root.visible||!this.carnage.hasGlove(r,n===0?`left`:`right`)){o.reset(),s?.reset();continue}i.boxer.rig.bones[a].getWorldPosition(this.trailGlove);let c=i.powerHeat(n===0?`left`:`right`);o.update(this.trailGlove,e,this.camera.position,!t&&this.replay===null&&!i.isDown,c),s?.update(this.trailGlove,c,e,t,this.camera)}for(let t of this.impactFlashes)t.update(e,this.camera);this.powerShake*=.02**e}}presentPowerHit(e,t){let n=!t.detail.endsWith(`:body`)&&this.headCacheValid[e]===!0?this.headCache[e]:void 0;n===void 0?this.powerHitPoint.set(this.contactPoint.x,t.detail.endsWith(`:body`)?1.05:1.55,this.contactPoint.z):this.powerHitPoint.copy(n),this.impactFlashes[e]?.fire(this.powerHitPoint),this.powerShake=Math.min(UJ,this.powerShake+HJ)}updateCornermen(e,t,n,r){let i=this.cornermen;if(i===null)return;let a=Dq(n,this.simulation.tick_rate),o=n?.phase===`complete`?this.final:null;for(let[s,c]of i.entries()){let i=s===0?-1:1,l=o===null?`work`:this.deaths[s]===null?o.winner_id!==null&&o.winner_id===n?.fighters[s]?.player_id?`cheer`:`work`:`mourn`,u=a||l!==`work`,d=u?mJ:nJ;this.cornermanPosition.set(i*d,0,-i*d);let f=s===0?3*Math.PI/4:-Math.PI/4;c.attend(u,l);let p=EX(this.cornermanPosition,f,this.cornermanVelocity,this.mapping);c.update(p.self,p.focus,e,t,!1,`off`,r)}}updateCutmen(e,t,n,r){let i=this.cutmen,a=this.graphs;if(i===null||a===null)return;let o=n?.phase===`rest`,s=this.mapping.x(l);for(let[c,l]of i.entries()){let i=c===0?-1:1,u=o&&a[c].stoolVisible?1:0,d=this.cutmanProgress[c],f=d+Math.sign(u-d)*Math.min(Math.abs(u-d),e/gJ);this.cutmanProgress[c]=f;let p=l.boxer.root.visible;if(l.boxer.root.visible=f>.005,!l.boxer.root.visible)continue;this.cutmanFrom.set(i*nJ,0,-i*2.42),eV(c===0?0:1,s,ZB,32,this.cutmanTo);let m=f*f*(3-2*f);this.cornermanPosition.copy(this.cutmanFrom).lerp(this.cutmanTo,m);let h=this.cutmanLast[c];p||h.copy(this.cornermanPosition),this.cornermanVelocity.copy(this.cornermanPosition).sub(h).divideScalar(Math.max(e,.001)),h.copy(this.cornermanPosition);let g=f>.02&&f<_J,_=this.headCacheValid[c]?this.headCache[c]:null,v=g?Math.atan2(this.cutmanTo.x-this.cutmanFrom.x,this.cutmanTo.z-this.cutmanFrom.z)+(u===1?0:Math.PI):f>=_J?_===null?Math.atan2(i,-i):Math.atan2(_.x-this.cutmanTo.x,_.z-this.cutmanTo.z):Math.atan2(-this.cutmanFrom.x,-this.cutmanFrom.z),y=tY(n?.fighters[c]);if(f>=_J&&_!==null){let e=a[c].boxer.root.rotation.y;this.cutmanFacing.set(Math.sin(e),0,Math.cos(e)),this.cutmanEye.copy(_).addScaledVector(this.cutmanFacing,.09),this.cutmanEye.x+=Math.cos(e)*y.side*y.lateral,this.cutmanEye.z-=Math.sin(e)*y.side*y.lateral,this.cutmanEye.y+=y.lift;let t=n?.fighters[c]?.trauma,r=t===void 0||y.prop===`bottle`?0:Math.min(1,Math.max(t.left_cut,t.right_cut)/vJ);l.treat(this.cutmanEye,this.cutmanFacing,y.side,y.prop,r)}else l.treat(null);let b=EX(this.cornermanPosition,v,this.cornermanVelocity,this.mapping);l.update(b.self,b.focus,e,t,!1,`off`,r)}}drawHudOverlay(e){let t=Tq(this.hudCanvas);if(t===null)return;let{context:n,viewport:r}=t;if(this.hudViewport.width=r.width,this.hudViewport.height=r.height,n.clearRect(0,0,r.width,r.height),e===null)return;let i=this.settings();if(this.viewerHitFlash>.01&&!i.reducedMotion){let e=n.createRadialGradient(r.width/2,r.height/2,r.width*.12,r.width/2,r.height/2,r.width*.7);e.addColorStop(0,`rgba(255,235,225,${(this.viewerHitFlash*.18).toFixed(3)})`),e.addColorStop(1,`rgba(140,0,10,${(this.viewerHitFlash*.55).toFixed(3)})`),n.fillStyle=e,n.fillRect(0,0,r.width,r.height)}let a=XY(Math.max(...e.fighters.map(e=>e.trauma.head+e.trauma.body)),i.blood);if(a>0){let e=n.createRadialGradient(r.width/2,r.height/2,r.width*.2,r.width/2,r.height/2,r.width*.72);e.addColorStop(0,`rgba(90,0,8,0)`),e.addColorStop(1,`rgba(75,0,8,${a.toFixed(3)})`),n.fillStyle=e,n.fillRect(0,0,r.width,r.height)}i.reducedMotion||this.effects.drawLens(n,r.width,r.height);let o=this.deaths[0]??this.deaths[1],s=this.replay===null?null:this.replay.plan.impact.kind===`referee_down`?`REFEREE DOWN`:o===null?`KNOCKOUT REPLAY`:ot(o)===null?`DEATH REPLAY`:`FATALITY REPLAY`;xi(n,r.width,r.height,e,this.players,this.viewerId,this.frameSeconds>=this.finalRevealAt?this.final:null,this.reconnectMs,this.simulation.tick_rate,this.roundStats,s,this.lagWarned?this.inputLatencyMs:null,this.frameSecondsthis.avatars.get(e),this.lastKnockdown?.knockdown.target_id??null,this.touchControls&&e.fighters.some(e=>e.player_id===this.viewerId),this.powerHeld?.()===!0,o,this.finishTargetId,!i.reducedMotion,this.getUpFrame),this.drawCaption(n,r.width,r.height,e)}updateRocked(e,t,n){let r=e?.fighters.find(e=>e.player_id===this.viewerId),i=e===null||this.replay!==null||this.final!==null?0:tq(r,e.phase),a=this.rocked.update(n?0:i,t);return this.finishPass.uniforms.uRocked.value=n?0:a,r===void 0?null:i}shownAt(e){for(let t=this.history.length-1;t>=0;--t)if(this.history[t].tick<=e)return this.history[t];return null}drawCaption(e,t,n,r){let i=this.final!==null&&this.frameSeconds>=this.finalRevealAt?this.final:null;i!==null&&!this.resultAnnounced&&(this.resultAnnounced=!0,this.commentary.resultShown(this.frameSeconds));let a=this.commentary.current(this.frameSeconds),o=this.settings(),s=a===null||!o.commentary?``:a.line.text;if(s!==this.captionText&&(this.captionText=s,this.hudCanvas.dataset.caption=s),a===null||!o.commentary)return;let c=r.fighters.find(e=>e.player_id===this.viewerId),l=yr(t,n),u=i===null?null:kY(i,t,n,r.fighters,this.players,this.roundStats,this.viewerId,this.deaths[0]??this.deaths[1])/l,d=this.frameSeconds0});p!==null&&(e.save(),e.scale(l,l),AV(e,a,p,o.reducedMotion),e.restore())}destroy(){if(!this.destroyed){if(this.destroyed=!0,cancelAnimationFrame(this.raf),this.raf=0,this.buffer.clear(),this.dedupe.reset(),this.pendingContacts.length=0,this.pendingGore.length=0,this.carnage.dispose(),this.effects.dispose(),this.avatars.dispose(),this.arena.dispose(),Sw(this.ring),this.graphs!==null){for(let e of this.graphs)this.scene.remove(e.boxer.root),e.dispose();this.graphs=null}this.referee!==null&&(this.scene.remove(this.referee.boxer.root),this.referee.dispose(),this.referee=null);for(let e of this.trails)this.scene.remove(e.mesh),e.dispose();this.trails=[];for(let e of this.glows)this.scene.remove(e.mesh),e.dispose();this.glows=[];for(let e of this.impactFlashes)this.scene.remove(e.group),e.dispose();if(this.impactFlashes=[],this.glowMap?.dispose(),this.glowMap=null,this.cornermen!==null){for(let e of this.cornermen)this.scene.remove(e.boxer.root),e.dispose();this.cornermen=null}if(this.cutmen!==null){for(let e of this.cutmen)this.scene.remove(e.boxer.root),e.dispose();this.cutmen=null}for(let e of this.lights)this.scene.remove(e);this.keyLight?.shadow.map?.dispose(),this.keyLight?.shadow.dispose(),this.blobTexture.dispose();for(let e of[...this.blobShadows,...this.footShadows])this.scene.remove(e),e.geometry.dispose(),e.material.dispose();this.renderer.renderLists.dispose(),kq(this.composer),this.bloomPass.materialHighPassFilter.dispose(),Fw(),this.renderer.dispose(),this.hudCanvas.remove()}}},OX=[`broadcast`,`close`,`fighter`],kX=`hands.preferences.v1`,AX={length:0,clear:()=>void 0,getItem:()=>null,key:()=>null,removeItem:()=>void 0,setItem:()=>void 0},jX=()=>{try{return window.localStorage}catch{return AX}},MX=()=>({volume:.7,haptics:!0,reducedMotion:window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches??!1,blood:`full`,commentary:!0,announcer:!0,camera:`broadcast`});function NX(e=jX()){let t=MX();try{let n=JSON.parse(e.getItem(kX)??`null`);if(typeof n!=`object`||!n||Array.isArray(n))return t;let r=n;return{volume:typeof r.volume==`number`&&Number.isFinite(r.volume)?Math.max(0,Math.min(1,r.volume)):t.volume,haptics:typeof r.haptics==`boolean`?r.haptics:t.haptics,reducedMotion:typeof r.reducedMotion==`boolean`?r.reducedMotion:t.reducedMotion,blood:r.blood===`reduced`||r.blood===`off`||r.blood===`full`?r.blood:t.blood,commentary:typeof r.commentary==`boolean`?r.commentary:t.commentary,announcer:typeof r.announcer==`boolean`?r.announcer:t.announcer,camera:OX.includes(r.camera)?r.camera:t.camera}}catch{return t}}function PX(e,t=jX()){try{t.setItem(kX,JSON.stringify({volume:Math.max(0,Math.min(1,e.volume)),haptics:e.haptics,reducedMotion:e.reducedMotion,blood:e.blood,commentary:e.commentary,announcer:e.announcer,camera:e.camera}))}catch{}}var FX=class{value;listeners=new Set;constructor(e=jX()){this.storage=e,this.value=NX(e)}storage;get current(){return this.value}update(e){this.value={...this.value,...e},PX(this.value,this.storage);for(let e of this.listeners)e(this.value)}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}destroy(){this.listeners.clear()}},IX={stage:`bootstrapping`,player:null,playerId:null,role:null,players:{},playerOrder:[],simulation:null,snapshot:null,final:null,select:null,serverTick:0,nextSequence:0,reconnectMs:0,safeError:null},LX=e=>Object.fromEntries(e.map(e=>[e.id,e]));function RX(e,t){if(t.type===`bootstrap`)return{...e,stage:`authorizing`,simulation:t.simulation,safeError:null};if(t.type===`authorized`)return{...e,stage:`connecting`,player:t.player,safeError:null};if(t.type===`connecting`)return{...e,stage:`connecting`};if(t.type===`reconnect-tick`)return{...e,stage:`paused`,reconnectMs:Math.max(0,t.remainingMs)};if(t.type===`fatal`)return{...e,stage:`fatal`,safeError:t.code,reconnectMs:0};let n=t.message;switch(n.type){case`welcome`:return{...e,playerId:n.role===`fighter`?n.player_id:null,role:n.role,players:LX(n.players),playerOrder:n.players.map(e=>e.id),serverTick:n.server_tick,nextSequence:n.role===`fighter`?n.next_sequence:0,safeError:null};case`ticket`:return e;case`waiting`:return{...e,stage:`waiting`,select:null};case`select`:return{...e,stage:`select`,select:n,players:LX(n.players),playerOrder:n.players.map(e=>e.id)};case`ready`:return{...e,stage:e.snapshot?.phase??`countdown`,select:null,players:LX(n.players),playerOrder:n.players.map(e=>e.id)};case`paused`:return{...e,stage:`paused`,reconnectMs:n.grace_ms};case`resumed`:return{...e,stage:e.snapshot?.phase??`countdown`,reconnectMs:0};case`snapshot`:return{...e,stage:n.payload.phase,snapshot:n.payload,serverTick:Math.max(e.serverTick,n.payload.tick)};case`final`:return{...e,stage:`complete`,final:n,reconnectMs:0};case`error`:return{...e,stage:`fatal`,safeError:n.code,reconnectMs:0}}}var zX=new Set([`hit`,`counter_hit`,`block`,`perfect_block`,`guard_break`,`knockdown`,`parry`,`body_collapse`,`eye_shut`,`referee_hit`,`referee_down`]),BX=11e3,VX=1500,HX=4e3,UX=3e3,WX=6,GX=5e3,KX=[{level:`rookie`,label:`Rookie`,detail:`Slow hands, leaves openings`},{level:`contender`,label:`Contender`,detail:`Works the body, punishes mistakes`},{level:`champion`,label:`Champion`,detail:`Slips, counters, finishes`}],qX=e=>dn.includes(e),JX=class{root;reloadPage;authorizer;state=IX;settings=new FX;input=new XL;audio=new pA(()=>this.settings.current);haptics=new jL(()=>this.settings.current);voice=new Li(()=>this.settings.current);feedbackEvents=new uR;soundedPunches=[];renderer=null;network=null;session=null;abort=new AbortController;destroyed=!1;generation=0;reloadOnRetry=!1;reloading=!1;canvas;status;overlay;roleIndicator;controlsButton;controlsPanel;retry;rematchButton;hint;cpuPicker;cpuPrompt;cpuLevel=null;rematchOpponent=null;lastPhase=null;cpuRematchLevel=null;cpuRematch=null;cpuRematchTimer=null;diagnosticsTimer=null;finalReceivedAt=0;lastFinalMatchId=null;rematchAttempts=0;rematchTimer=null;rematchCountdownTimer=null;resultRevealTimer=null;resultWaitTimer=null;completeSince=null;summaryClock=new Kr;fightSummary;liveFightStatus;finalSummary;corner;stylePicker;constructor(e,t=()=>window.location.reload(),n=new fL){this.root=e,this.reloadPage=t,this.authorizer=n,e.innerHTML=`
HANDStwo-player boxing

`,this.canvas=e.querySelector(`canvas`),this.status=e.querySelector(`[data-status]`),this.overlay=e.querySelector(`[data-overlay]`),this.roleIndicator=e.querySelector(`[data-role]`),this.controlsButton=e.querySelector(`[data-controls]`),this.controlsPanel=e.querySelector(`[data-controls-panel]`),this.retry=e.querySelector(`[data-retry]`),this.rematchButton=e.querySelector(`[data-rematch]`),this.hint=e.querySelector(`[data-hint]`),this.cpuPicker=e.querySelector(`[data-cpu]`),this.cpuPrompt=e.querySelector(`[data-cpu-prompt]`),this.cpuPicker.addEventListener(`click`,this.onCpuPick),this.rematchButton.addEventListener(`click`,this.onRematch),this.fightSummary=e.querySelector(`[data-fight-summary]`),this.liveFightStatus=e.querySelector(`[data-fight-status]`),this.finalSummary=e.querySelector(`[data-final]`),this.retry.addEventListener(`click`,this.onRetry),this.bindPanels(),this.syncSettings(),this.input.attachTouch(e.querySelector(`.activity`)),this.corner=new wL(e.querySelector(`.activity`),e=>this.network?.sendCornerChoice(e)??!1),this.stylePicker=new kn(e.querySelector(`.activity`),(e,t)=>this.network?.chooseStyle(e,t)??!1),this.input.setViewForward(()=>this.renderer?.viewForward()??null),window.addEventListener(`keydown`,this.onCameraKey)}onCameraKey=e=>{if(e.code!==`KeyK`||e.repeat||e.ctrlKey||e.metaKey||e.altKey)return;let t=e.target;if(t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement)return;e.preventDefault();let n=OX[(OX.indexOf(this.settings.current.camera)+1)%OX.length];this.settings.update({camera:n}),this.root.querySelector(`[data-camera]`).value=n};start(){this.authorize()}resetForAuthorization(){this.reloadOnRetry=!1,this.network?.dispose(),this.network=null,this.session?.destroy(),this.session=null,this.renderer?.destroy(),this.renderer=null,this.voice.cancel(),this.audio.reset(),this.abort.abort(),this.abort=new AbortController,this.state=IX,this.feedbackEvents.reset(),this.input.setActive(!1),this.input.reset(),this.finalSummary.textContent=``,this.fightSummary.textContent=``,this.liveFightStatus.textContent=``,this.clearRematchTimers(),this.rematchButton.hidden=!0,this.cpuLevel=null,this.lastPhase=null}onCpuPick=e=>{let t=e.target?.closest(`[data-cpu-level]`)?.dataset.cpuLevel;qX(t)&&this.state.stage===`waiting`&&this.state.role===`fighter`&&this.cpuLevel===null&&this.callCpu(t)};callCpu(e){this.network?.requestCpu(e)===!0&&(this.cpuLevel=e,this.renderState())}get cpuBout(){return Object.values(this.state.players).some(e=>e.cpu===!0)}onRematch=()=>{this.rematchButton.disabled||this.state.stage!==`complete`||(this.rematchAttempts=1,this.rematchOpponent=this.cpuBout||this.state.role!==`fighter`?null:Object.values(this.state.players).find(e=>e.id!==this.state.playerId)?.name??null,this.authorize())};clearRematchTimers(){this.rematchTimer!==null&&window.clearTimeout(this.rematchTimer),this.rematchCountdownTimer!==null&&window.clearInterval(this.rematchCountdownTimer),this.rematchTimer=null,this.rematchCountdownTimer=null,this.clearCpuRematch()}scheduleCpuRematch(e){this.clearCpuRematch(),this.cpuRematch={level:e,at:Date.now()+GX},this.cpuRematchTimer=window.setInterval(()=>{let e=this.cpuRematch;e===null||this.state.stage!==`waiting`||this.state.role!==`fighter`||this.cpuLevel!==null?this.clearCpuRematch():Date.now()>=e.at&&(this.clearCpuRematch(),this.callCpu(e.level)),this.renderState()},250)}clearCpuRematch(){this.cpuRematchTimer!==null&&window.clearInterval(this.cpuRematchTimer),this.cpuRematchTimer=null,this.cpuRematch=null}awaitResultReveal(){this.resultRevealTimer!==null&&window.clearInterval(this.resultRevealTimer);let e=()=>{let e=this.renderer?.resultVisible??!0;this.overlay.hidden=this.state.stage===`complete`&&!e,(e||this.state.stage!==`complete`)&&this.resultRevealTimer!==null&&(window.clearInterval(this.resultRevealTimer),this.resultRevealTimer=null)};this.resultRevealTimer=window.setInterval(e,200),e()}startRematchCountdown(){this.clearRematchTimers();let e=this.state.role===`fighter`?`Rematch`:`Next bout`,t=()=>{let t=Math.ceil((this.finalReceivedAt+BX-Date.now())/1e3);this.rematchButton.hidden=this.state.stage!==`complete`,this.rematchButton.disabled=t>0,this.setText(this.rematchButton,t>0?`${e} in ${t}s`:e),t<=0&&this.rematchCountdownTimer!==null&&(window.clearInterval(this.rematchCountdownTimer),this.rematchCountdownTimer=null)};t(),this.rematchCountdownTimer=window.setInterval(t,1e3)}scheduleRematchRetry(){this.rematchTimer===null&&(this.rematchAttempts>=WX?this.fail(`rematch_unavailable`):(this.rematchAttempts+=1,this.setText(this.status,`The ring is still being cleared… trying again.`),this.rematchTimer=window.setTimeout(()=>{this.rematchTimer=null,this.authorize()},UX)))}async authorize(){let e=++this.generation;this.resetForAuthorization(),this.dispatch({type:`connecting`}),this.setText(this.status,`Securing Discord Activity session…`),this.retry.hidden=!0;try{let t=await this.authorizer.authorize(this.abort.signal);if(this.destroyed||e!==this.generation){t.destroy();return}this.session=t,this.dispatch({type:`bootstrap`,simulation:t.bootstrap.simulation}),this.dispatch({type:`authorized`,player:t.player}),this.input.onAction(e=>{if(e.kind===`get_up_left`||e.kind===`get_up_right`){let t=this.renderer?.pressGetUp(e.kind)??null;t!==null&&this.audio.getUpVerdict(t.detail)}this.renderer?.predictAction?.(e),this.network?.notifyAction()}),this.input.onHeldChange(()=>this.network?.notifyHeld());let n=t.takeTicket();if(n===null)throw Error(`ticket_unavailable`);let r=new xR(n,()=>this.input.frame(),{onMessage:e=>this.receive(e),onReconnect:e=>{this.dispatch({type:`reconnect-tick`,remainingMs:e}),this.renderer?.setReconnect(e),this.renderState()},onFatal:e=>this.fail(e),onFreshAuth:()=>{e===this.generation&&this.authorize()}});this.network=r,r.start(),this.setText(this.status,`Connecting to the ring…`)}catch(t){!this.abort.signal.aborted&&e===this.generation&&(this.reloadOnRetry=t instanceof mA&&t.reloadRequired,this.fail(bA(t)))}}ensureRenderer(){if(this.renderer!==null||this.session===null||this.destroyed)return;let e=new DX(this.canvas,this.session.bootstrap.simulation,()=>this.settings.current,{localInput:()=>this.input.held(),inputSequenceOf:e=>this.network?.sequenceOf(e)??null,powerHeld:()=>this.input.powerHeld});e.onGetUpBeat=()=>{this.audio.getUpBeat(),this.haptics.getUpBeat()},e.onContact=(e,t)=>{this.audio.event(e,t),this.haptics.event(e,t)},e.onOwnPunch=(e,t,n)=>{this.audio.whoosh(e,t),this.soundedPunches.push(n),this.soundedPunches.length>8&&this.soundedPunches.shift()},e.onArcadeInjury=e=>this.audio.injury(e),e.onGore=e=>{this.audio.gore(e),this.haptics.gore(e),e.kind===`finish_him`?this.voice.shout(`Finish him!`):e.kind===`fatality`&&this.voice.shout(`Fatality.`)},e.onAnnouncement=e=>this.voice.speak(e),e.onCrowdCue=()=>this.audio.chant(),e.onRocked=(e,t)=>this.audio.rocked(e,t),this.renderer=e}receive(e){if(e.type===`error`){this.fail(e.code);return}e.type===`welcome`&&this.ensureRenderer(),(e.type===`welcome`||e.type===`resumed`)&&this.renderer?.resyncClock();let t=this.rematchAttempts>0;(e.type===`waiting`||e.type===`ready`)&&(this.rematchAttempts=0),e.type===`ready`&&(this.rematchOpponent=null),e.type===`ready`&&this.rememberStyle(e.players),e.type===`final`&&this.rematchAttempts>0&&e.match_id===this.lastFinalMatchId?this.scheduleRematchRetry():(this.dispatch({type:`message`,message:e}),e.type===`snapshot`&&this.receiveSnapshot(e.payload),e.type!==`select`&&e.type!==`ready`||e.players.some(e=>e.cpu===!0)||(this.cpuLevel=null),e.type===`waiting`&&(this.cpuLevel===null?t&&this.cpuRematchLevel!==null&&this.scheduleCpuRematch(this.cpuRematchLevel):this.callCpu(this.cpuLevel)),e.type===`final`&&(this.cpuRematchLevel=this.cpuBout?this.cpuLevel:null,this.rematchAttempts=0,this.lastFinalMatchId=e.match_id,this.finalReceivedAt=Date.now(),this.renderer?.setFinal(e),this.audio.result(e),this.startRematchCountdown(),this.awaitResultReveal()),this.renderer?.setPlayers(this.state.players,this.state.playerId,this.state.playerOrder),this.renderer?.setReconnect(this.state.reconnectMs),this.renderState())}get networkStats(){return{inputLatencyMs:this.network?.inputLatencyMs??null,resolutionScale:this.renderer?.resolutionScale??null,gpu:this.renderer?.memoryInfo??null}}receiveSnapshot(e){this.lastPhase===`countdown`&&e.phase!==`countdown`&&this.voice.finishLine(VX),this.lastPhase=e.phase,this.renderer?.setInputLatency(this.network?.inputLatencyMs??null),this.renderer?.push(e);let t=e.fighters.find(e=>e.player_id===this.state.playerId);this.input.setKnockdown(t?.is_downed===!0),this.input.setGetUpPrompt(t?.is_downed===!0?this.renderer?.getUpView?.prompt?.side??t.get_up_prompt:null),t!==void 0&&this.audio.snapshot(e.tick,t.stamina,t.maximum_stamina,t.trauma.head+t.trauma.body),this.audio.roundClock(e.phase,e.round_number,e.phase_ticks_remaining,this.state.simulation?.tick_rate??30),this.audio.tension(vz(e));for(let n of this.feedbackEvents.accept(e.events)){if(zX.has(n.kind)||n.kind===`count`&&t?.is_downed===!0||n.kind===`punch_start`&&n.action_id!==null&&this.soundedPunches.includes(n.action_id))continue;let r=n.kind===`punch_start`?e.fighters.find(e=>e.player_id===n.actor_id&&e.action_id===n.action_id):void 0;this.audio.event(n,r?.action_power===`power`),this.haptics.event(n)}}rememberStyle(e){let t=e.find(e=>e.id===this.state.playerId)?.style;this.state.role===`fighter`&&t!==void 0&&Sn(t)}dispatch(e){this.state=RX(this.state,e)}setText(e,t){e.textContent!==t&&(e.textContent=t)}renderState(){let e={bootstrapping:`Loading…`,authorizing:`Authorizing with Discord…`,connecting:`Connecting securely…`,waiting:this.state.role===`spectator`?`Waiting for the fighters…`:this.cpuLevel===null?this.cpuRematch===null?this.rematchOpponent===null?`Waiting for an opponent. Anyone in this channel can join with Play now.`:`Waiting for ${this.rematchOpponent} to take the rematch…`:`Rematch with the ${KX.find(e=>e.level===this.cpuRematch?.level)?.label??`computer`} in ${Math.max(1,Math.ceil((this.cpuRematch.at-Date.now())/1e3))}s, unless someone joins first.`:`Calling in the computer…`,select:`Pick how your fighter boxes.`,countdown:`Bout countdown.`,fight:`Round ${this.state.snapshot?.round_number??1} in progress.`,knockdown:`Knockdown count ${this.state.snapshot?.fighters.find(e=>e.player_id===this.state.playerId)?.get_up_count??0}.`,foul_recovery:`Foul recovery in progress.`,referee_down:`The referee is down. The bout goes on without him.`,finish:this.state.snapshot!==null&&fi(this.state.snapshot.fighters)?.player_id===this.state.playerId?`You are out on your feet: one more punch kills you.`:`Finish him: one more punch kills.`,rest:`Between-round rest.`,paused:`Connection paused. ${Math.ceil(this.state.reconnectMs/1e3)} seconds remain.`,complete:this.cpuBout?`Bout complete. Scorecards are displayed. Bouts against the computer are unrated.`:`Bout complete. Scorecards and rating changes are displayed.`,fatal:EL(this.state.safeError??`safe_error`)},t=this.state.role===`spectator`;this.setText(this.status,t?`Spectating — ${e[this.state.stage]}`:e[this.state.stage]);let n=this.state.stage===`complete`&&this.state.final!==null;if(this.status.hidden=n||[`select`,`countdown`,`fight`,`knockdown`,`foul_recovery`,`referee_down`,`finish`,`rest`].includes(this.state.stage),this.overlay.toggleAttribute(`data-raised`,this.state.snapshot!==null),this.overlay.toggleAttribute(`data-result`,n),this.state.stage!==`complete`)this.overlay.hidden=!1,this.completeSince=null;else if(this.state.final===null){this.completeSince??=Date.now();let e=Date.now()-this.completeSince;this.overlay.hidden=e{this.resultWaitTimer=null,this.renderState()},HX-e+50))}this.roleIndicator.hidden=!t,this.controlsButton.hidden=t,t&&(this.controlsPanel.hidden=!0,this.controlsButton.setAttribute(`aria-expanded`,`false`));let r=this.state.snapshot?.fighters.find(e=>e.player_id===this.state.playerId),i=t?`Spectating. ${e[this.state.stage]}`:this.state.stage===`knockdown`&&r?.is_downed===!0?we(this.renderer?.getUpView??Se(r,this.state.snapshot?.tick??0,0,null,null,Re(),!1)):this.state.stage===`paused`?`Connection paused.`:e[this.state.stage];this.setText(this.liveFightStatus,i),this.corner.update(this.state.snapshot,this.state.playerId,this.state.role===`fighter`&&this.state.stage===`rest`),this.renderer?.setCornerPanelTop(this.corner.top()),this.stylePicker.update(this.state.stage===`select`?this.state.select:null,this.state.playerId,this.state.role),this.retry.hidden=this.state.stage!==`fatal`,this.setText(this.retry,this.reloadOnRetry?`Reload`:`Retry securely`),this.state.stage!==`complete`&&(this.rematchButton.hidden=!0),this.cpuPicker.hidden=t||this.state.stage!==`waiting`||this.cpuLevel!==null,this.setText(this.cpuPrompt,this.cpuRematch===null?this.rematchOpponent===null?`No one here yet? Fight the computer.`:`Or fight the computer instead:`:`Or start now:`);let a=!t&&(this.state.stage===`waiting`||this.state.stage===`countdown`);this.hint.hidden=!a,a&&this.setText(this.hint,Ne(Re(),window.innerWidth)),this.overlay.toggleAttribute(`data-touch-hint`,a&&this.state.stage===`countdown`&&Re());let o=!t&&[`countdown`,`fight`,`knockdown`,`foul_recovery`,`referee_down`,`finish`].includes(this.state.stage),s=!t&&this.state.snapshot!==null&&(this.state.stage===`rest`||this.state.stage===`paused`);if(this.input.setActive(o,o||s),this.network?.setActive(o),this.renderFightSummary(),this.state.final!==null){let e=this.state.final;this.setText(this.finalSummary,`${e.method.replaceAll(`_`,` `)}. ${e.winner_id===null?`Draw`:`${this.state.players[e.winner_id]?.name??`Winner`} wins`}. Scorecards: ${e.scorecards.map(e=>`${e.judge}: ${e.player_one.reduce((e,t)=>e+t,0)} to ${e.player_two.reduce((e,t)=>e+t,0)}`).join(`; `)}. ${this.cpuBout?`Unrated bout against the computer.`:`Ratings: ${Object.entries(e.ratings).map(([e,t])=>`${this.state.players[e]?.name??`fighter`} ${t.before} to ${t.after}`).join(`; `)}.`}`)}}renderFightSummary(){let e=this.state.snapshot;if(e===null)return;let t=this.state.simulation?.tick_rate??30,n=Math.floor(this.summaryClock.ticks(e)/t),r=`${Math.floor(n/60)}:${String(n%60).padStart(2,`0`)}`,i=e.fighters.map(e=>{let t=this.state.players[e.player_id],n=e.injuries.length===0?`no injuries`:`injuries: ${e.injuries.map(e=>tt(e).toLowerCase()).join(`, `)}`;return`${t?.name??`Fighter`}, ${t?.cpu===!0?`computer opponent`:`ELO ${t?.rating??`unknown`}`}, stamina ${Math.round(e.stamina)} of ${Math.round(e.maximum_stamina)}, guard ${Math.round(e.guard)}, poise ${Math.round(e.poise)}, conditioning ${Math.round(e.conditioning)}, blood ${Math.round(e.blood_volume/Je*100)} percent, ${n}, ${e.warnings} warnings, ${e.knockdowns} knockdowns`}),a=e.fighters.find(e=>e.player_id===this.state.playerId),o=a?.is_downed===!0?we(this.renderer?.getUpView??Se(a,e.tick,0,null,null,Re(),!1)):``;this.setText(this.fightSummary,`Round ${e.round_number}. ${e.phase.replace(`_`,` `)}. Clock ${r}. ${i.join(`. `)}. ${o}`.trim())}onRetry=()=>{this.reloadOnRetry?(this.reloading=!0,this.reloadPage()):this.authorize()};bindPanels(){let e=(e,t)=>{let n=this.root.querySelector(e),r=this.root.querySelector(t);n.addEventListener(`click`,()=>{r.hidden=!r.hidden,n.setAttribute(`aria-expanded`,String(!r.hidden))})};e(`[data-controls]`,`[data-controls-panel]`),e(`[data-settings]`,`[data-settings-panel]`);let t=this.root.querySelector(`[data-settings-panel]`);this.root.querySelector(`[data-settings]`).addEventListener(`click`,()=>{this.diagnosticsTimer!==null&&window.clearInterval(this.diagnosticsTimer),this.diagnosticsTimer=null,t.hidden||(this.refreshDiagnostics(),this.diagnosticsTimer=window.setInterval(()=>this.refreshDiagnostics(),1e3))});let n=this.root.querySelector(`[data-copy-diagnostics]`);n.addEventListener(`click`,()=>{let e=this.diagnosticsText(),t=()=>{this.setText(n,`Copied`),window.setTimeout(()=>this.setText(n,`Copy diagnostics`),1500)},r=()=>{let e=this.root.querySelector(`[data-diagnostics]`),t=window.getSelection();if(t===null)return;let r=document.createRange();r.selectNodeContents(e),t.removeAllRanges(),t.addRange(r),this.setText(n,`Selected. Copy manually`),window.setTimeout(()=>this.setText(n,`Copy diagnostics`),2500)},i=navigator.clipboard;i===void 0||typeof i.writeText!=`function`?r():i.writeText(e).then(t).catch(r)}),this.root.querySelector(`[data-volume]`).addEventListener(`input`,e=>{this.settings.update({volume:Number(e.target.value)}),this.audio.setVolume(),this.voice.settingsChanged()}),this.root.querySelector(`[data-haptics]`).addEventListener(`change`,e=>{this.settings.update({haptics:e.target.checked})}),this.root.querySelector(`[data-motion]`).addEventListener(`change`,e=>{let t=e.target.checked;this.settings.update({reducedMotion:t}),this.renderer?.setReducedMotion(t)}),this.root.querySelector(`[data-commentary]`).addEventListener(`change`,e=>{this.settings.update({commentary:e.target.checked})}),this.root.querySelector(`[data-announcer]`).addEventListener(`change`,e=>{let t=e.target.checked;this.settings.update({announcer:t}),t||this.voice.cancel()}),this.root.querySelector(`[data-blood]`).addEventListener(`change`,e=>{let t=e.target.value;this.settings.update({blood:t}),this.renderer?.setBloodLevel(t)}),this.root.querySelector(`[data-camera]`).addEventListener(`change`,e=>{let t=OX.find(t=>t===e.target.value);t!==void 0&&this.settings.update({camera:t})})}diagnosticsText(){let e=this.networkStats,t=this.renderer?.diagnostics,n=t===void 0||t.frameMs<=0?`-`:(1e3/t.frameMs).toFixed(0);return[`stage: ${this.state.stage} · role: ${this.state.role??`-`}`,`input latency: ${e.inputLatencyMs===null?`-`:`${Math.round(e.inputLatencyMs)} ms`}`,`frame: ${t===void 0?`-`:`${t.frameMs.toFixed(1)} ms (${n} fps)`} · render scale: ${t?.resolutionScale??`-`}`,`gpu objects: ${t===void 0?`-`:`${t.gpu.geometries} geometries, ${t.gpu.textures} textures, ${t.gpu.programs} programs`}`,`graphics: ${t?.graphics??`-`}`,`browser: ${navigator.userAgent}`,`pointer: ${Re()?`coarse`:`fine`} · viewport: ${window.innerWidth}x${window.innerHeight} @${window.devicePixelRatio}`,`last error: ${this.state.safeError??`none`}`,`match: ${this.state.final?.match_id??`-`}`].join(` -`)}refreshDiagnostics(){this.setText(this.root.querySelector(`[data-diagnostics]`),this.diagnosticsText())}syncSettings(){let e=this.settings.current;this.root.querySelector(`[data-volume]`).value=String(e.volume),this.root.querySelector(`[data-haptics]`).checked=e.haptics,this.root.querySelector(`[data-motion]`).checked=e.reducedMotion,this.root.querySelector(`[data-blood]`).value=e.blood,this.root.querySelector(`[data-commentary]`).checked=e.commentary,this.syncAnnouncerSetting(),this.voice.onVoicesChanged=()=>this.syncAnnouncerSetting(),this.root.querySelector(`[data-camera]`).value=e.camera}syncAnnouncerSetting(){let e=this.root.querySelector(`[data-announcer]`),t=this.voice.hasVoice;e.checked=this.settings.current.announcer&&t,e.disabled=!t;let n=this.voice.supported?t?null:`This device has no English voice of its own`:`This browser cannot speak`;n===null?e.parentElement.removeAttribute(`title`):e.parentElement.title=n}fail(e){e===`room_closed`&&this.rematchAttempts>0?this.scheduleRematchRetry():(e===`client_outdated`&&(this.reloadOnRetry=!0),this.dispatch({type:`fatal`,code:e}),this.rematchOpponent=null,this.voice.cancel(),this.network?.dispose(),this.network=null,this.session?.destroy(),this.session=null,this.renderer?.destroy(),this.renderer=null,this.input.setActive(!1),this.input.reset(),this.renderState())}destroy(){this.destroyed||(this.destroyed=!0,this.generation+=1,this.abort.abort(),this.network?.dispose(),this.session?.destroy(),this.reloading||this.authorizer.close(),this.renderer?.destroy(),window.removeEventListener(`keydown`,this.onCameraKey),this.input.destroy(),this.corner.destroy(),this.stylePicker.destroy(),this.audio.destroy(),this.voice.destroy(),this.settings.destroy(),this.retry.removeEventListener(`click`,this.onRetry),this.rematchButton.removeEventListener(`click`,this.onRematch),this.cpuPicker.removeEventListener(`click`,this.onCpuPick),this.clearRematchTimers(),this.diagnosticsTimer!==null&&window.clearInterval(this.diagnosticsTimer),this.resultRevealTimer!==null&&window.clearInterval(this.resultRevealTimer),this.resultWaitTimer!==null&&window.clearTimeout(this.resultWaitTimer),this.diagnosticsTimer=null,this.root.replaceChildren())}};(new URLSearchParams(window.location.search).get(`styles`)??``).split(`,`);var YX={broadcast:{position:[0,1.88,7.15],lookAt:[0,1.12,0]},side:{position:[7.4,1.6,0],lookAt:[0,1.1,0]},top:{position:[.01,8.5,.01],lookAt:[0,0,0]},ringside:{position:[1.6,1.5,4.1],lookAt:[.2,1.25,0]}},XX=[[`hips`,`spine`],[`spine`,`head`],[`chest`,`shoulderL`],[`shoulderL`,`elbowL`],[`elbowL`,`gloveL`],[`chest`,`shoulderR`],[`shoulderR`,`elbowR`],[`elbowR`,`gloveR`],[`hips`,`hipL`],[`hipL`,`kneeL`],[`kneeL`,`ankleL`],[`hips`,`hipR`],[`hipR`,`kneeR`],[`kneeR`,`ankleR`]],ZX=class{root;renderer=null;replay=null;raf=0;playing=!1;speed=1;virtualTick=0;carry=0;latencyMs=0;pendingQueue=[];destroyed=!1;overlays={skeleton:!1,hurtbox:!1,hitbox:!1};skeletonLines=[];hurtboxMeshes=[];hitboxMeshes=[];statusEl;metricsEl;canvas;constructor(e){this.root=e,e.innerHTML=`
+}`},MJ=[{x:-102,y:-16},{x:102,y:-16}],NJ=[0,1],PJ=.5,FJ={x:0,z:-.2},IJ=0,LJ=200,RJ=1.3,zJ=.7,BJ=4.5;function VJ(e,t,n,r){let i=n.x-e,a=n.y-t,o=Math.hypot(i,a);return o<=Math.max(r,1e-6)?{x:n.x,y:n.y,arrived:!0}:{x:e+i/o*r,y:t+a/o*r,arrived:!1}}var HJ=16,UJ=.6,WJ={hit:.18,counter_hit:.3,guard_break:.25,knockdown:1,block:.04,perfect_block:.1,parry:.22,body_collapse:.45},GJ=new Set([`hit`,`counter_hit`,`block`,`perfect_block`,`guard_break`,`knockdown`,`parry`,`body_collapse`,`eye_shut`]),KJ=new Set([`parry`,`body_collapse`,`eye_shut`]),qJ=new Set([`hit`,`counter_hit`,`block`,`perfect_block`]),JJ=1.2,YJ=1500,XJ=.8,ZJ=2.4,QJ=2.5,$J=new Set([`referee_hit`,`referee_down`]),eY=.05,tY=.08,nY={parry:{text:`PARRIED`,seconds:1},eye_shut:{text:`EYE SWOLLEN SHUT`,seconds:1.6}},rY=new Set([`injury`,`vomit`,`finish_him`,`fatality`,`death`]),iY=1.8,aY=3,oY=.6;function sY(e,t){let n=gt(e,t);return n!==`severed`&&n!==`torn`}function cY(e){return e.kind===`death`?e.detail===`brain`?`head_burst`:null:e.kind===`fatality`?e.detail===`head_burst`?`head_burst`:e.detail===`decapitation`||e.detail===`spine_rip`?`decapitation`:null:null}var lY=e=>e.kind===`knockdown`&&e.detail===`body`;function uY(e,t){if(Yq(e)&&e.action_id!==null)return t.find(t=>Xq(t)&&t.action_id===e.action_id&&t.actor_id===e.target_id&&t.target_id===e.actor_id)}function dY(e,t){if(Xq(e)&&e.action_id!==null)return t.find(t=>Yq(t)&&t.action_id===e.action_id&&t.actor_id===e.target_id&&t.target_id===e.actor_id)}function fY(e,t){return e.map((n,r)=>{if(KJ.has(n.kind)||n.kind===`knockdown`&&n.detail===vJ)return{event:n,presentationEvent:n,presentImpact:!1,reactAmount:null};let{puncherIndex:i}=qq(n,t),a=t.fighters[i],o=a?.action_key?.split(`:`)??[],s=o.length>=3?`${o[0]}:${o[2]}`:n.detail,c=dY(n,e);if(Xq(n))return{event:n,presentationEvent:{...n,detail:c?.detail||s,direction:c?.direction??a?.facing??n.direction,blood:c?.blood??n.blood},presentImpact:!0,reactAmount:n.amount};if(uY(n,e)!==void 0)return{event:n,presentationEvent:n,presentImpact:!1,reactAmount:n.amount};if(n.kind===`knockdown`){let t=e.slice(0,r).reverse().find(e=>Yq(e)&&e.tick===n.tick&&e.actor_id===n.actor_id&&e.target_id===n.target_id);if(t!==void 0)return{event:n,presentationEvent:{...n,detail:t.detail,direction:t.direction,blood:t.blood,action_id:t.action_id},presentImpact:!0,reactAmount:uY(t,e)===void 0?null:t.amount}}return{event:n,presentationEvent:n,presentImpact:!0,reactAmount:n.amount}})}function pY(e){let t=e?.trauma;if(t===void 0)return{side:1,lift:.08,lateral:.035,prop:`enswell`};switch(e?.corner_choice){case`cut`:return{side:t.right_cut>t.left_cut?-1:1,lift:.11,lateral:.04,prop:`enswell`};case`swelling`:return{side:t.right_eye>t.left_eye?-1:1,lift:.08,lateral:.035,prop:`enswell`};case`breath`:return{side:1,lift:-.015,lateral:0,prop:`bottle`};default:return{side:t.right_eye+t.right_cut>t.left_eye+t.left_cut?-1:1,lift:.08,lateral:.035,prop:`enswell`}}}function mY(e){return e?.split(`:`)[1]===`right`?1:-1}function hY(e){return e.result===null?e.tick-1:e.tick}var gY=50,_Y=40,vY=40,yY=50,bY=[`jab`,`straight`,`hook`,`uppercut`];function xY(e,t,n,r){if(!Bq(e,t,n))return null;let i=r?.action_key?.split(`:`),a=e.detail.split(`:`).find(e=>bY.includes(e))??i?.[0],o=i?.[1]===`right`?`left`:`right`,s=e.amount;return e.detail.endsWith(`:head`)?n?.finish_method===`flash_ko`||e.kind===`counter_hit`&&s>=70?`head_burst`:a===`uppercut`&&s>=_Y||a===`straight`&&s>=gY?`decapitation`:(a===`hook`||a===`jab`)&&s>=vY?`eye_${o}`:`jaw_dislocation`:a===`hook`?s>=yY?`dismember_${o}`:`shoulder_${o}`:`ribs_${o}`}function SY(){let e=document.createElement(`canvas`);e.width=128,e.height=128;let t=e.getContext(`2d`);if(t!==null){let e=t.createRadialGradient(64,64,8,64,64,62);e.addColorStop(0,`rgba(0,0,0,0.68)`),e.addColorStop(.6,`rgba(0,0,0,0.34)`),e.addColorStop(1,`rgba(0,0,0,0)`),t.fillStyle=e,t.fillRect(0,0,128,128)}return new Bu(e)}var CY=.42,wY=.16;function TY(e){return .9*R.clamp(1-e/wY,0,1)}var EY=new B(0,.12,.02),DY=new B(0,1,0),OY=new WeakMap;function kY(e){let t=OY.get(e);return t===void 0&&(t=Wv(e,JY),OY.set(e,t)),t}function AY(e){return e.y>Qg-1.4}var jY=new WeakMap;function MY(e){let t=jY.get(e);return t===void 0&&(t=Wv(e,AY),jY.set(e,t)),t}function NY(e,t,n){let r=e.bone(`head`);if(r===null)return null;e.root.updateMatrixWorld(!0);let i=e.headMesh,a=MY(i.geometry);if(a.length===0)return null;let o=t.length===a.length*3?t:new Float32Array(a.length*3);n.position.set(0,0,0);for(let[t,r]of a.entries())HY(e,r,n.scratch),n.scratch.toArray(o,t*3),n.position.add(n.scratch);return n.position.multiplyScalar(1/a.length),r.getWorldQuaternion(n.quaternion),n.across.set(1,0,0).applyQuaternion(n.quaternion),n.scratch.set(0,1,0).applyQuaternion(n.quaternion),n.quaternion.setFromUnitVectors(DY,n.scratch),o}function PY(e,t,n,r){let i=e?.currentRoot;return r.set(i?.x??n.x(t.x),0,i?.z??n.z(t.y))}function FY(e,t,n,r,i){let a=Math.hypot(e-n,t-r);return a>=i?{x:e,z:t}:a<1e-6?{x:n,z:r-i}:{x:n+(e-n)/a*i,z:r+(t-r)/a*i}}var IY=[0,1.05,-1.05,2.1,-2.1,Math.PI];function LY(e,t,n,r,i,a,o=[]){let s=n===null?0:Math.hypot(n.x,n.z),c=n!==null&&s>=.35?[Math.atan2(n.x,n.z)]:[];for(let e of IY)c.push(a+e);for(let n of c){let a=R.clamp(e+Math.sin(n)*r,-i,i),s=R.clamp(t+Math.cos(n)*r,-i,i),c=Math.hypot(a-e,s-t);if(!(c{let r=R.clamp(((n.x-e)*(a-e)+(n.z-t)*(s-t))/(c*c),.25,1);return Math.hypot(e+(a-e)*r-n.x,t+(s-t)*r-n.z)1e-9&&(s=Math.min(s,(Math.sign(n)*i-e)/n)),Math.abs(r)>1e-9&&(s=Math.min(s,(Math.sign(r)*a-t)/r));for(let i of[-1,1])for(let a of[-1,1]){let c=i*n+a*r;c>1e-9&&(s=Math.min(s,(o-i*e-a*t)/c))}return Math.max(0,s)}function zY(e,t,n,r,i,a,o,s=1/0){let c=Math.hypot(n-e,r-t);if(c>=i)return null;let l=c<1e-6?1:(n-e)/c,u=c<1e-6?0:(r-t)/c,d=i-c,f=RY(e,t,-l,-u,a,o,s),p=RY(n,r,l,u,a,o,s),m=Math.min(d/2,f),h=Math.min(d-m,p);m=Math.min(d-h,f);let g=R.clamp;return{ax:g(e-l*m,-a,a),ay:g(t-u*m,-o,o),bx:g(n+l*h,-a,a),by:g(r+u*h,-o,o)}}var BY=new WeakMap;function VY(e,t,n,r,i,a,o,s=null){let c=BY.get(e);if(c!==void 0&&c.width===t&&c.height===n)return c.top;let l=zi(t,n,Ii(e,r,i,r.map(e=>a.total(e.player_id)),s),!0).y;return BY.set(e,{width:t,height:n,top:l}),l}function HY(e,t,n){let r=e.headMesh;return jb(n.fromBufferAttribute(r.geometry.getAttribute(`position`),t),e.look,n),r.applyBoneTransform(t,n).applyMatrix4(r.matrixWorld)}var UY=new Ns,WY=new Ns,GY=new Rs;function KY(e,t,n){let r=e.geometry;UY.fromBufferAttribute(r.getAttribute(`skinIndex`),t),WY.fromBufferAttribute(r.getAttribute(`skinWeight`),t),n.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);for(let t=0;t<4;t+=1){let r=WY.getComponent(t);if(r===0)continue;let i=UY.getComponent(t);GY.multiplyMatrices(e.skeleton.bones[i].matrixWorld,e.skeleton.boneInverses[i]);for(let e=0;e<16;e+=1)n.elements[e]+=GY.elements[e]*r}return n.premultiply(e.bindMatrixInverse).multiply(e.bindMatrix)}var qY=new B(-1,0,0);function JY(e){return e.y>Xg-Zg*(e.z- -4)-.3}var YY={tick_rate:30,ring_half_width:500,ring_half_height:500};function XY(e,t,n,r,i,a,o=!0){let s=e.geometry,c=s.getAttribute(`position`),l=s.getIndex(),u=[],d=l!==null&&r===void 0?[]:null;if(l===null||d===null)for(let e=0;e=i.start+o))return{action:i.punchClass,action_hand:i.hand,action_target:`head`,action_power:`normal`,action_id:`idle-${n}-${r}`,action_key:`${i.punchClass}:${i.hand}:head:normal`,action_start_tick:e-(t-i.start),action_startup_ticks:a.startup,action_active_ticks:a.active,action_recovery_ticks:a.recovery,action_contact_tick:e-(t-i.start)+a.startup}}return{}}var rX=1000003,iX=1.6;function aX(e,t,n,r,i,a){let o=r<0?-1:1,s=o=>Math.hypot(R.clamp(e+n*o*i,-a,a)-e,R.clamp(t+r*o*i,-a,a)-t);return s(o)>=i*.8||s(o)>=s(-o)?o:-o}function oX(e,t,n){return t?e.kind===`knockdown`?1:Math.min(1,.35+e.amount/400):(n===`full`?1:n===`reduced`?.4:0)*(e.kind===`knockdown`?.85:e.amount>=50?Math.min(.75,(e.amount-30)/140):0)}function sX(e){if(e.kind!==`hit`&&e.kind!==`counter_hit`||e.amount<(e.detail.endsWith(`:body`)?70:50))return null;let t=Math.min(100,Math.max(0,e.blood));return{seconds:.6+t/50,rate:150+e.amount*1.5+t*2}}function cX(e,t){return t===`full`?e>100?Math.min(.65,e/1800):0:e>350?Math.min(.3,e/4600):0}function lX(e){return!e.is_downed&&e.stunned_ticks===0&&e.clinch_ticks===0&&e.clinch_startup_ticks===0&&e.taunt_ticks===0&&!e.is_foul_recovery_target}function uX(e,t){if(e===null)return null;let n=t.fighters.find(t=>t.player_id===e.target_id),r=t.fighters.find(t=>t.player_id===e.actor_id);return xY(e,n===void 0?void 0:{...n,is_downed:!0},{finish_method:`ko`,winner_id:e.actor_id},r)}var dX=.2,fX=1.1,pX=1.6,mX=2.4,hX=2,gX=new B(0,-.1,.08),_X=new B(0,-.07,.1),vX=new B(0,-.35,1),yX=3,bX=320,xX=8,SX=1.6,CX=.08,wX=.12,TX=e=>e===`shoulder_left`||e===`shoulder_right`||e===`ribs_left`||e===`ribs_right`?e:`mouth`;function EX(e,t,n=fX){return Math.min(n,.06+.08*Math.sqrt(Math.max(0,e))*Math.min(1.6,Math.max(0,t)))}function DX(e,t,n){return e.is_downed||t?.isDown===!0||n!==void 0&&e.player_id===n}var OX=6,kX=11,AX=.13;function jX(e,t){let n=t===`left`?`leftRibs`:`rightRibs`;e.impact(n,[t===`left`?-6:OX,-6*.15,-1.5],kX),e.set(n,{bruise:1.2,swell:0,blood:1.4})}function MX(e,t){e.set(`mouth`,{cut:1,blood:1.4}),e.set(`chin`,{bruise:1.2}),t.set(`neckSmear`,{blood:1.4})}function NX(e,t){e.set(t===`left`?`leftShoulderSmear`:`rightShoulderSmear`,{blood:1.4}),e.set(t===`left`?`leftPec`:`rightPec`,{bruise:1.1})}var PX=new WeakMap;function FX(e,t){let n=PX.get(e);if(n===void 0){let t=e.getAttribute(`position`),r=new B,i=new B,a=j_.map(e=>{let n=0,a=1/0;i.set(e[0],e[1],e[2]);for(let e=0;ethis.onAnnouncement?.(e),cue:e=>this.onCrowdCue?.(e)});touchControls=Ke();resultAnnounced=!1;captionText=``;rocked=new mq;tmpA=new B;tmpB=new B;contactPoint=new B;cornerPanelTop=null;mouthPoint=new B;tmpHead=new B;tmpHeadQuaternion=new ms;tmpStump=new B;tmpStumpOffset=new B;tmpStumpQuaternion=new ms;tmpStumpAcross=new B;tmpPart=new B;tmpPartQuaternion=new ms;woundPoint=new B;woundAxis=new B;constructor(e,t=YY,n,r={}){this.canvas=e,this.simulation=t,this.settings=n,this.manualClock=r.manualClock===!0,this.localInput=r.localInput??null,this.powerHeld=r.powerHeld??null,this.inputSequenceOf=r.inputSequenceOf??null,this.buffer=new xR(8,t.tick_rate),this.mapping=mv(t),this.renderer=new Ug({canvas:e,antialias:!0,powerPreference:`high-performance`,preserveDrawingBuffer:r.manualClock===!0}),this.renderer.shadowMap.enabled=!0,this.renderer.shadowMap.type=1,this.renderer.toneMapping=4,this.renderer.toneMappingExposure=1,this.renderer.setPixelRatio(this.basePixelRatio),this.scene.background=new V(`#04060b`),this.scene.fog=new bc(`#04060b`,.042),this.camera=new Vf(36,1,.1,80),this.camera.position.set(0,2.05,5.9),this.camera.lookAt(0,1.05,0),this.setupLights(),this.ring=Mw(),this.scene.add(this.ring.group),this.arena=XB(),this.scene.add(this.arena.group),this.effects=new rq(this.scene,Ke()?1024:2048,Ke()?AW:kW),this.effects.useUploader(this.renderer),this.effects.setCamera(this.camera),this.carnage=new GH(this.effects,QY),this.blobTexture=SY();let i=new Ed(1,1);for(let e=0;e<3;e+=1){let t=new H(i,new Al({map:this.blobTexture,transparent:!0,depthWrite:!1}));t.rotation.x=-Math.PI/2,t.position.y=.006+e*4e-4,t.renderOrder=1,this.blobShadows.push(t),this.scene.add(t)}for(let e=0;e<4;e+=1){let t=new H(i,new Al({map:this.blobTexture,transparent:!0,depthWrite:!1}));t.rotation.x=-Math.PI/2,t.position.y=.0075+e*4e-4,t.scale.set(CY,CY,1),t.renderOrder=1,t.visible=!1,this.footShadows.push(t),this.scene.add(t)}this.composer=new Uz(this.renderer),this.composer.addPass(new Wz(this.scene,this.camera));let a=new Kz(new z(1280,720),.22,.35,1.5);this.bloomPass=a,this.composer.addPass(a),this.finishPass=new Bz(jJ),this.composer.addPass(this.finishPass),this.composer.addPass(new Jz),this.hudCanvas=document.createElement(`canvas`),this.hudCanvas.className=`fight-hud`,this.hudCanvas.style.cssText=`position:absolute;inset:0;width:100%;height:100%;pointer-events:none`,e.insertAdjacentElement(`afterend`,this.hudCanvas),this.bloodLevel=n().blood,this.effects.setBloodLevel(this.bloodLevel),this.ensureGraphs(),this.manualClock||(this.raf=requestAnimationFrame(e=>this.draw(e)))}ensureGraphs(){this.glbLoading||this.graphs!==null||(this.glbLoading=!0,this.graphsReady=Gw().then(async e=>{if(this.destroyed)return;let t=new iT(e,{skin:11563071,gear:1920728}),n=new iT(e,{skin:7225640,gear:12131356});this.graphs=[new IT(t,this.mapping),new IT(n,this.mapping)];let r=[this.carnage.attach(0,this.graphs[0]),this.carnage.attach(1,this.graphs[1])];this.lookIds.fill(null),this.syncInjuryPresentation(0),this.syncInjuryPresentation(1);let i=new iT(e,{skin:13081462,gear:3889080,look:yb.referee,outfit:Vb,wounds:!0});this.referee=new IT(i,this.mapping,{referee:!0,knockout:!0});let a=new iT(e,{skin:9067067,gear:1778224,look:yb.blueCorner,outfit:Hb}),o=new iT(e,{skin:14264188,gear:1778224,look:yb.redCorner,outfit:Ub});this.cornermen=[new IT(a,this.mapping,{referee:!0}),new IT(o,this.mapping,{referee:!0})];let s=new iT(e,{skin:12160102,gear:1778224,look:yb.blueCutman,outfit:Wb}),c=new iT(e,{skin:5913126,gear:1778224,look:yb.redCutman,outfit:Wb});this.cutmen=[new IT(s,this.mapping,{referee:!0}),new IT(c,this.mapping,{referee:!0})],s.root.visible=!1,c.root.visible=!1,this.trails=[1920728,12131356].flatMap(e=>[0,1].map(()=>new Iq(new V(e).lerp(new V(16777215),.55))));let l=Oq();this.glowMap=l,this.glows=[0,1,2,3].map(()=>new Aq(l)),this.impactFlashes=[0,1].map(()=>new jq(l));let u=new fc;u.add(t.root,n.root,i.root,a.root,o.root,s.root,c.root,...this.trails.map(e=>e.mesh),...this.effects.compileStandIns(),...r.flatMap(e=>e.compileStandIns()),this.glows[0].standIn(),...this.impactFlashes[0].standIns()),u.add(this.carnage.xray.standIn());let d=t.headInjury.open;t.headInjury.setOpen(!0);try{await Hq(this.renderer,this.composer,u,this.camera,this.scene)}catch{}if(!this.destroyed){this.scene.add(t.root,n.root,i.root,a.root,o.root,s.root,c.root);for(let e of this.trails)this.scene.add(e.mesh);for(let e of this.glows)this.scene.add(e.mesh);for(let e of this.impactFlashes)this.scene.add(e.group);this.compileShadowsOf(u),t.headInjury.setOpen(d)}}).catch(e=>{this.glbLoading=!1,console.error(`boxer_glb_load_failed`,e)}))}compileShadowsOf(e){let t=this.keyLight;if(t!==null&&e.children.length!==0){for(let t of e.children)t.frustumCulled=!1,t.onBeforeShadow=(e,t,n,r,i,a)=>{a.needsUpdate=!0};this.scene.add(e),t.shadow.needsUpdate=!0,this.renderer.setRenderTarget(this.composer.readBuffer);try{this.renderer.render(this.scene,this.camera)}catch{}finally{this.renderer.setRenderTarget(null),this.scene.remove(e)}}}get ready(){return this.graphsReady}get labRigs(){let e=this.graphs;return e===null?[]:[e[0].boxer.root,e[1].boxer.root]}get labScene(){return this.scene}get labEffects(){return this.effects}labSetCameraOverride(e,t){this.cameraOverride={position:new B(...e),lookAt:new B(...t)}}labFrame(e,t=!0){this.draw(e*1e3,!0,t)}setCornerPanelTop(e){this.cornerPanelTop=e}viewForward(){return this.ownViewActive?(this.ownForward.x=this.fighterCam.forwardX,this.ownForward.z=this.fighterCam.forwardZ,this.ownForward):null}setPlayers(e,t,n=Object.keys(e)){this.players=e,this.viewerId=t,this.playerOrder=n}updateIdleFighters(e,t,n){let r=this.graphs;if(r===null)return;let i=this.playerOrder.filter(e=>this.players[e]!==void 0).length<2;for(let[a,o]of r.entries()){let r=this.playerOrder[a]??`seat-${a}`,s=!i||r===this.viewerId||this.viewerId===null&&a===0;if(o.boxer.root.visible=s,!s)continue;this.wearLook(a===0?0:1,r);let c=a===0?-1:1,l=Math.floor(t*this.simulation.tick_rate),u={...$Y(r),x:i?0:c*180,y:i?-70:0,facing:i?1:-c,facing_x:i?0:-c*1e3,facing_y:i?-1e3:0,...i?nX(l):{}},d={...$Y(this.playerOrder[1-a]??`opponent`),x:i?0:-c*180,y:i?-150:0};o.setResting(!1),o.update(u,d,e,t,this.settings().reducedMotion,this.bloodLevel,i?l:n)}}setFinal(e){if(e!==null&&e.match_id===this.final?.match_id)return;this.final=e,this.stoppageWinner=-1,this.stoppageRaiseAt=1/0,this.stoppageSpot=null,this.raiseFramed=!1,this.ceremony=this.ceremonyFor(e);let t=e?.method===`draw`&&this.deaths.every(e=>e!==null);if(this.finalRevealAt=this.frameSeconds+(this.ceremony===null?t?li:di(e):BJ),this.ovationUntil=e===null?0:this.frameSeconds+HJ,e!==null&&this.commentary.finish(e,this.players,this.ceremony!==null,this.frameSeconds),this.ceremony===null&&this.endCeremony(),this.pendingFinish=null,e===null||!ci.has(e.method))return;let n=this.lastKnockdown===null?null:vq(this.history,this.lastKnockdown.hit??this.lastKnockdown.knockdown,this.simulation.tick_rate),r=this.finishingInjury(e);if(n!==null&&this.graphs!==null&&!this.settings().reducedMotion){r!==null&&(this.replayInjuries[r.index]={injury:r.injury,event:r.event}),this.startReplay(n);return}if(r!==null){let e=this.pendingContacts.find(e=>e.event.event_id===r.event.event_id);e===void 0?this.applyArcadeInjury(r.index,r.injury,r.event):e.injury??=r.injury}let i=this.buffer.latest()?.result?.tick;i===void 0?this.presentFinish(e):this.pendingFinish={final:e,tick:i,latestAt:this.frameSeconds+pJ}}presentFinishWhenShown(e){let t=this.pendingFinish;t===null||ee.player_id===t.hit.target_id)??-1;return r<0||this.arcadeInjuries[r]!==null?null:{index:r,injury:t.finisher,event:t.hit}}ceremonyFor(e){let t=this.buffer.latest()?.fighters;if(e===null||t===void 0||e.method!==`decision`&&e.method!==`draw`||t.some(e=>e.is_downed)||this.deaths.some(e=>e!==null))return null;let n=t.findIndex(t=>t.player_id===e.winner_id);return{winnerSeat:n===0||n===1?n:null,positions:null,refereeArrived:!1,arrivedAt:null,announced:!1}}endCeremony(){for(let e of this.graphs??[])e.awaitVerdict(null);this.referee?.raise(null,null)}ceremonyFighters(e,t,n,r,i=null){e.positions===null&&(e.positions=[{x:t[0].x+(i?.[0].x??0),y:t[0].y+(i?.[0].y??0)},{x:t[1].x+(i?.[1].x??0),y:t[1].y+(i?.[1].y??0)}],e.marks=e.positions[0].x<=e.positions[1].x?[0,1]:[1,0]);let a=e.marks??NJ,o=e.refereeArrived;for(let r of[0,1]){let i=e.positions[r],s=a[r],c=VJ(i.x,i.y,MJ[s],LJ*n),l=Math.hypot(c.x-i.x,c.y-i.y),u=n>0?1/(n*this.simulation.tick_rate):0,d=!c.arrived&&l>1e-6;Object.assign(this.drawnFighters[r],t[r],{x:c.x,y:c.y,velocity_x:(c.x-i.x)*u,velocity_y:(c.y-i.y)*u,facing_x:d?Math.round((c.x-i.x)/l*1e3):0,facing_y:d?Math.round((c.y-i.y)/l*1e3):-1e3,facing:d&&c.x=zJ){e.announced=!0,this.commentary.verdict(this.frameSeconds);for(let t of[0,1])this.graphs?.[t]?.announce(e.winnerSeat===null?`level`:e.winnerSeat===t?`winner`:`loser`);this.finalRevealAt=Math.min(this.finalRevealAt,this.frameSeconds+.35),this.arena.excite(1)}if(e.announced){let n=n=>{let r=a[0]===n?0:1,i=e.winnerSeat===null||e.winnerSeat===r,o=gt(t[r].injuries,n===0?`left`:`right`)===`whole`,s=this.graphs?.[r]?.boxer.rig.bones[n===0?`gloveL`:`gloveR`];return i&&o&&s!==void 0?s.getWorldPosition(this.ceremonyWrists[n]):null};this.referee?.isDown!==!0&&this.referee?.raise(n(1),n(0))}return this.drawnFighters}ceremonyFrame(e){let t=this.ceremony,n=this.buffer.latest();if(t===null||t.arrivedAt===null||this.replay!==null||this.final===null||n===null)return null;let{width:r,height:i}=this.hudViewport,a=VY(this.final,r,i,n.fighters,this.players,this.roundStats,this.viewerId),o=hV(this.camera.aspect,this.camera.fov,(i-a)/Math.max(1,i)),s=this.settings().reducedMotion?0:Math.sin((e-t.arrivedAt)*.35)*.06*o.distance;return this.cornerPosition.set(s,o.height+.05*o.distance,o.distance),this.cornerLookAt.set(0,o.height,0),{position:this.cornerPosition,lookAt:this.cornerLookAt,framed:!0}}raiseFrame(e,t,n){let r=this.buffer.latest();if(this.stoppageWinner<0||this.final===null||this.replay!==null||this.ceremony!==null||r===null||e0?-1:1)*cJ,o=this.stoppageSpot?.z??0;this.raiseFramed||this.raiseCentre.set(i.x+a/2,0,i.z+o/2),this.raiseCentre.lerp(this.tmpCamera.set(i.x+a/2,0,i.z+o/2),1-Math.exp(-3*t)),this.raiseFramed=!0;let{width:s,height:c}=this.hudViewport,l=VY(this.final,s,c,r.fighters,this.players,this.roundStats,this.viewerId,this.deaths[0]??this.deaths[1]),u=hV(this.camera.aspect,this.baseFov,(c-l)/Math.max(1,c)),d=e-(this.stoppageRaiseAt-sJ),f=n?0:Math.sin(d*.35)*.06*u.distance;return this.cornerPosition.set(R.clamp(this.raiseCentre.x,-1.4,1.4)+f,u.height+.05*u.distance,this.raiseCentre.z+u.distance),this.cornerLookAt.set(this.raiseCentre.x,u.height,this.raiseCentre.z),{position:this.cornerPosition,lookAt:this.cornerLookAt,framed:!0}}presentFinish(e){let t=this.buffer.latest()?.referee.alive===!1;t||this.referee?.waveOff(void 0,e.method===`death`);let n=this.buffer.latest()?.fighters,r=n?.findIndex(t=>t.player_id!==e.winner_id&&t.player_id!==null)??-1;if(r>=0&&this.headCacheValid[r]&&!this.settings().reducedMotion&&!this.carnage.gibbed(r)&&(this.finishCloseUpIndex=r,this.finishCloseUpUntil=this.frameSeconds+eJ,this.finishCloseUpBearing=null,this.finishCloseUpAt=this.frameSeconds),e.winner_id===null)return;let i=n?.findIndex(t=>t.player_id===e.winner_id)??-1;if(i<0)return;this.graphs?.[i]?.celebrate(oJ);let a=n?.[i]?.injuries??[];!t&&(sY(a,`left`)||sY(a,`right`))&&(this.stoppageWinner=i,this.stoppageRaiseAt=this.frameSeconds+sJ)}cornerShotFrame(e,t,n){if(t===null||t.phase!==`rest`||n||this.graphs===null)return null;let r=t.fighters.findIndex(e=>e.player_id===this.viewerId),i=e-this.restStartedAt,a=sV(i,t.phase_ticks_remaining/this.simulation.tick_rate,+(r===1));return a===null||!this.graphs[a].stoolVisible||this.cutmen!==null&&this.cutmanProgress[a]e.player_id===this.viewerId)===1),n=this.mapping.x(l);return fV(t,n,-3.5,rJ,this.cornerPosition).setY(iJ),fV(t,n,0,0,this.cornerLookAt),this.cornerLookAt.lerp(fV(+(t===0),n,0,0,this.tmpCamera),aJ).setY(.9),{position:this.cornerPosition,lookAt:this.cornerLookAt,framed:!0}}closeUpFrame(e){if(e>=this.finishCloseUpUntil||this.finishCloseUpIndex<0||!this.headCacheValid[this.finishCloseUpIndex])return null;let t=this.arcadeInjuries[this.finishCloseUpIndex],n=t===`decapitation`&&this.effects.severedHeadPosition(this.finishCloseUpIndex,this.closeUpTarget),r=!n&&this.effects.partPosition(KH(this.finishCloseUpIndex,`upper_body`),this.closeUpTarget),i=n||r?null:this.graphs?.[this.finishCloseUpIndex]?.fallBody??null;if(this.finishCloseUpBearing===null&&i!==null&&!i.body.asleep&&e-this.finishCloseUpAt.4?u:.9,a)}let d=this.finishCloseUpBearing+l;return this.closeUpPosition.set(R.clamp(s.x+Math.sin(d)*c,-2.2,hJ),s.y+(n?.42:o?.5:.75),R.clamp(s.z+Math.cos(d)*c,-2.2,hJ)),this.replayLookAt.copy(s),{position:this.closeUpPosition,lookAt:this.replayLookAt,tight:!0}}raiseSpot(e,t){let n=e.x>0?-1:1,r={x:n*cJ,z:0},i=-1/0;for(let[a,o]of lJ){let s=e.x+n*a*cJ,c=e.z+o*cJ,l=Math.min(fJ-Math.abs(s),fJ-Math.abs(c),Math.hypot(s-t.x,c-t.z)-dJ);for(let e of this.graphs??[]){let t=e.fallBody;if(t!==null)for(let e of[0,1,2,3,4])t.bodyPoint(e,this.bodyPoint),l=Math.min(l,Math.hypot(s-this.bodyPoint.x,c-this.bodyPoint.z)-yJ-.05)}for(let e of[0,1])this.effects.severedHeadPosition(e,this.closeUpTarget)&&(l=Math.min(l,Math.hypot(s-this.closeUpTarget.x,c-this.closeUpTarget.z)-gJ-.05));if(l>=0)return{x:s-e.x,z:c-e.z};l>i&&(i=l,r={x:s-e.x,z:c-e.z})}return r}nearerGlove(e,t){e.getWorldPosition(this.stoppageWrist),t.getWorldPosition(this.stoppageOtherWrist);let n=e=>Math.hypot(e.x-this.refereePosition.x,e.z-this.refereePosition.z);return n(this.stoppageOtherWrist)-.5*n.length()}startReplay(e){let t=new xR(e.snapshots.length+2,this.simulation.tick_rate);for(let n of e.snapshots)t.push(n);if(this.replay={plan:e,buffer:t,startedAt:this.frameSeconds,impactFired:!1,side:null},this.drawnOffsetsLive=!1,this.commentary.replay(this.frameSeconds,e.impact),this.replayFollow=0,this.replayFollowAt=0,e.impact.kind===`referee_down`){this.referee?.resetTransient(!1),this.referee?.primeReplayFall(),this.effects.stopGush(2);return}for(let e=this.pendingGore.length-1;e>=0;--e)this.pendingGore[e].event.kind!==`injury`&&this.pendingGore.splice(e,1);for(let e of[0,1]){this.effects.stopGush(e),this.deaths[e]!==null&&this.carnage.undoDeath(e);let t=this.arcadeInjuries[e],n=this.arcadeInjuryEvents[e];t!==null&&n!==null&&(this.replayInjuries[e]={injury:t,event:n},this.restoreInjury(e))}for(let t of this.pendingContacts.splice(0)){let n=t.recipientIndex;t.injury!==null&&(n===0||n===1)&&this.replayInjuries[n]===null&&this.arcadeInjuries[n]===null&&(this.replayInjuries[n]={injury:t.injury,event:t.event}),t.event.event_id!==e.impact.event_id&&(t.injury=null,t.contactTick=1/0,this.pendingContacts.push(t))}let n=e.snapshots[0]?.fighters.findIndex(t=>t.player_id===e.impact.target_id)??-1;n>=0&&e.impact.detail.endsWith(`:head`)&&this.effects.returnMouthpiece(n);let r=this.lastKnockdown?.knockdown.detail===_J;for(let[t,i]of(this.graphs??[]).entries()){let a=this.liveFallTicks[t]??null;i.resetTransient(!1),a!==null&&a>=e.impact.tick-1&&i.primeReplayFall(),t===n&&r&&i.fallToKnee(!0)}this.finalRevealAt=this.frameSeconds+e.durationSeconds+di(this.final)}endReplay(){let e=this.replay?.plan.impact.kind===`referee_down`;if(this.replay=null,e){this.drawnOffsetsLive=!1;let e=this.buffer.latest();for(let[t,n]of(this.graphs??[]).entries())n.resetTransient(e?.fighters[t]?.is_downed===!0);return}this.drawnOffsetsLive=!1,this.reapplyReplayInjuries();let t=this.buffer.latest();for(let[e,n]of(this.graphs??[]).entries()){let r=t?.fighters[e],i=r!==void 0&&r.player_id===this.flashKnockout?.loserId;n.resetTransient(r?.is_downed===!0||i),i&&n.knockOut()}for(let e of[0,1])this.showDeath(e,0,!0);this.final!==null&&this.presentFinish(this.final)}fireRefereeEvents(e){for(let t=0;te){t+=1;continue}this.pendingRefereeEvents.splice(t,1);let r=this.buffer.latest();n.kind===`referee_down`?(r!==null&&this.fireRefereeFall(n,r),this.eventCallout={text:`THE REFEREE IS DEAD!`,until:this.frameSeconds+ZJ},this.refereeReplayAt={at:this.frameSeconds+XJ,impact:n}):n.kind===`referee_hit`?r!==null&&this.punchReferee(n,r,!1):this.referee!==null&&(this.referee.boxer.rig.bones.head.getWorldPosition(this.refereeHead),this.effects.addEvent(n,this.refereeHead,this.settings().reducedMotion))}}punchReferee(e,t,n){let r=this.referee;if(r===null)return;let[i,a]=e.detail.split(`:`),o=t.fighters.findIndex(t=>t.player_id===e.actor_id),s=t.fighters[o],c=s?.action_key?.split(`:`)[1]??null;r.react(`hit`,a===`body`?`body`:`head`,e.direction,i,c,n?Math.max(e.amount,140):e.amount),r.boxer.rig.bones.head.getWorldPosition(this.refereeHead);let l=s===void 0?void 0:Jq(s,{...s,x:t.referee.x,y:t.referee.y},this.mapping),u=this.settings().reducedMotion;this.effects.addEvent({...e,kind:n?`knockdown`:`hit`},this.refereeHead,u,l);let d=n||u?null:sX({...e,kind:`hit`}),f=d===null?null:this.refereeMouth();d!==null&&f!==null&&this.effects.gush(2,f.position,f.axis,d.seconds,d.rate,e.event_id);let p=this.refereePunchPower(e);o>=0&&this.graphs?.[o]?.landedHit(e.action_id,!1,p),this.onContact?.(e,p)}fireRefereeFall(e,t,n=!1){let r=this.referee;if(r===null)return;let i=n?this.refereeBlow(e):null;i===null?(r.boxer.rig.bones.head.getWorldPosition(this.refereeHead),this.effects.addEvent({...e,kind:`knockdown`,amount:160,blood:80},this.refereeHead,this.settings().reducedMotion)):this.punchReferee(i,t,!0);let a=this.settings().reducedMotion?null:this.refereeMouth();a!==null&&this.effects.gush(2,a.position,a.axis,yX,bX,e.event_id),r.knockOut(),this.onContact?.(e,!1)}refereePunchPower(e){for(let t=this.history.length-1;t>=0;--t){let n=this.history[t];if(n.tickt.player_id===e.actor_id);return r!==void 0&&r.action_id===e.action_id&&r.action_power===`power`}return!1}refereeBlow(e){if(e.action_id===null)return null;for(let t=this.history.length-1;t>=0;--t){let n=this.history[t],r=n.events.find(t=>t.kind===`referee_hit`&&t.action_id===e.action_id&&t.tick===e.tick);if(r!==void 0)return r;if(n.tick=0?e.fighters[a]:void 0,l=c?.action_key?.split(`:`)??[],u=l[0]??null,d=l[1]??null,f=l[3]===`power`;this.graphs?.[i]?.react(`hit`,r.detail.endsWith(`:body`)?`body`:`head`,r.direction,u,d,r.amount),n.knockdown.detail===`body`&&n.knockdown.tick>r.tick&&this.graphs?.[i]?.windedFor((n.knockdown.tick-r.tick)/this.simulation.tick_rate+.15,mY(c?.action_key??null)),o.player_id===this.flashKnockout?.loserId&&this.graphs?.[i]?.knockOut(),a>=0&&this.graphs?.[a]?.landedHit(r.action_id,n.blocked,f),r.detail.endsWith(`:head`)&&!this.settings().reducedMotion&&this.knockOutMouthpiece(i,s??r.direction,r.event_id+rX,!0),f&&!n.blocked&&!this.settings().reducedMotion&&this.presentPowerHit(i,r),this.onContact?.(r,f),this.reapplyReplayInjuries(s),this.deaths[i]!=null&&(this.showDeath(i,s??r.direction,!0),this.announceDeath(i));for(let e of this.pendingGore.splice(0))this.presentGore(e.event);for(let t of this.pendingContacts)t.contactTick===1/0&&(t.contactTick=this.replay?.plan.impact.tick??e.tick)}replayFrame(e,t){let[n,r]=e.fighters,i=this.mapping.x(n.x),a=this.mapping.z(n.y),o=this.mapping.x(r.x),s=this.mapping.z(r.y),c=this.replay?.plan.impact.kind===`referee_down`,l=e.fighters.findIndex(e=>e.player_id===this.replay?.plan.impact.target_id),u=this.replay?.impactFired===!0&&l>=0&&this.headCacheValid[l]===!0;if(c&&this.referee!==null)return this.refereeReplayFrame(e,t);let d=1-Math.exp(-3*Math.max(0,t-this.replayFollowAt));this.replayFollowAt=t,this.replayFollow+=(+!!u-this.replayFollow)*d;let f=l<0?0:Math.max(this.portraitPull>1.3?.7:0,this.replayFollow*.8),p=u?this.headCache[l].x:l===1?o:i,m=u?this.headCache[l].z:l===1?s:a,h=(i+o)/2+(p-(i+o)/2)*f,g=(a+s)/2+(m-(a+s)/2)*f,_=-(s-a),v=o-i,y=Math.hypot(_,v)||1;_/=y,v/=y;let b=2.5,x=this.replay;x!==null&&x.side===null&&(x.side=aX(h,g,_,v,b,hJ));let S=x?.side??(v<0?-1:1);_*=S,v*=S;let C=.35*Math.sin(t*.7),w=_*Math.cos(C)-v*Math.sin(C),T=_*Math.sin(C)+v*Math.cos(C);this.replayCameraPosition.set(R.clamp(h+w*b,-2.2,hJ),1.38-Math.min(.25,t*.05),R.clamp(g+T*b,-2.2,hJ));let E=Math.hypot(this.replayCameraPosition.x-h,this.replayCameraPosition.z-g),D=Math.hypot(h,g);if(E.01){let e=iX-E;this.replayCameraPosition.x=R.clamp(this.replayCameraPosition.x-h/D*e,-2.2,hJ),this.replayCameraPosition.z=R.clamp(this.replayCameraPosition.z-g/D*e,-2.2,hJ)}let O=u?R.clamp(this.headCache[l].y,.45,1.28):1.28;this.replayLookAt.set(h,1.28+(O-1.28)*this.replayFollow,g);let k=this.settings().reducedMotion?0:this.powerShake;if(k>5e-4){let e=t*61;this.replayCameraPosition.x=R.clamp(this.replayCameraPosition.x+Math.sin(e*1.31)*k,-2.2,hJ),this.replayCameraPosition.y+=Math.cos(e*1.97)*k*.6,this.replayLookAt.x+=Math.sin(e*1.53)*k*.5,this.replayLookAt.y+=Math.cos(e*2.11)*k*.35}return{position:this.replayCameraPosition,lookAt:this.replayLookAt,tight:!0}}setInputLatency(e){this.inputLatencyMs=e,this.lagWarned=pi(e,this.lagWarned)}resyncClock(){this.buffer.resync()}setReconnect(e){this.reconnectMs=e}setBloodLevel(e){e!==`full`&&this.bloodLevel===`full`&&this.restoreAllInjuries(),this.bloodLevel=e,e===`off`&&this.downedPoolAccumulators.fill(0),this.effects.setBloodLevel(e)}setReducedMotion(e){e&&(this.restoreAllInjuries(),this.effects.clearDynamic())}syncInjuryPresentation(e){let t=this.arcadeInjuries[e],n=this.graphs;if(n!==null){let r=n[e];t===`head_burst`?r.boxer.setHeadBurst(!0):r.boxer.setDecapitated(t===`decapitation`),r.boxer.headInjury.setEyeOut(t===`eye_left`||t===`eye_right`?`both`:null),r.boxer.setHandDismembered(`left`,t===`dismember_left`),r.boxer.setHandDismembered(`right`,t===`dismember_right`);let i=t===`jaw_dislocation`?`jaw`:t===`shoulder_left`||t===`shoulder_right`?t:null;r.setArcadeDislocation(i)}}applyArcadeInjury(e,t,n,r){t===`dismember_left`&&!this.carnage.hasGlove(e,`left`)?t=`ribs_left`:t===`dismember_right`&&!this.carnage.hasGlove(e,`right`)?t=`ribs_right`:(t===`eye_left`&&this.carnage.eyeBurst(e,`left`)||t===`eye_right`&&this.carnage.eyeBurst(e,`right`))&&(t=`jaw_dislocation`);let i=!1;if(t===`decapitation`){let t=this.headWorldPose(e);if(t!==null){let a=this.graphs?.[e],o=a===void 0?void 0:ZY(a.boxer,t.position,t.quaternion);this.effects.decapitate(e,t.position,t.quaternion,r??n.direction,n.event_id,this.skinColor(e),o);let s=this.stumpWorldPose(e);s!==null&&this.effects.anchorStump(e,s.position,s.quaternion,s.rim,s.across),i=!0}}else if(t===`head_burst`){let t=this.headWorldPose(e);if(t!==null){this.effects.burstHead(e,t.position,r??n.direction,n.event_id);let a=this.burstStumpPose(e);a!==null&&this.effects.anchorStump(e,a.position,a.quaternion,a.rim,a.across),i=!0}}else if(t===`eye_left`||t===`eye_right`){let a=this.graphs?.[e]?.boxer,o=t===`eye_left`?`left`:`right`;if(a!==void 0&&IX(a,o,this.tmpPart,this.tmpStumpOffset,this.tmpPartQuaternion)){let t=r??n.direction;this.effects.gougeEye(e,this.tmpPart,this.tmpStumpOffset,t,n.event_id,o);let s=o===`left`?`right`:`left`;!this.effects.eyeOut(e,s)&&!this.carnage.eyeBurst(e,s)&&IX(a,s,this.tmpPart,this.tmpStumpOffset,this.tmpPartQuaternion)&&this.effects.spawnDebris(`eye`,this.tmpPart,t,1,n.event_id,SX,e),i=!0}}else if(t===`dismember_left`||t===`dismember_right`){let a=t===`dismember_left`?`left`:`right`,o=this.handWorldPose(e,a);if(o!==null){let t=this.graphs?.[e],s=t===void 0?void 0:{...XY(t.boxer.gloveMesh(a),o.position,o.quaternion),gloveBlood:t.boxer.gloveBloodLevel};this.effects.dismemberHand(e,a,o.position,o.quaternion,r??n.direction,n.event_id,this.gearColor(e),s),this.effects.anchorHandStump(e,a,o.position,o.quaternion),i=!0}}else if(t===`jaw_dislocation`||t===`shoulder_left`||t===`shoulder_right`||t===`ribs_left`||t===`ribs_right`){let a=this.tornWound(e,TX(t));a!==null&&(this.effects.tearOpen(e,a.position,a.axis,r??n.direction,n.event_id,t===`jaw_dislocation`?xX:0),i=!0)}return i?(this.arcadeInjuries[e]=t,this.arcadeInjuryEvents[e]=n,this.observedInjuryDown[e]=!1,this.syncInjuryPresentation(e),this.onArcadeInjury?.(t,n),!0):!1}reapplyReplayInjuries(e){for(let t of[0,1]){let n=this.replayInjuries[t];if(n===null)continue;this.replayInjuries[t]=null;let r=this.settings();r.blood!==`full`||r.reducedMotion||this.applyArcadeInjury(t,n.injury,{...n.event,event_id:n.event.event_id+rX},e)}}restoreInjury(e){this.arcadeInjuries[e]!==null&&(this.arcadeInjuries[e]=null,this.arcadeInjuryEvents[e]=null,this.observedInjuryDown[e]=!1,this.syncInjuryPresentation(e),this.effects.restoreFighter(e))}restoreAllInjuries(){this.restoreInjury(0),this.restoreInjury(1),this.effects.clearArcadeGore()}headWorldPose(e){let t=this.graphs,n=t===null?null:t[e].boxer.bone(`head`);return n===null||t===null?null:(t[e].boxer.root.updateMatrixWorld(!0),n.getWorldPosition(this.tmpHead),n.getWorldQuaternion(this.tmpHeadQuaternion),this.tmpStumpOffset.copy(EY).applyQuaternion(this.tmpHeadQuaternion),this.tmpHead.add(this.tmpStumpOffset),{position:this.tmpHead,quaternion:this.tmpHeadQuaternion})}handWorldPose(e,t){let n=this.graphs,r=n===null?null:n[e].boxer.bone(t===`left`?`gloveL`:`gloveR`);return r===null||n===null?null:(n[e].boxer.root.updateMatrixWorld(!0),r.getWorldPosition(this.tmpPart),r.getWorldQuaternion(this.tmpPartQuaternion),{position:this.tmpPart,quaternion:this.tmpPartQuaternion})}gearColor(e){return this.graphs?.[e]?.boxer.gearBaseColor.getHex()??1920728}skinColor(e){return this.graphs?.[e]?.boxer.skinBaseColor.getHex()??11563071}stumpWorldPose(e){let t=this.graphs?.[e]?.boxer,n=t?.bone(`head`);if(t===void 0||n==null)return null;t.root.updateMatrixWorld(!0);let r=t.headMesh,i=kY(r.geometry);if(i.length===0)return null;this.stumpRim.length!==i.length*3&&(this.stumpRim=new Float32Array(i.length*3)),this.tmpStump.set(0,0,0);for(let[e,n]of i.entries())HY(t,n,this.tmpStumpOffset),this.tmpStumpOffset.toArray(this.stumpRim,e*3),this.tmpStump.add(this.tmpStumpOffset);return this.tmpStump.multiplyScalar(1/i.length),n.getWorldPosition(this.tmpStumpOffset).sub(this.tmpStump).normalize(),this.tmpStumpAcross.set(1,0,0).applyQuaternion(n.getWorldQuaternion(this.tmpStumpQuaternion)),this.tmpStumpQuaternion.setFromUnitVectors(DY,this.tmpStumpOffset),{position:this.tmpStump,quaternion:this.tmpStumpQuaternion,rim:this.stumpRim,across:this.tmpStumpAcross}}burstStumpPose(e){let t=this.graphs?.[e]?.boxer;if(t===void 0)return null;let n=NY(t,this.stumpRim,this.burstStump);return n===null?null:(this.stumpRim=n,{position:this.burstStump.position,quaternion:this.burstStump.quaternion,rim:n,across:this.burstStump.across})}pressTick(e){return this.buffer.clockTick(e)+(this.inputLatencyMs??60)/1e3*this.simulation.tick_rate}pressGetUp(e){let t=this.buffer.latest(),n=t?.fighters.find(e=>e.player_id===this.viewerId);if(t?.phase!==`knockdown`||n?.is_downed!==!0)return null;let r=this.manualClock?this.lastManualTime:performance.now();return this.getUp.press(e,n,this.pressTick(r),r)}get getUpView(){return this.getUpFrame}get getUpVerdicts(){return this.getUp.counts}get getUpLog(){return this.getUp.log}updateGetUp(){let e=this.buffer.latest(),t=e?.fighters.find(e=>e.player_id===this.viewerId),n=this.manualClock?this.lastManualTime:performance.now(),r=n-this.getUpRisenAt0||!(t.is_downed||r)){this.getUpFrame=null,this.getUpBeatCount=-1;return}let i=Se(t,this.pressTick(n),n,this.getUp,this.getUpKnockTick,this.touchControls,r,this.getUpDraft);!r&&i.count!==this.getUpBeatCount&&(this.getUpBeatCount>=0&&i.count>=1&&i.count<=9&&this.onGetUpBeat?.(i.count),this.getUpBeatCount=i.count),this.getUpFrame=i}predictAction(e){let t=this.buffer.latest();if(t===null||this.viewerId===null||this.replay!==null)return;let n=t.fighters.findIndex(e=>e.player_id===this.viewerId);if(n<0)return;let r=t.fighters[n];if(t.phase!==`fight`&&t.phase!==`finish`||!lX(r))return;let i=(this.inputLatencyMs??60)/1e3*this.simulation.tick_rate,a=i+this.buffer.interpolationDelayTicks,o=this.manualClock?this.lastManualTime:performance.now(),s=this.graphs?.[n];if(vB(e.kind)){let n=s?.ownPunchActive===!0;if(e.id===void 0||r.stamina0||!n&&tB(r,t.tick)>0)return;let i=n?s.ownTicksToRecovery:0;n&&s.cutOwnRecovery(),this.evasion.press(e.kind,e.id,o,a,this.simulation.tick_rate,y+ce(r.style).evasionTicks,o+i*1e3/this.simulation.tick_rate);return}if(e.kind!==`punch`)return;this.evasion.drop(o)&&s?.keepOwnRecovery();let c=vt(r.injuries,e.hand);c!==null&&s?.predict(c===e.hand?e:{...e,hand:c},performance.now()/1e3,this.simulation.tick_rate,a,eB(r,e,t.tick+1),i)}acknowledgeActions(e,t){for(let[n,r]of e.fighters.entries()){let i=r.player_id===this.viewerId,a=e.phase===`fight`||e.phase===`finish`;i&&this.evasion.acknowledge(r,a,this.inputSequenceOf)&&this.graphs?.[n]?.keepOwnRecovery();let o=t.filter(t=>qq(t,e).puncherIndex===n);this.graphs?.[n]?.acknowledge(r,a,o,i?this.inputSequenceOf:null)}}push(e){let t=this.manualClock?this.lastManualTime:performance.now();if(!this.buffer.push(e,t))return;let n=this.dedupe.accept(e.events);this.acknowledgeActions(e,n),this.history.push(e),this.history.length>Zq&&this.history.shift();for(let r of n){if(this.roundStats.record(r,n),r.kind===`knockdown`){let t=n.find(e=>Yq(e)&&e.target_id===r.target_id&&e.tick===r.tick)??(r.detail===`body`?this.recordedHit(r):null),i=t!==null&&ai(t,e.events);this.lastKnockdown={knockdown:r,hit:t,blocked:i,finisher:i?null:uX(t,e)};let a=e.fighters.findIndex(e=>e.player_id===r.target_id);this.graphs?.[a]?.fallToKnee(r.detail===_J),r.detail===vJ&&(this.lastKnockdown=null)}if(r.kind===`result`&&r.detail===`flash_ko`){let e=n.findLast(e=>(e.kind===`hit`||e.kind===`counter_hit`)&&e.actor_id===r.actor_id)??null;e!==null&&e.target_id!==null&&(this.flashKnockout={hitEventId:e.event_id,loserId:e.target_id},this.lastKnockdown={knockdown:{...e,kind:`knockdown`},hit:e,blocked:!1,finisher:null})}r.kind===`referee_break`&&this.referee?.breakClinch(),($J.has(r.kind)||r.kind===`bleed`&&r.actor_id===`referee`)&&this.pendingRefereeEvents.push(r),r.kind===`box`&&(this.eventCallout={text:`BOX!`,until:this.frameSeconds+JJ}),r.kind===`body_collapse`&&r.target_id===this.viewerId&&(this.ownCollapseUntil=r.tick+r.amount),r.kind===`finish_him`&&(this.finishTargetId=r.target_id),(r.kind===`fatality`||r.kind===`death`)&&this.noteDeath(r,n,e),this.movement.observe(r,this.viewerId),r.kind===`knockdown`&&r.target_id===this.viewerId&&(this.getUp.reset(),this.getUpKnockTick=r.tick,this.getUpRisenAt=-1/0),r.kind===`get_up_input`&&r.actor_id===this.viewerId&&this.getUp.confirm(r,t),r.kind===`get_up`&&r.actor_id===this.viewerId&&(this.getUpRisenAt=t)}let r=e.fighters.find(e=>e.player_id===this.viewerId);r?.is_downed===!0&&!this.getUpWasDown&&!n.some(e=>e.kind===`knockdown`&&e.target_id===this.viewerId)&&(this.getUp.reset(),this.getUpKnockTick=ye(r,e.tick),this.getUpRisenAt=-1/0),this.getUpWasDown=r?.is_downed===!0,this.commentary.observe(e,n,this.players,this.simulation.tick_rate,this.frameSeconds);let i=e.fighters.findIndex(e=>e.player_id===this.viewerId),a=e.result===null&&!n.some(e=>e.kind===`knockdown`);for(let{event:t,presentationEvent:r,presentImpact:o,reactAmount:s}of fY(n,e)){let n=e.fighters.findIndex(e=>e.player_id===t.target_id),c=e.fighters.findIndex(e=>e.player_id===t.actor_id),{recipientIndex:l,puncherIndex:u}=qq(t,e),d=e.fighters[l]??e.fighters[n]??e.fighters[c]??e.fighters[0];if(PY(this.graphs?.[e.fighters.indexOf(d)],d,this.mapping,this.contactPoint),GJ.has(t.kind)){let n=u>=0?e.fighters[u]:null;this.pendingContacts.push({event:t,presentationEvent:r,presentImpact:o,reactAmount:s,contactTick:a&&u===i&&qJ.has(t.kind)&&this.graphs?.[u]?.pressLanded(t.action_id)===!0?-1/0:n?.action_contact_tick??t.tick,recipientIndex:l,puncherIndex:u,injury:xY(t,e.fighters[l],e.result,n??void 0),power:n!==null&&n.action_id===t.action_id&&n.action_power===`power`})}else t.kind===`bleed`&&t.actor_id!==`referee`&&this.effects.addEvent(t,this.contactPoint,this.settings().reducedMotion)}for(let t of n){if(!rY.has(t.kind))continue;let n=t.action_id===null?void 0:this.pendingContacts.find(e=>e.event.tick===t.tick&&e.event.action_id===t.action_id&&(Yq(e.event)||Xq(e.event)));n!==void 0&&(n.injury??=cY(t)),t.kind!==`fatality`&&(this.pendingGore.push({event:t,at:n?.contactTick??t.tick}),t.kind===`injury`&&Ze(t.detail)&&this.carnage.expect(e.fighters.findIndex(e=>e.player_id===t.target_id),t.detail))}}fireContacts(e){for(let t=0;te){t+=1;continue}this.pendingContacts.splice(t,1);let{event:r,presentationEvent:i,reactAmount:a,recipientIndex:o,puncherIndex:s,injury:c}=n,l=n.presentImpact&&!lY(i),u=this.buffer.latest()?.fighters[o],d=Jq(this.buffer.latest()?.fighters[s],u,this.mapping);this.presentFightEvent(r,o,s),l&&u!==void 0&&(this.contactOn(o,u,i.detail.endsWith(`:body`),d,i.direction),this.effects.addEvent(i,this.contactPoint,this.settings().reducedMotion,d));let f=this.settings();if(n.power&&l&&Yq(r)&&u!==void 0&&!f.reducedMotion&&this.presentPowerHit(o,i),(n.presentImpact||KJ.has(r.kind))&&this.arena.excite(WJ[r.kind]??0),l&&o>=0&&[`hit`,`counter_hit`,`knockdown`].includes(r.kind)){let e=this.viewerId!==null&&this.buffer.latest()?.fighters[o]?.player_id===this.viewerId;this.viewerHitFlash=Math.max(this.viewerHitFlash,oX(r,e,f.blood))}c!==null&&o>=0&&this.arcadeInjuries[o]===null&&f.blood===`full`&&!f.reducedMotion&&this.applyArcadeInjury(o,c,r,d);let p=this.graphs;l&&o>=0&&!f.reducedMotion&&sU(r.kind,r.amount,i.detail.endsWith(`:head`))&&this.knockOutMouthpiece(o,d??i.direction,r.event_id,!1);let m=l&&!f.reducedMotion?sX(r):null;m!==null&&o>=0&&this.gushFromMouth(o,r.event_id,m.seconds,m.rate),n.presentImpact&&o>=0&&r.kind===`knockdown`&&!f.reducedMotion&&this.gushFromMouth(o,r.event_id,yX,bX);let h=l&&o>=0?jv(r.kind,r.amount,i.detail.endsWith(`:head`)):0;if(h>0&&!f.reducedMotion&&f.blood!==`off`){let e=this.headWorldPose(o);e!==null&&(this.mouthPoint.set(0,-.07,.1).applyQuaternion(e.quaternion).add(e.position),this.effects.spawnTeeth(this.mouthPoint,d??i.direction,h,r.event_id))}if(l&&o>=0&&a!==null&&[`hit`,`counter_hit`,`block`,`perfect_block`,`knockdown`].includes(r.kind)){let e=r.kind===`block`||r.kind===`perfect_block`,t=i.detail.endsWith(`:body`)?`body`:`head`;if(p!==null){let n=(s>=0?this.buffer.latest()?.fighters[s]:void 0)?.action_key?.split(`:`)??[],c=n[0]??i.detail.split(`:`)[0]??null,l=n[1]??null;p[o].react(e?`block`:`hit`,t,i.direction,c,l,a),Yq(r)&&t===`head`&&l!==null&&this.carnage.punched(o,l===`left`?`right`:`left`,r.event_id),Yq(r)&&l!==null&&this.carnage.land(o,s,l,t,r.amount,r.blood,this.contactPoint,r.event_id,d??i.direction),this.flashKnockout?.hitEventId===r.event_id&&p[o].knockOut()}}l&&s>=0&&[`hit`,`counter_hit`,`block`,`perfect_block`,`guard_break`].includes(r.kind)&&p?.[s]?.landedHit(r.action_id,r.kind===`block`||r.kind===`perfect_block`,n.power),(n.presentImpact||!Yq(r))&&this.onContact?.(r,n.power===!0)}this.replay===null&&this.fireRefereeEvents(e);let t=this.refereeReplayAt;if(t!==null&&this.replay===null&&this.frameSeconds>=t.at){this.refereeReplayAt=null;let e=vq(this.history,t.impact,this.simulation.tick_rate,_q.speed,_q.before,_q.after),n=this.buffer.latest(),r=e!==null&&n!==null&&n.phase===`referee_down`&&n.phase_ticks_remaining/this.simulation.tick_rate>=e.durationSeconds-.5;e!==null&&r&&!this.settings().reducedMotion&&this.startReplay(e)}}fireGore(e){for(let t=0;te?t+=1:(this.pendingGore.splice(t,1),this.presentGore(n.event))}}presentGore(e){let t=this.buffer.latest()?.fighters,n=t?.findIndex(t=>t.player_id===(e.kind===`vomit`?e.actor_id:e.target_id))??-1;if(t===void 0||n<0)return;let r=Jq(e.actor_id===e.target_id?void 0:t.find(t=>t.player_id===e.actor_id),t[n],this.mapping)??e.direction;if(e.kind===`vomit`)this.carnage.vomit(n,e.event_id),this.onGore?.({kind:`vomit`});else if(e.kind===`finish_him`)this.arena.excite(1),this.onGore?.({kind:`finish_him`});else if(e.kind===`death`)this.showDeath(n,r,!1),this.announceDeath(n);else if(e.kind===`injury`&&Ze(e.detail)){let i=e.detail;if(!this.carnage.inflict(n,i,e.event_id,r,e.tick))return;this.eventCallout={text:`${lt(i)}!`,until:this.frameSeconds+iY},this.arena.excite(oY);let a=this.viewerId!==null&&t[n].player_id===this.viewerId;this.settings().blood!==`off`&&(this.viewerHitFlash=Math.max(this.viewerHitFlash,a?1:.5)),this.settings().reducedMotion||(this.powerShake=Math.min(tY,this.powerShake+eY)),this.onGore?.({kind:`injury`,injury:i})}}showDeath(e,t,n){let r=this.deaths[e]??null;if(r===null)return;let i=this.fatal?.index===e?this.fatal:null,a=(i?.hit.event_id??e)+(n?rX:0);i===null?r===`gutted`&&this.carnage.fatality(e,`gutting`,a,t):this.carnage.fatality(e,i.fatality,a,t),this.carnage.die(e,r)}announceDeath(e){let t=this.deaths[e]??null;if(t===null)return;let n=mt(t);this.eventCallout={text:`${ht(t)}!`,until:this.frameSeconds+aY},this.arena.excite(1),this.settings().reducedMotion||(this.powerShake=tY),n!==null&&this.onGore?.({kind:`fatality`,fatality:n}),this.onGore?.({kind:`death`,cause:t})}noteDeath(e,t,n){let r=n.fighters.findIndex(t=>t.player_id===e.target_id);if(r!==0&&r!==1)return;let i=e.action_id===null?null:t.find(t=>Yq(t)&&t.tick===e.tick&&t.action_id===e.action_id&&t.target_id===e.target_id)??null;if(e.kind===`fatality`){i!==null&&Qe.includes(e.detail)&&(this.fatal={index:r,fatality:e.detail,hit:i});return}let a=pt(e.detail);a!==null&&(this.deaths[r]=a,i===null?this.lastKnockdown=null:(this.flashKnockout={hitEventId:i.event_id,loserId:n.fighters[r].player_id},this.lastKnockdown={knockdown:{...i,kind:`knockdown`},hit:i,blocked:!1,finisher:null}))}presentFightEvent(e,t,n){let r=nY[e.kind];r!==void 0&&(this.eventCallout={text:r.text,until:this.frameSeconds+r.seconds});let i=this.graphs;if(!(i===null||t<0)&&(e.kind===`parry`&&i[t]?.stagger(),e.kind===`body_collapse`)){let r=n>=0?this.buffer.latest()?.fighters[n]:void 0;i[t]?.windedFor(e.amount/this.simulation.tick_rate+.15,mY(r?.action_key??null))}}recordedHit(e){if(e.action_id===null)return null;for(let t=this.history.length-1;t>=0;--t){let n=this.history[t].events.find(t=>(t.kind===`hit`||t.kind===`counter_hit`)&&t.action_id===e.action_id&&t.target_id===e.target_id);if(n!==void 0)return n}return null}enterRest(e){this.restStartedAt=e,this.effects.clearMouthpieces()}contactOn(e,t,n,r,i){let a=n?null:this.headWorldPose(e),o=n?this.graphs?.[e]?.boxer.rig.bones.upperChest:void 0,s=a?.position??o?.getWorldPosition(this.contactPoint)??null;if(s===null)return PY(this.graphs?.[e],t,this.mapping,this.contactPoint);let c=r??{x:i<0?-1:1,z:0},l=n?wX:CX;return this.contactPoint.set(s.x-c.x*l,s.y,s.z-c.z*l)}gushFromMouth(e,t,n,r){let i=this.tornWound(e,`mouth`);i!==null&&this.effects.gush(e,i.position,i.axis,n,r,t)}anchorGush(e){if(!this.effects.gushing(e)||this.carnage.vomiting(e))return;let t=this.tornWound(e,TX(this.arcadeInjuries[e]??null));t!==null&&this.effects.anchorGush(e,t.position,t.axis)}tornWound(e,t){if(t===`mouth`){let t=this.headWorldPose(e);return t===null?null:{position:this.woundPoint.copy(_X).applyQuaternion(t.quaternion).add(t.position),axis:this.woundAxis.copy(vX).applyQuaternion(t.quaternion)}}let n=this.graphs?.[e]?.boxer;if(n===void 0)return null;n.root.updateMatrixWorld(!0);let r=n.rig.bones,i=t===`shoulder_left`||t===`ribs_left`,a=r.shoulderL.getWorldPosition(this.woundAxis).sub(r.shoulderR.getWorldPosition(this.tmpStumpOffset)).normalize().multiplyScalar(i?1:-1),o=r.upperChest.getWorldPosition(this.tmpStump),s=this.tmpStumpOffset.copy(o).sub(r.hips.getWorldPosition(this.tmpStumpAcross)).normalize();return t===`ribs_left`||t===`ribs_right`?{position:this.woundPoint.copy(o).addScaledVector(a,AX).addScaledVector(s,-.06),axis:a}:((i?r.shoulderL:r.shoulderR).getWorldPosition(this.woundPoint),{position:this.woundPoint,axis:a.addScaledVector(s,.5).normalize()})}refereeMouth(){let e=this.referee?.boxer.rig.bones.head;return e===void 0?null:(e.getWorldPosition(this.tmpHead),e.getWorldQuaternion(this.tmpHeadQuaternion),this.tmpHead.add(this.tmpStumpOffset.copy(EY).applyQuaternion(this.tmpHeadQuaternion)),{position:this.woundPoint.copy(_X).applyQuaternion(this.tmpHeadQuaternion).add(this.tmpHead),axis:this.woundAxis.copy(vX).applyQuaternion(this.tmpHeadQuaternion)})}knockOutMouthpiece(e,t,n,r){let i=this.headWorldPose(e);i!==null&&(this.mouthPoint.set(0,-.075,.1).applyQuaternion(i.quaternion).add(i.position),this.effects.ejectMouthpiece(e,this.mouthPoint,i.quaternion,t,n,this.gearColor(e),r))}get resultVisible(){return this.final!==null&&this.frameSeconds>=this.finalRevealAt}get resolutionScale(){return this.scaler.scale}get diagnostics(){let e=this.renderer.getContext(),t=e.getExtension(`WEBGL_debug_renderer_info`),n=t===null?e.getParameter(e.RENDERER):e.getParameter(t.UNMASKED_RENDERER_WEBGL);return{frameMs:this.frameMsAverage,resolutionScale:this.scaler.scale,gpu:this.memoryInfo,graphics:String(n)}}get memoryInfo(){return{geometries:this.renderer.info.memory.geometries,textures:this.renderer.info.memory.textures,programs:this.renderer.info.programs?.length??0}}applyResolutionScale(){let e=this.basePixelRatio*this.scaler.scale;this.renderer.setPixelRatio(e),this.composer.setPixelRatio(e);let t=this.scaler.scale<=Qq;this.bloomPass.enabled=!t,this.keyLight!==null&&Kq(this.keyLight.shadow,t,this.scaler.scale<.8?1024:2048),this.arena.setLowTier(t),this.effects.setLowTier(t)}setupLights(){let e=new kf(`#33416c`,`#3b2c20`,.6);this.scene.add(e),this.lights.push(e);let t=new Uf(`#fff0da`,185,26,.56,.6,1.7);t.position.set(.9,7.2,4.4),t.target.position.set(0,.6,0),t.castShadow=!0,t.shadow.mapSize.set(2048,2048),t.shadow.bias=Uq,t.shadow.camera.near=3,t.shadow.camera.far=14,this.keyLight=t,this.scene.add(t,t.target),this.lights.push(t);let n=new Uf(`#cfdcff`,55,24,.6,.7,1.7);n.position.set(-3.6,5.5,2.2),n.target.position.set(0,.8,0),this.scene.add(n,n.target),this.lights.push(n);for(let[e,t,n,r]of[[`#a9c0ff`,-5.2,3.4,-4.6],[`#9db4ff`,5.2,3.4,-4.6]]){let i=new Uf(e,170,30,.6,.9,1.8);i.position.set(t,n,r),i.target.position.set(0,1.2,0),this.scene.add(i,i.target),this.lights.push(i)}let r=new Uf(`#e4ecff`,85,22,.3,.8,1.5);r.position.set(0,6.4,-4.4),r.target.position.set(0,1,0),this.scene.add(r,r.target),this.lights.push(r),this.followSpot=r}draw(e,t=!1,n=!0){if(this.destroyed)return;let r=e-this.previous,i=t?1/60:Math.min(.05,Math.max(.001,r/1e3));this.previous=e,!t&&this.scaler.record(r)&&this.applyResolutionScale(),!t&&r>0&&r<1e3&&(this.frameMsAverage+=(r-this.frameMsAverage)*.05);let a=Math.min(this.pixelRatioCap,window.devicePixelRatio||1);a!==this.basePixelRatio&&(this.basePixelRatio=a,this.applyResolutionScale());let o=this.canvas.clientWidth,s=this.canvas.clientHeight;o>0&&s>0&&(this.renderer.getSize(this.sizeCheck),(this.sizeCheck.x!==o||this.sizeCheck.y!==s)&&(this.renderer.setSize(o,s,!1),this.composer.setSize(o,s),this.camera.aspect=o/s,this.portraitPull=R.clamp(1.2/this.camera.aspect,1,2.2),this.baseFov=36*Math.min(1.3,Math.sqrt(this.portraitPull)),this.camera.fov=this.baseFov,this.camera.updateProjectionMatrix()));let c=e/1e3;this.frameSeconds=c,this.finishPass.uniforms.uTime.value=c%1e3,t&&(this.lastManualTime=e);let l=this.settings();this.setBloodLevel(l.blood);let u=this.buffer.latest(),d=i,f=u?.result!==null&&u?.result!==void 0&&ci.has(u.result.finish_method);if(this.cheer(c,i),f&&!this.finishSeen&&(this.finishSeen=!0,this.finishSlowMotion=2.2,this.arena.excite(1)),this.finishSlowMotion>0&&!l.reducedMotion){this.finishSlowMotion=Math.max(0,this.finishSlowMotion-i);let e=Math.min(1,this.finishSlowMotion/.5);i*=.3+.7*(1-e)}this.viewerHitFlash=Math.max(0,this.viewerHitFlash-i*3.2);let p=u===null?0:t?hY(u):this.buffer.renderTick(e),m=this.updateRocked(u===null?null:this.shownAt(p),d,l.reducedMotion);m!==null&&u!==null&&this.onRocked?.(m,u.tick);let h=u===null?null:this.applyLocalPrediction(this.buffer.sample(p),i,e),g=this.replay;if(g!==null){let e=c-g.startedAt;e>=g.plan.durationSeconds||g.plan.impact.kind===`referee_down`&&u?.phase!==`referee_down`?this.endReplay():(p=yq(g.plan,e,this.simulation.tick_rate),h=g.buffer.sample(p)??h,!g.impactFired&&p>=g.plan.impact.tick&&h!==null&&(g.impactFired=!0,this.fireReplayImpact(h)))}let _=this.replay===null?i:i*this.replay.plan.speed,v=1.8,y=!1,b=null;if(h!==null){let e=this.replay===null?this.ceremony:null,[t,n]=e===null?this.standApart(h.fighters,_):this.ceremonyFighters(e,h.fighters,_,c,this.drawnOffsets);for(let[e,t]of h.fighters.entries())this.arcadeInjuries[e]!==null&&this.replay===null&&(t.is_downed?this.observedInjuryDown[e]=!0:this.observedInjuryDown[e]&&h.result===null&&this.restoreInjury(e));let r=this.graphs;if(r!==null){this.wearLook(0,t.player_id),this.wearLook(1,n.player_id);let e=this.headCacheValid[0]?this.headCache[0]:void 0,i=this.headCacheValid[1]?this.headCache[1]:void 0;r[0].boxer.root.visible=!0,r[1].boxer.root.visible=!0;let a=zq(h,this.simulation.tick_rate);r[0].setResting(a),r[1].setResting(a);let o=h.phase===`countdown`?h.phase_ticks_remaining:null;r[0].setCountdown(o),r[1].setCountdown(o);let s=this.replay!==null||h.phase===`complete`;r[0].stayDown(s),r[1].stayDown(s),h.phase===`fight`&&this.lastPhase===`rest`&&this.replay===null&&(this.roundCalloutUntil=c+$q,this.roundCalloutRound=h.round_number),h.phase===`rest`&&this.lastPhase!==`rest`&&this.enterRest(c),this.lastPhase=h.phase,this.anticipatePunches(u,p),r[0].setObstacle(r[1].boxer.root.position.x,r[1].boxer.root.position.z),r[1].setObstacle(r[0].boxer.root.position.x,r[0].boxer.root.position.z);let d=this.referee?.boxer.rig.bones.head.getWorldPosition(this.refereeHead)??null;r[0].setRefereeHead(d),r[1].setRefereeHead(d),r[0].update(t,n,_,c,l.reducedMotion,l.blood,p,i),r[1].update(n,t,_,c,l.reducedMotion,l.blood,p,e);let f=h.phase===`finish`?Ci(h.fighters,this.finishTargetId):null;for(let[e,t]of h.fighters.entries()){let n=f!==null&&t.player_id===f.player_id;r[e].setDazed(n),this.carnage.sync(e,(this.replay===null?void 0:u?.fighters[e])??t,l,_,c,n)}let m=r[h.fighters.findIndex(e=>e.player_id===this.viewerId)],g=m?.ownPressId??null;if(m!==void 0&&g!==null&&g!==this.soundedPress){this.soundedPress=g;let{punchClass:e,power:t}=m.punchKind;this.onOwnPunch?.(e,t,g)}for(let[e,t]of r.entries()){let n=t.boxer.bone(`head`);n!==null&&(t.boxer.root.updateMatrixWorld(!0),n.getWorldPosition(this.headCache[e]),this.headCacheValid[e]=!0);let r=t.fallBody!==null;r&&!this.fallingLive[e]&&this.replay===null&&(this.liveFallTicks[e]=p),this.fallingLive[e]=r}}for(let e=0;ee.player_id===this.viewerId),C=l.camera===`fighter`&&S>=0&&Rq(h)?this.fighterCam.update(i,c,S===0?this.tmpA:this.tmpB,S===0?this.tmpB:this.tmpA,this.effects.shakeAmount+this.powerShake,l.reducedMotion,this.camera.aspect):null;C===null&&this.fighterCam.reset();let w=this.replay,T=this.cameraOverride??(w!==null&&h!==null?this.replayFrame(h,c-w.startedAt):this.closeUpFrame(c)??this.raiseFrame(c,i,l.reducedMotion)??this.cornerShotFrame(c,h,l.reducedMotion)??this.restWideFrame(h)??this.ceremonyFrame(c)??C??x);this.ownViewActive=C!==null&&T===C;let E=this.ownViewActive?this.baseFov*xV:this.baseFov;if(this.camera.fov!==E&&(this.camera.fov=E,this.camera.updateProjectionMatrix()),this.cameraOverride===null&&this.portraitPull>1&&T.framed!==!0&&!this.ownViewActive){let e=T.tight===!0,t=this.portraitPull/Math.min(1.3,Math.sqrt(this.portraitPull)),n=e?Math.min(t,1.25):t;this.tmpCamera.subVectors(T.position,T.lookAt).multiplyScalar(n),this.camera.position.copy(T.lookAt).add(this.tmpCamera),e&&(this.camera.position.x=R.clamp(this.camera.position.x,-2.2,hJ),this.camera.position.z=R.clamp(this.camera.position.z,-2.2,hJ)),this.camera.lookAt(T.lookAt.x,T.lookAt.y-(this.portraitPull-1)*(e?.08:.45),T.lookAt.z)}else this.camera.position.copy(T.position),this.camera.lookAt(T.lookAt);this.effects.setViewDistance(this.camera.position.distanceTo(T.lookAt)),this.arena.makeRoomForCamera(this.camera.position);let D=T===x?hw(Math.max(this.tmpA.z,this.tmpB.z)):T.framed===!0?IJ:1;this.ring.setNearRopeOpacity(this.ring.nearRopeOpacity()+(D-this.ring.nearRopeOpacity())*(1-Math.exp(-6*i))),this.updateGetUp(),n&&(this.composer.render(),this.bloomPass.enabled&&this.carnage.drawBreak(this.renderer,this.scene,this.camera,this.arena.group),this.drawHudOverlay(h)),!this.destroyed&&!this.manualClock&&(this.raf=requestAnimationFrame(e=>this.draw(e)))}applyLocalPrediction(e,t,n){if(e===null||this.localInput===null||this.viewerId===null)return e;let r=e.fighters.findIndex(e=>e.player_id===this.viewerId),i=this.localInput()??{moveX:0,moveY:0,defense:`none`},a=(this.inputLatencyMs??60)/1e3*this.simulation.tick_rate+this.buffer.interpolationDelayTicks,o=this.ownCollapseUntil>e.tick,s=e.phase===`fight`||e.phase===`finish`&&r>=0&&Ci(e.fighters,this.finishTargetId)!==e.fighters[r],c=r>=0&&s&&!o?e.fighters[r]:null,l=this.evasion.holdsFeet(n)?0:this.graphs?.[r]?.ownFootwork??1,u=this.movement.update(c,i,l,n,a,e.tick,t,this.simulation.tick_rate),d=this.evasion.pose(n);if(r<0)return e;let f=e.fighters[r],p=c===null?f.defense:yB(c,i,d,this.evasion.hidesServerEvasion(n));if(Math.abs(u.dx)<.01&&Math.abs(u.dy)<.01&&p===f.defense)return e;let m=_B(f,u,e.fighters[+(r===0)]??null),h={...f,x:f.x+m.dx,y:f.y+m.dy,defense:p},g=r===0?[h,e.fighters[1]]:[e.fighters[0],h];return{...e,fighters:g}}anticipatePunches(e,t){if(!(this.replay!==null||e===null||e.phase!==`fight`&&e.phase!==`finish`))for(let[n,r]of(this.graphs??[]).entries()){let i=e.fighters[n];i!==void 0&&!i.is_downed&&r.anticipate(i,i.action_start_tick-t)}}cheer(e,t){ee.clinch_ticks>0||e.clinch_startup_ticks>0||e.is_downed)?null:zY(n.x,n.y,r.x,r.y,CJ,u-f,d-f,S),[a,o]=this.drawnTargets;a.x=i===null?0:i.ax-n.x,a.y=i===null?0:i.ay-n.y,o.x=i===null?0:i.bx-r.x,o.y=i===null?0:i.by-r.y,this.clearOfTheFallen(e);let s=1-Math.exp(-14*t);for(let e of[0,1]){let n=this.drawnOffsets[e],r=this.drawnTargets[e],i=r.x-n.x,a=r.y-n.y;if(this.drawnOffsetsLive){i*=s,a*=s;let e=Math.hypot(i,a);e>wJ*t&&(i*=wJ*t/e,a*=wJ*t/e)}n.x+=i,n.y+=a}return this.drawnOffsetsLive=!0,[this.drawnAt(0,n),this.drawnAt(1,r)]}drawnAt(e,t){let n=this.drawnOffsets[e];if(Math.abs(n.x)<.01&&Math.abs(n.y)<.01)return t;let r=gB(t.x+n.x,t.y+n.y);return Object.assign(this.drawnFighters[e],t,{x:r.x,y:r.y})}clearOfTheFallen(e){for(let t of[0,1]){let n=this.graphs?.[t]?.fallBody??null,r=+(t===0),i=e[r];if(n===null||i.is_downed||(this.graphs?.[r]?.fallBody??null)!==null)continue;let a=this.drawnTargets[r],o=this.mapping.x(i.x+a.x),s=this.mapping.z(i.y+a.y),c=this.clearOf(n,o,s);a.x+=(c.x-o)/this.mapping.x(1),a.y+=(c.z-s)/this.mapping.z(1);return}}clearOf(e,t,n){let r={x:t,z:n};for(let t of[0,1,2,3,4])e.bodyPoint(t,this.bodyPoint),r=FY(r.x,r.z,this.bodyPoint.x,this.bodyPoint.z,bJ);let i=this.insideRopes(r.x,r.z);if(Math.hypot(i.x-r.x,i.z-r.z)<1e-6)return r;let a=t=>[0,1,2,3,4].every(n=>(e.bodyPoint(n,this.bodyPoint),Math.hypot(t.x-this.bodyPoint.x,t.z-this.bodyPoint.z)>=.499999));for(let e=TJ;e<=2.000000001;e+=TJ)for(let[t,n]of[[1,0],[-1,0],[0,1],[0,-1]]){let r=this.insideRopes(i.x+t*e,i.z+n*e);if(a(r))return r}return i}insideRopes(e,t){let n=gB(e/this.mapping.x(1),t/this.mapping.z(1));return{x:this.mapping.x(n.x),z:this.mapping.z(n.y)}}headHeightOf(e){return(this.graphs?.[e]?.boxer.metrics.headRestY??1.52)+.04}bleed(e,t,n){for(let[r,i]of e.entries()){let e=DX(i,this.graphs?.[r],this.flashKnockout?.loserId),a=this.arcadeInjuries[r]??null,o=a!==null,s=(i.trauma.bleeding+i.trauma.left_cut+i.trauma.right_cut)/380,c=o?Math.max(s,pX):s;if(c>.05&&!e)this.downedPoolAccumulators[r]=0,this.downedPoolCounts[r]=0,this.effects.drip(this.dripPoint(r),c,n.reducedMotion,r);else if(c>dX&&e&&n.blood!==`off`){this.effects.stopDrip(r),this.downedPoolAccumulators[r]+=t*5*(o?mX:1);let e=this.poolSource(r,a);for(;this.downedPoolAccumulators[r]>=1;){--this.downedPoolAccumulators[r];let t=this.downedPoolCounts[r];this.downedPoolCounts[r]=t+1;let n=EX(t,c,o?hX:fX),i=t*2.399963+r*Math.PI;this.effects.pool(e.x+Math.sin(i)*n*.25,e.z+Math.cos(i)*n*.25,n,t+r*7)}}else this.effects.stopDrip(r),this.downedPoolAccumulators[r]=0,e||(this.downedPoolCounts[r]=0)}}dripPoint(e){let t=this.headWorldPose(e);if(t!==null)return t.position.add(this.tmpStumpOffset.copy(gX).applyQuaternion(t.quaternion));if(this.headCacheValid[e])return this.tmpHead.copy(this.headCache[e]);let n=e===0?this.tmpA:this.tmpB;return this.tmpHead.set(n.x,this.headHeightOf(e),n.z)}poolSource(e,t){if(t===`dismember_left`||t===`dismember_right`){let n=this.handWorldPose(e,t===`dismember_left`?`left`:`right`);if(n!==null)return n.position}let n=TX(t);if(n!==`mouth`){let t=this.tornWound(e,n);if(t!==null)return t.position}return this.headCacheValid[e]?this.headCache[e]:e===0?this.tmpA:this.tmpB}updateBlobShadows(){let e=[this.tmpA,this.tmpB,this.refereePosition];for(let[t,n]of this.blobShadows.entries()){n.visible=t>=2||!this.carnage.gibbed(t);let r=t<2?this.graphs?.[t]:this.referee??void 0,i=r?.fallBody?.centre(this.bodyPoint)??null??(r?.boxer.root.visible===!0?r.currentRoot:e[t]);n.position.x=i.x,n.position.z=i.z;let a=t<2?this.buffer.latest()?.fighters[t]:void 0,o=t<2?a!==void 0&&DX(a,r,this.flashKnockout?.loserId):r?.isDown===!0;n.scale.set(o?2.1:1.25,o?.9:.85,1)}}updateFootShadows(){for(let[e,t]of this.footShadows.entries()){let n=e>>1,r=this.graphs?.[n]?.boxer;t.visible=r!==void 0&&r.root.visible&&!this.carnage.gibbed(n),r!==void 0&&t.visible&&(r.rig.bones[e%2==0?`ankleL`:`ankleR`].getWorldPosition(this.footPoint),t.position.x=this.footPoint.x,t.position.z=this.footPoint.z,t.material.opacity=TY(this.footPoint.y-r.metrics.ankleRestY))}}updateReferee(e,t,n,r){let i=this.referee;if(i===null)return;let a=this.replay===null||this.replay.plan.impact.kind===`referee_down`;i.boxer.root.visible=a;let o=this.blobShadows[2];o!==void 0&&(o.visible=a);let s=n?.referee??null,c=this.replay!==null&&this.replay.plan.impact.kind===`referee_down`?this.replay:null;!this.refereePlaced&&s!==null&&(this.refereePlaced=!0,this.refereePosition.set(this.mapping.x(s.x),0,this.mapping.z(s.y)));let l=this.refereeReplayAt!==null||this.pendingRefereeEvents.some(e=>e.kind===`referee_down`);s?.alive===!0&&i.isDown&&this.replay===null&&n?.phase!==`referee_down`&&!l&&i.resetTransient(!1),s===null||s.alive||i.isDown||this.replay!==null||l||(this.refereePosition.set(this.mapping.x(s.x),0,this.mapping.z(s.y)),i.knockOut(),this.refereeFallUnseen=!0);let u=s!==null&&(n?.phase===`fight`&&s.alive||c!==null&&!c.impactFired)?s:null,d=s?.alive===!1&&(c===null||c.impactFired),f=n?.fighters.find(e=>e.is_downed)??(n?.phase===`knockdown`?n.fighters.find(e=>e.player_id===this.lastKnockdown?.knockdown.target_id):void 0)??null,p=n?.fighters.some(e=>e.clinch_ticks>0||e.clinch_startup_ticks>0)??!1,m=f===null&&i.breaking,h=f===null?void 0:this.graphs?.[n?.fighters.indexOf(f)??-1],g=h?.fallBody?.centre(this.bodyPoint)??null,_=f!==null&&!f.is_downed?h?.currentRoot??null:null,v=f===null?(this.tmpA.x+this.tmpB.x)/2:g?.x??_?.x??this.mapping.x(f.x),y=f===null?(this.tmpA.z+this.tmpB.z)/2:g?.z??_?.z??this.mapping.z(f.y),b=this.refereeAway.set(this.refereePosition.x-v,0,this.refereePosition.z-y);if(b.lengthSq()<.01&&b.set(0,0,-1),b.normalize(),m){let e=this.tmpB.z-this.tmpA.z,t=this.tmpA.x-this.tmpB.x,n=Math.hypot(e,t),r=e*b.x+t*b.z>=0?1:-1;n>.01&&b.set(e/n*r,0,t/n*r)}let{standoff:x,clearance:S}=LX(f!==null,p,m),C=R.clamp(v+b.x*x,-2.4,2.4),w=R.clamp(y+b.z*x,-2.4,2.4),T=this.refereePosition.x,E=this.refereePosition.z,D=this.replay===null&&this.ceremony?.positions!==null?this.ceremony:null,O=!d&&D===null&&this.replay===null&&this.stoppageWinner>=0&&this.frameSeconds>=this.stoppageRaiseAt?this.stoppageWinner===0?this.tmpA:this.tmpB:null,k=O===null?null:this.stoppageSpot??=this.raiseSpot(O,this.stoppageWinner===0?this.tmpB:this.tmpA),ee=k!==null&&k.x<0?-1:1;if(d)D!==null&&(D.refereeArrived=!0);else if(O!==null&&k!==null){let t=VJ(this.refereePosition.x,this.refereePosition.z,{x:O.x+k.x,y:O.z+k.z},RJ*e);this.refereePosition.x=t.x,this.refereePosition.z=t.y}else if(D!==null){let t=VJ(this.refereePosition.x,this.refereePosition.z,{x:FJ.x,y:FJ.z},RJ*e);this.refereePosition.x=t.x,this.refereePosition.z=t.y,D.refereeArrived=t.arrived}else if(u!==null){let t=c===null?1-Math.exp(-20*e):1;this.refereePosition.x+=(this.mapping.x(u.x)-this.refereePosition.x)*t,this.refereePosition.z+=(this.mapping.z(u.y)-this.refereePosition.z)*t}else{let t=1-Math.exp(-(m?8:1.6)*e),n=m?Math.min(1,DJ*e/Math.max(1e-6,Math.hypot(C-this.refereePosition.x,w-this.refereePosition.z)*t)):1;this.refereePosition.x+=(C-this.refereePosition.x)*t*n,this.refereePosition.z+=(w-this.refereePosition.z)*t*n}let A=O===null?D===null?u!==null||d?0:S:D.refereeArrived?0:PJ:cJ*.85;for(let e of A>0?[this.tmpA,this.tmpB]:[]){let t=this.refereePosition.x-e.x,n=this.refereePosition.z-e.z,r=Math.hypot(t,n);r.001&&(this.refereePosition.x=e.x+t/r*A,this.refereePosition.z=e.z+n/r*A)}for(let e of D!==null||d?[]:this.graphs??[]){let t=e.fallBody;if(t!==null)for(let e of[0,1,2,3,4]){t.bodyPoint(e,this.bodyPoint);let n=FY(this.refereePosition.x,this.refereePosition.z,this.bodyPoint.x,this.bodyPoint.z,yJ);this.refereePosition.x=n.x,this.refereePosition.z=n.z}}for(let e of d?[]:[0,1]){if(!this.effects.severedHeadPosition(e,this.closeUpTarget))continue;let t=FY(this.refereePosition.x,this.refereePosition.z,this.closeUpTarget.x,this.closeUpTarget.z,gJ);this.refereePosition.x=t.x,this.refereePosition.z=t.z}if(c===null&&!d){let t=this.refereePosition.x-T,n=this.refereePosition.z-E,r=Math.hypot(t,n),i=QJ*e;r>i&&(this.refereePosition.x=T+t/r*i,this.refereePosition.z=E+n/r*i)}e>0&&this.refereeVelocity.set((this.refereePosition.x-T)/e,0,(this.refereePosition.z-E)/e);let te=O!==null&&k!==null&&Math.hypot(this.refereePosition.x-O.x-k.x,this.refereePosition.z-O.z-k.z)<=uJ,j=D!==null&&!D.refereeArrived,M=O===null?D===null?u===null?Math.atan2(v-this.refereePosition.x,y-this.refereePosition.z):Math.atan2(u.facing_x,-u.facing_y):j?Math.atan2(FJ.x-this.refereePosition.x,FJ.z-this.refereePosition.z):0:te?0:Math.atan2(O.x-this.refereePosition.x,O.z-this.refereePosition.z);if(O!==null){let e=this.graphs?.[this.stoppageWinner]?.boxer.rig.bones,t=n?.fighters[this.stoppageWinner]?.injuries??[],r=sY(t,`left`),a=!te||e===void 0?null:r&&sY(t,`right`)?this.nearerGlove(e.gloveL,e.gloveR):(r?e.gloveL:e.gloveR).getWorldPosition(this.stoppageWrist);i.raise(ee<0?a:null,ee>0?a:null)}let ne=((M-this.refereeYaw+Math.PI)%(Math.PI*2)+Math.PI*2)%(Math.PI*2)-Math.PI;this.refereeYaw+=ne*(1-Math.exp(-(m?8:3)*e));let re=RX(this.refereePosition,this.refereeYaw,this.refereeVelocity,this.mapping,s);i.setRefereeCount(f!==null,f?.get_up_count??0);let ie=f===null?n?.fighters.findIndex(e=>e.stunned_ticks>0)??-1:-1,N=ie===0?this.tmpA:this.tmpB,ae=f===null?ie>=0?b.set(N.x,1.5,N.z):null:b.set(v,f.is_downed?.25:1.5,y);i.aimBreak(this.tmpA,this.tmpB,ae,n?.phase===`finish`?`stand_back`:`watch`);let oe=this.settings();if(i.update(re.self,re.focus,e,t,oe.reducedMotion,oe.blood,r),this.refereeFallUnseen&&(this.refereeFallUnseen=!1,i.fallBody?.settle()),this.effects.gushing(2)){let e=this.refereeMouth();e!==null&&this.effects.anchorGush(2,e.position,e.axis)}this.poolUnderReferee(s?.alive===!1,d,e,oe.blood)}poolUnderReferee(e,t,n,r){if(!e&&this.replay===null&&(this.refereePoolAccumulator=0,this.refereePoolCount=0),!t||r===`off`||this.referee===null)return;this.refereePoolAccumulator+=n*5*mX;let i=this.referee.boxer.rig.bones.head.getWorldPosition(this.refereeHead);for(;this.refereePoolAccumulator>=1;){--this.refereePoolAccumulator;let e=this.refereePoolCount,t=EX(e,pX,hX);if(t>=hX)return;this.refereePoolCount=e+1;let n=e*2.399963;this.effects.pool(i.x+Math.sin(n)*t*.25,i.z+Math.cos(n)*t*.25,t,e+14)}}updateTrails(e,t){let n=this.graphs;if(!(n===null||this.trails.length<4)){for(let[r,i]of n.entries())for(let[n,a]of[`gloveL`,`gloveR`].entries()){let o=this.trails[r*2+n],s=this.glows[r*2+n];if(!i.boxer.root.visible||!this.carnage.hasGlove(r,n===0?`left`:`right`)){o.reset(),s?.reset();continue}i.boxer.rig.bones[a].getWorldPosition(this.trailGlove);let c=i.powerHeat(n===0?`left`:`right`);o.update(this.trailGlove,e,this.camera.position,!t&&this.replay===null&&!i.isDown,c),s?.update(this.trailGlove,c,e,t,this.camera)}for(let t of this.impactFlashes)t.update(e,this.camera);this.powerShake*=.02**e}}presentPowerHit(e,t){let n=!t.detail.endsWith(`:body`)&&this.headCacheValid[e]===!0?this.headCache[e]:void 0;n===void 0?this.powerHitPoint.set(this.contactPoint.x,t.detail.endsWith(`:body`)?1.05:1.55,this.contactPoint.z):this.powerHitPoint.copy(n),this.impactFlashes[e]?.fire(this.powerHitPoint),this.powerShake=Math.min(tY,this.powerShake+eY)}updateCornermen(e,t,n,r){let i=this.cornermen;if(i===null)return;let a=zq(n,this.simulation.tick_rate),o=n?.phase===`complete`?this.final:null;for(let[s,c]of i.entries()){let i=s===0?-1:1,l=o===null?`work`:this.deaths[s]===null?o.winner_id!==null&&o.winner_id===n?.fighters[s]?.player_id?`cheer`:`work`:`mourn`,u=a||l!==`work`,d=u?EJ:mJ;this.cornermanPosition.set(i*d,0,-i*d);let f=s===0?3*Math.PI/4:-Math.PI/4;c.attend(u,l);let p=RX(this.cornermanPosition,f,this.cornermanVelocity,this.mapping);c.update(p.self,p.focus,e,t,!1,`off`,r)}}updateCutmen(e,t,n,r){let i=this.cutmen,a=this.graphs;if(i===null||a===null)return;let o=n?.phase===`rest`,s=this.mapping.x(l);for(let[c,l]of i.entries()){let i=c===0?-1:1,u=o&&a[c].stoolVisible?1:0,d=this.cutmanProgress[c],f=d+Math.sign(u-d)*Math.min(Math.abs(u-d),e/OJ);this.cutmanProgress[c]=f;let p=l.boxer.root.visible;if(l.boxer.root.visible=f>.005,!l.boxer.root.visible)continue;this.cutmanFrom.set(i*mJ,0,-i*2.42),fV(c===0?0:1,s,lV,32,this.cutmanTo);let m=f*f*(3-2*f);this.cornermanPosition.copy(this.cutmanFrom).lerp(this.cutmanTo,m);let h=this.cutmanLast[c];p||h.copy(this.cornermanPosition),this.cornermanVelocity.copy(this.cornermanPosition).sub(h).divideScalar(Math.max(e,.001)),h.copy(this.cornermanPosition);let g=f>.02&&f=kJ?_===null?Math.atan2(i,-i):Math.atan2(_.x-this.cutmanTo.x,_.z-this.cutmanTo.z):Math.atan2(-this.cutmanFrom.x,-this.cutmanFrom.z),y=pY(n?.fighters[c]);if(f>=kJ&&_!==null){let e=a[c].boxer.root.rotation.y;this.cutmanFacing.set(Math.sin(e),0,Math.cos(e)),this.cutmanEye.copy(_).addScaledVector(this.cutmanFacing,.09),this.cutmanEye.x+=Math.cos(e)*y.side*y.lateral,this.cutmanEye.z-=Math.sin(e)*y.side*y.lateral,this.cutmanEye.y+=y.lift;let t=n?.fighters[c]?.trauma,r=t===void 0||y.prop===`bottle`?0:Math.min(1,Math.max(t.left_cut,t.right_cut)/AJ);l.treat(this.cutmanEye,this.cutmanFacing,y.side,y.prop,r)}else l.treat(null);let b=RX(this.cornermanPosition,v,this.cornermanVelocity,this.mapping);l.update(b.self,b.focus,e,t,!1,`off`,r)}}drawHudOverlay(e){let t=Lq(this.hudCanvas);if(t===null)return;let{context:n,viewport:r}=t;if(this.hudViewport.width=r.width,this.hudViewport.height=r.height,n.clearRect(0,0,r.width,r.height),e===null)return;let i=this.settings();if(this.viewerHitFlash>.01&&!i.reducedMotion){let e=n.createRadialGradient(r.width/2,r.height/2,r.width*.12,r.width/2,r.height/2,r.width*.7);e.addColorStop(0,`rgba(255,235,225,${(this.viewerHitFlash*.18).toFixed(3)})`),e.addColorStop(1,`rgba(140,0,10,${(this.viewerHitFlash*.55).toFixed(3)})`),n.fillStyle=e,n.fillRect(0,0,r.width,r.height)}let a=cX(Math.max(...e.fighters.map(e=>e.trauma.head+e.trauma.body)),i.blood);if(a>0){let e=n.createRadialGradient(r.width/2,r.height/2,r.width*.2,r.width/2,r.height/2,r.width*.72);e.addColorStop(0,`rgba(90,0,8,0)`),e.addColorStop(1,`rgba(75,0,8,${a.toFixed(3)})`),n.fillStyle=e,n.fillRect(0,0,r.width,r.height)}i.reducedMotion||this.effects.drawLens(n,r.width,r.height);let o=this.deaths[0]??this.deaths[1],s=this.replay===null?null:this.replay.plan.impact.kind===`referee_down`?`REFEREE DOWN`:o===null?`KNOCKOUT REPLAY`:mt(o)===null?`DEATH REPLAY`:`FATALITY REPLAY`;Mi(n,r.width,r.height,e,this.players,this.viewerId,this.frameSeconds>=this.finalRevealAt?this.final:null,this.reconnectMs,this.simulation.tick_rate,this.roundStats,s,this.lagWarned?this.inputLatencyMs:null,this.frameSecondsthis.avatars.get(e),this.lastKnockdown?.knockdown.target_id??null,this.touchControls&&e.fighters.some(e=>e.player_id===this.viewerId),this.powerHeld?.()===!0,o,this.finishTargetId,!i.reducedMotion,this.getUpFrame),this.drawCaption(n,r.width,r.height,e)}updateRocked(e,t,n){let r=e?.fighters.find(e=>e.player_id===this.viewerId),i=e===null||this.replay!==null||this.final!==null?0:pq(r,e.phase),a=this.rocked.update(n?0:i,t);return this.finishPass.uniforms.uRocked.value=n?0:a,r===void 0?null:i}shownAt(e){for(let t=this.history.length-1;t>=0;--t)if(this.history[t].tick<=e)return this.history[t];return null}drawCaption(e,t,n,r){let i=this.final!==null&&this.frameSeconds>=this.finalRevealAt?this.final:null;i!==null&&!this.resultAnnounced&&(this.resultAnnounced=!0,this.commentary.resultShown(this.frameSeconds));let a=this.commentary.current(this.frameSeconds),o=this.settings(),s=a===null||!o.commentary?``:a.line.text;if(s!==this.captionText&&(this.captionText=s,this.hudCanvas.dataset.caption=s),a===null||!o.commentary)return;let c=r.fighters.find(e=>e.player_id===this.viewerId),l=Dr(t,n),u=i===null?null:VY(i,t,n,r.fighters,this.players,this.roundStats,this.viewerId,this.deaths[0]??this.deaths[1])/l,d=this.frameSeconds0});p!==null&&(e.save(),e.scale(l,l),HV(e,a,p,o.reducedMotion),e.restore())}destroy(){if(!this.destroyed){if(this.destroyed=!0,cancelAnimationFrame(this.raf),this.raf=0,this.buffer.clear(),this.dedupe.reset(),this.pendingContacts.length=0,this.pendingGore.length=0,this.carnage.dispose(),this.effects.dispose(),this.avatars.dispose(),this.arena.dispose(),Nw(this.ring),this.graphs!==null){for(let e of this.graphs)this.scene.remove(e.boxer.root),e.dispose();this.graphs=null}this.referee!==null&&(this.scene.remove(this.referee.boxer.root),this.referee.dispose(),this.referee=null);for(let e of this.trails)this.scene.remove(e.mesh),e.dispose();this.trails=[];for(let e of this.glows)this.scene.remove(e.mesh),e.dispose();this.glows=[];for(let e of this.impactFlashes)this.scene.remove(e.group),e.dispose();if(this.impactFlashes=[],this.glowMap?.dispose(),this.glowMap=null,this.cornermen!==null){for(let e of this.cornermen)this.scene.remove(e.boxer.root),e.dispose();this.cornermen=null}if(this.cutmen!==null){for(let e of this.cutmen)this.scene.remove(e.boxer.root),e.dispose();this.cutmen=null}for(let e of this.lights)this.scene.remove(e);this.keyLight?.shadow.map?.dispose(),this.keyLight?.shadow.dispose(),this.blobTexture.dispose();for(let e of[...this.blobShadows,...this.footShadows])this.scene.remove(e),e.geometry.dispose(),e.material.dispose();this.renderer.renderLists.dispose(),Vq(this.composer),this.bloomPass.materialHighPassFilter.dispose(),Kw(),this.renderer.dispose(),this.hudCanvas.remove()}}},BX=[`broadcast`,`close`,`fighter`],VX=`hands.preferences.v1`,HX={length:0,clear:()=>void 0,getItem:()=>null,key:()=>null,removeItem:()=>void 0,setItem:()=>void 0},UX=()=>{try{return window.localStorage}catch{return HX}},WX=()=>({volume:.7,haptics:!0,reducedMotion:window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches??!1,blood:`full`,commentary:!0,announcer:!0,camera:`broadcast`});function GX(e=UX()){let t=WX();try{let n=JSON.parse(e.getItem(VX)??`null`);if(typeof n!=`object`||!n||Array.isArray(n))return t;let r=n;return{volume:typeof r.volume==`number`&&Number.isFinite(r.volume)?Math.max(0,Math.min(1,r.volume)):t.volume,haptics:typeof r.haptics==`boolean`?r.haptics:t.haptics,reducedMotion:typeof r.reducedMotion==`boolean`?r.reducedMotion:t.reducedMotion,blood:r.blood===`reduced`||r.blood===`off`||r.blood===`full`?r.blood:t.blood,commentary:typeof r.commentary==`boolean`?r.commentary:t.commentary,announcer:typeof r.announcer==`boolean`?r.announcer:t.announcer,camera:BX.includes(r.camera)?r.camera:t.camera}}catch{return t}}function KX(e,t=UX()){try{t.setItem(VX,JSON.stringify({volume:Math.max(0,Math.min(1,e.volume)),haptics:e.haptics,reducedMotion:e.reducedMotion,blood:e.blood,commentary:e.commentary,announcer:e.announcer,camera:e.camera}))}catch{}}var qX=class{value;listeners=new Set;constructor(e=UX()){this.storage=e,this.value=GX(e)}storage;get current(){return this.value}update(e){this.value={...this.value,...e},KX(this.value,this.storage);for(let e of this.listeners)e(this.value)}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}destroy(){this.listeners.clear()}},JX={stage:`bootstrapping`,player:null,playerId:null,role:null,players:{},playerOrder:[],simulation:null,snapshot:null,final:null,select:null,serverTick:0,nextSequence:0,reconnectMs:0,safeError:null},YX=e=>Object.fromEntries(e.map(e=>[e.id,e]));function XX(e,t){if(t.type===`bootstrap`)return{...e,stage:`authorizing`,simulation:t.simulation,safeError:null};if(t.type===`authorized`)return{...e,stage:`connecting`,player:t.player,safeError:null};if(t.type===`connecting`)return{...e,stage:`connecting`};if(t.type===`reconnect-tick`)return{...e,stage:`paused`,reconnectMs:Math.max(0,t.remainingMs)};if(t.type===`fatal`)return{...e,stage:`fatal`,safeError:t.code,reconnectMs:0};let n=t.message;switch(n.type){case`welcome`:return{...e,playerId:n.role===`fighter`?n.player_id:null,role:n.role,players:YX(n.players),playerOrder:n.players.map(e=>e.id),serverTick:n.server_tick,nextSequence:n.role===`fighter`?n.next_sequence:0,safeError:null};case`ticket`:return e;case`waiting`:return{...e,stage:`waiting`,select:null};case`select`:return{...e,stage:`select`,select:n,players:YX(n.players),playerOrder:n.players.map(e=>e.id)};case`ready`:return{...e,stage:e.snapshot?.phase??`countdown`,select:null,players:YX(n.players),playerOrder:n.players.map(e=>e.id)};case`paused`:return{...e,stage:`paused`,reconnectMs:n.grace_ms};case`resumed`:return{...e,stage:e.snapshot?.phase??`countdown`,reconnectMs:0};case`snapshot`:return{...e,stage:n.payload.phase,snapshot:n.payload,serverTick:Math.max(e.serverTick,n.payload.tick)};case`final`:return{...e,stage:`complete`,final:n,reconnectMs:0};case`error`:return{...e,stage:`fatal`,safeError:n.code,reconnectMs:0}}}var ZX=new Set([`hit`,`counter_hit`,`block`,`perfect_block`,`guard_break`,`knockdown`,`parry`,`body_collapse`,`eye_shut`,`referee_hit`,`referee_down`]),QX=11e3,$X=1500,eZ=4e3,tZ=3e3,nZ=6,rZ=5e3,iZ=[{level:`rookie`,label:`Rookie`,detail:`Slow hands, leaves openings`},{level:`contender`,label:`Contender`,detail:`Works the body, punishes mistakes`},{level:`champion`,label:`Champion`,detail:`Slips, counters, finishes`}],aZ=e=>yn.includes(e),oZ=class{root;reloadPage;authorizer;state=JX;settings=new qX;input=new sR;audio=new wA(()=>this.settings.current);haptics=new HL(()=>this.settings.current);getUpAnnouncer=new I;voice=new Ji(()=>this.settings.current);feedbackEvents=new SR;soundedPunches=[];renderer=null;network=null;session=null;abort=new AbortController;destroyed=!1;generation=0;reloadOnRetry=!1;reloading=!1;canvas;status;overlay;roleIndicator;controlsButton;controlsPanel;retry;rematchButton;hint;cpuPicker;cpuPrompt;cpuLevel=null;rematchOpponent=null;lastPhase=null;cpuRematchLevel=null;cpuRematch=null;cpuRematchTimer=null;diagnosticsTimer=null;finalReceivedAt=0;lastFinalMatchId=null;rematchAttempts=0;rematchTimer=null;rematchCountdownTimer=null;resultRevealTimer=null;resultWaitTimer=null;completeSince=null;summaryClock=new ri;fightSummary;liveFightStatus;finalSummary;corner;stylePicker;constructor(e,t=()=>window.location.reload(),n=new CL){this.root=e,this.reloadPage=t,this.authorizer=n,e.innerHTML=`
HANDStwo-player boxing

`,this.canvas=e.querySelector(`canvas`),this.status=e.querySelector(`[data-status]`),this.overlay=e.querySelector(`[data-overlay]`),this.roleIndicator=e.querySelector(`[data-role]`),this.controlsButton=e.querySelector(`[data-controls]`),this.controlsPanel=e.querySelector(`[data-controls-panel]`),this.retry=e.querySelector(`[data-retry]`),this.rematchButton=e.querySelector(`[data-rematch]`),this.hint=e.querySelector(`[data-hint]`),this.cpuPicker=e.querySelector(`[data-cpu]`),this.cpuPrompt=e.querySelector(`[data-cpu-prompt]`),this.cpuPicker.addEventListener(`click`,this.onCpuPick),this.rematchButton.addEventListener(`click`,this.onRematch),this.fightSummary=e.querySelector(`[data-fight-summary]`),this.liveFightStatus=e.querySelector(`[data-fight-status]`),this.finalSummary=e.querySelector(`[data-final]`),this.retry.addEventListener(`click`,this.onRetry),this.bindPanels(),this.syncSettings(),this.input.attachTouch(e.querySelector(`.activity`)),this.corner=new FL(e.querySelector(`.activity`),e=>this.network?.sendCornerChoice(e)??!1),this.stylePicker=new Ln(e.querySelector(`.activity`),(e,t)=>this.network?.chooseStyle(e,t)??!1),this.input.setViewForward(()=>this.renderer?.viewForward()??null),window.addEventListener(`keydown`,this.onCameraKey)}onCameraKey=e=>{if(e.code!==`KeyK`||e.repeat||e.ctrlKey||e.metaKey||e.altKey)return;let t=e.target;if(t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement)return;e.preventDefault();let n=BX[(BX.indexOf(this.settings.current.camera)+1)%BX.length];this.settings.update({camera:n}),this.root.querySelector(`[data-camera]`).value=n};start(){this.authorize()}resetForAuthorization(){this.reloadOnRetry=!1,this.network?.dispose(),this.network=null,this.session?.destroy(),this.session=null,this.renderer?.destroy(),this.renderer=null,this.voice.cancel(),this.audio.reset(),this.abort.abort(),this.abort=new AbortController,this.state=JX,this.feedbackEvents.reset(),this.input.setActive(!1),this.input.reset(),this.finalSummary.textContent=``,this.fightSummary.textContent=``,this.liveFightStatus.textContent=``,this.clearRematchTimers(),this.rematchButton.hidden=!0,this.cpuLevel=null,this.lastPhase=null}onCpuPick=e=>{let t=e.target?.closest(`[data-cpu-level]`)?.dataset.cpuLevel;aZ(t)&&this.state.stage===`waiting`&&this.state.role===`fighter`&&this.cpuLevel===null&&this.callCpu(t)};callCpu(e){this.network?.requestCpu(e)===!0&&(this.cpuLevel=e,this.renderState())}get cpuBout(){return Object.values(this.state.players).some(e=>e.cpu===!0)}onRematch=()=>{this.rematchButton.disabled||this.state.stage!==`complete`||(this.rematchAttempts=1,this.rematchOpponent=this.cpuBout||this.state.role!==`fighter`?null:Object.values(this.state.players).find(e=>e.id!==this.state.playerId)?.name??null,this.authorize())};clearRematchTimers(){this.rematchTimer!==null&&window.clearTimeout(this.rematchTimer),this.rematchCountdownTimer!==null&&window.clearInterval(this.rematchCountdownTimer),this.rematchTimer=null,this.rematchCountdownTimer=null,this.clearCpuRematch()}scheduleCpuRematch(e){this.clearCpuRematch(),this.cpuRematch={level:e,at:Date.now()+rZ},this.cpuRematchTimer=window.setInterval(()=>{let e=this.cpuRematch;e===null||this.state.stage!==`waiting`||this.state.role!==`fighter`||this.cpuLevel!==null?this.clearCpuRematch():Date.now()>=e.at&&(this.clearCpuRematch(),this.callCpu(e.level)),this.renderState()},250)}clearCpuRematch(){this.cpuRematchTimer!==null&&window.clearInterval(this.cpuRematchTimer),this.cpuRematchTimer=null,this.cpuRematch=null}awaitResultReveal(){this.resultRevealTimer!==null&&window.clearInterval(this.resultRevealTimer);let e=()=>{let e=this.renderer?.resultVisible??!0;this.overlay.hidden=this.state.stage===`complete`&&!e,(e||this.state.stage!==`complete`)&&this.resultRevealTimer!==null&&(window.clearInterval(this.resultRevealTimer),this.resultRevealTimer=null)};this.resultRevealTimer=window.setInterval(e,200),e()}startRematchCountdown(){this.clearRematchTimers();let e=this.state.role===`fighter`?`Rematch`:`Next bout`,t=()=>{let t=Math.ceil((this.finalReceivedAt+QX-Date.now())/1e3);this.rematchButton.hidden=this.state.stage!==`complete`,this.rematchButton.disabled=t>0,this.setText(this.rematchButton,t>0?`${e} in ${t}s`:e),t<=0&&this.rematchCountdownTimer!==null&&(window.clearInterval(this.rematchCountdownTimer),this.rematchCountdownTimer=null)};t(),this.rematchCountdownTimer=window.setInterval(t,1e3)}scheduleRematchRetry(){this.rematchTimer===null&&(this.rematchAttempts>=nZ?this.fail(`rematch_unavailable`):(this.rematchAttempts+=1,this.setText(this.status,`The ring is still being cleared… trying again.`),this.rematchTimer=window.setTimeout(()=>{this.rematchTimer=null,this.authorize()},tZ)))}async authorize(){let e=++this.generation;this.resetForAuthorization(),this.dispatch({type:`connecting`}),this.setText(this.status,`Securing Discord Activity session…`),this.retry.hidden=!0;try{let t=await this.authorizer.authorize(this.abort.signal);if(this.destroyed||e!==this.generation){t.destroy();return}this.session=t,this.dispatch({type:`bootstrap`,simulation:t.bootstrap.simulation}),this.dispatch({type:`authorized`,player:t.player}),this.input.onAction(e=>{if(e.kind===`get_up_left`||e.kind===`get_up_right`){let t=this.renderer?.pressGetUp(e.kind)??null;t!==null&&this.audio.getUpVerdict(t.detail)}this.renderer?.predictAction?.(e),this.network?.notifyAction()}),this.input.onHeldChange(()=>this.network?.notifyHeld());let n=t.takeTicket();if(n===null)throw Error(`ticket_unavailable`);let r=new NR(n,()=>this.input.frame(),{onMessage:e=>this.receive(e),onReconnect:e=>{this.dispatch({type:`reconnect-tick`,remainingMs:e}),this.renderer?.setReconnect(e),this.renderState()},onFatal:e=>this.fail(e),onFreshAuth:()=>{e===this.generation&&this.authorize()}});this.network=r,r.start(),this.setText(this.status,`Connecting to the ring…`)}catch(t){!this.abort.signal.aborted&&e===this.generation&&(this.reloadOnRetry=t instanceof TA&&t.reloadRequired,this.fail(jA(t)))}}ensureRenderer(){if(this.renderer!==null||this.session===null||this.destroyed)return;let e=new zX(this.canvas,this.session.bootstrap.simulation,()=>this.settings.current,{localInput:()=>this.input.held(),inputSequenceOf:e=>this.network?.sequenceOf(e)??null,powerHeld:()=>this.input.powerHeld});e.onGetUpBeat=()=>{this.audio.getUpBeat(),this.haptics.getUpBeat()},e.onContact=(e,t)=>{this.audio.event(e,t),this.haptics.event(e,t)},e.onOwnPunch=(e,t,n)=>{this.audio.whoosh(e,t),this.soundedPunches.push(n),this.soundedPunches.length>8&&this.soundedPunches.shift()},e.onArcadeInjury=e=>this.audio.injury(e),e.onGore=e=>{this.audio.gore(e),this.haptics.gore(e),e.kind===`finish_him`?this.voice.shout(`Finish him!`):e.kind===`fatality`&&this.voice.shout(`Fatality.`)},e.onAnnouncement=e=>this.voice.speak(e),e.onCrowdCue=()=>this.audio.chant(),e.onRocked=(e,t)=>this.audio.rocked(e,t),this.renderer=e}receive(e){if(e.type===`error`){this.fail(e.code);return}e.type===`welcome`&&this.ensureRenderer(),(e.type===`welcome`||e.type===`resumed`)&&this.renderer?.resyncClock();let t=this.rematchAttempts>0;(e.type===`waiting`||e.type===`ready`)&&(this.rematchAttempts=0),e.type===`ready`&&(this.rematchOpponent=null),e.type===`ready`&&this.rememberStyle(e.players),e.type===`final`&&this.rematchAttempts>0&&e.match_id===this.lastFinalMatchId?this.scheduleRematchRetry():(this.dispatch({type:`message`,message:e}),e.type===`snapshot`&&this.receiveSnapshot(e.payload),e.type!==`select`&&e.type!==`ready`||e.players.some(e=>e.cpu===!0)||(this.cpuLevel=null),e.type===`waiting`&&(this.cpuLevel===null?t&&this.cpuRematchLevel!==null&&this.scheduleCpuRematch(this.cpuRematchLevel):this.callCpu(this.cpuLevel)),e.type===`final`&&(this.cpuRematchLevel=this.cpuBout?this.cpuLevel:null,this.rematchAttempts=0,this.lastFinalMatchId=e.match_id,this.finalReceivedAt=Date.now(),this.renderer?.setFinal(e),this.audio.result(e),this.startRematchCountdown(),this.awaitResultReveal()),this.renderer?.setPlayers(this.state.players,this.state.playerId,this.state.playerOrder),this.renderer?.setReconnect(this.state.reconnectMs),this.renderState())}get networkStats(){return{inputLatencyMs:this.network?.inputLatencyMs??null,resolutionScale:this.renderer?.resolutionScale??null,gpu:this.renderer?.memoryInfo??null}}receiveSnapshot(e){this.lastPhase===`countdown`&&e.phase!==`countdown`&&this.voice.finishLine($X),this.lastPhase=e.phase,this.renderer?.setInputLatency(this.network?.inputLatencyMs??null),this.renderer?.push(e);let t=e.fighters.find(e=>e.player_id===this.state.playerId),n=t?.is_downed===!0||(this.renderer?.getUpView??null)!==null;this.input.setKnockdown(n),this.input.setGetUpPrompt(n?this.renderer?.getUpView?.prompt?.side??t?.get_up_prompt??null:null),t!==void 0&&this.audio.snapshot(e.tick,t.stamina,t.maximum_stamina,t.trauma.head+t.trauma.body),this.audio.roundClock(e.phase,e.round_number,e.phase_ticks_remaining,this.state.simulation?.tick_rate??30),this.audio.tension(Az(e));for(let n of this.feedbackEvents.accept(e.events)){if(ZX.has(n.kind)||n.kind===`count`&&t?.is_downed===!0||n.kind===`punch_start`&&n.action_id!==null&&this.soundedPunches.includes(n.action_id))continue;let r=n.kind===`punch_start`?e.fighters.find(e=>e.player_id===n.actor_id&&e.action_id===n.action_id):void 0;this.audio.event(n,r?.action_power===`power`),this.haptics.event(n)}}rememberStyle(e){let t=e.find(e=>e.id===this.state.playerId)?.style;this.state.role===`fighter`&&t!==void 0&&An(t)}dispatch(e){this.state=XX(this.state,e)}setText(e,t){e.textContent!==t&&(e.textContent=t)}renderState(){let e={bootstrapping:`Loading…`,authorizing:`Authorizing with Discord…`,connecting:`Connecting securely…`,waiting:this.state.role===`spectator`?`Waiting for the fighters…`:this.cpuLevel===null?this.cpuRematch===null?this.rematchOpponent===null?`Waiting for an opponent. Anyone in this channel can join with Play now.`:`Waiting for ${this.rematchOpponent} to take the rematch…`:`Rematch with the ${iZ.find(e=>e.level===this.cpuRematch?.level)?.label??`computer`} in ${Math.max(1,Math.ceil((this.cpuRematch.at-Date.now())/1e3))}s, unless someone joins first.`:`Calling in the computer…`,select:`Pick how your fighter boxes.`,countdown:`Bout countdown.`,fight:`Round ${this.state.snapshot?.round_number??1} in progress.`,knockdown:`Knockdown count ${this.state.snapshot?.fighters.find(e=>e.player_id===this.state.playerId)?.get_up_count??0}.`,foul_recovery:`Foul recovery in progress.`,referee_down:`The referee is down. The bout goes on without him.`,finish:this.state.snapshot!==null&&Ci(this.state.snapshot.fighters)?.player_id===this.state.playerId?`You are out on your feet: one more punch kills you.`:`Finish him: one more punch kills.`,rest:`Between-round rest.`,paused:`Connection paused. ${Math.ceil(this.state.reconnectMs/1e3)} seconds remain.`,complete:this.cpuBout?`Bout complete. Scorecards are displayed. Bouts against the computer are unrated.`:`Bout complete. Scorecards and rating changes are displayed.`,fatal:LL(this.state.safeError??`safe_error`)},t=this.state.role===`spectator`;this.setText(this.status,t?`Spectating — ${e[this.state.stage]}`:e[this.state.stage]);let n=this.state.stage===`complete`&&this.state.final!==null;if(this.status.hidden=n||[`select`,`countdown`,`fight`,`knockdown`,`foul_recovery`,`referee_down`,`finish`,`rest`].includes(this.state.stage),this.overlay.toggleAttribute(`data-raised`,this.state.snapshot!==null),this.overlay.toggleAttribute(`data-result`,n),this.state.stage!==`complete`)this.overlay.hidden=!1,this.completeSince=null;else if(this.state.final===null){this.completeSince??=Date.now();let e=Date.now()-this.completeSince;this.overlay.hidden=e{this.resultWaitTimer=null,this.renderState()},eZ-e+50))}this.roleIndicator.hidden=!t,this.controlsButton.hidden=t,t&&(this.controlsPanel.hidden=!0,this.controlsButton.setAttribute(`aria-expanded`,`false`));let r=this.state.snapshot?.fighters.find(e=>e.player_id===this.state.playerId),i=this.state.stage===`knockdown`&&r?.is_downed===!0;i||this.getUpAnnouncer.reset();let a=t?`Spectating. ${e[this.state.stage]}`:i&&r!==void 0?this.getUpAnnouncer.announce(this.renderer?.getUpView??Se(r,this.state.snapshot?.tick??0,0,null,null,Ke(),!1)):this.state.stage===`paused`?`Connection paused.`:e[this.state.stage];this.setText(this.liveFightStatus,a),this.corner.update(this.state.snapshot,this.state.playerId,this.state.role===`fighter`&&this.state.stage===`rest`),this.renderer?.setCornerPanelTop(this.corner.top()),this.stylePicker.update(this.state.stage===`select`?this.state.select:null,this.state.playerId,this.state.role),this.retry.hidden=this.state.stage!==`fatal`,this.setText(this.retry,this.reloadOnRetry?`Reload`:`Retry securely`),this.state.stage!==`complete`&&(this.rematchButton.hidden=!0),this.cpuPicker.hidden=t||this.state.stage!==`waiting`||this.cpuLevel!==null,this.setText(this.cpuPrompt,this.cpuRematch===null?this.rematchOpponent===null?`No one here yet? Fight the computer.`:`Or fight the computer instead:`:`Or start now:`);let o=!t&&(this.state.stage===`waiting`||this.state.stage===`countdown`);this.hint.hidden=!o,o&&this.setText(this.hint,Ie(Ke(),window.innerWidth)),this.overlay.toggleAttribute(`data-touch-hint`,o&&this.state.stage===`countdown`&&Ke());let s=!t&&[`countdown`,`fight`,`knockdown`,`foul_recovery`,`referee_down`,`finish`].includes(this.state.stage),c=!t&&this.state.snapshot!==null&&(this.state.stage===`rest`||this.state.stage===`paused`);if(this.input.setActive(s,s||c),this.network?.setActive(s),this.renderFightSummary(),this.state.final!==null){let e=this.state.final;this.setText(this.finalSummary,`${e.method.replaceAll(`_`,` `)}. ${e.winner_id===null?`Draw`:`${this.state.players[e.winner_id]?.name??`Winner`} wins`}. Scorecards: ${e.scorecards.map(e=>`${e.judge}: ${e.player_one.reduce((e,t)=>e+t,0)} to ${e.player_two.reduce((e,t)=>e+t,0)}`).join(`; `)}. ${this.cpuBout?`Unrated bout against the computer.`:`Ratings: ${Object.entries(e.ratings).map(([e,t])=>`${this.state.players[e]?.name??`fighter`} ${t.before} to ${t.after}`).join(`; `)}.`}`)}}renderFightSummary(){let e=this.state.snapshot;if(e===null)return;let t=this.state.simulation?.tick_rate??30,n=Math.floor(this.summaryClock.ticks(e)/t),r=`${Math.floor(n/60)}:${String(n%60).padStart(2,`0`)}`,i=e.fighters.map(e=>{let t=this.state.players[e.player_id],n=e.injuries.length===0?`no injuries`:`injuries: ${e.injuries.map(e=>lt(e).toLowerCase()).join(`, `)}`;return`${t?.name??`Fighter`}, ${t?.cpu===!0?`computer opponent`:`ELO ${t?.rating??`unknown`}`}, stamina ${Math.round(e.stamina)} of ${Math.round(e.maximum_stamina)}, guard ${Math.round(e.guard)}, poise ${Math.round(e.poise)}, conditioning ${Math.round(e.conditioning)}, blood ${Math.round(e.blood_volume/nt*100)} percent, ${n}, ${e.warnings} warnings, ${e.knockdowns} knockdowns`}),a=e.fighters.find(e=>e.player_id===this.state.playerId),o=a?.is_downed===!0?F(this.renderer?.getUpView??Se(a,e.tick,0,null,null,Ke(),!1)):``;this.setText(this.fightSummary,`Round ${e.round_number}. ${e.phase.replace(`_`,` `)}. Clock ${r}. ${i.join(`. `)}. ${o}`.trim())}onRetry=()=>{this.reloadOnRetry?(this.reloading=!0,this.reloadPage()):this.authorize()};bindPanels(){let e=(e,t)=>{let n=this.root.querySelector(e),r=this.root.querySelector(t);n.addEventListener(`click`,()=>{r.hidden=!r.hidden,n.setAttribute(`aria-expanded`,String(!r.hidden))})};e(`[data-controls]`,`[data-controls-panel]`),e(`[data-settings]`,`[data-settings-panel]`);let t=this.root.querySelector(`[data-settings-panel]`);this.root.querySelector(`[data-settings]`).addEventListener(`click`,()=>{this.diagnosticsTimer!==null&&window.clearInterval(this.diagnosticsTimer),this.diagnosticsTimer=null,t.hidden||(this.refreshDiagnostics(),this.diagnosticsTimer=window.setInterval(()=>this.refreshDiagnostics(),1e3))});let n=this.root.querySelector(`[data-copy-diagnostics]`);n.addEventListener(`click`,()=>{let e=this.diagnosticsText(),t=()=>{this.setText(n,`Copied`),window.setTimeout(()=>this.setText(n,`Copy diagnostics`),1500)},r=()=>{let e=this.root.querySelector(`[data-diagnostics]`),t=window.getSelection();if(t===null)return;let r=document.createRange();r.selectNodeContents(e),t.removeAllRanges(),t.addRange(r),this.setText(n,`Selected. Copy manually`),window.setTimeout(()=>this.setText(n,`Copy diagnostics`),2500)},i=navigator.clipboard;i===void 0||typeof i.writeText!=`function`?r():i.writeText(e).then(t).catch(r)}),this.root.querySelector(`[data-volume]`).addEventListener(`input`,e=>{this.settings.update({volume:Number(e.target.value)}),this.audio.setVolume(),this.voice.settingsChanged()}),this.root.querySelector(`[data-haptics]`).addEventListener(`change`,e=>{this.settings.update({haptics:e.target.checked})}),this.root.querySelector(`[data-motion]`).addEventListener(`change`,e=>{let t=e.target.checked;this.settings.update({reducedMotion:t}),this.renderer?.setReducedMotion(t)}),this.root.querySelector(`[data-commentary]`).addEventListener(`change`,e=>{this.settings.update({commentary:e.target.checked})}),this.root.querySelector(`[data-announcer]`).addEventListener(`change`,e=>{let t=e.target.checked;this.settings.update({announcer:t}),t||this.voice.cancel()}),this.root.querySelector(`[data-blood]`).addEventListener(`change`,e=>{let t=e.target.value;this.settings.update({blood:t}),this.renderer?.setBloodLevel(t)}),this.root.querySelector(`[data-camera]`).addEventListener(`change`,e=>{let t=BX.find(t=>t===e.target.value);t!==void 0&&this.settings.update({camera:t})})}diagnosticsText(){let e=this.networkStats,t=this.renderer?.diagnostics,n=t===void 0||t.frameMs<=0?`-`:(1e3/t.frameMs).toFixed(0);return[`stage: ${this.state.stage} · role: ${this.state.role??`-`}`,`input latency: ${e.inputLatencyMs===null?`-`:`${Math.round(e.inputLatencyMs)} ms`}`,`frame: ${t===void 0?`-`:`${t.frameMs.toFixed(1)} ms (${n} fps)`} · render scale: ${t?.resolutionScale??`-`}`,`gpu objects: ${t===void 0?`-`:`${t.gpu.geometries} geometries, ${t.gpu.textures} textures, ${t.gpu.programs} programs`}`,`graphics: ${t?.graphics??`-`}`,`browser: ${navigator.userAgent}`,`pointer: ${Ke()?`coarse`:`fine`} · viewport: ${window.innerWidth}x${window.innerHeight} @${window.devicePixelRatio}`,`last error: ${this.state.safeError??`none`}`,`match: ${this.state.final?.match_id??`-`}`].join(` +`)}refreshDiagnostics(){this.setText(this.root.querySelector(`[data-diagnostics]`),this.diagnosticsText())}syncSettings(){let e=this.settings.current;this.root.querySelector(`[data-volume]`).value=String(e.volume),this.root.querySelector(`[data-haptics]`).checked=e.haptics,this.root.querySelector(`[data-motion]`).checked=e.reducedMotion,this.root.querySelector(`[data-blood]`).value=e.blood,this.root.querySelector(`[data-commentary]`).checked=e.commentary,this.syncAnnouncerSetting(),this.voice.onVoicesChanged=()=>this.syncAnnouncerSetting(),this.root.querySelector(`[data-camera]`).value=e.camera}syncAnnouncerSetting(){let e=this.root.querySelector(`[data-announcer]`),t=this.voice.hasVoice;e.checked=this.settings.current.announcer&&t,e.disabled=!t;let n=this.voice.supported?t?null:`This device has no English voice of its own`:`This browser cannot speak`;n===null?e.parentElement.removeAttribute(`title`):e.parentElement.title=n}fail(e){e===`room_closed`&&this.rematchAttempts>0?this.scheduleRematchRetry():(e===`client_outdated`&&(this.reloadOnRetry=!0),this.dispatch({type:`fatal`,code:e}),this.rematchOpponent=null,this.voice.cancel(),this.network?.dispose(),this.network=null,this.session?.destroy(),this.session=null,this.renderer?.destroy(),this.renderer=null,this.input.setActive(!1),this.input.reset(),this.renderState())}destroy(){this.destroyed||(this.destroyed=!0,this.generation+=1,this.abort.abort(),this.network?.dispose(),this.session?.destroy(),this.reloading||this.authorizer.close(),this.renderer?.destroy(),window.removeEventListener(`keydown`,this.onCameraKey),this.input.destroy(),this.corner.destroy(),this.stylePicker.destroy(),this.audio.destroy(),this.voice.destroy(),this.settings.destroy(),this.retry.removeEventListener(`click`,this.onRetry),this.rematchButton.removeEventListener(`click`,this.onRematch),this.cpuPicker.removeEventListener(`click`,this.onCpuPick),this.clearRematchTimers(),this.diagnosticsTimer!==null&&window.clearInterval(this.diagnosticsTimer),this.resultRevealTimer!==null&&window.clearInterval(this.resultRevealTimer),this.resultWaitTimer!==null&&window.clearTimeout(this.resultWaitTimer),this.diagnosticsTimer=null,this.root.replaceChildren())}};(new URLSearchParams(window.location.search).get(`styles`)??``).split(`,`);var sZ={broadcast:{position:[0,1.88,7.15],lookAt:[0,1.12,0]},side:{position:[7.4,1.6,0],lookAt:[0,1.1,0]},top:{position:[.01,8.5,.01],lookAt:[0,0,0]},ringside:{position:[1.6,1.5,4.1],lookAt:[.2,1.25,0]}},cZ=[[`hips`,`spine`],[`spine`,`head`],[`chest`,`shoulderL`],[`shoulderL`,`elbowL`],[`elbowL`,`gloveL`],[`chest`,`shoulderR`],[`shoulderR`,`elbowR`],[`elbowR`,`gloveR`],[`hips`,`hipL`],[`hipL`,`kneeL`],[`kneeL`,`ankleL`],[`hips`,`hipR`],[`hipR`,`kneeR`],[`kneeR`,`ankleR`]],lZ=class{root;renderer=null;replay=null;raf=0;playing=!1;speed=1;virtualTick=0;carry=0;latencyMs=0;pendingQueue=[];destroyed=!1;overlays={skeleton:!1,hurtbox:!1,hitbox:!1};skeletonLines=[];hurtboxMeshes=[];hitboxMeshes=[];statusEl;metricsEl;canvas;constructor(e){this.root=e,e.innerHTML=`
HANDS LABloading replay…
@@ -5551,7 +5551,7 @@ void main() { -
`,this.canvas=e.querySelector(`canvas`),this.statusEl=e.querySelector(`[data-lab-status]`),this.metricsEl=e.querySelector(`[data-lab-metrics]`),this.bindControls()}async start(){let e=new URLSearchParams(window.location.search),t=e.get(`replay`)??`golden`,n=await fetch(`/replays/${t}.json`);if(n.ok||(n=await fetch(`/hands/replays/${t}.json`)),!n.ok)throw Error(`replay_load_failed:${n.status}`);this.replay=await n.json(),await Pw(),this.renderer=new DX(this.canvas,{tick_rate:this.replay.tick_rate,ring_half_width:500,ring_half_height:500},()=>({volume:0,haptics:!1,reducedMotion:!1,blood:`full`,commentary:!0,announcer:!1,camera:`broadcast`}),{manualClock:!0});let r=Object.fromEntries(this.replay.ticks[0].snapshot.payload.fighters.map(e=>[e.player_id,{id:e.player_id,name:e.player_id===`one`?`Azure Vector`:`Crimson Geometry`,avatar:null,rating:1500,connected:!0}]));this.renderer.setPlayers(r,`one`),this.buildOverlays();let i=e.get(`tick`);if(e.get(`metrics`)===`1`){await this.renderer.ready,this.exportMetrics(),this.setStatus(`metrics done`);return}if(i!==null){let t=Number(i);await this.renderer.ready,this.seek(t);let n=YX[e.get(`camera`)??``]??YX.broadcast;this.renderer.labSetCameraOverride(n.position,n.lookAt),this.overlays.skeleton=e.get(`skeleton`)===`1`,this.overlays.hurtbox=e.get(`hurtbox`)===`1`,this.overlays.hitbox=e.get(`hitbox`)===`1`,this.syncOverlayVisibility(),this.renderCurrentTick(),window.__labDebug={roots:this.renderer.labRigs.map(e=>e.position.toArray().map(e=>Number(e.toFixed(3)))),heads:this.renderer.labRigs.map(e=>{let t=e.getObjectByName(tb.head??`head`);return t===void 0?null:t.getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3)))}),gloves:this.renderer.labRigs.map(e=>{let t=e.getObjectByName(tb.gloveL??`gloveL`);return t===void 0?null:t.getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3)))}),material:(()=>{let e=null;return this.renderer.labRigs[0]?.traverse(t=>{if(e===null&&t instanceof Hl){let n=t.material;e={colorHex:n.color.getHexString(),hasMap:n.map!==null,mapImage:n.map?.image?.width??`none`,mapVersion:n.map?.version,clearcoat:n.clearcoat,opacity:n.opacity}}}),e})()},this.setStatus(`filmstrip tick ${t}`);return}this.playing=!0;let a=()=>{this.destroyed||(this.advance(),this.raf=requestAnimationFrame(a))};this.raf=requestAnimationFrame(a)}bindControls(){this.root.querySelector(`[data-lab='play']`).addEventListener(`click`,e=>{this.playing=!this.playing,e.target.textContent=this.playing?`Pause`:`Play`}),this.root.querySelector(`[data-lab='step']`).addEventListener(`click`,()=>{this.playing=!1,this.root.querySelector(`[data-lab='play']`).textContent=`Play`,this.virtualTick=Math.min(this.virtualTick+1,(this.replay?.ticks.length??1)-1),this.pushUpTo(this.virtualTick),this.renderCurrentTick()}),this.root.querySelector(`[data-lab='speed']`).addEventListener(`change`,e=>{this.speed=Number(e.target.value)}),this.root.querySelector(`[data-lab='camera']`).addEventListener(`change`,e=>{let t=YX[e.target.value];this.renderer?.labSetCameraOverride(t.position,t.lookAt)});for(let e of[`skeleton`,`hurtbox`,`hitbox`])this.root.querySelector(`[data-lab='${e}']`).addEventListener(`change`,t=>{this.overlays[e]=t.target.checked,this.syncOverlayVisibility()});this.root.querySelector(`[data-lab='latency']`).addEventListener(`change`,e=>{this.latencyMs=Math.max(0,Math.min(500,Number(e.target.value)))}),this.root.querySelector(`[data-lab='metrics']`).addEventListener(`click`,()=>this.exportMetrics())}advance(){if(!this.playing||this.replay===null)return;let e=this.replay.ticks.length-1;if(!(this.virtualTick>=e)){for(this.carry+=this.speed;this.carry>=1&&this.virtualTick0?this.pendingQueue.push({at:performance.now()+this.latencyMs,tick:t}):this.renderer?.push(t.snapshot.payload))}drainLatencyQueue(){let e=performance.now();for(let t=this.pendingQueue.length-1;t>=0;--t){let n=this.pendingQueue[t];n.at<=e&&(this.renderer?.push(n.tick.snapshot.payload),this.pendingQueue.splice(t,1))}}seek(e,t=!0){if(this.replay===null||this.renderer===null)return;let n=Math.max(0,Math.min(e,this.replay.ticks.length-1));for(let e=0;e<=n;e+=1)this.renderer.push(this.replay.ticks[e].snapshot.payload),e>=n-15&&this.renderer.labEffects.update(1/30);this.virtualTick=n,this.renderOnSeek=t}renderOnSeek=!0;renderCurrentTick(e){if(this.replay===null||this.renderer===null)return;this.drainLatencyQueue(),this.renderer.labFrame(this.virtualTick/this.replay.tick_rate,e??this.renderOnSeek),this.renderer.labFrame((this.virtualTick+.5)/this.replay.tick_rate,e??this.renderOnSeek),this.updateOverlays();let t=this.replay.ticks[this.virtualTick]?.snapshot.payload.phase??``;this.setStatus(`tick ${this.virtualTick}/${this.replay.ticks.length-1} · ${t} · ${this.speed}×`)}buildOverlays(){let e=this.renderer;if(e===null)return;let t=new su({color:8257448,depthTest:!1,transparent:!0,opacity:.9});for(let n of e.labRigs){let r=new il;r.setAttribute(`position`,new Uc(new Float32Array(XX.length*6),3));let i=new yu(r,t);i.frustumCulled=!1,i.renderOrder=20,e.labScene.add(i),this.skeletonLines.push(i);let a=new H(new Pu(.13,.16,4,8),new yl({color:16735581,wireframe:!0,transparent:!0,opacity:.85,depthTest:!1}));a.renderOrder=21,a.position.y=.12,(n.getObjectByName(tb.head??`head`)??n).add(a),this.hurtboxMeshes.push(a);let o=new H(new Pu(.21,.34,4,8),new yl({color:16758877,wireframe:!0,transparent:!0,opacity:.7,depthTest:!1}));o.renderOrder=21,o.position.y=.16,(n.getObjectByName(tb.chest??`chest`)??n).add(o),this.hurtboxMeshes.push(o);for(let e of[`gloveL`,`gloveR`]){let t=new H(new _d(.11,10,8),new yl({color:6141183,wireframe:!0,transparent:!0,opacity:.85,depthTest:!1}));t.renderOrder=22,(n.getObjectByName(tb[e]??e)??n).add(t),this.hitboxMeshes.push(t)}}this.syncOverlayVisibility()}syncOverlayVisibility(){for(let e of this.skeletonLines)e.visible=this.overlays.skeleton;for(let e of this.hurtboxMeshes)e.visible=this.overlays.hurtbox;for(let e of this.hitboxMeshes)e.visible=this.overlays.hitbox}updateOverlays(){let e=this.renderer;if(e!==null)for(let[t,n]of e.labRigs.entries()){let e=this.skeletonLines[t];if(e===void 0||!e.visible)continue;let r=e.geometry.getAttribute(`position`),i=new B,a=new B;XX.forEach(([e,t],o)=>{let s=n.getObjectByName(e),c=n.getObjectByName(t);s!==void 0&&c!==void 0&&(s.getWorldPosition(i),c.getWorldPosition(a),r.setXYZ(o*2,i.x,i.y,i.z),r.setXYZ(o*2+1,a.x,a.y,a.z))}),r.needsUpdate=!0}}jointWorld(e,t){let n=(this.renderer?.labRigs[e])?.getObjectByName(tb[t]??t);return n==null?null:n.getWorldPosition(new B)}exportMetrics(){if(this.replay===null)return;let e={contactAlignment:[],maxRootStepMeters:0,footSlideMeters:0,phaseDriftTicks:0};for(let t of this.replay.ticks){let n=t.snapshot.payload.events.find(e=>[`hit`,`counter_hit`,`block`].includes(e.kind)),r=t.snapshot.payload.fighters[0].action_hand;if(n===void 0||r===null)continue;let i=Math.min(t.tick+1,this.replay.ticks.length-1);this.seek(i,!1),this.renderCurrentTick(!1);let a=this.jointWorld(0,r===`left`?`gloveL`:`gloveR`),o=this.jointWorld(1,`head`),c=this.jointWorld(1,`chest`);a!==null&&o!==null&&c!==null&&e.contactAlignment.push({tick:t.tick,kind:n.kind,gloveToHeadMeters:Number(Math.max(0,a.distanceTo(o)-s.head.radius).toFixed(4)),gloveToTorsoMeters:Number(Math.max(0,a.distanceTo(c)-s.torso.radius).toFixed(4))})}this.seek(0,!1);let t=null,n=null;for(let r of this.replay.ticks){this.seek(r.tick,!1),this.renderCurrentTick(!1);let i=this.renderer.labRigs[0].position.x;n!==null&&(e.maxRootStepMeters=Math.max(e.maxRootStepMeters,Math.abs(i-n))),n=i;let a=r.snapshot.payload.fighters[0],o=Math.hypot(a.velocity_x,a.velocity_y),s=this.replay.ticks.slice(Math.max(0,r.tick-30),r.tick+1).some(e=>e.snapshot.payload.fighters[0].is_downed);if(o===0&&!a.is_downed&&!s&&r.snapshot.payload.phase===`fight`){let n=[this.jointWorld(0,`ankleL`),this.jointWorld(0,`ankleR`)].filter(e=>e!==null);t!==null&&n.length===2&&(e.footSlideMeters=Math.max(e.footSlideMeters,Number(Math.max(n[0].distanceTo(t[0]),n[1].distanceTo(t[1])).toFixed(4)))),t=n}else t=null}this.metricsEl.textContent=` contacts: ${e.contactAlignment.map(e=>`${e.kind}@t${e.tick} glove-head ${e.gloveToHeadMeters}m`).join(` · `)} · max root step ${e.maxRootStepMeters.toFixed(3)}m · foot slide ${e.footSlideMeters}m`,window.__labDebug={roots:this.renderer.labRigs.map(e=>e.position.toArray().map(e=>Number(e.toFixed(3)))),graphsActive:this.renderer.graphs!==null,heads:this.renderer.labRigs.map(e=>{let t=e.getObjectByName(tb.head??`head`);return t===void 0?null:t.getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3)))})};let r=new Blob([JSON.stringify(e,null,1)],{type:`application/json`}),i=document.createElement(`a`);i.href=URL.createObjectURL(r),i.download=`hands-lab-metrics.json`,i.click(),URL.revokeObjectURL(i.href)}setStatus(e){this.statusEl.textContent!==e&&(this.statusEl.textContent=e)}destroy(){this.destroyed||(this.destroyed=!0,cancelAnimationFrame(this.raf),this.renderer?.destroy(),this.root.replaceChildren())}};function QX(e){let t=new ZX(e);return t.start().catch(t=>{e.querySelector(`[data-lab-status]`).textContent=`lab failed: ${String(t)}`}),()=>t.destroy()}var $X={referee:{outfit:Ab,look:cb.referee},corner_blue:{outfit:jb,look:cb.blueCorner},corner_red:{outfit:Mb,look:cb.redCorner},cutman:{outfit:Nb,look:cb.blueCutman}},eZ=()=>({player_id:`lab`,x:0,y:0,facing:1,facing_x:0,facing_y:-1e3,velocity_x:0,velocity_y:0,stance:`orthodox`,style:`balanced`,defense:`none`,stamina:1e3,maximum_stamina:1e3,conditioning:1e3,guard:700,guard_broken:!1,poise:600,trauma:{head:0,body:0,left_eye:0,right_eye:0,left_cut:0,right_cut:0,swelling:0,bleeding:0},knockdowns:0,warnings:0,deductions:0,stunned_ticks:0,is_downed:!1,action:null,action_hand:null,action_target:null,action_power:null,action_id:null,action_key:null,action_start_tick:0,action_startup_ticks:0,action_active_ticks:0,action_recovery_ticks:0,action_contact_tick:null,queued_actions:0,clinch_startup_ticks:0,clinch_ticks:0,is_foul_recovery_target:!1,taunt_ticks:0,corner_choice:null,get_up_prompt:null,get_up_meter:0,get_up_required:0,get_up_count:0,get_up_window_start_tick:0,get_up_window_end_tick:0,get_up_next_prompt:null,last_input_sequence:-1,injuries:[],blood_volume:1e3}),tZ=.45,nZ=.3,rZ={face:[.25,1.55,1],portrait:[.12,1.62,.62],eyes:[-.2,1.65,.44],floor:[1.62,.3,.18],hand:[.55,1.05,.75],front:[0,1.35,3.4],side:[3.4,1.3,.2],"three-quarter":[2.4,1.5,2.6],top:[.01,4.5,.6],back:[.2,1.4,-3.4],low:[1.8,.5,2.6],wide:[3.4,2.7,3.6]},iZ=class{root;renderer;scene=new uc;camera;graph=null;boxer=null;trails=[];trailGlove=new B;treatEye=new B(0,1.22,.78);treatFacing=new B(0,0,-1);treatTarget=new B;skeletonHelper=null;effects=null;shieldClock=1/0;shieldEvent=0;mouth=new B;headTurn=new rs;burstRim=new Float32Array;burstStump={position:new B,quaternion:new rs,across:new B,scratch:new B};raf=0;previous=performance.now();elapsed=0;params=new URLSearchParams(window.location.search);reactionFired=!1;carnage=null;injuries=[];inflictions=[];killed=!1;vomitClock=0;worn=!1;headAt=new B;statusEl;constructor(e){this.root=e,e.innerHTML=`
+
`,this.canvas=e.querySelector(`canvas`),this.statusEl=e.querySelector(`[data-lab-status]`),this.metricsEl=e.querySelector(`[data-lab-metrics]`),this.bindControls()}async start(){let e=new URLSearchParams(window.location.search),t=e.get(`replay`)??`golden`,n=await fetch(`/replays/${t}.json`);if(n.ok||(n=await fetch(`/hands/replays/${t}.json`)),!n.ok)throw Error(`replay_load_failed:${n.status}`);this.replay=await n.json(),await Gw(),this.renderer=new zX(this.canvas,{tick_rate:this.replay.tick_rate,ring_half_width:500,ring_half_height:500},()=>({volume:0,haptics:!1,reducedMotion:!1,blood:`full`,commentary:!0,announcer:!1,camera:`broadcast`}),{manualClock:!0});let r=Object.fromEntries(this.replay.ticks[0].snapshot.payload.fighters.map(e=>[e.player_id,{id:e.player_id,name:e.player_id===`one`?`Azure Vector`:`Crimson Geometry`,avatar:null,rating:1500,connected:!0}]));this.renderer.setPlayers(r,`one`),this.buildOverlays();let i=e.get(`tick`);if(e.get(`metrics`)===`1`){await this.renderer.ready,this.exportMetrics(),this.setStatus(`metrics done`);return}if(i!==null){let t=Number(i);await this.renderer.ready,this.seek(t);let n=sZ[e.get(`camera`)??``]??sZ.broadcast;this.renderer.labSetCameraOverride(n.position,n.lookAt),this.overlays.skeleton=e.get(`skeleton`)===`1`,this.overlays.hurtbox=e.get(`hurtbox`)===`1`,this.overlays.hitbox=e.get(`hitbox`)===`1`,this.syncOverlayVisibility(),this.renderCurrentTick(),window.__labDebug={roots:this.renderer.labRigs.map(e=>e.position.toArray().map(e=>Number(e.toFixed(3)))),heads:this.renderer.labRigs.map(e=>{let t=e.getObjectByName(fb.head??`head`);return t===void 0?null:t.getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3)))}),gloves:this.renderer.labRigs.map(e=>{let t=e.getObjectByName(fb.gloveL??`gloveL`);return t===void 0?null:t.getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3)))}),material:(()=>{let e=null;return this.renderer.labRigs[0]?.traverse(t=>{if(e===null&&t instanceof $l){let n=t.material;e={colorHex:n.color.getHexString(),hasMap:n.map!==null,mapImage:n.map?.image?.width??`none`,mapVersion:n.map?.version,clearcoat:n.clearcoat,opacity:n.opacity}}}),e})()},this.setStatus(`filmstrip tick ${t}`);return}this.playing=!0;let a=()=>{this.destroyed||(this.advance(),this.raf=requestAnimationFrame(a))};this.raf=requestAnimationFrame(a)}bindControls(){this.root.querySelector(`[data-lab='play']`).addEventListener(`click`,e=>{this.playing=!this.playing,e.target.textContent=this.playing?`Pause`:`Play`}),this.root.querySelector(`[data-lab='step']`).addEventListener(`click`,()=>{this.playing=!1,this.root.querySelector(`[data-lab='play']`).textContent=`Play`,this.virtualTick=Math.min(this.virtualTick+1,(this.replay?.ticks.length??1)-1),this.pushUpTo(this.virtualTick),this.renderCurrentTick()}),this.root.querySelector(`[data-lab='speed']`).addEventListener(`change`,e=>{this.speed=Number(e.target.value)}),this.root.querySelector(`[data-lab='camera']`).addEventListener(`change`,e=>{let t=sZ[e.target.value];this.renderer?.labSetCameraOverride(t.position,t.lookAt)});for(let e of[`skeleton`,`hurtbox`,`hitbox`])this.root.querySelector(`[data-lab='${e}']`).addEventListener(`change`,t=>{this.overlays[e]=t.target.checked,this.syncOverlayVisibility()});this.root.querySelector(`[data-lab='latency']`).addEventListener(`change`,e=>{this.latencyMs=Math.max(0,Math.min(500,Number(e.target.value)))}),this.root.querySelector(`[data-lab='metrics']`).addEventListener(`click`,()=>this.exportMetrics())}advance(){if(!this.playing||this.replay===null)return;let e=this.replay.ticks.length-1;if(!(this.virtualTick>=e)){for(this.carry+=this.speed;this.carry>=1&&this.virtualTick0?this.pendingQueue.push({at:performance.now()+this.latencyMs,tick:t}):this.renderer?.push(t.snapshot.payload))}drainLatencyQueue(){let e=performance.now();for(let t=this.pendingQueue.length-1;t>=0;--t){let n=this.pendingQueue[t];n.at<=e&&(this.renderer?.push(n.tick.snapshot.payload),this.pendingQueue.splice(t,1))}}seek(e,t=!0){if(this.replay===null||this.renderer===null)return;let n=Math.max(0,Math.min(e,this.replay.ticks.length-1));for(let e=0;e<=n;e+=1)this.renderer.push(this.replay.ticks[e].snapshot.payload),e>=n-15&&this.renderer.labEffects.update(1/30);this.virtualTick=n,this.renderOnSeek=t}renderOnSeek=!0;renderCurrentTick(e){if(this.replay===null||this.renderer===null)return;this.drainLatencyQueue(),this.renderer.labFrame(this.virtualTick/this.replay.tick_rate,e??this.renderOnSeek),this.renderer.labFrame((this.virtualTick+.5)/this.replay.tick_rate,e??this.renderOnSeek),this.updateOverlays();let t=this.replay.ticks[this.virtualTick]?.snapshot.payload.phase??``;this.setStatus(`tick ${this.virtualTick}/${this.replay.ticks.length-1} · ${t} · ${this.speed}×`)}buildOverlays(){let e=this.renderer;if(e===null)return;let t=new vu({color:8257448,depthTest:!1,transparent:!0,opacity:.9});for(let n of e.labRigs){let r=new hl;r.setAttribute(`position`,new el(new Float32Array(cZ.length*6),3));let i=new Au(r,t);i.frustumCulled=!1,i.renderOrder=20,e.labScene.add(i),this.skeletonLines.push(i);let a=new H(new Gu(.13,.16,4,8),new Al({color:16735581,wireframe:!0,transparent:!0,opacity:.85,depthTest:!1}));a.renderOrder=21,a.position.y=.12,(n.getObjectByName(fb.head??`head`)??n).add(a),this.hurtboxMeshes.push(a);let o=new H(new Gu(.21,.34,4,8),new Al({color:16758877,wireframe:!0,transparent:!0,opacity:.7,depthTest:!1}));o.renderOrder=21,o.position.y=.16,(n.getObjectByName(fb.chest??`chest`)??n).add(o),this.hurtboxMeshes.push(o);for(let e of[`gloveL`,`gloveR`]){let t=new H(new Od(.11,10,8),new Al({color:6141183,wireframe:!0,transparent:!0,opacity:.85,depthTest:!1}));t.renderOrder=22,(n.getObjectByName(fb[e]??e)??n).add(t),this.hitboxMeshes.push(t)}}this.syncOverlayVisibility()}syncOverlayVisibility(){for(let e of this.skeletonLines)e.visible=this.overlays.skeleton;for(let e of this.hurtboxMeshes)e.visible=this.overlays.hurtbox;for(let e of this.hitboxMeshes)e.visible=this.overlays.hitbox}updateOverlays(){let e=this.renderer;if(e!==null)for(let[t,n]of e.labRigs.entries()){let e=this.skeletonLines[t];if(e===void 0||!e.visible)continue;let r=e.geometry.getAttribute(`position`),i=new B,a=new B;cZ.forEach(([e,t],o)=>{let s=n.getObjectByName(e),c=n.getObjectByName(t);s!==void 0&&c!==void 0&&(s.getWorldPosition(i),c.getWorldPosition(a),r.setXYZ(o*2,i.x,i.y,i.z),r.setXYZ(o*2+1,a.x,a.y,a.z))}),r.needsUpdate=!0}}jointWorld(e,t){let n=(this.renderer?.labRigs[e])?.getObjectByName(fb[t]??t);return n==null?null:n.getWorldPosition(new B)}exportMetrics(){if(this.replay===null)return;let e={contactAlignment:[],maxRootStepMeters:0,footSlideMeters:0,phaseDriftTicks:0};for(let t of this.replay.ticks){let n=t.snapshot.payload.events.find(e=>[`hit`,`counter_hit`,`block`].includes(e.kind)),r=t.snapshot.payload.fighters[0].action_hand;if(n===void 0||r===null)continue;let i=Math.min(t.tick+1,this.replay.ticks.length-1);this.seek(i,!1),this.renderCurrentTick(!1);let a=this.jointWorld(0,r===`left`?`gloveL`:`gloveR`),o=this.jointWorld(1,`head`),c=this.jointWorld(1,`chest`);a!==null&&o!==null&&c!==null&&e.contactAlignment.push({tick:t.tick,kind:n.kind,gloveToHeadMeters:Number(Math.max(0,a.distanceTo(o)-s.head.radius).toFixed(4)),gloveToTorsoMeters:Number(Math.max(0,a.distanceTo(c)-s.torso.radius).toFixed(4))})}this.seek(0,!1);let t=null,n=null;for(let r of this.replay.ticks){this.seek(r.tick,!1),this.renderCurrentTick(!1);let i=this.renderer.labRigs[0].position.x;n!==null&&(e.maxRootStepMeters=Math.max(e.maxRootStepMeters,Math.abs(i-n))),n=i;let a=r.snapshot.payload.fighters[0],o=Math.hypot(a.velocity_x,a.velocity_y),s=this.replay.ticks.slice(Math.max(0,r.tick-30),r.tick+1).some(e=>e.snapshot.payload.fighters[0].is_downed);if(o===0&&!a.is_downed&&!s&&r.snapshot.payload.phase===`fight`){let n=[this.jointWorld(0,`ankleL`),this.jointWorld(0,`ankleR`)].filter(e=>e!==null);t!==null&&n.length===2&&(e.footSlideMeters=Math.max(e.footSlideMeters,Number(Math.max(n[0].distanceTo(t[0]),n[1].distanceTo(t[1])).toFixed(4)))),t=n}else t=null}this.metricsEl.textContent=` contacts: ${e.contactAlignment.map(e=>`${e.kind}@t${e.tick} glove-head ${e.gloveToHeadMeters}m`).join(` · `)} · max root step ${e.maxRootStepMeters.toFixed(3)}m · foot slide ${e.footSlideMeters}m`,window.__labDebug={roots:this.renderer.labRigs.map(e=>e.position.toArray().map(e=>Number(e.toFixed(3)))),graphsActive:this.renderer.graphs!==null,heads:this.renderer.labRigs.map(e=>{let t=e.getObjectByName(fb.head??`head`);return t===void 0?null:t.getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3)))})};let r=new Blob([JSON.stringify(e,null,1)],{type:`application/json`}),i=document.createElement(`a`);i.href=URL.createObjectURL(r),i.download=`hands-lab-metrics.json`,i.click(),URL.revokeObjectURL(i.href)}setStatus(e){this.statusEl.textContent!==e&&(this.statusEl.textContent=e)}destroy(){this.destroyed||(this.destroyed=!0,cancelAnimationFrame(this.raf),this.renderer?.destroy(),this.root.replaceChildren())}};function uZ(e){let t=new lZ(e);return t.start().catch(t=>{e.querySelector(`[data-lab-status]`).textContent=`lab failed: ${String(t)}`}),()=>t.destroy()}var dZ={referee:{outfit:Vb,look:yb.referee},corner_blue:{outfit:Hb,look:yb.blueCorner},corner_red:{outfit:Ub,look:yb.redCorner},cutman:{outfit:Wb,look:yb.blueCutman}},fZ=()=>({player_id:`lab`,x:0,y:0,facing:1,facing_x:0,facing_y:-1e3,velocity_x:0,velocity_y:0,stance:`orthodox`,style:`balanced`,defense:`none`,stamina:1e3,maximum_stamina:1e3,conditioning:1e3,guard:700,guard_broken:!1,poise:600,trauma:{head:0,body:0,left_eye:0,right_eye:0,left_cut:0,right_cut:0,swelling:0,bleeding:0},knockdowns:0,warnings:0,deductions:0,stunned_ticks:0,is_downed:!1,action:null,action_hand:null,action_target:null,action_power:null,action_id:null,action_key:null,action_start_tick:0,action_startup_ticks:0,action_active_ticks:0,action_recovery_ticks:0,action_contact_tick:null,queued_actions:0,clinch_startup_ticks:0,clinch_ticks:0,is_foul_recovery_target:!1,taunt_ticks:0,corner_choice:null,get_up_prompt:null,get_up_meter:0,get_up_required:0,get_up_count:0,get_up_window_start_tick:0,get_up_window_end_tick:0,get_up_next_prompt:null,last_input_sequence:-1,injuries:[],blood_volume:1e3}),pZ=.45,mZ=.3,hZ={face:[.25,1.55,1],portrait:[.12,1.62,.62],eyes:[-.2,1.65,.44],floor:[1.62,.3,.18],hand:[.55,1.05,.75],front:[0,1.35,3.4],side:[3.4,1.3,.2],"three-quarter":[2.4,1.5,2.6],top:[.01,4.5,.6],back:[.2,1.4,-3.4],low:[1.8,.5,2.6],wide:[3.4,2.7,3.6]},gZ=class{root;renderer;scene=new xc;camera;graph=null;boxer=null;trails=[];trailGlove=new B;treatEye=new B(0,1.22,.78);treatFacing=new B(0,0,-1);treatTarget=new B;skeletonHelper=null;effects=null;shieldClock=1/0;shieldEvent=0;mouth=new B;headTurn=new ms;burstRim=new Float32Array;burstStump={position:new B,quaternion:new ms,across:new B,scratch:new B};raf=0;previous=performance.now();elapsed=0;params=new URLSearchParams(window.location.search);reactionFired=!1;carnage=null;injuries=[];inflictions=[];killed=!1;vomitClock=0;worn=!1;headAt=new B;statusEl;constructor(e){this.root=e,e.innerHTML=`
HANDS POSE LABloading…
-
`,this.statusEl=e.querySelector(`[data-status]`);let t=e.querySelector(`[data-canvas]`);this.renderer=new Mg({canvas:t,antialias:!0,preserveDrawingBuffer:!0}),this.renderer.setPixelRatio(Math.min(2,window.devicePixelRatio||1)),this.renderer.shadowMap.enabled=!0,this.renderer.toneMapping=4,this.camera=new Af(38,1,.1,60);let n=rZ[this.params.get(`cam`)??`three-quarter`]??rZ[`three-quarter`];this.camera.position.set(...n),this.params.get(`cam`)===`hand`?this.camera.lookAt(.27,.84,.12):this.params.get(`cam`)===`portrait`?this.camera.lookAt(0,1.6,.05):this.params.get(`cam`)===`eyes`?this.camera.lookAt(.01,1.6,.06):this.params.get(`cam`)===`floor`?this.camera.lookAt(1.3,0,-.24):this.params.get(`cam`)===`wide`?this.camera.lookAt(0,.45,-.2):this.camera.lookAt(0,this.params.get(`cam`)===`face`?1.5:1,0),this.setupLighting()}setupLighting(){this.scene.background=new V(`#101318`),this.scene.add(new vf(`#8fa0c8`,`#1a1c22`,1.4));let e=new Lf(`#fff1dc`,2.6);e.position.set(2.5,5,3),e.castShadow=!0,e.shadow.mapSize.set(2048,2048),this.scene.add(e);let t=new Lf(`#9fb8ff`,1.2);t.position.set(-3,3,-3),this.scene.add(t);let n=new H(new Fu(4,48),new jd({color:`#3c4a7a`,roughness:.9}));n.rotation.x=-Math.PI/2,n.receiveShadow=!0,this.scene.add(n);let r=new fp(4,16,8952251,3358810);r.position.y=.002,this.scene.add(r)}synthesize(e){let t=this.params.get(`pose`)??`idle`,n=this.params.get(`stance`)===`southpaw`?`southpaw`:`orthodox`,r={...eZ(),stance:n},i=this.params.get(`trauma`);i===`light`&&(r.trauma={head:220,body:260,left_eye:190,right_eye:60,left_cut:40,right_cut:0,swelling:120,bleeding:60}),i===`heavy`&&(r.trauma={head:900,body:700,left_eye:720,right_eye:380,left_cut:520,right_cut:190,swelling:620,bleeding:520}),i===`cut`&&(r.trauma={head:420,body:120,left_eye:380,right_eye:120,left_cut:300,right_cut:0,swelling:260,bleeding:380});let a=i?.split(`,`).map(Number)??[];if(a.length===8&&a.every(Number.isFinite)){let[e,t,n,i,o,s,c,l]=a;r.trauma={head:e,body:t,left_eye:n,right_eye:i,left_cut:o,right_cut:s,swelling:c,bleeding:l}}let o=Number(this.params.get(`gap`)??150),s={...eZ(),player_id:`other`,x:0,y:-o,facing_x:0,facing_y:1e3},c=Math.floor(e*30),l=/^(jab|straight|hook|uppercut)_(left|right)(_body)?(_power)?$/.exec(t);if(l!==null){let e=l[1],t=l[2],n=l[3]===`_body`?`body`:`head`,i=l[4]===`_power`?`power`:`normal`,a={jab:[4,2,7],straight:[6,2,10],hook:[7,3,12],uppercut:[8,2,13]}[e],o=a[0]+a[1]+a[2],s=Math.floor(c/(o+12))*(o+12)+6;c>=s&&c=tZ&&t<3.4,r.stunned_ticks=t=nZ&&(t===null||e{let i=Math.min(.05,(r-this.previous)/1e3);this.previous=r,t===null?(this.elapsed=e===null?this.elapsed+i:Number(e),this.step(e===null?i:1/60)):this.step(0),this.renderer.render(this.scene,this.camera),this.raf=requestAnimationFrame(n)};this.raf=requestAnimationFrame(n)}step(e){let t=this.graph;if(t===null)return;let n=this.renderer.domElement.clientWidth,r=this.renderer.domElement.clientHeight;n>0&&r>0&&(this.renderer.domElement.width!==n||this.renderer.domElement.height!==r)&&(this.renderer.setSize(n,r,!1),this.camera.aspect=n/r,this.camera.updateProjectionMatrix());let{fighter:i,opponent:a,sampledTick:o,head:s}=this.synthesize(this.elapsed),c=this.params.get(`pose`)??``;if(/^(hit|block)_/.test(c)){let n=this.elapsed%1.6;if(this.params.has(`freeze`)?!this.reactionFired&&this.elapsed>=.02:n=.27999999999999997){this.reactionFired=!0;let e=this.params.get(`hit`)??`straight`,n=e===`body`?`hook`:e;t.react(`hit`,e===`body`?`body`:`head`,1,n,this.params.get(`hand`)===`left`?`left`:`right`,Number(this.params.get(`amount`)??420))}this.params.get(`pose`)===`knockdown`&&this.params.get(`fall`)===`prone`&&this.elapsed%6=.02:this.elapsed%1.63)){this.shieldClock=0,this.shieldEvent+=1;let e=this.boxer.bone(`head`);e.getWorldQuaternion(this.headTurn),e.getWorldPosition(this.mouth).add(new B(0,.045,.12).applyQuaternion(this.headTurn)),this.effects.ejectMouthpiece(0,this.mouth,this.headTurn,1,this.shieldEvent,1920728,!0)}this.effects?.update(e);for(let[t,n]of[`gloveL`,`gloveR`].entries())this.carnage?.hasGlove(0,t===0?`left`:`right`)===!1?this.trails[t]?.reset():(this.boxer.rig.bones[n].getWorldPosition(this.trailGlove),this.trails[t]?.update(this.trailGlove,e,this.camera.position,e>0));window.__poseLab={head:this.boxer.bone(`head`).getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3))),gloveL:this.boxer.bone(`gloveL`).getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3))),gloveR:this.boxer.bone(`gloveR`).getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3))),ankleL:this.boxer.bone(`ankleL`).getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3))),ankleR:this.boxer.bone(`ankleR`).getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3))),kneeL:this.boxer.bone(`kneeL`).getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3))),kneeR:this.boxer.bone(`kneeR`).getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3))),metrics:this.boxer.rig.metrics,mouthpiece:this.effects!==null&&this.effects.mouthpiecePosition(0,this.mouth)?this.mouth.toArray().map(e=>Number(e.toFixed(3))):null}}get bloodSetting(){let e=this.params.get(`blood`);return e===`reduced`||e===`off`?e:`full`}startCarnage(){let e=e=>(this.params.get(e)??``).split(`,`).filter(e=>He.includes(e));this.injuries.push(...e(`injuries`));for(let[t,n]of e(`inflict`).entries())this.inflictions.push({injury:n,at:1+t*.8,done:!1});if(!(this.injuries.length>0||this.inflictions.length>0||[`fatality`,`dead`,`bloodvol`,`dazed`,`vomit`,`xray`,`wear`].some(e=>this.params.has(e)))||this.graph===null)return;this.effects??=new GK(this.scene),this.effects.setBloodLevel(this.bloodSetting),this.effects.setCamera(this.camera),this.carnage=new NH(this.effects,BY),this.carnage.attach(0,this.graph);let t=this.params.get(`xray`);t!==null&&this.carnage.holdXray(0,t)}stepCarnage(e){let t=this.carnage,n=this.graph;if(t===null||n===null||this.effects===null)return;for(let[e,n]of this.inflictions.entries())n.done||this.elapsed=1&&(i!==null||We.includes(r??``))&&(this.killed=!0,i===null?this.kill(t,r):t.die(0,i));let a=this.params.get(`dazed`)===`1`&&!this.killed;n.setDazed(a),this.params.get(`vomit`)===`1`&&(this.vomitClock+=e,this.vomitClock>=3&&(this.vomitClock=0,t.vomit(0,Math.round(this.elapsed*10))));let o=Number(this.params.get(`bloodvol`)??1e3),s=He.filter(e=>this.injuries.includes(e));t.sync(0,{injuries:s,blood_volume:Number.isFinite(o)?o:1e3},{blood:this.bloodSetting,reducedMotion:!1},e,this.elapsed,a);let c=Number(this.params.get(`wear`)??0);if(!this.worn&&c>0&&this.elapsed>=.5){this.worn=!0;let e=[[`head`,.06,.07,.1],[`body`,.1,.02,.14],[`head`,-.05,.11,.1],[`body`,-.09,-.06,.14]];for(let r=0;rvoid 0),()=>t.destroy()}var oZ=document.querySelector(`#app`);if(oZ===null)throw Error(`app_root_missing`);var sZ,cZ=new URLSearchParams(window.location.search),lZ=window.location.pathname.endsWith(`/hands/lab`)||cZ.get(`lab`)===`1`;if(window.location.pathname.endsWith(`/hands/model-lab`)||cZ.get(`model-lab`)===`1`)sZ=aZ(oZ);else if(lZ)sZ=QX(oZ);else{let e=new JX(oZ);e.start(),sZ=()=>e.destroy()}window.addEventListener(`pagehide`,sZ,{once:!0}); \ No newline at end of file +`,this.statusEl=e.querySelector(`[data-status]`);let t=e.querySelector(`[data-canvas]`);this.renderer=new Ug({canvas:t,antialias:!0,preserveDrawingBuffer:!0}),this.renderer.setPixelRatio(Math.min(2,window.devicePixelRatio||1)),this.renderer.shadowMap.enabled=!0,this.renderer.toneMapping=4,this.camera=new Vf(38,1,.1,60);let n=hZ[this.params.get(`cam`)??`three-quarter`]??hZ[`three-quarter`];this.camera.position.set(...n),this.params.get(`cam`)===`hand`?this.camera.lookAt(.27,.84,.12):this.params.get(`cam`)===`portrait`?this.camera.lookAt(0,1.6,.05):this.params.get(`cam`)===`eyes`?this.camera.lookAt(.01,1.6,.06):this.params.get(`cam`)===`floor`?this.camera.lookAt(1.3,0,-.24):this.params.get(`cam`)===`wide`?this.camera.lookAt(0,.45,-.2):this.camera.lookAt(0,this.params.get(`cam`)===`face`?1.5:1,0),this.setupLighting()}setupLighting(){this.scene.background=new V(`#101318`),this.scene.add(new kf(`#8fa0c8`,`#1a1c22`,1.4));let e=new Jf(`#fff1dc`,2.6);e.position.set(2.5,5,3),e.castShadow=!0,e.shadow.mapSize.set(2048,2048),this.scene.add(e);let t=new Jf(`#9fb8ff`,1.2);t.position.set(-3,3,-3),this.scene.add(t);let n=new H(new Ku(4,48),new Hd({color:`#3c4a7a`,roughness:.9}));n.rotation.x=-Math.PI/2,n.receiveShadow=!0,this.scene.add(n);let r=new Cp(4,16,8952251,3358810);r.position.y=.002,this.scene.add(r)}synthesize(e){let t=this.params.get(`pose`)??`idle`,n=this.params.get(`stance`)===`southpaw`?`southpaw`:`orthodox`,r={...fZ(),stance:n},i=this.params.get(`trauma`);i===`light`&&(r.trauma={head:220,body:260,left_eye:190,right_eye:60,left_cut:40,right_cut:0,swelling:120,bleeding:60}),i===`heavy`&&(r.trauma={head:900,body:700,left_eye:720,right_eye:380,left_cut:520,right_cut:190,swelling:620,bleeding:520}),i===`cut`&&(r.trauma={head:420,body:120,left_eye:380,right_eye:120,left_cut:300,right_cut:0,swelling:260,bleeding:380});let a=i?.split(`,`).map(Number)??[];if(a.length===8&&a.every(Number.isFinite)){let[e,t,n,i,o,s,c,l]=a;r.trauma={head:e,body:t,left_eye:n,right_eye:i,left_cut:o,right_cut:s,swelling:c,bleeding:l}}let o=Number(this.params.get(`gap`)??150),s={...fZ(),player_id:`other`,x:0,y:-o,facing_x:0,facing_y:1e3},c=Math.floor(e*30),l=/^(jab|straight|hook|uppercut)_(left|right)(_body)?(_power)?$/.exec(t);if(l!==null){let e=l[1],t=l[2],n=l[3]===`_body`?`body`:`head`,i=l[4]===`_power`?`power`:`normal`,a={jab:[4,2,7],straight:[6,2,10],hook:[7,3,12],uppercut:[8,2,13]}[e],o=a[0]+a[1]+a[2],s=Math.floor(c/(o+12))*(o+12)+6;c>=s&&c=pZ&&t<3.4,r.stunned_ticks=t=mZ&&(t===null||e{let i=Math.min(.05,(r-this.previous)/1e3);this.previous=r,t===null?(this.elapsed=e===null?this.elapsed+i:Number(e),this.step(e===null?i:1/60)):this.step(0),this.renderer.render(this.scene,this.camera),this.raf=requestAnimationFrame(n)};this.raf=requestAnimationFrame(n)}step(e){let t=this.graph;if(t===null)return;let n=this.renderer.domElement.clientWidth,r=this.renderer.domElement.clientHeight;n>0&&r>0&&(this.renderer.domElement.width!==n||this.renderer.domElement.height!==r)&&(this.renderer.setSize(n,r,!1),this.camera.aspect=n/r,this.camera.updateProjectionMatrix());let{fighter:i,opponent:a,sampledTick:o,head:s}=this.synthesize(this.elapsed),c=this.params.get(`pose`)??``;if(/^(hit|block)_/.test(c)){let n=this.elapsed%1.6;if(this.params.has(`freeze`)?!this.reactionFired&&this.elapsed>=.02:n=.27999999999999997){this.reactionFired=!0;let e=this.params.get(`hit`)??`straight`,n=e===`body`?`hook`:e;t.react(`hit`,e===`body`?`body`:`head`,1,n,this.params.get(`hand`)===`left`?`left`:`right`,Number(this.params.get(`amount`)??420))}this.params.get(`pose`)===`knockdown`&&this.params.get(`fall`)===`prone`&&this.elapsed%6=.02:this.elapsed%1.63)){this.shieldClock=0,this.shieldEvent+=1;let e=this.boxer.bone(`head`);e.getWorldQuaternion(this.headTurn),e.getWorldPosition(this.mouth).add(new B(0,.045,.12).applyQuaternion(this.headTurn)),this.effects.ejectMouthpiece(0,this.mouth,this.headTurn,1,this.shieldEvent,1920728,!0)}this.effects?.update(e);for(let[t,n]of[`gloveL`,`gloveR`].entries())this.carnage?.hasGlove(0,t===0?`left`:`right`)===!1?this.trails[t]?.reset():(this.boxer.rig.bones[n].getWorldPosition(this.trailGlove),this.trails[t]?.update(this.trailGlove,e,this.camera.position,e>0));window.__poseLab={head:this.boxer.bone(`head`).getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3))),gloveL:this.boxer.bone(`gloveL`).getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3))),gloveR:this.boxer.bone(`gloveR`).getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3))),ankleL:this.boxer.bone(`ankleL`).getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3))),ankleR:this.boxer.bone(`ankleR`).getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3))),kneeL:this.boxer.bone(`kneeL`).getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3))),kneeR:this.boxer.bone(`kneeR`).getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3))),metrics:this.boxer.rig.metrics,mouthpiece:this.effects!==null&&this.effects.mouthpiecePosition(0,this.mouth)?this.mouth.toArray().map(e=>Number(e.toFixed(3))):null}}get bloodSetting(){let e=this.params.get(`blood`);return e===`reduced`||e===`off`?e:`full`}startCarnage(){let e=e=>(this.params.get(e)??``).split(`,`).filter(e=>Xe.includes(e));this.injuries.push(...e(`injuries`));for(let[t,n]of e(`inflict`).entries())this.inflictions.push({injury:n,at:1+t*.8,done:!1});if(!(this.injuries.length>0||this.inflictions.length>0||[`fatality`,`dead`,`bloodvol`,`dazed`,`vomit`,`xray`,`wear`].some(e=>this.params.has(e)))||this.graph===null)return;this.effects??=new rq(this.scene),this.effects.setBloodLevel(this.bloodSetting),this.effects.setCamera(this.camera),this.carnage=new GH(this.effects,QY),this.carnage.attach(0,this.graph);let t=this.params.get(`xray`);t!==null&&this.carnage.holdXray(0,t)}stepCarnage(e){let t=this.carnage,n=this.graph;if(t===null||n===null||this.effects===null)return;for(let[e,n]of this.inflictions.entries())n.done||this.elapsed=1&&(i!==null||Qe.includes(r??``))&&(this.killed=!0,i===null?this.kill(t,r):t.die(0,i));let a=this.params.get(`dazed`)===`1`&&!this.killed;n.setDazed(a),this.params.get(`vomit`)===`1`&&(this.vomitClock+=e,this.vomitClock>=3&&(this.vomitClock=0,t.vomit(0,Math.round(this.elapsed*10))));let o=Number(this.params.get(`bloodvol`)??1e3),s=Xe.filter(e=>this.injuries.includes(e));t.sync(0,{injuries:s,blood_volume:Number.isFinite(o)?o:1e3},{blood:this.bloodSetting,reducedMotion:!1},e,this.elapsed,a);let c=Number(this.params.get(`wear`)??0);if(!this.worn&&c>0&&this.elapsed>=.5){this.worn=!0;let e=[[`head`,.06,.07,.1],[`body`,.1,.02,.14],[`head`,-.05,.11,.1],[`body`,-.09,-.06,.14]];for(let r=0;rvoid 0),()=>t.destroy()}var vZ=document.querySelector(`#app`);if(vZ===null)throw Error(`app_root_missing`);var yZ,bZ=new URLSearchParams(window.location.search),xZ=window.location.pathname.endsWith(`/hands/lab`)||bZ.get(`lab`)===`1`;if(window.location.pathname.endsWith(`/hands/model-lab`)||bZ.get(`model-lab`)===`1`)yZ=_Z(vZ);else if(xZ)yZ=uZ(vZ);else{let e=new oZ(vZ);e.start(),yZ=()=>e.destroy()}window.addEventListener(`pagehide`,yZ,{once:!0}); \ No newline at end of file diff --git a/tests/test_hands/test_engine.py b/tests/test_hands/test_engine.py index 49af9352..895da594 100644 --- a/tests/test_hands/test_engine.py +++ b/tests/test_hands/test_engine.py @@ -1630,8 +1630,10 @@ def test_each_get_up_prompt_lands_on_a_number_of_the_count_and_is_shown_a_count_ [ (-rules.GET_UP_ZONE_TICKS - 1, "early", 0), (-rules.GET_UP_ZONE_TICKS, "good", rules.GET_UP_GOOD), + (-rules.GET_UP_PERFECT_TICKS - 1, "good", rules.GET_UP_GOOD), (-rules.GET_UP_PERFECT_TICKS, "perfect", rules.GET_UP_PERFECT), (0, "perfect", rules.GET_UP_PERFECT), + (rules.GET_UP_PERFECT_TICKS, "perfect", rules.GET_UP_PERFECT), (rules.GET_UP_PERFECT_TICKS + 1, "good", rules.GET_UP_GOOD), (rules.GET_UP_ZONE_TICKS, "good", rules.GET_UP_GOOD), (rules.GET_UP_ZONE_TICKS + 1, "late", 0), @@ -1687,6 +1689,46 @@ def test_a_double_tap_costs_nothing_and_a_late_press_keeps_the_next_attempt() -> assert [event.detail for event in _press_on(late, beat + COUNT_TICK_INTERVAL)] == ["perfect"] +def test_after_an_attempt_the_next_prompt_s_lead_in_starts_when_the_last_one_s_late_ticks_end() -> ( + None +): + engine = _downed() + beat = _beat(engine) + assert [event.detail for event in _press_on(engine, beat)] == ["perfect"] + following = engine.fighter("one").get_up_prompt + end = beat + rules.GET_UP_ZONE_TICKS + rules.GET_UP_LATE_TICKS + assert _press_on(engine, end, following) == [] + assert [event.detail for event in _press_on(engine, end + 1, following)] == ["early"] + + +def test_of_two_get_up_presses_in_one_tick_the_first_is_judged() -> None: + engine = _downed() + downed = engine.fighter("one") + beat = _beat(engine) + prompt = downed.get_up_prompt + wrong = ActionKind.GET_UP_RIGHT if prompt is ActionKind.GET_UP_LEFT else ActionKind.GET_UP_LEFT + while engine.tick < beat - 1: + engine.step() + # Two frames between steps, as a merged send or a slow server loop delivers them. + engine.submit_input("one", command(engine.tick + 1, action=MovementAction(prompt))) + engine.submit_input("one", command(engine.tick + 2, action=MovementAction(wrong))) + verdicts = [event.detail for event in engine.step().events if event.kind == "get_up_input"] + assert verdicts == ["perfect"] + + other = _downed() + beat = _beat(other) + prompt = other.fighter("one").get_up_prompt + wrong = ActionKind.GET_UP_RIGHT if prompt is ActionKind.GET_UP_LEFT else ActionKind.GET_UP_LEFT + while other.tick < beat - 1: + other.step() + # Both in one frame: the first of them. + pair = (MovementAction(wrong), MovementAction(prompt)) + other.submit_input("one", command(other.tick + 1, actions=pair)) + assert [event.detail for event in other.step().events if event.kind == "get_up_input"] == [ + "wrong" + ] + + @pytest.mark.parametrize("every", [3, 4, 7, 8]) def test_mashing_never_gets_a_fighter_up(every: int) -> None: engine = _downed() diff --git a/web/hands/src/app.test.ts b/web/hands/src/app.test.ts index 638d3493..54c110da 100644 --- a/web/hands/src/app.test.ts +++ b/web/hands/src/app.test.ts @@ -733,17 +733,18 @@ describe("browser lifecycle and accessible overlays", () => { expect(summary.hasAttribute("aria-live")).toBe(false); expect(summary.textContent).toContain(longName); expect(summary.textContent).toContain("Clock 1:00"); - expect(summary.textContent).toContain("Press the left arrow key on the beat of the count"); + expect(summary.textContent).toContain("You are down. Count 0. Press the left arrow key on the beat of the count, as the ring closes. One press a count. 5 more to get up."); expect(summary.textContent).toContain("blood 42 percent, injuries: broken nose, left arm torn off,"); expect(summary.textContent).toContain("blood 100 percent, no injuries,"); - expect(live.textContent).toBe("You are down. Count 0. Press the left arrow key on the beat of the count, as the ring closes. One press a count. 5 more to get up."); + // The live region says only what changed: here, the side of the first prompt. + expect(live.textContent).toBe("Left."); const firstLiveNode = live.firstChild; const staminaChanged = { ...snapshot, tick: 3, fighters: [{ ...downed, stamina: downed.stamina - 1 }, snapshot.fighters[1]] as const }; send({ version: PROTOCOL_VERSION, type: "snapshot", payload: staminaChanged }); expect(summary.textContent).toContain(`stamina ${downed.stamina - 1}`); expect(live.firstChild).toBe(firstLiveNode); - send({ version: PROTOCOL_VERSION, type: "snapshot", payload: { ...staminaChanged, tick: 4, fighters: [{ ...staminaChanged.fighters[0], get_up_prompt: "get_up_right" }, staminaChanged.fighters[1]] } }); - expect(live.textContent).toBe("You are down. Count 0. Press the right arrow key on the beat of the count, as the ring closes. One press a count. 5 more to get up."); + send({ version: PROTOCOL_VERSION, type: "snapshot", payload: { ...staminaChanged, tick: 4, fighters: [{ ...staminaChanged.fighters[0], get_up_prompt: "get_up_right", get_up_window_start_tick: 17, get_up_window_end_tick: 23 }, staminaChanged.fighters[1]] } }); + expect(live.textContent).toBe("Right."); expect(live.firstChild).not.toBe(firstLiveNode); app.destroy(); }); diff --git a/web/hands/src/app.ts b/web/hands/src/app.ts index a67fe8ea..2b81dbd7 100644 --- a/web/hands/src/app.ts +++ b/web/hands/src/app.ts @@ -6,7 +6,7 @@ import { DiscordActivity, type ActivityAuthorizer, type DiscordSession } from ". import { CornerPanel } from "./corner"; import { saveStyle, StylePicker } from "./styles"; import { describeError } from "./errors"; -import { getUpStatus, getUpView } from "./getup"; +import { GetUpAnnouncer, getUpStatus, getUpView } from "./getup"; import { HapticFeedback } from "./haptics"; import { BLOOD_VOLUME, injuryLabel } from "./injuries"; import { CONTROL_SECTIONS, controlHint } from "./input/bindings"; @@ -46,6 +46,7 @@ export class HandsApp { private readonly input = new InputController(); private readonly audio = new AudioFeedback(() => this.settings.current); private readonly haptics = new HapticFeedback(() => this.settings.current); + private readonly getUpAnnouncer = new GetUpAnnouncer(); private readonly voice = new AnnouncerVoice(() => this.settings.current); private readonly feedbackEvents = new EventDeduplicator(); /** The player's own punches already heard as they started on screen. */ @@ -415,8 +416,10 @@ export class HandsApp { this.renderer?.setInputLatency(this.network?.inputLatencyMs ?? null); this.renderer?.push(snapshot); const viewer = snapshot.fighters.find((fighter) => fighter.player_id === this.state.playerId); - this.input.setKnockdown(viewer?.is_downed === true); - this.input.setGetUpPrompt(viewer?.is_downed === true ? this.renderer?.getUpView?.prompt?.side ?? viewer.get_up_prompt : null); + // The get-up pads stay up until the get-up panel has gone, so the fight controls never land on top of it. + const getUpShown = viewer?.is_downed === true || (this.renderer?.getUpView ?? null) !== null; + this.input.setKnockdown(getUpShown); + this.input.setGetUpPrompt(getUpShown ? this.renderer?.getUpView?.prompt?.side ?? viewer?.get_up_prompt ?? null : null); if (viewer !== undefined) this.audio.snapshot(snapshot.tick, viewer.stamina, viewer.maximum_stamina, viewer.trauma.head + viewer.trauma.body); this.audio.roundClock(snapshot.phase, snapshot.round_number, snapshot.phase_ticks_remaining, this.state.simulation?.tick_rate ?? 30); this.audio.tension(crowdTension(snapshot)); @@ -493,10 +496,13 @@ export class HandsApp { this.controlsButton.setAttribute("aria-expanded", "false"); } const viewer = this.state.snapshot?.fighters.find((fighter) => fighter.player_id === this.state.playerId); + const downed = this.state.stage === "knockdown" && viewer?.is_downed === true; + if (!downed) this.getUpAnnouncer.reset(); + // While down, the live region says only what changed; the summary holds the count, the instruction and the meter. const liveStatus = spectating ? `Spectating. ${labels[this.state.stage]}` - : this.state.stage === "knockdown" && viewer?.is_downed === true - ? getUpStatus(this.renderer?.getUpView ?? getUpView(viewer, this.state.snapshot?.tick ?? 0, 0, null, null, coarsePointer(), false)) + : downed && viewer !== undefined + ? this.getUpAnnouncer.announce(this.renderer?.getUpView ?? getUpView(viewer, this.state.snapshot?.tick ?? 0, 0, null, null, coarsePointer(), false)) : this.state.stage === "paused" ? "Connection paused." : labels[this.state.stage]; diff --git a/web/hands/src/dev-fixtures.ts b/web/hands/src/dev-fixtures.ts index fa0db775..58db4589 100644 --- a/web/hands/src/dev-fixtures.ts +++ b/web/hands/src/dev-fixtures.ts @@ -154,7 +154,7 @@ function runGetUpFixture(renderer: FightRenderer, intent: SharedActionIntent, to } renderer.push({ tick, phase: counting ? "knockdown" : "fight", round_number: 2, phase_ticks_remaining: counting ? Math.max(0, 10 * COUNT_TICKS - counted) : 3000, fighters: [{ ...one }, { ...two }], referee, events, result: null, checksum: "a".repeat(64) }); events = []; - touch?.setKnockdown(counting && !risen); + touch?.setKnockdown((counting && !risen) || renderer.getUpView !== null); touch?.setGetUpPrompt(renderer.getUpView?.prompt?.side ?? null); (window as unknown as Record).__fixtureRenderer = renderer; }, 1000 / 30); diff --git a/web/hands/src/getup.test.ts b/web/hands/src/getup.test.ts index a406615d..80ceb2e4 100644 --- a/web/hands/src/getup.test.ts +++ b/web/hands/src/getup.test.ts @@ -1,8 +1,9 @@ import { describe, expect, it } from "vitest"; -import { GetUpTracker, getUpLeadIn, getUpStatus, getUpView, judgeGetUpPress, type GetUpVerdict } from "./getup"; +import { GetUpAnnouncer, GetUpTracker, getUpStatus, getUpView, judgeGetUpPress, knockTickOf, type GetUpVerdict } from "./getup"; import { COUNT_TICKS, GET_UP } from "./manifest"; import { fighter } from "./test/fixtures"; import type { CombatEvent, FighterSnapshot } from "./types"; +import table from "./test/get-up-table.json"; const BEAT = 100; const downed = (overrides: Partial = {}): FighterSnapshot => ({ @@ -12,29 +13,48 @@ const downed = (overrides: Partial = {}): FighterSnapshot => ({ const verdict = (detail: GetUpVerdict, amount: number): CombatEvent => ({ event_id: 1, tick: BEAT, kind: "get_up_input", actor_id: "one", target_id: null, amount, detail, blood: 0, direction: 0, action_id: null }); describe("a get-up press is judged as the engine judges it", () => { - // The same distances from the beat as the engine's test_a_get_up_press_is_judged_by_its_distance_from_the_beat. - it.each([ - [getUpLeadIn(BEAT) - 1, null], - [getUpLeadIn(BEAT), "early"], - [BEAT - GET_UP.zoneTicks - 1, "early"], - [BEAT - GET_UP.zoneTicks, "good"], - [BEAT - GET_UP.perfectTicks, "perfect"], - [BEAT, "perfect"], - [BEAT + GET_UP.perfectTicks + 1, "good"], - [BEAT + GET_UP.zoneTicks, "good"], - [BEAT + GET_UP.zoneTicks + 1, "late"], - [BEAT + GET_UP.zoneTicks + GET_UP.lateTicks, "late"], - ])("a press scored on tick %d is %s", (tick, detail) => { - expect(judgeGetUpPress(tick, "get_up_left", "get_up_left", BEAT, 0)?.detail ?? null).toBe(detail); + // get-up-table.json is the engine's own verdict at each tick around a beat (scripts/hands_parity_fixtures.py). + it.each(table.map((row) => row.split(",")))("a press %s ticks from the beat, %s side, meter %s: %s %s", (offset, side, meter, detail, amount) => { + const judged = judgeGetUpPress(BEAT + Number(offset), side === "shown" ? "get_up_left" : "get_up_right", "get_up_left", BEAT, Number(meter)); + expect(judged === null ? ["none", 0] : [judged.detail, judged.amount]).toEqual([detail, Number(amount)]); }); +}); - it("costs a press for the wrong side, never taking the meter below empty", () => { - expect(judgeGetUpPress(BEAT, "get_up_right", "get_up_left", BEAT, 3)).toEqual({ detail: "wrong", amount: -GET_UP.wrong }); - expect(judgeGetUpPress(BEAT, "get_up_right", "get_up_left", BEAT, 0)).toEqual({ detail: "wrong", amount: 0 }); +describe("a downed fighter seen first in a snapshot", () => { + it("is put down on the tick his prompt's beat says, whatever moment of the count the snapshot catches", () => { + // Down on tick 1000: the first prompt's beat is on count two, tick 1040. + for (const tick of [1001, 1019, 1020, 1039, 1055]) { + const seen = downed({ get_up_count: Math.floor((tick - 1000) / COUNT_TICKS), get_up_window_start_tick: 1040 - GET_UP.zoneTicks, get_up_window_end_tick: 1040 + GET_UP.zoneTicks }); + expect(knockTickOf(seen, tick)).toBe(1000); + } }); }); describe("the downed player's own presses", () => { + it("rounds a press on the half tick up, as the server's next tick takes it", () => { + const tracker = new GetUpTracker(); + expect(tracker.press("get_up_left", downed(), BEAT - GET_UP.perfectTicks - 0.5, 0)?.detail).toBe("perfect"); + const late = new GetUpTracker(); + expect(late.press("get_up_left", downed(), BEAT + GET_UP.perfectTicks + 0.5, 0)?.detail).toBe("good"); + }); + + it("lets a double tap do nothing on a slow link, when the next prompt is already answered here", () => { + const tracker = new GetUpTracker(); + const fighter = downed(); + tracker.press("get_up_left", fighter, BEAT, 0); + expect(tracker.press("get_up_right", fighter, BEAT + COUNT_TICKS, 10)?.detail).toBe("perfect"); + // The snapshot is still two prompts behind: neither it nor the one after may be judged again here. + expect(tracker.prompt(fighter, BEAT + COUNT_TICKS + 1)).toBeNull(); + expect(tracker.press("get_up_right", fighter, BEAT + COUNT_TICKS + 1, 20)).toBeNull(); + }); + + it("shows no prompt once the last one is spent, rather than the snapshot's old one", () => { + const tracker = new GetUpTracker(); + const last = downed({ get_up_next_prompt: null }); + tracker.press("get_up_left", last, BEAT, 0); + expect(getUpView(last, BEAT + 1, 10, tracker, null, false, false).prompt).toBeNull(); + }); + it("moves on to the next prompt once he has pressed, before the snapshot does, and lets a double tap do nothing", () => { const tracker = new GetUpTracker(); const fighter = downed(); @@ -73,6 +93,21 @@ describe("the downed player's own presses", () => { expect(tracker.prompt(downed(), BEAT)?.beat).toBe(BEAT); expect(tracker.verdict).toBeNull(); }); + + it("has the live region say only what changed: the new side, the verdict, both together", () => { + const announcer = new GetUpAnnouncer(); + const tracker = new GetUpTracker(); + const first = downed(); + expect(announcer.announce(getUpView(first, BEAT - 10, 0, tracker, null, false, false))).toBe("Left."); + expect(announcer.announce(getUpView(first, BEAT - 5, 50, tracker, null, false, false))).toBe("Left."); + tracker.press("get_up_left", first, BEAT, 100); + expect(announcer.announce(getUpView(first, BEAT + 1, 110, tracker, null, false, false))).toBe("Perfect, plus 2. Right."); + tracker.confirm(verdict("perfect", GET_UP.perfect), 300); + const second = downed({ get_up_prompt: "get_up_right", get_up_next_prompt: "get_up_right", get_up_window_start_tick: BEAT + COUNT_TICKS - GET_UP.zoneTicks, get_up_window_end_tick: BEAT + COUNT_TICKS + GET_UP.zoneTicks }); + expect(announcer.announce(getUpView(second, BEAT + 5, 300, tracker, null, false, false))).toBe("Perfect, plus 2. Right."); + tracker.press("get_up_left", second, BEAT + COUNT_TICKS, 400); + expect(announcer.announce(getUpView(second, BEAT + COUNT_TICKS + 1, 410, tracker, null, false, false))).toBe("Wrong side, minus 1. Right again."); + }); }); describe("the get-up status a screen reader speaks", () => { diff --git a/web/hands/src/getup.ts b/web/hands/src/getup.ts index dee11b3e..4dc5540b 100644 --- a/web/hands/src/getup.ts +++ b/web/hands/src/getup.ts @@ -7,11 +7,16 @@ export interface GetUpJudgement { readonly detail: GetUpVerdict; readonly amount /** A prompt as the press clock sees it: the side to press, the beat it is scored against, and the side after it if known. */ export interface GetUpPrompt { readonly side: GetUpSide; readonly beat: number; readonly next: GetUpSide | null } export interface GetUpShownVerdict extends GetUpJudgement { readonly atMs: number; readonly confirmed: boolean } +/** One of the server's verdicts, with the tick it was scored on. */ +export interface GetUpRecord extends GetUpJudgement { readonly tick: number } +type Writable = { -readonly [K in keyof T]: T[K] }; const VERDICTS: readonly GetUpVerdict[] = ["perfect", "good", "early", "late", "wrong"]; const isVerdict = (detail: string): detail is GetUpVerdict => (VERDICTS as readonly string[]).includes(detail); /** A guessed verdict the server has not answered this long after the press was lost or turned down. */ const PENDING_MS = 1500; +/** The server's verdicts the tracker keeps, newest last. */ +const LOG_LIMIT = 128; /** The first tick a press counts for the prompt on `beat`; one before it is late for the last prompt, or made during the fall. */ export function getUpLeadIn(beat: number): number { @@ -42,6 +47,17 @@ export function getUpRequirement(knockdowns: number, head: number): { readonly k return { knockdowns: fromKnockdowns, head: fromHead, total: fromKnockdowns + fromHead }; } +/** + * The tick a downed fighter went down on, from a snapshot at `tick` alone, for a client that missed the knockdown: the + * count's number puts it within a count, and his prompt's beat, which lands on a number, pins it. + */ +export function knockTickOf(fighter: FighterSnapshot, tick: number): number { + const counted = tick - fighter.get_up_count * COUNT_TICKS; + if (fighter.get_up_prompt === null) return counted; + const beat = fighter.get_up_window_start_tick + GET_UP.zoneTicks; + return counted - ((((counted - beat) % COUNT_TICKS) + COUNT_TICKS) % COUNT_TICKS); +} + /** * The downed player's side of the get-up: which prompt a press made now goes to, the instant verdict on it, and the * server's verdict, which replaces the guess. Presses are judged on the press clock, the fractional tick a press made @@ -51,8 +67,11 @@ export class GetUpTracker { private attemptedBeat = -Infinity; private pending: GetUpShownVerdict | null = null; private shown: GetUpShownVerdict | null = null; + private readonly current: Writable = { side: "get_up_left", beat: 0, next: null }; /** The server's verdicts since the page loaded, by kind. */ readonly counts: Record = { perfect: 0, good: 0, early: 0, late: 0, wrong: 0 }; + /** The latest of the server's verdicts, newest last. */ + readonly log: GetUpRecord[] = []; /** A new knockdown: the last count's attempts and verdicts are gone. */ reset(): void { @@ -65,13 +84,22 @@ export class GetUpTracker { return this.shown; } + /** The prompt a press made now goes to. The object is reused from call to call. */ prompt(fighter: FighterSnapshot, pressTick: number): GetUpPrompt | null { if (fighter.get_up_prompt === null) return null; const beat = fighter.get_up_window_start_tick + GET_UP.zoneTicks; - if (beat > this.attemptedBeat && Math.round(pressTick) <= getUpLastTick(beat)) return { side: fighter.get_up_prompt, beat, next: fighter.get_up_next_prompt }; + if (beat > this.attemptedBeat && Math.round(pressTick) <= getUpLastTick(beat)) return this.set(fighter.get_up_prompt, beat, fighter.get_up_next_prompt); // The snapshot runs a round trip behind the press clock: a prompt already answered here, or one a press made now - // would miss, has given way to the next, whose side the snapshot shows a count ahead. - return fighter.get_up_next_prompt === null ? null : { side: fighter.get_up_next_prompt, beat: beat + COUNT_TICKS, next: null }; + // would miss, has given way to the next, whose side the snapshot shows a count ahead, unless that one is answered too. + if (fighter.get_up_next_prompt === null || beat + COUNT_TICKS <= this.attemptedBeat) return null; + return this.set(fighter.get_up_next_prompt, beat + COUNT_TICKS, null); + } + + private set(side: GetUpSide, beat: number, next: GetUpSide | null): GetUpPrompt { + this.current.side = side; + this.current.beat = beat; + this.current.next = next; + return this.current; } press(side: GetUpSide, fighter: FighterSnapshot, pressTick: number, nowMs: number): GetUpJudgement | null { @@ -91,6 +119,8 @@ export class GetUpTracker { this.pending = null; this.shown = { detail: event.detail, amount: event.amount, atMs, confirmed: true }; this.counts[event.detail] += 1; + this.log.push({ tick: event.tick, detail: event.detail, amount: event.amount }); + if (this.log.length > LOG_LIMIT) this.log.shift(); } /** The meter as shown: the snapshot's, moved by a guessed verdict the server has not answered yet. */ @@ -117,21 +147,39 @@ export interface GetUpView { readonly risen: boolean; } -/** The panel's frame for the downed fighter: `knockTick`, the tick he went down on, puts the count on the press clock. */ -export function getUpView(fighter: FighterSnapshot, pressTick: number, nowMs: number, tracker: GetUpTracker | null, knockTick: number | null, touch: boolean, risen: boolean): GetUpView { - const count = knockTick === null ? fighter.get_up_count : Math.max(0, Math.min(10, Math.floor((pressTick - knockTick) / COUNT_TICKS))); +/** A view to fill frame after frame (getUpView's `into`). */ +export const blankGetUpView = (): Writable => ({ pressTick: 0, count: 0, prompt: null, meter: 0, required: 0, knockdowns: 0, head: 0, verdict: null, nowMs: 0, touch: false, risen: false }); + +/** + * The panel's frame for the downed fighter, filled into `into`: `knockTick`, the tick he went down on, puts the count + * on the press clock. Without a tracker, as a frame drawn from the snapshot alone, the snapshot's prompt is the one. + */ +export function getUpView(fighter: FighterSnapshot, pressTick: number, nowMs: number, tracker: GetUpTracker | null, knockTick: number | null, touch: boolean, risen: boolean, into: Writable = blankGetUpView()): GetUpView { const required = fighter.get_up_required > 0 ? fighter.get_up_required : getUpRequirement(fighter.knockdowns, fighter.trauma.head).total; - return { - pressTick, count, prompt: risen ? null : tracker?.prompt(fighter, pressTick) ?? (fighter.get_up_prompt === null ? null : { side: fighter.get_up_prompt, beat: fighter.get_up_window_start_tick + GET_UP.zoneTicks, next: fighter.get_up_next_prompt }), - meter: risen ? required : tracker?.meter(fighter, nowMs) ?? fighter.get_up_meter, required, knockdowns: fighter.knockdowns, head: fighter.trauma.head, - verdict: tracker?.verdict ?? null, nowMs, touch, risen, - }; + into.pressTick = pressTick; + into.count = knockTick === null ? fighter.get_up_count : Math.max(0, Math.min(10, Math.floor((pressTick - knockTick) / COUNT_TICKS))); + into.prompt = risen + ? null + : tracker !== null + ? tracker.prompt(fighter, pressTick) + : fighter.get_up_prompt === null ? null : { side: fighter.get_up_prompt, beat: fighter.get_up_window_start_tick + GET_UP.zoneTicks, next: fighter.get_up_next_prompt }; + into.meter = risen ? required : tracker?.meter(fighter, nowMs) ?? fighter.get_up_meter; + into.required = required; + into.knockdowns = fighter.knockdowns; + into.head = fighter.trauma.head; + into.verdict = tracker?.verdict ?? null; + into.nowMs = nowMs; + into.touch = touch; + into.risen = risen; + return into; } const SPOKEN: Readonly> = { get_up_left: "left", get_up_right: "right" }; const SPOKEN_VERDICT: Readonly> = { perfect: "perfect", good: "good", early: "early, no score", late: "late, no score", wrong: "wrong side" }; +const capital = (text: string): string => text.charAt(0).toUpperCase() + text.slice(1); +const verdictSentence = (verdict: GetUpJudgement): string => `${SPOKEN_VERDICT[verdict.detail]}${verdict.amount === 0 ? "" : `, ${verdict.amount > 0 ? "plus" : "minus"} ${Math.abs(verdict.amount)}`}.`; -/** The downed player's status for a screen reader: the count, what to press and when, what is left, and what the last press did. */ +/** The downed player's whole state for a screen reader: the count, what to press and when, what is left, and what the last press did. */ export function getUpStatus(view: GetUpView): string { if (view.risen) return `You beat the count at ${view.count}.`; const control = view.touch ? "pad" : "arrow key"; @@ -139,7 +187,43 @@ export function getUpStatus(view: GetUpView): string { const press = prompt === null ? "No more prompts this count." : `Press the ${SPOKEN[prompt.side]} ${control} on the beat of the count, as the ring closes${prompt.next === null ? "" : `; next, ${SPOKEN[prompt.next]}`}. One press a count.`; - const verdict = view.verdict; - const last = verdict === null ? "" : ` Last press: ${SPOKEN_VERDICT[verdict.detail]}${verdict.amount === 0 ? "" : `, ${verdict.amount > 0 ? "plus" : "minus"} ${Math.abs(verdict.amount)}`}.`; + const last = view.verdict === null ? "" : ` Last press: ${verdictSentence(view.verdict)}`; return `You are down. Count ${view.count}. ${press} ${Math.max(0, view.required - view.meter)} more to get up.${last}`; } + +/** + * What the downed player's live region says: only what changed. The side when a new prompt comes ("Left.", or "Left + * again." after another left), the verdict when one arrives ("Perfect, plus 2."), both when they come together; the + * text stays as it is until there is news. + */ +export class GetUpAnnouncer { + private beat = Number.NaN; + private side: GetUpSide | null = null; + private verdictKey = ""; + private text = ""; + + reset(): void { + this.beat = Number.NaN; + this.side = null; + this.verdictKey = this.text = ""; + } + + announce(view: GetUpView): string { + if (view.risen) return "Up."; + let news = ""; + const verdict = view.verdict; + const key = verdict === null ? "" : `${verdict.atMs}:${verdict.detail}:${verdict.amount}`; + if (verdict !== null && key !== this.verdictKey) { + this.verdictKey = key; + news = capital(verdictSentence(verdict)); + } + const prompt = view.prompt; + if (prompt !== null && prompt.beat !== this.beat) { + this.beat = prompt.beat; + news = `${news} ${capital(SPOKEN[prompt.side])}${this.side === prompt.side ? " again" : ""}.`.trim(); + this.side = prompt.side; + } + if (news !== "") this.text = news; + return this.text; + } +} diff --git a/web/hands/src/input/touch.ts b/web/hands/src/input/touch.ts index 25ead12c..2a3e968a 100644 --- a/web/hands/src/input/touch.ts +++ b/web/hands/src/input/touch.ts @@ -11,26 +11,50 @@ import type { HeldDefense, InputFrame, MovementKind, PunchClass } from "../types */ export interface PadRect { readonly x: number; readonly y: number; readonly width: number; readonly height: number } +export interface Insets { readonly top: number; readonly right: number; readonly bottom: number; readonly left: number } +const NO_INSETS: Insets = { top: 0, right: 0, bottom: 0, left: 0 }; /** The get-up pads' labels, which the get-up panel's instruction names. */ export const GET_UP_PAD_LABELS: Readonly> = { get_up_left: "◀ LEFT", get_up_right: "RIGHT ▶" }; -/** How far the get-up pads stand off the bottom: above the plates' guard and poise bars. */ +/** How far the get-up pads stand off the bottom: above the plates' guard and poise bars, as the fight pads do. */ const GET_UP_PADS_BOTTOM = 118; +let measuredInsets: Insets | null = null; +let measuredWidth = 0; +let measuredHeight = 0; + +/** The screen's safe-area insets in CSS pixels, as env(safe-area-inset-*) gives them to the fight pads' CSS. */ +export function safeAreaInsets(): Insets { + if (typeof document === "undefined" || document.body === null) return NO_INSETS; + // A turned phone has other insets: they are measured again whenever the viewport changes. + if (measuredInsets !== null && measuredWidth === window.innerWidth && measuredHeight === window.innerHeight) return measuredInsets; + const probe = document.createElement("div"); + probe.style.cssText = "position:fixed;visibility:hidden;pointer-events:none;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)"; + document.body.append(probe); + const style = getComputedStyle(probe); + measuredInsets = { top: Number.parseFloat(style.paddingTop) || 0, right: Number.parseFloat(style.paddingRight) || 0, bottom: Number.parseFloat(style.paddingBottom) || 0, left: Number.parseFloat(style.paddingLeft) || 0 }; + measuredWidth = window.innerWidth; + measuredHeight = window.innerHeight; + probe.remove(); + return measuredInsets; +} /** * Where the two get-up pads go on a screen this size, in CSS pixels: one pair across the bottom above the plates, - * LEFT under the left thumb and RIGHT under the right. Upright they share the width; on its side they take the two - * corners and leave the middle to the get-up panel. + * LEFT under the left thumb and RIGHT under the right, inside the safe area as the fight pads keep. Upright they share + * the width; on its side they take the two corners and leave the middle to the get-up panel. */ -export function getUpPadRects(width: number, height: number): { readonly left: PadRect; readonly right: PadRect } { +export function getUpPadRects(width: number, height: number, insets: Insets = NO_INSETS): { readonly left: PadRect; readonly right: PadRect } { + const leftEdge = Math.max(12, insets.left); + const rightEdge = width - Math.max(12, insets.right); + const bottom = GET_UP_PADS_BOTTOM + insets.bottom; if (width <= height) { - const padWidth = (width - 36) / 2; - const y = height - GET_UP_PADS_BOTTOM - 96; - return { left: { x: 12, y, width: padWidth, height: 96 }, right: { x: 24 + padWidth, y, width: padWidth, height: 96 } }; + const padWidth = (rightEdge - leftEdge - 12) / 2; + const y = height - bottom - 96; + return { left: { x: leftEdge, y, width: padWidth, height: 96 }, right: { x: rightEdge - padWidth, y, width: padWidth, height: 96 } }; } const padWidth = Math.min(220, Math.round(width * 0.24)); - const padHeight = Math.max(72, Math.min(110, height - GET_UP_PADS_BOTTOM - 120)); - const y = height - GET_UP_PADS_BOTTOM - padHeight; - return { left: { x: 12, y, width: padWidth, height: padHeight }, right: { x: width - 12 - padWidth, y, width: padWidth, height: padHeight } }; + const padHeight = Math.max(72, Math.min(110, height - bottom - 120)); + const y = height - bottom - padHeight; + return { left: { x: leftEdge, y, width: padWidth, height: padHeight }, right: { x: rightEdge - padWidth, y, width: padWidth, height: padHeight } }; } export function coarsePointer(): boolean { @@ -239,7 +263,7 @@ export class TouchInput { } private readonly placeGetUpPads = (): void => { - const rects = getUpPadRects(this.root.clientWidth || window.innerWidth, this.root.clientHeight || window.innerHeight); + const rects = getUpPadRects(this.root.clientWidth || window.innerWidth, this.root.clientHeight || window.innerHeight, safeAreaInsets()); for (const [index, pad] of this.getUpPads.entries()) { const rect = index === 0 ? rects.left : rects.right; Object.assign(pad.style, { left: `${rect.x}px`, top: `${rect.y}px`, width: `${rect.width}px`, height: `${rect.height}px` }); diff --git a/web/hands/src/interpolation.test.ts b/web/hands/src/interpolation.test.ts index c7389700..69cf0217 100644 --- a/web/hands/src/interpolation.test.ts +++ b/web/hands/src/interpolation.test.ts @@ -117,3 +117,54 @@ describe("authoritative interpolation", () => { }); it("deduplicates monotonic cosmetic events", () => { const events = [{ event_id: 2, tick: 1, kind: "hit", actor_id: null, target_id: null, amount: 1, detail: "", blood: 0, direction: 0, action_id: null }, { event_id: 1, tick: 1, kind: "block", actor_id: null, target_id: null, amount: 0, detail: "", blood: 0, direction: 0, action_id: null }, { event_id: 2, tick: 1, kind: "hit", actor_id: null, target_id: null, amount: 1, detail: "", blood: 0, direction: 0, action_id: null }]; const dedupe = new EventDeduplicator(); expect(dedupe.accept(events).map((e) => e.event_id)).toEqual([1, 2]); expect(dedupe.accept(events)).toEqual([]); }); }); + +describe("the press clock", () => { + const TICK_MS = 1000 / 30; + /** + * Feeds 30 Hz snapshots over an ordered link and returns the press clock's worst error, against the server's own + * tick a base downlink behind, over [fromMs, toMs]. `downMs` is that base downlink at a send time and `lost` the + * ticks the server has lost by then; each frame waits up to `jitterMs` more. + */ + function worstError(endMs: number, fromMs: number, downMs: (sentMs: number) => number, lost: (sentMs: number) => number, jitterMs: number): number { + const buffer = new SnapshotBuffer(8, 30, 2); + let seed = 7; + const random = (): number => (seed = (seed * 48271) % 2147483647) / 2147483647; + const arrivals: { at: number; tick: number }[] = []; + let last = 0; + for (let sent = 0; sent < endMs; sent += TICK_MS) { + last = Math.max(last, sent + downMs(sent) + random() * jitterMs); + arrivals.push({ at: last, tick: Math.round(sent / TICK_MS) - lost(sent) }); + } + let worst = 0; + let next = 0; + for (let now = 0; now < endMs; now += 1000 / 60) { + while (next < arrivals.length && arrivals[next]!.at <= now) buffer.push({ ...snapshot(arrivals[next]!.tick) }, arrivals[next++]!.at); + if (now < fromMs) { + buffer.clockTick(now); + continue; + } + const truth = (now - downMs(now - downMs(now))) / TICK_MS - lost(now - downMs(now)); + worst = Math.max(worst, Math.abs(buffer.clockTick(now) - truth)); + } + return worst; + } + + it("stays within a tick of the server on a steady link with 40 ms of jitter", () => { + expect(worstError(10_000, 2000, () => 50, () => 0, 40)).toBeLessThanOrEqual(1); + }); + + it("is back within a tick inside two seconds of the downlink slowing by 100 ms", () => { + expect(worstError(10_000, 5000 + 2000, (sent) => (sent < 5000 ? 50 : 150), () => 0, 40)).toBeLessThanOrEqual(1); + }); + + it("is back within a tick inside two seconds of the server losing five ticks", () => { + expect(worstError(10_000, 5000 + 2000, () => 50, (sent) => (sent < 5000 ? 0 : 5), 40)).toBeLessThanOrEqual(1); + }); + + it("stops a little past the newest snapshot when snapshots stop, as in a paused bout", () => { + const buffer = new SnapshotBuffer(8, 30, 2); + for (let tick = 1; tick <= 90; tick += 1) buffer.push({ ...snapshot(tick) }, tick * TICK_MS + 50); + expect(buffer.clockTick(90 * TICK_MS + 50)).toBeCloseTo(90, 5); + expect(buffer.clockTick(20_000)).toBeLessThanOrEqual(96); + }); +}); diff --git a/web/hands/src/interpolation.ts b/web/hands/src/interpolation.ts index 9f9f2342..2a9bbcdf 100644 --- a/web/hands/src/interpolation.ts +++ b/web/hands/src/interpolation.ts @@ -29,6 +29,11 @@ const RELAX_FRAME_CAP_MS = 100; const OFFSET_DRIFT_PER_PUSH = 0.01; /** Consecutive snapshots this far behind the clock mean the server stopped (a paused bout), not jitter. */ const RESEED_AFTER_PUSHES = 4; +/** + * How far back the press clock looks for the earliest arrival: long enough to find the quickest of a jittery link's + * snapshots, short enough to follow a link that slows down or a server that loses ticks within a couple of seconds. + */ +const PRESS_CLOCK_WINDOW_MS = 1500; /** * Holds recent authoritative snapshots and provides a continuously advancing @@ -50,6 +55,8 @@ export class SnapshotBuffer { private behindPushes = 0; /** Delays recent moments needed, newest last and decreasing, so the first is the largest in the window. */ private readonly needs: { readonly atMs: number; readonly ticks: number }[] = []; + /** The press clock's recent arrivals, oldest first and decreasing, so the first is the earliest in the window. */ + private readonly arrivals: { readonly atMs: number; readonly sample: number }[] = []; constructor(private readonly maximum = 8, private readonly tickRate = 30, private readonly initialDelayTicks = 2) { this.delayTicks = initialDelayTicks; } @@ -70,6 +77,8 @@ export class SnapshotBuffer { this.offsetTicks = Math.max(sample, this.offsetTicks - OFFSET_DRIFT_PER_PUSH); } this.need(nowMs, this.offsetTicks - sample + LATENESS_MARGIN_TICKS); + while (this.arrivals.length > 0 && this.arrivals.at(-1)!.sample <= sample) this.arrivals.pop(); + this.arrivals.push({ atMs: nowMs, sample }); } return true; } @@ -83,6 +92,7 @@ export class SnapshotBuffer { this.lastStarvationMs = -Infinity; this.behindPushes = 0; this.needs.length = 0; + this.arrivals.length = 0; } private need(atMs: number, ticks: number): void { while (this.needs.length > 0 && this.needs.at(-1)!.ticks <= ticks) this.needs.pop(); @@ -94,13 +104,17 @@ export class SnapshotBuffer { } latest(): EngineSnapshot | null { return this.snapshots.at(-1) ?? null; } /** - * The newest snapshot's tick run on to `nowMs` at the tick rate, fractional: the server clock as the earliest arrivals - * showed it, a downlink behind the server. + * The server's tick as of `nowMs`, fractional, a downlink behind it: the earliest arrival of the last moments run on + * at the tick rate. It keeps no longer memory than that, so a link that slows or ticks the server loses show within + * a couple of seconds, and with no snapshots coming (a paused bout) it stops a little past the newest one. */ clockTick(nowMs: number): number { const latest = this.latest(); if (latest === null) return 0; - return this.offsetTicks === null ? latest.tick : (nowMs * this.tickRate) / 1000 + this.offsetTicks; + while (this.arrivals.length > 1 && this.arrivals[0]!.atMs <= nowMs - PRESS_CLOCK_WINDOW_MS) this.arrivals.shift(); + const earliest = this.arrivals[0]; + if (earliest === undefined) return latest.tick; + return Math.min(latest.tick + MAX_DELAY_TICKS, (nowMs * this.tickRate) / 1000 + earliest.sample); } /** Fractional tick to present at `nowMs`, clamped to the buffered range. */ renderTick(nowMs: number): number { @@ -132,7 +146,7 @@ export class SnapshotBuffer { const t = Math.max(0, Math.min(1, (tick - a.tick) / Math.max(1, b.tick - a.tick))); return { ...b, fighters: [presentationFighter(a.fighters[0], b.fighters[0], t), presentationFighter(a.fighters[1], b.fighters[1], t)], referee: presentationReferee(a.referee, b.referee, t) }; } - clear(): void { this.snapshots.length = 0; this.offsetTicks = null; } + clear(): void { this.snapshots.length = 0; this.offsetTicks = null; this.arrivals.length = 0; } } export class EventDeduplicator { private highest = -1; diff --git a/web/hands/src/manifest.ts b/web/hands/src/manifest.ts index 0830ffd9..334a88e4 100644 --- a/web/hands/src/manifest.ts +++ b/web/hands/src/manifest.ts @@ -112,11 +112,7 @@ export const COUNT_TICKS = knockdownRules.count_ticks; /** The engine caps head trauma here and stops a bout at the third knockdown. */ const HEAD_TRAUMA_LIMIT = 1400; const KNOCKDOWN_LIMIT = 3; -/** - * The fewest get-up presses the engine reports, for a fighter on his feet who has never been down and has no head - * trauma, and the most: three knockdowns on a head beaten to the cap. - */ -export const GET_UP_REQUIRED_MIN = knockdownRules.get_up_base; +/** The most get-up presses the engine asks for: three knockdowns on a head beaten to the cap. */ export const GET_UP_REQUIRED_MAX = knockdownRules.get_up_base + KNOCKDOWN_LIMIT * knockdownRules.get_up_per_knockdown + Math.floor(HEAD_TRAUMA_LIMIT / knockdownRules.get_up_trauma_divisor); /** * The get-up prompts, as the engine scores them: one on each number of the count from `firstCount`, its beat the tick diff --git a/web/hands/src/protocol.test.ts b/web/hands/src/protocol.test.ts index 6f19d606..3c42e260 100644 --- a/web/hands/src/protocol.test.ts +++ b/web/hands/src/protocol.test.ts @@ -1,5 +1,5 @@ import manifestJson from "../../../src/intelstream/hands/combat-manifest.json"; -import { GET_UP_REQUIRED_MAX, GET_UP_REQUIRED_MIN } from "./manifest"; +import { GET_UP_REQUIRED_MAX } from "./manifest"; import { decodeBootstrap, decodeServerFrame, decodeToken, encodeCpuRequest, encodeInput, encodeStyleChoice, ProtocolError } from "./protocol"; import { PROTOCOL_VERSION, type CpuLevel, type FighterStyle } from "./types"; import { envelope, publicPlayers, snapshot } from "./test/fixtures"; @@ -105,16 +105,15 @@ describe(`strict protocol v${PROTOCOL_VERSION}`, () => { expect(() => decodeServerFrame(JSON.stringify({ version: PROTOCOL_VERSION, type: "final", match_id: "m", winner_id, method, round: 1, scorecards: cards, ratings: { one: { before: 1, after: 1 }, two: { before: 1, after: 1 } } }))).toThrow(/coherent/u); }); it("allows the most get-up presses the engine can ask for: three knockdowns on a head beaten to the cap", () => { - expect(GET_UP_REQUIRED_MIN).toBe(manifestJson.knockdown.get_up_base); expect(GET_UP_REQUIRED_MAX).toBe(manifestJson.knockdown.get_up_base + 3 * manifestJson.knockdown.get_up_per_knockdown + Math.floor(1400 / manifestJson.knockdown.get_up_trauma_divisor)); }); it("accepts exact fighter-domain boundaries and the private get-up sentinel", () => { const base = snapshot(); - const lower = { ...base.fighters[0], x: -462, y: -462, facing: -1, velocity_x: -7, velocity_y: -7, maximum_stamina: 330, stamina: 0, poise: 0, get_up_required: GET_UP_REQUIRED_MIN, get_up_next_prompt: "get_up_left" }; + const lower = { ...base.fighters[0], x: -462, y: -462, facing: -1, velocity_x: -7, velocity_y: -7, maximum_stamina: 330, stamina: 0, poise: 0, get_up_required: 4, get_up_next_prompt: "get_up_left" }; const upper = { ...base.fighters[1], x: 462, y: 462, facing: 1, velocity_x: 7, velocity_y: 7, maximum_stamina: 1000, stamina: 1000, poise: 600, get_up_required: GET_UP_REQUIRED_MAX }; - expect(decodeServerFrame(JSON.stringify({ version: PROTOCOL_VERSION, type: "snapshot", payload: { ...base, fighters: [lower, upper] } }))).toMatchObject({ type: "snapshot", payload: { fighters: [{ get_up_required: GET_UP_REQUIRED_MIN, get_up_next_prompt: "get_up_left" }, { get_up_required: GET_UP_REQUIRED_MAX, get_up_next_prompt: null }] } }); + expect(decodeServerFrame(JSON.stringify({ version: PROTOCOL_VERSION, type: "snapshot", payload: { ...base, fighters: [lower, upper] } }))).toMatchObject({ type: "snapshot", payload: { fighters: [{ get_up_required: 4, get_up_next_prompt: "get_up_left" }, { get_up_required: GET_UP_REQUIRED_MAX, get_up_next_prompt: null }] } }); const redactedOpponent = { ...upper, get_up_required: 0 }; - expect(decodeServerFrame(JSON.stringify({ version: PROTOCOL_VERSION, type: "snapshot", payload: { ...base, fighters: [lower, redactedOpponent] } }))).toMatchObject({ payload: { fighters: [{ get_up_required: GET_UP_REQUIRED_MIN }, { get_up_required: 0 }] } }); + expect(decodeServerFrame(JSON.stringify({ version: PROTOCOL_VERSION, type: "snapshot", payload: { ...base, fighters: [lower, redactedOpponent] } }))).toMatchObject({ payload: { fighters: [{ get_up_required: 4 }, { get_up_required: 0 }] } }); // A fighter on his feet is sent what a knockdown would ask of him now: with no knockdowns, his head trauma's share alone. const hurtStanding = { ...base.fighters[0], get_up_required: 1 }; expect(decodeServerFrame(JSON.stringify({ version: PROTOCOL_VERSION, type: "snapshot", payload: { ...base, fighters: [hurtStanding, base.fighters[1]] } }))).toMatchObject({ payload: { fighters: [{ get_up_required: 1 }, {}] } }); diff --git a/web/hands/src/protocol.ts b/web/hands/src/protocol.ts index efdae57f..eecb83ee 100644 --- a/web/hands/src/protocol.ts +++ b/web/hands/src/protocol.ts @@ -7,7 +7,7 @@ import { type RefereeSnapshot, type Stance, type Target, type TokenResponse, type TraumaSnapshot, } from "./types"; import { BLOOD_VOLUME, INJURY_IDS, type InjuryId } from "./injuries"; -import { GET_UP_REQUIRED_MAX, GET_UP_REQUIRED_MIN, MAX_SPEED } from "./manifest"; +import { GET_UP_REQUIRED_MAX, MAX_SPEED } from "./manifest"; export class ProtocolError extends Error { override name = "ProtocolError" } const MAX_INT = 2_147_483_647; @@ -168,7 +168,6 @@ function fighter(value: unknown): FighterSnapshot { const facingX = integer(o.facing_x, "facing_x", -1000, 1000); const facingY = integer(o.facing_y, "facing_y", -1000, 1000); if (facingX === 0 && facingY === 0) throw new ProtocolError("invalid facing vector"); - if (getUpRequired !== 0 && getUpRequired < GET_UP_REQUIRED_MIN) throw new ProtocolError("invalid get-up requirement"); return { player_id: string(o.player_id, "player_id"), x: integer(o.x, "x", -462, 462), y: integer(o.y, "y", -462, 462), facing, facing_x: facingX, facing_y: facingY, velocity_x: velocity(o.velocity_x, "velocity_x"), velocity_y: velocity(o.velocity_y, "velocity_y"), diff --git a/web/hands/src/render/caption.test.ts b/web/hands/src/render/caption.test.ts index f1597c19..afb003d2 100644 --- a/web/hands/src/render/caption.test.ts +++ b/web/hands/src/render/caption.test.ts @@ -287,9 +287,10 @@ describe("the touch pads, as style.css lays them out", () => { expect(declarations(sheet, ".touch-pad,.touch-mod,.touch-move")).toContain("pointer-events:auto"); }); - it("show only the get-up pads while the player is down, where they stood", () => { - // Hidden, not removed: the get-up pads keep their place under his thumbs, and a held guard still hears its finger lift. - expect(declarations(sheet, ".touch-controls.knockdown .touch-move,.touch-controls.knockdown .touch-mod")).toBe("visibility:hidden"); + it("give way to the two get-up pads while the player is down, hidden rather than removed", () => { + // Hidden, not removed: a finger holding the guard or the stick as he goes down is still heard to lift. + expect(declarations(sheet, ".knockdown .touch-pads,.knockdown .touch-stick")).toBe("visibility:hidden"); + expect(declarations(sheet, ".knockdown .touch-getup")).toBe("display:block"); }); }); diff --git a/web/hands/src/render/hud.ts b/web/hands/src/render/hud.ts index 9fbde248..e011507b 100644 --- a/web/hands/src/render/hud.ts +++ b/web/hands/src/render/hud.ts @@ -1,7 +1,7 @@ import { COUNT_TICKS, EYE_SHUT_TRAUMA, GET_UP, GUARD_BLOCK_MINIMUM, GUARD_REARM } from "../manifest"; -import { getUpLeadIn, getUpRequirement, getUpView, type GetUpSide, type GetUpVerdict, type GetUpView } from "../getup"; +import { getUpLeadIn, getUpView, type GetUpSide, type GetUpVerdict, type GetUpView } from "../getup"; import { GET_UP_KEYS } from "../input/bindings"; -import { GET_UP_PAD_LABELS, getUpPadRects } from "../input/touch"; +import { GET_UP_PAD_LABELS, getUpPadRects, safeAreaInsets } from "../input/touch"; import { BLOOD_VOLUME, FINISH_TICKS, bloodStage, deathLabel, fatalityFor, fatalityLabel, fatalityOf, injuryKind, injuryLabel, type DeathCause, type InjuryId, type InjuryKind } from "../injuries"; import { isDebut, recordLine } from "../record"; import { styleTag } from "../styles"; @@ -589,7 +589,7 @@ const PLATE_BARS_TOP = 84 + 12 + 16; * through the count. On a short screen it gives up height, down to its shortest. */ export function getUpPanel(width: number, height: number, touch = false): PanelRect { - const pads = touch ? getUpPadRects(width, height) : null; + const pads = touch ? getUpPadRects(width, height, safeAreaInsets()) : null; const upright = width <= height; const bottom = pads !== null && upright ? Math.min(height - PLATE_BARS_TOP, pads.left.y - 8) : height - PLATE_BARS_TOP; const room = pads !== null && !upright ? pads.right.x - pads.left.x - pads.left.width - 24 : width - 24; @@ -619,6 +619,10 @@ const TARGET_LOOK = { good: { ring: "#7dffa8", disc: "#1d6a3f", arrow: "#e4ffee" }, perfect: { ring: "#ffd24a", disc: "#7a5a08", arrow: "#fff8dc" }, } as const; +/** The dashes of the waiting ring and of the next side's circle, and none. */ +const WAITING_DASH = [6, 7]; +const NEXT_DASH = [3, 3]; +const NO_DASH: number[] = []; function ring(ctx: CanvasRenderingContext2D, x: number, y: number, radius: number): void { ctx.beginPath(); @@ -724,12 +728,12 @@ function drawGetUpPanel(ctx: CanvasRenderingContext2D, panel: PanelRect, view: G ctx.font = `900 ${Math.round(64 * lane)}px Inter, system-ui, sans-serif`; ctx.fillText(GET_UP_ARROWS[prompt.side], tx, ty + 22 * lane); if (waiting) { - ctx.setLineDash([6, 7]); + ctx.setLineDash(WAITING_DASH); ctx.lineWidth = 2.5; ctx.strokeStyle = "rgba(200,211,230,0.45)"; ring(ctx, tx, ty, target + travel); ctx.stroke(); - ctx.setLineDash([]); + ctx.setLineDash(NO_DASH); state = "GET READY"; } else if (toBeat >= -zone - GET_UP.lateTicks) { ctx.lineWidth = Math.max(3, 5 * lane); @@ -742,12 +746,12 @@ function drawGetUpPanel(ctx: CanvasRenderingContext2D, panel: PanelRect, view: G if (prompt.next !== null) { const nx = tx + target + travel + 36 * lane; ctx.globalAlpha = 0.5; - ctx.setLineDash([3, 3]); + ctx.setLineDash(NEXT_DASH); ctx.lineWidth = 1.5; ctx.strokeStyle = "#aebbd0"; ring(ctx, nx, ty, 18 * lane); ctx.stroke(); - ctx.setLineDash([]); + ctx.setLineDash(NO_DASH); ctx.fillStyle = "#aebbd0"; ctx.font = `700 ${Math.round(22 * lane)}px Inter, system-ui, sans-serif`; ctx.fillText(GET_UP_ARROWS[prompt.next], nx, ty + 8 * lane); @@ -806,8 +810,9 @@ function drawGetUpPanel(ctx: CanvasRenderingContext2D, panel: PanelRect, view: G ctx.fillStyle = left === 0 ? "#7dffa8" : "#eaf1ff"; ctx.font = "800 15px Inter, system-ui, sans-serif"; ctx.fillText(left === 0 ? "UP!" : `${left} MORE`, x + width - 16, y + height - 20); - const parts = getUpRequirement(view.knockdowns, view.head); - const why = `${view.required} to get up: ${ORDINALS[view.knockdowns] ?? `${view.knockdowns}th`} knockdown ${parts.knockdowns}${parts.head > 0 ? ` + head damage ${parts.head}` : ""} · PERFECT counts ${GET_UP.perfect}`; + const fromKnockdowns = GET_UP.base + GET_UP.perKnockdown * view.knockdowns; + const fromHead = view.required - fromKnockdowns; + const why = `${view.required} to get up: ${ORDINALS[view.knockdowns] ?? `${view.knockdowns}th`} knockdown ${fromKnockdowns}${fromHead > 0 ? ` + head damage ${fromHead}` : ""} · PERFECT counts ${GET_UP.perfect}`; ctx.textAlign = "left"; ctx.fillStyle = "#93a3bd"; ctx.font = "600 10px Inter, system-ui, sans-serif"; diff --git a/web/hands/src/render/renderer-getup.test.ts b/web/hands/src/render/renderer-getup.test.ts new file mode 100644 index 00000000..874bece1 --- /dev/null +++ b/web/hands/src/render/renderer-getup.test.ts @@ -0,0 +1,37 @@ +import { describe, expect, it, vi } from "vitest"; +import { GetUpTracker, blankGetUpView } from "../getup"; +import { SnapshotBuffer } from "../interpolation"; +import { GET_UP } from "../manifest"; +import { fighter, snapshot } from "../test/fixtures"; +import { FightRenderer } from "./renderer"; + +const prototype = FightRenderer.prototype as unknown as Record) => void>; + +/** Just what the renderer's get-up frame reads, with the viewer down on tick 100 and the clock at `nowMs`. */ +function downedRenderer(nowMs: number, reconnectMs: number): Record { + const buffer = new SnapshotBuffer(8, 30, 2); + for (let tick = 100; tick <= 130; tick += 1) { + const down = { ...fighter("one"), is_downed: true, knockdowns: 1, get_up_prompt: "get_up_left" as const, get_up_next_prompt: "get_up_right" as const, get_up_required: 4, get_up_count: Math.floor((tick - 100) / 20), get_up_window_start_tick: 140 - GET_UP.zoneTicks, get_up_window_end_tick: 140 + GET_UP.zoneTicks }; + buffer.push({ ...snapshot(tick), phase: "knockdown", fighters: [down, fighter("two")] }, (tick * 1000) / 30); + } + return { + buffer, viewerId: "one", manualClock: true, lastManualTime: nowMs, getUpRisenAt: -Infinity, replay: null, reconnectMs, + getUp: new GetUpTracker(), getUpKnockTick: 100, touchControls: false, getUpDraft: blankGetUpView(), getUpBeatCount: -1, getUpFrame: null, + inputLatencyMs: 0, simulation: { tick_rate: 30 }, onGetUpBeat: vi.fn(), pressTick: prototype.pressTick, + }; +} + +describe("the get-up panel while the bout is paused", () => { + it("goes away and plays no beats, as the server has stopped counting", () => { + const running = downedRenderer((130 * 1000) / 30, 0); + prototype.updateGetUp!.call(running); + expect(running.getUpFrame).not.toBeNull(); + const paused = downedRenderer((130 * 1000) / 30, 4000); + for (let frame = 0; frame < 120; frame += 1) { + paused.lastManualTime = ((130 + frame) * 1000) / 30; + prototype.updateGetUp!.call(paused); + } + expect(paused.getUpFrame).toBeNull(); + expect(paused.onGetUpBeat).not.toHaveBeenCalled(); + }); +}); diff --git a/web/hands/src/render/renderer.ts b/web/hands/src/render/renderer.ts index ac2c71f2..5c4bd939 100644 --- a/web/hands/src/render/renderer.ts +++ b/web/hands/src/render/renderer.ts @@ -4,7 +4,7 @@ import { RenderPass } from "three/examples/jsm/postprocessing/RenderPass.js"; import { UnrealBloomPass } from "three/examples/jsm/postprocessing/UnrealBloomPass.js"; import { OutputPass } from "three/examples/jsm/postprocessing/OutputPass.js"; import { ShaderPass } from "three/examples/jsm/postprocessing/ShaderPass.js"; -import { GetUpTracker, getUpView, type GetUpJudgement, type GetUpSide, type GetUpVerdict, type GetUpView } from "../getup"; +import { GetUpTracker, blankGetUpView, getUpView, knockTickOf, type GetUpJudgement, type GetUpRecord, type GetUpSide, type GetUpVerdict, type GetUpView } from "../getup"; import { EventDeduplicator, SnapshotBuffer } from "../interpolation"; import { coarsePointer } from "../input/touch"; import { FIGHTER_RADIUS, REST_CORNER_OFFSET, RING_CORNER_REACH, RING_HALF_HEIGHT, RING_HALF_WIDTH, punchTiming, styleTiming } from "../manifest"; @@ -1328,6 +1328,10 @@ export class FightRenderer { private getUpRisenAt = -Infinity; private getUpBeatCount = -1; private getUpFrame: GetUpView | null = null; + /** The one view the panel is drawn from, filled each frame. */ + private readonly getUpDraft = blankGetUpView(); + /** The viewer was on the canvas in the last snapshot. */ + private getUpWasDown = false; /** Called on each number of the count on the press clock while the viewer is down: the beat a press is timed to. */ onGetUpBeat: ((count: number) => void) | null = null; /** The slow-connection warning is up (lagWarning). */ @@ -2503,17 +2507,23 @@ export class FightRenderer { return this.getUp.counts; } + /** The latest of the server's verdicts on the viewer's get-up presses, with the ticks they were scored on. */ + get getUpLog(): readonly GetUpRecord[] { + return this.getUp.log; + } + private updateGetUp(): void { const latest = this.buffer.latest(); const fighter = latest?.fighters.find((candidate) => candidate.player_id === this.viewerId); const now = this.manualClock ? this.lastManualTime : performance.now(); const risen = now - this.getUpRisenAt < GET_UP_RISEN_MS; - if (latest?.phase !== "knockdown" || fighter === undefined || this.replay !== null || !(fighter.is_downed || risen)) { + // A paused bout stops counting: no panel and no beats until it resumes. + if (latest?.phase !== "knockdown" || fighter === undefined || this.replay !== null || this.reconnectMs > 0 || !(fighter.is_downed || risen)) { this.getUpFrame = null; this.getUpBeatCount = -1; return; } - const frame = getUpView(fighter, this.pressTick(now), now, this.getUp, this.getUpKnockTick, this.touchControls, risen); + const frame = getUpView(fighter, this.pressTick(now), now, this.getUp, this.getUpKnockTick, this.touchControls, risen, this.getUpDraft); if (!risen && frame.count !== this.getUpBeatCount) { if (this.getUpBeatCount >= 0 && frame.count >= 1 && frame.count <= 9) this.onGetUpBeat?.(frame.count); this.getUpBeatCount = frame.count; @@ -2615,6 +2625,14 @@ export class FightRenderer { if (event.kind === "get_up_input" && event.actor_id === this.viewerId) this.getUp.confirm(event, arrived); if (event.kind === "get_up" && event.actor_id === this.viewerId) this.getUpRisenAt = arrived; } + // Down without the knockdown in hand, as after a reconnect across it: the snapshot says when he went down. + const viewer = snapshot.fighters.find((fighter) => fighter.player_id === this.viewerId); + if (viewer?.is_downed === true && !this.getUpWasDown && !accepted.some((event) => event.kind === "knockdown" && event.target_id === this.viewerId)) { + this.getUp.reset(); + this.getUpKnockTick = knockTickOf(viewer, snapshot.tick); + this.getUpRisenAt = -Infinity; + } + this.getUpWasDown = viewer?.is_downed === true; this.commentary.observe(snapshot, accepted, this.players, this.simulation.tick_rate, this.frameSeconds); // The player's own punch, thrown on the press's time, has already reached the opponent on screen when the server's word // of its contact arrives: that contact is shown at once, not when the delayed clock reaches it. Knockdowns and the end diff --git a/web/hands/src/style.css b/web/hands/src/style.css index d1f19b60..ca7ffa76 100644 --- a/web/hands/src/style.css +++ b/web/hands/src/style.css @@ -3,9 +3,9 @@ .model-credit{margin:2px 0 0;font-size:11px;line-height:1.35;color:#9cabc1}.model-credit a{color:#c7d5eb} -.touch-controls{position:absolute;inset:0;pointer-events:none;z-index:3;font-family:Inter,system-ui,sans-serif;user-select:none;-webkit-user-select:none}.touch-controls.disabled{display:none}.touch-controls.resting{opacity:.4}.touch-stick{position:absolute;left:0;top:calc(max(8px,env(safe-area-inset-top)) + 48px);bottom:0;width:46%;pointer-events:auto;touch-action:none}.touch-stick-base{position:absolute;width:132px;height:132px;margin:-66px 0 0 -66px;border-radius:50%;border:2px solid #ffffff55;background:#0a121f66;opacity:0;transition:opacity .12s}.touch-stick-base.active{opacity:1}.touch-stick-knob{position:absolute;left:50%;top:50%;width:56px;height:56px;border-radius:50%;background:#f1cc72cc;transform:translate(-50%,-50%);box-shadow:0 2px 10px #0008}.touch-pads{position:absolute;right:max(12px,env(safe-area-inset-right));bottom:max(118px,calc(env(safe-area-inset-bottom) + 118px));display:grid;gap:8px;pointer-events:none;touch-action:none}.touch-pad,.touch-mod,.touch-move{pointer-events:auto}.touch-grid{display:grid;grid-template-columns:repeat(2,92px);gap:6px}.touch-pad{position:relative;height:56px;border-radius:12px;border:1px solid #ffffff44;background:linear-gradient(90deg,#1d4ed8aa 0 50%,#b91c1caa 50% 100%);color:#fff;font-weight:800;font-size:11px;letter-spacing:.01em;display:flex;align-items:center;justify-content:space-between;padding:0 7px;cursor:pointer}.touch-pad .touch-pad-hand{font-size:10px;opacity:.8}.touch-pad .touch-pad-label{font-size:10px}.touch-pad.pressed{filter:brightness(1.5);transform:scale(.96)}.touch-mods{display:grid;grid-template-columns:repeat(2,92px);gap:6px}.touch-mod{height:32px;padding:0;border-radius:9px;border:1px solid #ffffff44;background:#0a121fcc;color:#e8effc;font-weight:800;font-size:11px;letter-spacing:.06em;cursor:pointer}.touch-mod.pressed{background:#f1cc72;color:#081018}.touch-controls.knockdown .touch-pad{background:linear-gradient(90deg,#1f8a4caa 0 50%,#1f8a4caa 50% 100%)}.touch-moves{display:grid;grid-template-columns:repeat(3,1fr);grid-template-areas:"sl wv sr" "pl cl cl";gap:6px;margin-bottom:4px}.touch-move{height:30px;padding:0;border-radius:9px;border:1px solid #7fd3c766;background:#0a1a20cc;color:#d8f3ee;font-weight:800;font-size:10px;letter-spacing:.05em;white-space:nowrap;cursor:pointer}.touch-move.pressed{background:#f1cc72;color:#081018}.touch-move[data-move=slip_left]{grid-area:sl}.touch-move[data-move=weave]{grid-area:wv}.touch-move[data-move=slip_right]{grid-area:sr}.touch-move[data-move=pull]{grid-area:pl}.touch-move[data-move=clinch]{grid-area:cl}.touch-controls.knockdown .touch-move,.touch-controls.knockdown .touch-mod{visibility:hidden}@media(orientation:landscape){.touch-pads{grid-template-columns:auto auto;grid-template-areas:"moves mods" "moves grid";column-gap:12px}.touch-moves{grid-area:moves;align-self:end;margin-bottom:0;grid-template-columns:repeat(2,58px);grid-template-areas:"sl sr" "wv pl" "cl cl"}.touch-mods{grid-area:mods}.touch-grid{grid-area:grid}}@media(orientation:landscape) and (max-height:350px){.touch-pads{bottom:max(112px,calc(env(safe-area-inset-bottom) + 112px));row-gap:6px}.touch-grid,.touch-mods,.touch-moves{gap:4px}.touch-pad{height:44px}.touch-mod,.touch-move{height:26px}}@media(pointer:fine) and (hover:hover){.touch-controls{display:none}} +.touch-controls{position:absolute;inset:0;pointer-events:none;z-index:3;font-family:Inter,system-ui,sans-serif;user-select:none;-webkit-user-select:none}.touch-controls.disabled{display:none}.touch-controls.resting{opacity:.4}.touch-stick{position:absolute;left:0;top:calc(max(8px,env(safe-area-inset-top)) + 48px);bottom:0;width:46%;pointer-events:auto;touch-action:none}.touch-stick-base{position:absolute;width:132px;height:132px;margin:-66px 0 0 -66px;border-radius:50%;border:2px solid #ffffff55;background:#0a121f66;opacity:0;transition:opacity .12s}.touch-stick-base.active{opacity:1}.touch-stick-knob{position:absolute;left:50%;top:50%;width:56px;height:56px;border-radius:50%;background:#f1cc72cc;transform:translate(-50%,-50%);box-shadow:0 2px 10px #0008}.touch-pads{position:absolute;right:max(12px,env(safe-area-inset-right));bottom:max(118px,calc(env(safe-area-inset-bottom) + 118px));display:grid;gap:8px;pointer-events:none;touch-action:none}.touch-pad,.touch-mod,.touch-move{pointer-events:auto}.touch-grid{display:grid;grid-template-columns:repeat(2,92px);gap:6px}.touch-pad{position:relative;height:56px;border-radius:12px;border:1px solid #ffffff44;background:linear-gradient(90deg,#1d4ed8aa 0 50%,#b91c1caa 50% 100%);color:#fff;font-weight:800;font-size:11px;letter-spacing:.01em;display:flex;align-items:center;justify-content:space-between;padding:0 7px;cursor:pointer}.touch-pad .touch-pad-hand{font-size:10px;opacity:.8}.touch-pad .touch-pad-label{font-size:10px}.touch-pad.pressed{filter:brightness(1.5);transform:scale(.96)}.touch-mods{display:grid;grid-template-columns:repeat(2,92px);gap:6px}.touch-mod{height:32px;padding:0;border-radius:9px;border:1px solid #ffffff44;background:#0a121fcc;color:#e8effc;font-weight:800;font-size:11px;letter-spacing:.06em;cursor:pointer}.touch-mod.pressed{background:#f1cc72;color:#081018}.touch-moves{display:grid;grid-template-columns:repeat(3,1fr);grid-template-areas:"sl wv sr" "pl cl cl";gap:6px;margin-bottom:4px}.touch-move{height:30px;padding:0;border-radius:9px;border:1px solid #7fd3c766;background:#0a1a20cc;color:#d8f3ee;font-weight:800;font-size:10px;letter-spacing:.05em;white-space:nowrap;cursor:pointer}.touch-move.pressed{background:#f1cc72;color:#081018}.touch-move[data-move=slip_left]{grid-area:sl}.touch-move[data-move=weave]{grid-area:wv}.touch-move[data-move=slip_right]{grid-area:sr}.touch-move[data-move=pull]{grid-area:pl}.touch-move[data-move=clinch]{grid-area:cl}@media(orientation:landscape){.touch-pads{grid-template-columns:auto auto;grid-template-areas:"moves mods" "moves grid";column-gap:12px}.touch-moves{grid-area:moves;align-self:end;margin-bottom:0;grid-template-columns:repeat(2,58px);grid-template-areas:"sl sr" "wv pl" "cl cl"}.touch-mods{grid-area:mods}.touch-grid{grid-area:grid}}@media(orientation:landscape) and (max-height:350px){.touch-pads{bottom:max(112px,calc(env(safe-area-inset-bottom) + 112px));row-gap:6px}.touch-grid,.touch-mods,.touch-moves{gap:4px}.touch-pad{height:44px}.touch-mod,.touch-move{height:26px}}@media(pointer:fine) and (hover:hover){.touch-controls{display:none}} .corner{position:absolute;z-index:3;left:50%;bottom:max(124px,calc(env(safe-area-inset-bottom) + 112px));transform:translateX(-50%);display:grid;gap:8px;width:min(660px,calc(100vw - 24px));padding:10px 12px 9px;background:#07101aeb;border:1px solid #f1cc7259;border-radius:3px;box-shadow:0 10px 30px #0009;text-align:center}.corner[hidden]{display:none}.corner-title{margin:0;color:#f1cc72;font-weight:800;font-size:12px;letter-spacing:.18em}.corner-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.corner-choices button{display:grid;grid-template-columns:auto 1fr;align-items:center;column-gap:9px;row-gap:2px;padding:8px 10px;text-align:left;color:#eaf1ff;background:#172334;border:1px solid #ffffff2e;border-radius:3px;cursor:pointer;font:inherit}.corner-choices kbd{grid-row:span 2;display:grid;place-items:center;width:26px;height:26px;border-radius:3px;background:#0b1520;border:1px solid #ffffff38;color:#f1cc72;font:800 13px ui-monospace,monospace}.corner-choices strong{font-size:13px}.corner-choices span{font-size:11px;color:#aebbd0}.corner-choices button:hover:not(:disabled){border-color:#f1cc72aa}.corner-choices button:disabled{cursor:default;opacity:.42}.corner-choices button[data-picked]{opacity:1;border-color:#f1cc72;background:#272515;box-shadow:inset 0 0 0 1px #f1cc72}.corner-status{margin:0;font-size:12px;color:#d7e0ee}@media(max-width:560px){.corner{bottom:max(112px,calc(env(safe-area-inset-bottom) + 100px));padding:8px 9px}.corner-choices{grid-template-columns:1fr;gap:6px}.corner-choices button{padding:6px 9px}}@media(max-height:460px){.corner{bottom:max(116px,calc(env(safe-area-inset-bottom) + 104px));width:min(600px,calc(100vw - 24px));padding:5px 8px;gap:4px}.corner-title{font-size:10px}.corner-choices{gap:6px}.corner-choices button{padding:4px 7px;column-gap:7px}.corner-choices kbd{width:22px;height:22px;font-size:12px}.corner-choices strong{font-size:12px}.corner-choices span{font-size:10px}.corner-status{font-size:11px}} .cpu-picker{pointer-events:auto;display:grid;justify-items:center;gap:8px;width:min(90vw,500px);padding:10px 12px;background:#07101adf;border:1px solid #ffffff1f;border-radius:3px}.cpu-picker[hidden]{display:none}.cpu-picker p{margin:0;font-size:13px;font-weight:800;letter-spacing:.04em;color:#f1cc72}.cpu-levels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;width:100%}.cpu-levels button{display:grid;align-content:center;gap:3px;min-height:52px;padding:8px 6px;color:#eaf1ff;background:#172334;border:1px solid #ffffff2e;border-radius:3px;cursor:pointer;font:inherit;text-align:center}.cpu-levels button strong{font-size:14px;letter-spacing:.03em}.cpu-levels button span{font-size:11px;line-height:1.25;color:#aebbd0}.cpu-levels button:hover,.cpu-levels button:focus-visible{border-color:#f1cc72;outline:none}@media(max-height:480px){.cpu-picker{gap:5px;padding:6px 10px}.cpu-levels button{min-height:40px;padding:5px 6px;gap:1px}.cpu-levels button strong{font-size:13px}.cpu-levels button span{font-size:10px;line-height:1.15}} .overlay[data-touch-hint]{left:max(12px,env(safe-area-inset-left));transform:none;max-width:min(44vw,300px,calc(100vw - 226px - env(safe-area-inset-left) - env(safe-area-inset-right)));justify-items:start;text-align:left}@media(orientation:landscape){.overlay[data-touch-hint]{max-width:min(44vw,300px,calc(100vw - 360px - env(safe-area-inset-left) - env(safe-area-inset-right)))}}.overlay[data-touch-hint] .hint{font-size:11px;line-height:1.35}.panel h3{margin:12px 0 6px;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#f1cc72}.panel h3:first-of-type{margin-top:4px}details.diagnostics summary{cursor:pointer;font-size:13px;font-weight:700;color:#f1cc72}details.diagnostics[open] summary{margin-bottom:6px} -.touch-getup{display:none;position:absolute;inset:0;pointer-events:none}.knockdown .touch-getup{display:block}.knockdown .touch-pads,.knockdown .touch-stick{display:none}.touch-getup-pad{position:absolute;pointer-events:auto;touch-action:none;border-radius:16px;border:2px solid #ffffff40;background:#1d2a3c;color:#eaf1ff;font:900 22px Inter,system-ui,sans-serif;letter-spacing:.06em;opacity:.4;cursor:pointer}.touch-getup-pad.wanted{opacity:1;background:#23a85c;color:#fff;border-color:#d8ffe6;box-shadow:0 0 0 3px #7dffa8,0 6px 18px #0009} +.touch-getup{display:none;position:absolute;inset:0;pointer-events:none}.knockdown .touch-getup{display:block}.knockdown .touch-pads,.knockdown .touch-stick{visibility:hidden}.touch-getup-pad{position:absolute;pointer-events:auto;touch-action:none;border-radius:16px;border:2px solid #ffffff40;background:#1d2a3c;color:#eaf1ff;font:900 22px Inter,system-ui,sans-serif;letter-spacing:.06em;opacity:.4;cursor:pointer}.touch-getup-pad.wanted{opacity:1;background:#23a85c;color:#fff;border-color:#d8ffe6;box-shadow:0 0 0 3px #7dffa8,0 6px 18px #0009} .style-picker{position:absolute;z-index:3;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;gap:10px;width:min(980px,calc(100vw - 24px));max-height:calc(100% - 132px);overflow:auto;padding:12px 14px;background:#07101af2;border:1px solid #f1cc7266;border-radius:3px;box-shadow:0 14px 40px #000b;text-align:center}.style-picker[hidden]{display:none}.style-picker header{display:flex;justify-content:space-between;align-items:baseline;gap:12px}.style-title{margin:0;color:#f1cc72;font-weight:800;font-size:13px;letter-spacing:.18em}.style-clock{margin:0;color:#eaf1ff;font:800 15px ui-monospace,monospace}.style-cards{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.style-cards button{display:grid;grid-template-rows:auto auto 1fr auto;gap:5px;padding:10px;text-align:left;color:#eaf1ff;background:#172334;border:1px solid #ffffff2e;border-radius:3px;cursor:pointer;font:inherit}.style-cards kbd{justify-self:start;display:grid;place-items:center;width:22px;height:22px;border-radius:3px;background:#0b1520;border:1px solid #ffffff38;color:#f1cc72;font:800 12px ui-monospace,monospace}.style-cards strong{font-size:14px}.style-cards span{font-size:11px;line-height:1.35;color:#aebbd0}.style-stats{list-style:none;margin:2px 0 0;padding:0;display:grid;gap:3px}.style-stats li{display:grid;grid-template-columns:66px 1fr;align-items:center;gap:6px}.style-stats small{font-size:9px;letter-spacing:.05em;color:#8fa3c8;text-transform:uppercase}.style-stats i{display:block;height:5px;border-radius:2px;background:linear-gradient(90deg,#f1cc72,#d98a3a)}.style-stats i[data-value="1"]{width:20%}.style-stats i[data-value="2"]{width:40%}.style-stats i[data-value="3"]{width:60%}.style-stats i[data-value="4"]{width:80%}.style-stats i[data-value="5"]{width:100%}.style-cards button:hover:not(:disabled){border-color:#f1cc72aa}.style-cards button:disabled{cursor:default;opacity:.5}.style-cards button[data-chosen]{opacity:1;border-color:#f1cc72;background:#272515;box-shadow:inset 0 0 0 1px #f1cc72}.style-status{margin:0;font-size:12px;color:#d7e0ee}@media(max-width:700px){.style-picker{top:auto;bottom:max(12px,env(safe-area-inset-bottom));transform:translateX(-50%);max-height:calc(100% - 96px);padding:9px 10px}.style-cards{grid-template-columns:1fr 1fr;gap:6px}.style-cards button{grid-template-rows:auto 1fr;padding:8px 9px;gap:3px}.style-cards kbd,.style-stats{display:none}.style-cards strong{font-size:13px}.style-cards span{font-size:11px}.style-cards button:last-child{grid-column:1/-1}}@media(max-height:480px){.style-picker{top:auto;bottom:6px;transform:translateX(-50%);max-height:calc(100% - 60px);padding:6px 9px;gap:5px}.style-cards{grid-template-columns:repeat(5,1fr);gap:5px}.style-cards button{padding:5px 6px;gap:2px}.style-cards span{display:none}.style-cards button:last-child{grid-column:auto}.style-stats{display:grid;gap:1px}.style-stats li{grid-template-columns:52px 1fr}.style-stats small{font-size:8px}} diff --git a/web/hands/src/test/get-up-table.json b/web/hands/src/test/get-up-table.json new file mode 100644 index 00000000..8ea6bb57 --- /dev/null +++ b/web/hands/src/test/get-up-table.json @@ -0,0 +1 @@ +["-19,shown,0,none,0", "-19,other,0,none,0", "-18,shown,0,none,0", "-18,other,0,none,0", "-17,shown,0,none,0", "-17,other,0,none,0", "-16,shown,0,none,0", "-16,other,0,none,0", "-15,shown,0,none,0", "-15,other,0,none,0", "-14,shown,0,none,0", "-14,other,0,none,0", "-13,shown,0,early,0", "-13,other,0,wrong,0", "-12,shown,0,early,0", "-12,other,0,wrong,0", "-11,shown,0,early,0", "-11,other,0,wrong,0", "-10,shown,0,early,0", "-10,other,0,wrong,0", "-9,shown,0,early,0", "-9,other,0,wrong,0", "-8,shown,0,early,0", "-8,other,0,wrong,0", "-7,shown,0,early,0", "-7,other,0,wrong,0", "-6,shown,0,early,0", "-6,other,0,wrong,0", "-5,shown,0,early,0", "-5,other,0,wrong,0", "-4,shown,0,early,0", "-4,other,0,wrong,0", "-3,shown,0,good,1", "-3,other,0,wrong,0", "-2,shown,0,good,1", "-2,other,0,wrong,0", "-1,shown,0,perfect,2", "-1,other,0,wrong,0", "0,shown,0,perfect,2", "0,other,0,wrong,0", "1,shown,0,perfect,2", "1,other,0,wrong,0", "2,shown,0,good,1", "2,other,0,wrong,0", "3,shown,0,good,1", "3,other,0,wrong,0", "4,shown,0,late,0", "4,other,0,wrong,0", "5,shown,0,late,0", "5,other,0,wrong,0", "6,shown,0,late,0", "6,other,0,wrong,0", "-19,shown,3,none,0", "-19,other,3,none,0", "-18,shown,3,none,0", "-18,other,3,none,0", "-17,shown,3,none,0", "-17,other,3,none,0", "-16,shown,3,none,0", "-16,other,3,none,0", "-15,shown,3,none,0", "-15,other,3,none,0", "-14,shown,3,none,0", "-14,other,3,none,0", "-13,shown,3,early,0", "-13,other,3,wrong,-1", "-12,shown,3,early,0", "-12,other,3,wrong,-1", "-11,shown,3,early,0", "-11,other,3,wrong,-1", "-10,shown,3,early,0", "-10,other,3,wrong,-1", "-9,shown,3,early,0", "-9,other,3,wrong,-1", "-8,shown,3,early,0", "-8,other,3,wrong,-1", "-7,shown,3,early,0", "-7,other,3,wrong,-1", "-6,shown,3,early,0", "-6,other,3,wrong,-1", "-5,shown,3,early,0", "-5,other,3,wrong,-1", "-4,shown,3,early,0", "-4,other,3,wrong,-1", "-3,shown,3,good,1", "-3,other,3,wrong,-1", "-2,shown,3,good,1", "-2,other,3,wrong,-1", "-1,shown,3,perfect,2", "-1,other,3,wrong,-1", "0,shown,3,perfect,2", "0,other,3,wrong,-1", "1,shown,3,perfect,2", "1,other,3,wrong,-1", "2,shown,3,good,1", "2,other,3,wrong,-1", "3,shown,3,good,1", "3,other,3,wrong,-1", "4,shown,3,late,0", "4,other,3,wrong,-1", "5,shown,3,late,0", "5,other,3,wrong,-1", "6,shown,3,late,0", "6,other,3,wrong,-1"] From 979801e214a4523edcb235cfc77f7f41afd73a72 Mon Sep 17 00:00:00 2001 From: user1303836 Date: Tue, 17 Nov 2026 12:51:34 -0500 Subject: [PATCH 3/4] chore(hands): record the unpatched picomatch advisory as reviewed --- web/hands/scripts/audit.mjs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/hands/scripts/audit.mjs b/web/hands/scripts/audit.mjs index 17223d4c..f50a8f5c 100644 --- a/web/hands/scripts/audit.mjs +++ b/web/hands/scripts/audit.mjs @@ -8,6 +8,10 @@ const reviewedAdvisories = new Set([ // only zod 4.6.6 is patched. It validates the Discord client's messages in the player's own tab, so // an oversized array can exhaust nothing but the tab that sent it. "GHSA-mrhx-c7xc-m3w5", + // picomatch 4.0.7 is its latest release and none is patched. It comes with vite, vitest, tinyglobby and + // fdir, which match this repository's own glob patterns on a developer's machine and in CI; none of it + // is in the bundle the server ships, so nobody else can hand it a pattern. + "GHSA-fc5q-39xc-vjpf", ]); const audit = spawnSync("npm", ["audit", "--json"], { encoding: "utf8", maxBuffer: 64 * 1024 * 1024 }); From 2299da89207cc26b3aba6e8a08615d5d7751e57a Mon Sep 17 00:00:00 2001 From: user1303836 Date: Tue, 17 Nov 2026 13:20:05 -0500 Subject: [PATCH 4/4] fix(hands): get-up second review: news a screen reader repeats, no panel while paused, a press kept through a guard frame, a press clock that never steps back --- src/intelstream/hands/engine.py | 4 +- src/intelstream/hands/static/assets/hands.js | 308 +++++++++---------- tests/test_hands/test_engine.py | 18 ++ web/hands/src/app.test.ts | 30 ++ web/hands/src/app.ts | 6 +- web/hands/src/getup.test.ts | 27 +- web/hands/src/getup.ts | 9 +- web/hands/src/input/touch.ts | 8 +- web/hands/src/render/caption.test.ts | 3 +- web/hands/src/render/hud.ts | 10 +- web/hands/src/render/render.test.ts | 16 +- web/hands/src/render/renderer-getup.test.ts | 52 +++- web/hands/src/render/renderer.ts | 14 +- 13 files changed, 312 insertions(+), 193 deletions(-) diff --git a/src/intelstream/hands/engine.py b/src/intelstream/hands/engine.py index 50ce9ccf..7e4ad594 100644 --- a/src/intelstream/hands/engine.py +++ b/src/intelstream/hands/engine.py @@ -811,7 +811,9 @@ def submit_input(self, player_id: str, command: InputCommand) -> bool: recent_actions.append(action) fighter.pending_actions[:] = recent_actions[-MAX_PENDING_ACTIONS:] fighter.pending_action_expires_tick = self.tick + ACTION_BUFFER_TICKS - elif guard_started: + elif guard_started and not ( + self.phase is MatchPhase.KNOCKDOWN and player_id == self._downed_id + ): # Raising a guard cancels a press still waiting behind a punch, a stun, a taunt or a hold, or one # left from an earlier tick. One made since the last tick by a fighter free to throw it has not # had a tick to start, and is thrown: a punch and then cover. diff --git a/src/intelstream/hands/static/assets/hands.js b/src/intelstream/hands/static/assets/hands.js index 9744b0ce..75dc1bb4 100644 --- a/src/intelstream/hands/static/assets/hands.js +++ b/src/intelstream/hands/static/assets/hands.js @@ -1,19 +1,19 @@ -var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var n={format:2,tick_rate:30,ring:{half_width:500,half_height:500,fighter_radius:38},limits:{max_stamina:1e3,max_conditioning:1e3,max_guard:700,max_poise:600},action_buffer_ticks:8,facing:{scale:1e3,turn_degrees_per_second:110},movement:{max_speed:10,blend_percent:75,recovery_speed_percent:60},evasion:{ticks:7,stamina:15},combos:{recovery_cancel_percent:50,chains:[[`jab`,`straight`],[`jab`,`hook`],[`straight`,`hook`],[`hook`,`uppercut`],[`uppercut`,`hook`]]},knockdown:{referee_walk_speed:9,count_ticks:20,mandatory_count:5,box_pause_ticks:20,get_up_stun_ticks:12,get_up_stamina:600,get_up_base:0,get_up_per_knockdown:4,get_up_trauma_divisor:300,get_up_first_count:2,get_up_zone_ticks:3,get_up_perfect_ticks:1,get_up_late_ticks:3,get_up_good:1,get_up_perfect:2,get_up_wrong:1},countdown:{opening_ticks:90},tired:{startup_ticks:1,recovery_ticks:2,impact_percent:70},foul:{separation:45},hitstop_ms:{hit:78,block:45,power:140},fatigue_scaling:{startup_formula:`max(2, startup * 100 // fatigue - lead_jab_bonus)`,recovery_formula:`max(3, recovery * 100 // fatigue)`,lead_jab_bonus:1,rear_straight_impact_bonus:8},punches:{jab:{startup:3,active:2,recovery:4,reach:150,lateral_arc:42,impact:34,stamina_cost:25,whiff_cost:9,guard_damage:44,poise_damage:35,combo_window:7,startup_vulnerability:1,recovery_vulnerability:2},straight:{startup:4,active:2,recovery:6,reach:168,lateral_arc:38,impact:52,stamina_cost:39,whiff_cost:14,guard_damage:66,poise_damage:58,combo_window:8,startup_vulnerability:2,recovery_vulnerability:3},hook:{startup:5,active:2,recovery:7,reach:126,lateral_arc:92,impact:64,stamina_cost:47,whiff_cost:18,guard_damage:82,poise_damage:72,combo_window:9,startup_vulnerability:3,recovery_vulnerability:4},uppercut:{startup:5,active:2,recovery:8,reach:108,lateral_arc:54,impact:72,stamina_cost:53,whiff_cost:22,guard_damage:88,poise_damage:84,combo_window:10,startup_vulnerability:3,recovery_vulnerability:5}},variants:{body:{startup_add:1,reach_min:80,reach_sub:14,lateral_arc_add:8,impact_mul_num:92,impact_mul_den:100,stamina_cost_add:2,whiff_cost_add:2,poise_damage_mul_num:72,poise_damage_mul_den:100},power:{startup_add:3,active_add:1,recovery_add:3,reach_add:5,impact_mul_num:185,impact_mul_den:100,stamina_cost_mul_num:140,stamina_cost_mul_den:100,whiff_cost_mul_num:150,whiff_cost_mul_den:100,guard_damage_mul_num:220,guard_damage_mul_den:100,poise_damage_mul_num:175,poise_damage_mul_den:100,startup_vulnerability_add:1,recovery_vulnerability_add:1}},hurtboxes:{head:{radius:.13,length:.16,joint:`head`,offset_y:.12},torso:{radius:.21,length:.34,joint:`chest`,offset_y:.16}},corners:{reach:733},rest:{corner_offset:365,walk_speed:10},clinch:{hold_distance:60,draw_speed:6},referee:{radius:34,health:450,walk_speed:6,standoff:62,count_standoff:90,stagger_base_ticks:6,stagger_damage_divisor:8,stagger_max_ticks:30,down_ticks:150,bleed_health_divisor:60},corner:{cut:{worse_cut:250,other_cut:100,bleeding_kept_percent:30},swelling:{swelling:250,eyes:200},breath:{conditioning:180,body:150},balanced:{worse_cut:80,bleeding_kept_percent:75,swelling:80,eyes:60}},blind_side:{eye_threshold:700,impact_percent:120},parry:{stagger_ticks:16},body:{wind_percent:90,collapse_body_trauma:650,collapse_stamina:350,collapse_minimum_damage:40,collapse_delay_ticks:10,collapse_cooldown_ticks:300},styles:{balanced:{},boxer:{recovery_ticks:{jab:-1},reach_percent:102,impact_percent:98,poise_damage_percent:98},slugger:{impact_percent:108,poise_damage_percent:108,poise_taken_percent:95,stamina_cost_percent:115,recovery_ticks:{hook:1,uppercut:1},move_speed_percent:96},swarmer:{move_speed_percent:103,startup_ticks:{hook:-1,uppercut:-1},body_damage_percent:110,conditioning_loss_percent:85,impact_percent:96,poise_damage_percent:96,evasion_ticks:1},counter_puncher:{counter_bonus_percent:38,counter_window_ticks:3,evasion_ticks:1,perfect_block_ticks:1,impact_percent:96,poise_damage_percent:96}},stun:{flinch_minimum_damage:36,flinch_base_ticks:4,flinch_damage_divisor:16,rocked_counter_damage:50,rocked_power_damage:70,rocked_hurt_poise:180,rocked_base_ticks:12,rocked_damage_divisor:6,rocked_max_ticks:28,chain_max_ticks:36,immunity_ticks:18,rocked_immunity_ticks:8,moving_speed_percent:75},guard:{block_poise_percent:35,perfect_block_poise_percent:0,leak_base_percent:80,leak_minimum_percent:25,block_minimum:60,perfect_rearm_ticks:6,damage_percent:100,stamina_regen_percent:50,held_drain:3,break_stun_ticks:24,rearm:250},trauma:{head_per_damage_percent:60,eye_per_damage_percent:70,cut_per_damage_percent:80,jab_cut_percent:40,jab_swelling_percent:50,swelling_per_damage_percent:33,poise_ceiling_per_head_percent:30,poise_ceiling_floor:220,body_per_damage_percent:100,poise_regen_every_ticks:2,poise_damage_percent:85,cut_opens_eye:120,bleeding_cut_divisor:30},hitbox:{glove_radius:.11},injuries:{blood:{volume:1e3,bleeding_divisor:160,rest_percent:50,stages:[{below:600,stamina_regen_percent:75},{below:350,stamina_regen_percent:50},{below:150,stamina_regen_percent:25}]},kinds:{broken_nose:{drain:1,stamina_regen_percent:75,bleeding_floor:150},broken_jaw:{drain:1,poise_taken_percent:125},jaw_torn:{drain:5,poise_taken_percent:150,bleeding_floor:300},eye_out:{drain:2},ear_torn:{drain:1,poise_regen_ticks_add:1},face_flayed:{drain:4,vision_penalty:8},skull_fractured:{drain:4,poise_ceiling_percent:60},shoulder_dislocated:{drain:0,startup_add:2,impact_percent:50,guard_leak_add:20},arm_broken:{drain:3,startup_add:2,impact_percent:30,guard_leak_add:25},forearm_severed:{drain:12,impact_percent:20,reach_sub:45,guard_leak_add:35},arm_torn:{drain:20,guard_leak_add:50},ribs_broken:{drain:0,body_taken_percent:135,max_stamina_sub:60},liver_ruptured:{drain:6,stamina_regen_percent:60},disemboweled:{drain:12,move_speed_percent:75,max_stamina_sub:150,body_taken_percent:150},knee_blown:{drain:0,move_speed_percent:80}},triggers:{nose_wear:800,jaw_break_wear:320,jaw_tear_wear:640,ear_wear:280,eye_out_trauma:850,eye_out_damage:55,flay_cut:550,flay_damage:60,skull_head_trauma:1050,skull_damage:90,brain_death_wear:220,shoulder_wear:280,shoulder_whiff_wear:40,shoulder_parried_wear:90,arm_break_wear:1100,arm_guard_break_wear:300,arm_tear_damage:80,ribs_wear:260,liver_wear:260,gut_body_trauma:800,gut_damage:90,gutted_damage:90,knee_knockdowns:2},vomit:{every_ticks:240,stun_ticks:10},finish:{ticks:105},fatalities:{head:{jab:`eyes_out`,straight:`head_burst`,hook:`decapitation`,uppercut:`spine_rip`},body:{jab:`heart_punch`,straight:`gutting`,hook:`bisection`,uppercut:`total_gib`}}}},r=n.punches,i=n.variants,a=n.tick_rate;n.action_buffer_ticks;var o=n.hitstop_ms,s=n.hurtboxes,c=n.hitbox.glove_radius;n.fatigue_scaling;var l=n.rest.corner_offset,u=n.ring.half_width,d=n.ring.half_height,f=n.ring.fighter_radius,p=n.blind_side.eye_threshold,m=n.guard.block_minimum,h=n.guard.rearm,g=n.movement.max_speed,_=n.movement.blend_percent,v=n.movement.recovery_speed_percent,y=n.evasion.ticks,b=n.evasion.stamina,x=n.corner,S=n.corners.reach,C=n.combos.recovery_cancel_percent,w=new Set(n.combos.chains.map(([e,t])=>`${e}:${t}`));function T(e,t){return w.has(`${e}:${t}`)}function E(e){return e.startup+e.active+Math.floor(e.recovery*C/100)}function D(e,t,n,r,i,a=`balanced`){return t&&!i&&T(e,n.class)&&r>=le(a,n.class,n.target,n.power)}function O(e){return r[e].combo_window}var k=n.stun.rocked_base_ticks,ee=n.stun.rocked_max_ticks,A=n.knockdown,te=A.count_ticks,j=A.get_up_base+3*A.get_up_per_knockdown+Math.floor(1400/A.get_up_trauma_divisor),M={firstCount:A.get_up_first_count,zoneTicks:A.get_up_zone_ticks,perfectTicks:A.get_up_perfect_ticks,lateTicks:A.get_up_late_ticks,good:A.get_up_good,perfect:A.get_up_perfect,wrong:A.get_up_wrong,base:A.get_up_base,perKnockdown:A.get_up_per_knockdown,traumaDivisor:A.get_up_trauma_divisor},ne=n.stun.moving_speed_percent,re=n.tired.startup_ticks,ie=n.tired.recovery_ticks;function N(e,t,n){let a=r[e],o=a.startup,s=a.active,c=a.recovery,l=a.reach,u=a.lateral_arc;if(t===`body`){let e=i.body;o+=e.startup_add??0,c+=e.recovery_add??0,l=Math.max(e.reach_min??0,l-(e.reach_sub??0)),u+=e.lateral_arc_add??0}if(n===`power`){let e=i.power;o+=e.startup_add??0,s+=e.active_add??0,c+=e.recovery_add??0,l+=e.reach_add??0}return{startup:o,active:s,recovery:c,reach:l,lateralArc:u}}function ae(e,t,n){let a=r[e].stamina_cost;return t===`body`&&(a+=i.body.stamina_cost_add??0),n===`power`&&(a=Math.floor(a*(i.power.stamina_cost_mul_num??1)/(i.power.stamina_cost_mul_den??1))),a}var oe=n.styles,se=new Map;function ce(e){let t=se.get(e);if(t!==void 0)return t;let n=oe[e]??{},r={startupTicks:n.startup_ticks??{},recoveryTicks:n.recovery_ticks??{},staminaCostPercent:n.stamina_cost_percent??100,conditioningLossPercent:n.conditioning_loss_percent??100,moveSpeedPercent:n.move_speed_percent??100,evasionTicks:n.evasion_ticks??0};return se.set(e,r),r}function le(e,t,n,r){return Math.floor(ae(t,n,r)*ce(e).staminaCostPercent/100)}function ue(e){return e.startup+e.active+e.recovery}var de=[`perfect`,`good`,`early`,`late`,`wrong`],fe=e=>de.includes(e),pe=1500,me=128;function he(e){return e-te+M.zoneTicks+M.lateTicks+1}function ge(e){return e+M.zoneTicks+M.lateTicks}function _e(e,t,n,r,i){return er+M.zoneTicks?{detail:`late`,amount:0}:Math.abs(e-r)<=M.perfectTicks?{detail:`perfect`,amount:M.perfect}:{detail:`good`,amount:M.good}:{detail:`wrong`,amount:Math.max(0,i-M.wrong)-i}}function ve(e,t){let n=M.base+M.perKnockdown*e,r=Math.floor(t/M.traumaDivisor);return{knockdowns:n,head:r,total:n+r}}function ye(e,t){let n=t-e.get_up_count*te;return e.get_up_prompt===null?n:n-((n-(e.get_up_window_start_tick+M.zoneTicks))%te+te)%te}var be=class{attemptedBeat=-1/0;pending=null;shown=null;current={side:`get_up_left`,beat:0,next:null};counts={perfect:0,good:0,early:0,late:0,wrong:0};log=[];reset(){this.attemptedBeat=-1/0,this.pending=null,this.shown=null}get verdict(){return this.shown}prompt(e,t){if(e.get_up_prompt===null)return null;let n=e.get_up_window_start_tick+M.zoneTicks;return n>this.attemptedBeat&&Math.round(t)<=ge(n)?this.set(e.get_up_prompt,n,e.get_up_next_prompt):e.get_up_next_prompt===null||n+te<=this.attemptedBeat?null:this.set(e.get_up_next_prompt,n+te,null)}set(e,t,n){return this.current.side=e,this.current.beat=t,this.current.next=n,this.current}press(e,t,n,r){let i=this.prompt(t,n);if(i===null)return null;let a=_e(Math.round(n),e,i.side,i.beat,this.meter(t,r));return a===null?null:(this.attemptedBeat=i.beat,this.pending=this.shown={...a,atMs:r,confirmed:!1},a)}confirm(e,t){if(!fe(e.detail))return;let n=this.pending?.atMs??t;this.pending=null,this.shown={detail:e.detail,amount:e.amount,atMs:n,confirmed:!0},this.counts[e.detail]+=1,this.log.push({tick:e.tick,detail:e.detail,amount:e.amount}),this.log.length>me&&this.log.shift()}meter(e,t){return this.pending!==null&&t-this.pending.atMs>pe&&(this.pending=null),Math.max(0,e.get_up_meter+(this.pending?.amount??0))}},xe=()=>({pressTick:0,count:0,prompt:null,meter:0,required:0,knockdowns:0,head:0,verdict:null,nowMs:0,touch:!1,risen:!1});function Se(e,t,n,r,i,a,o,s=xe()){let c=e.get_up_required>0?e.get_up_required:ve(e.knockdowns,e.trauma.head).total;return s.pressTick=t,s.count=i===null?e.get_up_count:Math.max(0,Math.min(10,Math.floor((t-i)/te))),s.prompt=o?null:r===null?e.get_up_prompt===null?null:{side:e.get_up_prompt,beat:e.get_up_window_start_tick+M.zoneTicks,next:e.get_up_next_prompt}:r.prompt(e,t),s.meter=o?c:r?.meter(e,n)??e.get_up_meter,s.required=c,s.knockdowns=e.knockdowns,s.head=e.trauma.head,s.verdict=r?.verdict??null,s.nowMs=n,s.touch=a,s.risen=o,s}var Ce={get_up_left:`left`,get_up_right:`right`},P={perfect:`perfect`,good:`good`,early:`early, no score`,late:`late, no score`,wrong:`wrong side`},we=e=>e.charAt(0).toUpperCase()+e.slice(1),Te=e=>`${P[e.detail]}${e.amount===0?``:`, ${e.amount>0?`plus`:`minus`} ${Math.abs(e.amount)}`}.`;function F(e){if(e.risen)return`You beat the count at ${e.count}.`;let t=e.touch?`pad`:`arrow key`,n=e.prompt,r=n===null?`No more prompts this count.`:`Press the ${Ce[n.side]} ${t} on the beat of the count, as the ring closes${n.next===null?``:`; next, ${Ce[n.next]}`}. One press a count.`,i=e.verdict===null?``:` Last press: ${Te(e.verdict)}`;return`You are down. Count ${e.count}. ${r} ${Math.max(0,e.required-e.meter)} more to get up.${i}`}var I=class{beat=NaN;side=null;verdictKey=``;text=``;reset(){this.beat=NaN,this.side=null,this.verdictKey=this.text=``}announce(e){if(e.risen)return`Up.`;let t=``,n=e.verdict,r=n===null?``:`${n.atMs}:${n.detail}:${n.amount}`;n!==null&&r!==this.verdictKey&&(this.verdictKey=r,t=we(Te(n)));let i=e.prompt;return i!==null&&i.beat!==this.beat&&(this.beat=i.beat,t=`${t} ${we(Ce[i.side])}${this.side===i.side?` again`:``}.`.trim(),this.side=i.side),t!==``&&(this.text=t),this.text}},Ee={KeyF:[`left`,`jab`],KeyJ:[`right`,`jab`],KeyR:[`left`,`straight`],KeyU:[`right`,`straight`],KeyG:[`left`,`hook`],KeyH:[`right`,`hook`],KeyT:[`left`,`uppercut`],KeyY:[`right`,`uppercut`]},De={KeyZ:{kind:`slip_left`},KeyX:{kind:`slip_right`},KeyC:{kind:`weave`},KeyV:{kind:`pull`},KeyB:{kind:`clinch`},KeyN:{kind:`switch_stance`},KeyM:{kind:`taunt`},Digit1:{kind:`foul`,foul:`low_blow`},Digit2:{kind:`foul`,foul:`headbutt`},ArrowLeft:{kind:`get_up_left`},ArrowRight:{kind:`get_up_right`}},Oe={ArrowLeft:`←`,ArrowRight:`→`},ke=e=>{let t=Object.keys(De).find(t=>De[t].kind===e);return Oe[t]??t.replace(/^Key|^Digit/,``)},Ae={get_up_left:ke(`get_up_left`),get_up_right:ke(`get_up_right`)},je=new Set([...Object.keys(Ee),...Object.keys(De),`KeyW`,`KeyA`,`KeyS`,`KeyD`,`KeyQ`,`KeyE`,`ShiftLeft`,`ShiftRight`,`AltLeft`,`AltRight`]),Me=[`Move: W up · S down · A left · D right`,`High / low guard: Q / E`,`Left/right jab: F / J`,`Left/right straight: R / U`,`Left/right hook: G / H`,`Left/right uppercut: T / Y`,`Body: Shift · Power: hold Alt (Option ⌥ on a Mac) with the punch, slower to throw and far heavier`,`Slip: Z / X · Weave: C · Pull: V`,`Clinch: B · Stance: N · Taunt: M · Fouls (on purpose): Shift+1 low blow / Shift+2 headbutt`,`Get up when knocked down: press ${Ae.get_up_left} or ${Ae.get_up_right}, the side the big arrow shows, as the ring closes on each count; one press per count, the next side shows small beside it.`,`Camera: K cycles broadcast, close and over the shoulder (behind your fighter, W walks at the opponent and A / D circle him).`,`Style pick before the bout: arrow keys choose · Enter settles · 1–5 settle on that card at once.`,`Controller move: left stick. High / low guard: left / right shoulder (independent of punches).`,`Controller face classes: bottom jab · right straight · left hook · top uppercut.`,`Controller face hand: hold D-pad left for left hand or D-pad right for right hand, then press a face punch; otherwise punches use the right hand. A direction used for a punch is consumed and does not evade.`,`Controller modifiers: left trigger body · right trigger power.`,`Controller actions: left stick press clinch · right stick press switch stance · hold right trigger + right stick press to taunt · D-pad up weave · D-pad down pull · tap and release D-pad left/right to slip; while down, D-pad left/right presses that get-up side at once.`,`Controller fouls: View/Back low blow · Menu/Start headbutt.`,`Controller style pick: D-pad or left stick to choose · bottom face button settles.`,`Right-stick gesture: horizontal 0–22.5° hook · 22.5–45° jab · 45–70° straight · 70–90° uppercut; left/right direction selects hand.`,`Between rounds, tell your corner what to work on: 1 close the cut · 2 bring down the swelling · 3 catch your breath (controller: left, top or right face button; or tap).`,`Touch: drag the left side to move · tap a punch pad's left or right half for that hand · hold BODY, POWER, GUARD or LOW · tap ◀ SLIP, SLIP ▶, WEAVE, PULL or CLINCH.`],Ne=`Move WASD · Jab F/J · Straight R/U · Hook G/H · Uppercut T/Y · Guard Q/E · Body Shift · Power Alt/Option ⌥`,Pe=`Drag on the left to move · Tap the pads to punch, L or R hand · Hold BODY, POWER or GUARD · Tap SLIP, WEAVE, PULL or CLINCH`,Fe=`Drag left to move · Tap pads to punch · Hold GUARD`,Ie=(e,t)=>e?t<480?Fe:Pe:Ne,Le=[{title:`Keyboard`,items:Me.filter(e=>!e.startsWith(`Controller`)&&!e.startsWith(`Right-stick`)&&!e.startsWith(`Between rounds`)&&!e.startsWith(`Touch`))},{title:`Between rounds`,items:Me.filter(e=>e.startsWith(`Between rounds`))},{title:`Controller`,items:Me.filter(e=>e.startsWith(`Controller`)||e.startsWith(`Right-stick`))},{title:`Touch`,items:Me.filter(e=>e.startsWith(`Touch`))}],Re={top:0,right:0,bottom:0,left:0},ze={get_up_left:`◀ LEFT`,get_up_right:`RIGHT ▶`},Be=118,Ve=null,He=0,Ue=0;function We(){if(typeof document>`u`||document.body===null)return Re;if(Ve!==null&&He===window.innerWidth&&Ue===window.innerHeight)return Ve;let e=document.createElement(`div`);e.style.cssText=`position:fixed;visibility:hidden;pointer-events:none;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)`,document.body.append(e);let t=getComputedStyle(e);return Ve={top:Number.parseFloat(t.paddingTop)||0,right:Number.parseFloat(t.paddingRight)||0,bottom:Number.parseFloat(t.paddingBottom)||0,left:Number.parseFloat(t.paddingLeft)||0},He=window.innerWidth,Ue=window.innerHeight,e.remove(),Ve}function Ge(e,t,n=Re){let r=Math.max(12,n.left),i=e-Math.max(12,n.right),a=Be+n.bottom;if(e<=t){let e=(i-r-12)/2,n=t-a-96;return{left:{x:r,y:n,width:e,height:96},right:{x:i-e,y:n,width:e,height:96}}}let o=Math.min(220,Math.round(e*.24)),s=Math.max(72,Math.min(110,t-a-120)),c=t-a-s;return{left:{x:r,y:c,width:o,height:s},right:{x:i-o,y:c,width:o,height:s}}}function Ke(){try{if(window.matchMedia?.(`(pointer: coarse)`).matches)return!0}catch{}return(navigator.maxTouchPoints??0)>0&&new URLSearchParams(window.location.search).get(`platform`)===`mobile`}var qe=[{label:`JAB`,punchClass:`jab`},{label:`STRAIGHT`,punchClass:`straight`},{label:`HOOK`,punchClass:`hook`},{label:`UPPER`,punchClass:`uppercut`}],Je=[{label:`◀ SLIP`,name:`Slip left`,kind:`slip_left`},{label:`WEAVE`,name:`Weave`,kind:`weave`},{label:`SLIP ▶`,name:`Slip right`,kind:`slip_right`},{label:`PULL`,name:`Pull`,kind:`pull`},{label:`CLINCH`,name:`Clinch`,kind:`clinch`}],Ye=class{sharedActions;root;stickZone;stickBase;stickKnob;pads=[];moves=[];getUpPads=[];stickPointer=null;stickOrigin={x:0,y:0};moveX=0;moveY=0;body=!1;power=!1;guard=`none`;knockdown=!1;enabled=!0;heldPointers=new Map;heldListener=null;constructor(e,t){this.sharedActions=t,this.root=document.createElement(`div`),this.root.className=`touch-controls`,this.root.setAttribute(`aria-label`,`Touch controls`),this.root.innerHTML=`
+var e=Object.defineProperty,t=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r};(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var n={format:2,tick_rate:30,ring:{half_width:500,half_height:500,fighter_radius:38},limits:{max_stamina:1e3,max_conditioning:1e3,max_guard:700,max_poise:600},action_buffer_ticks:8,facing:{scale:1e3,turn_degrees_per_second:110},movement:{max_speed:10,blend_percent:75,recovery_speed_percent:60},evasion:{ticks:7,stamina:15},combos:{recovery_cancel_percent:50,chains:[[`jab`,`straight`],[`jab`,`hook`],[`straight`,`hook`],[`hook`,`uppercut`],[`uppercut`,`hook`]]},knockdown:{referee_walk_speed:9,count_ticks:20,mandatory_count:5,box_pause_ticks:20,get_up_stun_ticks:12,get_up_stamina:600,get_up_base:0,get_up_per_knockdown:4,get_up_trauma_divisor:300,get_up_first_count:2,get_up_zone_ticks:3,get_up_perfect_ticks:1,get_up_late_ticks:3,get_up_good:1,get_up_perfect:2,get_up_wrong:1},countdown:{opening_ticks:90},tired:{startup_ticks:1,recovery_ticks:2,impact_percent:70},foul:{separation:45},hitstop_ms:{hit:78,block:45,power:140},fatigue_scaling:{startup_formula:`max(2, startup * 100 // fatigue - lead_jab_bonus)`,recovery_formula:`max(3, recovery * 100 // fatigue)`,lead_jab_bonus:1,rear_straight_impact_bonus:8},punches:{jab:{startup:3,active:2,recovery:4,reach:150,lateral_arc:42,impact:34,stamina_cost:25,whiff_cost:9,guard_damage:44,poise_damage:35,combo_window:7,startup_vulnerability:1,recovery_vulnerability:2},straight:{startup:4,active:2,recovery:6,reach:168,lateral_arc:38,impact:52,stamina_cost:39,whiff_cost:14,guard_damage:66,poise_damage:58,combo_window:8,startup_vulnerability:2,recovery_vulnerability:3},hook:{startup:5,active:2,recovery:7,reach:126,lateral_arc:92,impact:64,stamina_cost:47,whiff_cost:18,guard_damage:82,poise_damage:72,combo_window:9,startup_vulnerability:3,recovery_vulnerability:4},uppercut:{startup:5,active:2,recovery:8,reach:108,lateral_arc:54,impact:72,stamina_cost:53,whiff_cost:22,guard_damage:88,poise_damage:84,combo_window:10,startup_vulnerability:3,recovery_vulnerability:5}},variants:{body:{startup_add:1,reach_min:80,reach_sub:14,lateral_arc_add:8,impact_mul_num:92,impact_mul_den:100,stamina_cost_add:2,whiff_cost_add:2,poise_damage_mul_num:72,poise_damage_mul_den:100},power:{startup_add:3,active_add:1,recovery_add:3,reach_add:5,impact_mul_num:185,impact_mul_den:100,stamina_cost_mul_num:140,stamina_cost_mul_den:100,whiff_cost_mul_num:150,whiff_cost_mul_den:100,guard_damage_mul_num:220,guard_damage_mul_den:100,poise_damage_mul_num:175,poise_damage_mul_den:100,startup_vulnerability_add:1,recovery_vulnerability_add:1}},hurtboxes:{head:{radius:.13,length:.16,joint:`head`,offset_y:.12},torso:{radius:.21,length:.34,joint:`chest`,offset_y:.16}},corners:{reach:733},rest:{corner_offset:365,walk_speed:10},clinch:{hold_distance:60,draw_speed:6},referee:{radius:34,health:450,walk_speed:6,standoff:62,count_standoff:90,stagger_base_ticks:6,stagger_damage_divisor:8,stagger_max_ticks:30,down_ticks:150,bleed_health_divisor:60},corner:{cut:{worse_cut:250,other_cut:100,bleeding_kept_percent:30},swelling:{swelling:250,eyes:200},breath:{conditioning:180,body:150},balanced:{worse_cut:80,bleeding_kept_percent:75,swelling:80,eyes:60}},blind_side:{eye_threshold:700,impact_percent:120},parry:{stagger_ticks:16},body:{wind_percent:90,collapse_body_trauma:650,collapse_stamina:350,collapse_minimum_damage:40,collapse_delay_ticks:10,collapse_cooldown_ticks:300},styles:{balanced:{},boxer:{recovery_ticks:{jab:-1},reach_percent:102,impact_percent:98,poise_damage_percent:98},slugger:{impact_percent:108,poise_damage_percent:108,poise_taken_percent:95,stamina_cost_percent:115,recovery_ticks:{hook:1,uppercut:1},move_speed_percent:96},swarmer:{move_speed_percent:103,startup_ticks:{hook:-1,uppercut:-1},body_damage_percent:110,conditioning_loss_percent:85,impact_percent:96,poise_damage_percent:96,evasion_ticks:1},counter_puncher:{counter_bonus_percent:38,counter_window_ticks:3,evasion_ticks:1,perfect_block_ticks:1,impact_percent:96,poise_damage_percent:96}},stun:{flinch_minimum_damage:36,flinch_base_ticks:4,flinch_damage_divisor:16,rocked_counter_damage:50,rocked_power_damage:70,rocked_hurt_poise:180,rocked_base_ticks:12,rocked_damage_divisor:6,rocked_max_ticks:28,chain_max_ticks:36,immunity_ticks:18,rocked_immunity_ticks:8,moving_speed_percent:75},guard:{block_poise_percent:35,perfect_block_poise_percent:0,leak_base_percent:80,leak_minimum_percent:25,block_minimum:60,perfect_rearm_ticks:6,damage_percent:100,stamina_regen_percent:50,held_drain:3,break_stun_ticks:24,rearm:250},trauma:{head_per_damage_percent:60,eye_per_damage_percent:70,cut_per_damage_percent:80,jab_cut_percent:40,jab_swelling_percent:50,swelling_per_damage_percent:33,poise_ceiling_per_head_percent:30,poise_ceiling_floor:220,body_per_damage_percent:100,poise_regen_every_ticks:2,poise_damage_percent:85,cut_opens_eye:120,bleeding_cut_divisor:30},hitbox:{glove_radius:.11},injuries:{blood:{volume:1e3,bleeding_divisor:160,rest_percent:50,stages:[{below:600,stamina_regen_percent:75},{below:350,stamina_regen_percent:50},{below:150,stamina_regen_percent:25}]},kinds:{broken_nose:{drain:1,stamina_regen_percent:75,bleeding_floor:150},broken_jaw:{drain:1,poise_taken_percent:125},jaw_torn:{drain:5,poise_taken_percent:150,bleeding_floor:300},eye_out:{drain:2},ear_torn:{drain:1,poise_regen_ticks_add:1},face_flayed:{drain:4,vision_penalty:8},skull_fractured:{drain:4,poise_ceiling_percent:60},shoulder_dislocated:{drain:0,startup_add:2,impact_percent:50,guard_leak_add:20},arm_broken:{drain:3,startup_add:2,impact_percent:30,guard_leak_add:25},forearm_severed:{drain:12,impact_percent:20,reach_sub:45,guard_leak_add:35},arm_torn:{drain:20,guard_leak_add:50},ribs_broken:{drain:0,body_taken_percent:135,max_stamina_sub:60},liver_ruptured:{drain:6,stamina_regen_percent:60},disemboweled:{drain:12,move_speed_percent:75,max_stamina_sub:150,body_taken_percent:150},knee_blown:{drain:0,move_speed_percent:80}},triggers:{nose_wear:800,jaw_break_wear:320,jaw_tear_wear:640,ear_wear:280,eye_out_trauma:850,eye_out_damage:55,flay_cut:550,flay_damage:60,skull_head_trauma:1050,skull_damage:90,brain_death_wear:220,shoulder_wear:280,shoulder_whiff_wear:40,shoulder_parried_wear:90,arm_break_wear:1100,arm_guard_break_wear:300,arm_tear_damage:80,ribs_wear:260,liver_wear:260,gut_body_trauma:800,gut_damage:90,gutted_damage:90,knee_knockdowns:2},vomit:{every_ticks:240,stun_ticks:10},finish:{ticks:105},fatalities:{head:{jab:`eyes_out`,straight:`head_burst`,hook:`decapitation`,uppercut:`spine_rip`},body:{jab:`heart_punch`,straight:`gutting`,hook:`bisection`,uppercut:`total_gib`}}}},r=n.punches,i=n.variants,a=n.tick_rate;n.action_buffer_ticks;var o=n.hitstop_ms,s=n.hurtboxes,c=n.hitbox.glove_radius;n.fatigue_scaling;var l=n.rest.corner_offset,u=n.ring.half_width,d=n.ring.half_height,f=n.ring.fighter_radius,p=n.blind_side.eye_threshold,m=n.guard.block_minimum,h=n.guard.rearm,g=n.movement.max_speed,_=n.movement.blend_percent,v=n.movement.recovery_speed_percent,y=n.evasion.ticks,b=n.evasion.stamina,x=n.corner,S=n.corners.reach,C=n.combos.recovery_cancel_percent,w=new Set(n.combos.chains.map(([e,t])=>`${e}:${t}`));function T(e,t){return w.has(`${e}:${t}`)}function E(e){return e.startup+e.active+Math.floor(e.recovery*C/100)}function D(e,t,n,r,i,a=`balanced`){return t&&!i&&T(e,n.class)&&r>=le(a,n.class,n.target,n.power)}function O(e){return r[e].combo_window}var k=n.stun.rocked_base_ticks,ee=n.stun.rocked_max_ticks,A=n.knockdown,te=A.count_ticks,j=A.get_up_base+3*A.get_up_per_knockdown+Math.floor(1400/A.get_up_trauma_divisor),M={firstCount:A.get_up_first_count,zoneTicks:A.get_up_zone_ticks,perfectTicks:A.get_up_perfect_ticks,lateTicks:A.get_up_late_ticks,good:A.get_up_good,perfect:A.get_up_perfect,wrong:A.get_up_wrong,base:A.get_up_base,perKnockdown:A.get_up_per_knockdown,traumaDivisor:A.get_up_trauma_divisor},ne=n.stun.moving_speed_percent,re=n.tired.startup_ticks,ie=n.tired.recovery_ticks;function N(e,t,n){let a=r[e],o=a.startup,s=a.active,c=a.recovery,l=a.reach,u=a.lateral_arc;if(t===`body`){let e=i.body;o+=e.startup_add??0,c+=e.recovery_add??0,l=Math.max(e.reach_min??0,l-(e.reach_sub??0)),u+=e.lateral_arc_add??0}if(n===`power`){let e=i.power;o+=e.startup_add??0,s+=e.active_add??0,c+=e.recovery_add??0,l+=e.reach_add??0}return{startup:o,active:s,recovery:c,reach:l,lateralArc:u}}function ae(e,t,n){let a=r[e].stamina_cost;return t===`body`&&(a+=i.body.stamina_cost_add??0),n===`power`&&(a=Math.floor(a*(i.power.stamina_cost_mul_num??1)/(i.power.stamina_cost_mul_den??1))),a}var oe=n.styles,se=new Map;function ce(e){let t=se.get(e);if(t!==void 0)return t;let n=oe[e]??{},r={startupTicks:n.startup_ticks??{},recoveryTicks:n.recovery_ticks??{},staminaCostPercent:n.stamina_cost_percent??100,conditioningLossPercent:n.conditioning_loss_percent??100,moveSpeedPercent:n.move_speed_percent??100,evasionTicks:n.evasion_ticks??0};return se.set(e,r),r}function le(e,t,n,r){return Math.floor(ae(t,n,r)*ce(e).staminaCostPercent/100)}function ue(e){return e.startup+e.active+e.recovery}var de=[`perfect`,`good`,`early`,`late`,`wrong`],fe=e=>de.includes(e),pe=1500,me=128;function he(e){return e-te+M.zoneTicks+M.lateTicks+1}function ge(e){return e+M.zoneTicks+M.lateTicks}function _e(e,t,n,r,i){return er+M.zoneTicks?{detail:`late`,amount:0}:Math.abs(e-r)<=M.perfectTicks?{detail:`perfect`,amount:M.perfect}:{detail:`good`,amount:M.good}:{detail:`wrong`,amount:Math.max(0,i-M.wrong)-i}}function ve(e,t){let n=M.base+M.perKnockdown*e,r=Math.floor(t/M.traumaDivisor);return{knockdowns:n,head:r,total:n+r}}function ye(e,t){let n=t-e.get_up_count*te;return e.get_up_prompt===null?n:n-((n-(e.get_up_window_start_tick+M.zoneTicks))%te+te)%te}var be=class{attemptedBeat=-1/0;pending=null;shown=null;current={side:`get_up_left`,beat:0,next:null};counts={perfect:0,good:0,early:0,late:0,wrong:0};log=[];reset(){this.attemptedBeat=-1/0,this.pending=null,this.shown=null}get verdict(){return this.shown}prompt(e,t){if(e.get_up_prompt===null)return null;let n=e.get_up_window_start_tick+M.zoneTicks;return n>this.attemptedBeat&&Math.round(t)<=ge(n)?this.set(e.get_up_prompt,n,e.get_up_next_prompt):e.get_up_next_prompt===null||n+te<=this.attemptedBeat?null:this.set(e.get_up_next_prompt,n+te,null)}set(e,t,n){return this.current.side=e,this.current.beat=t,this.current.next=n,this.current}press(e,t,n,r){let i=this.prompt(t,n);if(i===null)return null;let a=_e(Math.round(n),e,i.side,i.beat,this.meter(t,r));return a===null?null:(this.attemptedBeat=i.beat,this.pending=this.shown={...a,atMs:r,confirmed:!1},a)}confirm(e,t){if(!fe(e.detail))return;let n=this.pending?.atMs??t;this.pending=null,this.shown={detail:e.detail,amount:e.amount,atMs:n,confirmed:!0},this.counts[e.detail]+=1,this.log.push({tick:e.tick,detail:e.detail,amount:e.amount}),this.log.length>me&&this.log.shift()}meter(e,t){return this.pending!==null&&t-this.pending.atMs>pe&&(this.pending=null),Math.max(0,e.get_up_meter+(this.pending?.amount??0))}},xe=()=>({pressTick:0,count:0,prompt:null,meter:0,required:0,knockdowns:0,head:0,verdict:null,nowMs:0,touch:!1,risen:!1});function Se(e,t,n,r,i,a,o,s=xe()){let c=e.get_up_required>0?e.get_up_required:ve(e.knockdowns,e.trauma.head).total;return s.pressTick=t,s.count=i===null?e.get_up_count:Math.max(0,Math.min(10,Math.floor((t-i)/te))),s.prompt=o?null:r===null?e.get_up_prompt===null?null:{side:e.get_up_prompt,beat:e.get_up_window_start_tick+M.zoneTicks,next:e.get_up_next_prompt}:r.prompt(e,t),s.meter=o?c:r?.meter(e,n)??e.get_up_meter,s.required=c,s.knockdowns=e.knockdowns,s.head=e.trauma.head,s.verdict=r?.verdict??null,s.nowMs=n,s.touch=a,s.risen=o,s}var Ce={get_up_left:`left`,get_up_right:`right`},P={perfect:`perfect`,good:`good`,early:`early, no score`,late:`late, no score`,wrong:`wrong side`},we=e=>e.charAt(0).toUpperCase()+e.slice(1),Te=e=>`${P[e.detail]}${e.amount===0?``:`, ${e.amount>0?`plus`:`minus`} ${Math.abs(e.amount)}`}.`;function F(e){if(e.risen)return`You beat the count at ${e.count}.`;let t=e.touch?`pad`:`arrow key`,n=e.prompt,r=n===null?`No more prompts this count.`:`Press the ${Ce[n.side]} ${t} on the beat of the count, as the ring closes${n.next===null?``:`; next, ${Ce[n.next]}`}. One press a count.`,i=e.verdict===null?``:` Last press: ${Te(e.verdict)}`;return`You are down. Count ${e.count}. ${r} ${Math.max(0,e.required-e.meter)} more to get up.${i}`}var I=class{beat=NaN;side=null;verdictKey=``;text=``;reset(){this.beat=NaN,this.side=null,this.verdictKey=this.text=``}announce(e){if(e.risen)return`Up.`;let t=``,n=e.verdict,r=n===null?``:`${n.atMs}:${n.detail}:${n.amount}`;n!==null&&r!==this.verdictKey&&(this.verdictKey=r,t=we(Te(n)));let i=e.prompt;return i!==null&&i.beat!==this.beat&&(this.beat=i.beat,t=`${t} ${we(Ce[i.side])}${this.side===i.side?` again`:``}.`.trim(),this.side=i.side),t!==``&&(this.text=e.count>=1?`${e.count}. ${t}`:t),this.text}},Ee={KeyF:[`left`,`jab`],KeyJ:[`right`,`jab`],KeyR:[`left`,`straight`],KeyU:[`right`,`straight`],KeyG:[`left`,`hook`],KeyH:[`right`,`hook`],KeyT:[`left`,`uppercut`],KeyY:[`right`,`uppercut`]},De={KeyZ:{kind:`slip_left`},KeyX:{kind:`slip_right`},KeyC:{kind:`weave`},KeyV:{kind:`pull`},KeyB:{kind:`clinch`},KeyN:{kind:`switch_stance`},KeyM:{kind:`taunt`},Digit1:{kind:`foul`,foul:`low_blow`},Digit2:{kind:`foul`,foul:`headbutt`},ArrowLeft:{kind:`get_up_left`},ArrowRight:{kind:`get_up_right`}},Oe={ArrowLeft:`←`,ArrowRight:`→`},ke=e=>{let t=Object.keys(De).find(t=>De[t].kind===e);return Oe[t]??t.replace(/^Key|^Digit/,``)},Ae={get_up_left:ke(`get_up_left`),get_up_right:ke(`get_up_right`)},je=new Set([...Object.keys(Ee),...Object.keys(De),`KeyW`,`KeyA`,`KeyS`,`KeyD`,`KeyQ`,`KeyE`,`ShiftLeft`,`ShiftRight`,`AltLeft`,`AltRight`]),Me=[`Move: W up · S down · A left · D right`,`High / low guard: Q / E`,`Left/right jab: F / J`,`Left/right straight: R / U`,`Left/right hook: G / H`,`Left/right uppercut: T / Y`,`Body: Shift · Power: hold Alt (Option ⌥ on a Mac) with the punch, slower to throw and far heavier`,`Slip: Z / X · Weave: C · Pull: V`,`Clinch: B · Stance: N · Taunt: M · Fouls (on purpose): Shift+1 low blow / Shift+2 headbutt`,`Get up when knocked down: press ${Ae.get_up_left} or ${Ae.get_up_right}, the side the big arrow shows, as the ring closes on each count; one press per count, the next side shows small beside it.`,`Camera: K cycles broadcast, close and over the shoulder (behind your fighter, W walks at the opponent and A / D circle him).`,`Style pick before the bout: arrow keys choose · Enter settles · 1–5 settle on that card at once.`,`Controller move: left stick. High / low guard: left / right shoulder (independent of punches).`,`Controller face classes: bottom jab · right straight · left hook · top uppercut.`,`Controller face hand: hold D-pad left for left hand or D-pad right for right hand, then press a face punch; otherwise punches use the right hand. A direction used for a punch is consumed and does not evade.`,`Controller modifiers: left trigger body · right trigger power.`,`Controller actions: left stick press clinch · right stick press switch stance · hold right trigger + right stick press to taunt · D-pad up weave · D-pad down pull · tap and release D-pad left/right to slip; while down, D-pad left/right presses that get-up side at once.`,`Controller fouls: View/Back low blow · Menu/Start headbutt.`,`Controller style pick: D-pad or left stick to choose · bottom face button settles.`,`Right-stick gesture: horizontal 0–22.5° hook · 22.5–45° jab · 45–70° straight · 70–90° uppercut; left/right direction selects hand.`,`Between rounds, tell your corner what to work on: 1 close the cut · 2 bring down the swelling · 3 catch your breath (controller: left, top or right face button; or tap).`,`Touch: drag the left side to move · tap a punch pad's left or right half for that hand · hold BODY, POWER, GUARD or LOW · tap ◀ SLIP, SLIP ▶, WEAVE, PULL or CLINCH.`],Ne=`Move WASD · Jab F/J · Straight R/U · Hook G/H · Uppercut T/Y · Guard Q/E · Body Shift · Power Alt/Option ⌥`,Pe=`Drag on the left to move · Tap the pads to punch, L or R hand · Hold BODY, POWER or GUARD · Tap SLIP, WEAVE, PULL or CLINCH`,Fe=`Drag left to move · Tap pads to punch · Hold GUARD`,Ie=(e,t)=>e?t<480?Fe:Pe:Ne,Le=[{title:`Keyboard`,items:Me.filter(e=>!e.startsWith(`Controller`)&&!e.startsWith(`Right-stick`)&&!e.startsWith(`Between rounds`)&&!e.startsWith(`Touch`))},{title:`Between rounds`,items:Me.filter(e=>e.startsWith(`Between rounds`))},{title:`Controller`,items:Me.filter(e=>e.startsWith(`Controller`)||e.startsWith(`Right-stick`))},{title:`Touch`,items:Me.filter(e=>e.startsWith(`Touch`))}],Re={top:0,right:0,bottom:0,left:0},ze={get_up_left:`◀ LEFT`,get_up_right:`RIGHT ▶`},Be=118,Ve=null,He=0,Ue=0,We=0;function Ge(){if(typeof document>`u`||document.body===null)return Re;let e=window.screen?.orientation?.angle??0;if(Ve!==null&&He===window.innerWidth&&Ue===window.innerHeight&&We===e)return Ve;let t=document.createElement(`div`);t.style.cssText=`position:fixed;visibility:hidden;pointer-events:none;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)`,document.body.append(t);let n=getComputedStyle(t);return Ve={top:Number.parseFloat(n.paddingTop)||0,right:Number.parseFloat(n.paddingRight)||0,bottom:Number.parseFloat(n.paddingBottom)||0,left:Number.parseFloat(n.paddingLeft)||0},He=window.innerWidth,Ue=window.innerHeight,We=e,t.remove(),Ve}function Ke(e,t,n=Re){let r=Math.max(12,n.left),i=e-Math.max(12,n.right),a=Be+n.bottom;if(e<=t){let e=(i-r-12)/2,n=t-a-96;return{left:{x:r,y:n,width:e,height:96},right:{x:i-e,y:n,width:e,height:96}}}let o=Math.min(220,Math.round(e*.24)),s=Math.max(72,Math.min(110,t-a-120)),c=t-a-s;return{left:{x:r,y:c,width:o,height:s},right:{x:i-o,y:c,width:o,height:s}}}function qe(){try{if(window.matchMedia?.(`(pointer: coarse)`).matches)return!0}catch{}return(navigator.maxTouchPoints??0)>0&&new URLSearchParams(window.location.search).get(`platform`)===`mobile`}var Je=[{label:`JAB`,punchClass:`jab`},{label:`STRAIGHT`,punchClass:`straight`},{label:`HOOK`,punchClass:`hook`},{label:`UPPER`,punchClass:`uppercut`}],Ye=[{label:`◀ SLIP`,name:`Slip left`,kind:`slip_left`},{label:`WEAVE`,name:`Weave`,kind:`weave`},{label:`SLIP ▶`,name:`Slip right`,kind:`slip_right`},{label:`PULL`,name:`Pull`,kind:`pull`},{label:`CLINCH`,name:`Clinch`,kind:`clinch`}],Xe=class{sharedActions;root;stickZone;stickBase;stickKnob;pads=[];moves=[];getUpPads=[];stickPointer=null;stickOrigin={x:0,y:0};moveX=0;moveY=0;body=!1;power=!1;guard=`none`;knockdown=!1;enabled=!0;heldPointers=new Map;heldListener=null;constructor(e,t){this.sharedActions=t,this.root=document.createElement(`div`),this.root.className=`touch-controls`,this.root.setAttribute(`aria-label`,`Touch controls`),this.root.innerHTML=`
-
${Je.map(e=>``).join(``)}
+
${Ye.map(e=>``).join(``)}
-
${qe.map(e=>``).join(``)}
+
${Je.map(e=>``).join(``)}
-
${[`get_up_left`,`get_up_right`].map(e=>``).join(``)}
`,e.append(this.root),this.stickZone=this.root.querySelector(`[data-stick]`),this.stickBase=this.root.querySelector(`[data-stick-base]`),this.stickKnob=this.root.querySelector(`[data-stick-knob]`),this.pads.push(...this.root.querySelectorAll(`[data-punch]`)),this.moves.push(...this.root.querySelectorAll(`[data-move]`)),this.getUpPads.push(...this.root.querySelectorAll(`[data-getup-side]`)),this.bind()}bind(){let e=this.stickZone;e.addEventListener(`pointerdown`,t=>{if(this.stickPointer!==null)return;t.preventDefault(),this.stickPointer=t.pointerId,this.stickOrigin={x:t.clientX,y:t.clientY},e.setPointerCapture(t.pointerId);let n=e.getBoundingClientRect();this.stickBase.style.left=`${t.clientX-n.left}px`,this.stickBase.style.top=`${t.clientY-n.top}px`,this.stickBase.classList.add(`active`),this.updateStick(t.clientX,t.clientY)}),e.addEventListener(`pointermove`,e=>{e.pointerId===this.stickPointer&&(e.preventDefault(),this.updateStick(e.clientX,e.clientY))});let t=e=>{e.pointerId===this.stickPointer&&(this.stickPointer=null,this.moveX=0,this.moveY=0,this.stickKnob.style.transform=`translate(-50%, -50%)`,this.stickBase.classList.remove(`active`),this.heldListener?.())};e.addEventListener(`pointerup`,t),e.addEventListener(`pointercancel`,t);for(let e of this.getUpPads)e.addEventListener(`pointerdown`,t=>{this.enabled&&this.knockdown&&(t.preventDefault(),this.sharedActions.push(`touch`,{kind:e.dataset.getupSide===`get_up_left`?`get_up_left`:`get_up_right`}))});for(let e of this.pads)e.addEventListener(`pointerdown`,t=>{if(!this.enabled)return;t.preventDefault();let n=e.getBoundingClientRect(),r=t.clientX-n.lefte.classList.remove(`pressed`),120)});for(let e of this.moves)e.addEventListener(`pointerdown`,t=>{this.enabled&&!this.knockdown&&(t.preventDefault(),this.sharedActions.push(`touch`,{kind:e.dataset.move}),e.classList.add(`pressed`),window.setTimeout(()=>e.classList.remove(`pressed`),120))});for(let e of this.root.querySelectorAll(`[data-mod], [data-guard]`)){let t=e.dataset.mod??e.dataset.guard??``,n=n=>{n.preventDefault(),e.setPointerCapture(n.pointerId),this.heldPointers.set(n.pointerId,t),this.syncHeld(),e.classList.add(`pressed`)},r=n=>{this.heldPointers.delete(n.pointerId)&&(this.syncHeld(),e.classList.toggle(`pressed`,[...this.heldPointers.values()].includes(t)))};e.addEventListener(`pointerdown`,n),e.addEventListener(`pointerup`,r),e.addEventListener(`pointercancel`,r)}}syncHeld(){let e=[...this.heldPointers.values()];this.body=e.includes(`body`),this.power=e.includes(`power`);let t=e.findLast(e=>e===`guard_high`||e===`guard_low`)??`none`,n=t!==this.guard;this.guard=t,n&&this.heldListener?.()}get powerHeld(){return this.enabled&&this.power}onHeldChange(e){this.heldListener=e}updateStick(e,t){let n=e-this.stickOrigin.x,r=t-this.stickOrigin.y,i=Math.hypot(n,r);i>56&&(n=n/i*56,r=r/i*56),this.stickKnob.style.transform=`translate(calc(-50% + ${n}px), calc(-50% + ${r}px))`;let a=Math.min(1,i/56),o=a<.15?0:(a-.15)/.85,s=i>0?n/Math.max(i,1e-6):0,c=i>0?r/Math.max(i,1e-6):0;this.moveX=Math.round(s*o*1e3)||0,this.moveY=Math.round(-c*o*1e3)||0,this.heldListener?.()}setKnockdown(e){this.knockdown!==e&&(this.knockdown=e,this.root.classList.toggle(`knockdown`,e),e?(this.placeGetUpPads(),window.addEventListener(`resize`,this.placeGetUpPads)):(window.removeEventListener(`resize`,this.placeGetUpPads),this.setGetUpPrompt(null)))}placeGetUpPads=()=>{let e=Ge(this.root.clientWidth||window.innerWidth,this.root.clientHeight||window.innerHeight,We());for(let[t,n]of this.getUpPads.entries()){let r=t===0?e.left:e.right;Object.assign(n.style,{left:`${r.x}px`,top:`${r.y}px`,width:`${r.width}px`,height:`${r.height}px`})}};setGetUpPrompt(e){for(let t of this.getUpPads)t.classList.toggle(`wanted`,this.knockdown&&e===t.dataset.getupSide)}setEnabled(e,t=e){this.enabled=e,this.root.classList.toggle(`disabled`,!t),this.root.classList.toggle(`resting`,t&&!e),t?e||this.sharedActions.clearSource(`touch`):this.reset()}frame(){return this.enabled?{moveX:this.moveX,moveY:this.moveY,defense:this.guard,actions:[]}:{moveX:0,moveY:0,defense:`none`,actions:[]}}reset(){this.stickPointer=null,this.moveX=0,this.moveY=0,this.body=!1,this.power=!1,this.guard=`none`,this.heldPointers.clear(),this.stickBase.classList.remove(`active`);for(let e of this.root.querySelectorAll(`.pressed`))e.classList.remove(`pressed`);this.sharedActions.clearSource(`touch`)}destroy(){this.reset(),window.removeEventListener(`resize`,this.placeGetUpPads),this.root.remove()}},Xe=[`broken_nose`,`broken_jaw`,`jaw_torn`,`eye_left_out`,`eye_right_out`,`ear_left_torn`,`ear_right_torn`,`face_left_flayed`,`face_right_flayed`,`skull_fractured`,`shoulder_left_dislocated`,`shoulder_right_dislocated`,`arm_left_broken`,`arm_right_broken`,`forearm_left_severed`,`forearm_right_severed`,`arm_left_torn`,`arm_right_torn`,`ribs_left_broken`,`ribs_right_broken`,`liver_ruptured`,`disemboweled`,`knee_left_blown`,`knee_right_blown`];function Ze(e){return Xe.includes(e)}var Qe=[`eyes_out`,`head_burst`,`decapitation`,`spine_rip`,`heart_punch`,`gutting`,`bisection`,`total_gib`],$e=[`nose`,`mouth`,`eye_left`,`eye_right`,`ear_left`,`ear_right`,`skull`,`neck`,`shoulder_left`,`shoulder_right`,`elbow_left`,`elbow_right`,`chest`,`ribs_left`,`ribs_right`,`liver`,`belly`,`waist`,`crotch`,`knee_left`,`knee_right`],et=n.injuries,tt=et.kinds,nt=et.blood.volume,rt=et.blood.stages.map(e=>e.below),it=et.finish.ticks,at=(e,t)=>Array.isArray(e)?e.includes(t):e.has(t);function ot(e){return e.includes(`_left_`)?`left`:e.includes(`_right_`)?`right`:null}function st(e){return e.replace(`_left_`,`_`).replace(`_right_`,`_`)}var ct={broken_nose:`BROKEN NOSE`,broken_jaw:`BROKEN JAW`,jaw_torn:`JAW TORN OFF`,eye_out:`EYE OUT`,ear_torn:`EAR TORN OFF`,face_flayed:`CHEEK FLAYED`,skull_fractured:`SKULL SPLIT OPEN`,shoulder_dislocated:`SHOULDER OUT`,arm_broken:`ARM SNAPPED`,forearm_severed:`FOREARM SEVERED`,arm_torn:`ARM TORN OFF`,ribs_broken:`RIBS CAVED IN`,liver_ruptured:`LIVER RUPTURED`,disemboweled:`DISEMBOWELED`,knee_blown:`KNEE BLOWN OUT`};function lt(e){let t=ot(e),n=ct[st(e)];return t===null?n:`${t.toUpperCase()} ${n}`}var ut={eyes_out:`EYES PUNCHED OUT`,head_burst:`HEAD EXPLODED`,decapitation:`DECAPITATED`,spine_rip:`SPINE RIPPED OUT`,heart_punch:`HEART PUNCHED OUT`,gutting:`GUTTED`,bisection:`TORN IN HALF`,total_gib:`BLOWN TO PIECES`};function dt(e){return ut[e]}function ft(e,t){return et.fatalities[e][t]}function pt(e){if(e===`bled_out`||e===`brain`||e===`gutted`)return e;let t=e.startsWith(`fatality:`)?e.slice(9):null;return t!==null&&Qe.includes(t)?e:null}function mt(e){return e.startsWith(`fatality:`)?e.slice(9):null}function ht(e){let t=mt(e);return t===null?e===`bled_out`?`BLED TO DEATH`:e===`brain`?`BRAIN DESTROYED`:`GUTTED`:dt(t)}function gt(e,t){return at(e,`arm_${t}_torn`)?`torn`:at(e,`forearm_${t}_severed`)?`severed`:at(e,`arm_${t}_broken`)?`broken`:at(e,`shoulder_${t}_dislocated`)?`dislocated`:`whole`}var _t={dislocated:`shoulder_dislocated`,broken:`arm_broken`,severed:`forearm_severed`,torn:`arm_torn`};function vt(e,t){if(gt(e,t)!==`torn`)return t;let n=t===`left`?`right`:`left`;return gt(e,n)===`torn`?null:n}function yt(e){return gt(e,`left`)===`torn`&>(e,`right`)===`torn`}function bt(e,t){let n=gt(e,t);return n===`whole`?0:tt[_t[n]].startup_add??0}var xt=Object.fromEntries(Xe.map(e=>[e,tt[st(e)].move_speed_percent??100]));function St(e,t){let n=e;for(let e of t){let t=xt[e];t!==100&&(n=Math.floor(n*t/100))}return n}function Ct(e){let t=0;for(let n of rt)e0?`-${e.draws}`:``}`}var Tt=e=>e.wins+e.losses+e.draws===0;function Et(e){return Tt(e)?`PRO DEBUT`:`${wt(e)} (${e.knockouts} KO)`}var Dt=class extends Error{name=`ProtocolError`},Ot=2147483647,kt=new TextEncoder;function At(e){let t=0,n=()=>{for(;/\s/u.test(e[t]??``);)t+=1},r=()=>{let n=t;if(e[t++]!==`"`)throw new Dt(`invalid JSON`);for(;t{n();let a=e[t];if(a===`{`){t+=1,n();let a=new Set;if(e[t]===`}`){t+=1;return}for(;;){n();let o=r();if(a.has(o))throw new Dt(`duplicate field ${o}`);if(a.add(o),n(),e[t++]!==`:`)throw new Dt(`invalid JSON`);i(),n();let s=e[t++];if(s===`}`)return;if(s!==`,`)throw new Dt(`invalid JSON`)}}if(a===`[`){if(t+=1,n(),e[t]===`]`){t+=1;return}for(;;){i(),n();let r=e[t++];if(r===`]`)return;if(r!==`,`)throw new Dt(`invalid JSON`)}}if(a===`"`){r();return}let o=e.slice(t),s=/^(?:-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?|true|false|null)/u.exec(o);if(!s)throw new Dt(`invalid JSON`);t+=s[0].length};if(i(),n(),t!==e.length)throw new Dt(`invalid JSON`)}function jt(e){let t,n;if(typeof e==`string`?(t=kt.encode(e),n=e):(t=e instanceof Uint8Array?e:new Uint8Array(e),n=new TextDecoder(`utf-8`,{fatal:!0}).decode(t)),t.byteLength>65536)throw new Dt(`server frame too large`);try{return At(n),JSON.parse(n)}catch(e){throw e instanceof Dt?e:new Dt(`invalid JSON`)}}function Mt(e,t){if(typeof e!=`object`||!e||Array.isArray(e)||Object.getPrototypeOf(e)!==Object.prototype)throw new Dt(`${t} must be an object`);return e}function Nt(e,t,n=[]){let r=new Set([...t,...n]),i=Object.keys(e);if(t.some(t=>!Object.hasOwn(e,t))||i.some(e=>!r.has(e)))throw new Dt(`schema mismatch`)}function L(e,t,n=0,r=Ot){if(!Number.isSafeInteger(e)||er)throw new Dt(`${t} must be a bounded integer`);return e}function Pt(e,t){if(typeof e!=`boolean`)throw new Dt(`${t} must be boolean`);return e}function Ft(e,t,n=255,r=1){if(typeof e!=`string`||e.lengthn||/[\u0000-\u001f\u007f]/u.test(e))throw new Dt(`${t} must be a bounded string`);return e}function It(e,t,n=255){return e===null?null:Ft(e,t,n)}function Lt(e,t,n){if(typeof e!=`string`||!t.includes(e))throw new Dt(`invalid ${n}`);return e}function Rt(e,t,n){if(!Array.isArray(e)||e.length>n)throw new Dt(`${t} must be a bounded array`);return e}var zt=[`left`,`right`],Bt=[`jab`,`straight`,`hook`,`uppercut`],Vt=[`head`,`body`],Ht=[`normal`,`power`],Ut=[`orthodox`,`southpaw`],Wt=[`balanced`,`boxer`,`slugger`,`swarmer`,`counter_puncher`],Gt=[`none`,`guard_high`,`guard_low`,`slip_left`,`slip_right`,`weave`,`pull`],Kt=[`none`,`guard_high`,`guard_low`],qt=[`slip_left`,`slip_right`,`weave`,`pull`,`clinch`,`switch_stance`,`get_up_left`,`get_up_right`,`taunt`,`corner_cut`,`corner_swelling`,`corner_breath`],Jt=[`cut`,`swelling`,`breath`,`balanced`],Yt=[`low_blow`,`headbutt`],Xt=[`countdown`,`fight`,`knockdown`,`foul_recovery`,`referee_down`,`finish`,`rest`,`complete`],Zt=[`ko`,`flash_ko`,`tko`,`death`,`disqualification`,`decision`,`draw`,`forfeit`];function Qt(e){let t=Mt(e,`record`);return Nt(t,[`wins`,`losses`,`draws`,`knockouts`]),{wins:L(t.wins,`record.wins`),losses:L(t.losses,`record.losses`),draws:L(t.draws,`record.draws`),knockouts:L(t.knockouts,`record.knockouts`)}}function $t(e){let t=Mt(e,`player`);Nt(t,[`id`,`name`,`avatar`,`rating`,`connected`],[`cpu`,`record`,`style`]);let n=t.style===void 0?{}:{style:Lt(t.style,Wt,`player style`)},r=t.cpu===void 0?{}:{cpu:Pt(t.cpu,`cpu`)},i=t.record===void 0?{}:{record:Qt(t.record)};return{id:Ft(t.id,`player.id`),name:Ft(t.name,`player.name`,80),avatar:It(t.avatar,`player.avatar`,128),rating:L(t.rating,`rating`),connected:Pt(t.connected,`connected`),...r,...i,...n}}function en(e,t,n=1){let r=Rt(e,`players`,2).map($t);if(r.lengthe.id)).size!==r.length)throw new Dt(`players must be present and distinct`);return r}function tn(e){let t=Mt(e,`trauma`);return Nt(t,[`head`,`body`,`left_eye`,`right_eye`,`left_cut`,`right_cut`,`swelling`,`bleeding`]),{head:L(t.head,`head`,0,1400),body:L(t.body,`body`,0,1200),left_eye:L(t.left_eye,`left_eye`,0,1e3),right_eye:L(t.right_eye,`right_eye`,0,1e3),left_cut:L(t.left_cut,`left_cut`,0,1e3),right_cut:L(t.right_cut,`right_cut`,0,1e3),swelling:L(t.swelling,`swelling`,0,1e3),bleeding:L(t.bleeding,`bleeding`,0,1e3)}}var nn=g;function rn(e,t){return Math.max(-nn,Math.min(nn,L(e,t,-2147483647,Ot)))}function an(e){let t=Rt(e,`injuries`,Xe.length).map(e=>Lt(e,Xe,`injury`));for(let e=1;ee===null)&&[n,r,i,a].some(e=>e!==null))throw new Dt(`partial punch action`);let o=t.action_id===null?null:Ft(t.action_id,`action_id`,32),s=t.action_key===null?null:Ft(t.action_key,`action_key`,64);if([o,s].some(e=>e===null)!==[o,s].every(e=>e===null))throw new Dt(`partial action instance`);if(o!==null&&n===null)throw new Dt(`action instance without class`);let c=t.get_up_prompt===null?null:Lt(t.get_up_prompt,[`get_up_left`,`get_up_right`],`get-up prompt`),l=t.get_up_next_prompt===null?null:Lt(t.get_up_next_prompt,[`get_up_left`,`get_up_right`],`next get-up prompt`),u=L(t.maximum_stamina,`maximum_stamina`,330,1e3),d=L(t.stamina,`stamina`,0,u),f=L(t.get_up_required,`get_up_required`,0,j),p=L(t.facing,`facing`,-1,1);if(p===0)throw new Dt(`invalid facing`);let m=L(t.facing_x,`facing_x`,-1e3,1e3),h=L(t.facing_y,`facing_y`,-1e3,1e3);if(m===0&&h===0)throw new Dt(`invalid facing vector`);return{player_id:Ft(t.player_id,`player_id`),x:L(t.x,`x`,-462,462),y:L(t.y,`y`,-462,462),facing:p,facing_x:m,facing_y:h,velocity_x:rn(t.velocity_x,`velocity_x`),velocity_y:rn(t.velocity_y,`velocity_y`),stance:Lt(t.stance,Ut,`stance`),style:Lt(t.style,Wt,`style`),defense:Lt(t.defense,Gt,`defense`),stamina:d,maximum_stamina:u,conditioning:L(t.conditioning,`conditioning`,0,1e3),guard:L(t.guard,`guard`,0,700),guard_broken:Pt(t.guard_broken,`guard_broken`),poise:L(t.poise,`poise`,0,600),trauma:tn(t.trauma),knockdowns:L(t.knockdowns,`knockdowns`,0,3),warnings:L(t.warnings,`warnings`,0,3),deductions:L(t.deductions,`deductions`,0,1),stunned_ticks:L(t.stunned_ticks,`stunned_ticks`,0,90),is_downed:Pt(t.is_downed,`is_downed`),action:n,action_hand:r,action_target:i,action_power:a,action_id:o,action_key:s,action_start_tick:L(t.action_start_tick,`action_start_tick`,0),action_startup_ticks:L(t.action_startup_ticks,`action_startup_ticks`,0,40),action_active_ticks:L(t.action_active_ticks,`action_active_ticks`,0,10),action_recovery_ticks:L(t.action_recovery_ticks,`action_recovery_ticks`,0,40),action_contact_tick:t.action_contact_tick===null?null:L(t.action_contact_tick,`action_contact_tick`,0),queued_actions:L(t.queued_actions,`queued_actions`,0,1),clinch_startup_ticks:L(t.clinch_startup_ticks,`clinch_startup_ticks`,0,8),clinch_ticks:L(t.clinch_ticks,`clinch_ticks`,0,45),is_foul_recovery_target:Pt(t.is_foul_recovery_target,`is_foul_recovery_target`),taunt_ticks:L(t.taunt_ticks,`taunt_ticks`,0,60),corner_choice:t.corner_choice===null?null:Lt(t.corner_choice,Jt,`corner choice`),get_up_prompt:c,get_up_meter:L(t.get_up_meter,`get_up_meter`,0,256),get_up_required:f,get_up_count:L(t.get_up_count,`get_up_count`,0,10),get_up_window_start_tick:L(t.get_up_window_start_tick,`get_up_window_start_tick`),get_up_window_end_tick:L(t.get_up_window_end_tick,`get_up_window_end_tick`),get_up_next_prompt:l,last_input_sequence:L(t.last_input_sequence,`last_input_sequence`,-1),injuries:an(t.injuries),blood_volume:L(t.blood_volume,`blood_volume`,0,nt)}}function sn(e){let t=Mt(e,`event`);return Nt(t,[`event_id`,`tick`,`kind`,`actor_id`,`target_id`,`amount`,`detail`,`blood`,`direction`,`action_id`]),{event_id:L(t.event_id,`event_id`),tick:L(t.tick,`tick`),kind:Ft(t.kind,`event kind`,32),actor_id:It(t.actor_id,`actor_id`),target_id:It(t.target_id,`target_id`),amount:L(t.amount,`amount`,-1e4,1e4),detail:Ft(t.detail,`detail`,96,0),blood:L(t.blood,`blood`,0,100),direction:L(t.direction,`direction`,-1,1),action_id:t.action_id===null?null:Ft(t.action_id,`action_id`,32)}}function cn(e){let t=Mt(e,`judge card`);Nt(t,[`judge`,`player_one`,`player_two`]);let n=e=>Rt(e,`round scores`,15).map(e=>L(e,`score`,6,10)),r=n(t.player_one),i=n(t.player_two);if(r.length!==i.length)throw new Dt(`scorecard round mismatch`);return{judge:Ft(t.judge,`judge`,80),player_one:r,player_two:i}}function ln(e){let t=Rt(e,`scorecards`,3).map(cn);if(t.length!==3)throw new Dt(`exactly three scorecards required`);return t}function un(e,t){if(t===`draw`!=(e===null))throw new Dt(`incoherent finish result`)}function dn(e){let t=Mt(e,`result`);Nt(t,[`match_id`,`activity_instance_id`,`guild_id`,`player_one_id`,`player_two_id`,`winner_id`,`finish_method`,`round_number`,`tick`,`scorecards`,`player_one_knockdowns`,`player_two_knockdowns`,`player_one_damage`,`player_two_damage`]);let n=Ft(t.player_one_id,`player_one_id`),r=Ft(t.player_two_id,`player_two_id`);if(n===r)throw new Dt(`result players must be distinct`);let i=It(t.winner_id,`winner_id`);if(i!==null&&i!==n&&i!==r)throw new Dt(`invalid winner`);let a=Lt(t.finish_method,Zt,`finish method`);return un(i,a),{match_id:Ft(t.match_id,`match_id`),activity_instance_id:Ft(t.activity_instance_id,`activity_instance_id`),guild_id:Ft(t.guild_id,`guild_id`),player_one_id:n,player_two_id:r,winner_id:i,finish_method:a,round_number:L(t.round_number,`round`,1,15),tick:L(t.tick,`tick`),scorecards:ln(t.scorecards),player_one_knockdowns:L(t.player_one_knockdowns,`knockdowns`,0,3),player_two_knockdowns:L(t.player_two_knockdowns,`knockdowns`,0,3),player_one_damage:L(t.player_one_damage,`damage`),player_two_damage:L(t.player_two_damage,`damage`)}}function fn(e){let t=Mt(e,`referee`);return Nt(t,[`x`,`y`,`facing_x`,`facing_y`,`velocity_x`,`velocity_y`,`stunned_ticks`,`alive`,`trauma`]),{x:L(t.x,`referee.x`,-462,462),y:L(t.y,`referee.y`,-462,462),facing_x:L(t.facing_x,`referee.facing_x`,-1e3,1e3),facing_y:L(t.facing_y,`referee.facing_y`,-1e3,1e3),velocity_x:rn(t.velocity_x,`referee.velocity_x`),velocity_y:rn(t.velocity_y,`referee.velocity_y`),stunned_ticks:L(t.stunned_ticks,`referee.stunned_ticks`,0,90),alive:Pt(t.alive,`referee.alive`),trauma:tn(t.trauma)}}function pn(e){let t=Mt(e,`snapshot`);Nt(t,[`tick`,`phase`,`round_number`,`phase_ticks_remaining`,`fighters`,`referee`,`events`,`result`,`checksum`]);let n=Rt(t.fighters,`fighters`,2).map(on);if(n.length!==2||n[0]?.player_id===n[1]?.player_id)throw new Dt(`snapshot requires two distinct fighters`);let r=Ft(t.checksum,`checksum`,64);if(!/^[a-f0-9]{64}$/u.test(r))throw new Dt(`invalid checksum`);return{tick:L(t.tick,`tick`),phase:Lt(t.phase,Xt,`phase`),round_number:L(t.round_number,`round`,1,15),phase_ticks_remaining:L(t.phase_ticks_remaining,`phase ticks`),fighters:[n[0],n[1]],referee:fn(t.referee),events:Rt(t.events,`events`,256).map(sn),result:t.result===null?null:dn(t.result),checksum:r}}function mn(e){let t=Mt(jt(e),`envelope`);if(t.version!==7)throw new Dt(`unsupported protocol version`);let n=Ft(t.type,`type`,32);if(n===`welcome`){let e=Lt(t.role,[`fighter`,`spectator`],`connection role`),r=Ft(t.player_id,`player_id`),i=t.reconnect_ticket===void 0?{}:{reconnect_ticket:Ft(t.reconnect_ticket,`reconnect_ticket`,4096)};if(e===`fighter`){Nt(t,[`version`,`type`,`role`,`player_id`,`seat`,`rating`,`players`,`server_tick`,`next_sequence`],[`reconnect_ticket`]);let a=en(t.players);if(!a.some(e=>e.id===r))throw new Dt(`welcome fighter is absent`);return{version:7,type:n,role:e,player_id:r,seat:L(t.seat,`seat`,1,2),rating:L(t.rating,`rating`),players:a,server_tick:L(t.server_tick,`server_tick`),next_sequence:L(t.next_sequence,`next_sequence`),...i}}Nt(t,[`version`,`type`,`role`,`player_id`,`players`,`server_tick`],[`reconnect_ticket`]);let a=en(t.players,void 0,0);if(a.some(e=>e.id===r))throw new Dt(`spectator cannot be a fighter`);return{version:7,type:n,role:e,player_id:r,players:a,server_tick:L(t.server_tick,`server_tick`),...i}}if(n===`ticket`)return Nt(t,[`version`,`type`,`reconnect_ticket`,`refresh_id`]),{version:7,type:n,reconnect_ticket:Ft(t.reconnect_ticket,`reconnect_ticket`,4096),refresh_id:Ft(t.refresh_id,`refresh_id`,128,16)};if(n===`waiting`){if(Nt(t,[`version`,`type`,`open_seats`]),t.open_seats!==1&&t.open_seats!==2)throw new Dt(`invalid open seats`);return{version:7,type:n,open_seats:t.open_seats}}if(n===`select`){Nt(t,[`version`,`type`,`deadline_ms`,`players`,`ready`]);let e=en(t.players,2),r=Rt(t.ready,`ready`,2).map(e=>Ft(e,`ready player id`));if(new Set(r).size!==r.length||r.some(t=>!e.some(e=>e.id===t)))throw new Dt(`invalid ready fighters`);return{version:7,type:n,deadline_ms:L(t.deadline_ms,`deadline_ms`,0,6e4),players:[e[0],e[1]],ready:r}}if(n===`ready`){Nt(t,[`version`,`type`,`players`]);let e=en(t.players,2);return{version:7,type:n,players:[e[0],e[1]]}}if(n===`paused`)return Nt(t,[`version`,`type`,`player_id`,`grace_ms`]),{version:7,type:n,player_id:Ft(t.player_id,`player_id`),grace_ms:L(t.grace_ms,`grace_ms`,0,6e4)};if(n===`resumed`)return Nt(t,[`version`,`type`,`player_id`]),{version:7,type:n,player_id:Ft(t.player_id,`player_id`)};if(n===`snapshot`)return Nt(t,[`version`,`type`,`payload`]),{version:7,type:n,payload:pn(t.payload)};if(n===`error`)return Nt(t,[`version`,`type`,`code`]),{version:7,type:n,code:Ft(t.code,`error code`,80)};if(n===`final`)return gn(t,n);throw new Dt(`unsupported server message type`)}function hn(e,t){let n=Object.entries(Mt(e,`punches`));if(n.length!==2||n.some(([e])=>!t.includes(e)))throw new Dt(`punches must count both fighters`);let r=Object.create(null);for(let[e,t]of n){let n=Mt(t,`punch totals`);Nt(n,[`thrown`,`landed`,`jabs_thrown`,`jabs_landed`]);let i=L(n.thrown,`thrown`),a=L(n.landed,`landed`,0,i),o=L(n.jabs_thrown,`jabs_thrown`,0,i);r[e]={thrown:i,landed:a,jabs_thrown:o,jabs_landed:L(n.jabs_landed,`jabs_landed`,0,Math.min(a,o))}}return r}function gn(e,t){Nt(e,[`version`,`type`,`match_id`,`winner_id`,`method`,`round`,`scorecards`,`ratings`],[`punches`]);let n=Mt(e.ratings,`ratings`),r=Object.entries(n);if(r.length!==2)throw new Dt(`final requires two ratings`);let i=Object.create(null);for(let[e,t]of r){Ft(e,`rating player id`);let n=Mt(t,`rating`);Nt(n,[`before`,`after`]),i[e]={before:L(n.before,`before`),after:L(n.after,`after`)}}let a=It(e.winner_id,`winner_id`);if(a!==null&&!Object.hasOwn(i,a))throw new Dt(`winner absent from ratings`);let o=Lt(e.method,Zt,`finish method`);un(a,o);let s=e.punches===void 0?{}:{punches:hn(e.punches,Object.keys(i))};return{version:7,type:t,match_id:Ft(e.match_id,`match_id`),winner_id:a,method:o,round:L(e.round,`round`,1,15),scorecards:ln(e.scorecards),ratings:i,...s}}function _n(e,t,n){return JSON.stringify({version:7,type:`input`,sequence:L(e,`sequence`),client_tick:L(t,`client tick`),move:{x:Math.max(-1e3,Math.min(1e3,Math.round(Number.isFinite(n.moveX)?n.moveX:0))),y:Math.max(-1e3,Math.min(1e3,Math.round(Number.isFinite(n.moveY)?n.moveY:0)))},defense:Lt(n.defense,Kt,`held defense`),actions:n.actions.slice(0,4).map(e=>{let t=e.id===void 0?{}:{id:e.id.slice(0,32)};return e.kind===`punch`?{kind:`punch`,hand:Lt(e.hand,zt,`hand`),class:Lt(e.class,Bt,`class`),target:Lt(e.target,Vt,`target`),power:Lt(e.power,Ht,`power`),...t}:e.kind===`foul`?{kind:`foul`,foul:Lt(e.foul,Yt,`foul`),...t}:{kind:Lt(e.kind,qt,`action`),...t}})})}function vn(e,t){return JSON.stringify({version:7,type:`style`,style:Lt(e,Wt,`fighter style`),ready:t===!0})}var yn=[`rookie`,`contender`,`champion`];function bn(e){return JSON.stringify({version:7,type:`cpu`,level:Lt(e,yn,`computer level`)})}function xn(e){let t=Mt(e,`bootstrap`);if(Nt(t,[`client_id`,`state`,`protocol`,`simulation`]),t.protocol!==7)throw new Dt(`unsupported protocol version`);let n=Mt(t.simulation,`simulation`);return Nt(n,[`tick_rate`,`ring_half_width`,`ring_half_height`]),{client_id:Ft(t.client_id,`client_id`,36),state:Ft(t.state,`state`,128),protocol:7,simulation:{tick_rate:L(n.tick_rate,`tick rate`,1,120),ring_half_width:L(n.ring_half_width,`ring width`,1),ring_half_height:L(n.ring_half_height,`ring height`,1)}}}function Sn(e){let t=Mt(e,`token response`);Nt(t,[`access_token`,`ticket`,`player`]);let n=Mt(t.player,`player`);return Nt(n,[`id`,`name`,`avatar`,`rating`]),{access_token:Ft(t.access_token,`access token`,4096),ticket:Ft(t.ticket,`ticket`,4096),player:{id:Ft(n.id,`id`),name:Ft(n.name,`name`,80),avatar:It(n.avatar,`avatar`,128),rating:L(n.rating,`rating`)}}}var Cn=[`Power`,`Hand speed`,`Footwork`,`Reach`,`Stamina`,`Defence`],wn=[{style:`balanced`,name:`Balanced`,tag:`BALANCED`,detail:`Even at everything, no holes to exploit.`,stats:[3,3,3,3,3,3]},{style:`boxer`,name:`Boxer`,tag:`BOXER`,detail:`Snappy jab and long reach, lighter hands.`,stats:[2,4,3,4,3,3]},{style:`slugger`,name:`Slugger`,tag:`SLUGGER`,detail:`Heavy hands, hard chin, slow feet, tires sooner.`,stats:[5,2,2,3,2,4]},{style:`swarmer`,name:`Swarmer`,tag:`SWARMER`,detail:`Quick feet and head, digs to the body, never stops.`,stats:[2,4,4,3,4,3]},{style:`counter_puncher`,name:`Counter-puncher`,tag:`COUNTER`,detail:`Slips and parries, makes every miss cost.`,stats:[2,3,3,3,3,5]}],Tn=e=>wn.find(t=>t.style===e)??wn[0];function En(e){return e===void 0||e===`balanced`?null:Tn(e).tag}function Dn(e){return e===void 0||e===`balanced`?null:`the ${Tn(e).name.toLowerCase()}`}var On=`hands.style.v1`;function kn(e=jn()){try{let t=e?.getItem(On);return Wt.find(e=>e===t)??`balanced`}catch{return`balanced`}}function An(e,t=jn()){try{t?.setItem(On,e)}catch{}}function jn(){try{return window.localStorage}catch{return null}}var Mn=400,Nn={Digit1:0,Digit2:1,Digit3:2,Digit4:3,Digit5:4,Numpad1:0,Numpad2:1,Numpad3:2,Numpad4:3,Numpad5:4},Pn=.6;function Fn(){try{return[...navigator.getGamepads?.()??[]].find(e=>e!==null&&e.connected&&e.mapping===`standard`)??null}catch{return null}}function In(e){let t=new Set;if(e===null)return t;let n=t=>e.buttons[t]?.pressed===!0,r=e.axes[0]??0,i=e.axes[1]??0;return(n(12)||n(14)||r<-.6||i<-.6)&&t.add(`previous`),(n(13)||n(15)||r>Pn||i>Pn)&&t.add(`next`),n(0)&&t.add(`settle`),t}var Ln=class{send;now;element;buttons=new Map;clock;status;visible=!1;choosing=!1;highlighted;settled=!1;deadlineAt=0;timer=null;padFrame=0;padHeld=new Set;context=null;keydown=e=>{if(!this.visible||!this.choosing||e.repeat||e.ctrlKey||e.metaKey||e.altKey)return;let t=e.target;if(t instanceof HTMLElement&&t!==document.body&&!this.element.contains(t))return;let n=Nn[e.code];n===void 0?e.code===`ArrowRight`||e.code===`ArrowDown`?(e.preventDefault(),this.move(this.neighbour(1))):e.code===`ArrowLeft`||e.code===`ArrowUp`?(e.preventDefault(),this.move(this.neighbour(-1))):e.code!==`Enter`&&e.code!==`Space`||t instanceof HTMLButtonElement||(e.preventDefault(),this.pick(this.highlighted,!0)):(e.preventDefault(),this.pick(wn[n].style,!0))};constructor(e,t,n=()=>performance.now(),r=kn()){this.send=t,this.now=n,this.highlighted=r;let i=document.createElement(`section`);i.className=`style-picker`,i.dataset.stylePicker=``,i.hidden=!0,i.setAttribute(`aria-label`,`Pick how your fighter boxes`);let a=document.createElement(`header`),o=document.createElement(`p`);o.className=`style-title`,o.textContent=`CHOOSE YOUR STYLE`,this.clock=document.createElement(`p`),this.clock.className=`style-clock`,a.append(o,this.clock);let s=document.createElement(`div`);s.className=`style-cards`;for(let[e,t]of wn.entries()){let n=document.createElement(`button`);n.type=`button`,n.dataset.style=t.style,n.setAttribute(`aria-pressed`,`false`);let r=document.createElement(`kbd`);r.textContent=String(e+1);let i=document.createElement(`strong`);i.textContent=t.name;let a=document.createElement(`span`);a.textContent=t.detail;let o=document.createElement(`ul`);o.className=`style-stats`;for(let[e,n]of t.stats.entries()){let t=document.createElement(`li`);t.setAttribute(`aria-label`,`${Cn[e]} ${n} of 5`);let r=document.createElement(`small`);r.textContent=Cn[e];let i=document.createElement(`i`);i.dataset.value=String(n),t.append(r,i),o.append(t)}n.append(r,i,a,o),n.addEventListener(`click`,()=>this.pick(t.style,!0)),s.append(n),this.buttons.set(t.style,n)}this.status=document.createElement(`p`),this.status.className=`style-status`,this.status.setAttribute(`role`,`status`),i.append(a,s,this.status),e.append(i),this.element=i,window.addEventListener(`keydown`,this.keydown)}update(e,t,n){if(e===null){this.setVisible(!1),this.context=null,this.settled=!1;return}let r=this.context===null||!this.choosing&&n===`fighter`;this.context?.select!==e&&(this.deadlineAt=this.now()+e.deadline_ms-Mn),this.context={select:e,viewerId:t},this.choosing=n===`fighter`&&t!==null,this.settled=this.choosing&&(this.settled||e.ready.includes(t));let i=e.players.find(e=>e.id===t)?.style;this.settled&&i!==void 0&&(this.highlighted=i),r&&this.choosing&&!this.settled&&this.send(this.highlighted,!1),this.setVisible(!0),this.render()}pick(e,t){!this.choosing||this.settled||this.closed||(this.highlighted=e,this.send(e,t)&&(t&&(this.settled=!0),this.render()))}get closed(){return this.now()>=this.deadlineAt}neighbour(e){return wn[(wn.findIndex(e=>e.style===this.highlighted)+e+wn.length)%wn.length].style}move(e){this.pick(e,!1),this.settled||this.buttons.get(this.highlighted)?.focus()}render(){let e=this.context;if(e===null)return;let{select:t,viewerId:n}=e;for(let e of wn){let t=this.buttons.get(e.style),n=this.choosing&&e.style===this.highlighted;t.disabled=!this.choosing||this.settled||this.closed,t.setAttribute(`aria-pressed`,String(n)),t.toggleAttribute(`data-chosen`,n),t.tabIndex=e.style===this.highlighted?0:-1}let r=`${Math.max(0,Math.ceil((this.deadlineAt-this.now())/1e3))}s`;this.clock.textContent!==r&&(this.clock.textContent=r);let i=t.players.filter(e=>e.id!==n&&(!e.connected||t.ready.includes(e.id))).map(e=>e.connected?`${e.name} is ready.`:`Waiting for ${e.name} to reconnect.`).join(` `),a=this.choosing?this.settled?i.length>0?`Ready as ${Tn(this.highlighted).name}. ${i}`:`Ready as ${Tn(this.highlighted).name}. Waiting for your opponent.`:i.length>0?`${i} Tap a style or press Enter to settle on yours.`:`Tap a style, or use the arrow keys and Enter.`:i.length>0?`The fighters are choosing. ${i}`:`The fighters are choosing their styles.`;this.status.textContent!==a&&(this.status.textContent=a)}setVisible(e){this.visible!==e&&(this.visible=e,this.element.hidden=!e,e?(this.timer=window.setInterval(()=>this.render(),250),this.padHeld=In(Fn()),this.padFrame=requestAnimationFrame(()=>this.pollPad())):(this.timer!==null&&window.clearInterval(this.timer),this.timer=null,cancelAnimationFrame(this.padFrame)))}pollPad(){if(!this.visible)return;let e=In(Fn());for(let t of e)this.padHeld.has(t)||(t===`settle`?this.pick(this.highlighted,!0):this.move(this.neighbour(t===`next`?1:-1)));this.padHeld=e,this.padFrame=requestAnimationFrame(()=>this.pollPad())}destroy(){this.setVisible(!1),window.removeEventListener(`keydown`,this.keydown),this.element.remove()}},Rn=/^[0-9]{17,20}$/u,zn=/^[A-Za-z0-9_]{1,128}$/u,Bn=`https://cdn.discordapp.com/avatars/`,Vn=128,Hn=8;function Un(e){return e.avatar===null||!Rn.test(e.id)||!zn.test(e.avatar)?null:new URL(`${e.id}/${e.avatar}.png?size=${Vn}`,Bn).href}function Wn(e){let t=Array.from(e).find(e=>/[\p{L}\p{N}]/u.test(e));return t===void 0?`?`:t.toUpperCase()}var Gn=class{create;pictures=new Map;addresses=new Map;constructor(e=()=>new Image){this.create=e}get(e){if(e===void 0)return null;let t=this.addresses.get(e.id);(t===void 0||t.avatar!==e.avatar)&&(this.addresses.size>=Hn&&this.addresses.clear(),t={avatar:e.avatar,url:Un(e)},this.addresses.set(e.id,t));let n=t.url;if(n===null)return null;let r=this.pictures.get(n);if(r!==void 0)return r.ready?r.image:null;if(this.pictures.size>=Hn){let e=this.pictures.entries().next().value;e!==void 0&&this.drop(e[0],e[1])}let i={image:this.create(),ready:!1};return this.pictures.set(n,i),i.image.crossOrigin=`anonymous`,i.image.referrerPolicy=`no-referrer`,i.image.decoding=`async`,i.image.onload=()=>{i.ready=i.image.naturalWidth>0},i.image.onerror=()=>{i.ready=!1},i.image.src=n,null}dispose(){for(let[e,t]of[...this.pictures])this.drop(e,t);this.addresses.clear()}drop(e,t){t.image.onload=null,t.image.onerror=null,t.ready=!1,this.pictures.delete(e)}},Kn=`POWER ARMED`,qn=1e3,Jn=e=>e.reduce((e,t)=>e+t,0),Yn=(e,t,n)=>{if(e.measureText(t).width<=n)return t;let r=t;for(;r.length>1&&e.measureText(`${r}…`).width>n;)r=r.slice(0,-1);return`${r}…`},Xn=(e,t,n,r)=>{for(let i=n;i>r;--i)if(e(i)<=t)return i;return r},Zn=`#ff7066`;function Qn(e,t,n,r,i,a){let o=i.spentBelow!==void 0&&i.value0&&(e.globalAlpha=i.alarm*.6,e.fillStyle=`#ff4632`,e.fillRect(t-1,n-1,r+2,11),e.globalAlpha=1),o){e.beginPath();for(let i=-9;i.5?`#ffffff`:`#ff9a90`,e.fillText(r,t,n-4)}}function er(e,t,n,r,i,a,o){let s=()=>{e.beginPath(),e.arc(t,n,r,0,Math.PI*2),e.closePath()};e.save(),s(),e.fillStyle=`#0b1220`,e.fill(),i===null?(e.globalAlpha=.4,e.fillStyle=o,e.fill(),e.globalAlpha=1,e.fillStyle=`#f5f8ff`,e.textAlign=`center`,e.font=`800 ${Math.round(r*1.1)}px Inter, system-ui, sans-serif`,e.fillText(Wn(a),t,n+r*.39)):(e.save(),e.clip(),e.drawImage(i,t-r,n-r,r*2,r*2),e.restore()),s(),e.lineWidth=Math.max(1.5,r/9),e.strokeStyle=o,e.stroke(),e.restore()}function tr(e,t=[]){let n=e.left_eye>=p&&!t.includes(`eye_left_out`),r=e.right_eye>=p&&!t.includes(`eye_right_out`);return n&&r?`BOTH EYES SHUT`:n?`LEFT EYE SHUT`:r?`RIGHT EYE SHUT`:null}var nr={cut:`closing the cut`,swelling:`icing the swelling`,breath:`catching breath`,balanced:`a little of everything`};function rr(e){let t=e.flatMap((e,t)=>e.corner_choice===null?[]:[`${t===0?`Blue`:`Red`}: ${nr[e.corner_choice]}`]);return t.length===0?null:t.join(` · `)}function ir(e,t,n,r){e.save(),e.font=`900 12px Inter, system-ui, sans-serif`;let i=e.measureText(Kn).width+16,a=r?t-i:t;e.shadowColor=`rgba(255,120,30,0.9)`,e.shadowBlur=12;let o=e.createLinearGradient(0,n,0,n+18);o.addColorStop(0,`#ffd36b`),o.addColorStop(1,`#ff6a1a`),e.fillStyle=o,e.fillRect(a,n,i,18),e.shadowBlur=0,e.fillStyle=`#2a0c00`,e.textAlign=`left`,e.fillText(Kn,a+8,n+13),e.restore()}function ar(e,t,n,r,i){e.save(),e.font=`800 9px Inter, system-ui, sans-serif`;let a=e.measureText(r).width+12,o=i?t-a:t;e.fillStyle=`rgba(150,22,18,0.92)`,e.fillRect(o,n,a,14),e.fillStyle=`#ffe8e3`,e.textAlign=`left`,e.fillText(r,o+6,n+10),e.restore()}var or={arm_torn:0,disemboweled:1,forearm_severed:2,skull_fractured:3,jaw_torn:4,face_flayed:5,eye_out:6,ear_torn:7,arm_broken:8,knee_blown:9,ribs_broken:10,broken_jaw:11,broken_nose:12,liver_ruptured:13,shoulder_dislocated:14},sr=8,cr=e=>or[st(e)],lr={wide:4,compact:3};function ur(e){return e.filter(t=>t!==`broken_jaw`||!e.includes(`jaw_torn`)).sort((e,t)=>cr(e)-cr(t))}function dr(e,t){let n=e.slice(0,t).map(lt);return e.length>t&&n.push(`+${e.length-t}`),n}var fr=14,pr=3,mr=`800 9px Inter, system-ui, sans-serif`,hr={grave:`#c4160f`,plain:`rgba(122,18,14,0.92)`,count:`rgba(52,8,8,0.92)`},gr={grave:`#ffffff`,plain:`#ffe8e3`,count:`#ffb1a8`};function _r(e,t,n,r,i,a){e.fillStyle=hr[a],e.fillRect(t,n,r,fr),e.fillStyle=gr[a],e.fillText(i,t+6,n+10)}function vr(e,t,n,r,i,a,o){if(i.length===0)return n;let s=ur(i),c=Math.min(a,s.length),l=dr(s,a).map(e=>({label:e,width:0,offset:0,row:0}));e.save(),e.font=mr,e.textAlign=`left`;let u=0,d=0;for(let t of l)t.label=Yn(e,t.label,r-12),t.width=e.measureText(t.label).width+12,d>0&&d+pr+t.width>r&&(u+=1,d=0),t.offset=d===0?0:d+pr,t.row=u,d=t.offset+t.width;let f=n-(u+1)*17+pr;return l.forEach((n,r)=>{let i=r>=c?`count`:cr(s[r])r)break;_r(e,o?t-p-f:t+p,n,f,d,a===null||cr(a)>=sr?`plain`:`grave`),l=p+f,u+=1}if(u>0&&u0?`${t.knockdowns} KD`:null,c=[s,t.warnings>0?`${t.warnings} WARNING${t.warnings===1?``:`S`}`:null,t.deductions>0?`−${t.deductions} PT${t.deductions===1?``:`S`}`:null,r>0?`${r} INJUR${r===1?`Y`:`IES`}`:null],l=[s,t.warnings>0?`W${t.warnings}`:null,t.deductions>0?`−${t.deductions}`:null,r>0?`${r} INJ`:null],u=(...e)=>e.filter(e=>e!==null).join(` · `),d=n?[u(i,...l),u(...l)]:[u(i,a,o,...c),u(i,o,...c),u(i,...c),u(i,...l),u(...l)];return d.filter((e,t)=>e!==``&&d.indexOf(e)===t)}var kr=168;function Ar(e,t,n,r,i,a,o,s,c,l,u=!1){e.save(),e.beginPath(),s?(e.moveTo(t+14,n),e.lineTo(t+r,n),e.lineTo(t+r-14,n+62),e.lineTo(t,n+62)):(e.moveTo(t,n),e.lineTo(t+r-14,n),e.lineTo(t+r,n+62),e.lineTo(t+14,n+62)),e.closePath(),e.fillStyle=`rgba(3,6,12,0.82)`,e.fill(),e.strokeStyle=`rgba(190,200,220,0.22)`,e.lineWidth=1,e.stroke(),e.fillStyle=c,e.fillRect(s?t+r-5:t,n+4,5,54);let d=l===void 0?20:51;l!==void 0&&er(e,s?t+r-11-16:t+11+16,n+4+16,16,l,i,c);let f=s?t+r-d:t+d;e.textAlign=s?`right`:`left`,e.fillStyle=`#f5f8ff`;let p=i.toUpperCase(),m=r-d-24;e.font=`800 ${Xn(t=>(e.font=`800 ${t}px Inter, system-ui, sans-serif`,e.measureText(p).width),m,16,11)}px Inter, system-ui, sans-serif`,e.fillText(Yn(e,p,m),f,n+21);let h=r-d-14;if(u)e.fillStyle=`#ffb347`,e.font=`900 10px Inter, system-ui, sans-serif`,e.fillText(Yn(e,Kn,h),f,n+35);else{e.fillStyle=`#93a3bd`;let t=(t,n)=>(e.font=`600 ${n}px Inter, system-ui, sans-serif`,e.measureText(t).width),r=a.find(e=>t(e,8)<=h)??a.at(-1)??``;e.font=`600 ${Xn(e=>t(r,e),h,10,8)}px Inter, system-ui, sans-serif`,e.fillText(Yn(e,r,h),f,n+35)}let g=(r-52)/o.length,_=o.length*g+(o.length-1)*12,v=s?t+r-20-_:t+20;o.forEach((t,r)=>{Qn(e,v+(g+12)*r,n+48,g,t,s)}),e.restore()}function jr(e,t,n,r,i,a){let o=kr;e.save(),e.beginPath(),e.moveTo(t-o/2+12,n),e.lineTo(t+o/2-12,n),e.lineTo(t+o/2,n+29),e.lineTo(t+o/2-12,n+58),e.lineTo(t-o/2+12,n+58),e.lineTo(t-o/2,n+29),e.closePath(),e.fillStyle=`rgba(4,6,12,0.88)`,e.fill();let s=e.createLinearGradient(t-o/2,n,t+o/2,n+58);s.addColorStop(0,`#8a6a26`),s.addColorStop(.5,`#f6d57a`),s.addColorStop(1,`#8a6a26`),e.strokeStyle=s,e.lineWidth=2,e.stroke(),e.textAlign=`center`,e.fillStyle=`#ffffff`,e.font=`800 22px ui-monospace, monospace`,e.fillText(r,t,n+27),e.fillStyle=`#f6d57a`,e.font=`800 12px Inter, system-ui, sans-serif`,e.fillText(i,t,n+44),a!==`FIGHT`&&(e.fillStyle=`#93a3bd`,e.font=`700 9px Inter, system-ui, sans-serif`,e.fillText(a,t,n+55)),e.restore()}var Mr=78,Nr=50,Pr=.22,Fr=e=>e<480?Nr:Mr,Ir=(e,t)=>Math.max(e<640?112:56,t*.1)+Fr(t)/2-t/2,Lr={upright:{bottom:118,height:274,moves:0,grid:118},landscape:{bottom:118,height:196,moves:102,grid:118},short:{bottom:112,height:154,moves:86,grid:92},shortHeight:350,reach:216,movesReach:134},Rr=(e,t)=>e<=t?Lr.upright:t<=Lr.shortHeight?Lr.short:Lr.landscape;function zr(e,t,n){let r=Rr(e,t);return n<=t-r.bottom-r.height?0:Lr.reach+(r.moves>0&&n>t-r.bottom-r.moves?Lr.movesReach:0)}var Br=160;function Vr(e,t,n=!1){let r=Fr(t),i=t/2+Ir(e,t)-r/2,a=Math.min(320,e-24),o=e/2+a/2;if(n&&e<=t)zr(e,t,i+r+8)>0&&(r=Nr);else if(n){let n=e<640?Math.min(e/2-kr/2-8,e-zr(e,t,56+r)):0,s=n-12>=Br;s&&(i=56);let c=s?n:e-zr(e,t,i+r);o>c&&(a=Math.min(a,c-12),o=c)}return{x:o-a,y:i,width:a,height:r}}var Hr={width:560,height:360,shortest:150},Ur=112;function Wr(e,t,n=!1){let r=n?Ge(e,t,We()):null,i=e<=t,a=r!==null&&i?Math.min(t-Ur,r.left.y-8):t-Ur,o=r!==null&&!i?r.right.x-r.left.x-r.left.width-24:e-24,s=Math.min(Hr.height,Math.max(Hr.shortest,a-56)),c=Math.max(56,Math.min(Math.max(t*.24,fi(t,e<640)+34),a-s)),l=Math.min(Hr.width,o);return{x:e/2-l/2,y:c,width:l,height:s}}var Gr={perfect:{word:`PERFECT`,color:`#ffd24a`},good:{word:`GOOD`,color:`#7dffa8`},early:{word:`EARLY`,color:`#8fc3ff`},late:{word:`LATE`,color:`#ffad5c`},wrong:{word:`WRONG SIDE`,color:`#ff6b6b`}},Kr=44,qr=64,Jr=[``,`1st`,`2nd`,`3rd`],Yr={get_up_left:`←`,get_up_right:`→`},Xr={plain:{ring:`#ffffff`,disc:`#16233a`,arrow:`#fff4cf`},good:{ring:`#7dffa8`,disc:`#1d6a3f`,arrow:`#e4ffee`},perfect:{ring:`#ffd24a`,disc:`#7a5a08`,arrow:`#fff8dc`}},Zr=[6,7],Qr=[3,3],$r=[];function ei(e,t,n,r){e.beginPath(),e.arc(t,n,r,0,Math.PI*2)}function ti(e,t,n,r){let{x:i,y:a,width:o,height:s}=t,c=s/Hr.height,l=e=>a+e*c,u=a+s-40,d=l(52),f=e=>Math.min(c,(e-d)/2/108),p=f(u-26),m=o-16-(28+216*p+54*p+16)>=150,h=m?u-26:u-54,g=m?p:f(h),_=n.verdict===null?1/0:n.nowMs-n.verdict.atMs,v=_<1100?n.verdict:null,y=v===null?null:Gr[v.detail];e.save(),e.fillStyle=`rgba(3,6,12,0.88)`,e.fillRect(i,a,o,s),e.strokeStyle=r&&y!==null&&_<220?y.color:`rgba(246,213,122,0.5)`,e.lineWidth=2,e.strokeRect(i+2,a+2,o-4,s-4),e.textAlign=`left`,e.fillStyle=`#ffd77a`,n.count>=1?(e.font=`800 13px Inter, system-ui, sans-serif`,e.fillText(`COUNT`,i+18,l(36)),e.font=`900 ${Math.round(40*Math.max(.75,c))}px Inter, system-ui, sans-serif`,e.fillText(String(n.count),i+76,l(42))):(e.font=`900 ${Math.round(32*Math.max(.75,c))}px Inter, system-ui, sans-serif`,e.fillText(`GET UP!`,i+18,l(42)));for(let t=1;t<=10;t+=1){ei(e,i+o-22-(10-t)*14,l(24),5);let r=t===10?`#ff6b6b`:`#ffd77a`;t<=n.count?(e.fillStyle=r,e.fill()):(e.strokeStyle=t===10?r:`rgba(210,220,235,0.55)`,e.lineWidth=1.5,e.stroke())}e.textAlign=`right`,e.fillStyle=`#aebbd0`,e.font=`700 11px Inter, system-ui, sans-serif`,e.fillText(n.count>=10?`TEN`:`${10-n.count} LEFT TO TEN`,i+o-16,l(46));let b=Kr*g,x=qr*g,S=m?i+28+b+x:i+o/2-26*g,C=(d+h)/2,w=x/te,T=n.prompt,E=``,D=`#c8d3e6`,O=!1;if(e.textAlign=`center`,n.risen||T===null)ei(e,S,C,b),e.fillStyle=n.risen?`#1d6a3f`:`#1a2130`,e.fill(),e.fillStyle=n.risen?`#7dffa8`:`#6f7d94`,e.font=`900 ${Math.round(30*g)}px Inter, system-ui, sans-serif`,e.fillText(n.risen?`UP`:`–`,S,C+11*g),E=n.risen?`ON YOUR FEET`:`NO MORE PROMPTS`,D=n.risen?`#7dffa8`:`#c8d3e6`;else{let t=T.beat-n.pressTick,r=M.zoneTicks+.5,i=n.pressTick=-r-M.lateTicks&&(e.lineWidth=Math.max(3,5*g),e.strokeStyle=a.ring,ei(e,S,C,Math.max(4,b+Math.min(te,t)*w)),e.stroke(),E=O?`NOW`:t>0?`WAIT FOR IT`:`TOO LATE`,D=O?a.ring:t>0?`#eaf1ff`:`#ffad5c`),T.next!==null){let t=S+b+x+36*g;e.globalAlpha=.5,e.setLineDash(Qr),e.lineWidth=1.5,e.strokeStyle=`#aebbd0`,ei(e,t,C,18*g),e.stroke(),e.setLineDash($r),e.fillStyle=`#aebbd0`,e.font=`700 ${Math.round(22*g)}px Inter, system-ui, sans-serif`,e.fillText(Yr[T.next],t,C+8*g),e.font=`700 10px Inter, system-ui, sans-serif`,e.fillText(`NEXT`,t,C+18*g+12),e.globalAlpha=1}}let k=m?S+b+x+54*g+16:i+16,ee=i+o-16-k,A=k+ee/2,j=v===null?``:v.amount===0?`no score`:`${v.amount>0?`+`:`−`}${Math.abs(v.amount)}`;if(y!==null&&!(O&&_>200)){let t=r&&_<160?1+.2*(1-_/160):1;e.save(),e.translate(A,m?C:u-30),e.scale(t,t),e.fillStyle=y.color,Ni(e,m?y.word:`${y.word} ${j}`,0,0,ee,900,m?32:26,13),e.restore(),m&&(e.fillStyle=y.color,e.font=`800 20px Inter, system-ui, sans-serif`,e.fillText(j,A,C+28))}else E!==``&&(e.fillStyle=D,Ni(e,E,A,m?C+10:u-30,ee,900,m?28:24,12));let ne=T?.side??null,re=n.risen?`Up before ten: take the count, then box`:ne===null?`The count runs on to ten`:`${n.touch?`Tap ${ze[ne]}`:`Press ${Ae[ne]}`} as the ring closes · one press a count`;e.fillStyle=`#eaf1ff`,Ni(e,re,i+o/2,u,o-32,800,20,11);let ie=Math.max(1,n.required),N=Math.max(0,Math.min(ie,n.meter)),ae=Math.max(0,ie-n.meter),oe=v!==null&&v.amount>0?v.amount:0,se=v!==null&&v.amount<0?-v.amount:0,ce=Math.min(24,(o-40-96)/ie);e.fillStyle=`rgba(2,4,9,0.9)`,e.fillRect(i+16,a+s-33,ce*ie+2,16);for(let t=0;t=N-oe?`#ffd24a`:`#3ccf78`:t0?` + head damage ${ue}`:``} · PERFECT counts ${M.perfect}`;e.textAlign=`left`,e.fillStyle=`#93a3bd`,e.font=`600 10px Inter, system-ui, sans-serif`,e.fillText(Yn(e,de,o-32),i+16,a+s-6),e.restore()}function ni(e,t,n,r){let i=t.height===Nr,a=t.x+t.width/2;e.fillStyle=`rgba(3,6,12,0.88)`,e.fillRect(t.x,t.y,t.width,t.height),e.strokeStyle=`rgba(246,213,122,0.45)`,e.lineWidth=1.5,e.strokeRect(t.x+2,t.y+2,t.width-4,t.height-4),e.textAlign=`center`,e.fillStyle=`#ffd77a`,Ni(e,n,a,t.y+(i?22:34),t.width-24,800,i?17:22,12),e.fillStyle=`#c8d3e6`,e.font=`600 ${i?11:12}px Inter, system-ui, sans-serif`,e.fillText(Yn(e,r,t.width-24),a,t.y+(i?39:58))}var ri=class{fightTicks=null;round=0;ticks(e){return e.round_number!==this.round&&(this.round=e.round_number,this.fightTicks=null),e.phase===`fight`&&(this.fightTicks=e.phase_ticks_remaining),(e.phase===`knockdown`||e.phase===`foul_recovery`||e.phase===`referee_down`||e.phase===`finish`||e.phase===`complete`)&&this.fightTicks!==null?this.fightTicks:e.phase_ticks_remaining}},ii=()=>({thrown:0,landed:0,jabsThrown:0,jabsLanded:0});function ai(e,t){return e.action_id!==null&&t.some(t=>(t.kind===`block`||t.kind===`perfect_block`)&&t.tick===e.tick&&t.action_id===e.action_id&&t.actor_id===e.target_id)}var oi=class{stats=new Map;totals=new Map;record(e,t=[]){if(e.kind===`bell`)e.detail===`round_start`&&this.stats.clear();else if(e.actor_id!==null){if(e.kind===`punch_start`){let t=+(e.detail.split(`:`)[1]===`jab`);for(let n of[this.entry(this.stats,e.actor_id),this.entry(this.totals,e.actor_id)])n.thrown+=1,n.jabsThrown+=t}else if((e.kind===`hit`||e.kind===`counter_hit`)&&!ai(e,t)){let t=+(e.detail.split(`:`)[0]===`jab`);for(let n of[this.entry(this.stats,e.actor_id),this.entry(this.totals,e.actor_id)])n.landed+=1,n.jabsLanded+=t}}}get(e){return this.stats.get(e)??ii()}total(e){return this.totals.get(e)??ii()}entry(e,t){let n=e.get(t);return n===void 0&&(n=ii(),e.set(t,n)),n}};function si(e){let t=e.method.replaceAll(`_`,` `).toUpperCase();if(e.method!==`decision`&&e.method!==`draw`)return t;let n=0,r=0,i=0;for(let t of e.scorecards){let e=Jn(t.player_one),a=Jn(t.player_two);e>a?n+=1:a>e?r+=1:i+=1}let a=e.scorecards.length;return a===0?t:e.method===`draw`?i===a?`UNANIMOUS DRAW`:n===r?`SPLIT DRAW`:`MAJORITY DRAW`:Math.max(n,r)===a?`UNANIMOUS DECISION`:i>0?`MAJORITY DECISION`:`SPLIT DECISION`}var ci=new Set([`ko`,`flash_ko`,`tko`,`death`]),li=3.6,ui=2.4;function di(e){return e===null?0:ci.has(e.method)?li:e.method===`disqualification`?ui:0}var fi=(e,t)=>Math.max(e*.16,(t?112:56)+40),pi=(e,t)=>e!==null&&e>=(t?100:120),mi=`FINISH HIM!`,hi=`Impact, "Arial Black", Inter, system-ui, sans-serif`,gi=2.2,_i=.82,vi={name:15,nameGap:24,bar:10,foot:42},yi={name:11,nameGap:15,bar:6,foot:26},bi=28,xi=160;function Si(e,t,n=!1){let r=e<640?118:60,i=Math.round(Math.min(120,t*.17,(e-32)/5)),a=(e,t,n,r,i)=>{let a=i+Math.round(e*_i);return{centre:n,maxWidth:r,size:e,baseline:a,bottom:a+(t?yi:vi).foot,dense:t}};if(!n)return a(i,!1,e/2,e-32,r);let o=Rr(e,t),s=t-o.bottom-o.height;for(let n of[!1,!0]){let c=null;for(let l of o.moves>0?[s,t-o.bottom-o.moves]:[s]){let o=Math.min(i,Math.floor((l-r-(n?yi:vi).foot)/_i));if(o=xi&&(c={...s,maxWidth:e-2*u})}if(c!==null)return c}let c=Vr(e,t,!0);return a(Math.max(12,Math.min(i,Math.floor((c.height-yi.foot-4)/_i))),!0,c.x+c.width/2,c.width,c.y+2)}function Ci(e,t=null){let[n,r]=e;return t!==null&&(n.player_id===t||r.player_id===t)?n.player_id===t?n:r:n.poise===0==(r.poise===0)?n.knockdowns===r.knockdowns?n.stunned_ticks===r.stunned_ticks?null:n.stunned_ticks>r.stunned_ticks?n:r:n.knockdowns>r.knockdowns?n:r:n.poise===0?n:r}var wi=[`jab`,`straight`,`hook`,`uppercut`],Ti=wi.map(e=>e.toUpperCase()),Ei=[`head`,`body`].map(e=>({target:e.toUpperCase(),fatalities:wi.map(t=>dt(ft(e,t)))})),Di=14,Oi=.4,ki=[0,0,0,0];function Ai(e,t,n,r,i){e.save(),e.textAlign=`left`;for(let a of[!1,!0])for(let o=10;o>=8;--o){let s=o+5,c=(a?3:2)*s+6;if(n+c>i)continue;e.font=`700 ${o}px Inter, system-ui, sans-serif`;let l=o*.4,u=Math.max(...Ei.map(t=>e.measureText(t.target).width))+10,d=12+u+42;for(let[t,n]of Ti.entries()){let r=e.measureText(n).width,i=a?r:0;for(let n of Ei)i=Math.max(i,e.measureText(n.fatalities[t]).width+(a?0:r+l));ki[t]=i,d+=i}if(d>r)continue;let f=t-d/2;e.fillStyle=`rgba(3,6,12,0.78)`,e.fillRect(f,n,d,c);let p=n+2+o;if(a){e.fillStyle=`#f6d57a`;let t=f+6+u;for(let[n,r]of Ti.entries())e.fillText(r,t,p),t+=ki[n]+Di;p+=s}for(let t of Ei){e.fillStyle=Zn,e.fillText(t.target,f+6,p);let n=f+6+u;for(let[r,i]of t.fatalities.entries()){let t=Ti[r];a||(e.fillStyle=`#f6d57a`,e.fillText(t,n,p)),e.fillStyle=`#f5f8ff`,e.fillText(i,a?n:n+e.measureText(t).width+l,p),n+=ki[r]+Di}p+=s}e.restore();return}e.restore()}function ji(e,t,n,r,i,a){let o=i===null?0:.5-.5*Math.cos(i*gi*Math.PI*2),s=t.dense?yi:vi;e.save(),e.textAlign=`center`,e.font=`italic 900 ${t.size}px ${hi}`;let c=e.measureText(mi).width,l=Math.min(t.size,t.size*t.maxWidth/(c*1.1)),u=l*(1+.08*o);e.font=`italic 900 ${u}px ${hi}`,e.lineJoin=`round`,e.lineWidth=Math.max(3,u*.12),e.strokeStyle=`rgba(10,0,0,0.92)`,e.shadowColor=`rgba(255,24,12,0.9)`,e.shadowBlur=14+24*o,e.strokeText(mi,t.centre,t.baseline),e.shadowBlur=0;let d=e.createLinearGradient(0,t.baseline-u*.8,0,t.baseline);d.addColorStop(0,`#ff5540`),d.addColorStop(.5,`#d8160d`),d.addColorStop(1,`#7d0705`),e.fillStyle=d,e.fillText(mi,t.centre,t.baseline),e.font=`800 ${s.name}px Inter, system-ui, sans-serif`,e.lineWidth=t.dense?3:4;let f=`ONE MORE PUNCH KILLS`;if(n!==null){let r=e.measureText(`${n} IS DEAD ON HIS FEET`).width<=t.maxWidth?` IS DEAD ON HIS FEET`:` IS DONE FOR`;f=`${Yn(e,n,Math.max(0,t.maxWidth-e.measureText(r).width))}${r}`}e.strokeText(f,t.centre,t.baseline+s.nameGap),e.fillStyle=`#ffe8e3`,e.fillText(f,t.centre,t.baseline+s.nameGap);let p=Math.min(420,t.maxWidth),m=t.bottom-s.bar-2,h=p*Math.max(0,Math.min(1,r));e.fillStyle=`rgba(2,4,9,0.85)`,e.fillRect(t.centre-p/2-1,m-1,p+2,s.bar+2),e.fillStyle=`#e0180f`,e.fillRect(t.centre-h/2,m,h,s.bar),e.strokeStyle=`rgba(255,112,102,0.85)`,e.lineWidth=1,e.strokeRect(t.centre-p/2-1.5,m-1.5,p+3,s.bar+3),e.restore(),a!==null&&Ai(e,t.centre,t.bottom+8,Math.min(t.maxWidth,c*l/t.size),a)}function Mi(e,t,n,r,i,a,o,s,c=30,l=null,u=null,d=null,f=null,p=null,g=null,_=null,v=!1,y=!1,b=null,x=null,S=!0,C=null){e.save();let w=Dr(t,n);e.scale(w,w),t/=w,n/=w,e.textBaseline=`alphabetic`;let T=e=>{let t=i[e.player_id];return t===void 0||g===null?null:g(t)},E=t<640,D=E?(t-56)/2:Math.min(300,t*.38,t/2-kr/2-8-24),O=n-84,k=S?r.tick/c:null,ee=Tr(t,n,v,r.phase===`rest`&&r.fighters.some(e=>e.player_id===a));o===null&&r.fighters.forEach((o,s)=>{let c=s===1,l=c?t-24-D:24,u=i[o.player_id],d=[{label:`${E?`STA`:`STAMINA`} ${Math.round(o.stamina)}`,value:o.stamina,maximum:o.maximum_stamina,from:`#ffe08a`,to:`#d9a53a`},{label:`${E?`HP`:`HEALTH`} ${Math.round(o.conditioning)}`,value:o.conditioning,maximum:qn,from:`#ff8a7a`,to:`#b02a20`},{label:o.guard_broken?`GUARD BROKEN`:`GUARD`,value:o.guard,maximum:700,from:`#9ec7ff`,to:`#3d6fb8`,spentBelow:o.guard_broken?h:m},{label:`POISE ${Math.round(o.poise)}`,value:o.poise,maximum:600,from:`#e8c890`,to:`#8a6a34`}],f=s===0?`#3d6fb8`:`#b02a20`,p=O-12,g=tr(o.trauma,o.injuries),_=Er(o.blood_volume,k),b=r.phase===`fight`||r.phase===`countdown`||r.phase===`finish`&&Ci(r.fighters,x)?.player_id!==o.player_id,S=y&&o.player_id===a&&b,C=ee?3:2,w=Math.min(64,(D-28-C*12)/C),A=w+12,te=c?l+D+4-C*A:l+20,j=c?l+D-8:te,M=te+(c?C-2:0)*A,ne=0;if(ee){let n=w<40,r=n&&_.label===`BLEEDING OUT`;Qn(e,M,p,w,n?{...d[2],label:r?``:`GUARD`}:d[2],c),Qn(e,M+A,p,w,n?{...d[3],label:r?``:`POISE`}:d[3],c),Qn(e,c?te:te+2*A,p,w,n?{..._,label:r?``:`BLOOD`}:_,c),r&&$n(e,j,p,Sr,c,!1,_.alarm);let i=c?te-12:te+3*A;ne=yr(e,i,p-5,c?i-t/2-4:t/2-4-i,g,o.injuries,c)}else{Qn(e,M,p,w,d[2],c),Qn(e,M+A,p,w,d[3],c);let t=2*w+12;Qn(e,te,p-Cr,t,_,c);let n=p-Cr-wr;g!==null&&(n-=18,ar(e,j,n,g,c)),n=vr(e,j,n-4,E?D-24:t,o.injuries,E?lr.compact:lr.wide,c),S&&ir(e,j,n-18,c)}Ar(e,l,O,D,u?.name??`Fighter`,Or(u,o,E,ne),d.slice(0,2),c,f,E?void 0:T(o),ee&&S),E&&!(v&&t>n)&&er(e,t/2+(c?1:-1)*112,83,20,T(o),u?.name??`Fighter`,f)});let A=Math.floor((p??r.phase_ticks_remaining)/c),te=`${Math.floor(A/60)}:${String(A%60).padStart(2,`0`)}`,j=r.phase===`knockdown`&&u===null&&(C?.risen===!0||r.fighters.some(e=>e.player_id===a&&e.is_downed))?Wr(t,n,v):null,M=j!==null&&E&&j.y<112;o===null&&!M&&jr(e,t/2,E?54:n-84,te,`ROUND ${r.round_number}`,r.phase===`complete`?`FINAL`:r.phase.replace(`_`,` `).toUpperCase());let ne=d===null?0:Math.round(d);if(ne>=100&&!E&&o===null&&!(v&&u!==null)&&r.fighters.some(e=>e.player_id===a)&&(e.save(),e.textAlign=v?`left`:`right`,e.font=`700 11px ui-monospace, monospace`,e.fillStyle=ne<200?`rgba(240,200,110,0.9)`:`rgba(255,110,100,0.95)`,e.fillText(`SLOW CONNECTION ${ne} ms`,v?24:t-24,76),e.restore()),u!==null){let t=E?120:64;e.save(),e.fillStyle=`rgba(3,6,12,0.82)`,e.fillRect(24,t,196,34),e.fillStyle=`#ff3b3b`,e.beginPath(),e.arc(42,t+17,6,0,Math.PI*2),e.fill(),e.fillStyle=`#f6f7fb`,e.font=`800 14px Inter, system-ui, sans-serif`,e.textAlign=`left`,e.fillText(u,56,t+22),e.restore()}f!==null&&r.phase===`fight`&&(e.save(),e.textAlign=`center`,e.font=`900 46px Inter, system-ui, sans-serif`,e.lineWidth=6,e.strokeStyle=`rgba(0,0,0,0.75)`,e.strokeText(f,t/2,n*Pr),e.fillStyle=`#f6d57a`,e.fillText(f,t/2,n*Pr),e.restore()),r.phase===`countdown`&&ni(e,Vr(t,n,v),`ROUND ${r.round_number}`,`Touch gloves. Protect yourself at all times.`);let re=fi(n,E);if(r.phase===`knockdown`&&u===null){let n=r.fighters.find(e=>e.is_downed),a=n??r.fighters.find(e=>e.player_id===_),o=a===void 0?null:(i[a.player_id]?.name??`Fighter`).toUpperCase();e.save(),e.textAlign=`center`,e.font=`900 44px Inter, system-ui, sans-serif`,e.lineWidth=6,e.strokeStyle=`rgba(0,0,0,0.75)`,(j===null||j.y>=re+6)&&(e.strokeText(`KNOCKDOWN`,t/2,re),e.fillStyle=`#ff4d4d`,e.fillText(`KNOCKDOWN`,t/2,re)),e.font=`700 15px Inter, system-ui, sans-serif`,e.fillStyle=`#e6ecf7`;let s=n===void 0?` BEAT THE COUNT`:` IS DOWN`,c=o===null?`STANDING EIGHT`:`${Yn(e,o,Math.min(t*.5,t-32-e.measureText(s).width))}${s}`;(j===null||j.y>=re+30)&&e.fillText(c,t/2,re+24),e.restore()}if(r.phase===`knockdown`&&u===null){let i=r.fighters.find(e=>e.player_id===a),o=Math.max(...r.fighters.map(e=>e.get_up_count));i?.is_downed!==!0&&C?.risen!==!0?o>=1&&(e.save(),e.textAlign=`center`,e.font=`900 36px Inter, system-ui, sans-serif`,e.lineWidth=5,e.strokeStyle=`rgba(0,0,0,0.75)`,e.strokeText(`COUNT ${o}`,t/2,re+64),e.fillStyle=`#ffd77a`,e.fillText(`COUNT ${o}`,t/2,re+64),e.restore()):i!==void 0&&ti(e,j??Wr(t,n,v),C??Se(i,r.tick,0,null,null,v,!1),S)}if(r.phase===`finish`&&o===null&&u===null){let o=Ci(r.fighters,x),s=Si(t,n,v),c=o!==null&&o.player_id!==a&&r.fighters.some(e=>e.player_id===a);ji(e,s,o===null?null:(i[o.player_id]?.name??`Fighter`).toUpperCase(),r.phase_ticks_remaining/it,k,c&&!v?n*Oi:null)}if(r.phase===`foul_recovery`){let a=r.fighters.find(e=>e.is_foul_recovery_target);ni(e,Vr(t,n,v),`FOUL RECOVERY`,`${i[a?.player_id??``]?.name??`Fighter`} is recovering`)}if(r.phase===`rest`){let i=r.fighters.map((e,t)=>({corner:t===0?`Blue`:`Red`,stats:l?.get(e.player_id)??ii()})).filter(({stats:e})=>e.thrown>0||e.landed>0).map(({corner:e,stats:t})=>`${e} ${t.landed} of ${t.thrown}`).join(` · `),a=rr(r.fighters);ni(e,Vr(t,n,v),`CORNERS · RECOVER`,a??(i.length>0?`Landed this round: ${i}`:`Conditioning governs recovery`))}if(s>0){let r=Math.min(320,t-24),i=Fr(n);ni(e,v?Vr(t,n,!0):{x:t/2-r/2,y:n/2-i/2,width:r,height:i},`OPPONENT RECONNECTING · ${Math.ceil(s/1e3)}s`,`The bout is paused`)}if(o!==null){let a=r.fighters.map(e=>l?.total(e.player_id)??ii());Ui(e,t,n,Ii(o,r.fighters,i,a,b),!0,[T(r.fighters[0]),T(r.fighters[1])])}e.restore()}function Ni(e,t,n,r,i,a,o,s,c=`Inter, system-ui, sans-serif`){e.font=`${a} ${Xn(n=>(e.font=`${a} ${n}px ${c}`,e.measureText(t).width),i,o,s)}px ${c}`,e.fillText(Yn(e,t,i),n,r)}var Pi={ko:`KNOCKOUT`,flash_ko:`FLASH KNOCKOUT`,tko:`TECHNICAL KNOCKOUT`,disqualification:`DISQUALIFICATION`,forfeit:`FORFEIT`},Fi=(e,t)=>e>t?0:t>e?1:null;function Ii(e,t,n,r,i=null){let a=t.map(e=>n[e.player_id]?.name??`Fighter`),o=e.winner_id===null?null:t[0].player_id===e.winner_id?0:t[1].player_id===e.winner_id?1:null,s=e.method===`draw`&&i!==null,c=[],l=[];if(e.method===`decision`||e.method===`draw`&&!s)for(let t of e.scorecards){let e=Jn(t.player_one),n=Jn(t.player_two);l.push({label:t.judge.toUpperCase(),values:[String(e),String(n)],lead:Fi(e,n)})}let u=[t[1].knockdowns,t[0].knockdowns];(u[0]>0||u[1]>0)&&c.push({label:`KNOCKDOWNS`,values:[String(u[0]),String(u[1])],lead:Fi(u[0],u[1])});let[d,f]=t.map(t=>e.punches?.[t.player_id]),p=e=>({thrown:e.thrown,landed:e.landed,jabsThrown:e.jabs_thrown,jabsLanded:e.jabs_landed}),m=d!==void 0&&f!==void 0?[p(d),p(f)]:r;if(m[0].thrown>0||m[1].thrown>0){let e=(e,t)=>t>0?`${Math.min(e,t)}/${t} (${Math.round(Math.min(e,t)/t*100)}%)`:`0/0`,t=m.map(e=>({landed:e.landed-e.jabsLanded,thrown:e.thrown-e.jabsThrown}));c.push({label:`TOTAL PUNCHES`,values:[e(m[0].landed,m[0].thrown),e(m[1].landed,m[1].thrown)],lead:Fi(m[0].landed,m[1].landed)}),c.push({label:`JABS`,values:[e(m[0].jabsLanded,m[0].jabsThrown),e(m[1].jabsLanded,m[1].jabsThrown)],lead:Fi(m[0].jabsLanded,m[1].jabsLanded)}),c.push({label:`POWER PUNCHES`,values:[e(t[0].landed,t[0].thrown),e(t[1].landed,t[1].thrown)],lead:Fi(t[0].landed,t[1].landed)})}let[h,g]=t.map(t=>e.ratings[t.player_id]);if(t.some(e=>n[e.player_id]?.cpu===!0))c.push({label:`RATING`,values:[`Unrated`,`Unrated`],lead:null});else if(h!==void 0&&g!==void 0){let e=e=>`${e.after} (${e.after>=e.before?`+`:`−`}${Math.abs(e.after-e.before)})`;c.push({label:`RATING`,values:[e(h),e(g)],lead:null,news:[h.after>=h.before,g.after>=g.before]})}return{headline:e.method===`death`?i!==null&&mt(i)!==null?`FATALITY`:`DEATH`:s?`DOUBLE DEATH`:Pi[e.method]??si(e),detail:i!==null&&(e.method===`death`||s)?`${ht(i)} · ROUND ${e.round}`:`ROUND ${e.round}`,verdict:s?`NO SURVIVORS`:o===null?e.winner_id===null?`DRAW`:`${(n[e.winner_id]?.name??`Winner`).toUpperCase()} WINS`:`${a[o].toUpperCase()} WINS`,deadly:e.method===`death`||s,winnerSeat:o,names:a,judges:l,rows:c}}var Li=[`#4f86d9`,`#d9483c`],Ri=14;function zi(e,t,n,r){let i=Dr(e,t),a=Hi(e/i,t/i,n,r);return i===1?a:{...a,x:a.x*i,y:a.y*i,width:a.width*i,height:a.height*i,rowHeight:a.rowHeight*i,verdictHeight:a.verdictHeight*i,judgesHeight:a.judgesHeight*i}}var Bi=new Set([`KNOCKDOWNS`,`TOTAL PUNCHES`,`RATING`]),Vi=(e,t)=>t?e.rows.filter(e=>Bi.has(e.label)):e.rows;function Hi(e,t,n,r){let i=t<480,a=e>=900||e>=640&&i,o=Math.min(e-24,a?980:720),s=r?62:Ri,c=i?72:112,l=n.judges.length===0?0:i?36:52,u=c+l,d=Vi(n,i).length+1,f=t-(e<640?118:70)-14-Ri-s-(a?0:u),p=Math.max(16,Math.min(i?20:28,f/d)),m=Ri+(a?Math.max(u,d*p):u+d*p)+s;return{x:(e-o)/2,y:t-14-m,width:o,height:m,wide:a,dense:i,rowHeight:p,verdictHeight:c,judgesHeight:l}}function Ui(e,t,n,r,i,a){let o=Hi(t,n,r,i),{x:s,y:c}=o;e.fillStyle=`rgba(3,6,12,0.9)`,e.fillRect(s,c,o.width,o.height),e.strokeStyle=r.deadly?`rgba(224,36,26,0.8)`:`rgba(246,213,122,0.55)`,e.lineWidth=2,e.strokeRect(s+1,c+1,o.width-2,o.height-2),e.textAlign=`center`;let l=(o.wide?o.width*.42:o.width)-32,u=o.wide?s+o.width*.21+4:t/2,d=c+Ri,f=o.verdictHeight/112;e.fillStyle=r.deadly?`#ff3a2c`:`#f6d57a`,Ni(e,r.headline,u,d+34*f,l,800,(o.wide||t>=640?32:28)*f,14),e.fillStyle=`#aebbd0`,Ni(e,r.detail,u,d+56*f,l,700,13*f,9),e.fillStyle=r.winnerSeat===null?`#f6f7fb`:Li[r.winnerSeat],Ni(e,r.verdict,u,d+92*f,l,800,25*f,12);let p=l/Math.max(1,r.judges.length),m=d+o.verdictHeight;r.judges.forEach((t,n)=>{let r=u-l/2+p*(n+.5);e.fillStyle=`rgba(255,255,255,0.06)`,e.fillRect(r-p/2+3,m,p-6,o.judgesHeight-8),e.fillStyle=`#8fa3c8`,Ni(e,t.label,r,m+o.judgesHeight*.3,p-14,700,10,7),e.fillStyle=`#f6f7fb`,Ni(e,`${t.values[0]} – ${t.values[1]}`,r,m+o.judgesHeight*.7,p-14,800,o.dense?14:17,10)});let h=o.wide?s+o.width*.42:s+12,g=s+o.width-12-h,_=o.wide?d:m+o.judgesHeight,v=g*.36,y=(g-v)/2,b=[h+y/2,h+g-y/2],x=o.rowHeight,S=Math.min(16,x*.6),C=_+x*.7;e.fillStyle=`rgba(255,255,255,0.06)`,e.fillRect(h,_,g,x);let w=Math.max(6,x/2-2);for(let t of[0,1]){let n=t===0?-1:1;e.fillStyle=Li[t],e.fillRect(t===0?h:h+g-4,_,4,x),er(e,b[t]+n*(y/2-10-w),_+x/2,w,a[t],r.names[t],Li[t]),e.textAlign=`center`,e.fillStyle=`#f6f7fb`,Ni(e,r.names[t],b[t]-n*(w+3+v/4),C,y+v/2-22-w*2,800,S,9)}for(let t of Vi(r,o.dense)){C+=x,e.fillStyle=`#8fa3c8`,Ni(e,t.label,h+g/2,C,v,700,Math.min(12,S),8);for(let n of[0,1])e.fillStyle=t.news===void 0?t.lead===n?`#f6f7fb`:`#aebbd0`:t.news[n]?`#55df9b`:`#ff7b74`,Ni(e,t.values[n],b[n],C,y-16,t.lead===n?800:600,S,9)}}var Wi=6,Gi=150;function Ki(){return typeof window<`u`&&typeof window.speechSynthesis==`object`&&window.speechSynthesis!==null&&typeof window.SpeechSynthesisUtterance==`function`}function qi(e){let t=e.filter(e=>e.localService&&e.lang.toLowerCase().startsWith(`en`));return t.find(e=>e.default)??t[0]??null}var Ji=class{settings;synthesis;Utterance;queue=[];speaking=null;destroyed=!1;grave=!1;voice=null;voicesListed=!1;onVoicesChanged=null;cutoff=null;pendingShout=null;cutOff=null;shoutTimer=null;voicesChanged=()=>{this.listVoices(),this.voice===null&&this.cancel(),this.onVoicesChanged?.()};visibility=()=>{document.hidden&&this.cancel()};constructor(e,t=Ki()?window.speechSynthesis:null,n=Ki()?window.SpeechSynthesisUtterance:null){this.settings=e,this.synthesis=t,this.Utterance=n,this.listVoices(),t?.addEventListener?.(`voiceschanged`,this.voicesChanged),document.addEventListener(`visibilitychange`,this.visibility)}get supported(){return this.synthesis!==null&&this.Utterance!==null}get hasVoice(){return this.supported&&(this.voice!==null||!this.voicesListed)}speak(e){if(!this.supported||this.destroyed||document.hidden)return;let t=this.settings();!t.announcer||t.volume<=0||(this.voice===null&&this.listVoices(),this.voice!==null&&(this.queue.push(...e),this.queue.length>Wi&&this.queue.splice(0,this.queue.length-Wi),this.speaking===null&&this.pendingShout===null&&this.next()))}shout(e){let t=this.speaking??this.cutOff;if(this.cancel(),t===null){this.grave=!0,this.speak([e]),this.grave=!1;return}let n=()=>{this.pendingShout===n&&(this.clearShout(),t.onend=null,t.onerror=null,this.queue.unshift(e),this.grave=!0,this.next(),this.grave=!1)};this.pendingShout=n,this.cutOff=t,t.onend=n,t.onerror=n,this.shoutTimer=window.setTimeout(n,Gi)}settingsChanged(){let e=this.settings();(!e.announcer||e.volume<=0)&&this.cancel()}finishLine(e){this.queue.length=0,this.clearCutoff();let t=this.speaking;t!==null&&(this.cutoff=window.setTimeout(()=>{this.cutoff=null,this.speaking===t&&this.cancel()},e))}cancel(){this.queue.length=0,this.clearCutoff(),this.clearShout();let e=this.speaking;this.speaking=null,e!==null&&(e.onend=null,e.onerror=null,this.synthesis?.cancel())}destroy(){this.destroyed=!0,this.synthesis?.removeEventListener?.(`voiceschanged`,this.voicesChanged),document.removeEventListener(`visibilitychange`,this.visibility),this.onVoicesChanged=null,this.cancel()}clearCutoff(){this.cutoff!==null&&window.clearTimeout(this.cutoff),this.cutoff=null}clearShout(){this.shoutTimer!==null&&window.clearTimeout(this.shoutTimer),this.shoutTimer=null,this.pendingShout=null,this.cutOff=null}listVoices(){let e=this.synthesis?.getVoices()??[];e.length>0&&(this.voicesListed=!0),this.voice=qi(e)}next(){let e=this.synthesis,t=this.Utterance,n=this.voice,r=this.queue.shift();if(e===null||t===null||r===void 0)return;let i=this.settings();if(!i.announcer||i.volume<=0||n===null||document.hidden){this.queue.length=0;return}let a=new t(r);a.volume=Math.min(1,i.volume),a.rate=this.grave?.8:.96,a.pitch=this.grave?.3:.82,a.voice=n,a.lang=n.lang;let o=()=>{this.speaking===a&&(this.speaking=null,this.clearCutoff(),this.next())};a.onend=o,a.onerror=o,this.speaking=a,e.speak(a)}},Yi=[{name:`decapitation`,sampleRate:12e3,frames:7920,wav:`UklGRgQ+AABXQVZFZm10IBAAAAABAAEA4C4AAMBdAAACABAAZGF0YeA9AAAGAGAAd/9r/1b/Dv+d/kH+Of69/vL/gAGaAhUD9wKOAmICHwPSBLYGQ/pC+4r72/rQ+Sr5sPle+7X+MQM2BmQHHwfgBSEFpAU+CKkLYA649Q331faL9fnzlfMw9ST5+/5iBV4JDAtaCuYIVgdWB0kKSw/iE2HuFvGL8lnxVO/g7TXt4+6L8wT7agMsCvAN0g4gDb0K4QjzCOEMBhO+GHQdcuis667sVOsZ6dTmDeaH54Hr4fE9+0wECgylELYRuBDhDU0LfAnWCb8OABXvG6QiDyiLKwjk3uUl5fziMuAc3v/cvtx23kbj2Op98xH8EQYQD/ETiBVzFgkUHxCYDc0MWAtYC4sPrhWTHE4kpitIMV41DDlm11XZV9pG2ZPXOtVN0yrRjc/wzkXPstA51HDae+DX6I/xjfq1BBYNYRMgGAYaSRwnHU8dkxoAFz0USRJLECwP5A0ZDyUSzha7HdclaS2nNJw6o0JgRw9LVE6kUMZROMnOyWDLQMlWxRzEScGKv0u+eLx5uq+5xbnxuii8ub7nwOLDMMrT0IXWnt1r54DwWPp2A/YLiRBdF9wbex6gIAkibyGNH3IdGBpMFdESOA45C08JEQoUC1gMIBImGl0fFiogM7A6FEMZS1ZThlfAXGhgxGHyY1S6Cbszuki4dLensvmwaq+crAesQqy5rfiv1bR/un/B2swO2f3mdfQbAw8OrRS+HC0duyDeHmwZUhXJDocJfAmGC0ATOBemJCoytT+YTKJX0V1qYl9lbWeztN+z4K8JrO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P67fTg8ln1X/uOAkIGCgf1Bp4I2garBgIGkQIP/Ej22PNQ9RP6qwDYBAQGHQYhB7QHEwecBvwEKQAR+uX1aPSU9j/7xAALBKkE4gTrBSoH4Qa3BlYFegHO+433vvVl9vP5IP/5AkYEOgSDBFQGKwcMB78GqwSVAJD7Gvid9r72dPnM/VsBcgPiA/QD9wT/BjAHMwenBqMEtQAB/Pr4ofdk93/5z/zh/8ABHwIvArMCeQSbBokGSgacBccDUACG/N35kPgj+DP5/fvQ/t4AwgHlAQQCtwJcBEAGNAYeBnkFEARqATv+c/v6+Vr5KPld+oH8s/5KALQA+wDsAI0BtgKjBL0FtwVsBdAEbQMzAX3+Xfz++mf6N/qj+jb8Cf6A/zQAZABdAHsAGwFVAs4DCgUEBdwEbQSMAwwC7f/q/ZD8vvtp+077vPsb/Xf+e/8IABsAAQAFAHUAOgFWApcDPQQzBPcDhgOUAjYBiv8S/gT9mvxP/Ej8TfxW/VP+Hv+a/9L/wv/V/w0AoQBbAWcCQgNxA1gDIgOlAt0BwgCE/3r+yf13/Vf9Uf19/SP+1/5m/7j/3f/l/wQAPwC+AHABEwKEAnICQwL7AXkBygDr/y//qf5t/l7+Xv5n/sf+Mf92/5//qP+j/77/AABnAOAAQAF7AWMBQgEJAacAMwDB/3j/WP9R/1j/Xf+J/8H/3f/g/+H/6f/8/x4ARQBjAG4AYwBSADoAIAAMAAQABwA=`}],Xi=`attached`,Zi=1e3,Qi=1001,$i=1002,ea=1003,ta=1004,na=1005,ra=1006,ia=1007,aa=1008,oa=1009,sa=1010,ca=1011,la=1012,ua=1013,da=1014,fa=1015,pa=1016,ma=1017,ha=1018,ga=1020,_a=35902,va=35899,ya=1021,ba=1022,xa=1023,Sa=1026,Ca=1027,wa=1028,Ta=1029,Ea=1030,Da=1031,Oa=1033,ka=33776,Aa=33777,ja=33778,Ma=33779,Na=35840,Pa=35841,Fa=35842,Ia=35843,La=36196,Ra=37492,za=37496,Ba=37488,Va=37489,Ha=37490,Ua=37491,Wa=37808,Ga=37809,Ka=37810,qa=37811,Ja=37812,Ya=37813,Xa=37814,Za=37815,Qa=37816,$a=37817,eo=37818,to=37819,no=37820,ro=37821,io=36492,ao=36494,oo=36495,so=36283,co=36284,lo=36285,uo=36286,fo=2300,po=2301,mo=2302,ho=2303,go=2400,_o=2401,vo=2402,yo=2500,bo=3200,xo=`srgb`,So=`srgb-linear`,Co=`linear`,wo=`srgb`,To=7680,Eo=35044,Do=35048,Oo=2e3;function ko(e){for(let t=e.length-1;t>=0;--t)if(e[t]>=65535)return!0;return!1}function Ao(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function jo(e){return document.createElementNS(`http://www.w3.org/1999/xhtml`,e)}function Mo(){let e=jo(`canvas`);return e.style.display=`block`,e}var No={};function Po(...e){let t=`THREE.`+e.shift();console.log(t,...e)}function Fo(e){let t=e[0];if(typeof t==`string`&&t.startsWith(`TSL:`)){let t=e[1];t&&t.isStackTrace?e[0]+=` `+t.getLocation():e[1]=`Stack trace not available. Enable "THREE.Node.captureStackTrace" to capture stack traces.`}return e}function Io(...e){e=Fo(e);let t=`THREE.`+e.shift();{let n=e[0];n&&n.isStackTrace?console.warn(n.getError(t)):console.warn(t,...e)}}function Lo(...e){e=Fo(e);let t=`THREE.`+e.shift();{let n=e[0];n&&n.isStackTrace?console.error(n.getError(t)):console.error(t,...e)}}function Ro(...e){let t=e.join(` `);t in No||(No[t]=!0,Io(...e))}function zo(e,t,n){return new Promise(function(r,i){function a(){switch(e.clientWaitSync(t,e.SYNC_FLUSH_COMMANDS_BIT,0)){case e.WAIT_FAILED:i();break;case e.TIMEOUT_EXPIRED:setTimeout(a,n);break;default:r()}}setTimeout(a,n)})}var Bo={0:1,2:6,4:7,3:5,1:0,6:2,7:4,5:3},Vo=class{addEventListener(e,t){this._listeners===void 0&&(this._listeners={});let n=this._listeners;n[e]===void 0&&(n[e]=[]),n[e].indexOf(t)===-1&&n[e].push(t)}hasEventListener(e,t){let n=this._listeners;return n!==void 0&&n[e]!==void 0&&n[e].indexOf(t)!==-1}removeEventListener(e,t){let n=this._listeners;if(n===void 0)return;let r=n[e];if(r!==void 0){let e=r.indexOf(t);e!==-1&&r.splice(e,1)}}dispatchEvent(e){let t=this._listeners;if(t===void 0)return;let n=t[e.type];if(n!==void 0){e.target=this;let t=n.slice(0);for(let n=0,r=t.length;n>8&255]+Ho[e>>16&255]+Ho[e>>24&255]+`-`+Ho[t&255]+Ho[t>>8&255]+`-`+Ho[t>>16&15|64]+Ho[t>>24&255]+`-`+Ho[n&63|128]+Ho[n>>8&255]+`-`+Ho[n>>16&255]+Ho[n>>24&255]+Ho[r&255]+Ho[r>>8&255]+Ho[r>>16&255]+Ho[r>>24&255]).toLowerCase()}function qo(e,t,n){return Math.max(t,Math.min(n,e))}function Jo(e,t){return(e%t+t)%t}function Yo(e,t,n,r,i){return r+(e-t)*(i-r)/(n-t)}function Xo(e,t,n){return e===t?0:(n-e)/(t-e)}function Zo(e,t,n){return(1-n)*e+n*t}function Qo(e,t,n,r){return Zo(e,t,1-Math.exp(-n*r))}function $o(e,t=1){return t-Math.abs(Jo(e,t*2)-t)}function es(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t),e*e*(3-2*e))}function ts(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t),e*e*e*(e*(e*6-15)+10))}function ns(e,t){return e+Math.floor(Math.random()*(t-e+1))}function rs(e,t){return e+Math.random()*(t-e)}function is(e){return e*(.5-Math.random())}function as(e){e!==void 0&&(Uo=e);let t=Uo+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}function os(e){return e*Wo}function ss(e){return e*Go}function cs(e){return e>0&&Number.isInteger(e)&&2**Math.round(Math.log2(e))===e}function ls(e){return 2**Math.ceil(Math.log(e)/Math.LN2)}function us(e){return 2**Math.floor(Math.log(e)/Math.LN2)}function ds(e,t,n,r,i){let a=Math.cos,o=Math.sin,s=a(n/2),c=o(n/2),l=a((t+r)/2),u=o((t+r)/2),d=a((t-r)/2),f=o((t-r)/2),p=a((r-t)/2),m=o((r-t)/2);switch(i){case`XYX`:e.set(s*u,c*d,c*f,s*l);break;case`YZY`:e.set(c*f,s*u,c*d,s*l);break;case`ZXZ`:e.set(c*d,c*f,s*u,s*l);break;case`XZX`:e.set(s*u,c*m,c*p,s*l);break;case`YXY`:e.set(c*p,s*u,c*m,s*l);break;case`ZYZ`:e.set(c*m,c*p,s*u,s*l);break;default:Io(`MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: `+i)}}function fs(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return e/4294967295;case Uint16Array:return e/65535;case Uint8Array:case Uint8ClampedArray:return e/255;case Int32Array:return Math.max(e/2147483647,-1);case Int16Array:return Math.max(e/32767,-1);case Int8Array:return Math.max(e/127,-1);default:throw Error(`THREE.MathUtils: Invalid component type.`)}}function ps(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return Math.round(e*4294967295);case Uint16Array:return Math.round(e*65535);case Uint8Array:case Uint8ClampedArray:return Math.round(e*255);case Int32Array:return Math.round(e*2147483647);case Int16Array:return Math.round(e*32767);case Int8Array:return Math.round(e*127);default:throw Error(`THREE.MathUtils: Invalid component type.`)}}var R={DEG2RAD:Wo,RAD2DEG:Go,generateUUID:Ko,clamp:qo,euclideanModulo:Jo,mapLinear:Yo,inverseLerp:Xo,lerp:Zo,damp:Qo,pingpong:$o,smoothstep:es,smootherstep:ts,randInt:ns,randFloat:rs,randFloatSpread:is,seededRandom:as,degToRad:os,radToDeg:ss,isPowerOfTwo:cs,ceilPowerOfTwo:ls,floorPowerOfTwo:us,setQuaternionFromProperEuler:ds,normalize:ps,denormalize:fs},z=class e{static{e.prototype.isVector2=!0}constructor(e=0,t=0){this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw Error(`THREE.Vector2: index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw Error(`THREE.Vector2: index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){let t=this.x,n=this.y,r=e.elements;return this.x=r[0]*t+r[3]*n+r[6],this.y=r[1]*t+r[4]*n+r[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=qo(this.x,e.x,t.x),this.y=qo(this.y,e.y,t.y),this}clampScalar(e,t){return this.x=qo(this.x,e,t),this.y=qo(this.y,e,t),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(qo(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){let t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;let n=this.dot(e)/t;return Math.acos(qo(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){let t=this.x-e.x,n=this.y-e.y;return t*t+n*n}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){let n=Math.cos(t),r=Math.sin(t),i=this.x-e.x,a=this.y-e.y;return this.x=i*n-a*r+e.x,this.y=i*r+a*n+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}},ms=class{constructor(e=0,t=0,n=0,r=1){this.isQuaternion=!0,this._x=e,this._y=t,this._z=n,this._w=r}static slerpFlat(e,t,n,r,i,a,o){let s=n[r+0],c=n[r+1],l=n[r+2],u=n[r+3],d=i[a+0],f=i[a+1],p=i[a+2],m=i[a+3];if(u!==m||s!==d||c!==f||l!==p){let e=s*d+c*f+l*p+u*m;e<0&&(d=-d,f=-f,p=-p,m=-m,e=-e);let t=1-o;if(e<.9995){let n=Math.acos(e),r=Math.sin(n);t=Math.sin(t*n)/r,o=Math.sin(o*n)/r,s=s*t+d*o,c=c*t+f*o,l=l*t+p*o,u=u*t+m*o}else{s=s*t+d*o,c=c*t+f*o,l=l*t+p*o,u=u*t+m*o;let e=1/Math.sqrt(s*s+c*c+l*l+u*u);s*=e,c*=e,l*=e,u*=e}}e[t]=s,e[t+1]=c,e[t+2]=l,e[t+3]=u}static multiplyQuaternionsFlat(e,t,n,r,i,a){let o=n[r],s=n[r+1],c=n[r+2],l=n[r+3],u=i[a],d=i[a+1],f=i[a+2],p=i[a+3];return e[t]=o*p+l*u+s*f-c*d,e[t+1]=s*p+l*d+c*u-o*f,e[t+2]=c*p+l*f+o*d-s*u,e[t+3]=l*p-o*u-s*d-c*f,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,n,r){return this._x=e,this._y=t,this._z=n,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t=!0){let n=e._x,r=e._y,i=e._z,a=e._order,o=Math.cos,s=Math.sin,c=o(n/2),l=o(r/2),u=o(i/2),d=s(n/2),f=s(r/2),p=s(i/2);switch(a){case`XYZ`:this._x=d*l*u+c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u-d*f*p;break;case`YXZ`:this._x=d*l*u+c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u+d*f*p;break;case`ZXY`:this._x=d*l*u-c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u-d*f*p;break;case`ZYX`:this._x=d*l*u-c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u+d*f*p;break;case`YZX`:this._x=d*l*u+c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u-d*f*p;break;case`XZY`:this._x=d*l*u-c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u+d*f*p;break;default:Io(`Quaternion: .setFromEuler() encountered an unknown order: `+a)}return t===!0&&this._onChangeCallback(),this}setFromAxisAngle(e,t){let n=t/2,r=Math.sin(n);return this._x=e.x*r,this._y=e.y*r,this._z=e.z*r,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(e){let t=e.elements,n=t[0],r=t[4],i=t[8],a=t[1],o=t[5],s=t[9],c=t[2],l=t[6],u=t[10],d=n+o+u;if(d>0){let e=.5/Math.sqrt(d+1);this._w=.25/e,this._x=(l-s)*e,this._y=(i-c)*e,this._z=(a-r)*e}else if(n>o&&n>u){let e=2*Math.sqrt(1+n-o-u);this._w=(l-s)/e,this._x=.25*e,this._y=(r+a)/e,this._z=(i+c)/e}else if(o>u){let e=2*Math.sqrt(1+o-n-u);this._w=(i-c)/e,this._x=(r+a)/e,this._y=.25*e,this._z=(s+l)/e}else{let e=2*Math.sqrt(1+u-n-o);this._w=(a-r)/e,this._x=(i+c)/e,this._y=(s+l)/e,this._z=.25*e}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let n=e.dot(t)+1;return n<1e-8?(n=0,Math.abs(e.x)>Math.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=n):(this._x=0,this._y=-e.z,this._z=e.y,this._w=n)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=n),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(qo(this.dot(e),-1,1)))}rotateTowards(e,t){let n=this.angleTo(e);if(n===0)return this;let r=Math.min(1,t/n);return this.slerp(e,r),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x*=e,this._y*=e,this._z*=e,this._w*=e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){let n=e._x,r=e._y,i=e._z,a=e._w,o=t._x,s=t._y,c=t._z,l=t._w;return this._x=n*l+a*o+r*c-i*s,this._y=r*l+a*s+i*o-n*c,this._z=i*l+a*c+n*s-r*o,this._w=a*l-n*o-r*s-i*c,this._onChangeCallback(),this}slerp(e,t){let n=e._x,r=e._y,i=e._z,a=e._w,o=this.dot(e);o<0&&(n=-n,r=-r,i=-i,a=-a,o=-o);let s=1-t;if(o<.9995){let e=Math.acos(o),c=Math.sin(e);s=Math.sin(s*e)/c,t=Math.sin(t*e)/c,this._x=this._x*s+n*t,this._y=this._y*s+r*t,this._z=this._z*s+i*t,this._w=this._w*s+a*t,this._onChangeCallback()}else this._x=this._x*s+n*t,this._y=this._y*s+r*t,this._z=this._z*s+i*t,this._w=this._w*s+a*t,this.normalize();return this}slerpQuaternions(e,t,n){return this.copy(e).slerp(t,n)}random(){let e=2*Math.PI*Math.random(),t=2*Math.PI*Math.random(),n=Math.random(),r=Math.sqrt(1-n),i=Math.sqrt(n);return this.set(r*Math.sin(e),r*Math.cos(e),i*Math.sin(t),i*Math.cos(t))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}},B=class e{static{e.prototype.isVector3=!0}constructor(e=0,t=0,n=0){this.x=e,this.y=t,this.z=n}set(e,t,n){return n===void 0&&(n=this.z),this.x=e,this.y=t,this.z=n,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw Error(`THREE.Vector3: index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw Error(`THREE.Vector3: index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(gs.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(gs.setFromAxisAngle(e,t))}applyMatrix3(e){let t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[3]*n+i[6]*r,this.y=i[1]*t+i[4]*n+i[7]*r,this.z=i[2]*t+i[5]*n+i[8]*r,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){let t=this.x,n=this.y,r=this.z,i=e.elements,a=1/(i[3]*t+i[7]*n+i[11]*r+i[15]);return this.x=(i[0]*t+i[4]*n+i[8]*r+i[12])*a,this.y=(i[1]*t+i[5]*n+i[9]*r+i[13])*a,this.z=(i[2]*t+i[6]*n+i[10]*r+i[14])*a,this}applyQuaternion(e){let t=this.x,n=this.y,r=this.z,i=e.x,a=e.y,o=e.z,s=e.w,c=2*(a*r-o*n),l=2*(o*t-i*r),u=2*(i*n-a*t);return this.x=t+s*c+a*u-o*l,this.y=n+s*l+o*c-i*u,this.z=r+s*u+i*l-a*c,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){let t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[4]*n+i[8]*r,this.y=i[1]*t+i[5]*n+i[9]*r,this.z=i[2]*t+i[6]*n+i[10]*r,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=qo(this.x,e.x,t.x),this.y=qo(this.y,e.y,t.y),this.z=qo(this.z,e.z,t.z),this}clampScalar(e,t){return this.x=qo(this.x,e,t),this.y=qo(this.y,e,t),this.z=qo(this.z,e,t),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(qo(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){let n=e.x,r=e.y,i=e.z,a=t.x,o=t.y,s=t.z;return this.x=r*s-i*o,this.y=i*a-n*s,this.z=n*o-r*a,this}projectOnVector(e){let t=e.lengthSq();if(t===0)return this.set(0,0,0);let n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}projectOnPlane(e){return hs.copy(this).projectOnVector(e),this.sub(hs)}reflect(e){return this.sub(hs.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){let t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;let n=this.dot(e)/t;return Math.acos(qo(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){let t=this.x-e.x,n=this.y-e.y,r=this.z-e.z;return t*t+n*n+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,n){let r=Math.sin(t)*e;return this.x=r*Math.sin(n),this.y=Math.cos(t)*e,this.z=r*Math.cos(n),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){let t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){let t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),r=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=r,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,t*4)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,t*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){let e=Math.random()*Math.PI*2,t=Math.random()*2-1,n=Math.sqrt(1-t*t);return this.x=n*Math.cos(e),this.y=t,this.z=n*Math.sin(e),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}},hs=new B,gs=new ms,_s=class e{static{e.prototype.isMatrix3=!0}constructor(e,t,n,r,i,a,o,s,c){this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,t,n,r,i,a,o,s,c)}set(e,t,n,r,i,a,o,s,c){let l=this.elements;return l[0]=e,l[1]=r,l[2]=o,l[3]=t,l[4]=i,l[5]=s,l[6]=n,l[7]=a,l[8]=c,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){let t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this}extractBasis(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(e){let t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){let n=e.elements,r=t.elements,i=this.elements,a=n[0],o=n[3],s=n[6],c=n[1],l=n[4],u=n[7],d=n[2],f=n[5],p=n[8],m=r[0],h=r[3],g=r[6],_=r[1],v=r[4],y=r[7],b=r[2],x=r[5],S=r[8];return i[0]=a*m+o*_+s*b,i[3]=a*h+o*v+s*x,i[6]=a*g+o*y+s*S,i[1]=c*m+l*_+u*b,i[4]=c*h+l*v+u*x,i[7]=c*g+l*y+u*S,i[2]=d*m+f*_+p*b,i[5]=d*h+f*v+p*x,i[8]=d*g+f*y+p*S,this}multiplyScalar(e){let t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){let e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8];return t*a*l-t*o*c-n*i*l+n*o*s+r*i*c-r*a*s}invert(){let e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8],u=l*a-o*c,d=o*s-l*i,f=c*i-a*s,p=t*u+n*d+r*f;if(p===0)return this.set(0,0,0,0,0,0,0,0,0);let m=1/p;return e[0]=u*m,e[1]=(r*c-l*n)*m,e[2]=(o*n-r*a)*m,e[3]=d*m,e[4]=(l*t-r*s)*m,e[5]=(r*i-o*t)*m,e[6]=f*m,e[7]=(n*s-c*t)*m,e[8]=(a*t-n*i)*m,this}transpose(){let e,t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){let t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,n,r,i,a,o){let s=Math.cos(i),c=Math.sin(i);return this.set(n*s,n*c,-n*(s*a+c*o)+a+e,-r*c,r*s,-r*(-c*a+s*o)+o+t,0,0,1),this}scale(e,t){return Ro(`Matrix3: .scale() is deprecated. Use .makeScale() instead.`),this.premultiply(vs.makeScale(e,t)),this}rotate(e){return Ro(`Matrix3: .rotate() is deprecated. Use .makeRotation() instead.`),this.premultiply(vs.makeRotation(-e)),this}translate(e,t){return Ro(`Matrix3: .translate() is deprecated. Use .makeTranslation() instead.`),this.premultiply(vs.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){let t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,n,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){let t=this.elements,n=e.elements;for(let e=0;e<9;e++)if(t[e]!==n[e])return!1;return!0}fromArray(e,t=0){for(let n=0;n<9;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){let n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}clone(){return new this.constructor().fromArray(this.elements)}},vs=new _s,ys=new _s().set(.4123908,.3575843,.1804808,.212639,.7151687,.0721923,.0193308,.1191948,.9505322),bs=new _s().set(3.2409699,-1.5373832,-.4986108,-.9692436,1.8759675,.0415551,.0556301,-.203977,1.0569715);function xs(){let e={enabled:!0,workingColorSpace:So,spaces:{},convert:function(e,t,n){return this.enabled===!1||t===n||!t||!n||(this.spaces[t].transfer===`srgb`&&(e.r=Cs(e.r),e.g=Cs(e.g),e.b=Cs(e.b)),this.spaces[t].primaries!==this.spaces[n].primaries&&(e.applyMatrix3(this.spaces[t].toXYZ),e.applyMatrix3(this.spaces[n].fromXYZ)),this.spaces[n].transfer===`srgb`&&(e.r=ws(e.r),e.g=ws(e.g),e.b=ws(e.b))),e},workingToColorSpace:function(e,t){return this.convert(e,this.workingColorSpace,t)},colorSpaceToWorking:function(e,t){return this.convert(e,t,this.workingColorSpace)},getPrimaries:function(e){return this.spaces[e].primaries},getTransfer:function(e){return e===``?Co:this.spaces[e].transfer},getToneMappingMode:function(e){return this.spaces[e].outputColorSpaceConfig.toneMappingMode||`standard`},getLuminanceCoefficients:function(e,t=this.workingColorSpace){return e.fromArray(this.spaces[t].luminanceCoefficients)},define:function(e){Object.assign(this.spaces,e)},_getMatrix:function(e,t,n){return e.copy(this.spaces[t].toXYZ).multiply(this.spaces[n].fromXYZ)},_getDrawingBufferColorSpace:function(e){return this.spaces[e].outputColorSpaceConfig.drawingBufferColorSpace},_getUnpackColorSpace:function(e=this.workingColorSpace){return this.spaces[e].workingColorSpaceConfig.unpackColorSpace},fromWorkingColorSpace:function(t,n){return Ro(`ColorManagement: .fromWorkingColorSpace() has been renamed to .workingToColorSpace().`),e.workingToColorSpace(t,n)},toWorkingColorSpace:function(t,n){return Ro(`ColorManagement: .toWorkingColorSpace() has been renamed to .colorSpaceToWorking().`),e.colorSpaceToWorking(t,n)}},t=[.64,.33,.3,.6,.15,.06],n=[.2126,.7152,.0722],r=[.3127,.329];return e.define({[So]:{primaries:t,whitePoint:r,transfer:Co,toXYZ:ys,fromXYZ:bs,luminanceCoefficients:n,workingColorSpaceConfig:{unpackColorSpace:xo},outputColorSpaceConfig:{drawingBufferColorSpace:xo}},[xo]:{primaries:t,whitePoint:r,transfer:wo,toXYZ:ys,fromXYZ:bs,luminanceCoefficients:n,outputColorSpaceConfig:{drawingBufferColorSpace:xo}}}),e}var Ss=xs();function Cs(e){return e<.04045?e*.0773993808:(e*.9478672986+.0521327014)**2.4}function ws(e){return e<.0031308?e*12.92:1.055*e**.41666-.055}var Ts,Es=class{static getDataURL(e,t=`image/png`){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>`u`)return e.src;let n;if(e instanceof HTMLCanvasElement)n=e;else{Ts===void 0&&(Ts=jo(`canvas`)),Ts.width=e.width,Ts.height=e.height;let t=Ts.getContext(`2d`);e instanceof ImageData?t.putImageData(e,0,0):t.drawImage(e,0,0,e.width,e.height),n=Ts}return n.toDataURL(t)}static sRGBToLinear(e){if(typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement||typeof ImageBitmap<`u`&&e instanceof ImageBitmap){let t=jo(`canvas`);t.width=e.width,t.height=e.height;let n=t.getContext(`2d`);n.drawImage(e,0,0,e.width,e.height);let r=n.getImageData(0,0,e.width,e.height),i=r.data;for(let e=0;e1),this.pmremVersion=0,this.normalized=!1}get width(){return this.source.getSize(js).x}get height(){return this.source.getSize(js).y}get depth(){return this.source.getSize(js).z}get image(){return this.source.data}set image(e){this.source.data=e}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}clone(){return new this.constructor().copy(this)}copy(e){return this.name=e.name,this.source=e.source,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.channel=e.channel,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.internalFormat=e.internalFormat,this.type=e.type,this.normalized=e.normalized,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.colorSpace=e.colorSpace,this.renderTarget=e.renderTarget,this.isRenderTargetTexture=e.isRenderTargetTexture,this.isArrayTexture=e.isArrayTexture,this.userData=JSON.parse(JSON.stringify(e.userData)),this.needsUpdate=!0,this}setValues(e){for(let t in e){let n=e[t];if(n===void 0){Io(`Texture.setValues(): parameter '${t}' has value of undefined.`);continue}let r=this[t];r===void 0?Io(`Texture.setValues(): property '${t}' does not exist.`):r&&n&&r.isVector2&&n.isVector2||r&&n&&r.isVector3&&n.isVector3||r&&n&&r.isMatrix3&&n.isMatrix3?r.copy(n):this[t]=n}}toJSON(e){let t=e===void 0||typeof e==`string`;if(!t&&e.textures[this.uuid]!==void 0)return e.textures[this.uuid];let n={metadata:{version:4.7,type:`Texture`,generator:`Texture.toJSON`},uuid:this.uuid,name:this.name,image:this.source.toJSON(e).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,normalized:this.normalized,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(n.userData=this.userData),t||(e.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:`dispose`})}transformUv(e){if(this.mapping!==300)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case Zi:e.x-=Math.floor(e.x);break;case Qi:e.x=e.x<0?0:1;break;case $i:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x-=Math.floor(e.x)}if(e.y<0||e.y>1)switch(this.wrapT){case Zi:e.y-=Math.floor(e.y);break;case Qi:e.y=e.y<0?0:1;break;case $i:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y-=Math.floor(e.y)}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(e){e===!0&&this.pmremVersion++}};Ms.DEFAULT_IMAGE=null,Ms.DEFAULT_MAPPING=300,Ms.DEFAULT_ANISOTROPY=1;var Ns=class e{static{e.prototype.isVector4=!0}constructor(e=0,t=0,n=0,r=1){this.x=e,this.y=t,this.z=n,this.w=r}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,n,r){return this.x=e,this.y=t,this.z=n,this.w=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw Error(`THREE.Vector4: index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw Error(`THREE.Vector4: index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w===void 0?1:e.w,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){let t=this.x,n=this.y,r=this.z,i=this.w,a=e.elements;return this.x=a[0]*t+a[4]*n+a[8]*r+a[12]*i,this.y=a[1]*t+a[5]*n+a[9]*r+a[13]*i,this.z=a[2]*t+a[6]*n+a[10]*r+a[14]*i,this.w=a[3]*t+a[7]*n+a[11]*r+a[15]*i,this}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this.w/=e.w,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);let t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,n,r,i,a=.01,o=.1,s=e.elements,c=s[0],l=s[4],u=s[8],d=s[1],f=s[5],p=s[9],m=s[2],h=s[6],g=s[10];if(Math.abs(l-d)s&&e>_?e_?s1);this.dispose()}this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}clone(){return new this.constructor().copy(this)}copy(e){this.width=e.width,this.height=e.height,this.depth=e.depth,this.scissor.copy(e.scissor),this.scissorTest=e.scissorTest,this.viewport.copy(e.viewport),this.textures.length=0;for(let t=0,n=e.textures.length;t>>0}enable(e){this.mask|=1<1){for(let e=0;e1){for(let e=0;e0&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),r.up=this.up.toArray(),this.pivot!==null&&(r.pivot=this.pivot.toArray()),this.morphTargetDictionary!==void 0&&(r.morphTargetDictionary=Object.assign({},this.morphTargetDictionary)),this.morphTargetInfluences!==void 0&&(r.morphTargetInfluences=this.morphTargetInfluences.slice()),this.isInstancedMesh&&(r.type=`InstancedMesh`,r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(r.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(r.type=`BatchedMesh`,r.perObjectFrustumCulled=this.perObjectFrustumCulled,r.sortObjects=this.sortObjects,r.drawRanges=this._drawRanges,r.reservedRanges=this._reservedRanges,r.geometryInfo=this._geometryInfo.map(e=>({...e,boundingBox:e.boundingBox?e.boundingBox.toJSON():void 0,boundingSphere:e.boundingSphere?e.boundingSphere.toJSON():void 0})),r.instanceInfo=this._instanceInfo.map(e=>({...e})),r.availableInstanceIds=this._availableInstanceIds.slice(),r.availableGeometryIds=this._availableGeometryIds.slice(),r.nextIndexStart=this._nextIndexStart,r.nextVertexStart=this._nextVertexStart,r.geometryCount=this._geometryCount,r.maxInstanceCount=this._maxInstanceCount,r.maxVertexCount=this._maxVertexCount,r.maxIndexCount=this._maxIndexCount,r.geometryInitialized=this._geometryInitialized,r.matricesTexture=this._matricesTexture.toJSON(e),r.indirectTexture=this._indirectTexture.toJSON(e),this._colorsTexture!==null&&(r.colorsTexture=this._colorsTexture.toJSON(e)),this.boundingSphere!==null&&(r.boundingSphere=this.boundingSphere.toJSON()),this.boundingBox!==null&&(r.boundingBox=this.boundingBox.toJSON()));function i(t,n){return t[n.uuid]===void 0&&(t[n.uuid]=n.toJSON(e)),n.uuid}if(this.isScene)this.background&&(this.background.isColor?r.background=this.background.toJSON():this.background.isTexture&&(r.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(r.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){r.geometry=i(e.geometries,this.geometry);let t=this.geometry.parameters;if(t!==void 0&&t.shapes!==void 0){let n=t.shapes;if(Array.isArray(n))for(let t=0,r=n.length;t0){r.children=[];for(let t=0;t0){r.animations=[];for(let t=0;t0&&(n.geometries=t),r.length>0&&(n.materials=r),i.length>0&&(n.textures=i),o.length>0&&(n.images=o),s.length>0&&(n.shapes=s),c.length>0&&(n.skeletons=c),l.length>0&&(n.animations=l),u.length>0&&(n.nodes=u)}return n.object=r,n;function a(e){let t=[];for(let n in e){let r=e[n];delete r.metadata,t.push(r)}return t}}clone(e){return new this.constructor().copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.pivot=e.pivot===null?null:e.pivot.clone(),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.static=e.static,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),t===!0)for(let t=0;t.025?(c.inputState.pinching=!1,this.dispatchEvent({type:`pinchend`,handedness:e.handedness,target:this})):!c.inputState.pinching&&o<=.015&&(c.inputState.pinching=!0,this.dispatchEvent({type:`pinchstart`,handedness:e.handedness,target:this}))}else s!==null&&e.gripSpace&&(i=t.getPose(e.gripSpace,n),i!==null&&(s.matrix.fromArray(i.transform.matrix),s.matrix.decompose(s.position,s.rotation,s.scale),s.matrixWorldNeedsUpdate=!0,i.linearVelocity?(s.hasLinearVelocity=!0,s.linearVelocity.copy(i.linearVelocity)):s.hasLinearVelocity=!1,i.angularVelocity?(s.hasAngularVelocity=!0,s.angularVelocity.copy(i.angularVelocity)):s.hasAngularVelocity=!1,s.eventsEnabled&&s.dispatchEvent({type:`gripUpdated`,data:e,target:this})));o!==null&&(r=t.getPose(e.targetRaySpace,n),r===null&&i!==null&&(r=i),r!==null&&(o.matrix.fromArray(r.transform.matrix),o.matrix.decompose(o.position,o.rotation,o.scale),o.matrixWorldNeedsUpdate=!0,r.linearVelocity?(o.hasLinearVelocity=!0,o.linearVelocity.copy(r.linearVelocity)):o.hasLinearVelocity=!1,r.angularVelocity?(o.hasAngularVelocity=!0,o.angularVelocity.copy(r.angularVelocity)):o.hasAngularVelocity=!1,this.dispatchEvent(pc)))}return o!==null&&(o.visible=r!==null),s!==null&&(s.visible=i!==null),c!==null&&(c.visible=a!==null),this}_getHandJoint(e,t){if(e.joints[t.jointName]===void 0){let n=new fc;n.matrixAutoUpdate=!1,n.visible=!1,e.joints[t.jointName]=n,e.add(n)}return e.joints[t.jointName]}},hc={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},gc={h:0,s:0,l:0},_c={h:0,s:0,l:0};function vc(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*6*(2/3-n):e}var V=class{constructor(e,t,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,n)}set(e,t,n){if(t===void 0&&n===void 0){let t=e;t&&t.isColor?this.copy(t):typeof t==`number`?this.setHex(t):typeof t==`string`&&this.setStyle(t)}else this.setRGB(e,t,n);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=xo){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,Ss.colorSpaceToWorking(this,t),this}setRGB(e,t,n,r=Ss.workingColorSpace){return this.r=e,this.g=t,this.b=n,Ss.colorSpaceToWorking(this,r),this}setHSL(e,t,n,r=Ss.workingColorSpace){if(e=Jo(e,1),t=qo(t,0,1),n=qo(n,0,1),t===0)this.r=this.g=this.b=n;else{let r=n<=.5?n*(1+t):n+t-n*t,i=2*n-r;this.r=vc(i,r,e+1/3),this.g=vc(i,r,e),this.b=vc(i,r,e-1/3)}return Ss.colorSpaceToWorking(this,r),this}setStyle(e,t=xo){function n(t){t!==void 0&&parseFloat(t)<1&&Io(`Color: Alpha component of `+e+` will be ignored.`)}let r;if(r=/^(\w+)\(([^\)]*)\)/.exec(e)){let i,a=r[1],o=r[2];switch(a){case`rgb`:case`rgba`:if(i=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setRGB(Math.min(255,parseInt(i[1],10))/255,Math.min(255,parseInt(i[2],10))/255,Math.min(255,parseInt(i[3],10))/255,t);if(i=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setRGB(Math.min(100,parseInt(i[1],10))/100,Math.min(100,parseInt(i[2],10))/100,Math.min(100,parseInt(i[3],10))/100,t);break;case`hsl`:case`hsla`:if(i=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setHSL(parseFloat(i[1])/360,parseFloat(i[2])/100,parseFloat(i[3])/100,t);break;default:Io(`Color: Unknown color model `+e)}}else if(r=/^\#([A-Fa-f\d]+)$/.exec(e)){let n=r[1],i=n.length;if(i===3)return this.setRGB(parseInt(n.charAt(0),16)/15,parseInt(n.charAt(1),16)/15,parseInt(n.charAt(2),16)/15,t);if(i===6)return this.setHex(parseInt(n,16),t);Io(`Color: Invalid hex color `+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=xo){let n=hc[e.toLowerCase()];return n===void 0?Io(`Color: Unknown color `+e):this.setHex(n,t),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=Cs(e.r),this.g=Cs(e.g),this.b=Cs(e.b),this}copyLinearToSRGB(e){return this.r=ws(e.r),this.g=ws(e.g),this.b=ws(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=xo){return Ss.workingToColorSpace(yc.copy(this),e),Math.round(qo(yc.r*255,0,255))*65536+Math.round(qo(yc.g*255,0,255))*256+Math.round(qo(yc.b*255,0,255))}getHexString(e=xo){return(`000000`+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=Ss.workingColorSpace){Ss.workingToColorSpace(yc.copy(this),t);let n=yc.r,r=yc.g,i=yc.b,a=Math.max(n,r,i),o=Math.min(n,r,i),s,c,l=(o+a)/2;if(o===a)s=0,c=0;else{let e=a-o;switch(c=l<=.5?e/(a+o):e/(2-a-o),a){case n:s=(r-i)/e+(r0?r.multiplyScalar(1/Math.sqrt(i)):r.set(0,0,0)}static getBarycoord(e,t,n,r,i){Sc.subVectors(r,t),Cc.subVectors(n,t),wc.subVectors(e,t);let a=Sc.dot(Sc),o=Sc.dot(Cc),s=Sc.dot(wc),c=Cc.dot(Cc),l=Cc.dot(wc),u=a*c-o*o;if(u===0)return i.set(0,0,0),null;let d=1/u,f=(c*s-o*l)*d,p=(a*l-o*s)*d;return i.set(1-f-p,p,f)}static containsPoint(e,t,n,r){return this.getBarycoord(e,t,n,r,Tc)!==null&&Tc.x>=0&&Tc.y>=0&&Tc.x+Tc.y<=1}static getInterpolation(e,t,n,r,i,a,o,s){return this.getBarycoord(e,t,n,r,Tc)===null?(s.x=0,s.y=0,`z`in s&&(s.z=0),`w`in s&&(s.w=0),null):(s.setScalar(0),s.addScaledVector(i,Tc.x),s.addScaledVector(a,Tc.y),s.addScaledVector(o,Tc.z),s)}static getInterpolatedAttribute(e,t,n,r,i,a){return Mc.setScalar(0),Nc.setScalar(0),Pc.setScalar(0),Mc.fromBufferAttribute(e,t),Nc.fromBufferAttribute(e,n),Pc.fromBufferAttribute(e,r),a.setScalar(0),a.addScaledVector(Mc,i.x),a.addScaledVector(Nc,i.y),a.addScaledVector(Pc,i.z),a}static isFrontFacing(e,t,n,r){return Sc.subVectors(n,t),Cc.subVectors(e,t),Sc.cross(Cc).dot(r)<0}set(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this}setFromPointsAndIndices(e,t,n,r){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[r]),this}setFromAttributeAndIndices(e,t,n,r){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,n),this.c.fromBufferAttribute(e,r),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return Sc.subVectors(this.c,this.b),Cc.subVectors(this.a,this.b),Sc.cross(Cc).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(t){return e.getNormal(this.a,this.b,this.c,t)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(t,n){return e.getBarycoord(t,this.a,this.b,this.c,n)}getInterpolation(t,n,r,i,a){return e.getInterpolation(t,this.a,this.b,this.c,n,r,i,a)}containsPoint(t){return e.containsPoint(t,this.a,this.b,this.c)}isFrontFacing(t){return e.isFrontFacing(this.a,this.b,this.c,t)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){let n=this.a,r=this.b,i=this.c,a,o;Ec.subVectors(r,n),Dc.subVectors(i,n),kc.subVectors(e,n);let s=Ec.dot(kc),c=Dc.dot(kc);if(s<=0&&c<=0)return t.copy(n);Ac.subVectors(e,r);let l=Ec.dot(Ac),u=Dc.dot(Ac);if(l>=0&&u<=l)return t.copy(r);let d=s*u-l*c;if(d<=0&&s>=0&&l<=0)return a=s/(s-l),t.copy(n).addScaledVector(Ec,a);jc.subVectors(e,i);let f=Ec.dot(jc),p=Dc.dot(jc);if(p>=0&&f<=p)return t.copy(i);let m=f*c-s*p;if(m<=0&&c>=0&&p<=0)return o=c/(c-p),t.copy(n).addScaledVector(Dc,o);let h=l*p-f*u;if(h<=0&&u-l>=0&&f-p>=0)return Oc.subVectors(i,r),o=(u-l)/(u-l+(f-p)),t.copy(r).addScaledVector(Oc,o);let g=1/(h+m+d);return a=m*g,o=d*g,t.copy(n).addScaledVector(Ec,a).addScaledVector(Dc,o)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}},Ic=class{constructor(e=new B(1/0,1/0,1/0),t=new B(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,n=e.length;t=this.min.x&&e.x<=this.max.x&&e.y>=this.min.y&&e.y<=this.max.y&&e.z>=this.min.z&&e.z<=this.max.z}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return e.max.x>=this.min.x&&e.min.x<=this.max.x&&e.max.y>=this.min.y&&e.min.y<=this.max.y&&e.max.z>=this.min.z&&e.min.z<=this.max.z}intersectsSphere(e){return this.clampPoint(e.center,Rc),Rc.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,n;return e.normal.x>0?(t=e.normal.x*this.min.x,n=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,n=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,n+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,n+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,n+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,n+=e.normal.z*this.min.z),t<=-e.constant&&n>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(Kc),qc.subVectors(this.max,Kc),Bc.subVectors(e.a,Kc),Vc.subVectors(e.b,Kc),Hc.subVectors(e.c,Kc),Uc.subVectors(Vc,Bc),Wc.subVectors(Hc,Vc),Gc.subVectors(Bc,Hc);let t=[0,-Uc.z,Uc.y,0,-Wc.z,Wc.y,0,-Gc.z,Gc.y,Uc.z,0,-Uc.x,Wc.z,0,-Wc.x,Gc.z,0,-Gc.x,-Uc.y,Uc.x,0,-Wc.y,Wc.x,0,-Gc.y,Gc.x,0];return!Xc(t,Bc,Vc,Hc,qc)||(t=[1,0,0,0,1,0,0,0,1],!Xc(t,Bc,Vc,Hc,qc))?!1:(Jc.crossVectors(Uc,Wc),t=[Jc.x,Jc.y,Jc.z],Xc(t,Bc,Vc,Hc,qc))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,Rc).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(Rc).length()*.5),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()||(Lc[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),Lc[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),Lc[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),Lc[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),Lc[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),Lc[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),Lc[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),Lc[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(Lc)),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}toJSON(){return{min:this.min.toArray(),max:this.max.toArray()}}fromJSON(e){return this.min.fromArray(e.min),this.max.fromArray(e.max),this}},Lc=[new B,new B,new B,new B,new B,new B,new B,new B],Rc=new B,zc=new Ic,Bc=new B,Vc=new B,Hc=new B,Uc=new B,Wc=new B,Gc=new B,Kc=new B,qc=new B,Jc=new B,Yc=new B;function Xc(e,t,n,r,i){for(let a=0,o=e.length-3;a<=o;a+=3){Yc.fromArray(e,a);let o=i.x*Math.abs(Yc.x)+i.y*Math.abs(Yc.y)+i.z*Math.abs(Yc.z),s=t.dot(Yc),c=n.dot(Yc),l=r.dot(Yc);if(Math.max(-Math.max(s,c,l),Math.min(s,c,l))>o)return!1}return!0}var Zc=new B,Qc=new z,$c=0,el=class extends Vo{constructor(e,t,n=!1){if(super(),Array.isArray(e))throw TypeError(`THREE.BufferAttribute: array should be a Typed Array.`);this.isBufferAttribute=!0,Object.defineProperty(this,"id",{value:$c++}),this.name=``,this.array=e,this.itemSize=t,this.count=e===void 0?0:e.length/t,this.normalized=n,this.usage=Eo,this.updateRanges=[],this.gpuType=fa,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,n){e*=this.itemSize,n*=t.itemSize;for(let r=0,i=this.itemSize;rthis.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius*=e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;al.subVectors(e,this.center);let t=al.lengthSq();if(t>this.radius*this.radius){let e=Math.sqrt(t),n=(e-this.radius)*.5;this.center.addScaledVector(al,n/e),this.radius+=n}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(this.center.equals(e.center)===!0?this.radius=Math.max(this.radius,e.radius):(ol.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(al.copy(e.center).add(ol)),this.expandByPoint(al.copy(e.center).sub(ol))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}toJSON(){return{radius:this.radius,center:this.center.toArray()}}fromJSON(e){return this.radius=e.radius,this.center.fromArray(e.center),this}},cl=0,ll=new Rs,ul=new dc,dl=new B,fl=new Ic,pl=new Ic,ml=new B,hl=class e extends Vo{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,"id",{value:cl++}),this.uuid=Ko(),this.name=``,this.type=`BufferGeometry`,this.index=null,this.indirect=null,this.indirectOffset=0,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={},this._transformed=!1}getIndex(){return this.index}setIndex(e){return this.index=Array.isArray(e)?new(ko(e)?nl:tl)(e,1):e,this}setIndirect(e,t=0){return this.indirect=e,this.indirectOffset=t,this}getIndirect(){return this.indirect}getAttribute(e){return this.attributes[e]}setAttribute(e,t){return this.attributes[e]=t,this}deleteAttribute(e){return delete this.attributes[e],this}hasAttribute(e){return this.attributes[e]!==void 0}addGroup(e,t,n=0){this.groups.push({start:e,count:t,materialIndex:n})}clearGroups(){this.groups=[]}setDrawRange(e,t){this.drawRange.start=e,this.drawRange.count=t}applyMatrix4(e){let t=this.attributes.position;t!==void 0&&(t.applyMatrix4(e),t.needsUpdate=!0);let n=this.attributes.normal;if(n!==void 0){let t=new _s().getNormalMatrix(e);n.applyNormalMatrix(t),n.needsUpdate=!0}let r=this.attributes.tangent;return r!==void 0&&(r.transformDirection(e),r.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this._transformed=!0,this}applyQuaternion(e){return ll.makeRotationFromQuaternion(e),this.applyMatrix4(ll),this}rotateX(e){return ll.makeRotationX(e),this.applyMatrix4(ll),this}rotateY(e){return ll.makeRotationY(e),this.applyMatrix4(ll),this}rotateZ(e){return ll.makeRotationZ(e),this.applyMatrix4(ll),this}translate(e,t,n){return ll.makeTranslation(e,t,n),this.applyMatrix4(ll),this}scale(e,t,n){return ll.makeScale(e,t,n),this.applyMatrix4(ll),this}lookAt(e){return ul.lookAt(e),ul.updateMatrix(),this.applyMatrix4(ul.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(dl).negate(),this.translate(dl.x,dl.y,dl.z),this}setFromPoints(e){let t=this.getAttribute(`position`);if(t===void 0){let t=[];for(let n=0,r=e.length;nt.count&&Io(`BufferGeometry: Buffer size too small for points data. Use .dispose() and create a new geometry.`),t.needsUpdate=!0}return this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new Ic);let e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute)Lo(`BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.`,this),this.boundingBox.set(new B(-1/0,-1/0,-1/0),new B(1/0,1/0,1/0));else{if(e!==void 0){if(this.boundingBox.setFromBufferAttribute(e),t)for(let e=0,n=t.length;e0&&(e.userData=this.userData),this.parameters!==void 0&&this._transformed!==!0){let t=this.parameters;for(let n in t)t[n]!==void 0&&(e[n]=t[n]);return e}e.data={attributes:{}};let t=this.index;t!==null&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});let n=this.attributes;for(let t in n){let r=n[t];e.data.attributes[t]=r.toJSON(e.data)}let r={},i=!1;for(let t in this.morphAttributes){let n=this.morphAttributes[t],a=[];for(let t=0,r=n.length;t0&&(r[t]=a,i=!0)}i&&(e.data.morphAttributes=r,e.data.morphTargetsRelative=this.morphTargetsRelative);let a=this.groups;a.length>0&&(e.data.groups=JSON.parse(JSON.stringify(a)));let o=this.boundingSphere;return o!==null&&(e.data.boundingSphere=o.toJSON()),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;let t={};this.name=e.name;let n=e.index;n!==null&&this.setIndex(n.clone());let r=e.attributes;for(let e in r){let n=r[e];this.setAttribute(e,n.clone(t))}let i=e.morphAttributes;for(let e in i){let n=[],r=i[e];for(let e=0,i=r.length;e1)?null:t.copy(e.start).addScaledVector(r,a)}intersectsLine(e){let t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){let n=t||xl.getNormalMatrix(e),r=this.coplanarPoint(yl).applyMatrix4(e),i=this.normal.applyMatrix3(n).normalize();return this.constant=-r.dot(i),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}toJSON(){return{normal:this.normal.toArray(),constant:this.constant}}fromJSON(e){return this.normal.fromArray(e.normal),this.constant=e.constant,this}},Cl=0,wl=class extends Vo{constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,"id",{value:Cl++}),this.uuid=Ko(),this.name=``,this.type=`Material`,this.blending=1,this.side=0,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.alphaHash=!1,this.blendSrc=204,this.blendDst=205,this.blendEquation=100,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.blendColor=new V(0,0,0),this.blendAlpha=0,this.depthFunc=3,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=519,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=To,this.stencilZFail=To,this.stencilZPass=To,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.forceSinglePass=!1,this.allowOverride=!0,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(e){this._alphaTest>0!=e>0&&this.version++,this._alphaTest=e}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(let t in e){let n=e[t];if(n===void 0){Io(`Material: parameter '${t}' has value of undefined.`);continue}let r=this[t];r===void 0?Io(`Material: '${t}' is not a property of THREE.${this.type}.`):r&&r.isColor?r.set(n):r&&r.isVector2&&n&&n.isVector2||r&&r.isEuler&&n&&n.isEuler||r&&r.isVector3&&n&&n.isVector3?r.copy(n):this[t]=n}}toJSON(e){let t=e===void 0||typeof e==`string`;t&&(e={textures:{},images:{}});let n={metadata:{version:4.7,type:`Material`,generator:`Material.toJSON`}};n.uuid=this.uuid,n.type=this.type,n.blending=this.blending,n.side=this.side,n.shadowSide=this.shadowSide,n.vertexColors=this.vertexColors,n.opacity=this.opacity,n.transparent=this.transparent,n.blendSrc=this.blendSrc,n.blendDst=this.blendDst,n.blendEquation=this.blendEquation,n.blendSrcAlpha=this.blendSrcAlpha,n.blendDstAlpha=this.blendDstAlpha,n.blendEquationAlpha=this.blendEquationAlpha,n.blendColor=this.blendColor.getHex(),n.blendAlpha=this.blendAlpha,n.depthFunc=this.depthFunc,n.depthTest=this.depthTest,n.depthWrite=this.depthWrite,n.colorWrite=this.colorWrite,n.clipIntersection=this.clipIntersection,n.clipShadows=this.clipShadows,n.stencilWriteMask=this.stencilWriteMask,n.stencilFunc=this.stencilFunc,n.stencilRef=this.stencilRef,n.stencilFuncMask=this.stencilFuncMask,n.stencilFail=this.stencilFail,n.stencilZFail=this.stencilZFail,n.stencilZPass=this.stencilZPass,n.stencilWrite=this.stencilWrite,n.polygonOffset=this.polygonOffset,n.polygonOffsetFactor=this.polygonOffsetFactor,n.polygonOffsetUnits=this.polygonOffsetUnits,n.dithering=this.dithering,n.alphaTest=this.alphaTest,n.alphaHash=this.alphaHash,n.alphaToCoverage=this.alphaToCoverage,n.premultipliedAlpha=this.premultipliedAlpha,n.forceSinglePass=this.forceSinglePass,n.allowOverride=this.allowOverride,n.visible=this.visible,n.toneMapped=this.toneMapped,n.name=this.name,this.color&&this.color.isColor&&(n.color=this.color.getHex()),this.roughness!==void 0&&(n.roughness=this.roughness),this.metalness!==void 0&&(n.metalness=this.metalness),this.sheen!==void 0&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity!==void 0&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(n.shininess=this.shininess),this.clearcoat!==void 0&&(n.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.sheenColorMap&&this.sheenColorMap.isTexture&&(n.sheenColorMap=this.sheenColorMap.toJSON(e).uuid),this.sheenRoughnessMap&&this.sheenRoughnessMap.isTexture&&(n.sheenRoughnessMap=this.sheenRoughnessMap.toJSON(e).uuid),this.dispersion!==void 0&&(n.dispersion=this.dispersion),this.retroreflectivity!==void 0&&(n.retroreflectivity=this.retroreflectivity),this.iridescence!==void 0&&(n.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(n.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(n.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(n.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(n.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(n.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(n.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(n.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(e).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(e).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(e).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(e).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(e).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(n.combine=this.combine)),this.envMapRotation!==void 0&&(n.envMapRotation=this.envMapRotation.toArray()),this.envMapIntensity!==void 0&&(n.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(n.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&(n.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(n.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(n.size=this.size),this.sizeAttenuation!==void 0&&(n.sizeAttenuation=this.sizeAttenuation),Array.isArray(this.clippingPlanes)&&this.clippingPlanes.length>0&&(n.clippingPlanes=this.clippingPlanes.map(e=>e.toJSON())),this.rotation!==void 0&&(n.rotation=this.rotation),this.depthPacking!==void 0&&(n.depthPacking=this.depthPacking),this.linewidth!==void 0&&(n.linewidth=this.linewidth),this.linecap!==void 0&&(n.linecap=this.linecap),this.linejoin!==void 0&&(n.linejoin=this.linejoin),this.dashSize!==void 0&&(n.dashSize=this.dashSize),this.gapSize!==void 0&&(n.gapSize=this.gapSize),this.scale!==void 0&&(n.scale=this.scale),this.wireframe!==void 0&&(n.wireframe=this.wireframe),this.wireframeLinewidth!==void 0&&(n.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!==void 0&&(n.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!==void 0&&(n.wireframeLinejoin=this.wireframeLinejoin),this.flatShading!==void 0&&(n.flatShading=this.flatShading),this.fog!==void 0&&(n.fog=this.fog),Object.keys(this.userData).length>0&&(n.userData=this.userData);function r(e){let t=[];for(let n in e){let r=e[n];delete r.metadata,t.push(r)}return t}if(t){let t=r(e.textures),i=r(e.images);t.length>0&&(n.textures=t),i.length>0&&(n.images=i)}return n}fromJSON(e,t){if(e.uuid!==void 0&&(this.uuid=e.uuid),e.name!==void 0&&(this.name=e.name),e.color!==void 0&&this.color!==void 0&&this.color.setHex(e.color),e.roughness!==void 0&&(this.roughness=e.roughness),e.metalness!==void 0&&(this.metalness=e.metalness),e.sheen!==void 0&&(this.sheen=e.sheen),e.sheenColor!==void 0&&(this.sheenColor=new V().setHex(e.sheenColor)),e.sheenRoughness!==void 0&&(this.sheenRoughness=e.sheenRoughness),e.emissive!==void 0&&this.emissive!==void 0&&this.emissive.setHex(e.emissive),e.specular!==void 0&&this.specular!==void 0&&this.specular.setHex(e.specular),e.specularIntensity!==void 0&&(this.specularIntensity=e.specularIntensity),e.specularColor!==void 0&&this.specularColor!==void 0&&this.specularColor.setHex(e.specularColor),e.shininess!==void 0&&(this.shininess=e.shininess),e.clearcoat!==void 0&&(this.clearcoat=e.clearcoat),e.clearcoatRoughness!==void 0&&(this.clearcoatRoughness=e.clearcoatRoughness),e.dispersion!==void 0&&(this.dispersion=e.dispersion),e.retroreflectivity!==void 0&&(this.retroreflectivity=e.retroreflectivity),e.iridescence!==void 0&&(this.iridescence=e.iridescence),e.iridescenceIOR!==void 0&&(this.iridescenceIOR=e.iridescenceIOR),e.iridescenceThicknessRange!==void 0&&(this.iridescenceThicknessRange=e.iridescenceThicknessRange),e.transmission!==void 0&&(this.transmission=e.transmission),e.thickness!==void 0&&(this.thickness=e.thickness),e.attenuationDistance!==void 0&&(this.attenuationDistance=e.attenuationDistance),e.attenuationColor!==void 0&&this.attenuationColor!==void 0&&this.attenuationColor.setHex(e.attenuationColor),e.anisotropy!==void 0&&(this.anisotropy=e.anisotropy),e.anisotropyRotation!==void 0&&(this.anisotropyRotation=e.anisotropyRotation),e.fog!==void 0&&(this.fog=e.fog),e.flatShading!==void 0&&(this.flatShading=e.flatShading),e.blending!==void 0&&(this.blending=e.blending),e.combine!==void 0&&(this.combine=e.combine),e.side!==void 0&&(this.side=e.side),e.shadowSide!==void 0&&(this.shadowSide=e.shadowSide),e.opacity!==void 0&&(this.opacity=e.opacity),e.transparent!==void 0&&(this.transparent=e.transparent),e.alphaTest!==void 0&&(this.alphaTest=e.alphaTest),e.alphaHash!==void 0&&(this.alphaHash=e.alphaHash),e.depthFunc!==void 0&&(this.depthFunc=e.depthFunc),e.depthTest!==void 0&&(this.depthTest=e.depthTest),e.depthWrite!==void 0&&(this.depthWrite=e.depthWrite),e.colorWrite!==void 0&&(this.colorWrite=e.colorWrite),e.clippingPlanes!==void 0&&(this.clippingPlanes=e.clippingPlanes.map(e=>new Sl().fromJSON(e))),e.clipIntersection!==void 0&&(this.clipIntersection=e.clipIntersection),e.clipShadows!==void 0&&(this.clipShadows=e.clipShadows),e.depthPacking!==void 0&&(this.depthPacking=e.depthPacking),e.blendSrc!==void 0&&(this.blendSrc=e.blendSrc),e.blendDst!==void 0&&(this.blendDst=e.blendDst),e.blendEquation!==void 0&&(this.blendEquation=e.blendEquation),e.blendSrcAlpha!==void 0&&(this.blendSrcAlpha=e.blendSrcAlpha),e.blendDstAlpha!==void 0&&(this.blendDstAlpha=e.blendDstAlpha),e.blendEquationAlpha!==void 0&&(this.blendEquationAlpha=e.blendEquationAlpha),e.blendColor!==void 0&&this.blendColor!==void 0&&this.blendColor.setHex(e.blendColor),e.blendAlpha!==void 0&&(this.blendAlpha=e.blendAlpha),e.stencilWriteMask!==void 0&&(this.stencilWriteMask=e.stencilWriteMask),e.stencilFunc!==void 0&&(this.stencilFunc=e.stencilFunc),e.stencilRef!==void 0&&(this.stencilRef=e.stencilRef),e.stencilFuncMask!==void 0&&(this.stencilFuncMask=e.stencilFuncMask),e.stencilFail!==void 0&&(this.stencilFail=e.stencilFail),e.stencilZFail!==void 0&&(this.stencilZFail=e.stencilZFail),e.stencilZPass!==void 0&&(this.stencilZPass=e.stencilZPass),e.stencilWrite!==void 0&&(this.stencilWrite=e.stencilWrite),e.wireframe!==void 0&&(this.wireframe=e.wireframe),e.wireframeLinewidth!==void 0&&(this.wireframeLinewidth=e.wireframeLinewidth),e.wireframeLinecap!==void 0&&(this.wireframeLinecap=e.wireframeLinecap),e.wireframeLinejoin!==void 0&&(this.wireframeLinejoin=e.wireframeLinejoin),e.rotation!==void 0&&(this.rotation=e.rotation),e.linewidth!==void 0&&(this.linewidth=e.linewidth),e.linecap!==void 0&&(this.linecap=e.linecap),e.linejoin!==void 0&&(this.linejoin=e.linejoin),e.dashSize!==void 0&&(this.dashSize=e.dashSize),e.gapSize!==void 0&&(this.gapSize=e.gapSize),e.scale!==void 0&&(this.scale=e.scale),e.polygonOffset!==void 0&&(this.polygonOffset=e.polygonOffset),e.polygonOffsetFactor!==void 0&&(this.polygonOffsetFactor=e.polygonOffsetFactor),e.polygonOffsetUnits!==void 0&&(this.polygonOffsetUnits=e.polygonOffsetUnits),e.dithering!==void 0&&(this.dithering=e.dithering),e.alphaToCoverage!==void 0&&(this.alphaToCoverage=e.alphaToCoverage),e.premultipliedAlpha!==void 0&&(this.premultipliedAlpha=e.premultipliedAlpha),e.forceSinglePass!==void 0&&(this.forceSinglePass=e.forceSinglePass),e.allowOverride!==void 0&&(this.allowOverride=e.allowOverride),e.visible!==void 0&&(this.visible=e.visible),e.toneMapped!==void 0&&(this.toneMapped=e.toneMapped),e.userData!==void 0&&(this.userData=e.userData),e.vertexColors!==void 0&&(this.vertexColors=typeof e.vertexColors==`number`?e.vertexColors>0:e.vertexColors),e.size!==void 0&&(this.size=e.size),e.sizeAttenuation!==void 0&&(this.sizeAttenuation=e.sizeAttenuation),e.map!==void 0&&(this.map=t[e.map]||null),e.matcap!==void 0&&(this.matcap=t[e.matcap]||null),e.alphaMap!==void 0&&(this.alphaMap=t[e.alphaMap]||null),e.bumpMap!==void 0&&(this.bumpMap=t[e.bumpMap]||null),e.bumpScale!==void 0&&(this.bumpScale=e.bumpScale),e.normalMap!==void 0&&(this.normalMap=t[e.normalMap]||null),e.normalMapType!==void 0&&(this.normalMapType=e.normalMapType),e.normalScale!==void 0){let t=e.normalScale;Array.isArray(t)===!1&&(t=[t,t]),this.normalScale=new z().fromArray(t)}return e.displacementMap!==void 0&&(this.displacementMap=t[e.displacementMap]||null),e.displacementScale!==void 0&&(this.displacementScale=e.displacementScale),e.displacementBias!==void 0&&(this.displacementBias=e.displacementBias),e.roughnessMap!==void 0&&(this.roughnessMap=t[e.roughnessMap]||null),e.metalnessMap!==void 0&&(this.metalnessMap=t[e.metalnessMap]||null),e.emissiveMap!==void 0&&(this.emissiveMap=t[e.emissiveMap]||null),e.emissiveIntensity!==void 0&&(this.emissiveIntensity=e.emissiveIntensity),e.specularMap!==void 0&&(this.specularMap=t[e.specularMap]||null),e.specularIntensityMap!==void 0&&(this.specularIntensityMap=t[e.specularIntensityMap]||null),e.specularColorMap!==void 0&&(this.specularColorMap=t[e.specularColorMap]||null),e.envMap!==void 0&&(this.envMap=t[e.envMap]||null),e.envMapRotation!==void 0&&this.envMapRotation.fromArray(e.envMapRotation),e.envMapIntensity!==void 0&&(this.envMapIntensity=e.envMapIntensity),e.reflectivity!==void 0&&(this.reflectivity=e.reflectivity),e.refractionRatio!==void 0&&(this.refractionRatio=e.refractionRatio),e.lightMap!==void 0&&(this.lightMap=t[e.lightMap]||null),e.lightMapIntensity!==void 0&&(this.lightMapIntensity=e.lightMapIntensity),e.aoMap!==void 0&&(this.aoMap=t[e.aoMap]||null),e.aoMapIntensity!==void 0&&(this.aoMapIntensity=e.aoMapIntensity),e.gradientMap!==void 0&&(this.gradientMap=t[e.gradientMap]||null),e.clearcoatMap!==void 0&&(this.clearcoatMap=t[e.clearcoatMap]||null),e.clearcoatRoughnessMap!==void 0&&(this.clearcoatRoughnessMap=t[e.clearcoatRoughnessMap]||null),e.clearcoatNormalMap!==void 0&&(this.clearcoatNormalMap=t[e.clearcoatNormalMap]||null),e.clearcoatNormalScale!==void 0&&(this.clearcoatNormalScale=new z().fromArray(e.clearcoatNormalScale)),e.iridescenceMap!==void 0&&(this.iridescenceMap=t[e.iridescenceMap]||null),e.iridescenceThicknessMap!==void 0&&(this.iridescenceThicknessMap=t[e.iridescenceThicknessMap]||null),e.transmissionMap!==void 0&&(this.transmissionMap=t[e.transmissionMap]||null),e.thicknessMap!==void 0&&(this.thicknessMap=t[e.thicknessMap]||null),e.anisotropyMap!==void 0&&(this.anisotropyMap=t[e.anisotropyMap]||null),e.sheenColorMap!==void 0&&(this.sheenColorMap=t[e.sheenColorMap]||null),e.sheenRoughnessMap!==void 0&&(this.sheenRoughnessMap=t[e.sheenRoughnessMap]||null),this}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;let t=e.clippingPlanes,n=null;if(t!==null){let e=t.length;n=Array(e);for(let r=0;r!==e;++r)n[r]=t[r].clone()}return this.clippingPlanes=n,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.allowOverride=e.allowOverride,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:`dispose`})}set needsUpdate(e){e===!0&&this.version++}},Tl=new B,El=new B,Dl=new B,Ol=new B,kl=class{constructor(e=new B,t=new B(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,Tl)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);let n=t.dot(this.direction);return n<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,n)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){let t=Tl.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(Tl.copy(this.origin).addScaledVector(this.direction,t),Tl.distanceToSquared(e))}distanceSqToSegment(e,t,n,r){El.copy(e).add(t).multiplyScalar(.5),Dl.copy(t).sub(e).normalize(),Ol.copy(this.origin).sub(El);let i=e.distanceTo(t)*.5,a=-this.direction.dot(Dl),o=Ol.dot(this.direction),s=-Ol.dot(Dl),c=Ol.lengthSq(),l=Math.abs(1-a*a),u,d,f,p;if(l>0){if(u=a*s-o,d=a*o-s,p=i*l,u>=0){if(d>=-p){if(d<=p){let e=1/l;u*=e,d*=e,f=u*(u+a*d+2*o)+d*(a*u+d+2*s)+c}else d=i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c}else d=-i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c}else d<=-p?(u=Math.max(0,-(-a*i+o)),d=u>0?-i:Math.min(Math.max(-i,-s),i),f=-u*u+d*(d+2*s)+c):d<=p?(u=0,d=Math.min(Math.max(-i,-s),i),f=d*(d+2*s)+c):(u=Math.max(0,-(a*i+o)),d=u>0?i:Math.min(Math.max(-i,-s),i),f=-u*u+d*(d+2*s)+c)}else d=a>0?-i:i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c;return n&&n.copy(this.origin).addScaledVector(this.direction,u),r&&r.copy(El).addScaledVector(Dl,d),f}intersectSphere(e,t){if(e.radius<0)return null;Tl.subVectors(e.center,this.origin);let n=Tl.dot(this.direction),r=Tl.dot(Tl)-n*n,i=e.radius*e.radius;if(r>i)return null;let a=Math.sqrt(i-r),o=n-a,s=n+a;return s<0?null:o<0?this.at(s,t):this.at(o,t)}intersectsSphere(e){return e.radius<0?!1:this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){let t=e.normal.dot(this.direction);if(t===0)return e.distanceToPoint(this.origin)===0?0:null;let n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null}intersectPlane(e,t){let n=this.distanceToPlane(e);return n===null?null:this.at(n,t)}intersectsPlane(e){let t=e.distanceToPoint(this.origin);return t===0||e.normal.dot(this.direction)*t<0}intersectBox(e,t){let n,r,i,a,o,s,c=1/this.direction.x,l=1/this.direction.y,u=1/this.direction.z,d=this.origin;return c>=0?(n=(e.min.x-d.x)*c,r=(e.max.x-d.x)*c):(n=(e.max.x-d.x)*c,r=(e.min.x-d.x)*c),l>=0?(i=(e.min.y-d.y)*l,a=(e.max.y-d.y)*l):(i=(e.max.y-d.y)*l,a=(e.min.y-d.y)*l),n>a||i>r||((i>n||isNaN(n))&&(n=i),(a=0?(o=(e.min.z-d.z)*u,s=(e.max.z-d.z)*u):(o=(e.max.z-d.z)*u,s=(e.min.z-d.z)*u),n>s||o>r)||((o>n||n!==n)&&(n=o),(s=0?n:r,t)}intersectsBox(e){return this.intersectBox(e,Tl)!==null}intersectTriangle(e,t,n,r,i){let a=this.origin,o=this.direction,s=o.x,c=o.y,l=o.z,u=e.x-a.x,d=e.y-a.y,f=e.z-a.z,p=t.x-a.x,m=t.y-a.y,h=t.z-a.z,g=n.x-a.x,_=n.y-a.y,v=n.z-a.z,y=Math.abs(s),b=Math.abs(c),x=Math.abs(l),S,C,w,T,E,D,O,k,ee,A,te,j;if(y>=b&&y>=x?(w=s,D=u,ee=p,j=g,s>=0?(S=c,C=l,T=d,E=f,O=m,k=h,A=_,te=v):(S=l,C=c,T=f,E=d,O=h,k=m,A=v,te=_)):b>=x?(w=c,D=d,ee=m,j=_,c>=0?(S=l,C=s,T=f,E=u,O=h,k=p,A=v,te=g):(S=s,C=l,T=u,E=f,O=p,k=h,A=g,te=v)):(w=l,D=f,ee=h,j=v,l>=0?(S=s,C=c,T=u,E=d,O=p,k=m,A=g,te=_):(S=c,C=s,T=d,E=u,O=m,k=p,A=_,te=g)),w===0)return null;let M=S/w,ne=C/w,re=1/w,ie=T-M*D,N=E-ne*D,ae=O-M*ee,oe=k-ne*ee,se=A-M*j,ce=te-ne*j,le=se*oe-ce*ae,ue=ie*ce-N*se,de=ae*N-oe*ie;if(r){if(le<0||ue<0||de<0)return null}else if((le<0||ue<0||de<0)&&(le>0||ue>0||de>0))return null;let fe=le+ue+de;if(fe===0)return null;let pe=re*(le*D+ue*ee+de*j);return(fe>0?pe<0:pe>0)?null:this.at(pe/fe,i)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}},Al=class extends wl{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type=`MeshBasicMaterial`,this.color=new V(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new Js,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap=`round`,this.wireframeLinejoin=`round`,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}},jl=new Rs,Ml=new kl,Nl=new sl,Pl=new B,Fl=new B,Il=new B,Ll=new B,Rl=new B,zl=new B,Bl=new B,Vl=new B,H=class extends dc{constructor(e=new hl,t=new Al){super(),this.isMesh=!0,this.type=`Mesh`,this.geometry=e,this.material=t,this.morphTargetDictionary=void 0,this.morphTargetInfluences=void 0,this.count=1,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),e.morphTargetInfluences!==void 0&&(this.morphTargetInfluences=e.morphTargetInfluences.slice()),e.morphTargetDictionary!==void 0&&(this.morphTargetDictionary=Object.assign({},e.morphTargetDictionary)),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}updateMorphTargets(){let e=this.geometry.morphAttributes,t=Object.keys(e);if(t.length>0){let n=e[t[0]];if(n!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;e(e.far-e.near)**2)||(jl.copy(i).invert(),Ml.copy(e.ray).applyMatrix4(jl),(n.boundingBox===null||Ml.intersectsBox(n.boundingBox)!==!1)&&this._computeIntersections(e,t,Ml)))}_computeIntersections(e,t,n){let r,i=this.geometry,a=this.material,o=i.index,s=i.attributes.position,c=i.attributes.uv,l=i.attributes.uv1,u=i.attributes.normal,d=i.groups,f=i.drawRange;if(o!==null){if(Array.isArray(a))for(let i=0,s=d.length;in.far?null:{distance:l,point:Vl.clone(),object:e}}function Ul(e,t,n,r,i,a,o,s,c,l){e.getVertexPosition(s,Fl),e.getVertexPosition(c,Il),e.getVertexPosition(l,Ll);let u=Hl(e,t,n,r,Fl,Il,Ll,Bl);if(u){let e=new B;Fc.getBarycoord(Bl,Fl,Il,Ll,e),i&&(u.uv=Fc.getInterpolatedAttribute(i,s,c,l,e,new z)),a&&(u.uv1=Fc.getInterpolatedAttribute(a,s,c,l,e,new z)),o&&(u.normal=Fc.getInterpolatedAttribute(o,s,c,l,e,new B),u.normal.dot(r.direction)>0&&u.normal.multiplyScalar(-1));let t={a:s,b:c,c:l,normal:new B,materialIndex:0};Fc.getNormal(Fl,Il,Ll,t.normal),u.face=t,u.barycoord=e}return u}var Wl=new Ns,Gl=new Ns,Kl=new Ns,ql=new Ns,Jl=new Rs,Yl=new B,Xl=new sl,Zl=new Rs,Ql=new kl,$l=class extends H{constructor(e,t){super(e,t),this.isSkinnedMesh=!0,this.type=`SkinnedMesh`,this.bindMode=Xi,this.bindMatrix=new Rs,this.bindMatrixInverse=new Rs,this.boundingBox=null,this.boundingSphere=null}computeBoundingBox(){let e=this.geometry;this.boundingBox===null&&(this.boundingBox=new Ic),this.boundingBox.makeEmpty();let t=e.getAttribute(`position`);for(let e=0;e0?e.max.x:e.min.x,gu.y=r.normal.y>0?e.max.y:e.min.y,gu.z=r.normal.z>0?e.max.z:e.min.z,r.distanceToPoint(gu)<0)return!1}return!0}containsPoint(e){let t=this.planes;for(let n=0;n<6;n++)if(t[n].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}},vu=class extends wl{constructor(e){super(),this.isLineBasicMaterial=!0,this.type=`LineBasicMaterial`,this.color=new V(16777215),this.map=null,this.linewidth=1,this.linecap=`round`,this.linejoin=`round`,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.linewidth=e.linewidth,this.linecap=e.linecap,this.linejoin=e.linejoin,this.fog=e.fog,this}},yu=new B,bu=new B,xu=new Rs,Su=new kl,Cu=new sl,wu=new B,Tu=new B,Eu=class extends dc{constructor(e=new hl,t=new vu){super(),this.isLine=!0,this.type=`Line`,this.geometry=e,this.material=t,this.morphTargetDictionary=void 0,this.morphTargetInfluences=void 0,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}computeLineDistances(){let e=this.geometry;if(e.index===null){let t=e.attributes.position,n=[0];for(let e=1,r=t.count;e0){let n=e[t[0]];if(n!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;er)return;wu.applyMatrix4(e.matrixWorld);let c=t.ray.origin.distanceTo(wu);if(!(ct.far))return{distance:c,point:Tu.clone().applyMatrix4(e.matrixWorld),index:o,face:null,faceIndex:null,barycoord:null,object:e}}var Ou=new B,ku=new B,Au=class extends Eu{constructor(e,t){super(e,t),this.isLineSegments=!0,this.type=`LineSegments`}computeLineDistances(){let e=this.geometry;if(e.index===null){let t=e.attributes.position,n=[];for(let e=0,r=t.count;e0){let n=e[t[0]];if(n!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;ei.far)return;a.push({distance:c,distanceToRay:Math.sqrt(s),point:n,index:t,face:null,faceIndex:null,barycoord:null,object:o})}}var zu=class extends Ms{constructor(e=[],t=301,n,r,i,a,o,s,c,l){super(e,t,n,r,i,a,o,s,c,l),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}},Bu=class extends Ms{constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r,i,a,o,s,c),this.isCanvasTexture=!0,this.needsUpdate=!0}},Vu=class extends Ms{constructor(e,t,n=da,r,i,a,o=ea,s=ea,c,l=Sa,u=1){if(l!==1026&&l!==1027)throw Error(`THREE.DepthTexture: format must be either THREE.DepthFormat or THREE.DepthStencilFormat`);super({width:e,height:t,depth:u},r,i,a,o,s,l,n,c),this.isDepthTexture=!0,this.flipY=!1,this.generateMipmaps=!1,this.compareFunction=null}copy(e){return super.copy(e),this.source=new Os(Object.assign({},e.image)),this.compareFunction=e.compareFunction,this}toJSON(e){let t=super.toJSON(e);return t.compareFunction=this.compareFunction,t}},Hu=class extends Vu{constructor(e,t=da,n=301,r,i,a=ea,o=ea,s,c=Sa){let l={width:e,height:e,depth:1},u=[l,l,l,l,l,l];super(e,e,t,n,r,i,a,o,s,c),this.image=u,this.isCubeDepthTexture=!0,this.isCubeTexture=!0}get images(){return this.image}set images(e){this.image=e}},Uu=class extends Ms{constructor(e=null){super(),this.sourceTexture=e,this.isExternalTexture=!0}copy(e){return super.copy(e),this.sourceTexture=e.sourceTexture,this}},Wu=class e extends hl{constructor(e=1,t=1,n=1,r=1,i=1,a=1){super(),this.type=`BoxGeometry`,this.parameters={width:e,height:t,depth:n,widthSegments:r,heightSegments:i,depthSegments:a};let o=this;r=Math.floor(r),i=Math.floor(i),a=Math.floor(a);let s=[],c=[],l=[],u=[],d=0,f=0;p(`z`,`y`,`x`,-1,-1,n,t,e,a,i,0),p(`z`,`y`,`x`,1,-1,n,t,-e,a,i,1),p(`x`,`z`,`y`,1,1,e,n,t,r,a,2),p(`x`,`z`,`y`,1,-1,e,n,-t,r,a,3),p(`x`,`y`,`z`,1,-1,e,t,n,r,i,4),p(`x`,`y`,`z`,-1,-1,e,t,-n,r,i,5),this.setIndex(s),this.setAttribute(`position`,new rl(c,3)),this.setAttribute(`normal`,new rl(l,3)),this.setAttribute(`uv`,new rl(u,2));function p(e,t,n,r,i,a,p,m,h,g,_){let v=a/h,y=p/g,b=a/2,x=p/2,S=m/2,C=h+1,w=g+1,T=0,E=0,D=new B;for(let a=0;a0?1:-1,l.push(D.x,D.y,D.z),u.push(s/h),u.push(1-a/g),T+=1}for(let e=0;e0){let e=(_-1)*m;for(let t=0;t0&&v(!0),t>0&&v(!1)),this.setIndex(l),this.setAttribute(`position`,new rl(u,3)),this.setAttribute(`normal`,new rl(d,3)),this.setAttribute(`uv`,new rl(f,2));function _(){let a=new B,_=new B,v=0,y=(t-e)/n;for(let c=0;c<=i;c++){let l=[],g=c/i,v=g*(t-e)+e;for(let e=0;e<=r;e++){let t=e/r,i=t*s+o,c=Math.sin(i),m=Math.cos(i);_.x=v*c,_.y=-g*n+h,_.z=v*m,u.push(_.x,_.y,_.z),a.set(c,y,m).normalize(),d.push(a.x,a.y,a.z),f.push(t,1-g),l.push(p++)}m.push(l)}for(let n=0;n0||r!==0)&&(l.push(a,o,c),v+=3),(t>0||r!==i-1)&&(l.push(o,s,c),v+=3)}c.addGroup(g,v,0),g+=v}function v(n){let i=p,a=new z,m=new B,_=0,v=n===!0?e:t,y=n===!0?1:-1;for(let e=1;e<=r;e++)u.push(0,h*y,0),d.push(0,y,0),f.push(.5,.5),p++;let b=p;for(let e=0;e<=r;e++){let t=e/r*s+o,n=Math.cos(t),i=Math.sin(t);m.x=v*i,m.y=h*y,m.z=v*n,u.push(m.x,m.y,m.z),d.push(0,y,0),a.x=n*.5+.5,a.y=i*.5*y+.5,f.push(a.x,a.y),p++}for(let e=0;e.9&&Math.min(t,n,r)<.1&&(t<.2&&(a[e+0]+=1),n<.2&&(a[e+2]+=1),r<.2&&(a[e+4]+=1))}}function d(e){i.push(e.x,e.y,e.z)}function f(t,n){let r=t*3;n.x=e[r+0],n.y=e[r+1],n.z=e[r+2]}function p(){let e=new B,t=new B,n=new B,r=new B,o=new z,s=new z,c=new z;for(let l=0,u=0;l0)s=r-1;else{s=r;break}if(r=s,n[r]===a)return r/(i-1);let l=n[r],u=n[r+1]-l,d=(a-l)/u;return(r+d)/(i-1)}getTangent(e,t){let n=1e-4,r=e-n,i=e+n;r<0&&(r=0),i>1&&(i=1);let a=this.getPoint(r),o=this.getPoint(i),s=t||(a.isVector2?new z:new B);return s.copy(o).sub(a).normalize(),s}getTangentAt(e,t){let n=this.getUtoTmapping(e);return this.getTangent(n,t)}computeFrenetFrames(e,t=!1){let n=new B,r=[],i=[],a=[],o=new B,s=new Rs;for(let t=0;t<=e;t++){let n=t/e;r[t]=this.getTangentAt(n,new B)}i[0]=new B,a[0]=new B;let c=Number.MAX_VALUE,l=Math.abs(r[0].x),u=Math.abs(r[0].y),d=Math.abs(r[0].z);l<=c&&(c=l,n.set(1,0,0)),u<=c&&(c=u,n.set(0,1,0)),d<=c&&n.set(0,0,1),o.crossVectors(r[0],n).normalize(),i[0].crossVectors(r[0],o),a[0].crossVectors(r[0],i[0]);for(let t=1;t<=e;t++){if(i[t]=i[t-1].clone(),a[t]=a[t-1].clone(),o.crossVectors(r[t-1],r[t]),o.length()>2**-52){o.normalize();let e=Math.acos(qo(r[t-1].dot(r[t]),-1,1));i[t].applyMatrix4(s.makeRotationAxis(o,e))}a[t].crossVectors(r[t],i[t])}if(t===!0){let t=Math.acos(qo(i[0].dot(i[e]),-1,1));t/=e,r[0].dot(o.crossVectors(i[0],i[e]))>0&&(t=-t);for(let n=1;n<=e;n++)i[n].applyMatrix4(s.makeRotationAxis(r[n],t*n)),a[n].crossVectors(r[n],i[n])}return{tangents:r,normals:i,binormals:a}}clone(){return new this.constructor().copy(this)}copy(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}toJSON(){let e={metadata:{version:4.7,type:`Curve`,generator:`Curve.toJSON`}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.type,e}fromJSON(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}},Zu=class extends Xu{constructor(e=0,t=0,n=1,r=1,i=0,a=Math.PI*2,o=!1,s=0){super(),this.isEllipseCurve=!0,this.type=`EllipseCurve`,this.aX=e,this.aY=t,this.xRadius=n,this.yRadius=r,this.aStartAngle=i,this.aEndAngle=a,this.aClockwise=o,this.aRotation=s}getPoint(e,t=new z){let n=t,r=Math.PI*2,i=this.aEndAngle-this.aStartAngle,a=Math.abs(i)<2**-52;for(;i<0;)i+=r;for(;i>r;)i-=r;i<2**-52&&(i=a?0:r),this.aClockwise===!0&&!a&&(i===r?i=-r:i-=r);let o=this.aStartAngle+e*i,s=this.aX+this.xRadius*Math.cos(o),c=this.aY+this.yRadius*Math.sin(o);if(this.aRotation!==0){let e=Math.cos(this.aRotation),t=Math.sin(this.aRotation),n=s-this.aX,r=c-this.aY;s=n*e-r*t+this.aX,c=n*t+r*e+this.aY}return n.set(s,c)}copy(e){return super.copy(e),this.aX=e.aX,this.aY=e.aY,this.xRadius=e.xRadius,this.yRadius=e.yRadius,this.aStartAngle=e.aStartAngle,this.aEndAngle=e.aEndAngle,this.aClockwise=e.aClockwise,this.aRotation=e.aRotation,this}toJSON(){let e=super.toJSON();return e.aX=this.aX,e.aY=this.aY,e.xRadius=this.xRadius,e.yRadius=this.yRadius,e.aStartAngle=this.aStartAngle,e.aEndAngle=this.aEndAngle,e.aClockwise=this.aClockwise,e.aRotation=this.aRotation,e}fromJSON(e){return super.fromJSON(e),this.aX=e.aX,this.aY=e.aY,this.xRadius=e.xRadius,this.yRadius=e.yRadius,this.aStartAngle=e.aStartAngle,this.aEndAngle=e.aEndAngle,this.aClockwise=e.aClockwise,this.aRotation=e.aRotation,this}},Qu=class extends Zu{constructor(e,t,n,r,i,a){super(e,t,n,n,r,i,a),this.isArcCurve=!0,this.type=`ArcCurve`}};function $u(){let e=0,t=0,n=0,r=0;function i(i,a,o,s){e=i,t=o,n=-3*i+3*a-2*o-s,r=2*i-2*a+o+s}return{initCatmullRom:function(e,t,n,r,a){i(t,n,a*(n-e),a*(r-t))},initNonuniformCatmullRom:function(e,t,n,r,a,o,s){let c=(t-e)/a-(n-e)/(a+o)+(n-t)/o,l=(n-t)/o-(r-t)/(o+s)+(r-n)/s;c*=o,l*=o,i(t,n,c,l)},calc:function(i){let a=i*i,o=a*i;return e+t*i+n*a+r*o}}}var ed=new B,td=new B,nd=new $u,rd=new $u,id=new $u,ad=class extends Xu{constructor(e=[],t=!1,n=`centripetal`,r=.5){super(),this.isCatmullRomCurve3=!0,this.type=`CatmullRomCurve3`,this.points=e,this.closed=t,this.curveType=n,this.tension=r}getPoint(e,t=new B){let n=t,r=this.points,i=r.length,a=(i-+!this.closed)*e,o=Math.floor(a),s=a-o;this.closed?o+=o>0?0:(Math.floor(Math.abs(o)/i)+1)*i:s===0&&o===i-1&&(o=i-2,s=1);let c,l;this.closed||o>0?c=r[(o-1)%i]:(td.subVectors(r[0],r[1]).add(r[0]),c=td);let u=r[o%i],d=r[(o+1)%i];if(this.closed||o+2r.length-2?r.length-1:a+1],u=r[a>r.length-3?r.length-1:a+2];return n.set(od(o,s.x,c.x,l.x,u.x),od(o,s.y,c.y,l.y,u.y)),n}copy(e){super.copy(e),this.points=[];for(let t=0,n=e.points.length;t0)&&f.push(t,i,c),(e!==n-1||s${[`get_up_left`,`get_up_right`].map(e=>``).join(``)}`,e.append(this.root),this.stickZone=this.root.querySelector(`[data-stick]`),this.stickBase=this.root.querySelector(`[data-stick-base]`),this.stickKnob=this.root.querySelector(`[data-stick-knob]`),this.pads.push(...this.root.querySelectorAll(`[data-punch]`)),this.moves.push(...this.root.querySelectorAll(`[data-move]`)),this.getUpPads.push(...this.root.querySelectorAll(`[data-getup-side]`)),this.bind()}bind(){let e=this.stickZone;e.addEventListener(`pointerdown`,t=>{if(this.stickPointer!==null)return;t.preventDefault(),this.stickPointer=t.pointerId,this.stickOrigin={x:t.clientX,y:t.clientY},e.setPointerCapture(t.pointerId);let n=e.getBoundingClientRect();this.stickBase.style.left=`${t.clientX-n.left}px`,this.stickBase.style.top=`${t.clientY-n.top}px`,this.stickBase.classList.add(`active`),this.updateStick(t.clientX,t.clientY)}),e.addEventListener(`pointermove`,e=>{e.pointerId===this.stickPointer&&(e.preventDefault(),this.updateStick(e.clientX,e.clientY))});let t=e=>{e.pointerId===this.stickPointer&&(this.stickPointer=null,this.moveX=0,this.moveY=0,this.stickKnob.style.transform=`translate(-50%, -50%)`,this.stickBase.classList.remove(`active`),this.heldListener?.())};e.addEventListener(`pointerup`,t),e.addEventListener(`pointercancel`,t);for(let e of this.getUpPads)e.addEventListener(`pointerdown`,t=>{this.enabled&&this.knockdown&&(t.preventDefault(),this.sharedActions.push(`touch`,{kind:e.dataset.getupSide===`get_up_left`?`get_up_left`:`get_up_right`}))});for(let e of this.pads)e.addEventListener(`pointerdown`,t=>{if(!this.enabled)return;t.preventDefault();let n=e.getBoundingClientRect(),r=t.clientX-n.lefte.classList.remove(`pressed`),120)});for(let e of this.moves)e.addEventListener(`pointerdown`,t=>{this.enabled&&!this.knockdown&&(t.preventDefault(),this.sharedActions.push(`touch`,{kind:e.dataset.move}),e.classList.add(`pressed`),window.setTimeout(()=>e.classList.remove(`pressed`),120))});for(let e of this.root.querySelectorAll(`[data-mod], [data-guard]`)){let t=e.dataset.mod??e.dataset.guard??``,n=n=>{n.preventDefault(),e.setPointerCapture(n.pointerId),this.heldPointers.set(n.pointerId,t),this.syncHeld(),e.classList.add(`pressed`)},r=n=>{this.heldPointers.delete(n.pointerId)&&(this.syncHeld(),e.classList.toggle(`pressed`,[...this.heldPointers.values()].includes(t)))};e.addEventListener(`pointerdown`,n),e.addEventListener(`pointerup`,r),e.addEventListener(`pointercancel`,r)}}syncHeld(){let e=[...this.heldPointers.values()];this.body=e.includes(`body`),this.power=e.includes(`power`);let t=e.findLast(e=>e===`guard_high`||e===`guard_low`)??`none`,n=t!==this.guard;this.guard=t,n&&this.heldListener?.()}get powerHeld(){return this.enabled&&this.power}onHeldChange(e){this.heldListener=e}updateStick(e,t){let n=e-this.stickOrigin.x,r=t-this.stickOrigin.y,i=Math.hypot(n,r);i>56&&(n=n/i*56,r=r/i*56),this.stickKnob.style.transform=`translate(calc(-50% + ${n}px), calc(-50% + ${r}px))`;let a=Math.min(1,i/56),o=a<.15?0:(a-.15)/.85,s=i>0?n/Math.max(i,1e-6):0,c=i>0?r/Math.max(i,1e-6):0;this.moveX=Math.round(s*o*1e3)||0,this.moveY=Math.round(-c*o*1e3)||0,this.heldListener?.()}setKnockdown(e){this.knockdown!==e&&(this.knockdown=e,this.root.classList.toggle(`knockdown`,e),e?(this.placeGetUpPads(),window.addEventListener(`resize`,this.placeGetUpPads)):(window.removeEventListener(`resize`,this.placeGetUpPads),this.setGetUpPrompt(null)))}placeGetUpPads=()=>{let e=Ke(this.root.clientWidth||window.innerWidth,this.root.clientHeight||window.innerHeight,Ge());for(let[t,n]of this.getUpPads.entries()){let r=t===0?e.left:e.right;Object.assign(n.style,{left:`${r.x}px`,top:`${r.y}px`,width:`${r.width}px`,height:`${r.height}px`})}};setGetUpPrompt(e){for(let t of this.getUpPads)t.classList.toggle(`wanted`,this.knockdown&&e===t.dataset.getupSide)}setEnabled(e,t=e){this.enabled=e,this.root.classList.toggle(`disabled`,!t),this.root.classList.toggle(`resting`,t&&!e),t?e||this.sharedActions.clearSource(`touch`):this.reset()}frame(){return this.enabled?{moveX:this.moveX,moveY:this.moveY,defense:this.guard,actions:[]}:{moveX:0,moveY:0,defense:`none`,actions:[]}}reset(){this.stickPointer=null,this.moveX=0,this.moveY=0,this.body=!1,this.power=!1,this.guard=`none`,this.heldPointers.clear(),this.stickBase.classList.remove(`active`);for(let e of this.root.querySelectorAll(`.pressed`))e.classList.remove(`pressed`);this.sharedActions.clearSource(`touch`)}destroy(){this.reset(),window.removeEventListener(`resize`,this.placeGetUpPads),this.root.remove()}},Ze=[`broken_nose`,`broken_jaw`,`jaw_torn`,`eye_left_out`,`eye_right_out`,`ear_left_torn`,`ear_right_torn`,`face_left_flayed`,`face_right_flayed`,`skull_fractured`,`shoulder_left_dislocated`,`shoulder_right_dislocated`,`arm_left_broken`,`arm_right_broken`,`forearm_left_severed`,`forearm_right_severed`,`arm_left_torn`,`arm_right_torn`,`ribs_left_broken`,`ribs_right_broken`,`liver_ruptured`,`disemboweled`,`knee_left_blown`,`knee_right_blown`];function Qe(e){return Ze.includes(e)}var $e=[`eyes_out`,`head_burst`,`decapitation`,`spine_rip`,`heart_punch`,`gutting`,`bisection`,`total_gib`],et=[`nose`,`mouth`,`eye_left`,`eye_right`,`ear_left`,`ear_right`,`skull`,`neck`,`shoulder_left`,`shoulder_right`,`elbow_left`,`elbow_right`,`chest`,`ribs_left`,`ribs_right`,`liver`,`belly`,`waist`,`crotch`,`knee_left`,`knee_right`],tt=n.injuries,nt=tt.kinds,rt=tt.blood.volume,it=tt.blood.stages.map(e=>e.below),at=tt.finish.ticks,ot=(e,t)=>Array.isArray(e)?e.includes(t):e.has(t);function st(e){return e.includes(`_left_`)?`left`:e.includes(`_right_`)?`right`:null}function ct(e){return e.replace(`_left_`,`_`).replace(`_right_`,`_`)}var lt={broken_nose:`BROKEN NOSE`,broken_jaw:`BROKEN JAW`,jaw_torn:`JAW TORN OFF`,eye_out:`EYE OUT`,ear_torn:`EAR TORN OFF`,face_flayed:`CHEEK FLAYED`,skull_fractured:`SKULL SPLIT OPEN`,shoulder_dislocated:`SHOULDER OUT`,arm_broken:`ARM SNAPPED`,forearm_severed:`FOREARM SEVERED`,arm_torn:`ARM TORN OFF`,ribs_broken:`RIBS CAVED IN`,liver_ruptured:`LIVER RUPTURED`,disemboweled:`DISEMBOWELED`,knee_blown:`KNEE BLOWN OUT`};function ut(e){let t=st(e),n=lt[ct(e)];return t===null?n:`${t.toUpperCase()} ${n}`}var dt={eyes_out:`EYES PUNCHED OUT`,head_burst:`HEAD EXPLODED`,decapitation:`DECAPITATED`,spine_rip:`SPINE RIPPED OUT`,heart_punch:`HEART PUNCHED OUT`,gutting:`GUTTED`,bisection:`TORN IN HALF`,total_gib:`BLOWN TO PIECES`};function ft(e){return dt[e]}function pt(e,t){return tt.fatalities[e][t]}function mt(e){if(e===`bled_out`||e===`brain`||e===`gutted`)return e;let t=e.startsWith(`fatality:`)?e.slice(9):null;return t!==null&&$e.includes(t)?e:null}function ht(e){return e.startsWith(`fatality:`)?e.slice(9):null}function gt(e){let t=ht(e);return t===null?e===`bled_out`?`BLED TO DEATH`:e===`brain`?`BRAIN DESTROYED`:`GUTTED`:ft(t)}function _t(e,t){return ot(e,`arm_${t}_torn`)?`torn`:ot(e,`forearm_${t}_severed`)?`severed`:ot(e,`arm_${t}_broken`)?`broken`:ot(e,`shoulder_${t}_dislocated`)?`dislocated`:`whole`}var vt={dislocated:`shoulder_dislocated`,broken:`arm_broken`,severed:`forearm_severed`,torn:`arm_torn`};function yt(e,t){if(_t(e,t)!==`torn`)return t;let n=t===`left`?`right`:`left`;return _t(e,n)===`torn`?null:n}function bt(e){return _t(e,`left`)===`torn`&&_t(e,`right`)===`torn`}function xt(e,t){let n=_t(e,t);return n===`whole`?0:nt[vt[n]].startup_add??0}var St=Object.fromEntries(Ze.map(e=>[e,nt[ct(e)].move_speed_percent??100]));function Ct(e,t){let n=e;for(let e of t){let t=St[e];t!==100&&(n=Math.floor(n*t/100))}return n}function wt(e){let t=0;for(let n of it)e0?`-${e.draws}`:``}`}var Et=e=>e.wins+e.losses+e.draws===0;function Dt(e){return Et(e)?`PRO DEBUT`:`${Tt(e)} (${e.knockouts} KO)`}var Ot=class extends Error{name=`ProtocolError`},kt=2147483647,At=new TextEncoder;function jt(e){let t=0,n=()=>{for(;/\s/u.test(e[t]??``);)t+=1},r=()=>{let n=t;if(e[t++]!==`"`)throw new Ot(`invalid JSON`);for(;t{n();let a=e[t];if(a===`{`){t+=1,n();let a=new Set;if(e[t]===`}`){t+=1;return}for(;;){n();let o=r();if(a.has(o))throw new Ot(`duplicate field ${o}`);if(a.add(o),n(),e[t++]!==`:`)throw new Ot(`invalid JSON`);i(),n();let s=e[t++];if(s===`}`)return;if(s!==`,`)throw new Ot(`invalid JSON`)}}if(a===`[`){if(t+=1,n(),e[t]===`]`){t+=1;return}for(;;){i(),n();let r=e[t++];if(r===`]`)return;if(r!==`,`)throw new Ot(`invalid JSON`)}}if(a===`"`){r();return}let o=e.slice(t),s=/^(?:-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?|true|false|null)/u.exec(o);if(!s)throw new Ot(`invalid JSON`);t+=s[0].length};if(i(),n(),t!==e.length)throw new Ot(`invalid JSON`)}function Mt(e){let t,n;if(typeof e==`string`?(t=At.encode(e),n=e):(t=e instanceof Uint8Array?e:new Uint8Array(e),n=new TextDecoder(`utf-8`,{fatal:!0}).decode(t)),t.byteLength>65536)throw new Ot(`server frame too large`);try{return jt(n),JSON.parse(n)}catch(e){throw e instanceof Ot?e:new Ot(`invalid JSON`)}}function Nt(e,t){if(typeof e!=`object`||!e||Array.isArray(e)||Object.getPrototypeOf(e)!==Object.prototype)throw new Ot(`${t} must be an object`);return e}function Pt(e,t,n=[]){let r=new Set([...t,...n]),i=Object.keys(e);if(t.some(t=>!Object.hasOwn(e,t))||i.some(e=>!r.has(e)))throw new Ot(`schema mismatch`)}function L(e,t,n=0,r=kt){if(!Number.isSafeInteger(e)||er)throw new Ot(`${t} must be a bounded integer`);return e}function Ft(e,t){if(typeof e!=`boolean`)throw new Ot(`${t} must be boolean`);return e}function It(e,t,n=255,r=1){if(typeof e!=`string`||e.lengthn||/[\u0000-\u001f\u007f]/u.test(e))throw new Ot(`${t} must be a bounded string`);return e}function Lt(e,t,n=255){return e===null?null:It(e,t,n)}function Rt(e,t,n){if(typeof e!=`string`||!t.includes(e))throw new Ot(`invalid ${n}`);return e}function zt(e,t,n){if(!Array.isArray(e)||e.length>n)throw new Ot(`${t} must be a bounded array`);return e}var Bt=[`left`,`right`],Vt=[`jab`,`straight`,`hook`,`uppercut`],Ht=[`head`,`body`],Ut=[`normal`,`power`],Wt=[`orthodox`,`southpaw`],Gt=[`balanced`,`boxer`,`slugger`,`swarmer`,`counter_puncher`],Kt=[`none`,`guard_high`,`guard_low`,`slip_left`,`slip_right`,`weave`,`pull`],qt=[`none`,`guard_high`,`guard_low`],Jt=[`slip_left`,`slip_right`,`weave`,`pull`,`clinch`,`switch_stance`,`get_up_left`,`get_up_right`,`taunt`,`corner_cut`,`corner_swelling`,`corner_breath`],Yt=[`cut`,`swelling`,`breath`,`balanced`],Xt=[`low_blow`,`headbutt`],Zt=[`countdown`,`fight`,`knockdown`,`foul_recovery`,`referee_down`,`finish`,`rest`,`complete`],Qt=[`ko`,`flash_ko`,`tko`,`death`,`disqualification`,`decision`,`draw`,`forfeit`];function $t(e){let t=Nt(e,`record`);return Pt(t,[`wins`,`losses`,`draws`,`knockouts`]),{wins:L(t.wins,`record.wins`),losses:L(t.losses,`record.losses`),draws:L(t.draws,`record.draws`),knockouts:L(t.knockouts,`record.knockouts`)}}function en(e){let t=Nt(e,`player`);Pt(t,[`id`,`name`,`avatar`,`rating`,`connected`],[`cpu`,`record`,`style`]);let n=t.style===void 0?{}:{style:Rt(t.style,Gt,`player style`)},r=t.cpu===void 0?{}:{cpu:Ft(t.cpu,`cpu`)},i=t.record===void 0?{}:{record:$t(t.record)};return{id:It(t.id,`player.id`),name:It(t.name,`player.name`,80),avatar:Lt(t.avatar,`player.avatar`,128),rating:L(t.rating,`rating`),connected:Ft(t.connected,`connected`),...r,...i,...n}}function tn(e,t,n=1){let r=zt(e,`players`,2).map(en);if(r.lengthe.id)).size!==r.length)throw new Ot(`players must be present and distinct`);return r}function nn(e){let t=Nt(e,`trauma`);return Pt(t,[`head`,`body`,`left_eye`,`right_eye`,`left_cut`,`right_cut`,`swelling`,`bleeding`]),{head:L(t.head,`head`,0,1400),body:L(t.body,`body`,0,1200),left_eye:L(t.left_eye,`left_eye`,0,1e3),right_eye:L(t.right_eye,`right_eye`,0,1e3),left_cut:L(t.left_cut,`left_cut`,0,1e3),right_cut:L(t.right_cut,`right_cut`,0,1e3),swelling:L(t.swelling,`swelling`,0,1e3),bleeding:L(t.bleeding,`bleeding`,0,1e3)}}var rn=g;function an(e,t){return Math.max(-rn,Math.min(rn,L(e,t,-2147483647,kt)))}function on(e){let t=zt(e,`injuries`,Ze.length).map(e=>Rt(e,Ze,`injury`));for(let e=1;ee===null)&&[n,r,i,a].some(e=>e!==null))throw new Ot(`partial punch action`);let o=t.action_id===null?null:It(t.action_id,`action_id`,32),s=t.action_key===null?null:It(t.action_key,`action_key`,64);if([o,s].some(e=>e===null)!==[o,s].every(e=>e===null))throw new Ot(`partial action instance`);if(o!==null&&n===null)throw new Ot(`action instance without class`);let c=t.get_up_prompt===null?null:Rt(t.get_up_prompt,[`get_up_left`,`get_up_right`],`get-up prompt`),l=t.get_up_next_prompt===null?null:Rt(t.get_up_next_prompt,[`get_up_left`,`get_up_right`],`next get-up prompt`),u=L(t.maximum_stamina,`maximum_stamina`,330,1e3),d=L(t.stamina,`stamina`,0,u),f=L(t.get_up_required,`get_up_required`,0,j),p=L(t.facing,`facing`,-1,1);if(p===0)throw new Ot(`invalid facing`);let m=L(t.facing_x,`facing_x`,-1e3,1e3),h=L(t.facing_y,`facing_y`,-1e3,1e3);if(m===0&&h===0)throw new Ot(`invalid facing vector`);return{player_id:It(t.player_id,`player_id`),x:L(t.x,`x`,-462,462),y:L(t.y,`y`,-462,462),facing:p,facing_x:m,facing_y:h,velocity_x:an(t.velocity_x,`velocity_x`),velocity_y:an(t.velocity_y,`velocity_y`),stance:Rt(t.stance,Wt,`stance`),style:Rt(t.style,Gt,`style`),defense:Rt(t.defense,Kt,`defense`),stamina:d,maximum_stamina:u,conditioning:L(t.conditioning,`conditioning`,0,1e3),guard:L(t.guard,`guard`,0,700),guard_broken:Ft(t.guard_broken,`guard_broken`),poise:L(t.poise,`poise`,0,600),trauma:nn(t.trauma),knockdowns:L(t.knockdowns,`knockdowns`,0,3),warnings:L(t.warnings,`warnings`,0,3),deductions:L(t.deductions,`deductions`,0,1),stunned_ticks:L(t.stunned_ticks,`stunned_ticks`,0,90),is_downed:Ft(t.is_downed,`is_downed`),action:n,action_hand:r,action_target:i,action_power:a,action_id:o,action_key:s,action_start_tick:L(t.action_start_tick,`action_start_tick`,0),action_startup_ticks:L(t.action_startup_ticks,`action_startup_ticks`,0,40),action_active_ticks:L(t.action_active_ticks,`action_active_ticks`,0,10),action_recovery_ticks:L(t.action_recovery_ticks,`action_recovery_ticks`,0,40),action_contact_tick:t.action_contact_tick===null?null:L(t.action_contact_tick,`action_contact_tick`,0),queued_actions:L(t.queued_actions,`queued_actions`,0,1),clinch_startup_ticks:L(t.clinch_startup_ticks,`clinch_startup_ticks`,0,8),clinch_ticks:L(t.clinch_ticks,`clinch_ticks`,0,45),is_foul_recovery_target:Ft(t.is_foul_recovery_target,`is_foul_recovery_target`),taunt_ticks:L(t.taunt_ticks,`taunt_ticks`,0,60),corner_choice:t.corner_choice===null?null:Rt(t.corner_choice,Yt,`corner choice`),get_up_prompt:c,get_up_meter:L(t.get_up_meter,`get_up_meter`,0,256),get_up_required:f,get_up_count:L(t.get_up_count,`get_up_count`,0,10),get_up_window_start_tick:L(t.get_up_window_start_tick,`get_up_window_start_tick`),get_up_window_end_tick:L(t.get_up_window_end_tick,`get_up_window_end_tick`),get_up_next_prompt:l,last_input_sequence:L(t.last_input_sequence,`last_input_sequence`,-1),injuries:on(t.injuries),blood_volume:L(t.blood_volume,`blood_volume`,0,rt)}}function cn(e){let t=Nt(e,`event`);return Pt(t,[`event_id`,`tick`,`kind`,`actor_id`,`target_id`,`amount`,`detail`,`blood`,`direction`,`action_id`]),{event_id:L(t.event_id,`event_id`),tick:L(t.tick,`tick`),kind:It(t.kind,`event kind`,32),actor_id:Lt(t.actor_id,`actor_id`),target_id:Lt(t.target_id,`target_id`),amount:L(t.amount,`amount`,-1e4,1e4),detail:It(t.detail,`detail`,96,0),blood:L(t.blood,`blood`,0,100),direction:L(t.direction,`direction`,-1,1),action_id:t.action_id===null?null:It(t.action_id,`action_id`,32)}}function ln(e){let t=Nt(e,`judge card`);Pt(t,[`judge`,`player_one`,`player_two`]);let n=e=>zt(e,`round scores`,15).map(e=>L(e,`score`,6,10)),r=n(t.player_one),i=n(t.player_two);if(r.length!==i.length)throw new Ot(`scorecard round mismatch`);return{judge:It(t.judge,`judge`,80),player_one:r,player_two:i}}function un(e){let t=zt(e,`scorecards`,3).map(ln);if(t.length!==3)throw new Ot(`exactly three scorecards required`);return t}function dn(e,t){if(t===`draw`!=(e===null))throw new Ot(`incoherent finish result`)}function fn(e){let t=Nt(e,`result`);Pt(t,[`match_id`,`activity_instance_id`,`guild_id`,`player_one_id`,`player_two_id`,`winner_id`,`finish_method`,`round_number`,`tick`,`scorecards`,`player_one_knockdowns`,`player_two_knockdowns`,`player_one_damage`,`player_two_damage`]);let n=It(t.player_one_id,`player_one_id`),r=It(t.player_two_id,`player_two_id`);if(n===r)throw new Ot(`result players must be distinct`);let i=Lt(t.winner_id,`winner_id`);if(i!==null&&i!==n&&i!==r)throw new Ot(`invalid winner`);let a=Rt(t.finish_method,Qt,`finish method`);return dn(i,a),{match_id:It(t.match_id,`match_id`),activity_instance_id:It(t.activity_instance_id,`activity_instance_id`),guild_id:It(t.guild_id,`guild_id`),player_one_id:n,player_two_id:r,winner_id:i,finish_method:a,round_number:L(t.round_number,`round`,1,15),tick:L(t.tick,`tick`),scorecards:un(t.scorecards),player_one_knockdowns:L(t.player_one_knockdowns,`knockdowns`,0,3),player_two_knockdowns:L(t.player_two_knockdowns,`knockdowns`,0,3),player_one_damage:L(t.player_one_damage,`damage`),player_two_damage:L(t.player_two_damage,`damage`)}}function pn(e){let t=Nt(e,`referee`);return Pt(t,[`x`,`y`,`facing_x`,`facing_y`,`velocity_x`,`velocity_y`,`stunned_ticks`,`alive`,`trauma`]),{x:L(t.x,`referee.x`,-462,462),y:L(t.y,`referee.y`,-462,462),facing_x:L(t.facing_x,`referee.facing_x`,-1e3,1e3),facing_y:L(t.facing_y,`referee.facing_y`,-1e3,1e3),velocity_x:an(t.velocity_x,`referee.velocity_x`),velocity_y:an(t.velocity_y,`referee.velocity_y`),stunned_ticks:L(t.stunned_ticks,`referee.stunned_ticks`,0,90),alive:Ft(t.alive,`referee.alive`),trauma:nn(t.trauma)}}function mn(e){let t=Nt(e,`snapshot`);Pt(t,[`tick`,`phase`,`round_number`,`phase_ticks_remaining`,`fighters`,`referee`,`events`,`result`,`checksum`]);let n=zt(t.fighters,`fighters`,2).map(sn);if(n.length!==2||n[0]?.player_id===n[1]?.player_id)throw new Ot(`snapshot requires two distinct fighters`);let r=It(t.checksum,`checksum`,64);if(!/^[a-f0-9]{64}$/u.test(r))throw new Ot(`invalid checksum`);return{tick:L(t.tick,`tick`),phase:Rt(t.phase,Zt,`phase`),round_number:L(t.round_number,`round`,1,15),phase_ticks_remaining:L(t.phase_ticks_remaining,`phase ticks`),fighters:[n[0],n[1]],referee:pn(t.referee),events:zt(t.events,`events`,256).map(cn),result:t.result===null?null:fn(t.result),checksum:r}}function hn(e){let t=Nt(Mt(e),`envelope`);if(t.version!==7)throw new Ot(`unsupported protocol version`);let n=It(t.type,`type`,32);if(n===`welcome`){let e=Rt(t.role,[`fighter`,`spectator`],`connection role`),r=It(t.player_id,`player_id`),i=t.reconnect_ticket===void 0?{}:{reconnect_ticket:It(t.reconnect_ticket,`reconnect_ticket`,4096)};if(e===`fighter`){Pt(t,[`version`,`type`,`role`,`player_id`,`seat`,`rating`,`players`,`server_tick`,`next_sequence`],[`reconnect_ticket`]);let a=tn(t.players);if(!a.some(e=>e.id===r))throw new Ot(`welcome fighter is absent`);return{version:7,type:n,role:e,player_id:r,seat:L(t.seat,`seat`,1,2),rating:L(t.rating,`rating`),players:a,server_tick:L(t.server_tick,`server_tick`),next_sequence:L(t.next_sequence,`next_sequence`),...i}}Pt(t,[`version`,`type`,`role`,`player_id`,`players`,`server_tick`],[`reconnect_ticket`]);let a=tn(t.players,void 0,0);if(a.some(e=>e.id===r))throw new Ot(`spectator cannot be a fighter`);return{version:7,type:n,role:e,player_id:r,players:a,server_tick:L(t.server_tick,`server_tick`),...i}}if(n===`ticket`)return Pt(t,[`version`,`type`,`reconnect_ticket`,`refresh_id`]),{version:7,type:n,reconnect_ticket:It(t.reconnect_ticket,`reconnect_ticket`,4096),refresh_id:It(t.refresh_id,`refresh_id`,128,16)};if(n===`waiting`){if(Pt(t,[`version`,`type`,`open_seats`]),t.open_seats!==1&&t.open_seats!==2)throw new Ot(`invalid open seats`);return{version:7,type:n,open_seats:t.open_seats}}if(n===`select`){Pt(t,[`version`,`type`,`deadline_ms`,`players`,`ready`]);let e=tn(t.players,2),r=zt(t.ready,`ready`,2).map(e=>It(e,`ready player id`));if(new Set(r).size!==r.length||r.some(t=>!e.some(e=>e.id===t)))throw new Ot(`invalid ready fighters`);return{version:7,type:n,deadline_ms:L(t.deadline_ms,`deadline_ms`,0,6e4),players:[e[0],e[1]],ready:r}}if(n===`ready`){Pt(t,[`version`,`type`,`players`]);let e=tn(t.players,2);return{version:7,type:n,players:[e[0],e[1]]}}if(n===`paused`)return Pt(t,[`version`,`type`,`player_id`,`grace_ms`]),{version:7,type:n,player_id:It(t.player_id,`player_id`),grace_ms:L(t.grace_ms,`grace_ms`,0,6e4)};if(n===`resumed`)return Pt(t,[`version`,`type`,`player_id`]),{version:7,type:n,player_id:It(t.player_id,`player_id`)};if(n===`snapshot`)return Pt(t,[`version`,`type`,`payload`]),{version:7,type:n,payload:mn(t.payload)};if(n===`error`)return Pt(t,[`version`,`type`,`code`]),{version:7,type:n,code:It(t.code,`error code`,80)};if(n===`final`)return _n(t,n);throw new Ot(`unsupported server message type`)}function gn(e,t){let n=Object.entries(Nt(e,`punches`));if(n.length!==2||n.some(([e])=>!t.includes(e)))throw new Ot(`punches must count both fighters`);let r=Object.create(null);for(let[e,t]of n){let n=Nt(t,`punch totals`);Pt(n,[`thrown`,`landed`,`jabs_thrown`,`jabs_landed`]);let i=L(n.thrown,`thrown`),a=L(n.landed,`landed`,0,i),o=L(n.jabs_thrown,`jabs_thrown`,0,i);r[e]={thrown:i,landed:a,jabs_thrown:o,jabs_landed:L(n.jabs_landed,`jabs_landed`,0,Math.min(a,o))}}return r}function _n(e,t){Pt(e,[`version`,`type`,`match_id`,`winner_id`,`method`,`round`,`scorecards`,`ratings`],[`punches`]);let n=Nt(e.ratings,`ratings`),r=Object.entries(n);if(r.length!==2)throw new Ot(`final requires two ratings`);let i=Object.create(null);for(let[e,t]of r){It(e,`rating player id`);let n=Nt(t,`rating`);Pt(n,[`before`,`after`]),i[e]={before:L(n.before,`before`),after:L(n.after,`after`)}}let a=Lt(e.winner_id,`winner_id`);if(a!==null&&!Object.hasOwn(i,a))throw new Ot(`winner absent from ratings`);let o=Rt(e.method,Qt,`finish method`);dn(a,o);let s=e.punches===void 0?{}:{punches:gn(e.punches,Object.keys(i))};return{version:7,type:t,match_id:It(e.match_id,`match_id`),winner_id:a,method:o,round:L(e.round,`round`,1,15),scorecards:un(e.scorecards),ratings:i,...s}}function vn(e,t,n){return JSON.stringify({version:7,type:`input`,sequence:L(e,`sequence`),client_tick:L(t,`client tick`),move:{x:Math.max(-1e3,Math.min(1e3,Math.round(Number.isFinite(n.moveX)?n.moveX:0))),y:Math.max(-1e3,Math.min(1e3,Math.round(Number.isFinite(n.moveY)?n.moveY:0)))},defense:Rt(n.defense,qt,`held defense`),actions:n.actions.slice(0,4).map(e=>{let t=e.id===void 0?{}:{id:e.id.slice(0,32)};return e.kind===`punch`?{kind:`punch`,hand:Rt(e.hand,Bt,`hand`),class:Rt(e.class,Vt,`class`),target:Rt(e.target,Ht,`target`),power:Rt(e.power,Ut,`power`),...t}:e.kind===`foul`?{kind:`foul`,foul:Rt(e.foul,Xt,`foul`),...t}:{kind:Rt(e.kind,Jt,`action`),...t}})})}function yn(e,t){return JSON.stringify({version:7,type:`style`,style:Rt(e,Gt,`fighter style`),ready:t===!0})}var bn=[`rookie`,`contender`,`champion`];function xn(e){return JSON.stringify({version:7,type:`cpu`,level:Rt(e,bn,`computer level`)})}function Sn(e){let t=Nt(e,`bootstrap`);if(Pt(t,[`client_id`,`state`,`protocol`,`simulation`]),t.protocol!==7)throw new Ot(`unsupported protocol version`);let n=Nt(t.simulation,`simulation`);return Pt(n,[`tick_rate`,`ring_half_width`,`ring_half_height`]),{client_id:It(t.client_id,`client_id`,36),state:It(t.state,`state`,128),protocol:7,simulation:{tick_rate:L(n.tick_rate,`tick rate`,1,120),ring_half_width:L(n.ring_half_width,`ring width`,1),ring_half_height:L(n.ring_half_height,`ring height`,1)}}}function Cn(e){let t=Nt(e,`token response`);Pt(t,[`access_token`,`ticket`,`player`]);let n=Nt(t.player,`player`);return Pt(n,[`id`,`name`,`avatar`,`rating`]),{access_token:It(t.access_token,`access token`,4096),ticket:It(t.ticket,`ticket`,4096),player:{id:It(n.id,`id`),name:It(n.name,`name`,80),avatar:Lt(n.avatar,`avatar`,128),rating:L(n.rating,`rating`)}}}var wn=[`Power`,`Hand speed`,`Footwork`,`Reach`,`Stamina`,`Defence`],Tn=[{style:`balanced`,name:`Balanced`,tag:`BALANCED`,detail:`Even at everything, no holes to exploit.`,stats:[3,3,3,3,3,3]},{style:`boxer`,name:`Boxer`,tag:`BOXER`,detail:`Snappy jab and long reach, lighter hands.`,stats:[2,4,3,4,3,3]},{style:`slugger`,name:`Slugger`,tag:`SLUGGER`,detail:`Heavy hands, hard chin, slow feet, tires sooner.`,stats:[5,2,2,3,2,4]},{style:`swarmer`,name:`Swarmer`,tag:`SWARMER`,detail:`Quick feet and head, digs to the body, never stops.`,stats:[2,4,4,3,4,3]},{style:`counter_puncher`,name:`Counter-puncher`,tag:`COUNTER`,detail:`Slips and parries, makes every miss cost.`,stats:[2,3,3,3,3,5]}],En=e=>Tn.find(t=>t.style===e)??Tn[0];function Dn(e){return e===void 0||e===`balanced`?null:En(e).tag}function On(e){return e===void 0||e===`balanced`?null:`the ${En(e).name.toLowerCase()}`}var kn=`hands.style.v1`;function An(e=Mn()){try{let t=e?.getItem(kn);return Gt.find(e=>e===t)??`balanced`}catch{return`balanced`}}function jn(e,t=Mn()){try{t?.setItem(kn,e)}catch{}}function Mn(){try{return window.localStorage}catch{return null}}var Nn=400,Pn={Digit1:0,Digit2:1,Digit3:2,Digit4:3,Digit5:4,Numpad1:0,Numpad2:1,Numpad3:2,Numpad4:3,Numpad5:4},Fn=.6;function In(){try{return[...navigator.getGamepads?.()??[]].find(e=>e!==null&&e.connected&&e.mapping===`standard`)??null}catch{return null}}function Ln(e){let t=new Set;if(e===null)return t;let n=t=>e.buttons[t]?.pressed===!0,r=e.axes[0]??0,i=e.axes[1]??0;return(n(12)||n(14)||r<-.6||i<-.6)&&t.add(`previous`),(n(13)||n(15)||r>Fn||i>Fn)&&t.add(`next`),n(0)&&t.add(`settle`),t}var Rn=class{send;now;element;buttons=new Map;clock;status;visible=!1;choosing=!1;highlighted;settled=!1;deadlineAt=0;timer=null;padFrame=0;padHeld=new Set;context=null;keydown=e=>{if(!this.visible||!this.choosing||e.repeat||e.ctrlKey||e.metaKey||e.altKey)return;let t=e.target;if(t instanceof HTMLElement&&t!==document.body&&!this.element.contains(t))return;let n=Pn[e.code];n===void 0?e.code===`ArrowRight`||e.code===`ArrowDown`?(e.preventDefault(),this.move(this.neighbour(1))):e.code===`ArrowLeft`||e.code===`ArrowUp`?(e.preventDefault(),this.move(this.neighbour(-1))):e.code!==`Enter`&&e.code!==`Space`||t instanceof HTMLButtonElement||(e.preventDefault(),this.pick(this.highlighted,!0)):(e.preventDefault(),this.pick(Tn[n].style,!0))};constructor(e,t,n=()=>performance.now(),r=An()){this.send=t,this.now=n,this.highlighted=r;let i=document.createElement(`section`);i.className=`style-picker`,i.dataset.stylePicker=``,i.hidden=!0,i.setAttribute(`aria-label`,`Pick how your fighter boxes`);let a=document.createElement(`header`),o=document.createElement(`p`);o.className=`style-title`,o.textContent=`CHOOSE YOUR STYLE`,this.clock=document.createElement(`p`),this.clock.className=`style-clock`,a.append(o,this.clock);let s=document.createElement(`div`);s.className=`style-cards`;for(let[e,t]of Tn.entries()){let n=document.createElement(`button`);n.type=`button`,n.dataset.style=t.style,n.setAttribute(`aria-pressed`,`false`);let r=document.createElement(`kbd`);r.textContent=String(e+1);let i=document.createElement(`strong`);i.textContent=t.name;let a=document.createElement(`span`);a.textContent=t.detail;let o=document.createElement(`ul`);o.className=`style-stats`;for(let[e,n]of t.stats.entries()){let t=document.createElement(`li`);t.setAttribute(`aria-label`,`${wn[e]} ${n} of 5`);let r=document.createElement(`small`);r.textContent=wn[e];let i=document.createElement(`i`);i.dataset.value=String(n),t.append(r,i),o.append(t)}n.append(r,i,a,o),n.addEventListener(`click`,()=>this.pick(t.style,!0)),s.append(n),this.buttons.set(t.style,n)}this.status=document.createElement(`p`),this.status.className=`style-status`,this.status.setAttribute(`role`,`status`),i.append(a,s,this.status),e.append(i),this.element=i,window.addEventListener(`keydown`,this.keydown)}update(e,t,n){if(e===null){this.setVisible(!1),this.context=null,this.settled=!1;return}let r=this.context===null||!this.choosing&&n===`fighter`;this.context?.select!==e&&(this.deadlineAt=this.now()+e.deadline_ms-Nn),this.context={select:e,viewerId:t},this.choosing=n===`fighter`&&t!==null,this.settled=this.choosing&&(this.settled||e.ready.includes(t));let i=e.players.find(e=>e.id===t)?.style;this.settled&&i!==void 0&&(this.highlighted=i),r&&this.choosing&&!this.settled&&this.send(this.highlighted,!1),this.setVisible(!0),this.render()}pick(e,t){!this.choosing||this.settled||this.closed||(this.highlighted=e,this.send(e,t)&&(t&&(this.settled=!0),this.render()))}get closed(){return this.now()>=this.deadlineAt}neighbour(e){return Tn[(Tn.findIndex(e=>e.style===this.highlighted)+e+Tn.length)%Tn.length].style}move(e){this.pick(e,!1),this.settled||this.buttons.get(this.highlighted)?.focus()}render(){let e=this.context;if(e===null)return;let{select:t,viewerId:n}=e;for(let e of Tn){let t=this.buttons.get(e.style),n=this.choosing&&e.style===this.highlighted;t.disabled=!this.choosing||this.settled||this.closed,t.setAttribute(`aria-pressed`,String(n)),t.toggleAttribute(`data-chosen`,n),t.tabIndex=e.style===this.highlighted?0:-1}let r=`${Math.max(0,Math.ceil((this.deadlineAt-this.now())/1e3))}s`;this.clock.textContent!==r&&(this.clock.textContent=r);let i=t.players.filter(e=>e.id!==n&&(!e.connected||t.ready.includes(e.id))).map(e=>e.connected?`${e.name} is ready.`:`Waiting for ${e.name} to reconnect.`).join(` `),a=this.choosing?this.settled?i.length>0?`Ready as ${En(this.highlighted).name}. ${i}`:`Ready as ${En(this.highlighted).name}. Waiting for your opponent.`:i.length>0?`${i} Tap a style or press Enter to settle on yours.`:`Tap a style, or use the arrow keys and Enter.`:i.length>0?`The fighters are choosing. ${i}`:`The fighters are choosing their styles.`;this.status.textContent!==a&&(this.status.textContent=a)}setVisible(e){this.visible!==e&&(this.visible=e,this.element.hidden=!e,e?(this.timer=window.setInterval(()=>this.render(),250),this.padHeld=Ln(In()),this.padFrame=requestAnimationFrame(()=>this.pollPad())):(this.timer!==null&&window.clearInterval(this.timer),this.timer=null,cancelAnimationFrame(this.padFrame)))}pollPad(){if(!this.visible)return;let e=Ln(In());for(let t of e)this.padHeld.has(t)||(t===`settle`?this.pick(this.highlighted,!0):this.move(this.neighbour(t===`next`?1:-1)));this.padHeld=e,this.padFrame=requestAnimationFrame(()=>this.pollPad())}destroy(){this.setVisible(!1),window.removeEventListener(`keydown`,this.keydown),this.element.remove()}},zn=/^[0-9]{17,20}$/u,Bn=/^[A-Za-z0-9_]{1,128}$/u,Vn=`https://cdn.discordapp.com/avatars/`,Hn=128,Un=8;function Wn(e){return e.avatar===null||!zn.test(e.id)||!Bn.test(e.avatar)?null:new URL(`${e.id}/${e.avatar}.png?size=${Hn}`,Vn).href}function Gn(e){let t=Array.from(e).find(e=>/[\p{L}\p{N}]/u.test(e));return t===void 0?`?`:t.toUpperCase()}var Kn=class{create;pictures=new Map;addresses=new Map;constructor(e=()=>new Image){this.create=e}get(e){if(e===void 0)return null;let t=this.addresses.get(e.id);(t===void 0||t.avatar!==e.avatar)&&(this.addresses.size>=Un&&this.addresses.clear(),t={avatar:e.avatar,url:Wn(e)},this.addresses.set(e.id,t));let n=t.url;if(n===null)return null;let r=this.pictures.get(n);if(r!==void 0)return r.ready?r.image:null;if(this.pictures.size>=Un){let e=this.pictures.entries().next().value;e!==void 0&&this.drop(e[0],e[1])}let i={image:this.create(),ready:!1};return this.pictures.set(n,i),i.image.crossOrigin=`anonymous`,i.image.referrerPolicy=`no-referrer`,i.image.decoding=`async`,i.image.onload=()=>{i.ready=i.image.naturalWidth>0},i.image.onerror=()=>{i.ready=!1},i.image.src=n,null}dispose(){for(let[e,t]of[...this.pictures])this.drop(e,t);this.addresses.clear()}drop(e,t){t.image.onload=null,t.image.onerror=null,t.ready=!1,this.pictures.delete(e)}},qn=`POWER ARMED`,Jn=1e3,Yn=e=>e.reduce((e,t)=>e+t,0),Xn=(e,t,n)=>{if(e.measureText(t).width<=n)return t;let r=t;for(;r.length>1&&e.measureText(`${r}…`).width>n;)r=r.slice(0,-1);return`${r}…`},Zn=(e,t,n,r)=>{for(let i=n;i>r;--i)if(e(i)<=t)return i;return r},Qn=`#ff7066`;function $n(e,t,n,r,i,a){let o=i.spentBelow!==void 0&&i.value0&&(e.globalAlpha=i.alarm*.6,e.fillStyle=`#ff4632`,e.fillRect(t-1,n-1,r+2,11),e.globalAlpha=1),o){e.beginPath();for(let i=-9;i.5?`#ffffff`:`#ff9a90`,e.fillText(r,t,n-4)}}function tr(e,t,n,r,i,a,o){let s=()=>{e.beginPath(),e.arc(t,n,r,0,Math.PI*2),e.closePath()};e.save(),s(),e.fillStyle=`#0b1220`,e.fill(),i===null?(e.globalAlpha=.4,e.fillStyle=o,e.fill(),e.globalAlpha=1,e.fillStyle=`#f5f8ff`,e.textAlign=`center`,e.font=`800 ${Math.round(r*1.1)}px Inter, system-ui, sans-serif`,e.fillText(Gn(a),t,n+r*.39)):(e.save(),e.clip(),e.drawImage(i,t-r,n-r,r*2,r*2),e.restore()),s(),e.lineWidth=Math.max(1.5,r/9),e.strokeStyle=o,e.stroke(),e.restore()}function nr(e,t=[]){let n=e.left_eye>=p&&!t.includes(`eye_left_out`),r=e.right_eye>=p&&!t.includes(`eye_right_out`);return n&&r?`BOTH EYES SHUT`:n?`LEFT EYE SHUT`:r?`RIGHT EYE SHUT`:null}var rr={cut:`closing the cut`,swelling:`icing the swelling`,breath:`catching breath`,balanced:`a little of everything`};function ir(e){let t=e.flatMap((e,t)=>e.corner_choice===null?[]:[`${t===0?`Blue`:`Red`}: ${rr[e.corner_choice]}`]);return t.length===0?null:t.join(` · `)}function ar(e,t,n,r){e.save(),e.font=`900 12px Inter, system-ui, sans-serif`;let i=e.measureText(qn).width+16,a=r?t-i:t;e.shadowColor=`rgba(255,120,30,0.9)`,e.shadowBlur=12;let o=e.createLinearGradient(0,n,0,n+18);o.addColorStop(0,`#ffd36b`),o.addColorStop(1,`#ff6a1a`),e.fillStyle=o,e.fillRect(a,n,i,18),e.shadowBlur=0,e.fillStyle=`#2a0c00`,e.textAlign=`left`,e.fillText(qn,a+8,n+13),e.restore()}function or(e,t,n,r,i){e.save(),e.font=`800 9px Inter, system-ui, sans-serif`;let a=e.measureText(r).width+12,o=i?t-a:t;e.fillStyle=`rgba(150,22,18,0.92)`,e.fillRect(o,n,a,14),e.fillStyle=`#ffe8e3`,e.textAlign=`left`,e.fillText(r,o+6,n+10),e.restore()}var sr={arm_torn:0,disemboweled:1,forearm_severed:2,skull_fractured:3,jaw_torn:4,face_flayed:5,eye_out:6,ear_torn:7,arm_broken:8,knee_blown:9,ribs_broken:10,broken_jaw:11,broken_nose:12,liver_ruptured:13,shoulder_dislocated:14},cr=8,lr=e=>sr[ct(e)],ur={wide:4,compact:3};function dr(e){return e.filter(t=>t!==`broken_jaw`||!e.includes(`jaw_torn`)).sort((e,t)=>lr(e)-lr(t))}function fr(e,t){let n=e.slice(0,t).map(ut);return e.length>t&&n.push(`+${e.length-t}`),n}var pr=14,mr=3,hr=`800 9px Inter, system-ui, sans-serif`,gr={grave:`#c4160f`,plain:`rgba(122,18,14,0.92)`,count:`rgba(52,8,8,0.92)`},_r={grave:`#ffffff`,plain:`#ffe8e3`,count:`#ffb1a8`};function vr(e,t,n,r,i,a){e.fillStyle=gr[a],e.fillRect(t,n,r,pr),e.fillStyle=_r[a],e.fillText(i,t+6,n+10)}function yr(e,t,n,r,i,a,o){if(i.length===0)return n;let s=dr(i),c=Math.min(a,s.length),l=fr(s,a).map(e=>({label:e,width:0,offset:0,row:0}));e.save(),e.font=hr,e.textAlign=`left`;let u=0,d=0;for(let t of l)t.label=Xn(e,t.label,r-12),t.width=e.measureText(t.label).width+12,d>0&&d+mr+t.width>r&&(u+=1,d=0),t.offset=d===0?0:d+mr,t.row=u,d=t.offset+t.width;let f=n-(u+1)*17+mr;return l.forEach((n,r)=>{let i=r>=c?`count`:lr(s[r])r)break;vr(e,o?t-p-f:t+p,n,f,d,a===null||lr(a)>=cr?`plain`:`grave`),l=p+f,u+=1}if(u>0&&u0?`${t.knockdowns} KD`:null,c=[s,t.warnings>0?`${t.warnings} WARNING${t.warnings===1?``:`S`}`:null,t.deductions>0?`−${t.deductions} PT${t.deductions===1?``:`S`}`:null,r>0?`${r} INJUR${r===1?`Y`:`IES`}`:null],l=[s,t.warnings>0?`W${t.warnings}`:null,t.deductions>0?`−${t.deductions}`:null,r>0?`${r} INJ`:null],u=(...e)=>e.filter(e=>e!==null).join(` · `),d=n?[u(i,...l),u(...l)]:[u(i,a,o,...c),u(i,o,...c),u(i,...c),u(i,...l),u(...l)];return d.filter((e,t)=>e!==``&&d.indexOf(e)===t)}var Ar=168;function jr(e,t,n,r,i,a,o,s,c,l,u=!1){e.save(),e.beginPath(),s?(e.moveTo(t+14,n),e.lineTo(t+r,n),e.lineTo(t+r-14,n+62),e.lineTo(t,n+62)):(e.moveTo(t,n),e.lineTo(t+r-14,n),e.lineTo(t+r,n+62),e.lineTo(t+14,n+62)),e.closePath(),e.fillStyle=`rgba(3,6,12,0.82)`,e.fill(),e.strokeStyle=`rgba(190,200,220,0.22)`,e.lineWidth=1,e.stroke(),e.fillStyle=c,e.fillRect(s?t+r-5:t,n+4,5,54);let d=l===void 0?20:51;l!==void 0&&tr(e,s?t+r-11-16:t+11+16,n+4+16,16,l,i,c);let f=s?t+r-d:t+d;e.textAlign=s?`right`:`left`,e.fillStyle=`#f5f8ff`;let p=i.toUpperCase(),m=r-d-24;e.font=`800 ${Zn(t=>(e.font=`800 ${t}px Inter, system-ui, sans-serif`,e.measureText(p).width),m,16,11)}px Inter, system-ui, sans-serif`,e.fillText(Xn(e,p,m),f,n+21);let h=r-d-14;if(u)e.fillStyle=`#ffb347`,e.font=`900 10px Inter, system-ui, sans-serif`,e.fillText(Xn(e,qn,h),f,n+35);else{e.fillStyle=`#93a3bd`;let t=(t,n)=>(e.font=`600 ${n}px Inter, system-ui, sans-serif`,e.measureText(t).width),r=a.find(e=>t(e,8)<=h)??a.at(-1)??``;e.font=`600 ${Zn(e=>t(r,e),h,10,8)}px Inter, system-ui, sans-serif`,e.fillText(Xn(e,r,h),f,n+35)}let g=(r-52)/o.length,_=o.length*g+(o.length-1)*12,v=s?t+r-20-_:t+20;o.forEach((t,r)=>{$n(e,v+(g+12)*r,n+48,g,t,s)}),e.restore()}function Mr(e,t,n,r,i,a){let o=Ar;e.save(),e.beginPath(),e.moveTo(t-o/2+12,n),e.lineTo(t+o/2-12,n),e.lineTo(t+o/2,n+29),e.lineTo(t+o/2-12,n+58),e.lineTo(t-o/2+12,n+58),e.lineTo(t-o/2,n+29),e.closePath(),e.fillStyle=`rgba(4,6,12,0.88)`,e.fill();let s=e.createLinearGradient(t-o/2,n,t+o/2,n+58);s.addColorStop(0,`#8a6a26`),s.addColorStop(.5,`#f6d57a`),s.addColorStop(1,`#8a6a26`),e.strokeStyle=s,e.lineWidth=2,e.stroke(),e.textAlign=`center`,e.fillStyle=`#ffffff`,e.font=`800 22px ui-monospace, monospace`,e.fillText(r,t,n+27),e.fillStyle=`#f6d57a`,e.font=`800 12px Inter, system-ui, sans-serif`,e.fillText(i,t,n+44),a!==`FIGHT`&&(e.fillStyle=`#93a3bd`,e.font=`700 9px Inter, system-ui, sans-serif`,e.fillText(a,t,n+55)),e.restore()}var Nr=78,Pr=50,Fr=.22,Ir=e=>e<480?Pr:Nr,Lr=(e,t)=>Math.max(e<640?112:56,t*.1)+Ir(t)/2-t/2,Rr={upright:{bottom:118,height:274,moves:0,grid:118},landscape:{bottom:118,height:196,moves:102,grid:118},short:{bottom:112,height:154,moves:86,grid:92},shortHeight:350,reach:216,movesReach:134},zr=(e,t)=>e<=t?Rr.upright:t<=Rr.shortHeight?Rr.short:Rr.landscape;function Br(e,t,n){let r=zr(e,t);return n<=t-r.bottom-r.height?0:Rr.reach+(r.moves>0&&n>t-r.bottom-r.moves?Rr.movesReach:0)}var Vr=160;function Hr(e,t,n=!1){let r=Ir(t),i=t/2+Lr(e,t)-r/2,a=Math.min(320,e-24),o=e/2+a/2;if(n&&e<=t)Br(e,t,i+r+8)>0&&(r=Pr);else if(n){let n=e<640?Math.min(e/2-Ar/2-8,e-Br(e,t,56+r)):0,s=n-12>=Vr;s&&(i=56);let c=s?n:e-Br(e,t,i+r);o>c&&(a=Math.min(a,c-12),o=c)}return{x:o-a,y:i,width:a,height:r}}var Ur={width:560,height:360,shortest:150},Wr=112;function Gr(e,t,n=!1){let r=n?Ke(e,t,Ge()):null,i=e<=t,a=r!==null&&i?Math.min(t-Wr,r.left.y-8):t-Wr,o=r!==null&&!i?r.right.x-r.left.x-r.left.width-24:e-24,s=Math.min(Ur.height,Math.max(Ur.shortest,a-56)),c=Math.max(56,Math.min(Math.max(t*.24,pi(t,e<640)+34),a-s)),l=Math.min(Ur.width,o);return{x:e/2-l/2,y:c,width:l,height:s}}var Kr={perfect:{word:`PERFECT`,color:`#ffd24a`},good:{word:`GOOD`,color:`#7dffa8`},early:{word:`EARLY`,color:`#8fc3ff`},late:{word:`LATE`,color:`#ffad5c`},wrong:{word:`WRONG SIDE`,color:`#ff6b6b`}},qr=44,Jr=64,Yr=[``,`1st`,`2nd`,`3rd`],Xr={get_up_left:`←`,get_up_right:`→`},Zr={plain:{ring:`#ffffff`,disc:`#16233a`,arrow:`#fff4cf`},good:{ring:`#7dffa8`,disc:`#1d6a3f`,arrow:`#e4ffee`},perfect:{ring:`#ffd24a`,disc:`#7a5a08`,arrow:`#fff8dc`}},Qr=[6,7],$r=[3,3],ei=[];function ti(e,t,n,r){e.beginPath(),e.arc(t,n,r,0,Math.PI*2)}function ni(e,t,n,r){let{x:i,y:a,width:o,height:s}=t,c=s/Ur.height,l=e=>a+e*c,u=a+s-40,d=l(52),f=e=>Math.min(c,(e-d)/2/108),p=f(u-26),m=o-16-(28+216*p+54*p+16)>=150,h=m?u-26:u-54,g=m?p:f(h),_=n.verdict===null?1/0:n.nowMs-n.verdict.atMs,v=_<1100?n.verdict:null,y=v===null?null:Kr[v.detail];e.save(),e.fillStyle=`rgba(3,6,12,0.88)`,e.fillRect(i,a,o,s),e.strokeStyle=r&&y!==null&&_<220?y.color:`rgba(246,213,122,0.5)`,e.lineWidth=2,e.strokeRect(i+2,a+2,o-4,s-4),e.textAlign=`left`,e.fillStyle=`#ffd77a`,n.count>=1?(e.font=`800 13px Inter, system-ui, sans-serif`,e.fillText(`COUNT`,i+18,l(36)),e.font=`900 ${Math.round(40*Math.max(.75,c))}px Inter, system-ui, sans-serif`,e.fillText(String(n.count),i+76,l(42))):(e.font=`900 ${Math.round(32*Math.max(.75,c))}px Inter, system-ui, sans-serif`,e.fillText(`GET UP!`,i+18,l(42)));for(let t=1;t<=10;t+=1){ti(e,i+o-22-(10-t)*14,l(24),5);let r=t===10?`#ff6b6b`:`#ffd77a`;t<=n.count?(e.fillStyle=r,e.fill()):(e.strokeStyle=t===10?r:`rgba(210,220,235,0.55)`,e.lineWidth=1.5,e.stroke())}e.textAlign=`right`,e.fillStyle=`#aebbd0`,e.font=`700 11px Inter, system-ui, sans-serif`,e.fillText(n.count>=10?`TEN`:`${10-n.count} LEFT TO TEN`,i+o-16,l(46));let b=qr*g,x=Jr*g,S=m?i+28+b+x:i+o/2-26*g,C=(d+h)/2,w=x/te,T=n.prompt,E=``,D=`#c8d3e6`,O=!1;if(e.textAlign=`center`,n.risen||T===null)ti(e,S,C,b),e.fillStyle=n.risen?`#1d6a3f`:`#1a2130`,e.fill(),e.fillStyle=n.risen?`#7dffa8`:`#6f7d94`,e.font=`900 ${Math.round(30*g)}px Inter, system-ui, sans-serif`,e.fillText(n.risen?`UP`:`–`,S,C+11*g),E=n.risen?`ON YOUR FEET`:`NO MORE PROMPTS`,D=n.risen?`#7dffa8`:`#c8d3e6`;else{let t=T.beat-n.pressTick,r=M.zoneTicks+.5,i=n.pressTick=-r-M.lateTicks&&(e.lineWidth=Math.max(3,5*g),e.strokeStyle=a.ring,ti(e,S,C,Math.max(4,b+Math.min(te,t)*w)),e.stroke(),E=O?`NOW`:t>0?`WAIT FOR IT`:`TOO LATE`,D=O?a.ring:t>0?`#eaf1ff`:`#ffad5c`),T.next!==null){let t=S+b+x+36*g;e.globalAlpha=.5,e.setLineDash($r),e.lineWidth=1.5,e.strokeStyle=`#aebbd0`,ti(e,t,C,18*g),e.stroke(),e.setLineDash(ei),e.fillStyle=`#aebbd0`,e.font=`700 ${Math.round(22*g)}px Inter, system-ui, sans-serif`,e.fillText(Xr[T.next],t,C+8*g),e.font=`700 10px Inter, system-ui, sans-serif`,e.fillText(`NEXT`,t,C+18*g+12),e.globalAlpha=1}}let k=m?S+b+x+54*g+16:i+16,ee=i+o-16-k,A=k+ee/2,j=v===null?``:v.amount===0?`no score`:`${v.amount>0?`+`:`−`}${Math.abs(v.amount)}`;if(y!==null&&!(O&&_>200)){let t=r&&_<160?1+.2*(1-_/160):1;e.save(),e.translate(A,m?C:u-30),e.scale(t,t),e.fillStyle=y.color,Pi(e,m?y.word:`${y.word} ${j}`,0,0,ee,900,m?32:26,13),e.restore(),m&&(e.fillStyle=y.color,e.font=`800 20px Inter, system-ui, sans-serif`,e.fillText(j,A,C+28))}else E!==``&&(e.fillStyle=D,Pi(e,E,A,m?C+10:u-30,ee,900,m?28:24,12));let ne=T?.side??null,re=n.risen?`Up before ten: take the count, then box`:ne===null?`The count runs on to ten`:`${n.touch?`Tap ${ze[ne]}`:`Press ${Ae[ne]}`} as the ring closes · one press a count`;e.fillStyle=`#eaf1ff`,Pi(e,re,i+o/2,u,o-32,800,20,11);let ie=Math.max(1,n.required),N=Math.max(0,Math.min(ie,n.meter)),ae=Math.max(0,ie-n.meter),oe=v!==null&&v.amount>0?v.amount:0,se=v!==null&&v.amount<0?-v.amount:0,ce=Math.min(24,(o-40-96)/ie);e.fillStyle=`rgba(2,4,9,0.9)`,e.fillRect(i+16,a+s-33,ce*ie+2,16);for(let t=0;t=N-oe?`#ffd24a`:`#3ccf78`:t0?` + head damage ${ue}`:``} · PERFECT counts ${M.perfect}`;e.textAlign=`left`,e.fillStyle=`#93a3bd`,e.font=`600 10px Inter, system-ui, sans-serif`,e.fillText(Xn(e,de,o-32),i+16,a+s-6),e.restore()}function ri(e,t,n,r){let i=t.height===Pr,a=t.x+t.width/2;e.fillStyle=`rgba(3,6,12,0.88)`,e.fillRect(t.x,t.y,t.width,t.height),e.strokeStyle=`rgba(246,213,122,0.45)`,e.lineWidth=1.5,e.strokeRect(t.x+2,t.y+2,t.width-4,t.height-4),e.textAlign=`center`,e.fillStyle=`#ffd77a`,Pi(e,n,a,t.y+(i?22:34),t.width-24,800,i?17:22,12),e.fillStyle=`#c8d3e6`,e.font=`600 ${i?11:12}px Inter, system-ui, sans-serif`,e.fillText(Xn(e,r,t.width-24),a,t.y+(i?39:58))}var ii=class{fightTicks=null;round=0;ticks(e){return e.round_number!==this.round&&(this.round=e.round_number,this.fightTicks=null),e.phase===`fight`&&(this.fightTicks=e.phase_ticks_remaining),(e.phase===`knockdown`||e.phase===`foul_recovery`||e.phase===`referee_down`||e.phase===`finish`||e.phase===`complete`)&&this.fightTicks!==null?this.fightTicks:e.phase_ticks_remaining}},ai=()=>({thrown:0,landed:0,jabsThrown:0,jabsLanded:0});function oi(e,t){return e.action_id!==null&&t.some(t=>(t.kind===`block`||t.kind===`perfect_block`)&&t.tick===e.tick&&t.action_id===e.action_id&&t.actor_id===e.target_id)}var si=class{stats=new Map;totals=new Map;record(e,t=[]){if(e.kind===`bell`)e.detail===`round_start`&&this.stats.clear();else if(e.actor_id!==null){if(e.kind===`punch_start`){let t=+(e.detail.split(`:`)[1]===`jab`);for(let n of[this.entry(this.stats,e.actor_id),this.entry(this.totals,e.actor_id)])n.thrown+=1,n.jabsThrown+=t}else if((e.kind===`hit`||e.kind===`counter_hit`)&&!oi(e,t)){let t=+(e.detail.split(`:`)[0]===`jab`);for(let n of[this.entry(this.stats,e.actor_id),this.entry(this.totals,e.actor_id)])n.landed+=1,n.jabsLanded+=t}}}get(e){return this.stats.get(e)??ai()}total(e){return this.totals.get(e)??ai()}entry(e,t){let n=e.get(t);return n===void 0&&(n=ai(),e.set(t,n)),n}};function ci(e){let t=e.method.replaceAll(`_`,` `).toUpperCase();if(e.method!==`decision`&&e.method!==`draw`)return t;let n=0,r=0,i=0;for(let t of e.scorecards){let e=Yn(t.player_one),a=Yn(t.player_two);e>a?n+=1:a>e?r+=1:i+=1}let a=e.scorecards.length;return a===0?t:e.method===`draw`?i===a?`UNANIMOUS DRAW`:n===r?`SPLIT DRAW`:`MAJORITY DRAW`:Math.max(n,r)===a?`UNANIMOUS DECISION`:i>0?`MAJORITY DECISION`:`SPLIT DECISION`}var li=new Set([`ko`,`flash_ko`,`tko`,`death`]),ui=3.6,di=2.4;function fi(e){return e===null?0:li.has(e.method)?ui:e.method===`disqualification`?di:0}var pi=(e,t)=>Math.max(e*.16,(t?112:56)+40),mi=(e,t)=>e!==null&&e>=(t?100:120),hi=`FINISH HIM!`,gi=`Impact, "Arial Black", Inter, system-ui, sans-serif`,_i=2.2,vi=.82,yi={name:15,nameGap:24,bar:10,foot:42},bi={name:11,nameGap:15,bar:6,foot:26},xi=28,Si=160;function Ci(e,t,n=!1){let r=e<640?118:60,i=Math.round(Math.min(120,t*.17,(e-32)/5)),a=(e,t,n,r,i)=>{let a=i+Math.round(e*vi);return{centre:n,maxWidth:r,size:e,baseline:a,bottom:a+(t?bi:yi).foot,dense:t}};if(!n)return a(i,!1,e/2,e-32,r);let o=zr(e,t),s=t-o.bottom-o.height;for(let n of[!1,!0]){let c=null;for(let l of o.moves>0?[s,t-o.bottom-o.moves]:[s]){let o=Math.min(i,Math.floor((l-r-(n?bi:yi).foot)/vi));if(o=Si&&(c={...s,maxWidth:e-2*u})}if(c!==null)return c}let c=Hr(e,t,!0);return a(Math.max(12,Math.min(i,Math.floor((c.height-bi.foot-4)/vi))),!0,c.x+c.width/2,c.width,c.y+2)}function wi(e,t=null){let[n,r]=e;return t!==null&&(n.player_id===t||r.player_id===t)?n.player_id===t?n:r:n.poise===0==(r.poise===0)?n.knockdowns===r.knockdowns?n.stunned_ticks===r.stunned_ticks?null:n.stunned_ticks>r.stunned_ticks?n:r:n.knockdowns>r.knockdowns?n:r:n.poise===0?n:r}var Ti=[`jab`,`straight`,`hook`,`uppercut`],Ei=Ti.map(e=>e.toUpperCase()),Di=[`head`,`body`].map(e=>({target:e.toUpperCase(),fatalities:Ti.map(t=>ft(pt(e,t)))})),Oi=14,ki=.4,Ai=[0,0,0,0];function ji(e,t,n,r,i){e.save(),e.textAlign=`left`;for(let a of[!1,!0])for(let o=10;o>=8;--o){let s=o+5,c=(a?3:2)*s+6;if(n+c>i)continue;e.font=`700 ${o}px Inter, system-ui, sans-serif`;let l=o*.4,u=Math.max(...Di.map(t=>e.measureText(t.target).width))+10,d=12+u+42;for(let[t,n]of Ei.entries()){let r=e.measureText(n).width,i=a?r:0;for(let n of Di)i=Math.max(i,e.measureText(n.fatalities[t]).width+(a?0:r+l));Ai[t]=i,d+=i}if(d>r)continue;let f=t-d/2;e.fillStyle=`rgba(3,6,12,0.78)`,e.fillRect(f,n,d,c);let p=n+2+o;if(a){e.fillStyle=`#f6d57a`;let t=f+6+u;for(let[n,r]of Ei.entries())e.fillText(r,t,p),t+=Ai[n]+Oi;p+=s}for(let t of Di){e.fillStyle=Qn,e.fillText(t.target,f+6,p);let n=f+6+u;for(let[r,i]of t.fatalities.entries()){let t=Ei[r];a||(e.fillStyle=`#f6d57a`,e.fillText(t,n,p)),e.fillStyle=`#f5f8ff`,e.fillText(i,a?n:n+e.measureText(t).width+l,p),n+=Ai[r]+Oi}p+=s}e.restore();return}e.restore()}function Mi(e,t,n,r,i,a){let o=i===null?0:.5-.5*Math.cos(i*_i*Math.PI*2),s=t.dense?bi:yi;e.save(),e.textAlign=`center`,e.font=`italic 900 ${t.size}px ${gi}`;let c=e.measureText(hi).width,l=Math.min(t.size,t.size*t.maxWidth/(c*1.1)),u=l*(1+.08*o);e.font=`italic 900 ${u}px ${gi}`,e.lineJoin=`round`,e.lineWidth=Math.max(3,u*.12),e.strokeStyle=`rgba(10,0,0,0.92)`,e.shadowColor=`rgba(255,24,12,0.9)`,e.shadowBlur=14+24*o,e.strokeText(hi,t.centre,t.baseline),e.shadowBlur=0;let d=e.createLinearGradient(0,t.baseline-u*.8,0,t.baseline);d.addColorStop(0,`#ff5540`),d.addColorStop(.5,`#d8160d`),d.addColorStop(1,`#7d0705`),e.fillStyle=d,e.fillText(hi,t.centre,t.baseline),e.font=`800 ${s.name}px Inter, system-ui, sans-serif`,e.lineWidth=t.dense?3:4;let f=`ONE MORE PUNCH KILLS`;if(n!==null){let r=e.measureText(`${n} IS DEAD ON HIS FEET`).width<=t.maxWidth?` IS DEAD ON HIS FEET`:` IS DONE FOR`;f=`${Xn(e,n,Math.max(0,t.maxWidth-e.measureText(r).width))}${r}`}e.strokeText(f,t.centre,t.baseline+s.nameGap),e.fillStyle=`#ffe8e3`,e.fillText(f,t.centre,t.baseline+s.nameGap);let p=Math.min(420,t.maxWidth),m=t.bottom-s.bar-2,h=p*Math.max(0,Math.min(1,r));e.fillStyle=`rgba(2,4,9,0.85)`,e.fillRect(t.centre-p/2-1,m-1,p+2,s.bar+2),e.fillStyle=`#e0180f`,e.fillRect(t.centre-h/2,m,h,s.bar),e.strokeStyle=`rgba(255,112,102,0.85)`,e.lineWidth=1,e.strokeRect(t.centre-p/2-1.5,m-1.5,p+3,s.bar+3),e.restore(),a!==null&&ji(e,t.centre,t.bottom+8,Math.min(t.maxWidth,c*l/t.size),a)}function Ni(e,t,n,r,i,a,o,s,c=30,l=null,u=null,d=null,f=null,p=null,g=null,_=null,v=!1,y=!1,b=null,x=null,S=!0,C=null){e.save();let w=Or(t,n);e.scale(w,w),t/=w,n/=w,e.textBaseline=`alphabetic`;let T=e=>{let t=i[e.player_id];return t===void 0||g===null?null:g(t)},E=t<640,D=E?(t-56)/2:Math.min(300,t*.38,t/2-Ar/2-8-24),O=n-84,k=S?r.tick/c:null,ee=Er(t,n,v,r.phase===`rest`&&r.fighters.some(e=>e.player_id===a));o===null&&r.fighters.forEach((o,s)=>{let c=s===1,l=c?t-24-D:24,u=i[o.player_id],d=[{label:`${E?`STA`:`STAMINA`} ${Math.round(o.stamina)}`,value:o.stamina,maximum:o.maximum_stamina,from:`#ffe08a`,to:`#d9a53a`},{label:`${E?`HP`:`HEALTH`} ${Math.round(o.conditioning)}`,value:o.conditioning,maximum:Jn,from:`#ff8a7a`,to:`#b02a20`},{label:o.guard_broken?`GUARD BROKEN`:`GUARD`,value:o.guard,maximum:700,from:`#9ec7ff`,to:`#3d6fb8`,spentBelow:o.guard_broken?h:m},{label:`POISE ${Math.round(o.poise)}`,value:o.poise,maximum:600,from:`#e8c890`,to:`#8a6a34`}],f=s===0?`#3d6fb8`:`#b02a20`,p=O-12,g=nr(o.trauma,o.injuries),_=Dr(o.blood_volume,k),b=r.phase===`fight`||r.phase===`countdown`||r.phase===`finish`&&wi(r.fighters,x)?.player_id!==o.player_id,S=y&&o.player_id===a&&b,C=ee?3:2,w=Math.min(64,(D-28-C*12)/C),A=w+12,te=c?l+D+4-C*A:l+20,j=c?l+D-8:te,M=te+(c?C-2:0)*A,ne=0;if(ee){let n=w<40,r=n&&_.label===`BLEEDING OUT`;$n(e,M,p,w,n?{...d[2],label:r?``:`GUARD`}:d[2],c),$n(e,M+A,p,w,n?{...d[3],label:r?``:`POISE`}:d[3],c),$n(e,c?te:te+2*A,p,w,n?{..._,label:r?``:`BLOOD`}:_,c),r&&er(e,j,p,Cr,c,!1,_.alarm);let i=c?te-12:te+3*A;ne=br(e,i,p-5,c?i-t/2-4:t/2-4-i,g,o.injuries,c)}else{$n(e,M,p,w,d[2],c),$n(e,M+A,p,w,d[3],c);let t=2*w+12;$n(e,te,p-wr,t,_,c);let n=p-wr-Tr;g!==null&&(n-=18,or(e,j,n,g,c)),n=yr(e,j,n-4,E?D-24:t,o.injuries,E?ur.compact:ur.wide,c),S&&ar(e,j,n-18,c)}jr(e,l,O,D,u?.name??`Fighter`,kr(u,o,E,ne),d.slice(0,2),c,f,E?void 0:T(o),ee&&S),E&&!(v&&t>n)&&tr(e,t/2+(c?1:-1)*112,83,20,T(o),u?.name??`Fighter`,f)});let A=Math.floor((p??r.phase_ticks_remaining)/c),te=`${Math.floor(A/60)}:${String(A%60).padStart(2,`0`)}`,j=r.phase===`knockdown`&&u===null&&C!==null?Gr(t,n,v):null,M=j!==null&&E&&j.y<112;o===null&&!M&&Mr(e,t/2,E?54:n-84,te,`ROUND ${r.round_number}`,r.phase===`complete`?`FINAL`:r.phase.replace(`_`,` `).toUpperCase());let ne=d===null?0:Math.round(d);if(ne>=100&&!E&&o===null&&!(v&&u!==null)&&r.fighters.some(e=>e.player_id===a)&&(e.save(),e.textAlign=v?`left`:`right`,e.font=`700 11px ui-monospace, monospace`,e.fillStyle=ne<200?`rgba(240,200,110,0.9)`:`rgba(255,110,100,0.95)`,e.fillText(`SLOW CONNECTION ${ne} ms`,v?24:t-24,76),e.restore()),u!==null){let t=E?120:64;e.save(),e.fillStyle=`rgba(3,6,12,0.82)`,e.fillRect(24,t,196,34),e.fillStyle=`#ff3b3b`,e.beginPath(),e.arc(42,t+17,6,0,Math.PI*2),e.fill(),e.fillStyle=`#f6f7fb`,e.font=`800 14px Inter, system-ui, sans-serif`,e.textAlign=`left`,e.fillText(u,56,t+22),e.restore()}f!==null&&r.phase===`fight`&&(e.save(),e.textAlign=`center`,e.font=`900 46px Inter, system-ui, sans-serif`,e.lineWidth=6,e.strokeStyle=`rgba(0,0,0,0.75)`,e.strokeText(f,t/2,n*Fr),e.fillStyle=`#f6d57a`,e.fillText(f,t/2,n*Fr),e.restore()),r.phase===`countdown`&&ri(e,Hr(t,n,v),`ROUND ${r.round_number}`,`Touch gloves. Protect yourself at all times.`);let re=pi(n,E);if(r.phase===`knockdown`&&u===null){let n=r.fighters.find(e=>e.is_downed),a=n??r.fighters.find(e=>e.player_id===_),o=a===void 0?null:(i[a.player_id]?.name??`Fighter`).toUpperCase();e.save(),e.textAlign=`center`,e.font=`900 44px Inter, system-ui, sans-serif`,e.lineWidth=6,e.strokeStyle=`rgba(0,0,0,0.75)`,(j===null||j.y>=re+6)&&(e.strokeText(`KNOCKDOWN`,t/2,re),e.fillStyle=`#ff4d4d`,e.fillText(`KNOCKDOWN`,t/2,re)),e.font=`700 15px Inter, system-ui, sans-serif`,e.fillStyle=`#e6ecf7`;let s=n===void 0?` BEAT THE COUNT`:` IS DOWN`,c=o===null?`STANDING EIGHT`:`${Xn(e,o,Math.min(t*.5,t-32-e.measureText(s).width))}${s}`;(j===null||j.y>=re+30)&&e.fillText(c,t/2,re+24),e.restore()}if(r.phase===`knockdown`&&u===null){let n=r.fighters.find(e=>e.player_id===a),i=Math.max(...r.fighters.map(e=>e.get_up_count));n?.is_downed!==!0&&C?.risen!==!0?i>=1&&(e.save(),e.textAlign=`center`,e.font=`900 36px Inter, system-ui, sans-serif`,e.lineWidth=5,e.strokeStyle=`rgba(0,0,0,0.75)`,e.strokeText(`COUNT ${i}`,t/2,re+64),e.fillStyle=`#ffd77a`,e.fillText(`COUNT ${i}`,t/2,re+64),e.restore()):j!==null&&C!==null&&ni(e,j,C,S)}if(r.phase===`finish`&&o===null&&u===null){let o=wi(r.fighters,x),s=Ci(t,n,v),c=o!==null&&o.player_id!==a&&r.fighters.some(e=>e.player_id===a);Mi(e,s,o===null?null:(i[o.player_id]?.name??`Fighter`).toUpperCase(),r.phase_ticks_remaining/at,k,c&&!v?n*ki:null)}if(r.phase===`foul_recovery`){let a=r.fighters.find(e=>e.is_foul_recovery_target);ri(e,Hr(t,n,v),`FOUL RECOVERY`,`${i[a?.player_id??``]?.name??`Fighter`} is recovering`)}if(r.phase===`rest`){let i=r.fighters.map((e,t)=>({corner:t===0?`Blue`:`Red`,stats:l?.get(e.player_id)??ai()})).filter(({stats:e})=>e.thrown>0||e.landed>0).map(({corner:e,stats:t})=>`${e} ${t.landed} of ${t.thrown}`).join(` · `),a=ir(r.fighters);ri(e,Hr(t,n,v),`CORNERS · RECOVER`,a??(i.length>0?`Landed this round: ${i}`:`Conditioning governs recovery`))}if(s>0){let r=Math.min(320,t-24),i=Ir(n);ri(e,v?Hr(t,n,!0):{x:t/2-r/2,y:n/2-i/2,width:r,height:i},`OPPONENT RECONNECTING · ${Math.ceil(s/1e3)}s`,`The bout is paused`)}if(o!==null){let a=r.fighters.map(e=>l?.total(e.player_id)??ai());Wi(e,t,n,Li(o,r.fighters,i,a,b),!0,[T(r.fighters[0]),T(r.fighters[1])])}e.restore()}function Pi(e,t,n,r,i,a,o,s,c=`Inter, system-ui, sans-serif`){e.font=`${a} ${Zn(n=>(e.font=`${a} ${n}px ${c}`,e.measureText(t).width),i,o,s)}px ${c}`,e.fillText(Xn(e,t,i),n,r)}var Fi={ko:`KNOCKOUT`,flash_ko:`FLASH KNOCKOUT`,tko:`TECHNICAL KNOCKOUT`,disqualification:`DISQUALIFICATION`,forfeit:`FORFEIT`},Ii=(e,t)=>e>t?0:t>e?1:null;function Li(e,t,n,r,i=null){let a=t.map(e=>n[e.player_id]?.name??`Fighter`),o=e.winner_id===null?null:t[0].player_id===e.winner_id?0:t[1].player_id===e.winner_id?1:null,s=e.method===`draw`&&i!==null,c=[],l=[];if(e.method===`decision`||e.method===`draw`&&!s)for(let t of e.scorecards){let e=Yn(t.player_one),n=Yn(t.player_two);l.push({label:t.judge.toUpperCase(),values:[String(e),String(n)],lead:Ii(e,n)})}let u=[t[1].knockdowns,t[0].knockdowns];(u[0]>0||u[1]>0)&&c.push({label:`KNOCKDOWNS`,values:[String(u[0]),String(u[1])],lead:Ii(u[0],u[1])});let[d,f]=t.map(t=>e.punches?.[t.player_id]),p=e=>({thrown:e.thrown,landed:e.landed,jabsThrown:e.jabs_thrown,jabsLanded:e.jabs_landed}),m=d!==void 0&&f!==void 0?[p(d),p(f)]:r;if(m[0].thrown>0||m[1].thrown>0){let e=(e,t)=>t>0?`${Math.min(e,t)}/${t} (${Math.round(Math.min(e,t)/t*100)}%)`:`0/0`,t=m.map(e=>({landed:e.landed-e.jabsLanded,thrown:e.thrown-e.jabsThrown}));c.push({label:`TOTAL PUNCHES`,values:[e(m[0].landed,m[0].thrown),e(m[1].landed,m[1].thrown)],lead:Ii(m[0].landed,m[1].landed)}),c.push({label:`JABS`,values:[e(m[0].jabsLanded,m[0].jabsThrown),e(m[1].jabsLanded,m[1].jabsThrown)],lead:Ii(m[0].jabsLanded,m[1].jabsLanded)}),c.push({label:`POWER PUNCHES`,values:[e(t[0].landed,t[0].thrown),e(t[1].landed,t[1].thrown)],lead:Ii(t[0].landed,t[1].landed)})}let[h,g]=t.map(t=>e.ratings[t.player_id]);if(t.some(e=>n[e.player_id]?.cpu===!0))c.push({label:`RATING`,values:[`Unrated`,`Unrated`],lead:null});else if(h!==void 0&&g!==void 0){let e=e=>`${e.after} (${e.after>=e.before?`+`:`−`}${Math.abs(e.after-e.before)})`;c.push({label:`RATING`,values:[e(h),e(g)],lead:null,news:[h.after>=h.before,g.after>=g.before]})}return{headline:e.method===`death`?i!==null&&ht(i)!==null?`FATALITY`:`DEATH`:s?`DOUBLE DEATH`:Fi[e.method]??ci(e),detail:i!==null&&(e.method===`death`||s)?`${gt(i)} · ROUND ${e.round}`:`ROUND ${e.round}`,verdict:s?`NO SURVIVORS`:o===null?e.winner_id===null?`DRAW`:`${(n[e.winner_id]?.name??`Winner`).toUpperCase()} WINS`:`${a[o].toUpperCase()} WINS`,deadly:e.method===`death`||s,winnerSeat:o,names:a,judges:l,rows:c}}var Ri=[`#4f86d9`,`#d9483c`],zi=14;function Bi(e,t,n,r){let i=Or(e,t),a=Ui(e/i,t/i,n,r);return i===1?a:{...a,x:a.x*i,y:a.y*i,width:a.width*i,height:a.height*i,rowHeight:a.rowHeight*i,verdictHeight:a.verdictHeight*i,judgesHeight:a.judgesHeight*i}}var Vi=new Set([`KNOCKDOWNS`,`TOTAL PUNCHES`,`RATING`]),Hi=(e,t)=>t?e.rows.filter(e=>Vi.has(e.label)):e.rows;function Ui(e,t,n,r){let i=t<480,a=e>=900||e>=640&&i,o=Math.min(e-24,a?980:720),s=r?62:zi,c=i?72:112,l=n.judges.length===0?0:i?36:52,u=c+l,d=Hi(n,i).length+1,f=t-(e<640?118:70)-14-zi-s-(a?0:u),p=Math.max(16,Math.min(i?20:28,f/d)),m=zi+(a?Math.max(u,d*p):u+d*p)+s;return{x:(e-o)/2,y:t-14-m,width:o,height:m,wide:a,dense:i,rowHeight:p,verdictHeight:c,judgesHeight:l}}function Wi(e,t,n,r,i,a){let o=Ui(t,n,r,i),{x:s,y:c}=o;e.fillStyle=`rgba(3,6,12,0.9)`,e.fillRect(s,c,o.width,o.height),e.strokeStyle=r.deadly?`rgba(224,36,26,0.8)`:`rgba(246,213,122,0.55)`,e.lineWidth=2,e.strokeRect(s+1,c+1,o.width-2,o.height-2),e.textAlign=`center`;let l=(o.wide?o.width*.42:o.width)-32,u=o.wide?s+o.width*.21+4:t/2,d=c+zi,f=o.verdictHeight/112;e.fillStyle=r.deadly?`#ff3a2c`:`#f6d57a`,Pi(e,r.headline,u,d+34*f,l,800,(o.wide||t>=640?32:28)*f,14),e.fillStyle=`#aebbd0`,Pi(e,r.detail,u,d+56*f,l,700,13*f,9),e.fillStyle=r.winnerSeat===null?`#f6f7fb`:Ri[r.winnerSeat],Pi(e,r.verdict,u,d+92*f,l,800,25*f,12);let p=l/Math.max(1,r.judges.length),m=d+o.verdictHeight;r.judges.forEach((t,n)=>{let r=u-l/2+p*(n+.5);e.fillStyle=`rgba(255,255,255,0.06)`,e.fillRect(r-p/2+3,m,p-6,o.judgesHeight-8),e.fillStyle=`#8fa3c8`,Pi(e,t.label,r,m+o.judgesHeight*.3,p-14,700,10,7),e.fillStyle=`#f6f7fb`,Pi(e,`${t.values[0]} – ${t.values[1]}`,r,m+o.judgesHeight*.7,p-14,800,o.dense?14:17,10)});let h=o.wide?s+o.width*.42:s+12,g=s+o.width-12-h,_=o.wide?d:m+o.judgesHeight,v=g*.36,y=(g-v)/2,b=[h+y/2,h+g-y/2],x=o.rowHeight,S=Math.min(16,x*.6),C=_+x*.7;e.fillStyle=`rgba(255,255,255,0.06)`,e.fillRect(h,_,g,x);let w=Math.max(6,x/2-2);for(let t of[0,1]){let n=t===0?-1:1;e.fillStyle=Ri[t],e.fillRect(t===0?h:h+g-4,_,4,x),tr(e,b[t]+n*(y/2-10-w),_+x/2,w,a[t],r.names[t],Ri[t]),e.textAlign=`center`,e.fillStyle=`#f6f7fb`,Pi(e,r.names[t],b[t]-n*(w+3+v/4),C,y+v/2-22-w*2,800,S,9)}for(let t of Hi(r,o.dense)){C+=x,e.fillStyle=`#8fa3c8`,Pi(e,t.label,h+g/2,C,v,700,Math.min(12,S),8);for(let n of[0,1])e.fillStyle=t.news===void 0?t.lead===n?`#f6f7fb`:`#aebbd0`:t.news[n]?`#55df9b`:`#ff7b74`,Pi(e,t.values[n],b[n],C,y-16,t.lead===n?800:600,S,9)}}var Gi=6,Ki=150;function qi(){return typeof window<`u`&&typeof window.speechSynthesis==`object`&&window.speechSynthesis!==null&&typeof window.SpeechSynthesisUtterance==`function`}function Ji(e){let t=e.filter(e=>e.localService&&e.lang.toLowerCase().startsWith(`en`));return t.find(e=>e.default)??t[0]??null}var Yi=class{settings;synthesis;Utterance;queue=[];speaking=null;destroyed=!1;grave=!1;voice=null;voicesListed=!1;onVoicesChanged=null;cutoff=null;pendingShout=null;cutOff=null;shoutTimer=null;voicesChanged=()=>{this.listVoices(),this.voice===null&&this.cancel(),this.onVoicesChanged?.()};visibility=()=>{document.hidden&&this.cancel()};constructor(e,t=qi()?window.speechSynthesis:null,n=qi()?window.SpeechSynthesisUtterance:null){this.settings=e,this.synthesis=t,this.Utterance=n,this.listVoices(),t?.addEventListener?.(`voiceschanged`,this.voicesChanged),document.addEventListener(`visibilitychange`,this.visibility)}get supported(){return this.synthesis!==null&&this.Utterance!==null}get hasVoice(){return this.supported&&(this.voice!==null||!this.voicesListed)}speak(e){if(!this.supported||this.destroyed||document.hidden)return;let t=this.settings();!t.announcer||t.volume<=0||(this.voice===null&&this.listVoices(),this.voice!==null&&(this.queue.push(...e),this.queue.length>Gi&&this.queue.splice(0,this.queue.length-Gi),this.speaking===null&&this.pendingShout===null&&this.next()))}shout(e){let t=this.speaking??this.cutOff;if(this.cancel(),t===null){this.grave=!0,this.speak([e]),this.grave=!1;return}let n=()=>{this.pendingShout===n&&(this.clearShout(),t.onend=null,t.onerror=null,this.queue.unshift(e),this.grave=!0,this.next(),this.grave=!1)};this.pendingShout=n,this.cutOff=t,t.onend=n,t.onerror=n,this.shoutTimer=window.setTimeout(n,Ki)}settingsChanged(){let e=this.settings();(!e.announcer||e.volume<=0)&&this.cancel()}finishLine(e){this.queue.length=0,this.clearCutoff();let t=this.speaking;t!==null&&(this.cutoff=window.setTimeout(()=>{this.cutoff=null,this.speaking===t&&this.cancel()},e))}cancel(){this.queue.length=0,this.clearCutoff(),this.clearShout();let e=this.speaking;this.speaking=null,e!==null&&(e.onend=null,e.onerror=null,this.synthesis?.cancel())}destroy(){this.destroyed=!0,this.synthesis?.removeEventListener?.(`voiceschanged`,this.voicesChanged),document.removeEventListener(`visibilitychange`,this.visibility),this.onVoicesChanged=null,this.cancel()}clearCutoff(){this.cutoff!==null&&window.clearTimeout(this.cutoff),this.cutoff=null}clearShout(){this.shoutTimer!==null&&window.clearTimeout(this.shoutTimer),this.shoutTimer=null,this.pendingShout=null,this.cutOff=null}listVoices(){let e=this.synthesis?.getVoices()??[];e.length>0&&(this.voicesListed=!0),this.voice=Ji(e)}next(){let e=this.synthesis,t=this.Utterance,n=this.voice,r=this.queue.shift();if(e===null||t===null||r===void 0)return;let i=this.settings();if(!i.announcer||i.volume<=0||n===null||document.hidden){this.queue.length=0;return}let a=new t(r);a.volume=Math.min(1,i.volume),a.rate=this.grave?.8:.96,a.pitch=this.grave?.3:.82,a.voice=n,a.lang=n.lang;let o=()=>{this.speaking===a&&(this.speaking=null,this.clearCutoff(),this.next())};a.onend=o,a.onerror=o,this.speaking=a,e.speak(a)}},Xi=[{name:`decapitation`,sampleRate:12e3,frames:7920,wav:`UklGRgQ+AABXQVZFZm10IBAAAAABAAEA4C4AAMBdAAACABAAZGF0YeA9AAAGAGAAd/9r/1b/Dv+d/kH+Of69/vL/gAGaAhUD9wKOAmICHwPSBLYGQ/pC+4r72/rQ+Sr5sPle+7X+MQM2BmQHHwfgBSEFpAU+CKkLYA649Q331faL9fnzlfMw9ST5+/5iBV4JDAtaCuYIVgdWB0kKSw/iE2HuFvGL8lnxVO/g7TXt4+6L8wT7agMsCvAN0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P/Ej8TfxW/VP+Hv+a/9L/wv/V/w0AoQBbAWcCQgNxA1gDIgOlAt0BwgCE/3r+yf13/Vf9Uf19/SP+1/5m/7j/3f/l/wQAPwC+AHABEwKEAnICQwL7AXkBygDr/y//qf5t/l7+Xv5n/sf+Mf92/5//qP+j/77/AABnAOAAQAF7AWMBQgEJAacAMwDB/3j/WP9R/1j/Xf+J/8H/3f/g/+H/6f/8/x4ARQBjAG4AYwBSADoAIAAMAAQABwA=`}],Zi=`attached`,Qi=1e3,$i=1001,ea=1002,ta=1003,na=1004,ra=1005,ia=1006,aa=1007,oa=1008,sa=1009,ca=1010,la=1011,ua=1012,da=1013,fa=1014,pa=1015,ma=1016,ha=1017,ga=1018,_a=1020,va=35902,ya=35899,ba=1021,xa=1022,Sa=1023,Ca=1026,wa=1027,Ta=1028,Ea=1029,Da=1030,Oa=1031,ka=1033,Aa=33776,ja=33777,Ma=33778,Na=33779,Pa=35840,Fa=35841,Ia=35842,La=35843,Ra=36196,za=37492,Ba=37496,Va=37488,Ha=37489,Ua=37490,Wa=37491,Ga=37808,Ka=37809,qa=37810,Ja=37811,Ya=37812,Xa=37813,Za=37814,Qa=37815,$a=37816,eo=37817,to=37818,no=37819,ro=37820,io=37821,ao=36492,oo=36494,so=36495,co=36283,lo=36284,uo=36285,fo=36286,po=2300,mo=2301,ho=2302,go=2303,_o=2400,vo=2401,yo=2402,bo=2500,xo=3200,So=`srgb`,Co=`srgb-linear`,wo=`linear`,To=`srgb`,Eo=7680,Do=35044,Oo=35048,ko=2e3;function Ao(e){for(let t=e.length-1;t>=0;--t)if(e[t]>=65535)return!0;return!1}function jo(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Mo(e){return document.createElementNS(`http://www.w3.org/1999/xhtml`,e)}function No(){let e=Mo(`canvas`);return e.style.display=`block`,e}var Po={};function Fo(...e){let t=`THREE.`+e.shift();console.log(t,...e)}function Io(e){let t=e[0];if(typeof t==`string`&&t.startsWith(`TSL:`)){let t=e[1];t&&t.isStackTrace?e[0]+=` `+t.getLocation():e[1]=`Stack trace not available. Enable "THREE.Node.captureStackTrace" to capture stack traces.`}return e}function Lo(...e){e=Io(e);let t=`THREE.`+e.shift();{let n=e[0];n&&n.isStackTrace?console.warn(n.getError(t)):console.warn(t,...e)}}function Ro(...e){e=Io(e);let t=`THREE.`+e.shift();{let n=e[0];n&&n.isStackTrace?console.error(n.getError(t)):console.error(t,...e)}}function zo(...e){let t=e.join(` `);t in Po||(Po[t]=!0,Lo(...e))}function Bo(e,t,n){return new Promise(function(r,i){function a(){switch(e.clientWaitSync(t,e.SYNC_FLUSH_COMMANDS_BIT,0)){case e.WAIT_FAILED:i();break;case e.TIMEOUT_EXPIRED:setTimeout(a,n);break;default:r()}}setTimeout(a,n)})}var Vo={0:1,2:6,4:7,3:5,1:0,6:2,7:4,5:3},Ho=class{addEventListener(e,t){this._listeners===void 0&&(this._listeners={});let n=this._listeners;n[e]===void 0&&(n[e]=[]),n[e].indexOf(t)===-1&&n[e].push(t)}hasEventListener(e,t){let n=this._listeners;return n!==void 0&&n[e]!==void 0&&n[e].indexOf(t)!==-1}removeEventListener(e,t){let n=this._listeners;if(n===void 0)return;let r=n[e];if(r!==void 0){let e=r.indexOf(t);e!==-1&&r.splice(e,1)}}dispatchEvent(e){let t=this._listeners;if(t===void 0)return;let n=t[e.type];if(n!==void 0){e.target=this;let t=n.slice(0);for(let n=0,r=t.length;n>8&255]+Uo[e>>16&255]+Uo[e>>24&255]+`-`+Uo[t&255]+Uo[t>>8&255]+`-`+Uo[t>>16&15|64]+Uo[t>>24&255]+`-`+Uo[n&63|128]+Uo[n>>8&255]+`-`+Uo[n>>16&255]+Uo[n>>24&255]+Uo[r&255]+Uo[r>>8&255]+Uo[r>>16&255]+Uo[r>>24&255]).toLowerCase()}function Jo(e,t,n){return Math.max(t,Math.min(n,e))}function Yo(e,t){return(e%t+t)%t}function Xo(e,t,n,r,i){return r+(e-t)*(i-r)/(n-t)}function Zo(e,t,n){return e===t?0:(n-e)/(t-e)}function Qo(e,t,n){return(1-n)*e+n*t}function $o(e,t,n,r){return Qo(e,t,1-Math.exp(-n*r))}function es(e,t=1){return t-Math.abs(Yo(e,t*2)-t)}function ts(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t),e*e*(3-2*e))}function ns(e,t,n){return e<=t?0:e>=n?1:(e=(e-t)/(n-t),e*e*e*(e*(e*6-15)+10))}function rs(e,t){return e+Math.floor(Math.random()*(t-e+1))}function is(e,t){return e+Math.random()*(t-e)}function as(e){return e*(.5-Math.random())}function os(e){e!==void 0&&(Wo=e);let t=Wo+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}function ss(e){return e*Go}function cs(e){return e*Ko}function ls(e){return e>0&&Number.isInteger(e)&&2**Math.round(Math.log2(e))===e}function us(e){return 2**Math.ceil(Math.log(e)/Math.LN2)}function ds(e){return 2**Math.floor(Math.log(e)/Math.LN2)}function fs(e,t,n,r,i){let a=Math.cos,o=Math.sin,s=a(n/2),c=o(n/2),l=a((t+r)/2),u=o((t+r)/2),d=a((t-r)/2),f=o((t-r)/2),p=a((r-t)/2),m=o((r-t)/2);switch(i){case`XYX`:e.set(s*u,c*d,c*f,s*l);break;case`YZY`:e.set(c*f,s*u,c*d,s*l);break;case`ZXZ`:e.set(c*d,c*f,s*u,s*l);break;case`XZX`:e.set(s*u,c*m,c*p,s*l);break;case`YXY`:e.set(c*p,s*u,c*m,s*l);break;case`ZYZ`:e.set(c*m,c*p,s*u,s*l);break;default:Lo(`MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: `+i)}}function ps(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return e/4294967295;case Uint16Array:return e/65535;case Uint8Array:case Uint8ClampedArray:return e/255;case Int32Array:return Math.max(e/2147483647,-1);case Int16Array:return Math.max(e/32767,-1);case Int8Array:return Math.max(e/127,-1);default:throw Error(`THREE.MathUtils: Invalid component type.`)}}function ms(e,t){switch(t.constructor){case Float32Array:return e;case Uint32Array:return Math.round(e*4294967295);case Uint16Array:return Math.round(e*65535);case Uint8Array:case Uint8ClampedArray:return Math.round(e*255);case Int32Array:return Math.round(e*2147483647);case Int16Array:return Math.round(e*32767);case Int8Array:return Math.round(e*127);default:throw Error(`THREE.MathUtils: Invalid component type.`)}}var R={DEG2RAD:Go,RAD2DEG:Ko,generateUUID:qo,clamp:Jo,euclideanModulo:Yo,mapLinear:Xo,inverseLerp:Zo,lerp:Qo,damp:$o,pingpong:es,smoothstep:ts,smootherstep:ns,randInt:rs,randFloat:is,randFloatSpread:as,seededRandom:os,degToRad:ss,radToDeg:cs,isPowerOfTwo:ls,ceilPowerOfTwo:us,floorPowerOfTwo:ds,setQuaternionFromProperEuler:fs,normalize:ms,denormalize:ps},z=class e{static{e.prototype.isVector2=!0}constructor(e=0,t=0){this.x=e,this.y=t}get width(){return this.x}set width(e){this.x=e}get height(){return this.y}set height(e){this.y=e}set(e,t){return this.x=e,this.y=t,this}setScalar(e){return this.x=e,this.y=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;default:throw Error(`THREE.Vector2: index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;default:throw Error(`THREE.Vector2: index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y)}copy(e){return this.x=e.x,this.y=e.y,this}add(e){return this.x+=e.x,this.y+=e.y,this}addScalar(e){return this.x+=e,this.y+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this}subScalar(e){return this.x-=e,this.y-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this}multiply(e){return this.x*=e.x,this.y*=e.y,this}multiplyScalar(e){return this.x*=e,this.y*=e,this}divide(e){return this.x/=e.x,this.y/=e.y,this}divideScalar(e){return this.multiplyScalar(1/e)}applyMatrix3(e){let t=this.x,n=this.y,r=e.elements;return this.x=r[0]*t+r[3]*n+r[6],this.y=r[1]*t+r[4]*n+r[7],this}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this}clamp(e,t){return this.x=Jo(this.x,e.x,t.x),this.y=Jo(this.y,e.y,t.y),this}clampScalar(e,t){return this.x=Jo(this.x,e,t),this.y=Jo(this.y,e,t),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(Jo(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(e){return this.x*e.x+this.y*e.y}cross(e){return this.x*e.y-this.y*e.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(e){let t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;let n=this.dot(e)/t;return Math.acos(Jo(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){let t=this.x-e.x,n=this.y-e.y;return t*t+n*n}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this}equals(e){return e.x===this.x&&e.y===this.y}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this}rotateAround(e,t){let n=Math.cos(t),r=Math.sin(t),i=this.x-e.x,a=this.y-e.y;return this.x=i*n-a*r+e.x,this.y=i*r+a*n+e.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}},hs=class{constructor(e=0,t=0,n=0,r=1){this.isQuaternion=!0,this._x=e,this._y=t,this._z=n,this._w=r}static slerpFlat(e,t,n,r,i,a,o){let s=n[r+0],c=n[r+1],l=n[r+2],u=n[r+3],d=i[a+0],f=i[a+1],p=i[a+2],m=i[a+3];if(u!==m||s!==d||c!==f||l!==p){let e=s*d+c*f+l*p+u*m;e<0&&(d=-d,f=-f,p=-p,m=-m,e=-e);let t=1-o;if(e<.9995){let n=Math.acos(e),r=Math.sin(n);t=Math.sin(t*n)/r,o=Math.sin(o*n)/r,s=s*t+d*o,c=c*t+f*o,l=l*t+p*o,u=u*t+m*o}else{s=s*t+d*o,c=c*t+f*o,l=l*t+p*o,u=u*t+m*o;let e=1/Math.sqrt(s*s+c*c+l*l+u*u);s*=e,c*=e,l*=e,u*=e}}e[t]=s,e[t+1]=c,e[t+2]=l,e[t+3]=u}static multiplyQuaternionsFlat(e,t,n,r,i,a){let o=n[r],s=n[r+1],c=n[r+2],l=n[r+3],u=i[a],d=i[a+1],f=i[a+2],p=i[a+3];return e[t]=o*p+l*u+s*f-c*d,e[t+1]=s*p+l*d+c*u-o*f,e[t+2]=c*p+l*f+o*d-s*u,e[t+3]=l*p-o*u-s*d-c*f,e}get x(){return this._x}set x(e){this._x=e,this._onChangeCallback()}get y(){return this._y}set y(e){this._y=e,this._onChangeCallback()}get z(){return this._z}set z(e){this._z=e,this._onChangeCallback()}get w(){return this._w}set w(e){this._w=e,this._onChangeCallback()}set(e,t,n,r){return this._x=e,this._y=t,this._z=n,this._w=r,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(e){return this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w,this._onChangeCallback(),this}setFromEuler(e,t=!0){let n=e._x,r=e._y,i=e._z,a=e._order,o=Math.cos,s=Math.sin,c=o(n/2),l=o(r/2),u=o(i/2),d=s(n/2),f=s(r/2),p=s(i/2);switch(a){case`XYZ`:this._x=d*l*u+c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u-d*f*p;break;case`YXZ`:this._x=d*l*u+c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u+d*f*p;break;case`ZXY`:this._x=d*l*u-c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u-d*f*p;break;case`ZYX`:this._x=d*l*u-c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u+d*f*p;break;case`YZX`:this._x=d*l*u+c*f*p,this._y=c*f*u+d*l*p,this._z=c*l*p-d*f*u,this._w=c*l*u-d*f*p;break;case`XZY`:this._x=d*l*u-c*f*p,this._y=c*f*u-d*l*p,this._z=c*l*p+d*f*u,this._w=c*l*u+d*f*p;break;default:Lo(`Quaternion: .setFromEuler() encountered an unknown order: `+a)}return t===!0&&this._onChangeCallback(),this}setFromAxisAngle(e,t){let n=t/2,r=Math.sin(n);return this._x=e.x*r,this._y=e.y*r,this._z=e.z*r,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(e){let t=e.elements,n=t[0],r=t[4],i=t[8],a=t[1],o=t[5],s=t[9],c=t[2],l=t[6],u=t[10],d=n+o+u;if(d>0){let e=.5/Math.sqrt(d+1);this._w=.25/e,this._x=(l-s)*e,this._y=(i-c)*e,this._z=(a-r)*e}else if(n>o&&n>u){let e=2*Math.sqrt(1+n-o-u);this._w=(l-s)/e,this._x=.25*e,this._y=(r+a)/e,this._z=(i+c)/e}else if(o>u){let e=2*Math.sqrt(1+o-n-u);this._w=(i-c)/e,this._x=(r+a)/e,this._y=.25*e,this._z=(s+l)/e}else{let e=2*Math.sqrt(1+u-n-o);this._w=(a-r)/e,this._x=(i+c)/e,this._y=(s+l)/e,this._z=.25*e}return this._onChangeCallback(),this}setFromUnitVectors(e,t){let n=e.dot(t)+1;return n<1e-8?(n=0,Math.abs(e.x)>Math.abs(e.z)?(this._x=-e.y,this._y=e.x,this._z=0,this._w=n):(this._x=0,this._y=-e.z,this._z=e.y,this._w=n)):(this._x=e.y*t.z-e.z*t.y,this._y=e.z*t.x-e.x*t.z,this._z=e.x*t.y-e.y*t.x,this._w=n),this.normalize()}angleTo(e){return 2*Math.acos(Math.abs(Jo(this.dot(e),-1,1)))}rotateTowards(e,t){let n=this.angleTo(e);if(n===0)return this;let r=Math.min(1,t/n);return this.slerp(e,r),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(e){return this._x*e._x+this._y*e._y+this._z*e._z+this._w*e._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let e=this.length();return e===0?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x*=e,this._y*=e,this._z*=e,this._w*=e),this._onChangeCallback(),this}multiply(e){return this.multiplyQuaternions(this,e)}premultiply(e){return this.multiplyQuaternions(e,this)}multiplyQuaternions(e,t){let n=e._x,r=e._y,i=e._z,a=e._w,o=t._x,s=t._y,c=t._z,l=t._w;return this._x=n*l+a*o+r*c-i*s,this._y=r*l+a*s+i*o-n*c,this._z=i*l+a*c+n*s-r*o,this._w=a*l-n*o-r*s-i*c,this._onChangeCallback(),this}slerp(e,t){let n=e._x,r=e._y,i=e._z,a=e._w,o=this.dot(e);o<0&&(n=-n,r=-r,i=-i,a=-a,o=-o);let s=1-t;if(o<.9995){let e=Math.acos(o),c=Math.sin(e);s=Math.sin(s*e)/c,t=Math.sin(t*e)/c,this._x=this._x*s+n*t,this._y=this._y*s+r*t,this._z=this._z*s+i*t,this._w=this._w*s+a*t,this._onChangeCallback()}else this._x=this._x*s+n*t,this._y=this._y*s+r*t,this._z=this._z*s+i*t,this._w=this._w*s+a*t,this.normalize();return this}slerpQuaternions(e,t,n){return this.copy(e).slerp(t,n)}random(){let e=2*Math.PI*Math.random(),t=2*Math.PI*Math.random(),n=Math.random(),r=Math.sqrt(1-n),i=Math.sqrt(n);return this.set(r*Math.sin(e),r*Math.cos(e),i*Math.sin(t),i*Math.cos(t))}equals(e){return e._x===this._x&&e._y===this._y&&e._z===this._z&&e._w===this._w}fromArray(e,t=0){return this._x=e[t],this._y=e[t+1],this._z=e[t+2],this._w=e[t+3],this._onChangeCallback(),this}toArray(e=[],t=0){return e[t]=this._x,e[t+1]=this._y,e[t+2]=this._z,e[t+3]=this._w,e}fromBufferAttribute(e,t){return this._x=e.getX(t),this._y=e.getY(t),this._z=e.getZ(t),this._w=e.getW(t),this._onChangeCallback(),this}toJSON(){return this.toArray()}_onChange(e){return this._onChangeCallback=e,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}},B=class e{static{e.prototype.isVector3=!0}constructor(e=0,t=0,n=0){this.x=e,this.y=t,this.z=n}set(e,t,n){return n===void 0&&(n=this.z),this.x=e,this.y=t,this.z=n,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;default:throw Error(`THREE.Vector3: index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw Error(`THREE.Vector3: index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this}multiplyVectors(e,t){return this.x=e.x*t.x,this.y=e.y*t.y,this.z=e.z*t.z,this}applyEuler(e){return this.applyQuaternion(_s.setFromEuler(e))}applyAxisAngle(e,t){return this.applyQuaternion(_s.setFromAxisAngle(e,t))}applyMatrix3(e){let t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[3]*n+i[6]*r,this.y=i[1]*t+i[4]*n+i[7]*r,this.z=i[2]*t+i[5]*n+i[8]*r,this}applyNormalMatrix(e){return this.applyMatrix3(e).normalize()}applyMatrix4(e){let t=this.x,n=this.y,r=this.z,i=e.elements,a=1/(i[3]*t+i[7]*n+i[11]*r+i[15]);return this.x=(i[0]*t+i[4]*n+i[8]*r+i[12])*a,this.y=(i[1]*t+i[5]*n+i[9]*r+i[13])*a,this.z=(i[2]*t+i[6]*n+i[10]*r+i[14])*a,this}applyQuaternion(e){let t=this.x,n=this.y,r=this.z,i=e.x,a=e.y,o=e.z,s=e.w,c=2*(a*r-o*n),l=2*(o*t-i*r),u=2*(i*n-a*t);return this.x=t+s*c+a*u-o*l,this.y=n+s*l+o*c-i*u,this.z=r+s*u+i*l-a*c,this}project(e){return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix)}unproject(e){return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld)}transformDirection(e){let t=this.x,n=this.y,r=this.z,i=e.elements;return this.x=i[0]*t+i[4]*n+i[8]*r,this.y=i[1]*t+i[5]*n+i[9]*r,this.z=i[2]*t+i[6]*n+i[10]*r,this.normalize()}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this}divideScalar(e){return this.multiplyScalar(1/e)}min(e){return this.x=Math.min(this.x,e.x),this.y=Math.min(this.y,e.y),this.z=Math.min(this.z,e.z),this}max(e){return this.x=Math.max(this.x,e.x),this.y=Math.max(this.y,e.y),this.z=Math.max(this.z,e.z),this}clamp(e,t){return this.x=Jo(this.x,e.x,t.x),this.y=Jo(this.y,e.y,t.y),this.z=Jo(this.z,e.z,t.z),this}clampScalar(e,t){return this.x=Jo(this.x,e,t),this.y=Jo(this.y,e,t),this.z=Jo(this.z,e,t),this}clampLength(e,t){let n=this.length();return this.divideScalar(n||1).multiplyScalar(Jo(n,e,t))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this.z=Math.trunc(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(e){return this.x*e.x+this.y*e.y+this.z*e.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(e){return this.normalize().multiplyScalar(e)}lerp(e,t){return this.x+=(e.x-this.x)*t,this.y+=(e.y-this.y)*t,this.z+=(e.z-this.z)*t,this}lerpVectors(e,t,n){return this.x=e.x+(t.x-e.x)*n,this.y=e.y+(t.y-e.y)*n,this.z=e.z+(t.z-e.z)*n,this}cross(e){return this.crossVectors(this,e)}crossVectors(e,t){let n=e.x,r=e.y,i=e.z,a=t.x,o=t.y,s=t.z;return this.x=r*s-i*o,this.y=i*a-n*s,this.z=n*o-r*a,this}projectOnVector(e){let t=e.lengthSq();if(t===0)return this.set(0,0,0);let n=e.dot(this)/t;return this.copy(e).multiplyScalar(n)}projectOnPlane(e){return gs.copy(this).projectOnVector(e),this.sub(gs)}reflect(e){return this.sub(gs.copy(e).multiplyScalar(2*this.dot(e)))}angleTo(e){let t=Math.sqrt(this.lengthSq()*e.lengthSq());if(t===0)return Math.PI/2;let n=this.dot(e)/t;return Math.acos(Jo(n,-1,1))}distanceTo(e){return Math.sqrt(this.distanceToSquared(e))}distanceToSquared(e){let t=this.x-e.x,n=this.y-e.y,r=this.z-e.z;return t*t+n*n+r*r}manhattanDistanceTo(e){return Math.abs(this.x-e.x)+Math.abs(this.y-e.y)+Math.abs(this.z-e.z)}setFromSpherical(e){return this.setFromSphericalCoords(e.radius,e.phi,e.theta)}setFromSphericalCoords(e,t,n){let r=Math.sin(t)*e;return this.x=r*Math.sin(n),this.y=Math.cos(t)*e,this.z=r*Math.cos(n),this}setFromCylindrical(e){return this.setFromCylindricalCoords(e.radius,e.theta,e.y)}setFromCylindricalCoords(e,t,n){return this.x=e*Math.sin(t),this.y=n,this.z=e*Math.cos(t),this}setFromMatrixPosition(e){let t=e.elements;return this.x=t[12],this.y=t[13],this.z=t[14],this}setFromMatrixScale(e){let t=this.setFromMatrixColumn(e,0).length(),n=this.setFromMatrixColumn(e,1).length(),r=this.setFromMatrixColumn(e,2).length();return this.x=t,this.y=n,this.z=r,this}setFromMatrixColumn(e,t){return this.fromArray(e.elements,t*4)}setFromMatrix3Column(e,t){return this.fromArray(e.elements,t*3)}setFromEuler(e){return this.x=e._x,this.y=e._y,this.z=e._z,this}setFromColor(e){return this.x=e.r,this.y=e.g,this.z=e.b,this}equals(e){return e.x===this.x&&e.y===this.y&&e.z===this.z}fromArray(e,t=0){return this.x=e[t],this.y=e[t+1],this.z=e[t+2],this}toArray(e=[],t=0){return e[t]=this.x,e[t+1]=this.y,e[t+2]=this.z,e}fromBufferAttribute(e,t){return this.x=e.getX(t),this.y=e.getY(t),this.z=e.getZ(t),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){let e=Math.random()*Math.PI*2,t=Math.random()*2-1,n=Math.sqrt(1-t*t);return this.x=n*Math.cos(e),this.y=t,this.z=n*Math.sin(e),this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}},gs=new B,_s=new hs,vs=class e{static{e.prototype.isMatrix3=!0}constructor(e,t,n,r,i,a,o,s,c){this.elements=[1,0,0,0,1,0,0,0,1],e!==void 0&&this.set(e,t,n,r,i,a,o,s,c)}set(e,t,n,r,i,a,o,s,c){let l=this.elements;return l[0]=e,l[1]=r,l[2]=o,l[3]=t,l[4]=i,l[5]=s,l[6]=n,l[7]=a,l[8]=c,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(e){let t=this.elements,n=e.elements;return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],this}extractBasis(e,t,n){return e.setFromMatrix3Column(this,0),t.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(e){let t=e.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this}multiply(e){return this.multiplyMatrices(this,e)}premultiply(e){return this.multiplyMatrices(e,this)}multiplyMatrices(e,t){let n=e.elements,r=t.elements,i=this.elements,a=n[0],o=n[3],s=n[6],c=n[1],l=n[4],u=n[7],d=n[2],f=n[5],p=n[8],m=r[0],h=r[3],g=r[6],_=r[1],v=r[4],y=r[7],b=r[2],x=r[5],S=r[8];return i[0]=a*m+o*_+s*b,i[3]=a*h+o*v+s*x,i[6]=a*g+o*y+s*S,i[1]=c*m+l*_+u*b,i[4]=c*h+l*v+u*x,i[7]=c*g+l*y+u*S,i[2]=d*m+f*_+p*b,i[5]=d*h+f*v+p*x,i[8]=d*g+f*y+p*S,this}multiplyScalar(e){let t=this.elements;return t[0]*=e,t[3]*=e,t[6]*=e,t[1]*=e,t[4]*=e,t[7]*=e,t[2]*=e,t[5]*=e,t[8]*=e,this}determinant(){let e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8];return t*a*l-t*o*c-n*i*l+n*o*s+r*i*c-r*a*s}invert(){let e=this.elements,t=e[0],n=e[1],r=e[2],i=e[3],a=e[4],o=e[5],s=e[6],c=e[7],l=e[8],u=l*a-o*c,d=o*s-l*i,f=c*i-a*s,p=t*u+n*d+r*f;if(p===0)return this.set(0,0,0,0,0,0,0,0,0);let m=1/p;return e[0]=u*m,e[1]=(r*c-l*n)*m,e[2]=(o*n-r*a)*m,e[3]=d*m,e[4]=(l*t-r*s)*m,e[5]=(r*i-o*t)*m,e[6]=f*m,e[7]=(n*s-c*t)*m,e[8]=(a*t-n*i)*m,this}transpose(){let e,t=this.elements;return e=t[1],t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this}getNormalMatrix(e){return this.setFromMatrix4(e).invert().transpose()}transposeIntoArray(e){let t=this.elements;return e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8],this}setUvTransform(e,t,n,r,i,a,o){let s=Math.cos(i),c=Math.sin(i);return this.set(n*s,n*c,-n*(s*a+c*o)+a+e,-r*c,r*s,-r*(-c*a+s*o)+o+t,0,0,1),this}scale(e,t){return zo(`Matrix3: .scale() is deprecated. Use .makeScale() instead.`),this.premultiply(ys.makeScale(e,t)),this}rotate(e){return zo(`Matrix3: .rotate() is deprecated. Use .makeRotation() instead.`),this.premultiply(ys.makeRotation(-e)),this}translate(e,t){return zo(`Matrix3: .translate() is deprecated. Use .makeTranslation() instead.`),this.premultiply(ys.makeTranslation(e,t)),this}makeTranslation(e,t){return e.isVector2?this.set(1,0,e.x,0,1,e.y,0,0,1):this.set(1,0,e,0,1,t,0,0,1),this}makeRotation(e){let t=Math.cos(e),n=Math.sin(e);return this.set(t,-n,0,n,t,0,0,0,1),this}makeScale(e,t){return this.set(e,0,0,0,t,0,0,0,1),this}equals(e){let t=this.elements,n=e.elements;for(let e=0;e<9;e++)if(t[e]!==n[e])return!1;return!0}fromArray(e,t=0){for(let n=0;n<9;n++)this.elements[n]=e[n+t];return this}toArray(e=[],t=0){let n=this.elements;return e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=n[3],e[t+4]=n[4],e[t+5]=n[5],e[t+6]=n[6],e[t+7]=n[7],e[t+8]=n[8],e}clone(){return new this.constructor().fromArray(this.elements)}},ys=new vs,bs=new vs().set(.4123908,.3575843,.1804808,.212639,.7151687,.0721923,.0193308,.1191948,.9505322),xs=new vs().set(3.2409699,-1.5373832,-.4986108,-.9692436,1.8759675,.0415551,.0556301,-.203977,1.0569715);function Ss(){let e={enabled:!0,workingColorSpace:Co,spaces:{},convert:function(e,t,n){return this.enabled===!1||t===n||!t||!n||(this.spaces[t].transfer===`srgb`&&(e.r=ws(e.r),e.g=ws(e.g),e.b=ws(e.b)),this.spaces[t].primaries!==this.spaces[n].primaries&&(e.applyMatrix3(this.spaces[t].toXYZ),e.applyMatrix3(this.spaces[n].fromXYZ)),this.spaces[n].transfer===`srgb`&&(e.r=Ts(e.r),e.g=Ts(e.g),e.b=Ts(e.b))),e},workingToColorSpace:function(e,t){return this.convert(e,this.workingColorSpace,t)},colorSpaceToWorking:function(e,t){return this.convert(e,t,this.workingColorSpace)},getPrimaries:function(e){return this.spaces[e].primaries},getTransfer:function(e){return e===``?wo:this.spaces[e].transfer},getToneMappingMode:function(e){return this.spaces[e].outputColorSpaceConfig.toneMappingMode||`standard`},getLuminanceCoefficients:function(e,t=this.workingColorSpace){return e.fromArray(this.spaces[t].luminanceCoefficients)},define:function(e){Object.assign(this.spaces,e)},_getMatrix:function(e,t,n){return e.copy(this.spaces[t].toXYZ).multiply(this.spaces[n].fromXYZ)},_getDrawingBufferColorSpace:function(e){return this.spaces[e].outputColorSpaceConfig.drawingBufferColorSpace},_getUnpackColorSpace:function(e=this.workingColorSpace){return this.spaces[e].workingColorSpaceConfig.unpackColorSpace},fromWorkingColorSpace:function(t,n){return zo(`ColorManagement: .fromWorkingColorSpace() has been renamed to .workingToColorSpace().`),e.workingToColorSpace(t,n)},toWorkingColorSpace:function(t,n){return zo(`ColorManagement: .toWorkingColorSpace() has been renamed to .colorSpaceToWorking().`),e.colorSpaceToWorking(t,n)}},t=[.64,.33,.3,.6,.15,.06],n=[.2126,.7152,.0722],r=[.3127,.329];return e.define({[Co]:{primaries:t,whitePoint:r,transfer:wo,toXYZ:bs,fromXYZ:xs,luminanceCoefficients:n,workingColorSpaceConfig:{unpackColorSpace:So},outputColorSpaceConfig:{drawingBufferColorSpace:So}},[So]:{primaries:t,whitePoint:r,transfer:To,toXYZ:bs,fromXYZ:xs,luminanceCoefficients:n,outputColorSpaceConfig:{drawingBufferColorSpace:So}}}),e}var Cs=Ss();function ws(e){return e<.04045?e*.0773993808:(e*.9478672986+.0521327014)**2.4}function Ts(e){return e<.0031308?e*12.92:1.055*e**.41666-.055}var Es,Ds=class{static getDataURL(e,t=`image/png`){if(/^data:/i.test(e.src)||typeof HTMLCanvasElement>`u`)return e.src;let n;if(e instanceof HTMLCanvasElement)n=e;else{Es===void 0&&(Es=Mo(`canvas`)),Es.width=e.width,Es.height=e.height;let t=Es.getContext(`2d`);e instanceof ImageData?t.putImageData(e,0,0):t.drawImage(e,0,0,e.width,e.height),n=Es}return n.toDataURL(t)}static sRGBToLinear(e){if(typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement||typeof ImageBitmap<`u`&&e instanceof ImageBitmap){let t=Mo(`canvas`);t.width=e.width,t.height=e.height;let n=t.getContext(`2d`);n.drawImage(e,0,0,e.width,e.height);let r=n.getImageData(0,0,e.width,e.height),i=r.data;for(let e=0;e1),this.pmremVersion=0,this.normalized=!1}get width(){return this.source.getSize(Ms).x}get height(){return this.source.getSize(Ms).y}get depth(){return this.source.getSize(Ms).z}get image(){return this.source.data}set image(e){this.source.data=e}updateMatrix(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}clone(){return new this.constructor().copy(this)}copy(e){return this.name=e.name,this.source=e.source,this.mipmaps=e.mipmaps.slice(0),this.mapping=e.mapping,this.channel=e.channel,this.wrapS=e.wrapS,this.wrapT=e.wrapT,this.magFilter=e.magFilter,this.minFilter=e.minFilter,this.anisotropy=e.anisotropy,this.format=e.format,this.internalFormat=e.internalFormat,this.type=e.type,this.normalized=e.normalized,this.offset.copy(e.offset),this.repeat.copy(e.repeat),this.center.copy(e.center),this.rotation=e.rotation,this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrix.copy(e.matrix),this.generateMipmaps=e.generateMipmaps,this.premultiplyAlpha=e.premultiplyAlpha,this.flipY=e.flipY,this.unpackAlignment=e.unpackAlignment,this.colorSpace=e.colorSpace,this.renderTarget=e.renderTarget,this.isRenderTargetTexture=e.isRenderTargetTexture,this.isArrayTexture=e.isArrayTexture,this.userData=JSON.parse(JSON.stringify(e.userData)),this.needsUpdate=!0,this}setValues(e){for(let t in e){let n=e[t];if(n===void 0){Lo(`Texture.setValues(): parameter '${t}' has value of undefined.`);continue}let r=this[t];r===void 0?Lo(`Texture.setValues(): property '${t}' does not exist.`):r&&n&&r.isVector2&&n.isVector2||r&&n&&r.isVector3&&n.isVector3||r&&n&&r.isMatrix3&&n.isMatrix3?r.copy(n):this[t]=n}}toJSON(e){let t=e===void 0||typeof e==`string`;if(!t&&e.textures[this.uuid]!==void 0)return e.textures[this.uuid];let n={metadata:{version:4.7,type:`Texture`,generator:`Texture.toJSON`},uuid:this.uuid,name:this.name,image:this.source.toJSON(e).uuid,mapping:this.mapping,channel:this.channel,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,internalFormat:this.internalFormat,type:this.type,normalized:this.normalized,colorSpace:this.colorSpace,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,generateMipmaps:this.generateMipmaps,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};return Object.keys(this.userData).length>0&&(n.userData=this.userData),t||(e.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:`dispose`})}transformUv(e){if(this.mapping!==300)return e;if(e.applyMatrix3(this.matrix),e.x<0||e.x>1)switch(this.wrapS){case Qi:e.x-=Math.floor(e.x);break;case $i:e.x=e.x<0?0:1;break;case ea:Math.abs(Math.floor(e.x)%2)===1?e.x=Math.ceil(e.x)-e.x:e.x-=Math.floor(e.x)}if(e.y<0||e.y>1)switch(this.wrapT){case Qi:e.y-=Math.floor(e.y);break;case $i:e.y=e.y<0?0:1;break;case ea:Math.abs(Math.floor(e.y)%2)===1?e.y=Math.ceil(e.y)-e.y:e.y-=Math.floor(e.y)}return this.flipY&&(e.y=1-e.y),e}set needsUpdate(e){e===!0&&(this.version++,this.source.needsUpdate=!0)}set needsPMREMUpdate(e){e===!0&&this.pmremVersion++}};Ns.DEFAULT_IMAGE=null,Ns.DEFAULT_MAPPING=300,Ns.DEFAULT_ANISOTROPY=1;var Ps=class e{static{e.prototype.isVector4=!0}constructor(e=0,t=0,n=0,r=1){this.x=e,this.y=t,this.z=n,this.w=r}get width(){return this.z}set width(e){this.z=e}get height(){return this.w}set height(e){this.w=e}set(e,t,n,r){return this.x=e,this.y=t,this.z=n,this.w=r,this}setScalar(e){return this.x=e,this.y=e,this.z=e,this.w=e,this}setX(e){return this.x=e,this}setY(e){return this.y=e,this}setZ(e){return this.z=e,this}setW(e){return this.w=e,this}setComponent(e,t){switch(e){case 0:this.x=t;break;case 1:this.y=t;break;case 2:this.z=t;break;case 3:this.w=t;break;default:throw Error(`THREE.Vector4: index is out of range: `+e)}return this}getComponent(e){switch(e){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw Error(`THREE.Vector4: index is out of range: `+e)}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(e){return this.x=e.x,this.y=e.y,this.z=e.z,this.w=e.w===void 0?1:e.w,this}add(e){return this.x+=e.x,this.y+=e.y,this.z+=e.z,this.w+=e.w,this}addScalar(e){return this.x+=e,this.y+=e,this.z+=e,this.w+=e,this}addVectors(e,t){return this.x=e.x+t.x,this.y=e.y+t.y,this.z=e.z+t.z,this.w=e.w+t.w,this}addScaledVector(e,t){return this.x+=e.x*t,this.y+=e.y*t,this.z+=e.z*t,this.w+=e.w*t,this}sub(e){return this.x-=e.x,this.y-=e.y,this.z-=e.z,this.w-=e.w,this}subScalar(e){return this.x-=e,this.y-=e,this.z-=e,this.w-=e,this}subVectors(e,t){return this.x=e.x-t.x,this.y=e.y-t.y,this.z=e.z-t.z,this.w=e.w-t.w,this}multiply(e){return this.x*=e.x,this.y*=e.y,this.z*=e.z,this.w*=e.w,this}multiplyScalar(e){return this.x*=e,this.y*=e,this.z*=e,this.w*=e,this}applyMatrix4(e){let t=this.x,n=this.y,r=this.z,i=this.w,a=e.elements;return this.x=a[0]*t+a[4]*n+a[8]*r+a[12]*i,this.y=a[1]*t+a[5]*n+a[9]*r+a[13]*i,this.z=a[2]*t+a[6]*n+a[10]*r+a[14]*i,this.w=a[3]*t+a[7]*n+a[11]*r+a[15]*i,this}divide(e){return this.x/=e.x,this.y/=e.y,this.z/=e.z,this.w/=e.w,this}divideScalar(e){return this.multiplyScalar(1/e)}setAxisAngleFromQuaternion(e){this.w=2*Math.acos(e.w);let t=Math.sqrt(1-e.w*e.w);return t<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=e.x/t,this.y=e.y/t,this.z=e.z/t),this}setAxisAngleFromRotationMatrix(e){let t,n,r,i,a=.01,o=.1,s=e.elements,c=s[0],l=s[4],u=s[8],d=s[1],f=s[5],p=s[9],m=s[2],h=s[6],g=s[10];if(Math.abs(l-d)s&&e>_?e_?s1);this.dispose()}this.viewport.set(0,0,e,t),this.scissor.set(0,0,e,t)}clone(){return new this.constructor().copy(this)}copy(e){this.width=e.width,this.height=e.height,this.depth=e.depth,this.scissor.copy(e.scissor),this.scissorTest=e.scissorTest,this.viewport.copy(e.viewport),this.textures.length=0;for(let t=0,n=e.textures.length;t>>0}enable(e){this.mask|=1<1){for(let e=0;e1){for(let e=0;e0&&(r.userData=this.userData),r.layers=this.layers.mask,r.matrix=this.matrix.toArray(),r.up=this.up.toArray(),this.pivot!==null&&(r.pivot=this.pivot.toArray()),this.morphTargetDictionary!==void 0&&(r.morphTargetDictionary=Object.assign({},this.morphTargetDictionary)),this.morphTargetInfluences!==void 0&&(r.morphTargetInfluences=this.morphTargetInfluences.slice()),this.isInstancedMesh&&(r.type=`InstancedMesh`,r.count=this.count,r.instanceMatrix=this.instanceMatrix.toJSON(),this.instanceColor!==null&&(r.instanceColor=this.instanceColor.toJSON())),this.isBatchedMesh&&(r.type=`BatchedMesh`,r.perObjectFrustumCulled=this.perObjectFrustumCulled,r.sortObjects=this.sortObjects,r.drawRanges=this._drawRanges,r.reservedRanges=this._reservedRanges,r.geometryInfo=this._geometryInfo.map(e=>({...e,boundingBox:e.boundingBox?e.boundingBox.toJSON():void 0,boundingSphere:e.boundingSphere?e.boundingSphere.toJSON():void 0})),r.instanceInfo=this._instanceInfo.map(e=>({...e})),r.availableInstanceIds=this._availableInstanceIds.slice(),r.availableGeometryIds=this._availableGeometryIds.slice(),r.nextIndexStart=this._nextIndexStart,r.nextVertexStart=this._nextVertexStart,r.geometryCount=this._geometryCount,r.maxInstanceCount=this._maxInstanceCount,r.maxVertexCount=this._maxVertexCount,r.maxIndexCount=this._maxIndexCount,r.geometryInitialized=this._geometryInitialized,r.matricesTexture=this._matricesTexture.toJSON(e),r.indirectTexture=this._indirectTexture.toJSON(e),this._colorsTexture!==null&&(r.colorsTexture=this._colorsTexture.toJSON(e)),this.boundingSphere!==null&&(r.boundingSphere=this.boundingSphere.toJSON()),this.boundingBox!==null&&(r.boundingBox=this.boundingBox.toJSON()));function i(t,n){return t[n.uuid]===void 0&&(t[n.uuid]=n.toJSON(e)),n.uuid}if(this.isScene)this.background&&(this.background.isColor?r.background=this.background.toJSON():this.background.isTexture&&(r.background=this.background.toJSON(e).uuid)),this.environment&&this.environment.isTexture&&this.environment.isRenderTargetTexture!==!0&&(r.environment=this.environment.toJSON(e).uuid);else if(this.isMesh||this.isLine||this.isPoints){r.geometry=i(e.geometries,this.geometry);let t=this.geometry.parameters;if(t!==void 0&&t.shapes!==void 0){let n=t.shapes;if(Array.isArray(n))for(let t=0,r=n.length;t0){r.children=[];for(let t=0;t0){r.animations=[];for(let t=0;t0&&(n.geometries=t),r.length>0&&(n.materials=r),i.length>0&&(n.textures=i),o.length>0&&(n.images=o),s.length>0&&(n.shapes=s),c.length>0&&(n.skeletons=c),l.length>0&&(n.animations=l),u.length>0&&(n.nodes=u)}return n.object=r,n;function a(e){let t=[];for(let n in e){let r=e[n];delete r.metadata,t.push(r)}return t}}clone(e){return new this.constructor().copy(this,e)}copy(e,t=!0){if(this.name=e.name,this.up.copy(e.up),this.position.copy(e.position),this.rotation.order=e.rotation.order,this.quaternion.copy(e.quaternion),this.scale.copy(e.scale),this.pivot=e.pivot===null?null:e.pivot.clone(),this.matrix.copy(e.matrix),this.matrixWorld.copy(e.matrixWorld),this.matrixAutoUpdate=e.matrixAutoUpdate,this.matrixWorldAutoUpdate=e.matrixWorldAutoUpdate,this.matrixWorldNeedsUpdate=e.matrixWorldNeedsUpdate,this.layers.mask=e.layers.mask,this.visible=e.visible,this.castShadow=e.castShadow,this.receiveShadow=e.receiveShadow,this.frustumCulled=e.frustumCulled,this.renderOrder=e.renderOrder,this.static=e.static,this.animations=e.animations.slice(),this.userData=JSON.parse(JSON.stringify(e.userData)),t===!0)for(let t=0;t.025?(c.inputState.pinching=!1,this.dispatchEvent({type:`pinchend`,handedness:e.handedness,target:this})):!c.inputState.pinching&&o<=.015&&(c.inputState.pinching=!0,this.dispatchEvent({type:`pinchstart`,handedness:e.handedness,target:this}))}else s!==null&&e.gripSpace&&(i=t.getPose(e.gripSpace,n),i!==null&&(s.matrix.fromArray(i.transform.matrix),s.matrix.decompose(s.position,s.rotation,s.scale),s.matrixWorldNeedsUpdate=!0,i.linearVelocity?(s.hasLinearVelocity=!0,s.linearVelocity.copy(i.linearVelocity)):s.hasLinearVelocity=!1,i.angularVelocity?(s.hasAngularVelocity=!0,s.angularVelocity.copy(i.angularVelocity)):s.hasAngularVelocity=!1,s.eventsEnabled&&s.dispatchEvent({type:`gripUpdated`,data:e,target:this})));o!==null&&(r=t.getPose(e.targetRaySpace,n),r===null&&i!==null&&(r=i),r!==null&&(o.matrix.fromArray(r.transform.matrix),o.matrix.decompose(o.position,o.rotation,o.scale),o.matrixWorldNeedsUpdate=!0,r.linearVelocity?(o.hasLinearVelocity=!0,o.linearVelocity.copy(r.linearVelocity)):o.hasLinearVelocity=!1,r.angularVelocity?(o.hasAngularVelocity=!0,o.angularVelocity.copy(r.angularVelocity)):o.hasAngularVelocity=!1,this.dispatchEvent(mc)))}return o!==null&&(o.visible=r!==null),s!==null&&(s.visible=i!==null),c!==null&&(c.visible=a!==null),this}_getHandJoint(e,t){if(e.joints[t.jointName]===void 0){let n=new pc;n.matrixAutoUpdate=!1,n.visible=!1,e.joints[t.jointName]=n,e.add(n)}return e.joints[t.jointName]}},gc={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},_c={h:0,s:0,l:0},vc={h:0,s:0,l:0};function yc(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*6*(2/3-n):e}var V=class{constructor(e,t,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,this.set(e,t,n)}set(e,t,n){if(t===void 0&&n===void 0){let t=e;t&&t.isColor?this.copy(t):typeof t==`number`?this.setHex(t):typeof t==`string`&&this.setStyle(t)}else this.setRGB(e,t,n);return this}setScalar(e){return this.r=e,this.g=e,this.b=e,this}setHex(e,t=So){return e=Math.floor(e),this.r=(e>>16&255)/255,this.g=(e>>8&255)/255,this.b=(e&255)/255,Cs.colorSpaceToWorking(this,t),this}setRGB(e,t,n,r=Cs.workingColorSpace){return this.r=e,this.g=t,this.b=n,Cs.colorSpaceToWorking(this,r),this}setHSL(e,t,n,r=Cs.workingColorSpace){if(e=Yo(e,1),t=Jo(t,0,1),n=Jo(n,0,1),t===0)this.r=this.g=this.b=n;else{let r=n<=.5?n*(1+t):n+t-n*t,i=2*n-r;this.r=yc(i,r,e+1/3),this.g=yc(i,r,e),this.b=yc(i,r,e-1/3)}return Cs.colorSpaceToWorking(this,r),this}setStyle(e,t=So){function n(t){t!==void 0&&parseFloat(t)<1&&Lo(`Color: Alpha component of `+e+` will be ignored.`)}let r;if(r=/^(\w+)\(([^\)]*)\)/.exec(e)){let i,a=r[1],o=r[2];switch(a){case`rgb`:case`rgba`:if(i=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setRGB(Math.min(255,parseInt(i[1],10))/255,Math.min(255,parseInt(i[2],10))/255,Math.min(255,parseInt(i[3],10))/255,t);if(i=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setRGB(Math.min(100,parseInt(i[1],10))/100,Math.min(100,parseInt(i[2],10))/100,Math.min(100,parseInt(i[3],10))/100,t);break;case`hsl`:case`hsla`:if(i=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(o))return n(i[4]),this.setHSL(parseFloat(i[1])/360,parseFloat(i[2])/100,parseFloat(i[3])/100,t);break;default:Lo(`Color: Unknown color model `+e)}}else if(r=/^\#([A-Fa-f\d]+)$/.exec(e)){let n=r[1],i=n.length;if(i===3)return this.setRGB(parseInt(n.charAt(0),16)/15,parseInt(n.charAt(1),16)/15,parseInt(n.charAt(2),16)/15,t);if(i===6)return this.setHex(parseInt(n,16),t);Lo(`Color: Invalid hex color `+e)}else if(e&&e.length>0)return this.setColorName(e,t);return this}setColorName(e,t=So){let n=gc[e.toLowerCase()];return n===void 0?Lo(`Color: Unknown color `+e):this.setHex(n,t),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(e){return this.r=e.r,this.g=e.g,this.b=e.b,this}copySRGBToLinear(e){return this.r=ws(e.r),this.g=ws(e.g),this.b=ws(e.b),this}copyLinearToSRGB(e){return this.r=Ts(e.r),this.g=Ts(e.g),this.b=Ts(e.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(e=So){return Cs.workingToColorSpace(bc.copy(this),e),Math.round(Jo(bc.r*255,0,255))*65536+Math.round(Jo(bc.g*255,0,255))*256+Math.round(Jo(bc.b*255,0,255))}getHexString(e=So){return(`000000`+this.getHex(e).toString(16)).slice(-6)}getHSL(e,t=Cs.workingColorSpace){Cs.workingToColorSpace(bc.copy(this),t);let n=bc.r,r=bc.g,i=bc.b,a=Math.max(n,r,i),o=Math.min(n,r,i),s,c,l=(o+a)/2;if(o===a)s=0,c=0;else{let e=a-o;switch(c=l<=.5?e/(a+o):e/(2-a-o),a){case n:s=(r-i)/e+(r0?r.multiplyScalar(1/Math.sqrt(i)):r.set(0,0,0)}static getBarycoord(e,t,n,r,i){Cc.subVectors(r,t),wc.subVectors(n,t),Tc.subVectors(e,t);let a=Cc.dot(Cc),o=Cc.dot(wc),s=Cc.dot(Tc),c=wc.dot(wc),l=wc.dot(Tc),u=a*c-o*o;if(u===0)return i.set(0,0,0),null;let d=1/u,f=(c*s-o*l)*d,p=(a*l-o*s)*d;return i.set(1-f-p,p,f)}static containsPoint(e,t,n,r){return this.getBarycoord(e,t,n,r,Ec)!==null&&Ec.x>=0&&Ec.y>=0&&Ec.x+Ec.y<=1}static getInterpolation(e,t,n,r,i,a,o,s){return this.getBarycoord(e,t,n,r,Ec)===null?(s.x=0,s.y=0,`z`in s&&(s.z=0),`w`in s&&(s.w=0),null):(s.setScalar(0),s.addScaledVector(i,Ec.x),s.addScaledVector(a,Ec.y),s.addScaledVector(o,Ec.z),s)}static getInterpolatedAttribute(e,t,n,r,i,a){return Nc.setScalar(0),Pc.setScalar(0),Fc.setScalar(0),Nc.fromBufferAttribute(e,t),Pc.fromBufferAttribute(e,n),Fc.fromBufferAttribute(e,r),a.setScalar(0),a.addScaledVector(Nc,i.x),a.addScaledVector(Pc,i.y),a.addScaledVector(Fc,i.z),a}static isFrontFacing(e,t,n,r){return Cc.subVectors(n,t),wc.subVectors(e,t),Cc.cross(wc).dot(r)<0}set(e,t,n){return this.a.copy(e),this.b.copy(t),this.c.copy(n),this}setFromPointsAndIndices(e,t,n,r){return this.a.copy(e[t]),this.b.copy(e[n]),this.c.copy(e[r]),this}setFromAttributeAndIndices(e,t,n,r){return this.a.fromBufferAttribute(e,t),this.b.fromBufferAttribute(e,n),this.c.fromBufferAttribute(e,r),this}clone(){return new this.constructor().copy(this)}copy(e){return this.a.copy(e.a),this.b.copy(e.b),this.c.copy(e.c),this}getArea(){return Cc.subVectors(this.c,this.b),wc.subVectors(this.a,this.b),Cc.cross(wc).length()*.5}getMidpoint(e){return e.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(t){return e.getNormal(this.a,this.b,this.c,t)}getPlane(e){return e.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(t,n){return e.getBarycoord(t,this.a,this.b,this.c,n)}getInterpolation(t,n,r,i,a){return e.getInterpolation(t,this.a,this.b,this.c,n,r,i,a)}containsPoint(t){return e.containsPoint(t,this.a,this.b,this.c)}isFrontFacing(t){return e.isFrontFacing(this.a,this.b,this.c,t)}intersectsBox(e){return e.intersectsTriangle(this)}closestPointToPoint(e,t){let n=this.a,r=this.b,i=this.c,a,o;Dc.subVectors(r,n),Oc.subVectors(i,n),Ac.subVectors(e,n);let s=Dc.dot(Ac),c=Oc.dot(Ac);if(s<=0&&c<=0)return t.copy(n);jc.subVectors(e,r);let l=Dc.dot(jc),u=Oc.dot(jc);if(l>=0&&u<=l)return t.copy(r);let d=s*u-l*c;if(d<=0&&s>=0&&l<=0)return a=s/(s-l),t.copy(n).addScaledVector(Dc,a);Mc.subVectors(e,i);let f=Dc.dot(Mc),p=Oc.dot(Mc);if(p>=0&&f<=p)return t.copy(i);let m=f*c-s*p;if(m<=0&&c>=0&&p<=0)return o=c/(c-p),t.copy(n).addScaledVector(Oc,o);let h=l*p-f*u;if(h<=0&&u-l>=0&&f-p>=0)return kc.subVectors(i,r),o=(u-l)/(u-l+(f-p)),t.copy(r).addScaledVector(kc,o);let g=1/(h+m+d);return a=m*g,o=d*g,t.copy(n).addScaledVector(Dc,a).addScaledVector(Oc,o)}equals(e){return e.a.equals(this.a)&&e.b.equals(this.b)&&e.c.equals(this.c)}},Lc=class{constructor(e=new B(1/0,1/0,1/0),t=new B(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=e,this.max=t}set(e,t){return this.min.copy(e),this.max.copy(t),this}setFromArray(e){this.makeEmpty();for(let t=0,n=e.length;t=this.min.x&&e.x<=this.max.x&&e.y>=this.min.y&&e.y<=this.max.y&&e.z>=this.min.z&&e.z<=this.max.z}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y&&this.min.z<=e.min.z&&e.max.z<=this.max.z}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y),(e.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(e){return e.max.x>=this.min.x&&e.min.x<=this.max.x&&e.max.y>=this.min.y&&e.min.y<=this.max.y&&e.max.z>=this.min.z&&e.min.z<=this.max.z}intersectsSphere(e){return this.clampPoint(e.center,zc),zc.distanceToSquared(e.center)<=e.radius*e.radius}intersectsPlane(e){let t,n;return e.normal.x>0?(t=e.normal.x*this.min.x,n=e.normal.x*this.max.x):(t=e.normal.x*this.max.x,n=e.normal.x*this.min.x),e.normal.y>0?(t+=e.normal.y*this.min.y,n+=e.normal.y*this.max.y):(t+=e.normal.y*this.max.y,n+=e.normal.y*this.min.y),e.normal.z>0?(t+=e.normal.z*this.min.z,n+=e.normal.z*this.max.z):(t+=e.normal.z*this.max.z,n+=e.normal.z*this.min.z),t<=-e.constant&&n>=-e.constant}intersectsTriangle(e){if(this.isEmpty())return!1;this.getCenter(qc),Jc.subVectors(this.max,qc),Vc.subVectors(e.a,qc),Hc.subVectors(e.b,qc),Uc.subVectors(e.c,qc),Wc.subVectors(Hc,Vc),Gc.subVectors(Uc,Hc),Kc.subVectors(Vc,Uc);let t=[0,-Wc.z,Wc.y,0,-Gc.z,Gc.y,0,-Kc.z,Kc.y,Wc.z,0,-Wc.x,Gc.z,0,-Gc.x,Kc.z,0,-Kc.x,-Wc.y,Wc.x,0,-Gc.y,Gc.x,0,-Kc.y,Kc.x,0];return!Zc(t,Vc,Hc,Uc,Jc)||(t=[1,0,0,0,1,0,0,0,1],!Zc(t,Vc,Hc,Uc,Jc))?!1:(Yc.crossVectors(Wc,Gc),t=[Yc.x,Yc.y,Yc.z],Zc(t,Vc,Hc,Uc,Jc))}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,zc).distanceTo(e)}getBoundingSphere(e){return this.isEmpty()?e.makeEmpty():(this.getCenter(e.center),e.radius=this.getSize(zc).length()*.5),e}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}applyMatrix4(e){return this.isEmpty()||(Rc[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(e),Rc[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(e),Rc[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(e),Rc[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(e),Rc[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(e),Rc[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(e),Rc[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(e),Rc[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(e),this.setFromPoints(Rc)),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}toJSON(){return{min:this.min.toArray(),max:this.max.toArray()}}fromJSON(e){return this.min.fromArray(e.min),this.max.fromArray(e.max),this}},Rc=[new B,new B,new B,new B,new B,new B,new B,new B],zc=new B,Bc=new Lc,Vc=new B,Hc=new B,Uc=new B,Wc=new B,Gc=new B,Kc=new B,qc=new B,Jc=new B,Yc=new B,Xc=new B;function Zc(e,t,n,r,i){for(let a=0,o=e.length-3;a<=o;a+=3){Xc.fromArray(e,a);let o=i.x*Math.abs(Xc.x)+i.y*Math.abs(Xc.y)+i.z*Math.abs(Xc.z),s=t.dot(Xc),c=n.dot(Xc),l=r.dot(Xc);if(Math.max(-Math.max(s,c,l),Math.min(s,c,l))>o)return!1}return!0}var Qc=new B,$c=new z,el=0,tl=class extends Ho{constructor(e,t,n=!1){if(super(),Array.isArray(e))throw TypeError(`THREE.BufferAttribute: array should be a Typed Array.`);this.isBufferAttribute=!0,Object.defineProperty(this,"id",{value:el++}),this.name=``,this.array=e,this.itemSize=t,this.count=e===void 0?0:e.length/t,this.normalized=n,this.usage=Do,this.updateRanges=[],this.gpuType=pa,this.version=0}onUploadCallback(){}set needsUpdate(e){e===!0&&this.version++}setUsage(e){return this.usage=e,this}addUpdateRange(e,t){this.updateRanges.push({start:e,count:t})}clearUpdateRanges(){this.updateRanges.length=0}copy(e){return this.name=e.name,this.array=new e.array.constructor(e.array),this.itemSize=e.itemSize,this.count=e.count,this.normalized=e.normalized,this.usage=e.usage,this.gpuType=e.gpuType,this}copyAt(e,t,n){e*=this.itemSize,n*=t.itemSize;for(let r=0,i=this.itemSize;rthis.radius*this.radius&&(t.sub(this.center).normalize(),t.multiplyScalar(this.radius).add(this.center)),t}getBoundingBox(e){return this.isEmpty()?(e.makeEmpty(),e):(e.set(this.center,this.center),e.expandByScalar(this.radius),e)}applyMatrix4(e){return this.center.applyMatrix4(e),this.radius*=e.getMaxScaleOnAxis(),this}translate(e){return this.center.add(e),this}expandByPoint(e){if(this.isEmpty())return this.center.copy(e),this.radius=0,this;ol.subVectors(e,this.center);let t=ol.lengthSq();if(t>this.radius*this.radius){let e=Math.sqrt(t),n=(e-this.radius)*.5;this.center.addScaledVector(ol,n/e),this.radius+=n}return this}union(e){return e.isEmpty()?this:this.isEmpty()?(this.copy(e),this):(this.center.equals(e.center)===!0?this.radius=Math.max(this.radius,e.radius):(sl.subVectors(e.center,this.center).setLength(e.radius),this.expandByPoint(ol.copy(e.center).add(sl)),this.expandByPoint(ol.copy(e.center).sub(sl))),this)}equals(e){return e.center.equals(this.center)&&e.radius===this.radius}clone(){return new this.constructor().copy(this)}toJSON(){return{radius:this.radius,center:this.center.toArray()}}fromJSON(e){return this.radius=e.radius,this.center.fromArray(e.center),this}},ll=0,ul=new zs,dl=new fc,fl=new B,pl=new Lc,ml=new Lc,hl=new B,gl=class e extends Ho{constructor(){super(),this.isBufferGeometry=!0,Object.defineProperty(this,"id",{value:ll++}),this.uuid=qo(),this.name=``,this.type=`BufferGeometry`,this.index=null,this.indirect=null,this.indirectOffset=0,this.attributes={},this.morphAttributes={},this.morphTargetsRelative=!1,this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={},this._transformed=!1}getIndex(){return this.index}setIndex(e){return this.index=Array.isArray(e)?new(Ao(e)?rl:nl)(e,1):e,this}setIndirect(e,t=0){return this.indirect=e,this.indirectOffset=t,this}getIndirect(){return this.indirect}getAttribute(e){return this.attributes[e]}setAttribute(e,t){return this.attributes[e]=t,this}deleteAttribute(e){return delete this.attributes[e],this}hasAttribute(e){return this.attributes[e]!==void 0}addGroup(e,t,n=0){this.groups.push({start:e,count:t,materialIndex:n})}clearGroups(){this.groups=[]}setDrawRange(e,t){this.drawRange.start=e,this.drawRange.count=t}applyMatrix4(e){let t=this.attributes.position;t!==void 0&&(t.applyMatrix4(e),t.needsUpdate=!0);let n=this.attributes.normal;if(n!==void 0){let t=new vs().getNormalMatrix(e);n.applyNormalMatrix(t),n.needsUpdate=!0}let r=this.attributes.tangent;return r!==void 0&&(r.transformDirection(e),r.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this._transformed=!0,this}applyQuaternion(e){return ul.makeRotationFromQuaternion(e),this.applyMatrix4(ul),this}rotateX(e){return ul.makeRotationX(e),this.applyMatrix4(ul),this}rotateY(e){return ul.makeRotationY(e),this.applyMatrix4(ul),this}rotateZ(e){return ul.makeRotationZ(e),this.applyMatrix4(ul),this}translate(e,t,n){return ul.makeTranslation(e,t,n),this.applyMatrix4(ul),this}scale(e,t,n){return ul.makeScale(e,t,n),this.applyMatrix4(ul),this}lookAt(e){return dl.lookAt(e),dl.updateMatrix(),this.applyMatrix4(dl.matrix),this}center(){return this.computeBoundingBox(),this.boundingBox.getCenter(fl).negate(),this.translate(fl.x,fl.y,fl.z),this}setFromPoints(e){let t=this.getAttribute(`position`);if(t===void 0){let t=[];for(let n=0,r=e.length;nt.count&&Lo(`BufferGeometry: Buffer size too small for points data. Use .dispose() and create a new geometry.`),t.needsUpdate=!0}return this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new Lc);let e=this.attributes.position,t=this.morphAttributes.position;if(e&&e.isGLBufferAttribute)Ro(`BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box.`,this),this.boundingBox.set(new B(-1/0,-1/0,-1/0),new B(1/0,1/0,1/0));else{if(e!==void 0){if(this.boundingBox.setFromBufferAttribute(e),t)for(let e=0,n=t.length;e0&&(e.userData=this.userData),this.parameters!==void 0&&this._transformed!==!0){let t=this.parameters;for(let n in t)t[n]!==void 0&&(e[n]=t[n]);return e}e.data={attributes:{}};let t=this.index;t!==null&&(e.data.index={type:t.array.constructor.name,array:Array.prototype.slice.call(t.array)});let n=this.attributes;for(let t in n){let r=n[t];e.data.attributes[t]=r.toJSON(e.data)}let r={},i=!1;for(let t in this.morphAttributes){let n=this.morphAttributes[t],a=[];for(let t=0,r=n.length;t0&&(r[t]=a,i=!0)}i&&(e.data.morphAttributes=r,e.data.morphTargetsRelative=this.morphTargetsRelative);let a=this.groups;a.length>0&&(e.data.groups=JSON.parse(JSON.stringify(a)));let o=this.boundingSphere;return o!==null&&(e.data.boundingSphere=o.toJSON()),e}clone(){return new this.constructor().copy(this)}copy(e){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;let t={};this.name=e.name;let n=e.index;n!==null&&this.setIndex(n.clone());let r=e.attributes;for(let e in r){let n=r[e];this.setAttribute(e,n.clone(t))}let i=e.morphAttributes;for(let e in i){let n=[],r=i[e];for(let e=0,i=r.length;e1)?null:t.copy(e.start).addScaledVector(r,a)}intersectsLine(e){let t=this.distanceToPoint(e.start),n=this.distanceToPoint(e.end);return t<0&&n>0||n<0&&t>0}intersectsBox(e){return e.intersectsPlane(this)}intersectsSphere(e){return e.intersectsPlane(this)}coplanarPoint(e){return e.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(e,t){let n=t||Sl.getNormalMatrix(e),r=this.coplanarPoint(bl).applyMatrix4(e),i=this.normal.applyMatrix3(n).normalize();return this.constant=-r.dot(i),this}translate(e){return this.constant-=e.dot(this.normal),this}equals(e){return e.normal.equals(this.normal)&&e.constant===this.constant}clone(){return new this.constructor().copy(this)}toJSON(){return{normal:this.normal.toArray(),constant:this.constant}}fromJSON(e){return this.normal.fromArray(e.normal),this.constant=e.constant,this}},wl=0,Tl=class extends Ho{constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,"id",{value:wl++}),this.uuid=qo(),this.name=``,this.type=`Material`,this.blending=1,this.side=0,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.alphaHash=!1,this.blendSrc=204,this.blendDst=205,this.blendEquation=100,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.blendColor=new V(0,0,0),this.blendAlpha=0,this.depthFunc=3,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=519,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=Eo,this.stencilZFail=Eo,this.stencilZPass=Eo,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.forceSinglePass=!1,this.allowOverride=!0,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(e){this._alphaTest>0!=e>0&&this.version++,this._alphaTest=e}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(e){if(e!==void 0)for(let t in e){let n=e[t];if(n===void 0){Lo(`Material: parameter '${t}' has value of undefined.`);continue}let r=this[t];r===void 0?Lo(`Material: '${t}' is not a property of THREE.${this.type}.`):r&&r.isColor?r.set(n):r&&r.isVector2&&n&&n.isVector2||r&&r.isEuler&&n&&n.isEuler||r&&r.isVector3&&n&&n.isVector3?r.copy(n):this[t]=n}}toJSON(e){let t=e===void 0||typeof e==`string`;t&&(e={textures:{},images:{}});let n={metadata:{version:4.7,type:`Material`,generator:`Material.toJSON`}};n.uuid=this.uuid,n.type=this.type,n.blending=this.blending,n.side=this.side,n.shadowSide=this.shadowSide,n.vertexColors=this.vertexColors,n.opacity=this.opacity,n.transparent=this.transparent,n.blendSrc=this.blendSrc,n.blendDst=this.blendDst,n.blendEquation=this.blendEquation,n.blendSrcAlpha=this.blendSrcAlpha,n.blendDstAlpha=this.blendDstAlpha,n.blendEquationAlpha=this.blendEquationAlpha,n.blendColor=this.blendColor.getHex(),n.blendAlpha=this.blendAlpha,n.depthFunc=this.depthFunc,n.depthTest=this.depthTest,n.depthWrite=this.depthWrite,n.colorWrite=this.colorWrite,n.clipIntersection=this.clipIntersection,n.clipShadows=this.clipShadows,n.stencilWriteMask=this.stencilWriteMask,n.stencilFunc=this.stencilFunc,n.stencilRef=this.stencilRef,n.stencilFuncMask=this.stencilFuncMask,n.stencilFail=this.stencilFail,n.stencilZFail=this.stencilZFail,n.stencilZPass=this.stencilZPass,n.stencilWrite=this.stencilWrite,n.polygonOffset=this.polygonOffset,n.polygonOffsetFactor=this.polygonOffsetFactor,n.polygonOffsetUnits=this.polygonOffsetUnits,n.dithering=this.dithering,n.alphaTest=this.alphaTest,n.alphaHash=this.alphaHash,n.alphaToCoverage=this.alphaToCoverage,n.premultipliedAlpha=this.premultipliedAlpha,n.forceSinglePass=this.forceSinglePass,n.allowOverride=this.allowOverride,n.visible=this.visible,n.toneMapped=this.toneMapped,n.name=this.name,this.color&&this.color.isColor&&(n.color=this.color.getHex()),this.roughness!==void 0&&(n.roughness=this.roughness),this.metalness!==void 0&&(n.metalness=this.metalness),this.sheen!==void 0&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),this.sheenRoughness!==void 0&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity!==void 0&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),this.specularIntensity!==void 0&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),this.shininess!==void 0&&(n.shininess=this.shininess),this.clearcoat!==void 0&&(n.clearcoat=this.clearcoat),this.clearcoatRoughness!==void 0&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(e).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(e).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(e).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),this.sheenColorMap&&this.sheenColorMap.isTexture&&(n.sheenColorMap=this.sheenColorMap.toJSON(e).uuid),this.sheenRoughnessMap&&this.sheenRoughnessMap.isTexture&&(n.sheenRoughnessMap=this.sheenRoughnessMap.toJSON(e).uuid),this.dispersion!==void 0&&(n.dispersion=this.dispersion),this.retroreflectivity!==void 0&&(n.retroreflectivity=this.retroreflectivity),this.iridescence!==void 0&&(n.iridescence=this.iridescence),this.iridescenceIOR!==void 0&&(n.iridescenceIOR=this.iridescenceIOR),this.iridescenceThicknessRange!==void 0&&(n.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(n.iridescenceMap=this.iridescenceMap.toJSON(e).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(n.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(e).uuid),this.anisotropy!==void 0&&(n.anisotropy=this.anisotropy),this.anisotropyRotation!==void 0&&(n.anisotropyRotation=this.anisotropyRotation),this.anisotropyMap&&this.anisotropyMap.isTexture&&(n.anisotropyMap=this.anisotropyMap.toJSON(e).uuid),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(e).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(e).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(e).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(e).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(e).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(e).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(e).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(e).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(e).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(e).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(e).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(e).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(e).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(e).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(e).uuid,this.combine!==void 0&&(n.combine=this.combine)),this.envMapRotation!==void 0&&(n.envMapRotation=this.envMapRotation.toArray()),this.envMapIntensity!==void 0&&(n.envMapIntensity=this.envMapIntensity),this.reflectivity!==void 0&&(n.reflectivity=this.reflectivity),this.refractionRatio!==void 0&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(e).uuid),this.transmission!==void 0&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(e).uuid),this.thickness!==void 0&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(e).uuid),this.attenuationDistance!==void 0&&(n.attenuationDistance=this.attenuationDistance),this.attenuationColor!==void 0&&(n.attenuationColor=this.attenuationColor.getHex()),this.size!==void 0&&(n.size=this.size),this.sizeAttenuation!==void 0&&(n.sizeAttenuation=this.sizeAttenuation),Array.isArray(this.clippingPlanes)&&this.clippingPlanes.length>0&&(n.clippingPlanes=this.clippingPlanes.map(e=>e.toJSON())),this.rotation!==void 0&&(n.rotation=this.rotation),this.depthPacking!==void 0&&(n.depthPacking=this.depthPacking),this.linewidth!==void 0&&(n.linewidth=this.linewidth),this.linecap!==void 0&&(n.linecap=this.linecap),this.linejoin!==void 0&&(n.linejoin=this.linejoin),this.dashSize!==void 0&&(n.dashSize=this.dashSize),this.gapSize!==void 0&&(n.gapSize=this.gapSize),this.scale!==void 0&&(n.scale=this.scale),this.wireframe!==void 0&&(n.wireframe=this.wireframe),this.wireframeLinewidth!==void 0&&(n.wireframeLinewidth=this.wireframeLinewidth),this.wireframeLinecap!==void 0&&(n.wireframeLinecap=this.wireframeLinecap),this.wireframeLinejoin!==void 0&&(n.wireframeLinejoin=this.wireframeLinejoin),this.flatShading!==void 0&&(n.flatShading=this.flatShading),this.fog!==void 0&&(n.fog=this.fog),Object.keys(this.userData).length>0&&(n.userData=this.userData);function r(e){let t=[];for(let n in e){let r=e[n];delete r.metadata,t.push(r)}return t}if(t){let t=r(e.textures),i=r(e.images);t.length>0&&(n.textures=t),i.length>0&&(n.images=i)}return n}fromJSON(e,t){if(e.uuid!==void 0&&(this.uuid=e.uuid),e.name!==void 0&&(this.name=e.name),e.color!==void 0&&this.color!==void 0&&this.color.setHex(e.color),e.roughness!==void 0&&(this.roughness=e.roughness),e.metalness!==void 0&&(this.metalness=e.metalness),e.sheen!==void 0&&(this.sheen=e.sheen),e.sheenColor!==void 0&&(this.sheenColor=new V().setHex(e.sheenColor)),e.sheenRoughness!==void 0&&(this.sheenRoughness=e.sheenRoughness),e.emissive!==void 0&&this.emissive!==void 0&&this.emissive.setHex(e.emissive),e.specular!==void 0&&this.specular!==void 0&&this.specular.setHex(e.specular),e.specularIntensity!==void 0&&(this.specularIntensity=e.specularIntensity),e.specularColor!==void 0&&this.specularColor!==void 0&&this.specularColor.setHex(e.specularColor),e.shininess!==void 0&&(this.shininess=e.shininess),e.clearcoat!==void 0&&(this.clearcoat=e.clearcoat),e.clearcoatRoughness!==void 0&&(this.clearcoatRoughness=e.clearcoatRoughness),e.dispersion!==void 0&&(this.dispersion=e.dispersion),e.retroreflectivity!==void 0&&(this.retroreflectivity=e.retroreflectivity),e.iridescence!==void 0&&(this.iridescence=e.iridescence),e.iridescenceIOR!==void 0&&(this.iridescenceIOR=e.iridescenceIOR),e.iridescenceThicknessRange!==void 0&&(this.iridescenceThicknessRange=e.iridescenceThicknessRange),e.transmission!==void 0&&(this.transmission=e.transmission),e.thickness!==void 0&&(this.thickness=e.thickness),e.attenuationDistance!==void 0&&(this.attenuationDistance=e.attenuationDistance),e.attenuationColor!==void 0&&this.attenuationColor!==void 0&&this.attenuationColor.setHex(e.attenuationColor),e.anisotropy!==void 0&&(this.anisotropy=e.anisotropy),e.anisotropyRotation!==void 0&&(this.anisotropyRotation=e.anisotropyRotation),e.fog!==void 0&&(this.fog=e.fog),e.flatShading!==void 0&&(this.flatShading=e.flatShading),e.blending!==void 0&&(this.blending=e.blending),e.combine!==void 0&&(this.combine=e.combine),e.side!==void 0&&(this.side=e.side),e.shadowSide!==void 0&&(this.shadowSide=e.shadowSide),e.opacity!==void 0&&(this.opacity=e.opacity),e.transparent!==void 0&&(this.transparent=e.transparent),e.alphaTest!==void 0&&(this.alphaTest=e.alphaTest),e.alphaHash!==void 0&&(this.alphaHash=e.alphaHash),e.depthFunc!==void 0&&(this.depthFunc=e.depthFunc),e.depthTest!==void 0&&(this.depthTest=e.depthTest),e.depthWrite!==void 0&&(this.depthWrite=e.depthWrite),e.colorWrite!==void 0&&(this.colorWrite=e.colorWrite),e.clippingPlanes!==void 0&&(this.clippingPlanes=e.clippingPlanes.map(e=>new Cl().fromJSON(e))),e.clipIntersection!==void 0&&(this.clipIntersection=e.clipIntersection),e.clipShadows!==void 0&&(this.clipShadows=e.clipShadows),e.depthPacking!==void 0&&(this.depthPacking=e.depthPacking),e.blendSrc!==void 0&&(this.blendSrc=e.blendSrc),e.blendDst!==void 0&&(this.blendDst=e.blendDst),e.blendEquation!==void 0&&(this.blendEquation=e.blendEquation),e.blendSrcAlpha!==void 0&&(this.blendSrcAlpha=e.blendSrcAlpha),e.blendDstAlpha!==void 0&&(this.blendDstAlpha=e.blendDstAlpha),e.blendEquationAlpha!==void 0&&(this.blendEquationAlpha=e.blendEquationAlpha),e.blendColor!==void 0&&this.blendColor!==void 0&&this.blendColor.setHex(e.blendColor),e.blendAlpha!==void 0&&(this.blendAlpha=e.blendAlpha),e.stencilWriteMask!==void 0&&(this.stencilWriteMask=e.stencilWriteMask),e.stencilFunc!==void 0&&(this.stencilFunc=e.stencilFunc),e.stencilRef!==void 0&&(this.stencilRef=e.stencilRef),e.stencilFuncMask!==void 0&&(this.stencilFuncMask=e.stencilFuncMask),e.stencilFail!==void 0&&(this.stencilFail=e.stencilFail),e.stencilZFail!==void 0&&(this.stencilZFail=e.stencilZFail),e.stencilZPass!==void 0&&(this.stencilZPass=e.stencilZPass),e.stencilWrite!==void 0&&(this.stencilWrite=e.stencilWrite),e.wireframe!==void 0&&(this.wireframe=e.wireframe),e.wireframeLinewidth!==void 0&&(this.wireframeLinewidth=e.wireframeLinewidth),e.wireframeLinecap!==void 0&&(this.wireframeLinecap=e.wireframeLinecap),e.wireframeLinejoin!==void 0&&(this.wireframeLinejoin=e.wireframeLinejoin),e.rotation!==void 0&&(this.rotation=e.rotation),e.linewidth!==void 0&&(this.linewidth=e.linewidth),e.linecap!==void 0&&(this.linecap=e.linecap),e.linejoin!==void 0&&(this.linejoin=e.linejoin),e.dashSize!==void 0&&(this.dashSize=e.dashSize),e.gapSize!==void 0&&(this.gapSize=e.gapSize),e.scale!==void 0&&(this.scale=e.scale),e.polygonOffset!==void 0&&(this.polygonOffset=e.polygonOffset),e.polygonOffsetFactor!==void 0&&(this.polygonOffsetFactor=e.polygonOffsetFactor),e.polygonOffsetUnits!==void 0&&(this.polygonOffsetUnits=e.polygonOffsetUnits),e.dithering!==void 0&&(this.dithering=e.dithering),e.alphaToCoverage!==void 0&&(this.alphaToCoverage=e.alphaToCoverage),e.premultipliedAlpha!==void 0&&(this.premultipliedAlpha=e.premultipliedAlpha),e.forceSinglePass!==void 0&&(this.forceSinglePass=e.forceSinglePass),e.allowOverride!==void 0&&(this.allowOverride=e.allowOverride),e.visible!==void 0&&(this.visible=e.visible),e.toneMapped!==void 0&&(this.toneMapped=e.toneMapped),e.userData!==void 0&&(this.userData=e.userData),e.vertexColors!==void 0&&(this.vertexColors=typeof e.vertexColors==`number`?e.vertexColors>0:e.vertexColors),e.size!==void 0&&(this.size=e.size),e.sizeAttenuation!==void 0&&(this.sizeAttenuation=e.sizeAttenuation),e.map!==void 0&&(this.map=t[e.map]||null),e.matcap!==void 0&&(this.matcap=t[e.matcap]||null),e.alphaMap!==void 0&&(this.alphaMap=t[e.alphaMap]||null),e.bumpMap!==void 0&&(this.bumpMap=t[e.bumpMap]||null),e.bumpScale!==void 0&&(this.bumpScale=e.bumpScale),e.normalMap!==void 0&&(this.normalMap=t[e.normalMap]||null),e.normalMapType!==void 0&&(this.normalMapType=e.normalMapType),e.normalScale!==void 0){let t=e.normalScale;Array.isArray(t)===!1&&(t=[t,t]),this.normalScale=new z().fromArray(t)}return e.displacementMap!==void 0&&(this.displacementMap=t[e.displacementMap]||null),e.displacementScale!==void 0&&(this.displacementScale=e.displacementScale),e.displacementBias!==void 0&&(this.displacementBias=e.displacementBias),e.roughnessMap!==void 0&&(this.roughnessMap=t[e.roughnessMap]||null),e.metalnessMap!==void 0&&(this.metalnessMap=t[e.metalnessMap]||null),e.emissiveMap!==void 0&&(this.emissiveMap=t[e.emissiveMap]||null),e.emissiveIntensity!==void 0&&(this.emissiveIntensity=e.emissiveIntensity),e.specularMap!==void 0&&(this.specularMap=t[e.specularMap]||null),e.specularIntensityMap!==void 0&&(this.specularIntensityMap=t[e.specularIntensityMap]||null),e.specularColorMap!==void 0&&(this.specularColorMap=t[e.specularColorMap]||null),e.envMap!==void 0&&(this.envMap=t[e.envMap]||null),e.envMapRotation!==void 0&&this.envMapRotation.fromArray(e.envMapRotation),e.envMapIntensity!==void 0&&(this.envMapIntensity=e.envMapIntensity),e.reflectivity!==void 0&&(this.reflectivity=e.reflectivity),e.refractionRatio!==void 0&&(this.refractionRatio=e.refractionRatio),e.lightMap!==void 0&&(this.lightMap=t[e.lightMap]||null),e.lightMapIntensity!==void 0&&(this.lightMapIntensity=e.lightMapIntensity),e.aoMap!==void 0&&(this.aoMap=t[e.aoMap]||null),e.aoMapIntensity!==void 0&&(this.aoMapIntensity=e.aoMapIntensity),e.gradientMap!==void 0&&(this.gradientMap=t[e.gradientMap]||null),e.clearcoatMap!==void 0&&(this.clearcoatMap=t[e.clearcoatMap]||null),e.clearcoatRoughnessMap!==void 0&&(this.clearcoatRoughnessMap=t[e.clearcoatRoughnessMap]||null),e.clearcoatNormalMap!==void 0&&(this.clearcoatNormalMap=t[e.clearcoatNormalMap]||null),e.clearcoatNormalScale!==void 0&&(this.clearcoatNormalScale=new z().fromArray(e.clearcoatNormalScale)),e.iridescenceMap!==void 0&&(this.iridescenceMap=t[e.iridescenceMap]||null),e.iridescenceThicknessMap!==void 0&&(this.iridescenceThicknessMap=t[e.iridescenceThicknessMap]||null),e.transmissionMap!==void 0&&(this.transmissionMap=t[e.transmissionMap]||null),e.thicknessMap!==void 0&&(this.thicknessMap=t[e.thicknessMap]||null),e.anisotropyMap!==void 0&&(this.anisotropyMap=t[e.anisotropyMap]||null),e.sheenColorMap!==void 0&&(this.sheenColorMap=t[e.sheenColorMap]||null),e.sheenRoughnessMap!==void 0&&(this.sheenRoughnessMap=t[e.sheenRoughnessMap]||null),this}clone(){return new this.constructor().copy(this)}copy(e){this.name=e.name,this.blending=e.blending,this.side=e.side,this.vertexColors=e.vertexColors,this.opacity=e.opacity,this.transparent=e.transparent,this.blendSrc=e.blendSrc,this.blendDst=e.blendDst,this.blendEquation=e.blendEquation,this.blendSrcAlpha=e.blendSrcAlpha,this.blendDstAlpha=e.blendDstAlpha,this.blendEquationAlpha=e.blendEquationAlpha,this.blendColor.copy(e.blendColor),this.blendAlpha=e.blendAlpha,this.depthFunc=e.depthFunc,this.depthTest=e.depthTest,this.depthWrite=e.depthWrite,this.stencilWriteMask=e.stencilWriteMask,this.stencilFunc=e.stencilFunc,this.stencilRef=e.stencilRef,this.stencilFuncMask=e.stencilFuncMask,this.stencilFail=e.stencilFail,this.stencilZFail=e.stencilZFail,this.stencilZPass=e.stencilZPass,this.stencilWrite=e.stencilWrite;let t=e.clippingPlanes,n=null;if(t!==null){let e=t.length;n=Array(e);for(let r=0;r!==e;++r)n[r]=t[r].clone()}return this.clippingPlanes=n,this.clipIntersection=e.clipIntersection,this.clipShadows=e.clipShadows,this.shadowSide=e.shadowSide,this.colorWrite=e.colorWrite,this.precision=e.precision,this.polygonOffset=e.polygonOffset,this.polygonOffsetFactor=e.polygonOffsetFactor,this.polygonOffsetUnits=e.polygonOffsetUnits,this.dithering=e.dithering,this.alphaTest=e.alphaTest,this.alphaHash=e.alphaHash,this.alphaToCoverage=e.alphaToCoverage,this.premultipliedAlpha=e.premultipliedAlpha,this.forceSinglePass=e.forceSinglePass,this.allowOverride=e.allowOverride,this.visible=e.visible,this.toneMapped=e.toneMapped,this.userData=JSON.parse(JSON.stringify(e.userData)),this}dispose(){this.dispatchEvent({type:`dispose`})}set needsUpdate(e){e===!0&&this.version++}},El=new B,Dl=new B,Ol=new B,kl=new B,Al=class{constructor(e=new B,t=new B(0,0,-1)){this.origin=e,this.direction=t}set(e,t){return this.origin.copy(e),this.direction.copy(t),this}copy(e){return this.origin.copy(e.origin),this.direction.copy(e.direction),this}at(e,t){return t.copy(this.origin).addScaledVector(this.direction,e)}lookAt(e){return this.direction.copy(e).sub(this.origin).normalize(),this}recast(e){return this.origin.copy(this.at(e,El)),this}closestPointToPoint(e,t){t.subVectors(e,this.origin);let n=t.dot(this.direction);return n<0?t.copy(this.origin):t.copy(this.origin).addScaledVector(this.direction,n)}distanceToPoint(e){return Math.sqrt(this.distanceSqToPoint(e))}distanceSqToPoint(e){let t=El.subVectors(e,this.origin).dot(this.direction);return t<0?this.origin.distanceToSquared(e):(El.copy(this.origin).addScaledVector(this.direction,t),El.distanceToSquared(e))}distanceSqToSegment(e,t,n,r){Dl.copy(e).add(t).multiplyScalar(.5),Ol.copy(t).sub(e).normalize(),kl.copy(this.origin).sub(Dl);let i=e.distanceTo(t)*.5,a=-this.direction.dot(Ol),o=kl.dot(this.direction),s=-kl.dot(Ol),c=kl.lengthSq(),l=Math.abs(1-a*a),u,d,f,p;if(l>0){if(u=a*s-o,d=a*o-s,p=i*l,u>=0){if(d>=-p){if(d<=p){let e=1/l;u*=e,d*=e,f=u*(u+a*d+2*o)+d*(a*u+d+2*s)+c}else d=i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c}else d=-i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c}else d<=-p?(u=Math.max(0,-(-a*i+o)),d=u>0?-i:Math.min(Math.max(-i,-s),i),f=-u*u+d*(d+2*s)+c):d<=p?(u=0,d=Math.min(Math.max(-i,-s),i),f=d*(d+2*s)+c):(u=Math.max(0,-(a*i+o)),d=u>0?i:Math.min(Math.max(-i,-s),i),f=-u*u+d*(d+2*s)+c)}else d=a>0?-i:i,u=Math.max(0,-(a*d+o)),f=-u*u+d*(d+2*s)+c;return n&&n.copy(this.origin).addScaledVector(this.direction,u),r&&r.copy(Dl).addScaledVector(Ol,d),f}intersectSphere(e,t){if(e.radius<0)return null;El.subVectors(e.center,this.origin);let n=El.dot(this.direction),r=El.dot(El)-n*n,i=e.radius*e.radius;if(r>i)return null;let a=Math.sqrt(i-r),o=n-a,s=n+a;return s<0?null:o<0?this.at(s,t):this.at(o,t)}intersectsSphere(e){return e.radius<0?!1:this.distanceSqToPoint(e.center)<=e.radius*e.radius}distanceToPlane(e){let t=e.normal.dot(this.direction);if(t===0)return e.distanceToPoint(this.origin)===0?0:null;let n=-(this.origin.dot(e.normal)+e.constant)/t;return n>=0?n:null}intersectPlane(e,t){let n=this.distanceToPlane(e);return n===null?null:this.at(n,t)}intersectsPlane(e){let t=e.distanceToPoint(this.origin);return t===0||e.normal.dot(this.direction)*t<0}intersectBox(e,t){let n,r,i,a,o,s,c=1/this.direction.x,l=1/this.direction.y,u=1/this.direction.z,d=this.origin;return c>=0?(n=(e.min.x-d.x)*c,r=(e.max.x-d.x)*c):(n=(e.max.x-d.x)*c,r=(e.min.x-d.x)*c),l>=0?(i=(e.min.y-d.y)*l,a=(e.max.y-d.y)*l):(i=(e.max.y-d.y)*l,a=(e.min.y-d.y)*l),n>a||i>r||((i>n||isNaN(n))&&(n=i),(a=0?(o=(e.min.z-d.z)*u,s=(e.max.z-d.z)*u):(o=(e.max.z-d.z)*u,s=(e.min.z-d.z)*u),n>s||o>r)||((o>n||n!==n)&&(n=o),(s=0?n:r,t)}intersectsBox(e){return this.intersectBox(e,El)!==null}intersectTriangle(e,t,n,r,i){let a=this.origin,o=this.direction,s=o.x,c=o.y,l=o.z,u=e.x-a.x,d=e.y-a.y,f=e.z-a.z,p=t.x-a.x,m=t.y-a.y,h=t.z-a.z,g=n.x-a.x,_=n.y-a.y,v=n.z-a.z,y=Math.abs(s),b=Math.abs(c),x=Math.abs(l),S,C,w,T,E,D,O,k,ee,A,te,j;if(y>=b&&y>=x?(w=s,D=u,ee=p,j=g,s>=0?(S=c,C=l,T=d,E=f,O=m,k=h,A=_,te=v):(S=l,C=c,T=f,E=d,O=h,k=m,A=v,te=_)):b>=x?(w=c,D=d,ee=m,j=_,c>=0?(S=l,C=s,T=f,E=u,O=h,k=p,A=v,te=g):(S=s,C=l,T=u,E=f,O=p,k=h,A=g,te=v)):(w=l,D=f,ee=h,j=v,l>=0?(S=s,C=c,T=u,E=d,O=p,k=m,A=g,te=_):(S=c,C=s,T=d,E=u,O=m,k=p,A=_,te=g)),w===0)return null;let M=S/w,ne=C/w,re=1/w,ie=T-M*D,N=E-ne*D,ae=O-M*ee,oe=k-ne*ee,se=A-M*j,ce=te-ne*j,le=se*oe-ce*ae,ue=ie*ce-N*se,de=ae*N-oe*ie;if(r){if(le<0||ue<0||de<0)return null}else if((le<0||ue<0||de<0)&&(le>0||ue>0||de>0))return null;let fe=le+ue+de;if(fe===0)return null;let pe=re*(le*D+ue*ee+de*j);return(fe>0?pe<0:pe>0)?null:this.at(pe/fe,i)}applyMatrix4(e){return this.origin.applyMatrix4(e),this.direction.transformDirection(e),this}equals(e){return e.origin.equals(this.origin)&&e.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}},jl=class extends Tl{constructor(e){super(),this.isMeshBasicMaterial=!0,this.type=`MeshBasicMaterial`,this.color=new V(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new Ys,this.combine=0,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap=`round`,this.wireframeLinejoin=`round`,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.specularMap=e.specularMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.combine=e.combine,this.reflectivity=e.reflectivity,this.refractionRatio=e.refractionRatio,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.fog=e.fog,this}},Ml=new zs,Nl=new Al,Pl=new cl,Fl=new B,Il=new B,Ll=new B,Rl=new B,zl=new B,Bl=new B,Vl=new B,Hl=new B,H=class extends fc{constructor(e=new gl,t=new jl){super(),this.isMesh=!0,this.type=`Mesh`,this.geometry=e,this.material=t,this.morphTargetDictionary=void 0,this.morphTargetInfluences=void 0,this.count=1,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),e.morphTargetInfluences!==void 0&&(this.morphTargetInfluences=e.morphTargetInfluences.slice()),e.morphTargetDictionary!==void 0&&(this.morphTargetDictionary=Object.assign({},e.morphTargetDictionary)),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}updateMorphTargets(){let e=this.geometry.morphAttributes,t=Object.keys(e);if(t.length>0){let n=e[t[0]];if(n!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;e(e.far-e.near)**2)||(Ml.copy(i).invert(),Nl.copy(e.ray).applyMatrix4(Ml),(n.boundingBox===null||Nl.intersectsBox(n.boundingBox)!==!1)&&this._computeIntersections(e,t,Nl)))}_computeIntersections(e,t,n){let r,i=this.geometry,a=this.material,o=i.index,s=i.attributes.position,c=i.attributes.uv,l=i.attributes.uv1,u=i.attributes.normal,d=i.groups,f=i.drawRange;if(o!==null){if(Array.isArray(a))for(let i=0,s=d.length;in.far?null:{distance:l,point:Hl.clone(),object:e}}function Wl(e,t,n,r,i,a,o,s,c,l){e.getVertexPosition(s,Il),e.getVertexPosition(c,Ll),e.getVertexPosition(l,Rl);let u=Ul(e,t,n,r,Il,Ll,Rl,Vl);if(u){let e=new B;Ic.getBarycoord(Vl,Il,Ll,Rl,e),i&&(u.uv=Ic.getInterpolatedAttribute(i,s,c,l,e,new z)),a&&(u.uv1=Ic.getInterpolatedAttribute(a,s,c,l,e,new z)),o&&(u.normal=Ic.getInterpolatedAttribute(o,s,c,l,e,new B),u.normal.dot(r.direction)>0&&u.normal.multiplyScalar(-1));let t={a:s,b:c,c:l,normal:new B,materialIndex:0};Ic.getNormal(Il,Ll,Rl,t.normal),u.face=t,u.barycoord=e}return u}var Gl=new Ps,Kl=new Ps,ql=new Ps,Jl=new Ps,Yl=new zs,Xl=new B,Zl=new cl,Ql=new zs,$l=new Al,eu=class extends H{constructor(e,t){super(e,t),this.isSkinnedMesh=!0,this.type=`SkinnedMesh`,this.bindMode=Zi,this.bindMatrix=new zs,this.bindMatrixInverse=new zs,this.boundingBox=null,this.boundingSphere=null}computeBoundingBox(){let e=this.geometry;this.boundingBox===null&&(this.boundingBox=new Lc),this.boundingBox.makeEmpty();let t=e.getAttribute(`position`);for(let e=0;e0?e.max.x:e.min.x,_u.y=r.normal.y>0?e.max.y:e.min.y,_u.z=r.normal.z>0?e.max.z:e.min.z,r.distanceToPoint(_u)<0)return!1}return!0}containsPoint(e){let t=this.planes;for(let n=0;n<6;n++)if(t[n].distanceToPoint(e)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}},yu=class extends Tl{constructor(e){super(),this.isLineBasicMaterial=!0,this.type=`LineBasicMaterial`,this.color=new V(16777215),this.map=null,this.linewidth=1,this.linecap=`round`,this.linejoin=`round`,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.color.copy(e.color),this.map=e.map,this.linewidth=e.linewidth,this.linecap=e.linecap,this.linejoin=e.linejoin,this.fog=e.fog,this}},bu=new B,xu=new B,Su=new zs,Cu=new Al,wu=new cl,Tu=new B,Eu=new B,Du=class extends fc{constructor(e=new gl,t=new yu){super(),this.isLine=!0,this.type=`Line`,this.geometry=e,this.material=t,this.morphTargetDictionary=void 0,this.morphTargetInfluences=void 0,this.updateMorphTargets()}copy(e,t){return super.copy(e,t),this.material=Array.isArray(e.material)?e.material.slice():e.material,this.geometry=e.geometry,this}computeLineDistances(){let e=this.geometry;if(e.index===null){let t=e.attributes.position,n=[0];for(let e=1,r=t.count;e0){let n=e[t[0]];if(n!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;er)return;Tu.applyMatrix4(e.matrixWorld);let c=t.ray.origin.distanceTo(Tu);if(!(ct.far))return{distance:c,point:Eu.clone().applyMatrix4(e.matrixWorld),index:o,face:null,faceIndex:null,barycoord:null,object:e}}var ku=new B,Au=new B,ju=class extends Du{constructor(e,t){super(e,t),this.isLineSegments=!0,this.type=`LineSegments`}computeLineDistances(){let e=this.geometry;if(e.index===null){let t=e.attributes.position,n=[];for(let e=0,r=t.count;e0){let n=e[t[0]];if(n!==void 0){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let e=0,t=n.length;ei.far)return;a.push({distance:c,distanceToRay:Math.sqrt(s),point:n,index:t,face:null,faceIndex:null,barycoord:null,object:o})}}var Bu=class extends Ns{constructor(e=[],t=301,n,r,i,a,o,s,c,l){super(e,t,n,r,i,a,o,s,c,l),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(e){this.image=e}},Vu=class extends Ns{constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r,i,a,o,s,c),this.isCanvasTexture=!0,this.needsUpdate=!0}},Hu=class extends Ns{constructor(e,t,n=fa,r,i,a,o=ta,s=ta,c,l=Ca,u=1){if(l!==1026&&l!==1027)throw Error(`THREE.DepthTexture: format must be either THREE.DepthFormat or THREE.DepthStencilFormat`);super({width:e,height:t,depth:u},r,i,a,o,s,l,n,c),this.isDepthTexture=!0,this.flipY=!1,this.generateMipmaps=!1,this.compareFunction=null}copy(e){return super.copy(e),this.source=new ks(Object.assign({},e.image)),this.compareFunction=e.compareFunction,this}toJSON(e){let t=super.toJSON(e);return t.compareFunction=this.compareFunction,t}},Uu=class extends Hu{constructor(e,t=fa,n=301,r,i,a=ta,o=ta,s,c=Ca){let l={width:e,height:e,depth:1},u=[l,l,l,l,l,l];super(e,e,t,n,r,i,a,o,s,c),this.image=u,this.isCubeDepthTexture=!0,this.isCubeTexture=!0}get images(){return this.image}set images(e){this.image=e}},Wu=class extends Ns{constructor(e=null){super(),this.sourceTexture=e,this.isExternalTexture=!0}copy(e){return super.copy(e),this.sourceTexture=e.sourceTexture,this}},Gu=class e extends gl{constructor(e=1,t=1,n=1,r=1,i=1,a=1){super(),this.type=`BoxGeometry`,this.parameters={width:e,height:t,depth:n,widthSegments:r,heightSegments:i,depthSegments:a};let o=this;r=Math.floor(r),i=Math.floor(i),a=Math.floor(a);let s=[],c=[],l=[],u=[],d=0,f=0;p(`z`,`y`,`x`,-1,-1,n,t,e,a,i,0),p(`z`,`y`,`x`,1,-1,n,t,-e,a,i,1),p(`x`,`z`,`y`,1,1,e,n,t,r,a,2),p(`x`,`z`,`y`,1,-1,e,n,-t,r,a,3),p(`x`,`y`,`z`,1,-1,e,t,n,r,i,4),p(`x`,`y`,`z`,-1,-1,e,t,-n,r,i,5),this.setIndex(s),this.setAttribute(`position`,new il(c,3)),this.setAttribute(`normal`,new il(l,3)),this.setAttribute(`uv`,new il(u,2));function p(e,t,n,r,i,a,p,m,h,g,_){let v=a/h,y=p/g,b=a/2,x=p/2,S=m/2,C=h+1,w=g+1,T=0,E=0,D=new B;for(let a=0;a0?1:-1,l.push(D.x,D.y,D.z),u.push(s/h),u.push(1-a/g),T+=1}for(let e=0;e0){let e=(_-1)*m;for(let t=0;t0&&v(!0),t>0&&v(!1)),this.setIndex(l),this.setAttribute(`position`,new il(u,3)),this.setAttribute(`normal`,new il(d,3)),this.setAttribute(`uv`,new il(f,2));function _(){let a=new B,_=new B,v=0,y=(t-e)/n;for(let c=0;c<=i;c++){let l=[],g=c/i,v=g*(t-e)+e;for(let e=0;e<=r;e++){let t=e/r,i=t*s+o,c=Math.sin(i),m=Math.cos(i);_.x=v*c,_.y=-g*n+h,_.z=v*m,u.push(_.x,_.y,_.z),a.set(c,y,m).normalize(),d.push(a.x,a.y,a.z),f.push(t,1-g),l.push(p++)}m.push(l)}for(let n=0;n0||r!==0)&&(l.push(a,o,c),v+=3),(t>0||r!==i-1)&&(l.push(o,s,c),v+=3)}c.addGroup(g,v,0),g+=v}function v(n){let i=p,a=new z,m=new B,_=0,v=n===!0?e:t,y=n===!0?1:-1;for(let e=1;e<=r;e++)u.push(0,h*y,0),d.push(0,y,0),f.push(.5,.5),p++;let b=p;for(let e=0;e<=r;e++){let t=e/r*s+o,n=Math.cos(t),i=Math.sin(t);m.x=v*i,m.y=h*y,m.z=v*n,u.push(m.x,m.y,m.z),d.push(0,y,0),a.x=n*.5+.5,a.y=i*.5*y+.5,f.push(a.x,a.y),p++}for(let e=0;e.9&&Math.min(t,n,r)<.1&&(t<.2&&(a[e+0]+=1),n<.2&&(a[e+2]+=1),r<.2&&(a[e+4]+=1))}}function d(e){i.push(e.x,e.y,e.z)}function f(t,n){let r=t*3;n.x=e[r+0],n.y=e[r+1],n.z=e[r+2]}function p(){let e=new B,t=new B,n=new B,r=new B,o=new z,s=new z,c=new z;for(let l=0,u=0;l0)s=r-1;else{s=r;break}if(r=s,n[r]===a)return r/(i-1);let l=n[r],u=n[r+1]-l,d=(a-l)/u;return(r+d)/(i-1)}getTangent(e,t){let n=1e-4,r=e-n,i=e+n;r<0&&(r=0),i>1&&(i=1);let a=this.getPoint(r),o=this.getPoint(i),s=t||(a.isVector2?new z:new B);return s.copy(o).sub(a).normalize(),s}getTangentAt(e,t){let n=this.getUtoTmapping(e);return this.getTangent(n,t)}computeFrenetFrames(e,t=!1){let n=new B,r=[],i=[],a=[],o=new B,s=new zs;for(let t=0;t<=e;t++){let n=t/e;r[t]=this.getTangentAt(n,new B)}i[0]=new B,a[0]=new B;let c=Number.MAX_VALUE,l=Math.abs(r[0].x),u=Math.abs(r[0].y),d=Math.abs(r[0].z);l<=c&&(c=l,n.set(1,0,0)),u<=c&&(c=u,n.set(0,1,0)),d<=c&&n.set(0,0,1),o.crossVectors(r[0],n).normalize(),i[0].crossVectors(r[0],o),a[0].crossVectors(r[0],i[0]);for(let t=1;t<=e;t++){if(i[t]=i[t-1].clone(),a[t]=a[t-1].clone(),o.crossVectors(r[t-1],r[t]),o.length()>2**-52){o.normalize();let e=Math.acos(Jo(r[t-1].dot(r[t]),-1,1));i[t].applyMatrix4(s.makeRotationAxis(o,e))}a[t].crossVectors(r[t],i[t])}if(t===!0){let t=Math.acos(Jo(i[0].dot(i[e]),-1,1));t/=e,r[0].dot(o.crossVectors(i[0],i[e]))>0&&(t=-t);for(let n=1;n<=e;n++)i[n].applyMatrix4(s.makeRotationAxis(r[n],t*n)),a[n].crossVectors(r[n],i[n])}return{tangents:r,normals:i,binormals:a}}clone(){return new this.constructor().copy(this)}copy(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}toJSON(){let e={metadata:{version:4.7,type:`Curve`,generator:`Curve.toJSON`}};return e.arcLengthDivisions=this.arcLengthDivisions,e.type=this.type,e}fromJSON(e){return this.arcLengthDivisions=e.arcLengthDivisions,this}},Qu=class extends Zu{constructor(e=0,t=0,n=1,r=1,i=0,a=Math.PI*2,o=!1,s=0){super(),this.isEllipseCurve=!0,this.type=`EllipseCurve`,this.aX=e,this.aY=t,this.xRadius=n,this.yRadius=r,this.aStartAngle=i,this.aEndAngle=a,this.aClockwise=o,this.aRotation=s}getPoint(e,t=new z){let n=t,r=Math.PI*2,i=this.aEndAngle-this.aStartAngle,a=Math.abs(i)<2**-52;for(;i<0;)i+=r;for(;i>r;)i-=r;i<2**-52&&(i=a?0:r),this.aClockwise===!0&&!a&&(i===r?i=-r:i-=r);let o=this.aStartAngle+e*i,s=this.aX+this.xRadius*Math.cos(o),c=this.aY+this.yRadius*Math.sin(o);if(this.aRotation!==0){let e=Math.cos(this.aRotation),t=Math.sin(this.aRotation),n=s-this.aX,r=c-this.aY;s=n*e-r*t+this.aX,c=n*t+r*e+this.aY}return n.set(s,c)}copy(e){return super.copy(e),this.aX=e.aX,this.aY=e.aY,this.xRadius=e.xRadius,this.yRadius=e.yRadius,this.aStartAngle=e.aStartAngle,this.aEndAngle=e.aEndAngle,this.aClockwise=e.aClockwise,this.aRotation=e.aRotation,this}toJSON(){let e=super.toJSON();return e.aX=this.aX,e.aY=this.aY,e.xRadius=this.xRadius,e.yRadius=this.yRadius,e.aStartAngle=this.aStartAngle,e.aEndAngle=this.aEndAngle,e.aClockwise=this.aClockwise,e.aRotation=this.aRotation,e}fromJSON(e){return super.fromJSON(e),this.aX=e.aX,this.aY=e.aY,this.xRadius=e.xRadius,this.yRadius=e.yRadius,this.aStartAngle=e.aStartAngle,this.aEndAngle=e.aEndAngle,this.aClockwise=e.aClockwise,this.aRotation=e.aRotation,this}},$u=class extends Qu{constructor(e,t,n,r,i,a){super(e,t,n,n,r,i,a),this.isArcCurve=!0,this.type=`ArcCurve`}};function ed(){let e=0,t=0,n=0,r=0;function i(i,a,o,s){e=i,t=o,n=-3*i+3*a-2*o-s,r=2*i-2*a+o+s}return{initCatmullRom:function(e,t,n,r,a){i(t,n,a*(n-e),a*(r-t))},initNonuniformCatmullRom:function(e,t,n,r,a,o,s){let c=(t-e)/a-(n-e)/(a+o)+(n-t)/o,l=(n-t)/o-(r-t)/(o+s)+(r-n)/s;c*=o,l*=o,i(t,n,c,l)},calc:function(i){let a=i*i,o=a*i;return e+t*i+n*a+r*o}}}var td=new B,nd=new B,rd=new ed,id=new ed,ad=new ed,od=class extends Zu{constructor(e=[],t=!1,n=`centripetal`,r=.5){super(),this.isCatmullRomCurve3=!0,this.type=`CatmullRomCurve3`,this.points=e,this.closed=t,this.curveType=n,this.tension=r}getPoint(e,t=new B){let n=t,r=this.points,i=r.length,a=(i-+!this.closed)*e,o=Math.floor(a),s=a-o;this.closed?o+=o>0?0:(Math.floor(Math.abs(o)/i)+1)*i:s===0&&o===i-1&&(o=i-2,s=1);let c,l;this.closed||o>0?c=r[(o-1)%i]:(nd.subVectors(r[0],r[1]).add(r[0]),c=nd);let u=r[o%i],d=r[(o+1)%i];if(this.closed||o+2r.length-2?r.length-1:a+1],u=r[a>r.length-3?r.length-1:a+2];return n.set(sd(o,s.x,c.x,l.x,u.x),sd(o,s.y,c.y,l.y,u.y)),n}copy(e){super.copy(e),this.points=[];for(let t=0,n=e.points.length;t0)&&f.push(t,i,c),(e!==n-1||s0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;let n={};for(let e in this.extensions)this.extensions[e]===!0&&(n[e]=!0);return Object.keys(n).length>0&&(t.extensions=n),t}fromJSON(e,t){if(super.fromJSON(e,t),e.uniforms!==void 0)for(let n in e.uniforms){let r=e.uniforms[n];switch(this.uniforms[n]={},r.type){case`t`:this.uniforms[n].value=t[r.value]||null;break;case`c`:this.uniforms[n].value=new V().setHex(r.value);break;case`v2`:this.uniforms[n].value=new z().fromArray(r.value);break;case`v3`:this.uniforms[n].value=new B().fromArray(r.value);break;case`v4`:this.uniforms[n].value=new Ns().fromArray(r.value);break;case`m3`:this.uniforms[n].value=new _s().fromArray(r.value);break;case`m4`:this.uniforms[n].value=new Rs().fromArray(r.value);break;default:this.uniforms[n].value=r.value}}if(e.defines!==void 0&&(this.defines=e.defines),e.vertexShader!==void 0&&(this.vertexShader=e.vertexShader),e.fragmentShader!==void 0&&(this.fragmentShader=e.fragmentShader),e.glslVersion!==void 0&&(this.glslVersion=e.glslVersion),e.extensions!==void 0)for(let t in e.extensions)this.extensions[t]=e.extensions[t];return e.lights!==void 0&&(this.lights=e.lights),e.clipping!==void 0&&(this.clipping=e.clipping),this}},Vd=class extends Bd{constructor(e){super(e),this.isRawShaderMaterial=!0,this.type=`RawShaderMaterial`}},Hd=class extends wl{constructor(e){super(),this.isMeshStandardMaterial=!0,this.type=`MeshStandardMaterial`,this.defines={STANDARD:``},this.color=new V(16777215),this.roughness=1,this.metalness=0,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new V(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new z(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.roughnessMap=null,this.metalnessMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new Js,this.envMapIntensity=1,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap=`round`,this.wireframeLinejoin=`round`,this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.defines={STANDARD:``},this.color.copy(e.color),this.roughness=e.roughness,this.metalness=e.metalness,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.roughnessMap=e.roughnessMap,this.metalnessMap=e.metalnessMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.envMapIntensity=e.envMapIntensity,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}},Ud=class extends Hd{constructor(e){super(),this.isMeshPhysicalMaterial=!0,this.defines={STANDARD:``,PHYSICAL:``},this.type=`MeshPhysicalMaterial`,this.anisotropyRotation=0,this.anisotropyMap=null,this.clearcoatMap=null,this.clearcoatRoughness=0,this.clearcoatRoughnessMap=null,this.clearcoatNormalScale=new z(1,1),this.clearcoatNormalMap=null,this.ior=1.5,Object.defineProperty(this,"reflectivity",{get:function(){return qo(2.5*(this.ior-1)/(this.ior+1),0,1)},set:function(e){this.ior=(1+.4*e)/(1-.4*e)}}),this.iridescenceMap=null,this.iridescenceIOR=1.3,this.iridescenceThicknessRange=[100,400],this.iridescenceThicknessMap=null,this.sheenColor=new V(0),this.sheenColorMap=null,this.sheenRoughness=1,this.sheenRoughnessMap=null,this.transmissionMap=null,this.thickness=0,this.thicknessMap=null,this.attenuationDistance=1/0,this.attenuationColor=new V(1,1,1),this.specularIntensity=1,this.specularIntensityMap=null,this.specularColor=new V(1,1,1),this.specularColorMap=null,this._anisotropy=0,this._clearcoat=0,this._dispersion=0,this._iridescence=0,this._retroreflectivity=0,this._sheen=0,this._transmission=0,this.setValues(e)}get anisotropy(){return this._anisotropy}set anisotropy(e){this._anisotropy>0!=e>0&&this.version++,this._anisotropy=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!=e>0&&this.version++,this._clearcoat=e}get iridescence(){return this._iridescence}set iridescence(e){this._iridescence>0!=e>0&&this.version++,this._iridescence=e}get dispersion(){return this._dispersion}set dispersion(e){this._dispersion>0!=e>0&&this.version++,this._dispersion=e}get retroreflectivity(){return this._retroreflectivity}set retroreflectivity(e){this._retroreflectivity>0!=e>0&&this.version++,this._retroreflectivity=e}get sheen(){return this._sheen}set sheen(e){this._sheen>0!=e>0&&this.version++,this._sheen=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!=e>0&&this.version++,this._transmission=e}copy(e){return super.copy(e),this.defines={STANDARD:``,PHYSICAL:``},this.anisotropy=e.anisotropy,this.anisotropyRotation=e.anisotropyRotation,this.anisotropyMap=e.anisotropyMap,this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.dispersion=e.dispersion,this.ior=e.ior,this.iridescence=e.iridescence,this.iridescenceMap=e.iridescenceMap,this.iridescenceIOR=e.iridescenceIOR,this.iridescenceThicknessRange=[...e.iridescenceThicknessRange],this.iridescenceThicknessMap=e.iridescenceThicknessMap,this.retroreflectivity=e.retroreflectivity,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}},Wd=class extends wl{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type=`MeshDepthMaterial`,this.depthPacking=bo,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}},Gd=class extends wl{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type=`MeshDistanceMaterial`,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}};function Kd(e,t){return!e||e.constructor===t?e:typeof t.BYTES_PER_ELEMENT==`number`?new t(e):Array.prototype.slice.call(e)}function qd(e){return e!==void 0&&e.inTangents!==void 0&&e.outTangents!==void 0}function Jd(e){function t(t,n){return e[t]-e[n]}let n=e.length,r=Array(n);for(let e=0;e!==n;++e)r[e]=e;return r.sort(t),r}function Yd(e,t,n){let r=e.length,i=new e.constructor(r);for(let a=0,o=0;o!==r;++a){let r=n[a]*t;for(let n=0;n!==t;++n)i[o++]=e[r+n]}return i}function Xd(e,t,n,r){let i=1,a=e[0];for(;a!==void 0&&a[r]===void 0;)a=e[i++];if(a===void 0)return;let o=a[r];if(o!==void 0){if(Array.isArray(o))do o=a[r],o!==void 0&&(t.push(a.time),n.push(...o)),a=e[i++];while(a!==void 0);else if(o.toArray!==void 0)do o=a[r],o!==void 0&&(t.push(a.time),o.toArray(n,n.length)),a=e[i++];while(a!==void 0);else do o=a[r],o!==void 0&&(t.push(a.time),n.push(o)),a=e[i++];while(a!==void 0)}}var Zd=class{constructor(e,t,n,r){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=r===void 0?new t.constructor(n):r,this.sampleValues=t,this.valueSize=n,this.settings=null,this.DefaultSettings_={}}evaluate(e){let t=this.parameterPositions,n=this._cachedIndex,r=t[n],i=t[n-1];validate_interval:{seek:{let a;linear_scan:{forward_scan:if(!(e=i)){let o=t[1];e=i)break seek}a=n,n=0;break linear_scan}break validate_interval}for(;n>>1;et;)--a;if(++a,i!==0||a!==r){i>=a&&(a=Math.max(a,1),i=a-1);let e=this.getValueSize();this.times=n.slice(i,a),this.values=this.values.slice(i*e,a*e)}return this}validate(){let e=!0,t=this.getValueSize();t-Math.floor(t)!==0&&(Lo(`KeyframeTrack: Invalid value size in track.`,this),e=!1);let n=this.times,r=this.values,i=n.length;i===0&&(Lo(`KeyframeTrack: Track is empty.`,this),e=!1);let a=null;for(let t=0;t!==i;t++){let r=n[t];if(typeof r==`number`&&isNaN(r)){Lo(`KeyframeTrack: Time is not a valid number.`,this,t,r),e=!1;break}if(a!==null&&a>r){Lo(`KeyframeTrack: Out of order keys.`,this,t,r,a),e=!1;break}a=r}if(r!==void 0&&Ao(r))for(let t=0,n=r.length;t!==n;++t){let n=r[t];if(isNaN(n)){Lo(`KeyframeTrack: Value is not a valid number.`,this,t,n),e=!1;break}}return e}optimize(){let e=this.times.slice(),t=this.values.slice(),n=this.getValueSize(),r=this.getInterpolation()===mo,i=e.length-1,a=1;for(let o=1;o0){e[a]=e[i];for(let e=i*n,r=a*n,o=0;o!==n;++o)t[r+o]=t[e+o];++a}return a===e.length?(this.times=e,this.values=t):(this.times=e.slice(0,a),this.values=t.slice(0,a*n)),this}clone(){let e=this.times.slice(),t=this.values.slice(),n=this.constructor,r=new n(this.name,e,t);return r.createInterpolant=this.createInterpolant,qd(this.settings)&&(r.settings={inTangents:this.settings.inTangents.slice(),outTangents:this.settings.outTangents.slice()}),r}};function sf(e,t){for(let n=0,r=e.length;n!==r;n+=2)e[n]*=t}of.prototype.ValueTypeName=``,of.prototype.TimeBufferType=Float32Array,of.prototype.ValueBufferType=Float32Array,of.prototype.DefaultInterpolation=po;var cf=class extends of{constructor(e,t,n){super(e,t,n)}};cf.prototype.ValueTypeName=`bool`,cf.prototype.ValueBufferType=Array,cf.prototype.DefaultInterpolation=fo,cf.prototype.InterpolantFactoryMethodLinear=void 0,cf.prototype.InterpolantFactoryMethodSmooth=void 0;var lf=class extends of{constructor(e,t,n,r){super(e,t,n,r)}};lf.prototype.ValueTypeName=`color`;var uf=class extends of{constructor(e,t,n,r){super(e,t,n,r)}};uf.prototype.ValueTypeName=`number`;var df=class extends Zd{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e,t,n,r){let i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=(n-t)/(r-t),c=e*o;for(let e=c+o;c!==e;c+=4)ms.slerpFlat(i,0,a,c-o,a,c,s);return i}},ff=class extends of{constructor(e,t,n,r){super(e,t,n,r)}InterpolantFactoryMethodLinear(e){return new df(this.times,this.values,this.getValueSize(),e)}};ff.prototype.ValueTypeName=`quaternion`,ff.prototype.InterpolantFactoryMethodSmooth=void 0;var pf=class extends of{constructor(e,t,n){super(e,t,n)}};pf.prototype.ValueTypeName=`string`,pf.prototype.ValueBufferType=Array,pf.prototype.DefaultInterpolation=fo,pf.prototype.InterpolantFactoryMethodLinear=void 0,pf.prototype.InterpolantFactoryMethodSmooth=void 0;var mf=class extends of{constructor(e,t,n,r){super(e,t,n,r)}};mf.prototype.ValueTypeName=`vector`;var hf=class{constructor(e=``,t=-1,n=[],r=yo){this.name=e,this.tracks=n,this.duration=t,this.blendMode=r,this.uuid=Ko(),this.userData={},this.duration<0&&this.resetDuration()}static parse(e){let t=[],n=e.tracks,r=1/(e.fps||1);for(let e=0,i=n.length;e!==i;++e)t.push(_f(n[e]).scale(r));let i=new this(e.name,e.duration,t,e.blendMode);return i.uuid=e.uuid,i.userData=JSON.parse(e.userData||`{}`),i}static toJSON(e){let t=[],n=e.tracks,r={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode,userData:JSON.stringify(e.userData)};for(let e=0,r=n.length;e!==r;++e)t.push(of.toJSON(n[e]));return r}static CreateFromMorphTargetSequence(e,t,n,r){let i=t.length,a=[];for(let e=0;e1){let e=a[1],t=r[e];t||(r[e]=t=[]),t.push(n)}}let a=[];for(let e in r)a.push(this.CreateFromMorphTargetSequence(e,r[e],t,n));return a}resetDuration(){let e=this.tracks,t=0;for(let n=0,r=e.length;n!==r;++n){let e=this.tracks[n];t=Math.max(t,e.times[e.times.length-1])}return this.duration=t,this}trim(){for(let e=0;e{t&&t(i),this.manager.itemEnd(e)},0);return}if(Sf[e]!==void 0){Sf[e].push({onLoad:t,onProgress:n,onError:r});return}Sf[e]=[],Sf[e].push({onLoad:t,onProgress:n,onError:r});let a=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?`include`:`same-origin`,signal:typeof AbortSignal.any==`function`?AbortSignal.any([this._abortController.signal,this.manager.abortController.signal]):this._abortController.signal}),o=this.mimeType,s=this.responseType;fetch(a).then(t=>{if(t.status===200||t.status===0){if(t.status===0&&Io(`FileLoader: HTTP Status 0 received.`),typeof ReadableStream>`u`||t.body===void 0||t.body.getReader===void 0)return t;let n=Sf[e],r=t.body.getReader(),i=t.headers.get(`X-File-Size`)||t.headers.get(`Content-Length`),a=i?parseInt(i):0,o=a!==0,s=0,c=new ReadableStream({start(e){t();function t(){r.read().then(({done:r,value:i})=>{if(r)e.close();else{s+=i.byteLength;let r=new ProgressEvent(`progress`,{lengthComputable:o,loaded:s,total:a});for(let e=0,t=n.length;e{e.error(t)})}}});return new Response(c)}throw new Cf(`fetch for "${t.url}" responded with ${t.status}: ${t.statusText}`,t)}).then(e=>{switch(s){case`arraybuffer`:return e.arrayBuffer();case`blob`:return e.blob();case`document`:return e.text().then(e=>new DOMParser().parseFromString(e,o));case`json`:return e.json();default:if(o===``)return e.text();{let t=/charset="?([^;"\s]*)"?/i.exec(o),n=t&&t[1]?t[1].toLowerCase():void 0,r=new TextDecoder(n);return e.arrayBuffer().then(e=>r.decode(e))}}}).then(t=>{vf.add(`file:${e}`,t);let n=Sf[e];delete Sf[e];for(let e=0,r=n.length;e{let n=Sf[e];if(n===void 0)throw this.manager.itemError(e),t;delete Sf[e];for(let e=0,r=n.length;e{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}abort(){return this._abortController.abort(),this._abortController=new AbortController,this}},Tf=new WeakMap,Ef=class extends xf{constructor(e){super(e)}load(e,t,n,r){this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);let i=this,a=vf.get(`image:${e}`);if(a!==void 0){if(a.complete===!0)i.manager.itemStart(e),setTimeout(function(){t&&t(a),i.manager.itemEnd(e)},0);else{let e=Tf.get(a);e===void 0&&(e=[],Tf.set(a,e)),e.push({onLoad:t,onError:r})}return a}let o=jo(`img`);function s(){l(),t&&t(this);let n=Tf.get(this)||[];for(let e=0;e`u`&&Io(`ImageBitmapLoader: createImageBitmap() not supported.`),typeof fetch>`u`&&Io(`ImageBitmapLoader: fetch() not supported.`),this.options={premultiplyAlpha:`none`},this._abortController=new AbortController}setOptions(e){return this.options=e,this}load(e,t,n,r){e===void 0&&(e=``),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);let i=this,a=vf.get(`image-bitmap:${e}`);if(a!==void 0){if(i.manager.itemStart(e),a.then){a.then(n=>{Xf.has(a)===!0?(r&&r(Xf.get(a)),i.manager.itemError(e),i.manager.itemEnd(e)):(t&&t(n),i.manager.itemEnd(e))});return}setTimeout(function(){t&&t(a),i.manager.itemEnd(e)},0);return}let o={};o.credentials=this.crossOrigin===`anonymous`?`same-origin`:`include`,o.headers=this.requestHeader,o.signal=typeof AbortSignal.any==`function`?AbortSignal.any([this._abortController.signal,this.manager.abortController.signal]):this._abortController.signal;let s=fetch(e,o).then(function(e){return e.blob()}).then(function(e){return createImageBitmap(e,Object.assign({},i.options,{colorSpaceConversion:`none`}))}).then(function(n){return vf.add(`image-bitmap:${e}`,n),t&&t(n),i.manager.itemEnd(e),n}).catch(function(t){r&&r(t),Xf.set(s,t),vf.remove(`image-bitmap:${e}`),i.manager.itemError(e),i.manager.itemEnd(e)});vf.add(`image-bitmap:${e}`,s),i.manager.itemStart(e)}abort(){return this._abortController.abort(),this._abortController=new AbortController,this}},Qf=-90,$f=1,ep=class extends dc{constructor(e,t,n){super(),this.type=`CubeCamera`,this.renderTarget=n,this.coordinateSystem=null,this.activeMipmapLevel=0;let r=new Vf(Qf,$f,e,t);r.layers=this.layers,this.add(r);let i=new Vf(Qf,$f,e,t);i.layers=this.layers,this.add(i);let a=new Vf(Qf,$f,e,t);a.layers=this.layers,this.add(a);let o=new Vf(Qf,$f,e,t);o.layers=this.layers,this.add(o);let s=new Vf(Qf,$f,e,t);s.layers=this.layers,this.add(s);let c=new Vf(Qf,$f,e,t);c.layers=this.layers,this.add(c)}updateCoordinateSystem(){let e=this.coordinateSystem,t=this.children.concat(),[n,r,i,a,o,s]=t;for(let e of t)this.remove(e);if(e===2e3)n.up.set(0,1,0),n.lookAt(1,0,0),r.up.set(0,1,0),r.lookAt(-1,0,0),i.up.set(0,0,-1),i.lookAt(0,1,0),a.up.set(0,0,1),a.lookAt(0,-1,0),o.up.set(0,1,0),o.lookAt(0,0,1),s.up.set(0,1,0),s.lookAt(0,0,-1);else if(e===2001)n.up.set(0,-1,0),n.lookAt(-1,0,0),r.up.set(0,-1,0),r.lookAt(1,0,0),i.up.set(0,0,1),i.lookAt(0,1,0),a.up.set(0,0,-1),a.lookAt(0,-1,0),o.up.set(0,-1,0),o.lookAt(0,0,1),s.up.set(0,-1,0),s.lookAt(0,0,-1);else throw Error(`THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: `+e);for(let e of t)this.add(e),e.updateMatrixWorld()}update(e,t){this.parent===null&&this.updateMatrixWorld();let{renderTarget:n,activeMipmapLevel:r}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());let[i,a,o,s,c,l]=this.children,u=e.getRenderTarget(),d=e.getActiveCubeFace(),f=e.getActiveMipmapLevel(),p=e.xr.enabled;e.xr.enabled=!1;let m=n.texture.generateMipmaps;n.texture.generateMipmaps=!1;let h=!1;h=e.isWebGLRenderer===!0?e.state.buffers.depth.getReversed():e.reversedDepthBuffer,e.setRenderTarget(n,0,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,i),e.setRenderTarget(n,1,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,a),e.setRenderTarget(n,2,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,o),e.setRenderTarget(n,3,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,s),e.setRenderTarget(n,4,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,c),n.texture.generateMipmaps=m,e.setRenderTarget(n,5,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,l),e.setRenderTarget(u,d,f),e.xr.enabled=p,n.texture.needsPMREMUpdate=!0}},tp=class extends Vf{constructor(e=[]){super(),this.isArrayCamera=!0,this.isMultiViewCamera=!1,this.cameras=e}},np=class{constructor(){this._previousTime=0,this._currentTime=0,this._startTime=performance.now(),this._delta=0,this._elapsed=0,this._timescale=1,this._document=null,this._pageVisibilityHandler=null}connect(e){this._document=e,e.hidden!==void 0&&(this._pageVisibilityHandler=rp.bind(this),e.addEventListener(`visibilitychange`,this._pageVisibilityHandler,!1))}disconnect(){this._pageVisibilityHandler!==null&&(this._document.removeEventListener(`visibilitychange`,this._pageVisibilityHandler),this._pageVisibilityHandler=null),this._document=null}getDelta(){return this._delta/1e3}getElapsed(){return this._elapsed/1e3}getTimescale(){return this._timescale}setTimescale(e){return this._timescale=e,this}reset(){return this._currentTime=performance.now()-this._startTime,this}dispose(){this.disconnect()}update(e){return this._pageVisibilityHandler!==null&&this._document.hidden===!0?this._delta=0:(this._previousTime=this._currentTime,this._currentTime=(e===void 0?performance.now():e)-this._startTime,this._delta=(this._currentTime-this._previousTime)*this._timescale,this._elapsed+=this._delta),this}};function rp(){this._document.hidden===!1&&this.reset()}var ip=`\\[\\]\\.:\\/`,ap=RegExp(`[\\[\\]\\.:\\/]`,`g`),op=`[^\\[\\]\\.:\\/]`,sp=`[^`+ip.replace(`\\.`,``)+`]`,cp=`((?:WC+[\\/:])*)`.replace(`WC`,op),lp=`(WCOD+)?`.replace(`WCOD`,sp),up=`(?:\\.(WC+)(?:\\[(.+)\\])?)?`.replace(`WC`,op),dp=`\\.(WC+)(?:\\[(.+)\\])?`.replace(`WC`,op),fp=RegExp(`^`+cp+lp+up+dp+`$`),pp=[`material`,`materials`,`bones`,`map`],mp=class{constructor(e,t,n){let r=n||hp.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,r)}getValue(e,t){this.bind();let n=this._targetGroup.nCachedObjects_,r=this._bindings[n];r!==void 0&&r.getValue(e,t)}setValue(e,t){let n=this._bindings;for(let r=this._targetGroup.nCachedObjects_,i=n.length;r!==i;++r)n[r].setValue(e,t)}bind(){let e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].bind()}unbind(){let e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].unbind()}},hp=class e{constructor(t,n,r){this.path=n,this.parsedPath=r||e.parseTrackName(n),this.node=e.findNode(t,this.parsedPath.nodeName),this.rootNode=t,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(t,n,r){return t&&t.isAnimationObjectGroup?new e.Composite(t,n,r):new e(t,n,r)}static sanitizeNodeName(e){return e.replace(/\s/g,`_`).replace(ap,``)}static parseTrackName(e){let t=fp.exec(e);if(t===null)throw Error(`THREE.PropertyBinding: Cannot parse trackName: `+e);let n={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},r=n.nodeName&&n.nodeName.lastIndexOf(`.`);if(r!==void 0&&r!==-1){let e=n.nodeName.substring(r+1);pp.indexOf(e)!==-1&&(n.nodeName=n.nodeName.substring(0,r),n.objectName=e)}if(n.propertyName===null||n.propertyName.length===0)throw Error(`THREE.PropertyBinding: can not parse propertyName from trackName: `+e);return n}static findNode(e,t){if(t===void 0||t===``||t===`.`||t===-1||t===e.name||t===e.uuid)return e;if(e.skeleton){let n=e.skeleton.getBoneByName(t);if(n!==void 0)return n}if(e.children){let n=function(e){for(let r=0;r=this.min.x&&e.x<=this.max.x&&e.y>=this.min.y&&e.y<=this.max.y}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y))}intersectsBox(e){return e.max.x>=this.min.x&&e.min.x<=this.max.x&&e.max.y>=this.min.y&&e.min.y<=this.max.y}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,gp).distanceTo(e)}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}},vp=new B,yp=new Rs,bp=new Rs,xp=class extends Au{constructor(e){let t=Sp(e),n=new hl,r=[],i=[];for(let e=0;ee.start-t.start);let t=0;for(let e=1;e0&&(t.defines=this.defines),t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t.lights=this.lights,t.clipping=this.clipping;let n={};for(let e in this.extensions)this.extensions[e]===!0&&(n[e]=!0);return Object.keys(n).length>0&&(t.extensions=n),t}fromJSON(e,t){if(super.fromJSON(e,t),e.uniforms!==void 0)for(let n in e.uniforms){let r=e.uniforms[n];switch(this.uniforms[n]={},r.type){case`t`:this.uniforms[n].value=t[r.value]||null;break;case`c`:this.uniforms[n].value=new V().setHex(r.value);break;case`v2`:this.uniforms[n].value=new z().fromArray(r.value);break;case`v3`:this.uniforms[n].value=new B().fromArray(r.value);break;case`v4`:this.uniforms[n].value=new Ps().fromArray(r.value);break;case`m3`:this.uniforms[n].value=new vs().fromArray(r.value);break;case`m4`:this.uniforms[n].value=new zs().fromArray(r.value);break;default:this.uniforms[n].value=r.value}}if(e.defines!==void 0&&(this.defines=e.defines),e.vertexShader!==void 0&&(this.vertexShader=e.vertexShader),e.fragmentShader!==void 0&&(this.fragmentShader=e.fragmentShader),e.glslVersion!==void 0&&(this.glslVersion=e.glslVersion),e.extensions!==void 0)for(let t in e.extensions)this.extensions[t]=e.extensions[t];return e.lights!==void 0&&(this.lights=e.lights),e.clipping!==void 0&&(this.clipping=e.clipping),this}},Hd=class extends Vd{constructor(e){super(e),this.isRawShaderMaterial=!0,this.type=`RawShaderMaterial`}},Ud=class extends Tl{constructor(e){super(),this.isMeshStandardMaterial=!0,this.type=`MeshStandardMaterial`,this.defines={STANDARD:``},this.color=new V(16777215),this.roughness=1,this.metalness=0,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new V(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=0,this.normalScale=new z(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.roughnessMap=null,this.metalnessMap=null,this.alphaMap=null,this.envMap=null,this.envMapRotation=new Ys,this.envMapIntensity=1,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap=`round`,this.wireframeLinejoin=`round`,this.flatShading=!1,this.fog=!0,this.setValues(e)}copy(e){return super.copy(e),this.defines={STANDARD:``},this.color.copy(e.color),this.roughness=e.roughness,this.metalness=e.metalness,this.map=e.map,this.lightMap=e.lightMap,this.lightMapIntensity=e.lightMapIntensity,this.aoMap=e.aoMap,this.aoMapIntensity=e.aoMapIntensity,this.emissive.copy(e.emissive),this.emissiveMap=e.emissiveMap,this.emissiveIntensity=e.emissiveIntensity,this.bumpMap=e.bumpMap,this.bumpScale=e.bumpScale,this.normalMap=e.normalMap,this.normalMapType=e.normalMapType,this.normalScale.copy(e.normalScale),this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.roughnessMap=e.roughnessMap,this.metalnessMap=e.metalnessMap,this.alphaMap=e.alphaMap,this.envMap=e.envMap,this.envMapRotation.copy(e.envMapRotation),this.envMapIntensity=e.envMapIntensity,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this.wireframeLinecap=e.wireframeLinecap,this.wireframeLinejoin=e.wireframeLinejoin,this.flatShading=e.flatShading,this.fog=e.fog,this}},Wd=class extends Ud{constructor(e){super(),this.isMeshPhysicalMaterial=!0,this.defines={STANDARD:``,PHYSICAL:``},this.type=`MeshPhysicalMaterial`,this.anisotropyRotation=0,this.anisotropyMap=null,this.clearcoatMap=null,this.clearcoatRoughness=0,this.clearcoatRoughnessMap=null,this.clearcoatNormalScale=new z(1,1),this.clearcoatNormalMap=null,this.ior=1.5,Object.defineProperty(this,"reflectivity",{get:function(){return Jo(2.5*(this.ior-1)/(this.ior+1),0,1)},set:function(e){this.ior=(1+.4*e)/(1-.4*e)}}),this.iridescenceMap=null,this.iridescenceIOR=1.3,this.iridescenceThicknessRange=[100,400],this.iridescenceThicknessMap=null,this.sheenColor=new V(0),this.sheenColorMap=null,this.sheenRoughness=1,this.sheenRoughnessMap=null,this.transmissionMap=null,this.thickness=0,this.thicknessMap=null,this.attenuationDistance=1/0,this.attenuationColor=new V(1,1,1),this.specularIntensity=1,this.specularIntensityMap=null,this.specularColor=new V(1,1,1),this.specularColorMap=null,this._anisotropy=0,this._clearcoat=0,this._dispersion=0,this._iridescence=0,this._retroreflectivity=0,this._sheen=0,this._transmission=0,this.setValues(e)}get anisotropy(){return this._anisotropy}set anisotropy(e){this._anisotropy>0!=e>0&&this.version++,this._anisotropy=e}get clearcoat(){return this._clearcoat}set clearcoat(e){this._clearcoat>0!=e>0&&this.version++,this._clearcoat=e}get iridescence(){return this._iridescence}set iridescence(e){this._iridescence>0!=e>0&&this.version++,this._iridescence=e}get dispersion(){return this._dispersion}set dispersion(e){this._dispersion>0!=e>0&&this.version++,this._dispersion=e}get retroreflectivity(){return this._retroreflectivity}set retroreflectivity(e){this._retroreflectivity>0!=e>0&&this.version++,this._retroreflectivity=e}get sheen(){return this._sheen}set sheen(e){this._sheen>0!=e>0&&this.version++,this._sheen=e}get transmission(){return this._transmission}set transmission(e){this._transmission>0!=e>0&&this.version++,this._transmission=e}copy(e){return super.copy(e),this.defines={STANDARD:``,PHYSICAL:``},this.anisotropy=e.anisotropy,this.anisotropyRotation=e.anisotropyRotation,this.anisotropyMap=e.anisotropyMap,this.clearcoat=e.clearcoat,this.clearcoatMap=e.clearcoatMap,this.clearcoatRoughness=e.clearcoatRoughness,this.clearcoatRoughnessMap=e.clearcoatRoughnessMap,this.clearcoatNormalMap=e.clearcoatNormalMap,this.clearcoatNormalScale.copy(e.clearcoatNormalScale),this.dispersion=e.dispersion,this.ior=e.ior,this.iridescence=e.iridescence,this.iridescenceMap=e.iridescenceMap,this.iridescenceIOR=e.iridescenceIOR,this.iridescenceThicknessRange=[...e.iridescenceThicknessRange],this.iridescenceThicknessMap=e.iridescenceThicknessMap,this.retroreflectivity=e.retroreflectivity,this.sheen=e.sheen,this.sheenColor.copy(e.sheenColor),this.sheenColorMap=e.sheenColorMap,this.sheenRoughness=e.sheenRoughness,this.sheenRoughnessMap=e.sheenRoughnessMap,this.transmission=e.transmission,this.transmissionMap=e.transmissionMap,this.thickness=e.thickness,this.thicknessMap=e.thicknessMap,this.attenuationDistance=e.attenuationDistance,this.attenuationColor.copy(e.attenuationColor),this.specularIntensity=e.specularIntensity,this.specularIntensityMap=e.specularIntensityMap,this.specularColor.copy(e.specularColor),this.specularColorMap=e.specularColorMap,this}},Gd=class extends Tl{constructor(e){super(),this.isMeshDepthMaterial=!0,this.type=`MeshDepthMaterial`,this.depthPacking=xo,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(e)}copy(e){return super.copy(e),this.depthPacking=e.depthPacking,this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this.wireframe=e.wireframe,this.wireframeLinewidth=e.wireframeLinewidth,this}},Kd=class extends Tl{constructor(e){super(),this.isMeshDistanceMaterial=!0,this.type=`MeshDistanceMaterial`,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(e)}copy(e){return super.copy(e),this.map=e.map,this.alphaMap=e.alphaMap,this.displacementMap=e.displacementMap,this.displacementScale=e.displacementScale,this.displacementBias=e.displacementBias,this}};function qd(e,t){return!e||e.constructor===t?e:typeof t.BYTES_PER_ELEMENT==`number`?new t(e):Array.prototype.slice.call(e)}function Jd(e){return e!==void 0&&e.inTangents!==void 0&&e.outTangents!==void 0}function Yd(e){function t(t,n){return e[t]-e[n]}let n=e.length,r=Array(n);for(let e=0;e!==n;++e)r[e]=e;return r.sort(t),r}function Xd(e,t,n){let r=e.length,i=new e.constructor(r);for(let a=0,o=0;o!==r;++a){let r=n[a]*t;for(let n=0;n!==t;++n)i[o++]=e[r+n]}return i}function Zd(e,t,n,r){let i=1,a=e[0];for(;a!==void 0&&a[r]===void 0;)a=e[i++];if(a===void 0)return;let o=a[r];if(o!==void 0){if(Array.isArray(o))do o=a[r],o!==void 0&&(t.push(a.time),n.push(...o)),a=e[i++];while(a!==void 0);else if(o.toArray!==void 0)do o=a[r],o!==void 0&&(t.push(a.time),o.toArray(n,n.length)),a=e[i++];while(a!==void 0);else do o=a[r],o!==void 0&&(t.push(a.time),n.push(o)),a=e[i++];while(a!==void 0)}}var Qd=class{constructor(e,t,n,r){this.parameterPositions=e,this._cachedIndex=0,this.resultBuffer=r===void 0?new t.constructor(n):r,this.sampleValues=t,this.valueSize=n,this.settings=null,this.DefaultSettings_={}}evaluate(e){let t=this.parameterPositions,n=this._cachedIndex,r=t[n],i=t[n-1];validate_interval:{seek:{let a;linear_scan:{forward_scan:if(!(e=i)){let o=t[1];e=i)break seek}a=n,n=0;break linear_scan}break validate_interval}for(;n>>1;et;)--a;if(++a,i!==0||a!==r){i>=a&&(a=Math.max(a,1),i=a-1);let e=this.getValueSize();this.times=n.slice(i,a),this.values=this.values.slice(i*e,a*e)}return this}validate(){let e=!0,t=this.getValueSize();t-Math.floor(t)!==0&&(Ro(`KeyframeTrack: Invalid value size in track.`,this),e=!1);let n=this.times,r=this.values,i=n.length;i===0&&(Ro(`KeyframeTrack: Track is empty.`,this),e=!1);let a=null;for(let t=0;t!==i;t++){let r=n[t];if(typeof r==`number`&&isNaN(r)){Ro(`KeyframeTrack: Time is not a valid number.`,this,t,r),e=!1;break}if(a!==null&&a>r){Ro(`KeyframeTrack: Out of order keys.`,this,t,r,a),e=!1;break}a=r}if(r!==void 0&&jo(r))for(let t=0,n=r.length;t!==n;++t){let n=r[t];if(isNaN(n)){Ro(`KeyframeTrack: Value is not a valid number.`,this,t,n),e=!1;break}}return e}optimize(){let e=this.times.slice(),t=this.values.slice(),n=this.getValueSize(),r=this.getInterpolation()===ho,i=e.length-1,a=1;for(let o=1;o0){e[a]=e[i];for(let e=i*n,r=a*n,o=0;o!==n;++o)t[r+o]=t[e+o];++a}return a===e.length?(this.times=e,this.values=t):(this.times=e.slice(0,a),this.values=t.slice(0,a*n)),this}clone(){let e=this.times.slice(),t=this.values.slice(),n=this.constructor,r=new n(this.name,e,t);return r.createInterpolant=this.createInterpolant,Jd(this.settings)&&(r.settings={inTangents:this.settings.inTangents.slice(),outTangents:this.settings.outTangents.slice()}),r}};function cf(e,t){for(let n=0,r=e.length;n!==r;n+=2)e[n]*=t}sf.prototype.ValueTypeName=``,sf.prototype.TimeBufferType=Float32Array,sf.prototype.ValueBufferType=Float32Array,sf.prototype.DefaultInterpolation=mo;var lf=class extends sf{constructor(e,t,n){super(e,t,n)}};lf.prototype.ValueTypeName=`bool`,lf.prototype.ValueBufferType=Array,lf.prototype.DefaultInterpolation=po,lf.prototype.InterpolantFactoryMethodLinear=void 0,lf.prototype.InterpolantFactoryMethodSmooth=void 0;var uf=class extends sf{constructor(e,t,n,r){super(e,t,n,r)}};uf.prototype.ValueTypeName=`color`;var df=class extends sf{constructor(e,t,n,r){super(e,t,n,r)}};df.prototype.ValueTypeName=`number`;var ff=class extends Qd{constructor(e,t,n,r){super(e,t,n,r)}interpolate_(e,t,n,r){let i=this.resultBuffer,a=this.sampleValues,o=this.valueSize,s=(n-t)/(r-t),c=e*o;for(let e=c+o;c!==e;c+=4)hs.slerpFlat(i,0,a,c-o,a,c,s);return i}},pf=class extends sf{constructor(e,t,n,r){super(e,t,n,r)}InterpolantFactoryMethodLinear(e){return new ff(this.times,this.values,this.getValueSize(),e)}};pf.prototype.ValueTypeName=`quaternion`,pf.prototype.InterpolantFactoryMethodSmooth=void 0;var mf=class extends sf{constructor(e,t,n){super(e,t,n)}};mf.prototype.ValueTypeName=`string`,mf.prototype.ValueBufferType=Array,mf.prototype.DefaultInterpolation=po,mf.prototype.InterpolantFactoryMethodLinear=void 0,mf.prototype.InterpolantFactoryMethodSmooth=void 0;var hf=class extends sf{constructor(e,t,n,r){super(e,t,n,r)}};hf.prototype.ValueTypeName=`vector`;var gf=class{constructor(e=``,t=-1,n=[],r=bo){this.name=e,this.tracks=n,this.duration=t,this.blendMode=r,this.uuid=qo(),this.userData={},this.duration<0&&this.resetDuration()}static parse(e){let t=[],n=e.tracks,r=1/(e.fps||1);for(let e=0,i=n.length;e!==i;++e)t.push(vf(n[e]).scale(r));let i=new this(e.name,e.duration,t,e.blendMode);return i.uuid=e.uuid,i.userData=JSON.parse(e.userData||`{}`),i}static toJSON(e){let t=[],n=e.tracks,r={name:e.name,duration:e.duration,tracks:t,uuid:e.uuid,blendMode:e.blendMode,userData:JSON.stringify(e.userData)};for(let e=0,r=n.length;e!==r;++e)t.push(sf.toJSON(n[e]));return r}static CreateFromMorphTargetSequence(e,t,n,r){let i=t.length,a=[];for(let e=0;e1){let e=a[1],t=r[e];t||(r[e]=t=[]),t.push(n)}}let a=[];for(let e in r)a.push(this.CreateFromMorphTargetSequence(e,r[e],t,n));return a}resetDuration(){let e=this.tracks,t=0;for(let n=0,r=e.length;n!==r;++n){let e=this.tracks[n];t=Math.max(t,e.times[e.times.length-1])}return this.duration=t,this}trim(){for(let e=0;e{t&&t(i),this.manager.itemEnd(e)},0);return}if(Cf[e]!==void 0){Cf[e].push({onLoad:t,onProgress:n,onError:r});return}Cf[e]=[],Cf[e].push({onLoad:t,onProgress:n,onError:r});let a=new Request(e,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?`include`:`same-origin`,signal:typeof AbortSignal.any==`function`?AbortSignal.any([this._abortController.signal,this.manager.abortController.signal]):this._abortController.signal}),o=this.mimeType,s=this.responseType;fetch(a).then(t=>{if(t.status===200||t.status===0){if(t.status===0&&Lo(`FileLoader: HTTP Status 0 received.`),typeof ReadableStream>`u`||t.body===void 0||t.body.getReader===void 0)return t;let n=Cf[e],r=t.body.getReader(),i=t.headers.get(`X-File-Size`)||t.headers.get(`Content-Length`),a=i?parseInt(i):0,o=a!==0,s=0,c=new ReadableStream({start(e){t();function t(){r.read().then(({done:r,value:i})=>{if(r)e.close();else{s+=i.byteLength;let r=new ProgressEvent(`progress`,{lengthComputable:o,loaded:s,total:a});for(let e=0,t=n.length;e{e.error(t)})}}});return new Response(c)}throw new wf(`fetch for "${t.url}" responded with ${t.status}: ${t.statusText}`,t)}).then(e=>{switch(s){case`arraybuffer`:return e.arrayBuffer();case`blob`:return e.blob();case`document`:return e.text().then(e=>new DOMParser().parseFromString(e,o));case`json`:return e.json();default:if(o===``)return e.text();{let t=/charset="?([^;"\s]*)"?/i.exec(o),n=t&&t[1]?t[1].toLowerCase():void 0,r=new TextDecoder(n);return e.arrayBuffer().then(e=>r.decode(e))}}}).then(t=>{yf.add(`file:${e}`,t);let n=Cf[e];delete Cf[e];for(let e=0,r=n.length;e{let n=Cf[e];if(n===void 0)throw this.manager.itemError(e),t;delete Cf[e];for(let e=0,r=n.length;e{this.manager.itemEnd(e)}),this.manager.itemStart(e)}setResponseType(e){return this.responseType=e,this}setMimeType(e){return this.mimeType=e,this}abort(){return this._abortController.abort(),this._abortController=new AbortController,this}},Ef=new WeakMap,Df=class extends Sf{constructor(e){super(e)}load(e,t,n,r){this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);let i=this,a=yf.get(`image:${e}`);if(a!==void 0){if(a.complete===!0)i.manager.itemStart(e),setTimeout(function(){t&&t(a),i.manager.itemEnd(e)},0);else{let e=Ef.get(a);e===void 0&&(e=[],Ef.set(a,e)),e.push({onLoad:t,onError:r})}return a}let o=Mo(`img`);function s(){l(),t&&t(this);let n=Ef.get(this)||[];for(let e=0;e`u`&&Lo(`ImageBitmapLoader: createImageBitmap() not supported.`),typeof fetch>`u`&&Lo(`ImageBitmapLoader: fetch() not supported.`),this.options={premultiplyAlpha:`none`},this._abortController=new AbortController}setOptions(e){return this.options=e,this}load(e,t,n,r){e===void 0&&(e=``),this.path!==void 0&&(e=this.path+e),e=this.manager.resolveURL(e);let i=this,a=yf.get(`image-bitmap:${e}`);if(a!==void 0){if(i.manager.itemStart(e),a.then){a.then(n=>{Zf.has(a)===!0?(r&&r(Zf.get(a)),i.manager.itemError(e),i.manager.itemEnd(e)):(t&&t(n),i.manager.itemEnd(e))});return}setTimeout(function(){t&&t(a),i.manager.itemEnd(e)},0);return}let o={};o.credentials=this.crossOrigin===`anonymous`?`same-origin`:`include`,o.headers=this.requestHeader,o.signal=typeof AbortSignal.any==`function`?AbortSignal.any([this._abortController.signal,this.manager.abortController.signal]):this._abortController.signal;let s=fetch(e,o).then(function(e){return e.blob()}).then(function(e){return createImageBitmap(e,Object.assign({},i.options,{colorSpaceConversion:`none`}))}).then(function(n){return yf.add(`image-bitmap:${e}`,n),t&&t(n),i.manager.itemEnd(e),n}).catch(function(t){r&&r(t),Zf.set(s,t),yf.remove(`image-bitmap:${e}`),i.manager.itemError(e),i.manager.itemEnd(e)});yf.add(`image-bitmap:${e}`,s),i.manager.itemStart(e)}abort(){return this._abortController.abort(),this._abortController=new AbortController,this}},$f=-90,ep=1,tp=class extends fc{constructor(e,t,n){super(),this.type=`CubeCamera`,this.renderTarget=n,this.coordinateSystem=null,this.activeMipmapLevel=0;let r=new Hf($f,ep,e,t);r.layers=this.layers,this.add(r);let i=new Hf($f,ep,e,t);i.layers=this.layers,this.add(i);let a=new Hf($f,ep,e,t);a.layers=this.layers,this.add(a);let o=new Hf($f,ep,e,t);o.layers=this.layers,this.add(o);let s=new Hf($f,ep,e,t);s.layers=this.layers,this.add(s);let c=new Hf($f,ep,e,t);c.layers=this.layers,this.add(c)}updateCoordinateSystem(){let e=this.coordinateSystem,t=this.children.concat(),[n,r,i,a,o,s]=t;for(let e of t)this.remove(e);if(e===2e3)n.up.set(0,1,0),n.lookAt(1,0,0),r.up.set(0,1,0),r.lookAt(-1,0,0),i.up.set(0,0,-1),i.lookAt(0,1,0),a.up.set(0,0,1),a.lookAt(0,-1,0),o.up.set(0,1,0),o.lookAt(0,0,1),s.up.set(0,1,0),s.lookAt(0,0,-1);else if(e===2001)n.up.set(0,-1,0),n.lookAt(-1,0,0),r.up.set(0,-1,0),r.lookAt(1,0,0),i.up.set(0,0,1),i.lookAt(0,1,0),a.up.set(0,0,-1),a.lookAt(0,-1,0),o.up.set(0,-1,0),o.lookAt(0,0,1),s.up.set(0,-1,0),s.lookAt(0,0,-1);else throw Error(`THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: `+e);for(let e of t)this.add(e),e.updateMatrixWorld()}update(e,t){this.parent===null&&this.updateMatrixWorld();let{renderTarget:n,activeMipmapLevel:r}=this;this.coordinateSystem!==e.coordinateSystem&&(this.coordinateSystem=e.coordinateSystem,this.updateCoordinateSystem());let[i,a,o,s,c,l]=this.children,u=e.getRenderTarget(),d=e.getActiveCubeFace(),f=e.getActiveMipmapLevel(),p=e.xr.enabled;e.xr.enabled=!1;let m=n.texture.generateMipmaps;n.texture.generateMipmaps=!1;let h=!1;h=e.isWebGLRenderer===!0?e.state.buffers.depth.getReversed():e.reversedDepthBuffer,e.setRenderTarget(n,0,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,i),e.setRenderTarget(n,1,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,a),e.setRenderTarget(n,2,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,o),e.setRenderTarget(n,3,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,s),e.setRenderTarget(n,4,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,c),n.texture.generateMipmaps=m,e.setRenderTarget(n,5,r),h&&e.autoClear===!1&&e.clearDepth(),e.render(t,l),e.setRenderTarget(u,d,f),e.xr.enabled=p,n.texture.needsPMREMUpdate=!0}},np=class extends Hf{constructor(e=[]){super(),this.isArrayCamera=!0,this.isMultiViewCamera=!1,this.cameras=e}},rp=class{constructor(){this._previousTime=0,this._currentTime=0,this._startTime=performance.now(),this._delta=0,this._elapsed=0,this._timescale=1,this._document=null,this._pageVisibilityHandler=null}connect(e){this._document=e,e.hidden!==void 0&&(this._pageVisibilityHandler=ip.bind(this),e.addEventListener(`visibilitychange`,this._pageVisibilityHandler,!1))}disconnect(){this._pageVisibilityHandler!==null&&(this._document.removeEventListener(`visibilitychange`,this._pageVisibilityHandler),this._pageVisibilityHandler=null),this._document=null}getDelta(){return this._delta/1e3}getElapsed(){return this._elapsed/1e3}getTimescale(){return this._timescale}setTimescale(e){return this._timescale=e,this}reset(){return this._currentTime=performance.now()-this._startTime,this}dispose(){this.disconnect()}update(e){return this._pageVisibilityHandler!==null&&this._document.hidden===!0?this._delta=0:(this._previousTime=this._currentTime,this._currentTime=(e===void 0?performance.now():e)-this._startTime,this._delta=(this._currentTime-this._previousTime)*this._timescale,this._elapsed+=this._delta),this}};function ip(){this._document.hidden===!1&&this.reset()}var ap=`\\[\\]\\.:\\/`,op=RegExp(`[\\[\\]\\.:\\/]`,`g`),sp=`[^\\[\\]\\.:\\/]`,cp=`[^`+ap.replace(`\\.`,``)+`]`,lp=`((?:WC+[\\/:])*)`.replace(`WC`,sp),up=`(WCOD+)?`.replace(`WCOD`,cp),dp=`(?:\\.(WC+)(?:\\[(.+)\\])?)?`.replace(`WC`,sp),fp=`\\.(WC+)(?:\\[(.+)\\])?`.replace(`WC`,sp),pp=RegExp(`^`+lp+up+dp+fp+`$`),mp=[`material`,`materials`,`bones`,`map`],hp=class{constructor(e,t,n){let r=n||gp.parseTrackName(t);this._targetGroup=e,this._bindings=e.subscribe_(t,r)}getValue(e,t){this.bind();let n=this._targetGroup.nCachedObjects_,r=this._bindings[n];r!==void 0&&r.getValue(e,t)}setValue(e,t){let n=this._bindings;for(let r=this._targetGroup.nCachedObjects_,i=n.length;r!==i;++r)n[r].setValue(e,t)}bind(){let e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].bind()}unbind(){let e=this._bindings;for(let t=this._targetGroup.nCachedObjects_,n=e.length;t!==n;++t)e[t].unbind()}},gp=class e{constructor(t,n,r){this.path=n,this.parsedPath=r||e.parseTrackName(n),this.node=e.findNode(t,this.parsedPath.nodeName),this.rootNode=t,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(t,n,r){return t&&t.isAnimationObjectGroup?new e.Composite(t,n,r):new e(t,n,r)}static sanitizeNodeName(e){return e.replace(/\s/g,`_`).replace(op,``)}static parseTrackName(e){let t=pp.exec(e);if(t===null)throw Error(`THREE.PropertyBinding: Cannot parse trackName: `+e);let n={nodeName:t[2],objectName:t[3],objectIndex:t[4],propertyName:t[5],propertyIndex:t[6]},r=n.nodeName&&n.nodeName.lastIndexOf(`.`);if(r!==void 0&&r!==-1){let e=n.nodeName.substring(r+1);mp.indexOf(e)!==-1&&(n.nodeName=n.nodeName.substring(0,r),n.objectName=e)}if(n.propertyName===null||n.propertyName.length===0)throw Error(`THREE.PropertyBinding: can not parse propertyName from trackName: `+e);return n}static findNode(e,t){if(t===void 0||t===``||t===`.`||t===-1||t===e.name||t===e.uuid)return e;if(e.skeleton){let n=e.skeleton.getBoneByName(t);if(n!==void 0)return n}if(e.children){let n=function(e){for(let r=0;r=this.min.x&&e.x<=this.max.x&&e.y>=this.min.y&&e.y<=this.max.y}containsBox(e){return this.min.x<=e.min.x&&e.max.x<=this.max.x&&this.min.y<=e.min.y&&e.max.y<=this.max.y}getParameter(e,t){return t.set((e.x-this.min.x)/(this.max.x-this.min.x),(e.y-this.min.y)/(this.max.y-this.min.y))}intersectsBox(e){return e.max.x>=this.min.x&&e.min.x<=this.max.x&&e.max.y>=this.min.y&&e.min.y<=this.max.y}clampPoint(e,t){return t.copy(e).clamp(this.min,this.max)}distanceToPoint(e){return this.clampPoint(e,_p).distanceTo(e)}intersect(e){return this.min.max(e.min),this.max.min(e.max),this.isEmpty()&&this.makeEmpty(),this}union(e){return this.min.min(e.min),this.max.max(e.max),this}translate(e){return this.min.add(e),this.max.add(e),this}equals(e){return e.min.equals(this.min)&&e.max.equals(this.max)}},yp=new B,bp=new zs,xp=new zs,Sp=class extends ju{constructor(e){let t=Cp(e),n=new gl,r=[],i=[];for(let e=0;ee.start-t.start);let t=0;for(let e=1;e #include #include -}`},U={common:{diffuse:{value:new V(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new _s},alphaMap:{value:null},alphaMapTransform:{value:new _s},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new _s}},envmap:{envMap:{value:null},envMapRotation:{value:new _s},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98},dfgLUT:{value:null}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new _s}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new _s}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new _s},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new _s},normalScale:{value:new z(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new _s},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new _s}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new _s}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new _s}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new V(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},sunLights:{value:[],properties:{direction:{},color:{}}},sunLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},sunShadowMatrix:{value:[]},sunShadowCascade:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null},probesSH:{value:null},probesMin:{value:new B},probesMax:{value:new B},probesResolution:{value:new B}},points:{diffuse:{value:new V(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new _s},alphaTest:{value:0},uvTransform:{value:new _s}},sprite:{diffuse:{value:new V(16777215)},opacity:{value:1},center:{value:new z(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new _s},alphaMap:{value:null},alphaMapTransform:{value:new _s},alphaTest:{value:0}}},kp={basic:{uniforms:Nd([U.common,U.specularmap,U.envmap,U.aomap,U.lightmap,U.fog]),vertexShader:Op.meshbasic_vert,fragmentShader:Op.meshbasic_frag},lambert:{uniforms:Nd([U.common,U.specularmap,U.envmap,U.aomap,U.lightmap,U.emissivemap,U.bumpmap,U.normalmap,U.displacementmap,U.fog,U.lights,{emissive:{value:new V(0)},envMapIntensity:{value:1}}]),vertexShader:Op.meshlambert_vert,fragmentShader:Op.meshlambert_frag},phong:{uniforms:Nd([U.common,U.specularmap,U.envmap,U.aomap,U.lightmap,U.emissivemap,U.bumpmap,U.normalmap,U.displacementmap,U.fog,U.lights,{emissive:{value:new V(0)},specular:{value:new V(1118481)},shininess:{value:30},envMapIntensity:{value:1}}]),vertexShader:Op.meshphong_vert,fragmentShader:Op.meshphong_frag},standard:{uniforms:Nd([U.common,U.envmap,U.aomap,U.lightmap,U.emissivemap,U.bumpmap,U.normalmap,U.displacementmap,U.roughnessmap,U.metalnessmap,U.fog,U.lights,{emissive:{value:new V(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:Op.meshphysical_vert,fragmentShader:Op.meshphysical_frag},toon:{uniforms:Nd([U.common,U.aomap,U.lightmap,U.emissivemap,U.bumpmap,U.normalmap,U.displacementmap,U.gradientmap,U.fog,U.lights,{emissive:{value:new V(0)}}]),vertexShader:Op.meshtoon_vert,fragmentShader:Op.meshtoon_frag},matcap:{uniforms:Nd([U.common,U.bumpmap,U.normalmap,U.displacementmap,U.fog,{matcap:{value:null}}]),vertexShader:Op.meshmatcap_vert,fragmentShader:Op.meshmatcap_frag},points:{uniforms:Nd([U.points,U.fog]),vertexShader:Op.points_vert,fragmentShader:Op.points_frag},dashed:{uniforms:Nd([U.common,U.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Op.linedashed_vert,fragmentShader:Op.linedashed_frag},depth:{uniforms:Nd([U.common,U.displacementmap]),vertexShader:Op.depth_vert,fragmentShader:Op.depth_frag},normal:{uniforms:Nd([U.common,U.bumpmap,U.normalmap,U.displacementmap,{opacity:{value:1}}]),vertexShader:Op.meshnormal_vert,fragmentShader:Op.meshnormal_frag},sprite:{uniforms:Nd([U.sprite,U.fog]),vertexShader:Op.sprite_vert,fragmentShader:Op.sprite_frag},background:{uniforms:{uvTransform:{value:new _s},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:Op.background_vert,fragmentShader:Op.background_frag},backgroundCube:{uniforms:{envMap:{value:null},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new _s}},vertexShader:Op.backgroundCube_vert,fragmentShader:Op.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:Op.cube_vert,fragmentShader:Op.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Op.equirect_vert,fragmentShader:Op.equirect_frag},distance:{uniforms:Nd([U.common,U.displacementmap,{referencePosition:{value:new B},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Op.distance_vert,fragmentShader:Op.distance_frag},shadow:{uniforms:Nd([U.lights,U.fog,{color:{value:new V(0)},opacity:{value:1}}]),vertexShader:Op.shadow_vert,fragmentShader:Op.shadow_frag}};kp.physical={uniforms:Nd([kp.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new _s},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new _s},clearcoatNormalScale:{value:new z(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new _s},dispersion:{value:0},retroreflectivity:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new _s},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new _s},sheen:{value:0},sheenColor:{value:new V(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new _s},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new _s},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new _s},transmissionSamplerSize:{value:new z},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new _s},attenuationDistance:{value:0},attenuationColor:{value:new V(0)},specularColor:{value:new V(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new _s},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new _s},anisotropyVector:{value:new z},anisotropyMap:{value:null},anisotropyMapTransform:{value:new _s}}]),vertexShader:Op.meshphysical_vert,fragmentShader:Op.meshphysical_frag};var Ap={r:0,b:0,g:0},jp=new Rs,Mp=new _s;Mp.set(-1,0,0,0,1,0,0,0,1);function Np(e,t,n,r,i,a){let o=new V(0),s=i===!0?0:1,c,l,u=null,d=0,f=null;function p(e){let n=e.isScene===!0?e.background:null;if(n&&n.isTexture){let r=e.backgroundBlurriness>0;n=t.get(n,r)}return n}function m(t){let r=!1,i=p(t);i===null?g(o,s):i&&i.isColor&&(g(i,1),r=!0);let c=e.xr.getEnvironmentBlendMode();c===`additive`?n.buffers.color.setClear(0,0,0,1,a):c===`alpha-blend`&&n.buffers.color.setClear(0,0,0,0,a),(e.autoClear||r)&&(n.buffers.depth.setTest(!0),n.buffers.depth.setMask(!0),n.buffers.color.setMask(!0),e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil))}function h(t,n){let i=p(n);i&&(i.isCubeTexture||i.mapping===306)?(l===void 0&&(l=new H(new Wu(1,1,1),new Bd({name:`BackgroundCubeMaterial`,uniforms:Md(kp.backgroundCube.uniforms),vertexShader:kp.backgroundCube.vertexShader,fragmentShader:kp.backgroundCube.fragmentShader,side:1,depthTest:!1,depthWrite:!1,fog:!1,allowOverride:!1})),l.geometry.deleteAttribute(`normal`),l.geometry.deleteAttribute(`uv`),l.onBeforeRender=function(e,t,n){this.matrixWorld.copyPosition(n.matrixWorld)},Object.defineProperty(l.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),r.update(l)),l.material.uniforms.envMap.value=i,l.material.uniforms.backgroundBlurriness.value=n.backgroundBlurriness,l.material.uniforms.backgroundIntensity.value=n.backgroundIntensity,l.material.uniforms.backgroundRotation.value.setFromMatrix4(jp.makeRotationFromEuler(n.backgroundRotation)).transpose(),i.isCubeTexture&&i.isRenderTargetTexture===!1&&l.material.uniforms.backgroundRotation.value.premultiply(Mp),l.material.toneMapped=Ss.getTransfer(i.colorSpace)!==wo,(u!==i||d!==i.version||f!==e.toneMapping)&&(l.material.needsUpdate=!0,u=i,d=i.version,f=e.toneMapping),l.layers.enableAll(),t.unshift(l,l.geometry,l.material,0,0,null)):i&&i.isTexture&&(c===void 0&&(c=new H(new Ed(2,2),new Bd({name:`BackgroundMaterial`,uniforms:Md(kp.background.uniforms),vertexShader:kp.background.vertexShader,fragmentShader:kp.background.fragmentShader,side:0,depthTest:!1,depthWrite:!1,fog:!1,allowOverride:!1})),c.geometry.deleteAttribute(`normal`),Object.defineProperty(c.material,"map",{get:function(){return this.uniforms.t2D.value}}),r.update(c)),c.material.uniforms.t2D.value=i,c.material.uniforms.backgroundIntensity.value=n.backgroundIntensity,c.material.toneMapped=Ss.getTransfer(i.colorSpace)!==wo,i.matrixAutoUpdate===!0&&i.updateMatrix(),c.material.uniforms.uvTransform.value.copy(i.matrix),(u!==i||d!==i.version||f!==e.toneMapping)&&(c.material.needsUpdate=!0,u=i,d=i.version,f=e.toneMapping),c.layers.enableAll(),t.unshift(c,c.geometry,c.material,0,0,null))}function g(t,r){t.getRGB(Ap,Id(e)),n.buffers.color.setClear(Ap.r,Ap.g,Ap.b,r,a)}function _(){l!==void 0&&(l.geometry.dispose(),l.material.dispose(),l=void 0),c!==void 0&&(c.geometry.dispose(),c.material.dispose(),c=void 0)}return{getClearColor:function(){return o},setClearColor:function(e,t=1){o.set(e),s=t,g(o,s)},getClearAlpha:function(){return s},setClearAlpha:function(e){s=e,g(o,s)},render:m,addToRenderList:h,dispose:_}}function Pp(e,t){let n=e.getParameter(e.MAX_VERTEX_ATTRIBS),r={},i=f(null),a=i,o=!1;function s(n,r,i,s,c){let u=!1,f=d(n,s,i,r);a!==f&&(a=f,l(a.object)),u=p(n,s,i,c),u&&m(n,s,i,c),c!==null&&t.update(c,e.ELEMENT_ARRAY_BUFFER),(u||o)&&(o=!1,b(n,r,i,s),c!==null&&e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t.get(c).buffer))}function c(){return e.createVertexArray()}function l(t){return e.bindVertexArray(t)}function u(t){return e.deleteVertexArray(t)}function d(e,t,n,i){let a=i.wireframe===!0,o=r[t.id];o===void 0&&(o={},r[t.id]=o);let s=e.isInstancedMesh===!0?e.id:0,l=o[s];l===void 0&&(l={},o[s]=l);let u=l[n.id];u===void 0&&(u={},l[n.id]=u);let d=u[a];return d===void 0&&(d=f(c()),u[a]=d),d}function f(e){let t=[],r=[],i=[];for(let e=0;e=0){let n=i[t],r=o[t];if(r===void 0&&(t===`instanceMatrix`&&e.instanceMatrix&&(r=e.instanceMatrix),t===`instanceColor`&&e.instanceColor&&(r=e.instanceColor)),n===void 0||n.attribute!==r||r&&n.data!==r.data)return!0;s++}return a.attributesNum!==s||a.index!==r}function m(e,t,n,r){let i={},o=t.attributes,s=0,c=n.getAttributes();for(let t in c)if(c[t].location>=0){let n=o[t];n===void 0&&(t===`instanceMatrix`&&e.instanceMatrix&&(n=e.instanceMatrix),t===`instanceColor`&&e.instanceColor&&(n=e.instanceColor));let r={};r.attribute=n,n&&n.data&&(r.data=n.data),i[t]=r,s++}a.attributes=i,a.attributesNum=s,a.index=r}function h(){let e=a.newAttributes;for(let t=0,n=e.length;t=0){let s=o[r];if(s===void 0&&(r===`instanceMatrix`&&n.instanceMatrix&&(s=n.instanceMatrix),r===`instanceColor`&&n.instanceColor&&(s=n.instanceColor)),s!==void 0){let r=s.normalized,o=s.itemSize,c=t.get(s);if(c===void 0)continue;let l=c.buffer,u=c.type,d=c.bytesPerElement,f=u===e.INT||u===e.UNSIGNED_INT||s.gpuType===1013;if(s.isInterleavedBufferAttribute){let t=s.data,c=t.stride,p=s.offset;if(t.isInstancedInterleavedBuffer){for(let e=0;e0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT).precision>0)return`highp`;t=`mediump`}return t===`mediump`&&e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.MEDIUM_FLOAT).precision>0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.MEDIUM_FLOAT).precision>0?`mediump`:`lowp`}let l=n.precision===void 0?`highp`:n.precision,u=c(l);u!==l&&(Io(`WebGLRenderer:`,l,`not supported, using`,u,`instead.`),l=u);let d=n.logarithmicDepthBuffer===!0,f=n.reversedDepthBuffer===!0&&t.has(`EXT_clip_control`);n.reversedDepthBuffer===!0&&f===!1&&Io(`WebGLRenderer: Unable to use reversed depth buffer due to missing EXT_clip_control extension. Fallback to default depth buffer.`);let p=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),m=e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS),h=e.getParameter(e.MAX_TEXTURE_SIZE),g=e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE),_=e.getParameter(e.MAX_VERTEX_ATTRIBS),v=e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS),y=e.getParameter(e.MAX_VARYING_VECTORS),b=e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS),x=e.getParameter(e.MAX_SAMPLES),S=e.getParameter(e.SAMPLES);return{isWebGL2:!0,getMaxAnisotropy:a,getMaxPrecision:c,textureFormatReadable:o,textureTypeReadable:s,precision:l,logarithmicDepthBuffer:d,reversedDepthBuffer:f,maxTextures:p,maxVertexTextures:m,maxTextureSize:h,maxCubemapSize:g,maxAttributes:_,maxVertexUniforms:v,maxVaryings:y,maxFragmentUniforms:b,maxSamples:x,samples:S}}function Lp(e){let t=this,n=null,r=0,i=!1,a=!1,o=new Sl,s=new _s,c={value:null,needsUpdate:!1};this.uniform=c,this.numPlanes=0,this.numIntersection=0,this.init=function(e,t){let n=e.length!==0||t||r!==0||i;return i=t,r=e.length,n},this.beginShadows=function(){a=!0,u(null)},this.endShadows=function(){a=!1},this.setGlobalState=function(e,t){n=u(e,t,0)},this.setState=function(t,o,s){let d=t.clippingPlanes,f=t.clipIntersection,p=t.clipShadows,m=e.get(t);if(!i||d===null||d.length===0||a&&!p)a?u(null):l();else{let e=a?0:r,t=e*4,i=m.clippingState||null;c.value=i,i=u(d,o,t,s);for(let e=0;e!==t;++e)i[e]=n[e];m.clippingState=i,this.numIntersection=f?this.numPlanes:0,this.numPlanes+=e}};function l(){c.value!==n&&(c.value=n,c.needsUpdate=r>0),t.numPlanes=r,t.numIntersection=0}function u(e,n,r,i){let a=e===null?0:e.length,l=null;if(a!==0){if(l=c.value,i!==!0||l===null){let t=r+a*4,i=n.matrixWorldInverse;s.getNormalMatrix(i),(l===null||l.length0&&this._blur(s,0,0,t),this._applyPMREM(s),this._cleanup(s),s}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=rm(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=nm(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose(),this._backgroundBox!==null&&(this._backgroundBox.geometry.dispose(),this._backgroundBox.material.dispose())}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=2**this._lodMax}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._ggxMaterial!==null&&this._ggxMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let e=0;e2?l:0,l,l),c.setRenderTarget(r),p&&c.render(d,a),c.render(e,a)}c.toneMapping=u,c.autoClear=l,e.background=m}_textureToCubeUV(e,t){let n=this._renderer,r=e.mapping===301||e.mapping===302;r?(this._cubemapMaterial===null&&(this._cubemapMaterial=rm()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=nm());let i=r?this._cubemapMaterial:this._equirectMaterial,a=this._lodMeshes[0];a.material=i;let o=i.uniforms;o.envMap.value=e;let s=this._cubeSize;$p(t,0,0,3*s,2*s),n.setRenderTarget(t),n.render(a,Hp)}_applyPMREM(e){let t=this._renderer,n=t.autoClear;t.autoClear=!1;let r=this._lodMeshes.length;for(let t=1;td-Rp?n-d+Rp:0),m=4*(this._cubeSize-f);s.envMap.value=e.texture,s.roughness.value=u,s.mipInt.value=d-t,$p(i,p,m,3*f,2*f),r.setRenderTarget(i),r.render(o,Hp),s.envMap.value=i.texture,s.roughness.value=0,s.mipInt.value=d-n,$p(e,p,m,3*f,2*f),r.setRenderTarget(e),r.render(o,Hp)}_blur(e,t,n,r){let i=this._pingPongRenderTarget,a=Math.min(r,Math.PI)/Math.SQRT2;this._blurPass(e,i,t,n,a),this._blurPass(i,e,n,n,a)}_blurPass(e,t,n,r,i){let a=this._renderer,o=this._blurMaterial,s=this._lodMeshes[r];s.material=o;let c=o.uniforms;c.envMap.value=e.texture,c.sigma.value=i,c.mipInt.value=this._lodMax-n;let l=this._sizeLods[r];$p(t,3*l*(r>this._lodMax-Rp?r-this._lodMax+Rp:0),4*(this._cubeSize-l),3*l,2*l),a.setRenderTarget(t),a.render(s,Hp)}};function Zp(e){let t=[],n=[],r=e,i=e-Rp+1+zp;for(let e=0;e2?0:-1,r=[t,n,0,t+2/3,n,0,t+2/3,n+1,0,t,n,0,t+2/3,n+1,0,t,n+1,0];c.set(r,18*e);for(let t=0;t<6;t++){let n=s[t*2]*2-1,r=s[t*2+1]*2-1;e===0?Yp.set(1,r,n):e===1?Yp.set(-n,1,-r):e===2?Yp.set(-n,r,1):e===3?Yp.set(-1,r,-n):e===4?Yp.set(-n,-1,r):Yp.set(n,r,-1),Yp.toArray(l,(e*6+t)*3)}}let u=new hl;u.setAttribute(`position`,new el(c,3)),u.setAttribute(`outputDirection`,new el(l,3)),n.push(new H(u,null)),r>Rp&&r--}return{lodMeshes:n,sizeLods:t}}function Qp(e,t,n){let r=new Fs(e,t,n);return r.texture.mapping=306,r.texture.name=`PMREM.cubeUv`,r.scissorTest=!0,r}function $p(e,t,n,r,i){e.viewport.set(t,n,r,i),e.scissor.set(t,n,r,i)}function em(e,t,n){return new Bd({name:`PMREMGGXConvolution`,defines:{GGX_SAMPLES:Vp,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${e}.0`},uniforms:{envMap:{value:null},roughness:{value:0},mipInt:{value:0}},vertexShader:im(),fragmentShader:` +}`},U={common:{diffuse:{value:new V(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new vs},alphaMap:{value:null},alphaMapTransform:{value:new vs},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new vs}},envmap:{envMap:{value:null},envMapRotation:{value:new vs},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98},dfgLUT:{value:null}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new vs}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new vs}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new vs},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new vs},normalScale:{value:new z(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new vs},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new vs}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new vs}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new vs}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new V(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},sunLights:{value:[],properties:{direction:{},color:{}}},sunLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},sunShadowMatrix:{value:[]},sunShadowCascade:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowIntensity:1,shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null},probesSH:{value:null},probesMin:{value:new B},probesMax:{value:new B},probesResolution:{value:new B}},points:{diffuse:{value:new V(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaMapTransform:{value:new vs},alphaTest:{value:0},uvTransform:{value:new vs}},sprite:{diffuse:{value:new V(16777215)},opacity:{value:1},center:{value:new z(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new vs},alphaMap:{value:null},alphaMapTransform:{value:new vs},alphaTest:{value:0}}},Ap={basic:{uniforms:Pd([U.common,U.specularmap,U.envmap,U.aomap,U.lightmap,U.fog]),vertexShader:kp.meshbasic_vert,fragmentShader:kp.meshbasic_frag},lambert:{uniforms:Pd([U.common,U.specularmap,U.envmap,U.aomap,U.lightmap,U.emissivemap,U.bumpmap,U.normalmap,U.displacementmap,U.fog,U.lights,{emissive:{value:new V(0)},envMapIntensity:{value:1}}]),vertexShader:kp.meshlambert_vert,fragmentShader:kp.meshlambert_frag},phong:{uniforms:Pd([U.common,U.specularmap,U.envmap,U.aomap,U.lightmap,U.emissivemap,U.bumpmap,U.normalmap,U.displacementmap,U.fog,U.lights,{emissive:{value:new V(0)},specular:{value:new V(1118481)},shininess:{value:30},envMapIntensity:{value:1}}]),vertexShader:kp.meshphong_vert,fragmentShader:kp.meshphong_frag},standard:{uniforms:Pd([U.common,U.envmap,U.aomap,U.lightmap,U.emissivemap,U.bumpmap,U.normalmap,U.displacementmap,U.roughnessmap,U.metalnessmap,U.fog,U.lights,{emissive:{value:new V(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:kp.meshphysical_vert,fragmentShader:kp.meshphysical_frag},toon:{uniforms:Pd([U.common,U.aomap,U.lightmap,U.emissivemap,U.bumpmap,U.normalmap,U.displacementmap,U.gradientmap,U.fog,U.lights,{emissive:{value:new V(0)}}]),vertexShader:kp.meshtoon_vert,fragmentShader:kp.meshtoon_frag},matcap:{uniforms:Pd([U.common,U.bumpmap,U.normalmap,U.displacementmap,U.fog,{matcap:{value:null}}]),vertexShader:kp.meshmatcap_vert,fragmentShader:kp.meshmatcap_frag},points:{uniforms:Pd([U.points,U.fog]),vertexShader:kp.points_vert,fragmentShader:kp.points_frag},dashed:{uniforms:Pd([U.common,U.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:kp.linedashed_vert,fragmentShader:kp.linedashed_frag},depth:{uniforms:Pd([U.common,U.displacementmap]),vertexShader:kp.depth_vert,fragmentShader:kp.depth_frag},normal:{uniforms:Pd([U.common,U.bumpmap,U.normalmap,U.displacementmap,{opacity:{value:1}}]),vertexShader:kp.meshnormal_vert,fragmentShader:kp.meshnormal_frag},sprite:{uniforms:Pd([U.sprite,U.fog]),vertexShader:kp.sprite_vert,fragmentShader:kp.sprite_frag},background:{uniforms:{uvTransform:{value:new vs},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:kp.background_vert,fragmentShader:kp.background_frag},backgroundCube:{uniforms:{envMap:{value:null},backgroundBlurriness:{value:0},backgroundIntensity:{value:1},backgroundRotation:{value:new vs}},vertexShader:kp.backgroundCube_vert,fragmentShader:kp.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:kp.cube_vert,fragmentShader:kp.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:kp.equirect_vert,fragmentShader:kp.equirect_frag},distance:{uniforms:Pd([U.common,U.displacementmap,{referencePosition:{value:new B},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:kp.distance_vert,fragmentShader:kp.distance_frag},shadow:{uniforms:Pd([U.lights,U.fog,{color:{value:new V(0)},opacity:{value:1}}]),vertexShader:kp.shadow_vert,fragmentShader:kp.shadow_frag}};Ap.physical={uniforms:Pd([Ap.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new vs},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new vs},clearcoatNormalScale:{value:new z(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new vs},dispersion:{value:0},retroreflectivity:{value:0},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new vs},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new vs},sheen:{value:0},sheenColor:{value:new V(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new vs},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new vs},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new vs},transmissionSamplerSize:{value:new z},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new vs},attenuationDistance:{value:0},attenuationColor:{value:new V(0)},specularColor:{value:new V(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new vs},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new vs},anisotropyVector:{value:new z},anisotropyMap:{value:null},anisotropyMapTransform:{value:new vs}}]),vertexShader:kp.meshphysical_vert,fragmentShader:kp.meshphysical_frag};var jp={r:0,b:0,g:0},Mp=new zs,Np=new vs;Np.set(-1,0,0,0,1,0,0,0,1);function Pp(e,t,n,r,i,a){let o=new V(0),s=i===!0?0:1,c,l,u=null,d=0,f=null;function p(e){let n=e.isScene===!0?e.background:null;if(n&&n.isTexture){let r=e.backgroundBlurriness>0;n=t.get(n,r)}return n}function m(t){let r=!1,i=p(t);i===null?g(o,s):i&&i.isColor&&(g(i,1),r=!0);let c=e.xr.getEnvironmentBlendMode();c===`additive`?n.buffers.color.setClear(0,0,0,1,a):c===`alpha-blend`&&n.buffers.color.setClear(0,0,0,0,a),(e.autoClear||r)&&(n.buffers.depth.setTest(!0),n.buffers.depth.setMask(!0),n.buffers.color.setMask(!0),e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil))}function h(t,n){let i=p(n);i&&(i.isCubeTexture||i.mapping===306)?(l===void 0&&(l=new H(new Gu(1,1,1),new Vd({name:`BackgroundCubeMaterial`,uniforms:Nd(Ap.backgroundCube.uniforms),vertexShader:Ap.backgroundCube.vertexShader,fragmentShader:Ap.backgroundCube.fragmentShader,side:1,depthTest:!1,depthWrite:!1,fog:!1,allowOverride:!1})),l.geometry.deleteAttribute(`normal`),l.geometry.deleteAttribute(`uv`),l.onBeforeRender=function(e,t,n){this.matrixWorld.copyPosition(n.matrixWorld)},Object.defineProperty(l.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),r.update(l)),l.material.uniforms.envMap.value=i,l.material.uniforms.backgroundBlurriness.value=n.backgroundBlurriness,l.material.uniforms.backgroundIntensity.value=n.backgroundIntensity,l.material.uniforms.backgroundRotation.value.setFromMatrix4(Mp.makeRotationFromEuler(n.backgroundRotation)).transpose(),i.isCubeTexture&&i.isRenderTargetTexture===!1&&l.material.uniforms.backgroundRotation.value.premultiply(Np),l.material.toneMapped=Cs.getTransfer(i.colorSpace)!==To,(u!==i||d!==i.version||f!==e.toneMapping)&&(l.material.needsUpdate=!0,u=i,d=i.version,f=e.toneMapping),l.layers.enableAll(),t.unshift(l,l.geometry,l.material,0,0,null)):i&&i.isTexture&&(c===void 0&&(c=new H(new Dd(2,2),new Vd({name:`BackgroundMaterial`,uniforms:Nd(Ap.background.uniforms),vertexShader:Ap.background.vertexShader,fragmentShader:Ap.background.fragmentShader,side:0,depthTest:!1,depthWrite:!1,fog:!1,allowOverride:!1})),c.geometry.deleteAttribute(`normal`),Object.defineProperty(c.material,"map",{get:function(){return this.uniforms.t2D.value}}),r.update(c)),c.material.uniforms.t2D.value=i,c.material.uniforms.backgroundIntensity.value=n.backgroundIntensity,c.material.toneMapped=Cs.getTransfer(i.colorSpace)!==To,i.matrixAutoUpdate===!0&&i.updateMatrix(),c.material.uniforms.uvTransform.value.copy(i.matrix),(u!==i||d!==i.version||f!==e.toneMapping)&&(c.material.needsUpdate=!0,u=i,d=i.version,f=e.toneMapping),c.layers.enableAll(),t.unshift(c,c.geometry,c.material,0,0,null))}function g(t,r){t.getRGB(jp,Ld(e)),n.buffers.color.setClear(jp.r,jp.g,jp.b,r,a)}function _(){l!==void 0&&(l.geometry.dispose(),l.material.dispose(),l=void 0),c!==void 0&&(c.geometry.dispose(),c.material.dispose(),c=void 0)}return{getClearColor:function(){return o},setClearColor:function(e,t=1){o.set(e),s=t,g(o,s)},getClearAlpha:function(){return s},setClearAlpha:function(e){s=e,g(o,s)},render:m,addToRenderList:h,dispose:_}}function Fp(e,t){let n=e.getParameter(e.MAX_VERTEX_ATTRIBS),r={},i=f(null),a=i,o=!1;function s(n,r,i,s,c){let u=!1,f=d(n,s,i,r);a!==f&&(a=f,l(a.object)),u=p(n,s,i,c),u&&m(n,s,i,c),c!==null&&t.update(c,e.ELEMENT_ARRAY_BUFFER),(u||o)&&(o=!1,b(n,r,i,s),c!==null&&e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t.get(c).buffer))}function c(){return e.createVertexArray()}function l(t){return e.bindVertexArray(t)}function u(t){return e.deleteVertexArray(t)}function d(e,t,n,i){let a=i.wireframe===!0,o=r[t.id];o===void 0&&(o={},r[t.id]=o);let s=e.isInstancedMesh===!0?e.id:0,l=o[s];l===void 0&&(l={},o[s]=l);let u=l[n.id];u===void 0&&(u={},l[n.id]=u);let d=u[a];return d===void 0&&(d=f(c()),u[a]=d),d}function f(e){let t=[],r=[],i=[];for(let e=0;e=0){let n=i[t],r=o[t];if(r===void 0&&(t===`instanceMatrix`&&e.instanceMatrix&&(r=e.instanceMatrix),t===`instanceColor`&&e.instanceColor&&(r=e.instanceColor)),n===void 0||n.attribute!==r||r&&n.data!==r.data)return!0;s++}return a.attributesNum!==s||a.index!==r}function m(e,t,n,r){let i={},o=t.attributes,s=0,c=n.getAttributes();for(let t in c)if(c[t].location>=0){let n=o[t];n===void 0&&(t===`instanceMatrix`&&e.instanceMatrix&&(n=e.instanceMatrix),t===`instanceColor`&&e.instanceColor&&(n=e.instanceColor));let r={};r.attribute=n,n&&n.data&&(r.data=n.data),i[t]=r,s++}a.attributes=i,a.attributesNum=s,a.index=r}function h(){let e=a.newAttributes;for(let t=0,n=e.length;t=0){let s=o[r];if(s===void 0&&(r===`instanceMatrix`&&n.instanceMatrix&&(s=n.instanceMatrix),r===`instanceColor`&&n.instanceColor&&(s=n.instanceColor)),s!==void 0){let r=s.normalized,o=s.itemSize,c=t.get(s);if(c===void 0)continue;let l=c.buffer,u=c.type,d=c.bytesPerElement,f=u===e.INT||u===e.UNSIGNED_INT||s.gpuType===1013;if(s.isInterleavedBufferAttribute){let t=s.data,c=t.stride,p=s.offset;if(t.isInstancedInterleavedBuffer){for(let e=0;e0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT).precision>0)return`highp`;t=`mediump`}return t===`mediump`&&e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.MEDIUM_FLOAT).precision>0&&e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.MEDIUM_FLOAT).precision>0?`mediump`:`lowp`}let l=n.precision===void 0?`highp`:n.precision,u=c(l);u!==l&&(Lo(`WebGLRenderer:`,l,`not supported, using`,u,`instead.`),l=u);let d=n.logarithmicDepthBuffer===!0,f=n.reversedDepthBuffer===!0&&t.has(`EXT_clip_control`);n.reversedDepthBuffer===!0&&f===!1&&Lo(`WebGLRenderer: Unable to use reversed depth buffer due to missing EXT_clip_control extension. Fallback to default depth buffer.`);let p=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),m=e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS),h=e.getParameter(e.MAX_TEXTURE_SIZE),g=e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE),_=e.getParameter(e.MAX_VERTEX_ATTRIBS),v=e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS),y=e.getParameter(e.MAX_VARYING_VECTORS),b=e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS),x=e.getParameter(e.MAX_SAMPLES),S=e.getParameter(e.SAMPLES);return{isWebGL2:!0,getMaxAnisotropy:a,getMaxPrecision:c,textureFormatReadable:o,textureTypeReadable:s,precision:l,logarithmicDepthBuffer:d,reversedDepthBuffer:f,maxTextures:p,maxVertexTextures:m,maxTextureSize:h,maxCubemapSize:g,maxAttributes:_,maxVertexUniforms:v,maxVaryings:y,maxFragmentUniforms:b,maxSamples:x,samples:S}}function Rp(e){let t=this,n=null,r=0,i=!1,a=!1,o=new Cl,s=new vs,c={value:null,needsUpdate:!1};this.uniform=c,this.numPlanes=0,this.numIntersection=0,this.init=function(e,t){let n=e.length!==0||t||r!==0||i;return i=t,r=e.length,n},this.beginShadows=function(){a=!0,u(null)},this.endShadows=function(){a=!1},this.setGlobalState=function(e,t){n=u(e,t,0)},this.setState=function(t,o,s){let d=t.clippingPlanes,f=t.clipIntersection,p=t.clipShadows,m=e.get(t);if(!i||d===null||d.length===0||a&&!p)a?u(null):l();else{let e=a?0:r,t=e*4,i=m.clippingState||null;c.value=i,i=u(d,o,t,s);for(let e=0;e!==t;++e)i[e]=n[e];m.clippingState=i,this.numIntersection=f?this.numPlanes:0,this.numPlanes+=e}};function l(){c.value!==n&&(c.value=n,c.needsUpdate=r>0),t.numPlanes=r,t.numIntersection=0}function u(e,n,r,i){let a=e===null?0:e.length,l=null;if(a!==0){if(l=c.value,i!==!0||l===null){let t=r+a*4,i=n.matrixWorldInverse;s.getNormalMatrix(i),(l===null||l.length0&&this._blur(s,0,0,t),this._applyPMREM(s),this._cleanup(s),s}fromEquirectangular(e,t=null){return this._fromTexture(e,t)}fromCubemap(e,t=null){return this._fromTexture(e,t)}compileCubemapShader(){this._cubemapMaterial===null&&(this._cubemapMaterial=im(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){this._equirectMaterial===null&&(this._equirectMaterial=rm(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),this._cubemapMaterial!==null&&this._cubemapMaterial.dispose(),this._equirectMaterial!==null&&this._equirectMaterial.dispose(),this._backgroundBox!==null&&(this._backgroundBox.geometry.dispose(),this._backgroundBox.material.dispose())}_setSize(e){this._lodMax=Math.floor(Math.log2(e)),this._cubeSize=2**this._lodMax}_dispose(){this._blurMaterial!==null&&this._blurMaterial.dispose(),this._ggxMaterial!==null&&this._ggxMaterial.dispose(),this._pingPongRenderTarget!==null&&this._pingPongRenderTarget.dispose();for(let e=0;e2?l:0,l,l),c.setRenderTarget(r),p&&c.render(d,a),c.render(e,a)}c.toneMapping=u,c.autoClear=l,e.background=m}_textureToCubeUV(e,t){let n=this._renderer,r=e.mapping===301||e.mapping===302;r?(this._cubemapMaterial===null&&(this._cubemapMaterial=im()),this._cubemapMaterial.uniforms.flipEnvMap.value=e.isRenderTargetTexture===!1?-1:1):this._equirectMaterial===null&&(this._equirectMaterial=rm());let i=r?this._cubemapMaterial:this._equirectMaterial,a=this._lodMeshes[0];a.material=i;let o=i.uniforms;o.envMap.value=e;let s=this._cubeSize;em(t,0,0,3*s,2*s),n.setRenderTarget(t),n.render(a,Up)}_applyPMREM(e){let t=this._renderer,n=t.autoClear;t.autoClear=!1;let r=this._lodMeshes.length;for(let t=1;td-zp?n-d+zp:0),m=4*(this._cubeSize-f);s.envMap.value=e.texture,s.roughness.value=u,s.mipInt.value=d-t,em(i,p,m,3*f,2*f),r.setRenderTarget(i),r.render(o,Up),s.envMap.value=i.texture,s.roughness.value=0,s.mipInt.value=d-n,em(e,p,m,3*f,2*f),r.setRenderTarget(e),r.render(o,Up)}_blur(e,t,n,r){let i=this._pingPongRenderTarget,a=Math.min(r,Math.PI)/Math.SQRT2;this._blurPass(e,i,t,n,a),this._blurPass(i,e,n,n,a)}_blurPass(e,t,n,r,i){let a=this._renderer,o=this._blurMaterial,s=this._lodMeshes[r];s.material=o;let c=o.uniforms;c.envMap.value=e.texture,c.sigma.value=i,c.mipInt.value=this._lodMax-n;let l=this._sizeLods[r];em(t,3*l*(r>this._lodMax-zp?r-this._lodMax+zp:0),4*(this._cubeSize-l),3*l,2*l),a.setRenderTarget(t),a.render(s,Up)}};function Qp(e){let t=[],n=[],r=e,i=e-zp+1+Bp;for(let e=0;e2?0:-1,r=[t,n,0,t+2/3,n,0,t+2/3,n+1,0,t,n,0,t+2/3,n+1,0,t,n+1,0];c.set(r,18*e);for(let t=0;t<6;t++){let n=s[t*2]*2-1,r=s[t*2+1]*2-1;e===0?Xp.set(1,r,n):e===1?Xp.set(-n,1,-r):e===2?Xp.set(-n,r,1):e===3?Xp.set(-1,r,-n):e===4?Xp.set(-n,-1,r):Xp.set(n,r,-1),Xp.toArray(l,(e*6+t)*3)}}let u=new gl;u.setAttribute(`position`,new tl(c,3)),u.setAttribute(`outputDirection`,new tl(l,3)),n.push(new H(u,null)),r>zp&&r--}return{lodMeshes:n,sizeLods:t}}function $p(e,t,n){let r=new Is(e,t,n);return r.texture.mapping=306,r.texture.name=`PMREM.cubeUv`,r.scissorTest=!0,r}function em(e,t,n,r,i){e.viewport.set(t,n,r,i),e.scissor.set(t,n,r,i)}function tm(e,t,n){return new Vd({name:`PMREMGGXConvolution`,defines:{GGX_SAMPLES:Hp,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${e}.0`},uniforms:{envMap:{value:null},roughness:{value:0},mipInt:{value:0}},vertexShader:am(),fragmentShader:` precision highp float; precision highp int; @@ -3935,7 +3935,7 @@ void main() { gl_FragColor = vec4(prefilteredColor, 1.0); } - `,blending:0,depthTest:!1,depthWrite:!1})}function tm(e,t,n){return new Bd({name:`SphericalGaussianBlur`,defines:{SAMPLES:Bp,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${e}.0`},uniforms:{envMap:{value:null},sigma:{value:0},mipInt:{value:0}},vertexShader:im(),fragmentShader:` + `,blending:0,depthTest:!1,depthWrite:!1})}function nm(e,t,n){return new Vd({name:`SphericalGaussianBlur`,defines:{SAMPLES:Vp,CUBEUV_TEXEL_WIDTH:1/t,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${e}.0`},uniforms:{envMap:{value:null},sigma:{value:0},mipInt:{value:0}},vertexShader:am(),fragmentShader:` precision highp float; precision highp int; @@ -3995,7 +3995,7 @@ void main() { gl_FragColor = vec4( accumColor / accumWeight, 1.0 ); } - `,blending:0,depthTest:!1,depthWrite:!1})}function nm(){return new Bd({name:`EquirectangularToCubeUV`,uniforms:{envMap:{value:null}},vertexShader:im(),fragmentShader:` + `,blending:0,depthTest:!1,depthWrite:!1})}function rm(){return new Vd({name:`EquirectangularToCubeUV`,uniforms:{envMap:{value:null}},vertexShader:am(),fragmentShader:` precision mediump float; precision mediump int; @@ -4014,7 +4014,7 @@ void main() { gl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 ); } - `,blending:0,depthTest:!1,depthWrite:!1})}function rm(){return new Bd({name:`CubemapToCubeUV`,uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:im(),fragmentShader:` + `,blending:0,depthTest:!1,depthWrite:!1})}function im(){return new Vd({name:`CubemapToCubeUV`,uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:am(),fragmentShader:` precision mediump float; precision mediump int; @@ -4030,7 +4030,7 @@ void main() { gl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) ); } - `,blending:0,depthTest:!1,depthWrite:!1})}function im(){return` + `,blending:0,depthTest:!1,depthWrite:!1})}function am(){return` precision mediump float; precision mediump int; @@ -4045,7 +4045,7 @@ void main() { gl_Position = vec4( position, 1.0 ); } - `}var am=class extends Fs{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;let n={width:e,height:e,depth:1},r=[n,n,n,n,n,n];this.texture=new zu(r),this._setTextureOptions(t),this.texture.isRenderTargetTexture=!0}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;let n={uniforms:{tEquirect:{value:null}},vertexShader:` + `}var om=class extends Is{constructor(e=1,t={}){super(e,e,t),this.isWebGLCubeRenderTarget=!0;let n={width:e,height:e,depth:1},r=[n,n,n,n,n,n];this.texture=new Bu(r),this._setTextureOptions(t),this.texture.isRenderTargetTexture=!0}fromEquirectangularTexture(e,t){this.texture.type=t.type,this.texture.colorSpace=t.colorSpace,this.texture.generateMipmaps=t.generateMipmaps,this.texture.minFilter=t.minFilter,this.texture.magFilter=t.magFilter;let n={uniforms:{tEquirect:{value:null}},vertexShader:` varying vec3 vWorldDirection; @@ -4080,7 +4080,7 @@ void main() { gl_FragColor = texture2D( tEquirect, sampleUV ); } - `},r=new Wu(5,5,5),i=new Bd({name:`CubemapFromEquirect`,uniforms:Md(n.uniforms),vertexShader:n.vertexShader,fragmentShader:n.fragmentShader,side:1,blending:0});i.uniforms.tEquirect.value=t;let a=new H(r,i),o=t.minFilter;return t.minFilter===1008&&(t.minFilter=ra),new ep(1,10,this).update(e,a),t.minFilter=o,a.geometry.dispose(),a.material.dispose(),this}clear(e,t=!0,n=!0,r=!0){let i=e.getRenderTarget();for(let i=0;i<6;i++)e.setRenderTarget(this,i),e.clear(t,n,r);e.setRenderTarget(i)}};function om(e){let t=new WeakMap,n=new WeakMap,r=null;function i(e,t=!1){return e==null?null:t?o(e):a(e)}function a(n){if(n&&n.isTexture){let r=n.mapping;if(r===303||r===304){if(t.has(n)){let e=t.get(n).texture;return s(e,n.mapping)}{let r=n.image;if(r&&r.height>0){let i=new am(r.height);return i.fromEquirectangularTexture(e,n),t.set(n,i),n.addEventListener(`dispose`,l),s(i.texture,n.mapping)}return null}}}return n}function o(t){if(t&&t.isTexture){let i=t.mapping,a=i===303||i===304,o=i===301||i===302;if(a||o){let i=n.get(t),s=i===void 0?0:i.texture.pmremVersion;if(t.isRenderTargetTexture&&t.pmremVersion!==s)return r===null&&(r=new Xp(e)),i=a?r.fromEquirectangular(t,i):r.fromCubemap(t,i),i.texture.pmremVersion=t.pmremVersion,n.set(t,i),i.texture;if(i!==void 0)return i.texture;{let s=t.image;return a&&s&&s.height>0||o&&s&&c(s)?(r===null&&(r=new Xp(e)),i=a?r.fromEquirectangular(t):r.fromCubemap(t),i.texture.pmremVersion=t.pmremVersion,n.set(t,i),t.addEventListener(`dispose`,u),i.texture):null}}}return t}function s(e,t){return t===303?e.mapping=301:t===304&&(e.mapping=302),e}function c(e){let t=0;for(let n=0;n<6;n++)e[n]!==void 0&&t++;return t===6}function l(e){let n=e.target;n.removeEventListener(`dispose`,l);let r=t.get(n);r!==void 0&&(t.delete(n),r.dispose())}function u(e){let t=e.target;t.removeEventListener(`dispose`,u);let r=n.get(t);r!==void 0&&(n.delete(t),r.dispose())}function d(){t=new WeakMap,n=new WeakMap,r!==null&&(r.dispose(),r=null)}return{get:i,dispose:d}}function sm(e){let t={};function n(n){if(t[n]!==void 0)return t[n];let r=e.getExtension(n);return t[n]=r,r}return{has:function(e){return n(e)!==null},init:function(){n(`EXT_color_buffer_float`),n(`WEBGL_clip_cull_distance`),n(`OES_texture_float_linear`),n(`EXT_color_buffer_half_float`),n(`WEBGL_multisampled_render_to_texture`),n(`WEBGL_render_shared_exponent`)},get:function(e){let t=n(e);return t===null&&Ro(`WebGLRenderer: `+e+` extension not supported.`),t}}}function cm(e,t,n,r){let i={},a=new WeakMap;function o(e){let s=e.target;s.index!==null&&t.remove(s.index);for(let e in s.attributes)t.remove(s.attributes[e]);s.removeEventListener(`dispose`,o),delete i[s.id];let c=a.get(s);c&&(t.remove(c),a.delete(s)),r.releaseStatesOfGeometry(s),s.isInstancedBufferGeometry===!0&&delete s._maxInstanceCount,n.memory.geometries--}function s(e,t){return i[t.id]===!0||(t.addEventListener(`dispose`,o),i[t.id]=!0,n.memory.geometries++),t}function c(n){let r=n.attributes;for(let n in r)t.update(r[n],e.ARRAY_BUFFER)}function l(e){let n=[],r=e.index,i=e.attributes.position,o=0;if(i===void 0)return;if(r!==null){let e=r.array;o=r.version;for(let t=0,r=e.length;t=65535?nl:tl)(n,1);s.version=o;let c=a.get(e);c&&t.remove(c),a.set(e,s)}function u(e){let t=a.get(e);if(t){let n=e.index;n!==null&&t.versiont.maxTextureSize&&(m=Math.ceil(p/t.maxTextureSize),p=t.maxTextureSize);let h=new Float32Array(p*m*4*u),g=new Is(h,p,m,u);g.type=fa,g.needsUpdate=!0;let _=f*4;for(let t=0;t0){let i=new om(r.height);return i.fromEquirectangularTexture(e,n),t.set(n,i),n.addEventListener(`dispose`,l),s(i.texture,n.mapping)}return null}}}return n}function o(t){if(t&&t.isTexture){let i=t.mapping,a=i===303||i===304,o=i===301||i===302;if(a||o){let i=n.get(t),s=i===void 0?0:i.texture.pmremVersion;if(t.isRenderTargetTexture&&t.pmremVersion!==s)return r===null&&(r=new Zp(e)),i=a?r.fromEquirectangular(t,i):r.fromCubemap(t,i),i.texture.pmremVersion=t.pmremVersion,n.set(t,i),i.texture;if(i!==void 0)return i.texture;{let s=t.image;return a&&s&&s.height>0||o&&s&&c(s)?(r===null&&(r=new Zp(e)),i=a?r.fromEquirectangular(t):r.fromCubemap(t),i.texture.pmremVersion=t.pmremVersion,n.set(t,i),t.addEventListener(`dispose`,u),i.texture):null}}}return t}function s(e,t){return t===303?e.mapping=301:t===304&&(e.mapping=302),e}function c(e){let t=0;for(let n=0;n<6;n++)e[n]!==void 0&&t++;return t===6}function l(e){let n=e.target;n.removeEventListener(`dispose`,l);let r=t.get(n);r!==void 0&&(t.delete(n),r.dispose())}function u(e){let t=e.target;t.removeEventListener(`dispose`,u);let r=n.get(t);r!==void 0&&(n.delete(t),r.dispose())}function d(){t=new WeakMap,n=new WeakMap,r!==null&&(r.dispose(),r=null)}return{get:i,dispose:d}}function cm(e){let t={};function n(n){if(t[n]!==void 0)return t[n];let r=e.getExtension(n);return t[n]=r,r}return{has:function(e){return n(e)!==null},init:function(){n(`EXT_color_buffer_float`),n(`WEBGL_clip_cull_distance`),n(`OES_texture_float_linear`),n(`EXT_color_buffer_half_float`),n(`WEBGL_multisampled_render_to_texture`),n(`WEBGL_render_shared_exponent`)},get:function(e){let t=n(e);return t===null&&zo(`WebGLRenderer: `+e+` extension not supported.`),t}}}function lm(e,t,n,r){let i={},a=new WeakMap;function o(e){let s=e.target;s.index!==null&&t.remove(s.index);for(let e in s.attributes)t.remove(s.attributes[e]);s.removeEventListener(`dispose`,o),delete i[s.id];let c=a.get(s);c&&(t.remove(c),a.delete(s)),r.releaseStatesOfGeometry(s),s.isInstancedBufferGeometry===!0&&delete s._maxInstanceCount,n.memory.geometries--}function s(e,t){return i[t.id]===!0||(t.addEventListener(`dispose`,o),i[t.id]=!0,n.memory.geometries++),t}function c(n){let r=n.attributes;for(let n in r)t.update(r[n],e.ARRAY_BUFFER)}function l(e){let n=[],r=e.index,i=e.attributes.position,o=0;if(i===void 0)return;if(r!==null){let e=r.array;o=r.version;for(let t=0,r=e.length;t=65535?rl:nl)(n,1);s.version=o;let c=a.get(e);c&&t.remove(c),a.set(e,s)}function u(e){let t=a.get(e);if(t){let n=e.index;n!==null&&t.versiont.maxTextureSize&&(m=Math.ceil(p/t.maxTextureSize),p=t.maxTextureSize);let h=new Float32Array(p*m*4*u),g=new Ls(h,p,m,u);g.type=pa,g.needsUpdate=!0;let _=f*4;for(let t=0;t0&&v[0].isRenderPass===!0;let t=o.width,n=o.height;v.length>0&&s===null&&(s=new Fs(t,n,{type:pa,depthBuffer:!1,stencilBuffer:!1}),c=new Fs(t,n,{type:pa,depthBuffer:!1,stencilBuffer:!1}));for(let e=0;e0)return e;let i=t*n,a=bm[i];if(a===void 0&&(a=new Float32Array(i),bm[i]=a),t!==0){r.toArray(a,0);for(let r=1,i=0;r!==t;++r)i+=n,e[r].toArray(a,i)}return a}function Em(e,t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n0&&(this.seq=r.concat(i))}setValue(e,t,n,r){let i=this.map[t];i!==void 0&&i.setValue(e,n,r)}setOptional(e,t,n){let r=t[n];r!==void 0&&this.setValue(e,n,r)}static upload(e,t,n,r){for(let i=0,a=t.length;i!==a;++i){let a=t[i],o=n[a.id];o.needsUpdate!==!1&&a.setValue(e,o.value,r)}}static seqWithValue(e,t){let n=[];for(let r=0,i=e.length;r!==i;++r){let i=e[r];i.id in t&&n.push(i)}return n}};function Sh(e,t,n){let r=e.createShader(t);return e.shaderSource(r,n),e.compileShader(r),r}var Ch=37297,wh=0;function Th(e,t){let n=e.split(` + }`,depthTest:!1,depthWrite:!1}),d=new H(l,u),f=new qf(-1,1,1,-1,0,1),p=null,m=null,h=!1,g,_=null,v=[],y=!1;this.setSize=function(e,t){o.setSize(e,t),s!==null&&s.setSize(e,t),c!==null&&c.setSize(e,t);for(let n=0;n0&&v[0].isRenderPass===!0;let t=o.width,n=o.height;v.length>0&&s===null&&(s=new Is(t,n,{type:ma,depthBuffer:!1,stencilBuffer:!1}),c=new Is(t,n,{type:ma,depthBuffer:!1,stencilBuffer:!1}));for(let e=0;e0)return e;let i=t*n,a=xm[i];if(a===void 0&&(a=new Float32Array(i),xm[i]=a),t!==0){r.toArray(a,0);for(let r=1,i=0;r!==t;++r)i+=n,e[r].toArray(a,i)}return a}function Dm(e,t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n0&&(this.seq=r.concat(i))}setValue(e,t,n,r){let i=this.map[t];i!==void 0&&i.setValue(e,n,r)}setOptional(e,t,n){let r=t[n];r!==void 0&&this.setValue(e,n,r)}static upload(e,t,n,r){for(let i=0,a=t.length;i!==a;++i){let a=t[i],o=n[a.id];o.needsUpdate!==!1&&a.setValue(e,o.value,r)}}static seqWithValue(e,t){let n=[];for(let r=0,i=e.length;r!==i;++r){let i=e[r];i.id in t&&n.push(i)}return n}};function Ch(e,t,n){let r=e.createShader(t);return e.shaderSource(r,n),e.compileShader(r),r}var wh=37297,Th=0;function Eh(e,t){let n=e.split(` `),r=[],i=Math.max(t-6,0),a=Math.min(t+6,n.length);for(let e=i;e`:` `} ${i}: ${n[e]}`)}return r.join(` -`)}var Eh=new _s;function Dh(e){Ss._getMatrix(Eh,Ss.workingColorSpace,e);let t=`mat3( ${Eh.elements.map(e=>e.toFixed(4))} )`;switch(Ss.getTransfer(e)){case Co:return[t,`LinearTransferOETF`];case wo:return[t,`sRGBTransferOETF`];default:return Io(`WebGLProgram: Unsupported color space: `,e),[t,`LinearTransferOETF`]}}function Oh(e,t,n){let r=e.getShaderParameter(t,e.COMPILE_STATUS),i=(e.getShaderInfoLog(t)||``).trim();if(r&&i===``)return``;let a=/ERROR: 0:(\d+)/.exec(i);if(a){let r=parseInt(a[1]);return n.toUpperCase()+` +`)}var Dh=new vs;function Oh(e){Cs._getMatrix(Dh,Cs.workingColorSpace,e);let t=`mat3( ${Dh.elements.map(e=>e.toFixed(4))} )`;switch(Cs.getTransfer(e)){case wo:return[t,`LinearTransferOETF`];case To:return[t,`sRGBTransferOETF`];default:return Lo(`WebGLProgram: Unsupported color space: `,e),[t,`LinearTransferOETF`]}}function kh(e,t,n){let r=e.getShaderParameter(t,e.COMPILE_STATUS),i=(e.getShaderInfoLog(t)||``).trim();if(r&&i===``)return``;let a=/ERROR: 0:(\d+)/.exec(i);if(a){let r=parseInt(a[1]);return n.toUpperCase()+` `+i+` -`+Th(e.getShaderSource(t),r)}return i}function kh(e,t){let n=Dh(t);return[`vec4 ${e}( vec4 value ) {`,` return ${n[1]}( vec4( value.rgb * ${n[0]}, value.a ) );`,`}`].join(` -`)}var Ah={1:`Linear`,2:`Reinhard`,3:`Cineon`,4:`ACESFilmic`,6:`AgX`,7:`Neutral`,5:`Custom`};function jh(e,t){let n=Ah[t];return n===void 0?(Io(`WebGLProgram: Unsupported toneMapping:`,t),`vec3 `+e+`( vec3 color ) { return LinearToneMapping( color ); }`):`vec3 `+e+`( vec3 color ) { return `+n+`ToneMapping( color ); }`}var Mh=new B;function Nh(){return Ss.getLuminanceCoefficients(Mh),[`float luminance( const in vec3 rgb ) {`,` const vec3 weights = vec3( ${Mh.x.toFixed(4)}, ${Mh.y.toFixed(4)}, ${Mh.z.toFixed(4)} );`,` return dot( weights, rgb );`,`}`].join(` -`)}function Ph(e){return[e.extensionClipCullDistance?`#extension GL_ANGLE_clip_cull_distance : require`:``,e.extensionMultiDraw?`#extension GL_ANGLE_multi_draw : require`:``].filter(Lh).join(` -`)}function Fh(e){let t=[];for(let n in e){let r=e[n];r!==!1&&t.push(`#define `+n+` `+r)}return t.join(` -`)}function Ih(e,t){let n={},r=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES);for(let i=0;i/gm;function Vh(e){return e.replace(Bh,Uh)}var Hh=new Map;function Uh(e,t){let n=Op[t];if(n===void 0){let e=Hh.get(t);if(e!==void 0)n=Op[e],Io(`WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.`,t,e);else throw Error(`THREE.WebGLProgram: Can not resolve #include <`+t+`>`)}return Vh(n)}var Wh=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function Gh(e){return e.replace(Wh,Kh)}function Kh(e,t,n,r){let i=``;for(let e=parseInt(t);e/gm;function Hh(e){return e.replace(Vh,Wh)}var Uh=new Map;function Wh(e,t){let n=kp[t];if(n===void 0){let e=Uh.get(t);if(e!==void 0)n=kp[e],Lo(`WebGLRenderer: Shader chunk "%s" has been deprecated. Use "%s" instead.`,t,e);else throw Error(`THREE.WebGLProgram: Can not resolve #include <`+t+`>`)}return Hh(n)}var Gh=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function Kh(e){return e.replace(Gh,qh)}function qh(e,t,n,r){let i=``;for(let e=parseInt(t);e0&&(g+=` -`),_=[`#define SHADER_TYPE `+n.shaderType,`#define SHADER_NAME `+n.shaderName,m].filter(Lh).join(` +`),_=[`#define SHADER_TYPE `+n.shaderType,`#define SHADER_NAME `+n.shaderName,m].filter(Rh).join(` `),_.length>0&&(_+=` -`)):(g=[qh(n),`#define SHADER_TYPE `+n.shaderType,`#define SHADER_NAME `+n.shaderName,m,n.extensionClipCullDistance?`#define USE_CLIP_DISTANCE`:``,n.batching?`#define USE_BATCHING`:``,n.batchingColor?`#define USE_BATCHING_COLOR`:``,n.instancing?`#define USE_INSTANCING`:``,n.instancingColor?`#define USE_INSTANCING_COLOR`:``,n.instancingMorph?`#define USE_INSTANCING_MORPH`:``,n.useFog&&n.fog?`#define USE_FOG`:``,n.useFog&&n.fogExp2?`#define FOG_EXP2`:``,n.map?`#define USE_MAP`:``,n.envMap?`#define USE_ENVMAP`:``,n.envMap?`#define `+u:``,n.lightMap?`#define USE_LIGHTMAP`:``,n.aoMap?`#define USE_AOMAP`:``,n.bumpMap?`#define USE_BUMPMAP`:``,n.normalMap?`#define USE_NORMALMAP`:``,n.normalMapObjectSpace?`#define USE_NORMALMAP_OBJECTSPACE`:``,n.normalMapTangentSpace?`#define USE_NORMALMAP_TANGENTSPACE`:``,n.displacementMap?`#define USE_DISPLACEMENTMAP`:``,n.emissiveMap?`#define USE_EMISSIVEMAP`:``,n.anisotropy?`#define USE_ANISOTROPY`:``,n.anisotropyMap?`#define USE_ANISOTROPYMAP`:``,n.clearcoatMap?`#define USE_CLEARCOATMAP`:``,n.clearcoatRoughnessMap?`#define USE_CLEARCOAT_ROUGHNESSMAP`:``,n.clearcoatNormalMap?`#define USE_CLEARCOAT_NORMALMAP`:``,n.iridescenceMap?`#define USE_IRIDESCENCEMAP`:``,n.iridescenceThicknessMap?`#define USE_IRIDESCENCE_THICKNESSMAP`:``,n.specularMap?`#define USE_SPECULARMAP`:``,n.specularColorMap?`#define USE_SPECULAR_COLORMAP`:``,n.specularIntensityMap?`#define USE_SPECULAR_INTENSITYMAP`:``,n.roughnessMap?`#define USE_ROUGHNESSMAP`:``,n.metalnessMap?`#define USE_METALNESSMAP`:``,n.alphaMap?`#define USE_ALPHAMAP`:``,n.alphaHash?`#define USE_ALPHAHASH`:``,n.transmission?`#define USE_TRANSMISSION`:``,n.transmissionMap?`#define USE_TRANSMISSIONMAP`:``,n.thicknessMap?`#define USE_THICKNESSMAP`:``,n.sheenColorMap?`#define USE_SHEEN_COLORMAP`:``,n.sheenRoughnessMap?`#define USE_SHEEN_ROUGHNESSMAP`:``,n.mapUv?`#define MAP_UV `+n.mapUv:``,n.alphaMapUv?`#define ALPHAMAP_UV `+n.alphaMapUv:``,n.lightMapUv?`#define LIGHTMAP_UV `+n.lightMapUv:``,n.aoMapUv?`#define AOMAP_UV `+n.aoMapUv:``,n.emissiveMapUv?`#define EMISSIVEMAP_UV `+n.emissiveMapUv:``,n.bumpMapUv?`#define BUMPMAP_UV `+n.bumpMapUv:``,n.normalMapUv?`#define NORMALMAP_UV `+n.normalMapUv:``,n.displacementMapUv?`#define DISPLACEMENTMAP_UV `+n.displacementMapUv:``,n.metalnessMapUv?`#define METALNESSMAP_UV `+n.metalnessMapUv:``,n.roughnessMapUv?`#define ROUGHNESSMAP_UV `+n.roughnessMapUv:``,n.anisotropyMapUv?`#define ANISOTROPYMAP_UV `+n.anisotropyMapUv:``,n.clearcoatMapUv?`#define CLEARCOATMAP_UV `+n.clearcoatMapUv:``,n.clearcoatNormalMapUv?`#define CLEARCOAT_NORMALMAP_UV `+n.clearcoatNormalMapUv:``,n.clearcoatRoughnessMapUv?`#define CLEARCOAT_ROUGHNESSMAP_UV `+n.clearcoatRoughnessMapUv:``,n.iridescenceMapUv?`#define IRIDESCENCEMAP_UV `+n.iridescenceMapUv:``,n.iridescenceThicknessMapUv?`#define IRIDESCENCE_THICKNESSMAP_UV `+n.iridescenceThicknessMapUv:``,n.sheenColorMapUv?`#define SHEEN_COLORMAP_UV `+n.sheenColorMapUv:``,n.sheenRoughnessMapUv?`#define SHEEN_ROUGHNESSMAP_UV `+n.sheenRoughnessMapUv:``,n.specularMapUv?`#define SPECULARMAP_UV `+n.specularMapUv:``,n.specularColorMapUv?`#define SPECULAR_COLORMAP_UV `+n.specularColorMapUv:``,n.specularIntensityMapUv?`#define SPECULAR_INTENSITYMAP_UV `+n.specularIntensityMapUv:``,n.transmissionMapUv?`#define TRANSMISSIONMAP_UV `+n.transmissionMapUv:``,n.thicknessMapUv?`#define THICKNESSMAP_UV `+n.thicknessMapUv:``,n.vertexTangents&&n.flatShading===!1?`#define USE_TANGENT`:``,n.vertexNormals?`#define HAS_NORMAL`:``,n.vertexColors?`#define USE_COLOR`:``,n.vertexAlphas?`#define USE_COLOR_ALPHA`:``,n.vertexUv1s?`#define USE_UV1`:``,n.vertexUv2s?`#define USE_UV2`:``,n.vertexUv3s?`#define USE_UV3`:``,n.pointsUvs?`#define USE_POINTS_UV`:``,n.flatShading?`#define FLAT_SHADED`:``,n.skinning?`#define USE_SKINNING`:``,n.morphTargets?`#define USE_MORPHTARGETS`:``,n.morphNormals&&n.flatShading===!1?`#define USE_MORPHNORMALS`:``,n.morphColors?`#define USE_MORPHCOLORS`:``,n.morphTargetsCount>0?`#define MORPHTARGETS_TEXTURE_STRIDE `+n.morphTextureStride:``,n.morphTargetsCount>0?`#define MORPHTARGETS_COUNT `+n.morphTargetsCount:``,n.doubleSided?`#define DOUBLE_SIDED`:``,n.flipSided?`#define FLIP_SIDED`:``,n.shadowMapEnabled?`#define USE_SHADOWMAP`:``,n.shadowMapEnabled?`#define `+c:``,n.sizeAttenuation?`#define USE_SIZEATTENUATION`:``,n.numLightProbes>0?`#define USE_LIGHT_PROBES`:``,n.logarithmicDepthBuffer?`#define USE_LOGARITHMIC_DEPTH_BUFFER`:``,n.reversedDepthBuffer?`#define USE_REVERSED_DEPTH_BUFFER`:``,`uniform mat4 modelMatrix;`,`uniform mat4 modelViewMatrix;`,`uniform mat4 projectionMatrix;`,`uniform mat4 viewMatrix;`,`uniform mat3 normalMatrix;`,`uniform vec3 cameraPosition;`,`uniform bool isOrthographic;`,`#ifdef USE_INSTANCING`,` attribute mat4 instanceMatrix;`,`#endif`,`#ifdef USE_INSTANCING_COLOR`,` attribute vec3 instanceColor;`,`#endif`,`#ifdef USE_INSTANCING_MORPH`,` uniform sampler2D morphTexture;`,`#endif`,`attribute vec3 position;`,`attribute vec3 normal;`,`attribute vec2 uv;`,`#ifdef USE_UV1`,` attribute vec2 uv1;`,`#endif`,`#ifdef USE_UV2`,` attribute vec2 uv2;`,`#endif`,`#ifdef USE_UV3`,` attribute vec2 uv3;`,`#endif`,`#ifdef USE_TANGENT`,` attribute vec4 tangent;`,`#endif`,`#if defined( USE_COLOR_ALPHA )`,` attribute vec4 color;`,`#elif defined( USE_COLOR )`,` attribute vec3 color;`,`#endif`,`#ifdef USE_SKINNING`,` attribute vec4 skinIndex;`,` attribute vec4 skinWeight;`,`#endif`,` -`].filter(Lh).join(` -`),_=[qh(n),`#define SHADER_TYPE `+n.shaderType,`#define SHADER_NAME `+n.shaderName,m,n.useFog&&n.fog?`#define USE_FOG`:``,n.useFog&&n.fogExp2?`#define FOG_EXP2`:``,n.alphaToCoverage?`#define ALPHA_TO_COVERAGE`:``,n.map?`#define USE_MAP`:``,n.matcap?`#define USE_MATCAP`:``,n.envMap?`#define USE_ENVMAP`:``,n.envMap?`#define `+l:``,n.envMap?`#define `+u:``,n.envMap?`#define `+d:``,f?`#define CUBEUV_TEXEL_WIDTH `+f.texelWidth:``,f?`#define CUBEUV_TEXEL_HEIGHT `+f.texelHeight:``,f?`#define CUBEUV_MAX_MIP `+f.maxMip+`.0`:``,n.lightMap?`#define USE_LIGHTMAP`:``,n.aoMap?`#define USE_AOMAP`:``,n.bumpMap?`#define USE_BUMPMAP`:``,n.normalMap?`#define USE_NORMALMAP`:``,n.normalMapObjectSpace?`#define USE_NORMALMAP_OBJECTSPACE`:``,n.normalMapTangentSpace?`#define USE_NORMALMAP_TANGENTSPACE`:``,n.packedNormalMap?`#define USE_PACKED_NORMALMAP`:``,n.emissiveMap?`#define USE_EMISSIVEMAP`:``,n.anisotropy?`#define USE_ANISOTROPY`:``,n.anisotropyMap?`#define USE_ANISOTROPYMAP`:``,n.clearcoat?`#define USE_CLEARCOAT`:``,n.clearcoatMap?`#define USE_CLEARCOATMAP`:``,n.clearcoatRoughnessMap?`#define USE_CLEARCOAT_ROUGHNESSMAP`:``,n.clearcoatNormalMap?`#define USE_CLEARCOAT_NORMALMAP`:``,n.dispersion?`#define USE_DISPERSION`:``,n.retroreflection?`#define USE_RETROREFLECTION`:``,n.iridescence?`#define USE_IRIDESCENCE`:``,n.iridescenceMap?`#define USE_IRIDESCENCEMAP`:``,n.iridescenceThicknessMap?`#define USE_IRIDESCENCE_THICKNESSMAP`:``,n.specularMap?`#define USE_SPECULARMAP`:``,n.specularColorMap?`#define USE_SPECULAR_COLORMAP`:``,n.specularIntensityMap?`#define USE_SPECULAR_INTENSITYMAP`:``,n.roughnessMap?`#define USE_ROUGHNESSMAP`:``,n.metalnessMap?`#define USE_METALNESSMAP`:``,n.alphaMap?`#define USE_ALPHAMAP`:``,n.alphaTest?`#define USE_ALPHATEST`:``,n.alphaHash?`#define USE_ALPHAHASH`:``,n.sheen?`#define USE_SHEEN`:``,n.sheenColorMap?`#define USE_SHEEN_COLORMAP`:``,n.sheenRoughnessMap?`#define USE_SHEEN_ROUGHNESSMAP`:``,n.transmission?`#define USE_TRANSMISSION`:``,n.transmissionMap?`#define USE_TRANSMISSIONMAP`:``,n.thicknessMap?`#define USE_THICKNESSMAP`:``,n.vertexTangents&&n.flatShading===!1?`#define USE_TANGENT`:``,n.vertexColors||n.instancingColor?`#define USE_COLOR`:``,n.vertexAlphas||n.batchingColor?`#define USE_COLOR_ALPHA`:``,n.vertexUv1s?`#define USE_UV1`:``,n.vertexUv2s?`#define USE_UV2`:``,n.vertexUv3s?`#define USE_UV3`:``,n.pointsUvs?`#define USE_POINTS_UV`:``,n.gradientMap?`#define USE_GRADIENTMAP`:``,n.flatShading?`#define FLAT_SHADED`:``,n.doubleSided?`#define DOUBLE_SIDED`:``,n.flipSided?`#define FLIP_SIDED`:``,n.shadowMapEnabled?`#define USE_SHADOWMAP`:``,n.shadowMapEnabled?`#define `+c:``,n.premultipliedAlpha?`#define PREMULTIPLIED_ALPHA`:``,n.numLightProbes>0?`#define USE_LIGHT_PROBES`:``,n.numLightProbeGrids>0?`#define USE_LIGHT_PROBES_GRID`:``,n.decodeVideoTexture?`#define DECODE_VIDEO_TEXTURE`:``,n.decodeVideoTextureEmissive?`#define DECODE_VIDEO_TEXTURE_EMISSIVE`:``,n.logarithmicDepthBuffer?`#define USE_LOGARITHMIC_DEPTH_BUFFER`:``,n.reversedDepthBuffer?`#define USE_REVERSED_DEPTH_BUFFER`:``,`uniform mat4 viewMatrix;`,`uniform vec3 cameraPosition;`,`uniform bool isOrthographic;`,n.toneMapping===0?``:`#define TONE_MAPPING`,n.toneMapping===0?``:Op.tonemapping_pars_fragment,n.toneMapping===0?``:jh(`toneMapping`,n.toneMapping),n.dithering?`#define DITHERING`:``,n.opaque?`#define OPAQUE`:``,Op.colorspace_pars_fragment,kh(`linearToOutputTexel`,n.outputColorSpace),Nh(),n.useDepthPacking?`#define DEPTH_PACKING `+n.depthPacking:``,` -`].filter(Lh).join(` -`)),o=Vh(o),o=Rh(o,n),o=zh(o,n),s=Vh(s),s=Rh(s,n),s=zh(s,n),o=Gh(o),s=Gh(s),n.isRawShaderMaterial!==!0&&(v=`#version 300 es +`)):(g=[Jh(n),`#define SHADER_TYPE `+n.shaderType,`#define SHADER_NAME `+n.shaderName,m,n.extensionClipCullDistance?`#define USE_CLIP_DISTANCE`:``,n.batching?`#define USE_BATCHING`:``,n.batchingColor?`#define USE_BATCHING_COLOR`:``,n.instancing?`#define USE_INSTANCING`:``,n.instancingColor?`#define USE_INSTANCING_COLOR`:``,n.instancingMorph?`#define USE_INSTANCING_MORPH`:``,n.useFog&&n.fog?`#define USE_FOG`:``,n.useFog&&n.fogExp2?`#define FOG_EXP2`:``,n.map?`#define USE_MAP`:``,n.envMap?`#define USE_ENVMAP`:``,n.envMap?`#define `+u:``,n.lightMap?`#define USE_LIGHTMAP`:``,n.aoMap?`#define USE_AOMAP`:``,n.bumpMap?`#define USE_BUMPMAP`:``,n.normalMap?`#define USE_NORMALMAP`:``,n.normalMapObjectSpace?`#define USE_NORMALMAP_OBJECTSPACE`:``,n.normalMapTangentSpace?`#define USE_NORMALMAP_TANGENTSPACE`:``,n.displacementMap?`#define USE_DISPLACEMENTMAP`:``,n.emissiveMap?`#define USE_EMISSIVEMAP`:``,n.anisotropy?`#define USE_ANISOTROPY`:``,n.anisotropyMap?`#define USE_ANISOTROPYMAP`:``,n.clearcoatMap?`#define USE_CLEARCOATMAP`:``,n.clearcoatRoughnessMap?`#define USE_CLEARCOAT_ROUGHNESSMAP`:``,n.clearcoatNormalMap?`#define USE_CLEARCOAT_NORMALMAP`:``,n.iridescenceMap?`#define USE_IRIDESCENCEMAP`:``,n.iridescenceThicknessMap?`#define USE_IRIDESCENCE_THICKNESSMAP`:``,n.specularMap?`#define USE_SPECULARMAP`:``,n.specularColorMap?`#define USE_SPECULAR_COLORMAP`:``,n.specularIntensityMap?`#define USE_SPECULAR_INTENSITYMAP`:``,n.roughnessMap?`#define USE_ROUGHNESSMAP`:``,n.metalnessMap?`#define USE_METALNESSMAP`:``,n.alphaMap?`#define USE_ALPHAMAP`:``,n.alphaHash?`#define USE_ALPHAHASH`:``,n.transmission?`#define USE_TRANSMISSION`:``,n.transmissionMap?`#define USE_TRANSMISSIONMAP`:``,n.thicknessMap?`#define USE_THICKNESSMAP`:``,n.sheenColorMap?`#define USE_SHEEN_COLORMAP`:``,n.sheenRoughnessMap?`#define USE_SHEEN_ROUGHNESSMAP`:``,n.mapUv?`#define MAP_UV `+n.mapUv:``,n.alphaMapUv?`#define ALPHAMAP_UV `+n.alphaMapUv:``,n.lightMapUv?`#define LIGHTMAP_UV `+n.lightMapUv:``,n.aoMapUv?`#define AOMAP_UV `+n.aoMapUv:``,n.emissiveMapUv?`#define EMISSIVEMAP_UV `+n.emissiveMapUv:``,n.bumpMapUv?`#define BUMPMAP_UV `+n.bumpMapUv:``,n.normalMapUv?`#define NORMALMAP_UV `+n.normalMapUv:``,n.displacementMapUv?`#define DISPLACEMENTMAP_UV `+n.displacementMapUv:``,n.metalnessMapUv?`#define METALNESSMAP_UV `+n.metalnessMapUv:``,n.roughnessMapUv?`#define ROUGHNESSMAP_UV `+n.roughnessMapUv:``,n.anisotropyMapUv?`#define ANISOTROPYMAP_UV `+n.anisotropyMapUv:``,n.clearcoatMapUv?`#define CLEARCOATMAP_UV `+n.clearcoatMapUv:``,n.clearcoatNormalMapUv?`#define CLEARCOAT_NORMALMAP_UV `+n.clearcoatNormalMapUv:``,n.clearcoatRoughnessMapUv?`#define CLEARCOAT_ROUGHNESSMAP_UV `+n.clearcoatRoughnessMapUv:``,n.iridescenceMapUv?`#define IRIDESCENCEMAP_UV `+n.iridescenceMapUv:``,n.iridescenceThicknessMapUv?`#define IRIDESCENCE_THICKNESSMAP_UV `+n.iridescenceThicknessMapUv:``,n.sheenColorMapUv?`#define SHEEN_COLORMAP_UV `+n.sheenColorMapUv:``,n.sheenRoughnessMapUv?`#define SHEEN_ROUGHNESSMAP_UV `+n.sheenRoughnessMapUv:``,n.specularMapUv?`#define SPECULARMAP_UV `+n.specularMapUv:``,n.specularColorMapUv?`#define SPECULAR_COLORMAP_UV `+n.specularColorMapUv:``,n.specularIntensityMapUv?`#define SPECULAR_INTENSITYMAP_UV `+n.specularIntensityMapUv:``,n.transmissionMapUv?`#define TRANSMISSIONMAP_UV `+n.transmissionMapUv:``,n.thicknessMapUv?`#define THICKNESSMAP_UV `+n.thicknessMapUv:``,n.vertexTangents&&n.flatShading===!1?`#define USE_TANGENT`:``,n.vertexNormals?`#define HAS_NORMAL`:``,n.vertexColors?`#define USE_COLOR`:``,n.vertexAlphas?`#define USE_COLOR_ALPHA`:``,n.vertexUv1s?`#define USE_UV1`:``,n.vertexUv2s?`#define USE_UV2`:``,n.vertexUv3s?`#define USE_UV3`:``,n.pointsUvs?`#define USE_POINTS_UV`:``,n.flatShading?`#define FLAT_SHADED`:``,n.skinning?`#define USE_SKINNING`:``,n.morphTargets?`#define USE_MORPHTARGETS`:``,n.morphNormals&&n.flatShading===!1?`#define USE_MORPHNORMALS`:``,n.morphColors?`#define USE_MORPHCOLORS`:``,n.morphTargetsCount>0?`#define MORPHTARGETS_TEXTURE_STRIDE `+n.morphTextureStride:``,n.morphTargetsCount>0?`#define MORPHTARGETS_COUNT `+n.morphTargetsCount:``,n.doubleSided?`#define DOUBLE_SIDED`:``,n.flipSided?`#define FLIP_SIDED`:``,n.shadowMapEnabled?`#define USE_SHADOWMAP`:``,n.shadowMapEnabled?`#define `+c:``,n.sizeAttenuation?`#define USE_SIZEATTENUATION`:``,n.numLightProbes>0?`#define USE_LIGHT_PROBES`:``,n.logarithmicDepthBuffer?`#define USE_LOGARITHMIC_DEPTH_BUFFER`:``,n.reversedDepthBuffer?`#define USE_REVERSED_DEPTH_BUFFER`:``,`uniform mat4 modelMatrix;`,`uniform mat4 modelViewMatrix;`,`uniform mat4 projectionMatrix;`,`uniform mat4 viewMatrix;`,`uniform mat3 normalMatrix;`,`uniform vec3 cameraPosition;`,`uniform bool isOrthographic;`,`#ifdef USE_INSTANCING`,` attribute mat4 instanceMatrix;`,`#endif`,`#ifdef USE_INSTANCING_COLOR`,` attribute vec3 instanceColor;`,`#endif`,`#ifdef USE_INSTANCING_MORPH`,` uniform sampler2D morphTexture;`,`#endif`,`attribute vec3 position;`,`attribute vec3 normal;`,`attribute vec2 uv;`,`#ifdef USE_UV1`,` attribute vec2 uv1;`,`#endif`,`#ifdef USE_UV2`,` attribute vec2 uv2;`,`#endif`,`#ifdef USE_UV3`,` attribute vec2 uv3;`,`#endif`,`#ifdef USE_TANGENT`,` attribute vec4 tangent;`,`#endif`,`#if defined( USE_COLOR_ALPHA )`,` attribute vec4 color;`,`#elif defined( USE_COLOR )`,` attribute vec3 color;`,`#endif`,`#ifdef USE_SKINNING`,` attribute vec4 skinIndex;`,` attribute vec4 skinWeight;`,`#endif`,` +`].filter(Rh).join(` +`),_=[Jh(n),`#define SHADER_TYPE `+n.shaderType,`#define SHADER_NAME `+n.shaderName,m,n.useFog&&n.fog?`#define USE_FOG`:``,n.useFog&&n.fogExp2?`#define FOG_EXP2`:``,n.alphaToCoverage?`#define ALPHA_TO_COVERAGE`:``,n.map?`#define USE_MAP`:``,n.matcap?`#define USE_MATCAP`:``,n.envMap?`#define USE_ENVMAP`:``,n.envMap?`#define `+l:``,n.envMap?`#define `+u:``,n.envMap?`#define `+d:``,f?`#define CUBEUV_TEXEL_WIDTH `+f.texelWidth:``,f?`#define CUBEUV_TEXEL_HEIGHT `+f.texelHeight:``,f?`#define CUBEUV_MAX_MIP `+f.maxMip+`.0`:``,n.lightMap?`#define USE_LIGHTMAP`:``,n.aoMap?`#define USE_AOMAP`:``,n.bumpMap?`#define USE_BUMPMAP`:``,n.normalMap?`#define USE_NORMALMAP`:``,n.normalMapObjectSpace?`#define USE_NORMALMAP_OBJECTSPACE`:``,n.normalMapTangentSpace?`#define USE_NORMALMAP_TANGENTSPACE`:``,n.packedNormalMap?`#define USE_PACKED_NORMALMAP`:``,n.emissiveMap?`#define USE_EMISSIVEMAP`:``,n.anisotropy?`#define USE_ANISOTROPY`:``,n.anisotropyMap?`#define USE_ANISOTROPYMAP`:``,n.clearcoat?`#define USE_CLEARCOAT`:``,n.clearcoatMap?`#define USE_CLEARCOATMAP`:``,n.clearcoatRoughnessMap?`#define USE_CLEARCOAT_ROUGHNESSMAP`:``,n.clearcoatNormalMap?`#define USE_CLEARCOAT_NORMALMAP`:``,n.dispersion?`#define USE_DISPERSION`:``,n.retroreflection?`#define USE_RETROREFLECTION`:``,n.iridescence?`#define USE_IRIDESCENCE`:``,n.iridescenceMap?`#define USE_IRIDESCENCEMAP`:``,n.iridescenceThicknessMap?`#define USE_IRIDESCENCE_THICKNESSMAP`:``,n.specularMap?`#define USE_SPECULARMAP`:``,n.specularColorMap?`#define USE_SPECULAR_COLORMAP`:``,n.specularIntensityMap?`#define USE_SPECULAR_INTENSITYMAP`:``,n.roughnessMap?`#define USE_ROUGHNESSMAP`:``,n.metalnessMap?`#define USE_METALNESSMAP`:``,n.alphaMap?`#define USE_ALPHAMAP`:``,n.alphaTest?`#define USE_ALPHATEST`:``,n.alphaHash?`#define USE_ALPHAHASH`:``,n.sheen?`#define USE_SHEEN`:``,n.sheenColorMap?`#define USE_SHEEN_COLORMAP`:``,n.sheenRoughnessMap?`#define USE_SHEEN_ROUGHNESSMAP`:``,n.transmission?`#define USE_TRANSMISSION`:``,n.transmissionMap?`#define USE_TRANSMISSIONMAP`:``,n.thicknessMap?`#define USE_THICKNESSMAP`:``,n.vertexTangents&&n.flatShading===!1?`#define USE_TANGENT`:``,n.vertexColors||n.instancingColor?`#define USE_COLOR`:``,n.vertexAlphas||n.batchingColor?`#define USE_COLOR_ALPHA`:``,n.vertexUv1s?`#define USE_UV1`:``,n.vertexUv2s?`#define USE_UV2`:``,n.vertexUv3s?`#define USE_UV3`:``,n.pointsUvs?`#define USE_POINTS_UV`:``,n.gradientMap?`#define USE_GRADIENTMAP`:``,n.flatShading?`#define FLAT_SHADED`:``,n.doubleSided?`#define DOUBLE_SIDED`:``,n.flipSided?`#define FLIP_SIDED`:``,n.shadowMapEnabled?`#define USE_SHADOWMAP`:``,n.shadowMapEnabled?`#define `+c:``,n.premultipliedAlpha?`#define PREMULTIPLIED_ALPHA`:``,n.numLightProbes>0?`#define USE_LIGHT_PROBES`:``,n.numLightProbeGrids>0?`#define USE_LIGHT_PROBES_GRID`:``,n.decodeVideoTexture?`#define DECODE_VIDEO_TEXTURE`:``,n.decodeVideoTextureEmissive?`#define DECODE_VIDEO_TEXTURE_EMISSIVE`:``,n.logarithmicDepthBuffer?`#define USE_LOGARITHMIC_DEPTH_BUFFER`:``,n.reversedDepthBuffer?`#define USE_REVERSED_DEPTH_BUFFER`:``,`uniform mat4 viewMatrix;`,`uniform vec3 cameraPosition;`,`uniform bool isOrthographic;`,n.toneMapping===0?``:`#define TONE_MAPPING`,n.toneMapping===0?``:kp.tonemapping_pars_fragment,n.toneMapping===0?``:Mh(`toneMapping`,n.toneMapping),n.dithering?`#define DITHERING`:``,n.opaque?`#define OPAQUE`:``,kp.colorspace_pars_fragment,Ah(`linearToOutputTexel`,n.outputColorSpace),Ph(),n.useDepthPacking?`#define DEPTH_PACKING `+n.depthPacking:``,` +`].filter(Rh).join(` +`)),o=Hh(o),o=zh(o,n),o=Bh(o,n),s=Hh(s),s=zh(s,n),s=Bh(s,n),o=Kh(o),s=Kh(s),n.isRawShaderMaterial!==!0&&(v=`#version 300 es `,g=[p,`#define attribute in`,`#define varying out`,`#define texture2D texture`].join(` `)+` `+g,_=[`#define varying in`,n.glslVersion===`300 es`?``:`layout(location = 0) out highp vec4 pc_fragColor;`,n.glslVersion===`300 es`?``:`#define gl_FragColor pc_fragColor`,`#define gl_FragDepthEXT gl_FragDepth`,`#define texture2D texture`,`#define textureCube texture`,`#define texture2DProj textureProj`,`#define texture2DLodEXT textureLod`,`#define texture2DProjLodEXT textureProjLod`,`#define textureCubeLodEXT textureLod`,`#define texture2DGradEXT textureGrad`,`#define texture2DProjGradEXT textureProjGrad`,`#define textureCubeGradEXT textureGrad`].join(` `)+` -`+_);let y=v+g+o,b=v+_+s,x=Sh(i,i.VERTEX_SHADER,y),S=Sh(i,i.FRAGMENT_SHADER,b);i.attachShader(h,x),i.attachShader(h,S),n.index0AttributeName===void 0?n.hasPositionAttribute===!0&&i.bindAttribLocation(h,0,`position`):i.bindAttribLocation(h,0,n.index0AttributeName),i.linkProgram(h);function C(t){if(e.debug.checkShaderErrors){let n=i.getProgramInfoLog(h)||``,r=i.getShaderInfoLog(x)||``,a=i.getShaderInfoLog(S)||``,o=n.trim(),s=r.trim(),c=a.trim(),l=!0,u=!0;if(i.getProgramParameter(h,i.LINK_STATUS)===!1){if(l=!1,typeof e.debug.onShaderError==`function`)e.debug.onShaderError(i,h,x,S);else{let e=Oh(i,x,`vertex`),n=Oh(i,S,`fragment`);Lo(`WebGLProgram: Shader Error `+i.getError()+` - VALIDATE_STATUS `+i.getProgramParameter(h,i.VALIDATE_STATUS)+` +`+_);let y=v+g+o,b=v+_+s,x=Ch(i,i.VERTEX_SHADER,y),S=Ch(i,i.FRAGMENT_SHADER,b);i.attachShader(h,x),i.attachShader(h,S),n.index0AttributeName===void 0?n.hasPositionAttribute===!0&&i.bindAttribLocation(h,0,`position`):i.bindAttribLocation(h,0,n.index0AttributeName),i.linkProgram(h);function C(t){if(e.debug.checkShaderErrors){let n=i.getProgramInfoLog(h)||``,r=i.getShaderInfoLog(x)||``,a=i.getShaderInfoLog(S)||``,o=n.trim(),s=r.trim(),c=a.trim(),l=!0,u=!0;if(i.getProgramParameter(h,i.LINK_STATUS)===!1){if(l=!1,typeof e.debug.onShaderError==`function`)e.debug.onShaderError(i,h,x,S);else{let e=kh(i,x,`vertex`),n=kh(i,S,`fragment`);Ro(`WebGLProgram: Shader Error `+i.getError()+` - VALIDATE_STATUS `+i.getProgramParameter(h,i.VALIDATE_STATUS)+` Material Name: `+t.name+` Material Type: `+t.type+` Program Info Log: `+o+` `+e+` -`+n)}}else o===``?(s===``||c===``)&&(u=!1):Io(`WebGLProgram: Program Info Log:`,o);u&&(t.diagnostics={runnable:l,programLog:o,vertexShader:{log:s,prefix:g},fragmentShader:{log:c,prefix:_}})}i.deleteShader(x),i.deleteShader(S),w=new xh(i,h),T=Ih(i,h)}let w;this.getUniforms=function(){return w===void 0&&C(this),w};let T;this.getAttributes=function(){return T===void 0&&C(this),T};let E=n.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return E===!1&&(E=i.getProgramParameter(h,Ch)),E},this.destroy=function(){r.releaseStatesOfProgram(this),i.deleteProgram(h),this.program=void 0},this.type=n.shaderType,this.name=n.shaderName,this.id=wh++,this.cacheKey=t,this.usedTimes=1,this.program=h,this.vertexShader=x,this.fragmentShader=S,this}var ig=0,ag=class{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e,t,n){let r=this._getShaderCacheForMaterial(e);return r.has(t)===!1&&(r.add(t),t.usedTimes++),r.has(n)===!1&&(r.add(n),n.usedTimes++),this}remove(e){let t=this.materialCache.get(e);for(let e of t)e.usedTimes--,e.usedTimes===0&&this.shaderCache.delete(e.code);return this.materialCache.delete(e),this}getVertexShaderStage(e){return this._getShaderStage(e.vertexShader)}getFragmentShaderStage(e){return this._getShaderStage(e.fragmentShader)}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){let t=this.materialCache,n=t.get(e);return n===void 0&&(n=new Set,t.set(e,n)),n}_getShaderStage(e){let t=this.shaderCache,n=t.get(e);return n===void 0&&(n=new og(e),t.set(e,n)),n}},og=class{constructor(e){this.id=ig++,this.code=e,this.usedTimes=0}};function sg(e){return e===1030||e===37490||e===36285}function cg(e,t,n,r,i,a){let o=new Ys,s=new ag,c=new Set,l=[],u=new Map,d=r.logarithmicDepthBuffer,f=r.precision,p={MeshDepthMaterial:`depth`,MeshDistanceMaterial:`distance`,MeshNormalMaterial:`normal`,MeshBasicMaterial:`basic`,MeshLambertMaterial:`lambert`,MeshPhongMaterial:`phong`,MeshToonMaterial:`toon`,MeshStandardMaterial:`physical`,MeshPhysicalMaterial:`physical`,MeshMatcapMaterial:`matcap`,LineBasicMaterial:`basic`,LineDashedMaterial:`dashed`,PointsMaterial:`points`,ShadowMaterial:`shadow`,SpriteMaterial:`sprite`};function m(e){return c.add(e),e===0?`uv`:`uv${e}`}function h(i,o,l,u,h,g){let _=u.fog,v=h.geometry,y=i.isMeshStandardMaterial||i.isMeshLambertMaterial||i.isMeshPhongMaterial?u.environment:null,b=i.isMeshStandardMaterial||i.isMeshLambertMaterial&&!i.envMap||i.isMeshPhongMaterial&&!i.envMap,x=t.get(i.envMap||y,b),S=x&&x.mapping===306?x.image.height:null,C=p[i.type];i.precision!==null&&(f=r.getMaxPrecision(i.precision),f!==i.precision&&Io(`WebGLProgram.getParameters:`,i.precision,`not supported, using`,f,`instead.`));let w=v.morphAttributes.position||v.morphAttributes.normal||v.morphAttributes.color,T=w===void 0?0:w.length,E=0;v.morphAttributes.position!==void 0&&(E=1),v.morphAttributes.normal!==void 0&&(E=2),v.morphAttributes.color!==void 0&&(E=3);let D,O,k,ee;if(C){let e=kp[C];D=e.vertexShader,O=e.fragmentShader}else{D=i.vertexShader,O=i.fragmentShader;let e=s.getVertexShaderStage(i),t=s.getFragmentShaderStage(i);s.update(i,e,t),k=e.id,ee=t.id}let A=e.getRenderTarget(),te=e.state.buffers.depth.getReversed(),j=h.isInstancedMesh===!0,M=h.isBatchedMesh===!0,ne=!!i.map,re=!!i.matcap,ie=!!x,N=!!i.aoMap,ae=!!i.lightMap,oe=!!i.bumpMap&&i.wireframe===!1,se=!!i.normalMap,ce=!!i.displacementMap,le=!!i.emissiveMap,ue=!!i.metalnessMap,de=!!i.roughnessMap,fe=i.anisotropy>0,pe=i.clearcoat>0,me=i.dispersion>0,he=i.retroreflectivity>0,ge=i.iridescence>0,_e=i.sheen>0,ve=i.transmission>0,ye=fe&&!!i.anisotropyMap,be=pe&&!!i.clearcoatMap,xe=pe&&!!i.clearcoatNormalMap,Se=pe&&!!i.clearcoatRoughnessMap,Ce=ge&&!!i.iridescenceMap,P=ge&&!!i.iridescenceThicknessMap,we=_e&&!!i.sheenColorMap,Te=_e&&!!i.sheenRoughnessMap,F=!!i.specularMap,I=!!i.specularColorMap,Ee=!!i.specularIntensityMap,De=ve&&!!i.transmissionMap,Oe=ve&&!!i.thicknessMap,ke=!!i.gradientMap,Ae=!!i.alphaMap,je=i.alphaTest>0,Me=!!i.alphaHash,Ne=!!i.extensions,Pe=0;i.toneMapped&&(A===null||A.isXRRenderTarget===!0)&&(Pe=e.toneMapping);let Fe={shaderID:C,shaderType:i.type,shaderName:i.name,vertexShader:D,fragmentShader:O,defines:i.defines,customVertexShaderID:k,customFragmentShaderID:ee,isRawShaderMaterial:i.isRawShaderMaterial===!0,glslVersion:i.glslVersion,precision:f,batching:M,batchingColor:M&&h._colorsTexture!==null,instancing:j,instancingColor:j&&h.instanceColor!==null,instancingMorph:j&&h.morphTexture!==null,outputColorSpace:A===null?e.outputColorSpace:A.isXRRenderTarget===!0?A.texture.colorSpace:Ss.workingColorSpace,alphaToCoverage:!!i.alphaToCoverage,map:ne,matcap:re,envMap:ie,envMapMode:ie&&x.mapping,envMapCubeUVHeight:S,aoMap:N,lightMap:ae,bumpMap:oe,normalMap:se,displacementMap:ce,emissiveMap:le,normalMapObjectSpace:se&&i.normalMapType===1,normalMapTangentSpace:se&&i.normalMapType===0,packedNormalMap:se&&i.normalMapType===0&&sg(i.normalMap.format),metalnessMap:ue,roughnessMap:de,anisotropy:fe,anisotropyMap:ye,clearcoat:pe,clearcoatMap:be,clearcoatNormalMap:xe,clearcoatRoughnessMap:Se,dispersion:me,retroreflection:he,iridescence:ge,iridescenceMap:Ce,iridescenceThicknessMap:P,sheen:_e,sheenColorMap:we,sheenRoughnessMap:Te,specularMap:F,specularColorMap:I,specularIntensityMap:Ee,transmission:ve,transmissionMap:De,thicknessMap:Oe,gradientMap:ke,opaque:i.transparent===!1&&i.blending===1&&i.alphaToCoverage===!1,alphaMap:Ae,alphaTest:je,alphaHash:Me,combine:i.combine,mapUv:ne&&m(i.map.channel),aoMapUv:N&&m(i.aoMap.channel),lightMapUv:ae&&m(i.lightMap.channel),bumpMapUv:oe&&m(i.bumpMap.channel),normalMapUv:se&&m(i.normalMap.channel),displacementMapUv:ce&&m(i.displacementMap.channel),emissiveMapUv:le&&m(i.emissiveMap.channel),metalnessMapUv:ue&&m(i.metalnessMap.channel),roughnessMapUv:de&&m(i.roughnessMap.channel),anisotropyMapUv:ye&&m(i.anisotropyMap.channel),clearcoatMapUv:be&&m(i.clearcoatMap.channel),clearcoatNormalMapUv:xe&&m(i.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:Se&&m(i.clearcoatRoughnessMap.channel),iridescenceMapUv:Ce&&m(i.iridescenceMap.channel),iridescenceThicknessMapUv:P&&m(i.iridescenceThicknessMap.channel),sheenColorMapUv:we&&m(i.sheenColorMap.channel),sheenRoughnessMapUv:Te&&m(i.sheenRoughnessMap.channel),specularMapUv:F&&m(i.specularMap.channel),specularColorMapUv:I&&m(i.specularColorMap.channel),specularIntensityMapUv:Ee&&m(i.specularIntensityMap.channel),transmissionMapUv:De&&m(i.transmissionMap.channel),thicknessMapUv:Oe&&m(i.thicknessMap.channel),alphaMapUv:Ae&&m(i.alphaMap.channel),vertexTangents:!!v.attributes.tangent&&(se||fe),vertexNormals:!!v.attributes.normal,vertexColors:i.vertexColors,vertexAlphas:i.vertexColors===!0&&!!v.attributes.color&&v.attributes.color.itemSize===4,pointsUvs:h.isPoints===!0&&!!v.attributes.uv&&(ne||Ae),fog:!!_,useFog:i.fog===!0,fogExp2:!!_&&_.isFogExp2,flatShading:i.wireframe===!1&&(i.flatShading===!0||v.attributes.normal===void 0&&se===!1&&(i.isMeshLambertMaterial||i.isMeshPhongMaterial||i.isMeshStandardMaterial||i.isMeshPhysicalMaterial)),sizeAttenuation:i.sizeAttenuation===!0,logarithmicDepthBuffer:d,reversedDepthBuffer:te,skinning:h.isSkinnedMesh===!0,hasPositionAttribute:v.attributes.position!==void 0,morphTargets:v.morphAttributes.position!==void 0,morphNormals:v.morphAttributes.normal!==void 0,morphColors:v.morphAttributes.color!==void 0,morphTargetsCount:T,morphTextureStride:E,numSunLights:o.sun.length,numDirLights:o.directional.length,numPointLights:o.point.length,numSpotLights:o.spot.length,numSpotLightMaps:o.spotLightMap.length,numRectAreaLights:o.rectArea.length,numHemiLights:o.hemi.length,numSunLightShadows:o.sunShadowMap.length,numDirLightShadows:o.directionalShadowMap.length,numPointLightShadows:o.pointShadowMap.length,numSpotLightShadows:o.spotShadowMap.length,numSpotLightShadowsWithMaps:o.numSpotLightShadowsWithMaps,numLightProbes:o.numLightProbes,numLightProbeGrids:g.length,numClippingPlanes:a.numPlanes,numClipIntersection:a.numIntersection,dithering:i.dithering,shadowMapEnabled:e.shadowMap.enabled&&l.length>0,shadowMapType:e.shadowMap.type,toneMapping:Pe,decodeVideoTexture:ne&&i.map.isVideoTexture===!0&&Ss.getTransfer(i.map.colorSpace)===`srgb`,decodeVideoTextureEmissive:le&&i.emissiveMap.isVideoTexture===!0&&Ss.getTransfer(i.emissiveMap.colorSpace)===`srgb`,premultipliedAlpha:i.premultipliedAlpha,doubleSided:i.side===2,flipSided:i.side===1,useDepthPacking:i.depthPacking>=0,depthPacking:i.depthPacking||0,index0AttributeName:i.index0AttributeName,extensionClipCullDistance:Ne&&i.extensions.clipCullDistance===!0&&n.has(`WEBGL_clip_cull_distance`),extensionMultiDraw:(Ne&&i.extensions.multiDraw===!0||M)&&n.has(`WEBGL_multi_draw`),rendererExtensionParallelShaderCompile:n.has(`KHR_parallel_shader_compile`),customProgramCacheKey:i.customProgramCacheKey()};return Fe.vertexUv1s=c.has(1),Fe.vertexUv2s=c.has(2),Fe.vertexUv3s=c.has(3),c.clear(),Fe}function g(t){let n=[];if(t.shaderID?n.push(t.shaderID):(n.push(t.customVertexShaderID),n.push(t.customFragmentShaderID)),t.defines!==void 0)for(let e in t.defines)n.push(e),n.push(t.defines[e]);return t.isRawShaderMaterial===!1&&(_(n,t),v(n,t),n.push(e.outputColorSpace)),n.push(t.customProgramCacheKey),n.join()}function _(e,t){e.push(t.precision),e.push(t.outputColorSpace),e.push(t.envMapMode),e.push(t.envMapCubeUVHeight),e.push(t.mapUv),e.push(t.alphaMapUv),e.push(t.lightMapUv),e.push(t.aoMapUv),e.push(t.bumpMapUv),e.push(t.normalMapUv),e.push(t.displacementMapUv),e.push(t.emissiveMapUv),e.push(t.metalnessMapUv),e.push(t.roughnessMapUv),e.push(t.anisotropyMapUv),e.push(t.clearcoatMapUv),e.push(t.clearcoatNormalMapUv),e.push(t.clearcoatRoughnessMapUv),e.push(t.iridescenceMapUv),e.push(t.iridescenceThicknessMapUv),e.push(t.sheenColorMapUv),e.push(t.sheenRoughnessMapUv),e.push(t.specularMapUv),e.push(t.specularColorMapUv),e.push(t.specularIntensityMapUv),e.push(t.transmissionMapUv),e.push(t.thicknessMapUv),e.push(t.combine),e.push(t.fogExp2),e.push(t.sizeAttenuation),e.push(t.morphTargetsCount),e.push(t.morphAttributeCount),e.push(t.numSunLights),e.push(t.numDirLights),e.push(t.numPointLights),e.push(t.numSpotLights),e.push(t.numSpotLightMaps),e.push(t.numHemiLights),e.push(t.numRectAreaLights),e.push(t.numSunLightShadows),e.push(t.numDirLightShadows),e.push(t.numPointLightShadows),e.push(t.numSpotLightShadows),e.push(t.numSpotLightShadowsWithMaps),e.push(t.numLightProbes),e.push(t.shadowMapType),e.push(t.toneMapping),e.push(t.numClippingPlanes),e.push(t.numClipIntersection),e.push(t.depthPacking)}function v(e,t){o.disableAll(),t.instancing&&o.enable(0),t.instancingColor&&o.enable(1),t.instancingMorph&&o.enable(2),t.matcap&&o.enable(3),t.envMap&&o.enable(4),t.normalMapObjectSpace&&o.enable(5),t.normalMapTangentSpace&&o.enable(6),t.clearcoat&&o.enable(7),t.iridescence&&o.enable(8),t.alphaTest&&o.enable(9),t.vertexColors&&o.enable(10),t.vertexAlphas&&o.enable(11),t.vertexUv1s&&o.enable(12),t.vertexUv2s&&o.enable(13),t.vertexUv3s&&o.enable(14),t.vertexTangents&&o.enable(15),t.anisotropy&&o.enable(16),t.alphaHash&&o.enable(17),t.batching&&o.enable(18),t.dispersion&&o.enable(19),t.retroreflection&&o.enable(24),t.batchingColor&&o.enable(20),t.gradientMap&&o.enable(21),t.packedNormalMap&&o.enable(22),t.vertexNormals&&o.enable(23),e.push(o.mask),o.disableAll(),t.fog&&o.enable(0),t.useFog&&o.enable(1),t.flatShading&&o.enable(2),t.logarithmicDepthBuffer&&o.enable(3),t.reversedDepthBuffer&&o.enable(4),t.skinning&&o.enable(5),t.morphTargets&&o.enable(6),t.morphNormals&&o.enable(7),t.morphColors&&o.enable(8),t.premultipliedAlpha&&o.enable(9),t.shadowMapEnabled&&o.enable(10),t.doubleSided&&o.enable(11),t.flipSided&&o.enable(12),t.useDepthPacking&&o.enable(13),t.dithering&&o.enable(14),t.transmission&&o.enable(15),t.sheen&&o.enable(16),t.opaque&&o.enable(17),t.pointsUvs&&o.enable(18),t.decodeVideoTexture&&o.enable(19),t.decodeVideoTextureEmissive&&o.enable(20),t.alphaToCoverage&&o.enable(21),t.numLightProbeGrids>0&&o.enable(22),t.hasPositionAttribute&&o.enable(23),e.push(o.mask)}function y(e){let t=p[e.type],n;if(t){let e=kp[t];n=Ld.clone(e.uniforms)}else n=e.uniforms;return n}function b(t,n){let r=u.get(n);return r===void 0?(r=new rg(e,n,t,i),l.push(r),u.set(n,r)):++r.usedTimes,r}function x(e){if(--e.usedTimes===0){let t=l.indexOf(e);l[t]=l[l.length-1],l.pop(),u.delete(e.cacheKey),e.destroy()}}function S(e){s.remove(e)}function C(){s.dispose()}return{getParameters:h,getProgramCacheKey:g,getUniforms:y,acquireProgram:b,releaseProgram:x,releaseShaderCache:S,programs:l,dispose:C}}function lg(){let e=new WeakMap;function t(t){return e.has(t)}function n(t){let n=e.get(t);return n===void 0&&(n={},e.set(t,n)),n}function r(t){e.delete(t)}function i(t,n,r){e.get(t)[n]=r}function a(){e=new WeakMap}return{has:t,get:n,remove:r,update:i,dispose:a}}function ug(e,t){return e.groupOrder===t.groupOrder?e.renderOrder===t.renderOrder?e.material.id===t.material.id?e.materialVariant===t.materialVariant?e.z===t.z?e.id-t.id:e.z-t.z:e.materialVariant-t.materialVariant:e.material.id-t.material.id:e.renderOrder-t.renderOrder:e.groupOrder-t.groupOrder}function dg(e,t){return e.groupOrder===t.groupOrder?e.renderOrder===t.renderOrder?e.z===t.z?e.id-t.id:t.z-e.z:e.renderOrder-t.renderOrder:e.groupOrder-t.groupOrder}function fg(){let e=[],t=0,n=[],r=[],i=[];function a(){t=0,n.length=0,r.length=0,i.length=0}function o(e){let t=0;return e.isInstancedMesh&&(t+=2),e.isSkinnedMesh&&(t+=1),t}function s(n,r,i,a,s,c){let l=e[t];return l===void 0?(l={id:n.id,object:n,geometry:r,material:i,materialVariant:o(n),groupOrder:a,renderOrder:n.renderOrder,z:s,group:c},e[t]=l):(l.id=n.id,l.object=n,l.geometry=r,l.material=i,l.materialVariant=o(n),l.groupOrder=a,l.renderOrder=n.renderOrder,l.z=s,l.group=c),t++,l}function c(e,t,a,o,c,l,u){u.reversedDepth===!0&&(c=-c);let d=s(e,t,a,o,c,l);a.transmission>0?r.push(d):a.transparent===!0?i.push(d):n.push(d)}function l(e,t,a,o,c,l){let u=s(e,t,a,o,c,l);a.transmission>0?r.unshift(u):a.transparent===!0?i.unshift(u):n.unshift(u)}function u(e,t){n.length>1&&n.sort(e||ug),r.length>1&&r.sort(t||dg),i.length>1&&i.sort(t||dg)}function d(){for(let n=t,r=e.length;n=r.length?(i=new fg,r.push(i)):i=r[n],i}function n(){e=new WeakMap}return{get:t,dispose:n}}function mg(){let e={};return{get:function(t){if(e[t.id]!==void 0)return e[t.id];let n;switch(t.type){case`SunLight`:case`DirectionalLight`:n={direction:new B,color:new V};break;case`SpotLight`:n={position:new B,direction:new B,color:new V,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case`PointLight`:n={position:new B,color:new V,distance:0,decay:0};break;case`HemisphereLight`:n={direction:new B,skyColor:new V,groundColor:new V};break;case`RectAreaLight`:n={color:new V,position:new B,halfWidth:new B,halfHeight:new B}}return e[t.id]=n,n}}}function hg(){let e={};return{get:function(t){if(e[t.id]!==void 0)return e[t.id];let n;switch(t.type){case`SunLight`:case`DirectionalLight`:n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new z};break;case`SpotLight`:n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new z};break;case`PointLight`:n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new z,shadowCameraNear:1,shadowCameraFar:1e3}}return e[t.id]=n,n}}}var gg=0;function _g(e,t){return(t.castShadow?2:0)-(e.castShadow?2:0)+ +!!t.map-!!e.map}function vg(e){let t=new mg,n=hg(),r={version:0,hash:{sunLength:-1,directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numSunShadows:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],sun:[],sunShadow:[],sunShadowMap:[],sunShadowMatrix:[],sunShadowCascade:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let e=0;e<9;e++)r.probe.push(new B);let i=new B,a=new Rs,o=new Rs;function s(i){let a=0,o=0,s=0;for(let e=0;e<9;e++)r.probe[e].set(0,0,0);let c=0,l=0,u=0,d=0,f=0,p=0,m=0,h=0,g=0,_=0,v=0,y=0,b=0,x=0;i.sort(_g);for(let e=0,S=i.length;e0&&(e.has(`OES_texture_float_linear`)===!0?(r.rectAreaLTC1=U.LTC_FLOAT_1,r.rectAreaLTC2=U.LTC_FLOAT_2):(r.rectAreaLTC1=U.LTC_HALF_1,r.rectAreaLTC2=U.LTC_HALF_2)),r.ambient[0]=a,r.ambient[1]=o,r.ambient[2]=s;let S=r.hash;(S.sunLength!==c||S.directionalLength!==d||S.pointLength!==f||S.spotLength!==p||S.rectAreaLength!==m||S.hemiLength!==h||S.numSunShadows!==l||S.numDirectionalShadows!==g||S.numPointShadows!==_||S.numSpotShadows!==v||S.numSpotMaps!==y||S.numLightProbes!==x)&&(r.sun.length=c,r.directional.length=d,r.spot.length=p,r.rectArea.length=m,r.point.length=f,r.hemi.length=h,r.sunShadow.length=l,r.sunShadowMap.length=l,r.sunShadowMatrix.length=u,r.sunShadowCascade.length=u,r.directionalShadow.length=g,r.directionalShadowMap.length=g,r.directionalShadowMatrix.length=g,r.pointShadow.length=_,r.pointShadowMap.length=_,r.pointShadowMatrix.length=_,r.spotShadow.length=v,r.spotShadowMap.length=v,r.spotLightMatrix.length=v+y-b,r.spotLightMap.length=y,r.numSpotLightShadowsWithMaps=b,r.numLightProbes=x,S.sunLength=c,S.directionalLength=d,S.pointLength=f,S.spotLength=p,S.rectAreaLength=m,S.hemiLength=h,S.numSunShadows=l,S.numDirectionalShadows=g,S.numPointShadows=_,S.numSpotShadows=v,S.numSpotMaps=y,S.numLightProbes=x,r.version=gg++)}function c(e,t){let n=0,s=0,c=0,l=0,u=0,d=0,f=t.matrixWorldInverse;for(let t=0,p=e.length;t=i.length?(a=new yg(e),i.push(a)):a=i[r],a}function r(){t=new WeakMap}return{get:n,dispose:r}}var xg=`void main() { +`+n)}}else o===``?(s===``||c===``)&&(u=!1):Lo(`WebGLProgram: Program Info Log:`,o);u&&(t.diagnostics={runnable:l,programLog:o,vertexShader:{log:s,prefix:g},fragmentShader:{log:c,prefix:_}})}i.deleteShader(x),i.deleteShader(S),w=new Sh(i,h),T=Lh(i,h)}let w;this.getUniforms=function(){return w===void 0&&C(this),w};let T;this.getAttributes=function(){return T===void 0&&C(this),T};let E=n.rendererExtensionParallelShaderCompile===!1;return this.isReady=function(){return E===!1&&(E=i.getProgramParameter(h,wh)),E},this.destroy=function(){r.releaseStatesOfProgram(this),i.deleteProgram(h),this.program=void 0},this.type=n.shaderType,this.name=n.shaderName,this.id=Th++,this.cacheKey=t,this.usedTimes=1,this.program=h,this.vertexShader=x,this.fragmentShader=S,this}var ag=0,og=class{constructor(){this.shaderCache=new Map,this.materialCache=new Map}update(e,t,n){let r=this._getShaderCacheForMaterial(e);return r.has(t)===!1&&(r.add(t),t.usedTimes++),r.has(n)===!1&&(r.add(n),n.usedTimes++),this}remove(e){let t=this.materialCache.get(e);for(let e of t)e.usedTimes--,e.usedTimes===0&&this.shaderCache.delete(e.code);return this.materialCache.delete(e),this}getVertexShaderStage(e){return this._getShaderStage(e.vertexShader)}getFragmentShaderStage(e){return this._getShaderStage(e.fragmentShader)}dispose(){this.shaderCache.clear(),this.materialCache.clear()}_getShaderCacheForMaterial(e){let t=this.materialCache,n=t.get(e);return n===void 0&&(n=new Set,t.set(e,n)),n}_getShaderStage(e){let t=this.shaderCache,n=t.get(e);return n===void 0&&(n=new sg(e),t.set(e,n)),n}},sg=class{constructor(e){this.id=ag++,this.code=e,this.usedTimes=0}};function cg(e){return e===1030||e===37490||e===36285}function lg(e,t,n,r,i,a){let o=new Xs,s=new og,c=new Set,l=[],u=new Map,d=r.logarithmicDepthBuffer,f=r.precision,p={MeshDepthMaterial:`depth`,MeshDistanceMaterial:`distance`,MeshNormalMaterial:`normal`,MeshBasicMaterial:`basic`,MeshLambertMaterial:`lambert`,MeshPhongMaterial:`phong`,MeshToonMaterial:`toon`,MeshStandardMaterial:`physical`,MeshPhysicalMaterial:`physical`,MeshMatcapMaterial:`matcap`,LineBasicMaterial:`basic`,LineDashedMaterial:`dashed`,PointsMaterial:`points`,ShadowMaterial:`shadow`,SpriteMaterial:`sprite`};function m(e){return c.add(e),e===0?`uv`:`uv${e}`}function h(i,o,l,u,h,g){let _=u.fog,v=h.geometry,y=i.isMeshStandardMaterial||i.isMeshLambertMaterial||i.isMeshPhongMaterial?u.environment:null,b=i.isMeshStandardMaterial||i.isMeshLambertMaterial&&!i.envMap||i.isMeshPhongMaterial&&!i.envMap,x=t.get(i.envMap||y,b),S=x&&x.mapping===306?x.image.height:null,C=p[i.type];i.precision!==null&&(f=r.getMaxPrecision(i.precision),f!==i.precision&&Lo(`WebGLProgram.getParameters:`,i.precision,`not supported, using`,f,`instead.`));let w=v.morphAttributes.position||v.morphAttributes.normal||v.morphAttributes.color,T=w===void 0?0:w.length,E=0;v.morphAttributes.position!==void 0&&(E=1),v.morphAttributes.normal!==void 0&&(E=2),v.morphAttributes.color!==void 0&&(E=3);let D,O,k,ee;if(C){let e=Ap[C];D=e.vertexShader,O=e.fragmentShader}else{D=i.vertexShader,O=i.fragmentShader;let e=s.getVertexShaderStage(i),t=s.getFragmentShaderStage(i);s.update(i,e,t),k=e.id,ee=t.id}let A=e.getRenderTarget(),te=e.state.buffers.depth.getReversed(),j=h.isInstancedMesh===!0,M=h.isBatchedMesh===!0,ne=!!i.map,re=!!i.matcap,ie=!!x,N=!!i.aoMap,ae=!!i.lightMap,oe=!!i.bumpMap&&i.wireframe===!1,se=!!i.normalMap,ce=!!i.displacementMap,le=!!i.emissiveMap,ue=!!i.metalnessMap,de=!!i.roughnessMap,fe=i.anisotropy>0,pe=i.clearcoat>0,me=i.dispersion>0,he=i.retroreflectivity>0,ge=i.iridescence>0,_e=i.sheen>0,ve=i.transmission>0,ye=fe&&!!i.anisotropyMap,be=pe&&!!i.clearcoatMap,xe=pe&&!!i.clearcoatNormalMap,Se=pe&&!!i.clearcoatRoughnessMap,Ce=ge&&!!i.iridescenceMap,P=ge&&!!i.iridescenceThicknessMap,we=_e&&!!i.sheenColorMap,Te=_e&&!!i.sheenRoughnessMap,F=!!i.specularMap,I=!!i.specularColorMap,Ee=!!i.specularIntensityMap,De=ve&&!!i.transmissionMap,Oe=ve&&!!i.thicknessMap,ke=!!i.gradientMap,Ae=!!i.alphaMap,je=i.alphaTest>0,Me=!!i.alphaHash,Ne=!!i.extensions,Pe=0;i.toneMapped&&(A===null||A.isXRRenderTarget===!0)&&(Pe=e.toneMapping);let Fe={shaderID:C,shaderType:i.type,shaderName:i.name,vertexShader:D,fragmentShader:O,defines:i.defines,customVertexShaderID:k,customFragmentShaderID:ee,isRawShaderMaterial:i.isRawShaderMaterial===!0,glslVersion:i.glslVersion,precision:f,batching:M,batchingColor:M&&h._colorsTexture!==null,instancing:j,instancingColor:j&&h.instanceColor!==null,instancingMorph:j&&h.morphTexture!==null,outputColorSpace:A===null?e.outputColorSpace:A.isXRRenderTarget===!0?A.texture.colorSpace:Cs.workingColorSpace,alphaToCoverage:!!i.alphaToCoverage,map:ne,matcap:re,envMap:ie,envMapMode:ie&&x.mapping,envMapCubeUVHeight:S,aoMap:N,lightMap:ae,bumpMap:oe,normalMap:se,displacementMap:ce,emissiveMap:le,normalMapObjectSpace:se&&i.normalMapType===1,normalMapTangentSpace:se&&i.normalMapType===0,packedNormalMap:se&&i.normalMapType===0&&cg(i.normalMap.format),metalnessMap:ue,roughnessMap:de,anisotropy:fe,anisotropyMap:ye,clearcoat:pe,clearcoatMap:be,clearcoatNormalMap:xe,clearcoatRoughnessMap:Se,dispersion:me,retroreflection:he,iridescence:ge,iridescenceMap:Ce,iridescenceThicknessMap:P,sheen:_e,sheenColorMap:we,sheenRoughnessMap:Te,specularMap:F,specularColorMap:I,specularIntensityMap:Ee,transmission:ve,transmissionMap:De,thicknessMap:Oe,gradientMap:ke,opaque:i.transparent===!1&&i.blending===1&&i.alphaToCoverage===!1,alphaMap:Ae,alphaTest:je,alphaHash:Me,combine:i.combine,mapUv:ne&&m(i.map.channel),aoMapUv:N&&m(i.aoMap.channel),lightMapUv:ae&&m(i.lightMap.channel),bumpMapUv:oe&&m(i.bumpMap.channel),normalMapUv:se&&m(i.normalMap.channel),displacementMapUv:ce&&m(i.displacementMap.channel),emissiveMapUv:le&&m(i.emissiveMap.channel),metalnessMapUv:ue&&m(i.metalnessMap.channel),roughnessMapUv:de&&m(i.roughnessMap.channel),anisotropyMapUv:ye&&m(i.anisotropyMap.channel),clearcoatMapUv:be&&m(i.clearcoatMap.channel),clearcoatNormalMapUv:xe&&m(i.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:Se&&m(i.clearcoatRoughnessMap.channel),iridescenceMapUv:Ce&&m(i.iridescenceMap.channel),iridescenceThicknessMapUv:P&&m(i.iridescenceThicknessMap.channel),sheenColorMapUv:we&&m(i.sheenColorMap.channel),sheenRoughnessMapUv:Te&&m(i.sheenRoughnessMap.channel),specularMapUv:F&&m(i.specularMap.channel),specularColorMapUv:I&&m(i.specularColorMap.channel),specularIntensityMapUv:Ee&&m(i.specularIntensityMap.channel),transmissionMapUv:De&&m(i.transmissionMap.channel),thicknessMapUv:Oe&&m(i.thicknessMap.channel),alphaMapUv:Ae&&m(i.alphaMap.channel),vertexTangents:!!v.attributes.tangent&&(se||fe),vertexNormals:!!v.attributes.normal,vertexColors:i.vertexColors,vertexAlphas:i.vertexColors===!0&&!!v.attributes.color&&v.attributes.color.itemSize===4,pointsUvs:h.isPoints===!0&&!!v.attributes.uv&&(ne||Ae),fog:!!_,useFog:i.fog===!0,fogExp2:!!_&&_.isFogExp2,flatShading:i.wireframe===!1&&(i.flatShading===!0||v.attributes.normal===void 0&&se===!1&&(i.isMeshLambertMaterial||i.isMeshPhongMaterial||i.isMeshStandardMaterial||i.isMeshPhysicalMaterial)),sizeAttenuation:i.sizeAttenuation===!0,logarithmicDepthBuffer:d,reversedDepthBuffer:te,skinning:h.isSkinnedMesh===!0,hasPositionAttribute:v.attributes.position!==void 0,morphTargets:v.morphAttributes.position!==void 0,morphNormals:v.morphAttributes.normal!==void 0,morphColors:v.morphAttributes.color!==void 0,morphTargetsCount:T,morphTextureStride:E,numSunLights:o.sun.length,numDirLights:o.directional.length,numPointLights:o.point.length,numSpotLights:o.spot.length,numSpotLightMaps:o.spotLightMap.length,numRectAreaLights:o.rectArea.length,numHemiLights:o.hemi.length,numSunLightShadows:o.sunShadowMap.length,numDirLightShadows:o.directionalShadowMap.length,numPointLightShadows:o.pointShadowMap.length,numSpotLightShadows:o.spotShadowMap.length,numSpotLightShadowsWithMaps:o.numSpotLightShadowsWithMaps,numLightProbes:o.numLightProbes,numLightProbeGrids:g.length,numClippingPlanes:a.numPlanes,numClipIntersection:a.numIntersection,dithering:i.dithering,shadowMapEnabled:e.shadowMap.enabled&&l.length>0,shadowMapType:e.shadowMap.type,toneMapping:Pe,decodeVideoTexture:ne&&i.map.isVideoTexture===!0&&Cs.getTransfer(i.map.colorSpace)===`srgb`,decodeVideoTextureEmissive:le&&i.emissiveMap.isVideoTexture===!0&&Cs.getTransfer(i.emissiveMap.colorSpace)===`srgb`,premultipliedAlpha:i.premultipliedAlpha,doubleSided:i.side===2,flipSided:i.side===1,useDepthPacking:i.depthPacking>=0,depthPacking:i.depthPacking||0,index0AttributeName:i.index0AttributeName,extensionClipCullDistance:Ne&&i.extensions.clipCullDistance===!0&&n.has(`WEBGL_clip_cull_distance`),extensionMultiDraw:(Ne&&i.extensions.multiDraw===!0||M)&&n.has(`WEBGL_multi_draw`),rendererExtensionParallelShaderCompile:n.has(`KHR_parallel_shader_compile`),customProgramCacheKey:i.customProgramCacheKey()};return Fe.vertexUv1s=c.has(1),Fe.vertexUv2s=c.has(2),Fe.vertexUv3s=c.has(3),c.clear(),Fe}function g(t){let n=[];if(t.shaderID?n.push(t.shaderID):(n.push(t.customVertexShaderID),n.push(t.customFragmentShaderID)),t.defines!==void 0)for(let e in t.defines)n.push(e),n.push(t.defines[e]);return t.isRawShaderMaterial===!1&&(_(n,t),v(n,t),n.push(e.outputColorSpace)),n.push(t.customProgramCacheKey),n.join()}function _(e,t){e.push(t.precision),e.push(t.outputColorSpace),e.push(t.envMapMode),e.push(t.envMapCubeUVHeight),e.push(t.mapUv),e.push(t.alphaMapUv),e.push(t.lightMapUv),e.push(t.aoMapUv),e.push(t.bumpMapUv),e.push(t.normalMapUv),e.push(t.displacementMapUv),e.push(t.emissiveMapUv),e.push(t.metalnessMapUv),e.push(t.roughnessMapUv),e.push(t.anisotropyMapUv),e.push(t.clearcoatMapUv),e.push(t.clearcoatNormalMapUv),e.push(t.clearcoatRoughnessMapUv),e.push(t.iridescenceMapUv),e.push(t.iridescenceThicknessMapUv),e.push(t.sheenColorMapUv),e.push(t.sheenRoughnessMapUv),e.push(t.specularMapUv),e.push(t.specularColorMapUv),e.push(t.specularIntensityMapUv),e.push(t.transmissionMapUv),e.push(t.thicknessMapUv),e.push(t.combine),e.push(t.fogExp2),e.push(t.sizeAttenuation),e.push(t.morphTargetsCount),e.push(t.morphAttributeCount),e.push(t.numSunLights),e.push(t.numDirLights),e.push(t.numPointLights),e.push(t.numSpotLights),e.push(t.numSpotLightMaps),e.push(t.numHemiLights),e.push(t.numRectAreaLights),e.push(t.numSunLightShadows),e.push(t.numDirLightShadows),e.push(t.numPointLightShadows),e.push(t.numSpotLightShadows),e.push(t.numSpotLightShadowsWithMaps),e.push(t.numLightProbes),e.push(t.shadowMapType),e.push(t.toneMapping),e.push(t.numClippingPlanes),e.push(t.numClipIntersection),e.push(t.depthPacking)}function v(e,t){o.disableAll(),t.instancing&&o.enable(0),t.instancingColor&&o.enable(1),t.instancingMorph&&o.enable(2),t.matcap&&o.enable(3),t.envMap&&o.enable(4),t.normalMapObjectSpace&&o.enable(5),t.normalMapTangentSpace&&o.enable(6),t.clearcoat&&o.enable(7),t.iridescence&&o.enable(8),t.alphaTest&&o.enable(9),t.vertexColors&&o.enable(10),t.vertexAlphas&&o.enable(11),t.vertexUv1s&&o.enable(12),t.vertexUv2s&&o.enable(13),t.vertexUv3s&&o.enable(14),t.vertexTangents&&o.enable(15),t.anisotropy&&o.enable(16),t.alphaHash&&o.enable(17),t.batching&&o.enable(18),t.dispersion&&o.enable(19),t.retroreflection&&o.enable(24),t.batchingColor&&o.enable(20),t.gradientMap&&o.enable(21),t.packedNormalMap&&o.enable(22),t.vertexNormals&&o.enable(23),e.push(o.mask),o.disableAll(),t.fog&&o.enable(0),t.useFog&&o.enable(1),t.flatShading&&o.enable(2),t.logarithmicDepthBuffer&&o.enable(3),t.reversedDepthBuffer&&o.enable(4),t.skinning&&o.enable(5),t.morphTargets&&o.enable(6),t.morphNormals&&o.enable(7),t.morphColors&&o.enable(8),t.premultipliedAlpha&&o.enable(9),t.shadowMapEnabled&&o.enable(10),t.doubleSided&&o.enable(11),t.flipSided&&o.enable(12),t.useDepthPacking&&o.enable(13),t.dithering&&o.enable(14),t.transmission&&o.enable(15),t.sheen&&o.enable(16),t.opaque&&o.enable(17),t.pointsUvs&&o.enable(18),t.decodeVideoTexture&&o.enable(19),t.decodeVideoTextureEmissive&&o.enable(20),t.alphaToCoverage&&o.enable(21),t.numLightProbeGrids>0&&o.enable(22),t.hasPositionAttribute&&o.enable(23),e.push(o.mask)}function y(e){let t=p[e.type],n;if(t){let e=Ap[t];n=Rd.clone(e.uniforms)}else n=e.uniforms;return n}function b(t,n){let r=u.get(n);return r===void 0?(r=new ig(e,n,t,i),l.push(r),u.set(n,r)):++r.usedTimes,r}function x(e){if(--e.usedTimes===0){let t=l.indexOf(e);l[t]=l[l.length-1],l.pop(),u.delete(e.cacheKey),e.destroy()}}function S(e){s.remove(e)}function C(){s.dispose()}return{getParameters:h,getProgramCacheKey:g,getUniforms:y,acquireProgram:b,releaseProgram:x,releaseShaderCache:S,programs:l,dispose:C}}function ug(){let e=new WeakMap;function t(t){return e.has(t)}function n(t){let n=e.get(t);return n===void 0&&(n={},e.set(t,n)),n}function r(t){e.delete(t)}function i(t,n,r){e.get(t)[n]=r}function a(){e=new WeakMap}return{has:t,get:n,remove:r,update:i,dispose:a}}function dg(e,t){return e.groupOrder===t.groupOrder?e.renderOrder===t.renderOrder?e.material.id===t.material.id?e.materialVariant===t.materialVariant?e.z===t.z?e.id-t.id:e.z-t.z:e.materialVariant-t.materialVariant:e.material.id-t.material.id:e.renderOrder-t.renderOrder:e.groupOrder-t.groupOrder}function fg(e,t){return e.groupOrder===t.groupOrder?e.renderOrder===t.renderOrder?e.z===t.z?e.id-t.id:t.z-e.z:e.renderOrder-t.renderOrder:e.groupOrder-t.groupOrder}function pg(){let e=[],t=0,n=[],r=[],i=[];function a(){t=0,n.length=0,r.length=0,i.length=0}function o(e){let t=0;return e.isInstancedMesh&&(t+=2),e.isSkinnedMesh&&(t+=1),t}function s(n,r,i,a,s,c){let l=e[t];return l===void 0?(l={id:n.id,object:n,geometry:r,material:i,materialVariant:o(n),groupOrder:a,renderOrder:n.renderOrder,z:s,group:c},e[t]=l):(l.id=n.id,l.object=n,l.geometry=r,l.material=i,l.materialVariant=o(n),l.groupOrder=a,l.renderOrder=n.renderOrder,l.z=s,l.group=c),t++,l}function c(e,t,a,o,c,l,u){u.reversedDepth===!0&&(c=-c);let d=s(e,t,a,o,c,l);a.transmission>0?r.push(d):a.transparent===!0?i.push(d):n.push(d)}function l(e,t,a,o,c,l){let u=s(e,t,a,o,c,l);a.transmission>0?r.unshift(u):a.transparent===!0?i.unshift(u):n.unshift(u)}function u(e,t){n.length>1&&n.sort(e||dg),r.length>1&&r.sort(t||fg),i.length>1&&i.sort(t||fg)}function d(){for(let n=t,r=e.length;n=r.length?(i=new pg,r.push(i)):i=r[n],i}function n(){e=new WeakMap}return{get:t,dispose:n}}function hg(){let e={};return{get:function(t){if(e[t.id]!==void 0)return e[t.id];let n;switch(t.type){case`SunLight`:case`DirectionalLight`:n={direction:new B,color:new V};break;case`SpotLight`:n={position:new B,direction:new B,color:new V,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case`PointLight`:n={position:new B,color:new V,distance:0,decay:0};break;case`HemisphereLight`:n={direction:new B,skyColor:new V,groundColor:new V};break;case`RectAreaLight`:n={color:new V,position:new B,halfWidth:new B,halfHeight:new B}}return e[t.id]=n,n}}}function gg(){let e={};return{get:function(t){if(e[t.id]!==void 0)return e[t.id];let n;switch(t.type){case`SunLight`:case`DirectionalLight`:n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new z};break;case`SpotLight`:n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new z};break;case`PointLight`:n={shadowIntensity:1,shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new z,shadowCameraNear:1,shadowCameraFar:1e3}}return e[t.id]=n,n}}}var _g=0;function vg(e,t){return(t.castShadow?2:0)-(e.castShadow?2:0)+ +!!t.map-!!e.map}function yg(e){let t=new hg,n=gg(),r={version:0,hash:{sunLength:-1,directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numSunShadows:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1,numLightProbes:-1},ambient:[0,0,0],probe:[],sun:[],sunShadow:[],sunShadowMap:[],sunShadowMatrix:[],sunShadowCascade:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0,numLightProbes:0};for(let e=0;e<9;e++)r.probe.push(new B);let i=new B,a=new zs,o=new zs;function s(i){let a=0,o=0,s=0;for(let e=0;e<9;e++)r.probe[e].set(0,0,0);let c=0,l=0,u=0,d=0,f=0,p=0,m=0,h=0,g=0,_=0,v=0,y=0,b=0,x=0;i.sort(vg);for(let e=0,S=i.length;e0&&(e.has(`OES_texture_float_linear`)===!0?(r.rectAreaLTC1=U.LTC_FLOAT_1,r.rectAreaLTC2=U.LTC_FLOAT_2):(r.rectAreaLTC1=U.LTC_HALF_1,r.rectAreaLTC2=U.LTC_HALF_2)),r.ambient[0]=a,r.ambient[1]=o,r.ambient[2]=s;let S=r.hash;(S.sunLength!==c||S.directionalLength!==d||S.pointLength!==f||S.spotLength!==p||S.rectAreaLength!==m||S.hemiLength!==h||S.numSunShadows!==l||S.numDirectionalShadows!==g||S.numPointShadows!==_||S.numSpotShadows!==v||S.numSpotMaps!==y||S.numLightProbes!==x)&&(r.sun.length=c,r.directional.length=d,r.spot.length=p,r.rectArea.length=m,r.point.length=f,r.hemi.length=h,r.sunShadow.length=l,r.sunShadowMap.length=l,r.sunShadowMatrix.length=u,r.sunShadowCascade.length=u,r.directionalShadow.length=g,r.directionalShadowMap.length=g,r.directionalShadowMatrix.length=g,r.pointShadow.length=_,r.pointShadowMap.length=_,r.pointShadowMatrix.length=_,r.spotShadow.length=v,r.spotShadowMap.length=v,r.spotLightMatrix.length=v+y-b,r.spotLightMap.length=y,r.numSpotLightShadowsWithMaps=b,r.numLightProbes=x,S.sunLength=c,S.directionalLength=d,S.pointLength=f,S.spotLength=p,S.rectAreaLength=m,S.hemiLength=h,S.numSunShadows=l,S.numDirectionalShadows=g,S.numPointShadows=_,S.numSpotShadows=v,S.numSpotMaps=y,S.numLightProbes=x,r.version=_g++)}function c(e,t){let n=0,s=0,c=0,l=0,u=0,d=0,f=t.matrixWorldInverse;for(let t=0,p=e.length;t=i.length?(a=new bg(e),i.push(a)):a=i[r],a}function r(){t=new WeakMap}return{get:n,dispose:r}}var Sg=`void main() { gl_Position = vec4( position, 1.0 ); -}`,Sg=`uniform sampler2D shadow_pass; +}`,Cg=`uniform sampler2D shadow_pass; uniform vec2 resolution; uniform float radius; void main() { @@ -4204,12 +4204,12 @@ void main() { squared_mean = squared_mean / samples; float std_dev = sqrt( max( 0.0, squared_mean - mean * mean ) ); gl_FragColor = vec4( mean, std_dev, 0.0, 1.0 ); -}`,Cg=[new B(1,0,0),new B(-1,0,0),new B(0,1,0),new B(0,-1,0),new B(0,0,1),new B(0,0,-1)],wg=[new B(0,-1,0),new B(0,-1,0),new B(0,0,1),new B(0,0,-1),new B(0,-1,0),new B(0,-1,0)],Tg=new Rs,Eg=new B,Dg=new B;function Og(e,t,n){let r=new _u,i=new z,a=new z,o=new Ns,s=new Wd,c=new Gd,l={},u=n.maxTextureSize,d={0:1,1:0,2:2},f=new Bd({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new z},radius:{value:4}},vertexShader:xg,fragmentShader:Sg}),p=f.clone();p.defines.HORIZONTAL_PASS=1;let m=new hl;m.setAttribute(`position`,new el(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));let h=new H(m,f),g=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=1;let _=this.type;this.render=function(t,n,s){if(g.enabled===!1||g.autoUpdate===!1&&g.needsUpdate===!1||t.length===0)return;this.type===2&&(Io(`WebGLShadowMap: PCFSoftShadowMap has been removed. Using PCFShadowMap instead.`),this.type=1);let c=e.getRenderTarget(),l=e.getActiveCubeFace(),d=e.getActiveMipmapLevel(),f=e.state;f.setBlending(0),f.buffers.depth.getReversed()===!0?f.buffers.color.setClear(0,0,0,0):f.buffers.color.setClear(1,1,1,1),f.buffers.depth.setTest(!0),f.setScissorTest(!1);let p=_!==this.type;p&&n.traverse(function(e){e.material&&(Array.isArray(e.material)?e.material.forEach(e=>e.needsUpdate=!0):e.material.needsUpdate=!0)});for(let c=0,l=t.length;cu||i.y>u)&&(i.x>u&&(a.x=Math.floor(u/m.x),i.x=a.x*m.x,d.mapSize.x=a.x),i.y>u&&(a.y=Math.floor(u/m.y),i.y=a.y*m.y,d.mapSize.y=a.y));let h=e.state.buffers.depth.getReversed();if(d.camera._reversedDepth=h,d.map===null||p===!0){if(d.map!==null&&(d.map.depthTexture!==null&&(d.map.depthTexture.dispose(),d.map.depthTexture=null),d.map.dispose()),this.type===3){if(l.isPointLight){Io(`WebGLShadowMap: VSM shadow maps are not supported for PointLights. Use PCF or BasicShadowMap instead.`);continue}d.map=new Fs(i.x,i.y,{format:Ea,type:pa,minFilter:ra,magFilter:ra,generateMipmaps:!1}),d.map.texture.name=l.name+`.shadowMap`,d.map.depthTexture=new Vu(i.x,i.y,fa),d.map.depthTexture.name=l.name+`.shadowMapDepth`,d.map.depthTexture.format=Sa,d.map.depthTexture.compareFunction=null,d.map.depthTexture.minFilter=ea,d.map.depthTexture.magFilter=ea}else l.isPointLight?(d.map=new am(i.x),d.map.depthTexture=new Hu(i.x,da)):(d.map=new Fs(i.x,i.y),d.map.depthTexture=new Vu(i.x,i.y,da)),d.map.depthTexture.name=l.name+`.shadowMap`,d.map.depthTexture.format=Sa,this.type===1?(d.map.depthTexture.compareFunction=h?518:515,d.map.depthTexture.minFilter=ra,d.map.depthTexture.magFilter=ra):(d.map.depthTexture.compareFunction=null,d.map.depthTexture.minFilter=ea,d.map.depthTexture.magFilter=ea);d.camera.updateProjectionMatrix()}d.map.isWebGLCubeRenderTarget!==!0&&(d.map.width!==i.x||d.map.height!==i.y)&&d.map.setSize(i.x,i.y);let g=d.map.isWebGLCubeRenderTarget?6:d.getViewportCount();l.isPointLight!==!0&&d.updateMatrices(l,s);for(let t=0;t0||n.map&&n.alphaTest>0||n.alphaToCoverage===!0){let e=a.uuid,t=n.uuid,r=l[e];r===void 0&&(r={},l[e]=r);let i=r[t];i===void 0&&(i=a.clone(),r[t]=i,n.addEventListener(`dispose`,x)),a=i}if(a.visible=n.visible,a.wireframe=n.wireframe,i===3?a.side=n.shadowSide===null?n.side:n.shadowSide:a.side=n.shadowSide===null?d[n.side]:n.shadowSide,a.alphaMap=n.alphaMap,a.alphaTest=n.alphaToCoverage===!0?.5:n.alphaTest,a.map=n.map,a.clipShadows=n.clipShadows,a.clippingPlanes=n.clippingPlanes,a.clipIntersection=n.clipIntersection,a.displacementMap=n.displacementMap,a.displacementScale=n.displacementScale,a.displacementBias=n.displacementBias,a.wireframeLinewidth=n.wireframeLinewidth,a.linewidth=n.linewidth,r.isPointLight===!0&&a.isMeshDistanceMaterial===!0){let t=e.properties.get(a);t.light=r}return a}function b(n,i,a,o,s){if(n.visible===!1)return;if(n.layers.test(i.layers)&&(n.isMesh||n.isLine||n.isPoints)&&(n.castShadow||n.receiveShadow&&s===3)&&(!n.frustumCulled||n.intersectsFrustum(r))){n.modelViewMatrix.multiplyMatrices(a.matrixWorldInverse,n.matrixWorld);let r=t.update(n),c=n.material;if(Array.isArray(c)){let t=r.groups;for(let l=0,u=t.length;l=2):(M=parseFloat(/^WebGL (\d)/.exec(ne)[1]),j=M>=1);let re=null,ie={},N=e.getParameter(e.SCISSOR_BOX),ae=e.getParameter(e.VIEWPORT),oe=new Ns().fromArray(N),se=new Ns().fromArray(ae);function ce(t,n,r,i){let a=new Uint8Array(4),o=e.createTexture();e.bindTexture(t,o),e.texParameteri(t,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(t,e.TEXTURE_MAG_FILTER,e.NEAREST);for(let o=0;o`u`?!1:/OculusBrowser/g.test(navigator.userAgent),l=new z,u=new WeakMap,d=new Set,f,p=new WeakMap,m=!1;try{m=typeof OffscreenCanvas<`u`&&new OffscreenCanvas(1,1).getContext(`2d`)!==null}catch{}function h(e,t){return m?new OffscreenCanvas(e,t):jo(`canvas`)}function g(e,t,n){let r=1,i=F(e);if((i.width>n||i.height>n)&&(r=n/Math.max(i.width,i.height)),r<1){if(typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement||typeof ImageBitmap<`u`&&e instanceof ImageBitmap||typeof VideoFrame<`u`&&e instanceof VideoFrame){let n=Math.floor(r*i.width),a=Math.floor(r*i.height);f===void 0&&(f=h(n,a));let o=t?h(n,a):f;return o.width=n,o.height=a,o.getContext(`2d`).drawImage(e,0,0,n,a),Io(`WebGLRenderer: Texture has been resized from (`+i.width+`x`+i.height+`) to (`+n+`x`+a+`).`),o}return`data`in e&&Io(`WebGLRenderer: Image in DataTexture is too big (`+i.width+`x`+i.height+`).`),e}return e}function _(e){return e.generateMipmaps}function v(t){e.generateMipmap(t)}function y(t){return t.isWebGLCubeRenderTarget?e.TEXTURE_CUBE_MAP:t.isWebGL3DRenderTarget?e.TEXTURE_3D:t.isWebGLArrayRenderTarget||t.isCompressedArrayTexture?e.TEXTURE_2D_ARRAY:e.TEXTURE_2D}function b(n,r,i,a,o,s=!1){if(n!==null){if(e[n]!==void 0)return e[n];Io(`WebGLRenderer: Attempt to use non-existing WebGL internal format '`+n+`'`)}let c;a&&(c=t.get(`EXT_texture_norm16`),c||Io(`WebGLRenderer: Unable to use normalized textures without EXT_texture_norm16 extension`));let l=r;if(r===e.RED&&(i===e.FLOAT&&(l=e.R32F),i===e.HALF_FLOAT&&(l=e.R16F),i===e.UNSIGNED_BYTE&&(l=e.R8),i===e.UNSIGNED_SHORT&&c&&(l=c.R16_EXT),i===e.SHORT&&c&&(l=c.R16_SNORM_EXT)),r===e.RED_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.R8UI),i===e.UNSIGNED_SHORT&&(l=e.R16UI),i===e.UNSIGNED_INT&&(l=e.R32UI),i===e.BYTE&&(l=e.R8I),i===e.SHORT&&(l=e.R16I),i===e.INT&&(l=e.R32I)),r===e.RG&&(i===e.FLOAT&&(l=e.RG32F),i===e.HALF_FLOAT&&(l=e.RG16F),i===e.UNSIGNED_BYTE&&(l=e.RG8),i===e.UNSIGNED_SHORT&&c&&(l=c.RG16_EXT),i===e.SHORT&&c&&(l=c.RG16_SNORM_EXT)),r===e.RG_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.RG8UI),i===e.UNSIGNED_SHORT&&(l=e.RG16UI),i===e.UNSIGNED_INT&&(l=e.RG32UI),i===e.BYTE&&(l=e.RG8I),i===e.SHORT&&(l=e.RG16I),i===e.INT&&(l=e.RG32I)),r===e.RGB_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.RGB8UI),i===e.UNSIGNED_SHORT&&(l=e.RGB16UI),i===e.UNSIGNED_INT&&(l=e.RGB32UI),i===e.BYTE&&(l=e.RGB8I),i===e.SHORT&&(l=e.RGB16I),i===e.INT&&(l=e.RGB32I)),r===e.RGBA_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.RGBA8UI),i===e.UNSIGNED_SHORT&&(l=e.RGBA16UI),i===e.UNSIGNED_INT&&(l=e.RGBA32UI),i===e.BYTE&&(l=e.RGBA8I),i===e.SHORT&&(l=e.RGBA16I),i===e.INT&&(l=e.RGBA32I)),r===e.RGB&&(i===e.UNSIGNED_SHORT&&c&&(l=c.RGB16_EXT),i===e.SHORT&&c&&(l=c.RGB16_SNORM_EXT),i===e.UNSIGNED_INT_5_9_9_9_REV&&(l=e.RGB9_E5),i===e.UNSIGNED_INT_10F_11F_11F_REV&&(l=e.R11F_G11F_B10F)),r===e.RGBA){let t=s?Co:Ss.getTransfer(o);i===e.FLOAT&&(l=e.RGBA32F),i===e.HALF_FLOAT&&(l=e.RGBA16F),i===e.UNSIGNED_BYTE&&(l=t===`srgb`?e.SRGB8_ALPHA8:e.RGBA8),i===e.UNSIGNED_SHORT&&c&&(l=c.RGBA16_EXT),i===e.SHORT&&c&&(l=c.RGBA16_SNORM_EXT),i===e.UNSIGNED_SHORT_4_4_4_4&&(l=e.RGBA4),i===e.UNSIGNED_SHORT_5_5_5_1&&(l=e.RGB5_A1)}return(l===e.R16F||l===e.R32F||l===e.RG16F||l===e.RG32F||l===e.RGBA16F||l===e.RGBA32F)&&t.get(`EXT_color_buffer_float`),l}function x(t,n){let r;return t?n===null||n===1014||n===1020?r=e.DEPTH24_STENCIL8:n===1015?r=e.DEPTH32F_STENCIL8:n===1012&&(r=e.DEPTH24_STENCIL8,Io(`DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.`)):n===null||n===1014||n===1020?r=e.DEPTH_COMPONENT24:n===1015?r=e.DEPTH_COMPONENT32F:n===1012&&(r=e.DEPTH_COMPONENT16),r}function S(e,t){return _(e)===!0||e.isFramebufferTexture&&e.minFilter!==1003&&e.minFilter!==1006?Math.log2(Math.max(t.width,t.height))+1:e.mipmaps!==void 0&&e.mipmaps.length>0?e.mipmaps.length:e.isCompressedTexture&&Array.isArray(e.image)?t.mipmaps.length:1}function C(e){let t=e.target;t.removeEventListener(`dispose`,C),T(t),t.isVideoTexture&&u.delete(t),t.isHTMLTexture&&d.delete(t)}function w(e){let t=e.target;t.removeEventListener(`dispose`,w),D(t)}function T(e){let t=r.get(e);if(t.__webglInit===void 0)return;let n=e.source,i=p.get(n);if(i){let r=i[t.__cacheKey];r.usedTimes--,r.usedTimes===0&&E(e),Object.keys(i).length===0&&p.delete(n)}r.remove(e)}function E(t){let n=r.get(t);e.deleteTexture(n.__webglTexture);let i=t.source,a=p.get(i);delete a[n.__cacheKey],o.memory.textures--}function D(t){let n=r.get(t);if(t.depthTexture&&(t.depthTexture.dispose(),r.remove(t.depthTexture)),t.isWebGLCubeRenderTarget)for(let t=0;t<6;t++){if(Array.isArray(n.__webglFramebuffer[t]))for(let r=0;r=i.maxTextures&&Io(`WebGLTextures: Trying to use `+(e+1)+` texture units while this GPU supports only `+i.maxTextures),O+=1,e}function j(e){let t=[];return t.push(e.wrapS),t.push(e.wrapT),t.push(e.wrapR||0),t.push(e.magFilter),t.push(e.minFilter),t.push(e.anisotropy),t.push(e.internalFormat),t.push(e.format),t.push(e.type),t.push(e.generateMipmaps),t.push(e.premultiplyAlpha),t.push(e.flipY),t.push(e.unpackAlignment),t.push(e.colorSpace),t.join()}function M(t,i){let a=r.get(t);if(t.isVideoTexture&&we(t),t.isRenderTargetTexture===!1&&t.isExternalTexture!==!0&&t.version>0&&a.__version!==t.version){let e=t.image;if(e===null)Io(`WebGLRenderer: Texture marked for update but no image data found.`);else if(e.complete===!1)Io(`WebGLRenderer: Texture marked for update but image is incomplete`);else{de(a,t,i);return}}else t.isExternalTexture&&(a.__webglTexture=t.sourceTexture?t.sourceTexture:null);n.bindTexture(e.TEXTURE_2D,a.__webglTexture,e.TEXTURE0+i)}function ne(t,i){let a=r.get(t);t.isRenderTargetTexture===!1&&t.version>0&&a.__version!==t.version?de(a,t,i):(t.isExternalTexture&&(a.__webglTexture=t.sourceTexture?t.sourceTexture:null),n.bindTexture(e.TEXTURE_2D_ARRAY,a.__webglTexture,e.TEXTURE0+i))}function re(t,i){let a=r.get(t);t.isRenderTargetTexture===!1&&t.version>0&&a.__version!==t.version?de(a,t,i):n.bindTexture(e.TEXTURE_3D,a.__webglTexture,e.TEXTURE0+i)}function ie(t,i){let a=r.get(t);t.isCubeDepthTexture!==!0&&t.version>0&&a.__version!==t.version?fe(a,t,i):n.bindTexture(e.TEXTURE_CUBE_MAP,a.__webglTexture,e.TEXTURE0+i)}let N={[Zi]:e.REPEAT,[Qi]:e.CLAMP_TO_EDGE,[$i]:e.MIRRORED_REPEAT},ae={[ea]:e.NEAREST,[ta]:e.NEAREST_MIPMAP_NEAREST,[na]:e.NEAREST_MIPMAP_LINEAR,[ra]:e.LINEAR,[ia]:e.LINEAR_MIPMAP_NEAREST,[aa]:e.LINEAR_MIPMAP_LINEAR},oe={512:e.NEVER,519:e.ALWAYS,513:e.LESS,515:e.LEQUAL,514:e.EQUAL,518:e.GEQUAL,516:e.GREATER,517:e.NOTEQUAL};function se(n,a){if(a.type===1015&&t.has(`OES_texture_float_linear`)===!1&&(a.magFilter===1006||a.magFilter===1007||a.magFilter===1005||a.magFilter===1008||a.minFilter===1006||a.minFilter===1007||a.minFilter===1005||a.minFilter===1008)&&Io(`WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device.`),e.texParameteri(n,e.TEXTURE_WRAP_S,N[a.wrapS]),e.texParameteri(n,e.TEXTURE_WRAP_T,N[a.wrapT]),(n===e.TEXTURE_3D||n===e.TEXTURE_2D_ARRAY)&&e.texParameteri(n,e.TEXTURE_WRAP_R,N[a.wrapR]),e.texParameteri(n,e.TEXTURE_MAG_FILTER,ae[a.magFilter]),e.texParameteri(n,e.TEXTURE_MIN_FILTER,ae[a.minFilter]),a.compareFunction&&(e.texParameteri(n,e.TEXTURE_COMPARE_MODE,e.COMPARE_REF_TO_TEXTURE),e.texParameteri(n,e.TEXTURE_COMPARE_FUNC,oe[a.compareFunction])),t.has(`EXT_texture_filter_anisotropic`)===!0){if(a.magFilter===1003||a.minFilter!==1005&&a.minFilter!==1008||a.type===1015&&t.has(`OES_texture_float_linear`)===!1)return;if(a.anisotropy>1||r.get(a).__currentAnisotropy){let o=t.get(`EXT_texture_filter_anisotropic`);e.texParameterf(n,o.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(a.anisotropy,i.getMaxAnisotropy())),r.get(a).__currentAnisotropy=a.anisotropy}}}function ce(t,n){let r=!1;t.__webglInit===void 0&&(t.__webglInit=!0,n.addEventListener(`dispose`,C));let i=n.source,a=p.get(i);a===void 0&&(a={},p.set(i,a));let s=j(n);if(s!==t.__cacheKey){a[s]===void 0&&(a[s]={texture:e.createTexture(),usedTimes:0},o.memory.textures++,r=!0),a[s].usedTimes++;let i=a[t.__cacheKey];i!==void 0&&(a[t.__cacheKey].usedTimes--,i.usedTimes===0&&E(n)),t.__cacheKey=s,t.__webglTexture=a[s].texture}return r}function le(e,t,n){return Math.floor(Math.floor(e/n)/t)}function ue(t,r,i,a){let o=t.updateRanges;if(o.length===0)n.texSubImage2D(e.TEXTURE_2D,0,0,0,r.width,r.height,i,a,r.data);else{o.sort((e,t)=>e.start-t.start);let s=0;for(let e=1;e0){C&&w&&n.texStorage2D(e.TEXTURE_2D,E,m,y[0].width,y[0].height);for(let t=0,i=y.length;t0){let t=wp(h.width,h.height,o.format,o.type);for(let a of o.layerUpdates){let o=h.data.subarray(a*t/h.data.BYTES_PER_ELEMENT,(a+1)*t/h.data.BYTES_PER_ELEMENT);n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,i,0,0,a,h.width,h.height,1,r,o)}}else n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,i,0,0,0,h.width,h.height,t.depth,r,h.data)}}else n.compressedTexImage3D(e.TEXTURE_2D_ARRAY,i,m,h.width,h.height,t.depth,0,h.data,0,0)}else Io(`WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()`)}else C?T&&n.texSubImage3D(e.TEXTURE_2D_ARRAY,i,0,0,0,h.width,h.height,t.depth,r,p,h.data):n.texImage3D(e.TEXTURE_2D_ARRAY,i,m,h.width,h.height,t.depth,0,r,p,h.data);o.layerUpdates.size>0&&o.clearLayerUpdates()}else{C&&w&&n.texStorage2D(e.TEXTURE_2D,E,m,y[0].width,y[0].height);for(let t=0,i=y.length;t0){let i=wp(t.width,t.height,o.format,o.type);for(let a of o.layerUpdates){let o=t.data.subarray(a*i/t.data.BYTES_PER_ELEMENT,(a+1)*i/t.data.BYTES_PER_ELEMENT);n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,a,t.width,t.height,1,r,p,o)}o.clearLayerUpdates()}else n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,0,t.width,t.height,t.depth,r,p,t.data)}}else n.texImage3D(e.TEXTURE_2D_ARRAY,0,m,t.width,t.height,t.depth,0,r,p,t.data)}else if(o.isData3DTexture)C?(w&&n.texStorage3D(e.TEXTURE_3D,E,m,t.width,t.height,t.depth),T&&n.texSubImage3D(e.TEXTURE_3D,0,0,0,0,t.width,t.height,t.depth,r,p,t.data)):n.texImage3D(e.TEXTURE_3D,0,m,t.width,t.height,t.depth,0,r,p,t.data);else if(o.isFramebufferTexture){if(w){if(C)n.texStorage2D(e.TEXTURE_2D,E,m,t.width,t.height);else{let i=t.width,a=t.height;for(let t=0;t>=1,a>>=1}}}else if(o.isHTMLTexture){if(`texElementImage2D`in e){let n=e.canvas;if(n.hasAttribute(`layoutsubtree`)||n.setAttribute(`layoutsubtree`,`true`),t.parentNode!==n){n.appendChild(t),d.add(o),n.onpaint=e=>{let t=e.changedElements;for(let e of d)t.includes(e.image)&&(e.needsUpdate=!0)},n.requestPaint();return}if(e.texElementImage2D.length===3)e.texElementImage2D(e.TEXTURE_2D,e.RGBA8,t);else{let n=e.RGBA,r=e.RGBA,i=e.UNSIGNED_BYTE;e.texElementImage2D(e.TEXTURE_2D,0,n,r,i,t)}e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE)}}else if(y.length>0){if(C&&w){let t=F(y[0]);n.texStorage2D(e.TEXTURE_2D,E,m,t.width,t.height)}for(let t=0,i=y.length;t0&&D++;let t=F(m[0]);n.texStorage2D(e.TEXTURE_CUBE_MAP,D,C,t.width,t.height)}for(let t=0;t<6;t++)if(p){w?E&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,0,0,m[t].width,m[t].height,y,x,m[t].data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,C,m[t].width,m[t].height,0,y,x,m[t].data);for(let r=0;r>u),r=Math.max(1,i.height>>u);l===e.TEXTURE_3D||l===e.TEXTURE_2D_ARRAY?n.texImage3D(l,u,p,t,r,i.depth,0,d,f,null):n.texImage2D(l,u,p,t,r,0,d,f,null)}n.bindFramebuffer(e.FRAMEBUFFER,t),P(i)?s.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,c,l,h.__webglTexture,0,Ce(i)):(l===e.TEXTURE_2D||l>=e.TEXTURE_CUBE_MAP_POSITIVE_X&&l<=e.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&e.framebufferTexture2D(e.FRAMEBUFFER,c,l,h.__webglTexture,u),n.bindFramebuffer(e.FRAMEBUFFER,null)}function me(t,n,r){if(e.bindRenderbuffer(e.RENDERBUFFER,t),n.depthBuffer){let i=n.depthTexture,a=i&&i.isDepthTexture?i.type:null,o=x(n.stencilBuffer,a),c=n.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT;P(n)?s.renderbufferStorageMultisampleEXT(e.RENDERBUFFER,Ce(n),o,n.width,n.height):r?e.renderbufferStorageMultisample(e.RENDERBUFFER,Ce(n),o,n.width,n.height):e.renderbufferStorage(e.RENDERBUFFER,o,n.width,n.height),e.framebufferRenderbuffer(e.FRAMEBUFFER,c,e.RENDERBUFFER,t)}else{let t=n.textures;for(let i=0;i{delete i.__boundDepthTexture,delete i.__depthDisposeCallback,e.removeEventListener(`dispose`,t)};e.addEventListener(`dispose`,t),i.__depthDisposeCallback=t}i.__boundDepthTexture=e}if(t.depthTexture&&!i.__autoAllocateDepthBuffer){if(a)for(let e=0;e<6;e++)he(i.__webglFramebuffer[e],t,e);else{let e=t.texture.mipmaps;e&&e.length>0?he(i.__webglFramebuffer[0],t,0):he(i.__webglFramebuffer,t,0)}}else if(a){i.__webglDepthbuffer=[];for(let r=0;r<6;r++)if(n.bindFramebuffer(e.FRAMEBUFFER,i.__webglFramebuffer[r]),i.__webglDepthbuffer[r]===void 0)i.__webglDepthbuffer[r]=e.createRenderbuffer(),me(i.__webglDepthbuffer[r],t,!1);else{let n=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,a=i.__webglDepthbuffer[r];e.bindRenderbuffer(e.RENDERBUFFER,a),e.framebufferRenderbuffer(e.FRAMEBUFFER,n,e.RENDERBUFFER,a)}}else{let r=t.texture.mipmaps;if(r&&r.length>0?n.bindFramebuffer(e.FRAMEBUFFER,i.__webglFramebuffer[0]):n.bindFramebuffer(e.FRAMEBUFFER,i.__webglFramebuffer),i.__webglDepthbuffer===void 0)i.__webglDepthbuffer=e.createRenderbuffer(),me(i.__webglDepthbuffer,t,!1);else{let n=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,r=i.__webglDepthbuffer;e.bindRenderbuffer(e.RENDERBUFFER,r),e.framebufferRenderbuffer(e.FRAMEBUFFER,n,e.RENDERBUFFER,r)}}n.bindFramebuffer(e.FRAMEBUFFER,null)}function _e(t,n,i){let a=r.get(t);n!==void 0&&pe(a.__webglFramebuffer,t,t.texture,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,0),i!==void 0&&ge(t)}function ve(t){let i=t.texture,s=r.get(t),c=r.get(i);t.addEventListener(`dispose`,w);let l=t.textures,u=t.isWebGLCubeRenderTarget===!0,d=l.length>1;if(d||(c.__webglTexture===void 0&&(c.__webglTexture=e.createTexture()),c.__version=i.version,o.memory.textures++),u){s.__webglFramebuffer=[];for(let t=0;t<6;t++)if(i.mipmaps&&i.mipmaps.length>0){s.__webglFramebuffer[t]=[];for(let n=0;n0){s.__webglFramebuffer=[];for(let t=0;t0&&P(t)===!1){s.__webglMultisampledFramebuffer=e.createFramebuffer(),s.__webglColorRenderbuffer=[],n.bindFramebuffer(e.FRAMEBUFFER,s.__webglMultisampledFramebuffer);for(let n=0;n0)for(let r=0;r0)for(let n=0;n0){if(P(t)===!1){let i=t.textures,a=t.width,o=t.height,s=e.COLOR_BUFFER_BIT,l=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,u=r.get(t),d=i.length>1;if(d)for(let t=0;t0?n.bindFramebuffer(e.DRAW_FRAMEBUFFER,u.__webglFramebuffer[0]):n.bindFramebuffer(e.DRAW_FRAMEBUFFER,u.__webglFramebuffer);for(let n=0;n0&&t.has(`WEBGL_multisampled_render_to_texture`)===!0&&n.__useRenderToTexture!==!1}function we(e){let t=o.render.frame;u.get(e)!==t&&(u.set(e,t),e.update())}function Te(e,t){let n=e.colorSpace,r=e.format,i=e.type;return e.isCompressedTexture===!0||e.isVideoTexture===!0||n!==`srgb-linear`&&n!==``&&(Ss.getTransfer(n)===`srgb`?(r!==1023||i!==1009)&&Io(`WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.`):Lo(`WebGLTextures: Unsupported texture color space:`,n)),t}function F(e){return typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement?(l.width=e.naturalWidth||e.width,l.height=e.naturalHeight||e.height):typeof VideoFrame<`u`&&e instanceof VideoFrame?(l.width=e.displayWidth,l.height=e.displayHeight):(l.width=e.width,l.height=e.height),l}this.allocateTextureUnit=te,this.resetTextureUnits=k,this.getTextureUnits=ee,this.setTextureUnits=A,this.setTexture2D=M,this.setTexture2DArray=ne,this.setTexture3D=re,this.setTextureCube=ie,this.rebindTextures=_e,this.setupRenderTarget=ve,this.updateRenderTargetMipmap=ye,this.updateMultisampleRenderTarget=Se,this.setupDepthRenderbuffer=ge,this.setupFrameBufferTexture=pe,this.useMultisampledRTT=P,this.isReversedDepthBuffer=function(){return n.buffers.depth.getReversed()}}function jg(e,t){function n(n,r=``){let i,a=Ss.getTransfer(r);if(n===1009)return e.UNSIGNED_BYTE;if(n===1017)return e.UNSIGNED_SHORT_4_4_4_4;if(n===1018)return e.UNSIGNED_SHORT_5_5_5_1;if(n===35902)return e.UNSIGNED_INT_5_9_9_9_REV;if(n===35899)return e.UNSIGNED_INT_10F_11F_11F_REV;if(n===1010)return e.BYTE;if(n===1011)return e.SHORT;if(n===1012)return e.UNSIGNED_SHORT;if(n===1013)return e.INT;if(n===1014)return e.UNSIGNED_INT;if(n===1015)return e.FLOAT;if(n===1016)return e.HALF_FLOAT;if(n===1021)return e.ALPHA;if(n===1022)return e.RGB;if(n===1023)return e.RGBA;if(n===1026)return e.DEPTH_COMPONENT;if(n===1027)return e.DEPTH_STENCIL;if(n===1028)return e.RED;if(n===1029)return e.RED_INTEGER;if(n===1030)return e.RG;if(n===1031)return e.RG_INTEGER;if(n===1033)return e.RGBA_INTEGER;if(n===33776||n===33777||n===33778||n===33779){if(a===`srgb`){if(i=t.get(`WEBGL_compressed_texture_s3tc_srgb`),i!==null){if(n===33776)return i.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(n===33777)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(n===33778)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(n===33779)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null}else if(i=t.get(`WEBGL_compressed_texture_s3tc`),i!==null){if(n===33776)return i.COMPRESSED_RGB_S3TC_DXT1_EXT;if(n===33777)return i.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(n===33778)return i.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(n===33779)return i.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null}if(n===35840||n===35841||n===35842||n===35843){if(i=t.get(`WEBGL_compressed_texture_pvrtc`),i!==null){if(n===35840)return i.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(n===35841)return i.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(n===35842)return i.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(n===35843)return i.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null}if(n===36196||n===37492||n===37496||n===37488||n===37489||n===37490||n===37491){if(i=t.get(`WEBGL_compressed_texture_etc`),i!==null){if(n===36196||n===37492)return a===`srgb`?i.COMPRESSED_SRGB8_ETC2:i.COMPRESSED_RGB8_ETC2;if(n===37496)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:i.COMPRESSED_RGBA8_ETC2_EAC;if(n===37488)return i.COMPRESSED_R11_EAC;if(n===37489)return i.COMPRESSED_SIGNED_R11_EAC;if(n===37490)return i.COMPRESSED_RG11_EAC;if(n===37491)return i.COMPRESSED_SIGNED_RG11_EAC}else return null}if(n===37808||n===37809||n===37810||n===37811||n===37812||n===37813||n===37814||n===37815||n===37816||n===37817||n===37818||n===37819||n===37820||n===37821){if(i=t.get(`WEBGL_compressed_texture_astc`),i!==null){if(n===37808)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:i.COMPRESSED_RGBA_ASTC_4x4_KHR;if(n===37809)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:i.COMPRESSED_RGBA_ASTC_5x4_KHR;if(n===37810)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:i.COMPRESSED_RGBA_ASTC_5x5_KHR;if(n===37811)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:i.COMPRESSED_RGBA_ASTC_6x5_KHR;if(n===37812)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:i.COMPRESSED_RGBA_ASTC_6x6_KHR;if(n===37813)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:i.COMPRESSED_RGBA_ASTC_8x5_KHR;if(n===37814)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:i.COMPRESSED_RGBA_ASTC_8x6_KHR;if(n===37815)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:i.COMPRESSED_RGBA_ASTC_8x8_KHR;if(n===37816)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:i.COMPRESSED_RGBA_ASTC_10x5_KHR;if(n===37817)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:i.COMPRESSED_RGBA_ASTC_10x6_KHR;if(n===37818)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:i.COMPRESSED_RGBA_ASTC_10x8_KHR;if(n===37819)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:i.COMPRESSED_RGBA_ASTC_10x10_KHR;if(n===37820)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:i.COMPRESSED_RGBA_ASTC_12x10_KHR;if(n===37821)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:i.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null}if(n===36492||n===36494||n===36495){if(i=t.get(`EXT_texture_compression_bptc`),i!==null){if(n===36492)return a===`srgb`?i.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:i.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(n===36494)return i.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(n===36495)return i.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null}if(n===36283||n===36284||n===36285||n===36286){if(i=t.get(`EXT_texture_compression_rgtc`),i!==null){if(n===36283)return i.COMPRESSED_RED_RGTC1_EXT;if(n===36284)return i.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(n===36285)return i.COMPRESSED_RED_GREEN_RGTC2_EXT;if(n===36286)return i.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null}return n===1020?e.UNSIGNED_INT_24_8:e[n]===void 0?null:e[n]}return{convert:n}}var Mg=` +}`,wg=[new B(1,0,0),new B(-1,0,0),new B(0,1,0),new B(0,-1,0),new B(0,0,1),new B(0,0,-1)],Tg=[new B(0,-1,0),new B(0,-1,0),new B(0,0,1),new B(0,0,-1),new B(0,-1,0),new B(0,-1,0)],Eg=new zs,Dg=new B,Og=new B;function kg(e,t,n){let r=new vu,i=new z,a=new z,o=new Ps,s=new Gd,c=new Kd,l={},u=n.maxTextureSize,d={0:1,1:0,2:2},f=new Vd({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new z},radius:{value:4}},vertexShader:Sg,fragmentShader:Cg}),p=f.clone();p.defines.HORIZONTAL_PASS=1;let m=new gl;m.setAttribute(`position`,new tl(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));let h=new H(m,f),g=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=1;let _=this.type;this.render=function(t,n,s){if(g.enabled===!1||g.autoUpdate===!1&&g.needsUpdate===!1||t.length===0)return;this.type===2&&(Lo(`WebGLShadowMap: PCFSoftShadowMap has been removed. Using PCFShadowMap instead.`),this.type=1);let c=e.getRenderTarget(),l=e.getActiveCubeFace(),d=e.getActiveMipmapLevel(),f=e.state;f.setBlending(0),f.buffers.depth.getReversed()===!0?f.buffers.color.setClear(0,0,0,0):f.buffers.color.setClear(1,1,1,1),f.buffers.depth.setTest(!0),f.setScissorTest(!1);let p=_!==this.type;p&&n.traverse(function(e){e.material&&(Array.isArray(e.material)?e.material.forEach(e=>e.needsUpdate=!0):e.material.needsUpdate=!0)});for(let c=0,l=t.length;cu||i.y>u)&&(i.x>u&&(a.x=Math.floor(u/m.x),i.x=a.x*m.x,d.mapSize.x=a.x),i.y>u&&(a.y=Math.floor(u/m.y),i.y=a.y*m.y,d.mapSize.y=a.y));let h=e.state.buffers.depth.getReversed();if(d.camera._reversedDepth=h,d.map===null||p===!0){if(d.map!==null&&(d.map.depthTexture!==null&&(d.map.depthTexture.dispose(),d.map.depthTexture=null),d.map.dispose()),this.type===3){if(l.isPointLight){Lo(`WebGLShadowMap: VSM shadow maps are not supported for PointLights. Use PCF or BasicShadowMap instead.`);continue}d.map=new Is(i.x,i.y,{format:Da,type:ma,minFilter:ia,magFilter:ia,generateMipmaps:!1}),d.map.texture.name=l.name+`.shadowMap`,d.map.depthTexture=new Hu(i.x,i.y,pa),d.map.depthTexture.name=l.name+`.shadowMapDepth`,d.map.depthTexture.format=Ca,d.map.depthTexture.compareFunction=null,d.map.depthTexture.minFilter=ta,d.map.depthTexture.magFilter=ta}else l.isPointLight?(d.map=new om(i.x),d.map.depthTexture=new Uu(i.x,fa)):(d.map=new Is(i.x,i.y),d.map.depthTexture=new Hu(i.x,i.y,fa)),d.map.depthTexture.name=l.name+`.shadowMap`,d.map.depthTexture.format=Ca,this.type===1?(d.map.depthTexture.compareFunction=h?518:515,d.map.depthTexture.minFilter=ia,d.map.depthTexture.magFilter=ia):(d.map.depthTexture.compareFunction=null,d.map.depthTexture.minFilter=ta,d.map.depthTexture.magFilter=ta);d.camera.updateProjectionMatrix()}d.map.isWebGLCubeRenderTarget!==!0&&(d.map.width!==i.x||d.map.height!==i.y)&&d.map.setSize(i.x,i.y);let g=d.map.isWebGLCubeRenderTarget?6:d.getViewportCount();l.isPointLight!==!0&&d.updateMatrices(l,s);for(let t=0;t0||n.map&&n.alphaTest>0||n.alphaToCoverage===!0){let e=a.uuid,t=n.uuid,r=l[e];r===void 0&&(r={},l[e]=r);let i=r[t];i===void 0&&(i=a.clone(),r[t]=i,n.addEventListener(`dispose`,x)),a=i}if(a.visible=n.visible,a.wireframe=n.wireframe,i===3?a.side=n.shadowSide===null?n.side:n.shadowSide:a.side=n.shadowSide===null?d[n.side]:n.shadowSide,a.alphaMap=n.alphaMap,a.alphaTest=n.alphaToCoverage===!0?.5:n.alphaTest,a.map=n.map,a.clipShadows=n.clipShadows,a.clippingPlanes=n.clippingPlanes,a.clipIntersection=n.clipIntersection,a.displacementMap=n.displacementMap,a.displacementScale=n.displacementScale,a.displacementBias=n.displacementBias,a.wireframeLinewidth=n.wireframeLinewidth,a.linewidth=n.linewidth,r.isPointLight===!0&&a.isMeshDistanceMaterial===!0){let t=e.properties.get(a);t.light=r}return a}function b(n,i,a,o,s){if(n.visible===!1)return;if(n.layers.test(i.layers)&&(n.isMesh||n.isLine||n.isPoints)&&(n.castShadow||n.receiveShadow&&s===3)&&(!n.frustumCulled||n.intersectsFrustum(r))){n.modelViewMatrix.multiplyMatrices(a.matrixWorldInverse,n.matrixWorld);let r=t.update(n),c=n.material;if(Array.isArray(c)){let t=r.groups;for(let l=0,u=t.length;l=2):(M=parseFloat(/^WebGL (\d)/.exec(ne)[1]),j=M>=1);let re=null,ie={},N=e.getParameter(e.SCISSOR_BOX),ae=e.getParameter(e.VIEWPORT),oe=new Ps().fromArray(N),se=new Ps().fromArray(ae);function ce(t,n,r,i){let a=new Uint8Array(4),o=e.createTexture();e.bindTexture(t,o),e.texParameteri(t,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(t,e.TEXTURE_MAG_FILTER,e.NEAREST);for(let o=0;o`u`?!1:/OculusBrowser/g.test(navigator.userAgent),l=new z,u=new WeakMap,d=new Set,f,p=new WeakMap,m=!1;try{m=typeof OffscreenCanvas<`u`&&new OffscreenCanvas(1,1).getContext(`2d`)!==null}catch{}function h(e,t){return m?new OffscreenCanvas(e,t):Mo(`canvas`)}function g(e,t,n){let r=1,i=F(e);if((i.width>n||i.height>n)&&(r=n/Math.max(i.width,i.height)),r<1){if(typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement||typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement||typeof ImageBitmap<`u`&&e instanceof ImageBitmap||typeof VideoFrame<`u`&&e instanceof VideoFrame){let n=Math.floor(r*i.width),a=Math.floor(r*i.height);f===void 0&&(f=h(n,a));let o=t?h(n,a):f;return o.width=n,o.height=a,o.getContext(`2d`).drawImage(e,0,0,n,a),Lo(`WebGLRenderer: Texture has been resized from (`+i.width+`x`+i.height+`) to (`+n+`x`+a+`).`),o}return`data`in e&&Lo(`WebGLRenderer: Image in DataTexture is too big (`+i.width+`x`+i.height+`).`),e}return e}function _(e){return e.generateMipmaps}function v(t){e.generateMipmap(t)}function y(t){return t.isWebGLCubeRenderTarget?e.TEXTURE_CUBE_MAP:t.isWebGL3DRenderTarget?e.TEXTURE_3D:t.isWebGLArrayRenderTarget||t.isCompressedArrayTexture?e.TEXTURE_2D_ARRAY:e.TEXTURE_2D}function b(n,r,i,a,o,s=!1){if(n!==null){if(e[n]!==void 0)return e[n];Lo(`WebGLRenderer: Attempt to use non-existing WebGL internal format '`+n+`'`)}let c;a&&(c=t.get(`EXT_texture_norm16`),c||Lo(`WebGLRenderer: Unable to use normalized textures without EXT_texture_norm16 extension`));let l=r;if(r===e.RED&&(i===e.FLOAT&&(l=e.R32F),i===e.HALF_FLOAT&&(l=e.R16F),i===e.UNSIGNED_BYTE&&(l=e.R8),i===e.UNSIGNED_SHORT&&c&&(l=c.R16_EXT),i===e.SHORT&&c&&(l=c.R16_SNORM_EXT)),r===e.RED_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.R8UI),i===e.UNSIGNED_SHORT&&(l=e.R16UI),i===e.UNSIGNED_INT&&(l=e.R32UI),i===e.BYTE&&(l=e.R8I),i===e.SHORT&&(l=e.R16I),i===e.INT&&(l=e.R32I)),r===e.RG&&(i===e.FLOAT&&(l=e.RG32F),i===e.HALF_FLOAT&&(l=e.RG16F),i===e.UNSIGNED_BYTE&&(l=e.RG8),i===e.UNSIGNED_SHORT&&c&&(l=c.RG16_EXT),i===e.SHORT&&c&&(l=c.RG16_SNORM_EXT)),r===e.RG_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.RG8UI),i===e.UNSIGNED_SHORT&&(l=e.RG16UI),i===e.UNSIGNED_INT&&(l=e.RG32UI),i===e.BYTE&&(l=e.RG8I),i===e.SHORT&&(l=e.RG16I),i===e.INT&&(l=e.RG32I)),r===e.RGB_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.RGB8UI),i===e.UNSIGNED_SHORT&&(l=e.RGB16UI),i===e.UNSIGNED_INT&&(l=e.RGB32UI),i===e.BYTE&&(l=e.RGB8I),i===e.SHORT&&(l=e.RGB16I),i===e.INT&&(l=e.RGB32I)),r===e.RGBA_INTEGER&&(i===e.UNSIGNED_BYTE&&(l=e.RGBA8UI),i===e.UNSIGNED_SHORT&&(l=e.RGBA16UI),i===e.UNSIGNED_INT&&(l=e.RGBA32UI),i===e.BYTE&&(l=e.RGBA8I),i===e.SHORT&&(l=e.RGBA16I),i===e.INT&&(l=e.RGBA32I)),r===e.RGB&&(i===e.UNSIGNED_SHORT&&c&&(l=c.RGB16_EXT),i===e.SHORT&&c&&(l=c.RGB16_SNORM_EXT),i===e.UNSIGNED_INT_5_9_9_9_REV&&(l=e.RGB9_E5),i===e.UNSIGNED_INT_10F_11F_11F_REV&&(l=e.R11F_G11F_B10F)),r===e.RGBA){let t=s?wo:Cs.getTransfer(o);i===e.FLOAT&&(l=e.RGBA32F),i===e.HALF_FLOAT&&(l=e.RGBA16F),i===e.UNSIGNED_BYTE&&(l=t===`srgb`?e.SRGB8_ALPHA8:e.RGBA8),i===e.UNSIGNED_SHORT&&c&&(l=c.RGBA16_EXT),i===e.SHORT&&c&&(l=c.RGBA16_SNORM_EXT),i===e.UNSIGNED_SHORT_4_4_4_4&&(l=e.RGBA4),i===e.UNSIGNED_SHORT_5_5_5_1&&(l=e.RGB5_A1)}return(l===e.R16F||l===e.R32F||l===e.RG16F||l===e.RG32F||l===e.RGBA16F||l===e.RGBA32F)&&t.get(`EXT_color_buffer_float`),l}function x(t,n){let r;return t?n===null||n===1014||n===1020?r=e.DEPTH24_STENCIL8:n===1015?r=e.DEPTH32F_STENCIL8:n===1012&&(r=e.DEPTH24_STENCIL8,Lo(`DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.`)):n===null||n===1014||n===1020?r=e.DEPTH_COMPONENT24:n===1015?r=e.DEPTH_COMPONENT32F:n===1012&&(r=e.DEPTH_COMPONENT16),r}function S(e,t){return _(e)===!0||e.isFramebufferTexture&&e.minFilter!==1003&&e.minFilter!==1006?Math.log2(Math.max(t.width,t.height))+1:e.mipmaps!==void 0&&e.mipmaps.length>0?e.mipmaps.length:e.isCompressedTexture&&Array.isArray(e.image)?t.mipmaps.length:1}function C(e){let t=e.target;t.removeEventListener(`dispose`,C),T(t),t.isVideoTexture&&u.delete(t),t.isHTMLTexture&&d.delete(t)}function w(e){let t=e.target;t.removeEventListener(`dispose`,w),D(t)}function T(e){let t=r.get(e);if(t.__webglInit===void 0)return;let n=e.source,i=p.get(n);if(i){let r=i[t.__cacheKey];r.usedTimes--,r.usedTimes===0&&E(e),Object.keys(i).length===0&&p.delete(n)}r.remove(e)}function E(t){let n=r.get(t);e.deleteTexture(n.__webglTexture);let i=t.source,a=p.get(i);delete a[n.__cacheKey],o.memory.textures--}function D(t){let n=r.get(t);if(t.depthTexture&&(t.depthTexture.dispose(),r.remove(t.depthTexture)),t.isWebGLCubeRenderTarget)for(let t=0;t<6;t++){if(Array.isArray(n.__webglFramebuffer[t]))for(let r=0;r=i.maxTextures&&Lo(`WebGLTextures: Trying to use `+(e+1)+` texture units while this GPU supports only `+i.maxTextures),O+=1,e}function j(e){let t=[];return t.push(e.wrapS),t.push(e.wrapT),t.push(e.wrapR||0),t.push(e.magFilter),t.push(e.minFilter),t.push(e.anisotropy),t.push(e.internalFormat),t.push(e.format),t.push(e.type),t.push(e.generateMipmaps),t.push(e.premultiplyAlpha),t.push(e.flipY),t.push(e.unpackAlignment),t.push(e.colorSpace),t.join()}function M(t,i){let a=r.get(t);if(t.isVideoTexture&&we(t),t.isRenderTargetTexture===!1&&t.isExternalTexture!==!0&&t.version>0&&a.__version!==t.version){let e=t.image;if(e===null)Lo(`WebGLRenderer: Texture marked for update but no image data found.`);else if(e.complete===!1)Lo(`WebGLRenderer: Texture marked for update but image is incomplete`);else{de(a,t,i);return}}else t.isExternalTexture&&(a.__webglTexture=t.sourceTexture?t.sourceTexture:null);n.bindTexture(e.TEXTURE_2D,a.__webglTexture,e.TEXTURE0+i)}function ne(t,i){let a=r.get(t);t.isRenderTargetTexture===!1&&t.version>0&&a.__version!==t.version?de(a,t,i):(t.isExternalTexture&&(a.__webglTexture=t.sourceTexture?t.sourceTexture:null),n.bindTexture(e.TEXTURE_2D_ARRAY,a.__webglTexture,e.TEXTURE0+i))}function re(t,i){let a=r.get(t);t.isRenderTargetTexture===!1&&t.version>0&&a.__version!==t.version?de(a,t,i):n.bindTexture(e.TEXTURE_3D,a.__webglTexture,e.TEXTURE0+i)}function ie(t,i){let a=r.get(t);t.isCubeDepthTexture!==!0&&t.version>0&&a.__version!==t.version?fe(a,t,i):n.bindTexture(e.TEXTURE_CUBE_MAP,a.__webglTexture,e.TEXTURE0+i)}let N={[Qi]:e.REPEAT,[$i]:e.CLAMP_TO_EDGE,[ea]:e.MIRRORED_REPEAT},ae={[ta]:e.NEAREST,[na]:e.NEAREST_MIPMAP_NEAREST,[ra]:e.NEAREST_MIPMAP_LINEAR,[ia]:e.LINEAR,[aa]:e.LINEAR_MIPMAP_NEAREST,[oa]:e.LINEAR_MIPMAP_LINEAR},oe={512:e.NEVER,519:e.ALWAYS,513:e.LESS,515:e.LEQUAL,514:e.EQUAL,518:e.GEQUAL,516:e.GREATER,517:e.NOTEQUAL};function se(n,a){if(a.type===1015&&t.has(`OES_texture_float_linear`)===!1&&(a.magFilter===1006||a.magFilter===1007||a.magFilter===1005||a.magFilter===1008||a.minFilter===1006||a.minFilter===1007||a.minFilter===1005||a.minFilter===1008)&&Lo(`WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device.`),e.texParameteri(n,e.TEXTURE_WRAP_S,N[a.wrapS]),e.texParameteri(n,e.TEXTURE_WRAP_T,N[a.wrapT]),(n===e.TEXTURE_3D||n===e.TEXTURE_2D_ARRAY)&&e.texParameteri(n,e.TEXTURE_WRAP_R,N[a.wrapR]),e.texParameteri(n,e.TEXTURE_MAG_FILTER,ae[a.magFilter]),e.texParameteri(n,e.TEXTURE_MIN_FILTER,ae[a.minFilter]),a.compareFunction&&(e.texParameteri(n,e.TEXTURE_COMPARE_MODE,e.COMPARE_REF_TO_TEXTURE),e.texParameteri(n,e.TEXTURE_COMPARE_FUNC,oe[a.compareFunction])),t.has(`EXT_texture_filter_anisotropic`)===!0){if(a.magFilter===1003||a.minFilter!==1005&&a.minFilter!==1008||a.type===1015&&t.has(`OES_texture_float_linear`)===!1)return;if(a.anisotropy>1||r.get(a).__currentAnisotropy){let o=t.get(`EXT_texture_filter_anisotropic`);e.texParameterf(n,o.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(a.anisotropy,i.getMaxAnisotropy())),r.get(a).__currentAnisotropy=a.anisotropy}}}function ce(t,n){let r=!1;t.__webglInit===void 0&&(t.__webglInit=!0,n.addEventListener(`dispose`,C));let i=n.source,a=p.get(i);a===void 0&&(a={},p.set(i,a));let s=j(n);if(s!==t.__cacheKey){a[s]===void 0&&(a[s]={texture:e.createTexture(),usedTimes:0},o.memory.textures++,r=!0),a[s].usedTimes++;let i=a[t.__cacheKey];i!==void 0&&(a[t.__cacheKey].usedTimes--,i.usedTimes===0&&E(n)),t.__cacheKey=s,t.__webglTexture=a[s].texture}return r}function le(e,t,n){return Math.floor(Math.floor(e/n)/t)}function ue(t,r,i,a){let o=t.updateRanges;if(o.length===0)n.texSubImage2D(e.TEXTURE_2D,0,0,0,r.width,r.height,i,a,r.data);else{o.sort((e,t)=>e.start-t.start);let s=0;for(let e=1;e0){C&&w&&n.texStorage2D(e.TEXTURE_2D,E,m,y[0].width,y[0].height);for(let t=0,i=y.length;t0){let t=Tp(h.width,h.height,o.format,o.type);for(let a of o.layerUpdates){let o=h.data.subarray(a*t/h.data.BYTES_PER_ELEMENT,(a+1)*t/h.data.BYTES_PER_ELEMENT);n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,i,0,0,a,h.width,h.height,1,r,o)}}else n.compressedTexSubImage3D(e.TEXTURE_2D_ARRAY,i,0,0,0,h.width,h.height,t.depth,r,h.data)}}else n.compressedTexImage3D(e.TEXTURE_2D_ARRAY,i,m,h.width,h.height,t.depth,0,h.data,0,0)}else Lo(`WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()`)}else C?T&&n.texSubImage3D(e.TEXTURE_2D_ARRAY,i,0,0,0,h.width,h.height,t.depth,r,p,h.data):n.texImage3D(e.TEXTURE_2D_ARRAY,i,m,h.width,h.height,t.depth,0,r,p,h.data);o.layerUpdates.size>0&&o.clearLayerUpdates()}else{C&&w&&n.texStorage2D(e.TEXTURE_2D,E,m,y[0].width,y[0].height);for(let t=0,i=y.length;t0){let i=Tp(t.width,t.height,o.format,o.type);for(let a of o.layerUpdates){let o=t.data.subarray(a*i/t.data.BYTES_PER_ELEMENT,(a+1)*i/t.data.BYTES_PER_ELEMENT);n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,a,t.width,t.height,1,r,p,o)}o.clearLayerUpdates()}else n.texSubImage3D(e.TEXTURE_2D_ARRAY,0,0,0,0,t.width,t.height,t.depth,r,p,t.data)}}else n.texImage3D(e.TEXTURE_2D_ARRAY,0,m,t.width,t.height,t.depth,0,r,p,t.data)}else if(o.isData3DTexture)C?(w&&n.texStorage3D(e.TEXTURE_3D,E,m,t.width,t.height,t.depth),T&&n.texSubImage3D(e.TEXTURE_3D,0,0,0,0,t.width,t.height,t.depth,r,p,t.data)):n.texImage3D(e.TEXTURE_3D,0,m,t.width,t.height,t.depth,0,r,p,t.data);else if(o.isFramebufferTexture){if(w){if(C)n.texStorage2D(e.TEXTURE_2D,E,m,t.width,t.height);else{let i=t.width,a=t.height;for(let t=0;t>=1,a>>=1}}}else if(o.isHTMLTexture){if(`texElementImage2D`in e){let n=e.canvas;if(n.hasAttribute(`layoutsubtree`)||n.setAttribute(`layoutsubtree`,`true`),t.parentNode!==n){n.appendChild(t),d.add(o),n.onpaint=e=>{let t=e.changedElements;for(let e of d)t.includes(e.image)&&(e.needsUpdate=!0)},n.requestPaint();return}if(e.texElementImage2D.length===3)e.texElementImage2D(e.TEXTURE_2D,e.RGBA8,t);else{let n=e.RGBA,r=e.RGBA,i=e.UNSIGNED_BYTE;e.texElementImage2D(e.TEXTURE_2D,0,n,r,i,t)}e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE)}}else if(y.length>0){if(C&&w){let t=F(y[0]);n.texStorage2D(e.TEXTURE_2D,E,m,t.width,t.height)}for(let t=0,i=y.length;t0&&D++;let t=F(m[0]);n.texStorage2D(e.TEXTURE_CUBE_MAP,D,C,t.width,t.height)}for(let t=0;t<6;t++)if(p){w?E&&n.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,0,0,m[t].width,m[t].height,y,x,m[t].data):n.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+t,0,C,m[t].width,m[t].height,0,y,x,m[t].data);for(let r=0;r>u),r=Math.max(1,i.height>>u);l===e.TEXTURE_3D||l===e.TEXTURE_2D_ARRAY?n.texImage3D(l,u,p,t,r,i.depth,0,d,f,null):n.texImage2D(l,u,p,t,r,0,d,f,null)}n.bindFramebuffer(e.FRAMEBUFFER,t),P(i)?s.framebufferTexture2DMultisampleEXT(e.FRAMEBUFFER,c,l,h.__webglTexture,0,Ce(i)):(l===e.TEXTURE_2D||l>=e.TEXTURE_CUBE_MAP_POSITIVE_X&&l<=e.TEXTURE_CUBE_MAP_NEGATIVE_Z)&&e.framebufferTexture2D(e.FRAMEBUFFER,c,l,h.__webglTexture,u),n.bindFramebuffer(e.FRAMEBUFFER,null)}function me(t,n,r){if(e.bindRenderbuffer(e.RENDERBUFFER,t),n.depthBuffer){let i=n.depthTexture,a=i&&i.isDepthTexture?i.type:null,o=x(n.stencilBuffer,a),c=n.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT;P(n)?s.renderbufferStorageMultisampleEXT(e.RENDERBUFFER,Ce(n),o,n.width,n.height):r?e.renderbufferStorageMultisample(e.RENDERBUFFER,Ce(n),o,n.width,n.height):e.renderbufferStorage(e.RENDERBUFFER,o,n.width,n.height),e.framebufferRenderbuffer(e.FRAMEBUFFER,c,e.RENDERBUFFER,t)}else{let t=n.textures;for(let i=0;i{delete i.__boundDepthTexture,delete i.__depthDisposeCallback,e.removeEventListener(`dispose`,t)};e.addEventListener(`dispose`,t),i.__depthDisposeCallback=t}i.__boundDepthTexture=e}if(t.depthTexture&&!i.__autoAllocateDepthBuffer){if(a)for(let e=0;e<6;e++)he(i.__webglFramebuffer[e],t,e);else{let e=t.texture.mipmaps;e&&e.length>0?he(i.__webglFramebuffer[0],t,0):he(i.__webglFramebuffer,t,0)}}else if(a){i.__webglDepthbuffer=[];for(let r=0;r<6;r++)if(n.bindFramebuffer(e.FRAMEBUFFER,i.__webglFramebuffer[r]),i.__webglDepthbuffer[r]===void 0)i.__webglDepthbuffer[r]=e.createRenderbuffer(),me(i.__webglDepthbuffer[r],t,!1);else{let n=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,a=i.__webglDepthbuffer[r];e.bindRenderbuffer(e.RENDERBUFFER,a),e.framebufferRenderbuffer(e.FRAMEBUFFER,n,e.RENDERBUFFER,a)}}else{let r=t.texture.mipmaps;if(r&&r.length>0?n.bindFramebuffer(e.FRAMEBUFFER,i.__webglFramebuffer[0]):n.bindFramebuffer(e.FRAMEBUFFER,i.__webglFramebuffer),i.__webglDepthbuffer===void 0)i.__webglDepthbuffer=e.createRenderbuffer(),me(i.__webglDepthbuffer,t,!1);else{let n=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,r=i.__webglDepthbuffer;e.bindRenderbuffer(e.RENDERBUFFER,r),e.framebufferRenderbuffer(e.FRAMEBUFFER,n,e.RENDERBUFFER,r)}}n.bindFramebuffer(e.FRAMEBUFFER,null)}function _e(t,n,i){let a=r.get(t);n!==void 0&&pe(a.__webglFramebuffer,t,t.texture,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,0),i!==void 0&&ge(t)}function ve(t){let i=t.texture,s=r.get(t),c=r.get(i);t.addEventListener(`dispose`,w);let l=t.textures,u=t.isWebGLCubeRenderTarget===!0,d=l.length>1;if(d||(c.__webglTexture===void 0&&(c.__webglTexture=e.createTexture()),c.__version=i.version,o.memory.textures++),u){s.__webglFramebuffer=[];for(let t=0;t<6;t++)if(i.mipmaps&&i.mipmaps.length>0){s.__webglFramebuffer[t]=[];for(let n=0;n0){s.__webglFramebuffer=[];for(let t=0;t0&&P(t)===!1){s.__webglMultisampledFramebuffer=e.createFramebuffer(),s.__webglColorRenderbuffer=[],n.bindFramebuffer(e.FRAMEBUFFER,s.__webglMultisampledFramebuffer);for(let n=0;n0)for(let r=0;r0)for(let n=0;n0){if(P(t)===!1){let i=t.textures,a=t.width,o=t.height,s=e.COLOR_BUFFER_BIT,l=t.stencilBuffer?e.DEPTH_STENCIL_ATTACHMENT:e.DEPTH_ATTACHMENT,u=r.get(t),d=i.length>1;if(d)for(let t=0;t0?n.bindFramebuffer(e.DRAW_FRAMEBUFFER,u.__webglFramebuffer[0]):n.bindFramebuffer(e.DRAW_FRAMEBUFFER,u.__webglFramebuffer);for(let n=0;n0&&t.has(`WEBGL_multisampled_render_to_texture`)===!0&&n.__useRenderToTexture!==!1}function we(e){let t=o.render.frame;u.get(e)!==t&&(u.set(e,t),e.update())}function Te(e,t){let n=e.colorSpace,r=e.format,i=e.type;return e.isCompressedTexture===!0||e.isVideoTexture===!0||n!==`srgb-linear`&&n!==``&&(Cs.getTransfer(n)===`srgb`?(r!==1023||i!==1009)&&Lo(`WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.`):Ro(`WebGLTextures: Unsupported texture color space:`,n)),t}function F(e){return typeof HTMLImageElement<`u`&&e instanceof HTMLImageElement?(l.width=e.naturalWidth||e.width,l.height=e.naturalHeight||e.height):typeof VideoFrame<`u`&&e instanceof VideoFrame?(l.width=e.displayWidth,l.height=e.displayHeight):(l.width=e.width,l.height=e.height),l}this.allocateTextureUnit=te,this.resetTextureUnits=k,this.getTextureUnits=ee,this.setTextureUnits=A,this.setTexture2D=M,this.setTexture2DArray=ne,this.setTexture3D=re,this.setTextureCube=ie,this.rebindTextures=_e,this.setupRenderTarget=ve,this.updateRenderTargetMipmap=ye,this.updateMultisampleRenderTarget=Se,this.setupDepthRenderbuffer=ge,this.setupFrameBufferTexture=pe,this.useMultisampledRTT=P,this.isReversedDepthBuffer=function(){return n.buffers.depth.getReversed()}}function Mg(e,t){function n(n,r=``){let i,a=Cs.getTransfer(r);if(n===1009)return e.UNSIGNED_BYTE;if(n===1017)return e.UNSIGNED_SHORT_4_4_4_4;if(n===1018)return e.UNSIGNED_SHORT_5_5_5_1;if(n===35902)return e.UNSIGNED_INT_5_9_9_9_REV;if(n===35899)return e.UNSIGNED_INT_10F_11F_11F_REV;if(n===1010)return e.BYTE;if(n===1011)return e.SHORT;if(n===1012)return e.UNSIGNED_SHORT;if(n===1013)return e.INT;if(n===1014)return e.UNSIGNED_INT;if(n===1015)return e.FLOAT;if(n===1016)return e.HALF_FLOAT;if(n===1021)return e.ALPHA;if(n===1022)return e.RGB;if(n===1023)return e.RGBA;if(n===1026)return e.DEPTH_COMPONENT;if(n===1027)return e.DEPTH_STENCIL;if(n===1028)return e.RED;if(n===1029)return e.RED_INTEGER;if(n===1030)return e.RG;if(n===1031)return e.RG_INTEGER;if(n===1033)return e.RGBA_INTEGER;if(n===33776||n===33777||n===33778||n===33779){if(a===`srgb`){if(i=t.get(`WEBGL_compressed_texture_s3tc_srgb`),i!==null){if(n===33776)return i.COMPRESSED_SRGB_S3TC_DXT1_EXT;if(n===33777)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT;if(n===33778)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT;if(n===33779)return i.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT}else return null}else if(i=t.get(`WEBGL_compressed_texture_s3tc`),i!==null){if(n===33776)return i.COMPRESSED_RGB_S3TC_DXT1_EXT;if(n===33777)return i.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(n===33778)return i.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(n===33779)return i.COMPRESSED_RGBA_S3TC_DXT5_EXT}else return null}if(n===35840||n===35841||n===35842||n===35843){if(i=t.get(`WEBGL_compressed_texture_pvrtc`),i!==null){if(n===35840)return i.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(n===35841)return i.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(n===35842)return i.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(n===35843)return i.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}else return null}if(n===36196||n===37492||n===37496||n===37488||n===37489||n===37490||n===37491){if(i=t.get(`WEBGL_compressed_texture_etc`),i!==null){if(n===36196||n===37492)return a===`srgb`?i.COMPRESSED_SRGB8_ETC2:i.COMPRESSED_RGB8_ETC2;if(n===37496)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:i.COMPRESSED_RGBA8_ETC2_EAC;if(n===37488)return i.COMPRESSED_R11_EAC;if(n===37489)return i.COMPRESSED_SIGNED_R11_EAC;if(n===37490)return i.COMPRESSED_RG11_EAC;if(n===37491)return i.COMPRESSED_SIGNED_RG11_EAC}else return null}if(n===37808||n===37809||n===37810||n===37811||n===37812||n===37813||n===37814||n===37815||n===37816||n===37817||n===37818||n===37819||n===37820||n===37821){if(i=t.get(`WEBGL_compressed_texture_astc`),i!==null){if(n===37808)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:i.COMPRESSED_RGBA_ASTC_4x4_KHR;if(n===37809)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:i.COMPRESSED_RGBA_ASTC_5x4_KHR;if(n===37810)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:i.COMPRESSED_RGBA_ASTC_5x5_KHR;if(n===37811)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:i.COMPRESSED_RGBA_ASTC_6x5_KHR;if(n===37812)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:i.COMPRESSED_RGBA_ASTC_6x6_KHR;if(n===37813)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:i.COMPRESSED_RGBA_ASTC_8x5_KHR;if(n===37814)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:i.COMPRESSED_RGBA_ASTC_8x6_KHR;if(n===37815)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:i.COMPRESSED_RGBA_ASTC_8x8_KHR;if(n===37816)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:i.COMPRESSED_RGBA_ASTC_10x5_KHR;if(n===37817)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:i.COMPRESSED_RGBA_ASTC_10x6_KHR;if(n===37818)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:i.COMPRESSED_RGBA_ASTC_10x8_KHR;if(n===37819)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:i.COMPRESSED_RGBA_ASTC_10x10_KHR;if(n===37820)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:i.COMPRESSED_RGBA_ASTC_12x10_KHR;if(n===37821)return a===`srgb`?i.COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:i.COMPRESSED_RGBA_ASTC_12x12_KHR}else return null}if(n===36492||n===36494||n===36495){if(i=t.get(`EXT_texture_compression_bptc`),i!==null){if(n===36492)return a===`srgb`?i.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:i.COMPRESSED_RGBA_BPTC_UNORM_EXT;if(n===36494)return i.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT;if(n===36495)return i.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT}else return null}if(n===36283||n===36284||n===36285||n===36286){if(i=t.get(`EXT_texture_compression_rgtc`),i!==null){if(n===36283)return i.COMPRESSED_RED_RGTC1_EXT;if(n===36284)return i.COMPRESSED_SIGNED_RED_RGTC1_EXT;if(n===36285)return i.COMPRESSED_RED_GREEN_RGTC2_EXT;if(n===36286)return i.COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT}else return null}return n===1020?e.UNSIGNED_INT_24_8:e[n]===void 0?null:e[n]}return{convert:n}}var Ng=` void main() { gl_Position = vec4( position, 1.0 ); -}`,Ng=` +}`,Pg=` uniform sampler2DArray depthColor; uniform float depthWidth; uniform float depthHeight; @@ -4228,46 +4228,46 @@ void main() { } -}`,Pg=class{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(e,t){if(this.texture===null){let n=new Uu(e.texture);(e.depthNear!==t.depthNear||e.depthFar!==t.depthFar)&&(this.depthNear=e.depthNear,this.depthFar=e.depthFar),this.texture=n}}getMesh(e){if(this.texture!==null&&this.mesh===null){let t=e.cameras[0].viewport,n=new Bd({vertexShader:Mg,fragmentShader:Ng,uniforms:{depthColor:{value:this.texture},depthWidth:{value:t.z},depthHeight:{value:t.w}}});this.mesh=new H(new Ed(20,20),n)}return this.mesh}reset(){this.texture=null,this.mesh=null}getDepthTexture(){return this.texture}},Fg=class extends Vo{constructor(e,t){super();let n=this,r=null,i=1,a=null,o=`local-floor`,s=1,c=null,l=null,u=null,d=null,f=null,p=null,m=typeof XRWebGLBinding<`u`,h=new Pg,g={},_=t.getContextAttributes(),v=null,y=null,b=[],x=[],S=new z,C=null,w=null,T=new Vf;T.viewport=new Ns;let E=new Vf;E.viewport=new Ns;let D=[T,E],O=new tp,k=null,ee=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(e){let t=b[e];return t===void 0&&(t=new mc,b[e]=t),t.getTargetRaySpace()},this.getControllerGrip=function(e){let t=b[e];return t===void 0&&(t=new mc,b[e]=t),t.getGripSpace()},this.getHand=function(e){let t=b[e];return t===void 0&&(t=new mc,b[e]=t),t.getHandSpace()};function A(e){let t=x.indexOf(e.inputSource);if(t===-1)return;let n=b[t];n!==void 0&&(n.update(e.inputSource,e.frame,c||a),n.dispatchEvent({type:e.type,data:e.inputSource}))}function te(){r.removeEventListener(`select`,A),r.removeEventListener(`selectstart`,A),r.removeEventListener(`selectend`,A),r.removeEventListener(`squeeze`,A),r.removeEventListener(`squeezestart`,A),r.removeEventListener(`squeezeend`,A),r.removeEventListener(`end`,te),r.removeEventListener(`inputsourceschange`,j);for(let e=0;e=0&&(x[r]=null,b[r].disconnect(n))}for(let t=0;t=x.length){x.push(n),r=e;break}else if(x[e]===null){x[e]=n,r=e;break}if(r===-1)break}let i=b[r];i&&i.connect(n)}}let M=new B,ne=new B;function re(e,t,n){M.setFromMatrixPosition(t.matrixWorld),ne.setFromMatrixPosition(n.matrixWorld);let r=M.distanceTo(ne),i=t.projectionMatrix.elements,a=n.projectionMatrix.elements,o=i[14]/(i[10]-1),s=i[14]/(i[10]+1),c=(i[9]+1)/i[5],l=(i[9]-1)/i[5],u=(i[8]-1)/i[0],d=(a[8]+1)/a[0],f=o*u,p=o*d,m=r/(-u+d),h=m*-u;if(t.matrixWorld.decompose(e.position,e.quaternion,e.scale),e.translateX(h),e.translateZ(m),e.matrixWorld.compose(e.position,e.quaternion,e.scale),e.matrixWorldInverse.copy(e.matrixWorld).invert(),i[10]===-1)e.projectionMatrix.copy(t.projectionMatrix),e.projectionMatrixInverse.copy(t.projectionMatrixInverse);else{let t=o+m,n=s+m,i=f-h,a=p+(r-h),u=c*s/n*t,d=l*s/n*t;e.projectionMatrix.makePerspective(i,a,u,d,t,n),e.projectionMatrixInverse.copy(e.projectionMatrix).invert()}}function ie(e,t){t===null?e.matrixWorld.copy(e.matrix):e.matrixWorld.multiplyMatrices(t.matrixWorld,e.matrix),e.matrixWorldInverse.copy(e.matrixWorld).invert()}this.updateCamera=function(e){if(r===null)return;let t=e.near,n=e.far;h.texture!==null&&(h.depthNear>0&&(t=h.depthNear),h.depthFar>0&&(n=h.depthFar)),O.near=E.near=T.near=t,O.far=E.far=T.far=n,(k!==O.near||ee!==O.far)&&(r.updateRenderState({depthNear:O.near,depthFar:O.far}),k=O.near,ee=O.far),O.layers.mask=e.layers.mask|6,T.layers.mask=O.layers.mask&-5,E.layers.mask=O.layers.mask&-3;let i=e.parent,a=O.cameras;ie(O,i);for(let e=0;e0&&(e.alphaTest.value=r.alphaTest);let i=t.get(r),a=i.envMap,o=i.envMapRotation;a&&(e.envMap.value=a,e.envMapRotation.value.setFromMatrix4(Ig.makeRotationFromEuler(o)).transpose(),a.isCubeTexture&&a.isRenderTargetTexture===!1&&e.envMapRotation.value.premultiply(Lg),e.reflectivity.value=r.reflectivity,e.ior.value=r.ior,e.refractionRatio.value=r.refractionRatio),r.lightMap&&(e.lightMap.value=r.lightMap,e.lightMapIntensity.value=r.lightMapIntensity,n(r.lightMap,e.lightMapTransform)),r.aoMap&&(e.aoMap.value=r.aoMap,e.aoMapIntensity.value=r.aoMapIntensity,n(r.aoMap,e.aoMapTransform))}function o(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform))}function s(e,t){e.dashSize.value=t.dashSize,e.totalSize.value=t.dashSize+t.gapSize,e.scale.value=t.scale}function c(e,t,r,i){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.size.value=t.size*r,e.scale.value=i*.5,t.map&&(e.map.value=t.map,n(t.map,e.uvTransform)),t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform)),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}function l(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.rotation.value=t.rotation,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform)),t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform)),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}function u(e,t){e.specular.value.copy(t.specular),e.shininess.value=Math.max(t.shininess,1e-4)}function d(e,t){t.gradientMap&&(e.gradientMap.value=t.gradientMap)}function f(e,t){e.metalness.value=t.metalness,t.metalnessMap&&(e.metalnessMap.value=t.metalnessMap,n(t.metalnessMap,e.metalnessMapTransform)),e.roughness.value=t.roughness,t.roughnessMap&&(e.roughnessMap.value=t.roughnessMap,n(t.roughnessMap,e.roughnessMapTransform)),t.envMap&&(e.envMapIntensity.value=t.envMapIntensity)}function p(e,t,r){e.ior.value=t.ior,t.sheen>0&&(e.sheenColor.value.copy(t.sheenColor).multiplyScalar(t.sheen),e.sheenRoughness.value=t.sheenRoughness,t.sheenColorMap&&(e.sheenColorMap.value=t.sheenColorMap,n(t.sheenColorMap,e.sheenColorMapTransform)),t.sheenRoughnessMap&&(e.sheenRoughnessMap.value=t.sheenRoughnessMap,n(t.sheenRoughnessMap,e.sheenRoughnessMapTransform))),t.clearcoat>0&&(e.clearcoat.value=t.clearcoat,e.clearcoatRoughness.value=t.clearcoatRoughness,t.clearcoatMap&&(e.clearcoatMap.value=t.clearcoatMap,n(t.clearcoatMap,e.clearcoatMapTransform)),t.clearcoatRoughnessMap&&(e.clearcoatRoughnessMap.value=t.clearcoatRoughnessMap,n(t.clearcoatRoughnessMap,e.clearcoatRoughnessMapTransform)),t.clearcoatNormalMap&&(e.clearcoatNormalMap.value=t.clearcoatNormalMap,n(t.clearcoatNormalMap,e.clearcoatNormalMapTransform),e.clearcoatNormalScale.value.copy(t.clearcoatNormalScale),t.side===1&&e.clearcoatNormalScale.value.negate())),t.dispersion>0&&(e.dispersion.value=t.dispersion),t.retroreflectivity>0&&(e.retroreflectivity.value=t.retroreflectivity),t.iridescence>0&&(e.iridescence.value=t.iridescence,e.iridescenceIOR.value=t.iridescenceIOR,e.iridescenceThicknessMinimum.value=t.iridescenceThicknessRange[0],e.iridescenceThicknessMaximum.value=t.iridescenceThicknessRange[1],t.iridescenceMap&&(e.iridescenceMap.value=t.iridescenceMap,n(t.iridescenceMap,e.iridescenceMapTransform)),t.iridescenceThicknessMap&&(e.iridescenceThicknessMap.value=t.iridescenceThicknessMap,n(t.iridescenceThicknessMap,e.iridescenceThicknessMapTransform))),t.transmission>0&&(e.transmission.value=t.transmission,e.transmissionSamplerMap.value=r.texture,e.transmissionSamplerSize.value.set(r.width,r.height),t.transmissionMap&&(e.transmissionMap.value=t.transmissionMap,n(t.transmissionMap,e.transmissionMapTransform)),e.thickness.value=t.thickness,t.thicknessMap&&(e.thicknessMap.value=t.thicknessMap,n(t.thicknessMap,e.thicknessMapTransform)),e.attenuationDistance.value=t.attenuationDistance,e.attenuationColor.value.copy(t.attenuationColor)),t.anisotropy>0&&(e.anisotropyVector.value.set(t.anisotropy*Math.cos(t.anisotropyRotation),t.anisotropy*Math.sin(t.anisotropyRotation)),t.anisotropyMap&&(e.anisotropyMap.value=t.anisotropyMap,n(t.anisotropyMap,e.anisotropyMapTransform))),e.specularIntensity.value=t.specularIntensity,e.specularColor.value.copy(t.specularColor),t.specularColorMap&&(e.specularColorMap.value=t.specularColorMap,n(t.specularColorMap,e.specularColorMapTransform)),t.specularIntensityMap&&(e.specularIntensityMap.value=t.specularIntensityMap,n(t.specularIntensityMap,e.specularIntensityMapTransform))}function m(e,t){t.matcap&&(e.matcap.value=t.matcap)}function h(e,n){let r=t.get(n).light;e.referencePosition.value.setFromMatrixPosition(r.matrixWorld),e.nearDistance.value=r.shadow.camera.near,e.farDistance.value=r.shadow.camera.far}return{refreshFogUniforms:r,refreshMaterialUniforms:i}}function zg(e,t,n,r){let i={},a={},o=[],s=e.getParameter(e.MAX_UNIFORM_BUFFER_BINDINGS);function c(e,t){let n=t.program;r.uniformBlockBinding(e,n)}function l(e,n){let o=i[e.id];o===void 0&&(g(e),o=u(e),i[e.id]=o,e.addEventListener(`dispose`,v));let s=n.program;r.updateUBOMapping(e,s);let c=t.render.frame;a[e.id]!==c&&(f(e),a[e.id]=c)}function u(t){let n=d();t.__bindingPointIndex=n;let r=e.createBuffer(),i=t.__size,a=t.usage;return e.bindBuffer(e.UNIFORM_BUFFER,r),e.bufferData(e.UNIFORM_BUFFER,i,a),e.bindBuffer(e.UNIFORM_BUFFER,null),e.bindBufferBase(e.UNIFORM_BUFFER,n,r),r}function d(){for(let e=0;e0&&(n+=16-r),e.__size=n,e.__cache={},this}function _(e){let t={boundary:0,storage:0};return typeof e==`number`||typeof e==`boolean`?(t.boundary=4,t.storage=4):e.isVector2?(t.boundary=8,t.storage=8):e.isVector3||e.isColor?(t.boundary=16,t.storage=12):e.isVector4?(t.boundary=16,t.storage=16):e.isMatrix3?(t.boundary=48,t.storage=48):e.isMatrix4?(t.boundary=64,t.storage=64):e.isTexture?Io(`WebGLRenderer: Texture samplers can not be part of an uniforms group.`):ArrayBuffer.isView(e)?(t.boundary=16,t.storage=e.byteLength):Io(`WebGLRenderer: Unsupported uniform value type.`,e),t}function v(t){let n=t.target;n.removeEventListener(`dispose`,v);let r=o.indexOf(n.__bindingPointIndex);o.splice(r,1),e.deleteBuffer(i[n.id]),delete i[n.id],delete a[n.id]}function y(){for(let t in i)e.deleteBuffer(i[t]);o=[],i={},a={}}return{bind:c,update:l,dispose:y}}var Bg=new Uint16Array([12469,15057,12620,14925,13266,14620,13807,14376,14323,13990,14545,13625,14713,13328,14840,12882,14931,12528,14996,12233,15039,11829,15066,11525,15080,11295,15085,10976,15082,10705,15073,10495,13880,14564,13898,14542,13977,14430,14158,14124,14393,13732,14556,13410,14702,12996,14814,12596,14891,12291,14937,11834,14957,11489,14958,11194,14943,10803,14921,10506,14893,10278,14858,9960,14484,14039,14487,14025,14499,13941,14524,13740,14574,13468,14654,13106,14743,12678,14818,12344,14867,11893,14889,11509,14893,11180,14881,10751,14852,10428,14812,10128,14765,9754,14712,9466,14764,13480,14764,13475,14766,13440,14766,13347,14769,13070,14786,12713,14816,12387,14844,11957,14860,11549,14868,11215,14855,10751,14825,10403,14782,10044,14729,9651,14666,9352,14599,9029,14967,12835,14966,12831,14963,12804,14954,12723,14936,12564,14917,12347,14900,11958,14886,11569,14878,11247,14859,10765,14828,10401,14784,10011,14727,9600,14660,9289,14586,8893,14508,8533,15111,12234,15110,12234,15104,12216,15092,12156,15067,12010,15028,11776,14981,11500,14942,11205,14902,10752,14861,10393,14812,9991,14752,9570,14682,9252,14603,8808,14519,8445,14431,8145,15209,11449,15208,11451,15202,11451,15190,11438,15163,11384,15117,11274,15055,10979,14994,10648,14932,10343,14871,9936,14803,9532,14729,9218,14645,8742,14556,8381,14461,8020,14365,7603,15273,10603,15272,10607,15267,10619,15256,10631,15231,10614,15182,10535,15118,10389,15042,10167,14963,9787,14883,9447,14800,9115,14710,8665,14615,8318,14514,7911,14411,7507,14279,7198,15314,9675,15313,9683,15309,9712,15298,9759,15277,9797,15229,9773,15166,9668,15084,9487,14995,9274,14898,8910,14800,8539,14697,8234,14590,7790,14479,7409,14367,7067,14178,6621,15337,8619,15337,8631,15333,8677,15325,8769,15305,8871,15264,8940,15202,8909,15119,8775,15022,8565,14916,8328,14804,8009,14688,7614,14569,7287,14448,6888,14321,6483,14088,6171,15350,7402,15350,7419,15347,7480,15340,7613,15322,7804,15287,7973,15229,8057,15148,8012,15046,7846,14933,7611,14810,7357,14682,7069,14552,6656,14421,6316,14251,5948,14007,5528,15356,5942,15356,5977,15353,6119,15348,6294,15332,6551,15302,6824,15249,7044,15171,7122,15070,7050,14949,6861,14818,6611,14679,6349,14538,6067,14398,5651,14189,5311,13935,4958,15359,4123,15359,4153,15356,4296,15353,4646,15338,5160,15311,5508,15263,5829,15188,6042,15088,6094,14966,6001,14826,5796,14678,5543,14527,5287,14377,4985,14133,4586,13869,4257,15360,1563,15360,1642,15358,2076,15354,2636,15341,3350,15317,4019,15273,4429,15203,4732,15105,4911,14981,4932,14836,4818,14679,4621,14517,4386,14359,4156,14083,3795,13808,3437,15360,122,15360,137,15358,285,15355,636,15344,1274,15322,2177,15281,2765,15215,3223,15120,3451,14995,3569,14846,3567,14681,3466,14511,3305,14344,3121,14037,2800,13753,2467,15360,0,15360,1,15359,21,15355,89,15346,253,15325,479,15287,796,15225,1148,15133,1492,15008,1749,14856,1882,14685,1886,14506,1783,14324,1608,13996,1398,13702,1183]),Vg=null;function Hg(){return Vg===null&&(Vg=new tu(Bg,16,16,Ea,pa),Vg.name=`DFG_LUT`,Vg.minFilter=ra,Vg.magFilter=ra,Vg.wrapS=Qi,Vg.wrapT=Qi,Vg.generateMipmaps=!1,Vg.needsUpdate=!0),Vg}var Ug=class{constructor(e={}){let{canvas:t=Mo(),context:n=null,depth:r=!0,stencil:i=!1,alpha:a=!1,antialias:o=!1,premultipliedAlpha:s=!0,preserveDrawingBuffer:c=!1,powerPreference:l=`default`,failIfMajorPerformanceCaveat:u=!1,reversedDepthBuffer:d=!1,outputBufferType:f=oa}=e;this.isWebGLRenderer=!0;let p;if(n!==null){if(typeof WebGLRenderingContext<`u`&&n instanceof WebGLRenderingContext)throw Error(`THREE.WebGLRenderer: WebGL 1 is not supported since r163.`);p=n.getContextAttributes().alpha}else p=a;let m=f,h=new Set([Oa,Da,Ta]),g=new Set([oa,da,la,ga,ma,ha]),_=new Uint32Array(4),v=new Int32Array(4),y=new B,b=null,x=null,S=[],C=[],w=null;this.domElement=t,this.debug={checkShaderErrors:!0,diagnostics:{keywords:!1},onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.toneMapping=0,this.toneMappingExposure=1,this.transmissionResolutionScale=1;let T=this,E=!1,D=null,O=null,k=null,ee=null;this._outputColorSpace=xo;let A=0,te=0,j=null,M=-1,ne=null,re=new Ns,ie=new Ns,N=null,ae=new V(0),oe=0,se=t.width,ce=t.height,le=1,ue=null,de=null,fe=new Ns(0,0,se,ce),pe=new Ns(0,0,se,ce),me=!1,he=new _u,ge=!1,_e=!1,ve=new Rs,ye=new B,be=new Ns,xe={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0},Se=!1;function Ce(){return j===null?le:1}let P=n;function we(e,n){return t.getContext(e,n)}let Te,F,I,Ee,De,Oe,ke,Ae,je,Me,Ne,Pe,Fe,Ie,Le,Re,ze,Be,Ve,He,Ue,We,Ge;try{let e={alpha:!0,depth:r,stencil:i,antialias:o,premultipliedAlpha:s,preserveDrawingBuffer:c,powerPreference:l,failIfMajorPerformanceCaveat:u};if(`setAttribute`in t&&t.setAttribute(`data-engine`,`three.js r186`),t.addEventListener(`webglcontextlost`,Je,!1),t.addEventListener(`webglcontextrestored`,Ye,!1),t.addEventListener(`webglcontextcreationerror`,Xe,!1),P===null){let t=`webgl2`;if(P=we(t,e),P===null)throw we(t)?Error(`THREE.WebGLRenderer: Error creating WebGL context with your selected attributes.`):Error(`THREE.WebGLRenderer: Error creating WebGL context.`)}Ke()}catch(e){throw t.removeEventListener(`webglcontextlost`,Je,!1),t.removeEventListener(`webglcontextrestored`,Ye,!1),t.removeEventListener(`webglcontextcreationerror`,Xe,!1),Lo(`WebGLRenderer: `+e.message),e}function Ke(){Te=new sm(P),Te.init(),Ue=new jg(P,Te),F=new Ip(P,Te,e,Ue),I=new kg(P,Te),F.reversedDepthBuffer&&d&&I.buffers.depth.setReversed(!0),O=P.createFramebuffer(),k=P.createFramebuffer(),ee=P.createFramebuffer(),Ee=new um(P),De=new lg,Oe=new Ag(P,Te,I,De,F,Ue,Ee),ke=new om(T),Ae=new Dp(P),We=new Pp(P,Ae),je=new cm(P,Ae,Ee,We),Me=new fm(P,je,Ae,We,Ee),Be=new dm(P,F,Oe),Le=new Lp(De),Ne=new cg(T,ke,Te,F,We,Le),Pe=new Rg(T,De),Fe=new pg,Ie=new bg(Te),ze=new Np(T,ke,I,Me,p,s),Re=new Og(T,Me,F),Ge=new zg(P,Ee,F,I),Ve=new Fp(P,Te,Ee),He=new lm(P,Te,Ee),Ee.programs=Ne.programs,T.capabilities=F,T.extensions=Te,T.properties=De,T.renderLists=Fe,T.shadowMap=Re,T.state=I,T.info=Ee}m!==1009&&(w=new mm(m,t.width,t.height,o,r,i));let qe=new Fg(T,P);this.xr=qe,this.getContext=function(){return P},this.getContextAttributes=function(){return P.getContextAttributes()},this.forceContextLoss=function(){let e=Te.get(`WEBGL_lose_context`);e&&e.loseContext()},this.forceContextRestore=function(){let e=Te.get(`WEBGL_lose_context`);e&&e.restoreContext()},this.getPixelRatio=function(){return le},this.setPixelRatio=function(e){e!==void 0&&(le=e,this.setSize(se,ce,!1))},this.getSize=function(e){return e.set(se,ce)},this.setSize=function(e,n,r=!0){qe.isPresenting?Io(`WebGLRenderer: Can't change size while VR device is presenting.`):(se=e,ce=n,t.width=Math.floor(e*le),t.height=Math.floor(n*le),r===!0&&(t.style.width=e+`px`,t.style.height=n+`px`),w!==null&&w.setSize(t.width,t.height),this.setViewport(0,0,e,n))},this.getDrawingBufferSize=function(e){return e.set(se*le,ce*le).floor()},this.setDrawingBufferSize=function(e,n,r){se=e,ce=n,le=r,t.width=Math.floor(e*r),t.height=Math.floor(n*r),this.setViewport(0,0,e,n)},this.setEffects=function(e){if(m===1009)Lo(`WebGLRenderer: setEffects() requires outputBufferType set to HalfFloatType or FloatType.`);else{if(e){for(let t=0;t{function n(){r.forEach(function(e){let t=De.get(e).currentProgram;(t===void 0||t.isReady())&&r.delete(e)}),r.size===0?t(e):setTimeout(n,10)}Te.get(`KHR_parallel_shader_compile`)===null?setTimeout(n,10):n()})};let tt=null;function nt(e){tt&&tt(e)}function rt(){at.stop()}function it(){at.start()}let at=new Ep;at.setAnimationLoop(nt),typeof self<`u`&&at.setContext(self),this.setAnimationLoop=function(e){tt=e,qe.setAnimationLoop(e),e===null?at.stop():at.start()},qe.addEventListener(`sessionstart`,rt),qe.addEventListener(`sessionend`,it),this.render=function(e,t){if(t!==void 0&&t.isCamera!==!0){Lo(`WebGLRenderer.render: camera is not an instance of THREE.Camera.`);return}if(E===!0)return;D!==null&&D.renderStart(e,t);let n=qe.enabled===!0&&qe.isPresenting===!0,r=w!==null&&(j===null||n)&&w.begin(T,j);if(e.matrixWorldAutoUpdate===!0&&e.updateMatrixWorld(),t.parent===null&&t.matrixWorldAutoUpdate===!0&&t.updateMatrixWorld(),qe.enabled===!0&&qe.isPresenting===!0&&(w===null||w.isCompositing()===!1)&&(qe.cameraAutoUpdate===!0&&qe.updateCamera(t),t=qe.getCamera()),e.isScene===!0&&e.onBeforeRender(T,e,t,j),x=Ie.get(e,C.length),x.init(t),x.state.textureUnits=Oe.getTextureUnits(),C.push(x),ve.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),he.setFromProjectionMatrix(ve,Oo,t.reversedDepth),_e=this.localClippingEnabled,ge=Le.init(this.clippingPlanes,_e),b=Fe.get(e,S.length),b.init(),S.push(b),qe.enabled===!0&&qe.isPresenting===!0){let e=T.xr.getDepthSensingMesh();e!==null&&ot(e,t,-1/0,T.sortObjects)}ot(e,t,0,T.sortObjects),b.finish(),D!==null&&D.updateLights(x.state.lightsArray),T.sortObjects===!0&&b.sort(ue,de),Se=qe.enabled===!1||qe.isPresenting===!1||qe.hasDepthSensing()===!1,Se&&ze.addToRenderList(b,e),this.info.render.frame++,this.info.autoReset===!0&&this.info.reset(),ge===!0&&Le.beginShadows();let i=x.state.shadowsArray;if(Re.render(i,e,t),ge===!0&&Le.endShadows(),(r&&w.hasRenderPass())===!1){let n=b.opaque,r=b.transmissive;if(x.setupLights(),t.isArrayCamera){let i=t.cameras;if(r.length>0)for(let t=0,a=i.length;t0&&ct(n,r,e,t),Se&&ze.render(e),st(b,e,t)}j!==null&&te===0&&(Oe.updateMultisampleRenderTarget(j),Oe.updateRenderTargetMipmap(j)),r&&w.end(T),e.isScene===!0&&e.onAfterRender(T,e,t),We.resetDefaultState(),M=-1,ne=null,C.pop(),C.length>0?(x=C[C.length-1],Oe.setTextureUnits(x.state.textureUnits),ge===!0&&Le.setGlobalState(T.clippingPlanes,x.state.camera)):x=null,S.pop(),b=S.length>0?S[S.length-1]:null,D!==null&&D.renderEnd()};function ot(e,t,n,r){if(e.visible===!1)return;if(e.layers.test(t.layers)){if(e.isGroup)n=e.renderOrder;else if(e.isLOD)e.autoUpdate===!0&&e.update(t);else if(e.isLightProbeGrid)x.pushLightProbeGrid(e);else if(e.isLight)x.pushLight(e),e.castShadow&&x.pushShadow(e);else if(e.isSprite){if(!e.frustumCulled||e.intersectsFrustum(he)){r&&be.setFromMatrixPosition(e.matrixWorld).applyMatrix4(ve);let i=Me.update(e),a=e.material;a.visible&&b.push(e,i,a,n,be.z,null,t)}}else if((e.isMesh||e.isLine||e.isPoints)&&(!e.frustumCulled||e.intersectsFrustum(he))){let i=Me.update(e),a=e.material;if(r&&(e.boundingSphere===void 0?(i.boundingSphere===null&&i.computeBoundingSphere(),be.copy(i.boundingSphere.center)):(e.boundingSphere===null&&e.computeBoundingSphere(),be.copy(e.boundingSphere.center)),be.applyMatrix4(e.matrixWorld).applyMatrix4(ve)),Array.isArray(a)){let r=i.groups;for(let o=0,s=r.length;o0&<(i,t,n),a.length>0&<(a,t,n),o.length>0&<(o,t,n),I.buffers.depth.setTest(!0),I.buffers.depth.setMask(!0),I.buffers.color.setMask(!0),I.setPolygonOffset(!1)}function ct(e,t,n,r){if((n.isScene===!0?n.overrideMaterial:null)!==null)return;if(x.state.transmissionRenderTarget[r.id]===void 0){let e=Te.has(`EXT_color_buffer_half_float`)||Te.has(`EXT_color_buffer_float`);x.state.transmissionRenderTarget[r.id]=new Fs(1,1,{generateMipmaps:!0,type:e?pa:oa,minFilter:aa,samples:Math.max(4,F.samples),stencilBuffer:i,resolveDepthBuffer:!1,resolveStencilBuffer:!1,storeMultisampledDepthBuffer:!1,storeMultisampledStencilBuffer:!1,colorSpace:Ss.workingColorSpace})}let a=x.state.transmissionRenderTarget[r.id],o=r.viewport||re;a.setSize(o.z*T.transmissionResolutionScale,o.w*T.transmissionResolutionScale);let s=T.getRenderTarget(),c=T.getActiveCubeFace(),l=T.getActiveMipmapLevel();T.setRenderTarget(a),T.getClearColor(ae),oe=T.getClearAlpha(),oe<1&&T.setClearColor(16777215,.5),T.clear(),Se&&ze.render(n);let u=T.toneMapping;T.toneMapping=0;let d=r.viewport;if(r.viewport!==void 0&&(r.viewport=void 0),x.setupLightsView(r),ge===!0&&Le.setGlobalState(T.clippingPlanes,r),lt(e,n,r),Oe.updateMultisampleRenderTarget(a),Oe.updateRenderTargetMipmap(a),Te.has(`WEBGL_multisampled_render_to_texture`)===!1){let e=!1;for(let i=0,a=t.length;i0,r.currentProgram=d,r.uniformsList=null,d}function ft(e){if(e.uniformsList===null){let t=e.currentProgram.getUniforms();e.uniformsList=xh.seqWithValue(t.seq,e.uniforms)}return e.uniformsList}function pt(e,t){let n=De.get(e);n.outputColorSpace=t.outputColorSpace,n.batching=t.batching,n.batchingColor=t.batchingColor,n.instancing=t.instancing,n.instancingColor=t.instancingColor,n.instancingMorph=t.instancingMorph,n.skinning=t.skinning,n.morphTargets=t.morphTargets,n.morphNormals=t.morphNormals,n.morphColors=t.morphColors,n.morphTargetsCount=t.morphTargetsCount,n.numClippingPlanes=t.numClippingPlanes,n.numIntersection=t.numClipIntersection,n.vertexAlphas=t.vertexAlphas,n.vertexTangents=t.vertexTangents,n.toneMapping=t.toneMapping}function mt(e,t){if(e.length===0)return null;if(e.length===1)return e[0].texture===null?null:e[0];y.setFromMatrixPosition(t.matrixWorld);for(let t=0,n=e.length;t0),f=!!n.morphAttributes.position,p=!!n.morphAttributes.normal,m=!!n.morphAttributes.color,h=0;r.toneMapped&&(j===null||j.isXRRenderTarget===!0)&&(h=T.toneMapping);let g=n.morphAttributes.position||n.morphAttributes.normal||n.morphAttributes.color,_=g===void 0?0:g.length,v=De.get(r),y=x.state.lights;if(ge===!0&&(_e===!0||e!==ne)){let t=e===ne&&r.id===M;Le.setState(r,e,t)}let b=!1;r.version===v.__version?v.needsLights&&v.lightsStateVersion!==y.state.version?b=!0:v.outputColorSpace===s?i.isBatchedMesh&&v.batching===!1||!i.isBatchedMesh&&v.batching===!0||i.isBatchedMesh&&v.batchingColor===!0&&i._colorsTexture===null||i.isBatchedMesh&&v.batchingColor===!1&&i._colorsTexture!==null||i.isInstancedMesh&&v.instancing===!1||!i.isInstancedMesh&&v.instancing===!0||i.isSkinnedMesh&&v.skinning===!1||!i.isSkinnedMesh&&v.skinning===!0||i.isInstancedMesh&&v.instancingColor===!0&&i.instanceColor===null||i.isInstancedMesh&&v.instancingColor===!1&&i.instanceColor!==null||i.isInstancedMesh&&v.instancingMorph===!0&&i.morphTexture===null||i.isInstancedMesh&&v.instancingMorph===!1&&i.morphTexture!==null?b=!0:v.envMap===l?r.fog===!0&&v.fog!==a||v.numClippingPlanes!==void 0&&(v.numClippingPlanes!==Le.numPlanes||v.numIntersection!==Le.numIntersection)?b=!0:v.vertexAlphas===u&&v.vertexTangents===d&&v.morphTargets===f&&v.morphNormals===p&&v.morphColors===m&&v.toneMapping===h&&v.morphTargetsCount===_?!!v.lightProbeGrid!=x.state.lightProbeGridArray.length>0&&(b=!0):b=!0:b=!0:b=!0:(b=!0,v.__version=r.version);let S=v.currentProgram;b===!0&&(S=dt(r,t,i),D&&r.isNodeMaterial&&D.onUpdateProgram(r,S,v));let C=!1,w=!1,E=!1,O=S.getUniforms(),k=v.uniforms;if(I.useProgram(S.program)&&(C=!0,w=!0,E=!0),r.id!==M&&(M=r.id,w=!0),v.needsLights){let e=mt(x.state.lightProbeGridArray,i);v.lightProbeGrid!==e&&(v.lightProbeGrid=e,w=!0)}if(C||ne!==e){I.buffers.depth.getReversed()&&e.reversedDepth!==!0&&(e._reversedDepth=!0,e.updateProjectionMatrix()),O.setValue(P,`projectionMatrix`,e.projectionMatrix),O.setValue(P,`viewMatrix`,e.matrixWorldInverse);let t=O.map.cameraPosition;t!==void 0&&t.setValue(P,ye.setFromMatrixPosition(e.matrixWorld)),F.logarithmicDepthBuffer&&O.setValue(P,`logDepthBufFC`,2/(Math.log(e.far+1)/Math.LN2)),(r.isMeshPhongMaterial||r.isMeshToonMaterial||r.isMeshLambertMaterial||r.isMeshBasicMaterial||r.isMeshStandardMaterial||r.isShaderMaterial)&&O.setValue(P,`isOrthographic`,e.isOrthographicCamera===!0),ne!==e&&(ne=e,w=!0,E=!0)}if(v.needsLights&&(y.state.sunShadowMap.length>0&&O.setValue(P,`sunShadowMap`,y.state.sunShadowMap,Oe),y.state.directionalShadowMap.length>0&&O.setValue(P,`directionalShadowMap`,y.state.directionalShadowMap,Oe),y.state.spotShadowMap.length>0&&O.setValue(P,`spotShadowMap`,y.state.spotShadowMap,Oe),y.state.pointShadowMap.length>0&&O.setValue(P,`pointShadowMap`,y.state.pointShadowMap,Oe)),i.isSkinnedMesh){O.setOptional(P,i,`bindMatrix`),O.setOptional(P,i,`bindMatrixInverse`);let e=i.skeleton;e&&(e.boneTexture===null&&e.computeBoneTexture(),O.setValue(P,`boneTexture`,e.boneTexture,Oe))}i.isBatchedMesh&&(O.setOptional(P,i,`batchingTexture`),O.setValue(P,`batchingTexture`,i._matricesTexture,Oe),O.setOptional(P,i,`batchingIdTexture`),O.setValue(P,`batchingIdTexture`,i._indirectTexture,Oe),O.setOptional(P,i,`batchingColorTexture`),i._colorsTexture!==null&&O.setValue(P,`batchingColorTexture`,i._colorsTexture,Oe));let ee=n.morphAttributes;if((ee.position!==void 0||ee.normal!==void 0||ee.color!==void 0)&&Be.update(i,n,S),(w||v.receiveShadow!==i.receiveShadow)&&(v.receiveShadow=i.receiveShadow,O.setValue(P,`receiveShadow`,i.receiveShadow)),(r.isMeshStandardMaterial||r.isMeshLambertMaterial||r.isMeshPhongMaterial)&&r.envMap===null&&t.environment!==null&&(k.envMapIntensity.value=t.environmentIntensity),k.dfgLUT!==void 0&&(k.dfgLUT.value=Hg()),w){if(O.setValue(P,`toneMappingExposure`,T.toneMappingExposure),v.needsLights&>(k,E),a&&r.fog===!0&&Pe.refreshFogUniforms(k,a),Pe.refreshMaterialUniforms(k,r,le,ce,x.state.transmissionRenderTarget[e.id]),v.needsLights&&v.lightProbeGrid){let e=v.lightProbeGrid;k.probesSH.value=e.texture,k.probesMin.value.copy(e.boundingBox.min),k.probesMax.value.copy(e.boundingBox.max),k.probesResolution.value.copy(e.resolution)}xh.upload(P,ft(v),k,Oe)}if(r.isShaderMaterial&&r.uniformsNeedUpdate===!0&&(xh.upload(P,ft(v),k,Oe),r.uniformsNeedUpdate=!1),r.isSpriteMaterial&&O.setValue(P,`center`,i.center),O.setValue(P,`modelViewMatrix`,i.modelViewMatrix),O.setValue(P,`normalMatrix`,i.normalMatrix),O.setValue(P,`modelMatrix`,i.matrixWorld),r.uniformsGroups!==void 0){let e=r.uniformsGroups;for(let t=0,n=e.length;t0&&Oe.useMultisampledRTT(e)===!1?De.get(e).__webglMultisampledFramebuffer:Array.isArray(c)?c[n]:c,re.copy(e.viewport),ie.copy(e.scissor),N=e.scissorTest}else re.copy(fe).multiplyScalar(le).floor(),ie.copy(pe).multiplyScalar(le).floor(),N=me;if(n!==0&&(r=O),I.bindFramebuffer(P.FRAMEBUFFER,r)&&I.drawBuffers(e,r),I.viewport(re),I.scissor(ie),I.setScissorTest(N),i){let r=De.get(e.texture);P.framebufferTexture2D(P.FRAMEBUFFER,P.COLOR_ATTACHMENT0,P.TEXTURE_CUBE_MAP_POSITIVE_X+t,r.__webglTexture,n)}else if(a){let r=t;for(let t=0;t1&&P.readBuffer(P.COLOR_ATTACHMENT0+s);let u=vt(o);if(u.__formatReadable===!1){Lo(`WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.`);return}if(u.__typeReadable===!1){Lo(`WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.`);return}t>=0&&t<=e.width-r&&n>=0&&n<=e.height-i&&P.readPixels(t,n,r,i,Ue.convert(c),Ue.convert(l),a)}finally{let e=j===null?null:De.get(j).__webglFramebuffer;I.bindFramebuffer(P.FRAMEBUFFER,e)}}},this.readRenderTargetPixelsAsync=async function(e,t,n,r,i,a,o,s=0){if(!(e&&e.isWebGLRenderTarget))throw Error(`THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.`);let c=De.get(e).__webglFramebuffer;if(e.isWebGLCubeRenderTarget&&o!==void 0&&(c=c[o]),c){if(t>=0&&t<=e.width-r&&n>=0&&n<=e.height-i){I.bindFramebuffer(P.FRAMEBUFFER,c);let o=e.textures[s],l=o.format,u=o.type;e.textures.length>1&&P.readBuffer(P.COLOR_ATTACHMENT0+s);let d=vt(o);if(d.__formatReadable===!1)throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.`);if(d.__typeReadable===!1)throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.`);let f=P.createBuffer();P.bindBuffer(P.PIXEL_PACK_BUFFER,f),P.bufferData(P.PIXEL_PACK_BUFFER,a.byteLength,P.STREAM_READ),P.readPixels(t,n,r,i,Ue.convert(l),Ue.convert(u),0),P.bindBuffer(P.PIXEL_PACK_BUFFER,null);let p=j===null?null:De.get(j).__webglFramebuffer;I.bindFramebuffer(P.FRAMEBUFFER,p);let m=P.fenceSync(P.SYNC_GPU_COMMANDS_COMPLETE,0);return P.flush(),await zo(P,m,4),P.bindBuffer(P.PIXEL_PACK_BUFFER,f),P.getBufferSubData(P.PIXEL_PACK_BUFFER,0,a),P.bindBuffer(P.PIXEL_PACK_BUFFER,null),P.deleteBuffer(f),P.deleteSync(m),a}throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: requested read bounds are out of range.`)}},this.copyFramebufferToTexture=function(e,t=null,n=0){let r=2**-n,i=Math.floor(e.image.width*r),a=Math.floor(e.image.height*r),o=t===null?0:t.x,s=t===null?0:t.y;Oe.setTexture2D(e,0),P.copyTexSubImage2D(P.TEXTURE_2D,n,0,0,o,s,i,a),I.unbindTexture()},this.copyTextureToTexture=function(e,t,n=null,r=null,i=0,a=0){let o,s,c,l,u,d,f,p,m,h=e.isCompressedTexture?e.mipmaps[a]:e.image;if(n!==null)o=n.max.x-n.min.x,s=n.max.y-n.min.y,c=n.isBox3?n.max.z-n.min.z:1,l=n.min.x,u=n.min.y,d=n.isBox3?n.min.z:0;else{let t=2**-i;o=Math.floor(h.width*t),s=Math.floor(h.height*t),c=e.isDataArrayTexture?h.depth:e.isData3DTexture?Math.floor(h.depth*t):1,l=0,u=0,d=0}r===null?(f=0,p=0,m=0):(f=r.x,p=r.y,m=r.z);let g=Ue.convert(t.format),_=Ue.convert(t.type),v;t.isData3DTexture?(Oe.setTexture3D(t,0),v=P.TEXTURE_3D):t.isDataArrayTexture||t.isCompressedArrayTexture?(Oe.setTexture2DArray(t,0),v=P.TEXTURE_2D_ARRAY):(Oe.setTexture2D(t,0),v=P.TEXTURE_2D),I.activeTexture(P.TEXTURE0),I.pixelStorei(P.UNPACK_FLIP_Y_WEBGL,t.flipY),I.pixelStorei(P.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.premultiplyAlpha),I.pixelStorei(P.UNPACK_ALIGNMENT,t.unpackAlignment);let y=I.getParameter(P.UNPACK_ROW_LENGTH),b=I.getParameter(P.UNPACK_IMAGE_HEIGHT),x=I.getParameter(P.UNPACK_SKIP_PIXELS),S=I.getParameter(P.UNPACK_SKIP_ROWS),C=I.getParameter(P.UNPACK_SKIP_IMAGES);I.pixelStorei(P.UNPACK_ROW_LENGTH,h.width),I.pixelStorei(P.UNPACK_IMAGE_HEIGHT,h.height),I.pixelStorei(P.UNPACK_SKIP_PIXELS,l),I.pixelStorei(P.UNPACK_SKIP_ROWS,u),I.pixelStorei(P.UNPACK_SKIP_IMAGES,d);let w=e.isDataArrayTexture||e.isData3DTexture,T=t.isDataArrayTexture||t.isData3DTexture;if(e.isDepthTexture){let n=De.get(e),r=De.get(t),h=De.get(n.__renderTarget),g=De.get(r.__renderTarget);I.bindFramebuffer(P.READ_FRAMEBUFFER,h.__webglFramebuffer),I.bindFramebuffer(P.DRAW_FRAMEBUFFER,g.__webglFramebuffer);for(let n=0;n{let r=new e.array.constructor(e.count*e.itemSize);l[n][t]=new e.constructor(r,e.itemSize,e.normalized)}))}let p=t*.5,m=10**Math.log10(1/t),h=p*m;for(let t=0;t=0&&(x[r]=null,b[r].disconnect(n))}for(let t=0;t=x.length){x.push(n),r=e;break}else if(x[e]===null){x[e]=n,r=e;break}if(r===-1)break}let i=b[r];i&&i.connect(n)}}let M=new B,ne=new B;function re(e,t,n){M.setFromMatrixPosition(t.matrixWorld),ne.setFromMatrixPosition(n.matrixWorld);let r=M.distanceTo(ne),i=t.projectionMatrix.elements,a=n.projectionMatrix.elements,o=i[14]/(i[10]-1),s=i[14]/(i[10]+1),c=(i[9]+1)/i[5],l=(i[9]-1)/i[5],u=(i[8]-1)/i[0],d=(a[8]+1)/a[0],f=o*u,p=o*d,m=r/(-u+d),h=m*-u;if(t.matrixWorld.decompose(e.position,e.quaternion,e.scale),e.translateX(h),e.translateZ(m),e.matrixWorld.compose(e.position,e.quaternion,e.scale),e.matrixWorldInverse.copy(e.matrixWorld).invert(),i[10]===-1)e.projectionMatrix.copy(t.projectionMatrix),e.projectionMatrixInverse.copy(t.projectionMatrixInverse);else{let t=o+m,n=s+m,i=f-h,a=p+(r-h),u=c*s/n*t,d=l*s/n*t;e.projectionMatrix.makePerspective(i,a,u,d,t,n),e.projectionMatrixInverse.copy(e.projectionMatrix).invert()}}function ie(e,t){t===null?e.matrixWorld.copy(e.matrix):e.matrixWorld.multiplyMatrices(t.matrixWorld,e.matrix),e.matrixWorldInverse.copy(e.matrixWorld).invert()}this.updateCamera=function(e){if(r===null)return;let t=e.near,n=e.far;h.texture!==null&&(h.depthNear>0&&(t=h.depthNear),h.depthFar>0&&(n=h.depthFar)),O.near=E.near=T.near=t,O.far=E.far=T.far=n,(k!==O.near||ee!==O.far)&&(r.updateRenderState({depthNear:O.near,depthFar:O.far}),k=O.near,ee=O.far),O.layers.mask=e.layers.mask|6,T.layers.mask=O.layers.mask&-5,E.layers.mask=O.layers.mask&-3;let i=e.parent,a=O.cameras;ie(O,i);for(let e=0;e0&&(e.alphaTest.value=r.alphaTest);let i=t.get(r),a=i.envMap,o=i.envMapRotation;a&&(e.envMap.value=a,e.envMapRotation.value.setFromMatrix4(Lg.makeRotationFromEuler(o)).transpose(),a.isCubeTexture&&a.isRenderTargetTexture===!1&&e.envMapRotation.value.premultiply(Rg),e.reflectivity.value=r.reflectivity,e.ior.value=r.ior,e.refractionRatio.value=r.refractionRatio),r.lightMap&&(e.lightMap.value=r.lightMap,e.lightMapIntensity.value=r.lightMapIntensity,n(r.lightMap,e.lightMapTransform)),r.aoMap&&(e.aoMap.value=r.aoMap,e.aoMapIntensity.value=r.aoMapIntensity,n(r.aoMap,e.aoMapTransform))}function o(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform))}function s(e,t){e.dashSize.value=t.dashSize,e.totalSize.value=t.dashSize+t.gapSize,e.scale.value=t.scale}function c(e,t,r,i){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.size.value=t.size*r,e.scale.value=i*.5,t.map&&(e.map.value=t.map,n(t.map,e.uvTransform)),t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform)),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}function l(e,t){e.diffuse.value.copy(t.color),e.opacity.value=t.opacity,e.rotation.value=t.rotation,t.map&&(e.map.value=t.map,n(t.map,e.mapTransform)),t.alphaMap&&(e.alphaMap.value=t.alphaMap,n(t.alphaMap,e.alphaMapTransform)),t.alphaTest>0&&(e.alphaTest.value=t.alphaTest)}function u(e,t){e.specular.value.copy(t.specular),e.shininess.value=Math.max(t.shininess,1e-4)}function d(e,t){t.gradientMap&&(e.gradientMap.value=t.gradientMap)}function f(e,t){e.metalness.value=t.metalness,t.metalnessMap&&(e.metalnessMap.value=t.metalnessMap,n(t.metalnessMap,e.metalnessMapTransform)),e.roughness.value=t.roughness,t.roughnessMap&&(e.roughnessMap.value=t.roughnessMap,n(t.roughnessMap,e.roughnessMapTransform)),t.envMap&&(e.envMapIntensity.value=t.envMapIntensity)}function p(e,t,r){e.ior.value=t.ior,t.sheen>0&&(e.sheenColor.value.copy(t.sheenColor).multiplyScalar(t.sheen),e.sheenRoughness.value=t.sheenRoughness,t.sheenColorMap&&(e.sheenColorMap.value=t.sheenColorMap,n(t.sheenColorMap,e.sheenColorMapTransform)),t.sheenRoughnessMap&&(e.sheenRoughnessMap.value=t.sheenRoughnessMap,n(t.sheenRoughnessMap,e.sheenRoughnessMapTransform))),t.clearcoat>0&&(e.clearcoat.value=t.clearcoat,e.clearcoatRoughness.value=t.clearcoatRoughness,t.clearcoatMap&&(e.clearcoatMap.value=t.clearcoatMap,n(t.clearcoatMap,e.clearcoatMapTransform)),t.clearcoatRoughnessMap&&(e.clearcoatRoughnessMap.value=t.clearcoatRoughnessMap,n(t.clearcoatRoughnessMap,e.clearcoatRoughnessMapTransform)),t.clearcoatNormalMap&&(e.clearcoatNormalMap.value=t.clearcoatNormalMap,n(t.clearcoatNormalMap,e.clearcoatNormalMapTransform),e.clearcoatNormalScale.value.copy(t.clearcoatNormalScale),t.side===1&&e.clearcoatNormalScale.value.negate())),t.dispersion>0&&(e.dispersion.value=t.dispersion),t.retroreflectivity>0&&(e.retroreflectivity.value=t.retroreflectivity),t.iridescence>0&&(e.iridescence.value=t.iridescence,e.iridescenceIOR.value=t.iridescenceIOR,e.iridescenceThicknessMinimum.value=t.iridescenceThicknessRange[0],e.iridescenceThicknessMaximum.value=t.iridescenceThicknessRange[1],t.iridescenceMap&&(e.iridescenceMap.value=t.iridescenceMap,n(t.iridescenceMap,e.iridescenceMapTransform)),t.iridescenceThicknessMap&&(e.iridescenceThicknessMap.value=t.iridescenceThicknessMap,n(t.iridescenceThicknessMap,e.iridescenceThicknessMapTransform))),t.transmission>0&&(e.transmission.value=t.transmission,e.transmissionSamplerMap.value=r.texture,e.transmissionSamplerSize.value.set(r.width,r.height),t.transmissionMap&&(e.transmissionMap.value=t.transmissionMap,n(t.transmissionMap,e.transmissionMapTransform)),e.thickness.value=t.thickness,t.thicknessMap&&(e.thicknessMap.value=t.thicknessMap,n(t.thicknessMap,e.thicknessMapTransform)),e.attenuationDistance.value=t.attenuationDistance,e.attenuationColor.value.copy(t.attenuationColor)),t.anisotropy>0&&(e.anisotropyVector.value.set(t.anisotropy*Math.cos(t.anisotropyRotation),t.anisotropy*Math.sin(t.anisotropyRotation)),t.anisotropyMap&&(e.anisotropyMap.value=t.anisotropyMap,n(t.anisotropyMap,e.anisotropyMapTransform))),e.specularIntensity.value=t.specularIntensity,e.specularColor.value.copy(t.specularColor),t.specularColorMap&&(e.specularColorMap.value=t.specularColorMap,n(t.specularColorMap,e.specularColorMapTransform)),t.specularIntensityMap&&(e.specularIntensityMap.value=t.specularIntensityMap,n(t.specularIntensityMap,e.specularIntensityMapTransform))}function m(e,t){t.matcap&&(e.matcap.value=t.matcap)}function h(e,n){let r=t.get(n).light;e.referencePosition.value.setFromMatrixPosition(r.matrixWorld),e.nearDistance.value=r.shadow.camera.near,e.farDistance.value=r.shadow.camera.far}return{refreshFogUniforms:r,refreshMaterialUniforms:i}}function Bg(e,t,n,r){let i={},a={},o=[],s=e.getParameter(e.MAX_UNIFORM_BUFFER_BINDINGS);function c(e,t){let n=t.program;r.uniformBlockBinding(e,n)}function l(e,n){let o=i[e.id];o===void 0&&(g(e),o=u(e),i[e.id]=o,e.addEventListener(`dispose`,v));let s=n.program;r.updateUBOMapping(e,s);let c=t.render.frame;a[e.id]!==c&&(f(e),a[e.id]=c)}function u(t){let n=d();t.__bindingPointIndex=n;let r=e.createBuffer(),i=t.__size,a=t.usage;return e.bindBuffer(e.UNIFORM_BUFFER,r),e.bufferData(e.UNIFORM_BUFFER,i,a),e.bindBuffer(e.UNIFORM_BUFFER,null),e.bindBufferBase(e.UNIFORM_BUFFER,n,r),r}function d(){for(let e=0;e0&&(n+=16-r),e.__size=n,e.__cache={},this}function _(e){let t={boundary:0,storage:0};return typeof e==`number`||typeof e==`boolean`?(t.boundary=4,t.storage=4):e.isVector2?(t.boundary=8,t.storage=8):e.isVector3||e.isColor?(t.boundary=16,t.storage=12):e.isVector4?(t.boundary=16,t.storage=16):e.isMatrix3?(t.boundary=48,t.storage=48):e.isMatrix4?(t.boundary=64,t.storage=64):e.isTexture?Lo(`WebGLRenderer: Texture samplers can not be part of an uniforms group.`):ArrayBuffer.isView(e)?(t.boundary=16,t.storage=e.byteLength):Lo(`WebGLRenderer: Unsupported uniform value type.`,e),t}function v(t){let n=t.target;n.removeEventListener(`dispose`,v);let r=o.indexOf(n.__bindingPointIndex);o.splice(r,1),e.deleteBuffer(i[n.id]),delete i[n.id],delete a[n.id]}function y(){for(let t in i)e.deleteBuffer(i[t]);o=[],i={},a={}}return{bind:c,update:l,dispose:y}}var Vg=new Uint16Array([12469,15057,12620,14925,13266,14620,13807,14376,14323,13990,14545,13625,14713,13328,14840,12882,14931,12528,14996,12233,15039,11829,15066,11525,15080,11295,15085,10976,15082,10705,15073,10495,13880,14564,13898,14542,13977,14430,14158,14124,14393,13732,14556,13410,14702,12996,14814,12596,14891,12291,14937,11834,14957,11489,14958,11194,14943,10803,14921,10506,14893,10278,14858,9960,14484,14039,14487,14025,14499,13941,14524,13740,14574,13468,14654,13106,14743,12678,14818,12344,14867,11893,14889,11509,14893,11180,14881,10751,14852,10428,14812,10128,14765,9754,14712,9466,14764,13480,14764,13475,14766,13440,14766,13347,14769,13070,14786,12713,14816,12387,14844,11957,14860,11549,14868,11215,14855,10751,14825,10403,14782,10044,14729,9651,14666,9352,14599,9029,14967,12835,14966,12831,14963,12804,14954,12723,14936,12564,14917,12347,14900,11958,14886,11569,14878,11247,14859,10765,14828,10401,14784,10011,14727,9600,14660,9289,14586,8893,14508,8533,15111,12234,15110,12234,15104,12216,15092,12156,15067,12010,15028,11776,14981,11500,14942,11205,14902,10752,14861,10393,14812,9991,14752,9570,14682,9252,14603,8808,14519,8445,14431,8145,15209,11449,15208,11451,15202,11451,15190,11438,15163,11384,15117,11274,15055,10979,14994,10648,14932,10343,14871,9936,14803,9532,14729,9218,14645,8742,14556,8381,14461,8020,14365,7603,15273,10603,15272,10607,15267,10619,15256,10631,15231,10614,15182,10535,15118,10389,15042,10167,14963,9787,14883,9447,14800,9115,14710,8665,14615,8318,14514,7911,14411,7507,14279,7198,15314,9675,15313,9683,15309,9712,15298,9759,15277,9797,15229,9773,15166,9668,15084,9487,14995,9274,14898,8910,14800,8539,14697,8234,14590,7790,14479,7409,14367,7067,14178,6621,15337,8619,15337,8631,15333,8677,15325,8769,15305,8871,15264,8940,15202,8909,15119,8775,15022,8565,14916,8328,14804,8009,14688,7614,14569,7287,14448,6888,14321,6483,14088,6171,15350,7402,15350,7419,15347,7480,15340,7613,15322,7804,15287,7973,15229,8057,15148,8012,15046,7846,14933,7611,14810,7357,14682,7069,14552,6656,14421,6316,14251,5948,14007,5528,15356,5942,15356,5977,15353,6119,15348,6294,15332,6551,15302,6824,15249,7044,15171,7122,15070,7050,14949,6861,14818,6611,14679,6349,14538,6067,14398,5651,14189,5311,13935,4958,15359,4123,15359,4153,15356,4296,15353,4646,15338,5160,15311,5508,15263,5829,15188,6042,15088,6094,14966,6001,14826,5796,14678,5543,14527,5287,14377,4985,14133,4586,13869,4257,15360,1563,15360,1642,15358,2076,15354,2636,15341,3350,15317,4019,15273,4429,15203,4732,15105,4911,14981,4932,14836,4818,14679,4621,14517,4386,14359,4156,14083,3795,13808,3437,15360,122,15360,137,15358,285,15355,636,15344,1274,15322,2177,15281,2765,15215,3223,15120,3451,14995,3569,14846,3567,14681,3466,14511,3305,14344,3121,14037,2800,13753,2467,15360,0,15360,1,15359,21,15355,89,15346,253,15325,479,15287,796,15225,1148,15133,1492,15008,1749,14856,1882,14685,1886,14506,1783,14324,1608,13996,1398,13702,1183]),Hg=null;function Ug(){return Hg===null&&(Hg=new nu(Vg,16,16,Da,ma),Hg.name=`DFG_LUT`,Hg.minFilter=ia,Hg.magFilter=ia,Hg.wrapS=$i,Hg.wrapT=$i,Hg.generateMipmaps=!1,Hg.needsUpdate=!0),Hg}var Wg=class{constructor(e={}){let{canvas:t=No(),context:n=null,depth:r=!0,stencil:i=!1,alpha:a=!1,antialias:o=!1,premultipliedAlpha:s=!0,preserveDrawingBuffer:c=!1,powerPreference:l=`default`,failIfMajorPerformanceCaveat:u=!1,reversedDepthBuffer:d=!1,outputBufferType:f=sa}=e;this.isWebGLRenderer=!0;let p;if(n!==null){if(typeof WebGLRenderingContext<`u`&&n instanceof WebGLRenderingContext)throw Error(`THREE.WebGLRenderer: WebGL 1 is not supported since r163.`);p=n.getContextAttributes().alpha}else p=a;let m=f,h=new Set([ka,Oa,Ea]),g=new Set([sa,fa,ua,_a,ha,ga]),_=new Uint32Array(4),v=new Int32Array(4),y=new B,b=null,x=null,S=[],C=[],w=null;this.domElement=t,this.debug={checkShaderErrors:!0,diagnostics:{keywords:!1},onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.toneMapping=0,this.toneMappingExposure=1,this.transmissionResolutionScale=1;let T=this,E=!1,D=null,O=null,k=null,ee=null;this._outputColorSpace=So;let A=0,te=0,j=null,M=-1,ne=null,re=new Ps,ie=new Ps,N=null,ae=new V(0),oe=0,se=t.width,ce=t.height,le=1,ue=null,de=null,fe=new Ps(0,0,se,ce),pe=new Ps(0,0,se,ce),me=!1,he=new vu,ge=!1,_e=!1,ve=new zs,ye=new B,be=new Ps,xe={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0},Se=!1;function Ce(){return j===null?le:1}let P=n;function we(e,n){return t.getContext(e,n)}let Te,F,I,Ee,De,Oe,ke,Ae,je,Me,Ne,Pe,Fe,Ie,Le,Re,ze,Be,Ve,He,Ue,We,Ge;try{let e={alpha:!0,depth:r,stencil:i,antialias:o,premultipliedAlpha:s,preserveDrawingBuffer:c,powerPreference:l,failIfMajorPerformanceCaveat:u};if(`setAttribute`in t&&t.setAttribute(`data-engine`,`three.js r186`),t.addEventListener(`webglcontextlost`,Je,!1),t.addEventListener(`webglcontextrestored`,Ye,!1),t.addEventListener(`webglcontextcreationerror`,Xe,!1),P===null){let t=`webgl2`;if(P=we(t,e),P===null)throw we(t)?Error(`THREE.WebGLRenderer: Error creating WebGL context with your selected attributes.`):Error(`THREE.WebGLRenderer: Error creating WebGL context.`)}Ke()}catch(e){throw t.removeEventListener(`webglcontextlost`,Je,!1),t.removeEventListener(`webglcontextrestored`,Ye,!1),t.removeEventListener(`webglcontextcreationerror`,Xe,!1),Ro(`WebGLRenderer: `+e.message),e}function Ke(){Te=new cm(P),Te.init(),Ue=new Mg(P,Te),F=new Lp(P,Te,e,Ue),I=new Ag(P,Te),F.reversedDepthBuffer&&d&&I.buffers.depth.setReversed(!0),O=P.createFramebuffer(),k=P.createFramebuffer(),ee=P.createFramebuffer(),Ee=new dm(P),De=new ug,Oe=new jg(P,Te,I,De,F,Ue,Ee),ke=new sm(T),Ae=new Op(P),We=new Fp(P,Ae),je=new lm(P,Ae,Ee,We),Me=new pm(P,je,Ae,We,Ee),Be=new fm(P,F,Oe),Le=new Rp(De),Ne=new lg(T,ke,Te,F,We,Le),Pe=new zg(T,De),Fe=new mg,Ie=new xg(Te),ze=new Pp(T,ke,I,Me,p,s),Re=new kg(T,Me,F),Ge=new Bg(P,Ee,F,I),Ve=new Ip(P,Te,Ee),He=new um(P,Te,Ee),Ee.programs=Ne.programs,T.capabilities=F,T.extensions=Te,T.properties=De,T.renderLists=Fe,T.shadowMap=Re,T.state=I,T.info=Ee}m!==1009&&(w=new hm(m,t.width,t.height,o,r,i));let qe=new Ig(T,P);this.xr=qe,this.getContext=function(){return P},this.getContextAttributes=function(){return P.getContextAttributes()},this.forceContextLoss=function(){let e=Te.get(`WEBGL_lose_context`);e&&e.loseContext()},this.forceContextRestore=function(){let e=Te.get(`WEBGL_lose_context`);e&&e.restoreContext()},this.getPixelRatio=function(){return le},this.setPixelRatio=function(e){e!==void 0&&(le=e,this.setSize(se,ce,!1))},this.getSize=function(e){return e.set(se,ce)},this.setSize=function(e,n,r=!0){qe.isPresenting?Lo(`WebGLRenderer: Can't change size while VR device is presenting.`):(se=e,ce=n,t.width=Math.floor(e*le),t.height=Math.floor(n*le),r===!0&&(t.style.width=e+`px`,t.style.height=n+`px`),w!==null&&w.setSize(t.width,t.height),this.setViewport(0,0,e,n))},this.getDrawingBufferSize=function(e){return e.set(se*le,ce*le).floor()},this.setDrawingBufferSize=function(e,n,r){se=e,ce=n,le=r,t.width=Math.floor(e*r),t.height=Math.floor(n*r),this.setViewport(0,0,e,n)},this.setEffects=function(e){if(m===1009)Ro(`WebGLRenderer: setEffects() requires outputBufferType set to HalfFloatType or FloatType.`);else{if(e){for(let t=0;t{function n(){r.forEach(function(e){let t=De.get(e).currentProgram;(t===void 0||t.isReady())&&r.delete(e)}),r.size===0?t(e):setTimeout(n,10)}Te.get(`KHR_parallel_shader_compile`)===null?setTimeout(n,10):n()})};let tt=null;function nt(e){tt&&tt(e)}function rt(){at.stop()}function it(){at.start()}let at=new Dp;at.setAnimationLoop(nt),typeof self<`u`&&at.setContext(self),this.setAnimationLoop=function(e){tt=e,qe.setAnimationLoop(e),e===null?at.stop():at.start()},qe.addEventListener(`sessionstart`,rt),qe.addEventListener(`sessionend`,it),this.render=function(e,t){if(t!==void 0&&t.isCamera!==!0){Ro(`WebGLRenderer.render: camera is not an instance of THREE.Camera.`);return}if(E===!0)return;D!==null&&D.renderStart(e,t);let n=qe.enabled===!0&&qe.isPresenting===!0,r=w!==null&&(j===null||n)&&w.begin(T,j);if(e.matrixWorldAutoUpdate===!0&&e.updateMatrixWorld(),t.parent===null&&t.matrixWorldAutoUpdate===!0&&t.updateMatrixWorld(),qe.enabled===!0&&qe.isPresenting===!0&&(w===null||w.isCompositing()===!1)&&(qe.cameraAutoUpdate===!0&&qe.updateCamera(t),t=qe.getCamera()),e.isScene===!0&&e.onBeforeRender(T,e,t,j),x=Ie.get(e,C.length),x.init(t),x.state.textureUnits=Oe.getTextureUnits(),C.push(x),ve.multiplyMatrices(t.projectionMatrix,t.matrixWorldInverse),he.setFromProjectionMatrix(ve,ko,t.reversedDepth),_e=this.localClippingEnabled,ge=Le.init(this.clippingPlanes,_e),b=Fe.get(e,S.length),b.init(),S.push(b),qe.enabled===!0&&qe.isPresenting===!0){let e=T.xr.getDepthSensingMesh();e!==null&&ot(e,t,-1/0,T.sortObjects)}ot(e,t,0,T.sortObjects),b.finish(),D!==null&&D.updateLights(x.state.lightsArray),T.sortObjects===!0&&b.sort(ue,de),Se=qe.enabled===!1||qe.isPresenting===!1||qe.hasDepthSensing()===!1,Se&&ze.addToRenderList(b,e),this.info.render.frame++,this.info.autoReset===!0&&this.info.reset(),ge===!0&&Le.beginShadows();let i=x.state.shadowsArray;if(Re.render(i,e,t),ge===!0&&Le.endShadows(),(r&&w.hasRenderPass())===!1){let n=b.opaque,r=b.transmissive;if(x.setupLights(),t.isArrayCamera){let i=t.cameras;if(r.length>0)for(let t=0,a=i.length;t0&&ct(n,r,e,t),Se&&ze.render(e),st(b,e,t)}j!==null&&te===0&&(Oe.updateMultisampleRenderTarget(j),Oe.updateRenderTargetMipmap(j)),r&&w.end(T),e.isScene===!0&&e.onAfterRender(T,e,t),We.resetDefaultState(),M=-1,ne=null,C.pop(),C.length>0?(x=C[C.length-1],Oe.setTextureUnits(x.state.textureUnits),ge===!0&&Le.setGlobalState(T.clippingPlanes,x.state.camera)):x=null,S.pop(),b=S.length>0?S[S.length-1]:null,D!==null&&D.renderEnd()};function ot(e,t,n,r){if(e.visible===!1)return;if(e.layers.test(t.layers)){if(e.isGroup)n=e.renderOrder;else if(e.isLOD)e.autoUpdate===!0&&e.update(t);else if(e.isLightProbeGrid)x.pushLightProbeGrid(e);else if(e.isLight)x.pushLight(e),e.castShadow&&x.pushShadow(e);else if(e.isSprite){if(!e.frustumCulled||e.intersectsFrustum(he)){r&&be.setFromMatrixPosition(e.matrixWorld).applyMatrix4(ve);let i=Me.update(e),a=e.material;a.visible&&b.push(e,i,a,n,be.z,null,t)}}else if((e.isMesh||e.isLine||e.isPoints)&&(!e.frustumCulled||e.intersectsFrustum(he))){let i=Me.update(e),a=e.material;if(r&&(e.boundingSphere===void 0?(i.boundingSphere===null&&i.computeBoundingSphere(),be.copy(i.boundingSphere.center)):(e.boundingSphere===null&&e.computeBoundingSphere(),be.copy(e.boundingSphere.center)),be.applyMatrix4(e.matrixWorld).applyMatrix4(ve)),Array.isArray(a)){let r=i.groups;for(let o=0,s=r.length;o0&<(i,t,n),a.length>0&<(a,t,n),o.length>0&<(o,t,n),I.buffers.depth.setTest(!0),I.buffers.depth.setMask(!0),I.buffers.color.setMask(!0),I.setPolygonOffset(!1)}function ct(e,t,n,r){if((n.isScene===!0?n.overrideMaterial:null)!==null)return;if(x.state.transmissionRenderTarget[r.id]===void 0){let e=Te.has(`EXT_color_buffer_half_float`)||Te.has(`EXT_color_buffer_float`);x.state.transmissionRenderTarget[r.id]=new Is(1,1,{generateMipmaps:!0,type:e?ma:sa,minFilter:oa,samples:Math.max(4,F.samples),stencilBuffer:i,resolveDepthBuffer:!1,resolveStencilBuffer:!1,storeMultisampledDepthBuffer:!1,storeMultisampledStencilBuffer:!1,colorSpace:Cs.workingColorSpace})}let a=x.state.transmissionRenderTarget[r.id],o=r.viewport||re;a.setSize(o.z*T.transmissionResolutionScale,o.w*T.transmissionResolutionScale);let s=T.getRenderTarget(),c=T.getActiveCubeFace(),l=T.getActiveMipmapLevel();T.setRenderTarget(a),T.getClearColor(ae),oe=T.getClearAlpha(),oe<1&&T.setClearColor(16777215,.5),T.clear(),Se&&ze.render(n);let u=T.toneMapping;T.toneMapping=0;let d=r.viewport;if(r.viewport!==void 0&&(r.viewport=void 0),x.setupLightsView(r),ge===!0&&Le.setGlobalState(T.clippingPlanes,r),lt(e,n,r),Oe.updateMultisampleRenderTarget(a),Oe.updateRenderTargetMipmap(a),Te.has(`WEBGL_multisampled_render_to_texture`)===!1){let e=!1;for(let i=0,a=t.length;i0,r.currentProgram=d,r.uniformsList=null,d}function ft(e){if(e.uniformsList===null){let t=e.currentProgram.getUniforms();e.uniformsList=Sh.seqWithValue(t.seq,e.uniforms)}return e.uniformsList}function pt(e,t){let n=De.get(e);n.outputColorSpace=t.outputColorSpace,n.batching=t.batching,n.batchingColor=t.batchingColor,n.instancing=t.instancing,n.instancingColor=t.instancingColor,n.instancingMorph=t.instancingMorph,n.skinning=t.skinning,n.morphTargets=t.morphTargets,n.morphNormals=t.morphNormals,n.morphColors=t.morphColors,n.morphTargetsCount=t.morphTargetsCount,n.numClippingPlanes=t.numClippingPlanes,n.numIntersection=t.numClipIntersection,n.vertexAlphas=t.vertexAlphas,n.vertexTangents=t.vertexTangents,n.toneMapping=t.toneMapping}function mt(e,t){if(e.length===0)return null;if(e.length===1)return e[0].texture===null?null:e[0];y.setFromMatrixPosition(t.matrixWorld);for(let t=0,n=e.length;t0),f=!!n.morphAttributes.position,p=!!n.morphAttributes.normal,m=!!n.morphAttributes.color,h=0;r.toneMapped&&(j===null||j.isXRRenderTarget===!0)&&(h=T.toneMapping);let g=n.morphAttributes.position||n.morphAttributes.normal||n.morphAttributes.color,_=g===void 0?0:g.length,v=De.get(r),y=x.state.lights;if(ge===!0&&(_e===!0||e!==ne)){let t=e===ne&&r.id===M;Le.setState(r,e,t)}let b=!1;r.version===v.__version?v.needsLights&&v.lightsStateVersion!==y.state.version?b=!0:v.outputColorSpace===s?i.isBatchedMesh&&v.batching===!1||!i.isBatchedMesh&&v.batching===!0||i.isBatchedMesh&&v.batchingColor===!0&&i._colorsTexture===null||i.isBatchedMesh&&v.batchingColor===!1&&i._colorsTexture!==null||i.isInstancedMesh&&v.instancing===!1||!i.isInstancedMesh&&v.instancing===!0||i.isSkinnedMesh&&v.skinning===!1||!i.isSkinnedMesh&&v.skinning===!0||i.isInstancedMesh&&v.instancingColor===!0&&i.instanceColor===null||i.isInstancedMesh&&v.instancingColor===!1&&i.instanceColor!==null||i.isInstancedMesh&&v.instancingMorph===!0&&i.morphTexture===null||i.isInstancedMesh&&v.instancingMorph===!1&&i.morphTexture!==null?b=!0:v.envMap===l?r.fog===!0&&v.fog!==a||v.numClippingPlanes!==void 0&&(v.numClippingPlanes!==Le.numPlanes||v.numIntersection!==Le.numIntersection)?b=!0:v.vertexAlphas===u&&v.vertexTangents===d&&v.morphTargets===f&&v.morphNormals===p&&v.morphColors===m&&v.toneMapping===h&&v.morphTargetsCount===_?!!v.lightProbeGrid!=x.state.lightProbeGridArray.length>0&&(b=!0):b=!0:b=!0:b=!0:(b=!0,v.__version=r.version);let S=v.currentProgram;b===!0&&(S=dt(r,t,i),D&&r.isNodeMaterial&&D.onUpdateProgram(r,S,v));let C=!1,w=!1,E=!1,O=S.getUniforms(),k=v.uniforms;if(I.useProgram(S.program)&&(C=!0,w=!0,E=!0),r.id!==M&&(M=r.id,w=!0),v.needsLights){let e=mt(x.state.lightProbeGridArray,i);v.lightProbeGrid!==e&&(v.lightProbeGrid=e,w=!0)}if(C||ne!==e){I.buffers.depth.getReversed()&&e.reversedDepth!==!0&&(e._reversedDepth=!0,e.updateProjectionMatrix()),O.setValue(P,`projectionMatrix`,e.projectionMatrix),O.setValue(P,`viewMatrix`,e.matrixWorldInverse);let t=O.map.cameraPosition;t!==void 0&&t.setValue(P,ye.setFromMatrixPosition(e.matrixWorld)),F.logarithmicDepthBuffer&&O.setValue(P,`logDepthBufFC`,2/(Math.log(e.far+1)/Math.LN2)),(r.isMeshPhongMaterial||r.isMeshToonMaterial||r.isMeshLambertMaterial||r.isMeshBasicMaterial||r.isMeshStandardMaterial||r.isShaderMaterial)&&O.setValue(P,`isOrthographic`,e.isOrthographicCamera===!0),ne!==e&&(ne=e,w=!0,E=!0)}if(v.needsLights&&(y.state.sunShadowMap.length>0&&O.setValue(P,`sunShadowMap`,y.state.sunShadowMap,Oe),y.state.directionalShadowMap.length>0&&O.setValue(P,`directionalShadowMap`,y.state.directionalShadowMap,Oe),y.state.spotShadowMap.length>0&&O.setValue(P,`spotShadowMap`,y.state.spotShadowMap,Oe),y.state.pointShadowMap.length>0&&O.setValue(P,`pointShadowMap`,y.state.pointShadowMap,Oe)),i.isSkinnedMesh){O.setOptional(P,i,`bindMatrix`),O.setOptional(P,i,`bindMatrixInverse`);let e=i.skeleton;e&&(e.boneTexture===null&&e.computeBoneTexture(),O.setValue(P,`boneTexture`,e.boneTexture,Oe))}i.isBatchedMesh&&(O.setOptional(P,i,`batchingTexture`),O.setValue(P,`batchingTexture`,i._matricesTexture,Oe),O.setOptional(P,i,`batchingIdTexture`),O.setValue(P,`batchingIdTexture`,i._indirectTexture,Oe),O.setOptional(P,i,`batchingColorTexture`),i._colorsTexture!==null&&O.setValue(P,`batchingColorTexture`,i._colorsTexture,Oe));let ee=n.morphAttributes;if((ee.position!==void 0||ee.normal!==void 0||ee.color!==void 0)&&Be.update(i,n,S),(w||v.receiveShadow!==i.receiveShadow)&&(v.receiveShadow=i.receiveShadow,O.setValue(P,`receiveShadow`,i.receiveShadow)),(r.isMeshStandardMaterial||r.isMeshLambertMaterial||r.isMeshPhongMaterial)&&r.envMap===null&&t.environment!==null&&(k.envMapIntensity.value=t.environmentIntensity),k.dfgLUT!==void 0&&(k.dfgLUT.value=Ug()),w){if(O.setValue(P,`toneMappingExposure`,T.toneMappingExposure),v.needsLights&>(k,E),a&&r.fog===!0&&Pe.refreshFogUniforms(k,a),Pe.refreshMaterialUniforms(k,r,le,ce,x.state.transmissionRenderTarget[e.id]),v.needsLights&&v.lightProbeGrid){let e=v.lightProbeGrid;k.probesSH.value=e.texture,k.probesMin.value.copy(e.boundingBox.min),k.probesMax.value.copy(e.boundingBox.max),k.probesResolution.value.copy(e.resolution)}Sh.upload(P,ft(v),k,Oe)}if(r.isShaderMaterial&&r.uniformsNeedUpdate===!0&&(Sh.upload(P,ft(v),k,Oe),r.uniformsNeedUpdate=!1),r.isSpriteMaterial&&O.setValue(P,`center`,i.center),O.setValue(P,`modelViewMatrix`,i.modelViewMatrix),O.setValue(P,`normalMatrix`,i.normalMatrix),O.setValue(P,`modelMatrix`,i.matrixWorld),r.uniformsGroups!==void 0){let e=r.uniformsGroups;for(let t=0,n=e.length;t0&&Oe.useMultisampledRTT(e)===!1?De.get(e).__webglMultisampledFramebuffer:Array.isArray(c)?c[n]:c,re.copy(e.viewport),ie.copy(e.scissor),N=e.scissorTest}else re.copy(fe).multiplyScalar(le).floor(),ie.copy(pe).multiplyScalar(le).floor(),N=me;if(n!==0&&(r=O),I.bindFramebuffer(P.FRAMEBUFFER,r)&&I.drawBuffers(e,r),I.viewport(re),I.scissor(ie),I.setScissorTest(N),i){let r=De.get(e.texture);P.framebufferTexture2D(P.FRAMEBUFFER,P.COLOR_ATTACHMENT0,P.TEXTURE_CUBE_MAP_POSITIVE_X+t,r.__webglTexture,n)}else if(a){let r=t;for(let t=0;t1&&P.readBuffer(P.COLOR_ATTACHMENT0+s);let u=vt(o);if(u.__formatReadable===!1){Ro(`WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.`);return}if(u.__typeReadable===!1){Ro(`WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.`);return}t>=0&&t<=e.width-r&&n>=0&&n<=e.height-i&&P.readPixels(t,n,r,i,Ue.convert(c),Ue.convert(l),a)}finally{let e=j===null?null:De.get(j).__webglFramebuffer;I.bindFramebuffer(P.FRAMEBUFFER,e)}}},this.readRenderTargetPixelsAsync=async function(e,t,n,r,i,a,o,s=0){if(!(e&&e.isWebGLRenderTarget))throw Error(`THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.`);let c=De.get(e).__webglFramebuffer;if(e.isWebGLCubeRenderTarget&&o!==void 0&&(c=c[o]),c){if(t>=0&&t<=e.width-r&&n>=0&&n<=e.height-i){I.bindFramebuffer(P.FRAMEBUFFER,c);let o=e.textures[s],l=o.format,u=o.type;e.textures.length>1&&P.readBuffer(P.COLOR_ATTACHMENT0+s);let d=vt(o);if(d.__formatReadable===!1)throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.`);if(d.__typeReadable===!1)throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.`);let f=P.createBuffer();P.bindBuffer(P.PIXEL_PACK_BUFFER,f),P.bufferData(P.PIXEL_PACK_BUFFER,a.byteLength,P.STREAM_READ),P.readPixels(t,n,r,i,Ue.convert(l),Ue.convert(u),0),P.bindBuffer(P.PIXEL_PACK_BUFFER,null);let p=j===null?null:De.get(j).__webglFramebuffer;I.bindFramebuffer(P.FRAMEBUFFER,p);let m=P.fenceSync(P.SYNC_GPU_COMMANDS_COMPLETE,0);return P.flush(),await Bo(P,m,4),P.bindBuffer(P.PIXEL_PACK_BUFFER,f),P.getBufferSubData(P.PIXEL_PACK_BUFFER,0,a),P.bindBuffer(P.PIXEL_PACK_BUFFER,null),P.deleteBuffer(f),P.deleteSync(m),a}throw Error(`THREE.WebGLRenderer.readRenderTargetPixelsAsync: requested read bounds are out of range.`)}},this.copyFramebufferToTexture=function(e,t=null,n=0){let r=2**-n,i=Math.floor(e.image.width*r),a=Math.floor(e.image.height*r),o=t===null?0:t.x,s=t===null?0:t.y;Oe.setTexture2D(e,0),P.copyTexSubImage2D(P.TEXTURE_2D,n,0,0,o,s,i,a),I.unbindTexture()},this.copyTextureToTexture=function(e,t,n=null,r=null,i=0,a=0){let o,s,c,l,u,d,f,p,m,h=e.isCompressedTexture?e.mipmaps[a]:e.image;if(n!==null)o=n.max.x-n.min.x,s=n.max.y-n.min.y,c=n.isBox3?n.max.z-n.min.z:1,l=n.min.x,u=n.min.y,d=n.isBox3?n.min.z:0;else{let t=2**-i;o=Math.floor(h.width*t),s=Math.floor(h.height*t),c=e.isDataArrayTexture?h.depth:e.isData3DTexture?Math.floor(h.depth*t):1,l=0,u=0,d=0}r===null?(f=0,p=0,m=0):(f=r.x,p=r.y,m=r.z);let g=Ue.convert(t.format),_=Ue.convert(t.type),v;t.isData3DTexture?(Oe.setTexture3D(t,0),v=P.TEXTURE_3D):t.isDataArrayTexture||t.isCompressedArrayTexture?(Oe.setTexture2DArray(t,0),v=P.TEXTURE_2D_ARRAY):(Oe.setTexture2D(t,0),v=P.TEXTURE_2D),I.activeTexture(P.TEXTURE0),I.pixelStorei(P.UNPACK_FLIP_Y_WEBGL,t.flipY),I.pixelStorei(P.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.premultiplyAlpha),I.pixelStorei(P.UNPACK_ALIGNMENT,t.unpackAlignment);let y=I.getParameter(P.UNPACK_ROW_LENGTH),b=I.getParameter(P.UNPACK_IMAGE_HEIGHT),x=I.getParameter(P.UNPACK_SKIP_PIXELS),S=I.getParameter(P.UNPACK_SKIP_ROWS),C=I.getParameter(P.UNPACK_SKIP_IMAGES);I.pixelStorei(P.UNPACK_ROW_LENGTH,h.width),I.pixelStorei(P.UNPACK_IMAGE_HEIGHT,h.height),I.pixelStorei(P.UNPACK_SKIP_PIXELS,l),I.pixelStorei(P.UNPACK_SKIP_ROWS,u),I.pixelStorei(P.UNPACK_SKIP_IMAGES,d);let w=e.isDataArrayTexture||e.isData3DTexture,T=t.isDataArrayTexture||t.isData3DTexture;if(e.isDepthTexture){let n=De.get(e),r=De.get(t),h=De.get(n.__renderTarget),g=De.get(r.__renderTarget);I.bindFramebuffer(P.READ_FRAMEBUFFER,h.__webglFramebuffer),I.bindFramebuffer(P.DRAW_FRAMEBUFFER,g.__webglFramebuffer);for(let n=0;n{let r=new e.array.constructor(e.count*e.itemSize);l[n][t]=new e.constructor(r,e.itemSize,e.normalized)}))}let p=t*.5,m=10**Math.log10(1/t),h=p*m;for(let t=0;tNumber.isInteger(e)?e.toFixed(1):String(e);function l_(e,t,n,r){let i=Math.atan2(t-n_.y,n-n_.z);return r*e-n_.x-.45*Math.sin(i*5+r)-.25*Math.sin(i*11+1.3)}function u_(e,t,n,r){let i=Math.atan2(t-r_.y,n-r_.z),a=r*e-r_.x+r_.lean*(t-r_.y)-.4*Math.sin(i*4+r)-.25*Math.sin(i*9+2.1);return Math.min(a,Math.max(t-r_.armpit,a-3))}function d_(e,t,n){let r=Math.atan2(n-i_.z,e);return t-i_.y-.7*Math.sin(r*5)-.4*Math.sin(r*12+.9)}function f_(e,t,n){let r=t-a_.y,i=Math.atan2(r,e);return a_.radius+.5*Math.sin(i*5+.4)+.3*Math.sin(i*11)-Math.sqrt(e*e+r*r)}function p_(e,t,n){let r=o_.top+.25*Math.sin(e*2.3)-t,i=t-o_.under,a=n-o_.back+o_.curve*e*e;return Math.min(r,Math.min(i,a))}var m_=` +`,r_={x:31,y:102.8,z:-5.2},i_={x:15,y:103.5,z:-5.5,lean:.25,armpit:97.5},a_={y:81.5,z:-1},o_={y:99.5,radius:4.6},s_={top:114.9,under:111.2,back:.8,curve:.12},c_={y:125.2,z:-3},l_=e=>Number.isInteger(e)?e.toFixed(1):String(e);function u_(e,t,n,r){let i=Math.atan2(t-r_.y,n-r_.z);return r*e-r_.x-.45*Math.sin(i*5+r)-.25*Math.sin(i*11+1.3)}function d_(e,t,n,r){let i=Math.atan2(t-i_.y,n-i_.z),a=r*e-i_.x+i_.lean*(t-i_.y)-.4*Math.sin(i*4+r)-.25*Math.sin(i*9+2.1);return Math.min(a,Math.max(t-i_.armpit,a-3))}function f_(e,t,n){let r=Math.atan2(n-a_.z,e);return t-a_.y-.7*Math.sin(r*5)-.4*Math.sin(r*12+.9)}function p_(e,t,n){let r=t-o_.y,i=Math.atan2(r,e);return o_.radius+.5*Math.sin(i*5+.4)+.3*Math.sin(i*11)-Math.sqrt(e*e+r*r)}function m_(e,t,n){let r=s_.top+.25*Math.sin(e*2.3)-t,i=t-s_.under,a=n-s_.back+s_.curve*e*e;return Math.min(r,Math.min(i,a))}var h_=` float injuryElbowCut(vec3 p, float side) { - float around = atan(p.y - ${c_(n_.y)}, p.z - ${c_(n_.z)}); - return side * p.x - ${c_(n_.x)} - 0.45 * sin(around * 5.0 + side) - 0.25 * sin(around * 11.0 + 1.3); + float around = atan(p.y - ${l_(r_.y)}, p.z - ${l_(r_.z)}); + return side * p.x - ${l_(r_.x)} - 0.45 * sin(around * 5.0 + side) - 0.25 * sin(around * 11.0 + 1.3); } float injuryShoulderCut(vec3 p, float side) { - float around = atan(p.y - ${c_(r_.y)}, p.z - ${c_(r_.z)}); - float across = side * p.x - ${c_(r_.x)} + ${c_(r_.lean)} * (p.y - ${c_(r_.y)}) - 0.4 * sin(around * 4.0 + side) - 0.25 * sin(around * 9.0 + 2.1); - return min(across, max(p.y - ${c_(r_.armpit)}, across - 3.0)); + float around = atan(p.y - ${l_(i_.y)}, p.z - ${l_(i_.z)}); + float across = side * p.x - ${l_(i_.x)} + ${l_(i_.lean)} * (p.y - ${l_(i_.y)}) - 0.4 * sin(around * 4.0 + side) - 0.25 * sin(around * 9.0 + 2.1); + return min(across, max(p.y - ${l_(i_.armpit)}, across - 3.0)); } float injuryWaistCut(vec3 p) { - float around = atan(p.z - ${c_(i_.z)}, p.x); - return p.y - ${c_(i_.y)} - 0.7 * sin(around * 5.0) - 0.4 * sin(around * 12.0 + 0.9); + float around = atan(p.z - ${l_(a_.z)}, p.x); + return p.y - ${l_(a_.y)} - 0.7 * sin(around * 5.0) - 0.4 * sin(around * 12.0 + 0.9); } float injuryChestHoleCut(vec3 p) { - float dy = p.y - ${c_(a_.y)}; + float dy = p.y - ${l_(o_.y)}; float around = atan(dy, p.x); - return ${c_(a_.radius)} + 0.5 * sin(around * 5.0 + 0.4) + 0.3 * sin(around * 11.0) - sqrt(p.x * p.x + dy * dy); + return ${l_(o_.radius)} + 0.5 * sin(around * 5.0 + 0.4) + 0.3 * sin(around * 11.0) - sqrt(p.x * p.x + dy * dy); } -`,h_=` +`,g_=` float injuryJawCut(vec3 p) { - float top = ${c_(o_.top)} + 0.25 * sin(p.x * 2.3) - p.y; - float under = p.y - ${c_(o_.under)}; - float front = p.z - ${c_(o_.back)} + ${c_(o_.curve)} * p.x * p.x; + float top = ${l_(s_.top)} + 0.25 * sin(p.x * 2.3) - p.y; + float under = p.y - ${l_(s_.under)}; + float front = p.z - ${l_(s_.back)} + ${l_(s_.curve)} * p.x * p.x; return min(top, min(under, front)); } float injurySkullCut(vec3 p) { - float around = atan(p.z - ${c_(s_.z)}, p.x); - return p.y - ${c_(s_.y)} - 0.55 * sin(around * 7.0) - 0.3 * sin(around * 15.0 + 1.0); + float around = atan(p.z - ${l_(c_.z)}, p.x); + return p.y - ${l_(c_.y)} - 0.55 * sin(around * 7.0) - 0.3 * sin(around * 15.0 + 1.0); } -`,g_=[`nose`,`leftEar`,`rightEar`,`leftFace`,`rightFace`],__=[`leftShoulder`,`rightShoulder`,`leftElbow`,`rightElbow`,`leftRibs`,`rightRibs`,`liver`,`belly`,`leftKnee`,`rightKnee`],v_=[`jaw`,`skull`],y_=[`leftArm`,`rightArm`,`waist`,`chestHole`],b_=__.length,x_=y_.length,S_=[6.3,117.6,-3],C_=[[11.3,97.9,2],[10.6,95.6,2.3],[10.1,93.3,1.9]],w_=[31.2,105.9,-3.4],T_=[12.3,34.4,-5],E_=[0,86,6.5],D_=e=>` -uniform float uInjuryGone[${x_}]; -${e?m_:h_} +`,__=[`nose`,`leftEar`,`rightEar`,`leftFace`,`rightFace`],v_=[`leftShoulder`,`rightShoulder`,`leftElbow`,`rightElbow`,`leftRibs`,`rightRibs`,`liver`,`belly`,`leftKnee`,`rightKnee`],y_=[`jaw`,`skull`],b_=[`leftArm`,`rightArm`,`waist`,`chestHole`],x_=v_.length,S_=b_.length,C_=[6.3,117.6,-3],w_=[[11.3,97.9,2],[10.6,95.6,2.3],[10.1,93.3,1.9]],T_=[31.2,105.9,-3.4],E_=[12.3,34.4,-5],D_=[0,86,6.5],O_=e=>` +uniform float uInjuryGone[${S_}]; +${e?h_:g_} float injuryGone(vec3 p) { float gone = -1000.0; ${e?` @@ -4281,14 +4281,14 @@ ${e?` if (uInjuryGone[1] > 0.5) gone = max(gone, injurySkullCut(p));`} return gone; } -`,O_=` +`,k_=` float injuryBellyGape(vec3 p) { float along = p.x / 9.4; float reach = 2.1 * pow(max(0.0, 1.0 - along * along), 0.6) * (1.0 + 0.18 * sin(p.x * 2.9) + 0.1 * sin(p.x * 6.7 + 1.0)); - float line = ${c_(E_[1])} - 0.014 * p.x * p.x + 0.3 * sin(p.x * 1.1 + 0.5); + float line = ${l_(D_[1])} - 0.014 * p.x * p.x + 0.3 * sin(p.x * 1.1 + 0.5); return p.z < 0.0 || reach <= 0.0 ? 9.0 : abs(p.y - line) / reach; } -`,k_=[0,119,-3.5,0],A_=[0,0,-2,1],j_=[[2.65,120.65,3.6],[-2.75,120.75,3.4]],M_=`HANDS_INJURY_WOUNDS`,N_=`HANDS_INJURY_OPEN`,P_=e=>` +`,A_=[0,119,-3.5,0],j_=[0,0,-2,1],M_=[[2.65,120.65,3.6],[-2.75,120.75,3.4]],N_=`HANDS_INJURY_WOUNDS`,P_=`HANDS_INJURY_OPEN`,F_=e=>` uniform vec4 uInjurySite[12]; uniform float uInjurySwell[12]; uniform vec4 uInjuryCore; @@ -4301,13 +4301,13 @@ uniform vec3 uInjuryImpactPush; uniform vec4 uInjuryNose; uniform mat3 uInjuryBindToPart; varying vec3 vInjuryPos; -#ifdef ${M_} -uniform float uInjuryWound[${b_}]; +#ifdef ${N_} +uniform float uInjuryWound[${x_}]; uniform float uInjuryExplicit; -${e?O_:``} +${e?k_:``} #endif -`,F_=` -#ifdef ${M_} +`,I_=` +#ifdef ${N_} { float crushed = uInjuryWound[0] * uInjuryExplicit; if (crushed > 0.0) { @@ -4321,13 +4321,13 @@ ${e?O_:``} float torn = (s == 0 ? uInjuryWound[1] : uInjuryWound[2]) * uInjuryExplicit; if (torn <= 0.0) continue; float side = s == 0 ? 1.0 : -1.0; - float w = 1.0 - smoothstep(0.8, 2.8, distance(injuryBind, vec3(side * ${c_(S_[0])}, ${c_(S_[1])}, ${c_(S_[2])}))); + float w = 1.0 - smoothstep(0.8, 2.8, distance(injuryBind, vec3(side * ${l_(C_[0])}, ${l_(C_[1])}, ${l_(C_[2])}))); injuryMoved.x -= side * torn * w * max(0.0, side * injuryBind.x - 5.3) * 0.9; } } #endif -`,I_=` -#ifdef ${M_} +`,L_=` +#ifdef ${N_} { float side = injuryBind.x < 0.0 ? -1.0 : 1.0; float slipped = (side > 0.0 ? uInjuryWound[0] : uInjuryWound[1]) * uInjuryExplicit; @@ -4339,7 +4339,7 @@ ${e?O_:``} } float caved = (side > 0.0 ? uInjuryWound[4] : uInjuryWound[5]) * uInjuryExplicit; if (caved > 0.0) { - float w = 1.0 - smoothstep(0.0, 8.0, distance(injuryBind, vec3(side * ${c_(C_[1][0])}, ${c_(C_[1][1])}, ${c_(C_[1][2])}))); + float w = 1.0 - smoothstep(0.0, 8.0, distance(injuryBind, vec3(side * ${l_(w_[1][0])}, ${l_(w_[1][1])}, ${l_(w_[1][2])}))); injuryMoved -= normalize(injuryBind - vec3(0.0, injuryBind.y, -2.0) + vec3(0.0, 0.0, 0.001)) * caved * 2.4 * w * w; } float gutted = uInjuryWound[7] * uInjuryExplicit; @@ -4352,7 +4352,7 @@ ${e?O_:``} } } #endif -`,L_=(e,t)=>` +`,R_=(e,t)=>` { vec3 injuryBind = ${e?`bindPosition`:`transformed`}; vInjuryPos = injuryBind; @@ -4387,10 +4387,10 @@ ${e?O_:``} injuryMoved.x += uInjuryJaw * 1.7 * jawMask; injuryMoved.y -= uInjuryJaw * 0.9 * jawMask; injuryMoved.z -= uInjuryJaw * 0.4 * jawMask; - ${t?I_:F_} + ${t?L_:I_} ${e?`transformed += uInjuryBindToPart * (injuryMoved - injuryBind);`:`transformed = injuryMoved;`} } -`,R_=e=>` +`,z_=e=>` uniform vec4 uInjurySite[12]; uniform vec4 uInjuryCut[12]; uniform float uInjuryBruise[12]; @@ -4405,11 +4405,11 @@ uniform float uInjuryXrayShown; uniform float uInjuryRun; varying vec3 vInjuryPos; float injuryWet = 0.0; -${t_} +${n_} float injuryHash(float n) { return fract(sin(n) * 43758.5453123); } -#ifdef ${M_} -uniform float uInjuryWound[${b_}]; +#ifdef ${N_} +uniform float uInjuryWound[${x_}]; uniform float uInjuryExplicit; uniform float uInjuryPallor; uniform vec4 uInjuryMark[6]; @@ -4430,13 +4430,13 @@ vec3 injuryBruised(vec3 skin, float depth) { vec3 tone = mix(vec3(0.4, 0.08, 0.2), vec3(0.05, 0.012, 0.05), clamp(depth, 0.0, 1.0)); return mix(skin * tone / vec3(0.6, 0.32, 0.19), tone, 0.35); } -${e?O_:``} +${e?k_:``} #endif -#ifdef ${N_} -${D_(e)} +#ifdef ${P_} +${O_(e)} #endif -`,z_=e=>` -#ifdef ${M_} +`,B_=e=>` +#ifdef ${N_} if (uInjuryPallor > 0.0) { float luma = dot(diffuseColor.rgb, vec3(0.3, 0.55, 0.15)); vec3 drained = (vec3(luma) * 1.3 + 0.04) * vec3(0.97, 1.0, 1.05); @@ -4452,8 +4452,8 @@ ${e?` diffuseColor.rgb = mix(diffuseColor.rgb, vec3(0.3, 0.33, 0.47) * (0.5 + luma), lips * uInjuryPallor * 0.85);`} } #endif -`,B_=` -#ifdef ${M_} +`,V_=` +#ifdef ${N_} { float graphic = uInjuryExplicit; float mottle = 0.7 + 0.3 * injuryNoise(injuryPos.xy * 2.1 + injuryPos.z); @@ -4481,7 +4481,7 @@ ${e?` float ear = s == 0 ? uInjuryWound[1] : uInjuryWound[2]; if (ear > 0.0 && sx > 3.0) { // Where the ear was: a ragged raw wound round the dark hole of the ear, running down the neck. - vec3 q = injuryPos - vec3(side * ${c_(S_[0])}, ${c_(S_[1])}, ${c_(S_[2])}); + vec3 q = injuryPos - vec3(side * ${l_(C_[0])}, ${l_(C_[1])}, ${l_(C_[2])}); float around = atan(q.y, q.z); float reach = length(vec2(q.z / 1.4, q.y / 2.1)) / (1.0 + 0.16 * sin(around * 5.0 + side) + 0.08 * sin(around * 11.0)); float bruise = (1.0 - smoothstep(0.8, 1.9, reach)) * mottle; @@ -4574,8 +4574,8 @@ ${e?` } } #endif -`,V_=` -#ifdef ${M_} +`,H_=` +#ifdef ${N_} { float graphic = uInjuryExplicit; float side = injuryPos.x < 0.0 ? -1.0 : 1.0; @@ -4593,12 +4593,12 @@ ${e?` float elbow = side > 0.0 ? uInjuryWound[2] : uInjuryWound[3]; if (elbow > 0.0 && sx > 22.0) { // Black round the joint, the hole the bone came out of, and blood down the forearm to the glove. - vec3 q = vec3(sx, injuryPos.y, injuryPos.z) - vec3(${c_(n_.x)}, ${c_(n_.y)}, ${c_(n_.z)}); + vec3 q = vec3(sx, injuryPos.y, injuryPos.z) - vec3(${l_(r_.x)}, ${l_(r_.y)}, ${l_(r_.z)}); float bruise = (1.0 - smoothstep(2.0, 7.0, abs(q.x))) * mottle; diffuseColor.rgb = mix(diffuseColor.rgb, injuryBruised(diffuseColor.rgb, 0.4 + 0.5 * (1.0 - smoothstep(0.0, 3.0, abs(q.x)))), bruise * elbow * 0.9); float around = atan(q.y, q.z); float sleeve = smoothstep(-1.5, 1.0, q.x) * (0.5 + 0.5 * sin(around * 7.0 + 1.5 * sin(q.x * 0.9))) * (1.0 - 0.5 * smoothstep(7.0, 13.0, q.x)); - vec3 exit = vec3(sx, injuryPos.y, injuryPos.z) - vec3(${c_(w_[0])}, ${c_(w_[1])}, ${c_(w_[2])}); + vec3 exit = vec3(sx, injuryPos.y, injuryPos.z) - vec3(${l_(T_[0])}, ${l_(T_[1])}, ${l_(T_[2])}); float hole = (1.0 - smoothstep(0.75, 1.1, length(exit / vec3(2.1, 1.3, 1.3)) * (1.0 + 0.15 * sin(atan(exit.z, exit.x) * 6.0)))) * graphic; float blood = max(sleeve * mix(0.3, 0.9, graphic), hole) * elbow; diffuseColor.rgb = mix(diffuseColor.rgb, mix(running, mix(raw, gore, smoothstep(0.3, 0.8, hole)), hole), blood); @@ -4607,13 +4607,13 @@ ${e?` float ribs = side > 0.0 ? uInjuryWound[4] : uInjuryWound[5]; if (ribs > 0.0 && injuryPos.y > 80.0 && sx < 16.0) { // Black with bruising, banded where the ribs lie under it, and a raw hole where each broken end comes through. - vec3 q = vec3(sx, injuryPos.y, injuryPos.z) - vec3(${c_(C_[1][0])}, ${c_(C_[1][1])}, ${c_(C_[1][2])}); + vec3 q = vec3(sx, injuryPos.y, injuryPos.z) - vec3(${l_(w_[1][0])}, ${l_(w_[1][1])}, ${l_(w_[1][2])}); float spread = length(vec3(q.x, q.y * 0.85, q.z * 0.6)); float bands = 0.72 + 0.28 * sin((injuryPos.y + 0.3 * sx - 0.25 * injuryPos.z) * 2.8); float bruise = (1.0 - smoothstep(2.5, 9.5, spread)) * mottle * bands; diffuseColor.rgb = mix(diffuseColor.rgb, injuryBruised(diffuseColor.rgb, 0.7 + 0.3 * (1.0 - smoothstep(0.0, 5.0, spread))), bruise * ribs * 0.95); - for (int k = 0; k < ${C_.length}; k++) { - vec3 end = k == 0 ? vec3(${C_[0].map(c_).join(`, `)}) : k == 1 ? vec3(${C_[1].map(c_).join(`, `)}) : vec3(${C_[2].map(c_).join(`, `)}); + for (int k = 0; k < ${w_.length}; k++) { + vec3 end = k == 0 ? vec3(${w_[0].map(l_).join(`, `)}) : k == 1 ? vec3(${w_[1].map(l_).join(`, `)}) : vec3(${w_[2].map(l_).join(`, `)}); vec3 at = vec3(sx, injuryPos.y, injuryPos.z) - end; float hole = (1.0 - smoothstep(0.6, 1.0, length(at / vec3(1.7, 1.0, 1.7)))) * graphic; float drop = -at.y; @@ -4638,7 +4638,7 @@ ${e?` if (gutted > 0.0 && injuryPos.y > 74.0 && injuryPos.y < 92.0) { // Torn open from side to side: a dark wet cavity between lips of raw muscle and yellow fat, and everything below it red. float gape = injuryBellyGape(injuryPos) * (1.0 + 0.45 * (injuryNoise(injuryPos.xy * 2.4 + 9.0) - 0.5)); - float line = ${c_(E_[1])} - 0.014 * injuryPos.x * injuryPos.x; + float line = ${l_(D_[1])} - 0.014 * injuryPos.x * injuryPos.x; float below = line - injuryPos.y; float sheet = smoothstep(-0.5, 1.5, below) * (1.0 - smoothstep(8.6, 9.9, abs(injuryPos.x) + 0.6 * sin(injuryPos.y * 1.7))) * step(0.0, injuryPos.z) * (0.82 + 0.18 * sin(injuryPos.x * 4.3 + sin(injuryPos.y * 0.9))); float bruise = (1.0 - smoothstep(1.2, 3.2, gape)) * mottle; @@ -4652,9 +4652,9 @@ ${e?` injuryWet = max(injuryWet, max(open, sheet * gutted * graphic)); } float knee = side > 0.0 ? uInjuryWound[8] : uInjuryWound[9]; - if (knee > 0.0 && injuryPos.y < ${c_(60)}) { + if (knee > 0.0 && injuryPos.y < ${l_(60)}) { // Swollen black below the trunks, a raw hole in the side of the knee where the bone shows, and blood down the shin to the boot. - vec3 q = vec3(sx, injuryPos.y, injuryPos.z) - vec3(${T_.map(c_).join(`, `)}); + vec3 q = vec3(sx, injuryPos.y, injuryPos.z) - vec3(${E_.map(l_).join(`, `)}); float bruise = (1.0 - smoothstep(27.0, 34.0, 62.0 - injuryPos.y)) * smoothstep(25.0, 31.0, injuryPos.y) * mottle; diffuseColor.rgb = mix(diffuseColor.rgb, injuryBruised(diffuseColor.rgb, 0.4 + 0.5 * smoothstep(30.0, 36.0, injuryPos.y)), bruise * knee * 0.9); float hole = (1.0 - smoothstep(0.7, 1.05, length(q / vec3(1.8, 2.0, 1.8)) * (1.0 + 0.15 * sin(atan(q.y, q.z) * 5.0)))) * graphic; @@ -4667,7 +4667,7 @@ ${e?` } } #endif -`,H_=` +`,U_=` if (uInjuryGone[1] > 0.5) { // A skull broken open: the bone of its rim under the torn scalp, and cracks running down from it. float rim = -injurySkullCut(injuryPos); @@ -4684,7 +4684,7 @@ ${e?` diffuseColor.rgb = mix(diffuseColor.rgb, vec3(0.28, 0.008, 0.012), sheet * 0.93); injuryWet = max(injuryWet, sheet); } -`,U_=` +`,W_=` { // A stump runs with blood back from its cut, and a hole through the chest down the front and the back. float side = injuryPos.x < 0.0 ? -1.0 : 1.0; @@ -4694,18 +4694,18 @@ ${e?` if (uInjuryGone[2] > 0.5) soaked = max(soaked, (1.0 - smoothstep(0.5, 3.5, -injuryWaistCut(injuryPos))) * 0.9); if (uInjuryGone[3] > 0.5) { float hole = -injuryChestHoleCut(injuryPos); - float below = ${c_(a_.y)} - injuryPos.y; + float below = ${l_(o_.y)} - injuryPos.y; float sheet = smoothstep(0.0, 3.0, below) * (1.0 - smoothstep(3.5, 6.5, abs(injuryPos.x) - below * 0.08)) * (0.65 + 0.35 * sin(injuryPos.x * 4.1 + sin(injuryPos.y * 0.8))) * (1.0 - 0.5 * smoothstep(8.0, 20.0, below)); soaked = max(soaked, max(sheet * step(-30.0, -abs(injuryPos.x)), (1.0 - smoothstep(0.5, 3.0, hole)) * 0.85)); } diffuseColor.rgb = mix(diffuseColor.rgb, vec3(0.28, 0.008, 0.012), soaked * 0.93); injuryWet = max(injuryWet, soaked); } -`,W_=e=>` +`,G_=e=>` { vec3 injuryPos = vInjuryPos; -${z_(e)} -#ifdef ${N_} +${B_(e)} +#ifdef ${P_} { float below = injuryCutLine(injuryPos) - injuryPos.y; if (below < 0.0) discard; @@ -4715,7 +4715,7 @@ ${z_(e)} diffuseColor.rgb = mix(diffuseColor.rgb, vec3(0.2, 0.008, 0.012), torn * 0.94); injuryWet = max(injuryWet, torn); } -${e?U_:H_} +${e?W_:U_} #endif vec3 hematomaFresh = vec3(0.42, 0.09, 0.11); vec3 hematomaDeep = vec3(0.2, 0.04, 0.07); @@ -4775,7 +4775,7 @@ ${e?U_:H_} diffuseColor.rgb = mix(diffuseColor.rgb, mix(puffed, vec3(0.03, 0.006, 0.01), crease * 0.92), closed); injuryWet = max(injuryWet, closed * 0.35 * (1.0 - crease)); } -${e?V_:B_} +${e?H_:V_} // An empty socket: a raw red rim round a dark hollow where the eye was. for (int e = 0; e < 2; e++) { float gone = e == 0 ? uInjuryEyeOut.x : uInjuryEyeOut.y; @@ -4829,7 +4829,7 @@ ${e?V_:B_} } injuryWet = max(injuryWet, w); } -#ifdef ${M_} +#ifdef ${N_} // Where punches landed: a red welt the shape of the glove, a bruise that darkens under it, and, hit again and again, a split that runs. for (int m = 0; m < 6; m++) { vec4 mark = uInjuryMark[m]; @@ -4878,7 +4878,7 @@ ${e?V_:B_} injuryWet = max(injuryWet, spat * 0.8); } #endif -#ifdef ${N_} +#ifdef ${P_} // Where a cut or a burst opens the head, its inside shows as raw flesh rather than nothing. if (!gl_FrontFacing) { diffuseColor.rgb = vec3(0.2, 0.012, 0.022); @@ -4893,14 +4893,14 @@ ${e?V_:B_} injuryWet = max(injuryWet, seen * 0.6); } } -`,G_=` +`,K_=` roughnessFactor = mix(roughnessFactor, 0.18, injuryWet); -`,K_=2.4,q_=.85,J_=.02,Y_=1.6,X_=class{material;sites;uniforms={uInjurySite:{value:[]},uInjuryCut:{value:[]},uInjurySwell:{value:new Float32Array(12)},uInjuryBruise:{value:new Float32Array(12)},uInjuryBlood:{value:new Float32Array(12)},uInjuryJaw:{value:0},uInjuryJawLevel:{value:114.5},uInjuryImpact:{value:new Ns(0,-1e3,0,1)},uInjuryImpactPush:{value:new B},uInjuryNose:{value:new Ns(0,-1e3,0,0)},uInjuryWetness:{value:1},uInjuryRaw:{value:1},uInjurySever:{value:e_},uInjurySeverShape:{value:new z(Zg,1)},uInjuryCore:{value:new Ns(...k_)},uInjuryWash:{value:0},uInjuryLid:{value:[new Ns(0,-1e3,0,0),new Ns(0,-1e3,0,0)]},uInjuryEyeOut:{value:new z},uInjuryBindToPart:{value:new _s},uInjuryWound:{value:new Float32Array(b_)},uInjuryGone:{value:new Float32Array(x_)},uInjuryExplicit:{value:1},uInjuryPallor:{value:0},uInjuryXray:{value:new Ns(0,0,0,0)},uInjuryXrayShown:{value:0},uInjuryRun:{value:1},uInjuryMark:{value:Array.from({length:6},()=>new Ns(0,0,0,0))},uInjurySpatter:{value:0}};index=new Map;wounds;cuts;body;shadow=null;shadowSideSet=!1;constructor(e,t,n={core:k_}){if(this.material=e,this.sites=t,t.length!==12)throw Error(`injury shading requires 12 sites`);let r=n.wash===!0;this.body=r,this.wounds=r?__:g_,this.cuts=r?y_:v_,this.uniforms.uInjuryCore.value.set(...n.core),this.uniforms.uInjuryWash.value=+(n.wash===!0);for(let[e,t]of(n.lids??[]).slice(0,2).entries())this.uniforms.uInjuryLid.value[e].set(t[0],t[1],t[2],0);for(let[e,n]of t.entries())this.index.set(n.name,e),this.uniforms.uInjurySite.value.push(new Ns(n.position[0],n.position[1],n.position[2],n.radius)),this.uniforms.uInjuryCut.value.push(new Ns(n.cutHalfLength,0,0,0));if(e===null)return;let i=this.uniforms,a=n.baked===!0;e.onBeforeCompile=e=>{Object.assign(e.uniforms,i),e.vertexShader=e.vertexShader.replace(`#include `,`#include \n${P_(r)}`).replace(`#include `,`#include \n${L_(a,r)}`),e.fragmentShader=e.fragmentShader.replace(`#include `,`#include \n${R_(r)}`).replace(`#include `,`#include \n${W_(r)}`).replace(`#include `,`#include \n${G_}`)},e.customProgramCacheKey=()=>`hands-injury-12${r?`-body`:``}${a?`-baked`:``}`,e.needsUpdate=!0}slot(e){let t=this.index.get(e);if(t===void 0)throw Error(`unknown injury site ${e}`);return t}set(e,t){let n=this.slot(e);t.bruise!==void 0&&(this.uniforms.uInjuryBruise.value[n]=R.clamp(t.bruise,0,1.2)),t.swell!==void 0&&(this.uniforms.uInjurySwell.value[n]=R.clamp(t.swell,0,2.2)),t.cut!==void 0&&(this.uniforms.uInjuryCut.value[n].y=R.clamp(t.cut,0,1)),t.blood!==void 0&&(this.uniforms.uInjuryBlood.value[n]=R.clamp(t.blood,0,1.4))}impact(e,t,n){let r=this.uniforms.uInjurySite.value[this.slot(e)];this.uniforms.uInjuryImpact.value.set(r.x,r.y,r.z,n),this.uniforms.uInjuryImpactPush.value.set(t[0],t[1],t[2])}setNoseShift(e){let t=this.index.get(`nose`);if(t===void 0)return;let n=this.uniforms.uInjurySite.value[t];this.uniforms.uInjuryNose.value.set(n.x,n.y,n.z,R.clamp(e,-1.4,1.4)||0)}update(e){let t=this.uniforms.uInjuryMark.value;for(let n=0;n0&&r.w0&&(s.x-e)**2+(s.y-t)**2+(s.z-n)**20,t.w=0;e&&this.refresh()}setSpatter(e){let t=R.clamp(e,0,1)||0;t!==this.uniforms.uInjurySpatter.value&&(this.uniforms.uInjurySpatter.value=t,this.refresh())}get spatter(){return this.uniforms.uInjurySpatter.value}setRun(e){this.uniforms.uInjuryRun.value=R.clamp(e,.3,2)||1}setXray(e,t,n,r,i){this.uniforms.uInjuryXray.value.set(e,t,n,r),this.uniforms.uInjuryXrayShown.value=i}get impactDepth(){return this.uniforms.uInjuryImpactPush.value.length()}setSevered(e){this.uniforms.uInjurySever.value=e?Xg:e_,this.uniforms.uInjurySeverShape.value.set(Zg,1),this.refresh()}setBurst(e){this.uniforms.uInjurySever.value=e?Qg:e_,this.uniforms.uInjurySeverShape.value.set(e?0:Zg,e?$g:1),this.refresh()}get open(){return this.material?.defines?.[N_]!==void 0}get wounded(){return this.material?.defines?.[M_]!==void 0}setOpen(e){this.switchTo(e||this.painted,e)}get painted(){let e=this.uniforms.uInjuryWound.value;for(let t=0;t0)return!0;for(let e of this.uniforms.uInjuryMark.value)if(e.w>0)return!0;return this.uniforms.uInjuryPallor.value>0||this.uniforms.uInjurySpatter.value>0}refresh(){let e=this.uniforms.uInjurySever.value!==e_,t=this.uniforms.uInjuryGone.value;for(let n=0;n0&&(e=!0);this.switchTo(e||this.painted,e)}switchTo(e,t){let n=this.material;n===null||e===this.wounded&&t===this.open||(t!==this.open&&this.shadow!==null&&(this.shadow.defines=t?{[N_]:``}:{},this.shadow.needsUpdate=!0),Q_(n,e,t),t&&n.shadowSide===null?(n.shadowSide=1,this.shadowSideSet=!0):!t&&this.shadowSideSet&&(n.shadowSide=null,this.shadowSideSet=!1))}variant(e){let t=this.material;if(t===null)return null;let n=t.clone();return n.defines={...t.defines},n.onBeforeCompile=t.onBeforeCompile,n.customProgramCacheKey=t.customProgramCacheKey,Q_(n,!0,e),n.shadowSide=t.shadowSide??(e?1:null),n}shadowMaterial(){return this.shadow=this.depthMaterial(this.open),this.shadow}shadowVariant(){return this.depthMaterial(!0)}depthMaterial(e){let t=new Wd,n={uInjurySever:this.uniforms.uInjurySever,uInjurySeverShape:this.uniforms.uInjurySeverShape,uInjuryGone:this.uniforms.uInjuryGone},r=this.body;return t.onBeforeCompile=e=>{Object.assign(e.uniforms,n),e.vertexShader=e.vertexShader.replace(`#include `,`#include +`,q_=2.4,J_=.85,Y_=.02,X_=1.6,Z_=class{material;sites;uniforms={uInjurySite:{value:[]},uInjuryCut:{value:[]},uInjurySwell:{value:new Float32Array(12)},uInjuryBruise:{value:new Float32Array(12)},uInjuryBlood:{value:new Float32Array(12)},uInjuryJaw:{value:0},uInjuryJawLevel:{value:114.5},uInjuryImpact:{value:new Ps(0,-1e3,0,1)},uInjuryImpactPush:{value:new B},uInjuryNose:{value:new Ps(0,-1e3,0,0)},uInjuryWetness:{value:1},uInjuryRaw:{value:1},uInjurySever:{value:t_},uInjurySeverShape:{value:new z(Qg,1)},uInjuryCore:{value:new Ps(...A_)},uInjuryWash:{value:0},uInjuryLid:{value:[new Ps(0,-1e3,0,0),new Ps(0,-1e3,0,0)]},uInjuryEyeOut:{value:new z},uInjuryBindToPart:{value:new vs},uInjuryWound:{value:new Float32Array(x_)},uInjuryGone:{value:new Float32Array(S_)},uInjuryExplicit:{value:1},uInjuryPallor:{value:0},uInjuryXray:{value:new Ps(0,0,0,0)},uInjuryXrayShown:{value:0},uInjuryRun:{value:1},uInjuryMark:{value:Array.from({length:6},()=>new Ps(0,0,0,0))},uInjurySpatter:{value:0}};index=new Map;wounds;cuts;body;shadow=null;shadowSideSet=!1;constructor(e,t,n={core:A_}){if(this.material=e,this.sites=t,t.length!==12)throw Error(`injury shading requires 12 sites`);let r=n.wash===!0;this.body=r,this.wounds=r?v_:__,this.cuts=r?b_:y_,this.uniforms.uInjuryCore.value.set(...n.core),this.uniforms.uInjuryWash.value=+(n.wash===!0);for(let[e,t]of(n.lids??[]).slice(0,2).entries())this.uniforms.uInjuryLid.value[e].set(t[0],t[1],t[2],0);for(let[e,n]of t.entries())this.index.set(n.name,e),this.uniforms.uInjurySite.value.push(new Ps(n.position[0],n.position[1],n.position[2],n.radius)),this.uniforms.uInjuryCut.value.push(new Ps(n.cutHalfLength,0,0,0));if(e===null)return;let i=this.uniforms,a=n.baked===!0;e.onBeforeCompile=e=>{Object.assign(e.uniforms,i),e.vertexShader=e.vertexShader.replace(`#include `,`#include \n${F_(r)}`).replace(`#include `,`#include \n${R_(a,r)}`),e.fragmentShader=e.fragmentShader.replace(`#include `,`#include \n${z_(r)}`).replace(`#include `,`#include \n${G_(r)}`).replace(`#include `,`#include \n${K_}`)},e.customProgramCacheKey=()=>`hands-injury-12${r?`-body`:``}${a?`-baked`:``}`,e.needsUpdate=!0}slot(e){let t=this.index.get(e);if(t===void 0)throw Error(`unknown injury site ${e}`);return t}set(e,t){let n=this.slot(e);t.bruise!==void 0&&(this.uniforms.uInjuryBruise.value[n]=R.clamp(t.bruise,0,1.2)),t.swell!==void 0&&(this.uniforms.uInjurySwell.value[n]=R.clamp(t.swell,0,2.2)),t.cut!==void 0&&(this.uniforms.uInjuryCut.value[n].y=R.clamp(t.cut,0,1)),t.blood!==void 0&&(this.uniforms.uInjuryBlood.value[n]=R.clamp(t.blood,0,1.4))}impact(e,t,n){let r=this.uniforms.uInjurySite.value[this.slot(e)];this.uniforms.uInjuryImpact.value.set(r.x,r.y,r.z,n),this.uniforms.uInjuryImpactPush.value.set(t[0],t[1],t[2])}setNoseShift(e){let t=this.index.get(`nose`);if(t===void 0)return;let n=this.uniforms.uInjurySite.value[t];this.uniforms.uInjuryNose.value.set(n.x,n.y,n.z,R.clamp(e,-1.4,1.4)||0)}update(e){let t=this.uniforms.uInjuryMark.value;for(let n=0;n0&&r.w0&&(s.x-e)**2+(s.y-t)**2+(s.z-n)**20,t.w=0;e&&this.refresh()}setSpatter(e){let t=R.clamp(e,0,1)||0;t!==this.uniforms.uInjurySpatter.value&&(this.uniforms.uInjurySpatter.value=t,this.refresh())}get spatter(){return this.uniforms.uInjurySpatter.value}setRun(e){this.uniforms.uInjuryRun.value=R.clamp(e,.3,2)||1}setXray(e,t,n,r,i){this.uniforms.uInjuryXray.value.set(e,t,n,r),this.uniforms.uInjuryXrayShown.value=i}get impactDepth(){return this.uniforms.uInjuryImpactPush.value.length()}setSevered(e){this.uniforms.uInjurySever.value=e?Zg:t_,this.uniforms.uInjurySeverShape.value.set(Qg,1),this.refresh()}setBurst(e){this.uniforms.uInjurySever.value=e?$g:t_,this.uniforms.uInjurySeverShape.value.set(e?0:Qg,e?e_:1),this.refresh()}get open(){return this.material?.defines?.[P_]!==void 0}get wounded(){return this.material?.defines?.[N_]!==void 0}setOpen(e){this.switchTo(e||this.painted,e)}get painted(){let e=this.uniforms.uInjuryWound.value;for(let t=0;t0)return!0;for(let e of this.uniforms.uInjuryMark.value)if(e.w>0)return!0;return this.uniforms.uInjuryPallor.value>0||this.uniforms.uInjurySpatter.value>0}refresh(){let e=this.uniforms.uInjurySever.value!==t_,t=this.uniforms.uInjuryGone.value;for(let n=0;n0&&(e=!0);this.switchTo(e||this.painted,e)}switchTo(e,t){let n=this.material;n===null||e===this.wounded&&t===this.open||(t!==this.open&&this.shadow!==null&&(this.shadow.defines=t?{[P_]:``}:{},this.shadow.needsUpdate=!0),$_(n,e,t),t&&n.shadowSide===null?(n.shadowSide=1,this.shadowSideSet=!0):!t&&this.shadowSideSet&&(n.shadowSide=null,this.shadowSideSet=!1))}variant(e){let t=this.material;if(t===null)return null;let n=t.clone();return n.defines={...t.defines},n.onBeforeCompile=t.onBeforeCompile,n.customProgramCacheKey=t.customProgramCacheKey,$_(n,!0,e),n.shadowSide=t.shadowSide??(e?1:null),n}shadowMaterial(){return this.shadow=this.depthMaterial(this.open),this.shadow}shadowVariant(){return this.depthMaterial(!0)}depthMaterial(e){let t=new Gd,n={uInjurySever:this.uniforms.uInjurySever,uInjurySeverShape:this.uniforms.uInjurySeverShape,uInjuryGone:this.uniforms.uInjuryGone},r=this.body;return t.onBeforeCompile=e=>{Object.assign(e.uniforms,n),e.vertexShader=e.vertexShader.replace(`#include `,`#include varying vec3 vInjuryPos;`).replace(`#include `,`#include -vInjuryPos = transformed;`),e.fragmentShader=e.fragmentShader.replace(`#include `,`#include \nvarying vec3 vInjuryPos;\n${t_}\n#ifdef ${N_}\n${D_(r)}\n#endif`).replace(`#include `,`#include \n#ifdef ${N_}\nif (vInjuryPos.y > injuryCutLine(vInjuryPos)) discard;\nif (injuryGone(vInjuryPos) > 0.0) discard;\n#endif`)},t.customProgramCacheKey=()=>`hands-injury-shadow${r?`-body`:``}`,e&&(t.defines={[N_]:``}),t}setWound(e,t){this.uniforms.uInjuryWound.value[Z_(this.wounds,e)]=R.clamp(t,0,1)||0,this.refresh()}wound(e){return this.uniforms.uInjuryWound.value[Z_(this.wounds,e)]}setGone(e,t){this.uniforms.uInjuryGone.value[Z_(this.cuts,e)]=R.clamp(t,0,2)||0,this.refresh()}gone(e){return this.uniforms.uInjuryGone.value[Z_(this.cuts,e)]}setExplicit(e){this.uniforms.uInjuryExplicit.value=+!!e}get explicit(){return this.uniforms.uInjuryExplicit.value>0}setPallor(e){let t=R.clamp(e,0,1)||0;t!==this.uniforms.uInjuryPallor.value&&(this.uniforms.uInjuryPallor.value=t,this.refresh())}get pallor(){return this.uniforms.uInjuryPallor.value}raise(e,t,n=0,r=0){let i=this.slot(e),a=this.uniforms;a.uInjuryBruise.value[i]=Math.max(a.uInjuryBruise.value[i],Math.min(t,1.2)),a.uInjuryBlood.value[i]=Math.max(a.uInjuryBlood.value[i],Math.min(n,1.4));let o=a.uInjuryCut.value[i];o.y=Math.max(o.y,Math.min(r,1))}copyFrom(e){let t=e.uniforms,n=this.uniforms;n.uInjuryBruise.value.set(t.uInjuryBruise.value),n.uInjurySwell.value.set(t.uInjurySwell.value),n.uInjuryBlood.value.set(t.uInjuryBlood.value);for(let[e,r]of n.uInjuryCut.value.entries())r.y=t.uInjuryCut.value[e]?.y??0;for(let[e,r]of n.uInjuryLid.value.entries())r.w=t.uInjuryLid.value[e]?.w??0;n.uInjuryEyeOut.value.copy(t.uInjuryEyeOut.value),n.uInjuryNose.value.copy(t.uInjuryNose.value),n.uInjuryJaw.value=t.uInjuryJaw.value,n.uInjuryWetness.value=t.uInjuryWetness.value,n.uInjuryRaw.value=t.uInjuryRaw.value,n.uInjuryImpactPush.value.set(0,0,0),n.uInjuryWound.value.set(t.uInjuryWound.value),n.uInjuryGone.value.set(t.uInjuryGone.value),n.uInjuryExplicit.value=t.uInjuryExplicit.value,n.uInjuryPallor.value=t.uInjuryPallor.value;for(let[e,r]of n.uInjuryMark.value.entries())r.copy(t.uInjuryMark.value[e]);n.uInjurySpatter.value=t.uInjurySpatter.value,n.uInjuryRun.value=t.uInjuryRun.value,this.refresh()}setBindToPart(e){this.uniforms.uInjuryBindToPart.value.copy(e)}setRawCuts(e){this.uniforms.uInjuryRaw.value=R.clamp(e,0,1)||0}setJaw(e){this.uniforms.uInjuryJaw.value=R.clamp(e,0,1)}setEyesShut(e,t){let[n,r]=this.uniforms.uInjuryLid.value;n.y>-500&&(n.w=R.clamp(e,0,1)||0),r.y>-500&&(r.w=R.clamp(t,0,1)||0)}setEyeOut(e){let t=this.uniforms.uInjuryLid.value,n=(e===`left`||e===`both`)&&t[0].y>-500,r=(e===`right`||e===`both`)&&t[1].y>-500;this.uniforms.uInjuryEyeOut.value.set(+!!n,+!!r),this.index.has(`leftEye`)&&this.set(`leftEye`,{blood:n?1.3:0}),this.index.has(`rightEye`)&&this.set(`rightEye`,{blood:r?1.3:0})}get eyeOut(){let e=this.uniforms.uInjuryEyeOut.value;return e.x>0&&e.y>0?`both`:e.x>0?`left`:e.y>0?`right`:null}get eyesShut(){return[this.uniforms.uInjuryLid.value[0].w,this.uniforms.uInjuryLid.value[1].w]}clear(){this.uniforms.uInjuryBruise.value.fill(0),this.uniforms.uInjurySwell.value.fill(0),this.uniforms.uInjuryBlood.value.fill(0);for(let e of this.uniforms.uInjuryCut.value)e.y=0;this.uniforms.uInjuryJaw.value=0;for(let e of this.uniforms.uInjuryLid.value)e.w=0;this.uniforms.uInjuryEyeOut.value.set(0,0),this.uniforms.uInjuryNose.value.w=0,this.uniforms.uInjuryImpactPush.value.set(0,0,0),this.uniforms.uInjuryWound.value.fill(0),this.uniforms.uInjuryGone.value.fill(0),this.uniforms.uInjuryPallor.value=0;for(let e of this.uniforms.uInjuryMark.value)e.set(0,0,0,0);this.uniforms.uInjurySpatter.value=0,this.uniforms.uInjuryRun.value=1,this.refresh()}level(e){let t=this.slot(e);return{bruise:this.uniforms.uInjuryBruise.value[t],swell:this.uniforms.uInjurySwell.value[t],cut:this.uniforms.uInjuryCut.value[t].y,blood:this.uniforms.uInjuryBlood.value[t]}}};function Z_(e,t){let n=e.indexOf(t);if(n<0)throw Error(`unknown injury ${t}`);return n}function Q_(e,t,n){let r=e.defines??={};delete r[M_],delete r[N_],t&&(r[M_]=``),n&&(r[N_]=``),e.side=n?2:0,e.needsUpdate=!0}var $_=e=>e===`off`?0:e===`reduced`?.2:1.5,ev=330;function tv(e,t){return R.clamp((e-ev)/(p-ev)+Math.max(0,t-200)/1600,0,1)}var nv=1.8,rv=150,iv=240;function av(e,t,n){let r=$_(n),i=n===`full`?1:.6;e.setRawCuts(n===`full`?1:n===`reduced`?.6:0);let a=e=>Math.min(1.2,e/380+t.swelling/900),o=e=>Math.min(2,(e/600+t.swelling/900)*i);e.set(`leftEye`,{bruise:a(t.left_eye),swell:o(t.left_eye)}),e.set(`rightEye`,{bruise:a(t.right_eye),swell:o(t.right_eye)}),e.setEyesShut(tv(t.left_eye,t.swelling),tv(t.right_eye,t.swelling));let s=e=>Math.min(1,e/120),c=e=>Math.min(1.4,(e/120+t.bleeding/240)*r);e.set(`leftBrow`,{bruise:Math.min(1,t.left_eye/700),swell:Math.min(1.2,t.left_eye/900)*i,cut:s(t.left_cut),blood:c(t.left_cut)}),e.set(`rightBrow`,{bruise:Math.min(1,t.right_eye/700),swell:Math.min(1.2,t.right_eye/900)*i,cut:s(t.right_cut),blood:c(t.right_cut)});let l=Math.min(1,t.head/950+t.swelling/1100),u=Math.min(nv,t.swelling/520)*i,d=e=>Math.min(1,Math.max(0,e-rv)/350),f=e=>Math.min(1.2,Math.max(0,e-rv+30)/240)*r;e.set(`leftCheek`,{bruise:l*.9,swell:u,cut:d(t.left_cut),blood:f(t.left_cut)}),e.set(`rightCheek`,{bruise:l*.85,swell:u,cut:d(t.right_cut),blood:f(t.right_cut)}),e.set(`nose`,{bruise:Math.min(1,t.head/800),swell:Math.min(.8,t.head/1400)*i,blood:Math.min(1.4,(Math.max(0,t.head-60)/300+t.bleeding/220)*r)}),e.set(`mouth`,{bruise:Math.min(.8,t.head/1100),cut:Math.min(1,Math.max(0,t.head-250)/500),blood:Math.min(1.3,(Math.max(0,t.head-120)/360+t.bleeding/260)*r)}),e.set(`chin`,{bruise:Math.min(.7,t.head/1300)});let p=t.left_eye>=t.right_eye?-1:1;e.setNoseShift(p*Math.min(1.1,Math.max(0,t.head-520)/450)*i),e.set(`leftJaw`,{bruise:Math.min(.9,t.left_eye/900+t.head/1600)}),e.set(`rightJaw`,{bruise:Math.min(.9,t.right_eye/900+t.head/1600)}),e.set(`forehead`,{bruise:Math.min(.6,t.swelling/1200),cut:Math.min(1,Math.max(0,t.swelling-iv)/300),blood:Math.min(1.2,Math.max(0,t.swelling-iv)/220)*r})}function ov(e,t){return Math.min(1,(Math.max(0,e.bleeding-10)/220+Math.max(0,e.left_cut+e.right_cut-60)/650)*$_(t))}function sv(e,t,n){let r=$_(n),i=Math.min(1.1,t.body/620);e.set(`leftRibs`,{bruise:i,swell:Math.min(1,t.body/1300)}),e.set(`rightRibs`,{bruise:i*.9,swell:Math.min(1,t.body/1400)}),e.set(`solarPlexus`,{bruise:Math.min(1,t.body/800)}),e.set(`leftPec`,{bruise:Math.min(.8,t.body/1100)}),e.set(`rightPec`,{bruise:Math.min(.8,t.body/1150)});let a=Math.min(1.4,(t.bleeding/200+(t.left_cut+t.right_cut)/450)*r);e.set(`neckSmear`,{blood:a}),e.set(`leftShoulderSmear`,{blood:Math.min(1.2,t.left_cut/300)*r}),e.set(`rightShoulderSmear`,{blood:Math.min(1.2,t.right_cut/300)*r})}var cv=3.05,lv=3.85,uv=4.05,dv=3.42,fv=dv*.72,pv=[.5,.88,1.26];function mv(e){let t=cv/Math.max(1,e.ring_half_width),n=cv/Math.max(1,e.ring_half_height);return{x:e=>e*t,z:e=>-e*n}}var hv={blue:1920728,red:12131356,neutral:15067115},gv=128,_v=4,vv=.12,yv=.82,bv={edge:4851467,core:[`rgba(40,3,6,0.9)`,`rgba(58,5,9,0.65)`,`rgba(70,7,11,0)`]},xv=6,Sv=.29,Cv=14,wv=e=>()=>(e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296);function Tv(e){let t=wv(e);return{lobes:Array.from({length:5+Math.floor(t()*4)},(e,n)=>{let r=t()*Math.PI*2,i=n===0?0:6+t()*12,a=n===0?16+t()*6:8+t()*9;return{x:64+Math.cos(r)*i,y:64+Math.sin(r)*i,rx:a,ry:a*(.55+t()*.45),turn:t()*Math.PI}}),fill:.55+t()*.2,rim:.95,satellites:6+Math.floor(t()*6)}}function Ev(e){let t=document.createElement(`canvas`);t.width=gv,t.height=gv;let n=t.getContext(`2d`);if(n!==null){let t=Tv(e),r=wv(e^1540483477);n.clearRect(0,0,gv,gv),n.fillStyle=`rgba(255,255,255,1)`,n.strokeStyle=`rgba(255,255,255,1)`,n.globalAlpha=t.rim,n.lineWidth=3.5;for(let e of t.lobes)n.beginPath(),n.ellipse(e.x,e.y,e.rx,e.ry,e.turn,0,Math.PI*2),n.stroke();let i=()=>{n.beginPath();for(let e of t.lobes){let t=Math.max(1,e.rx-1.5);n.moveTo(e.x+Math.cos(e.turn)*t,e.y+Math.sin(e.turn)*t),n.ellipse(e.x,e.y,t,Math.max(1,e.ry-1.5),e.turn,0,Math.PI*2)}n.fill()};n.globalCompositeOperation=`destination-out`,n.globalAlpha=1,i(),n.globalCompositeOperation=`source-over`,n.globalAlpha=t.fill,i();for(let e=0;e{let t=t=>Math.round((e>>t&255)*.8);return`rgb(${t(16)},${t(8)},${t(0)})`},Ov=class{scene;size;mesh;canvas;context;texture;source;uploader=null;region=new _p;regionAt=new z;material;geometry;stamps=[];tinted=new Map;pixelsPerMetre;dirty=!1;sinceUpload=0;uploadInterval=vv;painted=0;streakSeed=0;constructor(e,t=1024){this.scene=e,this.size=t,this.canvas=document.createElement(`canvas`),this.canvas.width=t,this.canvas.height=t,this.context=this.canvas.getContext(`2d`),this.context?.clearRect(0,0,t,t);for(let e=0;e<_v;e+=1)this.stamps.push(Ev(975110353+e*977));this.pixelsPerMetre=t/(cv*2),this.texture=new Bu(this.canvas),this.texture.colorSpace=xo,this.texture.anisotropy=4,this.texture.flipY=!1,this.source=new Ms(this.canvas),this.region.makeEmpty(),this.material=new Hd({map:this.texture,transparent:!0,depthWrite:!1,roughness:yv,metalness:0,polygonOffset:!0,polygonOffsetFactor:-1,polygonOffsetUnits:-1}),this.geometry=new Ed(cv*2,cv*2);let n=this.geometry.getAttribute(`uv`);for(let e=0;e3.05||Math.abs(t)>3.05)return;let c=this.context;if(this.painted+=1,this.dirty=!0,this.mesh.visible=!0,c===null)return;let l=this.tintedStamp(o,s),u=this.pixel(e,t),d=Math.max(1,n*this.pixelsPerMetre),f=Math.max(1,r*this.pixelsPerMetre);this.grow(u.x,u.y,Math.hypot(d,f)/2),c.save(),c.globalAlpha=R.clamp(a,0,1),c.translate(u.x,u.y),c.rotate(Number.isFinite(i)?i:0),c.drawImage(l,-d/2,-f/2,d,f),c.restore()}tintedStamp(e,t){let n=this.tinted.get(e);return n===void 0&&(n=this.stamps.map(t=>{let n=document.createElement(`canvas`);n.width=gv,n.height=gv;let r=n.getContext(`2d`);return r!==null&&(r.drawImage(t,0,0),r.globalCompositeOperation=`source-in`,r.fillStyle=Dv(e),r.fillRect(0,0,gv,gv)),n}),this.tinted.set(e,n)),n[Math.abs(Math.trunc(t))%_v]}pool(e,t,n,r,i,a=bv){this.stain(e,t,n*2.3,n*2,i*1.7,r*.8,a.edge,i);let o=this.context;if(o===null||Math.abs(e)>3.05||Math.abs(t)>3.05)return;let s=this.pixel(e,t),c=Math.max(1,n*1.15*this.pixelsPerMetre);this.grow(s.x,s.y,c);let l=o.createRadialGradient(s.x,s.y,0,s.x,s.y,c);l.addColorStop(0,a.core[0]),l.addColorStop(.65,a.core[1]),l.addColorStop(1,a.core[2]),o.save(),o.globalAlpha=R.clamp(r,0,1),o.fillStyle=l,o.beginPath(),o.ellipse(s.x,s.y,c,c*.86,i*.9,0,Math.PI*2),o.fill(),o.restore()}streakRandom(){return this.streakSeed=Math.imul(this.streakSeed^this.streakSeed>>>15,1|this.streakSeed),this.streakSeed^=this.streakSeed+Math.imul(this.streakSeed^this.streakSeed>>>7,61|this.streakSeed),((this.streakSeed^this.streakSeed>>>14)>>>0)/4294967296}smear(e,t,n,r,i,a,o){if(!Number.isFinite(e+t+n+r+i)||Math.abs(e)>3.05||Math.abs(t)>3.05)return;let s=this.context;if(this.painted+=1,this.dirty=!0,this.mesh.visible=!0,s===null)return;let c=(e+cv)*this.pixelsPerMetre,l=(t+cv)*this.pixelsPerMetre,u=(R.clamp(n,-cv,cv)+cv)*this.pixelsPerMetre,d=(R.clamp(r,-cv,cv)+cv)*this.pixelsPerMetre,f=Math.max(1,i*this.pixelsPerMetre);this.grow(c,l,f),this.grow(u,d,f);let p=Math.hypot(u-c,d-l),m=p>1e-6?(l-d)/p:1,h=p>1e-6?(u-c)/p:0;this.streakSeed=1374496523^Math.imul(this.painted,40503),s.save(),s.strokeStyle=Dv(o),s.lineCap=`round`;for(let e=0;e3.05||Math.abs(t)>3.05)return;let o=this.context;if(this.painted+=1,this.dirty=!0,this.mesh.visible=!0,o===null)return;let s=(e+cv)*this.pixelsPerMetre,c=(t+cv)*this.pixelsPerMetre,l=Math.max(2,Sv*this.pixelsPerMetre),u=l*.36;this.grow(s,c,l*.6);let d=(r?-1:1)*u*.06,f=l/Cv;o.save(),o.globalAlpha=R.clamp(i,0,1),o.fillStyle=Dv(a),o.translate(s,c),o.rotate(-n);for(let e=0;et.min.x&&t.max.y>t.min.y?this.uploader.copyTextureToTexture(this.source,this.texture,t,this.regionAt.copy(t.min)):this.texture.needsUpdate=!0,t.makeEmpty(),this.dirty=!1,this.sinceUpload=0}clear(){this.context?.clearRect(0,0,this.size,this.size),this.painted=0,this.dirty=!1,this.region.makeEmpty(),this.texture.needsUpdate=!0,this.mesh.visible=!1}dispose(){this.scene.remove(this.mesh),this.texture.dispose(),this.source.dispose(),this.material.dispose(),this.geometry.dispose()}};function kv(){let e=new Cd(1,2);e.deleteAttribute(`normal`),e.deleteAttribute(`uv`);let t=Kg(e,1e-4);e.dispose();let n=t.getAttribute(`position`),r=new B;for(let e=0;e=120?5:t>=90?3:t>=60?2:+(t>=40):e===`hit`?t>=130?4:t>=100?3:t>=75?2:+(t>=50):0:0}function Mv(e,t){return Math.min(800,Math.round(Math.max(0,e)*4.5+Math.max(0,t)*2.8))}var Nv=1.1,Pv=.6,Fv=.35,Iv=1.2;function Lv(){let e=new Od(1,8,6),t=e.getAttribute(`position`);for(let e=0;e1+(e-1)*28+t%28;for(let e=0;e<28;e+=1)a.push(0,o(1,e+1),o(1,e));for(let e=1;e<6;e+=1)for(let t=0;t<28;t+=1)a.push(o(e,t),o(e,t+1),o(e+1,t)),a.push(o(e,t+1),o(e+1,t+1),o(e+1,t));let s=new hl;return s.setAttribute(`position`,new rl(r,3)),s.setAttribute(`uv`,new rl(i,2)),s.setIndex(a),s.computeVertexNormals(),s}function Wv(e,t){let n=e.getAttribute(`position`),r=e.getIndex();if(r===null)return[];let i=new Map,a=new Int32Array(n.count),o=new Uint8Array(n.count),s=new B;for(let e=0;eo[e]===1);for(let e=0;e<3;e+=1){let r=a[t[e]],o=a[t[(e+1)%3]],s=r=2&&l.push(Math.floor(e/n.count),e%n.count);return l}var Gv=.5,Kv=new B,qv=new B,Jv=new B,Yv=new B,Xv=new B;function Zv(e,t,n){Xv.copy(e).addScaledVector(t,-e.dot(t)).multiplyScalar(Gv/n).add(t).normalize()}function Qv(e,t,n,r,i=.01,a){let o=Math.floor(t.length/6),s=e.getAttribute(`position`),c=e.getAttribute(`normal`),l=e.getAttribute(`uv`);(s===void 0||c===void 0||l===void 0||s.count!==o*3)&&(s=new el(new Float32Array(o*9),3).setUsage(Do),c=new el(new Float32Array(o*9),3).setUsage(Do),l=new el(new Float32Array(o*6),2).setUsage(Do),e.setAttribute(`position`,s),e.setAttribute(`normal`,c),e.setAttribute(`uv`,l)),Kv.set(1,0,0),Math.abs(r.x)>.9&&Kv.set(0,0,1),a!==void 0&&a.lengthSq()>1e-8&&Math.abs(a.dot(r))<.95*a.length()&&Kv.copy(a),qv.crossVectors(r,Kv).normalize(),Kv.crossVectors(qv,r).normalize();let u=1e-6;for(let e=0;e=0)continue;let i=`${Math.round(s.x*1e5)},${Math.round(s.y*1e5)},${Math.round(s.z*1e5)}`,l=a.get(i)??n;a.set(i,l),o[n]=l}c.multiplyScalar(1/Math.max(1,r.count));for(let e=0;e{let t=e;for(;u.has(t);)t=u.get(t);return t},f=[];for(let[e,t]of l){if(t!==1)continue;f.push(e);let n=d(Math.floor(e/i)),r=d(e%i);n!==r&&u.set(n,r)}let p=new Map;for(let e of f){let t=d(e%i),n=p.get(t)??[];n.push(e),p.set(t,n)}let m=[],h=[],g=[],_=new hl,v=new hl,y=new B,b=new B,x=[];for(let e of p.values()){if(e.length<3)continue;let r=new Float32Array(e.length*6);y.set(0,0,0);let a=0;for(let[o,c]of e.entries()){let e=Math.floor(c/i),l=c%i;y.add(s.fromBufferAttribute(t,e)),s.toArray(r,o*6),y.add(s.fromBufferAttribute(t,l)),s.toArray(r,o*6+3),a+=n===void 0?r[o*6+1]+r[o*6+4]:n.getY(e)+n.getY(l)}y.multiplyScalar(1/(e.length*2));let o=0;for(let e=0;e(n=Math.imul(n^n>>>15,1|n),n^=n+Math.imul(n^n>>>7,61|n),((n^n>>>14)>>>0)/4294967296);for(let e=0;e<46;e+=1){let e=r()*Math.PI*2,n=14+r()*42;t.fillStyle=r()<.5?`rgba(150,28,30,0.55)`:`rgba(40,4,8,0.5)`,t.beginPath(),t.ellipse(64+Math.cos(e)*n,64+Math.sin(e)*n,3+r()*6,2+r()*3,e,0,Math.PI*2),t.fill()}let i=(e,n,r,i)=>{t.fillStyle=i,t.beginPath(),t.arc(e,n,r,0,Math.PI*2),t.fill()};i(64,38,10,`#8f7c64`),i(61,36,4.5,`#6a2a25`),i(66,78,7,`#7a3c34`),i(66,78,4.5,`#150203`),i(41,64,3,`#1d0204`),i(90,69,2.6,`#1d0204`);for(let e=0;e<70;e+=1){let e=r()*Math.PI*2,t=r()*60;i(64+Math.cos(e)*t,64+Math.sin(e)*t,.6+r()*1.6,r()<.4?`rgba(190,60,50,0.5)`:`rgba(20,2,4,0.55)`)}ny(t)}let n=new Bu(e);return n.colorSpace=xo,n}function ny(e){e.lineWidth=7,e.strokeStyle=`rgba(214,178,92,0.85)`,e.beginPath(),e.arc(64,64,55,0,Math.PI*2),e.stroke(),e.lineWidth=4,e.strokeStyle=`#b8775c`,e.beginPath(),e.arc(64,64,61,0,Math.PI*2),e.stroke()}function ry(){let e=document.createElement(`canvas`);e.width=128,e.height=128;let t=e.getContext(`2d`);if(t!==null){let e=t.createRadialGradient(64,64,6,64,64,64);e.addColorStop(0,`#741014`),e.addColorStop(.7,`#52090d`),e.addColorStop(1,`#300407`),t.fillStyle=e,t.fillRect(0,0,128,128);let n=(e,n,r,i)=>{t.fillStyle=i,t.beginPath(),t.arc(e,n,r,0,Math.PI*2),t.fill()};for(let[e,t,r]of[[46,60,13],[84,66,10]])n(e,t,r,`#e4d8c0`),n(e,t,r*.62,`#a4483c`),n(e-r*.2,t-r*.2,r*.25,`rgba(220,110,90,0.6)`);for(let e=0;e<9;e+=1){let t=Math.PI*(.15+e/8*.7);n(64+Math.cos(t)*34,64+Math.sin(t)*34,3.2,`#d9c9b3`)}n(30,84,3.4,`#1a0204`),n(98,46,3,`#1a0204`),n(66,30,2.6,`#1a0204`),ny(t)}let n=new Bu(e);return n.colorSpace=xo,n}function iy(){let e=document.createElement(`canvas`);e.width=128,e.height=128;let t=e.getContext(`2d`);if(t!==null){let e=t.createRadialGradient(64,64,6,64,64,64);e.addColorStop(0,`#7c1218`),e.addColorStop(.7,`#560a0f`),e.addColorStop(1,`#2e0407`),t.fillStyle=e,t.fillRect(0,0,128,128);let n=2135587861,r=()=>(n=Math.imul(n^n>>>15,1|n),n^=n+Math.imul(n^n>>>7,61|n),((n^n>>>14)>>>0)/4294967296);for(let e=0;e<11;e+=1){let n=e/11*Math.PI*2+r()*.3,i=26+r()*12;t.fillStyle=r()<.5?`#8e1c20`:`#6c1016`,t.strokeStyle=`rgba(30,3,6,0.8)`,t.lineWidth=1.6,t.beginPath(),t.ellipse(64+Math.cos(n)*i,64+Math.sin(n)*i,13+r()*5,8+r()*4,n+Math.PI/2,0,Math.PI*2),t.fill(),t.stroke()}let i=(e,n,r,i)=>{t.fillStyle=i,t.beginPath(),t.arc(e,n,r,0,Math.PI*2),t.fill()};i(58,60,15,`#e8dcc4`),i(58,60,9.5,`#a8463a`),i(55,57,3.5,`rgba(226,116,96,0.65)`),i(82,70,4.2,`#170204`),i(80,80,3,`#3a0a2a`),i(88,62,2.2,`#e0d2a0`);for(let e=0;e<70;e+=1){let e=r()*Math.PI*2,t=18+r()*40;i(64+Math.cos(e)*t,64+Math.sin(e)*t,.6+r()*1.5,r()<.4?`rgba(200,70,56,0.5)`:`rgba(20,2,4,0.55)`)}ny(t)}let n=new Bu(e);return n.colorSpace=xo,n}function ay(){let e=document.createElement(`canvas`);e.width=128,e.height=128;let t=e.getContext(`2d`);if(t!==null){t.fillStyle=`#3c060a`,t.fillRect(0,0,128,128);let e=461845907,n=()=>(e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296),r=(e,n,r,i,a,o,s)=>{t.fillStyle=o,t.beginPath(),t.ellipse(e,n,r,i,a,0,Math.PI*2),t.fill(),s!==void 0&&(t.strokeStyle=s,t.lineWidth=1.4,t.stroke())};t.strokeStyle=`#7c151a`,t.lineWidth=12,t.beginPath(),t.arc(64,64,46,0,Math.PI*2),t.stroke(),r(40,30,13,9,.5,`#8a1c20`,`rgba(30,3,6,0.8)`),r(88,30,13,9,-.5,`#8a1c20`,`rgba(30,3,6,0.8)`),r(40,58,15,10,.4,`#4a1410`);for(let e=0;e<15;e+=1){let e=n()*Math.PI*2,t=n()*25,i=68+Math.cos(e)*t,a=74+Math.sin(e)*t*.8,o=6+n()*4;r(i,a,o,o*(.7+n()*.3),n()*Math.PI,`#d49a98`,`rgba(110,30,36,0.9)`),r(i,a,o*.45,o*.35,n()*Math.PI,n()<.4?`#6a5a14`:`#3a070b`)}r(64,26,11,9,0,`#e6dac2`),r(64,26,7,5.5,0,`#b4594a`),r(64,13,4,3.4,0,`#efe6c8`,`#8a7c60`),r(57,40,4.4,4.4,0,`#160204`,`#a03038`),r(71,40,4,3.4,0,`#2a0a2c`);for(let e=0;e<80;e+=1){let e=n()*Math.PI*2,t=n()*54;r(64+Math.cos(e)*t,64+Math.sin(e)*t,.6+n()*1.6,.6+n()*1.6,0,n()<.3?`rgba(226,190,90,0.6)`:n()<.5?`rgba(190,50,44,0.5)`:`rgba(20,2,4,0.55)`)}ny(t)}let n=new Bu(e);return n.colorSpace=xo,n}function oy(){let e=.09,t=[];for(let e=0;e<9;e+=1){let n=e/9*Math.PI*2,r=.32*(.62+.38*Math.abs(Math.sin(e*2.3+.4)));t.push([Math.cos(n)*r,Math.sin(n)*r])}let n=(t,n,r)=>{let i=Math.hypot(t,n,1);return[t/i*r,n/i*r,1/i*r-e]},r=[],i=[],a=[.07,.035,.025],o=[.78,.7,.58],s=[.42,.05,.05],c=(e,t,n,a)=>{r.push(...e,...t,...n);for(let e=0;e<3;e+=1)i.push(...a)};for(let r=0;r<9;r+=1){let[i,l]=t[r],[u,d]=t[(r+1)%9];c(n(0,0,e),n(i,l,e),n(u,d,e),a),c(n(0,0,.08299999999999999),n(u,d,.08299999999999999),n(i,l,.08299999999999999),r%3==0?o:s),c(n(i,l,e),n(i,l,.08299999999999999),n(u,d,e),o),c(n(u,d,e),n(i,l,.08299999999999999),n(u,d,.08299999999999999),o)}let l=new hl;return l.setAttribute(`position`,new rl(r,3)),l.setAttribute(`color`,new rl(i,3)),l.computeVertexNormals(),l.computeBoundingSphere(),l}function sy(){let e=document.createElement(`canvas`);e.width=128,e.height=128;let t=e.getContext(`2d`);if(t!==null){let e=t.createRadialGradient(64,60,6,64,64,66);e.addColorStop(0,`#7a1016`),e.addColorStop(.75,`#530a0e`),e.addColorStop(1,`#300408`),t.fillStyle=e,t.fillRect(0,0,128,128),t.fillStyle=`#8a2a2e`,t.beginPath(),t.ellipse(64,50,22,17,0,0,Math.PI*2),t.fill(),t.fillStyle=`rgba(220,120,120,0.35)`,t.beginPath(),t.ellipse(60,45,9,5,-.3,0,Math.PI*2),t.fill(),t.strokeStyle=`#a99c86`,t.lineWidth=5,t.beginPath(),t.ellipse(64,62,50,50,0,Math.PI*.08,Math.PI*.92),t.stroke();for(let e=0;e<12;e+=1){let n=Math.PI*(.14+e/11*.72);t.save(),t.translate(64+Math.cos(n)*42,62+Math.sin(n)*42),t.rotate(n+Math.PI/2),t.fillStyle=e%5==2?`#3a0508`:`#ece4cf`,t.fillRect(-3.5,-4.5,7,9),t.restore()}let n=625341585,r=()=>(n=Math.imul(n^n>>>15,1|n),n^=n+Math.imul(n^n>>>7,61|n),((n^n>>>14)>>>0)/4294967296);for(let e=0;e<60;e+=1)t.fillStyle=r()<.5?`rgba(150,20,24,0.6)`:`rgba(20,2,4,0.5)`,t.beginPath(),t.arc(r()*128,r()*128,.8+r()*2.2,0,Math.PI*2),t.fill();ny(t)}let n=new Bu(e);return n.colorSpace=xo,n}function cy(){let e=document.createElement(`canvas`);e.width=128,e.height=64;let t=e.getContext(`2d`);if(t!==null){let e=t.createLinearGradient(0,0,128,0);e.addColorStop(0,`#e9ddd4`),e.addColorStop(.42,`#e9ddd4`),e.addColorStop(.62,`#8a2a2c`),e.addColorStop(.85,`#4a070b`),e.addColorStop(1,`#e9ddd4`),t.fillStyle=e,t.fillRect(0,0,128,64),t.strokeStyle=`rgba(170,20,26,0.75)`,t.lineWidth=.8;for(let e=0;e<14;e+=1){let n=e/14*Math.PI*2;t.beginPath(),t.moveTo(32+Math.cos(n)*30,32+Math.sin(n)*26),t.quadraticCurveTo(32+Math.cos(n+.3)*20,32+Math.sin(n+.3)*18,32+Math.cos(n)*11,32+Math.sin(n)*11),t.stroke()}let n=t.createRadialGradient(32,32,2,32,32,9);n.addColorStop(0,`#6b4524`),n.addColorStop(.8,`#4a2d14`),n.addColorStop(1,`#1e1208`),t.fillStyle=n,t.beginPath(),t.arc(32,32,9,0,Math.PI*2),t.fill(),t.fillStyle=`#050302`,t.beginPath(),t.arc(32,32,4,0,Math.PI*2),t.fill(),t.fillStyle=`rgba(255,255,255,0.85)`,t.beginPath(),t.arc(29.5,29.5,1.4,0,Math.PI*2),t.fill()}let n=new Bu(e);return n.colorSpace=xo,n}function ly(e){let t=new Map,n=new Map,r=e.clone();return uy(e,r,function(e,r){t.set(r,e),n.set(e,r)}),r.traverse(function(e){if(!e.isSkinnedMesh)return;let r=e,i=t.get(e),a=i.skeleton.bones;r.skeleton=i.skeleton.clone(),r.bindMatrix.copy(i.bindMatrix),r.skeleton.bones=a.map(function(e){return n.get(e)}),r.bind(r.skeleton,r.bindMatrix)}),r}function uy(e,t,n){n(e,t);for(let r=0;r=2.0 are supported.`));return}let c=new cb(i,{path:t||this.resourcePath||``,crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});c.fileLoader.setRequestHeader(this.requestHeader);for(let e=0;e=0&&o[t]===void 0&&console.warn(`THREE.GLTFLoader: Unknown extension "`+t+`".`)}}c.setExtensions(a),c.setPlugins(o),c.parse(n,r)}parseAsync(e,t){let n=this;return new Promise(function(r,i){n.parse(e,t,r,i)})}};function fy(){let e={};return{get:function(t){return e[t]},add:function(t,n){e[t]=n},remove:function(t){delete e[t]},removeAll:function(){e={}}}}function py(e,t,n){let r=e.json.materials[t];return r.extensions&&r.extensions[n]?r.extensions[n]:null}var my={KHR_BINARY_GLTF:`KHR_binary_glTF`,KHR_DRACO_MESH_COMPRESSION:`KHR_draco_mesh_compression`,KHR_LIGHTS_PUNCTUAL:`KHR_lights_punctual`,KHR_MATERIALS_CLEARCOAT:`KHR_materials_clearcoat`,KHR_MATERIALS_DISPERSION:`KHR_materials_dispersion`,KHR_MATERIALS_IOR:`KHR_materials_ior`,KHR_MATERIALS_SHEEN:`KHR_materials_sheen`,KHR_MATERIALS_SPECULAR:`KHR_materials_specular`,KHR_MATERIALS_TRANSMISSION:`KHR_materials_transmission`,KHR_MATERIALS_IRIDESCENCE:`KHR_materials_iridescence`,KHR_MATERIALS_ANISOTROPY:`KHR_materials_anisotropy`,KHR_MATERIALS_UNLIT:`KHR_materials_unlit`,KHR_MATERIALS_VOLUME:`KHR_materials_volume`,KHR_TEXTURE_BASISU:`KHR_texture_basisu`,KHR_TEXTURE_TRANSFORM:`KHR_texture_transform`,KHR_MESH_QUANTIZATION:`KHR_mesh_quantization`,KHR_MATERIALS_EMISSIVE_STRENGTH:`KHR_materials_emissive_strength`,EXT_MATERIALS_BUMP:`EXT_materials_bump`,EXT_TEXTURE_WEBP:`EXT_texture_webp`,EXT_TEXTURE_AVIF:`EXT_texture_avif`,EXT_MESHOPT_COMPRESSION:`EXT_meshopt_compression`,KHR_MESHOPT_COMPRESSION:`KHR_meshopt_compression`,EXT_MESH_GPU_INSTANCING:`EXT_mesh_gpu_instancing`},hy=class{constructor(e){this.parser=e,this.name=my.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){let e=this.parser,t=this.parser.json.nodes||[];for(let n=0,r=t.length;n=0)throw Error(`THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures`);return null}return t.loadTextureImage(e,i.source,a)}},ky=class{constructor(e){this.parser=e,this.name=my.EXT_TEXTURE_WEBP}loadTexture(e){let t=this.name,n=this.parser,r=n.json,i=r.textures[e];if(!i.extensions||!i.extensions[t])return null;let a=i.extensions[t],o=r.images[a.source],s=n.textureLoader;if(o.uri){let e=n.options.manager.getHandler(o.uri);e!==null&&(s=e)}return n.loadTextureImage(e,a.source,s)}},Ay=class{constructor(e){this.parser=e,this.name=my.EXT_TEXTURE_AVIF}loadTexture(e){let t=this.name,n=this.parser,r=n.json,i=r.textures[e];if(!i.extensions||!i.extensions[t])return null;let a=i.extensions[t],o=r.images[a.source],s=n.textureLoader;if(o.uri){let e=n.options.manager.getHandler(o.uri);e!==null&&(s=e)}return n.loadTextureImage(e,a.source,s)}},jy=class{constructor(e,t){this.name=t,this.parser=e}loadBufferView(e){let t=this.parser.json,n=t.bufferViews[e];if(n.extensions&&n.extensions[this.name]){let e=n.extensions[this.name],r=this.parser.getDependency(`buffer`,e.buffer),i=this.parser.options.meshoptDecoder;if(!i||!i.supported){if(t.extensionsRequired&&t.extensionsRequired.indexOf(this.name)>=0)throw Error(`THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files`);return null}return r.then(function(t){let n=e.byteOffset||0,r=e.byteLength||0,a=e.count,o=e.byteStride,s=new Uint8Array(t,n,r);return i.decodeGltfBufferAsync?i.decodeGltfBufferAsync(a,o,s,e.mode,e.filter).then(function(e){return e.buffer}):i.ready.then(function(){let t=new ArrayBuffer(a*o);return i.decodeGltfBuffer(new Uint8Array(t),a,o,s,e.mode,e.filter),t})})}return null}},My=class{constructor(e){this.name=my.EXT_MESH_GPU_INSTANCING,this.parser=e}createNodeMesh(e){let t=this.parser.json,n=t.nodes[e];if(!n.extensions||!n.extensions[this.name]||n.mesh===void 0)return null;let r=t.meshes[n.mesh];for(let e of r.primitives)if(e.mode!==Uy.TRIANGLES&&e.mode!==Uy.TRIANGLE_STRIP&&e.mode!==Uy.TRIANGLE_FAN&&e.mode!==void 0)return null;let i=n.extensions[this.name].attributes,a=[],o={};for(let e in i)a.push(this.parser.getDependency(`accessor`,i[e]).then(t=>(o[e]=t,o[e])));return a.length<1?null:(a.push(this.parser.createNodeMesh(e)),Promise.all(a).then(e=>{let t=e.pop(),n=t.isGroup?t.children:[t],r=e[0].count,i=[];for(let e of n){let t=new Rs,n=new B,a=new ms,s=new B(1,1,1),c=new pu(e.geometry,e.material,r);for(let e=0;e0||e.search(/^data\:image\/jpeg/)===0?`image/jpeg`:e.search(/\.webp($|\?)/i)>0||e.search(/^data\:image\/webp/)===0?`image/webp`:e.search(/\.ktx2($|\?)/i)>0||e.search(/^data\:image\/ktx2/)===0?`image/ktx2`:`image/png`}var sb=new Rs,cb=class{constructor(e={},t={}){this.json=e,this.extensions={},this.plugins={},this.options=t,this.cache=new fy,this.associations=new Map,this.primitiveCache={},this.nodeCache={},this.meshCache={refs:{},uses:{}},this.cameraCache={refs:{},uses:{}},this.lightCache={refs:{},uses:{}},this.sourceCache={},this.textureCache={},this.nodeNamesUsed={};let n=!1,r=-1,i=!1,a=-1;if(typeof navigator<`u`&&navigator.userAgent!==void 0){let e=navigator.userAgent;n=/^((?!chrome|android).)*safari/i.test(e)===!0;let t=e.match(/Version\/(\d+)/);r=n&&t?parseInt(t[1],10):-1,i=e.indexOf(`Firefox`)>-1,a=i?e.match(/Firefox\/([0-9]+)\./)[1]:-1}this.textureLoader=typeof createImageBitmap>`u`||n&&r<17||i&&a<98?new Df(this.options.manager):new Zf(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new wf(this.options.manager),this.fileLoader.setResponseType(`arraybuffer`),this.options.crossOrigin===`use-credentials`&&this.fileLoader.setWithCredentials(!0)}setExtensions(e){this.extensions=e}setPlugins(e){this.plugins=e}parse(e,t){let n=this,r=this.json,i=this.extensions;this.cache.removeAll(),this.nodeCache={},this._invokeAll(function(e){return e._markDefs&&e._markDefs()}),Promise.all(this._invokeAll(function(e){return e.beforeRoot&&e.beforeRoot()})).then(function(){return Promise.all([n.getDependencies(`scene`),n.getDependencies(`animation`),n.getDependencies(`camera`)])}).then(function(t){let a={scene:t[0][r.scene||0],scenes:t[0],animations:t[1],cameras:t[2],asset:r.asset,parser:n,userData:{}};return $y(i,a,r),eb(a,r),Promise.all(n._invokeAll(function(e){return e.afterRoot&&e.afterRoot(a)})).then(function(){for(let e of a.scenes)e.updateMatrixWorld();e(a)})}).catch(t)}_markDefs(){let e=this.json.nodes||[],t=this.json.skins||[],n=this.json.meshes||[];for(let n=0,r=t.length;n{let n=this.associations.get(e);n!=null&&this.associations.set(t,n);for(let[n,r]of e.children.entries())i(r,t.children[n])};return i(n,r),r.name+=`_instance_`+e.uses[t]++,r}_invokeOne(e){let t=Object.values(this.plugins);t.push(this);for(let n=0;n=2&&p.setY(t,u[e*a+1]),a>=3&&p.setZ(t,u[e*a+2]),a>=4&&p.setW(t,u[e*a+3]),a>=5)throw Error(`THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.`)}p.normalized=d}return p})}loadTexture(e){let t=this.json,n=this.options,r=t.textures[e].source,i=t.images[r],a=this.textureLoader;if(i.uri){let e=n.manager.getHandler(i.uri);e!==null&&(a=e)}return this.loadTextureImage(e,r,a)}loadTextureImage(e,t,n){let r=this,i=this.json,a=i.textures[e],o=i.images[t],s=(o.uri||o.bufferView)+`:`+a.sampler;if(this.textureCache[s])return this.textureCache[s];let c=this.loadImageSource(t,n).then(function(t){t.flipY=!1,t.name=a.name||o.name||``,t.name===``&&typeof o.uri==`string`&&o.uri.startsWith(`data:image/`)===!1&&(t.name=o.uri);let n=(i.samplers||{})[a.sampler]||{};return t.magFilter=Gy[n.magFilter]||1006,t.minFilter=Gy[n.minFilter]||1008,t.wrapS=Ky[n.wrapS]||1e3,t.wrapT=Ky[n.wrapT]||1e3,t.generateMipmaps=!t.isCompressedTexture&&t.minFilter!==1003&&t.minFilter!==1006,r.associations.set(t,{textures:e}),t}).catch(function(){return null});return this.textureCache[s]=c,c}loadImageSource(e,t){let n=this,r=this.json,i=this.options;if(this.sourceCache[e]!==void 0)return this.sourceCache[e].then(e=>e.clone());let a=r.images[e],o=self.URL||self.webkitURL,s=a.uri||``,c=!1;if(a.bufferView!==void 0)s=n.getDependency(`bufferView`,a.bufferView).then(function(e){c=!0;let t=new Blob([e],{type:a.mimeType});return s=o.createObjectURL(t),s});else if(a.uri===void 0)throw Error(`THREE.GLTFLoader: Image `+e+` is missing URI and bufferView`);let l=Promise.resolve(s).then(function(e){return new Promise(function(n,r){let a=n;t.isImageBitmapLoader===!0&&(a=function(e){let t=new Ms(e);t.needsUpdate=!0,n(t)}),t.load(Yf.resolveURL(e,i.path),a,void 0,r)})}).then(function(e){return c===!0&&o.revokeObjectURL(s),eb(e,a),e.userData.mimeType=a.mimeType||ob(a.uri),e}).catch(function(e){throw console.error(`THREE.GLTFLoader: Couldn't load texture`,s),e});return this.sourceCache[e]=l,l}assignTexture(e,t,n,r){let i=this;return this.getDependency(`texture`,n.index).then(function(a){if(!a)return null;if(n.texCoord!==void 0&&n.texCoord>0&&(a=a.clone(),a.channel=n.texCoord),i.extensions[my.KHR_TEXTURE_TRANSFORM]){let e=n.extensions===void 0?void 0:n.extensions[my.KHR_TEXTURE_TRANSFORM];if(e){let t=i.associations.get(a);a=i.extensions[my.KHR_TEXTURE_TRANSFORM].extendTexture(a,e),i.associations.set(a,t)}}return r!==void 0&&(a.colorSpace=r),e[t]=a,a})}assignFinalMaterial(e){let t=e.geometry,n=e.material,r=t.attributes.tangent===void 0,i=t.attributes.color!==void 0,a=t.attributes.normal===void 0;if(e.isPoints){let e=`PointsMaterial:`+n.uuid,t=this.cache.get(e);t||(t=new Mu,wl.prototype.copy.call(t,n),t.color.copy(n.color),t.map=n.map,t.sizeAttenuation=!1,this.cache.add(e,t)),n=t}else if(e.isLine){let e=`LineBasicMaterial:`+n.uuid,t=this.cache.get(e);t||(t=new vu,wl.prototype.copy.call(t,n),t.color.copy(n.color),t.map=n.map,this.cache.add(e,t)),n=t}if(r||i||a){let e=`ClonedMaterial:`+n.uuid+`:`;r&&(e+=`derivative-tangents:`),i&&(e+=`vertex-colors:`),a&&(e+=`flat-shading:`);let t=this.cache.get(e);t||(t=n.clone(),i&&(t.vertexColors=!0),a&&(t.flatShading=!0),r&&(t.normalScale&&(t.normalScale.y*=-1),t.clearcoatNormalScale&&(t.clearcoatNormalScale.y*=-1)),this.cache.add(e,t),this.associations.set(t,this.associations.get(n))),n=t}e.material=n}getMaterialType(){return Hd}loadMaterial(e){let t=this,n=this.json,r=this.extensions,i=n.materials[e],a,o={},s=i.extensions||{},c=[];if(s[my.KHR_MATERIALS_UNLIT]){let e=r[my.KHR_MATERIALS_UNLIT];a=e.getMaterialType(),c.push(e.extendParams(o,i,t))}else{let n=i.pbrMetallicRoughness||{};if(o.color=new V(1,1,1),o.opacity=1,Array.isArray(n.baseColorFactor)){let e=n.baseColorFactor;o.color.setRGB(e[0],e[1],e[2],So),o.opacity=e[3]}n.baseColorTexture!==void 0&&c.push(t.assignTexture(o,`map`,n.baseColorTexture,xo)),o.metalness=n.metallicFactor===void 0?1:n.metallicFactor,o.roughness=n.roughnessFactor===void 0?1:n.roughnessFactor,n.metallicRoughnessTexture!==void 0&&(c.push(t.assignTexture(o,`metalnessMap`,n.metallicRoughnessTexture)),c.push(t.assignTexture(o,`roughnessMap`,n.metallicRoughnessTexture))),a=this._invokeOne(function(t){return t.getMaterialType&&t.getMaterialType(e)}),c.push(Promise.all(this._invokeAll(function(t){return t.extendMaterialParams&&t.extendMaterialParams(e,o)})))}i.doubleSided===!0&&(o.side=2);let l=i.alphaMode||Zy.OPAQUE;if(l===Zy.BLEND?(o.transparent=!0,o.depthWrite=!1):(o.transparent=!1,l===Zy.MASK&&(o.alphaTest=i.alphaCutoff===void 0?.5:i.alphaCutoff)),i.normalTexture!==void 0&&a!==Al&&(c.push(t.assignTexture(o,`normalMap`,i.normalTexture)),o.normalScale=new z(1,1),i.normalTexture.scale!==void 0)){let e=i.normalTexture.scale;o.normalScale.set(e,e)}if(i.occlusionTexture!==void 0&&a!==Al&&(c.push(t.assignTexture(o,`aoMap`,i.occlusionTexture)),i.occlusionTexture.strength!==void 0&&(o.aoMapIntensity=i.occlusionTexture.strength)),i.emissiveFactor!==void 0&&a!==Al){let e=i.emissiveFactor;o.emissive=new V().setRGB(e[0],e[1],e[2],So)}return i.emissiveTexture!==void 0&&a!==Al&&c.push(t.assignTexture(o,`emissiveMap`,i.emissiveTexture,xo)),Promise.all(c).then(function(){let n=new a(o);return i.name&&(n.name=i.name),eb(n,i),t.associations.set(n,{materials:e}),i.extensions&&$y(r,n,i),n})}createUniqueName(e){let t=hp.sanitizeNodeName(e||``);return t in this.nodeNamesUsed?t+`_`+ ++this.nodeNamesUsed[t]:(this.nodeNamesUsed[t]=0,t)}loadGeometries(e){let t=this,n=this.extensions,r=this.primitiveCache;function i(e){return n[my.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(e,t).then(function(n){return ub(n,e,t)})}let a=[];for(let n=0,o=e.length;nqg(e,1)):o.mode===Uy.TRIANGLE_FAN&&(e=e.then(e=>qg(e,2))),r[s]={primitive:o,promise:e},a.push(e)}}return Promise.all(a)}loadMesh(e){let t=this,n=this.json,r=this.extensions,i=n.meshes[e],a=i.primitives,o=[];for(let e=0,t=a.length;e0&&nb(d,i),d.name=t.createUniqueName(i.name||`mesh_`+e),eb(d,i),u.extensions&&$y(r,d,u),t.assignFinalMaterial(d),c.push(d)}for(let n=0,r=c.length;n0){let e=t.userData.pivot,r=n[0];t.pivot=new B().fromArray(e),t.position.x-=e[0],t.position.y-=e[1],t.position.z-=e[2],r.position.set(0,0,0),delete t.userData.pivot}return t})}_loadNodeShallow(e){let t=this.json,n=this.extensions,r=this;if(this.nodeCache[e]!==void 0)return this.nodeCache[e];let i=t.nodes[e],a=i.name?r.createUniqueName(i.name):``,o=[],s=r._invokeOne(function(t){return t.createNodeMesh&&t.createNodeMesh(e)});return s&&o.push(s),i.camera!==void 0&&o.push(r.getDependency(`camera`,i.camera).then(function(e){return r._getNodeRef(r.cameraCache,i.camera,e)})),r._invokeAll(function(t){return t.createNodeAttachment&&t.createNodeAttachment(e)}).forEach(function(e){o.push(e)}),this.nodeCache[e]=Promise.all(o).then(function(t){let o;if(o=i.isBone===!0?new eu:t.length>1?new fc:t.length===1?t[0]:new dc,o!==t[0])for(let e=0,n=t.length;e1){let e=r.associations.get(o);r.associations.set(o,{...e})}return r.associations.get(o).nodes=e,o}),this.nodeCache[e]}loadScene(e){let t=this.extensions,n=this.json.scenes[e],r=this,i=new fc;n.name&&(i.name=r.createUniqueName(n.name)),eb(i,n),n.extensions&&$y(t,i,n);let a=n.nodes||[],o=[];for(let e=0,t=a.length;e{let t=new Map;for(let[e,n]of r.associations)(e instanceof wl||e instanceof Ms)&&t.set(e,n);return e.traverse(e=>{let n=r.associations.get(e);n!=null&&t.set(e,n)}),t})(i),i})}_createAnimationTracks(e,t,n,r,i){let a=[],o=e.name?e.name:e.uuid,s=[];function c(e){e.morphTargetInfluences&&s.push(e.name?e.name:e.uuid)}Yy[i.path]===Yy.weights?(c(e),e.isGroup&&e.children.forEach(c)):s.push(o);let l;switch(Yy[i.path]){case Yy.weights:l=uf;break;case Yy.rotation:l=ff;break;case Yy.translation:case Yy.scale:l=mf;break;default:switch(n.itemSize){case 1:l=uf;break;default:l=mf}}let u=r.interpolation===void 0?po:Xy[r.interpolation],d=this._getArrayFromAccessor(n);for(let e=0,n=s.length;e`,`#include \nvarying vec3 vInjuryPos;\n${n_}\n#ifdef ${P_}\n${O_(r)}\n#endif`).replace(`#include `,`#include \n#ifdef ${P_}\nif (vInjuryPos.y > injuryCutLine(vInjuryPos)) discard;\nif (injuryGone(vInjuryPos) > 0.0) discard;\n#endif`)},t.customProgramCacheKey=()=>`hands-injury-shadow${r?`-body`:``}`,e&&(t.defines={[P_]:``}),t}setWound(e,t){this.uniforms.uInjuryWound.value[Q_(this.wounds,e)]=R.clamp(t,0,1)||0,this.refresh()}wound(e){return this.uniforms.uInjuryWound.value[Q_(this.wounds,e)]}setGone(e,t){this.uniforms.uInjuryGone.value[Q_(this.cuts,e)]=R.clamp(t,0,2)||0,this.refresh()}gone(e){return this.uniforms.uInjuryGone.value[Q_(this.cuts,e)]}setExplicit(e){this.uniforms.uInjuryExplicit.value=+!!e}get explicit(){return this.uniforms.uInjuryExplicit.value>0}setPallor(e){let t=R.clamp(e,0,1)||0;t!==this.uniforms.uInjuryPallor.value&&(this.uniforms.uInjuryPallor.value=t,this.refresh())}get pallor(){return this.uniforms.uInjuryPallor.value}raise(e,t,n=0,r=0){let i=this.slot(e),a=this.uniforms;a.uInjuryBruise.value[i]=Math.max(a.uInjuryBruise.value[i],Math.min(t,1.2)),a.uInjuryBlood.value[i]=Math.max(a.uInjuryBlood.value[i],Math.min(n,1.4));let o=a.uInjuryCut.value[i];o.y=Math.max(o.y,Math.min(r,1))}copyFrom(e){let t=e.uniforms,n=this.uniforms;n.uInjuryBruise.value.set(t.uInjuryBruise.value),n.uInjurySwell.value.set(t.uInjurySwell.value),n.uInjuryBlood.value.set(t.uInjuryBlood.value);for(let[e,r]of n.uInjuryCut.value.entries())r.y=t.uInjuryCut.value[e]?.y??0;for(let[e,r]of n.uInjuryLid.value.entries())r.w=t.uInjuryLid.value[e]?.w??0;n.uInjuryEyeOut.value.copy(t.uInjuryEyeOut.value),n.uInjuryNose.value.copy(t.uInjuryNose.value),n.uInjuryJaw.value=t.uInjuryJaw.value,n.uInjuryWetness.value=t.uInjuryWetness.value,n.uInjuryRaw.value=t.uInjuryRaw.value,n.uInjuryImpactPush.value.set(0,0,0),n.uInjuryWound.value.set(t.uInjuryWound.value),n.uInjuryGone.value.set(t.uInjuryGone.value),n.uInjuryExplicit.value=t.uInjuryExplicit.value,n.uInjuryPallor.value=t.uInjuryPallor.value;for(let[e,r]of n.uInjuryMark.value.entries())r.copy(t.uInjuryMark.value[e]);n.uInjurySpatter.value=t.uInjurySpatter.value,n.uInjuryRun.value=t.uInjuryRun.value,this.refresh()}setBindToPart(e){this.uniforms.uInjuryBindToPart.value.copy(e)}setRawCuts(e){this.uniforms.uInjuryRaw.value=R.clamp(e,0,1)||0}setJaw(e){this.uniforms.uInjuryJaw.value=R.clamp(e,0,1)}setEyesShut(e,t){let[n,r]=this.uniforms.uInjuryLid.value;n.y>-500&&(n.w=R.clamp(e,0,1)||0),r.y>-500&&(r.w=R.clamp(t,0,1)||0)}setEyeOut(e){let t=this.uniforms.uInjuryLid.value,n=(e===`left`||e===`both`)&&t[0].y>-500,r=(e===`right`||e===`both`)&&t[1].y>-500;this.uniforms.uInjuryEyeOut.value.set(+!!n,+!!r),this.index.has(`leftEye`)&&this.set(`leftEye`,{blood:n?1.3:0}),this.index.has(`rightEye`)&&this.set(`rightEye`,{blood:r?1.3:0})}get eyeOut(){let e=this.uniforms.uInjuryEyeOut.value;return e.x>0&&e.y>0?`both`:e.x>0?`left`:e.y>0?`right`:null}get eyesShut(){return[this.uniforms.uInjuryLid.value[0].w,this.uniforms.uInjuryLid.value[1].w]}clear(){this.uniforms.uInjuryBruise.value.fill(0),this.uniforms.uInjurySwell.value.fill(0),this.uniforms.uInjuryBlood.value.fill(0);for(let e of this.uniforms.uInjuryCut.value)e.y=0;this.uniforms.uInjuryJaw.value=0;for(let e of this.uniforms.uInjuryLid.value)e.w=0;this.uniforms.uInjuryEyeOut.value.set(0,0),this.uniforms.uInjuryNose.value.w=0,this.uniforms.uInjuryImpactPush.value.set(0,0,0),this.uniforms.uInjuryWound.value.fill(0),this.uniforms.uInjuryGone.value.fill(0),this.uniforms.uInjuryPallor.value=0;for(let e of this.uniforms.uInjuryMark.value)e.set(0,0,0,0);this.uniforms.uInjurySpatter.value=0,this.uniforms.uInjuryRun.value=1,this.refresh()}level(e){let t=this.slot(e);return{bruise:this.uniforms.uInjuryBruise.value[t],swell:this.uniforms.uInjurySwell.value[t],cut:this.uniforms.uInjuryCut.value[t].y,blood:this.uniforms.uInjuryBlood.value[t]}}};function Q_(e,t){let n=e.indexOf(t);if(n<0)throw Error(`unknown injury ${t}`);return n}function $_(e,t,n){let r=e.defines??={};delete r[N_],delete r[P_],t&&(r[N_]=``),n&&(r[P_]=``),e.side=n?2:0,e.needsUpdate=!0}var ev=e=>e===`off`?0:e===`reduced`?.2:1.5,tv=330;function nv(e,t){return R.clamp((e-tv)/(p-tv)+Math.max(0,t-200)/1600,0,1)}var rv=1.8,iv=150,av=240;function ov(e,t,n){let r=ev(n),i=n===`full`?1:.6;e.setRawCuts(n===`full`?1:n===`reduced`?.6:0);let a=e=>Math.min(1.2,e/380+t.swelling/900),o=e=>Math.min(2,(e/600+t.swelling/900)*i);e.set(`leftEye`,{bruise:a(t.left_eye),swell:o(t.left_eye)}),e.set(`rightEye`,{bruise:a(t.right_eye),swell:o(t.right_eye)}),e.setEyesShut(nv(t.left_eye,t.swelling),nv(t.right_eye,t.swelling));let s=e=>Math.min(1,e/120),c=e=>Math.min(1.4,(e/120+t.bleeding/240)*r);e.set(`leftBrow`,{bruise:Math.min(1,t.left_eye/700),swell:Math.min(1.2,t.left_eye/900)*i,cut:s(t.left_cut),blood:c(t.left_cut)}),e.set(`rightBrow`,{bruise:Math.min(1,t.right_eye/700),swell:Math.min(1.2,t.right_eye/900)*i,cut:s(t.right_cut),blood:c(t.right_cut)});let l=Math.min(1,t.head/950+t.swelling/1100),u=Math.min(rv,t.swelling/520)*i,d=e=>Math.min(1,Math.max(0,e-iv)/350),f=e=>Math.min(1.2,Math.max(0,e-iv+30)/240)*r;e.set(`leftCheek`,{bruise:l*.9,swell:u,cut:d(t.left_cut),blood:f(t.left_cut)}),e.set(`rightCheek`,{bruise:l*.85,swell:u,cut:d(t.right_cut),blood:f(t.right_cut)}),e.set(`nose`,{bruise:Math.min(1,t.head/800),swell:Math.min(.8,t.head/1400)*i,blood:Math.min(1.4,(Math.max(0,t.head-60)/300+t.bleeding/220)*r)}),e.set(`mouth`,{bruise:Math.min(.8,t.head/1100),cut:Math.min(1,Math.max(0,t.head-250)/500),blood:Math.min(1.3,(Math.max(0,t.head-120)/360+t.bleeding/260)*r)}),e.set(`chin`,{bruise:Math.min(.7,t.head/1300)});let p=t.left_eye>=t.right_eye?-1:1;e.setNoseShift(p*Math.min(1.1,Math.max(0,t.head-520)/450)*i),e.set(`leftJaw`,{bruise:Math.min(.9,t.left_eye/900+t.head/1600)}),e.set(`rightJaw`,{bruise:Math.min(.9,t.right_eye/900+t.head/1600)}),e.set(`forehead`,{bruise:Math.min(.6,t.swelling/1200),cut:Math.min(1,Math.max(0,t.swelling-av)/300),blood:Math.min(1.2,Math.max(0,t.swelling-av)/220)*r})}function sv(e,t){return Math.min(1,(Math.max(0,e.bleeding-10)/220+Math.max(0,e.left_cut+e.right_cut-60)/650)*ev(t))}function cv(e,t,n){let r=ev(n),i=Math.min(1.1,t.body/620);e.set(`leftRibs`,{bruise:i,swell:Math.min(1,t.body/1300)}),e.set(`rightRibs`,{bruise:i*.9,swell:Math.min(1,t.body/1400)}),e.set(`solarPlexus`,{bruise:Math.min(1,t.body/800)}),e.set(`leftPec`,{bruise:Math.min(.8,t.body/1100)}),e.set(`rightPec`,{bruise:Math.min(.8,t.body/1150)});let a=Math.min(1.4,(t.bleeding/200+(t.left_cut+t.right_cut)/450)*r);e.set(`neckSmear`,{blood:a}),e.set(`leftShoulderSmear`,{blood:Math.min(1.2,t.left_cut/300)*r}),e.set(`rightShoulderSmear`,{blood:Math.min(1.2,t.right_cut/300)*r})}var lv=3.05,uv=3.85,dv=4.05,fv=3.42,pv=fv*.72,mv=[.5,.88,1.26];function hv(e){let t=lv/Math.max(1,e.ring_half_width),n=lv/Math.max(1,e.ring_half_height);return{x:e=>e*t,z:e=>-e*n}}var gv={blue:1920728,red:12131356,neutral:15067115},_v=128,vv=4,yv=.12,bv=.82,xv={edge:4851467,core:[`rgba(40,3,6,0.9)`,`rgba(58,5,9,0.65)`,`rgba(70,7,11,0)`]},Sv=6,Cv=.29,wv=14,Tv=e=>()=>(e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296);function Ev(e){let t=Tv(e);return{lobes:Array.from({length:5+Math.floor(t()*4)},(e,n)=>{let r=t()*Math.PI*2,i=n===0?0:6+t()*12,a=n===0?16+t()*6:8+t()*9;return{x:64+Math.cos(r)*i,y:64+Math.sin(r)*i,rx:a,ry:a*(.55+t()*.45),turn:t()*Math.PI}}),fill:.55+t()*.2,rim:.95,satellites:6+Math.floor(t()*6)}}function Dv(e){let t=document.createElement(`canvas`);t.width=_v,t.height=_v;let n=t.getContext(`2d`);if(n!==null){let t=Ev(e),r=Tv(e^1540483477);n.clearRect(0,0,_v,_v),n.fillStyle=`rgba(255,255,255,1)`,n.strokeStyle=`rgba(255,255,255,1)`,n.globalAlpha=t.rim,n.lineWidth=3.5;for(let e of t.lobes)n.beginPath(),n.ellipse(e.x,e.y,e.rx,e.ry,e.turn,0,Math.PI*2),n.stroke();let i=()=>{n.beginPath();for(let e of t.lobes){let t=Math.max(1,e.rx-1.5);n.moveTo(e.x+Math.cos(e.turn)*t,e.y+Math.sin(e.turn)*t),n.ellipse(e.x,e.y,t,Math.max(1,e.ry-1.5),e.turn,0,Math.PI*2)}n.fill()};n.globalCompositeOperation=`destination-out`,n.globalAlpha=1,i(),n.globalCompositeOperation=`source-over`,n.globalAlpha=t.fill,i();for(let e=0;e{let t=t=>Math.round((e>>t&255)*.8);return`rgb(${t(16)},${t(8)},${t(0)})`},kv=class{scene;size;mesh;canvas;context;texture;source;uploader=null;region=new vp;regionAt=new z;material;geometry;stamps=[];tinted=new Map;pixelsPerMetre;dirty=!1;sinceUpload=0;uploadInterval=yv;painted=0;streakSeed=0;constructor(e,t=1024){this.scene=e,this.size=t,this.canvas=document.createElement(`canvas`),this.canvas.width=t,this.canvas.height=t,this.context=this.canvas.getContext(`2d`),this.context?.clearRect(0,0,t,t);for(let e=0;e3.05||Math.abs(t)>3.05)return;let c=this.context;if(this.painted+=1,this.dirty=!0,this.mesh.visible=!0,c===null)return;let l=this.tintedStamp(o,s),u=this.pixel(e,t),d=Math.max(1,n*this.pixelsPerMetre),f=Math.max(1,r*this.pixelsPerMetre);this.grow(u.x,u.y,Math.hypot(d,f)/2),c.save(),c.globalAlpha=R.clamp(a,0,1),c.translate(u.x,u.y),c.rotate(Number.isFinite(i)?i:0),c.drawImage(l,-d/2,-f/2,d,f),c.restore()}tintedStamp(e,t){let n=this.tinted.get(e);return n===void 0&&(n=this.stamps.map(t=>{let n=document.createElement(`canvas`);n.width=_v,n.height=_v;let r=n.getContext(`2d`);return r!==null&&(r.drawImage(t,0,0),r.globalCompositeOperation=`source-in`,r.fillStyle=Ov(e),r.fillRect(0,0,_v,_v)),n}),this.tinted.set(e,n)),n[Math.abs(Math.trunc(t))%vv]}pool(e,t,n,r,i,a=xv){this.stain(e,t,n*2.3,n*2,i*1.7,r*.8,a.edge,i);let o=this.context;if(o===null||Math.abs(e)>3.05||Math.abs(t)>3.05)return;let s=this.pixel(e,t),c=Math.max(1,n*1.15*this.pixelsPerMetre);this.grow(s.x,s.y,c);let l=o.createRadialGradient(s.x,s.y,0,s.x,s.y,c);l.addColorStop(0,a.core[0]),l.addColorStop(.65,a.core[1]),l.addColorStop(1,a.core[2]),o.save(),o.globalAlpha=R.clamp(r,0,1),o.fillStyle=l,o.beginPath(),o.ellipse(s.x,s.y,c,c*.86,i*.9,0,Math.PI*2),o.fill(),o.restore()}streakRandom(){return this.streakSeed=Math.imul(this.streakSeed^this.streakSeed>>>15,1|this.streakSeed),this.streakSeed^=this.streakSeed+Math.imul(this.streakSeed^this.streakSeed>>>7,61|this.streakSeed),((this.streakSeed^this.streakSeed>>>14)>>>0)/4294967296}smear(e,t,n,r,i,a,o){if(!Number.isFinite(e+t+n+r+i)||Math.abs(e)>3.05||Math.abs(t)>3.05)return;let s=this.context;if(this.painted+=1,this.dirty=!0,this.mesh.visible=!0,s===null)return;let c=(e+lv)*this.pixelsPerMetre,l=(t+lv)*this.pixelsPerMetre,u=(R.clamp(n,-lv,lv)+lv)*this.pixelsPerMetre,d=(R.clamp(r,-lv,lv)+lv)*this.pixelsPerMetre,f=Math.max(1,i*this.pixelsPerMetre);this.grow(c,l,f),this.grow(u,d,f);let p=Math.hypot(u-c,d-l),m=p>1e-6?(l-d)/p:1,h=p>1e-6?(u-c)/p:0;this.streakSeed=1374496523^Math.imul(this.painted,40503),s.save(),s.strokeStyle=Ov(o),s.lineCap=`round`;for(let e=0;e3.05||Math.abs(t)>3.05)return;let o=this.context;if(this.painted+=1,this.dirty=!0,this.mesh.visible=!0,o===null)return;let s=(e+lv)*this.pixelsPerMetre,c=(t+lv)*this.pixelsPerMetre,l=Math.max(2,Cv*this.pixelsPerMetre),u=l*.36;this.grow(s,c,l*.6);let d=(r?-1:1)*u*.06,f=l/wv;o.save(),o.globalAlpha=R.clamp(i,0,1),o.fillStyle=Ov(a),o.translate(s,c),o.rotate(-n);for(let e=0;et.min.x&&t.max.y>t.min.y?this.uploader.copyTextureToTexture(this.source,this.texture,t,this.regionAt.copy(t.min)):this.texture.needsUpdate=!0,t.makeEmpty(),this.dirty=!1,this.sinceUpload=0}clear(){this.context?.clearRect(0,0,this.size,this.size),this.painted=0,this.dirty=!1,this.region.makeEmpty(),this.texture.needsUpdate=!0,this.mesh.visible=!1}dispose(){this.scene.remove(this.mesh),this.texture.dispose(),this.source.dispose(),this.material.dispose(),this.geometry.dispose()}};function Av(){let e=new wd(1,2);e.deleteAttribute(`normal`),e.deleteAttribute(`uv`);let t=qg(e,1e-4);e.dispose();let n=t.getAttribute(`position`),r=new B;for(let e=0;e=120?5:t>=90?3:t>=60?2:+(t>=40):e===`hit`?t>=130?4:t>=100?3:t>=75?2:+(t>=50):0:0}function Nv(e,t){return Math.min(800,Math.round(Math.max(0,e)*4.5+Math.max(0,t)*2.8))}var Pv=1.1,Fv=.6,Iv=.35,Lv=1.2;function Rv(){let e=new kd(1,8,6),t=e.getAttribute(`position`);for(let e=0;e1+(e-1)*28+t%28;for(let e=0;e<28;e+=1)a.push(0,o(1,e+1),o(1,e));for(let e=1;e<6;e+=1)for(let t=0;t<28;t+=1)a.push(o(e,t),o(e,t+1),o(e+1,t)),a.push(o(e,t+1),o(e+1,t+1),o(e+1,t));let s=new gl;return s.setAttribute(`position`,new il(r,3)),s.setAttribute(`uv`,new il(i,2)),s.setIndex(a),s.computeVertexNormals(),s}function Gv(e,t){let n=e.getAttribute(`position`),r=e.getIndex();if(r===null)return[];let i=new Map,a=new Int32Array(n.count),o=new Uint8Array(n.count),s=new B;for(let e=0;eo[e]===1);for(let e=0;e<3;e+=1){let r=a[t[e]],o=a[t[(e+1)%3]],s=r=2&&l.push(Math.floor(e/n.count),e%n.count);return l}var Kv=.5,qv=new B,Jv=new B,Yv=new B,Xv=new B,Zv=new B;function Qv(e,t,n){Zv.copy(e).addScaledVector(t,-e.dot(t)).multiplyScalar(Kv/n).add(t).normalize()}function $v(e,t,n,r,i=.01,a){let o=Math.floor(t.length/6),s=e.getAttribute(`position`),c=e.getAttribute(`normal`),l=e.getAttribute(`uv`);(s===void 0||c===void 0||l===void 0||s.count!==o*3)&&(s=new tl(new Float32Array(o*9),3).setUsage(Oo),c=new tl(new Float32Array(o*9),3).setUsage(Oo),l=new tl(new Float32Array(o*6),2).setUsage(Oo),e.setAttribute(`position`,s),e.setAttribute(`normal`,c),e.setAttribute(`uv`,l)),qv.set(1,0,0),Math.abs(r.x)>.9&&qv.set(0,0,1),a!==void 0&&a.lengthSq()>1e-8&&Math.abs(a.dot(r))<.95*a.length()&&qv.copy(a),Jv.crossVectors(r,qv).normalize(),qv.crossVectors(Jv,r).normalize();let u=1e-6;for(let e=0;e=0)continue;let i=`${Math.round(s.x*1e5)},${Math.round(s.y*1e5)},${Math.round(s.z*1e5)}`,l=a.get(i)??n;a.set(i,l),o[n]=l}c.multiplyScalar(1/Math.max(1,r.count));for(let e=0;e{let t=e;for(;u.has(t);)t=u.get(t);return t},f=[];for(let[e,t]of l){if(t!==1)continue;f.push(e);let n=d(Math.floor(e/i)),r=d(e%i);n!==r&&u.set(n,r)}let p=new Map;for(let e of f){let t=d(e%i),n=p.get(t)??[];n.push(e),p.set(t,n)}let m=[],h=[],g=[],_=new gl,v=new gl,y=new B,b=new B,x=[];for(let e of p.values()){if(e.length<3)continue;let r=new Float32Array(e.length*6);y.set(0,0,0);let a=0;for(let[o,c]of e.entries()){let e=Math.floor(c/i),l=c%i;y.add(s.fromBufferAttribute(t,e)),s.toArray(r,o*6),y.add(s.fromBufferAttribute(t,l)),s.toArray(r,o*6+3),a+=n===void 0?r[o*6+1]+r[o*6+4]:n.getY(e)+n.getY(l)}y.multiplyScalar(1/(e.length*2));let o=0;for(let e=0;e(n=Math.imul(n^n>>>15,1|n),n^=n+Math.imul(n^n>>>7,61|n),((n^n>>>14)>>>0)/4294967296);for(let e=0;e<46;e+=1){let e=r()*Math.PI*2,n=14+r()*42;t.fillStyle=r()<.5?`rgba(150,28,30,0.55)`:`rgba(40,4,8,0.5)`,t.beginPath(),t.ellipse(64+Math.cos(e)*n,64+Math.sin(e)*n,3+r()*6,2+r()*3,e,0,Math.PI*2),t.fill()}let i=(e,n,r,i)=>{t.fillStyle=i,t.beginPath(),t.arc(e,n,r,0,Math.PI*2),t.fill()};i(64,38,10,`#8f7c64`),i(61,36,4.5,`#6a2a25`),i(66,78,7,`#7a3c34`),i(66,78,4.5,`#150203`),i(41,64,3,`#1d0204`),i(90,69,2.6,`#1d0204`);for(let e=0;e<70;e+=1){let e=r()*Math.PI*2,t=r()*60;i(64+Math.cos(e)*t,64+Math.sin(e)*t,.6+r()*1.6,r()<.4?`rgba(190,60,50,0.5)`:`rgba(20,2,4,0.55)`)}ry(t)}let n=new Vu(e);return n.colorSpace=So,n}function ry(e){e.lineWidth=7,e.strokeStyle=`rgba(214,178,92,0.85)`,e.beginPath(),e.arc(64,64,55,0,Math.PI*2),e.stroke(),e.lineWidth=4,e.strokeStyle=`#b8775c`,e.beginPath(),e.arc(64,64,61,0,Math.PI*2),e.stroke()}function iy(){let e=document.createElement(`canvas`);e.width=128,e.height=128;let t=e.getContext(`2d`);if(t!==null){let e=t.createRadialGradient(64,64,6,64,64,64);e.addColorStop(0,`#741014`),e.addColorStop(.7,`#52090d`),e.addColorStop(1,`#300407`),t.fillStyle=e,t.fillRect(0,0,128,128);let n=(e,n,r,i)=>{t.fillStyle=i,t.beginPath(),t.arc(e,n,r,0,Math.PI*2),t.fill()};for(let[e,t,r]of[[46,60,13],[84,66,10]])n(e,t,r,`#e4d8c0`),n(e,t,r*.62,`#a4483c`),n(e-r*.2,t-r*.2,r*.25,`rgba(220,110,90,0.6)`);for(let e=0;e<9;e+=1){let t=Math.PI*(.15+e/8*.7);n(64+Math.cos(t)*34,64+Math.sin(t)*34,3.2,`#d9c9b3`)}n(30,84,3.4,`#1a0204`),n(98,46,3,`#1a0204`),n(66,30,2.6,`#1a0204`),ry(t)}let n=new Vu(e);return n.colorSpace=So,n}function ay(){let e=document.createElement(`canvas`);e.width=128,e.height=128;let t=e.getContext(`2d`);if(t!==null){let e=t.createRadialGradient(64,64,6,64,64,64);e.addColorStop(0,`#7c1218`),e.addColorStop(.7,`#560a0f`),e.addColorStop(1,`#2e0407`),t.fillStyle=e,t.fillRect(0,0,128,128);let n=2135587861,r=()=>(n=Math.imul(n^n>>>15,1|n),n^=n+Math.imul(n^n>>>7,61|n),((n^n>>>14)>>>0)/4294967296);for(let e=0;e<11;e+=1){let n=e/11*Math.PI*2+r()*.3,i=26+r()*12;t.fillStyle=r()<.5?`#8e1c20`:`#6c1016`,t.strokeStyle=`rgba(30,3,6,0.8)`,t.lineWidth=1.6,t.beginPath(),t.ellipse(64+Math.cos(n)*i,64+Math.sin(n)*i,13+r()*5,8+r()*4,n+Math.PI/2,0,Math.PI*2),t.fill(),t.stroke()}let i=(e,n,r,i)=>{t.fillStyle=i,t.beginPath(),t.arc(e,n,r,0,Math.PI*2),t.fill()};i(58,60,15,`#e8dcc4`),i(58,60,9.5,`#a8463a`),i(55,57,3.5,`rgba(226,116,96,0.65)`),i(82,70,4.2,`#170204`),i(80,80,3,`#3a0a2a`),i(88,62,2.2,`#e0d2a0`);for(let e=0;e<70;e+=1){let e=r()*Math.PI*2,t=18+r()*40;i(64+Math.cos(e)*t,64+Math.sin(e)*t,.6+r()*1.5,r()<.4?`rgba(200,70,56,0.5)`:`rgba(20,2,4,0.55)`)}ry(t)}let n=new Vu(e);return n.colorSpace=So,n}function oy(){let e=document.createElement(`canvas`);e.width=128,e.height=128;let t=e.getContext(`2d`);if(t!==null){t.fillStyle=`#3c060a`,t.fillRect(0,0,128,128);let e=461845907,n=()=>(e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296),r=(e,n,r,i,a,o,s)=>{t.fillStyle=o,t.beginPath(),t.ellipse(e,n,r,i,a,0,Math.PI*2),t.fill(),s!==void 0&&(t.strokeStyle=s,t.lineWidth=1.4,t.stroke())};t.strokeStyle=`#7c151a`,t.lineWidth=12,t.beginPath(),t.arc(64,64,46,0,Math.PI*2),t.stroke(),r(40,30,13,9,.5,`#8a1c20`,`rgba(30,3,6,0.8)`),r(88,30,13,9,-.5,`#8a1c20`,`rgba(30,3,6,0.8)`),r(40,58,15,10,.4,`#4a1410`);for(let e=0;e<15;e+=1){let e=n()*Math.PI*2,t=n()*25,i=68+Math.cos(e)*t,a=74+Math.sin(e)*t*.8,o=6+n()*4;r(i,a,o,o*(.7+n()*.3),n()*Math.PI,`#d49a98`,`rgba(110,30,36,0.9)`),r(i,a,o*.45,o*.35,n()*Math.PI,n()<.4?`#6a5a14`:`#3a070b`)}r(64,26,11,9,0,`#e6dac2`),r(64,26,7,5.5,0,`#b4594a`),r(64,13,4,3.4,0,`#efe6c8`,`#8a7c60`),r(57,40,4.4,4.4,0,`#160204`,`#a03038`),r(71,40,4,3.4,0,`#2a0a2c`);for(let e=0;e<80;e+=1){let e=n()*Math.PI*2,t=n()*54;r(64+Math.cos(e)*t,64+Math.sin(e)*t,.6+n()*1.6,.6+n()*1.6,0,n()<.3?`rgba(226,190,90,0.6)`:n()<.5?`rgba(190,50,44,0.5)`:`rgba(20,2,4,0.55)`)}ry(t)}let n=new Vu(e);return n.colorSpace=So,n}function sy(){let e=.09,t=[];for(let e=0;e<9;e+=1){let n=e/9*Math.PI*2,r=.32*(.62+.38*Math.abs(Math.sin(e*2.3+.4)));t.push([Math.cos(n)*r,Math.sin(n)*r])}let n=(t,n,r)=>{let i=Math.hypot(t,n,1);return[t/i*r,n/i*r,1/i*r-e]},r=[],i=[],a=[.07,.035,.025],o=[.78,.7,.58],s=[.42,.05,.05],c=(e,t,n,a)=>{r.push(...e,...t,...n);for(let e=0;e<3;e+=1)i.push(...a)};for(let r=0;r<9;r+=1){let[i,l]=t[r],[u,d]=t[(r+1)%9];c(n(0,0,e),n(i,l,e),n(u,d,e),a),c(n(0,0,.08299999999999999),n(u,d,.08299999999999999),n(i,l,.08299999999999999),r%3==0?o:s),c(n(i,l,e),n(i,l,.08299999999999999),n(u,d,e),o),c(n(u,d,e),n(i,l,.08299999999999999),n(u,d,.08299999999999999),o)}let l=new gl;return l.setAttribute(`position`,new il(r,3)),l.setAttribute(`color`,new il(i,3)),l.computeVertexNormals(),l.computeBoundingSphere(),l}function cy(){let e=document.createElement(`canvas`);e.width=128,e.height=128;let t=e.getContext(`2d`);if(t!==null){let e=t.createRadialGradient(64,60,6,64,64,66);e.addColorStop(0,`#7a1016`),e.addColorStop(.75,`#530a0e`),e.addColorStop(1,`#300408`),t.fillStyle=e,t.fillRect(0,0,128,128),t.fillStyle=`#8a2a2e`,t.beginPath(),t.ellipse(64,50,22,17,0,0,Math.PI*2),t.fill(),t.fillStyle=`rgba(220,120,120,0.35)`,t.beginPath(),t.ellipse(60,45,9,5,-.3,0,Math.PI*2),t.fill(),t.strokeStyle=`#a99c86`,t.lineWidth=5,t.beginPath(),t.ellipse(64,62,50,50,0,Math.PI*.08,Math.PI*.92),t.stroke();for(let e=0;e<12;e+=1){let n=Math.PI*(.14+e/11*.72);t.save(),t.translate(64+Math.cos(n)*42,62+Math.sin(n)*42),t.rotate(n+Math.PI/2),t.fillStyle=e%5==2?`#3a0508`:`#ece4cf`,t.fillRect(-3.5,-4.5,7,9),t.restore()}let n=625341585,r=()=>(n=Math.imul(n^n>>>15,1|n),n^=n+Math.imul(n^n>>>7,61|n),((n^n>>>14)>>>0)/4294967296);for(let e=0;e<60;e+=1)t.fillStyle=r()<.5?`rgba(150,20,24,0.6)`:`rgba(20,2,4,0.5)`,t.beginPath(),t.arc(r()*128,r()*128,.8+r()*2.2,0,Math.PI*2),t.fill();ry(t)}let n=new Vu(e);return n.colorSpace=So,n}function ly(){let e=document.createElement(`canvas`);e.width=128,e.height=64;let t=e.getContext(`2d`);if(t!==null){let e=t.createLinearGradient(0,0,128,0);e.addColorStop(0,`#e9ddd4`),e.addColorStop(.42,`#e9ddd4`),e.addColorStop(.62,`#8a2a2c`),e.addColorStop(.85,`#4a070b`),e.addColorStop(1,`#e9ddd4`),t.fillStyle=e,t.fillRect(0,0,128,64),t.strokeStyle=`rgba(170,20,26,0.75)`,t.lineWidth=.8;for(let e=0;e<14;e+=1){let n=e/14*Math.PI*2;t.beginPath(),t.moveTo(32+Math.cos(n)*30,32+Math.sin(n)*26),t.quadraticCurveTo(32+Math.cos(n+.3)*20,32+Math.sin(n+.3)*18,32+Math.cos(n)*11,32+Math.sin(n)*11),t.stroke()}let n=t.createRadialGradient(32,32,2,32,32,9);n.addColorStop(0,`#6b4524`),n.addColorStop(.8,`#4a2d14`),n.addColorStop(1,`#1e1208`),t.fillStyle=n,t.beginPath(),t.arc(32,32,9,0,Math.PI*2),t.fill(),t.fillStyle=`#050302`,t.beginPath(),t.arc(32,32,4,0,Math.PI*2),t.fill(),t.fillStyle=`rgba(255,255,255,0.85)`,t.beginPath(),t.arc(29.5,29.5,1.4,0,Math.PI*2),t.fill()}let n=new Vu(e);return n.colorSpace=So,n}function uy(e){let t=new Map,n=new Map,r=e.clone();return dy(e,r,function(e,r){t.set(r,e),n.set(e,r)}),r.traverse(function(e){if(!e.isSkinnedMesh)return;let r=e,i=t.get(e),a=i.skeleton.bones;r.skeleton=i.skeleton.clone(),r.bindMatrix.copy(i.bindMatrix),r.skeleton.bones=a.map(function(e){return n.get(e)}),r.bind(r.skeleton,r.bindMatrix)}),r}function dy(e,t,n){n(e,t);for(let r=0;r=2.0 are supported.`));return}let c=new lb(i,{path:t||this.resourcePath||``,crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});c.fileLoader.setRequestHeader(this.requestHeader);for(let e=0;e=0&&o[t]===void 0&&console.warn(`THREE.GLTFLoader: Unknown extension "`+t+`".`)}}c.setExtensions(a),c.setPlugins(o),c.parse(n,r)}parseAsync(e,t){let n=this;return new Promise(function(r,i){n.parse(e,t,r,i)})}};function py(){let e={};return{get:function(t){return e[t]},add:function(t,n){e[t]=n},remove:function(t){delete e[t]},removeAll:function(){e={}}}}function my(e,t,n){let r=e.json.materials[t];return r.extensions&&r.extensions[n]?r.extensions[n]:null}var hy={KHR_BINARY_GLTF:`KHR_binary_glTF`,KHR_DRACO_MESH_COMPRESSION:`KHR_draco_mesh_compression`,KHR_LIGHTS_PUNCTUAL:`KHR_lights_punctual`,KHR_MATERIALS_CLEARCOAT:`KHR_materials_clearcoat`,KHR_MATERIALS_DISPERSION:`KHR_materials_dispersion`,KHR_MATERIALS_IOR:`KHR_materials_ior`,KHR_MATERIALS_SHEEN:`KHR_materials_sheen`,KHR_MATERIALS_SPECULAR:`KHR_materials_specular`,KHR_MATERIALS_TRANSMISSION:`KHR_materials_transmission`,KHR_MATERIALS_IRIDESCENCE:`KHR_materials_iridescence`,KHR_MATERIALS_ANISOTROPY:`KHR_materials_anisotropy`,KHR_MATERIALS_UNLIT:`KHR_materials_unlit`,KHR_MATERIALS_VOLUME:`KHR_materials_volume`,KHR_TEXTURE_BASISU:`KHR_texture_basisu`,KHR_TEXTURE_TRANSFORM:`KHR_texture_transform`,KHR_MESH_QUANTIZATION:`KHR_mesh_quantization`,KHR_MATERIALS_EMISSIVE_STRENGTH:`KHR_materials_emissive_strength`,EXT_MATERIALS_BUMP:`EXT_materials_bump`,EXT_TEXTURE_WEBP:`EXT_texture_webp`,EXT_TEXTURE_AVIF:`EXT_texture_avif`,EXT_MESHOPT_COMPRESSION:`EXT_meshopt_compression`,KHR_MESHOPT_COMPRESSION:`KHR_meshopt_compression`,EXT_MESH_GPU_INSTANCING:`EXT_mesh_gpu_instancing`},gy=class{constructor(e){this.parser=e,this.name=hy.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){let e=this.parser,t=this.parser.json.nodes||[];for(let n=0,r=t.length;n=0)throw Error(`THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures`);return null}return t.loadTextureImage(e,i.source,a)}},Ay=class{constructor(e){this.parser=e,this.name=hy.EXT_TEXTURE_WEBP}loadTexture(e){let t=this.name,n=this.parser,r=n.json,i=r.textures[e];if(!i.extensions||!i.extensions[t])return null;let a=i.extensions[t],o=r.images[a.source],s=n.textureLoader;if(o.uri){let e=n.options.manager.getHandler(o.uri);e!==null&&(s=e)}return n.loadTextureImage(e,a.source,s)}},jy=class{constructor(e){this.parser=e,this.name=hy.EXT_TEXTURE_AVIF}loadTexture(e){let t=this.name,n=this.parser,r=n.json,i=r.textures[e];if(!i.extensions||!i.extensions[t])return null;let a=i.extensions[t],o=r.images[a.source],s=n.textureLoader;if(o.uri){let e=n.options.manager.getHandler(o.uri);e!==null&&(s=e)}return n.loadTextureImage(e,a.source,s)}},My=class{constructor(e,t){this.name=t,this.parser=e}loadBufferView(e){let t=this.parser.json,n=t.bufferViews[e];if(n.extensions&&n.extensions[this.name]){let e=n.extensions[this.name],r=this.parser.getDependency(`buffer`,e.buffer),i=this.parser.options.meshoptDecoder;if(!i||!i.supported){if(t.extensionsRequired&&t.extensionsRequired.indexOf(this.name)>=0)throw Error(`THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files`);return null}return r.then(function(t){let n=e.byteOffset||0,r=e.byteLength||0,a=e.count,o=e.byteStride,s=new Uint8Array(t,n,r);return i.decodeGltfBufferAsync?i.decodeGltfBufferAsync(a,o,s,e.mode,e.filter).then(function(e){return e.buffer}):i.ready.then(function(){let t=new ArrayBuffer(a*o);return i.decodeGltfBuffer(new Uint8Array(t),a,o,s,e.mode,e.filter),t})})}return null}},Ny=class{constructor(e){this.name=hy.EXT_MESH_GPU_INSTANCING,this.parser=e}createNodeMesh(e){let t=this.parser.json,n=t.nodes[e];if(!n.extensions||!n.extensions[this.name]||n.mesh===void 0)return null;let r=t.meshes[n.mesh];for(let e of r.primitives)if(e.mode!==Wy.TRIANGLES&&e.mode!==Wy.TRIANGLE_STRIP&&e.mode!==Wy.TRIANGLE_FAN&&e.mode!==void 0)return null;let i=n.extensions[this.name].attributes,a=[],o={};for(let e in i)a.push(this.parser.getDependency(`accessor`,i[e]).then(t=>(o[e]=t,o[e])));return a.length<1?null:(a.push(this.parser.createNodeMesh(e)),Promise.all(a).then(e=>{let t=e.pop(),n=t.isGroup?t.children:[t],r=e[0].count,i=[];for(let e of n){let t=new zs,n=new B,a=new hs,s=new B(1,1,1),c=new mu(e.geometry,e.material,r);for(let e=0;e0||e.search(/^data\:image\/jpeg/)===0?`image/jpeg`:e.search(/\.webp($|\?)/i)>0||e.search(/^data\:image\/webp/)===0?`image/webp`:e.search(/\.ktx2($|\?)/i)>0||e.search(/^data\:image\/ktx2/)===0?`image/ktx2`:`image/png`}var cb=new zs,lb=class{constructor(e={},t={}){this.json=e,this.extensions={},this.plugins={},this.options=t,this.cache=new py,this.associations=new Map,this.primitiveCache={},this.nodeCache={},this.meshCache={refs:{},uses:{}},this.cameraCache={refs:{},uses:{}},this.lightCache={refs:{},uses:{}},this.sourceCache={},this.textureCache={},this.nodeNamesUsed={};let n=!1,r=-1,i=!1,a=-1;if(typeof navigator<`u`&&navigator.userAgent!==void 0){let e=navigator.userAgent;n=/^((?!chrome|android).)*safari/i.test(e)===!0;let t=e.match(/Version\/(\d+)/);r=n&&t?parseInt(t[1],10):-1,i=e.indexOf(`Firefox`)>-1,a=i?e.match(/Firefox\/([0-9]+)\./)[1]:-1}this.textureLoader=typeof createImageBitmap>`u`||n&&r<17||i&&a<98?new Of(this.options.manager):new Qf(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new Tf(this.options.manager),this.fileLoader.setResponseType(`arraybuffer`),this.options.crossOrigin===`use-credentials`&&this.fileLoader.setWithCredentials(!0)}setExtensions(e){this.extensions=e}setPlugins(e){this.plugins=e}parse(e,t){let n=this,r=this.json,i=this.extensions;this.cache.removeAll(),this.nodeCache={},this._invokeAll(function(e){return e._markDefs&&e._markDefs()}),Promise.all(this._invokeAll(function(e){return e.beforeRoot&&e.beforeRoot()})).then(function(){return Promise.all([n.getDependencies(`scene`),n.getDependencies(`animation`),n.getDependencies(`camera`)])}).then(function(t){let a={scene:t[0][r.scene||0],scenes:t[0],animations:t[1],cameras:t[2],asset:r.asset,parser:n,userData:{}};return eb(i,a,r),tb(a,r),Promise.all(n._invokeAll(function(e){return e.afterRoot&&e.afterRoot(a)})).then(function(){for(let e of a.scenes)e.updateMatrixWorld();e(a)})}).catch(t)}_markDefs(){let e=this.json.nodes||[],t=this.json.skins||[],n=this.json.meshes||[];for(let n=0,r=t.length;n{let n=this.associations.get(e);n!=null&&this.associations.set(t,n);for(let[n,r]of e.children.entries())i(r,t.children[n])};return i(n,r),r.name+=`_instance_`+e.uses[t]++,r}_invokeOne(e){let t=Object.values(this.plugins);t.push(this);for(let n=0;n=2&&p.setY(t,u[e*a+1]),a>=3&&p.setZ(t,u[e*a+2]),a>=4&&p.setW(t,u[e*a+3]),a>=5)throw Error(`THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.`)}p.normalized=d}return p})}loadTexture(e){let t=this.json,n=this.options,r=t.textures[e].source,i=t.images[r],a=this.textureLoader;if(i.uri){let e=n.manager.getHandler(i.uri);e!==null&&(a=e)}return this.loadTextureImage(e,r,a)}loadTextureImage(e,t,n){let r=this,i=this.json,a=i.textures[e],o=i.images[t],s=(o.uri||o.bufferView)+`:`+a.sampler;if(this.textureCache[s])return this.textureCache[s];let c=this.loadImageSource(t,n).then(function(t){t.flipY=!1,t.name=a.name||o.name||``,t.name===``&&typeof o.uri==`string`&&o.uri.startsWith(`data:image/`)===!1&&(t.name=o.uri);let n=(i.samplers||{})[a.sampler]||{};return t.magFilter=Ky[n.magFilter]||1006,t.minFilter=Ky[n.minFilter]||1008,t.wrapS=qy[n.wrapS]||1e3,t.wrapT=qy[n.wrapT]||1e3,t.generateMipmaps=!t.isCompressedTexture&&t.minFilter!==1003&&t.minFilter!==1006,r.associations.set(t,{textures:e}),t}).catch(function(){return null});return this.textureCache[s]=c,c}loadImageSource(e,t){let n=this,r=this.json,i=this.options;if(this.sourceCache[e]!==void 0)return this.sourceCache[e].then(e=>e.clone());let a=r.images[e],o=self.URL||self.webkitURL,s=a.uri||``,c=!1;if(a.bufferView!==void 0)s=n.getDependency(`bufferView`,a.bufferView).then(function(e){c=!0;let t=new Blob([e],{type:a.mimeType});return s=o.createObjectURL(t),s});else if(a.uri===void 0)throw Error(`THREE.GLTFLoader: Image `+e+` is missing URI and bufferView`);let l=Promise.resolve(s).then(function(e){return new Promise(function(n,r){let a=n;t.isImageBitmapLoader===!0&&(a=function(e){let t=new Ns(e);t.needsUpdate=!0,n(t)}),t.load(Xf.resolveURL(e,i.path),a,void 0,r)})}).then(function(e){return c===!0&&o.revokeObjectURL(s),tb(e,a),e.userData.mimeType=a.mimeType||sb(a.uri),e}).catch(function(e){throw console.error(`THREE.GLTFLoader: Couldn't load texture`,s),e});return this.sourceCache[e]=l,l}assignTexture(e,t,n,r){let i=this;return this.getDependency(`texture`,n.index).then(function(a){if(!a)return null;if(n.texCoord!==void 0&&n.texCoord>0&&(a=a.clone(),a.channel=n.texCoord),i.extensions[hy.KHR_TEXTURE_TRANSFORM]){let e=n.extensions===void 0?void 0:n.extensions[hy.KHR_TEXTURE_TRANSFORM];if(e){let t=i.associations.get(a);a=i.extensions[hy.KHR_TEXTURE_TRANSFORM].extendTexture(a,e),i.associations.set(a,t)}}return r!==void 0&&(a.colorSpace=r),e[t]=a,a})}assignFinalMaterial(e){let t=e.geometry,n=e.material,r=t.attributes.tangent===void 0,i=t.attributes.color!==void 0,a=t.attributes.normal===void 0;if(e.isPoints){let e=`PointsMaterial:`+n.uuid,t=this.cache.get(e);t||(t=new Nu,Tl.prototype.copy.call(t,n),t.color.copy(n.color),t.map=n.map,t.sizeAttenuation=!1,this.cache.add(e,t)),n=t}else if(e.isLine){let e=`LineBasicMaterial:`+n.uuid,t=this.cache.get(e);t||(t=new yu,Tl.prototype.copy.call(t,n),t.color.copy(n.color),t.map=n.map,this.cache.add(e,t)),n=t}if(r||i||a){let e=`ClonedMaterial:`+n.uuid+`:`;r&&(e+=`derivative-tangents:`),i&&(e+=`vertex-colors:`),a&&(e+=`flat-shading:`);let t=this.cache.get(e);t||(t=n.clone(),i&&(t.vertexColors=!0),a&&(t.flatShading=!0),r&&(t.normalScale&&(t.normalScale.y*=-1),t.clearcoatNormalScale&&(t.clearcoatNormalScale.y*=-1)),this.cache.add(e,t),this.associations.set(t,this.associations.get(n))),n=t}e.material=n}getMaterialType(){return Ud}loadMaterial(e){let t=this,n=this.json,r=this.extensions,i=n.materials[e],a,o={},s=i.extensions||{},c=[];if(s[hy.KHR_MATERIALS_UNLIT]){let e=r[hy.KHR_MATERIALS_UNLIT];a=e.getMaterialType(),c.push(e.extendParams(o,i,t))}else{let n=i.pbrMetallicRoughness||{};if(o.color=new V(1,1,1),o.opacity=1,Array.isArray(n.baseColorFactor)){let e=n.baseColorFactor;o.color.setRGB(e[0],e[1],e[2],Co),o.opacity=e[3]}n.baseColorTexture!==void 0&&c.push(t.assignTexture(o,`map`,n.baseColorTexture,So)),o.metalness=n.metallicFactor===void 0?1:n.metallicFactor,o.roughness=n.roughnessFactor===void 0?1:n.roughnessFactor,n.metallicRoughnessTexture!==void 0&&(c.push(t.assignTexture(o,`metalnessMap`,n.metallicRoughnessTexture)),c.push(t.assignTexture(o,`roughnessMap`,n.metallicRoughnessTexture))),a=this._invokeOne(function(t){return t.getMaterialType&&t.getMaterialType(e)}),c.push(Promise.all(this._invokeAll(function(t){return t.extendMaterialParams&&t.extendMaterialParams(e,o)})))}i.doubleSided===!0&&(o.side=2);let l=i.alphaMode||Qy.OPAQUE;if(l===Qy.BLEND?(o.transparent=!0,o.depthWrite=!1):(o.transparent=!1,l===Qy.MASK&&(o.alphaTest=i.alphaCutoff===void 0?.5:i.alphaCutoff)),i.normalTexture!==void 0&&a!==jl&&(c.push(t.assignTexture(o,`normalMap`,i.normalTexture)),o.normalScale=new z(1,1),i.normalTexture.scale!==void 0)){let e=i.normalTexture.scale;o.normalScale.set(e,e)}if(i.occlusionTexture!==void 0&&a!==jl&&(c.push(t.assignTexture(o,`aoMap`,i.occlusionTexture)),i.occlusionTexture.strength!==void 0&&(o.aoMapIntensity=i.occlusionTexture.strength)),i.emissiveFactor!==void 0&&a!==jl){let e=i.emissiveFactor;o.emissive=new V().setRGB(e[0],e[1],e[2],Co)}return i.emissiveTexture!==void 0&&a!==jl&&c.push(t.assignTexture(o,`emissiveMap`,i.emissiveTexture,So)),Promise.all(c).then(function(){let n=new a(o);return i.name&&(n.name=i.name),tb(n,i),t.associations.set(n,{materials:e}),i.extensions&&eb(r,n,i),n})}createUniqueName(e){let t=gp.sanitizeNodeName(e||``);return t in this.nodeNamesUsed?t+`_`+ ++this.nodeNamesUsed[t]:(this.nodeNamesUsed[t]=0,t)}loadGeometries(e){let t=this,n=this.extensions,r=this.primitiveCache;function i(e){return n[hy.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(e,t).then(function(n){return db(n,e,t)})}let a=[];for(let n=0,o=e.length;nJg(e,1)):o.mode===Wy.TRIANGLE_FAN&&(e=e.then(e=>Jg(e,2))),r[s]={primitive:o,promise:e},a.push(e)}}return Promise.all(a)}loadMesh(e){let t=this,n=this.json,r=this.extensions,i=n.meshes[e],a=i.primitives,o=[];for(let e=0,t=a.length;e0&&rb(d,i),d.name=t.createUniqueName(i.name||`mesh_`+e),tb(d,i),u.extensions&&eb(r,d,u),t.assignFinalMaterial(d),c.push(d)}for(let n=0,r=c.length;n0){let e=t.userData.pivot,r=n[0];t.pivot=new B().fromArray(e),t.position.x-=e[0],t.position.y-=e[1],t.position.z-=e[2],r.position.set(0,0,0),delete t.userData.pivot}return t})}_loadNodeShallow(e){let t=this.json,n=this.extensions,r=this;if(this.nodeCache[e]!==void 0)return this.nodeCache[e];let i=t.nodes[e],a=i.name?r.createUniqueName(i.name):``,o=[],s=r._invokeOne(function(t){return t.createNodeMesh&&t.createNodeMesh(e)});return s&&o.push(s),i.camera!==void 0&&o.push(r.getDependency(`camera`,i.camera).then(function(e){return r._getNodeRef(r.cameraCache,i.camera,e)})),r._invokeAll(function(t){return t.createNodeAttachment&&t.createNodeAttachment(e)}).forEach(function(e){o.push(e)}),this.nodeCache[e]=Promise.all(o).then(function(t){let o;if(o=i.isBone===!0?new tu:t.length>1?new pc:t.length===1?t[0]:new fc,o!==t[0])for(let e=0,n=t.length;e1){let e=r.associations.get(o);r.associations.set(o,{...e})}return r.associations.get(o).nodes=e,o}),this.nodeCache[e]}loadScene(e){let t=this.extensions,n=this.json.scenes[e],r=this,i=new pc;n.name&&(i.name=r.createUniqueName(n.name)),tb(i,n),n.extensions&&eb(t,i,n);let a=n.nodes||[],o=[];for(let e=0,t=a.length;e{let t=new Map;for(let[e,n]of r.associations)(e instanceof Tl||e instanceof Ns)&&t.set(e,n);return e.traverse(e=>{let n=r.associations.get(e);n!=null&&t.set(e,n)}),t})(i),i})}_createAnimationTracks(e,t,n,r,i){let a=[],o=e.name?e.name:e.uuid,s=[];function c(e){e.morphTargetInfluences&&s.push(e.name?e.name:e.uuid)}Xy[i.path]===Xy.weights?(c(e),e.isGroup&&e.children.forEach(c)):s.push(o);let l;switch(Xy[i.path]){case Xy.weights:l=df;break;case Xy.rotation:l=pf;break;case Xy.translation:case Xy.scale:l=hf;break;default:switch(n.itemSize){case 1:l=df;break;default:l=hf}}let u=r.interpolation===void 0?mo:Zy[r.interpolation],d=this._getArrayFromAccessor(n);for(let e=0,n=s.length;e{e.uniforms.uGearBlood=r,e.vertexShader=e.vertexShader.replace(`#include `,`#include \n${t?`attribute vec3 bindPosition;`:``}\n${mb}`).replace(`#include `,`#include \nvGearPos = ${t?`bindPosition`:`position`};`),e.fragmentShader=e.fragmentShader.replace(`#include `,`#include \n${mb}\nfloat gearSoaked = 0.0;\nfloat gearTrim = 0.0;`).replace(`#include `,`#include \n${hb}`).replace(`#include `,`#include \n${gb}`)},e.customProgramCacheKey=()=>`hands-gear-${t?`baked`:`live`}`,e.needsUpdate=!0,r}var vb={tint:16777215,hair:4862755,shaved:0,beard:0,jaw:0,nose:0,brow:0,skull:0},yb={referee:{tint:15916235,hair:9210502,shaved:0,beard:0,jaw:-.4,nose:.3,brow:-.2,skull:.2},blueCorner:{tint:11109480,hair:1380364,shaved:1,beard:.8,jaw:.7,nose:.5,brow:.6,skull:.4},redCorner:{tint:16772829,hair:8007452,shaved:0,beard:.6,jaw:.2,nose:-.5,brow:.1,skull:-.3},blueCutman:{tint:14202008,hair:2234128,shaved:0,beard:0,jaw:-.6,nose:.8,brow:-.5,skull:-.5},redCutman:{tint:9070160,hair:1380364,shaved:1,beard:.45,jaw:.5,nose:.2,brow:.8,skull:.6}},bb=[16777215,16047307,14268057,12555896,10717820,9071708,7296328],xb=[1380364,2234128,3810326,5913120,9071164,11045976,7222304,9210502];function Sb(e){let t=2166136261;for(let n=0;n>>0}function Cb(e){return()=>(e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296)}function wb(e){let t=Cb(Sb(e)||1),n=e=>e[Math.floor(t()*e.length)],r=()=>Math.round((t()*2-1)*100)/100;return{tint:n(bb),hair:n(xb),shaved:+(t()<.28),beard:t()<.45?0:Math.round((.35+t()*.65)*100)/100,jaw:r(),nose:r(),brow:r(),skull:r()}}var Tb=`vec3(0.84, 0.39, 0.175)`,Eb=` +`;function vb(e,t=!1,n=`gloves`){let r={value:0};return n===`trunks`&&(e.defines={...e.defines,GEAR_TRUNKS:``}),e.onBeforeCompile=e=>{e.uniforms.uGearBlood=r,e.vertexShader=e.vertexShader.replace(`#include `,`#include \n${t?`attribute vec3 bindPosition;`:``}\n${hb}`).replace(`#include `,`#include \nvGearPos = ${t?`bindPosition`:`position`};`),e.fragmentShader=e.fragmentShader.replace(`#include `,`#include \n${hb}\nfloat gearSoaked = 0.0;\nfloat gearTrim = 0.0;`).replace(`#include `,`#include \n${gb}`).replace(`#include `,`#include \n${_b}`)},e.customProgramCacheKey=()=>`hands-gear-${t?`baked`:`live`}`,e.needsUpdate=!0,r}var yb={tint:16777215,hair:4862755,shaved:0,beard:0,jaw:0,nose:0,brow:0,skull:0},bb={referee:{tint:15916235,hair:9210502,shaved:0,beard:0,jaw:-.4,nose:.3,brow:-.2,skull:.2},blueCorner:{tint:11109480,hair:1380364,shaved:1,beard:.8,jaw:.7,nose:.5,brow:.6,skull:.4},redCorner:{tint:16772829,hair:8007452,shaved:0,beard:.6,jaw:.2,nose:-.5,brow:.1,skull:-.3},blueCutman:{tint:14202008,hair:2234128,shaved:0,beard:0,jaw:-.6,nose:.8,brow:-.5,skull:-.5},redCutman:{tint:9070160,hair:1380364,shaved:1,beard:.45,jaw:.5,nose:.2,brow:.8,skull:.6}},xb=[16777215,16047307,14268057,12555896,10717820,9071708,7296328],Sb=[1380364,2234128,3810326,5913120,9071164,11045976,7222304,9210502];function Cb(e){let t=2166136261;for(let n=0;n>>0}function wb(e){return()=>(e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296)}function Tb(e){let t=wb(Cb(e)||1),n=e=>e[Math.floor(t()*e.length)],r=()=>Math.round((t()*2-1)*100)/100;return{tint:n(xb),hair:n(Sb),shaved:+(t()<.28),beard:t()<.45?0:Math.round((.35+t()*.65)*100)/100,jaw:r(),nose:r(),brow:r(),skull:r()}}var Eb=`vec3(0.84, 0.39, 0.175)`,Db=` uniform vec3 uLookHair; uniform vec4 uLookFace; uniform vec2 uLookGroom; @@ -4938,7 +4938,7 @@ float lookHairZone(vec3 p) { float reach = mix(3.8, 9.0, nape); return smoothstep(line - 0.5, line + 0.5, p.y) * (1.0 - smoothstep(reach, reach + 1.0, abs(p.x)) * (1.0 - nape)); } -`,Db=` +`,Ob=` { vec3 p = position; vLookPos = p; @@ -4959,29 +4959,29 @@ float lookHairZone(vec3 p) { transformed.y -= crownAway.y * crownDepth; transformed.z -= crownAway.z * crownDepth; } -`,Ob=(e,t,n)=>{let r=Math.min(1,Math.max(0,(n-e)/(t-e)));return r*r*(3-2*r)},kb=(e,t,n)=>e+(t-e)*n;function Ab(e,t,n){let r=kb(kb(115.3,120.6,Ob(-6.8,-4.6,n)),125.5,Ob(-4.6,1.6,n)),i=Ob(116,121,t),a=kb(3.8,9,i);return Ob(r-.5,r+.5,t)*(1-Ob(a,a+1,Math.abs(e))*(1-i))}function jb(e,t,n){let{x:r,y:i,z:a}=e,o=(1-Ob(113.5,118,i))*Ob(108.5,112,i)*Ob(-7,-2,a),s=1-Ob(0,2.6,Math.hypot(r,i-117.2,a-5)),c=(1-Ob(0,2.2,Math.abs(i-123.2)))*Ob(1.5,3.5,a),l=r*.12*t.jaw*o+r*.4*t.nose*s+r*.06*t.skull*Ob(112,116,i),u=0,d=.5*t.nose*s+.55*t.brow*c,f=kb(.9,1.9,Ob(-1,3,a)*Ob(123.5,126,i))*Ab(r,i,a)*t.shaved,p=r,m=(i-120)*1.1,h=a+2.5,g=Math.hypot(p,m,h)||1;return l-=p/g*f,u-=m/g*f,d-=h/g*f,n.set(r+l,i+u,a+d)}var Mb=` +`,kb=(e,t,n)=>{let r=Math.min(1,Math.max(0,(n-e)/(t-e)));return r*r*(3-2*r)},Ab=(e,t,n)=>e+(t-e)*n;function jb(e,t,n){let r=Ab(Ab(115.3,120.6,kb(-6.8,-4.6,n)),125.5,kb(-4.6,1.6,n)),i=kb(116,121,t),a=Ab(3.8,9,i);return kb(r-.5,r+.5,t)*(1-kb(a,a+1,Math.abs(e))*(1-i))}function Mb(e,t,n){let{x:r,y:i,z:a}=e,o=(1-kb(113.5,118,i))*kb(108.5,112,i)*kb(-7,-2,a),s=1-kb(0,2.6,Math.hypot(r,i-117.2,a-5)),c=(1-kb(0,2.2,Math.abs(i-123.2)))*kb(1.5,3.5,a),l=r*.12*t.jaw*o+r*.4*t.nose*s+r*.06*t.skull*kb(112,116,i),u=0,d=.5*t.nose*s+.55*t.brow*c,f=Ab(.9,1.9,kb(-1,3,a)*kb(123.5,126,i))*jb(r,i,a)*t.shaved,p=r,m=(i-120)*1.1,h=a+2.5,g=Math.hypot(p,m,h)||1;return l-=p/g*f,u-=m/g*f,d-=h/g*f,n.set(r+l,i+u,a+d)}var Nb=` vLookPos = bindPosition; -`,Nb=` +`,Pb=` #ifdef USE_MAP { vec3 p = vLookPos; float scanned = dot(sampledDiffuseColor.rgb, vec3(0.2126, 0.7152, 0.0722)); float hair = lookHairZone(p) * max(1.0 - smoothstep(0.13, 0.26, scanned), smoothstep(126.2, 127.4, p.y)); vec3 dyed = uLookHair * clamp(scanned / 0.075, 0.45, 1.7); - vec3 scalp = mix(${Tb}, uLookHair, 0.1) * clamp(scanned / 0.075, 0.85, 1.12) * 0.9; + vec3 scalp = mix(${Eb}, uLookHair, 0.1) * clamp(scanned / 0.075, 0.85, 1.12) * 0.9; diffuseColor.rgb = mix(diffuseColor.rgb, mix(dyed, scalp * diffuse, uLookGroom.x), hair); // The beard covers the chin and runs back along the jaw to the ear, clear of the neck beneath it. float front = mix(1.4, -4.8, smoothstep(111.2, 114.6, p.y)); float jaw = (1.0 - smoothstep(115.4, 116.8, p.y)) * smoothstep(109.6, 110.6, p.y) * smoothstep(front - 0.6, front + 0.6, p.z); float lips = 1.0 - smoothstep(0.8, 2.0, length(vec3(p.x * 0.55, p.y - 114.3, (p.z - 4.8) * 0.4))); float grain = 0.8 + 0.2 * sin(p.x * 41.0 + p.z * 13.0) * sin(p.y * 47.0 + p.z * 29.0); - diffuseColor.rgb = mix(diffuseColor.rgb, mix(uLookHair * 0.8, ${Tb} * diffuse, 0.12), jaw * (1.0 - lips) * uLookGroom.y * grain * 0.88); + diffuseColor.rgb = mix(diffuseColor.rgb, mix(uLookHair * 0.8, ${Eb} * diffuse, 0.12), jaw * (1.0 - lips) * uLookGroom.y * grain * 0.88); } #endif -`,Pb=` +`,Fb=` uniform vec3 uLookExpression; varying float vLookJaw; -`,Fb=` +`,Ib=` { vec3 p = position; // Everything of the face under the seam of the lips drops with the jaw and swings back; the lips part between. @@ -4993,7 +4993,7 @@ varying float vLookJaw; transformed.y -= 0.4 * uLookExpression.z * frown; transformed.x -= sign(p.x) * 0.18 * uLookExpression.z * frown; } -`,Ib=` +`,Lb=` #ifdef USE_MAP { vec3 p = vLookPos; @@ -5005,7 +5005,7 @@ varying float vLookJaw; float teeth = (1.0 - smoothstep(0.14, 0.22, vLookJaw)) * (1.0 - smoothstep(0.8, 1.3, abs(p.x))); diffuseColor.rgb = mix(diffuseColor.rgb, mix(vec3(0.035, 0.006, 0.008), vec3(0.5, 0.44, 0.36), teeth), parted * between); // The upper lid comes down over the eye along its own curve, a dark lash line at its edge. - vec3 lidSkin = ${Tb} * diffuse * 0.72; + vec3 lidSkin = ${Eb} * diffuse * 0.72; for (int e = 0; e < 2; e++) { vec3 q = p - (e == 0 ? vec3(2.65, 120.65, 3.6) : vec3(-2.75, 120.75, 3.4)); float across = q.x / 1.35; @@ -5017,7 +5017,7 @@ varying float vLookJaw; } } #endif -`,Lb=class{material;uniforms={uLookHair:{value:new V(vb.hair)},uLookFace:{value:new Ns},uLookGroom:{value:new z},uLookExpression:{value:new B}};current=vb;constructor(e,t=!1){this.material=e;let n=this.uniforms,r=e.onBeforeCompile,i=Object.hasOwn(e,`customProgramCacheKey`)?e.customProgramCacheKey():`plain`;e.onBeforeCompile=(i,a)=>{r.call(e,i,a),Object.assign(i.uniforms,n),i.vertexShader=i.vertexShader.replace(`#include `,`#include \n${t?`attribute vec3 bindPosition;`:Pb}\n${Eb}`).replace(`#include `,`${t?Mb:Db+Fb}\n#include `),i.fragmentShader=i.fragmentShader.replace(`#include `,`#include \n${t?``:Pb}${Eb}`).replace(`#include `,`#include \n${Nb}${t?``:Ib}`)},e.customProgramCacheKey=()=>`${i}-look-${t?`baked`:`live`}`,e.needsUpdate=!0}set(e){this.current=e,this.material.color.setHex(e.tint),this.uniforms.uLookHair.value.setHex(e.hair),this.uniforms.uLookFace.value.set(e.jaw,e.nose,e.brow,e.skull),this.uniforms.uLookGroom.value.set(e.shaved,e.beard)}setExpression(e,t,n){this.uniforms.uLookExpression.value.set(e,t,n)}get look(){return this.current}},Rb=new B;function zb(e,t,n,r,i,a){let o=2*Math.PI*i/4,s=Math.max(a-2*i,0),c=Math.PI/4;Rb.copy(t),Rb[r]=0,Rb.normalize();let l=.5*o/(o+s),u=1-Rb.angleTo(e)/c;return Math.sign(Rb[n])===1?u*l:s/(o+s)+l+l*(1-u)}var Bb=class e extends Wu{constructor(e=1,t=1,n=1,r=2,i=.1){let a=r*2+1;if(i=Math.min(e/2,t/2,n/2,i),super(1,1,1,a,a,a),this.type=`RoundedBoxGeometry`,this.parameters={width:e,height:t,depth:n,segments:r,radius:i},a===1)return;let o=this.toNonIndexed();this.index=null,this.attributes.position=o.attributes.position,this.attributes.normal=o.attributes.normal,this.attributes.uv=o.attributes.uv;let s=new B,c=new B,l=new B(e,t,n).divideScalar(2).subScalar(i),u=this.attributes.position.array,d=this.attributes.normal.array,f=this.attributes.uv.array,p=u.length/6,m=new B,h=.5/a;for(let r=0,a=0;r{r.call(e,i,a),Object.assign(i.uniforms,n),i.vertexShader=i.vertexShader.replace(`#include `,`#include \n${t?`attribute vec3 bindPosition;`:Fb}\n${Db}`).replace(`#include `,`${t?Nb:Ob+Ib}\n#include `),i.fragmentShader=i.fragmentShader.replace(`#include `,`#include \n${t?``:Fb}${Db}`).replace(`#include `,`#include \n${Pb}${t?``:Lb}`)},e.customProgramCacheKey=()=>`${i}-look-${t?`baked`:`live`}`,e.needsUpdate=!0}set(e){this.current=e,this.material.color.setHex(e.tint),this.uniforms.uLookHair.value.setHex(e.hair),this.uniforms.uLookFace.value.set(e.jaw,e.nose,e.brow,e.skull),this.uniforms.uLookGroom.value.set(e.shaved,e.beard)}setExpression(e,t,n){this.uniforms.uLookExpression.value.set(e,t,n)}get look(){return this.current}},zb=new B;function Bb(e,t,n,r,i,a){let o=2*Math.PI*i/4,s=Math.max(a-2*i,0),c=Math.PI/4;zb.copy(t),zb[r]=0,zb.normalize();let l=.5*o/(o+s),u=1-zb.angleTo(e)/c;return Math.sign(zb[n])===1?u*l:s/(o+s)+l+l*(1-u)}var Vb=class e extends Gu{constructor(e=1,t=1,n=1,r=2,i=.1){let a=r*2+1;if(i=Math.min(e/2,t/2,n/2,i),super(1,1,1,a,a,a),this.type=`RoundedBoxGeometry`,this.parameters={width:e,height:t,depth:n,segments:r,radius:i},a===1)return;let o=this.toNonIndexed();this.index=null,this.attributes.position=o.attributes.position,this.attributes.normal=o.attributes.normal,this.attributes.uv=o.attributes.uv;let s=new B,c=new B,l=new B(e,t,n).divideScalar(2).subScalar(i),u=this.attributes.position.array,d=this.attributes.normal.array,f=this.attributes.uv.array,p=u.length/6,m=new B,h=.5/a;for(let r=0,a=0;r` -${Jb} +`,Xb={head:`1.0 - smoothstep(outfitCollar(p) - 0.3, outfitCollar(p) + 0.3, p.y)`,body:`p.y < 60.0 ? 1.0 : 1.0 - smoothstep(uOutfitShape.x - 0.4, uOutfitShape.x + 0.4, abs(p.x))`,shoes:`smoothstep(9.0, 11.0, p.y)`,pants:`1.0`},Zb=e=>` +${Yb} varying vec3 vOutfitPos; vec3 outfitBindNormal = vec3(0.0, 1.0, 0.0); -float outfitClothAt(vec3 p) { return ${Yb[e]}; } +float outfitClothAt(vec3 p) { return ${Xb[e]}; } vec3 outfitRounded(vec3 p, vec3 n) { if (p.y < 60.0) { vec2 radial = normalize(p.xz - outfitLegAxis(p.y, sign(p.x)) + vec2(1e-4)); @@ -5081,20 +5081,20 @@ vec3 outfitDraped(vec3 p, vec3 at, float cloth) { at.yz += around / span * (max(span, sleeve) - span) * arm; return at; } -`,Zb=` +`,Qb=` { vec3 p = position; float cloth = outfitClothAt(p); objectNormal = normalize(mix(objectNormal, outfitRounded(p, objectNormal), 0.97 * cloth)); outfitBindNormal = objectNormal; } -`,Qb=` +`,$b=` float side = sign(p.x); vec2 axis = outfitLegAxis(p.y, side); vec2 offset = transformed.xz - axis; float reach = max(length(offset), 1e-3); float tube = mix(5.2, 6.0, smoothstep(12.0, 40.0, p.y)); -`,$b={head:` +`,ex={head:` { vec3 p = position; vOutfitPos = p; @@ -5106,7 +5106,7 @@ vec3 outfitDraped(vec3 p, vec3 at, float cloth) { vec3 p = position; vOutfitPos = p; if (p.y < 60.0) { - ${Qb} + ${$b} float weight = 1.0 - smoothstep(40.5, 45.0, p.y); transformed.xz = axis + offset / reach * mix(reach, max(reach, tube), weight); } else { @@ -5118,7 +5118,7 @@ vec3 outfitDraped(vec3 p, vec3 at, float cloth) { { vec3 p = position; vOutfitPos = p; - ${Qb} + ${$b} float weight = smoothstep(9.0, 11.5, p.y); transformed.xz = axis + offset / reach * mix(reach, max(reach, tube), weight); } @@ -5131,8 +5131,8 @@ vec3 outfitDraped(vec3 p, vec3 at, float cloth) { vec2 narrow = vec2(mix(0.76, 1.0, slim), mix(0.62, 1.0, slim)); transformed.xz = mix(transformed.xz, axis + (transformed.xz - axis) * narrow, smoothstep(0.5, 4.0, abs(p.x))); } -`},ex=` -${Jb} +`},tx=` +${Yb} uniform vec3 uOutfitShirt; uniform vec3 uOutfitTrousers; uniform vec3 uOutfitAccent; @@ -5156,7 +5156,7 @@ vec3 outfitShirtTone(vec3 p) { float band = (1.0 - smoothstep(7.0, 7.2, reach)) * step(104.0, p.y); vec3 tone = uOutfitShirt * mix(mix(0.9, 1.0, fold), 1.07, band); tone *= 1.0 - 0.4 * (1.0 - smoothstep(0.0, 0.3, abs(reach - 7.25))) * step(104.0, p.y); - float hem = min(uOutfitShape.x, ${Gb.toFixed(1)}) - 2.4; + float hem = min(uOutfitShape.x, ${Kb.toFixed(1)}) - 2.4; tone *= mix(1.0, 0.86, smoothstep(hem - 0.1, hem + 0.1, along)); if (along < 1.0 && p.z > 0.5 && p.y < 106.0) { tone *= 0.92; @@ -5167,7 +5167,7 @@ vec3 outfitShirtTone(vec3 p) { outfitGloss = tie * 0.4; return mix(tone, uOutfitAccent, tie); } -`,tx={head:` +`,nx={head:` { vec3 p = vOutfitPos; float collar = outfitCollar(p); @@ -5203,13 +5203,13 @@ vec3 outfitShirtTone(vec3 p) { outfitCloth = 1.0 - belt; outfitGloss = belt; } -`},nx=` +`},rx=` roughnessFactor = mix(mix(roughnessFactor, 0.88, outfitCloth), 0.32, outfitGloss); -`,rx=` +`,ix=` #ifdef USE_CLEARCOAT material.clearcoat *= 1.0 - outfitCloth; #endif -`;function ix(e,t,n){let r={uOutfitShirt:{value:new V(n.shirt)},uOutfitTrousers:{value:new V(n.trousers)},uOutfitAccent:{value:new V(n.accent)},uOutfitShape:{value:new Ns(n.sleeves===`long`?63.4:Kb,+!!n.bowTie,qb,0)}},i=e.onBeforeCompile,a=Object.hasOwn(e,`customProgramCacheKey`)?e.customProgramCacheKey():`plain`;e.onBeforeCompile=(n,a)=>{i.call(e,n,a),Object.assign(n.uniforms,r),n.vertexShader=n.vertexShader.replace(`#include `,`#include \n${Xb(t)}`).replace(`#include `,`#include \n${Zb}`).replace(`#include `,`#include \n${$b[t]}`),n.fragmentShader=n.fragmentShader.replace(`#include `,`#include \n${ex}`).replace(`#include `,`#include \n${tx[t]}`).replace(`#include `,`#include \n${nx}`).replace(`#include `,`#include \n${rx}`)},e.customProgramCacheKey=()=>`${a}-outfit-${t}`,e.needsUpdate=!0}var ax=new B(0,1,0);function ox(e,t,n,r){let i=new Gu(r,n,1,6);return i.applyQuaternion(new ms().setFromUnitVectors(ax,t)),i.translate(e.x+t.x*n*.5,e.y+t.y*n*.5,e.z+t.z*n*.5),i}function sx(e){let t=e===`left`?-1:1,n=[],r=new Bb(8.4,9.2,2.8,1,1.25);r.translate(0,5.2,0),n.push(r);let i=new Gu(2.2,2.2,1,6);i.scale(1.3,1,.9),i.translate(0,.4,0),n.push(i);let a=[{x:3.2*t,y:9.1,scale:.95,curl:.22,splay:.12*t},{x:1.08*t,y:9.5,scale:1.05,curl:.34,splay:.03*t},{x:-1.05*t,y:9.3,scale:.98,curl:.46,splay:-.05*t},{x:-3.05*t,y:8.7,scale:.8,curl:.6,splay:-.16*t}];for(let e of a){let t=new B(e.x,e.y,0),r=e.curl;for(let[i,a,o]of[[4.3,1.04,.55],[2.7,.95,.5],[2.2,.86,0]]){let s=new B(Math.sin(e.splay)*Math.cos(r),Math.cos(e.splay)*Math.cos(r),Math.sin(r)),c=i*e.scale;n.push(ox(t,s,c,a*(.88+.12*e.scale))),t.addScaledVector(s,c),r+=o}}let o=new Od(1.9,6,4);o.scale(1.15,1.5,.95),o.translate(2.7*t,3.3,.9),n.push(o);let s=new B(3.7*t,3.4,.9),c=new B(.62*t,.64,.45).normalize();n.push(ox(s,c,3.9,1.2)),s.addScaledVector(c,3.9),n.push(ox(s,new B(.3*t,.82,.48).normalize(),3,1.05));let l=n.map(e=>{let t=e.index===null?e:e.toNonIndexed();return t.deleteAttribute(`uv`),t}),u=Wg(l,!1);for(let e of new Set([...n,...l]))e.dispose();if(u===null)throw Error(`hand geometry could not be merged`);return u}function cx(){let e=new qu(3.9,6,9.2,20,1,!1);return e.scale(1,1,.96),e.translate(0,21.1,0),e}var lx=` +`;function ax(e,t,n){let r={uOutfitShirt:{value:new V(n.shirt)},uOutfitTrousers:{value:new V(n.trousers)},uOutfitAccent:{value:new V(n.accent)},uOutfitShape:{value:new Ps(n.sleeves===`long`?63.4:qb,+!!n.bowTie,Jb,0)}},i=e.onBeforeCompile,a=Object.hasOwn(e,`customProgramCacheKey`)?e.customProgramCacheKey():`plain`;e.onBeforeCompile=(n,a)=>{i.call(e,n,a),Object.assign(n.uniforms,r),n.vertexShader=n.vertexShader.replace(`#include `,`#include \n${Zb(t)}`).replace(`#include `,`#include \n${Qb}`).replace(`#include `,`#include \n${ex[t]}`),n.fragmentShader=n.fragmentShader.replace(`#include `,`#include \n${tx}`).replace(`#include `,`#include \n${nx[t]}`).replace(`#include `,`#include \n${rx}`).replace(`#include `,`#include \n${ix}`)},e.customProgramCacheKey=()=>`${a}-outfit-${t}`,e.needsUpdate=!0}var ox=new B(0,1,0);function sx(e,t,n,r){let i=new Ku(r,n,1,6);return i.applyQuaternion(new hs().setFromUnitVectors(ox,t)),i.translate(e.x+t.x*n*.5,e.y+t.y*n*.5,e.z+t.z*n*.5),i}function cx(e){let t=e===`left`?-1:1,n=[],r=new Vb(8.4,9.2,2.8,1,1.25);r.translate(0,5.2,0),n.push(r);let i=new Ku(2.2,2.2,1,6);i.scale(1.3,1,.9),i.translate(0,.4,0),n.push(i);let a=[{x:3.2*t,y:9.1,scale:.95,curl:.22,splay:.12*t},{x:1.08*t,y:9.5,scale:1.05,curl:.34,splay:.03*t},{x:-1.05*t,y:9.3,scale:.98,curl:.46,splay:-.05*t},{x:-3.05*t,y:8.7,scale:.8,curl:.6,splay:-.16*t}];for(let e of a){let t=new B(e.x,e.y,0),r=e.curl;for(let[i,a,o]of[[4.3,1.04,.55],[2.7,.95,.5],[2.2,.86,0]]){let s=new B(Math.sin(e.splay)*Math.cos(r),Math.cos(e.splay)*Math.cos(r),Math.sin(r)),c=i*e.scale;n.push(sx(t,s,c,a*(.88+.12*e.scale))),t.addScaledVector(s,c),r+=o}}let o=new kd(1.9,6,4);o.scale(1.15,1.5,.95),o.translate(2.7*t,3.3,.9),n.push(o);let s=new B(3.7*t,3.4,.9),c=new B(.62*t,.64,.45).normalize();n.push(sx(s,c,3.9,1.2)),s.addScaledVector(c,3.9),n.push(sx(s,new B(.3*t,.82,.48).normalize(),3,1.05));let l=n.map(e=>{let t=e.index===null?e:e.toNonIndexed();return t.deleteAttribute(`uv`),t}),u=Gg(l,!1);for(let e of new Set([...n,...l]))e.dispose();if(u===null)throw Error(`hand geometry could not be merged`);return u}function lx(){let e=new Ju(3.9,6,9.2,20,1,!1);return e.scale(1,1,.96),e.translate(0,21.1,0),e}var ux=` void RE_Direct_Skin( const in IncidentLight directLight, const in vec3 geometryPosition, const in vec3 geometryNormal, const in vec3 geometryViewDir, const in vec3 geometryClearcoatNormal, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) { RE_Direct_Physical( directLight, geometryPosition, geometryNormal, geometryViewDir, geometryClearcoatNormal, material, reflectedLight ); float facing = dot( geometryNormal, directLight.direction ); @@ -5221,13 +5221,13 @@ void RE_Direct_Skin( const in IncidentLight directLight, const in vec3 geometryP } #undef RE_Direct #define RE_Direct RE_Direct_Skin -`,ux=.35;function dx(e){e.bumpMap=e.map,e.bumpScale=ux;let t=e.onBeforeCompile,n=Object.hasOwn(e,`customProgramCacheKey`)?e.customProgramCacheKey():`plain`;e.onBeforeCompile=(n,r)=>{t.call(e,n,r),n.fragmentShader=n.fragmentShader.replace(`#include `,`#include \n${lx}`)},e.customProgramCacheKey=()=>`${n}-skin`,e.needsUpdate=!0}var fx={x:7,y:66.1,z:-3},px={x:8.4,y:39.4,z:-4.7},mx=62,hx=58,gx=72,_x=.78,vx=.85,yx=.66,bx=(e,t,n)=>{let r=R.clamp((n-e)/(t-e),0,1);return r*r*(3-2*r)},xx=R.lerp;function Sx(e,t){let n=e.clone(),r=n.getAttribute(`position`),i=n.getAttribute(`skinIndex`),a=new Map([[t.indexOf(fb.kneeL),t.indexOf(fb.hipL)],[t.indexOf(fb.kneeR),t.indexOf(fb.hipR)]]);for(let e=0;e0&&(t=Math.sign(t)*(l+d*xx(1,_x,s))),o=u+(o-u)*xx(1,o>u?vx:yx,s),r.setXYZ(e,t,n,o);for(let t=0;t>>0||1,this.blinkIn=this.nextBlink()}nextBlink(){return this.seed=Math.imul(this.seed,1664525)+1013904223>>>0,wx[0]+this.seed/4294967296*(wx[1]-wx[0])}flinch(e,t){let n=Math.min(1,Math.max(0,e));this.wince=Math.max(this.wince,t?.55+.45*n:.3+.4*n),this.gape=Math.max(this.gape,t?.25+.6*n:.5+.5*n)}update(e,t,n,r,i,a){let o=Math.max(0,e);this.wince=Math.max(0,this.wince-this.wince*Tx*o-.2*o),this.gape=Math.max(0,this.gape-this.gape*Tx*.6*o-.15*o),!t&&!a&&(this.blinkIn-=o,this.blinkIn<=0&&(this.blink=Cx,this.blinkIn=this.nextBlink()),this.breath+=o*Ex*Math.PI*2),this.blink=Math.max(0,this.blink-o);let s=this.blink>0?Math.sin(this.blink/Cx*Math.PI):0,c=t?.3:.3+.25*Math.sin(this.breath),l=a?1:Math.max(s,this.wince,n?.4:0,i*.55),u=a?.45:Math.max(this.gape,n?.3:0,r*c,i*.35),d=a?0:Math.max(+!!n,this.wince*.8),f=1-Math.exp(-14*o);this.lids=Math.max(s,this.wince,this.lids+(l-this.lids)*f),this.mouth+=(u-this.mouth)*f,this.brow+=(d-this.brow)*f}},Ox={hips:fb.hips,spine:fb.spine,chest:`Spine1_024`,upperChest:fb.chest,neck:`Neck_012`,head:fb.head,clavicleL:`LeftShoulder_09`,shoulderL:fb.shoulderL,elbowL:fb.elbowL,gloveL:fb.gloveL,clavicleR:`RightShoulder_020`,shoulderR:fb.shoulderR,elbowR:fb.elbowR,gloveR:fb.gloveR,hipL:fb.hipL,kneeL:fb.kneeL,ankleL:fb.ankleL,toeL:`LeftToeBase_011`,hipR:fb.hipR,kneeR:fb.kneeR,ankleR:fb.ankleR,toeR:`RightToeBase_022`},kx=new B,Ax=new B,jx=new B,Mx=new Rs,Nx=new ms,Px=new ms,Fx=new B,Ix=new B,Lx=new B,Rx=new B,zx=new B,Bx=new B,Vx=new B,Hx=new B,Ux=new B,Wx=new B;function Gx(e,t){return t.setFromMatrixPosition(e.matrixWorld)}function Kx(e,t){return e.matrixWorld.decompose(Fx,t,Ix),t}function qx(e,t,n,r){return Ax.copy(e).normalize(),n===`z`?(jx.copy(t).addScaledVector(Ax,-t.dot(Ax)),jx.lengthSq()<1e-8&&jx.set(0,0,1).addScaledVector(Ax,-Ax.z),jx.normalize(),kx.crossVectors(Ax,jx).normalize()):(kx.copy(t).addScaledVector(Ax,-t.dot(Ax)),kx.lengthSq()<1e-8&&kx.set(1,0,0).addScaledVector(Ax,-Ax.x),kx.normalize(),jx.crossVectors(kx,Ax).normalize()),Mx.makeBasis(kx,Ax,jx),r.setFromRotationMatrix(Mx)}var Jx=class{bones;metrics;restLocal=new Map;restPositions=new Map;limb={reached:!1,joint:new B};constructor(e){let t=new Map;e.traverse(e=>{e instanceof eu&&t.set(e.name,e)});let n={};for(let[e,r]of Object.entries(Ox)){let i=t.get(r);if(i===void 0)throw Error(`fighter rig missing bone ${r} (${e})`);n[e]=i}this.bones=n,e.updateMatrixWorld(!0);for(let e of t.values())this.restLocal.set(e,e.quaternion.clone()),this.restPositions.set(e,e.position.clone());let r=(e,t)=>Gx(n[e],Lx).distanceTo(Gx(n[t],Rx)),i=Gx(n.hips,Lx).clone(),a=Gx(n.hips.parent??e,Rx).clone(),o=n.hips.position.length(),s=i.distanceTo(a);this.metrics={hipsHeight:i.y,headHeight:Gx(n.head,Lx).y,chestHeight:Gx(n.upperChest,Lx).y,ankleHeight:Gx(n.ankleL,Lx).y,armL:{upper:r(`shoulderL`,`elbowL`),lower:r(`elbowL`,`gloveL`)},armR:{upper:r(`shoulderR`,`elbowR`),lower:r(`elbowR`,`gloveR`)},legL:{upper:r(`hipL`,`kneeL`),lower:r(`kneeL`,`ankleL`)},legR:{upper:r(`hipR`,`kneeR`),lower:r(`kneeR`,`ankleR`)},footLength:r(`ankleL`,`toeL`),unitsPerMeter:s>1e-6?o/s:1}}resetToRest(){for(let[e,t]of this.restLocal){e.quaternion.copy(t);let n=this.restPositions.get(e);n!==void 0&&e.position.copy(n)}}restLocalQuaternion(e){return this.restLocal.get(e)??e.quaternion}restLocalPosition(e){return this.restPositions.get(e)??e.position}position(e,t){return Gx(this.bones[e],t)}setWorldRotation(e,t){let n=e.parent;n===null?e.quaternion.copy(t):(Kx(n,Px),e.quaternion.copy(Px.invert().multiply(t)).normalize()),e.updateWorldMatrix(!1,!1)}setWorldFrame(e,t,n,r){this.setWorldRotation(e,qx(t,n,r,Nx))}setWorldPosition(e,t){let n=e.parent;n===null?e.position.copy(t):(e.position.copy(t),n.worldToLocal(e.position)),e.updateWorldMatrix(!1,!1)}aimAt(e,t,n){if(e.updateWorldMatrix(!1,!1),Gx(e,Lx),zx.subVectors(t,Lx),zx.lengthSq()<1e-10)return;Kx(e,Nx);let r=n===`z`?Wx.set(0,0,1):Wx.set(1,0,0);this.setWorldFrame(e,zx,r.applyQuaternion(Nx),n)}solveLimb(e,t,n,r,i,a,o,s=.01){e.updateWorldMatrix(!1,!1);let c=Gx(e,Lx);zx.subVectors(r,c);let l=n.upper+n.lower-s,u=R.clamp(zx.length(),Math.abs(n.upper-n.lower)+.005,l),d=zx.length()<=l;zx.lengthSq()<1e-10&&zx.set(0,-1,0),zx.normalize(),Bx.copy(i).addScaledVector(zx,-i.dot(zx)),Bx.lengthSq()<1e-8&&(Bx.set(0,0,1).addScaledVector(zx,-zx.z),Bx.lengthSq()<1e-8&&Bx.set(1,0,0)),Bx.normalize();let f=R.clamp((n.upper*n.upper+u*u-n.lower*n.lower)/(2*n.upper*u),-1,1),p=n.upper*f,m=n.upper*Math.sqrt(Math.max(0,1-f*f));Vx.copy(c).addScaledVector(zx,p).addScaledVector(Bx,m),Hx.crossVectors(Bx,zx).multiplyScalar(o).normalize(),Ux.copy(Vx).sub(c),this.setWorldFrame(e,Ux,Hx,a),t.updateWorldMatrix(!1,!1);let h=Gx(t,Rx);return Ux.copy(c).addScaledVector(zx,u).sub(h),this.setWorldFrame(t,Ux,Hx,a),this.limb.reached=d,this.limb.joint.copy(h),this.limb}},Yx={x:.1059,y:.0253,z:-.0026},Xx=new B(.2018,.081,-.027),Zx=new B(-.2018,.081,-.027),Qx=(e,t,n)=>new B(e,t,n),$x=(e,t,n)=>{let r=R.clamp((n-e)/Math.max(1e-6,t-e),0,1);return r*r*(3-2*r)},eS=(e,t=1.7)=>R.clamp(e,0,1)**+t,tS=(e,t=2)=>1-(1-R.clamp(e,0,1))**t,nS=new ms,rS=new B,iS=new B,aS=new B,oS=new B,sS=new B,cS=new ms,lS=new ms,uS=new Js,dS=new B(0,1,0),fS=[[`spine`,.25,.2],[`chest`,.55,.5],[`upperChest`,1,1]],pS=class{rig;chestLocal=new B;constructor(e){this.rig=e}toWorld(e,t){return t.copy(e).applyQuaternion(nS).add(rS)}dirToWorld(e,t){return t.copy(e).applyQuaternion(nS)}setYawPitchRoll(e,t,n,r){uS.set(n,t,r,`YXZ`),cS.setFromEuler(uS),lS.copy(nS).multiply(cS),this.rig.setWorldRotation(e,lS)}apply(e,t){let n=this.rig,r=n.bones;n.resetToRest(),e.updateMatrixWorld(!0),Kx(e,nS),Gx(e,rS);let i=t.torso;this.toWorld(i.hips,iS),n.setWorldPosition(r.hips,iS),this.setYawPitchRoll(r.hips,i.hipsYaw,i.hipsPitch,i.hipsRoll);let a=i.shouldersYaw-i.hipsYaw;for(let e=0;e0&&(Gx(r.head,iS),this.dirToWorld(i.headOffset,aS),iS.add(aS),n.setWorldPosition(r.head,iS)),this.solveArm(`L`,t.handL,t.shrugL),this.solveArm(`R`,t.handR,t.shrugR),this.solveLeg(`L`,t.footL),this.solveLeg(`R`,t.footR)}solveArm(e,t,n){let r=this.rig,i=r.bones,a=e===`L`?i.clavicleL:i.clavicleR,o=e===`L`?i.shoulderL:i.shoulderR,s=e===`L`?i.elbowL:i.elbowR,c=e===`L`?i.gloveL:i.gloveR,l=e===`L`?r.metrics.armL:r.metrics.armR,u=e===`L`?Xx:Zx;this.chestLocal.copy(u),this.chestLocal.z+=n*.06,this.chestLocal.y+=n*.035,this.chestLocal.x*=1-n*.08,oS.copy(this.chestLocal).multiplyScalar(r.metrics.unitsPerMeter),i.upperChest.localToWorld(oS),r.aimAt(a,oS,`z`),o.updateWorldMatrix(!1,!1),this.toWorld(t.position,iS),this.dirToWorld(t.pole,aS),r.solveLimb(o,s,l,iS,aS,`z`,e===`L`?1:-1,.012),c.updateWorldMatrix(!1,!1),this.dirToWorld(t.knuckles,oS),this.dirToWorld(t.palm,sS),r.setWorldFrame(c,oS,sS,`z`)}solveLeg(e,t){let n=this.rig,r=n.bones,i=e===`L`?r.hipL:r.hipR,a=e===`L`?r.kneeL:r.kneeR,o=e===`L`?r.ankleL:r.ankleR,s=e===`L`?r.toeL:r.toeR,c=e===`L`?n.metrics.legL:n.metrics.legR;this.toWorld(t.position,iS),this.dirToWorld(t.toe,oS).normalize();let l=n.metrics.footLength;sS.copy(oS).multiplyScalar(l).addScaledVector(dS,-n.metrics.ankleHeight).normalize(),t.heel!==0&&(iS.addScaledVector(sS,l),cS.setFromAxisAngle(aS.crossVectors(oS,dS).normalize(),-t.heel),sS.applyQuaternion(cS),iS.addScaledVector(sS,-l)),this.dirToWorld(t.pole,aS),n.solveLimb(i,a,c,iS,aS,`x`,-1,.02),o.updateWorldMatrix(!1,!1),n.setWorldFrame(o,sS,dS,`z`),s.updateWorldMatrix(!1,!1),n.setWorldFrame(s,oS,dS,`z`)}},mS={bladeYaw:-.68,shoulderBlade:1.18,hipsHeight:.875,leadFoot:Qx(.13,0,.2),rearFoot:Qx(-.15,0,-.25),leadToe:Qx(-.26,0,.97),rearToe:Qx(-.68,0,.73),leadHeel:.05,rearHeel:.3,lean:.09,hunch:.15,chinTuck:.24,leadShrug:.45,rearShrug:.25,relaxedLead:Qx(.12,-.15,.44),relaxedRear:Qx(-.07,-.11,.18),tightLead:Qx(.13,-.11,.29),tightRear:Qx(-.08,-.1,.15),guardHighLead:Qx(.1,-.12,.33),guardHighRear:Qx(-.1,-.11,.24),guardLowLead:Qx(.11,-.3,.27),guardLowRear:Qx(-.11,-.3,.25),guardHighLeadPole:Qx(.15,-1,.35),guardHighRearPole:Qx(-.15,-1,.35),guardLowLeadPole:Qx(.3,-1,-.1),guardLowRearPole:Qx(-.3,-1,-.1),guardKnuckles:Qx(-.05,1,.15),guardPalm:Qx(-.6,0,-.8),leadPole:Qx(.3,-1,.1),rearPole:Qx(-.35,-1,-.15),leadKnuckles:Qx(.05,.75,.65),leadPalm:Qx(-.9,.15,-.35),rearKnuckles:Qx(-.05,.85,.5),rearPalm:Qx(.95,.1,-.25)},hS=e=>({rise:0,length:1,width:1,weight:0,lean:0,lead:Qx(0,0,0),rear:Qx(0,0,0),flare:0,shrug:0,shell:0,spring:1,tempo:1,rock:1,bob:1,heel:1,paw:1,...e}),gS={balanced:hS({}),boxer:hS({rise:.022,width:.9,length:1.04,lean:-.03,lead:Qx(0,.02,.07),flare:-.1,spring:.7,tempo:1.25,rock:1.7,bob:.8,heel:1.3,paw:1.4}),slugger:hS({rise:-.015,width:1.22,length:.94,weight:-.035,lead:Qx(.04,-.07,-.05),rear:Qx(-.04,-.06,0),flare:.3,shrug:-.15,spring:.3,tempo:.8,rock:.5,bob:.6,heel:.3,paw:.5}),swarmer:hS({rise:-.045,width:1.06,length:.9,weight:.035,lean:.06,lead:Qx(-.03,.05,-.14),rear:Qx(0,.03,-.02),flare:-.3,spring:.9,tempo:1.1,rock:.8,bob:2.6,paw:.3}),counter_puncher:hS({rise:.005,width:.94,length:1.05,weight:-.04,lean:-.05,lead:Qx(-.11,-.3,-.2),rear:Qx(.01,.01,-.02),shrug:.45,shell:1,spring:.3,tempo:.8,rock:.4,bob:.4,heel:.8,paw:.2})};function _S(e,t,n=new B){return n.set(e.x*t,e.y,e.z)}var W={pelvis:0,hipL:1,hipR:2,belly:3,chest:4,upper:5,neck:6,shoulderL:7,shoulderR:8,head:9,crown:10,face:11,elbowL:12,wristL:13,fistL:14,elbowR:15,wristR:16,fistR:17,kneeL:18,ankleL:19,toeL:20,heelL:21,kneeR:22,ankleR:23,toeR:24,heelR:25},vS=[9,4,4,2,10,7,2,3.5,3.5,2.5,1.5,1,1.6,1,1,1.6,1,1,3.6,1.6,.4,.6,3.6,1.6,.4,.6],yS=[.12,.09,.09,.11,.14,.13,.06,.07,.07,.09,.085,.055,.05,.065,.08,.05,.065,.08,.06,.05,.035,.04,.06,.05,.035,.04],bS=.12,xS=.16,SS=.09,CS=.06,wS=.11,TS=[[W.pelvis,W.hipL],[W.pelvis,W.hipR],[W.hipL,W.hipR],[W.belly,W.hipL],[W.belly,W.hipR],[W.belly,W.pelvis],[W.pelvis,W.chest],[W.chest,W.upper],[W.upper,W.neck],[W.upper,W.shoulderL],[W.upper,W.shoulderR],[W.neck,W.shoulderL],[W.neck,W.shoulderR],[W.shoulderL,W.shoulderR],[W.neck,W.head],[W.head,W.crown],[W.head,W.face],[W.crown,W.face],[W.shoulderL,W.elbowL],[W.elbowL,W.wristL],[W.wristL,W.fistL],[W.shoulderR,W.elbowR],[W.elbowR,W.wristR],[W.wristR,W.fistR],[W.hipL,W.kneeL],[W.kneeL,W.ankleL],[W.ankleL,W.toeL],[W.ankleL,W.heelL],[W.toeL,W.heelL],[W.hipR,W.kneeR],[W.kneeR,W.ankleR],[W.ankleR,W.toeR],[W.ankleR,W.heelR],[W.toeR,W.heelR]],ES=[[W.hipL,W.shoulderL,.8,1.05],[W.hipR,W.shoulderR,.8,1.05],[W.hipL,W.shoulderR,.84,1.08],[W.hipR,W.shoulderL,.84,1.08],[W.belly,W.upper,.7,1.06],[W.pelvis,W.upper,.86,1],[W.hipL,W.chest,.84,1.08],[W.hipR,W.chest,.84,1.08],[W.shoulderL,W.face,.76,1.2],[W.shoulderR,W.face,.76,1.2],[W.kneeL,W.hipR,.8,1.3],[W.kneeR,W.hipL,.8,1.3],[W.kneeL,W.belly,.5,1.12],[W.kneeR,W.belly,.5,1.12]],DS=8,OS=[[W.kneeL,W.kneeR,.13],[W.ankleL,W.ankleR,.11],[W.kneeL,W.ankleR,.1],[W.kneeR,W.ankleL,.1],[W.hipL,W.ankleL,.2],[W.hipR,W.ankleR,.2],[W.shoulderL,W.wristL,.14],[W.shoulderR,W.wristR,.14],[W.face,W.chest,.2],[W.crown,W.chest,.24],[W.kneeL,W.upper,.3],[W.kneeR,W.upper,.3]],kS=[W.elbowL,W.wristL,W.fistL,W.elbowR,W.wristR,W.fistR],AS=[.7,.6,.6,.7,.9,1,1,1,1,1,1,1,.9,.8,.8,.9,.8,.8,.35,.1,0,0,.35,.1,0,0],jS=[[W.pelvis,W.chest,.12],[W.chest,W.upper,.13]],MS=Int32Array.from(TS.flat()),NS=Int32Array.from(ES.flatMap(([e,t])=>[e,t])),PS=Int32Array.from(OS.flatMap(([e,t])=>[e,t])),FS=Float64Array.from(OS.map(([,,e])=>e)),IS=Int32Array.from(jS.flatMap(([e,t])=>[e,t])),LS=Float64Array.from(jS.map(([,,e])=>e)),RS=Float64Array.from([W.head,1,W.crown,.9,W.face,1,W.neck,.45]),zS=Float64Array.from([W.belly,1,W.chest,.6,W.pelvis,.4,W.hipL,.3,W.hipR,.3]),BS=[W.head,W.crown,W.face],VS=[W.crown,W.face],HS=[[W.toeL,W.heelL],[W.toeR,W.heelR]],US=[[W.heelL],[W.heelR]],WS=[W.head,W.crown,W.face],GS=[W.fistL],KS=[W.fistR],qS=1/120,JS=12,YS=9.81,XS=.998,ZS=.5,QS=.03,$S=.35,eC=.12,tC=[W.pelvis,W.hipL,W.hipR,W.belly,W.chest,W.upper],nC=[W.upper,W.neck,W.shoulderL,W.shoulderR,W.head,W.crown,W.face,W.elbowL,W.wristL,W.fistL,W.elbowR,W.wristR,W.fistR],rC=[W.pelvis,W.hipL,W.hipR,W.belly,W.kneeL,W.ankleL,W.toeL,W.heelL,W.kneeR,W.ankleR,W.toeR,W.heelR],iC=40*Math.PI/180,aC=[[W.kneeL,W.ankleL,W.toeL,W.heelL],[W.kneeR,W.ankleR,W.toeR,W.heelR]],oC=[[W.ankleL,W.toeL,W.heelL],[W.ankleR,W.toeR,W.heelR]],sC=.08,cC=.35,lC=new Set(tC),uC=cv+.45,dC=.24,fC=1.75,pC=.012,mC=1,hC=.35,gC=.15,_C=1.1,vC=.4,yC=1.2,bC=1200,xC=3,SC=7,CC=.08,wC=.97,TC=2.55,EC=.5,DC=30*Math.PI/180,OC=32*Math.PI/180,kC=28*Math.PI/180,AC=35*Math.PI/180,jC=20*Math.PI/180,MC=.5,NC=.01,PC=.04,FC=.4,IC=.02,LC=.25,RC={timber:{knee:.12,spine:.2,seconds:.55},crumple:{knee:TC,spine:1,seconds:0},sag:{knee:.55,spine:.6,seconds:.3},fold:{knee:.9,spine:1,seconds:.5}},zC=2.5,BC=35*Math.PI/180,VC=50*Math.PI/180,HC=135*Math.PI/180,UC=[[W.kneeL,W.ankleL,W.toeL,VC,HC],[W.kneeR,W.ankleR,W.toeR,VC,HC],[W.elbowL,W.wristL,W.fistL,0,BC],[W.elbowR,W.wristR,W.fistR,0,BC]],WC=Int32Array.from(UC.flatMap(([e,,t])=>[e,t]));function GC(e,t,n,r){if(t===`body`)return`fold`;if(n<90)return`sag`;let i=Math.abs(Math.floor(r))%3;return e===`hook`?i===0?`timber`:`crumple`:i===0?`crumple`:`timber`}var KC=(e,t,n)=>n.set(e[t*3],e[t*3+1],e[t*3+2]),qC=e=>e-Math.round(e/(Math.PI*2))*Math.PI*2,JC=(e,t,n)=>{e[t*3]=n.x,e[t*3+1]=n.y,e[t*3+2]=n.z},YC=class{position=new Float64Array(78);previous=new Float64Array(78);before=new Float64Array(78);invMass=new Float64Array(26);rigidLength=new Float64Array(TS.length);rangeMin=new Float64Array(ES.length);rangeMax=new Float64Array(ES.length);restRange=new Float64Array(ES.length);rangeStart=new Float64Array(ES.length);kneeStart=new Float64Array(2);footSign=new Float64Array(2);turnAxis=new B;turnQuaternion=new ms;turnPoint=new B;angleRanges=new Float64Array(UC.length*2);elbowAxes=new Float64Array(6);kneeAxes=new Float64Array(6);hingeStart=new Float64Array(24);hingeNow=new Float64Array(24);swing=new ms;local=new B;localAxis=new B;ropeLines=new Float64Array(4);style=`crumple`;steps=0;stillSeconds=0;torsoStillSeconds=0;fallSeconds=0;landedSeconds=-1;asleep=!1;obstacleActive=!1;obstacleX=0;obstacleZ=0;obstacleTrack=null;obstacleTrackLive=!1;pull=null;pullShare=0;trackObstacle(e,t){this.obstacleTrack=e,this.obstacleTrackLive=e!==null&&!t}a=new B;b=new B;c=new B;d=new B;e=new B;fx=new B;fy=new B;fz=new B;gx=new B;gy=new B;gz=new B;pivot=new B;segmentA=new B;segmentB=new B;constructor(){for(let e=0;e<26;e+=1)this.invMass[e]=1/vS[e]}calibrate(e){for(let[t,[n,r]]of ES.entries())this.restRange[t]=this.distance(e,n,r)}start(e,t,n){this.position.set(e),this.before.set(e);for(let n=0;n<78;n+=1)this.previous[n]=e[n]-t[n]*qS;for(let[t,[n,r]]of TS.entries())this.rigidLength[t]=this.distance(e,n,r);for(let[t,[n,r,i,a,o]]of UC.entries()){let s=this.distance(e,n,r),c=this.distance(e,r,i),l=this.distance(e,n,i),u=e=>Math.sqrt(s*s+c*c+2*s*c*Math.cos(e));this.angleRanges[t*2]=Math.min(u(o),l),this.angleRanges[t*2+1]=Math.max(u(a),l)}for(let[t,[n,r,i,a]]of ES.entries()){let o=this.distance(e,n,r),s=this.restRange[t]>0?this.restRange[t]:o;this.rangeMin[t]=Math.min(s*i,o*.98),this.rangeMax[t]=Math.max(s*a,o*1.02),this.rangeStart[t]=o}this.style=n,this.steps=0,this.stillSeconds=0,this.torsoStillSeconds=0,this.fallSeconds=0,this.landedSeconds=-1,this.asleep=!1,this.upperFrame(this.position),this.pelvisFrame(this.position);for(let e of[0,1]){this.startHinge(this.elbowAxes,e,e===0?W.shoulderL:W.shoulderR,e===0?W.elbowL:W.elbowR,e===0?W.wristL:W.wristR,this.gx,-1),this.startHinge(this.kneeAxes,e,e===0?W.hipL:W.hipR,e===0?W.kneeL:W.kneeR,e===0?W.ankleL:W.ankleR,this.fx,1),this.storeHingeStart(e,e===0?W.hipL:W.hipR,e===0?W.kneeL:W.kneeR,this.kneeAxes,this.fx,this.fy,this.fz),this.storeHingeStart(2+e,e===0?W.shoulderL:W.shoulderR,e===0?W.elbowL:W.elbowR,this.elbowAxes,this.gx,this.gy,this.gz);let t=this.dir(e===0?W.hipL:W.hipR,e===0?W.kneeL:W.kneeR,this.a),n=this.dir(e===0?W.kneeL:W.kneeR,e===0?W.ankleL:W.ankleR,this.b);this.kneeStart[e]=Math.acos(Math.min(1,Math.max(-1,t.dot(n))));let r=this.c.set(this.kneeAxes[e*3],this.kneeAxes[e*3+1],this.kneeAxes[e*3+2]);this.footSign[e]=this.footNormal(e,this.d).dot(r)>=0?1:-1}for(let t=0;t<4;t+=1){let n=t<2?0:2,r=t%2==0?1:-1,i=0;for(let t of tC)i=Math.max(i,r*e[t*3+n]+yS[t]);this.ropeLines[t]=Math.max(fv,i+.04)}}startHinge(e,t,n,r,i,a,o){let s=this.dir(n,r,this.a),c=this.dir(r,i,this.b),l=this.c.crossVectors(s,c);l.length()<.2&&l.copy(a).multiplyScalar(o),l.addScaledVector(s,-l.dot(s)),l.lengthSq()<1e-8&&l.copy(a).multiplyScalar(o).addScaledVector(s,-o*a.dot(s)),l.normalize(),e[t*3]=l.x,e[t*3+1]=l.y,e[t*3+2]=l.z}storeHingeStart(e,t,n,r,i,a,o){let s=e%2,c=this.dir(t,n,this.a),l=this.b.set(r[s*3],r[s*3+1],r[s*3+2]),u=e*6;this.hingeStart[u]=c.dot(i),this.hingeStart[u+1]=c.dot(a),this.hingeStart[u+2]=c.dot(o),this.hingeStart[u+3]=l.dot(i),this.hingeStart[u+4]=l.dot(a),this.hingeStart[u+5]=l.dot(o);for(let e=0;e<6;e+=1)this.hingeNow[u+e]=this.hingeStart[u+e]}hingeAxis(e,t,n,r,i,a){let o=e*6,s=this.hingeNow;return this.local.set(t.dot(n),t.dot(r),t.dot(i)).normalize(),this.localAxis.set(s[o],s[o+1],s[o+2]),this.swing.setFromUnitVectors(this.localAxis,this.local),this.localAxis.set(s[o+3],s[o+4],s[o+5]).applyQuaternion(this.swing),a.copy(n).multiplyScalar(this.localAxis.x).addScaledVector(r,this.localAxis.y).addScaledVector(i,this.localAxis.z),a.addScaledVector(t,-a.dot(t)).normalize()}carryHinges(){this.pelvisFrame(this.position),this.upperFrame(this.position);for(let e=0;e<4;e+=1){let t=e%2,n=e<2,r=n?t===0?W.hipL:W.hipR:t===0?W.shoulderL:W.shoulderR,i=n?t===0?W.kneeL:W.kneeR:t===0?W.elbowL:W.elbowR,a=n?this.fx:this.gx,o=n?this.fy:this.gy,s=n?this.fz:this.gz,c=this.dir(r,i,this.a),l=this.hingeAxis(e,c,a,o,s,this.b),u=e*6;this.hingeNow[u]=c.dot(a),this.hingeNow[u+1]=c.dot(o),this.hingeNow[u+2]=c.dot(s),this.hingeNow[u+3]=l.dot(a),this.hingeNow[u+4]=l.dot(o),this.hingeNow[u+5]=l.dot(s)}}get holding(){return this.steps*qS0&&(this.landedSeconds=0)}setLimp(e,t){for(let n=0;n0){let e=Math.min(this.steps,t.steps-1)*3;this.obstacleActive=t.data[e]===1,this.obstacleX=t.data[e+1],this.obstacleZ=t.data[e+2]}let n=qS,r=this.position,i=this.previous,a=this.landedSeconds<0?XS:XS+-.02300000000000002*Math.min(1,this.landedSeconds/vC);this.before.set(r);for(let e=0;e<26;e+=1)for(let t=0;t<3;t+=1){let o=e*3+t,s=r[o],c=(s-i[o])*a;i[o]=s,r[o]=s+c-(t===1?YS*n*n:0)}let o=this.pull;if(o!==null)for(let e=0;e<26;e+=1){let t=(o[e*3]-r[e*3])*this.pullShare,n=(o[e*3+1]-r[e*3+1])*this.pullShare,a=(o[e*3+2]-r[e*3+2])*this.pullShare,s=Math.sqrt(t*t+n*n+a*a),c=this.pullShare<1&&s>sw?sw/s:1;for(let o=0;o<3;o+=1){let s=(o===0?t:o===1?n:a)*c;r[e*3+o]=r[e*3+o]+s,i[e*3+o]=i[e*3+o]+s}}this.carryHinges();for(let e=0;e=0&&o===null&&this.toppleLegs(),this.applyFriction(),this.limitSpeed(),this.steps+=1;let s=0,c=0;for(let e=0;e<26;e+=1){let t=r[e*3]-i[e*3],a=r[e*3+1]-i[e*3+1],o=r[e*3+2]-i[e*3+2],l=Math.sqrt(t*t+a*a+o*o)/n;s=Math.max(s,l),lC.has(e)&&(c=Math.max(c,l))}this.stillSeconds=s=0?this.landedSeconds+=n:(this.torsoStillSeconds=c=gC||this.fallSeconds>=_C)&&(this.landedSeconds=0)),o===null&&(this.stillSeconds>=mC||this.landedSeconds>=yC)&&(this.asleep=!0)}solveRigid(){for(let e=0;er?r:c;if(l===c)return;let u=this.invMass[e],d=this.invMass[t],f=u+d;if(f<=0)return;let p=(c-l)/(c*f);i[e*3]=i[e*3]+a*p*u,i[e*3+1]=i[e*3+1]+o*p*u,i[e*3+2]=i[e*3+2]+s*p*u,i[t*3]=i[t*3]-a*p*d,i[t*3+1]=i[t*3+1]-o*p*d,i[t*3+2]=i[t*3+2]-s*p*d}solveKnees(){this.pelvisFrame(this.position);for(let e=0;e<2;e+=1){let t=e===0?W.hipL:W.hipR,n=e===0?W.kneeL:W.kneeR,r=this.dir(t,n,this.a),i=this.hingeAxis(e,r,this.fx,this.fy,this.fz,this.b),a=this.holding?Math.min(TC,this.kneeStart[e]+RC[this.style].knee):TC;this.hinge(n,e===0?W.ankleL:W.ankleR,r,i,-.12,a)}}solveElbows(){this.upperFrame(this.position);for(let e=0;e<2;e+=1){let t=e===0?W.shoulderL:W.shoulderR,n=e===0?W.elbowL:W.elbowR,r=this.dir(t,n,this.a),i=this.hingeAxis(2+e,r,this.gx,this.gy,this.gz,this.b);this.hinge(n,e===0?W.wristL:W.wristR,r,i,-.12,zC)}}toppleLegs(){let e=this.position;for(let t=0;t<2;t+=1){let n=t===0?W.hipL:W.hipR,r=t===0?W.kneeL:W.kneeR,i=t===0?W.ankleL:W.ankleR,a=this.dir(n,r,this.a);if(a.y>cC){let i=this.dir(W.hipR,W.hipL,this.b),o=this.c.crossVectors(i,this.d.set(e[r*3]-e[n*3],e[r*3+1]-e[n*3+1],e[r*3+2]-e[n*3+2])).y>0?-1:1;this.rotateAbout(aC[t],n,i,o*sC*(a.y-cC))}let o=this.dir(r,i,this.a);if(o.y>cC){let n=this.kneeAxis(t===0?0:1,e,this.b),a=this.c.crossVectors(n,this.d.set(e[i*3]-e[r*3],e[i*3+1]-e[r*3+1],e[i*3+2]-e[r*3+2])).y>0?-1:1;this.rotateAbout(oC[t],r,n,a*sC*(o.y-cC))}}}solveTwist(){let e=this.dir(W.pelvis,W.upper,this.e),t=this.dir(W.hipR,W.hipL,this.a);t.addScaledVector(e,-t.dot(e));let n=this.dir(W.shoulderR,W.shoulderL,this.c);if(n.addScaledVector(e,-n.dot(e)),t.lengthSq()<1e-8||n.lengthSq()<1e-8)return;let r=Math.atan2(this.d.crossVectors(t,n).dot(e),t.dot(n)),i=Math.abs(r)-iC;if(i<=0)return;let a=this.spinInertia(nC,e),o=this.spinInertia(rC,e),s=Math.sign(r)*i*FC;this.rotateAbout(nC,W.chest,e,-s*(o/(a+o))),this.rotateAbout(rC,W.chest,e,s*(a/(a+o)))}spinInertia(e,t){let n=this.position,r=1e-6;for(let i=0;iMath.abs(p)+1e-6){let n=Math.atan2(r,u),a=Math.acos(p/i),c=qC(n-a),l=qC(n+a),d=(Math.abs(c)<=Math.abs(l)?c:l)*s;this.rotateAbout(US[t],o,e,Math.min(PC,Math.max(-.04,d)))}}let m=this.dir(i,a,this.a),h=this.hingeAxis(t,m,this.fx,this.fy,this.fz,this.b),g=this.footNormal(t===0?0:1,this.d).multiplyScalar(this.footSign[t]);if(h.addScaledVector(c,-h.dot(c)),g.addScaledVector(c,-g.dot(c)),h.lengthSq()<.09||g.lengthSq()<.09)continue;h.normalize(),g.normalize();let _=Math.atan2(this.e.crossVectors(h,g).dot(c),h.dot(g)),v=Math.min(kC,Math.max(-kC,_));v!==_&&this.rotateAbout(HS[t],o,c,Math.min(NC,Math.max(-.01,(v-_)*s)))}}footNormal(e,t){let n=this.position,r=e===0?W.ankleL:W.ankleR,i=e===0?W.toeL:W.toeR,a=e===0?W.heelL:W.heelR;return t.set(n[i*3]-n[a*3],n[i*3+1]-n[a*3+1],n[i*3+2]-n[a*3+2]),this.turnPoint.set(n[r*3]-n[a*3],n[r*3+1]-n[a*3+1],n[r*3+2]-n[a*3+2]),t.cross(this.turnPoint).normalize()}cone(e,t,n,r,i,a){let o=this.dir(t,n,this.turnPoint),s=Math.acos(Math.min(1,Math.max(-1,o.dot(e))));if(s<=r)return;let c=this.turnAxis.crossVectors(o,e);if(c.lengthSq()<1e-10)return;c.normalize();let l=this.pressed(a,i,c)?IC*LC:IC;this.rotateAbout(a,i,c,Math.min(l,(s-r)*FC))}pressed(e,t,n){let r=this.position;for(let i=0;iyS[a]+.005)&&n.z*(r[a*3]-r[t*3])-n.x*(r[a*3+2]-r[t*3+2])<-1e-9)return!0}return!1}rotateAbout(e,t,n,r){let i=this.position;this.turnQuaternion.setFromAxisAngle(n,r);let a=i[t*3],o=i[t*3+1],s=i[t*3+2];for(let t=0;t=u||l<1e-6||(o.addScaledVector(c,(u-l)/l),JC(e,n,o))}}}closestOnSegment(e,t,n,r){let i=this.segmentA.subVectors(t,e),a=i.lengthSq(),o=a<1e-12?0:Math.min(1,Math.max(0,this.segmentB.subVectors(n,e).dot(i)/a));return r.copy(e).addScaledVector(i,o)}solveEnvironment(){let e=this.position;for(let t=0;t<26;t+=1){let n=yS[t],r=e[t*3],i=e[t*3+1],a=e[t*3+2];i=p||f<1e-9)continue;let m=(p-f)/f*$S,h=u*m,g=d*m;t?r+=s*h:a+=s*h,i+=g}let u=o?c-n*.6:uC;s*(t?r:a)>u&&(t?r=s*u:a=s*u)}for(let e=0;e<4;e+=1){let t=e<2?-fv:fv,o=e%2==0?-fv:fv,s=r-t,c=a-o,l=Math.sqrt(s*s+c*c),u=eC+n;l>=u||l<1e-9||i>1.45||(r=t+s/l*u,a=o+c/l*u)}if(this.obstacleActive&&i1e-9&&(r=this.obstacleX+e/i*o,a=this.obstacleZ+t/i*o)}e[t*3]=r,e[t*3+1]=i,e[t*3+2]=a}}limitSpeed(){let e=this.position,t=this.previous,n=SC*qS,r=CC*qS;for(let i=0;i<26;i+=1){let a=e[i*3]-t[i*3],o=e[i*3+1]-t[i*3+1],s=e[i*3+2]-t[i*3+2],c=Math.sqrt(a*a+o*o+s*s);if(c>n||cn?n/c:wC;t[i*3]=e[i*3]-a*r,t[i*3+1]=e[i*3+1]-o*r,t[i*3+2]=e[i*3+2]-s*r}}}applyFriction(){let e=this.position,t=this.previous;for(let n=0;n<26;n+=1)e[n*3+1]>yS[n]+.004||(t[n*3]=t[n*3]+(e[n*3]-t[n*3])*ZS,t[n*3+2]=t[n*3+2]+(e[n*3+2]-t[n*3+2])*ZS,t[n*3+1]>e[n*3+1]&&(t[n*3+1]=e[n*3+1]))}settle(e=4,t){let n=this.steps+Math.ceil(e/qS);for(;!this.asleep&&this.steps1e-9?n.divideScalar(i):n.set(0,1,0)}pelvisFrame(e){this.fx.set(e[W.hipL*3]-e[W.hipR*3],e[W.hipL*3+1]-e[W.hipR*3+1],e[W.hipL*3+2]-e[W.hipR*3+2]).normalize(),this.fz.set(e[W.belly*3]-(e[W.hipL*3]+e[W.hipR*3])/2,e[W.belly*3+1]-(e[W.hipL*3+1]+e[W.hipR*3+1])/2,e[W.belly*3+2]-(e[W.hipL*3+2]+e[W.hipR*3+2])/2),this.fz.addScaledVector(this.fx,-this.fz.dot(this.fx)).normalize(),this.fy.crossVectors(this.fz,this.fx).normalize()}upperFrame(e){this.gx.set(e[W.shoulderL*3]-e[W.shoulderR*3],e[W.shoulderL*3+1]-e[W.shoulderR*3+1],e[W.shoulderL*3+2]-e[W.shoulderR*3+2]).normalize(),this.gy.set(e[W.neck*3]-e[W.upper*3],e[W.neck*3+1]-e[W.upper*3+1],e[W.neck*3+2]-e[W.upper*3+2]),this.gy.addScaledVector(this.gx,-this.gy.dot(this.gx)).normalize(),this.gz.crossVectors(this.gx,this.gy).normalize()}pelvisForward(e){return this.pelvisFrame(this.position),e.copy(this.fz)}};function XC(e,t){e.setLimp(WS,!!(t&1)),e.setLimp(GS,!!(t&2)),e.setLimp(KS,!!(t&4))}var ZC=[`hips`,`spine`,`chest`,`upperChest`,`neck`,`head`,`shoulderL`,`elbowL`,`gloveL`,`shoulderR`,`elbowR`,`gloveR`,`hipL`,`kneeL`,`ankleL`,`hipR`,`kneeR`,`ankleR`],QC=ZC.map(e=>({shoulderL:[W.shoulderL,W.elbowL],elbowL:[W.elbowL,W.wristL],gloveL:[W.wristL,W.fistL],shoulderR:[W.shoulderR,W.elbowR],elbowR:[W.elbowR,W.wristR],gloveR:[W.wristR,W.fistR],hipL:[W.hipL,W.kneeL],kneeL:[W.kneeL,W.ankleL],hipR:[W.hipR,W.kneeR],kneeR:[W.kneeR,W.ankleR]})[e]??null),$C=ZC.map(e=>({chest:W.chest,shoulderL:W.shoulderL,shoulderR:W.shoulderR,hipL:W.hipL,hipR:W.hipR})[e]??-1),ew=.1,tw=.35,nw=.6,rw=10,iw=.35,aw=6,ow=.25,sw=.05,cw=.3,lw=6;function uw(e){let t=e.lateral;if(e.target===`body`){let n=Math.min(2.6,Math.max(1,.9+e.amount/90));return{x:.3*t*n,y:-.05*n,z:-n,driveX:.1*t*n,driveY:-.2*n,driveZ:.45*n,twist:0}}let n=Math.min(3.2,Math.max(1.4,1.2+e.amount/70)),r=n/3.2;switch(e.punchClass){case`hook`:return{x:t*n,y:.05*n,z:-.25*n,driveX:.55*t*r,driveY:-.1*r,driveZ:.85*r,twist:.6};case`uppercut`:return{x:0,y:.8*n,z:-.65*n,driveX:0,driveY:.25*r,driveZ:-1.1*r,twist:.4};case`straight`:return{x:.12*t*n,y:.1*n,z:-n,driveX:.1*t*r,driveY:0,driveZ:-1.25*r,twist:.3};default:return{x:.12*t*n,y:.1*n,z:-.85*n,driveX:.08*t*r,driveY:0,driveZ:-1*r,twist:.2}}}var dw=class{rig;root;body=new YC;ahead=new YC;aheadOf=null;aheadBlows=0;ragdolling=!1;age=0;accumulator=0;sampleNow=new Float64Array(78);sampleBefore=new Float64Array(78);sampleRoot=new B;sampleSeconds=0;samples=0;drawn=new Float64Array(78);velocities=new Float64Array(78);offsets=ZC.map(()=>new ms);fromLocal=ZC.map(()=>new ms);fromPositions=ZC.map(()=>new B);fromHips=new B;riseLocal=ZC.map(()=>new ms);riseHips=new B;riseTurns=ZC.map(()=>new ms);solvedTurns=ZC.map(()=>new ms);rootTurn=new ms;turn=new ms;riseCaptured=!1;lastFall=null;recordPositions=new Float64Array(78);recordVelocities=new Float64Array(78);recordOffsets=ZC.map(()=>new ms);recordImpulses=[];recordObstacles={data:new Float64Array(bC*3),steps:0};recordLosses=[];recordRest={position:new Float64Array(78),previous:new Float64Array(78),steps:-1};replaying=null;followTargets=new Float64Array(78);followOffsets=ZC.map(()=>new ms);blendedOffsets=ZC.map(()=>new ms);following=!1;followAge=0;primed=!1;pending=null;lost=0;clock=0;bones;frame=new ms;world=new ms;axisX=new B;axisY=new B;axisZ=new B;hint=new B;point=new B;other=new B;pelvisX=new B;pelvisY=new B;upperX=new B;headX=new B;kneeAxes=[new B(1,0,0),new B(1,0,0)];elbowAxes=[new B,new B];spineLength;tiltJoint=new B;tiltChest=new B;tiltAcross=new B;tiltTurn=new ms;constructor(e,t){this.rig=e,this.root=t,this.bones=ZC.map(t=>e.bones[t]);let n=new Map;t.traverse(e=>{e instanceof eu&&n.set(e,[e.quaternion.clone(),e.position.clone()])}),e.resetToRest(),t.updateMatrixWorld(!0);let r=new Float64Array(78);this.read(r),this.body.calibrate(r),this.ahead.calibrate(r),this.spineLength=this.tiltJoint.setFromMatrixPosition(e.bones.spine.matrixWorld).distanceTo(this.tiltChest.setFromMatrixPosition(e.bones.chest.matrixWorld));for(let[e,[t,r]]of n)e.quaternion.copy(t),e.position.copy(r);t.updateMatrixWorld(!0)}get active(){return this.ragdolling}get record(){return this.lastFall}sample(e){this.ragdolling||e<=0||(this.sampleBefore.set(this.sampleNow),this.read(this.sampleNow),this.sampleRoot.setFromMatrixPosition(this.root.matrixWorld),this.sampleSeconds=e,this.samples=Math.min(2,this.samples+1))}tick(e){this.clock+=e}takeBlow(e,t,n,r,i){let a={step:0,x:e.x,y:e.y,z:e.z,driveX:t.x,driveY:t.y,driveZ:t.z,target:n,twist:r,style:i};if(this.ragdolling){if(this.age>tw)return;if(this.replaying!==null){this.replaying.impulses.length===0&&this.replaying.impulses.push({...a,step:this.body.steps});return}this.lastFall?.impulses.push(this.body.impulse(a))}else this.pending={...a,at:this.clock}}dropBlow(){this.pending=null}twitch(e,t,n){this.ragdolling&&!this.following&&(this.body.twitch(e,t,n),this.replaying===null&&this.lastFall!==null&&(this.lastFall.rest.steps=-1))}prime(){this.primed=this.lastFall!==null}forget(){this.lastFall=null,this.primed=!1}start(e){let t=this.primed?this.lastFall:null;if(this.primed=!1,this.root.updateMatrixWorld(!0),this.captureLocals(this.fromLocal,this.fromHips),t!==null){this.replaying=t,this.body.start(t.positions,t.velocities,t.style),this.body.trackObstacle(t.obstacles,!0),this.replayLosses(this.body,t,0);for(let[e,n]of t.offsets.entries())this.offsets[e].copy(n);this.aheadOf=null,t.rest.steps<0&&this.runAhead(t,0)}else{this.replaying=null;let t=this.point.setFromMatrixPosition(this.root.matrixWorld).sub(this.sampleRoot),n=this.samples>0&&t.lengthSq()<=iw*iw;if(!n)this.read(this.sampleNow);else for(let e=0;e<26;e+=1)for(let n of[this.sampleNow,this.sampleBefore])n[e*3]=n[e*3]+t.x,n[e*3+1]=n[e*3+1]+t.y,n[e*3+2]=n[e*3+2]+t.z;let r=n&&this.samples>=2&&this.sampleSeconds>0?this.sampleSeconds:0;this.samples=0;for(let e=0;e<78;e+=1){let t=r>0?(this.sampleNow[e]-this.sampleBefore[e])/r:0;this.velocities[e]=Math.max(-3,Math.min(xC,t))}let i=this.rig.bones.neck,a=this.rig.bones.head;this.point.copy(this.rig.restLocalPosition(a)).applyMatrix4(i.matrixWorld).sub(this.other.setFromMatrixPosition(a.matrixWorld));for(let e of BS)this.sampleNow[e*3]=this.sampleNow[e*3]+this.point.x,this.sampleNow[e*3+1]=this.sampleNow[e*3+1]+this.point.y,this.sampleNow[e*3+2]=this.sampleNow[e*3+2]+this.point.z;let o=this.pending!==null&&this.clock-this.pending.at<=nw?this.pending:null;this.body.start(this.sampleNow,this.velocities,o?.style??e),this.computeOffsets();let s=this.recordImpulses;s.length=0,o!==null&&s.push(this.body.impulse({step:0,x:o.x,y:o.y,z:o.z,driveX:o.driveX,driveY:o.driveY,driveZ:o.driveZ,target:o.target,twist:o.twist}));let c=this.recordObstacles;c.steps=0,this.body.trackObstacle(c,!1),this.recordPositions.set(this.sampleNow),this.recordVelocities.set(this.velocities);for(let e=0;e=.008333333333333333&&i=.008333333333333333&&n=0)this.body.restore(t);else{let t=this.body.steps+Math.ceil(lw/qS);for(;!this.body.asleep&&this.body.steps=1)return;let t=Math.min(1,Math.max(0,e));this.bodyTurns(this.solvedTurns),this.rig.bones.hips.position.lerpVectors(this.riseHips,this.rig.bones.hips.position,t);for(let e=0;eJC(e,t,n),r=e=>this.point.setFromMatrixPosition(e.matrixWorld),i=(e,t,n)=>n.setFromMatrixColumn(e.matrixWorld,t).normalize();n(W.pelvis,r(t.hips)),n(W.hipL,r(t.hipL)),n(W.hipR,r(t.hipR)),n(W.belly,r(t.hips).addScaledVector(i(t.hips,2,this.axisZ),bS)),n(W.chest,r(t.chest)),n(W.upper,r(t.upperChest)),n(W.neck,r(t.neck)),n(W.shoulderL,r(t.shoulderL)),n(W.shoulderR,r(t.shoulderR)),n(W.head,r(t.head)),n(W.crown,r(t.head).addScaledVector(i(t.head,1,this.axisY),xS)),n(W.face,r(t.head).addScaledVector(i(t.head,2,this.axisZ),SS).addScaledVector(i(t.head,1,this.axisY),CS)),n(W.elbowL,r(t.elbowL)),n(W.wristL,r(t.gloveL)),n(W.fistL,r(t.gloveL).addScaledVector(i(t.gloveL,1,this.axisY),wS)),n(W.elbowR,r(t.elbowR)),n(W.wristR,r(t.gloveR)),n(W.fistR,r(t.gloveR).addScaledVector(i(t.gloveR,1,this.axisY),wS)),n(W.kneeL,r(t.kneeL)),n(W.ankleL,r(t.ankleL)),n(W.toeL,r(t.toeL)),n(W.heelL,r(t.ankleL).addScaledVector(i(t.toeL,1,this.axisY),-.07).addScaledVector(i(t.toeL,2,this.axisZ),-.09)),n(W.kneeR,r(t.kneeR)),n(W.ankleR,r(t.ankleR)),n(W.toeR,r(t.toeR)),n(W.heelR,r(t.ankleR).addScaledVector(i(t.toeR,1,this.axisY),-.07).addScaledVector(i(t.toeR,2,this.axisZ),-.09))}computeOffsets(){this.prepareFrames(this.body.position);for(let e=0;e=0&&this.rig.setWorldPosition(i,KC(e,a,this.point)),ZC[r]===`upperChest`&&(this.rig.bones.clavicleL.updateWorldMatrix(!1,!1),this.rig.bones.clavicleR.updateWorldMatrix(!1,!1))}this.root.updateMatrixWorld(!0)}tiltHips(e){let t=this.rig.bones.hips,n=this.point.setFromMatrixPosition(t.matrixWorld),r=this.tiltJoint.copy(this.rig.restLocalPosition(this.rig.bones.spine)).applyMatrix4(t.matrixWorld).sub(n),i=KC(e,W.chest,this.tiltChest).sub(n),a=this.pelvisX,o=a.dot(r),s=this.tiltAcross.copy(r).addScaledVector(a,-o),c=(r.lengthSq()+i.lengthSq()-this.spineLength*this.spineLength)/2-o*a.dot(i),l=s.dot(i),u=this.other.crossVectors(a,s).dot(i),d=Math.hypot(l,u);if(d<1e-9)return;let f=Math.atan2(u,l),p=Math.acos(Math.min(1,Math.max(-1,c/d))),m=qC(f-p),h=qC(f+p),g=Math.abs(m)<=Math.abs(h)?m:h;Math.abs(g)<1e-5||(t.getWorldQuaternion(this.world).premultiply(this.tiltTurn.setFromAxisAngle(a,g)),this.rig.setWorldRotation(t,this.world))}prepareFrames(e){this.segment(e,W.hipR,W.hipL,this.pelvisX),this.axisZ.set(e[W.belly*3]-(e[W.hipL*3]+e[W.hipR*3])/2,e[W.belly*3+1]-(e[W.hipL*3+1]+e[W.hipR*3+1])/2,e[W.belly*3+2]-(e[W.hipL*3+2]+e[W.hipR*3+2])/2),this.axisZ.addScaledVector(this.pelvisX,-this.axisZ.dot(this.pelvisX)).normalize(),this.pelvisY.crossVectors(this.axisZ,this.pelvisX).normalize(),this.segment(e,W.shoulderR,W.shoulderL,this.upperX),this.segment(e,W.head,W.crown,this.axisX),this.segment(e,W.head,W.face,this.other),this.headX.crossVectors(this.axisX,this.other).normalize()}segment(e,t,n,r){return r.set(e[n*3]-e[t*3],e[n*3+1]-e[t*3+1],e[n*3+2]-e[t*3+2]),r.lengthSq()>1e-12?r.normalize():r.set(0,1,0)}frameFor(e,t,n){let r=ZC[e];switch(r){case`hips`:return qx(this.pelvisY,this.pelvisX,`x`,n);case`spine`:{let r=this.bones[e];return r.updateWorldMatrix(!1,!1),this.axisY.setFromMatrixPosition(r.matrixWorld),this.axisY.set(t[W.chest*3]-this.axisY.x,t[W.chest*3+1]-this.axisY.y,t[W.chest*3+2]-this.axisY.z),this.axisY.lengthSq()>1e-12?this.axisY.normalize():this.segment(t,W.pelvis,W.chest,this.axisY),qx(this.axisY,this.hint.copy(this.pelvisX).multiplyScalar(.75).addScaledVector(this.upperX,.25),`x`,n)}case`chest`:return this.segment(t,W.chest,W.upper,this.axisY),qx(this.axisY,this.hint.copy(this.pelvisX).multiplyScalar(.4).addScaledVector(this.upperX,.6),`x`,n);case`upperChest`:return this.segment(t,W.upper,W.neck,this.axisY),qx(this.axisY,this.upperX,`x`,n);case`neck`:return this.segment(t,W.neck,W.head,this.axisY),qx(this.axisY,this.hint.copy(this.upperX).add(this.headX),`x`,n);case`head`:return this.segment(t,W.head,W.crown,this.axisY),qx(this.axisY,this.segment(t,W.head,W.face,this.hint),`z`,n);case`shoulderL`:case`elbowL`:case`gloveL`:case`shoulderR`:case`elbowR`:case`gloveR`:{let i=+!r.endsWith(`L`),a=QC[e],o=this.body.elbowAxis(i,t,this.elbowAxes[i]);return this.segment(t,a[0],a[1],this.axisY),qx(this.axisY,o,`x`,n)}case`hipL`:case`kneeL`:case`hipR`:case`kneeR`:{let i=+!r.endsWith(`L`),a=QC[e],o=this.body.kneeAxis(i,t,this.kneeAxes[i]);return this.segment(t,a[0],a[1],this.axisY),qx(this.axisY,o,`x`,n)}default:{let e=r===`ankleL`,i=e?W.ankleL:W.ankleR,a=e?W.toeL:W.toeR,o=e?W.heelL:W.heelR;return this.segment(t,i,a,this.axisY),this.segment(t,o,a,this.hint),this.other.set(t[i*3]-t[o*3],t[i*3+1]-t[o*3+1],t[i*3+2]-t[o*3+2]),this.hint.cross(this.other),qx(this.axisY,this.hint,`x`,n)}}}};function fw(e,t,n){let r=Math.min(1,Math.max(0,(n-e)/(t-e)));return r*r*(3-2*r)}var pw=3,mw=5;function hw(e){return 1-.74*fw(-.6,1.4,e)}var gw=.23,_w=.22,vw=.22,yw=1.15,bw=.5,xw=.9,Sw=.045,Cw=[.33,.66],ww=Sw*2*.33*.67,Tw=.04;function Ew(e,t){return{pressX:Math.min(_w,Math.max(0,Math.abs(e)+gw-fv)),pressZ:Math.min(_w,Math.max(0,Math.abs(t)+gw-fv))}}function Dw(e,t,n){return n.x=Math.sign(e)*Math.max(0,Math.abs(e)+gw-fv-_w),n.z=Math.sign(t)*Math.max(0,Math.abs(t)+gw-fv-_w),n}var Ow=` +`,dx=.35;function fx(e){e.bumpMap=e.map,e.bumpScale=dx;let t=e.onBeforeCompile,n=Object.hasOwn(e,`customProgramCacheKey`)?e.customProgramCacheKey():`plain`;e.onBeforeCompile=(n,r)=>{t.call(e,n,r),n.fragmentShader=n.fragmentShader.replace(`#include `,`#include \n${ux}`)},e.customProgramCacheKey=()=>`${n}-skin`,e.needsUpdate=!0}var px={x:7,y:66.1,z:-3},mx={x:8.4,y:39.4,z:-4.7},hx=62,gx=58,_x=72,vx=.78,yx=.85,bx=.66,xx=(e,t,n)=>{let r=R.clamp((n-e)/(t-e),0,1);return r*r*(3-2*r)},Sx=R.lerp;function Cx(e,t){let n=e.clone(),r=n.getAttribute(`position`),i=n.getAttribute(`skinIndex`),a=new Map([[t.indexOf(pb.kneeL),t.indexOf(pb.hipL)],[t.indexOf(pb.kneeR),t.indexOf(pb.hipR)]]);for(let e=0;e0&&(t=Math.sign(t)*(l+d*Sx(1,vx,s))),o=u+(o-u)*Sx(1,o>u?yx:bx,s),r.setXYZ(e,t,n,o);for(let t=0;t>>0||1,this.blinkIn=this.nextBlink()}nextBlink(){return this.seed=Math.imul(this.seed,1664525)+1013904223>>>0,Tx[0]+this.seed/4294967296*(Tx[1]-Tx[0])}flinch(e,t){let n=Math.min(1,Math.max(0,e));this.wince=Math.max(this.wince,t?.55+.45*n:.3+.4*n),this.gape=Math.max(this.gape,t?.25+.6*n:.5+.5*n)}update(e,t,n,r,i,a){let o=Math.max(0,e);this.wince=Math.max(0,this.wince-this.wince*Ex*o-.2*o),this.gape=Math.max(0,this.gape-this.gape*Ex*.6*o-.15*o),!t&&!a&&(this.blinkIn-=o,this.blinkIn<=0&&(this.blink=wx,this.blinkIn=this.nextBlink()),this.breath+=o*Dx*Math.PI*2),this.blink=Math.max(0,this.blink-o);let s=this.blink>0?Math.sin(this.blink/wx*Math.PI):0,c=t?.3:.3+.25*Math.sin(this.breath),l=a?1:Math.max(s,this.wince,n?.4:0,i*.55),u=a?.45:Math.max(this.gape,n?.3:0,r*c,i*.35),d=a?0:Math.max(+!!n,this.wince*.8),f=1-Math.exp(-14*o);this.lids=Math.max(s,this.wince,this.lids+(l-this.lids)*f),this.mouth+=(u-this.mouth)*f,this.brow+=(d-this.brow)*f}},kx={hips:pb.hips,spine:pb.spine,chest:`Spine1_024`,upperChest:pb.chest,neck:`Neck_012`,head:pb.head,clavicleL:`LeftShoulder_09`,shoulderL:pb.shoulderL,elbowL:pb.elbowL,gloveL:pb.gloveL,clavicleR:`RightShoulder_020`,shoulderR:pb.shoulderR,elbowR:pb.elbowR,gloveR:pb.gloveR,hipL:pb.hipL,kneeL:pb.kneeL,ankleL:pb.ankleL,toeL:`LeftToeBase_011`,hipR:pb.hipR,kneeR:pb.kneeR,ankleR:pb.ankleR,toeR:`RightToeBase_022`},Ax=new B,jx=new B,Mx=new B,Nx=new zs,Px=new hs,Fx=new hs,Ix=new B,Lx=new B,Rx=new B,zx=new B,Bx=new B,Vx=new B,Hx=new B,Ux=new B,Wx=new B,Gx=new B;function Kx(e,t){return t.setFromMatrixPosition(e.matrixWorld)}function qx(e,t){return e.matrixWorld.decompose(Ix,t,Lx),t}function Jx(e,t,n,r){return jx.copy(e).normalize(),n===`z`?(Mx.copy(t).addScaledVector(jx,-t.dot(jx)),Mx.lengthSq()<1e-8&&Mx.set(0,0,1).addScaledVector(jx,-jx.z),Mx.normalize(),Ax.crossVectors(jx,Mx).normalize()):(Ax.copy(t).addScaledVector(jx,-t.dot(jx)),Ax.lengthSq()<1e-8&&Ax.set(1,0,0).addScaledVector(jx,-jx.x),Ax.normalize(),Mx.crossVectors(Ax,jx).normalize()),Nx.makeBasis(Ax,jx,Mx),r.setFromRotationMatrix(Nx)}var Yx=class{bones;metrics;restLocal=new Map;restPositions=new Map;limb={reached:!1,joint:new B};constructor(e){let t=new Map;e.traverse(e=>{e instanceof tu&&t.set(e.name,e)});let n={};for(let[e,r]of Object.entries(kx)){let i=t.get(r);if(i===void 0)throw Error(`fighter rig missing bone ${r} (${e})`);n[e]=i}this.bones=n,e.updateMatrixWorld(!0);for(let e of t.values())this.restLocal.set(e,e.quaternion.clone()),this.restPositions.set(e,e.position.clone());let r=(e,t)=>Kx(n[e],Rx).distanceTo(Kx(n[t],zx)),i=Kx(n.hips,Rx).clone(),a=Kx(n.hips.parent??e,zx).clone(),o=n.hips.position.length(),s=i.distanceTo(a);this.metrics={hipsHeight:i.y,headHeight:Kx(n.head,Rx).y,chestHeight:Kx(n.upperChest,Rx).y,ankleHeight:Kx(n.ankleL,Rx).y,armL:{upper:r(`shoulderL`,`elbowL`),lower:r(`elbowL`,`gloveL`)},armR:{upper:r(`shoulderR`,`elbowR`),lower:r(`elbowR`,`gloveR`)},legL:{upper:r(`hipL`,`kneeL`),lower:r(`kneeL`,`ankleL`)},legR:{upper:r(`hipR`,`kneeR`),lower:r(`kneeR`,`ankleR`)},footLength:r(`ankleL`,`toeL`),unitsPerMeter:s>1e-6?o/s:1}}resetToRest(){for(let[e,t]of this.restLocal){e.quaternion.copy(t);let n=this.restPositions.get(e);n!==void 0&&e.position.copy(n)}}restLocalQuaternion(e){return this.restLocal.get(e)??e.quaternion}restLocalPosition(e){return this.restPositions.get(e)??e.position}position(e,t){return Kx(this.bones[e],t)}setWorldRotation(e,t){let n=e.parent;n===null?e.quaternion.copy(t):(qx(n,Fx),e.quaternion.copy(Fx.invert().multiply(t)).normalize()),e.updateWorldMatrix(!1,!1)}setWorldFrame(e,t,n,r){this.setWorldRotation(e,Jx(t,n,r,Px))}setWorldPosition(e,t){let n=e.parent;n===null?e.position.copy(t):(e.position.copy(t),n.worldToLocal(e.position)),e.updateWorldMatrix(!1,!1)}aimAt(e,t,n){if(e.updateWorldMatrix(!1,!1),Kx(e,Rx),Bx.subVectors(t,Rx),Bx.lengthSq()<1e-10)return;qx(e,Px);let r=n===`z`?Gx.set(0,0,1):Gx.set(1,0,0);this.setWorldFrame(e,Bx,r.applyQuaternion(Px),n)}solveLimb(e,t,n,r,i,a,o,s=.01){e.updateWorldMatrix(!1,!1);let c=Kx(e,Rx);Bx.subVectors(r,c);let l=n.upper+n.lower-s,u=R.clamp(Bx.length(),Math.abs(n.upper-n.lower)+.005,l),d=Bx.length()<=l;Bx.lengthSq()<1e-10&&Bx.set(0,-1,0),Bx.normalize(),Vx.copy(i).addScaledVector(Bx,-i.dot(Bx)),Vx.lengthSq()<1e-8&&(Vx.set(0,0,1).addScaledVector(Bx,-Bx.z),Vx.lengthSq()<1e-8&&Vx.set(1,0,0)),Vx.normalize();let f=R.clamp((n.upper*n.upper+u*u-n.lower*n.lower)/(2*n.upper*u),-1,1),p=n.upper*f,m=n.upper*Math.sqrt(Math.max(0,1-f*f));Hx.copy(c).addScaledVector(Bx,p).addScaledVector(Vx,m),Ux.crossVectors(Vx,Bx).multiplyScalar(o).normalize(),Wx.copy(Hx).sub(c),this.setWorldFrame(e,Wx,Ux,a),t.updateWorldMatrix(!1,!1);let h=Kx(t,zx);return Wx.copy(c).addScaledVector(Bx,u).sub(h),this.setWorldFrame(t,Wx,Ux,a),this.limb.reached=d,this.limb.joint.copy(h),this.limb}},Xx={x:.1059,y:.0253,z:-.0026},Zx=new B(.2018,.081,-.027),Qx=new B(-.2018,.081,-.027),$x=(e,t,n)=>new B(e,t,n),eS=(e,t,n)=>{let r=R.clamp((n-e)/Math.max(1e-6,t-e),0,1);return r*r*(3-2*r)},tS=(e,t=1.7)=>R.clamp(e,0,1)**+t,nS=(e,t=2)=>1-(1-R.clamp(e,0,1))**t,rS=new hs,iS=new B,aS=new B,oS=new B,sS=new B,cS=new B,lS=new hs,uS=new hs,dS=new Ys,fS=new B(0,1,0),pS=[[`spine`,.25,.2],[`chest`,.55,.5],[`upperChest`,1,1]],mS=class{rig;chestLocal=new B;constructor(e){this.rig=e}toWorld(e,t){return t.copy(e).applyQuaternion(rS).add(iS)}dirToWorld(e,t){return t.copy(e).applyQuaternion(rS)}setYawPitchRoll(e,t,n,r){dS.set(n,t,r,`YXZ`),lS.setFromEuler(dS),uS.copy(rS).multiply(lS),this.rig.setWorldRotation(e,uS)}apply(e,t){let n=this.rig,r=n.bones;n.resetToRest(),e.updateMatrixWorld(!0),qx(e,rS),Kx(e,iS);let i=t.torso;this.toWorld(i.hips,aS),n.setWorldPosition(r.hips,aS),this.setYawPitchRoll(r.hips,i.hipsYaw,i.hipsPitch,i.hipsRoll);let a=i.shouldersYaw-i.hipsYaw;for(let e=0;e0&&(Kx(r.head,aS),this.dirToWorld(i.headOffset,oS),aS.add(oS),n.setWorldPosition(r.head,aS)),this.solveArm(`L`,t.handL,t.shrugL),this.solveArm(`R`,t.handR,t.shrugR),this.solveLeg(`L`,t.footL),this.solveLeg(`R`,t.footR)}solveArm(e,t,n){let r=this.rig,i=r.bones,a=e===`L`?i.clavicleL:i.clavicleR,o=e===`L`?i.shoulderL:i.shoulderR,s=e===`L`?i.elbowL:i.elbowR,c=e===`L`?i.gloveL:i.gloveR,l=e===`L`?r.metrics.armL:r.metrics.armR,u=e===`L`?Zx:Qx;this.chestLocal.copy(u),this.chestLocal.z+=n*.06,this.chestLocal.y+=n*.035,this.chestLocal.x*=1-n*.08,sS.copy(this.chestLocal).multiplyScalar(r.metrics.unitsPerMeter),i.upperChest.localToWorld(sS),r.aimAt(a,sS,`z`),o.updateWorldMatrix(!1,!1),this.toWorld(t.position,aS),this.dirToWorld(t.pole,oS),r.solveLimb(o,s,l,aS,oS,`z`,e===`L`?1:-1,.012),c.updateWorldMatrix(!1,!1),this.dirToWorld(t.knuckles,sS),this.dirToWorld(t.palm,cS),r.setWorldFrame(c,sS,cS,`z`)}solveLeg(e,t){let n=this.rig,r=n.bones,i=e===`L`?r.hipL:r.hipR,a=e===`L`?r.kneeL:r.kneeR,o=e===`L`?r.ankleL:r.ankleR,s=e===`L`?r.toeL:r.toeR,c=e===`L`?n.metrics.legL:n.metrics.legR;this.toWorld(t.position,aS),this.dirToWorld(t.toe,sS).normalize();let l=n.metrics.footLength;cS.copy(sS).multiplyScalar(l).addScaledVector(fS,-n.metrics.ankleHeight).normalize(),t.heel!==0&&(aS.addScaledVector(cS,l),lS.setFromAxisAngle(oS.crossVectors(sS,fS).normalize(),-t.heel),cS.applyQuaternion(lS),aS.addScaledVector(cS,-l)),this.dirToWorld(t.pole,oS),n.solveLimb(i,a,c,aS,oS,`x`,-1,.02),o.updateWorldMatrix(!1,!1),n.setWorldFrame(o,cS,fS,`z`),s.updateWorldMatrix(!1,!1),n.setWorldFrame(s,sS,fS,`z`)}},hS={bladeYaw:-.68,shoulderBlade:1.18,hipsHeight:.875,leadFoot:$x(.13,0,.2),rearFoot:$x(-.15,0,-.25),leadToe:$x(-.26,0,.97),rearToe:$x(-.68,0,.73),leadHeel:.05,rearHeel:.3,lean:.09,hunch:.15,chinTuck:.24,leadShrug:.45,rearShrug:.25,relaxedLead:$x(.12,-.15,.44),relaxedRear:$x(-.07,-.11,.18),tightLead:$x(.13,-.11,.29),tightRear:$x(-.08,-.1,.15),guardHighLead:$x(.1,-.12,.33),guardHighRear:$x(-.1,-.11,.24),guardLowLead:$x(.11,-.3,.27),guardLowRear:$x(-.11,-.3,.25),guardHighLeadPole:$x(.15,-1,.35),guardHighRearPole:$x(-.15,-1,.35),guardLowLeadPole:$x(.3,-1,-.1),guardLowRearPole:$x(-.3,-1,-.1),guardKnuckles:$x(-.05,1,.15),guardPalm:$x(-.6,0,-.8),leadPole:$x(.3,-1,.1),rearPole:$x(-.35,-1,-.15),leadKnuckles:$x(.05,.75,.65),leadPalm:$x(-.9,.15,-.35),rearKnuckles:$x(-.05,.85,.5),rearPalm:$x(.95,.1,-.25)},gS=e=>({rise:0,length:1,width:1,weight:0,lean:0,lead:$x(0,0,0),rear:$x(0,0,0),flare:0,shrug:0,shell:0,spring:1,tempo:1,rock:1,bob:1,heel:1,paw:1,...e}),_S={balanced:gS({}),boxer:gS({rise:.022,width:.9,length:1.04,lean:-.03,lead:$x(0,.02,.07),flare:-.1,spring:.7,tempo:1.25,rock:1.7,bob:.8,heel:1.3,paw:1.4}),slugger:gS({rise:-.015,width:1.22,length:.94,weight:-.035,lead:$x(.04,-.07,-.05),rear:$x(-.04,-.06,0),flare:.3,shrug:-.15,spring:.3,tempo:.8,rock:.5,bob:.6,heel:.3,paw:.5}),swarmer:gS({rise:-.045,width:1.06,length:.9,weight:.035,lean:.06,lead:$x(-.03,.05,-.14),rear:$x(0,.03,-.02),flare:-.3,spring:.9,tempo:1.1,rock:.8,bob:2.6,paw:.3}),counter_puncher:gS({rise:.005,width:.94,length:1.05,weight:-.04,lean:-.05,lead:$x(-.11,-.3,-.2),rear:$x(.01,.01,-.02),shrug:.45,shell:1,spring:.3,tempo:.8,rock:.4,bob:.4,heel:.8,paw:.2})};function vS(e,t,n=new B){return n.set(e.x*t,e.y,e.z)}var W={pelvis:0,hipL:1,hipR:2,belly:3,chest:4,upper:5,neck:6,shoulderL:7,shoulderR:8,head:9,crown:10,face:11,elbowL:12,wristL:13,fistL:14,elbowR:15,wristR:16,fistR:17,kneeL:18,ankleL:19,toeL:20,heelL:21,kneeR:22,ankleR:23,toeR:24,heelR:25},yS=[9,4,4,2,10,7,2,3.5,3.5,2.5,1.5,1,1.6,1,1,1.6,1,1,3.6,1.6,.4,.6,3.6,1.6,.4,.6],bS=[.12,.09,.09,.11,.14,.13,.06,.07,.07,.09,.085,.055,.05,.065,.08,.05,.065,.08,.06,.05,.035,.04,.06,.05,.035,.04],xS=.12,SS=.16,CS=.09,wS=.06,TS=.11,ES=[[W.pelvis,W.hipL],[W.pelvis,W.hipR],[W.hipL,W.hipR],[W.belly,W.hipL],[W.belly,W.hipR],[W.belly,W.pelvis],[W.pelvis,W.chest],[W.chest,W.upper],[W.upper,W.neck],[W.upper,W.shoulderL],[W.upper,W.shoulderR],[W.neck,W.shoulderL],[W.neck,W.shoulderR],[W.shoulderL,W.shoulderR],[W.neck,W.head],[W.head,W.crown],[W.head,W.face],[W.crown,W.face],[W.shoulderL,W.elbowL],[W.elbowL,W.wristL],[W.wristL,W.fistL],[W.shoulderR,W.elbowR],[W.elbowR,W.wristR],[W.wristR,W.fistR],[W.hipL,W.kneeL],[W.kneeL,W.ankleL],[W.ankleL,W.toeL],[W.ankleL,W.heelL],[W.toeL,W.heelL],[W.hipR,W.kneeR],[W.kneeR,W.ankleR],[W.ankleR,W.toeR],[W.ankleR,W.heelR],[W.toeR,W.heelR]],DS=[[W.hipL,W.shoulderL,.8,1.05],[W.hipR,W.shoulderR,.8,1.05],[W.hipL,W.shoulderR,.84,1.08],[W.hipR,W.shoulderL,.84,1.08],[W.belly,W.upper,.7,1.06],[W.pelvis,W.upper,.86,1],[W.hipL,W.chest,.84,1.08],[W.hipR,W.chest,.84,1.08],[W.shoulderL,W.face,.76,1.2],[W.shoulderR,W.face,.76,1.2],[W.kneeL,W.hipR,.8,1.3],[W.kneeR,W.hipL,.8,1.3],[W.kneeL,W.belly,.5,1.12],[W.kneeR,W.belly,.5,1.12]],OS=8,kS=[[W.kneeL,W.kneeR,.13],[W.ankleL,W.ankleR,.11],[W.kneeL,W.ankleR,.1],[W.kneeR,W.ankleL,.1],[W.hipL,W.ankleL,.2],[W.hipR,W.ankleR,.2],[W.shoulderL,W.wristL,.14],[W.shoulderR,W.wristR,.14],[W.face,W.chest,.2],[W.crown,W.chest,.24],[W.kneeL,W.upper,.3],[W.kneeR,W.upper,.3]],AS=[W.elbowL,W.wristL,W.fistL,W.elbowR,W.wristR,W.fistR],jS=[.7,.6,.6,.7,.9,1,1,1,1,1,1,1,.9,.8,.8,.9,.8,.8,.35,.1,0,0,.35,.1,0,0],MS=[[W.pelvis,W.chest,.12],[W.chest,W.upper,.13]],NS=Int32Array.from(ES.flat()),PS=Int32Array.from(DS.flatMap(([e,t])=>[e,t])),FS=Int32Array.from(kS.flatMap(([e,t])=>[e,t])),IS=Float64Array.from(kS.map(([,,e])=>e)),LS=Int32Array.from(MS.flatMap(([e,t])=>[e,t])),RS=Float64Array.from(MS.map(([,,e])=>e)),zS=Float64Array.from([W.head,1,W.crown,.9,W.face,1,W.neck,.45]),BS=Float64Array.from([W.belly,1,W.chest,.6,W.pelvis,.4,W.hipL,.3,W.hipR,.3]),VS=[W.head,W.crown,W.face],HS=[W.crown,W.face],US=[[W.toeL,W.heelL],[W.toeR,W.heelR]],WS=[[W.heelL],[W.heelR]],GS=[W.head,W.crown,W.face],KS=[W.fistL],qS=[W.fistR],JS=1/120,YS=12,XS=9.81,ZS=.998,QS=.5,$S=.03,eC=.35,tC=.12,nC=[W.pelvis,W.hipL,W.hipR,W.belly,W.chest,W.upper],rC=[W.upper,W.neck,W.shoulderL,W.shoulderR,W.head,W.crown,W.face,W.elbowL,W.wristL,W.fistL,W.elbowR,W.wristR,W.fistR],iC=[W.pelvis,W.hipL,W.hipR,W.belly,W.kneeL,W.ankleL,W.toeL,W.heelL,W.kneeR,W.ankleR,W.toeR,W.heelR],aC=40*Math.PI/180,oC=[[W.kneeL,W.ankleL,W.toeL,W.heelL],[W.kneeR,W.ankleR,W.toeR,W.heelR]],sC=[[W.ankleL,W.toeL,W.heelL],[W.ankleR,W.toeR,W.heelR]],cC=.08,lC=.35,uC=new Set(nC),dC=lv+.45,fC=.24,pC=1.75,mC=.012,hC=1,gC=.35,_C=.15,vC=1.1,yC=.4,bC=1.2,xC=1200,SC=3,CC=7,wC=.08,TC=.97,EC=2.55,DC=.5,OC=30*Math.PI/180,kC=32*Math.PI/180,AC=28*Math.PI/180,jC=35*Math.PI/180,MC=20*Math.PI/180,NC=.5,PC=.01,FC=.04,IC=.4,LC=.02,RC=.25,zC={timber:{knee:.12,spine:.2,seconds:.55},crumple:{knee:EC,spine:1,seconds:0},sag:{knee:.55,spine:.6,seconds:.3},fold:{knee:.9,spine:1,seconds:.5}},BC=2.5,VC=35*Math.PI/180,HC=50*Math.PI/180,UC=135*Math.PI/180,WC=[[W.kneeL,W.ankleL,W.toeL,HC,UC],[W.kneeR,W.ankleR,W.toeR,HC,UC],[W.elbowL,W.wristL,W.fistL,0,VC],[W.elbowR,W.wristR,W.fistR,0,VC]],GC=Int32Array.from(WC.flatMap(([e,,t])=>[e,t]));function KC(e,t,n,r){if(t===`body`)return`fold`;if(n<90)return`sag`;let i=Math.abs(Math.floor(r))%3;return e===`hook`?i===0?`timber`:`crumple`:i===0?`crumple`:`timber`}var qC=(e,t,n)=>n.set(e[t*3],e[t*3+1],e[t*3+2]),JC=e=>e-Math.round(e/(Math.PI*2))*Math.PI*2,YC=(e,t,n)=>{e[t*3]=n.x,e[t*3+1]=n.y,e[t*3+2]=n.z},XC=class{position=new Float64Array(78);previous=new Float64Array(78);before=new Float64Array(78);invMass=new Float64Array(26);rigidLength=new Float64Array(ES.length);rangeMin=new Float64Array(DS.length);rangeMax=new Float64Array(DS.length);restRange=new Float64Array(DS.length);rangeStart=new Float64Array(DS.length);kneeStart=new Float64Array(2);footSign=new Float64Array(2);turnAxis=new B;turnQuaternion=new hs;turnPoint=new B;angleRanges=new Float64Array(WC.length*2);elbowAxes=new Float64Array(6);kneeAxes=new Float64Array(6);hingeStart=new Float64Array(24);hingeNow=new Float64Array(24);swing=new hs;local=new B;localAxis=new B;ropeLines=new Float64Array(4);style=`crumple`;steps=0;stillSeconds=0;torsoStillSeconds=0;fallSeconds=0;landedSeconds=-1;asleep=!1;obstacleActive=!1;obstacleX=0;obstacleZ=0;obstacleTrack=null;obstacleTrackLive=!1;pull=null;pullShare=0;trackObstacle(e,t){this.obstacleTrack=e,this.obstacleTrackLive=e!==null&&!t}a=new B;b=new B;c=new B;d=new B;e=new B;fx=new B;fy=new B;fz=new B;gx=new B;gy=new B;gz=new B;pivot=new B;segmentA=new B;segmentB=new B;constructor(){for(let e=0;e<26;e+=1)this.invMass[e]=1/yS[e]}calibrate(e){for(let[t,[n,r]]of DS.entries())this.restRange[t]=this.distance(e,n,r)}start(e,t,n){this.position.set(e),this.before.set(e);for(let n=0;n<78;n+=1)this.previous[n]=e[n]-t[n]*JS;for(let[t,[n,r]]of ES.entries())this.rigidLength[t]=this.distance(e,n,r);for(let[t,[n,r,i,a,o]]of WC.entries()){let s=this.distance(e,n,r),c=this.distance(e,r,i),l=this.distance(e,n,i),u=e=>Math.sqrt(s*s+c*c+2*s*c*Math.cos(e));this.angleRanges[t*2]=Math.min(u(o),l),this.angleRanges[t*2+1]=Math.max(u(a),l)}for(let[t,[n,r,i,a]]of DS.entries()){let o=this.distance(e,n,r),s=this.restRange[t]>0?this.restRange[t]:o;this.rangeMin[t]=Math.min(s*i,o*.98),this.rangeMax[t]=Math.max(s*a,o*1.02),this.rangeStart[t]=o}this.style=n,this.steps=0,this.stillSeconds=0,this.torsoStillSeconds=0,this.fallSeconds=0,this.landedSeconds=-1,this.asleep=!1,this.upperFrame(this.position),this.pelvisFrame(this.position);for(let e of[0,1]){this.startHinge(this.elbowAxes,e,e===0?W.shoulderL:W.shoulderR,e===0?W.elbowL:W.elbowR,e===0?W.wristL:W.wristR,this.gx,-1),this.startHinge(this.kneeAxes,e,e===0?W.hipL:W.hipR,e===0?W.kneeL:W.kneeR,e===0?W.ankleL:W.ankleR,this.fx,1),this.storeHingeStart(e,e===0?W.hipL:W.hipR,e===0?W.kneeL:W.kneeR,this.kneeAxes,this.fx,this.fy,this.fz),this.storeHingeStart(2+e,e===0?W.shoulderL:W.shoulderR,e===0?W.elbowL:W.elbowR,this.elbowAxes,this.gx,this.gy,this.gz);let t=this.dir(e===0?W.hipL:W.hipR,e===0?W.kneeL:W.kneeR,this.a),n=this.dir(e===0?W.kneeL:W.kneeR,e===0?W.ankleL:W.ankleR,this.b);this.kneeStart[e]=Math.acos(Math.min(1,Math.max(-1,t.dot(n))));let r=this.c.set(this.kneeAxes[e*3],this.kneeAxes[e*3+1],this.kneeAxes[e*3+2]);this.footSign[e]=this.footNormal(e,this.d).dot(r)>=0?1:-1}for(let t=0;t<4;t+=1){let n=t<2?0:2,r=t%2==0?1:-1,i=0;for(let t of nC)i=Math.max(i,r*e[t*3+n]+bS[t]);this.ropeLines[t]=Math.max(pv,i+.04)}}startHinge(e,t,n,r,i,a,o){let s=this.dir(n,r,this.a),c=this.dir(r,i,this.b),l=this.c.crossVectors(s,c);l.length()<.2&&l.copy(a).multiplyScalar(o),l.addScaledVector(s,-l.dot(s)),l.lengthSq()<1e-8&&l.copy(a).multiplyScalar(o).addScaledVector(s,-o*a.dot(s)),l.normalize(),e[t*3]=l.x,e[t*3+1]=l.y,e[t*3+2]=l.z}storeHingeStart(e,t,n,r,i,a,o){let s=e%2,c=this.dir(t,n,this.a),l=this.b.set(r[s*3],r[s*3+1],r[s*3+2]),u=e*6;this.hingeStart[u]=c.dot(i),this.hingeStart[u+1]=c.dot(a),this.hingeStart[u+2]=c.dot(o),this.hingeStart[u+3]=l.dot(i),this.hingeStart[u+4]=l.dot(a),this.hingeStart[u+5]=l.dot(o);for(let e=0;e<6;e+=1)this.hingeNow[u+e]=this.hingeStart[u+e]}hingeAxis(e,t,n,r,i,a){let o=e*6,s=this.hingeNow;return this.local.set(t.dot(n),t.dot(r),t.dot(i)).normalize(),this.localAxis.set(s[o],s[o+1],s[o+2]),this.swing.setFromUnitVectors(this.localAxis,this.local),this.localAxis.set(s[o+3],s[o+4],s[o+5]).applyQuaternion(this.swing),a.copy(n).multiplyScalar(this.localAxis.x).addScaledVector(r,this.localAxis.y).addScaledVector(i,this.localAxis.z),a.addScaledVector(t,-a.dot(t)).normalize()}carryHinges(){this.pelvisFrame(this.position),this.upperFrame(this.position);for(let e=0;e<4;e+=1){let t=e%2,n=e<2,r=n?t===0?W.hipL:W.hipR:t===0?W.shoulderL:W.shoulderR,i=n?t===0?W.kneeL:W.kneeR:t===0?W.elbowL:W.elbowR,a=n?this.fx:this.gx,o=n?this.fy:this.gy,s=n?this.fz:this.gz,c=this.dir(r,i,this.a),l=this.hingeAxis(e,c,a,o,s,this.b),u=e*6;this.hingeNow[u]=c.dot(a),this.hingeNow[u+1]=c.dot(o),this.hingeNow[u+2]=c.dot(s),this.hingeNow[u+3]=l.dot(a),this.hingeNow[u+4]=l.dot(o),this.hingeNow[u+5]=l.dot(s)}}get holding(){return this.steps*JS0&&(this.landedSeconds=0)}setLimp(e,t){for(let n=0;n0){let e=Math.min(this.steps,t.steps-1)*3;this.obstacleActive=t.data[e]===1,this.obstacleX=t.data[e+1],this.obstacleZ=t.data[e+2]}let n=JS,r=this.position,i=this.previous,a=this.landedSeconds<0?ZS:ZS+-.02300000000000002*Math.min(1,this.landedSeconds/yC);this.before.set(r);for(let e=0;e<26;e+=1)for(let t=0;t<3;t+=1){let o=e*3+t,s=r[o],c=(s-i[o])*a;i[o]=s,r[o]=s+c-(t===1?XS*n*n:0)}let o=this.pull;if(o!==null)for(let e=0;e<26;e+=1){let t=(o[e*3]-r[e*3])*this.pullShare,n=(o[e*3+1]-r[e*3+1])*this.pullShare,a=(o[e*3+2]-r[e*3+2])*this.pullShare,s=Math.sqrt(t*t+n*n+a*a),c=this.pullShare<1&&s>cw?cw/s:1;for(let o=0;o<3;o+=1){let s=(o===0?t:o===1?n:a)*c;r[e*3+o]=r[e*3+o]+s,i[e*3+o]=i[e*3+o]+s}}this.carryHinges();for(let e=0;e=0&&o===null&&this.toppleLegs(),this.applyFriction(),this.limitSpeed(),this.steps+=1;let s=0,c=0;for(let e=0;e<26;e+=1){let t=r[e*3]-i[e*3],a=r[e*3+1]-i[e*3+1],o=r[e*3+2]-i[e*3+2],l=Math.sqrt(t*t+a*a+o*o)/n;s=Math.max(s,l),uC.has(e)&&(c=Math.max(c,l))}this.stillSeconds=s=0?this.landedSeconds+=n:(this.torsoStillSeconds=c=_C||this.fallSeconds>=vC)&&(this.landedSeconds=0)),o===null&&(this.stillSeconds>=hC||this.landedSeconds>=bC)&&(this.asleep=!0)}solveRigid(){for(let e=0;er?r:c;if(l===c)return;let u=this.invMass[e],d=this.invMass[t],f=u+d;if(f<=0)return;let p=(c-l)/(c*f);i[e*3]=i[e*3]+a*p*u,i[e*3+1]=i[e*3+1]+o*p*u,i[e*3+2]=i[e*3+2]+s*p*u,i[t*3]=i[t*3]-a*p*d,i[t*3+1]=i[t*3+1]-o*p*d,i[t*3+2]=i[t*3+2]-s*p*d}solveKnees(){this.pelvisFrame(this.position);for(let e=0;e<2;e+=1){let t=e===0?W.hipL:W.hipR,n=e===0?W.kneeL:W.kneeR,r=this.dir(t,n,this.a),i=this.hingeAxis(e,r,this.fx,this.fy,this.fz,this.b),a=this.holding?Math.min(EC,this.kneeStart[e]+zC[this.style].knee):EC;this.hinge(n,e===0?W.ankleL:W.ankleR,r,i,-.12,a)}}solveElbows(){this.upperFrame(this.position);for(let e=0;e<2;e+=1){let t=e===0?W.shoulderL:W.shoulderR,n=e===0?W.elbowL:W.elbowR,r=this.dir(t,n,this.a),i=this.hingeAxis(2+e,r,this.gx,this.gy,this.gz,this.b);this.hinge(n,e===0?W.wristL:W.wristR,r,i,-.12,BC)}}toppleLegs(){let e=this.position;for(let t=0;t<2;t+=1){let n=t===0?W.hipL:W.hipR,r=t===0?W.kneeL:W.kneeR,i=t===0?W.ankleL:W.ankleR,a=this.dir(n,r,this.a);if(a.y>lC){let i=this.dir(W.hipR,W.hipL,this.b),o=this.c.crossVectors(i,this.d.set(e[r*3]-e[n*3],e[r*3+1]-e[n*3+1],e[r*3+2]-e[n*3+2])).y>0?-1:1;this.rotateAbout(oC[t],n,i,o*cC*(a.y-lC))}let o=this.dir(r,i,this.a);if(o.y>lC){let n=this.kneeAxis(t===0?0:1,e,this.b),a=this.c.crossVectors(n,this.d.set(e[i*3]-e[r*3],e[i*3+1]-e[r*3+1],e[i*3+2]-e[r*3+2])).y>0?-1:1;this.rotateAbout(sC[t],r,n,a*cC*(o.y-lC))}}}solveTwist(){let e=this.dir(W.pelvis,W.upper,this.e),t=this.dir(W.hipR,W.hipL,this.a);t.addScaledVector(e,-t.dot(e));let n=this.dir(W.shoulderR,W.shoulderL,this.c);if(n.addScaledVector(e,-n.dot(e)),t.lengthSq()<1e-8||n.lengthSq()<1e-8)return;let r=Math.atan2(this.d.crossVectors(t,n).dot(e),t.dot(n)),i=Math.abs(r)-aC;if(i<=0)return;let a=this.spinInertia(rC,e),o=this.spinInertia(iC,e),s=Math.sign(r)*i*IC;this.rotateAbout(rC,W.chest,e,-s*(o/(a+o))),this.rotateAbout(iC,W.chest,e,s*(a/(a+o)))}spinInertia(e,t){let n=this.position,r=1e-6;for(let i=0;iMath.abs(p)+1e-6){let n=Math.atan2(r,u),a=Math.acos(p/i),c=JC(n-a),l=JC(n+a),d=(Math.abs(c)<=Math.abs(l)?c:l)*s;this.rotateAbout(WS[t],o,e,Math.min(FC,Math.max(-.04,d)))}}let m=this.dir(i,a,this.a),h=this.hingeAxis(t,m,this.fx,this.fy,this.fz,this.b),g=this.footNormal(t===0?0:1,this.d).multiplyScalar(this.footSign[t]);if(h.addScaledVector(c,-h.dot(c)),g.addScaledVector(c,-g.dot(c)),h.lengthSq()<.09||g.lengthSq()<.09)continue;h.normalize(),g.normalize();let _=Math.atan2(this.e.crossVectors(h,g).dot(c),h.dot(g)),v=Math.min(AC,Math.max(-AC,_));v!==_&&this.rotateAbout(US[t],o,c,Math.min(PC,Math.max(-.01,(v-_)*s)))}}footNormal(e,t){let n=this.position,r=e===0?W.ankleL:W.ankleR,i=e===0?W.toeL:W.toeR,a=e===0?W.heelL:W.heelR;return t.set(n[i*3]-n[a*3],n[i*3+1]-n[a*3+1],n[i*3+2]-n[a*3+2]),this.turnPoint.set(n[r*3]-n[a*3],n[r*3+1]-n[a*3+1],n[r*3+2]-n[a*3+2]),t.cross(this.turnPoint).normalize()}cone(e,t,n,r,i,a){let o=this.dir(t,n,this.turnPoint),s=Math.acos(Math.min(1,Math.max(-1,o.dot(e))));if(s<=r)return;let c=this.turnAxis.crossVectors(o,e);if(c.lengthSq()<1e-10)return;c.normalize();let l=this.pressed(a,i,c)?LC*RC:LC;this.rotateAbout(a,i,c,Math.min(l,(s-r)*IC))}pressed(e,t,n){let r=this.position;for(let i=0;ibS[a]+.005)&&n.z*(r[a*3]-r[t*3])-n.x*(r[a*3+2]-r[t*3+2])<-1e-9)return!0}return!1}rotateAbout(e,t,n,r){let i=this.position;this.turnQuaternion.setFromAxisAngle(n,r);let a=i[t*3],o=i[t*3+1],s=i[t*3+2];for(let t=0;t=u||l<1e-6||(o.addScaledVector(c,(u-l)/l),YC(e,n,o))}}}closestOnSegment(e,t,n,r){let i=this.segmentA.subVectors(t,e),a=i.lengthSq(),o=a<1e-12?0:Math.min(1,Math.max(0,this.segmentB.subVectors(n,e).dot(i)/a));return r.copy(e).addScaledVector(i,o)}solveEnvironment(){let e=this.position;for(let t=0;t<26;t+=1){let n=bS[t],r=e[t*3],i=e[t*3+1],a=e[t*3+2];i=p||f<1e-9)continue;let m=(p-f)/f*eC,h=u*m,g=d*m;t?r+=s*h:a+=s*h,i+=g}let u=o?c-n*.6:dC;s*(t?r:a)>u&&(t?r=s*u:a=s*u)}for(let e=0;e<4;e+=1){let t=e<2?-pv:pv,o=e%2==0?-pv:pv,s=r-t,c=a-o,l=Math.sqrt(s*s+c*c),u=tC+n;l>=u||l<1e-9||i>1.45||(r=t+s/l*u,a=o+c/l*u)}if(this.obstacleActive&&i1e-9&&(r=this.obstacleX+e/i*o,a=this.obstacleZ+t/i*o)}e[t*3]=r,e[t*3+1]=i,e[t*3+2]=a}}limitSpeed(){let e=this.position,t=this.previous,n=CC*JS,r=wC*JS;for(let i=0;i<26;i+=1){let a=e[i*3]-t[i*3],o=e[i*3+1]-t[i*3+1],s=e[i*3+2]-t[i*3+2],c=Math.sqrt(a*a+o*o+s*s);if(c>n||cn?n/c:TC;t[i*3]=e[i*3]-a*r,t[i*3+1]=e[i*3+1]-o*r,t[i*3+2]=e[i*3+2]-s*r}}}applyFriction(){let e=this.position,t=this.previous;for(let n=0;n<26;n+=1)e[n*3+1]>bS[n]+.004||(t[n*3]=t[n*3]+(e[n*3]-t[n*3])*QS,t[n*3+2]=t[n*3+2]+(e[n*3+2]-t[n*3+2])*QS,t[n*3+1]>e[n*3+1]&&(t[n*3+1]=e[n*3+1]))}settle(e=4,t){let n=this.steps+Math.ceil(e/JS);for(;!this.asleep&&this.steps1e-9?n.divideScalar(i):n.set(0,1,0)}pelvisFrame(e){this.fx.set(e[W.hipL*3]-e[W.hipR*3],e[W.hipL*3+1]-e[W.hipR*3+1],e[W.hipL*3+2]-e[W.hipR*3+2]).normalize(),this.fz.set(e[W.belly*3]-(e[W.hipL*3]+e[W.hipR*3])/2,e[W.belly*3+1]-(e[W.hipL*3+1]+e[W.hipR*3+1])/2,e[W.belly*3+2]-(e[W.hipL*3+2]+e[W.hipR*3+2])/2),this.fz.addScaledVector(this.fx,-this.fz.dot(this.fx)).normalize(),this.fy.crossVectors(this.fz,this.fx).normalize()}upperFrame(e){this.gx.set(e[W.shoulderL*3]-e[W.shoulderR*3],e[W.shoulderL*3+1]-e[W.shoulderR*3+1],e[W.shoulderL*3+2]-e[W.shoulderR*3+2]).normalize(),this.gy.set(e[W.neck*3]-e[W.upper*3],e[W.neck*3+1]-e[W.upper*3+1],e[W.neck*3+2]-e[W.upper*3+2]),this.gy.addScaledVector(this.gx,-this.gy.dot(this.gx)).normalize(),this.gz.crossVectors(this.gx,this.gy).normalize()}pelvisForward(e){return this.pelvisFrame(this.position),e.copy(this.fz)}};function ZC(e,t){e.setLimp(GS,!!(t&1)),e.setLimp(KS,!!(t&2)),e.setLimp(qS,!!(t&4))}var QC=[`hips`,`spine`,`chest`,`upperChest`,`neck`,`head`,`shoulderL`,`elbowL`,`gloveL`,`shoulderR`,`elbowR`,`gloveR`,`hipL`,`kneeL`,`ankleL`,`hipR`,`kneeR`,`ankleR`],$C=QC.map(e=>({shoulderL:[W.shoulderL,W.elbowL],elbowL:[W.elbowL,W.wristL],gloveL:[W.wristL,W.fistL],shoulderR:[W.shoulderR,W.elbowR],elbowR:[W.elbowR,W.wristR],gloveR:[W.wristR,W.fistR],hipL:[W.hipL,W.kneeL],kneeL:[W.kneeL,W.ankleL],hipR:[W.hipR,W.kneeR],kneeR:[W.kneeR,W.ankleR]})[e]??null),ew=QC.map(e=>({chest:W.chest,shoulderL:W.shoulderL,shoulderR:W.shoulderR,hipL:W.hipL,hipR:W.hipR})[e]??-1),tw=.1,nw=.35,rw=.6,iw=10,aw=.35,ow=6,sw=.25,cw=.05,lw=.3,uw=6;function dw(e){let t=e.lateral;if(e.target===`body`){let n=Math.min(2.6,Math.max(1,.9+e.amount/90));return{x:.3*t*n,y:-.05*n,z:-n,driveX:.1*t*n,driveY:-.2*n,driveZ:.45*n,twist:0}}let n=Math.min(3.2,Math.max(1.4,1.2+e.amount/70)),r=n/3.2;switch(e.punchClass){case`hook`:return{x:t*n,y:.05*n,z:-.25*n,driveX:.55*t*r,driveY:-.1*r,driveZ:.85*r,twist:.6};case`uppercut`:return{x:0,y:.8*n,z:-.65*n,driveX:0,driveY:.25*r,driveZ:-1.1*r,twist:.4};case`straight`:return{x:.12*t*n,y:.1*n,z:-n,driveX:.1*t*r,driveY:0,driveZ:-1.25*r,twist:.3};default:return{x:.12*t*n,y:.1*n,z:-.85*n,driveX:.08*t*r,driveY:0,driveZ:-1*r,twist:.2}}}var fw=class{rig;root;body=new XC;ahead=new XC;aheadOf=null;aheadBlows=0;ragdolling=!1;age=0;accumulator=0;sampleNow=new Float64Array(78);sampleBefore=new Float64Array(78);sampleRoot=new B;sampleSeconds=0;samples=0;drawn=new Float64Array(78);velocities=new Float64Array(78);offsets=QC.map(()=>new hs);fromLocal=QC.map(()=>new hs);fromPositions=QC.map(()=>new B);fromHips=new B;riseLocal=QC.map(()=>new hs);riseHips=new B;riseTurns=QC.map(()=>new hs);solvedTurns=QC.map(()=>new hs);rootTurn=new hs;turn=new hs;riseCaptured=!1;lastFall=null;recordPositions=new Float64Array(78);recordVelocities=new Float64Array(78);recordOffsets=QC.map(()=>new hs);recordImpulses=[];recordObstacles={data:new Float64Array(xC*3),steps:0};recordLosses=[];recordRest={position:new Float64Array(78),previous:new Float64Array(78),steps:-1};replaying=null;followTargets=new Float64Array(78);followOffsets=QC.map(()=>new hs);blendedOffsets=QC.map(()=>new hs);following=!1;followAge=0;primed=!1;pending=null;lost=0;clock=0;bones;frame=new hs;world=new hs;axisX=new B;axisY=new B;axisZ=new B;hint=new B;point=new B;other=new B;pelvisX=new B;pelvisY=new B;upperX=new B;headX=new B;kneeAxes=[new B(1,0,0),new B(1,0,0)];elbowAxes=[new B,new B];spineLength;tiltJoint=new B;tiltChest=new B;tiltAcross=new B;tiltTurn=new hs;constructor(e,t){this.rig=e,this.root=t,this.bones=QC.map(t=>e.bones[t]);let n=new Map;t.traverse(e=>{e instanceof tu&&n.set(e,[e.quaternion.clone(),e.position.clone()])}),e.resetToRest(),t.updateMatrixWorld(!0);let r=new Float64Array(78);this.read(r),this.body.calibrate(r),this.ahead.calibrate(r),this.spineLength=this.tiltJoint.setFromMatrixPosition(e.bones.spine.matrixWorld).distanceTo(this.tiltChest.setFromMatrixPosition(e.bones.chest.matrixWorld));for(let[e,[t,r]]of n)e.quaternion.copy(t),e.position.copy(r);t.updateMatrixWorld(!0)}get active(){return this.ragdolling}get record(){return this.lastFall}sample(e){this.ragdolling||e<=0||(this.sampleBefore.set(this.sampleNow),this.read(this.sampleNow),this.sampleRoot.setFromMatrixPosition(this.root.matrixWorld),this.sampleSeconds=e,this.samples=Math.min(2,this.samples+1))}tick(e){this.clock+=e}takeBlow(e,t,n,r,i){let a={step:0,x:e.x,y:e.y,z:e.z,driveX:t.x,driveY:t.y,driveZ:t.z,target:n,twist:r,style:i};if(this.ragdolling){if(this.age>nw)return;if(this.replaying!==null){this.replaying.impulses.length===0&&this.replaying.impulses.push({...a,step:this.body.steps});return}this.lastFall?.impulses.push(this.body.impulse(a))}else this.pending={...a,at:this.clock}}dropBlow(){this.pending=null}twitch(e,t,n){this.ragdolling&&!this.following&&(this.body.twitch(e,t,n),this.replaying===null&&this.lastFall!==null&&(this.lastFall.rest.steps=-1))}prime(){this.primed=this.lastFall!==null}forget(){this.lastFall=null,this.primed=!1}start(e){let t=this.primed?this.lastFall:null;if(this.primed=!1,this.root.updateMatrixWorld(!0),this.captureLocals(this.fromLocal,this.fromHips),t!==null){this.replaying=t,this.body.start(t.positions,t.velocities,t.style),this.body.trackObstacle(t.obstacles,!0),this.replayLosses(this.body,t,0);for(let[e,n]of t.offsets.entries())this.offsets[e].copy(n);this.aheadOf=null,t.rest.steps<0&&this.runAhead(t,0)}else{this.replaying=null;let t=this.point.setFromMatrixPosition(this.root.matrixWorld).sub(this.sampleRoot),n=this.samples>0&&t.lengthSq()<=aw*aw;if(!n)this.read(this.sampleNow);else for(let e=0;e<26;e+=1)for(let n of[this.sampleNow,this.sampleBefore])n[e*3]=n[e*3]+t.x,n[e*3+1]=n[e*3+1]+t.y,n[e*3+2]=n[e*3+2]+t.z;let r=n&&this.samples>=2&&this.sampleSeconds>0?this.sampleSeconds:0;this.samples=0;for(let e=0;e<78;e+=1){let t=r>0?(this.sampleNow[e]-this.sampleBefore[e])/r:0;this.velocities[e]=Math.max(-3,Math.min(SC,t))}let i=this.rig.bones.neck,a=this.rig.bones.head;this.point.copy(this.rig.restLocalPosition(a)).applyMatrix4(i.matrixWorld).sub(this.other.setFromMatrixPosition(a.matrixWorld));for(let e of VS)this.sampleNow[e*3]=this.sampleNow[e*3]+this.point.x,this.sampleNow[e*3+1]=this.sampleNow[e*3+1]+this.point.y,this.sampleNow[e*3+2]=this.sampleNow[e*3+2]+this.point.z;let o=this.pending!==null&&this.clock-this.pending.at<=rw?this.pending:null;this.body.start(this.sampleNow,this.velocities,o?.style??e),this.computeOffsets();let s=this.recordImpulses;s.length=0,o!==null&&s.push(this.body.impulse({step:0,x:o.x,y:o.y,z:o.z,driveX:o.driveX,driveY:o.driveY,driveZ:o.driveZ,target:o.target,twist:o.twist}));let c=this.recordObstacles;c.steps=0,this.body.trackObstacle(c,!1),this.recordPositions.set(this.sampleNow),this.recordVelocities.set(this.velocities);for(let e=0;e=.008333333333333333&&i=.008333333333333333&&n=0)this.body.restore(t);else{let t=this.body.steps+Math.ceil(uw/JS);for(;!this.body.asleep&&this.body.steps=1)return;let t=Math.min(1,Math.max(0,e));this.bodyTurns(this.solvedTurns),this.rig.bones.hips.position.lerpVectors(this.riseHips,this.rig.bones.hips.position,t);for(let e=0;eYC(e,t,n),r=e=>this.point.setFromMatrixPosition(e.matrixWorld),i=(e,t,n)=>n.setFromMatrixColumn(e.matrixWorld,t).normalize();n(W.pelvis,r(t.hips)),n(W.hipL,r(t.hipL)),n(W.hipR,r(t.hipR)),n(W.belly,r(t.hips).addScaledVector(i(t.hips,2,this.axisZ),xS)),n(W.chest,r(t.chest)),n(W.upper,r(t.upperChest)),n(W.neck,r(t.neck)),n(W.shoulderL,r(t.shoulderL)),n(W.shoulderR,r(t.shoulderR)),n(W.head,r(t.head)),n(W.crown,r(t.head).addScaledVector(i(t.head,1,this.axisY),SS)),n(W.face,r(t.head).addScaledVector(i(t.head,2,this.axisZ),CS).addScaledVector(i(t.head,1,this.axisY),wS)),n(W.elbowL,r(t.elbowL)),n(W.wristL,r(t.gloveL)),n(W.fistL,r(t.gloveL).addScaledVector(i(t.gloveL,1,this.axisY),TS)),n(W.elbowR,r(t.elbowR)),n(W.wristR,r(t.gloveR)),n(W.fistR,r(t.gloveR).addScaledVector(i(t.gloveR,1,this.axisY),TS)),n(W.kneeL,r(t.kneeL)),n(W.ankleL,r(t.ankleL)),n(W.toeL,r(t.toeL)),n(W.heelL,r(t.ankleL).addScaledVector(i(t.toeL,1,this.axisY),-.07).addScaledVector(i(t.toeL,2,this.axisZ),-.09)),n(W.kneeR,r(t.kneeR)),n(W.ankleR,r(t.ankleR)),n(W.toeR,r(t.toeR)),n(W.heelR,r(t.ankleR).addScaledVector(i(t.toeR,1,this.axisY),-.07).addScaledVector(i(t.toeR,2,this.axisZ),-.09))}computeOffsets(){this.prepareFrames(this.body.position);for(let e=0;e=0&&this.rig.setWorldPosition(i,qC(e,a,this.point)),QC[r]===`upperChest`&&(this.rig.bones.clavicleL.updateWorldMatrix(!1,!1),this.rig.bones.clavicleR.updateWorldMatrix(!1,!1))}this.root.updateMatrixWorld(!0)}tiltHips(e){let t=this.rig.bones.hips,n=this.point.setFromMatrixPosition(t.matrixWorld),r=this.tiltJoint.copy(this.rig.restLocalPosition(this.rig.bones.spine)).applyMatrix4(t.matrixWorld).sub(n),i=qC(e,W.chest,this.tiltChest).sub(n),a=this.pelvisX,o=a.dot(r),s=this.tiltAcross.copy(r).addScaledVector(a,-o),c=(r.lengthSq()+i.lengthSq()-this.spineLength*this.spineLength)/2-o*a.dot(i),l=s.dot(i),u=this.other.crossVectors(a,s).dot(i),d=Math.hypot(l,u);if(d<1e-9)return;let f=Math.atan2(u,l),p=Math.acos(Math.min(1,Math.max(-1,c/d))),m=JC(f-p),h=JC(f+p),g=Math.abs(m)<=Math.abs(h)?m:h;Math.abs(g)<1e-5||(t.getWorldQuaternion(this.world).premultiply(this.tiltTurn.setFromAxisAngle(a,g)),this.rig.setWorldRotation(t,this.world))}prepareFrames(e){this.segment(e,W.hipR,W.hipL,this.pelvisX),this.axisZ.set(e[W.belly*3]-(e[W.hipL*3]+e[W.hipR*3])/2,e[W.belly*3+1]-(e[W.hipL*3+1]+e[W.hipR*3+1])/2,e[W.belly*3+2]-(e[W.hipL*3+2]+e[W.hipR*3+2])/2),this.axisZ.addScaledVector(this.pelvisX,-this.axisZ.dot(this.pelvisX)).normalize(),this.pelvisY.crossVectors(this.axisZ,this.pelvisX).normalize(),this.segment(e,W.shoulderR,W.shoulderL,this.upperX),this.segment(e,W.head,W.crown,this.axisX),this.segment(e,W.head,W.face,this.other),this.headX.crossVectors(this.axisX,this.other).normalize()}segment(e,t,n,r){return r.set(e[n*3]-e[t*3],e[n*3+1]-e[t*3+1],e[n*3+2]-e[t*3+2]),r.lengthSq()>1e-12?r.normalize():r.set(0,1,0)}frameFor(e,t,n){let r=QC[e];switch(r){case`hips`:return Jx(this.pelvisY,this.pelvisX,`x`,n);case`spine`:{let r=this.bones[e];return r.updateWorldMatrix(!1,!1),this.axisY.setFromMatrixPosition(r.matrixWorld),this.axisY.set(t[W.chest*3]-this.axisY.x,t[W.chest*3+1]-this.axisY.y,t[W.chest*3+2]-this.axisY.z),this.axisY.lengthSq()>1e-12?this.axisY.normalize():this.segment(t,W.pelvis,W.chest,this.axisY),Jx(this.axisY,this.hint.copy(this.pelvisX).multiplyScalar(.75).addScaledVector(this.upperX,.25),`x`,n)}case`chest`:return this.segment(t,W.chest,W.upper,this.axisY),Jx(this.axisY,this.hint.copy(this.pelvisX).multiplyScalar(.4).addScaledVector(this.upperX,.6),`x`,n);case`upperChest`:return this.segment(t,W.upper,W.neck,this.axisY),Jx(this.axisY,this.upperX,`x`,n);case`neck`:return this.segment(t,W.neck,W.head,this.axisY),Jx(this.axisY,this.hint.copy(this.upperX).add(this.headX),`x`,n);case`head`:return this.segment(t,W.head,W.crown,this.axisY),Jx(this.axisY,this.segment(t,W.head,W.face,this.hint),`z`,n);case`shoulderL`:case`elbowL`:case`gloveL`:case`shoulderR`:case`elbowR`:case`gloveR`:{let i=+!r.endsWith(`L`),a=$C[e],o=this.body.elbowAxis(i,t,this.elbowAxes[i]);return this.segment(t,a[0],a[1],this.axisY),Jx(this.axisY,o,`x`,n)}case`hipL`:case`kneeL`:case`hipR`:case`kneeR`:{let i=+!r.endsWith(`L`),a=$C[e],o=this.body.kneeAxis(i,t,this.kneeAxes[i]);return this.segment(t,a[0],a[1],this.axisY),Jx(this.axisY,o,`x`,n)}default:{let e=r===`ankleL`,i=e?W.ankleL:W.ankleR,a=e?W.toeL:W.toeR,o=e?W.heelL:W.heelR;return this.segment(t,i,a,this.axisY),this.segment(t,o,a,this.hint),this.other.set(t[i*3]-t[o*3],t[i*3+1]-t[o*3+1],t[i*3+2]-t[o*3+2]),this.hint.cross(this.other),Jx(this.axisY,this.hint,`x`,n)}}}};function pw(e,t,n){let r=Math.min(1,Math.max(0,(n-e)/(t-e)));return r*r*(3-2*r)}var mw=3,hw=5;function gw(e){return 1-.74*pw(-.6,1.4,e)}var _w=.23,vw=.22,yw=.22,bw=1.15,xw=.5,Sw=.9,Cw=.045,ww=[.33,.66],Tw=Cw*2*.33*.67,Ew=.04;function Dw(e,t){return{pressX:Math.min(vw,Math.max(0,Math.abs(e)+_w-pv)),pressZ:Math.min(vw,Math.max(0,Math.abs(t)+_w-pv))}}function Ow(e,t,n){return n.x=Math.sign(e)*Math.max(0,Math.abs(e)+_w-pv-vw),n.z=Math.sign(t)*Math.max(0,Math.abs(t)+_w-pv-vw),n}var kw=` float ropeGive(float along, float position, float height) { - float near = 1.0 - smoothstep(${vw.toFixed(2)}, ${yw.toFixed(2)}, abs(along)); - float tied = smoothstep(0.0, ${bw.toFixed(2)}, ${fv.toFixed(4)} - abs(position)); - return near * tied * (${xw.toFixed(2)} + ${.09999999999999998.toFixed(2)} * smoothstep(0.5, 0.88, height)); + float near = 1.0 - smoothstep(${yw.toFixed(2)}, ${bw.toFixed(2)}, abs(along)); + float tied = smoothstep(0.0, ${xw.toFixed(2)}, ${pv.toFixed(4)} - abs(position)); + return near * tied * (${Sw.toFixed(2)} + ${.09999999999999998.toFixed(2)} * smoothstep(0.5, 0.88, height)); } -`,kw=` +`,Aw=` vec3 ropeWorld = (modelMatrix * vec4(transformed, 1.0)).xyz; bool ropeSideX = abs(ropeWorld.x) > abs(ropeWorld.z); vec3 ropeOut = ropeSideX ? vec3(sign(ropeWorld.x), 0.0, 0.0) : vec3(0.0, 0.0, sign(ropeWorld.z)); @@ -5241,12 +5241,12 @@ for (int ropeIndex = 0; ropeIndex < 2; ropeIndex += 1) { ropeFlex = max(ropeFlex, press * sameSide * ropeGive(ropeAlong - along, ropeAlong, ropeWorld.y)); } transformed += ropeOut * ropeFlex; -`;function Aw(e,t){let n=document.createElement(`canvas`);n.width=e,n.height=e;let r=n.getContext(`2d`);r!==null&&t(r,e);let i=new Bu(n);return i.anisotropy=8,i.colorSpace=xo,i}function jw(){return Aw(1024,(e,t)=>{e.fillStyle=`#9d968a`,e.fillRect(0,0,t,t);let n=e.createLinearGradient(0,0,t,t);n.addColorStop(0,`rgba(255,255,255,0.08)`),n.addColorStop(.5,`rgba(60,50,40,0.06)`),n.addColorStop(1,`rgba(255,255,255,0.04)`),e.fillStyle=n,e.fillRect(0,0,t,t);for(let n=0;n<2600;n+=1){let r=Math.sin(n*12.9898)*43758.5453%1,i=Math.sin(n*78.233)*12543.1234%1;e.fillStyle=`rgba(${n%3==0?`255,255,255`:`70,55,45`},${.02+n%5*.006})`,e.fillRect(Math.abs(r)*t,Math.abs(i)*t,2+n%4,1+n%3)}for(let n=0;n<40;n+=1){let r=Math.abs(Math.sin(n*91.7)*7919.3%1)*t,i=Math.abs(Math.sin(n*47.1)*4271.9%1)*t;e.fillStyle=`rgba(80,60,50,${.05+n%4*.02})`,e.beginPath(),e.ellipse(r,i,18+n%7*6,6+n%5*3,n*.7%Math.PI,0,Math.PI*2),e.fill()}e.strokeStyle=`rgba(30,60,140,0.85)`,e.lineWidth=12,e.beginPath(),e.arc(t/2,t/2,t*.2,0,Math.PI*2),e.stroke(),e.fillStyle=`rgba(30,60,140,0.9)`,e.font=`800 ${Math.round(t*.062)}px Inter, system-ui, sans-serif`,e.textAlign=`center`,e.textBaseline=`middle`,e.fillText(`H A N D S`,t/2,t/2-t*.012),e.font=`600 ${Math.round(t*.024)}px Inter, system-ui, sans-serif`,e.fillText(`CHAMPIONSHIP BOXING`,t/2,t/2+t*.052),e.strokeStyle=`rgba(30,60,140,0.6)`,e.lineWidth=6,e.strokeRect(t*.035,t*.035,t*.93,t*.93)})}function Mw(){let e=[],t=[],n=[],r=new fc;r.name=`ring`;let i=jw();n.push(i);let a=new Hd({map:i,color:`#c8c2b8`,roughness:.84,metalness:0});t.push(a);let o=new Ed(cv*2,cv*2);e.push(o);let s=new H(o,a);s.rotation.x=-Math.PI/2,s.position.y=.002,s.receiveShadow=!0,r.add(s);let c=new Hd({color:`#1c2b52`,roughness:.85});t.push(c);let l=new Dd(cv*.98,lv,4,1);e.push(l);let u=new H(l,c);u.rotation.x=-Math.PI/2,u.rotation.z=Math.PI/4,u.position.y=.001,u.receiveShadow=!0,r.add(u);let d=new Hd({color:`#0c1424`,roughness:.9});t.push(d);let f=new Wu(uv*2,1,uv*2);e.push(f);let p=new H(f,d);p.position.y=-.5,p.receiveShadow=!0,r.add(p);let m=new Hd({color:`#101b33`,roughness:.95});t.push(m);for(let t=0;t<4;t+=1){let n=new Ed(uv*2,.95);e.push(n);let i=new H(n,m),a=t*Math.PI/2;i.position.set(Math.sin(a)*(uv-.001),-.48,Math.cos(a)*(uv-.001)),i.rotation.y=a,r.add(i)}let h=new Hd({color:`#9aa7b5`,roughness:.35,metalness:.75});t.push(h);let g=[hv.neutral,hv.red,hv.neutral,hv.blue],_=new qu(.055,.055,1.55,12);e.push(_);let v=new Wu(.34,.52,.13);e.push(v);let y=new Wu(.16,.07,.1);e.push(y);let b=[];for(let e=0;e<4;e+=1){let n=Math.PI/4+e*Math.PI/2,i=Math.sin(n)*dv*Math.SQRT2*.72,a=Math.cos(n)*dv*Math.SQRT2*.72;b.push(new B(i,0,a));let o=new H(_,h);o.position.set(i,.78,a),o.castShadow=!0,r.add(o);let s=new Hd({color:g[e],roughness:.55});t.push(s);for(let e of[.62,1.12]){let t=new H(v,s);t.position.set(i*.985,e,a*.985),t.lookAt(0,e,0),t.castShadow=!0,r.add(t)}}let x=[new Ns(0,0,0,0),new Ns(0,0,0,0)],S={uRopeContactA:{value:x[0]},uRopeContactB:{value:x[1]}},C=[12131356,15067115,1920728],w=e=>{e.uniforms.uRopeContactA=S.uRopeContactA,e.uniforms.uRopeContactB=S.uRopeContactB,e.vertexShader=e.vertexShader.replace(`#include `,`#include \nuniform vec4 uRopeContactA;\nuniform vec4 uRopeContactB;\n${Ow}`).replace(`#include `,`#include ${kw}`)},T=e=>{let n=new Hd(e);return n.onBeforeCompile=w,t.push(n),n},E=new Wd;E.onBeforeCompile=w,E.customProgramCacheKey=()=>`hands-rope-depth`,t.push(E);let D=e=>T({color:e,roughness:.42,metalness:.05}),O=C.map(D),k=C.map(D),ee=T({color:14212840,roughness:.6}),A=T({color:14212840,roughness:.6});k.push(A);let te=pv[0]-ww-Tw,j=pv[pv.length-1]-ww+Tw,M=new Wu(.035,j-te,.012,1,6,1);e.push(M);let ne=(e,t)=>{for(let[n,r]of[e,t].entries()){let e=x[n];if(r===null){e.set(0,0,0,0);continue}let t=Ew(r.x,r.z);e.set(r.x,r.z,t.pressX,t.pressZ)}};for(let t=0;t<4;t+=1){let n=b[t],i=b[(t+1)%4];for(let[a,o]of pv.entries()){let s=n.clone().add(i).multiplyScalar(.5);s.y=o-Sw;let c=new jd(new xd(new B(n.x,o,n.z),s,new B(i.x,o,i.z)),72,.028,8,!1);e.push(c);let l=new H(c,(t===pw?k:O)[a]);l.castShadow=!0,l.customDepthMaterial=E,t===pw&&(l.renderOrder=mw),r.add(l)}for(let e of Cw){let a=n.x+(i.x-n.x)*e,o=n.z+(i.z-n.z)*e,s=new H(M,t===pw?A:ee);s.position.set(a,(te+j)/2,o),s.lookAt(0,s.position.y,0),t===pw&&(s.renderOrder=mw),r.add(s)}}for(let e of k)e.transparent=!0;return{group:r,materials:t,geometries:e,textures:n,setRopeContacts:ne,ropeContacts:x,setNearRopeOpacity:e=>{for(let t of k)t.opacity=R.clamp(e,0,1),t.visible=t.opacity>.03,t.depthWrite=t.opacity>=1},nearRopeOpacity:()=>k[0].opacity}}function Nw(e){for(let t of e.geometries)t.dispose();for(let t of e.materials)t.dispose();for(let t of e.textures)t.dispose()}var Pw={MHeadMat0:`head`,GlovesMat0:`gloves`,MBodyMat0:`body`,ShoesMat0:`shoes`,PantsMat0:`pants`},Fw={GlovesMat0:.33,PantsMat0:.44,ShoesMat0:.5},Iw=new Map,Lw=new Map,Rw=null,zw=null,Bw=new Map;function Vw(e){return e.colorSpace=xo,e.flipY=!1,e}function Hw(e){let t=Iw.get(e);if(t!==void 0)return Promise.resolve(t);let n=Lw.get(e);if(n!==void 0)return n;let r=new Df().loadAsync(pb[e]).then(t=>(Iw.set(e,Vw(t)),t));return Lw.set(e,r),r}function Uw(){return Promise.all(Object.keys(pb).map(Hw))}async function Ww(){let e=Uint8Array.from(atob(db),e=>e.charCodeAt(0)),t=new Response(e).body;if(t===null)throw Error(`fighter_glb_stream_unavailable`);return new Response(t.pipeThrough(new DecompressionStream(`gzip`))).arrayBuffer()}function Gw(){if(Rw===null){let e=Ww().then(e=>new Promise((t,n)=>{new dy().parse(e,``,t,e=>n(e instanceof Error?e:Error(String(e))))}));Rw=Promise.all([e,Uw()]).then(([e])=>(zw=e.scene,e))}return Rw}function Kw(){qw(zw,Iw.values());for(let e of Bw.values())e.dispose()}function qw(e,t){e?.traverse(e=>{e instanceof H&&e.geometry.dispose()});for(let e of t)e.dispose()}function Jw(e){e.traverse(e=>{e instanceof $l&&e.skeleton.dispose()})}function Yw(e){let t=Iw.get(e);if(t!==void 0)return t;let n=Vw(new Df().load(pb[e]));return Iw.set(e,n),n}var Xw=`{ +`;function jw(e,t){let n=document.createElement(`canvas`);n.width=e,n.height=e;let r=n.getContext(`2d`);r!==null&&t(r,e);let i=new Vu(n);return i.anisotropy=8,i.colorSpace=So,i}function Mw(){return jw(1024,(e,t)=>{e.fillStyle=`#9d968a`,e.fillRect(0,0,t,t);let n=e.createLinearGradient(0,0,t,t);n.addColorStop(0,`rgba(255,255,255,0.08)`),n.addColorStop(.5,`rgba(60,50,40,0.06)`),n.addColorStop(1,`rgba(255,255,255,0.04)`),e.fillStyle=n,e.fillRect(0,0,t,t);for(let n=0;n<2600;n+=1){let r=Math.sin(n*12.9898)*43758.5453%1,i=Math.sin(n*78.233)*12543.1234%1;e.fillStyle=`rgba(${n%3==0?`255,255,255`:`70,55,45`},${.02+n%5*.006})`,e.fillRect(Math.abs(r)*t,Math.abs(i)*t,2+n%4,1+n%3)}for(let n=0;n<40;n+=1){let r=Math.abs(Math.sin(n*91.7)*7919.3%1)*t,i=Math.abs(Math.sin(n*47.1)*4271.9%1)*t;e.fillStyle=`rgba(80,60,50,${.05+n%4*.02})`,e.beginPath(),e.ellipse(r,i,18+n%7*6,6+n%5*3,n*.7%Math.PI,0,Math.PI*2),e.fill()}e.strokeStyle=`rgba(30,60,140,0.85)`,e.lineWidth=12,e.beginPath(),e.arc(t/2,t/2,t*.2,0,Math.PI*2),e.stroke(),e.fillStyle=`rgba(30,60,140,0.9)`,e.font=`800 ${Math.round(t*.062)}px Inter, system-ui, sans-serif`,e.textAlign=`center`,e.textBaseline=`middle`,e.fillText(`H A N D S`,t/2,t/2-t*.012),e.font=`600 ${Math.round(t*.024)}px Inter, system-ui, sans-serif`,e.fillText(`CHAMPIONSHIP BOXING`,t/2,t/2+t*.052),e.strokeStyle=`rgba(30,60,140,0.6)`,e.lineWidth=6,e.strokeRect(t*.035,t*.035,t*.93,t*.93)})}function Nw(){let e=[],t=[],n=[],r=new pc;r.name=`ring`;let i=Mw();n.push(i);let a=new Ud({map:i,color:`#c8c2b8`,roughness:.84,metalness:0});t.push(a);let o=new Dd(lv*2,lv*2);e.push(o);let s=new H(o,a);s.rotation.x=-Math.PI/2,s.position.y=.002,s.receiveShadow=!0,r.add(s);let c=new Ud({color:`#1c2b52`,roughness:.85});t.push(c);let l=new Od(lv*.98,uv,4,1);e.push(l);let u=new H(l,c);u.rotation.x=-Math.PI/2,u.rotation.z=Math.PI/4,u.position.y=.001,u.receiveShadow=!0,r.add(u);let d=new Ud({color:`#0c1424`,roughness:.9});t.push(d);let f=new Gu(dv*2,1,dv*2);e.push(f);let p=new H(f,d);p.position.y=-.5,p.receiveShadow=!0,r.add(p);let m=new Ud({color:`#101b33`,roughness:.95});t.push(m);for(let t=0;t<4;t+=1){let n=new Dd(dv*2,.95);e.push(n);let i=new H(n,m),a=t*Math.PI/2;i.position.set(Math.sin(a)*(dv-.001),-.48,Math.cos(a)*(dv-.001)),i.rotation.y=a,r.add(i)}let h=new Ud({color:`#9aa7b5`,roughness:.35,metalness:.75});t.push(h);let g=[gv.neutral,gv.red,gv.neutral,gv.blue],_=new Ju(.055,.055,1.55,12);e.push(_);let v=new Gu(.34,.52,.13);e.push(v);let y=new Gu(.16,.07,.1);e.push(y);let b=[];for(let e=0;e<4;e+=1){let n=Math.PI/4+e*Math.PI/2,i=Math.sin(n)*fv*Math.SQRT2*.72,a=Math.cos(n)*fv*Math.SQRT2*.72;b.push(new B(i,0,a));let o=new H(_,h);o.position.set(i,.78,a),o.castShadow=!0,r.add(o);let s=new Ud({color:g[e],roughness:.55});t.push(s);for(let e of[.62,1.12]){let t=new H(v,s);t.position.set(i*.985,e,a*.985),t.lookAt(0,e,0),t.castShadow=!0,r.add(t)}}let x=[new Ps(0,0,0,0),new Ps(0,0,0,0)],S={uRopeContactA:{value:x[0]},uRopeContactB:{value:x[1]}},C=[12131356,15067115,1920728],w=e=>{e.uniforms.uRopeContactA=S.uRopeContactA,e.uniforms.uRopeContactB=S.uRopeContactB,e.vertexShader=e.vertexShader.replace(`#include `,`#include \nuniform vec4 uRopeContactA;\nuniform vec4 uRopeContactB;\n${kw}`).replace(`#include `,`#include ${Aw}`)},T=e=>{let n=new Ud(e);return n.onBeforeCompile=w,t.push(n),n},E=new Gd;E.onBeforeCompile=w,E.customProgramCacheKey=()=>`hands-rope-depth`,t.push(E);let D=e=>T({color:e,roughness:.42,metalness:.05}),O=C.map(D),k=C.map(D),ee=T({color:14212840,roughness:.6}),A=T({color:14212840,roughness:.6});k.push(A);let te=mv[0]-Tw-Ew,j=mv[mv.length-1]-Tw+Ew,M=new Gu(.035,j-te,.012,1,6,1);e.push(M);let ne=(e,t)=>{for(let[n,r]of[e,t].entries()){let e=x[n];if(r===null){e.set(0,0,0,0);continue}let t=Dw(r.x,r.z);e.set(r.x,r.z,t.pressX,t.pressZ)}};for(let t=0;t<4;t+=1){let n=b[t],i=b[(t+1)%4];for(let[a,o]of mv.entries()){let s=n.clone().add(i).multiplyScalar(.5);s.y=o-Cw;let c=new Md(new Sd(new B(n.x,o,n.z),s,new B(i.x,o,i.z)),72,.028,8,!1);e.push(c);let l=new H(c,(t===mw?k:O)[a]);l.castShadow=!0,l.customDepthMaterial=E,t===mw&&(l.renderOrder=hw),r.add(l)}for(let e of ww){let a=n.x+(i.x-n.x)*e,o=n.z+(i.z-n.z)*e,s=new H(M,t===mw?A:ee);s.position.set(a,(te+j)/2,o),s.lookAt(0,s.position.y,0),t===mw&&(s.renderOrder=hw),r.add(s)}}for(let e of k)e.transparent=!0;return{group:r,materials:t,geometries:e,textures:n,setRopeContacts:ne,ropeContacts:x,setNearRopeOpacity:e=>{for(let t of k)t.opacity=R.clamp(e,0,1),t.visible=t.opacity>.03,t.depthWrite=t.opacity>=1},nearRopeOpacity:()=>k[0].opacity}}function Pw(e){for(let t of e.geometries)t.dispose();for(let t of e.materials)t.dispose();for(let t of e.textures)t.dispose()}var Fw={MHeadMat0:`head`,GlovesMat0:`gloves`,MBodyMat0:`body`,ShoesMat0:`shoes`,PantsMat0:`pants`},Iw={GlovesMat0:.33,PantsMat0:.44,ShoesMat0:.5},Lw=new Map,Rw=new Map,zw=null,Bw=null,Vw=new Map;function Hw(e){return e.colorSpace=So,e.flipY=!1,e}function Uw(e){let t=Lw.get(e);if(t!==void 0)return Promise.resolve(t);let n=Rw.get(e);if(n!==void 0)return n;let r=new Of().loadAsync(mb[e]).then(t=>(Lw.set(e,Hw(t)),t));return Rw.set(e,r),r}function Ww(){return Promise.all(Object.keys(mb).map(Uw))}async function Gw(){let e=Uint8Array.from(atob(fb),e=>e.charCodeAt(0)),t=new Response(e).body;if(t===null)throw Error(`fighter_glb_stream_unavailable`);return new Response(t.pipeThrough(new DecompressionStream(`gzip`))).arrayBuffer()}function Kw(){if(zw===null){let e=Gw().then(e=>new Promise((t,n)=>{new fy().parse(e,``,t,e=>n(e instanceof Error?e:Error(String(e))))}));zw=Promise.all([e,Ww()]).then(([e])=>(Bw=e.scene,e))}return zw}function qw(){Jw(Bw,Lw.values());for(let e of Vw.values())e.dispose()}function Jw(e,t){e?.traverse(e=>{e instanceof H&&e.geometry.dispose()});for(let e of t)e.dispose()}function Yw(e){e.traverse(e=>{e instanceof eu&&e.skeleton.dispose()})}function Xw(e){let t=Lw.get(e);if(t!==void 0)return t;let n=Hw(new Of().load(mb[e]));return Lw.set(e,n),n}var Zw=`{ vec4 pressedOntoCanvas = modelMatrix * vec4( transformed, 1.0 ); - if ( pressedOntoCanvas.y < ${0 .toFixed(4)} && max( abs( pressedOntoCanvas.x ), abs( pressedOntoCanvas.z ) ) < ${uv.toFixed(4)} ) { + if ( pressedOntoCanvas.y < ${0 .toFixed(4)} && max( abs( pressedOntoCanvas.x ), abs( pressedOntoCanvas.z ) ) < ${dv.toFixed(4)} ) { transformed += inverse( mat3( modelMatrix ) ) * vec3( 0.0, ${0 .toFixed(4)} - pressedOntoCanvas.y, 0.0 ); } -}`;function Zw(e){let t=e.onBeforeCompile,n=Object.hasOwn(e,`customProgramCacheKey`)?e.customProgramCacheKey():`plain`;e.onBeforeCompile=(n,r)=>{t.call(e,n,r),n.vertexShader=n.vertexShader.replace(`#include `,`${Xw}\n#include `)},e.customProgramCacheKey=()=>`${n}-on-canvas`,e.needsUpdate=!0}function Qw(e,t){let n=t.outfit!==void 0,r=!n||t.wounds===!0,i=[],a=[],o=new Map,s=null,c={value:0},l=null,u=null;if(e.traverse(e=>{if(!(e instanceof $l)||Array.isArray(e.material))return;let d=e.material.name,f=Pw[d];if(f===void 0)throw Error(`fighter GLB has unsupported material ${d}`);let p=o.get(d);if(p===void 0){let e=d===`MHeadMat0`||d===`MBodyMat0`,m=t.outfit,h=d===`GlovesMat0`?t.gear:d===`PantsMat0`?m?.trousers??t.gear:d===`ShoesMat0`&&m!==void 0?m.shoes:16777215,g=Yw(f);p=e&&!n?new Ud({map:g,color:h,roughness:.58,metalness:.02,clearcoat:.25,clearcoatRoughness:.6}):new Hd({map:g,color:h,roughness:e?.58:Fw[d]??.4,metalness:e?.02:.03}),p.name=d,o.set(d,p),a.push(p),e&&i.push(p),d===`MHeadMat0`&&(l=new X_(r?p:null,Jg,{core:k_,lids:j_})),d===`MBodyMat0`&&(u=new X_(r?p:null,Yg,{core:A_,wash:!0}));let _=$w[d];m!==void 0&&_!==void 0?ix(p,_,m):d===`PantsMat0`?c=_b(p,!1,`trunks`):d===`GlovesMat0`&&(s=_b(p)),e&&!n&&dx(p),Zw(p)}if(e.material=p,!n&&e.name===`BoxerPants`){let t=Bw.get(e.geometry);t===void 0&&Bw.set(e.geometry,t=Sx(e.geometry,e.skeleton.bones.map(e=>e.name))),e.geometry=t}e.castShadow=!n,e.receiveShadow=!0,e.frustumCulled=!1}),i.length!==2||s===null||a.length!==5||l===null||u===null)throw Error(`fighter GLB material contract failed: ${i.length} skin, ${a.length} total`);return{skin:i,gloveBlood:s,trunksBlood:c,owned:a,headInjury:l,bodyInjury:u}}var $w={MHeadMat0:`head`,MBodyMat0:`body`,ShoesMat0:`shoes`,PantsMat0:`pants`},eT=new V().setRGB(.6,.32,.19,So),tT=(e,t,n,r)=>e+(t-e)*(1-Math.exp(-n*r)),nT=(e,t,n,r)=>e+(((t-e+Math.PI)%(Math.PI*2)+Math.PI*2)%(Math.PI*2)-Math.PI)*(1-Math.exp(-n*r)),rT=R.clamp,iT=class{root=new fc;bones=new Map;rig;metrics;skinMaterials;ownedMaterials;gloveBlood;trunksBlood;headMeshes=[];handMeshes={left:[],right:[]};decapitated=!1;burst=!1;dismemberedHands={left:!1,right:!1};dressed;ownedGeometries=[];gearBaseColor;skinBaseColor;headInjury;bodyInjury;headLook;face;bareHand;constructor(e,t){let n=ly(e.scene);n.scale.setScalar(1),this.root.add(n);let r=Qw(n,t);this.skinMaterials=r.skin,this.ownedMaterials=[...r.owned],this.gloveBlood=r.gloveBlood,this.trunksBlood=r.trunksBlood,this.headInjury=r.headInjury,this.bodyInjury=r.bodyInjury,this.gearBaseColor=new V(t.gear),this.skinBaseColor=new V(t.skin),this.dressed=t.outfit!==void 0,n.traverse(e=>{e instanceof $l&&e.name===`BoxerHead`&&this.headMeshes.push(e),e instanceof $l&&e.name===`BoxerGloveLeft`&&this.handMeshes.left.push(e),e instanceof $l&&e.name===`BoxerGloveRight`&&this.handMeshes.right.push(e),e instanceof eu&&this.bones.set(e.name,e)});let i=Object.values(fb).filter(e=>!this.bones.has(e));if(i.length>0)throw Error(`fighter GLB missing required bones: ${i.join(`, `)}`);if(this.headMeshes.length!==1)throw Error(`fighter GLB requires one BoxerHead mesh, found ${this.headMeshes.length}`);let a=this.headInjury.shadowMaterial();this.headMeshes[0].customDepthMaterial=a;let o=this.headMeshes[0].material;o.side=0,o.shadowSide=1,this.ownedMaterials.push(a);for(let e of[`left`,`right`])if(this.handMeshes[e].length!==1)throw Error(`fighter GLB requires one ${e} glove mesh, found ${this.handMeshes[e].length}`);this.root.updateMatrixWorld(!0),this.rig=new Jx(this.root),this.headLook=new Lb(this.headMeshes[0].material),this.face=new Dx(t.gear^t.skin),this.bareHand=t.outfit===void 0?null:this.addHands(t.outfit),this.setLook(t.look??vb);let s=this.rig.metrics;this.metrics={armUpper:s.armL.upper,armFore:s.armL.lower,legThigh:s.legL.upper,legShin:s.legL.lower,headRestY:s.headHeight,chestRestY:s.chestHeight,ankleRestY:s.ankleHeight}}bone(e){return this.bones.get(fb[e]??e)??null}setGloveBlood(e){this.gloveBlood.value=rT(e,0,1)}get gloveBloodLevel(){return this.gloveBlood.value}setTrunksBlood(e){this.trunksBlood.value=rT(e,0,1)}get trunksBloodLevel(){return this.trunksBlood.value}get headMesh(){return this.headMeshes[0]}gloveMesh(e){return this.handMeshes[e][0]}get skin(){return this.skinMaterials[0]}get isDecapitated(){return this.decapitated}setDecapitated(e){this.decapitated=e,this.burst=!1,this.headInjury.setSevered(e),this.bone(`head`).visible=!e}get isHeadBurst(){return this.burst}setHeadBurst(e){this.burst=e,this.decapitated=!1,this.headInjury.setBurst(e),this.bone(`head`).visible=!e}isHandDismembered(e){return this.dismemberedHands[e]}setHandDismembered(e,t){this.dismemberedHands[e]=t;for(let n of this.handMeshes[e])n.visible=!t&&!this.dressed}setLook(e){this.headLook.set(e);for(let t of this.skinMaterials)t.color.setHex(e.tint);this.bareHand?.color.copy(eT).multiply(this.skinMaterials[0].color)}get look(){return this.headLook.look}addHands(e){let t=e.gloves!==null,n=new Hd({color:t?e.gloves:eT,roughness:t?.38:.6,metalness:.02}),r=t?n:new Hd({color:new V(e.shirt).multiplyScalar(.9),roughness:.88,metalness:0});this.ownedMaterials.push(n),r!==n&&this.ownedMaterials.push(r);let i=cx();this.ownedGeometries.push(i);for(let e of[`left`,`right`]){for(let t of this.handMeshes[e])t.visible=!1;let t=sx(e);this.ownedGeometries.push(t);let a=e===`left`?`L`:`R`;for(let[o,s,c,l]of[[this.rig.bones[`glove${a}`],t,n,`hand-${e}`],[this.rig.bones[`elbow${a}`],i,r,`cuff-${e}`]]){let e=new H(s,c);e.name=l,e.castShadow=!1,e.receiveShadow=!0,o.add(e)}}return t?null:n}setSkinClearcoat(e){for(let t of this.skinMaterials)t instanceof Ud&&(t.clearcoat=e)}flinch(e,t){this.face.flinch(e,t)}updateFace(e,t,n,r,i,a){this.face.update(e,t,n,r,i,a),this.headLook.setExpression(this.face.lids,this.face.mouth,this.face.brow)}dispose(){for(let e of this.ownedMaterials)e.dispose();for(let e of this.ownedGeometries)e.dispose();Jw(this.root)}},aT=(e,t,n,r,i)=>{let a=e.value,o=e.velocity;o.addScaledVector(a,-n*t).multiplyScalar(Math.exp(-r*t)),a.addScaledVector(o,t),a.length()>i&&a.setLength(i)},oT=.06,sT=150,cT=.58,lT=.25,uT=.32,dT=9,fT=1,pT=.08,mT=.3,hT=1,gT=1.6,_T=.25,vT=.12,yT=.33,bT=.3,xT=8;function ST(e,t,n,r){Dw(e,t,n);let i=Math.hypot(n.x,n.z);if(i<=0)return r.x=0,r.z=0,0;let a=$x(0,_T,i),o=1+vT*a/i;return r.x=n.x*o,r.z=n.z*o,a}var CT=(e,t)=>e===0||Math.sign(t)===Math.sign(e)&&Math.abs(t)>Math.abs(e)?t:e,wT=.75,TT=.38,ET=.72,DT=.5,OT=.2,kT=.55,AT=.7,jT=6,MT=.4,NT=.2,PT=.3,FT=.5,IT=class{mapping;boxer;solver;yaw=0;yawInitialized=!1;rootX=null;rootZ=0;punchActive=!1;punchAgeTicks=0;punchTotalTicks=1;punchClass=`jab`;punchHand=`left`;punchTarget=`head`;punchPower=`normal`;punchTiming=N(`jab`,`head`,`normal`);actionId=null;completedActionId=null;ownActionId=null;ownPress=!1;ownLeadTicks=0;ownAuthoritativeAge=null;ownWaitedTicks=0;ownExpectedTicks=0;ownPulled=!1;ownSequence=null;ownStarted=!1;ownPressedAt=0;ownRefused=!1;ownCut=!1;recoveryCut=!1;ownQueued=null;contactId=null;contactParried=!1;shownFighter=null;shownOpponent=null;retiredOwnIds=[];pressesLanded=[];anticipatedId=null;hitstop=0;hitstopScale=1;hitstopLag=0;downState=`up`;fallAge=0;riseProgress=0;riseFrom=0;fallSide=0;fallProne=!1;fallKneel=!1;windedSide=-1;windedTime=0;winded=0;landProne=!1;landSide=0;landShift=new B;landSettled=!1;fallen=vD();fallenFromPhysics=!1;riseRoot=new B;riseRootFrom=new B;downPoles=[new B,new B,new B,new B];downPolesSet=!1;poleSettle=0;characterInverse=new Rs;place=new B;riseRootVelocity=new B;liveOpponentHead=new B;hasLiveHead=!1;guardOpponentHead=new B;opponentHeadOffset=new B;opponentSteadySeconds=0;followHead=0;aimActionId=null;refereeContactId=null;refereeHead=new B;hasRefereeHead=!1;followReferee=0;headKick={value:new B,velocity:new B};torsoKick={value:new B,velocity:new B};rootKick={value:new B,velocity:new B};coverKick={value:new B,velocity:new B};foldDelay=0;pendingFold=0;coverDelay=0;pendingCover=0;liverDelay=0;pendingLiver=0;armKick={value:new B,velocity:new B};handsDrop=0;guardWasBroken=!1;hurtSeed=1;rockedTime=0;rockedPhase=0;nextLurch=0;guardKick=0;guardHigh=0;guardLow=0;guardSpent=0;slip=0;weave=0;weaveTime=0;pull=0;crouchExtra=0;bouncePhase=0;weightPhase=0;breathPhase=0;stunPhase=0;feintTimer=2;pawAge=gE;pawCount=0;idleSeed=-1;manner={...gS.balanced,lead:new B,rear:new B};mannerStyle=null;mannerSeed=0;breath=0;battered=0;walkLean=new z;leadingFoot=-1;nextFoot=-1;steppedYaw=0;stunAmount=0;tired=0;clinchWeight=0;foulWeight=0;tauntWeight=0;crowding=0;tight=0;punchCommit=0;punchMiss=0;headSpace=new z;ownHead=new B;ropeHold=new B;ropeExcess={x:0,z:0};ropeOwn={x:0,z:0};ropeTheirs={x:0,z:0};ropeLeanTarget=0;ropeLean=0;ropeOutward=new B(1,0,0);ropeLocal=new B;tauntEnd=null;lastSpeed=0;stool;stoolRoot=new B;stoolYaw=0;enswell;bottle;treatProp=`enswell`;treatTarget=new B;treatScratch=new B;treatFacing=new B(0,0,-1);treatFacingLocal=new B;treatSide=1;treating=!1;treatWeight=0;resting=!1;seated=0;stillTime=0;celebrateTime=0;celebration=0;waveTime=0;wave=0;breakTime=0;breakWeight=0;breakFighters=[new B,new B];breakAimed=!1;attending=!1;verdictSide=0;verdict=null;squareWeight=0;raisedWeight=0;bowedWeight=0;wrists=[null,null];wristTargets=[new B,new B];wristWeights=[0,0];attendWeight=0;countdownTicks=null;countdownEnd=null;touchWeight=0;touchOffset=new B;touchVelocity=new B;debugHoldImpact=!1;feet=[{planted:new B,from:new B,to:new B,progress:1,stepping:!1,duration:.2},{planted:new B,from:new B,to:new B,progress:1,stepping:!1,duration:.2}];feetInitialized=!1;dislocation=null;scratch=new B;scratchB=new B;scratchC=new B;scratchD=new B;scratchE=new B;clinchCentre=new B;clinchForward=new B;clinchTemp=new B;scratchQ=new ms;headWorld=new B;hand={L:this.makeHand(),R:this.makeHand()};punchGuard=this.makeHand();punchDir=new B;punchContact=new B;punchStart=new B;punchSweepFrom=new B;punchSweepTo=new B;punchMid=new B;foot={L:this.makeFoot(),R:this.makeFoot()};torso={hips:new B,hipsYaw:0,hipsPitch:0,hipsRoll:0,shouldersYaw:0,spinePitch:0,spineRoll:0,headYaw:0,headPitch:0,headRoll:0,headOffset:new B};pose;downStanding=vD();downFrom=vD();downTo=vD();downResult=vD();downStand=1;fallStart=vD();fallStartStand=1;fallFromGetUp=!1;referee;refereeCount=0;refereeCounting=!1;countChangedTick=null;countWeight=0;countPump=0;watchPoint=new B;watching=!1;duty=`watch`;backWeight=0;waveSlow=!1;mood=`work`;mournWeight=0;cheerWeight=0;treatUrgency=0;gazeYaw=0;gazePitch=0;travel=new B;strideYaw=0;backing=!1;footYaw=[0,0];ragdoll;forcedDown=!1;heldDown=!1;authoredNextFall=!1;obstacle=null;blows=0;riseBlendAge=0;posedInjuries=0;armCarry=[`whole`,`whole`];armLimp=[0,0];armSnap=[0,0];armDangle=[bE(),bE()];forearmDangle=[bE(),bE()];trunkLow=new B;trunkHigh=new B;lostLean=0;cover=0;kneeBlown=[!1,!1];kneeGive=[0,0];gutted=!1;hunch=0;liver=!1;curl=0;faintTarget=0;faint=0;retchTime=0;retching=0;dazed=!1;daze=0;dazeTime=0;stepPace=[1,1];stepLift=[1,1];stepSlack=1;hurt=!1;punchReach=0;dead=!1;deathFall=!1;deathStyle=`crumple`;deathAge=0;throe=CE.length;throeSide=0;laidOut=!1;constructor(e,t,n={}){this.mapping=t,this.boxer=e,this.referee=n.referee===!0,this.solver=new pS(e.rig),this.pose={torso:this.torso,handL:this.hand.L,handR:this.hand.R,footL:this.foot.L,footR:this.foot.R,shrugL:0,shrugR:0},this.stool=GD(),this.stool.group.position.set(0,0,.02),e.root.add(this.stool.group),this.enswell=UD(),e.rig.bones.gloveL.add(this.enswell.group),this.bottle=WD(),e.rig.bones.gloveL.add(this.bottle.group),this.ragdoll=this.referee&&n.knockout!==!0?null:new dw(e.rig,e.root)}primeReplayFall(){this.ragdoll?.prime()}useAuthoredFall(){this.authoredNextFall=!0}knockOut(){this.forcedDown=!0}stayDown(e){this.heldDown=e}setObstacle(e,t){this.obstacle??={x:e,z:t},this.obstacle.x=e,this.obstacle.z=t}get fallBody(){return this.ragdoll?.active===!0?this.ragdoll:null}setResting(e){this.resting=e}get stoolVisible(){return this.stool.group.visible}celebrate(e=4.4){this.celebrateTime=e}resetTransient(e=!1){this.forcedDown=!1;let t=this.ragdoll;t!==null&&(e?t.active?t.settle():t.restoreSettled():(t.stop(),t.clearRise())),this.downState=e?`down`:`up`,this.landSettled=!1,this.fallenFromPhysics=!1,this.riseRoot.set(0,0,0),this.riseRootFrom.set(0,0,0),this.riseRootVelocity.set(0,0,0),this.fallAge=e?wT:0,this.riseProgress=0,this.hitstop=0,this.hitstopScale=1,this.hitstopLag=0;for(let e of[this.headKick,this.torsoKick,this.rootKick,this.coverKick,this.armKick])e.value.set(0,0,0),e.velocity.set(0,0,0);this.foldDelay=0,this.pendingFold=0,this.coverDelay=0,this.pendingCover=0,this.liverDelay=0,this.pendingLiver=0,this.handsDrop=0,this.rockedTime=0,this.guardKick=0,this.stunAmount=0,this.windedTime=0,this.winded=0,this.celebrateTime=0,this.celebration=0,this.waveTime=0,this.wave=0,this.verdictSide=0,this.verdict=null,this.squareWeight=0,this.raisedWeight=0,this.bowedWeight=0,this.wrists.fill(null),this.wristWeights.fill(0),this.seated=0,this.stillTime=0,this.rootX=null,this.yawInitialized=!1,this.feetInitialized=!1,this.retirePunch(),this.ownQueued=null,this.completedActionId=null,this.retiredOwnIds.length=0,this.anticipatedId=null,this.retchTime=0,this.retching=0,this.dazed=!1,this.daze=0,this.dazeTime=0;for(let e=0;e<2;e+=1)SE(this.armDangle[e]),SE(this.forearmDangle[e]);this.dead=!1,this.deathFall=!1,this.throe=CE.length,this.laidOut=e}waveOff(e=2.6,t=!1){this.waveTime=e,this.waveSlow=t}setCountdown(e){this.countdownTicks=e}attend(e,t=`work`){this.attending=e,this.mood=t}treat(e,t,n=1,r=`enswell`,i=0){this.treating=e!==null,e!==null&&(this.treatTarget.copy(e),t!==void 0&&this.treatFacing.copy(t),this.treatSide=n,this.treatProp=r,this.treatUrgency=i)}awaitVerdict(e){this.verdictSide=e??0,e===null&&(this.verdict=null)}announce(e){this.verdict=e}raise(e,t){this.wrists[0]=e===null?null:this.wristTargets[0].copy(e),this.wrists[1]=t===null?null:this.wristTargets[1].copy(t)}breakClinch(e=1.3){this.breakTime=e}get breaking(){return this.breakTime>0}aimBreak(e,t,n=null,r=`watch`){this.breakFighters[0].copy(e),this.breakFighters[1].copy(t),this.breakAimed=!0,this.watching=n!==null,n!==null&&this.watchPoint.copy(n),this.duty=r}makeHand(){return{position:new B,knuckles:new B(0,1,0),palm:new B(0,0,1),pole:new B(0,-1,0)}}makeFoot(){return{position:new B,toe:new B(0,0,1),heel:0,pole:new B(0,0,1)}}get currentRoot(){return{x:this.rootX??0,z:this.rootZ}}get isDown(){return this.downState!==`up`||this.dead}setRefereeCount(e,t){(e!==this.refereeCounting||t!==this.refereeCount)&&(this.countChangedTick=null),this.refereeCounting=e,this.refereeCount=t}predict(e,t,n,r=0,i,a=r){if(e.kind!==`punch`||e.id===void 0)return;let o={action:{...e,id:e.id},timing:i??N(e.class,e.target,e.power),leadTicks:r,answerTicks:a,pressedAt:t,sequence:null,started:!1,waited:0};if(this.punchActive&&this.ownActionId!==null&&this.ownAuthoritativeAge===null&&!this.ownPulled&&!this.ownStarted&&(t-this.ownPressedAt)*n0||e.clinch_ticks>0||e.clinch_startup_ticks>0,a=this.ownQueued;if(a!==null&&(a.sequence??=r?.(a.action.id)??null,e.action_id===a.action.id?a.started=!0:!a.started&&(i||a.sequence!==null&&e.last_input_sequence>=a.sequence&&e.queued_actions===0)&&(this.ownQueued=null)),!this.punchActive||this.ownActionId===null||this.ownPulled||this.ownRefused)return;this.ownStarted||(this.ownSequence??=r?.(this.ownActionId)??null);let o=e.action_id===this.ownActionId;o&&(this.ownStarted=!0);let s=this.ownQueued;s!==null&&s.sequence!==null&&r!==null&&!this.ownStarted&&this.ownSequence===null&&this.ownAuthoritativeAge===null?(this.ownActionId=null,this.ownQueued=null,this.retirePunch(),this.startOwnPunch(s)):(o?i&&e.action_contact_tick===null:!this.ownStarted&&this.ownAuthoritativeAge===null&&(i||this.ownSequence!==null&&e.last_input_sequence>=this.ownSequence&&e.queued_actions===0))&&(this.ownRefused=!0,this.takeBack())}takeBack(){this.punchAgeTickse.action_startup_ticks*(1/oO-1)||this.punchActive&&this.punchAgeTicks/this.punchTotalTicks<=.55)return;this.anticipatedId=n;let r=e.action_target??`head`,i=e.action_power??`normal`,a={...N(e.action,r,i),startup:e.action_startup_ticks,active:e.action_active_ticks,recovery:e.action_recovery_ticks},o=e.action_hand??(e.stance===`orthodox`?`left`:`right`);this.startEarly(n,e.action,o,r,i,a,t,t)}startOwnPunch(e){let{action:t,timing:n}=e;this.startEarly(t.id,t.class,t.hand,t.target,t.power,n,0,Math.max(0,e.answerTicks)),this.ownPress=!0,this.ownSequence=e.sequence,this.ownStarted=e.started,this.ownPressedAt=e.pressedAt}startEarly(e,t,n,r,i,a,o,s){this.retirePunch(),this.punchClass=t,this.punchHand=n,this.punchTarget=r,this.punchPower=i,this.punchTiming=a,this.punchTotalTicks=Math.max(1,ue(a)),this.punchAgeTicks=0,this.punchActive=!0,this.ownActionId=e,this.ownLeadTicks=rT(o,0,qD),this.ownExpectedTicks=s}followUpStartAge(e){let t=this.shownFighter,n=this.shownOpponent,r=this.actionId??this.ownActionId,i=r!==null&&r===this.contactId&&!this.contactParried;return t!==null&&n!==null&&D(this.punchClass,i,e.action,t.stamina,n.stunned_ticks>0,t.style)?E(this.punchTiming):this.punchTotalTicks}releaseQueuedPress(e){let t=this.ownQueued;t!==null&&(t.waited+=e*30,this.punchActive&&!this.ownPulled&&this.punchAgeTicks+this.serverLag(t.leadTicks)6&&this.retiredOwnIds.shift()),this.actionId=null,this.punchActive=!1,this.ownActionId=null,this.ownPress=!1,this.ownLeadTicks=0,this.ownAuthoritativeAge=null,this.ownWaitedTicks=0,this.ownExpectedTicks=0,this.ownPulled=!1,this.ownSequence=null,this.ownStarted=!1,this.ownRefused=!1,this.ownCut=!1,this.recoveryCut=!1,this.hitstopLag=0}setRefereeHead(e){this.hasRefereeHead=e!==null,e!==null&&this.refereeHead.copy(e)}landedHit(e,t,n=!1){this.punchActive&&e!==null&&e===(this.actionId??this.ownActionId)&&(this.punchAgeTicks>=this.punchTiming.startup+this.punchTiming.active+1||(this.hitstop=Math.max(this.hitstop,(t?o.block:n?o.power:o.hit)/1e3)))}powerHeat(e){if(!this.punchActive||this.punchPower!==`power`||this.punchHand!==e||this.ownPulled)return 0;let{startup:t,active:n,recovery:r}=this.punchTiming,i=this.punchAgeTicks;return i>>0;let u=i===`left`?1:i===`right`||n>=0?-1:1;if(t===`body`){switch(r){case`hook`:this.torsoKick.velocity.x+=3*l,this.torsoKick.velocity.z+=4.6*l*u,this.rootKick.velocity.x+=.5*l*u,this.coverDelay=.09,this.pendingCover=2.4*l*u,u>0&&e===`hit`&&o>.25&&(this.liverDelay=.28,this.pendingLiver=l*(.4+o));break;case`uppercut`:this.rootKick.velocity.y+=.9*l,this.torsoKick.velocity.x-=1.6*l,this.foldDelay=.1,this.pendingFold=5.2*l;break;default:this.torsoKick.velocity.x+=4.6*l}this.rootKick.velocity.z-=.45*l,this.headKick.velocity.z-=.6*l,this.headKick.velocity.y-=.7*l,this.guardKick=Math.max(this.guardKick,.6*l)}else{switch(e===`hit`&&(this.guardKick=Math.max(this.guardKick,.4*l)),r){case`hook`:this.headKick.velocity.x+=2.6*l*u,this.headKick.velocity.z-=.7*l,this.torsoKick.velocity.y+=3.4*l*u,this.torsoKick.velocity.z-=1.2*l*u;break;case`uppercut`:this.headKick.velocity.y+=2.2*l,this.headKick.velocity.z-=1.2*l,this.torsoKick.velocity.x-=1.6*l;break;case`straight`:this.headKick.velocity.z-=2.4*l,this.headKick.velocity.x+=.5*l*u,this.torsoKick.velocity.x-=1*l,this.torsoKick.velocity.y+=1.4*l*u;break;default:this.headKick.velocity.z-=1.5*l,this.torsoKick.velocity.x-=.5*l,this.torsoKick.velocity.y+=.5*l*u}if(this.rootKick.velocity.z-=.45*l,e===`block`)this.guardKick=Math.max(this.guardKick,Math.min(1.2,2.4*l)),this.rootKick.velocity.z-=1.1*l,this.torsoKick.velocity.x-=1.2*l;else{this.rootKick.velocity.y-=1.1*l*o;let e=1.7*l*o;r===`hook`?this.armKick.velocity.add(this.scratchE.set(u,.3,-.2).multiplyScalar(e)):r===`uppercut`?this.armKick.velocity.add(this.scratchE.set(0,1,-.4).multiplyScalar(e)):this.armKick.velocity.add(this.scratchE.set(.3*u,.7,-.4).multiplyScalar(e)),this.handsDrop=Math.max(this.handsDrop,rT((o-.35)*2,0,1)*(.5+.5*c))}}if(e===`hit`&&(this.dentSurface(t,u,r,o),this.fallSide=r===`hook`?u:u*.5,this.fallProne=r===`hook`||t===`body`),e===`hit`&&a>=10&&this.ragdoll!==null){let e=uw({target:t,punchClass:r,hand:i,lateral:u,amount:a}),n=this.scratchE.set(e.x,e.y,e.z).applyAxisAngle(KD,this.yaw),o=this.scratchD.set(e.driveX,e.driveY,e.driveZ).applyAxisAngle(KD,this.yaw);this.blows+=1,this.ragdoll.takeBlow(n,o,t,e.twist,GC(r,t,a,this.blows+Math.round(a)))}}stagger(){this.torsoKick.velocity.x-=2.6,this.headKick.velocity.z-=1.4,this.headKick.velocity.y+=.5,this.rootKick.velocity.z-=1.1,this.guardKick=Math.max(this.guardKick,1.1)}windedFor(e,t){this.windedTime=Math.max(this.windedTime,e),this.windedSide=t>=0?1:-1}fallToKnee(e){this.dead||(this.fallKneel=e,e&&(this.authoredNextFall=!0))}dentSurface(e,t,n,r){let i=1.1+r*2.1;if(e===`body`){let e=n===`hook`?t>0?`rightRibs`:`leftRibs`:`solarPlexus`;this.boxer.bodyInjury.impact(e,[n===`hook`?t*i*.8:0,0,-i],9)}else n===`hook`?this.boxer.headInjury.impact(t>0?`rightCheek`:`leftCheek`,[t*i,0,-i*.35],5.5):n===`uppercut`?this.boxer.headInjury.impact(`chin`,[0,i*.7,-i*.6],5):this.boxer.headInjury.impact(n===`jab`?`nose`:`mouth`,[0,0,-i],4.5)}footPlace(e,t,n){if(this.squareWeight>.5)return n.set(e===0?.16:-.16,0,e===0?.02:-.02);let r=e===0==t>0?mS.leadFoot:mS.rearFoot;return n.set(r.x*t*this.manner.width*(1+lE*this.battered),0,r.z*this.manner.length*(1-aE*this.crowding))}standLike(e){this.mannerSeed=_E(e)+1,this.mannerStyle=null}keyManner(e){let t=gS[e],n=this.manner;if(this.mannerStyle=e,Object.assign(n,t,{lead:n.lead.copy(t.lead),rear:n.rear.copy(t.rear)}),this.mannerSeed===0)return;let r=e=>Math.abs(Math.sin(this.mannerSeed*(e*7.31+3.17))*43758.5453)%1*2-1;n.rise+=r(1)*.012,n.length*=1+r(2)*.05,n.width*=1+r(3)*.06,n.lead.y+=r(4)*.025,n.lead.z+=r(5)*.03,n.flare+=r(6)*.12,n.spring*=1+r(7)*.2,n.bob*=1+r(1)*r(4)*.4,n.rock*=1+r(2)*r(6)*.3}stepOfficialFeet(e,t,n,r,i){let a=t>HT,o=n.x*Math.sin(i)+n.z*Math.cos(i),s=n.x*Math.cos(i)-n.z*Math.sin(i),c=0;a&&(o<-.35*t?this.backing=!0:o>-.05*t&&(this.backing=!1),c=this.backing?Math.atan2(-s,-o):Math.atan2(s,o)),this.strideYaw=tT(this.strideYaw,c,6,e);let l=1-Math.exp(-8*e);this.travel.x+=(s-this.travel.x)*l,this.travel.z+=(o-this.travel.z)*l;let u=this.scratch,d=this.scratchQ.setFromAxisAngle(KD,i+this.strideYaw),f=a?0:Math.sin(this.weightPhase*.17)>=0?.045:-.045,p=rT(.42/Math.max(t,.01),.22,.34),m=t*p*.4;for(let o=0;o<2;o+=1){let s=this.feet[o],c=o===0?1:-1;u.set(c*.15,0,c*f).applyQuaternion(d).add(r),u.y=0;let l=i+this.strideYaw*.85+c*.2;if(!this.feetInitialized){s.planted.copy(u),s.progress=1,s.stepping=!1,this.footYaw[o]=l;continue}let h=Math.atan2(Math.sin(this.footYaw[o]-l),Math.cos(this.footYaw[o]-l));if(!a&&Math.abs(h)>.8&&(this.footYaw[o]=l+Math.sign(h)*.8),s.stepping){s.progress=Math.min(1,s.progress+e/s.duration),this.footYaw[o]=nT(this.footYaw[o],l,14,e),s.progress>=1&&(s.stepping=!1,s.planted.copy(s.to));continue}let g=this.feet[1-o];if(g.stepping)continue;let _=u.x-s.planted.x,v=u.z-s.planted.z,y=Math.hypot(_,v),b=a?(_*n.x+v*n.z)/t:0;G.set(-c*.15,0,-c*f).applyQuaternion(d).add(r).sub(g.planted);let x=a?(G.x*n.x+G.z*n.z)/t:0;(a?b>(x>0?.05:Math.max(.05,m*.8))||y>m+.2:y>.085)&&(s.stepping=!0,s.progress=0,s.duration=a?rT((.22-x)/t,.16,p):y>.12?.2:.32,s.from.copy(s.planted),s.to.copy(u).addScaledVector(n,s.duration*1.6),s.to.y=0)}this.feetInitialized=!0}stepFeet(e,t,n,r,i,a){if(this.referee||this.squareWeight>.5){this.stepOfficialFeet(e,n,r,i,a);return}let o=this.scratch,s=this.scratchQ.setFromAxisAngle(KD,a),c=+(t>0),l=-1;n>uE&&(l=this.footPlace(0,t,o).applyQuaternion(s).dot(r)>=this.footPlace(1,t,o).applyQuaternion(s).dot(r)?0:1),l!==this.leadingFoot&&(this.leadingFoot=l,this.nextFoot=l);let u=l<0?c:l,d=Math.abs(a-this.steppedYaw)>mE*e;this.steppedYaw=a;for(let f=0;f<2;f+=1){let p=f===0?u:1-u,m=this.feet[p];if(this.footPlace(p,t,o).applyQuaternion(s).add(i),o.y=0,this.daze>.001&&this.stumble(p,o,a),!this.feetInitialized){m.planted.copy(o),m.progress=1,m.stepping=!1;continue}if(m.stepping){m.progress=Math.min(1,m.progress+e/m.duration),m.progress>=1&&(m.stepping=!1,m.planted.copy(m.to));continue}let h=this.feet[1-p],g=m.planted.distanceTo(o),_;if(l<0)_=g>(p===c||!d?dE:fE)*this.stepSlack&&!h.stepping;else{let e=!h.stepping||h.progress>=1-.6*rT((n-.4)/1,0,1),t=this.scratchD.subVectors(o,m.planted).dot(r)>0;_=this.nextFoot===p&&t&&g>pE*this.stepSlack&&e}_&&(m.stepping=!0,m.progress=0,m.duration=rT(.2-n*.05,.11,.2)*this.stepPace[p],m.from.copy(m.planted),m.to.copy(o).addScaledVector(r,m.duration*(p===l?1.3:1)),m.to.y=0,l>=0&&(this.nextFoot=1-p))}this.feetInitialized=!0}footWorld(e,t){let n=this.feet[e];if(!n.stepping)return t.copy(n.planted),0;let r=tS(n.progress,1.6);return t.copy(n.from).lerp(n.to,r),Math.sin(n.progress*Math.PI)*hE*this.stepLift[e]}update(e,t,n,r,i,a,o,s){let c=this.boxer,l=e.stance===`orthodox`?1:-1,u=i?.35:1,d=this.touchWalk(e,t,n,o);this.walkBackFromTheFall(n);let f=this.holdOnTheRopes(t,this.mapping.x(e.x)+d.x+this.riseRoot.x,this.mapping.z(e.y)+d.z+this.riseRoot.z),p=this.mapping.x(e.x)+d.x+this.riseRoot.x-f.x,h=this.mapping.z(e.y)+d.z+this.riseRoot.z-f.z;this.place.set(p,0,h),this.rootX===null&&(this.rootX=p,this.rootZ=h);let g=gO*Math.max(n,1/60);this.rootX+=rT(p-this.rootX,-g,g),this.rootZ+=rT(h-this.rootZ,-g,g);let _=Math.atan2(e.facing_x,-e.facing_y);this.yawInitialized||=(this.yaw=_,!0);let v=this.punchActive&&this.punchAgeTicks0?.12:1;let y=n*this.hitstopScale;this.punchActive&&this.hitstop>0&&(this.hitstopLag+=(n-y)*30),this.syncAction(e,t,o,y),this.debugHoldImpact||(this.boxer.headInjury.update(y),this.boxer.bodyInjury.update(y)),s!==void 0&&this.trackOpponentHead(t,s,n);let b=this.scratchB.set(this.mapping.x(e.velocity_x)*30,0,this.mapping.z(e.velocity_y)*30).add(this.touchVelocity).add(this.riseRootVelocity),x=b.length(),S=Math.hypot(b.x-this.riseRootVelocity.x,b.z-this.riseRootVelocity.z);this.lastSpeed=x,this.stillTime=x<.03?this.stillTime+n:0;let C=this.resting&&this.stillTime>.2&&this.downState===`up`;this.seated=tT(this.seated,+!!C,C?2.2:4,n);let w=this.resting&&this.stillTime>.05&&this.downState===`up`;w&&(this.stoolRoot.set(this.rootX,0,this.rootZ),this.stoolYaw=this.yaw),this.stool.group.visible=w||this.seated>RT&&this.downState===`up`,this.stool.group.position.set(this.stoolRoot.x-this.rootX,0,this.stoolRoot.z-this.rootZ).add(this.scratch.set(0,0,.02).applyAxisAngle(KD,this.stoolYaw)).applyAxisAngle(KD,-this.yaw),this.stool.group.rotation.y=this.stoolYaw-this.yaw,this.celebrateTime=Math.max(0,this.celebrateTime-n),this.celebration=tT(this.celebration,+(this.celebrateTime>0&&this.downState===`up`),3.5,n),this.waveTime=Math.max(0,this.waveTime-n),this.wave=tT(this.wave,+(this.waveTime>0&&this.downState===`up`),4,n),this.breakTime=Math.max(0,this.breakTime-n),this.breakWeight=tT(this.breakWeight,+(this.breakTime>0&&this.downState===`up`),6,n),this.attendWeight=tT(this.attendWeight,+!!this.attending,2.5,n),this.mournWeight=tT(this.mournWeight,+(this.mood===`mourn`),2.5,n),this.cheerWeight=tT(this.cheerWeight,+(this.mood===`cheer`),2.5,n);let T=!this.referee&&(this.verdictSide!==0||this.resting||this.countdownTicks!==null&&this.countdownTicks>YT);this.squareWeight=tT(this.squareWeight,+!!T,3,n),this.raisedWeight=tT(this.raisedWeight,+(this.verdictSide!==0&&(this.verdict===`winner`||this.verdict===`level`)),3.2,n),this.bowedWeight=tT(this.bowedWeight,+(this.verdictSide!==0&&this.verdict===`loser`),2.2,n);for(let e of[0,1])this.wristWeights[e]=tT(this.wristWeights[e],this.wrists[e]===null?0:1,3.2,n);this.treatWeight=tT(this.treatWeight,+!!this.treating,3,n),this.windedTime=Math.max(0,this.windedTime-n);let E=this.fallKneel&&this.downState===`falling`;this.winded=tT(this.winded,this.windedTime>0&&this.downState===`up`||E?1:0,this.windedTime>0||E?12:4,n),this.enswell.group.visible=this.treatWeight>.4&&this.treatProp===`enswell`,this.bottle.group.visible=this.treatWeight>.4&&this.treatProp===`bottle`;let D=this.countdownTicks!==null&&this.countdownTicks<=KT&&this.countdownTicks>=qT;this.touchWeight=tT(this.touchWeight,+!!D,6,n);let O=e.stamina/Math.max(1,e.maximum_stamina);this.tired=tT(this.tired,rT((.55-O)/.5,0,1),2,n),this.stunAmount=tT(this.stunAmount,Math.min(1,e.stunned_ticks/24),8,n),c.updateFace(n,i,this.punchActive&&this.punchPower===`power`,this.tired,this.stunAmount,this.isDown);let k=e.defense;this.guardHigh=tT(this.guardHigh,+(k===`guard_high`),uO,n),this.guardLow=tT(this.guardLow,+(k===`guard_low`),uO,n),this.guardSpent=tT(this.guardSpent,+(e.guard0||e.clinch_startup_ticks>0),10,n),this.foulWeight=tT(this.foulWeight,+!!e.is_foul_recovery_target,8,n),this.tauntWeight=tT(this.tauntWeight,+(e.taunt_ticks>0),10,n);let te=Math.hypot(this.mapping.x(t.x)-this.mapping.x(e.x),this.mapping.z(t.y)-this.mapping.z(e.y)),j=this.referee||e.is_downed||t.is_downed?0:1-$x(cT,fT,te);this.crowding=tT(this.crowding,j,9,n);let M=this.referee||e.is_downed||t.is_downed?0:1-$x(rE,iE,te);this.tight=tT(this.tight,M,9,n);let ne=1/0;if(this.hasLiveHead&&!this.referee&&this.downState===`up`){let e=this.boxer.rig.bones.head.getWorldPosition(this.ownHead),t=e.x-this.liveOpponentHead.x,r=e.z-this.liveOpponentHead.z,i=Math.hypot(t,r);if(ne=Math.hypot(t,e.y-this.liveOpponentHead.y,r),ne1e-4){let e=(lT-ne)/lT*dT*n,a=Math.cos(-this.yaw),o=Math.sin(-this.yaw);this.headSpace.x+=(t*a+r*o)/i*e,this.headSpace.y+=(-t*o+r*a)/i*e,this.headSpace.lengthSq()>1&&this.headSpace.normalize()}}if(ne>uT&&this.headSpace.multiplyScalar(Math.exp(-3*n)),this.tauntEnd=VD(this.tauntEnd,o,e.taunt_ticks>0?e.taunt_ticks:null),aT(this.headKick,n,190,7.5,.24),aT(this.torsoKick,n,150,7,.7),aT(this.rootKick,n,120,8,.12),aT(this.coverKick,n,110,15,.3),aT(this.armKick,n,55,6,.3),this.foldDelay>0&&(this.foldDelay-=n,this.foldDelay<=0&&(this.torsoKick.velocity.x+=this.pendingFold,this.pendingFold=0)),this.coverDelay>0&&(this.coverDelay-=n,this.coverDelay<=0&&(this.coverKick.velocity.x+=this.pendingCover,this.pendingCover=0)),this.liverDelay>0&&(this.liverDelay-=n,this.liverDelay<=0&&(this.rootKick.velocity.y-=1.4*this.pendingLiver,this.torsoKick.velocity.x+=2.6*this.pendingLiver,this.torsoKick.velocity.z+=1.6*this.pendingLiver,this.pendingLiver=0)),this.handsDrop=Math.max(0,this.handsDrop-n*1.5),e.guard_broken&&!this.guardWasBroken&&(this.handsDrop=1,this.guardKick=1.2),this.guardWasBroken=e.guard_broken,this.stunAmount>.25&&this.downState===`up`&&!this.referee){if(this.rockedTime===0&&(this.rockedPhase=this.hurtRandom()*Math.PI*2,this.nextLurch=.1+this.hurtRandom()*.2),this.rockedTime+=n,this.rockedTime>=this.nextLurch){let e=this.stunAmount;this.rootKick.velocity.x+=(this.hurtRandom()-.5)*1.4*e,this.rootKick.velocity.z+=(this.hurtRandom()-.6)*1.2*e,this.rootKick.velocity.y-=this.hurtRandom()*.9*e,this.torsoKick.velocity.z+=(this.hurtRandom()-.5)*1.5*e,this.nextLurch=this.rockedTime+.3+this.hurtRandom()*.5}}else this.stunAmount<.02&&(this.rockedTime=0);this.guardKick=Math.max(0,this.guardKick-n*2.4),this.ragdoll?.tick(n),this.updateDownState(e,n,i,S),this.stepDeath(n),this.stepInjuries(n),this.idleSeed<0&&(this.idleSeed=_E(e.player_id),this.bouncePhase=this.idleSeed*19,this.weightPhase=this.idleSeed*43,this.breathPhase=this.idleSeed*71);let re=this.idleSeed;e.style!==this.mannerStyle&&this.keyManner(e.style);let ie=this.manner;this.battered=tT(this.battered,rT((e.trauma.head+e.trauma.body-sE)/cE,0,1),1.5,n);let N=this.battered,ae=r*(.93+re*.14)+re*37,oe=(2.1-this.tired*.8)*(1-this.stunAmount*.6)*(.94+re*.12)*ie.tempo;if(this.bouncePhase+=n*oe*Math.PI*2*u,this.weightPhase+=n*(.42+re*.1)*Math.PI*2*u,this.breathPhase+=n*(.3+this.tired*.75)*Math.PI*2,this.stunPhase+=n*5.5,this.feintTimer-=n,this.pawAge+=n,this.feintTimer<=0&&!this.punchActive&&x<1&&this.downState===`up`){this.pawCount+=1;let e=Math.abs(Math.sin(this.pawCount*12.9898+re*78.233)*43758.5453)%1;this.feintTimer=e<.3?gE*1.2:1.4+e*2.6,this.pawAge=0}let se=this.pawAge/gE,ce=se<1?Math.sin(Math.PI*.5*($x(0,.4,se)+$x(.4,1,se))):0,le=this.referee?0:ce*ie.paw*(1-.7*this.tight)*(1-.6*this.tired)*(1-this.stunAmount)*(1-N)*rT(1-this.guardHigh-this.guardLow,0,1)*u,ue=this.referee?0:(1-this.stunAmount)*(1-.6*this.tired)*(1-.7*N)*(x>.6?.5:1)*ie.spring,de=Math.sin(this.bouncePhase)*(.7+.3*Math.sin(ae*.83+1.7))*ue,fe=Math.sin(this.bouncePhase*.5+.6)*ue*ie.rock,pe=Math.sin(this.breathPhase)*(1+2*this.tired);this.breath=pe;let me=this.scratchC.set(this.rootX,0,this.rootZ);(this.downState===`up`||this.downState===`rising`)&&this.stepFeet(n,l,x,b,me,this.yaw);let he=Math.cos(this.yaw),ge=Math.sin(this.yaw);this.walkLean.x=tT(this.walkLean.x,rT((b.x*he-b.z*ge)*.03,-.04,.04),8,n),this.walkLean.y=tT(this.walkLean.y,rT((b.x*ge+b.z*he)*.03,-.04,.04),8,n);let _e=this.scratchQ.setFromAxisAngle(KD,-this.yaw),ve=l>0?this.foot.L:this.foot.R,ye=l>0?this.foot.R:this.foot.L,be=l>0?0:1,xe=+(l>0),Se=this.footWorld(be,ve.position),Ce=this.footWorld(xe,ye.position);ve.position.sub(me).applyQuaternion(_e),ye.position.sub(me).applyQuaternion(_e);let P=this.boxer.rig.metrics.ankleHeight;ve.position.y=P+Se,ye.position.y=P+Ce,_S(mS.leadToe,l,ve.toe),_S(mS.rearToe,l,ye.toe);let we=rT(this.tired*.6+this.stunAmount+N*.6,0,1),Te=(Se+Ce)*3;ve.heel=Math.max(0,mS.leadHeel+(ie.heel-1)*.12)+(.5+.5*de)*.09*ue+Math.max(0,-fe)*.06+Te,ye.heel=mS.rearHeel*ie.heel*(1-.7*we)+(.5+.5*de)*.07*ue+Math.max(0,fe)*.07+Te,this.referee&&(ve.heel=ye.heel=Te),ve.pole.copy(ve.toe).setY(.35).normalize(),ye.pole.copy(ye.toe).setY(.35).normalize();let F=this.torso,I=mS.bladeYaw*l,Ee=de*.013,De=(Math.sin(this.weightPhase)*.018+Math.sin(ae*.31+2.2)*.008)*u*(.5+.5*ie.bob),Oe=.012+this.tired*.03+this.stunAmount*.05+N*.025;F.hips.set(De*l+Math.sin(this.stunPhase*.9)*.05*this.stunAmount+this.walkLean.x,mS.hipsHeight+ie.rise-Oe+Ee+pe*.002,fe*.018+this.walkLean.y+ie.weight),F.hipsYaw=I,F.hipsPitch=.02+this.tired*.08,F.hipsRoll=Math.sin(this.stunPhase)*.09*this.stunAmount,F.shouldersYaw=I*mS.shoulderBlade;let ke=(mS.lean+ie.lean)*(1-.5*this.tight);F.spinePitch=mS.hunch+ke*Math.cos(I)+this.tired*.16+N*.06-pe*.012+this.walkLean.y,F.spineRoll=ke*Math.sin(I)+Math.sin(this.stunPhase*1.3)*.06*this.stunAmount-this.walkLean.x+(Math.sin(ae*.61+2)*.018+Math.sin(ae*1.43)*.008)*u*ie.bob,F.headYaw=-.12*l+Math.sin(ae*.9)*.05+Math.sin(this.stunPhase*.7)*.25*this.stunAmount,F.headPitch=mS.chinTuck+Math.sin(ae*1.7)*.02+this.stunAmount*.18+N*.2*(1-this.punchCommit),F.headRoll=Math.sin(this.stunPhase*1.1)*.14*this.stunAmount,F.headOffset.set(0,0,0);let Ae=l>0?this.hand.L:this.hand.R,je=l>0?this.hand.R:this.hand.L,Me=this.headRestChar(l),Ne=rT(this.guardHigh+this.guardLow,0,1),Pe=1-this.crowding,Fe=this.scratch.copy(mS.relaxedLead).lerp(mS.tightLead,this.tight);Fe.x+=ie.lead.x*Pe,Fe.y+=ie.lead.y*Pe,Fe.z+=ie.lead.z*Pe*(1-this.tight*(1-ie.shell)),Fe.lerp(mS.guardHighLead,this.guardHigh).lerp(mS.guardLowLead,this.guardLow);let Ie=this.scratchB.copy(mS.relaxedRear).lerp(mS.tightRear,this.tight).addScaledVector(ie.rear,Pe).lerp(mS.guardHighRear,this.guardHigh).lerp(mS.guardLowRear,this.guardLow);Fe.y-=this.tired*.12+this.stunAmount*.22+N*.06,Ie.y-=this.tired*.1+this.stunAmount*.2+N*.05,Fe.y-=this.guardSpent*nE,Ie.y-=this.guardSpent*nE,Fe.z-=this.guardSpent*.04,Ie.z-=this.guardSpent*.03,Fe.z+=le*.11+Math.sin(ae*2.3)*.012*u,Fe.x+=Math.sin(ae*1.9)*.01*u,Fe.y+=le*.02+Math.sin(ae*1.27+1)*.008*u+pe*.004,Ie.y+=Math.cos(ae*2.7)*.006*u+pe*.004,Ie.x+=Math.sin(ae*1.13+2)*.004*u,Fe.z-=this.guardKick*.07,Ie.z-=this.guardKick*.05,Fe.y-=this.guardKick*.02,Fe.add(Me),Ie.add(Me),Ae.position.set(Fe.x*l,Fe.y,Fe.z),je.position.set(Ie.x*l,Ie.y,Ie.z),_S(mS.leadKnuckles,l,Ae.knuckles),_S(mS.leadPalm,l,Ae.palm),_S(mS.rearKnuckles,l,je.knuckles),_S(mS.rearPalm,l,je.palm),_S(mS.leadPole,l,Ae.pole),_S(mS.rearPole,l,je.pole),Ae.pole.x*=1-.6*this.tight;let Le=Pe*(1-Ne);if(Ae.pole.x+=ie.flare*l*Le,je.pole.x-=ie.flare*l*Le,ie.shell>0){let e=ie.shell*Le;Ae.knuckles.lerp(this.scratchD.set(-.8*l,.1,.6),e).normalize(),Ae.palm.lerp(this.scratchD.set(-.3*l,.35,-.9),e).normalize(),Ae.pole.lerp(this.scratchD.set(.5*l,-.8,-.35),e).normalize()}F.shouldersYaw+=I*.07*le;let Re=mS.leadShrug+(.6-mS.leadShrug)*Ne+pe*.12+le*.2+ie.shrug*Le,ze=mS.rearShrug+(.5-mS.rearShrug)*Ne+pe*.12+Math.min(0,ie.shrug)*Le;if(Ne>.001&&(Ae.pole.lerp(_S(mS.guardHighLeadPole,l,this.scratch),this.guardHigh).lerp(_S(mS.guardLowLeadPole,l,this.scratch),this.guardLow).normalize(),je.pole.lerp(_S(mS.guardHighRearPole,l,this.scratch),this.guardHigh).lerp(_S(mS.guardLowRearPole,l,this.scratch),this.guardLow).normalize(),Ae.knuckles.lerp(_S(mS.guardKnuckles,l,this.scratch),Ne).normalize(),je.knuckles.lerp(_S(mS.guardKnuckles,-l,this.scratch),Ne).normalize(),Ae.palm.lerp(_S(mS.guardPalm,l,this.scratch),Ne).normalize(),je.palm.lerp(_S(mS.guardPalm,-l,this.scratch),Ne).normalize(),F.hips.y-=.03*this.guardHigh+.08*this.guardLow,F.spinePitch+=.05*this.guardHigh+.2*this.guardLow,F.headPitch+=.08*Ne),this.hurt&&this.applyHurtStance(r,l,Ae,je,Me),Math.abs(this.slip)>.001||this.weave>.001||this.pull>.001){let e=F.hips.x,t=F.hips.y,n=F.hips.z,r=F.spinePitch,i=F.spineRoll,a=F.shouldersYaw,o=this.slip;F.shouldersYaw+=o*.22,F.hipsYaw+=o*.1,this.leanHead(o*.18,0),F.hips.x+=o*.05,F.hips.y-=Math.abs(o)*.04;let s=this.weave,c=rT(this.weaveTime/dO,0,1),u=Math.sin(c*Math.PI),d=s*(1-2*c)*l;F.hips.y-=s*(.08+.14*u),F.hips.x+=d*.04,this.leanHead(d*.14,s*(.04+.06*u));let f=this.pull;F.hips.z-=f*.1,F.hips.y-=f*.03,this.leanHead(0,-f*.2),F.headPitch-=f*.06;let p=this.headTravel(this.scratch,e,t,n,r,i,a);Ae.position.add(p),je.position.add(p)}this.punchCommit=tT(this.punchCommit,+!!this.punchActive,10,n);let Be=this.crowding*(1-this.clinchWeight)*(1-this.punchCommit);if(Be>.001&&(F.headOffset.x-=Be*.075,F.headOffset.z-=Be*.04,F.headYaw-=Be*.2,F.spinePitch-=Be*.07,F.hips.z-=Be*.05,Ae.position.z-=Be*.14,Ae.position.x-=Be*.035*l,je.position.z-=Be*.07),Math.abs(this.headSpace.x)+Math.abs(this.headSpace.y)>.001){let e=this.headSpace.x,t=this.headSpace.y,n=1-this.clinchWeight;F.spinePitch+=t*.7*n,F.spineRoll-=e*.7*n,F.hips.z+=t*.1*n,F.hips.x+=e*.05*n,F.headOffset.x+=e*.05,F.headOffset.z+=t*.05,F.headPitch+=t*.2,F.headRoll-=e*.3}if(this.ropeLean=tT(this.ropeLean,this.referee||this.downState!==`up`?0:this.ropeLeanTarget,xT,n),this.ropeLean>.001){let e=this.ropeLocal.copy(this.ropeOutward).applyAxisAngle(KD,-this.yaw);F.hipsPitch+=e.z*yT*this.ropeLean,F.hipsRoll-=e.x*bT*this.ropeLean}if(this.referee||this.applyReactions(Ae,je,ve,ye),this.punchActive){let e=this.applyPunch(l,Ae,je,ve,ye,Me);this.punchReach=e,this.punchHand===`left`==l>0?Re=Math.max(Re,e):ze=Math.max(ze,e)}if(this.referee&&(Re=ze=this.applyRefereePose(l,Ae,je,ve,ye,r,o,n,e.stunned_ticks),this.applyReactions(Ae,je,ve,ye)),this.clinchWeight>.001&&this.applyClinchPose(this.clinchWeight,r,l,e,t,Ae,je,Me),this.foulWeight>.001){let e=this.foulWeight;F.hips.y-=e*.16,F.spinePitch+=e*.55,F.headPitch+=e*.2,Ae.position.lerp(this.scratch.set(.06*l,.72,.16),e),je.position.lerp(this.scratch.set(-.05*l,.7,.14),e),Ae.pole.set(.6*l,-.6,.5),je.pole.set(-.6*l,-.6,.5)}if(this.tauntWeight>.001){let e=this.tauntEnd===null?0:rT(this.tauntEnd-o,0,eE);this.applyTauntPose(this.tauntWeight,(eE-e)/eE*tE,l,Ae,je,Me)}if(this.dislocation===`shoulder_left`||this.dislocation===`shoulder_right`){let e=this.dislocation===`shoulder_left`?this.hand.L:this.hand.R,t=this.dislocation===`shoulder_left`?1:-1;e.position.set(.24*t,.55,.05),e.pole.set(.9*t,-.3,.2),e.knuckles.set(0,-1,.1),e.palm.set(-t,0,.2)}this.winded>.001&&(this.downState===`up`||E)&&this.applyWindedPose(this.winded,r,l,Ae,je),this.hurt&&this.downState===`up`&&this.applyHurtActs(r,l,ve,ye),this.touchWeight>.001&&this.downState===`up`&&this.applyTouchGlovesPose(this.touchWeight,l,Ae,je),this.celebration>.001&&this.downState===`up`&&this.applyCelebratePose(this.celebration,r,l,Ae,je,ve,ye),this.wave>.001&&this.downState===`up`&&this.applyWaveOffPose(this.wave,r,l,Ae,je),this.squareWeight>.001&&this.downState===`up`&&(this.applyVerdictPose(this.squareWeight,r,l,Ae,je,ve,ye,Me),ve.heel*=1-this.squareWeight,ye.heel*=1-this.squareWeight,Re=R.lerp(Re,this.breath*.15,this.squareWeight),ze=R.lerp(ze,this.breath*.15,this.squareWeight)),(this.wristWeights[0]>.001||this.wristWeights[1]>.001)&&this.downState===`up`&&this.applyRaisePose(l,Ae,je),this.breakWeight>.001&&this.downState===`up`&&this.applyBreakPose(this.breakWeight,l,Ae,je),this.attendWeight>.001&&this.downState===`up`&&this.applyAttendPose(this.attendWeight,r,l,Ae,je),this.treatWeight>.001&&this.downState===`up`&&this.applyTreatPose(this.treatWeight,r,l,Ae,je,ve,ye),this.seated>.001&&this.downState===`up`&&this.applySeatedPose(this.seated,r,l,Ae,je,ve,ye),this.downState!==`up`&&this.applyDownPose(l,Ae,je,ve,ye),this.steadyJointPoles(l,Ae,je,ve,ye,n),Oe=0;let Ve=this.pose;Ve.shrugL=l>0?Re:ze,Ve.shrugR=l>0?ze:Re;let He=this.ragdoll;if(He?.active===!0&&i&&(He.stop(),He.clearRise()),He?.active===!0&&!He.handingOver)He.setLost(c.isDecapitated,c.isHandDismembered(`left`),c.isHandDismembered(`right`)),He.update(n,this.obstacle),this.hurt&&this.dropDangles();else{if(this.solver.apply(c.root,this.pose),He?.handingOver===!0)He.followPose(n,this.obstacle),this.riseProgress>=TT&&He.handOverSeconds>=PT&&(He.letGo(),this.riseBlendAge=0);else if(He!==null&&He.hasRisePose){let e=$x(0,NT,this.riseBlendAge);e<1&&this.downState!==`up`?He.blendRise(e):He.clearRise()}this.hurt&&this.dangleArms(n),He?.sample(n)}this.applyDislocation();let Ue=Math.min(1,(t.trauma.bleeding+t.trauma.left_cut+t.trauma.right_cut+t.trauma.head/4)/300*(a===`off`?0:a===`reduced`?.15:1.5));c.setGloveBlood(Ue),c.setTrunksBlood(ov(e.trauma,a)),av(c.headInjury,e.trauma,a),sv(c.bodyInjury,e.trauma,a),c.setSkinClearcoat(.25+(1-O)*.4),this.laidOut=!1}applyTauntPose(e,t,n,r,i,a){let o=this.torso,s=.5-.5*Math.cos(t*Math.PI*2);i.position.lerp(this.scratch.set(-.3*n,a.y-.62,.02),e),i.pole.lerp(this.scratch.set(-.5*n,-.4,-.75),e).normalize(),i.knuckles.lerp(this.scratch.set(-.1*n,-.95,.3),e).normalize(),i.palm.lerp(this.scratch.set(0,.3,.95),e).normalize(),r.position.lerp(this.scratch.set(.26*n,a.y-.36+s*.1,.52-s*.24),e),r.pole.lerp(this.scratch.set(.7*n,-.7,.1),e).normalize(),r.knuckles.lerp(this.scratch.set(.1*n,.25+s*.6,.95-s*.7),e).normalize(),r.palm.lerp(this.scratch.set(-.2*n,.95,-.2-s*.5),e).normalize(),o.spinePitch-=e*.12,o.headPitch-=e*.22,o.headYaw+=Math.sin(t*Math.PI)*.15*e,o.shouldersYaw+=Math.sin(t*Math.PI*3)*.1*e,o.hips.x+=Math.sin(t*Math.PI)*.03*e*n,o.headOffset.z+=e*.03}applyClinchPose(e,t,n,r,i,a,o,s){let c=this.torso,l=r.player_idy&&(h.x*=y/v,h.z*=y/v),h.x+=o,h.z+=u,t.position.lerp(h,e),t.pole.lerp(this.clinchTemp.set(r*.85,l?.35:-.6,.25),e).normalize(),t.knuckles.lerp(this.clinchTemp.set(-p*r*.9+f.x*.3,l?-.25:.1,-m*r*.9+f.z*.3),e).normalize(),t.palm.lerp(this.clinchTemp.set(-f.x,l?.1:.35,-f.z),e).normalize()}}holdOnTheRopes(e,t,n){if(this.referee)return this.ropeLeanTarget=0,this.ropeHold.set(0,0,0);this.ropeLeanTarget=ST(t,n,this.ropeExcess,this.ropeOwn);let r=Math.hypot(this.ropeExcess.x,this.ropeExcess.z);r>0&&this.ropeOutward.set(this.ropeExcess.x/r,0,this.ropeExcess.z/r);let i=this.mapping.x(e.x),a=this.mapping.z(e.y);ST(i,a,this.ropeTheirs,this.ropeTheirs);let o=1-$x(hT,gT,Math.hypot(i-t,a-n));return this.ropeHold.set(CT(this.ropeOwn.x,this.ropeTheirs.x*o),0,CT(this.ropeOwn.z,this.ropeTheirs.z*o))}headRestChar(e){let t=this.boxer.rig.metrics;return this.headWorld.set(-.08,t.headHeight-t.hipsHeight+this.torso.hips.y,.02)}syncAction(e,t,n,r){this.shownFighter=e,this.shownOpponent=t;let i=this.ownQueued;if(i!==null&&e.action_id===i.action.id&&(this.ownQueued=null,this.retirePunch(),this.startOwnPunch(i),this.ownPress=!1),e.action_id!==null&&e.action_id!==this.actionId&&e.action_id!==this.completedActionId&&!this.retiredOwnIds.includes(e.action_id)){let t=e.action;if(t!==null){let r=e.action_hand??(e.stance===`orthodox`?`left`:`right`),i=this.ownActionId===e.action_id&&this.punchActive,a=this.punchTiming;this.actionId=e.action_id,this.punchClass=t,this.punchHand=r,this.punchTarget=e.action_target??`head`,this.punchPower=e.action_power??`normal`,this.punchTiming={...N(this.punchClass,this.punchTarget,this.punchPower),startup:e.action_startup_ticks,active:e.action_active_ticks,recovery:e.action_recovery_ticks},this.punchTotalTicks=Math.max(1,e.action_startup_ticks+e.action_active_ticks+e.action_recovery_ticks);let o=Math.max(0,n-e.action_start_tick);i?(this.punchAgeTicks=hO(this.punchAgeTicks,a,this.punchTiming),this.ownAuthoritativeAge=o,this.ownRefused||(this.ownPulled=!1,this.ownCut=!1,o-this.punchAgeTicks>1&&(this.punchAgeTicks=o))):(this.punchAgeTicks=o,this.ownActionId=null,this.ownPress=!1,this.ownLeadTicks=0,this.ownAuthoritativeAge=null),this.ownWaitedTicks=0,this.punchActive=!0}}if(e.action_id===null)this.actionId=null,this.completedActionId=null;else if(e.action_id===this.actionId&&this.punchActive){let t=Math.max(0,n-e.action_start_tick);this.ownActionId===this.actionId?(this.ownAuthoritativeAge=t,!this.ownPulled&&t-this.punchAgeTicks-this.hitstopLag>1.5&&(this.punchAgeTicks=t)):Math.abs(this.punchAgeTicks+this.hitstopLag-t)>1.5&&(this.punchAgeTicks=t,this.hitstopLag=0)}if(this.punchActive&&this.ownActionId!==null&&this.ownAuthoritativeAge===null&&!this.ownPulled&&!this.ownCut&&(this.ownWaitedTicks+=r*30,this.ownWaitedTicks>this.ownExpectedTicks*1.5+JD&&(this.ownPress?!this.ownStarted:this.punchAgeTicks=e,n=this.hitstop>0?0:Math.min(this.hitstopLag,r*30*ZD);this.hitstopLag-=n,this.punchAgeTicks+=r*30*(t?XD:this.ownPunchRate())+n,this.ownPress&&this.ownActionId!==null&&!this.ownCut&&this.punchAgeTicks>=this.punchTiming.startup&&this.pressesLanded.at(-1)!==this.ownActionId&&(this.pressesLanded.push(this.ownActionId),this.pressesLanded.length>6&&this.pressesLanded.shift()),this.punchAgeTicks>=this.punchTotalTicks&&this.retirePunch()}e.is_downed&&(this.punchActive&&this.retirePunch(),this.ownQueued=null),this.releaseQueuedPress(r);let a=this.actionId??this.ownActionId;a!==this.aimActionId&&(this.aimActionId=a,this.followHead=0),this.followHead=tT(this.followHead,+(a!==null&&a===this.contactId),pO,r),this.followReferee=tT(this.followReferee,+(a!==null&&a===this.refereeContactId),pO,r)}trackOpponentHead(e,t,n){let r=this.guardOpponentHead.set(this.mapping.x(e.x),0,this.mapping.z(e.y));this.opponentSteadySeconds=lO.has(e.defense)?0:this.opponentSteadySeconds+n,(!this.hasLiveHead||this.opponentSteadySeconds>=fO)&&this.opponentHeadOffset.copy(t).sub(r),r.add(this.opponentHeadOffset),this.liveOpponentHead.copy(t),this.hasLiveHead=!0}ownPunchRate(){if(this.ownActionId===null||this.ownPress)return 1;let e=this.punchTiming.startup,t=this.ownAuthoritativeAge;return t===null?this.punchAgeTicks0,_=g?t:n,v=g?n:t,y=(g?1:-1)*e,b=+(this.punchPower===`power`),x=+(this.punchTarget===`body`),S,C,w,T=1,E=1,D=0,O=1,k=1,ee=0,A=0;if(ue&&Me.set(Me.x*e/t,Me.y,Me.z*e/t),Me.add(Oe)}else Me.multiplyScalar(Math.min(1,Ae/Math.max(1e-6,n))).add(Oe)}if(fe>i.heel&&(i.heel+=(fe-i.heel)*O),pe>r.heel&&(r.heel+=(pe-r.heel)*O),he>0){let t=this.scratchQ.setFromAxisAngle(KD,-he*e*O);r.toe.applyQuaternion(t),r.pole.applyQuaternion(t)}if(me>0){let t=this.scratchQ.setFromAxisAngle(KD,me*e*O);i.toe.applyQuaternion(t),i.pole.applyQuaternion(t)}let Pe=this.scratchE;switch(m){case`hook`:Pe.set((.1+.03*b)*y,-.05,-.06);break;case`uppercut`:Pe.set(.03*y,-.26,-.04);break;case`straight`:Pe.set(.02*y,-.02,-.04-.05*b);break;default:Pe.set(0,-.01,-.02-.07*b)}Pe.y-=.05*b,Pe.z-=(h?.07:.12)*b;let Fe=this.punchStart.copy(re).addScaledVector(Pe,Math.max(C,h?(1-j)*.6*T:0)),Ie=A*this.punchMiss;if(m===`hook`){let e=Math.hypot(Fe.x-Oe.x,Fe.z-Oe.z),t=Math.hypot(Me.x-Oe.x,Me.z-Oe.z),n=this.punchSweepFrom.copy(Fe).sub(Oe).setY(0).normalize(),r=this.punchSweepTo.copy(Me).sub(Oe).setY(0).normalize(),i=Math.acos(rT(n.dot(r),-1,1)),a=n.z*r.x-n.x*r.z>=0?1:-1,o=$x(0,1,j),s=n.applyAxisAngle(KD,(i*o+.5*Ie)*a).normalize();_.position.copy(Oe).addScaledVector(s,R.lerp(e,t,o)),_.position.y=R.lerp(Fe.y,Me.y,o),_.pole.set(.9*y,.2+.5*(1-x),.25).normalize(),_.knuckles.copy(s).applyAxisAngle(KD,a*Math.PI/2).setY(.05).normalize(),_.palm.set(0,-1,0)}else if(m===`uppercut`){let e=$x(0,1,j),t=this.punchMid.set(Fe.x+(Me.x-Fe.x)*.6,Math.min(Fe.y,Me.y-.12),Fe.z+(Me.z-Fe.z)*.75);_.position.copy(Fe).multiplyScalar((1-e)*(1-e)).addScaledVector(t,2*(1-e)*e).addScaledVector(Me,e*e),_.position.y+=.05*ee+.14*Ie,_.pole.set(.3*y,-1,-.1).normalize(),_.knuckles.set(.05*y,.9,.35).normalize(),_.palm.set(-.2*y,.3,-.95).normalize()}else{_.position.copy(Fe).lerp(Me,Math.min(1,j)).addScaledVector(ke,.14*Ie),_.position.y+=Math.sin(rT(j,0,1)*Math.PI)*.025,_.pole.set(.55*y,-.9,.35);let e=$x(.55,1,j);_.knuckles.copy(ke).lerp(this.scratchC.set(.1*y,.55,.8),1-e).normalize(),_.palm.set(-.9*y,.2,-.3).lerp(this.scratchC.set(0,-1,.1),e).normalize()}if(M>0&&(_.position.lerp(re,M),_.knuckles.lerp(ie,M).normalize(),_.palm.lerp(N,M).normalize(),_.pole.lerp(ae,M).normalize()),E<1){let e=(1-_.pole.dot(ae)/Math.max(1e-6,_.pole.length()*ae.length()))/2,t=Math.sin(Math.PI*E);_.knuckles.lerp(ie,1-E).normalize(),_.palm.lerp(N,1-E).normalize(),_.pole.lerp(ae,1-E).addScaledVector(this.scratchC.set(y,0,0),mO*e*t*t).normalize()}let Le=this.scratchE.set(-.11*y,a.y-.13,.13+a.z);v.position.lerp(Le,Math.max(k,te)*.8).add(this.headTravel(this.scratchC,ve,ye,be,xe,Se,Ce));let Re=this.hasLiveHead?$x(.08,.2,this.guardOpponentHead.distanceTo(this.liveOpponentHead))*(1-this.followHead):0;return this.punchMiss=Math.max($x(.02,.12,Ne),Re),te}hurtRandom(){return this.hurtSeed=Math.imul(this.hurtSeed,1664525)+1013904223>>>0,this.hurtSeed/4294967296}applyReactions(e,t,n,r){let i=this.torso,a=this.headKick.value;i.headOffset.addScaledVector(a,.4),this.leanHead(a.x*.6,a.z*.6),i.headPitch+=a.z*2.6-a.y*2,i.headYaw+=a.x*2.6,i.headRoll+=-a.x*1.1,i.shouldersYaw+=this.torsoKick.value.y,i.hipsYaw+=this.torsoKick.value.y*.4,i.spinePitch+=this.torsoKick.value.x,i.spineRoll+=this.torsoKick.value.z*.5,i.hips.x+=this.rootKick.value.x,i.hips.z+=this.rootKick.value.z,i.hips.y-=Math.max(0,this.torsoKick.value.x)*.08,this.torsoKick.value.x>.05&&(e.position.y-=this.torsoKick.value.x*.25,t.position.y-=this.torsoKick.value.x*.2,e.position.z-=this.torsoKick.value.x*.1);let o=Math.max(0,this.rootKick.value.y);i.hips.y+=this.downState===`up`?this.rootKick.value.y:o,n.heel+=o*6,r.heel+=o*6;let s=this.coverKick.value.x;if(Math.abs(s)>.002){let e=s>0?this.hand.R:this.hand.L;e.position.y-=Math.abs(s)*.9,e.position.x+=s*.2,e.position.z-=Math.abs(s)*.25,e.pole.y-=Math.abs(s)*3}let c=this.hand.L.position,l=this.hand.R.position;c.add(this.armKick.value),l.addScaledVector(this.armKick.value,.8);let u=$x(0,1,this.handsDrop);c.set(c.x+.07*u,c.y-.24*u,c.z-.04*u),l.set(l.x-.07*u,l.y-.22*u,l.z-.03*u),i.hips.y-=this.guardKick*.02;let d=this.downState===`up`&&!this.referee?this.stunAmount:0;if(d>.01){let e=this.rockedTime,t=this.rockedPhase,n=Math.max(0,Math.sin(e*3.3+t)*Math.sin(e*1.9+t*1.7)),r=.5+.5*Math.sin(e*1.1+t*1.7);i.hips.y-=d*(.02+.08*n),i.hips.x+=d*.04*Math.sin(e*2.1+t*2.9),i.hips.z+=d*.03*Math.sin(e*1.3+t),i.headRoll+=d*.2*Math.sin(e*2.1+t*2.9-1.1),i.headPitch+=d*.1*Math.sin(e*1.3+t-.9),c.set(c.x+d*.07*r,c.y-d*.05*r,c.z),l.set(l.x-d*.07*r,l.y-d*.08*(1-r),l.z)}}legRoom(e,t){let n=this.torso,r=e.position.x-n.hips.x-t*Yx.x*Math.cos(n.hipsYaw),i=e.position.z-n.hips.z+t*Yx.x*Math.sin(n.hipsYaw);return e.position.y+Math.sqrt(Math.max(.04,VT*VT-r*r-i*i))-Yx.y}applyRefereePose(e,t,n,r,i,a,o,s,c=0){let l=this.torso,u=R.lerp,d=this.countWeight=tT(this.countWeight,+!!this.refereeCounting,5,s),f=Math.sin(a*.7)*.08,p=this.refereeCounting?.75:.06;if(this.breakAimed){let e=G.copy(this.watching?this.watchPoint:this.breakFighters[Math.sin(this.weightPhase*.32)+Math.sin(this.weightPhase*.125)>0?0:1]);this.watching||(e.y=UT-.1),e.x-=this.rootX??0,e.z-=this.rootZ,e.applyAxisAngle(KD,-this.yaw),f=rT(Math.atan2(e.x,e.z),-1,1)*.85,p=rT(Math.atan2(UT-e.y,Math.hypot(e.x,e.z)),-.2,.85)}this.gazeYaw=tT(this.gazeYaw,f,6,s),this.gazePitch=tT(this.gazePitch,p,6,s);let m=d*$x(.2,.6,this.gazePitch),h=Math.sin(a*1.6),g=Math.sin(this.weightPhase*.35)*.02+Math.sin(this.weightPhase*.9+1)*.006,_=Math.hypot(this.travel.x,this.travel.z),v=Math.min(1,_/.4);l.hipsYaw=this.strideYaw*.7,l.shouldersYaw=this.strideYaw*.2+this.gazeYaw*.25,l.hipsPitch=.04+m*.2,l.hipsRoll=0,l.spinePitch=.1+h*.008+rT(this.travel.z,-1,1.5)*.04+d*.06+m*.3,l.spineRoll=-g*.6-this.travel.x*.03,l.headYaw=this.gazeYaw,l.headPitch=.04+this.gazePitch,l.headRoll=0,l.hips.set(g,0,-m*.1);let y=this.footYaw[e>0?0:1]-this.yaw,b=this.footYaw[+(e>0)]-this.yaw;r.toe.set(Math.sin(y),0,Math.cos(y)),i.toe.set(Math.sin(b),0,Math.cos(b)),r.pole.copy(r.toe).setY(.3).normalize(),i.pole.copy(i.toe).setY(.3).normalize();let x=_>.001?v/_:0;r.heel=rT((-(r.position.x*this.travel.x+r.position.z*this.travel.z)*x-.08)*3.5,0,.75),i.heel=rT((-(i.position.x*this.travel.x+i.position.z*this.travel.z)*x-.08)*3.5,0,.75);let S=((r.position.x-i.position.x)*this.travel.x+(r.position.z-i.position.z)*this.travel.z)*(x/Math.max(_,.001))*.1;l.hips.y=Math.max(BT-.14,Math.min(BT-m*.05,this.legRoom(r,e),this.legRoom(i,-e)));let C=l.hips.y+.24+h*.004;if(t.position.set(.16*e-this.travel.x*S,C,.3-this.travel.z*S),n.position.set(-.16*e+this.travel.x*S,C-.015,.28+this.travel.z*S),t.pole.set(.7*e,-.5,-.5).normalize(),n.pole.set(-.7*e,-.5,-.5).normalize(),t.knuckles.set(-.35*e,.05,.9).normalize(),n.knuckles.set(.35*e,.05,.9).normalize(),t.palm.set(-.65*e,-.75,.05).normalize(),n.palm.set(.65*e,-.75,.05).normalize(),d>.001){if(this.refereeCounting){this.countChangedTick??=o;let e=rT((o-this.countChangedTick)/te,0,1);this.countPump=e.001&&(l.spinePitch=u(l.spinePitch,-.04,w),t.position.lerp(G.set(.32*e,l.hips.y+.6,.2),w),n.position.lerp(G.set(-.32*e,l.hips.y+.6,.2),w),t.knuckles.lerp(G.set(.1*e,1,.1),w).normalize(),n.knuckles.lerp(G.set(-.1*e,1,.1),w).normalize(),t.palm.lerp(G.set(0,.1,1),w).normalize(),n.palm.lerp(G.set(0,.1,1),w).normalize(),t.pole.lerp(G.set(.6*e,-.8,-.1),w).normalize(),n.pole.lerp(G.set(-.6*e,-.8,-.1),w).normalize()),c>0){let r=Math.min(1,c/12),i=Math.sin(a*9.5);l.hips.y-=.09*r,l.hips.x+=i*.05*r,l.spineRoll+=i*.18*r,l.headRoll-=i*.35*r,l.headPitch+=.25*r,t.position.x+=.18*e*r,n.position.x-=.18*e*r,t.position.y-=.1*r,n.position.y-=.1*r}return .05+h*.025}updateDownState(e,t,n,r){if(this.riseBlendAge+=t,e.is_downed||this.forcedDown||this.dead){if(this.downState===`up`||this.downState===`rising`||this.deathFall)this.deathFall=!1,this.fallFromGetUp=this.downState!==`up`,this.fallFromGetUp&&(RD(this.fallStart,this.downResult),this.fallStartStand=this.downStand),this.downState=`falling`,this.fallAge=0,this.riseProgress=0,this.riseRootFrom.copy(this.riseRoot),this.landSettled=!1,this.fallenFromPhysics=!1,this.downPolesSet=!1,this.ragdoll?.clearRise(),this.authoredNextFall?this.ragdoll?.forget():n||this.startFall(e),this.authoredNextFall=!1;else if(this.downState===`falling`)this.fallAge+=t,this.fallAge>=wT&&(this.downState=`down`);else if(this.fallKneel)this.riseProgress=ET;else{let n=(!this.forcedDown&&!this.heldDown&&!this.dead&&e.get_up_required>0?rT(e.get_up_meter/e.get_up_required,0,1):0)*ET;if(this.ragdoll?.active===!0&&!this.ragdoll.handingOver){if(n<=0)return;this.handOverFall(e)}this.riseProgress+=rT(n-this.riseProgress,-.4*t,kT*t)}return}if((this.downState===`down`||this.downState===`falling`)&&(this.downState=`rising`,this.ragdoll?.active===!0&&!this.ragdoll.handingOver&&this.handOverFall(e),this.fallKneel&&(this.riseProgress=Math.max(this.riseProgress,ET)),this.riseFrom=this.riseProgress,this.feetInitialized=!1),this.downState!==`rising`)return;let i=r>.3||this.punchActive,a=(1-this.riseFrom)/(i?OT:DT);this.riseProgress=Math.min(1,this.riseProgress+(this.riseProgress=1&&(this.downState=`up`,this.fallKneel=!1)}startFall(e){let t=this.ragdoll;t!==null&&(this.rootX!==null&&Math.hypot(this.place.x-this.rootX,this.place.z-this.rootZ)>FT&&(this.rootX=this.place.x,this.rootZ=this.place.z,this.boxer.root.position.set(this.rootX,0,this.rootZ)),t.start(this.dead?this.deathStyle:`crumple`),e.get_up_count>0&&!this.dead&&(t.settle(),this.fallAge=wT))}handOverFall(e){let t=this.ragdoll;if(t===null||!t.active||t.handingOver)return;let n=e.stance===`orthodox`?1:-1,r=this.boxer.rig.bones;this.boxer.root.updateMatrixWorld(!0);let i=this.scratchC.set(this.rootX??0,0,this.rootZ),a=this.scratchQ.setFromAxisAngle(KD,-this.yaw),o=this.fallen,s=(e,t)=>t.setFromMatrixPosition(e.matrixWorld).sub(i).applyQuaternion(a),c=(e,t,n,r)=>kD(mD.setFromQuaternion(e.getWorldQuaternion(pD).premultiply(a),`YXZ`),t,n,r);s(r.hips,o.hips),this.landProne=t.faceDown();let l=Math.abs(o.hips.x)>.12?Math.sign(o.hips.x):0,u=this.landProne?TD(this.downTo,xD,SD,n,l,this.boxer.rig.metrics.ankleHeight):TD(this.downTo,yD,bD,n,l,this.boxer.rig.metrics.ankleHeight);this.landSide=l,this.landShift.set(o.hips.x-u.hips.x,0,o.hips.z-u.hips.z);let d=c(r.hips,u.hipsPitch,u.hipsYaw,u.hipsRoll);o.hipsPitch=d.x,o.hipsYaw=d.y,o.hipsRoll=d.z;let f=c(r.upperChest,o.hipsPitch,o.hipsYaw,o.hipsRoll);o.shouldersYaw=f.y,o.spinePitch=f.x-o.hipsPitch,o.spineRoll=f.z-o.hipsRoll;let p=c(r.head,f.x,f.y,f.z);o.headPitch=p.x,o.turn=p.y,o.headRoll=p.z,s(n>0?r.gloveL:r.gloveR,o.leadHand),s(n>0?r.gloveR:r.gloveL,o.rearHand),s(n>0?r.ankleL:r.ankleR,o.leadFoot),s(n>0?r.ankleR:r.ankleL,o.rearFoot);let m=this.boxer.rig.metrics.ankleHeight;o.leadFoot.y=Math.max(o.leadFoot.y,m),o.rearFoot.y=Math.max(o.rearFoot.y,m);let h=(e,t,n,r,i)=>{let o=s(e,this.scratchB),c=s(n,this.scratchD).sub(o).normalize();s(t,r).sub(o),r.addScaledVector(oD.copy(i).applyQuaternion(e.getWorldQuaternion(pD)).applyQuaternion(a),fD),r.addScaledVector(c,-r.dot(c)),r.lengthSq()>1e-6?r.normalize():r.copy(i===lD?sD:cD)},g=n>0;h(g?r.hipL:r.hipR,g?r.kneeL:r.kneeR,g?r.ankleL:r.ankleR,o.leadKnee,lD),h(g?r.hipR:r.hipL,g?r.kneeR:r.kneeL,g?r.ankleR:r.ankleL,o.rearKnee,lD),h(g?r.shoulderL:r.shoulderR,g?r.elbowL:r.elbowR,g?r.gloveL:r.gloveR,o.leadElbow,g?uD:dD),h(g?r.shoulderR:r.shoulderL,g?r.elbowR:r.elbowL,g?r.gloveR:r.gloveL,o.rearElbow,g?dD:uD);let _=(e,t,n)=>{let r=e.getWorldQuaternion(pD).premultiply(a);t.set(0,1,0).applyQuaternion(r),n.set(0,0,1).applyQuaternion(r)};_(g?r.gloveL:r.gloveR,o.leadKnuckles,o.leadPalm),_(g?r.gloveR:r.gloveL,o.rearKnuckles,o.rearPalm),o.ownJoints=1,o.leadHeel=0,o.rearHeel=0,o.palmsDown=+!!this.landProne,this.fallenFromPhysics=!0,this.landSettled=!0,this.downPolesSet=!1,t.handOver(),this.riseBlendAge=0;let v=this.scratchE.set(t.pelvis(this.scratchD).x-(this.rootX??0),0,this.scratchD.z-this.rootZ),y=this.scratchB.copy(v).applyQuaternion(a);for(let e of[o.hips,o.leadHand,o.rearHand,o.leadFoot,o.rearFoot])e.x-=y.x,e.z-=y.z;t.shiftRise(this.scratchC.copy(v).negate()),this.rootX=(this.rootX??0)+v.x,this.rootZ+=v.z,this.boxer.root.position.set(this.rootX,0,this.rootZ),this.riseRoot.set(this.rootX-this.mapping.x(e.x)-this.touchOffset.x,0,this.rootZ-this.mapping.z(e.y)-this.touchOffset.z),this.riseRootFrom.copy(this.riseRoot)}walkBackFromTheFall(e){let t=this.downState===`rising`?1-$x(ET,1,this.riseProgress):this.downState===`up`?0:1,n=this.riseRootFrom.x*t,r=this.riseRootFrom.z*t;e>0?this.riseRootVelocity.set((n-this.riseRoot.x)/e,0,(r-this.riseRoot.z)/e):this.riseRootVelocity.set(0,0,0),this.riseRoot.set(n,0,r),t===0&&this.riseRootFrom.set(0,0,0)}steadyJointPoles(e,t,n,r,i,a){if(this.poleSettle=this.downState===`up`?Math.max(0,this.poleSettle-a):MT,this.poleSettle<=0||this.ragdoll?.active===!0&&!this.ragdoll.handingOver){this.downPolesSet=!1;return}let o=this.boxer.rig.bones,s=e>0;this.characterInverse.copy(this.boxer.root.matrixWorld).invert();for(let e=0;e<4;e+=1){let c=e<2,l=e%2==0,u=l===s,d=c?u?o.hipL:o.hipR:u?o.shoulderL:o.shoulderR,f=c?l?r:i:l?t:n,p=f.position,m=f.pole,h=this.downPoles[e];if(!this.downPolesSet){h.copy(m);continue}let g=this.scratchB.setFromMatrixPosition(d.matrixWorld).applyMatrix4(this.characterInverse).sub(p).negate();if(g.lengthSq()<1e-6){h.copy(m);continue}g.normalize();let _=this.scratchD.copy(h).addScaledVector(g,-h.dot(g)),v=this.scratchE.copy(m).addScaledVector(g,-m.dot(g));if(_.lengthSq()<1e-4||v.lengthSq()<1e-4){h.copy(m);continue}let y=Math.atan2(this.scratch.crossVectors(_,v).dot(g),_.dot(v)),b=jT*Math.max(a,1/120);Math.abs(y)<=b||m.copy(_.normalize().applyAxisAngle(g,Math.sign(y)*b)),h.copy(m)}this.downPolesSet=!0}applyWindedPose(e,t,n,r,i){let a=this.torso,o=R.lerp,s=this.windedSide,c=Math.sin(t*23)*.006;a.hips.y=o(a.hips.y,mS.hipsHeight-.1,e),a.hips.z=o(a.hips.z,-.04,e),a.hipsPitch=o(a.hipsPitch,.2,e),a.spinePitch=o(a.spinePitch,.62+c,e),a.spineRoll=o(a.spineRoll,s*.16,e),a.headPitch=o(a.headPitch,.38,e);let l=s>0?this.hand.L:this.hand.R,u=l===r?i:r;l.position.lerp(G.set(s*.13,.98,.17),e),l.palm.lerp(G.set(-s*.6,0,-.8),e).normalize(),l.knuckles.lerp(G.set(-s*.5,.5,.2),e).normalize(),l.pole.lerp(G.set(s*.9,-.3,-.3),e).normalize(),u.position.lerp(G.set(-s*.2,.86,.3),e),u.pole.lerp(G.set(-s*.8,-.6,0),e).normalize()}applyTouchGlovesPose(e,t,n,r){let i=this.torso,a=R.lerp;i.hips.z=a(i.hips.z,.06,e),i.hipsYaw=a(i.hipsYaw,i.hipsYaw*.4,e),i.shouldersYaw=a(i.shouldersYaw,0,e),i.spinePitch=a(i.spinePitch,.12,e),i.headPitch=a(i.headPitch,.1,e),n.position.lerp(G.set(.11*t,1.24,.5),e),r.position.lerp(G.set(-.11*t,1.22,.47),e),n.palm.lerp(G.set(-t,0,0),e).normalize(),r.palm.lerp(G.set(t,0,0),e).normalize(),n.knuckles.lerp(G.set(0,.15,1),e).normalize(),r.knuckles.lerp(G.set(0,.15,1),e).normalize(),n.pole.lerp(G.set(.7*t,-.7,0),e).normalize(),r.pole.lerp(G.set(-.7*t,-.7,0),e).normalize()}touchWalk(e,t,n,r){this.countdownEnd=VD(this.countdownEnd,r,this.countdownTicks);let i=this.countdownEnd===null?0:HD(this.countdownEnd-r),a=this.mapping.x(t.x)-this.mapping.x(e.x),o=this.mapping.z(t.y)-this.mapping.z(e.y),s=Math.hypot(a,o),c=s>JT?(s-JT)/2/s*i:0;return this.touchVelocity.set(a*c-this.touchOffset.x,0,o*c-this.touchOffset.z).divideScalar(Math.max(n,.001)).clampLength(0,$T),this.touchOffset.set(a*c,0,o*c)}applyCelebratePose(e,t,n,r,i,a,o){let s=this.torso,c=R.lerp,l=Math.sin(t*6)*.04;s.hips.y=c(s.hips.y,mS.hipsHeight+.035+l*.5,e),s.hipsYaw=c(s.hipsYaw,0,e),s.hipsPitch=c(s.hipsPitch,-.12,e),s.hipsRoll=c(s.hipsRoll,0,e),s.shouldersYaw=c(s.shouldersYaw,0,e),s.spinePitch=c(s.spinePitch,-.1,e),s.headPitch=c(s.headPitch,-.25,e),r.position.lerp(G.set(.3*n,1.86+l,.08),e),i.position.lerp(G.set(-.3*n,1.84+l,.06),e),r.palm.lerp(G.set(0,0,1),e).normalize(),i.palm.lerp(G.set(0,0,1),e).normalize(),r.knuckles.lerp(G.set(.15*n,1,0),e).normalize(),i.knuckles.lerp(G.set(-.15*n,1,0),e).normalize(),r.pole.lerp(G.set(n,.1,-.3),e).normalize(),i.pole.lerp(G.set(-n,.1,-.3),e).normalize(),a.heel=c(a.heel,.45,e),o.heel=c(o.heel,.45,e)}kneelLegs(e,t,n,r,i){let a=R.lerp;n.position.x=a(n.position.x,.24*t,e),n.position.z=a(n.position.z,i+.3,e),r.position.x=a(r.position.x,-.18*t,e),r.position.z=a(r.position.z,i-.66,e),n.heel=a(n.heel,0,e),r.heel=a(r.heel,1.25,e),n.toe.lerp(this.treatScratch.set(.2*t,0,1),e).normalize(),r.toe.lerp(this.treatScratch.set(-.1*t,0,1),e).normalize(),n.pole.lerp(this.treatScratch.set(.25*t,.4,1),e).normalize(),r.pole.lerp(this.treatScratch.set(-.05*t,-.8,.6),e).normalize()}applyAttendPose(e,t,n,r,i){let a=this.torso,o=R.lerp,s=Math.sin(t*3.1)*.5+Math.sin(t*5.3+1)*.5;a.hips.z=o(a.hips.z,.12,e),a.hips.y=o(a.hips.y,BT-.06,e),a.hipsPitch=o(a.hipsPitch,.3,e),a.spinePitch=o(a.spinePitch,.42,e),a.headPitch=o(a.headPitch,.4+s*.05,e),a.headYaw=o(a.headYaw,Math.sin(t*1.3)*.08,e),r.position.lerp(G.set(.2*n,1.36+s*.06,.6+s*.04),e),i.position.lerp(G.set(-.14*n,1.23,.6),e),r.palm.lerp(G.set(-.8*n,-.2,.5),e).normalize(),i.palm.lerp(G.set(0,-.9,.3),e).normalize(),r.knuckles.lerp(G.set(.1*n,.5,1),e).normalize(),i.knuckles.lerp(G.set(.8*n,.1,.6),e).normalize(),r.pole.lerp(G.set(.8*n,-.5,-.1),e).normalize(),i.pole.lerp(G.set(-n,-.1,.1),e).normalize();let c=this.mournWeight*e;if(c>.001){a.hipsPitch=o(a.hipsPitch,.1,c),a.spinePitch=o(a.spinePitch,.28,c),a.headPitch=o(a.headPitch,.55,c),a.headYaw=o(a.headYaw,0,c);let e=a.hips.y+.76;r.position.lerp(G.set(.14*n,e,.4),c),i.position.lerp(G.set(-.14*n,e,.4),c),r.knuckles.lerp(G.set(-.35*n,.9,0),c).normalize(),i.knuckles.lerp(G.set(.35*n,.9,0),c).normalize(),r.palm.lerp(G.set(-n,-.2,0),c).normalize(),i.palm.lerp(G.set(n,-.2,0),c).normalize(),r.pole.lerp(G.set(n,-.2,.3),c).normalize(),i.pole.lerp(G.set(-n,-.2,.3),c).normalize()}let l=this.cheerWeight*e;if(l>.001){let e=Math.sin(t*8.5);a.hips.z=o(a.hips.z,.04,l),a.hipsPitch=o(a.hipsPitch,-.02,l),a.spinePitch=o(a.spinePitch,-.06,l),a.spineRoll=o(a.spineRoll,e*.05,l),a.headPitch=o(a.headPitch,-.2,l);let s=a.hips.y+.93+e*.05;r.position.lerp(G.set(.36*n,s,.06),l),i.position.lerp(G.set(-.36*n,s-e*.06,.06),l),r.knuckles.lerp(G.set(.15*n,1,0),l).normalize(),i.knuckles.lerp(G.set(-.15*n,1,0),l).normalize(),r.palm.lerp(G.set(0,0,1),l).normalize(),i.palm.lerp(G.set(0,0,1),l).normalize(),r.pole.lerp(G.set(n,-.3,-.2),l).normalize(),i.pole.lerp(G.set(-n,-.3,-.2),l).normalize()}}applyTreatPose(e,t,n,r,i,a,o){let s=this.torso,c=R.lerp,l=this.treatScratch.set(this.rootX??0,0,this.rootZ),u=this.scratchQ.setFromAxisAngle(KD,-this.yaw),d=G.copy(this.treatTarget).sub(l).applyQuaternion(u),f=this.treatFacingLocal.copy(this.treatFacing).applyQuaternion(u),p=f.z,m=-f.x,h=this.treatUrgency,g=t*c(2.6,7,h),_=Math.sin(g)*c(.006,.016,h),v=Math.cos(g)*.03*h;s.hips.lerp(this.treatScratch.set(0,.5,.1),e),s.hipsYaw=c(s.hipsYaw,0,e),s.hipsPitch=c(s.hipsPitch,.14,e),s.hipsRoll=c(s.hipsRoll,0,e),s.shouldersYaw=c(s.shouldersYaw,0,e),s.spinePitch=c(s.spinePitch,.26,e),s.headYaw=c(s.headYaw,rT(Math.atan2(d.x,d.z-.25),-.6,.6),e),s.headPitch=c(s.headPitch,rT(Math.atan2(1.12-d.y,Math.hypot(d.x,d.z-.25)),-.5,.6),e),this.kneelLegs(e,n,a,o,.1);let y=this.treatProp===`bottle`,b=y?.3:.08-_;r.position.lerp(this.treatScratch.set(d.x+f.x*b+p*v,d.y+(y?.02:-.07),d.z+f.z*b+m*v),e),y?r.knuckles.lerp(this.treatScratch.set(-f.x,-.25,-f.z),e).normalize():r.knuckles.lerp(this.treatScratch.set(0,1,.05),e).normalize(),r.palm.lerp(y?this.treatScratch.set(0,-1,0):this.treatScratch.set(-f.x,0,-f.z),e).normalize(),r.pole.lerp(this.treatScratch.set(.85*n,-.35,.1),e).normalize();let x=this.treatSide*.135;i.position.lerp(this.treatScratch.set(d.x-p*x+f.x*.05,d.y-.2,d.z-m*x+f.z*.05),e),i.knuckles.lerp(this.treatScratch.set(0,.9,.4),e).normalize(),i.palm.lerp(this.treatScratch.set(p*this.treatSide*.8-f.x*.6,.1,m*this.treatSide*.8-f.z*.6),e).normalize(),i.pole.lerp(this.treatScratch.set(-.85*n,-.4,.1),e).normalize()}applyBreakPose(e,t,n,r){let i=this.torso,a=R.lerp;i.hipsPitch=a(i.hipsPitch,.14,e),i.spinePitch=a(i.spinePitch,.2,e);let o=this.scratchC.set(.48*t,1.22,.52),s=this.scratchD.set(-.48*t,1.22,.52);if(this.breakAimed){let[e,n]=this.breakFighters,r=this.scratch.subVectors(n,e).setY(0).normalize(),i=this.scratchQ.setFromAxisAngle(KD,-this.yaw),a=this.scratchB.set(this.rootX??0,0,this.rootZ);o.copy(e).addScaledVector(r,WT).sub(a).applyQuaternion(i),s.copy(n).addScaledVector(r,-WT).sub(a).applyQuaternion(i),o.x*twT*.15;let s=this.downResult;if(this.downState!==`falling`){let a=this.riseProgress,c=0;if(this.fallKneel)c=$x(ET,1,a),zD(s,this.placeKneel(this.downFrom,e),o,c);else if(a0==t>0;return e.hips.set(.02*t,.53,-.06),e.hipsYaw=mS.bladeYaw*t*.3,e.hipsPitch=.24,e.hipsRoll=0,e.shouldersYaw=mS.bladeYaw*t*.2,e.spinePitch=.62,e.headPitch=.48,(r?e.leadHand:e.rearHand).set(n*.13,.66,.2),(r?e.rearHand:e.leadHand).set(.13*t,.66,.37),e.leadFoot.set(.16*t,.125,.32),e.rearFoot.set(-.12*t,.12,-.5),e.leadHeel=0,e.rearHeel=0,e.palmsDown=1,e}placeLying(e){let t=this.boxer.rig.metrics.ankleHeight;return AD(this.landProne?TD(this.downFrom,xD,SD,e,this.landSide,t):TD(this.downFrom,yD,bD,e,this.landSide,t),this.landShift)}placeDown(e,t,n){return TD(e,t,null,n,0,this.boxer.rig.metrics.ankleHeight)}chooseLanding(e){let t=this.boxer.rig.metrics.ankleHeight,n=1/0;for(let r=0;r=n||(n=u.length()+o,this.landProne=s,this.landSide=c,this.landShift.copy(u))}}ropeShift(e,t){let n=this.scratchQ.setFromAxisAngle(KD,this.yaw);mD.set(e.hipsPitch+e.spinePitch*.7,e.hipsYaw,e.hipsRoll,`YXZ`),PD[0].set(0,MD,0).applyEuler(mD).add(e.hips),PD[1].set(.2,ND,0).applyEuler(mD).add(e.hips),PD[2].set(-.2,ND,0).applyEuler(mD).add(e.hips),PD[3].copy(e.leadHand),PD[4].copy(e.rearHand),PD[5].copy(e.leadFoot).z+=e.leadHeel>0?.25:.19,PD[6].copy(e.rearFoot).z+=e.rearHeel>0?.25:.19,PD[7].copy(e.hips);let r=1/0,i=-1/0,a=1/0,o=-1/0;for(let e=0;e0==t>0,c=s?n:r,l=s?r:n;i.pole.lerp(G.set(.15*t,.35,1),e).normalize(),a.pole.lerp(G.set(-.1*t,-1,.3),e).normalize(),i.toe.lerp(G.set(.15*t,0,1),e).normalize(),a.toe.lerp(G.set(0,-.35,-1),e).normalize(),c.palm.lerp(G.set(-o*.75,0,-.65),e).normalize(),c.knuckles.lerp(G.set(-o*.35,.25,.9),e).normalize(),c.pole.lerp(G.set(o*.9,-.35,-.25),e).normalize(),l.palm.lerp(G.set(0,-1,.1),e).normalize(),l.knuckles.lerp(G.set(.2*t,-.2,1),e).normalize(),l.pole.lerp(G.set(t*.7,.1,-.7),e).normalize()}writeDown(e,t,n,r,i,a,o,s){let c=this.torso,l=1-s;this.downStand=s,c.hips.copy(e.hips),c.hipsYaw=e.hipsYaw,c.hipsPitch=e.hipsPitch,c.hipsRoll=e.hipsRoll,c.shouldersYaw=e.shouldersYaw,c.spinePitch=e.spinePitch,c.spineRoll=c.spineRoll*s+e.spineRoll,c.headPitch=e.headPitch,c.headYaw=c.headYaw*s+e.turn,c.headRoll=c.headRoll*s+e.headRoll,c.headOffset.multiplyScalar(s),c.headOffset.z-=o,n.position.copy(e.leadHand),r.position.copy(e.rearHand),_D(n,t,e.palmsDown,l),_D(r,-t,e.palmsDown,l),i.position.copy(e.leadFoot),a.position.copy(e.rearFoot),i.toe.lerp(oD.set(.2*t,0,1).normalize(),l).normalize(),a.toe.lerp(oD.set(-.2*t,0,1).normalize(),l).normalize(),i.heel=e.leadHeel,a.heel=e.rearHeel;let u=oD.set(0,0,1).applyEuler(mD.set(e.hipsPitch,e.hipsYaw,e.hipsRoll,`YXZ`));if(i.pole.lerp(u,l),a.pole.lerp(u,l),e.ownJoints>0){let t=e.ownJoints*l;OD(i.pole,e.leadKnee,t),OD(a.pole,e.rearKnee,t),OD(n.pole,e.leadElbow,t),OD(r.pole,e.rearElbow,t),OD(n.knuckles,e.leadKnuckles,t),OD(n.palm,e.leadPalm,t),OD(r.knuckles,e.rearKnuckles,t),OD(r.palm,e.rearPalm,t)}}calmInjuries(){this.armLimp.fill(0),this.armSnap.fill(0),this.kneeGive.fill(0),this.lostLean=0,this.cover=0,this.hunch=0,this.curl=0,this.faint=0,this.retching=0,this.daze=0,this.stepPace.fill(1),this.stepLift.fill(1),this.stepSlack=1,this.hurt=!1,this.dropDangles()}dropDangles(){for(let e=0;e<2;e+=1)this.armDangle[e].live=!1,this.forearmDangle[e].live=!1}stepInjuries(e){this.retchTime=Math.max(0,this.retchTime-e);let t=this.posedInjuries>1||this.faintTarget>0||this.retchTime>0||this.dazed;if(!t&&!this.hurt)return;let n=this.downState===`up`,r=0;for(let t=0;t<2;t+=1){let n=this.armCarry[t];this.armLimp[t]=tT(this.armLimp[t],+(n===`dead`||n===`gone`),wE,e),this.armSnap[t]=tT(this.armSnap[t],+(n===`snapped`),wE,e),this.kneeGive[t]=tT(this.kneeGive[t],+!!this.kneeBlown[t],8,e),r=Math.max(r,this.armLimp[t],this.armSnap[t],this.kneeGive[t])}let i=this.armCarry[0],a=this.armCarry[1],o=i===`whole`||i===`stump`,s=a===`whole`||a===`stump`;this.cover=tT(this.cover,o===s?0:o?1:-1,6,e),this.lostLean=tT(this.lostLean,(i===`gone`)-+(a===`gone`),4,e),this.hunch=tT(this.hunch,+!!this.gutted,5,e),this.curl=tT(this.curl,+!!this.liver,4,e),this.faint=tT(this.faint,this.faintTarget,2.5,e);let c=this.retchTime>0&&n;this.retching=tT(this.retching,+!!c,c?12:5,e);let l=this.dazed&&n;if(this.daze=tT(this.daze,+!!l,l?8:5,e),this.dazeTime=this.daze>.001?this.dazeTime+e:0,r=Math.max(r,Math.abs(this.cover),Math.abs(this.lostLean),this.hunch,this.curl,this.faint,this.retching,this.daze),!t&&r<.001){this.calmInjuries();return}this.hurt=!0;let u=this.hunch,d=this.faint,f=this.daze;this.stepSlack=(1-.3*u)*(1-.55*f);for(let e=0;e<2;e+=1){let t=this.kneeGive[e],n=this.kneeGive[1-e];this.stepPace[e]=(1-.4*n)*(1+.25*t)*(1-.25*u)*(1+.15*d)*(1+.2*f),this.stepLift[e]=(1-.5*t)*(1-.6*u)*(1-.75*d)*(1-.4*f)}}stepDeath(e){if(!(!this.dead||this.throe>=CE.length))for(this.deathAge+=e;this.throe=CE[this.throe].at;){let e=CE[this.throe];this.ragdoll?.twitch(e.part,(this.throe+this.throeSide)%2,e.speed),this.throe+=1}}stumble(e,t,n){let r=this.dazeTime;t.add(this.scratchD.set(Math.sin(r*1.7+e*2.1)*.07,0,Math.sin(r*1.25+e*1.3)*.06).multiplyScalar(this.daze).applyAxisAngle(KD,n))}applyHurtStance(e,t,n,r,i){let a=this.torso,o=0,s=0,c=0,l=this.hunch;l>.001&&(s+=.3*l,o+=.045*l,a.hipsPitch+=.06*l,a.headPitch+=.12*l);let u=this.curl;u>.001&&(s+=.1*u,a.spineRoll+=.21*u,a.headRoll+=.08*u,c+=.02*u,this.hand.R.position.y-=.08*u);let d=this.lostLean;Math.abs(d)>.001&&(a.spineRoll+=.15*d,c+=.025*d,a.headRoll-=.05*d);let f=this.faint;if(f>.001){let t=Math.sin(e*1.15),i=Math.sin(e*.83+1.3);a.hips.x+=t*.09*f,a.hips.z+=i*.06*f,a.hipsRoll+=t*.05*f,a.spineRoll+=Math.sin(e*1.15-.7)*.2*f,s+=(.17+i*.06)*f,o+=.03*f+(.06+.04*(.5+.5*Math.sin(e*2.6)))*f*f,a.headPitch+=(.4+Math.sin(e*.9+.4)*.14)*f,a.headRoll+=Math.sin(e*.7)*.36*f,a.headYaw+=Math.sin(e*.53+2)*.18*f,n.position.y-=.32*f,r.position.y-=.27*f,n.position.z-=.07*f}for(let e=0;e<2;e+=1){let t=this.kneeGive[e];if(t<=.001)continue;let n=e===0?1:-1,r=e===0?this.foot.L:this.foot.R,i=e===0?this.foot.R:this.foot.L,s=this.feet[1-e],c=s.stepping?Math.sin(s.progress*Math.PI)*t:0,l=t-c;a.hips.x+=(i.position.x-a.hips.x)*.25*l,a.hips.z+=(i.position.z-a.hips.z)*.18*l,o+=.085*c+.01*l,a.hipsRoll-=n*.16*c,a.spineRoll+=n*.13*c,r.heel+=.3*l,r.pole.x-=n*(.35*t+.9*c),r.pole.normalize()}if(a.hips.x+=Math.cos(a.hipsYaw)*c,a.hips.z-=Math.sin(a.hipsYaw)*c,o!==0||s!==0){a.hips.y-=o,a.spinePitch+=s;let e=o+s*KE,t=s*GE;i.y-=e,i.z+=t,n.position.y-=e,n.position.z+=t,r.position.y-=e,r.position.z+=t}let p=this.cover;if(Math.abs(p)>.001){let e=p>0?this.hand.L:this.hand.R,n=Math.abs(p);e.position.x+=(qE*t-e.position.x)*.7*n,e.position.y+=.03*n,e.position.z+=.03*n}}applyHurtActs(e,t,n,r){let i=this.torso,a=R.lerp,o=+(t>0),s=this.armCarry[o]===`whole`?o:this.armCarry[1-o]===`whole`?1-o:-1,c=this.retching*(1-.7*this.punchCommit);if(c>.001){let t=Math.max(0,Math.sin(e*10.5))**2;i.hips.y=a(i.hips.y,mS.hipsHeight-.13-t*.02,c),i.hips.z=a(i.hips.z,-.08,c),i.hipsPitch=a(i.hipsPitch,.36,c),i.spinePitch=a(i.spinePitch,.78+t*.12,c),i.spineRoll=a(i.spineRoll,0,c),i.headPitch=a(i.headPitch,1.3+t*.15,c),i.headYaw=a(i.headYaw,0,c),i.headRoll=a(i.headRoll,0,c),i.headOffset.multiplyScalar(1-c);let n=s<0?o:1-s;if(this.armCarry[n]===`whole`){let e=n===0?1:-1,t=n===0?this.hand.L:this.hand.R;t.position.lerp(G.set(e*.19,.62,n===o?-.02:.15),c),t.pole.lerp(G.set(e*.9,.1,-.4),c).normalize(),t.knuckles.lerp(G.set(-e*.2,-.7,.6),c).normalize(),t.palm.lerp(G.set(0,-.6,-.8),c).normalize()}}let l=Math.max(Math.abs(this.slip),this.weave,this.pull),u=rT(1-this.guardHigh-this.guardLow,0,1)*(1-this.punchCommit)*(1-l)*(1-this.clinchWeight),d=this.punchActive&&s===(this.punchHand===`left`?0:1)?rT(this.punchReach*4,0,1):0,f=Math.max(c,this.hunch*u)*(1-d);f>.001&&s>=0&&this.clutchBelly(s,f);let p=this.daze;if(p>.001){let e=this.dazeTime,o=$x(.7,1.6,e),s=Math.sin(e*2.2),c=Math.sin(e*1.45+.9),l=mS.bladeYaw*t;i.hips.x=a(i.hips.x,s*.06,p),i.hips.z=a(i.hips.z,c*.045,p),i.hips.y=a(i.hips.y,mS.hipsHeight-.08-Math.sin(e*4.4+1)*.02,p),i.hipsYaw=a(i.hipsYaw,l*.8,p),i.hipsPitch=a(i.hipsPitch,.04,p),i.hipsRoll=a(i.hipsRoll,s*.05,p),i.shouldersYaw=a(i.shouldersYaw,l*.65,p),i.spinePitch=a(i.spinePitch,.24+c*.07,p),i.spineRoll=a(i.spineRoll,Math.sin(e*2.2-.9)*.13,p),i.headYaw=a(i.headYaw,o*Math.sin(e*1.1+2)*.3,p),i.headPitch=a(i.headPitch,.95-o*(.28+Math.sin(e*1.3)*.25),p),i.headRoll=a(i.headRoll,o*Math.sin(e*1.9)*.42,p),i.headOffset.multiplyScalar(1-p),n.heel=a(n.heel,0,p),r.heel=a(r.heel,0,p)}}clutchBelly(e,t){let n=this.torso,r=e===0?this.hand.L:this.hand.R,i=e===0?1:-1,a=n.hipsYaw+(n.shouldersYaw-n.hipsYaw)*.25,o=n.hipsPitch+n.spinePitch*.2;r.position.lerp(G.set(i*.05,.17,.19+o*.08).applyAxisAngle(KD,a).add(n.hips),t),r.knuckles.lerp(G.set(-i*.9,-.3,.2).applyAxisAngle(KD,a),t).normalize(),r.palm.lerp(G.set(-i*.1,.15,-1).applyAxisAngle(KD,a),t).normalize(),r.pole.lerp(G.set(i*.85,-.35,-.4).applyAxisAngle(KD,a),t).normalize()}dangleArms(e){let t=this.daze,n=this.boxer.rig,r=n.bones;Gx(r.hips,this.trunkLow),Gx(r.upperChest,this.trunkHigh),this.trunkLow.addScaledVector(JE.subVectors(this.trunkLow,this.trunkHigh).normalize(),HE);let i=this.ragdoll?.handingOver===!0;for(let a=0;a<2;a+=1){let o=Math.max(this.armLimp[a],t),s=this.armSnap[a],c=this.armDangle[a],l=this.forearmDangle[a];if(o<=.001&&(c.live=!1),s<=.001&&(l.live=!1),o<=.001&&s<=.001)continue;let u=a===0,d=u?1:-1,f=u?r.shoulderL:r.shoulderR,p=u?r.elbowL:r.elbowR,m=u?r.gloveL:r.gloveR,h=u?n.metrics.armL:n.metrics.armR;if(o>.001){let t=Gx(m,YE);if(Kx(m,iD),this.armCarry[a]===`dead`){let e=Gx(f,XE);e.y-=TE*this.armLimp[a],n.aimAt(u?r.clavicleL:r.clavicleR,e,`z`),f.updateWorldMatrix(!1,!1)}let s=Gx(f,XE),l=(h.upper+h.lower)*EE;if(!c.live){let e=o>BE&&!i;xE(c,e?JE.set(s.x,s.y-l,s.z):t,s),e&&this.holdDangle(c.at,s,l,!1,null)}let g=this.punchActive&&this.punchHand===`left`===u?this.punchReach:0;this.swing(c,s,l,!1,e,DE,OE,t,g*AE);let _=ZE.set(d*.3,.15+3*rT(1-s.y/WE,0,1),-1).lerp(u?this.hand.L.pole:this.hand.R.pole,1-o).applyAxisAngle(KD,this.yaw);n.solveLimb(f,p,h,t.lerp(c.at,o),_,`z`,u?1:-1,.012),m.updateWorldMatrix(!1,!1),qx(QE.subVectors(Gx(m,YE),Gx(p,JE)).normalize(),ZE.set(-d,0,.2).applyAxisAngle(KD,this.yaw),`z`,aD),n.setWorldRotation(m,iD.slerp(aD,o))}if(s>.001){let t=Gx(p,XE),r=Gx(m,YE);Kx(m,iD);let a=Math.max(0,-(t.y-Gx(f,JE).y)/h.upper),o=rT((t.y-UE)/h.lower,0,1),c=rD.set(d*(jE+ME*a*a),-o,0).applyAxisAngle(KD,this.yaw).normalize();l.live||(xE(l,s>BE&&!i?JE.set(t.x,t.y-h.lower,t.z):r,t),this.holdDangle(l.at,t,h.lower,!0,c)),this.swing(l,t,h.lower,!0,e,DE,kE,null,0,c);let u=QE.subVectors(r,t).lerp(JE.subVectors(l.at,t),s).normalize(),g=ZE.setFromMatrixColumn(p.matrixWorld,2).lerp(JE.setFromMatrixColumn(p.matrixWorld,0).multiplyScalar(d),s);n.setWorldFrame(p,u,g,`z`),m.updateWorldMatrix(!1,!1),qx(JE.copy(u).addScaledVector(cD,.9).normalize(),ZE.set(-d,.2,-.4).applyAxisAngle(KD,this.yaw),`z`,aD),n.setWorldRotation(m,iD.slerp(aD,s))}}}swing(e,t,n,r,i,a,o,s,c,l=null){let u=e.at,d=e.velocity;(e.carried||t.distanceToSquared(e.pivot)>zE*zE)&&(u.add(t).sub(e.pivot),d.set(0,0,0),e.pivot.copy(t),e.carried=!1);let f=i>0?Math.min(LE,Math.ceil(i/IE)):0,p=f>0?i/f:0;for(let i=1;i<=f;i+=1)$E.copy(u),d.addScaledVector(a,p),s!==null&&c>0&&d.addScaledVector(eD.subVectors(s,u),c*p),d.multiplyScalar(Math.exp(-o*p)),u.addScaledVector(d,p),this.holdDangle(u,eD.lerpVectors(e.pivot,t,i/f),n,r,l),d.subVectors(u,$E).divideScalar(p).clampLength(0,RE);f===0&&this.holdDangle(u,t,n,r,l),e.pivot.copy(t)}holdDangle(e,t,n,r,i){let a=this.trunkLow,o=tD.subVectors(this.trunkHigh,a);for(let s=0;s<2;s+=1){let s=rT(nD.subVectors(e,a).dot(o)/Math.max(1e-6,o.lengthSq()),0,1),c=nD.addScaledVector(o,-s).length();c1e-4&&e.addScaledVector(nD,(VE-c)/c),e.y=Math.max(e.y,UE);let l=nD.subVectors(e,t),u=l.length();if(u<1e-6?e.set(t.x,t.y-n,t.z):(r||u>n)&&e.copy(t).addScaledVector(l,n/u),i===null)continue;l.subVectors(e,t);let d=l.dot(i);if(d>=n*PE)continue;let f=l.addScaledVector(i,-d).length();e.copy(t).addScaledVector(i,n*(f>1e-6?PE:1)),f>1e-6&&e.addScaledVector(l,n*FE/f)}}applyDislocation(){if(this.dislocation!==`jaw`)return;let e=this.boxer.bone(`head`);e!==null&&(e.quaternion.multiply(vE),e.updateWorldMatrix(!1,!0))}dispose(){this.stool.dispose(),this.enswell.dispose(),this.bottle.dispose(),this.boxer.dispose()}},LT=.44,RT=.2,zT=.75,BT=.94,VT=.836,HT=.12,UT=1.72,WT=.2,GT=1.26,KT=48,qT=14,JT=1.34,YT=80,XT=56,ZT=24,QT=4,$T=1.5,eE=60,tE=4,nE=.15,rE=.8,iE=1.3,aE=.35,oE=.93,sE=500,cE=900,lE=.15,uE=.05,dE=.07,fE=.14,pE=.05,mE=.2,hE=.04,gE=.36;function _E(e){let t=7;for(let n=0;nMath.atan2(Math.sin(e),Math.cos(e)),DD=new B;function OD(e,t,n){if(n<=0)return e;e.normalize();let r=e.angleTo(t);return r<1e-4?e:(DD.crossVectors(e,t),DD.lengthSq()<1e-8&&DD.crossVectors(e,Math.abs(e.y)<.9?KD:sD),e.applyAxisAngle(DD.normalize(),r*Math.min(1,n)))}function kD(e,t,n,r){let i=t+ED(e.x-t),a=n+ED(e.y-n),o=r+ED(e.z-r),s=t+ED(Math.PI-e.x-t),c=n+ED(e.y+Math.PI-n),l=r+ED(e.z+Math.PI-r);return Math.abs(i-t)+Math.abs(a-n)+Math.abs(o-r)<=Math.abs(s-t)+Math.abs(c-n)+Math.abs(l-r)?e.set(i,a,o,`YXZ`):e.set(s,c,l,`YXZ`)}function AD(e,t){return e.hips.add(t),e.leadHand.add(t),e.rearHand.add(t),e.leadFoot.add(t),e.rearFoot.add(t),e}var jD=dv*.72-.05,MD=.78,ND=.5,PD=Array.from({length:8},()=>new B),FD=[.17,.22,.22,.13,.13,.12,.12,.2],ID=[[!1,1,0],[!1,0,.15],[!1,-1,.3],[!0,1,.4],[!0,0,.5],[!0,-1,.6]];function LD(e,t){return e<-jD&&t>jD?-(e+t)/2:e<-jD?-jD-e:t>jD?jD-t:0}function RD(e,t){return zD(e,t,t,0)}function zD(e,t,n,r){let i=R.lerp;return e.hips.copy(t.hips).lerp(n.hips,r),e.hipsYaw=i(t.hipsYaw,n.hipsYaw,r),e.hipsPitch=i(t.hipsPitch,n.hipsPitch,r),e.hipsRoll=i(t.hipsRoll,n.hipsRoll,r),e.shouldersYaw=i(t.shouldersYaw,n.shouldersYaw,r),e.spinePitch=i(t.spinePitch,n.spinePitch,r),e.spineRoll=i(t.spineRoll,n.spineRoll,r),e.headPitch=i(t.headPitch,n.headPitch,r),e.headRoll=i(t.headRoll,n.headRoll,r),e.leadHand.copy(t.leadHand).lerp(n.leadHand,r),e.rearHand.copy(t.rearHand).lerp(n.rearHand,r),e.leadFoot.copy(t.leadFoot).lerp(n.leadFoot,r),e.rearFoot.copy(t.rearFoot).lerp(n.rearFoot,r),e.leadHeel=i(t.leadHeel,n.leadHeel,r),e.rearHeel=i(t.rearHeel,n.rearHeel,r),e.palmsDown=i(t.palmsDown,n.palmsDown,r),e.turn=i(t.turn,n.turn,r),OD(e.leadKnee.copy(t.leadKnee),n.leadKnee,r),OD(e.rearKnee.copy(t.rearKnee),n.rearKnee,r),OD(e.leadElbow.copy(t.leadElbow),n.leadElbow,r),OD(e.rearElbow.copy(t.rearElbow),n.rearElbow,r),OD(e.leadKnuckles.copy(t.leadKnuckles),n.leadKnuckles,r),OD(e.leadPalm.copy(t.leadPalm),n.leadPalm,r),OD(e.rearKnuckles.copy(t.rearKnuckles),n.rearKnuckles,r),OD(e.rearPalm.copy(t.rearPalm),n.rearPalm,r),e.ownJoints=i(t.ownJoints,n.ownJoints,r),e}var BD=3;function VD(e,t,n){if(n===null)return null;let r=t+n;return e===null||Math.abs(r-e)>BD?r:e}function HD(e){return(1-$x(XT,YT,e))*$x(QT,ZT,e)}function UD(){let e=new fc;e.name=`enswell`,e.visible=!1;let t=new qu(3.2,3.2,.9,20),n=new qu(.8,.8,6,10),r=new Hd({color:13159634,roughness:.3,metalness:.9}),i=new H(t,r);i.rotation.x=Math.PI/2,i.position.set(0,9.5,3.4),e.add(i);let a=new H(n,r);return a.position.set(0,5.5,2.4),e.add(a),{group:e,dispose:()=>{t.dispose(),n.dispose(),r.dispose()}}}function WD(){let e=new fc;e.name=`bottle`,e.visible=!1;let t=new qu(3.3,3.3,15,18),n=new qu(1.3,3.3,3,18),r=new qu(.7,1.1,3.2,10),i=new Hd({color:14280430,roughness:.32,metalness:0}),a=new Hd({color:1920728,roughness:.5,metalness:0}),o=new H(t,i);o.position.set(0,9,2.6);let s=new H(n,i);s.position.set(0,18,2.6);let c=new H(r,a);return c.position.set(0,21,2.6),e.add(o,s,c),{group:e,dispose:()=>{t.dispose(),n.dispose(),r.dispose(),i.dispose(),a.dispose()}}}function GD(){let e=new fc;e.name=`stool`,e.visible=!1;let t=new qu(.17,.17,.035,18),n=new qu(.012,.014,.42,8),r=new Hd({color:13222581,roughness:.85}),i=new Hd({color:2764083,roughness:.45,metalness:.6}),a=new H(t,r);a.position.y=.4225,a.castShadow=!0,e.add(a);for(let t=0;t<4;t+=1){let r=Math.PI/4+t*Math.PI/2,a=new H(n,i);a.position.set(Math.cos(r)*.13,.42/2,Math.sin(r)*.13),a.rotation.set(-Math.sin(r)*.12,0,Math.cos(r)*.12),a.castShadow=!0,e.add(a)}return{group:e,dispose:()=>{t.dispose(),n.dispose(),r.dispose(),i.dispose()}}}var KD=new B(0,1,0),qD=6,JD=3,YD=1.5,XD=2.5,ZD=1.5,QD=.55,$D=2.1,eO=.42,tO=.22,nO=.08,rO=.15,iO=.42,aO=.12,oO=.5,sO=.5,cO=new Set([`hit`,`counter_hit`,`block`,`perfect_block`,`referee_hit`]),lO=new Set([`slip_left`,`slip_right`,`weave`,`pull`]),uO=40,dO=y/a,fO=.12,pO=30,mO=2;function hO(e,t,n){if(e0;case`forearm_left`:return t===`glove_left`||o&&l_(r,i,a,1)>0;case`forearm_right`:return t===`glove_right`||o&&l_(r,i,a,-1)>0;case`arm_left`:return t===`glove_left`||o&&u_(r,i,a,1)>0;case`arm_right`:return t===`glove_right`||o&&u_(r,i,a,-1)>0;case`leg_left`:return r>=0&&(t===`shoes`||o&&i<60);case`leg_right`:return r<0&&(t===`shoes`||o&&i<60);case`upper_body`:return t===`head`||t===`glove_left`||t===`glove_right`||o&&d_(r,i,a)>0;case`torso`:return t===`pants`||o&&i>=60&&u_(r,i,a,1)<=0&&u_(r,i,a,-1)<=0}}var vO={head:`BoxerHead`,body:`BoxerBody`,glove_left:`BoxerGloveLeft`,glove_right:`BoxerGloveRight`,pants:`BoxerPants`,shoes:`BoxerShoes`},yO=new WeakMap;function bO(e,t){let n=yO.get(e);if(n===void 0){n={};let t=new Map(Object.entries(vO).map(([e,t])=>[t,e]));e.root.traverse(e=>{let r=e instanceof $l?t.get(e.name):void 0;r!==void 0&&(n[r]=e)}),yO.set(e,n)}return n[t]??null}var xO=[`left`,`right`],SO=new B(0,1,0),CO=new B(0,-1,0),wO=15129792,TO=6032400,EO=9313310,DO=4982537,OO=14200392,kO=2228997,AO=14263970,jO=8270912,MO=11618383,NO=15524550,PO=12866653,FO=13602176,IO=9384504,LO=new V,RO=new V,zO=new B,BO=R.smoothstep;function VO(e,t){e.deleteAttribute(`uv`);let n=e.getAttribute(`position`),r=new Float32Array(n.count*3);for(let e=0;eo/2-.001){let t=Math.atan2(zO.z,zO.x);zO.y+=i<1e-4?-n*.8:n*(.5*Math.sin(t*3+e[1])+.35*Math.sin(t*5+e[2]))}c.setXYZ(t,zO.x,zO.y+o/2,zO.z*r)}return s.computeVertexNormals(),VO(s,(t,r)=>{let i=1-BO(t.y/o,.15,.42)*(.85+.15*Math.sin(Math.atan2(t.z,t.x)*4+e[0]));r.setHex(wO).lerp(RO.setHex(DO),i),Math.hypot(t.x,t.z)o*.5&&r.setHex(TO)}),s.applyQuaternion(new ms().setFromUnitVectors(SO,a.normalize())),s.translate(i.x,i.y,i.z),s}function WO(e,t,n,r=!1){return VO(new jd(new ad(e.map(e=>new B(...e)),r),e.length*5,t,7,r),n)}var GO=[0,123.6,-3.2],KO=[4.5,4,5];function qO(){let e=new Od(1,40,24,0,Math.PI*2,0,Math.PI*.6),t=e.getAttribute(`position`),n=new Float32Array(t.count);for(let e=0;e{let i=n[r];r+=1,t.setHex(jO).lerp(RO.setHex(AO),BO(i,-.5,.45)),(i<-1||Math.sin(e.x*.9+e.z*1.3)>.72)&&t.lerp(RO.setHex(EO),.7)})}function JO(){let e=[[1,.2,wO],[.9,0,wO],[.82,0,TO],[.74,0,wO],[.66,-.9,DO]],t=[],n=[],r=[];for(let[i,[a,o,s]]of e.entries())for(let e=0;e<32;e+=1){let c=e/32*Math.PI*2;if(t.push(Math.cos(c)*5.6*a,124+o,-3.3+Math.sin(c)*6.4*a),LO.setHex(s).multiplyScalar(.85+.15*Math.sin(c*11+i)),n.push(LO.r,LO.g,LO.b),i===0)continue;let l=(e+1)%32;r.push((i-1)*32+e,i*32+e,(i-1)*32+l,(i-1)*32+l,i*32+e,i*32+l)}let i=new hl;return i.setAttribute(`position`,new rl(t,3)),i.setAttribute(`color`,new rl(n,3)),i.setIndex(r),i.computeVertexNormals(),i}var YO=[0,112.9,-.4],XO=9,ZO=new B(0,-.93,.37).normalize(),QO=.95;function $O(){let e=new Gu(1.5,6,6,16,8),t=e.getAttribute(`position`);for(let e=0;e0?.5*(1-BO(r,0,.45)):0,a=.5*Math.sin(n*5)*(1-n);t.setXYZ(e,zO.x*R.lerp(.9,1.1,Math.sin(n*Math.PI))+a*.4,zO.y-XO/2,(zO.z-i)*.3+.35*r*r+1.3*n*n)}return e.computeVertexNormals(),VO(e,(e,t)=>{let n=-e.y/XO,r=Math.sin(e.y*2.6+e.x*2.1)*Math.sin(e.x*3.3-e.y*1.2);t.setHex(PO).multiplyScalar(.8+.2*r).lerp(RO.setHex(DO),.8*(1-BO(n,0,.35))),(r>.45||n>.88)&&t.lerp(RO.setHex(EO),.65)})}function ek(){let e=[],t=new Od(1,18,12,Math.PI,Math.PI);t.scale(3.3,2.5,3.2),t.translate(0,113.3,-.5),e.push(VO(t,(e,t)=>{t.setHex(kO).lerp(RO.setHex(EO),BO(Math.hypot(e.x,e.y-112.6,(e.z+3)*.7),.7,2.6))}));let n=new Ku(1,20);n.rotateX(Math.PI/2),n.scale(3.3,1,3.9),n.translate(0,115.25,.5),e.push(VO(n,(e,t)=>{t.setHex(IO).multiplyScalar(.75+.25*Math.sin(e.z*5)).lerp(RO.setHex(kO),1-BO(e.z,-3,.5))}));let r=[];for(let t=0;t<14;t+=1){let n=-1.75+t/13*3.5,i=1-Math.abs(n)/1.75,a=t===4||t===9?1.35:R.lerp(.85,1.2,i),o=new qu(.3,t===4||t===9?.16:.37,a,6);o.scale(1,1,R.lerp(1.15,.55,i)),o.rotateY(n);let s=Math.sin(n)*2.75,c=.9+Math.cos(n)*3.1;o.translate(s,114.9-a/2,c),e.push(VO(o,(e,t)=>{t.setHex(NO).lerp(RO.setHex(EO),.8*BO(e.y,114.3,114.9))})),r.push([s,114.95,c])}return e.push(WO(r,.45,MO)),HO(e)}function tk(e){return HO([UO([e*29.4,103.8,-4.2],[e*32.9,104.1,-4],.85),UO([e*29.4,102,-6.2],[e*32.3,101.8,-6.5],.7)])}function nk(e){let t=new Od(1,12,9);return t.scale(.9,1.7,1.5),t.translate(e*13.3,103.4,-5.5),VO(t,(e,t)=>{t.setHex(15327954).lerp(RO.setHex(EO),Math.sin(e.y*3.1+e.z*2.3)>.4?.75:.1)})}function rk(){return HO([VO(new qu(2,2.1,1.8,10).translate(0,80.4,-5.4),wO),VO(new qu(1.8,1.8,.6,10).translate(0,81.6,-5.4),12563866),UO([0,81.9,-5.4],[.4,85.4,-5.8],1.9),WO([[.2,84.6,-5.6],[.3,86.6,-5.8],[.9,87.8,-5.2]],.55,15255984),WO([[-6.5,81.6,.5],[-3,82.6,3.6],[1.5,81.8,4.4],[6,82.8,2],[7,81.6,-2],[3.5,82.9,-1],[-1,81.7,.6],[-5,82.9,-2.6],[-7.2,81.5,-4]],1.25,FO,!0),WO([[4.5,83.6,1.6],[1,84.4,2.4],[-3,83.5,.6],[-2,84.2,-2.6],[2.5,83.6,-2.2]],1.05,12548720,!0),VO(new Od(1,10,7).scale(3.2,1.6,2.6).translate(-6,82.2,1.5),4854808)])}function ik(e){return HO(C_.map((t,n)=>{let r=new B(-t[0],0,-2-t[2]).normalize();return UO([e*(t[0]+r.x*3),t[1]-.3,t[2]+r.z*3],[e*(t[0]-r.x*1.3),t[1]+.7-.3*n,t[2]-r.z*1.3+.7],.75,.5)}))}function ak(){let e=[];for(let t=0;t<5;t+=1){let n=.5+t*1.26,r=Math.cos(n),i=Math.sin(n);e.push(UO([r*5.8,99.5+i*5.8,3.9],[r*2.9,99.5+i*2.9,2.4],.7,.5)),e.push(UO([i*5.6,99.5-r*5.6,-9.6],[i*4.3,99.5-r*4.3,-12.8],.7,.5))}return HO(e)}var ok=new B,sk=new B,ck=new B,lk=new B,uk=new WeakMap;function dk(e,t,n){let r=e.getAttribute(`position`),i=e.getAttribute(`skinIndex`),a=e.getAttribute(`skinWeight`),o=new Map,s=new B;for(let e of t)o.has(e)||(o.set(e,o.size),s.add(zO.fromBufferAttribute(r,e)));s.multiplyScalar(1/o.size);let c=n.layers.length,l=[],u=[],d=[],f=[],p=new Map;for(let e of o.keys()){for(let[t,[o,c]]of n.layers.entries()){n.place(zO.fromBufferAttribute(r,e),s,o,ok),l.push(ok.x,ok.y,ok.z),LO.setHex(c).multiplyScalar(.8+.4*Math.abs(Math.sin(e*12.9898+t*4.1))),u.push(LO.r,LO.g,LO.b);for(let t=0;t<4;t+=1)d.push(i.getComponent(e,t)),f.push(a.getComponent(e,t))}for(let t=0;t<4;t+=1)p.set(i.getComponent(e,t),(p.get(i.getComponent(e,t))??0)+a.getComponent(e,t))}let m=o.size*c;if(n.middle!==null){n.place(s,s,1,ok),l.push(ok.x,ok.y,ok.z),LO.setHex(n.middle),u.push(LO.r,LO.g,LO.b);let e=[...p].sort((e,t)=>t[1]-e[1]).slice(0,4),t=e.reduce((e,[,t])=>e+t,0);for(let n=0;n<4;n+=1)d.push(e[n]?.[0]??0),f.push((e[n]?.[1]??0)/t)}let h=[],g=(e,t,r)=>{ok.fromArray(l,e*3),sk.fromArray(l,t*3),ck.fromArray(l,r*3),n.facing(zO.copy(ok).add(sk).add(ck).multiplyScalar(1/3),s,lk);let i=sk.sub(ok).cross(ck.sub(ok)).dot(lk)>=0;h.push(e,i?t:r,i?r:t)};for(let e=0;evoid a.copy(n).lerp(r,i).addScaledVector(e,-t*i),facing:(t,n,r)=>void r.copy(e),middle:kO}}var pk={layers:[[0,DO],[.4,DO],[1,kO]],place:(e,t,n,r)=>void r.set(R.lerp(e.x,t.x,.22*n),R.lerp(e.y,t.y,.22*n),R.lerp(e.z,t.z-Math.sign(e.z-t.z)*.6,n)),facing:(e,t,n)=>void n.set(t.x-e.x,t.y-e.y,0),middle:null},mk={nose:{bone:`head`,mesh:`head`,at:[0,117,5.3],axis:[0,-.3,1]},mouth:{bone:`head`,mesh:`head`,at:[0,114.3,4.6],axis:[0,-.35,1]},eye_left:{bone:`head`,mesh:`head`,at:j_[0],axis:[.2,0,1]},eye_right:{bone:`head`,mesh:`head`,at:j_[1],axis:[-.2,0,1]},ear_left:{bone:`head`,mesh:`head`,at:S_,axis:[1,-.2,0]},ear_right:{bone:`head`,mesh:`head`,at:[-S_[0],S_[1],S_[2]],axis:[-1,-.2,0]},skull:{bone:`head`,mesh:`head`,at:[0,127.5,-3],axis:[0,1,0]},neck:{bone:`neck`,mesh:`body`,at:[0,109,-2],axis:[0,1,0]},shoulder_left:{bone:`clavicleL`,mesh:`body`,at:[15,103.5,-5.5],axis:[1,0,0]},shoulder_right:{bone:`clavicleR`,mesh:`body`,at:[-15,103.5,-5.5],axis:[-1,0,0]},elbow_left:{bone:`shoulderL`,mesh:`body`,at:[31,102.8,-5.2],axis:[1,0,0]},elbow_right:{bone:`shoulderR`,mesh:`body`,at:[-31,102.8,-5.2],axis:[-1,0,0]},chest:{bone:`chest`,mesh:`body`,at:[0,99.5,5.6],axis:[0,0,1]},ribs_left:{bone:`chest`,mesh:`body`,at:C_[1],axis:[1,0,.3]},ribs_right:{bone:`chest`,mesh:`body`,at:[-C_[1][0],C_[1][1],C_[1][2]],axis:[-1,0,.3]},liver:{bone:`chest`,mesh:`body`,at:[-8.5,89.5,4.4],axis:[-.5,0,1]},belly:{bone:`spine`,mesh:`body`,at:E_,axis:[0,-.2,1]},waist:{bone:`spine`,mesh:`body`,at:[0,81.5,-1],axis:[0,1,0]},crotch:{bone:`hips`,mesh:`body`,at:[0,72,2],axis:[0,-1,.15]},knee_left:{bone:`kneeL`,mesh:`body`,at:T_,axis:[1,0,.2]},knee_right:{bone:`kneeR`,mesh:`body`,at:[-T_[0],T_[1],T_[2]],axis:[-1,0,.2]}},hk=[`skull`,`maw`,`chest`,`waist`,...xO.flatMap(e=>[`fracture`,`ribs`,`knee`,`elbow`,`shoulder`].map(t=>`${t}_${e}`))],gk={left:{sign:1,bone:`L`,ear:`leftEar`,face:`leftFace`,cheek:`leftCheek`,eye:`leftEye`,arm:`leftArm`,shoulder:`leftShoulder`,elbow:`leftElbow`,ribs:`leftRibs`,knee:`leftKnee`,smear:`leftShoulderSmear`},right:{sign:-1,bone:`R`,ear:`rightEar`,face:`rightFace`,cheek:`rightCheek`,eye:`rightEye`,arm:`rightArm`,shoulder:`rightShoulder`,elbow:`rightElbow`,ribs:`rightRibs`,knee:`rightKnee`,smear:`rightShoulderSmear`}},_k=class{boxer;headRaises=[];bodyRaises=[];gloveGone={left:!1,right:!1};eyeOut={left:!1,right:!1};eyeShut={left:!1,right:!1};gloved;flesh;owned=[];tongueTip=new B;tongueVelocity=new B;root=new B;rest=new B;reach=new B;matrix=new Rs;fit=new Rs;upperGone=!1;headHidden=!1;injuries=0;blood=`full`;hole=!1;jawHung=!1;pieces=new Map;geometries=[];skull=null;skullMount=new Rs;brain=null;tongue=null;bodyShadow=null;standIns=null;tongueHung=!1;constructor(e){this.boxer=e,this.gloved={left:e.gloveMesh(`left`).visible,right:e.gloveMesh(`right`).visible},this.flesh=new Hd({vertexColors:!0,roughness:.3,metalness:0,side:2}),Zw(this.flesh)}apply(e,t){let n=0;for(let t=0;tc*3)&&(this.tongueHung=!0,l.copy(o).addScaledVector(s,c),u.set(0,0,0));let d=this.reach.copy(l);e>1e-4&&(u.y-=9.8*e,u.addScaledVector(zO.copy(o).addScaledVector(s,c).sub(l),60*e).multiplyScalar(Math.exp(-5*e)),d.addScaledVector(u,e)),d.sub(o).setLength(c),d.angleTo(s)>QO&&(zO.copy(d).addScaledVector(s,-d.dot(s)).setLength(Math.sin(QO)*c),d.copy(s).multiplyScalar(Math.cos(QO)*c).add(zO)),d.add(o),e>1e-4&&u.copy(d).sub(l).multiplyScalar(1/e),l.copy(d),r.quaternion.setFromUnitVectors(CO,zO.copy(l).sub(o).transformDirection(a.invert()))}compileStandIns(){if(this.standIns!==null)return this.standIns;let e=this.boxer;for(let e of hk)this.built(e);let t=[],n=[[e.headMesh,e.headInjury],[bO(e,`body`),e.bodyInjury]];for(let[e,r]of n)for(let n of[!1,!0]){let i=e===null?null:r.variant(n);if(e===null||i===null)continue;this.owned.push(i);let a=new $l(e.geometry,i);if(a.bind(e.skeleton,e.bindMatrix),a.frustumCulled=!1,a.castShadow=e.castShadow,n){let e=r.shadowVariant();this.owned.push(e),a.customDepthMaterial=e}t.push(a)}this.brain!==null&&t.push(new H(this.brain.geometry,this.flesh));let r=this.built(`waist`).find(e=>e instanceof $l);if(r!==void 0){let e=new $l(r.geometry,this.flesh);e.bind(r.skeleton,r.bindMatrix),e.frustumCulled=!1,t.push(e)}return this.standIns=t,t}clear(){this.upperGone=!1,this.hole=!1,this.injuries=0,this.show(),this.setPallor(0)}dispose(){this.clear();for(let e of this.standIns??[])e.removeFromParent();this.standIns=null;for(let e of this.pieces.values())for(let t of e)t.removeFromParent();for(let e of this.geometries)e.dispose();this.pieces.clear(),this.geometries.length=0,this.skull=this.brain=this.tongue=null,this.bodyShadow?.dispose(),this.bodyShadow=null;for(let e of this.owned)e.dispose();this.owned.length=0,this.flesh.dispose()}has(e){return!!(this.injuries&1<this.blood!==`off`&&this.has(e),o=r&&this.upperGone,s=this.isPartGone(`jaw`),c=r&&this.has(`skull_fractured`);t.setExplicit(r),n.setExplicit(r);let l=this.headRaises,u=this.bodyRaises;l.length=0,u.length=0;let d=(e,t,n,r=0,a=0)=>void e.push({site:t,bruise:n,blood:r*i,cut:a});if(t.setWound(`nose`,+!!a(`broken_nose`)),a(`broken_nose`)&&d(l,`nose`,1.1,1.4),a(`broken_jaw`)||a(`jaw_torn`)){let e=a(`jaw_torn`);d(l,`chin`,1.2),d(l,`leftJaw`,e?1.2:1),d(l,`rightJaw`,e?1.2:1),d(l,`mouth`,.7,e?1.4:.9,.7),d(u,`neckSmear`,0,e?1.4:.6)}a(`skull_fractured`)&&(d(l,`forehead`,1.1,1.4,+!r),d(u,`neckSmear`,0,1.1)),t.setGone(`jaw`,+!!s),t.setGone(`skull`,+!!c);let f=!1;for(let i of xO){let s=gk[i];t.setWound(s.ear,+!!a(`ear_${i}_torn`));let c=a(`face_${i}_flayed`);t.setWound(s.face,+!!c),c&&(d(l,s.cheek,.8,1.2),d(u,`neckSmear`,0,.9));let p=a(`eye_${i}_out`);p&&d(l,s.eye,1.1,+!r),this.eyeOut[i]&&!(p&&r)&&(f=!0),this.eyeOut[i]=p&&r,this.eyeShut[i]=p&&!r;let m=o?0:this.isPartGone(`arm_${i}`)?2:+!!this.isPartGone(`forearm_${i}`),h=!r&&a(`arm_${i}_torn`),g=!r&&a(`forearm_${i}_severed`);n.setGone(s.arm,m),n.setWound(s.shoulder,a(`shoulder_${i}_dislocated`)||h?1:0),n.setWound(s.elbow,a(`arm_${i}_broken`)||g?1:0),n.setWound(s.ribs,+!!a(`ribs_${i}_broken`)),n.setWound(s.knee,+!!a(`knee_${i}_blown`)),(m===2||h)&&d(u,s.smear,0,1.2),a(`ribs_${i}_broken`)&&d(u,s.ribs,1.2);let _=m>0||o;_?e.gloveMesh(i).visible=!1:this.gloveGone[i]&&(e.gloveMesh(i).visible=this.gloved[i]&&!e.isHandDismembered(i)),this.gloveGone[i]=_,this.piece(`fracture_${i}`,r&&!o&&m===0&&this.has(`arm_${i}_broken`)),this.piece(`ribs_${i}`,r&&!o&&this.has(`ribs_${i}_broken`)),this.piece(`knee_${i}`,r&&this.has(`knee_${i}_blown`)),this.piece(`elbow_${i}`,m===1),this.piece(`shoulder_${i}`,m===2)}f&&t.setEyeOut(this.eyeOut.left&&this.eyeOut.right?`both`:this.eyeOut.left?`left`:this.eyeOut.right?`right`:null),n.setWound(`liver`,+!!a(`liver_ruptured`)),n.setWound(`belly`,+!!a(`disemboweled`)),n.setGone(`waist`,+!!o),n.setGone(`chestHole`,r&&this.hole&&!o?1:0);let p=r&&this.has(`broken_jaw`)&&!s;this.jawHung&&!p&&t.setJaw(0),this.jawHung=p,o?e.headMesh.visible=!1:this.headHidden&&(e.headMesh.visible=!0),this.headHidden=o,this.piece(`skull`,c&&!o),this.piece(`maw`,s&&!o),this.piece(`chest`,r&&this.hole&&!o),this.piece(`waist`,o),c&&!o&&this.fitSkull();let m=bO(e,`body`);m!==null&&n.material!==null&&(n.open?m.customDepthMaterial=this.bodyShadow??=n.shadowMaterial():m.customDepthMaterial===this.bodyShadow&&(m.customDepthMaterial=void 0))}assert(){let e=this.boxer,t=e.headInjury,n=this.headRaises,r=this.bodyRaises;for(let e=0;e0,o=this.eyeOut.right||i.y>0;(this.eyeOut.left&&i.x===0||this.eyeOut.right&&i.y===0)&&t.setEyeOut(a&&o?`both`:a?`left`:`right`);let s=t.uniforms.uInjuryLid.value;(this.eyeShut.left||this.eyeShut.right)&&t.setEyesShut(this.eyeShut.left?1:s[0].w,this.eyeShut.right?1:s[1].w),this.gloveGone.left&&(e.gloveMesh(`left`).visible=!1),this.gloveGone.right&&(e.gloveMesh(`right`).visible=!1)}piece(e,t){if(t||this.pieces.has(e))for(let n of this.built(e))n.visible=t}built(e){let t=this.pieces.get(e);return t===void 0&&(t=this.make(e),this.pieces.set(e,t)),t}bindToWorld(e,t,n){let r=this.boxer.rig.bones[t],i=e.skeleton.bones.indexOf(r);return i<0?!1:(n.multiplyMatrices(r.matrixWorld,e.skeleton.boneInverses[i]).multiply(e.bindMatrix),!0)}skinMatrix(e,t,n){let r=e===`head`?this.boxer.headMesh:bO(this.boxer,`body`);return r!==null&&this.bindToWorld(r,t,n)}fitSkull(){let e=this.skull;if(e===null)return;let t=this.boxer.look,n=jb(zO.set(5.9,124.6,-3.3),t,this.root).x,r=jb(zO.set(-5.9,124.6,-3.3),t,this.root).x,i=jb(zO.set(0,124.6,3.3),t,this.root).z,a=jb(zO.set(0,124.6,-9.9),t,this.root).z,o=(i-a)/13.2;this.fit.makeScale((n-r)/11.8,1,o).setPosition((n+r)/2,0,(i+a)/2+3.3*o),e.matrix.multiplyMatrices(this.skullMount,this.fit)}solid(e){this.geometries.push(e);let t=new H(e,this.flesh);return t.receiveShadow=!0,t}mount(e,t,n=bO(this.boxer,`body`)){let r=this.boxer.rig.bones[e],i=n===null?-1:n.skeleton.bones.indexOf(r);return n!==null&&i>=0&&t.matrix.multiplyMatrices(n.skeleton.boneInverses[i],n.bindMatrix),t.matrixAutoUpdate=!1,t.visible=!1,r.add(t),t}closing(e,t,n){let r=bO(this.boxer,`body`);if(r===null)return[];let i=uk.get(r.geometry);i===void 0&&uk.set(r.geometry,i=new Map);let a=i.get(e);if(a===void 0&&i.set(e,a=Wv(r.geometry,t)),a.length===0)return[];let o=new $l(dk(r.geometry,a,n),this.flesh);return this.geometries.push(o.geometry),o.bind(r.skeleton,r.bindMatrix),o.frustumCulled=!1,o.receiveShadow=!0,o.visible=!1,(r.parent??this.boxer.root).add(o),[o]}make(e){let t=this.boxer.headMesh;if(e===`skull`){let e=new fc,n=this.solid(qO());return n.position.set(...GO),e.add(n,this.solid(JO())),this.mount(`head`,e,t),this.skullMount.copy(e.matrix),this.skull=e,this.brain=n,[e]}if(e===`maw`){let e=new fc,n=this.solid($O());return n.position.set(...YO),e.add(this.solid(ek()),n),this.tongue=n,[this.mount(`head`,e,t)]}if(e===`chest`)return[...this.closing(e,e=>f_(e.x,e.y,e.z)<=0,pk),this.mount(`chest`,this.solid(ak()))];if(e===`waist`)return[...this.closing(e,e=>!_O(`upper_body`,`body`,e),fk(SO,.8)),this.mount(`spine`,this.solid(rk()))];let n=e.endsWith(`_left`)?`left`:`right`,{sign:r,bone:i}=gk[n];switch(e.slice(0,e.indexOf(`_`))){case`fracture`:return[this.mount(`shoulder${i}`,this.solid(UO([r*27.6,103.3,-5],[r*(w_[0]+2.4),w_[1]+2.6,w_[2]+1.4],1.05))),this.mount(`elbow${i}`,this.solid(HO([UO([r*34.6,102.3,-4.8],[r*30,98.6,-.8],.8),UO([r*34,103.2,-5.6],[r*30.6,100.6,-9.8],.6)])))];case`ribs`:return[this.mount(`chest`,this.solid(ik(r)))];case`knee`:return[this.mount(`knee${i}`,this.solid(UO([r*8.8,37.8,-4.6],[r*(T_[0]+3.8),T_[1]-1.2,T_[2]-.2],1.2)))];case`elbow`:return[...this.closing(e,e=>!_O(`forearm_${n}`,`body`,e),fk(new B(r,0,0),0)),this.mount(`shoulder${i}`,this.solid(tk(r)))];case`shoulder`:return[...this.closing(e,e=>!_O(`arm_${n}`,`body`,e),fk(new B(r,0,0),1.6)),this.mount(`clavicle${i}`,this.solid(nk(r)))]}}};function vk(e){switch(e){case`skull_fractured`:return`skull`;case`broken_jaw`:return`jaw`;case`broken_nose`:return`nose`;case`ribs_left_broken`:return`ribs_left`;case`ribs_right_broken`:return`ribs_right`;case`arm_left_broken`:return`arm_left`;case`arm_right_broken`:return`arm_right`;case`knee_left_blown`:return`knee_left`;case`knee_right_blown`:return`knee_right`;case`shoulder_left_dislocated`:return`shoulder_left`;case`shoulder_right_dislocated`:return`shoulder_right`;default:return null}}var yk=.3,bk=1.35,xk=.07,Sk=.25,Ck=.4,wk=.13,Tk=.6,Ek=.66,Dk=1.05,Ok=new V(10474751),kk=new V(16777215),Ak=new V(132105),jk=5,Mk=8,Nk=(e,t)=>[t===`left`?e[0]:-e[0],e[1],e[2]];function Pk(e){let t=e.endsWith(`_right`)?`right`:`left`,n=t===`left`?`L`:`R`;return e===`skull`?{center:[0,123.5,-1],radius:13,anchor:`skull`}:e===`jaw`?{center:[0,113.5,2],radius:10,anchor:`mouth`}:e===`nose`?{center:[0,118,3],radius:9,anchor:`nose`}:e.startsWith(`ribs`)?{center:Nk(C_[1],t),radius:26,anchor:`ribs_${t}`}:e.startsWith(`arm`)?{center:Nk(w_,t),radius:17,anchor:`elbow_${t}`,joint:`elbow${n}`}:e.startsWith(`knee`)?{center:Nk(T_,t),radius:20,anchor:`knee_${t}`,joint:`knee${n}`}:{center:Nk([15,103.5,-5.5],t),radius:15,anchor:`shoulder_${t}`,joint:`shoulder${n}`}}var Fk=[1,1,1],Ik=[.06,.07,.09],Lk=[.3,.32,.36],Rk=[1,0,0],zk=new B(0,1,0);function Bk(e,t){e.deleteAttribute(`uv`);let n=e.getAttribute(`position`).count,r=new Float32Array(n*3);for(let e=0;e0?.25:-1.75,e>0?1.75:-.25)])}function eA(){let e=Bk(new Od(1,8,5,Math.PI/2-.55,1.1,.35,.7).scale(5.75,6.25,7.45).translate(0,121.6,-3),Lk),t=(e,t)=>[-5.8*Math.cos(e)*Math.sin(t),121.6+6.3*Math.cos(t),-3+7.5*Math.sin(e)*Math.sin(t)],n=[];for(let[e,r,i,a]of[[1,.35,.7,.05],[2.1,.4,2.7,.2],[2.1,1.05,2.8,1.2],[1,1.05,.4,1.3],[1.57,1.05,1.5,1.5],[1.57,.35,1.9,.02]]){let o=t((e+i)/2+.12,(r+a)/2+.05);n.push(Kk(t(e,r),o,.22,Ik),Kk(o,t(i,a),.16,Ik))}return qk([e,...n])}function tA(e,t,n){let r=[];for(let i=e;i{t.call(e,n,r),n.vertexShader=n.vertexShader.replace(`#include `,`${Zw}\n#include `)},e.customProgramCacheKey=()=>`${n}-on-canvas`,e.needsUpdate=!0}function $w(e,t){let n=t.outfit!==void 0,r=!n||t.wounds===!0,i=[],a=[],o=new Map,s=null,c={value:0},l=null,u=null;if(e.traverse(e=>{if(!(e instanceof eu)||Array.isArray(e.material))return;let d=e.material.name,f=Fw[d];if(f===void 0)throw Error(`fighter GLB has unsupported material ${d}`);let p=o.get(d);if(p===void 0){let e=d===`MHeadMat0`||d===`MBodyMat0`,m=t.outfit,h=d===`GlovesMat0`?t.gear:d===`PantsMat0`?m?.trousers??t.gear:d===`ShoesMat0`&&m!==void 0?m.shoes:16777215,g=Xw(f);p=e&&!n?new Wd({map:g,color:h,roughness:.58,metalness:.02,clearcoat:.25,clearcoatRoughness:.6}):new Ud({map:g,color:h,roughness:e?.58:Iw[d]??.4,metalness:e?.02:.03}),p.name=d,o.set(d,p),a.push(p),e&&i.push(p),d===`MHeadMat0`&&(l=new Z_(r?p:null,Yg,{core:A_,lids:M_})),d===`MBodyMat0`&&(u=new Z_(r?p:null,Xg,{core:j_,wash:!0}));let _=eT[d];m!==void 0&&_!==void 0?ax(p,_,m):d===`PantsMat0`?c=vb(p,!1,`trunks`):d===`GlovesMat0`&&(s=vb(p)),e&&!n&&fx(p),Qw(p)}if(e.material=p,!n&&e.name===`BoxerPants`){let t=Vw.get(e.geometry);t===void 0&&Vw.set(e.geometry,t=Cx(e.geometry,e.skeleton.bones.map(e=>e.name))),e.geometry=t}e.castShadow=!n,e.receiveShadow=!0,e.frustumCulled=!1}),i.length!==2||s===null||a.length!==5||l===null||u===null)throw Error(`fighter GLB material contract failed: ${i.length} skin, ${a.length} total`);return{skin:i,gloveBlood:s,trunksBlood:c,owned:a,headInjury:l,bodyInjury:u}}var eT={MHeadMat0:`head`,MBodyMat0:`body`,ShoesMat0:`shoes`,PantsMat0:`pants`},tT=new V().setRGB(.6,.32,.19,Co),nT=(e,t,n,r)=>e+(t-e)*(1-Math.exp(-n*r)),rT=(e,t,n,r)=>e+(((t-e+Math.PI)%(Math.PI*2)+Math.PI*2)%(Math.PI*2)-Math.PI)*(1-Math.exp(-n*r)),iT=R.clamp,aT=class{root=new pc;bones=new Map;rig;metrics;skinMaterials;ownedMaterials;gloveBlood;trunksBlood;headMeshes=[];handMeshes={left:[],right:[]};decapitated=!1;burst=!1;dismemberedHands={left:!1,right:!1};dressed;ownedGeometries=[];gearBaseColor;skinBaseColor;headInjury;bodyInjury;headLook;face;bareHand;constructor(e,t){let n=uy(e.scene);n.scale.setScalar(1),this.root.add(n);let r=$w(n,t);this.skinMaterials=r.skin,this.ownedMaterials=[...r.owned],this.gloveBlood=r.gloveBlood,this.trunksBlood=r.trunksBlood,this.headInjury=r.headInjury,this.bodyInjury=r.bodyInjury,this.gearBaseColor=new V(t.gear),this.skinBaseColor=new V(t.skin),this.dressed=t.outfit!==void 0,n.traverse(e=>{e instanceof eu&&e.name===`BoxerHead`&&this.headMeshes.push(e),e instanceof eu&&e.name===`BoxerGloveLeft`&&this.handMeshes.left.push(e),e instanceof eu&&e.name===`BoxerGloveRight`&&this.handMeshes.right.push(e),e instanceof tu&&this.bones.set(e.name,e)});let i=Object.values(pb).filter(e=>!this.bones.has(e));if(i.length>0)throw Error(`fighter GLB missing required bones: ${i.join(`, `)}`);if(this.headMeshes.length!==1)throw Error(`fighter GLB requires one BoxerHead mesh, found ${this.headMeshes.length}`);let a=this.headInjury.shadowMaterial();this.headMeshes[0].customDepthMaterial=a;let o=this.headMeshes[0].material;o.side=0,o.shadowSide=1,this.ownedMaterials.push(a);for(let e of[`left`,`right`])if(this.handMeshes[e].length!==1)throw Error(`fighter GLB requires one ${e} glove mesh, found ${this.handMeshes[e].length}`);this.root.updateMatrixWorld(!0),this.rig=new Yx(this.root),this.headLook=new Rb(this.headMeshes[0].material),this.face=new Ox(t.gear^t.skin),this.bareHand=t.outfit===void 0?null:this.addHands(t.outfit),this.setLook(t.look??yb);let s=this.rig.metrics;this.metrics={armUpper:s.armL.upper,armFore:s.armL.lower,legThigh:s.legL.upper,legShin:s.legL.lower,headRestY:s.headHeight,chestRestY:s.chestHeight,ankleRestY:s.ankleHeight}}bone(e){return this.bones.get(pb[e]??e)??null}setGloveBlood(e){this.gloveBlood.value=iT(e,0,1)}get gloveBloodLevel(){return this.gloveBlood.value}setTrunksBlood(e){this.trunksBlood.value=iT(e,0,1)}get trunksBloodLevel(){return this.trunksBlood.value}get headMesh(){return this.headMeshes[0]}gloveMesh(e){return this.handMeshes[e][0]}get skin(){return this.skinMaterials[0]}get isDecapitated(){return this.decapitated}setDecapitated(e){this.decapitated=e,this.burst=!1,this.headInjury.setSevered(e),this.bone(`head`).visible=!e}get isHeadBurst(){return this.burst}setHeadBurst(e){this.burst=e,this.decapitated=!1,this.headInjury.setBurst(e),this.bone(`head`).visible=!e}isHandDismembered(e){return this.dismemberedHands[e]}setHandDismembered(e,t){this.dismemberedHands[e]=t;for(let n of this.handMeshes[e])n.visible=!t&&!this.dressed}setLook(e){this.headLook.set(e);for(let t of this.skinMaterials)t.color.setHex(e.tint);this.bareHand?.color.copy(tT).multiply(this.skinMaterials[0].color)}get look(){return this.headLook.look}addHands(e){let t=e.gloves!==null,n=new Ud({color:t?e.gloves:tT,roughness:t?.38:.6,metalness:.02}),r=t?n:new Ud({color:new V(e.shirt).multiplyScalar(.9),roughness:.88,metalness:0});this.ownedMaterials.push(n),r!==n&&this.ownedMaterials.push(r);let i=lx();this.ownedGeometries.push(i);for(let e of[`left`,`right`]){for(let t of this.handMeshes[e])t.visible=!1;let t=cx(e);this.ownedGeometries.push(t);let a=e===`left`?`L`:`R`;for(let[o,s,c,l]of[[this.rig.bones[`glove${a}`],t,n,`hand-${e}`],[this.rig.bones[`elbow${a}`],i,r,`cuff-${e}`]]){let e=new H(s,c);e.name=l,e.castShadow=!1,e.receiveShadow=!0,o.add(e)}}return t?null:n}setSkinClearcoat(e){for(let t of this.skinMaterials)t instanceof Wd&&(t.clearcoat=e)}flinch(e,t){this.face.flinch(e,t)}updateFace(e,t,n,r,i,a){this.face.update(e,t,n,r,i,a),this.headLook.setExpression(this.face.lids,this.face.mouth,this.face.brow)}dispose(){for(let e of this.ownedMaterials)e.dispose();for(let e of this.ownedGeometries)e.dispose();Yw(this.root)}},oT=(e,t,n,r,i)=>{let a=e.value,o=e.velocity;o.addScaledVector(a,-n*t).multiplyScalar(Math.exp(-r*t)),a.addScaledVector(o,t),a.length()>i&&a.setLength(i)},sT=.06,cT=150,lT=.58,uT=.25,dT=.32,fT=9,pT=1,mT=.08,hT=.3,gT=1,_T=1.6,vT=.25,yT=.12,bT=.33,xT=.3,ST=8;function CT(e,t,n,r){Ow(e,t,n);let i=Math.hypot(n.x,n.z);if(i<=0)return r.x=0,r.z=0,0;let a=eS(0,vT,i),o=1+yT*a/i;return r.x=n.x*o,r.z=n.z*o,a}var wT=(e,t)=>e===0||Math.sign(t)===Math.sign(e)&&Math.abs(t)>Math.abs(e)?t:e,TT=.75,ET=.38,DT=.72,OT=.5,kT=.2,AT=.55,jT=.7,MT=6,NT=.4,PT=.2,FT=.3,IT=.5,LT=class{mapping;boxer;solver;yaw=0;yawInitialized=!1;rootX=null;rootZ=0;punchActive=!1;punchAgeTicks=0;punchTotalTicks=1;punchClass=`jab`;punchHand=`left`;punchTarget=`head`;punchPower=`normal`;punchTiming=N(`jab`,`head`,`normal`);actionId=null;completedActionId=null;ownActionId=null;ownPress=!1;ownLeadTicks=0;ownAuthoritativeAge=null;ownWaitedTicks=0;ownExpectedTicks=0;ownPulled=!1;ownSequence=null;ownStarted=!1;ownPressedAt=0;ownRefused=!1;ownCut=!1;recoveryCut=!1;ownQueued=null;contactId=null;contactParried=!1;shownFighter=null;shownOpponent=null;retiredOwnIds=[];pressesLanded=[];anticipatedId=null;hitstop=0;hitstopScale=1;hitstopLag=0;downState=`up`;fallAge=0;riseProgress=0;riseFrom=0;fallSide=0;fallProne=!1;fallKneel=!1;windedSide=-1;windedTime=0;winded=0;landProne=!1;landSide=0;landShift=new B;landSettled=!1;fallen=yD();fallenFromPhysics=!1;riseRoot=new B;riseRootFrom=new B;downPoles=[new B,new B,new B,new B];downPolesSet=!1;poleSettle=0;characterInverse=new zs;place=new B;riseRootVelocity=new B;liveOpponentHead=new B;hasLiveHead=!1;guardOpponentHead=new B;opponentHeadOffset=new B;opponentSteadySeconds=0;followHead=0;aimActionId=null;refereeContactId=null;refereeHead=new B;hasRefereeHead=!1;followReferee=0;headKick={value:new B,velocity:new B};torsoKick={value:new B,velocity:new B};rootKick={value:new B,velocity:new B};coverKick={value:new B,velocity:new B};foldDelay=0;pendingFold=0;coverDelay=0;pendingCover=0;liverDelay=0;pendingLiver=0;armKick={value:new B,velocity:new B};handsDrop=0;guardWasBroken=!1;hurtSeed=1;rockedTime=0;rockedPhase=0;nextLurch=0;guardKick=0;guardHigh=0;guardLow=0;guardSpent=0;slip=0;weave=0;weaveTime=0;pull=0;crouchExtra=0;bouncePhase=0;weightPhase=0;breathPhase=0;stunPhase=0;feintTimer=2;pawAge=_E;pawCount=0;idleSeed=-1;manner={..._S.balanced,lead:new B,rear:new B};mannerStyle=null;mannerSeed=0;breath=0;battered=0;walkLean=new z;leadingFoot=-1;nextFoot=-1;steppedYaw=0;stunAmount=0;tired=0;clinchWeight=0;foulWeight=0;tauntWeight=0;crowding=0;tight=0;punchCommit=0;punchMiss=0;headSpace=new z;ownHead=new B;ropeHold=new B;ropeExcess={x:0,z:0};ropeOwn={x:0,z:0};ropeTheirs={x:0,z:0};ropeLeanTarget=0;ropeLean=0;ropeOutward=new B(1,0,0);ropeLocal=new B;tauntEnd=null;lastSpeed=0;stool;stoolRoot=new B;stoolYaw=0;enswell;bottle;treatProp=`enswell`;treatTarget=new B;treatScratch=new B;treatFacing=new B(0,0,-1);treatFacingLocal=new B;treatSide=1;treating=!1;treatWeight=0;resting=!1;seated=0;stillTime=0;celebrateTime=0;celebration=0;waveTime=0;wave=0;breakTime=0;breakWeight=0;breakFighters=[new B,new B];breakAimed=!1;attending=!1;verdictSide=0;verdict=null;squareWeight=0;raisedWeight=0;bowedWeight=0;wrists=[null,null];wristTargets=[new B,new B];wristWeights=[0,0];attendWeight=0;countdownTicks=null;countdownEnd=null;touchWeight=0;touchOffset=new B;touchVelocity=new B;debugHoldImpact=!1;feet=[{planted:new B,from:new B,to:new B,progress:1,stepping:!1,duration:.2},{planted:new B,from:new B,to:new B,progress:1,stepping:!1,duration:.2}];feetInitialized=!1;dislocation=null;scratch=new B;scratchB=new B;scratchC=new B;scratchD=new B;scratchE=new B;clinchCentre=new B;clinchForward=new B;clinchTemp=new B;scratchQ=new hs;headWorld=new B;hand={L:this.makeHand(),R:this.makeHand()};punchGuard=this.makeHand();punchDir=new B;punchContact=new B;punchStart=new B;punchSweepFrom=new B;punchSweepTo=new B;punchMid=new B;foot={L:this.makeFoot(),R:this.makeFoot()};torso={hips:new B,hipsYaw:0,hipsPitch:0,hipsRoll:0,shouldersYaw:0,spinePitch:0,spineRoll:0,headYaw:0,headPitch:0,headRoll:0,headOffset:new B};pose;downStanding=yD();downFrom=yD();downTo=yD();downResult=yD();downStand=1;fallStart=yD();fallStartStand=1;fallFromGetUp=!1;referee;refereeCount=0;refereeCounting=!1;countChangedTick=null;countWeight=0;countPump=0;watchPoint=new B;watching=!1;duty=`watch`;backWeight=0;waveSlow=!1;mood=`work`;mournWeight=0;cheerWeight=0;treatUrgency=0;gazeYaw=0;gazePitch=0;travel=new B;strideYaw=0;backing=!1;footYaw=[0,0];ragdoll;forcedDown=!1;heldDown=!1;authoredNextFall=!1;obstacle=null;blows=0;riseBlendAge=0;posedInjuries=0;armCarry=[`whole`,`whole`];armLimp=[0,0];armSnap=[0,0];armDangle=[xE(),xE()];forearmDangle=[xE(),xE()];trunkLow=new B;trunkHigh=new B;lostLean=0;cover=0;kneeBlown=[!1,!1];kneeGive=[0,0];gutted=!1;hunch=0;liver=!1;curl=0;faintTarget=0;faint=0;retchTime=0;retching=0;dazed=!1;daze=0;dazeTime=0;stepPace=[1,1];stepLift=[1,1];stepSlack=1;hurt=!1;punchReach=0;dead=!1;deathFall=!1;deathStyle=`crumple`;deathAge=0;throe=wE.length;throeSide=0;laidOut=!1;constructor(e,t,n={}){this.mapping=t,this.boxer=e,this.referee=n.referee===!0,this.solver=new mS(e.rig),this.pose={torso:this.torso,handL:this.hand.L,handR:this.hand.R,footL:this.foot.L,footR:this.foot.R,shrugL:0,shrugR:0},this.stool=KD(),this.stool.group.position.set(0,0,.02),e.root.add(this.stool.group),this.enswell=WD(),e.rig.bones.gloveL.add(this.enswell.group),this.bottle=GD(),e.rig.bones.gloveL.add(this.bottle.group),this.ragdoll=this.referee&&n.knockout!==!0?null:new fw(e.rig,e.root)}primeReplayFall(){this.ragdoll?.prime()}useAuthoredFall(){this.authoredNextFall=!0}knockOut(){this.forcedDown=!0}stayDown(e){this.heldDown=e}setObstacle(e,t){this.obstacle??={x:e,z:t},this.obstacle.x=e,this.obstacle.z=t}get fallBody(){return this.ragdoll?.active===!0?this.ragdoll:null}setResting(e){this.resting=e}get stoolVisible(){return this.stool.group.visible}celebrate(e=4.4){this.celebrateTime=e}resetTransient(e=!1){this.forcedDown=!1;let t=this.ragdoll;t!==null&&(e?t.active?t.settle():t.restoreSettled():(t.stop(),t.clearRise())),this.downState=e?`down`:`up`,this.landSettled=!1,this.fallenFromPhysics=!1,this.riseRoot.set(0,0,0),this.riseRootFrom.set(0,0,0),this.riseRootVelocity.set(0,0,0),this.fallAge=e?TT:0,this.riseProgress=0,this.hitstop=0,this.hitstopScale=1,this.hitstopLag=0;for(let e of[this.headKick,this.torsoKick,this.rootKick,this.coverKick,this.armKick])e.value.set(0,0,0),e.velocity.set(0,0,0);this.foldDelay=0,this.pendingFold=0,this.coverDelay=0,this.pendingCover=0,this.liverDelay=0,this.pendingLiver=0,this.handsDrop=0,this.rockedTime=0,this.guardKick=0,this.stunAmount=0,this.windedTime=0,this.winded=0,this.celebrateTime=0,this.celebration=0,this.waveTime=0,this.wave=0,this.verdictSide=0,this.verdict=null,this.squareWeight=0,this.raisedWeight=0,this.bowedWeight=0,this.wrists.fill(null),this.wristWeights.fill(0),this.seated=0,this.stillTime=0,this.rootX=null,this.yawInitialized=!1,this.feetInitialized=!1,this.retirePunch(),this.ownQueued=null,this.completedActionId=null,this.retiredOwnIds.length=0,this.anticipatedId=null,this.retchTime=0,this.retching=0,this.dazed=!1,this.daze=0,this.dazeTime=0;for(let e=0;e<2;e+=1)CE(this.armDangle[e]),CE(this.forearmDangle[e]);this.dead=!1,this.deathFall=!1,this.throe=wE.length,this.laidOut=e}waveOff(e=2.6,t=!1){this.waveTime=e,this.waveSlow=t}setCountdown(e){this.countdownTicks=e}attend(e,t=`work`){this.attending=e,this.mood=t}treat(e,t,n=1,r=`enswell`,i=0){this.treating=e!==null,e!==null&&(this.treatTarget.copy(e),t!==void 0&&this.treatFacing.copy(t),this.treatSide=n,this.treatProp=r,this.treatUrgency=i)}awaitVerdict(e){this.verdictSide=e??0,e===null&&(this.verdict=null)}announce(e){this.verdict=e}raise(e,t){this.wrists[0]=e===null?null:this.wristTargets[0].copy(e),this.wrists[1]=t===null?null:this.wristTargets[1].copy(t)}breakClinch(e=1.3){this.breakTime=e}get breaking(){return this.breakTime>0}aimBreak(e,t,n=null,r=`watch`){this.breakFighters[0].copy(e),this.breakFighters[1].copy(t),this.breakAimed=!0,this.watching=n!==null,n!==null&&this.watchPoint.copy(n),this.duty=r}makeHand(){return{position:new B,knuckles:new B(0,1,0),palm:new B(0,0,1),pole:new B(0,-1,0)}}makeFoot(){return{position:new B,toe:new B(0,0,1),heel:0,pole:new B(0,0,1)}}get currentRoot(){return{x:this.rootX??0,z:this.rootZ}}get isDown(){return this.downState!==`up`||this.dead}setRefereeCount(e,t){(e!==this.refereeCounting||t!==this.refereeCount)&&(this.countChangedTick=null),this.refereeCounting=e,this.refereeCount=t}predict(e,t,n,r=0,i,a=r){if(e.kind!==`punch`||e.id===void 0)return;let o={action:{...e,id:e.id},timing:i??N(e.class,e.target,e.power),leadTicks:r,answerTicks:a,pressedAt:t,sequence:null,started:!1,waited:0};if(this.punchActive&&this.ownActionId!==null&&this.ownAuthoritativeAge===null&&!this.ownPulled&&!this.ownStarted&&(t-this.ownPressedAt)*n0||e.clinch_ticks>0||e.clinch_startup_ticks>0,a=this.ownQueued;if(a!==null&&(a.sequence??=r?.(a.action.id)??null,e.action_id===a.action.id?a.started=!0:!a.started&&(i||a.sequence!==null&&e.last_input_sequence>=a.sequence&&e.queued_actions===0)&&(this.ownQueued=null)),!this.punchActive||this.ownActionId===null||this.ownPulled||this.ownRefused)return;this.ownStarted||(this.ownSequence??=r?.(this.ownActionId)??null);let o=e.action_id===this.ownActionId;o&&(this.ownStarted=!0);let s=this.ownQueued;s!==null&&s.sequence!==null&&r!==null&&!this.ownStarted&&this.ownSequence===null&&this.ownAuthoritativeAge===null?(this.ownActionId=null,this.ownQueued=null,this.retirePunch(),this.startOwnPunch(s)):(o?i&&e.action_contact_tick===null:!this.ownStarted&&this.ownAuthoritativeAge===null&&(i||this.ownSequence!==null&&e.last_input_sequence>=this.ownSequence&&e.queued_actions===0))&&(this.ownRefused=!0,this.takeBack())}takeBack(){this.punchAgeTickse.action_startup_ticks*(1/sO-1)||this.punchActive&&this.punchAgeTicks/this.punchTotalTicks<=.55)return;this.anticipatedId=n;let r=e.action_target??`head`,i=e.action_power??`normal`,a={...N(e.action,r,i),startup:e.action_startup_ticks,active:e.action_active_ticks,recovery:e.action_recovery_ticks},o=e.action_hand??(e.stance===`orthodox`?`left`:`right`);this.startEarly(n,e.action,o,r,i,a,t,t)}startOwnPunch(e){let{action:t,timing:n}=e;this.startEarly(t.id,t.class,t.hand,t.target,t.power,n,0,Math.max(0,e.answerTicks)),this.ownPress=!0,this.ownSequence=e.sequence,this.ownStarted=e.started,this.ownPressedAt=e.pressedAt}startEarly(e,t,n,r,i,a,o,s){this.retirePunch(),this.punchClass=t,this.punchHand=n,this.punchTarget=r,this.punchPower=i,this.punchTiming=a,this.punchTotalTicks=Math.max(1,ue(a)),this.punchAgeTicks=0,this.punchActive=!0,this.ownActionId=e,this.ownLeadTicks=iT(o,0,JD),this.ownExpectedTicks=s}followUpStartAge(e){let t=this.shownFighter,n=this.shownOpponent,r=this.actionId??this.ownActionId,i=r!==null&&r===this.contactId&&!this.contactParried;return t!==null&&n!==null&&D(this.punchClass,i,e.action,t.stamina,n.stunned_ticks>0,t.style)?E(this.punchTiming):this.punchTotalTicks}releaseQueuedPress(e){let t=this.ownQueued;t!==null&&(t.waited+=e*30,this.punchActive&&!this.ownPulled&&this.punchAgeTicks+this.serverLag(t.leadTicks)6&&this.retiredOwnIds.shift()),this.actionId=null,this.punchActive=!1,this.ownActionId=null,this.ownPress=!1,this.ownLeadTicks=0,this.ownAuthoritativeAge=null,this.ownWaitedTicks=0,this.ownExpectedTicks=0,this.ownPulled=!1,this.ownSequence=null,this.ownStarted=!1,this.ownRefused=!1,this.ownCut=!1,this.recoveryCut=!1,this.hitstopLag=0}setRefereeHead(e){this.hasRefereeHead=e!==null,e!==null&&this.refereeHead.copy(e)}landedHit(e,t,n=!1){this.punchActive&&e!==null&&e===(this.actionId??this.ownActionId)&&(this.punchAgeTicks>=this.punchTiming.startup+this.punchTiming.active+1||(this.hitstop=Math.max(this.hitstop,(t?o.block:n?o.power:o.hit)/1e3)))}powerHeat(e){if(!this.punchActive||this.punchPower!==`power`||this.punchHand!==e||this.ownPulled)return 0;let{startup:t,active:n,recovery:r}=this.punchTiming,i=this.punchAgeTicks;return i>>0;let u=i===`left`?1:i===`right`||n>=0?-1:1;if(t===`body`){switch(r){case`hook`:this.torsoKick.velocity.x+=3*l,this.torsoKick.velocity.z+=4.6*l*u,this.rootKick.velocity.x+=.5*l*u,this.coverDelay=.09,this.pendingCover=2.4*l*u,u>0&&e===`hit`&&o>.25&&(this.liverDelay=.28,this.pendingLiver=l*(.4+o));break;case`uppercut`:this.rootKick.velocity.y+=.9*l,this.torsoKick.velocity.x-=1.6*l,this.foldDelay=.1,this.pendingFold=5.2*l;break;default:this.torsoKick.velocity.x+=4.6*l}this.rootKick.velocity.z-=.45*l,this.headKick.velocity.z-=.6*l,this.headKick.velocity.y-=.7*l,this.guardKick=Math.max(this.guardKick,.6*l)}else{switch(e===`hit`&&(this.guardKick=Math.max(this.guardKick,.4*l)),r){case`hook`:this.headKick.velocity.x+=2.6*l*u,this.headKick.velocity.z-=.7*l,this.torsoKick.velocity.y+=3.4*l*u,this.torsoKick.velocity.z-=1.2*l*u;break;case`uppercut`:this.headKick.velocity.y+=2.2*l,this.headKick.velocity.z-=1.2*l,this.torsoKick.velocity.x-=1.6*l;break;case`straight`:this.headKick.velocity.z-=2.4*l,this.headKick.velocity.x+=.5*l*u,this.torsoKick.velocity.x-=1*l,this.torsoKick.velocity.y+=1.4*l*u;break;default:this.headKick.velocity.z-=1.5*l,this.torsoKick.velocity.x-=.5*l,this.torsoKick.velocity.y+=.5*l*u}if(this.rootKick.velocity.z-=.45*l,e===`block`)this.guardKick=Math.max(this.guardKick,Math.min(1.2,2.4*l)),this.rootKick.velocity.z-=1.1*l,this.torsoKick.velocity.x-=1.2*l;else{this.rootKick.velocity.y-=1.1*l*o;let e=1.7*l*o;r===`hook`?this.armKick.velocity.add(this.scratchE.set(u,.3,-.2).multiplyScalar(e)):r===`uppercut`?this.armKick.velocity.add(this.scratchE.set(0,1,-.4).multiplyScalar(e)):this.armKick.velocity.add(this.scratchE.set(.3*u,.7,-.4).multiplyScalar(e)),this.handsDrop=Math.max(this.handsDrop,iT((o-.35)*2,0,1)*(.5+.5*c))}}if(e===`hit`&&(this.dentSurface(t,u,r,o),this.fallSide=r===`hook`?u:u*.5,this.fallProne=r===`hook`||t===`body`),e===`hit`&&a>=10&&this.ragdoll!==null){let e=dw({target:t,punchClass:r,hand:i,lateral:u,amount:a}),n=this.scratchE.set(e.x,e.y,e.z).applyAxisAngle(qD,this.yaw),o=this.scratchD.set(e.driveX,e.driveY,e.driveZ).applyAxisAngle(qD,this.yaw);this.blows+=1,this.ragdoll.takeBlow(n,o,t,e.twist,KC(r,t,a,this.blows+Math.round(a)))}}stagger(){this.torsoKick.velocity.x-=2.6,this.headKick.velocity.z-=1.4,this.headKick.velocity.y+=.5,this.rootKick.velocity.z-=1.1,this.guardKick=Math.max(this.guardKick,1.1)}windedFor(e,t){this.windedTime=Math.max(this.windedTime,e),this.windedSide=t>=0?1:-1}fallToKnee(e){this.dead||(this.fallKneel=e,e&&(this.authoredNextFall=!0))}dentSurface(e,t,n,r){let i=1.1+r*2.1;if(e===`body`){let e=n===`hook`?t>0?`rightRibs`:`leftRibs`:`solarPlexus`;this.boxer.bodyInjury.impact(e,[n===`hook`?t*i*.8:0,0,-i],9)}else n===`hook`?this.boxer.headInjury.impact(t>0?`rightCheek`:`leftCheek`,[t*i,0,-i*.35],5.5):n===`uppercut`?this.boxer.headInjury.impact(`chin`,[0,i*.7,-i*.6],5):this.boxer.headInjury.impact(n===`jab`?`nose`:`mouth`,[0,0,-i],4.5)}footPlace(e,t,n){if(this.squareWeight>.5)return n.set(e===0?.16:-.16,0,e===0?.02:-.02);let r=e===0==t>0?hS.leadFoot:hS.rearFoot;return n.set(r.x*t*this.manner.width*(1+uE*this.battered),0,r.z*this.manner.length*(1-oE*this.crowding))}standLike(e){this.mannerSeed=vE(e)+1,this.mannerStyle=null}keyManner(e){let t=_S[e],n=this.manner;if(this.mannerStyle=e,Object.assign(n,t,{lead:n.lead.copy(t.lead),rear:n.rear.copy(t.rear)}),this.mannerSeed===0)return;let r=e=>Math.abs(Math.sin(this.mannerSeed*(e*7.31+3.17))*43758.5453)%1*2-1;n.rise+=r(1)*.012,n.length*=1+r(2)*.05,n.width*=1+r(3)*.06,n.lead.y+=r(4)*.025,n.lead.z+=r(5)*.03,n.flare+=r(6)*.12,n.spring*=1+r(7)*.2,n.bob*=1+r(1)*r(4)*.4,n.rock*=1+r(2)*r(6)*.3}stepOfficialFeet(e,t,n,r,i){let a=t>UT,o=n.x*Math.sin(i)+n.z*Math.cos(i),s=n.x*Math.cos(i)-n.z*Math.sin(i),c=0;a&&(o<-.35*t?this.backing=!0:o>-.05*t&&(this.backing=!1),c=this.backing?Math.atan2(-s,-o):Math.atan2(s,o)),this.strideYaw=nT(this.strideYaw,c,6,e);let l=1-Math.exp(-8*e);this.travel.x+=(s-this.travel.x)*l,this.travel.z+=(o-this.travel.z)*l;let u=this.scratch,d=this.scratchQ.setFromAxisAngle(qD,i+this.strideYaw),f=a?0:Math.sin(this.weightPhase*.17)>=0?.045:-.045,p=iT(.42/Math.max(t,.01),.22,.34),m=t*p*.4;for(let o=0;o<2;o+=1){let s=this.feet[o],c=o===0?1:-1;u.set(c*.15,0,c*f).applyQuaternion(d).add(r),u.y=0;let l=i+this.strideYaw*.85+c*.2;if(!this.feetInitialized){s.planted.copy(u),s.progress=1,s.stepping=!1,this.footYaw[o]=l;continue}let h=Math.atan2(Math.sin(this.footYaw[o]-l),Math.cos(this.footYaw[o]-l));if(!a&&Math.abs(h)>.8&&(this.footYaw[o]=l+Math.sign(h)*.8),s.stepping){s.progress=Math.min(1,s.progress+e/s.duration),this.footYaw[o]=rT(this.footYaw[o],l,14,e),s.progress>=1&&(s.stepping=!1,s.planted.copy(s.to));continue}let g=this.feet[1-o];if(g.stepping)continue;let _=u.x-s.planted.x,v=u.z-s.planted.z,y=Math.hypot(_,v),b=a?(_*n.x+v*n.z)/t:0;G.set(-c*.15,0,-c*f).applyQuaternion(d).add(r).sub(g.planted);let x=a?(G.x*n.x+G.z*n.z)/t:0;(a?b>(x>0?.05:Math.max(.05,m*.8))||y>m+.2:y>.085)&&(s.stepping=!0,s.progress=0,s.duration=a?iT((.22-x)/t,.16,p):y>.12?.2:.32,s.from.copy(s.planted),s.to.copy(u).addScaledVector(n,s.duration*1.6),s.to.y=0)}this.feetInitialized=!0}stepFeet(e,t,n,r,i,a){if(this.referee||this.squareWeight>.5){this.stepOfficialFeet(e,n,r,i,a);return}let o=this.scratch,s=this.scratchQ.setFromAxisAngle(qD,a),c=+(t>0),l=-1;n>dE&&(l=this.footPlace(0,t,o).applyQuaternion(s).dot(r)>=this.footPlace(1,t,o).applyQuaternion(s).dot(r)?0:1),l!==this.leadingFoot&&(this.leadingFoot=l,this.nextFoot=l);let u=l<0?c:l,d=Math.abs(a-this.steppedYaw)>hE*e;this.steppedYaw=a;for(let f=0;f<2;f+=1){let p=f===0?u:1-u,m=this.feet[p];if(this.footPlace(p,t,o).applyQuaternion(s).add(i),o.y=0,this.daze>.001&&this.stumble(p,o,a),!this.feetInitialized){m.planted.copy(o),m.progress=1,m.stepping=!1;continue}if(m.stepping){m.progress=Math.min(1,m.progress+e/m.duration),m.progress>=1&&(m.stepping=!1,m.planted.copy(m.to));continue}let h=this.feet[1-p],g=m.planted.distanceTo(o),_;if(l<0)_=g>(p===c||!d?fE:pE)*this.stepSlack&&!h.stepping;else{let e=!h.stepping||h.progress>=1-.6*iT((n-.4)/1,0,1),t=this.scratchD.subVectors(o,m.planted).dot(r)>0;_=this.nextFoot===p&&t&&g>mE*this.stepSlack&&e}_&&(m.stepping=!0,m.progress=0,m.duration=iT(.2-n*.05,.11,.2)*this.stepPace[p],m.from.copy(m.planted),m.to.copy(o).addScaledVector(r,m.duration*(p===l?1.3:1)),m.to.y=0,l>=0&&(this.nextFoot=1-p))}this.feetInitialized=!0}footWorld(e,t){let n=this.feet[e];if(!n.stepping)return t.copy(n.planted),0;let r=nS(n.progress,1.6);return t.copy(n.from).lerp(n.to,r),Math.sin(n.progress*Math.PI)*gE*this.stepLift[e]}update(e,t,n,r,i,a,o,s){let c=this.boxer,l=e.stance===`orthodox`?1:-1,u=i?.35:1,d=this.touchWalk(e,t,n,o);this.walkBackFromTheFall(n);let f=this.holdOnTheRopes(t,this.mapping.x(e.x)+d.x+this.riseRoot.x,this.mapping.z(e.y)+d.z+this.riseRoot.z),p=this.mapping.x(e.x)+d.x+this.riseRoot.x-f.x,h=this.mapping.z(e.y)+d.z+this.riseRoot.z-f.z;this.place.set(p,0,h),this.rootX===null&&(this.rootX=p,this.rootZ=h);let g=_O*Math.max(n,1/60);this.rootX+=iT(p-this.rootX,-g,g),this.rootZ+=iT(h-this.rootZ,-g,g);let _=Math.atan2(e.facing_x,-e.facing_y);this.yawInitialized||=(this.yaw=_,!0);let v=this.punchActive&&this.punchAgeTicks0?.12:1;let y=n*this.hitstopScale;this.punchActive&&this.hitstop>0&&(this.hitstopLag+=(n-y)*30),this.syncAction(e,t,o,y),this.debugHoldImpact||(this.boxer.headInjury.update(y),this.boxer.bodyInjury.update(y)),s!==void 0&&this.trackOpponentHead(t,s,n);let b=this.scratchB.set(this.mapping.x(e.velocity_x)*30,0,this.mapping.z(e.velocity_y)*30).add(this.touchVelocity).add(this.riseRootVelocity),x=b.length(),S=Math.hypot(b.x-this.riseRootVelocity.x,b.z-this.riseRootVelocity.z);this.lastSpeed=x,this.stillTime=x<.03?this.stillTime+n:0;let C=this.resting&&this.stillTime>.2&&this.downState===`up`;this.seated=nT(this.seated,+!!C,C?2.2:4,n);let w=this.resting&&this.stillTime>.05&&this.downState===`up`;w&&(this.stoolRoot.set(this.rootX,0,this.rootZ),this.stoolYaw=this.yaw),this.stool.group.visible=w||this.seated>zT&&this.downState===`up`,this.stool.group.position.set(this.stoolRoot.x-this.rootX,0,this.stoolRoot.z-this.rootZ).add(this.scratch.set(0,0,.02).applyAxisAngle(qD,this.stoolYaw)).applyAxisAngle(qD,-this.yaw),this.stool.group.rotation.y=this.stoolYaw-this.yaw,this.celebrateTime=Math.max(0,this.celebrateTime-n),this.celebration=nT(this.celebration,+(this.celebrateTime>0&&this.downState===`up`),3.5,n),this.waveTime=Math.max(0,this.waveTime-n),this.wave=nT(this.wave,+(this.waveTime>0&&this.downState===`up`),4,n),this.breakTime=Math.max(0,this.breakTime-n),this.breakWeight=nT(this.breakWeight,+(this.breakTime>0&&this.downState===`up`),6,n),this.attendWeight=nT(this.attendWeight,+!!this.attending,2.5,n),this.mournWeight=nT(this.mournWeight,+(this.mood===`mourn`),2.5,n),this.cheerWeight=nT(this.cheerWeight,+(this.mood===`cheer`),2.5,n);let T=!this.referee&&(this.verdictSide!==0||this.resting||this.countdownTicks!==null&&this.countdownTicks>XT);this.squareWeight=nT(this.squareWeight,+!!T,3,n),this.raisedWeight=nT(this.raisedWeight,+(this.verdictSide!==0&&(this.verdict===`winner`||this.verdict===`level`)),3.2,n),this.bowedWeight=nT(this.bowedWeight,+(this.verdictSide!==0&&this.verdict===`loser`),2.2,n);for(let e of[0,1])this.wristWeights[e]=nT(this.wristWeights[e],this.wrists[e]===null?0:1,3.2,n);this.treatWeight=nT(this.treatWeight,+!!this.treating,3,n),this.windedTime=Math.max(0,this.windedTime-n);let E=this.fallKneel&&this.downState===`falling`;this.winded=nT(this.winded,this.windedTime>0&&this.downState===`up`||E?1:0,this.windedTime>0||E?12:4,n),this.enswell.group.visible=this.treatWeight>.4&&this.treatProp===`enswell`,this.bottle.group.visible=this.treatWeight>.4&&this.treatProp===`bottle`;let D=this.countdownTicks!==null&&this.countdownTicks<=qT&&this.countdownTicks>=JT;this.touchWeight=nT(this.touchWeight,+!!D,6,n);let O=e.stamina/Math.max(1,e.maximum_stamina);this.tired=nT(this.tired,iT((.55-O)/.5,0,1),2,n),this.stunAmount=nT(this.stunAmount,Math.min(1,e.stunned_ticks/24),8,n),c.updateFace(n,i,this.punchActive&&this.punchPower===`power`,this.tired,this.stunAmount,this.isDown);let k=e.defense;this.guardHigh=nT(this.guardHigh,+(k===`guard_high`),dO,n),this.guardLow=nT(this.guardLow,+(k===`guard_low`),dO,n),this.guardSpent=nT(this.guardSpent,+(e.guard0||e.clinch_startup_ticks>0),10,n),this.foulWeight=nT(this.foulWeight,+!!e.is_foul_recovery_target,8,n),this.tauntWeight=nT(this.tauntWeight,+(e.taunt_ticks>0),10,n);let te=Math.hypot(this.mapping.x(t.x)-this.mapping.x(e.x),this.mapping.z(t.y)-this.mapping.z(e.y)),j=this.referee||e.is_downed||t.is_downed?0:1-eS(lT,pT,te);this.crowding=nT(this.crowding,j,9,n);let M=this.referee||e.is_downed||t.is_downed?0:1-eS(iE,aE,te);this.tight=nT(this.tight,M,9,n);let ne=1/0;if(this.hasLiveHead&&!this.referee&&this.downState===`up`){let e=this.boxer.rig.bones.head.getWorldPosition(this.ownHead),t=e.x-this.liveOpponentHead.x,r=e.z-this.liveOpponentHead.z,i=Math.hypot(t,r);if(ne=Math.hypot(t,e.y-this.liveOpponentHead.y,r),ne1e-4){let e=(uT-ne)/uT*fT*n,a=Math.cos(-this.yaw),o=Math.sin(-this.yaw);this.headSpace.x+=(t*a+r*o)/i*e,this.headSpace.y+=(-t*o+r*a)/i*e,this.headSpace.lengthSq()>1&&this.headSpace.normalize()}}if(ne>dT&&this.headSpace.multiplyScalar(Math.exp(-3*n)),this.tauntEnd=HD(this.tauntEnd,o,e.taunt_ticks>0?e.taunt_ticks:null),oT(this.headKick,n,190,7.5,.24),oT(this.torsoKick,n,150,7,.7),oT(this.rootKick,n,120,8,.12),oT(this.coverKick,n,110,15,.3),oT(this.armKick,n,55,6,.3),this.foldDelay>0&&(this.foldDelay-=n,this.foldDelay<=0&&(this.torsoKick.velocity.x+=this.pendingFold,this.pendingFold=0)),this.coverDelay>0&&(this.coverDelay-=n,this.coverDelay<=0&&(this.coverKick.velocity.x+=this.pendingCover,this.pendingCover=0)),this.liverDelay>0&&(this.liverDelay-=n,this.liverDelay<=0&&(this.rootKick.velocity.y-=1.4*this.pendingLiver,this.torsoKick.velocity.x+=2.6*this.pendingLiver,this.torsoKick.velocity.z+=1.6*this.pendingLiver,this.pendingLiver=0)),this.handsDrop=Math.max(0,this.handsDrop-n*1.5),e.guard_broken&&!this.guardWasBroken&&(this.handsDrop=1,this.guardKick=1.2),this.guardWasBroken=e.guard_broken,this.stunAmount>.25&&this.downState===`up`&&!this.referee){if(this.rockedTime===0&&(this.rockedPhase=this.hurtRandom()*Math.PI*2,this.nextLurch=.1+this.hurtRandom()*.2),this.rockedTime+=n,this.rockedTime>=this.nextLurch){let e=this.stunAmount;this.rootKick.velocity.x+=(this.hurtRandom()-.5)*1.4*e,this.rootKick.velocity.z+=(this.hurtRandom()-.6)*1.2*e,this.rootKick.velocity.y-=this.hurtRandom()*.9*e,this.torsoKick.velocity.z+=(this.hurtRandom()-.5)*1.5*e,this.nextLurch=this.rockedTime+.3+this.hurtRandom()*.5}}else this.stunAmount<.02&&(this.rockedTime=0);this.guardKick=Math.max(0,this.guardKick-n*2.4),this.ragdoll?.tick(n),this.updateDownState(e,n,i,S),this.stepDeath(n),this.stepInjuries(n),this.idleSeed<0&&(this.idleSeed=vE(e.player_id),this.bouncePhase=this.idleSeed*19,this.weightPhase=this.idleSeed*43,this.breathPhase=this.idleSeed*71);let re=this.idleSeed;e.style!==this.mannerStyle&&this.keyManner(e.style);let ie=this.manner;this.battered=nT(this.battered,iT((e.trauma.head+e.trauma.body-cE)/lE,0,1),1.5,n);let N=this.battered,ae=r*(.93+re*.14)+re*37,oe=(2.1-this.tired*.8)*(1-this.stunAmount*.6)*(.94+re*.12)*ie.tempo;if(this.bouncePhase+=n*oe*Math.PI*2*u,this.weightPhase+=n*(.42+re*.1)*Math.PI*2*u,this.breathPhase+=n*(.3+this.tired*.75)*Math.PI*2,this.stunPhase+=n*5.5,this.feintTimer-=n,this.pawAge+=n,this.feintTimer<=0&&!this.punchActive&&x<1&&this.downState===`up`){this.pawCount+=1;let e=Math.abs(Math.sin(this.pawCount*12.9898+re*78.233)*43758.5453)%1;this.feintTimer=e<.3?_E*1.2:1.4+e*2.6,this.pawAge=0}let se=this.pawAge/_E,ce=se<1?Math.sin(Math.PI*.5*(eS(0,.4,se)+eS(.4,1,se))):0,le=this.referee?0:ce*ie.paw*(1-.7*this.tight)*(1-.6*this.tired)*(1-this.stunAmount)*(1-N)*iT(1-this.guardHigh-this.guardLow,0,1)*u,ue=this.referee?0:(1-this.stunAmount)*(1-.6*this.tired)*(1-.7*N)*(x>.6?.5:1)*ie.spring,de=Math.sin(this.bouncePhase)*(.7+.3*Math.sin(ae*.83+1.7))*ue,fe=Math.sin(this.bouncePhase*.5+.6)*ue*ie.rock,pe=Math.sin(this.breathPhase)*(1+2*this.tired);this.breath=pe;let me=this.scratchC.set(this.rootX,0,this.rootZ);(this.downState===`up`||this.downState===`rising`)&&this.stepFeet(n,l,x,b,me,this.yaw);let he=Math.cos(this.yaw),ge=Math.sin(this.yaw);this.walkLean.x=nT(this.walkLean.x,iT((b.x*he-b.z*ge)*.03,-.04,.04),8,n),this.walkLean.y=nT(this.walkLean.y,iT((b.x*ge+b.z*he)*.03,-.04,.04),8,n);let _e=this.scratchQ.setFromAxisAngle(qD,-this.yaw),ve=l>0?this.foot.L:this.foot.R,ye=l>0?this.foot.R:this.foot.L,be=l>0?0:1,xe=+(l>0),Se=this.footWorld(be,ve.position),Ce=this.footWorld(xe,ye.position);ve.position.sub(me).applyQuaternion(_e),ye.position.sub(me).applyQuaternion(_e);let P=this.boxer.rig.metrics.ankleHeight;ve.position.y=P+Se,ye.position.y=P+Ce,vS(hS.leadToe,l,ve.toe),vS(hS.rearToe,l,ye.toe);let we=iT(this.tired*.6+this.stunAmount+N*.6,0,1),Te=(Se+Ce)*3;ve.heel=Math.max(0,hS.leadHeel+(ie.heel-1)*.12)+(.5+.5*de)*.09*ue+Math.max(0,-fe)*.06+Te,ye.heel=hS.rearHeel*ie.heel*(1-.7*we)+(.5+.5*de)*.07*ue+Math.max(0,fe)*.07+Te,this.referee&&(ve.heel=ye.heel=Te),ve.pole.copy(ve.toe).setY(.35).normalize(),ye.pole.copy(ye.toe).setY(.35).normalize();let F=this.torso,I=hS.bladeYaw*l,Ee=de*.013,De=(Math.sin(this.weightPhase)*.018+Math.sin(ae*.31+2.2)*.008)*u*(.5+.5*ie.bob),Oe=.012+this.tired*.03+this.stunAmount*.05+N*.025;F.hips.set(De*l+Math.sin(this.stunPhase*.9)*.05*this.stunAmount+this.walkLean.x,hS.hipsHeight+ie.rise-Oe+Ee+pe*.002,fe*.018+this.walkLean.y+ie.weight),F.hipsYaw=I,F.hipsPitch=.02+this.tired*.08,F.hipsRoll=Math.sin(this.stunPhase)*.09*this.stunAmount,F.shouldersYaw=I*hS.shoulderBlade;let ke=(hS.lean+ie.lean)*(1-.5*this.tight);F.spinePitch=hS.hunch+ke*Math.cos(I)+this.tired*.16+N*.06-pe*.012+this.walkLean.y,F.spineRoll=ke*Math.sin(I)+Math.sin(this.stunPhase*1.3)*.06*this.stunAmount-this.walkLean.x+(Math.sin(ae*.61+2)*.018+Math.sin(ae*1.43)*.008)*u*ie.bob,F.headYaw=-.12*l+Math.sin(ae*.9)*.05+Math.sin(this.stunPhase*.7)*.25*this.stunAmount,F.headPitch=hS.chinTuck+Math.sin(ae*1.7)*.02+this.stunAmount*.18+N*.2*(1-this.punchCommit),F.headRoll=Math.sin(this.stunPhase*1.1)*.14*this.stunAmount,F.headOffset.set(0,0,0);let Ae=l>0?this.hand.L:this.hand.R,je=l>0?this.hand.R:this.hand.L,Me=this.headRestChar(l),Ne=iT(this.guardHigh+this.guardLow,0,1),Pe=1-this.crowding,Fe=this.scratch.copy(hS.relaxedLead).lerp(hS.tightLead,this.tight);Fe.x+=ie.lead.x*Pe,Fe.y+=ie.lead.y*Pe,Fe.z+=ie.lead.z*Pe*(1-this.tight*(1-ie.shell)),Fe.lerp(hS.guardHighLead,this.guardHigh).lerp(hS.guardLowLead,this.guardLow);let Ie=this.scratchB.copy(hS.relaxedRear).lerp(hS.tightRear,this.tight).addScaledVector(ie.rear,Pe).lerp(hS.guardHighRear,this.guardHigh).lerp(hS.guardLowRear,this.guardLow);Fe.y-=this.tired*.12+this.stunAmount*.22+N*.06,Ie.y-=this.tired*.1+this.stunAmount*.2+N*.05,Fe.y-=this.guardSpent*rE,Ie.y-=this.guardSpent*rE,Fe.z-=this.guardSpent*.04,Ie.z-=this.guardSpent*.03,Fe.z+=le*.11+Math.sin(ae*2.3)*.012*u,Fe.x+=Math.sin(ae*1.9)*.01*u,Fe.y+=le*.02+Math.sin(ae*1.27+1)*.008*u+pe*.004,Ie.y+=Math.cos(ae*2.7)*.006*u+pe*.004,Ie.x+=Math.sin(ae*1.13+2)*.004*u,Fe.z-=this.guardKick*.07,Ie.z-=this.guardKick*.05,Fe.y-=this.guardKick*.02,Fe.add(Me),Ie.add(Me),Ae.position.set(Fe.x*l,Fe.y,Fe.z),je.position.set(Ie.x*l,Ie.y,Ie.z),vS(hS.leadKnuckles,l,Ae.knuckles),vS(hS.leadPalm,l,Ae.palm),vS(hS.rearKnuckles,l,je.knuckles),vS(hS.rearPalm,l,je.palm),vS(hS.leadPole,l,Ae.pole),vS(hS.rearPole,l,je.pole),Ae.pole.x*=1-.6*this.tight;let Le=Pe*(1-Ne);if(Ae.pole.x+=ie.flare*l*Le,je.pole.x-=ie.flare*l*Le,ie.shell>0){let e=ie.shell*Le;Ae.knuckles.lerp(this.scratchD.set(-.8*l,.1,.6),e).normalize(),Ae.palm.lerp(this.scratchD.set(-.3*l,.35,-.9),e).normalize(),Ae.pole.lerp(this.scratchD.set(.5*l,-.8,-.35),e).normalize()}F.shouldersYaw+=I*.07*le;let Re=hS.leadShrug+(.6-hS.leadShrug)*Ne+pe*.12+le*.2+ie.shrug*Le,ze=hS.rearShrug+(.5-hS.rearShrug)*Ne+pe*.12+Math.min(0,ie.shrug)*Le;if(Ne>.001&&(Ae.pole.lerp(vS(hS.guardHighLeadPole,l,this.scratch),this.guardHigh).lerp(vS(hS.guardLowLeadPole,l,this.scratch),this.guardLow).normalize(),je.pole.lerp(vS(hS.guardHighRearPole,l,this.scratch),this.guardHigh).lerp(vS(hS.guardLowRearPole,l,this.scratch),this.guardLow).normalize(),Ae.knuckles.lerp(vS(hS.guardKnuckles,l,this.scratch),Ne).normalize(),je.knuckles.lerp(vS(hS.guardKnuckles,-l,this.scratch),Ne).normalize(),Ae.palm.lerp(vS(hS.guardPalm,l,this.scratch),Ne).normalize(),je.palm.lerp(vS(hS.guardPalm,-l,this.scratch),Ne).normalize(),F.hips.y-=.03*this.guardHigh+.08*this.guardLow,F.spinePitch+=.05*this.guardHigh+.2*this.guardLow,F.headPitch+=.08*Ne),this.hurt&&this.applyHurtStance(r,l,Ae,je,Me),Math.abs(this.slip)>.001||this.weave>.001||this.pull>.001){let e=F.hips.x,t=F.hips.y,n=F.hips.z,r=F.spinePitch,i=F.spineRoll,a=F.shouldersYaw,o=this.slip;F.shouldersYaw+=o*.22,F.hipsYaw+=o*.1,this.leanHead(o*.18,0),F.hips.x+=o*.05,F.hips.y-=Math.abs(o)*.04;let s=this.weave,c=iT(this.weaveTime/fO,0,1),u=Math.sin(c*Math.PI),d=s*(1-2*c)*l;F.hips.y-=s*(.08+.14*u),F.hips.x+=d*.04,this.leanHead(d*.14,s*(.04+.06*u));let f=this.pull;F.hips.z-=f*.1,F.hips.y-=f*.03,this.leanHead(0,-f*.2),F.headPitch-=f*.06;let p=this.headTravel(this.scratch,e,t,n,r,i,a);Ae.position.add(p),je.position.add(p)}this.punchCommit=nT(this.punchCommit,+!!this.punchActive,10,n);let Be=this.crowding*(1-this.clinchWeight)*(1-this.punchCommit);if(Be>.001&&(F.headOffset.x-=Be*.075,F.headOffset.z-=Be*.04,F.headYaw-=Be*.2,F.spinePitch-=Be*.07,F.hips.z-=Be*.05,Ae.position.z-=Be*.14,Ae.position.x-=Be*.035*l,je.position.z-=Be*.07),Math.abs(this.headSpace.x)+Math.abs(this.headSpace.y)>.001){let e=this.headSpace.x,t=this.headSpace.y,n=1-this.clinchWeight;F.spinePitch+=t*.7*n,F.spineRoll-=e*.7*n,F.hips.z+=t*.1*n,F.hips.x+=e*.05*n,F.headOffset.x+=e*.05,F.headOffset.z+=t*.05,F.headPitch+=t*.2,F.headRoll-=e*.3}if(this.ropeLean=nT(this.ropeLean,this.referee||this.downState!==`up`?0:this.ropeLeanTarget,ST,n),this.ropeLean>.001){let e=this.ropeLocal.copy(this.ropeOutward).applyAxisAngle(qD,-this.yaw);F.hipsPitch+=e.z*bT*this.ropeLean,F.hipsRoll-=e.x*xT*this.ropeLean}if(this.referee||this.applyReactions(Ae,je,ve,ye),this.punchActive){let e=this.applyPunch(l,Ae,je,ve,ye,Me);this.punchReach=e,this.punchHand===`left`==l>0?Re=Math.max(Re,e):ze=Math.max(ze,e)}if(this.referee&&(Re=ze=this.applyRefereePose(l,Ae,je,ve,ye,r,o,n,e.stunned_ticks),this.applyReactions(Ae,je,ve,ye)),this.clinchWeight>.001&&this.applyClinchPose(this.clinchWeight,r,l,e,t,Ae,je,Me),this.foulWeight>.001){let e=this.foulWeight;F.hips.y-=e*.16,F.spinePitch+=e*.55,F.headPitch+=e*.2,Ae.position.lerp(this.scratch.set(.06*l,.72,.16),e),je.position.lerp(this.scratch.set(-.05*l,.7,.14),e),Ae.pole.set(.6*l,-.6,.5),je.pole.set(-.6*l,-.6,.5)}if(this.tauntWeight>.001){let e=this.tauntEnd===null?0:iT(this.tauntEnd-o,0,tE);this.applyTauntPose(this.tauntWeight,(tE-e)/tE*nE,l,Ae,je,Me)}if(this.dislocation===`shoulder_left`||this.dislocation===`shoulder_right`){let e=this.dislocation===`shoulder_left`?this.hand.L:this.hand.R,t=this.dislocation===`shoulder_left`?1:-1;e.position.set(.24*t,.55,.05),e.pole.set(.9*t,-.3,.2),e.knuckles.set(0,-1,.1),e.palm.set(-t,0,.2)}this.winded>.001&&(this.downState===`up`||E)&&this.applyWindedPose(this.winded,r,l,Ae,je),this.hurt&&this.downState===`up`&&this.applyHurtActs(r,l,ve,ye),this.touchWeight>.001&&this.downState===`up`&&this.applyTouchGlovesPose(this.touchWeight,l,Ae,je),this.celebration>.001&&this.downState===`up`&&this.applyCelebratePose(this.celebration,r,l,Ae,je,ve,ye),this.wave>.001&&this.downState===`up`&&this.applyWaveOffPose(this.wave,r,l,Ae,je),this.squareWeight>.001&&this.downState===`up`&&(this.applyVerdictPose(this.squareWeight,r,l,Ae,je,ve,ye,Me),ve.heel*=1-this.squareWeight,ye.heel*=1-this.squareWeight,Re=R.lerp(Re,this.breath*.15,this.squareWeight),ze=R.lerp(ze,this.breath*.15,this.squareWeight)),(this.wristWeights[0]>.001||this.wristWeights[1]>.001)&&this.downState===`up`&&this.applyRaisePose(l,Ae,je),this.breakWeight>.001&&this.downState===`up`&&this.applyBreakPose(this.breakWeight,l,Ae,je),this.attendWeight>.001&&this.downState===`up`&&this.applyAttendPose(this.attendWeight,r,l,Ae,je),this.treatWeight>.001&&this.downState===`up`&&this.applyTreatPose(this.treatWeight,r,l,Ae,je,ve,ye),this.seated>.001&&this.downState===`up`&&this.applySeatedPose(this.seated,r,l,Ae,je,ve,ye),this.downState!==`up`&&this.applyDownPose(l,Ae,je,ve,ye),this.steadyJointPoles(l,Ae,je,ve,ye,n),Oe=0;let Ve=this.pose;Ve.shrugL=l>0?Re:ze,Ve.shrugR=l>0?ze:Re;let He=this.ragdoll;if(He?.active===!0&&i&&(He.stop(),He.clearRise()),He?.active===!0&&!He.handingOver)He.setLost(c.isDecapitated,c.isHandDismembered(`left`),c.isHandDismembered(`right`)),He.update(n,this.obstacle),this.hurt&&this.dropDangles();else{if(this.solver.apply(c.root,this.pose),He?.handingOver===!0)He.followPose(n,this.obstacle),this.riseProgress>=ET&&He.handOverSeconds>=FT&&(He.letGo(),this.riseBlendAge=0);else if(He!==null&&He.hasRisePose){let e=eS(0,PT,this.riseBlendAge);e<1&&this.downState!==`up`?He.blendRise(e):He.clearRise()}this.hurt&&this.dangleArms(n),He?.sample(n)}this.applyDislocation();let Ue=Math.min(1,(t.trauma.bleeding+t.trauma.left_cut+t.trauma.right_cut+t.trauma.head/4)/300*(a===`off`?0:a===`reduced`?.15:1.5));c.setGloveBlood(Ue),c.setTrunksBlood(sv(e.trauma,a)),ov(c.headInjury,e.trauma,a),cv(c.bodyInjury,e.trauma,a),c.setSkinClearcoat(.25+(1-O)*.4),this.laidOut=!1}applyTauntPose(e,t,n,r,i,a){let o=this.torso,s=.5-.5*Math.cos(t*Math.PI*2);i.position.lerp(this.scratch.set(-.3*n,a.y-.62,.02),e),i.pole.lerp(this.scratch.set(-.5*n,-.4,-.75),e).normalize(),i.knuckles.lerp(this.scratch.set(-.1*n,-.95,.3),e).normalize(),i.palm.lerp(this.scratch.set(0,.3,.95),e).normalize(),r.position.lerp(this.scratch.set(.26*n,a.y-.36+s*.1,.52-s*.24),e),r.pole.lerp(this.scratch.set(.7*n,-.7,.1),e).normalize(),r.knuckles.lerp(this.scratch.set(.1*n,.25+s*.6,.95-s*.7),e).normalize(),r.palm.lerp(this.scratch.set(-.2*n,.95,-.2-s*.5),e).normalize(),o.spinePitch-=e*.12,o.headPitch-=e*.22,o.headYaw+=Math.sin(t*Math.PI)*.15*e,o.shouldersYaw+=Math.sin(t*Math.PI*3)*.1*e,o.hips.x+=Math.sin(t*Math.PI)*.03*e*n,o.headOffset.z+=e*.03}applyClinchPose(e,t,n,r,i,a,o,s){let c=this.torso,l=r.player_idy&&(h.x*=y/v,h.z*=y/v),h.x+=o,h.z+=u,t.position.lerp(h,e),t.pole.lerp(this.clinchTemp.set(r*.85,l?.35:-.6,.25),e).normalize(),t.knuckles.lerp(this.clinchTemp.set(-p*r*.9+f.x*.3,l?-.25:.1,-m*r*.9+f.z*.3),e).normalize(),t.palm.lerp(this.clinchTemp.set(-f.x,l?.1:.35,-f.z),e).normalize()}}holdOnTheRopes(e,t,n){if(this.referee)return this.ropeLeanTarget=0,this.ropeHold.set(0,0,0);this.ropeLeanTarget=CT(t,n,this.ropeExcess,this.ropeOwn);let r=Math.hypot(this.ropeExcess.x,this.ropeExcess.z);r>0&&this.ropeOutward.set(this.ropeExcess.x/r,0,this.ropeExcess.z/r);let i=this.mapping.x(e.x),a=this.mapping.z(e.y);CT(i,a,this.ropeTheirs,this.ropeTheirs);let o=1-eS(gT,_T,Math.hypot(i-t,a-n));return this.ropeHold.set(wT(this.ropeOwn.x,this.ropeTheirs.x*o),0,wT(this.ropeOwn.z,this.ropeTheirs.z*o))}headRestChar(e){let t=this.boxer.rig.metrics;return this.headWorld.set(-.08,t.headHeight-t.hipsHeight+this.torso.hips.y,.02)}syncAction(e,t,n,r){this.shownFighter=e,this.shownOpponent=t;let i=this.ownQueued;if(i!==null&&e.action_id===i.action.id&&(this.ownQueued=null,this.retirePunch(),this.startOwnPunch(i),this.ownPress=!1),e.action_id!==null&&e.action_id!==this.actionId&&e.action_id!==this.completedActionId&&!this.retiredOwnIds.includes(e.action_id)){let t=e.action;if(t!==null){let r=e.action_hand??(e.stance===`orthodox`?`left`:`right`),i=this.ownActionId===e.action_id&&this.punchActive,a=this.punchTiming;this.actionId=e.action_id,this.punchClass=t,this.punchHand=r,this.punchTarget=e.action_target??`head`,this.punchPower=e.action_power??`normal`,this.punchTiming={...N(this.punchClass,this.punchTarget,this.punchPower),startup:e.action_startup_ticks,active:e.action_active_ticks,recovery:e.action_recovery_ticks},this.punchTotalTicks=Math.max(1,e.action_startup_ticks+e.action_active_ticks+e.action_recovery_ticks);let o=Math.max(0,n-e.action_start_tick);i?(this.punchAgeTicks=gO(this.punchAgeTicks,a,this.punchTiming),this.ownAuthoritativeAge=o,this.ownRefused||(this.ownPulled=!1,this.ownCut=!1,o-this.punchAgeTicks>1&&(this.punchAgeTicks=o))):(this.punchAgeTicks=o,this.ownActionId=null,this.ownPress=!1,this.ownLeadTicks=0,this.ownAuthoritativeAge=null),this.ownWaitedTicks=0,this.punchActive=!0}}if(e.action_id===null)this.actionId=null,this.completedActionId=null;else if(e.action_id===this.actionId&&this.punchActive){let t=Math.max(0,n-e.action_start_tick);this.ownActionId===this.actionId?(this.ownAuthoritativeAge=t,!this.ownPulled&&t-this.punchAgeTicks-this.hitstopLag>1.5&&(this.punchAgeTicks=t)):Math.abs(this.punchAgeTicks+this.hitstopLag-t)>1.5&&(this.punchAgeTicks=t,this.hitstopLag=0)}if(this.punchActive&&this.ownActionId!==null&&this.ownAuthoritativeAge===null&&!this.ownPulled&&!this.ownCut&&(this.ownWaitedTicks+=r*30,this.ownWaitedTicks>this.ownExpectedTicks*1.5+YD&&(this.ownPress?!this.ownStarted:this.punchAgeTicks=e,n=this.hitstop>0?0:Math.min(this.hitstopLag,r*30*QD);this.hitstopLag-=n,this.punchAgeTicks+=r*30*(t?ZD:this.ownPunchRate())+n,this.ownPress&&this.ownActionId!==null&&!this.ownCut&&this.punchAgeTicks>=this.punchTiming.startup&&this.pressesLanded.at(-1)!==this.ownActionId&&(this.pressesLanded.push(this.ownActionId),this.pressesLanded.length>6&&this.pressesLanded.shift()),this.punchAgeTicks>=this.punchTotalTicks&&this.retirePunch()}e.is_downed&&(this.punchActive&&this.retirePunch(),this.ownQueued=null),this.releaseQueuedPress(r);let a=this.actionId??this.ownActionId;a!==this.aimActionId&&(this.aimActionId=a,this.followHead=0),this.followHead=nT(this.followHead,+(a!==null&&a===this.contactId),mO,r),this.followReferee=nT(this.followReferee,+(a!==null&&a===this.refereeContactId),mO,r)}trackOpponentHead(e,t,n){let r=this.guardOpponentHead.set(this.mapping.x(e.x),0,this.mapping.z(e.y));this.opponentSteadySeconds=uO.has(e.defense)?0:this.opponentSteadySeconds+n,(!this.hasLiveHead||this.opponentSteadySeconds>=pO)&&this.opponentHeadOffset.copy(t).sub(r),r.add(this.opponentHeadOffset),this.liveOpponentHead.copy(t),this.hasLiveHead=!0}ownPunchRate(){if(this.ownActionId===null||this.ownPress)return 1;let e=this.punchTiming.startup,t=this.ownAuthoritativeAge;return t===null?this.punchAgeTicks0,_=g?t:n,v=g?n:t,y=(g?1:-1)*e,b=+(this.punchPower===`power`),x=+(this.punchTarget===`body`),S,C,w,T=1,E=1,D=0,O=1,k=1,ee=0,A=0;if(ue&&Me.set(Me.x*e/t,Me.y,Me.z*e/t),Me.add(Oe)}else Me.multiplyScalar(Math.min(1,Ae/Math.max(1e-6,n))).add(Oe)}if(fe>i.heel&&(i.heel+=(fe-i.heel)*O),pe>r.heel&&(r.heel+=(pe-r.heel)*O),he>0){let t=this.scratchQ.setFromAxisAngle(qD,-he*e*O);r.toe.applyQuaternion(t),r.pole.applyQuaternion(t)}if(me>0){let t=this.scratchQ.setFromAxisAngle(qD,me*e*O);i.toe.applyQuaternion(t),i.pole.applyQuaternion(t)}let Pe=this.scratchE;switch(m){case`hook`:Pe.set((.1+.03*b)*y,-.05,-.06);break;case`uppercut`:Pe.set(.03*y,-.26,-.04);break;case`straight`:Pe.set(.02*y,-.02,-.04-.05*b);break;default:Pe.set(0,-.01,-.02-.07*b)}Pe.y-=.05*b,Pe.z-=(h?.07:.12)*b;let Fe=this.punchStart.copy(re).addScaledVector(Pe,Math.max(C,h?(1-j)*.6*T:0)),Ie=A*this.punchMiss;if(m===`hook`){let e=Math.hypot(Fe.x-Oe.x,Fe.z-Oe.z),t=Math.hypot(Me.x-Oe.x,Me.z-Oe.z),n=this.punchSweepFrom.copy(Fe).sub(Oe).setY(0).normalize(),r=this.punchSweepTo.copy(Me).sub(Oe).setY(0).normalize(),i=Math.acos(iT(n.dot(r),-1,1)),a=n.z*r.x-n.x*r.z>=0?1:-1,o=eS(0,1,j),s=n.applyAxisAngle(qD,(i*o+.5*Ie)*a).normalize();_.position.copy(Oe).addScaledVector(s,R.lerp(e,t,o)),_.position.y=R.lerp(Fe.y,Me.y,o),_.pole.set(.9*y,.2+.5*(1-x),.25).normalize(),_.knuckles.copy(s).applyAxisAngle(qD,a*Math.PI/2).setY(.05).normalize(),_.palm.set(0,-1,0)}else if(m===`uppercut`){let e=eS(0,1,j),t=this.punchMid.set(Fe.x+(Me.x-Fe.x)*.6,Math.min(Fe.y,Me.y-.12),Fe.z+(Me.z-Fe.z)*.75);_.position.copy(Fe).multiplyScalar((1-e)*(1-e)).addScaledVector(t,2*(1-e)*e).addScaledVector(Me,e*e),_.position.y+=.05*ee+.14*Ie,_.pole.set(.3*y,-1,-.1).normalize(),_.knuckles.set(.05*y,.9,.35).normalize(),_.palm.set(-.2*y,.3,-.95).normalize()}else{_.position.copy(Fe).lerp(Me,Math.min(1,j)).addScaledVector(ke,.14*Ie),_.position.y+=Math.sin(iT(j,0,1)*Math.PI)*.025,_.pole.set(.55*y,-.9,.35);let e=eS(.55,1,j);_.knuckles.copy(ke).lerp(this.scratchC.set(.1*y,.55,.8),1-e).normalize(),_.palm.set(-.9*y,.2,-.3).lerp(this.scratchC.set(0,-1,.1),e).normalize()}if(M>0&&(_.position.lerp(re,M),_.knuckles.lerp(ie,M).normalize(),_.palm.lerp(N,M).normalize(),_.pole.lerp(ae,M).normalize()),E<1){let e=(1-_.pole.dot(ae)/Math.max(1e-6,_.pole.length()*ae.length()))/2,t=Math.sin(Math.PI*E);_.knuckles.lerp(ie,1-E).normalize(),_.palm.lerp(N,1-E).normalize(),_.pole.lerp(ae,1-E).addScaledVector(this.scratchC.set(y,0,0),hO*e*t*t).normalize()}let Le=this.scratchE.set(-.11*y,a.y-.13,.13+a.z);v.position.lerp(Le,Math.max(k,te)*.8).add(this.headTravel(this.scratchC,ve,ye,be,xe,Se,Ce));let Re=this.hasLiveHead?eS(.08,.2,this.guardOpponentHead.distanceTo(this.liveOpponentHead))*(1-this.followHead):0;return this.punchMiss=Math.max(eS(.02,.12,Ne),Re),te}hurtRandom(){return this.hurtSeed=Math.imul(this.hurtSeed,1664525)+1013904223>>>0,this.hurtSeed/4294967296}applyReactions(e,t,n,r){let i=this.torso,a=this.headKick.value;i.headOffset.addScaledVector(a,.4),this.leanHead(a.x*.6,a.z*.6),i.headPitch+=a.z*2.6-a.y*2,i.headYaw+=a.x*2.6,i.headRoll+=-a.x*1.1,i.shouldersYaw+=this.torsoKick.value.y,i.hipsYaw+=this.torsoKick.value.y*.4,i.spinePitch+=this.torsoKick.value.x,i.spineRoll+=this.torsoKick.value.z*.5,i.hips.x+=this.rootKick.value.x,i.hips.z+=this.rootKick.value.z,i.hips.y-=Math.max(0,this.torsoKick.value.x)*.08,this.torsoKick.value.x>.05&&(e.position.y-=this.torsoKick.value.x*.25,t.position.y-=this.torsoKick.value.x*.2,e.position.z-=this.torsoKick.value.x*.1);let o=Math.max(0,this.rootKick.value.y);i.hips.y+=this.downState===`up`?this.rootKick.value.y:o,n.heel+=o*6,r.heel+=o*6;let s=this.coverKick.value.x;if(Math.abs(s)>.002){let e=s>0?this.hand.R:this.hand.L;e.position.y-=Math.abs(s)*.9,e.position.x+=s*.2,e.position.z-=Math.abs(s)*.25,e.pole.y-=Math.abs(s)*3}let c=this.hand.L.position,l=this.hand.R.position;c.add(this.armKick.value),l.addScaledVector(this.armKick.value,.8);let u=eS(0,1,this.handsDrop);c.set(c.x+.07*u,c.y-.24*u,c.z-.04*u),l.set(l.x-.07*u,l.y-.22*u,l.z-.03*u),i.hips.y-=this.guardKick*.02;let d=this.downState===`up`&&!this.referee?this.stunAmount:0;if(d>.01){let e=this.rockedTime,t=this.rockedPhase,n=Math.max(0,Math.sin(e*3.3+t)*Math.sin(e*1.9+t*1.7)),r=.5+.5*Math.sin(e*1.1+t*1.7);i.hips.y-=d*(.02+.08*n),i.hips.x+=d*.04*Math.sin(e*2.1+t*2.9),i.hips.z+=d*.03*Math.sin(e*1.3+t),i.headRoll+=d*.2*Math.sin(e*2.1+t*2.9-1.1),i.headPitch+=d*.1*Math.sin(e*1.3+t-.9),c.set(c.x+d*.07*r,c.y-d*.05*r,c.z),l.set(l.x-d*.07*r,l.y-d*.08*(1-r),l.z)}}legRoom(e,t){let n=this.torso,r=e.position.x-n.hips.x-t*Xx.x*Math.cos(n.hipsYaw),i=e.position.z-n.hips.z+t*Xx.x*Math.sin(n.hipsYaw);return e.position.y+Math.sqrt(Math.max(.04,HT*HT-r*r-i*i))-Xx.y}applyRefereePose(e,t,n,r,i,a,o,s,c=0){let l=this.torso,u=R.lerp,d=this.countWeight=nT(this.countWeight,+!!this.refereeCounting,5,s),f=Math.sin(a*.7)*.08,p=this.refereeCounting?.75:.06;if(this.breakAimed){let e=G.copy(this.watching?this.watchPoint:this.breakFighters[Math.sin(this.weightPhase*.32)+Math.sin(this.weightPhase*.125)>0?0:1]);this.watching||(e.y=WT-.1),e.x-=this.rootX??0,e.z-=this.rootZ,e.applyAxisAngle(qD,-this.yaw),f=iT(Math.atan2(e.x,e.z),-1,1)*.85,p=iT(Math.atan2(WT-e.y,Math.hypot(e.x,e.z)),-.2,.85)}this.gazeYaw=nT(this.gazeYaw,f,6,s),this.gazePitch=nT(this.gazePitch,p,6,s);let m=d*eS(.2,.6,this.gazePitch),h=Math.sin(a*1.6),g=Math.sin(this.weightPhase*.35)*.02+Math.sin(this.weightPhase*.9+1)*.006,_=Math.hypot(this.travel.x,this.travel.z),v=Math.min(1,_/.4);l.hipsYaw=this.strideYaw*.7,l.shouldersYaw=this.strideYaw*.2+this.gazeYaw*.25,l.hipsPitch=.04+m*.2,l.hipsRoll=0,l.spinePitch=.1+h*.008+iT(this.travel.z,-1,1.5)*.04+d*.06+m*.3,l.spineRoll=-g*.6-this.travel.x*.03,l.headYaw=this.gazeYaw,l.headPitch=.04+this.gazePitch,l.headRoll=0,l.hips.set(g,0,-m*.1);let y=this.footYaw[e>0?0:1]-this.yaw,b=this.footYaw[+(e>0)]-this.yaw;r.toe.set(Math.sin(y),0,Math.cos(y)),i.toe.set(Math.sin(b),0,Math.cos(b)),r.pole.copy(r.toe).setY(.3).normalize(),i.pole.copy(i.toe).setY(.3).normalize();let x=_>.001?v/_:0;r.heel=iT((-(r.position.x*this.travel.x+r.position.z*this.travel.z)*x-.08)*3.5,0,.75),i.heel=iT((-(i.position.x*this.travel.x+i.position.z*this.travel.z)*x-.08)*3.5,0,.75);let S=((r.position.x-i.position.x)*this.travel.x+(r.position.z-i.position.z)*this.travel.z)*(x/Math.max(_,.001))*.1;l.hips.y=Math.max(VT-.14,Math.min(VT-m*.05,this.legRoom(r,e),this.legRoom(i,-e)));let C=l.hips.y+.24+h*.004;if(t.position.set(.16*e-this.travel.x*S,C,.3-this.travel.z*S),n.position.set(-.16*e+this.travel.x*S,C-.015,.28+this.travel.z*S),t.pole.set(.7*e,-.5,-.5).normalize(),n.pole.set(-.7*e,-.5,-.5).normalize(),t.knuckles.set(-.35*e,.05,.9).normalize(),n.knuckles.set(.35*e,.05,.9).normalize(),t.palm.set(-.65*e,-.75,.05).normalize(),n.palm.set(.65*e,-.75,.05).normalize(),d>.001){if(this.refereeCounting){this.countChangedTick??=o;let e=iT((o-this.countChangedTick)/te,0,1);this.countPump=e.001&&(l.spinePitch=u(l.spinePitch,-.04,w),t.position.lerp(G.set(.32*e,l.hips.y+.6,.2),w),n.position.lerp(G.set(-.32*e,l.hips.y+.6,.2),w),t.knuckles.lerp(G.set(.1*e,1,.1),w).normalize(),n.knuckles.lerp(G.set(-.1*e,1,.1),w).normalize(),t.palm.lerp(G.set(0,.1,1),w).normalize(),n.palm.lerp(G.set(0,.1,1),w).normalize(),t.pole.lerp(G.set(.6*e,-.8,-.1),w).normalize(),n.pole.lerp(G.set(-.6*e,-.8,-.1),w).normalize()),c>0){let r=Math.min(1,c/12),i=Math.sin(a*9.5);l.hips.y-=.09*r,l.hips.x+=i*.05*r,l.spineRoll+=i*.18*r,l.headRoll-=i*.35*r,l.headPitch+=.25*r,t.position.x+=.18*e*r,n.position.x-=.18*e*r,t.position.y-=.1*r,n.position.y-=.1*r}return .05+h*.025}updateDownState(e,t,n,r){if(this.riseBlendAge+=t,e.is_downed||this.forcedDown||this.dead){if(this.downState===`up`||this.downState===`rising`||this.deathFall)this.deathFall=!1,this.fallFromGetUp=this.downState!==`up`,this.fallFromGetUp&&(zD(this.fallStart,this.downResult),this.fallStartStand=this.downStand),this.downState=`falling`,this.fallAge=0,this.riseProgress=0,this.riseRootFrom.copy(this.riseRoot),this.landSettled=!1,this.fallenFromPhysics=!1,this.downPolesSet=!1,this.ragdoll?.clearRise(),this.authoredNextFall?this.ragdoll?.forget():n||this.startFall(e),this.authoredNextFall=!1;else if(this.downState===`falling`)this.fallAge+=t,this.fallAge>=TT&&(this.downState=`down`);else if(this.fallKneel)this.riseProgress=DT;else{let n=(!this.forcedDown&&!this.heldDown&&!this.dead&&e.get_up_required>0?iT(e.get_up_meter/e.get_up_required,0,1):0)*DT;if(this.ragdoll?.active===!0&&!this.ragdoll.handingOver){if(n<=0)return;this.handOverFall(e)}this.riseProgress+=iT(n-this.riseProgress,-.4*t,AT*t)}return}if((this.downState===`down`||this.downState===`falling`)&&(this.downState=`rising`,this.ragdoll?.active===!0&&!this.ragdoll.handingOver&&this.handOverFall(e),this.fallKneel&&(this.riseProgress=Math.max(this.riseProgress,DT)),this.riseFrom=this.riseProgress,this.feetInitialized=!1),this.downState!==`rising`)return;let i=r>.3||this.punchActive,a=(1-this.riseFrom)/(i?kT:OT);this.riseProgress=Math.min(1,this.riseProgress+(this.riseProgress=1&&(this.downState=`up`,this.fallKneel=!1)}startFall(e){let t=this.ragdoll;t!==null&&(this.rootX!==null&&Math.hypot(this.place.x-this.rootX,this.place.z-this.rootZ)>IT&&(this.rootX=this.place.x,this.rootZ=this.place.z,this.boxer.root.position.set(this.rootX,0,this.rootZ)),t.start(this.dead?this.deathStyle:`crumple`),e.get_up_count>0&&!this.dead&&(t.settle(),this.fallAge=TT))}handOverFall(e){let t=this.ragdoll;if(t===null||!t.active||t.handingOver)return;let n=e.stance===`orthodox`?1:-1,r=this.boxer.rig.bones;this.boxer.root.updateMatrixWorld(!0);let i=this.scratchC.set(this.rootX??0,0,this.rootZ),a=this.scratchQ.setFromAxisAngle(qD,-this.yaw),o=this.fallen,s=(e,t)=>t.setFromMatrixPosition(e.matrixWorld).sub(i).applyQuaternion(a),c=(e,t,n,r)=>AD(hD.setFromQuaternion(e.getWorldQuaternion(mD).premultiply(a),`YXZ`),t,n,r);s(r.hips,o.hips),this.landProne=t.faceDown();let l=Math.abs(o.hips.x)>.12?Math.sign(o.hips.x):0,u=this.landProne?ED(this.downTo,SD,CD,n,l,this.boxer.rig.metrics.ankleHeight):ED(this.downTo,bD,xD,n,l,this.boxer.rig.metrics.ankleHeight);this.landSide=l,this.landShift.set(o.hips.x-u.hips.x,0,o.hips.z-u.hips.z);let d=c(r.hips,u.hipsPitch,u.hipsYaw,u.hipsRoll);o.hipsPitch=d.x,o.hipsYaw=d.y,o.hipsRoll=d.z;let f=c(r.upperChest,o.hipsPitch,o.hipsYaw,o.hipsRoll);o.shouldersYaw=f.y,o.spinePitch=f.x-o.hipsPitch,o.spineRoll=f.z-o.hipsRoll;let p=c(r.head,f.x,f.y,f.z);o.headPitch=p.x,o.turn=p.y,o.headRoll=p.z,s(n>0?r.gloveL:r.gloveR,o.leadHand),s(n>0?r.gloveR:r.gloveL,o.rearHand),s(n>0?r.ankleL:r.ankleR,o.leadFoot),s(n>0?r.ankleR:r.ankleL,o.rearFoot);let m=this.boxer.rig.metrics.ankleHeight;o.leadFoot.y=Math.max(o.leadFoot.y,m),o.rearFoot.y=Math.max(o.rearFoot.y,m);let h=(e,t,n,r,i)=>{let o=s(e,this.scratchB),c=s(n,this.scratchD).sub(o).normalize();s(t,r).sub(o),r.addScaledVector(sD.copy(i).applyQuaternion(e.getWorldQuaternion(mD)).applyQuaternion(a),pD),r.addScaledVector(c,-r.dot(c)),r.lengthSq()>1e-6?r.normalize():r.copy(i===uD?cD:lD)},g=n>0;h(g?r.hipL:r.hipR,g?r.kneeL:r.kneeR,g?r.ankleL:r.ankleR,o.leadKnee,uD),h(g?r.hipR:r.hipL,g?r.kneeR:r.kneeL,g?r.ankleR:r.ankleL,o.rearKnee,uD),h(g?r.shoulderL:r.shoulderR,g?r.elbowL:r.elbowR,g?r.gloveL:r.gloveR,o.leadElbow,g?dD:fD),h(g?r.shoulderR:r.shoulderL,g?r.elbowR:r.elbowL,g?r.gloveR:r.gloveL,o.rearElbow,g?fD:dD);let _=(e,t,n)=>{let r=e.getWorldQuaternion(mD).premultiply(a);t.set(0,1,0).applyQuaternion(r),n.set(0,0,1).applyQuaternion(r)};_(g?r.gloveL:r.gloveR,o.leadKnuckles,o.leadPalm),_(g?r.gloveR:r.gloveL,o.rearKnuckles,o.rearPalm),o.ownJoints=1,o.leadHeel=0,o.rearHeel=0,o.palmsDown=+!!this.landProne,this.fallenFromPhysics=!0,this.landSettled=!0,this.downPolesSet=!1,t.handOver(),this.riseBlendAge=0;let v=this.scratchE.set(t.pelvis(this.scratchD).x-(this.rootX??0),0,this.scratchD.z-this.rootZ),y=this.scratchB.copy(v).applyQuaternion(a);for(let e of[o.hips,o.leadHand,o.rearHand,o.leadFoot,o.rearFoot])e.x-=y.x,e.z-=y.z;t.shiftRise(this.scratchC.copy(v).negate()),this.rootX=(this.rootX??0)+v.x,this.rootZ+=v.z,this.boxer.root.position.set(this.rootX,0,this.rootZ),this.riseRoot.set(this.rootX-this.mapping.x(e.x)-this.touchOffset.x,0,this.rootZ-this.mapping.z(e.y)-this.touchOffset.z),this.riseRootFrom.copy(this.riseRoot)}walkBackFromTheFall(e){let t=this.downState===`rising`?1-eS(DT,1,this.riseProgress):this.downState===`up`?0:1,n=this.riseRootFrom.x*t,r=this.riseRootFrom.z*t;e>0?this.riseRootVelocity.set((n-this.riseRoot.x)/e,0,(r-this.riseRoot.z)/e):this.riseRootVelocity.set(0,0,0),this.riseRoot.set(n,0,r),t===0&&this.riseRootFrom.set(0,0,0)}steadyJointPoles(e,t,n,r,i,a){if(this.poleSettle=this.downState===`up`?Math.max(0,this.poleSettle-a):NT,this.poleSettle<=0||this.ragdoll?.active===!0&&!this.ragdoll.handingOver){this.downPolesSet=!1;return}let o=this.boxer.rig.bones,s=e>0;this.characterInverse.copy(this.boxer.root.matrixWorld).invert();for(let e=0;e<4;e+=1){let c=e<2,l=e%2==0,u=l===s,d=c?u?o.hipL:o.hipR:u?o.shoulderL:o.shoulderR,f=c?l?r:i:l?t:n,p=f.position,m=f.pole,h=this.downPoles[e];if(!this.downPolesSet){h.copy(m);continue}let g=this.scratchB.setFromMatrixPosition(d.matrixWorld).applyMatrix4(this.characterInverse).sub(p).negate();if(g.lengthSq()<1e-6){h.copy(m);continue}g.normalize();let _=this.scratchD.copy(h).addScaledVector(g,-h.dot(g)),v=this.scratchE.copy(m).addScaledVector(g,-m.dot(g));if(_.lengthSq()<1e-4||v.lengthSq()<1e-4){h.copy(m);continue}let y=Math.atan2(this.scratch.crossVectors(_,v).dot(g),_.dot(v)),b=MT*Math.max(a,1/120);Math.abs(y)<=b||m.copy(_.normalize().applyAxisAngle(g,Math.sign(y)*b)),h.copy(m)}this.downPolesSet=!0}applyWindedPose(e,t,n,r,i){let a=this.torso,o=R.lerp,s=this.windedSide,c=Math.sin(t*23)*.006;a.hips.y=o(a.hips.y,hS.hipsHeight-.1,e),a.hips.z=o(a.hips.z,-.04,e),a.hipsPitch=o(a.hipsPitch,.2,e),a.spinePitch=o(a.spinePitch,.62+c,e),a.spineRoll=o(a.spineRoll,s*.16,e),a.headPitch=o(a.headPitch,.38,e);let l=s>0?this.hand.L:this.hand.R,u=l===r?i:r;l.position.lerp(G.set(s*.13,.98,.17),e),l.palm.lerp(G.set(-s*.6,0,-.8),e).normalize(),l.knuckles.lerp(G.set(-s*.5,.5,.2),e).normalize(),l.pole.lerp(G.set(s*.9,-.3,-.3),e).normalize(),u.position.lerp(G.set(-s*.2,.86,.3),e),u.pole.lerp(G.set(-s*.8,-.6,0),e).normalize()}applyTouchGlovesPose(e,t,n,r){let i=this.torso,a=R.lerp;i.hips.z=a(i.hips.z,.06,e),i.hipsYaw=a(i.hipsYaw,i.hipsYaw*.4,e),i.shouldersYaw=a(i.shouldersYaw,0,e),i.spinePitch=a(i.spinePitch,.12,e),i.headPitch=a(i.headPitch,.1,e),n.position.lerp(G.set(.11*t,1.24,.5),e),r.position.lerp(G.set(-.11*t,1.22,.47),e),n.palm.lerp(G.set(-t,0,0),e).normalize(),r.palm.lerp(G.set(t,0,0),e).normalize(),n.knuckles.lerp(G.set(0,.15,1),e).normalize(),r.knuckles.lerp(G.set(0,.15,1),e).normalize(),n.pole.lerp(G.set(.7*t,-.7,0),e).normalize(),r.pole.lerp(G.set(-.7*t,-.7,0),e).normalize()}touchWalk(e,t,n,r){this.countdownEnd=HD(this.countdownEnd,r,this.countdownTicks);let i=this.countdownEnd===null?0:UD(this.countdownEnd-r),a=this.mapping.x(t.x)-this.mapping.x(e.x),o=this.mapping.z(t.y)-this.mapping.z(e.y),s=Math.hypot(a,o),c=s>YT?(s-YT)/2/s*i:0;return this.touchVelocity.set(a*c-this.touchOffset.x,0,o*c-this.touchOffset.z).divideScalar(Math.max(n,.001)).clampLength(0,eE),this.touchOffset.set(a*c,0,o*c)}applyCelebratePose(e,t,n,r,i,a,o){let s=this.torso,c=R.lerp,l=Math.sin(t*6)*.04;s.hips.y=c(s.hips.y,hS.hipsHeight+.035+l*.5,e),s.hipsYaw=c(s.hipsYaw,0,e),s.hipsPitch=c(s.hipsPitch,-.12,e),s.hipsRoll=c(s.hipsRoll,0,e),s.shouldersYaw=c(s.shouldersYaw,0,e),s.spinePitch=c(s.spinePitch,-.1,e),s.headPitch=c(s.headPitch,-.25,e),r.position.lerp(G.set(.3*n,1.86+l,.08),e),i.position.lerp(G.set(-.3*n,1.84+l,.06),e),r.palm.lerp(G.set(0,0,1),e).normalize(),i.palm.lerp(G.set(0,0,1),e).normalize(),r.knuckles.lerp(G.set(.15*n,1,0),e).normalize(),i.knuckles.lerp(G.set(-.15*n,1,0),e).normalize(),r.pole.lerp(G.set(n,.1,-.3),e).normalize(),i.pole.lerp(G.set(-n,.1,-.3),e).normalize(),a.heel=c(a.heel,.45,e),o.heel=c(o.heel,.45,e)}kneelLegs(e,t,n,r,i){let a=R.lerp;n.position.x=a(n.position.x,.24*t,e),n.position.z=a(n.position.z,i+.3,e),r.position.x=a(r.position.x,-.18*t,e),r.position.z=a(r.position.z,i-.66,e),n.heel=a(n.heel,0,e),r.heel=a(r.heel,1.25,e),n.toe.lerp(this.treatScratch.set(.2*t,0,1),e).normalize(),r.toe.lerp(this.treatScratch.set(-.1*t,0,1),e).normalize(),n.pole.lerp(this.treatScratch.set(.25*t,.4,1),e).normalize(),r.pole.lerp(this.treatScratch.set(-.05*t,-.8,.6),e).normalize()}applyAttendPose(e,t,n,r,i){let a=this.torso,o=R.lerp,s=Math.sin(t*3.1)*.5+Math.sin(t*5.3+1)*.5;a.hips.z=o(a.hips.z,.12,e),a.hips.y=o(a.hips.y,VT-.06,e),a.hipsPitch=o(a.hipsPitch,.3,e),a.spinePitch=o(a.spinePitch,.42,e),a.headPitch=o(a.headPitch,.4+s*.05,e),a.headYaw=o(a.headYaw,Math.sin(t*1.3)*.08,e),r.position.lerp(G.set(.2*n,1.36+s*.06,.6+s*.04),e),i.position.lerp(G.set(-.14*n,1.23,.6),e),r.palm.lerp(G.set(-.8*n,-.2,.5),e).normalize(),i.palm.lerp(G.set(0,-.9,.3),e).normalize(),r.knuckles.lerp(G.set(.1*n,.5,1),e).normalize(),i.knuckles.lerp(G.set(.8*n,.1,.6),e).normalize(),r.pole.lerp(G.set(.8*n,-.5,-.1),e).normalize(),i.pole.lerp(G.set(-n,-.1,.1),e).normalize();let c=this.mournWeight*e;if(c>.001){a.hipsPitch=o(a.hipsPitch,.1,c),a.spinePitch=o(a.spinePitch,.28,c),a.headPitch=o(a.headPitch,.55,c),a.headYaw=o(a.headYaw,0,c);let e=a.hips.y+.76;r.position.lerp(G.set(.14*n,e,.4),c),i.position.lerp(G.set(-.14*n,e,.4),c),r.knuckles.lerp(G.set(-.35*n,.9,0),c).normalize(),i.knuckles.lerp(G.set(.35*n,.9,0),c).normalize(),r.palm.lerp(G.set(-n,-.2,0),c).normalize(),i.palm.lerp(G.set(n,-.2,0),c).normalize(),r.pole.lerp(G.set(n,-.2,.3),c).normalize(),i.pole.lerp(G.set(-n,-.2,.3),c).normalize()}let l=this.cheerWeight*e;if(l>.001){let e=Math.sin(t*8.5);a.hips.z=o(a.hips.z,.04,l),a.hipsPitch=o(a.hipsPitch,-.02,l),a.spinePitch=o(a.spinePitch,-.06,l),a.spineRoll=o(a.spineRoll,e*.05,l),a.headPitch=o(a.headPitch,-.2,l);let s=a.hips.y+.93+e*.05;r.position.lerp(G.set(.36*n,s,.06),l),i.position.lerp(G.set(-.36*n,s-e*.06,.06),l),r.knuckles.lerp(G.set(.15*n,1,0),l).normalize(),i.knuckles.lerp(G.set(-.15*n,1,0),l).normalize(),r.palm.lerp(G.set(0,0,1),l).normalize(),i.palm.lerp(G.set(0,0,1),l).normalize(),r.pole.lerp(G.set(n,-.3,-.2),l).normalize(),i.pole.lerp(G.set(-n,-.3,-.2),l).normalize()}}applyTreatPose(e,t,n,r,i,a,o){let s=this.torso,c=R.lerp,l=this.treatScratch.set(this.rootX??0,0,this.rootZ),u=this.scratchQ.setFromAxisAngle(qD,-this.yaw),d=G.copy(this.treatTarget).sub(l).applyQuaternion(u),f=this.treatFacingLocal.copy(this.treatFacing).applyQuaternion(u),p=f.z,m=-f.x,h=this.treatUrgency,g=t*c(2.6,7,h),_=Math.sin(g)*c(.006,.016,h),v=Math.cos(g)*.03*h;s.hips.lerp(this.treatScratch.set(0,.5,.1),e),s.hipsYaw=c(s.hipsYaw,0,e),s.hipsPitch=c(s.hipsPitch,.14,e),s.hipsRoll=c(s.hipsRoll,0,e),s.shouldersYaw=c(s.shouldersYaw,0,e),s.spinePitch=c(s.spinePitch,.26,e),s.headYaw=c(s.headYaw,iT(Math.atan2(d.x,d.z-.25),-.6,.6),e),s.headPitch=c(s.headPitch,iT(Math.atan2(1.12-d.y,Math.hypot(d.x,d.z-.25)),-.5,.6),e),this.kneelLegs(e,n,a,o,.1);let y=this.treatProp===`bottle`,b=y?.3:.08-_;r.position.lerp(this.treatScratch.set(d.x+f.x*b+p*v,d.y+(y?.02:-.07),d.z+f.z*b+m*v),e),y?r.knuckles.lerp(this.treatScratch.set(-f.x,-.25,-f.z),e).normalize():r.knuckles.lerp(this.treatScratch.set(0,1,.05),e).normalize(),r.palm.lerp(y?this.treatScratch.set(0,-1,0):this.treatScratch.set(-f.x,0,-f.z),e).normalize(),r.pole.lerp(this.treatScratch.set(.85*n,-.35,.1),e).normalize();let x=this.treatSide*.135;i.position.lerp(this.treatScratch.set(d.x-p*x+f.x*.05,d.y-.2,d.z-m*x+f.z*.05),e),i.knuckles.lerp(this.treatScratch.set(0,.9,.4),e).normalize(),i.palm.lerp(this.treatScratch.set(p*this.treatSide*.8-f.x*.6,.1,m*this.treatSide*.8-f.z*.6),e).normalize(),i.pole.lerp(this.treatScratch.set(-.85*n,-.4,.1),e).normalize()}applyBreakPose(e,t,n,r){let i=this.torso,a=R.lerp;i.hipsPitch=a(i.hipsPitch,.14,e),i.spinePitch=a(i.spinePitch,.2,e);let o=this.scratchC.set(.48*t,1.22,.52),s=this.scratchD.set(-.48*t,1.22,.52);if(this.breakAimed){let[e,n]=this.breakFighters,r=this.scratch.subVectors(n,e).setY(0).normalize(),i=this.scratchQ.setFromAxisAngle(qD,-this.yaw),a=this.scratchB.set(this.rootX??0,0,this.rootZ);o.copy(e).addScaledVector(r,GT).sub(a).applyQuaternion(i),s.copy(n).addScaledVector(r,-GT).sub(a).applyQuaternion(i),o.x*tTT*.15;let s=this.downResult;if(this.downState!==`falling`){let a=this.riseProgress,c=0;if(this.fallKneel)c=eS(DT,1,a),BD(s,this.placeKneel(this.downFrom,e),o,c);else if(a0==t>0;return e.hips.set(.02*t,.53,-.06),e.hipsYaw=hS.bladeYaw*t*.3,e.hipsPitch=.24,e.hipsRoll=0,e.shouldersYaw=hS.bladeYaw*t*.2,e.spinePitch=.62,e.headPitch=.48,(r?e.leadHand:e.rearHand).set(n*.13,.66,.2),(r?e.rearHand:e.leadHand).set(.13*t,.66,.37),e.leadFoot.set(.16*t,.125,.32),e.rearFoot.set(-.12*t,.12,-.5),e.leadHeel=0,e.rearHeel=0,e.palmsDown=1,e}placeLying(e){let t=this.boxer.rig.metrics.ankleHeight;return jD(this.landProne?ED(this.downFrom,SD,CD,e,this.landSide,t):ED(this.downFrom,bD,xD,e,this.landSide,t),this.landShift)}placeDown(e,t,n){return ED(e,t,null,n,0,this.boxer.rig.metrics.ankleHeight)}chooseLanding(e){let t=this.boxer.rig.metrics.ankleHeight,n=1/0;for(let r=0;r=n||(n=u.length()+o,this.landProne=s,this.landSide=c,this.landShift.copy(u))}}ropeShift(e,t){let n=this.scratchQ.setFromAxisAngle(qD,this.yaw);hD.set(e.hipsPitch+e.spinePitch*.7,e.hipsYaw,e.hipsRoll,`YXZ`),FD[0].set(0,ND,0).applyEuler(hD).add(e.hips),FD[1].set(.2,PD,0).applyEuler(hD).add(e.hips),FD[2].set(-.2,PD,0).applyEuler(hD).add(e.hips),FD[3].copy(e.leadHand),FD[4].copy(e.rearHand),FD[5].copy(e.leadFoot).z+=e.leadHeel>0?.25:.19,FD[6].copy(e.rearFoot).z+=e.rearHeel>0?.25:.19,FD[7].copy(e.hips);let r=1/0,i=-1/0,a=1/0,o=-1/0;for(let e=0;e0==t>0,c=s?n:r,l=s?r:n;i.pole.lerp(G.set(.15*t,.35,1),e).normalize(),a.pole.lerp(G.set(-.1*t,-1,.3),e).normalize(),i.toe.lerp(G.set(.15*t,0,1),e).normalize(),a.toe.lerp(G.set(0,-.35,-1),e).normalize(),c.palm.lerp(G.set(-o*.75,0,-.65),e).normalize(),c.knuckles.lerp(G.set(-o*.35,.25,.9),e).normalize(),c.pole.lerp(G.set(o*.9,-.35,-.25),e).normalize(),l.palm.lerp(G.set(0,-1,.1),e).normalize(),l.knuckles.lerp(G.set(.2*t,-.2,1),e).normalize(),l.pole.lerp(G.set(t*.7,.1,-.7),e).normalize()}writeDown(e,t,n,r,i,a,o,s){let c=this.torso,l=1-s;this.downStand=s,c.hips.copy(e.hips),c.hipsYaw=e.hipsYaw,c.hipsPitch=e.hipsPitch,c.hipsRoll=e.hipsRoll,c.shouldersYaw=e.shouldersYaw,c.spinePitch=e.spinePitch,c.spineRoll=c.spineRoll*s+e.spineRoll,c.headPitch=e.headPitch,c.headYaw=c.headYaw*s+e.turn,c.headRoll=c.headRoll*s+e.headRoll,c.headOffset.multiplyScalar(s),c.headOffset.z-=o,n.position.copy(e.leadHand),r.position.copy(e.rearHand),vD(n,t,e.palmsDown,l),vD(r,-t,e.palmsDown,l),i.position.copy(e.leadFoot),a.position.copy(e.rearFoot),i.toe.lerp(sD.set(.2*t,0,1).normalize(),l).normalize(),a.toe.lerp(sD.set(-.2*t,0,1).normalize(),l).normalize(),i.heel=e.leadHeel,a.heel=e.rearHeel;let u=sD.set(0,0,1).applyEuler(hD.set(e.hipsPitch,e.hipsYaw,e.hipsRoll,`YXZ`));if(i.pole.lerp(u,l),a.pole.lerp(u,l),e.ownJoints>0){let t=e.ownJoints*l;kD(i.pole,e.leadKnee,t),kD(a.pole,e.rearKnee,t),kD(n.pole,e.leadElbow,t),kD(r.pole,e.rearElbow,t),kD(n.knuckles,e.leadKnuckles,t),kD(n.palm,e.leadPalm,t),kD(r.knuckles,e.rearKnuckles,t),kD(r.palm,e.rearPalm,t)}}calmInjuries(){this.armLimp.fill(0),this.armSnap.fill(0),this.kneeGive.fill(0),this.lostLean=0,this.cover=0,this.hunch=0,this.curl=0,this.faint=0,this.retching=0,this.daze=0,this.stepPace.fill(1),this.stepLift.fill(1),this.stepSlack=1,this.hurt=!1,this.dropDangles()}dropDangles(){for(let e=0;e<2;e+=1)this.armDangle[e].live=!1,this.forearmDangle[e].live=!1}stepInjuries(e){this.retchTime=Math.max(0,this.retchTime-e);let t=this.posedInjuries>1||this.faintTarget>0||this.retchTime>0||this.dazed;if(!t&&!this.hurt)return;let n=this.downState===`up`,r=0;for(let t=0;t<2;t+=1){let n=this.armCarry[t];this.armLimp[t]=nT(this.armLimp[t],+(n===`dead`||n===`gone`),TE,e),this.armSnap[t]=nT(this.armSnap[t],+(n===`snapped`),TE,e),this.kneeGive[t]=nT(this.kneeGive[t],+!!this.kneeBlown[t],8,e),r=Math.max(r,this.armLimp[t],this.armSnap[t],this.kneeGive[t])}let i=this.armCarry[0],a=this.armCarry[1],o=i===`whole`||i===`stump`,s=a===`whole`||a===`stump`;this.cover=nT(this.cover,o===s?0:o?1:-1,6,e),this.lostLean=nT(this.lostLean,(i===`gone`)-+(a===`gone`),4,e),this.hunch=nT(this.hunch,+!!this.gutted,5,e),this.curl=nT(this.curl,+!!this.liver,4,e),this.faint=nT(this.faint,this.faintTarget,2.5,e);let c=this.retchTime>0&&n;this.retching=nT(this.retching,+!!c,c?12:5,e);let l=this.dazed&&n;if(this.daze=nT(this.daze,+!!l,l?8:5,e),this.dazeTime=this.daze>.001?this.dazeTime+e:0,r=Math.max(r,Math.abs(this.cover),Math.abs(this.lostLean),this.hunch,this.curl,this.faint,this.retching,this.daze),!t&&r<.001){this.calmInjuries();return}this.hurt=!0;let u=this.hunch,d=this.faint,f=this.daze;this.stepSlack=(1-.3*u)*(1-.55*f);for(let e=0;e<2;e+=1){let t=this.kneeGive[e],n=this.kneeGive[1-e];this.stepPace[e]=(1-.4*n)*(1+.25*t)*(1-.25*u)*(1+.15*d)*(1+.2*f),this.stepLift[e]=(1-.5*t)*(1-.6*u)*(1-.75*d)*(1-.4*f)}}stepDeath(e){if(!(!this.dead||this.throe>=wE.length))for(this.deathAge+=e;this.throe=wE[this.throe].at;){let e=wE[this.throe];this.ragdoll?.twitch(e.part,(this.throe+this.throeSide)%2,e.speed),this.throe+=1}}stumble(e,t,n){let r=this.dazeTime;t.add(this.scratchD.set(Math.sin(r*1.7+e*2.1)*.07,0,Math.sin(r*1.25+e*1.3)*.06).multiplyScalar(this.daze).applyAxisAngle(qD,n))}applyHurtStance(e,t,n,r,i){let a=this.torso,o=0,s=0,c=0,l=this.hunch;l>.001&&(s+=.3*l,o+=.045*l,a.hipsPitch+=.06*l,a.headPitch+=.12*l);let u=this.curl;u>.001&&(s+=.1*u,a.spineRoll+=.21*u,a.headRoll+=.08*u,c+=.02*u,this.hand.R.position.y-=.08*u);let d=this.lostLean;Math.abs(d)>.001&&(a.spineRoll+=.15*d,c+=.025*d,a.headRoll-=.05*d);let f=this.faint;if(f>.001){let t=Math.sin(e*1.15),i=Math.sin(e*.83+1.3);a.hips.x+=t*.09*f,a.hips.z+=i*.06*f,a.hipsRoll+=t*.05*f,a.spineRoll+=Math.sin(e*1.15-.7)*.2*f,s+=(.17+i*.06)*f,o+=.03*f+(.06+.04*(.5+.5*Math.sin(e*2.6)))*f*f,a.headPitch+=(.4+Math.sin(e*.9+.4)*.14)*f,a.headRoll+=Math.sin(e*.7)*.36*f,a.headYaw+=Math.sin(e*.53+2)*.18*f,n.position.y-=.32*f,r.position.y-=.27*f,n.position.z-=.07*f}for(let e=0;e<2;e+=1){let t=this.kneeGive[e];if(t<=.001)continue;let n=e===0?1:-1,r=e===0?this.foot.L:this.foot.R,i=e===0?this.foot.R:this.foot.L,s=this.feet[1-e],c=s.stepping?Math.sin(s.progress*Math.PI)*t:0,l=t-c;a.hips.x+=(i.position.x-a.hips.x)*.25*l,a.hips.z+=(i.position.z-a.hips.z)*.18*l,o+=.085*c+.01*l,a.hipsRoll-=n*.16*c,a.spineRoll+=n*.13*c,r.heel+=.3*l,r.pole.x-=n*(.35*t+.9*c),r.pole.normalize()}if(a.hips.x+=Math.cos(a.hipsYaw)*c,a.hips.z-=Math.sin(a.hipsYaw)*c,o!==0||s!==0){a.hips.y-=o,a.spinePitch+=s;let e=o+s*qE,t=s*KE;i.y-=e,i.z+=t,n.position.y-=e,n.position.z+=t,r.position.y-=e,r.position.z+=t}let p=this.cover;if(Math.abs(p)>.001){let e=p>0?this.hand.L:this.hand.R,n=Math.abs(p);e.position.x+=(JE*t-e.position.x)*.7*n,e.position.y+=.03*n,e.position.z+=.03*n}}applyHurtActs(e,t,n,r){let i=this.torso,a=R.lerp,o=+(t>0),s=this.armCarry[o]===`whole`?o:this.armCarry[1-o]===`whole`?1-o:-1,c=this.retching*(1-.7*this.punchCommit);if(c>.001){let t=Math.max(0,Math.sin(e*10.5))**2;i.hips.y=a(i.hips.y,hS.hipsHeight-.13-t*.02,c),i.hips.z=a(i.hips.z,-.08,c),i.hipsPitch=a(i.hipsPitch,.36,c),i.spinePitch=a(i.spinePitch,.78+t*.12,c),i.spineRoll=a(i.spineRoll,0,c),i.headPitch=a(i.headPitch,1.3+t*.15,c),i.headYaw=a(i.headYaw,0,c),i.headRoll=a(i.headRoll,0,c),i.headOffset.multiplyScalar(1-c);let n=s<0?o:1-s;if(this.armCarry[n]===`whole`){let e=n===0?1:-1,t=n===0?this.hand.L:this.hand.R;t.position.lerp(G.set(e*.19,.62,n===o?-.02:.15),c),t.pole.lerp(G.set(e*.9,.1,-.4),c).normalize(),t.knuckles.lerp(G.set(-e*.2,-.7,.6),c).normalize(),t.palm.lerp(G.set(0,-.6,-.8),c).normalize()}}let l=Math.max(Math.abs(this.slip),this.weave,this.pull),u=iT(1-this.guardHigh-this.guardLow,0,1)*(1-this.punchCommit)*(1-l)*(1-this.clinchWeight),d=this.punchActive&&s===(this.punchHand===`left`?0:1)?iT(this.punchReach*4,0,1):0,f=Math.max(c,this.hunch*u)*(1-d);f>.001&&s>=0&&this.clutchBelly(s,f);let p=this.daze;if(p>.001){let e=this.dazeTime,o=eS(.7,1.6,e),s=Math.sin(e*2.2),c=Math.sin(e*1.45+.9),l=hS.bladeYaw*t;i.hips.x=a(i.hips.x,s*.06,p),i.hips.z=a(i.hips.z,c*.045,p),i.hips.y=a(i.hips.y,hS.hipsHeight-.08-Math.sin(e*4.4+1)*.02,p),i.hipsYaw=a(i.hipsYaw,l*.8,p),i.hipsPitch=a(i.hipsPitch,.04,p),i.hipsRoll=a(i.hipsRoll,s*.05,p),i.shouldersYaw=a(i.shouldersYaw,l*.65,p),i.spinePitch=a(i.spinePitch,.24+c*.07,p),i.spineRoll=a(i.spineRoll,Math.sin(e*2.2-.9)*.13,p),i.headYaw=a(i.headYaw,o*Math.sin(e*1.1+2)*.3,p),i.headPitch=a(i.headPitch,.95-o*(.28+Math.sin(e*1.3)*.25),p),i.headRoll=a(i.headRoll,o*Math.sin(e*1.9)*.42,p),i.headOffset.multiplyScalar(1-p),n.heel=a(n.heel,0,p),r.heel=a(r.heel,0,p)}}clutchBelly(e,t){let n=this.torso,r=e===0?this.hand.L:this.hand.R,i=e===0?1:-1,a=n.hipsYaw+(n.shouldersYaw-n.hipsYaw)*.25,o=n.hipsPitch+n.spinePitch*.2;r.position.lerp(G.set(i*.05,.17,.19+o*.08).applyAxisAngle(qD,a).add(n.hips),t),r.knuckles.lerp(G.set(-i*.9,-.3,.2).applyAxisAngle(qD,a),t).normalize(),r.palm.lerp(G.set(-i*.1,.15,-1).applyAxisAngle(qD,a),t).normalize(),r.pole.lerp(G.set(i*.85,-.35,-.4).applyAxisAngle(qD,a),t).normalize()}dangleArms(e){let t=this.daze,n=this.boxer.rig,r=n.bones;Kx(r.hips,this.trunkLow),Kx(r.upperChest,this.trunkHigh),this.trunkLow.addScaledVector(YE.subVectors(this.trunkLow,this.trunkHigh).normalize(),UE);let i=this.ragdoll?.handingOver===!0;for(let a=0;a<2;a+=1){let o=Math.max(this.armLimp[a],t),s=this.armSnap[a],c=this.armDangle[a],l=this.forearmDangle[a];if(o<=.001&&(c.live=!1),s<=.001&&(l.live=!1),o<=.001&&s<=.001)continue;let u=a===0,d=u?1:-1,f=u?r.shoulderL:r.shoulderR,p=u?r.elbowL:r.elbowR,m=u?r.gloveL:r.gloveR,h=u?n.metrics.armL:n.metrics.armR;if(o>.001){let t=Kx(m,XE);if(qx(m,aD),this.armCarry[a]===`dead`){let e=Kx(f,ZE);e.y-=EE*this.armLimp[a],n.aimAt(u?r.clavicleL:r.clavicleR,e,`z`),f.updateWorldMatrix(!1,!1)}let s=Kx(f,ZE),l=(h.upper+h.lower)*DE;if(!c.live){let e=o>VE&&!i;SE(c,e?YE.set(s.x,s.y-l,s.z):t,s),e&&this.holdDangle(c.at,s,l,!1,null)}let g=this.punchActive&&this.punchHand===`left`===u?this.punchReach:0;this.swing(c,s,l,!1,e,OE,kE,t,g*jE);let _=QE.set(d*.3,.15+3*iT(1-s.y/GE,0,1),-1).lerp(u?this.hand.L.pole:this.hand.R.pole,1-o).applyAxisAngle(qD,this.yaw);n.solveLimb(f,p,h,t.lerp(c.at,o),_,`z`,u?1:-1,.012),m.updateWorldMatrix(!1,!1),Jx($E.subVectors(Kx(m,XE),Kx(p,YE)).normalize(),QE.set(-d,0,.2).applyAxisAngle(qD,this.yaw),`z`,oD),n.setWorldRotation(m,aD.slerp(oD,o))}if(s>.001){let t=Kx(p,ZE),r=Kx(m,XE);qx(m,aD);let a=Math.max(0,-(t.y-Kx(f,YE).y)/h.upper),o=iT((t.y-WE)/h.lower,0,1),c=iD.set(d*(ME+NE*a*a),-o,0).applyAxisAngle(qD,this.yaw).normalize();l.live||(SE(l,s>VE&&!i?YE.set(t.x,t.y-h.lower,t.z):r,t),this.holdDangle(l.at,t,h.lower,!0,c)),this.swing(l,t,h.lower,!0,e,OE,AE,null,0,c);let u=$E.subVectors(r,t).lerp(YE.subVectors(l.at,t),s).normalize(),g=QE.setFromMatrixColumn(p.matrixWorld,2).lerp(YE.setFromMatrixColumn(p.matrixWorld,0).multiplyScalar(d),s);n.setWorldFrame(p,u,g,`z`),m.updateWorldMatrix(!1,!1),Jx(YE.copy(u).addScaledVector(lD,.9).normalize(),QE.set(-d,.2,-.4).applyAxisAngle(qD,this.yaw),`z`,oD),n.setWorldRotation(m,aD.slerp(oD,s))}}}swing(e,t,n,r,i,a,o,s,c,l=null){let u=e.at,d=e.velocity;(e.carried||t.distanceToSquared(e.pivot)>BE*BE)&&(u.add(t).sub(e.pivot),d.set(0,0,0),e.pivot.copy(t),e.carried=!1);let f=i>0?Math.min(RE,Math.ceil(i/LE)):0,p=f>0?i/f:0;for(let i=1;i<=f;i+=1)eD.copy(u),d.addScaledVector(a,p),s!==null&&c>0&&d.addScaledVector(tD.subVectors(s,u),c*p),d.multiplyScalar(Math.exp(-o*p)),u.addScaledVector(d,p),this.holdDangle(u,tD.lerpVectors(e.pivot,t,i/f),n,r,l),d.subVectors(u,eD).divideScalar(p).clampLength(0,zE);f===0&&this.holdDangle(u,t,n,r,l),e.pivot.copy(t)}holdDangle(e,t,n,r,i){let a=this.trunkLow,o=nD.subVectors(this.trunkHigh,a);for(let s=0;s<2;s+=1){let s=iT(rD.subVectors(e,a).dot(o)/Math.max(1e-6,o.lengthSq()),0,1),c=rD.addScaledVector(o,-s).length();c1e-4&&e.addScaledVector(rD,(HE-c)/c),e.y=Math.max(e.y,WE);let l=rD.subVectors(e,t),u=l.length();if(u<1e-6?e.set(t.x,t.y-n,t.z):(r||u>n)&&e.copy(t).addScaledVector(l,n/u),i===null)continue;l.subVectors(e,t);let d=l.dot(i);if(d>=n*FE)continue;let f=l.addScaledVector(i,-d).length();e.copy(t).addScaledVector(i,n*(f>1e-6?FE:1)),f>1e-6&&e.addScaledVector(l,n*IE/f)}}applyDislocation(){if(this.dislocation!==`jaw`)return;let e=this.boxer.bone(`head`);e!==null&&(e.quaternion.multiply(yE),e.updateWorldMatrix(!1,!0))}dispose(){this.stool.dispose(),this.enswell.dispose(),this.bottle.dispose(),this.boxer.dispose()}},RT=.44,zT=.2,BT=.75,VT=.94,HT=.836,UT=.12,WT=1.72,GT=.2,KT=1.26,qT=48,JT=14,YT=1.34,XT=80,ZT=56,QT=24,$T=4,eE=1.5,tE=60,nE=4,rE=.15,iE=.8,aE=1.3,oE=.35,sE=.93,cE=500,lE=900,uE=.15,dE=.05,fE=.07,pE=.14,mE=.05,hE=.2,gE=.04,_E=.36;function vE(e){let t=7;for(let n=0;nMath.atan2(Math.sin(e),Math.cos(e)),OD=new B;function kD(e,t,n){if(n<=0)return e;e.normalize();let r=e.angleTo(t);return r<1e-4?e:(OD.crossVectors(e,t),OD.lengthSq()<1e-8&&OD.crossVectors(e,Math.abs(e.y)<.9?qD:cD),e.applyAxisAngle(OD.normalize(),r*Math.min(1,n)))}function AD(e,t,n,r){let i=t+DD(e.x-t),a=n+DD(e.y-n),o=r+DD(e.z-r),s=t+DD(Math.PI-e.x-t),c=n+DD(e.y+Math.PI-n),l=r+DD(e.z+Math.PI-r);return Math.abs(i-t)+Math.abs(a-n)+Math.abs(o-r)<=Math.abs(s-t)+Math.abs(c-n)+Math.abs(l-r)?e.set(i,a,o,`YXZ`):e.set(s,c,l,`YXZ`)}function jD(e,t){return e.hips.add(t),e.leadHand.add(t),e.rearHand.add(t),e.leadFoot.add(t),e.rearFoot.add(t),e}var MD=fv*.72-.05,ND=.78,PD=.5,FD=Array.from({length:8},()=>new B),ID=[.17,.22,.22,.13,.13,.12,.12,.2],LD=[[!1,1,0],[!1,0,.15],[!1,-1,.3],[!0,1,.4],[!0,0,.5],[!0,-1,.6]];function RD(e,t){return e<-MD&&t>MD?-(e+t)/2:e<-MD?-MD-e:t>MD?MD-t:0}function zD(e,t){return BD(e,t,t,0)}function BD(e,t,n,r){let i=R.lerp;return e.hips.copy(t.hips).lerp(n.hips,r),e.hipsYaw=i(t.hipsYaw,n.hipsYaw,r),e.hipsPitch=i(t.hipsPitch,n.hipsPitch,r),e.hipsRoll=i(t.hipsRoll,n.hipsRoll,r),e.shouldersYaw=i(t.shouldersYaw,n.shouldersYaw,r),e.spinePitch=i(t.spinePitch,n.spinePitch,r),e.spineRoll=i(t.spineRoll,n.spineRoll,r),e.headPitch=i(t.headPitch,n.headPitch,r),e.headRoll=i(t.headRoll,n.headRoll,r),e.leadHand.copy(t.leadHand).lerp(n.leadHand,r),e.rearHand.copy(t.rearHand).lerp(n.rearHand,r),e.leadFoot.copy(t.leadFoot).lerp(n.leadFoot,r),e.rearFoot.copy(t.rearFoot).lerp(n.rearFoot,r),e.leadHeel=i(t.leadHeel,n.leadHeel,r),e.rearHeel=i(t.rearHeel,n.rearHeel,r),e.palmsDown=i(t.palmsDown,n.palmsDown,r),e.turn=i(t.turn,n.turn,r),kD(e.leadKnee.copy(t.leadKnee),n.leadKnee,r),kD(e.rearKnee.copy(t.rearKnee),n.rearKnee,r),kD(e.leadElbow.copy(t.leadElbow),n.leadElbow,r),kD(e.rearElbow.copy(t.rearElbow),n.rearElbow,r),kD(e.leadKnuckles.copy(t.leadKnuckles),n.leadKnuckles,r),kD(e.leadPalm.copy(t.leadPalm),n.leadPalm,r),kD(e.rearKnuckles.copy(t.rearKnuckles),n.rearKnuckles,r),kD(e.rearPalm.copy(t.rearPalm),n.rearPalm,r),e.ownJoints=i(t.ownJoints,n.ownJoints,r),e}var VD=3;function HD(e,t,n){if(n===null)return null;let r=t+n;return e===null||Math.abs(r-e)>VD?r:e}function UD(e){return(1-eS(ZT,XT,e))*eS($T,QT,e)}function WD(){let e=new pc;e.name=`enswell`,e.visible=!1;let t=new Ju(3.2,3.2,.9,20),n=new Ju(.8,.8,6,10),r=new Ud({color:13159634,roughness:.3,metalness:.9}),i=new H(t,r);i.rotation.x=Math.PI/2,i.position.set(0,9.5,3.4),e.add(i);let a=new H(n,r);return a.position.set(0,5.5,2.4),e.add(a),{group:e,dispose:()=>{t.dispose(),n.dispose(),r.dispose()}}}function GD(){let e=new pc;e.name=`bottle`,e.visible=!1;let t=new Ju(3.3,3.3,15,18),n=new Ju(1.3,3.3,3,18),r=new Ju(.7,1.1,3.2,10),i=new Ud({color:14280430,roughness:.32,metalness:0}),a=new Ud({color:1920728,roughness:.5,metalness:0}),o=new H(t,i);o.position.set(0,9,2.6);let s=new H(n,i);s.position.set(0,18,2.6);let c=new H(r,a);return c.position.set(0,21,2.6),e.add(o,s,c),{group:e,dispose:()=>{t.dispose(),n.dispose(),r.dispose(),i.dispose(),a.dispose()}}}function KD(){let e=new pc;e.name=`stool`,e.visible=!1;let t=new Ju(.17,.17,.035,18),n=new Ju(.012,.014,.42,8),r=new Ud({color:13222581,roughness:.85}),i=new Ud({color:2764083,roughness:.45,metalness:.6}),a=new H(t,r);a.position.y=.4225,a.castShadow=!0,e.add(a);for(let t=0;t<4;t+=1){let r=Math.PI/4+t*Math.PI/2,a=new H(n,i);a.position.set(Math.cos(r)*.13,.42/2,Math.sin(r)*.13),a.rotation.set(-Math.sin(r)*.12,0,Math.cos(r)*.12),a.castShadow=!0,e.add(a)}return{group:e,dispose:()=>{t.dispose(),n.dispose(),r.dispose(),i.dispose()}}}var qD=new B(0,1,0),JD=6,YD=3,XD=1.5,ZD=2.5,QD=1.5,$D=.55,eO=2.1,tO=.42,nO=.22,rO=.08,iO=.15,aO=.42,oO=.12,sO=.5,cO=.5,lO=new Set([`hit`,`counter_hit`,`block`,`perfect_block`,`referee_hit`]),uO=new Set([`slip_left`,`slip_right`,`weave`,`pull`]),dO=40,fO=y/a,pO=.12,mO=30,hO=2;function gO(e,t,n){if(e0;case`forearm_left`:return t===`glove_left`||o&&u_(r,i,a,1)>0;case`forearm_right`:return t===`glove_right`||o&&u_(r,i,a,-1)>0;case`arm_left`:return t===`glove_left`||o&&d_(r,i,a,1)>0;case`arm_right`:return t===`glove_right`||o&&d_(r,i,a,-1)>0;case`leg_left`:return r>=0&&(t===`shoes`||o&&i<60);case`leg_right`:return r<0&&(t===`shoes`||o&&i<60);case`upper_body`:return t===`head`||t===`glove_left`||t===`glove_right`||o&&f_(r,i,a)>0;case`torso`:return t===`pants`||o&&i>=60&&d_(r,i,a,1)<=0&&d_(r,i,a,-1)<=0}}var yO={head:`BoxerHead`,body:`BoxerBody`,glove_left:`BoxerGloveLeft`,glove_right:`BoxerGloveRight`,pants:`BoxerPants`,shoes:`BoxerShoes`},bO=new WeakMap;function xO(e,t){let n=bO.get(e);if(n===void 0){n={};let t=new Map(Object.entries(yO).map(([e,t])=>[t,e]));e.root.traverse(e=>{let r=e instanceof eu?t.get(e.name):void 0;r!==void 0&&(n[r]=e)}),bO.set(e,n)}return n[t]??null}var SO=[`left`,`right`],CO=new B(0,1,0),wO=new B(0,-1,0),TO=15129792,EO=6032400,DO=9313310,OO=4982537,kO=14200392,AO=2228997,jO=14263970,MO=8270912,NO=11618383,PO=15524550,FO=12866653,IO=13602176,LO=9384504,RO=new V,zO=new V,BO=new B,VO=R.smoothstep;function HO(e,t){e.deleteAttribute(`uv`);let n=e.getAttribute(`position`),r=new Float32Array(n.count*3);for(let e=0;eo/2-.001){let t=Math.atan2(BO.z,BO.x);BO.y+=i<1e-4?-n*.8:n*(.5*Math.sin(t*3+e[1])+.35*Math.sin(t*5+e[2]))}c.setXYZ(t,BO.x,BO.y+o/2,BO.z*r)}return s.computeVertexNormals(),HO(s,(t,r)=>{let i=1-VO(t.y/o,.15,.42)*(.85+.15*Math.sin(Math.atan2(t.z,t.x)*4+e[0]));r.setHex(TO).lerp(zO.setHex(OO),i),Math.hypot(t.x,t.z)o*.5&&r.setHex(EO)}),s.applyQuaternion(new hs().setFromUnitVectors(CO,a.normalize())),s.translate(i.x,i.y,i.z),s}function GO(e,t,n,r=!1){return HO(new Md(new od(e.map(e=>new B(...e)),r),e.length*5,t,7,r),n)}var KO=[0,123.6,-3.2],qO=[4.5,4,5];function JO(){let e=new kd(1,40,24,0,Math.PI*2,0,Math.PI*.6),t=e.getAttribute(`position`),n=new Float32Array(t.count);for(let e=0;e{let i=n[r];r+=1,t.setHex(MO).lerp(zO.setHex(jO),VO(i,-.5,.45)),(i<-1||Math.sin(e.x*.9+e.z*1.3)>.72)&&t.lerp(zO.setHex(DO),.7)})}function YO(){let e=[[1,.2,TO],[.9,0,TO],[.82,0,EO],[.74,0,TO],[.66,-.9,OO]],t=[],n=[],r=[];for(let[i,[a,o,s]]of e.entries())for(let e=0;e<32;e+=1){let c=e/32*Math.PI*2;if(t.push(Math.cos(c)*5.6*a,124+o,-3.3+Math.sin(c)*6.4*a),RO.setHex(s).multiplyScalar(.85+.15*Math.sin(c*11+i)),n.push(RO.r,RO.g,RO.b),i===0)continue;let l=(e+1)%32;r.push((i-1)*32+e,i*32+e,(i-1)*32+l,(i-1)*32+l,i*32+e,i*32+l)}let i=new gl;return i.setAttribute(`position`,new il(t,3)),i.setAttribute(`color`,new il(n,3)),i.setIndex(r),i.computeVertexNormals(),i}var XO=[0,112.9,-.4],ZO=9,QO=new B(0,-.93,.37).normalize(),$O=.95;function ek(){let e=new Ku(1.5,6,6,16,8),t=e.getAttribute(`position`);for(let e=0;e0?.5*(1-VO(r,0,.45)):0,a=.5*Math.sin(n*5)*(1-n);t.setXYZ(e,BO.x*R.lerp(.9,1.1,Math.sin(n*Math.PI))+a*.4,BO.y-ZO/2,(BO.z-i)*.3+.35*r*r+1.3*n*n)}return e.computeVertexNormals(),HO(e,(e,t)=>{let n=-e.y/ZO,r=Math.sin(e.y*2.6+e.x*2.1)*Math.sin(e.x*3.3-e.y*1.2);t.setHex(FO).multiplyScalar(.8+.2*r).lerp(zO.setHex(OO),.8*(1-VO(n,0,.35))),(r>.45||n>.88)&&t.lerp(zO.setHex(DO),.65)})}function tk(){let e=[],t=new kd(1,18,12,Math.PI,Math.PI);t.scale(3.3,2.5,3.2),t.translate(0,113.3,-.5),e.push(HO(t,(e,t)=>{t.setHex(AO).lerp(zO.setHex(DO),VO(Math.hypot(e.x,e.y-112.6,(e.z+3)*.7),.7,2.6))}));let n=new qu(1,20);n.rotateX(Math.PI/2),n.scale(3.3,1,3.9),n.translate(0,115.25,.5),e.push(HO(n,(e,t)=>{t.setHex(LO).multiplyScalar(.75+.25*Math.sin(e.z*5)).lerp(zO.setHex(AO),1-VO(e.z,-3,.5))}));let r=[];for(let t=0;t<14;t+=1){let n=-1.75+t/13*3.5,i=1-Math.abs(n)/1.75,a=t===4||t===9?1.35:R.lerp(.85,1.2,i),o=new Ju(.3,t===4||t===9?.16:.37,a,6);o.scale(1,1,R.lerp(1.15,.55,i)),o.rotateY(n);let s=Math.sin(n)*2.75,c=.9+Math.cos(n)*3.1;o.translate(s,114.9-a/2,c),e.push(HO(o,(e,t)=>{t.setHex(PO).lerp(zO.setHex(DO),.8*VO(e.y,114.3,114.9))})),r.push([s,114.95,c])}return e.push(GO(r,.45,NO)),UO(e)}function nk(e){return UO([WO([e*29.4,103.8,-4.2],[e*32.9,104.1,-4],.85),WO([e*29.4,102,-6.2],[e*32.3,101.8,-6.5],.7)])}function rk(e){let t=new kd(1,12,9);return t.scale(.9,1.7,1.5),t.translate(e*13.3,103.4,-5.5),HO(t,(e,t)=>{t.setHex(15327954).lerp(zO.setHex(DO),Math.sin(e.y*3.1+e.z*2.3)>.4?.75:.1)})}function ik(){return UO([HO(new Ju(2,2.1,1.8,10).translate(0,80.4,-5.4),TO),HO(new Ju(1.8,1.8,.6,10).translate(0,81.6,-5.4),12563866),WO([0,81.9,-5.4],[.4,85.4,-5.8],1.9),GO([[.2,84.6,-5.6],[.3,86.6,-5.8],[.9,87.8,-5.2]],.55,15255984),GO([[-6.5,81.6,.5],[-3,82.6,3.6],[1.5,81.8,4.4],[6,82.8,2],[7,81.6,-2],[3.5,82.9,-1],[-1,81.7,.6],[-5,82.9,-2.6],[-7.2,81.5,-4]],1.25,IO,!0),GO([[4.5,83.6,1.6],[1,84.4,2.4],[-3,83.5,.6],[-2,84.2,-2.6],[2.5,83.6,-2.2]],1.05,12548720,!0),HO(new kd(1,10,7).scale(3.2,1.6,2.6).translate(-6,82.2,1.5),4854808)])}function ak(e){return UO(w_.map((t,n)=>{let r=new B(-t[0],0,-2-t[2]).normalize();return WO([e*(t[0]+r.x*3),t[1]-.3,t[2]+r.z*3],[e*(t[0]-r.x*1.3),t[1]+.7-.3*n,t[2]-r.z*1.3+.7],.75,.5)}))}function ok(){let e=[];for(let t=0;t<5;t+=1){let n=.5+t*1.26,r=Math.cos(n),i=Math.sin(n);e.push(WO([r*5.8,99.5+i*5.8,3.9],[r*2.9,99.5+i*2.9,2.4],.7,.5)),e.push(WO([i*5.6,99.5-r*5.6,-9.6],[i*4.3,99.5-r*4.3,-12.8],.7,.5))}return UO(e)}var sk=new B,ck=new B,lk=new B,uk=new B,dk=new WeakMap;function fk(e,t,n){let r=e.getAttribute(`position`),i=e.getAttribute(`skinIndex`),a=e.getAttribute(`skinWeight`),o=new Map,s=new B;for(let e of t)o.has(e)||(o.set(e,o.size),s.add(BO.fromBufferAttribute(r,e)));s.multiplyScalar(1/o.size);let c=n.layers.length,l=[],u=[],d=[],f=[],p=new Map;for(let e of o.keys()){for(let[t,[o,c]]of n.layers.entries()){n.place(BO.fromBufferAttribute(r,e),s,o,sk),l.push(sk.x,sk.y,sk.z),RO.setHex(c).multiplyScalar(.8+.4*Math.abs(Math.sin(e*12.9898+t*4.1))),u.push(RO.r,RO.g,RO.b);for(let t=0;t<4;t+=1)d.push(i.getComponent(e,t)),f.push(a.getComponent(e,t))}for(let t=0;t<4;t+=1)p.set(i.getComponent(e,t),(p.get(i.getComponent(e,t))??0)+a.getComponent(e,t))}let m=o.size*c;if(n.middle!==null){n.place(s,s,1,sk),l.push(sk.x,sk.y,sk.z),RO.setHex(n.middle),u.push(RO.r,RO.g,RO.b);let e=[...p].sort((e,t)=>t[1]-e[1]).slice(0,4),t=e.reduce((e,[,t])=>e+t,0);for(let n=0;n<4;n+=1)d.push(e[n]?.[0]??0),f.push((e[n]?.[1]??0)/t)}let h=[],g=(e,t,r)=>{sk.fromArray(l,e*3),ck.fromArray(l,t*3),lk.fromArray(l,r*3),n.facing(BO.copy(sk).add(ck).add(lk).multiplyScalar(1/3),s,uk);let i=ck.sub(sk).cross(lk.sub(sk)).dot(uk)>=0;h.push(e,i?t:r,i?r:t)};for(let e=0;evoid a.copy(n).lerp(r,i).addScaledVector(e,-t*i),facing:(t,n,r)=>void r.copy(e),middle:AO}}var mk={layers:[[0,OO],[.4,OO],[1,AO]],place:(e,t,n,r)=>void r.set(R.lerp(e.x,t.x,.22*n),R.lerp(e.y,t.y,.22*n),R.lerp(e.z,t.z-Math.sign(e.z-t.z)*.6,n)),facing:(e,t,n)=>void n.set(t.x-e.x,t.y-e.y,0),middle:null},hk={nose:{bone:`head`,mesh:`head`,at:[0,117,5.3],axis:[0,-.3,1]},mouth:{bone:`head`,mesh:`head`,at:[0,114.3,4.6],axis:[0,-.35,1]},eye_left:{bone:`head`,mesh:`head`,at:M_[0],axis:[.2,0,1]},eye_right:{bone:`head`,mesh:`head`,at:M_[1],axis:[-.2,0,1]},ear_left:{bone:`head`,mesh:`head`,at:C_,axis:[1,-.2,0]},ear_right:{bone:`head`,mesh:`head`,at:[-C_[0],C_[1],C_[2]],axis:[-1,-.2,0]},skull:{bone:`head`,mesh:`head`,at:[0,127.5,-3],axis:[0,1,0]},neck:{bone:`neck`,mesh:`body`,at:[0,109,-2],axis:[0,1,0]},shoulder_left:{bone:`clavicleL`,mesh:`body`,at:[15,103.5,-5.5],axis:[1,0,0]},shoulder_right:{bone:`clavicleR`,mesh:`body`,at:[-15,103.5,-5.5],axis:[-1,0,0]},elbow_left:{bone:`shoulderL`,mesh:`body`,at:[31,102.8,-5.2],axis:[1,0,0]},elbow_right:{bone:`shoulderR`,mesh:`body`,at:[-31,102.8,-5.2],axis:[-1,0,0]},chest:{bone:`chest`,mesh:`body`,at:[0,99.5,5.6],axis:[0,0,1]},ribs_left:{bone:`chest`,mesh:`body`,at:w_[1],axis:[1,0,.3]},ribs_right:{bone:`chest`,mesh:`body`,at:[-w_[1][0],w_[1][1],w_[1][2]],axis:[-1,0,.3]},liver:{bone:`chest`,mesh:`body`,at:[-8.5,89.5,4.4],axis:[-.5,0,1]},belly:{bone:`spine`,mesh:`body`,at:D_,axis:[0,-.2,1]},waist:{bone:`spine`,mesh:`body`,at:[0,81.5,-1],axis:[0,1,0]},crotch:{bone:`hips`,mesh:`body`,at:[0,72,2],axis:[0,-1,.15]},knee_left:{bone:`kneeL`,mesh:`body`,at:E_,axis:[1,0,.2]},knee_right:{bone:`kneeR`,mesh:`body`,at:[-E_[0],E_[1],E_[2]],axis:[-1,0,.2]}},gk=[`skull`,`maw`,`chest`,`waist`,...SO.flatMap(e=>[`fracture`,`ribs`,`knee`,`elbow`,`shoulder`].map(t=>`${t}_${e}`))],_k={left:{sign:1,bone:`L`,ear:`leftEar`,face:`leftFace`,cheek:`leftCheek`,eye:`leftEye`,arm:`leftArm`,shoulder:`leftShoulder`,elbow:`leftElbow`,ribs:`leftRibs`,knee:`leftKnee`,smear:`leftShoulderSmear`},right:{sign:-1,bone:`R`,ear:`rightEar`,face:`rightFace`,cheek:`rightCheek`,eye:`rightEye`,arm:`rightArm`,shoulder:`rightShoulder`,elbow:`rightElbow`,ribs:`rightRibs`,knee:`rightKnee`,smear:`rightShoulderSmear`}},vk=class{boxer;headRaises=[];bodyRaises=[];gloveGone={left:!1,right:!1};eyeOut={left:!1,right:!1};eyeShut={left:!1,right:!1};gloved;flesh;owned=[];tongueTip=new B;tongueVelocity=new B;root=new B;rest=new B;reach=new B;matrix=new zs;fit=new zs;upperGone=!1;headHidden=!1;injuries=0;blood=`full`;hole=!1;jawHung=!1;pieces=new Map;geometries=[];skull=null;skullMount=new zs;brain=null;tongue=null;bodyShadow=null;standIns=null;tongueHung=!1;constructor(e){this.boxer=e,this.gloved={left:e.gloveMesh(`left`).visible,right:e.gloveMesh(`right`).visible},this.flesh=new Ud({vertexColors:!0,roughness:.3,metalness:0,side:2}),Qw(this.flesh)}apply(e,t){let n=0;for(let t=0;tc*3)&&(this.tongueHung=!0,l.copy(o).addScaledVector(s,c),u.set(0,0,0));let d=this.reach.copy(l);e>1e-4&&(u.y-=9.8*e,u.addScaledVector(BO.copy(o).addScaledVector(s,c).sub(l),60*e).multiplyScalar(Math.exp(-5*e)),d.addScaledVector(u,e)),d.sub(o).setLength(c),d.angleTo(s)>$O&&(BO.copy(d).addScaledVector(s,-d.dot(s)).setLength(Math.sin($O)*c),d.copy(s).multiplyScalar(Math.cos($O)*c).add(BO)),d.add(o),e>1e-4&&u.copy(d).sub(l).multiplyScalar(1/e),l.copy(d),r.quaternion.setFromUnitVectors(wO,BO.copy(l).sub(o).transformDirection(a.invert()))}compileStandIns(){if(this.standIns!==null)return this.standIns;let e=this.boxer;for(let e of gk)this.built(e);let t=[],n=[[e.headMesh,e.headInjury],[xO(e,`body`),e.bodyInjury]];for(let[e,r]of n)for(let n of[!1,!0]){let i=e===null?null:r.variant(n);if(e===null||i===null)continue;this.owned.push(i);let a=new eu(e.geometry,i);if(a.bind(e.skeleton,e.bindMatrix),a.frustumCulled=!1,a.castShadow=e.castShadow,n){let e=r.shadowVariant();this.owned.push(e),a.customDepthMaterial=e}t.push(a)}this.brain!==null&&t.push(new H(this.brain.geometry,this.flesh));let r=this.built(`waist`).find(e=>e instanceof eu);if(r!==void 0){let e=new eu(r.geometry,this.flesh);e.bind(r.skeleton,r.bindMatrix),e.frustumCulled=!1,t.push(e)}return this.standIns=t,t}clear(){this.upperGone=!1,this.hole=!1,this.injuries=0,this.show(),this.setPallor(0)}dispose(){this.clear();for(let e of this.standIns??[])e.removeFromParent();this.standIns=null;for(let e of this.pieces.values())for(let t of e)t.removeFromParent();for(let e of this.geometries)e.dispose();this.pieces.clear(),this.geometries.length=0,this.skull=this.brain=this.tongue=null,this.bodyShadow?.dispose(),this.bodyShadow=null;for(let e of this.owned)e.dispose();this.owned.length=0,this.flesh.dispose()}has(e){return!!(this.injuries&1<this.blood!==`off`&&this.has(e),o=r&&this.upperGone,s=this.isPartGone(`jaw`),c=r&&this.has(`skull_fractured`);t.setExplicit(r),n.setExplicit(r);let l=this.headRaises,u=this.bodyRaises;l.length=0,u.length=0;let d=(e,t,n,r=0,a=0)=>void e.push({site:t,bruise:n,blood:r*i,cut:a});if(t.setWound(`nose`,+!!a(`broken_nose`)),a(`broken_nose`)&&d(l,`nose`,1.1,1.4),a(`broken_jaw`)||a(`jaw_torn`)){let e=a(`jaw_torn`);d(l,`chin`,1.2),d(l,`leftJaw`,e?1.2:1),d(l,`rightJaw`,e?1.2:1),d(l,`mouth`,.7,e?1.4:.9,.7),d(u,`neckSmear`,0,e?1.4:.6)}a(`skull_fractured`)&&(d(l,`forehead`,1.1,1.4,+!r),d(u,`neckSmear`,0,1.1)),t.setGone(`jaw`,+!!s),t.setGone(`skull`,+!!c);let f=!1;for(let i of SO){let s=_k[i];t.setWound(s.ear,+!!a(`ear_${i}_torn`));let c=a(`face_${i}_flayed`);t.setWound(s.face,+!!c),c&&(d(l,s.cheek,.8,1.2),d(u,`neckSmear`,0,.9));let p=a(`eye_${i}_out`);p&&d(l,s.eye,1.1,+!r),this.eyeOut[i]&&!(p&&r)&&(f=!0),this.eyeOut[i]=p&&r,this.eyeShut[i]=p&&!r;let m=o?0:this.isPartGone(`arm_${i}`)?2:+!!this.isPartGone(`forearm_${i}`),h=!r&&a(`arm_${i}_torn`),g=!r&&a(`forearm_${i}_severed`);n.setGone(s.arm,m),n.setWound(s.shoulder,a(`shoulder_${i}_dislocated`)||h?1:0),n.setWound(s.elbow,a(`arm_${i}_broken`)||g?1:0),n.setWound(s.ribs,+!!a(`ribs_${i}_broken`)),n.setWound(s.knee,+!!a(`knee_${i}_blown`)),(m===2||h)&&d(u,s.smear,0,1.2),a(`ribs_${i}_broken`)&&d(u,s.ribs,1.2);let _=m>0||o;_?e.gloveMesh(i).visible=!1:this.gloveGone[i]&&(e.gloveMesh(i).visible=this.gloved[i]&&!e.isHandDismembered(i)),this.gloveGone[i]=_,this.piece(`fracture_${i}`,r&&!o&&m===0&&this.has(`arm_${i}_broken`)),this.piece(`ribs_${i}`,r&&!o&&this.has(`ribs_${i}_broken`)),this.piece(`knee_${i}`,r&&this.has(`knee_${i}_blown`)),this.piece(`elbow_${i}`,m===1),this.piece(`shoulder_${i}`,m===2)}f&&t.setEyeOut(this.eyeOut.left&&this.eyeOut.right?`both`:this.eyeOut.left?`left`:this.eyeOut.right?`right`:null),n.setWound(`liver`,+!!a(`liver_ruptured`)),n.setWound(`belly`,+!!a(`disemboweled`)),n.setGone(`waist`,+!!o),n.setGone(`chestHole`,r&&this.hole&&!o?1:0);let p=r&&this.has(`broken_jaw`)&&!s;this.jawHung&&!p&&t.setJaw(0),this.jawHung=p,o?e.headMesh.visible=!1:this.headHidden&&(e.headMesh.visible=!0),this.headHidden=o,this.piece(`skull`,c&&!o),this.piece(`maw`,s&&!o),this.piece(`chest`,r&&this.hole&&!o),this.piece(`waist`,o),c&&!o&&this.fitSkull();let m=xO(e,`body`);m!==null&&n.material!==null&&(n.open?m.customDepthMaterial=this.bodyShadow??=n.shadowMaterial():m.customDepthMaterial===this.bodyShadow&&(m.customDepthMaterial=void 0))}assert(){let e=this.boxer,t=e.headInjury,n=this.headRaises,r=this.bodyRaises;for(let e=0;e0,o=this.eyeOut.right||i.y>0;(this.eyeOut.left&&i.x===0||this.eyeOut.right&&i.y===0)&&t.setEyeOut(a&&o?`both`:a?`left`:`right`);let s=t.uniforms.uInjuryLid.value;(this.eyeShut.left||this.eyeShut.right)&&t.setEyesShut(this.eyeShut.left?1:s[0].w,this.eyeShut.right?1:s[1].w),this.gloveGone.left&&(e.gloveMesh(`left`).visible=!1),this.gloveGone.right&&(e.gloveMesh(`right`).visible=!1)}piece(e,t){if(t||this.pieces.has(e))for(let n of this.built(e))n.visible=t}built(e){let t=this.pieces.get(e);return t===void 0&&(t=this.make(e),this.pieces.set(e,t)),t}bindToWorld(e,t,n){let r=this.boxer.rig.bones[t],i=e.skeleton.bones.indexOf(r);return i<0?!1:(n.multiplyMatrices(r.matrixWorld,e.skeleton.boneInverses[i]).multiply(e.bindMatrix),!0)}skinMatrix(e,t,n){let r=e===`head`?this.boxer.headMesh:xO(this.boxer,`body`);return r!==null&&this.bindToWorld(r,t,n)}fitSkull(){let e=this.skull;if(e===null)return;let t=this.boxer.look,n=Mb(BO.set(5.9,124.6,-3.3),t,this.root).x,r=Mb(BO.set(-5.9,124.6,-3.3),t,this.root).x,i=Mb(BO.set(0,124.6,3.3),t,this.root).z,a=Mb(BO.set(0,124.6,-9.9),t,this.root).z,o=(i-a)/13.2;this.fit.makeScale((n-r)/11.8,1,o).setPosition((n+r)/2,0,(i+a)/2+3.3*o),e.matrix.multiplyMatrices(this.skullMount,this.fit)}solid(e){this.geometries.push(e);let t=new H(e,this.flesh);return t.receiveShadow=!0,t}mount(e,t,n=xO(this.boxer,`body`)){let r=this.boxer.rig.bones[e],i=n===null?-1:n.skeleton.bones.indexOf(r);return n!==null&&i>=0&&t.matrix.multiplyMatrices(n.skeleton.boneInverses[i],n.bindMatrix),t.matrixAutoUpdate=!1,t.visible=!1,r.add(t),t}closing(e,t,n){let r=xO(this.boxer,`body`);if(r===null)return[];let i=dk.get(r.geometry);i===void 0&&dk.set(r.geometry,i=new Map);let a=i.get(e);if(a===void 0&&i.set(e,a=Gv(r.geometry,t)),a.length===0)return[];let o=new eu(fk(r.geometry,a,n),this.flesh);return this.geometries.push(o.geometry),o.bind(r.skeleton,r.bindMatrix),o.frustumCulled=!1,o.receiveShadow=!0,o.visible=!1,(r.parent??this.boxer.root).add(o),[o]}make(e){let t=this.boxer.headMesh;if(e===`skull`){let e=new pc,n=this.solid(JO());return n.position.set(...KO),e.add(n,this.solid(YO())),this.mount(`head`,e,t),this.skullMount.copy(e.matrix),this.skull=e,this.brain=n,[e]}if(e===`maw`){let e=new pc,n=this.solid(ek());return n.position.set(...XO),e.add(this.solid(tk()),n),this.tongue=n,[this.mount(`head`,e,t)]}if(e===`chest`)return[...this.closing(e,e=>p_(e.x,e.y,e.z)<=0,mk),this.mount(`chest`,this.solid(ok()))];if(e===`waist`)return[...this.closing(e,e=>!vO(`upper_body`,`body`,e),pk(CO,.8)),this.mount(`spine`,this.solid(ik()))];let n=e.endsWith(`_left`)?`left`:`right`,{sign:r,bone:i}=_k[n];switch(e.slice(0,e.indexOf(`_`))){case`fracture`:return[this.mount(`shoulder${i}`,this.solid(WO([r*27.6,103.3,-5],[r*(T_[0]+2.4),T_[1]+2.6,T_[2]+1.4],1.05))),this.mount(`elbow${i}`,this.solid(UO([WO([r*34.6,102.3,-4.8],[r*30,98.6,-.8],.8),WO([r*34,103.2,-5.6],[r*30.6,100.6,-9.8],.6)])))];case`ribs`:return[this.mount(`chest`,this.solid(ak(r)))];case`knee`:return[this.mount(`knee${i}`,this.solid(WO([r*8.8,37.8,-4.6],[r*(E_[0]+3.8),E_[1]-1.2,E_[2]-.2],1.2)))];case`elbow`:return[...this.closing(e,e=>!vO(`forearm_${n}`,`body`,e),pk(new B(r,0,0),0)),this.mount(`shoulder${i}`,this.solid(nk(r)))];case`shoulder`:return[...this.closing(e,e=>!vO(`arm_${n}`,`body`,e),pk(new B(r,0,0),1.6)),this.mount(`clavicle${i}`,this.solid(rk(r)))]}}};function yk(e){switch(e){case`skull_fractured`:return`skull`;case`broken_jaw`:return`jaw`;case`broken_nose`:return`nose`;case`ribs_left_broken`:return`ribs_left`;case`ribs_right_broken`:return`ribs_right`;case`arm_left_broken`:return`arm_left`;case`arm_right_broken`:return`arm_right`;case`knee_left_blown`:return`knee_left`;case`knee_right_blown`:return`knee_right`;case`shoulder_left_dislocated`:return`shoulder_left`;case`shoulder_right_dislocated`:return`shoulder_right`;default:return null}}var bk=.3,xk=1.35,Sk=.07,Ck=.25,wk=.4,Tk=.13,Ek=.6,Dk=.66,Ok=1.05,kk=new V(10474751),Ak=new V(16777215),jk=new V(132105),Mk=5,Nk=8,Pk=(e,t)=>[t===`left`?e[0]:-e[0],e[1],e[2]];function Fk(e){let t=e.endsWith(`_right`)?`right`:`left`,n=t===`left`?`L`:`R`;return e===`skull`?{center:[0,123.5,-1],radius:13,anchor:`skull`}:e===`jaw`?{center:[0,113.5,2],radius:10,anchor:`mouth`}:e===`nose`?{center:[0,118,3],radius:9,anchor:`nose`}:e.startsWith(`ribs`)?{center:Pk(w_[1],t),radius:26,anchor:`ribs_${t}`}:e.startsWith(`arm`)?{center:Pk(T_,t),radius:17,anchor:`elbow_${t}`,joint:`elbow${n}`}:e.startsWith(`knee`)?{center:Pk(E_,t),radius:20,anchor:`knee_${t}`,joint:`knee${n}`}:{center:Pk([15,103.5,-5.5],t),radius:15,anchor:`shoulder_${t}`,joint:`shoulder${n}`}}var Ik=[1,1,1],Lk=[.06,.07,.09],Rk=[.3,.32,.36],zk=[1,0,0],Bk=new B(0,1,0);function Vk(e,t){e.deleteAttribute(`uv`);let n=e.getAttribute(`position`).count,r=new Float32Array(n*3);for(let e=0;e0?.25:-1.75,e>0?1.75:-.25)])}function tA(){let e=Vk(new kd(1,8,5,Math.PI/2-.55,1.1,.35,.7).scale(5.75,6.25,7.45).translate(0,121.6,-3),Rk),t=(e,t)=>[-5.8*Math.cos(e)*Math.sin(t),121.6+6.3*Math.cos(t),-3+7.5*Math.sin(e)*Math.sin(t)],n=[];for(let[e,r,i,a]of[[1,.35,.7,.05],[2.1,.4,2.7,.2],[2.1,1.05,2.8,1.2],[1,1.05,.4,1.3],[1.57,1.05,1.5,1.5],[1.57,.35,1.9,.02]]){let o=t((e+i)/2+.12,(r+a)/2+.05);n.push(qk(t(e,r),o,.22,Lk),qk(o,t(i,a),.16,Lk))}return Jk([e,...n])}function nA(e,t,n){let r=[];for(let i=e;i #include } -`,aA=class{root=new fc;uniforms={uCenter:{value:new B},uRadius:{value:0},uOpacity:{value:0},uFlash:{value:0}};material=new Bd({uniforms:this.uniforms,vertexShader:rA,fragmentShader:iA,vertexColors:!0,transparent:!0});framed=[];longs=[];chips=[];sprays=[];pieces=null;boxer=null;mutilation=null;site=null;spot=Pk(`skull`);center=new B;fighter=-1;elapsed=0;held=!1;push=new B;matrix=new Rs;local=new Rs;turn=new ms;from=new B;to=new B;along=new B;across=new B;axis=new B;outward=new B;offset=new B;one=new B(1,1,1);insetCamera=new Vf(30,1,.05,40);canvasSize=new z;clearColor=new V;frameColor=new V;compiled=null;constructor(){this.root.visible=!1,this.root.name=`BoneXray`}get owner(){return this.site===null?-1:this.fighter}get breaking(){return this.site}get snapped(){return this.site!==null&&this.elapsed>=.3}drawInset(e,t,n){if(this.site===null||this.held||this.elapsed<=0)return;let r=e.getSize(this.canvasSize),i=Math.round(Math.min(r.x,r.y)*Ck),a=Math.max(2,Math.round(i*.012)),o=this.fighter===0?Math.round(i*.08):r.x-i-Math.round(i*.08),s=r.y-i-Math.round(r.y*(r.y>r.x?Tk:wk)),c=this.uniforms.uCenter.value,l=this.insetCamera,u=l.position.subVectors(n.position,c).setY(0).normalize();u.addScaledVector(this.push,-u.dot(this.push)),u.lengthSq()<.12&&u.set(-this.push.z,0,this.push.x),u.normalize().addScaledVector(this.outward,.4).setY(0).normalize(),l.position.multiplyScalar(this.spot.joint===void 0&&this.spot.radius<15?Ek:Dk).add(c),l.position.y+=.12,l.lookAt(c);let d=e.getClearAlpha(),f=e.shadowMap.autoUpdate;e.getClearColor(this.clearColor),e.shadowMap.autoUpdate=!1,e.setScissorTest(!0);let p=this.uniforms.uFlash.value;e.setClearColor(this.frameColor.copy(Ok).lerp(kk,Math.min(1,p*2)),1),e.setScissor(o-a,s-a,i+a*2,i+a*2),e.clear(!0,!0,!1),e.setClearColor(Ak,1),e.setScissor(o,s,i,i),e.setViewport(o,s,i,i),e.render(t,l),e.setScissorTest(!1),e.setViewport(0,0,r.x,r.y),e.setClearColor(this.clearColor,d),e.shadowMap.autoUpdate=f}start(e,t,n,r,i,a,o=!1){this.stop(),this.prepare(t),this.fighter=e,this.boxer=t,this.mutilation=n,this.site=r,this.spot=Pk(r),this.center.set(this.spot.center[0],this.spot.center[1],this.spot.center[2]);let s=bO(t,`body`),c=this.spot.joint===void 0||s===null?-1:s.skeleton.bones.indexOf(t.rig.bones[this.spot.joint]);c>=0&&this.center.setFromMatrixPosition(this.matrix.multiplyMatrices(s.skeleton.boneInverses[c],s.bindMatrix).invert()),this.elapsed=o?bk*.5:0,this.held=o,this.push.set(i,0,a),this.push.lengthSq()<1e-6&&this.push.set(1,0,0),this.push.normalize();let l=r.length*7+3,u=()=>(l=l*16807%2147483647,l/2147483647);for(let e of this.sprays)e.set(this.push.x*.9+u()*1.6-.8,u()*1.5-.2,this.push.z*.9+u()*1.6-.8).multiplyScalar(.5+u()*.9);this.root.visible=!0}stop(){this.site!==null&&(this.boxer?.headInjury.setXray(0,0,0,0,0),this.boxer?.bodyInjury.setXray(0,0,0,0,0),this.site=null,this.boxer=null,this.mutilation=null,this.root.visible=!1)}update(e){let{site:t,boxer:n,mutilation:r,pieces:i}=this;if(t===null||n===null||r===null||i===null)return;this.held||(this.elapsed+=e);let a=this.elapsed;if(a>=1.35||!r.anchor(this.spot.anchor,this.uniforms.uCenter.value,this.outward)){this.stop();return}this.spot.joint!==void 0&&n.rig.bones[this.spot.joint].getWorldPosition(this.uniforms.uCenter.value);let o=a-yk,s=o<0?0:1-Math.exp(-o*20),c=o<0||this.held?0:Math.exp(-o*11),l=Math.min(1,a/xk,(bk-a)/Sk),u=this.spot,d=this.center,f=1/n.rig.metrics.unitsPerMeter,p=this.held?1e3:u.radius*(1+jk*c);n.headInjury.setXray(d.x,d.y,d.z,p,l),n.bodyInjury.setXray(d.x,d.y,d.z,p,l),this.uniforms.uRadius.value=p*f*1.1,this.uniforms.uOpacity.value=l,this.uniforms.uFlash.value=c*.55;let m=+!!t.endsWith(`_right`),h=m===1?-1:1;for(let e of this.framed)e.mesh.visible=r.skinMatrix(e.skin,e.bone,e.mesh.matrix),e.mesh.matrixWorldNeedsUpdate=!0;let g=(e,t,n,r,i)=>{this.turn.setFromAxisAngle(this.axis.set(n[0],n[1],n[2]),r),this.local.compose(this.offset.set(t[0]+i[0],t[1]+i[1],t[2]+i[2]),this.turn,this.one),e.matrix.multiply(this.local).multiply(this.matrix.makeTranslation(-t[0],-t[1],-t[2]))};i.plate.visible&&=t===`skull`&&s>0,t===`jaw`?(g(i.jaw[0],[0,111.7,3.9],[0,1,0],.3*s,[.9*s,-.7*s,0]),g(i.jaw[1],[-5,116.8,-2.1],[0,0,1],-.16*s,[.5*s,0,0])):t===`nose`?g(i.nasal,[0,120.4,3.6],[0,0,1],.7*s,[.5*s,-.2*s,-.5*s]):t.startsWith(`ribs`)&&g(i.ribsFront[m],[h*11.2,96,-1.2],[0,1,0],-h*.5*s,[-h*.9*s,0,0]);let _=n.rig.bones;for(let e of this.longs){_[e.from].getWorldPosition(this.from),_[e.to].getWorldPosition(this.to);let n=e.mesh===i.humerus[m]&&(t.startsWith(`arm`)||t.startsWith(`shoulder`))||e.mesh===i.shin[m]&&t.startsWith(`knee`);e.mesh.visible=!0,n&&t.startsWith(`arm`)?(e.mesh.visible=!1,this.along.subVectors(this.to,this.from),this.across.crossVectors(this.along,this.push).normalize(),this.across.lengthSq()<.5&&this.across.set(0,1,0),this.span(i.stump,this.from,this.to,e.length,f),this.to.copy(this.from).addScaledVector(this.along,.62),this.offset.crossVectors(this.across,this.along).normalize(),i.shard.position.copy(this.to).addScaledVector(this.offset,.022*s),this.turn.setFromAxisAngle(this.across,.75*s),i.shard.quaternion.copy(i.stump.quaternion).premultiply(this.turn),i.shard.scale.copy(i.stump.scale)):(n&&t.startsWith(`shoulder`)&&(this.from.addScaledVector(this.push,.035*s).y-=.04*s),n&&t.startsWith(`knee`)&&this.from.addScaledVector(this.outward,.05*s),this.span(e.mesh,this.from,this.to,e.length,f))}let v=t.startsWith(`arm`);i.stump.visible=v,i.shard.visible=v;let y=this.uniforms.uCenter.value;for(let[e,t]of this.chips.entries()){if(t.visible=o>0,o<=0)continue;let n=this.sprays[e];t.position.copy(y).addScaledVector(n,o*.55),t.position.y-=1.6*o*o,t.rotation.set(o*9+e,o*7,e),t.scale.setScalar((e{let t=new H(e,this.material);return t.frustumCulled=!1,t.renderOrder=40,this.root.add(t),t},n=(e,n,r)=>{let i=t(e);return i.matrixAutoUpdate=!1,this.framed.push({mesh:i,skin:n,bone:r}),i},r=e.rig.metrics,i=r.unitsPerMeter,a=(e,n,r,i)=>{let a=t(e);return this.longs.push({mesh:a,from:n,to:r,length:i}),a};n(Qk(),`head`,`head`);let o=n(eA(),`head`,`head`),s=n(Kk([0,120.4,3.6],[0,118.3,5],.55,Fk,.5),`head`,`head`),c=[n($k(1),`head`,`head`),n($k(-1),`head`,`head`)];n(tA(108.5,116.5,-3.4),`body`,`neck`),n(tA(88,108,-6.2),`body`,`chest`),n(tA(76,87.5,-3.6),`body`,`spine`),n(nA(),`body`,`hips`),n(qk([Bk(new Wu(2.2,10.5,.9).translate(0,99,4.3),Fk),Kk([1.4,106.4,2.8],[13.6,105.2,-3.4],.55),Kk([-1.4,106.4,2.8],[-13.6,105.2,-3.4],.55),Vk([11,101,-7.6],[3.6,4.6,.7]),Vk([-11,101,-7.6],[3.6,4.6,.7])]),`body`,`chest`),n(Xk(1,!1),`body`,`chest`),n(Xk(-1,!1),`body`,`chest`);let l=[n(Xk(1,!0),`body`,`chest`),n(Xk(-1,!0),`body`,`chest`)],u=r.armL.upper*i,d=r.armL.lower*i,f=r.legL.upper*i,p=r.legL.lower*i,m=Jk(u,.95,1.5),h=Jk(d,.62,1.15,.9),g=Jk(f,1.25,2),_=Jk(p,1.05,1.75,1.5),v=Kk([0,0,0],[0,10,0],.9,Fk,.6),y=[a(m,`shoulderL`,`elbowL`,u),a(m,`shoulderR`,`elbowR`,u)];a(h,`elbowL`,`gloveL`,d),a(h,`elbowR`,`gloveR`,d),a(g,`hipL`,`kneeL`,f),a(g,`hipR`,`kneeR`,f);let b=[a(_,`kneeL`,`ankleL`,p),a(_,`kneeR`,`ankleR`,p)];a(v,`ankleL`,`toeL`,10),a(v,`ankleR`,`toeR`,10);let x=u*.62,S=t(qk([Kk([0,0,0],[0,x,0],.95,Fk,.85),Vk([0,0,0],1.5),Kk([0,x,0],[.5,x+1.6,.2],.7,Fk,.1),Vk([0,x,0],.6,Rk)])),C=t(qk([Kk([0,.4,0],[0,u-x,0],.85),Vk([0,u-x,0],1.3),Kk([0,.6,0],[-.4,-1.5,-.3],.7,Fk,.1),Vk([0,.5,0],.55,Rk)])),w=Bk(new kd(1),Fk),T=Bk(new Cd(1,1),Rk);for(let e=0;e<14;e+=1)this.chips.push(t(e{let e=this.context;e!==null&&e.state!==`running`&&e.resume().catch(()=>void 0),this.unlock().catch(()=>void 0)};visibility=()=>{let e=this.context;if(e===null)return;let t=document.hidden?e.suspend():this.unlocked?e.resume():null;t!==null&&t.catch(()=>void 0)};constructor(e){this.settings=e;for(let e of xA)window.addEventListener(e,this.unlockListener);document.addEventListener(`visibilitychange`,this.visibility)}unlock(){return this.destroyed||this.unlocked?Promise.resolve():(this.unlockPromise===null&&(this.unlockPromise=this.performUnlock().finally(()=>{this.unlockPromise=null})),this.unlockPromise)}async performUnlock(){let e=this.context;if(e===null){e=new AudioContext;let t=e.createGain();t.gain.value=Math.min(.8,Math.max(0,this.settings().volume));let n=e.createBiquadFilter();n.type=`lowpass`,n.frequency.value=yA,n.Q.value=.7,t.connect(n).connect(e.destination),this.context=e,this.master=t,this.muffle=n}if(e.state===`suspended`&&await e.resume(),this.destroyed||this.context!==e)return;let t=await this.decodeInjuryBuffers(e);if(!(this.destroyed||this.context!==e)){this.injuryBuffers=t,this.unlocked=!0;for(let e of xA)window.removeEventListener(e,this.unlockListener);this.crowdStarted||(this.crowdStarted=!0,this.crowdBed())}}setVolume(){this.master!==null&&(this.master.gain.value=Math.min(.8,Math.max(0,this.settings().volume)))}event(e,t=!1){if(this.unlocked)switch(e.kind){case`punch_start`:this.whoosh(e.detail.split(`:`)[1]??`jab`,t);break;case`whiff`:this.noise({duration:.11,frequency:850,sweepTo:320,gain:.07,type:`bandpass`,q:1.1});break;case`hit`:case`counter_hit`:{let n=e.detail.endsWith(`body`),r=Math.min(1,e.amount/260),i=Math.min(.36,.14+r*.2)*(e.kind===`counter_hit`?1.25:1);this.impact(i,n,r,t),(e.kind===`counter_hit`||r>.7||t)&&this.crowdSwell(.35+r*.4),(e.kind===`counter_hit`&&e.amount>=50||e.amount>=90)&&this.ooh(Math.min(1,e.amount/160));break}case`referee_hit`:{let t=Math.min(1,e.amount/260);this.impact(Math.min(.36,.16+t*.2),e.detail.endsWith(`body`),t),this.ooh(.7+t*.3),this.crowdSwell(.5+t*.3);break}case`referee_down`:this.impact(.36,!1,1),this.crowdRoar(1),this.ooh(1);break;case`block`:this.noise({duration:.045,frequency:1200,sweepTo:600,gain:.14,type:`bandpass`,q:1.1}),this.noise({duration:.09,frequency:260,gain:.08}),this.tone({from:160,to:110,duration:.06,type:`triangle`,gain:.05}),t&&this.tone({from:96,to:44,duration:.2,type:`sine`,gain:.2});break;case`perfect_block`:this.noise({duration:.05,frequency:1800,sweepTo:900,gain:.16,type:`bandpass`,q:1.6}),this.tone({from:280,to:210,duration:.06,type:`triangle`,gain:.06});break;case`guard_break`:this.impact(.3,!1,.9),this.tone({from:230,to:78,duration:.2,type:`sawtooth`,gain:.08}),this.crowdSwell(.5),this.ooh(.6);break;case`stun`:this.tone({from:96,to:74,duration:.22,type:`sine`,gain:.1}),this.crowdSwell(.3);break;case`parry`:this.noise({duration:.06,frequency:2400,sweepTo:1100,gain:.18,type:`bandpass`,q:1.8}),this.tone({from:330,to:180,duration:.09,type:`triangle`,gain:.07}),this.crowdSwell(.35);break;case`body_collapse`:this.tone({from:118,to:52,duration:.42,type:`sine`,gain:.16}),this.noise({duration:.26,frequency:420,sweepTo:180,gain:.05,type:`bandpass`,q:.9}),this.crowdSwell(.6);break;case`eye_shut`:this.crowdSwell(.25);break;case`corner`:this.noise({duration:.22,frequency:2600,sweepTo:1500,gain:.05,type:`bandpass`,q:.8});break;case`knockdown`:this.impact(.34,!1,1),this.tone({from:60,to:28,duration:.42,type:`sine`,gain:.3}),this.noise({duration:.3,frequency:140,gain:.24}),this.crowdRoar(1),this.hush();break;case`bell`:{let t=e.detail===`round_start`?3:1;for(let e=0;e10*r||this.clapperRound===t||(this.clapperRound=t,!this.unlocked))return;this.noise({duration:.05,frequency:2600,gain:.42,type:`bandpass`,q:1.4}),this.noise({duration:.09,frequency:700,gain:.18,type:`bandpass`,q:.8});let i=window.setTimeout(()=>{this.timers.delete(i),this.noise({duration:.05,frequency:2400,gain:.4,type:`bandpass`,q:1.4}),this.noise({duration:.09,frequency:660,gain:.16,type:`bandpass`,q:.8})},120);this.timers.add(i)}getUpBeat(){this.tone({from:1320,duration:.05,type:`square`,gain:.07})}getUpVerdict(e){e===`perfect`?(this.tone({from:880,to:1760,duration:.12,type:`triangle`,gain:.11}),this.tone({from:1760,duration:.1,type:`triangle`,gain:.08,delay:.07})):e===`good`?this.tone({from:660,to:990,duration:.1,type:`triangle`,gain:.09}):e===`wrong`?this.tone({from:140,duration:.16,type:`sawtooth`,gain:.09}):this.tone({from:260,duration:.09,type:`sine`,gain:.07})}chant(){let e=this.context;if(!(!this.unlocked||e===null||e.currentTime-this.lastChantAtthis.murmurLevel;this.murmurLevel=r,n.gain.setTargetAtTime(r*_A,t.currentTime,i?.3:.8)}rocked(e,t){this.follow(t);let n=this.context,r=this.muffle;if(!this.unlocked||n===null||r===null)return;let i=Math.max(0,Math.min(1,e));if(Math.abs(i-this.rockedLevel)>=.02||i===0&&this.rockedLevel!==0){let e=i>this.rockedLevel;this.rockedLevel=i,r.frequency.setTargetAtTime(yA*(bA/yA)**+i,n.currentTime,e?.05:.9)}i>.15&&t-this.lastRockedBeat>=CA(i)&&(this.lastRockedBeat=t,this.tone({from:58,to:40,duration:.12,type:`sine`,gain:.09+i*.08}),this.tone({from:50,to:36,duration:.14,type:`sine`,gain:.07+i*.06,delay:.16}))}snapshot(e,t,n,r){if(this.follow(e),!this.unlocked)return;let i=1-t/Math.max(1,n);i>.55&&e-this.lastBreathTick>=75&&(this.lastBreathTick=e,this.noise({duration:.18,frequency:420,gain:.045+i*.04})),(i>.72||r>500)&&this.rockedLevel<=.15&&e-this.lastHeartbeatTick>=24&&(this.lastHeartbeatTick=e,this.tone({from:52,duration:.09,type:`sine`,gain:.055}))}result(e){if(this.openMuffle(),!this.unlocked)return;this.crowdSwell(1),this.tone({from:e.winner_id===null?280:520,duration:.45,type:`triangle`,gain:.18});let t=window.setTimeout(()=>{this.timers.delete(t),this.tone({from:650,duration:.5,type:`triangle`,gain:.14})},160);this.timers.add(t)}injury(e){let t=this.context,n=this.master,r=this.injuryBuffers.get(oA[e]??e),i=this.settings();if(!this.unlocked||t===null||n===null||i.blood!==`full`||i.reducedMotion||(this.tearing(),r===void 0))return;let a=t.createBufferSource(),o=t.createGain();a.buffer=r,o.gain.value=.2,a.connect(o).connect(n),a.start()}tearing(){this.noise({duration:.09,frequency:2600,sweepTo:700,gain:.22,type:`bandpass`,q:1.6}),this.noise({duration:.4,frequency:900,sweepTo:150,gain:.28,type:`lowpass`,q:6,offset:.35});for(let[e,t]of[.3,.9,1.5].entries())this.noise({duration:.2,frequency:480-e*60,sweepTo:170,gain:.13-e*.03,type:`bandpass`,q:4,delay:t,offset:.2+t})}gore(e){let t=this.settings();if(!this.unlocked||t.volume<=0)return;let n=t.blood===`full`&&!t.reducedMotion;switch(e.kind){case`injury`:{let t=sA[st(e.injury)];n?(this.wound(t,0),t===`crack`&&this.xray()):this.impact(.3,!1,.9),this.ooh(1),this.crowdSwell(.8),t!==`crack`&&this.crowdVoice({...pA,delay:.45});break}case`vomit`:n&&this.retch(),this.crowdVoice({...pA,gain:.09,delay:.5});break;case`finish_him`:this.omen(),this.crowdRoar(1);break;case`fatality`:this.sting(),n&&cA[e.fatality].forEach((e,t)=>this.wound(e,t*.2)),this.crowdRoar(1),this.ooh(1);break;case`death`:mt(e.cause)===null?(this.flatline(0),this.hush(!0)):this.flatline(dA)}}wound(e,t){e===`crack`?this.crack(t):e===`rip`?this.rip(t):e===`squelch`?this.squelch(t):this.chop(t)}xray(){this.tone({from:90,to:440,duration:yk,type:`sine`,gain:.1,delay:0}),this.crack(yk),this.noise({duration:.16,frequency:520,sweepTo:170,gain:.2,type:`lowpass`,q:4,delay:yk+.03,offset:.3})}crack(e){this.noise({duration:.03,frequency:3400,sweepTo:1800,gain:.34,type:`bandpass`,q:2.2,delay:e}),this.tone({from:190,to:70,duration:.09,type:`triangle`,gain:.22,delay:e});for(let[t,n]of uA.entries())this.noise({duration:.018,frequency:2800-t*260,gain:.2-t*.03,type:`highpass`,q:1.4,delay:e+n,offset:.17*(t+1)})}rip(e){this.noise({duration:.5,frequency:420,sweepTo:2600,gain:.3,type:`bandpass`,q:3.2,delay:e,offset:.4}),this.noise({duration:.45,frequency:180,sweepTo:520,gain:.2,type:`lowpass`,q:5,delay:e+.03,offset:.7});for(let t=0;t<6;t+=1)this.noise({duration:.035,frequency:900+t*280,gain:.16,type:`bandpass`,q:6,delay:e+.05+t*.07,offset:.09*t});this.noise({duration:.12,frequency:700,sweepTo:160,gain:.24,type:`lowpass`,q:4,delay:e+.52,offset:.55})}squelch(e){this.noise({duration:.3,frequency:1100,sweepTo:140,gain:.32,type:`lowpass`,q:9,delay:e,offset:.25}),this.noise({duration:.22,frequency:300,sweepTo:900,gain:.18,type:`bandpass`,q:7,delay:e+.1,offset:.6}),this.tone({from:150,to:60,duration:.12,type:`sine`,gain:.16,delay:e}),this.spatter(e+.25)}spatter(e){for(let[t,n]of lA.entries())this.noise({duration:.03,frequency:1500+t%3*600,sweepTo:500,gain:.14-t*.012,type:`bandpass`,q:3,delay:e+n,offset:.13*t})}chop(e){this.tone({from:120,to:38,duration:.2,type:`sine`,gain:.32,delay:e}),this.noise({duration:.05,frequency:2200,sweepTo:500,gain:.3,type:`bandpass`,q:1.2,delay:e}),this.noise({duration:.16,frequency:600,sweepTo:150,gain:.26,type:`lowpass`,q:5,delay:e+.02,offset:.3});for(let[t,n]of[.3,.75,1.2,1.65].entries())this.noise({duration:.22,frequency:520-t*60,sweepTo:170,gain:.15-t*.03,type:`bandpass`,q:4,delay:e+n,offset:.2+n})}retch(){for(let[e,t]of[0,.45].entries())this.tone({from:150-e*25,to:80,duration:.3,type:`sawtooth`,gain:.09,delay:t}),this.crowdVoice({duration:.36,first:[650,360],second:[1150,780],gain:.22,delay:t});this.noise({duration:.45,frequency:2400,sweepTo:300,gain:.24,type:`lowpass`,q:3,delay:.9,offset:.5}),this.spatter(1.05)}drum(e){this.tone({from:95,to:30,duration:.7,type:`sine`,gain:.35,delay:e}),this.noise({duration:.2,frequency:160,gain:.3,delay:e}),this.noise({duration:.03,frequency:1800,sweepTo:600,gain:.18,type:`bandpass`,q:1,delay:e})}omen(){this.drum(0),this.held({frequency:27.5,duration:1.4,gain:.3,attack:1.1,type:`sine`,delay:.1}),this.held({frequency:55,duration:1.4,gain:.12,attack:1.2,type:`sawtooth`,delay:.1}),this.held({frequency:58.3,duration:1.4,gain:.1,attack:1.2,type:`sawtooth`,delay:.1}),this.drum(1.5)}sting(){this.drum(0);for(let[e,t]of[196,185,147,110].entries())this.tone({from:t,to:t*.97,duration:.5,type:`sawtooth`,gain:.14,delay:e*.2}),this.tone({from:t/2,duration:.5,type:`square`,gain:.1,delay:e*.2});this.tone({from:73.4,to:69,duration:1.4,type:`sawtooth`,gain:.2,delay:.8}),this.tone({from:36.7,to:34.5,duration:1.4,type:`sine`,gain:.32,delay:.8}),this.drum(.8)}flatline(e){for(let t of[0,.38])this.held({frequency:880,duration:.09,gain:.1,attack:.005,type:`sine`,delay:e+t});this.held({frequency:880,duration:2.6,gain:.1,attack:.01,type:`sine`,delay:e+.76})}held(e){let t=this.context,n=this.master;if(t===null||n===null)return;let r=t.currentTime+(e.delay??0),i=Math.min(3,e.duration),a=Math.min(.35,e.gain),o=t.createOscillator(),s=t.createGain();o.type=e.type,o.frequency.setValueAtTime(Math.max(20,e.frequency),r),s.gain.setValueAtTime(1e-4,r),s.gain.exponentialRampToValueAtTime(a,r+Math.min(i-.03,e.attack)),s.gain.setValueAtTime(a,r+i-.03),s.gain.exponentialRampToValueAtTime(1e-4,r+i),o.connect(s).connect(n),o.start(r),o.stop(r+i+.03)}async decodeInjuryBuffers(e){let t=await Promise.all(Yi.map(async t=>{let n=atob(t.wav),r=new Uint8Array(n.length);for(let e=0;evoid 0)}},TA=class extends Error{code;reloadRequired;name=`ClientError`;constructor(e,t=!1){super(e),this.code=e,this.reloadRequired=t}};async function EA(e,t){if(!e.ok)throw new TA(e.status===429?`rate_limited`:t);if(!(e.headers.get(`content-type`)??``).toLowerCase().startsWith(`application/json`))throw new TA(t);try{return jt(await e.text())}catch{throw new TA(t)}}function DA(e=window.location.search){let t=new URLSearchParams(e).getAll(`instance_id`);if(t.length!==1||!/^[A-Za-z0-9_-]{1,255}$/u.test(t[0]??``))throw new TA(`invalid_launch`);return t[0]}function OA(e){if(typeof e==`object`&&e&&`protocol`in e&&e.protocol!==7)throw new TA(`client_outdated`,!0)}async function kA(e,t){let n=new URL(`/api/hands/bootstrap`,window.location.origin);try{let r=await EA(await fetch(n,{method:`POST`,credentials:`same-origin`,cache:`no-store`,headers:{"Content-Type":`application/json`},body:JSON.stringify({instance_id:e}),...t===void 0?{}:{signal:t}}),`bootstrap_failed`);return OA(r),xn(r)}catch(e){throw e instanceof TA?e:e instanceof Dt?new TA(`invalid_bootstrap`):new TA(`bootstrap_failed`)}}async function AA(e,t,n){try{return Sn(await EA(await fetch(new URL(`/api/hands/token`,window.location.origin),{method:`POST`,credentials:`same-origin`,cache:`no-store`,headers:{"Content-Type":`application/json`},body:JSON.stringify({code:e,state:t}),...n===void 0?{}:{signal:n}}),`token_failed`))}catch(e){throw e instanceof TA?e:e instanceof Dt?new TA(`invalid_token_response`):new TA(`token_failed`)}}function jA(e){return e instanceof TA?e.code:e instanceof Dt?`protocol_error`:`unexpected_error`}var MA=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function NA(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var PA={exports:{}},FA;function IA(){return FA||(FA=1,(function(e){var t=Object.prototype.hasOwnProperty,n=`~`;function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(e,t,r,a,o){if(typeof r!=`function`)throw TypeError(`The listener must be a function`);var s=new i(r,a||e,o),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function o(e,t){--e._eventsCount===0?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var e=[],r,i;if(this._eventsCount===0)return e;for(i in r=this._events)t.call(r,i)&&e.push(n?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(r)):e},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,a=r.length,o=Array(a);ie;function t(e){}e.assertIs=t;function n(e){throw Error()}e.assertNever=n,e.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},e.getValidEnumValues=t=>{let n=e.objectKeys(t).filter(e=>typeof t[t[e]]!=`number`),r={};for(let e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys=typeof Object.keys==`function`?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(let n of e)if(t(n))return n},e.isInteger=typeof Number.isInteger==`function`?e=>Number.isInteger(e):e=>typeof e==`number`&&isFinite(e)&&Math.floor(e)===e;function r(e,t=` | `){return e.map(e=>typeof e==`string`?`'${e}'`:e).join(t)}e.joinValues=r,e.jsonStringifyReplacer=(e,t)=>typeof t==`bigint`?t.toString():t})(RA||={});var zA;(function(e){e.mergeShapes=(e,t)=>({...e,...t})})(zA||={});var K=RA.arrayToEnum([`string`,`nan`,`number`,`integer`,`float`,`boolean`,`date`,`bigint`,`symbol`,`function`,`undefined`,`null`,`array`,`object`,`unknown`,`promise`,`void`,`never`,`map`,`set`]),BA=e=>{switch(typeof e){case`undefined`:return K.undefined;case`string`:return K.string;case`number`:return isNaN(e)?K.nan:K.number;case`boolean`:return K.boolean;case`function`:return K.function;case`bigint`:return K.bigint;case`symbol`:return K.symbol;case`object`:return Array.isArray(e)?K.array:e===null?K.null:e.then&&typeof e.then==`function`&&e.catch&&typeof e.catch==`function`?K.promise:typeof Map<`u`&&e instanceof Map?K.map:typeof Set<`u`&&e instanceof Set?K.set:typeof Date<`u`&&e instanceof Date?K.date:K.object;default:return K.unknown}},q=RA.arrayToEnum([`invalid_type`,`invalid_literal`,`custom`,`invalid_union`,`invalid_union_discriminator`,`invalid_enum_value`,`unrecognized_keys`,`invalid_arguments`,`invalid_return_type`,`invalid_date`,`invalid_string`,`too_small`,`too_big`,`invalid_intersection_types`,`not_multiple_of`,`not_finite`]),VA=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,`$1:`),HA=class e extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name=`ZodError`,this.issues=e}get errors(){return this.issues}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`)i.unionErrors.map(r);else if(i.code===`invalid_return_type`)r(i.returnTypeError);else if(i.code===`invalid_arguments`)r(i.argumentsError);else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;re.message){let t={},n=[];for(let r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}};HA.create=e=>new HA(e);var UA=(e,t)=>{let n;switch(e.code){case q.invalid_type:n=e.received===K.undefined?`Required`:`Expected ${e.expected}, received ${e.received}`;break;case q.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,RA.jsonStringifyReplacer)}`;break;case q.unrecognized_keys:n=`Unrecognized key(s) in object: ${RA.joinValues(e.keys,`, `)}`;break;case q.invalid_union:n=`Invalid input`;break;case q.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${RA.joinValues(e.options)}`;break;case q.invalid_enum_value:n=`Invalid enum value. Expected ${RA.joinValues(e.options)}, received '${e.received}'`;break;case q.invalid_arguments:n=`Invalid function arguments`;break;case q.invalid_return_type:n=`Invalid function return type`;break;case q.invalid_date:n=`Invalid date`;break;case q.invalid_string:typeof e.validation==`object`?`includes`in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position==`number`&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):`startsWith`in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:`endsWith`in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:RA.assertNever(e.validation):n=e.validation===`regex`?`Invalid`:`Invalid ${e.validation}`;break;case q.too_small:n=e.type===`array`?`Array must contain ${e.exact?`exactly`:e.inclusive?`at least`:`more than`} ${e.minimum} element(s)`:e.type===`string`?`String must contain ${e.exact?`exactly`:e.inclusive?`at least`:`over`} ${e.minimum} character(s)`:e.type===`number`?`Number must be ${e.exact?`exactly equal to `:e.inclusive?`greater than or equal to `:`greater than `}${e.minimum}`:e.type===`date`?`Date must be ${e.exact?`exactly equal to `:e.inclusive?`greater than or equal to `:`greater than `}${new Date(Number(e.minimum))}`:`Invalid input`;break;case q.too_big:n=e.type===`array`?`Array must contain ${e.exact?`exactly`:e.inclusive?`at most`:`less than`} ${e.maximum} element(s)`:e.type===`string`?`String must contain ${e.exact?`exactly`:e.inclusive?`at most`:`under`} ${e.maximum} character(s)`:e.type===`number`?`Number must be ${e.exact?`exactly`:e.inclusive?`less than or equal to`:`less than`} ${e.maximum}`:e.type===`bigint`?`BigInt must be ${e.exact?`exactly`:e.inclusive?`less than or equal to`:`less than`} ${e.maximum}`:e.type===`date`?`Date must be ${e.exact?`exactly`:e.inclusive?`smaller than or equal to`:`smaller than`} ${new Date(Number(e.maximum))}`:`Invalid input`;break;case q.custom:n=`Invalid input`;break;case q.invalid_intersection_types:n=`Intersection results could not be merged`;break;case q.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case q.not_finite:n=`Number must be finite`;break;default:n=t.defaultError,RA.assertNever(e)}return{message:n}},WA=UA;function GA(e){WA=e}function KA(){return WA}var qA=e=>{let{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a};if(i.message!==void 0)return{...i,path:a,message:i.message};let s=``,c=r.filter(e=>!!e).slice().reverse();for(let e of c)s=e(o,{data:t,defaultError:s}).message;return{...i,path:a,message:s}},JA=[];function J(e,t){let n=KA(),r=qA({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===UA?void 0:UA].filter(e=>!!e)});e.common.issues.push(r)}var YA=class e{constructor(){this.value=`valid`}dirty(){this.value===`valid`&&(this.value=`dirty`)}abort(){this.value!==`aborted`&&(this.value=`aborted`)}static mergeArray(e,t){let n=[];for(let r of t){if(r.status===`aborted`)return XA;r.status===`dirty`&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(t,n){let r=[];for(let e of n){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return e.mergeObjectSync(t,r)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:t,value:i}=r;if(t.status===`aborted`||i.status===`aborted`)return XA;t.status===`dirty`&&e.dirty(),i.status===`dirty`&&e.dirty(),t.value!==`__proto__`&&(i.value!==void 0||r.alwaysSet)&&(n[t.value]=i.value)}return{status:e.value,value:n}}},XA=Object.freeze({status:`aborted`}),ZA=e=>({status:`dirty`,value:e}),QA=e=>({status:`valid`,value:e}),$A=e=>e.status===`aborted`,ej=e=>e.status===`dirty`,tj=e=>e.status===`valid`,nj=e=>typeof Promise<`u`&&e instanceof Promise;function rj(e,t,n,r){if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return t.get(e)}function ij(e,t,n,r,i){if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return t.set(e,n),n}var aj;(function(e){e.errToObj=e=>typeof e==`string`?{message:e}:e||{},e.toString=e=>typeof e==`string`?e:e?.message})(aj||={});var oj,sj,cj=class{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},lj=(e,t)=>{if(tj(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error(`Validation failed but no issues detected.`);return{success:!1,get error(){if(this._error)return this._error;let t=new HA(e.common.issues);return this._error=t,this._error}}};function uj(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:a}=e;return t.code===`invalid_enum_value`?{message:a??i.defaultError}:i.data===void 0?{message:a??r??i.defaultError}:t.code===`invalid_type`?{message:a??n??i.defaultError}:{message:i.defaultError}},description:i}}var dj=class{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return BA(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:BA(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new YA,ctx:{common:e.parent.common,data:e.data,parsedType:BA(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(nj(t))throw Error(`Synchronous parse encountered promise.`);return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){let n={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:BA(e)};return lj(n,this._parseSync({data:e,path:n.path,parent:n}))}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:BA(e)},r=this._parse({data:e,path:n.path,parent:n});return lj(n,await(nj(r)?r:Promise.resolve(r)))}refine(e,t){let n=e=>typeof t==`string`||t===void 0?{message:t}:typeof t==`function`?t(e):t;return this._refinement((t,r)=>{let i=e(t),a=()=>r.addIssue({code:q.custom,...n(t)});return typeof Promise<`u`&&i instanceof Promise?i.then(e=>e?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(e,t){return this._refinement((n,r)=>e(n)?!0:(r.addIssue(typeof t==`function`?t(n,r):t),!1))}_refinement(e){return new cM({schema:this,typeName:bM.ZodEffects,effect:{type:`refinement`,refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return lM.create(this,this._def)}nullable(){return uM.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Uj.create(this,this._def)}promise(){return sM.create(this,this._def)}or(e){return Kj.create([this,e],this._def)}and(e){return Xj.create(this,e,this._def)}transform(e){return new cM({...uj(this._def),schema:this,typeName:bM.ZodEffects,effect:{type:`transform`,transform:e}})}default(e){let t=typeof e==`function`?e:()=>e;return new dM({...uj(this._def),innerType:this,defaultValue:t,typeName:bM.ZodDefault})}brand(){return new hM({typeName:bM.ZodBranded,type:this,...uj(this._def)})}catch(e){let t=typeof e==`function`?e:()=>e;return new fM({...uj(this._def),innerType:this,catchValue:t,typeName:bM.ZodCatch})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}pipe(e){return gM.create(this,e)}readonly(){return _M.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},fj=/^c[^\s-]{8,}$/i,pj=/^[0-9a-z]+$/,mj=/^[0-9A-HJKMNP-TV-Z]{26}$/,hj=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,gj=/^[a-z0-9_-]{21}$/i,_j=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,vj=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,yj=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,bj,xj=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Sj=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,Cj=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,wj=`((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`,Tj=RegExp(`^${wj}$`);function Ej(e){let t=`([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d`;return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision??(t=`${t}(\\.\\d+)?`),t}function Dj(e){return RegExp(`^${Ej(e)}$`)}function Oj(e){let t=`${wj}T${Ej(e)}`,n=[];return n.push(e.local?`Z?`:`Z`),e.offset&&n.push(`([+-]\\d{2}:?\\d{2})`),t=`${t}(${n.join(`|`)})`,RegExp(`^${t}$`)}function kj(e,t){return!((t!==`v4`&&t||!xj.test(e))&&(t!==`v6`&&t||!Sj.test(e)))}var Aj=class e extends dj{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==K.string){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.string,received:t.parsedType}),XA}let t=new YA,n;for(let r of this._def.checks)if(r.kind===`min`)e.data.lengthr.value&&(n=this._getOrReturnCtx(e,n),J(n,{code:q.too_big,maximum:r.value,type:`string`,inclusive:!0,exact:!1,message:r.message}),t.dirty());else if(r.kind===`length`){let i=e.data.length>r.value,a=e.data.lengthe.test(t),{validation:t,code:q.invalid_string,...aj.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(e){return this._addCheck({kind:`email`,...aj.errToObj(e)})}url(e){return this._addCheck({kind:`url`,...aj.errToObj(e)})}emoji(e){return this._addCheck({kind:`emoji`,...aj.errToObj(e)})}uuid(e){return this._addCheck({kind:`uuid`,...aj.errToObj(e)})}nanoid(e){return this._addCheck({kind:`nanoid`,...aj.errToObj(e)})}cuid(e){return this._addCheck({kind:`cuid`,...aj.errToObj(e)})}cuid2(e){return this._addCheck({kind:`cuid2`,...aj.errToObj(e)})}ulid(e){return this._addCheck({kind:`ulid`,...aj.errToObj(e)})}base64(e){return this._addCheck({kind:`base64`,...aj.errToObj(e)})}ip(e){return this._addCheck({kind:`ip`,...aj.errToObj(e)})}datetime(e){return typeof e==`string`?this._addCheck({kind:`datetime`,precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:`datetime`,precision:e?.precision===void 0?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...aj.errToObj(e?.message)})}date(e){return this._addCheck({kind:`date`,message:e})}time(e){return typeof e==`string`?this._addCheck({kind:`time`,precision:null,message:e}):this._addCheck({kind:`time`,precision:e?.precision===void 0?null:e?.precision,...aj.errToObj(e?.message)})}duration(e){return this._addCheck({kind:`duration`,...aj.errToObj(e)})}regex(e,t){return this._addCheck({kind:`regex`,regex:e,...aj.errToObj(t)})}includes(e,t){return this._addCheck({kind:`includes`,value:e,position:t?.position,...aj.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:`startsWith`,value:e,...aj.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:`endsWith`,value:e,...aj.errToObj(t)})}min(e,t){return this._addCheck({kind:`min`,value:e,...aj.errToObj(t)})}max(e,t){return this._addCheck({kind:`max`,value:e,...aj.errToObj(t)})}length(e,t){return this._addCheck({kind:`length`,value:e,...aj.errToObj(t)})}nonempty(e){return this.min(1,aj.errToObj(e))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:`trim`}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:`toLowerCase`}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:`toUpperCase`}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind===`datetime`)}get isDate(){return!!this._def.checks.find(e=>e.kind===`date`)}get isTime(){return!!this._def.checks.find(e=>e.kind===`time`)}get isDuration(){return!!this._def.checks.find(e=>e.kind===`duration`)}get isEmail(){return!!this._def.checks.find(e=>e.kind===`email`)}get isURL(){return!!this._def.checks.find(e=>e.kind===`url`)}get isEmoji(){return!!this._def.checks.find(e=>e.kind===`emoji`)}get isUUID(){return!!this._def.checks.find(e=>e.kind===`uuid`)}get isNANOID(){return!!this._def.checks.find(e=>e.kind===`nanoid`)}get isCUID(){return!!this._def.checks.find(e=>e.kind===`cuid`)}get isCUID2(){return!!this._def.checks.find(e=>e.kind===`cuid2`)}get isULID(){return!!this._def.checks.find(e=>e.kind===`ulid`)}get isIP(){return!!this._def.checks.find(e=>e.kind===`ip`)}get isBase64(){return!!this._def.checks.find(e=>e.kind===`base64`)}get minLength(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.valuenew Aj({checks:[],typeName:bM.ZodString,coerce:e?.coerce??!1,...uj(e)});function jj(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=(t.toString().split(`.`)[1]||``).length,i=n>r?n:r;return parseInt(e.toFixed(i).replace(`.`,``))%parseInt(t.toFixed(i).replace(`.`,``))/10**i}var Mj=class e extends dj{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==K.number){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.number,received:t.parsedType}),XA}let t,n=new YA;for(let r of this._def.checks)r.kind===`int`?RA.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),J(t,{code:q.invalid_type,expected:`integer`,received:`float`,message:r.message}),n.dirty()):r.kind===`min`?(r.inclusive?e.datar.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),J(t,{code:q.too_big,maximum:r.value,type:`number`,inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):r.kind===`multipleOf`?jj(e.data,r.value)!==0&&(t=this._getOrReturnCtx(e,t),J(t,{code:q.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):r.kind===`finite`?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),J(t,{code:q.not_finite,message:r.message}),n.dirty()):RA.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit(`min`,e,!0,aj.toString(t))}gt(e,t){return this.setLimit(`min`,e,!1,aj.toString(t))}lte(e,t){return this.setLimit(`max`,e,!0,aj.toString(t))}lt(e,t){return this.setLimit(`max`,e,!1,aj.toString(t))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:aj.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(e){return this._addCheck({kind:`int`,message:aj.toString(e)})}positive(e){return this._addCheck({kind:`min`,value:0,inclusive:!1,message:aj.toString(e)})}negative(e){return this._addCheck({kind:`max`,value:0,inclusive:!1,message:aj.toString(e)})}nonpositive(e){return this._addCheck({kind:`max`,value:0,inclusive:!0,message:aj.toString(e)})}nonnegative(e){return this._addCheck({kind:`min`,value:0,inclusive:!0,message:aj.toString(e)})}multipleOf(e,t){return this._addCheck({kind:`multipleOf`,value:e,message:aj.toString(t)})}finite(e){return this._addCheck({kind:`finite`,message:aj.toString(e)})}safe(e){return this._addCheck({kind:`min`,inclusive:!0,value:-(2**53-1),message:aj.toString(e)})._addCheck({kind:`max`,inclusive:!0,value:2**53-1,message:aj.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.valuee.kind===`int`||e.kind===`multipleOf`&&RA.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks)if(n.kind===`finite`||n.kind===`int`||n.kind===`multipleOf`)return!0;else n.kind===`min`?(t===null||n.value>t)&&(t=n.value):n.kind===`max`&&(e===null||n.valuenew Mj({checks:[],typeName:bM.ZodNumber,coerce:e?.coerce||!1,...uj(e)});var Nj=class e extends dj{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==K.bigint){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.bigint,received:t.parsedType}),XA}let t,n=new YA;for(let r of this._def.checks)r.kind===`min`?(r.inclusive?e.datar.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),J(t,{code:q.too_big,type:`bigint`,maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):r.kind===`multipleOf`?e.data%r.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),J(t,{code:q.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):RA.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit(`min`,e,!0,aj.toString(t))}gt(e,t){return this.setLimit(`min`,e,!1,aj.toString(t))}lte(e,t){return this.setLimit(`max`,e,!0,aj.toString(t))}lt(e,t){return this.setLimit(`max`,e,!1,aj.toString(t))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:aj.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(e){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!1,message:aj.toString(e)})}negative(e){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!1,message:aj.toString(e)})}nonpositive(e){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!0,message:aj.toString(e)})}nonnegative(e){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!0,message:aj.toString(e)})}multipleOf(e,t){return this._addCheck({kind:`multipleOf`,value:e,message:aj.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.valuenew Nj({checks:[],typeName:bM.ZodBigInt,coerce:e?.coerce??!1,...uj(e)});var Pj=class extends dj{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==K.boolean){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.boolean,received:t.parsedType}),XA}return QA(e.data)}};Pj.create=e=>new Pj({typeName:bM.ZodBoolean,coerce:e?.coerce||!1,...uj(e)});var Fj=class e extends dj{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==K.date){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.date,received:t.parsedType}),XA}if(isNaN(e.data.getTime()))return J(this._getOrReturnCtx(e),{code:q.invalid_date}),XA;let t=new YA,n;for(let r of this._def.checks)r.kind===`min`?e.data.getTime()r.value&&(n=this._getOrReturnCtx(e,n),J(n,{code:q.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:`date`}),t.dirty()):RA.assertNever(r);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(e,t){return this._addCheck({kind:`min`,value:e.getTime(),message:aj.toString(t)})}max(e,t){return this._addCheck({kind:`max`,value:e.getTime(),message:aj.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e==null?null:new Date(e)}get maxDate(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.valuenew Fj({checks:[],coerce:e?.coerce||!1,typeName:bM.ZodDate,...uj(e)});var Ij=class extends dj{_parse(e){if(this._getType(e)!==K.symbol){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.symbol,received:t.parsedType}),XA}return QA(e.data)}};Ij.create=e=>new Ij({typeName:bM.ZodSymbol,...uj(e)});var Lj=class extends dj{_parse(e){if(this._getType(e)!==K.undefined){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.undefined,received:t.parsedType}),XA}return QA(e.data)}};Lj.create=e=>new Lj({typeName:bM.ZodUndefined,...uj(e)});var Rj=class extends dj{_parse(e){if(this._getType(e)!==K.null){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.null,received:t.parsedType}),XA}return QA(e.data)}};Rj.create=e=>new Rj({typeName:bM.ZodNull,...uj(e)});var zj=class extends dj{constructor(){super(...arguments),this._any=!0}_parse(e){return QA(e.data)}};zj.create=e=>new zj({typeName:bM.ZodAny,...uj(e)});var Bj=class extends dj{constructor(){super(...arguments),this._unknown=!0}_parse(e){return QA(e.data)}};Bj.create=e=>new Bj({typeName:bM.ZodUnknown,...uj(e)});var Vj=class extends dj{_parse(e){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.never,received:t.parsedType}),XA}};Vj.create=e=>new Vj({typeName:bM.ZodNever,...uj(e)});var Hj=class extends dj{_parse(e){if(this._getType(e)!==K.undefined){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.void,received:t.parsedType}),XA}return QA(e.data)}};Hj.create=e=>new Hj({typeName:bM.ZodVoid,...uj(e)});var Uj=class e extends dj{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==K.array)return J(t,{code:q.invalid_type,expected:K.array,received:t.parsedType}),XA;if(r.exactLength!==null){let e=t.data.length>r.exactLength.value,i=t.data.lengthr.maxLength.value&&(J(t,{code:q.too_big,maximum:r.maxLength.value,type:`array`,inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new cj(t,e,t.path,n)))).then(e=>YA.mergeArray(n,e));let i=[...t.data].map((e,n)=>r.type._parseSync(new cj(t,e,t.path,n)));return YA.mergeArray(n,i)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:aj.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:aj.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:aj.toString(n)}})}nonempty(e){return this.min(1,e)}};Uj.create=(e,t)=>new Uj({type:e,minLength:null,maxLength:null,exactLength:null,typeName:bM.ZodArray,...uj(t)});function Wj(e){if(e instanceof Gj){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=lM.create(Wj(r))}return new Gj({...e._def,shape:()=>t})}return e instanceof Uj?new Uj({...e._def,type:Wj(e.element)}):e instanceof lM?lM.create(Wj(e.unwrap())):e instanceof uM?uM.create(Wj(e.unwrap())):e instanceof Zj?Zj.create(e.items.map(e=>Wj(e))):e}var Gj=class e extends dj{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),t=RA.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==K.object){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.object,received:t.parsedType}),XA}let{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof Vj&&this._def.unknownKeys===`strip`))for(let e in n.data)i.includes(e)||a.push(e);let o=[];for(let e of i){let t=r[e],i=n.data[e];o.push({key:{status:`valid`,value:e},value:t._parse(new cj(n,i,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof Vj){let e=this._def.unknownKeys;if(e===`passthrough`)for(let e of a)o.push({key:{status:`valid`,value:e},value:{status:`valid`,value:n.data[e]}});else if(e===`strict`)a.length>0&&(J(n,{code:q.unrecognized_keys,keys:a}),t.dirty());else if(e!==`strip`)throw Error(`Internal ZodObject error: invalid unknownKeys value.`)}else{let e=this._def.catchall;for(let t of a){let r=n.data[t];o.push({key:{status:`valid`,value:t},value:e._parse(new cj(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of o){let n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e}).then(e=>YA.mergeObjectSync(t,e)):YA.mergeObjectSync(t,o)}get shape(){return this._def.shape()}strict(t){return aj.errToObj,new e({...this._def,unknownKeys:`strict`,...t===void 0?{}:{errorMap:(e,n)=>{var r;let i=(r=this._def).errorMap?.call(r,e,n).message??n.defaultError;return e.code===`unrecognized_keys`?{message:aj.errToObj(t).message??i}:{message:i}}}})}strip(){return new e({...this._def,unknownKeys:`strip`})}passthrough(){return new e({...this._def,unknownKeys:`passthrough`})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:bM.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};return RA.objectKeys(t).forEach(e=>{t[e]&&this.shape[e]&&(n[e]=this.shape[e])}),new e({...this._def,shape:()=>n})}omit(t){let n={};return RA.objectKeys(this.shape).forEach(e=>{t[e]||(n[e]=this.shape[e])}),new e({...this._def,shape:()=>n})}deepPartial(){return Wj(this)}partial(t){let n={};return RA.objectKeys(this.shape).forEach(e=>{let r=this.shape[e];t&&!t[e]?n[e]=r:n[e]=r.optional()}),new e({...this._def,shape:()=>n})}required(t){let n={};return RA.objectKeys(this.shape).forEach(e=>{if(t&&!t[e])n[e]=this.shape[e];else{let t=this.shape[e];for(;t instanceof lM;)t=t._def.innerType;n[e]=t}}),new e({...this._def,shape:()=>n})}keyof(){return iM(RA.objectKeys(this.shape))}};Gj.create=(e,t)=>new Gj({shape:()=>e,unknownKeys:`strip`,catchall:Vj.create(),typeName:bM.ZodObject,...uj(t)}),Gj.strictCreate=(e,t)=>new Gj({shape:()=>e,unknownKeys:`strict`,catchall:Vj.create(),typeName:bM.ZodObject,...uj(t)}),Gj.lazycreate=(e,t)=>new Gj({shape:e,unknownKeys:`strip`,catchall:Vj.create(),typeName:bM.ZodObject,...uj(t)});var Kj=class extends dj{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;function r(e){for(let t of e)if(t.result.status===`valid`)return t.result;for(let n of e)if(n.result.status===`dirty`)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new HA(e.ctx.common.issues));return J(t,{code:q.invalid_union,unionErrors:n}),XA}if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(r);{let e,r=[];for(let i of n){let n={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:n});if(a.status===`valid`)return a;a.status===`dirty`&&!e&&(e={result:a,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=r.map(e=>new HA(e));return J(t,{code:q.invalid_union,unionErrors:i}),XA}}get options(){return this._def.options}};Kj.create=(e,t)=>new Kj({options:e,typeName:bM.ZodUnion,...uj(t)});var qj=e=>e instanceof nM?qj(e.schema):e instanceof cM?qj(e.innerType()):e instanceof rM?[e.value]:e instanceof aM?e.options:e instanceof oM?RA.objectValues(e.enum):e instanceof dM?qj(e._def.innerType):e instanceof Lj?[void 0]:e instanceof Rj?[null]:e instanceof lM?[void 0,...qj(e.unwrap())]:e instanceof uM?[null,...qj(e.unwrap())]:e instanceof hM||e instanceof _M?qj(e.unwrap()):e instanceof fM?qj(e._def.innerType):[],Jj=class e extends dj{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==K.object)return J(t,{code:q.invalid_type,expected:K.object,received:t.parsedType}),XA;let n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(J(t,{code:q.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),XA)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){let i=new Map;for(let e of n){let n=qj(e.shape[t]);if(!n.length)throw Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let r of n){if(i.has(r))throw Error(`Discriminator property ${String(t)} has duplicate value ${String(r)}`);i.set(r,e)}}return new e({typeName:bM.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...uj(r)})}};function Yj(e,t){let n=BA(e),r=BA(t);if(e===t)return{valid:!0,data:e};if(n===K.object&&r===K.object){let n=RA.objectKeys(t),r=RA.objectKeys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=Yj(e[n],t[n]);if(!r.valid)return{valid:!1};i[n]=r.data}return{valid:!0,data:i}}if(n===K.array&&r===K.array){if(e.length!==t.length)return{valid:!1};let n=[];for(let r=0;r{if($A(e)||$A(r))return XA;let i=Yj(e.value,r.value);return i.valid?((ej(e)||ej(r))&&t.dirty(),{status:t.value,value:i.data}):(J(n,{code:q.invalid_intersection_types}),XA)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};Xj.create=(e,t,n)=>new Xj({left:e,right:t,typeName:bM.ZodIntersection,...uj(n)});var Zj=class e extends dj{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==K.array)return J(n,{code:q.invalid_type,expected:K.array,received:n.parsedType}),XA;if(n.data.lengththis._def.items.length&&(J(n,{code:q.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:`array`}),t.dirty());let r=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new cj(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(r).then(e=>YA.mergeArray(t,e)):YA.mergeArray(t,r)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};Zj.create=(e,t)=>{if(!Array.isArray(e))throw Error(`You must pass an array of schemas to z.tuple([ ... ])`);return new Zj({items:e,typeName:bM.ZodTuple,rest:null,...uj(t)})};var Qj=class e extends dj{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==K.object)return J(n,{code:q.invalid_type,expected:K.object,received:n.parsedType}),XA;let r=[],i=this._def.keyType,a=this._def.valueType;for(let e in n.data)r.push({key:i._parse(new cj(n,e,n.path,e)),value:a._parse(new cj(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?YA.mergeObjectAsync(t,r):YA.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof dj?new e({keyType:t,valueType:n,typeName:bM.ZodRecord,...uj(r)}):new e({keyType:Aj.create(),valueType:t,typeName:bM.ZodRecord,...uj(n)})}},$j=class extends dj{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==K.map)return J(n,{code:q.invalid_type,expected:K.map,received:n.parsedType}),XA;let r=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map(([e,t],a)=>({key:r._parse(new cj(n,e,n.path,[a,`key`])),value:i._parse(new cj(n,t,n.path,[a,`value`]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of a){let r=await n.key,i=await n.value;if(r.status===`aborted`||i.status===`aborted`)return XA;(r.status===`dirty`||i.status===`dirty`)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let n of a){let r=n.key,i=n.value;if(r.status===`aborted`||i.status===`aborted`)return XA;(r.status===`dirty`||i.status===`dirty`)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}};$j.create=(e,t,n)=>new $j({valueType:t,keyType:e,typeName:bM.ZodMap,...uj(n)});var eM=class e extends dj{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==K.set)return J(n,{code:q.invalid_type,expected:K.set,received:n.parsedType}),XA;let r=this._def;r.minSize!==null&&n.data.sizer.maxSize.value&&(J(n,{code:q.too_big,maximum:r.maxSize.value,type:`set`,inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let n=new Set;for(let r of e){if(r.status===`aborted`)return XA;r.status===`dirty`&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let o=[...n.data.values()].map((e,t)=>i._parse(new cj(n,e,n.path,t)));return n.common.async?Promise.all(o).then(e=>a(e)):a(o)}min(t,n){return new e({...this._def,minSize:{value:t,message:aj.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:aj.toString(n)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}};eM.create=(e,t)=>new eM({valueType:e,minSize:null,maxSize:null,typeName:bM.ZodSet,...uj(t)});var tM=class e extends dj{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==K.function)return J(t,{code:q.invalid_type,expected:K.function,received:t.parsedType}),XA;function n(e,n){return qA({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,KA(),UA].filter(e=>!!e),issueData:{code:q.invalid_arguments,argumentsError:n}})}function r(e,n){return qA({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,KA(),UA].filter(e=>!!e),issueData:{code:q.invalid_return_type,returnTypeError:n}})}let i={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof sM){let e=this;return QA(async function(...t){let o=new HA([]),s=await e._def.args.parseAsync(t,i).catch(e=>{throw o.addIssue(n(t,e)),o}),c=await Reflect.apply(a,this,s);return await e._def.returns._def.type.parseAsync(c,i).catch(e=>{throw o.addIssue(r(c,e)),o})})}{let e=this;return QA(function(...t){let o=e._def.args.safeParse(t,i);if(!o.success)throw new HA([n(t,o.error)]);let s=Reflect.apply(a,this,o.data),c=e._def.returns.safeParse(s,i);if(!c.success)throw new HA([r(s,c.error)]);return c.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:Zj.create(t).rest(Bj.create())})}returns(t){return new e({...this._def,returns:t})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(t,n,r){return new e({args:t||Zj.create([]).rest(Bj.create()),returns:n||Bj.create(),typeName:bM.ZodFunction,...uj(r)})}},nM=class extends dj{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}};nM.create=(e,t)=>new nM({getter:e,typeName:bM.ZodLazy,...uj(t)});var rM=class extends dj{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return J(t,{received:t.data,code:q.invalid_literal,expected:this._def.value}),XA}return{status:`valid`,value:e.data}}get value(){return this._def.value}};rM.create=(e,t)=>new rM({value:e,typeName:bM.ZodLiteral,...uj(t)});function iM(e,t){return new aM({values:e,typeName:bM.ZodEnum,...uj(t)})}var aM=class e extends dj{constructor(){super(...arguments),oj.set(this,void 0)}_parse(e){if(typeof e.data!=`string`){let t=this._getOrReturnCtx(e),n=this._def.values;return J(t,{expected:RA.joinValues(n),received:t.parsedType,code:q.invalid_type}),XA}if(rj(this,oj)||ij(this,oj,new Set(this._def.values)),!rj(this,oj).has(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return J(t,{received:t.data,code:q.invalid_enum_value,options:n}),XA}return QA(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(t,n=this._def){return e.create(t,{...this._def,...n})}exclude(t,n=this._def){return e.create(this.options.filter(e=>!t.includes(e)),{...this._def,...n})}};oj=new WeakMap,aM.create=iM;var oM=class extends dj{constructor(){super(...arguments),sj.set(this,void 0)}_parse(e){let t=RA.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==K.string&&n.parsedType!==K.number){let e=RA.objectValues(t);return J(n,{expected:RA.joinValues(e),received:n.parsedType,code:q.invalid_type}),XA}if(rj(this,sj)||ij(this,sj,new Set(RA.getValidEnumValues(this._def.values))),!rj(this,sj).has(e.data)){let e=RA.objectValues(t);return J(n,{received:n.data,code:q.invalid_enum_value,options:e}),XA}return QA(e.data)}get enum(){return this._def.values}};sj=new WeakMap,oM.create=(e,t)=>new oM({values:e,typeName:bM.ZodNativeEnum,...uj(t)});var sM=class extends dj{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==K.promise&&t.common.async===!1?(J(t,{code:q.invalid_type,expected:K.promise,received:t.parsedType}),XA):QA((t.parsedType===K.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}};sM.create=(e,t)=>new sM({type:e,typeName:bM.ZodPromise,...uj(t)});var cM=class extends dj{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===bM.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,i={addIssue:e=>{J(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),r.type===`preprocess`){let e=r.transform(n.data,i);if(n.common.async)return Promise.resolve(e).then(async e=>{if(t.value===`aborted`)return XA;let r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return r.status===`aborted`?XA:r.status===`dirty`||t.value===`dirty`?ZA(r.value):r});{if(t.value===`aborted`)return XA;let r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return r.status===`aborted`?XA:r.status===`dirty`||t.value===`dirty`?ZA(r.value):r}}if(r.type===`refinement`){let e=e=>{let t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error(`Async refinement encountered during synchronous parse operation. Use .parseAsync instead.`);return e};if(n.common.async===!1){let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return r.status===`aborted`?XA:(r.status===`dirty`&&t.dirty(),e(r.value),{status:t.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>n.status===`aborted`?XA:(n.status===`dirty`&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))))}if(r.type===`transform`){if(n.common.async===!1){let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!tj(e))return e;let a=r.transform(e.value,i);if(a instanceof Promise)throw Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);return{status:t.value,value:a}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>tj(e)?Promise.resolve(r.transform(e.value,i)).then(e=>({status:t.value,value:e})):e)}RA.assertNever(r)}};cM.create=(e,t,n)=>new cM({schema:e,typeName:bM.ZodEffects,effect:t,...uj(n)}),cM.createWithPreprocess=(e,t,n)=>new cM({schema:t,effect:{type:`preprocess`,transform:e},typeName:bM.ZodEffects,...uj(n)});var lM=class extends dj{_parse(e){return this._getType(e)===K.undefined?QA(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};lM.create=(e,t)=>new lM({innerType:e,typeName:bM.ZodOptional,...uj(t)});var uM=class extends dj{_parse(e){return this._getType(e)===K.null?QA(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};uM.create=(e,t)=>new uM({innerType:e,typeName:bM.ZodNullable,...uj(t)});var dM=class extends dj{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===K.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}};dM.create=(e,t)=>new dM({innerType:e,typeName:bM.ZodDefault,defaultValue:typeof t.default==`function`?t.default:()=>t.default,...uj(t)});var fM=class extends dj{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return nj(r)?r.then(e=>({status:`valid`,value:e.status===`valid`?e.value:this._def.catchValue({get error(){return new HA(n.common.issues)},input:n.data})})):{status:`valid`,value:r.status===`valid`?r.value:this._def.catchValue({get error(){return new HA(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};fM.create=(e,t)=>new fM({innerType:e,typeName:bM.ZodCatch,catchValue:typeof t.catch==`function`?t.catch:()=>t.catch,...uj(t)});var pM=class extends dj{_parse(e){if(this._getType(e)!==K.nan){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.nan,received:t.parsedType}),XA}return{status:`valid`,value:e.data}}};pM.create=e=>new pM({typeName:bM.ZodNaN,...uj(e)});var mM=Symbol(`zod_brand`),hM=class extends dj{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}},gM=class e extends dj{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return e.status===`aborted`?XA:e.status===`dirty`?(t.dirty(),ZA(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{let e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return e.status===`aborted`?XA:e.status===`dirty`?(t.dirty(),{status:`dirty`,value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(t,n){return new e({in:t,out:n,typeName:bM.ZodPipeline})}},_M=class extends dj{_parse(e){let t=this._def.innerType._parse(e),n=e=>(tj(e)&&(e.value=Object.freeze(e.value)),e);return nj(t)?t.then(e=>n(e)):n(t)}unwrap(){return this._def.innerType}};_M.create=(e,t)=>new _M({innerType:e,typeName:bM.ZodReadonly,...uj(t)});function vM(e,t={},n){return e?zj.create().superRefine((r,i)=>{if(!e(r)){let e=typeof t==`function`?t(r):typeof t==`string`?{message:t}:t,a=e.fatal??n??!0,o=typeof e==`string`?{message:e}:e;i.addIssue({code:`custom`,...o,fatal:a})}}):zj.create()}var yM={object:Gj.lazycreate},bM;(function(e){e.ZodString=`ZodString`,e.ZodNumber=`ZodNumber`,e.ZodNaN=`ZodNaN`,e.ZodBigInt=`ZodBigInt`,e.ZodBoolean=`ZodBoolean`,e.ZodDate=`ZodDate`,e.ZodSymbol=`ZodSymbol`,e.ZodUndefined=`ZodUndefined`,e.ZodNull=`ZodNull`,e.ZodAny=`ZodAny`,e.ZodUnknown=`ZodUnknown`,e.ZodNever=`ZodNever`,e.ZodVoid=`ZodVoid`,e.ZodArray=`ZodArray`,e.ZodObject=`ZodObject`,e.ZodUnion=`ZodUnion`,e.ZodDiscriminatedUnion=`ZodDiscriminatedUnion`,e.ZodIntersection=`ZodIntersection`,e.ZodTuple=`ZodTuple`,e.ZodRecord=`ZodRecord`,e.ZodMap=`ZodMap`,e.ZodSet=`ZodSet`,e.ZodFunction=`ZodFunction`,e.ZodLazy=`ZodLazy`,e.ZodLiteral=`ZodLiteral`,e.ZodEnum=`ZodEnum`,e.ZodEffects=`ZodEffects`,e.ZodNativeEnum=`ZodNativeEnum`,e.ZodOptional=`ZodOptional`,e.ZodNullable=`ZodNullable`,e.ZodDefault=`ZodDefault`,e.ZodCatch=`ZodCatch`,e.ZodPromise=`ZodPromise`,e.ZodBranded=`ZodBranded`,e.ZodPipeline=`ZodPipeline`,e.ZodReadonly=`ZodReadonly`})(bM||={});var xM=(e,t={message:`Input not instance of ${e.name}`})=>vM(t=>t instanceof e,t),Y=Aj.create,SM=Mj.create,CM=pM.create,wM=Nj.create,TM=Pj.create,EM=Fj.create,DM=Ij.create,OM=Lj.create,kM=Rj.create,AM=zj.create,jM=Bj.create,MM=Vj.create,NM=Hj.create,PM=Uj.create,X=Gj.create,FM=Gj.strictCreate,IM=Kj.create,LM=Jj.create,RM=Xj.create,zM=Zj.create,BM=Qj.create,VM=$j.create,HM=eM.create,UM=tM.create,WM=nM.create,GM=rM.create,KM=aM.create,qM=oM.create,JM=sM.create,YM=cM.create,XM=lM.create,ZM=uM.create,QM=cM.createWithPreprocess,$M=gM.create,Z=Object.freeze({__proto__:null,defaultErrorMap:UA,setErrorMap:GA,getErrorMap:KA,makeIssue:qA,EMPTY_PATH:JA,addIssueToContext:J,ParseStatus:YA,INVALID:XA,DIRTY:ZA,OK:QA,isAborted:$A,isDirty:ej,isValid:tj,isAsync:nj,get util(){return RA},get objectUtil(){return zA},ZodParsedType:K,getParsedType:BA,ZodType:dj,datetimeRegex:Oj,ZodString:Aj,ZodNumber:Mj,ZodBigInt:Nj,ZodBoolean:Pj,ZodDate:Fj,ZodSymbol:Ij,ZodUndefined:Lj,ZodNull:Rj,ZodAny:zj,ZodUnknown:Bj,ZodNever:Vj,ZodVoid:Hj,ZodArray:Uj,ZodObject:Gj,ZodUnion:Kj,ZodDiscriminatedUnion:Jj,ZodIntersection:Xj,ZodTuple:Zj,ZodRecord:Qj,ZodMap:$j,ZodSet:eM,ZodFunction:tM,ZodLazy:nM,ZodLiteral:rM,ZodEnum:aM,ZodNativeEnum:oM,ZodPromise:sM,ZodEffects:cM,ZodTransformer:cM,ZodOptional:lM,ZodNullable:uM,ZodDefault:dM,ZodCatch:fM,ZodNaN:pM,BRAND:mM,ZodBranded:hM,ZodPipeline:gM,ZodReadonly:_M,custom:vM,Schema:dj,ZodSchema:dj,late:yM,get ZodFirstPartyTypeKind(){return bM},coerce:{string:(e=>Aj.create({...e,coerce:!0})),number:(e=>Mj.create({...e,coerce:!0})),boolean:(e=>Pj.create({...e,coerce:!0})),bigint:(e=>Nj.create({...e,coerce:!0})),date:(e=>Fj.create({...e,coerce:!0}))},any:AM,array:PM,bigint:wM,boolean:TM,date:EM,discriminatedUnion:LM,effect:YM,enum:KM,function:UM,instanceof:xM,intersection:RM,lazy:WM,literal:GM,map:VM,nan:CM,nativeEnum:qM,never:MM,null:kM,nullable:ZM,number:SM,object:X,oboolean:()=>TM().optional(),onumber:()=>SM().optional(),optional:XM,ostring:()=>Y().optional(),pipeline:$M,preprocess:QM,promise:JM,record:BM,set:HM,strictObject:FM,string:Y,symbol:DM,transformer:YM,tuple:zM,undefined:OM,union:IM,unknown:jM,void:NM,NEVER:XA,ZodIssueCode:q,quotelessJson:VA,ZodError:HA}),eN={exports:{}},tN;function nN(){return tN||(tN=1,(function(e){var t=(function(e){var n=1e7,r=9007199254740992,i=f(r),a=`0123456789abcdefghijklmnopqrstuvwxyz`,o=typeof BigInt==`function`;function s(e,t,n,r){return e===void 0?s[0]:t===void 0||+t==10&&!n?P(e):_e(e,t,n,r)}function c(e,t){this.value=e,this.sign=t,this.isSmall=!1}c.prototype=Object.create(s.prototype);function l(e){this.value=e,this.sign=e<0,this.isSmall=!0}l.prototype=Object.create(s.prototype);function u(e){this.value=e}u.prototype=Object.create(s.prototype);function d(e){return-r0?Math.floor(e):Math.ceil(e)}function _(e,t){for(var r=e.length,i=t.length,a=Array(r),o=0,s=n,c,l=0;l=s),a[l]=c-o*s;for(;l0&&a.push(o),a}function v(e,t){return e.length>=t.length?_(e,t):_(t,e)}function y(e,t){for(var r=e.length,i=Array(r),a=n,o,s=0;s0;)i[s++]=t%a,t=Math.floor(t/a);return i}c.prototype.add=function(e){var t=P(e);if(this.sign!==t.sign)return this.subtract(t.negate());var n=this.value,r=t.value;return t.isSmall?new c(y(n,Math.abs(r)),this.sign):new c(v(n,r),this.sign)},c.prototype.plus=c.prototype.add,l.prototype.add=function(e){var t=P(e),n=this.value;if(n<0!==t.sign)return this.subtract(t.negate());var r=t.value;if(t.isSmall){if(d(n+r))return new l(n+r);r=f(Math.abs(r))}return new c(y(r,Math.abs(n)),n<0)},l.prototype.plus=l.prototype.add,u.prototype.add=function(e){return new u(this.value+P(e).value)},u.prototype.plus=u.prototype.add;function b(e,t){for(var r=e.length,i=t.length,a=Array(r),o=0,s=n,c=0,l;c=0?r=b(e,t):(r=b(t,e),n=!n),r=p(r),typeof r==`number`?(n&&(r=-r),new l(r)):new c(r,n)}function S(e,t,r){for(var i=e.length,a=Array(i),o=-t,s=n,u=0,d;u=0)},l.prototype.minus=l.prototype.subtract,u.prototype.subtract=function(e){return new u(this.value-P(e).value)},u.prototype.minus=u.prototype.subtract,c.prototype.negate=function(){return new c(this.value,!this.sign)},l.prototype.negate=function(){var e=this.sign,t=new l(-this.value);return t.sign=!e,t},u.prototype.negate=function(){return new u(-this.value)},c.prototype.abs=function(){return new c(this.value,!1)},l.prototype.abs=function(){return new l(Math.abs(this.value))},u.prototype.abs=function(){return new u(this.value>=0?this.value:-this.value)};function C(e,t){for(var r=e.length,i=t.length,a=h(r+i),o=n,s,c,l=0,u,d;l0;)i[c++]=o%a,o=Math.floor(o/a);return i}function T(e,t){for(var n=[];t-->0;)n.push(0);return n.concat(e)}function E(e,t){var n=Math.max(e.length,t.length);if(n<=30)return C(e,t);n=Math.ceil(n/2);var r=e.slice(n),i=e.slice(0,n),a=t.slice(n),o=t.slice(0,n),s=E(i,o),c=E(r,a),l=v(v(s,T(b(b(E(v(i,r),v(o,a)),s),c),n)),T(c,2*n));return m(l),l}function D(e,t){return-.012*e-.012*t+15e-6*e*t>0}c.prototype.multiply=function(e){var t=P(e),r=this.value,i=t.value,a=this.sign!==t.sign,o;if(t.isSmall){if(i===0)return s[0];if(i===1)return this;if(i===-1)return this.negate();if(o=Math.abs(i),o=0;f--){for(d=a-1,l[f+i]!==s&&(d=Math.floor((l[f+i]*a+l[f+i-1])/s)),m=0,g=0,v=u.length,_=0;_i&&(u=(u+1)*s),c=Math.ceil(u/d);do{if(f=w(t,c),M(f,o)<=0)break;c--}while(c);a.push(c),o=b(o,f)}return a.reverse(),[p(a),p(o)]}function te(e,t){var r=e.length,i=h(r),a=n,o,s,c=0,l;for(o=r-1;o>=0;--o)l=c*a+e[o],s=g(l/t),c=l-s*t,i[o]=s|0;return[i,c|0]}function j(e,t){var r,i=P(t);if(o)return[new u(e.value/i.value),new u(e.value%i.value)];var a=e.value,d=i.value,m;if(d===0)throw Error(`Cannot divide by zero`);if(e.isSmall)return i.isSmall?[new l(g(a/d)),new l(a%d)]:[s[0],e];if(i.isSmall){if(d===1)return[e,s[0]];if(d==-1)return[e.negate(),s[0]];var h=Math.abs(d);if(ht.length?1:-1;for(var n=e.length-1;n>=0;n--)if(e[n]!==t[n])return e[n]>t[n]?1:-1;return 0}c.prototype.compareAbs=function(e){var t=P(e),n=this.value,r=t.value;return t.isSmall?1:M(n,r)},l.prototype.compareAbs=function(e){var t=P(e),n=Math.abs(this.value),r=t.value;return t.isSmall?(r=Math.abs(r),n===r?0:n>r?1:-1):-1},u.prototype.compareAbs=function(e){var t=this.value,n=P(e).value;return t=t>=0?t:-t,n=n>=0?n:-n,t===n?0:t>n?1:-1},c.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=P(e),n=this.value,r=t.value;return this.sign===t.sign?t.isSmall?this.sign?-1:1:M(n,r)*(this.sign?-1:1):t.sign?1:-1},c.prototype.compareTo=c.prototype.compare,l.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=P(e),n=this.value,r=t.value;return t.isSmall?n==r?0:n>r?1:-1:n<0===t.sign?n<0?1:-1:n<0?-1:1},l.prototype.compareTo=l.prototype.compare,u.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=this.value,n=P(e).value;return t===n?0:t>n?1:-1},u.prototype.compareTo=u.prototype.compare,c.prototype.equals=function(e){return this.compare(e)===0},u.prototype.eq=u.prototype.equals=l.prototype.eq=l.prototype.equals=c.prototype.eq=c.prototype.equals,c.prototype.notEquals=function(e){return this.compare(e)!==0},u.prototype.neq=u.prototype.notEquals=l.prototype.neq=l.prototype.notEquals=c.prototype.neq=c.prototype.notEquals,c.prototype.greater=function(e){return this.compare(e)>0},u.prototype.gt=u.prototype.greater=l.prototype.gt=l.prototype.greater=c.prototype.gt=c.prototype.greater,c.prototype.lesser=function(e){return this.compare(e)<0},u.prototype.lt=u.prototype.lesser=l.prototype.lt=l.prototype.lesser=c.prototype.lt=c.prototype.lesser,c.prototype.greaterOrEquals=function(e){return this.compare(e)>=0},u.prototype.geq=u.prototype.greaterOrEquals=l.prototype.geq=l.prototype.greaterOrEquals=c.prototype.geq=c.prototype.greaterOrEquals,c.prototype.lesserOrEquals=function(e){return this.compare(e)<=0},u.prototype.leq=u.prototype.lesserOrEquals=l.prototype.leq=l.prototype.lesserOrEquals=c.prototype.leq=c.prototype.lesserOrEquals,c.prototype.isEven=function(){return!(this.value[0]&1)},l.prototype.isEven=function(){return!(this.value&1)},u.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},c.prototype.isOdd=function(){return(this.value[0]&1)==1},l.prototype.isOdd=function(){return(this.value&1)==1},u.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},c.prototype.isPositive=function(){return!this.sign},l.prototype.isPositive=function(){return this.value>0},u.prototype.isPositive=l.prototype.isPositive,c.prototype.isNegative=function(){return this.sign},l.prototype.isNegative=function(){return this.value<0},u.prototype.isNegative=l.prototype.isNegative,c.prototype.isUnit=function(){return!1},l.prototype.isUnit=function(){return Math.abs(this.value)===1},u.prototype.isUnit=function(){return this.abs().value===BigInt(1)},c.prototype.isZero=function(){return!1},l.prototype.isZero=function(){return this.value===0},u.prototype.isZero=function(){return this.value===BigInt(0)},c.prototype.isDivisibleBy=function(e){var t=P(e);return t.isZero()?!1:t.isUnit()?!0:t.compareAbs(2)===0?this.isEven():this.mod(t).isZero()},u.prototype.isDivisibleBy=l.prototype.isDivisibleBy=c.prototype.isDivisibleBy;function ne(e){var t=e.abs();if(t.isUnit())return!1;if(t.equals(2)||t.equals(3)||t.equals(5))return!0;if(t.isEven()||t.isDivisibleBy(3)||t.isDivisibleBy(5))return!1;if(t.lesser(49))return!0}function re(e,n){for(var r=e.prev(),i=r,a=0,o,s,c;i.isEven();)i=i.divide(2),a++;next:for(s=0;s-r?new l(e-1):new c(i,!0)},u.prototype.prev=function(){return new u(this.value-BigInt(1))};for(var ie=[1];2*ie[ie.length-1]<=n;)ie.push(2*ie[ie.length-1]);var N=ie.length,ae=ie[N-1];function oe(e){return Math.abs(e)<=n}c.prototype.shiftLeft=function(e){var t=P(e).toJSNumber();if(!oe(t))throw Error(String(t)+` is too large for shifting.`);if(t<0)return this.shiftRight(-t);var n=this;if(n.isZero())return n;for(;t>=N;)n=n.multiply(ae),t-=N-1;return n.multiply(ie[t])},u.prototype.shiftLeft=l.prototype.shiftLeft=c.prototype.shiftLeft,c.prototype.shiftRight=function(e){var t,n=P(e).toJSNumber();if(!oe(n))throw Error(String(n)+` is too large for shifting.`);if(n<0)return this.shiftLeft(-n);for(var r=this;n>=N;){if(r.isZero()||r.isNegative()&&r.isUnit())return r;t=j(r,ae),r=t[1].isNegative()?t[0].prev():t[0],n-=N-1}return t=j(r,ie[n]),t[1].isNegative()?t[0].prev():t[0]},u.prototype.shiftRight=l.prototype.shiftRight=c.prototype.shiftRight;function se(e,n,r){n=P(n);for(var i=e.isNegative(),a=n.isNegative(),o=i?e.not():e,s=a?n.not():n,c=0,l=0,u=null,d=null,f=[];!o.isZero()||!s.isZero();)u=j(o,ae),c=u[1].toJSNumber(),i&&(c=ae-1-c),d=j(s,ae),l=d[1].toJSNumber(),a&&(l=ae-1-l),o=u[0],s=d[0],f.push(r(c,l));for(var p=r(+!!i,+!!a)===0?t(0):t(-1),m=f.length-1;m>=0;--m)p=p.multiply(ae).add(t(f[m]));return p}c.prototype.not=function(){return this.negate().prev()},u.prototype.not=l.prototype.not=c.prototype.not,c.prototype.and=function(e){return se(this,e,function(e,t){return e&t})},u.prototype.and=l.prototype.and=c.prototype.and,c.prototype.or=function(e){return se(this,e,function(e,t){return e|t})},u.prototype.or=l.prototype.or=c.prototype.or,c.prototype.xor=function(e){return se(this,e,function(e,t){return e^t})},u.prototype.xor=l.prototype.xor=c.prototype.xor;var ce=1<<30,le=(n&-n)*(n&-n)|ce;function ue(e){var t=e.value,r=typeof t==`number`?t|ce:typeof t==`bigint`?t|BigInt(ce):t[0]+t[1]*n|le;return r&-r}function de(e,n){if(n.compareTo(e)<=0){var r=de(e,n.square(n)),i=r.p,a=r.e,o=i.multiply(n);return o.compareTo(e)<=0?{p:o,e:a*2+1}:{p:i,e:a*2}}return{p:t(1),e:0}}c.prototype.bitLength=function(){var e=this;return e.compareTo(t(0))<0&&(e=e.negate().subtract(t(1))),e.compareTo(t(0))===0?t(0):t(de(e,t(2)).e).add(t(1))},u.prototype.bitLength=l.prototype.bitLength=c.prototype.bitLength;function fe(e,t){return e=P(e),t=P(t),e.greater(t)?e:t}function pe(e,t){return e=P(e),t=P(t),e.lesser(t)?e:t}function me(e,t){if(e=P(e).abs(),t=P(t).abs(),e.equals(t))return e;if(e.isZero())return t;if(t.isZero())return e;for(var n=s[1],r,i;e.isEven()&&t.isEven();)r=pe(ue(e),ue(t)),e=e.divide(r),t=t.divide(r),n=n.multiply(r);for(;e.isEven();)e=e.divide(ue(e));do{for(;t.isEven();)t=t.divide(ue(t));e.greater(t)&&(i=t,t=e,e=i),t=t.subtract(e)}while(!t.isZero());return n.isUnit()?e:e.multiply(n)}function he(e,t){return e=P(e).abs(),t=P(t).abs(),e.divide(me(e,t)).multiply(t)}function ge(e,t,r){e=P(e),t=P(t);var i=r||Math.random,a=pe(e,t),o=fe(e,t).subtract(a).add(1);if(o.isSmall)return a.add(Math.floor(i()*o));for(var c=be(o,n).value,l=[],u=!0,d=0;d=s){if(l===`1`&&s===1)continue;throw Error(l+` is not a valid digit in base `+t+`.`)}}t=P(t);var u=[],d=e[0]===`-`;for(o=+!!d;o`&&o=0;a--)r=r.add(e[a].times(i)),i=i.times(t);return n?r.negate():r}function ye(e,t){return t||=a,e`}function be(e,n){if(n=t(n),n.isZero()){if(e.isZero())return{value:[0],isNegative:!1};throw Error(`Cannot convert nonzero numbers to base 0.`)}if(n.equals(-1)){if(e.isZero())return{value:[0],isNegative:!1};if(e.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-e.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var r=Array.apply(null,Array(e.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return r.unshift([1]),{value:[].concat.apply([],r),isNegative:!1}}var i=!1;if(e.isNegative()&&n.isPositive()&&(i=!0,e=e.abs()),n.isUnit())return e.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(e.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:i};for(var a=[],o=e,s;o.isNegative()||o.compareAbs(n)>=0;){s=o.divmod(n),o=s.quotient;var c=s.remainder;c.isNegative()&&(c=n.minus(c).abs(),o=o.next()),a.push(c.toJSNumber())}return a.push(o.toJSNumber()),{value:a.reverse(),isNegative:i}}function xe(e,t,n){var r=be(e,t);return(r.isNegative?`-`:``)+r.value.map(function(e){return ye(e,n)}).join(``)}c.prototype.toArray=function(e){return be(this,e)},l.prototype.toArray=function(e){return be(this,e)},u.prototype.toArray=function(e){return be(this,e)},c.prototype.toString=function(t,n){if(t===e&&(t=10),t!==10||n)return xe(this,t,n);for(var r=this.value,i=r.length,a=String(r[--i]),o=`0000000`,s;--i>=0;)s=String(r[i]),a+=o.slice(s.length)+s;return(this.sign?`-`:``)+a},l.prototype.toString=function(t,n){return t===e&&(t=10),t!=10||n?xe(this,t,n):String(this.value)},u.prototype.toString=l.prototype.toString,u.prototype.toJSON=c.prototype.toJSON=l.prototype.toJSON=function(){return this.toString()},c.prototype.valueOf=function(){return parseInt(this.toString(),10)},c.prototype.toJSNumber=c.prototype.valueOf,l.prototype.valueOf=function(){return this.value},l.prototype.toJSNumber=l.prototype.valueOf,u.prototype.valueOf=u.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};function Se(e){if(d(+e)){var t=+e;if(t===g(t))return o?new u(BigInt(t)):new l(t);throw Error(`Invalid integer: `+e)}var n=e[0]===`-`;n&&(e=e.slice(1));var r=e.split(/e/i);if(r.length>2)throw Error(`Invalid integer: `+r.join(`e`));if(r.length===2){var i=r[1];if(i[0]===`+`&&(i=i.slice(1)),i=+i,i!==g(i)||!d(i))throw Error(`Invalid integer: `+i+` is not a valid exponent.`);var a=r[0],s=a.indexOf(`.`);if(s>=0&&(i-=a.length-s-1,a=a.slice(0,s)+a.slice(s+1)),i<0)throw Error(`Cannot include negative exponent part for integers`);a+=Array(i+1).join(`0`),e=a}if(!/^([0-9][0-9]*)$/.test(e))throw Error(`Invalid integer: `+e);if(o)return new u(BigInt(n?`-`+e:e));for(var f=[],p=e.length,h=7,_=p-h;p>0;)f.push(+e.slice(_,p)),_-=h,_<0&&(_=0),p-=h;return m(f),new c(f,n)}function Ce(e){if(o)return new u(BigInt(e));if(d(e)){if(e!==g(e))throw Error(e+` is not an integer.`);return new l(e)}return Se(e.toString())}function P(e){return typeof e==`number`?Ce(e):typeof e==`string`?Se(e):typeof e==`bigint`?new u(e):e}for(var we=0;we<1e3;we++)s[we]=P(we),we>0&&(s[-we]=P(-we));return s.one=s[1],s.zero=s[0],s.minusOne=s[-1],s.max=fe,s.min=pe,s.gcd=me,s.lcm=he,s.isInstance=function(e){return e instanceof c||e instanceof l||e instanceof u},s.randBetween=ge,s.fromArray=function(e,t,n){return ve(e.map(P),P(t||10),n)},s})();e.hasOwnProperty(`exports`)&&(e.exports=t)})(eN)),eN.exports}var rN=NA(nN()),iN=64,aN=16,oN=iN/aN;function sN(){try{return!0}catch{return!1}}function cN(e,t,n){let r=0;for(let i=0;ie&t[n]))}or({parts:t}){return new e(this.parts.map((e,n)=>e|t[n]))}xor({parts:t}){return new e(this.parts.map((e,n)=>e^t[n]))}not(){return new e(this.parts.map(e=>~e))}equals({parts:e}){return this.parts.every((t,n)=>t===e[n])}toString(){if(this.str!=null)return this.str;let e=Array(iN/4);return this.parts.forEach((t,n)=>{let r=lN(t.toString());for(let t=0;t<4;t++)e[t+n*4]=r[3-t]||0}),this.str=rN.fromArray(e,16).toString()}toJSON(){return this.toString()}},fN=sN();fN&&BigInt.prototype.toJSON==null&&(BigInt.prototype.toJSON=function(){return this.toString()});var pN={},mN=fN?function(e){return BigInt(e)}:function(e){return e instanceof dN?e:(typeof e==`number`&&(e=e.toString()),pN[e]??(pN[e]=dN.fromString(e)),pN[e])},hN=mN(0),gN=fN?function(e=hN,t=hN){return e&t}:function(e=hN,t=hN){return e.and(t)},_N=fN?function(e=hN,t=hN){return e|t}:function(e=hN,t=hN){return e.or(t)},vN=fN?function(e=hN,t=hN){return e^t}:function(e=hN,t=hN){return e.xor(t)},yN=fN?function(e=hN){return~e}:function(e=hN){return e.not()},bN=fN?function(e,t){return e===t}:function(e,t){return e==null||t==null?e==t:e.equals(t)};function xN(...e){let t=e[0];for(let n=1;n{let[n]=Object.entries(e).find(([,e])=>e===t)??[];return t!=null&&n===void 0?e.UNHANDLED:t},Y().or(SM()))}function MN(e){let t=vM().transform(t=>{let n=e.safeParse(t);return n.success?n.data:e._def.defaultValue()});return t.overlayType=e,t}var NN=Z.object({image_url:Z.string()}).describe(`Response for "INITIATE_IMAGE_UPLOAD" Command`),PN=Z.object({mediaUrl:Z.string().max(1024)}).describe(`Request for "OPEN_SHARE_MOMENT_DIALOG" Command`),FN=Z.object({access_token:Z.union([Z.string(),Z.null()]).optional()}).describe(`Request for "AUTHENTICATE" Command`),IN=Z.object({access_token:Z.string(),user:Z.object({username:Z.string(),discriminator:Z.string(),id:Z.string(),avatar:Z.union([Z.string(),Z.null()]).optional(),public_flags:Z.number(),global_name:Z.union([Z.string(),Z.null()]).optional()}),scopes:Z.array(MN(Z.enum(`identify,identify.premium,email,connections,guilds,guilds.join,guilds.members.read,guilds.channels.read,gdm.join,bot,rpc,rpc.notifications.read,rpc.voice.read,rpc.voice.write,rpc.video.read,rpc.video.write,rpc.screenshare.read,rpc.screenshare.write,rpc.activities.write,webhook.incoming,messages.read,applications.builds.upload,applications.builds.read,applications.commands,applications.commands.permissions.update,applications.commands.update,applications.store.update,applications.entitlements,activities.read,activities.write,activities.invites.write,relationships.read,relationships.write,voice,dm_channels.read,role_connections.write,presences.read,presences.write,openid,dm_channels.messages.read,dm_channels.messages.write,gateway.connect,account.global_name.update,payment_sources.country_code,sdk.social_layer_presence,sdk.social_layer,lobbies.write,application_identities.write`.split(`,`)).or(Z.literal(-1)).default(-1))),expires:Z.string(),application:Z.object({description:Z.string(),icon:Z.union([Z.string(),Z.null()]).optional(),id:Z.string(),rpc_origins:Z.array(Z.string()).optional(),name:Z.string()})}).describe(`Response for "AUTHENTICATE" Command`),LN=Z.object({participants:Z.array(Z.object({id:Z.string(),username:Z.string(),global_name:Z.union([Z.string(),Z.null()]).optional(),discriminator:Z.string(),avatar:Z.union([Z.string(),Z.null()]).optional(),flags:Z.number(),bot:Z.boolean(),avatar_decoration_data:Z.union([Z.object({asset:Z.union([Z.string(),Z.null()]).optional(),skuId:Z.string().optional(),expiresAt:Z.number().optional()}),Z.null()]).optional(),premium_type:Z.union([Z.number(),Z.null()]).optional(),nickname:Z.string().optional()}))}).describe(`Response for "GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS" Command`),RN=Z.object({command:Z.string(),options:Z.array(Z.object({name:Z.string(),value:Z.string()})).optional(),content:Z.string().max(2e3).optional(),require_launch_channel:Z.boolean().optional(),preview_image:Z.object({height:Z.number(),url:Z.string(),width:Z.number()}).optional(),components:Z.array(Z.object({type:Z.literal(1),components:Z.array(Z.object({type:Z.literal(2),style:Z.number().gte(1).lte(5),label:Z.string().max(80).optional(),custom_id:Z.string().max(100).describe(`Developer-defined identifier for the button; max 100 characters`).optional()})).max(5).optional()})).optional(),pid:Z.number().optional()}).describe(`Request for "SHARE_INTERACTION" Command`),zN=Z.object({success:Z.boolean()}).describe(`Response for "SHARE_INTERACTION" Command`),BN=Z.object({custom_id:Z.string().max(64).optional(),message:Z.string().max(1e3),link_id:Z.string().max(64).optional()}).describe(`Request for "SHARE_LINK" Command`),VN=Z.object({success:Z.boolean(),didCopyLink:Z.boolean(),didSendMessage:Z.boolean()}).describe(`Response for "SHARE_LINK" Command`),HN=Z.object({relationships:Z.array(Z.object({type:Z.number(),user:Z.object({id:Z.string(),username:Z.string(),global_name:Z.union([Z.string(),Z.null()]).optional(),discriminator:Z.string(),avatar:Z.union([Z.string(),Z.null()]).optional(),flags:Z.number(),bot:Z.boolean(),avatar_decoration_data:Z.union([Z.object({asset:Z.union([Z.string(),Z.null()]).optional(),skuId:Z.string().optional(),expiresAt:Z.number().optional()}),Z.null()]).optional(),premium_type:Z.union([Z.number(),Z.null()]).optional()}),presence:Z.object({status:Z.string(),activity:Z.union([Z.object({session_id:Z.string().optional(),type:Z.number().optional(),name:Z.string(),url:Z.union([Z.string(),Z.null()]).optional(),application_id:Z.string().optional(),status_display_type:Z.number().optional(),state:Z.string().optional(),state_url:Z.string().optional(),details:Z.string().optional(),details_url:Z.string().optional(),emoji:Z.union([Z.object({name:Z.string(),id:Z.union([Z.string(),Z.null()]).optional(),animated:Z.union([Z.boolean(),Z.null()]).optional()}),Z.null()]).optional(),assets:Z.object({large_image:Z.string().optional(),large_text:Z.string().optional(),large_url:Z.string().optional(),small_image:Z.string().optional(),small_text:Z.string().optional(),small_url:Z.string().optional()}).optional(),timestamps:Z.object({start:Z.number().optional(),end:Z.number().optional()}).optional(),party:Z.object({id:Z.string().optional(),size:Z.array(Z.number()).min(2).max(2).optional(),privacy:Z.number().optional()}).optional(),secrets:Z.object({match:Z.string().optional(),join:Z.string().optional()}).optional(),sync_id:Z.string().optional(),created_at:Z.number().optional(),instance:Z.boolean().optional(),flags:Z.number().optional(),metadata:Z.object({}).optional(),platform:Z.string().optional(),supported_platforms:Z.array(Z.string()).optional(),buttons:Z.array(Z.string()).optional(),hangStatus:Z.string().optional()}),Z.null()]).optional()}).optional()}))}).describe(`Response for "GET_RELATIONSHIPS" Command`),UN=Z.object({user_id:Z.string(),content:Z.string().min(0).max(1024).optional()}).describe(`Request for "INVITE_USER_EMBEDDED" Command`),WN=Z.object({id:Z.string().max(64)}).describe(`Request for "GET_USER" Command`),GN=Z.union([Z.object({id:Z.string(),username:Z.string(),global_name:Z.union([Z.string(),Z.null()]).optional(),discriminator:Z.string(),avatar:Z.union([Z.string(),Z.null()]).optional(),flags:Z.number(),bot:Z.boolean(),avatar_decoration_data:Z.union([Z.object({asset:Z.union([Z.string(),Z.null()]).optional(),skuId:Z.string().optional(),expiresAt:Z.number().optional()}),Z.null()]).optional(),premium_type:Z.union([Z.number(),Z.null()]).optional()}),Z.null()]),KN=Z.object({quest_id:Z.string()}).describe(`Request for "GET_QUEST_ENROLLMENT_STATUS" Command`),qN=Z.object({quest_id:Z.string(),is_enrolled:Z.boolean(),enrolled_at:Z.union([Z.string(),Z.null()]).optional()}).describe(`Response for "GET_QUEST_ENROLLMENT_STATUS" Command`),JN=Z.object({quest_id:Z.string()}).describe(`Request for "QUEST_START_TIMER" Command`),YN=Z.object({success:Z.boolean()}).describe(`Response for "QUEST_START_TIMER" Command`),XN=Z.object({quest_id:Z.string(),enrolled_at:Z.union([Z.string(),Z.null()]).optional(),completed_at:Z.union([Z.string(),Z.null()]).optional(),external_cta_url:Z.string()}).describe(`Response for "GET_QUEST" Command`),ZN=Z.object({ticket:Z.string()}).describe(`Response for "REQUEST_PROXY_TICKET_REFRESH" Command`),QN;(function(e){e.INITIATE_IMAGE_UPLOAD=`INITIATE_IMAGE_UPLOAD`,e.OPEN_SHARE_MOMENT_DIALOG=`OPEN_SHARE_MOMENT_DIALOG`,e.AUTHENTICATE=`AUTHENTICATE`,e.GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS=`GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS`,e.SHARE_INTERACTION=`SHARE_INTERACTION`,e.SHARE_LINK=`SHARE_LINK`,e.GET_RELATIONSHIPS=`GET_RELATIONSHIPS`,e.INVITE_USER_EMBEDDED=`INVITE_USER_EMBEDDED`,e.GET_USER=`GET_USER`,e.GET_QUEST_ENROLLMENT_STATUS=`GET_QUEST_ENROLLMENT_STATUS`,e.QUEST_START_TIMER=`QUEST_START_TIMER`,e.GET_QUEST=`GET_QUEST`,e.REQUEST_PROXY_TICKET_REFRESH=`REQUEST_PROXY_TICKET_REFRESH`})(QN||={});var $N=Z.object({}).optional().nullable(),eP=Z.void(),tP={[QN.INITIATE_IMAGE_UPLOAD]:{request:eP,response:NN},[QN.OPEN_SHARE_MOMENT_DIALOG]:{request:PN,response:$N},[QN.AUTHENTICATE]:{request:FN,response:IN},[QN.GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS]:{request:eP,response:LN},[QN.SHARE_INTERACTION]:{request:RN,response:zN},[QN.SHARE_LINK]:{request:BN,response:VN},[QN.GET_RELATIONSHIPS]:{request:eP,response:HN},[QN.INVITE_USER_EMBEDDED]:{request:UN,response:$N},[QN.GET_USER]:{request:WN,response:GN},[QN.GET_QUEST_ENROLLMENT_STATUS]:{request:KN,response:qN},[QN.QUEST_START_TIMER]:{request:JN,response:YN},[QN.GET_QUEST]:{request:eP,response:XN},[QN.REQUEST_PROXY_TICKET_REFRESH]:{request:eP,response:ZN}},nP=t({Activity:()=>_P,Attachment:()=>EP,CertifiedDevice:()=>KP,CertifiedDeviceTypeObject:()=>GP,Channel:()=>xP,ChannelMention:()=>TP,ChannelTypesObject:()=>bP,Commands:()=>iP,DISPATCH:()=>rP,Embed:()=>NP,EmbedAuthor:()=>jP,EmbedField:()=>MP,EmbedFooter:()=>DP,EmbedProvider:()=>AP,Emoji:()=>fP,Entitlement:()=>XP,EntitlementTypesObject:()=>YP,Guild:()=>wP,GuildMember:()=>uP,GuildMemberRPC:()=>dP,Image:()=>OP,KeyTypesObject:()=>BP,LayoutMode:()=>iF,LayoutModeTypeObject:()=>rF,Message:()=>RP,MessageActivity:()=>FP,MessageApplication:()=>IP,MessageReference:()=>LP,Orientation:()=>nF,OrientationLockState:()=>QP,OrientationLockStateTypeObject:()=>ZP,OrientationTypeObject:()=>tF,PermissionOverwrite:()=>yP,PermissionOverwriteTypeObject:()=>vP,PresenceUpdate:()=>SP,Reaction:()=>PP,ReceiveFramePayload:()=>aP,Relationship:()=>cP,Role:()=>CP,Scopes:()=>sP,ScopesObject:()=>oP,ShortcutKey:()=>VP,Sku:()=>JP,SkuTypeObject:()=>qP,Status:()=>gP,StatusObject:()=>hP,ThermalState:()=>eF,ThermalStateTypeObject:()=>$P,User:()=>lP,UserVoiceState:()=>mP,Video:()=>kP,VoiceDevice:()=>zP,VoiceSettingModeTypeObject:()=>HP,VoiceSettingsIO:()=>WP,VoiceSettingsMode:()=>UP,VoiceState:()=>pP}),rP=`DISPATCH`,iP;(function(e){e.AUTHORIZE=`AUTHORIZE`,e.GET_GUILDS=`GET_GUILDS`,e.GET_GUILD=`GET_GUILD`,e.GET_CHANNEL=`GET_CHANNEL`,e.GET_CHANNELS=`GET_CHANNELS`,e.SELECT_VOICE_CHANNEL=`SELECT_VOICE_CHANNEL`,e.SELECT_TEXT_CHANNEL=`SELECT_TEXT_CHANNEL`,e.SUBSCRIBE=`SUBSCRIBE`,e.UNSUBSCRIBE=`UNSUBSCRIBE`,e.CAPTURE_SHORTCUT=`CAPTURE_SHORTCUT`,e.SET_CERTIFIED_DEVICES=`SET_CERTIFIED_DEVICES`,e.SET_ACTIVITY=`SET_ACTIVITY`,e.GET_SKUS=`GET_SKUS`,e.GET_ENTITLEMENTS=`GET_ENTITLEMENTS`,e.GET_SKUS_EMBEDDED=`GET_SKUS_EMBEDDED`,e.GET_ENTITLEMENTS_EMBEDDED=`GET_ENTITLEMENTS_EMBEDDED`,e.START_PURCHASE=`START_PURCHASE`,e.SET_CONFIG=`SET_CONFIG`,e.SEND_ANALYTICS_EVENT=`SEND_ANALYTICS_EVENT`,e.USER_SETTINGS_GET_LOCALE=`USER_SETTINGS_GET_LOCALE`,e.OPEN_EXTERNAL_LINK=`OPEN_EXTERNAL_LINK`,e.ENCOURAGE_HW_ACCELERATION=`ENCOURAGE_HW_ACCELERATION`,e.CAPTURE_LOG=`CAPTURE_LOG`,e.SET_ORIENTATION_LOCK_STATE=`SET_ORIENTATION_LOCK_STATE`,e.OPEN_INVITE_DIALOG=`OPEN_INVITE_DIALOG`,e.GET_PLATFORM_BEHAVIORS=`GET_PLATFORM_BEHAVIORS`,e.GET_CHANNEL_PERMISSIONS=`GET_CHANNEL_PERMISSIONS`,e.AUTHENTICATE=`AUTHENTICATE`,e.GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS=`GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS`,e.GET_QUEST=`GET_QUEST`,e.GET_QUEST_ENROLLMENT_STATUS=`GET_QUEST_ENROLLMENT_STATUS`,e.GET_RELATIONSHIPS=`GET_RELATIONSHIPS`,e.GET_USER=`GET_USER`,e.INITIATE_IMAGE_UPLOAD=`INITIATE_IMAGE_UPLOAD`,e.INVITE_USER_EMBEDDED=`INVITE_USER_EMBEDDED`,e.OPEN_SHARE_MOMENT_DIALOG=`OPEN_SHARE_MOMENT_DIALOG`,e.QUEST_START_TIMER=`QUEST_START_TIMER`,e.REQUEST_PROXY_TICKET_REFRESH=`REQUEST_PROXY_TICKET_REFRESH`,e.SHARE_INTERACTION=`SHARE_INTERACTION`,e.SHARE_LINK=`SHARE_LINK`})(iP||={});var aP=X({cmd:Y(),data:jM(),evt:kM(),nonce:Y()}).passthrough(),oP=Object.assign(Object.assign({},IN.shape.scopes.element.overlayType._def.innerType.options[0].Values),{UNHANDLED:-1}),sP=jN(oP),cP=HN.shape.relationships.element,lP=X({id:Y(),username:Y(),discriminator:Y(),global_name:Y().optional().nullable(),avatar:Y().optional().nullable(),avatar_decoration_data:X({asset:Y(),sku_id:Y().optional()}).nullable(),bot:TM(),flags:SM().optional().nullable(),premium_type:SM().optional().nullable()}),uP=X({user:lP,nick:Y().optional().nullable(),roles:PM(Y()),joined_at:Y(),deaf:TM(),mute:TM()}),dP=X({user_id:Y(),nick:Y().optional().nullable(),guild_id:Y(),avatar:Y().optional().nullable(),avatar_decoration_data:X({asset:Y(),sku_id:Y().optional().nullable()}).optional().nullable(),color_string:Y().optional().nullable()}),fP=X({id:Y(),name:Y().optional().nullable(),roles:PM(Y()).optional().nullable(),user:lP.optional().nullable(),require_colons:TM().optional().nullable(),managed:TM().optional().nullable(),animated:TM().optional().nullable(),available:TM().optional().nullable()}),pP=X({mute:TM(),deaf:TM(),self_mute:TM(),self_deaf:TM(),suppress:TM()}),mP=X({mute:TM(),nick:Y(),user:lP,voice_state:pP,volume:SM()}),hP={UNHANDLED:-1,IDLE:`idle`,DND:`dnd`,ONLINE:`online`,OFFLINE:`offline`},gP=jN(hP),_P=X({name:Y(),type:SM(),url:Y().optional().nullable(),created_at:SM().optional().nullable(),timestamps:X({start:SM(),end:SM()}).partial().optional().nullable(),application_id:Y().optional().nullable(),details:Y().optional().nullable(),details_url:Y().url().optional().nullable(),state:Y().optional().nullable(),state_url:Y().url().optional().nullable(),emoji:fP.optional().nullable(),party:X({id:Y().optional().nullable(),size:PM(SM()).optional().nullable()}).optional().nullable(),assets:X({large_image:Y().nullable(),large_text:Y().nullable(),large_url:Y().url().optional().nullable(),small_image:Y().nullable(),small_text:Y().nullable(),small_url:Y().url().optional().nullable()}).partial().optional().nullable(),secrets:X({join:Y(),match:Y()}).partial().optional().nullable(),instance:TM().optional().nullable(),flags:SM().optional().nullable()}),vP={UNHANDLED:-1,ROLE:0,MEMBER:1},yP=X({id:Y(),type:jN(vP),allow:Y(),deny:Y()}),bP={UNHANDLED:-1,DM:1,GROUP_DM:3,GUILD_TEXT:0,GUILD_VOICE:2,GUILD_CATEGORY:4,GUILD_ANNOUNCEMENT:5,GUILD_STORE:6,ANNOUNCEMENT_THREAD:10,PUBLIC_THREAD:11,PRIVATE_THREAD:12,GUILD_STAGE_VOICE:13,GUILD_DIRECTORY:14,GUILD_FORUM:15},xP=X({id:Y(),type:jN(bP),guild_id:Y().optional().nullable(),position:SM().optional().nullable(),permission_overwrites:PM(yP).optional().nullable(),name:Y().optional().nullable(),topic:Y().optional().nullable(),nsfw:TM().optional().nullable(),last_message_id:Y().optional().nullable(),bitrate:SM().optional().nullable(),user_limit:SM().optional().nullable(),rate_limit_per_user:SM().optional().nullable(),recipients:PM(lP).optional().nullable(),icon:Y().optional().nullable(),owner_id:Y().optional().nullable(),application_id:Y().optional().nullable(),parent_id:Y().optional().nullable(),last_pin_timestamp:Y().optional().nullable()}),SP=X({user:lP,guild_id:Y(),status:gP,activities:PM(_P),client_status:X({desktop:gP,mobile:gP,web:gP}).partial()}),CP=X({id:Y(),name:Y(),color:SM(),hoist:TM(),position:SM(),permissions:Y(),managed:TM(),mentionable:TM()}),wP=X({id:Y(),name:Y(),owner_id:Y(),icon:Y().nullable(),icon_hash:Y().optional().nullable(),splash:Y().nullable(),discovery_splash:Y().nullable(),owner:TM().optional().nullable(),permissions:Y().optional().nullable(),region:Y(),afk_channel_id:Y().nullable(),afk_timeout:SM(),widget_enabled:TM().optional().nullable(),widget_channel_id:Y().optional().nullable(),verification_level:SM(),default_message_notifications:SM(),explicit_content_filter:SM(),roles:PM(CP),emojis:PM(fP),features:PM(Y()),mfa_level:SM(),application_id:Y().nullable(),system_channel_id:Y().nullable(),system_channel_flags:SM(),rules_channel_id:Y().nullable(),joined_at:Y().optional().nullable(),large:TM().optional().nullable(),unavailable:TM().optional().nullable(),member_count:SM().optional().nullable(),voice_states:PM(pP).optional().nullable(),members:PM(uP).optional().nullable(),channels:PM(xP).optional().nullable(),presences:PM(SP).optional().nullable(),max_presences:SM().optional().nullable(),max_members:SM().optional().nullable(),vanity_url_code:Y().nullable(),description:Y().nullable(),banner:Y().nullable(),premium_tier:SM(),premium_subscription_count:SM().optional().nullable(),preferred_locale:Y(),public_updates_channel_id:Y().nullable(),max_video_channel_users:SM().optional().nullable(),approximate_member_count:SM().optional().nullable(),approximate_presence_count:SM().optional().nullable()}),TP=X({id:Y(),guild_id:Y(),type:SM(),name:Y()}),EP=X({id:Y(),filename:Y(),size:SM(),url:Y(),proxy_url:Y(),height:SM().optional().nullable(),width:SM().optional().nullable()}),DP=X({text:Y(),icon_url:Y().optional().nullable(),proxy_icon_url:Y().optional().nullable()}),OP=X({url:Y().optional().nullable(),proxy_url:Y().optional().nullable(),height:SM().optional().nullable(),width:SM().optional().nullable()}),kP=OP.omit({proxy_url:!0}),AP=X({name:Y().optional().nullable(),url:Y().optional().nullable()}),jP=X({name:Y().optional().nullable(),url:Y().optional().nullable(),icon_url:Y().optional().nullable(),proxy_icon_url:Y().optional().nullable()}),MP=X({name:Y(),value:Y(),inline:TM()}),NP=X({title:Y().optional().nullable(),type:Y().optional().nullable(),description:Y().optional().nullable(),url:Y().optional().nullable(),timestamp:Y().optional().nullable(),color:SM().optional().nullable(),footer:DP.optional().nullable(),image:OP.optional().nullable(),thumbnail:OP.optional().nullable(),video:kP.optional().nullable(),provider:AP.optional().nullable(),author:jP.optional().nullable(),fields:PM(MP).optional().nullable()}),PP=X({count:SM(),me:TM(),emoji:fP}),FP=X({type:SM(),party_id:Y().optional().nullable()}),IP=X({id:Y(),cover_image:Y().optional().nullable(),description:Y(),icon:Y().optional().nullable(),name:Y()}),LP=X({message_id:Y().optional().nullable(),channel_id:Y().optional().nullable(),guild_id:Y().optional().nullable()}),RP=X({id:Y(),channel_id:Y(),guild_id:Y().optional().nullable(),author:lP.optional().nullable(),member:uP.optional().nullable(),content:Y(),timestamp:Y(),edited_timestamp:Y().optional().nullable(),tts:TM(),mention_everyone:TM(),mentions:PM(lP),mention_roles:PM(Y()),mention_channels:PM(TP),attachments:PM(EP),embeds:PM(NP),reactions:PM(PP).optional().nullable(),nonce:IM([Y(),SM()]).optional().nullable(),pinned:TM(),webhook_id:Y().optional().nullable(),type:SM(),activity:FP.optional().nullable(),application:IP.optional().nullable(),message_reference:LP.optional().nullable(),flags:SM().optional().nullable(),stickers:PM(jM()).optional().nullable(),referenced_message:jM().optional().nullable()}),zP=X({id:Y(),name:Y()}),BP={UNHANDLED:-1,KEYBOARD_KEY:0,MOUSE_BUTTON:1,KEYBOARD_MODIFIER_KEY:2,GAMEPAD_BUTTON:3},VP=X({type:jN(BP),code:SM(),name:Y()}),HP={UNHANDLED:-1,PUSH_TO_TALK:`PUSH_TO_TALK`,VOICE_ACTIVITY:`VOICE_ACTIVITY`},UP=X({type:jN(HP),auto_threshold:TM(),threshold:SM(),shortcut:PM(VP),delay:SM()}),WP=X({device_id:Y(),volume:SM(),available_devices:PM(zP)}),GP={UNHANDLED:-1,AUDIO_INPUT:`AUDIO_INPUT`,AUDIO_OUTPUT:`AUDIO_OUTPUT`,VIDEO_INPUT:`VIDEO_INPUT`},KP=X({type:jN(GP),id:Y(),vendor:X({name:Y(),url:Y()}),model:X({name:Y(),url:Y()}),related:PM(Y()),echo_cancellation:TM().optional().nullable(),noise_suppression:TM().optional().nullable(),automatic_gain_control:TM().optional().nullable(),hardware_mute:TM().optional().nullable()}),qP={UNHANDLED:-1,APPLICATION:1,DLC:2,CONSUMABLE:3,BUNDLE:4,SUBSCRIPTION:5},JP=X({id:Y(),name:Y(),type:jN(qP),price:X({amount:SM(),currency:Y()}),application_id:Y(),flags:SM(),release_date:Y().nullable()}),YP={UNHANDLED:-1,PURCHASE:1,PREMIUM_SUBSCRIPTION:2,DEVELOPER_GIFT:3,TEST_MODE_PURCHASE:4,FREE_PURCHASE:5,USER_GIFT:6,PREMIUM_PURCHASE:7},XP=X({id:Y(),sku_id:Y(),application_id:Y(),user_id:Y(),gift_code_flags:SM(),type:jN(YP),gifter_user_id:Y().optional().nullable(),branches:PM(Y()).optional().nullable(),starts_at:Y().optional().nullable(),ends_at:Y().optional().nullable(),parent_id:Y().optional().nullable(),consumed:TM().optional().nullable(),deleted:TM().optional().nullable(),gift_code_batch_id:Y().optional().nullable()}),ZP={UNHANDLED:-1,UNLOCKED:1,PORTRAIT:2,LANDSCAPE:3},QP=jN(ZP),$P={UNHANDLED:-1,NOMINAL:0,FAIR:1,SERIOUS:2,CRITICAL:3},eF=jN($P),tF={UNHANDLED:-1,PORTRAIT:0,LANDSCAPE:1},nF=jN(tF),rF={UNHANDLED:-1,FOCUSED:0,PIP:1,GRID:2},iF=jN(rF),aF=`ERROR`,oF;(function(e){e.READY=`READY`,e.VOICE_STATE_UPDATE=`VOICE_STATE_UPDATE`,e.SPEAKING_START=`SPEAKING_START`,e.SPEAKING_STOP=`SPEAKING_STOP`,e.ACTIVITY_LAYOUT_MODE_UPDATE=`ACTIVITY_LAYOUT_MODE_UPDATE`,e.ORIENTATION_UPDATE=`ORIENTATION_UPDATE`,e.CURRENT_USER_UPDATE=`CURRENT_USER_UPDATE`,e.CURRENT_GUILD_MEMBER_UPDATE=`CURRENT_GUILD_MEMBER_UPDATE`,e.ENTITLEMENT_CREATE=`ENTITLEMENT_CREATE`,e.THERMAL_STATE_UPDATE=`THERMAL_STATE_UPDATE`,e.ACTIVITY_INSTANCE_PARTICIPANTS_UPDATE=`ACTIVITY_INSTANCE_PARTICIPANTS_UPDATE`,e.RELATIONSHIP_UPDATE=`RELATIONSHIP_UPDATE`,e.ACTIVITY_JOIN=`ACTIVITY_JOIN`,e.QUEST_ENROLLMENT_STATUS_UPDATE=`QUEST_ENROLLMENT_STATUS_UPDATE`})(oF||={});var sF=aP.extend({evt:qM(oF),nonce:Y().nullable(),cmd:GM(rP),data:X({}).passthrough()}),cF=aP.extend({evt:GM(aF),data:X({code:SM(),message:Y().optional()}).passthrough(),cmd:qM(iP),nonce:Y().nullable()}),lF=IM([sF,sF.extend({evt:Y()}),cF]);function uF(e){let t=e.evt;if(!(t in oF))throw Error(`Unrecognized event type ${e.evt}`);return dF[t].payload.parse(e)}var dF={[oF.READY]:{payload:sF.extend({evt:GM(oF.READY),data:X({v:SM(),config:X({cdn_host:Y().optional(),api_endpoint:Y(),environment:Y()}),user:X({id:Y(),username:Y(),discriminator:Y(),avatar:Y().optional()}).optional()})})},[oF.VOICE_STATE_UPDATE]:{payload:sF.extend({evt:GM(oF.VOICE_STATE_UPDATE),data:mP}),subscribeArgs:X({channel_id:Y()})},[oF.SPEAKING_START]:{payload:sF.extend({evt:GM(oF.SPEAKING_START),data:X({lobby_id:Y().optional(),channel_id:Y().optional(),user_id:Y()})}),subscribeArgs:X({lobby_id:Y().nullable().optional(),channel_id:Y().nullable().optional()})},[oF.SPEAKING_STOP]:{payload:sF.extend({evt:GM(oF.SPEAKING_STOP),data:X({lobby_id:Y().optional(),channel_id:Y().optional(),user_id:Y()})}),subscribeArgs:X({lobby_id:Y().nullable().optional(),channel_id:Y().nullable().optional()})},[oF.ACTIVITY_LAYOUT_MODE_UPDATE]:{payload:sF.extend({evt:GM(oF.ACTIVITY_LAYOUT_MODE_UPDATE),data:X({layout_mode:jN(rF)})})},[oF.ORIENTATION_UPDATE]:{payload:sF.extend({evt:GM(oF.ORIENTATION_UPDATE),data:X({screen_orientation:jN(tF),orientation:qM(kN)})})},[oF.CURRENT_USER_UPDATE]:{payload:sF.extend({evt:GM(oF.CURRENT_USER_UPDATE),data:lP})},[oF.CURRENT_GUILD_MEMBER_UPDATE]:{payload:sF.extend({evt:GM(oF.CURRENT_GUILD_MEMBER_UPDATE),data:dP}),subscribeArgs:X({guild_id:Y()})},[oF.ENTITLEMENT_CREATE]:{payload:sF.extend({evt:GM(oF.ENTITLEMENT_CREATE),data:X({entitlement:XP})})},[oF.THERMAL_STATE_UPDATE]:{payload:sF.extend({evt:GM(oF.THERMAL_STATE_UPDATE),data:X({thermal_state:eF})})},[oF.ACTIVITY_INSTANCE_PARTICIPANTS_UPDATE]:{payload:sF.extend({evt:GM(oF.ACTIVITY_INSTANCE_PARTICIPANTS_UPDATE),data:X({participants:LN.shape.participants})})},[oF.RELATIONSHIP_UPDATE]:{payload:sF.extend({evt:GM(oF.RELATIONSHIP_UPDATE),data:cP})},[oF.ACTIVITY_JOIN]:{payload:sF.extend({evt:GM(oF.ACTIVITY_JOIN),data:X({applicationId:Y(),secret:Y()})})},[oF.QUEST_ENROLLMENT_STATUS_UPDATE]:{payload:sF.extend({evt:GM(oF.QUEST_ENROLLMENT_STATUS_UPDATE),data:X({quest_id:Y(),is_enrolled:TM(),enrolled_at:Y().date()})})}};function fF(e,t){throw t}var pF=X({}).nullable(),mF=X({code:Y()}),hF=X({guilds:PM(X({id:Y(),name:Y()}))}),gF=X({id:Y(),name:Y(),icon_url:Y().optional(),members:PM(uP)}),_F=X({id:Y(),type:jN(bP),guild_id:Y().optional().nullable(),name:Y().optional().nullable(),topic:Y().optional().nullable(),bitrate:SM().optional().nullable(),user_limit:SM().optional().nullable(),position:SM().optional().nullable(),voice_states:PM(mP),messages:PM(RP)}),vF=X({channels:PM(xP)});_F.nullable();var yF=_F.nullable(),bF=_F.nullable();X({input:WP,output:WP,mode:UP,automatic_gain_control:TM(),echo_cancellation:TM(),noise_suppression:TM(),qos:TM(),silence_warning:TM(),deaf:TM(),mute:TM()});var xF=X({evt:Y()}),SF=X({shortcut:VP}),CF=_P,wF=X({skus:PM(JP)}),TF=X({entitlements:PM(XP)}),EF=PM(XP).nullable(),DF=X({use_interactive_pip:TM()}),OF=X({locale:Y()}),kF=X({enabled:TM()}),AF=X({permissions:wM().or(Y())}),jF=MN(X({opened:TM().or(kM())}).default({opened:null})),MF=X({iosKeyboardResizesView:XM(TM())}),NF=aP.extend({cmd:qM(iP),evt:kM()});function PF({cmd:e,data:t}){switch(e){case iP.AUTHORIZE:return mF.parse(t);case iP.CAPTURE_SHORTCUT:return SF.parse(t);case iP.ENCOURAGE_HW_ACCELERATION:return kF.parse(t);case iP.GET_CHANNEL:return _F.parse(t);case iP.GET_CHANNELS:return vF.parse(t);case iP.GET_CHANNEL_PERMISSIONS:return AF.parse(t);case iP.GET_GUILD:return gF.parse(t);case iP.GET_GUILDS:return hF.parse(t);case iP.GET_PLATFORM_BEHAVIORS:return MF.parse(t);case iP.GET_CHANNEL:return _F.parse(t);case iP.SELECT_TEXT_CHANNEL:return bF.parse(t);case iP.SELECT_VOICE_CHANNEL:return yF.parse(t);case iP.SET_ACTIVITY:return CF.parse(t);case iP.GET_SKUS_EMBEDDED:return wF.parse(t);case iP.GET_ENTITLEMENTS_EMBEDDED:return TF.parse(t);case iP.SET_CONFIG:return DF.parse(t);case iP.START_PURCHASE:return EF.parse(t);case iP.SUBSCRIBE:case iP.UNSUBSCRIBE:return xF.parse(t);case iP.USER_SETTINGS_GET_LOCALE:return OF.parse(t);case iP.OPEN_EXTERNAL_LINK:return jF.parse(t);case iP.SET_ORIENTATION_LOCK_STATE:case iP.SET_CERTIFIED_DEVICES:case iP.SEND_ANALYTICS_EVENT:case iP.OPEN_INVITE_DIALOG:case iP.CAPTURE_LOG:case iP.GET_SKUS:case iP.GET_ENTITLEMENTS:return pF.parse(t);case iP.AUTHENTICATE:case iP.GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS:case iP.GET_QUEST:case iP.GET_QUEST_ENROLLMENT_STATUS:case iP.GET_RELATIONSHIPS:case iP.GET_USER:case iP.INITIATE_IMAGE_UPLOAD:case iP.INVITE_USER_EMBEDDED:case iP.OPEN_SHARE_MOMENT_DIALOG:case iP.QUEST_START_TIMER:case iP.REQUEST_PROXY_TICKET_REFRESH:case iP.SHARE_INTERACTION:case iP.SHARE_LINK:let{response:n}=tP[e];return n.parse(t);default:fF(e,Error(`Unrecognized command ${e}`))}}function FF(e){return Object.assign(Object.assign({},e),{data:PF(e)})}X({frame_id:Y(),platform:qM(AN).optional().nullable()}),X({v:GM(1),encoding:GM(`json`).optional(),client_id:Y(),frame_id:Y()});var IF=X({code:SM(),message:Y().optional()}),LF=X({evt:Y().nullable(),nonce:Y().nullable(),data:jM().nullable(),cmd:Y()}).passthrough();function RF(e){let t=LF.parse(e);return t.evt==null?FF(NF.passthrough().parse(t)):t.evt===`ERROR`?cF.parse(t):uF(lF.parse(t))}function zF(e,t,n,r=()=>void 0){let i=aP.extend({cmd:GM(t),data:n});return async n=>{let a=await e({cmd:t,args:n,transfer:r(n)});return i.parse(a).data}}function BF(e,t=()=>void 0){let n=tP[e].response,r=aP.extend({cmd:GM(e),data:n});return n=>async i=>{let a=await n({cmd:e,args:i,transfer:t(i)});return r.parse(a).data}}var VF=e=>zF(e,iP.AUTHORIZE,mF),HF=e=>zF(e,iP.CAPTURE_LOG,pF),UF=e=>zF(e,iP.ENCOURAGE_HW_ACCELERATION,kF),WF=e=>zF(e,iP.GET_CHANNEL,_F),GF=e=>zF(e,iP.GET_ENTITLEMENTS_EMBEDDED,TF),KF=e=>zF(e,iP.GET_SKUS_EMBEDDED,wF),qF=e=>zF(e,iP.GET_CHANNEL_PERMISSIONS,AF),JF=e=>zF(e,iP.GET_PLATFORM_BEHAVIORS,MF),YF=e=>zF(e,iP.OPEN_EXTERNAL_LINK,jF),XF=e=>zF(e,iP.OPEN_INVITE_DIALOG,pF);_P.pick({state:!0,state_url:!0,details:!0,details_url:!0,timestamps:!0,assets:!0,party:!0,secrets:!0,instance:!0,type:!0}).extend({type:_P.shape.type.optional(),instance:_P.shape.instance.optional()}).nullable();var ZF=e=>zF(e,iP.SET_ACTIVITY,CF),QF=e=>zF(e,iP.SET_CONFIG,DF);function $F({sendCommand:e,cmd:t,response:n,fallbackTransform:r,transferTransform:i=()=>void 0}){let a=aP.extend({cmd:GM(t),data:n});return async n=>{try{let r=await e({cmd:t,args:n,transfer:i(n)});return a.parse(r).data}catch(o){if(o.code===ON.INVALID_PAYLOAD){let o=r(n),s=await e({cmd:t,args:o,transfer:i(o)});return a.parse(s).data}throw o}}}var eI=e=>({lock_state:e.lock_state,picture_in_picture_lock_state:e.picture_in_picture_lock_state}),tI=e=>$F({sendCommand:e,cmd:iP.SET_ORIENTATION_LOCK_STATE,response:pF,fallbackTransform:eI}),nI=e=>zF(e,iP.START_PURCHASE,EF),rI=e=>zF(e,iP.USER_SETTINGS_GET_LOCALE,OF),iI=BF(QN.AUTHENTICATE),aI=BF(QN.GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS),oI=BF(QN.GET_QUEST),sI=BF(QN.GET_QUEST_ENROLLMENT_STATUS),cI=BF(QN.GET_RELATIONSHIPS),lI=BF(QN.GET_USER),uI=BF(QN.INITIATE_IMAGE_UPLOAD),dI=BF(QN.INVITE_USER_EMBEDDED),fI=BF(QN.OPEN_SHARE_MOMENT_DIALOG),pI=BF(QN.QUEST_START_TIMER),mI=BF(QN.REQUEST_PROXY_TICKET_REFRESH),hI=BF(QN.SHARE_INTERACTION),gI=BF(QN.SHARE_LINK);function _I(e){return{authorize:VF(e),captureLog:HF(e),encourageHardwareAcceleration:UF(e),getChannel:WF(e),getChannelPermissions:qF(e),getEntitlements:GF(e),getPlatformBehaviors:JF(e),getSkus:KF(e),openExternalLink:YF(e),openInviteDialog:XF(e),setActivity:ZF(e),setConfig:QF(e),setOrientationLockState:tI(e),startPurchase:nI(e),userSettingsGetLocale:rI(e),getInstanceConnectedParticipants:aI(e),authenticate:iI(e),getActivityInstanceConnectedParticipants:aI(e),getQuest:oI(e),getQuestEnrollmentStatus:sI(e),getRelationships:cI(e),getUser:lI(e),initiateImageUpload:uI(e),inviteUserEmbedded:dI(e),openShareMomentDialog:fI(e),questStartTimer:pI(e),requestProxyTicketRefresh:mI(e),shareInteraction:hI(e),shareLink:gI(e)}}var vI=class extends Error{constructor(e,t=``){super(t),this.code=e,this.message=t,this.name=`Discord SDK Error`}};function yI(){return{disableConsoleLogOverride:!1}}var bI=[`log`,`warn`,`debug`,`info`,`error`];function xI(e,t,n){let r=e[t],i=e;r&&(e[t]=function(){let e=[].slice.call(arguments);n(t,``+e.join(` `)),r.apply(i,e)})}var SI=`2.5.0`,CI={randomUUID:typeof crypto<`u`&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},wI,TI=new Uint8Array(16);function EI(){if(!wI){if(typeof crypto>`u`||!crypto.getRandomValues)throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);wI=crypto.getRandomValues.bind(crypto)}return wI(TI)}var DI=[];for(let e=0;e<256;++e)DI.push((e+256).toString(16).slice(1));function OI(e,t=0){return(DI[e[t+0]]+DI[e[t+1]]+DI[e[t+2]]+DI[e[t+3]]+`-`+DI[e[t+4]]+DI[e[t+5]]+`-`+DI[e[t+6]]+DI[e[t+7]]+`-`+DI[e[t+8]]+DI[e[t+9]]+`-`+DI[e[t+10]]+DI[e[t+11]]+DI[e[t+12]]+DI[e[t+13]]+DI[e[t+14]]+DI[e[t+15]]).toLowerCase()}function kI(e,t,n){if(CI.randomUUID&&!t&&!e)return CI.randomUUID();e||={};let r=e.random??e.rng?.()??EI();if(r.length<16)throw Error(`Random bytes length must be >= 16`);return r[6]=r[6]&15|64,r[8]=r[8]&63|128,OI(r)}var AI;(function(e){e[e.HANDSHAKE=0]=`HANDSHAKE`,e[e.FRAME=1]=`FRAME`,e[e.CLOSE=2]=`CLOSE`,e[e.HELLO=3]=`HELLO`})(AI||={});var jI=new Set(MI());function MI(){return typeof window>`u`?[]:[window.location.origin,`https://discord.com`,`https://discordapp.com`,`https://ptb.discord.com`,`https://ptb.discordapp.com`,`https://canary.discord.com`,`https://canary.discordapp.com`,`https://staging.discord.co`,`http://localhost:3333`,`https://pax.discord.com`,`null`]}function NI(){return[window.parent.opener??window.parent,document.referrer?document.referrer:`*`]}var PI=class{getTransfer(e){switch(e.cmd){case iP.SUBSCRIBE:case iP.UNSUBSCRIBE:return;default:return e.transfer??void 0}}constructor(e,t){if(this.sdkVersion=SI,this.mobileAppVersion=null,this.source=null,this.sourceOrigin=``,this.eventBus=new LA,this.pendingCommands=new Map,this.sendCommand=e=>{var t;if(this.source==null)throw Error(`Attempting to send message before initialization`);let n=kI();return(t=this.source)==null||t.postMessage([AI.FRAME,Object.assign(Object.assign({},e),{nonce:n})],this.sourceOrigin,this.getTransfer(e)),new Promise((e,t)=>{this.pendingCommands.set(n,{resolve:e,reject:t})})},this.commands=_I(this.sendCommand),this.handleMessage=e=>{if(!jI.has(e.origin))return;let t=e.data;if(!Array.isArray(t))return;let[n,r]=t;switch(n){case AI.HELLO:return;case AI.CLOSE:return this.handleClose(r);case AI.HANDSHAKE:return this.handleHandshake();case AI.FRAME:return this.handleFrame(r);default:throw Error(`Invalid message format`)}},this.isReady=!1,this.clientId=e,this.configuration=t??yI(),typeof window<`u`&&window.addEventListener(`message`,this.handleMessage),typeof window>`u`){this.frameId=``,this.instanceId=``,this.customId=null,this.referrerId=null,this.platform=AN.DESKTOP,this.guildId=null,this.channelId=null,this.locationId=null;return}let n=new URLSearchParams(this._getSearch()),r=n.get(`frame_id`);if(!r)throw Error(`frame_id query param is not defined`);this.frameId=r;let i=n.get(`instance_id`);if(!i)throw Error(`instance_id query param is not defined`);this.instanceId=i;let a=n.get(`platform`);if(!a)throw Error(`platform query param is not defined`);if(a!==AN.DESKTOP&&a!==AN.MOBILE)throw Error(`Invalid query param "platform" of "${a}". Valid values are "${AN.DESKTOP}" or "${AN.MOBILE}"`);this.platform=a,this.customId=n.get(`custom_id`),this.referrerId=n.get(`referrer_id`),this.guildId=n.get(`guild_id`),this.channelId=n.get(`channel_id`),this.locationId=n.get(`location_id`),this.mobileAppVersion=n.get(`mobile_app_version`),[this.source,this.sourceOrigin]=NI(),this.addOnReadyListener(),this.handshake()}close(e,t){var n;window.removeEventListener(`message`,this.handleMessage);let r=kI();(n=this.source)==null||n.postMessage([AI.CLOSE,{code:e,message:t,nonce:r}],this.sourceOrigin)}async subscribe(e,t,...n){let[r]=n,i=this.eventBus.listenerCount(e),a=this.eventBus.on(e,t);return Object.values(oF).includes(e)&&e!==oF.READY&&i===0&&await this.sendCommand({cmd:iP.SUBSCRIBE,args:r,evt:e}),a}async unsubscribe(e,t,...n){let[r]=n;return e!==oF.READY&&this.eventBus.listenerCount(e)===1&&await this.sendCommand({cmd:iP.UNSUBSCRIBE,evt:e,args:r}),this.eventBus.off(e,t)}async ready(){this.isReady||await new Promise(e=>{this.eventBus.once(oF.READY,e)})}parseMajorMobileVersion(){if(this.mobileAppVersion&&this.mobileAppVersion.includes(`.`))try{return parseInt(this.mobileAppVersion.split(`.`)[0])}catch{return-1}return-1}handshake(){var e;let t={v:1,encoding:`json`,client_id:this.clientId,frame_id:this.frameId},n=this.parseMajorMobileVersion();(this.platform===AN.DESKTOP||n>=250)&&(t.sdk_version=this.sdkVersion),(e=this.source)==null||e.postMessage([AI.HANDSHAKE,t],this.sourceOrigin)}addOnReadyListener(){this.eventBus.once(oF.READY,()=>{this.overrideConsoleLogging(),this.isReady=!0})}overrideConsoleLogging(){if(this.configuration.disableConsoleLogOverride)return;let e=(e,t)=>{this.commands.captureLog({level:e,message:t})};bI.forEach(t=>{xI(console,t,e)})}handleClose(e){IF.parse(e)}handleHandshake(){}handleFrame(e){var t,n;let r;try{r=RF(e)}catch(t){console.error(`Failed to parse`,e),console.error(t);return}if(r.cmd===`DISPATCH`)this.eventBus.emit(r.evt,r.data);else{if(r.evt===`ERROR`){if(r.nonce!=null){(t=this.pendingCommands.get(r.nonce))==null||t.reject(r.data),this.pendingCommands.delete(r.nonce);return}this.eventBus.emit(`error`,new vI(r.data.code,r.data.message))}if(r.nonce==null){console.error(`Missing nonce`,e);return}(n=this.pendingCommands.get(r.nonce))==null||n.resolve(r),this.pendingCommands.delete(r.nonce)}}_getSearch(){return typeof window>`u`?``:window.location.search}},FI=1e9,II={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:`2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286`},LI=!0,RI=`[DecimalError] `,zI=RI+`Invalid argument: `,BI=RI+`Exponent out of range: `,VI=Math.floor,HI=Math.pow,UI=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,WI,GI=1e7,KI=7,qI=9007199254740991,JI=VI(qI/KI),YI={};YI.absoluteValue=YI.abs=function(){var e=new this.constructor(this);return e.s&&=1,e},YI.comparedTo=YI.cmp=function(e){var t,n,r,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(r=a.d.length,i=e.d.length,t=0,n=re.d[t]^a.s<0?1:-1;return r===i?0:r>i^a.s<0?1:-1},YI.decimalPlaces=YI.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*KI;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n},YI.dividedBy=YI.div=function(e){return $I(this,new this.constructor(e))},YI.dividedToIntegerBy=YI.idiv=function(e){var t=this,n=t.constructor;return oL($I(t,new n(e),0,1),n.precision)},YI.equals=YI.eq=function(e){return!this.cmp(e)},YI.exponent=function(){return tL(this)},YI.greaterThan=YI.gt=function(e){return this.cmp(e)>0},YI.greaterThanOrEqualTo=YI.gte=function(e){return this.cmp(e)>=0},YI.isInteger=YI.isint=function(){return this.e>this.d.length-2},YI.isNegative=YI.isneg=function(){return this.s<0},YI.isPositive=YI.ispos=function(){return this.s>0},YI.isZero=function(){return this.s===0},YI.lessThan=YI.lt=function(e){return this.cmp(e)<0},YI.lessThanOrEqualTo=YI.lte=function(e){return this.cmp(e)<1},YI.logarithm=YI.log=function(e){var t,n=this,r=n.constructor,i=r.precision,a=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(WI))throw Error(RI+`NaN`);if(n.s<1)throw Error(RI+(n.s?`NaN`:`-Infinity`));return n.eq(WI)?new r(0):(LI=!1,t=$I(iL(n,a),iL(e,a),a),LI=!0,oL(t,i))},YI.minus=YI.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?sL(t,e):XI(t,(e.s=-e.s,e))},YI.modulo=YI.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(RI+`NaN`);return n.s?(LI=!1,t=$I(n,e,0,1).times(e),LI=!0,n.minus(t)):oL(new r(n),i)},YI.naturalExponential=YI.exp=function(){return eL(this)},YI.naturalLogarithm=YI.ln=function(){return iL(this)},YI.negated=YI.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},YI.plus=YI.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?XI(t,e):sL(t,(e.s=-e.s,e))},YI.precision=YI.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(zI+e);if(t=tL(i)+1,r=i.d.length-1,n=r*KI+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},YI.squareRoot=YI.sqrt=function(){var e,t,n,r,i,a,o,s=this,c=s.constructor;if(s.s<1){if(!s.s)return new c(0);throw Error(RI+`NaN`)}for(e=tL(s),LI=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=QI(s.d),(t.length+e)%2==0&&(t+=`0`),i=Math.sqrt(t),e=VI((e+1)/2)-(e<0||e%2),i==1/0?t=`5e`+e:(t=i.toExponential(),t=t.slice(0,t.indexOf(`e`)+1)+e),r=new c(t)):r=new c(i.toString()),n=c.precision,i=o=n+3;;)if(a=r,r=a.plus($I(s,a,o+2)).times(.5),QI(a.d).slice(0,o)===(t=QI(r.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t==`4999`){if(oL(a,n+1,0),a.times(a).eq(s)){r=a;break}}else if(t!=`9999`)break;o+=4}return LI=!0,oL(r,n)},YI.times=YI.mul=function(e){var t,n,r,i,a,o,s,c,l,u=this,d=u.constructor,f=u.d,p=(e=new d(e)).d;if(!u.s||!e.s)return new d(0);for(e.s*=u.s,n=u.e+e.e,c=f.length,l=p.length,c=0;){for(t=0,i=c+r;i>r;)s=a[i]+p[r]*f[i-r-1]+t,a[i--]=s%GI|0,t=s/GI|0;a[i]=(a[i]+t)%GI|0}for(;!a[--o];)a.pop();return t?++n:a.shift(),e.d=a,e.e=n,LI?oL(e,d.precision):e},YI.toDecimalPlaces=YI.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(ZI(e,0,FI),t===void 0?t=r.rounding:ZI(t,0,8),oL(n,e+tL(n)+1,t))},YI.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=cL(r,!0):(ZI(e,0,FI),t===void 0?t=i.rounding:ZI(t,0,8),r=oL(new i(r),e+1,t),n=cL(r,!0,e+1)),n},YI.toFixed=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?cL(i):(ZI(e,0,FI),t===void 0?t=a.rounding:ZI(t,0,8),r=oL(new a(i),e+tL(i)+1,t),n=cL(r.abs(),!1,e+tL(r)+1),i.isneg()&&!i.isZero()?`-`+n:n)},YI.toInteger=YI.toint=function(){var e=this,t=e.constructor;return oL(new t(e),tL(e)+1,t.rounding)},YI.toNumber=function(){return+this},YI.toPower=YI.pow=function(e){var t,n,r,i,a,o,s=this,c=s.constructor,l=12,u=+(e=new c(e));if(!e.s)return new c(WI);if(s=new c(s),!s.s){if(e.s<1)throw Error(RI+`Infinity`);return s}if(s.eq(WI))return s;if(r=c.precision,e.eq(WI))return oL(s,r);if(t=e.e,n=e.d.length-1,o=t>=n,a=s.s,!o){if(a<0)throw Error(RI+`NaN`)}else if((n=u<0?-u:u)<=qI){for(i=new c(WI),t=Math.ceil(r/KI+4),LI=!1;n%2&&(i=i.times(s),lL(i.d,t)),n=VI(n/2),n!==0;)s=s.times(s),lL(s.d,t);return LI=!0,e.s<0?new c(WI).div(i):oL(i,r)}return a=a<0&&e.d[Math.max(t,n)]&1?-1:1,s.s=1,LI=!1,i=e.times(iL(s,r+l)),LI=!0,i=eL(i),i.s=a,i},YI.toPrecision=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?(n=tL(i),r=cL(i,n<=a.toExpNeg||n>=a.toExpPos)):(ZI(e,1,FI),t===void 0?t=a.rounding:ZI(t,0,8),i=oL(new a(i),e,t),n=tL(i),r=cL(i,e<=n||n<=a.toExpNeg,e)),r},YI.toSignificantDigits=YI.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(ZI(e,1,FI),t===void 0?t=r.rounding:ZI(t,0,8)),oL(new r(n),e,t)},YI.toString=YI.valueOf=YI.val=YI.toJSON=YI[Symbol.for(`nodejs.util.inspect.custom`)]=function(){var e=this,t=tL(e),n=e.constructor;return cL(e,t<=n.toExpNeg||t>=n.toExpPos)};function XI(e,t){var n,r,i,a,o,s,c,l,u=e.constructor,d=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),LI?oL(t,d):t;if(c=e.d,l=t.d,o=e.e,i=t.e,c=c.slice(),a=o-i,a){for(a<0?(r=c,a=-a,s=l.length):(r=l,i=o,s=c.length),o=Math.ceil(d/KI),s=o>s?o+1:s+1,a>s&&(a=s,r.length=1),r.reverse();a--;)r.push(0);r.reverse()}for(s=c.length,a=l.length,s-a<0&&(a=s,r=l,l=c,c=r),n=0;a;)n=(c[--a]=c[a]+l[a]+n)/GI|0,c[a]%=GI;for(n&&(c.unshift(n),++i),s=c.length;c[--s]==0;)c.pop();return t.d=c,t.e=i,LI?oL(t,d):t}function ZI(e,t,n){if(e!==~~e||en)throw Error(zI+e)}function QI(e){var t,n,r,i=e.length-1,a=``,o=e[0];if(i>0){for(a+=o,t=1;tr?1:-1;else for(i=a=0;it[i]?1:-1;break}return a}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=+(e[n]1;)e.shift()}return function(r,i,a,o){var s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T=r.constructor,E=r.s==i.s?1:-1,D=r.d,O=i.d;if(!r.s)return new T(r);if(!i.s)throw Error(RI+`Division by zero`);for(c=r.e-i.e,C=O.length,x=D.length,p=new T(E),m=p.d=[],l=0;O[l]==(D[l]||0);)++l;if(O[l]>(D[l]||0)&&--c,v=a==null?a=T.precision:o?a+(tL(r)-tL(i))+1:a,v<0)return new T(0);if(v=v/KI+2|0,l=0,C==1)for(u=0,O=O[0],v++;(l1&&(O=e(O,u),D=e(D,u),C=O.length,x=D.length),b=C,h=D.slice(0,C),g=h.length;g=GI/2&&++S;do u=0,s=t(O,h,C,g),s<0?(_=h[0],C!=g&&(_=_*GI+(h[1]||0)),u=_/S|0,u>1?(u>=GI&&(u=GI-1),d=e(O,u),f=d.length,g=h.length,s=t(d,h,f,g),s==1&&(u--,n(d,C16)throw Error(BI+tL(e));if(!e.s)return new u(WI);for(t==null?(LI=!1,s=d):s=t,o=new u(.03125);e.abs().gte(.1);)e=e.times(o),l+=5;for(r=Math.log(HI(2,l))/Math.LN10*2+5|0,s+=r,n=i=a=new u(WI),u.precision=s;;){if(i=oL(i.times(e),s),n=n.times(++c),o=a.plus($I(i,n,s)),QI(o.d).slice(0,s)===QI(a.d).slice(0,s)){for(;l--;)a=oL(a.times(a),s);return u.precision=d,t==null?(LI=!0,oL(a,d)):a}a=o}}function tL(e){for(var t=e.e*KI,n=e.d[0];n>=10;n/=10)t++;return t}function nL(e,t,n){if(t>e.LN10.sd())throw LI=!0,n&&(e.precision=n),Error(RI+`LN10 precision limit exceeded`);return oL(new e(e.LN10),t)}function rL(e){for(var t=``;e--;)t+=`0`;return t}function iL(e,t){var n,r,i,a,o,s,c,l,u,d=1,f=10,p=e,m=p.d,h=p.constructor,g=h.precision;if(p.s<1)throw Error(RI+(p.s?`NaN`:`-Infinity`));if(p.eq(WI))return new h(0);if(t==null?(LI=!1,l=g):l=t,p.eq(10))return t??(LI=!0),nL(h,l);if(l+=f,h.precision=l,n=QI(m),r=n.charAt(0),a=tL(p),Math.abs(a)<0x5543df729c000){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)p=p.times(e),n=QI(p.d),r=n.charAt(0),d++;a=tL(p),r>1?(p=new h(`0.`+n),a++):p=new h(r+`.`+n.slice(1))}else return c=nL(h,l+2,g).times(a+``),p=iL(new h(r+`.`+n.slice(1)),l-f).plus(c),h.precision=g,t==null?(LI=!0,oL(p,g)):p;for(s=o=p=$I(p.minus(WI),p.plus(WI),l),u=oL(p.times(p),l),i=3;;){if(o=oL(o.times(u),l),c=s.plus($I(o,new h(i),l)),QI(c.d).slice(0,l)===QI(s.d).slice(0,l))return s=s.times(2),a!==0&&(s=s.plus(nL(h,l+2,g).times(a+``))),s=$I(s,new h(d),l),h.precision=g,t==null?(LI=!0,oL(s,g)):s;s=c,i+=2}}function aL(e,t){var n,r,i;for((n=t.indexOf(`.`))>-1&&(t=t.replace(`.`,``)),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=VI(n/KI),e.d=[],r=(n+1)%KI,n<0&&(r+=KI),rJI||e.e<-JI))throw Error(BI+n)}else e.s=0,e.e=0,e.d=[0];return e}function oL(e,t,n){var r,i,a,o,s,c,l,u,d=e.d;for(o=1,a=d[0];a>=10;a/=10)o++;if(r=t-o,r<0)r+=KI,i=t,l=d[u=0];else{if(u=Math.ceil((r+1)/KI),a=d.length,u>=a)return e;for(l=a=d[u],o=1;a>=10;a/=10)o++;r%=KI,i=r-KI+o}if(n!==void 0&&(a=HI(10,o-i-1),s=l/a%10|0,c=t<0||d[u+1]!==void 0||l%a,c=n<4?(s||c)&&(n==0||n==(e.s<0?3:2)):s>5||s==5&&(n==4||c||n==6&&(r>0?i>0?l/HI(10,o-i):0:d[u-1])%10&1||n==(e.s<0?8:7))),t<1||!d[0])return c?(a=tL(e),d.length=1,t=t-a-1,d[0]=HI(10,(KI-t%KI)%KI),e.e=VI(-t/KI)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(r==0?(d.length=u,a=1,u--):(d.length=u+1,a=HI(10,KI-r),d[u]=i>0?(l/HI(10,o-i)%HI(10,i)|0)*a:0),c)for(;;)if(u==0){(d[0]+=a)==GI&&(d[0]=1,++e.e);break}else{if(d[u]+=a,d[u]!=GI)break;d[u--]=0,a=1}for(r=d.length;d[--r]===0;)d.pop();if(LI&&(e.e>JI||e.e<-JI))throw Error(BI+tL(e));return e}function sL(e,t){var n,r,i,a,o,s,c,l,u,d,f=e.constructor,p=f.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new f(e),LI?oL(t,p):t;if(c=e.d,d=t.d,r=t.e,l=e.e,c=c.slice(),o=l-r,o){for(u=o<0,u?(n=c,o=-o,s=d.length):(n=d,r=l,s=c.length),i=Math.max(Math.ceil(p/KI),s)+2,o>i&&(o=i,n.length=1),n.reverse(),i=o;i--;)n.push(0);n.reverse()}else{for(i=c.length,s=d.length,u=i0;--i)c[s++]=0;for(i=d.length;i>o;){if(c[--i]0?a=a.charAt(0)+`.`+a.slice(1)+rL(r):o>1&&(a=a.charAt(0)+`.`+a.slice(1)),a=a+(i<0?`e`:`e+`)+i):i<0?(a=`0.`+rL(-i-1)+a,n&&(r=n-o)>0&&(a+=rL(r))):i>=o?(a+=rL(i+1-o),n&&(r=n-i-1)>0&&(a=a+`.`+rL(r))):((r=i+1)0&&(i+1===o&&(a+=`.`),a+=rL(r))),e.s<0?`-`+a:a}function lL(e,t){if(e.length>t)return e.length=t,!0}function uL(e){var t,n,r;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i)t.s=e.s,t.e=e.e,t.d=(e=e.d)?e.slice():e;else{if(typeof e==`number`){if(e*0!=0)throw Error(zI+e);if(e>0)t.s=1;else if(e<0)e=-e,t.s=-1;else{t.s=0,t.e=0,t.d=[0];return}if(e===~~e&&e<1e7){t.e=0,t.d=[e];return}return aL(t,e.toString())}if(typeof e!=`string`)throw Error(zI+e);if(e.charCodeAt(0)===45?(e=e.slice(1),t.s=-1):t.s=1,UI.test(e))aL(t,e);else throw Error(zI+e)}}if(i.prototype=YI,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=uL,i.config=i.set=dL,e===void 0&&(e={}),e)for(r=[`precision`,`rounding`,`toExpNeg`,`toExpPos`,`LN10`],t=0;t=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(zI+n+`: `+r)}if((r=e[n=`LN10`])!==void 0){if(r==Math.LN10)this[n]=new this(r);else throw Error(zI+n+`: `+r)}return this}WI=new(uL(II))(1);var Q;(function(e){e.AED=`aed`,e.AFN=`afn`,e.ALL=`all`,e.AMD=`amd`,e.ANG=`ang`,e.AOA=`aoa`,e.ARS=`ars`,e.AUD=`aud`,e.AWG=`awg`,e.AZN=`azn`,e.BAM=`bam`,e.BBD=`bbd`,e.BDT=`bdt`,e.BGN=`bgn`,e.BHD=`bhd`,e.BIF=`bif`,e.BMD=`bmd`,e.BND=`bnd`,e.BOB=`bob`,e.BOV=`bov`,e.BRL=`brl`,e.BSD=`bsd`,e.BTN=`btn`,e.BWP=`bwp`,e.BYN=`byn`,e.BYR=`byr`,e.BZD=`bzd`,e.CAD=`cad`,e.CDF=`cdf`,e.CHE=`che`,e.CHF=`chf`,e.CHW=`chw`,e.CLF=`clf`,e.CLP=`clp`,e.CNY=`cny`,e.COP=`cop`,e.COU=`cou`,e.CRC=`crc`,e.CUC=`cuc`,e.CUP=`cup`,e.CVE=`cve`,e.CZK=`czk`,e.DJF=`djf`,e.DKK=`dkk`,e.DOP=`dop`,e.DZD=`dzd`,e.EGP=`egp`,e.ERN=`ern`,e.ETB=`etb`,e.EUR=`eur`,e.F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,Q.KMF,Q.KPW,Q.KRW,Q.KWD,Q.KYD,Q.KZT,Q.LAK,Q.LBP,Q.LKR,Q.LRD,Q.LSL,Q.LTL,Q.LVL,Q.LYD,Q.MAD,Q.MDL,Q.MGA,Q.MKD,Q.MMK,Q.MNT,Q.MOP,Q.MRO,Q.MUR,Q.MVR,Q.MWK,Q.MXN,Q.MXV,Q.MYR,Q.MZN,Q.NAD,Q.NGN,Q.NIO,Q.NOK,Q.NPR,Q.NZD,Q.OMR,Q.PAB,Q.PEN,Q.PGK,Q.PHP,Q.PKR,Q.PLN,Q.PYG,Q.QAR,Q.RON,Q.RSD,Q.RUB,Q.RWF,Q.SAR,Q.SBD,Q.SCR,Q.SDG,Q.SEK,Q.SGD,Q.SHP,Q.SLL,Q.SOS,Q.SRD,Q.SSP,Q.STD,Q.SVC,Q.SYP,Q.SZL,Q.THB,Q.TJS,Q.TMT,Q.TND,Q.TOP,Q.TRY,Q.TTD,Q.TWD,Q.TZS,Q.UAH,Q.UGX,Q.USD,Q.USN,Q.USS,Q.UYI,Q.UYU,Q.UZS,Q.VEF,Q.VND,Q.VUV,Q.WST,Q.XAF,Q.XAG,Q.XAU,Q.XBA,Q.XBB,Q.XBC,Q.XBD,Q.XCD,Q.XDR,Q.XFU,Q.XOF,Q.XPD,Q.XPF,Q.XPT,Q.XSU,Q.XTS,Q.XUA,Q.YER,Q.ZAR,Q.ZMW,Q.ZWL;var fL={exports:{}};fL.exports;var pL;function mL(){return pL||(pL=1,(function(e,t){var n=`__lodash_hash_undefined__`,r=9007199254740991,i=`[object Arguments]`,a=`[object Array]`,o=`[object Boolean]`,s=`[object Date]`,c=`[object Error]`,l=`[object Function]`,u=`[object Map]`,d=`[object Number]`,f=`[object Object]`,p=`[object Promise]`,m=`[object RegExp]`,h=`[object Set]`,g=`[object String]`,_=`[object Symbol]`,v=`[object WeakMap]`,y=`[object ArrayBuffer]`,b=`[object DataView]`,x=`[object Float32Array]`,S=`[object Float64Array]`,C=`[object Int8Array]`,w=`[object Int16Array]`,T=`[object Int32Array]`,E=`[object Uint8Array]`,D=`[object Uint8ClampedArray]`,O=`[object Uint16Array]`,k=`[object Uint32Array]`,ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,A=/^\w*$/,te=/^\./,j=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,M=/[\\^$.*+?()[\]{}|]/g,ne=/\\(\\)?/g,re=/^\[object .+?Constructor\]$/,ie=/^(?:0|[1-9]\d*)$/,N={};N[x]=N[S]=N[C]=N[w]=N[T]=N[E]=N[D]=N[O]=N[k]=!0,N[i]=N[a]=N[y]=N[o]=N[b]=N[s]=N[c]=N[l]=N[u]=N[d]=N[f]=N[m]=N[h]=N[g]=N[v]=!1;var ae=typeof MA==`object`&&MA&&MA.Object===Object&&MA,oe=typeof self==`object`&&self&&self.Object===Object&&self,se=ae||oe||globalThis,ce=t&&!t.nodeType&&t,le=ce&&e&&!e.nodeType&&e,ue=le&&le.exports===ce&&ae.process,de=function(){try{return ue&&ue.binding(`util`)}catch{}}(),fe=de&&de.isTypedArray;function pe(e,t){for(var n=-1,r=e?e.length:0;++n-1}function st(e,t){var n=this.__data__,r=wt(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}nt.prototype.clear=rt,nt.prototype.delete=it,nt.prototype.get=at,nt.prototype.has=ot,nt.prototype.set=st;function ct(e){var t=-1,n=e?e.length:0;for(this.clear();++ts))return!1;var l=a.get(e);if(l&&a.get(t))return l==t;var u=-1,d=!0,f=i&1?new mt:void 0;for(a.set(e,t),a.set(t,e);++u-1&&e%1==0&&e-1&&e%1==0&&e<=r}function gn(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function _n(e){return!!e&&typeof e==`object`}function vn(e){return typeof e==`symbol`||_n(e)&&De.call(e)==_}var yn=fe?_e(fe):Pt;function bn(e){return e==null?``:Bt(e)}function xn(e,t,n){var r=e==null?void 0:Ot(e,t);return r===void 0?n:r}function Sn(e,t){return e!=null&&Xt(e,t,At)}function Cn(e){return fn(e)?Ct(e):It(e)}function wn(e,t,n){var r=dn(e)||yn(e);if(t=Ft(t),n==null){if(r||gn(e)){var i=e.constructor;n=r?dn(e)?new i:[]:mn(i)?Tt(je(e)):{}}else n={}}return(r?pe:Dt)(e,function(e,r,i){return t(n,e,r,i)}),n}function Tn(e){return e}function En(e){return Qt(e)?he(on(e)):zt(e)}e.exports=wn})(fL,fL.exports)),fL.exports}mL();var{Commands:hL}=nP,gL=[`identify`,`guilds.members.read`];function _L(e,t){if(e instanceof TA)return e;if(typeof e==`object`&&e&&`code`in e){let n=e.code,r=Object.values(ON).filter(e=>typeof e==`number`);if(typeof n==`number`&&r.includes(n))return new TA(`${t}_${n}`)}return new TA(t)}var vL=15e3,yL=12e4,bL=15e3;function xL(e=window.location.search){let t=new URLSearchParams(e),n=t.getAll(`frame_id`),r=t.getAll(`platform`);if(n.length!==1||n[0]===void 0||n[0].length===0||n[0].length>255||r.length!==1||![`desktop`,`mobile`].includes(r[0]??``))throw new TA(`invalid_launch`)}async function SL(e,t,n,r,i){let a=null,o=new Promise((e,n)=>{t!==void 0&&(a=()=>n(new TA(`cancelled`)),t.addEventListener(`abort`,a,{once:!0}),t.aborted&&a())}),s=null,c=new Promise((e,t)=>{s=setTimeout(()=>t(new TA(r)),i)}),l=Promise.resolve().then(()=>{if(t?.aborted)throw new TA(`cancelled`);return e()}).catch(e=>{throw _L(e,n)});try{return await Promise.race([l,o,c])}finally{s!==null&&clearTimeout(s),t!==void 0&&a!==null&&t.removeEventListener(`abort`,a)}}var CL=class{makeSDK;sdk=null;authenticated=!1;closed=!1;constructor(e=e=>new PI(e)){this.makeSDK=e}async authorize(e){let t=DA();xL();let n=await kA(t,e),r=this.open(n.client_id),i=()=>{if(e?.aborted)throw new TA(`cancelled`)};try{if(i(),await SL(()=>r.ready(),e,`sdk_ready_failed`,`sdk_ready_timeout`,vL),i(),r.instanceId!==t)throw new TA(`instance_mismatch`);let a=await SL(()=>r.commands.authorize({client_id:n.client_id,response_type:`code`,state:n.state,prompt:`none`,scope:[...gL]}),e,`authorize_failed`,`authorize_timeout`,yL);i();let o=await AA(a.code,n.state,e);if(i(),!this.authenticated){if(await SL(()=>r.commands.authenticate({access_token:o.access_token}),e,`sdk_authenticate_failed`,`sdk_authenticate_timeout`,bL)==null)throw new TA(`sdk_authenticate_failed`);this.authenticated=!0,i()}let s=o.ticket;return{sdk:r,bootstrap:n,player:o.player,takeTicket:()=>{let e=s;return s=null,e},destroy:()=>{s=null}}}catch(t){throw e?.aborted?new TA(`cancelled`):new TA(_L(t,`authorization_failed`).code,!0)}}close(){if(!this.closed&&(this.closed=!0,this.sdk!==null))try{this.sdk.close(DN.CLOSE_NORMAL,`Hands session closed`)}catch{}}open(e){if(this.closed)throw new TA(`cancelled`);if(this.sdk!==null)return this.sdk;try{this.sdk=this.makeSDK(e)}catch(e){throw new TA(_L(e,`sdk_initialization_failed`).code,!0)}return this.sdk}},wL={Digit1:`corner_cut`,Numpad1:`corner_cut`,Digit2:`corner_swelling`,Numpad2:`corner_swelling`,Digit3:`corner_breath`,Numpad3:`corner_breath`},TL={2:`corner_cut`,3:`corner_swelling`,1:`corner_breath`},EL=[{kind:`corner_cut`,choice:`cut`,key:`1`,title:`Close the cut`},{kind:`corner_swelling`,choice:`swelling`,key:`2`,title:`Bring down the swelling`},{kind:`corner_breath`,choice:`breath`,key:`3`,title:`Catch your breath`}],DL={cut:`Your corner is closing the cut.`,swelling:`Your corner is bringing the swelling down.`,breath:`Your corner is getting your breath back.`,balanced:`Your corner did a little of everything.`},OL=1500,kL=1e3;function AL(e){return e<150?`small`:e<350?`nasty`:e<550?`deep`:`dangerous`}var jL=(e,t)=>Math.round(Math.max(0,Math.min(1,e/t))*100);function ML(e){let{trauma:t}=e,n=Math.max(t.left_cut,t.right_cut),r=Math.max(0,n-x.cut.worse_cut),i=Math.max(t.left_eye,t.right_eye),a=Math.max(0,i-x.swelling.eyes),o=i>=p?a0,swelling:Math.max(t.left_eye,t.right_eye)>0||t.swelling>0,breath:!0,balanced:!1}}function PL(){try{return[...navigator.getGamepads?.()??[]].find(e=>e!==null&&e.connected&&e.mapping===`standard`)??null}catch{return null}}var FL=class{pick;now;element;buttons=new Map;details=new Map;status;visible=!1;choice=null;pending=null;shown=null;frozen=null;available=null;padFrame=0;padPrevious=new Set;measuredTop=null;resize=()=>{this.measuredTop=null};keydown=e=>{let t=wL[e.code];t!==void 0&&this.visible&&!e.repeat&&(e.preventDefault(),this.choose(t))};constructor(e,t,n=()=>performance.now()){this.pick=t,this.now=n;let r=document.createElement(`section`);r.className=`corner`,r.dataset.corner=``,r.hidden=!0,r.setAttribute(`aria-label`,`Instructions for your corner`);let i=document.createElement(`p`);i.className=`corner-title`,i.textContent=`YOUR CORNER`;let a=document.createElement(`div`);a.className=`corner-choices`;for(let{kind:e,key:t,title:n}of EL){let r=document.createElement(`button`);r.type=`button`,r.dataset.cornerPick=e;let i=document.createElement(`kbd`);i.textContent=t;let o=document.createElement(`strong`);o.textContent=n;let s=document.createElement(`span`);r.append(i,o,s),r.addEventListener(`click`,()=>this.choose(e)),a.append(r),this.buttons.set(e,r),this.details.set(e,s)}this.status=document.createElement(`p`),this.status.className=`corner-status`,this.status.setAttribute(`role`,`status`),r.append(i,a,this.status),e.append(r),this.element=r,window.addEventListener(`keydown`,this.keydown),window.addEventListener(`resize`,this.resize)}update(e,t,n){let r=e?.fighters.find(e=>e.player_id===t);if(!(n&&e!==null&&e.phase===`rest`&&r!==void 0)||r===void 0){this.setVisible(!1),this.choice=null,this.pending=null,this.shown=null,this.frozen=null;return}this.setVisible(!0),this.choice=r.corner_choice,(this.choice!==null||this.pending!==null&&this.now()-this.pending.at>OL)&&(this.pending=null);let i=this.choice!==null||this.pending!==null;i||(this.frozen=null);let a=i&&this.frozen!==null?this.frozen:ML(r);this.shown=a;let o=NL(r);this.available=o;for(let{kind:e,choice:t}of EL){let n=this.buttons.get(e),r=this.details.get(e);r.textContent!==a[t]&&(r.textContent=a[t]),n.disabled=i||!o[t],n.toggleAttribute(`data-picked`,this.choice===t||this.pending?.kind===e)}let s=this.choice===null?this.pending===null?`Tell your corner what to work on before the bell.`:`Calling it to your corner…`:DL[this.choice];this.status.textContent!==s&&(this.status.textContent=s)}choose(e){if(!this.visible||this.choice!==null||this.pending!==null)return;let t=EL.find(t=>t.kind===e)?.choice;if(t!==void 0&&this.available?.[t]!==!1&&this.pick(e)){this.frozen=this.shown,this.pending={kind:e,at:this.now()};for(let[t,n]of this.buttons)n.disabled=!0,n.toggleAttribute(`data-picked`,t===e);this.status.textContent=`Calling it to your corner…`}}setVisible(e){if(e!==this.visible){if(this.visible=e,this.element.hidden=!e,this.measuredTop=null,this.padPrevious.clear(),e){let e=PL();for(let t of Object.keys(TL))e?.buttons[Number(t)]?.pressed===!0&&this.padPrevious.add(Number(t));this.padFrame=requestAnimationFrame(()=>this.pollPad())}else cancelAnimationFrame(this.padFrame)}}top(){if(!this.visible)return null;if(this.measuredTop===null){let e=this.element.getBoundingClientRect();if(e.height<=0)return null;this.measuredTop=e.top-(this.element.parentElement?.getBoundingClientRect().top??0)}return this.measuredTop}pollPad(){if(!this.visible)return;let e=PL();if(e!==null)for(let[t,n]of Object.entries(TL)){let r=Number(t),i=e.buttons[r]?.pressed===!0;i&&!this.padPrevious.has(r)&&this.choose(n),i?this.padPrevious.add(r):this.padPrevious.delete(r)}this.padFrame=requestAnimationFrame(()=>this.pollPad())}destroy(){this.setVisible(!1),window.removeEventListener(`keydown`,this.keydown),window.removeEventListener(`resize`,this.resize),this.element.remove()}},IL={invalid_launch:`open Hands from a Discord voice channel with Play now`,cancelled:`the session was cancelled`,authorization_failed:`Discord did not authorize the session`,authorize_failed:`Discord did not authorize the session`,authorize_timeout:`Discord took too long to authorize the session`,sdk_ready_failed:`the Discord client did not respond`,sdk_ready_timeout:`the Discord client took too long to respond`,sdk_authenticate_failed:`Discord did not confirm your identity`,sdk_authenticate_timeout:`Discord took too long to confirm your identity`,sdk_initialization_failed:`the Discord client could not start the activity`,instance_mismatch:`this window belongs to a different activity instance`,bootstrap_failed:`the Hands server could not be reached`,token_failed:`the Hands server rejected the sign-in`,invalid_bootstrap:`the Hands server sent an unexpected reply`,invalid_token_response:`the Hands server sent an unexpected reply`,ticket_unavailable:`the session ticket was already used`,protocol_error:`the server and client disagree on the protocol`,unexpected_error:`something unexpected went wrong`,authentication_timeout:`the connection took too long to authenticate`,authentication_required:`the connection was not authenticated`,invalid_ticket:`the session ticket was rejected`,invalid_request:`the server rejected the request`,invalid_input:`the server rejected an input frame`,input_queue_full:`the server could not keep up with the inputs`,rate_limited:`too many requests were sent; wait a moment`,service_busy:`the server is busy right now`,service_unavailable:`the server is unavailable right now`,upstream_unavailable:`Discord is unavailable right now`,room_closed:`the bout has already ended; use Play now to start another`,room_full:`both seats in this bout are taken`,already_in_room:`you are already in a bout in another channel`,match_not_started:`the bout has not started yet`,connection_replaced:`this seat was taken over by a newer connection`,spectator_read_only:`spectators cannot send input`,server_shutting_down:`the server is restarting`,internal_error:`the server hit an internal error`,not_in_activity:`you are not a participant of this activity`,invalid_activity:`this activity instance is not valid`,invalid_state:`the sign-in state expired; retry`,invalid_guild:`this activity belongs to another server`,persistence_failed:`the result could not be saved`,rematch_unavailable:`the ring could not be cleared for a rematch; use Play now to start another bout`,network_unavailable:`the connection to the Hands server could not be opened`,match_abandoned:`both fighters lost their connection and the bout was called off`};function LL(e){if(e===`client_outdated`)return`Hands was updated. Reload to continue (client_outdated).`;let t=IL[e]??IL[e.replace(/_\d+$/u,``)];return t===void 0?`Unable to continue (${e}).`:`Unable to continue: ${t} (${e}).`}var RL={block:[55,.12,.22],hit:[85,.3,.42],counter_hit:[105,.38,.5],stun:[125,.42,.55],knockdown:[180,.62,.65],parry:[60,.18,.4],body_collapse:[170,.55,.3]},zL={injury:[150,.55,.6],vomit:[90,.15,.45],finish_him:[180,.65,.3],fatality:[180,.65,.65],death:[170,.5,.12]},BL=[120,.65,.5],VL=[35,.2,.35],HL=class{settings;constructor(e){this.settings=e}event(e,t=!1){if(!this.settings().haptics)return;let n=RL[e.kind];n!==void 0&&this.rumble(t?[n[0]*1.6,n[1]+.2,n[2]+.15]:n)}gore(e){if(!this.settings().haptics||e.kind===`death`&&mt(e.cause)!==null)return;this.rumble(zL[e.kind]);let t=this.settings();e.kind===`injury`&&vk(e.injury)!==null&&t.blood===`full`&&!t.reducedMotion&&setTimeout(()=>this.rumble(BL),yk*1e3)}getUpBeat(){this.settings().haptics&&this.rumble(VL)}rumble(e){let t=this.padActuator();if(t===null)this.vibrate(e[0]);else try{Promise.resolve(t.playEffect(`dual-rumble`,{duration:Math.min(180,Math.max(0,e[0])),strongMagnitude:Math.min(.65,Math.max(0,e[1])),weakMagnitude:Math.min(.65,Math.max(0,e[2]))})).catch(()=>void 0)}catch{}}padActuator(){if(typeof navigator.getGamepads!=`function`)return null;let e;try{e=[...navigator.getGamepads.call(navigator)]}catch{return null}let t=e.find(e=>e!==null&&e.connected&&`vibrationActuator`in e)?.vibrationActuator;return t==null||typeof t.playEffect!=`function`?null:t}vibrate(e){if(Ke()&&typeof navigator.vibrate==`function`)try{navigator.vibrate(Math.min(180,Math.max(0,e)))}catch{}}};function UL(e,t){return e.kind===t.kind?e.kind===`punch`&&t.kind===`punch`?e.hand===t.hand&&e.class===t.class&&e.target===t.target&&e.power===t.power:e.kind===`foul`&&t.kind===`foul`?e.foul===t.foul:!0:!1}function WL(e,t,n){if(n<1||e.length>0&&UL(e.at(-1),t))return;let r=e.length-n+1;r>0&&e.splice(0,r),e.push(t)}var GL=class{maximum;queue=[];counter=0;listener=null;constructor(e=1){this.maximum=e}setListener(e){this.listener=e}push(e,t){if(this.maximum<1)return;let n=this.queue.at(-1);if(n!==void 0&&UL(n.action,t)){n.source=e;return}let r={...t,id:`c${this.counter+=1}`},i=this.queue.length-this.maximum+1;i>0&&this.queue.splice(0,i),this.queue.push({action:r,source:e}),this.listener?.(r)}clear(){this.queue.length=0}clearSource(e){let t=this.queue.filter(t=>t.source!==e);this.queue.splice(0,this.queue.length,...t)}drain(e){return this.queue.splice(0,e).map(e=>e.action)}};function KL(e,t,n=.18){let r=Math.hypot(e,t);if(!Number.isFinite(r)||r<=n)return{x:0,y:0};let i=(Math.min(1,r)-n)/(1-n);return{x:e/r*i,y:t/r*i}}var qL=(e,t)=>{let n=Math.atan2(Math.abs(t),Math.abs(e))*180/Math.PI;return n<22.5?`hook`:n<45?`jab`:n<70?`straight`:`uppercut`},JL=class{active=!1;hand=`right`;target=`head`;power=`normal`;peak={x:0,y:0};peakMagnitude=0;update(e,t,n,r){let i=Math.hypot(e,t);if(!this.active&&i>=.55&&Math.abs(e)>=.12)return this.active=!0,this.hand=e<0?`left`:`right`,this.target=n?`body`:`head`,this.power=r?`power`:`normal`,this.peak={x:e,y:t},this.peakMagnitude=i,null;if(!this.active)return null;if(i>this.peakMagnitude&&(this.peak={x:e,y:t},this.peakMagnitude=i),i<=.25){let e={kind:`punch`,hand:this.hand,class:qL(this.peak.x,this.peak.y),target:this.target,power:this.power};return this.reset(),e}return null}reset(){this.active=!1,this.peak={x:0,y:0},this.peakMagnitude=0}},YL=[`jab`,`straight`,`hook`,`uppercut`],XL=(e,t)=>e.buttons[t]?.pressed===!0;function ZL(){let e=navigator.getGamepads;if(typeof e!=`function`)return null;try{return[...e.call(navigator)].find(e=>e!==null&&e.connected&&e.mapping===`standard`)??null}catch{return null}}var QL=class{maximumQueue;sharedActions;gesture=new JL;queue=[];previous=new Set;selectorConsumed=new Map;raf=0;currentId=null;moveX=0;moveY=0;defense=`none`;knockdown=!1;enabled=!0;trigger=!1;heldListener=null;disconnect=e=>{e.gamepad.id===this.currentId&&this.reset()};constructor(e=1,t){this.maximumQueue=e,this.sharedActions=t,window.addEventListener(`gamepaddisconnected`,this.disconnect),this.raf=requestAnimationFrame(()=>this.poll())}onHeldChange(e){this.heldListener=e}push(e){this.sharedActions===void 0?WL(this.queue,e,this.maximumQueue):this.sharedActions.push(`gamepad`,e)}poll(){if(!this.enabled){this.reset(),this.schedulePoll();return}let e=ZL();if(e===null){this.currentId!==null&&this.reset(),this.schedulePoll();return}this.currentId!==null&&this.currentId!==e.id&&this.reset(),this.currentId=e.id;let t=KL(e.axes[0]??0,e.axes[1]??0),n=Math.round(t.x*1e3),r=Math.round(-t.y*1e3),i=XL(e,4)?`guard_high`:XL(e,5)?`guard_low`:`none`,a=n!==this.moveX||r!==this.moveY||i!==this.defense;this.moveX=n,this.moveY=r,this.defense=i,a&&this.heldListener?.(),this.trigger=XL(e,7);let o=this.gesture.update(e.axes[2]??0,e.axes[3]??0,XL(e,6),this.trigger);o!==null&&this.push(o);let s=YL.some((t,n)=>XL(e,n)&&!this.previous.has(n));for(let t of[14,15]){let n=XL(e,t),r=this.previous.has(t);this.knockdown?(n&&!r&&this.push({kind:t===14?`get_up_left`:`get_up_right`}),this.selectorConsumed.delete(t)):n?(r||this.selectorConsumed.set(t,!1),s&&this.selectorConsumed.set(t,!0)):r&&(this.selectorConsumed.get(t)===!1&&this.push({kind:t===14?`slip_left`:`slip_right`}),this.selectorConsumed.delete(t))}for(let t=0;tthis.poll())}setKnockdown(e){this.knockdown=e}get powerHeld(){return this.enabled&&this.trigger}setEnabled(e){this.enabled=e,e||this.reset()}frame(e=4){let t=this.sharedActions===void 0?this.queue.splice(0,e):[];return{moveX:this.moveX,moveY:this.moveY,defense:this.defense,actions:t}}reset(){this.currentId=null,this.moveX=this.moveY=0,this.defense=`none`,this.trigger=!1,this.queue.length=0,this.sharedActions?.clearSource(`gamepad`),this.previous.clear(),this.selectorConsumed.clear(),this.gesture.reset()}destroy(){cancelAnimationFrame(this.raf),window.removeEventListener(`gamepaddisconnected`,this.disconnect),this.reset()}},$L=new Set([`KeyW`,`KeyA`,`KeyS`,`KeyD`,`KeyQ`,`KeyE`]),eR=new Set([`ShiftLeft`,`ShiftRight`,`AltLeft`,`AltRight`]),tR=class{target;maximumQueue;sharedActions;held=new Set;queue=[];enabled=!0;altFlag=!1;heldListener=null;keydown=e=>{if(this.altFlag=e.altKey,!je.has(e.code))return;if(!this.enabled){this.hold(e.code,e.repeat);return}if(e.preventDefault(),this.hold(e.code,e.repeat),e.repeat)return;let t=Ee[e.code];if(t!==void 0)this.push({kind:`punch`,hand:t[0],class:t[1],target:this.hasShift(e)?`body`:`head`,power:this.alt?`power`:`normal`});else{let t=De[e.code];t!==void 0&&(t.kind!==`foul`||this.hasShift(e))&&this.push(t)}};keyup=e=>{this.altFlag=e.altKey,e.code===`MetaLeft`||e.code===`MetaRight`?this.letGo(e=>!eR.has(e)):je.has(e.code)&&(this.enabled&&e.preventDefault(),this.letGo(t=>t===e.code))};visibility=()=>{document.hidden&&this.reset()};blur=()=>this.reset();constructor(e=window,t=1,n){this.target=e,this.maximumQueue=t,this.sharedActions=n,e.addEventListener(`keydown`,this.keydown),e.addEventListener(`keyup`,this.keyup),e.addEventListener(`blur`,this.blur),document.addEventListener(`visibilitychange`,this.visibility)}onHeldChange(e){this.heldListener=e}hold(e,t){t&&this.held.has(e)||(this.held.delete(e),this.held.add(e),$L.has(e)&&this.heldListener?.())}letGo(e){let t=!1;for(let n of this.held)e(n)&&(this.held.delete(n),t||=$L.has(n));t&&this.heldListener?.()}axis(e,t){let n=0;for(let r of this.held)r===e?n=1:r===t&&(n=-1);return n}hasShift(e){return e.shiftKey||this.held.has(`ShiftLeft`)||this.held.has(`ShiftRight`)}get alt(){return this.altFlag||this.held.has(`AltLeft`)||this.held.has(`AltRight`)}get powerHeld(){return this.enabled&&this.alt}push(e){this.sharedActions===void 0?WL(this.queue,e,this.maximumQueue):this.sharedActions.push(`keyboard`,e)}setEnabled(e){this.enabled=e,e||(this.queue.length=0,this.sharedActions?.clearSource(`keyboard`))}frame(e=4){if(!this.enabled)return{moveX:0,moveY:0,defense:`none`,actions:[]};let t=this.axis(`KeyD`,`KeyA`)*1e3,n=this.axis(`KeyW`,`KeyS`)*1e3;t!==0&&n!==0&&(t=Math.sign(t)*707,n=Math.sign(n)*707);let r=this.axis(`KeyQ`,`KeyE`);return{moveX:t,moveY:n,defense:r>0?`guard_high`:r<0?`guard_low`:`none`,actions:this.sharedActions===void 0?this.queue.splice(0,e):[]}}reset(){this.letGo(()=>!0),this.altFlag=!1,this.queue.length=0,this.sharedActions?.clearSource(`keyboard`)}destroy(){this.reset(),this.target.removeEventListener(`keydown`,this.keydown),this.target.removeEventListener(`keyup`,this.keyup),this.target.removeEventListener(`blur`,this.blur),document.removeEventListener(`visibilitychange`,this.visibility)}};function nR(e,t,n,r){let i=e=>Math.max(-1e3,Math.min(1e3,Math.round(e)))||0;return{moveX:i(-r*e+n*t),moveY:i(-n*e-r*t)}}var rR=(e,t,n,r)=>Math.abs(Math.atan2(e*r-t*n,e*n+t*r)),iR=Math.PI/4-.01,aR=Math.PI/8,oR=300,sR=class{actions=new GL(1);keyboard;gamepad;touch=null;reset=()=>{this.keyboard.reset(),this.gamepad.reset(),this.touch?.reset(),this.actions.clear(),this.gamepad.setKnockdown(!1)};heldChanged=()=>{let e=this.held(),t=this.sentHeld,n=e.moveX!==0||e.moveY!==0,r=t.moveX!==0||t.moveY!==0;(e.defense!==t.defense||n!==r||n&&(rR(e.moveX,e.moveY,t.moveX,t.moveY)>aR||Math.abs(Math.hypot(e.moveX,e.moveY)-Math.hypot(t.moveX,t.moveY))>oR))&&(this.sentHeld=e,this.heldListener?.())};constructor(){this.keyboard=new tR(window,1,this.actions),this.gamepad=new QL(1,this.actions),this.keyboard.onHeldChange(this.heldChanged),this.gamepad.onHeldChange(this.heldChanged),window.addEventListener(`blur`,this.reset),document.addEventListener(`visibilitychange`,this.visibility)}visibility=()=>{document.hidden&&this.reset()};attachTouch(e,t=Ke()){this.touch===null&&t&&(this.touch=new Ye(e,this.actions),this.touch.onHeldChange(this.heldChanged))}setActive(e,t=e){this.keyboard.setEnabled(e),this.gamepad.setEnabled(e),this.touch?.setEnabled(e,t)}setKnockdown(e){this.gamepad.setKnockdown(e),this.touch?.setKnockdown(e)}setGetUpPrompt(e){this.touch?.setGetUpPrompt(e)}onAction(e){this.actions.setListener(e)}get powerHeld(){return this.keyboard.powerHeld||this.gamepad.powerHeld||this.touch?.powerHeld===!0}onHeldChange(e){this.heldListener=e}heldListener=null;sentHeld={moveX:0,moveY:0,defense:`none`};setViewForward(e){this.viewForward=e}viewForward=null;latched=null;held(){let e=this.keyboard.frame(0),t=this.gamepad.frame(0),n=this.touch?.frame()??null,r=t.moveX===0?n!==null&&n.moveX!==0?n.moveX:e.moveX:t.moveX,i=t.moveY===0?n!==null&&n.moveY!==0?n.moveY:e.moveY:t.moveY,a=t.defense===`none`?n!==null&&n.defense!==`none`?n.defense:e.defense:t.defense;if(r===0&&i===0)return this.latched=null,{moveX:r,moveY:i,defense:a};let o=this.viewForward?.()??null,s=this.latched;s===null||rR(r,i,s.moveX,s.moveY)>iR?this.latched={moveX:r,moveY:i,forward:o===null?null:{x:o.x,z:o.z}}:s.forward!==null&&o!==null&&(s.forward.x=o.x,s.forward.z=o.z);let c=this.latched.forward;if(c===null)return{moveX:r,moveY:i,defense:a};let l=nR(r,i,c.x,c.z);return{moveX:l.moveX,moveY:l.moveY,defense:a}}frame(){return{...this.held(),actions:this.actions.drain(4)}}destroy(){window.removeEventListener(`blur`,this.reset),document.removeEventListener(`visibilitychange`,this.visibility),this.keyboard.destroy(),this.gamepad.destroy(),this.touch?.destroy()}},cR=(e,t,n)=>e+(t-e)*n,lR=(e,t,n)=>({...t,x:cR(e.x,t.x,n),y:cR(e.y,t.y,n),facing:cR(e.facing,t.facing,n),facing_x:cR(e.facing_x,t.facing_x,n),facing_y:cR(e.facing_y,t.facing_y,n),velocity_x:cR(e.velocity_x,t.velocity_x,n),velocity_y:cR(e.velocity_y,t.velocity_y,n),stamina:cR(e.stamina,t.stamina,n),maximum_stamina:cR(e.maximum_stamina,t.maximum_stamina,n),conditioning:cR(e.conditioning,t.conditioning,n),guard:cR(e.guard,t.guard,n),poise:cR(e.poise,t.poise,n)}),uR=(e,t,n)=>({...t,x:cR(e.x,t.x,n),y:cR(e.y,t.y,n),facing_x:cR(e.facing_x,t.facing_x,n),facing_y:cR(e.facing_y,t.facing_y,n),velocity_x:cR(e.velocity_x,t.velocity_x,n),velocity_y:cR(e.velocity_y,t.velocity_y,n)}),dR=1.5,fR=6,pR=.5,mR=2500,hR=1,gR=.04,_R=100,vR=.01,yR=4,bR=1500,xR=class{maximum;tickRate;initialDelayTicks;snapshots=[];offsetTicks=null;delayTicks;lastStarvationMs=-1/0;lastFrameMs=null;behindPushes=0;needs=[];arrivals=[];constructor(e=8,t=30,n=2){this.maximum=e,this.tickRate=t,this.initialDelayTicks=n,this.delayTicks=n}get interpolationDelayTicks(){return this.delayTicks}push(e,t){let n=this.snapshots.at(-1);if(n!==void 0&&e.tick<=n.tick)return!1;if(this.snapshots.push(e),this.snapshots.length>this.maximum&&this.snapshots.shift(),t!==void 0&&Number.isFinite(t)){let n=e.tick-t*this.tickRate/1e3;for(this.offsetTicks!==null&&n=yR&&this.restartClock(),this.offsetTicks===null?(this.offsetTicks=n,this.need(t,this.initialDelayTicks)):this.offsetTicks=Math.max(n,this.offsetTicks-vR),this.need(t,this.offsetTicks-n+hR);this.arrivals.length>0&&this.arrivals.at(-1).sample<=n;)this.arrivals.pop();this.arrivals.push({atMs:t,sample:n})}return!0}resync(){this.restartClock()}restartClock(){this.offsetTicks=null,this.delayTicks=this.initialDelayTicks,this.lastStarvationMs=-1/0,this.behindPushes=0,this.needs.length=0,this.arrivals.length=0}need(e,t){for(;this.needs.length>0&&this.needs.at(-1).ticks<=t;)this.needs.pop();this.needs.push({atMs:e,ticks:t})}recentNeed(e){for(;this.needs.length>0&&this.needs[0].atMs<=e-mR;)this.needs.shift();return this.needs[0]?.ticks??0}latest(){return this.snapshots.at(-1)??null}clockTick(e){let t=this.latest();if(t===null)return 0;for(;this.arrivals.length>1&&this.arrivals[0].atMs<=e-bR;)this.arrivals.shift();let n=this.arrivals[0];return n===void 0?t.tick:Math.min(t.tick+fR,e*this.tickRate/1e3+n.sample)}renderTick(e){let t=this.latest();if(t===null)return 0;let n=this.snapshots[0].tick;if(this.offsetTicks===null)return Math.max(n,t.tick-1);let r=this.lastFrameMs===null?0:Math.min(_R,Math.max(0,e-this.lastFrameMs));this.lastFrameMs=e;let i=e*this.tickRate/1e3+this.offsetTicks-this.delayTicks;if(i>t.tick+.25)e-this.lastStarvationMs>250&&(this.lastStarvationMs=e,this.delayTicks=Math.min(fR,this.delayTicks+pR),this.need(e,this.delayTicks));else{let t=Math.max(dR,this.recentNeed(e));this.delayTicks>t&&(this.delayTicks=Math.max(t,this.delayTicks-gR*r*this.tickRate/1e3))}return Math.min(t.tick,Math.max(n,i))}sample(e){let t=this.snapshots.findIndex(t=>t.tick>=e);if(t<=0)return this.snapshots[Math.max(0,t)]??this.latest();let n=this.snapshots[t-1],r=this.snapshots[t];if(n.phase!==r.phase||n.fighters.some((e,t)=>e.knockdowns!==r.fighters[t]?.knockdowns))return r;let i=Math.max(0,Math.min(1,(e-n.tick)/Math.max(1,r.tick-n.tick)));return{...r,fighters:[lR(n.fighters[0],r.fighters[0],i),lR(n.fighters[1],r.fighters[1],i)],referee:uR(n.referee,r.referee,i)}}clear(){this.snapshots.length=0,this.offsetTicks=null,this.arrivals.length=0}},SR=class{highest=-1;accept(e){let t=new Set,n=e.filter(e=>e.event_id<=this.highest||t.has(e.event_id)?!1:(t.add(e.event_id),!0)).sort((e,t)=>e.event_id-t.event_id);for(let e of n)this.highest=Math.max(this.highest,e.event_id);return n}reset(){this.highest=-1}};function CR(e=window.location){let t=new URL(`/api/hands/ws`,e.origin);if(e.protocol===`https:`)t.protocol=`wss:`;else if(e.protocol===`http:`&&[`localhost`,`127.0.0.1`,`::1`].includes(e.hostname))t.protocol=`ws:`;else throw Error(`insecure_websocket_origin`);return t.search=``,t.hash=``,t.toString()}var wR=1,TR={moveX:0,moveY:0,defense:`none`,actions:[]},ER=33,DR=8,OR=50,kR=20,AR=10,jR=2048;function MR(e){try{return mn(e)}catch(t){let n;try{let t=jt(e);n=typeof t==`object`&&t&&`version`in t?t.version:void 0}catch{}throw typeof n==`number`&&n!==7?new TA(`client_outdated`,!0):t}}var NR=class{getInput;callbacks;makeSocket;now;socket=null;reconnectTicket;reconnectTimer=null;opponentPauseTimer=null;inputTimer=null;reconnectDeadline=0;opponentPauseDeadline=0;opponentPaused=!1;attempts=0;nextSequence=0;playerId=null;sentAt=new Map;actionSequences=new Map;latencyMs=null;serverTick=0;role=null;active=!1;resting=!1;boutStarted=!1;disposed=!1;terminal=!1;inputSuppressed=!1;pointerFocus=!1;listenersBound=!1;lastInputSentAt=-1/0;sendTimes=[];edgeSendTimes=[];heldSendTimes=[];heldTimer=null;pressWaiting=!1;constructor(e,t,n,r=e=>new WebSocket(e),i=()=>performance.now()){this.getInput=t,this.callbacks=n,this.makeSocket=r,this.now=i,this.reconnectTicket=e}start(){this.disposed||this.listenersBound||(this.bindInputListeners(),this.connect(),!this.disposed&&!this.terminal&&(this.inputTimer=window.setInterval(()=>this.periodicFlush(),ER)))}bindInputListeners(){this.listenersBound=!0,window.addEventListener(`blur`,this.onInputLoss),window.addEventListener(`focus`,this.onInputRegain),window.addEventListener(`pointerdown`,this.onPagePointer,!0),document.addEventListener(`visibilitychange`,this.onVisibilityChange)}setActive(e){this.setInputActive(e)}setInputActive(e){let t=this.active;this.active=e,e?this.boutStarted=!0:t&&this.sendInput(TR,!0)}notifyAction(){this.pressWaiting=!0,this.now()-(this.edgeSendTimes.at(-1)??-1/0)=kR||this.flushInput()&&this.edgeSendTimes.push(this.lastInputSentAt)}notifyHeld(){let e=DR-(this.now()-Math.max(this.edgeSendTimes.at(-1)??-1/0,this.heldSendTimes.at(-1)??-1/0));e>0?this.heldTimer??=window.setTimeout(()=>{this.heldTimer=null,this.notifyHeld()},e):this.withinLastSecond(this.heldSendTimes)>=AR||this.sendsInLastSecond()>=40||this.flushInput()&&this.heldSendTimes.push(this.lastInputSentAt)}periodicFlush(){this.now()-Math.max(this.edgeSendTimes.at(-1)??-1/0,this.heldSendTimes.at(-1)??-1/0)=40||this.flushInput()}sendsInLastSecond(){return this.withinLastSecond(this.sendTimes)}withinLastSecond(e){let t=this.now()-1e3;for(;e.length>0&&e[0]<=t;)e.shift();return e.length}onInputLoss=()=>{this.inputSuppressed||(this.sendInput(TR,this.boutStarted),this.inputSuppressed=!0,this.pointerFocus=!1)};onInputRegain=()=>{!document.hidden&&document.hasFocus()&&(this.inputSuppressed=!1)};onPagePointer=()=>{if(!document.hidden&&(this.pointerFocus=!0,this.inputSuppressed=!1,!document.hasFocus()))try{window.focus()}catch{}};onVisibilityChange=()=>{document.hidden?this.onInputLoss():this.onInputRegain()};connect(){if(this.disposed||this.terminal)return;let e=this.reconnectTicket;if(e===null){this.terminal=!0,this.stopInputLifecycle(),this.callbacks.onFreshAuth();return}let t;try{t=this.makeSocket(CR())}catch{this.terminal=!0,this.stopInputLifecycle(),this.callbacks.onFatal(`network_unavailable`);return}this.socket=t,t.binaryType=`arraybuffer`,t.onopen=()=>{if(!(this.socket!==t||this.disposed))try{t.send(JSON.stringify({version:7,type:`authenticate`,ticket:e})),this.reconnectTicket=null}catch{this.handleClose(t)}},t.onmessage=e=>this.handleMessage(t,e),t.onerror=()=>void 0,t.onclose=()=>this.handleClose(t)}handleMessage(e,t){if(!(this.socket!==e||this.disposed||this.terminal))try{if(typeof t.data!=`string`&&!(t.data instanceof ArrayBuffer))throw Error(`unsupported_frame`);let n=MR(t.data);if(this.applyMessage(n),n.type===`ticket`){try{e.send(JSON.stringify({version:7,type:`ticket_ack`,refresh_id:n.refresh_id}))}catch{this.handleClose(e)}return}this.callbacks.onMessage(n),n.type===`error`?this.terminate(n.code,e):n.type===`final`&&(this.terminal=!0,this.clearTransportReconnect(!0),this.clearOpponentPause(!0),this.stopInputLifecycle(),this.socket===e&&(this.socket=null),e.onopen=e.onmessage=e.onclose=e.onerror=null,e.close(1e3,`complete`))}catch(e){this.callbacks.onFatal(jA(e)),this.dispose()}}applyMessage(e){if(e.type===`welcome`){if(e.reconnect_ticket===void 0)throw Error(`missing_reconnect_ticket`);this.reconnectTicket=e.reconnect_ticket,this.serverTick=e.server_tick;let t=this.role===`spectator`&&e.role===`fighter`;this.role=e.role,this.playerId=e.role===`fighter`?e.player_id:null,this.sentAt.clear(),e.role===`fighter`?this.nextSequence=Math.max(this.nextSequence,e.next_sequence):this.stopInputLifecycle(),t&&(this.listenersBound||this.bindInputListeners(),this.inputTimer??=window.setInterval(()=>this.periodicFlush(),ER)),this.attempts=0,this.clearTransportReconnect(!0)}else e.type===`ticket`?this.reconnectTicket=e.reconnect_ticket:e.type===`snapshot`?(this.serverTick=Math.max(this.serverTick,e.payload.tick),this.setInputActive([`countdown`,`fight`,`knockdown`,`foul_recovery`,`referee_down`,`finish`].includes(e.payload.phase)),this.resting=e.payload.phase===`rest`,this.observeAcknowledgement(e.payload)):e.type===`paused`?(this.setInputActive(!1),this.startOpponentPause(e.grace_ms)):e.type===`resumed`?(this.setInputActive(!0),this.attempts=0,this.clearOpponentPause(!0)):e.type===`select`?this.clearOpponentPause(!0):e.type===`ready`?(this.clearOpponentPause(!0),this.setInputActive(!0)):e.type===`waiting`?(this.clearOpponentPause(!0),this.setInputActive(!1)):(e.type===`final`||e.type===`error`)&&(this.active=!1,this.clearOpponentPause(!0))}terminate(e,t){this.terminal=!0,this.active=!1,this.clearTransportReconnect(!0),this.clearOpponentPause(!0),this.stopInputLifecycle(),this.callbacks.onFatal(e),this.socket===t&&(this.socket=null,t.onopen=t.onmessage=t.onclose=t.onerror=null,t.close(1e3,`terminal`))}handleClose(e){if(this.socket!==e||(this.socket=null,this.active=!1,this.disposed||this.terminal))return;if(this.reconnectTicket===null){this.terminal=!0,this.stopInputLifecycle(),this.callbacks.onFreshAuth();return}this.clearOpponentPause(!1),this.reconnectDeadline===0&&(this.reconnectDeadline=this.now()+2e4);let t=Math.max(0,this.reconnectDeadline-this.now());if(this.callbacks.onReconnect(t),t<=0){this.terminal=!0,this.stopInputLifecycle(),this.callbacks.onFreshAuth();return}let n=Math.min(3e3,250*2**Math.min(this.attempts,4),t);this.attempts+=1,this.reconnectTimer=window.setTimeout(()=>{this.reconnectTimer=null,this.callbacks.onReconnect(Math.max(0,this.reconnectDeadline-this.now())),this.connect()},n)}requestCpu(e){let t=this.socket;if(this.role!==`fighter`||this.disposed||this.terminal||t?.readyState!==wR)return!1;try{return t.send(bn(e)),!0}catch{return this.handleClose(t),!1}}chooseStyle(e,t){let n=this.socket;if(this.role!==`fighter`||this.disposed||this.terminal||n?.readyState!==wR)return!1;try{return n.send(vn(e,t)),!0}catch{return this.handleClose(n),!1}}get inputLatencyMs(){return this.latencyMs}sequenceOf(e){return this.actionSequences.get(e)??null}observeAcknowledgement(e){if(this.playerId===null)return;let t=e.fighters.find(e=>e.player_id===this.playerId);if(t===void 0||t.last_input_sequence<0)return;let n=this.sentAt.get(t.last_input_sequence);if(n!==void 0){let e=Math.max(0,this.now()-n);this.latencyMs=this.latencyMs===null?e:this.latencyMs*.8+e*.2}for(let e of this.sentAt.keys())e<=t.last_input_sequence&&this.sentAt.delete(e)}sendInput(e,t=!1){return(this.active||t)&&this.transmit(e)}sendCornerChoice(e){return this.resting?this.transmit({moveX:0,moveY:0,defense:`none`,actions:[{kind:e}]}):!1}transmit(e){let t=this.socket;if(this.role!==`fighter`||this.disposed||this.terminal||t?.readyState!==wR)return!1;try{let n=e.actions.slice(0,4);t.send(_n(this.nextSequence,this.serverTick,{...e,actions:n})),this.sentAt.set(this.nextSequence,this.now()),this.sentAt.size>128&&this.sentAt.delete(this.sentAt.keys().next().value);for(let e of n)e.id!==void 0&&this.actionSequences.set(e.id,this.nextSequence);for(;this.actionSequences.size>64;)this.actionSequences.delete(this.actionSequences.keys().next().value);return this.nextSequence+=1,this.lastInputSentAt=this.now(),this.sendTimes.push(this.lastInputSentAt),!0}catch{return this.handleClose(t),!1}}flushInput(){return this.inputSuppressed||document.hidden||!(this.pointerFocus||document.hasFocus())||this.sendsInLastSecond()>=OR||(this.socket?.bufferedAmount??0)>jR||!this.sendInput(this.getInput())?!1:(this.pressWaiting=!1,!0)}startOpponentPause(e){this.clearOpponentPause(!1),this.opponentPaused=!0,this.opponentPauseDeadline=this.now()+e,this.callbacks.onReconnect(e),e>0&&this.scheduleOpponentPauseTick()}scheduleOpponentPauseTick(){let e=Math.max(0,this.opponentPauseDeadline-this.now());e<=0?(this.opponentPauseDeadline=0,this.callbacks.onReconnect(0)):this.opponentPauseTimer=window.setTimeout(()=>{this.opponentPauseTimer=null;let e=Math.max(0,this.opponentPauseDeadline-this.now());this.callbacks.onReconnect(e),e>0?this.scheduleOpponentPauseTick():this.opponentPauseDeadline=0},Math.min(250,e))}clearOpponentPause(e){let t=this.opponentPaused;this.opponentPaused=!1,this.opponentPauseDeadline=0,this.opponentPauseTimer!==null&&(clearTimeout(this.opponentPauseTimer),this.opponentPauseTimer=null),e&&t&&this.callbacks.onReconnect(0)}cancelReconnect(){this.reconnectTimer!==null&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null)}clearTransportReconnect(e){let t=this.reconnectDeadline!==0;this.reconnectDeadline=0,this.cancelReconnect(),e&&t&&this.callbacks.onReconnect(0)}stopInputLifecycle(){this.inputTimer!==null&&(clearInterval(this.inputTimer),this.inputTimer=null),this.heldTimer!==null&&(clearTimeout(this.heldTimer),this.heldTimer=null),this.listenersBound&&=(window.removeEventListener(`blur`,this.onInputLoss),window.removeEventListener(`focus`,this.onInputRegain),window.removeEventListener(`pointerdown`,this.onPagePointer,!0),document.removeEventListener(`visibilitychange`,this.onVisibilityChange),!1)}dispose(){if(this.disposed)return;this.disposed=!0,this.active=!1,this.reconnectTicket=null,this.clearTransportReconnect(!0),this.clearOpponentPause(!0),this.stopInputLifecycle();let e=this.socket;this.socket=null,e!==null&&(e.onopen=e.onmessage=e.onclose=e.onerror=null,e.close(1e3,`teardown`))}},PR={play:`CALLAHAN`,colour:`OKAFOR`,announcer:`RING ANNOUNCER`},FR=.3,IR=.9,LR=.25,RR=2.6,zR=4.5,BR=12,VR=.8,HR=6,UR=9,WR=6,GR=42,KR=8,qR=15,JR=10,YR=[60,480,640],XR=500,ZR=.2,QR=.3,$R=120,ez={knockdown:[`Down goes {b}!`,`{a} drops {b}!`,`{b} is down! What a shot from {a}!`,`Down goes {b}! {a} found the chin!`],knockdownAgain:[`{b} is down again!`,`Down for the second time! {b} is in deep trouble!`,`{a} puts {b} down again!`],knockdownCounter:[`Down goes {b}, off a perfect counter!`,`{a} times it, and {b} is down!`],struggle:[`{b} is struggling to get up...`,`{b} is trying to beat the count...`,`Can {b} get up?`],upLate:[`{b} beats the count at {n}!`,`Up at {n}! {b} is still in this!`,`{b} makes it up at {n}, but the legs look heavy.`],upEarly:[`{b} is up at {n}.`,`{b} is back up at the count of {n}.`,`Up at {n}. {b} wants to keep fighting.`],finishCall:[`{a} has to go for the finish now.`,`{b} needs to survive the next minute.`,`{b} has to hold and clear the head.`],hurt:[`{b} is hurt!`,`{a} has {b} in trouble!`,`{b}'s legs just buckled!`,`Big shot! {b} is wobbled!`,`{b} is rocked! Keep the pressure on, {a}!`],hurtBadly:[`{b} is out on their feet!`,`{b} is in all sorts of trouble!`,`{b} is badly hurt!`],guardBreak:[`{a} blasts right through the guard!`,`The guard is gone! {b} can't keep those hands up!`,`{a} breaks the guard down!`],counter:[`What a counter from {a}!`,`{a} times it perfectly! A {punch} on the counter!`,`{b} walked right into that {punch}!`,`Counter {punch} from {a}! Beautiful timing.`],bigShot:[`Big {punch} from {a}!`,`{a} lands a thudding {punch}!`,`That {punch} landed flush!`,`Huge {punch}! {b} felt that one.`],cut:[`{b} is cut over the {side} eye.`,`There's blood now. A cut over {b}'s {side} eye.`,`That's opened a cut over the {side} eye of {b}.`],cutWorse:[`That cut over {b}'s {side} eye is getting worse.`,`The blood is pouring from that {side} eye now.`,`{b} is bleeding badly from the {side} eye.`],cutGushing:[`That cut is gushing now! {b} is covered in it.`,`{b}'s face is a crimson mask, and nobody is stopping this!`],eyeSwelling:[`{b}'s {side} eye is swelling badly.`,`{b} is having trouble seeing out of that {side} eye.`],eyeShut:[`{b}'s {side} eye has closed completely!`,`That {side} eye is shut! {b} can't see them coming from that side.`,`{b} is fighting with one eye now.`],blindSide:[`{a} is working the blind side.`,`{b} never saw that one. Nothing is getting through that {side} eye.`,`Smart from {a}, punching where {b} can't see.`],parried:[`{a} picks it off and {b} is wide open!`,`Beautiful parry from {a}! {b} is off balance.`,`{a} slaps it away and {b} is left stranded.`],bodyCollapse:[`Body shot! {b} is going down!`,`{a} digs to the body and {b} is folding!`,`Oh, that body shot! {b} is in agony!`],knockdownBody:[`Down goes {b} from the body shot!`,`{b} takes a knee! That body shot took everything out!`,`{a} goes downstairs and {b} can't take it!`],cornerCut:[`{a}'s cutman is working on that cut.`,`They're working hard on the cut in {a}'s corner.`],cornerSwelling:[`{a}'s corner is getting the swelling down.`,`Ice and the enswell on that eye in {a}'s corner.`],cornerBreath:[`{a}'s corner wants the breath back first. Big drink of water.`,`{a} is told to breathe and settle down.`],combo:[`A three-punch combination from {a}!`,`{a} puts it together beautifully.`,`Lovely combination from {a}!`],unanswered:[`Five unanswered punches from {a}!`,`{a} is unloading! {b} has to fire back!`,`{b} is just covering up as {a} lets the hands go!`],jab:[`{a}'s jab is finding a home.`,`Stiff jab from {a}, and another.`,`{a} keeps popping that jab in {b}'s face.`],body:[`{a} is going to work on the body.`,`{a} keeps digging to the body.`,`Another one downstairs from {a}.`],payoff:[`The body work is paying off. {b} is slowing down.`,`Those body shots are taking it out of {b}.`,`{a} has invested in the body, and {b} is paying for it now.`],tiring:[`{b} is running on empty.`,`{b} is breathing hard. Those punches have nothing on them.`,`{b} has punched out. The tank is empty.`],takeover:[`{a} is taking over this round.`,`This is all {a} right now.`,`{a} is in complete control.`],clinch:[`{a} ties {b} up.`,`{a} grabs hold.`,`They're tied up in the clinch.`],holdingOn:[`{a} is hurt and holding on!`,`{a} grabs on for dear life!`,`Smart from {a}, holding on to clear the head.`],refBreak:[`The referee breaks them.`,`The referee steps in to separate them.`,`Break! The referee pulls them apart.`],refHit:[`{a} just tagged the referee!`,`Oh no, {a} has caught the referee!`,`That one landed on the referee!`],refDown:[`The referee is down! {a} has killed the referee!`,`Oh my goodness, the referee isn't moving! I think he's dead!`,`{a} has flattened the official for good! Absolute chaos!`],refBledOut:[`The referee has collapsed! He's bled out right there in the ring!`,`The referee goes down! He's lost too much blood!`],noRef:[`Nobody left to break them up!`,`No referee to part them, so they just let go.`],taunt:[`{a} drops the hands and invites {b} in!`,`Showboating from {a}! The crowd loves it.`,`{a} is taunting {b} now!`,`{a} sticks the chin out. Come and get it!`],lowBlow:[`Low blow from {a}! The referee steps in.`,`That's below the belt! {b} is doubled over.`,`{a} goes low, and the referee calls time.`],headbutt:[`Headbutt from {a}! The referee calls time.`,`{a} leads with the head! That's a foul.`],warning:[`A warning for {a}. One more and it costs a point.`,`The referee warns {a}. That can't happen again.`],deduction:[`The referee takes a point from {a}!`,`That costs {a} a point!`,`Point deduction! {a} has been warned enough.`],resume:[`And we're back underway.`,`Time in. Let's box.`],box:[`The referee waves them on. {b} has to survive now.`,`Box! {a} will be looking to finish it.`,`{b} has convinced the referee. Here comes {a}.`],evade:[`{a} slips it! Lovely head movement.`,`{b} misses, and {a} was never there.`,`Great defence from {a}.`],parry:[`{a} picks that off with the gloves.`,`{a} parries it away.`,`Tight defence from {a}.`],whiff:[`{a} misses wildly with the {punch}.`,`Big swing and a miss from {a}.`,`{a} throws everything into that {punch} and hits nothing but air.`],southpaw:[`{a} switches to southpaw.`,`{a} turns southpaw now.`],orthodox:[`{a} goes back to orthodox.`,`{a} switches back to orthodox.`],roundStart:[`Round {r}. Here we go.`,`We're underway in round {r}.`,`Round {r} is on.`],roundEnd:[`That's the bell to end round {r}.`,`The bell ends round {r}.`,`And that's round {r} in the books.`],savedByBell:[`Saved by the bell! {b} was in real trouble.`,`{b} is saved by the bell!`,`The bell rescues {b}!`],finalBell:[`That's the final bell!`,`The final bell! We go to the scorecards.`],summary:[`Round {r}: {a} landed {x} of {y}, {b} {z} of {w}.`],roundFor:[`I had that round for {a}.`,`{a} took that round.`,`That was {a}'s round.`],roundBig:[`The knockdown makes that a big round for {a}.`,`{a} wins that round big with the knockdown.`],roundClose:[`Close round. That one could go either way.`,`Tough round to score.`,`Nothing between them in that round.`],pullingAway:[`{a} is pulling away on the cards.`,`{b} needs something big. {a} is building a lead.`],ko:[`It's all over! {a} wins by knockout!`,`{b} can't beat the count! {a} wins it!`,`That's it! {a} has knocked out {b}!`],flashKo:[`Lights out! {b} is out cold!`,`One punch, and it's over! {a} wins!`,`Good night! {a} ends it with one shot!`],tko:[`Three knockdowns, and it's over! {a} wins!`,`The referee waves it off! {a} wins by stoppage!`],disqualified:[`{b} is disqualified!`,`That's it! {b} has been thrown out!`],forfeit:[`{b} has left the ring. {a} wins by forfeit.`],replay:[`Here it is again.`,`Let's see that one more time.`,`Watch {a} set it up...`],injBrokenNose:[`{b}'s nose is now mostly a suggestion.`,`That nose is broken. It is pointing at the exit, and so should {b}.`,`{a} has moved {b}'s nose to a different part of his face.`],injBrokenJaw:[`{b}'s jaw is broken. It is hanging off his face like a drawer left open.`,`That jaw has gone sideways. {b} will be eating through a straw, if he lives.`,`You can hear {b}'s jaw clicking from up here. That is not a good sound.`],injJawTorn:[`That is his jaw in the third row.`,`{a} has torn {b}'s jaw clean off! Somebody at ringside just caught a souvenir.`,`{b} has no lower jaw. His tongue is just hanging there like a necktie.`],injEyeOut:[`{b}'s {side} eye is out of his head! It is swinging on the nerve like a yo-yo.`,`The {side} eye has popped its socket. It is looking at {b}'s own cheek.`,`{a} has punched {b}'s {side} eye clean out. He can see his own shoes with it.`],injEarTorn:[`That is {b}'s {side} ear on the canvas. Somebody just trod on it.`,`{a} has taken the {side} ear clean off. {b} did not want to hear this anyway.`,`The {side} ear is gone. I think it is stuck to {a}'s glove.`],injFaceFlayed:[`The {side} half of {b}'s face has come off like a wet sock.`,`I can see {b}'s teeth through his {side} cheek. All of them.`,`{a} has peeled {b}'s face. That is muscle. That is bone. That is my lunch coming back up.`],injSkull:[`{b}'s skull has split open. That is his brain. I can see it thinking.`,`The top of {b}'s head is open like a boiled egg, and he is still standing.`,`That is brain, folks. One more upstairs and {b} forgets everything, permanently.`],injShoulder:[`{b}'s {side} shoulder has popped out. The arm is hanging like a coat on a hook.`,`The {side} shoulder is out of its socket. It is not supposed to be down there.`,`{b}'s {side} arm has come unplugged. His corner can shove it back in at the bell.`],injArmBroken:[`{b}'s {side} arm has snapped! The bone is out and waving at the crowd.`,`That {side} elbow now bends both ways. It is only meant to bend the one.`,`Compound fracture! {b}'s {side} forearm is dangling by the meat.`],injForearmSevered:[`{b}'s {side} forearm is off! The glove is still making a fist over there on the canvas.`,`{a} has taken the {side} arm off at the elbow, and {b} is punching with the stump!`,`There goes the {side} forearm. Somebody put it on ice. Actually, do not bother.`],injArmTorn:[`{a} has ripped {b}'s {side} arm off at the shoulder! It is on the canvas, still twitching!`,`The whole {side} arm is gone. That shoulder is a fire hose.`,`{b} has lost the {side} arm. The judges will take that into account.`],injRibs:[`{b}'s {side} ribs have caved in. One is sticking out of him like a coat hanger.`,`Those {side} ribs are through the skin. You can count them. I make it four.`,`The {side} side of {b} just folded like a lawn chair.`],injLiver:[`That is the liver, and it has burst. {b} is about to show us everything he ate today.`,`{b}'s liver just exploded inside him. He is turning a colour I have only seen on old fruit.`,`Liver shot, and it popped. {b} is filling up with blood on the inside.`],injDisemboweled:[`{b}'s belly is open and his guts are on the canvas! He is treading on them!`,`He is holding his intestines in with his glove and he still wants to fight.`,`{a} has unzipped {b} from hip to hip. That is twenty feet of intestine, and it is all coming out.`],injKnee:[`{b}'s {side} knee is bending the wrong way. Knees should not have a reverse gear.`,`The {side} knee has blown apart. I can see the kneecap. It is over by the ropes.`,`{b}'s {side} leg is held on by skin and optimism.`],ghastly:[`I would stop this fight. Nobody is going to stop this fight.`,`In any other sport that is a penalty.`,`{b} will feel that in the morning, if he gets one.`,`There are children watching this. They are cheering.`],shoulderBack:[`{b}'s corner has shoved the {side} shoulder back in. You could hear it from the cheap seats.`,`The {side} shoulder is back in its socket. {b} screamed, and then he said thank you.`,`They have popped {b}'s {side} shoulder back in. Good as new. It is not, but good as new.`],vomit:[`{a} is throwing up blood and bile all over the canvas. Mind your step.`,`There it goes. {a} is vomiting something black. That is the liver talking.`,`{a} is sick down his own chest. Blood, bile, and I think that was a tooth.`],finishHim:[`{b} is out on his feet and nobody is stopping it! Finish him!`,`{b} is just standing there, dead behind the eyes. {a} can do anything he likes with him.`,`This is it. {a} gets one free punch, and {b} will not be getting up from it. Ever.`],armless:[`{a} is trying to punch with arms he no longer has.`,`{a} just threw a punch. I will let somebody else tell him.`,`No arms, and {a} is still swinging. You have to admire it. You do not have to watch it.`,`{a} is waving two stumps at him. That is not a guard. That is a cry for help.`],fatEyesOut:[`{a} has punched both of {b}'s eyes out through the back of his head!`,`Two eyes, one punch! They are rolling across the ring. One of them is looking at me.`,`{b}'s eyes are out, and so is {b}. There is daylight coming through his face.`],fatHeadBurst:[`{b}'s head has exploded! It is just gone! It is all over the first three rows!`,`{a} hit him so hard his head burst like a dropped melon. The front row is wearing {b}.`],fatDecapitation:[`{a} has taken {b}'s head clean off! It is in the crowd! Somebody is holding it up!`,`Off comes the head! The body is still standing there, looking for it.`],fatSpineRip:[`The uppercut takes {b}'s head off, and his spine comes with it! All of it! Like boning a fish!`,`{b}'s head is in the air with the whole spine dangling off it. I have never seen that. Nobody has.`],fatHeartPunch:[`{a}'s fist has gone straight through {b}'s chest! That is his heart on the canvas, and it is still beating!`,`In through the chest and out the back! {a} is wearing {b} like a bracelet.`],fatGutting:[`{a} has emptied {b} onto the canvas! Everything he kept inside is now outside!`,`One straight to the gut and it all falls out. Liver, stomach, the lot. {b} is hollow.`],fatBisection:[`{a} has torn {b} in half at the waist! The legs are still standing! The top half is trying to crawl away!`,`{b} is in two pieces. The judges will have to score each half separately.`],fatTotalGib:[`{b} has exploded! There is nothing left! It is raining {b}!`,`{a} hit him and he just came apart. There are bits of {b} on the lights. There is a foot in my coffee.`],deathBledOut:[`{b} has bled to death, right there in the ring. There is more of him on the canvas than in him.`,`{b} is gone. He ran out of blood. You do need some.`,`And {b} just drops. Bled out. They will need a mop and a priest.`],deathBrain:[`That was the last of {b}'s brain, and {a} has punched it into soup. He is dead before he lands.`,`{b} is dead. His brain has left through the hole in his skull.`,`{b} is dead. You cannot fight without a brain. Plenty have tried.`],deathGutted:[`{b} is dead. {a} has punched what was left of his insides clean out of him.`,`That body shot went in one side and out the other. {b} is done, and I mean buried.`,`{b} has been gutted like a fish, and he has died like one, flapping.`],deathFatality:[`He is dead. I would like that on the record. {b} is extremely dead.`,`I have been doing this thirty years. I am going to need a different job.`,`Somebody tell {b}'s corner they can stop shouting advice.`],doubleDeath:[`They are both dead. Both of them. I do not know who to interview.`,`Two fighters, no survivors. The judges are going to hate this.`,`{a} and {b} have killed each other. Call it a draw. Call somebody.`]},tz={ko:`ko`,flash_ko:`flashKo`,tko:`tko`,disqualification:`disqualified`,forfeit:`forfeit`},nz={broken_nose:`injBrokenNose`,broken_jaw:`injBrokenJaw`,jaw_torn:`injJawTorn`,eye_out:`injEyeOut`,ear_torn:`injEarTorn`,face_flayed:`injFaceFlayed`,skull_fractured:`injSkull`,shoulder_dislocated:`injShoulder`,arm_broken:`injArmBroken`,forearm_severed:`injForearmSevered`,arm_torn:`injArmTorn`,ribs_broken:`injRibs`,liver_ruptured:`injLiver`,disemboweled:`injDisemboweled`,knee_blown:`injKnee`},rz={eyes_out:`fatEyesOut`,head_burst:`fatHeadBurst`,decapitation:`fatDecapitation`,spine_rip:`fatSpineRip`,heart_punch:`fatHeartPunch`,gutting:`fatGutting`,bisection:`fatBisection`,total_gib:`fatTotalGib`},iz={bled_out:`deathBledOut`,brain:`deathBrain`,gutted:`deathGutted`},az=new Set([`injJawTorn`,`injEyeOut`,`injFaceFlayed`,`injSkull`,`injForearmSevered`,`injArmTorn`,`injDisemboweled`,`finishHim`,`fatEyesOut`,`fatHeadBurst`,`fatDecapitation`,`fatSpineRip`,`fatHeartPunch`,`fatGutting`,`fatBisection`,`fatTotalGib`,`deathBledOut`,`deathBrain`,`deathGutted`,`deathFatality`,`doubleDeath`]),oz={struggle:new Set([`knockdown`]),finishHim:new Set([`finish`])},sz=3.2,cz=4,lz=`struggle`,uz=new Set([`countdown`]),dz=3.2,fz=new Set([`knockdown`,`knockdownAgain`,`knockdownCounter`,`knockdownBody`,`bodyCollapse`,`upLate`,`upEarly`,`hurt`,`hurtBadly`,`lowBlow`,`headbutt`,`deduction`,`ko`,`flashKo`,`tko`,`disqualified`,`forfeit`,`replay`,`refDown`,`refBledOut`,`savedByBell`,`finalBell`,`roundEnd`,`roundStart`,`injBrokenNose`,`injBrokenJaw`,`injEarTorn`,`injShoulder`,`injArmBroken`,`injRibs`,`injLiver`,`injKnee`,...az]),pz=new Set([`lowBlow`,`headbutt`,`warning`,`deduction`,`box`,`tko`]),mz={fatEyesOut:99,fatHeadBurst:99,fatDecapitation:99,fatSpineRip:99,fatHeartPunch:99,fatGutting:99,fatBisection:99,fatTotalGib:99,doubleDeath:99,deathBledOut:98,deathBrain:98,deathGutted:98,deathFatality:98,finishHim:97,injJawTorn:96,injEyeOut:96,injFaceFlayed:96,injSkull:96,injForearmSevered:96,injArmTorn:96,injDisemboweled:96,injBrokenNose:85,injBrokenJaw:85,injEarTorn:85,injShoulder:85,injArmBroken:85,injRibs:85,injLiver:85,injKnee:85,vomit:66,shoulderBack:47,ghastly:44,armless:40,ko:98,flashKo:98,tko:98,disqualified:98,forfeit:98,refDown:97,refBledOut:97,refHit:72,knockdown:95,knockdownAgain:95,knockdownCounter:95,knockdownBody:95,bodyCollapse:86,upLate:90,upEarly:90,replay:88,deduction:84,lowBlow:82,headbutt:82,hurt:80,box:78,hurtBadly:80,holdingOn:76,savedByBell:74,finalBell:72,struggle:70,guardBreak:65,eyeShut:62,counter:60,parried:58,bigShot:55,roundEnd:52,cut:50,cutWorse:50,summary:50,cutGushing:48,eyeSwelling:48,cornerCut:47,cornerSwelling:47,cornerBreath:47,blindSide:42,roundFor:46,roundBig:46,roundClose:46,pullingAway:46,unanswered:45,finishCall:44,warning:42,combo:40,payoff:40,takeover:38,body:35,jab:30,tiring:30,roundStart:28,taunt:25,parry:22,evade:20,clinch:20,whiff:18,refBreak:12,noRef:12,southpaw:10,orthodox:10,resume:10},hz={finishCall:`colour`,payoff:`colour`,tiring:`colour`,takeover:`colour`,holdingOn:`colour`,taunt:`colour`,parry:`colour`,evade:`colour`,warning:`colour`,blindSide:`colour`,cornerCut:`colour`,cornerSwelling:`colour`,cornerBreath:`colour`,roundFor:`colour`,roundBig:`colour`,roundClose:`colour`,pullingAway:`colour`,cutGushing:`colour`,noRef:`colour`,jab:`colour`,ghastly:`colour`,shoulderBack:`colour`,vomit:`colour`,deathFatality:`colour`,doubleDeath:`colour`,armless:`colour`},gz={combo:6,jab:20,body:18,evade:12,parry:15,parried:8,blindSide:20,whiff:12,clinch:15,refBreak:20,taunt:10,southpaw:15,orthodox:15,bigShot:4,counter:3,unanswered:15,takeover:25,vomit:20,ghastly:14,armless:12},_z=[`zero`,`one`,`two`,`three`,`four`,`five`,`six`,`seven`,`eight`,`nine`,`ten`,`eleven`,`twelve`,`thirteen`,`fourteen`,`fifteen`],vz=e=>_z[e]??String(e),yz=[..._z,`sixteen`,`seventeen`,`eighteen`,`nineteen`],bz=[``,``,`twenty`,`thirty`,`forty`,`fifty`,`sixty`,`seventy`,`eighty`,`ninety`];function xz(e){return!Number.isInteger(e)||e<0||e>=1e3?String(e):e<20?yz[e]:e<100?`${bz[Math.floor(e/10)]}${e%10==0?``:`-${yz[e%10]}`}`:`${yz[Math.floor(e/100)]} hundred${e%100==0?``:` and ${xz(e%100)}`}`}function Sz(e,t=!0){if(Tt(e))return`making a pro debut`;let n=e.draws>0?`${xz(e.wins)}, ${xz(e.losses)} and ${xz(e.draws)}`:`${xz(e.wins)} and ${e.losses===0?`oh`:xz(e.losses)}`;return t&&e.knockouts>0?`${n}, ${xz(e.knockouts)} by knockout`:n}function Cz(e){return .85+e.length*.077+(e.split(`...`).length-1)*.35}var wz=.3;function Tz(e,t){let n=t-wz,r=[e=>[e.record===void 0?null:Sz(e.record),Dn(e.style)],e=>[Dn(e.style)],()=>[]];for(let t of r){let r=e.map((e,n)=>{let r=n===0?`In the blue corner`:`And in the red corner`,i=t(e).filter(e=>e!==null);return i.length===0?`${r}, ${e.name}!`:`${r}, ${i.join(`, `)}... ${e.name}!`});if(r.reduce((e,t)=>e+Cz(t),0)<=n)return r}let i=`${e[0].name}... versus ${e[1].name}!`;return Cz(i)<=n?[i]:[]}function Ez(e,t){let n=e.replace(/\{(a|b|n|side|punch|r|x|y|z|w)\}/gu,(e,n)=>String(t[n]??``));return n.charAt(0).toUpperCase()+n.slice(1)}var Dz=(e,t)=>{let n=Math.imul((e|0)^Math.imul(t,2654435761),2246822507);return n^=n>>>13,n=Math.imul(n,3266489909),(n^n>>>16)>>>0};function Oz(e){let t=e.split(`:`);return[t.at(-2),t.at(-1)]}function kz(e,t){let[n=`punch`,r=`head`]=Oz(e),i=t!==void 0&&t.action===n?t.action_hand:null,a=n===`jab`?`jab`:n===`straight`?i===null?`straight`:`${i} hand`:i===null?n:`${i} ${n}`;return r===`body`?`${a} to the body`:a}function Az(e){if(e.phase===`knockdown`){let t=Math.max(...e.fighters.map(e=>e.get_up_count));return Math.min(1,.3+t*.07)}if(e.phase===`finish`)return 1;if(e.phase!==`fight`)return 0;let t=0;for(let[n,r]of e.fighters.entries()){let i=e.fighters[1-n];r.is_downed||(r.stunned_ticks>0?t=Math.max(t,.75):r.poise<150&&(t=Math.max(t,.45)),(Math.max(Math.abs(r.x),Math.abs(r.y))>400||Math.abs(r.x)+Math.abs(r.y)>640)&&Math.hypot(r.x-i.x,r.y-i.y)<150&&(t=Math.max(t,.4)))}return t}var jz=()=>({thrown:0,landed:0,damage:0,knockdowns:0,body:0}),Mz=()=>({jabs:[],window:[],evasions:[],run:0,runTick:-1e3,unanswered:0,stunnedAt:-1e3,knockedDownAt:-1e5,lowSince:null,tiredRound:0,takeoverRound:0,payoffRound:0,cutMarks:[0,0],eyeShut:[!1,!1],eyeSwelling:[!1,!1],rounds:0}),Nz=class{hooks;queue=[];showing=null;lastEnd=-1/0;lastChoice=new Map;cooldowns=new Map;notes=new Map;tallies=new Map;players={};fighters=null;tickRate=30;introduced=!1;lastPhase=null;round=0;roundLength=null;fightRemaining=0;struggleCalled=-1;lastKnockdown=null;refereeDead=!1;final=null;verdictGiven=!1;resultCalled=!1;deaths=new Map;caption={line:null,opacity:0,entering:0};constructor(e={}){this.hooks=e}observe(e,t,n,r,i){this.players=n,this.fighters=e.fighters,this.refereeDead=e.referee?.alive===!1,this.tickRate=r,this.trackClock(e),this.introduced||(this.introduced=!0,e.phase===`countdown`&&e.round_number===1&&this.introduce(e,i));let a=t.find(e=>e.kind===`result`)??null;for(let n of t)this.consider(n,e,a,i);this.inspect(e,i),this.lastPhase=e.phase,this.dropOutOfPhase(e.phase,i)}dropOutOfPhase(e,t){for(let t=this.queue.length-1;t>=0;--t){let n=this.queue[t].phases;n!==null&&!n.has(e)&&this.queue.splice(t,1)}let n=this.showing;n!==null&&n.phases!==null&&!n.phases.has(e)&&(n.end=Math.min(n.end,t+LR))}finish(e,t,n,r){this.players=t,this.final=e,n&&this.deaths.size<2&&(this.enqueue(this.announcement(`Ladies and gentlemen, we go to the scorecards.`,{kicker:`LADIES AND GENTLEMEN`,title:`WE GO TO THE SCORECARDS`,detail:``,corner:null},WR,99),r,null,30),this.hooks.speak?.([`Ladies and gentlemen, we go to the scorecards.`])),e.method===`forfeit`&&!this.resultCalled&&e.winner_id!==null&&(this.resultCalled=!0,this.say(`forfeit`,e.round,r,{a:this.nameOf(e.winner_id),b:this.nameOf(this.otherId(e.winner_id))},`result`,0))}verdict(e){let t=this.final;if(t===null||this.verdictGiven)return;this.verdictGiven=!0;let n=si(t);if(t.winner_id===null&&this.deaths.size>=2){let n=`Ladies and gentlemen, both fighters are dead. There is no winner.`;this.enqueue(this.announcement(n,{kicker:`ROUND ${t.round}`,title:`DOUBLE DEATH`,detail:`NO SURVIVORS`,corner:null},UR,100),e,`verdict`,30),this.hooks.speak?.([n]);return}if(t.winner_id===null){let r=`After ${vz(t.round)} rounds, this bout is scored a ${n.toLowerCase()}.`;this.enqueue(this.announcement(r,{kicker:`AFTER ${vz(t.round).toUpperCase()} ROUNDS`,title:n,detail:``,corner:null},UR,100),e,`verdict`,30),this.hooks.speak?.([r]);return}let r=this.nameOf(t.winner_id),i=n.toLowerCase();this.enqueue(this.announcement(`The winner, by ${i}: ${r}!`,{kicker:`THE WINNER, BY ${n}`,title:r.toUpperCase(),detail:``,corner:this.seatOf(t.winner_id)},UR,100),e,`verdict`,30),this.hooks.speak?.([`And the winner, by ${i}... ${r}!`])}resultShown(e){let t=this.final;if(t===null||this.verdictGiven)return;if(t.method===`decision`||t.method===`draw`){this.verdict(e);return}if(this.verdictGiven=!0,t.winner_id===null)return;let n=this.nameOf(t.winner_id),r=this.otherId(t.winner_id),i=t.method===`death`,a=i&&r!==null?this.deaths.get(r)??null:null,o=i?a!==null&&mt(a)!==null?`fatality`:`death`:{ko:`knockout`,flash_ko:`knockout`,tko:`technical knockout`,disqualification:`disqualification`,forfeit:`forfeit`}[t.method]??t.method.replaceAll(`_`,` `),s=this.stoppageClock(t.round),c=t.method===`ko`||t.method===`flash_ko`||t.method===`tko`||i,l=c&&s!==null?`${i?`DEAD`:`STOPPED`} AT ${s} OF ROUND ${t.round}`:`ROUND ${t.round}`,u=c&&s!==null?`${n} wins by ${o} at ${s} of round ${t.round}.`:`${n} wins by ${o} in round ${t.round}.`,d=`WINS BY ${o.toUpperCase()}${a===null?``:` · ${ht(a)}`}`;this.enqueue(this.announcement(u,{kicker:l,title:n.toUpperCase(),detail:d,corner:this.seatOf(t.winner_id)},UR,100),e,`verdict`,30);let f=i?`${this.nameOf(r)} is dead`:this.refereeDead?`With the referee dead on the canvas, it is over`:`The referee stops the contest`,p=c&&s!==null?`${f} at ${s} of round ${vz(t.round)}. `:``;this.hooks.speak?.([`${p}Your winner, by ${o}... ${n}!`])}replay(e,t=null){let n=t?.kind===`referee_down`?{actor:t.actor_id,target:null,tick:t.tick}:this.lastKnockdown;this.say(`replay`,n?.tick??0,e,{a:this.nameOf(n?.actor??null),b:this.nameOf(n?.target??null)},`replay`,.6,6)}current(e){for(let t=this.queue.length-1;t>=0;--t)this.queue[t].expires<=e&&this.queue.splice(t,1);this.showing!==null&&e>=this.showing.end&&(this.lastEnd=this.showing.end,this.showing=null);let t=null;for(let n of this.queue)n.at>e||(t===null||n.line.priority>t.line.priority||n.line.priority===t.line.priority&&n.at=this.lastEnd+IR:t.line.urgent&&t.line.priority>n.line.priority&&e-n.start>=VR)&&(this.queue.splice(this.queue.indexOf(t),1),this.showing={line:t.line,start:e,end:e+t.line.hold,moment:t.moment,phases:t.phases},t.spoken!==null&&this.hooks.speak?.([t.spoken]))}let n=this.showing;return n===null?null:(this.caption.line=n.line,this.caption.opacity=Math.max(0,Math.min(1,(e-n.start)/LR,(n.end-e)/LR)),this.caption.entering=Math.max(0,1-(e-n.start)/LR),this.caption)}trackClock(e){e.phase===`fight`&&((this.lastPhase===`countdown`||this.lastPhase===`rest`)&&(this.roundLength={round:e.round_number,ticks:e.phase_ticks_remaining+1}),this.fightRemaining=e.phase_ticks_remaining),e.round_number!==this.round&&(this.round=e.round_number,this.tallies.clear())}stoppageClock(e){let t=this.roundLength;if(t===null||t.round!==e)return null;let n=Math.max(0,Math.floor((t.ticks-this.fightRemaining)/this.tickRate));return`${Math.floor(n/60)}:${String(n%60).padStart(2,`0`)}`}introduce(e,t){let n=e.phase_ticks_remaining/this.tickRate;if(n<1.2)return;let r=e.fighters.map(e=>this.nameOf(e.player_id)),i=e.fighters.map((e,t)=>({name:r[t],record:this.players[e.player_id]?.record,style:e.style})),a=Tz([i[0],i[1]],n),o=Math.max(1.4,a.length===2?Cz(a[0]):n/2),s=[o,Math.max(1.4,n-o)];for(let n of[0,1]){let i=n===0?`blue`:`red`,c=this.players[e.fighters[n].player_id],l=En(e.fighters[n].style),u=c===void 0?``:`${l===null?``:`${l} · `}${c.record===void 0?``:`${Et(c.record)} · `}${c.cpu===!0?`COMPUTER`:`RATED ${c.rating}`}`;this.enqueue(this.announcement(`In the ${i} corner, ${r[n]}.`,{kicker:`IN THE ${i.toUpperCase()} CORNER`,title:r[n].toUpperCase(),detail:u,corner:n},s[n],97),t+n*o,null,30,uz,a[n]??null)}}consider(e,t,n,r){let i=e.actor_id,a=e.target_id,o=`${e.tick}:${a??i??``}`,s={a:this.nameOf(i),b:this.nameOf(a)};switch(e.kind){case`punch_start`:i!==null&&(this.tally(i).thrown+=1);return;case`hit`:case`counter_hit`:i!==null&&a!==null&&!ai(e,t.events)&&this.landed(e,i,a,t,r);return;case`stun`:{if(a===null)return;this.notesFor(a).stunnedAt=e.tick;let t=this.fighter(a),n=t!==void 0&&(t.poise<$R||t.stunned_ticks>=ee-6);this.say(n?`hurtBadly`:`hurt`,e.event_id,r,s,o);return}case`guard_break`:this.say(`guardBreak`,e.event_id,r,s,o);return;case`knockdown`:{if(a===null||(this.lastKnockdown={actor:i,target:a,tick:e.tick},this.notesFor(a).knockedDownAt=e.tick,i!==null&&(this.tally(i).knockdowns+=1),n!==null))return;let c=t.events.some(t=>t.kind===`counter_hit`&&t.tick===e.tick&&t.target_id===a);this.say(e.amount>=2?`knockdownAgain`:e.detail===`body`?`knockdownBody`:c?`knockdownCounter`:`knockdown`,e.event_id,r,s,o);return}case`body_collapse`:this.say(`bodyCollapse`,e.event_id,r,s,o);return;case`parry`:this.say(`parried`,e.event_id,r,s,o,FR,void 0,i);return;case`eye_shut`:if(a===null||e.detail!==`left`&&e.detail!==`right`)return;this.notesFor(a).eyeShut[e.detail===`left`?0:1]=!0,this.say(`eyeShut`,e.event_id,r,{...s,side:e.detail},o);return;case`blind_side`:if(e.detail!==`left`&&e.detail!==`right`)return;this.say(`blindSide`,e.event_id,r,{...s,side:e.detail},null,FR,void 0,i);return;case`corner`:{let t=e.detail===`cut`?`cornerCut`:e.detail===`swelling`?`cornerSwelling`:e.detail===`breath`?`cornerBreath`:null;t!==null&&this.say(t,e.event_id,r,s,null,FR,void 0,i);return}case`count`:e.amount>=6&&this.struggleCalled!==this.lastKnockdown?.tick&&this.fighter(a)?.is_downed===!0&&(this.struggleCalled=this.lastKnockdown?.tick??e.tick,this.say(`struggle`,e.event_id,r,{a:this.nameOf(this.otherId(a)),b:this.nameOf(a)},lz));return;case`get_up`:{for(let e=this.queue.length-1;e>=0;--e)this.queue[e].moment===lz&&this.queue.splice(e,1);this.showing?.moment===lz&&(this.showing.end=Math.min(this.showing.end,r+LR));let t={a:this.nameOf(this.otherId(i)),b:this.nameOf(i),n:vz(e.amount)};this.say(e.amount>=8?`upLate`:`upEarly`,e.event_id,r,t,o),this.say(`finishCall`,e.event_id,r,t,null,3.4,4);return}case`perfect_block`:this.say(`parry`,e.event_id,r,s,o,FR,void 0,i);return;case`evade`:{if(i===null)return;let t=this.notesFor(i);t.evasions=t.evasions.filter(t=>t>e.tick-JR*this.tickRate),t.evasions.push(e.tick),(this.fighter(a)?.action_power===`power`||t.evasions.length>=3)&&this.say(`evade`,e.event_id,r,s,o,FR,void 0,i)&&(t.evasions.length=0);return}case`whiff`:{let t=this.fighter(i);if(t?.action_power!==`power`||t.action===null)return;this.say(`whiff`,e.event_id,r,{...s,punch:kz(`${t.action}:${t.action_target??`head`}`,t)},o,FR,void 0,i);return}case`clinch`:{if(i===null)return;let t=this.fighter(i),n=e.tick-this.notesFor(i).stunnedAt<=3*this.tickRate||t!==void 0&&t.poise<150;this.say(n?`holdingOn`:`clinch`,e.event_id,r,s,o,FR,void 0,i);return}case`referee_break`:this.say(`refBreak`,e.event_id,r,s,null,FR,void 0,`referee`);return;case`referee_hit`:this.say(`refHit`,e.event_id,r,s,o,FR,void 0,i);return;case`referee_down`:this.say(e.action_id===null?`refBledOut`:`refDown`,e.event_id,r,s,o);return;case`clinch_break`:this.say(`noRef`,e.event_id,r,s,null,FR);return;case`taunt`:this.say(`taunt`,e.event_id,r,{a:s.a,b:this.nameOf(this.otherId(i))},o,FR,void 0,i);return;case`foul`:this.say(e.detail===`headbutt`?`headbutt`:`lowBlow`,e.event_id,r,s,o),this.fighter(i)?.warnings===1&&this.say(`warning`,e.event_id,r,s,null,3.6,4);return;case`point_deduction`:this.say(`deduction`,e.event_id,r,s,`deduction:${e.tick}`);return;case`resume`:this.say(`resume`,e.event_id,r,s,null);return;case`box`:this.say(`box`,e.event_id,r,{a:this.nameOf(this.otherId(a)),b:this.nameOf(a)},o);return;case`stance`:this.say(e.detail===`southpaw`?`southpaw`:`orthodox`,e.event_id,r,s,null,FR,void 0,i);return;case`exhausted`:i!==null&&this.tired(i,e.event_id,r);return;case`bell`:e.detail===`round_start`?(this.tallies.clear(),t.round_number>=2&&this.say(`roundStart`,e.event_id,r,{r:t.round_number},null,FR,dz)):e.detail===`round_end`&&this.roundEnded(e,t,n,r);return;case`injury`:{let n=Xe.find(t=>t===e.detail);if(a===null||n===void 0)return;let i=nz[st(n)],c={...s,side:ot(n)??``};!az.has(i)&&t.events.some(t=>t.kind===`knockdown`&&t.tick===e.tick&&t.target_id===a)?this.sayAt(i,e.event_id,r+sz,c,8):this.say(i,e.event_id,r,c,o),az.has(i)&&this.say(`ghastly`,e.event_id,r,s,null,3.8,4);return}case`injury_healed`:{let t=Xe.find(t=>t===e.detail);if(t===void 0||st(t)!==`shoulder_dislocated`)return;this.sayAt(`shoulderBack`,e.event_id,r+cz,{b:this.nameOf(a??i),side:ot(t)??``},9);return}case`armless`:this.say(`armless`,e.event_id,r,s,null,FR,void 0,i);return;case`vomit`:this.say(`vomit`,e.event_id,r,{a:this.nameOf(i??a)},o,FR,void 0,i??a);return;case`finish_him`:this.say(`finishHim`,e.event_id,r,s,o,0);return;case`fatality`:{let t=Qe.find(t=>t===e.detail);t!==void 0&&this.say(rz[t],e.event_id,r,s,o,0);return}case`death`:{let t=pt(e.detail);if(t===null||a===null)return;this.deaths.set(a,t);let n={a:this.nameOf(i??this.otherId(a)),b:s.b};this.deaths.size>=2?this.say(`doubleDeath`,e.event_id,r,n,null,.6):t===`bled_out`||t===`brain`||t===`gutted`?this.say(iz[t],e.event_id,r,n,o,0):this.say(`deathFatality`,e.event_id,r,n,null,3.6);return}case`result`:this.resulted(e,r);return;default:return}}landed(e,t,n,r,i){let[a,o]=Oz(e.detail),s=this.tally(t);s.landed+=1,s.damage+=e.amount,o===`body`&&(s.body+=1);let c=this.notesFor(t),l=this.notesFor(n);l.run=0,l.unanswered=0,c.run=e.tick-c.runTick<=GR?c.run+1:1,c.runTick=e.tick,c.unanswered+=1,c.window=c.window.filter(t=>t>e.tick-qR*this.tickRate),c.window.push(e.tick);let u=`${e.tick}:${n}`,d=r.fighters.find(e=>e.player_id===t),f={a:this.nameOf(t),b:this.nameOf(n),punch:kz(e.detail,d)},p=d?.action_power===`power`&&d.action===a;if(e.kind===`counter_hit`&&e.amount>=40?this.say(`counter`,e.event_id,i,f,u,FR,void 0,t):(e.amount>=85||p&&o===`head`&&e.amount>=60)&&this.say(`bigShot`,e.event_id,i,f,u,FR,void 0,t),c.unanswered===5?this.say(`unanswered`,e.event_id,i,f,u,FR,void 0,t):c.run===3&&this.say(`combo`,e.event_id,i,f,u,FR,void 0,t),a===`jab`&&(c.jabs=c.jabs.filter(t=>t>e.tick-KR*this.tickRate),c.jabs.push(e.tick),c.jabs.length>=3&&this.say(`jab`,e.event_id,i,f,null,FR,void 0,t)&&(c.jabs.length=0)),o===`body`){let a=this.fighter(n);a!==void 0&&s.body>=5&&a.staminat>e.tick-qR*this.tickRate).length;c.window.length>=7&&m<=2&&c.takeoverRound!==r.round_number&&(c.takeoverRound=r.round_number,this.say(`takeover`,e.event_id,i,f,null,FR,void 0,t)&&this.hooks.cue?.(`chant`))}roundEnded(e,t,n,r){let i=t.round_number;if(n!==null){(n.detail===`decision`||n.detail===`draw`)&&this.say(`finalBell`,e.event_id,r,{},`bell`,FR,dz);return}let a=t.fighters.find(t=>{let n=this.notesFor(t.player_id);return t.stunned_ticks>0||t.poise<$R||e.tick-n.knockedDownAt<=12*this.tickRate});a===void 0?this.say(`roundEnd`,e.event_id,r,{r:i},`bell`,FR,dz):this.say(`savedByBell`,e.event_id,r,{b:this.nameOf(a.player_id)},`bell`,FR,dz);let[o,s]=t.fighters.map(e=>({id:e.player_id,tally:this.tally(e.player_id)})),[c,l]=o.tally.landed>=s.tally.landed?[o,s]:[s,o];c.tally.thrown+l.tally.thrown>0&&this.sayAt(`summary`,e.event_id,r+2.4,{r:i,a:this.nameOf(c.id),x:c.tally.landed,y:c.tally.thrown,b:this.nameOf(l.id),z:l.tally.landed,w:l.tally.thrown},5);let u=(o.tally.knockdowns-s.tally.knockdowns)*1e3+(o.tally.damage-s.tally.damage)+6*(o.tally.landed-s.tally.landed),d=Math.abs(u)0?o:s;d!==null&&(this.notesFor(d.id).rounds+=1);let f=d===null?null:d===o?s:o,p=d===null||f===null?0:this.notesFor(d.id).rounds-this.notesFor(f.id).rounds,m=d===null?`roundClose`:o.tally.knockdowns===s.tally.knockdowns?i>=2&&p>=2?`pullingAway`:`roundFor`:`roundBig`;this.sayAt(m,e.event_id,r+6.4,{a:this.nameOf(d?.id??null),b:this.nameOf(f?.id??null)},5)}resulted(e,t){let n=tz[e.detail];if(n===void 0||this.resultCalled)return;this.resultCalled=!0;let r=e.actor_id;this.say(n,e.event_id,t,{a:this.nameOf(r),b:this.nameOf(this.otherId(r))},`result`,0)}inspect(e,t){if(e.phase===`fight`)for(let n of e.fighters){let r=this.notesFor(n.player_id),i={a:this.nameOf(this.otherId(n.player_id)),b:this.nameOf(n.player_id)};for(let[a,o]of[[0,`left`],[1,`right`]]){let s=a===0?n.trauma.left_cut:n.trauma.right_cut,c=r.cutMarks[a];c=YR[c]&&(r.cutMarks[a]=YR.filter(e=>s>=e).length,this.say(c===0?`cut`:c===1?`cutWorse`:`cutGushing`,e.tick+a,t,{...i,side:o},null));let l=a===0?n.trauma.left_eye:n.trauma.right_eye;!r.eyeSwelling[a]&&!r.eyeShut[a]&&l>=XR&&(r.eyeSwelling[a]=!0,this.say(`eyeSwelling`,e.tick+a,t,{...i,side:o},null))}let a=n.stamina/Math.max(1,n.maximum_stamina);a=2*this.tickRate&&this.tired(n.player_id,e.tick,t)):a>=QR&&(r.lowSince=null)}}tired(e,t,n){let r=this.notesFor(e);r.tiredRound!==this.round&&(r.tiredRound=this.round,this.say(`tiring`,t,n,{a:this.nameOf(this.otherId(e)),b:this.nameOf(e)},null))}say(e,t,n,r,i,a=FR,o,s){let c=gz[e],l=`${e}:${s??``}`;if(c!==void 0){if(n<(this.cooldowns.get(l)??-1/0))return!1;this.cooldowns.set(l,n+c)}let u=Ez(this.choose(e,t),r),d={speaker:hz[e]??`play`,text:u,priority:mz[e],urgent:fz.has(e),hold:Pz(u),card:null},f=az.has(e);return this.enqueue(d,n+a,i,o??(f?BR:void 0),oz[e]??null,null,f)}sayAt(e,t,n,r,i){let a=Ez(this.choose(e,t),r);this.enqueue({speaker:hz[e]??`play`,text:a,priority:mz[e],urgent:fz.has(e),hold:Pz(a),card:null},n,null,i)}announcement(e,t,n,r){return{speaker:`announcer`,text:e,priority:r,urgent:!0,hold:n,card:t}}choose(e,t){let n=ez[e],r=this.refereeDead&&pz.has(e)?n.filter(e=>!/referee/iu.test(e)):n,i=Dz(t,e.length*31+e.charCodeAt(0))%r.length;return r.length>1&&this.lastChoice.get(e)===i&&(i=(i+1)%r.length),this.lastChoice.set(e,i),r[i]}enqueue(e,t,n,r,i=null,a=null,o=!1){if(n!==null){if(!o&&this.queue.some(t=>t.moment===n&&t.line.priority>=e.priority)||!o&&this.showing?.moment===n&&this.showing.line.priority>=e.priority)return!1;for(let t=this.queue.length-1;t>=0;--t){let r=this.queue[t];r.moment===n&&!r.big&&r.line.priorityHR){let e=0;for(let t=1;tt.player_id===e)}otherId(e){let t=this.fighters;return t===null||e===null?null:t[0].player_id===e?t[1].player_id:t[1].player_id===e?t[0].player_id:null}seatOf(e){let t=this.fighters?.findIndex(t=>t.player_id===e)??-1;return t===0||t===1?t:null}nameOf(e){if(e===null)return`the fighter`;let t=this.players[e]?.name;if(t!==void 0&&t.trim().length>0)return t.trim();let n=this.seatOf(e);return n===0?`the blue corner`:n===1?`the red corner`:`the fighter`}};function Pz(e){return Math.min(5.2,Math.max(2.2,1.4+e.length*.05))}var Fz={name:`CopyShader`,uniforms:{tDiffuse:{value:null},opacity:{value:1}},vertexShader:` +`,oA=class{root=new pc;uniforms={uCenter:{value:new B},uRadius:{value:0},uOpacity:{value:0},uFlash:{value:0}};material=new Vd({uniforms:this.uniforms,vertexShader:iA,fragmentShader:aA,vertexColors:!0,transparent:!0});framed=[];longs=[];chips=[];sprays=[];pieces=null;boxer=null;mutilation=null;site=null;spot=Fk(`skull`);center=new B;fighter=-1;elapsed=0;held=!1;push=new B;matrix=new zs;local=new zs;turn=new hs;from=new B;to=new B;along=new B;across=new B;axis=new B;outward=new B;offset=new B;one=new B(1,1,1);insetCamera=new Hf(30,1,.05,40);canvasSize=new z;clearColor=new V;frameColor=new V;compiled=null;constructor(){this.root.visible=!1,this.root.name=`BoneXray`}get owner(){return this.site===null?-1:this.fighter}get breaking(){return this.site}get snapped(){return this.site!==null&&this.elapsed>=.3}drawInset(e,t,n){if(this.site===null||this.held||this.elapsed<=0)return;let r=e.getSize(this.canvasSize),i=Math.round(Math.min(r.x,r.y)*wk),a=Math.max(2,Math.round(i*.012)),o=this.fighter===0?Math.round(i*.08):r.x-i-Math.round(i*.08),s=r.y-i-Math.round(r.y*(r.y>r.x?Ek:Tk)),c=this.uniforms.uCenter.value,l=this.insetCamera,u=l.position.subVectors(n.position,c).setY(0).normalize();u.addScaledVector(this.push,-u.dot(this.push)),u.lengthSq()<.12&&u.set(-this.push.z,0,this.push.x),u.normalize().addScaledVector(this.outward,.4).setY(0).normalize(),l.position.multiplyScalar(this.spot.joint===void 0&&this.spot.radius<15?Dk:Ok).add(c),l.position.y+=.12,l.lookAt(c);let d=e.getClearAlpha(),f=e.shadowMap.autoUpdate;e.getClearColor(this.clearColor),e.shadowMap.autoUpdate=!1,e.setScissorTest(!0);let p=this.uniforms.uFlash.value;e.setClearColor(this.frameColor.copy(kk).lerp(Ak,Math.min(1,p*2)),1),e.setScissor(o-a,s-a,i+a*2,i+a*2),e.clear(!0,!0,!1),e.setClearColor(jk,1),e.setScissor(o,s,i,i),e.setViewport(o,s,i,i),e.render(t,l),e.setScissorTest(!1),e.setViewport(0,0,r.x,r.y),e.setClearColor(this.clearColor,d),e.shadowMap.autoUpdate=f}start(e,t,n,r,i,a,o=!1){this.stop(),this.prepare(t),this.fighter=e,this.boxer=t,this.mutilation=n,this.site=r,this.spot=Fk(r),this.center.set(this.spot.center[0],this.spot.center[1],this.spot.center[2]);let s=xO(t,`body`),c=this.spot.joint===void 0||s===null?-1:s.skeleton.bones.indexOf(t.rig.bones[this.spot.joint]);c>=0&&this.center.setFromMatrixPosition(this.matrix.multiplyMatrices(s.skeleton.boneInverses[c],s.bindMatrix).invert()),this.elapsed=o?xk*.5:0,this.held=o,this.push.set(i,0,a),this.push.lengthSq()<1e-6&&this.push.set(1,0,0),this.push.normalize();let l=r.length*7+3,u=()=>(l=l*16807%2147483647,l/2147483647);for(let e of this.sprays)e.set(this.push.x*.9+u()*1.6-.8,u()*1.5-.2,this.push.z*.9+u()*1.6-.8).multiplyScalar(.5+u()*.9);this.root.visible=!0}stop(){this.site!==null&&(this.boxer?.headInjury.setXray(0,0,0,0,0),this.boxer?.bodyInjury.setXray(0,0,0,0,0),this.site=null,this.boxer=null,this.mutilation=null,this.root.visible=!1)}update(e){let{site:t,boxer:n,mutilation:r,pieces:i}=this;if(t===null||n===null||r===null||i===null)return;this.held||(this.elapsed+=e);let a=this.elapsed;if(a>=1.35||!r.anchor(this.spot.anchor,this.uniforms.uCenter.value,this.outward)){this.stop();return}this.spot.joint!==void 0&&n.rig.bones[this.spot.joint].getWorldPosition(this.uniforms.uCenter.value);let o=a-bk,s=o<0?0:1-Math.exp(-o*20),c=o<0||this.held?0:Math.exp(-o*11),l=Math.min(1,a/Sk,(xk-a)/Ck),u=this.spot,d=this.center,f=1/n.rig.metrics.unitsPerMeter,p=this.held?1e3:u.radius*(1+Mk*c);n.headInjury.setXray(d.x,d.y,d.z,p,l),n.bodyInjury.setXray(d.x,d.y,d.z,p,l),this.uniforms.uRadius.value=p*f*1.1,this.uniforms.uOpacity.value=l,this.uniforms.uFlash.value=c*.55;let m=+!!t.endsWith(`_right`),h=m===1?-1:1;for(let e of this.framed)e.mesh.visible=r.skinMatrix(e.skin,e.bone,e.mesh.matrix),e.mesh.matrixWorldNeedsUpdate=!0;let g=(e,t,n,r,i)=>{this.turn.setFromAxisAngle(this.axis.set(n[0],n[1],n[2]),r),this.local.compose(this.offset.set(t[0]+i[0],t[1]+i[1],t[2]+i[2]),this.turn,this.one),e.matrix.multiply(this.local).multiply(this.matrix.makeTranslation(-t[0],-t[1],-t[2]))};i.plate.visible&&=t===`skull`&&s>0,t===`jaw`?(g(i.jaw[0],[0,111.7,3.9],[0,1,0],.3*s,[.9*s,-.7*s,0]),g(i.jaw[1],[-5,116.8,-2.1],[0,0,1],-.16*s,[.5*s,0,0])):t===`nose`?g(i.nasal,[0,120.4,3.6],[0,0,1],.7*s,[.5*s,-.2*s,-.5*s]):t.startsWith(`ribs`)&&g(i.ribsFront[m],[h*11.2,96,-1.2],[0,1,0],-h*.5*s,[-h*.9*s,0,0]);let _=n.rig.bones;for(let e of this.longs){_[e.from].getWorldPosition(this.from),_[e.to].getWorldPosition(this.to);let n=e.mesh===i.humerus[m]&&(t.startsWith(`arm`)||t.startsWith(`shoulder`))||e.mesh===i.shin[m]&&t.startsWith(`knee`);e.mesh.visible=!0,n&&t.startsWith(`arm`)?(e.mesh.visible=!1,this.along.subVectors(this.to,this.from),this.across.crossVectors(this.along,this.push).normalize(),this.across.lengthSq()<.5&&this.across.set(0,1,0),this.span(i.stump,this.from,this.to,e.length,f),this.to.copy(this.from).addScaledVector(this.along,.62),this.offset.crossVectors(this.across,this.along).normalize(),i.shard.position.copy(this.to).addScaledVector(this.offset,.022*s),this.turn.setFromAxisAngle(this.across,.75*s),i.shard.quaternion.copy(i.stump.quaternion).premultiply(this.turn),i.shard.scale.copy(i.stump.scale)):(n&&t.startsWith(`shoulder`)&&(this.from.addScaledVector(this.push,.035*s).y-=.04*s),n&&t.startsWith(`knee`)&&this.from.addScaledVector(this.outward,.05*s),this.span(e.mesh,this.from,this.to,e.length,f))}let v=t.startsWith(`arm`);i.stump.visible=v,i.shard.visible=v;let y=this.uniforms.uCenter.value;for(let[e,t]of this.chips.entries()){if(t.visible=o>0,o<=0)continue;let n=this.sprays[e];t.position.copy(y).addScaledVector(n,o*.55),t.position.y-=1.6*o*o,t.rotation.set(o*9+e,o*7,e),t.scale.setScalar((e{let t=new H(e,this.material);return t.frustumCulled=!1,t.renderOrder=40,this.root.add(t),t},n=(e,n,r)=>{let i=t(e);return i.matrixAutoUpdate=!1,this.framed.push({mesh:i,skin:n,bone:r}),i},r=e.rig.metrics,i=r.unitsPerMeter,a=(e,n,r,i)=>{let a=t(e);return this.longs.push({mesh:a,from:n,to:r,length:i}),a};n($k(),`head`,`head`);let o=n(tA(),`head`,`head`),s=n(qk([0,120.4,3.6],[0,118.3,5],.55,Ik,.5),`head`,`head`),c=[n(eA(1),`head`,`head`),n(eA(-1),`head`,`head`)];n(nA(108.5,116.5,-3.4),`body`,`neck`),n(nA(88,108,-6.2),`body`,`chest`),n(nA(76,87.5,-3.6),`body`,`spine`),n(rA(),`body`,`hips`),n(Jk([Vk(new Gu(2.2,10.5,.9).translate(0,99,4.3),Ik),qk([1.4,106.4,2.8],[13.6,105.2,-3.4],.55),qk([-1.4,106.4,2.8],[-13.6,105.2,-3.4],.55),Hk([11,101,-7.6],[3.6,4.6,.7]),Hk([-11,101,-7.6],[3.6,4.6,.7])]),`body`,`chest`),n(Zk(1,!1),`body`,`chest`),n(Zk(-1,!1),`body`,`chest`);let l=[n(Zk(1,!0),`body`,`chest`),n(Zk(-1,!0),`body`,`chest`)],u=r.armL.upper*i,d=r.armL.lower*i,f=r.legL.upper*i,p=r.legL.lower*i,m=Yk(u,.95,1.5),h=Yk(d,.62,1.15,.9),g=Yk(f,1.25,2),_=Yk(p,1.05,1.75,1.5),v=qk([0,0,0],[0,10,0],.9,Ik,.6),y=[a(m,`shoulderL`,`elbowL`,u),a(m,`shoulderR`,`elbowR`,u)];a(h,`elbowL`,`gloveL`,d),a(h,`elbowR`,`gloveR`,d),a(g,`hipL`,`kneeL`,f),a(g,`hipR`,`kneeR`,f);let b=[a(_,`kneeL`,`ankleL`,p),a(_,`kneeR`,`ankleR`,p)];a(v,`ankleL`,`toeL`,10),a(v,`ankleR`,`toeR`,10);let x=u*.62,S=t(Jk([qk([0,0,0],[0,x,0],.95,Ik,.85),Hk([0,0,0],1.5),qk([0,x,0],[.5,x+1.6,.2],.7,Ik,.1),Hk([0,x,0],.6,zk)])),C=t(Jk([qk([0,.4,0],[0,u-x,0],.85),Hk([0,u-x,0],1.3),qk([0,.6,0],[-.4,-1.5,-.3],.7,Ik,.1),Hk([0,.5,0],.55,zk)])),w=Vk(new Ad(1),Ik),T=Vk(new wd(1,1),zk);for(let e=0;e<14;e+=1)this.chips.push(t(e{let e=this.context;e!==null&&e.state!==`running`&&e.resume().catch(()=>void 0),this.unlock().catch(()=>void 0)};visibility=()=>{let e=this.context;if(e===null)return;let t=document.hidden?e.suspend():this.unlocked?e.resume():null;t!==null&&t.catch(()=>void 0)};constructor(e){this.settings=e;for(let e of SA)window.addEventListener(e,this.unlockListener);document.addEventListener(`visibilitychange`,this.visibility)}unlock(){return this.destroyed||this.unlocked?Promise.resolve():(this.unlockPromise===null&&(this.unlockPromise=this.performUnlock().finally(()=>{this.unlockPromise=null})),this.unlockPromise)}async performUnlock(){let e=this.context;if(e===null){e=new AudioContext;let t=e.createGain();t.gain.value=Math.min(.8,Math.max(0,this.settings().volume));let n=e.createBiquadFilter();n.type=`lowpass`,n.frequency.value=bA,n.Q.value=.7,t.connect(n).connect(e.destination),this.context=e,this.master=t,this.muffle=n}if(e.state===`suspended`&&await e.resume(),this.destroyed||this.context!==e)return;let t=await this.decodeInjuryBuffers(e);if(!(this.destroyed||this.context!==e)){this.injuryBuffers=t,this.unlocked=!0;for(let e of SA)window.removeEventListener(e,this.unlockListener);this.crowdStarted||(this.crowdStarted=!0,this.crowdBed())}}setVolume(){this.master!==null&&(this.master.gain.value=Math.min(.8,Math.max(0,this.settings().volume)))}event(e,t=!1){if(this.unlocked)switch(e.kind){case`punch_start`:this.whoosh(e.detail.split(`:`)[1]??`jab`,t);break;case`whiff`:this.noise({duration:.11,frequency:850,sweepTo:320,gain:.07,type:`bandpass`,q:1.1});break;case`hit`:case`counter_hit`:{let n=e.detail.endsWith(`body`),r=Math.min(1,e.amount/260),i=Math.min(.36,.14+r*.2)*(e.kind===`counter_hit`?1.25:1);this.impact(i,n,r,t),(e.kind===`counter_hit`||r>.7||t)&&this.crowdSwell(.35+r*.4),(e.kind===`counter_hit`&&e.amount>=50||e.amount>=90)&&this.ooh(Math.min(1,e.amount/160));break}case`referee_hit`:{let t=Math.min(1,e.amount/260);this.impact(Math.min(.36,.16+t*.2),e.detail.endsWith(`body`),t),this.ooh(.7+t*.3),this.crowdSwell(.5+t*.3);break}case`referee_down`:this.impact(.36,!1,1),this.crowdRoar(1),this.ooh(1);break;case`block`:this.noise({duration:.045,frequency:1200,sweepTo:600,gain:.14,type:`bandpass`,q:1.1}),this.noise({duration:.09,frequency:260,gain:.08}),this.tone({from:160,to:110,duration:.06,type:`triangle`,gain:.05}),t&&this.tone({from:96,to:44,duration:.2,type:`sine`,gain:.2});break;case`perfect_block`:this.noise({duration:.05,frequency:1800,sweepTo:900,gain:.16,type:`bandpass`,q:1.6}),this.tone({from:280,to:210,duration:.06,type:`triangle`,gain:.06});break;case`guard_break`:this.impact(.3,!1,.9),this.tone({from:230,to:78,duration:.2,type:`sawtooth`,gain:.08}),this.crowdSwell(.5),this.ooh(.6);break;case`stun`:this.tone({from:96,to:74,duration:.22,type:`sine`,gain:.1}),this.crowdSwell(.3);break;case`parry`:this.noise({duration:.06,frequency:2400,sweepTo:1100,gain:.18,type:`bandpass`,q:1.8}),this.tone({from:330,to:180,duration:.09,type:`triangle`,gain:.07}),this.crowdSwell(.35);break;case`body_collapse`:this.tone({from:118,to:52,duration:.42,type:`sine`,gain:.16}),this.noise({duration:.26,frequency:420,sweepTo:180,gain:.05,type:`bandpass`,q:.9}),this.crowdSwell(.6);break;case`eye_shut`:this.crowdSwell(.25);break;case`corner`:this.noise({duration:.22,frequency:2600,sweepTo:1500,gain:.05,type:`bandpass`,q:.8});break;case`knockdown`:this.impact(.34,!1,1),this.tone({from:60,to:28,duration:.42,type:`sine`,gain:.3}),this.noise({duration:.3,frequency:140,gain:.24}),this.crowdRoar(1),this.hush();break;case`bell`:{let t=e.detail===`round_start`?3:1;for(let e=0;e10*r||this.clapperRound===t||(this.clapperRound=t,!this.unlocked))return;this.noise({duration:.05,frequency:2600,gain:.42,type:`bandpass`,q:1.4}),this.noise({duration:.09,frequency:700,gain:.18,type:`bandpass`,q:.8});let i=window.setTimeout(()=>{this.timers.delete(i),this.noise({duration:.05,frequency:2400,gain:.4,type:`bandpass`,q:1.4}),this.noise({duration:.09,frequency:660,gain:.16,type:`bandpass`,q:.8})},120);this.timers.add(i)}getUpBeat(){this.tone({from:1320,duration:.05,type:`square`,gain:.07})}getUpVerdict(e){e===`perfect`?(this.tone({from:880,to:1760,duration:.12,type:`triangle`,gain:.11}),this.tone({from:1760,duration:.1,type:`triangle`,gain:.08,delay:.07})):e===`good`?this.tone({from:660,to:990,duration:.1,type:`triangle`,gain:.09}):e===`wrong`?this.tone({from:140,duration:.16,type:`sawtooth`,gain:.09}):this.tone({from:260,duration:.09,type:`sine`,gain:.07})}chant(){let e=this.context;if(!(!this.unlocked||e===null||e.currentTime-this.lastChantAt<_A)){this.lastChantAt=e.currentTime;for(let e=0;e<8;e+=1){let t=.5+e/14;for(let n=0;n<3;n+=1)this.noise({duration:.045,frequency:1500+n*450,gain:.07*t,type:`bandpass`,q:1.1,delay:e*.42+n*.013,offset:(e*3+n)*.131})}this.crowdVoice({duration:1.4,first:[380,460],second:[820,940],gain:.08,delay:3.2})}}tension(e){let t=this.context,n=this.murmurGain,r=Math.max(0,Math.min(1,e));if(t===null||n===null||Math.abs(r-this.murmurLevel)<.02)return;let i=r>this.murmurLevel;this.murmurLevel=r,n.gain.setTargetAtTime(r*vA,t.currentTime,i?.3:.8)}rocked(e,t){this.follow(t);let n=this.context,r=this.muffle;if(!this.unlocked||n===null||r===null)return;let i=Math.max(0,Math.min(1,e));if(Math.abs(i-this.rockedLevel)>=.02||i===0&&this.rockedLevel!==0){let e=i>this.rockedLevel;this.rockedLevel=i,r.frequency.setTargetAtTime(bA*(xA/bA)**+i,n.currentTime,e?.05:.9)}i>.15&&t-this.lastRockedBeat>=wA(i)&&(this.lastRockedBeat=t,this.tone({from:58,to:40,duration:.12,type:`sine`,gain:.09+i*.08}),this.tone({from:50,to:36,duration:.14,type:`sine`,gain:.07+i*.06,delay:.16}))}snapshot(e,t,n,r){if(this.follow(e),!this.unlocked)return;let i=1-t/Math.max(1,n);i>.55&&e-this.lastBreathTick>=75&&(this.lastBreathTick=e,this.noise({duration:.18,frequency:420,gain:.045+i*.04})),(i>.72||r>500)&&this.rockedLevel<=.15&&e-this.lastHeartbeatTick>=24&&(this.lastHeartbeatTick=e,this.tone({from:52,duration:.09,type:`sine`,gain:.055}))}result(e){if(this.openMuffle(),!this.unlocked)return;this.crowdSwell(1),this.tone({from:e.winner_id===null?280:520,duration:.45,type:`triangle`,gain:.18});let t=window.setTimeout(()=>{this.timers.delete(t),this.tone({from:650,duration:.5,type:`triangle`,gain:.14})},160);this.timers.add(t)}injury(e){let t=this.context,n=this.master,r=this.injuryBuffers.get(sA[e]??e),i=this.settings();if(!this.unlocked||t===null||n===null||i.blood!==`full`||i.reducedMotion||(this.tearing(),r===void 0))return;let a=t.createBufferSource(),o=t.createGain();a.buffer=r,o.gain.value=.2,a.connect(o).connect(n),a.start()}tearing(){this.noise({duration:.09,frequency:2600,sweepTo:700,gain:.22,type:`bandpass`,q:1.6}),this.noise({duration:.4,frequency:900,sweepTo:150,gain:.28,type:`lowpass`,q:6,offset:.35});for(let[e,t]of[.3,.9,1.5].entries())this.noise({duration:.2,frequency:480-e*60,sweepTo:170,gain:.13-e*.03,type:`bandpass`,q:4,delay:t,offset:.2+t})}gore(e){let t=this.settings();if(!this.unlocked||t.volume<=0)return;let n=t.blood===`full`&&!t.reducedMotion;switch(e.kind){case`injury`:{let t=cA[ct(e.injury)];n?(this.wound(t,0),t===`crack`&&this.xray()):this.impact(.3,!1,.9),this.ooh(1),this.crowdSwell(.8),t!==`crack`&&this.crowdVoice({...mA,delay:.45});break}case`vomit`:n&&this.retch(),this.crowdVoice({...mA,gain:.09,delay:.5});break;case`finish_him`:this.omen(),this.crowdRoar(1);break;case`fatality`:this.sting(),n&&lA[e.fatality].forEach((e,t)=>this.wound(e,t*.2)),this.crowdRoar(1),this.ooh(1);break;case`death`:ht(e.cause)===null?(this.flatline(0),this.hush(!0)):this.flatline(fA)}}wound(e,t){e===`crack`?this.crack(t):e===`rip`?this.rip(t):e===`squelch`?this.squelch(t):this.chop(t)}xray(){this.tone({from:90,to:440,duration:bk,type:`sine`,gain:.1,delay:0}),this.crack(bk),this.noise({duration:.16,frequency:520,sweepTo:170,gain:.2,type:`lowpass`,q:4,delay:bk+.03,offset:.3})}crack(e){this.noise({duration:.03,frequency:3400,sweepTo:1800,gain:.34,type:`bandpass`,q:2.2,delay:e}),this.tone({from:190,to:70,duration:.09,type:`triangle`,gain:.22,delay:e});for(let[t,n]of dA.entries())this.noise({duration:.018,frequency:2800-t*260,gain:.2-t*.03,type:`highpass`,q:1.4,delay:e+n,offset:.17*(t+1)})}rip(e){this.noise({duration:.5,frequency:420,sweepTo:2600,gain:.3,type:`bandpass`,q:3.2,delay:e,offset:.4}),this.noise({duration:.45,frequency:180,sweepTo:520,gain:.2,type:`lowpass`,q:5,delay:e+.03,offset:.7});for(let t=0;t<6;t+=1)this.noise({duration:.035,frequency:900+t*280,gain:.16,type:`bandpass`,q:6,delay:e+.05+t*.07,offset:.09*t});this.noise({duration:.12,frequency:700,sweepTo:160,gain:.24,type:`lowpass`,q:4,delay:e+.52,offset:.55})}squelch(e){this.noise({duration:.3,frequency:1100,sweepTo:140,gain:.32,type:`lowpass`,q:9,delay:e,offset:.25}),this.noise({duration:.22,frequency:300,sweepTo:900,gain:.18,type:`bandpass`,q:7,delay:e+.1,offset:.6}),this.tone({from:150,to:60,duration:.12,type:`sine`,gain:.16,delay:e}),this.spatter(e+.25)}spatter(e){for(let[t,n]of uA.entries())this.noise({duration:.03,frequency:1500+t%3*600,sweepTo:500,gain:.14-t*.012,type:`bandpass`,q:3,delay:e+n,offset:.13*t})}chop(e){this.tone({from:120,to:38,duration:.2,type:`sine`,gain:.32,delay:e}),this.noise({duration:.05,frequency:2200,sweepTo:500,gain:.3,type:`bandpass`,q:1.2,delay:e}),this.noise({duration:.16,frequency:600,sweepTo:150,gain:.26,type:`lowpass`,q:5,delay:e+.02,offset:.3});for(let[t,n]of[.3,.75,1.2,1.65].entries())this.noise({duration:.22,frequency:520-t*60,sweepTo:170,gain:.15-t*.03,type:`bandpass`,q:4,delay:e+n,offset:.2+n})}retch(){for(let[e,t]of[0,.45].entries())this.tone({from:150-e*25,to:80,duration:.3,type:`sawtooth`,gain:.09,delay:t}),this.crowdVoice({duration:.36,first:[650,360],second:[1150,780],gain:.22,delay:t});this.noise({duration:.45,frequency:2400,sweepTo:300,gain:.24,type:`lowpass`,q:3,delay:.9,offset:.5}),this.spatter(1.05)}drum(e){this.tone({from:95,to:30,duration:.7,type:`sine`,gain:.35,delay:e}),this.noise({duration:.2,frequency:160,gain:.3,delay:e}),this.noise({duration:.03,frequency:1800,sweepTo:600,gain:.18,type:`bandpass`,q:1,delay:e})}omen(){this.drum(0),this.held({frequency:27.5,duration:1.4,gain:.3,attack:1.1,type:`sine`,delay:.1}),this.held({frequency:55,duration:1.4,gain:.12,attack:1.2,type:`sawtooth`,delay:.1}),this.held({frequency:58.3,duration:1.4,gain:.1,attack:1.2,type:`sawtooth`,delay:.1}),this.drum(1.5)}sting(){this.drum(0);for(let[e,t]of[196,185,147,110].entries())this.tone({from:t,to:t*.97,duration:.5,type:`sawtooth`,gain:.14,delay:e*.2}),this.tone({from:t/2,duration:.5,type:`square`,gain:.1,delay:e*.2});this.tone({from:73.4,to:69,duration:1.4,type:`sawtooth`,gain:.2,delay:.8}),this.tone({from:36.7,to:34.5,duration:1.4,type:`sine`,gain:.32,delay:.8}),this.drum(.8)}flatline(e){for(let t of[0,.38])this.held({frequency:880,duration:.09,gain:.1,attack:.005,type:`sine`,delay:e+t});this.held({frequency:880,duration:2.6,gain:.1,attack:.01,type:`sine`,delay:e+.76})}held(e){let t=this.context,n=this.master;if(t===null||n===null)return;let r=t.currentTime+(e.delay??0),i=Math.min(3,e.duration),a=Math.min(.35,e.gain),o=t.createOscillator(),s=t.createGain();o.type=e.type,o.frequency.setValueAtTime(Math.max(20,e.frequency),r),s.gain.setValueAtTime(1e-4,r),s.gain.exponentialRampToValueAtTime(a,r+Math.min(i-.03,e.attack)),s.gain.setValueAtTime(a,r+i-.03),s.gain.exponentialRampToValueAtTime(1e-4,r+i),o.connect(s).connect(n),o.start(r),o.stop(r+i+.03)}async decodeInjuryBuffers(e){let t=await Promise.all(Xi.map(async t=>{let n=atob(t.wav),r=new Uint8Array(n.length);for(let e=0;evoid 0)}},EA=class extends Error{code;reloadRequired;name=`ClientError`;constructor(e,t=!1){super(e),this.code=e,this.reloadRequired=t}};async function DA(e,t){if(!e.ok)throw new EA(e.status===429?`rate_limited`:t);if(!(e.headers.get(`content-type`)??``).toLowerCase().startsWith(`application/json`))throw new EA(t);try{return Mt(await e.text())}catch{throw new EA(t)}}function OA(e=window.location.search){let t=new URLSearchParams(e).getAll(`instance_id`);if(t.length!==1||!/^[A-Za-z0-9_-]{1,255}$/u.test(t[0]??``))throw new EA(`invalid_launch`);return t[0]}function kA(e){if(typeof e==`object`&&e&&`protocol`in e&&e.protocol!==7)throw new EA(`client_outdated`,!0)}async function AA(e,t){let n=new URL(`/api/hands/bootstrap`,window.location.origin);try{let r=await DA(await fetch(n,{method:`POST`,credentials:`same-origin`,cache:`no-store`,headers:{"Content-Type":`application/json`},body:JSON.stringify({instance_id:e}),...t===void 0?{}:{signal:t}}),`bootstrap_failed`);return kA(r),Sn(r)}catch(e){throw e instanceof EA?e:e instanceof Ot?new EA(`invalid_bootstrap`):new EA(`bootstrap_failed`)}}async function jA(e,t,n){try{return Cn(await DA(await fetch(new URL(`/api/hands/token`,window.location.origin),{method:`POST`,credentials:`same-origin`,cache:`no-store`,headers:{"Content-Type":`application/json`},body:JSON.stringify({code:e,state:t}),...n===void 0?{}:{signal:n}}),`token_failed`))}catch(e){throw e instanceof EA?e:e instanceof Ot?new EA(`invalid_token_response`):new EA(`token_failed`)}}function MA(e){return e instanceof EA?e.code:e instanceof Ot?`protocol_error`:`unexpected_error`}var NA=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function PA(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var FA={exports:{}},IA;function LA(){return IA||(IA=1,(function(e){var t=Object.prototype.hasOwnProperty,n=`~`;function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(e,t,r,a,o){if(typeof r!=`function`)throw TypeError(`The listener must be a function`);var s=new i(r,a||e,o),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function o(e,t){--e._eventsCount===0?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var e=[],r,i;if(this._eventsCount===0)return e;for(i in r=this._events)t.call(r,i)&&e.push(n?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(r)):e},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,a=r.length,o=Array(a);ie;function t(e){}e.assertIs=t;function n(e){throw Error()}e.assertNever=n,e.arrayToEnum=e=>{let t={};for(let n of e)t[n]=n;return t},e.getValidEnumValues=t=>{let n=e.objectKeys(t).filter(e=>typeof t[t[e]]!=`number`),r={};for(let e of n)r[e]=t[e];return e.objectValues(r)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys=typeof Object.keys==`function`?e=>Object.keys(e):e=>{let t=[];for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t},e.find=(e,t)=>{for(let n of e)if(t(n))return n},e.isInteger=typeof Number.isInteger==`function`?e=>Number.isInteger(e):e=>typeof e==`number`&&isFinite(e)&&Math.floor(e)===e;function r(e,t=` | `){return e.map(e=>typeof e==`string`?`'${e}'`:e).join(t)}e.joinValues=r,e.jsonStringifyReplacer=(e,t)=>typeof t==`bigint`?t.toString():t})(zA||={});var BA;(function(e){e.mergeShapes=(e,t)=>({...e,...t})})(BA||={});var K=zA.arrayToEnum([`string`,`nan`,`number`,`integer`,`float`,`boolean`,`date`,`bigint`,`symbol`,`function`,`undefined`,`null`,`array`,`object`,`unknown`,`promise`,`void`,`never`,`map`,`set`]),VA=e=>{switch(typeof e){case`undefined`:return K.undefined;case`string`:return K.string;case`number`:return isNaN(e)?K.nan:K.number;case`boolean`:return K.boolean;case`function`:return K.function;case`bigint`:return K.bigint;case`symbol`:return K.symbol;case`object`:return Array.isArray(e)?K.array:e===null?K.null:e.then&&typeof e.then==`function`&&e.catch&&typeof e.catch==`function`?K.promise:typeof Map<`u`&&e instanceof Map?K.map:typeof Set<`u`&&e instanceof Set?K.set:typeof Date<`u`&&e instanceof Date?K.date:K.object;default:return K.unknown}},q=zA.arrayToEnum([`invalid_type`,`invalid_literal`,`custom`,`invalid_union`,`invalid_union_discriminator`,`invalid_enum_value`,`unrecognized_keys`,`invalid_arguments`,`invalid_return_type`,`invalid_date`,`invalid_string`,`too_small`,`too_big`,`invalid_intersection_types`,`not_multiple_of`,`not_finite`]),HA=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,`$1:`),UA=class e extends Error{constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name=`ZodError`,this.issues=e}get errors(){return this.issues}format(e){let t=e||function(e){return e.message},n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`)i.unionErrors.map(r);else if(i.code===`invalid_return_type`)r(i.returnTypeError);else if(i.code===`invalid_arguments`)r(i.argumentsError);else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;re.message){let t={},n=[];for(let r of this.issues)r.path.length>0?(t[r.path[0]]=t[r.path[0]]||[],t[r.path[0]].push(e(r))):n.push(e(r));return{formErrors:n,fieldErrors:t}}get formErrors(){return this.flatten()}};UA.create=e=>new UA(e);var WA=(e,t)=>{let n;switch(e.code){case q.invalid_type:n=e.received===K.undefined?`Required`:`Expected ${e.expected}, received ${e.received}`;break;case q.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,zA.jsonStringifyReplacer)}`;break;case q.unrecognized_keys:n=`Unrecognized key(s) in object: ${zA.joinValues(e.keys,`, `)}`;break;case q.invalid_union:n=`Invalid input`;break;case q.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${zA.joinValues(e.options)}`;break;case q.invalid_enum_value:n=`Invalid enum value. Expected ${zA.joinValues(e.options)}, received '${e.received}'`;break;case q.invalid_arguments:n=`Invalid function arguments`;break;case q.invalid_return_type:n=`Invalid function return type`;break;case q.invalid_date:n=`Invalid date`;break;case q.invalid_string:typeof e.validation==`object`?`includes`in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position==`number`&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):`startsWith`in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:`endsWith`in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:zA.assertNever(e.validation):n=e.validation===`regex`?`Invalid`:`Invalid ${e.validation}`;break;case q.too_small:n=e.type===`array`?`Array must contain ${e.exact?`exactly`:e.inclusive?`at least`:`more than`} ${e.minimum} element(s)`:e.type===`string`?`String must contain ${e.exact?`exactly`:e.inclusive?`at least`:`over`} ${e.minimum} character(s)`:e.type===`number`?`Number must be ${e.exact?`exactly equal to `:e.inclusive?`greater than or equal to `:`greater than `}${e.minimum}`:e.type===`date`?`Date must be ${e.exact?`exactly equal to `:e.inclusive?`greater than or equal to `:`greater than `}${new Date(Number(e.minimum))}`:`Invalid input`;break;case q.too_big:n=e.type===`array`?`Array must contain ${e.exact?`exactly`:e.inclusive?`at most`:`less than`} ${e.maximum} element(s)`:e.type===`string`?`String must contain ${e.exact?`exactly`:e.inclusive?`at most`:`under`} ${e.maximum} character(s)`:e.type===`number`?`Number must be ${e.exact?`exactly`:e.inclusive?`less than or equal to`:`less than`} ${e.maximum}`:e.type===`bigint`?`BigInt must be ${e.exact?`exactly`:e.inclusive?`less than or equal to`:`less than`} ${e.maximum}`:e.type===`date`?`Date must be ${e.exact?`exactly`:e.inclusive?`smaller than or equal to`:`smaller than`} ${new Date(Number(e.maximum))}`:`Invalid input`;break;case q.custom:n=`Invalid input`;break;case q.invalid_intersection_types:n=`Intersection results could not be merged`;break;case q.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case q.not_finite:n=`Number must be finite`;break;default:n=t.defaultError,zA.assertNever(e)}return{message:n}},GA=WA;function KA(e){GA=e}function qA(){return GA}var JA=e=>{let{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],o={...i,path:a};if(i.message!==void 0)return{...i,path:a,message:i.message};let s=``,c=r.filter(e=>!!e).slice().reverse();for(let e of c)s=e(o,{data:t,defaultError:s}).message;return{...i,path:a,message:s}},YA=[];function J(e,t){let n=qA(),r=JA({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===WA?void 0:WA].filter(e=>!!e)});e.common.issues.push(r)}var XA=class e{constructor(){this.value=`valid`}dirty(){this.value===`valid`&&(this.value=`dirty`)}abort(){this.value!==`aborted`&&(this.value=`aborted`)}static mergeArray(e,t){let n=[];for(let r of t){if(r.status===`aborted`)return ZA;r.status===`dirty`&&e.dirty(),n.push(r.value)}return{status:e.value,value:n}}static async mergeObjectAsync(t,n){let r=[];for(let e of n){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return e.mergeObjectSync(t,r)}static mergeObjectSync(e,t){let n={};for(let r of t){let{key:t,value:i}=r;if(t.status===`aborted`||i.status===`aborted`)return ZA;t.status===`dirty`&&e.dirty(),i.status===`dirty`&&e.dirty(),t.value!==`__proto__`&&(i.value!==void 0||r.alwaysSet)&&(n[t.value]=i.value)}return{status:e.value,value:n}}},ZA=Object.freeze({status:`aborted`}),QA=e=>({status:`dirty`,value:e}),$A=e=>({status:`valid`,value:e}),ej=e=>e.status===`aborted`,tj=e=>e.status===`dirty`,nj=e=>e.status===`valid`,rj=e=>typeof Promise<`u`&&e instanceof Promise;function ij(e,t,n,r){if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return t.get(e)}function aj(e,t,n,r,i){if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return t.set(e,n),n}var oj;(function(e){e.errToObj=e=>typeof e==`string`?{message:e}:e||{},e.toString=e=>typeof e==`string`?e:e?.message})(oj||={});var sj,cj,lj=class{constructor(e,t,n,r){this._cachedPath=[],this.parent=e,this.data=t,this._path=n,this._key=r}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},uj=(e,t)=>{if(nj(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error(`Validation failed but no issues detected.`);return{success:!1,get error(){if(this._error)return this._error;let t=new UA(e.common.issues);return this._error=t,this._error}}};function dj(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{let{message:a}=e;return t.code===`invalid_enum_value`?{message:a??i.defaultError}:i.data===void 0?{message:a??r??i.defaultError}:t.code===`invalid_type`?{message:a??n??i.defaultError}:{message:i.defaultError}},description:i}}var fj=class{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return VA(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:VA(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new XA,ctx:{common:e.parent.common,data:e.data,parsedType:VA(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(rj(t))throw Error(`Synchronous parse encountered promise.`);return t}_parseAsync(e){let t=this._parse(e);return Promise.resolve(t)}parse(e,t){let n=this.safeParse(e,t);if(n.success)return n.data;throw n.error}safeParse(e,t){let n={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:VA(e)};return uj(n,this._parseSync({data:e,path:n.path,parent:n}))}async parseAsync(e,t){let n=await this.safeParseAsync(e,t);if(n.success)return n.data;throw n.error}async safeParseAsync(e,t){let n={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:VA(e)},r=this._parse({data:e,path:n.path,parent:n});return uj(n,await(rj(r)?r:Promise.resolve(r)))}refine(e,t){let n=e=>typeof t==`string`||t===void 0?{message:t}:typeof t==`function`?t(e):t;return this._refinement((t,r)=>{let i=e(t),a=()=>r.addIssue({code:q.custom,...n(t)});return typeof Promise<`u`&&i instanceof Promise?i.then(e=>e?!0:(a(),!1)):i?!0:(a(),!1)})}refinement(e,t){return this._refinement((n,r)=>e(n)?!0:(r.addIssue(typeof t==`function`?t(n,r):t),!1))}_refinement(e){return new lM({schema:this,typeName:xM.ZodEffects,effect:{type:`refinement`,refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return uM.create(this,this._def)}nullable(){return dM.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Wj.create(this,this._def)}promise(){return cM.create(this,this._def)}or(e){return qj.create([this,e],this._def)}and(e){return Zj.create(this,e,this._def)}transform(e){return new lM({...dj(this._def),schema:this,typeName:xM.ZodEffects,effect:{type:`transform`,transform:e}})}default(e){let t=typeof e==`function`?e:()=>e;return new fM({...dj(this._def),innerType:this,defaultValue:t,typeName:xM.ZodDefault})}brand(){return new gM({typeName:xM.ZodBranded,type:this,...dj(this._def)})}catch(e){let t=typeof e==`function`?e:()=>e;return new pM({...dj(this._def),innerType:this,catchValue:t,typeName:xM.ZodCatch})}describe(e){let t=this.constructor;return new t({...this._def,description:e})}pipe(e){return _M.create(this,e)}readonly(){return vM.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},pj=/^c[^\s-]{8,}$/i,mj=/^[0-9a-z]+$/,hj=/^[0-9A-HJKMNP-TV-Z]{26}$/,gj=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,_j=/^[a-z0-9_-]{21}$/i,vj=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,yj=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,bj=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`,xj,Sj=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Cj=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,wj=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,Tj=`((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))`,Ej=RegExp(`^${Tj}$`);function Dj(e){let t=`([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d`;return e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision??(t=`${t}(\\.\\d+)?`),t}function Oj(e){return RegExp(`^${Dj(e)}$`)}function kj(e){let t=`${Tj}T${Dj(e)}`,n=[];return n.push(e.local?`Z?`:`Z`),e.offset&&n.push(`([+-]\\d{2}:?\\d{2})`),t=`${t}(${n.join(`|`)})`,RegExp(`^${t}$`)}function Aj(e,t){return!((t!==`v4`&&t||!Sj.test(e))&&(t!==`v6`&&t||!Cj.test(e)))}var jj=class e extends fj{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==K.string){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.string,received:t.parsedType}),ZA}let t=new XA,n;for(let r of this._def.checks)if(r.kind===`min`)e.data.lengthr.value&&(n=this._getOrReturnCtx(e,n),J(n,{code:q.too_big,maximum:r.value,type:`string`,inclusive:!0,exact:!1,message:r.message}),t.dirty());else if(r.kind===`length`){let i=e.data.length>r.value,a=e.data.lengthe.test(t),{validation:t,code:q.invalid_string,...oj.errToObj(n)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(e){return this._addCheck({kind:`email`,...oj.errToObj(e)})}url(e){return this._addCheck({kind:`url`,...oj.errToObj(e)})}emoji(e){return this._addCheck({kind:`emoji`,...oj.errToObj(e)})}uuid(e){return this._addCheck({kind:`uuid`,...oj.errToObj(e)})}nanoid(e){return this._addCheck({kind:`nanoid`,...oj.errToObj(e)})}cuid(e){return this._addCheck({kind:`cuid`,...oj.errToObj(e)})}cuid2(e){return this._addCheck({kind:`cuid2`,...oj.errToObj(e)})}ulid(e){return this._addCheck({kind:`ulid`,...oj.errToObj(e)})}base64(e){return this._addCheck({kind:`base64`,...oj.errToObj(e)})}ip(e){return this._addCheck({kind:`ip`,...oj.errToObj(e)})}datetime(e){return typeof e==`string`?this._addCheck({kind:`datetime`,precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:`datetime`,precision:e?.precision===void 0?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...oj.errToObj(e?.message)})}date(e){return this._addCheck({kind:`date`,message:e})}time(e){return typeof e==`string`?this._addCheck({kind:`time`,precision:null,message:e}):this._addCheck({kind:`time`,precision:e?.precision===void 0?null:e?.precision,...oj.errToObj(e?.message)})}duration(e){return this._addCheck({kind:`duration`,...oj.errToObj(e)})}regex(e,t){return this._addCheck({kind:`regex`,regex:e,...oj.errToObj(t)})}includes(e,t){return this._addCheck({kind:`includes`,value:e,position:t?.position,...oj.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:`startsWith`,value:e,...oj.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:`endsWith`,value:e,...oj.errToObj(t)})}min(e,t){return this._addCheck({kind:`min`,value:e,...oj.errToObj(t)})}max(e,t){return this._addCheck({kind:`max`,value:e,...oj.errToObj(t)})}length(e,t){return this._addCheck({kind:`length`,value:e,...oj.errToObj(t)})}nonempty(e){return this.min(1,oj.errToObj(e))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:`trim`}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:`toLowerCase`}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:`toUpperCase`}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind===`datetime`)}get isDate(){return!!this._def.checks.find(e=>e.kind===`date`)}get isTime(){return!!this._def.checks.find(e=>e.kind===`time`)}get isDuration(){return!!this._def.checks.find(e=>e.kind===`duration`)}get isEmail(){return!!this._def.checks.find(e=>e.kind===`email`)}get isURL(){return!!this._def.checks.find(e=>e.kind===`url`)}get isEmoji(){return!!this._def.checks.find(e=>e.kind===`emoji`)}get isUUID(){return!!this._def.checks.find(e=>e.kind===`uuid`)}get isNANOID(){return!!this._def.checks.find(e=>e.kind===`nanoid`)}get isCUID(){return!!this._def.checks.find(e=>e.kind===`cuid`)}get isCUID2(){return!!this._def.checks.find(e=>e.kind===`cuid2`)}get isULID(){return!!this._def.checks.find(e=>e.kind===`ulid`)}get isIP(){return!!this._def.checks.find(e=>e.kind===`ip`)}get isBase64(){return!!this._def.checks.find(e=>e.kind===`base64`)}get minLength(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.valuenew jj({checks:[],typeName:xM.ZodString,coerce:e?.coerce??!1,...dj(e)});function Mj(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=(t.toString().split(`.`)[1]||``).length,i=n>r?n:r;return parseInt(e.toFixed(i).replace(`.`,``))%parseInt(t.toFixed(i).replace(`.`,``))/10**i}var Nj=class e extends fj{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==K.number){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.number,received:t.parsedType}),ZA}let t,n=new XA;for(let r of this._def.checks)r.kind===`int`?zA.isInteger(e.data)||(t=this._getOrReturnCtx(e,t),J(t,{code:q.invalid_type,expected:`integer`,received:`float`,message:r.message}),n.dirty()):r.kind===`min`?(r.inclusive?e.datar.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),J(t,{code:q.too_big,maximum:r.value,type:`number`,inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty()):r.kind===`multipleOf`?Mj(e.data,r.value)!==0&&(t=this._getOrReturnCtx(e,t),J(t,{code:q.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):r.kind===`finite`?Number.isFinite(e.data)||(t=this._getOrReturnCtx(e,t),J(t,{code:q.not_finite,message:r.message}),n.dirty()):zA.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit(`min`,e,!0,oj.toString(t))}gt(e,t){return this.setLimit(`min`,e,!1,oj.toString(t))}lte(e,t){return this.setLimit(`max`,e,!0,oj.toString(t))}lt(e,t){return this.setLimit(`max`,e,!1,oj.toString(t))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:oj.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(e){return this._addCheck({kind:`int`,message:oj.toString(e)})}positive(e){return this._addCheck({kind:`min`,value:0,inclusive:!1,message:oj.toString(e)})}negative(e){return this._addCheck({kind:`max`,value:0,inclusive:!1,message:oj.toString(e)})}nonpositive(e){return this._addCheck({kind:`max`,value:0,inclusive:!0,message:oj.toString(e)})}nonnegative(e){return this._addCheck({kind:`min`,value:0,inclusive:!0,message:oj.toString(e)})}multipleOf(e,t){return this._addCheck({kind:`multipleOf`,value:e,message:oj.toString(t)})}finite(e){return this._addCheck({kind:`finite`,message:oj.toString(e)})}safe(e){return this._addCheck({kind:`min`,inclusive:!0,value:-(2**53-1),message:oj.toString(e)})._addCheck({kind:`max`,inclusive:!0,value:2**53-1,message:oj.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.valuee.kind===`int`||e.kind===`multipleOf`&&zA.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let n of this._def.checks)if(n.kind===`finite`||n.kind===`int`||n.kind===`multipleOf`)return!0;else n.kind===`min`?(t===null||n.value>t)&&(t=n.value):n.kind===`max`&&(e===null||n.valuenew Nj({checks:[],typeName:xM.ZodNumber,coerce:e?.coerce||!1,...dj(e)});var Pj=class e extends fj{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==K.bigint){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.bigint,received:t.parsedType}),ZA}let t,n=new XA;for(let r of this._def.checks)r.kind===`min`?(r.inclusive?e.datar.value:e.data>=r.value)&&(t=this._getOrReturnCtx(e,t),J(t,{code:q.too_big,type:`bigint`,maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty()):r.kind===`multipleOf`?e.data%r.value!==BigInt(0)&&(t=this._getOrReturnCtx(e,t),J(t,{code:q.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):zA.assertNever(r);return{status:n.value,value:e.data}}gte(e,t){return this.setLimit(`min`,e,!0,oj.toString(t))}gt(e,t){return this.setLimit(`min`,e,!1,oj.toString(t))}lte(e,t){return this.setLimit(`max`,e,!0,oj.toString(t))}lt(e,t){return this.setLimit(`max`,e,!1,oj.toString(t))}setLimit(t,n,r,i){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:oj.toString(i)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(e){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!1,message:oj.toString(e)})}negative(e){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!1,message:oj.toString(e)})}nonpositive(e){return this._addCheck({kind:`max`,value:BigInt(0),inclusive:!0,message:oj.toString(e)})}nonnegative(e){return this._addCheck({kind:`min`,value:BigInt(0),inclusive:!0,message:oj.toString(e)})}multipleOf(e,t){return this._addCheck({kind:`multipleOf`,value:e,message:oj.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.valuenew Pj({checks:[],typeName:xM.ZodBigInt,coerce:e?.coerce??!1,...dj(e)});var Fj=class extends fj{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==K.boolean){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.boolean,received:t.parsedType}),ZA}return $A(e.data)}};Fj.create=e=>new Fj({typeName:xM.ZodBoolean,coerce:e?.coerce||!1,...dj(e)});var Ij=class e extends fj{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==K.date){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.date,received:t.parsedType}),ZA}if(isNaN(e.data.getTime()))return J(this._getOrReturnCtx(e),{code:q.invalid_date}),ZA;let t=new XA,n;for(let r of this._def.checks)r.kind===`min`?e.data.getTime()r.value&&(n=this._getOrReturnCtx(e,n),J(n,{code:q.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:`date`}),t.dirty()):zA.assertNever(r);return{status:t.value,value:new Date(e.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(e,t){return this._addCheck({kind:`min`,value:e.getTime(),message:oj.toString(t)})}max(e,t){return this._addCheck({kind:`max`,value:e.getTime(),message:oj.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)t.kind===`min`&&(e===null||t.value>e)&&(e=t.value);return e==null?null:new Date(e)}get maxDate(){let e=null;for(let t of this._def.checks)t.kind===`max`&&(e===null||t.valuenew Ij({checks:[],coerce:e?.coerce||!1,typeName:xM.ZodDate,...dj(e)});var Lj=class extends fj{_parse(e){if(this._getType(e)!==K.symbol){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.symbol,received:t.parsedType}),ZA}return $A(e.data)}};Lj.create=e=>new Lj({typeName:xM.ZodSymbol,...dj(e)});var Rj=class extends fj{_parse(e){if(this._getType(e)!==K.undefined){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.undefined,received:t.parsedType}),ZA}return $A(e.data)}};Rj.create=e=>new Rj({typeName:xM.ZodUndefined,...dj(e)});var zj=class extends fj{_parse(e){if(this._getType(e)!==K.null){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.null,received:t.parsedType}),ZA}return $A(e.data)}};zj.create=e=>new zj({typeName:xM.ZodNull,...dj(e)});var Bj=class extends fj{constructor(){super(...arguments),this._any=!0}_parse(e){return $A(e.data)}};Bj.create=e=>new Bj({typeName:xM.ZodAny,...dj(e)});var Vj=class extends fj{constructor(){super(...arguments),this._unknown=!0}_parse(e){return $A(e.data)}};Vj.create=e=>new Vj({typeName:xM.ZodUnknown,...dj(e)});var Hj=class extends fj{_parse(e){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.never,received:t.parsedType}),ZA}};Hj.create=e=>new Hj({typeName:xM.ZodNever,...dj(e)});var Uj=class extends fj{_parse(e){if(this._getType(e)!==K.undefined){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.void,received:t.parsedType}),ZA}return $A(e.data)}};Uj.create=e=>new Uj({typeName:xM.ZodVoid,...dj(e)});var Wj=class e extends fj{_parse(e){let{ctx:t,status:n}=this._processInputParams(e),r=this._def;if(t.parsedType!==K.array)return J(t,{code:q.invalid_type,expected:K.array,received:t.parsedType}),ZA;if(r.exactLength!==null){let e=t.data.length>r.exactLength.value,i=t.data.lengthr.maxLength.value&&(J(t,{code:q.too_big,maximum:r.maxLength.value,type:`array`,inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),t.common.async)return Promise.all([...t.data].map((e,n)=>r.type._parseAsync(new lj(t,e,t.path,n)))).then(e=>XA.mergeArray(n,e));let i=[...t.data].map((e,n)=>r.type._parseSync(new lj(t,e,t.path,n)));return XA.mergeArray(n,i)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:oj.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:oj.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:oj.toString(n)}})}nonempty(e){return this.min(1,e)}};Wj.create=(e,t)=>new Wj({type:e,minLength:null,maxLength:null,exactLength:null,typeName:xM.ZodArray,...dj(t)});function Gj(e){if(e instanceof Kj){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=uM.create(Gj(r))}return new Kj({...e._def,shape:()=>t})}return e instanceof Wj?new Wj({...e._def,type:Gj(e.element)}):e instanceof uM?uM.create(Gj(e.unwrap())):e instanceof dM?dM.create(Gj(e.unwrap())):e instanceof Qj?Qj.create(e.items.map(e=>Gj(e))):e}var Kj=class e extends fj{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let e=this._def.shape(),t=zA.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==K.object){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.object,received:t.parsedType}),ZA}let{status:t,ctx:n}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),a=[];if(!(this._def.catchall instanceof Hj&&this._def.unknownKeys===`strip`))for(let e in n.data)i.includes(e)||a.push(e);let o=[];for(let e of i){let t=r[e],i=n.data[e];o.push({key:{status:`valid`,value:e},value:t._parse(new lj(n,i,n.path,e)),alwaysSet:e in n.data})}if(this._def.catchall instanceof Hj){let e=this._def.unknownKeys;if(e===`passthrough`)for(let e of a)o.push({key:{status:`valid`,value:e},value:{status:`valid`,value:n.data[e]}});else if(e===`strict`)a.length>0&&(J(n,{code:q.unrecognized_keys,keys:a}),t.dirty());else if(e!==`strip`)throw Error(`Internal ZodObject error: invalid unknownKeys value.`)}else{let e=this._def.catchall;for(let t of a){let r=n.data[t];o.push({key:{status:`valid`,value:t},value:e._parse(new lj(n,r,n.path,t)),alwaysSet:t in n.data})}}return n.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of o){let n=await t.key,r=await t.value;e.push({key:n,value:r,alwaysSet:t.alwaysSet})}return e}).then(e=>XA.mergeObjectSync(t,e)):XA.mergeObjectSync(t,o)}get shape(){return this._def.shape()}strict(t){return oj.errToObj,new e({...this._def,unknownKeys:`strict`,...t===void 0?{}:{errorMap:(e,n)=>{var r;let i=(r=this._def).errorMap?.call(r,e,n).message??n.defaultError;return e.code===`unrecognized_keys`?{message:oj.errToObj(t).message??i}:{message:i}}}})}strip(){return new e({...this._def,unknownKeys:`strip`})}passthrough(){return new e({...this._def,unknownKeys:`passthrough`})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:xM.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};return zA.objectKeys(t).forEach(e=>{t[e]&&this.shape[e]&&(n[e]=this.shape[e])}),new e({...this._def,shape:()=>n})}omit(t){let n={};return zA.objectKeys(this.shape).forEach(e=>{t[e]||(n[e]=this.shape[e])}),new e({...this._def,shape:()=>n})}deepPartial(){return Gj(this)}partial(t){let n={};return zA.objectKeys(this.shape).forEach(e=>{let r=this.shape[e];t&&!t[e]?n[e]=r:n[e]=r.optional()}),new e({...this._def,shape:()=>n})}required(t){let n={};return zA.objectKeys(this.shape).forEach(e=>{if(t&&!t[e])n[e]=this.shape[e];else{let t=this.shape[e];for(;t instanceof uM;)t=t._def.innerType;n[e]=t}}),new e({...this._def,shape:()=>n})}keyof(){return aM(zA.objectKeys(this.shape))}};Kj.create=(e,t)=>new Kj({shape:()=>e,unknownKeys:`strip`,catchall:Hj.create(),typeName:xM.ZodObject,...dj(t)}),Kj.strictCreate=(e,t)=>new Kj({shape:()=>e,unknownKeys:`strict`,catchall:Hj.create(),typeName:xM.ZodObject,...dj(t)}),Kj.lazycreate=(e,t)=>new Kj({shape:e,unknownKeys:`strip`,catchall:Hj.create(),typeName:xM.ZodObject,...dj(t)});var qj=class extends fj{_parse(e){let{ctx:t}=this._processInputParams(e),n=this._def.options;function r(e){for(let t of e)if(t.result.status===`valid`)return t.result;for(let n of e)if(n.result.status===`dirty`)return t.common.issues.push(...n.ctx.common.issues),n.result;let n=e.map(e=>new UA(e.ctx.common.issues));return J(t,{code:q.invalid_union,unionErrors:n}),ZA}if(t.common.async)return Promise.all(n.map(async e=>{let n={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:n}),ctx:n}})).then(r);{let e,r=[];for(let i of n){let n={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:n});if(a.status===`valid`)return a;a.status===`dirty`&&!e&&(e={result:a,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=r.map(e=>new UA(e));return J(t,{code:q.invalid_union,unionErrors:i}),ZA}}get options(){return this._def.options}};qj.create=(e,t)=>new qj({options:e,typeName:xM.ZodUnion,...dj(t)});var Jj=e=>e instanceof rM?Jj(e.schema):e instanceof lM?Jj(e.innerType()):e instanceof iM?[e.value]:e instanceof oM?e.options:e instanceof sM?zA.objectValues(e.enum):e instanceof fM?Jj(e._def.innerType):e instanceof Rj?[void 0]:e instanceof zj?[null]:e instanceof uM?[void 0,...Jj(e.unwrap())]:e instanceof dM?[null,...Jj(e.unwrap())]:e instanceof gM||e instanceof vM?Jj(e.unwrap()):e instanceof pM?Jj(e._def.innerType):[],Yj=class e extends fj{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==K.object)return J(t,{code:q.invalid_type,expected:K.object,received:t.parsedType}),ZA;let n=this.discriminator,r=t.data[n],i=this.optionsMap.get(r);return i?t.common.async?i._parseAsync({data:t.data,path:t.path,parent:t}):i._parseSync({data:t.data,path:t.path,parent:t}):(J(t,{code:q.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),ZA)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){let i=new Map;for(let e of n){let n=Jj(e.shape[t]);if(!n.length)throw Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let r of n){if(i.has(r))throw Error(`Discriminator property ${String(t)} has duplicate value ${String(r)}`);i.set(r,e)}}return new e({typeName:xM.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:i,...dj(r)})}};function Xj(e,t){let n=VA(e),r=VA(t);if(e===t)return{valid:!0,data:e};if(n===K.object&&r===K.object){let n=zA.objectKeys(t),r=zA.objectKeys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=Xj(e[n],t[n]);if(!r.valid)return{valid:!1};i[n]=r.data}return{valid:!0,data:i}}if(n===K.array&&r===K.array){if(e.length!==t.length)return{valid:!1};let n=[];for(let r=0;r{if(ej(e)||ej(r))return ZA;let i=Xj(e.value,r.value);return i.valid?((tj(e)||tj(r))&&t.dirty(),{status:t.value,value:i.data}):(J(n,{code:q.invalid_intersection_types}),ZA)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([e,t])=>r(e,t)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}};Zj.create=(e,t,n)=>new Zj({left:e,right:t,typeName:xM.ZodIntersection,...dj(n)});var Qj=class e extends fj{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==K.array)return J(n,{code:q.invalid_type,expected:K.array,received:n.parsedType}),ZA;if(n.data.lengththis._def.items.length&&(J(n,{code:q.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:`array`}),t.dirty());let r=[...n.data].map((e,t)=>{let r=this._def.items[t]||this._def.rest;return r?r._parse(new lj(n,e,n.path,t)):null}).filter(e=>!!e);return n.common.async?Promise.all(r).then(e=>XA.mergeArray(t,e)):XA.mergeArray(t,r)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};Qj.create=(e,t)=>{if(!Array.isArray(e))throw Error(`You must pass an array of schemas to z.tuple([ ... ])`);return new Qj({items:e,typeName:xM.ZodTuple,rest:null,...dj(t)})};var $j=class e extends fj{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==K.object)return J(n,{code:q.invalid_type,expected:K.object,received:n.parsedType}),ZA;let r=[],i=this._def.keyType,a=this._def.valueType;for(let e in n.data)r.push({key:i._parse(new lj(n,e,n.path,e)),value:a._parse(new lj(n,n.data[e],n.path,e)),alwaysSet:e in n.data});return n.common.async?XA.mergeObjectAsync(t,r):XA.mergeObjectSync(t,r)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof fj?new e({keyType:t,valueType:n,typeName:xM.ZodRecord,...dj(r)}):new e({keyType:jj.create(),valueType:t,typeName:xM.ZodRecord,...dj(n)})}},eM=class extends fj{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==K.map)return J(n,{code:q.invalid_type,expected:K.map,received:n.parsedType}),ZA;let r=this._def.keyType,i=this._def.valueType,a=[...n.data.entries()].map(([e,t],a)=>({key:r._parse(new lj(n,e,n.path,[a,`key`])),value:i._parse(new lj(n,t,n.path,[a,`value`]))}));if(n.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let n of a){let r=await n.key,i=await n.value;if(r.status===`aborted`||i.status===`aborted`)return ZA;(r.status===`dirty`||i.status===`dirty`)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let n of a){let r=n.key,i=n.value;if(r.status===`aborted`||i.status===`aborted`)return ZA;(r.status===`dirty`||i.status===`dirty`)&&t.dirty(),e.set(r.value,i.value)}return{status:t.value,value:e}}}};eM.create=(e,t,n)=>new eM({valueType:t,keyType:e,typeName:xM.ZodMap,...dj(n)});var tM=class e extends fj{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.parsedType!==K.set)return J(n,{code:q.invalid_type,expected:K.set,received:n.parsedType}),ZA;let r=this._def;r.minSize!==null&&n.data.sizer.maxSize.value&&(J(n,{code:q.too_big,maximum:r.maxSize.value,type:`set`,inclusive:!0,exact:!1,message:r.maxSize.message}),t.dirty());let i=this._def.valueType;function a(e){let n=new Set;for(let r of e){if(r.status===`aborted`)return ZA;r.status===`dirty`&&t.dirty(),n.add(r.value)}return{status:t.value,value:n}}let o=[...n.data.values()].map((e,t)=>i._parse(new lj(n,e,n.path,t)));return n.common.async?Promise.all(o).then(e=>a(e)):a(o)}min(t,n){return new e({...this._def,minSize:{value:t,message:oj.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:oj.toString(n)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}};tM.create=(e,t)=>new tM({valueType:e,minSize:null,maxSize:null,typeName:xM.ZodSet,...dj(t)});var nM=class e extends fj{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==K.function)return J(t,{code:q.invalid_type,expected:K.function,received:t.parsedType}),ZA;function n(e,n){return JA({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,qA(),WA].filter(e=>!!e),issueData:{code:q.invalid_arguments,argumentsError:n}})}function r(e,n){return JA({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,qA(),WA].filter(e=>!!e),issueData:{code:q.invalid_return_type,returnTypeError:n}})}let i={errorMap:t.common.contextualErrorMap},a=t.data;if(this._def.returns instanceof cM){let e=this;return $A(async function(...t){let o=new UA([]),s=await e._def.args.parseAsync(t,i).catch(e=>{throw o.addIssue(n(t,e)),o}),c=await Reflect.apply(a,this,s);return await e._def.returns._def.type.parseAsync(c,i).catch(e=>{throw o.addIssue(r(c,e)),o})})}{let e=this;return $A(function(...t){let o=e._def.args.safeParse(t,i);if(!o.success)throw new UA([n(t,o.error)]);let s=Reflect.apply(a,this,o.data),c=e._def.returns.safeParse(s,i);if(!c.success)throw new UA([r(s,c.error)]);return c.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:Qj.create(t).rest(Vj.create())})}returns(t){return new e({...this._def,returns:t})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(t,n,r){return new e({args:t||Qj.create([]).rest(Vj.create()),returns:n||Vj.create(),typeName:xM.ZodFunction,...dj(r)})}},rM=class extends fj{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}};rM.create=(e,t)=>new rM({getter:e,typeName:xM.ZodLazy,...dj(t)});var iM=class extends fj{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return J(t,{received:t.data,code:q.invalid_literal,expected:this._def.value}),ZA}return{status:`valid`,value:e.data}}get value(){return this._def.value}};iM.create=(e,t)=>new iM({value:e,typeName:xM.ZodLiteral,...dj(t)});function aM(e,t){return new oM({values:e,typeName:xM.ZodEnum,...dj(t)})}var oM=class e extends fj{constructor(){super(...arguments),sj.set(this,void 0)}_parse(e){if(typeof e.data!=`string`){let t=this._getOrReturnCtx(e),n=this._def.values;return J(t,{expected:zA.joinValues(n),received:t.parsedType,code:q.invalid_type}),ZA}if(ij(this,sj)||aj(this,sj,new Set(this._def.values)),!ij(this,sj).has(e.data)){let t=this._getOrReturnCtx(e),n=this._def.values;return J(t,{received:t.data,code:q.invalid_enum_value,options:n}),ZA}return $A(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(t,n=this._def){return e.create(t,{...this._def,...n})}exclude(t,n=this._def){return e.create(this.options.filter(e=>!t.includes(e)),{...this._def,...n})}};sj=new WeakMap,oM.create=aM;var sM=class extends fj{constructor(){super(...arguments),cj.set(this,void 0)}_parse(e){let t=zA.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(e);if(n.parsedType!==K.string&&n.parsedType!==K.number){let e=zA.objectValues(t);return J(n,{expected:zA.joinValues(e),received:n.parsedType,code:q.invalid_type}),ZA}if(ij(this,cj)||aj(this,cj,new Set(zA.getValidEnumValues(this._def.values))),!ij(this,cj).has(e.data)){let e=zA.objectValues(t);return J(n,{received:n.data,code:q.invalid_enum_value,options:e}),ZA}return $A(e.data)}get enum(){return this._def.values}};cj=new WeakMap,sM.create=(e,t)=>new sM({values:e,typeName:xM.ZodNativeEnum,...dj(t)});var cM=class extends fj{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==K.promise&&t.common.async===!1?(J(t,{code:q.invalid_type,expected:K.promise,received:t.parsedType}),ZA):$A((t.parsedType===K.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}};cM.create=(e,t)=>new cM({type:e,typeName:xM.ZodPromise,...dj(t)});var lM=class extends fj{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===xM.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:n}=this._processInputParams(e),r=this._def.effect||null,i={addIssue:e=>{J(n,e),e.fatal?t.abort():t.dirty()},get path(){return n.path}};if(i.addIssue=i.addIssue.bind(i),r.type===`preprocess`){let e=r.transform(n.data,i);if(n.common.async)return Promise.resolve(e).then(async e=>{if(t.value===`aborted`)return ZA;let r=await this._def.schema._parseAsync({data:e,path:n.path,parent:n});return r.status===`aborted`?ZA:r.status===`dirty`||t.value===`dirty`?QA(r.value):r});{if(t.value===`aborted`)return ZA;let r=this._def.schema._parseSync({data:e,path:n.path,parent:n});return r.status===`aborted`?ZA:r.status===`dirty`||t.value===`dirty`?QA(r.value):r}}if(r.type===`refinement`){let e=e=>{let t=r.refinement(e,i);if(n.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error(`Async refinement encountered during synchronous parse operation. Use .parseAsync instead.`);return e};if(n.common.async===!1){let r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return r.status===`aborted`?ZA:(r.status===`dirty`&&t.dirty(),e(r.value),{status:t.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>n.status===`aborted`?ZA:(n.status===`dirty`&&t.dirty(),e(n.value).then(()=>({status:t.value,value:n.value}))))}if(r.type===`transform`){if(n.common.async===!1){let e=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!nj(e))return e;let a=r.transform(e.value,i);if(a instanceof Promise)throw Error(`Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.`);return{status:t.value,value:a}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(e=>nj(e)?Promise.resolve(r.transform(e.value,i)).then(e=>({status:t.value,value:e})):e)}zA.assertNever(r)}};lM.create=(e,t,n)=>new lM({schema:e,typeName:xM.ZodEffects,effect:t,...dj(n)}),lM.createWithPreprocess=(e,t,n)=>new lM({schema:t,effect:{type:`preprocess`,transform:e},typeName:xM.ZodEffects,...dj(n)});var uM=class extends fj{_parse(e){return this._getType(e)===K.undefined?$A(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};uM.create=(e,t)=>new uM({innerType:e,typeName:xM.ZodOptional,...dj(t)});var dM=class extends fj{_parse(e){return this._getType(e)===K.null?$A(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}};dM.create=(e,t)=>new dM({innerType:e,typeName:xM.ZodNullable,...dj(t)});var fM=class extends fj{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return t.parsedType===K.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:t.path,parent:t})}removeDefault(){return this._def.innerType}};fM.create=(e,t)=>new fM({innerType:e,typeName:xM.ZodDefault,defaultValue:typeof t.default==`function`?t.default:()=>t.default,...dj(t)});var pM=class extends fj{_parse(e){let{ctx:t}=this._processInputParams(e),n={...t,common:{...t.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return rj(r)?r.then(e=>({status:`valid`,value:e.status===`valid`?e.value:this._def.catchValue({get error(){return new UA(n.common.issues)},input:n.data})})):{status:`valid`,value:r.status===`valid`?r.value:this._def.catchValue({get error(){return new UA(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}};pM.create=(e,t)=>new pM({innerType:e,typeName:xM.ZodCatch,catchValue:typeof t.catch==`function`?t.catch:()=>t.catch,...dj(t)});var mM=class extends fj{_parse(e){if(this._getType(e)!==K.nan){let t=this._getOrReturnCtx(e);return J(t,{code:q.invalid_type,expected:K.nan,received:t.parsedType}),ZA}return{status:`valid`,value:e.data}}};mM.create=e=>new mM({typeName:xM.ZodNaN,...dj(e)});var hM=Symbol(`zod_brand`),gM=class extends fj{_parse(e){let{ctx:t}=this._processInputParams(e),n=t.data;return this._def.type._parse({data:n,path:t.path,parent:t})}unwrap(){return this._def.type}},_M=class e extends fj{_parse(e){let{status:t,ctx:n}=this._processInputParams(e);if(n.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return e.status===`aborted`?ZA:e.status===`dirty`?(t.dirty(),QA(e.value)):this._def.out._parseAsync({data:e.value,path:n.path,parent:n})})();{let e=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return e.status===`aborted`?ZA:e.status===`dirty`?(t.dirty(),{status:`dirty`,value:e.value}):this._def.out._parseSync({data:e.value,path:n.path,parent:n})}}static create(t,n){return new e({in:t,out:n,typeName:xM.ZodPipeline})}},vM=class extends fj{_parse(e){let t=this._def.innerType._parse(e),n=e=>(nj(e)&&(e.value=Object.freeze(e.value)),e);return rj(t)?t.then(e=>n(e)):n(t)}unwrap(){return this._def.innerType}};vM.create=(e,t)=>new vM({innerType:e,typeName:xM.ZodReadonly,...dj(t)});function yM(e,t={},n){return e?Bj.create().superRefine((r,i)=>{if(!e(r)){let e=typeof t==`function`?t(r):typeof t==`string`?{message:t}:t,a=e.fatal??n??!0,o=typeof e==`string`?{message:e}:e;i.addIssue({code:`custom`,...o,fatal:a})}}):Bj.create()}var bM={object:Kj.lazycreate},xM;(function(e){e.ZodString=`ZodString`,e.ZodNumber=`ZodNumber`,e.ZodNaN=`ZodNaN`,e.ZodBigInt=`ZodBigInt`,e.ZodBoolean=`ZodBoolean`,e.ZodDate=`ZodDate`,e.ZodSymbol=`ZodSymbol`,e.ZodUndefined=`ZodUndefined`,e.ZodNull=`ZodNull`,e.ZodAny=`ZodAny`,e.ZodUnknown=`ZodUnknown`,e.ZodNever=`ZodNever`,e.ZodVoid=`ZodVoid`,e.ZodArray=`ZodArray`,e.ZodObject=`ZodObject`,e.ZodUnion=`ZodUnion`,e.ZodDiscriminatedUnion=`ZodDiscriminatedUnion`,e.ZodIntersection=`ZodIntersection`,e.ZodTuple=`ZodTuple`,e.ZodRecord=`ZodRecord`,e.ZodMap=`ZodMap`,e.ZodSet=`ZodSet`,e.ZodFunction=`ZodFunction`,e.ZodLazy=`ZodLazy`,e.ZodLiteral=`ZodLiteral`,e.ZodEnum=`ZodEnum`,e.ZodEffects=`ZodEffects`,e.ZodNativeEnum=`ZodNativeEnum`,e.ZodOptional=`ZodOptional`,e.ZodNullable=`ZodNullable`,e.ZodDefault=`ZodDefault`,e.ZodCatch=`ZodCatch`,e.ZodPromise=`ZodPromise`,e.ZodBranded=`ZodBranded`,e.ZodPipeline=`ZodPipeline`,e.ZodReadonly=`ZodReadonly`})(xM||={});var SM=(e,t={message:`Input not instance of ${e.name}`})=>yM(t=>t instanceof e,t),Y=jj.create,CM=Nj.create,wM=mM.create,TM=Pj.create,EM=Fj.create,DM=Ij.create,OM=Lj.create,kM=Rj.create,AM=zj.create,jM=Bj.create,MM=Vj.create,NM=Hj.create,PM=Uj.create,FM=Wj.create,X=Kj.create,IM=Kj.strictCreate,LM=qj.create,RM=Yj.create,zM=Zj.create,BM=Qj.create,VM=$j.create,HM=eM.create,UM=tM.create,WM=nM.create,GM=rM.create,KM=iM.create,qM=oM.create,JM=sM.create,YM=cM.create,XM=lM.create,ZM=uM.create,QM=dM.create,$M=lM.createWithPreprocess,eN=_M.create,Z=Object.freeze({__proto__:null,defaultErrorMap:WA,setErrorMap:KA,getErrorMap:qA,makeIssue:JA,EMPTY_PATH:YA,addIssueToContext:J,ParseStatus:XA,INVALID:ZA,DIRTY:QA,OK:$A,isAborted:ej,isDirty:tj,isValid:nj,isAsync:rj,get util(){return zA},get objectUtil(){return BA},ZodParsedType:K,getParsedType:VA,ZodType:fj,datetimeRegex:kj,ZodString:jj,ZodNumber:Nj,ZodBigInt:Pj,ZodBoolean:Fj,ZodDate:Ij,ZodSymbol:Lj,ZodUndefined:Rj,ZodNull:zj,ZodAny:Bj,ZodUnknown:Vj,ZodNever:Hj,ZodVoid:Uj,ZodArray:Wj,ZodObject:Kj,ZodUnion:qj,ZodDiscriminatedUnion:Yj,ZodIntersection:Zj,ZodTuple:Qj,ZodRecord:$j,ZodMap:eM,ZodSet:tM,ZodFunction:nM,ZodLazy:rM,ZodLiteral:iM,ZodEnum:oM,ZodNativeEnum:sM,ZodPromise:cM,ZodEffects:lM,ZodTransformer:lM,ZodOptional:uM,ZodNullable:dM,ZodDefault:fM,ZodCatch:pM,ZodNaN:mM,BRAND:hM,ZodBranded:gM,ZodPipeline:_M,ZodReadonly:vM,custom:yM,Schema:fj,ZodSchema:fj,late:bM,get ZodFirstPartyTypeKind(){return xM},coerce:{string:(e=>jj.create({...e,coerce:!0})),number:(e=>Nj.create({...e,coerce:!0})),boolean:(e=>Fj.create({...e,coerce:!0})),bigint:(e=>Pj.create({...e,coerce:!0})),date:(e=>Ij.create({...e,coerce:!0}))},any:jM,array:FM,bigint:TM,boolean:EM,date:DM,discriminatedUnion:RM,effect:XM,enum:qM,function:WM,instanceof:SM,intersection:zM,lazy:GM,literal:KM,map:HM,nan:wM,nativeEnum:JM,never:NM,null:AM,nullable:QM,number:CM,object:X,oboolean:()=>EM().optional(),onumber:()=>CM().optional(),optional:ZM,ostring:()=>Y().optional(),pipeline:eN,preprocess:$M,promise:YM,record:VM,set:UM,strictObject:IM,string:Y,symbol:OM,transformer:XM,tuple:BM,undefined:kM,union:LM,unknown:MM,void:PM,NEVER:ZA,ZodIssueCode:q,quotelessJson:HA,ZodError:UA}),tN={exports:{}},nN;function rN(){return nN||(nN=1,(function(e){var t=(function(e){var n=1e7,r=9007199254740992,i=f(r),a=`0123456789abcdefghijklmnopqrstuvwxyz`,o=typeof BigInt==`function`;function s(e,t,n,r){return e===void 0?s[0]:t===void 0||+t==10&&!n?P(e):_e(e,t,n,r)}function c(e,t){this.value=e,this.sign=t,this.isSmall=!1}c.prototype=Object.create(s.prototype);function l(e){this.value=e,this.sign=e<0,this.isSmall=!0}l.prototype=Object.create(s.prototype);function u(e){this.value=e}u.prototype=Object.create(s.prototype);function d(e){return-r0?Math.floor(e):Math.ceil(e)}function _(e,t){for(var r=e.length,i=t.length,a=Array(r),o=0,s=n,c,l=0;l=s),a[l]=c-o*s;for(;l0&&a.push(o),a}function v(e,t){return e.length>=t.length?_(e,t):_(t,e)}function y(e,t){for(var r=e.length,i=Array(r),a=n,o,s=0;s0;)i[s++]=t%a,t=Math.floor(t/a);return i}c.prototype.add=function(e){var t=P(e);if(this.sign!==t.sign)return this.subtract(t.negate());var n=this.value,r=t.value;return t.isSmall?new c(y(n,Math.abs(r)),this.sign):new c(v(n,r),this.sign)},c.prototype.plus=c.prototype.add,l.prototype.add=function(e){var t=P(e),n=this.value;if(n<0!==t.sign)return this.subtract(t.negate());var r=t.value;if(t.isSmall){if(d(n+r))return new l(n+r);r=f(Math.abs(r))}return new c(y(r,Math.abs(n)),n<0)},l.prototype.plus=l.prototype.add,u.prototype.add=function(e){return new u(this.value+P(e).value)},u.prototype.plus=u.prototype.add;function b(e,t){for(var r=e.length,i=t.length,a=Array(r),o=0,s=n,c=0,l;c=0?r=b(e,t):(r=b(t,e),n=!n),r=p(r),typeof r==`number`?(n&&(r=-r),new l(r)):new c(r,n)}function S(e,t,r){for(var i=e.length,a=Array(i),o=-t,s=n,u=0,d;u=0)},l.prototype.minus=l.prototype.subtract,u.prototype.subtract=function(e){return new u(this.value-P(e).value)},u.prototype.minus=u.prototype.subtract,c.prototype.negate=function(){return new c(this.value,!this.sign)},l.prototype.negate=function(){var e=this.sign,t=new l(-this.value);return t.sign=!e,t},u.prototype.negate=function(){return new u(-this.value)},c.prototype.abs=function(){return new c(this.value,!1)},l.prototype.abs=function(){return new l(Math.abs(this.value))},u.prototype.abs=function(){return new u(this.value>=0?this.value:-this.value)};function C(e,t){for(var r=e.length,i=t.length,a=h(r+i),o=n,s,c,l=0,u,d;l0;)i[c++]=o%a,o=Math.floor(o/a);return i}function T(e,t){for(var n=[];t-->0;)n.push(0);return n.concat(e)}function E(e,t){var n=Math.max(e.length,t.length);if(n<=30)return C(e,t);n=Math.ceil(n/2);var r=e.slice(n),i=e.slice(0,n),a=t.slice(n),o=t.slice(0,n),s=E(i,o),c=E(r,a),l=v(v(s,T(b(b(E(v(i,r),v(o,a)),s),c),n)),T(c,2*n));return m(l),l}function D(e,t){return-.012*e-.012*t+15e-6*e*t>0}c.prototype.multiply=function(e){var t=P(e),r=this.value,i=t.value,a=this.sign!==t.sign,o;if(t.isSmall){if(i===0)return s[0];if(i===1)return this;if(i===-1)return this.negate();if(o=Math.abs(i),o=0;f--){for(d=a-1,l[f+i]!==s&&(d=Math.floor((l[f+i]*a+l[f+i-1])/s)),m=0,g=0,v=u.length,_=0;_i&&(u=(u+1)*s),c=Math.ceil(u/d);do{if(f=w(t,c),M(f,o)<=0)break;c--}while(c);a.push(c),o=b(o,f)}return a.reverse(),[p(a),p(o)]}function te(e,t){var r=e.length,i=h(r),a=n,o,s,c=0,l;for(o=r-1;o>=0;--o)l=c*a+e[o],s=g(l/t),c=l-s*t,i[o]=s|0;return[i,c|0]}function j(e,t){var r,i=P(t);if(o)return[new u(e.value/i.value),new u(e.value%i.value)];var a=e.value,d=i.value,m;if(d===0)throw Error(`Cannot divide by zero`);if(e.isSmall)return i.isSmall?[new l(g(a/d)),new l(a%d)]:[s[0],e];if(i.isSmall){if(d===1)return[e,s[0]];if(d==-1)return[e.negate(),s[0]];var h=Math.abs(d);if(ht.length?1:-1;for(var n=e.length-1;n>=0;n--)if(e[n]!==t[n])return e[n]>t[n]?1:-1;return 0}c.prototype.compareAbs=function(e){var t=P(e),n=this.value,r=t.value;return t.isSmall?1:M(n,r)},l.prototype.compareAbs=function(e){var t=P(e),n=Math.abs(this.value),r=t.value;return t.isSmall?(r=Math.abs(r),n===r?0:n>r?1:-1):-1},u.prototype.compareAbs=function(e){var t=this.value,n=P(e).value;return t=t>=0?t:-t,n=n>=0?n:-n,t===n?0:t>n?1:-1},c.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=P(e),n=this.value,r=t.value;return this.sign===t.sign?t.isSmall?this.sign?-1:1:M(n,r)*(this.sign?-1:1):t.sign?1:-1},c.prototype.compareTo=c.prototype.compare,l.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=P(e),n=this.value,r=t.value;return t.isSmall?n==r?0:n>r?1:-1:n<0===t.sign?n<0?1:-1:n<0?-1:1},l.prototype.compareTo=l.prototype.compare,u.prototype.compare=function(e){if(e===1/0)return-1;if(e===-1/0)return 1;var t=this.value,n=P(e).value;return t===n?0:t>n?1:-1},u.prototype.compareTo=u.prototype.compare,c.prototype.equals=function(e){return this.compare(e)===0},u.prototype.eq=u.prototype.equals=l.prototype.eq=l.prototype.equals=c.prototype.eq=c.prototype.equals,c.prototype.notEquals=function(e){return this.compare(e)!==0},u.prototype.neq=u.prototype.notEquals=l.prototype.neq=l.prototype.notEquals=c.prototype.neq=c.prototype.notEquals,c.prototype.greater=function(e){return this.compare(e)>0},u.prototype.gt=u.prototype.greater=l.prototype.gt=l.prototype.greater=c.prototype.gt=c.prototype.greater,c.prototype.lesser=function(e){return this.compare(e)<0},u.prototype.lt=u.prototype.lesser=l.prototype.lt=l.prototype.lesser=c.prototype.lt=c.prototype.lesser,c.prototype.greaterOrEquals=function(e){return this.compare(e)>=0},u.prototype.geq=u.prototype.greaterOrEquals=l.prototype.geq=l.prototype.greaterOrEquals=c.prototype.geq=c.prototype.greaterOrEquals,c.prototype.lesserOrEquals=function(e){return this.compare(e)<=0},u.prototype.leq=u.prototype.lesserOrEquals=l.prototype.leq=l.prototype.lesserOrEquals=c.prototype.leq=c.prototype.lesserOrEquals,c.prototype.isEven=function(){return!(this.value[0]&1)},l.prototype.isEven=function(){return!(this.value&1)},u.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},c.prototype.isOdd=function(){return(this.value[0]&1)==1},l.prototype.isOdd=function(){return(this.value&1)==1},u.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},c.prototype.isPositive=function(){return!this.sign},l.prototype.isPositive=function(){return this.value>0},u.prototype.isPositive=l.prototype.isPositive,c.prototype.isNegative=function(){return this.sign},l.prototype.isNegative=function(){return this.value<0},u.prototype.isNegative=l.prototype.isNegative,c.prototype.isUnit=function(){return!1},l.prototype.isUnit=function(){return Math.abs(this.value)===1},u.prototype.isUnit=function(){return this.abs().value===BigInt(1)},c.prototype.isZero=function(){return!1},l.prototype.isZero=function(){return this.value===0},u.prototype.isZero=function(){return this.value===BigInt(0)},c.prototype.isDivisibleBy=function(e){var t=P(e);return t.isZero()?!1:t.isUnit()?!0:t.compareAbs(2)===0?this.isEven():this.mod(t).isZero()},u.prototype.isDivisibleBy=l.prototype.isDivisibleBy=c.prototype.isDivisibleBy;function ne(e){var t=e.abs();if(t.isUnit())return!1;if(t.equals(2)||t.equals(3)||t.equals(5))return!0;if(t.isEven()||t.isDivisibleBy(3)||t.isDivisibleBy(5))return!1;if(t.lesser(49))return!0}function re(e,n){for(var r=e.prev(),i=r,a=0,o,s,c;i.isEven();)i=i.divide(2),a++;next:for(s=0;s-r?new l(e-1):new c(i,!0)},u.prototype.prev=function(){return new u(this.value-BigInt(1))};for(var ie=[1];2*ie[ie.length-1]<=n;)ie.push(2*ie[ie.length-1]);var N=ie.length,ae=ie[N-1];function oe(e){return Math.abs(e)<=n}c.prototype.shiftLeft=function(e){var t=P(e).toJSNumber();if(!oe(t))throw Error(String(t)+` is too large for shifting.`);if(t<0)return this.shiftRight(-t);var n=this;if(n.isZero())return n;for(;t>=N;)n=n.multiply(ae),t-=N-1;return n.multiply(ie[t])},u.prototype.shiftLeft=l.prototype.shiftLeft=c.prototype.shiftLeft,c.prototype.shiftRight=function(e){var t,n=P(e).toJSNumber();if(!oe(n))throw Error(String(n)+` is too large for shifting.`);if(n<0)return this.shiftLeft(-n);for(var r=this;n>=N;){if(r.isZero()||r.isNegative()&&r.isUnit())return r;t=j(r,ae),r=t[1].isNegative()?t[0].prev():t[0],n-=N-1}return t=j(r,ie[n]),t[1].isNegative()?t[0].prev():t[0]},u.prototype.shiftRight=l.prototype.shiftRight=c.prototype.shiftRight;function se(e,n,r){n=P(n);for(var i=e.isNegative(),a=n.isNegative(),o=i?e.not():e,s=a?n.not():n,c=0,l=0,u=null,d=null,f=[];!o.isZero()||!s.isZero();)u=j(o,ae),c=u[1].toJSNumber(),i&&(c=ae-1-c),d=j(s,ae),l=d[1].toJSNumber(),a&&(l=ae-1-l),o=u[0],s=d[0],f.push(r(c,l));for(var p=r(+!!i,+!!a)===0?t(0):t(-1),m=f.length-1;m>=0;--m)p=p.multiply(ae).add(t(f[m]));return p}c.prototype.not=function(){return this.negate().prev()},u.prototype.not=l.prototype.not=c.prototype.not,c.prototype.and=function(e){return se(this,e,function(e,t){return e&t})},u.prototype.and=l.prototype.and=c.prototype.and,c.prototype.or=function(e){return se(this,e,function(e,t){return e|t})},u.prototype.or=l.prototype.or=c.prototype.or,c.prototype.xor=function(e){return se(this,e,function(e,t){return e^t})},u.prototype.xor=l.prototype.xor=c.prototype.xor;var ce=1<<30,le=(n&-n)*(n&-n)|ce;function ue(e){var t=e.value,r=typeof t==`number`?t|ce:typeof t==`bigint`?t|BigInt(ce):t[0]+t[1]*n|le;return r&-r}function de(e,n){if(n.compareTo(e)<=0){var r=de(e,n.square(n)),i=r.p,a=r.e,o=i.multiply(n);return o.compareTo(e)<=0?{p:o,e:a*2+1}:{p:i,e:a*2}}return{p:t(1),e:0}}c.prototype.bitLength=function(){var e=this;return e.compareTo(t(0))<0&&(e=e.negate().subtract(t(1))),e.compareTo(t(0))===0?t(0):t(de(e,t(2)).e).add(t(1))},u.prototype.bitLength=l.prototype.bitLength=c.prototype.bitLength;function fe(e,t){return e=P(e),t=P(t),e.greater(t)?e:t}function pe(e,t){return e=P(e),t=P(t),e.lesser(t)?e:t}function me(e,t){if(e=P(e).abs(),t=P(t).abs(),e.equals(t))return e;if(e.isZero())return t;if(t.isZero())return e;for(var n=s[1],r,i;e.isEven()&&t.isEven();)r=pe(ue(e),ue(t)),e=e.divide(r),t=t.divide(r),n=n.multiply(r);for(;e.isEven();)e=e.divide(ue(e));do{for(;t.isEven();)t=t.divide(ue(t));e.greater(t)&&(i=t,t=e,e=i),t=t.subtract(e)}while(!t.isZero());return n.isUnit()?e:e.multiply(n)}function he(e,t){return e=P(e).abs(),t=P(t).abs(),e.divide(me(e,t)).multiply(t)}function ge(e,t,r){e=P(e),t=P(t);var i=r||Math.random,a=pe(e,t),o=fe(e,t).subtract(a).add(1);if(o.isSmall)return a.add(Math.floor(i()*o));for(var c=be(o,n).value,l=[],u=!0,d=0;d=s){if(l===`1`&&s===1)continue;throw Error(l+` is not a valid digit in base `+t+`.`)}}t=P(t);var u=[],d=e[0]===`-`;for(o=+!!d;o`&&o=0;a--)r=r.add(e[a].times(i)),i=i.times(t);return n?r.negate():r}function ye(e,t){return t||=a,e`}function be(e,n){if(n=t(n),n.isZero()){if(e.isZero())return{value:[0],isNegative:!1};throw Error(`Cannot convert nonzero numbers to base 0.`)}if(n.equals(-1)){if(e.isZero())return{value:[0],isNegative:!1};if(e.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-e.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var r=Array.apply(null,Array(e.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return r.unshift([1]),{value:[].concat.apply([],r),isNegative:!1}}var i=!1;if(e.isNegative()&&n.isPositive()&&(i=!0,e=e.abs()),n.isUnit())return e.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(e.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:i};for(var a=[],o=e,s;o.isNegative()||o.compareAbs(n)>=0;){s=o.divmod(n),o=s.quotient;var c=s.remainder;c.isNegative()&&(c=n.minus(c).abs(),o=o.next()),a.push(c.toJSNumber())}return a.push(o.toJSNumber()),{value:a.reverse(),isNegative:i}}function xe(e,t,n){var r=be(e,t);return(r.isNegative?`-`:``)+r.value.map(function(e){return ye(e,n)}).join(``)}c.prototype.toArray=function(e){return be(this,e)},l.prototype.toArray=function(e){return be(this,e)},u.prototype.toArray=function(e){return be(this,e)},c.prototype.toString=function(t,n){if(t===e&&(t=10),t!==10||n)return xe(this,t,n);for(var r=this.value,i=r.length,a=String(r[--i]),o=`0000000`,s;--i>=0;)s=String(r[i]),a+=o.slice(s.length)+s;return(this.sign?`-`:``)+a},l.prototype.toString=function(t,n){return t===e&&(t=10),t!=10||n?xe(this,t,n):String(this.value)},u.prototype.toString=l.prototype.toString,u.prototype.toJSON=c.prototype.toJSON=l.prototype.toJSON=function(){return this.toString()},c.prototype.valueOf=function(){return parseInt(this.toString(),10)},c.prototype.toJSNumber=c.prototype.valueOf,l.prototype.valueOf=function(){return this.value},l.prototype.toJSNumber=l.prototype.valueOf,u.prototype.valueOf=u.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};function Se(e){if(d(+e)){var t=+e;if(t===g(t))return o?new u(BigInt(t)):new l(t);throw Error(`Invalid integer: `+e)}var n=e[0]===`-`;n&&(e=e.slice(1));var r=e.split(/e/i);if(r.length>2)throw Error(`Invalid integer: `+r.join(`e`));if(r.length===2){var i=r[1];if(i[0]===`+`&&(i=i.slice(1)),i=+i,i!==g(i)||!d(i))throw Error(`Invalid integer: `+i+` is not a valid exponent.`);var a=r[0],s=a.indexOf(`.`);if(s>=0&&(i-=a.length-s-1,a=a.slice(0,s)+a.slice(s+1)),i<0)throw Error(`Cannot include negative exponent part for integers`);a+=Array(i+1).join(`0`),e=a}if(!/^([0-9][0-9]*)$/.test(e))throw Error(`Invalid integer: `+e);if(o)return new u(BigInt(n?`-`+e:e));for(var f=[],p=e.length,h=7,_=p-h;p>0;)f.push(+e.slice(_,p)),_-=h,_<0&&(_=0),p-=h;return m(f),new c(f,n)}function Ce(e){if(o)return new u(BigInt(e));if(d(e)){if(e!==g(e))throw Error(e+` is not an integer.`);return new l(e)}return Se(e.toString())}function P(e){return typeof e==`number`?Ce(e):typeof e==`string`?Se(e):typeof e==`bigint`?new u(e):e}for(var we=0;we<1e3;we++)s[we]=P(we),we>0&&(s[-we]=P(-we));return s.one=s[1],s.zero=s[0],s.minusOne=s[-1],s.max=fe,s.min=pe,s.gcd=me,s.lcm=he,s.isInstance=function(e){return e instanceof c||e instanceof l||e instanceof u},s.randBetween=ge,s.fromArray=function(e,t,n){return ve(e.map(P),P(t||10),n)},s})();e.hasOwnProperty(`exports`)&&(e.exports=t)})(tN)),tN.exports}var iN=PA(rN()),aN=64,oN=16,sN=aN/oN;function cN(){try{return!0}catch{return!1}}function lN(e,t,n){let r=0;for(let i=0;ie&t[n]))}or({parts:t}){return new e(this.parts.map((e,n)=>e|t[n]))}xor({parts:t}){return new e(this.parts.map((e,n)=>e^t[n]))}not(){return new e(this.parts.map(e=>~e))}equals({parts:e}){return this.parts.every((t,n)=>t===e[n])}toString(){if(this.str!=null)return this.str;let e=Array(aN/4);return this.parts.forEach((t,n)=>{let r=uN(t.toString());for(let t=0;t<4;t++)e[t+n*4]=r[3-t]||0}),this.str=iN.fromArray(e,16).toString()}toJSON(){return this.toString()}},pN=cN();pN&&BigInt.prototype.toJSON==null&&(BigInt.prototype.toJSON=function(){return this.toString()});var mN={},hN=pN?function(e){return BigInt(e)}:function(e){return e instanceof fN?e:(typeof e==`number`&&(e=e.toString()),mN[e]??(mN[e]=fN.fromString(e)),mN[e])},gN=hN(0),_N=pN?function(e=gN,t=gN){return e&t}:function(e=gN,t=gN){return e.and(t)},vN=pN?function(e=gN,t=gN){return e|t}:function(e=gN,t=gN){return e.or(t)},yN=pN?function(e=gN,t=gN){return e^t}:function(e=gN,t=gN){return e.xor(t)},bN=pN?function(e=gN){return~e}:function(e=gN){return e.not()},xN=pN?function(e,t){return e===t}:function(e,t){return e==null||t==null?e==t:e.equals(t)};function SN(...e){let t=e[0];for(let n=1;n{let[n]=Object.entries(e).find(([,e])=>e===t)??[];return t!=null&&n===void 0?e.UNHANDLED:t},Y().or(CM()))}function NN(e){let t=yM().transform(t=>{let n=e.safeParse(t);return n.success?n.data:e._def.defaultValue()});return t.overlayType=e,t}var PN=Z.object({image_url:Z.string()}).describe(`Response for "INITIATE_IMAGE_UPLOAD" Command`),FN=Z.object({mediaUrl:Z.string().max(1024)}).describe(`Request for "OPEN_SHARE_MOMENT_DIALOG" Command`),IN=Z.object({access_token:Z.union([Z.string(),Z.null()]).optional()}).describe(`Request for "AUTHENTICATE" Command`),LN=Z.object({access_token:Z.string(),user:Z.object({username:Z.string(),discriminator:Z.string(),id:Z.string(),avatar:Z.union([Z.string(),Z.null()]).optional(),public_flags:Z.number(),global_name:Z.union([Z.string(),Z.null()]).optional()}),scopes:Z.array(NN(Z.enum(`identify,identify.premium,email,connections,guilds,guilds.join,guilds.members.read,guilds.channels.read,gdm.join,bot,rpc,rpc.notifications.read,rpc.voice.read,rpc.voice.write,rpc.video.read,rpc.video.write,rpc.screenshare.read,rpc.screenshare.write,rpc.activities.write,webhook.incoming,messages.read,applications.builds.upload,applications.builds.read,applications.commands,applications.commands.permissions.update,applications.commands.update,applications.store.update,applications.entitlements,activities.read,activities.write,activities.invites.write,relationships.read,relationships.write,voice,dm_channels.read,role_connections.write,presences.read,presences.write,openid,dm_channels.messages.read,dm_channels.messages.write,gateway.connect,account.global_name.update,payment_sources.country_code,sdk.social_layer_presence,sdk.social_layer,lobbies.write,application_identities.write`.split(`,`)).or(Z.literal(-1)).default(-1))),expires:Z.string(),application:Z.object({description:Z.string(),icon:Z.union([Z.string(),Z.null()]).optional(),id:Z.string(),rpc_origins:Z.array(Z.string()).optional(),name:Z.string()})}).describe(`Response for "AUTHENTICATE" Command`),RN=Z.object({participants:Z.array(Z.object({id:Z.string(),username:Z.string(),global_name:Z.union([Z.string(),Z.null()]).optional(),discriminator:Z.string(),avatar:Z.union([Z.string(),Z.null()]).optional(),flags:Z.number(),bot:Z.boolean(),avatar_decoration_data:Z.union([Z.object({asset:Z.union([Z.string(),Z.null()]).optional(),skuId:Z.string().optional(),expiresAt:Z.number().optional()}),Z.null()]).optional(),premium_type:Z.union([Z.number(),Z.null()]).optional(),nickname:Z.string().optional()}))}).describe(`Response for "GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS" Command`),zN=Z.object({command:Z.string(),options:Z.array(Z.object({name:Z.string(),value:Z.string()})).optional(),content:Z.string().max(2e3).optional(),require_launch_channel:Z.boolean().optional(),preview_image:Z.object({height:Z.number(),url:Z.string(),width:Z.number()}).optional(),components:Z.array(Z.object({type:Z.literal(1),components:Z.array(Z.object({type:Z.literal(2),style:Z.number().gte(1).lte(5),label:Z.string().max(80).optional(),custom_id:Z.string().max(100).describe(`Developer-defined identifier for the button; max 100 characters`).optional()})).max(5).optional()})).optional(),pid:Z.number().optional()}).describe(`Request for "SHARE_INTERACTION" Command`),BN=Z.object({success:Z.boolean()}).describe(`Response for "SHARE_INTERACTION" Command`),VN=Z.object({custom_id:Z.string().max(64).optional(),message:Z.string().max(1e3),link_id:Z.string().max(64).optional()}).describe(`Request for "SHARE_LINK" Command`),HN=Z.object({success:Z.boolean(),didCopyLink:Z.boolean(),didSendMessage:Z.boolean()}).describe(`Response for "SHARE_LINK" Command`),UN=Z.object({relationships:Z.array(Z.object({type:Z.number(),user:Z.object({id:Z.string(),username:Z.string(),global_name:Z.union([Z.string(),Z.null()]).optional(),discriminator:Z.string(),avatar:Z.union([Z.string(),Z.null()]).optional(),flags:Z.number(),bot:Z.boolean(),avatar_decoration_data:Z.union([Z.object({asset:Z.union([Z.string(),Z.null()]).optional(),skuId:Z.string().optional(),expiresAt:Z.number().optional()}),Z.null()]).optional(),premium_type:Z.union([Z.number(),Z.null()]).optional()}),presence:Z.object({status:Z.string(),activity:Z.union([Z.object({session_id:Z.string().optional(),type:Z.number().optional(),name:Z.string(),url:Z.union([Z.string(),Z.null()]).optional(),application_id:Z.string().optional(),status_display_type:Z.number().optional(),state:Z.string().optional(),state_url:Z.string().optional(),details:Z.string().optional(),details_url:Z.string().optional(),emoji:Z.union([Z.object({name:Z.string(),id:Z.union([Z.string(),Z.null()]).optional(),animated:Z.union([Z.boolean(),Z.null()]).optional()}),Z.null()]).optional(),assets:Z.object({large_image:Z.string().optional(),large_text:Z.string().optional(),large_url:Z.string().optional(),small_image:Z.string().optional(),small_text:Z.string().optional(),small_url:Z.string().optional()}).optional(),timestamps:Z.object({start:Z.number().optional(),end:Z.number().optional()}).optional(),party:Z.object({id:Z.string().optional(),size:Z.array(Z.number()).min(2).max(2).optional(),privacy:Z.number().optional()}).optional(),secrets:Z.object({match:Z.string().optional(),join:Z.string().optional()}).optional(),sync_id:Z.string().optional(),created_at:Z.number().optional(),instance:Z.boolean().optional(),flags:Z.number().optional(),metadata:Z.object({}).optional(),platform:Z.string().optional(),supported_platforms:Z.array(Z.string()).optional(),buttons:Z.array(Z.string()).optional(),hangStatus:Z.string().optional()}),Z.null()]).optional()}).optional()}))}).describe(`Response for "GET_RELATIONSHIPS" Command`),WN=Z.object({user_id:Z.string(),content:Z.string().min(0).max(1024).optional()}).describe(`Request for "INVITE_USER_EMBEDDED" Command`),GN=Z.object({id:Z.string().max(64)}).describe(`Request for "GET_USER" Command`),KN=Z.union([Z.object({id:Z.string(),username:Z.string(),global_name:Z.union([Z.string(),Z.null()]).optional(),discriminator:Z.string(),avatar:Z.union([Z.string(),Z.null()]).optional(),flags:Z.number(),bot:Z.boolean(),avatar_decoration_data:Z.union([Z.object({asset:Z.union([Z.string(),Z.null()]).optional(),skuId:Z.string().optional(),expiresAt:Z.number().optional()}),Z.null()]).optional(),premium_type:Z.union([Z.number(),Z.null()]).optional()}),Z.null()]),qN=Z.object({quest_id:Z.string()}).describe(`Request for "GET_QUEST_ENROLLMENT_STATUS" Command`),JN=Z.object({quest_id:Z.string(),is_enrolled:Z.boolean(),enrolled_at:Z.union([Z.string(),Z.null()]).optional()}).describe(`Response for "GET_QUEST_ENROLLMENT_STATUS" Command`),YN=Z.object({quest_id:Z.string()}).describe(`Request for "QUEST_START_TIMER" Command`),XN=Z.object({success:Z.boolean()}).describe(`Response for "QUEST_START_TIMER" Command`),ZN=Z.object({quest_id:Z.string(),enrolled_at:Z.union([Z.string(),Z.null()]).optional(),completed_at:Z.union([Z.string(),Z.null()]).optional(),external_cta_url:Z.string()}).describe(`Response for "GET_QUEST" Command`),QN=Z.object({ticket:Z.string()}).describe(`Response for "REQUEST_PROXY_TICKET_REFRESH" Command`),$N;(function(e){e.INITIATE_IMAGE_UPLOAD=`INITIATE_IMAGE_UPLOAD`,e.OPEN_SHARE_MOMENT_DIALOG=`OPEN_SHARE_MOMENT_DIALOG`,e.AUTHENTICATE=`AUTHENTICATE`,e.GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS=`GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS`,e.SHARE_INTERACTION=`SHARE_INTERACTION`,e.SHARE_LINK=`SHARE_LINK`,e.GET_RELATIONSHIPS=`GET_RELATIONSHIPS`,e.INVITE_USER_EMBEDDED=`INVITE_USER_EMBEDDED`,e.GET_USER=`GET_USER`,e.GET_QUEST_ENROLLMENT_STATUS=`GET_QUEST_ENROLLMENT_STATUS`,e.QUEST_START_TIMER=`QUEST_START_TIMER`,e.GET_QUEST=`GET_QUEST`,e.REQUEST_PROXY_TICKET_REFRESH=`REQUEST_PROXY_TICKET_REFRESH`})($N||={});var eP=Z.object({}).optional().nullable(),tP=Z.void(),nP={[$N.INITIATE_IMAGE_UPLOAD]:{request:tP,response:PN},[$N.OPEN_SHARE_MOMENT_DIALOG]:{request:FN,response:eP},[$N.AUTHENTICATE]:{request:IN,response:LN},[$N.GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS]:{request:tP,response:RN},[$N.SHARE_INTERACTION]:{request:zN,response:BN},[$N.SHARE_LINK]:{request:VN,response:HN},[$N.GET_RELATIONSHIPS]:{request:tP,response:UN},[$N.INVITE_USER_EMBEDDED]:{request:WN,response:eP},[$N.GET_USER]:{request:GN,response:KN},[$N.GET_QUEST_ENROLLMENT_STATUS]:{request:qN,response:JN},[$N.QUEST_START_TIMER]:{request:YN,response:XN},[$N.GET_QUEST]:{request:tP,response:ZN},[$N.REQUEST_PROXY_TICKET_REFRESH]:{request:tP,response:QN}},rP=t({Activity:()=>vP,Attachment:()=>DP,CertifiedDevice:()=>qP,CertifiedDeviceTypeObject:()=>KP,Channel:()=>SP,ChannelMention:()=>EP,ChannelTypesObject:()=>xP,Commands:()=>aP,DISPATCH:()=>iP,Embed:()=>PP,EmbedAuthor:()=>MP,EmbedField:()=>NP,EmbedFooter:()=>OP,EmbedProvider:()=>jP,Emoji:()=>pP,Entitlement:()=>ZP,EntitlementTypesObject:()=>XP,Guild:()=>TP,GuildMember:()=>dP,GuildMemberRPC:()=>fP,Image:()=>kP,KeyTypesObject:()=>VP,LayoutMode:()=>aF,LayoutModeTypeObject:()=>iF,Message:()=>zP,MessageActivity:()=>IP,MessageApplication:()=>LP,MessageReference:()=>RP,Orientation:()=>rF,OrientationLockState:()=>$P,OrientationLockStateTypeObject:()=>QP,OrientationTypeObject:()=>nF,PermissionOverwrite:()=>bP,PermissionOverwriteTypeObject:()=>yP,PresenceUpdate:()=>CP,Reaction:()=>FP,ReceiveFramePayload:()=>oP,Relationship:()=>lP,Role:()=>wP,Scopes:()=>cP,ScopesObject:()=>sP,ShortcutKey:()=>HP,Sku:()=>YP,SkuTypeObject:()=>JP,Status:()=>_P,StatusObject:()=>gP,ThermalState:()=>tF,ThermalStateTypeObject:()=>eF,User:()=>uP,UserVoiceState:()=>hP,Video:()=>AP,VoiceDevice:()=>BP,VoiceSettingModeTypeObject:()=>UP,VoiceSettingsIO:()=>GP,VoiceSettingsMode:()=>WP,VoiceState:()=>mP}),iP=`DISPATCH`,aP;(function(e){e.AUTHORIZE=`AUTHORIZE`,e.GET_GUILDS=`GET_GUILDS`,e.GET_GUILD=`GET_GUILD`,e.GET_CHANNEL=`GET_CHANNEL`,e.GET_CHANNELS=`GET_CHANNELS`,e.SELECT_VOICE_CHANNEL=`SELECT_VOICE_CHANNEL`,e.SELECT_TEXT_CHANNEL=`SELECT_TEXT_CHANNEL`,e.SUBSCRIBE=`SUBSCRIBE`,e.UNSUBSCRIBE=`UNSUBSCRIBE`,e.CAPTURE_SHORTCUT=`CAPTURE_SHORTCUT`,e.SET_CERTIFIED_DEVICES=`SET_CERTIFIED_DEVICES`,e.SET_ACTIVITY=`SET_ACTIVITY`,e.GET_SKUS=`GET_SKUS`,e.GET_ENTITLEMENTS=`GET_ENTITLEMENTS`,e.GET_SKUS_EMBEDDED=`GET_SKUS_EMBEDDED`,e.GET_ENTITLEMENTS_EMBEDDED=`GET_ENTITLEMENTS_EMBEDDED`,e.START_PURCHASE=`START_PURCHASE`,e.SET_CONFIG=`SET_CONFIG`,e.SEND_ANALYTICS_EVENT=`SEND_ANALYTICS_EVENT`,e.USER_SETTINGS_GET_LOCALE=`USER_SETTINGS_GET_LOCALE`,e.OPEN_EXTERNAL_LINK=`OPEN_EXTERNAL_LINK`,e.ENCOURAGE_HW_ACCELERATION=`ENCOURAGE_HW_ACCELERATION`,e.CAPTURE_LOG=`CAPTURE_LOG`,e.SET_ORIENTATION_LOCK_STATE=`SET_ORIENTATION_LOCK_STATE`,e.OPEN_INVITE_DIALOG=`OPEN_INVITE_DIALOG`,e.GET_PLATFORM_BEHAVIORS=`GET_PLATFORM_BEHAVIORS`,e.GET_CHANNEL_PERMISSIONS=`GET_CHANNEL_PERMISSIONS`,e.AUTHENTICATE=`AUTHENTICATE`,e.GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS=`GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS`,e.GET_QUEST=`GET_QUEST`,e.GET_QUEST_ENROLLMENT_STATUS=`GET_QUEST_ENROLLMENT_STATUS`,e.GET_RELATIONSHIPS=`GET_RELATIONSHIPS`,e.GET_USER=`GET_USER`,e.INITIATE_IMAGE_UPLOAD=`INITIATE_IMAGE_UPLOAD`,e.INVITE_USER_EMBEDDED=`INVITE_USER_EMBEDDED`,e.OPEN_SHARE_MOMENT_DIALOG=`OPEN_SHARE_MOMENT_DIALOG`,e.QUEST_START_TIMER=`QUEST_START_TIMER`,e.REQUEST_PROXY_TICKET_REFRESH=`REQUEST_PROXY_TICKET_REFRESH`,e.SHARE_INTERACTION=`SHARE_INTERACTION`,e.SHARE_LINK=`SHARE_LINK`})(aP||={});var oP=X({cmd:Y(),data:MM(),evt:AM(),nonce:Y()}).passthrough(),sP=Object.assign(Object.assign({},LN.shape.scopes.element.overlayType._def.innerType.options[0].Values),{UNHANDLED:-1}),cP=MN(sP),lP=UN.shape.relationships.element,uP=X({id:Y(),username:Y(),discriminator:Y(),global_name:Y().optional().nullable(),avatar:Y().optional().nullable(),avatar_decoration_data:X({asset:Y(),sku_id:Y().optional()}).nullable(),bot:EM(),flags:CM().optional().nullable(),premium_type:CM().optional().nullable()}),dP=X({user:uP,nick:Y().optional().nullable(),roles:FM(Y()),joined_at:Y(),deaf:EM(),mute:EM()}),fP=X({user_id:Y(),nick:Y().optional().nullable(),guild_id:Y(),avatar:Y().optional().nullable(),avatar_decoration_data:X({asset:Y(),sku_id:Y().optional().nullable()}).optional().nullable(),color_string:Y().optional().nullable()}),pP=X({id:Y(),name:Y().optional().nullable(),roles:FM(Y()).optional().nullable(),user:uP.optional().nullable(),require_colons:EM().optional().nullable(),managed:EM().optional().nullable(),animated:EM().optional().nullable(),available:EM().optional().nullable()}),mP=X({mute:EM(),deaf:EM(),self_mute:EM(),self_deaf:EM(),suppress:EM()}),hP=X({mute:EM(),nick:Y(),user:uP,voice_state:mP,volume:CM()}),gP={UNHANDLED:-1,IDLE:`idle`,DND:`dnd`,ONLINE:`online`,OFFLINE:`offline`},_P=MN(gP),vP=X({name:Y(),type:CM(),url:Y().optional().nullable(),created_at:CM().optional().nullable(),timestamps:X({start:CM(),end:CM()}).partial().optional().nullable(),application_id:Y().optional().nullable(),details:Y().optional().nullable(),details_url:Y().url().optional().nullable(),state:Y().optional().nullable(),state_url:Y().url().optional().nullable(),emoji:pP.optional().nullable(),party:X({id:Y().optional().nullable(),size:FM(CM()).optional().nullable()}).optional().nullable(),assets:X({large_image:Y().nullable(),large_text:Y().nullable(),large_url:Y().url().optional().nullable(),small_image:Y().nullable(),small_text:Y().nullable(),small_url:Y().url().optional().nullable()}).partial().optional().nullable(),secrets:X({join:Y(),match:Y()}).partial().optional().nullable(),instance:EM().optional().nullable(),flags:CM().optional().nullable()}),yP={UNHANDLED:-1,ROLE:0,MEMBER:1},bP=X({id:Y(),type:MN(yP),allow:Y(),deny:Y()}),xP={UNHANDLED:-1,DM:1,GROUP_DM:3,GUILD_TEXT:0,GUILD_VOICE:2,GUILD_CATEGORY:4,GUILD_ANNOUNCEMENT:5,GUILD_STORE:6,ANNOUNCEMENT_THREAD:10,PUBLIC_THREAD:11,PRIVATE_THREAD:12,GUILD_STAGE_VOICE:13,GUILD_DIRECTORY:14,GUILD_FORUM:15},SP=X({id:Y(),type:MN(xP),guild_id:Y().optional().nullable(),position:CM().optional().nullable(),permission_overwrites:FM(bP).optional().nullable(),name:Y().optional().nullable(),topic:Y().optional().nullable(),nsfw:EM().optional().nullable(),last_message_id:Y().optional().nullable(),bitrate:CM().optional().nullable(),user_limit:CM().optional().nullable(),rate_limit_per_user:CM().optional().nullable(),recipients:FM(uP).optional().nullable(),icon:Y().optional().nullable(),owner_id:Y().optional().nullable(),application_id:Y().optional().nullable(),parent_id:Y().optional().nullable(),last_pin_timestamp:Y().optional().nullable()}),CP=X({user:uP,guild_id:Y(),status:_P,activities:FM(vP),client_status:X({desktop:_P,mobile:_P,web:_P}).partial()}),wP=X({id:Y(),name:Y(),color:CM(),hoist:EM(),position:CM(),permissions:Y(),managed:EM(),mentionable:EM()}),TP=X({id:Y(),name:Y(),owner_id:Y(),icon:Y().nullable(),icon_hash:Y().optional().nullable(),splash:Y().nullable(),discovery_splash:Y().nullable(),owner:EM().optional().nullable(),permissions:Y().optional().nullable(),region:Y(),afk_channel_id:Y().nullable(),afk_timeout:CM(),widget_enabled:EM().optional().nullable(),widget_channel_id:Y().optional().nullable(),verification_level:CM(),default_message_notifications:CM(),explicit_content_filter:CM(),roles:FM(wP),emojis:FM(pP),features:FM(Y()),mfa_level:CM(),application_id:Y().nullable(),system_channel_id:Y().nullable(),system_channel_flags:CM(),rules_channel_id:Y().nullable(),joined_at:Y().optional().nullable(),large:EM().optional().nullable(),unavailable:EM().optional().nullable(),member_count:CM().optional().nullable(),voice_states:FM(mP).optional().nullable(),members:FM(dP).optional().nullable(),channels:FM(SP).optional().nullable(),presences:FM(CP).optional().nullable(),max_presences:CM().optional().nullable(),max_members:CM().optional().nullable(),vanity_url_code:Y().nullable(),description:Y().nullable(),banner:Y().nullable(),premium_tier:CM(),premium_subscription_count:CM().optional().nullable(),preferred_locale:Y(),public_updates_channel_id:Y().nullable(),max_video_channel_users:CM().optional().nullable(),approximate_member_count:CM().optional().nullable(),approximate_presence_count:CM().optional().nullable()}),EP=X({id:Y(),guild_id:Y(),type:CM(),name:Y()}),DP=X({id:Y(),filename:Y(),size:CM(),url:Y(),proxy_url:Y(),height:CM().optional().nullable(),width:CM().optional().nullable()}),OP=X({text:Y(),icon_url:Y().optional().nullable(),proxy_icon_url:Y().optional().nullable()}),kP=X({url:Y().optional().nullable(),proxy_url:Y().optional().nullable(),height:CM().optional().nullable(),width:CM().optional().nullable()}),AP=kP.omit({proxy_url:!0}),jP=X({name:Y().optional().nullable(),url:Y().optional().nullable()}),MP=X({name:Y().optional().nullable(),url:Y().optional().nullable(),icon_url:Y().optional().nullable(),proxy_icon_url:Y().optional().nullable()}),NP=X({name:Y(),value:Y(),inline:EM()}),PP=X({title:Y().optional().nullable(),type:Y().optional().nullable(),description:Y().optional().nullable(),url:Y().optional().nullable(),timestamp:Y().optional().nullable(),color:CM().optional().nullable(),footer:OP.optional().nullable(),image:kP.optional().nullable(),thumbnail:kP.optional().nullable(),video:AP.optional().nullable(),provider:jP.optional().nullable(),author:MP.optional().nullable(),fields:FM(NP).optional().nullable()}),FP=X({count:CM(),me:EM(),emoji:pP}),IP=X({type:CM(),party_id:Y().optional().nullable()}),LP=X({id:Y(),cover_image:Y().optional().nullable(),description:Y(),icon:Y().optional().nullable(),name:Y()}),RP=X({message_id:Y().optional().nullable(),channel_id:Y().optional().nullable(),guild_id:Y().optional().nullable()}),zP=X({id:Y(),channel_id:Y(),guild_id:Y().optional().nullable(),author:uP.optional().nullable(),member:dP.optional().nullable(),content:Y(),timestamp:Y(),edited_timestamp:Y().optional().nullable(),tts:EM(),mention_everyone:EM(),mentions:FM(uP),mention_roles:FM(Y()),mention_channels:FM(EP),attachments:FM(DP),embeds:FM(PP),reactions:FM(FP).optional().nullable(),nonce:LM([Y(),CM()]).optional().nullable(),pinned:EM(),webhook_id:Y().optional().nullable(),type:CM(),activity:IP.optional().nullable(),application:LP.optional().nullable(),message_reference:RP.optional().nullable(),flags:CM().optional().nullable(),stickers:FM(MM()).optional().nullable(),referenced_message:MM().optional().nullable()}),BP=X({id:Y(),name:Y()}),VP={UNHANDLED:-1,KEYBOARD_KEY:0,MOUSE_BUTTON:1,KEYBOARD_MODIFIER_KEY:2,GAMEPAD_BUTTON:3},HP=X({type:MN(VP),code:CM(),name:Y()}),UP={UNHANDLED:-1,PUSH_TO_TALK:`PUSH_TO_TALK`,VOICE_ACTIVITY:`VOICE_ACTIVITY`},WP=X({type:MN(UP),auto_threshold:EM(),threshold:CM(),shortcut:FM(HP),delay:CM()}),GP=X({device_id:Y(),volume:CM(),available_devices:FM(BP)}),KP={UNHANDLED:-1,AUDIO_INPUT:`AUDIO_INPUT`,AUDIO_OUTPUT:`AUDIO_OUTPUT`,VIDEO_INPUT:`VIDEO_INPUT`},qP=X({type:MN(KP),id:Y(),vendor:X({name:Y(),url:Y()}),model:X({name:Y(),url:Y()}),related:FM(Y()),echo_cancellation:EM().optional().nullable(),noise_suppression:EM().optional().nullable(),automatic_gain_control:EM().optional().nullable(),hardware_mute:EM().optional().nullable()}),JP={UNHANDLED:-1,APPLICATION:1,DLC:2,CONSUMABLE:3,BUNDLE:4,SUBSCRIPTION:5},YP=X({id:Y(),name:Y(),type:MN(JP),price:X({amount:CM(),currency:Y()}),application_id:Y(),flags:CM(),release_date:Y().nullable()}),XP={UNHANDLED:-1,PURCHASE:1,PREMIUM_SUBSCRIPTION:2,DEVELOPER_GIFT:3,TEST_MODE_PURCHASE:4,FREE_PURCHASE:5,USER_GIFT:6,PREMIUM_PURCHASE:7},ZP=X({id:Y(),sku_id:Y(),application_id:Y(),user_id:Y(),gift_code_flags:CM(),type:MN(XP),gifter_user_id:Y().optional().nullable(),branches:FM(Y()).optional().nullable(),starts_at:Y().optional().nullable(),ends_at:Y().optional().nullable(),parent_id:Y().optional().nullable(),consumed:EM().optional().nullable(),deleted:EM().optional().nullable(),gift_code_batch_id:Y().optional().nullable()}),QP={UNHANDLED:-1,UNLOCKED:1,PORTRAIT:2,LANDSCAPE:3},$P=MN(QP),eF={UNHANDLED:-1,NOMINAL:0,FAIR:1,SERIOUS:2,CRITICAL:3},tF=MN(eF),nF={UNHANDLED:-1,PORTRAIT:0,LANDSCAPE:1},rF=MN(nF),iF={UNHANDLED:-1,FOCUSED:0,PIP:1,GRID:2},aF=MN(iF),oF=`ERROR`,sF;(function(e){e.READY=`READY`,e.VOICE_STATE_UPDATE=`VOICE_STATE_UPDATE`,e.SPEAKING_START=`SPEAKING_START`,e.SPEAKING_STOP=`SPEAKING_STOP`,e.ACTIVITY_LAYOUT_MODE_UPDATE=`ACTIVITY_LAYOUT_MODE_UPDATE`,e.ORIENTATION_UPDATE=`ORIENTATION_UPDATE`,e.CURRENT_USER_UPDATE=`CURRENT_USER_UPDATE`,e.CURRENT_GUILD_MEMBER_UPDATE=`CURRENT_GUILD_MEMBER_UPDATE`,e.ENTITLEMENT_CREATE=`ENTITLEMENT_CREATE`,e.THERMAL_STATE_UPDATE=`THERMAL_STATE_UPDATE`,e.ACTIVITY_INSTANCE_PARTICIPANTS_UPDATE=`ACTIVITY_INSTANCE_PARTICIPANTS_UPDATE`,e.RELATIONSHIP_UPDATE=`RELATIONSHIP_UPDATE`,e.ACTIVITY_JOIN=`ACTIVITY_JOIN`,e.QUEST_ENROLLMENT_STATUS_UPDATE=`QUEST_ENROLLMENT_STATUS_UPDATE`})(sF||={});var cF=oP.extend({evt:JM(sF),nonce:Y().nullable(),cmd:KM(iP),data:X({}).passthrough()}),lF=oP.extend({evt:KM(oF),data:X({code:CM(),message:Y().optional()}).passthrough(),cmd:JM(aP),nonce:Y().nullable()}),uF=LM([cF,cF.extend({evt:Y()}),lF]);function dF(e){let t=e.evt;if(!(t in sF))throw Error(`Unrecognized event type ${e.evt}`);return fF[t].payload.parse(e)}var fF={[sF.READY]:{payload:cF.extend({evt:KM(sF.READY),data:X({v:CM(),config:X({cdn_host:Y().optional(),api_endpoint:Y(),environment:Y()}),user:X({id:Y(),username:Y(),discriminator:Y(),avatar:Y().optional()}).optional()})})},[sF.VOICE_STATE_UPDATE]:{payload:cF.extend({evt:KM(sF.VOICE_STATE_UPDATE),data:hP}),subscribeArgs:X({channel_id:Y()})},[sF.SPEAKING_START]:{payload:cF.extend({evt:KM(sF.SPEAKING_START),data:X({lobby_id:Y().optional(),channel_id:Y().optional(),user_id:Y()})}),subscribeArgs:X({lobby_id:Y().nullable().optional(),channel_id:Y().nullable().optional()})},[sF.SPEAKING_STOP]:{payload:cF.extend({evt:KM(sF.SPEAKING_STOP),data:X({lobby_id:Y().optional(),channel_id:Y().optional(),user_id:Y()})}),subscribeArgs:X({lobby_id:Y().nullable().optional(),channel_id:Y().nullable().optional()})},[sF.ACTIVITY_LAYOUT_MODE_UPDATE]:{payload:cF.extend({evt:KM(sF.ACTIVITY_LAYOUT_MODE_UPDATE),data:X({layout_mode:MN(iF)})})},[sF.ORIENTATION_UPDATE]:{payload:cF.extend({evt:KM(sF.ORIENTATION_UPDATE),data:X({screen_orientation:MN(nF),orientation:JM(AN)})})},[sF.CURRENT_USER_UPDATE]:{payload:cF.extend({evt:KM(sF.CURRENT_USER_UPDATE),data:uP})},[sF.CURRENT_GUILD_MEMBER_UPDATE]:{payload:cF.extend({evt:KM(sF.CURRENT_GUILD_MEMBER_UPDATE),data:fP}),subscribeArgs:X({guild_id:Y()})},[sF.ENTITLEMENT_CREATE]:{payload:cF.extend({evt:KM(sF.ENTITLEMENT_CREATE),data:X({entitlement:ZP})})},[sF.THERMAL_STATE_UPDATE]:{payload:cF.extend({evt:KM(sF.THERMAL_STATE_UPDATE),data:X({thermal_state:tF})})},[sF.ACTIVITY_INSTANCE_PARTICIPANTS_UPDATE]:{payload:cF.extend({evt:KM(sF.ACTIVITY_INSTANCE_PARTICIPANTS_UPDATE),data:X({participants:RN.shape.participants})})},[sF.RELATIONSHIP_UPDATE]:{payload:cF.extend({evt:KM(sF.RELATIONSHIP_UPDATE),data:lP})},[sF.ACTIVITY_JOIN]:{payload:cF.extend({evt:KM(sF.ACTIVITY_JOIN),data:X({applicationId:Y(),secret:Y()})})},[sF.QUEST_ENROLLMENT_STATUS_UPDATE]:{payload:cF.extend({evt:KM(sF.QUEST_ENROLLMENT_STATUS_UPDATE),data:X({quest_id:Y(),is_enrolled:EM(),enrolled_at:Y().date()})})}};function pF(e,t){throw t}var mF=X({}).nullable(),hF=X({code:Y()}),gF=X({guilds:FM(X({id:Y(),name:Y()}))}),_F=X({id:Y(),name:Y(),icon_url:Y().optional(),members:FM(dP)}),vF=X({id:Y(),type:MN(xP),guild_id:Y().optional().nullable(),name:Y().optional().nullable(),topic:Y().optional().nullable(),bitrate:CM().optional().nullable(),user_limit:CM().optional().nullable(),position:CM().optional().nullable(),voice_states:FM(hP),messages:FM(zP)}),yF=X({channels:FM(SP)});vF.nullable();var bF=vF.nullable(),xF=vF.nullable();X({input:GP,output:GP,mode:WP,automatic_gain_control:EM(),echo_cancellation:EM(),noise_suppression:EM(),qos:EM(),silence_warning:EM(),deaf:EM(),mute:EM()});var SF=X({evt:Y()}),CF=X({shortcut:HP}),wF=vP,TF=X({skus:FM(YP)}),EF=X({entitlements:FM(ZP)}),DF=FM(ZP).nullable(),OF=X({use_interactive_pip:EM()}),kF=X({locale:Y()}),AF=X({enabled:EM()}),jF=X({permissions:TM().or(Y())}),MF=NN(X({opened:EM().or(AM())}).default({opened:null})),NF=X({iosKeyboardResizesView:ZM(EM())}),PF=oP.extend({cmd:JM(aP),evt:AM()});function FF({cmd:e,data:t}){switch(e){case aP.AUTHORIZE:return hF.parse(t);case aP.CAPTURE_SHORTCUT:return CF.parse(t);case aP.ENCOURAGE_HW_ACCELERATION:return AF.parse(t);case aP.GET_CHANNEL:return vF.parse(t);case aP.GET_CHANNELS:return yF.parse(t);case aP.GET_CHANNEL_PERMISSIONS:return jF.parse(t);case aP.GET_GUILD:return _F.parse(t);case aP.GET_GUILDS:return gF.parse(t);case aP.GET_PLATFORM_BEHAVIORS:return NF.parse(t);case aP.GET_CHANNEL:return vF.parse(t);case aP.SELECT_TEXT_CHANNEL:return xF.parse(t);case aP.SELECT_VOICE_CHANNEL:return bF.parse(t);case aP.SET_ACTIVITY:return wF.parse(t);case aP.GET_SKUS_EMBEDDED:return TF.parse(t);case aP.GET_ENTITLEMENTS_EMBEDDED:return EF.parse(t);case aP.SET_CONFIG:return OF.parse(t);case aP.START_PURCHASE:return DF.parse(t);case aP.SUBSCRIBE:case aP.UNSUBSCRIBE:return SF.parse(t);case aP.USER_SETTINGS_GET_LOCALE:return kF.parse(t);case aP.OPEN_EXTERNAL_LINK:return MF.parse(t);case aP.SET_ORIENTATION_LOCK_STATE:case aP.SET_CERTIFIED_DEVICES:case aP.SEND_ANALYTICS_EVENT:case aP.OPEN_INVITE_DIALOG:case aP.CAPTURE_LOG:case aP.GET_SKUS:case aP.GET_ENTITLEMENTS:return mF.parse(t);case aP.AUTHENTICATE:case aP.GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS:case aP.GET_QUEST:case aP.GET_QUEST_ENROLLMENT_STATUS:case aP.GET_RELATIONSHIPS:case aP.GET_USER:case aP.INITIATE_IMAGE_UPLOAD:case aP.INVITE_USER_EMBEDDED:case aP.OPEN_SHARE_MOMENT_DIALOG:case aP.QUEST_START_TIMER:case aP.REQUEST_PROXY_TICKET_REFRESH:case aP.SHARE_INTERACTION:case aP.SHARE_LINK:let{response:n}=nP[e];return n.parse(t);default:pF(e,Error(`Unrecognized command ${e}`))}}function IF(e){return Object.assign(Object.assign({},e),{data:FF(e)})}X({frame_id:Y(),platform:JM(jN).optional().nullable()}),X({v:KM(1),encoding:KM(`json`).optional(),client_id:Y(),frame_id:Y()});var LF=X({code:CM(),message:Y().optional()}),RF=X({evt:Y().nullable(),nonce:Y().nullable(),data:MM().nullable(),cmd:Y()}).passthrough();function zF(e){let t=RF.parse(e);return t.evt==null?IF(PF.passthrough().parse(t)):t.evt===`ERROR`?lF.parse(t):dF(uF.parse(t))}function BF(e,t,n,r=()=>void 0){let i=oP.extend({cmd:KM(t),data:n});return async n=>{let a=await e({cmd:t,args:n,transfer:r(n)});return i.parse(a).data}}function VF(e,t=()=>void 0){let n=nP[e].response,r=oP.extend({cmd:KM(e),data:n});return n=>async i=>{let a=await n({cmd:e,args:i,transfer:t(i)});return r.parse(a).data}}var HF=e=>BF(e,aP.AUTHORIZE,hF),UF=e=>BF(e,aP.CAPTURE_LOG,mF),WF=e=>BF(e,aP.ENCOURAGE_HW_ACCELERATION,AF),GF=e=>BF(e,aP.GET_CHANNEL,vF),KF=e=>BF(e,aP.GET_ENTITLEMENTS_EMBEDDED,EF),qF=e=>BF(e,aP.GET_SKUS_EMBEDDED,TF),JF=e=>BF(e,aP.GET_CHANNEL_PERMISSIONS,jF),YF=e=>BF(e,aP.GET_PLATFORM_BEHAVIORS,NF),XF=e=>BF(e,aP.OPEN_EXTERNAL_LINK,MF),ZF=e=>BF(e,aP.OPEN_INVITE_DIALOG,mF);vP.pick({state:!0,state_url:!0,details:!0,details_url:!0,timestamps:!0,assets:!0,party:!0,secrets:!0,instance:!0,type:!0}).extend({type:vP.shape.type.optional(),instance:vP.shape.instance.optional()}).nullable();var QF=e=>BF(e,aP.SET_ACTIVITY,wF),$F=e=>BF(e,aP.SET_CONFIG,OF);function eI({sendCommand:e,cmd:t,response:n,fallbackTransform:r,transferTransform:i=()=>void 0}){let a=oP.extend({cmd:KM(t),data:n});return async n=>{try{let r=await e({cmd:t,args:n,transfer:i(n)});return a.parse(r).data}catch(o){if(o.code===kN.INVALID_PAYLOAD){let o=r(n),s=await e({cmd:t,args:o,transfer:i(o)});return a.parse(s).data}throw o}}}var tI=e=>({lock_state:e.lock_state,picture_in_picture_lock_state:e.picture_in_picture_lock_state}),nI=e=>eI({sendCommand:e,cmd:aP.SET_ORIENTATION_LOCK_STATE,response:mF,fallbackTransform:tI}),rI=e=>BF(e,aP.START_PURCHASE,DF),iI=e=>BF(e,aP.USER_SETTINGS_GET_LOCALE,kF),aI=VF($N.AUTHENTICATE),oI=VF($N.GET_ACTIVITY_INSTANCE_CONNECTED_PARTICIPANTS),sI=VF($N.GET_QUEST),cI=VF($N.GET_QUEST_ENROLLMENT_STATUS),lI=VF($N.GET_RELATIONSHIPS),uI=VF($N.GET_USER),dI=VF($N.INITIATE_IMAGE_UPLOAD),fI=VF($N.INVITE_USER_EMBEDDED),pI=VF($N.OPEN_SHARE_MOMENT_DIALOG),mI=VF($N.QUEST_START_TIMER),hI=VF($N.REQUEST_PROXY_TICKET_REFRESH),gI=VF($N.SHARE_INTERACTION),_I=VF($N.SHARE_LINK);function vI(e){return{authorize:HF(e),captureLog:UF(e),encourageHardwareAcceleration:WF(e),getChannel:GF(e),getChannelPermissions:JF(e),getEntitlements:KF(e),getPlatformBehaviors:YF(e),getSkus:qF(e),openExternalLink:XF(e),openInviteDialog:ZF(e),setActivity:QF(e),setConfig:$F(e),setOrientationLockState:nI(e),startPurchase:rI(e),userSettingsGetLocale:iI(e),getInstanceConnectedParticipants:oI(e),authenticate:aI(e),getActivityInstanceConnectedParticipants:oI(e),getQuest:sI(e),getQuestEnrollmentStatus:cI(e),getRelationships:lI(e),getUser:uI(e),initiateImageUpload:dI(e),inviteUserEmbedded:fI(e),openShareMomentDialog:pI(e),questStartTimer:mI(e),requestProxyTicketRefresh:hI(e),shareInteraction:gI(e),shareLink:_I(e)}}var yI=class extends Error{constructor(e,t=``){super(t),this.code=e,this.message=t,this.name=`Discord SDK Error`}};function bI(){return{disableConsoleLogOverride:!1}}var xI=[`log`,`warn`,`debug`,`info`,`error`];function SI(e,t,n){let r=e[t],i=e;r&&(e[t]=function(){let e=[].slice.call(arguments);n(t,``+e.join(` `)),r.apply(i,e)})}var CI=`2.5.0`,wI={randomUUID:typeof crypto<`u`&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},TI,EI=new Uint8Array(16);function DI(){if(!TI){if(typeof crypto>`u`||!crypto.getRandomValues)throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);TI=crypto.getRandomValues.bind(crypto)}return TI(EI)}var OI=[];for(let e=0;e<256;++e)OI.push((e+256).toString(16).slice(1));function kI(e,t=0){return(OI[e[t+0]]+OI[e[t+1]]+OI[e[t+2]]+OI[e[t+3]]+`-`+OI[e[t+4]]+OI[e[t+5]]+`-`+OI[e[t+6]]+OI[e[t+7]]+`-`+OI[e[t+8]]+OI[e[t+9]]+`-`+OI[e[t+10]]+OI[e[t+11]]+OI[e[t+12]]+OI[e[t+13]]+OI[e[t+14]]+OI[e[t+15]]).toLowerCase()}function AI(e,t,n){if(wI.randomUUID&&!t&&!e)return wI.randomUUID();e||={};let r=e.random??e.rng?.()??DI();if(r.length<16)throw Error(`Random bytes length must be >= 16`);return r[6]=r[6]&15|64,r[8]=r[8]&63|128,kI(r)}var jI;(function(e){e[e.HANDSHAKE=0]=`HANDSHAKE`,e[e.FRAME=1]=`FRAME`,e[e.CLOSE=2]=`CLOSE`,e[e.HELLO=3]=`HELLO`})(jI||={});var MI=new Set(NI());function NI(){return typeof window>`u`?[]:[window.location.origin,`https://discord.com`,`https://discordapp.com`,`https://ptb.discord.com`,`https://ptb.discordapp.com`,`https://canary.discord.com`,`https://canary.discordapp.com`,`https://staging.discord.co`,`http://localhost:3333`,`https://pax.discord.com`,`null`]}function PI(){return[window.parent.opener??window.parent,document.referrer?document.referrer:`*`]}var FI=class{getTransfer(e){switch(e.cmd){case aP.SUBSCRIBE:case aP.UNSUBSCRIBE:return;default:return e.transfer??void 0}}constructor(e,t){if(this.sdkVersion=CI,this.mobileAppVersion=null,this.source=null,this.sourceOrigin=``,this.eventBus=new RA,this.pendingCommands=new Map,this.sendCommand=e=>{var t;if(this.source==null)throw Error(`Attempting to send message before initialization`);let n=AI();return(t=this.source)==null||t.postMessage([jI.FRAME,Object.assign(Object.assign({},e),{nonce:n})],this.sourceOrigin,this.getTransfer(e)),new Promise((e,t)=>{this.pendingCommands.set(n,{resolve:e,reject:t})})},this.commands=vI(this.sendCommand),this.handleMessage=e=>{if(!MI.has(e.origin))return;let t=e.data;if(!Array.isArray(t))return;let[n,r]=t;switch(n){case jI.HELLO:return;case jI.CLOSE:return this.handleClose(r);case jI.HANDSHAKE:return this.handleHandshake();case jI.FRAME:return this.handleFrame(r);default:throw Error(`Invalid message format`)}},this.isReady=!1,this.clientId=e,this.configuration=t??bI(),typeof window<`u`&&window.addEventListener(`message`,this.handleMessage),typeof window>`u`){this.frameId=``,this.instanceId=``,this.customId=null,this.referrerId=null,this.platform=jN.DESKTOP,this.guildId=null,this.channelId=null,this.locationId=null;return}let n=new URLSearchParams(this._getSearch()),r=n.get(`frame_id`);if(!r)throw Error(`frame_id query param is not defined`);this.frameId=r;let i=n.get(`instance_id`);if(!i)throw Error(`instance_id query param is not defined`);this.instanceId=i;let a=n.get(`platform`);if(!a)throw Error(`platform query param is not defined`);if(a!==jN.DESKTOP&&a!==jN.MOBILE)throw Error(`Invalid query param "platform" of "${a}". Valid values are "${jN.DESKTOP}" or "${jN.MOBILE}"`);this.platform=a,this.customId=n.get(`custom_id`),this.referrerId=n.get(`referrer_id`),this.guildId=n.get(`guild_id`),this.channelId=n.get(`channel_id`),this.locationId=n.get(`location_id`),this.mobileAppVersion=n.get(`mobile_app_version`),[this.source,this.sourceOrigin]=PI(),this.addOnReadyListener(),this.handshake()}close(e,t){var n;window.removeEventListener(`message`,this.handleMessage);let r=AI();(n=this.source)==null||n.postMessage([jI.CLOSE,{code:e,message:t,nonce:r}],this.sourceOrigin)}async subscribe(e,t,...n){let[r]=n,i=this.eventBus.listenerCount(e),a=this.eventBus.on(e,t);return Object.values(sF).includes(e)&&e!==sF.READY&&i===0&&await this.sendCommand({cmd:aP.SUBSCRIBE,args:r,evt:e}),a}async unsubscribe(e,t,...n){let[r]=n;return e!==sF.READY&&this.eventBus.listenerCount(e)===1&&await this.sendCommand({cmd:aP.UNSUBSCRIBE,evt:e,args:r}),this.eventBus.off(e,t)}async ready(){this.isReady||await new Promise(e=>{this.eventBus.once(sF.READY,e)})}parseMajorMobileVersion(){if(this.mobileAppVersion&&this.mobileAppVersion.includes(`.`))try{return parseInt(this.mobileAppVersion.split(`.`)[0])}catch{return-1}return-1}handshake(){var e;let t={v:1,encoding:`json`,client_id:this.clientId,frame_id:this.frameId},n=this.parseMajorMobileVersion();(this.platform===jN.DESKTOP||n>=250)&&(t.sdk_version=this.sdkVersion),(e=this.source)==null||e.postMessage([jI.HANDSHAKE,t],this.sourceOrigin)}addOnReadyListener(){this.eventBus.once(sF.READY,()=>{this.overrideConsoleLogging(),this.isReady=!0})}overrideConsoleLogging(){if(this.configuration.disableConsoleLogOverride)return;let e=(e,t)=>{this.commands.captureLog({level:e,message:t})};xI.forEach(t=>{SI(console,t,e)})}handleClose(e){LF.parse(e)}handleHandshake(){}handleFrame(e){var t,n;let r;try{r=zF(e)}catch(t){console.error(`Failed to parse`,e),console.error(t);return}if(r.cmd===`DISPATCH`)this.eventBus.emit(r.evt,r.data);else{if(r.evt===`ERROR`){if(r.nonce!=null){(t=this.pendingCommands.get(r.nonce))==null||t.reject(r.data),this.pendingCommands.delete(r.nonce);return}this.eventBus.emit(`error`,new yI(r.data.code,r.data.message))}if(r.nonce==null){console.error(`Missing nonce`,e);return}(n=this.pendingCommands.get(r.nonce))==null||n.resolve(r),this.pendingCommands.delete(r.nonce)}}_getSearch(){return typeof window>`u`?``:window.location.search}},II=1e9,LI={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:`2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286`},RI=!0,zI=`[DecimalError] `,BI=zI+`Invalid argument: `,VI=zI+`Exponent out of range: `,HI=Math.floor,UI=Math.pow,WI=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,GI,KI=1e7,qI=7,JI=9007199254740991,YI=HI(JI/qI),XI={};XI.absoluteValue=XI.abs=function(){var e=new this.constructor(this);return e.s&&=1,e},XI.comparedTo=XI.cmp=function(e){var t,n,r,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(r=a.d.length,i=e.d.length,t=0,n=re.d[t]^a.s<0?1:-1;return r===i?0:r>i^a.s<0?1:-1},XI.decimalPlaces=XI.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*qI;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n},XI.dividedBy=XI.div=function(e){return eL(this,new this.constructor(e))},XI.dividedToIntegerBy=XI.idiv=function(e){var t=this,n=t.constructor;return sL(eL(t,new n(e),0,1),n.precision)},XI.equals=XI.eq=function(e){return!this.cmp(e)},XI.exponent=function(){return nL(this)},XI.greaterThan=XI.gt=function(e){return this.cmp(e)>0},XI.greaterThanOrEqualTo=XI.gte=function(e){return this.cmp(e)>=0},XI.isInteger=XI.isint=function(){return this.e>this.d.length-2},XI.isNegative=XI.isneg=function(){return this.s<0},XI.isPositive=XI.ispos=function(){return this.s>0},XI.isZero=function(){return this.s===0},XI.lessThan=XI.lt=function(e){return this.cmp(e)<0},XI.lessThanOrEqualTo=XI.lte=function(e){return this.cmp(e)<1},XI.logarithm=XI.log=function(e){var t,n=this,r=n.constructor,i=r.precision,a=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(GI))throw Error(zI+`NaN`);if(n.s<1)throw Error(zI+(n.s?`NaN`:`-Infinity`));return n.eq(GI)?new r(0):(RI=!1,t=eL(aL(n,a),aL(e,a),a),RI=!0,sL(t,i))},XI.minus=XI.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?cL(t,e):ZI(t,(e.s=-e.s,e))},XI.modulo=XI.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(zI+`NaN`);return n.s?(RI=!1,t=eL(n,e,0,1).times(e),RI=!0,n.minus(t)):sL(new r(n),i)},XI.naturalExponential=XI.exp=function(){return tL(this)},XI.naturalLogarithm=XI.ln=function(){return aL(this)},XI.negated=XI.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},XI.plus=XI.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?ZI(t,e):cL(t,(e.s=-e.s,e))},XI.precision=XI.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(BI+e);if(t=nL(i)+1,r=i.d.length-1,n=r*qI+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},XI.squareRoot=XI.sqrt=function(){var e,t,n,r,i,a,o,s=this,c=s.constructor;if(s.s<1){if(!s.s)return new c(0);throw Error(zI+`NaN`)}for(e=nL(s),RI=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=$I(s.d),(t.length+e)%2==0&&(t+=`0`),i=Math.sqrt(t),e=HI((e+1)/2)-(e<0||e%2),i==1/0?t=`5e`+e:(t=i.toExponential(),t=t.slice(0,t.indexOf(`e`)+1)+e),r=new c(t)):r=new c(i.toString()),n=c.precision,i=o=n+3;;)if(a=r,r=a.plus(eL(s,a,o+2)).times(.5),$I(a.d).slice(0,o)===(t=$I(r.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t==`4999`){if(sL(a,n+1,0),a.times(a).eq(s)){r=a;break}}else if(t!=`9999`)break;o+=4}return RI=!0,sL(r,n)},XI.times=XI.mul=function(e){var t,n,r,i,a,o,s,c,l,u=this,d=u.constructor,f=u.d,p=(e=new d(e)).d;if(!u.s||!e.s)return new d(0);for(e.s*=u.s,n=u.e+e.e,c=f.length,l=p.length,c=0;){for(t=0,i=c+r;i>r;)s=a[i]+p[r]*f[i-r-1]+t,a[i--]=s%KI|0,t=s/KI|0;a[i]=(a[i]+t)%KI|0}for(;!a[--o];)a.pop();return t?++n:a.shift(),e.d=a,e.e=n,RI?sL(e,d.precision):e},XI.toDecimalPlaces=XI.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(QI(e,0,II),t===void 0?t=r.rounding:QI(t,0,8),sL(n,e+nL(n)+1,t))},XI.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=lL(r,!0):(QI(e,0,II),t===void 0?t=i.rounding:QI(t,0,8),r=sL(new i(r),e+1,t),n=lL(r,!0,e+1)),n},XI.toFixed=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?lL(i):(QI(e,0,II),t===void 0?t=a.rounding:QI(t,0,8),r=sL(new a(i),e+nL(i)+1,t),n=lL(r.abs(),!1,e+nL(r)+1),i.isneg()&&!i.isZero()?`-`+n:n)},XI.toInteger=XI.toint=function(){var e=this,t=e.constructor;return sL(new t(e),nL(e)+1,t.rounding)},XI.toNumber=function(){return+this},XI.toPower=XI.pow=function(e){var t,n,r,i,a,o,s=this,c=s.constructor,l=12,u=+(e=new c(e));if(!e.s)return new c(GI);if(s=new c(s),!s.s){if(e.s<1)throw Error(zI+`Infinity`);return s}if(s.eq(GI))return s;if(r=c.precision,e.eq(GI))return sL(s,r);if(t=e.e,n=e.d.length-1,o=t>=n,a=s.s,!o){if(a<0)throw Error(zI+`NaN`)}else if((n=u<0?-u:u)<=JI){for(i=new c(GI),t=Math.ceil(r/qI+4),RI=!1;n%2&&(i=i.times(s),uL(i.d,t)),n=HI(n/2),n!==0;)s=s.times(s),uL(s.d,t);return RI=!0,e.s<0?new c(GI).div(i):sL(i,r)}return a=a<0&&e.d[Math.max(t,n)]&1?-1:1,s.s=1,RI=!1,i=e.times(aL(s,r+l)),RI=!0,i=tL(i),i.s=a,i},XI.toPrecision=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?(n=nL(i),r=lL(i,n<=a.toExpNeg||n>=a.toExpPos)):(QI(e,1,II),t===void 0?t=a.rounding:QI(t,0,8),i=sL(new a(i),e,t),n=nL(i),r=lL(i,e<=n||n<=a.toExpNeg,e)),r},XI.toSignificantDigits=XI.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(QI(e,1,II),t===void 0?t=r.rounding:QI(t,0,8)),sL(new r(n),e,t)},XI.toString=XI.valueOf=XI.val=XI.toJSON=XI[Symbol.for(`nodejs.util.inspect.custom`)]=function(){var e=this,t=nL(e),n=e.constructor;return lL(e,t<=n.toExpNeg||t>=n.toExpPos)};function ZI(e,t){var n,r,i,a,o,s,c,l,u=e.constructor,d=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),RI?sL(t,d):t;if(c=e.d,l=t.d,o=e.e,i=t.e,c=c.slice(),a=o-i,a){for(a<0?(r=c,a=-a,s=l.length):(r=l,i=o,s=c.length),o=Math.ceil(d/qI),s=o>s?o+1:s+1,a>s&&(a=s,r.length=1),r.reverse();a--;)r.push(0);r.reverse()}for(s=c.length,a=l.length,s-a<0&&(a=s,r=l,l=c,c=r),n=0;a;)n=(c[--a]=c[a]+l[a]+n)/KI|0,c[a]%=KI;for(n&&(c.unshift(n),++i),s=c.length;c[--s]==0;)c.pop();return t.d=c,t.e=i,RI?sL(t,d):t}function QI(e,t,n){if(e!==~~e||en)throw Error(BI+e)}function $I(e){var t,n,r,i=e.length-1,a=``,o=e[0];if(i>0){for(a+=o,t=1;tr?1:-1;else for(i=a=0;it[i]?1:-1;break}return a}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=+(e[n]1;)e.shift()}return function(r,i,a,o){var s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T=r.constructor,E=r.s==i.s?1:-1,D=r.d,O=i.d;if(!r.s)return new T(r);if(!i.s)throw Error(zI+`Division by zero`);for(c=r.e-i.e,C=O.length,x=D.length,p=new T(E),m=p.d=[],l=0;O[l]==(D[l]||0);)++l;if(O[l]>(D[l]||0)&&--c,v=a==null?a=T.precision:o?a+(nL(r)-nL(i))+1:a,v<0)return new T(0);if(v=v/qI+2|0,l=0,C==1)for(u=0,O=O[0],v++;(l1&&(O=e(O,u),D=e(D,u),C=O.length,x=D.length),b=C,h=D.slice(0,C),g=h.length;g=KI/2&&++S;do u=0,s=t(O,h,C,g),s<0?(_=h[0],C!=g&&(_=_*KI+(h[1]||0)),u=_/S|0,u>1?(u>=KI&&(u=KI-1),d=e(O,u),f=d.length,g=h.length,s=t(d,h,f,g),s==1&&(u--,n(d,C16)throw Error(VI+nL(e));if(!e.s)return new u(GI);for(t==null?(RI=!1,s=d):s=t,o=new u(.03125);e.abs().gte(.1);)e=e.times(o),l+=5;for(r=Math.log(UI(2,l))/Math.LN10*2+5|0,s+=r,n=i=a=new u(GI),u.precision=s;;){if(i=sL(i.times(e),s),n=n.times(++c),o=a.plus(eL(i,n,s)),$I(o.d).slice(0,s)===$I(a.d).slice(0,s)){for(;l--;)a=sL(a.times(a),s);return u.precision=d,t==null?(RI=!0,sL(a,d)):a}a=o}}function nL(e){for(var t=e.e*qI,n=e.d[0];n>=10;n/=10)t++;return t}function rL(e,t,n){if(t>e.LN10.sd())throw RI=!0,n&&(e.precision=n),Error(zI+`LN10 precision limit exceeded`);return sL(new e(e.LN10),t)}function iL(e){for(var t=``;e--;)t+=`0`;return t}function aL(e,t){var n,r,i,a,o,s,c,l,u,d=1,f=10,p=e,m=p.d,h=p.constructor,g=h.precision;if(p.s<1)throw Error(zI+(p.s?`NaN`:`-Infinity`));if(p.eq(GI))return new h(0);if(t==null?(RI=!1,l=g):l=t,p.eq(10))return t??(RI=!0),rL(h,l);if(l+=f,h.precision=l,n=$I(m),r=n.charAt(0),a=nL(p),Math.abs(a)<0x5543df729c000){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)p=p.times(e),n=$I(p.d),r=n.charAt(0),d++;a=nL(p),r>1?(p=new h(`0.`+n),a++):p=new h(r+`.`+n.slice(1))}else return c=rL(h,l+2,g).times(a+``),p=aL(new h(r+`.`+n.slice(1)),l-f).plus(c),h.precision=g,t==null?(RI=!0,sL(p,g)):p;for(s=o=p=eL(p.minus(GI),p.plus(GI),l),u=sL(p.times(p),l),i=3;;){if(o=sL(o.times(u),l),c=s.plus(eL(o,new h(i),l)),$I(c.d).slice(0,l)===$I(s.d).slice(0,l))return s=s.times(2),a!==0&&(s=s.plus(rL(h,l+2,g).times(a+``))),s=eL(s,new h(d),l),h.precision=g,t==null?(RI=!0,sL(s,g)):s;s=c,i+=2}}function oL(e,t){var n,r,i;for((n=t.indexOf(`.`))>-1&&(t=t.replace(`.`,``)),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=HI(n/qI),e.d=[],r=(n+1)%qI,n<0&&(r+=qI),rYI||e.e<-YI))throw Error(VI+n)}else e.s=0,e.e=0,e.d=[0];return e}function sL(e,t,n){var r,i,a,o,s,c,l,u,d=e.d;for(o=1,a=d[0];a>=10;a/=10)o++;if(r=t-o,r<0)r+=qI,i=t,l=d[u=0];else{if(u=Math.ceil((r+1)/qI),a=d.length,u>=a)return e;for(l=a=d[u],o=1;a>=10;a/=10)o++;r%=qI,i=r-qI+o}if(n!==void 0&&(a=UI(10,o-i-1),s=l/a%10|0,c=t<0||d[u+1]!==void 0||l%a,c=n<4?(s||c)&&(n==0||n==(e.s<0?3:2)):s>5||s==5&&(n==4||c||n==6&&(r>0?i>0?l/UI(10,o-i):0:d[u-1])%10&1||n==(e.s<0?8:7))),t<1||!d[0])return c?(a=nL(e),d.length=1,t=t-a-1,d[0]=UI(10,(qI-t%qI)%qI),e.e=HI(-t/qI)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(r==0?(d.length=u,a=1,u--):(d.length=u+1,a=UI(10,qI-r),d[u]=i>0?(l/UI(10,o-i)%UI(10,i)|0)*a:0),c)for(;;)if(u==0){(d[0]+=a)==KI&&(d[0]=1,++e.e);break}else{if(d[u]+=a,d[u]!=KI)break;d[u--]=0,a=1}for(r=d.length;d[--r]===0;)d.pop();if(RI&&(e.e>YI||e.e<-YI))throw Error(VI+nL(e));return e}function cL(e,t){var n,r,i,a,o,s,c,l,u,d,f=e.constructor,p=f.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new f(e),RI?sL(t,p):t;if(c=e.d,d=t.d,r=t.e,l=e.e,c=c.slice(),o=l-r,o){for(u=o<0,u?(n=c,o=-o,s=d.length):(n=d,r=l,s=c.length),i=Math.max(Math.ceil(p/qI),s)+2,o>i&&(o=i,n.length=1),n.reverse(),i=o;i--;)n.push(0);n.reverse()}else{for(i=c.length,s=d.length,u=i0;--i)c[s++]=0;for(i=d.length;i>o;){if(c[--i]0?a=a.charAt(0)+`.`+a.slice(1)+iL(r):o>1&&(a=a.charAt(0)+`.`+a.slice(1)),a=a+(i<0?`e`:`e+`)+i):i<0?(a=`0.`+iL(-i-1)+a,n&&(r=n-o)>0&&(a+=iL(r))):i>=o?(a+=iL(i+1-o),n&&(r=n-i-1)>0&&(a=a+`.`+iL(r))):((r=i+1)0&&(i+1===o&&(a+=`.`),a+=iL(r))),e.s<0?`-`+a:a}function uL(e,t){if(e.length>t)return e.length=t,!0}function dL(e){var t,n,r;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i)t.s=e.s,t.e=e.e,t.d=(e=e.d)?e.slice():e;else{if(typeof e==`number`){if(e*0!=0)throw Error(BI+e);if(e>0)t.s=1;else if(e<0)e=-e,t.s=-1;else{t.s=0,t.e=0,t.d=[0];return}if(e===~~e&&e<1e7){t.e=0,t.d=[e];return}return oL(t,e.toString())}if(typeof e!=`string`)throw Error(BI+e);if(e.charCodeAt(0)===45?(e=e.slice(1),t.s=-1):t.s=1,WI.test(e))oL(t,e);else throw Error(BI+e)}}if(i.prototype=XI,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=dL,i.config=i.set=fL,e===void 0&&(e={}),e)for(r=[`precision`,`rounding`,`toExpNeg`,`toExpPos`,`LN10`],t=0;t=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(BI+n+`: `+r)}if((r=e[n=`LN10`])!==void 0){if(r==Math.LN10)this[n]=new this(r);else throw Error(BI+n+`: `+r)}return this}GI=new(dL(LI))(1);var Q;(function(e){e.AED=`aed`,e.AFN=`afn`,e.ALL=`all`,e.AMD=`amd`,e.ANG=`ang`,e.AOA=`aoa`,e.ARS=`ars`,e.AUD=`aud`,e.AWG=`awg`,e.AZN=`azn`,e.BAM=`bam`,e.BBD=`bbd`,e.BDT=`bdt`,e.BGN=`bgn`,e.BHD=`bhd`,e.BIF=`bif`,e.BMD=`bmd`,e.BND=`bnd`,e.BOB=`bob`,e.BOV=`bov`,e.BRL=`brl`,e.BSD=`bsd`,e.BTN=`btn`,e.BWP=`bwp`,e.BYN=`byn`,e.BYR=`byr`,e.BZD=`bzd`,e.CAD=`cad`,e.CDF=`cdf`,e.CHE=`che`,e.CHF=`chf`,e.CHW=`chw`,e.CLF=`clf`,e.CLP=`clp`,e.CNY=`cny`,e.COP=`cop`,e.COU=`cou`,e.CRC=`crc`,e.CUC=`cuc`,e.CUP=`cup`,e.CVE=`cve`,e.CZK=`czk`,e.DJF=`djf`,e.DKK=`dkk`,e.DOP=`dop`,e.DZD=`dzd`,e.EGP=`egp`,e.ERN=`ern`,e.ETB=`etb`,e.EUR=`eur`,e.FJD=`fjd`,e.FKP=`fkp`,e.GBP=`gbp`,e.GEL=`gel`,e.GHS=`ghs`,e.GIP=`gip`,e.GMD=`gmd`,e.GNF=`gnf`,e.GTQ=`gtq`,e.GYD=`gyd`,e.HKD=`hkd`,e.HNL=`hnl`,e.HRK=`hrk`,e.HTG=`htg`,e.HUF=`huf`,e.IDR=`idr`,e.ILS=`ils`,e.INR=`inr`,e.IQD=`iqd`,e.IRR=`irr`,e.ISK=`isk`,e.JMD=`jmd`,e.JOD=`jod`,e.JPY=`jpy`,e.KES=`kes`,e.KGS=`kgs`,e.KHR=`khr`,e.KMF=`kmf`,e.KPW=`kpw`,e.KRW=`krw`,e.KWD=`kwd`,e.KYD=`kyd`,e.KZT=`kzt`,e.LAK=`lak`,e.LBP=`l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,Q.SRD,Q.SSP,Q.STD,Q.SVC,Q.SYP,Q.SZL,Q.THB,Q.TJS,Q.TMT,Q.TND,Q.TOP,Q.TRY,Q.TTD,Q.TWD,Q.TZS,Q.UAH,Q.UGX,Q.USD,Q.USN,Q.USS,Q.UYI,Q.UYU,Q.UZS,Q.VEF,Q.VND,Q.VUV,Q.WST,Q.XAF,Q.XAG,Q.XAU,Q.XBA,Q.XBB,Q.XBC,Q.XBD,Q.XCD,Q.XDR,Q.XFU,Q.XOF,Q.XPD,Q.XPF,Q.XPT,Q.XSU,Q.XTS,Q.XUA,Q.YER,Q.ZAR,Q.ZMW,Q.ZWL;var pL={exports:{}};pL.exports;var mL;function hL(){return mL||(mL=1,(function(e,t){var n=`__lodash_hash_undefined__`,r=9007199254740991,i=`[object Arguments]`,a=`[object Array]`,o=`[object Boolean]`,s=`[object Date]`,c=`[object Error]`,l=`[object Function]`,u=`[object Map]`,d=`[object Number]`,f=`[object Object]`,p=`[object Promise]`,m=`[object RegExp]`,h=`[object Set]`,g=`[object String]`,_=`[object Symbol]`,v=`[object WeakMap]`,y=`[object ArrayBuffer]`,b=`[object DataView]`,x=`[object Float32Array]`,S=`[object Float64Array]`,C=`[object Int8Array]`,w=`[object Int16Array]`,T=`[object Int32Array]`,E=`[object Uint8Array]`,D=`[object Uint8ClampedArray]`,O=`[object Uint16Array]`,k=`[object Uint32Array]`,ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,A=/^\w*$/,te=/^\./,j=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,M=/[\\^$.*+?()[\]{}|]/g,ne=/\\(\\)?/g,re=/^\[object .+?Constructor\]$/,ie=/^(?:0|[1-9]\d*)$/,N={};N[x]=N[S]=N[C]=N[w]=N[T]=N[E]=N[D]=N[O]=N[k]=!0,N[i]=N[a]=N[y]=N[o]=N[b]=N[s]=N[c]=N[l]=N[u]=N[d]=N[f]=N[m]=N[h]=N[g]=N[v]=!1;var ae=typeof NA==`object`&&NA&&NA.Object===Object&&NA,oe=typeof self==`object`&&self&&self.Object===Object&&self,se=ae||oe||globalThis,ce=t&&!t.nodeType&&t,le=ce&&e&&!e.nodeType&&e,ue=le&&le.exports===ce&&ae.process,de=function(){try{return ue&&ue.binding(`util`)}catch{}}(),fe=de&&de.isTypedArray;function pe(e,t){for(var n=-1,r=e?e.length:0;++n-1}function st(e,t){var n=this.__data__,r=wt(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}nt.prototype.clear=rt,nt.prototype.delete=it,nt.prototype.get=at,nt.prototype.has=ot,nt.prototype.set=st;function ct(e){var t=-1,n=e?e.length:0;for(this.clear();++ts))return!1;var l=a.get(e);if(l&&a.get(t))return l==t;var u=-1,d=!0,f=i&1?new mt:void 0;for(a.set(e,t),a.set(t,e);++u-1&&e%1==0&&e-1&&e%1==0&&e<=r}function gn(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function _n(e){return!!e&&typeof e==`object`}function vn(e){return typeof e==`symbol`||_n(e)&&De.call(e)==_}var yn=fe?_e(fe):L;function bn(e){return e==null?``:Bt(e)}function xn(e,t,n){var r=e==null?void 0:Ot(e,t);return r===void 0?n:r}function Sn(e,t){return e!=null&&Xt(e,t,At)}function Cn(e){return fn(e)?Ct(e):It(e)}function wn(e,t,n){var r=dn(e)||yn(e);if(t=Ft(t),n==null){if(r||gn(e)){var i=e.constructor;n=r?dn(e)?new i:[]:mn(i)?Tt(je(e)):{}}else n={}}return(r?pe:Dt)(e,function(e,r,i){return t(n,e,r,i)}),n}function Tn(e){return e}function En(e){return Qt(e)?he(on(e)):zt(e)}e.exports=wn})(pL,pL.exports)),pL.exports}hL();var{Commands:gL}=rP,_L=[`identify`,`guilds.members.read`];function vL(e,t){if(e instanceof EA)return e;if(typeof e==`object`&&e&&`code`in e){let n=e.code,r=Object.values(kN).filter(e=>typeof e==`number`);if(typeof n==`number`&&r.includes(n))return new EA(`${t}_${n}`)}return new EA(t)}var yL=15e3,bL=12e4,xL=15e3;function SL(e=window.location.search){let t=new URLSearchParams(e),n=t.getAll(`frame_id`),r=t.getAll(`platform`);if(n.length!==1||n[0]===void 0||n[0].length===0||n[0].length>255||r.length!==1||![`desktop`,`mobile`].includes(r[0]??``))throw new EA(`invalid_launch`)}async function CL(e,t,n,r,i){let a=null,o=new Promise((e,n)=>{t!==void 0&&(a=()=>n(new EA(`cancelled`)),t.addEventListener(`abort`,a,{once:!0}),t.aborted&&a())}),s=null,c=new Promise((e,t)=>{s=setTimeout(()=>t(new EA(r)),i)}),l=Promise.resolve().then(()=>{if(t?.aborted)throw new EA(`cancelled`);return e()}).catch(e=>{throw vL(e,n)});try{return await Promise.race([l,o,c])}finally{s!==null&&clearTimeout(s),t!==void 0&&a!==null&&t.removeEventListener(`abort`,a)}}var wL=class{makeSDK;sdk=null;authenticated=!1;closed=!1;constructor(e=e=>new FI(e)){this.makeSDK=e}async authorize(e){let t=OA();SL();let n=await AA(t,e),r=this.open(n.client_id),i=()=>{if(e?.aborted)throw new EA(`cancelled`)};try{if(i(),await CL(()=>r.ready(),e,`sdk_ready_failed`,`sdk_ready_timeout`,yL),i(),r.instanceId!==t)throw new EA(`instance_mismatch`);let a=await CL(()=>r.commands.authorize({client_id:n.client_id,response_type:`code`,state:n.state,prompt:`none`,scope:[..._L]}),e,`authorize_failed`,`authorize_timeout`,bL);i();let o=await jA(a.code,n.state,e);if(i(),!this.authenticated){if(await CL(()=>r.commands.authenticate({access_token:o.access_token}),e,`sdk_authenticate_failed`,`sdk_authenticate_timeout`,xL)==null)throw new EA(`sdk_authenticate_failed`);this.authenticated=!0,i()}let s=o.ticket;return{sdk:r,bootstrap:n,player:o.player,takeTicket:()=>{let e=s;return s=null,e},destroy:()=>{s=null}}}catch(t){throw e?.aborted?new EA(`cancelled`):new EA(vL(t,`authorization_failed`).code,!0)}}close(){if(!this.closed&&(this.closed=!0,this.sdk!==null))try{this.sdk.close(ON.CLOSE_NORMAL,`Hands session closed`)}catch{}}open(e){if(this.closed)throw new EA(`cancelled`);if(this.sdk!==null)return this.sdk;try{this.sdk=this.makeSDK(e)}catch(e){throw new EA(vL(e,`sdk_initialization_failed`).code,!0)}return this.sdk}},TL={Digit1:`corner_cut`,Numpad1:`corner_cut`,Digit2:`corner_swelling`,Numpad2:`corner_swelling`,Digit3:`corner_breath`,Numpad3:`corner_breath`},EL={2:`corner_cut`,3:`corner_swelling`,1:`corner_breath`},DL=[{kind:`corner_cut`,choice:`cut`,key:`1`,title:`Close the cut`},{kind:`corner_swelling`,choice:`swelling`,key:`2`,title:`Bring down the swelling`},{kind:`corner_breath`,choice:`breath`,key:`3`,title:`Catch your breath`}],OL={cut:`Your corner is closing the cut.`,swelling:`Your corner is bringing the swelling down.`,breath:`Your corner is getting your breath back.`,balanced:`Your corner did a little of everything.`},kL=1500,AL=1e3;function jL(e){return e<150?`small`:e<350?`nasty`:e<550?`deep`:`dangerous`}var ML=(e,t)=>Math.round(Math.max(0,Math.min(1,e/t))*100);function NL(e){let{trauma:t}=e,n=Math.max(t.left_cut,t.right_cut),r=Math.max(0,n-x.cut.worse_cut),i=Math.max(t.left_eye,t.right_eye),a=Math.max(0,i-x.swelling.eyes),o=i>=p?a0,swelling:Math.max(t.left_eye,t.right_eye)>0||t.swelling>0,breath:!0,balanced:!1}}function FL(){try{return[...navigator.getGamepads?.()??[]].find(e=>e!==null&&e.connected&&e.mapping===`standard`)??null}catch{return null}}var IL=class{pick;now;element;buttons=new Map;details=new Map;status;visible=!1;choice=null;pending=null;shown=null;frozen=null;available=null;padFrame=0;padPrevious=new Set;measuredTop=null;resize=()=>{this.measuredTop=null};keydown=e=>{let t=TL[e.code];t!==void 0&&this.visible&&!e.repeat&&(e.preventDefault(),this.choose(t))};constructor(e,t,n=()=>performance.now()){this.pick=t,this.now=n;let r=document.createElement(`section`);r.className=`corner`,r.dataset.corner=``,r.hidden=!0,r.setAttribute(`aria-label`,`Instructions for your corner`);let i=document.createElement(`p`);i.className=`corner-title`,i.textContent=`YOUR CORNER`;let a=document.createElement(`div`);a.className=`corner-choices`;for(let{kind:e,key:t,title:n}of DL){let r=document.createElement(`button`);r.type=`button`,r.dataset.cornerPick=e;let i=document.createElement(`kbd`);i.textContent=t;let o=document.createElement(`strong`);o.textContent=n;let s=document.createElement(`span`);r.append(i,o,s),r.addEventListener(`click`,()=>this.choose(e)),a.append(r),this.buttons.set(e,r),this.details.set(e,s)}this.status=document.createElement(`p`),this.status.className=`corner-status`,this.status.setAttribute(`role`,`status`),r.append(i,a,this.status),e.append(r),this.element=r,window.addEventListener(`keydown`,this.keydown),window.addEventListener(`resize`,this.resize)}update(e,t,n){let r=e?.fighters.find(e=>e.player_id===t);if(!(n&&e!==null&&e.phase===`rest`&&r!==void 0)||r===void 0){this.setVisible(!1),this.choice=null,this.pending=null,this.shown=null,this.frozen=null;return}this.setVisible(!0),this.choice=r.corner_choice,(this.choice!==null||this.pending!==null&&this.now()-this.pending.at>kL)&&(this.pending=null);let i=this.choice!==null||this.pending!==null;i||(this.frozen=null);let a=i&&this.frozen!==null?this.frozen:NL(r);this.shown=a;let o=PL(r);this.available=o;for(let{kind:e,choice:t}of DL){let n=this.buttons.get(e),r=this.details.get(e);r.textContent!==a[t]&&(r.textContent=a[t]),n.disabled=i||!o[t],n.toggleAttribute(`data-picked`,this.choice===t||this.pending?.kind===e)}let s=this.choice===null?this.pending===null?`Tell your corner what to work on before the bell.`:`Calling it to your corner…`:OL[this.choice];this.status.textContent!==s&&(this.status.textContent=s)}choose(e){if(!this.visible||this.choice!==null||this.pending!==null)return;let t=DL.find(t=>t.kind===e)?.choice;if(t!==void 0&&this.available?.[t]!==!1&&this.pick(e)){this.frozen=this.shown,this.pending={kind:e,at:this.now()};for(let[t,n]of this.buttons)n.disabled=!0,n.toggleAttribute(`data-picked`,t===e);this.status.textContent=`Calling it to your corner…`}}setVisible(e){if(e!==this.visible){if(this.visible=e,this.element.hidden=!e,this.measuredTop=null,this.padPrevious.clear(),e){let e=FL();for(let t of Object.keys(EL))e?.buttons[Number(t)]?.pressed===!0&&this.padPrevious.add(Number(t));this.padFrame=requestAnimationFrame(()=>this.pollPad())}else cancelAnimationFrame(this.padFrame)}}top(){if(!this.visible)return null;if(this.measuredTop===null){let e=this.element.getBoundingClientRect();if(e.height<=0)return null;this.measuredTop=e.top-(this.element.parentElement?.getBoundingClientRect().top??0)}return this.measuredTop}pollPad(){if(!this.visible)return;let e=FL();if(e!==null)for(let[t,n]of Object.entries(EL)){let r=Number(t),i=e.buttons[r]?.pressed===!0;i&&!this.padPrevious.has(r)&&this.choose(n),i?this.padPrevious.add(r):this.padPrevious.delete(r)}this.padFrame=requestAnimationFrame(()=>this.pollPad())}destroy(){this.setVisible(!1),window.removeEventListener(`keydown`,this.keydown),window.removeEventListener(`resize`,this.resize),this.element.remove()}},LL={invalid_launch:`open Hands from a Discord voice channel with Play now`,cancelled:`the session was cancelled`,authorization_failed:`Discord did not authorize the session`,authorize_failed:`Discord did not authorize the session`,authorize_timeout:`Discord took too long to authorize the session`,sdk_ready_failed:`the Discord client did not respond`,sdk_ready_timeout:`the Discord client took too long to respond`,sdk_authenticate_failed:`Discord did not confirm your identity`,sdk_authenticate_timeout:`Discord took too long to confirm your identity`,sdk_initialization_failed:`the Discord client could not start the activity`,instance_mismatch:`this window belongs to a different activity instance`,bootstrap_failed:`the Hands server could not be reached`,token_failed:`the Hands server rejected the sign-in`,invalid_bootstrap:`the Hands server sent an unexpected reply`,invalid_token_response:`the Hands server sent an unexpected reply`,ticket_unavailable:`the session ticket was already used`,protocol_error:`the server and client disagree on the protocol`,unexpected_error:`something unexpected went wrong`,authentication_timeout:`the connection took too long to authenticate`,authentication_required:`the connection was not authenticated`,invalid_ticket:`the session ticket was rejected`,invalid_request:`the server rejected the request`,invalid_input:`the server rejected an input frame`,input_queue_full:`the server could not keep up with the inputs`,rate_limited:`too many requests were sent; wait a moment`,service_busy:`the server is busy right now`,service_unavailable:`the server is unavailable right now`,upstream_unavailable:`Discord is unavailable right now`,room_closed:`the bout has already ended; use Play now to start another`,room_full:`both seats in this bout are taken`,already_in_room:`you are already in a bout in another channel`,match_not_started:`the bout has not started yet`,connection_replaced:`this seat was taken over by a newer connection`,spectator_read_only:`spectators cannot send input`,server_shutting_down:`the server is restarting`,internal_error:`the server hit an internal error`,not_in_activity:`you are not a participant of this activity`,invalid_activity:`this activity instance is not valid`,invalid_state:`the sign-in state expired; retry`,invalid_guild:`this activity belongs to another server`,persistence_failed:`the result could not be saved`,rematch_unavailable:`the ring could not be cleared for a rematch; use Play now to start another bout`,network_unavailable:`the connection to the Hands server could not be opened`,match_abandoned:`both fighters lost their connection and the bout was called off`};function RL(e){if(e===`client_outdated`)return`Hands was updated. Reload to continue (client_outdated).`;let t=LL[e]??LL[e.replace(/_\d+$/u,``)];return t===void 0?`Unable to continue (${e}).`:`Unable to continue: ${t} (${e}).`}var zL={block:[55,.12,.22],hit:[85,.3,.42],counter_hit:[105,.38,.5],stun:[125,.42,.55],knockdown:[180,.62,.65],parry:[60,.18,.4],body_collapse:[170,.55,.3]},BL={injury:[150,.55,.6],vomit:[90,.15,.45],finish_him:[180,.65,.3],fatality:[180,.65,.65],death:[170,.5,.12]},VL=[120,.65,.5],HL=[35,.2,.35],UL=class{settings;constructor(e){this.settings=e}event(e,t=!1){if(!this.settings().haptics)return;let n=zL[e.kind];n!==void 0&&this.rumble(t?[n[0]*1.6,n[1]+.2,n[2]+.15]:n)}gore(e){if(!this.settings().haptics||e.kind===`death`&&ht(e.cause)!==null)return;this.rumble(BL[e.kind]);let t=this.settings();e.kind===`injury`&&yk(e.injury)!==null&&t.blood===`full`&&!t.reducedMotion&&setTimeout(()=>this.rumble(VL),bk*1e3)}getUpBeat(){this.settings().haptics&&this.rumble(HL)}rumble(e){let t=this.padActuator();if(t===null)this.vibrate(e[0]);else try{Promise.resolve(t.playEffect(`dual-rumble`,{duration:Math.min(180,Math.max(0,e[0])),strongMagnitude:Math.min(.65,Math.max(0,e[1])),weakMagnitude:Math.min(.65,Math.max(0,e[2]))})).catch(()=>void 0)}catch{}}padActuator(){if(typeof navigator.getGamepads!=`function`)return null;let e;try{e=[...navigator.getGamepads.call(navigator)]}catch{return null}let t=e.find(e=>e!==null&&e.connected&&`vibrationActuator`in e)?.vibrationActuator;return t==null||typeof t.playEffect!=`function`?null:t}vibrate(e){if(qe()&&typeof navigator.vibrate==`function`)try{navigator.vibrate(Math.min(180,Math.max(0,e)))}catch{}}};function WL(e,t){return e.kind===t.kind?e.kind===`punch`&&t.kind===`punch`?e.hand===t.hand&&e.class===t.class&&e.target===t.target&&e.power===t.power:e.kind===`foul`&&t.kind===`foul`?e.foul===t.foul:!0:!1}function GL(e,t,n){if(n<1||e.length>0&&WL(e.at(-1),t))return;let r=e.length-n+1;r>0&&e.splice(0,r),e.push(t)}var KL=class{maximum;queue=[];counter=0;listener=null;constructor(e=1){this.maximum=e}setListener(e){this.listener=e}push(e,t){if(this.maximum<1)return;let n=this.queue.at(-1);if(n!==void 0&&WL(n.action,t)){n.source=e;return}let r={...t,id:`c${this.counter+=1}`},i=this.queue.length-this.maximum+1;i>0&&this.queue.splice(0,i),this.queue.push({action:r,source:e}),this.listener?.(r)}clear(){this.queue.length=0}clearSource(e){let t=this.queue.filter(t=>t.source!==e);this.queue.splice(0,this.queue.length,...t)}drain(e){return this.queue.splice(0,e).map(e=>e.action)}};function qL(e,t,n=.18){let r=Math.hypot(e,t);if(!Number.isFinite(r)||r<=n)return{x:0,y:0};let i=(Math.min(1,r)-n)/(1-n);return{x:e/r*i,y:t/r*i}}var JL=(e,t)=>{let n=Math.atan2(Math.abs(t),Math.abs(e))*180/Math.PI;return n<22.5?`hook`:n<45?`jab`:n<70?`straight`:`uppercut`},YL=class{active=!1;hand=`right`;target=`head`;power=`normal`;peak={x:0,y:0};peakMagnitude=0;update(e,t,n,r){let i=Math.hypot(e,t);if(!this.active&&i>=.55&&Math.abs(e)>=.12)return this.active=!0,this.hand=e<0?`left`:`right`,this.target=n?`body`:`head`,this.power=r?`power`:`normal`,this.peak={x:e,y:t},this.peakMagnitude=i,null;if(!this.active)return null;if(i>this.peakMagnitude&&(this.peak={x:e,y:t},this.peakMagnitude=i),i<=.25){let e={kind:`punch`,hand:this.hand,class:JL(this.peak.x,this.peak.y),target:this.target,power:this.power};return this.reset(),e}return null}reset(){this.active=!1,this.peak={x:0,y:0},this.peakMagnitude=0}},XL=[`jab`,`straight`,`hook`,`uppercut`],ZL=(e,t)=>e.buttons[t]?.pressed===!0;function QL(){let e=navigator.getGamepads;if(typeof e!=`function`)return null;try{return[...e.call(navigator)].find(e=>e!==null&&e.connected&&e.mapping===`standard`)??null}catch{return null}}var $L=class{maximumQueue;sharedActions;gesture=new YL;queue=[];previous=new Set;selectorConsumed=new Map;raf=0;currentId=null;moveX=0;moveY=0;defense=`none`;knockdown=!1;enabled=!0;trigger=!1;heldListener=null;disconnect=e=>{e.gamepad.id===this.currentId&&this.reset()};constructor(e=1,t){this.maximumQueue=e,this.sharedActions=t,window.addEventListener(`gamepaddisconnected`,this.disconnect),this.raf=requestAnimationFrame(()=>this.poll())}onHeldChange(e){this.heldListener=e}push(e){this.sharedActions===void 0?GL(this.queue,e,this.maximumQueue):this.sharedActions.push(`gamepad`,e)}poll(){if(!this.enabled){this.reset(),this.schedulePoll();return}let e=QL();if(e===null){this.currentId!==null&&this.reset(),this.schedulePoll();return}this.currentId!==null&&this.currentId!==e.id&&this.reset(),this.currentId=e.id;let t=qL(e.axes[0]??0,e.axes[1]??0),n=Math.round(t.x*1e3),r=Math.round(-t.y*1e3),i=ZL(e,4)?`guard_high`:ZL(e,5)?`guard_low`:`none`,a=n!==this.moveX||r!==this.moveY||i!==this.defense;this.moveX=n,this.moveY=r,this.defense=i,a&&this.heldListener?.(),this.trigger=ZL(e,7);let o=this.gesture.update(e.axes[2]??0,e.axes[3]??0,ZL(e,6),this.trigger);o!==null&&this.push(o);let s=XL.some((t,n)=>ZL(e,n)&&!this.previous.has(n));for(let t of[14,15]){let n=ZL(e,t),r=this.previous.has(t);this.knockdown?(n&&!r&&this.push({kind:t===14?`get_up_left`:`get_up_right`}),this.selectorConsumed.delete(t)):n?(r||this.selectorConsumed.set(t,!1),s&&this.selectorConsumed.set(t,!0)):r&&(this.selectorConsumed.get(t)===!1&&this.push({kind:t===14?`slip_left`:`slip_right`}),this.selectorConsumed.delete(t))}for(let t=0;tthis.poll())}setKnockdown(e){this.knockdown=e}get powerHeld(){return this.enabled&&this.trigger}setEnabled(e){this.enabled=e,e||this.reset()}frame(e=4){let t=this.sharedActions===void 0?this.queue.splice(0,e):[];return{moveX:this.moveX,moveY:this.moveY,defense:this.defense,actions:t}}reset(){this.currentId=null,this.moveX=this.moveY=0,this.defense=`none`,this.trigger=!1,this.queue.length=0,this.sharedActions?.clearSource(`gamepad`),this.previous.clear(),this.selectorConsumed.clear(),this.gesture.reset()}destroy(){cancelAnimationFrame(this.raf),window.removeEventListener(`gamepaddisconnected`,this.disconnect),this.reset()}},eR=new Set([`KeyW`,`KeyA`,`KeyS`,`KeyD`,`KeyQ`,`KeyE`]),tR=new Set([`ShiftLeft`,`ShiftRight`,`AltLeft`,`AltRight`]),nR=class{target;maximumQueue;sharedActions;held=new Set;queue=[];enabled=!0;altFlag=!1;heldListener=null;keydown=e=>{if(this.altFlag=e.altKey,!je.has(e.code))return;if(!this.enabled){this.hold(e.code,e.repeat);return}if(e.preventDefault(),this.hold(e.code,e.repeat),e.repeat)return;let t=Ee[e.code];if(t!==void 0)this.push({kind:`punch`,hand:t[0],class:t[1],target:this.hasShift(e)?`body`:`head`,power:this.alt?`power`:`normal`});else{let t=De[e.code];t!==void 0&&(t.kind!==`foul`||this.hasShift(e))&&this.push(t)}};keyup=e=>{this.altFlag=e.altKey,e.code===`MetaLeft`||e.code===`MetaRight`?this.letGo(e=>!tR.has(e)):je.has(e.code)&&(this.enabled&&e.preventDefault(),this.letGo(t=>t===e.code))};visibility=()=>{document.hidden&&this.reset()};blur=()=>this.reset();constructor(e=window,t=1,n){this.target=e,this.maximumQueue=t,this.sharedActions=n,e.addEventListener(`keydown`,this.keydown),e.addEventListener(`keyup`,this.keyup),e.addEventListener(`blur`,this.blur),document.addEventListener(`visibilitychange`,this.visibility)}onHeldChange(e){this.heldListener=e}hold(e,t){t&&this.held.has(e)||(this.held.delete(e),this.held.add(e),eR.has(e)&&this.heldListener?.())}letGo(e){let t=!1;for(let n of this.held)e(n)&&(this.held.delete(n),t||=eR.has(n));t&&this.heldListener?.()}axis(e,t){let n=0;for(let r of this.held)r===e?n=1:r===t&&(n=-1);return n}hasShift(e){return e.shiftKey||this.held.has(`ShiftLeft`)||this.held.has(`ShiftRight`)}get alt(){return this.altFlag||this.held.has(`AltLeft`)||this.held.has(`AltRight`)}get powerHeld(){return this.enabled&&this.alt}push(e){this.sharedActions===void 0?GL(this.queue,e,this.maximumQueue):this.sharedActions.push(`keyboard`,e)}setEnabled(e){this.enabled=e,e||(this.queue.length=0,this.sharedActions?.clearSource(`keyboard`))}frame(e=4){if(!this.enabled)return{moveX:0,moveY:0,defense:`none`,actions:[]};let t=this.axis(`KeyD`,`KeyA`)*1e3,n=this.axis(`KeyW`,`KeyS`)*1e3;t!==0&&n!==0&&(t=Math.sign(t)*707,n=Math.sign(n)*707);let r=this.axis(`KeyQ`,`KeyE`);return{moveX:t,moveY:n,defense:r>0?`guard_high`:r<0?`guard_low`:`none`,actions:this.sharedActions===void 0?this.queue.splice(0,e):[]}}reset(){this.letGo(()=>!0),this.altFlag=!1,this.queue.length=0,this.sharedActions?.clearSource(`keyboard`)}destroy(){this.reset(),this.target.removeEventListener(`keydown`,this.keydown),this.target.removeEventListener(`keyup`,this.keyup),this.target.removeEventListener(`blur`,this.blur),document.removeEventListener(`visibilitychange`,this.visibility)}};function rR(e,t,n,r){let i=e=>Math.max(-1e3,Math.min(1e3,Math.round(e)))||0;return{moveX:i(-r*e+n*t),moveY:i(-n*e-r*t)}}var iR=(e,t,n,r)=>Math.abs(Math.atan2(e*r-t*n,e*n+t*r)),aR=Math.PI/4-.01,oR=Math.PI/8,sR=300,cR=class{actions=new KL(1);keyboard;gamepad;touch=null;reset=()=>{this.keyboard.reset(),this.gamepad.reset(),this.touch?.reset(),this.actions.clear(),this.gamepad.setKnockdown(!1)};heldChanged=()=>{let e=this.held(),t=this.sentHeld,n=e.moveX!==0||e.moveY!==0,r=t.moveX!==0||t.moveY!==0;(e.defense!==t.defense||n!==r||n&&(iR(e.moveX,e.moveY,t.moveX,t.moveY)>oR||Math.abs(Math.hypot(e.moveX,e.moveY)-Math.hypot(t.moveX,t.moveY))>sR))&&(this.sentHeld=e,this.heldListener?.())};constructor(){this.keyboard=new nR(window,1,this.actions),this.gamepad=new $L(1,this.actions),this.keyboard.onHeldChange(this.heldChanged),this.gamepad.onHeldChange(this.heldChanged),window.addEventListener(`blur`,this.reset),document.addEventListener(`visibilitychange`,this.visibility)}visibility=()=>{document.hidden&&this.reset()};attachTouch(e,t=qe()){this.touch===null&&t&&(this.touch=new Xe(e,this.actions),this.touch.onHeldChange(this.heldChanged))}setActive(e,t=e){this.keyboard.setEnabled(e),this.gamepad.setEnabled(e),this.touch?.setEnabled(e,t)}setKnockdown(e){this.gamepad.setKnockdown(e),this.touch?.setKnockdown(e)}setGetUpPrompt(e){this.touch?.setGetUpPrompt(e)}onAction(e){this.actions.setListener(e)}get powerHeld(){return this.keyboard.powerHeld||this.gamepad.powerHeld||this.touch?.powerHeld===!0}onHeldChange(e){this.heldListener=e}heldListener=null;sentHeld={moveX:0,moveY:0,defense:`none`};setViewForward(e){this.viewForward=e}viewForward=null;latched=null;held(){let e=this.keyboard.frame(0),t=this.gamepad.frame(0),n=this.touch?.frame()??null,r=t.moveX===0?n!==null&&n.moveX!==0?n.moveX:e.moveX:t.moveX,i=t.moveY===0?n!==null&&n.moveY!==0?n.moveY:e.moveY:t.moveY,a=t.defense===`none`?n!==null&&n.defense!==`none`?n.defense:e.defense:t.defense;if(r===0&&i===0)return this.latched=null,{moveX:r,moveY:i,defense:a};let o=this.viewForward?.()??null,s=this.latched;s===null||iR(r,i,s.moveX,s.moveY)>aR?this.latched={moveX:r,moveY:i,forward:o===null?null:{x:o.x,z:o.z}}:s.forward!==null&&o!==null&&(s.forward.x=o.x,s.forward.z=o.z);let c=this.latched.forward;if(c===null)return{moveX:r,moveY:i,defense:a};let l=rR(r,i,c.x,c.z);return{moveX:l.moveX,moveY:l.moveY,defense:a}}frame(){return{...this.held(),actions:this.actions.drain(4)}}destroy(){window.removeEventListener(`blur`,this.reset),document.removeEventListener(`visibilitychange`,this.visibility),this.keyboard.destroy(),this.gamepad.destroy(),this.touch?.destroy()}},lR=(e,t,n)=>e+(t-e)*n,uR=(e,t,n)=>({...t,x:lR(e.x,t.x,n),y:lR(e.y,t.y,n),facing:lR(e.facing,t.facing,n),facing_x:lR(e.facing_x,t.facing_x,n),facing_y:lR(e.facing_y,t.facing_y,n),velocity_x:lR(e.velocity_x,t.velocity_x,n),velocity_y:lR(e.velocity_y,t.velocity_y,n),stamina:lR(e.stamina,t.stamina,n),maximum_stamina:lR(e.maximum_stamina,t.maximum_stamina,n),conditioning:lR(e.conditioning,t.conditioning,n),guard:lR(e.guard,t.guard,n),poise:lR(e.poise,t.poise,n)}),dR=(e,t,n)=>({...t,x:lR(e.x,t.x,n),y:lR(e.y,t.y,n),facing_x:lR(e.facing_x,t.facing_x,n),facing_y:lR(e.facing_y,t.facing_y,n),velocity_x:lR(e.velocity_x,t.velocity_x,n),velocity_y:lR(e.velocity_y,t.velocity_y,n)}),fR=1.5,pR=6,mR=.5,hR=2500,gR=1,_R=.04,vR=100,yR=.01,bR=4,xR=1500,SR=class{maximum;tickRate;initialDelayTicks;snapshots=[];offsetTicks=null;delayTicks;lastStarvationMs=-1/0;lastFrameMs=null;behindPushes=0;needs=[];arrivals=[];constructor(e=8,t=30,n=2){this.maximum=e,this.tickRate=t,this.initialDelayTicks=n,this.delayTicks=n}get interpolationDelayTicks(){return this.delayTicks}push(e,t){let n=this.snapshots.at(-1);if(n!==void 0&&e.tick<=n.tick)return!1;if(this.snapshots.push(e),this.snapshots.length>this.maximum&&this.snapshots.shift(),t!==void 0&&Number.isFinite(t)){let n=e.tick-t*this.tickRate/1e3;for(this.offsetTicks!==null&&n=bR&&this.restartClock(),this.offsetTicks===null?(this.offsetTicks=n,this.need(t,this.initialDelayTicks)):this.offsetTicks=Math.max(n,this.offsetTicks-yR),this.need(t,this.offsetTicks-n+gR);this.arrivals.length>0&&this.arrivals.at(-1).sample<=n;)this.arrivals.pop();this.arrivals.push({atMs:t,sample:n})}return!0}resync(){this.restartClock()}restartClock(){this.offsetTicks=null,this.delayTicks=this.initialDelayTicks,this.lastStarvationMs=-1/0,this.behindPushes=0,this.needs.length=0,this.arrivals.length=0}need(e,t){for(;this.needs.length>0&&this.needs.at(-1).ticks<=t;)this.needs.pop();this.needs.push({atMs:e,ticks:t})}recentNeed(e){for(;this.needs.length>0&&this.needs[0].atMs<=e-hR;)this.needs.shift();return this.needs[0]?.ticks??0}latest(){return this.snapshots.at(-1)??null}clockTick(e){let t=this.latest();if(t===null)return 0;for(;this.arrivals.length>1&&this.arrivals[0].atMs<=e-xR;)this.arrivals.shift();let n=this.arrivals[0];return n===void 0?t.tick:Math.min(t.tick+pR,e*this.tickRate/1e3+n.sample)}renderTick(e){let t=this.latest();if(t===null)return 0;let n=this.snapshots[0].tick;if(this.offsetTicks===null)return Math.max(n,t.tick-1);let r=this.lastFrameMs===null?0:Math.min(vR,Math.max(0,e-this.lastFrameMs));this.lastFrameMs=e;let i=e*this.tickRate/1e3+this.offsetTicks-this.delayTicks;if(i>t.tick+.25)e-this.lastStarvationMs>250&&(this.lastStarvationMs=e,this.delayTicks=Math.min(pR,this.delayTicks+mR),this.need(e,this.delayTicks));else{let t=Math.max(fR,this.recentNeed(e));this.delayTicks>t&&(this.delayTicks=Math.max(t,this.delayTicks-_R*r*this.tickRate/1e3))}return Math.min(t.tick,Math.max(n,i))}sample(e){let t=this.snapshots.findIndex(t=>t.tick>=e);if(t<=0)return this.snapshots[Math.max(0,t)]??this.latest();let n=this.snapshots[t-1],r=this.snapshots[t];if(n.phase!==r.phase||n.fighters.some((e,t)=>e.knockdowns!==r.fighters[t]?.knockdowns))return r;let i=Math.max(0,Math.min(1,(e-n.tick)/Math.max(1,r.tick-n.tick)));return{...r,fighters:[uR(n.fighters[0],r.fighters[0],i),uR(n.fighters[1],r.fighters[1],i)],referee:dR(n.referee,r.referee,i)}}clear(){this.snapshots.length=0,this.offsetTicks=null,this.arrivals.length=0}},CR=class{highest=-1;accept(e){let t=new Set,n=e.filter(e=>e.event_id<=this.highest||t.has(e.event_id)?!1:(t.add(e.event_id),!0)).sort((e,t)=>e.event_id-t.event_id);for(let e of n)this.highest=Math.max(this.highest,e.event_id);return n}reset(){this.highest=-1}};function wR(e=window.location){let t=new URL(`/api/hands/ws`,e.origin);if(e.protocol===`https:`)t.protocol=`wss:`;else if(e.protocol===`http:`&&[`localhost`,`127.0.0.1`,`::1`].includes(e.hostname))t.protocol=`ws:`;else throw Error(`insecure_websocket_origin`);return t.search=``,t.hash=``,t.toString()}var TR=1,ER={moveX:0,moveY:0,defense:`none`,actions:[]},DR=33,OR=8,kR=50,AR=20,jR=10,MR=2048;function NR(e){try{return hn(e)}catch(t){let n;try{let t=Mt(e);n=typeof t==`object`&&t&&`version`in t?t.version:void 0}catch{}throw typeof n==`number`&&n!==7?new EA(`client_outdated`,!0):t}}var PR=class{getInput;callbacks;makeSocket;now;socket=null;reconnectTicket;reconnectTimer=null;opponentPauseTimer=null;inputTimer=null;reconnectDeadline=0;opponentPauseDeadline=0;opponentPaused=!1;attempts=0;nextSequence=0;playerId=null;sentAt=new Map;actionSequences=new Map;latencyMs=null;serverTick=0;role=null;active=!1;resting=!1;boutStarted=!1;disposed=!1;terminal=!1;inputSuppressed=!1;pointerFocus=!1;listenersBound=!1;lastInputSentAt=-1/0;sendTimes=[];edgeSendTimes=[];heldSendTimes=[];heldTimer=null;pressWaiting=!1;constructor(e,t,n,r=e=>new WebSocket(e),i=()=>performance.now()){this.getInput=t,this.callbacks=n,this.makeSocket=r,this.now=i,this.reconnectTicket=e}start(){this.disposed||this.listenersBound||(this.bindInputListeners(),this.connect(),!this.disposed&&!this.terminal&&(this.inputTimer=window.setInterval(()=>this.periodicFlush(),DR)))}bindInputListeners(){this.listenersBound=!0,window.addEventListener(`blur`,this.onInputLoss),window.addEventListener(`focus`,this.onInputRegain),window.addEventListener(`pointerdown`,this.onPagePointer,!0),document.addEventListener(`visibilitychange`,this.onVisibilityChange)}setActive(e){this.setInputActive(e)}setInputActive(e){let t=this.active;this.active=e,e?this.boutStarted=!0:t&&this.sendInput(ER,!0)}notifyAction(){this.pressWaiting=!0,this.now()-(this.edgeSendTimes.at(-1)??-1/0)=AR||this.flushInput()&&this.edgeSendTimes.push(this.lastInputSentAt)}notifyHeld(){let e=OR-(this.now()-Math.max(this.edgeSendTimes.at(-1)??-1/0,this.heldSendTimes.at(-1)??-1/0));e>0?this.heldTimer??=window.setTimeout(()=>{this.heldTimer=null,this.notifyHeld()},e):this.withinLastSecond(this.heldSendTimes)>=jR||this.sendsInLastSecond()>=40||this.flushInput()&&this.heldSendTimes.push(this.lastInputSentAt)}periodicFlush(){this.now()-Math.max(this.edgeSendTimes.at(-1)??-1/0,this.heldSendTimes.at(-1)??-1/0)=40||this.flushInput()}sendsInLastSecond(){return this.withinLastSecond(this.sendTimes)}withinLastSecond(e){let t=this.now()-1e3;for(;e.length>0&&e[0]<=t;)e.shift();return e.length}onInputLoss=()=>{this.inputSuppressed||(this.sendInput(ER,this.boutStarted),this.inputSuppressed=!0,this.pointerFocus=!1)};onInputRegain=()=>{!document.hidden&&document.hasFocus()&&(this.inputSuppressed=!1)};onPagePointer=()=>{if(!document.hidden&&(this.pointerFocus=!0,this.inputSuppressed=!1,!document.hasFocus()))try{window.focus()}catch{}};onVisibilityChange=()=>{document.hidden?this.onInputLoss():this.onInputRegain()};connect(){if(this.disposed||this.terminal)return;let e=this.reconnectTicket;if(e===null){this.terminal=!0,this.stopInputLifecycle(),this.callbacks.onFreshAuth();return}let t;try{t=this.makeSocket(wR())}catch{this.terminal=!0,this.stopInputLifecycle(),this.callbacks.onFatal(`network_unavailable`);return}this.socket=t,t.binaryType=`arraybuffer`,t.onopen=()=>{if(!(this.socket!==t||this.disposed))try{t.send(JSON.stringify({version:7,type:`authenticate`,ticket:e})),this.reconnectTicket=null}catch{this.handleClose(t)}},t.onmessage=e=>this.handleMessage(t,e),t.onerror=()=>void 0,t.onclose=()=>this.handleClose(t)}handleMessage(e,t){if(!(this.socket!==e||this.disposed||this.terminal))try{if(typeof t.data!=`string`&&!(t.data instanceof ArrayBuffer))throw Error(`unsupported_frame`);let n=NR(t.data);if(this.applyMessage(n),n.type===`ticket`){try{e.send(JSON.stringify({version:7,type:`ticket_ack`,refresh_id:n.refresh_id}))}catch{this.handleClose(e)}return}this.callbacks.onMessage(n),n.type===`error`?this.terminate(n.code,e):n.type===`final`&&(this.terminal=!0,this.clearTransportReconnect(!0),this.clearOpponentPause(!0),this.stopInputLifecycle(),this.socket===e&&(this.socket=null),e.onopen=e.onmessage=e.onclose=e.onerror=null,e.close(1e3,`complete`))}catch(e){this.callbacks.onFatal(MA(e)),this.dispose()}}applyMessage(e){if(e.type===`welcome`){if(e.reconnect_ticket===void 0)throw Error(`missing_reconnect_ticket`);this.reconnectTicket=e.reconnect_ticket,this.serverTick=e.server_tick;let t=this.role===`spectator`&&e.role===`fighter`;this.role=e.role,this.playerId=e.role===`fighter`?e.player_id:null,this.sentAt.clear(),e.role===`fighter`?this.nextSequence=Math.max(this.nextSequence,e.next_sequence):this.stopInputLifecycle(),t&&(this.listenersBound||this.bindInputListeners(),this.inputTimer??=window.setInterval(()=>this.periodicFlush(),DR)),this.attempts=0,this.clearTransportReconnect(!0)}else e.type===`ticket`?this.reconnectTicket=e.reconnect_ticket:e.type===`snapshot`?(this.serverTick=Math.max(this.serverTick,e.payload.tick),this.setInputActive([`countdown`,`fight`,`knockdown`,`foul_recovery`,`referee_down`,`finish`].includes(e.payload.phase)),this.resting=e.payload.phase===`rest`,this.observeAcknowledgement(e.payload)):e.type===`paused`?(this.setInputActive(!1),this.startOpponentPause(e.grace_ms)):e.type===`resumed`?(this.setInputActive(!0),this.attempts=0,this.clearOpponentPause(!0)):e.type===`select`?this.clearOpponentPause(!0):e.type===`ready`?(this.clearOpponentPause(!0),this.setInputActive(!0)):e.type===`waiting`?(this.clearOpponentPause(!0),this.setInputActive(!1)):(e.type===`final`||e.type===`error`)&&(this.active=!1,this.clearOpponentPause(!0))}terminate(e,t){this.terminal=!0,this.active=!1,this.clearTransportReconnect(!0),this.clearOpponentPause(!0),this.stopInputLifecycle(),this.callbacks.onFatal(e),this.socket===t&&(this.socket=null,t.onopen=t.onmessage=t.onclose=t.onerror=null,t.close(1e3,`terminal`))}handleClose(e){if(this.socket!==e||(this.socket=null,this.active=!1,this.disposed||this.terminal))return;if(this.reconnectTicket===null){this.terminal=!0,this.stopInputLifecycle(),this.callbacks.onFreshAuth();return}this.clearOpponentPause(!1),this.reconnectDeadline===0&&(this.reconnectDeadline=this.now()+2e4);let t=Math.max(0,this.reconnectDeadline-this.now());if(this.callbacks.onReconnect(t),t<=0){this.terminal=!0,this.stopInputLifecycle(),this.callbacks.onFreshAuth();return}let n=Math.min(3e3,250*2**Math.min(this.attempts,4),t);this.attempts+=1,this.reconnectTimer=window.setTimeout(()=>{this.reconnectTimer=null,this.callbacks.onReconnect(Math.max(0,this.reconnectDeadline-this.now())),this.connect()},n)}requestCpu(e){let t=this.socket;if(this.role!==`fighter`||this.disposed||this.terminal||t?.readyState!==TR)return!1;try{return t.send(xn(e)),!0}catch{return this.handleClose(t),!1}}chooseStyle(e,t){let n=this.socket;if(this.role!==`fighter`||this.disposed||this.terminal||n?.readyState!==TR)return!1;try{return n.send(yn(e,t)),!0}catch{return this.handleClose(n),!1}}get inputLatencyMs(){return this.latencyMs}sequenceOf(e){return this.actionSequences.get(e)??null}observeAcknowledgement(e){if(this.playerId===null)return;let t=e.fighters.find(e=>e.player_id===this.playerId);if(t===void 0||t.last_input_sequence<0)return;let n=this.sentAt.get(t.last_input_sequence);if(n!==void 0){let e=Math.max(0,this.now()-n);this.latencyMs=this.latencyMs===null?e:this.latencyMs*.8+e*.2}for(let e of this.sentAt.keys())e<=t.last_input_sequence&&this.sentAt.delete(e)}sendInput(e,t=!1){return(this.active||t)&&this.transmit(e)}sendCornerChoice(e){return this.resting?this.transmit({moveX:0,moveY:0,defense:`none`,actions:[{kind:e}]}):!1}transmit(e){let t=this.socket;if(this.role!==`fighter`||this.disposed||this.terminal||t?.readyState!==TR)return!1;try{let n=e.actions.slice(0,4);t.send(vn(this.nextSequence,this.serverTick,{...e,actions:n})),this.sentAt.set(this.nextSequence,this.now()),this.sentAt.size>128&&this.sentAt.delete(this.sentAt.keys().next().value);for(let e of n)e.id!==void 0&&this.actionSequences.set(e.id,this.nextSequence);for(;this.actionSequences.size>64;)this.actionSequences.delete(this.actionSequences.keys().next().value);return this.nextSequence+=1,this.lastInputSentAt=this.now(),this.sendTimes.push(this.lastInputSentAt),!0}catch{return this.handleClose(t),!1}}flushInput(){return this.inputSuppressed||document.hidden||!(this.pointerFocus||document.hasFocus())||this.sendsInLastSecond()>=kR||(this.socket?.bufferedAmount??0)>MR||!this.sendInput(this.getInput())?!1:(this.pressWaiting=!1,!0)}startOpponentPause(e){this.clearOpponentPause(!1),this.opponentPaused=!0,this.opponentPauseDeadline=this.now()+e,this.callbacks.onReconnect(e),e>0&&this.scheduleOpponentPauseTick()}scheduleOpponentPauseTick(){let e=Math.max(0,this.opponentPauseDeadline-this.now());e<=0?(this.opponentPauseDeadline=0,this.callbacks.onReconnect(0)):this.opponentPauseTimer=window.setTimeout(()=>{this.opponentPauseTimer=null;let e=Math.max(0,this.opponentPauseDeadline-this.now());this.callbacks.onReconnect(e),e>0?this.scheduleOpponentPauseTick():this.opponentPauseDeadline=0},Math.min(250,e))}clearOpponentPause(e){let t=this.opponentPaused;this.opponentPaused=!1,this.opponentPauseDeadline=0,this.opponentPauseTimer!==null&&(clearTimeout(this.opponentPauseTimer),this.opponentPauseTimer=null),e&&t&&this.callbacks.onReconnect(0)}cancelReconnect(){this.reconnectTimer!==null&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null)}clearTransportReconnect(e){let t=this.reconnectDeadline!==0;this.reconnectDeadline=0,this.cancelReconnect(),e&&t&&this.callbacks.onReconnect(0)}stopInputLifecycle(){this.inputTimer!==null&&(clearInterval(this.inputTimer),this.inputTimer=null),this.heldTimer!==null&&(clearTimeout(this.heldTimer),this.heldTimer=null),this.listenersBound&&=(window.removeEventListener(`blur`,this.onInputLoss),window.removeEventListener(`focus`,this.onInputRegain),window.removeEventListener(`pointerdown`,this.onPagePointer,!0),document.removeEventListener(`visibilitychange`,this.onVisibilityChange),!1)}dispose(){if(this.disposed)return;this.disposed=!0,this.active=!1,this.reconnectTicket=null,this.clearTransportReconnect(!0),this.clearOpponentPause(!0),this.stopInputLifecycle();let e=this.socket;this.socket=null,e!==null&&(e.onopen=e.onmessage=e.onclose=e.onerror=null,e.close(1e3,`teardown`))}},FR={play:`CALLAHAN`,colour:`OKAFOR`,announcer:`RING ANNOUNCER`},IR=.3,LR=.9,RR=.25,zR=2.6,BR=4.5,VR=12,HR=.8,UR=6,WR=9,GR=6,KR=42,qR=8,JR=15,YR=10,XR=[60,480,640],ZR=500,QR=.2,$R=.3,ez=120,tz={knockdown:[`Down goes {b}!`,`{a} drops {b}!`,`{b} is down! What a shot from {a}!`,`Down goes {b}! {a} found the chin!`],knockdownAgain:[`{b} is down again!`,`Down for the second time! {b} is in deep trouble!`,`{a} puts {b} down again!`],knockdownCounter:[`Down goes {b}, off a perfect counter!`,`{a} times it, and {b} is down!`],struggle:[`{b} is struggling to get up...`,`{b} is trying to beat the count...`,`Can {b} get up?`],upLate:[`{b} beats the count at {n}!`,`Up at {n}! {b} is still in this!`,`{b} makes it up at {n}, but the legs look heavy.`],upEarly:[`{b} is up at {n}.`,`{b} is back up at the count of {n}.`,`Up at {n}. {b} wants to keep fighting.`],finishCall:[`{a} has to go for the finish now.`,`{b} needs to survive the next minute.`,`{b} has to hold and clear the head.`],hurt:[`{b} is hurt!`,`{a} has {b} in trouble!`,`{b}'s legs just buckled!`,`Big shot! {b} is wobbled!`,`{b} is rocked! Keep the pressure on, {a}!`],hurtBadly:[`{b} is out on their feet!`,`{b} is in all sorts of trouble!`,`{b} is badly hurt!`],guardBreak:[`{a} blasts right through the guard!`,`The guard is gone! {b} can't keep those hands up!`,`{a} breaks the guard down!`],counter:[`What a counter from {a}!`,`{a} times it perfectly! A {punch} on the counter!`,`{b} walked right into that {punch}!`,`Counter {punch} from {a}! Beautiful timing.`],bigShot:[`Big {punch} from {a}!`,`{a} lands a thudding {punch}!`,`That {punch} landed flush!`,`Huge {punch}! {b} felt that one.`],cut:[`{b} is cut over the {side} eye.`,`There's blood now. A cut over {b}'s {side} eye.`,`That's opened a cut over the {side} eye of {b}.`],cutWorse:[`That cut over {b}'s {side} eye is getting worse.`,`The blood is pouring from that {side} eye now.`,`{b} is bleeding badly from the {side} eye.`],cutGushing:[`That cut is gushing now! {b} is covered in it.`,`{b}'s face is a crimson mask, and nobody is stopping this!`],eyeSwelling:[`{b}'s {side} eye is swelling badly.`,`{b} is having trouble seeing out of that {side} eye.`],eyeShut:[`{b}'s {side} eye has closed completely!`,`That {side} eye is shut! {b} can't see them coming from that side.`,`{b} is fighting with one eye now.`],blindSide:[`{a} is working the blind side.`,`{b} never saw that one. Nothing is getting through that {side} eye.`,`Smart from {a}, punching where {b} can't see.`],parried:[`{a} picks it off and {b} is wide open!`,`Beautiful parry from {a}! {b} is off balance.`,`{a} slaps it away and {b} is left stranded.`],bodyCollapse:[`Body shot! {b} is going down!`,`{a} digs to the body and {b} is folding!`,`Oh, that body shot! {b} is in agony!`],knockdownBody:[`Down goes {b} from the body shot!`,`{b} takes a knee! That body shot took everything out!`,`{a} goes downstairs and {b} can't take it!`],cornerCut:[`{a}'s cutman is working on that cut.`,`They're working hard on the cut in {a}'s corner.`],cornerSwelling:[`{a}'s corner is getting the swelling down.`,`Ice and the enswell on that eye in {a}'s corner.`],cornerBreath:[`{a}'s corner wants the breath back first. Big drink of water.`,`{a} is told to breathe and settle down.`],combo:[`A three-punch combination from {a}!`,`{a} puts it together beautifully.`,`Lovely combination from {a}!`],unanswered:[`Five unanswered punches from {a}!`,`{a} is unloading! {b} has to fire back!`,`{b} is just covering up as {a} lets the hands go!`],jab:[`{a}'s jab is finding a home.`,`Stiff jab from {a}, and another.`,`{a} keeps popping that jab in {b}'s face.`],body:[`{a} is going to work on the body.`,`{a} keeps digging to the body.`,`Another one downstairs from {a}.`],payoff:[`The body work is paying off. {b} is slowing down.`,`Those body shots are taking it out of {b}.`,`{a} has invested in the body, and {b} is paying for it now.`],tiring:[`{b} is running on empty.`,`{b} is breathing hard. Those punches have nothing on them.`,`{b} has punched out. The tank is empty.`],takeover:[`{a} is taking over this round.`,`This is all {a} right now.`,`{a} is in complete control.`],clinch:[`{a} ties {b} up.`,`{a} grabs hold.`,`They're tied up in the clinch.`],holdingOn:[`{a} is hurt and holding on!`,`{a} grabs on for dear life!`,`Smart from {a}, holding on to clear the head.`],refBreak:[`The referee breaks them.`,`The referee steps in to separate them.`,`Break! The referee pulls them apart.`],refHit:[`{a} just tagged the referee!`,`Oh no, {a} has caught the referee!`,`That one landed on the referee!`],refDown:[`The referee is down! {a} has killed the referee!`,`Oh my goodness, the referee isn't moving! I think he's dead!`,`{a} has flattened the official for good! Absolute chaos!`],refBledOut:[`The referee has collapsed! He's bled out right there in the ring!`,`The referee goes down! He's lost too much blood!`],noRef:[`Nobody left to break them up!`,`No referee to part them, so they just let go.`],taunt:[`{a} drops the hands and invites {b} in!`,`Showboating from {a}! The crowd loves it.`,`{a} is taunting {b} now!`,`{a} sticks the chin out. Come and get it!`],lowBlow:[`Low blow from {a}! The referee steps in.`,`That's below the belt! {b} is doubled over.`,`{a} goes low, and the referee calls time.`],headbutt:[`Headbutt from {a}! The referee calls time.`,`{a} leads with the head! That's a foul.`],warning:[`A warning for {a}. One more and it costs a point.`,`The referee warns {a}. That can't happen again.`],deduction:[`The referee takes a point from {a}!`,`That costs {a} a point!`,`Point deduction! {a} has been warned enough.`],resume:[`And we're back underway.`,`Time in. Let's box.`],box:[`The referee waves them on. {b} has to survive now.`,`Box! {a} will be looking to finish it.`,`{b} has convinced the referee. Here comes {a}.`],evade:[`{a} slips it! Lovely head movement.`,`{b} misses, and {a} was never there.`,`Great defence from {a}.`],parry:[`{a} picks that off with the gloves.`,`{a} parries it away.`,`Tight defence from {a}.`],whiff:[`{a} misses wildly with the {punch}.`,`Big swing and a miss from {a}.`,`{a} throws everything into that {punch} and hits nothing but air.`],southpaw:[`{a} switches to southpaw.`,`{a} turns southpaw now.`],orthodox:[`{a} goes back to orthodox.`,`{a} switches back to orthodox.`],roundStart:[`Round {r}. Here we go.`,`We're underway in round {r}.`,`Round {r} is on.`],roundEnd:[`That's the bell to end round {r}.`,`The bell ends round {r}.`,`And that's round {r} in the books.`],savedByBell:[`Saved by the bell! {b} was in real trouble.`,`{b} is saved by the bell!`,`The bell rescues {b}!`],finalBell:[`That's the final bell!`,`The final bell! We go to the scorecards.`],summary:[`Round {r}: {a} landed {x} of {y}, {b} {z} of {w}.`],roundFor:[`I had that round for {a}.`,`{a} took that round.`,`That was {a}'s round.`],roundBig:[`The knockdown makes that a big round for {a}.`,`{a} wins that round big with the knockdown.`],roundClose:[`Close round. That one could go either way.`,`Tough round to score.`,`Nothing between them in that round.`],pullingAway:[`{a} is pulling away on the cards.`,`{b} needs something big. {a} is building a lead.`],ko:[`It's all over! {a} wins by knockout!`,`{b} can't beat the count! {a} wins it!`,`That's it! {a} has knocked out {b}!`],flashKo:[`Lights out! {b} is out cold!`,`One punch, and it's over! {a} wins!`,`Good night! {a} ends it with one shot!`],tko:[`Three knockdowns, and it's over! {a} wins!`,`The referee waves it off! {a} wins by stoppage!`],disqualified:[`{b} is disqualified!`,`That's it! {b} has been thrown out!`],forfeit:[`{b} has left the ring. {a} wins by forfeit.`],replay:[`Here it is again.`,`Let's see that one more time.`,`Watch {a} set it up...`],injBrokenNose:[`{b}'s nose is now mostly a suggestion.`,`That nose is broken. It is pointing at the exit, and so should {b}.`,`{a} has moved {b}'s nose to a different part of his face.`],injBrokenJaw:[`{b}'s jaw is broken. It is hanging off his face like a drawer left open.`,`That jaw has gone sideways. {b} will be eating through a straw, if he lives.`,`You can hear {b}'s jaw clicking from up here. That is not a good sound.`],injJawTorn:[`That is his jaw in the third row.`,`{a} has torn {b}'s jaw clean off! Somebody at ringside just caught a souvenir.`,`{b} has no lower jaw. His tongue is just hanging there like a necktie.`],injEyeOut:[`{b}'s {side} eye is out of his head! It is swinging on the nerve like a yo-yo.`,`The {side} eye has popped its socket. It is looking at {b}'s own cheek.`,`{a} has punched {b}'s {side} eye clean out. He can see his own shoes with it.`],injEarTorn:[`That is {b}'s {side} ear on the canvas. Somebody just trod on it.`,`{a} has taken the {side} ear clean off. {b} did not want to hear this anyway.`,`The {side} ear is gone. I think it is stuck to {a}'s glove.`],injFaceFlayed:[`The {side} half of {b}'s face has come off like a wet sock.`,`I can see {b}'s teeth through his {side} cheek. All of them.`,`{a} has peeled {b}'s face. That is muscle. That is bone. That is my lunch coming back up.`],injSkull:[`{b}'s skull has split open. That is his brain. I can see it thinking.`,`The top of {b}'s head is open like a boiled egg, and he is still standing.`,`That is brain, folks. One more upstairs and {b} forgets everything, permanently.`],injShoulder:[`{b}'s {side} shoulder has popped out. The arm is hanging like a coat on a hook.`,`The {side} shoulder is out of its socket. It is not supposed to be down there.`,`{b}'s {side} arm has come unplugged. His corner can shove it back in at the bell.`],injArmBroken:[`{b}'s {side} arm has snapped! The bone is out and waving at the crowd.`,`That {side} elbow now bends both ways. It is only meant to bend the one.`,`Compound fracture! {b}'s {side} forearm is dangling by the meat.`],injForearmSevered:[`{b}'s {side} forearm is off! The glove is still making a fist over there on the canvas.`,`{a} has taken the {side} arm off at the elbow, and {b} is punching with the stump!`,`There goes the {side} forearm. Somebody put it on ice. Actually, do not bother.`],injArmTorn:[`{a} has ripped {b}'s {side} arm off at the shoulder! It is on the canvas, still twitching!`,`The whole {side} arm is gone. That shoulder is a fire hose.`,`{b} has lost the {side} arm. The judges will take that into account.`],injRibs:[`{b}'s {side} ribs have caved in. One is sticking out of him like a coat hanger.`,`Those {side} ribs are through the skin. You can count them. I make it four.`,`The {side} side of {b} just folded like a lawn chair.`],injLiver:[`That is the liver, and it has burst. {b} is about to show us everything he ate today.`,`{b}'s liver just exploded inside him. He is turning a colour I have only seen on old fruit.`,`Liver shot, and it popped. {b} is filling up with blood on the inside.`],injDisemboweled:[`{b}'s belly is open and his guts are on the canvas! He is treading on them!`,`He is holding his intestines in with his glove and he still wants to fight.`,`{a} has unzipped {b} from hip to hip. That is twenty feet of intestine, and it is all coming out.`],injKnee:[`{b}'s {side} knee is bending the wrong way. Knees should not have a reverse gear.`,`The {side} knee has blown apart. I can see the kneecap. It is over by the ropes.`,`{b}'s {side} leg is held on by skin and optimism.`],ghastly:[`I would stop this fight. Nobody is going to stop this fight.`,`In any other sport that is a penalty.`,`{b} will feel that in the morning, if he gets one.`,`There are children watching this. They are cheering.`],shoulderBack:[`{b}'s corner has shoved the {side} shoulder back in. You could hear it from the cheap seats.`,`The {side} shoulder is back in its socket. {b} screamed, and then he said thank you.`,`They have popped {b}'s {side} shoulder back in. Good as new. It is not, but good as new.`],vomit:[`{a} is throwing up blood and bile all over the canvas. Mind your step.`,`There it goes. {a} is vomiting something black. That is the liver talking.`,`{a} is sick down his own chest. Blood, bile, and I think that was a tooth.`],finishHim:[`{b} is out on his feet and nobody is stopping it! Finish him!`,`{b} is just standing there, dead behind the eyes. {a} can do anything he likes with him.`,`This is it. {a} gets one free punch, and {b} will not be getting up from it. Ever.`],armless:[`{a} is trying to punch with arms he no longer has.`,`{a} just threw a punch. I will let somebody else tell him.`,`No arms, and {a} is still swinging. You have to admire it. You do not have to watch it.`,`{a} is waving two stumps at him. That is not a guard. That is a cry for help.`],fatEyesOut:[`{a} has punched both of {b}'s eyes out through the back of his head!`,`Two eyes, one punch! They are rolling across the ring. One of them is looking at me.`,`{b}'s eyes are out, and so is {b}. There is daylight coming through his face.`],fatHeadBurst:[`{b}'s head has exploded! It is just gone! It is all over the first three rows!`,`{a} hit him so hard his head burst like a dropped melon. The front row is wearing {b}.`],fatDecapitation:[`{a} has taken {b}'s head clean off! It is in the crowd! Somebody is holding it up!`,`Off comes the head! The body is still standing there, looking for it.`],fatSpineRip:[`The uppercut takes {b}'s head off, and his spine comes with it! All of it! Like boning a fish!`,`{b}'s head is in the air with the whole spine dangling off it. I have never seen that. Nobody has.`],fatHeartPunch:[`{a}'s fist has gone straight through {b}'s chest! That is his heart on the canvas, and it is still beating!`,`In through the chest and out the back! {a} is wearing {b} like a bracelet.`],fatGutting:[`{a} has emptied {b} onto the canvas! Everything he kept inside is now outside!`,`One straight to the gut and it all falls out. Liver, stomach, the lot. {b} is hollow.`],fatBisection:[`{a} has torn {b} in half at the waist! The legs are still standing! The top half is trying to crawl away!`,`{b} is in two pieces. The judges will have to score each half separately.`],fatTotalGib:[`{b} has exploded! There is nothing left! It is raining {b}!`,`{a} hit him and he just came apart. There are bits of {b} on the lights. There is a foot in my coffee.`],deathBledOut:[`{b} has bled to death, right there in the ring. There is more of him on the canvas than in him.`,`{b} is gone. He ran out of blood. You do need some.`,`And {b} just drops. Bled out. They will need a mop and a priest.`],deathBrain:[`That was the last of {b}'s brain, and {a} has punched it into soup. He is dead before he lands.`,`{b} is dead. His brain has left through the hole in his skull.`,`{b} is dead. You cannot fight without a brain. Plenty have tried.`],deathGutted:[`{b} is dead. {a} has punched what was left of his insides clean out of him.`,`That body shot went in one side and out the other. {b} is done, and I mean buried.`,`{b} has been gutted like a fish, and he has died like one, flapping.`],deathFatality:[`He is dead. I would like that on the record. {b} is extremely dead.`,`I have been doing this thirty years. I am going to need a different job.`,`Somebody tell {b}'s corner they can stop shouting advice.`],doubleDeath:[`They are both dead. Both of them. I do not know who to interview.`,`Two fighters, no survivors. The judges are going to hate this.`,`{a} and {b} have killed each other. Call it a draw. Call somebody.`]},nz={ko:`ko`,flash_ko:`flashKo`,tko:`tko`,disqualification:`disqualified`,forfeit:`forfeit`},rz={broken_nose:`injBrokenNose`,broken_jaw:`injBrokenJaw`,jaw_torn:`injJawTorn`,eye_out:`injEyeOut`,ear_torn:`injEarTorn`,face_flayed:`injFaceFlayed`,skull_fractured:`injSkull`,shoulder_dislocated:`injShoulder`,arm_broken:`injArmBroken`,forearm_severed:`injForearmSevered`,arm_torn:`injArmTorn`,ribs_broken:`injRibs`,liver_ruptured:`injLiver`,disemboweled:`injDisemboweled`,knee_blown:`injKnee`},iz={eyes_out:`fatEyesOut`,head_burst:`fatHeadBurst`,decapitation:`fatDecapitation`,spine_rip:`fatSpineRip`,heart_punch:`fatHeartPunch`,gutting:`fatGutting`,bisection:`fatBisection`,total_gib:`fatTotalGib`},az={bled_out:`deathBledOut`,brain:`deathBrain`,gutted:`deathGutted`},oz=new Set([`injJawTorn`,`injEyeOut`,`injFaceFlayed`,`injSkull`,`injForearmSevered`,`injArmTorn`,`injDisemboweled`,`finishHim`,`fatEyesOut`,`fatHeadBurst`,`fatDecapitation`,`fatSpineRip`,`fatHeartPunch`,`fatGutting`,`fatBisection`,`fatTotalGib`,`deathBledOut`,`deathBrain`,`deathGutted`,`deathFatality`,`doubleDeath`]),sz={struggle:new Set([`knockdown`]),finishHim:new Set([`finish`])},cz=3.2,lz=4,uz=`struggle`,dz=new Set([`countdown`]),fz=3.2,pz=new Set([`knockdown`,`knockdownAgain`,`knockdownCounter`,`knockdownBody`,`bodyCollapse`,`upLate`,`upEarly`,`hurt`,`hurtBadly`,`lowBlow`,`headbutt`,`deduction`,`ko`,`flashKo`,`tko`,`disqualified`,`forfeit`,`replay`,`refDown`,`refBledOut`,`savedByBell`,`finalBell`,`roundEnd`,`roundStart`,`injBrokenNose`,`injBrokenJaw`,`injEarTorn`,`injShoulder`,`injArmBroken`,`injRibs`,`injLiver`,`injKnee`,...oz]),mz=new Set([`lowBlow`,`headbutt`,`warning`,`deduction`,`box`,`tko`]),hz={fatEyesOut:99,fatHeadBurst:99,fatDecapitation:99,fatSpineRip:99,fatHeartPunch:99,fatGutting:99,fatBisection:99,fatTotalGib:99,doubleDeath:99,deathBledOut:98,deathBrain:98,deathGutted:98,deathFatality:98,finishHim:97,injJawTorn:96,injEyeOut:96,injFaceFlayed:96,injSkull:96,injForearmSevered:96,injArmTorn:96,injDisemboweled:96,injBrokenNose:85,injBrokenJaw:85,injEarTorn:85,injShoulder:85,injArmBroken:85,injRibs:85,injLiver:85,injKnee:85,vomit:66,shoulderBack:47,ghastly:44,armless:40,ko:98,flashKo:98,tko:98,disqualified:98,forfeit:98,refDown:97,refBledOut:97,refHit:72,knockdown:95,knockdownAgain:95,knockdownCounter:95,knockdownBody:95,bodyCollapse:86,upLate:90,upEarly:90,replay:88,deduction:84,lowBlow:82,headbutt:82,hurt:80,box:78,hurtBadly:80,holdingOn:76,savedByBell:74,finalBell:72,struggle:70,guardBreak:65,eyeShut:62,counter:60,parried:58,bigShot:55,roundEnd:52,cut:50,cutWorse:50,summary:50,cutGushing:48,eyeSwelling:48,cornerCut:47,cornerSwelling:47,cornerBreath:47,blindSide:42,roundFor:46,roundBig:46,roundClose:46,pullingAway:46,unanswered:45,finishCall:44,warning:42,combo:40,payoff:40,takeover:38,body:35,jab:30,tiring:30,roundStart:28,taunt:25,parry:22,evade:20,clinch:20,whiff:18,refBreak:12,noRef:12,southpaw:10,orthodox:10,resume:10},gz={finishCall:`colour`,payoff:`colour`,tiring:`colour`,takeover:`colour`,holdingOn:`colour`,taunt:`colour`,parry:`colour`,evade:`colour`,warning:`colour`,blindSide:`colour`,cornerCut:`colour`,cornerSwelling:`colour`,cornerBreath:`colour`,roundFor:`colour`,roundBig:`colour`,roundClose:`colour`,pullingAway:`colour`,cutGushing:`colour`,noRef:`colour`,jab:`colour`,ghastly:`colour`,shoulderBack:`colour`,vomit:`colour`,deathFatality:`colour`,doubleDeath:`colour`,armless:`colour`},_z={combo:6,jab:20,body:18,evade:12,parry:15,parried:8,blindSide:20,whiff:12,clinch:15,refBreak:20,taunt:10,southpaw:15,orthodox:15,bigShot:4,counter:3,unanswered:15,takeover:25,vomit:20,ghastly:14,armless:12},vz=[`zero`,`one`,`two`,`three`,`four`,`five`,`six`,`seven`,`eight`,`nine`,`ten`,`eleven`,`twelve`,`thirteen`,`fourteen`,`fifteen`],yz=e=>vz[e]??String(e),bz=[...vz,`sixteen`,`seventeen`,`eighteen`,`nineteen`],xz=[``,``,`twenty`,`thirty`,`forty`,`fifty`,`sixty`,`seventy`,`eighty`,`ninety`];function Sz(e){return!Number.isInteger(e)||e<0||e>=1e3?String(e):e<20?bz[e]:e<100?`${xz[Math.floor(e/10)]}${e%10==0?``:`-${bz[e%10]}`}`:`${bz[Math.floor(e/100)]} hundred${e%100==0?``:` and ${Sz(e%100)}`}`}function Cz(e,t=!0){if(Et(e))return`making a pro debut`;let n=e.draws>0?`${Sz(e.wins)}, ${Sz(e.losses)} and ${Sz(e.draws)}`:`${Sz(e.wins)} and ${e.losses===0?`oh`:Sz(e.losses)}`;return t&&e.knockouts>0?`${n}, ${Sz(e.knockouts)} by knockout`:n}function wz(e){return .85+e.length*.077+(e.split(`...`).length-1)*.35}var Tz=.3;function Ez(e,t){let n=t-Tz,r=[e=>[e.record===void 0?null:Cz(e.record),On(e.style)],e=>[On(e.style)],()=>[]];for(let t of r){let r=e.map((e,n)=>{let r=n===0?`In the blue corner`:`And in the red corner`,i=t(e).filter(e=>e!==null);return i.length===0?`${r}, ${e.name}!`:`${r}, ${i.join(`, `)}... ${e.name}!`});if(r.reduce((e,t)=>e+wz(t),0)<=n)return r}let i=`${e[0].name}... versus ${e[1].name}!`;return wz(i)<=n?[i]:[]}function Dz(e,t){let n=e.replace(/\{(a|b|n|side|punch|r|x|y|z|w)\}/gu,(e,n)=>String(t[n]??``));return n.charAt(0).toUpperCase()+n.slice(1)}var Oz=(e,t)=>{let n=Math.imul((e|0)^Math.imul(t,2654435761),2246822507);return n^=n>>>13,n=Math.imul(n,3266489909),(n^n>>>16)>>>0};function kz(e){let t=e.split(`:`);return[t.at(-2),t.at(-1)]}function Az(e,t){let[n=`punch`,r=`head`]=kz(e),i=t!==void 0&&t.action===n?t.action_hand:null,a=n===`jab`?`jab`:n===`straight`?i===null?`straight`:`${i} hand`:i===null?n:`${i} ${n}`;return r===`body`?`${a} to the body`:a}function jz(e){if(e.phase===`knockdown`){let t=Math.max(...e.fighters.map(e=>e.get_up_count));return Math.min(1,.3+t*.07)}if(e.phase===`finish`)return 1;if(e.phase!==`fight`)return 0;let t=0;for(let[n,r]of e.fighters.entries()){let i=e.fighters[1-n];r.is_downed||(r.stunned_ticks>0?t=Math.max(t,.75):r.poise<150&&(t=Math.max(t,.45)),(Math.max(Math.abs(r.x),Math.abs(r.y))>400||Math.abs(r.x)+Math.abs(r.y)>640)&&Math.hypot(r.x-i.x,r.y-i.y)<150&&(t=Math.max(t,.4)))}return t}var Mz=()=>({thrown:0,landed:0,damage:0,knockdowns:0,body:0}),Nz=()=>({jabs:[],window:[],evasions:[],run:0,runTick:-1e3,unanswered:0,stunnedAt:-1e3,knockedDownAt:-1e5,lowSince:null,tiredRound:0,takeoverRound:0,payoffRound:0,cutMarks:[0,0],eyeShut:[!1,!1],eyeSwelling:[!1,!1],rounds:0}),Pz=class{hooks;queue=[];showing=null;lastEnd=-1/0;lastChoice=new Map;cooldowns=new Map;notes=new Map;tallies=new Map;players={};fighters=null;tickRate=30;introduced=!1;lastPhase=null;round=0;roundLength=null;fightRemaining=0;struggleCalled=-1;lastKnockdown=null;refereeDead=!1;final=null;verdictGiven=!1;resultCalled=!1;deaths=new Map;caption={line:null,opacity:0,entering:0};constructor(e={}){this.hooks=e}observe(e,t,n,r,i){this.players=n,this.fighters=e.fighters,this.refereeDead=e.referee?.alive===!1,this.tickRate=r,this.trackClock(e),this.introduced||(this.introduced=!0,e.phase===`countdown`&&e.round_number===1&&this.introduce(e,i));let a=t.find(e=>e.kind===`result`)??null;for(let n of t)this.consider(n,e,a,i);this.inspect(e,i),this.lastPhase=e.phase,this.dropOutOfPhase(e.phase,i)}dropOutOfPhase(e,t){for(let t=this.queue.length-1;t>=0;--t){let n=this.queue[t].phases;n!==null&&!n.has(e)&&this.queue.splice(t,1)}let n=this.showing;n!==null&&n.phases!==null&&!n.phases.has(e)&&(n.end=Math.min(n.end,t+RR))}finish(e,t,n,r){this.players=t,this.final=e,n&&this.deaths.size<2&&(this.enqueue(this.announcement(`Ladies and gentlemen, we go to the scorecards.`,{kicker:`LADIES AND GENTLEMEN`,title:`WE GO TO THE SCORECARDS`,detail:``,corner:null},GR,99),r,null,30),this.hooks.speak?.([`Ladies and gentlemen, we go to the scorecards.`])),e.method===`forfeit`&&!this.resultCalled&&e.winner_id!==null&&(this.resultCalled=!0,this.say(`forfeit`,e.round,r,{a:this.nameOf(e.winner_id),b:this.nameOf(this.otherId(e.winner_id))},`result`,0))}verdict(e){let t=this.final;if(t===null||this.verdictGiven)return;this.verdictGiven=!0;let n=ci(t);if(t.winner_id===null&&this.deaths.size>=2){let n=`Ladies and gentlemen, both fighters are dead. There is no winner.`;this.enqueue(this.announcement(n,{kicker:`ROUND ${t.round}`,title:`DOUBLE DEATH`,detail:`NO SURVIVORS`,corner:null},WR,100),e,`verdict`,30),this.hooks.speak?.([n]);return}if(t.winner_id===null){let r=`After ${yz(t.round)} rounds, this bout is scored a ${n.toLowerCase()}.`;this.enqueue(this.announcement(r,{kicker:`AFTER ${yz(t.round).toUpperCase()} ROUNDS`,title:n,detail:``,corner:null},WR,100),e,`verdict`,30),this.hooks.speak?.([r]);return}let r=this.nameOf(t.winner_id),i=n.toLowerCase();this.enqueue(this.announcement(`The winner, by ${i}: ${r}!`,{kicker:`THE WINNER, BY ${n}`,title:r.toUpperCase(),detail:``,corner:this.seatOf(t.winner_id)},WR,100),e,`verdict`,30),this.hooks.speak?.([`And the winner, by ${i}... ${r}!`])}resultShown(e){let t=this.final;if(t===null||this.verdictGiven)return;if(t.method===`decision`||t.method===`draw`){this.verdict(e);return}if(this.verdictGiven=!0,t.winner_id===null)return;let n=this.nameOf(t.winner_id),r=this.otherId(t.winner_id),i=t.method===`death`,a=i&&r!==null?this.deaths.get(r)??null:null,o=i?a!==null&&ht(a)!==null?`fatality`:`death`:{ko:`knockout`,flash_ko:`knockout`,tko:`technical knockout`,disqualification:`disqualification`,forfeit:`forfeit`}[t.method]??t.method.replaceAll(`_`,` `),s=this.stoppageClock(t.round),c=t.method===`ko`||t.method===`flash_ko`||t.method===`tko`||i,l=c&&s!==null?`${i?`DEAD`:`STOPPED`} AT ${s} OF ROUND ${t.round}`:`ROUND ${t.round}`,u=c&&s!==null?`${n} wins by ${o} at ${s} of round ${t.round}.`:`${n} wins by ${o} in round ${t.round}.`,d=`WINS BY ${o.toUpperCase()}${a===null?``:` · ${gt(a)}`}`;this.enqueue(this.announcement(u,{kicker:l,title:n.toUpperCase(),detail:d,corner:this.seatOf(t.winner_id)},WR,100),e,`verdict`,30);let f=i?`${this.nameOf(r)} is dead`:this.refereeDead?`With the referee dead on the canvas, it is over`:`The referee stops the contest`,p=c&&s!==null?`${f} at ${s} of round ${yz(t.round)}. `:``;this.hooks.speak?.([`${p}Your winner, by ${o}... ${n}!`])}replay(e,t=null){let n=t?.kind===`referee_down`?{actor:t.actor_id,target:null,tick:t.tick}:this.lastKnockdown;this.say(`replay`,n?.tick??0,e,{a:this.nameOf(n?.actor??null),b:this.nameOf(n?.target??null)},`replay`,.6,6)}current(e){for(let t=this.queue.length-1;t>=0;--t)this.queue[t].expires<=e&&this.queue.splice(t,1);this.showing!==null&&e>=this.showing.end&&(this.lastEnd=this.showing.end,this.showing=null);let t=null;for(let n of this.queue)n.at>e||(t===null||n.line.priority>t.line.priority||n.line.priority===t.line.priority&&n.at=this.lastEnd+LR:t.line.urgent&&t.line.priority>n.line.priority&&e-n.start>=HR)&&(this.queue.splice(this.queue.indexOf(t),1),this.showing={line:t.line,start:e,end:e+t.line.hold,moment:t.moment,phases:t.phases},t.spoken!==null&&this.hooks.speak?.([t.spoken]))}let n=this.showing;return n===null?null:(this.caption.line=n.line,this.caption.opacity=Math.max(0,Math.min(1,(e-n.start)/RR,(n.end-e)/RR)),this.caption.entering=Math.max(0,1-(e-n.start)/RR),this.caption)}trackClock(e){e.phase===`fight`&&((this.lastPhase===`countdown`||this.lastPhase===`rest`)&&(this.roundLength={round:e.round_number,ticks:e.phase_ticks_remaining+1}),this.fightRemaining=e.phase_ticks_remaining),e.round_number!==this.round&&(this.round=e.round_number,this.tallies.clear())}stoppageClock(e){let t=this.roundLength;if(t===null||t.round!==e)return null;let n=Math.max(0,Math.floor((t.ticks-this.fightRemaining)/this.tickRate));return`${Math.floor(n/60)}:${String(n%60).padStart(2,`0`)}`}introduce(e,t){let n=e.phase_ticks_remaining/this.tickRate;if(n<1.2)return;let r=e.fighters.map(e=>this.nameOf(e.player_id)),i=e.fighters.map((e,t)=>({name:r[t],record:this.players[e.player_id]?.record,style:e.style})),a=Ez([i[0],i[1]],n),o=Math.max(1.4,a.length===2?wz(a[0]):n/2),s=[o,Math.max(1.4,n-o)];for(let n of[0,1]){let i=n===0?`blue`:`red`,c=this.players[e.fighters[n].player_id],l=Dn(e.fighters[n].style),u=c===void 0?``:`${l===null?``:`${l} · `}${c.record===void 0?``:`${Dt(c.record)} · `}${c.cpu===!0?`COMPUTER`:`RATED ${c.rating}`}`;this.enqueue(this.announcement(`In the ${i} corner, ${r[n]}.`,{kicker:`IN THE ${i.toUpperCase()} CORNER`,title:r[n].toUpperCase(),detail:u,corner:n},s[n],97),t+n*o,null,30,dz,a[n]??null)}}consider(e,t,n,r){let i=e.actor_id,a=e.target_id,o=`${e.tick}:${a??i??``}`,s={a:this.nameOf(i),b:this.nameOf(a)};switch(e.kind){case`punch_start`:i!==null&&(this.tally(i).thrown+=1);return;case`hit`:case`counter_hit`:i!==null&&a!==null&&!oi(e,t.events)&&this.landed(e,i,a,t,r);return;case`stun`:{if(a===null)return;this.notesFor(a).stunnedAt=e.tick;let t=this.fighter(a),n=t!==void 0&&(t.poise=ee-6);this.say(n?`hurtBadly`:`hurt`,e.event_id,r,s,o);return}case`guard_break`:this.say(`guardBreak`,e.event_id,r,s,o);return;case`knockdown`:{if(a===null||(this.lastKnockdown={actor:i,target:a,tick:e.tick},this.notesFor(a).knockedDownAt=e.tick,i!==null&&(this.tally(i).knockdowns+=1),n!==null))return;let c=t.events.some(t=>t.kind===`counter_hit`&&t.tick===e.tick&&t.target_id===a);this.say(e.amount>=2?`knockdownAgain`:e.detail===`body`?`knockdownBody`:c?`knockdownCounter`:`knockdown`,e.event_id,r,s,o);return}case`body_collapse`:this.say(`bodyCollapse`,e.event_id,r,s,o);return;case`parry`:this.say(`parried`,e.event_id,r,s,o,IR,void 0,i);return;case`eye_shut`:if(a===null||e.detail!==`left`&&e.detail!==`right`)return;this.notesFor(a).eyeShut[e.detail===`left`?0:1]=!0,this.say(`eyeShut`,e.event_id,r,{...s,side:e.detail},o);return;case`blind_side`:if(e.detail!==`left`&&e.detail!==`right`)return;this.say(`blindSide`,e.event_id,r,{...s,side:e.detail},null,IR,void 0,i);return;case`corner`:{let t=e.detail===`cut`?`cornerCut`:e.detail===`swelling`?`cornerSwelling`:e.detail===`breath`?`cornerBreath`:null;t!==null&&this.say(t,e.event_id,r,s,null,IR,void 0,i);return}case`count`:e.amount>=6&&this.struggleCalled!==this.lastKnockdown?.tick&&this.fighter(a)?.is_downed===!0&&(this.struggleCalled=this.lastKnockdown?.tick??e.tick,this.say(`struggle`,e.event_id,r,{a:this.nameOf(this.otherId(a)),b:this.nameOf(a)},uz));return;case`get_up`:{for(let e=this.queue.length-1;e>=0;--e)this.queue[e].moment===uz&&this.queue.splice(e,1);this.showing?.moment===uz&&(this.showing.end=Math.min(this.showing.end,r+RR));let t={a:this.nameOf(this.otherId(i)),b:this.nameOf(i),n:yz(e.amount)};this.say(e.amount>=8?`upLate`:`upEarly`,e.event_id,r,t,o),this.say(`finishCall`,e.event_id,r,t,null,3.4,4);return}case`perfect_block`:this.say(`parry`,e.event_id,r,s,o,IR,void 0,i);return;case`evade`:{if(i===null)return;let t=this.notesFor(i);t.evasions=t.evasions.filter(t=>t>e.tick-YR*this.tickRate),t.evasions.push(e.tick),(this.fighter(a)?.action_power===`power`||t.evasions.length>=3)&&this.say(`evade`,e.event_id,r,s,o,IR,void 0,i)&&(t.evasions.length=0);return}case`whiff`:{let t=this.fighter(i);if(t?.action_power!==`power`||t.action===null)return;this.say(`whiff`,e.event_id,r,{...s,punch:Az(`${t.action}:${t.action_target??`head`}`,t)},o,IR,void 0,i);return}case`clinch`:{if(i===null)return;let t=this.fighter(i),n=e.tick-this.notesFor(i).stunnedAt<=3*this.tickRate||t!==void 0&&t.poise<150;this.say(n?`holdingOn`:`clinch`,e.event_id,r,s,o,IR,void 0,i);return}case`referee_break`:this.say(`refBreak`,e.event_id,r,s,null,IR,void 0,`referee`);return;case`referee_hit`:this.say(`refHit`,e.event_id,r,s,o,IR,void 0,i);return;case`referee_down`:this.say(e.action_id===null?`refBledOut`:`refDown`,e.event_id,r,s,o);return;case`clinch_break`:this.say(`noRef`,e.event_id,r,s,null,IR);return;case`taunt`:this.say(`taunt`,e.event_id,r,{a:s.a,b:this.nameOf(this.otherId(i))},o,IR,void 0,i);return;case`foul`:this.say(e.detail===`headbutt`?`headbutt`:`lowBlow`,e.event_id,r,s,o),this.fighter(i)?.warnings===1&&this.say(`warning`,e.event_id,r,s,null,3.6,4);return;case`point_deduction`:this.say(`deduction`,e.event_id,r,s,`deduction:${e.tick}`);return;case`resume`:this.say(`resume`,e.event_id,r,s,null);return;case`box`:this.say(`box`,e.event_id,r,{a:this.nameOf(this.otherId(a)),b:this.nameOf(a)},o);return;case`stance`:this.say(e.detail===`southpaw`?`southpaw`:`orthodox`,e.event_id,r,s,null,IR,void 0,i);return;case`exhausted`:i!==null&&this.tired(i,e.event_id,r);return;case`bell`:e.detail===`round_start`?(this.tallies.clear(),t.round_number>=2&&this.say(`roundStart`,e.event_id,r,{r:t.round_number},null,IR,fz)):e.detail===`round_end`&&this.roundEnded(e,t,n,r);return;case`injury`:{let n=Ze.find(t=>t===e.detail);if(a===null||n===void 0)return;let i=rz[ct(n)],c={...s,side:st(n)??``};!oz.has(i)&&t.events.some(t=>t.kind===`knockdown`&&t.tick===e.tick&&t.target_id===a)?this.sayAt(i,e.event_id,r+cz,c,8):this.say(i,e.event_id,r,c,o),oz.has(i)&&this.say(`ghastly`,e.event_id,r,s,null,3.8,4);return}case`injury_healed`:{let t=Ze.find(t=>t===e.detail);if(t===void 0||ct(t)!==`shoulder_dislocated`)return;this.sayAt(`shoulderBack`,e.event_id,r+lz,{b:this.nameOf(a??i),side:st(t)??``},9);return}case`armless`:this.say(`armless`,e.event_id,r,s,null,IR,void 0,i);return;case`vomit`:this.say(`vomit`,e.event_id,r,{a:this.nameOf(i??a)},o,IR,void 0,i??a);return;case`finish_him`:this.say(`finishHim`,e.event_id,r,s,o,0);return;case`fatality`:{let t=$e.find(t=>t===e.detail);t!==void 0&&this.say(iz[t],e.event_id,r,s,o,0);return}case`death`:{let t=mt(e.detail);if(t===null||a===null)return;this.deaths.set(a,t);let n={a:this.nameOf(i??this.otherId(a)),b:s.b};this.deaths.size>=2?this.say(`doubleDeath`,e.event_id,r,n,null,.6):t===`bled_out`||t===`brain`||t===`gutted`?this.say(az[t],e.event_id,r,n,o,0):this.say(`deathFatality`,e.event_id,r,n,null,3.6);return}case`result`:this.resulted(e,r);return;default:return}}landed(e,t,n,r,i){let[a,o]=kz(e.detail),s=this.tally(t);s.landed+=1,s.damage+=e.amount,o===`body`&&(s.body+=1);let c=this.notesFor(t),l=this.notesFor(n);l.run=0,l.unanswered=0,c.run=e.tick-c.runTick<=KR?c.run+1:1,c.runTick=e.tick,c.unanswered+=1,c.window=c.window.filter(t=>t>e.tick-JR*this.tickRate),c.window.push(e.tick);let u=`${e.tick}:${n}`,d=r.fighters.find(e=>e.player_id===t),f={a:this.nameOf(t),b:this.nameOf(n),punch:Az(e.detail,d)},p=d?.action_power===`power`&&d.action===a;if(e.kind===`counter_hit`&&e.amount>=40?this.say(`counter`,e.event_id,i,f,u,IR,void 0,t):(e.amount>=85||p&&o===`head`&&e.amount>=60)&&this.say(`bigShot`,e.event_id,i,f,u,IR,void 0,t),c.unanswered===5?this.say(`unanswered`,e.event_id,i,f,u,IR,void 0,t):c.run===3&&this.say(`combo`,e.event_id,i,f,u,IR,void 0,t),a===`jab`&&(c.jabs=c.jabs.filter(t=>t>e.tick-qR*this.tickRate),c.jabs.push(e.tick),c.jabs.length>=3&&this.say(`jab`,e.event_id,i,f,null,IR,void 0,t)&&(c.jabs.length=0)),o===`body`){let a=this.fighter(n);a!==void 0&&s.body>=5&&a.staminat>e.tick-JR*this.tickRate).length;c.window.length>=7&&m<=2&&c.takeoverRound!==r.round_number&&(c.takeoverRound=r.round_number,this.say(`takeover`,e.event_id,i,f,null,IR,void 0,t)&&this.hooks.cue?.(`chant`))}roundEnded(e,t,n,r){let i=t.round_number;if(n!==null){(n.detail===`decision`||n.detail===`draw`)&&this.say(`finalBell`,e.event_id,r,{},`bell`,IR,fz);return}let a=t.fighters.find(t=>{let n=this.notesFor(t.player_id);return t.stunned_ticks>0||t.poise({id:e.player_id,tally:this.tally(e.player_id)})),[c,l]=o.tally.landed>=s.tally.landed?[o,s]:[s,o];c.tally.thrown+l.tally.thrown>0&&this.sayAt(`summary`,e.event_id,r+2.4,{r:i,a:this.nameOf(c.id),x:c.tally.landed,y:c.tally.thrown,b:this.nameOf(l.id),z:l.tally.landed,w:l.tally.thrown},5);let u=(o.tally.knockdowns-s.tally.knockdowns)*1e3+(o.tally.damage-s.tally.damage)+6*(o.tally.landed-s.tally.landed),d=Math.abs(u)0?o:s;d!==null&&(this.notesFor(d.id).rounds+=1);let f=d===null?null:d===o?s:o,p=d===null||f===null?0:this.notesFor(d.id).rounds-this.notesFor(f.id).rounds,m=d===null?`roundClose`:o.tally.knockdowns===s.tally.knockdowns?i>=2&&p>=2?`pullingAway`:`roundFor`:`roundBig`;this.sayAt(m,e.event_id,r+6.4,{a:this.nameOf(d?.id??null),b:this.nameOf(f?.id??null)},5)}resulted(e,t){let n=nz[e.detail];if(n===void 0||this.resultCalled)return;this.resultCalled=!0;let r=e.actor_id;this.say(n,e.event_id,t,{a:this.nameOf(r),b:this.nameOf(this.otherId(r))},`result`,0)}inspect(e,t){if(e.phase===`fight`)for(let n of e.fighters){let r=this.notesFor(n.player_id),i={a:this.nameOf(this.otherId(n.player_id)),b:this.nameOf(n.player_id)};for(let[a,o]of[[0,`left`],[1,`right`]]){let s=a===0?n.trauma.left_cut:n.trauma.right_cut,c=r.cutMarks[a];c=XR[c]&&(r.cutMarks[a]=XR.filter(e=>s>=e).length,this.say(c===0?`cut`:c===1?`cutWorse`:`cutGushing`,e.tick+a,t,{...i,side:o},null));let l=a===0?n.trauma.left_eye:n.trauma.right_eye;!r.eyeSwelling[a]&&!r.eyeShut[a]&&l>=ZR&&(r.eyeSwelling[a]=!0,this.say(`eyeSwelling`,e.tick+a,t,{...i,side:o},null))}let a=n.stamina/Math.max(1,n.maximum_stamina);a=2*this.tickRate&&this.tired(n.player_id,e.tick,t)):a>=$R&&(r.lowSince=null)}}tired(e,t,n){let r=this.notesFor(e);r.tiredRound!==this.round&&(r.tiredRound=this.round,this.say(`tiring`,t,n,{a:this.nameOf(this.otherId(e)),b:this.nameOf(e)},null))}say(e,t,n,r,i,a=IR,o,s){let c=_z[e],l=`${e}:${s??``}`;if(c!==void 0){if(n<(this.cooldowns.get(l)??-1/0))return!1;this.cooldowns.set(l,n+c)}let u=Dz(this.choose(e,t),r),d={speaker:gz[e]??`play`,text:u,priority:hz[e],urgent:pz.has(e),hold:Fz(u),card:null},f=oz.has(e);return this.enqueue(d,n+a,i,o??(f?VR:void 0),sz[e]??null,null,f)}sayAt(e,t,n,r,i){let a=Dz(this.choose(e,t),r);this.enqueue({speaker:gz[e]??`play`,text:a,priority:hz[e],urgent:pz.has(e),hold:Fz(a),card:null},n,null,i)}announcement(e,t,n,r){return{speaker:`announcer`,text:e,priority:r,urgent:!0,hold:n,card:t}}choose(e,t){let n=tz[e],r=this.refereeDead&&mz.has(e)?n.filter(e=>!/referee/iu.test(e)):n,i=Oz(t,e.length*31+e.charCodeAt(0))%r.length;return r.length>1&&this.lastChoice.get(e)===i&&(i=(i+1)%r.length),this.lastChoice.set(e,i),r[i]}enqueue(e,t,n,r,i=null,a=null,o=!1){if(n!==null){if(!o&&this.queue.some(t=>t.moment===n&&t.line.priority>=e.priority)||!o&&this.showing?.moment===n&&this.showing.line.priority>=e.priority)return!1;for(let t=this.queue.length-1;t>=0;--t){let r=this.queue[t];r.moment===n&&!r.big&&r.line.priorityUR){let e=0;for(let t=1;tt.player_id===e)}otherId(e){let t=this.fighters;return t===null||e===null?null:t[0].player_id===e?t[1].player_id:t[1].player_id===e?t[0].player_id:null}seatOf(e){let t=this.fighters?.findIndex(t=>t.player_id===e)??-1;return t===0||t===1?t:null}nameOf(e){if(e===null)return`the fighter`;let t=this.players[e]?.name;if(t!==void 0&&t.trim().length>0)return t.trim();let n=this.seatOf(e);return n===0?`the blue corner`:n===1?`the red corner`:`the fighter`}};function Fz(e){return Math.min(5.2,Math.max(2.2,1.4+e.length*.05))}var Iz={name:`CopyShader`,uniforms:{tDiffuse:{value:null},opacity:{value:1}},vertexShader:` varying vec2 vUv; @@ -5306,7 +5306,7 @@ void main() { gl_FragColor = opacity * texel; - }`},Iz=class{constructor(){this.isPass=!0,this.enabled=!0,this.needsSwap=!0,this.clear=!1,this.renderToScreen=!1}setSize(){}render(){console.error(`THREE.Pass: .render() must be implemented in derived pass.`)}dispose(){}},Lz=new Kf(-1,1,1,-1,0,1),Rz=new class extends hl{constructor(){super(),this.setAttribute(`position`,new rl([-1,3,0,-1,-1,0,3,-1,0],3)),this.setAttribute(`uv`,new rl([0,2,0,0,2,0],2))}},zz=class{constructor(e){this._mesh=new H(Rz,e)}dispose(){this._mesh.geometry.dispose()}render(e){e.render(this._mesh,Lz)}get material(){return this._mesh.material}set material(e){this._mesh.material=e}},Bz=class extends Iz{constructor(e,t=`tDiffuse`){super(),this.textureID=t,this.uniforms=null,this.material=null,e instanceof Bd?(this.uniforms=e.uniforms,this.material=e):e&&(this.uniforms=Ld.clone(e.uniforms),this.material=new Bd({name:e.name===void 0?`unspecified`:e.name,defines:Object.assign({},e.defines),uniforms:this.uniforms,vertexShader:e.vertexShader,fragmentShader:e.fragmentShader})),this._fsQuad=new zz(this.material)}render(e,t,n){this.uniforms[this.textureID]&&(this.uniforms[this.textureID].value=n.texture),this._fsQuad.material=this.material,this.renderToScreen?(e.setRenderTarget(null),this._fsQuad.render(e)):(e.setRenderTarget(t),this.clear&&e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil),this._fsQuad.render(e))}dispose(){this.material.dispose(),this._fsQuad.dispose()}},Vz=class extends Iz{constructor(e,t){super(),this.scene=e,this.camera=t,this.clear=!0,this.needsSwap=!1,this.inverse=!1}render(e,t,n){let r=e.getContext(),i=e.state;i.buffers.color.setMask(!1),i.buffers.depth.setMask(!1),i.buffers.color.setLocked(!0),i.buffers.depth.setLocked(!0);let a,o;this.inverse?(a=0,o=1):(a=1,o=0),i.buffers.stencil.setTest(!0),i.buffers.stencil.setOp(r.REPLACE,r.REPLACE,r.REPLACE),i.buffers.stencil.setFunc(r.ALWAYS,a,4294967295),i.buffers.stencil.setClear(o),i.buffers.stencil.setLocked(!0),e.setRenderTarget(n),this.clear&&e.clear(),e.render(this.scene,this.camera),e.setRenderTarget(t),this.clear&&e.clear(),e.render(this.scene,this.camera),i.buffers.color.setLocked(!1),i.buffers.depth.setLocked(!1),i.buffers.color.setMask(!0),i.buffers.depth.setMask(!0),i.buffers.stencil.setLocked(!1),i.buffers.stencil.setFunc(r.EQUAL,1,4294967295),i.buffers.stencil.setOp(r.KEEP,r.KEEP,r.KEEP),i.buffers.stencil.setLocked(!0)}},Hz=class extends Iz{constructor(){super(),this.needsSwap=!1}render(e){e.state.buffers.stencil.setLocked(!1),e.state.buffers.stencil.setTest(!1)}},Uz=class{constructor(e,t){if(this.renderer=e,this._pixelRatio=e.getPixelRatio(),t===void 0){let n=e.getSize(new z);this._width=n.width,this._height=n.height,t=new Fs(this._width*this._pixelRatio,this._height*this._pixelRatio,{type:pa}),t.texture.name=`EffectComposer.rt1`}else this._width=t.width,this._height=t.height;this.renderTarget1=t,this.renderTarget2=t.clone(),this.renderTarget2.texture.name=`EffectComposer.rt2`,this.writeBuffer=this.renderTarget1,this.readBuffer=this.renderTarget2,this.renderToScreen=!0,this.passes=[],this.copyPass=new Bz(Fz),this.copyPass.material.blending=0,this.timer=new np}swapBuffers(){let e=this.readBuffer;this.readBuffer=this.writeBuffer,this.writeBuffer=e}addPass(e){this.passes.push(e),e.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}insertPass(e,t){this.passes.splice(t,0,e),e.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}removePass(e){let t=this.passes.indexOf(e);t!==-1&&this.passes.splice(t,1)}isLastEnabledPass(e){for(let t=e+1;t0||e.clinch_startup_ticks>0||e.taunt_ticks>0||e.is_foul_recovery_target}function rB(e,t,n={x:0,y:0,speed:0},r=0){let i=Math.max(2,Math.floor(g*Qz(e.conditioning,e.trauma.body)/100)),a=e.stunned_ticks-r,o=i;a>1?o=Math.max(2,Math.floor(i*ne/100)):a<=0&&(t.defense===`guard_high`||t.defense===`guard_low`)&&!yt(e.injuries)&&(o=Math.max(2,Math.floor(i*Yz/100))),o=St(o*10*ce(e.style).moveSpeedPercent,e.injuries)/1e3;let s=Math.hypot(t.moveX,t.moveY),c=s>1e3?1e3/s:1;return n.x=t.moveX*c*o/1e3,n.y=t.moveY*c*o/1e3,n.speed=o,n}function iB(e,t,n){return e.kind===`parry`&&e.target_id===t?Math.max(n,e.tick+e.amount):n}function aB(e,t,n){return e.kind===`defense`&&e.actor_id===t&&vB(e.detail)?Math.max(n??e.tick,e.tick):n}function oB(e,t){if(e.stunned_ticks>0||e.action_id!==null&&e.action_id===t.cutActionId)return!0;let n=t.evasionFrom;if(n===void 0||e.action===null)return!1;let r=e.action_start_tick+e.action_startup_ticks+e.action_active_ticks;return n>=r&&n=n&&t0?Math.min((n.rootedUntil??0)-t,e.stunned_ticks)-1:0;return Math.max(r,i)}function lB(e,t,n){if(!vB(e.defense))return 0;let r=n.evasionFrom;return t===void 0||r===void 0||r>t?null:Math.max(0,r+y+ce(e.style).evasionTicks-t-1)}function uB(e,t,n){if(e.queued_actions===0)return 1/0;if(t===void 0)return 0;if(e.action!==null&&!oB(e,n)){let n=e.action_start_tick+e.action_startup_ticks+e.action_active_ticks+e.action_recovery_ticks-t-1;if(n>0)return n}return Math.max(0,e.stunned_ticks)}function dB(e,t,n,r,i={}){let a=lB(e,r,i);if(n<=0||nB(e)||a===null)return{dx:0,dy:0};let o=Math.max(a,r===void 0?e.action===null?0:1/0:cB(e,r,i)),s=uB(e,r,i),c=oB(e,i),l=(t,n)=>Math.min(n.share??1,r!==void 0&&!c&&sB(e,r+1+t)?v/100:1),u=e.velocity_x,d=e.velocity_y,f=0,p=0,m=Math.floor(n),h=n-m;for(let e=0;e=o&&er.speed*i&&(u=u/a*r.speed*i,d=d/a*r.speed*i),f+=u,p+=d}if(h>0){let e=m>=o&&m(e*(100-_)+t*_)/100,pB=1e3,mB=2.5,hB=class{history=[];offset={dx:0,dy:0};mean={x:0,y:0,speed:0,share:1};sample={x:0,y:0,speed:0};horizon=null;holds={rootedUntil:0,cutActionId:null,evasionFrom:void 0};observe(e,t){this.holds.rootedUntil=iB(e,t,this.holds.rootedUntil),this.holds.evasionFrom=aB(e,t,this.holds.evasionFrom)}update(e,t,n,r,i,a,o,s){for(this.history.push({at:r,held:n<=0?{...t,moveX:0,moveY:0}:t,share:n<=0?1:n});this.history.length>2&&this.history[1].at0&&e.action_id!==null&&(this.holds.cutActionId=e.action_id),e!==null){let t=1e3/s,n=this.horizon;c=dB(e,i=>this.meanIntent(e,i,r-(n-1-i)*t,t),n,a,this.holds)}let l=mB*g*s*o,u=c.dx-this.offset.dx,d=c.dy-this.offset.dy,f=Math.hypot(u,d),p=f>l?l/f:1;return this.offset.dx+=u*p,this.offset.dy+=d*p,{dx:this.offset.dx,dy:this.offset.dy}}meanIntent(e,t,n,r){let i=n-r/2,a=n+r/2,o=this.mean;o.x=0,o.y=0,o.speed=0,o.share=0;for(let n=0;nr?{x:i*(S-r),y:a*r}:m>n?{x:i*n,y:a*(S-n)}:{x:i*m,y:a*h}}function _B(e,t,n){let r=e.x+t.dx,i=e.y+t.dy;if(n!==null){let t=Math.min(Zz,Math.hypot(e.x-n.x,e.y-n.y)),a=r-n.x,o=i-n.y,s=Math.hypot(a,o);s1e-9?(r=n.x+a/s*t,i=n.y+o/s*t):(r=e.x,i=e.y))}let a=gB(r,i);return{dx:a.x-e.x,dy:a.y-e.y}}function vB(e){return e===`slip_left`||e===`slip_right`||e===`weave`||e===`pull`}function yB(e,t,n,r=!1){return e.stunned_ticks>0||e.taunt_ticks>0||e.clinch_ticks>0?e.defense:n===null?vB(e.defense)&&!r?e.defense:yt(e.injuries)?`none`:t.defense:n}var bB=class{kind=null;id=``;startsAt=0;endsAt=0;until=0;sequence=null;started=!1;press(e,t,n,r,i,a=y,o=n){this.kind=e,this.id=t,this.startsAt=o,this.endsAt=o+a*1e3/i,this.until=this.endsAt+Math.max(0,r)*1e3/i,this.sequence=null,this.started=!1}acknowledge(e,t,n){if(this.kind===null)return!1;this.sequence??=n?.(this.id)??null,e.defense===this.kind&&(this.started=!0);let r=!t||e.stunned_ticks>0||e.clinch_ticks>0,i=!this.started&&this.sequence!==null&&e.last_input_sequence>=this.sequence&&e.queued_actions===0;return(r||i)&&(this.kind=null),i}pose(e){return this.kind!==null&&e>=this.until&&(this.kind=null),this.kind!==null&&e>=this.startsAt&&e=this.startsAt&&e=this.startsAt&&e=this.startsAt?!1:(this.kind=null,!0)}},xB=[{radius:8.2,y:-.55,count:120,scale:1},{radius:10.6,y:.35,count:150,scale:1.04},{radius:13.2,y:1.35,count:180,scale:1.08},{radius:16,y:2.45,count:210,scale:1.12}],SB=.95,CB=.42,wB=[3819104,5915960,3493980,6963002,4612159,5524835,7233348,9076852,4678266,7620714,10107450,11843778,3104688,11573822,2303534,2303534],TB=[13081462,9067067,7225640,14726287,5517341,11105359],EB=[1380364,2759442,4862496,7035464,9341572,11569742],DB=.9,OB=.235,kB=-.35,AB=.32,jB=.26,MB=6.2;function NB(e,t,n=MB){return t>0&&Math.hypot(e,t)>n&&Math.abs(Math.atan2(e,t))<.3}var PB=` + }`},Yz=class extends Lz{constructor(){super(),this.isOutputPass=!0,this.uniforms=Rd.clone(Jz.uniforms),this.material=new Hd({name:Jz.name,uniforms:this.uniforms,vertexShader:Jz.vertexShader,fragmentShader:Jz.fragmentShader}),this._fsQuad=new Bz(this.material),this._outputColorSpace=null,this._toneMapping=null}render(e,t,n){this.uniforms.tDiffuse.value=n.texture,this.uniforms.toneMappingExposure.value=e.toneMappingExposure,(this._outputColorSpace!==e.outputColorSpace||this._toneMapping!==e.toneMapping)&&(this._outputColorSpace=e.outputColorSpace,this._toneMapping=e.toneMapping,this.material.defines={},Cs.getTransfer(this._outputColorSpace)===`srgb`&&(this.material.defines.SRGB_TRANSFER=``),this._toneMapping===1?this.material.defines.LINEAR_TONE_MAPPING=``:this._toneMapping===2?this.material.defines.REINHARD_TONE_MAPPING=``:this._toneMapping===3?this.material.defines.CINEON_TONE_MAPPING=``:this._toneMapping===4?this.material.defines.ACES_FILMIC_TONE_MAPPING=``:this._toneMapping===6?this.material.defines.AGX_TONE_MAPPING=``:this._toneMapping===7?this.material.defines.NEUTRAL_TONE_MAPPING=``:this._toneMapping===5&&(this.material.defines.CUSTOM_TONE_MAPPING=``),this.material.needsUpdate=!0),this.renderToScreen===!0?(e.setRenderTarget(null),this._fsQuad.render(e)):(e.setRenderTarget(t),this.clear&&e.clear(e.autoClearColor,e.autoClearDepth,e.autoClearStencil),this._fsQuad.render(e))}dispose(){this.material.dispose(),this._fsQuad.dispose()}},Xz=70,Zz=1e3,Qz=f*2;function $z(e,t){return Math.max(65,100-Math.floor((Zz-e)/30)-Math.floor(t/50))}function eB(e,t,n){if(e.action===null||!T(e.action,t.class))return!1;let r=e.action_startup_ticks+e.action_active_ticks+e.action_recovery_ticks;return n-e.action_start_tick0||e.clinch_startup_ticks>0||e.taunt_ticks>0||e.is_foul_recovery_target}function iB(e,t,n={x:0,y:0,speed:0},r=0){let i=Math.max(2,Math.floor(g*$z(e.conditioning,e.trauma.body)/100)),a=e.stunned_ticks-r,o=i;a>1?o=Math.max(2,Math.floor(i*ne/100)):a<=0&&(t.defense===`guard_high`||t.defense===`guard_low`)&&!bt(e.injuries)&&(o=Math.max(2,Math.floor(i*Xz/100))),o=Ct(o*10*ce(e.style).moveSpeedPercent,e.injuries)/1e3;let s=Math.hypot(t.moveX,t.moveY),c=s>1e3?1e3/s:1;return n.x=t.moveX*c*o/1e3,n.y=t.moveY*c*o/1e3,n.speed=o,n}function aB(e,t,n){return e.kind===`parry`&&e.target_id===t?Math.max(n,e.tick+e.amount):n}function oB(e,t,n){return e.kind===`defense`&&e.actor_id===t&&yB(e.detail)?Math.max(n??e.tick,e.tick):n}function sB(e,t){if(e.stunned_ticks>0||e.action_id!==null&&e.action_id===t.cutActionId)return!0;let n=t.evasionFrom;if(n===void 0||e.action===null)return!1;let r=e.action_start_tick+e.action_startup_ticks+e.action_active_ticks;return n>=r&&n=n&&t0?Math.min((n.rootedUntil??0)-t,e.stunned_ticks)-1:0;return Math.max(r,i)}function uB(e,t,n){if(!yB(e.defense))return 0;let r=n.evasionFrom;return t===void 0||r===void 0||r>t?null:Math.max(0,r+y+ce(e.style).evasionTicks-t-1)}function dB(e,t,n){if(e.queued_actions===0)return 1/0;if(t===void 0)return 0;if(e.action!==null&&!sB(e,n)){let n=e.action_start_tick+e.action_startup_ticks+e.action_active_ticks+e.action_recovery_ticks-t-1;if(n>0)return n}return Math.max(0,e.stunned_ticks)}function fB(e,t,n,r,i={}){let a=uB(e,r,i);if(n<=0||rB(e)||a===null)return{dx:0,dy:0};let o=Math.max(a,r===void 0?e.action===null?0:1/0:lB(e,r,i)),s=dB(e,r,i),c=sB(e,i),l=(t,n)=>Math.min(n.share??1,r!==void 0&&!c&&cB(e,r+1+t)?v/100:1),u=e.velocity_x,d=e.velocity_y,f=0,p=0,m=Math.floor(n),h=n-m;for(let e=0;e=o&&er.speed*i&&(u=u/a*r.speed*i,d=d/a*r.speed*i),f+=u,p+=d}if(h>0){let e=m>=o&&m(e*(100-_)+t*_)/100,mB=1e3,hB=2.5,gB=class{history=[];offset={dx:0,dy:0};mean={x:0,y:0,speed:0,share:1};sample={x:0,y:0,speed:0};horizon=null;holds={rootedUntil:0,cutActionId:null,evasionFrom:void 0};observe(e,t){this.holds.rootedUntil=aB(e,t,this.holds.rootedUntil),this.holds.evasionFrom=oB(e,t,this.holds.evasionFrom)}update(e,t,n,r,i,a,o,s){for(this.history.push({at:r,held:n<=0?{...t,moveX:0,moveY:0}:t,share:n<=0?1:n});this.history.length>2&&this.history[1].at0&&e.action_id!==null&&(this.holds.cutActionId=e.action_id),e!==null){let t=1e3/s,n=this.horizon;c=fB(e,i=>this.meanIntent(e,i,r-(n-1-i)*t,t),n,a,this.holds)}let l=hB*g*s*o,u=c.dx-this.offset.dx,d=c.dy-this.offset.dy,f=Math.hypot(u,d),p=f>l?l/f:1;return this.offset.dx+=u*p,this.offset.dy+=d*p,{dx:this.offset.dx,dy:this.offset.dy}}meanIntent(e,t,n,r){let i=n-r/2,a=n+r/2,o=this.mean;o.x=0,o.y=0,o.speed=0,o.share=0;for(let n=0;nr?{x:i*(S-r),y:a*r}:m>n?{x:i*n,y:a*(S-n)}:{x:i*m,y:a*h}}function vB(e,t,n){let r=e.x+t.dx,i=e.y+t.dy;if(n!==null){let t=Math.min(Qz,Math.hypot(e.x-n.x,e.y-n.y)),a=r-n.x,o=i-n.y,s=Math.hypot(a,o);s1e-9?(r=n.x+a/s*t,i=n.y+o/s*t):(r=e.x,i=e.y))}let a=_B(r,i);return{dx:a.x-e.x,dy:a.y-e.y}}function yB(e){return e===`slip_left`||e===`slip_right`||e===`weave`||e===`pull`}function bB(e,t,n,r=!1){return e.stunned_ticks>0||e.taunt_ticks>0||e.clinch_ticks>0?e.defense:n===null?yB(e.defense)&&!r?e.defense:bt(e.injuries)?`none`:t.defense:n}var xB=class{kind=null;id=``;startsAt=0;endsAt=0;until=0;sequence=null;started=!1;press(e,t,n,r,i,a=y,o=n){this.kind=e,this.id=t,this.startsAt=o,this.endsAt=o+a*1e3/i,this.until=this.endsAt+Math.max(0,r)*1e3/i,this.sequence=null,this.started=!1}acknowledge(e,t,n){if(this.kind===null)return!1;this.sequence??=n?.(this.id)??null,e.defense===this.kind&&(this.started=!0);let r=!t||e.stunned_ticks>0||e.clinch_ticks>0,i=!this.started&&this.sequence!==null&&e.last_input_sequence>=this.sequence&&e.queued_actions===0;return(r||i)&&(this.kind=null),i}pose(e){return this.kind!==null&&e>=this.until&&(this.kind=null),this.kind!==null&&e>=this.startsAt&&e=this.startsAt&&e=this.startsAt&&e=this.startsAt?!1:(this.kind=null,!0)}},SB=[{radius:8.2,y:-.55,count:120,scale:1},{radius:10.6,y:.35,count:150,scale:1.04},{radius:13.2,y:1.35,count:180,scale:1.08},{radius:16,y:2.45,count:210,scale:1.12}],CB=.95,wB=.42,TB=[3819104,5915960,3493980,6963002,4612159,5524835,7233348,9076852,4678266,7620714,10107450,11843778,3104688,11573822,2303534,2303534],EB=[13081462,9067067,7225640,14726287,5517341,11105359],DB=[1380364,2759442,4862496,7035464,9341572,11569742],OB=.9,kB=.235,AB=-.35,jB=.32,MB=.26,NB=6.2;function PB(e,t,n=NB){return t>0&&Math.hypot(e,t)>n&&Math.abs(Math.atan2(e,t))<.3}var FB=` #ifdef USE_INSTANCING vec4 crowdWorld = modelMatrix * instanceMatrix * vec4(transformed, 1.0); #else vec4 crowdWorld = modelMatrix * vec4(transformed, 1.0); #endif vCrowdLight = vec3(-crowdWorld.x, ${7.5.toFixed(1)} - crowdWorld.y, -crowdWorld.z); -`,FB=` +`,IB=` #ifdef USE_COLOR totalEmissiveRadiance *= vColor.rgb * (0.22 + 0.78 * max(0.0, dot(inverseTransformDirection(normal, viewMatrix), normalize(vCrowdLight)))); #endif -`,IB=(e,t,n)=>{let r=Math.min(1,Math.max(0,(n-e)/(t-e)));return r*r*(3-2*r)};function LB(e,t){let n=[];for(let[r,i]of e.entries())for(let e=0;e0&&Math.abs(Math.atan2(s,c))<.3})}return n}function RB(e,t,n,r={rise:0,armLeft:0,armRight:0,sway:0}){let i=.2+.7*(1-e.keen),a=IB(i-.12,i+.12,n),o=Math.abs(Math.sin(t*(2.3+n*3.2)+e.phase*1.7))*(.02+.1*a),s=Math.sin(t*6.2+e.phase)*.32*a,c=kB+-2.35*a;return r.rise=a*AB+o,r.armLeft=c+s,r.armRight=c-s*.8,r.sway=Math.sin(t*1.6+e.phase)*(.04+n*.05),r}function zB(e){let t=Wg(e,!1);for(let t of e)t.dispose();if(t===null)throw Error(`crowd geometry could not be merged`);return t}function BB(){let e=new Gu(.16,.28,2,8);e.scale(1.35,1,.8),e.translate(0,.64,0);let t=new Gu(.078,.3,1,5);t.rotateZ(Math.PI/2),t.translate(0,.89,0);let n=new Gu(.11,.26,1,5);return n.rotateX(Math.PI/2),n.scale(1.7,1,1),n.translate(0,.4,.17),zB([e,t,n])}function VB(){let e=new Od(.105,10,6);e.rotateY(-Math.PI/2),e.scale(.92,1.12,1),e.translate(0,1.12,.01);let t=new qu(.048,.056,.1,5,1,!0);t.translate(0,.99,0);let n=t.getAttribute(`uv`);for(let e=0;e{e.vertexShader=e.vertexShader.replace(`#include `,`#include -varying vec3 vCrowdLight;`).replace(`#include `,`#include \n${PB}`),e.fragmentShader=e.fragmentShader.replace(`#include `,`#include -varying vec3 vCrowdLight;`).replace(`#include `,`#include \n${FB}`)},e.customProgramCacheKey=()=>`hands-crowd`;let u=new Hd({color:724501,roughness:.96,metalness:0,side:2}),d=new pu(o[0],s,i),f=new pu(o[1],c,i),p=new pu(o[2],l,i),m=new pu(o[3],s,i),h=new pu(o[3],s,i),g=[d,f,p,m,h],_=[d,f,p];for(let e of g)e.instanceMatrix.setUsage(Do),e.frustumCulled=!1;let v=new V;for(let t=0;t.12&&v.setHex(EB[Math.floor(e()*EB.length)]).multiplyScalar((.8+e()*.4)*n),p.setColorAt(t,v)}for(let e of g)e.instanceColor.needsUpdate=!0;let y=new H(o[4],u);y.name=`stands`,y.receiveShadow=!1,n.add(y,...g);let b=new B(0,1,0),x=new B,S=new ms,C=new B,w=new Rs,T=new Rs,E=new Rs,D=new Rs,O={rise:0,armLeft:0,armRight:0,sway:0},k=(e,t,n,r)=>{E.makeTranslation(n*OB,DB,0),D.makeRotationX(r),T.multiplyMatrices(w,E).multiply(D),e.setMatrixAt(t,T)},ee=0,A=!1,te=!1,j=!1,M=0,ne=0,re=r.flatMap((e,t)=>e.platform?[t]:[]),ie=new Rs().makeScale(0,0,0),N=(e,t)=>{let n=r[e];if(j&&n.platform)for(let n of t?g:_)n.setMatrixAt(e,ie);else RB(n,M,ne,O),S.setFromAxisAngle(b,n.yaw+O.sway),w.compose(x.set(n.x,n.y+O.rise*n.scale,n.z),S,C.setScalar(n.scale)),d.setMatrixAt(e,w),f.setMatrixAt(e,w),p.setMatrixAt(e,w),t&&(k(m,e,1,O.armLeft),k(h,e,-1,O.armRight))},ae=(e,t,n=!1)=>{let r=n||te;te=!1;let a=r?1:A?4:2,o=Math.ceil(i/a),s=ee%a*o,c=Math.min(i,s+o);ee+=1,M=e,ne=t;let l=!A||r;for(let e=s;e{e!==A&&(A=e,m.visible=!e,h.visible=!e,e||(te=!0))},makeRoomForCamera:e=>{let t=NB(e.x,e.z,j?5.9:MB);if(t!==j){j=t;for(let e of re)N(e,!0);for(let e of g)e.instanceMatrix.clearUpdateRanges(),e.instanceMatrix.needsUpdate=!0}},dispose:()=>{for(let e of o)e.dispose();for(let e of[s,c,l,u])e.dispose();a.dispose();for(let e of g)e.dispose()}}}var qB=.3,JB=.012,YB=e=>()=>(e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296);function XB(){let e=new fc;e.name=`arena`;let t=[],n=[],r=[],i=new Hd({color:`#05070c`,roughness:.95});n.push(i);let a=new Ku(30,40);t.push(a);let o=new H(a,i);o.rotation.x=-Math.PI/2,o.position.y=-1,o.receiveShadow=!0,e.add(o);let s=YB(20260727),c=xB,l=KB(s);e.add(l.group);let u=document.createElement(`canvas`);u.width=1024,u.height=64;let d=u.getContext(`2d`);d!==null&&(d.fillStyle=`#070c1a`,d.fillRect(0,0,1024,64),d.fillStyle=`#13203f`,d.fillRect(0,0,1024,5),d.fillRect(0,59,1024,5),d.textBaseline=`middle`,d.font=`800 38px Inter, system-ui, sans-serif`,d.fillStyle=`#e9c46a`,d.fillText(`H A N D S`,28,33),d.fillStyle=`#c9d6f2`,d.font=`600 26px Inter, system-ui, sans-serif`,d.fillText(`CHAMPIONSHIP BOXING`,300,34),d.fillStyle=`#e9c46a`,d.font=`800 30px Inter, system-ui, sans-serif`,d.fillText(`FIGHT NIGHT`,700,34),d.fillStyle=`#b91c1c`,d.fillRect(948,22,22,22),d.fillStyle=`#1d4ed8`,d.fillRect(978,22,22,22));let f=new Bu(u);f.colorSpace=xo,f.wrapS=Zi,f.repeat.set(-6,1),r.push(f);let p=new Al({map:f,side:1});n.push(p);let m=c[0].y+CB,h=new qu(c[0].radius-SB-.03,c[0].radius-SB-.03,m- -1-.04,72,1,!0);t.push(h);let g=new H(h,p);g.name=`boards`,g.position.y=(m+-1)/2+.02,e.add(g);let _=new Float32Array(270);for(let e=0;e<90;e+=1){let t=c[Math.floor(s()*c.length)],n=s()*Math.PI*2;_[e*3]=Math.sin(n)*t.radius,_[e*3+1]=t.y+.9+s()*.5,_[e*3+2]=Math.cos(n)*t.radius}let v=new hl;v.setAttribute(`position`,new el(_,3)),t.push(v);let y=new Mu({color:13623551,size:.09,transparent:!0,opacity:0,blending:2,depthWrite:!1});n.push(y);let b=new Lu(v,y);e.add(b);let x=new Hd({color:`#11151d`,roughness:.6,metalness:.4});n.push(x);let S=new Hd({color:`#1a2230`,emissive:`#dfe9ff`,emissiveIntensity:1.1,roughness:.4});n.push(S);let C=new Al({color:`#a8c4ff`,transparent:!0,opacity:.006,blending:2,depthWrite:!1,side:2});n.push(C);let w=new Wu(9,.18,.18);t.push(w);let T=new qu(.09,.14,.22,10);t.push(T);let E=new Ju(1.7,6.6,20,1,!0);t.push(E);for(let t=0;t<2;t+=1){let n=new H(w,x);n.position.set(0,7.6,t===0?-1.6:1.6),e.add(n);for(let t=0;t<5;t+=1){let r=-3.6+t*1.8,i=new H(T,S);i.position.set(r,7.45,n.position.z),e.add(i);let a=new H(E,C);a.position.set(r,4.1,n.position.z*.4),e.add(a)}}let D=new Hd({color:`#070a12`,roughness:1});n.push(D);let O=new qu(24,24,14,32,1,!0);t.push(O);let k=new H(O,D);k.position.y=5,k.material.side=1,e.add(k);let ee=document.createElement(`canvas`);ee.width=512,ee.height=256;let A=ee.getContext(`2d`);A!==null&&(A.fillStyle=`#04060c`,A.fillRect(0,0,512,256),A.strokeStyle=`#f1cc72`,A.lineWidth=6,A.strokeRect(14,14,484,228),A.fillStyle=`#f1cc72`,A.font=`800 84px Inter, system-ui, sans-serif`,A.textAlign=`center`,A.textBaseline=`middle`,A.fillText(`H A N D S`,256,104),A.fillStyle=`#8fa3c8`,A.font=`600 30px Inter, system-ui, sans-serif`,A.fillText(`CHAMPIONSHIP BOXING`,256,186));let te=new Bu(ee);te.colorSpace=xo;let j=new Al({map:te});n.push(j);let M=new Wu(4.6,2.3,.3);t.push(M);let ne=new H(M,j);ne.position.set(0,6.4,-14.5),e.add(ne);let re=new H(M,x);re.position.set(0,6.4,-14.65),e.add(re),r.push(te);let ie=0,N=0,ae=0,oe=!1;return{group:e,update:(e,t,n)=>{ae=Math.max(0,ae-t*qB),n&&!oe&&l.update(0,0,!0),oe=n,n||(l.update(e,ae),f.offset.x=e*JB%1,ie-=t,ie<=0&&(N=.09+Math.random()*.08,ie=(.25+Math.random()*1.6)/(1+ae*4)),N=Math.max(0,N-t),y.opacity=N>0?.85:0)},excite:e=>{ae=Math.min(1,ae+Math.max(0,e))},excitement:()=>ae,setLowTier:l.setLowTier,makeRoomForCamera:l.makeRoomForCamera,dispose:()=>{for(let e of t)e.dispose();for(let e of n)e.dispose();for(let e of r)e.dispose();l.dispose()}}}var ZB=2.05,QB=5.5,$B=1.05,eV=1.78,tV=3.75,nV=.85,rV=.45,iV=1.18,aV=2.5,oV=5.5;function sV(e,t,n){return e<2.5||t<3?null:(n+Math.floor((e-aV)/oV))%2}function cV(e){return Math.max(0,e-aV)%oV}var lV=.95,uV=2.6,dV=-25;function fV(e,t,n,r,i){let a=e===0?-1:1,o=r*Math.PI/180,s=-a*Math.SQRT1_2,c=a*Math.SQRT1_2,l=s*Math.cos(o)+c*Math.sin(o),u=-s*Math.sin(o)+c*Math.cos(o);return i.set(a*t+l*n,0,-a*t+u*n)}function pV(e,t,n,r,i){fV(e,t,uV,dV+Math.min(1,n/oV)*5,r).setY(1.45),fV(e,t,.62,27,i).setY(1.05)}var mV={top:2.42,bottom:.95,width:2.4};function hV(e,t,n,r=.09){let i=Math.max(.2,1-n-r),a=Math.max((mV.top-mV.bottom)/i,mV.width/Math.max(.1,e)),o=(mV.top+mV.bottom)/2;return{distance:a/(2*Math.tan(R.degToRad(t)/2)),height:o-(.5-(r+i/2))*a}}var gV=class{current=new B(0,ZB,QB);look=new B(0,$B,0);swayPhase=0;update(e,t,n,r,i,a,o,s,c=!1,l=null){this.swayPhase+=e;let u=a&&l!==null?nV:0,d=(n.x+r.x)/2+((l?.x??0)-(n.x+r.x)/2)*u,f=(n.z+r.z)/2+((l?.z??0)-(n.z+r.z)/2)*u,p=R.clamp(d,-1.4,1.4),m=R.clamp(f,-1.1,1.1),h=c?R.clamp(tV+i*.45-(a?.6:0),3.3,5.6):R.clamp(QB+i*.6-(a?.9:0),4.6,8.4),g=(c?eV:ZB)+i*.08-(a?.45:0),_=s?0:Math.sin(this.swayPhase*.21)*.35,v=s?0:Math.sin(this.swayPhase*.13)*.3,y=p*.32+_,b=h+m*.2,x=g+v*.2;if(this.current.x+=(y-this.current.x)*(1-Math.exp(-2.6*e)),this.current.y+=(x-this.current.y)*(1-Math.exp(-2.6*e)),this.current.z+=(b-this.current.z)*(1-Math.exp(-2.6*e)),this.look.x+=(p-this.look.x)*(1-Math.exp(-3.2*e)),this.look.y+=((a?u>0?rV:.7:c?iV:$B)-this.look.y)*(1-Math.exp(-3.2*e)),this.look.z+=(m*.6-this.look.z)*(1-Math.exp(-3.2*e)),!s&&o>5e-4){let e=t*61;this.current.x+=Math.sin(e*1.31)*o,this.current.y+=Math.cos(e*1.97)*o*.6,this.look.x+=Math.sin(e*1.53)*o*.5,this.look.y+=Math.cos(e*2.11)*o*.35}return{position:this.current,lookAt:this.look}}},_V=2.45,vV=2.25,yV=1.35,bV=3.5,xV=1.25,SV=.45;function CV(e,t,n,r,i,a,o=31){let s=R.degToRad(o),c=Math.cos(s)*_V,l=Math.sin(s)*_V,u=-r,d=n,f=-n*c+u*l,p=-r*c+d*l,m=(e,t)=>Math.abs(t)<1e-9?1:R.clamp((Math.sign(t)*bV-e)/t,0,1),h=Math.min(m(e.x,f),m(e.z,p));i.set(R.clamp(e.x+f*h,-3.5,bV),vV,R.clamp(e.z+p*h,-3.5,bV)),a.set(t.x,yV,t.z)}var wV=class{angle=Math.PI;closeness=0;initialised=!1;target=new B;position=new B;look=new B;aim=new B;get forwardX(){return Math.sin(this.angle)}get forwardZ(){return Math.cos(this.angle)}reset(){this.initialised=!1}update(e,t,n,r,i,a,o=16/9){let s=r.x-n.x,c=r.z-n.z,l=Math.hypot(s,c),u=l>.05?Math.atan2(s,c):this.angle,d=R.clamp((1.3-l)/.8,0,1);if(!this.initialised)this.angle=u,this.closeness=d;else{let t=Math.atan2(Math.sin(u-this.angle),Math.cos(u-this.angle));this.angle+=t*(1-Math.exp(-4.5*e)),this.closeness+=(d-this.closeness)*(1-Math.exp(-3*e))}let f=R.clamp(o,SV,1);if(CV(n,r,this.forwardX,this.forwardZ,this.target,this.aim,R.lerp(31,60,this.closeness)*f),!this.initialised)this.position.copy(this.target),this.look.copy(this.aim),this.initialised=!0;else{let t=1-Math.exp(-10*e);this.position.lerp(this.target,t),this.look.lerp(this.aim,t)}let p={position:this.position,lookAt:this.look,tight:!0};if(a||i<=5e-4)return p;let m=t*61;return this.target.set(this.position.x+Math.sin(m*1.31)*i,this.position.y+Math.cos(m*1.97)*i*.6,this.position.z),this.aim.set(this.look.x+Math.sin(m*1.53)*i*.5,this.look.y+Math.cos(m*2.11)*i*.35,this.look.z),{position:this.target,lookAt:this.aim,tight:!0}}},TV=54,EV=136,DV=110,OV=168,kV=400,AV=74,jV=72,MV={right:220,wideTop:64,compactTop:120,height:34},NV=200,PV={reach:192,bottom:80},FV=`rgba(3,6,12,0.86)`,IV=`rgb(4,7,13)`,LV={play:`#f6d57a`,colour:`#9ec7ff`,announcer:`#f6d57a`},RV=[`#4f86d9`,`#d9483c`],zV=`Inter, system-ui, sans-serif`;function BV(e){let{width:t,height:n}=e,r=t<640,i=n<480,a=i?.78:r?.85:1,o=Math.min(680,t-24),s=e.resultTop,c=s===null&&e.touch&&e.phase!==`complete`,l=Vr(t,n,c);if(c&&e.paused===!0&&e.phase===`countdown`)return null;if(s===null&&e.phase===`countdown`){let e=l.x+l.width/2,r=t-(c&&t>n?zr(t,n,l.y+l.height):12);return{x:e,y:l.y,maxWidth:Math.min(o,2*Math.min(e-12,r-e)),anchor:`top`,scale:a,cover:{width:l.width,height:l.height}}}let u=t-384;if(s===null&&!e.touch&&!i&&u>=kV){let r=n-(e.hint?OV:DV),i=e.cornerPanelTop===void 0||e.cornerPanelTop===null?r:Math.min(r,e.cornerPanelTop-8);if(i-AV*a>=n*.45)return{x:t/2,y:i,maxWidth:Math.min(o,u),anchor:`bottom`,scale:a,cover:null}}if(s===null&&e.viewerDown)return null;let d=s===null&&r?EV:TV;s===null&&(e.phase===`rest`||e.phase===`foul_recovery`||c&&e.paused===!0?d=Math.max(d,l.y+l.height+8):e.phase===`knockdown`?d=Math.max(d,fi(n,r)+jV):e.phase===`finish`&&(d=Math.max(d,Si(t,n,c).bottom+8+(c?0:59))),e.replay&&t/2-o/2f)return null;let p=c&&e.lag===!0&&!r&&!e.replay&&dMath.round(8*e)+Math.round(10*e)+Math.round(4*e)+2*Math.round(Math.round(17*e)*1.3)+Math.round(5*e);function HV(e,t,n,r){let i=r?1:t.opacity;if(i<=.01)return;let a=r||n.cover!==null?0:t.entering*8*(n.anchor===`bottom`?1:-1);e.save(),e.globalAlpha=i,e.textBaseline=`alphabetic`;let o=i*i;t.line.card===null?GV(e,t.line,n,a,o):qV(e,t.line.card,n,a,o),e.restore()}function UV(e,t,n){if(e.measureText(t).width<=n)return t;let r=t;for(;r.length>1&&e.measureText(`${r}…`).width>n;)r=r.slice(0,-1);return`${r}…`}function WV(e,t){let n=e.length/2,r=null,i=1/0;for(let a=e.indexOf(` `);a>=0;a=e.indexOf(` `,a+1)){let o=e.slice(0,a),s=e.slice(a+1),c=Math.abs(a-n);t(o)&&t(s)&&c0?[e.slice(0,a),e.slice(a+1)]:[e,``]}function GV(e,t,n,r,i){let a=n.scale,o=Math.round(14*a),s=Math.round(10*a),c=n.maxWidth-o*2-4,l=(t,n)=>(e.font=`700 ${n}px ${zV}`,e.measureText(t).width),u=Xn(e=>l(t.text,e),c,Math.round(17*a),Math.round(13*a)),d=l(t.text,u)<=c?[t.text]:WV(t.text,e=>l(e,u)<=c).filter(e=>e.length>0),f=Math.max(...d.map(e=>Math.min(c,l(e,u)))),p=PR[t.speaker];e.font=`800 ${s}px ${zV}`;let m=e.measureText(p).width,h=Math.min(n.maxWidth,Math.max(f,m)+o*2+4),g=Math.round(u*1.3),_=Math.round(8*a)+s,v=_+Math.round(4*a)+d.length*g+Math.round(5*a),y=(n.anchor===`bottom`?n.y-v:n.y)+r,b=n.x-h/2,x=LV[t.speaker];e.fillStyle=FV,e.fillRect(b,y,h,v),e.fillStyle=x,e.fillRect(b,y,4,v),e.globalAlpha=i,e.textAlign=`left`,e.font=`800 ${s}px ${zV}`,e.fillText(p,b+4+o,y+_),e.fillStyle=`#f6f7fb`,e.font=`700 ${u}px ${zV}`,d.forEach((t,n)=>e.fillText(UV(e,t,c),b+4+o,y+_+Math.round(4*a)+g*(n+1)-Math.round(u*.28)))}function KV(e,t,n){let r=Math.round(11*e),i=Math.round(28*e),a=Math.round(6*e),o={pad:Math.round(10*e),gap:Math.round(7*e)},s={pad:Math.max(4,Math.round(6*e)),gap:Math.max(3,Math.round(4*e))},c=t?Math.round(10*e):0,l=[{...o,detail:c},{...s,detail:c},{...s,detail:0}],u=(e,t)=>e.pad*2+r+e.gap+t+(e.detail===0?0:a+e.detail);for(let e of l)if(n===null||u(e,i)<=n)return{kicker:r,title:i,...e,height:u(e,i)};let d=l[2],f=Math.max(12,Math.min(i,(n??1/0)-u(d,0)));return{kicker:r,title:f,...d,height:u(d,f)}}function qV(e,t,n,r,i){let a=n.scale,o=Math.round(18*a),s=n.maxWidth-o*2,c=KV(a,t.detail.length>0,n.cover?.height??null),l=c.kicker,u=c.detail,d=(t,n,r)=>(e.font=`${n} ${r}px ${zV}`,e.measureText(t).width),f=Xn(e=>d(t.title,900,e),s,c.title,Math.min(c.title,Math.round(15*a))),p=Math.max(d(t.kicker,800,l),Math.min(s,d(t.title,900,f)),u===0?0:d(t.detail,700,u)),m=Math.min(n.maxWidth,Math.max(240*a,p+o*2,n.cover?.width??0)),h=c.pad+l+c.gap+f+(u===0?0:Math.round(6*a)+u)+c.pad,g=Math.max(h,n.cover?.height??0),_=(n.anchor===`bottom`?n.y-g:n.y)+r,v=n.x-m/2,y=t.corner===null?LV.announcer:RV[t.corner];e.fillStyle=n.cover===null?FV:IV,e.fillRect(v,_,m,g),e.fillStyle=y,e.fillRect(v,_,m,3),e.globalAlpha=i,e.textAlign=`center`;let b=_+(g-h)/2+c.pad+l;e.font=`800 ${l}px ${zV}`,e.fillText(UV(e,t.kicker,s),n.x,b),b+=c.gap+f,e.fillStyle=`#ffffff`,e.font=`900 ${f}px ${zV}`,e.fillText(UV(e,t.title,s),n.x,b-Math.round(f*.12)),u>0&&(b+=Math.round(6*a)+u,e.fillStyle=`#93a3bd`,e.font=`700 ${u}px ${zV}`,e.fillText(UV(e,t.detail,s),n.x,b))}var JV={broken_nose:[`nose`,.3],broken_jaw:[`mouth`,.25],jaw_torn:[`mouth`,.75],eye_left_out:[`eye_left`,.3],eye_right_out:[`eye_right`,.3],ear_left_torn:[`ear_left`,.3],ear_right_torn:[`ear_right`,.3],skull_fractured:[`skull`,.4],arm_left_broken:[`elbow_left`,.3],arm_right_broken:[`elbow_right`,.3],forearm_left_severed:[`elbow_left`,1],forearm_right_severed:[`elbow_right`,1],arm_left_torn:[`shoulder_left`,1],arm_right_torn:[`shoulder_right`,1],ribs_left_broken:[`ribs_left`,.15],ribs_right_broken:[`ribs_right`,.15],disemboweled:[`belly`,.6],knee_left_blown:[`knee_left`,.2],knee_right_blown:[`knee_right`,.2]},YV=new Map($e.map(e=>[e,[]]));for(let[e,[t,n]]of Object.entries(JV))YV.get(t).push([e,n]);var XV=new Set([`nose`,`mouth`,`eye_left`,`eye_right`,`ear_left`,`ear_right`,`skull`]),ZV=new Set([`waist`,`crotch`,`knee_left`,`knee_right`]),QV=1.5,$V=8,eH=.9,tH=18,nH=36,rH=.45,iH=.25,aH=.3,oH=.08,sH=.012,cH=[`ankleL`,`ankleR`],lH=[`toeL`,`toeR`],uH=.35,dH=.05,fH=.5,pH=.3,mH=.4,hH=2.2,gH=.12,_H=4e-4,vH=.4,yH=.6,bH=4,xH=1.1,SH=1/500,CH=.18,wH=.55,TH=.45,EH=.5,DH=.08,OH=[`gloveL`,`gloveR`],kH={bottom:80,top:108,half:17},AH=70,jH=2,MH=7,NH=.5,PH=.28,FH=[`left`,`right`],IH={left:`eye_left_out`,right:`eye_right_out`},LH={left:`eye_left`,right:`eye_right`},RH={left:[`forearm_left_severed`,`arm_left_torn`],right:[`forearm_right_severed`,`arm_right_torn`]},zH=[`head`,`arm_left`,`arm_right`,`leg_left`,`leg_right`,`torso`],BH={head:[`neck`,`neck`],jaw:[`mouth`,`head`],forearm_left:[`elbow_left`,`elbowL`],forearm_right:[`elbow_right`,`elbowR`],arm_left:[`shoulder_left`,`shoulderL`],arm_right:[`shoulder_right`,`shoulderR`],leg_left:[`knee_left`,`kneeL`],leg_right:[`knee_right`,`kneeR`],upper_body:[`waist`,`hips`],torso:[`chest`,`upperChest`]},VH=Object.keys(BH),HH={head:[`head`],jaw:[`head`],forearm_left:[`body`,`glove_left`],forearm_right:[`body`,`glove_right`],arm_left:[`body`,`glove_left`],arm_right:[`body`,`glove_right`],leg_left:[`body`,`shoes`],leg_right:[`body`,`shoes`],upper_body:[`head`,`body`,`glove_left`,`glove_right`],torso:[`body`,`pants`]},UH=new B(0,1,0),WH=new B(0,.12,.02),GH=class{effects;bake;bodies=[null,null];position=new B;axis=new B;scratch=new B;turn=new ms;matrix=new Rs;skullOffset=new B;injuries=new Set;time=0;settings={blood:`full`,reducedMotion:!1};xray=new aA;constructor(e,t){this.effects=e,this.bake=t,e.scene.add(this.xray.root)}attach(e,t){this.bodies[e]?.mutilation.dispose(),this.xray.prepare(t.boxer);let n={graph:t,mutilation:new _k(t.boxer),shown:new Set,early:new Map,awaited:new Map,inflicted:new Set,fatalWounds:new Map,forced:new Set,fatalParts:[],burst:new Set,fatality:null,dead:null,gutsDropAt:null,gibbed:!1,vomitUntil:0,printed:[new B,new B],dragged:new B,sliding:!1,broke:null,spatter:0,lost:0,dripIn:0,dripped:0,diedAt:0,voided:!1};return this.bodies[e]=n,n.mutilation}get graphic(){return this.settings.blood===`full`&&!this.settings.reducedMotion}expect(e,t){let n=this.bodies[e];n!=null&&!n.inflicted.has(t)&&n.awaited.set(t,this.time+$V)}sync(e,t,n,r,i,a=!1){this.time=i,this.settings=n;let o=this.bodies[e];if(o==null)return;let s=this.graphic;!s&&(o.gibbed||o.fatalParts.length>0||o.fatalWounds.size>0||o.forced.size>0)&&this.unmaim(o,e);let c=this.injuries;c.clear();let l=!1;for(let e of t.injuries){let t=o.awaited.get(e);if(t!==void 0){if(i<=t){l=!0;continue}o.awaited.delete(e)}c.add(e),o.early.delete(e),o.inflicted.add(e)}for(let[e,t]of o.early)i>t?o.early.delete(e):c.add(e);for(let e of o.forced)c.add(e);if(l)for(let e of o.shown)c.add(e);o.shown.clear();for(let e of c)o.shown.add(e);for(let e of o.inflicted)o.shown.has(e)||o.inflicted.delete(e);let u=o.graph.boxer,d=R.clamp(1-t.blood_volume/nt,0,1);if(o.mutilation.apply(o.shown,s?`full`:n.blood===`off`?`off`:`reduced`),o.mutilation.setPallor(n.blood===`off`?0:d),o.graph.setInjuries(o.shown,s),o.graph.setFaint(o.dead===null?R.clamp((.6-t.blood_volume/nt)/.6,0,1):0),o.dead!==null&&!o.graph.isDead&&o.graph.die(o.dead),o.mutilation.update(r,i),this.xray.owner===e&&(s&&!o.gibbed?this.xray.update(r):this.xray.stop()),u.root.visible=!o.gibbed,o.gibbed)return;this.wear(o,e,d,r);let f=o.mutilation.isPartGone(`upper_body`),p=f||u.isDecapitated,m=p||u.isHeadBurst,h=1-.65*d,g=0;for(let t of $e){let n=o.fatalWounds.get(t)??0,r=`blood`,c=YV.get(t);for(let e=0;e0&&o.mutilation.anchor(t,this.position,this.axis)&&this.effects.anchorWound(e,t,this.position,this.axis)}for(let t=0;t=o.gutsDropAt&&(o.gutsDropAt=null,this.effects.dropGuts(e)),this.effects.anchorGuts(e,this.position,this.axis)):this.effects.gutsOut(e)&&this.effects.clearGuts(e),i=iH&&this.track(o,Math.min(1,g)),o.dead===null||!o.mutilation.anchor(`waist`,this.position,this.axis))return;this.effects.setCorpse(e,s?this.position:null);let v=s&&this.position.yfH?o.dragged.copy(this.position):y>dH&&(this.effects.smear(o.dragged.x,o.dragged.z,this.position.x,this.position.z,pH),o.dragged.copy(this.position)),o.sliding=v}gibbed(e){return this.bodies[e]?.gibbed===!0}hasGlove(e,t){let n=this.bodies[e]?.shown;return n===void 0||!this.graphic||!(n.has(RH[t][0])||n.has(RH[t][1]))}wear(e,t,n,r){let i=e.graph.boxer,a=this.graphic,o=this.bodies[1-t]??null;e.lost=n;let s=o===null?0:o.lost*hH+o.shown.size*gH,c=a?Math.min(1,Math.max(e.spatter,s)):0;i.headInjury.setSpatter(c*.8),i.bodyInjury.setSpatter(c),i.setGloveBlood(Math.max(i.gloveBloodLevel,c)),i.setTrunksBlood(Math.max(i.trunksBloodLevel,c*.7));let l=this.settings.blood===`off`?1:yH+Math.min(xH,n*bH);if(i.headInjury.setRun(l),i.bodyInjury.setRun(l),this.settings.blood===`off`&&(i.headInjury.clearMarks(),i.bodyInjury.clearMarks()),!a||e.dead!==null||i.gloveBloodLevel0))return;e.dripIn=EH/i.gloveBloodLevel,e.dripped+=1;let u=e.dripped%2;this.hasGlove(t,FH[u])&&(i.rig.bones[OH[u]].getWorldPosition(this.position),this.position.y-=DH,this.effects.shed(this.position,t*4099+e.dripped))}land(e,t,n,r,i,a,o,s=0,c=1){let l=this.bodies[t]??null,u=this.bodies[e]??null;if(l!==null&&n!==null&&this.hasGlove(t,n)?l.graph.boxer.rig.bones[OH[n===`left`?0:1]].getWorldPosition(this.scratch):this.scratch.copy(o),this.bruise(e,this.scratch,r,i),this.graphic&&(a>0&&l!==null&&(l.spatter=Math.min(1,l.spatter+a*_H)),a>0&&u!==null&&(u.spatter=Math.min(1,u.spatter+a*_H*vH)),!(u===null||u.gibbed))){for(let t=0;t<$e.length;t+=1){let n=$e[t],i=this.effects.woundStrength(e,n);i<=0||(r===`head`?!XV.has(n):XV.has(n)||ZV.has(n))||u.mutilation.anchor(n,this.position,this.axis)&&this.effects.sprayFluid(`blood`,this.position,c,Math.round(AH*i),s+t+1,.8)}r===`head`&&u.shown.has(`broken_jaw`)&&u.mutilation.anchor(`mouth`,this.position,this.axis)&&this.effects.spawnTeeth(this.position,c,jH,s)}}bruise(e,t,n,r){let i=this.bodies[e];if(i==null||i.gibbed||this.settings.blood===`off`)return;let a=i.graph.boxer,o=n===`head`?a.headMesh:bO(a,`body`);if(o===null||!i.mutilation.skinMatrix(n,n===`head`?`head`:`chest`,this.matrix))return;let s=this.position.copy(t).applyMatrix4(this.matrix.invert()),c=o.geometry.getAttribute(`position`),l=1/0,u=-1;for(let e=0;ekH.top||Math.abs(t)>kH.half))continue;let i=(t-s.x)**2+(r-s.y)**2+(c.getZ(e)-s.z)**2;ia.mutilation.anchor(e,c,l);switch(t){case`broken_nose`:d(`nose`)&&s.sprayFluid(`blood`,c,r,140,n,1.1);break;case`broken_jaw`:d(`mouth`)&&(s.spawnTeeth(c,r,5,n),s.sprayFluid(`blood`,c,r,180,n));break;case`jaw_torn`:d(`mouth`)&&(this.fling(a,e,`jaw`,n,r,{radius:.05,speed:1.2,lift:.8}),s.spawnDebris(`jawbone`,c,r,1,n,1.2),s.spawnTeeth(c,r,9,n),s.sprayFluid(`blood`,c,r,420,n,1.2));break;case`eye_left_out`:case`eye_right_out`:d(`eye_${u}`)&&(s.gougeEye(e,c,l,r,n,u),s.sprayFluid(`blood`,c,r,120,n));break;case`ear_left_torn`:case`ear_right_torn`:d(`ear_${u}`)&&(s.spawnDebris(`ear`,c,r,1,n),s.sprayFluid(`blood`,c,r,130,n));break;case`face_left_flayed`:case`face_right_flayed`:d(`eye_${u}`)&&(s.spawnDebris(`skin`,c,r,3,n),s.sprayFluid(`blood`,c,r,260,n));break;case`skull_fractured`:d(`skull`)&&(s.spawnDebris(`shard`,c,r,7,n,1.2),s.spawnDebris(`brain`,c,r,8,n),s.sprayFluid(`blood`,c,r,300,n,1.3),s.sprayFluid(`brain`,c,r,90,n));break;case`shoulder_left_dislocated`:case`shoulder_right_dislocated`:break;case`arm_left_broken`:case`arm_right_broken`:d(`elbow_${u}`)&&(s.spawnDebris(`bone`,c,r,3,n),s.sprayFluid(`blood`,c,r,200,n));break;case`forearm_left_severed`:case`forearm_right_severed`:this.fling(a,e,`forearm_${u}`,n,r,{radius:.07,speed:1.1}),d(`elbow_${u}`)&&(s.spawnDebris(`bone`,c,r,2,n),s.spawnDebris(`flesh`,c,r,8,n),s.sprayFluid(`blood`,c,r,600,n,1.3));break;case`arm_left_torn`:case`arm_right_torn`:this.fling(a,e,`arm_${u}`,n,r,{radius:.08,speed:1,spin:.7}),d(`shoulder_${u}`)&&(s.spawnDebris(`flesh`,c,r,14,n),s.spawnDebris(`bone`,c,r,2,n),s.sprayFluid(`blood`,c,r,800,n,1.4));break;case`ribs_left_broken`:case`ribs_right_broken`:d(`ribs_${u}`)&&(s.spawnDebris(`bone`,c,r,2,n,.8),s.sprayFluid(`blood`,c,r,140,n));break;case`liver_ruptured`:this.vomit(e,n,1.6);break;case`disemboweled`:d(`belly`)&&(s.spillGuts(e,c,n,tH),s.spawnDebris(`organ`,c,r,3,n),s.spawnDebris(`gut`,c,r,4,n),s.spawnDebris(`fat`,c,r,4,n),s.sprayFluid(`blood`,c,r,650,n,1.2),s.sprayFluid(`bile`,c,r,110,n));break;case`knee_left_blown`:case`knee_right_blown`:d(`knee_${u}`)&&(s.spawnDebris(`bone`,c,r,2,n,.7),s.sprayFluid(`blood`,c,r,110,n))}return!0}rebreak(e,t){let n=this.bodies[e],r=n?.broke??null;return n==null||r===null||r.tick!==t||!this.graphic||n.gibbed?!1:(this.xray.start(e,n.graph.boxer,n.mutilation,r.site,r.x,r.z),!0)}drawBreak(e,t,n,r){if(this.xray.owner<0)return;let i=this.effects.mistPoints,a=i.visible,o=r.visible;i.visible=!1,r.visible=!1,this.xray.drawInset(e,t,n),i.visible=a,r.visible=o}holdXray(e,t){let n=this.bodies[e];n!=null&&this.xray.start(e,n.graph.boxer,n.mutilation,t,1,0,!0)}vomit(e,t,n=1.3){let r=this.bodies[e];r==null||r.gibbed||this.settings.reducedMotion||(r.graph.retch(n),this.settings.blood===`full`&&r.mutilation.anchor(`mouth`,this.position,this.axis)&&(r.vomitUntil=this.time+n,this.effects.gush(e,this.position,this.axis.addScaledVector(UH,-.4).normalize(),n,520,t,`bile`),this.effects.sprayFluid(`blood`,this.position,0,90,t,.6),this.effects.puddle(this.position.x+this.axis.x*mH,this.position.z+this.axis.z*mH,.22,`bile`,t)))}fatality(e,t,n,r){let i=this.bodies[e];if(i==null||i.fatality!==null||!this.graphic)return!1;i.fatality=t;let a=this.effects,o=this.position,s=this.axis,c=(t,i,s=1)=>a.spawnDebris(t,o,r,i,n,s,e),l=(e,t,i=1)=>a.sprayFluid(e,o,r,t,n,i);if(t===`eyes_out`){for(let t=0;ta||Math.hypot(this.position.x-s.x,this.position.z-s.z)t!==n&&e.mutilation.isPartGone(t)),d=[],f=new B;for(let e of HH[n]){let t=bO(c,e);if(t===null||!t.visible)continue;let r=t=>_O(n,e,t)&&!u.some(n=>_O(n,e,t)),i=t.geometry.getAttribute(`position`),a=t.geometry.getIndex(),o=0,s=0,p=new Uint8Array(i.count);if(a===null)p.fill(1);else for(let e=0;e0&&d.push(this.bake(c,e,t,l,this.turn,o===s?void 0:r))}return d.length>0&&this.effects.flingPart(KH(t,n),d,l,this.turn,i,r,{...a,part:n})}};function KH(e,t){return`${e}:${t}`}var qH=96,JH=4,YH=2.5,XH=.45,ZH=.032,QH=e=>()=>(e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296);function $H(e){let t=document.createElement(`canvas`);t.width=qH,t.height=qH;let n=t.getContext(`2d`);if(n===null)return t;let r=QH(e),i=qH/2,a=4+Math.floor(r()*3);for(let e=0;e.05)||!Number.isFinite(e)||!Number.isFinite(t))return;let i=QH((Number.isSafeInteger(r)?r:0)*40503+11),a=Math.min(24,Math.max(1,Math.round(n*12))),o=.7+.3*Math.min(3,n);for(let r=0;r=1.5?1.8:1),l=YH+i()*2.5;this.drops.push({x:Math.min(1,Math.max(0,a?i():e+(i()+i()-1)*s*1.6)),y:Math.min(1,Math.max(0,a?i():t+(i()+i()-1)*s)),radius:c,alpha:.6+i()*.35,life:l,maxLife:l,run:c>=ZH?.02+i()*.04:0,ran:0,sprite:Math.floor(i()*JH),turn:i()*Math.PI*2})}this.drops.length>96&&this.drops.splice(0,this.drops.length-96)}update(e){let t=Number.isFinite(e)?Math.max(0,e):0;for(let e=this.drops.length-1;e>=0;--e){let n=this.drops[e];n.life-=t,n.life<=0?this.drops.splice(e,1):n.ran+=n.run*t*(n.life/n.maxLife)}}draw(e,t,n){if(this.drops.length!==0){this.sprites??=Array.from({length:JH},(e,t)=>$H(1374496523+t*7919)),e.save();for(let r of this.drops){let i=Math.min(1,r.life/(r.maxLife*XH)),a=r.radius*n,o=r.x*t,s=(r.y+r.ran)*n;if(e.globalAlpha=r.alpha*i,r.ran>0){let t=r.y*n,i=e.createLinearGradient(0,t,0,s);i.addColorStop(0,`rgba(88,0,6,0)`),i.addColorStop(1,`rgba(88,0,6,0.6)`),e.fillStyle=i,e.beginPath(),e.moveTo(o-a*.06,t),e.lineTo(o+a*.06,t),e.lineTo(o+a*.28,s),e.lineTo(o-a*.28,s),e.closePath(),e.fill()}e.save(),e.translate(o,s),e.rotate(r.turn),e.drawImage(this.sprites[r.sprite],-a,-a,a*2,a*2),e.restore()}e.restore()}}clear(){this.drops.length=0}},tU=.026,nU=.038,rU=22,iU=[[.55,.85],[.55,.1],[.4,-.12],[-.4,-.12],[-.55,.05],[-.55,.6],[-.32,.62],[-.3,.16],[.3,.16],[.32,.85]],aU=.03;function oU(){let e=[],t=[],n=iU.length,r=new B,i=new B,a=new B;for(let t=0;t<=rU;t+=1){let n=t/rU*2-1;r.set(n*tU,0,nU*(1-n*n)-nU*.5),i.set(tU,0,-2*nU*n).normalize(),a.set(i.z,0,-i.x),a.dot(r.clone().setY(0).add(new B(0,0,nU*.5)))<0&&a.negate();for(let[t,n]of iU)e.push(r.x+a.x*t*.01,n*.01,r.z+a.z*t*.01)}for(let e=0;e=50:e===`hit`&&t>=65:!1}var cU=9.81,lU=.32,uU=4.5,dU=.04,fU=3;function pU(){return{out:!1,moving:!1,sliding:!1,x:0,y:-50,z:0,vx:0,vy:0,vz:0,wx:0,wy:0,wz:0,bounces:0,age:0,restYaw:0}}function mU(e,t,n,r){if(!e.out||!e.moving)return!1;e.age+=n;let i=r+.006;if(!e.sliding)e.vy-=cU*n,e.x+=e.vx*n,e.y+=e.vy*n,e.z+=e.vz*n,yU(t,e.wx*n,e.wy*n,e.wz*n),e.y<=i&&(e.y=i,e.bounces.6?(e.bounces+=1,e.vy=-e.vy*lU,e.vx*=.72,e.vz*=.72,e.wx*=.55,e.wy*=.7,e.wz*=.55):(e.vy=0,e.sliding=!0));else{let r=Math.hypot(e.vx,e.vz),a=Math.max(0,r-uU*n);a<=dU?(e.vx=0,e.vz=0):(e.vx*=a/r,e.vz*=a/r),e.x+=e.vx*n,e.z+=e.vz*n,e.y=i,e.wy*=Math.exp(-4*n),e.restYaw+=e.wy*n,gU.setFromAxisAngle(hU,e.restYaw),t.slerp(gU,1-Math.exp(-12*n)),e.vx===0&&e.vz===0&&t.angleTo(gU)<.02&&(t.copy(gU),e.moving=!1)}return e.moving}var hU=new B(0,1,0),gU=new ms,_U=new ms,vU=new Js;function yU(e,t,n,r){_U.setFromEuler(vU.set(t,n,r)),e.multiply(_U).normalize()}var bU=[.84,.78,.62],xU=[.4,.04,.04],SU=[.3,.012,.018],CU=[.5,.045,.05],wU=[.86,.64,.16],TU=[.42,.19,.09],EU=[.92,.88,.74],DU=[.72,.36,.34],OU=[.82,.52,.46],kU=(e,t,n)=>{let r=Math.min(1,Math.max(0,n));return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r,e[2]+(t[2]-e[2])*r]},AU=e=>{let t=Math.min(1,Math.max(0,e));return t*t*(3-2*t)},jU=(e,t,n=0)=>.5+.25*Math.sin(e.x*t*1.31+n)*Math.sin(e.y*t*1.93+n*1.7)+.25*Math.sin(e.z*t*1.57+n*.6)*Math.sin(e.x*t*.83-n),MU=e=>()=>(e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296),NU=new B;function PU(e,t){e.deleteAttribute(`normal`),e.deleteAttribute(`uv`);let n=Kg(e,1e-5);e.dispose();let r=n.getAttribute(`position`);for(let e=0;enew Rs().compose(new B(e,t,n),new ms().setFromEuler(new Js(r,i,a)),new B(o,s,c));function RU(e,t,n){return FU(new jd(new ad(e.map(e=>new B(...e))),Math.max(4,e.length*3),t,7,!1),n)}var zU=new Map;function BU(e){let t=zU.get(e);return t===void 0&&(t=e(),zU.set(e,t)),t.clone()}function VU(){return IU([FU(PU(new Cd(1,3),e=>{e.normalize();let t=.45+.55*AU((e.x+1)/2),n=1-.34*Math.exp(-(((e.x+.2)/.14)**2))*AU(e.z+.6),r=1+.07*Math.sin(e.x*5.1+.7)*Math.sin(e.z*4.3+1.9);e.set(e.x*.1*r,(e.y>0?e.y:e.y*.4)*.04*t*r,e.z*.062*n*(.7+.3*t))}),e=>kU(kU([.2,.035,.022],[.34,.07,.04],jU(e,70)),SU,e.y<-.006?.5:0)),FU(PU(new Cd(1,2),e=>e.set(e.x*.03,e.y*.012,e.z*.014)),[.16,.24,.04],LU(.03,-.012,.03,0,.5,0)),RU([[.01,.004,-.03],[0,.012,-.055],[-.012,.014,-.075]],.007,e=>kU([.16,.05,.2],SU,AU((-e.z-.06)*60)))])}function HU(){return IU([FU(PU(new Cd(1,3),e=>{e.normalize();let t=1-.42*Math.exp(-((e.x/.4)**2))*AU(e.z);e.set(e.x*.058,e.y*.024,e.z*.033*t-e.x*e.x*.012)}),e=>kU([.3,.05,.075],[.19,.025,.05],jU(e,120,1.3))),RU([[0,0,.014],[.004,.002,.034],[.018,0,.058],[.02,-.002,.082]],.0048,e=>kU([.86,.72,.56],SU,AU((e.z-.066)*70))),RU([[-.006,.002,.014],[-.012,.004,.034],[-.03,.002,.046]],.0042,SU),FU(PU(new Cd(1,1),e=>e.set(e.x*.014,e.y*.009,e.z*.01)),wU,LU(0,.002,.02))])}function UU(){return IU([FU(PU(new Cd(1,3),e=>{e.normalize();let t=.55+.45*AU((1-e.z)/2+.1),n=1-.3*Math.exp(-(((e.z-.1-e.x*.3)/.1)**2)),r=1+.035*Math.sin(e.x*23)*Math.sin(e.y*19)*Math.sin(e.z*21);e.set(e.x*.062*t*n*r,(e.y>0?e.y:e.y*.55)*.036*t*n*r,e.z*.09*r)}),e=>kU(kU([.66,.34,.34],[.34,.16,.2],AU(jU(e,160,.4)*1.7-.5)),SU,AU((e.z-.05)*22)*.7)),FU(new qu(.011,.012,.045,9,5,!0),e=>Math.abs((e.y+.5)*110%2)<1?[.84,.74,.62]:[.6,.26,.24],LU(0,.006,.105,Math.PI/2-.2,0,0))])}function WU(){let e=new ad([[-.085,0,.012],[-.045,.004,-.02],[0,0,.018],[.04,.003,-.016],[.082,0,.014]].map(e=>new B(...e))),t=[],n=[],r=[],i=e.computeFrenetFrames(30,!1);for(let r=0;r<=30;r+=1){let a=r/30,o=e.getPointAt(a),s=Math.min(1,Math.sin(a*Math.PI)*5),c=.0175*(.82+.18*Math.abs(Math.sin(a*Math.PI*5.5)))*(.25+.75*s);for(let e=0;e<9;e+=1){let l=e/9*Math.PI*2,u=NU.copy(i.normals[r]).multiplyScalar(Math.cos(l)).addScaledVector(i.binormals[r],Math.sin(l));t.push(o.x+u.x*c,o.y+u.y*c,o.z+u.z*c);let d=1-.3*(1-Math.abs(Math.sin(a*Math.PI*5.5))),f=e===0?SU:kU(kU(DU,OU,.5+.5*Math.sin(a*23+e)),SU,s<1?.8:0);n.push(f[0]*d,f[1]*d,f[2]*d)}}for(let e=0;e<30;e+=1)for(let t=0;t<9;t+=1){let n=e*9+t,i=e*9+(t+1)%9;r.push(n,i,n+9,i,i+9,n+9)}let a=new hl;a.setAttribute(`position`,new rl(t,3)),a.setAttribute(`color`,new rl(n,3)),a.setIndex(r),a.computeVertexNormals();let o=a.toNonIndexed();return a.dispose(),IU([o,...[[-.03,-.004,-.03],[.012,-.004,.03],[.05,-.004,-.028]].map(([e,t,n])=>FU(PU(new Cd(1,1),e=>e.set(e.x*.016,e.y*.007,e.z*.011)),wU,LU(e,t,n,0,e*20,0)))])}function GU(){let e=[[.012,.008],[.004,.0105],[-.01,.0075],[-.013,-.004],[-.002,-.0095],[.01,-.0065]],t=[-1,-.72,-.3,.2,.62,1],n=[.02,.62,1,.9,.5,.02],r=[.004,-.002,0,.001,-.003,.005],i=[],a=[],o=(i,a)=>{let[o,s]=e[a%e.length];return[t[i]*.062,s*n[i],o*n[i]+r[i]]},s=(n,r)=>{let i=Math.abs(t[n]);return kU(r%e.length===3||r%e.length===4?kU(bU,xU,.75):bU,SU,AU((i-.6)*3.2))};for(let n=0;nkU(TU,CU,AU((-e.x-.006)*90));return IU([FU(PU(new Cd(1,3),e=>{e.normalize();let t=e.y>0?1-.75*Math.exp(-(((e.x-.1)/.5)**2+((e.z+.1)/.55)**2)):1;e.set(e.x*.019,e.y*.0055*t,e.z*.031*(1-.18*e.x))}),t=>kU(e(t),[.24,.08,.05],t.y<.003&&t.y>-.001?.5:0)),FU(new Ad(.024,.0048,7,18,Math.PI*1.25),TU,LU(-.001,.004,.004,-Math.PI/2,0,-Math.PI*.72,.78,1.18,1)),FU(PU(new Cd(1,2),e=>e.set(e.x*.0095,e.y*.0055,e.z*.0105)),e,LU(.002,.002,.031)),FU(PU(new Cd(1,1),e=>e.set(e.x*.005,e.y*.005,e.z*.007)),e,LU(-.011,.004,.006)),FU(PU(new Cd(1,1),e=>e.set(e.x*.006,e.y*.005,e.z*.022)),CU,LU(-.017,0,.002))])}var qU=12;function JU(){let e=e=>[Math.sin(e)*.046,Math.cos(e)*.056-.02],t=[],n=e=>kU(kU(bU,[.7,.6,.44],jU(e,200)),SU,AU((e.y-.003)*220)*.75),r=Math.PI*.62,i=[];for(let t=0;t<=22;t+=1){let[n,a]=e(-r+t/22*r*2);i.push(new B(n,0,a))}let a=new jd(new ad(i),44,.0085,8,!1);t.push(FU(PU(a,e=>e.setY(e.y*1.35)),n)),t.push(FU(PU(new Cd(1,2),e=>e.set(e.x*.016,e.y*.013,e.z*.011)),n,LU(0,-.003,.038)));for(let n=0;nkU(EU,[.7,.2,.14],AU((-e.y-5e-4)*400)),LU(a,.0125+(s?.0045:.003),o,0,-i,0))),t.push(FU(PU(new Cd(1,1),e=>e.set(e.x*.0058,e.y*.0045,e.z*.0058)),c?[.05,.004,.006]:[.5,.07,.08],LU(a,.0105,o)))}for(let n of[-1,1]){let[i,a]=e(n*r),o=PU(new Wu(.008,.05,.026,1,4,2),e=>{let t=e.y/.05+.5;e.z+=-.012*t+(t>.9?Math.sign(e.z)*.004:0),e.x*=1-.3*t});t.push(FU(o,e=>kU(bU,SU,AU((e.y-.012)*60)),LU(i,.02,a-.006,0,n*.25,n*-.12))),t.push(FU(PU(new Cd(1,1),e=>e.set(e.x*.009,e.y*.006,e.z*.014)),CU,LU(i,.047,a-.016)))}let o=IU(t);return o.translate(0,-.016,0),o.computeBoundingBox(),o.computeBoundingSphere(),o}function YU(){let e=(e,t,n)=>{let r=t/13*Math.PI*2,i=.55+.45*Math.abs(Math.sin(t*2.7+.9))+.12*Math.sin(t*5.3),a=e/3*i,o=Math.cos(r)*a*.062,s=Math.sin(r)*a*.044;return[o,.009*Math.sin(o*60+.4)*Math.cos(s*48)+.3*(o*o+s*s)/.062+n*.0028*(1-e/3*.7),s]},t=[],n=[],r=(e,r,i,a)=>{for(let o of[e,r,i])t.push(...o),n.push(...a(o))},i=()=>TU,a=e=>Math.sin(e[0]*310+1)*Math.sin(e[2]*270)>.45?wU:kU(CU,SU,.5+.5*Math.sin(e[0]*140+e[2]*90));for(let t=0;t<3;t+=1)for(let n=0;n<13;n+=1){let o=(n+1)%13;r(e(t,n,1),e(t+1,o,1),e(t+1,n,1),i),r(e(t,n,0),e(t+1,n,0),e(t+1,o,0),a),t>0&&(r(e(t,n,1),e(t,o,1),e(t+1,o,1),i),r(e(t,n,0),e(t+1,o,0),e(t,o,0),a))}for(let t=0;t<13;t+=1){let n=(t+1)%13;r(e(3,t,1),e(3,n,1),e(3,t,0),()=>CU),r(e(3,n,1),e(3,n,0),e(3,t,0),()=>CU)}let o=new hl;return o.setAttribute(`position`,new rl(t,3)),o.setAttribute(`color`,new rl(n,3)),o.computeVertexNormals(),IU([o])}function XU(){let e=MU(795558343),t=[];for(let n=0;n<9;n+=1){let r=e()*Math.PI*2,i=n===0?0:.012+e()*.02,a=n===0?.021:.009+e()*.009,o=e();t.push(FU(PU(new Cd(1,2),e=>e.set(e.x*a,e.y*a*.7,e.z*a)),kU(wU,[.92,.8,.36],o),LU(Math.cos(r)*i,(e()-.3)*.008,Math.sin(r)*i*.8)))}return t.push(FU(PU(new Cd(1,1),e=>e.set(e.x*.02,e.y*.005,e.z*.009)),CU,LU(.018,-.006,.01,0,.6,0))),IU(t)}function ZU(){let e=e=>kU(kU(bU,[.68,.58,.42],jU(e,260)),SU,AU(jU(e,90,2.2)*2.4-1.3)),t=FU(PU(new qu(.02,.02,.022,14,2),e=>{let t=1-.14*(1-(e.y/.011)**2);e.x*=t,e.z*=t*(e.z<0?.8:1)}),e,LU(0,0,.008)),n=FU(new qu(.0175,.0175,.005,12),e=>kU([.78,.5,.46],CU,jU(e,400)),LU(0,.0125,.008)),r=FU(new Ad(.0115,.0042,6,12),e,LU(0,0,-.016,Math.PI/2,0,0)),i=FU(PU(new Wu(.007,.011,.03,1,1,3),e=>{let t=.5-e.z/.03;e.x*=1-.55*t,e.y=e.y*(1-.4*t)-.008*t}),e,LU(0,0,-.04)),a=[-1,1].map(t=>FU(PU(new Wu(.024,.008,.008,3,1,1),e=>{let n=.5+t*e.x/.024;e.y*=1-.5*n,e.z=e.z*(1-.4*n)-.006*n}),e,LU(t*.027,0,-.012))),o=FU(new qu(.0048,.0048,.03,7),e=>kU([.88,.8,.6],SU,AU((Math.abs(e.y)-.009)*200)),LU(0,0,-.016));return IU([t,n,r,i,...a,o])}function QU(){return IU([FU(PU(new Wu(.075,.004,.022,9,1,3),e=>{let t=e.x/.075+.5;e.x+=.0375,e.z=e.z*(1-.75*t)*(1+.5*Math.sin(t*17))+.006*Math.sin(t*9),e.y+=.004*Math.sin(t*13)}),e=>kU(kU(CU,SU,jU(e,240)),wU,Math.sin(e.x*260)>.93?.8:0))])}var $U={position:new B(.012,.089,.004),direction:new B(.47,.88,-.12).normalize()};function eW(){let e=FU(PU(new Cd(1,4),e=>{e.normalize();let t=AU((1-e.y)/2),n=1-.62*t**2.4,r=1-.1*Math.exp(-(((e.x+.12)/.14)**2))*(e.z>-.2?1:.4);e.set(e.x*.05*n*r+.012*t,e.y>0?e.y*.038:e.y*.07,e.z*.04*n*r)}),e=>{let t=Math.exp(-(((e.x+.008+e.y*.3)/.006)**2)),n=Math.exp(-(((e.y-.032)/.006)**2));return kU(kU(kU([.42,.03,.035],[.26,.015,.025],jU(e,130)),wU,Math.max(t*.85,n*.7)*AU(jU(e,420,.7)*2)),[.12,.02,.1],t>.6&&Math.sin(e.y*300)>.2?.7:0)}),t=(e,t,n)=>FU(PU(new Cd(1,2),e=>{let t=1+.12*Math.sin(e.x*9)*Math.sin(e.z*8);e.set(e.x*n*t,e.y*n*.72,e.z*n*.9*t)}),e=>kU([.3,.02,.05],[.18,.012,.045],jU(e,200)),LU(e,.04,t)),n=(e,t)=>n=>kU(e,SU,AU((n.y-t)*120)),r=RU([[-.006,.03,.006],[-.004,.058,.008],[.004,.08,.006],[.012,.095,.004]],.0125,n([.82,.56,.44],.082)),i=[-1,0,1].map(e=>RU([[-.003+e*.004,.066,.008],[-.012+e*.012,.086,.012-e*.004],[-.016+e*.018,.1,.014-e*.006]],.0048,n([.78,.5,.4],.09))),a=RU([[.016,.03,.022],[.012,.052,.026],[-.006,.066,.03],[-.026,.07,.03]],.0105,e=>kU([.3,.3,.52],SU,AU((-e.x-.014)*110))),o=RU([[.03,.036,-.016],[.034,.058,-.018],[.036,.08,-.02]],.0095,n([.16,.14,.34],.068)),s=IU([e,t(.027,-.006,.024),t(-.024,-.004,.022),r,...i,a,o]);return s.translate(0,-.006,0),s.computeBoundingBox(),s.computeBoundingSphere(),s}var tW=2;function nW(e){let t=Math.min(14,Math.max(0,e));return tW*t-1.55*t*t/28}function rW(e){return Math.max(0,1-Math.max(0,e)/14)**.8}function iW(e){let t=e-Math.floor(e);return t<.16?AU(t/.16):1-AU((t-.16)/.3)}var aW=9.81,oW=.97,sW=.6,cW=10,lW=1.02,uW=.5,dW=.5,fW=2e-4,pW=.45,mW=.03,hW=.15,gW=class{capacity;radius;selfAvoiding;positions;previous;nodes=0;segment=0;pinned=!1;resting=!0;paidOut=0;payRate=0;still=0;constructor(e,t,n){this.capacity=e,this.radius=t,this.selfAvoiding=n,this.positions=new Float32Array(e*3),this.previous=new Float32Array(e*3)}get held(){return this.pinned?Math.max(0,this.nodes-1-Math.floor(this.paidOut)):-1}spill(e,t,n,r,i){this.nodes=Math.min(this.capacity,Math.max(2,Math.round(e)+1)),this.segment=t,this.pinned=!0,this.resting=!1,this.paidOut=1,this.payRate=r,this.still=0;for(let e=0;e.4)for(let e=0;ethis.segment?this.segment:s=a-1?this.still+e:0,this.still>=dW&&(this.resting=!0,s.set(o)),!0}drape(e,t,n,r=!1){let i=Math.hypot(n.x,n.z);if(i<.3)return;let a=this.positions;for(let o=e;opW||s<-.05)continue;let c=mW+hW*Math.min(1,Math.max(0,s)/.25),l=((a[e]-t.x)*n.x+(a[e+2]-t.z)*n.z)/i;if(l>=c+(r?1e-4:0))continue;let u=Math.max(0,c-l);if(a[e]=a[e]+n.x/i*u,a[e+2]=a[e+2]+n.z/i*u,!r)continue;let d=((a[e]-this.previous[e])*n.x+(a[e+2]-this.previous[e+2])*n.z)/i;this.previous[e]=this.previous[e]+n.x/i*d,this.previous[e+2]=this.previous[e+2]+n.z/i*d}}keepApart(e){let t=this.positions,n=this.radius*1.7;for(let r=e;r=n*n)continue;let c=Math.sqrt(s),l=Math.hypot(i,o)1e-10&&xW.copy(wW).normalize(),SW.addScaledVector(xW,-SW.dot(xW)),SW.lengthSq()<1e-8&&(SW.set(+(Math.abs(xW.x)<.9),0,Math.abs(xW.x)<.9?0:1),SW.addScaledVector(xW,-SW.dot(xW))),SW.normalize(),CW.crossVectors(xW,SW);let a=Math.min(e,n-1-e),c=this.radii[e]*(a===0?.08:a===1?.62:a===2?.9:1);for(let t=0;t0?t.fromBufferAttribute(n,0):t.set(0,1,0).applyQuaternion(e.mesh.quaternion),t.lengthSq()>1e-8?t.normalize():t.set(0,1,0)}var BG=e=>()=>(e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296),$=(e,t=0)=>Number.isFinite(e)?e:t,VG=()=>({alive:!1,x:0,y:-50,z:0,vx:0,vy:0,vz:0,rx:0,ry:0,rz:0,vrx:0,vry:0,vrz:0,scale:0,stretch:1,bounces:0,stained:!1,kind:`flesh`,resting:!1,born:0,owner:-1,fading:-1}),HG=e=>{for(let t of e)if(!t.alive)return!0;return!1},UG=new V(16054267),WG=.012,GG=.055,KG=90,qG=10,JG=.985,YG=new z(.097,.132),XG=.012,ZG={r:.82,g:.86,b:.9},QG=4,$G=(e,t)=>Math.trunc(e)*2+(t===`left`?0:1),eK=new B(1,0,0),tK=[`blood`,`bile`,`brain`,`urine`],nK=2400,rK={liver:{build:VU,share:.06,size:[.8,.5],stretch:[.9,.3],stain:.5},kidney:{build:HU,share:.06,size:[.9,.5],stretch:[.9,.25],stain:.3},lung:{build:UU,share:.06,size:[.75,.45],stretch:[.9,.3],stain:.45},gut:{build:WU,share:.18,size:[.8,.5],stretch:[.8,.5],stain:.4},bone:{build:GU,share:.24,size:[.7,.8],stretch:[.8,.6],stain:.14},vertebra:{build:ZU,share:.1,size:[.9,.3],stretch:[1,0],stain:.2},skin:{build:YU,share:.1,size:[.8,.8],stretch:[.7,.7],stain:.3},fat:{build:XU,share:.12,size:[.6,.7],stretch:[.8,.5],stain:.2},ear:{build:KU,share:.03,size:[1.3,.3],stretch:[1,0],stain:.14},jawbone:{build:JU,share:.016,size:[1.1,.15],stretch:[1,0],stain:.34}},iK=Object.keys(rK),aK=[`liver`,`kidney`,`lung`],oK=Object.fromEntries($e.map((e,t)=>[e,t])),sK=14,cK=3.5,lK=1100,uK=.12,dK=.45,fK=xG*Math.sqrt(Math.PI),pK=e=>R.clamp((e-.3)/.6,0,1),mK=e=>sK+326*e**2.2,hK=e=>mK(e)*(1-pK(e)*.88*(1-fK)),gK=16,_K=8,vK=.4,yK=24,bK=11,xK=.046,SK=[0,0,1,3,6],CK=50,wK=48,TK=.6,EK=1,DK=.06,OK=.075,kK=4,AK=24,jK=1.3,MK=new ms().setFromEuler(new Js(.95,0,0)),NK=60,PK=4,FK=5,IK=1.2,LK=1.5,RK=.5;function zK(e){if(typeof e==`number`)return{x:e<0?-1:1,z:0};let t=Math.hypot(e.x,e.z);return Number.isFinite(t)&&t>1e-6?{x:e.x/t,z:e.z/t}:{x:1,z:0}}var BK=new B(0,1,0),VK=new B(0,0,1),HK=e=>Number.isFinite(e)?R.clamp(e,0,dG):0,UK=new Set([`hit`,`counter_hit`,`block`,`perfect_block`,`guard_break`,`knockdown`,`bleed`]);function WK(e,t,n,r){let i=Math.abs(e)-r;if(i<=0)return{position:e,velocity:t};let a=Math.sign(e);return Math.abs(n)<=r?{position:a*r,velocity:t*-.42}:{position:e,velocity:-a*Math.max(-a*t,i*qW)}}function GK(e){if(e.kind===`bleed`)return`ooze`;if(e.kind===`knockdown`)return`impact`;let t=e.detail.split(`:`);if(t.at(-1)===`body`)return`body_burst`;let n=t.find(e=>[`jab`,`straight`,`hook`,`uppercut`].includes(e));return n===`hook`?`fan`:n===`uppercut`?`plume`:`jet`}function KK(e,t){e.set($(t.x),$(t.y),$(t.z),$(t.w,1)),e.lengthSq()<1e-6?e.identity():e.normalize()}function qK(){return new Ud({color:9063730,roughness:.58,metalness:.02,clearcoat:.25,clearcoatRoughness:.6})}function JK(e,t){let n=qK();n.map=t;let r=e?new X_(n,Yg,{core:A_,wash:!0,baked:!0}):new X_(n,Jg,{core:k_,lids:j_,baked:!0});if(!e)return{material:n,injury:r,look:new Lb(n,!0)};let i=n.onBeforeCompile;return n.onBeforeCompile=(e,t)=>{i.call(n,e,t),e.vertexShader=e.vertexShader.replace(`#include `,`#include -attribute vec3 bindPosition;`)},{material:n,injury:r,look:null}}var YK=0,XK=1,ZK=2,QK=3;function $K(e,t,n){return e===void 0||e===`forearm_left`||e===`forearm_right`?YK:e===`head`?ZK:e===`upper_body`?t?QK:XK:e===`torso`&&n?ZK:XK}function eq(e,t,n,r=0){let i=new Hd({map:e,color:t,roughness:n===void 0?.6:.38,metalness:.02,side:2});return n!==void 0&&(_b(i,!0,n).value=r),i}function tq(e,t,n){n.identity();let r=e.getAttribute(`position`),i=e.getAttribute(`bindPosition`),a=e.getIndex();if(i===void 0||i.count!==r.count)return n;let o=new Uint8Array(r.count);if(a===null)o.fill(1);else for(let e=0;e({active:!1,eventId:null,fluid:`blood`,life:0,seconds:1,rate:0,accumulator:0,position:new B,axis:new B(0,1,0)}));simulationRemainder=0;ambientSeed=1597463007;shake=0;lowTier=!1;bloodLevel=`full`;lens=new eU;camera=null;lensPoint=new B;debrisCursor=new Map;visceraMaterial;viscera=[];visceraByShape={};wounds=[];woundsOpen=0;woundShare=1;woundClock=0;parts=[];partsThrown=0;partBox=new Ic;partMiddle=new B;partVertex=new B;limbMap;limbMaterial;trunkMap;trunkMaterial;fleshSections;spines=[];spineMesh;spineStretch;shredGeometry;shredMesh;spineNeck=new B;guts=[];heartGeometry;heartMesh;heartRest;heartRadius;heart={active:!1,moving:!1,owner:-1,age:0,beats:0,vx:0,vy:0,vz:0,vrx:0,vry:0,vrz:0,bounces:0,settle:-1,settleFrom:new ms,settleTo:new ms,settleFromY:0,pool:0,trail:0};corpses=[];flyGeometry;flyMaterial;flyMesh;flies;constructor(e,t=1024,n=kW){this.scene=e,this.budget=n,this.dropletPositions=new Float32Array(n.droplets*3),this.dropletColors=new Float32Array(n.droplets*3),this.dropletBuffers={position:new el(this.dropletPositions,3),color:new el(this.dropletColors,3)},this.dropletGeometry=Lv(),this.dropletMaterial=new Hd({color:16777215,roughness:.3,metalness:.02}),this.dropletMesh=new pu(this.dropletGeometry,this.dropletMaterial,n.droplets),this.dropletMesh.instanceMatrix.setUsage(Do),this.dropletMesh.frustumCulled=!1,this.dropletMesh.castShadow=!1,e.add(this.dropletMesh);for(let e=0;eObject.assign(new H(e.geometry,e.material),{castShadow:e.castShadow}));if(e.push(Object.assign(new H(this.stumpGeometry,this.jawMaterial),{castShadow:this.stumps[0].mesh.castShadow})),this.bakedStandIns===null){let e=new Ms,t=[JK(!1,e),JK(!0,e)].flatMap(e=>[e.material,e.injury.variant(!1),e.injury.variant(!0)]),n=new Hd({color:1920728,roughness:.38,metalness:.03,map:e});_b(n,!0);let r=[eq(e,16777215),eq(null,16777215),eq(e,1920728,`gloves`),eq(e,1920728,`trunks`)],i=new pu(this.heartGeometry,this.visceraMaterial,1);i.setColorAt(0,this.gibColor.setHex(16777215)),i.castShadow=!0,this.bakedStandIns={map:e,materials:[...t,n,...r],instanced:[i,new pu(this.flyGeometry,this.flyMaterial,1)]}}for(let t of this.bakedStandIns.materials)e.push(Object.assign(new H(this.headGeometry,t),{castShadow:!0}));return e.push(Object.assign(new H(this.heartGeometry,this.visceraMaterial),{castShadow:!0}),...this.bakedStandIns.instanced),e}setCamera(e){this.camera=e}drawLens(e,t,n){this.lens.draw(e,t,n)}get lensDrops(){return this.lens.count}setBloodLevel(e){if(e===this.bloodLevel)return;let t=this.bloodLevel;this.bloodLevel=e,(e===`off`||t===`full`&&e===`reduced`)&&this.clearArcadeGore()}get shakeAmount(){return this.shake}get liveParticles(){return this.droplets.filter(e=>e.alive).length}get liveBloodParticles(){return this.droplets.filter(e=>e.alive&&e.blood).length}get liveMist(){return this.mists.filter(e=>e.alive).length}get canvasStains(){return this.canvasBlood.stains}useUploader(e){this.canvasBlood.useUploader(e)}setLowTier(e){this.canvasBlood.setLowTier(e),this.lowTier=e}get liveGibs(){return this.gibs.filter(e=>e.alive).length}get liveShards(){return this.shards.filter(e=>e.alive).length}debrisCount(e){let t=0;for(let n of this.gibs)n.alive&&n.kind===e&&(t+=1);for(let n of this.shards)n.alive&&n.kind===e&&(t+=1);for(let n of this.eyeballs)n.alive&&n.kind===e&&(t+=1);for(let n of this.viscera)for(let r of n.pieces)r.alive&&r.kind===e&&(t+=1);return t}get activeHeads(){return this.heads.filter(e=>e.active).length}headBurst(e){let t=this.stumps[Math.trunc(e)];return t!==void 0&&t.active&&t.mesh.material===this.jawMaterial}severedHeadPosition(e,t){let n=this.heads[Math.trunc(e)];return n===void 0||!n.active?!1:(t.copy(n.mesh.position),!0)}severedHeadFacing(e,t){let n=this.heads[Math.trunc(e)];return n===void 0||!n.active?!1:(t.set(0,0,1).applyQuaternion(n.mesh.quaternion),!0)}mouthpieceOut(e){return this.shields[Math.trunc(e)]?.out===!0}mouthpiecePosition(e,t){let n=this.shields[Math.trunc(e)];return n===void 0||!n.out?!1:(t.set(n.x,n.y,n.z),!0)}ejectMouthpiece(e,t,n,r,i,a,o=!1){if(e<0||e>=IW)return!1;let s=Math.trunc(e),c=this.shields[s],l=Number.isSafeInteger(i)?i:0;if(c.out&&!o||this.lastShieldEvent[s]===l)return!1;this.lastShieldEvent[s]=l;let u=BG(l*48271+s*7907+5),d=zK(r),f=.9+u()*.9,p=.9+u()*.9,m=(u()-.5)*1.1;Object.assign(c,pU(),{out:!0,moving:!0,x:$(t.x),y:$(t.y,1.45),z:$(t.z),vx:f*d.x-m*d.z,vy:p,vz:f*d.z+m*d.x,wx:(u()-.5)*26,wy:(u()-.5)*18,wz:(u()-.5)*26,restYaw:u()*Math.PI*2});let h=this.shieldMeshes[s];h.position.set(c.x,c.y,c.z),KK(h.quaternion,n),h.visible=!0,this.shieldMaterials[s].color.setHex(a).lerp(UG,.55);let g=this.bloodLevel===`full`;for(let e=0;e<(g?22:12);e+=1){let t=u()*Math.PI*2,n=g?e%3!=0:this.bloodLevel===`reduced`&&e%3==0;this.spawnDroplet(c.x+(u()-.5)*.03,c.y+(u()-.5)*.03,c.z+(u()-.5)*.03,c.vx*(.5+u()*.6)+Math.sin(t)*.4,c.vy*(.4+u()*.6),c.vz*.5+Math.cos(t)*.4,n?Bv(u()):ZG,.5+u()*.5,n)}return!0}gougeEye(e,t,n,r,i,a,o=!1){if(this.bloodLevel!==`full`||e<0||e>=IW)return;let s=Math.trunc(e),c=$G(s,a),l=this.eyes[c],u=Number.isSafeInteger(i)?i:0;if(l.active&&(o||l.eventId===u))return;l.active&&this.burstEye(s,a,u),l.active=!0,l.eventId=u,l.socket.set($(t.x),$(t.y,1.6),$(t.z)),l.facing.copy(n),l.hasSkull=!1,l.position.copy(l.socket).addScaledVector(n,WG*1.5),this.eyeDirection.copy(n).multiplyScalar(1.3);let d=zK(r);if(this.eyeDirection.x+=d.x*.5,this.eyeDirection.z+=d.z*.5,l.previous.copy(l.position),o||l.previous.addScaledVector(this.eyeDirection,-.016666666666666666),l.bleeding=o?0:qG,l.accumulator=0,this.eyeMeshes[c].visible=!0,this.nerveMeshes[c].visible=!0,this.writeEye(c),o)return;let f=BG(u*52711+s*3571+(a===`right`?977:0)+13);for(let e=0;e1e-8&&o.facing.copy(n).normalize(),r!==void 0&&i!==void 0&&(o.skull.set($(r.x),$(r.y,1.6),$(r.z)),KK(o.skullTurn,i),o.hasSkull=!0))}eyeOut(e,t){return t===void 0?this.eyes[$G(e,`left`)]?.active===!0||this.eyes[$G(e,`right`)]?.active===!0:this.eyes[$G(e,t)]?.active===!0}eyePosition(e,t,n){let r=this.eyes[$G(e,`left`)],i=this.eyes[$G(e,`right`)],a=n===`left`||n===void 0&&r?.active===!0?r:i;return a===void 0||!a.active?!1:(t.copy(a.position),!0)}updateEyes(e){for(let[t,n]of this.eyes.entries()){if(!n.active)continue;this.eyeDirection.copy(n.position).sub(n.previous).multiplyScalar(JG),n.previous.copy(n.position),n.position.add(this.eyeDirection),n.position.y-=JW*e*e,this.eyeDirection.copy(n.position).sub(n.socket);let r=this.eyeDirection.length();if(r>.055&&n.position.copy(n.socket).addScaledVector(this.eyeDirection,GG/r),n.hasSkull&&this.restOnFace(n)){n.previous.lerp(n.position,.6),this.eyeDirection.copy(n.position).sub(n.socket);let e=this.eyeDirection.length();e>.055&&n.position.copy(n.socket).addScaledVector(this.eyeDirection,GG/e)}if(n.position.y<0+WG&&(n.position.y=0+WG),this.bloodLevel===`full`&&n.bleeding>0)for(n.bleeding=Math.max(0,n.bleeding-e),n.accumulator+=e*this.forDevice(KG);n.accumulator>=1;){--n.accumulator;let e=.15+this.ambientRandom()*.5;this.spawnDroplet(n.socket.x,n.socket.y-.005,n.socket.z,n.facing.x*e+(this.ambientRandom()-.5)*.2,-.15-this.ambientRandom()*.4,n.facing.z*e+(this.ambientRandom()-.5)*.2,Bv(this.ambientRandom()),.9,!0)}this.writeEye(t)}}restOnFace(e){this.eyeTurn.copy(e.skullTurn).invert();let t=this.eyeDirection.copy(e.position).sub(e.skull).applyQuaternion(this.eyeTurn),n=this.eyeSocketLocal.copy(e.socket).sub(e.skull).applyQuaternion(this.eyeTurn).z+WG+XG;if(t.z>=n)return!1;let r=Math.hypot(t.x/YG.x,t.y/YG.y);return r>=1?!1:(n-t.z<=(1-r)*Math.min(YG.x,YG.y)||r<1e-6?t.z=n:(t.x/=r,t.y/=r),e.position.copy(e.skull).add(t.applyQuaternion(e.skullTurn)),!0)}writeEye(e){let t=this.eyes[e],n=this.eyeMeshes[e],r=this.nerveMeshes[e];n.position.copy(t.position),this.eyeDirection.copy(t.position).sub(t.socket);let i=this.eyeDirection.length();i>1e-5&&(this.eyeDirection.multiplyScalar(1/i),r.quaternion.setFromUnitVectors(BK,this.eyeDirection),this.eyeDirection.addScaledVector(t.facing,.9).normalize(),n.quaternion.setFromUnitVectors(VK,this.eyeDirection)),r.position.copy(t.socket),r.scale.set(1,Math.max(.001,i-WG*.8),1)}returnMouthpiece(e){let t=Math.trunc(e),n=this.shields[t];n!==void 0&&(Object.assign(n,pU()),this.shieldMeshes[t].visible=!1,this.lastShieldEvent[t]=null)}clearMouthpieces(){for(let[e,t]of this.shields.entries())Object.assign(t,pU()),this.shieldMeshes[e].visible=!1,this.lastShieldEvent[e]=null}updateShields(e){for(let[t,n]of this.shields.entries()){if(!n.out||!n.moving)continue;let r=this.shieldMeshes[t],i=n.age<.3&&!n.sliding,a=n.x,o=n.z;mU(n,r.quaternion,e,0);let s=fv-aU-KW,c=WK(n.x,n.vx,a,s),l=WK(n.z,n.vz,o,s);if(n.x=c.position,n.vx=c.velocity,n.z=l.position,n.vz=l.velocity,r.position.set(n.x,n.y,n.z),i&&this.ambientRandom()e.active).length}get activeStumps(){return[...this.stumps,...this.handStumps].filter(e=>e.active).length}spawnDroplet(e,t,n,r,i,a,o,s,c,l=c?.0035+this.ambientRandom()**3*.0125:.0025+this.ambientRandom()**2*.004,u=`blood`){let d=this.liveDropletsthis.droplets[e].maxLife-this.droplets[e].life;for(let n=0;n0&&t(e[i-1])pG&&e.pop()}}forDevice(e){return Math.round(e*this.budget.droplets*(this.lowTier?.5:1)/kW.droplets)}uploadDroplets(e,t,n){if(this.dropletMesh.count=this.liveDroplets,t<=e)return;this.dropletMesh.instanceMatrix.addUpdateRange(e*16,(t-e)*16),this.dropletMesh.instanceMatrix.needsUpdate=!0;let r=this.dropletMesh.instanceColor;n&&r!==null&&(r.addUpdateRange(e*3,(t-e)*3),r.needsUpdate=!0)}retireDroplet(e){this.oldest.length=0;let t=this.liveDroplets-1,n=this.droplets[e];if(n.alive=!1,this.liveDroplets=t,e!==t){let r=this.droplets[t];this.droplets[e]=r,this.droplets[t]=n,this.dropletPositions.copyWithin(e*3,t*3,t*3+3),this.dropletColors.copyWithin(e*3,t*3,t*3+3),this.dropletMesh.setColorAt(e,this.dropletColor.setRGB(r.r,r.g,r.b)),this.writeDropletMatrix(e,r)}this.dropletPositions[t*3+1]=-50,this.writeDropletMatrix(t,n)}sprayDroplet(e,t,n,r,i,a,o,s,c,l,u,d){this.spawnDroplet(t,n,r,i*e.x-o*e.z,a,i*e.z+o*e.x,s,c,l,u,d)}writeDropletMatrix(e,t){if(!t.alive){this.dropletScale.setScalar(0),this.dropletQuaternion.identity(),this.dropletMatrix.compose(this.dropletVelocity.set(0,-50,0),this.dropletQuaternion,this.dropletScale),this.dropletMesh.setMatrixAt(e,this.dropletMatrix);return}let n=Math.hypot(t.vx,t.vy,t.vz);n>1e-4?(this.dropletVelocity.set(t.vx/n,t.vy/n,t.vz/n),this.dropletQuaternion.setFromUnitVectors(BK,this.dropletVelocity)):this.dropletQuaternion.identity();let r=Math.min(1,t.life/(t.maxLife*.3))*this.dropletCloseness*(t.blood&&this.bloodLevel===`full`?sG:1),i=Rv(t.radius*r,n,this.dropletShape);this.dropletScale.set(i.width,i.length,i.width),this.dropletMatrix.compose(this.dropletVelocity.set(t.x,t.y,t.z),this.dropletQuaternion,this.dropletScale),this.dropletMesh.setMatrixAt(e,this.dropletMatrix)}spawnMist(e,t,n,r,i){let a=this.mistIndex%this.budget.mist;this.mistIndex+=1;let o=this.mists[a];o.alive=!0,o.x=$(e),o.y=$(t,1),o.z=$(n),o.maxLife=Math.max(.05,$(i,.5)),o.life=o.maxLife,o.scale=Math.max(.1,$(r,1)),this.mistPositions[a*3]=o.x,this.mistPositions[a*3+1]=o.y,this.mistPositions[a*3+2]=o.z,this.mistColors[a*4+3]=Math.min(1,o.scale),this.mistGeometry.attributes.position.needsUpdate=!0,this.mistGeometry.attributes.color.needsUpdate=!0}placeDecal(e,t,n,r,i,a,o){this.canvasBlood.stain($(e),$(t),Math.max(.01,$(n,.2))*.28,Math.max(.01,$(r,.15))*.28,$(i),R.clamp($(a,.4),0,.95),o)}splashLens(e,t,n,r,i){let a=this.camera;if(a===null||this.bloodLevel===`off`||!(r>0))return;let o=this.lensPoint.set($(e),$(t,1.5),$(n)),s=o.distanceTo(a.position);if(o.project(a),!(o.z<1)||Math.abs(o.x)>1.15||Math.abs(o.y)>1.15)return;let c=R.clamp((mG-s)/8.5,0,1);this.lens.splash((o.x+1)/2,(1-o.y)/2,c*r*(this.bloodLevel===`reduced`?.25:1),i)}ambientRandom(){return this.ambientSeed=Math.imul(this.ambientSeed^this.ambientSeed>>>15,1|this.ambientSeed),this.ambientSeed^=this.ambientSeed+Math.imul(this.ambientSeed^this.ambientSeed>>>7,61|this.ambientSeed),((this.ambientSeed^this.ambientSeed>>>14)>>>0)/4294967296}splatter(e,t,n,r=()=>this.ambientRandom(),i=12,a=nG){if(this.bloodLevel===`off`)return;let o=this.bloodLevel===`reduced`,s=o?Math.ceil(i/4):i,c=o?.35:rG;for(let i=0;i0?$(t.y):e.detail.endsWith(`:body`)?1.05:1.58,z:$(t.z)},f=e.kind===`bleed`,p=n||f?0:Math.round(s?(a?4:6)+Math.min(6,Math.max(0,e.amount)/40):(a?6:16)+Math.min(20,Math.max(0,e.amount)/20)),m={x:0,y:0,z:0,vx:0,vy:0,vz:0,life:0,radius:0,color:Bv(0)},h=e.kind===`hit`||e.kind===`counter_hit`,g=h?Math.max(0,e.blood-Math.floor(Math.max(0,e.amount)/3)):0,_=n||e.blood<=0||this.bloodLevel===`off`?0:f?this.bloodLevel===`reduced`?1:Math.min(12,3+Math.floor(Math.max(0,e.amount)/8)):this.bloodLevel===`reduced`?Math.min(24,Math.round(e.blood*(a?.12:.24))):this.forDevice(a?Math.round(Mv(e.blood,0)/2):o?Mv(e.blood,0)+cG:Mv(e.blood,h?e.amount:0));f||(this.shake=Math.min(.14,this.shake+(a?.008:Math.max(.012,e.amount/1500)))),o&&(this.shake=Math.min(.2,this.shake+.09));let v=o?1.2:h?R.clamp((e.amount-40)/60,0,1)*(.6+Math.min(100,e.blood)/150):0;!n&&!f&&e.blood>0&&this.splashLens(d.x,d.y,d.z,v,e.event_id);for(let e=0;e0&&t<=XW){let e=1-ZW*t;this.spawnDroplet(m.x,m.y,m.z,m.vx*e,m.vy*e,m.vz*e,m.color,m.life,!0,m.radius*(1-QW*t));continue}let n=t===0,r=(i()-.5)*Math.PI,a=n?2.2+i()*1.8:.9+i()*1.5,o=a,s=.5+i()*1.25,u=(i()-.5)*.5;if(c===`fan`)o=a*(.45+Math.cos(r)*.35),s=.55+i()*1.15,u=Math.sin(r)*a*.9;else if(c===`plume`)o=a*(.25+i()*.25),s=1.8+i()*2.2,u=(i()-.5)*a*.65;else if(c===`body_burst`)o=a*(.55+i()*.45),s=-.15+i()*1.05,u=Math.sin(r)*a*.75;else if(c===`ooze`)o=.08+i()*.22,s=-.3-i()*.55,u=(i()-.5)*.22;else if(c===`impact`)o=a*(.45+i()*.65),s=.9+i()*2.1,u=Math.sin(r)*a;else{let e=n?.12:.34;o=a*(.8+i()*.35),s=n?1.3+i()*1.6:.5+i()*1.25,u=(i()-.5)*a*e}let f=o*l.x-u*l.z,p=o*l.z+u*l.x,h=Bv(i()),g=d.x+(i()-.5)*.12,_=d.y+(i()-.5)*.14,v=d.z+(i()-.5)*.12,y=.65+i()*.85;n?(m.x=g,m.y=_,m.z=v,m.vx=f,m.vy=s,m.vz=p,m.color=h,m.life=y,m.radius=.008+i()*.008,this.spawnDroplet(g,_,v,f,s,p,h,y,!0,m.radius)):this.spawnDroplet(g,_,v,f,s,p,h,y,!0)}let y=s?o||e.kind===`counter_hit`||h&&(e.amount>=35||g>=iG):e.kind===`hit`&&e.amount>=70||o||e.kind===`counter_hit`||g>=16;if(!n&&e.blood>0&&this.bloodLevel!==`off`&&y){let t=s?this.forDevice(o?36:12+Math.min(24,Math.floor(g/2)+Math.floor(Math.max(0,e.amount-35)/6))):o?3:2,n=s?1:.35;for(let e=0;e0&&this.bloodLevel!==`off`){let t=o?1+Math.min(2,e.blood/55):.8+Math.min(1.2,g/30);this.splatter(d.x+(i()-.5)*.6,d.z+(i()-.5)*.6,s?t*1.3:t,i,x,o?tG:eG)}let S=e.amount>=70||e.kind===`counter_hit`&&e.amount>=Av,C=h&&(e.amount>=60||S&&g>=iG/4);if(s&&!n&&C&&!e.detail.endsWith(`:body`)){let t=Math.min(20,Math.max(3,Math.round((e.amount-10)/6)));for(let e=0;e0){e.sideLow=1/0,e.sideHigh=-1/0;for(let t=0;t=IW)return;let s=Math.trunc(e),c=Number.isSafeInteger(i)?i:0,l=this.heads[s];if(l.active||this.lastDecapitationEvent[s]===c)return;this.stopGush(s),this.applyBakedPart(l,o,a);let u=BG(c*104729+s*8191+23),d=zK(r);this.lastDecapitationEvent[s]=c,l.active=!0,l.moving=!0,l.eventId=c;let f=1.8+u()*1.1;l.vy=2.3+u()*1.1;let p=(u()-.5)*2.2;l.vx=f*d.x-p*d.z,l.vz=f*d.z+p*d.x,l.vrx=(u()-.5)*12,l.vry=(u()-.5)*12,l.vrz=(u()-.5)*12,l.bounces=0,l.trail=0,l.stained=!1,l.settle=-1,l.mesh.position.set($(t.x),$(t.y,1.55),$(t.z)),KK(l.mesh.quaternion,n),l.mesh.visible=!0;let m=this.stumps[s];m.mesh.material=this.stumpMaterial,m.active=!0,m.fountainLife=14,m.accumulator=0,m.seed=c|1,m.direction=d,m.mesh.position.copy(l.mesh.position),m.mesh.quaternion.copy(l.mesh.quaternion),m.mesh.visible=!0;for(let e=0;e=IW)return;let i=Math.trunc(e),a=Number.isSafeInteger(r)?r:0,o=this.stumps[i];if(o.active||this.lastBurstEvent[i]===a)return;this.lastBurstEvent[i]=a,this.stopGush(i);let s=BG(a*91813+i*6151+41),c=zK(n),l=$(t.x),u=$(t.y,1.6),d=$(t.z),f=(e,t,n,r,a)=>{for(let o=0;o=IW)return;let c=Math.trunc(e)*2+(t===`left`?0:1),l=Number.isSafeInteger(a)?a:0,u=this.hands[c];if(u.active||this.lastDismembermentEvent[c]===l)return;this.applyBakedPart(u,s,o);let d=BG(l*130363+c*12289+37),f=zK(i);this.lastDismembermentEvent[c]=l,u.active=!0,u.moving=!0,u.eventId=l;let p=1.3+d()*1.1;u.vy=1.5+d()*1.2;let m=(d()-.5)*1.8;u.vx=p*f.x-m*f.z,u.vz=p*f.z+m*f.x,u.vrx=(d()-.5)*16,u.vry=(d()-.5)*16,u.vrz=(d()-.5)*16,u.bounces=0,u.trail=0,u.stained=!1,u.mesh.position.set($(n.x),$(n.y,1.25),$(n.z)),KK(u.mesh.quaternion,r),u.mesh.visible=!0;let h=this.handStumps[c];h.active=!0,h.fountainLife=vG,h.accumulator=0,h.seed=l|1,h.direction=f,h.mesh.position.copy(u.mesh.position),h.mesh.quaternion.copy(u.mesh.quaternion),h.mesh.visible=!0;for(let t=0;t=IW)return;let o=Math.trunc(e),s=Number.isSafeInteger(i)?i:0,c=BG(s*69061+o*2741+29),l=zK(r),u=this.tornAxis.copy(n);u.lengthSq()>1e-8&&Number.isFinite(u.lengthSq())||u.set(0,1,0),u.normalize();let d=$(t.x),f=$(t.y,1.2),p=$(t.z);for(let e=0;e{for(let n=0;n=IW)return;let i=Math.trunc(e)*2+(t===`left`?0:1),a=this.handStumps[i];a.active&&(a.mesh.position.set($(n.x),$(n.y,1.2),$(n.z)),KK(a.mesh.quaternion,r))}anchorStump(e,t,n,r,i){if(this.bloodLevel!==`full`||e<0||e>=IW)return;let a=this.stumps[Math.trunc(e)];a.active&&(a.mesh.position.set($(t.x),$(t.y,1.5),$(t.z)),r===void 0||r.length<18?(a.mesh.geometry=this.stumpGeometry,KK(a.mesh.quaternion,n)):(Qv(a.flesh,r,a.mesh.position,this.stumpOutward.set(0,1,0).applyQuaternion(n),.01,i),a.mesh.geometry=a.flesh,a.mesh.quaternion.identity()))}restoreFighter(e){if(e<0||e>=IW)return;let t=Math.trunc(e),n=this.heads[t];n.active=!1,n.moving=!1,n.mesh.visible=!1,n.mesh.position.y=-50,this.applyBakedPart(n,void 0,9063730);let r=this.stumps[t];r.active=!1,r.fountainLife=0,r.accumulator=0,r.mesh.visible=!1,r.mesh.position.y=-50,r.mesh.material=this.stumpMaterial,this.clearGibs(t),this.stopGush(t);for(let e of[t*2,t*2+1]){let t=this.eyes[e];t.active=!1,t.bleeding=0,this.eyeMeshes[e].visible=!1,this.nerveMeshes[e].visible=!1}this.clearWounds(t),this.clearGuts(t),this.clearSpine(t),this.clearCorpse(t),this.heart.owner===t&&(this.heart.active=!1,this.heartMesh.visible=!1);for(let e of[t*2,t*2+1]){let t=this.hands[e];t.active=!1,t.moving=!1,t.mesh.visible=!1,t.mesh.position.y=-50,this.applyBakedPart(t,void 0,1920728);let n=this.handStumps[e];n.active=!1,n.fountainLife=0,n.accumulator=0,n.mesh.visible=!1,n.mesh.position.y=-50}}drip(e,t,n,r=0){let i=+(r===1);if(this.bloodLevel===`off`||n||t<=.05){this.stopDrip(i);return}let a=this.dripEmitters[i];a.position.set($(e.x),$(e.y,1.5),$(e.z)),a.rate=this.bloodLevel===`reduced`?Math.min(3,t*3):Math.min(60,t*40),a.active=!0}stopDrip(e){let t=this.dripEmitters[+(e===1)];t.active=!1,t.rate=0,t.accumulator=0}gush(e,t,n,r,i,a,o=`blood`){if(this.bloodLevel!==`full`||e<0||e>=this.gushes.length)return;let s=this.gushes[Math.trunc(e)],c=Number.isSafeInteger(a)?a:0;s.active&&s.eventId===c||(s.active=!0,s.eventId=c,s.fluid=o,s.seconds=Math.max(.1,$(r,1)),s.life=s.seconds,s.rate=Math.max(0,$(i)),s.accumulator=0,this.anchorGush(e,t,n))}anchorGush(e,t,n){let r=this.gushes[Math.trunc(e)];r!==void 0&&r.active&&(r.position.set($(t.x),$(t.y,1.4),$(t.z)),n.lengthSq()>1e-8&&Number.isFinite(n.lengthSq())&&r.axis.copy(n).normalize())}gushing(e){return this.gushes[Math.trunc(e)]?.active===!0}stopGush(e){let t=this.gushes[e];t!==void 0&&(t.active=!1,t.eventId=null)}updateGushes(e){for(let t of this.gushes){if(!t.active)continue;if(t.life-=e,t.life<=0||this.bloodLevel!==`full`){t.active=!1;continue}let n=t.life/t.seconds,r=(t.seconds-t.life)*bG%1,i=Math.exp(-(((r-.5)/jG)**2));if(t.accumulator+=e*this.forDevice(t.rate)*n*(MG+.7*i),!(t.accumulator<1))for(IG.set(Math.abs(t.axis.y)<.9?0:1,+(Math.abs(t.axis.y)<.9),0).cross(t.axis).normalize(),LG.crossVectors(t.axis,IG);t.accumulator>=1;){--t.accumulator;let e=Math.sqrt(this.ambientRandom())*PG,r=this.ambientRandom()*Math.PI*2,a=(NG+this.ambientRandom()*2)*(.5+.5*n)*(.7+.3*i);RG.copy(t.axis).multiplyScalar(Math.cos(e)).addScaledVector(IG,Math.sin(e)*Math.cos(r)).addScaledVector(LG,Math.sin(e)*Math.sin(r)).multiplyScalar(a),this.spawnDroplet(t.position.x+(this.ambientRandom()-.5)*.03,t.position.y+(this.ambientRandom()-.5)*.02,t.position.z+(this.ambientRandom()-.5)*.03,RG.x,RG.y,RG.z,Hv(t.fluid,this.ambientRandom()),1.2,!0,(.004+this.ambientRandom()**2*.01)*Vv[t.fluid].drop,t.fluid)}}}updateDripEmitters(e){for(let t of this.dripEmitters)if(t.active)for(t.accumulator+=e*t.rate;t.accumulator>=1;)--t.accumulator,this.spawnDroplet(t.position.x+(this.ambientRandom()-.5)*.14,t.position.y-.04,t.position.z+(this.ambientRandom()-.5)*.1,(this.ambientRandom()-.5)*.08,-.25-this.ambientRandom()*.4,(this.ambientRandom()-.5)*.08,Bv(this.ambientRandom()),1.1,!0)}spawnTeeth(e,t,n,r){if(this.bloodLevel===`off`)return;let i=this.bloodLevel===`reduced`?+(n>=3):Math.min(12,Math.max(1,Math.round(n)));if(i<=0)return;let a=BG((Number.isSafeInteger(r)?r:0)*7331+91),o=zK(t);for(let t=0;t>3):f.length>>2)}debrisSlot(e){let t=this.debrisCursor.get(e)??0,n=t%e.length;for(let r=0;r=0?n.scale*Math.max(0,n.fading)/gG:n.scale;this.gibScale.set(e*n.stretch,e,e/Math.sqrt(n.stretch))}this.gibMatrix.compose(this.gibPosition,this.gibQuaternion,this.gibScale),e.setMatrixAt(t,this.gibMatrix)}updateDebris(e,t,n,r){let i=!1;for(let[a,o]of e.entries()){if(!o.alive||o.resting&&o.fading<0)continue;if(i=!0,o.fading>=0){o.fading-=n,o.fading<=0&&(o.alive=!1),this.writeDebrisMatrix(t,a,o);continue}o.vy-=6.4*n,o.x+=o.vx*n,o.y+=o.vy*n,o.z+=o.vz*n,o.rx+=o.vrx*n,o.ry+=o.vry*n,o.rz+=o.vrz*n,this.confineGib(o);let e=0+(r===void 0?o.kind===`eye`?WG*PW:.015:r.low*o.scale);if(o.y<=e){if(o.y=e,!o.stained&&this.bloodLevel===`full`&&o.kind!==`tooth`&&o.kind!==`eye`&&(o.stained=!0,r===void 0?this.placeDecal(o.x,o.z,.24+o.scale*.16,.14+o.scale*.1,o.rz,.55,6425104):this.canvasBlood.stain(o.x,o.z,rK[r.shape].stain*o.scale,rK[r.shape].stain*o.scale*.7,o.ry,.6,6425104)),o.bounces.35)o.bounces+=1,o.vy=Math.abs(o.vy)*.3,o.vx*=.68,o.vz*=.68,o.vrx*=.7,o.vry*=.7,o.vrz*=.7;else{if(o.vx=0,o.vy=0,o.vz=0,o.vrx=o.vry=o.vrz=0,o.kind===`shard`&&(o.rx=Math.round(o.rx/Math.PI)*Math.PI),r!==void 0){let e=Math.round(o.rx/Math.PI),t=Math.round(o.rz/Math.PI);o.rx=e*Math.PI,o.rz=t*Math.PI,o.y=0+((e+t)%2==0?r.low:r.high)*o.scale}o.resting=!0}}this.writeDebrisMatrix(t,a,o)}i?t.instanceMatrix.needsUpdate=!0:r!==void 0&&(r.moving=!1)}confineGib(e){Math.abs(e.x)>3.05&&(e.x=Math.sign(e.x)*cv,e.vx*=-.45),Math.abs(e.z)>3.05&&(e.z=Math.sign(e.z)*cv,e.vz*=-.45)}updateDetachedParts(e,t){for(let n of e){if(n.active&&n.settle>=0&&n.settle<1){n.settle=Math.min(1,n.settle+t/GW);let e=n.settle*n.settle*(3-2*n.settle);n.mesh.quaternion.slerpQuaternions(n.settleFrom,n.settleTo,e),n.mesh.position.y=n.settleFromY+(n.settleToY-n.settleFromY)*e}if(!n.active||!n.moving)continue;let e=n.mesh.position.x,r=n.mesh.position.z;if(n.vy-=5.8*t,n.mesh.position.x+=n.vx*t,n.mesh.position.y+=n.vy*t,n.mesh.position.z+=n.vz*t,n.mesh.rotation.x+=n.vrx*t,n.mesh.rotation.y+=n.vry*t,n.mesh.rotation.z+=n.vrz*t,this.bloodLevel===`full`)for(n.trail+=t*this.forDevice(FW),n.trail>=1&&this.trailPoint.copy(n.cap.position).multiply(n.mesh.scale).applyQuaternion(n.mesh.quaternion).add(n.mesh.position);n.trail>=1;)--n.trail,this.spawnDroplet(this.trailPoint.x+(this.ambientRandom()-.5)*.03,this.trailPoint.y+(this.ambientRandom()-.5)*.03,this.trailPoint.z+(this.ambientRandom()-.5)*.03,n.vx*.35+(this.ambientRandom()-.5)*.9,n.vy*.35+(this.ambientRandom()-.5)*.9,n.vz*.35+(this.ambientRandom()-.5)*.9,Bv(this.ambientRandom()),.9,!0);let i=fv-n.radius-KW,a=WK(n.mesh.position.x,n.vx,e,i),o=WK(n.mesh.position.z,n.vz,r,i);if(n.mesh.position.x=a.position,n.mesh.position.z=o.position,n.vx=a.velocity,n.vz=o.velocity,n.mesh.position.y<=0+n.radius){if(n.mesh.position.y=0+n.radius,!n.stained&&this.bloodLevel===`full`){n.stained=!0;let e=n.radius===WW?1:.55;this.placeDecal(n.mesh.position.x,n.mesh.position.z,1.3*e,.9*e,n.mesh.rotation.z,.85,4392199)}n.bounces<2&&Math.abs(n.vy)>.42?(n.bounces+=1,n.vy=Math.abs(n.vy)*.32,n.vx*=.62,n.vz*=.62,n.vrx*=.65,n.vry*=.65,n.vrz*=.65):(n.moving=!1,n.vx=0,n.vy=0,n.vz=0,n.vrx=0,n.vry=0,n.vrz=0,n.look!==null&&this.rollOntoEar(n))}Number.isFinite(n.mesh.position.x)&&Number.isFinite(n.mesh.position.y)&&Number.isFinite(n.mesh.position.z)&&Number.isFinite(n.mesh.quaternion.x)&&Number.isFinite(n.mesh.quaternion.y)&&Number.isFinite(n.mesh.quaternion.z)&&Number.isFinite(n.mesh.quaternion.w)||(n.mesh.position.set(0,0+n.radius,0),n.mesh.quaternion.identity(),n.moving=!1,n.vx=0,n.vy=0,n.vz=0)}}rollOntoEar(e){let t=this.settleAxis.set(1,0,0).applyQuaternion(e.mesh.quaternion),n=t.y>=0?1:-1;e.settleFrom.copy(e.mesh.quaternion),e.settleTo.setFromUnitVectors(t,this.settleUp.set(0,n,0)).multiply(e.mesh.quaternion),e.settleFromY=e.mesh.position.y,e.settleToY=0+(n>0?-e.sideLow:e.sideHigh),e.settle=0}stumpRandom(e){let t=e.seed|0;return t=Math.imul(t^t>>>15,1|t),t^=t+Math.imul(t^t>>>7,61|t),e.seed=t|0,((t^t>>>14)>>>0)/4294967296}updateStumpFountains(e){if(this.bloodLevel===`full`)for(let t of[...this.stumps,...this.handStumps]){if(!t.active||t.fountainLife<=0)continue;t.fountainLife=Math.max(0,t.fountainLife-e);let n=Math.min(1,t.fountainLife/yG),r=t.fountainLife*bG%1,i=Math.exp(-(((r-.5)/xG)**2));if(t.accumulator+=e*this.forDevice(SG)*n*(CG+.88*i),t.accumulator<1)continue;let a=zG(t,FG);for(IG.set(Math.abs(a.y)<.9?0:1,+(Math.abs(a.y)<.9),0).cross(a).normalize(),LG.crossVectors(a,IG);t.accumulator>=1;){--t.accumulator;let e=this.stumpRandom(t),r=this.stumpRandom(t),o=this.stumpRandom(t),s=Math.sqrt(e)*EG,c=r*Math.PI*2;RG.copy(a).multiplyScalar(Math.cos(s)).addScaledVector(IG,Math.sin(s)*Math.cos(c)).addScaledVector(LG,Math.sin(s)*Math.sin(c)).multiplyScalar(R.lerp(wG,TG,o)*(.7+.3*i)*(.55+.45*n)),this.spawnDroplet(t.mesh.position.x+a.x*.015+(e-.5)*.03,t.mesh.position.y+a.y*.015,t.mesh.position.z+a.z*.015+(r-.5)*.03,RG.x,RG.y,RG.z,Bv(e),1.2+o*.6,!0,.004+o*o*.01)}}}update(e){for(this.canvasBlood.update(HK(e)),this.lens.update(HK(e)),this.simulationRemainder+=HK(e);this.simulationRemainder+1e-9>=fG;)this.simulationRemainder=Math.max(0,this.simulationRemainder-fG),this.simulate(fG);for(let e of this.guts)e.active&&e.sinceDrop<0&&e.rope.hold(e.anchor)&&(e.moved=!0),e.moved&&=(e.tube.write(e.rope),!1)}simulate(e){this.shake*=.02**e,this.updateDripEmitters(e),this.updateGushes(e),this.updateStumpFountains(e),this.updateDetachedParts(this.heads,e),this.updateDetachedParts(this.hands,e),this.updateShields(e),this.updateEyes(e),this.updateDebris(this.gibs,this.gibMesh,e),this.updateDebris(this.shards,this.shardMesh,e),this.updateDebris(this.eyeballs,this.eyeballMesh,e);for(let t of this.viscera)t.moving&&this.updateDebris(t.pieces,t.mesh,e,t);this.updateWounds(e),this.updateParts(e),this.updateSpines(e),this.updateGuts(e),this.updateHeart(e),this.updateCorpses(e);let t=this.liveDroplets,n=!1;for(let t=0;t0&&(this.dropletBuffers.position.needsUpdate=!0,this.dropletBuffers.color.needsUpdate=!0,this.uploadDroplets(0,this.liveDroplets,n));let r=!1;for(let[t,n]of this.mists.entries()){if(!n.alive)continue;if(r=!0,n.life-=e,n.life<=0){n.alive=!1,this.mistPositions[t*3+1]=-50;continue}let i=1-n.life/n.maxLife;this.mistPositions[t*3]=n.x,this.mistPositions[t*3+1]=n.y+i*.14,this.mistPositions[t*3+2]=n.z,this.mistColors[t*4+3]=Math.max(0,1-i)*Math.min(1,n.scale)}r&&(this.mistGeometry.attributes.position.needsUpdate=!0,this.mistGeometry.attributes.color.needsUpdate=!0)}clearDroplets(e){let t=this.liveDroplets;for(let t=0;t0))return;let s=BG((Number.isSafeInteger(i)?i:0)*15485863+e.charCodeAt(0)*131+e.length*977+7),c=zK(n),l=Math.max(.2,$(a,1)),u=$(t.x),d=$(t.y,1.2),f=$(t.z),p=Math.min(Math.round(r),this.debrisPlaces(e));for(let t=0;t0))return;let o=Number.isSafeInteger(i)?i:0,s=BG(o*86243+tK.indexOf(e)*3331+59),c=zK(n),l=Vv[e],u=Math.max(.2,$(a,1)),d=$(t.x),f=$(t.y,1.2),p=$(t.z),m=Math.min(nK,r);for(let t=this.forDevice(m);t>0;--t){let t=s()*Math.PI*2,n=(.5+s()*1.9)*u;this.sprayDroplet(c,d+(s()-.5)*.08,f+(s()-.5)*.08,p+(s()-.5)*.08,(.4+s()*1.9)*u+Math.sin(t)*n*.35,(.3+s()*2.3)*Math.sqrt(u),Math.cos(t)*n*.8,Hv(e,s()),.7+s(),!0,(.004+s()**2*.013)*l.drop,e)}if(e===`blood`){for(let e=Math.min(48,Math.round(m/25));e>0;--e)this.spawnMist(d+(s()-.5)*.4,f+(s()-.5)*.3,p+(s()-.5)*.4,.9+s()*1.5,.6+s()*.7);this.splatter(d+c.x*.3,p+c.z*.3,1+Math.min(2.4,m/500),s,Math.min(50,Math.round(m/20))),this.splashLens(d,f,p,Math.min(3,m/350),o)}else for(let e=Math.min(10,Math.round(m/30));e>0;--e){let t=.2+s()*.9*u;this.placeDecal(d+c.x*t+(s()-.5)*.5,p+c.z*t+(s()-.5)*.5,.5+s()*.9,.3+s()*.7,s()*Math.PI,.7*l.soak,e%2==0?l.splash:l.stain)}this.shake=Math.min(.22,this.shake+Math.min(.06,m/2e4))}puddle(e,t,n,r,i){if(this.bloodLevel!==`full`)return;let a=Vv[r];this.canvasBlood.pool($(e),$(t),Math.max(.02,$(n,.1)),.95*a.soak,i,a.pool)}shed(e,t){if(this.bloodLevel!==`full`)return;let n=BG(t*7919+11);this.spawnDroplet($(e.x)+(n()-.5)*.05,$(e.y,1),$(e.z)+(n()-.5)*.05,(n()-.5)*.2,-.1,(n()-.5)*.2,Hv(`blood`,n()),1.6,!0)}smear(e,t,n,r,i){this.bloodLevel===`full`&&this.canvasBlood.smear(e,t,n,r,Math.max(.005,$(i,.05)),.75,Vv.blood.splash)}footprint(e,t,n,r,i){this.bloodLevel===`full`&&i>0&&this.canvasBlood.print(e,t,n,r,Math.min(1,i)*.85,Vv.blood.splash)}setWound(e,t,n,r=`blood`){let i=this.woundAt(e,t);if(i===null)return;let a=this.bloodLevel===`full`?R.clamp($(n),0,1):0;a>0&&i.strength<=0&&(i.anchored=!1,i.accumulator=0,i.run=0,i.pool=0),i.strength=a,i.fluid=r,this.shareWounds()}anchorWound(e,t,n,r){let i=this.woundAt(e,t);i===null||i.strength<=0||(i.position.set($(n.x),$(n.y,1.2),$(n.z)),r.lengthSq()>1e-8&&Number.isFinite(r.lengthSq())&&i.axis.copy(r).normalize(),i.anchored=!0)}woundStrength(e,t){return this.woundAt(e,t)?.strength??0}clearWounds(e){for(let[t,n]of this.wounds.entries())(e===void 0||Math.floor(t/$e.length)===Math.trunc(e))&&(n.strength=0);this.shareWounds()}get openWounds(){return this.woundsOpen}woundAt(e,t){let n=Math.trunc(e);return n>=0&&nlK?lK/e:1}updateWounds(e){if(this.woundsOpen!==0&&this.bloodLevel===`full`){this.woundClock+=e;for(let t=0;t=uK){n.run-=uK;let e=.12+cK*r*r,i=l.y*e,a=(i+Math.sqrt(i*i+2*JW*Math.max(0,u.y-0)))/JW,o=u.x+l.x*e*a,s=u.z+l.z*e*a;n.pool<=0||Math.hypot(o-n.poolX,s-n.poolZ)>Math.max(.12,n.pool*1.2)?(n.poolX=o,n.poolZ=s,n.pool=.03):n.pool=Math.min(dK*(.25+.75*r),n.pool+.012);let c=Vv[n.fluid];this.canvasBlood.pool(n.poolX,n.poolZ,n.pool,.95*c.soak,t*7+Math.round(n.pool*80),c.pool)}if(n.accumulator<1)continue;IG.set(Math.abs(l.y)<.9?0:1,+(Math.abs(l.y)<.9),0).cross(l).normalize(),LG.crossVectors(l,IG);let d=R.lerp(.8,EG*.8,r),f=Vv[n.fluid].drop;for(;n.accumulator>=1;){--n.accumulator;let e=Math.sqrt(this.ambientRandom())*d,t=this.ambientRandom()*Math.PI*2;RG.copy(l).multiplyScalar(Math.cos(e)).addScaledVector(IG,Math.sin(e)*Math.cos(t)).addScaledVector(LG,Math.sin(e)*Math.sin(t)).multiplyScalar(c*(.75+this.ambientRandom()*.4)),this.spawnDroplet(u.x+l.x*.012+(this.ambientRandom()-.5)*.02,u.y+l.y*.012,u.z+l.z*.012+(this.ambientRandom()-.5)*.02,RG.x,RG.y,RG.z,Hv(n.fluid,this.ambientRandom()),1.3+r*.5,!0,(.004+this.ambientRandom()**2*.01)*f,n.fluid)}}}}burstEye(e,t,n){let r=Math.trunc(e),i=$G(r,t),a=this.eyes[i];if(r<0||r>=IW||a===void 0||!a.active)return!1;if(a.active=!1,a.bleeding=0,this.eyeMeshes[i].visible=!1,this.nerveMeshes[i].visible=!1,this.bloodLevel!==`full`)return!0;let o=Number.isSafeInteger(n)?n:0,s=BG(o*39916801+i*211+3),{x:c,y:l,z:u}=a.position;for(let e=this.forDevice(160);e>0;--e){let t=s()*Math.PI*2,n=s()*1.6-.6,r=Math.sqrt(Math.max(0,1-Math.min(1,n*n))),i=.6+s()*2.2,a=e%3!=0;this.spawnDroplet(c,l,u,Math.cos(t)*r*i,n*i+.5,Math.sin(t)*r*i,a?Bv(s()):ZG,.5+s()*.7,a,.003+s()**2*.008)}for(let e=0;e<4;e+=1)this.spawnGib(c,l,u,(s()-.5)*1.6,.4+s()*1.2,(s()-.5)*1.6,s,`flesh`,r);for(let e=0;e<8;e+=1)this.spawnMist(c+(s()-.5)*.12,l+(s()-.5)*.1,u+(s()-.5)*.12,.5+s()*.6,.4+s()*.4);return this.splashLens(c,l,u,.8,o),!0}skinOf(e,t){let n=JK(t.sites===Yg,e.map),r=e.look??vb;return n.look?.set(r),n.material.color.setHex(e.color),n.injury.copyFrom(t),n.injury.setBindToPart(tq(e.geometry,r,this.bindToPartMatrix)),t.material instanceof Ud&&(n.material.clearcoat=t.material.clearcoat),n.material}flingPart(e,t,n,r,i,a,o={}){this.removePart(e);let s=this.partBox.makeEmpty();for(let e of t){let t=e.geometry.getAttribute(`position`),n=e.geometry.getIndex(),r=n===null?t.count:n.count;for(let e=0;ep.reach)&&(p=e),(m===null||e.height>m.height)&&(m=e);for(let{fan:e,opening:t}of f)e.materialIndex=$K(o.part,t===p,t===m);c.cut.set(0,0,0),p!==null&&c.cut.copy(p.centre).sub(l),KK(c.group.quaternion,r),c.group.position.copy(l).applyQuaternion(c.group.quaternion),c.group.position.set(c.group.position.x+$(n.x),c.group.position.y+$(n.y,1.2),c.group.position.z+$(n.z)),c.group.visible=!0,c.key=e,c.born=this.partsThrown++;let h=0;for(let t=0;tt.key===e)}partPosition(e,t){let n=this.parts.find(t=>t.key===e);return n!==void 0&&(t.copy(n.group.position),!0)}removePart(e){for(let t of this.parts)if(t.key===e){t.key=null,t.moving=!1,t.settle=-1,t.group.visible=!1,t.group.clear();for(let e of t.geometries)e.dispose();for(let e of t.materials)e.dispose();t.geometries.length=0,t.materials.length=0}}get activeParts(){let e=0;for(let t of this.parts)t.key!==null&&(e+=1);return e}partResting(e){return this.parts.some(t=>t.key===e&&!t.moving&&(t.settle<0||t.settle>=1))}updateParts(e){let t=this.bloodLevel===`full`;for(let n=0;n=0&&r.settle<1){r.settle=Math.min(1,r.settle+e/GW);let t=r.settle*r.settle*(3-2*r.settle);i.quaternion.slerpQuaternions(r.settleFrom,r.settleTo,t),i.position.y=r.settleFromY+(r.settleToY-r.settleFromY)*t}if(!r.moving){if(!t||r.lain>=_K)continue;let a=Math.floor(r.lain/vK);for(r.lain+=e,this.trailPoint.copy(r.cut).applyQuaternion(i.quaternion).add(i.position),r.trail+=e*this.forDevice(yK);r.trail>=1;)--r.trail,this.spawnDroplet(this.trailPoint.x,Math.max(.02,this.trailPoint.y),this.trailPoint.z,(this.ambientRandom()-.5)*.5,.2+this.ambientRandom()*.5,(this.ambientRandom()-.5)*.5,Bv(this.ambientRandom()),.6,!0);if(Math.floor(r.lain/vK)===a)continue;let o=.1+r.radius*1.8;r.pool=Math.min(o,r.pool+o*vK*1.5/_K),this.canvasBlood.pool(this.trailPoint.x,this.trailPoint.z,r.pool,.95,n*13+a);continue}let a=i.position.x,o=i.position.z;if(r.vy-=5.8*e,i.position.x+=r.vx*e,i.position.y+=r.vy*e,i.position.z+=r.vz*e,i.rotation.x+=r.vrx*e,i.rotation.y+=r.vry*e,i.rotation.z+=r.vrz*e,t)for(r.trail+=e*this.forDevice(FW),r.trail>=1&&this.trailPoint.copy(r.cut).applyQuaternion(i.quaternion).add(i.position);r.trail>=1;)--r.trail,this.spawnDroplet(this.trailPoint.x+(this.ambientRandom()-.5)*.03,this.trailPoint.y+(this.ambientRandom()-.5)*.03,this.trailPoint.z+(this.ambientRandom()-.5)*.03,r.vx*.35+(this.ambientRandom()-.5)*.9,r.vy*.35+(this.ambientRandom()-.5)*.9,r.vz*.35+(this.ambientRandom()-.5)*.9,Bv(this.ambientRandom()),.9,!0);let s=Math.max(.5,fv-r.reach-KW),c=WK(i.position.x,r.vx,a,s),l=WK(i.position.z,r.vz,o,s);if(i.position.x=c.position,i.position.z=l.position,r.vx=c.velocity,r.vz=l.velocity,i.position.y<=0+r.radius){if(i.position.y=0+r.radius,!r.stained&&t){r.stained=!0;let e=Math.min(2.4,r.radius/WW+.3);this.placeDecal(i.position.x,i.position.z,1.3*e,.9*e,i.rotation.z,.85,4392199)}if(r.bounces<2&&Math.abs(r.vy)>.42)r.bounces+=1,r.vy=Math.abs(r.vy)*.32,r.vx*=.62,r.vz*=.62,r.vrx*=.65,r.vry*=.65,r.vrz*=.65;else{r.moving=!1,r.trail=0;let e=this.settleAxis.copy(r.thin).applyQuaternion(i.quaternion);r.settleFrom.copy(i.quaternion),r.settleTo.setFromUnitVectors(e,this.settleUp.set(0,e.y>=0?1:-1,0)).multiply(i.quaternion),r.settleFromY=i.position.y,r.settleToY=0+r.thickness,r.settle=0}}Number.isFinite(i.position.x+i.position.y+i.position.z+i.quaternion.x+i.quaternion.y+i.quaternion.z+i.quaternion.w)||(i.position.set(0,0+r.thickness,0),i.quaternion.identity(),r.moving=!1,r.settle=-1)}}attachSpine(e){let t=this.spines[Math.trunc(e)];t!==void 0&&this.bloodLevel===`full`&&(t.wanted=!0)}spineOut(e){return this.spines[Math.trunc(e)]?.out===!0}spineTail(e,t){let n=this.spines[Math.trunc(e)];return n===void 0||!n.out?!1:(n.rope.node(bK,t),!0)}updateSpines(e){for(let t=0;t=1;){--n.trail;let e=a.node(Math.floor(this.ambientRandom()*12),this.gibPosition);this.spawnDroplet(e.x,e.y,e.z,(this.ambientRandom()-.5)*.8,(this.ambientRandom()-.5)*.8,(this.ambientRandom()-.5)*.8,Bv(this.ambientRandom()),.8,!0)}}}}writeSpine(e){let t=this.spines[e].rope;for(let n=0;n1e-6?i.multiplyScalar(1/a):i.set(0,1,0)),r.add(this.partVertex).multiplyScalar(.5);let o=(.9+.5*Math.min(1,n/6))*(n>=9?.55+.25*(10-n):1);this.gibMatrix.compose(r,this.gibQuaternion,this.gibScale.set(o,this.spineStretch,o)),this.spineMesh.setMatrixAt(e*bK+n,this.gibMatrix)}this.spineMesh.instanceMatrix.needsUpdate=!0;for(let n=0;ne.out);this.spineMesh.visible=n,this.shredMesh.visible=n}spillGuts(e,t,n,r=18){let i=this.guts[Math.trunc(e)];if(i===void 0||e<0||this.bloodLevel!==`full`)return;let a=Number.isSafeInteger(n)?n:0;if(i.active&&i.eventId===a)return;let o=R.clamp(Math.round($(r,18)),2,wK),s=Math.max(2,Math.min(o,this.lowTier?Math.ceil(this.budget.gutLinks/2):this.budget.gutLinks));i.active=!0,i.eventId=a,i.sinceDrop=-1,i.drip=0,i.smeared.fill(NaN),i.anchor.set($(t.x),$(t.y,.9),$(t.z)),i.rope.spill(s,o*vW/s,i.anchor,s/TK,BG(a*28657+Math.trunc(e)*5+1)),i.tube.write(i.rope),i.mesh.visible=!0,i.moved=!1}anchorGuts(e,t,n){let r=this.guts[Math.trunc(e)];r===void 0||!r.active||r.sinceDrop>=0||(r.anchor.set($(t.x),$(t.y,.9),$(t.z)),n.lengthSq()>1e-8&&Number.isFinite(n.lengthSq())&&r.away.copy(n).normalize())}gutsOut(e){return this.guts[Math.trunc(e)]?.active===!0}dropGuts(e){let t=this.guts[Math.trunc(e)];t===void 0||!t.active||t.sinceDrop>=0||(t.sinceDrop=0,t.rope.release())}clearGuts(e){for(let[t,n]of this.guts.entries())(e===void 0||t===Math.trunc(e))&&(n.active=!1,n.eventId=null,n.moved=!1,n.rope.clear(),n.mesh.visible=!1)}gutsLength(e){let t=this.guts[Math.trunc(e)];return t===void 0||!t.active?0:t.rope.length}gutsPoint(e,t,n){let r=this.guts[Math.trunc(e)];return r===void 0||!r.active?!1:(r.rope.node(Math.round(R.clamp(t,0,1)*(r.rope.nodes-1)),n),!0)}updateGuts(e){for(let t=0;t=0&&n.sinceDrop=EK&&i)){let e=r.node(r.nodes>>1,this.gibPosition);this.canvasBlood.pool(e.x,e.z,.26,.95,t+3),this.puddle(e.x+.12,e.z+.05,.11,`bile`,t+5)}if(r.step(e,n.anchor,0,Math.max(2.4383999999999997,Math.abs(n.anchor.x),Math.abs(n.anchor.z)),n.away)&&(n.moved=!0,i)){for(let e=0;e0+.024*1.5){n.smeared[e*2]=NaN;continue}let i=n.smeared[e*2],a=n.smeared[e*2+1],o=Math.hypot(t.x-i,t.z-a);o=0))for(n.drip+=e*this.forDevice(AK);n.drip>=1;){--n.drip;let e=r.node(Math.floor(this.ambientRandom()*r.nodes),this.gibPosition),t=this.ambientRandom()<.8?`blood`:`bile`;this.spawnDroplet(e.x,e.y-_W,e.z,(this.ambientRandom()-.5)*.3,-.1,(this.ambientRandom()-.5)*.3,Hv(t,this.ambientRandom()),.9,!0,.004+this.ambientRandom()*.005,t)}}}}ejectHeart(e,t,n,r=-1){if(this.bloodLevel!==`full`)return;let i=this.heart,a=BG((Number.isSafeInteger(n)?n:0)*611953+19),o=zK(t),s=2+a()*1.2,c=(a()-.5)*1.2;i.active=!0,i.moving=!0,i.owner=Math.trunc(r),i.age=0,i.beats=0,i.bounces=0,i.settle=-1,i.pool=0,i.trail=0,i.vx=s*o.x-c*o.z,i.vy=1.8+a()*1.2,i.vz=s*o.z+c*o.x,i.vrx=(a()-.5)*14,i.vry=(a()-.5)*14,i.vrz=(a()-.5)*14,i.settleTo.setFromAxisAngle(BK,a()*Math.PI*2).multiply(MK),this.heartMesh.position.set($(e.x),$(e.y,1.2),$(e.z)),this.heartMesh.quaternion.identity(),this.heartMesh.scale.setScalar(jK),this.heartMesh.visible=!0}get heartOut(){return this.heart.active}get heartBeating(){return this.heart.active&&this.heart.age<14}heartPosition(e){return this.heart.active?(e.copy(this.heartMesh.position),!0):!1}updateHeart(e){let t=this.heart;if(!t.active)return;let n=this.heartMesh,r=this.bloodLevel===`full`;if(t.moving){let i=n.position.x,a=n.position.z;t.vy-=6.4*e,n.position.x+=t.vx*e,n.position.y+=t.vy*e,n.position.z+=t.vz*e,n.rotation.x+=t.vrx*e,n.rotation.y+=t.vry*e,n.rotation.z+=t.vrz*e;let o=fv-this.heartRadius-KW,s=WK(n.position.x,t.vx,i,o),c=WK(n.position.z,t.vz,a,o);if(n.position.x=s.position,n.position.z=c.position,t.vx=s.velocity,t.vz=c.velocity,r)for(t.trail+=e*this.forDevice(FW/2);t.trail>=1;)--t.trail,this.spawnDroplet(n.position.x,n.position.y,n.position.z,t.vx*.3+(this.ambientRandom()-.5)*.8,t.vy*.3+(this.ambientRandom()-.5)*.8,t.vz*.3+(this.ambientRandom()-.5)*.8,Bv(this.ambientRandom()),.8,!0);n.position.y<=0+this.heartRadius&&(n.position.y=0+this.heartRadius,t.bounces===0&&r&&this.placeDecal(n.position.x,n.position.z,.9,.7,n.rotation.z,.8,4392199),t.bounces<2&&Math.abs(t.vy)>.4?(t.bounces+=1,t.vy=Math.abs(t.vy)*.3,t.vx*=.6,t.vz*=.6,t.vrx*=.6,t.vry*=.6,t.vrz*=.6):(t.moving=!1,t.settle=0,t.settleFrom.copy(n.quaternion),t.settleFromY=n.position.y)),Number.isFinite(n.position.x+n.position.y+n.position.z)||(n.position.set(0,0+this.heartRest,0),n.quaternion.copy(t.settleTo),t.moving=!1,t.settle=1)}else if(t.settle<1){t.settle=Math.min(1,t.settle+e/GW);let r=t.settle*t.settle*(3-2*t.settle);n.quaternion.slerpQuaternions(t.settleFrom,t.settleTo,r),n.position.y=t.settleFromY+(0+this.heartRest-t.settleFromY)*r}if(t.age>=14)return;t.age+=e;let i=rW(t.age),a=nW(t.age),o=iW(a)*(.35+.65*i);if(n.scale.set(jK*(1-.17*o),jK*(1+.08*o),jK*(1-.17*o)),Math.floor(a)<=t.beats||(t.beats=Math.floor(a),!r))return;let s=this.trailPoint.copy($U.position).multiply(n.scale).applyQuaternion(n.quaternion).add(n.position),c=FG.copy($U.direction).applyQuaternion(n.quaternion);IG.set(Math.abs(c.y)<.9?0:1,+(Math.abs(c.y)<.9),0).cross(c).normalize(),LG.crossVectors(c,IG);for(let e=this.forDevice(Math.round(8+NK*i));e>0;--e){let e=Math.sqrt(this.ambientRandom())*.2,t=this.ambientRandom()*Math.PI*2;RG.copy(c).multiplyScalar(Math.cos(e)).addScaledVector(IG,Math.sin(e)*Math.cos(t)).addScaledVector(LG,Math.sin(e)*Math.sin(t)).multiplyScalar((.7+2.9*i)*(.5+.55*this.ambientRandom())),this.spawnDroplet(s.x,s.y,s.z,RG.x,RG.y,RG.z,Bv(this.ambientRandom()),1.1,!0,.004+this.ambientRandom()**2*.011)}t.moving||(t.pool=Math.min(.3,t.pool+.022),this.canvasBlood.pool(n.position.x,n.position.z,t.pool,.95,t.beats))}setCorpse(e,t){let n=Math.trunc(e),r=this.corpses[n];r!==void 0&&(t===null||this.bloodLevel!==`full`?this.clearCorpse(n):(r.active||(r.active=!0,r.age=0,r.puddle=0),r.position.set($(t.x),Math.max(0,$(t.y,0)),$(t.z))))}fliesOver(e){let t=this.corpses[Math.trunc(e)];return t===void 0||!t.active?0:this.fliesArrived(t.age)}fliesArrived(e){let t=this.lowTier?this.budget.flies>>1:this.budget.flies;return Math.floor(R.clamp((e-PK)/FK,0,1)*t)}updateCorpses(e){for(let t=0;t=n.puddle+.04&&(n.puddle=r,this.puddle(n.position.x,n.position.z,r,`urine`,t*11+Math.round(r*25)));let i=this.fliesArrived(n.age);if(i===0)continue;let a=this.budget.flies,o=FK/(this.lowTier?a>>1:a);for(let e=0;e=i)this.gibMatrix.makeScale(0,0,0).setPosition(0,-50,0);else{let t=Math.min(1,(n.age-PK-e*o)/IK),i=OW(this.flies,r,n.age,this.gibPosition),a=1+(1-t)*2.5;this.gibMatrix.makeTranslation(n.position.x+i.x*a,Math.max(.03,n.position.y+i.y+(1-t)*(1-t)*1.6),n.position.z+i.z*a)}this.flyMesh.setMatrixAt(r,this.gibMatrix)}this.flyMesh.visible=!0,this.flyMesh.instanceMatrix.needsUpdate=!0}}clearCorpse(e){let t=this.corpses[e];if(t.active){t.active=!1,this.gibMatrix.makeScale(0,0,0).setPosition(0,-50,0);for(let t=0;te.active)}}dispose(){this.scene.remove(this.dropletMesh),this.scene.remove(this.mistPoints),this.scene.remove(this.gibMesh),this.scene.remove(this.shardMesh),this.scene.remove(this.eyeballMesh);for(let e of this.viscera)this.scene.remove(e.mesh),e.mesh.dispose(),e.geometry.dispose();this.visceraMaterial.dispose();for(let e of this.parts)e.key!==null&&this.removePart(e.key),this.scene.remove(e.group);this.limbMaterial.dispose(),this.limbMap.dispose(),this.trunkMaterial.dispose(),this.trunkMap.dispose(),this.scene.remove(this.spineMesh,this.shredMesh,this.heartMesh,this.flyMesh),this.spineMesh.dispose(),this.shredMesh.dispose(),this.shredGeometry.dispose();for(let e of this.guts)this.scene.remove(e.mesh),e.tube.dispose();this.heartGeometry.dispose(),this.flyMesh.dispose(),this.flyGeometry.dispose(),this.flyMaterial.dispose(),this.dropletMesh.dispose(),this.dropletGeometry.dispose(),this.dropletMaterial.dispose(),this.canvasBlood.dispose();for(let e of[...this.heads,...this.hands])e.baked?.dispose(),e.bakedFlesh?.dispose();for(let e of[...this.stumps,...this.handStumps])e.flesh.dispose();this.mistGeometry.dispose(),this.mistMaterial.dispose(),this.mistMap.dispose(),this.gibMesh.dispose(),this.gibGeometry.dispose(),this.gibMaterial.dispose(),this.shardMesh.dispose(),this.eyeballMesh.dispose(),this.shardGeometry.dispose(),this.shardMaterial.dispose(),this.jawMaterial.dispose(),this.jawMap.dispose(),this.headGeometry.dispose();for(let e of this.headMaterials)e.dispose();this.handGeometry.dispose();for(let e of this.handMaterials)e.dispose();this.stumpGeometry.dispose(),this.wristStumpGeometry.dispose(),this.shieldGeometry.dispose();for(let e of this.shieldMaterials)e.dispose();for(let e of this.shieldMeshes)this.scene.remove(e);this.eyeGeometry.dispose(),this.eyeMap.dispose(),this.eyeMaterial.dispose(),this.nerveGeometry.dispose(),this.nerveMaterial.dispose();for(let e of[...this.eyeMeshes,...this.nerveMeshes])this.scene.remove(e);if(this.stumpMaterial.dispose(),this.stumpMap.dispose(),this.wristMaterial.dispose(),this.wristMap.dispose(),this.bakedStandIns!==null){this.bakedStandIns.map.dispose();for(let e of this.bakedStandIns.materials)e.dispose();for(let e of this.bakedStandIns.instanced)e.dispose();this.bakedStandIns=null}for(let e of this.heads)this.scene.remove(e.mesh);for(let e of this.hands)this.scene.remove(e.mesh);for(let e of[...this.stumps,...this.handStumps])this.scene.remove(e.mesh)}},iq={maximum:1,minimum:.55,slowMs:24,fastMs:17.5,windowMs:1e3,step:.15},aq=10,oq=10,sq=160,cq=3,lq=3,uq=class{options;scale;elapsed=0;frames=0;fastWindows=0;holdWindows=0;fruitlessAttempts=0;pending=null;raised=null;raiseHoldWindows=0;failedRaises=0;constructor(e=iq){this.options=e,this.scale=e.maximum}record(e){if(!(e>0)||e>1e3||(this.elapsed+=e,this.frames+=1,this.elapsede.before*.9)return this.scale=e.previous,this.holdWindows=Math.min(sq,aq*2**this.fruitlessAttempts),this.fruitlessAttempts+=1,!0;this.fruitlessAttempts=0}if(this.raised!==null){let e=this.raised;if(t>this.options.slowMs)return this.raised=null,this.scale=e.previous,this.fastWindows=0,this.raiseHoldWindows=Math.min(sq,oq*2**this.failedRaises),this.failedRaises+=1,!0;e.windows+=1,e.windows>=lq&&(this.raised=null,this.failedRaises=0)}if(t>this.options.slowMs){if(this.fastWindows=0,this.holdWindows>0)return--this.holdWindows,!1;if(this.scale<=this.options.minimum)return!1;let e=this.scale;return this.scale=Math.max(this.options.minimum,this.scale-this.options.step),this.pending={before:t,previous:e},!0}return t0?(--this.raiseHoldWindows,!1):this.fastWindows>=cq&&this.scale0&&e.poise===0)return 1;if(e.is_downed)return fq;let n=e.stunned_ticksthis.value?7:.9;return this.value+=(e-this.value)*(1-Math.exp(-n*Math.max(0,t))),e===0&&this.value<.003&&(this.value=0),this.value}},hq=.4,gq=.5,_q={before:24,after:24,speed:.5};function vq(e,t,n=30,r=hq,i=42,a=33){let o=t.tick-i,s=t.tick+a,c=e.filter(e=>e.tick>=o-1&&e.tick<=s+1),l=c.at(-1),u=l!==void 0&&l.result!==null&&l.tick({...l,tick:l.tick+t+1,events:[]}))]:c,d=u[0],f=u.at(-1);if(d===void 0||f===void 0||u.length<8||d.tick>t.tick-12||f.tick=1&&this.lastHeat<1&&!r&&(this.flare=1),this.lastHeat=t,this.flare=Math.max(0,this.flare-n/Cq);let a=this.mesh.material;if(a.opacity=Math.min(1,t*.8+this.flare*.6),this.mesh.visible=a.opacity>.01,!this.mesh.visible)return;this.mesh.position.copy(e),this.mesh.quaternion.copy(i.quaternion);let o=xq*(.55+.45*t)*(1+this.flare*Sq);this.mesh.scale.set(o,o,1)}get active(){return this.mesh.visible}standIn(){return new H(this.mesh.geometry,this.mesh.material)}reset(){this.flare=0,this.lastHeat=0,this.mesh.material.opacity=0,this.mesh.visible=!1}dispose(){this.mesh.geometry.dispose(),this.mesh.material.dispose()}},jq=class{group=new fc;flash;ring;age=1/0;constructor(e){this.flash=kq(e,new V(1,.86,.62)),this.flash.material.depthTest=!1,this.ring=new H(new Dd(.42,.5,40),new Al({color:bq,blending:2,depthWrite:!1,transparent:!0,side:2})),this.flash.renderOrder=6,this.ring.renderOrder=6,this.group.add(this.flash,this.ring),this.group.visible=!1}fire(e){this.age=0,this.group.position.copy(e)}update(e,t){this.age+=e;let n=this.age/wq,r=this.age/Eq;if(this.group.visible=r<1,!this.group.visible)return;this.group.quaternion.copy(t.quaternion),this.flash.visible=n<1;let i=Tq*(.35+.65*Math.sqrt(Math.min(1,n)));this.flash.scale.set(i,i,1),this.flash.material.opacity=(1-Math.min(1,n))**2;let a=Dq*(.15+.85*(1-(1-r)**3));this.ring.scale.set(a,a,a),this.ring.material.opacity=.9*(1-r)}get active(){return this.group.visible}standIns(){return[new H(this.flash.geometry,this.flash.material),new H(this.ring.geometry,this.ring.material)]}reset(){this.age=1/0,this.group.visible=!1}dispose(){this.flash.geometry.dispose(),this.flash.material.dispose(),this.ring.geometry.dispose(),this.ring.material.dispose()}},Mq=10,Nq=.055,Pq=3.2,Fq=1.4,Iq=class{color;mesh;geometry;positions=new Float32Array(60);colors=new Float32Array(80);history=[];last=new B;hasLast=!1;tangent=new B;side=new B;toCamera=new B;shade=new V;strength=0;heat=0;constructor(e){this.color=e,this.geometry=new hl,this.geometry.setAttribute(`position`,new el(this.positions,3).setUsage(Do)),this.geometry.setAttribute(`color`,new el(this.colors,4).setUsage(Do));let t=[];for(let e=0;e<9;e+=1){let n=e*2;t.push(n,n+1,n+2,n+1,n+3,n+2)}this.geometry.setIndex(t);let n=new Al({vertexColors:!0,transparent:!0,blending:2,depthWrite:!1,side:2});this.mesh=new H(this.geometry,n),this.mesh.frustumCulled=!1,this.mesh.visible=!1,this.mesh.renderOrder=4}update(e,t,n,r,i=0){if(t<=0)return;let a=this.hasLast?e.distanceTo(this.last)/t:0;this.last.copy(e),this.hasLast=!0,this.heat=i>this.heat?i:this.heat+(i-this.heat)*Math.min(1,t*6);let o=Pq*(1-.55*this.heat),s=r&&a>o?Math.min(1,(a-o)/4+this.heat*.4):0;this.strength+=(s-this.strength)*Math.min(1,t*18);let c=this.history.length>=Mq?this.history.shift():new B;if(c.copy(e),this.history.push(c),this.strength<.02||this.history.length<3){this.mesh.visible=!1;return}let l=this.history.length,u=this.shade.copy(this.color).lerp(bq,this.heat),d=Nq*(1+Fq*this.heat);for(let e=0;e3*t}function Bq(e,t,n){let r=e.detail.endsWith(`:head`)||e.detail.endsWith(`:body`);return t===void 0||![`hit`,`counter_hit`].includes(e.kind)||!r||n===null||n.winner_id===null||n.winner_id!==e.actor_id?!1:n.finish_method===`flash_ko`||(n.finish_method===`ko`||n.finish_method===`tko`)&&t.is_downed}function Vq(e){for(let t of e.passes)t.dispose?.();e.dispose()}function Hq(e,t,n,r,i){e.setRenderTarget(t.readBuffer);let a=e.compileAsync(n,r,i);return e.setRenderTarget(null),a}var Uq=-4e-4,Wq=10,Gq=16;function Kq(e,t,n){let r=t?Gq:n;e.autoUpdate=!t,e.intensity=+!t,e.bias=t?Wq:Uq,e.mapSize.x!==r&&(e.mapSize.set(r,r),e.map?.dispose(),e.map=null,e.needsUpdate=!0)}function qq(e,t){let n=t.fighters.findIndex(t=>t.player_id===e.target_id),r=t.fighters.findIndex(t=>t.player_id===e.actor_id),i=e.kind===`block`||e.kind===`perfect_block`;return{recipientIndex:i?r:n,puncherIndex:i?n:r}}function Jq(e,t,n){if(e===void 0||t===void 0)return;let r=n.x(t.x)-n.x(e.x),i=n.z(t.y)-n.z(e.y),a=Math.hypot(r,i);return Number.isFinite(a)&&a>.001?{x:r/a,z:i/a}:void 0}var Yq=e=>e.kind===`hit`||e.kind===`counter_hit`,Xq=e=>e.kind===`block`||e.kind===`perfect_block`,Zq=480,Qq=.56,$q=1.8,eJ=1.7,tJ=1.2,nJ=1.6,rJ=30,iJ=6.5,aJ=.4,oJ=600,sJ=2.8,cJ=.6,lJ=[[1,0],[-1,0],[.75,-.66],[-.75,-.66],[.75,.66],[-.75,.66]],uJ=.15,dJ=.6,fJ=2.3,pJ=.5,mJ=3.42,hJ=2.2,gJ=.9,_J=`body`,vJ=`collapse`,yJ=.55,bJ=.5,xJ=.5,SJ=.28,CJ=104,wJ=260,TJ=.05,EJ=2.95,DJ=2.4,OJ=1.6,kJ=.98,AJ=500,jJ={uniforms:{tDiffuse:{value:null},uTime:{value:0},uVignette:{value:.32},uGrain:{value:.035},uRocked:{value:0}},vertexShader:` +`,LB=(e,t,n)=>{let r=Math.min(1,Math.max(0,(n-e)/(t-e)));return r*r*(3-2*r)};function RB(e,t){let n=[];for(let[r,i]of e.entries())for(let e=0;e0&&Math.abs(Math.atan2(s,c))<.3})}return n}function zB(e,t,n,r={rise:0,armLeft:0,armRight:0,sway:0}){let i=.2+.7*(1-e.keen),a=LB(i-.12,i+.12,n),o=Math.abs(Math.sin(t*(2.3+n*3.2)+e.phase*1.7))*(.02+.1*a),s=Math.sin(t*6.2+e.phase)*.32*a,c=AB+-2.35*a;return r.rise=a*jB+o,r.armLeft=c+s,r.armRight=c-s*.8,r.sway=Math.sin(t*1.6+e.phase)*(.04+n*.05),r}function BB(e){let t=Gg(e,!1);for(let t of e)t.dispose();if(t===null)throw Error(`crowd geometry could not be merged`);return t}function VB(){let e=new Ku(.16,.28,2,8);e.scale(1.35,1,.8),e.translate(0,.64,0);let t=new Ku(.078,.3,1,5);t.rotateZ(Math.PI/2),t.translate(0,.89,0);let n=new Ku(.11,.26,1,5);return n.rotateX(Math.PI/2),n.scale(1.7,1,1),n.translate(0,.4,.17),BB([e,t,n])}function HB(){let e=new kd(.105,10,6);e.rotateY(-Math.PI/2),e.scale(.92,1.12,1),e.translate(0,1.12,.01);let t=new Ju(.048,.056,.1,5,1,!0);t.translate(0,.99,0);let n=t.getAttribute(`uv`);for(let e=0;e{e.vertexShader=e.vertexShader.replace(`#include `,`#include +varying vec3 vCrowdLight;`).replace(`#include `,`#include \n${FB}`),e.fragmentShader=e.fragmentShader.replace(`#include `,`#include +varying vec3 vCrowdLight;`).replace(`#include `,`#include \n${IB}`)},e.customProgramCacheKey=()=>`hands-crowd`;let u=new Ud({color:724501,roughness:.96,metalness:0,side:2}),d=new mu(o[0],s,i),f=new mu(o[1],c,i),p=new mu(o[2],l,i),m=new mu(o[3],s,i),h=new mu(o[3],s,i),g=[d,f,p,m,h],_=[d,f,p];for(let e of g)e.instanceMatrix.setUsage(Oo),e.frustumCulled=!1;let v=new V;for(let t=0;t.12&&v.setHex(DB[Math.floor(e()*DB.length)]).multiplyScalar((.8+e()*.4)*n),p.setColorAt(t,v)}for(let e of g)e.instanceColor.needsUpdate=!0;let y=new H(o[4],u);y.name=`stands`,y.receiveShadow=!1,n.add(y,...g);let b=new B(0,1,0),x=new B,S=new hs,C=new B,w=new zs,T=new zs,E=new zs,D=new zs,O={rise:0,armLeft:0,armRight:0,sway:0},k=(e,t,n,r)=>{E.makeTranslation(n*kB,OB,0),D.makeRotationX(r),T.multiplyMatrices(w,E).multiply(D),e.setMatrixAt(t,T)},ee=0,A=!1,te=!1,j=!1,M=0,ne=0,re=r.flatMap((e,t)=>e.platform?[t]:[]),ie=new zs().makeScale(0,0,0),N=(e,t)=>{let n=r[e];if(j&&n.platform)for(let n of t?g:_)n.setMatrixAt(e,ie);else zB(n,M,ne,O),S.setFromAxisAngle(b,n.yaw+O.sway),w.compose(x.set(n.x,n.y+O.rise*n.scale,n.z),S,C.setScalar(n.scale)),d.setMatrixAt(e,w),f.setMatrixAt(e,w),p.setMatrixAt(e,w),t&&(k(m,e,1,O.armLeft),k(h,e,-1,O.armRight))},ae=(e,t,n=!1)=>{let r=n||te;te=!1;let a=r?1:A?4:2,o=Math.ceil(i/a),s=ee%a*o,c=Math.min(i,s+o);ee+=1,M=e,ne=t;let l=!A||r;for(let e=s;e{e!==A&&(A=e,m.visible=!e,h.visible=!e,e||(te=!0))},makeRoomForCamera:e=>{let t=PB(e.x,e.z,j?5.9:NB);if(t!==j){j=t;for(let e of re)N(e,!0);for(let e of g)e.instanceMatrix.clearUpdateRanges(),e.instanceMatrix.needsUpdate=!0}},dispose:()=>{for(let e of o)e.dispose();for(let e of[s,c,l,u])e.dispose();a.dispose();for(let e of g)e.dispose()}}}var JB=.3,YB=.012,XB=e=>()=>(e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296);function ZB(){let e=new pc;e.name=`arena`;let t=[],n=[],r=[],i=new Ud({color:`#05070c`,roughness:.95});n.push(i);let a=new qu(30,40);t.push(a);let o=new H(a,i);o.rotation.x=-Math.PI/2,o.position.y=-1,o.receiveShadow=!0,e.add(o);let s=XB(20260727),c=SB,l=qB(s);e.add(l.group);let u=document.createElement(`canvas`);u.width=1024,u.height=64;let d=u.getContext(`2d`);d!==null&&(d.fillStyle=`#070c1a`,d.fillRect(0,0,1024,64),d.fillStyle=`#13203f`,d.fillRect(0,0,1024,5),d.fillRect(0,59,1024,5),d.textBaseline=`middle`,d.font=`800 38px Inter, system-ui, sans-serif`,d.fillStyle=`#e9c46a`,d.fillText(`H A N D S`,28,33),d.fillStyle=`#c9d6f2`,d.font=`600 26px Inter, system-ui, sans-serif`,d.fillText(`CHAMPIONSHIP BOXING`,300,34),d.fillStyle=`#e9c46a`,d.font=`800 30px Inter, system-ui, sans-serif`,d.fillText(`FIGHT NIGHT`,700,34),d.fillStyle=`#b91c1c`,d.fillRect(948,22,22,22),d.fillStyle=`#1d4ed8`,d.fillRect(978,22,22,22));let f=new Vu(u);f.colorSpace=So,f.wrapS=Qi,f.repeat.set(-6,1),r.push(f);let p=new jl({map:f,side:1});n.push(p);let m=c[0].y+wB,h=new Ju(c[0].radius-CB-.03,c[0].radius-CB-.03,m- -1-.04,72,1,!0);t.push(h);let g=new H(h,p);g.name=`boards`,g.position.y=(m+-1)/2+.02,e.add(g);let _=new Float32Array(270);for(let e=0;e<90;e+=1){let t=c[Math.floor(s()*c.length)],n=s()*Math.PI*2;_[e*3]=Math.sin(n)*t.radius,_[e*3+1]=t.y+.9+s()*.5,_[e*3+2]=Math.cos(n)*t.radius}let v=new gl;v.setAttribute(`position`,new tl(_,3)),t.push(v);let y=new Nu({color:13623551,size:.09,transparent:!0,opacity:0,blending:2,depthWrite:!1});n.push(y);let b=new Ru(v,y);e.add(b);let x=new Ud({color:`#11151d`,roughness:.6,metalness:.4});n.push(x);let S=new Ud({color:`#1a2230`,emissive:`#dfe9ff`,emissiveIntensity:1.1,roughness:.4});n.push(S);let C=new jl({color:`#a8c4ff`,transparent:!0,opacity:.006,blending:2,depthWrite:!1,side:2});n.push(C);let w=new Gu(9,.18,.18);t.push(w);let T=new Ju(.09,.14,.22,10);t.push(T);let E=new Yu(1.7,6.6,20,1,!0);t.push(E);for(let t=0;t<2;t+=1){let n=new H(w,x);n.position.set(0,7.6,t===0?-1.6:1.6),e.add(n);for(let t=0;t<5;t+=1){let r=-3.6+t*1.8,i=new H(T,S);i.position.set(r,7.45,n.position.z),e.add(i);let a=new H(E,C);a.position.set(r,4.1,n.position.z*.4),e.add(a)}}let D=new Ud({color:`#070a12`,roughness:1});n.push(D);let O=new Ju(24,24,14,32,1,!0);t.push(O);let k=new H(O,D);k.position.y=5,k.material.side=1,e.add(k);let ee=document.createElement(`canvas`);ee.width=512,ee.height=256;let A=ee.getContext(`2d`);A!==null&&(A.fillStyle=`#04060c`,A.fillRect(0,0,512,256),A.strokeStyle=`#f1cc72`,A.lineWidth=6,A.strokeRect(14,14,484,228),A.fillStyle=`#f1cc72`,A.font=`800 84px Inter, system-ui, sans-serif`,A.textAlign=`center`,A.textBaseline=`middle`,A.fillText(`H A N D S`,256,104),A.fillStyle=`#8fa3c8`,A.font=`600 30px Inter, system-ui, sans-serif`,A.fillText(`CHAMPIONSHIP BOXING`,256,186));let te=new Vu(ee);te.colorSpace=So;let j=new jl({map:te});n.push(j);let M=new Gu(4.6,2.3,.3);t.push(M);let ne=new H(M,j);ne.position.set(0,6.4,-14.5),e.add(ne);let re=new H(M,x);re.position.set(0,6.4,-14.65),e.add(re),r.push(te);let ie=0,N=0,ae=0,oe=!1;return{group:e,update:(e,t,n)=>{ae=Math.max(0,ae-t*JB),n&&!oe&&l.update(0,0,!0),oe=n,n||(l.update(e,ae),f.offset.x=e*YB%1,ie-=t,ie<=0&&(N=.09+Math.random()*.08,ie=(.25+Math.random()*1.6)/(1+ae*4)),N=Math.max(0,N-t),y.opacity=N>0?.85:0)},excite:e=>{ae=Math.min(1,ae+Math.max(0,e))},excitement:()=>ae,setLowTier:l.setLowTier,makeRoomForCamera:l.makeRoomForCamera,dispose:()=>{for(let e of t)e.dispose();for(let e of n)e.dispose();for(let e of r)e.dispose();l.dispose()}}}var QB=2.05,$B=5.5,eV=1.05,tV=1.78,nV=3.75,rV=.85,iV=.45,aV=1.18,oV=2.5,sV=5.5;function cV(e,t,n){return e<2.5||t<3?null:(n+Math.floor((e-oV)/sV))%2}function lV(e){return Math.max(0,e-oV)%sV}var uV=.95,dV=2.6,fV=-25;function pV(e,t,n,r,i){let a=e===0?-1:1,o=r*Math.PI/180,s=-a*Math.SQRT1_2,c=a*Math.SQRT1_2,l=s*Math.cos(o)+c*Math.sin(o),u=-s*Math.sin(o)+c*Math.cos(o);return i.set(a*t+l*n,0,-a*t+u*n)}function mV(e,t,n,r,i){pV(e,t,dV,fV+Math.min(1,n/sV)*5,r).setY(1.45),pV(e,t,.62,27,i).setY(1.05)}var hV={top:2.42,bottom:.95,width:2.4};function gV(e,t,n,r=.09){let i=Math.max(.2,1-n-r),a=Math.max((hV.top-hV.bottom)/i,hV.width/Math.max(.1,e)),o=(hV.top+hV.bottom)/2;return{distance:a/(2*Math.tan(R.degToRad(t)/2)),height:o-(.5-(r+i/2))*a}}var _V=class{current=new B(0,QB,$B);look=new B(0,eV,0);swayPhase=0;update(e,t,n,r,i,a,o,s,c=!1,l=null){this.swayPhase+=e;let u=a&&l!==null?rV:0,d=(n.x+r.x)/2+((l?.x??0)-(n.x+r.x)/2)*u,f=(n.z+r.z)/2+((l?.z??0)-(n.z+r.z)/2)*u,p=R.clamp(d,-1.4,1.4),m=R.clamp(f,-1.1,1.1),h=c?R.clamp(nV+i*.45-(a?.6:0),3.3,5.6):R.clamp($B+i*.6-(a?.9:0),4.6,8.4),g=(c?tV:QB)+i*.08-(a?.45:0),_=s?0:Math.sin(this.swayPhase*.21)*.35,v=s?0:Math.sin(this.swayPhase*.13)*.3,y=p*.32+_,b=h+m*.2,x=g+v*.2;if(this.current.x+=(y-this.current.x)*(1-Math.exp(-2.6*e)),this.current.y+=(x-this.current.y)*(1-Math.exp(-2.6*e)),this.current.z+=(b-this.current.z)*(1-Math.exp(-2.6*e)),this.look.x+=(p-this.look.x)*(1-Math.exp(-3.2*e)),this.look.y+=((a?u>0?iV:.7:c?aV:eV)-this.look.y)*(1-Math.exp(-3.2*e)),this.look.z+=(m*.6-this.look.z)*(1-Math.exp(-3.2*e)),!s&&o>5e-4){let e=t*61;this.current.x+=Math.sin(e*1.31)*o,this.current.y+=Math.cos(e*1.97)*o*.6,this.look.x+=Math.sin(e*1.53)*o*.5,this.look.y+=Math.cos(e*2.11)*o*.35}return{position:this.current,lookAt:this.look}}},vV=2.45,yV=2.25,bV=1.35,xV=3.5,SV=1.25,CV=.45;function wV(e,t,n,r,i,a,o=31){let s=R.degToRad(o),c=Math.cos(s)*vV,l=Math.sin(s)*vV,u=-r,d=n,f=-n*c+u*l,p=-r*c+d*l,m=(e,t)=>Math.abs(t)<1e-9?1:R.clamp((Math.sign(t)*xV-e)/t,0,1),h=Math.min(m(e.x,f),m(e.z,p));i.set(R.clamp(e.x+f*h,-3.5,xV),yV,R.clamp(e.z+p*h,-3.5,xV)),a.set(t.x,bV,t.z)}var TV=class{angle=Math.PI;closeness=0;initialised=!1;target=new B;position=new B;look=new B;aim=new B;get forwardX(){return Math.sin(this.angle)}get forwardZ(){return Math.cos(this.angle)}reset(){this.initialised=!1}update(e,t,n,r,i,a,o=16/9){let s=r.x-n.x,c=r.z-n.z,l=Math.hypot(s,c),u=l>.05?Math.atan2(s,c):this.angle,d=R.clamp((1.3-l)/.8,0,1);if(!this.initialised)this.angle=u,this.closeness=d;else{let t=Math.atan2(Math.sin(u-this.angle),Math.cos(u-this.angle));this.angle+=t*(1-Math.exp(-4.5*e)),this.closeness+=(d-this.closeness)*(1-Math.exp(-3*e))}let f=R.clamp(o,CV,1);if(wV(n,r,this.forwardX,this.forwardZ,this.target,this.aim,R.lerp(31,60,this.closeness)*f),!this.initialised)this.position.copy(this.target),this.look.copy(this.aim),this.initialised=!0;else{let t=1-Math.exp(-10*e);this.position.lerp(this.target,t),this.look.lerp(this.aim,t)}let p={position:this.position,lookAt:this.look,tight:!0};if(a||i<=5e-4)return p;let m=t*61;return this.target.set(this.position.x+Math.sin(m*1.31)*i,this.position.y+Math.cos(m*1.97)*i*.6,this.position.z),this.aim.set(this.look.x+Math.sin(m*1.53)*i*.5,this.look.y+Math.cos(m*2.11)*i*.35,this.look.z),{position:this.target,lookAt:this.aim,tight:!0}}},EV=54,DV=136,OV=110,kV=168,AV=400,jV=74,MV=72,NV={right:220,wideTop:64,compactTop:120,height:34},PV=200,FV={reach:192,bottom:80},IV=`rgba(3,6,12,0.86)`,LV=`rgb(4,7,13)`,RV={play:`#f6d57a`,colour:`#9ec7ff`,announcer:`#f6d57a`},zV=[`#4f86d9`,`#d9483c`],BV=`Inter, system-ui, sans-serif`;function VV(e){let{width:t,height:n}=e,r=t<640,i=n<480,a=i?.78:r?.85:1,o=Math.min(680,t-24),s=e.resultTop,c=s===null&&e.touch&&e.phase!==`complete`,l=Hr(t,n,c);if(c&&e.paused===!0&&e.phase===`countdown`)return null;if(s===null&&e.phase===`countdown`){let e=l.x+l.width/2,r=t-(c&&t>n?Br(t,n,l.y+l.height):12);return{x:e,y:l.y,maxWidth:Math.min(o,2*Math.min(e-12,r-e)),anchor:`top`,scale:a,cover:{width:l.width,height:l.height}}}let u=t-384;if(s===null&&!e.touch&&!i&&u>=AV){let r=n-(e.hint?kV:OV),i=e.cornerPanelTop===void 0||e.cornerPanelTop===null?r:Math.min(r,e.cornerPanelTop-8);if(i-jV*a>=n*.45)return{x:t/2,y:i,maxWidth:Math.min(o,u),anchor:`bottom`,scale:a,cover:null}}if(s===null&&e.viewerDown)return null;let d=s===null&&r?DV:EV;s===null&&(e.phase===`rest`||e.phase===`foul_recovery`||c&&e.paused===!0?d=Math.max(d,l.y+l.height+8):e.phase===`knockdown`?d=Math.max(d,pi(n,r)+MV):e.phase===`finish`&&(d=Math.max(d,Ci(t,n,c).bottom+8+(c?0:59))),e.replay&&t/2-o/2f)return null;let p=c&&e.lag===!0&&!r&&!e.replay&&dMath.round(8*e)+Math.round(10*e)+Math.round(4*e)+2*Math.round(Math.round(17*e)*1.3)+Math.round(5*e);function UV(e,t,n,r){let i=r?1:t.opacity;if(i<=.01)return;let a=r||n.cover!==null?0:t.entering*8*(n.anchor===`bottom`?1:-1);e.save(),e.globalAlpha=i,e.textBaseline=`alphabetic`;let o=i*i;t.line.card===null?KV(e,t.line,n,a,o):JV(e,t.line.card,n,a,o),e.restore()}function WV(e,t,n){if(e.measureText(t).width<=n)return t;let r=t;for(;r.length>1&&e.measureText(`${r}…`).width>n;)r=r.slice(0,-1);return`${r}…`}function GV(e,t){let n=e.length/2,r=null,i=1/0;for(let a=e.indexOf(` `);a>=0;a=e.indexOf(` `,a+1)){let o=e.slice(0,a),s=e.slice(a+1),c=Math.abs(a-n);t(o)&&t(s)&&c0?[e.slice(0,a),e.slice(a+1)]:[e,``]}function KV(e,t,n,r,i){let a=n.scale,o=Math.round(14*a),s=Math.round(10*a),c=n.maxWidth-o*2-4,l=(t,n)=>(e.font=`700 ${n}px ${BV}`,e.measureText(t).width),u=Zn(e=>l(t.text,e),c,Math.round(17*a),Math.round(13*a)),d=l(t.text,u)<=c?[t.text]:GV(t.text,e=>l(e,u)<=c).filter(e=>e.length>0),f=Math.max(...d.map(e=>Math.min(c,l(e,u)))),p=FR[t.speaker];e.font=`800 ${s}px ${BV}`;let m=e.measureText(p).width,h=Math.min(n.maxWidth,Math.max(f,m)+o*2+4),g=Math.round(u*1.3),_=Math.round(8*a)+s,v=_+Math.round(4*a)+d.length*g+Math.round(5*a),y=(n.anchor===`bottom`?n.y-v:n.y)+r,b=n.x-h/2,x=RV[t.speaker];e.fillStyle=IV,e.fillRect(b,y,h,v),e.fillStyle=x,e.fillRect(b,y,4,v),e.globalAlpha=i,e.textAlign=`left`,e.font=`800 ${s}px ${BV}`,e.fillText(p,b+4+o,y+_),e.fillStyle=`#f6f7fb`,e.font=`700 ${u}px ${BV}`,d.forEach((t,n)=>e.fillText(WV(e,t,c),b+4+o,y+_+Math.round(4*a)+g*(n+1)-Math.round(u*.28)))}function qV(e,t,n){let r=Math.round(11*e),i=Math.round(28*e),a=Math.round(6*e),o={pad:Math.round(10*e),gap:Math.round(7*e)},s={pad:Math.max(4,Math.round(6*e)),gap:Math.max(3,Math.round(4*e))},c=t?Math.round(10*e):0,l=[{...o,detail:c},{...s,detail:c},{...s,detail:0}],u=(e,t)=>e.pad*2+r+e.gap+t+(e.detail===0?0:a+e.detail);for(let e of l)if(n===null||u(e,i)<=n)return{kicker:r,title:i,...e,height:u(e,i)};let d=l[2],f=Math.max(12,Math.min(i,(n??1/0)-u(d,0)));return{kicker:r,title:f,...d,height:u(d,f)}}function JV(e,t,n,r,i){let a=n.scale,o=Math.round(18*a),s=n.maxWidth-o*2,c=qV(a,t.detail.length>0,n.cover?.height??null),l=c.kicker,u=c.detail,d=(t,n,r)=>(e.font=`${n} ${r}px ${BV}`,e.measureText(t).width),f=Zn(e=>d(t.title,900,e),s,c.title,Math.min(c.title,Math.round(15*a))),p=Math.max(d(t.kicker,800,l),Math.min(s,d(t.title,900,f)),u===0?0:d(t.detail,700,u)),m=Math.min(n.maxWidth,Math.max(240*a,p+o*2,n.cover?.width??0)),h=c.pad+l+c.gap+f+(u===0?0:Math.round(6*a)+u)+c.pad,g=Math.max(h,n.cover?.height??0),_=(n.anchor===`bottom`?n.y-g:n.y)+r,v=n.x-m/2,y=t.corner===null?RV.announcer:zV[t.corner];e.fillStyle=n.cover===null?IV:LV,e.fillRect(v,_,m,g),e.fillStyle=y,e.fillRect(v,_,m,3),e.globalAlpha=i,e.textAlign=`center`;let b=_+(g-h)/2+c.pad+l;e.font=`800 ${l}px ${BV}`,e.fillText(WV(e,t.kicker,s),n.x,b),b+=c.gap+f,e.fillStyle=`#ffffff`,e.font=`900 ${f}px ${BV}`,e.fillText(WV(e,t.title,s),n.x,b-Math.round(f*.12)),u>0&&(b+=Math.round(6*a)+u,e.fillStyle=`#93a3bd`,e.font=`700 ${u}px ${BV}`,e.fillText(WV(e,t.detail,s),n.x,b))}var YV={broken_nose:[`nose`,.3],broken_jaw:[`mouth`,.25],jaw_torn:[`mouth`,.75],eye_left_out:[`eye_left`,.3],eye_right_out:[`eye_right`,.3],ear_left_torn:[`ear_left`,.3],ear_right_torn:[`ear_right`,.3],skull_fractured:[`skull`,.4],arm_left_broken:[`elbow_left`,.3],arm_right_broken:[`elbow_right`,.3],forearm_left_severed:[`elbow_left`,1],forearm_right_severed:[`elbow_right`,1],arm_left_torn:[`shoulder_left`,1],arm_right_torn:[`shoulder_right`,1],ribs_left_broken:[`ribs_left`,.15],ribs_right_broken:[`ribs_right`,.15],disemboweled:[`belly`,.6],knee_left_blown:[`knee_left`,.2],knee_right_blown:[`knee_right`,.2]},XV=new Map(et.map(e=>[e,[]]));for(let[e,[t,n]]of Object.entries(YV))XV.get(t).push([e,n]);var ZV=new Set([`nose`,`mouth`,`eye_left`,`eye_right`,`ear_left`,`ear_right`,`skull`]),QV=new Set([`waist`,`crotch`,`knee_left`,`knee_right`]),$V=1.5,eH=8,tH=.9,nH=18,rH=36,iH=.45,aH=.25,oH=.3,sH=.08,cH=.012,lH=[`ankleL`,`ankleR`],uH=[`toeL`,`toeR`],dH=.35,fH=.05,pH=.5,mH=.3,hH=.4,gH=2.2,_H=.12,vH=4e-4,yH=.4,bH=.6,xH=4,SH=1.1,CH=1/500,wH=.18,TH=.55,EH=.45,DH=.5,OH=.08,kH=[`gloveL`,`gloveR`],AH={bottom:80,top:108,half:17},jH=70,MH=2,NH=7,PH=.5,FH=.28,IH=[`left`,`right`],LH={left:`eye_left_out`,right:`eye_right_out`},RH={left:`eye_left`,right:`eye_right`},zH={left:[`forearm_left_severed`,`arm_left_torn`],right:[`forearm_right_severed`,`arm_right_torn`]},BH=[`head`,`arm_left`,`arm_right`,`leg_left`,`leg_right`,`torso`],VH={head:[`neck`,`neck`],jaw:[`mouth`,`head`],forearm_left:[`elbow_left`,`elbowL`],forearm_right:[`elbow_right`,`elbowR`],arm_left:[`shoulder_left`,`shoulderL`],arm_right:[`shoulder_right`,`shoulderR`],leg_left:[`knee_left`,`kneeL`],leg_right:[`knee_right`,`kneeR`],upper_body:[`waist`,`hips`],torso:[`chest`,`upperChest`]},HH=Object.keys(VH),UH={head:[`head`],jaw:[`head`],forearm_left:[`body`,`glove_left`],forearm_right:[`body`,`glove_right`],arm_left:[`body`,`glove_left`],arm_right:[`body`,`glove_right`],leg_left:[`body`,`shoes`],leg_right:[`body`,`shoes`],upper_body:[`head`,`body`,`glove_left`,`glove_right`],torso:[`body`,`pants`]},WH=new B(0,1,0),GH=new B(0,.12,.02),KH=class{effects;bake;bodies=[null,null];position=new B;axis=new B;scratch=new B;turn=new hs;matrix=new zs;skullOffset=new B;injuries=new Set;time=0;settings={blood:`full`,reducedMotion:!1};xray=new oA;constructor(e,t){this.effects=e,this.bake=t,e.scene.add(this.xray.root)}attach(e,t){this.bodies[e]?.mutilation.dispose(),this.xray.prepare(t.boxer);let n={graph:t,mutilation:new vk(t.boxer),shown:new Set,early:new Map,awaited:new Map,inflicted:new Set,fatalWounds:new Map,forced:new Set,fatalParts:[],burst:new Set,fatality:null,dead:null,gutsDropAt:null,gibbed:!1,vomitUntil:0,printed:[new B,new B],dragged:new B,sliding:!1,broke:null,spatter:0,lost:0,dripIn:0,dripped:0,diedAt:0,voided:!1};return this.bodies[e]=n,n.mutilation}get graphic(){return this.settings.blood===`full`&&!this.settings.reducedMotion}expect(e,t){let n=this.bodies[e];n!=null&&!n.inflicted.has(t)&&n.awaited.set(t,this.time+eH)}sync(e,t,n,r,i,a=!1){this.time=i,this.settings=n;let o=this.bodies[e];if(o==null)return;let s=this.graphic;!s&&(o.gibbed||o.fatalParts.length>0||o.fatalWounds.size>0||o.forced.size>0)&&this.unmaim(o,e);let c=this.injuries;c.clear();let l=!1;for(let e of t.injuries){let t=o.awaited.get(e);if(t!==void 0){if(i<=t){l=!0;continue}o.awaited.delete(e)}c.add(e),o.early.delete(e),o.inflicted.add(e)}for(let[e,t]of o.early)i>t?o.early.delete(e):c.add(e);for(let e of o.forced)c.add(e);if(l)for(let e of o.shown)c.add(e);o.shown.clear();for(let e of c)o.shown.add(e);for(let e of o.inflicted)o.shown.has(e)||o.inflicted.delete(e);let u=o.graph.boxer,d=R.clamp(1-t.blood_volume/rt,0,1);if(o.mutilation.apply(o.shown,s?`full`:n.blood===`off`?`off`:`reduced`),o.mutilation.setPallor(n.blood===`off`?0:d),o.graph.setInjuries(o.shown,s),o.graph.setFaint(o.dead===null?R.clamp((.6-t.blood_volume/rt)/.6,0,1):0),o.dead!==null&&!o.graph.isDead&&o.graph.die(o.dead),o.mutilation.update(r,i),this.xray.owner===e&&(s&&!o.gibbed?this.xray.update(r):this.xray.stop()),u.root.visible=!o.gibbed,o.gibbed)return;this.wear(o,e,d,r);let f=o.mutilation.isPartGone(`upper_body`),p=f||u.isDecapitated,m=p||u.isHeadBurst,h=1-.65*d,g=0;for(let t of et){let n=o.fatalWounds.get(t)??0,r=`blood`,c=XV.get(t);for(let e=0;e0&&o.mutilation.anchor(t,this.position,this.axis)&&this.effects.anchorWound(e,t,this.position,this.axis)}for(let t=0;t=o.gutsDropAt&&(o.gutsDropAt=null,this.effects.dropGuts(e)),this.effects.anchorGuts(e,this.position,this.axis)):this.effects.gutsOut(e)&&this.effects.clearGuts(e),i=aH&&this.track(o,Math.min(1,g)),o.dead===null||!o.mutilation.anchor(`waist`,this.position,this.axis))return;this.effects.setCorpse(e,s?this.position:null);let v=s&&this.position.ypH?o.dragged.copy(this.position):y>fH&&(this.effects.smear(o.dragged.x,o.dragged.z,this.position.x,this.position.z,mH),o.dragged.copy(this.position)),o.sliding=v}gibbed(e){return this.bodies[e]?.gibbed===!0}hasGlove(e,t){let n=this.bodies[e]?.shown;return n===void 0||!this.graphic||!(n.has(zH[t][0])||n.has(zH[t][1]))}wear(e,t,n,r){let i=e.graph.boxer,a=this.graphic,o=this.bodies[1-t]??null;e.lost=n;let s=o===null?0:o.lost*gH+o.shown.size*_H,c=a?Math.min(1,Math.max(e.spatter,s)):0;i.headInjury.setSpatter(c*.8),i.bodyInjury.setSpatter(c),i.setGloveBlood(Math.max(i.gloveBloodLevel,c)),i.setTrunksBlood(Math.max(i.trunksBloodLevel,c*.7));let l=this.settings.blood===`off`?1:bH+Math.min(SH,n*xH);if(i.headInjury.setRun(l),i.bodyInjury.setRun(l),this.settings.blood===`off`&&(i.headInjury.clearMarks(),i.bodyInjury.clearMarks()),!a||e.dead!==null||i.gloveBloodLevel0))return;e.dripIn=DH/i.gloveBloodLevel,e.dripped+=1;let u=e.dripped%2;this.hasGlove(t,IH[u])&&(i.rig.bones[kH[u]].getWorldPosition(this.position),this.position.y-=OH,this.effects.shed(this.position,t*4099+e.dripped))}land(e,t,n,r,i,a,o,s=0,c=1){let l=this.bodies[t]??null,u=this.bodies[e]??null;if(l!==null&&n!==null&&this.hasGlove(t,n)?l.graph.boxer.rig.bones[kH[n===`left`?0:1]].getWorldPosition(this.scratch):this.scratch.copy(o),this.bruise(e,this.scratch,r,i),this.graphic&&(a>0&&l!==null&&(l.spatter=Math.min(1,l.spatter+a*vH)),a>0&&u!==null&&(u.spatter=Math.min(1,u.spatter+a*vH*yH)),!(u===null||u.gibbed))){for(let t=0;tAH.top||Math.abs(t)>AH.half))continue;let i=(t-s.x)**2+(r-s.y)**2+(c.getZ(e)-s.z)**2;ia.mutilation.anchor(e,c,l);switch(t){case`broken_nose`:d(`nose`)&&s.sprayFluid(`blood`,c,r,140,n,1.1);break;case`broken_jaw`:d(`mouth`)&&(s.spawnTeeth(c,r,5,n),s.sprayFluid(`blood`,c,r,180,n));break;case`jaw_torn`:d(`mouth`)&&(this.fling(a,e,`jaw`,n,r,{radius:.05,speed:1.2,lift:.8}),s.spawnDebris(`jawbone`,c,r,1,n,1.2),s.spawnTeeth(c,r,9,n),s.sprayFluid(`blood`,c,r,420,n,1.2));break;case`eye_left_out`:case`eye_right_out`:d(`eye_${u}`)&&(s.gougeEye(e,c,l,r,n,u),s.sprayFluid(`blood`,c,r,120,n));break;case`ear_left_torn`:case`ear_right_torn`:d(`ear_${u}`)&&(s.spawnDebris(`ear`,c,r,1,n),s.sprayFluid(`blood`,c,r,130,n));break;case`face_left_flayed`:case`face_right_flayed`:d(`eye_${u}`)&&(s.spawnDebris(`skin`,c,r,3,n),s.sprayFluid(`blood`,c,r,260,n));break;case`skull_fractured`:d(`skull`)&&(s.spawnDebris(`shard`,c,r,7,n,1.2),s.spawnDebris(`brain`,c,r,8,n),s.sprayFluid(`blood`,c,r,300,n,1.3),s.sprayFluid(`brain`,c,r,90,n));break;case`shoulder_left_dislocated`:case`shoulder_right_dislocated`:break;case`arm_left_broken`:case`arm_right_broken`:d(`elbow_${u}`)&&(s.spawnDebris(`bone`,c,r,3,n),s.sprayFluid(`blood`,c,r,200,n));break;case`forearm_left_severed`:case`forearm_right_severed`:this.fling(a,e,`forearm_${u}`,n,r,{radius:.07,speed:1.1}),d(`elbow_${u}`)&&(s.spawnDebris(`bone`,c,r,2,n),s.spawnDebris(`flesh`,c,r,8,n),s.sprayFluid(`blood`,c,r,600,n,1.3));break;case`arm_left_torn`:case`arm_right_torn`:this.fling(a,e,`arm_${u}`,n,r,{radius:.08,speed:1,spin:.7}),d(`shoulder_${u}`)&&(s.spawnDebris(`flesh`,c,r,14,n),s.spawnDebris(`bone`,c,r,2,n),s.sprayFluid(`blood`,c,r,800,n,1.4));break;case`ribs_left_broken`:case`ribs_right_broken`:d(`ribs_${u}`)&&(s.spawnDebris(`bone`,c,r,2,n,.8),s.sprayFluid(`blood`,c,r,140,n));break;case`liver_ruptured`:this.vomit(e,n,1.6);break;case`disemboweled`:d(`belly`)&&(s.spillGuts(e,c,n,nH),s.spawnDebris(`organ`,c,r,3,n),s.spawnDebris(`gut`,c,r,4,n),s.spawnDebris(`fat`,c,r,4,n),s.sprayFluid(`blood`,c,r,650,n,1.2),s.sprayFluid(`bile`,c,r,110,n));break;case`knee_left_blown`:case`knee_right_blown`:d(`knee_${u}`)&&(s.spawnDebris(`bone`,c,r,2,n,.7),s.sprayFluid(`blood`,c,r,110,n))}return!0}rebreak(e,t){let n=this.bodies[e],r=n?.broke??null;return n==null||r===null||r.tick!==t||!this.graphic||n.gibbed?!1:(this.xray.start(e,n.graph.boxer,n.mutilation,r.site,r.x,r.z),!0)}drawBreak(e,t,n,r){if(this.xray.owner<0)return;let i=this.effects.mistPoints,a=i.visible,o=r.visible;i.visible=!1,r.visible=!1,this.xray.drawInset(e,t,n),i.visible=a,r.visible=o}holdXray(e,t){let n=this.bodies[e];n!=null&&this.xray.start(e,n.graph.boxer,n.mutilation,t,1,0,!0)}vomit(e,t,n=1.3){let r=this.bodies[e];r==null||r.gibbed||this.settings.reducedMotion||(r.graph.retch(n),this.settings.blood===`full`&&r.mutilation.anchor(`mouth`,this.position,this.axis)&&(r.vomitUntil=this.time+n,this.effects.gush(e,this.position,this.axis.addScaledVector(WH,-.4).normalize(),n,520,t,`bile`),this.effects.sprayFluid(`blood`,this.position,0,90,t,.6),this.effects.puddle(this.position.x+this.axis.x*hH,this.position.z+this.axis.z*hH,.22,`bile`,t)))}fatality(e,t,n,r){let i=this.bodies[e];if(i==null||i.fatality!==null||!this.graphic)return!1;i.fatality=t;let a=this.effects,o=this.position,s=this.axis,c=(t,i,s=1)=>a.spawnDebris(t,o,r,i,n,s,e),l=(e,t,i=1)=>a.sprayFluid(e,o,r,t,n,i);if(t===`eyes_out`){for(let t=0;ta||Math.hypot(this.position.x-s.x,this.position.z-s.z)t!==n&&e.mutilation.isPartGone(t)),d=[],f=new B;for(let e of UH[n]){let t=xO(c,e);if(t===null||!t.visible)continue;let r=t=>vO(n,e,t)&&!u.some(n=>vO(n,e,t)),i=t.geometry.getAttribute(`position`),a=t.geometry.getIndex(),o=0,s=0,p=new Uint8Array(i.count);if(a===null)p.fill(1);else for(let e=0;e0&&d.push(this.bake(c,e,t,l,this.turn,o===s?void 0:r))}return d.length>0&&this.effects.flingPart(qH(t,n),d,l,this.turn,i,r,{...a,part:n})}};function qH(e,t){return`${e}:${t}`}var JH=96,YH=4,XH=2.5,ZH=.45,QH=.032,$H=e=>()=>(e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296);function eU(e){let t=document.createElement(`canvas`);t.width=JH,t.height=JH;let n=t.getContext(`2d`);if(n===null)return t;let r=$H(e),i=JH/2,a=4+Math.floor(r()*3);for(let e=0;e.05)||!Number.isFinite(e)||!Number.isFinite(t))return;let i=$H((Number.isSafeInteger(r)?r:0)*40503+11),a=Math.min(24,Math.max(1,Math.round(n*12))),o=.7+.3*Math.min(3,n);for(let r=0;r=1.5?1.8:1),l=XH+i()*2.5;this.drops.push({x:Math.min(1,Math.max(0,a?i():e+(i()+i()-1)*s*1.6)),y:Math.min(1,Math.max(0,a?i():t+(i()+i()-1)*s)),radius:c,alpha:.6+i()*.35,life:l,maxLife:l,run:c>=QH?.02+i()*.04:0,ran:0,sprite:Math.floor(i()*YH),turn:i()*Math.PI*2})}this.drops.length>96&&this.drops.splice(0,this.drops.length-96)}update(e){let t=Number.isFinite(e)?Math.max(0,e):0;for(let e=this.drops.length-1;e>=0;--e){let n=this.drops[e];n.life-=t,n.life<=0?this.drops.splice(e,1):n.ran+=n.run*t*(n.life/n.maxLife)}}draw(e,t,n){if(this.drops.length!==0){this.sprites??=Array.from({length:YH},(e,t)=>eU(1374496523+t*7919)),e.save();for(let r of this.drops){let i=Math.min(1,r.life/(r.maxLife*ZH)),a=r.radius*n,o=r.x*t,s=(r.y+r.ran)*n;if(e.globalAlpha=r.alpha*i,r.ran>0){let t=r.y*n,i=e.createLinearGradient(0,t,0,s);i.addColorStop(0,`rgba(88,0,6,0)`),i.addColorStop(1,`rgba(88,0,6,0.6)`),e.fillStyle=i,e.beginPath(),e.moveTo(o-a*.06,t),e.lineTo(o+a*.06,t),e.lineTo(o+a*.28,s),e.lineTo(o-a*.28,s),e.closePath(),e.fill()}e.save(),e.translate(o,s),e.rotate(r.turn),e.drawImage(this.sprites[r.sprite],-a,-a,a*2,a*2),e.restore()}e.restore()}}clear(){this.drops.length=0}},nU=.026,rU=.038,iU=22,aU=[[.55,.85],[.55,.1],[.4,-.12],[-.4,-.12],[-.55,.05],[-.55,.6],[-.32,.62],[-.3,.16],[.3,.16],[.32,.85]],oU=.03;function sU(){let e=[],t=[],n=aU.length,r=new B,i=new B,a=new B;for(let t=0;t<=iU;t+=1){let n=t/iU*2-1;r.set(n*nU,0,rU*(1-n*n)-rU*.5),i.set(nU,0,-2*rU*n).normalize(),a.set(i.z,0,-i.x),a.dot(r.clone().setY(0).add(new B(0,0,rU*.5)))<0&&a.negate();for(let[t,n]of aU)e.push(r.x+a.x*t*.01,n*.01,r.z+a.z*t*.01)}for(let e=0;e=50:e===`hit`&&t>=65:!1}var lU=9.81,uU=.32,dU=4.5,fU=.04,pU=3;function mU(){return{out:!1,moving:!1,sliding:!1,x:0,y:-50,z:0,vx:0,vy:0,vz:0,wx:0,wy:0,wz:0,bounces:0,age:0,restYaw:0}}function hU(e,t,n,r){if(!e.out||!e.moving)return!1;e.age+=n;let i=r+.006;if(!e.sliding)e.vy-=lU*n,e.x+=e.vx*n,e.y+=e.vy*n,e.z+=e.vz*n,bU(t,e.wx*n,e.wy*n,e.wz*n),e.y<=i&&(e.y=i,e.bounces.6?(e.bounces+=1,e.vy=-e.vy*uU,e.vx*=.72,e.vz*=.72,e.wx*=.55,e.wy*=.7,e.wz*=.55):(e.vy=0,e.sliding=!0));else{let r=Math.hypot(e.vx,e.vz),a=Math.max(0,r-dU*n);a<=fU?(e.vx=0,e.vz=0):(e.vx*=a/r,e.vz*=a/r),e.x+=e.vx*n,e.z+=e.vz*n,e.y=i,e.wy*=Math.exp(-4*n),e.restYaw+=e.wy*n,_U.setFromAxisAngle(gU,e.restYaw),t.slerp(_U,1-Math.exp(-12*n)),e.vx===0&&e.vz===0&&t.angleTo(_U)<.02&&(t.copy(_U),e.moving=!1)}return e.moving}var gU=new B(0,1,0),_U=new hs,vU=new hs,yU=new Ys;function bU(e,t,n,r){vU.setFromEuler(yU.set(t,n,r)),e.multiply(vU).normalize()}var xU=[.84,.78,.62],SU=[.4,.04,.04],CU=[.3,.012,.018],wU=[.5,.045,.05],TU=[.86,.64,.16],EU=[.42,.19,.09],DU=[.92,.88,.74],OU=[.72,.36,.34],kU=[.82,.52,.46],AU=(e,t,n)=>{let r=Math.min(1,Math.max(0,n));return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r,e[2]+(t[2]-e[2])*r]},jU=e=>{let t=Math.min(1,Math.max(0,e));return t*t*(3-2*t)},MU=(e,t,n=0)=>.5+.25*Math.sin(e.x*t*1.31+n)*Math.sin(e.y*t*1.93+n*1.7)+.25*Math.sin(e.z*t*1.57+n*.6)*Math.sin(e.x*t*.83-n),NU=e=>()=>(e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296),PU=new B;function FU(e,t){e.deleteAttribute(`normal`),e.deleteAttribute(`uv`);let n=qg(e,1e-5);e.dispose();let r=n.getAttribute(`position`);for(let e=0;enew zs().compose(new B(e,t,n),new hs().setFromEuler(new Ys(r,i,a)),new B(o,s,c));function zU(e,t,n){return IU(new Md(new od(e.map(e=>new B(...e))),Math.max(4,e.length*3),t,7,!1),n)}var BU=new Map;function VU(e){let t=BU.get(e);return t===void 0&&(t=e(),BU.set(e,t)),t.clone()}function HU(){return LU([IU(FU(new wd(1,3),e=>{e.normalize();let t=.45+.55*jU((e.x+1)/2),n=1-.34*Math.exp(-(((e.x+.2)/.14)**2))*jU(e.z+.6),r=1+.07*Math.sin(e.x*5.1+.7)*Math.sin(e.z*4.3+1.9);e.set(e.x*.1*r,(e.y>0?e.y:e.y*.4)*.04*t*r,e.z*.062*n*(.7+.3*t))}),e=>AU(AU([.2,.035,.022],[.34,.07,.04],MU(e,70)),CU,e.y<-.006?.5:0)),IU(FU(new wd(1,2),e=>e.set(e.x*.03,e.y*.012,e.z*.014)),[.16,.24,.04],RU(.03,-.012,.03,0,.5,0)),zU([[.01,.004,-.03],[0,.012,-.055],[-.012,.014,-.075]],.007,e=>AU([.16,.05,.2],CU,jU((-e.z-.06)*60)))])}function UU(){return LU([IU(FU(new wd(1,3),e=>{e.normalize();let t=1-.42*Math.exp(-((e.x/.4)**2))*jU(e.z);e.set(e.x*.058,e.y*.024,e.z*.033*t-e.x*e.x*.012)}),e=>AU([.3,.05,.075],[.19,.025,.05],MU(e,120,1.3))),zU([[0,0,.014],[.004,.002,.034],[.018,0,.058],[.02,-.002,.082]],.0048,e=>AU([.86,.72,.56],CU,jU((e.z-.066)*70))),zU([[-.006,.002,.014],[-.012,.004,.034],[-.03,.002,.046]],.0042,CU),IU(FU(new wd(1,1),e=>e.set(e.x*.014,e.y*.009,e.z*.01)),TU,RU(0,.002,.02))])}function WU(){return LU([IU(FU(new wd(1,3),e=>{e.normalize();let t=.55+.45*jU((1-e.z)/2+.1),n=1-.3*Math.exp(-(((e.z-.1-e.x*.3)/.1)**2)),r=1+.035*Math.sin(e.x*23)*Math.sin(e.y*19)*Math.sin(e.z*21);e.set(e.x*.062*t*n*r,(e.y>0?e.y:e.y*.55)*.036*t*n*r,e.z*.09*r)}),e=>AU(AU([.66,.34,.34],[.34,.16,.2],jU(MU(e,160,.4)*1.7-.5)),CU,jU((e.z-.05)*22)*.7)),IU(new Ju(.011,.012,.045,9,5,!0),e=>Math.abs((e.y+.5)*110%2)<1?[.84,.74,.62]:[.6,.26,.24],RU(0,.006,.105,Math.PI/2-.2,0,0))])}function GU(){let e=new od([[-.085,0,.012],[-.045,.004,-.02],[0,0,.018],[.04,.003,-.016],[.082,0,.014]].map(e=>new B(...e))),t=[],n=[],r=[],i=e.computeFrenetFrames(30,!1);for(let r=0;r<=30;r+=1){let a=r/30,o=e.getPointAt(a),s=Math.min(1,Math.sin(a*Math.PI)*5),c=.0175*(.82+.18*Math.abs(Math.sin(a*Math.PI*5.5)))*(.25+.75*s);for(let e=0;e<9;e+=1){let l=e/9*Math.PI*2,u=PU.copy(i.normals[r]).multiplyScalar(Math.cos(l)).addScaledVector(i.binormals[r],Math.sin(l));t.push(o.x+u.x*c,o.y+u.y*c,o.z+u.z*c);let d=1-.3*(1-Math.abs(Math.sin(a*Math.PI*5.5))),f=e===0?CU:AU(AU(OU,kU,.5+.5*Math.sin(a*23+e)),CU,s<1?.8:0);n.push(f[0]*d,f[1]*d,f[2]*d)}}for(let e=0;e<30;e+=1)for(let t=0;t<9;t+=1){let n=e*9+t,i=e*9+(t+1)%9;r.push(n,i,n+9,i,i+9,n+9)}let a=new gl;a.setAttribute(`position`,new il(t,3)),a.setAttribute(`color`,new il(n,3)),a.setIndex(r),a.computeVertexNormals();let o=a.toNonIndexed();return a.dispose(),LU([o,...[[-.03,-.004,-.03],[.012,-.004,.03],[.05,-.004,-.028]].map(([e,t,n])=>IU(FU(new wd(1,1),e=>e.set(e.x*.016,e.y*.007,e.z*.011)),TU,RU(e,t,n,0,e*20,0)))])}function KU(){let e=[[.012,.008],[.004,.0105],[-.01,.0075],[-.013,-.004],[-.002,-.0095],[.01,-.0065]],t=[-1,-.72,-.3,.2,.62,1],n=[.02,.62,1,.9,.5,.02],r=[.004,-.002,0,.001,-.003,.005],i=[],a=[],o=(i,a)=>{let[o,s]=e[a%e.length];return[t[i]*.062,s*n[i],o*n[i]+r[i]]},s=(n,r)=>{let i=Math.abs(t[n]);return AU(r%e.length===3||r%e.length===4?AU(xU,SU,.75):xU,CU,jU((i-.6)*3.2))};for(let n=0;nAU(EU,wU,jU((-e.x-.006)*90));return LU([IU(FU(new wd(1,3),e=>{e.normalize();let t=e.y>0?1-.75*Math.exp(-(((e.x-.1)/.5)**2+((e.z+.1)/.55)**2)):1;e.set(e.x*.019,e.y*.0055*t,e.z*.031*(1-.18*e.x))}),t=>AU(e(t),[.24,.08,.05],t.y<.003&&t.y>-.001?.5:0)),IU(new jd(.024,.0048,7,18,Math.PI*1.25),EU,RU(-.001,.004,.004,-Math.PI/2,0,-Math.PI*.72,.78,1.18,1)),IU(FU(new wd(1,2),e=>e.set(e.x*.0095,e.y*.0055,e.z*.0105)),e,RU(.002,.002,.031)),IU(FU(new wd(1,1),e=>e.set(e.x*.005,e.y*.005,e.z*.007)),e,RU(-.011,.004,.006)),IU(FU(new wd(1,1),e=>e.set(e.x*.006,e.y*.005,e.z*.022)),wU,RU(-.017,0,.002))])}var JU=12;function YU(){let e=e=>[Math.sin(e)*.046,Math.cos(e)*.056-.02],t=[],n=e=>AU(AU(xU,[.7,.6,.44],MU(e,200)),CU,jU((e.y-.003)*220)*.75),r=Math.PI*.62,i=[];for(let t=0;t<=22;t+=1){let[n,a]=e(-r+t/22*r*2);i.push(new B(n,0,a))}let a=new Md(new od(i),44,.0085,8,!1);t.push(IU(FU(a,e=>e.setY(e.y*1.35)),n)),t.push(IU(FU(new wd(1,2),e=>e.set(e.x*.016,e.y*.013,e.z*.011)),n,RU(0,-.003,.038)));for(let n=0;nAU(DU,[.7,.2,.14],jU((-e.y-5e-4)*400)),RU(a,.0125+(s?.0045:.003),o,0,-i,0))),t.push(IU(FU(new wd(1,1),e=>e.set(e.x*.0058,e.y*.0045,e.z*.0058)),c?[.05,.004,.006]:[.5,.07,.08],RU(a,.0105,o)))}for(let n of[-1,1]){let[i,a]=e(n*r),o=FU(new Gu(.008,.05,.026,1,4,2),e=>{let t=e.y/.05+.5;e.z+=-.012*t+(t>.9?Math.sign(e.z)*.004:0),e.x*=1-.3*t});t.push(IU(o,e=>AU(xU,CU,jU((e.y-.012)*60)),RU(i,.02,a-.006,0,n*.25,n*-.12))),t.push(IU(FU(new wd(1,1),e=>e.set(e.x*.009,e.y*.006,e.z*.014)),wU,RU(i,.047,a-.016)))}let o=LU(t);return o.translate(0,-.016,0),o.computeBoundingBox(),o.computeBoundingSphere(),o}function XU(){let e=(e,t,n)=>{let r=t/13*Math.PI*2,i=.55+.45*Math.abs(Math.sin(t*2.7+.9))+.12*Math.sin(t*5.3),a=e/3*i,o=Math.cos(r)*a*.062,s=Math.sin(r)*a*.044;return[o,.009*Math.sin(o*60+.4)*Math.cos(s*48)+.3*(o*o+s*s)/.062+n*.0028*(1-e/3*.7),s]},t=[],n=[],r=(e,r,i,a)=>{for(let o of[e,r,i])t.push(...o),n.push(...a(o))},i=()=>EU,a=e=>Math.sin(e[0]*310+1)*Math.sin(e[2]*270)>.45?TU:AU(wU,CU,.5+.5*Math.sin(e[0]*140+e[2]*90));for(let t=0;t<3;t+=1)for(let n=0;n<13;n+=1){let o=(n+1)%13;r(e(t,n,1),e(t+1,o,1),e(t+1,n,1),i),r(e(t,n,0),e(t+1,n,0),e(t+1,o,0),a),t>0&&(r(e(t,n,1),e(t,o,1),e(t+1,o,1),i),r(e(t,n,0),e(t+1,o,0),e(t,o,0),a))}for(let t=0;t<13;t+=1){let n=(t+1)%13;r(e(3,t,1),e(3,n,1),e(3,t,0),()=>wU),r(e(3,n,1),e(3,n,0),e(3,t,0),()=>wU)}let o=new gl;return o.setAttribute(`position`,new il(t,3)),o.setAttribute(`color`,new il(n,3)),o.computeVertexNormals(),LU([o])}function ZU(){let e=NU(795558343),t=[];for(let n=0;n<9;n+=1){let r=e()*Math.PI*2,i=n===0?0:.012+e()*.02,a=n===0?.021:.009+e()*.009,o=e();t.push(IU(FU(new wd(1,2),e=>e.set(e.x*a,e.y*a*.7,e.z*a)),AU(TU,[.92,.8,.36],o),RU(Math.cos(r)*i,(e()-.3)*.008,Math.sin(r)*i*.8)))}return t.push(IU(FU(new wd(1,1),e=>e.set(e.x*.02,e.y*.005,e.z*.009)),wU,RU(.018,-.006,.01,0,.6,0))),LU(t)}function QU(){let e=e=>AU(AU(xU,[.68,.58,.42],MU(e,260)),CU,jU(MU(e,90,2.2)*2.4-1.3)),t=IU(FU(new Ju(.02,.02,.022,14,2),e=>{let t=1-.14*(1-(e.y/.011)**2);e.x*=t,e.z*=t*(e.z<0?.8:1)}),e,RU(0,0,.008)),n=IU(new Ju(.0175,.0175,.005,12),e=>AU([.78,.5,.46],wU,MU(e,400)),RU(0,.0125,.008)),r=IU(new jd(.0115,.0042,6,12),e,RU(0,0,-.016,Math.PI/2,0,0)),i=IU(FU(new Gu(.007,.011,.03,1,1,3),e=>{let t=.5-e.z/.03;e.x*=1-.55*t,e.y=e.y*(1-.4*t)-.008*t}),e,RU(0,0,-.04)),a=[-1,1].map(t=>IU(FU(new Gu(.024,.008,.008,3,1,1),e=>{let n=.5+t*e.x/.024;e.y*=1-.5*n,e.z=e.z*(1-.4*n)-.006*n}),e,RU(t*.027,0,-.012))),o=IU(new Ju(.0048,.0048,.03,7),e=>AU([.88,.8,.6],CU,jU((Math.abs(e.y)-.009)*200)),RU(0,0,-.016));return LU([t,n,r,i,...a,o])}function $U(){return LU([IU(FU(new Gu(.075,.004,.022,9,1,3),e=>{let t=e.x/.075+.5;e.x+=.0375,e.z=e.z*(1-.75*t)*(1+.5*Math.sin(t*17))+.006*Math.sin(t*9),e.y+=.004*Math.sin(t*13)}),e=>AU(AU(wU,CU,MU(e,240)),TU,Math.sin(e.x*260)>.93?.8:0))])}var eW={position:new B(.012,.089,.004),direction:new B(.47,.88,-.12).normalize()};function tW(){let e=IU(FU(new wd(1,4),e=>{e.normalize();let t=jU((1-e.y)/2),n=1-.62*t**2.4,r=1-.1*Math.exp(-(((e.x+.12)/.14)**2))*(e.z>-.2?1:.4);e.set(e.x*.05*n*r+.012*t,e.y>0?e.y*.038:e.y*.07,e.z*.04*n*r)}),e=>{let t=Math.exp(-(((e.x+.008+e.y*.3)/.006)**2)),n=Math.exp(-(((e.y-.032)/.006)**2));return AU(AU(AU([.42,.03,.035],[.26,.015,.025],MU(e,130)),TU,Math.max(t*.85,n*.7)*jU(MU(e,420,.7)*2)),[.12,.02,.1],t>.6&&Math.sin(e.y*300)>.2?.7:0)}),t=(e,t,n)=>IU(FU(new wd(1,2),e=>{let t=1+.12*Math.sin(e.x*9)*Math.sin(e.z*8);e.set(e.x*n*t,e.y*n*.72,e.z*n*.9*t)}),e=>AU([.3,.02,.05],[.18,.012,.045],MU(e,200)),RU(e,.04,t)),n=(e,t)=>n=>AU(e,CU,jU((n.y-t)*120)),r=zU([[-.006,.03,.006],[-.004,.058,.008],[.004,.08,.006],[.012,.095,.004]],.0125,n([.82,.56,.44],.082)),i=[-1,0,1].map(e=>zU([[-.003+e*.004,.066,.008],[-.012+e*.012,.086,.012-e*.004],[-.016+e*.018,.1,.014-e*.006]],.0048,n([.78,.5,.4],.09))),a=zU([[.016,.03,.022],[.012,.052,.026],[-.006,.066,.03],[-.026,.07,.03]],.0105,e=>AU([.3,.3,.52],CU,jU((-e.x-.014)*110))),o=zU([[.03,.036,-.016],[.034,.058,-.018],[.036,.08,-.02]],.0095,n([.16,.14,.34],.068)),s=LU([e,t(.027,-.006,.024),t(-.024,-.004,.022),r,...i,a,o]);return s.translate(0,-.006,0),s.computeBoundingBox(),s.computeBoundingSphere(),s}var nW=2;function rW(e){let t=Math.min(14,Math.max(0,e));return nW*t-1.55*t*t/28}function iW(e){return Math.max(0,1-Math.max(0,e)/14)**.8}function aW(e){let t=e-Math.floor(e);return t<.16?jU(t/.16):1-jU((t-.16)/.3)}var oW=9.81,sW=.97,cW=.6,lW=10,uW=1.02,dW=.5,fW=.5,pW=2e-4,mW=.45,hW=.03,gW=.15,_W=class{capacity;radius;selfAvoiding;positions;previous;nodes=0;segment=0;pinned=!1;resting=!0;paidOut=0;payRate=0;still=0;constructor(e,t,n){this.capacity=e,this.radius=t,this.selfAvoiding=n,this.positions=new Float32Array(e*3),this.previous=new Float32Array(e*3)}get held(){return this.pinned?Math.max(0,this.nodes-1-Math.floor(this.paidOut)):-1}spill(e,t,n,r,i){this.nodes=Math.min(this.capacity,Math.max(2,Math.round(e)+1)),this.segment=t,this.pinned=!0,this.resting=!1,this.paidOut=1,this.payRate=r,this.still=0;for(let e=0;e.4)for(let e=0;ethis.segment?this.segment:s=a-1?this.still+e:0,this.still>=fW&&(this.resting=!0,s.set(o)),!0}drape(e,t,n,r=!1){let i=Math.hypot(n.x,n.z);if(i<.3)return;let a=this.positions;for(let o=e;omW||s<-.05)continue;let c=hW+gW*Math.min(1,Math.max(0,s)/.25),l=((a[e]-t.x)*n.x+(a[e+2]-t.z)*n.z)/i;if(l>=c+(r?1e-4:0))continue;let u=Math.max(0,c-l);if(a[e]=a[e]+n.x/i*u,a[e+2]=a[e+2]+n.z/i*u,!r)continue;let d=((a[e]-this.previous[e])*n.x+(a[e+2]-this.previous[e+2])*n.z)/i;this.previous[e]=this.previous[e]+n.x/i*d,this.previous[e+2]=this.previous[e+2]+n.z/i*d}}keepApart(e){let t=this.positions,n=this.radius*1.7;for(let r=e;r=n*n)continue;let c=Math.sqrt(s),l=Math.hypot(i,o)1e-10&&SW.copy(TW).normalize(),CW.addScaledVector(SW,-CW.dot(SW)),CW.lengthSq()<1e-8&&(CW.set(+(Math.abs(SW.x)<.9),0,Math.abs(SW.x)<.9?0:1),CW.addScaledVector(SW,-CW.dot(SW))),CW.normalize(),wW.crossVectors(SW,CW);let a=Math.min(e,n-1-e),c=this.radii[e]*(a===0?.08:a===1?.62:a===2?.9:1);for(let t=0;t0?t.fromBufferAttribute(n,0):t.set(0,1,0).applyQuaternion(e.mesh.quaternion),t.lengthSq()>1e-8?t.normalize():t.set(0,1,0)}var VG=e=>()=>(e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296),$=(e,t=0)=>Number.isFinite(e)?e:t,HG=()=>({alive:!1,x:0,y:-50,z:0,vx:0,vy:0,vz:0,rx:0,ry:0,rz:0,vrx:0,vry:0,vrz:0,scale:0,stretch:1,bounces:0,stained:!1,kind:`flesh`,resting:!1,born:0,owner:-1,fading:-1}),UG=e=>{for(let t of e)if(!t.alive)return!0;return!1},WG=new V(16054267),GG=.012,KG=.055,qG=90,JG=10,YG=.985,XG=new z(.097,.132),ZG=.012,QG={r:.82,g:.86,b:.9},$G=4,eK=(e,t)=>Math.trunc(e)*2+(t===`left`?0:1),tK=new B(1,0,0),nK=[`blood`,`bile`,`brain`,`urine`],rK=2400,iK={liver:{build:HU,share:.06,size:[.8,.5],stretch:[.9,.3],stain:.5},kidney:{build:UU,share:.06,size:[.9,.5],stretch:[.9,.25],stain:.3},lung:{build:WU,share:.06,size:[.75,.45],stretch:[.9,.3],stain:.45},gut:{build:GU,share:.18,size:[.8,.5],stretch:[.8,.5],stain:.4},bone:{build:KU,share:.24,size:[.7,.8],stretch:[.8,.6],stain:.14},vertebra:{build:QU,share:.1,size:[.9,.3],stretch:[1,0],stain:.2},skin:{build:XU,share:.1,size:[.8,.8],stretch:[.7,.7],stain:.3},fat:{build:ZU,share:.12,size:[.6,.7],stretch:[.8,.5],stain:.2},ear:{build:qU,share:.03,size:[1.3,.3],stretch:[1,0],stain:.14},jawbone:{build:YU,share:.016,size:[1.1,.15],stretch:[1,0],stain:.34}},aK=Object.keys(iK),oK=[`liver`,`kidney`,`lung`],sK=Object.fromEntries(et.map((e,t)=>[e,t])),cK=14,lK=3.5,uK=1100,dK=.12,fK=.45,pK=SG*Math.sqrt(Math.PI),mK=e=>R.clamp((e-.3)/.6,0,1),hK=e=>cK+326*e**2.2,gK=e=>hK(e)*(1-mK(e)*.88*(1-pK)),_K=16,vK=8,yK=.4,bK=24,xK=11,SK=.046,CK=[0,0,1,3,6],wK=50,TK=48,EK=.6,DK=1,OK=.06,kK=.075,AK=4,jK=24,MK=1.3,NK=new hs().setFromEuler(new Ys(.95,0,0)),PK=60,FK=4,IK=5,LK=1.2,RK=1.5,zK=.5;function BK(e){if(typeof e==`number`)return{x:e<0?-1:1,z:0};let t=Math.hypot(e.x,e.z);return Number.isFinite(t)&&t>1e-6?{x:e.x/t,z:e.z/t}:{x:1,z:0}}var VK=new B(0,1,0),HK=new B(0,0,1),UK=e=>Number.isFinite(e)?R.clamp(e,0,fG):0,WK=new Set([`hit`,`counter_hit`,`block`,`perfect_block`,`guard_break`,`knockdown`,`bleed`]);function GK(e,t,n,r){let i=Math.abs(e)-r;if(i<=0)return{position:e,velocity:t};let a=Math.sign(e);return Math.abs(n)<=r?{position:a*r,velocity:t*-.42}:{position:e,velocity:-a*Math.max(-a*t,i*JW)}}function KK(e){if(e.kind===`bleed`)return`ooze`;if(e.kind===`knockdown`)return`impact`;let t=e.detail.split(`:`);if(t.at(-1)===`body`)return`body_burst`;let n=t.find(e=>[`jab`,`straight`,`hook`,`uppercut`].includes(e));return n===`hook`?`fan`:n===`uppercut`?`plume`:`jet`}function qK(e,t){e.set($(t.x),$(t.y),$(t.z),$(t.w,1)),e.lengthSq()<1e-6?e.identity():e.normalize()}function JK(){return new Wd({color:9063730,roughness:.58,metalness:.02,clearcoat:.25,clearcoatRoughness:.6})}function YK(e,t){let n=JK();n.map=t;let r=e?new Z_(n,Xg,{core:j_,wash:!0,baked:!0}):new Z_(n,Yg,{core:A_,lids:M_,baked:!0});if(!e)return{material:n,injury:r,look:new Rb(n,!0)};let i=n.onBeforeCompile;return n.onBeforeCompile=(e,t)=>{i.call(n,e,t),e.vertexShader=e.vertexShader.replace(`#include `,`#include +attribute vec3 bindPosition;`)},{material:n,injury:r,look:null}}var XK=0,ZK=1,QK=2,$K=3;function eq(e,t,n){return e===void 0||e===`forearm_left`||e===`forearm_right`?XK:e===`head`?QK:e===`upper_body`?t?$K:ZK:e===`torso`&&n?QK:ZK}function tq(e,t,n,r=0){let i=new Ud({map:e,color:t,roughness:n===void 0?.6:.38,metalness:.02,side:2});return n!==void 0&&(vb(i,!0,n).value=r),i}function nq(e,t,n){n.identity();let r=e.getAttribute(`position`),i=e.getAttribute(`bindPosition`),a=e.getIndex();if(i===void 0||i.count!==r.count)return n;let o=new Uint8Array(r.count);if(a===null)o.fill(1);else for(let e=0;e({active:!1,eventId:null,fluid:`blood`,life:0,seconds:1,rate:0,accumulator:0,position:new B,axis:new B(0,1,0)}));simulationRemainder=0;ambientSeed=1597463007;shake=0;lowTier=!1;bloodLevel=`full`;lens=new tU;camera=null;lensPoint=new B;debrisCursor=new Map;visceraMaterial;viscera=[];visceraByShape={};wounds=[];woundsOpen=0;woundShare=1;woundClock=0;parts=[];partsThrown=0;partBox=new Lc;partMiddle=new B;partVertex=new B;limbMap;limbMaterial;trunkMap;trunkMaterial;fleshSections;spines=[];spineMesh;spineStretch;shredGeometry;shredMesh;spineNeck=new B;guts=[];heartGeometry;heartMesh;heartRest;heartRadius;heart={active:!1,moving:!1,owner:-1,age:0,beats:0,vx:0,vy:0,vz:0,vrx:0,vry:0,vrz:0,bounces:0,settle:-1,settleFrom:new hs,settleTo:new hs,settleFromY:0,pool:0,trail:0};corpses=[];flyGeometry;flyMaterial;flyMesh;flies;constructor(e,t=1024,n=AW){this.scene=e,this.budget=n,this.dropletPositions=new Float32Array(n.droplets*3),this.dropletColors=new Float32Array(n.droplets*3),this.dropletBuffers={position:new tl(this.dropletPositions,3),color:new tl(this.dropletColors,3)},this.dropletGeometry=Rv(),this.dropletMaterial=new Ud({color:16777215,roughness:.3,metalness:.02}),this.dropletMesh=new mu(this.dropletGeometry,this.dropletMaterial,n.droplets),this.dropletMesh.instanceMatrix.setUsage(Oo),this.dropletMesh.frustumCulled=!1,this.dropletMesh.castShadow=!1,e.add(this.dropletMesh);for(let e=0;eObject.assign(new H(e.geometry,e.material),{castShadow:e.castShadow}));if(e.push(Object.assign(new H(this.stumpGeometry,this.jawMaterial),{castShadow:this.stumps[0].mesh.castShadow})),this.bakedStandIns===null){let e=new Ns,t=[YK(!1,e),YK(!0,e)].flatMap(e=>[e.material,e.injury.variant(!1),e.injury.variant(!0)]),n=new Ud({color:1920728,roughness:.38,metalness:.03,map:e});vb(n,!0);let r=[tq(e,16777215),tq(null,16777215),tq(e,1920728,`gloves`),tq(e,1920728,`trunks`)],i=new mu(this.heartGeometry,this.visceraMaterial,1);i.setColorAt(0,this.gibColor.setHex(16777215)),i.castShadow=!0,this.bakedStandIns={map:e,materials:[...t,n,...r],instanced:[i,new mu(this.flyGeometry,this.flyMaterial,1)]}}for(let t of this.bakedStandIns.materials)e.push(Object.assign(new H(this.headGeometry,t),{castShadow:!0}));return e.push(Object.assign(new H(this.heartGeometry,this.visceraMaterial),{castShadow:!0}),...this.bakedStandIns.instanced),e}setCamera(e){this.camera=e}drawLens(e,t,n){this.lens.draw(e,t,n)}get lensDrops(){return this.lens.count}setBloodLevel(e){if(e===this.bloodLevel)return;let t=this.bloodLevel;this.bloodLevel=e,(e===`off`||t===`full`&&e===`reduced`)&&this.clearArcadeGore()}get shakeAmount(){return this.shake}get liveParticles(){return this.droplets.filter(e=>e.alive).length}get liveBloodParticles(){return this.droplets.filter(e=>e.alive&&e.blood).length}get liveMist(){return this.mists.filter(e=>e.alive).length}get canvasStains(){return this.canvasBlood.stains}useUploader(e){this.canvasBlood.useUploader(e)}setLowTier(e){this.canvasBlood.setLowTier(e),this.lowTier=e}get liveGibs(){return this.gibs.filter(e=>e.alive).length}get liveShards(){return this.shards.filter(e=>e.alive).length}debrisCount(e){let t=0;for(let n of this.gibs)n.alive&&n.kind===e&&(t+=1);for(let n of this.shards)n.alive&&n.kind===e&&(t+=1);for(let n of this.eyeballs)n.alive&&n.kind===e&&(t+=1);for(let n of this.viscera)for(let r of n.pieces)r.alive&&r.kind===e&&(t+=1);return t}get activeHeads(){return this.heads.filter(e=>e.active).length}headBurst(e){let t=this.stumps[Math.trunc(e)];return t!==void 0&&t.active&&t.mesh.material===this.jawMaterial}severedHeadPosition(e,t){let n=this.heads[Math.trunc(e)];return n===void 0||!n.active?!1:(t.copy(n.mesh.position),!0)}severedHeadFacing(e,t){let n=this.heads[Math.trunc(e)];return n===void 0||!n.active?!1:(t.set(0,0,1).applyQuaternion(n.mesh.quaternion),!0)}mouthpieceOut(e){return this.shields[Math.trunc(e)]?.out===!0}mouthpiecePosition(e,t){let n=this.shields[Math.trunc(e)];return n===void 0||!n.out?!1:(t.set(n.x,n.y,n.z),!0)}ejectMouthpiece(e,t,n,r,i,a,o=!1){if(e<0||e>=LW)return!1;let s=Math.trunc(e),c=this.shields[s],l=Number.isSafeInteger(i)?i:0;if(c.out&&!o||this.lastShieldEvent[s]===l)return!1;this.lastShieldEvent[s]=l;let u=VG(l*48271+s*7907+5),d=BK(r),f=.9+u()*.9,p=.9+u()*.9,m=(u()-.5)*1.1;Object.assign(c,mU(),{out:!0,moving:!0,x:$(t.x),y:$(t.y,1.45),z:$(t.z),vx:f*d.x-m*d.z,vy:p,vz:f*d.z+m*d.x,wx:(u()-.5)*26,wy:(u()-.5)*18,wz:(u()-.5)*26,restYaw:u()*Math.PI*2});let h=this.shieldMeshes[s];h.position.set(c.x,c.y,c.z),qK(h.quaternion,n),h.visible=!0,this.shieldMaterials[s].color.setHex(a).lerp(WG,.55);let g=this.bloodLevel===`full`;for(let e=0;e<(g?22:12);e+=1){let t=u()*Math.PI*2,n=g?e%3!=0:this.bloodLevel===`reduced`&&e%3==0;this.spawnDroplet(c.x+(u()-.5)*.03,c.y+(u()-.5)*.03,c.z+(u()-.5)*.03,c.vx*(.5+u()*.6)+Math.sin(t)*.4,c.vy*(.4+u()*.6),c.vz*.5+Math.cos(t)*.4,n?Vv(u()):QG,.5+u()*.5,n)}return!0}gougeEye(e,t,n,r,i,a,o=!1){if(this.bloodLevel!==`full`||e<0||e>=LW)return;let s=Math.trunc(e),c=eK(s,a),l=this.eyes[c],u=Number.isSafeInteger(i)?i:0;if(l.active&&(o||l.eventId===u))return;l.active&&this.burstEye(s,a,u),l.active=!0,l.eventId=u,l.socket.set($(t.x),$(t.y,1.6),$(t.z)),l.facing.copy(n),l.hasSkull=!1,l.position.copy(l.socket).addScaledVector(n,GG*1.5),this.eyeDirection.copy(n).multiplyScalar(1.3);let d=BK(r);if(this.eyeDirection.x+=d.x*.5,this.eyeDirection.z+=d.z*.5,l.previous.copy(l.position),o||l.previous.addScaledVector(this.eyeDirection,-.016666666666666666),l.bleeding=o?0:JG,l.accumulator=0,this.eyeMeshes[c].visible=!0,this.nerveMeshes[c].visible=!0,this.writeEye(c),o)return;let f=VG(u*52711+s*3571+(a===`right`?977:0)+13);for(let e=0;e1e-8&&o.facing.copy(n).normalize(),r!==void 0&&i!==void 0&&(o.skull.set($(r.x),$(r.y,1.6),$(r.z)),qK(o.skullTurn,i),o.hasSkull=!0))}eyeOut(e,t){return t===void 0?this.eyes[eK(e,`left`)]?.active===!0||this.eyes[eK(e,`right`)]?.active===!0:this.eyes[eK(e,t)]?.active===!0}eyePosition(e,t,n){let r=this.eyes[eK(e,`left`)],i=this.eyes[eK(e,`right`)],a=n===`left`||n===void 0&&r?.active===!0?r:i;return a===void 0||!a.active?!1:(t.copy(a.position),!0)}updateEyes(e){for(let[t,n]of this.eyes.entries()){if(!n.active)continue;this.eyeDirection.copy(n.position).sub(n.previous).multiplyScalar(YG),n.previous.copy(n.position),n.position.add(this.eyeDirection),n.position.y-=YW*e*e,this.eyeDirection.copy(n.position).sub(n.socket);let r=this.eyeDirection.length();if(r>.055&&n.position.copy(n.socket).addScaledVector(this.eyeDirection,KG/r),n.hasSkull&&this.restOnFace(n)){n.previous.lerp(n.position,.6),this.eyeDirection.copy(n.position).sub(n.socket);let e=this.eyeDirection.length();e>.055&&n.position.copy(n.socket).addScaledVector(this.eyeDirection,KG/e)}if(n.position.y<0+GG&&(n.position.y=0+GG),this.bloodLevel===`full`&&n.bleeding>0)for(n.bleeding=Math.max(0,n.bleeding-e),n.accumulator+=e*this.forDevice(qG);n.accumulator>=1;){--n.accumulator;let e=.15+this.ambientRandom()*.5;this.spawnDroplet(n.socket.x,n.socket.y-.005,n.socket.z,n.facing.x*e+(this.ambientRandom()-.5)*.2,-.15-this.ambientRandom()*.4,n.facing.z*e+(this.ambientRandom()-.5)*.2,Vv(this.ambientRandom()),.9,!0)}this.writeEye(t)}}restOnFace(e){this.eyeTurn.copy(e.skullTurn).invert();let t=this.eyeDirection.copy(e.position).sub(e.skull).applyQuaternion(this.eyeTurn),n=this.eyeSocketLocal.copy(e.socket).sub(e.skull).applyQuaternion(this.eyeTurn).z+GG+ZG;if(t.z>=n)return!1;let r=Math.hypot(t.x/XG.x,t.y/XG.y);return r>=1?!1:(n-t.z<=(1-r)*Math.min(XG.x,XG.y)||r<1e-6?t.z=n:(t.x/=r,t.y/=r),e.position.copy(e.skull).add(t.applyQuaternion(e.skullTurn)),!0)}writeEye(e){let t=this.eyes[e],n=this.eyeMeshes[e],r=this.nerveMeshes[e];n.position.copy(t.position),this.eyeDirection.copy(t.position).sub(t.socket);let i=this.eyeDirection.length();i>1e-5&&(this.eyeDirection.multiplyScalar(1/i),r.quaternion.setFromUnitVectors(VK,this.eyeDirection),this.eyeDirection.addScaledVector(t.facing,.9).normalize(),n.quaternion.setFromUnitVectors(HK,this.eyeDirection)),r.position.copy(t.socket),r.scale.set(1,Math.max(.001,i-GG*.8),1)}returnMouthpiece(e){let t=Math.trunc(e),n=this.shields[t];n!==void 0&&(Object.assign(n,mU()),this.shieldMeshes[t].visible=!1,this.lastShieldEvent[t]=null)}clearMouthpieces(){for(let[e,t]of this.shields.entries())Object.assign(t,mU()),this.shieldMeshes[e].visible=!1,this.lastShieldEvent[e]=null}updateShields(e){for(let[t,n]of this.shields.entries()){if(!n.out||!n.moving)continue;let r=this.shieldMeshes[t],i=n.age<.3&&!n.sliding,a=n.x,o=n.z;hU(n,r.quaternion,e,0);let s=pv-oU-qW,c=GK(n.x,n.vx,a,s),l=GK(n.z,n.vz,o,s);if(n.x=c.position,n.vx=c.velocity,n.z=l.position,n.vz=l.velocity,r.position.set(n.x,n.y,n.z),i&&this.ambientRandom()e.active).length}get activeStumps(){return[...this.stumps,...this.handStumps].filter(e=>e.active).length}spawnDroplet(e,t,n,r,i,a,o,s,c,l=c?.0035+this.ambientRandom()**3*.0125:.0025+this.ambientRandom()**2*.004,u=`blood`){let d=this.liveDropletsthis.droplets[e].maxLife-this.droplets[e].life;for(let n=0;n0&&t(e[i-1])mG&&e.pop()}}forDevice(e){return Math.round(e*this.budget.droplets*(this.lowTier?.5:1)/AW.droplets)}uploadDroplets(e,t,n){if(this.dropletMesh.count=this.liveDroplets,t<=e)return;this.dropletMesh.instanceMatrix.addUpdateRange(e*16,(t-e)*16),this.dropletMesh.instanceMatrix.needsUpdate=!0;let r=this.dropletMesh.instanceColor;n&&r!==null&&(r.addUpdateRange(e*3,(t-e)*3),r.needsUpdate=!0)}retireDroplet(e){this.oldest.length=0;let t=this.liveDroplets-1,n=this.droplets[e];if(n.alive=!1,this.liveDroplets=t,e!==t){let r=this.droplets[t];this.droplets[e]=r,this.droplets[t]=n,this.dropletPositions.copyWithin(e*3,t*3,t*3+3),this.dropletColors.copyWithin(e*3,t*3,t*3+3),this.dropletMesh.setColorAt(e,this.dropletColor.setRGB(r.r,r.g,r.b)),this.writeDropletMatrix(e,r)}this.dropletPositions[t*3+1]=-50,this.writeDropletMatrix(t,n)}sprayDroplet(e,t,n,r,i,a,o,s,c,l,u,d){this.spawnDroplet(t,n,r,i*e.x-o*e.z,a,i*e.z+o*e.x,s,c,l,u,d)}writeDropletMatrix(e,t){if(!t.alive){this.dropletScale.setScalar(0),this.dropletQuaternion.identity(),this.dropletMatrix.compose(this.dropletVelocity.set(0,-50,0),this.dropletQuaternion,this.dropletScale),this.dropletMesh.setMatrixAt(e,this.dropletMatrix);return}let n=Math.hypot(t.vx,t.vy,t.vz);n>1e-4?(this.dropletVelocity.set(t.vx/n,t.vy/n,t.vz/n),this.dropletQuaternion.setFromUnitVectors(VK,this.dropletVelocity)):this.dropletQuaternion.identity();let r=Math.min(1,t.life/(t.maxLife*.3))*this.dropletCloseness*(t.blood&&this.bloodLevel===`full`?cG:1),i=zv(t.radius*r,n,this.dropletShape);this.dropletScale.set(i.width,i.length,i.width),this.dropletMatrix.compose(this.dropletVelocity.set(t.x,t.y,t.z),this.dropletQuaternion,this.dropletScale),this.dropletMesh.setMatrixAt(e,this.dropletMatrix)}spawnMist(e,t,n,r,i){let a=this.mistIndex%this.budget.mist;this.mistIndex+=1;let o=this.mists[a];o.alive=!0,o.x=$(e),o.y=$(t,1),o.z=$(n),o.maxLife=Math.max(.05,$(i,.5)),o.life=o.maxLife,o.scale=Math.max(.1,$(r,1)),this.mistPositions[a*3]=o.x,this.mistPositions[a*3+1]=o.y,this.mistPositions[a*3+2]=o.z,this.mistColors[a*4+3]=Math.min(1,o.scale),this.mistGeometry.attributes.position.needsUpdate=!0,this.mistGeometry.attributes.color.needsUpdate=!0}placeDecal(e,t,n,r,i,a,o){this.canvasBlood.stain($(e),$(t),Math.max(.01,$(n,.2))*.28,Math.max(.01,$(r,.15))*.28,$(i),R.clamp($(a,.4),0,.95),o)}splashLens(e,t,n,r,i){let a=this.camera;if(a===null||this.bloodLevel===`off`||!(r>0))return;let o=this.lensPoint.set($(e),$(t,1.5),$(n)),s=o.distanceTo(a.position);if(o.project(a),!(o.z<1)||Math.abs(o.x)>1.15||Math.abs(o.y)>1.15)return;let c=R.clamp((hG-s)/8.5,0,1);this.lens.splash((o.x+1)/2,(1-o.y)/2,c*r*(this.bloodLevel===`reduced`?.25:1),i)}ambientRandom(){return this.ambientSeed=Math.imul(this.ambientSeed^this.ambientSeed>>>15,1|this.ambientSeed),this.ambientSeed^=this.ambientSeed+Math.imul(this.ambientSeed^this.ambientSeed>>>7,61|this.ambientSeed),((this.ambientSeed^this.ambientSeed>>>14)>>>0)/4294967296}splatter(e,t,n,r=()=>this.ambientRandom(),i=12,a=rG){if(this.bloodLevel===`off`)return;let o=this.bloodLevel===`reduced`,s=o?Math.ceil(i/4):i,c=o?.35:iG;for(let i=0;i0?$(t.y):e.detail.endsWith(`:body`)?1.05:1.58,z:$(t.z)},f=e.kind===`bleed`,p=n||f?0:Math.round(s?(a?4:6)+Math.min(6,Math.max(0,e.amount)/40):(a?6:16)+Math.min(20,Math.max(0,e.amount)/20)),m={x:0,y:0,z:0,vx:0,vy:0,vz:0,life:0,radius:0,color:Vv(0)},h=e.kind===`hit`||e.kind===`counter_hit`,g=h?Math.max(0,e.blood-Math.floor(Math.max(0,e.amount)/3)):0,_=n||e.blood<=0||this.bloodLevel===`off`?0:f?this.bloodLevel===`reduced`?1:Math.min(12,3+Math.floor(Math.max(0,e.amount)/8)):this.bloodLevel===`reduced`?Math.min(24,Math.round(e.blood*(a?.12:.24))):this.forDevice(a?Math.round(Nv(e.blood,0)/2):o?Nv(e.blood,0)+lG:Nv(e.blood,h?e.amount:0));f||(this.shake=Math.min(.14,this.shake+(a?.008:Math.max(.012,e.amount/1500)))),o&&(this.shake=Math.min(.2,this.shake+.09));let v=o?1.2:h?R.clamp((e.amount-40)/60,0,1)*(.6+Math.min(100,e.blood)/150):0;!n&&!f&&e.blood>0&&this.splashLens(d.x,d.y,d.z,v,e.event_id);for(let e=0;e0&&t<=ZW){let e=1-QW*t;this.spawnDroplet(m.x,m.y,m.z,m.vx*e,m.vy*e,m.vz*e,m.color,m.life,!0,m.radius*(1-$W*t));continue}let n=t===0,r=(i()-.5)*Math.PI,a=n?2.2+i()*1.8:.9+i()*1.5,o=a,s=.5+i()*1.25,u=(i()-.5)*.5;if(c===`fan`)o=a*(.45+Math.cos(r)*.35),s=.55+i()*1.15,u=Math.sin(r)*a*.9;else if(c===`plume`)o=a*(.25+i()*.25),s=1.8+i()*2.2,u=(i()-.5)*a*.65;else if(c===`body_burst`)o=a*(.55+i()*.45),s=-.15+i()*1.05,u=Math.sin(r)*a*.75;else if(c===`ooze`)o=.08+i()*.22,s=-.3-i()*.55,u=(i()-.5)*.22;else if(c===`impact`)o=a*(.45+i()*.65),s=.9+i()*2.1,u=Math.sin(r)*a;else{let e=n?.12:.34;o=a*(.8+i()*.35),s=n?1.3+i()*1.6:.5+i()*1.25,u=(i()-.5)*a*e}let f=o*l.x-u*l.z,p=o*l.z+u*l.x,h=Vv(i()),g=d.x+(i()-.5)*.12,_=d.y+(i()-.5)*.14,v=d.z+(i()-.5)*.12,y=.65+i()*.85;n?(m.x=g,m.y=_,m.z=v,m.vx=f,m.vy=s,m.vz=p,m.color=h,m.life=y,m.radius=.008+i()*.008,this.spawnDroplet(g,_,v,f,s,p,h,y,!0,m.radius)):this.spawnDroplet(g,_,v,f,s,p,h,y,!0)}let y=s?o||e.kind===`counter_hit`||h&&(e.amount>=35||g>=aG):e.kind===`hit`&&e.amount>=70||o||e.kind===`counter_hit`||g>=16;if(!n&&e.blood>0&&this.bloodLevel!==`off`&&y){let t=s?this.forDevice(o?36:12+Math.min(24,Math.floor(g/2)+Math.floor(Math.max(0,e.amount-35)/6))):o?3:2,n=s?1:.35;for(let e=0;e0&&this.bloodLevel!==`off`){let t=o?1+Math.min(2,e.blood/55):.8+Math.min(1.2,g/30);this.splatter(d.x+(i()-.5)*.6,d.z+(i()-.5)*.6,s?t*1.3:t,i,x,o?nG:tG)}let S=e.amount>=70||e.kind===`counter_hit`&&e.amount>=jv,C=h&&(e.amount>=60||S&&g>=aG/4);if(s&&!n&&C&&!e.detail.endsWith(`:body`)){let t=Math.min(20,Math.max(3,Math.round((e.amount-10)/6)));for(let e=0;e0){e.sideLow=1/0,e.sideHigh=-1/0;for(let t=0;t=LW)return;let s=Math.trunc(e),c=Number.isSafeInteger(i)?i:0,l=this.heads[s];if(l.active||this.lastDecapitationEvent[s]===c)return;this.stopGush(s),this.applyBakedPart(l,o,a);let u=VG(c*104729+s*8191+23),d=BK(r);this.lastDecapitationEvent[s]=c,l.active=!0,l.moving=!0,l.eventId=c;let f=1.8+u()*1.1;l.vy=2.3+u()*1.1;let p=(u()-.5)*2.2;l.vx=f*d.x-p*d.z,l.vz=f*d.z+p*d.x,l.vrx=(u()-.5)*12,l.vry=(u()-.5)*12,l.vrz=(u()-.5)*12,l.bounces=0,l.trail=0,l.stained=!1,l.settle=-1,l.mesh.position.set($(t.x),$(t.y,1.55),$(t.z)),qK(l.mesh.quaternion,n),l.mesh.visible=!0;let m=this.stumps[s];m.mesh.material=this.stumpMaterial,m.active=!0,m.fountainLife=14,m.accumulator=0,m.seed=c|1,m.direction=d,m.mesh.position.copy(l.mesh.position),m.mesh.quaternion.copy(l.mesh.quaternion),m.mesh.visible=!0;for(let e=0;e=LW)return;let i=Math.trunc(e),a=Number.isSafeInteger(r)?r:0,o=this.stumps[i];if(o.active||this.lastBurstEvent[i]===a)return;this.lastBurstEvent[i]=a,this.stopGush(i);let s=VG(a*91813+i*6151+41),c=BK(n),l=$(t.x),u=$(t.y,1.6),d=$(t.z),f=(e,t,n,r,a)=>{for(let o=0;o=LW)return;let c=Math.trunc(e)*2+(t===`left`?0:1),l=Number.isSafeInteger(a)?a:0,u=this.hands[c];if(u.active||this.lastDismembermentEvent[c]===l)return;this.applyBakedPart(u,s,o);let d=VG(l*130363+c*12289+37),f=BK(i);this.lastDismembermentEvent[c]=l,u.active=!0,u.moving=!0,u.eventId=l;let p=1.3+d()*1.1;u.vy=1.5+d()*1.2;let m=(d()-.5)*1.8;u.vx=p*f.x-m*f.z,u.vz=p*f.z+m*f.x,u.vrx=(d()-.5)*16,u.vry=(d()-.5)*16,u.vrz=(d()-.5)*16,u.bounces=0,u.trail=0,u.stained=!1,u.mesh.position.set($(n.x),$(n.y,1.25),$(n.z)),qK(u.mesh.quaternion,r),u.mesh.visible=!0;let h=this.handStumps[c];h.active=!0,h.fountainLife=yG,h.accumulator=0,h.seed=l|1,h.direction=f,h.mesh.position.copy(u.mesh.position),h.mesh.quaternion.copy(u.mesh.quaternion),h.mesh.visible=!0;for(let t=0;t=LW)return;let o=Math.trunc(e),s=Number.isSafeInteger(i)?i:0,c=VG(s*69061+o*2741+29),l=BK(r),u=this.tornAxis.copy(n);u.lengthSq()>1e-8&&Number.isFinite(u.lengthSq())||u.set(0,1,0),u.normalize();let d=$(t.x),f=$(t.y,1.2),p=$(t.z);for(let e=0;e{for(let n=0;n=LW)return;let i=Math.trunc(e)*2+(t===`left`?0:1),a=this.handStumps[i];a.active&&(a.mesh.position.set($(n.x),$(n.y,1.2),$(n.z)),qK(a.mesh.quaternion,r))}anchorStump(e,t,n,r,i){if(this.bloodLevel!==`full`||e<0||e>=LW)return;let a=this.stumps[Math.trunc(e)];a.active&&(a.mesh.position.set($(t.x),$(t.y,1.5),$(t.z)),r===void 0||r.length<18?(a.mesh.geometry=this.stumpGeometry,qK(a.mesh.quaternion,n)):($v(a.flesh,r,a.mesh.position,this.stumpOutward.set(0,1,0).applyQuaternion(n),.01,i),a.mesh.geometry=a.flesh,a.mesh.quaternion.identity()))}restoreFighter(e){if(e<0||e>=LW)return;let t=Math.trunc(e),n=this.heads[t];n.active=!1,n.moving=!1,n.mesh.visible=!1,n.mesh.position.y=-50,this.applyBakedPart(n,void 0,9063730);let r=this.stumps[t];r.active=!1,r.fountainLife=0,r.accumulator=0,r.mesh.visible=!1,r.mesh.position.y=-50,r.mesh.material=this.stumpMaterial,this.clearGibs(t),this.stopGush(t);for(let e of[t*2,t*2+1]){let t=this.eyes[e];t.active=!1,t.bleeding=0,this.eyeMeshes[e].visible=!1,this.nerveMeshes[e].visible=!1}this.clearWounds(t),this.clearGuts(t),this.clearSpine(t),this.clearCorpse(t),this.heart.owner===t&&(this.heart.active=!1,this.heartMesh.visible=!1);for(let e of[t*2,t*2+1]){let t=this.hands[e];t.active=!1,t.moving=!1,t.mesh.visible=!1,t.mesh.position.y=-50,this.applyBakedPart(t,void 0,1920728);let n=this.handStumps[e];n.active=!1,n.fountainLife=0,n.accumulator=0,n.mesh.visible=!1,n.mesh.position.y=-50}}drip(e,t,n,r=0){let i=+(r===1);if(this.bloodLevel===`off`||n||t<=.05){this.stopDrip(i);return}let a=this.dripEmitters[i];a.position.set($(e.x),$(e.y,1.5),$(e.z)),a.rate=this.bloodLevel===`reduced`?Math.min(3,t*3):Math.min(60,t*40),a.active=!0}stopDrip(e){let t=this.dripEmitters[+(e===1)];t.active=!1,t.rate=0,t.accumulator=0}gush(e,t,n,r,i,a,o=`blood`){if(this.bloodLevel!==`full`||e<0||e>=this.gushes.length)return;let s=this.gushes[Math.trunc(e)],c=Number.isSafeInteger(a)?a:0;s.active&&s.eventId===c||(s.active=!0,s.eventId=c,s.fluid=o,s.seconds=Math.max(.1,$(r,1)),s.life=s.seconds,s.rate=Math.max(0,$(i)),s.accumulator=0,this.anchorGush(e,t,n))}anchorGush(e,t,n){let r=this.gushes[Math.trunc(e)];r!==void 0&&r.active&&(r.position.set($(t.x),$(t.y,1.4),$(t.z)),n.lengthSq()>1e-8&&Number.isFinite(n.lengthSq())&&r.axis.copy(n).normalize())}gushing(e){return this.gushes[Math.trunc(e)]?.active===!0}stopGush(e){let t=this.gushes[e];t!==void 0&&(t.active=!1,t.eventId=null)}updateGushes(e){for(let t of this.gushes){if(!t.active)continue;if(t.life-=e,t.life<=0||this.bloodLevel!==`full`){t.active=!1;continue}let n=t.life/t.seconds,r=(t.seconds-t.life)*xG%1,i=Math.exp(-(((r-.5)/MG)**2));if(t.accumulator+=e*this.forDevice(t.rate)*n*(NG+.7*i),!(t.accumulator<1))for(LG.set(Math.abs(t.axis.y)<.9?0:1,+(Math.abs(t.axis.y)<.9),0).cross(t.axis).normalize(),RG.crossVectors(t.axis,LG);t.accumulator>=1;){--t.accumulator;let e=Math.sqrt(this.ambientRandom())*FG,r=this.ambientRandom()*Math.PI*2,a=(PG+this.ambientRandom()*2)*(.5+.5*n)*(.7+.3*i);zG.copy(t.axis).multiplyScalar(Math.cos(e)).addScaledVector(LG,Math.sin(e)*Math.cos(r)).addScaledVector(RG,Math.sin(e)*Math.sin(r)).multiplyScalar(a),this.spawnDroplet(t.position.x+(this.ambientRandom()-.5)*.03,t.position.y+(this.ambientRandom()-.5)*.02,t.position.z+(this.ambientRandom()-.5)*.03,zG.x,zG.y,zG.z,Uv(t.fluid,this.ambientRandom()),1.2,!0,(.004+this.ambientRandom()**2*.01)*Hv[t.fluid].drop,t.fluid)}}}updateDripEmitters(e){for(let t of this.dripEmitters)if(t.active)for(t.accumulator+=e*t.rate;t.accumulator>=1;)--t.accumulator,this.spawnDroplet(t.position.x+(this.ambientRandom()-.5)*.14,t.position.y-.04,t.position.z+(this.ambientRandom()-.5)*.1,(this.ambientRandom()-.5)*.08,-.25-this.ambientRandom()*.4,(this.ambientRandom()-.5)*.08,Vv(this.ambientRandom()),1.1,!0)}spawnTeeth(e,t,n,r){if(this.bloodLevel===`off`)return;let i=this.bloodLevel===`reduced`?+(n>=3):Math.min(12,Math.max(1,Math.round(n)));if(i<=0)return;let a=VG((Number.isSafeInteger(r)?r:0)*7331+91),o=BK(t);for(let t=0;t>3):f.length>>2)}debrisSlot(e){let t=this.debrisCursor.get(e)??0,n=t%e.length;for(let r=0;r=0?n.scale*Math.max(0,n.fading)/_G:n.scale;this.gibScale.set(e*n.stretch,e,e/Math.sqrt(n.stretch))}this.gibMatrix.compose(this.gibPosition,this.gibQuaternion,this.gibScale),e.setMatrixAt(t,this.gibMatrix)}updateDebris(e,t,n,r){let i=!1;for(let[a,o]of e.entries()){if(!o.alive||o.resting&&o.fading<0)continue;if(i=!0,o.fading>=0){o.fading-=n,o.fading<=0&&(o.alive=!1),this.writeDebrisMatrix(t,a,o);continue}o.vy-=6.4*n,o.x+=o.vx*n,o.y+=o.vy*n,o.z+=o.vz*n,o.rx+=o.vrx*n,o.ry+=o.vry*n,o.rz+=o.vrz*n,this.confineGib(o);let e=0+(r===void 0?o.kind===`eye`?GG*FW:.015:r.low*o.scale);if(o.y<=e){if(o.y=e,!o.stained&&this.bloodLevel===`full`&&o.kind!==`tooth`&&o.kind!==`eye`&&(o.stained=!0,r===void 0?this.placeDecal(o.x,o.z,.24+o.scale*.16,.14+o.scale*.1,o.rz,.55,6425104):this.canvasBlood.stain(o.x,o.z,iK[r.shape].stain*o.scale,iK[r.shape].stain*o.scale*.7,o.ry,.6,6425104)),o.bounces.35)o.bounces+=1,o.vy=Math.abs(o.vy)*.3,o.vx*=.68,o.vz*=.68,o.vrx*=.7,o.vry*=.7,o.vrz*=.7;else{if(o.vx=0,o.vy=0,o.vz=0,o.vrx=o.vry=o.vrz=0,o.kind===`shard`&&(o.rx=Math.round(o.rx/Math.PI)*Math.PI),r!==void 0){let e=Math.round(o.rx/Math.PI),t=Math.round(o.rz/Math.PI);o.rx=e*Math.PI,o.rz=t*Math.PI,o.y=0+((e+t)%2==0?r.low:r.high)*o.scale}o.resting=!0}}this.writeDebrisMatrix(t,a,o)}i?t.instanceMatrix.needsUpdate=!0:r!==void 0&&(r.moving=!1)}confineGib(e){Math.abs(e.x)>3.05&&(e.x=Math.sign(e.x)*lv,e.vx*=-.45),Math.abs(e.z)>3.05&&(e.z=Math.sign(e.z)*lv,e.vz*=-.45)}updateDetachedParts(e,t){for(let n of e){if(n.active&&n.settle>=0&&n.settle<1){n.settle=Math.min(1,n.settle+t/KW);let e=n.settle*n.settle*(3-2*n.settle);n.mesh.quaternion.slerpQuaternions(n.settleFrom,n.settleTo,e),n.mesh.position.y=n.settleFromY+(n.settleToY-n.settleFromY)*e}if(!n.active||!n.moving)continue;let e=n.mesh.position.x,r=n.mesh.position.z;if(n.vy-=5.8*t,n.mesh.position.x+=n.vx*t,n.mesh.position.y+=n.vy*t,n.mesh.position.z+=n.vz*t,n.mesh.rotation.x+=n.vrx*t,n.mesh.rotation.y+=n.vry*t,n.mesh.rotation.z+=n.vrz*t,this.bloodLevel===`full`)for(n.trail+=t*this.forDevice(IW),n.trail>=1&&this.trailPoint.copy(n.cap.position).multiply(n.mesh.scale).applyQuaternion(n.mesh.quaternion).add(n.mesh.position);n.trail>=1;)--n.trail,this.spawnDroplet(this.trailPoint.x+(this.ambientRandom()-.5)*.03,this.trailPoint.y+(this.ambientRandom()-.5)*.03,this.trailPoint.z+(this.ambientRandom()-.5)*.03,n.vx*.35+(this.ambientRandom()-.5)*.9,n.vy*.35+(this.ambientRandom()-.5)*.9,n.vz*.35+(this.ambientRandom()-.5)*.9,Vv(this.ambientRandom()),.9,!0);let i=pv-n.radius-qW,a=GK(n.mesh.position.x,n.vx,e,i),o=GK(n.mesh.position.z,n.vz,r,i);if(n.mesh.position.x=a.position,n.mesh.position.z=o.position,n.vx=a.velocity,n.vz=o.velocity,n.mesh.position.y<=0+n.radius){if(n.mesh.position.y=0+n.radius,!n.stained&&this.bloodLevel===`full`){n.stained=!0;let e=n.radius===GW?1:.55;this.placeDecal(n.mesh.position.x,n.mesh.position.z,1.3*e,.9*e,n.mesh.rotation.z,.85,4392199)}n.bounces<2&&Math.abs(n.vy)>.42?(n.bounces+=1,n.vy=Math.abs(n.vy)*.32,n.vx*=.62,n.vz*=.62,n.vrx*=.65,n.vry*=.65,n.vrz*=.65):(n.moving=!1,n.vx=0,n.vy=0,n.vz=0,n.vrx=0,n.vry=0,n.vrz=0,n.look!==null&&this.rollOntoEar(n))}Number.isFinite(n.mesh.position.x)&&Number.isFinite(n.mesh.position.y)&&Number.isFinite(n.mesh.position.z)&&Number.isFinite(n.mesh.quaternion.x)&&Number.isFinite(n.mesh.quaternion.y)&&Number.isFinite(n.mesh.quaternion.z)&&Number.isFinite(n.mesh.quaternion.w)||(n.mesh.position.set(0,0+n.radius,0),n.mesh.quaternion.identity(),n.moving=!1,n.vx=0,n.vy=0,n.vz=0)}}rollOntoEar(e){let t=this.settleAxis.set(1,0,0).applyQuaternion(e.mesh.quaternion),n=t.y>=0?1:-1;e.settleFrom.copy(e.mesh.quaternion),e.settleTo.setFromUnitVectors(t,this.settleUp.set(0,n,0)).multiply(e.mesh.quaternion),e.settleFromY=e.mesh.position.y,e.settleToY=0+(n>0?-e.sideLow:e.sideHigh),e.settle=0}stumpRandom(e){let t=e.seed|0;return t=Math.imul(t^t>>>15,1|t),t^=t+Math.imul(t^t>>>7,61|t),e.seed=t|0,((t^t>>>14)>>>0)/4294967296}updateStumpFountains(e){if(this.bloodLevel===`full`)for(let t of[...this.stumps,...this.handStumps]){if(!t.active||t.fountainLife<=0)continue;t.fountainLife=Math.max(0,t.fountainLife-e);let n=Math.min(1,t.fountainLife/bG),r=t.fountainLife*xG%1,i=Math.exp(-(((r-.5)/SG)**2));if(t.accumulator+=e*this.forDevice(CG)*n*(wG+.88*i),t.accumulator<1)continue;let a=BG(t,IG);for(LG.set(Math.abs(a.y)<.9?0:1,+(Math.abs(a.y)<.9),0).cross(a).normalize(),RG.crossVectors(a,LG);t.accumulator>=1;){--t.accumulator;let e=this.stumpRandom(t),r=this.stumpRandom(t),o=this.stumpRandom(t),s=Math.sqrt(e)*DG,c=r*Math.PI*2;zG.copy(a).multiplyScalar(Math.cos(s)).addScaledVector(LG,Math.sin(s)*Math.cos(c)).addScaledVector(RG,Math.sin(s)*Math.sin(c)).multiplyScalar(R.lerp(TG,EG,o)*(.7+.3*i)*(.55+.45*n)),this.spawnDroplet(t.mesh.position.x+a.x*.015+(e-.5)*.03,t.mesh.position.y+a.y*.015,t.mesh.position.z+a.z*.015+(r-.5)*.03,zG.x,zG.y,zG.z,Vv(e),1.2+o*.6,!0,.004+o*o*.01)}}}update(e){for(this.canvasBlood.update(UK(e)),this.lens.update(UK(e)),this.simulationRemainder+=UK(e);this.simulationRemainder+1e-9>=pG;)this.simulationRemainder=Math.max(0,this.simulationRemainder-pG),this.simulate(pG);for(let e of this.guts)e.active&&e.sinceDrop<0&&e.rope.hold(e.anchor)&&(e.moved=!0),e.moved&&=(e.tube.write(e.rope),!1)}simulate(e){this.shake*=.02**e,this.updateDripEmitters(e),this.updateGushes(e),this.updateStumpFountains(e),this.updateDetachedParts(this.heads,e),this.updateDetachedParts(this.hands,e),this.updateShields(e),this.updateEyes(e),this.updateDebris(this.gibs,this.gibMesh,e),this.updateDebris(this.shards,this.shardMesh,e),this.updateDebris(this.eyeballs,this.eyeballMesh,e);for(let t of this.viscera)t.moving&&this.updateDebris(t.pieces,t.mesh,e,t);this.updateWounds(e),this.updateParts(e),this.updateSpines(e),this.updateGuts(e),this.updateHeart(e),this.updateCorpses(e);let t=this.liveDroplets,n=!1;for(let t=0;t0&&(this.dropletBuffers.position.needsUpdate=!0,this.dropletBuffers.color.needsUpdate=!0,this.uploadDroplets(0,this.liveDroplets,n));let r=!1;for(let[t,n]of this.mists.entries()){if(!n.alive)continue;if(r=!0,n.life-=e,n.life<=0){n.alive=!1,this.mistPositions[t*3+1]=-50;continue}let i=1-n.life/n.maxLife;this.mistPositions[t*3]=n.x,this.mistPositions[t*3+1]=n.y+i*.14,this.mistPositions[t*3+2]=n.z,this.mistColors[t*4+3]=Math.max(0,1-i)*Math.min(1,n.scale)}r&&(this.mistGeometry.attributes.position.needsUpdate=!0,this.mistGeometry.attributes.color.needsUpdate=!0)}clearDroplets(e){let t=this.liveDroplets;for(let t=0;t0))return;let s=VG((Number.isSafeInteger(i)?i:0)*15485863+e.charCodeAt(0)*131+e.length*977+7),c=BK(n),l=Math.max(.2,$(a,1)),u=$(t.x),d=$(t.y,1.2),f=$(t.z),p=Math.min(Math.round(r),this.debrisPlaces(e));for(let t=0;t0))return;let o=Number.isSafeInteger(i)?i:0,s=VG(o*86243+nK.indexOf(e)*3331+59),c=BK(n),l=Hv[e],u=Math.max(.2,$(a,1)),d=$(t.x),f=$(t.y,1.2),p=$(t.z),m=Math.min(rK,r);for(let t=this.forDevice(m);t>0;--t){let t=s()*Math.PI*2,n=(.5+s()*1.9)*u;this.sprayDroplet(c,d+(s()-.5)*.08,f+(s()-.5)*.08,p+(s()-.5)*.08,(.4+s()*1.9)*u+Math.sin(t)*n*.35,(.3+s()*2.3)*Math.sqrt(u),Math.cos(t)*n*.8,Uv(e,s()),.7+s(),!0,(.004+s()**2*.013)*l.drop,e)}if(e===`blood`){for(let e=Math.min(48,Math.round(m/25));e>0;--e)this.spawnMist(d+(s()-.5)*.4,f+(s()-.5)*.3,p+(s()-.5)*.4,.9+s()*1.5,.6+s()*.7);this.splatter(d+c.x*.3,p+c.z*.3,1+Math.min(2.4,m/500),s,Math.min(50,Math.round(m/20))),this.splashLens(d,f,p,Math.min(3,m/350),o)}else for(let e=Math.min(10,Math.round(m/30));e>0;--e){let t=.2+s()*.9*u;this.placeDecal(d+c.x*t+(s()-.5)*.5,p+c.z*t+(s()-.5)*.5,.5+s()*.9,.3+s()*.7,s()*Math.PI,.7*l.soak,e%2==0?l.splash:l.stain)}this.shake=Math.min(.22,this.shake+Math.min(.06,m/2e4))}puddle(e,t,n,r,i){if(this.bloodLevel!==`full`)return;let a=Hv[r];this.canvasBlood.pool($(e),$(t),Math.max(.02,$(n,.1)),.95*a.soak,i,a.pool)}shed(e,t){if(this.bloodLevel!==`full`)return;let n=VG(t*7919+11);this.spawnDroplet($(e.x)+(n()-.5)*.05,$(e.y,1),$(e.z)+(n()-.5)*.05,(n()-.5)*.2,-.1,(n()-.5)*.2,Uv(`blood`,n()),1.6,!0)}smear(e,t,n,r,i){this.bloodLevel===`full`&&this.canvasBlood.smear(e,t,n,r,Math.max(.005,$(i,.05)),.75,Hv.blood.splash)}footprint(e,t,n,r,i){this.bloodLevel===`full`&&i>0&&this.canvasBlood.print(e,t,n,r,Math.min(1,i)*.85,Hv.blood.splash)}setWound(e,t,n,r=`blood`){let i=this.woundAt(e,t);if(i===null)return;let a=this.bloodLevel===`full`?R.clamp($(n),0,1):0;a>0&&i.strength<=0&&(i.anchored=!1,i.accumulator=0,i.run=0,i.pool=0),i.strength=a,i.fluid=r,this.shareWounds()}anchorWound(e,t,n,r){let i=this.woundAt(e,t);i===null||i.strength<=0||(i.position.set($(n.x),$(n.y,1.2),$(n.z)),r.lengthSq()>1e-8&&Number.isFinite(r.lengthSq())&&i.axis.copy(r).normalize(),i.anchored=!0)}woundStrength(e,t){return this.woundAt(e,t)?.strength??0}clearWounds(e){for(let[t,n]of this.wounds.entries())(e===void 0||Math.floor(t/et.length)===Math.trunc(e))&&(n.strength=0);this.shareWounds()}get openWounds(){return this.woundsOpen}woundAt(e,t){let n=Math.trunc(e);return n>=0&&nuK?uK/e:1}updateWounds(e){if(this.woundsOpen!==0&&this.bloodLevel===`full`){this.woundClock+=e;for(let t=0;t=dK){n.run-=dK;let e=.12+lK*r*r,i=l.y*e,a=(i+Math.sqrt(i*i+2*YW*Math.max(0,u.y-0)))/YW,o=u.x+l.x*e*a,s=u.z+l.z*e*a;n.pool<=0||Math.hypot(o-n.poolX,s-n.poolZ)>Math.max(.12,n.pool*1.2)?(n.poolX=o,n.poolZ=s,n.pool=.03):n.pool=Math.min(fK*(.25+.75*r),n.pool+.012);let c=Hv[n.fluid];this.canvasBlood.pool(n.poolX,n.poolZ,n.pool,.95*c.soak,t*7+Math.round(n.pool*80),c.pool)}if(n.accumulator<1)continue;LG.set(Math.abs(l.y)<.9?0:1,+(Math.abs(l.y)<.9),0).cross(l).normalize(),RG.crossVectors(l,LG);let d=R.lerp(.8,DG*.8,r),f=Hv[n.fluid].drop;for(;n.accumulator>=1;){--n.accumulator;let e=Math.sqrt(this.ambientRandom())*d,t=this.ambientRandom()*Math.PI*2;zG.copy(l).multiplyScalar(Math.cos(e)).addScaledVector(LG,Math.sin(e)*Math.cos(t)).addScaledVector(RG,Math.sin(e)*Math.sin(t)).multiplyScalar(c*(.75+this.ambientRandom()*.4)),this.spawnDroplet(u.x+l.x*.012+(this.ambientRandom()-.5)*.02,u.y+l.y*.012,u.z+l.z*.012+(this.ambientRandom()-.5)*.02,zG.x,zG.y,zG.z,Uv(n.fluid,this.ambientRandom()),1.3+r*.5,!0,(.004+this.ambientRandom()**2*.01)*f,n.fluid)}}}}burstEye(e,t,n){let r=Math.trunc(e),i=eK(r,t),a=this.eyes[i];if(r<0||r>=LW||a===void 0||!a.active)return!1;if(a.active=!1,a.bleeding=0,this.eyeMeshes[i].visible=!1,this.nerveMeshes[i].visible=!1,this.bloodLevel!==`full`)return!0;let o=Number.isSafeInteger(n)?n:0,s=VG(o*39916801+i*211+3),{x:c,y:l,z:u}=a.position;for(let e=this.forDevice(160);e>0;--e){let t=s()*Math.PI*2,n=s()*1.6-.6,r=Math.sqrt(Math.max(0,1-Math.min(1,n*n))),i=.6+s()*2.2,a=e%3!=0;this.spawnDroplet(c,l,u,Math.cos(t)*r*i,n*i+.5,Math.sin(t)*r*i,a?Vv(s()):QG,.5+s()*.7,a,.003+s()**2*.008)}for(let e=0;e<4;e+=1)this.spawnGib(c,l,u,(s()-.5)*1.6,.4+s()*1.2,(s()-.5)*1.6,s,`flesh`,r);for(let e=0;e<8;e+=1)this.spawnMist(c+(s()-.5)*.12,l+(s()-.5)*.1,u+(s()-.5)*.12,.5+s()*.6,.4+s()*.4);return this.splashLens(c,l,u,.8,o),!0}skinOf(e,t){let n=YK(t.sites===Xg,e.map),r=e.look??yb;return n.look?.set(r),n.material.color.setHex(e.color),n.injury.copyFrom(t),n.injury.setBindToPart(nq(e.geometry,r,this.bindToPartMatrix)),t.material instanceof Wd&&(n.material.clearcoat=t.material.clearcoat),n.material}flingPart(e,t,n,r,i,a,o={}){this.removePart(e);let s=this.partBox.makeEmpty();for(let e of t){let t=e.geometry.getAttribute(`position`),n=e.geometry.getIndex(),r=n===null?t.count:n.count;for(let e=0;ep.reach)&&(p=e),(m===null||e.height>m.height)&&(m=e);for(let{fan:e,opening:t}of f)e.materialIndex=eq(o.part,t===p,t===m);c.cut.set(0,0,0),p!==null&&c.cut.copy(p.centre).sub(l),qK(c.group.quaternion,r),c.group.position.copy(l).applyQuaternion(c.group.quaternion),c.group.position.set(c.group.position.x+$(n.x),c.group.position.y+$(n.y,1.2),c.group.position.z+$(n.z)),c.group.visible=!0,c.key=e,c.born=this.partsThrown++;let h=0;for(let t=0;tt.key===e)}partPosition(e,t){let n=this.parts.find(t=>t.key===e);return n!==void 0&&(t.copy(n.group.position),!0)}removePart(e){for(let t of this.parts)if(t.key===e){t.key=null,t.moving=!1,t.settle=-1,t.group.visible=!1,t.group.clear();for(let e of t.geometries)e.dispose();for(let e of t.materials)e.dispose();t.geometries.length=0,t.materials.length=0}}get activeParts(){let e=0;for(let t of this.parts)t.key!==null&&(e+=1);return e}partResting(e){return this.parts.some(t=>t.key===e&&!t.moving&&(t.settle<0||t.settle>=1))}updateParts(e){let t=this.bloodLevel===`full`;for(let n=0;n=0&&r.settle<1){r.settle=Math.min(1,r.settle+e/KW);let t=r.settle*r.settle*(3-2*r.settle);i.quaternion.slerpQuaternions(r.settleFrom,r.settleTo,t),i.position.y=r.settleFromY+(r.settleToY-r.settleFromY)*t}if(!r.moving){if(!t||r.lain>=vK)continue;let a=Math.floor(r.lain/yK);for(r.lain+=e,this.trailPoint.copy(r.cut).applyQuaternion(i.quaternion).add(i.position),r.trail+=e*this.forDevice(bK);r.trail>=1;)--r.trail,this.spawnDroplet(this.trailPoint.x,Math.max(.02,this.trailPoint.y),this.trailPoint.z,(this.ambientRandom()-.5)*.5,.2+this.ambientRandom()*.5,(this.ambientRandom()-.5)*.5,Vv(this.ambientRandom()),.6,!0);if(Math.floor(r.lain/yK)===a)continue;let o=.1+r.radius*1.8;r.pool=Math.min(o,r.pool+o*yK*1.5/vK),this.canvasBlood.pool(this.trailPoint.x,this.trailPoint.z,r.pool,.95,n*13+a);continue}let a=i.position.x,o=i.position.z;if(r.vy-=5.8*e,i.position.x+=r.vx*e,i.position.y+=r.vy*e,i.position.z+=r.vz*e,i.rotation.x+=r.vrx*e,i.rotation.y+=r.vry*e,i.rotation.z+=r.vrz*e,t)for(r.trail+=e*this.forDevice(IW),r.trail>=1&&this.trailPoint.copy(r.cut).applyQuaternion(i.quaternion).add(i.position);r.trail>=1;)--r.trail,this.spawnDroplet(this.trailPoint.x+(this.ambientRandom()-.5)*.03,this.trailPoint.y+(this.ambientRandom()-.5)*.03,this.trailPoint.z+(this.ambientRandom()-.5)*.03,r.vx*.35+(this.ambientRandom()-.5)*.9,r.vy*.35+(this.ambientRandom()-.5)*.9,r.vz*.35+(this.ambientRandom()-.5)*.9,Vv(this.ambientRandom()),.9,!0);let s=Math.max(.5,pv-r.reach-qW),c=GK(i.position.x,r.vx,a,s),l=GK(i.position.z,r.vz,o,s);if(i.position.x=c.position,i.position.z=l.position,r.vx=c.velocity,r.vz=l.velocity,i.position.y<=0+r.radius){if(i.position.y=0+r.radius,!r.stained&&t){r.stained=!0;let e=Math.min(2.4,r.radius/GW+.3);this.placeDecal(i.position.x,i.position.z,1.3*e,.9*e,i.rotation.z,.85,4392199)}if(r.bounces<2&&Math.abs(r.vy)>.42)r.bounces+=1,r.vy=Math.abs(r.vy)*.32,r.vx*=.62,r.vz*=.62,r.vrx*=.65,r.vry*=.65,r.vrz*=.65;else{r.moving=!1,r.trail=0;let e=this.settleAxis.copy(r.thin).applyQuaternion(i.quaternion);r.settleFrom.copy(i.quaternion),r.settleTo.setFromUnitVectors(e,this.settleUp.set(0,e.y>=0?1:-1,0)).multiply(i.quaternion),r.settleFromY=i.position.y,r.settleToY=0+r.thickness,r.settle=0}}Number.isFinite(i.position.x+i.position.y+i.position.z+i.quaternion.x+i.quaternion.y+i.quaternion.z+i.quaternion.w)||(i.position.set(0,0+r.thickness,0),i.quaternion.identity(),r.moving=!1,r.settle=-1)}}attachSpine(e){let t=this.spines[Math.trunc(e)];t!==void 0&&this.bloodLevel===`full`&&(t.wanted=!0)}spineOut(e){return this.spines[Math.trunc(e)]?.out===!0}spineTail(e,t){let n=this.spines[Math.trunc(e)];return n===void 0||!n.out?!1:(n.rope.node(xK,t),!0)}updateSpines(e){for(let t=0;t=1;){--n.trail;let e=a.node(Math.floor(this.ambientRandom()*12),this.gibPosition);this.spawnDroplet(e.x,e.y,e.z,(this.ambientRandom()-.5)*.8,(this.ambientRandom()-.5)*.8,(this.ambientRandom()-.5)*.8,Vv(this.ambientRandom()),.8,!0)}}}}writeSpine(e){let t=this.spines[e].rope;for(let n=0;n1e-6?i.multiplyScalar(1/a):i.set(0,1,0)),r.add(this.partVertex).multiplyScalar(.5);let o=(.9+.5*Math.min(1,n/6))*(n>=9?.55+.25*(10-n):1);this.gibMatrix.compose(r,this.gibQuaternion,this.gibScale.set(o,this.spineStretch,o)),this.spineMesh.setMatrixAt(e*xK+n,this.gibMatrix)}this.spineMesh.instanceMatrix.needsUpdate=!0;for(let n=0;ne.out);this.spineMesh.visible=n,this.shredMesh.visible=n}spillGuts(e,t,n,r=18){let i=this.guts[Math.trunc(e)];if(i===void 0||e<0||this.bloodLevel!==`full`)return;let a=Number.isSafeInteger(n)?n:0;if(i.active&&i.eventId===a)return;let o=R.clamp(Math.round($(r,18)),2,TK),s=Math.max(2,Math.min(o,this.lowTier?Math.ceil(this.budget.gutLinks/2):this.budget.gutLinks));i.active=!0,i.eventId=a,i.sinceDrop=-1,i.drip=0,i.smeared.fill(NaN),i.anchor.set($(t.x),$(t.y,.9),$(t.z)),i.rope.spill(s,o*yW/s,i.anchor,s/EK,VG(a*28657+Math.trunc(e)*5+1)),i.tube.write(i.rope),i.mesh.visible=!0,i.moved=!1}anchorGuts(e,t,n){let r=this.guts[Math.trunc(e)];r===void 0||!r.active||r.sinceDrop>=0||(r.anchor.set($(t.x),$(t.y,.9),$(t.z)),n.lengthSq()>1e-8&&Number.isFinite(n.lengthSq())&&r.away.copy(n).normalize())}gutsOut(e){return this.guts[Math.trunc(e)]?.active===!0}dropGuts(e){let t=this.guts[Math.trunc(e)];t===void 0||!t.active||t.sinceDrop>=0||(t.sinceDrop=0,t.rope.release())}clearGuts(e){for(let[t,n]of this.guts.entries())(e===void 0||t===Math.trunc(e))&&(n.active=!1,n.eventId=null,n.moved=!1,n.rope.clear(),n.mesh.visible=!1)}gutsLength(e){let t=this.guts[Math.trunc(e)];return t===void 0||!t.active?0:t.rope.length}gutsPoint(e,t,n){let r=this.guts[Math.trunc(e)];return r===void 0||!r.active?!1:(r.rope.node(Math.round(R.clamp(t,0,1)*(r.rope.nodes-1)),n),!0)}updateGuts(e){for(let t=0;t=0&&n.sinceDrop=DK&&i)){let e=r.node(r.nodes>>1,this.gibPosition);this.canvasBlood.pool(e.x,e.z,.26,.95,t+3),this.puddle(e.x+.12,e.z+.05,.11,`bile`,t+5)}if(r.step(e,n.anchor,0,Math.max(2.4383999999999997,Math.abs(n.anchor.x),Math.abs(n.anchor.z)),n.away)&&(n.moved=!0,i)){for(let e=0;e0+.024*1.5){n.smeared[e*2]=NaN;continue}let i=n.smeared[e*2],a=n.smeared[e*2+1],o=Math.hypot(t.x-i,t.z-a);o=0))for(n.drip+=e*this.forDevice(jK);n.drip>=1;){--n.drip;let e=r.node(Math.floor(this.ambientRandom()*r.nodes),this.gibPosition),t=this.ambientRandom()<.8?`blood`:`bile`;this.spawnDroplet(e.x,e.y-vW,e.z,(this.ambientRandom()-.5)*.3,-.1,(this.ambientRandom()-.5)*.3,Uv(t,this.ambientRandom()),.9,!0,.004+this.ambientRandom()*.005,t)}}}}ejectHeart(e,t,n,r=-1){if(this.bloodLevel!==`full`)return;let i=this.heart,a=VG((Number.isSafeInteger(n)?n:0)*611953+19),o=BK(t),s=2+a()*1.2,c=(a()-.5)*1.2;i.active=!0,i.moving=!0,i.owner=Math.trunc(r),i.age=0,i.beats=0,i.bounces=0,i.settle=-1,i.pool=0,i.trail=0,i.vx=s*o.x-c*o.z,i.vy=1.8+a()*1.2,i.vz=s*o.z+c*o.x,i.vrx=(a()-.5)*14,i.vry=(a()-.5)*14,i.vrz=(a()-.5)*14,i.settleTo.setFromAxisAngle(VK,a()*Math.PI*2).multiply(NK),this.heartMesh.position.set($(e.x),$(e.y,1.2),$(e.z)),this.heartMesh.quaternion.identity(),this.heartMesh.scale.setScalar(MK),this.heartMesh.visible=!0}get heartOut(){return this.heart.active}get heartBeating(){return this.heart.active&&this.heart.age<14}heartPosition(e){return this.heart.active?(e.copy(this.heartMesh.position),!0):!1}updateHeart(e){let t=this.heart;if(!t.active)return;let n=this.heartMesh,r=this.bloodLevel===`full`;if(t.moving){let i=n.position.x,a=n.position.z;t.vy-=6.4*e,n.position.x+=t.vx*e,n.position.y+=t.vy*e,n.position.z+=t.vz*e,n.rotation.x+=t.vrx*e,n.rotation.y+=t.vry*e,n.rotation.z+=t.vrz*e;let o=pv-this.heartRadius-qW,s=GK(n.position.x,t.vx,i,o),c=GK(n.position.z,t.vz,a,o);if(n.position.x=s.position,n.position.z=c.position,t.vx=s.velocity,t.vz=c.velocity,r)for(t.trail+=e*this.forDevice(IW/2);t.trail>=1;)--t.trail,this.spawnDroplet(n.position.x,n.position.y,n.position.z,t.vx*.3+(this.ambientRandom()-.5)*.8,t.vy*.3+(this.ambientRandom()-.5)*.8,t.vz*.3+(this.ambientRandom()-.5)*.8,Vv(this.ambientRandom()),.8,!0);n.position.y<=0+this.heartRadius&&(n.position.y=0+this.heartRadius,t.bounces===0&&r&&this.placeDecal(n.position.x,n.position.z,.9,.7,n.rotation.z,.8,4392199),t.bounces<2&&Math.abs(t.vy)>.4?(t.bounces+=1,t.vy=Math.abs(t.vy)*.3,t.vx*=.6,t.vz*=.6,t.vrx*=.6,t.vry*=.6,t.vrz*=.6):(t.moving=!1,t.settle=0,t.settleFrom.copy(n.quaternion),t.settleFromY=n.position.y)),Number.isFinite(n.position.x+n.position.y+n.position.z)||(n.position.set(0,0+this.heartRest,0),n.quaternion.copy(t.settleTo),t.moving=!1,t.settle=1)}else if(t.settle<1){t.settle=Math.min(1,t.settle+e/KW);let r=t.settle*t.settle*(3-2*t.settle);n.quaternion.slerpQuaternions(t.settleFrom,t.settleTo,r),n.position.y=t.settleFromY+(0+this.heartRest-t.settleFromY)*r}if(t.age>=14)return;t.age+=e;let i=iW(t.age),a=rW(t.age),o=aW(a)*(.35+.65*i);if(n.scale.set(MK*(1-.17*o),MK*(1+.08*o),MK*(1-.17*o)),Math.floor(a)<=t.beats||(t.beats=Math.floor(a),!r))return;let s=this.trailPoint.copy(eW.position).multiply(n.scale).applyQuaternion(n.quaternion).add(n.position),c=IG.copy(eW.direction).applyQuaternion(n.quaternion);LG.set(Math.abs(c.y)<.9?0:1,+(Math.abs(c.y)<.9),0).cross(c).normalize(),RG.crossVectors(c,LG);for(let e=this.forDevice(Math.round(8+PK*i));e>0;--e){let e=Math.sqrt(this.ambientRandom())*.2,t=this.ambientRandom()*Math.PI*2;zG.copy(c).multiplyScalar(Math.cos(e)).addScaledVector(LG,Math.sin(e)*Math.cos(t)).addScaledVector(RG,Math.sin(e)*Math.sin(t)).multiplyScalar((.7+2.9*i)*(.5+.55*this.ambientRandom())),this.spawnDroplet(s.x,s.y,s.z,zG.x,zG.y,zG.z,Vv(this.ambientRandom()),1.1,!0,.004+this.ambientRandom()**2*.011)}t.moving||(t.pool=Math.min(.3,t.pool+.022),this.canvasBlood.pool(n.position.x,n.position.z,t.pool,.95,t.beats))}setCorpse(e,t){let n=Math.trunc(e),r=this.corpses[n];r!==void 0&&(t===null||this.bloodLevel!==`full`?this.clearCorpse(n):(r.active||(r.active=!0,r.age=0,r.puddle=0),r.position.set($(t.x),Math.max(0,$(t.y,0)),$(t.z))))}fliesOver(e){let t=this.corpses[Math.trunc(e)];return t===void 0||!t.active?0:this.fliesArrived(t.age)}fliesArrived(e){let t=this.lowTier?this.budget.flies>>1:this.budget.flies;return Math.floor(R.clamp((e-FK)/IK,0,1)*t)}updateCorpses(e){for(let t=0;t=n.puddle+.04&&(n.puddle=r,this.puddle(n.position.x,n.position.z,r,`urine`,t*11+Math.round(r*25)));let i=this.fliesArrived(n.age);if(i===0)continue;let a=this.budget.flies,o=IK/(this.lowTier?a>>1:a);for(let e=0;e=i)this.gibMatrix.makeScale(0,0,0).setPosition(0,-50,0);else{let t=Math.min(1,(n.age-FK-e*o)/LK),i=kW(this.flies,r,n.age,this.gibPosition),a=1+(1-t)*2.5;this.gibMatrix.makeTranslation(n.position.x+i.x*a,Math.max(.03,n.position.y+i.y+(1-t)*(1-t)*1.6),n.position.z+i.z*a)}this.flyMesh.setMatrixAt(r,this.gibMatrix)}this.flyMesh.visible=!0,this.flyMesh.instanceMatrix.needsUpdate=!0}}clearCorpse(e){let t=this.corpses[e];if(t.active){t.active=!1,this.gibMatrix.makeScale(0,0,0).setPosition(0,-50,0);for(let t=0;te.active)}}dispose(){this.scene.remove(this.dropletMesh),this.scene.remove(this.mistPoints),this.scene.remove(this.gibMesh),this.scene.remove(this.shardMesh),this.scene.remove(this.eyeballMesh);for(let e of this.viscera)this.scene.remove(e.mesh),e.mesh.dispose(),e.geometry.dispose();this.visceraMaterial.dispose();for(let e of this.parts)e.key!==null&&this.removePart(e.key),this.scene.remove(e.group);this.limbMaterial.dispose(),this.limbMap.dispose(),this.trunkMaterial.dispose(),this.trunkMap.dispose(),this.scene.remove(this.spineMesh,this.shredMesh,this.heartMesh,this.flyMesh),this.spineMesh.dispose(),this.shredMesh.dispose(),this.shredGeometry.dispose();for(let e of this.guts)this.scene.remove(e.mesh),e.tube.dispose();this.heartGeometry.dispose(),this.flyMesh.dispose(),this.flyGeometry.dispose(),this.flyMaterial.dispose(),this.dropletMesh.dispose(),this.dropletGeometry.dispose(),this.dropletMaterial.dispose(),this.canvasBlood.dispose();for(let e of[...this.heads,...this.hands])e.baked?.dispose(),e.bakedFlesh?.dispose();for(let e of[...this.stumps,...this.handStumps])e.flesh.dispose();this.mistGeometry.dispose(),this.mistMaterial.dispose(),this.mistMap.dispose(),this.gibMesh.dispose(),this.gibGeometry.dispose(),this.gibMaterial.dispose(),this.shardMesh.dispose(),this.eyeballMesh.dispose(),this.shardGeometry.dispose(),this.shardMaterial.dispose(),this.jawMaterial.dispose(),this.jawMap.dispose(),this.headGeometry.dispose();for(let e of this.headMaterials)e.dispose();this.handGeometry.dispose();for(let e of this.handMaterials)e.dispose();this.stumpGeometry.dispose(),this.wristStumpGeometry.dispose(),this.shieldGeometry.dispose();for(let e of this.shieldMaterials)e.dispose();for(let e of this.shieldMeshes)this.scene.remove(e);this.eyeGeometry.dispose(),this.eyeMap.dispose(),this.eyeMaterial.dispose(),this.nerveGeometry.dispose(),this.nerveMaterial.dispose();for(let e of[...this.eyeMeshes,...this.nerveMeshes])this.scene.remove(e);if(this.stumpMaterial.dispose(),this.stumpMap.dispose(),this.wristMaterial.dispose(),this.wristMap.dispose(),this.bakedStandIns!==null){this.bakedStandIns.map.dispose();for(let e of this.bakedStandIns.materials)e.dispose();for(let e of this.bakedStandIns.instanced)e.dispose();this.bakedStandIns=null}for(let e of this.heads)this.scene.remove(e.mesh);for(let e of this.hands)this.scene.remove(e.mesh);for(let e of[...this.stumps,...this.handStumps])this.scene.remove(e.mesh)}},aq={maximum:1,minimum:.55,slowMs:24,fastMs:17.5,windowMs:1e3,step:.15},oq=10,sq=10,cq=160,lq=3,uq=3,dq=class{options;scale;elapsed=0;frames=0;fastWindows=0;holdWindows=0;fruitlessAttempts=0;pending=null;raised=null;raiseHoldWindows=0;failedRaises=0;constructor(e=aq){this.options=e,this.scale=e.maximum}record(e){if(!(e>0)||e>1e3||(this.elapsed+=e,this.frames+=1,this.elapsede.before*.9)return this.scale=e.previous,this.holdWindows=Math.min(cq,oq*2**this.fruitlessAttempts),this.fruitlessAttempts+=1,!0;this.fruitlessAttempts=0}if(this.raised!==null){let e=this.raised;if(t>this.options.slowMs)return this.raised=null,this.scale=e.previous,this.fastWindows=0,this.raiseHoldWindows=Math.min(cq,sq*2**this.failedRaises),this.failedRaises+=1,!0;e.windows+=1,e.windows>=uq&&(this.raised=null,this.failedRaises=0)}if(t>this.options.slowMs){if(this.fastWindows=0,this.holdWindows>0)return--this.holdWindows,!1;if(this.scale<=this.options.minimum)return!1;let e=this.scale;return this.scale=Math.max(this.options.minimum,this.scale-this.options.step),this.pending={before:t,previous:e},!0}return t0?(--this.raiseHoldWindows,!1):this.fastWindows>=lq&&this.scale0&&e.poise===0)return 1;if(e.is_downed)return pq;let n=e.stunned_ticksthis.value?7:.9;return this.value+=(e-this.value)*(1-Math.exp(-n*Math.max(0,t))),e===0&&this.value<.003&&(this.value=0),this.value}},gq=.4,_q=.5,vq={before:24,after:24,speed:.5};function yq(e,t,n=30,r=gq,i=42,a=33){let o=t.tick-i,s=t.tick+a,c=e.filter(e=>e.tick>=o-1&&e.tick<=s+1),l=c.at(-1),u=l!==void 0&&l.result!==null&&l.tick({...l,tick:l.tick+t+1,events:[]}))]:c,d=u[0],f=u.at(-1);if(d===void 0||f===void 0||u.length<8||d.tick>t.tick-12||f.tick=1&&this.lastHeat<1&&!r&&(this.flare=1),this.lastHeat=t,this.flare=Math.max(0,this.flare-n/wq);let a=this.mesh.material;if(a.opacity=Math.min(1,t*.8+this.flare*.6),this.mesh.visible=a.opacity>.01,!this.mesh.visible)return;this.mesh.position.copy(e),this.mesh.quaternion.copy(i.quaternion);let o=Sq*(.55+.45*t)*(1+this.flare*Cq);this.mesh.scale.set(o,o,1)}get active(){return this.mesh.visible}standIn(){return new H(this.mesh.geometry,this.mesh.material)}reset(){this.flare=0,this.lastHeat=0,this.mesh.material.opacity=0,this.mesh.visible=!1}dispose(){this.mesh.geometry.dispose(),this.mesh.material.dispose()}},Mq=class{group=new pc;flash;ring;age=1/0;constructor(e){this.flash=Aq(e,new V(1,.86,.62)),this.flash.material.depthTest=!1,this.ring=new H(new Od(.42,.5,40),new jl({color:xq,blending:2,depthWrite:!1,transparent:!0,side:2})),this.flash.renderOrder=6,this.ring.renderOrder=6,this.group.add(this.flash,this.ring),this.group.visible=!1}fire(e){this.age=0,this.group.position.copy(e)}update(e,t){this.age+=e;let n=this.age/Tq,r=this.age/Dq;if(this.group.visible=r<1,!this.group.visible)return;this.group.quaternion.copy(t.quaternion),this.flash.visible=n<1;let i=Eq*(.35+.65*Math.sqrt(Math.min(1,n)));this.flash.scale.set(i,i,1),this.flash.material.opacity=(1-Math.min(1,n))**2;let a=Oq*(.15+.85*(1-(1-r)**3));this.ring.scale.set(a,a,a),this.ring.material.opacity=.9*(1-r)}get active(){return this.group.visible}standIns(){return[new H(this.flash.geometry,this.flash.material),new H(this.ring.geometry,this.ring.material)]}reset(){this.age=1/0,this.group.visible=!1}dispose(){this.flash.geometry.dispose(),this.flash.material.dispose(),this.ring.geometry.dispose(),this.ring.material.dispose()}},Nq=10,Pq=.055,Fq=3.2,Iq=1.4,Lq=class{color;mesh;geometry;positions=new Float32Array(60);colors=new Float32Array(80);history=[];last=new B;hasLast=!1;tangent=new B;side=new B;toCamera=new B;shade=new V;strength=0;heat=0;constructor(e){this.color=e,this.geometry=new gl,this.geometry.setAttribute(`position`,new tl(this.positions,3).setUsage(Oo)),this.geometry.setAttribute(`color`,new tl(this.colors,4).setUsage(Oo));let t=[];for(let e=0;e<9;e+=1){let n=e*2;t.push(n,n+1,n+2,n+1,n+3,n+2)}this.geometry.setIndex(t);let n=new jl({vertexColors:!0,transparent:!0,blending:2,depthWrite:!1,side:2});this.mesh=new H(this.geometry,n),this.mesh.frustumCulled=!1,this.mesh.visible=!1,this.mesh.renderOrder=4}update(e,t,n,r,i=0){if(t<=0)return;let a=this.hasLast?e.distanceTo(this.last)/t:0;this.last.copy(e),this.hasLast=!0,this.heat=i>this.heat?i:this.heat+(i-this.heat)*Math.min(1,t*6);let o=Fq*(1-.55*this.heat),s=r&&a>o?Math.min(1,(a-o)/4+this.heat*.4):0;this.strength+=(s-this.strength)*Math.min(1,t*18);let c=this.history.length>=Nq?this.history.shift():new B;if(c.copy(e),this.history.push(c),this.strength<.02||this.history.length<3){this.mesh.visible=!1;return}let l=this.history.length,u=this.shade.copy(this.color).lerp(xq,this.heat),d=Pq*(1+Iq*this.heat);for(let e=0;e3*t}function Vq(e,t,n){let r=e.detail.endsWith(`:head`)||e.detail.endsWith(`:body`);return t===void 0||![`hit`,`counter_hit`].includes(e.kind)||!r||n===null||n.winner_id===null||n.winner_id!==e.actor_id?!1:n.finish_method===`flash_ko`||(n.finish_method===`ko`||n.finish_method===`tko`)&&t.is_downed}function Hq(e){for(let t of e.passes)t.dispose?.();e.dispose()}function Uq(e,t,n,r,i){e.setRenderTarget(t.readBuffer);let a=e.compileAsync(n,r,i);return e.setRenderTarget(null),a}var Wq=-4e-4,Gq=10,Kq=16;function qq(e,t,n){let r=t?Kq:n;e.autoUpdate=!t,e.intensity=+!t,e.bias=t?Gq:Wq,e.mapSize.x!==r&&(e.mapSize.set(r,r),e.map?.dispose(),e.map=null,e.needsUpdate=!0)}function Jq(e,t){let n=t.fighters.findIndex(t=>t.player_id===e.target_id),r=t.fighters.findIndex(t=>t.player_id===e.actor_id),i=e.kind===`block`||e.kind===`perfect_block`;return{recipientIndex:i?r:n,puncherIndex:i?n:r}}function Yq(e,t,n){if(e===void 0||t===void 0)return;let r=n.x(t.x)-n.x(e.x),i=n.z(t.y)-n.z(e.y),a=Math.hypot(r,i);return Number.isFinite(a)&&a>.001?{x:r/a,z:i/a}:void 0}var Xq=e=>e.kind===`hit`||e.kind===`counter_hit`,Zq=e=>e.kind===`block`||e.kind===`perfect_block`,Qq=480,$q=.56,eJ=1.8,tJ=1.7,nJ=1.2,rJ=1.6,iJ=30,aJ=6.5,oJ=.4,sJ=600,cJ=2.8,lJ=.6,uJ=[[1,0],[-1,0],[.75,-.66],[-.75,-.66],[.75,.66],[-.75,.66]],dJ=.15,fJ=.6,pJ=2.3,mJ=.5,hJ=3.42,gJ=2.2,_J=.9,vJ=`body`,yJ=`collapse`,bJ=.55,xJ=.5,SJ=.5,CJ=.28,wJ=104,TJ=260,EJ=.05,DJ=2.95,OJ=2.4,kJ=1.6,AJ=.98,jJ=500,MJ={uniforms:{tDiffuse:{value:null},uTime:{value:0},uVignette:{value:.32},uGrain:{value:.035},uRocked:{value:0}},vertexShader:` varying vec2 vUv; void main() { vUv = uv; @@ -5536,8 +5536,8 @@ void main() { float grain = (hash(floor(vUv * vec2(960.0, 540.0))) - 0.5) * uGrain; color.rgb += grain * (0.15 + color.rgb); gl_FragColor = color; -}`},MJ=[{x:-102,y:-16},{x:102,y:-16}],NJ=[0,1],PJ=.5,FJ={x:0,z:-.2},IJ=0,LJ=200,RJ=1.3,zJ=.7,BJ=4.5;function VJ(e,t,n,r){let i=n.x-e,a=n.y-t,o=Math.hypot(i,a);return o<=Math.max(r,1e-6)?{x:n.x,y:n.y,arrived:!0}:{x:e+i/o*r,y:t+a/o*r,arrived:!1}}var HJ=16,UJ=.6,WJ={hit:.18,counter_hit:.3,guard_break:.25,knockdown:1,block:.04,perfect_block:.1,parry:.22,body_collapse:.45},GJ=new Set([`hit`,`counter_hit`,`block`,`perfect_block`,`guard_break`,`knockdown`,`parry`,`body_collapse`,`eye_shut`]),KJ=new Set([`parry`,`body_collapse`,`eye_shut`]),qJ=new Set([`hit`,`counter_hit`,`block`,`perfect_block`]),JJ=1.2,YJ=1500,XJ=.8,ZJ=2.4,QJ=2.5,$J=new Set([`referee_hit`,`referee_down`]),eY=.05,tY=.08,nY={parry:{text:`PARRIED`,seconds:1},eye_shut:{text:`EYE SWOLLEN SHUT`,seconds:1.6}},rY=new Set([`injury`,`vomit`,`finish_him`,`fatality`,`death`]),iY=1.8,aY=3,oY=.6;function sY(e,t){let n=gt(e,t);return n!==`severed`&&n!==`torn`}function cY(e){return e.kind===`death`?e.detail===`brain`?`head_burst`:null:e.kind===`fatality`?e.detail===`head_burst`?`head_burst`:e.detail===`decapitation`||e.detail===`spine_rip`?`decapitation`:null:null}var lY=e=>e.kind===`knockdown`&&e.detail===`body`;function uY(e,t){if(Yq(e)&&e.action_id!==null)return t.find(t=>Xq(t)&&t.action_id===e.action_id&&t.actor_id===e.target_id&&t.target_id===e.actor_id)}function dY(e,t){if(Xq(e)&&e.action_id!==null)return t.find(t=>Yq(t)&&t.action_id===e.action_id&&t.actor_id===e.target_id&&t.target_id===e.actor_id)}function fY(e,t){return e.map((n,r)=>{if(KJ.has(n.kind)||n.kind===`knockdown`&&n.detail===vJ)return{event:n,presentationEvent:n,presentImpact:!1,reactAmount:null};let{puncherIndex:i}=qq(n,t),a=t.fighters[i],o=a?.action_key?.split(`:`)??[],s=o.length>=3?`${o[0]}:${o[2]}`:n.detail,c=dY(n,e);if(Xq(n))return{event:n,presentationEvent:{...n,detail:c?.detail||s,direction:c?.direction??a?.facing??n.direction,blood:c?.blood??n.blood},presentImpact:!0,reactAmount:n.amount};if(uY(n,e)!==void 0)return{event:n,presentationEvent:n,presentImpact:!1,reactAmount:n.amount};if(n.kind===`knockdown`){let t=e.slice(0,r).reverse().find(e=>Yq(e)&&e.tick===n.tick&&e.actor_id===n.actor_id&&e.target_id===n.target_id);if(t!==void 0)return{event:n,presentationEvent:{...n,detail:t.detail,direction:t.direction,blood:t.blood,action_id:t.action_id},presentImpact:!0,reactAmount:uY(t,e)===void 0?null:t.amount}}return{event:n,presentationEvent:n,presentImpact:!0,reactAmount:n.amount}})}function pY(e){let t=e?.trauma;if(t===void 0)return{side:1,lift:.08,lateral:.035,prop:`enswell`};switch(e?.corner_choice){case`cut`:return{side:t.right_cut>t.left_cut?-1:1,lift:.11,lateral:.04,prop:`enswell`};case`swelling`:return{side:t.right_eye>t.left_eye?-1:1,lift:.08,lateral:.035,prop:`enswell`};case`breath`:return{side:1,lift:-.015,lateral:0,prop:`bottle`};default:return{side:t.right_eye+t.right_cut>t.left_eye+t.left_cut?-1:1,lift:.08,lateral:.035,prop:`enswell`}}}function mY(e){return e?.split(`:`)[1]===`right`?1:-1}function hY(e){return e.result===null?e.tick-1:e.tick}var gY=50,_Y=40,vY=40,yY=50,bY=[`jab`,`straight`,`hook`,`uppercut`];function xY(e,t,n,r){if(!Bq(e,t,n))return null;let i=r?.action_key?.split(`:`),a=e.detail.split(`:`).find(e=>bY.includes(e))??i?.[0],o=i?.[1]===`right`?`left`:`right`,s=e.amount;return e.detail.endsWith(`:head`)?n?.finish_method===`flash_ko`||e.kind===`counter_hit`&&s>=70?`head_burst`:a===`uppercut`&&s>=_Y||a===`straight`&&s>=gY?`decapitation`:(a===`hook`||a===`jab`)&&s>=vY?`eye_${o}`:`jaw_dislocation`:a===`hook`?s>=yY?`dismember_${o}`:`shoulder_${o}`:`ribs_${o}`}function SY(){let e=document.createElement(`canvas`);e.width=128,e.height=128;let t=e.getContext(`2d`);if(t!==null){let e=t.createRadialGradient(64,64,8,64,64,62);e.addColorStop(0,`rgba(0,0,0,0.68)`),e.addColorStop(.6,`rgba(0,0,0,0.34)`),e.addColorStop(1,`rgba(0,0,0,0)`),t.fillStyle=e,t.fillRect(0,0,128,128)}return new Bu(e)}var CY=.42,wY=.16;function TY(e){return .9*R.clamp(1-e/wY,0,1)}var EY=new B(0,.12,.02),DY=new B(0,1,0),OY=new WeakMap;function kY(e){let t=OY.get(e);return t===void 0&&(t=Wv(e,JY),OY.set(e,t)),t}function AY(e){return e.y>Qg-1.4}var jY=new WeakMap;function MY(e){let t=jY.get(e);return t===void 0&&(t=Wv(e,AY),jY.set(e,t)),t}function NY(e,t,n){let r=e.bone(`head`);if(r===null)return null;e.root.updateMatrixWorld(!0);let i=e.headMesh,a=MY(i.geometry);if(a.length===0)return null;let o=t.length===a.length*3?t:new Float32Array(a.length*3);n.position.set(0,0,0);for(let[t,r]of a.entries())HY(e,r,n.scratch),n.scratch.toArray(o,t*3),n.position.add(n.scratch);return n.position.multiplyScalar(1/a.length),r.getWorldQuaternion(n.quaternion),n.across.set(1,0,0).applyQuaternion(n.quaternion),n.scratch.set(0,1,0).applyQuaternion(n.quaternion),n.quaternion.setFromUnitVectors(DY,n.scratch),o}function PY(e,t,n,r){let i=e?.currentRoot;return r.set(i?.x??n.x(t.x),0,i?.z??n.z(t.y))}function FY(e,t,n,r,i){let a=Math.hypot(e-n,t-r);return a>=i?{x:e,z:t}:a<1e-6?{x:n,z:r-i}:{x:n+(e-n)/a*i,z:r+(t-r)/a*i}}var IY=[0,1.05,-1.05,2.1,-2.1,Math.PI];function LY(e,t,n,r,i,a,o=[]){let s=n===null?0:Math.hypot(n.x,n.z),c=n!==null&&s>=.35?[Math.atan2(n.x,n.z)]:[];for(let e of IY)c.push(a+e);for(let n of c){let a=R.clamp(e+Math.sin(n)*r,-i,i),s=R.clamp(t+Math.cos(n)*r,-i,i),c=Math.hypot(a-e,s-t);if(!(c{let r=R.clamp(((n.x-e)*(a-e)+(n.z-t)*(s-t))/(c*c),.25,1);return Math.hypot(e+(a-e)*r-n.x,t+(s-t)*r-n.z)1e-9&&(s=Math.min(s,(Math.sign(n)*i-e)/n)),Math.abs(r)>1e-9&&(s=Math.min(s,(Math.sign(r)*a-t)/r));for(let i of[-1,1])for(let a of[-1,1]){let c=i*n+a*r;c>1e-9&&(s=Math.min(s,(o-i*e-a*t)/c))}return Math.max(0,s)}function zY(e,t,n,r,i,a,o,s=1/0){let c=Math.hypot(n-e,r-t);if(c>=i)return null;let l=c<1e-6?1:(n-e)/c,u=c<1e-6?0:(r-t)/c,d=i-c,f=RY(e,t,-l,-u,a,o,s),p=RY(n,r,l,u,a,o,s),m=Math.min(d/2,f),h=Math.min(d-m,p);m=Math.min(d-h,f);let g=R.clamp;return{ax:g(e-l*m,-a,a),ay:g(t-u*m,-o,o),bx:g(n+l*h,-a,a),by:g(r+u*h,-o,o)}}var BY=new WeakMap;function VY(e,t,n,r,i,a,o,s=null){let c=BY.get(e);if(c!==void 0&&c.width===t&&c.height===n)return c.top;let l=zi(t,n,Ii(e,r,i,r.map(e=>a.total(e.player_id)),s),!0).y;return BY.set(e,{width:t,height:n,top:l}),l}function HY(e,t,n){let r=e.headMesh;return jb(n.fromBufferAttribute(r.geometry.getAttribute(`position`),t),e.look,n),r.applyBoneTransform(t,n).applyMatrix4(r.matrixWorld)}var UY=new Ns,WY=new Ns,GY=new Rs;function KY(e,t,n){let r=e.geometry;UY.fromBufferAttribute(r.getAttribute(`skinIndex`),t),WY.fromBufferAttribute(r.getAttribute(`skinWeight`),t),n.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);for(let t=0;t<4;t+=1){let r=WY.getComponent(t);if(r===0)continue;let i=UY.getComponent(t);GY.multiplyMatrices(e.skeleton.bones[i].matrixWorld,e.skeleton.boneInverses[i]);for(let e=0;e<16;e+=1)n.elements[e]+=GY.elements[e]*r}return n.premultiply(e.bindMatrixInverse).multiply(e.bindMatrix)}var qY=new B(-1,0,0);function JY(e){return e.y>Xg-Zg*(e.z- -4)-.3}var YY={tick_rate:30,ring_half_width:500,ring_half_height:500};function XY(e,t,n,r,i,a,o=!0){let s=e.geometry,c=s.getAttribute(`position`),l=s.getIndex(),u=[],d=l!==null&&r===void 0?[]:null;if(l===null||d===null)for(let e=0;e=i.start+o))return{action:i.punchClass,action_hand:i.hand,action_target:`head`,action_power:`normal`,action_id:`idle-${n}-${r}`,action_key:`${i.punchClass}:${i.hand}:head:normal`,action_start_tick:e-(t-i.start),action_startup_ticks:a.startup,action_active_ticks:a.active,action_recovery_ticks:a.recovery,action_contact_tick:e-(t-i.start)+a.startup}}return{}}var rX=1000003,iX=1.6;function aX(e,t,n,r,i,a){let o=r<0?-1:1,s=o=>Math.hypot(R.clamp(e+n*o*i,-a,a)-e,R.clamp(t+r*o*i,-a,a)-t);return s(o)>=i*.8||s(o)>=s(-o)?o:-o}function oX(e,t,n){return t?e.kind===`knockdown`?1:Math.min(1,.35+e.amount/400):(n===`full`?1:n===`reduced`?.4:0)*(e.kind===`knockdown`?.85:e.amount>=50?Math.min(.75,(e.amount-30)/140):0)}function sX(e){if(e.kind!==`hit`&&e.kind!==`counter_hit`||e.amount<(e.detail.endsWith(`:body`)?70:50))return null;let t=Math.min(100,Math.max(0,e.blood));return{seconds:.6+t/50,rate:150+e.amount*1.5+t*2}}function cX(e,t){return t===`full`?e>100?Math.min(.65,e/1800):0:e>350?Math.min(.3,e/4600):0}function lX(e){return!e.is_downed&&e.stunned_ticks===0&&e.clinch_ticks===0&&e.clinch_startup_ticks===0&&e.taunt_ticks===0&&!e.is_foul_recovery_target}function uX(e,t){if(e===null)return null;let n=t.fighters.find(t=>t.player_id===e.target_id),r=t.fighters.find(t=>t.player_id===e.actor_id);return xY(e,n===void 0?void 0:{...n,is_downed:!0},{finish_method:`ko`,winner_id:e.actor_id},r)}var dX=.2,fX=1.1,pX=1.6,mX=2.4,hX=2,gX=new B(0,-.1,.08),_X=new B(0,-.07,.1),vX=new B(0,-.35,1),yX=3,bX=320,xX=8,SX=1.6,CX=.08,wX=.12,TX=e=>e===`shoulder_left`||e===`shoulder_right`||e===`ribs_left`||e===`ribs_right`?e:`mouth`;function EX(e,t,n=fX){return Math.min(n,.06+.08*Math.sqrt(Math.max(0,e))*Math.min(1.6,Math.max(0,t)))}function DX(e,t,n){return e.is_downed||t?.isDown===!0||n!==void 0&&e.player_id===n}var OX=6,kX=11,AX=.13;function jX(e,t){let n=t===`left`?`leftRibs`:`rightRibs`;e.impact(n,[t===`left`?-6:OX,-6*.15,-1.5],kX),e.set(n,{bruise:1.2,swell:0,blood:1.4})}function MX(e,t){e.set(`mouth`,{cut:1,blood:1.4}),e.set(`chin`,{bruise:1.2}),t.set(`neckSmear`,{blood:1.4})}function NX(e,t){e.set(t===`left`?`leftShoulderSmear`:`rightShoulderSmear`,{blood:1.4}),e.set(t===`left`?`leftPec`:`rightPec`,{bruise:1.1})}var PX=new WeakMap;function FX(e,t){let n=PX.get(e);if(n===void 0){let t=e.getAttribute(`position`),r=new B,i=new B,a=j_.map(e=>{let n=0,a=1/0;i.set(e[0],e[1],e[2]);for(let e=0;ethis.onAnnouncement?.(e),cue:e=>this.onCrowdCue?.(e)});touchControls=Ke();resultAnnounced=!1;captionText=``;rocked=new mq;tmpA=new B;tmpB=new B;contactPoint=new B;cornerPanelTop=null;mouthPoint=new B;tmpHead=new B;tmpHeadQuaternion=new ms;tmpStump=new B;tmpStumpOffset=new B;tmpStumpQuaternion=new ms;tmpStumpAcross=new B;tmpPart=new B;tmpPartQuaternion=new ms;woundPoint=new B;woundAxis=new B;constructor(e,t=YY,n,r={}){this.canvas=e,this.simulation=t,this.settings=n,this.manualClock=r.manualClock===!0,this.localInput=r.localInput??null,this.powerHeld=r.powerHeld??null,this.inputSequenceOf=r.inputSequenceOf??null,this.buffer=new xR(8,t.tick_rate),this.mapping=mv(t),this.renderer=new Ug({canvas:e,antialias:!0,powerPreference:`high-performance`,preserveDrawingBuffer:r.manualClock===!0}),this.renderer.shadowMap.enabled=!0,this.renderer.shadowMap.type=1,this.renderer.toneMapping=4,this.renderer.toneMappingExposure=1,this.renderer.setPixelRatio(this.basePixelRatio),this.scene.background=new V(`#04060b`),this.scene.fog=new bc(`#04060b`,.042),this.camera=new Vf(36,1,.1,80),this.camera.position.set(0,2.05,5.9),this.camera.lookAt(0,1.05,0),this.setupLights(),this.ring=Mw(),this.scene.add(this.ring.group),this.arena=XB(),this.scene.add(this.arena.group),this.effects=new rq(this.scene,Ke()?1024:2048,Ke()?AW:kW),this.effects.useUploader(this.renderer),this.effects.setCamera(this.camera),this.carnage=new GH(this.effects,QY),this.blobTexture=SY();let i=new Ed(1,1);for(let e=0;e<3;e+=1){let t=new H(i,new Al({map:this.blobTexture,transparent:!0,depthWrite:!1}));t.rotation.x=-Math.PI/2,t.position.y=.006+e*4e-4,t.renderOrder=1,this.blobShadows.push(t),this.scene.add(t)}for(let e=0;e<4;e+=1){let t=new H(i,new Al({map:this.blobTexture,transparent:!0,depthWrite:!1}));t.rotation.x=-Math.PI/2,t.position.y=.0075+e*4e-4,t.scale.set(CY,CY,1),t.renderOrder=1,t.visible=!1,this.footShadows.push(t),this.scene.add(t)}this.composer=new Uz(this.renderer),this.composer.addPass(new Wz(this.scene,this.camera));let a=new Kz(new z(1280,720),.22,.35,1.5);this.bloomPass=a,this.composer.addPass(a),this.finishPass=new Bz(jJ),this.composer.addPass(this.finishPass),this.composer.addPass(new Jz),this.hudCanvas=document.createElement(`canvas`),this.hudCanvas.className=`fight-hud`,this.hudCanvas.style.cssText=`position:absolute;inset:0;width:100%;height:100%;pointer-events:none`,e.insertAdjacentElement(`afterend`,this.hudCanvas),this.bloodLevel=n().blood,this.effects.setBloodLevel(this.bloodLevel),this.ensureGraphs(),this.manualClock||(this.raf=requestAnimationFrame(e=>this.draw(e)))}ensureGraphs(){this.glbLoading||this.graphs!==null||(this.glbLoading=!0,this.graphsReady=Gw().then(async e=>{if(this.destroyed)return;let t=new iT(e,{skin:11563071,gear:1920728}),n=new iT(e,{skin:7225640,gear:12131356});this.graphs=[new IT(t,this.mapping),new IT(n,this.mapping)];let r=[this.carnage.attach(0,this.graphs[0]),this.carnage.attach(1,this.graphs[1])];this.lookIds.fill(null),this.syncInjuryPresentation(0),this.syncInjuryPresentation(1);let i=new iT(e,{skin:13081462,gear:3889080,look:yb.referee,outfit:Vb,wounds:!0});this.referee=new IT(i,this.mapping,{referee:!0,knockout:!0});let a=new iT(e,{skin:9067067,gear:1778224,look:yb.blueCorner,outfit:Hb}),o=new iT(e,{skin:14264188,gear:1778224,look:yb.redCorner,outfit:Ub});this.cornermen=[new IT(a,this.mapping,{referee:!0}),new IT(o,this.mapping,{referee:!0})];let s=new iT(e,{skin:12160102,gear:1778224,look:yb.blueCutman,outfit:Wb}),c=new iT(e,{skin:5913126,gear:1778224,look:yb.redCutman,outfit:Wb});this.cutmen=[new IT(s,this.mapping,{referee:!0}),new IT(c,this.mapping,{referee:!0})],s.root.visible=!1,c.root.visible=!1,this.trails=[1920728,12131356].flatMap(e=>[0,1].map(()=>new Iq(new V(e).lerp(new V(16777215),.55))));let l=Oq();this.glowMap=l,this.glows=[0,1,2,3].map(()=>new Aq(l)),this.impactFlashes=[0,1].map(()=>new jq(l));let u=new fc;u.add(t.root,n.root,i.root,a.root,o.root,s.root,c.root,...this.trails.map(e=>e.mesh),...this.effects.compileStandIns(),...r.flatMap(e=>e.compileStandIns()),this.glows[0].standIn(),...this.impactFlashes[0].standIns()),u.add(this.carnage.xray.standIn());let d=t.headInjury.open;t.headInjury.setOpen(!0);try{await Hq(this.renderer,this.composer,u,this.camera,this.scene)}catch{}if(!this.destroyed){this.scene.add(t.root,n.root,i.root,a.root,o.root,s.root,c.root);for(let e of this.trails)this.scene.add(e.mesh);for(let e of this.glows)this.scene.add(e.mesh);for(let e of this.impactFlashes)this.scene.add(e.group);this.compileShadowsOf(u),t.headInjury.setOpen(d)}}).catch(e=>{this.glbLoading=!1,console.error(`boxer_glb_load_failed`,e)}))}compileShadowsOf(e){let t=this.keyLight;if(t!==null&&e.children.length!==0){for(let t of e.children)t.frustumCulled=!1,t.onBeforeShadow=(e,t,n,r,i,a)=>{a.needsUpdate=!0};this.scene.add(e),t.shadow.needsUpdate=!0,this.renderer.setRenderTarget(this.composer.readBuffer);try{this.renderer.render(this.scene,this.camera)}catch{}finally{this.renderer.setRenderTarget(null),this.scene.remove(e)}}}get ready(){return this.graphsReady}get labRigs(){let e=this.graphs;return e===null?[]:[e[0].boxer.root,e[1].boxer.root]}get labScene(){return this.scene}get labEffects(){return this.effects}labSetCameraOverride(e,t){this.cameraOverride={position:new B(...e),lookAt:new B(...t)}}labFrame(e,t=!0){this.draw(e*1e3,!0,t)}setCornerPanelTop(e){this.cornerPanelTop=e}viewForward(){return this.ownViewActive?(this.ownForward.x=this.fighterCam.forwardX,this.ownForward.z=this.fighterCam.forwardZ,this.ownForward):null}setPlayers(e,t,n=Object.keys(e)){this.players=e,this.viewerId=t,this.playerOrder=n}updateIdleFighters(e,t,n){let r=this.graphs;if(r===null)return;let i=this.playerOrder.filter(e=>this.players[e]!==void 0).length<2;for(let[a,o]of r.entries()){let r=this.playerOrder[a]??`seat-${a}`,s=!i||r===this.viewerId||this.viewerId===null&&a===0;if(o.boxer.root.visible=s,!s)continue;this.wearLook(a===0?0:1,r);let c=a===0?-1:1,l=Math.floor(t*this.simulation.tick_rate),u={...$Y(r),x:i?0:c*180,y:i?-70:0,facing:i?1:-c,facing_x:i?0:-c*1e3,facing_y:i?-1e3:0,...i?nX(l):{}},d={...$Y(this.playerOrder[1-a]??`opponent`),x:i?0:-c*180,y:i?-150:0};o.setResting(!1),o.update(u,d,e,t,this.settings().reducedMotion,this.bloodLevel,i?l:n)}}setFinal(e){if(e!==null&&e.match_id===this.final?.match_id)return;this.final=e,this.stoppageWinner=-1,this.stoppageRaiseAt=1/0,this.stoppageSpot=null,this.raiseFramed=!1,this.ceremony=this.ceremonyFor(e);let t=e?.method===`draw`&&this.deaths.every(e=>e!==null);if(this.finalRevealAt=this.frameSeconds+(this.ceremony===null?t?li:di(e):BJ),this.ovationUntil=e===null?0:this.frameSeconds+HJ,e!==null&&this.commentary.finish(e,this.players,this.ceremony!==null,this.frameSeconds),this.ceremony===null&&this.endCeremony(),this.pendingFinish=null,e===null||!ci.has(e.method))return;let n=this.lastKnockdown===null?null:vq(this.history,this.lastKnockdown.hit??this.lastKnockdown.knockdown,this.simulation.tick_rate),r=this.finishingInjury(e);if(n!==null&&this.graphs!==null&&!this.settings().reducedMotion){r!==null&&(this.replayInjuries[r.index]={injury:r.injury,event:r.event}),this.startReplay(n);return}if(r!==null){let e=this.pendingContacts.find(e=>e.event.event_id===r.event.event_id);e===void 0?this.applyArcadeInjury(r.index,r.injury,r.event):e.injury??=r.injury}let i=this.buffer.latest()?.result?.tick;i===void 0?this.presentFinish(e):this.pendingFinish={final:e,tick:i,latestAt:this.frameSeconds+pJ}}presentFinishWhenShown(e){let t=this.pendingFinish;t===null||ee.player_id===t.hit.target_id)??-1;return r<0||this.arcadeInjuries[r]!==null?null:{index:r,injury:t.finisher,event:t.hit}}ceremonyFor(e){let t=this.buffer.latest()?.fighters;if(e===null||t===void 0||e.method!==`decision`&&e.method!==`draw`||t.some(e=>e.is_downed)||this.deaths.some(e=>e!==null))return null;let n=t.findIndex(t=>t.player_id===e.winner_id);return{winnerSeat:n===0||n===1?n:null,positions:null,refereeArrived:!1,arrivedAt:null,announced:!1}}endCeremony(){for(let e of this.graphs??[])e.awaitVerdict(null);this.referee?.raise(null,null)}ceremonyFighters(e,t,n,r,i=null){e.positions===null&&(e.positions=[{x:t[0].x+(i?.[0].x??0),y:t[0].y+(i?.[0].y??0)},{x:t[1].x+(i?.[1].x??0),y:t[1].y+(i?.[1].y??0)}],e.marks=e.positions[0].x<=e.positions[1].x?[0,1]:[1,0]);let a=e.marks??NJ,o=e.refereeArrived;for(let r of[0,1]){let i=e.positions[r],s=a[r],c=VJ(i.x,i.y,MJ[s],LJ*n),l=Math.hypot(c.x-i.x,c.y-i.y),u=n>0?1/(n*this.simulation.tick_rate):0,d=!c.arrived&&l>1e-6;Object.assign(this.drawnFighters[r],t[r],{x:c.x,y:c.y,velocity_x:(c.x-i.x)*u,velocity_y:(c.y-i.y)*u,facing_x:d?Math.round((c.x-i.x)/l*1e3):0,facing_y:d?Math.round((c.y-i.y)/l*1e3):-1e3,facing:d&&c.x=zJ){e.announced=!0,this.commentary.verdict(this.frameSeconds);for(let t of[0,1])this.graphs?.[t]?.announce(e.winnerSeat===null?`level`:e.winnerSeat===t?`winner`:`loser`);this.finalRevealAt=Math.min(this.finalRevealAt,this.frameSeconds+.35),this.arena.excite(1)}if(e.announced){let n=n=>{let r=a[0]===n?0:1,i=e.winnerSeat===null||e.winnerSeat===r,o=gt(t[r].injuries,n===0?`left`:`right`)===`whole`,s=this.graphs?.[r]?.boxer.rig.bones[n===0?`gloveL`:`gloveR`];return i&&o&&s!==void 0?s.getWorldPosition(this.ceremonyWrists[n]):null};this.referee?.isDown!==!0&&this.referee?.raise(n(1),n(0))}return this.drawnFighters}ceremonyFrame(e){let t=this.ceremony,n=this.buffer.latest();if(t===null||t.arrivedAt===null||this.replay!==null||this.final===null||n===null)return null;let{width:r,height:i}=this.hudViewport,a=VY(this.final,r,i,n.fighters,this.players,this.roundStats,this.viewerId),o=hV(this.camera.aspect,this.camera.fov,(i-a)/Math.max(1,i)),s=this.settings().reducedMotion?0:Math.sin((e-t.arrivedAt)*.35)*.06*o.distance;return this.cornerPosition.set(s,o.height+.05*o.distance,o.distance),this.cornerLookAt.set(0,o.height,0),{position:this.cornerPosition,lookAt:this.cornerLookAt,framed:!0}}raiseFrame(e,t,n){let r=this.buffer.latest();if(this.stoppageWinner<0||this.final===null||this.replay!==null||this.ceremony!==null||r===null||e0?-1:1)*cJ,o=this.stoppageSpot?.z??0;this.raiseFramed||this.raiseCentre.set(i.x+a/2,0,i.z+o/2),this.raiseCentre.lerp(this.tmpCamera.set(i.x+a/2,0,i.z+o/2),1-Math.exp(-3*t)),this.raiseFramed=!0;let{width:s,height:c}=this.hudViewport,l=VY(this.final,s,c,r.fighters,this.players,this.roundStats,this.viewerId,this.deaths[0]??this.deaths[1]),u=hV(this.camera.aspect,this.baseFov,(c-l)/Math.max(1,c)),d=e-(this.stoppageRaiseAt-sJ),f=n?0:Math.sin(d*.35)*.06*u.distance;return this.cornerPosition.set(R.clamp(this.raiseCentre.x,-1.4,1.4)+f,u.height+.05*u.distance,this.raiseCentre.z+u.distance),this.cornerLookAt.set(this.raiseCentre.x,u.height,this.raiseCentre.z),{position:this.cornerPosition,lookAt:this.cornerLookAt,framed:!0}}presentFinish(e){let t=this.buffer.latest()?.referee.alive===!1;t||this.referee?.waveOff(void 0,e.method===`death`);let n=this.buffer.latest()?.fighters,r=n?.findIndex(t=>t.player_id!==e.winner_id&&t.player_id!==null)??-1;if(r>=0&&this.headCacheValid[r]&&!this.settings().reducedMotion&&!this.carnage.gibbed(r)&&(this.finishCloseUpIndex=r,this.finishCloseUpUntil=this.frameSeconds+eJ,this.finishCloseUpBearing=null,this.finishCloseUpAt=this.frameSeconds),e.winner_id===null)return;let i=n?.findIndex(t=>t.player_id===e.winner_id)??-1;if(i<0)return;this.graphs?.[i]?.celebrate(oJ);let a=n?.[i]?.injuries??[];!t&&(sY(a,`left`)||sY(a,`right`))&&(this.stoppageWinner=i,this.stoppageRaiseAt=this.frameSeconds+sJ)}cornerShotFrame(e,t,n){if(t===null||t.phase!==`rest`||n||this.graphs===null)return null;let r=t.fighters.findIndex(e=>e.player_id===this.viewerId),i=e-this.restStartedAt,a=sV(i,t.phase_ticks_remaining/this.simulation.tick_rate,+(r===1));return a===null||!this.graphs[a].stoolVisible||this.cutmen!==null&&this.cutmanProgress[a]e.player_id===this.viewerId)===1),n=this.mapping.x(l);return fV(t,n,-3.5,rJ,this.cornerPosition).setY(iJ),fV(t,n,0,0,this.cornerLookAt),this.cornerLookAt.lerp(fV(+(t===0),n,0,0,this.tmpCamera),aJ).setY(.9),{position:this.cornerPosition,lookAt:this.cornerLookAt,framed:!0}}closeUpFrame(e){if(e>=this.finishCloseUpUntil||this.finishCloseUpIndex<0||!this.headCacheValid[this.finishCloseUpIndex])return null;let t=this.arcadeInjuries[this.finishCloseUpIndex],n=t===`decapitation`&&this.effects.severedHeadPosition(this.finishCloseUpIndex,this.closeUpTarget),r=!n&&this.effects.partPosition(KH(this.finishCloseUpIndex,`upper_body`),this.closeUpTarget),i=n||r?null:this.graphs?.[this.finishCloseUpIndex]?.fallBody??null;if(this.finishCloseUpBearing===null&&i!==null&&!i.body.asleep&&e-this.finishCloseUpAt.4?u:.9,a)}let d=this.finishCloseUpBearing+l;return this.closeUpPosition.set(R.clamp(s.x+Math.sin(d)*c,-2.2,hJ),s.y+(n?.42:o?.5:.75),R.clamp(s.z+Math.cos(d)*c,-2.2,hJ)),this.replayLookAt.copy(s),{position:this.closeUpPosition,lookAt:this.replayLookAt,tight:!0}}raiseSpot(e,t){let n=e.x>0?-1:1,r={x:n*cJ,z:0},i=-1/0;for(let[a,o]of lJ){let s=e.x+n*a*cJ,c=e.z+o*cJ,l=Math.min(fJ-Math.abs(s),fJ-Math.abs(c),Math.hypot(s-t.x,c-t.z)-dJ);for(let e of this.graphs??[]){let t=e.fallBody;if(t!==null)for(let e of[0,1,2,3,4])t.bodyPoint(e,this.bodyPoint),l=Math.min(l,Math.hypot(s-this.bodyPoint.x,c-this.bodyPoint.z)-yJ-.05)}for(let e of[0,1])this.effects.severedHeadPosition(e,this.closeUpTarget)&&(l=Math.min(l,Math.hypot(s-this.closeUpTarget.x,c-this.closeUpTarget.z)-gJ-.05));if(l>=0)return{x:s-e.x,z:c-e.z};l>i&&(i=l,r={x:s-e.x,z:c-e.z})}return r}nearerGlove(e,t){e.getWorldPosition(this.stoppageWrist),t.getWorldPosition(this.stoppageOtherWrist);let n=e=>Math.hypot(e.x-this.refereePosition.x,e.z-this.refereePosition.z);return n(this.stoppageOtherWrist)-.5*n.length()}startReplay(e){let t=new xR(e.snapshots.length+2,this.simulation.tick_rate);for(let n of e.snapshots)t.push(n);if(this.replay={plan:e,buffer:t,startedAt:this.frameSeconds,impactFired:!1,side:null},this.drawnOffsetsLive=!1,this.commentary.replay(this.frameSeconds,e.impact),this.replayFollow=0,this.replayFollowAt=0,e.impact.kind===`referee_down`){this.referee?.resetTransient(!1),this.referee?.primeReplayFall(),this.effects.stopGush(2);return}for(let e=this.pendingGore.length-1;e>=0;--e)this.pendingGore[e].event.kind!==`injury`&&this.pendingGore.splice(e,1);for(let e of[0,1]){this.effects.stopGush(e),this.deaths[e]!==null&&this.carnage.undoDeath(e);let t=this.arcadeInjuries[e],n=this.arcadeInjuryEvents[e];t!==null&&n!==null&&(this.replayInjuries[e]={injury:t,event:n},this.restoreInjury(e))}for(let t of this.pendingContacts.splice(0)){let n=t.recipientIndex;t.injury!==null&&(n===0||n===1)&&this.replayInjuries[n]===null&&this.arcadeInjuries[n]===null&&(this.replayInjuries[n]={injury:t.injury,event:t.event}),t.event.event_id!==e.impact.event_id&&(t.injury=null,t.contactTick=1/0,this.pendingContacts.push(t))}let n=e.snapshots[0]?.fighters.findIndex(t=>t.player_id===e.impact.target_id)??-1;n>=0&&e.impact.detail.endsWith(`:head`)&&this.effects.returnMouthpiece(n);let r=this.lastKnockdown?.knockdown.detail===_J;for(let[t,i]of(this.graphs??[]).entries()){let a=this.liveFallTicks[t]??null;i.resetTransient(!1),a!==null&&a>=e.impact.tick-1&&i.primeReplayFall(),t===n&&r&&i.fallToKnee(!0)}this.finalRevealAt=this.frameSeconds+e.durationSeconds+di(this.final)}endReplay(){let e=this.replay?.plan.impact.kind===`referee_down`;if(this.replay=null,e){this.drawnOffsetsLive=!1;let e=this.buffer.latest();for(let[t,n]of(this.graphs??[]).entries())n.resetTransient(e?.fighters[t]?.is_downed===!0);return}this.drawnOffsetsLive=!1,this.reapplyReplayInjuries();let t=this.buffer.latest();for(let[e,n]of(this.graphs??[]).entries()){let r=t?.fighters[e],i=r!==void 0&&r.player_id===this.flashKnockout?.loserId;n.resetTransient(r?.is_downed===!0||i),i&&n.knockOut()}for(let e of[0,1])this.showDeath(e,0,!0);this.final!==null&&this.presentFinish(this.final)}fireRefereeEvents(e){for(let t=0;te){t+=1;continue}this.pendingRefereeEvents.splice(t,1);let r=this.buffer.latest();n.kind===`referee_down`?(r!==null&&this.fireRefereeFall(n,r),this.eventCallout={text:`THE REFEREE IS DEAD!`,until:this.frameSeconds+ZJ},this.refereeReplayAt={at:this.frameSeconds+XJ,impact:n}):n.kind===`referee_hit`?r!==null&&this.punchReferee(n,r,!1):this.referee!==null&&(this.referee.boxer.rig.bones.head.getWorldPosition(this.refereeHead),this.effects.addEvent(n,this.refereeHead,this.settings().reducedMotion))}}punchReferee(e,t,n){let r=this.referee;if(r===null)return;let[i,a]=e.detail.split(`:`),o=t.fighters.findIndex(t=>t.player_id===e.actor_id),s=t.fighters[o],c=s?.action_key?.split(`:`)[1]??null;r.react(`hit`,a===`body`?`body`:`head`,e.direction,i,c,n?Math.max(e.amount,140):e.amount),r.boxer.rig.bones.head.getWorldPosition(this.refereeHead);let l=s===void 0?void 0:Jq(s,{...s,x:t.referee.x,y:t.referee.y},this.mapping),u=this.settings().reducedMotion;this.effects.addEvent({...e,kind:n?`knockdown`:`hit`},this.refereeHead,u,l);let d=n||u?null:sX({...e,kind:`hit`}),f=d===null?null:this.refereeMouth();d!==null&&f!==null&&this.effects.gush(2,f.position,f.axis,d.seconds,d.rate,e.event_id);let p=this.refereePunchPower(e);o>=0&&this.graphs?.[o]?.landedHit(e.action_id,!1,p),this.onContact?.(e,p)}fireRefereeFall(e,t,n=!1){let r=this.referee;if(r===null)return;let i=n?this.refereeBlow(e):null;i===null?(r.boxer.rig.bones.head.getWorldPosition(this.refereeHead),this.effects.addEvent({...e,kind:`knockdown`,amount:160,blood:80},this.refereeHead,this.settings().reducedMotion)):this.punchReferee(i,t,!0);let a=this.settings().reducedMotion?null:this.refereeMouth();a!==null&&this.effects.gush(2,a.position,a.axis,yX,bX,e.event_id),r.knockOut(),this.onContact?.(e,!1)}refereePunchPower(e){for(let t=this.history.length-1;t>=0;--t){let n=this.history[t];if(n.tickt.player_id===e.actor_id);return r!==void 0&&r.action_id===e.action_id&&r.action_power===`power`}return!1}refereeBlow(e){if(e.action_id===null)return null;for(let t=this.history.length-1;t>=0;--t){let n=this.history[t],r=n.events.find(t=>t.kind===`referee_hit`&&t.action_id===e.action_id&&t.tick===e.tick);if(r!==void 0)return r;if(n.tick=0?e.fighters[a]:void 0,l=c?.action_key?.split(`:`)??[],u=l[0]??null,d=l[1]??null,f=l[3]===`power`;this.graphs?.[i]?.react(`hit`,r.detail.endsWith(`:body`)?`body`:`head`,r.direction,u,d,r.amount),n.knockdown.detail===`body`&&n.knockdown.tick>r.tick&&this.graphs?.[i]?.windedFor((n.knockdown.tick-r.tick)/this.simulation.tick_rate+.15,mY(c?.action_key??null)),o.player_id===this.flashKnockout?.loserId&&this.graphs?.[i]?.knockOut(),a>=0&&this.graphs?.[a]?.landedHit(r.action_id,n.blocked,f),r.detail.endsWith(`:head`)&&!this.settings().reducedMotion&&this.knockOutMouthpiece(i,s??r.direction,r.event_id+rX,!0),f&&!n.blocked&&!this.settings().reducedMotion&&this.presentPowerHit(i,r),this.onContact?.(r,f),this.reapplyReplayInjuries(s),this.deaths[i]!=null&&(this.showDeath(i,s??r.direction,!0),this.announceDeath(i));for(let e of this.pendingGore.splice(0))this.presentGore(e.event);for(let t of this.pendingContacts)t.contactTick===1/0&&(t.contactTick=this.replay?.plan.impact.tick??e.tick)}replayFrame(e,t){let[n,r]=e.fighters,i=this.mapping.x(n.x),a=this.mapping.z(n.y),o=this.mapping.x(r.x),s=this.mapping.z(r.y),c=this.replay?.plan.impact.kind===`referee_down`,l=e.fighters.findIndex(e=>e.player_id===this.replay?.plan.impact.target_id),u=this.replay?.impactFired===!0&&l>=0&&this.headCacheValid[l]===!0;if(c&&this.referee!==null)return this.refereeReplayFrame(e,t);let d=1-Math.exp(-3*Math.max(0,t-this.replayFollowAt));this.replayFollowAt=t,this.replayFollow+=(+!!u-this.replayFollow)*d;let f=l<0?0:Math.max(this.portraitPull>1.3?.7:0,this.replayFollow*.8),p=u?this.headCache[l].x:l===1?o:i,m=u?this.headCache[l].z:l===1?s:a,h=(i+o)/2+(p-(i+o)/2)*f,g=(a+s)/2+(m-(a+s)/2)*f,_=-(s-a),v=o-i,y=Math.hypot(_,v)||1;_/=y,v/=y;let b=2.5,x=this.replay;x!==null&&x.side===null&&(x.side=aX(h,g,_,v,b,hJ));let S=x?.side??(v<0?-1:1);_*=S,v*=S;let C=.35*Math.sin(t*.7),w=_*Math.cos(C)-v*Math.sin(C),T=_*Math.sin(C)+v*Math.cos(C);this.replayCameraPosition.set(R.clamp(h+w*b,-2.2,hJ),1.38-Math.min(.25,t*.05),R.clamp(g+T*b,-2.2,hJ));let E=Math.hypot(this.replayCameraPosition.x-h,this.replayCameraPosition.z-g),D=Math.hypot(h,g);if(E.01){let e=iX-E;this.replayCameraPosition.x=R.clamp(this.replayCameraPosition.x-h/D*e,-2.2,hJ),this.replayCameraPosition.z=R.clamp(this.replayCameraPosition.z-g/D*e,-2.2,hJ)}let O=u?R.clamp(this.headCache[l].y,.45,1.28):1.28;this.replayLookAt.set(h,1.28+(O-1.28)*this.replayFollow,g);let k=this.settings().reducedMotion?0:this.powerShake;if(k>5e-4){let e=t*61;this.replayCameraPosition.x=R.clamp(this.replayCameraPosition.x+Math.sin(e*1.31)*k,-2.2,hJ),this.replayCameraPosition.y+=Math.cos(e*1.97)*k*.6,this.replayLookAt.x+=Math.sin(e*1.53)*k*.5,this.replayLookAt.y+=Math.cos(e*2.11)*k*.35}return{position:this.replayCameraPosition,lookAt:this.replayLookAt,tight:!0}}setInputLatency(e){this.inputLatencyMs=e,this.lagWarned=pi(e,this.lagWarned)}resyncClock(){this.buffer.resync()}setReconnect(e){this.reconnectMs=e}setBloodLevel(e){e!==`full`&&this.bloodLevel===`full`&&this.restoreAllInjuries(),this.bloodLevel=e,e===`off`&&this.downedPoolAccumulators.fill(0),this.effects.setBloodLevel(e)}setReducedMotion(e){e&&(this.restoreAllInjuries(),this.effects.clearDynamic())}syncInjuryPresentation(e){let t=this.arcadeInjuries[e],n=this.graphs;if(n!==null){let r=n[e];t===`head_burst`?r.boxer.setHeadBurst(!0):r.boxer.setDecapitated(t===`decapitation`),r.boxer.headInjury.setEyeOut(t===`eye_left`||t===`eye_right`?`both`:null),r.boxer.setHandDismembered(`left`,t===`dismember_left`),r.boxer.setHandDismembered(`right`,t===`dismember_right`);let i=t===`jaw_dislocation`?`jaw`:t===`shoulder_left`||t===`shoulder_right`?t:null;r.setArcadeDislocation(i)}}applyArcadeInjury(e,t,n,r){t===`dismember_left`&&!this.carnage.hasGlove(e,`left`)?t=`ribs_left`:t===`dismember_right`&&!this.carnage.hasGlove(e,`right`)?t=`ribs_right`:(t===`eye_left`&&this.carnage.eyeBurst(e,`left`)||t===`eye_right`&&this.carnage.eyeBurst(e,`right`))&&(t=`jaw_dislocation`);let i=!1;if(t===`decapitation`){let t=this.headWorldPose(e);if(t!==null){let a=this.graphs?.[e],o=a===void 0?void 0:ZY(a.boxer,t.position,t.quaternion);this.effects.decapitate(e,t.position,t.quaternion,r??n.direction,n.event_id,this.skinColor(e),o);let s=this.stumpWorldPose(e);s!==null&&this.effects.anchorStump(e,s.position,s.quaternion,s.rim,s.across),i=!0}}else if(t===`head_burst`){let t=this.headWorldPose(e);if(t!==null){this.effects.burstHead(e,t.position,r??n.direction,n.event_id);let a=this.burstStumpPose(e);a!==null&&this.effects.anchorStump(e,a.position,a.quaternion,a.rim,a.across),i=!0}}else if(t===`eye_left`||t===`eye_right`){let a=this.graphs?.[e]?.boxer,o=t===`eye_left`?`left`:`right`;if(a!==void 0&&IX(a,o,this.tmpPart,this.tmpStumpOffset,this.tmpPartQuaternion)){let t=r??n.direction;this.effects.gougeEye(e,this.tmpPart,this.tmpStumpOffset,t,n.event_id,o);let s=o===`left`?`right`:`left`;!this.effects.eyeOut(e,s)&&!this.carnage.eyeBurst(e,s)&&IX(a,s,this.tmpPart,this.tmpStumpOffset,this.tmpPartQuaternion)&&this.effects.spawnDebris(`eye`,this.tmpPart,t,1,n.event_id,SX,e),i=!0}}else if(t===`dismember_left`||t===`dismember_right`){let a=t===`dismember_left`?`left`:`right`,o=this.handWorldPose(e,a);if(o!==null){let t=this.graphs?.[e],s=t===void 0?void 0:{...XY(t.boxer.gloveMesh(a),o.position,o.quaternion),gloveBlood:t.boxer.gloveBloodLevel};this.effects.dismemberHand(e,a,o.position,o.quaternion,r??n.direction,n.event_id,this.gearColor(e),s),this.effects.anchorHandStump(e,a,o.position,o.quaternion),i=!0}}else if(t===`jaw_dislocation`||t===`shoulder_left`||t===`shoulder_right`||t===`ribs_left`||t===`ribs_right`){let a=this.tornWound(e,TX(t));a!==null&&(this.effects.tearOpen(e,a.position,a.axis,r??n.direction,n.event_id,t===`jaw_dislocation`?xX:0),i=!0)}return i?(this.arcadeInjuries[e]=t,this.arcadeInjuryEvents[e]=n,this.observedInjuryDown[e]=!1,this.syncInjuryPresentation(e),this.onArcadeInjury?.(t,n),!0):!1}reapplyReplayInjuries(e){for(let t of[0,1]){let n=this.replayInjuries[t];if(n===null)continue;this.replayInjuries[t]=null;let r=this.settings();r.blood!==`full`||r.reducedMotion||this.applyArcadeInjury(t,n.injury,{...n.event,event_id:n.event.event_id+rX},e)}}restoreInjury(e){this.arcadeInjuries[e]!==null&&(this.arcadeInjuries[e]=null,this.arcadeInjuryEvents[e]=null,this.observedInjuryDown[e]=!1,this.syncInjuryPresentation(e),this.effects.restoreFighter(e))}restoreAllInjuries(){this.restoreInjury(0),this.restoreInjury(1),this.effects.clearArcadeGore()}headWorldPose(e){let t=this.graphs,n=t===null?null:t[e].boxer.bone(`head`);return n===null||t===null?null:(t[e].boxer.root.updateMatrixWorld(!0),n.getWorldPosition(this.tmpHead),n.getWorldQuaternion(this.tmpHeadQuaternion),this.tmpStumpOffset.copy(EY).applyQuaternion(this.tmpHeadQuaternion),this.tmpHead.add(this.tmpStumpOffset),{position:this.tmpHead,quaternion:this.tmpHeadQuaternion})}handWorldPose(e,t){let n=this.graphs,r=n===null?null:n[e].boxer.bone(t===`left`?`gloveL`:`gloveR`);return r===null||n===null?null:(n[e].boxer.root.updateMatrixWorld(!0),r.getWorldPosition(this.tmpPart),r.getWorldQuaternion(this.tmpPartQuaternion),{position:this.tmpPart,quaternion:this.tmpPartQuaternion})}gearColor(e){return this.graphs?.[e]?.boxer.gearBaseColor.getHex()??1920728}skinColor(e){return this.graphs?.[e]?.boxer.skinBaseColor.getHex()??11563071}stumpWorldPose(e){let t=this.graphs?.[e]?.boxer,n=t?.bone(`head`);if(t===void 0||n==null)return null;t.root.updateMatrixWorld(!0);let r=t.headMesh,i=kY(r.geometry);if(i.length===0)return null;this.stumpRim.length!==i.length*3&&(this.stumpRim=new Float32Array(i.length*3)),this.tmpStump.set(0,0,0);for(let[e,n]of i.entries())HY(t,n,this.tmpStumpOffset),this.tmpStumpOffset.toArray(this.stumpRim,e*3),this.tmpStump.add(this.tmpStumpOffset);return this.tmpStump.multiplyScalar(1/i.length),n.getWorldPosition(this.tmpStumpOffset).sub(this.tmpStump).normalize(),this.tmpStumpAcross.set(1,0,0).applyQuaternion(n.getWorldQuaternion(this.tmpStumpQuaternion)),this.tmpStumpQuaternion.setFromUnitVectors(DY,this.tmpStumpOffset),{position:this.tmpStump,quaternion:this.tmpStumpQuaternion,rim:this.stumpRim,across:this.tmpStumpAcross}}burstStumpPose(e){let t=this.graphs?.[e]?.boxer;if(t===void 0)return null;let n=NY(t,this.stumpRim,this.burstStump);return n===null?null:(this.stumpRim=n,{position:this.burstStump.position,quaternion:this.burstStump.quaternion,rim:n,across:this.burstStump.across})}pressTick(e){return this.buffer.clockTick(e)+(this.inputLatencyMs??60)/1e3*this.simulation.tick_rate}pressGetUp(e){let t=this.buffer.latest(),n=t?.fighters.find(e=>e.player_id===this.viewerId);if(t?.phase!==`knockdown`||n?.is_downed!==!0)return null;let r=this.manualClock?this.lastManualTime:performance.now();return this.getUp.press(e,n,this.pressTick(r),r)}get getUpView(){return this.getUpFrame}get getUpVerdicts(){return this.getUp.counts}get getUpLog(){return this.getUp.log}updateGetUp(){let e=this.buffer.latest(),t=e?.fighters.find(e=>e.player_id===this.viewerId),n=this.manualClock?this.lastManualTime:performance.now(),r=n-this.getUpRisenAt0||!(t.is_downed||r)){this.getUpFrame=null,this.getUpBeatCount=-1;return}let i=Se(t,this.pressTick(n),n,this.getUp,this.getUpKnockTick,this.touchControls,r,this.getUpDraft);!r&&i.count!==this.getUpBeatCount&&(this.getUpBeatCount>=0&&i.count>=1&&i.count<=9&&this.onGetUpBeat?.(i.count),this.getUpBeatCount=i.count),this.getUpFrame=i}predictAction(e){let t=this.buffer.latest();if(t===null||this.viewerId===null||this.replay!==null)return;let n=t.fighters.findIndex(e=>e.player_id===this.viewerId);if(n<0)return;let r=t.fighters[n];if(t.phase!==`fight`&&t.phase!==`finish`||!lX(r))return;let i=(this.inputLatencyMs??60)/1e3*this.simulation.tick_rate,a=i+this.buffer.interpolationDelayTicks,o=this.manualClock?this.lastManualTime:performance.now(),s=this.graphs?.[n];if(vB(e.kind)){let n=s?.ownPunchActive===!0;if(e.id===void 0||r.stamina0||!n&&tB(r,t.tick)>0)return;let i=n?s.ownTicksToRecovery:0;n&&s.cutOwnRecovery(),this.evasion.press(e.kind,e.id,o,a,this.simulation.tick_rate,y+ce(r.style).evasionTicks,o+i*1e3/this.simulation.tick_rate);return}if(e.kind!==`punch`)return;this.evasion.drop(o)&&s?.keepOwnRecovery();let c=vt(r.injuries,e.hand);c!==null&&s?.predict(c===e.hand?e:{...e,hand:c},performance.now()/1e3,this.simulation.tick_rate,a,eB(r,e,t.tick+1),i)}acknowledgeActions(e,t){for(let[n,r]of e.fighters.entries()){let i=r.player_id===this.viewerId,a=e.phase===`fight`||e.phase===`finish`;i&&this.evasion.acknowledge(r,a,this.inputSequenceOf)&&this.graphs?.[n]?.keepOwnRecovery();let o=t.filter(t=>qq(t,e).puncherIndex===n);this.graphs?.[n]?.acknowledge(r,a,o,i?this.inputSequenceOf:null)}}push(e){let t=this.manualClock?this.lastManualTime:performance.now();if(!this.buffer.push(e,t))return;let n=this.dedupe.accept(e.events);this.acknowledgeActions(e,n),this.history.push(e),this.history.length>Zq&&this.history.shift();for(let r of n){if(this.roundStats.record(r,n),r.kind===`knockdown`){let t=n.find(e=>Yq(e)&&e.target_id===r.target_id&&e.tick===r.tick)??(r.detail===`body`?this.recordedHit(r):null),i=t!==null&&ai(t,e.events);this.lastKnockdown={knockdown:r,hit:t,blocked:i,finisher:i?null:uX(t,e)};let a=e.fighters.findIndex(e=>e.player_id===r.target_id);this.graphs?.[a]?.fallToKnee(r.detail===_J),r.detail===vJ&&(this.lastKnockdown=null)}if(r.kind===`result`&&r.detail===`flash_ko`){let e=n.findLast(e=>(e.kind===`hit`||e.kind===`counter_hit`)&&e.actor_id===r.actor_id)??null;e!==null&&e.target_id!==null&&(this.flashKnockout={hitEventId:e.event_id,loserId:e.target_id},this.lastKnockdown={knockdown:{...e,kind:`knockdown`},hit:e,blocked:!1,finisher:null})}r.kind===`referee_break`&&this.referee?.breakClinch(),($J.has(r.kind)||r.kind===`bleed`&&r.actor_id===`referee`)&&this.pendingRefereeEvents.push(r),r.kind===`box`&&(this.eventCallout={text:`BOX!`,until:this.frameSeconds+JJ}),r.kind===`body_collapse`&&r.target_id===this.viewerId&&(this.ownCollapseUntil=r.tick+r.amount),r.kind===`finish_him`&&(this.finishTargetId=r.target_id),(r.kind===`fatality`||r.kind===`death`)&&this.noteDeath(r,n,e),this.movement.observe(r,this.viewerId),r.kind===`knockdown`&&r.target_id===this.viewerId&&(this.getUp.reset(),this.getUpKnockTick=r.tick,this.getUpRisenAt=-1/0),r.kind===`get_up_input`&&r.actor_id===this.viewerId&&this.getUp.confirm(r,t),r.kind===`get_up`&&r.actor_id===this.viewerId&&(this.getUpRisenAt=t)}let r=e.fighters.find(e=>e.player_id===this.viewerId);r?.is_downed===!0&&!this.getUpWasDown&&!n.some(e=>e.kind===`knockdown`&&e.target_id===this.viewerId)&&(this.getUp.reset(),this.getUpKnockTick=ye(r,e.tick),this.getUpRisenAt=-1/0),this.getUpWasDown=r?.is_downed===!0,this.commentary.observe(e,n,this.players,this.simulation.tick_rate,this.frameSeconds);let i=e.fighters.findIndex(e=>e.player_id===this.viewerId),a=e.result===null&&!n.some(e=>e.kind===`knockdown`);for(let{event:t,presentationEvent:r,presentImpact:o,reactAmount:s}of fY(n,e)){let n=e.fighters.findIndex(e=>e.player_id===t.target_id),c=e.fighters.findIndex(e=>e.player_id===t.actor_id),{recipientIndex:l,puncherIndex:u}=qq(t,e),d=e.fighters[l]??e.fighters[n]??e.fighters[c]??e.fighters[0];if(PY(this.graphs?.[e.fighters.indexOf(d)],d,this.mapping,this.contactPoint),GJ.has(t.kind)){let n=u>=0?e.fighters[u]:null;this.pendingContacts.push({event:t,presentationEvent:r,presentImpact:o,reactAmount:s,contactTick:a&&u===i&&qJ.has(t.kind)&&this.graphs?.[u]?.pressLanded(t.action_id)===!0?-1/0:n?.action_contact_tick??t.tick,recipientIndex:l,puncherIndex:u,injury:xY(t,e.fighters[l],e.result,n??void 0),power:n!==null&&n.action_id===t.action_id&&n.action_power===`power`})}else t.kind===`bleed`&&t.actor_id!==`referee`&&this.effects.addEvent(t,this.contactPoint,this.settings().reducedMotion)}for(let t of n){if(!rY.has(t.kind))continue;let n=t.action_id===null?void 0:this.pendingContacts.find(e=>e.event.tick===t.tick&&e.event.action_id===t.action_id&&(Yq(e.event)||Xq(e.event)));n!==void 0&&(n.injury??=cY(t)),t.kind!==`fatality`&&(this.pendingGore.push({event:t,at:n?.contactTick??t.tick}),t.kind===`injury`&&Ze(t.detail)&&this.carnage.expect(e.fighters.findIndex(e=>e.player_id===t.target_id),t.detail))}}fireContacts(e){for(let t=0;te){t+=1;continue}this.pendingContacts.splice(t,1);let{event:r,presentationEvent:i,reactAmount:a,recipientIndex:o,puncherIndex:s,injury:c}=n,l=n.presentImpact&&!lY(i),u=this.buffer.latest()?.fighters[o],d=Jq(this.buffer.latest()?.fighters[s],u,this.mapping);this.presentFightEvent(r,o,s),l&&u!==void 0&&(this.contactOn(o,u,i.detail.endsWith(`:body`),d,i.direction),this.effects.addEvent(i,this.contactPoint,this.settings().reducedMotion,d));let f=this.settings();if(n.power&&l&&Yq(r)&&u!==void 0&&!f.reducedMotion&&this.presentPowerHit(o,i),(n.presentImpact||KJ.has(r.kind))&&this.arena.excite(WJ[r.kind]??0),l&&o>=0&&[`hit`,`counter_hit`,`knockdown`].includes(r.kind)){let e=this.viewerId!==null&&this.buffer.latest()?.fighters[o]?.player_id===this.viewerId;this.viewerHitFlash=Math.max(this.viewerHitFlash,oX(r,e,f.blood))}c!==null&&o>=0&&this.arcadeInjuries[o]===null&&f.blood===`full`&&!f.reducedMotion&&this.applyArcadeInjury(o,c,r,d);let p=this.graphs;l&&o>=0&&!f.reducedMotion&&sU(r.kind,r.amount,i.detail.endsWith(`:head`))&&this.knockOutMouthpiece(o,d??i.direction,r.event_id,!1);let m=l&&!f.reducedMotion?sX(r):null;m!==null&&o>=0&&this.gushFromMouth(o,r.event_id,m.seconds,m.rate),n.presentImpact&&o>=0&&r.kind===`knockdown`&&!f.reducedMotion&&this.gushFromMouth(o,r.event_id,yX,bX);let h=l&&o>=0?jv(r.kind,r.amount,i.detail.endsWith(`:head`)):0;if(h>0&&!f.reducedMotion&&f.blood!==`off`){let e=this.headWorldPose(o);e!==null&&(this.mouthPoint.set(0,-.07,.1).applyQuaternion(e.quaternion).add(e.position),this.effects.spawnTeeth(this.mouthPoint,d??i.direction,h,r.event_id))}if(l&&o>=0&&a!==null&&[`hit`,`counter_hit`,`block`,`perfect_block`,`knockdown`].includes(r.kind)){let e=r.kind===`block`||r.kind===`perfect_block`,t=i.detail.endsWith(`:body`)?`body`:`head`;if(p!==null){let n=(s>=0?this.buffer.latest()?.fighters[s]:void 0)?.action_key?.split(`:`)??[],c=n[0]??i.detail.split(`:`)[0]??null,l=n[1]??null;p[o].react(e?`block`:`hit`,t,i.direction,c,l,a),Yq(r)&&t===`head`&&l!==null&&this.carnage.punched(o,l===`left`?`right`:`left`,r.event_id),Yq(r)&&l!==null&&this.carnage.land(o,s,l,t,r.amount,r.blood,this.contactPoint,r.event_id,d??i.direction),this.flashKnockout?.hitEventId===r.event_id&&p[o].knockOut()}}l&&s>=0&&[`hit`,`counter_hit`,`block`,`perfect_block`,`guard_break`].includes(r.kind)&&p?.[s]?.landedHit(r.action_id,r.kind===`block`||r.kind===`perfect_block`,n.power),(n.presentImpact||!Yq(r))&&this.onContact?.(r,n.power===!0)}this.replay===null&&this.fireRefereeEvents(e);let t=this.refereeReplayAt;if(t!==null&&this.replay===null&&this.frameSeconds>=t.at){this.refereeReplayAt=null;let e=vq(this.history,t.impact,this.simulation.tick_rate,_q.speed,_q.before,_q.after),n=this.buffer.latest(),r=e!==null&&n!==null&&n.phase===`referee_down`&&n.phase_ticks_remaining/this.simulation.tick_rate>=e.durationSeconds-.5;e!==null&&r&&!this.settings().reducedMotion&&this.startReplay(e)}}fireGore(e){for(let t=0;te?t+=1:(this.pendingGore.splice(t,1),this.presentGore(n.event))}}presentGore(e){let t=this.buffer.latest()?.fighters,n=t?.findIndex(t=>t.player_id===(e.kind===`vomit`?e.actor_id:e.target_id))??-1;if(t===void 0||n<0)return;let r=Jq(e.actor_id===e.target_id?void 0:t.find(t=>t.player_id===e.actor_id),t[n],this.mapping)??e.direction;if(e.kind===`vomit`)this.carnage.vomit(n,e.event_id),this.onGore?.({kind:`vomit`});else if(e.kind===`finish_him`)this.arena.excite(1),this.onGore?.({kind:`finish_him`});else if(e.kind===`death`)this.showDeath(n,r,!1),this.announceDeath(n);else if(e.kind===`injury`&&Ze(e.detail)){let i=e.detail;if(!this.carnage.inflict(n,i,e.event_id,r,e.tick))return;this.eventCallout={text:`${lt(i)}!`,until:this.frameSeconds+iY},this.arena.excite(oY);let a=this.viewerId!==null&&t[n].player_id===this.viewerId;this.settings().blood!==`off`&&(this.viewerHitFlash=Math.max(this.viewerHitFlash,a?1:.5)),this.settings().reducedMotion||(this.powerShake=Math.min(tY,this.powerShake+eY)),this.onGore?.({kind:`injury`,injury:i})}}showDeath(e,t,n){let r=this.deaths[e]??null;if(r===null)return;let i=this.fatal?.index===e?this.fatal:null,a=(i?.hit.event_id??e)+(n?rX:0);i===null?r===`gutted`&&this.carnage.fatality(e,`gutting`,a,t):this.carnage.fatality(e,i.fatality,a,t),this.carnage.die(e,r)}announceDeath(e){let t=this.deaths[e]??null;if(t===null)return;let n=mt(t);this.eventCallout={text:`${ht(t)}!`,until:this.frameSeconds+aY},this.arena.excite(1),this.settings().reducedMotion||(this.powerShake=tY),n!==null&&this.onGore?.({kind:`fatality`,fatality:n}),this.onGore?.({kind:`death`,cause:t})}noteDeath(e,t,n){let r=n.fighters.findIndex(t=>t.player_id===e.target_id);if(r!==0&&r!==1)return;let i=e.action_id===null?null:t.find(t=>Yq(t)&&t.tick===e.tick&&t.action_id===e.action_id&&t.target_id===e.target_id)??null;if(e.kind===`fatality`){i!==null&&Qe.includes(e.detail)&&(this.fatal={index:r,fatality:e.detail,hit:i});return}let a=pt(e.detail);a!==null&&(this.deaths[r]=a,i===null?this.lastKnockdown=null:(this.flashKnockout={hitEventId:i.event_id,loserId:n.fighters[r].player_id},this.lastKnockdown={knockdown:{...i,kind:`knockdown`},hit:i,blocked:!1,finisher:null}))}presentFightEvent(e,t,n){let r=nY[e.kind];r!==void 0&&(this.eventCallout={text:r.text,until:this.frameSeconds+r.seconds});let i=this.graphs;if(!(i===null||t<0)&&(e.kind===`parry`&&i[t]?.stagger(),e.kind===`body_collapse`)){let r=n>=0?this.buffer.latest()?.fighters[n]:void 0;i[t]?.windedFor(e.amount/this.simulation.tick_rate+.15,mY(r?.action_key??null))}}recordedHit(e){if(e.action_id===null)return null;for(let t=this.history.length-1;t>=0;--t){let n=this.history[t].events.find(t=>(t.kind===`hit`||t.kind===`counter_hit`)&&t.action_id===e.action_id&&t.target_id===e.target_id);if(n!==void 0)return n}return null}enterRest(e){this.restStartedAt=e,this.effects.clearMouthpieces()}contactOn(e,t,n,r,i){let a=n?null:this.headWorldPose(e),o=n?this.graphs?.[e]?.boxer.rig.bones.upperChest:void 0,s=a?.position??o?.getWorldPosition(this.contactPoint)??null;if(s===null)return PY(this.graphs?.[e],t,this.mapping,this.contactPoint);let c=r??{x:i<0?-1:1,z:0},l=n?wX:CX;return this.contactPoint.set(s.x-c.x*l,s.y,s.z-c.z*l)}gushFromMouth(e,t,n,r){let i=this.tornWound(e,`mouth`);i!==null&&this.effects.gush(e,i.position,i.axis,n,r,t)}anchorGush(e){if(!this.effects.gushing(e)||this.carnage.vomiting(e))return;let t=this.tornWound(e,TX(this.arcadeInjuries[e]??null));t!==null&&this.effects.anchorGush(e,t.position,t.axis)}tornWound(e,t){if(t===`mouth`){let t=this.headWorldPose(e);return t===null?null:{position:this.woundPoint.copy(_X).applyQuaternion(t.quaternion).add(t.position),axis:this.woundAxis.copy(vX).applyQuaternion(t.quaternion)}}let n=this.graphs?.[e]?.boxer;if(n===void 0)return null;n.root.updateMatrixWorld(!0);let r=n.rig.bones,i=t===`shoulder_left`||t===`ribs_left`,a=r.shoulderL.getWorldPosition(this.woundAxis).sub(r.shoulderR.getWorldPosition(this.tmpStumpOffset)).normalize().multiplyScalar(i?1:-1),o=r.upperChest.getWorldPosition(this.tmpStump),s=this.tmpStumpOffset.copy(o).sub(r.hips.getWorldPosition(this.tmpStumpAcross)).normalize();return t===`ribs_left`||t===`ribs_right`?{position:this.woundPoint.copy(o).addScaledVector(a,AX).addScaledVector(s,-.06),axis:a}:((i?r.shoulderL:r.shoulderR).getWorldPosition(this.woundPoint),{position:this.woundPoint,axis:a.addScaledVector(s,.5).normalize()})}refereeMouth(){let e=this.referee?.boxer.rig.bones.head;return e===void 0?null:(e.getWorldPosition(this.tmpHead),e.getWorldQuaternion(this.tmpHeadQuaternion),this.tmpHead.add(this.tmpStumpOffset.copy(EY).applyQuaternion(this.tmpHeadQuaternion)),{position:this.woundPoint.copy(_X).applyQuaternion(this.tmpHeadQuaternion).add(this.tmpHead),axis:this.woundAxis.copy(vX).applyQuaternion(this.tmpHeadQuaternion)})}knockOutMouthpiece(e,t,n,r){let i=this.headWorldPose(e);i!==null&&(this.mouthPoint.set(0,-.075,.1).applyQuaternion(i.quaternion).add(i.position),this.effects.ejectMouthpiece(e,this.mouthPoint,i.quaternion,t,n,this.gearColor(e),r))}get resultVisible(){return this.final!==null&&this.frameSeconds>=this.finalRevealAt}get resolutionScale(){return this.scaler.scale}get diagnostics(){let e=this.renderer.getContext(),t=e.getExtension(`WEBGL_debug_renderer_info`),n=t===null?e.getParameter(e.RENDERER):e.getParameter(t.UNMASKED_RENDERER_WEBGL);return{frameMs:this.frameMsAverage,resolutionScale:this.scaler.scale,gpu:this.memoryInfo,graphics:String(n)}}get memoryInfo(){return{geometries:this.renderer.info.memory.geometries,textures:this.renderer.info.memory.textures,programs:this.renderer.info.programs?.length??0}}applyResolutionScale(){let e=this.basePixelRatio*this.scaler.scale;this.renderer.setPixelRatio(e),this.composer.setPixelRatio(e);let t=this.scaler.scale<=Qq;this.bloomPass.enabled=!t,this.keyLight!==null&&Kq(this.keyLight.shadow,t,this.scaler.scale<.8?1024:2048),this.arena.setLowTier(t),this.effects.setLowTier(t)}setupLights(){let e=new kf(`#33416c`,`#3b2c20`,.6);this.scene.add(e),this.lights.push(e);let t=new Uf(`#fff0da`,185,26,.56,.6,1.7);t.position.set(.9,7.2,4.4),t.target.position.set(0,.6,0),t.castShadow=!0,t.shadow.mapSize.set(2048,2048),t.shadow.bias=Uq,t.shadow.camera.near=3,t.shadow.camera.far=14,this.keyLight=t,this.scene.add(t,t.target),this.lights.push(t);let n=new Uf(`#cfdcff`,55,24,.6,.7,1.7);n.position.set(-3.6,5.5,2.2),n.target.position.set(0,.8,0),this.scene.add(n,n.target),this.lights.push(n);for(let[e,t,n,r]of[[`#a9c0ff`,-5.2,3.4,-4.6],[`#9db4ff`,5.2,3.4,-4.6]]){let i=new Uf(e,170,30,.6,.9,1.8);i.position.set(t,n,r),i.target.position.set(0,1.2,0),this.scene.add(i,i.target),this.lights.push(i)}let r=new Uf(`#e4ecff`,85,22,.3,.8,1.5);r.position.set(0,6.4,-4.4),r.target.position.set(0,1,0),this.scene.add(r,r.target),this.lights.push(r),this.followSpot=r}draw(e,t=!1,n=!0){if(this.destroyed)return;let r=e-this.previous,i=t?1/60:Math.min(.05,Math.max(.001,r/1e3));this.previous=e,!t&&this.scaler.record(r)&&this.applyResolutionScale(),!t&&r>0&&r<1e3&&(this.frameMsAverage+=(r-this.frameMsAverage)*.05);let a=Math.min(this.pixelRatioCap,window.devicePixelRatio||1);a!==this.basePixelRatio&&(this.basePixelRatio=a,this.applyResolutionScale());let o=this.canvas.clientWidth,s=this.canvas.clientHeight;o>0&&s>0&&(this.renderer.getSize(this.sizeCheck),(this.sizeCheck.x!==o||this.sizeCheck.y!==s)&&(this.renderer.setSize(o,s,!1),this.composer.setSize(o,s),this.camera.aspect=o/s,this.portraitPull=R.clamp(1.2/this.camera.aspect,1,2.2),this.baseFov=36*Math.min(1.3,Math.sqrt(this.portraitPull)),this.camera.fov=this.baseFov,this.camera.updateProjectionMatrix()));let c=e/1e3;this.frameSeconds=c,this.finishPass.uniforms.uTime.value=c%1e3,t&&(this.lastManualTime=e);let l=this.settings();this.setBloodLevel(l.blood);let u=this.buffer.latest(),d=i,f=u?.result!==null&&u?.result!==void 0&&ci.has(u.result.finish_method);if(this.cheer(c,i),f&&!this.finishSeen&&(this.finishSeen=!0,this.finishSlowMotion=2.2,this.arena.excite(1)),this.finishSlowMotion>0&&!l.reducedMotion){this.finishSlowMotion=Math.max(0,this.finishSlowMotion-i);let e=Math.min(1,this.finishSlowMotion/.5);i*=.3+.7*(1-e)}this.viewerHitFlash=Math.max(0,this.viewerHitFlash-i*3.2);let p=u===null?0:t?hY(u):this.buffer.renderTick(e),m=this.updateRocked(u===null?null:this.shownAt(p),d,l.reducedMotion);m!==null&&u!==null&&this.onRocked?.(m,u.tick);let h=u===null?null:this.applyLocalPrediction(this.buffer.sample(p),i,e),g=this.replay;if(g!==null){let e=c-g.startedAt;e>=g.plan.durationSeconds||g.plan.impact.kind===`referee_down`&&u?.phase!==`referee_down`?this.endReplay():(p=yq(g.plan,e,this.simulation.tick_rate),h=g.buffer.sample(p)??h,!g.impactFired&&p>=g.plan.impact.tick&&h!==null&&(g.impactFired=!0,this.fireReplayImpact(h)))}let _=this.replay===null?i:i*this.replay.plan.speed,v=1.8,y=!1,b=null;if(h!==null){let e=this.replay===null?this.ceremony:null,[t,n]=e===null?this.standApart(h.fighters,_):this.ceremonyFighters(e,h.fighters,_,c,this.drawnOffsets);for(let[e,t]of h.fighters.entries())this.arcadeInjuries[e]!==null&&this.replay===null&&(t.is_downed?this.observedInjuryDown[e]=!0:this.observedInjuryDown[e]&&h.result===null&&this.restoreInjury(e));let r=this.graphs;if(r!==null){this.wearLook(0,t.player_id),this.wearLook(1,n.player_id);let e=this.headCacheValid[0]?this.headCache[0]:void 0,i=this.headCacheValid[1]?this.headCache[1]:void 0;r[0].boxer.root.visible=!0,r[1].boxer.root.visible=!0;let a=zq(h,this.simulation.tick_rate);r[0].setResting(a),r[1].setResting(a);let o=h.phase===`countdown`?h.phase_ticks_remaining:null;r[0].setCountdown(o),r[1].setCountdown(o);let s=this.replay!==null||h.phase===`complete`;r[0].stayDown(s),r[1].stayDown(s),h.phase===`fight`&&this.lastPhase===`rest`&&this.replay===null&&(this.roundCalloutUntil=c+$q,this.roundCalloutRound=h.round_number),h.phase===`rest`&&this.lastPhase!==`rest`&&this.enterRest(c),this.lastPhase=h.phase,this.anticipatePunches(u,p),r[0].setObstacle(r[1].boxer.root.position.x,r[1].boxer.root.position.z),r[1].setObstacle(r[0].boxer.root.position.x,r[0].boxer.root.position.z);let d=this.referee?.boxer.rig.bones.head.getWorldPosition(this.refereeHead)??null;r[0].setRefereeHead(d),r[1].setRefereeHead(d),r[0].update(t,n,_,c,l.reducedMotion,l.blood,p,i),r[1].update(n,t,_,c,l.reducedMotion,l.blood,p,e);let f=h.phase===`finish`?Ci(h.fighters,this.finishTargetId):null;for(let[e,t]of h.fighters.entries()){let n=f!==null&&t.player_id===f.player_id;r[e].setDazed(n),this.carnage.sync(e,(this.replay===null?void 0:u?.fighters[e])??t,l,_,c,n)}let m=r[h.fighters.findIndex(e=>e.player_id===this.viewerId)],g=m?.ownPressId??null;if(m!==void 0&&g!==null&&g!==this.soundedPress){this.soundedPress=g;let{punchClass:e,power:t}=m.punchKind;this.onOwnPunch?.(e,t,g)}for(let[e,t]of r.entries()){let n=t.boxer.bone(`head`);n!==null&&(t.boxer.root.updateMatrixWorld(!0),n.getWorldPosition(this.headCache[e]),this.headCacheValid[e]=!0);let r=t.fallBody!==null;r&&!this.fallingLive[e]&&this.replay===null&&(this.liveFallTicks[e]=p),this.fallingLive[e]=r}}for(let e=0;ee.player_id===this.viewerId),C=l.camera===`fighter`&&S>=0&&Rq(h)?this.fighterCam.update(i,c,S===0?this.tmpA:this.tmpB,S===0?this.tmpB:this.tmpA,this.effects.shakeAmount+this.powerShake,l.reducedMotion,this.camera.aspect):null;C===null&&this.fighterCam.reset();let w=this.replay,T=this.cameraOverride??(w!==null&&h!==null?this.replayFrame(h,c-w.startedAt):this.closeUpFrame(c)??this.raiseFrame(c,i,l.reducedMotion)??this.cornerShotFrame(c,h,l.reducedMotion)??this.restWideFrame(h)??this.ceremonyFrame(c)??C??x);this.ownViewActive=C!==null&&T===C;let E=this.ownViewActive?this.baseFov*xV:this.baseFov;if(this.camera.fov!==E&&(this.camera.fov=E,this.camera.updateProjectionMatrix()),this.cameraOverride===null&&this.portraitPull>1&&T.framed!==!0&&!this.ownViewActive){let e=T.tight===!0,t=this.portraitPull/Math.min(1.3,Math.sqrt(this.portraitPull)),n=e?Math.min(t,1.25):t;this.tmpCamera.subVectors(T.position,T.lookAt).multiplyScalar(n),this.camera.position.copy(T.lookAt).add(this.tmpCamera),e&&(this.camera.position.x=R.clamp(this.camera.position.x,-2.2,hJ),this.camera.position.z=R.clamp(this.camera.position.z,-2.2,hJ)),this.camera.lookAt(T.lookAt.x,T.lookAt.y-(this.portraitPull-1)*(e?.08:.45),T.lookAt.z)}else this.camera.position.copy(T.position),this.camera.lookAt(T.lookAt);this.effects.setViewDistance(this.camera.position.distanceTo(T.lookAt)),this.arena.makeRoomForCamera(this.camera.position);let D=T===x?hw(Math.max(this.tmpA.z,this.tmpB.z)):T.framed===!0?IJ:1;this.ring.setNearRopeOpacity(this.ring.nearRopeOpacity()+(D-this.ring.nearRopeOpacity())*(1-Math.exp(-6*i))),this.updateGetUp(),n&&(this.composer.render(),this.bloomPass.enabled&&this.carnage.drawBreak(this.renderer,this.scene,this.camera,this.arena.group),this.drawHudOverlay(h)),!this.destroyed&&!this.manualClock&&(this.raf=requestAnimationFrame(e=>this.draw(e)))}applyLocalPrediction(e,t,n){if(e===null||this.localInput===null||this.viewerId===null)return e;let r=e.fighters.findIndex(e=>e.player_id===this.viewerId),i=this.localInput()??{moveX:0,moveY:0,defense:`none`},a=(this.inputLatencyMs??60)/1e3*this.simulation.tick_rate+this.buffer.interpolationDelayTicks,o=this.ownCollapseUntil>e.tick,s=e.phase===`fight`||e.phase===`finish`&&r>=0&&Ci(e.fighters,this.finishTargetId)!==e.fighters[r],c=r>=0&&s&&!o?e.fighters[r]:null,l=this.evasion.holdsFeet(n)?0:this.graphs?.[r]?.ownFootwork??1,u=this.movement.update(c,i,l,n,a,e.tick,t,this.simulation.tick_rate),d=this.evasion.pose(n);if(r<0)return e;let f=e.fighters[r],p=c===null?f.defense:yB(c,i,d,this.evasion.hidesServerEvasion(n));if(Math.abs(u.dx)<.01&&Math.abs(u.dy)<.01&&p===f.defense)return e;let m=_B(f,u,e.fighters[+(r===0)]??null),h={...f,x:f.x+m.dx,y:f.y+m.dy,defense:p},g=r===0?[h,e.fighters[1]]:[e.fighters[0],h];return{...e,fighters:g}}anticipatePunches(e,t){if(!(this.replay!==null||e===null||e.phase!==`fight`&&e.phase!==`finish`))for(let[n,r]of(this.graphs??[]).entries()){let i=e.fighters[n];i!==void 0&&!i.is_downed&&r.anticipate(i,i.action_start_tick-t)}}cheer(e,t){ee.clinch_ticks>0||e.clinch_startup_ticks>0||e.is_downed)?null:zY(n.x,n.y,r.x,r.y,CJ,u-f,d-f,S),[a,o]=this.drawnTargets;a.x=i===null?0:i.ax-n.x,a.y=i===null?0:i.ay-n.y,o.x=i===null?0:i.bx-r.x,o.y=i===null?0:i.by-r.y,this.clearOfTheFallen(e);let s=1-Math.exp(-14*t);for(let e of[0,1]){let n=this.drawnOffsets[e],r=this.drawnTargets[e],i=r.x-n.x,a=r.y-n.y;if(this.drawnOffsetsLive){i*=s,a*=s;let e=Math.hypot(i,a);e>wJ*t&&(i*=wJ*t/e,a*=wJ*t/e)}n.x+=i,n.y+=a}return this.drawnOffsetsLive=!0,[this.drawnAt(0,n),this.drawnAt(1,r)]}drawnAt(e,t){let n=this.drawnOffsets[e];if(Math.abs(n.x)<.01&&Math.abs(n.y)<.01)return t;let r=gB(t.x+n.x,t.y+n.y);return Object.assign(this.drawnFighters[e],t,{x:r.x,y:r.y})}clearOfTheFallen(e){for(let t of[0,1]){let n=this.graphs?.[t]?.fallBody??null,r=+(t===0),i=e[r];if(n===null||i.is_downed||(this.graphs?.[r]?.fallBody??null)!==null)continue;let a=this.drawnTargets[r],o=this.mapping.x(i.x+a.x),s=this.mapping.z(i.y+a.y),c=this.clearOf(n,o,s);a.x+=(c.x-o)/this.mapping.x(1),a.y+=(c.z-s)/this.mapping.z(1);return}}clearOf(e,t,n){let r={x:t,z:n};for(let t of[0,1,2,3,4])e.bodyPoint(t,this.bodyPoint),r=FY(r.x,r.z,this.bodyPoint.x,this.bodyPoint.z,bJ);let i=this.insideRopes(r.x,r.z);if(Math.hypot(i.x-r.x,i.z-r.z)<1e-6)return r;let a=t=>[0,1,2,3,4].every(n=>(e.bodyPoint(n,this.bodyPoint),Math.hypot(t.x-this.bodyPoint.x,t.z-this.bodyPoint.z)>=.499999));for(let e=TJ;e<=2.000000001;e+=TJ)for(let[t,n]of[[1,0],[-1,0],[0,1],[0,-1]]){let r=this.insideRopes(i.x+t*e,i.z+n*e);if(a(r))return r}return i}insideRopes(e,t){let n=gB(e/this.mapping.x(1),t/this.mapping.z(1));return{x:this.mapping.x(n.x),z:this.mapping.z(n.y)}}headHeightOf(e){return(this.graphs?.[e]?.boxer.metrics.headRestY??1.52)+.04}bleed(e,t,n){for(let[r,i]of e.entries()){let e=DX(i,this.graphs?.[r],this.flashKnockout?.loserId),a=this.arcadeInjuries[r]??null,o=a!==null,s=(i.trauma.bleeding+i.trauma.left_cut+i.trauma.right_cut)/380,c=o?Math.max(s,pX):s;if(c>.05&&!e)this.downedPoolAccumulators[r]=0,this.downedPoolCounts[r]=0,this.effects.drip(this.dripPoint(r),c,n.reducedMotion,r);else if(c>dX&&e&&n.blood!==`off`){this.effects.stopDrip(r),this.downedPoolAccumulators[r]+=t*5*(o?mX:1);let e=this.poolSource(r,a);for(;this.downedPoolAccumulators[r]>=1;){--this.downedPoolAccumulators[r];let t=this.downedPoolCounts[r];this.downedPoolCounts[r]=t+1;let n=EX(t,c,o?hX:fX),i=t*2.399963+r*Math.PI;this.effects.pool(e.x+Math.sin(i)*n*.25,e.z+Math.cos(i)*n*.25,n,t+r*7)}}else this.effects.stopDrip(r),this.downedPoolAccumulators[r]=0,e||(this.downedPoolCounts[r]=0)}}dripPoint(e){let t=this.headWorldPose(e);if(t!==null)return t.position.add(this.tmpStumpOffset.copy(gX).applyQuaternion(t.quaternion));if(this.headCacheValid[e])return this.tmpHead.copy(this.headCache[e]);let n=e===0?this.tmpA:this.tmpB;return this.tmpHead.set(n.x,this.headHeightOf(e),n.z)}poolSource(e,t){if(t===`dismember_left`||t===`dismember_right`){let n=this.handWorldPose(e,t===`dismember_left`?`left`:`right`);if(n!==null)return n.position}let n=TX(t);if(n!==`mouth`){let t=this.tornWound(e,n);if(t!==null)return t.position}return this.headCacheValid[e]?this.headCache[e]:e===0?this.tmpA:this.tmpB}updateBlobShadows(){let e=[this.tmpA,this.tmpB,this.refereePosition];for(let[t,n]of this.blobShadows.entries()){n.visible=t>=2||!this.carnage.gibbed(t);let r=t<2?this.graphs?.[t]:this.referee??void 0,i=r?.fallBody?.centre(this.bodyPoint)??null??(r?.boxer.root.visible===!0?r.currentRoot:e[t]);n.position.x=i.x,n.position.z=i.z;let a=t<2?this.buffer.latest()?.fighters[t]:void 0,o=t<2?a!==void 0&&DX(a,r,this.flashKnockout?.loserId):r?.isDown===!0;n.scale.set(o?2.1:1.25,o?.9:.85,1)}}updateFootShadows(){for(let[e,t]of this.footShadows.entries()){let n=e>>1,r=this.graphs?.[n]?.boxer;t.visible=r!==void 0&&r.root.visible&&!this.carnage.gibbed(n),r!==void 0&&t.visible&&(r.rig.bones[e%2==0?`ankleL`:`ankleR`].getWorldPosition(this.footPoint),t.position.x=this.footPoint.x,t.position.z=this.footPoint.z,t.material.opacity=TY(this.footPoint.y-r.metrics.ankleRestY))}}updateReferee(e,t,n,r){let i=this.referee;if(i===null)return;let a=this.replay===null||this.replay.plan.impact.kind===`referee_down`;i.boxer.root.visible=a;let o=this.blobShadows[2];o!==void 0&&(o.visible=a);let s=n?.referee??null,c=this.replay!==null&&this.replay.plan.impact.kind===`referee_down`?this.replay:null;!this.refereePlaced&&s!==null&&(this.refereePlaced=!0,this.refereePosition.set(this.mapping.x(s.x),0,this.mapping.z(s.y)));let l=this.refereeReplayAt!==null||this.pendingRefereeEvents.some(e=>e.kind===`referee_down`);s?.alive===!0&&i.isDown&&this.replay===null&&n?.phase!==`referee_down`&&!l&&i.resetTransient(!1),s===null||s.alive||i.isDown||this.replay!==null||l||(this.refereePosition.set(this.mapping.x(s.x),0,this.mapping.z(s.y)),i.knockOut(),this.refereeFallUnseen=!0);let u=s!==null&&(n?.phase===`fight`&&s.alive||c!==null&&!c.impactFired)?s:null,d=s?.alive===!1&&(c===null||c.impactFired),f=n?.fighters.find(e=>e.is_downed)??(n?.phase===`knockdown`?n.fighters.find(e=>e.player_id===this.lastKnockdown?.knockdown.target_id):void 0)??null,p=n?.fighters.some(e=>e.clinch_ticks>0||e.clinch_startup_ticks>0)??!1,m=f===null&&i.breaking,h=f===null?void 0:this.graphs?.[n?.fighters.indexOf(f)??-1],g=h?.fallBody?.centre(this.bodyPoint)??null,_=f!==null&&!f.is_downed?h?.currentRoot??null:null,v=f===null?(this.tmpA.x+this.tmpB.x)/2:g?.x??_?.x??this.mapping.x(f.x),y=f===null?(this.tmpA.z+this.tmpB.z)/2:g?.z??_?.z??this.mapping.z(f.y),b=this.refereeAway.set(this.refereePosition.x-v,0,this.refereePosition.z-y);if(b.lengthSq()<.01&&b.set(0,0,-1),b.normalize(),m){let e=this.tmpB.z-this.tmpA.z,t=this.tmpA.x-this.tmpB.x,n=Math.hypot(e,t),r=e*b.x+t*b.z>=0?1:-1;n>.01&&b.set(e/n*r,0,t/n*r)}let{standoff:x,clearance:S}=LX(f!==null,p,m),C=R.clamp(v+b.x*x,-2.4,2.4),w=R.clamp(y+b.z*x,-2.4,2.4),T=this.refereePosition.x,E=this.refereePosition.z,D=this.replay===null&&this.ceremony?.positions!==null?this.ceremony:null,O=!d&&D===null&&this.replay===null&&this.stoppageWinner>=0&&this.frameSeconds>=this.stoppageRaiseAt?this.stoppageWinner===0?this.tmpA:this.tmpB:null,k=O===null?null:this.stoppageSpot??=this.raiseSpot(O,this.stoppageWinner===0?this.tmpB:this.tmpA),ee=k!==null&&k.x<0?-1:1;if(d)D!==null&&(D.refereeArrived=!0);else if(O!==null&&k!==null){let t=VJ(this.refereePosition.x,this.refereePosition.z,{x:O.x+k.x,y:O.z+k.z},RJ*e);this.refereePosition.x=t.x,this.refereePosition.z=t.y}else if(D!==null){let t=VJ(this.refereePosition.x,this.refereePosition.z,{x:FJ.x,y:FJ.z},RJ*e);this.refereePosition.x=t.x,this.refereePosition.z=t.y,D.refereeArrived=t.arrived}else if(u!==null){let t=c===null?1-Math.exp(-20*e):1;this.refereePosition.x+=(this.mapping.x(u.x)-this.refereePosition.x)*t,this.refereePosition.z+=(this.mapping.z(u.y)-this.refereePosition.z)*t}else{let t=1-Math.exp(-(m?8:1.6)*e),n=m?Math.min(1,DJ*e/Math.max(1e-6,Math.hypot(C-this.refereePosition.x,w-this.refereePosition.z)*t)):1;this.refereePosition.x+=(C-this.refereePosition.x)*t*n,this.refereePosition.z+=(w-this.refereePosition.z)*t*n}let A=O===null?D===null?u!==null||d?0:S:D.refereeArrived?0:PJ:cJ*.85;for(let e of A>0?[this.tmpA,this.tmpB]:[]){let t=this.refereePosition.x-e.x,n=this.refereePosition.z-e.z,r=Math.hypot(t,n);r.001&&(this.refereePosition.x=e.x+t/r*A,this.refereePosition.z=e.z+n/r*A)}for(let e of D!==null||d?[]:this.graphs??[]){let t=e.fallBody;if(t!==null)for(let e of[0,1,2,3,4]){t.bodyPoint(e,this.bodyPoint);let n=FY(this.refereePosition.x,this.refereePosition.z,this.bodyPoint.x,this.bodyPoint.z,yJ);this.refereePosition.x=n.x,this.refereePosition.z=n.z}}for(let e of d?[]:[0,1]){if(!this.effects.severedHeadPosition(e,this.closeUpTarget))continue;let t=FY(this.refereePosition.x,this.refereePosition.z,this.closeUpTarget.x,this.closeUpTarget.z,gJ);this.refereePosition.x=t.x,this.refereePosition.z=t.z}if(c===null&&!d){let t=this.refereePosition.x-T,n=this.refereePosition.z-E,r=Math.hypot(t,n),i=QJ*e;r>i&&(this.refereePosition.x=T+t/r*i,this.refereePosition.z=E+n/r*i)}e>0&&this.refereeVelocity.set((this.refereePosition.x-T)/e,0,(this.refereePosition.z-E)/e);let te=O!==null&&k!==null&&Math.hypot(this.refereePosition.x-O.x-k.x,this.refereePosition.z-O.z-k.z)<=uJ,j=D!==null&&!D.refereeArrived,M=O===null?D===null?u===null?Math.atan2(v-this.refereePosition.x,y-this.refereePosition.z):Math.atan2(u.facing_x,-u.facing_y):j?Math.atan2(FJ.x-this.refereePosition.x,FJ.z-this.refereePosition.z):0:te?0:Math.atan2(O.x-this.refereePosition.x,O.z-this.refereePosition.z);if(O!==null){let e=this.graphs?.[this.stoppageWinner]?.boxer.rig.bones,t=n?.fighters[this.stoppageWinner]?.injuries??[],r=sY(t,`left`),a=!te||e===void 0?null:r&&sY(t,`right`)?this.nearerGlove(e.gloveL,e.gloveR):(r?e.gloveL:e.gloveR).getWorldPosition(this.stoppageWrist);i.raise(ee<0?a:null,ee>0?a:null)}let ne=((M-this.refereeYaw+Math.PI)%(Math.PI*2)+Math.PI*2)%(Math.PI*2)-Math.PI;this.refereeYaw+=ne*(1-Math.exp(-(m?8:3)*e));let re=RX(this.refereePosition,this.refereeYaw,this.refereeVelocity,this.mapping,s);i.setRefereeCount(f!==null,f?.get_up_count??0);let ie=f===null?n?.fighters.findIndex(e=>e.stunned_ticks>0)??-1:-1,N=ie===0?this.tmpA:this.tmpB,ae=f===null?ie>=0?b.set(N.x,1.5,N.z):null:b.set(v,f.is_downed?.25:1.5,y);i.aimBreak(this.tmpA,this.tmpB,ae,n?.phase===`finish`?`stand_back`:`watch`);let oe=this.settings();if(i.update(re.self,re.focus,e,t,oe.reducedMotion,oe.blood,r),this.refereeFallUnseen&&(this.refereeFallUnseen=!1,i.fallBody?.settle()),this.effects.gushing(2)){let e=this.refereeMouth();e!==null&&this.effects.anchorGush(2,e.position,e.axis)}this.poolUnderReferee(s?.alive===!1,d,e,oe.blood)}poolUnderReferee(e,t,n,r){if(!e&&this.replay===null&&(this.refereePoolAccumulator=0,this.refereePoolCount=0),!t||r===`off`||this.referee===null)return;this.refereePoolAccumulator+=n*5*mX;let i=this.referee.boxer.rig.bones.head.getWorldPosition(this.refereeHead);for(;this.refereePoolAccumulator>=1;){--this.refereePoolAccumulator;let e=this.refereePoolCount,t=EX(e,pX,hX);if(t>=hX)return;this.refereePoolCount=e+1;let n=e*2.399963;this.effects.pool(i.x+Math.sin(n)*t*.25,i.z+Math.cos(n)*t*.25,t,e+14)}}updateTrails(e,t){let n=this.graphs;if(!(n===null||this.trails.length<4)){for(let[r,i]of n.entries())for(let[n,a]of[`gloveL`,`gloveR`].entries()){let o=this.trails[r*2+n],s=this.glows[r*2+n];if(!i.boxer.root.visible||!this.carnage.hasGlove(r,n===0?`left`:`right`)){o.reset(),s?.reset();continue}i.boxer.rig.bones[a].getWorldPosition(this.trailGlove);let c=i.powerHeat(n===0?`left`:`right`);o.update(this.trailGlove,e,this.camera.position,!t&&this.replay===null&&!i.isDown,c),s?.update(this.trailGlove,c,e,t,this.camera)}for(let t of this.impactFlashes)t.update(e,this.camera);this.powerShake*=.02**e}}presentPowerHit(e,t){let n=!t.detail.endsWith(`:body`)&&this.headCacheValid[e]===!0?this.headCache[e]:void 0;n===void 0?this.powerHitPoint.set(this.contactPoint.x,t.detail.endsWith(`:body`)?1.05:1.55,this.contactPoint.z):this.powerHitPoint.copy(n),this.impactFlashes[e]?.fire(this.powerHitPoint),this.powerShake=Math.min(tY,this.powerShake+eY)}updateCornermen(e,t,n,r){let i=this.cornermen;if(i===null)return;let a=zq(n,this.simulation.tick_rate),o=n?.phase===`complete`?this.final:null;for(let[s,c]of i.entries()){let i=s===0?-1:1,l=o===null?`work`:this.deaths[s]===null?o.winner_id!==null&&o.winner_id===n?.fighters[s]?.player_id?`cheer`:`work`:`mourn`,u=a||l!==`work`,d=u?EJ:mJ;this.cornermanPosition.set(i*d,0,-i*d);let f=s===0?3*Math.PI/4:-Math.PI/4;c.attend(u,l);let p=RX(this.cornermanPosition,f,this.cornermanVelocity,this.mapping);c.update(p.self,p.focus,e,t,!1,`off`,r)}}updateCutmen(e,t,n,r){let i=this.cutmen,a=this.graphs;if(i===null||a===null)return;let o=n?.phase===`rest`,s=this.mapping.x(l);for(let[c,l]of i.entries()){let i=c===0?-1:1,u=o&&a[c].stoolVisible?1:0,d=this.cutmanProgress[c],f=d+Math.sign(u-d)*Math.min(Math.abs(u-d),e/OJ);this.cutmanProgress[c]=f;let p=l.boxer.root.visible;if(l.boxer.root.visible=f>.005,!l.boxer.root.visible)continue;this.cutmanFrom.set(i*mJ,0,-i*2.42),fV(c===0?0:1,s,lV,32,this.cutmanTo);let m=f*f*(3-2*f);this.cornermanPosition.copy(this.cutmanFrom).lerp(this.cutmanTo,m);let h=this.cutmanLast[c];p||h.copy(this.cornermanPosition),this.cornermanVelocity.copy(this.cornermanPosition).sub(h).divideScalar(Math.max(e,.001)),h.copy(this.cornermanPosition);let g=f>.02&&f=kJ?_===null?Math.atan2(i,-i):Math.atan2(_.x-this.cutmanTo.x,_.z-this.cutmanTo.z):Math.atan2(-this.cutmanFrom.x,-this.cutmanFrom.z),y=pY(n?.fighters[c]);if(f>=kJ&&_!==null){let e=a[c].boxer.root.rotation.y;this.cutmanFacing.set(Math.sin(e),0,Math.cos(e)),this.cutmanEye.copy(_).addScaledVector(this.cutmanFacing,.09),this.cutmanEye.x+=Math.cos(e)*y.side*y.lateral,this.cutmanEye.z-=Math.sin(e)*y.side*y.lateral,this.cutmanEye.y+=y.lift;let t=n?.fighters[c]?.trauma,r=t===void 0||y.prop===`bottle`?0:Math.min(1,Math.max(t.left_cut,t.right_cut)/AJ);l.treat(this.cutmanEye,this.cutmanFacing,y.side,y.prop,r)}else l.treat(null);let b=RX(this.cornermanPosition,v,this.cornermanVelocity,this.mapping);l.update(b.self,b.focus,e,t,!1,`off`,r)}}drawHudOverlay(e){let t=Lq(this.hudCanvas);if(t===null)return;let{context:n,viewport:r}=t;if(this.hudViewport.width=r.width,this.hudViewport.height=r.height,n.clearRect(0,0,r.width,r.height),e===null)return;let i=this.settings();if(this.viewerHitFlash>.01&&!i.reducedMotion){let e=n.createRadialGradient(r.width/2,r.height/2,r.width*.12,r.width/2,r.height/2,r.width*.7);e.addColorStop(0,`rgba(255,235,225,${(this.viewerHitFlash*.18).toFixed(3)})`),e.addColorStop(1,`rgba(140,0,10,${(this.viewerHitFlash*.55).toFixed(3)})`),n.fillStyle=e,n.fillRect(0,0,r.width,r.height)}let a=cX(Math.max(...e.fighters.map(e=>e.trauma.head+e.trauma.body)),i.blood);if(a>0){let e=n.createRadialGradient(r.width/2,r.height/2,r.width*.2,r.width/2,r.height/2,r.width*.72);e.addColorStop(0,`rgba(90,0,8,0)`),e.addColorStop(1,`rgba(75,0,8,${a.toFixed(3)})`),n.fillStyle=e,n.fillRect(0,0,r.width,r.height)}i.reducedMotion||this.effects.drawLens(n,r.width,r.height);let o=this.deaths[0]??this.deaths[1],s=this.replay===null?null:this.replay.plan.impact.kind===`referee_down`?`REFEREE DOWN`:o===null?`KNOCKOUT REPLAY`:mt(o)===null?`DEATH REPLAY`:`FATALITY REPLAY`;Mi(n,r.width,r.height,e,this.players,this.viewerId,this.frameSeconds>=this.finalRevealAt?this.final:null,this.reconnectMs,this.simulation.tick_rate,this.roundStats,s,this.lagWarned?this.inputLatencyMs:null,this.frameSecondsthis.avatars.get(e),this.lastKnockdown?.knockdown.target_id??null,this.touchControls&&e.fighters.some(e=>e.player_id===this.viewerId),this.powerHeld?.()===!0,o,this.finishTargetId,!i.reducedMotion,this.getUpFrame),this.drawCaption(n,r.width,r.height,e)}updateRocked(e,t,n){let r=e?.fighters.find(e=>e.player_id===this.viewerId),i=e===null||this.replay!==null||this.final!==null?0:pq(r,e.phase),a=this.rocked.update(n?0:i,t);return this.finishPass.uniforms.uRocked.value=n?0:a,r===void 0?null:i}shownAt(e){for(let t=this.history.length-1;t>=0;--t)if(this.history[t].tick<=e)return this.history[t];return null}drawCaption(e,t,n,r){let i=this.final!==null&&this.frameSeconds>=this.finalRevealAt?this.final:null;i!==null&&!this.resultAnnounced&&(this.resultAnnounced=!0,this.commentary.resultShown(this.frameSeconds));let a=this.commentary.current(this.frameSeconds),o=this.settings(),s=a===null||!o.commentary?``:a.line.text;if(s!==this.captionText&&(this.captionText=s,this.hudCanvas.dataset.caption=s),a===null||!o.commentary)return;let c=r.fighters.find(e=>e.player_id===this.viewerId),l=Dr(t,n),u=i===null?null:VY(i,t,n,r.fighters,this.players,this.roundStats,this.viewerId,this.deaths[0]??this.deaths[1])/l,d=this.frameSeconds0});p!==null&&(e.save(),e.scale(l,l),HV(e,a,p,o.reducedMotion),e.restore())}destroy(){if(!this.destroyed){if(this.destroyed=!0,cancelAnimationFrame(this.raf),this.raf=0,this.buffer.clear(),this.dedupe.reset(),this.pendingContacts.length=0,this.pendingGore.length=0,this.carnage.dispose(),this.effects.dispose(),this.avatars.dispose(),this.arena.dispose(),Nw(this.ring),this.graphs!==null){for(let e of this.graphs)this.scene.remove(e.boxer.root),e.dispose();this.graphs=null}this.referee!==null&&(this.scene.remove(this.referee.boxer.root),this.referee.dispose(),this.referee=null);for(let e of this.trails)this.scene.remove(e.mesh),e.dispose();this.trails=[];for(let e of this.glows)this.scene.remove(e.mesh),e.dispose();this.glows=[];for(let e of this.impactFlashes)this.scene.remove(e.group),e.dispose();if(this.impactFlashes=[],this.glowMap?.dispose(),this.glowMap=null,this.cornermen!==null){for(let e of this.cornermen)this.scene.remove(e.boxer.root),e.dispose();this.cornermen=null}if(this.cutmen!==null){for(let e of this.cutmen)this.scene.remove(e.boxer.root),e.dispose();this.cutmen=null}for(let e of this.lights)this.scene.remove(e);this.keyLight?.shadow.map?.dispose(),this.keyLight?.shadow.dispose(),this.blobTexture.dispose();for(let e of[...this.blobShadows,...this.footShadows])this.scene.remove(e),e.geometry.dispose(),e.material.dispose();this.renderer.renderLists.dispose(),Vq(this.composer),this.bloomPass.materialHighPassFilter.dispose(),Kw(),this.renderer.dispose(),this.hudCanvas.remove()}}},BX=[`broadcast`,`close`,`fighter`],VX=`hands.preferences.v1`,HX={length:0,clear:()=>void 0,getItem:()=>null,key:()=>null,removeItem:()=>void 0,setItem:()=>void 0},UX=()=>{try{return window.localStorage}catch{return HX}},WX=()=>({volume:.7,haptics:!0,reducedMotion:window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches??!1,blood:`full`,commentary:!0,announcer:!0,camera:`broadcast`});function GX(e=UX()){let t=WX();try{let n=JSON.parse(e.getItem(VX)??`null`);if(typeof n!=`object`||!n||Array.isArray(n))return t;let r=n;return{volume:typeof r.volume==`number`&&Number.isFinite(r.volume)?Math.max(0,Math.min(1,r.volume)):t.volume,haptics:typeof r.haptics==`boolean`?r.haptics:t.haptics,reducedMotion:typeof r.reducedMotion==`boolean`?r.reducedMotion:t.reducedMotion,blood:r.blood===`reduced`||r.blood===`off`||r.blood===`full`?r.blood:t.blood,commentary:typeof r.commentary==`boolean`?r.commentary:t.commentary,announcer:typeof r.announcer==`boolean`?r.announcer:t.announcer,camera:BX.includes(r.camera)?r.camera:t.camera}}catch{return t}}function KX(e,t=UX()){try{t.setItem(VX,JSON.stringify({volume:Math.max(0,Math.min(1,e.volume)),haptics:e.haptics,reducedMotion:e.reducedMotion,blood:e.blood,commentary:e.commentary,announcer:e.announcer,camera:e.camera}))}catch{}}var qX=class{value;listeners=new Set;constructor(e=UX()){this.storage=e,this.value=GX(e)}storage;get current(){return this.value}update(e){this.value={...this.value,...e},KX(this.value,this.storage);for(let e of this.listeners)e(this.value)}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}destroy(){this.listeners.clear()}},JX={stage:`bootstrapping`,player:null,playerId:null,role:null,players:{},playerOrder:[],simulation:null,snapshot:null,final:null,select:null,serverTick:0,nextSequence:0,reconnectMs:0,safeError:null},YX=e=>Object.fromEntries(e.map(e=>[e.id,e]));function XX(e,t){if(t.type===`bootstrap`)return{...e,stage:`authorizing`,simulation:t.simulation,safeError:null};if(t.type===`authorized`)return{...e,stage:`connecting`,player:t.player,safeError:null};if(t.type===`connecting`)return{...e,stage:`connecting`};if(t.type===`reconnect-tick`)return{...e,stage:`paused`,reconnectMs:Math.max(0,t.remainingMs)};if(t.type===`fatal`)return{...e,stage:`fatal`,safeError:t.code,reconnectMs:0};let n=t.message;switch(n.type){case`welcome`:return{...e,playerId:n.role===`fighter`?n.player_id:null,role:n.role,players:YX(n.players),playerOrder:n.players.map(e=>e.id),serverTick:n.server_tick,nextSequence:n.role===`fighter`?n.next_sequence:0,safeError:null};case`ticket`:return e;case`waiting`:return{...e,stage:`waiting`,select:null};case`select`:return{...e,stage:`select`,select:n,players:YX(n.players),playerOrder:n.players.map(e=>e.id)};case`ready`:return{...e,stage:e.snapshot?.phase??`countdown`,select:null,players:YX(n.players),playerOrder:n.players.map(e=>e.id)};case`paused`:return{...e,stage:`paused`,reconnectMs:n.grace_ms};case`resumed`:return{...e,stage:e.snapshot?.phase??`countdown`,reconnectMs:0};case`snapshot`:return{...e,stage:n.payload.phase,snapshot:n.payload,serverTick:Math.max(e.serverTick,n.payload.tick)};case`final`:return{...e,stage:`complete`,final:n,reconnectMs:0};case`error`:return{...e,stage:`fatal`,safeError:n.code,reconnectMs:0}}}var ZX=new Set([`hit`,`counter_hit`,`block`,`perfect_block`,`guard_break`,`knockdown`,`parry`,`body_collapse`,`eye_shut`,`referee_hit`,`referee_down`]),QX=11e3,$X=1500,eZ=4e3,tZ=3e3,nZ=6,rZ=5e3,iZ=[{level:`rookie`,label:`Rookie`,detail:`Slow hands, leaves openings`},{level:`contender`,label:`Contender`,detail:`Works the body, punishes mistakes`},{level:`champion`,label:`Champion`,detail:`Slips, counters, finishes`}],aZ=e=>yn.includes(e),oZ=class{root;reloadPage;authorizer;state=JX;settings=new qX;input=new sR;audio=new wA(()=>this.settings.current);haptics=new HL(()=>this.settings.current);getUpAnnouncer=new I;voice=new Ji(()=>this.settings.current);feedbackEvents=new SR;soundedPunches=[];renderer=null;network=null;session=null;abort=new AbortController;destroyed=!1;generation=0;reloadOnRetry=!1;reloading=!1;canvas;status;overlay;roleIndicator;controlsButton;controlsPanel;retry;rematchButton;hint;cpuPicker;cpuPrompt;cpuLevel=null;rematchOpponent=null;lastPhase=null;cpuRematchLevel=null;cpuRematch=null;cpuRematchTimer=null;diagnosticsTimer=null;finalReceivedAt=0;lastFinalMatchId=null;rematchAttempts=0;rematchTimer=null;rematchCountdownTimer=null;resultRevealTimer=null;resultWaitTimer=null;completeSince=null;summaryClock=new ri;fightSummary;liveFightStatus;finalSummary;corner;stylePicker;constructor(e,t=()=>window.location.reload(),n=new CL){this.root=e,this.reloadPage=t,this.authorizer=n,e.innerHTML=`
HANDStwo-player boxing

`,this.canvas=e.querySelector(`canvas`),this.status=e.querySelector(`[data-status]`),this.overlay=e.querySelector(`[data-overlay]`),this.roleIndicator=e.querySelector(`[data-role]`),this.controlsButton=e.querySelector(`[data-controls]`),this.controlsPanel=e.querySelector(`[data-controls-panel]`),this.retry=e.querySelector(`[data-retry]`),this.rematchButton=e.querySelector(`[data-rematch]`),this.hint=e.querySelector(`[data-hint]`),this.cpuPicker=e.querySelector(`[data-cpu]`),this.cpuPrompt=e.querySelector(`[data-cpu-prompt]`),this.cpuPicker.addEventListener(`click`,this.onCpuPick),this.rematchButton.addEventListener(`click`,this.onRematch),this.fightSummary=e.querySelector(`[data-fight-summary]`),this.liveFightStatus=e.querySelector(`[data-fight-status]`),this.finalSummary=e.querySelector(`[data-final]`),this.retry.addEventListener(`click`,this.onRetry),this.bindPanels(),this.syncSettings(),this.input.attachTouch(e.querySelector(`.activity`)),this.corner=new FL(e.querySelector(`.activity`),e=>this.network?.sendCornerChoice(e)??!1),this.stylePicker=new Ln(e.querySelector(`.activity`),(e,t)=>this.network?.chooseStyle(e,t)??!1),this.input.setViewForward(()=>this.renderer?.viewForward()??null),window.addEventListener(`keydown`,this.onCameraKey)}onCameraKey=e=>{if(e.code!==`KeyK`||e.repeat||e.ctrlKey||e.metaKey||e.altKey)return;let t=e.target;if(t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement)return;e.preventDefault();let n=BX[(BX.indexOf(this.settings.current.camera)+1)%BX.length];this.settings.update({camera:n}),this.root.querySelector(`[data-camera]`).value=n};start(){this.authorize()}resetForAuthorization(){this.reloadOnRetry=!1,this.network?.dispose(),this.network=null,this.session?.destroy(),this.session=null,this.renderer?.destroy(),this.renderer=null,this.voice.cancel(),this.audio.reset(),this.abort.abort(),this.abort=new AbortController,this.state=JX,this.feedbackEvents.reset(),this.input.setActive(!1),this.input.reset(),this.finalSummary.textContent=``,this.fightSummary.textContent=``,this.liveFightStatus.textContent=``,this.clearRematchTimers(),this.rematchButton.hidden=!0,this.cpuLevel=null,this.lastPhase=null}onCpuPick=e=>{let t=e.target?.closest(`[data-cpu-level]`)?.dataset.cpuLevel;aZ(t)&&this.state.stage===`waiting`&&this.state.role===`fighter`&&this.cpuLevel===null&&this.callCpu(t)};callCpu(e){this.network?.requestCpu(e)===!0&&(this.cpuLevel=e,this.renderState())}get cpuBout(){return Object.values(this.state.players).some(e=>e.cpu===!0)}onRematch=()=>{this.rematchButton.disabled||this.state.stage!==`complete`||(this.rematchAttempts=1,this.rematchOpponent=this.cpuBout||this.state.role!==`fighter`?null:Object.values(this.state.players).find(e=>e.id!==this.state.playerId)?.name??null,this.authorize())};clearRematchTimers(){this.rematchTimer!==null&&window.clearTimeout(this.rematchTimer),this.rematchCountdownTimer!==null&&window.clearInterval(this.rematchCountdownTimer),this.rematchTimer=null,this.rematchCountdownTimer=null,this.clearCpuRematch()}scheduleCpuRematch(e){this.clearCpuRematch(),this.cpuRematch={level:e,at:Date.now()+rZ},this.cpuRematchTimer=window.setInterval(()=>{let e=this.cpuRematch;e===null||this.state.stage!==`waiting`||this.state.role!==`fighter`||this.cpuLevel!==null?this.clearCpuRematch():Date.now()>=e.at&&(this.clearCpuRematch(),this.callCpu(e.level)),this.renderState()},250)}clearCpuRematch(){this.cpuRematchTimer!==null&&window.clearInterval(this.cpuRematchTimer),this.cpuRematchTimer=null,this.cpuRematch=null}awaitResultReveal(){this.resultRevealTimer!==null&&window.clearInterval(this.resultRevealTimer);let e=()=>{let e=this.renderer?.resultVisible??!0;this.overlay.hidden=this.state.stage===`complete`&&!e,(e||this.state.stage!==`complete`)&&this.resultRevealTimer!==null&&(window.clearInterval(this.resultRevealTimer),this.resultRevealTimer=null)};this.resultRevealTimer=window.setInterval(e,200),e()}startRematchCountdown(){this.clearRematchTimers();let e=this.state.role===`fighter`?`Rematch`:`Next bout`,t=()=>{let t=Math.ceil((this.finalReceivedAt+QX-Date.now())/1e3);this.rematchButton.hidden=this.state.stage!==`complete`,this.rematchButton.disabled=t>0,this.setText(this.rematchButton,t>0?`${e} in ${t}s`:e),t<=0&&this.rematchCountdownTimer!==null&&(window.clearInterval(this.rematchCountdownTimer),this.rematchCountdownTimer=null)};t(),this.rematchCountdownTimer=window.setInterval(t,1e3)}scheduleRematchRetry(){this.rematchTimer===null&&(this.rematchAttempts>=nZ?this.fail(`rematch_unavailable`):(this.rematchAttempts+=1,this.setText(this.status,`The ring is still being cleared… trying again.`),this.rematchTimer=window.setTimeout(()=>{this.rematchTimer=null,this.authorize()},tZ)))}async authorize(){let e=++this.generation;this.resetForAuthorization(),this.dispatch({type:`connecting`}),this.setText(this.status,`Securing Discord Activity session…`),this.retry.hidden=!0;try{let t=await this.authorizer.authorize(this.abort.signal);if(this.destroyed||e!==this.generation){t.destroy();return}this.session=t,this.dispatch({type:`bootstrap`,simulation:t.bootstrap.simulation}),this.dispatch({type:`authorized`,player:t.player}),this.input.onAction(e=>{if(e.kind===`get_up_left`||e.kind===`get_up_right`){let t=this.renderer?.pressGetUp(e.kind)??null;t!==null&&this.audio.getUpVerdict(t.detail)}this.renderer?.predictAction?.(e),this.network?.notifyAction()}),this.input.onHeldChange(()=>this.network?.notifyHeld());let n=t.takeTicket();if(n===null)throw Error(`ticket_unavailable`);let r=new NR(n,()=>this.input.frame(),{onMessage:e=>this.receive(e),onReconnect:e=>{this.dispatch({type:`reconnect-tick`,remainingMs:e}),this.renderer?.setReconnect(e),this.renderState()},onFatal:e=>this.fail(e),onFreshAuth:()=>{e===this.generation&&this.authorize()}});this.network=r,r.start(),this.setText(this.status,`Connecting to the ring…`)}catch(t){!this.abort.signal.aborted&&e===this.generation&&(this.reloadOnRetry=t instanceof TA&&t.reloadRequired,this.fail(jA(t)))}}ensureRenderer(){if(this.renderer!==null||this.session===null||this.destroyed)return;let e=new zX(this.canvas,this.session.bootstrap.simulation,()=>this.settings.current,{localInput:()=>this.input.held(),inputSequenceOf:e=>this.network?.sequenceOf(e)??null,powerHeld:()=>this.input.powerHeld});e.onGetUpBeat=()=>{this.audio.getUpBeat(),this.haptics.getUpBeat()},e.onContact=(e,t)=>{this.audio.event(e,t),this.haptics.event(e,t)},e.onOwnPunch=(e,t,n)=>{this.audio.whoosh(e,t),this.soundedPunches.push(n),this.soundedPunches.length>8&&this.soundedPunches.shift()},e.onArcadeInjury=e=>this.audio.injury(e),e.onGore=e=>{this.audio.gore(e),this.haptics.gore(e),e.kind===`finish_him`?this.voice.shout(`Finish him!`):e.kind===`fatality`&&this.voice.shout(`Fatality.`)},e.onAnnouncement=e=>this.voice.speak(e),e.onCrowdCue=()=>this.audio.chant(),e.onRocked=(e,t)=>this.audio.rocked(e,t),this.renderer=e}receive(e){if(e.type===`error`){this.fail(e.code);return}e.type===`welcome`&&this.ensureRenderer(),(e.type===`welcome`||e.type===`resumed`)&&this.renderer?.resyncClock();let t=this.rematchAttempts>0;(e.type===`waiting`||e.type===`ready`)&&(this.rematchAttempts=0),e.type===`ready`&&(this.rematchOpponent=null),e.type===`ready`&&this.rememberStyle(e.players),e.type===`final`&&this.rematchAttempts>0&&e.match_id===this.lastFinalMatchId?this.scheduleRematchRetry():(this.dispatch({type:`message`,message:e}),e.type===`snapshot`&&this.receiveSnapshot(e.payload),e.type!==`select`&&e.type!==`ready`||e.players.some(e=>e.cpu===!0)||(this.cpuLevel=null),e.type===`waiting`&&(this.cpuLevel===null?t&&this.cpuRematchLevel!==null&&this.scheduleCpuRematch(this.cpuRematchLevel):this.callCpu(this.cpuLevel)),e.type===`final`&&(this.cpuRematchLevel=this.cpuBout?this.cpuLevel:null,this.rematchAttempts=0,this.lastFinalMatchId=e.match_id,this.finalReceivedAt=Date.now(),this.renderer?.setFinal(e),this.audio.result(e),this.startRematchCountdown(),this.awaitResultReveal()),this.renderer?.setPlayers(this.state.players,this.state.playerId,this.state.playerOrder),this.renderer?.setReconnect(this.state.reconnectMs),this.renderState())}get networkStats(){return{inputLatencyMs:this.network?.inputLatencyMs??null,resolutionScale:this.renderer?.resolutionScale??null,gpu:this.renderer?.memoryInfo??null}}receiveSnapshot(e){this.lastPhase===`countdown`&&e.phase!==`countdown`&&this.voice.finishLine($X),this.lastPhase=e.phase,this.renderer?.setInputLatency(this.network?.inputLatencyMs??null),this.renderer?.push(e);let t=e.fighters.find(e=>e.player_id===this.state.playerId),n=t?.is_downed===!0||(this.renderer?.getUpView??null)!==null;this.input.setKnockdown(n),this.input.setGetUpPrompt(n?this.renderer?.getUpView?.prompt?.side??t?.get_up_prompt??null:null),t!==void 0&&this.audio.snapshot(e.tick,t.stamina,t.maximum_stamina,t.trauma.head+t.trauma.body),this.audio.roundClock(e.phase,e.round_number,e.phase_ticks_remaining,this.state.simulation?.tick_rate??30),this.audio.tension(Az(e));for(let n of this.feedbackEvents.accept(e.events)){if(ZX.has(n.kind)||n.kind===`count`&&t?.is_downed===!0||n.kind===`punch_start`&&n.action_id!==null&&this.soundedPunches.includes(n.action_id))continue;let r=n.kind===`punch_start`?e.fighters.find(e=>e.player_id===n.actor_id&&e.action_id===n.action_id):void 0;this.audio.event(n,r?.action_power===`power`),this.haptics.event(n)}}rememberStyle(e){let t=e.find(e=>e.id===this.state.playerId)?.style;this.state.role===`fighter`&&t!==void 0&&An(t)}dispatch(e){this.state=XX(this.state,e)}setText(e,t){e.textContent!==t&&(e.textContent=t)}renderState(){let e={bootstrapping:`Loading…`,authorizing:`Authorizing with Discord…`,connecting:`Connecting securely…`,waiting:this.state.role===`spectator`?`Waiting for the fighters…`:this.cpuLevel===null?this.cpuRematch===null?this.rematchOpponent===null?`Waiting for an opponent. Anyone in this channel can join with Play now.`:`Waiting for ${this.rematchOpponent} to take the rematch…`:`Rematch with the ${iZ.find(e=>e.level===this.cpuRematch?.level)?.label??`computer`} in ${Math.max(1,Math.ceil((this.cpuRematch.at-Date.now())/1e3))}s, unless someone joins first.`:`Calling in the computer…`,select:`Pick how your fighter boxes.`,countdown:`Bout countdown.`,fight:`Round ${this.state.snapshot?.round_number??1} in progress.`,knockdown:`Knockdown count ${this.state.snapshot?.fighters.find(e=>e.player_id===this.state.playerId)?.get_up_count??0}.`,foul_recovery:`Foul recovery in progress.`,referee_down:`The referee is down. The bout goes on without him.`,finish:this.state.snapshot!==null&&Ci(this.state.snapshot.fighters)?.player_id===this.state.playerId?`You are out on your feet: one more punch kills you.`:`Finish him: one more punch kills.`,rest:`Between-round rest.`,paused:`Connection paused. ${Math.ceil(this.state.reconnectMs/1e3)} seconds remain.`,complete:this.cpuBout?`Bout complete. Scorecards are displayed. Bouts against the computer are unrated.`:`Bout complete. Scorecards and rating changes are displayed.`,fatal:LL(this.state.safeError??`safe_error`)},t=this.state.role===`spectator`;this.setText(this.status,t?`Spectating — ${e[this.state.stage]}`:e[this.state.stage]);let n=this.state.stage===`complete`&&this.state.final!==null;if(this.status.hidden=n||[`select`,`countdown`,`fight`,`knockdown`,`foul_recovery`,`referee_down`,`finish`,`rest`].includes(this.state.stage),this.overlay.toggleAttribute(`data-raised`,this.state.snapshot!==null),this.overlay.toggleAttribute(`data-result`,n),this.state.stage!==`complete`)this.overlay.hidden=!1,this.completeSince=null;else if(this.state.final===null){this.completeSince??=Date.now();let e=Date.now()-this.completeSince;this.overlay.hidden=e{this.resultWaitTimer=null,this.renderState()},eZ-e+50))}this.roleIndicator.hidden=!t,this.controlsButton.hidden=t,t&&(this.controlsPanel.hidden=!0,this.controlsButton.setAttribute(`aria-expanded`,`false`));let r=this.state.snapshot?.fighters.find(e=>e.player_id===this.state.playerId),i=this.state.stage===`knockdown`&&r?.is_downed===!0;i||this.getUpAnnouncer.reset();let a=t?`Spectating. ${e[this.state.stage]}`:i&&r!==void 0?this.getUpAnnouncer.announce(this.renderer?.getUpView??Se(r,this.state.snapshot?.tick??0,0,null,null,Ke(),!1)):this.state.stage===`paused`?`Connection paused.`:e[this.state.stage];this.setText(this.liveFightStatus,a),this.corner.update(this.state.snapshot,this.state.playerId,this.state.role===`fighter`&&this.state.stage===`rest`),this.renderer?.setCornerPanelTop(this.corner.top()),this.stylePicker.update(this.state.stage===`select`?this.state.select:null,this.state.playerId,this.state.role),this.retry.hidden=this.state.stage!==`fatal`,this.setText(this.retry,this.reloadOnRetry?`Reload`:`Retry securely`),this.state.stage!==`complete`&&(this.rematchButton.hidden=!0),this.cpuPicker.hidden=t||this.state.stage!==`waiting`||this.cpuLevel!==null,this.setText(this.cpuPrompt,this.cpuRematch===null?this.rematchOpponent===null?`No one here yet? Fight the computer.`:`Or fight the computer instead:`:`Or start now:`);let o=!t&&(this.state.stage===`waiting`||this.state.stage===`countdown`);this.hint.hidden=!o,o&&this.setText(this.hint,Ie(Ke(),window.innerWidth)),this.overlay.toggleAttribute(`data-touch-hint`,o&&this.state.stage===`countdown`&&Ke());let s=!t&&[`countdown`,`fight`,`knockdown`,`foul_recovery`,`referee_down`,`finish`].includes(this.state.stage),c=!t&&this.state.snapshot!==null&&(this.state.stage===`rest`||this.state.stage===`paused`);if(this.input.setActive(s,s||c),this.network?.setActive(s),this.renderFightSummary(),this.state.final!==null){let e=this.state.final;this.setText(this.finalSummary,`${e.method.replaceAll(`_`,` `)}. ${e.winner_id===null?`Draw`:`${this.state.players[e.winner_id]?.name??`Winner`} wins`}. Scorecards: ${e.scorecards.map(e=>`${e.judge}: ${e.player_one.reduce((e,t)=>e+t,0)} to ${e.player_two.reduce((e,t)=>e+t,0)}`).join(`; `)}. ${this.cpuBout?`Unrated bout against the computer.`:`Ratings: ${Object.entries(e.ratings).map(([e,t])=>`${this.state.players[e]?.name??`fighter`} ${t.before} to ${t.after}`).join(`; `)}.`}`)}}renderFightSummary(){let e=this.state.snapshot;if(e===null)return;let t=this.state.simulation?.tick_rate??30,n=Math.floor(this.summaryClock.ticks(e)/t),r=`${Math.floor(n/60)}:${String(n%60).padStart(2,`0`)}`,i=e.fighters.map(e=>{let t=this.state.players[e.player_id],n=e.injuries.length===0?`no injuries`:`injuries: ${e.injuries.map(e=>lt(e).toLowerCase()).join(`, `)}`;return`${t?.name??`Fighter`}, ${t?.cpu===!0?`computer opponent`:`ELO ${t?.rating??`unknown`}`}, stamina ${Math.round(e.stamina)} of ${Math.round(e.maximum_stamina)}, guard ${Math.round(e.guard)}, poise ${Math.round(e.poise)}, conditioning ${Math.round(e.conditioning)}, blood ${Math.round(e.blood_volume/nt*100)} percent, ${n}, ${e.warnings} warnings, ${e.knockdowns} knockdowns`}),a=e.fighters.find(e=>e.player_id===this.state.playerId),o=a?.is_downed===!0?F(this.renderer?.getUpView??Se(a,e.tick,0,null,null,Ke(),!1)):``;this.setText(this.fightSummary,`Round ${e.round_number}. ${e.phase.replace(`_`,` `)}. Clock ${r}. ${i.join(`. `)}. ${o}`.trim())}onRetry=()=>{this.reloadOnRetry?(this.reloading=!0,this.reloadPage()):this.authorize()};bindPanels(){let e=(e,t)=>{let n=this.root.querySelector(e),r=this.root.querySelector(t);n.addEventListener(`click`,()=>{r.hidden=!r.hidden,n.setAttribute(`aria-expanded`,String(!r.hidden))})};e(`[data-controls]`,`[data-controls-panel]`),e(`[data-settings]`,`[data-settings-panel]`);let t=this.root.querySelector(`[data-settings-panel]`);this.root.querySelector(`[data-settings]`).addEventListener(`click`,()=>{this.diagnosticsTimer!==null&&window.clearInterval(this.diagnosticsTimer),this.diagnosticsTimer=null,t.hidden||(this.refreshDiagnostics(),this.diagnosticsTimer=window.setInterval(()=>this.refreshDiagnostics(),1e3))});let n=this.root.querySelector(`[data-copy-diagnostics]`);n.addEventListener(`click`,()=>{let e=this.diagnosticsText(),t=()=>{this.setText(n,`Copied`),window.setTimeout(()=>this.setText(n,`Copy diagnostics`),1500)},r=()=>{let e=this.root.querySelector(`[data-diagnostics]`),t=window.getSelection();if(t===null)return;let r=document.createRange();r.selectNodeContents(e),t.removeAllRanges(),t.addRange(r),this.setText(n,`Selected. Copy manually`),window.setTimeout(()=>this.setText(n,`Copy diagnostics`),2500)},i=navigator.clipboard;i===void 0||typeof i.writeText!=`function`?r():i.writeText(e).then(t).catch(r)}),this.root.querySelector(`[data-volume]`).addEventListener(`input`,e=>{this.settings.update({volume:Number(e.target.value)}),this.audio.setVolume(),this.voice.settingsChanged()}),this.root.querySelector(`[data-haptics]`).addEventListener(`change`,e=>{this.settings.update({haptics:e.target.checked})}),this.root.querySelector(`[data-motion]`).addEventListener(`change`,e=>{let t=e.target.checked;this.settings.update({reducedMotion:t}),this.renderer?.setReducedMotion(t)}),this.root.querySelector(`[data-commentary]`).addEventListener(`change`,e=>{this.settings.update({commentary:e.target.checked})}),this.root.querySelector(`[data-announcer]`).addEventListener(`change`,e=>{let t=e.target.checked;this.settings.update({announcer:t}),t||this.voice.cancel()}),this.root.querySelector(`[data-blood]`).addEventListener(`change`,e=>{let t=e.target.value;this.settings.update({blood:t}),this.renderer?.setBloodLevel(t)}),this.root.querySelector(`[data-camera]`).addEventListener(`change`,e=>{let t=BX.find(t=>t===e.target.value);t!==void 0&&this.settings.update({camera:t})})}diagnosticsText(){let e=this.networkStats,t=this.renderer?.diagnostics,n=t===void 0||t.frameMs<=0?`-`:(1e3/t.frameMs).toFixed(0);return[`stage: ${this.state.stage} · role: ${this.state.role??`-`}`,`input latency: ${e.inputLatencyMs===null?`-`:`${Math.round(e.inputLatencyMs)} ms`}`,`frame: ${t===void 0?`-`:`${t.frameMs.toFixed(1)} ms (${n} fps)`} · render scale: ${t?.resolutionScale??`-`}`,`gpu objects: ${t===void 0?`-`:`${t.gpu.geometries} geometries, ${t.gpu.textures} textures, ${t.gpu.programs} programs`}`,`graphics: ${t?.graphics??`-`}`,`browser: ${navigator.userAgent}`,`pointer: ${Ke()?`coarse`:`fine`} · viewport: ${window.innerWidth}x${window.innerHeight} @${window.devicePixelRatio}`,`last error: ${this.state.safeError??`none`}`,`match: ${this.state.final?.match_id??`-`}`].join(` -`)}refreshDiagnostics(){this.setText(this.root.querySelector(`[data-diagnostics]`),this.diagnosticsText())}syncSettings(){let e=this.settings.current;this.root.querySelector(`[data-volume]`).value=String(e.volume),this.root.querySelector(`[data-haptics]`).checked=e.haptics,this.root.querySelector(`[data-motion]`).checked=e.reducedMotion,this.root.querySelector(`[data-blood]`).value=e.blood,this.root.querySelector(`[data-commentary]`).checked=e.commentary,this.syncAnnouncerSetting(),this.voice.onVoicesChanged=()=>this.syncAnnouncerSetting(),this.root.querySelector(`[data-camera]`).value=e.camera}syncAnnouncerSetting(){let e=this.root.querySelector(`[data-announcer]`),t=this.voice.hasVoice;e.checked=this.settings.current.announcer&&t,e.disabled=!t;let n=this.voice.supported?t?null:`This device has no English voice of its own`:`This browser cannot speak`;n===null?e.parentElement.removeAttribute(`title`):e.parentElement.title=n}fail(e){e===`room_closed`&&this.rematchAttempts>0?this.scheduleRematchRetry():(e===`client_outdated`&&(this.reloadOnRetry=!0),this.dispatch({type:`fatal`,code:e}),this.rematchOpponent=null,this.voice.cancel(),this.network?.dispose(),this.network=null,this.session?.destroy(),this.session=null,this.renderer?.destroy(),this.renderer=null,this.input.setActive(!1),this.input.reset(),this.renderState())}destroy(){this.destroyed||(this.destroyed=!0,this.generation+=1,this.abort.abort(),this.network?.dispose(),this.session?.destroy(),this.reloading||this.authorizer.close(),this.renderer?.destroy(),window.removeEventListener(`keydown`,this.onCameraKey),this.input.destroy(),this.corner.destroy(),this.stylePicker.destroy(),this.audio.destroy(),this.voice.destroy(),this.settings.destroy(),this.retry.removeEventListener(`click`,this.onRetry),this.rematchButton.removeEventListener(`click`,this.onRematch),this.cpuPicker.removeEventListener(`click`,this.onCpuPick),this.clearRematchTimers(),this.diagnosticsTimer!==null&&window.clearInterval(this.diagnosticsTimer),this.resultRevealTimer!==null&&window.clearInterval(this.resultRevealTimer),this.resultWaitTimer!==null&&window.clearTimeout(this.resultWaitTimer),this.diagnosticsTimer=null,this.root.replaceChildren())}};(new URLSearchParams(window.location.search).get(`styles`)??``).split(`,`);var sZ={broadcast:{position:[0,1.88,7.15],lookAt:[0,1.12,0]},side:{position:[7.4,1.6,0],lookAt:[0,1.1,0]},top:{position:[.01,8.5,.01],lookAt:[0,0,0]},ringside:{position:[1.6,1.5,4.1],lookAt:[.2,1.25,0]}},cZ=[[`hips`,`spine`],[`spine`,`head`],[`chest`,`shoulderL`],[`shoulderL`,`elbowL`],[`elbowL`,`gloveL`],[`chest`,`shoulderR`],[`shoulderR`,`elbowR`],[`elbowR`,`gloveR`],[`hips`,`hipL`],[`hipL`,`kneeL`],[`kneeL`,`ankleL`],[`hips`,`hipR`],[`hipR`,`kneeR`],[`kneeR`,`ankleR`]],lZ=class{root;renderer=null;replay=null;raf=0;playing=!1;speed=1;virtualTick=0;carry=0;latencyMs=0;pendingQueue=[];destroyed=!1;overlays={skeleton:!1,hurtbox:!1,hitbox:!1};skeletonLines=[];hurtboxMeshes=[];hitboxMeshes=[];statusEl;metricsEl;canvas;constructor(e){this.root=e,e.innerHTML=`
+}`},NJ=[{x:-102,y:-16},{x:102,y:-16}],PJ=[0,1],FJ=.5,IJ={x:0,z:-.2},LJ=0,RJ=200,zJ=1.3,BJ=.7,VJ=4.5;function HJ(e,t,n,r){let i=n.x-e,a=n.y-t,o=Math.hypot(i,a);return o<=Math.max(r,1e-6)?{x:n.x,y:n.y,arrived:!0}:{x:e+i/o*r,y:t+a/o*r,arrived:!1}}var UJ=16,WJ=.6,GJ={hit:.18,counter_hit:.3,guard_break:.25,knockdown:1,block:.04,perfect_block:.1,parry:.22,body_collapse:.45},KJ=new Set([`hit`,`counter_hit`,`block`,`perfect_block`,`guard_break`,`knockdown`,`parry`,`body_collapse`,`eye_shut`]),qJ=new Set([`parry`,`body_collapse`,`eye_shut`]),JJ=new Set([`hit`,`counter_hit`,`block`,`perfect_block`]),YJ=1.2,XJ=1500,ZJ=.8,QJ=2.4,$J=2.5,eY=new Set([`referee_hit`,`referee_down`]),tY=.05,nY=.08,rY={parry:{text:`PARRIED`,seconds:1},eye_shut:{text:`EYE SWOLLEN SHUT`,seconds:1.6}},iY=new Set([`injury`,`vomit`,`finish_him`,`fatality`,`death`]),aY=1.8,oY=3,sY=.6;function cY(e,t){let n=_t(e,t);return n!==`severed`&&n!==`torn`}function lY(e){return e.kind===`death`?e.detail===`brain`?`head_burst`:null:e.kind===`fatality`?e.detail===`head_burst`?`head_burst`:e.detail===`decapitation`||e.detail===`spine_rip`?`decapitation`:null:null}var uY=e=>e.kind===`knockdown`&&e.detail===`body`;function dY(e,t){if(Xq(e)&&e.action_id!==null)return t.find(t=>Zq(t)&&t.action_id===e.action_id&&t.actor_id===e.target_id&&t.target_id===e.actor_id)}function fY(e,t){if(Zq(e)&&e.action_id!==null)return t.find(t=>Xq(t)&&t.action_id===e.action_id&&t.actor_id===e.target_id&&t.target_id===e.actor_id)}function pY(e,t){return e.map((n,r)=>{if(qJ.has(n.kind)||n.kind===`knockdown`&&n.detail===yJ)return{event:n,presentationEvent:n,presentImpact:!1,reactAmount:null};let{puncherIndex:i}=Jq(n,t),a=t.fighters[i],o=a?.action_key?.split(`:`)??[],s=o.length>=3?`${o[0]}:${o[2]}`:n.detail,c=fY(n,e);if(Zq(n))return{event:n,presentationEvent:{...n,detail:c?.detail||s,direction:c?.direction??a?.facing??n.direction,blood:c?.blood??n.blood},presentImpact:!0,reactAmount:n.amount};if(dY(n,e)!==void 0)return{event:n,presentationEvent:n,presentImpact:!1,reactAmount:n.amount};if(n.kind===`knockdown`){let t=e.slice(0,r).reverse().find(e=>Xq(e)&&e.tick===n.tick&&e.actor_id===n.actor_id&&e.target_id===n.target_id);if(t!==void 0)return{event:n,presentationEvent:{...n,detail:t.detail,direction:t.direction,blood:t.blood,action_id:t.action_id},presentImpact:!0,reactAmount:dY(t,e)===void 0?null:t.amount}}return{event:n,presentationEvent:n,presentImpact:!0,reactAmount:n.amount}})}function mY(e){let t=e?.trauma;if(t===void 0)return{side:1,lift:.08,lateral:.035,prop:`enswell`};switch(e?.corner_choice){case`cut`:return{side:t.right_cut>t.left_cut?-1:1,lift:.11,lateral:.04,prop:`enswell`};case`swelling`:return{side:t.right_eye>t.left_eye?-1:1,lift:.08,lateral:.035,prop:`enswell`};case`breath`:return{side:1,lift:-.015,lateral:0,prop:`bottle`};default:return{side:t.right_eye+t.right_cut>t.left_eye+t.left_cut?-1:1,lift:.08,lateral:.035,prop:`enswell`}}}function hY(e){return e?.split(`:`)[1]===`right`?1:-1}function gY(e){return e.result===null?e.tick-1:e.tick}var _Y=50,vY=40,yY=40,bY=50,xY=[`jab`,`straight`,`hook`,`uppercut`];function SY(e,t,n,r){if(!Vq(e,t,n))return null;let i=r?.action_key?.split(`:`),a=e.detail.split(`:`).find(e=>xY.includes(e))??i?.[0],o=i?.[1]===`right`?`left`:`right`,s=e.amount;return e.detail.endsWith(`:head`)?n?.finish_method===`flash_ko`||e.kind===`counter_hit`&&s>=70?`head_burst`:a===`uppercut`&&s>=vY||a===`straight`&&s>=_Y?`decapitation`:(a===`hook`||a===`jab`)&&s>=yY?`eye_${o}`:`jaw_dislocation`:a===`hook`?s>=bY?`dismember_${o}`:`shoulder_${o}`:`ribs_${o}`}function CY(){let e=document.createElement(`canvas`);e.width=128,e.height=128;let t=e.getContext(`2d`);if(t!==null){let e=t.createRadialGradient(64,64,8,64,64,62);e.addColorStop(0,`rgba(0,0,0,0.68)`),e.addColorStop(.6,`rgba(0,0,0,0.34)`),e.addColorStop(1,`rgba(0,0,0,0)`),t.fillStyle=e,t.fillRect(0,0,128,128)}return new Vu(e)}var wY=.42,TY=.16;function EY(e){return .9*R.clamp(1-e/TY,0,1)}var DY=new B(0,.12,.02),OY=new B(0,1,0),kY=new WeakMap;function AY(e){let t=kY.get(e);return t===void 0&&(t=Gv(e,YY),kY.set(e,t)),t}function jY(e){return e.y>$g-1.4}var MY=new WeakMap;function NY(e){let t=MY.get(e);return t===void 0&&(t=Gv(e,jY),MY.set(e,t)),t}function PY(e,t,n){let r=e.bone(`head`);if(r===null)return null;e.root.updateMatrixWorld(!0);let i=e.headMesh,a=NY(i.geometry);if(a.length===0)return null;let o=t.length===a.length*3?t:new Float32Array(a.length*3);n.position.set(0,0,0);for(let[t,r]of a.entries())UY(e,r,n.scratch),n.scratch.toArray(o,t*3),n.position.add(n.scratch);return n.position.multiplyScalar(1/a.length),r.getWorldQuaternion(n.quaternion),n.across.set(1,0,0).applyQuaternion(n.quaternion),n.scratch.set(0,1,0).applyQuaternion(n.quaternion),n.quaternion.setFromUnitVectors(OY,n.scratch),o}function FY(e,t,n,r){let i=e?.currentRoot;return r.set(i?.x??n.x(t.x),0,i?.z??n.z(t.y))}function IY(e,t,n,r,i){let a=Math.hypot(e-n,t-r);return a>=i?{x:e,z:t}:a<1e-6?{x:n,z:r-i}:{x:n+(e-n)/a*i,z:r+(t-r)/a*i}}var LY=[0,1.05,-1.05,2.1,-2.1,Math.PI];function RY(e,t,n,r,i,a,o=[]){let s=n===null?0:Math.hypot(n.x,n.z),c=n!==null&&s>=.35?[Math.atan2(n.x,n.z)]:[];for(let e of LY)c.push(a+e);for(let n of c){let a=R.clamp(e+Math.sin(n)*r,-i,i),s=R.clamp(t+Math.cos(n)*r,-i,i),c=Math.hypot(a-e,s-t);if(!(c{let r=R.clamp(((n.x-e)*(a-e)+(n.z-t)*(s-t))/(c*c),.25,1);return Math.hypot(e+(a-e)*r-n.x,t+(s-t)*r-n.z)1e-9&&(s=Math.min(s,(Math.sign(n)*i-e)/n)),Math.abs(r)>1e-9&&(s=Math.min(s,(Math.sign(r)*a-t)/r));for(let i of[-1,1])for(let a of[-1,1]){let c=i*n+a*r;c>1e-9&&(s=Math.min(s,(o-i*e-a*t)/c))}return Math.max(0,s)}function BY(e,t,n,r,i,a,o,s=1/0){let c=Math.hypot(n-e,r-t);if(c>=i)return null;let l=c<1e-6?1:(n-e)/c,u=c<1e-6?0:(r-t)/c,d=i-c,f=zY(e,t,-l,-u,a,o,s),p=zY(n,r,l,u,a,o,s),m=Math.min(d/2,f),h=Math.min(d-m,p);m=Math.min(d-h,f);let g=R.clamp;return{ax:g(e-l*m,-a,a),ay:g(t-u*m,-o,o),bx:g(n+l*h,-a,a),by:g(r+u*h,-o,o)}}var VY=new WeakMap;function HY(e,t,n,r,i,a,o,s=null){let c=VY.get(e);if(c!==void 0&&c.width===t&&c.height===n)return c.top;let l=Bi(t,n,Li(e,r,i,r.map(e=>a.total(e.player_id)),s),!0).y;return VY.set(e,{width:t,height:n,top:l}),l}function UY(e,t,n){let r=e.headMesh;return Mb(n.fromBufferAttribute(r.geometry.getAttribute(`position`),t),e.look,n),r.applyBoneTransform(t,n).applyMatrix4(r.matrixWorld)}var WY=new Ps,GY=new Ps,KY=new zs;function qY(e,t,n){let r=e.geometry;WY.fromBufferAttribute(r.getAttribute(`skinIndex`),t),GY.fromBufferAttribute(r.getAttribute(`skinWeight`),t),n.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);for(let t=0;t<4;t+=1){let r=GY.getComponent(t);if(r===0)continue;let i=WY.getComponent(t);KY.multiplyMatrices(e.skeleton.bones[i].matrixWorld,e.skeleton.boneInverses[i]);for(let e=0;e<16;e+=1)n.elements[e]+=KY.elements[e]*r}return n.premultiply(e.bindMatrixInverse).multiply(e.bindMatrix)}var JY=new B(-1,0,0);function YY(e){return e.y>Zg-Qg*(e.z- -4)-.3}var XY={tick_rate:30,ring_half_width:500,ring_half_height:500};function ZY(e,t,n,r,i,a,o=!0){let s=e.geometry,c=s.getAttribute(`position`),l=s.getIndex(),u=[],d=l!==null&&r===void 0?[]:null;if(l===null||d===null)for(let e=0;e=i.start+o))return{action:i.punchClass,action_hand:i.hand,action_target:`head`,action_power:`normal`,action_id:`idle-${n}-${r}`,action_key:`${i.punchClass}:${i.hand}:head:normal`,action_start_tick:e-(t-i.start),action_startup_ticks:a.startup,action_active_ticks:a.active,action_recovery_ticks:a.recovery,action_contact_tick:e-(t-i.start)+a.startup}}return{}}var iX=1000003,aX=1.6;function oX(e,t,n,r,i,a){let o=r<0?-1:1,s=o=>Math.hypot(R.clamp(e+n*o*i,-a,a)-e,R.clamp(t+r*o*i,-a,a)-t);return s(o)>=i*.8||s(o)>=s(-o)?o:-o}function sX(e,t,n){return t?e.kind===`knockdown`?1:Math.min(1,.35+e.amount/400):(n===`full`?1:n===`reduced`?.4:0)*(e.kind===`knockdown`?.85:e.amount>=50?Math.min(.75,(e.amount-30)/140):0)}function cX(e){if(e.kind!==`hit`&&e.kind!==`counter_hit`||e.amount<(e.detail.endsWith(`:body`)?70:50))return null;let t=Math.min(100,Math.max(0,e.blood));return{seconds:.6+t/50,rate:150+e.amount*1.5+t*2}}function lX(e,t){return t===`full`?e>100?Math.min(.65,e/1800):0:e>350?Math.min(.3,e/4600):0}function uX(e){return!e.is_downed&&e.stunned_ticks===0&&e.clinch_ticks===0&&e.clinch_startup_ticks===0&&e.taunt_ticks===0&&!e.is_foul_recovery_target}function dX(e,t){if(e===null)return null;let n=t.fighters.find(t=>t.player_id===e.target_id),r=t.fighters.find(t=>t.player_id===e.actor_id);return SY(e,n===void 0?void 0:{...n,is_downed:!0},{finish_method:`ko`,winner_id:e.actor_id},r)}var fX=.2,pX=1.1,mX=1.6,hX=2.4,gX=2,_X=new B(0,-.1,.08),vX=new B(0,-.07,.1),yX=new B(0,-.35,1),bX=3,xX=320,SX=8,CX=1.6,wX=.08,TX=.12,EX=e=>e===`shoulder_left`||e===`shoulder_right`||e===`ribs_left`||e===`ribs_right`?e:`mouth`;function DX(e,t,n=pX){return Math.min(n,.06+.08*Math.sqrt(Math.max(0,e))*Math.min(1.6,Math.max(0,t)))}function OX(e,t,n){return e.is_downed||t?.isDown===!0||n!==void 0&&e.player_id===n}var kX=6,AX=11,jX=.13;function MX(e,t){let n=t===`left`?`leftRibs`:`rightRibs`;e.impact(n,[t===`left`?-6:kX,-6*.15,-1.5],AX),e.set(n,{bruise:1.2,swell:0,blood:1.4})}function NX(e,t){e.set(`mouth`,{cut:1,blood:1.4}),e.set(`chin`,{bruise:1.2}),t.set(`neckSmear`,{blood:1.4})}function PX(e,t){e.set(t===`left`?`leftShoulderSmear`:`rightShoulderSmear`,{blood:1.4}),e.set(t===`left`?`leftPec`:`rightPec`,{bruise:1.1})}var FX=new WeakMap;function IX(e,t){let n=FX.get(e);if(n===void 0){let t=e.getAttribute(`position`),r=new B,i=new B,a=M_.map(e=>{let n=0,a=1/0;i.set(e[0],e[1],e[2]);for(let e=0;ethis.onAnnouncement?.(e),cue:e=>this.onCrowdCue?.(e)});touchControls=qe();resultAnnounced=!1;captionText=``;rocked=new hq;tmpA=new B;tmpB=new B;contactPoint=new B;cornerPanelTop=null;mouthPoint=new B;tmpHead=new B;tmpHeadQuaternion=new hs;tmpStump=new B;tmpStumpOffset=new B;tmpStumpQuaternion=new hs;tmpStumpAcross=new B;tmpPart=new B;tmpPartQuaternion=new hs;woundPoint=new B;woundAxis=new B;constructor(e,t=XY,n,r={}){this.canvas=e,this.simulation=t,this.settings=n,this.manualClock=r.manualClock===!0,this.localInput=r.localInput??null,this.powerHeld=r.powerHeld??null,this.inputSequenceOf=r.inputSequenceOf??null,this.buffer=new SR(8,t.tick_rate),this.mapping=hv(t),this.renderer=new Wg({canvas:e,antialias:!0,powerPreference:`high-performance`,preserveDrawingBuffer:r.manualClock===!0}),this.renderer.shadowMap.enabled=!0,this.renderer.shadowMap.type=1,this.renderer.toneMapping=4,this.renderer.toneMappingExposure=1,this.renderer.setPixelRatio(this.basePixelRatio),this.scene.background=new V(`#04060b`),this.scene.fog=new xc(`#04060b`,.042),this.camera=new Hf(36,1,.1,80),this.camera.position.set(0,2.05,5.9),this.camera.lookAt(0,1.05,0),this.setupLights(),this.ring=Nw(),this.scene.add(this.ring.group),this.arena=ZB(),this.scene.add(this.arena.group),this.effects=new iq(this.scene,qe()?1024:2048,qe()?jW:AW),this.effects.useUploader(this.renderer),this.effects.setCamera(this.camera),this.carnage=new KH(this.effects,$Y),this.blobTexture=CY();let i=new Dd(1,1);for(let e=0;e<3;e+=1){let t=new H(i,new jl({map:this.blobTexture,transparent:!0,depthWrite:!1}));t.rotation.x=-Math.PI/2,t.position.y=.006+e*4e-4,t.renderOrder=1,this.blobShadows.push(t),this.scene.add(t)}for(let e=0;e<4;e+=1){let t=new H(i,new jl({map:this.blobTexture,transparent:!0,depthWrite:!1}));t.rotation.x=-Math.PI/2,t.position.y=.0075+e*4e-4,t.scale.set(wY,wY,1),t.renderOrder=1,t.visible=!1,this.footShadows.push(t),this.scene.add(t)}this.composer=new Wz(this.renderer),this.composer.addPass(new Gz(this.scene,this.camera));let a=new qz(new z(1280,720),.22,.35,1.5);this.bloomPass=a,this.composer.addPass(a),this.finishPass=new Vz(MJ),this.composer.addPass(this.finishPass),this.composer.addPass(new Yz),this.hudCanvas=document.createElement(`canvas`),this.hudCanvas.className=`fight-hud`,this.hudCanvas.style.cssText=`position:absolute;inset:0;width:100%;height:100%;pointer-events:none`,e.insertAdjacentElement(`afterend`,this.hudCanvas),this.bloodLevel=n().blood,this.effects.setBloodLevel(this.bloodLevel),this.ensureGraphs(),this.manualClock||(this.raf=requestAnimationFrame(e=>this.draw(e)))}ensureGraphs(){this.glbLoading||this.graphs!==null||(this.glbLoading=!0,this.graphsReady=Kw().then(async e=>{if(this.destroyed)return;let t=new aT(e,{skin:11563071,gear:1920728}),n=new aT(e,{skin:7225640,gear:12131356});this.graphs=[new LT(t,this.mapping),new LT(n,this.mapping)];let r=[this.carnage.attach(0,this.graphs[0]),this.carnage.attach(1,this.graphs[1])];this.lookIds.fill(null),this.syncInjuryPresentation(0),this.syncInjuryPresentation(1);let i=new aT(e,{skin:13081462,gear:3889080,look:bb.referee,outfit:Hb,wounds:!0});this.referee=new LT(i,this.mapping,{referee:!0,knockout:!0});let a=new aT(e,{skin:9067067,gear:1778224,look:bb.blueCorner,outfit:Ub}),o=new aT(e,{skin:14264188,gear:1778224,look:bb.redCorner,outfit:Wb});this.cornermen=[new LT(a,this.mapping,{referee:!0}),new LT(o,this.mapping,{referee:!0})];let s=new aT(e,{skin:12160102,gear:1778224,look:bb.blueCutman,outfit:Gb}),c=new aT(e,{skin:5913126,gear:1778224,look:bb.redCutman,outfit:Gb});this.cutmen=[new LT(s,this.mapping,{referee:!0}),new LT(c,this.mapping,{referee:!0})],s.root.visible=!1,c.root.visible=!1,this.trails=[1920728,12131356].flatMap(e=>[0,1].map(()=>new Lq(new V(e).lerp(new V(16777215),.55))));let l=kq();this.glowMap=l,this.glows=[0,1,2,3].map(()=>new jq(l)),this.impactFlashes=[0,1].map(()=>new Mq(l));let u=new pc;u.add(t.root,n.root,i.root,a.root,o.root,s.root,c.root,...this.trails.map(e=>e.mesh),...this.effects.compileStandIns(),...r.flatMap(e=>e.compileStandIns()),this.glows[0].standIn(),...this.impactFlashes[0].standIns()),u.add(this.carnage.xray.standIn());let d=t.headInjury.open;t.headInjury.setOpen(!0);try{await Uq(this.renderer,this.composer,u,this.camera,this.scene)}catch{}if(!this.destroyed){this.scene.add(t.root,n.root,i.root,a.root,o.root,s.root,c.root);for(let e of this.trails)this.scene.add(e.mesh);for(let e of this.glows)this.scene.add(e.mesh);for(let e of this.impactFlashes)this.scene.add(e.group);this.compileShadowsOf(u),t.headInjury.setOpen(d)}}).catch(e=>{this.glbLoading=!1,console.error(`boxer_glb_load_failed`,e)}))}compileShadowsOf(e){let t=this.keyLight;if(t!==null&&e.children.length!==0){for(let t of e.children)t.frustumCulled=!1,t.onBeforeShadow=(e,t,n,r,i,a)=>{a.needsUpdate=!0};this.scene.add(e),t.shadow.needsUpdate=!0,this.renderer.setRenderTarget(this.composer.readBuffer);try{this.renderer.render(this.scene,this.camera)}catch{}finally{this.renderer.setRenderTarget(null),this.scene.remove(e)}}}get ready(){return this.graphsReady}get labRigs(){let e=this.graphs;return e===null?[]:[e[0].boxer.root,e[1].boxer.root]}get labScene(){return this.scene}get labEffects(){return this.effects}labSetCameraOverride(e,t){this.cameraOverride={position:new B(...e),lookAt:new B(...t)}}labFrame(e,t=!0){this.draw(e*1e3,!0,t)}setCornerPanelTop(e){this.cornerPanelTop=e}viewForward(){return this.ownViewActive?(this.ownForward.x=this.fighterCam.forwardX,this.ownForward.z=this.fighterCam.forwardZ,this.ownForward):null}setPlayers(e,t,n=Object.keys(e)){this.players=e,this.viewerId=t,this.playerOrder=n}updateIdleFighters(e,t,n){let r=this.graphs;if(r===null)return;let i=this.playerOrder.filter(e=>this.players[e]!==void 0).length<2;for(let[a,o]of r.entries()){let r=this.playerOrder[a]??`seat-${a}`,s=!i||r===this.viewerId||this.viewerId===null&&a===0;if(o.boxer.root.visible=s,!s)continue;this.wearLook(a===0?0:1,r);let c=a===0?-1:1,l=Math.floor(t*this.simulation.tick_rate),u={...eX(r),x:i?0:c*180,y:i?-70:0,facing:i?1:-c,facing_x:i?0:-c*1e3,facing_y:i?-1e3:0,...i?rX(l):{}},d={...eX(this.playerOrder[1-a]??`opponent`),x:i?0:-c*180,y:i?-150:0};o.setResting(!1),o.update(u,d,e,t,this.settings().reducedMotion,this.bloodLevel,i?l:n)}}setFinal(e){if(e!==null&&e.match_id===this.final?.match_id)return;this.final=e,this.stoppageWinner=-1,this.stoppageRaiseAt=1/0,this.stoppageSpot=null,this.raiseFramed=!1,this.ceremony=this.ceremonyFor(e);let t=e?.method===`draw`&&this.deaths.every(e=>e!==null);if(this.finalRevealAt=this.frameSeconds+(this.ceremony===null?t?ui:fi(e):VJ),this.ovationUntil=e===null?0:this.frameSeconds+UJ,e!==null&&this.commentary.finish(e,this.players,this.ceremony!==null,this.frameSeconds),this.ceremony===null&&this.endCeremony(),this.pendingFinish=null,e===null||!li.has(e.method))return;let n=this.lastKnockdown===null?null:yq(this.history,this.lastKnockdown.hit??this.lastKnockdown.knockdown,this.simulation.tick_rate),r=this.finishingInjury(e);if(n!==null&&this.graphs!==null&&!this.settings().reducedMotion){r!==null&&(this.replayInjuries[r.index]={injury:r.injury,event:r.event}),this.startReplay(n);return}if(r!==null){let e=this.pendingContacts.find(e=>e.event.event_id===r.event.event_id);e===void 0?this.applyArcadeInjury(r.index,r.injury,r.event):e.injury??=r.injury}let i=this.buffer.latest()?.result?.tick;i===void 0?this.presentFinish(e):this.pendingFinish={final:e,tick:i,latestAt:this.frameSeconds+mJ}}presentFinishWhenShown(e){let t=this.pendingFinish;t===null||ee.player_id===t.hit.target_id)??-1;return r<0||this.arcadeInjuries[r]!==null?null:{index:r,injury:t.finisher,event:t.hit}}ceremonyFor(e){let t=this.buffer.latest()?.fighters;if(e===null||t===void 0||e.method!==`decision`&&e.method!==`draw`||t.some(e=>e.is_downed)||this.deaths.some(e=>e!==null))return null;let n=t.findIndex(t=>t.player_id===e.winner_id);return{winnerSeat:n===0||n===1?n:null,positions:null,refereeArrived:!1,arrivedAt:null,announced:!1}}endCeremony(){for(let e of this.graphs??[])e.awaitVerdict(null);this.referee?.raise(null,null)}ceremonyFighters(e,t,n,r,i=null){e.positions===null&&(e.positions=[{x:t[0].x+(i?.[0].x??0),y:t[0].y+(i?.[0].y??0)},{x:t[1].x+(i?.[1].x??0),y:t[1].y+(i?.[1].y??0)}],e.marks=e.positions[0].x<=e.positions[1].x?[0,1]:[1,0]);let a=e.marks??PJ,o=e.refereeArrived;for(let r of[0,1]){let i=e.positions[r],s=a[r],c=HJ(i.x,i.y,NJ[s],RJ*n),l=Math.hypot(c.x-i.x,c.y-i.y),u=n>0?1/(n*this.simulation.tick_rate):0,d=!c.arrived&&l>1e-6;Object.assign(this.drawnFighters[r],t[r],{x:c.x,y:c.y,velocity_x:(c.x-i.x)*u,velocity_y:(c.y-i.y)*u,facing_x:d?Math.round((c.x-i.x)/l*1e3):0,facing_y:d?Math.round((c.y-i.y)/l*1e3):-1e3,facing:d&&c.x=BJ){e.announced=!0,this.commentary.verdict(this.frameSeconds);for(let t of[0,1])this.graphs?.[t]?.announce(e.winnerSeat===null?`level`:e.winnerSeat===t?`winner`:`loser`);this.finalRevealAt=Math.min(this.finalRevealAt,this.frameSeconds+.35),this.arena.excite(1)}if(e.announced){let n=n=>{let r=a[0]===n?0:1,i=e.winnerSeat===null||e.winnerSeat===r,o=_t(t[r].injuries,n===0?`left`:`right`)===`whole`,s=this.graphs?.[r]?.boxer.rig.bones[n===0?`gloveL`:`gloveR`];return i&&o&&s!==void 0?s.getWorldPosition(this.ceremonyWrists[n]):null};this.referee?.isDown!==!0&&this.referee?.raise(n(1),n(0))}return this.drawnFighters}ceremonyFrame(e){let t=this.ceremony,n=this.buffer.latest();if(t===null||t.arrivedAt===null||this.replay!==null||this.final===null||n===null)return null;let{width:r,height:i}=this.hudViewport,a=HY(this.final,r,i,n.fighters,this.players,this.roundStats,this.viewerId),o=gV(this.camera.aspect,this.camera.fov,(i-a)/Math.max(1,i)),s=this.settings().reducedMotion?0:Math.sin((e-t.arrivedAt)*.35)*.06*o.distance;return this.cornerPosition.set(s,o.height+.05*o.distance,o.distance),this.cornerLookAt.set(0,o.height,0),{position:this.cornerPosition,lookAt:this.cornerLookAt,framed:!0}}raiseFrame(e,t,n){let r=this.buffer.latest();if(this.stoppageWinner<0||this.final===null||this.replay!==null||this.ceremony!==null||r===null||e0?-1:1)*lJ,o=this.stoppageSpot?.z??0;this.raiseFramed||this.raiseCentre.set(i.x+a/2,0,i.z+o/2),this.raiseCentre.lerp(this.tmpCamera.set(i.x+a/2,0,i.z+o/2),1-Math.exp(-3*t)),this.raiseFramed=!0;let{width:s,height:c}=this.hudViewport,l=HY(this.final,s,c,r.fighters,this.players,this.roundStats,this.viewerId,this.deaths[0]??this.deaths[1]),u=gV(this.camera.aspect,this.baseFov,(c-l)/Math.max(1,c)),d=e-(this.stoppageRaiseAt-cJ),f=n?0:Math.sin(d*.35)*.06*u.distance;return this.cornerPosition.set(R.clamp(this.raiseCentre.x,-1.4,1.4)+f,u.height+.05*u.distance,this.raiseCentre.z+u.distance),this.cornerLookAt.set(this.raiseCentre.x,u.height,this.raiseCentre.z),{position:this.cornerPosition,lookAt:this.cornerLookAt,framed:!0}}presentFinish(e){let t=this.buffer.latest()?.referee.alive===!1;t||this.referee?.waveOff(void 0,e.method===`death`);let n=this.buffer.latest()?.fighters,r=n?.findIndex(t=>t.player_id!==e.winner_id&&t.player_id!==null)??-1;if(r>=0&&this.headCacheValid[r]&&!this.settings().reducedMotion&&!this.carnage.gibbed(r)&&(this.finishCloseUpIndex=r,this.finishCloseUpUntil=this.frameSeconds+tJ,this.finishCloseUpBearing=null,this.finishCloseUpAt=this.frameSeconds),e.winner_id===null)return;let i=n?.findIndex(t=>t.player_id===e.winner_id)??-1;if(i<0)return;this.graphs?.[i]?.celebrate(sJ);let a=n?.[i]?.injuries??[];!t&&(cY(a,`left`)||cY(a,`right`))&&(this.stoppageWinner=i,this.stoppageRaiseAt=this.frameSeconds+cJ)}cornerShotFrame(e,t,n){if(t===null||t.phase!==`rest`||n||this.graphs===null)return null;let r=t.fighters.findIndex(e=>e.player_id===this.viewerId),i=e-this.restStartedAt,a=cV(i,t.phase_ticks_remaining/this.simulation.tick_rate,+(r===1));return a===null||!this.graphs[a].stoolVisible||this.cutmen!==null&&this.cutmanProgress[a]e.player_id===this.viewerId)===1),n=this.mapping.x(l);return pV(t,n,-3.5,iJ,this.cornerPosition).setY(aJ),pV(t,n,0,0,this.cornerLookAt),this.cornerLookAt.lerp(pV(+(t===0),n,0,0,this.tmpCamera),oJ).setY(.9),{position:this.cornerPosition,lookAt:this.cornerLookAt,framed:!0}}closeUpFrame(e){if(e>=this.finishCloseUpUntil||this.finishCloseUpIndex<0||!this.headCacheValid[this.finishCloseUpIndex])return null;let t=this.arcadeInjuries[this.finishCloseUpIndex],n=t===`decapitation`&&this.effects.severedHeadPosition(this.finishCloseUpIndex,this.closeUpTarget),r=!n&&this.effects.partPosition(qH(this.finishCloseUpIndex,`upper_body`),this.closeUpTarget),i=n||r?null:this.graphs?.[this.finishCloseUpIndex]?.fallBody??null;if(this.finishCloseUpBearing===null&&i!==null&&!i.body.asleep&&e-this.finishCloseUpAt.4?u:.9,a)}let d=this.finishCloseUpBearing+l;return this.closeUpPosition.set(R.clamp(s.x+Math.sin(d)*c,-2.2,gJ),s.y+(n?.42:o?.5:.75),R.clamp(s.z+Math.cos(d)*c,-2.2,gJ)),this.replayLookAt.copy(s),{position:this.closeUpPosition,lookAt:this.replayLookAt,tight:!0}}raiseSpot(e,t){let n=e.x>0?-1:1,r={x:n*lJ,z:0},i=-1/0;for(let[a,o]of uJ){let s=e.x+n*a*lJ,c=e.z+o*lJ,l=Math.min(pJ-Math.abs(s),pJ-Math.abs(c),Math.hypot(s-t.x,c-t.z)-fJ);for(let e of this.graphs??[]){let t=e.fallBody;if(t!==null)for(let e of[0,1,2,3,4])t.bodyPoint(e,this.bodyPoint),l=Math.min(l,Math.hypot(s-this.bodyPoint.x,c-this.bodyPoint.z)-bJ-.05)}for(let e of[0,1])this.effects.severedHeadPosition(e,this.closeUpTarget)&&(l=Math.min(l,Math.hypot(s-this.closeUpTarget.x,c-this.closeUpTarget.z)-_J-.05));if(l>=0)return{x:s-e.x,z:c-e.z};l>i&&(i=l,r={x:s-e.x,z:c-e.z})}return r}nearerGlove(e,t){e.getWorldPosition(this.stoppageWrist),t.getWorldPosition(this.stoppageOtherWrist);let n=e=>Math.hypot(e.x-this.refereePosition.x,e.z-this.refereePosition.z);return n(this.stoppageOtherWrist)-.5*n.length()}startReplay(e){let t=new SR(e.snapshots.length+2,this.simulation.tick_rate);for(let n of e.snapshots)t.push(n);if(this.replay={plan:e,buffer:t,startedAt:this.frameSeconds,impactFired:!1,side:null},this.drawnOffsetsLive=!1,this.commentary.replay(this.frameSeconds,e.impact),this.replayFollow=0,this.replayFollowAt=0,e.impact.kind===`referee_down`){this.referee?.resetTransient(!1),this.referee?.primeReplayFall(),this.effects.stopGush(2);return}for(let e=this.pendingGore.length-1;e>=0;--e)this.pendingGore[e].event.kind!==`injury`&&this.pendingGore.splice(e,1);for(let e of[0,1]){this.effects.stopGush(e),this.deaths[e]!==null&&this.carnage.undoDeath(e);let t=this.arcadeInjuries[e],n=this.arcadeInjuryEvents[e];t!==null&&n!==null&&(this.replayInjuries[e]={injury:t,event:n},this.restoreInjury(e))}for(let t of this.pendingContacts.splice(0)){let n=t.recipientIndex;t.injury!==null&&(n===0||n===1)&&this.replayInjuries[n]===null&&this.arcadeInjuries[n]===null&&(this.replayInjuries[n]={injury:t.injury,event:t.event}),t.event.event_id!==e.impact.event_id&&(t.injury=null,t.contactTick=1/0,this.pendingContacts.push(t))}let n=e.snapshots[0]?.fighters.findIndex(t=>t.player_id===e.impact.target_id)??-1;n>=0&&e.impact.detail.endsWith(`:head`)&&this.effects.returnMouthpiece(n);let r=this.lastKnockdown?.knockdown.detail===vJ;for(let[t,i]of(this.graphs??[]).entries()){let a=this.liveFallTicks[t]??null;i.resetTransient(!1),a!==null&&a>=e.impact.tick-1&&i.primeReplayFall(),t===n&&r&&i.fallToKnee(!0)}this.finalRevealAt=this.frameSeconds+e.durationSeconds+fi(this.final)}endReplay(){let e=this.replay?.plan.impact.kind===`referee_down`;if(this.replay=null,e){this.drawnOffsetsLive=!1;let e=this.buffer.latest();for(let[t,n]of(this.graphs??[]).entries())n.resetTransient(e?.fighters[t]?.is_downed===!0);return}this.drawnOffsetsLive=!1,this.reapplyReplayInjuries();let t=this.buffer.latest();for(let[e,n]of(this.graphs??[]).entries()){let r=t?.fighters[e],i=r!==void 0&&r.player_id===this.flashKnockout?.loserId;n.resetTransient(r?.is_downed===!0||i),i&&n.knockOut()}for(let e of[0,1])this.showDeath(e,0,!0);this.final!==null&&this.presentFinish(this.final)}fireRefereeEvents(e){for(let t=0;te){t+=1;continue}this.pendingRefereeEvents.splice(t,1);let r=this.buffer.latest();n.kind===`referee_down`?(r!==null&&this.fireRefereeFall(n,r),this.eventCallout={text:`THE REFEREE IS DEAD!`,until:this.frameSeconds+QJ},this.refereeReplayAt={at:this.frameSeconds+ZJ,impact:n}):n.kind===`referee_hit`?r!==null&&this.punchReferee(n,r,!1):this.referee!==null&&(this.referee.boxer.rig.bones.head.getWorldPosition(this.refereeHead),this.effects.addEvent(n,this.refereeHead,this.settings().reducedMotion))}}punchReferee(e,t,n){let r=this.referee;if(r===null)return;let[i,a]=e.detail.split(`:`),o=t.fighters.findIndex(t=>t.player_id===e.actor_id),s=t.fighters[o],c=s?.action_key?.split(`:`)[1]??null;r.react(`hit`,a===`body`?`body`:`head`,e.direction,i,c,n?Math.max(e.amount,140):e.amount),r.boxer.rig.bones.head.getWorldPosition(this.refereeHead);let l=s===void 0?void 0:Yq(s,{...s,x:t.referee.x,y:t.referee.y},this.mapping),u=this.settings().reducedMotion;this.effects.addEvent({...e,kind:n?`knockdown`:`hit`},this.refereeHead,u,l);let d=n||u?null:cX({...e,kind:`hit`}),f=d===null?null:this.refereeMouth();d!==null&&f!==null&&this.effects.gush(2,f.position,f.axis,d.seconds,d.rate,e.event_id);let p=this.refereePunchPower(e);o>=0&&this.graphs?.[o]?.landedHit(e.action_id,!1,p),this.onContact?.(e,p)}fireRefereeFall(e,t,n=!1){let r=this.referee;if(r===null)return;let i=n?this.refereeBlow(e):null;i===null?(r.boxer.rig.bones.head.getWorldPosition(this.refereeHead),this.effects.addEvent({...e,kind:`knockdown`,amount:160,blood:80},this.refereeHead,this.settings().reducedMotion)):this.punchReferee(i,t,!0);let a=this.settings().reducedMotion?null:this.refereeMouth();a!==null&&this.effects.gush(2,a.position,a.axis,bX,xX,e.event_id),r.knockOut(),this.onContact?.(e,!1)}refereePunchPower(e){for(let t=this.history.length-1;t>=0;--t){let n=this.history[t];if(n.tickt.player_id===e.actor_id);return r!==void 0&&r.action_id===e.action_id&&r.action_power===`power`}return!1}refereeBlow(e){if(e.action_id===null)return null;for(let t=this.history.length-1;t>=0;--t){let n=this.history[t],r=n.events.find(t=>t.kind===`referee_hit`&&t.action_id===e.action_id&&t.tick===e.tick);if(r!==void 0)return r;if(n.tick=0?e.fighters[a]:void 0,l=c?.action_key?.split(`:`)??[],u=l[0]??null,d=l[1]??null,f=l[3]===`power`;this.graphs?.[i]?.react(`hit`,r.detail.endsWith(`:body`)?`body`:`head`,r.direction,u,d,r.amount),n.knockdown.detail===`body`&&n.knockdown.tick>r.tick&&this.graphs?.[i]?.windedFor((n.knockdown.tick-r.tick)/this.simulation.tick_rate+.15,hY(c?.action_key??null)),o.player_id===this.flashKnockout?.loserId&&this.graphs?.[i]?.knockOut(),a>=0&&this.graphs?.[a]?.landedHit(r.action_id,n.blocked,f),r.detail.endsWith(`:head`)&&!this.settings().reducedMotion&&this.knockOutMouthpiece(i,s??r.direction,r.event_id+iX,!0),f&&!n.blocked&&!this.settings().reducedMotion&&this.presentPowerHit(i,r),this.onContact?.(r,f),this.reapplyReplayInjuries(s),this.deaths[i]!=null&&(this.showDeath(i,s??r.direction,!0),this.announceDeath(i));for(let e of this.pendingGore.splice(0))this.presentGore(e.event);for(let t of this.pendingContacts)t.contactTick===1/0&&(t.contactTick=this.replay?.plan.impact.tick??e.tick)}replayFrame(e,t){let[n,r]=e.fighters,i=this.mapping.x(n.x),a=this.mapping.z(n.y),o=this.mapping.x(r.x),s=this.mapping.z(r.y),c=this.replay?.plan.impact.kind===`referee_down`,l=e.fighters.findIndex(e=>e.player_id===this.replay?.plan.impact.target_id),u=this.replay?.impactFired===!0&&l>=0&&this.headCacheValid[l]===!0;if(c&&this.referee!==null)return this.refereeReplayFrame(e,t);let d=1-Math.exp(-3*Math.max(0,t-this.replayFollowAt));this.replayFollowAt=t,this.replayFollow+=(+!!u-this.replayFollow)*d;let f=l<0?0:Math.max(this.portraitPull>1.3?.7:0,this.replayFollow*.8),p=u?this.headCache[l].x:l===1?o:i,m=u?this.headCache[l].z:l===1?s:a,h=(i+o)/2+(p-(i+o)/2)*f,g=(a+s)/2+(m-(a+s)/2)*f,_=-(s-a),v=o-i,y=Math.hypot(_,v)||1;_/=y,v/=y;let b=2.5,x=this.replay;x!==null&&x.side===null&&(x.side=oX(h,g,_,v,b,gJ));let S=x?.side??(v<0?-1:1);_*=S,v*=S;let C=.35*Math.sin(t*.7),w=_*Math.cos(C)-v*Math.sin(C),T=_*Math.sin(C)+v*Math.cos(C);this.replayCameraPosition.set(R.clamp(h+w*b,-2.2,gJ),1.38-Math.min(.25,t*.05),R.clamp(g+T*b,-2.2,gJ));let E=Math.hypot(this.replayCameraPosition.x-h,this.replayCameraPosition.z-g),D=Math.hypot(h,g);if(E.01){let e=aX-E;this.replayCameraPosition.x=R.clamp(this.replayCameraPosition.x-h/D*e,-2.2,gJ),this.replayCameraPosition.z=R.clamp(this.replayCameraPosition.z-g/D*e,-2.2,gJ)}let O=u?R.clamp(this.headCache[l].y,.45,1.28):1.28;this.replayLookAt.set(h,1.28+(O-1.28)*this.replayFollow,g);let k=this.settings().reducedMotion?0:this.powerShake;if(k>5e-4){let e=t*61;this.replayCameraPosition.x=R.clamp(this.replayCameraPosition.x+Math.sin(e*1.31)*k,-2.2,gJ),this.replayCameraPosition.y+=Math.cos(e*1.97)*k*.6,this.replayLookAt.x+=Math.sin(e*1.53)*k*.5,this.replayLookAt.y+=Math.cos(e*2.11)*k*.35}return{position:this.replayCameraPosition,lookAt:this.replayLookAt,tight:!0}}setInputLatency(e){this.inputLatencyMs=e,this.lagWarned=mi(e,this.lagWarned)}resyncClock(){this.buffer.resync(),this.pressFloor=-1/0}setReconnect(e){e===0&&this.reconnectMs>0&&(this.pressFloor=-1/0),this.reconnectMs=e}setBloodLevel(e){e!==`full`&&this.bloodLevel===`full`&&this.restoreAllInjuries(),this.bloodLevel=e,e===`off`&&this.downedPoolAccumulators.fill(0),this.effects.setBloodLevel(e)}setReducedMotion(e){e&&(this.restoreAllInjuries(),this.effects.clearDynamic())}syncInjuryPresentation(e){let t=this.arcadeInjuries[e],n=this.graphs;if(n!==null){let r=n[e];t===`head_burst`?r.boxer.setHeadBurst(!0):r.boxer.setDecapitated(t===`decapitation`),r.boxer.headInjury.setEyeOut(t===`eye_left`||t===`eye_right`?`both`:null),r.boxer.setHandDismembered(`left`,t===`dismember_left`),r.boxer.setHandDismembered(`right`,t===`dismember_right`);let i=t===`jaw_dislocation`?`jaw`:t===`shoulder_left`||t===`shoulder_right`?t:null;r.setArcadeDislocation(i)}}applyArcadeInjury(e,t,n,r){t===`dismember_left`&&!this.carnage.hasGlove(e,`left`)?t=`ribs_left`:t===`dismember_right`&&!this.carnage.hasGlove(e,`right`)?t=`ribs_right`:(t===`eye_left`&&this.carnage.eyeBurst(e,`left`)||t===`eye_right`&&this.carnage.eyeBurst(e,`right`))&&(t=`jaw_dislocation`);let i=!1;if(t===`decapitation`){let t=this.headWorldPose(e);if(t!==null){let a=this.graphs?.[e],o=a===void 0?void 0:QY(a.boxer,t.position,t.quaternion);this.effects.decapitate(e,t.position,t.quaternion,r??n.direction,n.event_id,this.skinColor(e),o);let s=this.stumpWorldPose(e);s!==null&&this.effects.anchorStump(e,s.position,s.quaternion,s.rim,s.across),i=!0}}else if(t===`head_burst`){let t=this.headWorldPose(e);if(t!==null){this.effects.burstHead(e,t.position,r??n.direction,n.event_id);let a=this.burstStumpPose(e);a!==null&&this.effects.anchorStump(e,a.position,a.quaternion,a.rim,a.across),i=!0}}else if(t===`eye_left`||t===`eye_right`){let a=this.graphs?.[e]?.boxer,o=t===`eye_left`?`left`:`right`;if(a!==void 0&&LX(a,o,this.tmpPart,this.tmpStumpOffset,this.tmpPartQuaternion)){let t=r??n.direction;this.effects.gougeEye(e,this.tmpPart,this.tmpStumpOffset,t,n.event_id,o);let s=o===`left`?`right`:`left`;!this.effects.eyeOut(e,s)&&!this.carnage.eyeBurst(e,s)&&LX(a,s,this.tmpPart,this.tmpStumpOffset,this.tmpPartQuaternion)&&this.effects.spawnDebris(`eye`,this.tmpPart,t,1,n.event_id,CX,e),i=!0}}else if(t===`dismember_left`||t===`dismember_right`){let a=t===`dismember_left`?`left`:`right`,o=this.handWorldPose(e,a);if(o!==null){let t=this.graphs?.[e],s=t===void 0?void 0:{...ZY(t.boxer.gloveMesh(a),o.position,o.quaternion),gloveBlood:t.boxer.gloveBloodLevel};this.effects.dismemberHand(e,a,o.position,o.quaternion,r??n.direction,n.event_id,this.gearColor(e),s),this.effects.anchorHandStump(e,a,o.position,o.quaternion),i=!0}}else if(t===`jaw_dislocation`||t===`shoulder_left`||t===`shoulder_right`||t===`ribs_left`||t===`ribs_right`){let a=this.tornWound(e,EX(t));a!==null&&(this.effects.tearOpen(e,a.position,a.axis,r??n.direction,n.event_id,t===`jaw_dislocation`?SX:0),i=!0)}return i?(this.arcadeInjuries[e]=t,this.arcadeInjuryEvents[e]=n,this.observedInjuryDown[e]=!1,this.syncInjuryPresentation(e),this.onArcadeInjury?.(t,n),!0):!1}reapplyReplayInjuries(e){for(let t of[0,1]){let n=this.replayInjuries[t];if(n===null)continue;this.replayInjuries[t]=null;let r=this.settings();r.blood!==`full`||r.reducedMotion||this.applyArcadeInjury(t,n.injury,{...n.event,event_id:n.event.event_id+iX},e)}}restoreInjury(e){this.arcadeInjuries[e]!==null&&(this.arcadeInjuries[e]=null,this.arcadeInjuryEvents[e]=null,this.observedInjuryDown[e]=!1,this.syncInjuryPresentation(e),this.effects.restoreFighter(e))}restoreAllInjuries(){this.restoreInjury(0),this.restoreInjury(1),this.effects.clearArcadeGore()}headWorldPose(e){let t=this.graphs,n=t===null?null:t[e].boxer.bone(`head`);return n===null||t===null?null:(t[e].boxer.root.updateMatrixWorld(!0),n.getWorldPosition(this.tmpHead),n.getWorldQuaternion(this.tmpHeadQuaternion),this.tmpStumpOffset.copy(DY).applyQuaternion(this.tmpHeadQuaternion),this.tmpHead.add(this.tmpStumpOffset),{position:this.tmpHead,quaternion:this.tmpHeadQuaternion})}handWorldPose(e,t){let n=this.graphs,r=n===null?null:n[e].boxer.bone(t===`left`?`gloveL`:`gloveR`);return r===null||n===null?null:(n[e].boxer.root.updateMatrixWorld(!0),r.getWorldPosition(this.tmpPart),r.getWorldQuaternion(this.tmpPartQuaternion),{position:this.tmpPart,quaternion:this.tmpPartQuaternion})}gearColor(e){return this.graphs?.[e]?.boxer.gearBaseColor.getHex()??1920728}skinColor(e){return this.graphs?.[e]?.boxer.skinBaseColor.getHex()??11563071}stumpWorldPose(e){let t=this.graphs?.[e]?.boxer,n=t?.bone(`head`);if(t===void 0||n==null)return null;t.root.updateMatrixWorld(!0);let r=t.headMesh,i=AY(r.geometry);if(i.length===0)return null;this.stumpRim.length!==i.length*3&&(this.stumpRim=new Float32Array(i.length*3)),this.tmpStump.set(0,0,0);for(let[e,n]of i.entries())UY(t,n,this.tmpStumpOffset),this.tmpStumpOffset.toArray(this.stumpRim,e*3),this.tmpStump.add(this.tmpStumpOffset);return this.tmpStump.multiplyScalar(1/i.length),n.getWorldPosition(this.tmpStumpOffset).sub(this.tmpStump).normalize(),this.tmpStumpAcross.set(1,0,0).applyQuaternion(n.getWorldQuaternion(this.tmpStumpQuaternion)),this.tmpStumpQuaternion.setFromUnitVectors(OY,this.tmpStumpOffset),{position:this.tmpStump,quaternion:this.tmpStumpQuaternion,rim:this.stumpRim,across:this.tmpStumpAcross}}burstStumpPose(e){let t=this.graphs?.[e]?.boxer;if(t===void 0)return null;let n=PY(t,this.stumpRim,this.burstStump);return n===null?null:(this.stumpRim=n,{position:this.burstStump.position,quaternion:this.burstStump.quaternion,rim:n,across:this.burstStump.across})}pressTick(e){return this.pressFloor=Math.max(this.pressFloor,this.buffer.clockTick(e)+(this.inputLatencyMs??60)/1e3*this.simulation.tick_rate),this.pressFloor}pressGetUp(e){let t=this.buffer.latest(),n=t?.fighters.find(e=>e.player_id===this.viewerId);if(t?.phase!==`knockdown`||n?.is_downed!==!0)return null;let r=this.manualClock?this.lastManualTime:performance.now();return this.getUp.press(e,n,this.pressTick(r),r)}get getUpView(){return this.getUpFrame}get getUpVerdicts(){return this.getUp.counts}get getUpLog(){return this.getUp.log}updateGetUp(){let e=this.buffer.latest(),t=e?.fighters.find(e=>e.player_id===this.viewerId),n=this.manualClock?this.lastManualTime:performance.now(),r=n-this.getUpRisenAt0||!(t.is_downed||r)){this.getUpFrame=null,this.getUpBeatCount=-1;return}let i=Se(t,this.pressTick(n),n,this.getUp,this.getUpKnockTick,this.touchControls,r,this.getUpDraft);!r&&i.count>this.getUpBeatCount&&(this.getUpBeatCount>=0&&i.count>=1&&i.count<=9&&this.onGetUpBeat?.(i.count),this.getUpBeatCount=i.count),this.getUpFrame=i}predictAction(e){let t=this.buffer.latest();if(t===null||this.viewerId===null||this.replay!==null)return;let n=t.fighters.findIndex(e=>e.player_id===this.viewerId);if(n<0)return;let r=t.fighters[n];if(t.phase!==`fight`&&t.phase!==`finish`||!uX(r))return;let i=(this.inputLatencyMs??60)/1e3*this.simulation.tick_rate,a=i+this.buffer.interpolationDelayTicks,o=this.manualClock?this.lastManualTime:performance.now(),s=this.graphs?.[n];if(yB(e.kind)){let n=s?.ownPunchActive===!0;if(e.id===void 0||r.stamina0||!n&&nB(r,t.tick)>0)return;let i=n?s.ownTicksToRecovery:0;n&&s.cutOwnRecovery(),this.evasion.press(e.kind,e.id,o,a,this.simulation.tick_rate,y+ce(r.style).evasionTicks,o+i*1e3/this.simulation.tick_rate);return}if(e.kind!==`punch`)return;this.evasion.drop(o)&&s?.keepOwnRecovery();let c=yt(r.injuries,e.hand);c!==null&&s?.predict(c===e.hand?e:{...e,hand:c},performance.now()/1e3,this.simulation.tick_rate,a,tB(r,e,t.tick+1),i)}acknowledgeActions(e,t){for(let[n,r]of e.fighters.entries()){let i=r.player_id===this.viewerId,a=e.phase===`fight`||e.phase===`finish`;i&&this.evasion.acknowledge(r,a,this.inputSequenceOf)&&this.graphs?.[n]?.keepOwnRecovery();let o=t.filter(t=>Jq(t,e).puncherIndex===n);this.graphs?.[n]?.acknowledge(r,a,o,i?this.inputSequenceOf:null)}}push(e){let t=this.manualClock?this.lastManualTime:performance.now();if(!this.buffer.push(e,t))return;let n=this.dedupe.accept(e.events);this.acknowledgeActions(e,n),this.history.push(e),this.history.length>Qq&&this.history.shift();for(let r of n){if(this.roundStats.record(r,n),r.kind===`knockdown`){let t=n.find(e=>Xq(e)&&e.target_id===r.target_id&&e.tick===r.tick)??(r.detail===`body`?this.recordedHit(r):null),i=t!==null&&oi(t,e.events);this.lastKnockdown={knockdown:r,hit:t,blocked:i,finisher:i?null:dX(t,e)};let a=e.fighters.findIndex(e=>e.player_id===r.target_id);this.graphs?.[a]?.fallToKnee(r.detail===vJ),r.detail===yJ&&(this.lastKnockdown=null)}if(r.kind===`result`&&r.detail===`flash_ko`){let e=n.findLast(e=>(e.kind===`hit`||e.kind===`counter_hit`)&&e.actor_id===r.actor_id)??null;e!==null&&e.target_id!==null&&(this.flashKnockout={hitEventId:e.event_id,loserId:e.target_id},this.lastKnockdown={knockdown:{...e,kind:`knockdown`},hit:e,blocked:!1,finisher:null})}r.kind===`referee_break`&&this.referee?.breakClinch(),(eY.has(r.kind)||r.kind===`bleed`&&r.actor_id===`referee`)&&this.pendingRefereeEvents.push(r),r.kind===`box`&&(this.eventCallout={text:`BOX!`,until:this.frameSeconds+YJ}),r.kind===`body_collapse`&&r.target_id===this.viewerId&&(this.ownCollapseUntil=r.tick+r.amount),r.kind===`finish_him`&&(this.finishTargetId=r.target_id),(r.kind===`fatality`||r.kind===`death`)&&this.noteDeath(r,n,e),this.movement.observe(r,this.viewerId),r.kind===`knockdown`&&r.target_id===this.viewerId&&(this.getUp.reset(),this.getUpKnockTick=r.tick,this.pressFloor=-1/0,this.getUpRisenAt=-1/0),r.kind===`get_up_input`&&r.actor_id===this.viewerId&&this.getUp.confirm(r,t),r.kind===`get_up`&&r.actor_id===this.viewerId&&(this.getUpRisenAt=t)}let r=e.fighters.find(e=>e.player_id===this.viewerId);r?.is_downed===!0&&!this.getUpWasDown&&!n.some(e=>e.kind===`knockdown`&&e.target_id===this.viewerId)&&(this.getUp.reset(),this.getUpKnockTick=ye(r,e.tick),this.pressFloor=-1/0,this.getUpRisenAt=-1/0),this.getUpWasDown=r?.is_downed===!0,this.commentary.observe(e,n,this.players,this.simulation.tick_rate,this.frameSeconds);let i=e.fighters.findIndex(e=>e.player_id===this.viewerId),a=e.result===null&&!n.some(e=>e.kind===`knockdown`);for(let{event:t,presentationEvent:r,presentImpact:o,reactAmount:s}of pY(n,e)){let n=e.fighters.findIndex(e=>e.player_id===t.target_id),c=e.fighters.findIndex(e=>e.player_id===t.actor_id),{recipientIndex:l,puncherIndex:u}=Jq(t,e),d=e.fighters[l]??e.fighters[n]??e.fighters[c]??e.fighters[0];if(FY(this.graphs?.[e.fighters.indexOf(d)],d,this.mapping,this.contactPoint),KJ.has(t.kind)){let n=u>=0?e.fighters[u]:null;this.pendingContacts.push({event:t,presentationEvent:r,presentImpact:o,reactAmount:s,contactTick:a&&u===i&&JJ.has(t.kind)&&this.graphs?.[u]?.pressLanded(t.action_id)===!0?-1/0:n?.action_contact_tick??t.tick,recipientIndex:l,puncherIndex:u,injury:SY(t,e.fighters[l],e.result,n??void 0),power:n!==null&&n.action_id===t.action_id&&n.action_power===`power`})}else t.kind===`bleed`&&t.actor_id!==`referee`&&this.effects.addEvent(t,this.contactPoint,this.settings().reducedMotion)}for(let t of n){if(!iY.has(t.kind))continue;let n=t.action_id===null?void 0:this.pendingContacts.find(e=>e.event.tick===t.tick&&e.event.action_id===t.action_id&&(Xq(e.event)||Zq(e.event)));n!==void 0&&(n.injury??=lY(t)),t.kind!==`fatality`&&(this.pendingGore.push({event:t,at:n?.contactTick??t.tick}),t.kind===`injury`&&Qe(t.detail)&&this.carnage.expect(e.fighters.findIndex(e=>e.player_id===t.target_id),t.detail))}}fireContacts(e){for(let t=0;te){t+=1;continue}this.pendingContacts.splice(t,1);let{event:r,presentationEvent:i,reactAmount:a,recipientIndex:o,puncherIndex:s,injury:c}=n,l=n.presentImpact&&!uY(i),u=this.buffer.latest()?.fighters[o],d=Yq(this.buffer.latest()?.fighters[s],u,this.mapping);this.presentFightEvent(r,o,s),l&&u!==void 0&&(this.contactOn(o,u,i.detail.endsWith(`:body`),d,i.direction),this.effects.addEvent(i,this.contactPoint,this.settings().reducedMotion,d));let f=this.settings();if(n.power&&l&&Xq(r)&&u!==void 0&&!f.reducedMotion&&this.presentPowerHit(o,i),(n.presentImpact||qJ.has(r.kind))&&this.arena.excite(GJ[r.kind]??0),l&&o>=0&&[`hit`,`counter_hit`,`knockdown`].includes(r.kind)){let e=this.viewerId!==null&&this.buffer.latest()?.fighters[o]?.player_id===this.viewerId;this.viewerHitFlash=Math.max(this.viewerHitFlash,sX(r,e,f.blood))}c!==null&&o>=0&&this.arcadeInjuries[o]===null&&f.blood===`full`&&!f.reducedMotion&&this.applyArcadeInjury(o,c,r,d);let p=this.graphs;l&&o>=0&&!f.reducedMotion&&cU(r.kind,r.amount,i.detail.endsWith(`:head`))&&this.knockOutMouthpiece(o,d??i.direction,r.event_id,!1);let m=l&&!f.reducedMotion?cX(r):null;m!==null&&o>=0&&this.gushFromMouth(o,r.event_id,m.seconds,m.rate),n.presentImpact&&o>=0&&r.kind===`knockdown`&&!f.reducedMotion&&this.gushFromMouth(o,r.event_id,bX,xX);let h=l&&o>=0?Mv(r.kind,r.amount,i.detail.endsWith(`:head`)):0;if(h>0&&!f.reducedMotion&&f.blood!==`off`){let e=this.headWorldPose(o);e!==null&&(this.mouthPoint.set(0,-.07,.1).applyQuaternion(e.quaternion).add(e.position),this.effects.spawnTeeth(this.mouthPoint,d??i.direction,h,r.event_id))}if(l&&o>=0&&a!==null&&[`hit`,`counter_hit`,`block`,`perfect_block`,`knockdown`].includes(r.kind)){let e=r.kind===`block`||r.kind===`perfect_block`,t=i.detail.endsWith(`:body`)?`body`:`head`;if(p!==null){let n=(s>=0?this.buffer.latest()?.fighters[s]:void 0)?.action_key?.split(`:`)??[],c=n[0]??i.detail.split(`:`)[0]??null,l=n[1]??null;p[o].react(e?`block`:`hit`,t,i.direction,c,l,a),Xq(r)&&t===`head`&&l!==null&&this.carnage.punched(o,l===`left`?`right`:`left`,r.event_id),Xq(r)&&l!==null&&this.carnage.land(o,s,l,t,r.amount,r.blood,this.contactPoint,r.event_id,d??i.direction),this.flashKnockout?.hitEventId===r.event_id&&p[o].knockOut()}}l&&s>=0&&[`hit`,`counter_hit`,`block`,`perfect_block`,`guard_break`].includes(r.kind)&&p?.[s]?.landedHit(r.action_id,r.kind===`block`||r.kind===`perfect_block`,n.power),(n.presentImpact||!Xq(r))&&this.onContact?.(r,n.power===!0)}this.replay===null&&this.fireRefereeEvents(e);let t=this.refereeReplayAt;if(t!==null&&this.replay===null&&this.frameSeconds>=t.at){this.refereeReplayAt=null;let e=yq(this.history,t.impact,this.simulation.tick_rate,vq.speed,vq.before,vq.after),n=this.buffer.latest(),r=e!==null&&n!==null&&n.phase===`referee_down`&&n.phase_ticks_remaining/this.simulation.tick_rate>=e.durationSeconds-.5;e!==null&&r&&!this.settings().reducedMotion&&this.startReplay(e)}}fireGore(e){for(let t=0;te?t+=1:(this.pendingGore.splice(t,1),this.presentGore(n.event))}}presentGore(e){let t=this.buffer.latest()?.fighters,n=t?.findIndex(t=>t.player_id===(e.kind===`vomit`?e.actor_id:e.target_id))??-1;if(t===void 0||n<0)return;let r=Yq(e.actor_id===e.target_id?void 0:t.find(t=>t.player_id===e.actor_id),t[n],this.mapping)??e.direction;if(e.kind===`vomit`)this.carnage.vomit(n,e.event_id),this.onGore?.({kind:`vomit`});else if(e.kind===`finish_him`)this.arena.excite(1),this.onGore?.({kind:`finish_him`});else if(e.kind===`death`)this.showDeath(n,r,!1),this.announceDeath(n);else if(e.kind===`injury`&&Qe(e.detail)){let i=e.detail;if(!this.carnage.inflict(n,i,e.event_id,r,e.tick))return;this.eventCallout={text:`${ut(i)}!`,until:this.frameSeconds+aY},this.arena.excite(sY);let a=this.viewerId!==null&&t[n].player_id===this.viewerId;this.settings().blood!==`off`&&(this.viewerHitFlash=Math.max(this.viewerHitFlash,a?1:.5)),this.settings().reducedMotion||(this.powerShake=Math.min(nY,this.powerShake+tY)),this.onGore?.({kind:`injury`,injury:i})}}showDeath(e,t,n){let r=this.deaths[e]??null;if(r===null)return;let i=this.fatal?.index===e?this.fatal:null,a=(i?.hit.event_id??e)+(n?iX:0);i===null?r===`gutted`&&this.carnage.fatality(e,`gutting`,a,t):this.carnage.fatality(e,i.fatality,a,t),this.carnage.die(e,r)}announceDeath(e){let t=this.deaths[e]??null;if(t===null)return;let n=ht(t);this.eventCallout={text:`${gt(t)}!`,until:this.frameSeconds+oY},this.arena.excite(1),this.settings().reducedMotion||(this.powerShake=nY),n!==null&&this.onGore?.({kind:`fatality`,fatality:n}),this.onGore?.({kind:`death`,cause:t})}noteDeath(e,t,n){let r=n.fighters.findIndex(t=>t.player_id===e.target_id);if(r!==0&&r!==1)return;let i=e.action_id===null?null:t.find(t=>Xq(t)&&t.tick===e.tick&&t.action_id===e.action_id&&t.target_id===e.target_id)??null;if(e.kind===`fatality`){i!==null&&$e.includes(e.detail)&&(this.fatal={index:r,fatality:e.detail,hit:i});return}let a=mt(e.detail);a!==null&&(this.deaths[r]=a,i===null?this.lastKnockdown=null:(this.flashKnockout={hitEventId:i.event_id,loserId:n.fighters[r].player_id},this.lastKnockdown={knockdown:{...i,kind:`knockdown`},hit:i,blocked:!1,finisher:null}))}presentFightEvent(e,t,n){let r=rY[e.kind];r!==void 0&&(this.eventCallout={text:r.text,until:this.frameSeconds+r.seconds});let i=this.graphs;if(!(i===null||t<0)&&(e.kind===`parry`&&i[t]?.stagger(),e.kind===`body_collapse`)){let r=n>=0?this.buffer.latest()?.fighters[n]:void 0;i[t]?.windedFor(e.amount/this.simulation.tick_rate+.15,hY(r?.action_key??null))}}recordedHit(e){if(e.action_id===null)return null;for(let t=this.history.length-1;t>=0;--t){let n=this.history[t].events.find(t=>(t.kind===`hit`||t.kind===`counter_hit`)&&t.action_id===e.action_id&&t.target_id===e.target_id);if(n!==void 0)return n}return null}enterRest(e){this.restStartedAt=e,this.effects.clearMouthpieces()}contactOn(e,t,n,r,i){let a=n?null:this.headWorldPose(e),o=n?this.graphs?.[e]?.boxer.rig.bones.upperChest:void 0,s=a?.position??o?.getWorldPosition(this.contactPoint)??null;if(s===null)return FY(this.graphs?.[e],t,this.mapping,this.contactPoint);let c=r??{x:i<0?-1:1,z:0},l=n?TX:wX;return this.contactPoint.set(s.x-c.x*l,s.y,s.z-c.z*l)}gushFromMouth(e,t,n,r){let i=this.tornWound(e,`mouth`);i!==null&&this.effects.gush(e,i.position,i.axis,n,r,t)}anchorGush(e){if(!this.effects.gushing(e)||this.carnage.vomiting(e))return;let t=this.tornWound(e,EX(this.arcadeInjuries[e]??null));t!==null&&this.effects.anchorGush(e,t.position,t.axis)}tornWound(e,t){if(t===`mouth`){let t=this.headWorldPose(e);return t===null?null:{position:this.woundPoint.copy(vX).applyQuaternion(t.quaternion).add(t.position),axis:this.woundAxis.copy(yX).applyQuaternion(t.quaternion)}}let n=this.graphs?.[e]?.boxer;if(n===void 0)return null;n.root.updateMatrixWorld(!0);let r=n.rig.bones,i=t===`shoulder_left`||t===`ribs_left`,a=r.shoulderL.getWorldPosition(this.woundAxis).sub(r.shoulderR.getWorldPosition(this.tmpStumpOffset)).normalize().multiplyScalar(i?1:-1),o=r.upperChest.getWorldPosition(this.tmpStump),s=this.tmpStumpOffset.copy(o).sub(r.hips.getWorldPosition(this.tmpStumpAcross)).normalize();return t===`ribs_left`||t===`ribs_right`?{position:this.woundPoint.copy(o).addScaledVector(a,jX).addScaledVector(s,-.06),axis:a}:((i?r.shoulderL:r.shoulderR).getWorldPosition(this.woundPoint),{position:this.woundPoint,axis:a.addScaledVector(s,.5).normalize()})}refereeMouth(){let e=this.referee?.boxer.rig.bones.head;return e===void 0?null:(e.getWorldPosition(this.tmpHead),e.getWorldQuaternion(this.tmpHeadQuaternion),this.tmpHead.add(this.tmpStumpOffset.copy(DY).applyQuaternion(this.tmpHeadQuaternion)),{position:this.woundPoint.copy(vX).applyQuaternion(this.tmpHeadQuaternion).add(this.tmpHead),axis:this.woundAxis.copy(yX).applyQuaternion(this.tmpHeadQuaternion)})}knockOutMouthpiece(e,t,n,r){let i=this.headWorldPose(e);i!==null&&(this.mouthPoint.set(0,-.075,.1).applyQuaternion(i.quaternion).add(i.position),this.effects.ejectMouthpiece(e,this.mouthPoint,i.quaternion,t,n,this.gearColor(e),r))}get resultVisible(){return this.final!==null&&this.frameSeconds>=this.finalRevealAt}get resolutionScale(){return this.scaler.scale}get diagnostics(){let e=this.renderer.getContext(),t=e.getExtension(`WEBGL_debug_renderer_info`),n=t===null?e.getParameter(e.RENDERER):e.getParameter(t.UNMASKED_RENDERER_WEBGL);return{frameMs:this.frameMsAverage,resolutionScale:this.scaler.scale,gpu:this.memoryInfo,graphics:String(n)}}get memoryInfo(){return{geometries:this.renderer.info.memory.geometries,textures:this.renderer.info.memory.textures,programs:this.renderer.info.programs?.length??0}}applyResolutionScale(){let e=this.basePixelRatio*this.scaler.scale;this.renderer.setPixelRatio(e),this.composer.setPixelRatio(e);let t=this.scaler.scale<=$q;this.bloomPass.enabled=!t,this.keyLight!==null&&qq(this.keyLight.shadow,t,this.scaler.scale<.8?1024:2048),this.arena.setLowTier(t),this.effects.setLowTier(t)}setupLights(){let e=new Af(`#33416c`,`#3b2c20`,.6);this.scene.add(e),this.lights.push(e);let t=new Wf(`#fff0da`,185,26,.56,.6,1.7);t.position.set(.9,7.2,4.4),t.target.position.set(0,.6,0),t.castShadow=!0,t.shadow.mapSize.set(2048,2048),t.shadow.bias=Wq,t.shadow.camera.near=3,t.shadow.camera.far=14,this.keyLight=t,this.scene.add(t,t.target),this.lights.push(t);let n=new Wf(`#cfdcff`,55,24,.6,.7,1.7);n.position.set(-3.6,5.5,2.2),n.target.position.set(0,.8,0),this.scene.add(n,n.target),this.lights.push(n);for(let[e,t,n,r]of[[`#a9c0ff`,-5.2,3.4,-4.6],[`#9db4ff`,5.2,3.4,-4.6]]){let i=new Wf(e,170,30,.6,.9,1.8);i.position.set(t,n,r),i.target.position.set(0,1.2,0),this.scene.add(i,i.target),this.lights.push(i)}let r=new Wf(`#e4ecff`,85,22,.3,.8,1.5);r.position.set(0,6.4,-4.4),r.target.position.set(0,1,0),this.scene.add(r,r.target),this.lights.push(r),this.followSpot=r}draw(e,t=!1,n=!0){if(this.destroyed)return;let r=e-this.previous,i=t?1/60:Math.min(.05,Math.max(.001,r/1e3));this.previous=e,!t&&this.scaler.record(r)&&this.applyResolutionScale(),!t&&r>0&&r<1e3&&(this.frameMsAverage+=(r-this.frameMsAverage)*.05);let a=Math.min(this.pixelRatioCap,window.devicePixelRatio||1);a!==this.basePixelRatio&&(this.basePixelRatio=a,this.applyResolutionScale());let o=this.canvas.clientWidth,s=this.canvas.clientHeight;o>0&&s>0&&(this.renderer.getSize(this.sizeCheck),(this.sizeCheck.x!==o||this.sizeCheck.y!==s)&&(this.renderer.setSize(o,s,!1),this.composer.setSize(o,s),this.camera.aspect=o/s,this.portraitPull=R.clamp(1.2/this.camera.aspect,1,2.2),this.baseFov=36*Math.min(1.3,Math.sqrt(this.portraitPull)),this.camera.fov=this.baseFov,this.camera.updateProjectionMatrix()));let c=e/1e3;this.frameSeconds=c,this.finishPass.uniforms.uTime.value=c%1e3,t&&(this.lastManualTime=e);let l=this.settings();this.setBloodLevel(l.blood);let u=this.buffer.latest(),d=i,f=u?.result!==null&&u?.result!==void 0&&li.has(u.result.finish_method);if(this.cheer(c,i),f&&!this.finishSeen&&(this.finishSeen=!0,this.finishSlowMotion=2.2,this.arena.excite(1)),this.finishSlowMotion>0&&!l.reducedMotion){this.finishSlowMotion=Math.max(0,this.finishSlowMotion-i);let e=Math.min(1,this.finishSlowMotion/.5);i*=.3+.7*(1-e)}this.viewerHitFlash=Math.max(0,this.viewerHitFlash-i*3.2);let p=u===null?0:t?gY(u):this.buffer.renderTick(e),m=this.updateRocked(u===null?null:this.shownAt(p),d,l.reducedMotion);m!==null&&u!==null&&this.onRocked?.(m,u.tick);let h=u===null?null:this.applyLocalPrediction(this.buffer.sample(p),i,e),g=this.replay;if(g!==null){let e=c-g.startedAt;e>=g.plan.durationSeconds||g.plan.impact.kind===`referee_down`&&u?.phase!==`referee_down`?this.endReplay():(p=bq(g.plan,e,this.simulation.tick_rate),h=g.buffer.sample(p)??h,!g.impactFired&&p>=g.plan.impact.tick&&h!==null&&(g.impactFired=!0,this.fireReplayImpact(h)))}let _=this.replay===null?i:i*this.replay.plan.speed,v=1.8,y=!1,b=null;if(h!==null){let e=this.replay===null?this.ceremony:null,[t,n]=e===null?this.standApart(h.fighters,_):this.ceremonyFighters(e,h.fighters,_,c,this.drawnOffsets);for(let[e,t]of h.fighters.entries())this.arcadeInjuries[e]!==null&&this.replay===null&&(t.is_downed?this.observedInjuryDown[e]=!0:this.observedInjuryDown[e]&&h.result===null&&this.restoreInjury(e));let r=this.graphs;if(r!==null){this.wearLook(0,t.player_id),this.wearLook(1,n.player_id);let e=this.headCacheValid[0]?this.headCache[0]:void 0,i=this.headCacheValid[1]?this.headCache[1]:void 0;r[0].boxer.root.visible=!0,r[1].boxer.root.visible=!0;let a=Bq(h,this.simulation.tick_rate);r[0].setResting(a),r[1].setResting(a);let o=h.phase===`countdown`?h.phase_ticks_remaining:null;r[0].setCountdown(o),r[1].setCountdown(o);let s=this.replay!==null||h.phase===`complete`;r[0].stayDown(s),r[1].stayDown(s),h.phase===`fight`&&this.lastPhase===`rest`&&this.replay===null&&(this.roundCalloutUntil=c+eJ,this.roundCalloutRound=h.round_number),h.phase===`rest`&&this.lastPhase!==`rest`&&this.enterRest(c),this.lastPhase=h.phase,this.anticipatePunches(u,p),r[0].setObstacle(r[1].boxer.root.position.x,r[1].boxer.root.position.z),r[1].setObstacle(r[0].boxer.root.position.x,r[0].boxer.root.position.z);let d=this.referee?.boxer.rig.bones.head.getWorldPosition(this.refereeHead)??null;r[0].setRefereeHead(d),r[1].setRefereeHead(d),r[0].update(t,n,_,c,l.reducedMotion,l.blood,p,i),r[1].update(n,t,_,c,l.reducedMotion,l.blood,p,e);let f=h.phase===`finish`?wi(h.fighters,this.finishTargetId):null;for(let[e,t]of h.fighters.entries()){let n=f!==null&&t.player_id===f.player_id;r[e].setDazed(n),this.carnage.sync(e,(this.replay===null?void 0:u?.fighters[e])??t,l,_,c,n)}let m=r[h.fighters.findIndex(e=>e.player_id===this.viewerId)],g=m?.ownPressId??null;if(m!==void 0&&g!==null&&g!==this.soundedPress){this.soundedPress=g;let{punchClass:e,power:t}=m.punchKind;this.onOwnPunch?.(e,t,g)}for(let[e,t]of r.entries()){let n=t.boxer.bone(`head`);n!==null&&(t.boxer.root.updateMatrixWorld(!0),n.getWorldPosition(this.headCache[e]),this.headCacheValid[e]=!0);let r=t.fallBody!==null;r&&!this.fallingLive[e]&&this.replay===null&&(this.liveFallTicks[e]=p),this.fallingLive[e]=r}}for(let e=0;ee.player_id===this.viewerId),C=l.camera===`fighter`&&S>=0&&zq(h)?this.fighterCam.update(i,c,S===0?this.tmpA:this.tmpB,S===0?this.tmpB:this.tmpA,this.effects.shakeAmount+this.powerShake,l.reducedMotion,this.camera.aspect):null;C===null&&this.fighterCam.reset();let w=this.replay,T=this.cameraOverride??(w!==null&&h!==null?this.replayFrame(h,c-w.startedAt):this.closeUpFrame(c)??this.raiseFrame(c,i,l.reducedMotion)??this.cornerShotFrame(c,h,l.reducedMotion)??this.restWideFrame(h)??this.ceremonyFrame(c)??C??x);this.ownViewActive=C!==null&&T===C;let E=this.ownViewActive?this.baseFov*SV:this.baseFov;if(this.camera.fov!==E&&(this.camera.fov=E,this.camera.updateProjectionMatrix()),this.cameraOverride===null&&this.portraitPull>1&&T.framed!==!0&&!this.ownViewActive){let e=T.tight===!0,t=this.portraitPull/Math.min(1.3,Math.sqrt(this.portraitPull)),n=e?Math.min(t,1.25):t;this.tmpCamera.subVectors(T.position,T.lookAt).multiplyScalar(n),this.camera.position.copy(T.lookAt).add(this.tmpCamera),e&&(this.camera.position.x=R.clamp(this.camera.position.x,-2.2,gJ),this.camera.position.z=R.clamp(this.camera.position.z,-2.2,gJ)),this.camera.lookAt(T.lookAt.x,T.lookAt.y-(this.portraitPull-1)*(e?.08:.45),T.lookAt.z)}else this.camera.position.copy(T.position),this.camera.lookAt(T.lookAt);this.effects.setViewDistance(this.camera.position.distanceTo(T.lookAt)),this.arena.makeRoomForCamera(this.camera.position);let D=T===x?gw(Math.max(this.tmpA.z,this.tmpB.z)):T.framed===!0?LJ:1;this.ring.setNearRopeOpacity(this.ring.nearRopeOpacity()+(D-this.ring.nearRopeOpacity())*(1-Math.exp(-6*i))),this.updateGetUp(),n&&(this.composer.render(),this.bloomPass.enabled&&this.carnage.drawBreak(this.renderer,this.scene,this.camera,this.arena.group),this.drawHudOverlay(h)),!this.destroyed&&!this.manualClock&&(this.raf=requestAnimationFrame(e=>this.draw(e)))}applyLocalPrediction(e,t,n){if(e===null||this.localInput===null||this.viewerId===null)return e;let r=e.fighters.findIndex(e=>e.player_id===this.viewerId),i=this.localInput()??{moveX:0,moveY:0,defense:`none`},a=(this.inputLatencyMs??60)/1e3*this.simulation.tick_rate+this.buffer.interpolationDelayTicks,o=this.ownCollapseUntil>e.tick,s=e.phase===`fight`||e.phase===`finish`&&r>=0&&wi(e.fighters,this.finishTargetId)!==e.fighters[r],c=r>=0&&s&&!o?e.fighters[r]:null,l=this.evasion.holdsFeet(n)?0:this.graphs?.[r]?.ownFootwork??1,u=this.movement.update(c,i,l,n,a,e.tick,t,this.simulation.tick_rate),d=this.evasion.pose(n);if(r<0)return e;let f=e.fighters[r],p=c===null?f.defense:bB(c,i,d,this.evasion.hidesServerEvasion(n));if(Math.abs(u.dx)<.01&&Math.abs(u.dy)<.01&&p===f.defense)return e;let m=vB(f,u,e.fighters[+(r===0)]??null),h={...f,x:f.x+m.dx,y:f.y+m.dy,defense:p},g=r===0?[h,e.fighters[1]]:[e.fighters[0],h];return{...e,fighters:g}}anticipatePunches(e,t){if(!(this.replay!==null||e===null||e.phase!==`fight`&&e.phase!==`finish`))for(let[n,r]of(this.graphs??[]).entries()){let i=e.fighters[n];i!==void 0&&!i.is_downed&&r.anticipate(i,i.action_start_tick-t)}}cheer(e,t){ee.clinch_ticks>0||e.clinch_startup_ticks>0||e.is_downed)?null:BY(n.x,n.y,r.x,r.y,wJ,u-f,d-f,S),[a,o]=this.drawnTargets;a.x=i===null?0:i.ax-n.x,a.y=i===null?0:i.ay-n.y,o.x=i===null?0:i.bx-r.x,o.y=i===null?0:i.by-r.y,this.clearOfTheFallen(e);let s=1-Math.exp(-14*t);for(let e of[0,1]){let n=this.drawnOffsets[e],r=this.drawnTargets[e],i=r.x-n.x,a=r.y-n.y;if(this.drawnOffsetsLive){i*=s,a*=s;let e=Math.hypot(i,a);e>TJ*t&&(i*=TJ*t/e,a*=TJ*t/e)}n.x+=i,n.y+=a}return this.drawnOffsetsLive=!0,[this.drawnAt(0,n),this.drawnAt(1,r)]}drawnAt(e,t){let n=this.drawnOffsets[e];if(Math.abs(n.x)<.01&&Math.abs(n.y)<.01)return t;let r=_B(t.x+n.x,t.y+n.y);return Object.assign(this.drawnFighters[e],t,{x:r.x,y:r.y})}clearOfTheFallen(e){for(let t of[0,1]){let n=this.graphs?.[t]?.fallBody??null,r=+(t===0),i=e[r];if(n===null||i.is_downed||(this.graphs?.[r]?.fallBody??null)!==null)continue;let a=this.drawnTargets[r],o=this.mapping.x(i.x+a.x),s=this.mapping.z(i.y+a.y),c=this.clearOf(n,o,s);a.x+=(c.x-o)/this.mapping.x(1),a.y+=(c.z-s)/this.mapping.z(1);return}}clearOf(e,t,n){let r={x:t,z:n};for(let t of[0,1,2,3,4])e.bodyPoint(t,this.bodyPoint),r=IY(r.x,r.z,this.bodyPoint.x,this.bodyPoint.z,xJ);let i=this.insideRopes(r.x,r.z);if(Math.hypot(i.x-r.x,i.z-r.z)<1e-6)return r;let a=t=>[0,1,2,3,4].every(n=>(e.bodyPoint(n,this.bodyPoint),Math.hypot(t.x-this.bodyPoint.x,t.z-this.bodyPoint.z)>=.499999));for(let e=EJ;e<=2.000000001;e+=EJ)for(let[t,n]of[[1,0],[-1,0],[0,1],[0,-1]]){let r=this.insideRopes(i.x+t*e,i.z+n*e);if(a(r))return r}return i}insideRopes(e,t){let n=_B(e/this.mapping.x(1),t/this.mapping.z(1));return{x:this.mapping.x(n.x),z:this.mapping.z(n.y)}}headHeightOf(e){return(this.graphs?.[e]?.boxer.metrics.headRestY??1.52)+.04}bleed(e,t,n){for(let[r,i]of e.entries()){let e=OX(i,this.graphs?.[r],this.flashKnockout?.loserId),a=this.arcadeInjuries[r]??null,o=a!==null,s=(i.trauma.bleeding+i.trauma.left_cut+i.trauma.right_cut)/380,c=o?Math.max(s,mX):s;if(c>.05&&!e)this.downedPoolAccumulators[r]=0,this.downedPoolCounts[r]=0,this.effects.drip(this.dripPoint(r),c,n.reducedMotion,r);else if(c>fX&&e&&n.blood!==`off`){this.effects.stopDrip(r),this.downedPoolAccumulators[r]+=t*5*(o?hX:1);let e=this.poolSource(r,a);for(;this.downedPoolAccumulators[r]>=1;){--this.downedPoolAccumulators[r];let t=this.downedPoolCounts[r];this.downedPoolCounts[r]=t+1;let n=DX(t,c,o?gX:pX),i=t*2.399963+r*Math.PI;this.effects.pool(e.x+Math.sin(i)*n*.25,e.z+Math.cos(i)*n*.25,n,t+r*7)}}else this.effects.stopDrip(r),this.downedPoolAccumulators[r]=0,e||(this.downedPoolCounts[r]=0)}}dripPoint(e){let t=this.headWorldPose(e);if(t!==null)return t.position.add(this.tmpStumpOffset.copy(_X).applyQuaternion(t.quaternion));if(this.headCacheValid[e])return this.tmpHead.copy(this.headCache[e]);let n=e===0?this.tmpA:this.tmpB;return this.tmpHead.set(n.x,this.headHeightOf(e),n.z)}poolSource(e,t){if(t===`dismember_left`||t===`dismember_right`){let n=this.handWorldPose(e,t===`dismember_left`?`left`:`right`);if(n!==null)return n.position}let n=EX(t);if(n!==`mouth`){let t=this.tornWound(e,n);if(t!==null)return t.position}return this.headCacheValid[e]?this.headCache[e]:e===0?this.tmpA:this.tmpB}updateBlobShadows(){let e=[this.tmpA,this.tmpB,this.refereePosition];for(let[t,n]of this.blobShadows.entries()){n.visible=t>=2||!this.carnage.gibbed(t);let r=t<2?this.graphs?.[t]:this.referee??void 0,i=r?.fallBody?.centre(this.bodyPoint)??null??(r?.boxer.root.visible===!0?r.currentRoot:e[t]);n.position.x=i.x,n.position.z=i.z;let a=t<2?this.buffer.latest()?.fighters[t]:void 0,o=t<2?a!==void 0&&OX(a,r,this.flashKnockout?.loserId):r?.isDown===!0;n.scale.set(o?2.1:1.25,o?.9:.85,1)}}updateFootShadows(){for(let[e,t]of this.footShadows.entries()){let n=e>>1,r=this.graphs?.[n]?.boxer;t.visible=r!==void 0&&r.root.visible&&!this.carnage.gibbed(n),r!==void 0&&t.visible&&(r.rig.bones[e%2==0?`ankleL`:`ankleR`].getWorldPosition(this.footPoint),t.position.x=this.footPoint.x,t.position.z=this.footPoint.z,t.material.opacity=EY(this.footPoint.y-r.metrics.ankleRestY))}}updateReferee(e,t,n,r){let i=this.referee;if(i===null)return;let a=this.replay===null||this.replay.plan.impact.kind===`referee_down`;i.boxer.root.visible=a;let o=this.blobShadows[2];o!==void 0&&(o.visible=a);let s=n?.referee??null,c=this.replay!==null&&this.replay.plan.impact.kind===`referee_down`?this.replay:null;!this.refereePlaced&&s!==null&&(this.refereePlaced=!0,this.refereePosition.set(this.mapping.x(s.x),0,this.mapping.z(s.y)));let l=this.refereeReplayAt!==null||this.pendingRefereeEvents.some(e=>e.kind===`referee_down`);s?.alive===!0&&i.isDown&&this.replay===null&&n?.phase!==`referee_down`&&!l&&i.resetTransient(!1),s===null||s.alive||i.isDown||this.replay!==null||l||(this.refereePosition.set(this.mapping.x(s.x),0,this.mapping.z(s.y)),i.knockOut(),this.refereeFallUnseen=!0);let u=s!==null&&(n?.phase===`fight`&&s.alive||c!==null&&!c.impactFired)?s:null,d=s?.alive===!1&&(c===null||c.impactFired),f=n?.fighters.find(e=>e.is_downed)??(n?.phase===`knockdown`?n.fighters.find(e=>e.player_id===this.lastKnockdown?.knockdown.target_id):void 0)??null,p=n?.fighters.some(e=>e.clinch_ticks>0||e.clinch_startup_ticks>0)??!1,m=f===null&&i.breaking,h=f===null?void 0:this.graphs?.[n?.fighters.indexOf(f)??-1],g=h?.fallBody?.centre(this.bodyPoint)??null,_=f!==null&&!f.is_downed?h?.currentRoot??null:null,v=f===null?(this.tmpA.x+this.tmpB.x)/2:g?.x??_?.x??this.mapping.x(f.x),y=f===null?(this.tmpA.z+this.tmpB.z)/2:g?.z??_?.z??this.mapping.z(f.y),b=this.refereeAway.set(this.refereePosition.x-v,0,this.refereePosition.z-y);if(b.lengthSq()<.01&&b.set(0,0,-1),b.normalize(),m){let e=this.tmpB.z-this.tmpA.z,t=this.tmpA.x-this.tmpB.x,n=Math.hypot(e,t),r=e*b.x+t*b.z>=0?1:-1;n>.01&&b.set(e/n*r,0,t/n*r)}let{standoff:x,clearance:S}=RX(f!==null,p,m),C=R.clamp(v+b.x*x,-2.4,2.4),w=R.clamp(y+b.z*x,-2.4,2.4),T=this.refereePosition.x,E=this.refereePosition.z,D=this.replay===null&&this.ceremony?.positions!==null?this.ceremony:null,O=!d&&D===null&&this.replay===null&&this.stoppageWinner>=0&&this.frameSeconds>=this.stoppageRaiseAt?this.stoppageWinner===0?this.tmpA:this.tmpB:null,k=O===null?null:this.stoppageSpot??=this.raiseSpot(O,this.stoppageWinner===0?this.tmpB:this.tmpA),ee=k!==null&&k.x<0?-1:1;if(d)D!==null&&(D.refereeArrived=!0);else if(O!==null&&k!==null){let t=HJ(this.refereePosition.x,this.refereePosition.z,{x:O.x+k.x,y:O.z+k.z},zJ*e);this.refereePosition.x=t.x,this.refereePosition.z=t.y}else if(D!==null){let t=HJ(this.refereePosition.x,this.refereePosition.z,{x:IJ.x,y:IJ.z},zJ*e);this.refereePosition.x=t.x,this.refereePosition.z=t.y,D.refereeArrived=t.arrived}else if(u!==null){let t=c===null?1-Math.exp(-20*e):1;this.refereePosition.x+=(this.mapping.x(u.x)-this.refereePosition.x)*t,this.refereePosition.z+=(this.mapping.z(u.y)-this.refereePosition.z)*t}else{let t=1-Math.exp(-(m?8:1.6)*e),n=m?Math.min(1,OJ*e/Math.max(1e-6,Math.hypot(C-this.refereePosition.x,w-this.refereePosition.z)*t)):1;this.refereePosition.x+=(C-this.refereePosition.x)*t*n,this.refereePosition.z+=(w-this.refereePosition.z)*t*n}let A=O===null?D===null?u!==null||d?0:S:D.refereeArrived?0:FJ:lJ*.85;for(let e of A>0?[this.tmpA,this.tmpB]:[]){let t=this.refereePosition.x-e.x,n=this.refereePosition.z-e.z,r=Math.hypot(t,n);r.001&&(this.refereePosition.x=e.x+t/r*A,this.refereePosition.z=e.z+n/r*A)}for(let e of D!==null||d?[]:this.graphs??[]){let t=e.fallBody;if(t!==null)for(let e of[0,1,2,3,4]){t.bodyPoint(e,this.bodyPoint);let n=IY(this.refereePosition.x,this.refereePosition.z,this.bodyPoint.x,this.bodyPoint.z,bJ);this.refereePosition.x=n.x,this.refereePosition.z=n.z}}for(let e of d?[]:[0,1]){if(!this.effects.severedHeadPosition(e,this.closeUpTarget))continue;let t=IY(this.refereePosition.x,this.refereePosition.z,this.closeUpTarget.x,this.closeUpTarget.z,_J);this.refereePosition.x=t.x,this.refereePosition.z=t.z}if(c===null&&!d){let t=this.refereePosition.x-T,n=this.refereePosition.z-E,r=Math.hypot(t,n),i=$J*e;r>i&&(this.refereePosition.x=T+t/r*i,this.refereePosition.z=E+n/r*i)}e>0&&this.refereeVelocity.set((this.refereePosition.x-T)/e,0,(this.refereePosition.z-E)/e);let te=O!==null&&k!==null&&Math.hypot(this.refereePosition.x-O.x-k.x,this.refereePosition.z-O.z-k.z)<=dJ,j=D!==null&&!D.refereeArrived,M=O===null?D===null?u===null?Math.atan2(v-this.refereePosition.x,y-this.refereePosition.z):Math.atan2(u.facing_x,-u.facing_y):j?Math.atan2(IJ.x-this.refereePosition.x,IJ.z-this.refereePosition.z):0:te?0:Math.atan2(O.x-this.refereePosition.x,O.z-this.refereePosition.z);if(O!==null){let e=this.graphs?.[this.stoppageWinner]?.boxer.rig.bones,t=n?.fighters[this.stoppageWinner]?.injuries??[],r=cY(t,`left`),a=!te||e===void 0?null:r&&cY(t,`right`)?this.nearerGlove(e.gloveL,e.gloveR):(r?e.gloveL:e.gloveR).getWorldPosition(this.stoppageWrist);i.raise(ee<0?a:null,ee>0?a:null)}let ne=((M-this.refereeYaw+Math.PI)%(Math.PI*2)+Math.PI*2)%(Math.PI*2)-Math.PI;this.refereeYaw+=ne*(1-Math.exp(-(m?8:3)*e));let re=zX(this.refereePosition,this.refereeYaw,this.refereeVelocity,this.mapping,s);i.setRefereeCount(f!==null,f?.get_up_count??0);let ie=f===null?n?.fighters.findIndex(e=>e.stunned_ticks>0)??-1:-1,N=ie===0?this.tmpA:this.tmpB,ae=f===null?ie>=0?b.set(N.x,1.5,N.z):null:b.set(v,f.is_downed?.25:1.5,y);i.aimBreak(this.tmpA,this.tmpB,ae,n?.phase===`finish`?`stand_back`:`watch`);let oe=this.settings();if(i.update(re.self,re.focus,e,t,oe.reducedMotion,oe.blood,r),this.refereeFallUnseen&&(this.refereeFallUnseen=!1,i.fallBody?.settle()),this.effects.gushing(2)){let e=this.refereeMouth();e!==null&&this.effects.anchorGush(2,e.position,e.axis)}this.poolUnderReferee(s?.alive===!1,d,e,oe.blood)}poolUnderReferee(e,t,n,r){if(!e&&this.replay===null&&(this.refereePoolAccumulator=0,this.refereePoolCount=0),!t||r===`off`||this.referee===null)return;this.refereePoolAccumulator+=n*5*hX;let i=this.referee.boxer.rig.bones.head.getWorldPosition(this.refereeHead);for(;this.refereePoolAccumulator>=1;){--this.refereePoolAccumulator;let e=this.refereePoolCount,t=DX(e,mX,gX);if(t>=gX)return;this.refereePoolCount=e+1;let n=e*2.399963;this.effects.pool(i.x+Math.sin(n)*t*.25,i.z+Math.cos(n)*t*.25,t,e+14)}}updateTrails(e,t){let n=this.graphs;if(!(n===null||this.trails.length<4)){for(let[r,i]of n.entries())for(let[n,a]of[`gloveL`,`gloveR`].entries()){let o=this.trails[r*2+n],s=this.glows[r*2+n];if(!i.boxer.root.visible||!this.carnage.hasGlove(r,n===0?`left`:`right`)){o.reset(),s?.reset();continue}i.boxer.rig.bones[a].getWorldPosition(this.trailGlove);let c=i.powerHeat(n===0?`left`:`right`);o.update(this.trailGlove,e,this.camera.position,!t&&this.replay===null&&!i.isDown,c),s?.update(this.trailGlove,c,e,t,this.camera)}for(let t of this.impactFlashes)t.update(e,this.camera);this.powerShake*=.02**e}}presentPowerHit(e,t){let n=!t.detail.endsWith(`:body`)&&this.headCacheValid[e]===!0?this.headCache[e]:void 0;n===void 0?this.powerHitPoint.set(this.contactPoint.x,t.detail.endsWith(`:body`)?1.05:1.55,this.contactPoint.z):this.powerHitPoint.copy(n),this.impactFlashes[e]?.fire(this.powerHitPoint),this.powerShake=Math.min(nY,this.powerShake+tY)}updateCornermen(e,t,n,r){let i=this.cornermen;if(i===null)return;let a=Bq(n,this.simulation.tick_rate),o=n?.phase===`complete`?this.final:null;for(let[s,c]of i.entries()){let i=s===0?-1:1,l=o===null?`work`:this.deaths[s]===null?o.winner_id!==null&&o.winner_id===n?.fighters[s]?.player_id?`cheer`:`work`:`mourn`,u=a||l!==`work`,d=u?DJ:hJ;this.cornermanPosition.set(i*d,0,-i*d);let f=s===0?3*Math.PI/4:-Math.PI/4;c.attend(u,l);let p=zX(this.cornermanPosition,f,this.cornermanVelocity,this.mapping);c.update(p.self,p.focus,e,t,!1,`off`,r)}}updateCutmen(e,t,n,r){let i=this.cutmen,a=this.graphs;if(i===null||a===null)return;let o=n?.phase===`rest`,s=this.mapping.x(l);for(let[c,l]of i.entries()){let i=c===0?-1:1,u=o&&a[c].stoolVisible?1:0,d=this.cutmanProgress[c],f=d+Math.sign(u-d)*Math.min(Math.abs(u-d),e/kJ);this.cutmanProgress[c]=f;let p=l.boxer.root.visible;if(l.boxer.root.visible=f>.005,!l.boxer.root.visible)continue;this.cutmanFrom.set(i*hJ,0,-i*2.42),pV(c===0?0:1,s,uV,32,this.cutmanTo);let m=f*f*(3-2*f);this.cornermanPosition.copy(this.cutmanFrom).lerp(this.cutmanTo,m);let h=this.cutmanLast[c];p||h.copy(this.cornermanPosition),this.cornermanVelocity.copy(this.cornermanPosition).sub(h).divideScalar(Math.max(e,.001)),h.copy(this.cornermanPosition);let g=f>.02&&f=AJ?_===null?Math.atan2(i,-i):Math.atan2(_.x-this.cutmanTo.x,_.z-this.cutmanTo.z):Math.atan2(-this.cutmanFrom.x,-this.cutmanFrom.z),y=mY(n?.fighters[c]);if(f>=AJ&&_!==null){let e=a[c].boxer.root.rotation.y;this.cutmanFacing.set(Math.sin(e),0,Math.cos(e)),this.cutmanEye.copy(_).addScaledVector(this.cutmanFacing,.09),this.cutmanEye.x+=Math.cos(e)*y.side*y.lateral,this.cutmanEye.z-=Math.sin(e)*y.side*y.lateral,this.cutmanEye.y+=y.lift;let t=n?.fighters[c]?.trauma,r=t===void 0||y.prop===`bottle`?0:Math.min(1,Math.max(t.left_cut,t.right_cut)/jJ);l.treat(this.cutmanEye,this.cutmanFacing,y.side,y.prop,r)}else l.treat(null);let b=zX(this.cornermanPosition,v,this.cornermanVelocity,this.mapping);l.update(b.self,b.focus,e,t,!1,`off`,r)}}drawHudOverlay(e){let t=Rq(this.hudCanvas);if(t===null)return;let{context:n,viewport:r}=t;if(this.hudViewport.width=r.width,this.hudViewport.height=r.height,n.clearRect(0,0,r.width,r.height),e===null)return;let i=this.settings();if(this.viewerHitFlash>.01&&!i.reducedMotion){let e=n.createRadialGradient(r.width/2,r.height/2,r.width*.12,r.width/2,r.height/2,r.width*.7);e.addColorStop(0,`rgba(255,235,225,${(this.viewerHitFlash*.18).toFixed(3)})`),e.addColorStop(1,`rgba(140,0,10,${(this.viewerHitFlash*.55).toFixed(3)})`),n.fillStyle=e,n.fillRect(0,0,r.width,r.height)}let a=lX(Math.max(...e.fighters.map(e=>e.trauma.head+e.trauma.body)),i.blood);if(a>0){let e=n.createRadialGradient(r.width/2,r.height/2,r.width*.2,r.width/2,r.height/2,r.width*.72);e.addColorStop(0,`rgba(90,0,8,0)`),e.addColorStop(1,`rgba(75,0,8,${a.toFixed(3)})`),n.fillStyle=e,n.fillRect(0,0,r.width,r.height)}i.reducedMotion||this.effects.drawLens(n,r.width,r.height);let o=this.deaths[0]??this.deaths[1],s=this.replay===null?null:this.replay.plan.impact.kind===`referee_down`?`REFEREE DOWN`:o===null?`KNOCKOUT REPLAY`:ht(o)===null?`DEATH REPLAY`:`FATALITY REPLAY`;Ni(n,r.width,r.height,e,this.players,this.viewerId,this.frameSeconds>=this.finalRevealAt?this.final:null,this.reconnectMs,this.simulation.tick_rate,this.roundStats,s,this.lagWarned?this.inputLatencyMs:null,this.frameSecondsthis.avatars.get(e),this.lastKnockdown?.knockdown.target_id??null,this.touchControls&&e.fighters.some(e=>e.player_id===this.viewerId),this.powerHeld?.()===!0,o,this.finishTargetId,!i.reducedMotion,this.getUpFrame),this.drawCaption(n,r.width,r.height,e)}updateRocked(e,t,n){let r=e?.fighters.find(e=>e.player_id===this.viewerId),i=e===null||this.replay!==null||this.final!==null?0:mq(r,e.phase),a=this.rocked.update(n?0:i,t);return this.finishPass.uniforms.uRocked.value=n?0:a,r===void 0?null:i}shownAt(e){for(let t=this.history.length-1;t>=0;--t)if(this.history[t].tick<=e)return this.history[t];return null}drawCaption(e,t,n,r){let i=this.final!==null&&this.frameSeconds>=this.finalRevealAt?this.final:null;i!==null&&!this.resultAnnounced&&(this.resultAnnounced=!0,this.commentary.resultShown(this.frameSeconds));let a=this.commentary.current(this.frameSeconds),o=this.settings(),s=a===null||!o.commentary?``:a.line.text;if(s!==this.captionText&&(this.captionText=s,this.hudCanvas.dataset.caption=s),a===null||!o.commentary)return;let c=r.fighters.find(e=>e.player_id===this.viewerId),l=Or(t,n),u=i===null?null:HY(i,t,n,r.fighters,this.players,this.roundStats,this.viewerId,this.deaths[0]??this.deaths[1])/l,d=this.frameSeconds0});p!==null&&(e.save(),e.scale(l,l),UV(e,a,p,o.reducedMotion),e.restore())}destroy(){if(!this.destroyed){if(this.destroyed=!0,cancelAnimationFrame(this.raf),this.raf=0,this.buffer.clear(),this.dedupe.reset(),this.pendingContacts.length=0,this.pendingGore.length=0,this.carnage.dispose(),this.effects.dispose(),this.avatars.dispose(),this.arena.dispose(),Pw(this.ring),this.graphs!==null){for(let e of this.graphs)this.scene.remove(e.boxer.root),e.dispose();this.graphs=null}this.referee!==null&&(this.scene.remove(this.referee.boxer.root),this.referee.dispose(),this.referee=null);for(let e of this.trails)this.scene.remove(e.mesh),e.dispose();this.trails=[];for(let e of this.glows)this.scene.remove(e.mesh),e.dispose();this.glows=[];for(let e of this.impactFlashes)this.scene.remove(e.group),e.dispose();if(this.impactFlashes=[],this.glowMap?.dispose(),this.glowMap=null,this.cornermen!==null){for(let e of this.cornermen)this.scene.remove(e.boxer.root),e.dispose();this.cornermen=null}if(this.cutmen!==null){for(let e of this.cutmen)this.scene.remove(e.boxer.root),e.dispose();this.cutmen=null}for(let e of this.lights)this.scene.remove(e);this.keyLight?.shadow.map?.dispose(),this.keyLight?.shadow.dispose(),this.blobTexture.dispose();for(let e of[...this.blobShadows,...this.footShadows])this.scene.remove(e),e.geometry.dispose(),e.material.dispose();this.renderer.renderLists.dispose(),Hq(this.composer),this.bloomPass.materialHighPassFilter.dispose(),qw(),this.renderer.dispose(),this.hudCanvas.remove()}}},VX=[`broadcast`,`close`,`fighter`],HX=`hands.preferences.v1`,UX={length:0,clear:()=>void 0,getItem:()=>null,key:()=>null,removeItem:()=>void 0,setItem:()=>void 0},WX=()=>{try{return window.localStorage}catch{return UX}},GX=()=>({volume:.7,haptics:!0,reducedMotion:window.matchMedia?.(`(prefers-reduced-motion: reduce)`).matches??!1,blood:`full`,commentary:!0,announcer:!0,camera:`broadcast`});function KX(e=WX()){let t=GX();try{let n=JSON.parse(e.getItem(HX)??`null`);if(typeof n!=`object`||!n||Array.isArray(n))return t;let r=n;return{volume:typeof r.volume==`number`&&Number.isFinite(r.volume)?Math.max(0,Math.min(1,r.volume)):t.volume,haptics:typeof r.haptics==`boolean`?r.haptics:t.haptics,reducedMotion:typeof r.reducedMotion==`boolean`?r.reducedMotion:t.reducedMotion,blood:r.blood===`reduced`||r.blood===`off`||r.blood===`full`?r.blood:t.blood,commentary:typeof r.commentary==`boolean`?r.commentary:t.commentary,announcer:typeof r.announcer==`boolean`?r.announcer:t.announcer,camera:VX.includes(r.camera)?r.camera:t.camera}}catch{return t}}function qX(e,t=WX()){try{t.setItem(HX,JSON.stringify({volume:Math.max(0,Math.min(1,e.volume)),haptics:e.haptics,reducedMotion:e.reducedMotion,blood:e.blood,commentary:e.commentary,announcer:e.announcer,camera:e.camera}))}catch{}}var JX=class{value;listeners=new Set;constructor(e=WX()){this.storage=e,this.value=KX(e)}storage;get current(){return this.value}update(e){this.value={...this.value,...e},qX(this.value,this.storage);for(let e of this.listeners)e(this.value)}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}destroy(){this.listeners.clear()}},YX={stage:`bootstrapping`,player:null,playerId:null,role:null,players:{},playerOrder:[],simulation:null,snapshot:null,final:null,select:null,serverTick:0,nextSequence:0,reconnectMs:0,safeError:null},XX=e=>Object.fromEntries(e.map(e=>[e.id,e]));function ZX(e,t){if(t.type===`bootstrap`)return{...e,stage:`authorizing`,simulation:t.simulation,safeError:null};if(t.type===`authorized`)return{...e,stage:`connecting`,player:t.player,safeError:null};if(t.type===`connecting`)return{...e,stage:`connecting`};if(t.type===`reconnect-tick`)return{...e,stage:`paused`,reconnectMs:Math.max(0,t.remainingMs)};if(t.type===`fatal`)return{...e,stage:`fatal`,safeError:t.code,reconnectMs:0};let n=t.message;switch(n.type){case`welcome`:return{...e,playerId:n.role===`fighter`?n.player_id:null,role:n.role,players:XX(n.players),playerOrder:n.players.map(e=>e.id),serverTick:n.server_tick,nextSequence:n.role===`fighter`?n.next_sequence:0,safeError:null};case`ticket`:return e;case`waiting`:return{...e,stage:`waiting`,select:null};case`select`:return{...e,stage:`select`,select:n,players:XX(n.players),playerOrder:n.players.map(e=>e.id)};case`ready`:return{...e,stage:e.snapshot?.phase??`countdown`,select:null,players:XX(n.players),playerOrder:n.players.map(e=>e.id)};case`paused`:return{...e,stage:`paused`,reconnectMs:n.grace_ms};case`resumed`:return{...e,stage:e.snapshot?.phase??`countdown`,reconnectMs:0};case`snapshot`:return{...e,stage:n.payload.phase,snapshot:n.payload,serverTick:Math.max(e.serverTick,n.payload.tick)};case`final`:return{...e,stage:`complete`,final:n,reconnectMs:0};case`error`:return{...e,stage:`fatal`,safeError:n.code,reconnectMs:0}}}var QX=new Set([`hit`,`counter_hit`,`block`,`perfect_block`,`guard_break`,`knockdown`,`parry`,`body_collapse`,`eye_shut`,`referee_hit`,`referee_down`]),$X=11e3,eZ=1500,tZ=4e3,nZ=3e3,rZ=6,iZ=5e3,aZ=[{level:`rookie`,label:`Rookie`,detail:`Slow hands, leaves openings`},{level:`contender`,label:`Contender`,detail:`Works the body, punishes mistakes`},{level:`champion`,label:`Champion`,detail:`Slips, counters, finishes`}],oZ=e=>bn.includes(e),sZ=class{root;reloadPage;authorizer;state=YX;settings=new JX;input=new cR;audio=new TA(()=>this.settings.current);haptics=new UL(()=>this.settings.current);getUpAnnouncer=new I;voice=new Yi(()=>this.settings.current);feedbackEvents=new CR;soundedPunches=[];renderer=null;network=null;session=null;abort=new AbortController;destroyed=!1;generation=0;reloadOnRetry=!1;reloading=!1;canvas;status;overlay;roleIndicator;controlsButton;controlsPanel;retry;rematchButton;hint;cpuPicker;cpuPrompt;cpuLevel=null;rematchOpponent=null;lastPhase=null;cpuRematchLevel=null;cpuRematch=null;cpuRematchTimer=null;diagnosticsTimer=null;finalReceivedAt=0;lastFinalMatchId=null;rematchAttempts=0;rematchTimer=null;rematchCountdownTimer=null;resultRevealTimer=null;resultWaitTimer=null;completeSince=null;summaryClock=new ii;fightSummary;liveFightStatus;finalSummary;corner;stylePicker;constructor(e,t=()=>window.location.reload(),n=new wL){this.root=e,this.reloadPage=t,this.authorizer=n,e.innerHTML=`
HANDStwo-player boxing

`,this.canvas=e.querySelector(`canvas`),this.status=e.querySelector(`[data-status]`),this.overlay=e.querySelector(`[data-overlay]`),this.roleIndicator=e.querySelector(`[data-role]`),this.controlsButton=e.querySelector(`[data-controls]`),this.controlsPanel=e.querySelector(`[data-controls-panel]`),this.retry=e.querySelector(`[data-retry]`),this.rematchButton=e.querySelector(`[data-rematch]`),this.hint=e.querySelector(`[data-hint]`),this.cpuPicker=e.querySelector(`[data-cpu]`),this.cpuPrompt=e.querySelector(`[data-cpu-prompt]`),this.cpuPicker.addEventListener(`click`,this.onCpuPick),this.rematchButton.addEventListener(`click`,this.onRematch),this.fightSummary=e.querySelector(`[data-fight-summary]`),this.liveFightStatus=e.querySelector(`[data-fight-status]`),this.finalSummary=e.querySelector(`[data-final]`),this.retry.addEventListener(`click`,this.onRetry),this.bindPanels(),this.syncSettings(),this.input.attachTouch(e.querySelector(`.activity`)),this.corner=new IL(e.querySelector(`.activity`),e=>this.network?.sendCornerChoice(e)??!1),this.stylePicker=new Rn(e.querySelector(`.activity`),(e,t)=>this.network?.chooseStyle(e,t)??!1),this.input.setViewForward(()=>this.renderer?.viewForward()??null),window.addEventListener(`keydown`,this.onCameraKey)}onCameraKey=e=>{if(e.code!==`KeyK`||e.repeat||e.ctrlKey||e.metaKey||e.altKey)return;let t=e.target;if(t instanceof HTMLInputElement||t instanceof HTMLSelectElement||t instanceof HTMLTextAreaElement)return;e.preventDefault();let n=VX[(VX.indexOf(this.settings.current.camera)+1)%VX.length];this.settings.update({camera:n}),this.root.querySelector(`[data-camera]`).value=n};start(){this.authorize()}resetForAuthorization(){this.reloadOnRetry=!1,this.network?.dispose(),this.network=null,this.session?.destroy(),this.session=null,this.renderer?.destroy(),this.renderer=null,this.voice.cancel(),this.audio.reset(),this.abort.abort(),this.abort=new AbortController,this.state=YX,this.feedbackEvents.reset(),this.input.setActive(!1),this.input.reset(),this.finalSummary.textContent=``,this.fightSummary.textContent=``,this.liveFightStatus.textContent=``,this.clearRematchTimers(),this.rematchButton.hidden=!0,this.cpuLevel=null,this.lastPhase=null}onCpuPick=e=>{let t=e.target?.closest(`[data-cpu-level]`)?.dataset.cpuLevel;oZ(t)&&this.state.stage===`waiting`&&this.state.role===`fighter`&&this.cpuLevel===null&&this.callCpu(t)};callCpu(e){this.network?.requestCpu(e)===!0&&(this.cpuLevel=e,this.renderState())}get cpuBout(){return Object.values(this.state.players).some(e=>e.cpu===!0)}onRematch=()=>{this.rematchButton.disabled||this.state.stage!==`complete`||(this.rematchAttempts=1,this.rematchOpponent=this.cpuBout||this.state.role!==`fighter`?null:Object.values(this.state.players).find(e=>e.id!==this.state.playerId)?.name??null,this.authorize())};clearRematchTimers(){this.rematchTimer!==null&&window.clearTimeout(this.rematchTimer),this.rematchCountdownTimer!==null&&window.clearInterval(this.rematchCountdownTimer),this.rematchTimer=null,this.rematchCountdownTimer=null,this.clearCpuRematch()}scheduleCpuRematch(e){this.clearCpuRematch(),this.cpuRematch={level:e,at:Date.now()+iZ},this.cpuRematchTimer=window.setInterval(()=>{let e=this.cpuRematch;e===null||this.state.stage!==`waiting`||this.state.role!==`fighter`||this.cpuLevel!==null?this.clearCpuRematch():Date.now()>=e.at&&(this.clearCpuRematch(),this.callCpu(e.level)),this.renderState()},250)}clearCpuRematch(){this.cpuRematchTimer!==null&&window.clearInterval(this.cpuRematchTimer),this.cpuRematchTimer=null,this.cpuRematch=null}awaitResultReveal(){this.resultRevealTimer!==null&&window.clearInterval(this.resultRevealTimer);let e=()=>{let e=this.renderer?.resultVisible??!0;this.overlay.hidden=this.state.stage===`complete`&&!e,(e||this.state.stage!==`complete`)&&this.resultRevealTimer!==null&&(window.clearInterval(this.resultRevealTimer),this.resultRevealTimer=null)};this.resultRevealTimer=window.setInterval(e,200),e()}startRematchCountdown(){this.clearRematchTimers();let e=this.state.role===`fighter`?`Rematch`:`Next bout`,t=()=>{let t=Math.ceil((this.finalReceivedAt+$X-Date.now())/1e3);this.rematchButton.hidden=this.state.stage!==`complete`,this.rematchButton.disabled=t>0,this.setText(this.rematchButton,t>0?`${e} in ${t}s`:e),t<=0&&this.rematchCountdownTimer!==null&&(window.clearInterval(this.rematchCountdownTimer),this.rematchCountdownTimer=null)};t(),this.rematchCountdownTimer=window.setInterval(t,1e3)}scheduleRematchRetry(){this.rematchTimer===null&&(this.rematchAttempts>=rZ?this.fail(`rematch_unavailable`):(this.rematchAttempts+=1,this.setText(this.status,`The ring is still being cleared… trying again.`),this.rematchTimer=window.setTimeout(()=>{this.rematchTimer=null,this.authorize()},nZ)))}async authorize(){let e=++this.generation;this.resetForAuthorization(),this.dispatch({type:`connecting`}),this.setText(this.status,`Securing Discord Activity session…`),this.retry.hidden=!0;try{let t=await this.authorizer.authorize(this.abort.signal);if(this.destroyed||e!==this.generation){t.destroy();return}this.session=t,this.dispatch({type:`bootstrap`,simulation:t.bootstrap.simulation}),this.dispatch({type:`authorized`,player:t.player}),this.input.onAction(e=>{if(e.kind===`get_up_left`||e.kind===`get_up_right`){let t=this.renderer?.pressGetUp(e.kind)??null;t!==null&&this.audio.getUpVerdict(t.detail)}this.renderer?.predictAction?.(e),this.network?.notifyAction()}),this.input.onHeldChange(()=>this.network?.notifyHeld());let n=t.takeTicket();if(n===null)throw Error(`ticket_unavailable`);let r=new PR(n,()=>this.input.frame(),{onMessage:e=>this.receive(e),onReconnect:e=>{this.dispatch({type:`reconnect-tick`,remainingMs:e}),this.renderer?.setReconnect(e),this.renderState()},onFatal:e=>this.fail(e),onFreshAuth:()=>{e===this.generation&&this.authorize()}});this.network=r,r.start(),this.setText(this.status,`Connecting to the ring…`)}catch(t){!this.abort.signal.aborted&&e===this.generation&&(this.reloadOnRetry=t instanceof EA&&t.reloadRequired,this.fail(MA(t)))}}ensureRenderer(){if(this.renderer!==null||this.session===null||this.destroyed)return;let e=new BX(this.canvas,this.session.bootstrap.simulation,()=>this.settings.current,{localInput:()=>this.input.held(),inputSequenceOf:e=>this.network?.sequenceOf(e)??null,powerHeld:()=>this.input.powerHeld});e.onGetUpBeat=()=>{this.audio.getUpBeat(),this.haptics.getUpBeat()},e.onContact=(e,t)=>{this.audio.event(e,t),this.haptics.event(e,t)},e.onOwnPunch=(e,t,n)=>{this.audio.whoosh(e,t),this.soundedPunches.push(n),this.soundedPunches.length>8&&this.soundedPunches.shift()},e.onArcadeInjury=e=>this.audio.injury(e),e.onGore=e=>{this.audio.gore(e),this.haptics.gore(e),e.kind===`finish_him`?this.voice.shout(`Finish him!`):e.kind===`fatality`&&this.voice.shout(`Fatality.`)},e.onAnnouncement=e=>this.voice.speak(e),e.onCrowdCue=()=>this.audio.chant(),e.onRocked=(e,t)=>this.audio.rocked(e,t),this.renderer=e}receive(e){if(e.type===`error`){this.fail(e.code);return}e.type===`welcome`&&this.ensureRenderer(),(e.type===`welcome`||e.type===`resumed`)&&this.renderer?.resyncClock();let t=this.rematchAttempts>0;(e.type===`waiting`||e.type===`ready`)&&(this.rematchAttempts=0),e.type===`ready`&&(this.rematchOpponent=null),e.type===`ready`&&this.rememberStyle(e.players),e.type===`final`&&this.rematchAttempts>0&&e.match_id===this.lastFinalMatchId?this.scheduleRematchRetry():(this.dispatch({type:`message`,message:e}),e.type===`snapshot`&&this.receiveSnapshot(e.payload),e.type!==`select`&&e.type!==`ready`||e.players.some(e=>e.cpu===!0)||(this.cpuLevel=null),e.type===`waiting`&&(this.cpuLevel===null?t&&this.cpuRematchLevel!==null&&this.scheduleCpuRematch(this.cpuRematchLevel):this.callCpu(this.cpuLevel)),e.type===`final`&&(this.cpuRematchLevel=this.cpuBout?this.cpuLevel:null,this.rematchAttempts=0,this.lastFinalMatchId=e.match_id,this.finalReceivedAt=Date.now(),this.renderer?.setFinal(e),this.audio.result(e),this.startRematchCountdown(),this.awaitResultReveal()),this.renderer?.setPlayers(this.state.players,this.state.playerId,this.state.playerOrder),this.renderer?.setReconnect(this.state.reconnectMs),this.renderState())}get networkStats(){return{inputLatencyMs:this.network?.inputLatencyMs??null,resolutionScale:this.renderer?.resolutionScale??null,gpu:this.renderer?.memoryInfo??null}}receiveSnapshot(e){this.lastPhase===`countdown`&&e.phase!==`countdown`&&this.voice.finishLine(eZ),this.lastPhase=e.phase,this.renderer?.setInputLatency(this.network?.inputLatencyMs??null),this.renderer?.push(e);let t=e.fighters.find(e=>e.player_id===this.state.playerId),n=this.renderer?.getUpView??null,r=t?.is_downed===!0||n!==null;this.input.setKnockdown(r),this.input.setGetUpPrompt(r?n===null?t?.get_up_prompt??null:n.prompt?.side??null:null),t!==void 0&&this.audio.snapshot(e.tick,t.stamina,t.maximum_stamina,t.trauma.head+t.trauma.body),this.audio.roundClock(e.phase,e.round_number,e.phase_ticks_remaining,this.state.simulation?.tick_rate??30),this.audio.tension(jz(e));for(let n of this.feedbackEvents.accept(e.events)){if(QX.has(n.kind)||n.kind===`count`&&t?.is_downed===!0||n.kind===`punch_start`&&n.action_id!==null&&this.soundedPunches.includes(n.action_id))continue;let r=n.kind===`punch_start`?e.fighters.find(e=>e.player_id===n.actor_id&&e.action_id===n.action_id):void 0;this.audio.event(n,r?.action_power===`power`),this.haptics.event(n)}}rememberStyle(e){let t=e.find(e=>e.id===this.state.playerId)?.style;this.state.role===`fighter`&&t!==void 0&&jn(t)}dispatch(e){this.state=ZX(this.state,e)}setText(e,t){e.textContent!==t&&(e.textContent=t)}renderState(){let e={bootstrapping:`Loading…`,authorizing:`Authorizing with Discord…`,connecting:`Connecting securely…`,waiting:this.state.role===`spectator`?`Waiting for the fighters…`:this.cpuLevel===null?this.cpuRematch===null?this.rematchOpponent===null?`Waiting for an opponent. Anyone in this channel can join with Play now.`:`Waiting for ${this.rematchOpponent} to take the rematch…`:`Rematch with the ${aZ.find(e=>e.level===this.cpuRematch?.level)?.label??`computer`} in ${Math.max(1,Math.ceil((this.cpuRematch.at-Date.now())/1e3))}s, unless someone joins first.`:`Calling in the computer…`,select:`Pick how your fighter boxes.`,countdown:`Bout countdown.`,fight:`Round ${this.state.snapshot?.round_number??1} in progress.`,knockdown:`Knockdown count ${this.state.snapshot?.fighters.find(e=>e.player_id===this.state.playerId)?.get_up_count??0}.`,foul_recovery:`Foul recovery in progress.`,referee_down:`The referee is down. The bout goes on without him.`,finish:this.state.snapshot!==null&&wi(this.state.snapshot.fighters)?.player_id===this.state.playerId?`You are out on your feet: one more punch kills you.`:`Finish him: one more punch kills.`,rest:`Between-round rest.`,paused:`Connection paused. ${Math.ceil(this.state.reconnectMs/1e3)} seconds remain.`,complete:this.cpuBout?`Bout complete. Scorecards are displayed. Bouts against the computer are unrated.`:`Bout complete. Scorecards and rating changes are displayed.`,fatal:RL(this.state.safeError??`safe_error`)},t=this.state.role===`spectator`;this.setText(this.status,t?`Spectating — ${e[this.state.stage]}`:e[this.state.stage]);let n=this.state.stage===`complete`&&this.state.final!==null;if(this.status.hidden=n||[`select`,`countdown`,`fight`,`knockdown`,`foul_recovery`,`referee_down`,`finish`,`rest`].includes(this.state.stage),this.overlay.toggleAttribute(`data-raised`,this.state.snapshot!==null),this.overlay.toggleAttribute(`data-result`,n),this.state.stage!==`complete`)this.overlay.hidden=!1,this.completeSince=null;else if(this.state.final===null){this.completeSince??=Date.now();let e=Date.now()-this.completeSince;this.overlay.hidden=e{this.resultWaitTimer=null,this.renderState()},tZ-e+50))}this.roleIndicator.hidden=!t,this.controlsButton.hidden=t,t&&(this.controlsPanel.hidden=!0,this.controlsButton.setAttribute(`aria-expanded`,`false`));let r=this.state.snapshot?.fighters.find(e=>e.player_id===this.state.playerId),i=this.state.stage===`knockdown`&&r?.is_downed===!0;i||this.getUpAnnouncer.reset();let a=t?`Spectating. ${e[this.state.stage]}`:i&&r!==void 0?this.getUpAnnouncer.announce(this.renderer?.getUpView??Se(r,this.state.snapshot?.tick??0,0,null,null,qe(),!1)):this.state.stage===`paused`?`Connection paused.`:e[this.state.stage];this.setText(this.liveFightStatus,a),this.corner.update(this.state.snapshot,this.state.playerId,this.state.role===`fighter`&&this.state.stage===`rest`),this.renderer?.setCornerPanelTop(this.corner.top()),this.stylePicker.update(this.state.stage===`select`?this.state.select:null,this.state.playerId,this.state.role),this.retry.hidden=this.state.stage!==`fatal`,this.setText(this.retry,this.reloadOnRetry?`Reload`:`Retry securely`),this.state.stage!==`complete`&&(this.rematchButton.hidden=!0),this.cpuPicker.hidden=t||this.state.stage!==`waiting`||this.cpuLevel!==null,this.setText(this.cpuPrompt,this.cpuRematch===null?this.rematchOpponent===null?`No one here yet? Fight the computer.`:`Or fight the computer instead:`:`Or start now:`);let o=!t&&(this.state.stage===`waiting`||this.state.stage===`countdown`);this.hint.hidden=!o,o&&this.setText(this.hint,Ie(qe(),window.innerWidth)),this.overlay.toggleAttribute(`data-touch-hint`,o&&this.state.stage===`countdown`&&qe());let s=!t&&[`countdown`,`fight`,`knockdown`,`foul_recovery`,`referee_down`,`finish`].includes(this.state.stage),c=!t&&this.state.snapshot!==null&&(this.state.stage===`rest`||this.state.stage===`paused`);if(this.input.setActive(s,s||c),this.network?.setActive(s),this.renderFightSummary(),this.state.final!==null){let e=this.state.final;this.setText(this.finalSummary,`${e.method.replaceAll(`_`,` `)}. ${e.winner_id===null?`Draw`:`${this.state.players[e.winner_id]?.name??`Winner`} wins`}. Scorecards: ${e.scorecards.map(e=>`${e.judge}: ${e.player_one.reduce((e,t)=>e+t,0)} to ${e.player_two.reduce((e,t)=>e+t,0)}`).join(`; `)}. ${this.cpuBout?`Unrated bout against the computer.`:`Ratings: ${Object.entries(e.ratings).map(([e,t])=>`${this.state.players[e]?.name??`fighter`} ${t.before} to ${t.after}`).join(`; `)}.`}`)}}renderFightSummary(){let e=this.state.snapshot;if(e===null)return;let t=this.state.simulation?.tick_rate??30,n=Math.floor(this.summaryClock.ticks(e)/t),r=`${Math.floor(n/60)}:${String(n%60).padStart(2,`0`)}`,i=e.fighters.map(e=>{let t=this.state.players[e.player_id],n=e.injuries.length===0?`no injuries`:`injuries: ${e.injuries.map(e=>ut(e).toLowerCase()).join(`, `)}`;return`${t?.name??`Fighter`}, ${t?.cpu===!0?`computer opponent`:`ELO ${t?.rating??`unknown`}`}, stamina ${Math.round(e.stamina)} of ${Math.round(e.maximum_stamina)}, guard ${Math.round(e.guard)}, poise ${Math.round(e.poise)}, conditioning ${Math.round(e.conditioning)}, blood ${Math.round(e.blood_volume/rt*100)} percent, ${n}, ${e.warnings} warnings, ${e.knockdowns} knockdowns`}),a=e.fighters.find(e=>e.player_id===this.state.playerId),o=a?.is_downed===!0?F(this.renderer?.getUpView??Se(a,e.tick,0,null,null,qe(),!1)):``;this.setText(this.fightSummary,`Round ${e.round_number}. ${e.phase.replace(`_`,` `)}. Clock ${r}. ${i.join(`. `)}. ${o}`.trim())}onRetry=()=>{this.reloadOnRetry?(this.reloading=!0,this.reloadPage()):this.authorize()};bindPanels(){let e=(e,t)=>{let n=this.root.querySelector(e),r=this.root.querySelector(t);n.addEventListener(`click`,()=>{r.hidden=!r.hidden,n.setAttribute(`aria-expanded`,String(!r.hidden))})};e(`[data-controls]`,`[data-controls-panel]`),e(`[data-settings]`,`[data-settings-panel]`);let t=this.root.querySelector(`[data-settings-panel]`);this.root.querySelector(`[data-settings]`).addEventListener(`click`,()=>{this.diagnosticsTimer!==null&&window.clearInterval(this.diagnosticsTimer),this.diagnosticsTimer=null,t.hidden||(this.refreshDiagnostics(),this.diagnosticsTimer=window.setInterval(()=>this.refreshDiagnostics(),1e3))});let n=this.root.querySelector(`[data-copy-diagnostics]`);n.addEventListener(`click`,()=>{let e=this.diagnosticsText(),t=()=>{this.setText(n,`Copied`),window.setTimeout(()=>this.setText(n,`Copy diagnostics`),1500)},r=()=>{let e=this.root.querySelector(`[data-diagnostics]`),t=window.getSelection();if(t===null)return;let r=document.createRange();r.selectNodeContents(e),t.removeAllRanges(),t.addRange(r),this.setText(n,`Selected. Copy manually`),window.setTimeout(()=>this.setText(n,`Copy diagnostics`),2500)},i=navigator.clipboard;i===void 0||typeof i.writeText!=`function`?r():i.writeText(e).then(t).catch(r)}),this.root.querySelector(`[data-volume]`).addEventListener(`input`,e=>{this.settings.update({volume:Number(e.target.value)}),this.audio.setVolume(),this.voice.settingsChanged()}),this.root.querySelector(`[data-haptics]`).addEventListener(`change`,e=>{this.settings.update({haptics:e.target.checked})}),this.root.querySelector(`[data-motion]`).addEventListener(`change`,e=>{let t=e.target.checked;this.settings.update({reducedMotion:t}),this.renderer?.setReducedMotion(t)}),this.root.querySelector(`[data-commentary]`).addEventListener(`change`,e=>{this.settings.update({commentary:e.target.checked})}),this.root.querySelector(`[data-announcer]`).addEventListener(`change`,e=>{let t=e.target.checked;this.settings.update({announcer:t}),t||this.voice.cancel()}),this.root.querySelector(`[data-blood]`).addEventListener(`change`,e=>{let t=e.target.value;this.settings.update({blood:t}),this.renderer?.setBloodLevel(t)}),this.root.querySelector(`[data-camera]`).addEventListener(`change`,e=>{let t=VX.find(t=>t===e.target.value);t!==void 0&&this.settings.update({camera:t})})}diagnosticsText(){let e=this.networkStats,t=this.renderer?.diagnostics,n=t===void 0||t.frameMs<=0?`-`:(1e3/t.frameMs).toFixed(0);return[`stage: ${this.state.stage} · role: ${this.state.role??`-`}`,`input latency: ${e.inputLatencyMs===null?`-`:`${Math.round(e.inputLatencyMs)} ms`}`,`frame: ${t===void 0?`-`:`${t.frameMs.toFixed(1)} ms (${n} fps)`} · render scale: ${t?.resolutionScale??`-`}`,`gpu objects: ${t===void 0?`-`:`${t.gpu.geometries} geometries, ${t.gpu.textures} textures, ${t.gpu.programs} programs`}`,`graphics: ${t?.graphics??`-`}`,`browser: ${navigator.userAgent}`,`pointer: ${qe()?`coarse`:`fine`} · viewport: ${window.innerWidth}x${window.innerHeight} @${window.devicePixelRatio}`,`last error: ${this.state.safeError??`none`}`,`match: ${this.state.final?.match_id??`-`}`].join(` +`)}refreshDiagnostics(){this.setText(this.root.querySelector(`[data-diagnostics]`),this.diagnosticsText())}syncSettings(){let e=this.settings.current;this.root.querySelector(`[data-volume]`).value=String(e.volume),this.root.querySelector(`[data-haptics]`).checked=e.haptics,this.root.querySelector(`[data-motion]`).checked=e.reducedMotion,this.root.querySelector(`[data-blood]`).value=e.blood,this.root.querySelector(`[data-commentary]`).checked=e.commentary,this.syncAnnouncerSetting(),this.voice.onVoicesChanged=()=>this.syncAnnouncerSetting(),this.root.querySelector(`[data-camera]`).value=e.camera}syncAnnouncerSetting(){let e=this.root.querySelector(`[data-announcer]`),t=this.voice.hasVoice;e.checked=this.settings.current.announcer&&t,e.disabled=!t;let n=this.voice.supported?t?null:`This device has no English voice of its own`:`This browser cannot speak`;n===null?e.parentElement.removeAttribute(`title`):e.parentElement.title=n}fail(e){e===`room_closed`&&this.rematchAttempts>0?this.scheduleRematchRetry():(e===`client_outdated`&&(this.reloadOnRetry=!0),this.dispatch({type:`fatal`,code:e}),this.rematchOpponent=null,this.voice.cancel(),this.network?.dispose(),this.network=null,this.session?.destroy(),this.session=null,this.renderer?.destroy(),this.renderer=null,this.input.setActive(!1),this.input.reset(),this.renderState())}destroy(){this.destroyed||(this.destroyed=!0,this.generation+=1,this.abort.abort(),this.network?.dispose(),this.session?.destroy(),this.reloading||this.authorizer.close(),this.renderer?.destroy(),window.removeEventListener(`keydown`,this.onCameraKey),this.input.destroy(),this.corner.destroy(),this.stylePicker.destroy(),this.audio.destroy(),this.voice.destroy(),this.settings.destroy(),this.retry.removeEventListener(`click`,this.onRetry),this.rematchButton.removeEventListener(`click`,this.onRematch),this.cpuPicker.removeEventListener(`click`,this.onCpuPick),this.clearRematchTimers(),this.diagnosticsTimer!==null&&window.clearInterval(this.diagnosticsTimer),this.resultRevealTimer!==null&&window.clearInterval(this.resultRevealTimer),this.resultWaitTimer!==null&&window.clearTimeout(this.resultWaitTimer),this.diagnosticsTimer=null,this.root.replaceChildren())}};(new URLSearchParams(window.location.search).get(`styles`)??``).split(`,`);var cZ={broadcast:{position:[0,1.88,7.15],lookAt:[0,1.12,0]},side:{position:[7.4,1.6,0],lookAt:[0,1.1,0]},top:{position:[.01,8.5,.01],lookAt:[0,0,0]},ringside:{position:[1.6,1.5,4.1],lookAt:[.2,1.25,0]}},lZ=[[`hips`,`spine`],[`spine`,`head`],[`chest`,`shoulderL`],[`shoulderL`,`elbowL`],[`elbowL`,`gloveL`],[`chest`,`shoulderR`],[`shoulderR`,`elbowR`],[`elbowR`,`gloveR`],[`hips`,`hipL`],[`hipL`,`kneeL`],[`kneeL`,`ankleL`],[`hips`,`hipR`],[`hipR`,`kneeR`],[`kneeR`,`ankleR`]],uZ=class{root;renderer=null;replay=null;raf=0;playing=!1;speed=1;virtualTick=0;carry=0;latencyMs=0;pendingQueue=[];destroyed=!1;overlays={skeleton:!1,hurtbox:!1,hitbox:!1};skeletonLines=[];hurtboxMeshes=[];hitboxMeshes=[];statusEl;metricsEl;canvas;constructor(e){this.root=e,e.innerHTML=`
HANDS LABloading replay…
@@ -5551,7 +5551,7 @@ void main() { -
`,this.canvas=e.querySelector(`canvas`),this.statusEl=e.querySelector(`[data-lab-status]`),this.metricsEl=e.querySelector(`[data-lab-metrics]`),this.bindControls()}async start(){let e=new URLSearchParams(window.location.search),t=e.get(`replay`)??`golden`,n=await fetch(`/replays/${t}.json`);if(n.ok||(n=await fetch(`/hands/replays/${t}.json`)),!n.ok)throw Error(`replay_load_failed:${n.status}`);this.replay=await n.json(),await Gw(),this.renderer=new zX(this.canvas,{tick_rate:this.replay.tick_rate,ring_half_width:500,ring_half_height:500},()=>({volume:0,haptics:!1,reducedMotion:!1,blood:`full`,commentary:!0,announcer:!1,camera:`broadcast`}),{manualClock:!0});let r=Object.fromEntries(this.replay.ticks[0].snapshot.payload.fighters.map(e=>[e.player_id,{id:e.player_id,name:e.player_id===`one`?`Azure Vector`:`Crimson Geometry`,avatar:null,rating:1500,connected:!0}]));this.renderer.setPlayers(r,`one`),this.buildOverlays();let i=e.get(`tick`);if(e.get(`metrics`)===`1`){await this.renderer.ready,this.exportMetrics(),this.setStatus(`metrics done`);return}if(i!==null){let t=Number(i);await this.renderer.ready,this.seek(t);let n=sZ[e.get(`camera`)??``]??sZ.broadcast;this.renderer.labSetCameraOverride(n.position,n.lookAt),this.overlays.skeleton=e.get(`skeleton`)===`1`,this.overlays.hurtbox=e.get(`hurtbox`)===`1`,this.overlays.hitbox=e.get(`hitbox`)===`1`,this.syncOverlayVisibility(),this.renderCurrentTick(),window.__labDebug={roots:this.renderer.labRigs.map(e=>e.position.toArray().map(e=>Number(e.toFixed(3)))),heads:this.renderer.labRigs.map(e=>{let t=e.getObjectByName(fb.head??`head`);return t===void 0?null:t.getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3)))}),gloves:this.renderer.labRigs.map(e=>{let t=e.getObjectByName(fb.gloveL??`gloveL`);return t===void 0?null:t.getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3)))}),material:(()=>{let e=null;return this.renderer.labRigs[0]?.traverse(t=>{if(e===null&&t instanceof $l){let n=t.material;e={colorHex:n.color.getHexString(),hasMap:n.map!==null,mapImage:n.map?.image?.width??`none`,mapVersion:n.map?.version,clearcoat:n.clearcoat,opacity:n.opacity}}}),e})()},this.setStatus(`filmstrip tick ${t}`);return}this.playing=!0;let a=()=>{this.destroyed||(this.advance(),this.raf=requestAnimationFrame(a))};this.raf=requestAnimationFrame(a)}bindControls(){this.root.querySelector(`[data-lab='play']`).addEventListener(`click`,e=>{this.playing=!this.playing,e.target.textContent=this.playing?`Pause`:`Play`}),this.root.querySelector(`[data-lab='step']`).addEventListener(`click`,()=>{this.playing=!1,this.root.querySelector(`[data-lab='play']`).textContent=`Play`,this.virtualTick=Math.min(this.virtualTick+1,(this.replay?.ticks.length??1)-1),this.pushUpTo(this.virtualTick),this.renderCurrentTick()}),this.root.querySelector(`[data-lab='speed']`).addEventListener(`change`,e=>{this.speed=Number(e.target.value)}),this.root.querySelector(`[data-lab='camera']`).addEventListener(`change`,e=>{let t=sZ[e.target.value];this.renderer?.labSetCameraOverride(t.position,t.lookAt)});for(let e of[`skeleton`,`hurtbox`,`hitbox`])this.root.querySelector(`[data-lab='${e}']`).addEventListener(`change`,t=>{this.overlays[e]=t.target.checked,this.syncOverlayVisibility()});this.root.querySelector(`[data-lab='latency']`).addEventListener(`change`,e=>{this.latencyMs=Math.max(0,Math.min(500,Number(e.target.value)))}),this.root.querySelector(`[data-lab='metrics']`).addEventListener(`click`,()=>this.exportMetrics())}advance(){if(!this.playing||this.replay===null)return;let e=this.replay.ticks.length-1;if(!(this.virtualTick>=e)){for(this.carry+=this.speed;this.carry>=1&&this.virtualTick0?this.pendingQueue.push({at:performance.now()+this.latencyMs,tick:t}):this.renderer?.push(t.snapshot.payload))}drainLatencyQueue(){let e=performance.now();for(let t=this.pendingQueue.length-1;t>=0;--t){let n=this.pendingQueue[t];n.at<=e&&(this.renderer?.push(n.tick.snapshot.payload),this.pendingQueue.splice(t,1))}}seek(e,t=!0){if(this.replay===null||this.renderer===null)return;let n=Math.max(0,Math.min(e,this.replay.ticks.length-1));for(let e=0;e<=n;e+=1)this.renderer.push(this.replay.ticks[e].snapshot.payload),e>=n-15&&this.renderer.labEffects.update(1/30);this.virtualTick=n,this.renderOnSeek=t}renderOnSeek=!0;renderCurrentTick(e){if(this.replay===null||this.renderer===null)return;this.drainLatencyQueue(),this.renderer.labFrame(this.virtualTick/this.replay.tick_rate,e??this.renderOnSeek),this.renderer.labFrame((this.virtualTick+.5)/this.replay.tick_rate,e??this.renderOnSeek),this.updateOverlays();let t=this.replay.ticks[this.virtualTick]?.snapshot.payload.phase??``;this.setStatus(`tick ${this.virtualTick}/${this.replay.ticks.length-1} · ${t} · ${this.speed}×`)}buildOverlays(){let e=this.renderer;if(e===null)return;let t=new vu({color:8257448,depthTest:!1,transparent:!0,opacity:.9});for(let n of e.labRigs){let r=new hl;r.setAttribute(`position`,new el(new Float32Array(cZ.length*6),3));let i=new Au(r,t);i.frustumCulled=!1,i.renderOrder=20,e.labScene.add(i),this.skeletonLines.push(i);let a=new H(new Gu(.13,.16,4,8),new Al({color:16735581,wireframe:!0,transparent:!0,opacity:.85,depthTest:!1}));a.renderOrder=21,a.position.y=.12,(n.getObjectByName(fb.head??`head`)??n).add(a),this.hurtboxMeshes.push(a);let o=new H(new Gu(.21,.34,4,8),new Al({color:16758877,wireframe:!0,transparent:!0,opacity:.7,depthTest:!1}));o.renderOrder=21,o.position.y=.16,(n.getObjectByName(fb.chest??`chest`)??n).add(o),this.hurtboxMeshes.push(o);for(let e of[`gloveL`,`gloveR`]){let t=new H(new Od(.11,10,8),new Al({color:6141183,wireframe:!0,transparent:!0,opacity:.85,depthTest:!1}));t.renderOrder=22,(n.getObjectByName(fb[e]??e)??n).add(t),this.hitboxMeshes.push(t)}}this.syncOverlayVisibility()}syncOverlayVisibility(){for(let e of this.skeletonLines)e.visible=this.overlays.skeleton;for(let e of this.hurtboxMeshes)e.visible=this.overlays.hurtbox;for(let e of this.hitboxMeshes)e.visible=this.overlays.hitbox}updateOverlays(){let e=this.renderer;if(e!==null)for(let[t,n]of e.labRigs.entries()){let e=this.skeletonLines[t];if(e===void 0||!e.visible)continue;let r=e.geometry.getAttribute(`position`),i=new B,a=new B;cZ.forEach(([e,t],o)=>{let s=n.getObjectByName(e),c=n.getObjectByName(t);s!==void 0&&c!==void 0&&(s.getWorldPosition(i),c.getWorldPosition(a),r.setXYZ(o*2,i.x,i.y,i.z),r.setXYZ(o*2+1,a.x,a.y,a.z))}),r.needsUpdate=!0}}jointWorld(e,t){let n=(this.renderer?.labRigs[e])?.getObjectByName(fb[t]??t);return n==null?null:n.getWorldPosition(new B)}exportMetrics(){if(this.replay===null)return;let e={contactAlignment:[],maxRootStepMeters:0,footSlideMeters:0,phaseDriftTicks:0};for(let t of this.replay.ticks){let n=t.snapshot.payload.events.find(e=>[`hit`,`counter_hit`,`block`].includes(e.kind)),r=t.snapshot.payload.fighters[0].action_hand;if(n===void 0||r===null)continue;let i=Math.min(t.tick+1,this.replay.ticks.length-1);this.seek(i,!1),this.renderCurrentTick(!1);let a=this.jointWorld(0,r===`left`?`gloveL`:`gloveR`),o=this.jointWorld(1,`head`),c=this.jointWorld(1,`chest`);a!==null&&o!==null&&c!==null&&e.contactAlignment.push({tick:t.tick,kind:n.kind,gloveToHeadMeters:Number(Math.max(0,a.distanceTo(o)-s.head.radius).toFixed(4)),gloveToTorsoMeters:Number(Math.max(0,a.distanceTo(c)-s.torso.radius).toFixed(4))})}this.seek(0,!1);let t=null,n=null;for(let r of this.replay.ticks){this.seek(r.tick,!1),this.renderCurrentTick(!1);let i=this.renderer.labRigs[0].position.x;n!==null&&(e.maxRootStepMeters=Math.max(e.maxRootStepMeters,Math.abs(i-n))),n=i;let a=r.snapshot.payload.fighters[0],o=Math.hypot(a.velocity_x,a.velocity_y),s=this.replay.ticks.slice(Math.max(0,r.tick-30),r.tick+1).some(e=>e.snapshot.payload.fighters[0].is_downed);if(o===0&&!a.is_downed&&!s&&r.snapshot.payload.phase===`fight`){let n=[this.jointWorld(0,`ankleL`),this.jointWorld(0,`ankleR`)].filter(e=>e!==null);t!==null&&n.length===2&&(e.footSlideMeters=Math.max(e.footSlideMeters,Number(Math.max(n[0].distanceTo(t[0]),n[1].distanceTo(t[1])).toFixed(4)))),t=n}else t=null}this.metricsEl.textContent=` contacts: ${e.contactAlignment.map(e=>`${e.kind}@t${e.tick} glove-head ${e.gloveToHeadMeters}m`).join(` · `)} · max root step ${e.maxRootStepMeters.toFixed(3)}m · foot slide ${e.footSlideMeters}m`,window.__labDebug={roots:this.renderer.labRigs.map(e=>e.position.toArray().map(e=>Number(e.toFixed(3)))),graphsActive:this.renderer.graphs!==null,heads:this.renderer.labRigs.map(e=>{let t=e.getObjectByName(fb.head??`head`);return t===void 0?null:t.getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3)))})};let r=new Blob([JSON.stringify(e,null,1)],{type:`application/json`}),i=document.createElement(`a`);i.href=URL.createObjectURL(r),i.download=`hands-lab-metrics.json`,i.click(),URL.revokeObjectURL(i.href)}setStatus(e){this.statusEl.textContent!==e&&(this.statusEl.textContent=e)}destroy(){this.destroyed||(this.destroyed=!0,cancelAnimationFrame(this.raf),this.renderer?.destroy(),this.root.replaceChildren())}};function uZ(e){let t=new lZ(e);return t.start().catch(t=>{e.querySelector(`[data-lab-status]`).textContent=`lab failed: ${String(t)}`}),()=>t.destroy()}var dZ={referee:{outfit:Vb,look:yb.referee},corner_blue:{outfit:Hb,look:yb.blueCorner},corner_red:{outfit:Ub,look:yb.redCorner},cutman:{outfit:Wb,look:yb.blueCutman}},fZ=()=>({player_id:`lab`,x:0,y:0,facing:1,facing_x:0,facing_y:-1e3,velocity_x:0,velocity_y:0,stance:`orthodox`,style:`balanced`,defense:`none`,stamina:1e3,maximum_stamina:1e3,conditioning:1e3,guard:700,guard_broken:!1,poise:600,trauma:{head:0,body:0,left_eye:0,right_eye:0,left_cut:0,right_cut:0,swelling:0,bleeding:0},knockdowns:0,warnings:0,deductions:0,stunned_ticks:0,is_downed:!1,action:null,action_hand:null,action_target:null,action_power:null,action_id:null,action_key:null,action_start_tick:0,action_startup_ticks:0,action_active_ticks:0,action_recovery_ticks:0,action_contact_tick:null,queued_actions:0,clinch_startup_ticks:0,clinch_ticks:0,is_foul_recovery_target:!1,taunt_ticks:0,corner_choice:null,get_up_prompt:null,get_up_meter:0,get_up_required:0,get_up_count:0,get_up_window_start_tick:0,get_up_window_end_tick:0,get_up_next_prompt:null,last_input_sequence:-1,injuries:[],blood_volume:1e3}),pZ=.45,mZ=.3,hZ={face:[.25,1.55,1],portrait:[.12,1.62,.62],eyes:[-.2,1.65,.44],floor:[1.62,.3,.18],hand:[.55,1.05,.75],front:[0,1.35,3.4],side:[3.4,1.3,.2],"three-quarter":[2.4,1.5,2.6],top:[.01,4.5,.6],back:[.2,1.4,-3.4],low:[1.8,.5,2.6],wide:[3.4,2.7,3.6]},gZ=class{root;renderer;scene=new xc;camera;graph=null;boxer=null;trails=[];trailGlove=new B;treatEye=new B(0,1.22,.78);treatFacing=new B(0,0,-1);treatTarget=new B;skeletonHelper=null;effects=null;shieldClock=1/0;shieldEvent=0;mouth=new B;headTurn=new ms;burstRim=new Float32Array;burstStump={position:new B,quaternion:new ms,across:new B,scratch:new B};raf=0;previous=performance.now();elapsed=0;params=new URLSearchParams(window.location.search);reactionFired=!1;carnage=null;injuries=[];inflictions=[];killed=!1;vomitClock=0;worn=!1;headAt=new B;statusEl;constructor(e){this.root=e,e.innerHTML=`
+
`,this.canvas=e.querySelector(`canvas`),this.statusEl=e.querySelector(`[data-lab-status]`),this.metricsEl=e.querySelector(`[data-lab-metrics]`),this.bindControls()}async start(){let e=new URLSearchParams(window.location.search),t=e.get(`replay`)??`golden`,n=await fetch(`/replays/${t}.json`);if(n.ok||(n=await fetch(`/hands/replays/${t}.json`)),!n.ok)throw Error(`replay_load_failed:${n.status}`);this.replay=await n.json(),await Kw(),this.renderer=new BX(this.canvas,{tick_rate:this.replay.tick_rate,ring_half_width:500,ring_half_height:500},()=>({volume:0,haptics:!1,reducedMotion:!1,blood:`full`,commentary:!0,announcer:!1,camera:`broadcast`}),{manualClock:!0});let r=Object.fromEntries(this.replay.ticks[0].snapshot.payload.fighters.map(e=>[e.player_id,{id:e.player_id,name:e.player_id===`one`?`Azure Vector`:`Crimson Geometry`,avatar:null,rating:1500,connected:!0}]));this.renderer.setPlayers(r,`one`),this.buildOverlays();let i=e.get(`tick`);if(e.get(`metrics`)===`1`){await this.renderer.ready,this.exportMetrics(),this.setStatus(`metrics done`);return}if(i!==null){let t=Number(i);await this.renderer.ready,this.seek(t);let n=cZ[e.get(`camera`)??``]??cZ.broadcast;this.renderer.labSetCameraOverride(n.position,n.lookAt),this.overlays.skeleton=e.get(`skeleton`)===`1`,this.overlays.hurtbox=e.get(`hurtbox`)===`1`,this.overlays.hitbox=e.get(`hitbox`)===`1`,this.syncOverlayVisibility(),this.renderCurrentTick(),window.__labDebug={roots:this.renderer.labRigs.map(e=>e.position.toArray().map(e=>Number(e.toFixed(3)))),heads:this.renderer.labRigs.map(e=>{let t=e.getObjectByName(pb.head??`head`);return t===void 0?null:t.getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3)))}),gloves:this.renderer.labRigs.map(e=>{let t=e.getObjectByName(pb.gloveL??`gloveL`);return t===void 0?null:t.getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3)))}),material:(()=>{let e=null;return this.renderer.labRigs[0]?.traverse(t=>{if(e===null&&t instanceof eu){let n=t.material;e={colorHex:n.color.getHexString(),hasMap:n.map!==null,mapImage:n.map?.image?.width??`none`,mapVersion:n.map?.version,clearcoat:n.clearcoat,opacity:n.opacity}}}),e})()},this.setStatus(`filmstrip tick ${t}`);return}this.playing=!0;let a=()=>{this.destroyed||(this.advance(),this.raf=requestAnimationFrame(a))};this.raf=requestAnimationFrame(a)}bindControls(){this.root.querySelector(`[data-lab='play']`).addEventListener(`click`,e=>{this.playing=!this.playing,e.target.textContent=this.playing?`Pause`:`Play`}),this.root.querySelector(`[data-lab='step']`).addEventListener(`click`,()=>{this.playing=!1,this.root.querySelector(`[data-lab='play']`).textContent=`Play`,this.virtualTick=Math.min(this.virtualTick+1,(this.replay?.ticks.length??1)-1),this.pushUpTo(this.virtualTick),this.renderCurrentTick()}),this.root.querySelector(`[data-lab='speed']`).addEventListener(`change`,e=>{this.speed=Number(e.target.value)}),this.root.querySelector(`[data-lab='camera']`).addEventListener(`change`,e=>{let t=cZ[e.target.value];this.renderer?.labSetCameraOverride(t.position,t.lookAt)});for(let e of[`skeleton`,`hurtbox`,`hitbox`])this.root.querySelector(`[data-lab='${e}']`).addEventListener(`change`,t=>{this.overlays[e]=t.target.checked,this.syncOverlayVisibility()});this.root.querySelector(`[data-lab='latency']`).addEventListener(`change`,e=>{this.latencyMs=Math.max(0,Math.min(500,Number(e.target.value)))}),this.root.querySelector(`[data-lab='metrics']`).addEventListener(`click`,()=>this.exportMetrics())}advance(){if(!this.playing||this.replay===null)return;let e=this.replay.ticks.length-1;if(!(this.virtualTick>=e)){for(this.carry+=this.speed;this.carry>=1&&this.virtualTick0?this.pendingQueue.push({at:performance.now()+this.latencyMs,tick:t}):this.renderer?.push(t.snapshot.payload))}drainLatencyQueue(){let e=performance.now();for(let t=this.pendingQueue.length-1;t>=0;--t){let n=this.pendingQueue[t];n.at<=e&&(this.renderer?.push(n.tick.snapshot.payload),this.pendingQueue.splice(t,1))}}seek(e,t=!0){if(this.replay===null||this.renderer===null)return;let n=Math.max(0,Math.min(e,this.replay.ticks.length-1));for(let e=0;e<=n;e+=1)this.renderer.push(this.replay.ticks[e].snapshot.payload),e>=n-15&&this.renderer.labEffects.update(1/30);this.virtualTick=n,this.renderOnSeek=t}renderOnSeek=!0;renderCurrentTick(e){if(this.replay===null||this.renderer===null)return;this.drainLatencyQueue(),this.renderer.labFrame(this.virtualTick/this.replay.tick_rate,e??this.renderOnSeek),this.renderer.labFrame((this.virtualTick+.5)/this.replay.tick_rate,e??this.renderOnSeek),this.updateOverlays();let t=this.replay.ticks[this.virtualTick]?.snapshot.payload.phase??``;this.setStatus(`tick ${this.virtualTick}/${this.replay.ticks.length-1} · ${t} · ${this.speed}×`)}buildOverlays(){let e=this.renderer;if(e===null)return;let t=new yu({color:8257448,depthTest:!1,transparent:!0,opacity:.9});for(let n of e.labRigs){let r=new gl;r.setAttribute(`position`,new tl(new Float32Array(lZ.length*6),3));let i=new ju(r,t);i.frustumCulled=!1,i.renderOrder=20,e.labScene.add(i),this.skeletonLines.push(i);let a=new H(new Ku(.13,.16,4,8),new jl({color:16735581,wireframe:!0,transparent:!0,opacity:.85,depthTest:!1}));a.renderOrder=21,a.position.y=.12,(n.getObjectByName(pb.head??`head`)??n).add(a),this.hurtboxMeshes.push(a);let o=new H(new Ku(.21,.34,4,8),new jl({color:16758877,wireframe:!0,transparent:!0,opacity:.7,depthTest:!1}));o.renderOrder=21,o.position.y=.16,(n.getObjectByName(pb.chest??`chest`)??n).add(o),this.hurtboxMeshes.push(o);for(let e of[`gloveL`,`gloveR`]){let t=new H(new kd(.11,10,8),new jl({color:6141183,wireframe:!0,transparent:!0,opacity:.85,depthTest:!1}));t.renderOrder=22,(n.getObjectByName(pb[e]??e)??n).add(t),this.hitboxMeshes.push(t)}}this.syncOverlayVisibility()}syncOverlayVisibility(){for(let e of this.skeletonLines)e.visible=this.overlays.skeleton;for(let e of this.hurtboxMeshes)e.visible=this.overlays.hurtbox;for(let e of this.hitboxMeshes)e.visible=this.overlays.hitbox}updateOverlays(){let e=this.renderer;if(e!==null)for(let[t,n]of e.labRigs.entries()){let e=this.skeletonLines[t];if(e===void 0||!e.visible)continue;let r=e.geometry.getAttribute(`position`),i=new B,a=new B;lZ.forEach(([e,t],o)=>{let s=n.getObjectByName(e),c=n.getObjectByName(t);s!==void 0&&c!==void 0&&(s.getWorldPosition(i),c.getWorldPosition(a),r.setXYZ(o*2,i.x,i.y,i.z),r.setXYZ(o*2+1,a.x,a.y,a.z))}),r.needsUpdate=!0}}jointWorld(e,t){let n=(this.renderer?.labRigs[e])?.getObjectByName(pb[t]??t);return n==null?null:n.getWorldPosition(new B)}exportMetrics(){if(this.replay===null)return;let e={contactAlignment:[],maxRootStepMeters:0,footSlideMeters:0,phaseDriftTicks:0};for(let t of this.replay.ticks){let n=t.snapshot.payload.events.find(e=>[`hit`,`counter_hit`,`block`].includes(e.kind)),r=t.snapshot.payload.fighters[0].action_hand;if(n===void 0||r===null)continue;let i=Math.min(t.tick+1,this.replay.ticks.length-1);this.seek(i,!1),this.renderCurrentTick(!1);let a=this.jointWorld(0,r===`left`?`gloveL`:`gloveR`),o=this.jointWorld(1,`head`),c=this.jointWorld(1,`chest`);a!==null&&o!==null&&c!==null&&e.contactAlignment.push({tick:t.tick,kind:n.kind,gloveToHeadMeters:Number(Math.max(0,a.distanceTo(o)-s.head.radius).toFixed(4)),gloveToTorsoMeters:Number(Math.max(0,a.distanceTo(c)-s.torso.radius).toFixed(4))})}this.seek(0,!1);let t=null,n=null;for(let r of this.replay.ticks){this.seek(r.tick,!1),this.renderCurrentTick(!1);let i=this.renderer.labRigs[0].position.x;n!==null&&(e.maxRootStepMeters=Math.max(e.maxRootStepMeters,Math.abs(i-n))),n=i;let a=r.snapshot.payload.fighters[0],o=Math.hypot(a.velocity_x,a.velocity_y),s=this.replay.ticks.slice(Math.max(0,r.tick-30),r.tick+1).some(e=>e.snapshot.payload.fighters[0].is_downed);if(o===0&&!a.is_downed&&!s&&r.snapshot.payload.phase===`fight`){let n=[this.jointWorld(0,`ankleL`),this.jointWorld(0,`ankleR`)].filter(e=>e!==null);t!==null&&n.length===2&&(e.footSlideMeters=Math.max(e.footSlideMeters,Number(Math.max(n[0].distanceTo(t[0]),n[1].distanceTo(t[1])).toFixed(4)))),t=n}else t=null}this.metricsEl.textContent=` contacts: ${e.contactAlignment.map(e=>`${e.kind}@t${e.tick} glove-head ${e.gloveToHeadMeters}m`).join(` · `)} · max root step ${e.maxRootStepMeters.toFixed(3)}m · foot slide ${e.footSlideMeters}m`,window.__labDebug={roots:this.renderer.labRigs.map(e=>e.position.toArray().map(e=>Number(e.toFixed(3)))),graphsActive:this.renderer.graphs!==null,heads:this.renderer.labRigs.map(e=>{let t=e.getObjectByName(pb.head??`head`);return t===void 0?null:t.getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3)))})};let r=new Blob([JSON.stringify(e,null,1)],{type:`application/json`}),i=document.createElement(`a`);i.href=URL.createObjectURL(r),i.download=`hands-lab-metrics.json`,i.click(),URL.revokeObjectURL(i.href)}setStatus(e){this.statusEl.textContent!==e&&(this.statusEl.textContent=e)}destroy(){this.destroyed||(this.destroyed=!0,cancelAnimationFrame(this.raf),this.renderer?.destroy(),this.root.replaceChildren())}};function dZ(e){let t=new uZ(e);return t.start().catch(t=>{e.querySelector(`[data-lab-status]`).textContent=`lab failed: ${String(t)}`}),()=>t.destroy()}var fZ={referee:{outfit:Hb,look:bb.referee},corner_blue:{outfit:Ub,look:bb.blueCorner},corner_red:{outfit:Wb,look:bb.redCorner},cutman:{outfit:Gb,look:bb.blueCutman}},pZ=()=>({player_id:`lab`,x:0,y:0,facing:1,facing_x:0,facing_y:-1e3,velocity_x:0,velocity_y:0,stance:`orthodox`,style:`balanced`,defense:`none`,stamina:1e3,maximum_stamina:1e3,conditioning:1e3,guard:700,guard_broken:!1,poise:600,trauma:{head:0,body:0,left_eye:0,right_eye:0,left_cut:0,right_cut:0,swelling:0,bleeding:0},knockdowns:0,warnings:0,deductions:0,stunned_ticks:0,is_downed:!1,action:null,action_hand:null,action_target:null,action_power:null,action_id:null,action_key:null,action_start_tick:0,action_startup_ticks:0,action_active_ticks:0,action_recovery_ticks:0,action_contact_tick:null,queued_actions:0,clinch_startup_ticks:0,clinch_ticks:0,is_foul_recovery_target:!1,taunt_ticks:0,corner_choice:null,get_up_prompt:null,get_up_meter:0,get_up_required:0,get_up_count:0,get_up_window_start_tick:0,get_up_window_end_tick:0,get_up_next_prompt:null,last_input_sequence:-1,injuries:[],blood_volume:1e3}),mZ=.45,hZ=.3,gZ={face:[.25,1.55,1],portrait:[.12,1.62,.62],eyes:[-.2,1.65,.44],floor:[1.62,.3,.18],hand:[.55,1.05,.75],front:[0,1.35,3.4],side:[3.4,1.3,.2],"three-quarter":[2.4,1.5,2.6],top:[.01,4.5,.6],back:[.2,1.4,-3.4],low:[1.8,.5,2.6],wide:[3.4,2.7,3.6]},_Z=class{root;renderer;scene=new Sc;camera;graph=null;boxer=null;trails=[];trailGlove=new B;treatEye=new B(0,1.22,.78);treatFacing=new B(0,0,-1);treatTarget=new B;skeletonHelper=null;effects=null;shieldClock=1/0;shieldEvent=0;mouth=new B;headTurn=new hs;burstRim=new Float32Array;burstStump={position:new B,quaternion:new hs,across:new B,scratch:new B};raf=0;previous=performance.now();elapsed=0;params=new URLSearchParams(window.location.search);reactionFired=!1;carnage=null;injuries=[];inflictions=[];killed=!1;vomitClock=0;worn=!1;headAt=new B;statusEl;constructor(e){this.root=e,e.innerHTML=`
HANDS POSE LABloading…
-
`,this.statusEl=e.querySelector(`[data-status]`);let t=e.querySelector(`[data-canvas]`);this.renderer=new Ug({canvas:t,antialias:!0,preserveDrawingBuffer:!0}),this.renderer.setPixelRatio(Math.min(2,window.devicePixelRatio||1)),this.renderer.shadowMap.enabled=!0,this.renderer.toneMapping=4,this.camera=new Vf(38,1,.1,60);let n=hZ[this.params.get(`cam`)??`three-quarter`]??hZ[`three-quarter`];this.camera.position.set(...n),this.params.get(`cam`)===`hand`?this.camera.lookAt(.27,.84,.12):this.params.get(`cam`)===`portrait`?this.camera.lookAt(0,1.6,.05):this.params.get(`cam`)===`eyes`?this.camera.lookAt(.01,1.6,.06):this.params.get(`cam`)===`floor`?this.camera.lookAt(1.3,0,-.24):this.params.get(`cam`)===`wide`?this.camera.lookAt(0,.45,-.2):this.camera.lookAt(0,this.params.get(`cam`)===`face`?1.5:1,0),this.setupLighting()}setupLighting(){this.scene.background=new V(`#101318`),this.scene.add(new kf(`#8fa0c8`,`#1a1c22`,1.4));let e=new Jf(`#fff1dc`,2.6);e.position.set(2.5,5,3),e.castShadow=!0,e.shadow.mapSize.set(2048,2048),this.scene.add(e);let t=new Jf(`#9fb8ff`,1.2);t.position.set(-3,3,-3),this.scene.add(t);let n=new H(new Ku(4,48),new Hd({color:`#3c4a7a`,roughness:.9}));n.rotation.x=-Math.PI/2,n.receiveShadow=!0,this.scene.add(n);let r=new Cp(4,16,8952251,3358810);r.position.y=.002,this.scene.add(r)}synthesize(e){let t=this.params.get(`pose`)??`idle`,n=this.params.get(`stance`)===`southpaw`?`southpaw`:`orthodox`,r={...fZ(),stance:n},i=this.params.get(`trauma`);i===`light`&&(r.trauma={head:220,body:260,left_eye:190,right_eye:60,left_cut:40,right_cut:0,swelling:120,bleeding:60}),i===`heavy`&&(r.trauma={head:900,body:700,left_eye:720,right_eye:380,left_cut:520,right_cut:190,swelling:620,bleeding:520}),i===`cut`&&(r.trauma={head:420,body:120,left_eye:380,right_eye:120,left_cut:300,right_cut:0,swelling:260,bleeding:380});let a=i?.split(`,`).map(Number)??[];if(a.length===8&&a.every(Number.isFinite)){let[e,t,n,i,o,s,c,l]=a;r.trauma={head:e,body:t,left_eye:n,right_eye:i,left_cut:o,right_cut:s,swelling:c,bleeding:l}}let o=Number(this.params.get(`gap`)??150),s={...fZ(),player_id:`other`,x:0,y:-o,facing_x:0,facing_y:1e3},c=Math.floor(e*30),l=/^(jab|straight|hook|uppercut)_(left|right)(_body)?(_power)?$/.exec(t);if(l!==null){let e=l[1],t=l[2],n=l[3]===`_body`?`body`:`head`,i=l[4]===`_power`?`power`:`normal`,a={jab:[4,2,7],straight:[6,2,10],hook:[7,3,12],uppercut:[8,2,13]}[e],o=a[0]+a[1]+a[2],s=Math.floor(c/(o+12))*(o+12)+6;c>=s&&c=pZ&&t<3.4,r.stunned_ticks=t=mZ&&(t===null||e{let i=Math.min(.05,(r-this.previous)/1e3);this.previous=r,t===null?(this.elapsed=e===null?this.elapsed+i:Number(e),this.step(e===null?i:1/60)):this.step(0),this.renderer.render(this.scene,this.camera),this.raf=requestAnimationFrame(n)};this.raf=requestAnimationFrame(n)}step(e){let t=this.graph;if(t===null)return;let n=this.renderer.domElement.clientWidth,r=this.renderer.domElement.clientHeight;n>0&&r>0&&(this.renderer.domElement.width!==n||this.renderer.domElement.height!==r)&&(this.renderer.setSize(n,r,!1),this.camera.aspect=n/r,this.camera.updateProjectionMatrix());let{fighter:i,opponent:a,sampledTick:o,head:s}=this.synthesize(this.elapsed),c=this.params.get(`pose`)??``;if(/^(hit|block)_/.test(c)){let n=this.elapsed%1.6;if(this.params.has(`freeze`)?!this.reactionFired&&this.elapsed>=.02:n=.27999999999999997){this.reactionFired=!0;let e=this.params.get(`hit`)??`straight`,n=e===`body`?`hook`:e;t.react(`hit`,e===`body`?`body`:`head`,1,n,this.params.get(`hand`)===`left`?`left`:`right`,Number(this.params.get(`amount`)??420))}this.params.get(`pose`)===`knockdown`&&this.params.get(`fall`)===`prone`&&this.elapsed%6=.02:this.elapsed%1.63)){this.shieldClock=0,this.shieldEvent+=1;let e=this.boxer.bone(`head`);e.getWorldQuaternion(this.headTurn),e.getWorldPosition(this.mouth).add(new B(0,.045,.12).applyQuaternion(this.headTurn)),this.effects.ejectMouthpiece(0,this.mouth,this.headTurn,1,this.shieldEvent,1920728,!0)}this.effects?.update(e);for(let[t,n]of[`gloveL`,`gloveR`].entries())this.carnage?.hasGlove(0,t===0?`left`:`right`)===!1?this.trails[t]?.reset():(this.boxer.rig.bones[n].getWorldPosition(this.trailGlove),this.trails[t]?.update(this.trailGlove,e,this.camera.position,e>0));window.__poseLab={head:this.boxer.bone(`head`).getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3))),gloveL:this.boxer.bone(`gloveL`).getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3))),gloveR:this.boxer.bone(`gloveR`).getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3))),ankleL:this.boxer.bone(`ankleL`).getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3))),ankleR:this.boxer.bone(`ankleR`).getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3))),kneeL:this.boxer.bone(`kneeL`).getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3))),kneeR:this.boxer.bone(`kneeR`).getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3))),metrics:this.boxer.rig.metrics,mouthpiece:this.effects!==null&&this.effects.mouthpiecePosition(0,this.mouth)?this.mouth.toArray().map(e=>Number(e.toFixed(3))):null}}get bloodSetting(){let e=this.params.get(`blood`);return e===`reduced`||e===`off`?e:`full`}startCarnage(){let e=e=>(this.params.get(e)??``).split(`,`).filter(e=>Xe.includes(e));this.injuries.push(...e(`injuries`));for(let[t,n]of e(`inflict`).entries())this.inflictions.push({injury:n,at:1+t*.8,done:!1});if(!(this.injuries.length>0||this.inflictions.length>0||[`fatality`,`dead`,`bloodvol`,`dazed`,`vomit`,`xray`,`wear`].some(e=>this.params.has(e)))||this.graph===null)return;this.effects??=new rq(this.scene),this.effects.setBloodLevel(this.bloodSetting),this.effects.setCamera(this.camera),this.carnage=new GH(this.effects,QY),this.carnage.attach(0,this.graph);let t=this.params.get(`xray`);t!==null&&this.carnage.holdXray(0,t)}stepCarnage(e){let t=this.carnage,n=this.graph;if(t===null||n===null||this.effects===null)return;for(let[e,n]of this.inflictions.entries())n.done||this.elapsed=1&&(i!==null||Qe.includes(r??``))&&(this.killed=!0,i===null?this.kill(t,r):t.die(0,i));let a=this.params.get(`dazed`)===`1`&&!this.killed;n.setDazed(a),this.params.get(`vomit`)===`1`&&(this.vomitClock+=e,this.vomitClock>=3&&(this.vomitClock=0,t.vomit(0,Math.round(this.elapsed*10))));let o=Number(this.params.get(`bloodvol`)??1e3),s=Xe.filter(e=>this.injuries.includes(e));t.sync(0,{injuries:s,blood_volume:Number.isFinite(o)?o:1e3},{blood:this.bloodSetting,reducedMotion:!1},e,this.elapsed,a);let c=Number(this.params.get(`wear`)??0);if(!this.worn&&c>0&&this.elapsed>=.5){this.worn=!0;let e=[[`head`,.06,.07,.1],[`body`,.1,.02,.14],[`head`,-.05,.11,.1],[`body`,-.09,-.06,.14]];for(let r=0;rvoid 0),()=>t.destroy()}var vZ=document.querySelector(`#app`);if(vZ===null)throw Error(`app_root_missing`);var yZ,bZ=new URLSearchParams(window.location.search),xZ=window.location.pathname.endsWith(`/hands/lab`)||bZ.get(`lab`)===`1`;if(window.location.pathname.endsWith(`/hands/model-lab`)||bZ.get(`model-lab`)===`1`)yZ=_Z(vZ);else if(xZ)yZ=uZ(vZ);else{let e=new oZ(vZ);e.start(),yZ=()=>e.destroy()}window.addEventListener(`pagehide`,yZ,{once:!0}); \ No newline at end of file +`,this.statusEl=e.querySelector(`[data-status]`);let t=e.querySelector(`[data-canvas]`);this.renderer=new Wg({canvas:t,antialias:!0,preserveDrawingBuffer:!0}),this.renderer.setPixelRatio(Math.min(2,window.devicePixelRatio||1)),this.renderer.shadowMap.enabled=!0,this.renderer.toneMapping=4,this.camera=new Hf(38,1,.1,60);let n=gZ[this.params.get(`cam`)??`three-quarter`]??gZ[`three-quarter`];this.camera.position.set(...n),this.params.get(`cam`)===`hand`?this.camera.lookAt(.27,.84,.12):this.params.get(`cam`)===`portrait`?this.camera.lookAt(0,1.6,.05):this.params.get(`cam`)===`eyes`?this.camera.lookAt(.01,1.6,.06):this.params.get(`cam`)===`floor`?this.camera.lookAt(1.3,0,-.24):this.params.get(`cam`)===`wide`?this.camera.lookAt(0,.45,-.2):this.camera.lookAt(0,this.params.get(`cam`)===`face`?1.5:1,0),this.setupLighting()}setupLighting(){this.scene.background=new V(`#101318`),this.scene.add(new Af(`#8fa0c8`,`#1a1c22`,1.4));let e=new Yf(`#fff1dc`,2.6);e.position.set(2.5,5,3),e.castShadow=!0,e.shadow.mapSize.set(2048,2048),this.scene.add(e);let t=new Yf(`#9fb8ff`,1.2);t.position.set(-3,3,-3),this.scene.add(t);let n=new H(new qu(4,48),new Ud({color:`#3c4a7a`,roughness:.9}));n.rotation.x=-Math.PI/2,n.receiveShadow=!0,this.scene.add(n);let r=new wp(4,16,8952251,3358810);r.position.y=.002,this.scene.add(r)}synthesize(e){let t=this.params.get(`pose`)??`idle`,n=this.params.get(`stance`)===`southpaw`?`southpaw`:`orthodox`,r={...pZ(),stance:n},i=this.params.get(`trauma`);i===`light`&&(r.trauma={head:220,body:260,left_eye:190,right_eye:60,left_cut:40,right_cut:0,swelling:120,bleeding:60}),i===`heavy`&&(r.trauma={head:900,body:700,left_eye:720,right_eye:380,left_cut:520,right_cut:190,swelling:620,bleeding:520}),i===`cut`&&(r.trauma={head:420,body:120,left_eye:380,right_eye:120,left_cut:300,right_cut:0,swelling:260,bleeding:380});let a=i?.split(`,`).map(Number)??[];if(a.length===8&&a.every(Number.isFinite)){let[e,t,n,i,o,s,c,l]=a;r.trauma={head:e,body:t,left_eye:n,right_eye:i,left_cut:o,right_cut:s,swelling:c,bleeding:l}}let o=Number(this.params.get(`gap`)??150),s={...pZ(),player_id:`other`,x:0,y:-o,facing_x:0,facing_y:1e3},c=Math.floor(e*30),l=/^(jab|straight|hook|uppercut)_(left|right)(_body)?(_power)?$/.exec(t);if(l!==null){let e=l[1],t=l[2],n=l[3]===`_body`?`body`:`head`,i=l[4]===`_power`?`power`:`normal`,a={jab:[4,2,7],straight:[6,2,10],hook:[7,3,12],uppercut:[8,2,13]}[e],o=a[0]+a[1]+a[2],s=Math.floor(c/(o+12))*(o+12)+6;c>=s&&c=mZ&&t<3.4,r.stunned_ticks=t=hZ&&(t===null||e{let i=Math.min(.05,(r-this.previous)/1e3);this.previous=r,t===null?(this.elapsed=e===null?this.elapsed+i:Number(e),this.step(e===null?i:1/60)):this.step(0),this.renderer.render(this.scene,this.camera),this.raf=requestAnimationFrame(n)};this.raf=requestAnimationFrame(n)}step(e){let t=this.graph;if(t===null)return;let n=this.renderer.domElement.clientWidth,r=this.renderer.domElement.clientHeight;n>0&&r>0&&(this.renderer.domElement.width!==n||this.renderer.domElement.height!==r)&&(this.renderer.setSize(n,r,!1),this.camera.aspect=n/r,this.camera.updateProjectionMatrix());let{fighter:i,opponent:a,sampledTick:o,head:s}=this.synthesize(this.elapsed),c=this.params.get(`pose`)??``;if(/^(hit|block)_/.test(c)){let n=this.elapsed%1.6;if(this.params.has(`freeze`)?!this.reactionFired&&this.elapsed>=.02:n=.27999999999999997){this.reactionFired=!0;let e=this.params.get(`hit`)??`straight`,n=e===`body`?`hook`:e;t.react(`hit`,e===`body`?`body`:`head`,1,n,this.params.get(`hand`)===`left`?`left`:`right`,Number(this.params.get(`amount`)??420))}this.params.get(`pose`)===`knockdown`&&this.params.get(`fall`)===`prone`&&this.elapsed%6=.02:this.elapsed%1.63)){this.shieldClock=0,this.shieldEvent+=1;let e=this.boxer.bone(`head`);e.getWorldQuaternion(this.headTurn),e.getWorldPosition(this.mouth).add(new B(0,.045,.12).applyQuaternion(this.headTurn)),this.effects.ejectMouthpiece(0,this.mouth,this.headTurn,1,this.shieldEvent,1920728,!0)}this.effects?.update(e);for(let[t,n]of[`gloveL`,`gloveR`].entries())this.carnage?.hasGlove(0,t===0?`left`:`right`)===!1?this.trails[t]?.reset():(this.boxer.rig.bones[n].getWorldPosition(this.trailGlove),this.trails[t]?.update(this.trailGlove,e,this.camera.position,e>0));window.__poseLab={head:this.boxer.bone(`head`).getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3))),gloveL:this.boxer.bone(`gloveL`).getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3))),gloveR:this.boxer.bone(`gloveR`).getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3))),ankleL:this.boxer.bone(`ankleL`).getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3))),ankleR:this.boxer.bone(`ankleR`).getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3))),kneeL:this.boxer.bone(`kneeL`).getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3))),kneeR:this.boxer.bone(`kneeR`).getWorldPosition(new B).toArray().map(e=>Number(e.toFixed(3))),metrics:this.boxer.rig.metrics,mouthpiece:this.effects!==null&&this.effects.mouthpiecePosition(0,this.mouth)?this.mouth.toArray().map(e=>Number(e.toFixed(3))):null}}get bloodSetting(){let e=this.params.get(`blood`);return e===`reduced`||e===`off`?e:`full`}startCarnage(){let e=e=>(this.params.get(e)??``).split(`,`).filter(e=>Ze.includes(e));this.injuries.push(...e(`injuries`));for(let[t,n]of e(`inflict`).entries())this.inflictions.push({injury:n,at:1+t*.8,done:!1});if(!(this.injuries.length>0||this.inflictions.length>0||[`fatality`,`dead`,`bloodvol`,`dazed`,`vomit`,`xray`,`wear`].some(e=>this.params.has(e)))||this.graph===null)return;this.effects??=new iq(this.scene),this.effects.setBloodLevel(this.bloodSetting),this.effects.setCamera(this.camera),this.carnage=new KH(this.effects,$Y),this.carnage.attach(0,this.graph);let t=this.params.get(`xray`);t!==null&&this.carnage.holdXray(0,t)}stepCarnage(e){let t=this.carnage,n=this.graph;if(t===null||n===null||this.effects===null)return;for(let[e,n]of this.inflictions.entries())n.done||this.elapsed=1&&(i!==null||$e.includes(r??``))&&(this.killed=!0,i===null?this.kill(t,r):t.die(0,i));let a=this.params.get(`dazed`)===`1`&&!this.killed;n.setDazed(a),this.params.get(`vomit`)===`1`&&(this.vomitClock+=e,this.vomitClock>=3&&(this.vomitClock=0,t.vomit(0,Math.round(this.elapsed*10))));let o=Number(this.params.get(`bloodvol`)??1e3),s=Ze.filter(e=>this.injuries.includes(e));t.sync(0,{injuries:s,blood_volume:Number.isFinite(o)?o:1e3},{blood:this.bloodSetting,reducedMotion:!1},e,this.elapsed,a);let c=Number(this.params.get(`wear`)??0);if(!this.worn&&c>0&&this.elapsed>=.5){this.worn=!0;let e=[[`head`,.06,.07,.1],[`body`,.1,.02,.14],[`head`,-.05,.11,.1],[`body`,-.09,-.06,.14]];for(let r=0;rvoid 0),()=>t.destroy()}var yZ=document.querySelector(`#app`);if(yZ===null)throw Error(`app_root_missing`);var bZ,xZ=new URLSearchParams(window.location.search),SZ=window.location.pathname.endsWith(`/hands/lab`)||xZ.get(`lab`)===`1`;if(window.location.pathname.endsWith(`/hands/model-lab`)||xZ.get(`model-lab`)===`1`)bZ=vZ(yZ);else if(SZ)bZ=dZ(yZ);else{let e=new sZ(yZ);e.start(),bZ=()=>e.destroy()}window.addEventListener(`pagehide`,bZ,{once:!0}); \ No newline at end of file diff --git a/tests/test_hands/test_engine.py b/tests/test_hands/test_engine.py index 895da594..11f7779f 100644 --- a/tests/test_hands/test_engine.py +++ b/tests/test_hands/test_engine.py @@ -1729,6 +1729,24 @@ def test_of_two_get_up_presses_in_one_tick_the_first_is_judged() -> None: ] +def test_a_guard_raised_after_a_get_up_press_in_the_same_tick_leaves_the_press_to_be_judged() -> ( + None +): + engine = _downed() + downed = engine.fighter("one") + # The punch that put him down left him stunned, and the count does not wear a stun off. + downed.stunned_ticks = 30 + beat = _beat(engine) + while engine.tick < beat - 1: + engine.step() + prompt = downed.get_up_prompt + engine.submit_input("one", command(engine.tick + 1, action=MovementAction(prompt))) + engine.submit_input("one", command(engine.tick + 2, defense=DefensivePose.GUARD_HIGH)) + assert [event.detail for event in engine.step().events if event.kind == "get_up_input"] == [ + "perfect" + ] + + @pytest.mark.parametrize("every", [3, 4, 7, 8]) def test_mashing_never_gets_a_fighter_up(every: int) -> None: engine = _downed() diff --git a/web/hands/src/app.test.ts b/web/hands/src/app.test.ts index 54c110da..14393fb6 100644 --- a/web/hands/src/app.test.ts +++ b/web/hands/src/app.test.ts @@ -30,6 +30,7 @@ const mocks = vi.hoisted(() => { renderers: [] as Array<{ onAnnouncement?: ((lines: readonly string[]) => void) | null; onCrowdCue?: ((cue: "chant") => void) | null; onRocked?: ((level: number, tick: number) => void) | null; onContact?: ((event: CombatEvent, power: boolean) => void) | null; onOwnPunch?: ((punchClass: PunchClass, power: boolean, actionId: string) => void) | null; onGore?: ((cue: GoreCue) => void) | null }>, input: null as (() => { moveX: number; moveY: number }) | null, viewForward: null as { x: number; z: number } | null, + getUpView: null as GetUpView | null, heldSends: 0, }; }); @@ -71,12 +72,14 @@ vi.mock("./render/renderer", () => ({ destroy(): void { mocks.rendererDestroy(); } setInputLatency(): void {} get resultVisible(): boolean { return mocks.resultVisible; } + get getUpView(): typeof mocks.getUpView { return mocks.getUpView; } }, })); import type { IDiscordSDK } from "@discord/embedded-app-sdk"; import { ClientError } from "./api"; import { HandsApp } from "./app"; +import { getUpView, type GetUpView } from "./getup"; import { AudioFeedback } from "./audio"; import { HapticFeedback } from "./haptics"; @@ -113,6 +116,7 @@ describe("browser lifecycle and accessible overlays", () => { mocks.callbacks = null; mocks.rendererPushes.length = 0; mocks.resultVisible = true; + mocks.getUpView = null; mocks.cpuRequests.length = 0; mocks.cpuAccepted = true; vi.clearAllMocks(); @@ -774,6 +778,32 @@ describe("browser lifecycle and accessible overlays", () => { app.destroy(); }); + it("lights the get-up pad the panel asks for, and none once the panel has no prompt left, whatever the snapshot still says", async () => { + vi.mocked(window.matchMedia).mockImplementation((query: string) => ({ matches: query === "(pointer: coarse)", media: query, onchange: null, addListener: vi.fn(), removeListener: vi.fn(), addEventListener: vi.fn(), removeEventListener: vi.fn(), dispatchEvent: vi.fn() })); + history.replaceState({}, "", "/?instance_id=launch"); + const root = document.createElement("div"); + const app = new HandsApp(root); + app.start(); + await vi.waitFor(() => expect(mocks.callbacks).not.toBeNull()); + send({ version: PROTOCOL_VERSION, type: "welcome", role: "fighter", player_id: "one", seat: 1, rating: 1500, players: [...players], server_tick: 0, next_sequence: 0, reconnect_ticket: "rotated" }); + send({ version: PROTOCOL_VERSION, type: "ready", players: [...players] }); + const floored = { ...fighter("one", -100), is_downed: true, get_up_prompt: "get_up_left" as const, get_up_required: 4 }; + const down = (tick: number) => ({ version: PROTOCOL_VERSION, type: "snapshot" as const, payload: { ...makeSnapshot(tick, "knockdown"), fighters: [floored, fighter("two", 100)] as const } }); + const lit = () => [...root.querySelectorAll(".touch-getup-pad.wanted")].map((pad) => pad.dataset.getupSide); + // Before the renderer has drawn a panel, the snapshot's side. + send(down(200)); + expect(lit()).toEqual(["get_up_left"]); + const view = getUpView(floored, 201, 0, null, null, true, false); + mocks.getUpView = { ...view, prompt: { side: "get_up_right", beat: 220, next: null } }; + send(down(201)); + expect(lit()).toEqual(["get_up_right"]); + // The last prompt answered: the panel shows none, and the snapshot's old one, a round trip behind, stays dark. + mocks.getUpView = { ...view, prompt: null }; + send(down(202)); + expect(lit()).toEqual([]); + app.destroy(); + }); + it("keeps the page's one Discord SDK open through a rematch and a retried failure, and closes it at teardown", async () => { const { DiscordActivity } = await vi.importActual("./discord"); history.replaceState({}, "", "/?instance_id=launch&frame_id=frame&platform=mobile"); diff --git a/web/hands/src/app.ts b/web/hands/src/app.ts index 2b81dbd7..46cc7728 100644 --- a/web/hands/src/app.ts +++ b/web/hands/src/app.ts @@ -417,9 +417,11 @@ export class HandsApp { this.renderer?.push(snapshot); const viewer = snapshot.fighters.find((fighter) => fighter.player_id === this.state.playerId); // The get-up pads stay up until the get-up panel has gone, so the fight controls never land on top of it. - const getUpShown = viewer?.is_downed === true || (this.renderer?.getUpView ?? null) !== null; + const getUpView = this.renderer?.getUpView ?? null; + const getUpShown = viewer?.is_downed === true || getUpView !== null; this.input.setKnockdown(getUpShown); - this.input.setGetUpPrompt(getUpShown ? this.renderer?.getUpView?.prompt?.side ?? viewer?.get_up_prompt ?? null : null); + // The panel's prompt rules once there is a panel: a spent last prompt lights no pad, though the snapshot still names it. + this.input.setGetUpPrompt(!getUpShown ? null : getUpView === null ? viewer?.get_up_prompt ?? null : getUpView.prompt?.side ?? null); if (viewer !== undefined) this.audio.snapshot(snapshot.tick, viewer.stamina, viewer.maximum_stamina, viewer.trauma.head + viewer.trauma.body); this.audio.roundClock(snapshot.phase, snapshot.round_number, snapshot.phase_ticks_remaining, this.state.simulation?.tick_rate ?? 30); this.audio.tension(crowdTension(snapshot)); diff --git a/web/hands/src/getup.test.ts b/web/hands/src/getup.test.ts index 80ceb2e4..10a62d00 100644 --- a/web/hands/src/getup.test.ts +++ b/web/hands/src/getup.test.ts @@ -94,19 +94,24 @@ describe("the downed player's own presses", () => { expect(tracker.verdict).toBeNull(); }); - it("has the live region say only what changed: the new side, the verdict, both together", () => { + it("has the live region say only what changed, after its count, so the same news on the next count is read again", () => { const announcer = new GetUpAnnouncer(); const tracker = new GetUpTracker(); - const first = downed(); - expect(announcer.announce(getUpView(first, BEAT - 10, 0, tracker, null, false, false))).toBe("Left."); - expect(announcer.announce(getUpView(first, BEAT - 5, 50, tracker, null, false, false))).toBe("Left."); - tracker.press("get_up_left", first, BEAT, 100); - expect(announcer.announce(getUpView(first, BEAT + 1, 110, tracker, null, false, false))).toBe("Perfect, plus 2. Right."); - tracker.confirm(verdict("perfect", GET_UP.perfect), 300); - const second = downed({ get_up_prompt: "get_up_right", get_up_next_prompt: "get_up_right", get_up_window_start_tick: BEAT + COUNT_TICKS - GET_UP.zoneTicks, get_up_window_end_tick: BEAT + COUNT_TICKS + GET_UP.zoneTicks }); - expect(announcer.announce(getUpView(second, BEAT + 5, 300, tracker, null, false, false))).toBe("Perfect, plus 2. Right."); - tracker.press("get_up_left", second, BEAT + COUNT_TICKS, 400); - expect(announcer.announce(getUpView(second, BEAT + COUNT_TICKS + 1, 410, tracker, null, false, false))).toBe("Wrong side, minus 1. Right again."); + // Down two counts before the first beat, as the engine puts it. + const knock = BEAT - 2 * COUNT_TICKS; + const prompt = (beat: number) => downed({ get_up_prompt: beat === BEAT ? "get_up_left" : "get_up_right", get_up_next_prompt: "get_up_right", get_up_window_start_tick: beat - GET_UP.zoneTicks, get_up_window_end_tick: beat + GET_UP.zoneTicks }); + const hear = (fighter: FighterSnapshot, tick: number) => announcer.announce(getUpView(fighter, tick, tick * 10, tracker, knock, false, false)); + expect(hear(prompt(BEAT), BEAT - 30)).toBe("Left."); + expect(hear(prompt(BEAT), BEAT - 10)).toBe("Left."); + tracker.press("get_up_left", prompt(BEAT), BEAT, BEAT * 10); + expect(hear(prompt(BEAT), BEAT + 1)).toBe("2. Perfect, plus 2. Right."); + tracker.confirm(verdict("perfect", GET_UP.perfect), BEAT * 10 + 300); + expect(hear(prompt(BEAT + COUNT_TICKS), BEAT + 5)).toBe("2. Perfect, plus 2. Right."); + for (const [count, beat] of [[3, BEAT + COUNT_TICKS], [4, BEAT + 2 * COUNT_TICKS]] as const) { + tracker.press("get_up_right", prompt(beat), beat, beat * 10); + expect(hear(prompt(beat), beat + 1)).toBe(`${count}. Perfect, plus 2. Right again.`); + tracker.confirm(verdict("perfect", GET_UP.perfect), beat * 10 + 300); + } }); }); diff --git a/web/hands/src/getup.ts b/web/hands/src/getup.ts index 4dc5540b..6ce2bd45 100644 --- a/web/hands/src/getup.ts +++ b/web/hands/src/getup.ts @@ -192,9 +192,10 @@ export function getUpStatus(view: GetUpView): string { } /** - * What the downed player's live region says: only what changed. The side when a new prompt comes ("Left.", or "Left - * again." after another left), the verdict when one arrives ("Perfect, plus 2."), both when they come together; the - * text stays as it is until there is news. + * What the downed player's live region says: only what changed, after the count it changed on ("3. Left.", or "3. + * Left again." after another left), the verdict when one arrives ("4. Perfect, plus 2."), both when they come + * together. The text stays as it is until there is news; leading with the count makes the same news on another count + * new text, which a screen reader then reads. */ export class GetUpAnnouncer { private beat = Number.NaN; @@ -223,7 +224,7 @@ export class GetUpAnnouncer { news = `${news} ${capital(SPOKEN[prompt.side])}${this.side === prompt.side ? " again" : ""}.`.trim(); this.side = prompt.side; } - if (news !== "") this.text = news; + if (news !== "") this.text = view.count >= 1 ? `${view.count}. ${news}` : news; return this.text; } } diff --git a/web/hands/src/input/touch.ts b/web/hands/src/input/touch.ts index 2a3e968a..a8d64eaf 100644 --- a/web/hands/src/input/touch.ts +++ b/web/hands/src/input/touch.ts @@ -20,12 +20,15 @@ const GET_UP_PADS_BOTTOM = 118; let measuredInsets: Insets | null = null; let measuredWidth = 0; let measuredHeight = 0; +let measuredAngle = 0; /** The screen's safe-area insets in CSS pixels, as env(safe-area-inset-*) gives them to the fight pads' CSS. */ export function safeAreaInsets(): Insets { if (typeof document === "undefined" || document.body === null) return NO_INSETS; - // A turned phone has other insets: they are measured again whenever the viewport changes. - if (measuredInsets !== null && measuredWidth === window.innerWidth && measuredHeight === window.innerHeight) return measuredInsets; + // A turned phone has other insets: they are measured again whenever the viewport or its turn changes, so a half + // turn from one landscape to the other, which keeps the size, still moves the notch's inset to the other side. + const angle = window.screen?.orientation?.angle ?? 0; + if (measuredInsets !== null && measuredWidth === window.innerWidth && measuredHeight === window.innerHeight && measuredAngle === angle) return measuredInsets; const probe = document.createElement("div"); probe.style.cssText = "position:fixed;visibility:hidden;pointer-events:none;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)"; document.body.append(probe); @@ -33,6 +36,7 @@ export function safeAreaInsets(): Insets { measuredInsets = { top: Number.parseFloat(style.paddingTop) || 0, right: Number.parseFloat(style.paddingRight) || 0, bottom: Number.parseFloat(style.paddingBottom) || 0, left: Number.parseFloat(style.paddingLeft) || 0 }; measuredWidth = window.innerWidth; measuredHeight = window.innerHeight; + measuredAngle = angle; probe.remove(); return measuredInsets; } diff --git a/web/hands/src/render/caption.test.ts b/web/hands/src/render/caption.test.ts index afb003d2..5e2f7b80 100644 --- a/web/hands/src/render/caption.test.ts +++ b/web/hands/src/render/caption.test.ts @@ -1,6 +1,7 @@ import { readFileSync } from "node:fs"; import { fighter, mockHudContext, publicPlayers, snapshot } from "../test/fixtures"; import { getUpPadRects } from "../input/touch"; +import { getUpView } from "../getup"; import type { MatchPhase } from "../types"; import { cardMetrics, captionSlot, drawCaption, splitLine, type CaptionScene } from "./caption"; import type { BroadcastLine, Caption } from "./commentary"; @@ -167,7 +168,7 @@ describe("caption placement", () => { Object.defineProperty(hud, "font", { set: (value: string) => { font = value; } }); // Down, in his rhythm window: the count, the arrow, NOW! and the meter. const down = { ...snapshot(100), phase: "knockdown" as const, fighters: [{ ...fighter("one", -100), is_downed: true, get_up_count: 3, get_up_prompt: "get_up_left" as const, get_up_meter: 18, get_up_required: 40, get_up_window_start_tick: 95, get_up_window_end_tick: 105 }, { ...fighter("two", 100), get_up_count: 3 }] as const }; - drawHud(hud, width, height, down, named, "one", null, 0, 30, null, null, null, null, null, null, "one", true); + drawHud(hud, width, height, down, named, "one", null, 0, 30, null, null, null, null, null, null, "one", true, false, null, null, true, getUpView(down.fighters[0], down.tick, 0, null, null, true, false)); const where = `${width}x${height}`; const panels = fills.filter((fill) => fill.style === "rgba(3,6,12,0.88)"); expect(panels, where).toHaveLength(1); diff --git a/web/hands/src/render/hud.ts b/web/hands/src/render/hud.ts index e011507b..df0dfb5d 100644 --- a/web/hands/src/render/hud.ts +++ b/web/hands/src/render/hud.ts @@ -1,5 +1,5 @@ import { COUNT_TICKS, EYE_SHUT_TRAUMA, GET_UP, GUARD_BLOCK_MINIMUM, GUARD_REARM } from "../manifest"; -import { getUpLeadIn, getUpView, type GetUpSide, type GetUpVerdict, type GetUpView } from "../getup"; +import { getUpLeadIn, type GetUpSide, type GetUpVerdict, type GetUpView } from "../getup"; import { GET_UP_KEYS } from "../input/bindings"; import { GET_UP_PAD_LABELS, getUpPadRects, safeAreaInsets } from "../input/touch"; import { BLOOD_VOLUME, FINISH_TICKS, bloodStage, deathLabel, fatalityFor, fatalityLabel, fatalityOf, injuryKind, injuryLabel, type DeathCause, type InjuryId, type InjuryKind } from "../injuries"; @@ -1200,7 +1200,7 @@ export function drawHud( finishTarget: string | null = null, /** False with motion reduced: the blood bars and the FINISH HIM banner hold still. */ motion = true, - /** The downed viewer's get-up panel on the press clock (getUpView); without one it is drawn from the snapshot. */ + /** The downed viewer's get-up panel on the press clock (getUpView), or null for none, as while the bout is paused. */ getUpFrame: GetUpView | null = null, ): void { ctx.save(); @@ -1289,7 +1289,7 @@ export function drawHud( const clock = `${Math.floor(seconds / 60)}:${String(seconds % 60).padStart(2, "0")}`; // A downed viewer's get-up panel takes the room it needs from the knockdown headline, and on a narrow screen on // its side from the round card too, whose clock stands still through the count. - const getUp = snapshot.phase === "knockdown" && replayLabel === null && (getUpFrame?.risen === true || snapshot.fighters.some((fighter) => fighter.player_id === viewerId && fighter.is_downed)) ? getUpPanel(width, height, touch) : null; + const getUp = snapshot.phase === "knockdown" && replayLabel === null && getUpFrame !== null ? getUpPanel(width, height, touch) : null; const cardCovered = getUp !== null && compact && getUp.y < 54 + 58; if (final === null && !cardCovered) roundCard(ctx, width / 2, compact ? 54 : height - 84, clock, `ROUND ${snapshot.round_number}`, snapshot.phase === "complete" ? "FINAL" : snapshot.phase.replace("_", " ").toUpperCase()); // Only a connection slow enough to feel is worth the broadcast screen; Settings, Diagnostics always shows it. @@ -1376,8 +1376,8 @@ export function drawHud( ctx.fillText(`COUNT ${count}`, width / 2, headline + COUNT_BELOW_HEADLINE); ctx.restore(); } - } else if (viewer !== undefined) { - drawGetUpPanel(ctx, getUp ?? getUpPanel(width, height, touch), getUpFrame ?? getUpView(viewer, snapshot.tick, 0, null, null, touch, false), motion); + } else if (getUp !== null && getUpFrame !== null) { + drawGetUpPanel(ctx, getUp, getUpFrame, motion); } } // The replay of the punch that killed him runs back through the phase; the banner is the live bout's. diff --git a/web/hands/src/render/render.test.ts b/web/hands/src/render/render.test.ts index 3c40dbab..4e12815a 100644 --- a/web/hands/src/render/render.test.ts +++ b/web/hands/src/render/render.test.ts @@ -7,6 +7,7 @@ import { captionSlot, drawCaption } from "./caption"; import { bloodPatternFor, DESKTOP_GORE, Effects3D, NECK_FOUNTAIN_SECONDS } from "./effects"; import { CLOCK_PORTRAIT_RADIUS, cardRows, decisionLabel, drawHud, finalRevealDelay as revealDelay, hudScale, lagWarning, plateDetails, REFEREE_REVEAL_DELAY_SECONDS, FINAL_REVEAL_DELAY_SECONDS, finalRevealDelay, fitFontSize, HUD_MAX_GUARD, HUD_MAX_POISE, PLATE_PORTRAIT_RADIUS, RESULT_CARD_FOOTER, resultCard, resultCardLayout, RoundClock, RoundStatsTracker, scoreTotal, topPanelOffset } from "./hud"; import { FightRenderer } from "./renderer"; +import { getUpView } from "../getup"; import { buildRing, disposeRing, nearRopeOpacityFor, ROPE_FLEX_GLSL, ROPE_GIVE_GLSL, ropePress, ROPE_BACK, ROPE_MAX_GIVE, ropeExcess } from "./ring"; import { GloveTrail } from "./trails"; import { resizeHighDpi } from "./viewport"; @@ -631,11 +632,11 @@ describe("viewport and broadcast HUD", () => { texts.length = 0; // Before the first prompt's lead-in the side shows, with nothing to press yet. const ownPrompt = { ...opponentPrompt, fighters: [{ ...base.fighters[0], is_downed: true, get_up_prompt: "get_up_right" as const, get_up_next_prompt: "get_up_left" as const, get_up_meter: 2, get_up_required: 4, get_up_window_start_tick: 37, get_up_window_end_tick: 43 }, opponentPrompt.fighters[1]] as const }; - drawHud(ctx, 800, 600, ownPrompt, players, "one", null, 0); + drawHud(ctx, 800, 600, ownPrompt, players, "one", null, 0, 30, null, null, null, null, null, null, null, false, false, null, null, true, getUpView(ownPrompt.fighters[0], ownPrompt.tick, 0, null, null, false, false)); expect(texts).toEqual(expect.arrayContaining(["GET READY", "→", "←", "NEXT", "2 MORE"])); texts.length = 0; const inWindow = { ...ownPrompt, fighters: [{ ...base.fighters[0], is_downed: true, get_up_prompt: "get_up_right" as const, get_up_meter: 2, get_up_required: 4, get_up_window_start_tick: 5, get_up_window_end_tick: 15 }, opponentPrompt.fighters[1]] as const }; - drawHud(ctx, 800, 600, inWindow, players, "one", null, 0); + drawHud(ctx, 800, 600, inWindow, players, "one", null, 0, 30, null, null, null, null, null, null, null, false, false, null, null, true, getUpView(inWindow.fighters[0], inWindow.tick, 0, null, null, false, false)); expect(texts).toContain("NOW"); }); @@ -1124,7 +1125,8 @@ describe("the broadcast HUD after the QA pass", () => { drawHud(mockHudContext(watching), 1280, 720, down(0, false), players, "one", null, 0, 30); expect(watching.some((text) => text.startsWith("COUNT"))).toBe(false); const downed: string[] = []; - drawHud(mockHudContext(downed), 1280, 720, down(0, true), players, "one", null, 0, 30); + const floored = down(0, true); + drawHud(mockHudContext(downed), 1280, 720, floored, players, "one", null, 0, 30, null, null, null, null, null, null, null, false, false, null, null, true, getUpView(floored.fighters[0], floored.tick, 0, null, null, false, false)); expect(downed).toContain("GET UP!"); expect(downed.some((text) => text === "COUNT 0")).toBe(false); const later: string[] = []; @@ -1132,6 +1134,14 @@ describe("the broadcast HUD after the QA pass", () => { expect(later).toContain("COUNT 1"); }); + it("draws no get-up panel while the bout is paused, when the renderer has none to give", () => { + const texts: string[] = []; + drawHud(mockHudContext(texts), 1280, 720, down(0, true), players, "one", null, 4000, 30); + expect(texts).not.toContain("GET UP!"); + expect(texts).not.toContain("GET READY"); + expect(texts).toContain("The bout is paused"); + }); + it("freezes the clock where a bout was stopped instead of running it to zero", () => { const clock = new RoundClock(); expect(clock.ticks({ ...snapshot(), phase: "fight", round_number: 2, phase_ticks_remaining: 2880 })).toBe(2880); diff --git a/web/hands/src/render/renderer-getup.test.ts b/web/hands/src/render/renderer-getup.test.ts index 874bece1..ffd9ffd7 100644 --- a/web/hands/src/render/renderer-getup.test.ts +++ b/web/hands/src/render/renderer-getup.test.ts @@ -1,23 +1,27 @@ import { describe, expect, it, vi } from "vitest"; -import { GetUpTracker, blankGetUpView } from "../getup"; +import { GetUpTracker, blankGetUpView, type GetUpView } from "../getup"; import { SnapshotBuffer } from "../interpolation"; import { GET_UP } from "../manifest"; import { fighter, snapshot } from "../test/fixtures"; +import type { EngineSnapshot } from "../types"; import { FightRenderer } from "./renderer"; const prototype = FightRenderer.prototype as unknown as Record) => void>; -/** Just what the renderer's get-up frame reads, with the viewer down on tick 100 and the clock at `nowMs`. */ -function downedRenderer(nowMs: number, reconnectMs: number): Record { +/** The viewer down since tick 100, with the first prompt's beat on tick 140, as the snapshot of `tick` shows him. */ +const downAt = (tick: number): EngineSnapshot => ({ + ...snapshot(tick), phase: "knockdown", + fighters: [{ ...fighter("one"), is_downed: true, knockdowns: 1, get_up_prompt: "get_up_left", get_up_next_prompt: "get_up_right", get_up_required: 4, get_up_count: Math.min(10, Math.floor((tick - 100) / 20)), get_up_window_start_tick: 140 - GET_UP.zoneTicks, get_up_window_end_tick: 140 + GET_UP.zoneTicks }, fighter("two")], +}); + +/** Just what the renderer's get-up frame reads, with snapshots up to `lastTick` in on time and the clock at `nowMs`. */ +function downedRenderer(nowMs: number, reconnectMs: number, lastTick = 130): Record { const buffer = new SnapshotBuffer(8, 30, 2); - for (let tick = 100; tick <= 130; tick += 1) { - const down = { ...fighter("one"), is_downed: true, knockdowns: 1, get_up_prompt: "get_up_left" as const, get_up_next_prompt: "get_up_right" as const, get_up_required: 4, get_up_count: Math.floor((tick - 100) / 20), get_up_window_start_tick: 140 - GET_UP.zoneTicks, get_up_window_end_tick: 140 + GET_UP.zoneTicks }; - buffer.push({ ...snapshot(tick), phase: "knockdown", fighters: [down, fighter("two")] }, (tick * 1000) / 30); - } + for (let tick = 100; tick <= lastTick; tick += 1) buffer.push(downAt(tick), (tick * 1000) / 30); return { buffer, viewerId: "one", manualClock: true, lastManualTime: nowMs, getUpRisenAt: -Infinity, replay: null, reconnectMs, getUp: new GetUpTracker(), getUpKnockTick: 100, touchControls: false, getUpDraft: blankGetUpView(), getUpBeatCount: -1, getUpFrame: null, - inputLatencyMs: 0, simulation: { tick_rate: 30 }, onGetUpBeat: vi.fn(), pressTick: prototype.pressTick, + inputLatencyMs: 0, simulation: { tick_rate: 30 }, onGetUpBeat: vi.fn(), pressTick: prototype.pressTick, pressFloor: -Infinity, }; } @@ -35,3 +39,35 @@ describe("the get-up panel while the bout is paused", () => { expect(paused.onGetUpBeat).not.toHaveBeenCalled(); }); }); + +describe("the press clock while he is down", () => { + it("never steps back over 10 s of a link with 40 ms of jitter, and plays each count's beat once", () => { + const fake = downedRenderer(0, 0, 100); + const buffer = fake.buffer as SnapshotBuffer; + const beats: number[] = []; + fake.onGetUpBeat = (count: number) => beats.push(count); + let seed = 7; + const jitter = (): number => { + seed = (seed * 1103515245 + 12345) % 2147483648; + return (seed / 2147483648) * 40; + }; + const arrivals = Array.from({ length: 300 }, (_, index) => ({ tick: 101 + index, atMs: ((101 + index) * 1000) / 30 + 50 + jitter() })).sort((a, b) => a.atMs - b.atMs); + let next = 0; + let last = -Infinity; + const start = (100 * 1000) / 30 + 50; + // Read every millisecond, finer than any frame, so a step back of a fraction of a tick shows. + for (let now = start; now < start + 10_000; now += 1) { + while (next < arrivals.length && arrivals[next]!.atMs <= now) { + const arrival = arrivals[next]!; + buffer.push(downAt(arrival.tick), arrival.atMs); + next += 1; + } + fake.lastManualTime = now; + prototype.updateGetUp!.call(fake); + const tick = (fake.getUpFrame as GetUpView).pressTick; + expect(tick).toBeGreaterThanOrEqual(last); + last = tick; + } + expect(beats).toEqual([1, 2, 3, 4, 5, 6, 7, 8, 9]); + }); +}); diff --git a/web/hands/src/render/renderer.ts b/web/hands/src/render/renderer.ts index 5c4bd939..fe938569 100644 --- a/web/hands/src/render/renderer.ts +++ b/web/hands/src/render/renderer.ts @@ -1332,6 +1332,11 @@ export class FightRenderer { private readonly getUpDraft = blankGetUpView(); /** The viewer was on the canvas in the last snapshot. */ private getUpWasDown = false; + /** + * The highest press clock given since the viewer went down or the bout resumed: the clock holds there until real time + * catches up, so the ring and the count never step back when its best recent arrival ages out. + */ + private pressFloor = -Infinity; /** Called on each number of the count on the press clock while the viewer is down: the beat a press is timed to. */ onGetUpBeat: ((count: number) => void) | null = null; /** The slow-connection warning is up (lagWarning). */ @@ -2262,9 +2267,11 @@ export class FightRenderer { /** The server clock starts over after a new connection or a paused bout, so the render clock relearns it. */ resyncClock(): void { this.buffer.resync(); + this.pressFloor = -Infinity; } setReconnect(milliseconds: number): void { + if (milliseconds === 0 && this.reconnectMs > 0) this.pressFloor = -Infinity; this.reconnectMs = milliseconds; } @@ -2485,7 +2492,8 @@ export class FightRenderer { /** The fractional tick a press made now would be scored on at the server: the snapshot clock plus the measured round trip. */ private pressTick(now: number): number { - return this.buffer.clockTick(now) + ((this.inputLatencyMs ?? 60) / 1000) * this.simulation.tick_rate; + this.pressFloor = Math.max(this.pressFloor, this.buffer.clockTick(now) + ((this.inputLatencyMs ?? 60) / 1000) * this.simulation.tick_rate); + return this.pressFloor; } /** Judges the downed viewer's get-up press at once on the press clock, or null if it does nothing; the server's verdict follows. */ @@ -2524,7 +2532,7 @@ export class FightRenderer { return; } const frame = getUpView(fighter, this.pressTick(now), now, this.getUp, this.getUpKnockTick, this.touchControls, risen, this.getUpDraft); - if (!risen && frame.count !== this.getUpBeatCount) { + if (!risen && frame.count > this.getUpBeatCount) { if (this.getUpBeatCount >= 0 && frame.count >= 1 && frame.count <= 9) this.onGetUpBeat?.(frame.count); this.getUpBeatCount = frame.count; } @@ -2620,6 +2628,7 @@ export class FightRenderer { if (event.kind === "knockdown" && event.target_id === this.viewerId) { this.getUp.reset(); this.getUpKnockTick = event.tick; + this.pressFloor = -Infinity; this.getUpRisenAt = -Infinity; } if (event.kind === "get_up_input" && event.actor_id === this.viewerId) this.getUp.confirm(event, arrived); @@ -2630,6 +2639,7 @@ export class FightRenderer { if (viewer?.is_downed === true && !this.getUpWasDown && !accepted.some((event) => event.kind === "knockdown" && event.target_id === this.viewerId)) { this.getUp.reset(); this.getUpKnockTick = knockTickOf(viewer, snapshot.tick); + this.pressFloor = -Infinity; this.getUpRisenAt = -Infinity; } this.getUpWasDown = viewer?.is_downed === true;